Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9dd02fc0
AB
12020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 PR cli/26879
4 * f-exp.y (COMPLETE): New token.
5 (exp): Two new rules for tab-completion.
6 (saw_name_at_eof): New static global.
7 (last_was_structop): Likewise.
8 (yylex): Set new variables, and return COMPLETE token at the end
9 of the input stream in some cases.
10
758cb810
TT
112020-11-14 Tom Tromey <tom@tromey.com>
12
13 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
14
749065b7
TT
152020-11-14 Tom Tromey <tom@tromey.com>
16
17 * opencl-lang.c (opencl_component_ref): Make "comps" const.
18
2c5b1849
SM
192020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
20
21 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
22
e8b2f0d9
TT
232020-11-13 Tom Tromey <tom@tromey.com>
24
25 * c-lang.c (convert_ucn, convert_octal, convert_hex)
26 (convert_escape, parse_one_string): Constify.
27
25f4c262
KS
282020-11-13 Keith Seitz <keiths@redhat.com>
29
30 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
31 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
32 outside of ELF segments" warning for debugin
33
9d3ab915
KS
342020-11-13 Keith Seitz <keiths@redhat.com>
35
36 PR gdb/23034
37 * elfread.c (elf_symfile_segments): Output a BFD file name
38 for the "Loadable section ... outside of ELF segments" warning.
39
9ecab40c
SM
402020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
41
42 PR gdb/26835
43 * arm-tdep.c (class arm_instruction_reader): New.
44 (target_arm_instruction_reader): New.
45 (arm_analyze_prologue): Add instruction reader parameter and use
46 it. Use arm_expand_immediate.
47 (class target_arm_instruction_reader): Adjust.
48 (arm_skip_prologue): Adjust.
49 (arm_expand_immediate): New.
50 (arm_scan_prologue): Adjust.
51 (arm_analyze_prologue_test): New.
52 (class test_arm_instruction_reader): New.
53
5a7cf527
AB
542020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
55
56 * f-lang.c (fortran_argument_convert): Add declaration. Add
57 header comment, taken from f-lang.h. Make static.
58 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
59 (fortran_argument_convert): Delete declaration.
60
7bea47f0
AB
612020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
62
63 * ada-exp.y (find_primitive_type): Make parameter const.
64 * ada-lang.c (enum ada_primitive_types): Delete.
65 (ada_language::language_arch_info): Update.
66 * c-lang.c (enum c_primitive_types): Delete.
67 (c_language_arch_info): Update.
68 (enum cplus_primitive_types): Delete.
69 (cplus_language::language_arch_info): Update.
70 * d-lang.c (enum d_primitive_types): Delete.
71 (d_language::language_arch_info): Update.
72 * f-lang.c (enum f_primitive_types): Delete.
73 (f_language::language_arch_info): Update.
74 * go-lang.c (enum go_primitive_types): Delete.
75 (go_language::language_arch_info): Update.
76 * language.c (auto_or_unknown_language::language_arch_info):
77 Update.
78 (language_gdbarch_post_init): Use obstack_new, use array indexing.
79 (language_string_char_type): Add header comment, call function in
80 language_arch_info.
81 (language_bool_type): Likewise
82 (language_arch_info::bool_type): Define.
83 (language_lookup_primitive_type_1): Delete.
84 (language_lookup_primitive_type): Rewrite as a templated function
85 to call function in language_arch_info, then instantiate twice.
86 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
87 (language_arch_info::lookup_primitive_type_and_symbol): Define.
88 (language_arch_info::lookup_primitive_type): Define twice with
89 different signatures.
90 (language_arch_info::lookup_primitive_type_as_symbol): Define.
91 (language_lookup_primitive_type_as_symbol): Rewrite to call a
92 member function in language_arch_info.
93 * language.h (language_arch_info): Complete rewrite.
94 (language_lookup_primitive_type): Make templated.
95 * m2-lang.c (enum m2_primitive_types): Delete.
96 (m2_language::language_arch_info): Update.
97 * opencl-lang.c (OCL_P_TYPE): Delete.
98 (enum opencl_primitive_types): Delete.
99 (opencl_type_data): Delete.
100 (builtin_opencl_type): Delete.
101 (lookup_opencl_vector_type): Update.
102 (opencl_language::language_arch_info): Update, lots of content
103 moved from...
104 (build_opencl_types): ...here. This function is now deleted.
105 (_initialize_opencl_language): Delete.
106 * p-lang.c (enum pascal_primitive_types): Delete.
107 (pascal_language::language_arch_info): Update.
108 * rust-lang.c (enum rust_primitive_types): Delete.
109 (rust_language::language_arch_info): Update.
110
bf6e5d01
SM
1112020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
112
113 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
114 dwarf2_queue_guard.
115
1350c3b4
SM
1162020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
117
118 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
119 comment.
120
6f738b01
SM
1212020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * dwarf2/read.c (dwarf_read_debug_printf,
124 dwarf_read_debug_printf_v): New macros, use throughout the file.
125
10c19fad
SV
1262020-11-12 Shahab Vahedi <shahab@synopsys.com>
127
128 * arc-linux-tdep.c (collect_register): Populate "eret" by
129 "pc" value from the regcache when asked for "pc" value.
130
1f2624a3
TT
1312020-11-12 Tom Tromey <tom@tromey.com>
132
133 PR rust/26799:
134 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
135 exist.
136
ab33b152
AB
1372020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
138
139 * features/Makefile (XMLTOC): Add rx.xml.
140 (FEATURE_XMLFILES): Remove rx.xml.
141 (FEATURE_CFILES rule): Pass '-single-feature' flag.
142 * features/rx.c: Regenerate.
143 * features/rx.xml: Wrap in `target` tags, and reindent.
144 * target-descriptions.c (struct maint_print_c_tdesc_options): New
145 structure.
146 (maint_print_c_tdesc_opt_def): New typedef.
147 (maint_print_c_tdesc_opt_defs): New static global.
148 (make_maint_print_c_tdesc_options_def_group): New function.
149 (maint_print_c_tdesc_cmd): Make use of command line flags, only
150 print single feature C file for target descriptions containing a
151 single feature.
152 (maint_print_c_tdesc_cmd_completer): New function.
153 (_initialize_target_descriptions): Update call to register command
154 completer, and include command line flag in help text.
155
550820e1
AB
1562020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
159 numbers.
160 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
161 enum values.
162
baf20f76
TT
1632020-11-10 Tom Tromey <tom@tromey.com>
164
165 * value.h (internalvar_name): Update.
166 * value.c (internalvar_name): Make return type const.
167
caaece0e
TT
1682020-11-10 Tom Tromey <tom@tromey.com>
169
170 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
171 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
172 const.
173
8e20b4be
TT
1742020-11-10 Tom Tromey <tom@tromey.com>
175
176 * objc-lang.h (value_nsstring): Update.
177 * objc-lang.c (value_nsstring): Make "ptr" const.
178
86775fab
AB
1792020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
180
181 * expprint.c (print_subexp_funcall): Increment expression position
182 after reading argument count.
183 * f-lang.c (print_subexp_f): Skip over opcode before calling
184 common function.
185 (dump_subexp_body_f): Likewise.
186
3fed4c0b
RG
1872020-11-06 Romain Geissler <romain.geissler@amadeus.com>
188
189 PR python/26832
190 * configure: Regenerate.
191 * configure.ac: Check for python modules ctypes instead of
192 itertools.
193
ac3d4064
PA
1942020-11-06 Pedro Alves <pedro@palves.net>
195
196 * macroexp.c (struct macro_buffer): Split in two classes. Add
197 uses adjusted.
198 (struct shared_macro_buffer): New, factored out from struct
199 macro_buffer.
200 (struct growable_macro_buffer): New, factored out from struct
201 macro_buffer.
202 (set_token, get_comment, get_identifier, get_pp_number)
203 (get_character_constant, get_string_literal, get_punctuator)
204 (get_next_token_for_substitution): Constify parameters.
205 (substitute_args): Constify locals.
206
606decb2
TT
2072020-11-05 Tom Tromey <tom@tromey.com>
208
209 * dwarf2/read.c (read_cutu_die_from_dwo)
210 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
211 (build_type_psymtabs_1): Update.
212 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
213 parameter.
214 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
215 Don't read section. Add assert.
216
9c91c725
TT
2172020-11-04 Tom Tromey <tromey@adacore.com>
218
219 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
220
8d9fd3a1
TT
2212020-11-04 Tom Tromey <tromey@adacore.com>
222
223 * ada-typeprint.c (ada_print_type): Handle __T types.
224
d8f62e84
TT
2252020-11-04 Tom Tromey <tromey@adacore.com>
226
227 * dwarf2/read.c (add_partial_symbol, process_die):
228 Handle DW_TAG_array_type.
229 (is_type_tag_for_partial): Add "lang" parameter.
230 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
231
7ff5b937
TT
2322020-11-04 Tom Tromey <tromey@adacore.com>
233
234 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
235
10f6a3ad
TT
2362020-11-04 Tom Tromey <tromey@adacore.com>
237
238 * dwarf2/read.c (read_array_type): Only apply stride to innermost
239 array.
240
b72795a8
TT
2412020-11-04 Tom Tromey <tromey@adacore.com>
242
243 * gdbtypes.c (update_static_array_size): Handle bit stride.
244
24aa1b02
TT
2452020-11-04 Tom Tromey <tromey@adacore.com>
246
247 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
248
c9a28cbe
TT
2492020-11-04 Tom Tromey <tromey@adacore.com>
250
251 * ada-lang.c (ada_is_any_packed_array_type): New function.
252 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
253
57567375
TT
2542020-11-04 Tom Tromey <tromey@adacore.com>
255
256 * dwarf2/read.c (recognize_bound_expression)
257 (quirk_ada_thick_pointer): New functions.
258 (read_array_type): Call quirk_ada_thick_pointer.
259 (set_die_type): Add "skip_data_location" parameter.
260 (quirk_ada_thick_pointer): New function.
261 (process_structure_scope): Call quirk_ada_thick_pointer.
262 * ada-lang.c (ada_is_unconstrained_packed_array_type)
263 (decode_packed_array_bitsize): Handle thick pointers without
264 parallel types.
265 (ada_is_gnat_encoded_packed_array_type): Rename from
266 ada_is_packed_array_type.
267 (ada_is_constrained_packed_array_type): Update.
268 * ada-valprint.c (ada_val_print_gnat_array): Remove.
269 (ada_value_print_1): Use ada_get_decoded_value.
270
a7400e44
TT
2712020-11-04 Tom Tromey <tromey@adacore.com>
272
273 * ada-lang.c (recursively_update_array_bitsize): New function.
274 (decode_constrained_packed_array_type): Call it.
275
75fd6a26
TT
2762020-11-04 Tom Tromey <tromey@adacore.com>
277
278 * ada-lang.c (to_fixed_array_type): Error if
279 decode_constrained_packed_array_type returns NULL.
280
93f9561e
TT
2812020-11-04 Tom Tromey <tromey@adacore.com>
282
283 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
284
257e02d8
TT
2852020-11-02 Tom Tromey <tromey@adacore.com>
286
287 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
288 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
289 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
290 * amd64-ravenscar-thread.c: New file.
291 * amd64-ravenscar-thread.h: New file.
292 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
293 * configure.tgt (amd64_tobjs): Add ravenscar objects.
294
74d877e5
AB
2952020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
296
297 * main.c (execute_cmdargs): New function.
298 (captured_main_1): Make use of execute_cmdargs.
299
64aaad63
AB
3002020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
301
302 * NEWS: Mention changes to config file search path.
303 * main.c
304
5b3d3560
TT
3052020-11-02 Tom Tromey <tromey@adacore.com>
306
307 * python/python.c: Consolidate two HAVE_PYTHON blocks.
308 (python_GdbModuleDef): Move earlier. Now static.
309 (do_start_initialization): Consolidate some IS_PY3K blocks.
310
dda83cd7
SM
3112020-11-02 Simon Marchi <simon.marchi@efficios.com>
312
313 * aarch64-linux-tdep.c: Fix indentation.
314 * aarch64-ravenscar-thread.c: Fix indentation.
315 * aarch64-tdep.c: Fix indentation.
316 * aarch64-tdep.h: Fix indentation.
317 * ada-lang.c: Fix indentation.
318 * ada-lang.h: Fix indentation.
319 * ada-tasks.c: Fix indentation.
320 * ada-typeprint.c: Fix indentation.
321 * ada-valprint.c: Fix indentation.
322 * ada-varobj.c: Fix indentation.
323 * addrmap.c: Fix indentation.
324 * addrmap.h: Fix indentation.
325 * agent.c: Fix indentation.
326 * aix-thread.c: Fix indentation.
327 * alpha-bsd-nat.c: Fix indentation.
328 * alpha-linux-tdep.c: Fix indentation.
329 * alpha-mdebug-tdep.c: Fix indentation.
330 * alpha-nbsd-tdep.c: Fix indentation.
331 * alpha-obsd-tdep.c: Fix indentation.
332 * alpha-tdep.c: Fix indentation.
333 * amd64-bsd-nat.c: Fix indentation.
334 * amd64-darwin-tdep.c: Fix indentation.
335 * amd64-linux-nat.c: Fix indentation.
336 * amd64-linux-tdep.c: Fix indentation.
337 * amd64-nat.c: Fix indentation.
338 * amd64-obsd-tdep.c: Fix indentation.
339 * amd64-tdep.c: Fix indentation.
340 * amd64-windows-tdep.c: Fix indentation.
341 * annotate.c: Fix indentation.
342 * arc-tdep.c: Fix indentation.
343 * arch-utils.c: Fix indentation.
344 * arch/arm-get-next-pcs.c: Fix indentation.
345 * arch/arm.c: Fix indentation.
346 * arm-linux-nat.c: Fix indentation.
347 * arm-linux-tdep.c: Fix indentation.
348 * arm-nbsd-tdep.c: Fix indentation.
349 * arm-pikeos-tdep.c: Fix indentation.
350 * arm-tdep.c: Fix indentation.
351 * arm-tdep.h: Fix indentation.
352 * arm-wince-tdep.c: Fix indentation.
353 * auto-load.c: Fix indentation.
354 * auxv.c: Fix indentation.
355 * avr-tdep.c: Fix indentation.
356 * ax-gdb.c: Fix indentation.
357 * ax-general.c: Fix indentation.
358 * bfin-linux-tdep.c: Fix indentation.
359 * block.c: Fix indentation.
360 * block.h: Fix indentation.
361 * blockframe.c: Fix indentation.
362 * bpf-tdep.c: Fix indentation.
363 * break-catch-sig.c: Fix indentation.
364 * break-catch-syscall.c: Fix indentation.
365 * break-catch-throw.c: Fix indentation.
366 * breakpoint.c: Fix indentation.
367 * breakpoint.h: Fix indentation.
368 * bsd-uthread.c: Fix indentation.
369 * btrace.c: Fix indentation.
370 * build-id.c: Fix indentation.
371 * buildsym-legacy.h: Fix indentation.
372 * buildsym.c: Fix indentation.
373 * c-typeprint.c: Fix indentation.
374 * c-valprint.c: Fix indentation.
375 * c-varobj.c: Fix indentation.
376 * charset.c: Fix indentation.
377 * cli/cli-cmds.c: Fix indentation.
378 * cli/cli-decode.c: Fix indentation.
379 * cli/cli-decode.h: Fix indentation.
380 * cli/cli-script.c: Fix indentation.
381 * cli/cli-setshow.c: Fix indentation.
382 * coff-pe-read.c: Fix indentation.
383 * coffread.c: Fix indentation.
384 * compile/compile-cplus-types.c: Fix indentation.
385 * compile/compile-object-load.c: Fix indentation.
386 * compile/compile-object-run.c: Fix indentation.
387 * completer.c: Fix indentation.
388 * corefile.c: Fix indentation.
389 * corelow.c: Fix indentation.
390 * cp-abi.h: Fix indentation.
391 * cp-namespace.c: Fix indentation.
392 * cp-support.c: Fix indentation.
393 * cp-valprint.c: Fix indentation.
394 * cris-linux-tdep.c: Fix indentation.
395 * cris-tdep.c: Fix indentation.
396 * darwin-nat-info.c: Fix indentation.
397 * darwin-nat.c: Fix indentation.
398 * darwin-nat.h: Fix indentation.
399 * dbxread.c: Fix indentation.
400 * dcache.c: Fix indentation.
401 * disasm.c: Fix indentation.
402 * dtrace-probe.c: Fix indentation.
403 * dwarf2/abbrev.c: Fix indentation.
404 * dwarf2/attribute.c: Fix indentation.
405 * dwarf2/expr.c: Fix indentation.
406 * dwarf2/frame.c: Fix indentation.
407 * dwarf2/index-cache.c: Fix indentation.
408 * dwarf2/index-write.c: Fix indentation.
409 * dwarf2/line-header.c: Fix indentation.
410 * dwarf2/loc.c: Fix indentation.
411 * dwarf2/macro.c: Fix indentation.
412 * dwarf2/read.c: Fix indentation.
413 * dwarf2/read.h: Fix indentation.
414 * elfread.c: Fix indentation.
415 * eval.c: Fix indentation.
416 * event-top.c: Fix indentation.
417 * exec.c: Fix indentation.
418 * exec.h: Fix indentation.
419 * expprint.c: Fix indentation.
420 * f-lang.c: Fix indentation.
421 * f-typeprint.c: Fix indentation.
422 * f-valprint.c: Fix indentation.
423 * fbsd-nat.c: Fix indentation.
424 * fbsd-tdep.c: Fix indentation.
425 * findvar.c: Fix indentation.
426 * fork-child.c: Fix indentation.
427 * frame-unwind.c: Fix indentation.
428 * frame-unwind.h: Fix indentation.
429 * frame.c: Fix indentation.
430 * frv-linux-tdep.c: Fix indentation.
431 * frv-tdep.c: Fix indentation.
432 * frv-tdep.h: Fix indentation.
433 * ft32-tdep.c: Fix indentation.
434 * gcore.c: Fix indentation.
435 * gdb_bfd.c: Fix indentation.
436 * gdbarch.sh: Fix indentation.
437 * gdbarch.c: Re-generate
438 * gdbarch.h: Re-generate.
439 * gdbcore.h: Fix indentation.
440 * gdbthread.h: Fix indentation.
441 * gdbtypes.c: Fix indentation.
442 * gdbtypes.h: Fix indentation.
443 * glibc-tdep.c: Fix indentation.
444 * gnu-nat.c: Fix indentation.
445 * gnu-nat.h: Fix indentation.
446 * gnu-v2-abi.c: Fix indentation.
447 * gnu-v3-abi.c: Fix indentation.
448 * go32-nat.c: Fix indentation.
449 * guile/guile-internal.h: Fix indentation.
450 * guile/scm-cmd.c: Fix indentation.
451 * guile/scm-frame.c: Fix indentation.
452 * guile/scm-iterator.c: Fix indentation.
453 * guile/scm-math.c: Fix indentation.
454 * guile/scm-ports.c: Fix indentation.
455 * guile/scm-pretty-print.c: Fix indentation.
456 * guile/scm-value.c: Fix indentation.
457 * h8300-tdep.c: Fix indentation.
458 * hppa-linux-nat.c: Fix indentation.
459 * hppa-linux-tdep.c: Fix indentation.
460 * hppa-nbsd-nat.c: Fix indentation.
461 * hppa-nbsd-tdep.c: Fix indentation.
462 * hppa-obsd-nat.c: Fix indentation.
463 * hppa-tdep.c: Fix indentation.
464 * hppa-tdep.h: Fix indentation.
465 * i386-bsd-nat.c: Fix indentation.
466 * i386-darwin-nat.c: Fix indentation.
467 * i386-darwin-tdep.c: Fix indentation.
468 * i386-dicos-tdep.c: Fix indentation.
469 * i386-gnu-nat.c: Fix indentation.
470 * i386-linux-nat.c: Fix indentation.
471 * i386-linux-tdep.c: Fix indentation.
472 * i386-nto-tdep.c: Fix indentation.
473 * i386-obsd-tdep.c: Fix indentation.
474 * i386-sol2-nat.c: Fix indentation.
475 * i386-tdep.c: Fix indentation.
476 * i386-tdep.h: Fix indentation.
477 * i386-windows-tdep.c: Fix indentation.
478 * i387-tdep.c: Fix indentation.
479 * i387-tdep.h: Fix indentation.
480 * ia64-libunwind-tdep.c: Fix indentation.
481 * ia64-libunwind-tdep.h: Fix indentation.
482 * ia64-linux-nat.c: Fix indentation.
483 * ia64-linux-tdep.c: Fix indentation.
484 * ia64-tdep.c: Fix indentation.
485 * ia64-tdep.h: Fix indentation.
486 * ia64-vms-tdep.c: Fix indentation.
487 * infcall.c: Fix indentation.
488 * infcmd.c: Fix indentation.
489 * inferior.c: Fix indentation.
490 * infrun.c: Fix indentation.
491 * iq2000-tdep.c: Fix indentation.
492 * language.c: Fix indentation.
493 * linespec.c: Fix indentation.
494 * linux-fork.c: Fix indentation.
495 * linux-nat.c: Fix indentation.
496 * linux-tdep.c: Fix indentation.
497 * linux-thread-db.c: Fix indentation.
498 * lm32-tdep.c: Fix indentation.
499 * m2-lang.c: Fix indentation.
500 * m2-typeprint.c: Fix indentation.
501 * m2-valprint.c: Fix indentation.
502 * m32c-tdep.c: Fix indentation.
503 * m32r-linux-tdep.c: Fix indentation.
504 * m32r-tdep.c: Fix indentation.
505 * m68hc11-tdep.c: Fix indentation.
506 * m68k-bsd-nat.c: Fix indentation.
507 * m68k-linux-nat.c: Fix indentation.
508 * m68k-linux-tdep.c: Fix indentation.
509 * m68k-tdep.c: Fix indentation.
510 * machoread.c: Fix indentation.
511 * macrocmd.c: Fix indentation.
512 * macroexp.c: Fix indentation.
513 * macroscope.c: Fix indentation.
514 * macrotab.c: Fix indentation.
515 * macrotab.h: Fix indentation.
516 * main.c: Fix indentation.
517 * mdebugread.c: Fix indentation.
518 * mep-tdep.c: Fix indentation.
519 * mi/mi-cmd-catch.c: Fix indentation.
520 * mi/mi-cmd-disas.c: Fix indentation.
521 * mi/mi-cmd-env.c: Fix indentation.
522 * mi/mi-cmd-stack.c: Fix indentation.
523 * mi/mi-cmd-var.c: Fix indentation.
524 * mi/mi-cmds.c: Fix indentation.
525 * mi/mi-main.c: Fix indentation.
526 * mi/mi-parse.c: Fix indentation.
527 * microblaze-tdep.c: Fix indentation.
528 * minidebug.c: Fix indentation.
529 * minsyms.c: Fix indentation.
530 * mips-linux-nat.c: Fix indentation.
531 * mips-linux-tdep.c: Fix indentation.
532 * mips-nbsd-tdep.c: Fix indentation.
533 * mips-tdep.c: Fix indentation.
534 * mn10300-linux-tdep.c: Fix indentation.
535 * mn10300-tdep.c: Fix indentation.
536 * moxie-tdep.c: Fix indentation.
537 * msp430-tdep.c: Fix indentation.
538 * namespace.h: Fix indentation.
539 * nat/fork-inferior.c: Fix indentation.
540 * nat/gdb_ptrace.h: Fix indentation.
541 * nat/linux-namespaces.c: Fix indentation.
542 * nat/linux-osdata.c: Fix indentation.
543 * nat/netbsd-nat.c: Fix indentation.
544 * nat/x86-dregs.c: Fix indentation.
545 * nbsd-nat.c: Fix indentation.
546 * nbsd-tdep.c: Fix indentation.
547 * nios2-linux-tdep.c: Fix indentation.
548 * nios2-tdep.c: Fix indentation.
549 * nto-procfs.c: Fix indentation.
550 * nto-tdep.c: Fix indentation.
551 * objfiles.c: Fix indentation.
552 * objfiles.h: Fix indentation.
553 * opencl-lang.c: Fix indentation.
554 * or1k-tdep.c: Fix indentation.
555 * osabi.c: Fix indentation.
556 * osabi.h: Fix indentation.
557 * osdata.c: Fix indentation.
558 * p-lang.c: Fix indentation.
559 * p-typeprint.c: Fix indentation.
560 * p-valprint.c: Fix indentation.
561 * parse.c: Fix indentation.
562 * ppc-linux-nat.c: Fix indentation.
563 * ppc-linux-tdep.c: Fix indentation.
564 * ppc-nbsd-nat.c: Fix indentation.
565 * ppc-nbsd-tdep.c: Fix indentation.
566 * ppc-obsd-nat.c: Fix indentation.
567 * ppc-ravenscar-thread.c: Fix indentation.
568 * ppc-sysv-tdep.c: Fix indentation.
569 * ppc64-tdep.c: Fix indentation.
570 * printcmd.c: Fix indentation.
571 * proc-api.c: Fix indentation.
572 * producer.c: Fix indentation.
573 * producer.h: Fix indentation.
574 * prologue-value.c: Fix indentation.
575 * prologue-value.h: Fix indentation.
576 * psymtab.c: Fix indentation.
577 * python/py-arch.c: Fix indentation.
578 * python/py-bpevent.c: Fix indentation.
579 * python/py-event.c: Fix indentation.
580 * python/py-event.h: Fix indentation.
581 * python/py-finishbreakpoint.c: Fix indentation.
582 * python/py-frame.c: Fix indentation.
583 * python/py-framefilter.c: Fix indentation.
584 * python/py-inferior.c: Fix indentation.
585 * python/py-infthread.c: Fix indentation.
586 * python/py-objfile.c: Fix indentation.
587 * python/py-prettyprint.c: Fix indentation.
588 * python/py-registers.c: Fix indentation.
589 * python/py-signalevent.c: Fix indentation.
590 * python/py-stopevent.c: Fix indentation.
591 * python/py-stopevent.h: Fix indentation.
592 * python/py-threadevent.c: Fix indentation.
593 * python/py-tui.c: Fix indentation.
594 * python/py-unwind.c: Fix indentation.
595 * python/py-value.c: Fix indentation.
596 * python/py-xmethods.c: Fix indentation.
597 * python/python-internal.h: Fix indentation.
598 * python/python.c: Fix indentation.
599 * ravenscar-thread.c: Fix indentation.
600 * record-btrace.c: Fix indentation.
601 * record-full.c: Fix indentation.
602 * record.c: Fix indentation.
603 * reggroups.c: Fix indentation.
604 * regset.h: Fix indentation.
605 * remote-fileio.c: Fix indentation.
606 * remote.c: Fix indentation.
607 * reverse.c: Fix indentation.
608 * riscv-linux-tdep.c: Fix indentation.
609 * riscv-ravenscar-thread.c: Fix indentation.
610 * riscv-tdep.c: Fix indentation.
611 * rl78-tdep.c: Fix indentation.
612 * rs6000-aix-tdep.c: Fix indentation.
613 * rs6000-lynx178-tdep.c: Fix indentation.
614 * rs6000-nat.c: Fix indentation.
615 * rs6000-tdep.c: Fix indentation.
616 * rust-lang.c: Fix indentation.
617 * rx-tdep.c: Fix indentation.
618 * s12z-tdep.c: Fix indentation.
619 * s390-linux-tdep.c: Fix indentation.
620 * score-tdep.c: Fix indentation.
621 * ser-base.c: Fix indentation.
622 * ser-mingw.c: Fix indentation.
623 * ser-uds.c: Fix indentation.
624 * ser-unix.c: Fix indentation.
625 * serial.c: Fix indentation.
626 * sh-linux-tdep.c: Fix indentation.
627 * sh-nbsd-tdep.c: Fix indentation.
628 * sh-tdep.c: Fix indentation.
629 * skip.c: Fix indentation.
630 * sol-thread.c: Fix indentation.
631 * solib-aix.c: Fix indentation.
632 * solib-darwin.c: Fix indentation.
633 * solib-frv.c: Fix indentation.
634 * solib-svr4.c: Fix indentation.
635 * solib.c: Fix indentation.
636 * source.c: Fix indentation.
637 * sparc-linux-tdep.c: Fix indentation.
638 * sparc-nbsd-tdep.c: Fix indentation.
639 * sparc-obsd-tdep.c: Fix indentation.
640 * sparc-ravenscar-thread.c: Fix indentation.
641 * sparc-tdep.c: Fix indentation.
642 * sparc64-linux-tdep.c: Fix indentation.
643 * sparc64-nbsd-tdep.c: Fix indentation.
644 * sparc64-obsd-tdep.c: Fix indentation.
645 * sparc64-tdep.c: Fix indentation.
646 * stabsread.c: Fix indentation.
647 * stack.c: Fix indentation.
648 * stap-probe.c: Fix indentation.
649 * stubs/ia64vms-stub.c: Fix indentation.
650 * stubs/m32r-stub.c: Fix indentation.
651 * stubs/m68k-stub.c: Fix indentation.
652 * stubs/sh-stub.c: Fix indentation.
653 * stubs/sparc-stub.c: Fix indentation.
654 * symfile-mem.c: Fix indentation.
655 * symfile.c: Fix indentation.
656 * symfile.h: Fix indentation.
657 * symmisc.c: Fix indentation.
658 * symtab.c: Fix indentation.
659 * symtab.h: Fix indentation.
660 * target-float.c: Fix indentation.
661 * target.c: Fix indentation.
662 * target.h: Fix indentation.
663 * tic6x-tdep.c: Fix indentation.
664 * tilegx-linux-tdep.c: Fix indentation.
665 * tilegx-tdep.c: Fix indentation.
666 * top.c: Fix indentation.
667 * tracefile-tfile.c: Fix indentation.
668 * tracepoint.c: Fix indentation.
669 * tui/tui-disasm.c: Fix indentation.
670 * tui/tui-io.c: Fix indentation.
671 * tui/tui-regs.c: Fix indentation.
672 * tui/tui-stack.c: Fix indentation.
673 * tui/tui-win.c: Fix indentation.
674 * tui/tui-winsource.c: Fix indentation.
675 * tui/tui.c: Fix indentation.
676 * typeprint.c: Fix indentation.
677 * ui-out.h: Fix indentation.
678 * unittests/copy_bitwise-selftests.c: Fix indentation.
679 * unittests/memory-map-selftests.c: Fix indentation.
680 * utils.c: Fix indentation.
681 * v850-tdep.c: Fix indentation.
682 * valarith.c: Fix indentation.
683 * valops.c: Fix indentation.
684 * valprint.c: Fix indentation.
685 * valprint.h: Fix indentation.
686 * value.c: Fix indentation.
687 * value.h: Fix indentation.
688 * varobj.c: Fix indentation.
689 * vax-tdep.c: Fix indentation.
690 * windows-nat.c: Fix indentation.
691 * windows-tdep.c: Fix indentation.
692 * xcoffread.c: Fix indentation.
693 * xml-syscall.c: Fix indentation.
694 * xml-tdesc.c: Fix indentation.
695 * xstormy16-tdep.c: Fix indentation.
696 * xtensa-config.c: Fix indentation.
697 * xtensa-linux-nat.c: Fix indentation.
698 * xtensa-linux-tdep.c: Fix indentation.
699 * xtensa-tdep.c: Fix indentation.
700
e1f57067
AB
7012020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
702 Craig Blackmore <craig.blackmore@embecosm.com>
703
704 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
705 as an unsigned value.
706
ae7754b2
TT
7072020-11-01 Tom Tromey <tom@tromey.com>
708
709 * dbxread.c (dbx_end_psymtab): Update.
710 * dwarf2/read.c (process_psymtab_comp_unit_reader)
711 (build_type_psymtabs_reader): Update.
712 * xcoffread.c (xcoff_end_psymtab): Update.
713 * ctfread.c (scan_partial_symbols): Update.
714 * psymtab.c (sort_pst_symbols): Remove.
715 (partial_symtab::end): Rename from end_psymtab_common. Inline
716 sort_pst_symbols.
717 * psympriv.h (struct partial_symtab) <end>: New method.
718 (end_psymtab_common): Don't declare.
719
0684bb51
TT
7202020-11-01 Tom Tromey <tom@tromey.com>
721
722 * symmisc.c (count_psyms): New function.
723 (print_objfile_statistics): Use it.
724 * psymtab.c (append_psymbol_to_list): Remove.
725 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
726 * objfiles.h (struct objstats) <n_psyms>: Remove.
727
089002bb
TT
7282020-11-01 Tom Tromey <tom@tromey.com>
729
730 * dbxread.c (dbx_end_psymtab): Update.
731 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
732 (build_type_psymtabs_reader): Update.
733 * xcoffread.c (xcoff_end_psymtab): Update.
734 * ctfread.c (scan_partial_symbols): Update.
735 * psympriv.h (end_psymtab_common): Update.
736 * psymtab.c (end_psymtab_common): Remove objfile parameter.
737 (sort_pst_symbols): Likewise.
738
525454d6
TT
7392020-11-01 Tom Tromey <tom@tromey.com>
740
741 * dbxread.c (dbx_symfile_read): Update.
742 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
743 * xcoffread.c (xcoff_initial_scan): Update.
744 * psympriv.h (init_psymbol_list): Don't declare.
745 * psymtab.c (init_psymbol_list): Remove.
746
60bd1d53
JB
7472020-11-01 Joel Brobecker <brobecker@adacore.com>
748
749 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
750 gnat_encoded_fixed_type_info. Update all callers.
751
db99d0d0
JB
7522020-11-01 Joel Brobecker <brobecker@adacore.com>
753
754 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
755 line too long.
756
75f24e86
JB
7572020-11-01 Joel Brobecker <brobecker@adacore.com>
758
759 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
760 cast_from_fixed. Update all callers.
761 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
762 Update all callers.
763 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
764 Update all callers.
765 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
766 ada_scaling_factor.
767 * ada-typeprint.c: Replace call to ada_scaling_factor by call
768 to print_gnat_encoded_fixed_point_type.
769 * ada-valprint.c: Likewise.
770
4f0469cd
AB
7712020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
772
773 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
774 (debug_prefixed_printf): Add check of debug_displaced flag.
775 * linux-nat.c (linux_nat_debug_printf): Add check of
776 debug_linux_nat flag.
777
17417fb0
SM
7782020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
779
780 * infrun.c (infrun_debug_printf_1): Remove.
781 (displaced_debug_printf_1): Remove.
782 (stop_all_threads): Use debug_prefixed_printf.
783 * infrun.h (infrun_debug_printf_1): Remove.
784 (infrun_debug_printf): Use debug_prefixed_printf.
785 (displaced_debug_printf_1): Remove.
786 (displaced_debug_printf): Use debug_prefixed_printf.
787 * linux-nat.c (linux_nat_debug_printf_1): Remove.
788 (linux_nat_debug_printf): Use debug_prefixed_printf.
789
ad6dba1c
SM
7902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
791
792 * configure: Re-generate.
793 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
794 AC_LANG_PROGRAM.
795
b6fb30ed
SM
7962020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
797
798 * configure: Re-generate.
799
5164c117
SM
8002020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
801
802 * configure: Re-generate.
803
864ca435
SM
8042020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
805
806 * configure: Re-generate.
807
b9442ec1
SM
8082020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
809
810 * configure: Re-generate.
811
294f2697
SM
8122020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * acinclude.m4: Modernize.
815 * configure: Re-generate.
816
5593a99a
SM
8172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
818
819 * configure.ac: Modernize.
820 * configure: Re-generate.
821
e41fda1d
SM
8222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
823
824 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
825 * configure: Re-generate.
826 * configure.ac: Remove AM_PROG_CC_STDC.
827
91e1a0ed
SM
8282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
829
830 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
831 AC_CANONICAL_SYSTEM.
832 * configure: Re-generate.
833
136821d9
SM
8342020-10-30 Simon Marchi <simon.marchi@efficios.com>
835
836 * infrun.h (displaced_debug_printf): New macro. Replace
837 displaced debug prints throughout to use it.
838 (displaced_debug_printf_1): New declaration.
839 (displaced_step_dump_bytes): Return string, remove ui_file
840 parameter, update all callers.
841 * infrun.c (displaced_debug_printf_1): New function.
842 (displaced_step_dump_bytes): Return string, remove ui_file
843 parameter
844
aa2045e7
SM
8452020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
846
847 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
848
b1ec2735
TT
8492020-10-30 Tom Tromey <tromey@adacore.com>
850
851 * Makefile.in (stamp-init): Depend on config.status.
852
b78b3a29
TBA
8532020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
854
855 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
856
d70bdd3c
PA
8572020-10-30 Pedro Alves <pedro@palves.net>
858
859 * thread.c (lookup_selected_frame): Move ...
860 * frame.c (lookup_selected_frame): ... here.
861
79952e69
PA
8622020-10-30 Pedro Alves <pedro@palves.net>
863
864 * blockframe.c (block_innermost_frame): Use get_selected_frame.
865 * frame.c
866 (scoped_restore_selected_frame::scoped_restore_selected_frame):
867 Use save_selected_frame. Save language as well.
868 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
869 Use restore_selected_frame, and restore language as well.
870 (selected_frame_id, selected_frame_level): New.
871 (selected_frame): Update comments.
872 (save_selected_frame, restore_selected_frame): New.
873 (get_selected_frame): Use lookup_selected_frame.
874 (get_selected_frame_if_set): Delete.
875 (select_frame): Record selected_frame_level and selected_frame_id.
876 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
877 fields.
878 (get_selected_frame): Make 'message' parameter optional.
879 (get_selected_frame_if_set): Delete declaration.
880 (select_frame): Update comments.
881 (save_selected_frame, restore_selected_frame)
882 (lookup_selected_frame): Declare.
883 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
884 * infrun.c (struct infcall_control_state) <selected_frame_level>:
885 New field.
886 (save_infcall_control_state): Use save_selected_frame.
887 (restore_selected_frame): Delete.
888 (restore_infcall_control_state): Use restore_selected_frame.
889 * stack.c (select_frame_command_core, frame_command_core): Use
890 get_selected_frame.
891 * thread.c (restore_selected_frame): Rename to ...
892 (lookup_selected_frame): ... this and make extern. Select the
893 current frame if the frame level is -1.
894 (scoped_restore_current_thread::restore): Also restore the
895 language.
896 (scoped_restore_current_thread::~scoped_restore_current_thread):
897 Don't try/catch.
898 (scoped_restore_current_thread::scoped_restore_current_thread):
899 Save the language as well. Use save_selected_frame.
900
58103c33
SM
9012020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
902
903 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
904 documentation.
905 * gdbarch.h: Re-generate.
906
40a53766
SM
9072020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
908
909 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
910 parameter.
911 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
912 Likewise.
913 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
914 Likewise.
915 * arch-utils.c (default_displaced_step_hw_singlestep):
916 Likewise.
917 * arch-utils.h (default_displaced_step_hw_singlestep):
918 Likewise.
919 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
920 Likewise.
921 * s390-tdep.c (s390_displaced_step_hw_singlestep):
922 Likewise.
923 * gdbarch.c: Re-generate.
924 * gdbarch.h: Re-generate.
925 * infrun.c (resume_1): Adjust.
926
8407f91b
TT
9272020-10-29 Tom Tromey <tom@tromey.com>
928
929 * progspace.c (program_space::~program_space): Don't call
930 exec_close.
931
5008b3b2
TT
9322020-10-29 Tom Tromey <tom@tromey.com>
933
934 * exec.c (exec_target::close): Don't change current program
935 space.
936
d9eebde0
TT
9372020-10-29 Tom Tromey <tom@tromey.com>
938
939 * symfile.c (add_symbol_file_command): Update.
940 * exec.c (program_space::add_target_sections): Rename.
941 * symfile-mem.c (symbol_file_add_from_memory): Update.
942 * progspace.h (struct program_space) <add_target_sections>:
943 Declare new overload.
944 * exec.h (add_target_sections_of_objfile): Don't declare.
945
3769e227
TT
9462020-10-29 Tom Tromey <tom@tromey.com>
947
948 * solib.c (solib_map_sections): Update.
949 * exec.c (program_space::add_target_sections): Now a method.
950 (exec_file_attach): Update.
951 * exec.h (add_target_sections): Don't declare.
952 * progspace.h (struct program_space) <add_target_sections>:
953 Declare.
954
2a3f84af
TT
9552020-10-29 Tom Tromey <tom@tromey.com>
956
957 * progspace.h (struct program_space) <remove_target_sections>:
958 Declare.
959 * exec.c (program_space::remove_target_sections): Now a method.
960 * exec.h (remove_target_sections): Don't declare.
961
004eecfd
TT
9622020-10-29 Tom Tromey <tom@tromey.com>
963
964 * inferior.c (delete_inferior): Update.
965 * progspace.c (program_space::empty): Rename from
966 program_space_empty_p. Return bool.
967 * progspace.h (struct program_space) <empty>: New method.
968 (program_space_empty_p): Don't declare.
969
e39fb971
TT
9702020-10-29 Tom Tromey <tom@tromey.com>
971
972 * progspace.c (program_space::~program_space): Don't call
973 clear_program_space_solib_cache.
974 (program_space::clear_solib_cache): Rename from
975 clear_solib_cache.
976 * solib.c (handle_solib_event): Update.
977 * progspace.h (struct program_space) <clear_solib_cache>: New
978 method.
979 (clear_program_space_solib_cache): Don't declare.
980
a42d7dd8
TT
9812020-10-29 Tom Tromey <tom@tromey.com>
982
983 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
984 * target.c (info_target_command): Update.
985 * symfile.c (syms_from_objfile_1, finish_new_objfile)
986 (symbol_file_clear, reread_symbols): Update.
987 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
988 * stabsread.c (scan_file_globals): Update.
989 * solib.c (update_solib_list): Update.
990 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
991 (svr4_fetch_objfile_link_map, enable_break)
992 (svr4_relocate_main_executable)
993 (svr4_iterate_over_objfiles_in_search_order): Update.
994 * solib-frv.c (lm_base, enable_break)
995 (frv_relocate_main_executable): Update.
996 (main_got, frv_fdpic_find_canonical_descriptor): Update.
997 (frv_fetch_objfile_link_map): Update.
998 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
999 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1000 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1001 * remote.c (remote_target::get_offsets): Update.
1002 (remote_target::start_remote)
1003 (extended_remote_target::post_attach): Update.
1004 * objfiles.c (entry_point_address_query): Update.
1005 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1006 * minsyms.c (get_symbol_leading_char): Update.
1007 * frame.c (inside_main_func): Update.
1008 * progspace.h (symfile_objfile): Remove macro.
1009
19f6550e
TT
10102020-10-29 Tom Tromey <tom@tromey.com>
1011
1012 * exec.c (exec_file_attach): Update.
1013 * progspace.c (program_space::exec_close): Update.
1014 * progspace.h (struct program_space) <ebfd>: Now a
1015 gdb_bfd_ref_ptr.
1016 <set_exec_bfd>: Change argument type.
1017 <exec_bfd>: Update.
1018
7e10abd1
TT
10192020-10-29 Tom Tromey <tom@tromey.com>
1020
1021 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1022 * symfile.c (reread_symbols): Update.
1023 * symfile-mem.c (add_symbol_file_from_memory_command)
1024 (add_vsyscall_page): Update.
1025 * source-cache.c (source_cache::get_plain_source_lines): Update.
1026 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1027 (svr4_current_sos_direct, svr4_exec_displacement)
1028 (svr4_relocate_main_executable): Update.
1029 (svr4_iterate_over_objfiles_in_search_order): Update.
1030 * solib-frv.c (enable_break2, enable_break): Update.
1031 * solib-dsbt.c (lm_base, enable_break): Update.
1032 * solib-darwin.c (find_program_interpreter)
1033 (darwin_solib_create_inferior_hook): Update.
1034 * sol-thread.c (rw_common, ps_pdmodel): Update.
1035 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1036 * remote.c (compare_sections_command)
1037 (remote_target::trace_set_readonly_regions): Update.
1038 * remote-sim.c (get_sim_inferior_data)
1039 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1040 (gdbsim_target_open, gdbsim_target::files_info): Update.
1041 * exec.h (exec_bfd): Remove macro.
1042 * progspace.c (initialize_progspace): Update.
1043 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1044 Update.
1045 * nto-procfs.c (nto_procfs_target::post_attach)
1046 (nto_procfs_target::create_inferior): Update.
1047 * maint.c (maintenance_info_sections): Update.
1048 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1049 Update.
1050 * infcmd.c (post_create_inferior): Update.
1051 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1052 (objfile_find_memory_regions): Update.
1053 * exec.c (validate_exec_file, exec_file_attach)
1054 (exec_read_partial_read_only, print_section_info): Update.
1055 * corelow.c (core_target_open): Update.
1056 * corefile.c (reopen_exec_file, validate_files): Update.
1057 * arm-tdep.c (gdb_print_insn_arm): Update.
1058 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1059 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1060 methods.
1061
b55221ab
TT
10622020-10-29 Tom Tromey <tom@tromey.com>
1063
1064 * progspace.h (current_target_sections): Remove macro.
1065 * solib-svr4.c (scan_dyntag): Update.
1066 * solib-dsbt.c (scan_dyntag): Update.
1067 * exec.c (exec_target::close): Update.
1068 (add_target_sections, add_target_sections_of_objfile)
1069 (remove_target_sections, exec_target::get_section_table)
1070 (exec_target::files_info, set_section_command)
1071 (exec_set_section_address, exec_target::has_memory)
1072 (exec_target::has_memory): Update.
1073
5a36e715
TT
10742020-10-29 Tom Tromey <tom@tromey.com>
1075
1076 * source-cache.c (source_cache::get_plain_source_lines): Use
1077 current_program_space.
1078 * corefile.c (reopen_exec_file): Use current_program_space.
1079 * exec.c (exec_file_attach): Use current_program_space.
1080 * exec.h (exec_bfd_mtime): Remove.
1081
784c8592
TT
10822020-10-29 Tom Tromey <tom@tromey.com>
1083
1084 * gcore.c (default_gcore_mach): Remove.
1085 (create_gcore_bfd): Update.
1086
8a4f1402
TT
10872020-10-29 Tom Tromey <tom@tromey.com>
1088
1089 * progspace.c (program_space::exec_close): New method, from
1090 exec_close in exec.c.
1091 * exec.c (exec_close): Move to progspace.c.
1092 (exec_target::close, exec_file_attach): Update.
1093 * progspace.h (struct program_space) <exec_close>: Declare
1094 method.
1095
c20cb686
TT
10962020-10-29 Tom Tromey <tom@tromey.com>
1097
1098 * progspace.h (struct program_space) <exec_filename>: Rename from
1099 pspace_exec_filename. Now a unique_xmalloc_ptr.
1100 * inferior.c (print_selected_inferior): Update.
1101 (print_inferior): Update.
1102 * mi/mi-main.c (print_one_inferior): Update.
1103 * exec.h (exec_filename): Remove macro.
1104 * corefile.c (get_exec_file): Update.
1105 * exec.c (exec_close): Update.
1106 (exec_file_attach): Update.
1107 * progspace.c (clone_program_space): Update.
1108 (print_program_space): Update.
1109
6be2a9ab
TT
11102020-10-29 Tom Tromey <tom@tromey.com>
1111
1112 * target-section.h (struct target_section): Add constructor.
1113 * exec.c (build_section_table, add_target_sections_of_objfile):
1114 Update.
1115 * corelow.c (core_target::build_file_mappings): Update.
1116
cfaa8f76
TBA
11172020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1118
1119 PR gdb/19318
1120 * inferior.c (detach_inferior_command): Restore the current thread.
1121 (kill_inferior_command): Ditto.
1122
1b00ef06
TV
11232020-10-28 Tom de Vries <tdevries@suse.de>
1124
1125 PR symtab/26772
1126 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1127 map, check it in the "best match" loop.
1128
7f40ce1a
SM
11292020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1130
1131 * m32c-tdep.c: Remove unused includes.
1132
5eb9e3f5
SM
11332020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1134
1135 * xtensa-tdep.c: Remove includes.
1136
b1d4d8d1
TBA
11372020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1138
1139 * breakpoint.c (struct condition_command_opts): New struct.
1140 (condition_command_option_defs): New static global.
1141 (make_condition_command_options_def_group): New function.
1142 (condition_completer): Update to consider the '-force' flag.
1143 (condition_command): Use gdb::option for the '-force' flag.
1144
bd24c5d6
TV
11452020-10-27 Tom de Vries <tdevries@suse.de>
1146
1147 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1148 symbols in section check.
1149
61eb46a4
TV
11502020-10-27 Tom de Vries <tdevries@suse.de>
1151
1152 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1153
733d554a
TBA
11542020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1155
1156 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1157 * breakpoint.c: Update the help text of the 'condition' and 'break'
1158 commands.
1159 (set_breakpoint_condition): Take a new bool parameter
1160 to control whether condition definition should be forced even when
1161 the condition expression is invalid in all of the current locations.
1162 (condition_command): Update the call to 'set_breakpoint_condition'.
1163 (find_condition_and_thread): Take the "-force-condition" flag into
1164 account.
1165 * linespec.c (linespec_keywords): Add "-force-condition" as an
1166 element.
1167 (FORCE_KEYWORD_INDEX): New #define.
1168 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1169 as a keyword.
1170 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1171 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1172 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1173 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1174
b5fa468f
TBA
11752020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1176
1177 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1178 * breakpoint.c (set_breakpoint_location_condition): New function.
1179 (set_breakpoint_condition): Disable a breakpoint location if parsing
1180 the condition string gives an error.
1181 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1182 (build_target_condition_list): Ditto.
1183 (build_target_command_list): Ditto.
1184 (build_bpstat_chain): Ditto.
1185 (print_one_breakpoint_location): Ditto.
1186 (print_one_breakpoint): Ditto.
1187 (breakpoint_1): Ditto.
1188 (bp_location::bp_location): Ditto.
1189 (locations_are_equal): Ditto.
1190 (update_breakpoint_locations): Ditto.
1191 (enable_disable_bp_num_loc): Ditto.
1192 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1193 (find_condition_and_thread_for_sals): New static function.
1194 (create_breakpoint): Call find_condition_and_thread_for_sals.
1195 (location_to_sals): Call find_condition_and_thread_for_sals instead
1196 of find_condition_and_thread.
1197
1c47ec3e
TV
11982020-10-26 Tom de Vries <tdevries@suse.de>
1199
1200 * dwarf2/read.c (process_full_comp_unit): Call
1201 dwarf2_find_base_address.
1202
6390859c
TT
12032020-10-26 Tom Tromey <tromey@adacore.com>
1204
1205 * gdbtypes.c (create_range_type): Revert previous patch. Add
1206 comment.
1207
d744f0f9
PA
12082020-10-26 Pedro Alves <pedro@palves.net>
1209
1210 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1211 (my_waitpid): Use gdb::handle_eintr.
1212
006811bc
SM
12132020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1214
1215 * acinclude.m4: Update ptrace.m4 path.
1216 * ptrace.m4: Moved to gdbsupport.
1217
c75e31a1
SM
12182020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1219
1220 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1221 instead of target_gdbarch.
1222
32495661
SM
12232020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1224
1225 * jit.c (jit_reader_load_command): Pass current inferior.
1226 (jit_inferior_init): Change parameter type to inferior, use it.
1227 (jit_inferior_created): Remove.
1228 (jit_inferior_created_hook): Pass inferior parameter down.
1229 (_initialize_jit): Use jit_inferior_created_hook instead of
1230 jit_inferior_created.
1231 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1232 * infrun.c (follow_exec): Pass inferior to
1233 jit_inferior_created_hook.
1234
3f66685e
SM
12352020-10-24 Simon Marchi <simon.marchi@efficios.com>
1236
1237 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1238 parameter and use it.
1239 (thread_db_inferior_created): Pass inferior argument.
1240
a0ff652f
SM
12412020-10-24 Simon Marchi <simon.marchi@efficios.com>
1242
1243 * aix-thread.c (aix_thread_inferior_created): Add inferior
1244 parameter.
1245 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1246 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1247 * jit.c (jit_inferior_created): Likewise.
1248 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1249 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1250 * observable.h (inferior_created): Likewise.
1251 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1252 * symfile-mem.c (add_vsyscall_page): Likewise.
1253 * infcmd.c (post_create_inferior): Pass inferior argument.
1254
3c67532c
JB
12552020-10-24 Joel Brobecker <brobecker@adacore.com>
1256
1257 GDB 10.1 released.
1258
8747316e
JB
12592020-10-23 Joel Brobecker <brobecker@adacore.com>
1260
1261 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1262 to ada_check_typedef.
1263
1a0ea399
AB
12642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1265
1266 * f-exp.y (f_parse): Rename to...
1267 (f_language::parser): ...this.
1268 * f-lang.c (f_get_encoding): Rename to...
1269 (f_language::get_encoding): ...this.
1270 (f_op_print_tab): Rename to...
1271 (f_language::op_print_tab): ...this.
1272 (exp_descriptor_f): Rename to...
1273 (f_language::exp_descriptor_tab): ...this.
1274 (class f_language): Moved to f-lang.h.
1275 (f_language::language_arch_info): New function, moved out of class
1276 declaration.
1277 (f_language::search_name_hash): Likewise.
1278 (f_language::lookup_symbol_nonlocal): Likewise.
1279 (f_language::get_symbol_name_matcher_inner): Likewise.
1280 * f-lang.h: Add 'valprint.h' include.
1281 (class f_language): Moved here from f-lang.c.
1282 * f-typeprint.c (f_type_print_args): Delete commented out
1283 declaration.
1284 (f_print_typedef): Rename to...
1285 (f_language::print_typedef): ...this.
1286 (f_print_type): Rename to...
1287 (f_language::print_type): ...this.
1288 (f_type_print_varspec_prefix): Delete declaration and rename to...
1289 (f_language::f_type_print_varspec_prefix): ...this.
1290 (f_type_print_varspec_suffix): Delete declaration and rename to...
1291 (f_language::f_type_print_varspec_suffix): ...this.
1292 (f_type_print_base): Delete declaration and rename to...
1293 (f_language::f_type_print_base): ...this.
1294 * f-valprint.c (f_value_print_inner): Rename to...
1295 (f_language::value_print_inner): ...this.
1296 * parse.c: Delete 'f-lang.h' include.
1297
88cefd9b
AB
12982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * language.h (language_defn::print_type): Add variable names in
1301 declaration, and update header comment.
1302
5399db93
AB
13032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1304
1305 * ada-lang.c (ada_language::demangle): Rename to...
1306 (ada_language::demangle_symbol): ...this.
1307 * c-lang.c (cplus_language::demangle): Rename to...
1308 (cplus_language::demangle_symbol): ...this.
1309 * d-lang.c (d_language::demangle): Rename to...
1310 (d_language::demangle_symbol): ...this.
1311 * f-lang.c (f_language::demangle): Rename to...
1312 (f_language::demangle_symbol): ...this.
1313 * go-lang.c (go_language::demangle): Rename to...
1314 (go_language::demangle_symbol): ...this.
1315 * language.c (language_demangle): Update call to demangle_symbol.
1316 (auto_or_unknown_language::demangle): Rename to...
1317 (auto_or_unknown_language::demangle_symbol): ...this.
1318 * language.h (language_defn::demangle): Rename to...
1319 (language_defn::demangle_symbol): ...this.
1320 * objc-lang.c (objc_language::demangle): Rename to...
1321 (objc_language::demangle_symbol): ...this.
1322 * rust-lang.c (rust_language::demangle): Rename to...
1323 (rust_language::demangle_symbol): ...this.
1324
4b2f86ef
AB
13252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1328 (iterate_over_file_blocks): Replace use of macro with the macros
1329 definition.
1330
e74b39de
AB
13312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1334 * valprint.c (maybe_print_array_index): Replace use of macro with
1335 the macros definition.
1336
00c696a6
AB
13372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1338
1339 * ada-lang.c (ada_language::print_array_index): Call value_print
1340 directly.
1341 * language.c (language_defn::print_array_index): Likewise.
1342 * language.h (LA_VALUE_PRINT): Delete.
1343 * valprint.c (value_print): Call value_print on the
1344 current_language directly.
1345
d3b67c56
AB
13462020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1347
1348 * language.h (LA_PRINT_TYPEDEF): Delete.
1349 * typeprint.c (typedef_print): Call print_typedef directly on the
1350 current_language object.
1351
790e2a12
AB
13522020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1353
1354 * m2-exp.y (m2_parse): Rename to...
1355 (m2_language::parser): ...this. Update function signature.
1356 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1357 (m2_op_print): Rename to...
1358 (m2_language::op_print_tab): ...this, and make const.
1359 (exp_descriptor_modula2): Rename to...
1360 (m2_language::exp_descriptor_modula2): ...this.
1361 (class m2_language): Move to m2-lang.h.
1362 (m2_language::language_arch_info): New function, moved out of
1363 class declaration.
1364 (m2_language::printchar): New function, body from m2_printchar.
1365 (m2_language::printstr): New function, moved out of class
1366 declaration.
1367 (m2_language::emitchar): Likewise.
1368 * m2-lang.h (m2_parse): Delete declaration.
1369 (m2_print_typedef): Delete declaration.
1370 (m2_value_print_inner): Delete declaration.
1371 (class m2_language): Class declaration moved from m2-lang.c,
1372 larger functions are left in m2-lang.c.
1373 * m2-typeprint.c (m2_print_typedef): Rename to...
1374 (m2_language::print_typedef): ...this, and update function
1375 signature.
1376 * m2-valprint.c (m2_value_print_inner): Rename to...
1377 (m2_language::value_print_inner): ...this, replace use of
1378 LA_PRINT_STRING with a direct call to printstr member function,
1379 and update recursive call.
1380
b01175fc
AB
13812020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1382
1383 * language.c (default_is_string_type_p): Delete, implementation
1384 moved into auto_or_unknown_language::is_string_type_p.
1385 (unk_op_print_tab): Moved into
1386 auto_or_unknown_language::opcode_print_table.
1387 (unknown_language_arch_info): Delete, implementation moved into
1388 auto_or_unknown_language::language_arch_info.
1389 (class auto_or_unknown_language): New class, member functions
1390 copied from unknown_language class, with some updates.
1391 (class unknown_language): Most member functions moved into
1392 auto_or_unknown_language class. Inherit from
1393 auto_or_unknown_language class.
1394 (class auto_language): Inherit from auto_or_unknown_language.
1395 Delete most member functions.
1396
1a97fe8c
HD
13972020-10-22 Hannes Domani <ssbssa@yahoo.de>
1398
1399 * stabsread.c (read_member_functions): Remove gdb_assert.
1400
6b9d0dfd
HD
14012020-10-22 Hannes Domani <ssbssa@yahoo.de>
1402
1403 * gdbtypes.c (init_complex_type): Check target type name.
1404
4b4bb603
SM
14052020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1406
1407 * target-debug.h (target_debug_print_struct_target_ops_p):
1408 Remove.
1409 (target_debug_print_async_callback_ftype_p): Remove.
1410 (target_debug_print_struct_trace_state_variable_p): Remove.
1411 (target_debug_print_struct_traceframe_info_p): Remove.
1412 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1413 (target_debug_print_enum_btrace_format): Remove.
1414 (target_debug_print_enum_info_proc_what): Remove.
1415 (target_debug_print_thread_info_pp): Remove.
1416
24f5300a
SM
14172020-10-22 Simon Marchi <simon.marchi@efficios.com>
1418
1419 * target.h (struct target_ops) <make_corefile_notes>:
1420 Change return type to unique pointer.
1421 * target.c (dummy_make_corefile_notes): Likewise.
1422 * exec.c (struct exec_target) <make_corefile_notes>:
1423 Likewise.
1424 (exec_target::make_corefile_notes): Likewise.
1425 * procfs.c (class procfs_target) <make_corefile_notes>:
1426 Likewise.
1427 (procfs_do_thread_registers): Adjust to unique pointer.
1428 (struct procfs_corefile_thread_data): Add constructor.
1429 <note_data>: Change type to unique pointer.
1430 (procfs_corefile_thread_callback): Adjust to unique pointer.
1431 (procfs_target::make_corefile_notes): Change return type to
1432 unique pointer.
1433 * target-delegates.c: Re-generate.
1434 * gcore.c (write_gcore_file_1): Adjust.
1435 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1436 New.
1437
5fb4027f
TV
14382020-10-22 Tom de Vries <tdevries@suse.de>
1439
1440 * block.c (find_block_in_blockvector): Make sure the returned block
1441 contains pc.
1442
4a636814
SM
14432020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1444
1445 PR gdb/26693
1446 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1447 parameter.
1448 (load_cu): Pass existing CU.
1449 (process_imported_unit_die): Likewise.
1450 (follow_die_offset): Likewise.
1451
1bd57575
LM
14522020-10-22 Luis Machado <luis.machado@linaro.org>
1453
1454 * corelow.c (core_target::xfer_partial): Also check for an empty
1455 m_core_unavailable_mappings vector.
1456
6b4c676c
AB
14572020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1458
1459 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1460 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1461 * f-exp.y (arglist): Allow for a series of subranges.
1462 (subrange): Add cases for subranges with strides.
1463 * f-lang.c (value_f90_subarray): Catch use of array strides and
1464 throw an error.
1465 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1466
f2d8e4c5
AB
14672020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1468
1469 * expprint.c (print_subexp_standard): Change enum range_type to
1470 range_flag and rename variables to match.
1471 (dump_subexp_body_standard): Likewise.
1472 * expression.h (enum range_type): Rename to...
1473 (enum range_flag): ...this.
1474 (range_types): Rename to...
1475 (range_flags): ...this.
1476 * f-lang.c (value_f90_subarray): Change enum range_type to
1477 range_flag and rename variables to match.
1478 * parse.c (operator_length_standard): Likewise.
1479 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1480 range_type to range_flag.
1481 * rust-lang.c (rust_evaluate_funcall): Likewise.
1482 (rust_range): Likewise.
1483 (rust_compute_range): Likewise.
1484 (rust_subscript): Likewise.
1485
2f1b18db
AB
14862020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1487
1488 * expprint.c (print_subexp_standard): Update to reflect changes to
1489 enum range_type.
1490 (dump_subexp_body_standard): Likewise.
1491 * expression.h (enum range_type): Convert to a bit field enum, and
1492 make the enum unsigned.
1493 * f-exp.y (subrange): Update to reflect changes to enum
1494 range_type.
1495 * f-lang.c (value_f90_subarray): Likewise.
1496 * parse.c (operator_length_standard): Likewise.
1497 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1498 * rust-lang.c (rust_range): Likewise.
1499 (rust_compute_range): Likewise.
1500 (rust_subscript): Likewise.
1501
a46d1843
SM
15022020-10-21 Simon Marchi <simon.marchi@efficios.com>
1503
1504 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1505 (displaced_step_in_progress): Fix comment.
1506
c21f37a8
SM
15072020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1508
1509 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1510 * gdbarch.c: Re-generate.
1511 * gdbarch.h: Re-generate.
1512 * gcore.c (write_gcore_file_1): Adjust.
1513 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1514 constructor.
1515 <note_data>: Change type to unique pointer.
1516 <abort_iteration>: Change type to bool.
1517 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1518 (fbsd_collect_thread_registers): Return void, adjust.
1519 (struct fbsd_corefile_thread_data): Add construtor.
1520 <note_data>: Change type to unique pointer.
1521 (fbsd_corefile_thread): Adjust.
1522 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1523 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1524 to unique pointer, adjust.
1525 (struct linux_collect_regset_section_cb_data): Add constructor.
1526 <note_data>: Change type to unique pointer.
1527 <abort_iteration>: Change type to bool.
1528 (linux_collect_thread_registers): Return void, adjust.
1529 (struct linux_corefile_thread_data): Add constructor.
1530 <note_data>: Change type to unique pointer.
1531 (linux_corefile_thread): Adjust.
1532 (linux_make_corefile_notes): Return unique pointer, adjust.
1533
07fbbd01
SM
15342020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1535
1536 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1537 * gdbarch.c: Re-generate.
1538 * gdbarch.h: Re-generate.
1539 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1540 bool.
1541 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1542 Likewise.
1543 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1544 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1545 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1546 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1547
39535193
SM
15482020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1549
1550 * gdbarch.sh: Make generated predicates return bool.
1551 * gdbarch.c: Re-generate.
1552 * gdbarch.h: Re-generate.
1553
ad523d01
TT
15542020-10-20 Tom Tromey <tom@tromey.com>
1555
1556 * varobj-iter.h (struct varobj_item): Remove typedef.
1557
c4464ade
SM
15582020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1559
1560 * infrun.c (currently_stepping): Change int to bool
1561 (maybe_software_singlestep): Likewise.
1562 (show_stop_on_solib_events): Likewise.
1563 (stepping_past_nonsteppable_watchpoint): Likewise.
1564 (displaced_step_in_progress_any_inferior): Likewise.
1565 (displaced_step_in_progress_thread): Likewise.
1566 (keep_going_stepped_thread): Likewise.
1567 (thread_still_needs_step_over): Likewise.
1568 (start_step_over): Likewise.
1569 (do_target_resume): Likewise.
1570 (resume_1): Likewise.
1571 (clear_proceed_status): Likewise.
1572 (thread_still_needs_step_over_bp): Likewise.
1573 (proceed): Likewise.
1574 (switch_back_to_stepped_thread): Likewise.
1575 (adjust_pc_after_break): Likewise.
1576 (stepped_in_from): Likewise.
1577 (handle_stop_requested): Likewise.
1578 (handle_syscall_event): Likewise.
1579 (handle_no_resumed): Likewise.
1580 (handle_inferior_event): Likewise.
1581 (finish_step_over): Likewise.
1582 (handle_signal_stop): Likewise.
1583 (process_event_stop_test): Likewise.
1584
2eb20436
SM
15852020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1586
1587 * infrun.c (get_displaced_stepping_state): Fix comment.
1588
e0c45ded
AS
15892020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1590
1591 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1592
22cc388e
TT
15932020-10-19 Tom Tromey <tromey@adacore.com>
1594
1595 PR tui/26719
1596 * tui/tui-winsource.h (struct tui_source_window_base)
1597 <refresh_window>: Rename from refresh_pad.
1598 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1599 Rename from refresh_pad.
1600 (tui_source_window_base::show_source_content)
1601 (tui_source_window_base::do_scroll_horizontal): Update.
1602
3c6eb4d4
TBA
16032020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1604
1605 * thread.c (_initialize_thread): Fine-tune the help text of
1606 'info threads'.
1607
26703721
TBA
16082020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1609
1610 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1611
61c26be8
MS
16122020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1613
1614 * breakpoint.c (handle_jit_event): Add an argument, change how
1615 `jit_event_handler` is called.
1616
932539d7
TT
16172020-10-17 Tom Tromey <tom@tromey.com>
1618
1619 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1620 (scan_xcoff_symtab): Update.
1621 * psymtab.h (class psymtab_storage) <global_psymbols,
1622 static_psymbols, current_global_psymbols,
1623 current_static_psymbols>: Remove.
1624 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1625 (match_partial_symbol, lookup_partial_symbol): Update.
1626 (print_partial_symbols): Change parameters.
1627 (dump_psymtab, recursively_search_psymtabs)
1628 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1629 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1630 (concat): Remove.
1631 (end_psymtab_common): Simplify.
1632 (append_psymbol_to_list): Change parameters.
1633 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1634 (init_psymbol_list): Simplify.
1635 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1636 * psympriv.h (struct partial_symtab) <empty>: New method.
1637 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1638 Remove.
1639 <global_psymbols, static_psymbols>: New members.
1640 <add_psymbol>: New methods.
1641 (add_psymbol_to_list): Don't declare.
1642 (psymbol_placement): Move earlier.
1643 * mdebugread.c (parse_partial_symbols): Update.
1644 (handle_psymbol_enumerators): Change parameters.
1645 (mdebug_expand_psymtab): Update.
1646 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1647 (add_partial_symbol): Update.
1648 * dwarf2/index-write.c (write_psymbols): Change parameters.
1649 (write_one_signatured_type): Update.
1650 (recursively_count_psymbols): Update.
1651 (recursively_write_psymbols): Update.
1652 (class debug_names) <recursively_write_psymbols>: Update.
1653 <write_psymbols>: Change parameters.
1654 <write_one_signatured_type>: Update.
1655 * dbxread.c (read_dbx_symtab): Update.
1656 (dbx_end_psymtab): Use partial_symtab::empty.
1657 * ctfread.c (struct ctf_context) <pst>: New member.
1658 (create_partial_symtab): Set it.
1659 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1660 (scan_partial_symbols): Use the psymtab's context. Update.
1661
cfabbd35
TT
16622020-10-17 Tom Tromey <tom@tromey.com>
1663
1664 * valprint.c (generic_value_print): Remove comment.
1665 * m2-valprint.c (m2_value_print_inner): Remove comment.
1666 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1667 type.
1668
520596f2
TV
16692020-10-17 Tom de Vries <tdevries@suse.de>
1670
1671 PR symtab/26317
1672 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1673 symbol main.
1674
76547ab3
TV
16752020-10-14 Tom de Vries <tdevries@suse.de>
1676
1677 PR gdb/26733
1678 * solib.c (solib_contains_address_p): Handle
1679 'solib->sections == nullptr'.
1680
d3a07122
SM
16812020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1682
1683 PR gdb/26642
1684 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1685 target can't do async.
1686 * target.c (target_wait): Assert that we don't pass
1687 TARGET_WNOHANG to a target that can't async.
1688
1b71cfcf
KR
16892020-10-13 Kamil Rytarowski <n54@gmx.com>
1690
1691 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1692 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1693 * alpha-bsd-nat.c: Adjust include.
1694 * alpha-bsd-tdep.h: Adjust comment.
1695 * alpha-nbsd-tdep.c: Rename to ...
1696 * alpha-netbsd-tdep.c: ... this, adjust include.
1697 * amd64-nbsd-nat.c: Rename to ...
1698 * amd64-netbsd-nat.c: ... this, adjust include.
1699 * amd64-nbsd-tdep.c: Rename to ...
1700 * amd64-netbsd-tdep.c: ... this, adjust include.
1701 * amd64-tdep.h: Adjust include.
1702 * arm-nbsd-nat.c: Rename to ...
1703 * arm-netbsd-nat.c: ... this, adjust include.
1704 * arm-nbsd-tdep.c: Rename to ...
1705 * arm-netbsd-tdep.c: ... this, adjust include.
1706 * arm-nbsd-tdep.h: Rename to ...
1707 * arm-netbsd-tdep.h: ... this, adjust include.
1708 * configure.nat: Adjust file lists.
1709 * configure.tgt: Likewise.
1710 * hppa-nbsd-nat.c: Rename to ...
1711 * hppa-netbsd-nat.c: ... this, adjust include.
1712 * hppa-nbsd-tdep.c: Rename to ...
1713 * hppa-netbsd-tdep.c: ... this, adjust include.
1714 * i386-nbsd-nat.c: Rename to ...
1715 * i386-netbsd-nat.c: ... this, adjust include.
1716 * i386-nbsd-tdep.c: Rename to ...
1717 * i386-netbsd-tdep.c: ... this, adjust include.
1718 * m68k-bsd-nat.c: Adjust include.
1719 * mips-nbsd-nat.c: Rename to ...
1720 * mips-netbsd-nat.c: ... this, adjust include.
1721 * mips-nbsd-tdep.c: Rename to ...
1722 * mips-netbsd-tdep.c: ... this, adjust include.
1723 * mips-nbsd-tdep.h: Rename to ...
1724 * mips-netbsd-tdep.h: ... this.
1725 * nbsd-nat.c: Rename to ...
1726 * netbsd-nat.c: ... this, adjust include.
1727 * nbsd-nat.h: Rename to ...
1728 * netbsd-nat.h: ... this, adjust include.
1729 * nbsd-tdep.c: Rename to ...
1730 * netbsd-tdep.c: ... this, adjust include.
1731 * nbsd-tdep.h: Rename to ...
1732 * netbsd-tdep.h: ... this.
1733 * ppc-nbsd-nat.c: Rename to ...
1734 * ppc-netbsd-nat.c: ... this, adjust include.
1735 * ppc-nbsd-tdep.c: Rename to ...
1736 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1737 * ppc-nbsd-tdep.h: Rename to ...
1738 * ppc-netbsd-tdep.h: ... this.
1739 * sh-nbsd-nat.c: Rename to ...
1740 * sh-netbsd-nat.c: ... this, adjust include.
1741 * sh-nbsd-tdep.c: Rename to ...
1742 * sh-netbsd-tdep.c: ... this, adjust include.
1743 * sparc-nbsd-nat.c: Rename to ...
1744 * sparc-netbsd-nat.c: ... this.
1745 * sparc-nbsd-tdep.c: Rename to ...
1746 * sparc-netbsd-tdep.c: ... this, adjust include.
1747 * sparc64-nbsd-nat.c: Rename to ...
1748 * sparc64-netbsd-nat.c: ... this.
1749 * sparc64-nbsd-tdep.c: Rename to ...
1750 * sparc64-netbsd-tdep.c: ... this, adjust include.
1751 * sparc64-tdep.h: Adjust comment.
1752 * vax-bsd-nat.c: Adjust include.
1753 * vax-nbsd-tdep.c: Rename to ...
1754 * vax-netbsd-tdep.c: ... this, adjust include.
1755
d7a78e5c
TT
17562020-10-12 Tom Tromey <tom@tromey.com>
1757
1758 * target.h (struct target_ops) <get_section_table>: Update.
1759 (target_get_section_table): Update.
1760 * target.c (target_get_section_table, target_section_by_addr)
1761 (memory_xfer_partial_1): Update.
1762 * target-section.h (target_section_table): Now an alias.
1763 * target-delegates.c: Rebuild.
1764 * target-debug.h (target_debug_print_target_section_table_p):
1765 Rename from target_debug_print_struct_target_section_table_p.
1766 * symfile.c (build_section_addr_info_from_section_table): Update.
1767 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1768 * solib-svr4.c (scan_dyntag): Update.
1769 * solib-dsbt.c (scan_dyntag): Update.
1770 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1771 Update.
1772 * record-full.c (record_full_core_target::xfer_partial): Update.
1773 * progspace.h (struct program_space) <target_sections>: Update.
1774 * exec.h (print_section_info): Update.
1775 * exec.c (exec_target::close, build_section_table)
1776 (add_target_sections, add_target_sections_of_objfile)
1777 (remove_target_sections, exec_on_vfork)
1778 (section_table_available_memory)
1779 (section_table_xfer_memory_partial)
1780 (exec_target::get_section_table, exec_target::xfer_partial)
1781 (print_section_info, set_section_command)
1782 (exec_set_section_address, exec_target::has_memory): Update.
1783 * corelow.c (core_target::build_file_mappings)
1784 (core_target::xfer_partial, core_target::info_proc_mappings)
1785 (core_target::info_proc_mappings): Update.
1786 * bfd-target.c (class target_bfd): Update
1787
eda214ce
TT
17882020-10-12 Tom Tromey <tom@tromey.com>
1789
1790 * progspace.c (program_space::~program_space): Don't call
1791 clear_section_table.
1792 * exec.h (clear_section_table): Don't declare.
1793 * exec.c (exec_target::close): Update.
1794 (clear_section_table): Remove.
1795
91840ee3
TT
17962020-10-12 Tom Tromey <tom@tromey.com>
1797
1798 * exec.c (add_target_sections_of_objfile): Simplify.
1799
2d128614
TT
18002020-10-12 Tom Tromey <tom@tromey.com>
1801
1802 * solib.c (solib_map_sections): Update.
1803 * record-full.c (record_full_core_open_1): Update.
1804 * exec.h (build_section_table): Return a target_section_table.
1805 * exec.c (exec_file_attach): Update.
1806 (build_section_table): Return a target_section_table.
1807 * corelow.c (core_target::core_target): Update.
1808 * bfd-target.c (target_bfd::target_bfd): Update.
1809
bb2a6777
TT
18102020-10-12 Tom Tromey <tom@tromey.com>
1811
1812 * target.c (target_section_by_addr, memory_xfer_partial_1):
1813 Update.
1814 * target-section.h (struct target_section_table): Use
1815 std::vector.
1816 * symfile.h (build_section_addr_info_from_section_table): Take a
1817 target_section_table.
1818 * symfile.c (build_section_addr_info_from_section_table): Take a
1819 target_section_table.
1820 * solist.h (struct so_list) <sections>: Change type.
1821 <sections_end>: Remove.
1822 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1823 (solib_contains_address_p): Update.
1824 * solib-svr4.c (scan_dyntag): Update.
1825 * solib-dsbt.c (scan_dyntag): Update.
1826 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1827 Update.
1828 * record-full.c (record_full_core_start, record_full_core_end):
1829 Remove.
1830 (record_full_core_sections): New global.
1831 (record_full_core_open_1, record_full_core_target::xfer_partial):
1832 Update.
1833 * exec.h (build_section_table, section_table_xfer_memory_partial)
1834 (add_target_sections): Take a target_section_table.
1835 * exec.c (exec_file_attach, clear_section_table): Update.
1836 (resize_section_table): Remove.
1837 (build_section_table, add_target_sections): Take a
1838 target_section_table.
1839 (add_target_sections_of_objfile, remove_target_sections)
1840 (exec_on_vfork): Update.
1841 (section_table_available_memory): Take a target_section_table.
1842 (section_table_read_available_memory): Update.
1843 (section_table_xfer_memory_partial): Take a target_section_table.
1844 (print_section_info, set_section_command)
1845 (exec_set_section_address, exec_target::has_memory): Update.
1846 * corelow.c (class core_target) <m_core_section_table,
1847 m_core_file_mappings>: Remove braces.
1848 <~core_target>: Remove.
1849 (core_target::core_target): Update.
1850 (core_target::~core_target): Remove.
1851 (core_target::build_file_mappings)
1852 (core_target::xfer_memory_via_mappings)
1853 (core_target::xfer_partial, core_target::info_proc_mappings):
1854 Update.
1855 * bfd-target.c (target_bfd::xfer_partial): Update.
1856 (target_bfd::target_bfd): Update.
1857 (target_bfd::~target_bfd): Remove.
1858
7b466b10
TT
18592020-10-12 Tom Tromey <tom@tromey.com>
1860
1861 * target.h (struct target_section, struct target_section_table):
1862 Move to target-section.h.
1863 * target-section.h: New file.
1864
87a37e5e
PA
18652020-10-12 Pedro Alves <pedro@palves.net>
1866
1867 PR exp/26602
1868 * valops.c (struct struct_field_searcher): New.
1869 (update_search_result): Rename to ...
1870 (struct_field_searcher::update_result): ... this. Simplify
1871 prototype. Record all found fields.
1872 (do_search_struct_field): Rename to ...
1873 (struct_field_searcher::search): ... this. Simplify prototype.
1874 Maintain stack of visited baseclass path. Call update_result for
1875 fields too. Keep searching fields in baseclasses instead of
1876 stopping at the first found field.
1877 (search_struct_field): Use struct_field_searcher. When looking
1878 for fields, report ambiguous access attempts.
1879
9370fd51
AB
18802020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1881
1882 * frame.c (inside_main_func): Check full symbols as well as
1883 minimal symbols.
1884
59c8a30b
JB
18852020-10-09 Joel Brobecker <brobecker@adacore.com>
1886
1887 * ada-lang.c (advance_wild_match): Rewrite the function's
1888 description. Change the type of target0, t0 and t1 to char.
1889
7c184d33
TT
18902020-10-09 Tom Tromey <tromey@adacore.com>
1891
1892 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1893
5c4258f4
TT
18942020-10-09 Tom Tromey <tromey@adacore.com>
1895
1896 * ada-lang.h (ada_encode): Return std::string.
1897 * ada-lang.c (ada_encode_1): Return std::string.
1898 (ada_encode): Likewise.
1899 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1900 Update.
1901 * ada-exp.y (block_lookup, write_var_or_type): Update.
1902
3d87245c
HD
19032020-10-09 Hannes Domani <ssbssa@yahoo.de>
1904
1905 PR exp/26714
1906 * printcmd.c (print_formatted): Handle void results as
1907 unformatted prints.
1908
bbb826f5
AB
19092020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1910
1911 * arch/aarch32.c (aarch32_create_target_description): Release the
1912 target_desc_up as late as possible.
1913 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1914 * arch/amd64.c (amd64_create_target_description): Likewise.
1915 * arch/arc.c (arc_create_target_description): Return a
1916 target_desc_up, don't release it.
1917 * arch/arc.h (arc_create_target_description): Update declaration.
1918 (arc_lookup_target_description): Move target_desc_up into the
1919 cache, and return a borrowed pointer.
1920 * arch/arm.c (arm_create_target_description): Release the
1921 target_desc_up as late as possible.
1922 * arch/i386.c (i386_create_target_description): Likewise.
1923 * arch/riscv.h (riscv_create_target_description): Update
1924 declaration to match definition.
1925 * arch/tic6x.c (tic6x_create_target_description): Release the
1926 target_desc_up as late as possible.
1927
361cb219
AB
19282020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1929
1930 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1931 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1932
f5c4b229
JV
19332020-10-09 Jan Vrany <jan.vrany@labware.com>
1934
1935 * source.c (directory_command): Notify observers that "directories"
1936 parameter has changed.
1937
b2701685
TT
19382020-10-08 Tom Tromey <tom@tromey.com>
1939
1940 * cli/cli-cmds.c (print_disassembly): Style function name and
1941 addresses. Add _() wrappers.
1942
ada508b6
SV
19432020-10-08 Shahab Vahedi <shahab@synopsys.com>
1944
1945 * NEWS: Mention ARC support in GDBserver.
1946
51a948fd
AB
19472020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1948
1949 * arch/aarch32.c (aarch32_create_target_description): Release
1950 unique_ptr returned from allocate_target_description.
1951 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1952 * arch/amd64.c (amd64_create_target_description): Likewise.
1953 * arch/arc.c (arc_create_target_description): Likewise.
1954 * arch/arm.c (arm_create_target_description): Likewise.
1955 * arch/i386.c (i386_create_target_description): Likewise.
1956 * arch/riscv.c (riscv_create_target_description): Update return
1957 type. Handle allocate_target_description returning a unique_ptr.
1958 (riscv_lookup_target_description): Update to handle unique_ptr.
1959 * arch/tic6x.c (tic6x_create_target_description): Release
1960 unique_ptr returned from allocate_target_description.
1961 * features/microblaze-with-stack-protect.c: Regenerate.
1962 * features/microblaze.c: Regenerate.
1963 * features/mips-dsp-linux.c: Regenerate.
1964 * features/mips-linux.c: Regenerate.
1965 * features/mips64-dsp-linux.c: Regenerate.
1966 * features/mips64-linux.c: Regenerate.
1967 * features/nds32.c: Regenerate.
1968 * features/nios2.c: Regenerate.
1969 * features/or1k.c: Regenerate.
1970 * features/rs6000/powerpc-32.c: Regenerate.
1971 * features/rs6000/powerpc-32l.c: Regenerate.
1972 * features/rs6000/powerpc-403.c: Regenerate.
1973 * features/rs6000/powerpc-403gc.c: Regenerate.
1974 * features/rs6000/powerpc-405.c: Regenerate.
1975 * features/rs6000/powerpc-505.c: Regenerate.
1976 * features/rs6000/powerpc-601.c: Regenerate.
1977 * features/rs6000/powerpc-602.c: Regenerate.
1978 * features/rs6000/powerpc-603.c: Regenerate.
1979 * features/rs6000/powerpc-604.c: Regenerate.
1980 * features/rs6000/powerpc-64.c: Regenerate.
1981 * features/rs6000/powerpc-64l.c: Regenerate.
1982 * features/rs6000/powerpc-7400.c: Regenerate.
1983 * features/rs6000/powerpc-750.c: Regenerate.
1984 * features/rs6000/powerpc-860.c: Regenerate.
1985 * features/rs6000/powerpc-altivec32.c: Regenerate.
1986 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1987 * features/rs6000/powerpc-altivec64.c: Regenerate.
1988 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1989 * features/rs6000/powerpc-e500.c: Regenerate.
1990 * features/rs6000/powerpc-e500l.c: Regenerate.
1991 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1992 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1993 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1994 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1995 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1996 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1997 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1998 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1999 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2000 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2001 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2002 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2003 * features/rs6000/powerpc-vsx32.c: Regenerate.
2004 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2005 * features/rs6000/powerpc-vsx64.c: Regenerate.
2006 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2007 * features/rs6000/rs6000.c: Regenerate.
2008 * features/rx.c: Regenerate.
2009 * features/s390-gs-linux64.c: Regenerate.
2010 * features/s390-linux32.c: Regenerate.
2011 * features/s390-linux32v1.c: Regenerate.
2012 * features/s390-linux32v2.c: Regenerate.
2013 * features/s390-linux64.c: Regenerate.
2014 * features/s390-linux64v1.c: Regenerate.
2015 * features/s390-linux64v2.c: Regenerate.
2016 * features/s390-te-linux64.c: Regenerate.
2017 * features/s390-tevx-linux64.c: Regenerate.
2018 * features/s390-vx-linux64.c: Regenerate.
2019 * features/s390x-gs-linux64.c: Regenerate.
2020 * features/s390x-linux64.c: Regenerate.
2021 * features/s390x-linux64v1.c: Regenerate.
2022 * features/s390x-linux64v2.c: Regenerate.
2023 * features/s390x-te-linux64.c: Regenerate.
2024 * features/s390x-tevx-linux64.c: Regenerate.
2025 * features/s390x-vx-linux64.c: Regenerate.
2026 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2027 from allocate_target_description.
2028 * target-descriptions.c (allocate_target_description): Update
2029 return type.
2030 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2031 allocate_target_description.
2032
485c47e5
TT
20332020-10-07 Tom Tromey <tromey@adacore.com>
2034
2035 * unittests/search-memory-selftests.c: New file.
2036 * Makefile.in (SELFTESTS_SRCS): Add
2037 unittests/search-memory-selftests.c.
2038
3a135a91
TT
20392020-10-07 Tom Tromey <tromey@adacore.com>
2040
2041 PR gdb/16930:
2042 * findcmd.c (_initialize_mem_search): Mention that the range is
2043 inclusive.
2044
4a72de73
TT
20452020-10-07 Tom Tromey <tromey@adacore.com>
2046
2047 * target.h (simple_search_memory): Don't declare.
2048 * target.c (simple_search_memory): Move to gdbsupport.
2049 (default_search_memory): Update.
2050 * remote.c (remote_target::search_memory): Update.
2051
a038ffd8
SM
20522020-10-07 Simon Marchi <simon.marchi@efficios.com>
2053
2054 * Makefile.in (COMPILE): Add CXXFLAGS.
2055 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2056 (check-headers): Add CXXFLAGS.
2057
cc463201
AK
20582020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2059
2060 * arc-linux-tdep.h: New file.
2061 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2062 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2063 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2064 arc_linux_gregset, arc_linux_v2_regset,
2065 arc_linux_iterate_over_regset_sections,
2066 arc_linux_core_read_description): Implement.
2067 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2068 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2069 (arc_gdbarch_features_create): Add.
2070 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2071
e4bd363f
SV
20722020-10-07 Shahab Vahedi <shahab@synopsys.com>
2073
2074 * arch/arc.h: Rename "arc_gdbarch_features" to
2075 "arc_arch_features".
2076 * arc-tdep.h: Likewise.
2077 * arc-tdep.c: Likewise.
2078
b68bef99
TBA
20792020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2080
2081 * infcmd.c (attach_command): Remove the redundant call to
2082 `clear_proceed_status`.
2083
4641551a
KR
20842020-10-07 Kamil Rytarowski <n54@gmx.com>
2085
2086 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2087
91e5e8db
KR
20882020-10-07 Kamil Rytarowski <n54@gmx.com>
2089
2090 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2091 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2092 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2093
64c03bdb
SM
20942020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2095
2096 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2097 (_initialize_break_catch_sig): Don't allocate array.
2098
31a8f60f
AB
20992020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2100
2101 * symtab.c (find_pc_line): Return unmapped addresses when the
2102 requested address is also unmapped.
2103
9e6dbd8b
SM
21042020-10-05 Simon Marchi <simon.marchi@efficios.com>
2105
2106 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2107 tui/tui-out.h.
2108
a1d217e8
SM
21092020-10-05 Simon Marchi <simon.marchi@efficios.com>
2110
2111 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2112 type::is_vector instead of TYPE_VECTOR.
2113
7d144117
SM
21142020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2115
2116 * auto-load.c (auto_load_objfile_script_1): Don't use
2117 debugfile_holder as temporary variable when stripping drive
2118 letter.
2119
cd096ec8
HD
21202020-10-05 Hannes Domani <ssbssa@yahoo.de>
2121
2122 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2123 Add TYPE_CODE_COMPLEX.
2124 (amd64_windows_return_value): Fix types returned via XMM0.
2125
b58e7f72
AH
21262020-10-05 Alan Hayward <alan.hayward@arm.com>
2127
2128 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2129 AArch64/ARM maintainers.
2130
8d378f27
SM
21312020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2132
2133 * NEWS: Mention set/show debug event-loop.
2134
d5519913
TT
21352020-10-02 Tom Tromey <tromey@adacore.com>
2136
2137 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2138 REG_EXTENDED.
2139
18b67edc
SM
21402020-10-02 Simon Marchi <simon.marchi@efficios.com>
2141
2142 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2143 * procfs.c (procfs_inferior_created): Remove.
2144 (_initialize_procfs): Don't register procfs_inferior_created.
2145
6b01403b
SM
21462020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2147
2148 * async-event.c (invoke_async_signal_handlers): Add debug
2149 print.
2150 (check_async_event_handlers): Likewise.
2151 * event-top.c (show_debug_event_loop): New function.
2152 (_initialize_event_top): Register "set debug event-loop"
2153 setting.
2154
ba988419
SM
21552020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2156
2157 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2158 * debug.h: Remove.
2159 * infrun.c: Include gdbsupport/common-debug.h.
2160 * linux-nat.c: Likewise.
2161
db20ebdf
SM
21622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2163
2164 * async-event.h (create_async_signal_handler): Add name
2165 parameter.
2166 (create_async_event_handler): Likewise.
2167 * async-event.c (struct async_signal_handler) <name>: New field.
2168 (struct async_event_handler) <name>: New field.
2169 (create_async_signal_handler): Assign name.
2170 (create_async_event_handler): Assign name.
2171 * event-top.c (async_init_signals): Pass name when creating
2172 handler.
2173 * infrun.c (_initialize_infrun): Likewise.
2174 * record-btrace.c (record_btrace_push_target): Likewise.
2175 * record-full.c (record_full_open): Likewise.
2176 * remote-notif.c (remote_notif_state_allocate): Likewise.
2177 * remote.c (remote_target::open_1): Likewise.
2178 * tui/tui-win.c (tui_initialize_win): Likewise.
2179
2554f6f5
SM
21802020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2181
2182 * async-event.c (initialize_async_signal_handlers): Pass name to
2183 add_file_handler
2184 * event-top.c (ui_register_input_event_handler): Likewise.
2185 * linux-nat.c (linux_nat_target::async): Likewise.
2186 * run-on-main-thread.c (_initialize_run_on_main_thread):
2187 Likewise
2188 * ser-base.c (reschedule): Likewise.
2189 (ser_base_async): Likewise.
2190 * tui/tui-io.c: Likewise.
2191 * top.h (struct ui) <num>: New field.
2192 * top.c (highest_ui_num): New variable.
2193 (ui::ui): Initialize num.
2194
a7aba266
SM
21952020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2196
2197 * observable.h <inferior_created>: Remove parameters. Update all
2198 listeners.
2199 * inferior.h (post_create_inferior): Remove target parameter.
2200 Update all callers.
2201
048fde1e 22022020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2203
2204 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2205 and DW_MACRO_undef_strx.
2206 (dwarf_decode_macros): Likewise
2207 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2208 which is the value of DW_AT_str_offsets_base.
2209 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2210 str_offsets_base.
2211
064280be
KR
22122020-10-01 Kamil Rytarowski <n54@gmx.com>
2213
2214 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2215
6ff33035
KR
22162020-10-01 Kamil Rytarowski <n54@gmx.com>
2217
2218 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2219 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2220
1eb6eb79
KR
22212020-10-01 Kamil Rytarowski <n54@gmx.com>
2222
2223 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2224
95eb9e54
TV
22252020-09-30 Tom de Vries <tdevries@suse.de>
2226
2227 PR symtab/26683
2228 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2229
cae21f8e
TT
22302020-09-30 Tom Tromey <tromey@adacore.com>
2231
2232 * dwarf2/read.c (handle_variant): Use constant_value.
2233
529908cb
TT
22342020-09-29 Tom Tromey <tom@tromey.com>
2235
2236 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2237 (read_file_scope, dwarf2_get_pc_bounds)
2238 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2239 (read_structure_type, handle_struct_member_die)
2240 (read_enumeration_type, read_array_type, read_set_type)
2241 (read_tag_pointer_type, read_tag_reference_type)
2242 (read_subroutine_type, read_base_type, read_subrange_type)
2243 (read_full_die_1, partial_die_info::read)
2244 (partial_die_info::read, by, new_symbol)
2245 (dwarf2_const_value_data, dwarf2_const_value_attr)
2246 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2247 (prepare_one_comp_unit): Update.
2248 * dwarf2/attribute.h (DW_UNSND): Remove.
2249
c45bc3f8
TT
22502020-09-29 Tom Tromey <tom@tromey.com>
2251
2252 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2253 (read_subroutine_type, partial_die_info::read)
2254 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2255 (dwarf2_add_member_fn): Update.
2256 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2257 * dwarf2/attribute.c (attribute::as_boolean): New method.
2258
23dca5c3
TT
22592020-09-29 Tom Tromey <tom@tromey.com>
2260
2261 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2262 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2263 method.
2264 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2265
52c14d11
TT
22662020-09-29 Tom Tromey <tom@tromey.com>
2267
2268 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2269 the attribute's form.
2270
e8e5c158
TT
22712020-09-29 Tom Tromey <tom@tromey.com>
2272
2273 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2274 (dwarf2_add_member_fn): Update.
2275 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2276 * dwarf2/attribute.c (attribute::defaulted): New method, from
2277 is_valid_DW_AT_defaulted.
2278
d4df075e
TT
22792020-09-29 Tom Tromey <tom@tromey.com>
2280
2281 * dwarf2/read.c (dw2_get_file_names_reader)
2282 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2283 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2284 (dwarf2_symbol_mark_computed): Use as_unsigned.
2285 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2286 method.
2287 <form_is_section_offset>: Update comment.
2288
bf23a268
TT
22892020-09-29 Tom Tromey <tom@tromey.com>
2290
2291 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2292 dwarf2_default_access_attribute. Look up attribute.
2293 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2294 Update.
2295
7a5f294d
TT
22962020-09-29 Tom Tromey <tom@tromey.com>
2297
2298 * dwarf2/read.c (skip_one_die): Update.
2299 (read_full_die_1): Change how reprocessing is done.
2300 (partial_die_info::read): Update.
2301 (read_attribute_value): Remove need_reprocess parameter.
2302 (read_attribute): Likewise.
2303 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2304 New method.
2305
36d378cf
TT
23062020-09-29 Tom Tromey <tom@tromey.com>
2307
2308 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2309 (dwarf2_const_value_attr, dump_die_shallow)
2310 (dwarf2_fetch_constant_bytes): Update.
2311 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2312 comment.
2313 <set_address>: New method.
2314 (DW_ADDR): Remove.
2315 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2316 (attribute::as_string, attribute::as_address): Add assert.
2317
fe56917a
TT
23182020-09-29 Tom Tromey <tom@tromey.com>
2319
2320 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2321 (read_attribute_reprocess, read_attribute_value): Update.
2322 (read_attribute): Clear requires_reprocessing.
2323 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2324 form_requires_reprocessing>: New methods.
2325 <string_init>: Clear requires_reprocessing.
2326 <set_unsigned_reprocess>: New method.
2327 <name>: Shrink by one bit.
2328 <requires_reprocessing>: New member.
2329 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2330 method.
2331
414ad644
TT
23322020-09-29 Tom Tromey <tom@tromey.com>
2333
2334 * dwarf2/read.c (read_attribute_value): Update.
2335 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2336 set_unsigned>: New methods.
2337 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2338
1bc397c5
TT
23392020-09-29 Tom Tromey <tom@tromey.com>
2340
2341 * dwarf2/read.c (get_alignment, read_array_order)
2342 (read_attribute_value, dwarf2_const_value_attr)
2343 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2344 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2345 New methods.
2346 (DW_SND): Remove.
2347
630ed6b9
TT
23482020-09-29 Tom Tromey <tom@tromey.com>
2349
2350 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2351 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2352 Update.
2353 * dwarf2/attribute.h (struct attribute) <as_signature,
2354 set_signature>: New methods.
2355 (DW_SIGNATURE): Remove.
2356
9d2246fc
TT
23572020-09-29 Tom Tromey <tom@tromey.com>
2358
2359 * dwarf2/read.c (read_call_site_scope)
2360 (handle_data_member_location, dwarf2_add_member_fn)
2361 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2362 (partial_die_info::read, read_attribute_value)
2363 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2364 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2365 (dwarf2_symbol_mark_computed): Update.
2366 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2367 methods.
2368 (DW_BLOCK): Remove.
2369 * dwarf2/attribute.c (attribute::form_is_block): Add
2370 DW_FORM_data16.
2371
c6481205
TT
23722020-09-29 Tom Tromey <tom@tromey.com>
2373
2374 * dwarf2/read.c (read_cutu_die_from_dwo)
2375 (read_attribute_reprocess, read_attribute_value, read_attribute)
2376 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2377 (dwarf2_fetch_constant_bytes): Update.
2378 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2379 <set_string_noncanonical, set_string_canonical>: New methods.
2380 <string_is_canonical>: Update comment.
2381 <canonical_string_p>: Add assert.
2382 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2383 * dwarf2/attribute.c (attribute::form_is_string): New method.
2384 (attribute::string): Use it.
2385
3b64bf15
TT
23862020-09-29 Tom Tromey <tom@tromey.com>
2387
2388 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2389 (dump_die_shallow): Use canonical_string_p.
2390 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2391 method.
2392
2c830f54
TT
23932020-09-29 Tom Tromey <tom@tromey.com>
2394
2395 * dwarf2/read.c (partial_die_info::read)
2396 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2397 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2398 attribute::as_string.
2399
6c412691
TT
24002020-09-29 Tom Tromey <tom@tromey.com>
2401
2402 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2403 DW_ADDR.
2404 (attribute::string): Don't use DW_STRING.
2405 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2406 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2407
95f982e5
TT
24082020-09-29 Tom Tromey <tom@tromey.com>
2409
2410 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2411 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2412 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2413 * dwarf2/attribute.h (struct attribute): Rename methods.
2414 * dwarf2/attribute.c (attribute::as_address): Rename from
2415 value_as_address.
2416 (attribute::as_string): Rename from value_as_string.
2417
f800b00e
TT
24182020-09-29 Tom Tromey <tom@tromey.com>
2419
2420 * dwarf2/read.c (partial_die_info::read) <case
2421 DW_AT_linkage_name>: Use value_as_string.
2422 (dwarf2_string_attr): Use value_as_string.
2423 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2424 method.
2425 * dwarf2/attribute.c (attribute::value_as_string): New method.
2426
de38d64a
PA
24272020-09-29 Pedro Alves <pedro@palves.net>
2428
2429 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2430 defined before using '#pragma GCC diagnostic' instead of checking
2431 __clang__.
2432
9aed480c
TT
24332020-09-28 Tom Tromey <tom@tromey.com>
2434
2435 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2436 (handle_signal_stop): Update.
2437 * procfs.c (procfs_target::insert_watchpoint): Update.
2438 * target.h (target_have_steppable_watchpoint): Now a function.
2439
8a3ecb79
TT
24402020-09-28 Tom Tromey <tom@tromey.com>
2441
2442 * infrun.c (set_schedlock_func): Update.
2443 * target.h (target_can_lock_scheduler): Now a function.
2444
55f6301a
TT
24452020-09-28 Tom Tromey <tom@tromey.com>
2446
2447 * inferior.h (class inferior) <has_execution>: Update.
2448 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2449 * valops.c (find_function_in_inferior)
2450 (value_allocate_space_in_inferior): Update.
2451 * top.c (kill_or_detach): Update.
2452 * target.c (target_preopen, set_target_permissions): Update.
2453 (target_has_execution_current): Remove.
2454 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2455 Update.
2456 * solib.c (update_solib_list, reload_shared_libraries): Update.
2457 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2458 * solib-dsbt.c (enable_break): Update.
2459 * score-tdep.c (score7_fetch_inst): Update.
2460 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2461 Update.
2462 * remote.c (remote_target::start_remote)
2463 (remote_target::remote_check_symbols, remote_target::open_1)
2464 (remote_target::remote_detach_1, remote_target::verify_memory)
2465 (remote_target::xfer_partial, remote_target::read_description)
2466 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2467 * record-full.c (record_full_open_1): Update.
2468 * record-btrace.c (record_btrace_target_open): Update.
2469 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2470 (value_nsstring): Update.
2471 * linux-thread-db.c (add_thread_db_info)
2472 (thread_db_find_new_threads_silently, check_thread_db_callback)
2473 (try_thread_db_load_1, record_thread): Update.
2474 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2475 Update.
2476 * linux-fork.c (checkpoint_command): Update.
2477 * infrun.c (set_non_stop, set_observer_mode)
2478 (check_multi_target_resumption, for_each_just_stopped_thread)
2479 (maybe_remove_breakpoints, normal_stop)
2480 (class infcall_suspend_state): Update.
2481 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2482 (info_program_command, attach_command): Update.
2483 * infcall.c (call_function_by_hand_dummy): Update.
2484 * inf-loop.c (inferior_event_handler): Update.
2485 * gcore.c (gcore_command, derive_heap_segment): Update.
2486 * exec.c (exec_file_command): Update.
2487 * eval.c (evaluate_subexp): Update.
2488 * compile/compile.c (compile_to_object): Update.
2489 * cli/cli-dump.c (restore_command): Update.
2490 * breakpoint.c (update_watchpoint)
2491 (update_inserted_breakpoint_locations)
2492 (insert_breakpoint_locations, get_bpstat_thread): Update.
2493 * target.h (target_has_execution): Remove macro.
2494 (target_has_execution_current): Don't declare.
2495 (target_has_execution): Rename from target_has_execution_1. Add
2496 argument default.
2497
05374cfd
TT
24982020-09-28 Tom Tromey <tom@tromey.com>
2499
2500 * mi/mi-main.c (exec_reverse_continue)
2501 (mi_cmd_list_target_features): Update.
2502 * infrun.c (set_exec_direction_func): Update.
2503 * target.c (default_execution_direction): Update.
2504 * reverse.c (exec_reverse_once): Update.
2505 * target.h (target_can_execute_reverse): Now a function.
2506
9dccd06e
TT
25072020-09-28 Tom Tromey <tom@tromey.com>
2508
2509 * tui/tui-regs.c (tui_get_register)
2510 (tui_data_window::show_registers): Update.
2511 * thread.c (scoped_restore_current_thread::restore)
2512 (scoped_restore_current_thread::scoped_restore_current_thread):
2513 Update.
2514 * regcache-dump.c (regcache_print): Update.
2515 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2516 Update.
2517 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2518 * mep-tdep.c (current_me_module, current_options): Update.
2519 * linux-thread-db.c (thread_db_load): Update.
2520 * infcmd.c (registers_info, info_vector_command)
2521 (info_float_command): Update.
2522 * ia64-tdep.c (ia64_frame_prev_register)
2523 (ia64_sigtramp_frame_prev_register): Update.
2524 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2525 * gcore.c (derive_stack_segment): Update.
2526 * frame.c (get_current_frame, has_stack_frames): Update.
2527 * findvar.c (language_defn::read_var_value): Update.
2528 * arm-tdep.c (arm_pc_is_thumb): Update.
2529 * target.c (target_has_registers): Rename from
2530 target_has_registers_1.
2531 * target.h (target_has_registers): Remove macro.
2532 (target_has_registers): Rename from target_has_registers_1.
2533
841de120
TT
25342020-09-28 Tom Tromey <tom@tromey.com>
2535
2536 * windows-tdep.c (tlb_make_value): Update.
2537 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2538 * thread.c (scoped_restore_current_thread::restore)
2539 (scoped_restore_current_thread::scoped_restore_current_thread)
2540 (thread_command): Update.
2541 * stack.c (backtrace_command_1, frame_apply_level_command)
2542 (frame_apply_all_command, frame_apply_command): Update.
2543 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2544 Update.
2545 * gcore.c (derive_stack_segment): Update.
2546 * frame.c (get_current_frame, has_stack_frames): Update.
2547 * auxv.c (info_auxv_command): Update.
2548 * ada-tasks.c (ada_build_task_list): Update.
2549 * target.c (target_has_stack): Rename from target_has_stack_1.
2550 * target.h (target_has_stack): Remove macro.
2551 (target_has_stack): Rename from target_has_stack_1.
2552
a739972c
TT
25532020-09-28 Tom Tromey <tom@tromey.com>
2554
2555 * target.c (target_has_memory): Rename from target_has_memory_1.
2556 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2557 * thread.c (scoped_restore_current_thread::restore)
2558 (scoped_restore_current_thread::scoped_restore_current_thread):
2559 Update.
2560 * frame.c (get_current_frame, has_stack_frames): Update.
2561 * target.h (target_has_memory): Remove macro.
2562 (target_has_memory): Rename from target_has_memory_1.
2563
5b8a4776
TT
25642020-09-28 Tom Tromey <tom@tromey.com>
2565
2566 * target.c (target_has_all_memory_1): Remove.
2567 * target.h (target_has_all_memory): Remove define.
2568 (target_has_all_memory_1): Don't declare.
2569
bd356ec6
SM
25702020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2571
2572 * ser-base.c: Adjust comments formatting.
2573
2c72d5e5
TT
25742020-09-27 Tom Tromey <tom@tromey.com>
2575
2576 PR tui/25342:
2577 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2578
35a98237
TT
25792020-09-27 Tom Tromey <tom@tromey.com>
2580
2581 PR tui/25342:
2582 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2583
9e820dec
TT
25842020-09-27 Tom Tromey <tom@tromey.com>
2585
2586 * unittests/tui-selftests.c: Update.
2587 * tui/tui-winsource.h (struct tui_source_window_base)
2588 <extra_margin, show_line_number, refresh_pad>: New methods.
2589 <m_max_length, m_pad>: New members.
2590 (tui_copy_source_line): Update.
2591 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2592 first_col, line_width, ndigits parameters. Add length.
2593 (tui_source_window_base::show_source_line): Write to pad. Line
2594 number now 0-based.
2595 (tui_source_window_base::refresh_pad): New method.
2596 (tui_source_window_base::show_source_content): Write to pad. Call
2597 refresh_pad.
2598 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2599 not refill.
2600 (tui_source_window_base::update_exec_info): Call
2601 show_line_number.
2602 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2603 method.
2604 <m_digits>: New member.
2605 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2606 and m_max_length.
2607 (tui_source_window::show_line_number): New method.
2608 * tui/tui-io.h (tui_puts): Fix comment.
2609 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2610 m_max_length.
2611
c15c15c8
TT
26122020-09-27 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-winsource.c
2615 (tui_source_window_base::set_is_exec_point_at): Don't call
2616 show_source_line.
2617
149830c1
TT
26182020-09-27 Tom Tromey <tom@tromey.com>
2619
2620 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2621 method.
2622 <erase>: Update.
2623 <cursor_x, cursor_y>: Remove.
2624 <m_inner_window>: New member.
2625 (tui_py_window::rerender): Create inner window.
2626 (tui_py_window::output): Write to inner window.
2627
8f9929bb
GR
26282020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2629
2630 PR python/26586
2631 * cli/cli-script.c (execute_control_commands): don't set
2632 instream to nullptr here as this breaks the from_tty argument
2633 to gdb.execute in Python.
2634 (execute_user_command): set instream to nullptr here instead.
2635
956bdb59
SM
26362020-09-25 Simon Marchi <simon.marchi@efficios.com>
2637
2638 * infrun.h (infrun_debug_printf): Fix formatting.
2639 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2640
3b93626b
SJ
26412020-09-25 Saagar Jha <saagar@saagarjha.com>
2642
2643 * compile/compile-object-load.h (struct munmap_list): Add
2644 explicitly-defined move constructor.
2645
b551a89f
TT
26462020-09-24 Tom Tromey <tromey@adacore.com>
2647
2648 PR tui/26638:
2649 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2650 method.
2651 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2652 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2653 (tui_prev_win): Rewrite.
2654
99bb393f
HD
26552020-09-23 Hannes Domani <ssbssa@yahoo.de>
2656
2657 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2658 in WOW64 processes as SIGINT.
2659 * nat/windows-nat.h: Make wow64_process a shared variable.
2660 * windows-nat.c: Remove static wow64_process variable.
2661
20a5fcbd
TT
26622020-09-23 Tom Tromey <tom@tromey.com>
2663
2664 PR symtab/25470:
2665 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2666 offset and bit size.
2667 * printcmd.c (print_scalar_formatted): Handle zero-length
2668 integer.
2669 (print_scalar_formatted): Use bit_size_differs_p.
2670 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2671 constant.
2672 (union type_specific): <int_stuff>: New member.
2673 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2674 methods.
2675 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2676 TYPE_SPECIFIC_FIELD.
2677 (recursive_dump_type, copy_type_recursive): Update.
2678 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2679 DW_AT_data_bit_offset.
2680
bac51ab7
TT
26812020-09-23 Tom Tromey <tom@tromey.com>
2682
2683 * utils.h (class gdb_argv): Add move operators.
2684 <append>: New methods.
2685 * compile/compile.c (build_argc_argv): Remove.
2686 (compile_args_argc): Remove.
2687 (compile_args_argv): Change type.
2688 (set_compile_args): Simplify.
2689 (append_args): Remove.
2690 (filter_args): Remove argcp parameter.
2691 (get_args): Return gdb_argv. Simplify.
2692 (compile_to_object): Update.
2693
92677124
TT
26942020-09-23 Tom Tromey <tom@tromey.com>
2695
2696 * compile/compile-object-run.c (do_module_cleanup)
2697 <~do_module_cleanup> :Remove.
2698 (do_module_cleanup): Update.
2699 * compile/compile-object-load.h (struct munmap_list): Add move
2700 assignment operator.
2701 <source_file>: Now a std::string.
2702 <munmap_list>: Rename. No longer a pointer.
2703 * compile/compile-object-load.c (struct setup_sections_data): Add
2704 constructor.
2705 <setup_one_section>: Declare.
2706 <munmap_list>: Move earlier.
2707 <m_bfd>: New member.
2708 <m_last_size, m_last_section_first, m_last_prot,
2709 m_last_max_alignment>: Rename, add initializers where needed.
2710 (setup_sections_data::setup_one_section): Rename from
2711 setup_sections. Update.
2712 (compile_object_load): Update. Don't use bfd_map_over_sections.
2713
e616f60a
TT
27142020-09-23 Tom Tromey <tom@tromey.com>
2715
2716 * compile/compile-object-run.c (struct do_module_cleanup): Add
2717 parameters to constructor. Update destructor.
2718 <source_file, scope, scope_data, out_value_type, out_value_addr,
2719 munmap_list_head, objfile_name_string>: Remove.
2720 <module>: New member.
2721 (do_module_cleanup): Update.
2722 (compile_object_run): Update.
2723
e947a848
TT
27242020-09-23 Tom Tromey <tom@tromey.com>
2725
2726 * compile/compile.c (eval_compile_command): Update.
2727 * compile/compile-object-run.h (compile_object_run): Take a
2728 compile_module_up.
2729 * compile/compile-object-run.c (compile_object_run): Take a
2730 compile_module_up.
2731 * compile/compile-object-load.h (struct compile_module): Add
2732 constructor, destructor.
2733 (compile_module_up): New typedef.
2734 (compile_object_load): Return compile_object_up.
2735 * compile/compile-object-load.c (compile_object_load): Return
2736 compile_module_up.
2737
0dbf6ee6
TT
27382020-09-23 Tom Tromey <tom@tromey.com>
2739
2740 * compile/compile-object-run.c (struct do_module_cleanup): Add
2741 constructor, destructor.
2742 <objfile_name_string>: Don't use struct hack.
2743 (do_module_cleanup): Use delete.
2744 (compile_object_run): Use new.
2745
ebe824f5
TT
27462020-09-23 Tom Tromey <tom@tromey.com>
2747
2748 * compile/compile-cplus-types.c
2749 (compile_cplus_convert_struct_or_union): Use std::vector.
2750 (compile_cplus_convert_func): Likewise.
2751 * compile/compile-c-types.c (convert_func): Use std::vector.
2752
5dd918d9
TT
27532020-09-21 Tom Tromey <tromey@adacore.com>
2754
2755 * sparc-tdep.c (sparc32_skip_prologue): Use
2756 skip_prologue_using_sal.
2757
5486c517
TT
27582020-09-19 Tom Tromey <tom@tromey.com>
2759
2760 * symfile.c (add_section_size_callback): Remove.
2761 (load_one_section): Rename from load_section_callback. Change
2762 parameters.
2763 (generic_load): Use foreach.
2764
8a6bb1d1
TT
27652020-09-19 Tom Tromey <tom@tromey.com>
2766
2767 * exec.c (add_to_section_table): Remove.
2768 (build_section_table): Use foreach.
2769
08f93a1a
TT
27702020-09-19 Tom Tromey <tom@tromey.com>
2771
2772 * elfread.c (elf_locate_sections): Change parameters.
2773 (elf_symfile_read): Use foreach.
2774
03cd72b8
TT
27752020-09-19 Tom Tromey <tom@tromey.com>
2776
2777 * cli/cli-dump.c (struct callback_data): Remove.
2778 (restore_one_section): Rename from restore_section_callback.
2779 Change parameters.
2780 (restore_binary_file): Change parameters.
2781 (restore_command): Use foreach.
2782
f4f2b85f
TT
27832020-09-19 Tom Tromey <tom@tromey.com>
2784
2785 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2786 (gcore_copy_callback): Likewise.
2787 (gcore_memory_sections): Use foreach.
2788
b35c1d1c
TT
27892020-09-19 Tom Tromey <tom@tromey.com>
2790
2791 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2792 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2793 parameters.
2794 (generic_elf_osabi_sniffer): Use foreach.
2795 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2796 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2797
5bb6e9dd
TT
27982020-09-19 Tom Tromey <tom@tromey.com>
2799
2800 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2801 (dwarf2_get_dwz_file): Use foreach.
2802 (dwarf2_locate_dwo_sections): Change parameters.
2803 (open_and_init_dwo_file): Use foreach.
2804 (dwarf2_locate_common_dwp_sections): Change parameters.
2805 (open_and_init_dwp_file): Use foreach.
2806
ad7277da
TT
28072020-09-19 Tom Tromey <tom@tromey.com>
2808
2809 * symfile.h: (find_lowest_section): Don't declare.
2810 * symfile.c (find_lowest_section): Now static. Change
2811 parameters.
2812 (struct place_section_arg): Remove.
2813 (place_section): Change parameters.
2814 (addr_info_make_relative): Use foreach.
2815 (symfile_dummy_outputs): Remove.
2816 (default_symfile_relocate): Use foreach.
2817
cb814f2e
TT
28182020-09-19 Tom Tromey <tom@tromey.com>
2819
2820 * objfiles.c (add_to_objfile_sections): Rename from
2821 add_to_objfile_sections_full.
2822 (add_to_objfile_sections): Remove.
2823 (build_objfile_section_table): Use foreach.
2824
3cabfd26
TT
28252020-09-19 Tom Tromey <tom@tromey.com>
2826
2827 * stap-probe.c (get_stap_base_address_1): Remove.
2828 (get_stap_base_address): Use foreach.
2829
1ce51eb5
TT
28302020-09-19 Tom Tromey <tom@tromey.com>
2831
2832 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2833 parameters.
2834 (gdb_bfd_close_or_warn): Use foreach.
2835
a190fabb
TT
28362020-09-19 Tom Tromey <tom@tromey.com>
2837
2838 * corelow.c (add_to_thread_list): Change parameters.
2839 (core_target_open): Use foreach.
2840
cafb0d81
TT
28412020-09-19 Tom Tromey <tom@tromey.com>
2842
2843 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2844 existing function.
2845
c8d5abea
AB
28462020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2849 for arrays.
2850
6d816919
AB
28512020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2852
2853 * eval.c: Remove 'f-lang.h' include.
2854 (value_f90_subarray): Moved to f-lang.c.
2855 (eval_call): Renamed to...
2856 (evaluate_subexp_do_call): ...this, is no longer static, header
2857 comment moved into header file.
2858 (evaluate_funcall): Update call to eval_call.
2859 (skip_undetermined_arglist): Moved to f-lang.c.
2860 (fortran_value_subarray): Likewise.
2861 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2862 moved to evaluate_subexp_f.
2863 (calc_f77_array_dims): Moved to f-lang.c
2864 * expprint.c (print_subexp_funcall): New function.
2865 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2866 moved to print_subexp_f, OP_FUNCALL uses new function.
2867 (dump_subexp_body_funcall): New function.
2868 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2869 moved to dump_subexp_f, OP_FUNCALL uses new function.
2870 * expression.h (evaluate_subexp_do_call): Declare.
2871 * f-lang.c (value_f90_subarray): Moved from eval.c.
2872 (skip_undetermined_arglist): Likewise.
2873 (calc_f77_array_dims): Likewise.
2874 (fortran_value_subarray): Likewise.
2875 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2876 (operator_length_f): Likewise.
2877 (print_subexp_f): Likewise.
2878 (dump_subexp_body_f): Likewise.
2879 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2880 declaration of this operation to here.
2881 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2882 support moved to operator_length_f.
2883 * parser-defs.h (dump_subexp_body_funcall): Declare.
2884 (print_subexp_funcall): Declare.
2885 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2886 fortran-operator.def.
2887
8c37706a
AB
28882020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2889
2890 * eval.c (fortran_value_subarray): New function, content is taken
2891 from...
2892 (evaluate_subexp_standard): ...here, in two places. Now arrays
2893 and strings both call the new function.
2894 (calc_f77_array_dims): Add header comment, handle strings.
2895
14f9473c
VC
28962020-09-18 Victor Collod <vcollod@nvidia.com>
2897
2898 PR gdb/26635
2899 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2900 (i386_analyze_prologue): Call i386_skip_endbr.
2901
b60cea74
TT
29022020-09-18 Tom Tromey <tromey@adacore.com>
2903
2904 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2905 (windows_nat_target::wait): Update.
2906 * target/wait.h (enum target_wait_flag): New. Use
2907 DEF_ENUM_FLAGS_TYPE.
2908 * target/target.h (target_wait): Change type of options.
2909 * target.h (target_options_to_string, default_target_wait):
2910 Update.
2911 (struct target_ops) <wait>: Change type of options.
2912 * target.c (target_wait, default_target_wait, do_option): Change
2913 type of "options".
2914 (target_options_to_string): Likewise.
2915 * target-delegates.c: Rebuild.
2916 * target-debug.h (target_debug_print_target_wait_flags): Rename
2917 from target_debug_print_options.
2918 * sol-thread.c (class sol_thread_target) <wait>: Update.
2919 (sol_thread_target::wait): Update.
2920 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2921 (rs6000_nat_target::wait): Update.
2922 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2923 Update.
2924 (remote_target::wait_ns, remote_target::wait_as): Change type of
2925 "options".
2926 (remote_target::wait): Update.
2927 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2928 (gdbsim_target::wait): Update.
2929 * record-full.c (class record_full_base_target) <wait>: Update.
2930 (record_full_wait_1): Change type of "options".
2931 (record_full_base_target::wait): Update.
2932 * record-btrace.c (class record_btrace_target) <wait>: Update.
2933 (record_btrace_target::wait): Update.
2934 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2935 Update.
2936 (ravenscar_thread_target::wait): Update.
2937 * procfs.c (class procfs_target) <wait>: Update.
2938 (procfs_target::wait): Update.
2939 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2940 * obsd-nat.c (obsd_nat_target::wait): Update.
2941 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2942 (nto_procfs_target::wait): Update.
2943 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2944 * nbsd-nat.c (nbsd_wait): Change type of "options".
2945 (nbsd_nat_target::wait): Update.
2946 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2947 (thread_db_target::wait): Update.
2948 * linux-nat.h (class linux_nat_target) <wait>: Update.
2949 * linux-nat.c (linux_nat_target::wait): Update.
2950 (linux_nat_wait_1): Update.
2951 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2952 "options".
2953 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2954 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2955 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2956 (go32_nat_target::wait): Update.
2957 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2958 * gnu-nat.c (gnu_nat_target::wait): Update.
2959 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2960 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2961 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2962 * darwin-nat.c (darwin_nat_target::wait): Update.
2963 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2964 (bsd_uthread_target::wait): Update.
2965 * aix-thread.c (class aix_thread_target) <wait>: Update.
2966 (aix_thread_target::wait): Update.
2967
0295dde6
AB
29682020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2969
2970 * compile/compile-object-run.c (create_copied_type_recursive): New
2971 function.
2972 (compile_object_run): Use new function.
2973
d3483b43
JT
29742020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2975
2976 * NEWS: Mention x86_64 Cygwin core file support.
2977
e7d612ad
JT
29782020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2979
2980 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2981 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2982
aff9d387
JT
29832020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2984
62a5151b
JT
2985 * windows-tdep.h: Add prototypes.
2986 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2987 (i386_windows_core_pid_to_str): Move and rename ...
2988 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2989 (windows_core_pid_to_str): ... and here.
2990 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2991
29922020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2993 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2994 (amd64_windows_init_abi_common): ... and register.
2995
7d155da3
JT
29962020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2997
2998 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2999 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3000
e8ef12b9
PA
30012020-09-18 Pedro Alves <pedro@palves.net>
3002
3003 PR gdb/26631
3004 * thread.c (thread_find_command): Switch inferior before calling
3005 target methods.
3006
c1e1314d
TT
30072020-09-17 Tom Tromey <tromey@adacore.com>
3008
3009 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3010 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3011 (tdesc_arch_data_up): New typedef.
3012 (tdesc_use_registers, tdesc_data_alloc): Update.
3013 (tdesc_data_cleanup): Don't declare.
3014 * target-descriptions.c (tdesc_data_alloc): Return a
3015 tdesc_arch_data_up.
3016 (tdesc_arch_data_deleter::operator()): Rename from
3017 tdesc_data_cleanup. Change argument type.
3018 (tdesc_use_registers): Change early_data to an rvalue reference.
3019 (tdesc_use_registers): Don't use delete.
3020 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3021 * s390-tdep.c (s390_gdbarch_init): Update.
3022 * rx-tdep.c (rx_gdbarch_init): Update.
3023 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3024 * riscv-tdep.c (riscv_gdbarch_init): Update.
3025 * or1k-tdep.c (or1k_gdbarch_init): Update.
3026 * nios2-tdep.c (nios2_gdbarch_init): Update.
3027 * nds32-tdep.c (nds32_gdbarch_init): Update.
3028 * mips-tdep.c (mips_gdbarch_init): Update.
3029 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3030 * m68k-tdep.c (m68k_gdbarch_init): Update.
3031 * i386-tdep.c (i386_gdbarch_init): Update.
3032 * arm-tdep.c (arm_gdbarch_init): Update.
3033 * arc-tdep.c (arc_tdesc_init): Update.
3034 (arc_gdbarch_init): Update.
3035 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3036
0363df3d
HD
30372020-09-17 Hannes Domani <ssbssa@yahoo.de>
3038
3039 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3040 for WOW64 processes.
3041
280a9412
TT
30422020-09-17 Tom Tromey <tom@tromey.com>
3043
3044 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3045
6108fd18
TT
30462020-09-17 Tom Tromey <tom@tromey.com>
3047
3048 * value.c (preserve_values): Update.
3049 * python/py-type.c (save_objfile_types): Update.
3050 * guile/scm-type.c (save_objfile_types): Update.
3051 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3052 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3053 * compile/compile-object-run.c (compile_object_run): Update.
3054
fa9b1164
TT
30552020-09-17 Tom Tromey <tom@tromey.com>
3056
3057 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3058 Remove.
3059 <m_table>: Now htab_up.
3060 * typeprint.c (typedef_hash_table::recursively_update)
3061 (typedef_hash_table::add_template_parameters)
3062 (typedef_hash_table::typedef_hash_table): Update.
3063 (typedef_hash_table::~typedef_hash_table): Remove.
3064 (typedef_hash_table::typedef_hash_table)
3065 (typedef_hash_table::find_global_typedef)
3066 (typedef_hash_table::find_typedef): Update.
3067
eb53f105
TT
30682020-09-17 Tom Tromey <tom@tromey.com>
3069
3070 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3071
7a8a5d47
TT
30722020-09-17 Tom Tromey <tom@tromey.com>
3073
3074 * linespec.c (class decode_compound_collector)
3075 <~decode_compound_collector>: Remove.
3076 <m_unique_syms>: Now htab_up.
3077 (decode_compound_collector::operator ()): Update.
3078 (class symtab_collector) <~symtab_collector>: Remove.
3079 <m_symtab_table>: Now htab_up.
3080 (symtab_collector::operator ()): Update.
3081
99032cfc
TT
30822020-09-17 Tom Tromey <tom@tromey.com>
3083
3084 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3085 (filename_seen_cache::clear): Update.
3086 (~filename_seen_cache): Remove.
3087 (filename_seen_cache::seen): Update.
3088 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3089 htab_up.
3090 <~filename_seen_cache>: Remove.
3091 <traverse>: Update.
3092
32580f6d
TT
30932020-09-17 Tom Tromey <tom@tromey.com>
3094
3095 * completer.c (completion_tracker::discard_completions)
3096 (completion_tracker::~completion_tracker)
3097 (completion_tracker::maybe_add_completion)
3098 (completion_tracker::remove_completion)
3099 (completion_tracker::recompute_lowest_common_denominator)
3100 (completion_tracker::build_completion_result): Update.
3101 * completer.h (class completion_tracker) <have_completions>:
3102 Update.
3103 <m_entries_hash>: Now htab_up.
3104
c1fb9836
TT
31052020-09-17 Tom Tromey <tom@tromey.com>
3106
3107 * breakpoint.c (ambiguous_names_p): Use htab_up.
3108
88f07206
TT
31092020-09-17 Tom Tromey <tom@tromey.com>
3110
3111 * auto-load.c (struct auto_load_pspace_info)
3112 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3113 <loaded_script_files, loaded_script_texts>: Change type to
3114 htab_up.
3115 (~auto_load_pspace_info) Remove.
3116 (init_loaded_scripts_info, maybe_add_script_file)
3117 (maybe_add_script_text, auto_load_info_scripts): Update.
3118
9519b2ee
TT
31192020-09-17 Tom Tromey <tromey@adacore.com>
3120
3121 * c-exp.y (name_obstack): Now static.
3122
d2cd4113
CC
31232020-09-17 Chungyi Chi <demonic@csie.io>
3124
3125 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3126
b650a282
SM
31272020-09-16 Simon Marchi <simon.marchi@efficios.com>
3128
3129 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3130 (add_solib_catchpoint): Likewise.
3131 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3132 to bool.
3133 (add_solib_catchpoint): Change int parameter/variable to bool.
3134 (catch_load_or_unload): Likewise.
3135 (init_catchpoint): Likewise.
3136 (create_fork_vfork_event_catchpoint): Likewise.
3137 (catch_fork_command_1): Likewise.
3138 (catch_exec_command_1): Likewise.
3139
4d0bcfcf
SM
31402020-09-16 Simon Marchi <simon.marchi@efficios.com>
3141
3142 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3143 Change instance_flags to m_instance_flags.
3144
fe830662
TT
31452020-09-16 Tom Tromey <tromey@adacore.com>
3146
3147 PR gdb/26598:
3148 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3149
fe5ddfc3
JB
31502020-09-16 John Baldwin <jhb@FreeBSD.org>
3151
3152 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3153 PL_FLAG_EXEC.
3154 (fbsd_nat_target::insert_exec_catchpoint)
3155 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3156 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3157 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3158
e911c666
JB
31592020-09-16 John Baldwin <jhb@FreeBSD.org>
3160
3161 * configure.ac: Remove check for kinfo_getvmmap().
3162 * configure, config.in: Regenerate.
3163 * fbsd-nat.c (fbsd_read_mapping): Remove
3164 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3165 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3166 kinfo_get_vmmap() are always present.
3167
1f17d372
JB
31682020-09-16 John Baldwin <jhb@FreeBSD.org>
3169
3170 * fbsd-nat.c: Always include support for
3171 TARGET_OBJECT_SIGNAL_INFO.
3172
bcb1da7f
JB
31732020-09-16 John Baldwin <jhb@FreeBSD.org>
3174
3175 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3176 sysctl and remove procfs fallback.
3177
5515f729
JB
31782020-09-16 John Baldwin <jhb@FreeBSD.org>
3179
3180 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3181 * fbsd-nat.h: Likewise.
3182
da1df1db
TBA
31832020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3184
3185 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3186 argument.
3187
0e25e767
AB
31882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3189
3190 * ada-lang.c (ada_language_data): Delete.
3191 (ada_language): Remove references to ada_language_data.
3192 * c-lang.c (c_language_data): Delete.
3193 (c_language): Remove references to c_language_data.
3194 (cplus_language_data): Delete.
3195 (cplus_language): Remove references to cplus_language_data.
3196 (asm_language_data): Delete.
3197 (asm_language): Remove references to asm_language_data.
3198 (minimal_language_data): Delete.
3199 (minimal_language): Remove references to minimal_language_data.
3200 * d-lang.c (d_language_data): Delete.
3201 (d_language): Remove references to d_language_data.
3202 * f-lang.c (f_language_data): Delete.
3203 (f_language): Remove references to f_language_data.
3204 * go-lang.c (go_language_data): Delete.
3205 (go_language): Remove references to go_language_data.
3206 * language.c (unknown_language_data): Delete.
3207 (unknown_language): Remove references to unknown_language_data.
3208 (auto_language_data): Delete.
3209 (auto_language): Remove references to auto_language_data.
3210 * language.h (language_data): Delete struct.
3211 (language_defn): No longer inherit from language_data.
3212 * m2-lang.c (m2_language_data): Delete.
3213 (m2_language): Remove references to m2_language_data.
3214 * objc-lang.c (objc_language_data): Delete.
3215 (objc_language): Remove references to objc_language_data.
3216 * opencl-lang.c (opencl_language_data): Delete.
3217 (opencl_language): Remove references to opencl_language_data.
3218 * p-lang.c (pascal_language_data): Delete.
3219 (pascal_language): Remove references to pascal_language_data.
3220 * rust-lang.c (rust_language_data): Delete.
3221 (rust_language): Remove references to rust_language_data.
3222
b7c6e27d
AB
32232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3224
3225 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3226 initializer.
3227 (ada_language::opcode_print_table): New member function.
3228 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3229 (c_language::opcode_print_table): New member function.
3230 (cplus_language_data): Remove la_op_print_tab initializer.
3231 (cplus_language::opcode_print_table): New member function.
3232 (asm_language_data): Remove la_op_print_tab initializer.
3233 (asm_language::opcode_print_table): New member function.
3234 (minimal_language_data): Remove la_op_print_tab initializer.
3235 (minimal_language::opcode_print_table): New member function.
3236 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3237 (d_language::opcode_print_table): New member function.
3238 * expprint.c (print_subexp_standard): Update call to
3239 opcode_print_table.
3240 (op_string): Likewise.
3241 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3242 (f_language::opcode_print_table): New member function.
3243 * go-lang.c (go_language_data): Remove la_op_print_tab
3244 initializer.
3245 (go_language::opcode_print_table): New member function.
3246 * language.c (unknown_language_data): Remove la_op_print_tab
3247 initializer.
3248 (unknown_language::opcode_print_table): New member function.
3249 (auto_language_data): Remove la_op_print_tab initializer.
3250 (auto_language::opcode_print_table): New member function.
3251 * language.h (language_data): Remove la_op_print_tab field.
3252 (language_defn::opcode_print_table): Declare new member function.
3253 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3254 initializer.
3255 (m2_language::opcode_print_table): New member function.
3256 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3257 initializer.
3258 (objc_language::opcode_print_table): New member function.
3259 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3260 initializer.
3261 (opencl_language::opcode_print_table): New member function.
3262 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3263 initializer.
3264 (pascal_language::opcode_print_table): New member function.
3265 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3266 initializer.
3267 (rust_language::opcode_print_table): New member function.
3268
5aba6ebe
AB
32692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3270
3271 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3272 (ada_language::expression_ops): New member function.
3273 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3274 (c_language::expression_ops): New member function.
3275 (cplus_language_data): Remove la_exp_desc initializer.
3276 (cplus_language::expression_ops): New member function.
3277 (asm_language_data): Remove la_exp_desc initializer.
3278 (asm_language::expression_ops): New member function.
3279 (minimal_language_data): Remove la_exp_desc initializer.
3280 (minimal_language::expression_ops): New member function.
3281 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3282 (d_language::expression_ops): New member function.
3283 * eval.c (evaluate_subexp): Update call to expression_ops.
3284 * expprint.c (print_subexp): Likewise.
3285 (op_name): Likewise.
3286 (dump_subexp_body): Likewise.
3287 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3288 (f_language::expression_ops): New member function.
3289 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3290 (go_language::expression_ops): New member function.
3291 * language.c (language_defn::expression_ops): New function.
3292 (unknown_language_data): Remove la_exp_desc initializer.
3293 (auto_language_data): Likewise.
3294 * language.h (language_data): Remove la_exp_desc field.
3295 (language_defn::expression_ops): Declare new member function.
3296 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3297 (m2_language::expression_ops): New member function.
3298 * objc-lang.c (objc_language_data): Remove la_exp_desc
3299 initializer.
3300 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3301 initializer.
3302 (opencl_language::expression_ops): New member function.
3303 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3304 * parse.c (operator_length): Update call to expression_ops.
3305 (exp_iterate): Likewise.
3306 * rust-lang.c (rust_language_data): Remove la_exp_desc
3307 initializer.
3308 (ruse_language::expression_ops): New member function.
3309
b63a3f3f
AB
33102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3311
3312 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3313 initializer.
3314 (ada_language::varobj_ops): New member function.
3315 * c-lang.c (c_language_data): Remove la_varobj_ops
3316 initializer.
3317 (cplus_language_data): Likewise.
3318 (cplus_language::varobj_ops): New member function.
3319 (asm_language_data): Remove la_varobj_ops initializer.
3320 (minimal_language_data): Likewise.
3321 * d-lang.c (d_language_data): Likewise.
3322 * f-lang.c (f_language_data): Likewise.
3323 * go-lang.c (go_language_data): Likewise.
3324 * language.c (language_defn::varobj_ops): New function.
3325 (unknown_language_data): Remove la_varobj_ops
3326 initializer.
3327 (auto_language_data): Likewise.
3328 * language.h (language_data): Remove la_varobj_ops field.
3329 (language_defn::varobj_ops): Declare new member function.
3330 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3331 * objc-lang.c (objc_language_data): Likewise.
3332 * opencl-lang.c (opencl_language_data): Likewise.
3333 * p-lang.c (pascal_language_data): Likewise.
3334 * rust-lang.c (rust_language_data): Likewise.
3335 * varobj.c (varobj_create): Update call to varobj_ops.
3336 * varobj.h (default_varobj_ops): Delete define.
3337
1ac14a04
AB
33382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3339
3340 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3341 initializer.
3342 * c-lang.c (c_language_data): Likewise.
3343 (c_language::macro_expansion): New member function.
3344 (cplus_language_data): Likewise.
3345 (cplus_language::macro_expansion): New member function.
3346 (asm_language_data): Likewise.
3347 (asm_language::macro_expansion): New member function.
3348 (minimal_language_data): Likewise.
3349 (minimal_language::macro_expansion): New member function.
3350 * d-lang.c (d_language_data): Remove la_macro_expansion
3351 initializer.
3352 * f-lang.c (f_language_data): Likewise.
3353 * go-lang.c (go_language_data): Likewise.
3354 * language.c (unknown_language_data): Likewise.
3355 (auto_language_data): Likewise.
3356 * language.h (language_data): Remove la_macro_expansion field.
3357 (language_defn::macro_expansion): New member function.
3358 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3359 initializer.
3360 * objc-lang.c (objc_language_data): Likewise.
3361 (objc_language::macro_expansion): New member function.
3362 * opencl-lang.c (opencl_language_data): Likewise.
3363 (opencl_language::macro_expansion): New member function.
3364 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3365 initializer.
3366 * rust-lang.c (rust_language_data): Likewise.
3367 * symtab.c (default_collect_symbol_completion_matches_break_on):
3368 Update call to macro_expansion.
3369
3a3440fb
AB
33702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3371
3372 * ada-lang.c (ada_language_data): Remove la_array_ordering
3373 initializer.
3374 * c-lang.c (c_language_data): Likewise.
3375 (cplus_language_data): Likewise.
3376 (asm_language_data): Likewise.
3377 (minimal_language_data): Likewise.
3378 * d-lang.c (d_language_data): Likewise.
3379 * dwarf2/read.c (read_array_order): Update for call to
3380 array_ordering.
3381 * f-lang.c (f_language_data): Remove la_array_ordering
3382 initializer.
3383 (f_language::array_ordering): New member function.
3384 * go-lang.c (go_language_data): Remove la_array_ordering
3385 initializer.
3386 * language.c (unknown_language_data): Likewise.
3387 (auto_language_data): Likewise.
3388 * language.h (language_data): Delete la_array_ordering field.
3389 (language_defn::array_ordering): New member function.
3390 * m2-lang.c (m2_language_data): Remove la_array_ordering
3391 initializer.
3392 * objc-lang.c (objc_language_data): Likewise.
3393 * opencl-lang.c (opencl_language_data): Likewise.
3394 * p-lang.c (pascal_language_data): Likewise.
3395 * rust-lang.c (rust_language_data): Likewise.
3396
0d201fa4
AB
33972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3400 initializer.
3401 * c-lang.c (c_language_data): Likewise.
3402 (cplus_language_data): Likewise.
3403 (asm_language_data): Likewise.
3404 (minimal_language_data): Likewise.
3405 * d-lang.c (d_language_data): Likewise.
3406 * f-lang.c (f_language_data): Likewise.
3407 (f_language::case_sensitivity): New member function.
3408 * go-lang.c (go_language_data): Remove la_case_sensitivity
3409 initializer.
3410 * language.c (enum case_mode): Moved here from language.h.
3411 (case_mode): Make static.
3412 (show_case_command): Update for case_sensitivity being a method.
3413 (set_case_command): Likewise.
3414 (set_range_case): Likewise.
3415 (unknown_language_data): Remove la_case_sensitivity initializer.
3416 (auto_language_data): Likewise.
3417 * language.h (case_mode): Delete, move enum declaration to
3418 language.c.
3419 (language_data): Delete la_case_sensitivity field.
3420 (language_defn::case_sensitivity): New member function.
3421 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3422 initializer.
3423 * objc-lang.c (objc_language_data): Likewise.
3424 * opencl-lang.c (opencl_language_data): Likewise.
3425 * p-lang.c (pascal_language_data): Likewise.
3426 * rust-lang.c (rust_language_data): Likewise.
3427
efdf6a73
AB
34282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3429
3430 * ada-lang.c (ada_language_data): Remove la_range_check
3431 initializer.
3432 * c-lang.c (c_language_data): Likewise.
3433 (cplus_language_data): Likewise.
3434 (asm_language_data): Likewise.
3435 (minimal_language_data): Likewise.
3436 * d-lang.c (d_language_data): Likewise.
3437 * f-lang.c (f_language_data): Likewise.
3438 (f_language::range_checking_on_by_default): New member function.
3439 * go-lang.c (go_language_data): Remove la_range_check initializer.
3440 * language.c (enum range_mode): Moved here from language.h.
3441 (range_mode): Made static.
3442 (show_range_command): Update to use
3443 range_checking_on_by_default.
3444 (set_range_command): Likewise.
3445 (set_range_case): Likewise.
3446 (unknown_language_data): Remove la_range_check initializer.
3447 (auto_language_data): Likewise.
3448 * language.h (range_mode): Delete. Enum definition moved to
3449 language.c.
3450 (language_data): Remove la_range_check field.
3451 (language_defn::range_checking_on_by_default): New member
3452 function.
3453 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3454 (m2_language::range_checking_on_by_default): New member function.
3455 * objc-lang.c (objc_language_data): Remove la_range_check
3456 initializer.
3457 * opencl-lang.c (opencl_language_data): Likewise.
3458 * p-lang.c (pascal_language_data): Likewise.
3459 (pascal_language::range_checking_on_by_default): New member
3460 function.
3461 * rust-lang.c (rust_language_data): Remove la_range_check
3462 initializer.
3463 (rust_language::range_checking_on_by_default): New member
3464 function.
3465
bf92aec5
AB
34662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * dwarf2/read.c (dwarf2_physname): Remove special case for
3469 language_go.
3470 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3471 member function.
3472
d3355e4d
AB
34732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3474
3475 * ada-lang.c (ada_language_data): Remove
3476 la_store_sym_names_in_linkage_form_p initializer.
3477 (ada_language::store_sym_names_in_linkage_form_p): New member
3478 function.
3479 * c-lang.c (c_language_data): Remove
3480 la_store_sym_names_in_linkage_form_p initializer.
3481 (c_language::store_sym_names_in_linkage_form_p): New member
3482 function.
3483 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3484 initializer.
3485 (asm_language_data): Likewise.
3486 (asm_language::store_sym_names_in_linkage_form_p): New member
3487 function.
3488 (minimal_language_data): Remove
3489 la_store_sym_names_in_linkage_form_p initializer.
3490 (minimal_language::store_sym_names_in_linkage_form_p): New member
3491 function.
3492 * d-lang.c (d_language_data): Remove
3493 la_store_sym_names_in_linkage_form_p initializer.
3494 * dwarf2/read.c (dwarf2_physname): Update call to
3495 store_sym_names_in_linkage_form_p.
3496 * f-lang.c (f_language_data): Remove
3497 la_store_sym_names_in_linkage_form_p initializer.
3498 * go-lang.c (go_language_data): Remove
3499 la_store_sym_names_in_linkage_form_p initializer.
3500 * language.c (unknown_language_data): Remove
3501 la_store_sym_names_in_linkage_form_p initializer.
3502 (unknown_language::store_sym_names_in_linkage_form_p): New member
3503 function.
3504 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3505 initializer.
3506 (auto_language::store_sym_names_in_linkage_form_p): New member
3507 function.
3508 * language.h (language_data): Remove
3509 la_store_sym_names_in_linkage_form_p member variable.
3510 (language_defn::store_sym_names_in_linkage_form_p): New member
3511 function.
3512 * m2-lang.c (m2_language_data): Remove
3513 la_store_sym_names_in_linkage_form_p initializer.
3514 * objc-lang.c (objc_language_data): Likewise.
3515 * opencl-lang.c (opencl_language_data): Likewise.
3516 * p-lang.c (pascal_language_data): Likewise.
3517 * rust-lang.c (rust_language_data): Likewise.
3518
22c12a6c
AB
35192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3520
3521 * ada-lang.c (ada_language_data): Remove string_lower_bound
3522 initializer.
3523 * c-lang.c (c_language_data): Likewise.
3524 (cplus_language_data): Likewise.
3525 (asm_language_data): Likewise.
3526 (minimal_language_data): Likewise.
3527 * d-lang.c (d_language_data): Likewise.
3528 * f-lang.c (f_language_data): Likewise.
3529 * go-lang.c (go_language_data): Likewise.
3530 * language.c (unknown_language_data): Likewise.
3531 (auto_language_data): Likewise.
3532 * language.h (language_data): Remove string_lower_bound field.
3533 (language_defn::string_lower_bound): New member function.
3534 * m2-lang.c (m2_language_data): Remove string_lower_bound
3535 initializer.
3536 (m2_language::string_lower_bound): New member function.
3537 * objc-lang.c (objc_language_data): Remove string_lower_bound
3538 initializer.
3539 * opencl-lang.c (opencl_language_data): Likewise.
3540 * p-lang.c (pascal_language_data): Likewise.
3541 * rust-lang.c (rust_language_data): Likewise.
3542 * valops.c (value_cstring): Update call to string_lower_bound.
3543 (value_string): Likewise.
3544 * value.c (allocate_repeated_value): Likewise.
3545
1c236ddd
AB
35462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3547
3548 * valops.c (value_repeat): Fix incorrect argument name in comment.
3549
67bd3fd5
AB
35502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3551
3552 * ada-lang.c (ada_language_data): Remove c_style_arrays
3553 initializer.
3554 (ada_language::c_style_arrays_p): New member fuction.
3555 * c-lang.c (c_language_data): Remove c_style_arrays
3556 initializer.
3557 (cplus_language_data): Likewise.
3558 (asm_language_data): Likewise.
3559 (minimal_language_data): Likewise.
3560 * d-lang.c (d_language_data): Likewise.
3561 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3562 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3563 (f_language::c_style_arrays_p): New member function.
3564 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3565 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3566 * language.c (unknown_language_data): Remove c_style_arrays
3567 initializer.
3568 (auto_language_data): Likewise.
3569 * language.h (language_data): Remove c_style_arrays field.
3570 (language_defn::c_style_arrays_p): New member function.
3571 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3572 (m2_language::c_style_arrays_p): New member function.
3573 * objc-lang.c (objc_language_data): Remove c_style_arrays
3574 initializer.
3575 * opencl-lang.c (opencl_language_data): Likewise.
3576 * p-lang.c (pascal_language_data): Likewise.
3577 * rust-lang.c (rust_language_data): Likewise.
3578 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3579 and update local variable to a bool.
3580 * valops.c (value_cast): Update call to c_style_arrays_p.
3581 (value_array): Likewise.
3582 * value.c (coerce_array): Likewise.
3583
85967615
AB
35842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3585
3586 * ada-lang.c (ada_language_data): Remove la_language initializer.
3587 * c-lang.c (c_language_data): Likewise.
3588 (cplus_language_data): Likewise.
3589 (asm_language_data): Likewise.
3590 (minimal_language_data): Likewise.
3591 * d-lang.c (d_language_data): Likewise.
3592 * f-lang.c (f_language_data): Likewise.
3593 * go-lang.c (go_language_data): Likewise.
3594 * language.c (unknown_language_data): Likewise.
3595 (auto_language_data): Likewise.
3596 * language.h (language_data): Remove la_language field.
3597 (language_defn::language_defn): Initialise la_language field.
3598 (language_defn::la_language): New member variable.
3599 * m2-lang.c (m2_language_data): Remove la_language field.
3600 * objc-lang.c (objc_language_data): Likewise.
3601 * opencl-lang.c (opencl_language_data): Likewise.
3602 * p-lang.c (pascal_language_data): Likewise.
3603 * rust-lang.c (rust_language_data): Likewise.
3604
e171d6f1
AB
36052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3606
3607 * ada-lang.c (ada_extensions): Delete, moved into
3608 ada_language::filename_extensions.
3609 (ada_language_data): Remove la_filename_extensions initializer.
3610 (ada_language::filename_extensions): New member function.
3611 * c-lang.c (c_extensions): Delete, moved into
3612 c_language::filename_extensions.
3613 (c_language_data): Remove la_filename_extensions initializer.
3614 (c_language::filename_extensions): New member function.
3615 (cplus_extensions): Delete, moved into
3616 cplus_language::filename_extensions.
3617 (cplus_language_data): Remove la_filename_extensions initializer.
3618 (cplus_language::filename_extensions): New member function.
3619 (asm_extensions): Delete, moved into
3620 asm_language::filename_extensions.
3621 (asm_language_data): Remove la_filename_extensions initializer.
3622 (asm_language::filename_extensions): New member function.
3623 (minimal_language_data): Remove la_filename_extensions
3624 initializer.
3625 * d-lang.c (d_extensions): Delete, moved into
3626 d_language::filename_extensions.
3627 (d_language_data): Remove la_filename_extensions initializer.
3628 (d_language::filename_extensions): New member function.
3629 * f-lang.c (f_extensions): Delete, moved into
3630 f_language::filename_extensions.
3631 (f_language_data): Remove la_filename_extensions initializer.
3632 (f_language::filename_extensions): New member function.
3633 * go-lang.c (go_language_data): Remove la_filename_extensions
3634 initializer.
3635 * language.c (add_set_language_command): Update now that
3636 filename_extensions returns a vector.
3637 (unknown_language_data): Remove la_filename_extensions
3638 initializer.
3639 (auto_language_data): Likewise.
3640 * language.h (language_data): Remove la_filename_extensions field.
3641 (language_defn::filename_extensions): New member function.
3642 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3643 initializer.
3644 * objc-lang.c (objc_extensions): Delete, moved into
3645 objc_language::filename_extensions.
3646 (objc_language_data): Remove la_filename_extensions initializer.
3647 (objc_language::filename_extensions): New member function.
3648 * opencl-lang.c (opencl_language_data): Remove
3649 la_filename_extensions initializer.
3650 * p-lang.c (pascal_extensions): Delete, moved into
3651 pascal_language::filename_extensions.
3652 (pascal_language_data): Remove la_filename_extensions initializer.
3653 (pascal_language::filename_extensions): New member function.
3654 * rust-lang.c (rust_extensions): Delete, moved into
3655 rust_language::filename_extensions.
3656 (rust_language_data): Remove la_filename_extensions initializer.
3657 (rust_language::filename_extensions): New member function.
3658 * symfile.c (add_filename_language): Add new assert.
3659
6f7664a9
AB
36602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3661
3662 * ada-lang.c (ada_language_data): Remove la_name and
3663 la_natural_name initializers.
3664 (ada_language::name): New member function.
3665 (ada_language::natural_name): New member function.
3666 * c-lang.c (c_language_data): Remove la_name and
3667 la_natural_name initializers.
3668 (c_language::name): New member function.
3669 (c_language::natural_name): New member function.
3670 (cplus_language_data): Remove la_name and
3671 la_natural_name initializers.
3672 (cplus_language::name): New member function.
3673 (cplus_language::natural_name): New member function.
3674 (asm_language_data): Remove la_name and
3675 la_natural_name initializers.
3676 (asm_language::name): New member function.
3677 (asm_language::natural_name): New member function.
3678 (minimal_language_data): Remove la_name and
3679 la_natural_name initializers.
3680 (minimal_language::name): New member function.
3681 (minimal_language::natural_name): New member function.
3682 * compile/compile.c (compile_to_object): Update call to
3683 lanugage_defn::name.
3684 * d-lang.c (d_language_data): Remove la_name and
3685 la_natural_name initializers.
3686 (d_language::name): New member function.
3687 (d_language::natural_name): New member function.
3688 * expprint.c (print_subexp_standard): Update call to
3689 language_defn::name.
3690 (dump_raw_expression): Likewise
3691 (dump_prefix_expression): Likewise.
3692 * f-lang.c (f_language_data): Remove la_name and
3693 la_natural_name initializers.
3694 (f_language::name): New member function.
3695 (f_language::natural_name): New member function.
3696 * go-lang.c (go_language_data): Remove la_name and
3697 la_natural_name initializers.
3698 (go_language::name): New member function.
3699 (go_language::natural_name): New member function.
3700 * language.c (show_language_command): Update call to
3701 language_defn::name.
3702 (set_language_command): Likewise.
3703 (language_enum): Likewise.
3704 (language_str): Likewise.
3705 (add_set_language_command): Likewise, use
3706 language_defn::natural_name in the doc string.
3707 (unknown_language_data): Remove la_name and
3708 la_natural_name initializers.
3709 (unknown_language::name): New member function.
3710 (unknown_language::natural_name): New member function.
3711 (auto_language_data): Remove la_name and
3712 la_natural_name initializers.
3713 (auto_language::name): New member function.
3714 (auto_language::natural_name): New member function.
3715 (language_lookup_primitive_type_as_symbol): Update call to
3716 language_defn::name.
3717 * language.h (language_data): Remove la_name and la_natural_name
3718 member variables.
3719 (language_defn::name): New member function.
3720 (language_defn::natural_name): New member function.
3721 * m2-lang.c (m2_language_data): Remove la_name and
3722 la_natural_name initializers.
3723 (m2_language::name): New member function.
3724 (m2_language::natural_name): New member function.
3725 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3726 language_defn::natural_name.
3727 * objc-lang.c (objc_language_data): Remove la_name and
3728 la_natural_name initializers.
3729 (objc_language::name): New member function.
3730 (objc_language::natural_name): New member function.
3731 * opencl-lang.c (opencl_language_data): Remove la_name and
3732 la_natural_name initializers.
3733 (opencl_language::name): New member function.
3734 (opencl_language::natural_name): New member function.
3735 * p-lang.c (pascal_language_data): Remove la_name and
3736 la_natural_name initializers.
3737 (pascal_language::name): New member function.
3738 (pascal_language::natural_name): New member function.
3739 * rust-lang.c (rust_language_data): Remove la_name and
3740 la_natural_name initializers.
3741 (rust_language::name): New member function.
3742 (rust_language::natural_name): New member function.
3743 * symtab.c (lookup_language_this): Update call to
3744 language_defn::name.
3745
5bae7c4e
AB
37462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3747
3748 * ada-lang.c (ada_language_data): Remove la_name_of_this
3749 initializer.
3750 * ax-gdb.c (gen_expr): Update call to name_of_this.
3751 * c-exp.y (classify_name): Likewise.
3752 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3753 (cplus_language_data): Likewise.
3754 (cplus_language::name_of_this): New member function.
3755 (asm_language_data): Remove la_name_of_this initializer.
3756 (minimal_language_data): Likewise.
3757 * d-lang.c (d_language_data): Likewise.
3758 (d_language::name_of_this): New member function.
3759 * expprint.c (print_subexp_standard): Update call to name_of_this.
3760 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3761 * go-lang.c (go_language_data): Likewise.
3762 * language.c (unknown_language_data): Likewise.
3763 (unknown_language::name_of_this): New member function.
3764 (auto_language_data): Remove la_name_of_this initializer.
3765 (auto_language::name_of_this): New member function.
3766 * language.h (language_data): Delete la_name_of_this member
3767 variable.
3768 (language_defn::name_of_this): New member function.
3769 * m2-lang.c (m2_language_data): Remove la_name_of_this
3770 initializer.
3771 * objc-lang.c (objc_language_data): Likewise.
3772 (objc_language::name_of_this): New member function.
3773 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3774 initializer.
3775 * p-lang.c (pascal_language_data): Likewise.
3776 (pascal_language::name_of_this): New member function.
3777 * rust-lang.c (rust_language_data): Remove la_name_of_this
3778 initializer.
3779 * symtab.c (lookup_language_this): Update call to name_of_this.
3780 (lookup_symbol_aux): Likewise.
3781 * valops.c (value_of_this): Likewise.
3782
22e3f3ed
AB
37832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3784
3785 * ada-lang.c (ada_language_data): Remove
3786 la_struct_too_deep_ellipsis initializer.
3787 (ada_language::struct_too_deep_ellipsis): New member function.
3788 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3789 initializer.
3790 (cplus_language_data): Likewise.
3791 (asm_language_data): Likewise.
3792 (minimal_language_data): Likewise.
3793 * cp-valprint.c (cp_print_value): Update call to
3794 struct_too_deep_ellipsis.
3795 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3796 initializer.
3797 * f-lang.c (f_language_data): Likewise.
3798 (f_language::struct_too_deep_ellipsis): New member function.
3799 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3800 initializer.
3801 * language.c (unknown_language_data): Likewise.
3802 (auto_language_data): Likewise.
3803 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3804 member variable.
3805 (language_defn::struct_too_deep_ellipsis): New member function.
3806 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3807 initializer.Q
3808 * objc-lang.c (objc_language_data): Likewise.
3809 * opencl-lang.c (opencl_language_data): Likewise.
3810 * p-lang.c (pascal_language_data): Likewise.
3811 * rust-lang.c (rust_language_data): Likewise.
3812 * valprint.c (val_print_check_max_depth): Update call to
3813 struct_too_deep_ellipsis.
3814
ed29e1c7
FW
38152020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3816
3817 * MAINTAINERS (Write After Approval): Add myself.
3818
12d8f940
TT
38192020-09-15 Tom Tromey <tom@tromey.com>
3820
3821 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3822 Remove.
3823
6b5a7bc7
TT
38242020-09-15 Tom Tromey <tom@tromey.com>
3825
3826 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3827 and TYPE_CODE_METHODPTR cases.
3828 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3829 (c_value_print_inner): Update.
3830 * valprint.c (generic_value_print_memberptr): New function, from
3831 c_value_print_memberptr.
3832 (generic_value_print): Use it. Call cplus_print_method_ptr.
3833
47f0e2ff
TT
38342020-09-15 Tom Tromey <tromey@adacore.com>
3835
3836 * python/python-internal.h (PyInt_FromLong): Remove define.
3837 * python/py-value.c (convert_value_from_python): Use
3838 gdb_py_object_from_longest.
3839 * python/py-type.c (typy_get_code): Use
3840 gdb_py_object_from_longest.
3841 * python/py-symtab.c (salpy_get_line): Use
3842 gdb_py_object_from_longest.
3843 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3844 gdb_py_object_from_longest.
3845 * python/py-record.c (recpy_gap_reason_code): Use
3846 gdb_py_object_from_longest.
3847 * python/py-record-btrace.c (recpy_bt_insn_size)
3848 (recpy_bt_func_level, btpy_list_count): Use
3849 gdb_py_object_from_longest.
3850 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3851 gdb_py_object_from_longest. Fix error handling.
3852 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3853 gdb_py_object_from_longest.
3854 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3855 gdb_py_object_from_longest.
3856 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3857 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3858 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3859
512116ce
TT
38602020-09-15 Tom Tromey <tromey@adacore.com>
3861
3862 * python/python.c (gdbpy_parameter_value): Use
3863 gdb_py_object_from_ulongest.
3864
4ab1029c
TT
38652020-09-15 Tom Tromey <tromey@adacore.com>
3866
3867 * python/py-infevents.c (create_register_changed_event_object):
3868 Use gdb_py_object_from_longest.
3869 * python/py-exitedevent.c (create_exited_event_object): Use
3870 gdb_py_object_from_longest.
3871
062534d4
TT
38722020-09-15 Tom Tromey <tromey@adacore.com>
3873
3874 * python/python.c (gdbpy_parameter_value): Use
3875 gdb_py_object_from_longest.
3876 * python/py-type.c (convert_field, typy_range): Use
3877 gdb_py_object_from_longest.
3878 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3879 gdb_py_object_from_longest.
3880 * python/py-lazy-string.c (stpy_get_length): Use
3881 gdb_py_object_from_longest.
3882 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3883 gdb_py_object_from_longest.
3884 * python/py-infevents.c (create_memory_changed_event_object): Use
3885 gdb_py_object_from_longest.
3886 * python/py-inferior.c (infpy_get_num): Use
3887 gdb_py_object_from_longest.
3888 (infpy_get_pid): Likewise.
3889
d1cab987
TT
38902020-09-15 Tom Tromey <tromey@adacore.com>
3891
3892 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3893 defines.
3894 * python/py-value.c (valpy_long): Use
3895 gdb_py_object_from_ulongest.
3896 * python/py-symtab.c (salpy_get_pc): Use
3897 gdb_py_object_from_ulongest.
3898 (salpy_get_last): Likewise.
3899 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3900 gdb_py_object_from_ulongest.
3901 * python/py-lazy-string.c (stpy_get_address): Use
3902 gdb_py_object_from_ulongest.
3903 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3904 * python/py-arch.c (archpy_disassemble): Use
3905 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3906 error handling.
3907
4bde49dc
TT
39082020-09-15 Tom Tromey <tromey@adacore.com>
3909
3910 * python/python-internal.h (gdb_py_long_from_longest): Remove
3911 defines.
3912 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3913 * python/py-type.c (convert_field, typy_get_sizeof): Use
3914 gdb_py_object_from_longest.
3915 * python/py-record-btrace.c (btpy_list_index): Use
3916 gdb_py_object_from_longest.
3917
37431074
TT
39182020-09-15 Tom Tromey <tromey@adacore.com>
3919
3920 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3921 * python/py-record.c (recpy_element_number): Use
3922 gdb_py_object_from_longest.
3923 (recpy_gap_number): Likewise.
3924
cbe25684
TT
39252020-09-15 Tom Tromey <tromey@adacore.com>
3926
3927 * top.c (ui::ui): Update.
3928 (highest_ui_num): Remove.
3929 * top.h (struct ui) <num>: Remove.
3930
db92ac45
TT
39312020-09-15 Tom Tromey <tromey@adacore.com>
3932
3933 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3934 * ui-style.c (ansi_regex_text): Now array.
3935 * rust-exp.y (number_regex_text): Now array.
3936 * linespec.c (linespec_quote_characters): Now array.
3937 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3938 Now arrays.
3939
d2b31b67
SM
39402020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3941
3942 * debuginfod-support.c (debuginfod_client_deleter): New.
3943 (debuginfod_client_up): New.
3944 (debuginfod_init): Return debuginfod_client_up.
3945 (debuginfod_source_query): Adjust.
3946 (debuginfod_debuginfo_query): Adjust.
3947
3246bd8e
SM
39482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3949
3950 * debuginfod-support.c (debuginfod_source_query): Use
3951 make_unique_xstrdup.
3952
10242f36
SM
39532020-09-14 Simon Marchi <simon.marchi@efficios.com>
3954
3955 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3956 with `type::instance_flags`.
3957
e1044e6a
MM
39582020-09-14 Michael Mullin <masmullin@gmail.com>
3959
3960 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3961 Remove baton parameter.
3962
04902b09
PA
39632020-09-14 Pedro Alves <pedro@palves.net>
3964
3965 * Makefile.in (SELFTESTS_SRCS): Add
3966 unittests/enum-flags-selftests.c.
3967 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3968 btrace_function_flags instead of enum btrace_function_flag.
3969 * compile/compile-c-types.c (convert_qualified): Use
3970 enum_flags::raw.
3971 * compile/compile-cplus-symbols.c (convert_one_symbol)
3972 (convert_symbol_bmsym):
3973 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3974 (compile_cplus_convert_struct_or_union_methods)
3975 (compile_cplus_instance::convert_qualified_base):
3976 * go-exp.y (parse_string_or_char): Add cast to int.
3977 * unittests/enum-flags-selftests.c: New file.
3978 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3979 type to btrace_thread_flags from btrace_thread_flag.
3980 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3981 local's type to btrace_thread_flags from btrace_thread_flag. Add
3982 cast in DEBUG call.
3983
69896a2c
PA
39842020-09-14 Pedro Alves <pedro@palves.net>
3985
3986 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3987 * gdbtypes.c (address_space_name_to_int): Rename to ...
3988 (address_space_name_to_type_instance_flags): ... this.
3989 (address_space_int_to_name): Rename to ...
3990 (address_space_type_instance_flags_to_name): ... this.
3991 * gdbtypes.h (address_space_name_to_int): Rename to ...
3992 (address_space_name_to_type_instance_flags): ... this.
3993 (address_space_int_to_name): Rename to ...
3994 (address_space_type_instance_flags_to_name): ... this.
3995 * type-stack.c (type_stack::insert): Adjust to rename.
3996 * type-stack.h (type_stack::insert): Likewise.
3997
314ad88d
PA
39982020-09-14 Pedro Alves <pedro@palves.net>
3999 Andrew Burgess <andrew.burgess@embecosm.com>
4000
4001 * avr-tdep.c (avr_address_class_type_flags): Return
4002 type_instance_flags.
4003 (avr_address_class_type_flags_to_name): Take a
4004 type_instance_flags.
4005 (avr_address_class_name_to_type_flags): Return bool and take a
4006 type_instance_flags.
4007 * d-lang.c (build_d_types): Use type::set_instance_flags.
4008 * ft32-tdep.c (ft32_address_class_type_flags): Return
4009 type_instance_flags.
4010 (ft32_address_class_type_flags_to_name): Take a
4011 type_instance_flags.
4012 (ft32_address_class_name_to_type_flags): Return bool and take a
4013 type_instance_flags.
4014 (ft32_gdbarch_init): Use type::set_instance_flags.
4015 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4016 * gdbarch.h, gdbarch.c: Regenerate.
4017 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4018 (address_class_name_to_type_flags): Use type_instance_flags and
4019 bool.
4020 * gdbtypes.c (address_space_name_to_int)
4021 (address_space_int_to_name, make_qualified_type): Use
4022 type_instance_flags.
4023 (make_qualified_type): Use type_instance_flags and
4024 type::set_instance_flags.
4025 (make_type_with_address_space, make_cv_type, make_vector_type)
4026 (check_typedef): Use type_instance_flags.
4027 (recursive_dump_type): Cast type_instance_flags to unsigned for
4028 printing.
4029 (copy_type_recursive): Use type::set_instance_flags.
4030 (gdbtypes_post_init): Use type::set_instance_flags.
4031 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4032 <m_instance_flags>: ... this.
4033 <instance_flags, set_instance_flags>: New methods.
4034 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4035 (SET_TYPE_INSTANCE_FLAGS): New.
4036 (address_space_name_to_int, address_space_int_to_name)
4037 (make_type_with_address_space): Pass flags using
4038 type_instance_flags instead of int.
4039 * stabsread.c (cleanup_undefined_types_noname): Use
4040 type::set_instance_flags.
4041 * s390-tdep.c (s390_address_class_type_flags): Return
4042 type_instance_flags.
4043 (s390_address_class_type_flags_to_name): Take a
4044 type_instance_flags.
4045 (s390_address_class_name_to_type_flags): Return bool and take a
4046 type_instance_flags.
4047 * type-stack.c (type_stack::follow_types): Use
4048 type_instance_flags.
4049 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4050
27087b7f
TT
40512020-09-14 Tom Tromey <tromey@adacore.com>
4052
4053 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4054 * x86-tdep.c (x86_is_thunk_register_name)
4055 (x86_in_indirect_branch_thunk): Update.
4056 * sparc64-tdep.c (sparc64_fpu_register_names)
4057 (sparc64_cp0_register_names, sparc64_register_names)
4058 (sparc64_pseudo_register_names): Now const.
4059 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4060 cp0_registers_num>: Now const.
4061 * sparc-tdep.c (sparc_core_register_names)
4062 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4063 (sparc32_pseudo_register_names): Now const.
4064 (validate_tdesc_registers): Update.
4065 * rust-lang.c (rust_extensions): Now const.
4066 * p-lang.c (p_extensions): Now const.
4067 * objc-lang.c (objc_extensions): Now const.
4068 * nto-tdep.c (nto_thread_state_str): Now const.
4069 * moxie-tdep.c (moxie_register_names): Now const.
4070 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4071 Now const.
4072 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4073 (mips_linux_reg_names): Now const.
4074 (mips_gdbarch_init): Update.
4075 * microblaze-tdep.c (microblaze_register_names): Now const.
4076 * m68k-tdep.c (m68k_register_names): Now const.
4077 * m32r-tdep.c (m32r_register_names): Now const.
4078 * ia64-tdep.c (ia64_register_names): Now const.
4079 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4080 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4081 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4082 ymm_avx512_register_names, pkeys_register_names>: Now const.
4083 * i386-tdep.c (i386_register_names, i386_zmm_names)
4084 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4085 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4086 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4087 * f-lang.c (f_extensions): Now const.
4088 * d-lang.c (d_extensions): Now const.
4089 * csky-tdep.c (csky_register_names): Now const.
4090 * charset.c (default_charset_names, charset_enum): Now const.
4091 (_initialize_charset): Update.
4092 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4093 const.
4094 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4095 (bsd_uthread_solib_loaded): Update.
4096 (bsd_uthread_state): Now const.
4097 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4098 (amd64_ymm_avx512_names, amd64_ymmh_names)
4099 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4100 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4101 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4102 (amd64_dword_names): Now const.
4103 * agent.c (can_use_agent_enum): Now const.
4104 * ada-tasks.c (task_states, long_task_states): Now const.
4105 * ada-lang.c (known_runtime_file_name_patterns)
4106 (known_auxiliary_function_name_patterns, attribute_names)
4107 (standard_exc, ada_extensions): Now const.
4108
89806626
SM
41092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4110
4111 * bcache.h (struct bcache) <bcache>: Remove constructor.
4112 <m_hash_function, m_compare_function>: Remove.
4113 <~bcache>: Make virtual.
4114 <compare>: Remove static method, introduce virtual method.
4115 <default_hash>: Remove.
4116 <hash>: New virtual method.
4117 * bcache.c (bcache::expand_hash_table): Update.
4118 (bcache::insert): Update.
4119 (bcache::hash): New.
4120 (bcache::compare): Update comment and parameter names.
4121 * gdbtypes.c (types_deeply_equal): Update.
4122 * psymtab.h (struct psymbol_bcache): New struct.
4123 (class psymtab_storage) <psymtab_storage>: Make default.
4124 <psymbol_cache>: Change type to psymbol_bcache.
4125 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4126 (psymbol_hash): Change to...
4127 (psymbol_bcache::hash): ... this.
4128 (psymbol_compare): Change to...
4129 (psymbol_bcache::compare): ... this.
4130
677c92fe
SM
41312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4132
4133 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4134 checking for initial lwp.
4135
3eba3a01
TT
41362020-09-14 Tom Tromey <tromey@adacore.com>
4137
4138 * m68k-tdep.c (m68k_extract_return_value): Use
4139 pointer_result_regnum.
4140 (m68k_store_return_value): Likewise.
4141 (m68k_reg_struct_return_p): Handle vectors and arrays.
4142 (m68k_return_value): Handle arrays.
4143 (m68k_svr4_return_value): Fix single-element aggregate handling.
4144 Handle long double. Adjust for embedded ABI.
4145 (m68k_svr4_init_abi): Set pointer_result_regnum.
4146 (m68k_embedded_init_abi): New function.
4147 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4148 (m68k_osabi_sniffer): New function.
4149 (_initialize_m68k_tdep): Register osabi sniffer.
4150 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4151 member.
4152
33f4dd48
SM
41532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4154
4155 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4156 with gdb::unique_xmalloc_ptr<char>.
4157
8400a90d
SM
41582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4159
4160 * xml-support.h (xml_fetch_another): Change type to be a
4161 function_view.
4162 (xml_process_xincludes): Remove baton parameter.
4163 (xml_fetch_content_from_file): Change baton parameter to
4164 dirname.
4165 * xml-support.c (struct xinclude_parsing_data)
4166 <xinclude_parsing_data>: Remove baton parameter.
4167 <fetcher_baton>: Remove.
4168 (xinclude_start_include): Adjust.
4169 (xml_process_xincludes): Adjust.
4170 (xml_fetch_content_from_file): Replace baton parameter with
4171 dirname.
4172 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4173 (xml_init_syscalls_info): Use a lambda.
4174 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4175 (file_read_description_xml): Use a lambda.
4176 (fetch_available_features_from_target): Change baton parameter
4177 to target_ops.
4178 (target_read_description_xml): Use a lambda.
4179 (target_fetch_description_xml): Use a lambda.
4180 (string_read_description_xml): Update.
4181
04f5bab2
SM
41822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4183
4184 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4185 uses with type::endianity_is_not_default.
4186
db558e34
SM
41872020-09-14 Simon Marchi <simon.marchi@efficios.com>
4188
4189 * gdbtypes.h (struct type) <endianity_is_not_default,
4190 set_endianity_is_not_default>: New methods.
4191 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4192 type::endianity_is_not_default, change all write call sites to
4193 use type::set_endianity_is_not_default.
4194
22c4c60c
SM
41952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4196
4197 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4198 uses with type::is_fixed_instance.
4199
9cdd0d12
SM
42002020-09-14 Simon Marchi <simon.marchi@efficios.com>
4201
4202 * gdbtypes.h (struct type) <is_fixed_instance,
4203 set_is_fixed_instance>: New methods.
4204 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4205 write call sites to use type::set_is_fixed_instance.
4206
0becda7a
SM
42072020-09-14 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4210 uses with type::is_gnu_ifunc.
4211
03cc7249
SM
42122020-09-14 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4215 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4216 use type::set_is_gnu_ifunc.
4217
3f46044c
SM
42182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4219
4220 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4221 uses with type::stub_is_supported.
4222
9baccff6
SM
42232020-09-14 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4226 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4227 use type::set_stub_is_supported.
4228
bd63c870
SM
42292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4232 uses with type::is_vector.
4233
2062087b
SM
42342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4237 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4238 use type::set_is_vector.
4239
a409645d
SM
42402020-09-14 Simon Marchi <simon.marchi@efficios.com>
4241
4242 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4243 uses with type::has_varargs.
4244
1d6286ed
SM
42452020-09-14 Simon Marchi <simon.marchi@efficios.com>
4246
4247 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4248 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4249 use type::set_has_varargs.
4250
7f9f399b
SM
42512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4252
4253 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4254 uses with type::is_prototyped.
4255
27e69b7a
SM
42562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4259 New methods.
4260 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4261 call sites to use type::set_is_prototyped.
4262
d2183968
SM
42632020-09-14 Simon Marchi <simon.marchi@efficios.com>
4264
4265 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4266 uses with type::target_is_stub.
4267
8f53807e
SM
42682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4269
4270 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4271 New methods.
4272 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4273 sites to use type::set_target_is_stub.
4274
e46d3488
SM
42752020-09-14 Simon Marchi <simon.marchi@efficios.com>
4276
4277 * gdbtypes.h (TYPE_STUB): Remove, replace all
4278 uses with type::is_stub.
4279
b4b73759
SM
42802020-09-14 Simon Marchi <simon.marchi@efficios.com>
4281
4282 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4283 (TYPE_STUB): Use type::is_stub, change all write call sites to
4284 use type::set_is_stub.
4285
20ce4123
SM
42862020-09-14 Simon Marchi <simon.marchi@efficios.com>
4287
4288 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4289 type::has_no_signedness.
4290
15152a54
SM
42912020-09-14 Simon Marchi <simon.marchi@efficios.com>
4292
4293 * gdbtypes.h (struct type) <has_no_signedness,
4294 set_has_no_signedness>: New methods.
4295 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4296 call sites to use type::set_has_no_signedness.
4297
c6d940a9
SM
42982020-09-14 Simon Marchi <simon.marchi@efficios.com>
4299
4300 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4301 type::is_unsigned.
4302
653223d3
SM
43032020-09-14 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4306 methods.
4307 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4308 sites to use type::set_is_unsigned.
4309
55ea94da 43102020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4311 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4312
e851246a
SM
4313 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4314 pointer and stack frame offset when unwinding.
55ea94da 4315
6791b117
PA
43162020-09-13 Pedro Alves <pedro@palves.net>
4317
4318 * NEWS: Document "-break-insert --qualified".
4319 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4320
77f2120b
PA
43212020-09-13 Pedro Alves <pedro@palves.net>
4322
4323 * linespec.c (classify_mtype, compare_msyms): Delete.
4324 (search_minsyms_for_name): Remove classification logic. Instead
4325 filter out trampoline symbols if we also found an external
4326 function of the same name.
4327
ed6a896c
JB
43282020-09-13 Joel Brobecker <brobecker@adacore.com>
4329
4330 * NEWS: Create a new section for the next release branch.
4331 Rename the section of the current branch, now that it has
4332 been cut.
4333
32aea73e
JB
43342020-09-13 Joel Brobecker <brobecker@adacore.com>
4335
4336 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4337 * version.in: Bump version to 11.0.50.DATE-git.
4338
8087c3fa
JB
43392020-09-12 Joel Brobecker <brobecker@adacore.com>
4340
4341 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4342
2a67f09d
FW
43432020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4344 Felix Willgerodt <Felix.Willgerodt@intel.com>
4345
4346 * gdbarch.sh: Added bfloat16 type.
4347 * gdbarch.c: Regenerated.
4348 * gdbarch.h: Regenerated.
4349 * gdbtypes.c (floatformats_bfloat16): New struct.
4350 (gdbtypes_post_init): Add builtin_bfloat16.
4351 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4352 (floatformats_bfloat16): New struct.
4353 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4354 (i386_ymm_type): Add field "v16_bfloat16"
4355 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4356 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4357 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4358 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4359 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4360 * features/i386/64bit-avx512.c: Regenerated.
4361 * features/i386/64bit-sse.xml: Add bfloat16 type.
4362 * features/i386/64bit-sse.c: Regenerated.
4363
1347d111
FW
43642020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4365
4366 * i386-tdep.c (i386_zmm_type): Fix field names.
4367 (i386_ymm_type): Fix field names.
4368
7a4e8e7d
TBA
43692020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4370
4371 * breakpoint.c: Fix typo in the help message of the
4372 "set breakpoint condition-evaluation" command.
4373
cf4ac4be
KR
43742020-09-10 Kamil Rytarowski <n54@gmx.com>
4375
4376 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4377 * (nbsd_nat_target::pid_to_exec_file)
4378 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4379 (nbsd_nat_target::post_startup_inferior)
4380 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4381 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4382 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4383 * (nbsd_thread_lister): Remove.
4384
f404573e
KR
43852020-09-10 Kamil Rytarowski <n54@gmx.com>
4386
4387 * fork-inferior.c (startup_inferior): Avoid double free.
4388
1ccb2c17
KR
43892020-09-10 Kamil Rytarowski <n54@gmx.com>
4390
4391 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4392 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4393
feedfcc7
KR
43942020-09-10 Kamil Rytarowski <n54@gmx.com>
4395
4396 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4397 * netbsd-nat.c: Include <sys/ptrace.h>.
4398 * (netbsd_nat::enable_proc_events): Add.
4399
c489f8c6
KR
44002020-09-10 Kamil Rytarowski <n54@gmx.com>
4401
4402 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4403 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4404 (netbsd_nat::for_each_thread): Add.
4405 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4406 "gdbsupport/common-debug.h".
4407 * (netbsd_nat::netbsd_thread_lister)
4408 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4409 (netbsd_nat::for_each_thread): Add.
4410
330662f6
KR
44112020-09-10 Kamil Rytarowski <n54@gmx.com>
4412
4413 * netbsd-nat.h: Include <unistd.h>.
4414 * (netbsd_nat::pid_to_exec_file): Add.
4415 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4416 * (netbsd_nat::pid_to_exec_file) Add.
4417
70b67307
KR
44182020-09-10 Kamil Rytarowski <n54@gmx.com>
4419
4420 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4421
99cf6da6
KR
44222020-09-10 Kamil Rytarowski <n54@gmx.com>
4423
4424 * netbsd-nat.h: New file.
4425 * netbsd-nat.c: Likewise.
4426
1b788fb6
TT
44272020-09-09 Tom Tromey <tromey@adacore.com>
4428
4429 * ada-lang.c (remove_extra_symbols): Do not increment when
4430 removing an element
4431
03b0a45f
TT
44322020-09-08 Tom Tromey <tromey@adacore.com>
4433
4434 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4435
3cae4447
TT
44362020-09-08 Tom Tromey <tromey@adacore.com>
4437
4438 PR win32/25302:
4439 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4440 (gdb_bfd_init_data): New function.
4441 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4442
7f08fd51
TBA
44432020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4444
4445 * infrun.c (fetch_inferior_event): Use
4446 `switch_to_target_no_thread` to switch the target.
4447
3e6ff933
TT
44482020-09-06 Tom Tromey <tom@tromey.com>
4449
4450 * symfile.h (dwarf2_free_objfile): Don't declare.
4451
e56798df
AKS
44522020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4453
4454 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4455 to match 16 byte real/complex type generated by Flang compiler.
4456
8f5c6526
TV
44572020-09-03 Tom de Vries <tdevries@suse.de>
4458
4459 PR breakpoint/26546
4460 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4461 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4462
c5065df0
SM
44632020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4464
4465 * maint.c (index_digits): New function.
4466 (struct maint_print_section_data): Remove.
4467 (print_bfd_section_info): Remove print_data parameter, add arg
4468 and index_digits.
4469 (print_objfile_section_info): Likewise.
4470 (print_bfd_section_info_maybe_relocated): Likewise (plus
4471 objfile).
4472 (maintenance_info_sections): Adjust calls.
4473
02c6f3f1
TT
44742020-09-02 Tom Tromey <tromey@adacore.com>
4475
4476 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4477 for null pointers.
4478 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4479
ef5e5b0b
SM
44802020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4481
4482 * bcache.h (struct bcache) <insert>: Change type of `added` to
4483 pointer to bool.
4484 * bcache.c (bcache::insert): Likewise.
4485 * gdbtypes.c (check_types_worklist): Adjust.
4486 * psymtab.c (add_psymbol_to_bcache): Adjust.
4487
973695d6
KB
44882020-08-31 Kevin Buettner <kevinb@redhat.com>
4489
4490 * corelow.c (unordered_set): Include.
4491 (class core_target): Add field 'm_core_unavailable_mappings'.
4492 (core_target::build_file_mappings): Print only one warning
4493 per inaccessible file. Add unavailable/broken mappings
4494 to m_core_unavailable_mappings.
4495 (core_target::xfer_partial): Call...
4496 (core_target::xfer_memory_via_mappings): New method.
4497
264fc0e2
SM
44982020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4499
4500 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4501 type to bool.
4502
2de01bdb
SM
45032020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4504
4505 * dwarf2/read.c (struct field_info): Fix indentation.
4506
f3bd50f1
SM
45072020-08-31 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4510 ordering in comment.
4511 * frame.c (frame_id_eq): Fix indentation.
4512
22b9b4b0
SL
45132020-08-31 Scott Linder <scott@scottlinder.com>
4514 Simon Marchi <simon.marchi@efficios.com>
4515
4516 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4517 inline frame ids in outer frame.
4518
84154d16
SM
45192020-08-31 Simon Marchi <simon.marchi@efficios.com>
4520
4521 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4522 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4523 (outer_frame_id): Use FID_STACK_OUTER instead of
4524 FID_STACK_INVALID.
4525 (frame_id_p): Don't check for outer_frame_id.
4526
8efaf6b3
SM
45272020-08-31 Simon Marchi <simon.marchi@efficios.com>
4528
4529 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4530 regnum/frame in value. Call allocate_value_lazy.
4531 * frame.c (frame_unwind_register_value): Use
4532 val_print_not_saved.
4533
fe1fe7ea
SM
45342020-08-31 Simon Marchi <simon.marchi@efficios.com>
4535
4536 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4537
f7c7700d
PA
45382020-08-29 Pedro Alves <pedro@palves.net>
4539
4540 * progspace.c (print_program_space): Use all_inferiors. Switch to
4541 the inferior before calling target_pid_to_str.
4542
e0814aae
TT
45432020-08-28 Tom Tromey <tom@tromey.com>
4544
4545 * xcoffread.c (xcoff_end_psymtab): Update comment.
4546 * dbxread.c (dbx_end_psymtab): Update comment.
4547
626d2320
TV
45482020-08-28 Tom de Vries <tdevries@suse.de>
4549
4550 PR breakpoint/26544
4551 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4552 event_location.
4553 (create_breakpoint): Same.
4554 (base_breakpoint_decode_location): Same.
4555 (bkpt_create_sals_from_location): Same.
4556 (bkpt_decode_location): Same.
4557 (bkpt_probe_create_sals_from_location): Same.
4558 (bkpt_probe_decode_location): Same.
4559 (tracepoint_create_sals_from_location): Same.
4560 (tracepoint_decode_location): Same.
4561 (tracepoint_probe_decode_location): Same.
4562 (strace_marker_create_sals_from_location): Same.
4563 (strace_marker_decode_location): Same.
4564 (create_sals_from_location_default): Same.
4565 (decode_location_default): Same.
4566 * breakpoint.h (struct breakpoint_ops): Same.
4567 (create_breakpoint): Same.
4568 * linespec.h (decode_line_full): Same.
4569 * linespec.c (decode_line_full): Same. Throw error if
4570 result.size () == 0.
4571
df631783
PA
45722020-08-27 Pedro Alves <pedro@palves.net>
4573
4574 PR gdb/26524
4575 * breakpoint.c (until_break_fsm) <location_breakpoint,
4576 caller_breakpoint>: Delete fields.
4577 <breakpoints>: New field.
4578 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4579 two individual breakpoints.
4580 (until_break_fsm::should_stop): Loop over breakpoints in the
4581 breakpoint vector.
4582 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4583 vector.
4584 (until_break_command): Handle location expanding into multiple
4585 sals.
4586
b2b38aa4
PA
45872020-08-27 Pedro Alves <pedro@palves.net>
4588
4589 PR gdb/26523
4590 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4591 bp_until breakpoints user-specified locations. Update intro
4592 comment.
4593
b886559f
SM
45942020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4595
4596 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4597 gdb_bfd_sections): New.
4598 * maint.c (print_bfd_section_info): Change param type to
4599 maint_print_section_data.
4600 (print_objfile_section_info): Likewise.
4601 (print_bfd_section_info_maybe_relocated): Likewise.
4602 (maintenance_info_sections): Use gdb_bfd_sections.
4603
4c6e63bf
SV
46042020-08-25 Shahab Vahedi <shahab@synopsys.com>
4605
4606 * MAINTAINERS: Add ARC target and maintainer.
4607
8d7f0635
AK
46082020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4609
4610 * configure.tgt: ARC support for GNU/Linux.
4611 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4612 * arc-linux-tdep.c: New file.
4613 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4614 * arc-tdep.c (arc_write_pc): Use it.
4615
fdd8731b
SV
46162020-08-25 Shahab Vahedi <shahab@synopsys.com>
4617
4618 * arc-tdep.c (arc_check_for_hardware_loop): New.
4619 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4620
22459524
SV
46212020-08-25 Shahab Vahedi <shahab@synopsys.com>
4622
4623 * arc-tdep.h: Include "gdbarch.h".
4624
995d3a19
SV
46252020-08-25 Shahab Vahedi <shahab@synopsys.com>
4626
4627 * arch/arc.h
4628 (arc_gdbarch_features): New class to stir the selection of target XML.
4629 (arc_create_target_description): Use FEATURES to choose XML target.
4630 (arc_lookup_target_description): Use arc_create_target_description
4631 to create _new_ target descriptions or return the already created
4632 ones if the FEATURES is the same.
4633 * arch/arc.c: Implementation of prototypes described above.
4634 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4635 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4636 * arc-tdep.c (*_feature_name): Make feature names consistent.
4637 (arc_register_feature): A new struct to hold information about
4638 registers of a particular target/feature.
4639 (arc_check_tdesc_feature): Check if XML provides registers in
4640 compliance with ARC_REGISTER_FEATURE structs.
4641 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4642 (determine_*_reg_feature_set): Which feature name to look for.
4643 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4644 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4645 to expected ISA enums to be used in arc_gdbarch_features structs.
4646 * features/Makefile (FEATURE_XMLFILES): Add new files.
4647 * gdb/features/arc/v1-aux.c: New file.
4648 * gdb/features/arc/v1-aux.xml: Likewise.
4649 * gdb/features/arc/v1-core.c: Likewise.
4650 * gdb/features/arc/v1-core.xml: Likewise.
4651 * gdb/features/arc/v2-aux.c: Likewise.
4652 * gdb/features/arc/v2-aux.xml: Likewise.
4653 * gdb/features/arc/v2-core.c: Likewise.
4654 * gdb/features/arc/v2-core.xml: Likewise.
4655 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4656
3945d2d7
GM
46572020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4658 Andrew Burgess <andrew.burgess@embecosm.com>
4659
4660 PR m2/26372
fc5d6901 4661 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4662 an assert. Remove single element array indexing pattern as the
4663 MULTI_SUBSCRIPT support will handle this case too.
4664
2677f2d3
SM
46652020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4666
4667 * value.h (valprint_check_validity): Move declaration from
4668 here...
4669 * valprint.h (valprint_check_validity): ... to here.
4670
c426fddb
SM
46712020-08-24 Simon Marchi <simon.marchi@efficios.com>
4672
4673 * debug.h: New file.
4674 * debug.c (debug_prefixed_vprintf): New function.
4675 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4676 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4677
1eb8556f
SM
46782020-08-24 Simon Marchi <simon.marchi@efficios.com>
4679
4680 * infrun.h (infrun_debug_printf_1): New function declaration.
4681 (infrun_debug_printf): New macro.
4682 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4683 throughout.
4684 (infrun_debug_printf): New function.
4685 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4686 (handle_jit_event): Likewise.
4687
b8fff44e
MW
46882020-08-21 Mark Wielaard <mark@klomp.org>
4689
4690 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4691
d19c3068
SM
46922020-08-22 Simon Marchi <simon.marchi@efficios.com>
4693
4694 * frame.c (enum class frame_id_status): New.
4695 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4696 (fprintf_frame): Update.
4697 (compute_frame_id): Set frame id status to "computing" on entry.
4698 Set it back to "not_computed" on failure and to "computed" on
4699 success.
4700 (get_frame_id): Assert the frame id is not being computed.
4701 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4702 (create_new_frame): Likewise.
4703 (frame_cleanup_after_sniffer): Update assert.
4704
b70e516e
SM
47052020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4706
4707 * regcache.c (pid_ptid_regcache_map): New type.
4708 (target_ptid_regcache_map): Remove.
4709 (target_pid_ptid_regcache_map): New type.
4710 (regcaches): Change type to target_pid_ptid_regcache_map.
4711 (get_thread_arch_aspace_regcache): Update.
4712 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4713 case.
4714 (regcaches_size): Update.
4715 (regcache_count): Update.
4716 (registers_changed_ptid_target_pid_test): New.
4717 (_initialize_regcache): Register new test.
4718
cdd9148a
SM
47192020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4720
4721 * regcache.c (regcache_count): New.
4722 (struct regcache_test_data): New.
4723 (regcache_test_data_up): New.
4724 (populate_regcaches_for_test): New.
4725 (regcaches_test): Remove.
4726 (get_thread_arch_aspace_regcache_test): New.
4727 (registers_changed_ptid_all_test): New.
4728 (registers_changed_ptid_target_test): New.
4729 (registers_changed_ptid_target_ptid_test): New.
4730 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4731 (_initialize_regcache): Register new tests.
4732
dd125343
SM
47332020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4734
4735 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4736 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4737 gdbarch and aspace parameter. Use current inferior's aspace.
4738 Validate regcache's arch value.
4739 (regcaches_test): Update.
4740
3ee93972
SM
47412020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4742
4743 * regcache.c (regcaches_test): Call registers_changed.
4744
33bf4c5c
TBA
47452020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4746
4747 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4748
c2fd7fae
AKS
47492020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4750
4751 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4752 to find the end of prologue for flang compiled binaries.
4753 * arm-tdep.c (arm_skip_prologue): Likewise.
4754 * i386-tdep.c (i386_skip_prologue): Likewise.
4755 * producer.c (producer_is_llvm): New function.
4756 (producer_parsing_tests): Added new tests for clang/flang.
4757 * producer.h (producer_is_llvm): New declaration.
4758
9327494e
SM
47592020-08-18 Simon Marchi <simon.marchi@efficios.com>
4760
4761 * linux-nat.c (linux_nat_debug_printf): New function.
4762 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4763
d138725a
AM
47642020-08-18 Aaron Merey <amerey@redhat.com>
4765
4766 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4767 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4768 (CLIBS): Add DEBUGINFOD_LIBS.
4769
f9b11e6b
ST
47702020-08-17 Sergei Trofimovich <siarheit@google.com>
4771
4772 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4773 'gdbarch_num_regs'.
4774
3ae7ab99
TT
47752020-08-17 Tom Tromey <tromey@adacore.com>
4776
4777 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4778 ada_get_decoded_value returns NULL.
4779
b017825f
TT
47802020-08-17 Tom Tromey <tromey@adacore.com>
4781
4782 * python/py-inferior.c (infpy_search_memory): Use
4783 gdb_py_object_from_ulongest.
4784 * python/py-infevents.c (create_inferior_call_event_object)
4785 (create_memory_changed_event_object): Use
4786 gdb_py_object_from_ulongest.
4787 * python/py-linetable.c (ltpy_entry_get_pc): Use
4788 gdb_py_object_from_ulongest.
4789
7635cf79
SM
47902020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4791
4792 * loc.c (class symbol_needs_eval_context): Fix indentation.
4793
f54be24b
SM
47942020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4795
4796 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4797 bool.
4798
53d5a2a5
TV
47992020-08-17 Tom de Vries <tdevries@suse.de>
4800
4801 PR gdb/26393
4802 * gdbtypes.c (dump_dynamic_prop): New function.
4803 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4804
547ce8f0
TV
48052020-08-15 Tom de Vries <tdevries@suse.de>
4806
4807 PR backtrace/26390
4808 * stack.c (print_frame_args): Temporarily set the selected
4809 frame to FRAME while printing the frame's arguments.
4810
6ea815e7
PFC
48112020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4812
4813 PR breakpoints/26385
4814 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4815 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4816
6e562fa3
PFC
48172020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4818
4819 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4820 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4821 and >= to check return value instead of == -1 and != -1.
4822
d369b608
SM
48232020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4824
4825 * utils.h (class gdb_argv) <as_array_view>: New method.
4826 * utils.c (gdb_argv_as_array_view_test): New.
4827 (_initialize_utils): Register selftest.
4828 * maint.c (maintenance_selftest): Use the new method.
4829
b31488a3
KR
48302020-08-13 Kamil Rytarowski <n54@gmx.com>
4831
4832 * target.h (supports_dumpcore, dumpcore): New
4833 function declarations.
4834 * target.c (supports_dumpcore, dumpcore): New
4835 functions.
4836 * target-delegates.c: Rebuild.
4837 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4838 and target_dumpcore ().
4839
002a3166
AM
48402020-08-13 Aaron Merey <amerey@redhat.com>
4841
4842 * debuginfod-support.c: Replace global variables with user_data.
4843
ece5bc8a
SM
48442020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4845
4846 * maint.c (maintenance_selftest): Split args and pass array_view
4847 to run_tests.
4848
6d8a0a5e
LM
48492020-08-12 Luis Machado <luis.machado@linaro.org>
4850
4851 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4852 type's length.
4853 Use %s and pulongest to print the length.
4854
7cf663a9
PA
48552020-08-12 Pedro Alves <palves@redhat.com>
4856
4857 * NEWS: Move "Multi-target debugging support" item to the
4858 "Changes since GDB 9" section.
4859
27c7b875
PA
48602020-08-12 Pedro Alves <palves@redhat.com>
4861
4862 PR gdb/26336
4863 * progspace.c (program_space::remove_objfile): Invalidate the
4864 frame cache.
4865
1796a2a1
TV
48662020-08-11 Tom de Vries <tdevries@suse.de>
4867
4868 * MAINTAINERS: Mark ms1 as deleted.
4869
f8e3fe0d
LM
48702020-08-10 Luis Machado <luis.machado@linaro.org>
4871
4872 PR gdb/26310
4873
4874 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4875 act accordingly.
4876 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4877 movz/str/stur/stp skipping behavior.
4878
cc308722
LM
48792020-08-10 Luis Machado <luis.machado@linaro.org>
4880
4881 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4882 struct user_sve_header instead of struct sve_context.
4883
041d9819
SM
48842020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4885
4886 * read.h (dwarf2_fetch_die_loc_sect_off,
4887 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4888 `void *` parameter with function_view.
4889 * read.c (dwarf2_fetch_die_loc_sect_off,
4890 dwarf2_fetch_die_loc_cu_off): Likewise.
4891 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4892 (per_cu_dwarf_call): Adjust.
4893 (get_frame_address_in_block_wrapper): Remove.
4894 (indirect_synthetic_pointer): Adjust.
4895 (get_ax_pc): Remove.
4896 (dwarf2_compile_expr_to_ax): Adjust.
4897
38f8aa06
TV
48982020-08-08 Tom de Vries <tdevries@suse.de>
4899
4900 PR build/26344
4901 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4902 constructor.
4903 * regcache.c (get_thread_arch_aspace_regcache): Same.
4904
a52b3ae2
TT
49052020-08-07 Tom Tromey <tromey@adacore.com>
4906
4907 * ravenscar-thread.c
4908 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4909 New method.
4910 (ravenscar_thread_target::wait): Check
4911 runtime_initialized.
4912 (ravenscar_thread_target::prepare_to_store)
4913 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4914 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4915 (ravenscar_thread_target::stopped_by_watchpoint)
4916 (ravenscar_thread_target::stopped_data_address)
4917 (ravenscar_thread_target::core_of_thread): Use
4918 scoped_restore_current_thread and
4919 set_base_thread_from_ravenscar_task.
4920
0e29517d
TT
49212020-08-07 Tom Tromey <tromey@adacore.com>
4922
4923 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4924
592f9bd7
TT
49252020-08-07 Tom Tromey <tromey@adacore.com>
4926
4927 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4928 update_inferior_ptid before update_thread_list.
4929 (temporarily_change_regcache_ptid): New class.
4930 (ravenscar_thread_target::fetch_registers)
4931 (ravenscar_thread_target::store_registers)
4932 (ravenscar_thread_target::prepare_to_store): Use base thread when
4933 forwarding operation.
4934
39e2018a
TT
49352020-08-07 Tom Tromey <tromey@adacore.com>
4936
4937 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4938 "is_pid" case.
4939
2080266b
TT
49402020-08-07 Tom Tromey <tromey@adacore.com>
4941
4942 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4943 New methods.
4944 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4945 first.
4946 (ravenscar_thread_target::add_thread): Rename from
4947 ravenscar_add_thread.
4948 (ravenscar_thread_target::update_thread_list): Use a lambda.
4949 (ravenscar_thread_target::xfer_partial): New method.
4950
78c02f21
TT
49512020-08-07 Tom Tromey <tromey@adacore.com>
4952
4953 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4954 gdb::function_view.
4955 (iterate_over_live_ada_tasks): Change type of argument.
4956 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4957 of argument.
4958
d5d833af
TT
49592020-08-07 Tom Tromey <tromey@adacore.com>
4960
4961 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4962 Remove.
4963 (ravenscar_thread_target::extra_thread_info): Remove.
4964 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4965 defer to target beneath for non-Ravenscar threads.
4966
a8ac85bb
TT
49672020-08-07 Tom Tromey <tromey@adacore.com>
4968
4969 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4970 get_base_thread_from_ravenscar_task>: Now methods.
4971 <m_cpu_map>: New member.
4972 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4973 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4974 (ravenscar_thread_target::task_is_currently_active): Update.
4975 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4976 Now a method.
4977 (ravenscar_thread_target::add_active_thread): Put initial thread
4978 into the m_cpu_map.
4979
550ab58d
TT
49802020-08-07 Tom Tromey <tromey@adacore.com>
4981
4982 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4983 event_ptid.
4984
e9546579
TT
49852020-08-07 Tom Tromey <tromey@adacore.com>
4986
4987 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4988 runtime_initialized.
4989
3d4470e5
TT
49902020-08-07 Tom Tromey <tromey@adacore.com>
4991
4992 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4993 add_active_thread.
4994 (ravenscar_thread_target::add_active_thread): Now public.
4995 (ravenscar_inferior_created): Call add_active_thread after pushing
4996 the target.
4997
888bdb2b
SM
49982020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4999
5000 * regcache.c (ptid_regcache_map): New type.
5001 (target_ptid_regcache_map): New type.
5002 (regcaches): Change type to target_ptid_regcache_map.
5003 (get_thread_arch_aspace_regcache): Update to regcaches' new
5004 type.
5005 (regcache_thread_ptid_changed): Likewise.
5006 (registers_changed_ptid): Likewise.
5007 (regcaches_size): Likewise.
5008 (regcaches_test): Update.
5009 (regcache_thread_ptid_changed): Update.
5010 * regcache.h (regcache_up): New type.
5011 * gdbsupport/ptid.h (hash_ptid): New struct.
5012
b161a60d
SM
50132020-08-07 Simon Marchi <simon.marchi@efficios.com>
5014
5015 * observable.h (thread_ptid_changed): Add parameter
5016 `process_stratum_target *`.
5017 * infrun.c (infrun_thread_ptid_changed): Add parameter
5018 `process_stratum_target *` and use it.
5019 (selftests): New namespace.
5020 (infrun_thread_ptid_changed): New function.
5021 (_initialize_infrun): Register selftest.
5022 * regcache.c (regcache_thread_ptid_changed): Add parameter
5023 `process_stratum_target *` and use it.
5024 (regcache_thread_ptid_changed): New function.
5025 (_initialize_regcache): Register selftest.
5026 * thread.c (thread_change_ptid): Pass target to
5027 thread_ptid_changed observable.
5028
d2854d8d
CT
50292020-08-06 Caroline Tice <cmtice@google.com>
5030
fe4c3d43
SM
5031 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5032 (struct dwp_sections): Update field comments. Add loclists and
5033 rnglists fields.
5034 (struct virtual_v2_dwo_sections): Rename struct to
5035 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5036 size & offset fields for loclists and rnglists.
5037 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5038 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5039 skipping dummy type units.
5040 (create_dwp_hash_table): Update the large comment above the function to
5041 discuss Version 5 DWP files as well, with references. Update all the
5042 version checks in the function to check for version 5 as well. Add new
5043 section at the end to create dwp hash table for version 5.
5044 (create_dwp_v2_section): Rename function to
5045 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5046 Add V5 to error message text.
5047 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5048 into calls to create_dwp_v2_or_v5_section.
5049 (create_dwo_unit_in_dwp_v5): New function.
5050 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5051 check for version2; add else clause to handle version 5.
5052 (open_and_init_dwo_file): Add code to check dwarf version & only call
5053 create_debug_types_hash_table (with sections.types) if version is not 5;
5054 else call create_debug_type_hash_table, with sections.info.
5055 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5056 version 5.
5057 (dwarf2_locate_v5_dwp_sections): New function.
5058 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5059 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5060
159ed7d9
SM
50612020-08-06 Simon Marchi <simon.marchi@efficios.com>
5062
5063 * regcache.h (class regcache): Remove friend
5064 registers_changed_ptid.
5065 <regcache_thread_ptid_changed>: Remove.
5066 <regcaches>: Remove.
5067 * regcache.c (regcache::regcaches): Rename to...
5068 (regcaches): ... this. Make static.
5069 (get_thread_arch_aspace_regcache): Update.
5070 (regcache::regcache_thread_ptid_changed): Rename to...
5071 (regcache_thread_ptid_changed): ... this. Update.
5072 (class regcache_access): Remove.
5073 (regcaches_test): Update.
5074 (_initialize_regcache): Update.
5075 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5076 <forward_list>.
5077
174981ae
SM
50782020-08-06 Simon Marchi <simon.marchi@efficios.com>
5079
5080 * regcache.h (class regcache) <current_regcache>: Rename to...
5081 <regcaches>: ... this. Move doc here.
5082 * regcache.c (regcache::current_regcache) Rename to...
5083 (regcache::regcaches): ... this. Move doc to header.
5084 (get_thread_arch_aspace_regcache): Update.
5085 (regcache::regcache_thread_ptid_changed): Update.
5086 (registers_changed_ptid): Update.
5087 (class regcache_access) <current_regcache_size>: Rename to...
5088 <regcaches_size>: ... this.
5089 (current_regcache_test): Rename to...
5090 (regcaches_test): ... this.
5091 (_initialize_regcache): Update.
5092
ed908db6
VC
50932020-08-06 Victor Collod <vcollod@nvidia.com>
5094
5095 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5096
b5582ab7
KB
50972020-08-05 Kevin Buettner <kevinb@redhat.com>
5098
5099 * corelow.c (core_target::build_file_mappings): Don't output
5100 null pathname in warning.
5101
ea946b86
SM
51022020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5103
5104 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5105 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5106 gdb.dwarf2/dw2-single-line-discriminators.exp,
5107 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5108
57d02173
TT
51092020-08-05 Tom Tromey <tromey@adacore.com>
5110
5111 PR rust/26197:
5112 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5113 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5114 Fix off-by-one and type size errors in ordinary case.
5115
5555c86d
TV
51162020-08-05 Tom de Vries <tdevries@suse.de>
5117
5118 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5119 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5120
97916bfe
SM
51212020-08-04 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * frame.h (frame_id_p): Return bool.
5124 (frame_id_artificial_p): Return bool.
5125 (frame_id_eq): Return bool.
5126 (has_stack_frames): Return bool.
5127 (get_selected_frame): Fix typo in comment.
5128 (get_frame_pc_if_available): Return bool.
5129 (get_frame_address_in_block_if_available): Return bool.
5130 (get_frame_func_if_available): Return bool.
5131 (read_frame_register_unsigned): Return bool.
5132 (get_frame_register_bytes): Return bool.
5133 (safe_frame_unwind_memory): Return bool.
5134 (deprecated_frame_register_read): Return bool.
5135 (frame_unwinder_is): Return bool.
5136 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5137 bool.
5138 <this_id::p>: Likewise.
5139 <prev_p>: Likewise.
5140 (frame_stash_add): Return bool.
5141 (get_frame_id): Use bool.
5142 (frame_id_build_special) Use bool.
5143 (frame_id_build_unavailable_stack): Use bool.
5144 (frame_id_build): Use bool.
5145 (frame_id_p): Return bool, use true/false instead of 1/0.
5146 (frame_id_artificial_p): Likewise.
5147 (frame_id_eq): Likewise.
5148 (frame_id_inner): Likewise.
5149 (get_frame_func_if_available): Likewise.
5150 (read_frame_register_unsigned): Likewise.
5151 (deprecated_frame_register_read): Likewise.
5152 (get_frame_register_bytes): Likewise.
5153 (has_stack_frames): Likewise.
5154 (inside_main_func): Likewise.
5155 (inside_entry_func): Likewise.
5156 (get_frame_pc_if_available): Likewise.
5157 (get_frame_address_in_block_if_available): Likewise.
5158 (frame_unwinder_is): Likewise.
5159 (safe_frame_unwind_memory): Likewise.
5160 (frame_unwind_arch): Likewise.
5161
fedfee88
SM
51622020-08-04 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5165 type to cached_copy_status.
5166 (fprintf_frame): Adjust.
5167 (get_frame_func_if_available): Adjust.
5168 (frame_cleanup_after_sniffer): Adjust.
5169
6cfa9b59
MW
51702020-08-04 Mark Wielaard <mark@klomp.org>
5171
5172 * MAINTAINERS (Write After Approval): Update email address.
5173
66d6346b
SM
51742020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5175
5176 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5177 dynamic_prop::const_val.
5178
8a6d5e35
SM
51792020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5180
5181 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5182 dynamic_prop::kind.
5183
51d6067d
SM
51842020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5185
5186 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5187
b26e2ae7
JM
51882020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5189
5190 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5191
39791af2
JM
51922020-08-04 Weimin Pan <weimin.pan@oracle.com>
5193 Jose E. Marchesi <jose.marchesi@oracle.com>
5194
5195 * configure.tgt: Add entry for bpf-*-*.
5196 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5197 (ALLDEPFILES): Add bpf-tdep.c.
5198 * bpf-tdep.c: New file.
5199 * MAINTAINERS: Add bpf target and maintainer.
5200 * NEWS: Mention the support for the new target.
5201
521894aa
TV
52022020-08-04 Tom de Vries <tdevries@suse.de>
5203
5204 PR symtab/23270
5205 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5206 Error.
5207
5d6356e9
JB
52082020-08-03 John Baldwin <jhb@FreeBSD.org>
5209
5210 * syscalls/freebsd.xml: Regenerate.
5211
0cf82b81
JB
52122020-08-03 John Baldwin <jhb@FreeBSD.org>
5213
5214 * syscalls/update-freebsd.sh: Fix usage and year range.
5215
8f34b746
TV
52162020-08-03 Tom de Vries <tdevries@suse.de>
5217
5218 PR symtab/26333
5219 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5220 DW_LNE_lo_user/DW_LNE_hi_user range.
5221
5e500d33
SM
52222020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5223
5224 PR ada/26318
5225 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5226 kind.
5227
78319c15
TBA
52282020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5229
5230 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5231
4c55e970
TBA
52322020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5233
5234 * breakpoint.c (set_breakpoint_condition): Update the condition
5235 expressions after checking that the input condition string parses
5236 successfully and does not contain junk at the end.
5237
1e620590
TBA
52382020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5239
5240 * breakpoint.c (set_breakpoint_condition): Update the
5241 condition string after parsing the new condition successfully.
5242
c8693053
RO
52432020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5244
5245 * proc-api.c (_STRUCTURED_PROC): Don't define.
5246 * proc-events.c: Likewise.
5247 * proc-flags.c: Likewise.
5248 * proc-why.c: Likewise.
5249 * procfs.c: Likewise.
5250
5251 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5252 * configure, config.in: Regenerate.
5253
5a99adb8
TV
52542020-07-30 Tom de Vries <tdevries@suse.de>
5255
5256 PR build/26320
5257 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5258 m_red/m_green/m_blue in a union.
5259
8ba83e91
TV
52602020-07-29 Tom de Vries <tdevries@suse.de>
5261
5262 PR tdep/26280
5263 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5264
f75a0693
AB
52652020-07-28 Tom Tromey <tromey@adacore.com>
5266
5267 PR symtab/26270:
5268 * symtab.h (find_pc_partial_function_sym): Declare.
5269 * cli/cli-cmds.c (disassemble_command): Use
5270 find_pc_partial_function_sym. Check asm_demangle.
5271 * blockframe.c (cache_pc_function_sym): New global.
5272 (cache_pc_function_name): Remove.
5273 (clear_pc_function_cache): Update.
5274 (find_pc_partial_function_sym): New function, from
5275 find_pc_partial_function.
5276 (find_pc_partial_function): Rewrite using
5277 find_pc_partial_function_sym.
5278
16f3242c
TT
52792020-07-28 Tom Tromey <tromey@adacore.com>
5280
5281 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5282 help. Add usage.
5283
4888741a
TT
52842020-07-28 Tom Tromey <tromey@adacore.com>
5285
5286 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5287 <DW_OP_GNU_variable_value>: Cast to address type.
5288
4d46f402
KR
52892020-07-28 Kamil Rytarowski <n54@gmx.com>
5290
5291 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5292 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5293 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5294 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5295 (nbsd_get_siginfo_type): New.
5296 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5297 (_initialize_nbsd_tdep): New.
5298
d70f978b
L
52992020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5300
5301 PR binutils/26301
5302 * configure: Regenerated.
5303
377170fa
L
53042020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5305
5306 PR binutils/26301
5307 * configure: Regenerated.
5308
43d5901d
AB
53092020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5310
5311 * python/py-frame.c: Remove 'user-regs.h' include.
5312 (frapy_read_register): Rewrite to make use of
5313 gdbpy_parse_register_id.
5314 * python/py-registers.c (gdbpy_parse_register_id): New function,
5315 moved here from python/py-unwind.c. Updated the return type, and
5316 also accepts register descriptor objects.
5317 * python/py-unwind.c: Remove 'user-regs.h' include.
5318 (pyuw_parse_register_id): Moved to python/py-registers.c.
5319 (unwind_infopy_add_saved_register): Update to use
5320 gdbpy_parse_register_id.
5321 (pending_framepy_read_register): Likewise.
5322 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5323
14fa8fb3
AB
53242020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5325
5326 * python/py-registers.c: Add 'user-regs.h' include.
5327 (register_descriptor_iter_find): New function.
5328 (register_descriptor_iterator_object_methods): New static global
5329 methods array.
5330 (register_descriptor_iterator_object_type): Add pointer to methods
5331 array.
5332
ddce1758
JB
53332020-07-27 John Baldwin <jhb@FreeBSD.org>
5334
5335 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5336 for all architectures on FreeBSD 11.3 and later.
5337
a4089f52
TT
53382020-07-27 Tom Tromey <tromey@adacore.com>
5339
5340 * gcore.h (load_corefile): Don't declare.
5341
95420d30
TV
53422020-07-27 Tom de Vries <tdevries@suse.de>
5343
5344 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5345 * config.in: Regenerate.
5346 * configure: Regenerate.
5347
05a6b8c2
EZ
53482020-07-26 Eli Zaretskii <eliz@gnu.org>
5349
5350 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5351 ws2tcpip.h. When checking whether socklen_t type is defined, use
5352 ws2tcpip.h if it is available and sys/socket.h isn't.
5353 * configure: Regenerate.
5354 * config.in: Regenerate.
5355
e79eb02f
AB
53562020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5357
5358 PR fortran/23051
5359 PR fortran/26139
5360 * valops.c (value_ind): Pass address to
5361 readjust_indirect_value_type.
5362 * value.c (readjust_indirect_value_type): Make parameter
5363 non-const, and add extra address parameter. Resolve original type
5364 before using it.
5365 * value.h (readjust_indirect_value_type): Update function
5366 signature and comment.
5367
876518dd
TV
53682020-07-25 Tom de Vries <tdevries@suse.de>
5369
5370 PR symtab/26243
5371 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5372 entries.
5373
f6720b1c
AM
53742020-07-24 Aaron Merey <amerey@redhat.com>
5375
5376 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5377 * configure: Rebuild.
5378
513487e1
KB
53792020-07-23 Kevin Buettner <kevinb@redhat.com>
5380
5381 PR corefiles/26294
5382 * corelow.c (_initialize_corelow): Add period to help text
5383 for "maintenance print core-file-backed-mappings".
5384
e7bc9db8
PA
53852020-07-23 Pedro Alves <pedro@palves.net>
5386
5387 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5388 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5389 meanwhile.
5390 * frame.c (frame_cache_generation, get_frame_cache_generation):
5391 New.
5392 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5393 (get_prev_frame_if_no_cycle): On exception, don't touch
5394 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5395 * frame.h (get_frame_cache_generation): Declare.
5396
90fcc466
TV
53972020-07-23 Tom de Vries <tdevries@suse.de>
5398
5399 PR tui/26282
5400 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5401 New default constructor.
5402
78344df7
AB
54032020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5404
5405 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5406 exclude non-statement entries.
5407
b089853a
KB
54082020-07-22 Kevin Buettner <kevinb@redhat.com>
5409
5410 * NEWS (New commands): Mention new command
5411 "maintenance print core-file-backed-mappings".
5412
09c2f5d4
KB
54132020-07-22 Kevin Buettner <kevinb@redhat.com>
5414
5415 * corelow.c (gdbcmd.h): Include.
5416 (core_target::info_proc_mappings): New method.
5417 (get_current_core_target): New function.
5418 (maintenance_print_core_file_backed_mappings): New function.
5419 (_initialize_corelow): Add core-file-backed-mappings to
5420 "maint print" commands.
5421
9c5ec5c2 54222020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5423
9c5ec5c2
KB
5424 * linux-tdep.c (dump_note_entry_p): New function.
5425 (linux_dump_mapping_p_ftype): New typedef.
5426 (linux_find_memory_regions_full): Add new parameter,
5427 should_dump_mapping_p.
5428 (linux_find_memory_regions): Adjust call to
5429 linux_find_memory_regions_full.
5430 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5431 call to linux_find_memory_regions_full.
5432
db082f59
KB
54332020-07-22 Kevin Buettner <kevinb@redhat.com>
5434
5435 * corelow.c (solist.h, unordered_map): Include.
5436 (class core_target): Add field m_core_file_mappings and
5437 method build_file_mappings.
5438 (core_target::core_target): Call build_file_mappings.
5439 (core_target::~core_target): Free memory associated with
5440 m_core_file_mappings.
5441 (core_target::build_file_mappings): New method.
5442 (core_target::xfer_partial): Use m_core_file_mappings
5443 for memory transfers.
5444 * linux-tdep.c (linux_read_core_file_mappings): New
5445 function.
5446 (linux_core_info_proc_mappings): Rewrite to use
5447 linux_read_core_file_mappings.
5448 (linux_init_abi): Register linux_read_core_file_mappings.
5449
7e183d27
KB
54502020-07-22 Kevin Buettner <kevinb@redhat.com>
5451
5452 * arch-utils.c (default_read_core_file_mappings): New function.
5453 * arch-utils.c (default_read_core_file_mappings): Declare.
5454 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5455 * gdbarch.h, gdbarch.c: Regenerate.
5456
2735d421
KB
54572020-07-22 Kevin Buettner <kevinb@redhat.com>
5458
5459 PR corefiles/25631
5460 * corelow.c (core_target:xfer_partial): Revise
5461 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5462 case after first checking the stratum beneath the core
5463 target.
5464 (has_all_memory): Return true.
5465 * target.c (raw_memory_xfer_partial): Revise comment
5466 regarding use of has_all_memory.
5467
e56cb451
KB
54682020-07-22 Kevin Buettner <kevinb@redhat.com>
5469
5470 * exec.h (section_table_xfer_memory): Revise declaration,
5471 replacing section name parameter with an optional callback
5472 predicate.
5473 * exec.c (section_table_xfer_memory): Likewise.
5474 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5475 of section_table_xfer_memory.
5476
32fa152e
TT
54772020-07-22 Tom Tromey <tromey@adacore.com>
5478
5479 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5480 lookup_symbol_search_name.
5481
a67a1c41
AB
54822020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5483
5484 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5485 redundant local variable.
5486 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5487 reference, not pointer, update code accordingly.
5488
a7b4ff4f
SM
54892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5490 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5491
5492 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5493 * jit.c (jit_breakpoint_re_set_internal): Use the
5494 `skip_jit_symbol_lookup` field.
5495
2340e834
SM
54962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5497 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5498
5499 * jit.c (jit_read_descriptor): Define the descriptor address once,
5500 use twice.
5501 (jit_breakpoint_deleted): Move the declaration of the loop variable
5502 `iter` into the loop header.
5503 (jit_breakpoint_re_set_internal): Move the declaration of the local
5504 variable `objf_data` to the first point of definition.
5505 (jit_event_handler): Move the declaration of local variables
5506 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5507 Rename `objf` to `jited`.
5508
c1072906
SM
55092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5510
5511 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5512 Remove.
5513 * jit.c (get_jiter_objfile_data): Update.
5514
c8474dc3
TBA
55152020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5516 Simon Marchi <simon.marchi@polymtl.ca>
5517
5518 * jit.c (struct jit_program_space_data): Remove.
5519 (jit_program_space_key): Remove.
5520 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5521 stuff.
5522 (get_jit_program_space_data): Remove.
5523 (jit_breakpoint_deleted): Iterate on all of the program space's
5524 objfiles.
5525 (jit_inferior_init): Likewise.
5526 (jit_breakpoint_re_set_internal): Likewise. Also change return
5527 type to void.
5528 (jit_breakpoint_re_set): Pass current_program_space to
5529 jit_breakpoint_re_set_internal.
5530
77208eb7
SM
55312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5532
5533 * jit.h (struct jiter_objfile_data) <cached_code_address,
5534 jit_breakpoint>: Move to here from ...
5535 * jit.c (jit_program_space_data): ... here.
5536 (jiter_objfile_data::~jiter_objfile_data): Update.
5537 (jit_breakpoint_deleted): Update.
5538 (jit_breakpoint_re_set_internal): Update.
5539
8c1c720f
SM
55402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5541
5542 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5543 checks.
5544 (jit_read_descriptor): Remove NULL check.
5545 (jit_event_handler): Add an assertion.
5546
0e74a041
SM
55472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5548
5549 * jit.h (struct jit_objfile_data): Split into...
5550 (struct jiter_objfile_data): ... this ...
5551 (struct jited_objfile_data): ... and this.
5552 * objfiles.h (struct objfile) <jit_data>: Remove.
5553 <jiter_data, jited_data>: New fields.
5554 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5555 (jiter_objfile_data::~jiter_objfile_data): ... this.
5556 (get_jit_objfile_data): Rename to ...
5557 (get_jiter_objfile_data): ... this.
5558 (add_objfile_entry): Update.
5559 (jit_read_descriptor): Use get_jiter_objfile_data.
5560 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5561 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5562 (jit_inferior_exit_hook): Use objfile's jited_data field.
5563
238b5c9f
SM
55642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5565
5566 * jit.h: Forward-declare `struct minimal_symbol`.
5567 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5568 constructor, destructor, and an objfile* field.
5569 * jit.c (jit_objfile_data): Remove.
5570 (struct jit_objfile_data): Migrate from here to jit.h.
5571 (jit_objfile_data::~jit_objfile_data): New destructor
5572 implementation with code moved from free_objfile_data.
5573 (free_objfile_data): Delete.
5574 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5575 (jit_find_objf_with_entry_addr): Ditto.
5576 (jit_inferior_exit_hook): Ditto.
5577 (_initialize_jit): Remove the call to
5578 register_objfile_data_with_cleanup.
5579 * objfiles.h (struct objfile) <jit_data>: New field.
5580
fe053b9e
TBA
55812020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5582
5583 * jit.h: Forward-declare `struct objfile`.
5584 (jit_event_handler): Add a second parameter, the JITer objfile.
5585 * jit.c (jit_read_descriptor): Change the signature to take the
5586 JITer objfile as an argument instead of the jit_program_space_data.
5587 (jit_inferior_init): Update the call to jit_read_descriptor.
5588 (jit_event_handler): Use the new JITer objfile argument when calling
5589 jit_read_descriptor.
5590 * breakpoint.c (handle_jit_event): Update the call to
5591 jit_event_handler to pass the JITer objfile.
5592
4cec0c66
JB
55932020-07-21 John Baldwin <jhb@FreeBSD.org>
5594
5595 * gdbarch.c: Regenerate.
5596 * gdbarch.h: Regenerate.
5597 * gdbarch.sh (handle_segmentation_fault): Remove method.
5598 * infrun.c (handle_segmentation_fault): Remove.
5599 (print_signal_received_reason): Remove call to
5600 handle_segmentation_fault.
5601
0e42f66a
JB
56022020-07-21 John Baldwin <jhb@FreeBSD.org>
5603
5604 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5605 Rename to sparc64_linux_report_signal_info and add siggnal
5606 argument.
5607 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5608 instead of sparc64_linux_handle_segmentation_fault.
5609
77bdfeb2
JB
56102020-07-21 John Baldwin <jhb@FreeBSD.org>
5611
5612 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5613 i386_linux_report_signal_info instead of
5614 i386_linux_handle_segmentation_fault.
5615 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5616 to i386_linux_report_signal_info and add siggnal argument.
5617 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5618 of i386_linux_handle_segmentation_fault.
5619 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5620 to i386_linux_report_signal_info and add siggnal argument.
5621
ad97bfc5
JB
56222020-07-21 John Baldwin <jhb@FreeBSD.org>
5623
5624 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5625 hook if present.
5626
272bb05c
JB
56272020-07-21 John Baldwin <jhb@FreeBSD.org>
5628
5629 * gdbarch.c: Regenerate.
5630 * gdbarch.h: Regenerate.
5631 * gdbarch.sh (report_signal_info): New method.
5632 * infrun.c (print_signal_received_reason): Invoke gdbarch
5633 report_signal_info hook if present.
5634
baf8791e
AB
56352020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5636
5637 * python/py-registers.c : Add 'unordered_map' include.
5638 (gdbpy_new_reggroup): Renamed to...
5639 (gdbpy_get_reggroup): ...this. Update to only create register
5640 group descriptors when needed.
5641 (gdbpy_reggroup_iter_next): Update.
5642
f7306dac
AB
56432020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5644
5645 * python/py-registers.c (gdbpy_register_object_data): New static
5646 global.
5647 (gdbpy_register_object_data_init): New function.
5648 (gdbpy_new_register_descriptor): Renamed to...
5649 (gdbpy_get_register_descriptor): ...this, and update to reuse
5650 existing register descriptors where possible.
5651 (gdbpy_register_descriptor_iter_next): Update.
5652 (gdbpy_initialize_registers): Register new gdbarch data.
5653
05c309a8
SM
56542020-07-21 Simon Marchi <simon.marchi@efficios.com>
5655
5656 * linux-nat.c (stopped_pids): Make static.
5657
d1fd641e
SM
56582020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5659
5660 PR ada/26235
5661 * gdbtypes.c (ada_discrete_type_low_bound,
5662 ada_discrete_type_high_bound): Handle undefined bounds.
5663
1de14d77
KR
56642020-07-21 Kamil Rytarowski <n54@gmx.com>
5665
5666 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5667 declaration.
5668 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5669 function.
5670
ed810cc7
JB
56712020-07-20 John Baldwin <jhb@FreeBSD.org>
5672
5673 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5674 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5675 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5676 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5677 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5678 method.
5679
ae5369e7
LC
56802020-07-20 Ludovic Courtès <ludo@gnu.org>
5681
5682 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5683 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5684 which are deprecated in Guile 3.0.
5685 * configure.ac (try_guile_versions): Add "guile-3.0".
5686 * configure (try_guile_versions): Regenerate.
5687 * NEWS: Update entry.
5688
68cf161c
LC
56892020-07-20 Ludovic Courtès <ludo@gnu.org>
5690 Doug Evans <dje@google.com>
5691
5692 PR gdb/21104
5693 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5694 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5695 USING_GUILE_BEFORE_2_2.
5696 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5697 Change type to 'scm_t_port_type *'.
5698 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5699 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5700 parameter and honor it. Update callers.
5701 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5702 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5703 functions.
5704 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5705 USING_GUILE_BEFORE_2_2.
5706 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5707 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5708 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5709 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5710 and 'SCM_PORT_TYPE'.
5711 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5712 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5713 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5714 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5715 [!USING_GUILE_BEFORE_2_2]: New functions.
5716 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5717 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5718 'gdbscm_memory_port_read'.
5719 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5720 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5721 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5722 function.
5723 (ioscm_init_memory_port): Remove.
5724 (ioscm_init_memory_port_stream): New function
5725 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5726 function.
5727 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5728 Return scm_from_uint (0).
5729 (gdbscm_set_memory_port_read_buffer_size_x)
5730 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5731 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5732 Return scm_from_uint (0).
5733 (gdbscm_set_memory_port_write_buffer_size_x)
5734 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5735 * configure.ac (try_guile_versions): Add "guile-2.2".
5736 * configure: Regenerate.
5737 * NEWS: Add entry.
5738
aee91db3
TT
57392020-07-18 Tom Tromey <tom@tromey.com>
5740
5741 * linux-nat.c (linux_multi_process): Remove.
5742 (linux_nat_target::supports_multi_process): Return true.
5743
0e267416
AB
57442020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5745
5746 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5747 (riscv_lookup_target_description): Return pointer out of
5748 unique_ptr.
5749 * target-descriptions.c (allocate_target_description): Add
5750 comment.
5751 (target_desc_deleter::operator()): Likewise.
5752 * target-descriptions.h (struct target_desc_deleter): Moved to
5753 gdbsupport/tdesc.h.
5754 (target_desc_up): Likewise.
5755
f80c8ec4
TT
57562020-07-17 Tom Tromey <tromey@adacore.com>
5757
5758 * linux-nat.c (linux_nat_target::supports_non_stop)
5759 (linux_nat_target::always_non_stop_p): Use "true".
5760 (linux_nat_target::supports_disable_randomization): Use "true" and
5761 "false".
5762
d0ce17d8
CT
57632020-07-16 Caroline Tice <cmtice@google.com>
5764
5765 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5766 (RNGLIST_HEADER_SIZE64): New constant definition.
5767 (struct dwop_section_names): Add rnglists_dwo.
5768 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5769 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5770 (struct dwo_sections): Add rnglists field.
5771 (read_attribut_reprocess): Add tag parameter.
5772 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5773 (cu_debug_rnglists_section): New function (decl & definition).
5774 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5775 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5776 die whose range is being checked; get rnglist section from
5777 cu_debug_rnglists_section, to get from either objfile or dwo file as
5778 appropriate. Add cases for DW_RLE_base_addressx,
5779 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5780 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5781 test inside if-condition and updating complaint message.
5782 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5783 dwarf2_rnglists_process.
5784 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5785 dwarf2_ranges_process.
5786 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5787 need_ranges_base and update comment appropriately. Also pass die tag
5788 to dwarf2_ranges_read.
5789 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5790 need_ranges_base and update comment appropriately. Also pass die tag
5791 to dwarf2_ranges_process.
5792 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5793 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5794 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5795 need_ranges_base and update comment appropriately. Also pass die tag
5796 to read_attribute_reprocess and dwarf2_ranges_read.
5797 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5798 and update function comment appropriately.
5799 (read_loclist_index): Call read_loclists_rnglists_header instead of
5800 read_loclist_header.
5801 (read_rnglist_index): New function.
5802 (read_attribute_reprocess): Add tag parameter. Add code for
5803 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5804 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5805
3dcc261c
AB
58062020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5807
5808 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5809 being resolved.
5810
ccb9eba6
AB
58112020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5812
5813 * arch-utils.c (show_architecture): Update formatting of messages.
5814
cf88be68
SM
58152020-07-12 Simon Marchi <simon.marchi@efficios.com>
5816
5817 * gdbtypes.h (struct type) <bounds>: Handle array and string
5818 types.
5819 * ada-lang.c (assign_aggregate): Use type::bounds on
5820 array/string type.
5821 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5822 * c-varobj.c (c_number_of_children): Likewise.
5823 (c_describe_child): Likewise.
5824 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5825 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5826 (f_type_print_base): Likewise.
5827 * f-valprint.c (f77_array_offset_tbl): Likewise.
5828 (f77_get_upperbound): Likewise.
5829 (f77_print_array_1): Likewise.
5830 * guile/scm-type.c (gdbscm_type_range): Likewise.
5831 * m2-typeprint.c (m2_array): Likewise.
5832 (m2_is_long_set_of_type): Likewise.
5833 * m2-valprint.c (get_long_set_bounds): Likewise.
5834 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5835 * python/py-type.c (typy_range): Likewise.
5836 * rust-lang.c (rust_internal_print_type): Likewise.
5837 * type-stack.c (type_stack::follow_types): Likewise.
5838 * valarith.c (value_subscripted_rvalue): Likewise.
5839 * valops.c (value_cast): Likewise.
5840
509971ae
SM
58412020-07-12 Simon Marchi <simon.marchi@efficios.com>
5842
5843 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5844 callers to use the equivalent accessor methods.
5845
107406b7
SM
58462020-07-12 Simon Marchi <simon.marchi@efficios.com>
5847
5848 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5849 (struct type) <bit_stride>: New method.
5850 (TYPE_BIT_STRIDE): Remove.
5851 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5852
bb789949
SM
58532020-07-12 Simon Marchi <simon.marchi@efficios.com>
5854
5855 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5856 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5857 callers to use the equivalent accessor methods instead.
5858
39498edb
SM
58592020-07-12 Simon Marchi <simon.marchi@efficios.com>
5860
5861 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5862 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5863 callers to use the equivalent accessor methods instead.
5864
3b606f38
SM
58652020-07-12 Simon Marchi <simon.marchi@efficios.com>
5866
5867 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5868 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5869 to use dynamic_prop::kind.
5870
064d9cb9
SM
58712020-07-12 Simon Marchi <simon.marchi@efficios.com>
5872
5873 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5874 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5875 to get the bound property's kind and check against
5876 PROP_UNDEFINED.
5877
5537ddd0
SM
58782020-07-12 Simon Marchi <simon.marchi@efficios.com>
5879
5880 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5881 all callers to use type::range_bounds followed by
5882 dynamic_prop::{low,high}.
5883
8c2e4e06
SM
58842020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5885
5886 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5887 const_val, set_const_val, baton, set_locexpr, set_loclist,
5888 set_addr_offset, variant_parts, set_variant_parts,
5889 original_type, set_original_type>: New methods.
5890 <kind>: Rename to...
5891 <m_kind>: ... this. Update all users to use the new methods
5892 instead.
5893 <data>: Rename to...
5894 <m_data>: ... this. Update all users to use the new methods
5895 instead.
5896
7c6f2712
SM
58972020-07-12 Simon Marchi <simon.marchi@efficios.com>
5898
5899 * gdbtypes.c (get_discrete_bounds): Return failure if
5900 the range type's bounds are not both defined and constant
5901 values.
5902 (get_array_bounds): Update comment. Remove undefined bound check.
5903
599088e3
SM
59042020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5905
5906 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5907 the type::bounds method directly.
5908
c4dfcb36
SM
59092020-07-12 Simon Marchi <simon.marchi@efficios.com>
5910
5911 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5912 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5913 are used to set the range type's bounds to use set_bounds.
5914
0a278aa7
PW
59152020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5916
5917 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5918
cce20f10
PA
59192020-07-10 Pedro Alves <pedro@palves.net>
5920
5921 * gdbthread.h (inferior_ref): Define.
5922 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5923 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5924 * thread.c
5925 (scoped_restore_current_thread::restore):
5926 Adjust to gdb::ref_ptr.
5927 (scoped_restore_current_thread::~scoped_restore_current_thread):
5928 Remove manual decref handling.
5929 (scoped_restore_current_thread::scoped_restore_current_thread):
5930 Adjust to use
5931 inferior_ref::new_reference/thread_info_ref::new_reference.
5932 Incref the thread before calling get_frame_id instead of after.
5933 Let TARGET_CLOSE_ERROR propagate.
5934
6d7aa592
PA
59352020-07-10 Pedro Alves <pedro@palves.net>
5936
5937 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5938 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5939 NOT_AVAILABLE_ERROR.
5940 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5941 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5942
b3e3a4c1
SM
59432020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5944 Pedro Alves <pedro@palves.net>
5945
5946 PR gdb/26199
5947 * infrun.c (threads_are_resumed_pending_p): Delete.
5948 (do_target_wait): Remove threads_are_executing and
5949 threads_are_resumed_pending_p checks from the inferior_matches
5950 lambda. Update comments.
5951
d6cc5d98
PA
59522020-07-10 Pedro Alves <pedro@palves.net>
5953
5954 PR gdb/26199
5955 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5956 executing threads.
5957
7d3badc6
PA
59582020-07-10 Pedro Alves <pedro@palves.net>
5959
5960 PR gdb/26199
5961 * infrun.c (handle_no_resumed): Handle multiple targets.
5962
42bd97a6
PA
59632020-07-10 Pedro Alves <pedro@palves.net>
5964
5965 PR gdb/26199
5966 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5967 target_is_async_p.
5968
43667cc6
PA
59692020-07-10 Pedro Alves <pedro@palves.net>
5970
5971 PR gdb/26199
5972 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5973 threads, not all threads.
5974
96118d11
PA
59752020-07-10 Pedro Alves <pedro@palves.net>
5976
5977 PR gdb/26199
5978 * remote.c (remote_target::open_1): Pass remote target pointer as
5979 data to create_async_event_handler.
5980 (remote_async_inferior_event_handler): Mark async event handler
5981 before returning if the remote target still has either pending
5982 events or unacknowledged notifications.
5983
54904d81
JB
59842020-07-10 John Baldwin <jhb@FreeBSD.org>
5985
5986 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5987 declaration.
5988 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5989 function.
5990
f37e5866
JB
59912020-07-09 John Baldwin <jhb@FreeBSD.org>
5992
5993 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5994 inferior_ptid.
5995
fc238d4a
JB
59962020-07-09 John Baldwin <jhb@FreeBSD.org>
5997
5998 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5999 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6000 AT_FREEBSD_PS_STRINGS.
6001
6e2469ff
HD
60022020-07-08 Hannes Domani <ssbssa@yahoo.de>
6003
6004 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6005 of debugfile path on Windows.
6006
d1076c41
JB
60072020-07-08 John Baldwin <jhb@FreeBSD.org>
6008
6009 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6010 argument to 'data'.
6011
15f3b077
TT
60122020-07-08 Tom Tromey <tromey@adacore.com>
6013
6014 * ada-lang.c (ada_exception_message_1): Use read_memory.
6015
9fc501fd
AB
60162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6017
6018 PR python/22748
6019 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6020 special handling for inline frames.
6021 * findvar.c (value_of_register_lazy): Skip inline frames when
6022 creating lazy register values.
6023 * frame.c (frame_id_computed_p): Delete definition.
6024 * frame.h (frame_id_computed_p): Delete declaration.
6025
64cb3757
AB
60262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6027
6028 * NEWS: Mention additions to Python API.
6029 * python/py-arch.c (archpy_register_groups): New function.
6030 (arch_object_methods): Add 'register_groups' method.
6031 * python/py-registers.c (reggroup_iterator_object): New struct.
6032 (reggroup_object): New struct.
6033 (gdbpy_new_reggroup): New function.
6034 (gdbpy_reggroup_to_string): New function.
6035 (gdbpy_reggroup_name): New function.
6036 (gdbpy_reggroup_iter): New function.
6037 (gdbpy_reggroup_iter_next): New function.
6038 (gdbpy_new_reggroup_iterator): New function
6039 (gdbpy_initialize_registers): Register new types.
6040 (reggroup_iterator_object_type): Define new Python type.
6041 (gdbpy_reggroup_getset): New static global.
6042 (reggroup_object_type): Define new Python type.
6043 * python/python-internal.h
6044
0f767f94
AB
60452020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6046
6047 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6048 * python/py-arch.c (archpy_registers): New function.
6049 (arch_object_methods): Add 'registers' method.
6050 * python/py-registers.c: New file.
6051 * python/python-internal.h
6052 (gdbpy_new_register_descriptor_iterator): Declare.
6053 (gdbpy_initialize_registers): Declare.
6054 * python/python.c (do_start_initialization): Call
6055 gdbpy_initialize_registers.
6056 * NEWS: Mention additions to the Python API.
6057
87dbc774
AB
60582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6059
6060 * NEWS: Mention new Python API method.
6061 * python/py-unwind.c (pending_framepy_architecture): New function.
6062 (pending_frame_object_methods): Add architecture method.
6063
3bc98c0c
AB
60642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6065
6066 * gdbarch.c: Regenerate.
6067 * gdbarch.h: Regenerate.
6068 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6069 (gdbarch_data): Use internal_error for the case where
6070 deprecated_set_gdbarch_data was originally needed.
6071 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6072 and use passed in obstack.
6073 (libunwind_frame_set_descr): Should no longer get back NULL from
6074 gdbarch_data.
6075 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6076 type.
6077 * user-regs.c (user_regs_init): Update parameters, and use passed
6078 in obstack.
6079 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6080 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6081
d8cc8af6
TV
60822020-07-06 Tom de Vries <tdevries@suse.de>
6083
6084 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6085 End-Of-Sequence in lte_is_less_than.
6086 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6087 "gdb: Don't reorder line table entries too much when sorting".
6088
947f7597
TV
60892020-07-06 Tom de Vries <tdevries@suse.de>
6090
6091 PR tui/26205
6092 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6093
1e7c1b22
TV
60942020-07-05 Tom de Vries <tdevries@suse.de>
6095
6096 PR build/26187
6097 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6098 std::uncaught_exceptions instead of deprecated
6099 std::uncaught_exception.
6100
a36158ec
SM
61012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6102
6103 * macroexp.h (macro_stringify): Return
6104 gdb::unique_xmalloc_ptr<char>.
6105 * macroexp.c (macro_stringify): Likewise.
6106 * macrotab.c (fixup_definition): Update.
6107
14d960c8
SM
61082020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6109
6110 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6111 (lex_one_token): Update.
6112 * macroexp.c (struct macro_buffer) <release>: Return
6113 gdb::unique_xmalloc_ptr<char>.
6114 (macro_stringify): Update.
6115 (macro_expand): Update.
6116 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6117 * macroexp.h (macro_expand_next): Likewise.
6118
211d5b1c
SM
61192020-07-02 Simon Marchi <simon.marchi@efficios.com>
6120
6121 * macroexp.h (macro_lookup_ftype): Remove.
6122 (macro_expand, macro_expand_once, macro_expand_next): Remove
6123 lookup function parameters, add scope parameter.
6124 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6125 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6126 * macroscope.h (standard_macro_lookup): Change parameter type
6127 to macro_scope.
6128 * macroscope.c (standard_macro_lookup): Likewise.
6129 * c-exp.y (lex_one_token): Update.
6130 * macrocmd.c (macro_expand_command): Likewise.
6131 (macro_expand_once_command): Likewise.
6132
b1a35af2
SM
61332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6134
6135 * inf-loop.c (inferior_event_handler): Remove client_data param.
6136 * inf-loop.h (inferior_event_handler): Likewise.
6137 * infcmd.c (step_1): Adjust.
6138 * infrun.c (proceed): Adjust.
6139 (fetch_inferior_event): Remove client_data param.
6140 (infrun_async_inferior_event_handler): Adjust.
6141 * infrun.h (fetch_inferior_event): Remove `void *` param.
6142 * linux-nat.c (handle_target_event): Adjust.
6143 * record-btrace.c (record_btrace_handle_async_inferior_event):
6144 Adjust.
6145 * record-full.c (record_full_async_inferior_event_handler):
6146 Adjust.
6147 * remote.c (remote_async_inferior_event_handler): Adjust.
6148
1cdf9e33
TT
61492020-07-01 Tom Tromey <tom@tromey.com>
6150
6151 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6152 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6153
32c1e210
TT
61542020-07-01 Tom Tromey <tom@tromey.com>
6155
6156 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6157 tui_gen_win_info.
6158 (tui_win_info::make_window): Merge with
6159 tui_gen_win_info::make_window.
6160 (tui_win_info::make_visible): Move from tui_gen_win_info.
6161 * tui/tui-win.c (tui_win_info::max_width): Move from
6162 tui_gen_win_info.
6163 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6164 type.
6165 <window_factory>: Likewise.
6166 * tui/tui-layout.c (tui_win_info::resize): Move from
6167 tui_gen_win_info.
6168 (make_standard_window): Change return type.
6169 (get_locator_window, tui_get_window_by_name): Likewise.
6170 (tui_layout_window::apply): Remove a cast.
6171 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6172 (struct tui_win_info): Merge with tui_gen_win_info.
6173 (struct tui_gen_win_info): Remove.
6174
a30cb6da
TT
61752020-07-01 Tom Tromey <tom@tromey.com>
6176
6177 * tui/tui-stack.h (struct tui_locator_window): Derive from
6178 tui_win_info.
6179 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6180 <can_box>: New method.
6181
1eb2161f
TT
61822020-07-01 Tom Tromey <tom@tromey.com>
6183
6184 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6185
7134f2eb
TT
61862020-07-01 Tom Tromey <tom@tromey.com>
6187
6188 * tui/tui-regs.c (tui_data_window::display_registers_from)
6189 (tui_data_window::display_registers_from)
6190 (tui_data_window::first_data_item_displayed)
6191 (tui_data_window::delete_data_content_windows): Update.
6192 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6193 Remove.
6194 (tui_data_window::check_register_values): Update.
6195 (tui_data_item_window::rerender): Add parameters. Update.
6196 (tui_data_item_window::refresh_window): Remove.
6197 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6198 virtual.
6199 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6200 tui_gen_win_info.
6201 <refresh_window, max_height, min_height>: Remove.
6202 <rerender>: Add parameters.
6203 <x, y, visible>: New members.
6204 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6205 <m_item_width>: New member.
6206
22b7b041
TT
62072020-07-01 Tom Tromey <tom@tromey.com>
6208
6209 * tui/tui-regs.c (tui_data_window::show_register_group)
6210 (tui_data_window::check_register_values): Update.
6211 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6212 from item_no.
6213
c9753adb
TT
62142020-07-01 Tom Tromey <tom@tromey.com>
6215
6216 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6217 useless "if".
6218
9ab26b4a
TT
62192020-07-01 Tom Tromey <tom@tromey.com>
6220
6221 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6222 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6223
e555083f
TT
62242020-07-01 Tom Tromey <tom@tromey.com>
6225
6226 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6227 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6228 (struct tui_line_or_address): Move from tui-data.h.
6229 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6230 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6231 (tui_cmd_window, tui_source_window_base, tui_source_window)
6232 (tui_disasm_window): Don't declare.
6233 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6234 to tui-winsource.h.
6235 (SINGLE_KEY): Move to tui-stack.c.
6236
7a02bab7
TT
62372020-07-01 Tom Tromey <tom@tromey.com>
6238
6239 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6240 std::string.
6241 * tui/tui-regs.c (class tab_expansion_file): New.
6242 (tab_expansion_file::write): New method.
6243 (tui_register_format): Change return type. Use
6244 tab_expansion_file.
6245 (tui_get_register, tui_data_window::display_registers_from)
6246 (tui_data_item_window::rerender): Update.
6247 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6248 * tui/tui-io.c (tui_expand_tabs): Remove.
6249
ea68593b
TT
62502020-07-01 Tom Tromey <tom@tromey.com>
6251
6252 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6253
a8caed5d
FS
62542020-07-01 Fangrui Song <maskray@google.com>
6255
6256 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6257
9cdf9820
AKS
62582020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6259
6260 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6261 forms for DW_AT_associated and DW_AT_allocated attributes,
6262 which is already checked in function attr_to_dynamic_prop.
6263
a1520ad8
TT
62642020-06-30 Tom Tromey <tromey@adacore.com>
6265
6266 * dwarf2/read.c (quirk_rust_enum): Correctly call
6267 alloc_rust_variant for default-less enum.
6268
5ac58899
TT
62692020-06-30 Tom Tromey <tromey@adacore.com>
6270
6271 PR build/26183:
6272 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6273 gdb::to_string.
6274
19b187a9
SM
62752020-06-29 Simon Marchi <simon.marchi@efficios.com>
6276
6277 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6278 * gdbarch.h: Re-generate.
6279
cd4c4c07
TT
62802020-06-28 Tom Tromey <tom@tromey.com>
6281
6282 * command.h (cmd_types): Remove.
6283 (cmd_type): Don't declare.
6284 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6285 typedef.
6286 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6287 * cli/cli-decode.c (cmd_type): Remove.
6288
05779d57
PA
62892020-06-27 Pedro Alves <palves@redhat.com>
6290
6291 * fork-child.c (prefork_hook): Adjust.
6292 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6293 Delete.
6294 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6295 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6296 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6297 Remove declarations.
6298 (struct inferior) <set_tty, tty>: New methods.
6299 (struct inferior) <terminal>: Rename to ...
6300 (struct inferior) <m_terminal>: ... this and make private.
6301 * main.c (captured_main_1): Adjust.
6302 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6303 (mi_cmd_inferior_tty_show): Adjust.
6304 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6305 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6306
1776e3e5
NA
63072020-06-26 Nick Alcock <nick.alcock@oracle.com>
6308
6309 * configure.ac: Add --enable-libctf: handle --disable-static
6310 properly.
6311 * acinclude.m4: sinclude ../config/enable.m4.
6312 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6313 (LIBCTF): Substitute in.
6314 (CTF_DEPS): New, likewise.
6315 (CLIBS): libctf needs symbols from libbfd: move earlier.
6316 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6317 flags.
6318 * ctfread.c: Surround in ENABLE_LIBCTF.
6319 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6320 * configure: Regenerate.
6321 * config.in: Likewise.
6322
58373b80
SM
63232020-06-25 Simon Marchi <simon.marchi@efficios.com>
6324
6325 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6326
277474ee
SM
63272020-06-25 Simon Marchi <simon.marchi@efficios.com>
6328
6329 * inferior.h (struct inferior) <terminal>: Change type to
6330 gdb::unique_xmalloc_ptr<char>.
6331 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6332 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6333 field, adjust to unique pointer.
6334 (get_inferior_io_terminal): Adjust to unique pointer.
6335
6d74da72
AB
63362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6337
6338 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6339 registers, not just the known core set of registers.
6340
2e52d038
AB
63412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6342
6343 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6344 fflags, frm, and fcsr registers.
6345 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6346 restore groups.
6347 (riscv_tdesc_unknown_reg): New function.
6348 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6349 tdesc_use_registers.
6350 * riscv-tdep.h (struct gdbarch_tdep): Add
6351 unknown_csrs_first_regnum, unknown_csrs_count,
6352 duplicate_fflags_regnum, duplicate_frm_regnum, and
6353 duplicate_fcsr_regnum fields.
6354
be64fd07
AB
63552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6356
6357 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6358 callback, use the callback (when not null) to help number unknown
6359 registers.
6360 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6361 (tdesc_use_registers): Add extra parameter to declaration.
6362
3b9fce96
AB
63632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6364
6365 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6366 in the file.
6367 (class riscv_pending_register_alias): Likewise.
6368 (riscv_register_feature::register_info): Change 'required_p' field
6369 to 'required', and change its type. Add 'check' member function.
6370 (riscv_register_feature::register_info::check): Define new member
6371 function.
6372 (riscv_xreg_feature): Change initialisation of 'required' field.
6373 (riscv_freg_feature): Likewise.
6374 (riscv_virtual_feature): Likewise.
6375 (riscv_csr_feature): Likewise.
6376 (riscv_check_tdesc_feature): Take extra parameter, the csr
6377 tdesc_feature, rewrite the function to use the new
6378 riscv_register_feature::register_info::check function.
6379 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6380
865bad26
AB
63812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6382
6383 * features/Makefile: Remove all references to the deleted files
6384 below.
6385 * features/riscv/32bit-csr.c: Deleted.
6386 * features/riscv/32bit-csr.xml: Deleted.
6387 * features/riscv/64bit-csr.c: Deleted.
6388 * features/riscv/64bit-csr.xml: Deleted.
6389 * features/riscv/rebuild-csr-xml.sh: Deleted.
6390
ed69cbc8
AB
63912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6392
6393 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6394 whitespace error for declaration of names member variable.
6395 (struct riscv_register_feature): Add new prefer_first_name member
6396 variable, and fix whitespace error in declaration of registers.
6397 (riscv_xreg_feature): Initialize prefer_first_name field.
6398 (riscv_freg_feature): Likewise.
6399 (riscv_virtual_feature): Likewise.
6400 (riscv_csr_feature): Likewise.
6401 (riscv_register_name): Expand on comments. Remove register name
6402 modifications for CSR and virtual registers.
6403
4445e8f5
AB
64042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6405
6406 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6407 errors.
6408
767a879e
AB
64092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6410
6411 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6412 riscv-opc.h.
6413 (class riscv_pending_register_alias): New class.
6414 (riscv_check_tdesc_feature): Take vector of pending aliases and
6415 populate it as appropriate.
6416 (riscv_setup_register_aliases): Delete.
6417 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6418 to riscv_check_tdesc_feature in all cases. Use the vector to
6419 create the register aliases.
6420
bb6e55f3
RO
64212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6422
6423 * sol2-tdep.c (sol2_static_transform_name): Remove.
6424 (sol2_init_abi): Don't register it.
6425 * gdbarch.sh (static_transform_name): Remove.
6426 * gdbarch.c, gdbarch.h: Regenerate.
6427
6428 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6429 gdbarch_static_transform_name.
6430 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6431 * stabsread.c (define_symbol) <'X'>: Remove.
6432 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6433 handling.
6434 <'V'>: Likewise.
6435 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6436 <'S'>: Remove call to gdbarch_static_transform_name.
6437
c6d36836
RO
64382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6439
6440 * procfs.c (procfs_pre_trace): New function.
6441 (procfs_target::create_inferior): Pass it to fork_inferior.
6442
a7e6196b
RO
64432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6444
6445 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6446 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6447 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6448 sol2-tdep.o, sparc-sol2-tdep.o.
6449 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6450 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6451 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6452 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6453
d412e696
RO
64542020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6455
6456 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6457 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6458 Call sol2_init_abi.
6459 Remove calls to set_gdbarch_skip_solib_resolver,
6460 set_gdbarch_core_pid_to_str.
6461 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6462 (i386_sol2_static_transform_name): Remove.
6463 (i386_sol2_init_abi): Call sol2_init_abi.
6464 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6465 set_gdbarch_static_transform_name,
6466 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6467 Use sol2_sigtramp_p.
6468 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6469 (sol2_sigtramp_p): New function.
6470 (sol2_static_transform_name): New function.
6471 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6472 (sol2_init_abi): New function.
6473 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6474 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6475 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6476 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6477 (sparc_sol2_static_transform_name): Remove.
6478 (sparc32_sol2_init_abi): Call sol2_init_abi.
6479 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6480 set_gdbarch_static_transform_name,
6481 set_gdbarch_skip_solib_resolver,
6482 set_gdbarch_core_pid_to_str.
6483 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6484 (sparc_sol2_static_transform_name): Remove
6485 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6486 call sol2_sigtramp_p.
6487 (sparc64_sol2_init_abi): Call sol2_init_abi.
6488 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6489 set_gdbarch_static_transform_name,
6490 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6491
a8654e7d
PW
64922020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6493
6494 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6495 * exec.c (validate_exec_file): If from_tty, set both
6496 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6497 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6498 and from_tty, unconditionally ask a confirmation.
6499
caa7fd04
AB
65002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6501
6502 * target-descriptions.c (tdesc_architecture_name): Protect against
6503 NULL pointer dereference.
6504 (maint_print_xml_tdesc_cmd): New function.
6505 (_initialize_target_descriptions): Register new 'maint print
6506 xml-tdesc' command and give it the filename completer.
6507 * NEWS: Mention new 'maint print xml-tdesc' command.
6508
fbf42f4e
AB
65092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6510
6511 * target-descriptions.c (class tdesc_compatible_info): New class.
6512 (struct target_desc): Change type of compatible vector.
6513 (tdesc_compatible_p): Update for change in type of
6514 target_desc::compatible.
6515 (tdesc_compatible_info_list): New function.
6516 (tdesc_compatible_info_arch_name): New function.
6517 (tdesc_add_compatible): Update for change in type of
6518 target_desc::compatible.
6519 (print_c_tdesc::visit_pre): Likewise.
6520
20821f4e
AB
65212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6522
6523 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6524 whitespace to underscore.
6525 (maint_print_c_tdesc_cmd): Use fake filename for target
6526 descriptions that came from the target.
6527 (_initialize_target_descriptions): Add filename command completion
6528 for 'maint print c-tdesc'.
6529
1fb5ee62
SM
65302020-06-23 Simon Marchi <simon.marchi@efficios.com>
6531
6532 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6533 lines.
6534
fc3ecb3e
SM
65352020-06-23 Simon Marchi <simon.marchi@efficios.com>
6536
6537 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6538 lines.
6539 (dwarf2_find_location_expression): Likewise.
6540 (call_site_parameter_matches): Likewise.
6541 (dwarf2_compile_expr_to_ax): Likewise.
6542 (disassemble_dwarf_expression): Likewise.
6543 (loclist_describe_location): Likewise.
6544
236ef034
PA
65452020-06-23 Pedro Alves <palves@redhat.com>
6546
6547 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6548 progspace-and-thread.h. Include scoped-mock-context.h instead.
6549 (register_to_value_test): Use scoped_mock_context.
6550 * regcache.c: Include "scoped-mock-context.h".
6551 (cooked_read_test): Don't error out if a target is already pushed.
6552 Use scoped_mock_context. Adjust.
6553 * scoped-mock-context.h: New file.
6554
39e7ecca
AB
65552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6556
6557 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6558 initializer.
6559 (ada_language::is_string_type_p): New member function.
6560 * c-lang.c (c_language_data): Delete la_is_string_type_p
6561 initializer.
6562 (cplus_language_data): Likewise.
6563 (asm_language_data): Likewise.
6564 (minimal_language_data): Likewise.
6565 * d-lang.c (d_language_data): Likewise.
6566 * f-lang.c (f_is_string_type_p): Delete function, implementation
6567 moved to f_language::is_string_type_p.
6568 (f_language_data): Delete la_is_string_type_p initializer.
6569 (f_language::is_string_type_p): New member function,
6570 implementation from f_is_string_type_p.
6571 * go-lang.c (go_is_string_type_p): Delete function, implementation
6572 moved to go_language::is_string_type_p.
6573 (go_language_data): Delete la_is_string_type_p initializer.
6574 (go_language::is_string_type_p): New member function,
6575 implementation from go_is_string_type_p.
6576 * language.c (language_defn::is_string_type_p): Define new member
6577 function.
6578 (default_is_string_type_p): Make static, add comment copied from
6579 header file.
6580 (unknown_language_data): Delete la_is_string_type_p initializer.
6581 (unknown_language::is_string_type_p): New member function.
6582 (auto_language_data): Delete la_is_string_type_p initializer.
6583 (auto_language::is_string_type_p): New member function.
6584 * language.h (language_data): Delete la_is_string_type_p field.
6585 (language_defn::is_string_type_p): Declare new function.
6586 (default_is_string_type_p): Delete desclaration, move comment to
6587 definition.
6588 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6589 moved to m2_language::is_string_type_p.
6590 (m2_language_data): Delete la_is_string_type_p initializer.
6591 (m2_language::is_string_type_p): New member function,
6592 implementation from m2_is_string_type_p.
6593 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6594 initializer.
6595 * opencl-lang.c (opencl_language_data): Likewise.
6596 * p-lang.c (pascal_is_string_type_p): Delete function,
6597 implementation moved to pascal_language::is_string_type_p.
6598 (pascal_language_data): Delete la_is_string_type_p initializer.
6599 (pascal_language::is_string_type_p): New member function,
6600 implementation from pascal_is_string_type_p.
6601 * rust-lang.c (rust_is_string_type_p): Delete function,
6602 implementation moved to rust_language::is_string_type_p.
6603 (rust_language_data): Delete la_is_string_type_p initializer.
6604 (rust_language::is_string_type_p): New member function,
6605 implementation from rust_is_string_type_p.
6606 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6607 is_string_type_p.
6608
4ffc13fb
AB
66092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6610
6611 * ada-lang.c (ada_language_data): Delete la_print_typedef
6612 initializer.
6613 (ada_language::print_typedef): New member function.
6614 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6615 (cplus_language_data): Likewise.
6616 (asm_language_data): Likewise.
6617 (minimal_language_data): Likewise.
6618 * d-lang.c (d_language_data): Likewise.
6619 * f-lang.c (f_language_data): Likewise.
6620 (f_language::print_typedef): New member function.
6621 * go-lang.c (go_language_data): Delete la_print_typedef
6622 initializer.
6623 * language.c (language_defn::print_typedef): Define member
6624 function.
6625 (unknown_language_data): Delete la_print_typedef initializer.
6626 (unknown_language::print_typedef): New member function.
6627 (auto_language_data): Delete la_print_typedef initializer.
6628 (auto_language::print_typedef): New member function.
6629 * language.h (language_data): Delete la_print_typedef field.
6630 (language_defn::print_typedef): Declare new member function.
6631 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6632 (default_print_typedef): Delete declaration.
6633 * m2-lang.c (m2_language_data): Delete la_print_typedef
6634 initializer.
6635 (m2_language::print_typedef): New member function.
6636 * objc-lang.c (objc_language_data): Delete la_print_typedef
6637 initializer.
6638 * opencl-lang.c (opencl_language_data): Likewise.
6639 * p-lang.c (pascal_language_data): Likewise.
6640 (pascal_language::print_typedef): New member function.
6641 * rust-lang.c (rust_print_typedef): Delete function,
6642 implementation moved to rust_language::print_typedef.
6643 (rust_language): Delete la_print_typedef initializer.
6644 (rust_language::print_typedef): New member function,
6645 implementation from rust_print_typedef.
6646 * typeprint.c (default_print_typedef): Delete.
6647
d711ee67
AB
66482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6649
6650 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6651 (ada_language::printstr): New member function.
6652 * c-lang.c (c_language_data): Delete la_printstr initializer.
6653 (cplus_language_data): Likewise.
6654 (asm_language_data): Likewise.
6655 (minimal_language_data): Likewise.
6656 * d-lang.c (d_language_data): Likewise.
6657 * f-lang.c (f_printstr): Rename to f_language::printstr.
6658 (f_language_data): Delete la_printstr initializer.
6659 (f_language::printstr): New member function, implementation from
6660 f_printstr.
6661 * go-lang.c (go_language_data): Delete la_printstr initializer.
6662 * language.c (language_defn::printstr): Define new member
6663 function.
6664 (unk_lang_printstr): Delete.
6665 (unknown_language_data): Delete la_printstr initializer.
6666 (unknown_language::printstr): New member function.
6667 (auto_language_data): Delete la_printstr initializer.
6668 (auto_language::printstr): New member function.
6669 * language.h (language_data): Delete la_printstr field.
6670 (language_defn::printstr): Declare new member function.
6671 (LA_PRINT_STRING): Update call to printstr.
6672 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6673 (m2_language_data): Delete la_printstr initializer.
6674 (m2_language::printstr): New member function, implementation from
6675 m2_printstr.
6676 * objc-lang.c (objc_language_data): Delete la_printstr
6677 initializer.
6678 * opencl-lang.c (opencl_language_data): Likewise.
6679 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6680 (pascal_language_data): Delete la_printstr initializer.
6681 (pascal_language::printstr): New member function, implementation
6682 from pascal_printstr.
6683 * p-lang.h (pascal_printstr): Delete declaration.
6684 * rust-lang.c (rust_printstr): Update header comment.
6685 (rust_language_data): Delete la_printstr initializer.
6686 (rust_language::printstr): New member function.
6687
52b50f2c
AB
66882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6689
6690 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6691 (ada_language::printchar): New member function.
6692 * c-lang.c (c_language_data): Delete la_printchar initializer.
6693 (cplus_language_data): Likewise.
6694 (asm_language_data): Likewise.
6695 (minimal_language_data): Likewise.
6696 * d-lang.c (d_language_data): Likewise.
6697 * f-lang.c (f_printchar): Rename to f_language::printchar.
6698 (f_language_data): Delete la_printchar initializer.
6699 (f_language::printchar): New member function, implementation from
6700 f_printchar.
6701 * go-lang.c (go_language_data): Delete la_printchar initializer.
6702 * language.c (unk_lang_printchar): Delete.
6703 (language_defn::printchar): Define new member function.
6704 (unknown_language_data): Delete la_printchar initializer.
6705 (unknown_language::printchar): New member function.
6706 (auto_language_data): Delete la_printchar initializer.
6707 (auto_language::printchar): New member function.
6708 * language.h (language_data): Delete la_printchar field.
6709 (language_defn::printchar): Declare new member function.
6710 (LA_PRINT_CHAR): Update call to printchar.
6711 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6712 (m2_language::printchar): New member function.
6713 * objc-lang.c (objc_language_data): Delete la_printchar
6714 initializer.
6715 * opencl-lang.c (opencl_language_data): Likewise.
6716 * p-lang.c (pascal_language_data): Delete la_printchar
6717 initializer.
6718 (pascal_language::printchar): New member function.
6719 * rust-lang.c (rust_printchar): Rename to
6720 rust_language::printchar.
6721 (rust_language_data): Delete la_printchar initializer.
6722 (rust_language::printchar): New member function, implementation
6723 from rust_printchar.
6724
ec8cec5b
AB
67252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6726
6727 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6728 (ada_language_data): Delete la_emitchar initializer.
6729 (ada_language::emitchar): New member function, implementation from
6730 emit_char.
6731 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6732 (cplus_language_data): Likewise.
6733 (asm_language_data): Likewise.
6734 (minimal_language_data): Likewise.
6735 * d-lang.c (d_language_data): Likewise.
6736 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6737 (f_language_data): Delete la_emitchar initializer.
6738 (f_language::emitchar): New member function, implementation from
6739 f_emit_char.
6740 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6741 * language.c (unk_lang_emit_char): Delete.
6742 (language_defn::emitchar): New member function definition.
6743 (unknown_language_data): Delete la_emitchar initializer.
6744 (unknown_language::emitchar): New member function.
6745 (auto_language_data): Delete la_emitchar initializer.
6746 (auto_language::emitchar): New member function.
6747 * language.h (language_data): Delete la_emitchar field.
6748 (language_defn::emitchar): New member field declaration.
6749 (LA_EMIT_CHAR): Update call to emitchar.
6750 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6751 (m2_language_data): Delete la_emitchar initializer.
6752 (m2_language::emitchar): New member function, implementation from
6753 m2_emit_char.
6754 * objc-lang.c (objc_language_data): Delete la_emitchar
6755 initializer.
6756 * opencl-lang.c (opencl_language_data): Likewise.
6757 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6758 (pascal_language_data): Delete la_emitchar initializer.
6759 (pascal_language::emitchar): New member function, implementation
6760 from pascal_emit_char.
6761 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6762 (rust_language_data): Delete la_emitchar initializer.
6763 (rust_language::emitchar): New member function, implementation
6764 from rust_emitchar.
6765
1bf9c363
AB
67662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6767
6768 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6769 (ada_language_data): Delete la_post_parser initializer.
6770 (ada_language::post_parser): New member function.
6771 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6772 (cplus_language_data): Likewise.
6773 (asm_language_data): Likewise.
6774 (minimal_language_data): Likewise.
6775 * d-lang.c (d_language_data): Likewise.
6776 * f-lang.c (f_language_data): Likewise.
6777 * go-lang.c (go_language_data): Likewise.
6778 * language.c (unknown_language_data): Likewise.
6779 (auto_language_data): Likewise.
6780 * language.h (language_data): Delete la_post_parser field.
6781 (language_defn::post_parser): New member function.
6782 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6783 * objc-lang.c (objc_language_data): Likewise.
6784 * opencl-lang.c (opencl_language_data): Likewise.
6785 * p-lang.c (pascal_language_data): Likewise.
6786 * parse.c (parse_exp_in_context): Update call to post_parser.
6787 (null_post_parser): Delete definition.
6788 * parser-defs.h (null_post_parser): Delete declaration.
6789 * rust-lang.c (rust_language_data): Delete la_post_parser
6790 initializer.
6791
87afa652
AB
67922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6793
6794 * ada-lang.c (parse): Rename to ada_language::parser.
6795 (ada_language_data): Delete la_parser initializer.
6796 (ada_language::parser): New member function, implementation from
6797 parse.
6798 * c-lang.c (c_language_data): Delete la_parser initializer.
6799 (cplus_language_data): Likewise.
6800 (asm_language_data): Likewise.
6801 (minimal_language_data): Likewise.
6802 * d-lang.c (d_language_data): Likewise.
6803 (d_language::parser): New member function.
6804 * f-lang.c (f_language_data): Delete la_parser initializer.
6805 (f_language::parser): New member function.
6806 * go-lang.c (go_language_data): Delete la_parser initializer.
6807 (go_language::parser): New member function.
6808 * language.c (unk_lang_parser): Delete.
6809 (language_defn::parser): Define new member function.
6810 (unknown_language_data): Delete la_parser initializer.
6811 (unknown_language::parser): New member function.
6812 (auto_language_data): Delete la_parser initializer.
6813 (auto_language::parser): New member function.
6814 * language.h (language_data): Delete la_parser field.
6815 (language_defn::parser): Declare new member function.
6816 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6817 (m2_language::parser): New member function.
6818 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6819 * opencl-lang.c (opencl_language_data): Likewise.
6820 * p-lang.c (pascal_language_data): Likewise.
6821 (pascal_language::parser): New member function.
6822 * parse.c (parse_exp_in_context): Update call to parser.
6823 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6824 (rust_language::parser): New member function.
6825
37825800
AB
68262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6827
6828 * top.c (print_gdb_configuration): Print --with-python-libdir
6829 configuration value.
6830
5b860c93
PW
68312020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6832
6833 * NEWS: Mention change to the alias command.
6834
cf00cd6f
PW
68352020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6836
6837 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6838 (alias_command_completer)
6839 (make_alias_options_def_group): New functions.
6840 (alias_opts, alias_option_defs): New struct and array.
6841 (alias_usage_error): Update usage.
6842 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6843 Use option framework.
6844 (_initialize_cli_cmds): Update alias command help.
6845 Update aliases command help.
6846 (show_user):
6847 Add NULL for new default_args lookup_cmd argument.
6848 (valid_command_p): Rename to validate_aliased_command.
6849 Add NULL for new default_args lookup_cmd argument. Verify that the
6850 aliased_command has no default args.
6851 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6852 (lookup_cmd_1, lookup_cmd): New argument default_args.
6853 (add_alias_cmd):
6854 Add NULL for new default_args lookup_cmd argument.
6855 (print_help_for_command): Show default args under the layout
6856 alias some_alias = some_aliased_cmd some_alias_default_arg.
6857 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6858 xfree default_args in destructor.
6859 * cli/cli-script.c (process_next_line, do_define_command):
6860 Add NULL for new default_args lookup_cmd argument.
6861 * command.h: Declare new default_args argument in lookup_cmd
6862 and lookup_cmd_1.
6863 * completer.c (complete_line_internal_1):
6864 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6865 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6866 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6867 Likewise.
6868 * infcmd.c (_initialize_infcmd): Likewise.
6869 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6870 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6871 * python/py-param.c (add_setshow_generic): Likewise.
6872 * remote.c (_initialize_remote): Likewise.
6873 * top.c (execute_command): Prepend default_args if command has some.
6874 (set_verbose):
6875 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6876 * tracepoint.c (validate_actionline, encode_actions_1):
6877 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6878
bd920864
TBA
68792020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6880
6881 * jit.c (jit_read_descriptor): Use bool as the return type.
6882 (jit_breakpoint_re_set_internal): Use bool as the return type.
6883 Invert the return value logic; return true if the jit breakpoint
6884 has been successfully initialized.
6885 (jit_inferior_init): Update the call to
6886 jit_breakpoint_re_set_internal.
6887
f8098322
PA
68882020-06-22 Pedro Alves <palves@redhat.com>
6889
6890 PR gdb/25939
6891 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6892 Use the current inferior instead. Don't return
6893 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6894 wait again.
6895 * sol-thread.c (sol_thread_target::wait): Don't reference
6896 inferior_ptid.
6897 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6898 (sol_update_thread_list_callback): Use the current inferior's pid
6899 instead of inferior_ptid.
6900
196535a6
RO
69012020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6902
6903 * procfs.c: Cleanup many comments.
6904
6905 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6906 (AFTER_WATCHFLAG): Replace by value.
6907
6908 (MAIN_PROC_NAME_FORMAT): Inline ...
6909 (create_procinfo): ... here.
6910
6911 (procfs_debug_inferior): Remove SYS_exec handling.
6912 (syscall_is_exec): Likewise.
6913 (procfs_set_exec_trap): Likewise.
6914
6915 (syscall_is_lwp_exit): Inline in callers.
6916 (syscall_is_exit): Likewise.
6917 (syscall_is_exec): Likewise.
6918 (syscall_is_lwp_create): Likewise.
6919
6920 (invalidate_cache): Remove #if 0 code.
6921
6922 (make_signal_thread_runnable): Remove.
6923 (procfs_target::resume): Remove #if 0 code.
6924
cf6f3e86
RO
69252020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6926
6927 PR gdb/25939
6928 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6929 call ...
6930 (procfs_target::create_inferior): ... here.
6931
48e9cc84
PW
69322020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6933
6934 * exec.c (validate_exec_file): Ensure the build-id is up to
6935 date by calling reopen_exec_file (that checks file timestamp
6936 to decide to re-read the file).
6937
3922b302
PA
69382020-06-18 Pedro Alves <palves@redhat.com>
6939
6940 PR gdb/25412
6941 * gdbthread.h (delete_thread, delete_thread_silent)
6942 (find_thread_ptid): Update comments.
6943 * thread.c (current_thread_): New global.
6944 (is_current_thread): Move higher, and reimplement.
6945 (inferior_thread): Reimplement.
6946 (set_thread_exited): Use bool. Add assertions.
6947 (add_thread_silent): Simplify thread-reuse handling by always
6948 calling delete_thread.
6949 (delete_thread): Remove intro comment.
6950 (find_thread_ptid): Skip exited threads.
6951 (switch_to_thread_no_regs): Write to current_thread_.
6952 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6953 INFERIOR_PTID. Clear current_thread_.
6954
6dbdab44
PA
69552020-06-18 Pedro Alves <palves@redhat.com>
6956
6957 * aix-thread.c (pd_update): Use switch_to_thread.
6958
2da4b788
PA
69592020-06-18 Pedro Alves <palves@redhat.com>
6960
6961 * ravenscar-thread.c (ravenscar_thread_target): Update.
6962 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6963 (ravenscar_thread_target::add_active_thread): ... this. Don't
6964 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6965 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6966
50838d1b
PA
69672020-06-18 Pedro Alves <palves@redhat.com>
6968
6969 * nat/windows-nat.c (current_windows_thread): Remove.
6970 * nat/windows-nat.h (current_windows_thread): Remove.
6971 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6972 Adjust.
6973 (display_selectors): Adjust to fetch the current
6974 windows_thread_info based on inferior_ptid.
6975 (fake_create_process): No longer write to current_windows_thread.
6976 (windows_nat_target::get_windows_debug_event):
6977 Don't set inferior_ptid or current_windows_thread.
6978 (windows_nat_target::wait): Adjust to not rely on
6979 current_windows_thread.
6980 (do_initial_windows_stuff): Now a method of windows_nat_target.
6981 Switch to the last_ptid thread.
6982 (windows_nat_target::attach): Adjust.
6983 (windows_nat_target::detach): Use switch_to_no_thread instead of
6984 writing to inferior_ptid directly.
6985 (windows_nat_target::create_inferior): Adjust.
6986
31ce04e9
PA
69872020-06-18 Pedro Alves <palves@redhat.com>
6988
6989 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6990
1ee1a363
PA
69912020-06-18 Pedro Alves <palves@redhat.com>
6992
6993 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6994 after creating it, instead of writing to inferior_ptid. Don't
6995 write to inferior_ptid.
6996
6d350754
PA
69972020-06-18 Pedro Alves <palves@redhat.com>
6998
6999 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7000
5d971d48
PA
70012020-06-18 Pedro Alves <palves@redhat.com>
7002
7003 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7004 it, instead of writing to inferior_ptid.
7005
86e57d1b
PA
70062020-06-18 Pedro Alves <palves@redhat.com>
7007
7008 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7009 to inferior_ptid.
7010
f2e1c129
PA
70112020-06-18 Pedro Alves <palves@redhat.com>
7012
7013 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7014 instead of writing to inferior_ptid directly.
7015
60db1b85
PA
70162020-06-18 Pedro Alves <palves@redhat.com>
7017
7018 * corelow.c (core_target::close): Use switch_to_no_thread instead
7019 of writing to inferior_ptid directly.
7020 (add_to_thread_list, core_target_open): Use switch_to_thread
7021 instead of writing to inferior_ptid directly.
7022
fe7d6a8d
PA
70232020-06-18 Pedro Alves <palves@redhat.com>
7024
7025 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7026 inferior_ptid.
7027 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7028 inferior_ptid.
7029 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7030 inferior_ptid directly.
7031 (darwin_nat_target::init_thread_list): Switch to thread, instead
7032 of writing to inferior_ptid.
7033 (darwin_nat_target::attach): Don't write to inferior_ptid.
7034 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7035
975f8708
PA
70362020-06-18 Pedro Alves <palves@redhat.com>
7037
7038 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7039 thread.
7040 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7041 Instead use switch_to_thread.
7042 (gnu_nat_target::detach): Use switch_to_no_thread
7043 instead of writing to inferior_ptid directly. Used passed-in
7044 inferior instead of looking up the inferior by pid.
7045
1a204730
PA
70462020-06-18 Pedro Alves <palves@redhat.com>
7047
7048 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7049 inferior_ptid.
7050
ebe84f23
PA
70512020-06-18 Pedro Alves <palves@redhat.com>
7052
7053 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7054 inferior_ptid.
7055 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7056 thread.
7057 (nto_procfs_target::detach): Avoid referencing
7058 inferior_ptid. Use switch_to_no_thread instead of writing to
7059 inferior_ptid directly.
7060 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7061 instead of writing to inferior_ptid directly.
7062 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7063 to thread.
7064
191f02e5
PA
70652020-06-18 Pedro Alves <palves@redhat.com>
7066
7067 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7068 after creating it, instead of writing to inferior_ptid.
7069 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7070 to inferior_ptid directly.
7071 (gdbsim_target::wait): Don't write to inferior_ptid.
7072
0ac55310
PA
70732020-06-18 Pedro Alves <palves@redhat.com>
7074
7075 * remote.c (remote_target::remote_notice_new_inferior): Use
7076 switch_to_thread instead of writing to inferior_ptid directly.
7077 (remote_target::add_current_inferior_and_thread): Use
7078 switch_to_no_thread instead of writing to inferior_ptid directly.
7079 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7080 and switch_to_thread instead of using set_current_inferior or
7081 writing to inferior_ptid directly.
7082
5233f39b
PA
70832020-06-18 Pedro Alves <palves@redhat.com>
7084
7085 * tracectf.c (ctf_target_open): Switch to added thread instead of
7086 writing to inferior_ptid directly.
7087 (ctf_target::close): Use switch_to_no_thread instead of writing to
7088 inferior_ptid directly.
7089
087e161b
PA
70902020-06-18 Pedro Alves <palves@redhat.com>
7091
7092 * tracefile-tfile.c (tfile_target_open): Don't write to
7093 inferior_ptid directly, instead switch to added thread.
7094 (tfile_target::close): Use switch_to_no_thread instead of writing
7095 to inferior_ptid directly.
7096
7fb43e53
PA
70972020-06-18 Pedro Alves <palves@redhat.com>
7098
7099 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7100 (procfs_target::detach): Use switch_to_no_thread
7101 instead of writing to inferior_ptid directly.
7102 (do_attach): Change return type to void. Switch to the added
7103 thread.
7104 (procfs_target::create_inferior): Switch to the added thread.
7105 (procfs_do_thread_registers): Don't write to inferior_ptid.
7106
18493a00
PA
71072020-06-18 Pedro Alves <palves@redhat.com>
7108
7109 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7110 of writing to inferior_ptid.
7111 (scoped_restore_exited_inferior): Delete.
7112 (handle_vfork_child_exec_or_exit): Simplify using
7113 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7114 instead of writing to inferior_ptid.
7115 (THREAD_STOPPED_BY): Delete.
7116 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7117 (thread_stopped_by_hw_breakpoint): Delete.
7118 (save_waitstatus): Use
7119 scoped_restore_current_thread+switch_to_thread, and call
7120 target_stopped_by_watchpoint instead of
7121 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7122 instead of thread_stopped_by_sw_breakpoint, and
7123 target_stopped_by_hw_breakpoint instead of
7124 thread_stopped_by_hw_breakpoint.
7125 (handle_inferior_event)
7126 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7127 inferior_ptid directly, nor
7128 set_current_inferior/set_current_program_space. Use
7129 switch_to_thread / switch_to_inferior_no_thread instead.
7130
a0776b13
PA
71312020-06-18 Pedro Alves <palves@redhat.com>
7132
7133 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7134 instead of writing to inferior_ptid.
7135
6155c136
PA
71362020-06-18 Pedro Alves <palves@redhat.com>
7137
7138 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7139 added thread.
7140 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7141 to the added thread.
7142 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7143 instead of writing to inferior_ptid.
7144
c5316fc6
PA
71452020-06-18 Pedro Alves <palves@redhat.com>
7146
7147 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7148 (register_to_value_test): Mock a program_space too. Heap-allocate
7149 the address space. Don't write to inferior_ptid. Use
7150 switch_to_thread instead.
7151
8df01799
PA
71522020-06-18 Pedro Alves <palves@redhat.com>
7153
7154 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7155 Delete.
7156 (find_signalled_thread()): New, factored out from
7157 linux_make_corefile_notes and adjusted to handle exited threads.
7158 (linux_make_corefile_notes): Adjust to use the new
7159 find_signalled_thread.
7160
41792d68
PA
71612020-06-18 Pedro Alves <palves@redhat.com>
7162
7163 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7164 of saving/restoring inferior_ptid.
7165
612f258a
TT
71662020-06-17 Tom Tromey <tom@tromey.com>
7167
7168 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7169 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7170 declare.
7171 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7172
efb763a5
SM
71732020-06-15 Simon Marchi <simon.marchi@efficios.com>
7174
7175 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7176 of partial symtabs.
7177
2951f6c0
SM
71782020-06-17 Simon Marchi <simon.marchi@efficios.com>
7179
7180 * regformats/reg-arm.dat: Remove.
7181 * regformats/reg-bfin.dat: Remove.
7182 * regformats/reg-cris.dat: Remove.
7183 * regformats/reg-crisv32.dat: Remove.
7184 * regformats/reg-m32r.dat: Remove.
7185 * regformats/reg-tilegx.dat: Remove.
7186 * regformats/reg-tilegx32.dat: Remove.
7187
7d458ea5
SM
71882020-06-17 Simon Marchi <simon.marchi@efficios.com>
7189
7190 * features/Makefile (WHICH): Remove arm files.
7191 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7192 * regformats/arm/arm-with-neon.dat: Remove.
7193 * regformats/arm/arm-with-vfpv2.dat: Remove.
7194 * regformats/arm/arm-with-vfpv3.dat: Remove.
7195
3af96c0d
SM
71962020-06-17 Simon Marchi <simon.marchi@efficios.com>
7197
7198 * features/Makefile (XMLTOC): Remove rx.xml.
7199
b25e22fd
PA
72002020-06-17 Pedro Alves <palves@redhat.com>
7201
7202 * gdbthread.h (thread_control_state) <trap_expected> Update
7203 comments.
7204
a78a19b1
AB
72052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7206
7207 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7208 ada_language::lookup_symbol_nonlocal.
7209 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7210 (ada_language::lookup_symbol_nonlocal): New member function,
7211 implementation from ada_lookup_symbol_nonlocal.
7212 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7213 initializer.
7214 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7215 initializer.
7216 (cplus_language::lookup_symbol_nonlocal): New member function.
7217 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7218 (minimal_language_data) Likewise.
7219 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7220 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7221 initializer.
7222 (d_language::lookup_symbol_nonlocal): New member function.
7223 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7224 initializer.
7225 (f_language::lookup_symbol_nonlocal): New member function.
7226 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7227 initializer.
7228 * language.c (unknown_language_data): Likewise.
7229 (auto_language_data): Likewise.
7230 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7231 field.
7232 (language_defn::lookup_symbol_nonlocal): New member function.
7233 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7234 initializer.
7235 * objc-lang.c (objc_language_data): Likewise.
7236 * opencl-lang.c (opencl_language_data): Likewise.
7237 * p-lang.c (pascal_language_data): Likewise.
7238 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7239 rust_language::lookup_symbol_nonlocal.
7240 (rust_language_data): Delete la_lookup_symbol_nonlocal
7241 initializer.
7242 (rust_language::lookup_symbol_nonlocal): New member function,
7243 implementation from rust_lookup_symbol_nonlocal.
7244 * symtab.c (lookup_symbol_aux): Update call to
7245 lookup_symbol_nonlocal.
7246 (basic_lookup_symbol_nonlocal): Rename to...
7247 (language_defn::lookup_symbol_nonlocal): ...this, and update
7248 header comment. Remove language_defn parameter, and replace with
7249 uses of `this'.
7250 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7251
ebe2334e
AB
72522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7253
7254 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7255 initializer.
7256 (ada_language::value_print_inner): New member function.
7257 * c-lang.c (c_language_data): Delete la_value_print_inner
7258 initializer.
7259 (cplus_language_data): Likewise.
7260 (asm_language_data): Likewise.
7261 (minimal_language_data): Likewise.
7262 * d-lang.c (d_language_data): Likewise.
7263 (d_language::value_print_inner): New member function.
7264 * f-lang.c (f_language_data): Delete la_value_print_inner
7265 initializer.
7266 (f_language::value_print_inner): New member function.
7267 * f-lang.h (f_value_print_innner): Rename to...
7268 (f_value_print_inner): ...this (note spelling of 'inner').
7269 * f-valprint.c (f_value_print_innner): Rename to...
7270 (f_value_print_inner): ...this (note spelling of 'inner').
7271 * go-lang.c (go_language_data): Delete la_value_print_inner
7272 initializer.
7273 (go_language::value_print_inner): New member function.
7274 * language.c (language_defn::value_print_inner): Define new member
7275 function.
7276 (unk_lang_value_print_inner): Delete.
7277 (unknown_language_data): Delete la_value_print_inner initializer.
7278 (unknown_language::value_print_inner): New member function.
7279 (auto_language_data): Delete la_value_print_inner initializer.
7280 (auto_language::value_print_inner): New member function.
7281 * language.h (language_data): Delete la_value_print_inner field.
7282 (language_defn::value_print_inner): Delcare new member function.
7283 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7284 initializer.
7285 (m2_language::value_print_inner): New member function.
7286 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7287 initializer.
7288 * opencl-lang.c (opencl_language_data): Likewise.
7289 * p-lang.c (pascal_language_data): Likewise.
7290 (pascal_language::value_print_inner): New member function.
7291 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7292 initializer.
7293 (rust_language::value_print_inner): New member function.
7294 * valprint.c (do_val_print): Update call to value_print_inner.
7295
a1d1fa3e
AB
72962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7297
7298 * ada-lang.c (ada_language_data): Delete la_value_print
7299 initializer.
7300 (ada_language::value_print): New member function.
7301 * c-lang.c (c_language_data): Delete la_value_print initializer.
7302 (cplus_language_data): Likewise.
7303 (asm_language_data): Likewise.
7304 (minimal_language_data): Likewise.
7305 * d-lang.c (d_language_data): Likewise.
7306 * f-lang.c (f_language_data): Likewise.
7307 * go-lang.c (go_language_data): Likewise.
7308 * language.c (unk_lang_value_print): Delete.
7309 (language_defn::value_print): Define new member function.
7310 (unknown_language_data): Delete la_value_print initializer.
7311 (unknown_language::value_print): New member function.
7312 (auto_language_data): Delete la_value_print initializer.
7313 (auto_language::value_print): New member function.
7314 * language.h (language_data): Delete la_value_print field.
7315 (language_defn::value_print): Declare new member function.
7316 (LA_VALUE_PRINT): Update call to value_print.
7317 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7318 * objc-lang.c (objc_language_data): Likewise.
7319 * opencl-lang.c (opencl_language_data): Likewise.
7320 * p-lang.c (pascal_language_data): Likewise.
7321 (pascal_language::value_print): New member function.
7322 * rust-lang.c (rust_language_data): Delete la_value_print
7323 initializer.
7324
f16a9f57
AB
73252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7326
7327 * ada-lang.c (ada_watch_location_expression): Rename to
7328 ada_language::watch_location_expression.
7329 (ada_language_data): Delete la_watch_location_expression
7330 initializer.
7331 (ada_language::watch_location_expression): New member function,
7332 implementation from ada_watch_location_expression.
7333 * breakpoint.c (watch_command_1): Update call to
7334 watch_location_expression.
7335 * c-lang.c (c_watch_location_expression): Rename to
7336 language_defn::watch_location_expression.
7337 (c_language_data): Delete la_watch_location_expression
7338 initializer.
7339 (cplus_language_data): Likewise.
7340 (asm_language_data): Likewise.
7341 (minimal_language_data): Likewise.
7342 * c-lang.h (c_watch_location_expression): Delete declaration.
7343 * d-lang.c (d_language_data): Delete la_watch_location_expression
7344 initializer.
7345 * f-lang.c (f_language_data): Likewise.
7346 * go-lang.c (go_language_data): Likewise.
7347 * language.c (language_defn::watch_location_expression): Member
7348 function implementation from c_watch_location_expression.
7349 (unknown_language_data): Delete la_watch_location_expression
7350 initializer.
7351 (auto_language_data): Likewise.
7352 * language.h (language_data): Delete la_watch_location_expression
7353 field.
7354 (language_defn::watch_location_expression): Declare new member
7355 function.
7356 * m2-lang.c (m2_language_data): Delete
7357 la_watch_location_expression initializer.
7358 * objc-lang.c (objc_language_data): Likewise.
7359 * opencl-lang.c (opencl_language_data): Likewise.
7360 * p-lang.c (pascal_language_data): Likewise.
7361 * rust-lang.c (rust_watch_location_expression): Rename to
7362 rust_language::watch_location_expression.
7363 (rust_language_data): Delete la_watch_location_expression
7364 initializer.
7365 (rust_language::watch_location_expression): New member function,
7366 implementation from rust_watch_location_expression.
7367
7e56227d
AB
73682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7369
7370 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7371 ada_language::collect_symbol_completion_matches.
7372 (ada_language_data): Delete la_collect_symbol_completion_matches
7373 initializer.
7374 (ada_language::collect_symbol_completion_matches): New member
7375 function, implementation from
7376 ada_collect_symbol_completion_matches.
7377 * c-lang.c (c_language_data): Delete
7378 la_collect_symbol_completion_matches initializer.
7379 (cplus_language_data): Likewise.
7380 (asm_language_data): Likewise.
7381 (minimal_language_data): Likewise.
7382 * d-lang.c (d_language_data): Likewise.
7383 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7384 f_language::collect_symbol_completion_matches.
7385 (f_language_data): Delete la_collect_symbol_completion_matches
7386 initializer.
7387 (f_language::collect_symbol_completion_matches) New member
7388 function, implementation from f_collect_symbol_completion_matches.
7389 * go-lang.c (go_language_data): Delete
7390 la_collect_symbol_completion_matches initializer.
7391 * language.c (unknown_language_data): Likewise.
7392 (auto_language_data): Likewise.
7393 * language.h (language_data): Delete
7394 la_collect_symbol_completion_matches field.
7395 (language_defn::collect_symbol_completion_matches): New member
7396 function.
7397 * m2-lang.c (m2_language_data): Delete
7398 la_collect_symbol_completion_matches initializer.
7399 * objc-lang.c (objc_language_data): Likewise.
7400 * opencl-lang.c (opencl_language_data): Likewise.
7401 * p-lang.c (pascal_language_data): Likewise.
7402 * rust-lang.c (rust_language_data): Likewise.
7403 * symtab.c (default_collect_symbol_completion_matches): Delete.
7404 (collect_symbol_completion_matches): Update call to
7405 collect_symbol_completion_matches.
7406 (collect_symbol_completion_matches_type): Likewise.
7407 * symtab.h (default_collect_symbol_completion_matches): Delete
7408 declaration.
7409
53fc67f8
AB
74102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7411
7412 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7413 (ada_language_data): Delete la_word_break_characters initializer.
7414 (ada_language::word_break_characters): New member function.
7415 * c-lang.c (c_language_data): Delete la_word_break_characters
7416 initializer.
7417 (cplus_language_data): Likewise.
7418 (asm_language_data): Likewise.
7419 (minimal_language_data): Likewise.
7420 * completer.c: Update global comment.
7421 (advance_to_expression_complete_word_point): Update call to
7422 word_break_characters.
7423 (complete_files_symbols): Likewise.
7424 (complete_line_internal_1): Likewise.
7425 (default_completer_handle_brkchars): Likewise.
7426 (skip_quoted_chars): Likewise.
7427 * d-lang.c (d_language_data): Delete la_word_break_characters
7428 initializer.
7429 * f-lang.c (f_word_break_characters): Delete.
7430 (f_language_data): Delete la_word_break_characters initializer.
7431 (f_language::word_break_characters): New member function.
7432 * go-lang.c (go_language_data): Delete la_word_break_characters
7433 initializer.
7434 * language.c (unknown_language_data): Likewise.
7435 (auto_language_data): Likewise.
7436 * language.h (default_word_break_characters): Move declaration to
7437 earlier in the file.
7438 (language_data): Delete la_word_break_characters field.
7439 (language_defn::word_break_characters): New member function.
7440 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7441 initializer.
7442 * objc-lang.c (objc_language_data): Likewise.
7443 * opencl-lang.c (opencl_language_data): Likewise.
7444 * p-lang.c (pascal_language_data): Likewise.
7445 * rust-lang.c (rust_language_data): Likewise.
7446
c9debfb9
AB
74472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7448
7449 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7450 (ada_language_data): Delete la_get_symbol_name_matcher
7451 initializer.
7452 (language_defn::get_symbol_name_matcher_inner): New member
7453 function.
7454 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7455 initializer.
7456 (cplus_language_data): Likewise.
7457 (cplus_language::get_symbol_name_matcher_inner): New member
7458 function.
7459 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7460 (minimal_language_data): Likewise.
7461 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7462 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7463 initializer.
7464 * dictionary.c (iter_match_first_hashed): Update call to
7465 get_symbol_name_matcher.
7466 (iter_match_next_hashed): Likewise.
7467 (iter_match_next_linear): Likewise.
7468 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7469 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7470 initializer.
7471 (f_language::get_symbol_name_matcher_inner): New member function.
7472 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7473 initializer.
7474 * language.c (default_symbol_name_matcher): Update header comment,
7475 make static.
7476 (language_defn::get_symbol_name_matcher): New definition.
7477 (language_defn::get_symbol_name_matcher_inner): Likewise.
7478 (get_symbol_name_matcher): Delete.
7479 (unknown_language_data): Delete la_get_symbol_name_matcher
7480 initializer.
7481 (auto_language_data): Likewise.
7482 * language.h (language_data): Delete la_get_symbol_name_matcher
7483 field.
7484 (language_defn::get_symbol_name_matcher): New member function.
7485 (language_defn::get_symbol_name_matcher_inner): Likewise.
7486 (default_symbol_name_matcher): Delete declaration.
7487 * linespec.c (find_methods): Update call to
7488 get_symbol_name_matcher.
7489 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7490 initializer.
7491 * minsyms.c (lookup_minimal_symbol): Update call to
7492 get_symbol_name_matcher.
7493 (iterate_over_minimal_symbols): Likewise.
7494 * objc-lang.c (objc_language_data): Delete
7495 la_get_symbol_name_matcher initializer.
7496 * opencl-lang.c (opencl_language_data): Likewise.
7497 * p-lang.c (pascal_language_data): Likewise.
7498 * psymtab.c (psymbol_name_matches): Update call to
7499 get_symbol_name_matcher.
7500 * rust-lang.c (rust_language_data): Delete
7501 la_get_symbol_name_matcher initializer.
7502 * symtab.c (symbol_matches_search_name): Update call to
7503 get_symbol_name_matcher.
7504 (compare_symbol_name): Likewise.
7505
9a49ad8c
AB
75062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7507
7508 * ada-lang.c (ada_language_data): Delete la_compute_program
7509 initializer.
7510 * c-lang.c (c_language_data): Likewise.
7511 (c_language::compute_program): New member function.
7512 (cplus_language_data): Delete la_compute_program initializer.
7513 (cplus_language::compute_program): New member function.
7514 (asm_language_data): Delete la_compute_program initializer.
7515 (minimal_language_data): Likewise.
7516 * c-lang.h (c_compute_program): Update comment.
7517 (cplus_compute_program): Likewise.
7518 * compile/compile-c-support.c (c_compute_program): Likewise.
7519 (cplus_compute_program): Likewise.
7520 * compile/compile.c (compile_to_object): Update call to
7521 la_compute_program.
7522 * d-lang.c (d_language_data): Delete la_compute_program
7523 initializer.
7524 * f-lang.c (f_language_data): Likewise.
7525 * go-lang.c (go_language_data): Likewise.
7526 * language.c (unknown_language_data): Likewise.
7527 (auto_language_data): Likewise.
7528 * language.h (language_data): Delete la_compute_program field.
7529 (language_defn::compute_program): New member function.
7530 * m2-lang.c (m2_language_data): Delete la_compute_program
7531 initializer.
7532 * objc-lang.c (objc_language_data): Likewise.
7533 * opencl-lang.c (opencl_language_data): Likewise.
7534 * p-lang.c (pascal_language_data): Likewise.
7535 * rust-lang.c (rust_language_data): Likewise.
7536
eff93b4d
AB
75372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7538
7539 * ada-lang.c (ada_language_data) Delete
7540 la_class_name_from_physname initializer.
7541 * c-lang.c (c_language_data): Likewise.
7542 (cplus_language_data): Likewise.
7543 (cplus_language::class_name_from_physname): New member function.
7544 (asm_language_data): Delete la_class_name_from_physname
7545 initializer.
7546 (minimal_language_data): Likewise.
7547 * d-lang.c (d_language_data): Likewise.
7548 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7549 method on language_defn class.
7550 (guess_full_die_structure_name): Likewise.
7551 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7552 initializer.
7553 * go-lang.c (go_language_data): Likewise.
7554 * language.c (language_class_name_from_physname): Delete.
7555 (unk_lang_class_name): Delete.
7556 (unknown_language_data): Delete la_class_name_from_physname
7557 initializer.
7558 (auto_language_data): Likewise.
7559 * language.h (language_data): Delete la_class_name_from_physname
7560 field.
7561 (language_defn::class_name_from_physname): New function.
7562 (language_class_name_from_physname): Delete declaration.
7563 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7564 initializer.
7565 * objc-lang.c (objc_language_data): Likewise.
7566 * opencl-lang.c (opencl_language_data): Likewise.
7567 * p-lang.c (pascal_language_data): Likewise.
7568 * rust-lang.c (rust_language_data): Likewise.
7569
de543742
TT
75702020-06-16 Tom Tromey <tom@tromey.com>
7571
7572 * tui/tui-data.h (STATUS_NAME): New macro.
7573 * tui/tui-layout.c (tui_remove_some_windows)
7574 (initialize_known_windows, tui_register_window)
7575 (tui_layout_split::remove_windows, initialize_layouts)
7576 (tui_new_layout_command): Don't use hard-coded window names.
7577
a350efd4
TT
75782020-06-16 Tom Tromey <tom@tromey.com>
7579
7580 PR tui/25348:
7581 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7582 tui_initialize_readline. Only run once. Call rl_initialize.
7583 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7584 tui_initialize_readline.
7585 * tui/tui-io.c (tui_setup_io): Call
7586 tui_ensure_readline_initialized.
7587 * tui/tui-interp.c (tui_interp::init): Update.
7588
39ec0490
TT
75892020-06-16 Tom Tromey <tom@tromey.com>
7590
7591 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7592 Also preserve the status window.
7593
d2d1ea20
TT
75942020-06-16 Tom Tromey <tom@tromey.com>
7595
7596 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7597 where m_window==nullptr.
7598
66920317
TT
75992020-06-15 Tom Tromey <tromey@adacore.com>
7600
7601 * windows-nat.c (windows_nat::handle_output_debug_string):
7602 Update.
7603 (windows_nat::handle_ms_vc_exception): Update.
7604 * target.h (target_read_string): Change API.
7605 * target.c (target_read_string): Change API.
7606 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7607 Update.
7608 * solib-frv.c (frv_current_sos): Update.
7609 * solib-dsbt.c (dsbt_current_sos): Update.
7610 * solib-darwin.c (darwin_current_sos): Update.
7611 * linux-thread-db.c (inferior_has_bug): Update.
7612 * expprint.c (print_subexp_standard): Update.
7613 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7614 (ada_exception_message_1): Update.
7615
a5d871dd
TT
76162020-06-15 Tom Tromey <tromey@adacore.com>
7617
7618 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7619
670e35fa
TT
76202020-06-15 Tom Tromey <tromey@adacore.com>
7621
7622 * valprint.c (read_string): Update comment.
7623 * target.c (MIN): Remove.
7624 (target_read_string): Rewrite.
7625
f5272a3b
TT
76262020-06-15 Tom Tromey <tromey@adacore.com>
7627
7628 * corefile.c (read_memory_string): Remove.
7629 * ada-valprint.c (ada_value_print_ptr): Update.
7630 * ada-lang.h (ada_tag_name): Change return type.
7631 * ada-lang.c (type_from_tag): Update.
7632 (ada_tag_name_from_tsd): Change return type. Use
7633 target_read_string.
7634 (ada_tag_name): Likewise.
7635 * gdbcore.h (read_memory_string): Don't declare.
7636
2c074f49
HD
76372020-06-14 Hannes Domani <ssbssa@yahoo.de>
7638
7639 * symtab.c (rbreak_command): Ignore Windows drive colon.
7640
6a17d503
SM
76412020-06-12 Simon Marchi <simon.marchi@efficios.com>
7642
7643 * NEWS: Mention removed GDBserver host support.
7644
453c733f
NC
76452020-06-12 Nelson Chu <nelson.chu@sifive.com>
7646
7647 * features/riscv/rebuild-csr-xml.sh: Updated.
7648
2b4e6a3f
TT
76492020-06-11 Tom Tromey <tom@tromey.com>
7650
7651 PR gdb/18318:
7652 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7653
4412332f
JG
76542020-06-09 Jonny Grant <jg@jguk.org>
76552020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7656
7657 * main.c (captured_main_1): Don't print new line after help.
7658 (print_gdb_help): add mailing list and IRC channel information
7659 to --help. Add new lines between items in the footer. Remove
7660 quotes around bug url.
7661
2f33032a
KS
76622020-06-11 Keith Seitz <keiths@redhat.com>
7663
7664 PR gdb/21356
7665 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7666 Resolve typedefs for type length calculations.
7667
7ab96794
TV
76682020-06-10 Tom de Vries <tdevries@suse.de>
7669
7670 PR ada/24713
7671 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7672 (write_psymbols): Enable .gdb_index for ada.
7673 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7674 ada.
7675
e5f3ece2
TV
76762020-06-10 Tom de Vries <tdevries@suse.de>
7677
7678 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7679 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7680 namei" instead of "const char *name" argument.
7681 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7682 dw2_symtab_iter_init.
7683
940da03e
SM
76842020-06-08 Simon Marchi <simon.marchi@efficios.com>
7685
7686 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7687 to use type::field and field::type instead.
7688
b6cdac4b
SM
76892020-06-08 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7692 to use field::type instead.
7693
5d14b6e5
SM
76942020-06-08 Simon Marchi <simon.marchi@efficios.com>
7695
7696 * gdbtypes.h (struct field) <type, set_type>: New methods.
7697 Rename `type` field to...
7698 <m_type>: ... this. Change references throughout to use type or
7699 set_type methods.
7700 (FIELD_TYPE): Use field::type. Change call sites that modify
7701 the field's type to use field::set_type instead.
7702
3d967001
SM
77032020-06-08 Simon Marchi <simon.marchi@efficios.com>
7704
7705 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7706 to use type::index_type instead.
7707
262abc0d
SM
77082020-06-08 Simon Marchi <simon.marchi@efficios.com>
7709
7710 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7711 methods.
7712 (TYPE_INDEX_TYPE): Use type::index_type.
7713 * gdbtypes.c (create_array_type_with_stride): Likewise.
7714
82836c92
TT
77152020-06-07 Tom Tromey <tom@tromey.com>
7716
7717 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7718 parameter.
7719 (generic_value_print): Update.
7720
940dace9
AB
77212020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7722
7723 Revert commit 982a38f60b0.
7724 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7725
982a38f6
AB
77262020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7727
7728 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7729 avoid use after free.
7730
82f06518
TV
77312020-06-05 Tom de Vries <tdevries@suse.de>
7732
7733 * NEWS: Fix typos.
7734
f8c41851
SM
77352020-06-04 Simon Marchi <simon.marchi@efficios.com>
7736
7737 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7738 the per_bfd object.
7739 (dwarf2_read_debug_names): Likewise.
7740 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7741 object when re-using a per_bfd object with an index.
7742
f9b5d5ea
TV
77432020-06-03 Tom de Vries <tdevries@suse.de>
7744
7745 PR symtab/26046
7746 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7747 children for C++.
7748 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7749 DW_TAG_subprogram.
7750
f6eee2d0
AB
77512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7752
7753 * ada-lang.c (ada_language_data): Delete skip_trampoline
7754 initializer.
7755 * c-lang.c (c_language_data): Likewise.
7756 (cplus_language_data): Likewise.
7757 (cplus_language::skip_trampoline): New member function.
7758 (asm_language_data): Delete skip_trampoline initializer.
7759 (minimal_language_data): Likewise.
7760 * d-lang.c (d_language_data): Likewise.
7761 * f-lang.c (f_language_data): Likewise.
7762 * go-lang.c (go_language_data): Likewise.
7763 * language.c (unk_lang_trampoline): Delete function.
7764 (skip_language_trampoline): Update.
7765 (unknown_language_data): Delete skip_trampoline initializer.
7766 (auto_language_data): Likewise.
7767 * language.h (language_data): Delete skip_trampoline field.
7768 (language_defn::skip_trampoline): New function.
7769 * m2-lang.c (m2_language_data): Delete skip_trampoline
7770 initializer.
7771 * objc-lang.c (objc_skip_trampoline): Delete function, move
7772 implementation to objc_language::skip_trampoline.
7773 (objc_language_data): Delete skip_trampoline initializer.
7774 (objc_language::skip_trampoline): New member function with
7775 implementation from objc_skip_trampoline.
7776 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7777 initializer.
7778 * p-lang.c (pascal_language_data): Likewise.
7779 * rust-lang.c (rust_language_data): Likewise.
7780
0a50df5d
AB
77812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7782
7783 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7784 (ada_language::demangle): New member function.
7785 * c-lang.c (c_language_data): Delete la_demangle initializer.
7786 (cplus_language_data): Delete la_demangle initializer.
7787 (cplus_language::demangle): New member function.
7788 (asm_language_data): Delete la_demangle initializer.
7789 (minimal_language_data): Delete la_demangle initializer.
7790 * d-lang.c (d_language_data): Delete la_demangle initializer.
7791 (d_language::demangle): New member function.
7792 * f-lang.c (f_language_data): Delete la_demangle initializer.
7793 (f_language::demangle): New member function.
7794 * go-lang.c (go_language_data): Delete la_demangle initializer.
7795 (go_language::demangle): New member function.
7796 * language.c (language_demangle): Update.
7797 (unk_lang_demangle): Delete.
7798 (unknown_language_data): Delete la_demangle initializer.
7799 (unknown_language::demangle): New member function.
7800 (auto_language_data): Delete la_demangle initializer.
7801 (auto_language::demangle): New member function.
7802 * language.h (language_data): Delete la_demangle field.
7803 (language_defn::demangle): New function.
7804 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7805 * objc-lang.c (objc_language_data): Delete la_demangle
7806 initializer.
7807 (objc_language::demangle): New member function.
7808 * opencl-lang.c (opencl_language_data): Delete la_demangle
7809 initializer.
7810 * p-lang.c (pascal_language_data): Likewise.
7811 * rust-lang.c (rust_language_data): Likewise.
7812 (rust_language::demangle): New member function.
7813
fbfb0a46
AB
78142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7815
7816 * ada-lang.c (ada_language_data): Delete la_print_type
7817 initializer.
7818 (ada_language::print_type): New member function.
7819 * c-lang.c (c_language_data): Delete la_print_type initializer.
7820 (c_language::print_type): New member function.
7821 (cplus_language_data): Delete la_print_type initializer.
7822 (cplus_language::print_type): New member function.
7823 (asm_language_data): Delete la_print_type initializer.
7824 (asm_language::print_type): New member function.
7825 (minimal_language_data): Delete la_print_type initializer.
7826 (minimal_language::print_type): New member function.
7827 * d-lang.c (d_language_data): Delete la_print_type initializer.
7828 (d_language::print_type): New member function.
7829 * f-lang.c (f_language_data): Delete la_print_type initializer.
7830 (f_language::print_type): New member function.
7831 * go-lang.c (go_language_data): Delete la_print_type initializer.
7832 (go_language::print_type): New member function.
7833 * language.c (unk_lang_print_type): Delete.
7834 (unknown_language_data): Delete la_print_type initializer.
7835 (unknown_language::print_type): New member function.
7836 (auto_language_data): Delete la_print_type initializer.
7837 (auto_language::print_type): New member function.
7838 * language.h (language_data): Delete la_print_type field.
7839 (language_defn::print_type): New function.
7840 (LA_PRINT_TYPE): Update.
7841 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7842 (m2_language::print_type): New member function.
7843 * objc-lang.c (objc_language_data): Delete la_print_type
7844 initializer.
7845 (objc_language::print_type): New member function.
7846 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7847 to opencl_language::print_type.
7848 (opencl_language_data): Delete la_print_type initializer.
7849 (opencl_language::print_type): New member function, implementation
7850 from opencl_print_type.
7851 * p-lang.c (pascal_language_data): Delete la_print_type
7852 initializer.
7853 (pascal_language::print_type): New member function.
7854 * rust-lang.c (rust_print_type): Delete, implementation moved to
7855 rust_language::print_type.
7856 (rust_language_data): Delete la_print_type initializer.
7857 (rust_language::print_type): New member function, implementation
7858 from rust_print_type.
7859
6f827019
AB
78602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7861
7862 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7863 implementation moves to...
7864 (ada_language::sniff_from_mangled_name): ...here. Update return
7865 type.
7866 (ada_language_data): Delete la_sniff_from_mangled_name
7867 initializer.
7868 * c-lang.c (c_language_data): Likewise.
7869 (cplus_language_data): Likewise.
7870 (cplus_language::sniff_from_mangled_name): New member function,
7871 implementation taken from gdb_sniff_from_mangled_name.
7872 (asm_language_data): Delete la_sniff_from_mangled_name
7873 initializer.
7874 (minimal_language_data): Likewise.
7875 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7876 implementation moves to cplus_language::sniff_from_mangled_name.
7877 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7878 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7879 moves to...
7880 (d_language::sniff_from_mangled_name): ...here.
7881 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7882 * f-lang.c (f_language_data): Likewise.
7883 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7884 moves to...
7885 (go_language::sniff_from_mangled_name): ...here.
7886 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7887 * language.c (language_sniff_from_mangled_name): Delete.
7888 (unknown_language_data): Delete la_sniff_from_mangled_name
7889 initializer.
7890 (auto_language_data): Likewise.
7891 * language.h (language_data): Delete la_sniff_from_mangled_name
7892 field.
7893 (language_defn::sniff_from_mangled_name): New function.
7894 (language_sniff_from_mangled_name): Delete declaration.
7895 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7896 field.
7897 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7898 implementation moves to...
7899 (objc_language::sniff_from_mangled_name): ...here.
7900 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7901 * opencl-lang.c (opencl_language_data): Likewise.
7902 * p-lang.c (pascal_language_data): Likewise.
7903 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7904 implementation moves to...
7905 (rust_language::sniff_from_mangled_name): ...here.
7906 (rust_language_data): Delete la_sniff_from_mangled_name
7907 initializer.
7908 * symtab.c (symbol_find_demangled_name): Call
7909 sniff_from_mangled_name member function.
7910
fb8006fd
AB
79112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7912
7913 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7914 initializer.
7915 * c-lang.c (c_language_data): Likewise.
7916 (cplus_language_data): Likewise.
7917 (cplus_language::search_name_hash): New member function.
7918 (asm_language_data): Delete la_search_name_hash initializer.
7919 (minimal_language_data): Likewise.
7920 * d-lang.c (d_language_data): Likewise.
7921 * dictionary.c (default_search_name_hash): Rename to...
7922 (language_defn::search_name_hash): ...this.
7923 * f-lang.c (f_language_data): Likewise.
7924 (f_language::search_name_hash): New member function.
7925 * go-lang.c (go_language_data): Delete la_search_name_hash
7926 initializer.
7927 * language.c (unknown_language_data): Likewise.
7928 (auto_language_data): Likewise.
7929 * language.h (struct language_data): Delete la_search_name_hash
7930 field.
7931 (language_defn::search_name_hash): Declare new member function.
7932 (default_search_name_hash): Delete declaration.
7933 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7934 initializer.
7935 * objc-lang.c (objc_language_data): Likewise.
7936 * opencl-lang.c (opencl_language_data): Likewise.
7937 * p-lang.c (pascal_language_data): Likewise.
7938 * rust-lang.c (rust_language_data): Likewise.
7939 * symtab.c (search_name_hash): Update call.
7940
8e25bafe
AB
79412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7942
7943 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7944 initializer.
7945 * c-lang.c (class compile_instance): Declare.
7946 (c_language_data): Delete la_get_compile_instance initializer.
7947 (c_language::get_compile_instance): New member function.
7948 (cplus_language_data): Delete la_get_compile_instance initializer.
7949 (cplus_language::get_compile_instance): New member function.
7950 (asm_language_data): Delete la_get_compile_instance initializer.
7951 (minimal_language_data): Likewise.
7952 * c-lang.h (c_get_compile_context): Update comment.
7953 (cplus_get_compile_context): Update comment.
7954 * compile/compile.c (compile_to_object): Update calls, don't rely
7955 on function pointer being NULL.
7956 * d-lang.c (d_language_data): Delete la_get_compile_instance
7957 initializer.
7958 * f-lang.c (f_language_data): Likewise.
7959 * go-lang.c (go_language_data): Likewise.
7960 * language.c (unknown_language_data): Likewise.
7961 (auto_language_data): Likewise.
7962 * language.h (language_data): Delete la_get_compile_instance field.
7963 (language_defn::get_compile_instance): New member function.
7964 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7965 initializer.
7966 * objc-lang.c (objc_language_data): Likewise.
7967 * opencl-lang.c (opencl_language_data): Likewise.
7968 * p-lang.c (pascal_language_data): Likewise.
7969 * rust-lang.c (rust_language_data): Likewise.
7970
4009ee92
AB
79712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7972
7973 * ada-lang.c (ada_add_all_symbols): Update comment.
7974 (ada_iterate_over_symbols): Delete, move implementation to...
7975 (ada_language::iterate_over_symbols): ...here, a new member
7976 function, rewrite to use range based for loop.
7977 (ada_language_data): Delete la_iterate_over_symbols initializer.
7978 * c-lang.c (c_language_data): Likewise.
7979 (cplus_language_data): Likewise.
7980 (asm_language_data): Likewise.
7981 (minimal_language_data): Likewise.
7982 * d-lang.c (d_language_data): Likewise.
7983 * f-lang.c (f_language_data): Likewise.
7984 * go-lang.c (go_language_data): Likewise.
7985 * language.c (unknown_language_data): Likewise.
7986 (auto_language_data): Likewise.
7987 * language.h (language_data): Delete la_iterate_over_symbols field.
7988 (language_defn::iterate_over_symbols): New member function.
7989 (LA_ITERATE_OVER_SYMBOLS): Update.
7990 * linespec.c (iterate_over_all_matching_symtabs): Update.
7991 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7992 initializer.
7993 * objc-lang.c (objc_language_data): Likewise.
7994 * opencl-lang.c (opencl_language_data): Likewise.
7995 * p-lang.c (pascal_language_data): Likewise.
7996 * rust-lang.c (rust_language_data): Likewise.
7997
54f4ca46
AB
79982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7999
8000 * ada-lang.c (ada_language_data): Delete
8001 la_lookup_transparent_type initializer.
8002 * c-lang.c (c_language_data): Likewise.
8003 (cplus_language_data): Likewise.
8004 (cplus_language::lookup_transparent_type): New member function.
8005 (asm_language_data): Delete la_lookup_transparent_type
8006 initializer.
8007 (minimal_language_data): Likewise.
8008 * d-lang.c (d_language_data): Likewise.
8009 * f-lang.c (f_language_data): Likewise.
8010 * go-lang.c (go_language_data): Likewise.
8011 * language.c (unknown_language_data): Likewise.
8012 (auto_language_data): Likewise.
8013 * language.h (struct language_data): Delete
8014 la_lookup_transparent_type field.
8015 (language_defn::lookup_transparent_type): New member function.
8016 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8017 initializer.
8018 * objc-lang.c (objc_language_data): Likewise.
8019 * opencl-lang.c (opencl_language_data): Likewise.
8020 * p-lang.c (pascal_language_data): Likewise.
8021 * rust-lang.c (rust_language_data): Likewise.
8022 * symtab.c (symbol_matches_domain): Update call.
8023
1fb314aa
AB
80242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8025
8026 * ada-lang.c (ada_language_arch_info): Delete function, move
8027 implementation to...
8028 (ada_language::language_arch_info): ...here, a new member
8029 function.
8030 (ada_language_data): Delete la_language_arch_info.
8031 * c-lang.c (c_language_data): Likewise.
8032 (c_language::language_arch_info): New member function.
8033 (cplus_language_arch_info): Delete function, move
8034 implementation to...
8035 (cplus_language::language_arch_info): ...here, a new member
8036 function.
8037 (cplus_language_data): Delete la_language_arch_info.
8038 (asm_language_data): Likewise.
8039 (asm_language::language_arch_info): New member function.
8040 (minimal_language_data): Delete la_language_arch_info.
8041 (minimal_language::language_arch_info): New member function.
8042 * d-lang.c (d_language_arch_info): Delete function, move
8043 implementation to...
8044 (d_language::language_arch_info): ...here, a new member
8045 function.
8046 (d_language_data): Delete la_language_arch_info.
8047 * f-lang.c (f_language_arch_info): Delete function, move
8048 implementation to...
8049 (f_language::language_arch_info): ...here, a new member
8050 function.
8051 (f_language_data): Delete la_language_arch_info.
8052 * go-lang.c (go_language_arch_info): Delete function, move
8053 implementation to...
8054 (go_language::language_arch_info): ...here, a new member
8055 function.
8056 (go_language_data): Delete la_language_arch_info.
8057 * language.c (unknown_language_data): Likewise.
8058 (unknown_language::language_arch_info): New member function.
8059 (auto_language_data): Delete la_language_arch_info.
8060 (auto_language::language_arch_info): New member function.
8061 (language_gdbarch_post_init): Update call to
8062 la_language_arch_info.
8063 * language.h (language_data): Delete la_language_arch_info
8064 function pointer.
8065 (language_defn::language_arch_info): New function.
8066 * m2-lang.c (m2_language_arch_info): Delete function, move
8067 implementation to...
8068 (m2_language::language_arch_info): ...here, a new member
8069 function.
8070 (m2_language_data): Delete la_language_arch_info.
8071 * objc-lang.c (objc_language_arch_info): Delete function, move
8072 implementation to...
8073 (objc_language::language_arch_info): ...here, a new member
8074 function.
8075 (objc_language_data): Delete la_language_arch_info.
8076 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8077 implementation to...
8078 (opencl_language::language_arch_info): ...here, a new member
8079 function.
8080 (opencl_language_data): Delete la_language_arch_info.
8081 * p-lang.c (pascal_language_arch_info): Delete function, move
8082 implementation to...
8083 (pascal_language::language_arch_info): ...here, a new member
8084 function.
8085 (pascal_language_data): Delete la_language_arch_info.
8086 * rust-lang.c (rust_language_arch_info): Delete function, move
8087 implementation to...
8088 (rust_language::language_arch_info): ...here, a new member
8089 function.
8090 (rust_language_data): Delete la_language_arch_info.
8091
48448202
AB
80922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8093
8094 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8095 initializer.
8096 * c-lang.c (c_language_data): Likewise.
8097 (cplus_language_data): Likewise.
8098 (cplus_language::pass_by_reference_info): New method.
8099 (asm_language_data): Delete la_pass_by_reference initializer.
8100 (minimal_language_data): Likewise.
8101 * cp-abi.c (cp_pass_by_reference): Remove use of
8102 default_pass_by_reference.
8103 * d-lang.c (d_language_data): Likewise.
8104 * f-lang.c (f_language_data): Likewise.
8105 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8106 default_pass_by_reference.
8107 * go-lang.c (go_language_data): Likewise.
8108 * language.c (language_pass_by_reference): Update.
8109 (default_pass_by_reference): Delete.
8110 (unknown_language_data): Delete la_pass_by_reference
8111 initializer.
8112 (auto_language_data): Likewise.
8113 * language.h (struct language_data): Delete la_pass_by_reference
8114 field.
8115 (language_defn::pass_by_reference_info): New member function.
8116 (default_pass_by_reference): Delete declaration.
8117 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8118 initializer.
8119 * objc-lang.c (objc_language_data): Likewise.
8120 * opencl-lang.c (opencl_language_data): Likewise.
8121 * p-lang.c (pascal_language_data): Likewise.
8122 * rust-lang.c (rust_language_data): Likewise.
8123
15e5fd35
AB
81242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8125
8126 * ada-lang.c (ada_read_var_value): Delete function, move
8127 implementation to...
8128 (ada_language::read_var_value): ...here.
8129 (ada_language_data): Delete la_read_var_value initializer.
8130 * c-lang.c (c_language_data): Likewise.
8131 (cplus_language_data): Likewise.
8132 (minimal_language_data): Likewise.
8133 * d-lang.c (d_language_data): Likewise.
8134 * f-lang.c (f_language_data): Likewise.
8135 * findvar.c (default_read_var_value): Rename to...
8136 (language_defn::read_var_value): ...this.
8137 * findvar.c (read_var_value): Update header comment, and change to
8138 call member function instead of function pointer.
8139 * go-lang.c (go_language_data): Likewise.
8140 * language.c (unknown_language_data): Delete la_read_var_value
8141 initializer.
8142 (auto_language_data): Likewise.
8143 * language.h (struct language_data): Delete la_read_var_value
8144 field.
8145 (language_defn::read_var_value): New member function.
8146 (default_read_var_value): Delete declaration.
8147 * m2-lang.c (m2_language_data): Delete la_read_var_value
8148 initializer.
8149 * objc-lang.c (objc_language_data): Likewise.
8150 * opencl-lang.c (opencl_language_data): Likewise.
8151 * p-lang.c (pascal_language_data): Likewise.
8152 * rust-lang.c (rust_language_data): Likewise.
8153 * value.h (default_read_var_value): Delete declaration.
8154
5bd40f2a
AB
81552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8156
8157 * ada-lang.c (ada_print_array_index): Delete function, move
8158 implementation to...
8159 (ada_language::print_array_index): ...here.
8160 (ada_language_data): Delete la_print_array_index initializer.
8161 * c-lang.c (c_language_data): Likewise.
8162 (cplus_language_data): Likewise.
8163 (minimal_language_data): Likewise.
8164 * d-lang.c (d_language_data): Likewise.
8165 * f-lang.c (f_language_data): Likewise.
8166 * go-lang.c (go_language_data): Likewise.
8167 * language.c (default_print_array_index): Delete function, move
8168 implementation to...
8169 (language_defn::print_array_index): ...here.
8170 (unknown_language_data): Delete la_print_array_index initializer.
8171 (auto_language_data): Likewise.
8172 * language.h (struct language_data): Delete la_print_array_index
8173 field.
8174 (language_defn::print_array_index): New member function.
8175 (LA_PRINT_ARRAY_INDEX): Update.
8176 (default_print_array_index): Delete declaration.
8177 * m2-lang.c (m2_language_data): Delete la_print_array_index
8178 initializer.
8179 * objc-lang.c (objc_language_data): Likewise.
8180 * opencl-lang.c (opencl_language_data): Likewise.
8181 * p-lang.c (pascal_language_data): Likewise.
8182 * rust-lang.c (rust_language_data): Likewise.
8183
0874fd07
AB
81842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8185
8186 * gdb/ada-lang.c (ada_language_defn): Convert to...
8187 (ada_language_data): ...this.
8188 (class ada_language): New class.
8189 (ada_language_defn): New static global.
8190 * gdb/c-lang.c (c_language_defn): Convert to...
8191 (c_language_data): ...this.
8192 (class c_language): New class.
8193 (c_language_defn): New static global.
8194 (cplus_language_defn): Convert to...
8195 (cplus_language_data): ...this.
8196 (class cplus_language): New class.
8197 (cplus_language_defn): New static global.
8198 (asm_language_defn): Convert to...
8199 (asm_language_data): ...this.
8200 (class asm_language): New class.
8201 (asm_language_defn): New static global.
8202 (minimal_language_defn): Convert to...
8203 (minimal_language_data): ...this.
8204 (class minimal_language): New class.
8205 (minimal_language_defn): New static global.
8206 * gdb/d-lang.c (d_language_defn): Convert to...
8207 (d_language_data): ...this.
8208 (class d_language): New class.
8209 (d_language_defn): New static global.
8210 * gdb/f-lang.c (f_language_defn): Convert to...
8211 (f_language_data): ...this.
8212 (class f_language): New class.
8213 (f_language_defn): New static global.
8214 * gdb/go-lang.c (go_language_defn): Convert to...
8215 (go_language_data): ...this.
8216 (class go_language): New class.
8217 (go_language_defn): New static global.
8218 * gdb/language.c (unknown_language_defn): Remove declaration.
8219 (current_language): Initialize to nullptr, real initialization is
8220 moved to _initialize_language.
8221 (languages): Delete global.
8222 (language_defn::languages): Define.
8223 (set_language_command): Use language_defn::languages.
8224 (set_language): Likewise.
8225 (range_error): Likewise.
8226 (language_enum): Likewise.
8227 (language_def): Likewise.
8228 (add_set_language_command): Use language_def::languages for the
8229 language list, and language_def to lookup language pointers.
8230 (skip_language_trampoline): Use language_defn::languages.
8231 (unknown_language_defn): Convert to...
8232 (unknown_language_data): ...this.
8233 (class unknown_language): New class.
8234 (unknown_language_defn): New static global.
8235 (auto_language_defn): Convert to...
8236 (auto_language_data): ...this.
8237 (class auto_language): New class.
8238 (auto_language_defn): New static global.
8239 (language_gdbarch_post_init): Use language_defn::languages.
8240 (_initialize_language): Initialize current_language.
8241 * gdb/language.h (struct language_defn): Rename to...
8242 (struct language_data): ...this.
8243 (struct language_defn): New.
8244 (auto_language_defn): Delete.
8245 (unknown_language_defn): Delete.
8246 (minimal_language_defn): Delete.
8247 (ada_language_defn): Delete.
8248 (asm_language_defn): Delete.
8249 (c_language_defn): Delete.
8250 (cplus_language_defn): Delete.
8251 (d_language_defn): Delete.
8252 (f_language_defn): Delete.
8253 (go_language_defn): Delete.
8254 (m2_language_defn): Delete.
8255 (objc_language_defn): Delete.
8256 (opencl_language_defn): Delete.
8257 (pascal_language_defn): Delete.
8258 (rust_language_defn): Delete.
8259 * gdb/m2-lang.c (m2_language_defn): Convert to...
8260 (m2_language_data): ...this.
8261 (class m2_language): New class.
8262 (m2_language_defn): New static global.
8263 * gdb/objc-lang.c (objc_language_defn): Convert to...
8264 (objc_language_data): ...this.
8265 (class objc_language): New class.
8266 (objc_language_defn): New static global.
8267 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8268 (opencl_language_data): ...this.
8269 (class opencl_language): New class.
8270 (opencl_language_defn): New static global.
8271 * gdb/p-lang.c (pascal_language_defn): Convert to...
8272 (pascal_language_data): ...this.
8273 (class pascal_language): New class.
8274 (pascal_language_defn): New static global.
8275 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8276 language pointer, update comment format.
8277 * gdb/rust-lang.c (rust_language_defn): Convert to...
8278 (rust_language_data): ...this.
8279 (class rust_language): New class.
8280 (rust_language_defn): New static global.
8281
1313c56e
AB
82822020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8283
8284 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8285 member variable.
8286 <m_stmt_at_address>: New member variable.
8287 (lnp_state_machine::record_line): Don't record some lines, update
8288 tracking of is_stmt at the same address.
8289 (lnp_state_machine::lnp_state_machine): Initialise new member
8290 variables.
8291
b7ed9f3d
ST
82922020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8293
8294 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8295 "-include gnu-nat-mig.h".
8296 * gnu-nat-mig.h: New file.
8297 * gnu-nat.c: Include "gnu-nat-mig.h".
8298 (exc_server, msg_reply_server, notify_server,
8299 process_reply_server): Remove declarations.
8300
14a8ad62
ST
83012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8302
8303 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8304 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8305 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8306 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8307 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8308 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8309 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8310 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8311 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8312 to gnu_nat_target class.
8313 * gnu-nat.c: Likewise.
8314 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8315 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8316 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8317 object.
8318 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8319 instead of `gnu_target'.
8320
0af5e106
ST
83212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8322
8323 * i386-gnu-tdep.c: Include "gdbcore.h"
8324 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8325 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8326 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8327 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8328 i386_gnu_sigcontext_addr): New functions
8329 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8330 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8331 tdep.
8332
078f2fc9
ST
83332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8334
8335 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8336 before fork_inferior call. Avoid calling it if target_is_pushed returns
8337 true.
8338
53dff92c
ST
83392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8340
8341 * gnu-nat.h (gnu_target): New variable declaration.
8342 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8343 gnu_target.
8344 * gnu-nat.c (gnu_target): New variable.
8345 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8346 add_thread_silent, and add_thread calls.
8347 (gnu_nat_target::create_inferior): Pass gnu_target to
8348 add_thread_silent, thread_change_ptid call.
8349 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8350 call.
8351
5a8b8627
ST
83522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8353
8354 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8355 (gnu_nat_target::find_memory_regions): Remove unused
8356 `old_address' variable.
8357
366f550a
ST
83582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8359
8360 * gnu-nat.c: Include "gdbarch.h".
8361
f14871bf
ST
83622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8363
8364 * reply_mig_hack.awk (Error return): Cast function through
8365 void *, to bypass compiler function call check.
8366
c6887cfb
ST
83672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8368
8369 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8370 $(srcdir)/reply_mig_hack.awk.
8371
6930bffe
ST
83722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8373
8374 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8375
112c22ed
JG
83762020-05-30 Jonny Grant <jg@jguk.org>
8377
8378 * configure.ac (ACX_BUGURL): change bug URL to https.
8379
f68f85b5
PA
83802020-05-30 Pedro Alves <palves@redhat.com>
8381
8382 * cp-support.c (replace_typedefs_template): New.
8383 (replace_typedefs_qualified_name): Handle
8384 DEMANGLE_COMPONENT_TEMPLATE.
8385
976ca316
SM
83862020-05-29 Simon Marchi <simon.marchi@efficios.com>
8387
8388 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8389 dwarf2/index-cache.h, dwarf2/index-write.c,
8390 dwarf2/index-write.h, dwarf2/line-header.c,
8391 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8392 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8393 variables and fields from `dwarf2_per_objfile` to just
8394 `per_objfile` throughout.
8395
989ade05
SM
83962020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8397
8398 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8399 <push_dwarf_reg_entry_value>: Add comment.
8400
c47bae85
KB
84012020-05-28 Kevin Buettner <kevinb@redhat.com>
8402 Keith Seitz <keiths@redhat.com>
8403
8404 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8405 instead of PyEval_ReleaseLock.
8406 (class gdbpy_gil): Move to earlier in file.
8407 (finalize_python): Set gdb_python_initialized.
8408 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8409 when not initialized.
8410
44486dcf
SM
84112020-05-28 Simon Marchi <simon.marchi@efficios.com>
8412
8413 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8414 <push_dwarf_reg_entry_value>: Remove assert. Override
8415 per_objfile with caller_per_objfile.
8416
f030440d
TV
84172020-05-28 Tom de Vries <tdevries@suse.de>
8418
8419 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8420 PR gold/15646 workaround to symbol kind "type".
8421
f0fbb768
TT
84222020-05-27 Tom Tromey <tromey@adacore.com>
8423
8424 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8425
af0b2a3e
TT
84262020-05-27 Tom Tromey <tromey@adacore.com>
8427
8428 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8429 Use htab_find_with_hash.
8430 <add_abbrev>: Remove "abbrev_number" parameter.
8431 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8432 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8433 (hash_abbrev): Add comment.
8434 (abbrev_table::lookup_abbrev): Move to header file.
8435 (abbrev_table::read): Update.
8436
7d00ffec
TT
84372020-05-27 Tom Tromey <tromey@adacore.com>
8438
8439 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8440 method.
8441 <canonical_name>: New member.
8442 <raw_name>: Rename from "name".
8443 (partial_die_info): Initialize canonical_name.
8444 (scan_partial_symbols): Check raw_name.
8445 (partial_die_parent_scope, partial_die_full_name)
8446 (add_partial_symbol, add_partial_subprogram)
8447 (add_partial_enumeration, load_partial_dies): Use "name" method.
8448 (partial_die_info::name): New method.
8449 (partial_die_info::read, guess_partial_die_structure_name)
8450 (partial_die_info::fixup): Update.
8451
697bba18
TT
84522020-05-27 Tom Tromey <tromey@adacore.com>
8453
8454 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8455 <get_ref_die_offset>: Inline.
8456 <get_ref_die_offset_complaint>: New method.
8457 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8458 (attribute::get_ref_die_offset_complaint): Rename from
8459 get_ref_die_offset. Just issue complaint.
8460
c17ace43
HD
84612020-05-27 Hannes Domani <ssbssa@yahoo.de>
8462
8463 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8464
96445f0b
HD
84652020-05-27 Hannes Domani <ssbssa@yahoo.de>
8466
8467 * exec.c (exec_file_attach): Use errno value of first openp failure.
8468
ac637ec3
HD
84692020-05-27 Hannes Domani <ssbssa@yahoo.de>
8470
8471 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8472 Don't close thread handle.
8473
17ee85fc
TT
84742020-05-27 Tom Tromey <tom@tromey.com>
8475 Simon Marchi <simon.marchi@efficios.com>
8476
8477 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8478 shared_ptr.
8479 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8480 member.
8481 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8482 dwarf2_per_bfd_objfile_data_key>: New globals.
8483 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8484 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8485 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8486 shared.
8487 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8488 short-circuit when sharing.
8489 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8490 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8491
39b16f87
SM
84922020-05-27 Simon Marchi <simon.marchi@efficios.com>
8493
8494 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8495 to...
8496 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8497 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8498
fcf23d5b
SM
84992020-05-27 Simon Marchi <simon.marchi@efficios.com>
8500
8501 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8502 build_name_components, find_name_components_bounds>:
8503 Add per_objfile parameter.
8504 (struct mapped_index) <symbol_name_at>: Likewise.
8505 (struct mapped_debug_names): Remove constructor.
8506 <dwarf2_per_objfile>: Remove field.
8507 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8508 (mapped_index_base::find_name_components_bounds,
8509 mapped_index_base::build_name_components,
8510 dw2_expand_symtabs_matching_symbol): Likewise.
8511 (class mock_mapped_index) <symbol_name_at>: Likewise.
8512 (check_match): Likewise.
8513 (check_find_bounds_finds): Likewise.
8514 (test_mapped_index_find_name_component_bounds): Update.
8515 (CHECK_MATCH): Update.
8516 (dw2_expand_symtabs_matching): Update.
8517 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8518 per_objfile parameter.
8519 <find_vec_in_debug_names>: Likewise.
8520 <m_per_objfile>: New field.
8521 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8522 parameter.
8523 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8524 (dw2_debug_names_iterator::next): Update.
8525 (dw2_debug_names_lookup_symbol): Update.
8526 (dw2_debug_names_expand_symtabs_for_function): Update.
8527 (dw2_debug_names_map_matching_symbols): Update.
8528 (dw2_debug_names_expand_symtabs_matching): Update.
8529 (dwarf2_read_debug_names): Update.
8530
7188ed02
SM
85312020-05-27 Simon Marchi <simon.marchi@efficios.com>
8532
8533 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8534 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8535 move to dwarf2_per_objfile.
8536 <read_in_chain>: Remove.
8537 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8538 remove_all_cus, age_comp_units>: New methods.
8539 <m_dwarf2_cus>: New member.
8540 (struct dwarf2_per_cu_data) <cu>: Remove.
8541 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8542 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8543 moved to methods of dwarf2_per_objfile.
8544 (dwarf2_clear_marks): Remove.
8545 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8546 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8547 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8548 (dwarf2_per_objfile::remove_all_cus): New.
8549 (class free_cached_comp_units) <~free_cached_comp_units>:
8550 Update.
8551 (load_cu): Update.
8552 (dw2_do_instantiate_symtab): Adjust.
8553 (fill_in_sig_entry_from_dwo_entry): Adjust.
8554 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8555 (cutu_reader::cutu_reader): Likewise.
8556 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8557 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8558 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8559 and dwarf2_per_objfile::age_comp_units.
8560 (load_partial_comp_unit): Update.
8561 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8562 (process_queue): Likewise.
8563 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8564 backlink.
8565 (dwarf2_read_addr_index): Likewise.
8566 (follow_die_offset): Likewise.
8567 (dwarf2_fetch_die_loc_sect_off): Likewise.
8568 (dwarf2_fetch_constant_bytes): Likewise.
8569 (dwarf2_fetch_die_type_sect_off): Likewise.
8570 (follow_die_sig_1): Likewise.
8571 (load_full_type_unit): Likewise.
8572 (read_signatured_type): Likewise.
8573 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8574 (dwarf2_cu::~dwarf2_cu): Remove.
8575 (dwarf2_per_objfile::get_cu): New.
8576 (dwarf2_per_objfile::set_cu): New.
8577 (age_cached_comp_units): Rename to...
8578 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8579 to std::unordered_map.
8580 (free_one_cached_comp_unit): Rename to...
8581 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8582 to std::unordered_map.
8583 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8584 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8585 a dwarf2_per_objfile in data.
8586 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8587 (dwarf2_clear_marks): Remove.
8588
2e671100
SM
85892020-05-27 Simon Marchi <simon.marchi@efficios.com>
8590
8591 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8592 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8593 (init_tu_and_read_dwo_dies): Likewise.
8594 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8595 (cutu_reader::cutu_reader): Likewise.
8596 (load_partial_comp_unit): Likewise.
8597 (process_psymtab_comp_unit): Update.
8598 (build_type_psymtabs_1): Update.
8599 (process_skeletonless_type_unit): Update.
8600 (load_full_comp_unit): Update.
8601 (find_partial_die): Update.
8602 (dwarf2_read_addr_index): Update.
8603 (read_signatured_type): Update.
8604
2e6a9f79
SM
86052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8606
8607 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8608 m_header_read_in>: New fields.
8609 <get_header>: New method.
8610 * dwarf2/read.c (per_cu_header_read_in): Remove.
8611 (dwarf2_per_cu_data::get_header): New.
8612 (dwarf2_per_cu_data::addr_size): Update.
8613 (dwarf2_per_cu_data::offset_size): Update.
8614 (dwarf2_per_cu_data::ref_addr_size): Update.
8615
1b555f17
SM
86162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8617
8618 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8619 (dw2_do_instantiate_symtab): Update.
8620 (queue_and_load_all_dwo_tus): Change parameter from
8621 dwarf2_per_cu_data to dwarf2_cu.
8622 (dwarf2_fetch_die_loc_sect_off): Update.
8623 (dwarf2_fetch_constant_bytes): Update.
8624 (dwarf2_fetch_die_type_sect_off): Update.
8625
8fc0b21d
SM
86262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8627
8628 * dwarf2/read.c (process_full_comp_unit,
8629 process_full_type_unit): Remove per_cu, per_objfile paramters.
8630 Add dwarf2_cu parameter.
8631 (process_queue): Update.
8632
168c9250
SM
86332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8634
8635 * dwarf2/read.c (create_cu_from_index_list): Replace
8636 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8637 (create_cus_from_index_list): Likewise.
8638 (create_cus_from_index): Likewise.
8639 (create_signatured_type_table_from_index): Likewise.
8640 (create_cus_from_debug_names_list): Likewise.
8641 (create_cus_from_debug_names): Likewise.
8642 (dwarf2_read_gdb_index): Update.
8643 (dwarf2_read_debug_names): Update.
8644
e286671b
TT
86452020-05-27 Tom Tromey <tom@tromey.com>
8646 Simon Marchi <simon.marchi@efficios.com>
8647
8648 * dwarf2/read.h (struct dwarf2_per_objfile)
8649 <get_type_for_signatured_type, set_type_for_signatured_type>:
8650 New methods.
8651 <m_type_map>: New member.
8652 (struct signatured_type) <type>: Remove.
8653 * dwarf2/read.c
8654 (dwarf2_per_objfile::get_type_for_signatured_type,
8655 dwarf2_per_objfile::set_type_for_signatured_type): New.
8656 (get_signatured_type): Use new methods.
8657
8adb8487
TT
86582020-05-27 Tom Tromey <tom@tromey.com>
8659 Simon Marchi <simon.marchi@efficios.com>
8660
8661 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8662 (struct dwarf2_per_objfile) <type_units>: New member.
8663 <get_type_unit_group_unshareable>: New method.
8664 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8665 num_symtabs, symtabs>: Remove; move to
8666 type_unit_group_unshareable.
8667 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8668 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8669 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8670
127bbf4b
SM
86712020-05-27 Simon Marchi <simon.marchi@efficios.com>
8672
8673 * dwarf2/read.h (struct dwarf2_per_cu_data):
8674 <dwarf2_per_objfile>: Remove.
8675 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8676 dwarf2_per_objfile.
8677 (create_signatured_type_table_from_index): Likewise.
8678 (create_signatured_type_table_from_debug_names): Likewise.
8679 (create_debug_type_hash_table): Likewise.
8680 (fill_in_sig_entry_from_dwo_entry): Likewise.
8681 (create_type_unit_group): Likewise.
8682 (read_comp_units_from_section): Likewise.
8683 (create_cus_hash_table): Likewise.
8684
f6e649dd
SM
86852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8686
8687 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8688 dwarf2_per_cu_data::dwarf2_per_objfile.
8689 (compute_compunit_symtab_includes): Likewise.
8690 (dwarf2_cu::start_symtab): Likewise.
8691
aa66c379
SM
86922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8693
8694 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8695 parameter.
8696 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8697 (read_namespace_alias): Update.
8698 (lookup_die_type): Update.
8699 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8700 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8701 Update.
8702 (disassemble_dwarf_expression): Update.
8703
120ce1b5
SM
87042020-05-27 Simon Marchi <simon.marchi@efficios.com>
8705
8706 * dwarf2/read.h (struct dwarf2_queue_item): Add
8707 dwarf2_per_objfile parameter, assign new parameter.
8708 <per_objfile>: New field.
8709 * dwarf2/read.c (free_one_cached_comp_unit): Add
8710 dwarf2_per_objfile parameter.
8711 (queue_comp_unit): Likewise.
8712 (dw2_do_instantiate_symtab): Update.
8713 (process_psymtab_comp_unit): Update.
8714 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8715 (process_imported_unit_die): Update.
8716 (queue_and_load_dwo_tu): Update.
8717 (follow_die_offset): Update.
8718 (follow_die_sig_1): Update.
8719
9f47c707
SM
87202020-05-27 Simon Marchi <simon.marchi@efficios.com>
8721
8722 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8723 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8724 (read_call_site_scope): Assign per_objfile.
8725 (dwarf2_per_cu_data::objfile): Remove.
8726 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8727 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8728 dwarf2_per_objfile parameter.
8729 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8730 dwarf2_per_objfile parameter.
8731 (dwarf_expr_reg_to_entry_parameter): Add output
8732 dwarf2_per_objfile parameter.
8733 (locexpr_get_frame_base): Update.
8734 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8735 <push_dwarf_reg_entry_value>: Update.
8736 <call_site_to_target_addr>: Update.
8737 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8738 parameter.
8739 (value_of_dwarf_reg_entry): Update.
8740 (rw_pieced_value): Update.
8741 (indirect_synthetic_pointer): Update.
8742 (dwarf2_evaluate_property): Update.
8743 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8744 parameter.
8745 (locexpr_read_variable): Update.
8746 (locexpr_get_symbol_read_needs): Update.
8747 (loclist_read_variable): Update.
8748
14095eb3
SM
87492020-05-27 Simon Marchi <simon.marchi@efficios.com>
8750
8751 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8752 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8753 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8754 parameter.
8755 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8756 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8757 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8758 parameter.
8759 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8760 sect_variable_value): Add dwarf2_per_objfile parameter.
8761 (class dwarf_evaluate_loc_desc) <dwarf_call,
8762 dwarf_variable_value>: Update.
8763 (fetch_const_value_from_synthetic_pointer): Add
8764 dwarf2_per_objfile parameter.
8765 (fetch_const_value_from_synthetic_pointer): Update.
8766 (coerced_pieced_ref): Update.
8767 (class symbol_needs_eval_context) <dwarf_call,
8768 dwarf_variable_value>: Update.
8769 (dwarf2_compile_expr_to_ax): Update.
8770
3c3cd3d4
SM
87712020-05-27 Simon Marchi <simon.marchi@efficios.com>
8772
8773 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8774 parameter.
8775 (dwarf2_evaluate_loc_desc_full): Update.
8776
82ca3f51
SM
87772020-05-27 Simon Marchi <simon.marchi@efficios.com>
8778
8779 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8780 parameter.
8781 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8782 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8783 dwarf2_per_objfile parameter.
8784 (decode_debug_loc_dwo_addresses): Likewise.
8785 (dwarf2_find_location_expression): Update.
8786 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8787 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8788 parameter.
8789 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8790 parameter.
8791 (locexpr_describe_location_1): Likewise.
8792 (locexpr_describe_location): Update.
8793
4b167ea1
SM
87942020-05-27 Simon Marchi <simon.marchi@efficios.com>
8795
8796 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8797 Remove.
8798 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8799 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8800 (dwarf2_compile_property_to_c): Update.
8801 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8802 use text offset from objfile.
8803 (locexpr_tracepoint_var_ref): Update.
8804 (locexpr_generate_c_location): Update.
8805 (loclist_describe_location): Update.
8806 (loclist_tracepoint_var_ref): Update.
8807 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8808 dwarf2_per_objfile parameter.
8809 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8810 use text offset from objfile.
8811 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8812
89b07335
SM
88132020-05-27 Simon Marchi <simon.marchi@efficios.com>
8814
8815 * dwarf2/expr.h (struct dwarf_expr_context)
8816 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8817 <offset>: Remove.
8818 <per_objfile>: New member.
8819 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8820 dwarf2_per_objfile parameter. Don't set offset, set
8821 per_objfile.
8822 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8823 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8824 a dwarf2_per_objfile object instead of an offset.
8825 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8826 constructor.
8827 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8828 to dwarf2_expr_executor constructor. Don't set offset.
8829 (dwarf2_fetch_cfa_info): Update.
8830 (struct dwarf2_frame_cache) <text_offset>: Remove.
8831 <per_objfile>: New field.
8832 (dwarf2_frame_cache): Update.
8833 (dwarf2_frame_prev_register): Update.
8834 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8835 <dwarf_evaluate_loc_desc>: Add constructor.
8836 (dwarf2_evaluate_loc_desc_full): Update.
8837 (dwarf2_locexpr_baton_eval): Update.
8838 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8839 Add constructor.
8840 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8841
293e7e51
SM
88422020-05-27 Simon Marchi <simon.marchi@efficios.com>
8843
8844 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8845 addr_sized_int_type>: Move to dwarf2_cu.
8846 <int_type>: Move to dwarf2_per_objfile.
8847 (struct dwarf2_per_objfile) <int_type>: Move here.
8848 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8849 addr_sized_int_type>: Move here.
8850 (read_func_scope): Update.
8851 (read_array_type): Update.
8852 (read_tag_string_type): Update.
8853 (attr_to_dynamic_prop): Update.
8854 (dwarf2_per_cu_data::int_type): Rename to...
8855 (dwarf2_per_objfile::int_type): ... this.
8856 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8857 (dwarf2_cu::addr_sized_int_type): ... this.
8858 (read_subrange_type): Update.
8859 (dwarf2_per_cu_data::addr_type): Rename to...
8860 (dwarf2_cu::addr_type): ... this.
8861 (set_die_type): Update.
8862
64874a40
SM
88632020-05-27 Simon Marchi <simon.marchi@efficios.com>
8864
8865 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8866 data through per_cu->cu.
8867
4ab09049
SM
88682020-05-27 Simon Marchi <simon.marchi@efficios.com>
8869
8870 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8871 dwarf2_per_cu_data parameter fo dwarf2_cu.
8872 (lookup_dwo_type_unit): Likewise.
8873 (read_cutu_die_from_dwo): Likewise.
8874 (lookup_dwo_unit): Likewise.
8875 (open_and_init_dwo_file): Likewise.
8876 (lookup_dwo_cutu): Likewise.
8877 (lookup_dwo_comp_unit): Likewise.
8878 (lookup_dwo_type_unit): Likewise.
8879 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8880 (cutu_reader::cutu_reader): Update.
8881
47b14e86
SM
88822020-05-27 Simon Marchi <simon.marchi@efficios.com>
8883
8884 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8885 parameter.
8886 (process_full_type_unit): Likewise.
8887 (process_queue): Update.
8888
43182c09
SM
88892020-05-27 Simon Marchi <simon.marchi@efficios.com>
8890
8891 * dwarf2/read.c (recursively_compute_inclusions): Add
8892 dwarf2_per_objfile parameter.
8893 (compute_compunit_symtab_includes): Likewise.
8894 (process_cu_includes): Update.
8895
7aa104c4
SM
88962020-05-27 Simon Marchi <simon.marchi@efficios.com>
8897
8898 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8899 parameter.
8900 (create_type_unit_group): Update.
8901 (process_psymtab_comp_unit_reader): Update.
8902 (build_type_psymtabs_reader): Update.
8903
e3beb21d
SM
89042020-05-27 Simon Marchi <simon.marchi@efficios.com>
8905
8906 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8907 object through m_this_cu->cu.
8908
d460f660
SM
89092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8910
8911 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8912 the info parameter.
8913 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8914
ab432490
SM
89152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8916
8917 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8918 per_objfile parameter.
8919 (load_full_type_unit): Add per_objfile parameter.
8920 (read_signatured_type): Likewise.
8921 (load_full_comp_unit): Likewise.
8922 (load_cu): Likewise.
8923 (dw2_do_instantiate_symtab): Likewise.
8924 (dw2_get_file_names): Likewise.
8925 (dw2_map_symtabs_matching_filename): Update.
8926 (dw_expand_symtabs_matching_file_matcher): Update.
8927 (dw2_map_symbol_filenames): Update.
8928 (process_psymtab_comp_unit): Add per_objfile parameter.
8929 (build_type_psymtabs_1): Update.
8930 (process_skeletonless_type_unit): Update.
8931 (dwarf2_build_psymtabs_hard): Update.
8932 (load_partial_comp_unit): Add per_objfile parameter.
8933 (scan_partial_symbols): Update.
8934 (load_full_comp_unit): Add per_objfile parameter.
8935 (process_imported_unit_die): Update.
8936 (create_cus_hash_table): Update.
8937 (find_partial_die): Update.
8938 (dwarf2_read_addr_index): Update.
8939 (follow_die_offset): Update.
8940 (dwarf2_fetch_die_loc_sect_off): Update.
8941 (dwarf2_fetch_constant_bytes): Update.
8942 (dwarf2_fetch_die_type_sect_off): Update.
8943 (follow_die_sig_1): Update.
8944 (load_full_type_unit): Add per_objfile parameter.
8945 (read_signatured_type): Likewise.
8946
313bad1b
SM
89472020-05-27 Simon Marchi <simon.marchi@efficios.com>
8948
8949 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8950 of objfile_name.
8951
c3699833
SM
89522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8953
8954 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8955 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8956 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8957 field.
8958 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8959 (create_cus_from_index): Update.
8960 (dwarf2_read_gdb_index): Update.
8961 (create_cus_from_debug_names): Update.
8962 (dwarf2_read_debug_names): Update.
8963 (get_abbrev_section_for_cu): Update.
8964 (create_all_comp_units): Update.
8965 (read_attribute_value): Update.
8966 (get_debug_line_section): Update.
8967 * dwarf2/index-cache.c (index_cache::store): Update.
8968 * dwarf2/index-write.c (save_gdb_index_command): Update.
8969 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8970
1859c670
SM
89712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8972
8973 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8974 member.
8975 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8976 dwarf2_per_cu_data::per_bfd.
8977 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8978 (create_type_unit_group): Likewise.
8979 (queue_comp_unit): Remove reference to
8980 per_cu->dwarf2_per_objfile.
8981 (maybe_queue_comp_unit): Likewise.
8982 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8983 (create_cus_hash_table): Assign new field.
8984
5e22e966
SM
89852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8986
8987 * dwarf2/read.c: Replace
8988 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8989 dwarf2_cu->per_objfile throughout.
8990
97a1449a
SM
89912020-05-27 Simon Marchi <simon.marchi@efficios.com>
8992
8993 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8994 parameter, don't use per_cu->dwarf2_per_objfile.
8995 (dw2_instantiate_symtab): Likewise.
8996 (dw2_find_last_source_symtab): Update.
8997 (dw2_map_expand_apply): Update.
8998 (dw2_lookup_symbol): Update.
8999 (dw2_expand_symtabs_for_function): Update.
9000 (dw2_expand_all_symtabs): Update.
9001 (dw2_expand_symtabs_with_fullname): Update.
9002 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9003 don't use per_cu->dwarf2_per_objfile.
9004 (dw2_expand_marked_cus): Update.
9005 (dw2_find_pc_sect_compunit_symtab): Update.
9006 (dw2_debug_names_lookup_symbol): Update.
9007 (dw2_debug_names_expand_symtabs_for_function): Update.
9008 (dw2_debug_names_map_matching_symbols): Update.
9009 (dwarf2_psymtab::expand_psymtab): Update.
9010
9e021579
SM
90112020-05-27 Simon Marchi <simon.marchi@efficios.com>
9012
9013 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9014 <per_objfile>: New member.
9015 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9016 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9017 call to dwarf2_cu.
9018 (cutu_reader::cutu_reader): Update.
9019 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9020
ae090bdb
SM
90212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9022
9023 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9024 struct dwarf2_per_objfile.
9025 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9026 dwarf2_per_bfd.
9027 * dwarf2/read.c (set_die_type): Update.
9028 (get_die_type_at_offset): Update.
9029
af758d11
SM
90302020-05-27 Tom Tromey <tom@tromey.com>
9031 Simon Marchi <simon.marchi@efficios.com>
9032
9033 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9034 method.
9035 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9036 get_symtab, set_symtab>: New methods.
9037 <m_symtabs>: New field.
9038 (struct dwarf2_psymtab): Derive from partial_symtab.
9039 <readin_p, get_compunit_symtab>: Declare methods.
9040 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9041 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9042 New methods.
9043 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9044 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9045 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9046 (dw2_symtab_iter_next, dw2_print_stats)
9047 (dw2_expand_symtabs_with_fullname)
9048 (dw2_expand_symtabs_matching_one)
9049 (dw_expand_symtabs_matching_file_matcher)
9050 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9051 (dw2_debug_names_iterator::next)
9052 (dw2_debug_names_map_matching_symbols)
9053 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9054 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9055 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9056 New methods.
9057 (get_compunit_symtab, process_full_comp_unit)
9058 (process_full_type_unit): Update.
9059 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9060
5989a64e
SM
90612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9062
9063 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9064 then introduce a new dwarf2_per_objfile type.
9065 <read_line_string>: Move to the new dwarf2_per_objfile type.
9066 <objfile>: Likewise.
9067 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9068 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9069 dwarf2_per_objfile->per_bfd.
9070 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9071 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9072 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9073 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9074 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9075 (dwarf2_per_objfile::locate_sections): Rename to...
9076 (dwarf2_per_bfd::locate_sections): ... this.
9077 (dwarf2_per_objfile::get_cutu): Rename to...
9078 (dwarf2_per_bfd::get_cutu): ... this.
9079 (dwarf2_per_objfile::get_cu): Rename to...
9080 (dwarf2_per_bfd::get_cu): ... this.
9081 (dwarf2_per_objfile::get_tu): Rename to...
9082 (dwarf2_per_bfd::get_tu): ... this.
9083 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9084 (dwarf2_per_bfd::allocate_per_cu): ... this.
9085 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9086 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9087 (get_gdb_index_contents_ftype): Change parameter from
9088 dwarf2_per_objfile to dwarf2_per_bfd.
9089 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9090 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9091
a50264ba
TT
90922020-05-27 Tom Tromey <tom@tromey.com>
9093 Simon Marchi <simon.marchi@efficios.com>
9094
9095 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9096 (allocate_piece_closure): Set "per_objfile" member.
9097 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9098 (locexpr_describe_location, loclist_describe_location): Use new
9099 member.
9100 * dwarf2/read.c (read_call_site_scope)
9101 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9102 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9103 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9104 handle_data_member_location): Set per_objfile member.
9105 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9106 member.
9107 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9108
d3473f0c
TT
91092020-05-27 Tom Tromey <tom@tromey.com>
9110
9111 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9112 allocate_signatured_type>: Declare new methods.
9113 <m_num_psymtabs>: New member.
9114 (struct dwarf2_per_cu_data) <index>: New member.
9115 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9116 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9117 (create_cu_from_index_list): Use allocate_per_cu.
9118 (create_signatured_type_table_from_index)
9119 (create_signatured_type_table_from_debug_names)
9120 (create_debug_type_hash_table, add_type_unit)
9121 (read_comp_units_from_section): Use allocate_signatured_type.
9122
5717c425
TT
91232020-05-27 Tom Tromey <tom@tromey.com>
9124
9125 * psymtab.c (partial_map_expand_apply)
9126 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9127 (psym_lookup_global_symbol_language)
9128 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9129 (psym_print_stats, psym_expand_symtabs_for_function)
9130 (psym_map_symbol_filenames, psym_map_matching_symbols)
9131 (psym_expand_symtabs_matching)
9132 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9133 (maintenance_check_psymtabs): Update.
9134 * psympriv.h (struct partial_symtab) <readin_p,
9135 get_compunit_symtab>: Add objfile parameter.
9136 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9137 Likewise.
9138 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9139 get_compunit_symtab>: Likewise.
9140 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9141
45940949
TT
91422020-05-27 Tom Tromey <tom@tromey.com>
9143
9144 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9145 member.
9146 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9147 (create_cu_from_index_list)
9148 (create_signatured_type_table_from_index)
9149 (create_signatured_type_table_from_debug_names)
9150 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9151 (dwarf2_create_include_psymtab)
9152 (create_debug_type_hash_table, add_type_unit)
9153 (create_type_unit_group, read_comp_units_from_section)
9154 (dwarf2_compute_name, create_cus_hash_table)
9155 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9156 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9157 obstack.
9158 (dw2_get_real_path): Likewise. Change argument to
9159 dwarf2_per_objfile.
9160
f8c6d152
LM
91612020-05-27 Luis Machado <luis.machado@linaro.org>
9162
9163 PR tdep/26000
9164 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9165 for ldrd (immediate).
9166
e98d2e6d
PW
91672020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9168
9169 * command.h: Add comment giving the name of class_tui.
9170 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9171 create the fake command for the help for class_tui.
9172
53a47a3e
TT
91732020-05-26 Tom Tromey <tromey@adacore.com>
9174
9175 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9176 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9177 (val_atr): New function.
9178 (value_val_atr): Use it.
9179 * ada-valprint.c (print_optional_low_bound): Change low bound
9180 handling for enums.
9181 (val_print_packed_array_elements): Don't call discrete_position.
9182 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9183 discrete_position for enum types.
9184 * language.c (default_print_array_index): Change type.
9185 * language.h (struct language_defn) <la_print_array_index>: Add
9186 index_type parameter, change type of index_value.
9187 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9188 (default_print_array_index): Update.
9189 * valprint.c (maybe_print_array_index): Don't call
9190 value_from_longest. Update.
9191 (value_print_array_elements): Don't call discrete_position.
9192
0bc2354b
TT
91932020-05-26 Tom Tromey <tromey@adacore.com>
9194
9195 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9196 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9197
1218a4bf
CDA
91982020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9199
9200 PR gdb/13519
9201 * avr-tdep.c (avr_integer_to_address): Return data or code
9202 address accordingly to the second 'type' argument of the
9203 function.
9204
92651b1d
MW
92052020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9206
9207 * infcmd.c, inferior.h: (construct_inferior_arguments):
9208 Moved function from here to gdbsupport/common-inferior.{h,cc}
9209
0a4f5f8c
TT
92102020-05-23 Tom Tromey <tom@tromey.com>
9211
9212 Revert commit eca1f90c:
9213 * NEWS: Remove entry for completion styling.
9214 * completer.c (_rl_completion_prefix_display_length): Move
9215 declaration later.
9216 (gdb_fnprint): Revert.
9217 (gdb_display_match_list_1): Likewise.
9218 * cli/cli-style.c (completion_prefix_style)
9219 (completion_difference_style, completion_suffix_style): Remove.
9220 (_initialize_cli_style): Revert.
9221 * cli/cli-style.h (completion_prefix_style)
9222 (completion_difference_style, completion_suffix_style): Don't
9223 declare.
9224
e08bd6c5
PA
92252020-05-24 Pedro Alves <palves@redhat.com>
9226
9227 * symtab.c (completion_list_add_name): Return boolean indication
9228 of whether the symbol matched.
9229 (completion_list_add_symbol): Don't try to remove C++ aliases if
9230 the symbol didn't match in the first place.
9231 * symtab.h (completion_list_add_name): Return bool.
9232
ceacbf6e
SM
92332020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9234
9235 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9236 type::field.
9237
26f16254
JB
92382020-05-23 Joel Brobecker <brobecker@adacore.com>
9239
9240 GDB 9.2 released.
9241
eca1f90c
TT
92422020-05-23 Tom Tromey <tom@tromey.com>
9243
9244 * NEWS: Add entry for completion styling.
9245 * completer.c (_rl_completion_prefix_display_length): Move
9246 declaration earlier.
9247 (gdb_fnprint): Use completion_style.
9248 (gdb_display_match_list_1): Likewise.
9249 * cli/cli-style.c (completion_prefix_style)
9250 (completion_difference_style, completion_suffix_style): New
9251 globals.
9252 (_initialize_cli_style): Register new globals.
9253 * cli/cli-style.h (completion_prefix_style)
9254 (completion_difference_style, completion_suffix_style): Declare.
9255
51e2cfa2
PA
92562020-05-23 Pedro Alves <palves@redhat.com>
9257
9258 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9259 (parse_escape): Use ISDIGIT instead of isdigit.
9260 (puts_debug): Use gdb_isprint instead of isprint.
9261 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9262 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9263 ISSPACE instead of isspace.
9264 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9265 instead of isspace.
9266 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9267 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9268 instead of isxdigit and ISDIGIT instead of isdigit.
9269
80fc5e77
SM
92702020-05-22 Simon Marchi <simon.marchi@efficios.com>
9271
9272 * gdbtypes.h (struct type) <field>: New method.
9273 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9274 or type::field.
9275
3cabb6b0
SM
92762020-05-22 Simon Marchi <simon.marchi@efficios.com>
9277
9278 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9279 (TYPE_FIELDS): Use type::fields. Change all call sites that
9280 modify the propery to use type::set_fields instead.
9281
1f704f76
SM
92822020-05-22 Simon Marchi <simon.marchi@efficios.com>
9283
9284 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9285 type::num_fields instead.
9286
5e33d5f4
SM
92872020-05-22 Simon Marchi <simon.marchi@efficios.com>
9288
9289 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9290 methods.
9291 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9292 that modify the number of fields to use type::set_num_fields
9293 instead.
9294
9392ebb3
TT
92952020-05-22 Tom Tromey <tromey@adacore.com>
9296
9297 * compile/compile-object-load.h (munmap_list_free): Don't
9298 declare.
9299
7c13f4e8
AB
93002020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9301
9302 * annotate.c (annotate_source_line): Update return type, add call
9303 to update current symtab and line.
9304 * annotate.h (annotate_source_line): Update return type, and
9305 extend header comment.
9306 * source.c (info_line_command): Check annotation_level before
9307 calling annotate_source_line.
9308 * stack.c (print_frame_info): If calling annotate_source_line
9309 returns true, then don't print any other source line information.
9310
aa370940
SM
93112020-05-21 Simon Marchi <simon.marchi@efficios.com>
9312
9313 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9314
84d53fa9
SM
93152020-05-21 Simon Marchi <simon.marchi@efficios.com>
9316
9317 * coffread.c (patch_type): Remove NULL check before xfree.
9318 * corefile.c (set_gnutarget): Likewise.
9319 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9320 * exec.c (build_section_table): Likewise.
9321 * remote.c (remote_target::pass_signals): Likewise.
9322 * utils.c (n_spaces): Likewise.
9323 * cli/cli-script.c (document_command): Likewise.
9324 * i386-windows-tdep.c (core_process_module_section): Likewise.
9325 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9326
9d428aae
SM
93272020-05-20 Simon Marchi <simon.marchi@efficios.com>
9328
9329 * symfile.c (reread_symbols): Clear objfile's section_offsets
9330 vector and section indices, re-compute them by calling
9331 sym_offsets.
9332
250106a7
TT
93332020-05-20 Tom Tromey <tromey@adacore.com>
9334
9335 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9336 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9337
9a0bacfb
TV
93382020-05-20 Tom de Vries <tdevries@suse.de>
9339
9340 PR symtab/25833
9341 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9342
7b958a48
AM
93432020-05-20 Alan Modra <amodra@gmail.com>
9344
9345 PR 25993
9346 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9347 bfd_set_filename.
9348 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9349 passed to bfd_set_filename.
9350 * symfile-mem.c (add_vsyscall_page): Likewise for string
9351 passed to symbol_file_add_from_memory.
9352 (symbol_file_add_from_memory): Make name param a const char* and
9353 don't strdup.
9354
c7e97679
AM
93552020-05-20 Alan Modra <amodra@gmail.com>
9356
9357 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9358 rather than accessing bfd->filename directly.
9359 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9360 and use bfd_section_name.
9361 * dwarf2/frame.c (decode_frame_entry): Likewise.
9362 * exec.c (exec_set_section_address): Likewise.
9363 * solib-aix.c (solib_aix_bfd_open): Likewise.
9364 * stap-probe.c (get_stap_base_address): Likewise.
9365 * symfile.c (reread_symbols): Likewise.
9366
563c591b
TT
93672020-05-19 Tom Tromey <tromey@adacore.com>
9368
9369 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9370
f408d82c
SM
93712020-05-19 Simon Marchi <simon.marchi@efficios.com>
9372
9373 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9374
98c59b52
PA
93752020-05-19 Pedro Alves <palves@redhat.com>
9376
9377 * NEWS (set exec-file-mismatch): Adjust entry.
9378 * exec.c: Include "build-id.h".
9379 (validate_exec_file): Try to match build IDs instead of filenames.
9380 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9381 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9382 and pass down 'warn_if_slow'.
9383 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9384 gdb_bfd_open_closure to pass it down.
9385 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9386
4111f652
PA
93872020-05-19 Pedro Alves <palves@redhat.com>
9388
9389 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9390 * target.c (target_fileio_open_1): Rename to target_fileio_open
9391 and make extern. Use bool.
9392 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9393 (target_fileio_read_alloc_1): Adjust.
9394 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9395 (target_fileio_open_warn_if_slow): Delete declaration.
9396
ad80db5b
PA
93972020-05-19 Pedro Alves <palves@redhat.com>
9398
9399 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9400 Adjust all callers.
9401
1d6ce4d3
YS
94022020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9403
9404 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9405 whether disp is negative.
9406
9005fbbb
SM
94072020-05-19 Simon Marchi <simon.marchi@efficios.com>
9408
9409 * symfile.h (struct symfile_segment_data)
9410 <~symfile_segment_data>: Remove.
9411 <segment_info>: Change to std::vector.
9412 * symfile.c (default_symfile_segments): Update.
9413 * elfread.c (elf_symfile_segments): Update.
9414
68b888ff
SM
94152020-05-19 Simon Marchi <simon.marchi@efficios.com>
9416
9417 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9418 <segments>: New.
9419 <segment_bases, segment_sizes>: Remove.
9420 * symfile.c (default_symfile_segments): Update.
9421 * elfread.c (elf_symfile_segments): Update.
9422 * remote.c (remote_target::get_offsets): Update.
9423 * solib-target.c (solib_target_relocate_section_addresses):
9424 Update.
9425
62982abd
SM
94262020-05-19 Simon Marchi <simon.marchi@efficios.com>
9427
9428 * symfile.h (struct symfile_segment_data): Initialize fields.
9429 <~symfile_segment_data>: Add.
9430 (symfile_segment_data_up): New.
9431 (struct sym_fns) <sym_segments>: Return a
9432 symfile_segment_data_up.
9433 (default_symfile_segments): Return a symfile_segment_data_up.
9434 (free_symfile_segment_data): Remove.
9435 (get_symfile_segment_data): Return a symfile_segment_data_up.
9436 * symfile.c (default_symfile_segments): Likewise.
9437 (get_symfile_segment_data): Likewise.
9438 (free_symfile_segment_data): Remove.
9439 (symfile_find_segment_sections): Update.
9440 * elfread.c (elf_symfile_segments): Return a
9441 symfile_segment_data_up.
9442 * remote.c (remote_target::get_offsets): Update.
9443 * solib-target.c (solib_target_relocate_section_addresses):
9444 Update.
9445 * symfile-debug.c (debug_sym_segments): Return a
9446 symfile_segment_data_up.
9447
7f204339
RO
94482020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9449
e52a0f1b
RO
9450 PR build/25981
9451 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9452 Hardcode register numbers.
9453
7f204339
RO
9454 PR build/25981
9455 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9456 procfs_find_LDT_entry): Remove.
9457 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9458 procfs_find_LDT_entry): Remove.
9459 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9460 Remove.
9461
7f32a4d5
PA
94622020-05-17 Pedro Alves <palves@redhat.com>
9463 Andrew Burgess <andrew.burgess@embecosm.com>
9464 Keno Fischer <keno@juliacomputing.com>
9465
9466 PR gdb/25741
9467 * breakpoint.c (build_target_condition_list): Update comments.
9468 (build_target_command_list): Update comments and skip matching
9469 locations.
9470 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9471 a separate function. Simplify "set breakpoint auto-hw off"
9472 handling.
9473 (insert_breakpoints): Update comment.
9474 (tracepoint_locations_match): New parameter. For breakpoints,
9475 compare location types too, if the caller wants to.
9476 (handle_automatic_hardware_breakpoints): New functions.
9477 (bp_location_is_less_than): Also sort by location type and
9478 hardware breakpoint length.
9479 (update_global_location_list): Handle "set breakpoint auto-hw on"
9480 here.
9481 (update_breakpoint_locations): Ask breakpoint_locations_match to
9482 ignore location types.
9483
7d93a1e0
SM
94842020-05-16 Simon Marchi <simon.marchi@efficios.com>
9485
9486 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9487 type::name instead.
9488
d0e39ea2
SM
94892020-05-16 Simon Marchi <simon.marchi@efficios.com>
9490
9491 * gdbtypes.h (struct type) <name, set_name>: New methods.
9492 (TYPE_CODE): Use type::name. Change all call sites used to set
9493 the name to use type::set_name instead.
9494
2dab0c7b
TT
94952020-05-16 Tom Tromey <tom@tromey.com>
9496
9497 * top.c (quit_force): Update.
9498 * infrun.c (handle_no_resumed): Update.
9499 * top.h (all_uis): New function.
9500 (ALL_UIS): Remove.
9501
59f7bd8d
SM
95022020-05-16 Simon Marchi <simon.marchi@efficios.com>
9503
9504 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9505
9bf058f0
PA
95062020-05-16 Pedro Alves <palves@redhat.com>
9507
9508 * ia64-linux-nat.c
9509 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9510 Declare method.
9511 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9512
8f86ae1a
SM
95132020-05-15 Simon Marchi <simon.marchi@efficios.com>
9514
9515 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9516 (sparc64_adi_info): Likewise.
9517
d6bc0792
TT
95182020-05-15 Tom Tromey <tom@tromey.com>
9519
9520 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9521 block_objfile.
9522 (lookup_objfile_from_block): Remove.
9523 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9524 (lookup_global_symbol): Use block_objfile.
9525 * symtab.h (lookup_objfile_from_block): Don't declare.
9526 * printcmd.c (clear_dangling_display_expressions): Use
9527 block_objfile.
9528 * parse.c (operator_check_standard): Use block_objfile.
9529
8c14c3a3
TT
95302020-05-15 Tom Tromey <tom@tromey.com>
9531
9532 * language.c (language_alloc_type_symbol): Set
9533 SYMBOL_SECTION.
9534 * symtab.c (initialize_objfile_symbol): Remove.
9535 (allocate_symbol): Remove.
9536 (allocate_template_symbol): Remove.
9537 * dwarf2/read.c (fixup_go_packaging): Use "new".
9538 (new_symbol): Use "new".
9539 (read_variable): Don't call initialize_objfile_symbol. Use
9540 "new".
9541 (read_func_scope): Use "new".
9542 * xcoffread.c (process_xcoff_symbol): Don't call
9543 initialize_objfile_symbol.
9544 (SYMBOL_DUP): Remove.
9545 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9546 "new".
9547 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9548 (allocate_template_symbol): Don't declare.
9549 (struct symbol): Add copy constructor. Change defaults.
9550 * jit.c (finalize_symtab): Use "new".
9551 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9552 Use "new".
9553 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9554 (common_block_end): Use "new".
9555 * mdebugread.c (parse_symbol): Use "new".
9556 (new_symbol): Likewise.
9557
5b4a1a8d
PW
95582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9559
9560 * NEWS: Mention changes to help and apropos.
9561
57b4f16e
PW
95622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9563
9564 * command.h (enum command_class): Improve comments, document
9565 that class_alias is for user-defined aliases, give the class
9566 name for each class, remove unused class_xdb.
9567 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9568 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9569 by a precise class.
9570 * infcmd.c (_initialize_infcmd): Likewise.
9571 * reverse.c (_initialize_reverse): Likewise.
9572 * stack.c (_initialize_stack): Likewise.
9573 * symfile.c (_initialize_symfile): Likewise.
9574 * tracepoint.c (_initialize_tracepoint): Likewise.
9575
7c05caf7
PW
95762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9577
9578 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9579 when their aliased command is traversed.
9580 (help_cmd): Add fput_command_names_styled call to
9581 output command name and aliases when command has an alias.
9582
3b3aaacb
PW
95832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9584
9585 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9586 * cli/cli-decode.c (help_cmd_list): Declare as static,
9587 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9588 a command together with the command.
9589 (fput_command_name_styled, fput_command_names_styled): New functions.
9590 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9591 fput_command_name_styled.
9592 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9593 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9594
7aa1b46f
PW
95952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9596
9597 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9598 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9599 * command.h (cmd_show_list): Likewise.
9600 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9601 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9602
89bcba74
PW
96032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9604
9605 * unittests/command-def-selftests.c (traverse_command_structure):
9606 Verify all commands of a list have the same prefix command and
9607 that only the top cmdlist commands have a null prefix.
9608
3f4d92eb
PW
96092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9610
9611 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9612 as prefix, not one of its aliases.
9613 (set_cmd_prefix): Remove.
9614 (do_add_cmd): Centralize the setting of the prefix of a command, when
9615 command is defined after its full chain of prefix commands.
9616 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9617 (add_setshow_cmd_full): Likewise.
9618 (update_prefix_field_of_prefixed_commands): New function.
9619 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9620 update_prefix_field_of_prefixed_commands.
9621 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9622 addresses of remote_set_cmdlist and remote_show_cmdlist given
9623 as argument, not the address of an argument.
9624 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9625 * gdb/remote.c (_initialize_remote): Likewise.
9626
0605465f
PW
96272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9628
9629 * cli/cli-cmds.c (alias_command): Check for an existing alias
9630 using lookup_cmd_composition, as valid_command_p is too strict
9631 and forbids aliases that are the prefix of an existing alias
9632 or command.
9633 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9634 command is properly recognised as a valid command.
9635
58e6ac70
PW
96362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9637
9638 * unittests/help-doc-selftests.c: Rename to
9639 unittests/command-def-selftests.c
9640 * unittests/command-def-selftests.c (help_doc_tests): Update some
9641 comments.
9642 (command_structure_tests, traverse_command_structure): New namespace
9643 and function.
9644 (command_structure_invariants_tests): New function.
9645 (_initialize_command_def_selftests) Renamed from
9646 _initialize_help_doc_selftests, register command_structure_invariants
9647 selftest.
9648
a7b9ceb8
PW
96492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9650
9651 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9652 an alias of 'show'.
9653
b2188a06
JB
96542020-05-15 Joel Brobecker <brobecker@adacore.com>
9655
9656 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9657 ada_is_fixed_point_type. Update all callers.
9658 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9659 all callers.
9660 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9661 Update all callers.
9662 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9663 print_fixed_point_type. Update all callers.
9664 * ada-valprint.c (ada_value_print_num): Replace call to
9665 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9666
a51951c2
KB
96672020-05-14 Kevin Buettner <kevinb@redhat.com>
9668
9669 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9670 processors.
9671 (cpu_supports_bts): Add CV_AMD case.
9672
29d6859f
LM
96732020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9674 Simon Marchi <simon.marchi@efficios.com>
9675
9676 * infrun.c (stop_all_threads): Collect multiple wait events at
9677 each pass.
9678
78134374
SM
96792020-05-14 Simon Marchi <simon.marchi@efficios.com>
9680
9681 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9682 type::code instead.
9683
67607e24
SM
96842020-05-14 Simon Marchi <simon.marchi@efficios.com>
9685
9686 * gdbtypes.h (struct type) <code, set_code>: New methods.
9687 (TYPE_CODE): Use type::code. Change all call sites used to set
9688 the code to use type::set_code instead.
9689
a05575d3
TBA
96902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9691 Tom de Vries <tdevries@suse.de>
9692 Pedro Alves <palves@redhat.com>
9693
9694 PR threads/25478
9695 * infrun.c (stop_all_threads): Do NOT ignore
9696 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9697 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9698 received.
9699 (handle_no_resumed): Remove code handling a live inferior with no
9700 threads.
9701 * remote.c (has_single_non_exited_thread): New.
9702 (remote_target::update_thread_list): Do not delete a thread if is
9703 the last thread of the process.
9704 * thread.c (thread_select): Call delete_exited_threads instead of
9705 prune_threads.
9706
6ad82919
TBA
97072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9708
9709 * infrun.c (stop_all_threads): Enable/disable thread events of all
9710 targets. Move a debug message denoting the end of the function
9711 into the SCOPED_EXIT block.
9712
d890404b
TBA
97132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9714
9715 * process-stratum-target.h: Include <set>.
9716 (all_non_exited_process_targets, switch_to_target_no_thread): New
9717 function declarations.
9718 * process-stratum-target.c (all_non_exited_process_targets)
9719 (switch_to_target_no_thread): New function implementations.
9720
293b3ebc
TBA
97212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9722
9723 * infrun.c (handle_inferior_event): Extract out a piece of code
9724 into...
9725 (mark_non_executing_threads): ...this new function.
9726
7ca9b62a
TBA
97272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9728
9729 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9730 use.
9731
fc75c28b
TBA
97322020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9733
9734 * regcache.c (regcache_read_pc_protected): New function
9735 implementation that returns 0 if the PC cannot read via
9736 'regcache_read_pc'.
9737 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9738 instead of 'regcache_read_pc'.
9739 (keep_going_pass_signal): Ditto.
9740
a89febbd
TT
97412020-05-13 Tom Tromey <tromey@adacore.com>
9742
9743 * ada-lang.c (align_value): Remove.
9744 (ada_template_to_fixed_record_type_1): Use align_up.
9745
f7e23710
TBA
97462020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9747
9748 * async-event.c: Update the copyright year.
9749 * async-event.h: Update the copyright year.
9750
02ff80c2
SM
97512020-05-12 Simon Marchi <simon.marchi@efficios.com>
9752
9753 * objfiles.h (is_addr_in_objfile,
9754 shared_objfile_contains_address_p): Return bool.
9755 * objfile.c (is_addr_in_objfile,
9756 shared_objfile_contains_address_p): Return bool.
9757
4fd6c7e8
TT
97582020-05-11 Tom Tromey <tromey@adacore.com>
9759
9760 * cli/cli-cmds.c (info_command): Restore.
9761 (_initialize_cli_cmds): Use add_prefix_command for "info".
9762 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9763
5eb68a39
TT
97642020-05-11 Tom Tromey <tromey@adacore.com>
9765
9766 * ada-lang.c (ada_value_primitive_field): Now public.
9767 * ada-lang.h (ada_value_primitive_field): Declare.
9768 * ada-valprint.c (print_field_values): Use
9769 ada_value_primitive_field for wrapper fields.
9770
7666722f
TV
97712020-05-11 Tom de Vries <tdevries@suse.de>
9772
9773 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9774 MODULE_DOMAIN.
9775
3ee6bb11
TV
97762020-05-11 Tom de Vries <tdevries@suse.de>
9777
9778 PR symtab/25941
9779 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9780 with length 0, if not gdb-produced.
9781 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9782
43434996
TV
97832020-05-09 Tom de Vries <tdevries@suse.de>
9784
9785 PR gdb/25955
9786 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9787 calculation.
9788
2f78cffc
TT
97892020-05-09 Tom Tromey <tom@tromey.com>
9790
9791 * top.c (server_command): Now bool.
9792 * top.h (server_command): Now bool.
9793
4f7bc5ed
TT
97942020-05-08 Tom Tromey <tromey@adacore.com>
9795
9796 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9797 already being processed.
9798
8be4b118
TT
97992020-05-08 Tom Tromey <tom@tromey.com>
9800
9801 * printcmd.c (struct display) <next>: Remove.
9802 <display>: New constructor.
9803 <exp_string>: Now a std::string.
9804 <enabled_p>: Now a bool.
9805 (display_number): Move definition earlier.
9806 (displays): Rename from display_chain. Now a std::vector.
9807 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9808 (display_command): Update.
9809 (do_one_display, disable_display)
9810 (enable_disable_display_command, do_enable_disable_display):
9811 Update.
9812 (free_display): Remove.
9813 (clear_displays): Rewrite.
9814 (delete_display): Update.
9815 (map_display_numbers): Use function_view. Remove "data"
9816 parameter. Update.
9817 (do_delete_display): Remove.
9818 (undisplay_command): Update.
9819 (do_one_display, do_displays, disable_display)
9820 (info_display_command): Update.
9821 (do_enable_disable_display): Remove.
9822 (enable_disable_display_command)
9823 (clear_dangling_display_expressions): Update.
9824
94c93c35
TT
98252020-05-08 Tom Tromey <tom@tromey.com>
9826
9827 * symtab.c (set_symbol_cache_size)
9828 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9829 (maintenance_print_symbol_cache_statistics): Update.
9830 * symmisc.c (print_symbol_bcache_statistics)
9831 (print_objfile_statistics, maintenance_print_objfiles)
9832 (maintenance_info_symtabs, maintenance_check_symtabs)
9833 (maintenance_expand_symtabs, maintenance_info_line_tables):
9834 Update.
9835 * symfile-debug.c (set_debug_symfile): Update.
9836 * source.c (forget_cached_source_info): Update.
9837 * python/python.c (gdbpy_progspaces): Update.
9838 * psymtab.c (maintenance_info_psymtabs): Update.
9839 * probe.c (parse_probes): Update.
9840 * linespec.c (iterate_over_all_matching_symtabs)
9841 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9842 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9843 * exec.c (exec_target::close): Update.
9844 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9845 * breakpoint.c (print_one_breakpoint_location)
9846 (create_longjmp_master_breakpoint)
9847 (create_std_terminate_master_breakpoint): Update.
9848 * progspace.c (program_spaces): Now a std::vector.
9849 (maybe_new_address_space): Update.
9850 (add_program_space): Remove.
9851 (program_space::program_space): Update.
9852 (remove_program_space): Update.
9853 (number_of_program_spaces): Remove.
9854 (print_program_space, update_address_spaces): Update.
9855 * progspace.h (program_spaces): Change type.
9856 (ALL_PSPACES): Remove.
9857 (number_of_program_spaces): Don't declare.
9858 (struct program_space) <next>: Remove.
9859
a1fd1ac9
TT
98602020-05-08 Tom Tromey <tom@tromey.com>
9861
9862 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9863 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9864 (enable_break): Update.
9865 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9866 (frv_fdpic_find_canonical_descriptor): Update.
9867 (frv_fetch_objfile_link_map): Update.
9868 * progspace.c (program_space::free_all_objfiles): Update.
9869 (program_space::solibs): New method.
9870 * progspace.h (struct program_space) <solibs>: New method.
9871 * solist.h (master_so_list): Don't declare.
9872 (ALL_SO_LIBS): Remove.
9873 * solib.h (so_list_head): Remove.
9874 (update_solib_list): Update comment.
9875 * solib.c (master_so_list): Remove.
9876 (solib_used, update_solib_list, solib_add)
9877 (info_sharedlibrary_command, clear_solib)
9878 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9879
38eae084
TT
98802020-05-08 Tom Tromey <tom@tromey.com>
9881
9882 * extension.c (extension_languages): Now a std::array.
9883 (ALL_EXTENSION_LANGUAGES): Remove.
9884 (get_ext_lang_defn, get_ext_lang_of_file)
9885 (eval_ext_lang_from_control_command): Update.
9886 (finish_ext_lang_initialization)
9887 (auto_load_ext_lang_scripts_for_objfile)
9888 (ext_lang_type_printers::ext_lang_type_printers)
9889 (apply_ext_lang_type_printers)
9890 (ext_lang_type_printers::~ext_lang_type_printers)
9891 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9892 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9893 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9894 (get_matching_xmethod_workers, ext_lang_colorize)
9895 (ext_lang_before_prompt): Update.
9896 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9897
596dc4ad
TT
98982020-05-08 Tom Tromey <tom@tromey.com>
9899
9900 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9901 overload.
9902 <swap_string, m_string>: Remove.
9903 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9904 Update.
9905 * stabsread.c (define_symbol, read_type): Update.
9906 * linespec.c (find_linespec_symbols): Update.
9907 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9908 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9909 * dbxread.c (read_dbx_symtab): Update.
9910 * cp-support.h (cp_canonicalize_string_full)
9911 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9912 Return unique_xmalloc_ptr.
9913 * cp-support.c (inspect_type): Update.
9914 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9915 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9916 Likewise.
9917 * c-typeprint.c (print_name_maybe_canonical): Update.
9918 * break-catch-throw.c (check_status_exception_catchpoint):
9919 Update.
9920
bf4cb9be
TV
99212020-05-08 Tom de Vries <tdevries@suse.de>
9922
9923 * infrun.c (follow_fork): Copy current_line and current_symtab to
9924 child thread.
9925
a1b68f28
SM
99262020-05-07 Simon Marchi <simon.marchi@efficios.com>
9927
9928 * async-event.c (struct async_signal_handler, struct
9929 async_event_handler): Reformat, remove typedef.
9930
98d48915
SM
99312020-05-07 Simon Marchi <simon.marchi@efficios.com>
9932
9933 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9934 access thistype->main_type->dyn_prop_list directly.
9935
7aa91313
SM
99362020-05-07 Simon Marchi <simon.marchi@efficios.com>
9937
9938 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9939 (remove_dyn_prop): Remove. Update all users to use
9940 type::remove_dyn_prop.
9941 * gdbtypes.c (remove_dyn_prop): Rename to...
9942 (type::remove_dyn_prop): ... this.
9943
5c54719c
SM
99442020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9945
9946 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9947 (add_dyn_prop): Remove. Update all users to use
9948 type::add_dyn_prop.
9949 * gdbtypes.c (add_dyn_prop): Rename to...
9950 (type::add_dyn_prop): ... this.
9951
24e99c6c
SM
99522020-05-07 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9955 (get_dyn_prop): Remove. Update all users to use
9956 type::dyn_prop.
9957 * gdbtypes.c (get_dyn_prop): Rename to...
9958 (type::dyn_prop): ... this.
9959
0d4bf016
SM
99602020-05-06 Simon Marchi <simon.marchi@efficios.com>
9961
9962 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9963
ac4a4f1c
SM
99642020-05-06 Simon Marchi <simon.marchi@efficios.com>
9965
9966 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9967 instruction, skip it if it's there.
9968
a3bbacc1
SM
99692020-05-05 Simon Marchi <simon.marchi@efficios.com>
9970
9971 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9972
c3236f84
SM
99732020-05-04 Simon Marchi <simon.marchi@efficios.com>
9974
9975 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9976 * gdbtypes.c (recursive_dump_type): Remove use of
9977 TYPE_INCOMPLETE.
9978
3b6acaee
TT
99792020-05-03 Tom Tromey <tom@tromey.com>
9980
9981 * breakpoint.c (catch_command, tcatch_command): Remove.
9982 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9983 add_show_prefix_cmd.
9984 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9985 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9986 Remove.
9987 (add_internal_problem_command): Use add_basic_prefix_cmd,
9988 add_show_prefix_cmd.
9989 * mips-tdep.c (set_mipsfpu_command): Remove.
9990 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9991 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9992 (_initialize_index_cache): Use add_basic_prefix_cmd.
9993 * memattr.c (dummy_cmd): Remove.
9994 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9995 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9996 (_initialize_tui_win): Use add_basic_prefix_cmd,
9997 add_show_prefix_cmd.
9998 * cli/cli-logging.c (set_logging_command): Remove.
9999 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10000 add_show_prefix_cmd.
10001 (show_logging_command): Remove.
10002 * target.c (target_command): Remove.
10003 (add_target): Use add_basic_prefix_cmd.
10004
a51119cd
HD
100052020-05-02 Hannes Domani <ssbssa@yahoo.de>
10006
10007 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10008
652fc23a 100092020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10010
652fc23a
PW
10011 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10012 info_command.
10013
117539e6
KR
100142020-04-30 Kamil Rytarowski <n54@gmx.com>
10015
10016 * nbsd-nat.c (nbsd_enable_proc_events)
10017 (nbsd_nat_target::post_startup_inferior): Add.
10018 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10019 (nbsd_nat_target::update_thread_list): Rewrite.
10020 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10021 "PTRACE_LWP_CREATE".
10022 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10023
102e38eb 100242020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10025
102e38eb
PW
10026 * stack.c (_initialize_stack): Remove duplicated creation
10027 of "frame" command and "f" alias.
10028
ee9d1e5f
HD
100292020-04-30 Hannes Domani <ssbssa@yahoo.de>
10030
10031 PR gdb/18706
10032 * gdbtypes.c (check_typedef): Calculate size of array of
10033 stubbed type.
10034
627c7fb8
HD
100352020-04-30 Hannes Domani <ssbssa@yahoo.de>
10036
10037 PR gdb/15559
10038 * i386-tdep.c (i386_push_dummy_call): Call
10039 i386_thiscall_push_dummy_call.
10040 (i386_thiscall_push_dummy_call): New function.
10041 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10042 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10043 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10044
ffc2844e
SM
100452020-04-29 Simon Marchi <simon.marchi@efficios.com>
10046
10047 * gdbarch.sh (do_read): Add shellcheck disable directive for
10048 warning SC2162.
10049
1207375d
SM
100502020-04-29 Simon Marchi <simon.marchi@efficios.com>
10051
10052 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10053 "referenced but not assigned" warning.
10054
9fdb2916
SM
100552020-04-29 Simon Marchi <simon.marchi@efficios.com>
10056
10057 * gdbarch.sh: Remove code that sets fallbackdefault.
10058
759cea5e
SM
100592020-04-29 Simon Marchi <simon.marchi@efficios.com>
10060
10061 * gdbarch.sh: Use shell operators && and || instead of
10062 -a and -o.
10063
cb02ab24
SM
100642020-04-29 Simon Marchi <simon.marchi@efficios.com>
10065
10066 * gdbarch.sh: Use $(...) instead of `...`.
10067
a6fc5ffc
SM
100682020-04-29 Simon Marchi <simon.marchi@efficios.com>
10069
10070 * gdbarch.sh: Use double quotes around variables.
10071
8d113d13
SM
100722020-04-29 Simon Marchi <simon.marchi@efficios.com>
10073
10074 * gdbarch.sh: Use %s with printf, instead of variables in the
10075 format string.
10076
ed6acedd
TT
100772020-04-29 Tom Tromey <tromey@adacore.com>
10078
10079 PR ada/25875:
10080 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10081 type fields here.
10082 (read_enumeration_type): Call
10083 update_enumeration_type_from_children later. Update comments.
10084 (process_enumeration_scope): Don't create type fields.
10085
b68b1b58
KR
100862020-04-29 Kamil Rytarowski <n54@gmx.com>
10087
10088 * nbsd-tdep.c: Include "xml-syscall.h".
10089 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10090
f94b2e03
KR
100912020-04-29 Kamil Rytarowski <n54@gmx.com>
10092
10093 * nbsd-nat.c: Include "sys/wait.h".
10094 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10095 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10096 (nbsd_nat_target::remove_exec_catchpoint)
10097 (nbsd_nat_target::set_syscall_catchpoint): Add.
10098 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10099 (nbsd_nat_target::insert_exec_catchpoint)
10100 (nbsd_nat_target::remove_exec_catchpoint)
10101 (nbsd_nat_target::set_syscall_catchpoint): Add.
10102 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10103 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10104 `nbsd_get_syscall_number'.
10105
fc49bc72
TT
101062020-04-29 Tom Tromey <tom@tromey.com>
10107
10108 * stack.c (print_block_frame_labels): Remove.
10109
d642b692
HD
101102020-04-29 Hannes Domani <ssbssa@yahoo.de>
10111
10112 PR gdb/17320
10113 * ada-valprint.c (val_print_packed_array_elements): Move array
10114 end bracket to new line.
10115 (ada_val_print_string): Remove extra spaces before first array
10116 element.
10117 * c-valprint.c (c_value_print_array): Likewise.
10118 * m2-valprint.c (m2_print_array_contents): Likewise.
10119 (m2_value_print_inner): Likewise.
10120 * p-valprint.c (pascal_value_print_inner): Likewise.
10121 * valprint.c (generic_val_print_array): Likewise.
10122 (value_print_array_elements): Move first array element and array
10123 end bracket to new line.
10124
ea90f227
TV
101252020-04-29 Tom de Vries <tdevries@suse.de>
10126
10127 PR symtab/25889
10128 * linespec.c (find_method): Fix ix calculation.
10129
4498ef4f
KR
101302020-04-28 Kamil Rytarowski <n54@gmx.com>
10131
10132 * syscalls/update-netbsd.sh: New file.
10133 * syscalls/netbsd.xml: Regenerate.
10134 * data-directory/Makefile.in: Register `netbsd.xml' in
10135 `SYSCALLS_FILES'.
10136
a55e30b5
SM
101372020-04-28 Simon Marchi <simon.marchi@efficios.com>
10138
10139 * syscalls/update-freebsd.sh: Add double quotes.
10140
2b2fbab8
TT
101412020-04-28 Tom Tromey <tom@tromey.com>
10142
10143 * NEWS: Update.
10144 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10145 (cmdpy_init): Allow class_tui.
10146
a65189c9
TV
101472020-04-28 Mark Williams <mark@myosotissp.com>
10148
10149 PR gdb/24480
10150 * dwarf2read.c: Add missing assingments to list_in_scope when
10151 start_symtab was already called.
10152
1b95cdb7
SM
101532020-04-28 Simon Marchi <simon.marchi@efficios.com>
10154
10155 PR gdb/25881
10156 * dwarf2/read.c (offset_map_type): Use
10157 gdb:hash_enum<sect_offset> as hash function.
10158
15cd93d0
TV
101592020-04-28 Tom de Vries <tdevries@suse.de>
10160
10161 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10162 with DW_AT_signature.
10163
1eb39914
SM
101642020-04-27 Simon Marchi <simon.marchi@efficios.com>
10165
10166 * configure.ac: Remove check for fs_base/gs_base in
10167 user_regs_struct.
10168 * configure: Re-generate.
10169 * config.in: Re-generate.
10170 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10171 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10172 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10173
991a3e2e
LM
101742020-04-27 Luis Machado <luis.machado@linaro.org>
10175
10176 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10177 problematic inline frame unwinding situation.
10178 * frame.c (frame_id_computed_p): New function.
10179 * frame.h (frame_id_computed_p): New prototype.
10180
361ba0e8
TT
101812020-04-26 Tom Tromey <tom@tromey.com>
10182
10183 * command.h (enum command_class) <class_pseudo>: Remove.
10184
bc3609fd
PW
101852020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10186
10187 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10188 and whitespace.
10189
b9771db7
KR
101902020-04-25 Kamil Rytarowski <n54@gmx.com>
10191
ec16513e
SM
10192 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10193 `PT_GET_PROCESS_STATE' block.
b9771db7 10194
7151c1af
TT
101952020-04-24 Tom Tromey <tom@tromey.com>
10196
10197 * symtab.h (symbol_get_demangled_name): Don't declare.
10198 * symtab.c (symbol_get_demangled_name): Remove.
10199 (general_symbol_info::natural_name)
10200 (general_symbol_info::demangled_name): Update.
10201
906bb4c5
TT
102022020-04-24 Tom Tromey <tom@tromey.com>
10203
10204 PR rust/25025:
10205 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10206
bcfe6157
TT
102072020-04-24 Tom Tromey <tom@tromey.com>
10208
10209 PR symtab/12707:
10210 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10211 exists.
10212 (new_symbol): Likewise.
10213 * compile/compile-object-load.c (get_out_value_type): Use
10214 symbol_matches_search_name.
10215
f049a313
TT
102162020-04-24 Tom Tromey <tom@tromey.com>
10217
10218 * dwarf2/read.c (add_partial_symbol): Do not call
10219 compute_and_set_names.
10220
76e288d1
TT
102212020-04-24 Tom Tromey <tom@tromey.com>
10222
10223 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10224 overload.
10225
2467f4f6
TT
102262020-04-24 Tom Tromey <tom@tromey.com>
10227
10228 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10229 (add_psymbol_to_list): New overload. Make old overload call new
10230 one.
10231 * psympriv.h (add_psymbol_to_list): New overload.
10232
e61108c9
TT
102332020-04-24 Tom Tromey <tom@tromey.com>
10234
10235 * dwarf2/read.c (partial_die_info::read) <case
10236 DW_AT_linkage_name>: Use value_as_string.
10237 (dwarf2_string_attr): Use value_as_string.
10238 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10239 method.
10240 * dwarf2/attribute.c (attribute::value_as_string): New method.
10241
8c87a452
TT
102422020-04-24 Tom Tromey <tom@tromey.com>
10243
10244 * symtab.c (general_symbol_info::natural_name)
10245 (general_symbol_info::demangled_name): Check for language_rust.
10246
787de330
TT
102472020-04-24 Tom Tromey <tom@tromey.com>
10248
10249 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10250 (dwarf2_physname): ... from here.
10251 (partial_die_info::read): Add Rust "{" hack.
10252
ff985671
TT
102532020-04-24 Tom Tromey <tom@tromey.com>
10254
10255 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10256 method.
10257 (symbol_set_demangled_name): Don't declare.
10258 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10259 symbol_set_demangled_name.
10260 (general_symbol_info::set_language)
10261 (general_symbol_info::compute_and_set_names): Update.
10262 * minsyms.c (minimal_symbol_reader::install): Update.
10263 * dwarf2/read.c (new_symbol): Update.
10264
1acda803
TT
102652020-04-24 Tom Tromey <tromey@adacore.com>
10266
10267 PR python/23662:
10268 * python/py-type.c (convert_field): Handle
10269 FIELD_LOC_KIND_DWARF_BLOCK.
10270 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10271 (typy_get_dynamic): Nw function.
10272 (type_object_getset): Add "dynamic".
10273 * NEWS: Add entry.
10274
d656f129
TT
102752020-04-24 Tom Tromey <tromey@adacore.com>
10276
10277 * ada-typeprint.c (print_choices, print_variant_part)
10278 (print_record_field_types_dynamic): New functions.
10279 (print_record_field_types): Use print_record_field_types_dynamic.
10280
7d79de9a
TT
102812020-04-24 Tom Tromey <tromey@adacore.com>
10282
10283 * dwarf2/read.c (handle_data_member_location): New overload.
10284 (dwarf2_add_field): Use it.
10285 (decode_locdesc): Add "computed" parameter. Update comment.
10286 * gdbtypes.c (is_dynamic_type_internal): Also look for
10287 FIELD_LOC_KIND_DWARF_BLOCK.
10288 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10289 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10290 virtual base classes.
10291 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10292 FIELD_LOC_KIND_DWARF_BLOCK.
10293
f8e89861
TT
102942020-04-24 Tom Tromey <tromey@adacore.com>
10295
10296 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10297 * gdbtypes.c (is_dynamic_type_internal): Check
10298 TYPE_HAS_DYNAMIC_LENGTH.
10299 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10300 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10301 New macros.
10302 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10303 constant.
10304
9c6a1327
TT
103052020-04-24 Tom Tromey <tromey@adacore.com>
10306
10307 * dwarf2/read.c (struct variant_field): Rewrite.
10308 (struct variant_part_builder): New.
10309 (struct nextfield): Remove "variant" field. Add "offset".
10310 (struct field_info): Add "current_variant_part" and
10311 "variant_parts".
10312 (alloc_discriminant_info): Remove.
10313 (alloc_rust_variant): New function.
10314 (quirk_rust_enum): Update.
10315 (dwarf2_add_field): Set "offset" member. Don't handle
10316 DW_TAG_variant_part.
10317 (offset_map_type): New typedef.
10318 (convert_variant_range, create_one_variant)
10319 (create_one_variant_part, create_variant_parts)
10320 (add_variant_property): New functions.
10321 (dwarf2_attach_fields_to_type): Call add_variant_property.
10322 (read_structure_type): Don't handle DW_TAG_variant_part.
10323 (handle_variant_part, handle_variant): New functions.
10324 (handle_struct_member_die): Use them.
10325 (process_structure_scope): Don't handle variant parts.
10326 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10327 (struct discriminant_info): Remove.
10328 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10329 (struct main_type) <flag_discriminated_union>: Remove.
10330 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10331 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10332 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10333 Update.
10334 * valops.c (value_union_variant): Remove.
10335 * value.h (value_union_variant): Don't declare.
10336
b249d2c2
TT
103372020-04-24 Tom Tromey <tromey@adacore.com>
10338
10339 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10340 (ada_value_primitive_packed_val): Update.
10341 * ada-valprint.c (ada_value_print_1): Update.
10342 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10343 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10344 just an address. Use evaluate_for_locexpr_baton.
10345 (dwarf2_evaluate_property): Update.
10346 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10347 array_view.
10348 * findvar.c (default_read_var_value): Update.
10349 * gdbtypes.c (compute_variant_fields_inner)
10350 (resolve_dynamic_type_internal): Update.
10351 (resolve_dynamic_type): Change type of valaddr parameter.
10352 * gdbtypes.h (resolve_dynamic_type): Update.
10353 * valarith.c (value_subscripted_rvalue): Update.
10354 * value.c (value_from_contents_and_address): Update.
10355
61122aa9
TT
103562020-04-24 Tom Tromey <tromey@adacore.com>
10357
10358 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10359 "push_initial_value" parameter.
10360 (dwarf2_evaluate_property): Likewise.
10361 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10362
ef83a141
TT
103632020-04-24 Tom Tromey <tromey@adacore.com>
10364
10365 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10366 (variant::matches, compute_variant_fields_recurse)
10367 (compute_variant_fields_inner, compute_variant_fields): New
10368 functions.
10369 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10370 Use resolved_type after type is made.
10371 (operator==): Add new cases.
10372 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10373 (struct discriminant_range, struct variant, struct variant_part):
10374 New.
10375 (union dynamic_prop_data) <variant_parts, original_type>: New
10376 members.
10377 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10378 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10379 constants.
10380 * value.c (unpack_bits_as_long): Now public.
10381 * value.h (unpack_bits_as_long): Declare.
10382
675127ec
TT
103832020-04-24 Tom Tromey <tromey@adacore.com>
10384
10385 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10386 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10387
9852ceef
HD
103882020-04-24 Hannes Domani <ssbssa@yahoo.de>
10389
10390 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10391
7632c6ce
KR
103922020-04-24 Kamil Rytarowski <n54@gmx.com>
10393
10394 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10395 (remove_fork_catchpoint, post_startup_inferior)
10396 (post_attach): Move...
10397 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10398 (remove_fork_catchpoint, post_startup_inferior)
10399 (post_attach): ...here.
10400 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10401 (remove_fork_catchpoint, post_startup_inferior)
10402 (post_attach): Move...
10403 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10404 (remove_fork_catchpoint, post_startup_inferior)
10405 (post_attach): ...here.
10406
7be2bb4f
TT
104072020-04-24 Tom Tromey <tromey@adacore.com>
10408
10409 * nat/windows-nat.h (struct windows_thread_info)
10410 <pc_adjusted>: New member.
10411 * windows-nat.c (windows_fetch_one_register): Check
10412 pc_adjusted.
10413 (windows_nat_target::get_windows_debug_event)
10414 (windows_nat_target::wait): Set pc_adjusted.
10415
f80cb3b4
TV
104162020-04-24 Tom de Vries <tdevries@suse.de>
10417
10418 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10419 Run gdb-add-index inside temp dir.
10420
29514b87
TT
104212020-04-23 Tom Tromey <tromey@adacore.com>
10422
10423 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10424 in loop.
10425
5939967b
LM
104262020-04-23 Luis Machado <luis.machado@linaro.org>
10427
10428 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10429 get_frame_register instead of gdbarch_unwind_pc.
10430
70bc38f5
TV
104312020-04-23 Tom de Vries <tdevries@suse.de>
10432
10433 * symtab.c (lookup_global_symbol): Prefer def over decl.
10434
de82891c
TV
104352020-04-23 Tom de Vries <tdevries@suse.de>
10436
10437 PR symtab/25807
10438 * block.c (best_symbol, better_symbol): Promote to external.
10439 * block.h (best_symbol, better_symbol): Declare.
10440 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10441 decl.
10442
ecc6c606
TT
104432020-04-23 Tom Tromey <tromey@adacore.com>
10444
10445 PR ada/25837:
10446 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10447 "const char *", not a "const std::string &".
10448 <name_and_matcher::operator==>: Update.
10449 * unittests/lookup_name_info-selftests.c: Change type of
10450 "result".
10451
740480b8
TT
104522020-04-23 Tom Tromey <tom@tromey.com>
10453
10454 * inferior.h (iterate_over_inferiors): Don't declare.
10455 * inferior.c (iterate_over_inferiors): Remove.
10456 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10457 Remove.
10458 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10459 use iterate_over_inferiors.
10460 (darwin_resume_inferior_it)
10461 (struct resume_inferior_threads_param)
10462 (darwin_resume_inferior_threads_it): Remove.
10463 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10464
ae3ab1f0
TV
104652020-04-23 Tom de Vries <tdevries@suse.de>
10466
10467 * blockframe.c (find_pc_partial_function): Use
10468 find_pc_sect_compunit_symtab rather than
10469 objfile->sf->qf->find_pc_sect_compunit_symtab.
10470
317d2668
TV
104712020-04-22 Tom de Vries <tdevries@suse.de>
10472
10473 PR symtab/25764
10474 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10475 in psymtabs.
10476
eea9e357
TV
104772020-04-22 Tom de Vries <tdevries@suse.de>
10478
10479 PR symtab/25801
10480 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10481 symtabs.
10482
3d5afab3
TV
104832020-04-22 Tom de Vries <tdevries@suse.de>
10484
10485 PR symtab/25700
10486 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10487 CU if already created.
10488
d43b7a2d
TBA
104892020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10490
10491 * infrun.c (displaced_step_fixup): Switch to the event_thread
10492 before calling displaced_step_restore, not after.
10493
d89edf9b
MM
104942020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10495
10496 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10497 its inferior is not recorded by us.
10498 (record_btrace_target_open): Replace call to
10499 all_non_exited_threads () with call to current_inferior
10500 ()->non_exited_threads ().
10501 (record_btrace_target::stop_recording): Likewise.
10502 (record_btrace_target::close): Likewise.
10503 (record_btrace_target::wait): Likewise.
10504 (record_btrace_target::record_stop_replaying): Likewise.
10505
5897fd49
MM
105062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10507
10508 * btrace.c (btrace_enable): Throw an error on double enables and
10509 when enabling recording fails.
10510 (btrace_disable): Throw an error if the thread is not recorded.
10511
1a476b6d
MM
105122020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10513
10514 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10515 request if we do not have a thread_info.
10516
4778a5f8
TV
105172020-04-21 Tom de Vries <tdevries@suse.de>
10518
10519 PR gdb/25471
10520 * thread.c
10521 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10522 exception in get_frame_id.
10523
0fa7617d
TT
105242020-04-20 Tom Tromey <tromey@adacore.com>
10525
10526 * python/python.c (struct gdbpy_event): Mark move constructor as
10527 noexcept.
10528 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10529 constructor as noexcept.
10530 * completer.h (struct completion_result): Mark move constructor as
10531 noexcept.
10532 * completer.c (completion_result::completion_result): Use
10533 initialization style. Don't call reset_match_list.
10534
ad23bda0
MS
105352020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10536
10537 * MAINTAINERS (Write After Approval): Add myself.
10538
45e1f031
TT
105392020-04-18 Tom Tromey <tom@tromey.com>
10540
10541 * windows-tdep.c (init_w32_command_list)
10542 (w32_prefix_command_valid): Restore.
10543 (_initialize_windows_tdep): Call init_w32_command_list.
10544
08feed99
TT
105452020-04-18 Tom Tromey <tom@tromey.com>
10546
10547 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10548 * value.c (value_fn_field): Update.
10549 * valops.c (find_function_in_inferior)
10550 (value_allocate_space_in_inferior): Update.
10551 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10552 Update.
10553 * tui/tui-source.c (tui_source_window::set_contents): Update.
10554 * symtab.c (lookup_global_or_static_symbol)
10555 (find_function_start_sal_1, skip_prologue_sal)
10556 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10557 * symmisc.c (dump_msymbols, dump_symtab_1)
10558 (maintenance_print_one_line_table): Update.
10559 * symfile.c (init_entry_point_info, section_is_mapped)
10560 (list_overlays_command, simple_read_overlay_table)
10561 (simple_overlay_update_1): Update.
10562 * stap-probe.c (handle_stap_probe): Update.
10563 * stabsread.c (dbx_init_float_type, define_symbol)
10564 (read_one_struct_field, read_enum_type, read_range_type): Update.
10565 * source.c (info_line_command): Update.
10566 * python/python.c (gdbpy_source_objfile_script)
10567 (gdbpy_execute_objfile_script): Update.
10568 * python/py-type.c (save_objfile_types): Update.
10569 * python/py-objfile.c (py_free_objfile): Update.
10570 * python/py-inferior.c (python_new_objfile): Update.
10571 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10572 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10573 (maintenance_check_psymtabs): Update.
10574 * printcmd.c (info_address_command): Update.
10575 * objfiles.h (struct objfile) <arch>: New method, from
10576 get_objfile_arch.
10577 (get_objfile_arch): Don't declare.
10578 * objfiles.c (get_objfile_arch): Remove.
10579 (filter_overlapping_sections): Update.
10580 * minsyms.c (msymbol_is_function): Update.
10581 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10582 (output_nondebug_symbol): Update.
10583 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10584 (mdebug_expand_psymtab): Update.
10585 * machoread.c (macho_add_oso_symfile): Update.
10586 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10587 Update.
10588 * linux-fork.c (checkpoint_command): Update.
10589 * linespec.c (convert_linespec_to_sals): Update.
10590 * jit.c (finalize_symtab): Update.
10591 * infrun.c (insert_exception_resume_from_probe): Update.
10592 * ia64-tdep.c (ia64_find_unwind_table): Update.
10593 * hppa-tdep.c (internalize_unwinds): Update.
10594 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10595 Update.
10596 * gcore.c (call_target_sbrk): Update.
10597 * elfread.c (record_minimal_symbol, elf_symtab_read)
10598 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10599 (elf_gnu_ifunc_resolve_by_got): Update.
10600 * dwarf2/read.c (create_addrmap_from_index)
10601 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10602 (read_debug_names_from_section)
10603 (process_psymtab_comp_unit_reader, add_partial_symbol)
10604 (add_partial_subprogram, process_full_comp_unit)
10605 (read_file_scope, read_func_scope, read_lexical_block_scope)
10606 (read_call_site_scope, dwarf2_ranges_read)
10607 (dwarf2_record_block_ranges, dwarf2_add_field)
10608 (mark_common_block_symbol_computed, read_tag_pointer_type)
10609 (read_tag_string_type, dwarf2_init_float_type)
10610 (dwarf2_init_complex_target_type, read_base_type)
10611 (partial_die_info::read, partial_die_info::read)
10612 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10613 (dwarf2_fetch_die_loc_sect_off): Update.
10614 * dwarf2/loc.c (dwarf2_find_location_expression)
10615 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10616 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10617 (dwarf2_loc_desc_get_symbol_read_needs)
10618 (locexpr_describe_location_piece, locexpr_describe_location_1)
10619 (loclist_describe_location): Update.
10620 * dwarf2/index-write.c (write_debug_names): Update.
10621 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10622 * dtrace-probe.c (dtrace_process_dof): Update.
10623 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10624 (process_one_symbol): Update.
10625 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10626 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10627 (coff_read_enum_type): Update.
10628 * cli/cli-cmds.c (edit_command, list_command): Update.
10629 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10630 * breakpoint.c (create_overlay_event_breakpoint)
10631 (create_longjmp_master_breakpoint)
10632 (create_std_terminate_master_breakpoint)
10633 (create_exception_master_breakpoint, get_sal_arch): Update.
10634 * block.c (block_gdbarch): Update.
10635 * annotate.c (annotate_source_line): Update.
10636
0743fc83
TT
106372020-04-17 Tom Tromey <tromey@adacore.com>
10638
10639 * auto-load.c (show_auto_load_cmd): Remove.
10640 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10641 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10642 (maintenance_print_arc_command): Remove.
10643 * tui/tui-win.c (tui_command): Remove.
10644 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10645 * tui/tui-layout.c (tui_layout_command): Remove.
10646 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10647 * python/python.c (user_set_python, user_show_python): Remove.
10648 (_initialize_python): Use add_basic_prefix_cmd,
10649 add_show_prefix_cmd.
10650 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10651 (install_gdb_commands): Use add_basic_prefix_cmd,
10652 add_show_prefix_cmd.
10653 (info_guile_command): Remove.
10654 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10655 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10656 add_show_prefix_cmd.
10657 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10658 Remove do_set and do_show parameters.
10659 * cli/cli-style.c (set_style, show_style): Remove.
10660 (_initialize_cli_style): Use add_basic_prefix_cmd,
10661 add_show_prefix_cmd.
10662 (cli_style_option::add_setshow_commands): Remove do_set and
10663 do_show parameters.
10664 (cli_style_option::add_setshow_commands): Use
10665 add_basic_prefix_cmd, add_show_prefix_cmd.
10666 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10667 (set_style_name): Remove.
10668 * cli/cli-dump.c (dump_command, append_command): Remove.
10669 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10670 (tekhex_dump_command, binary_dump_command)
10671 (binary_append_command): Remove.
10672 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10673 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10674 (init_w32_command_list): Remove; move into ...
10675 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10676 * valprint.c (set_print, show_print, set_print_raw)
10677 (show_print_raw): Remove.
10678 (_initialize_valprint): Use add_basic_prefix_cmd,
10679 add_show_prefix_cmd.
10680 * typeprint.c (set_print_type, show_print_type): Remove.
10681 (_initialize_typeprint): Use add_basic_prefix_cmd,
10682 add_show_prefix_cmd.
10683 * record.c (set_record_command, show_record_command): Remove.
10684 (_initialize_record): Use add_basic_prefix_cmd,
10685 add_show_prefix_cmd.
10686 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10687 add_show_prefix_cmd.
10688 (info_command, show_command, set_debug, show_debug): Remove.
10689 * top.h (set_history, show_history): Don't declare.
10690 * top.c (set_history, show_history): Remove.
10691 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10692 (unset_tdesc_cmd): Remove.
10693 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10694 add_show_prefix_cmd.
10695 * symtab.c (info_module_command): Remove.
10696 (_initialize_symtab): Use add_basic_prefix_cmd.
10697 * symfile.c (overlay_command): Remove.
10698 (_initialize_symfile): Use add_basic_prefix_cmd.
10699 * sparc64-tdep.c (info_adi_command): Remove.
10700 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10701 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10702 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10703 add_show_prefix_cmd.
10704 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10705 (_initialize_serial): Use add_basic_prefix_cmd,
10706 add_show_prefix_cmd.
10707 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10708 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10709 add_show_prefix_cmd.
10710 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10711 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10712 add_show_prefix_cmd.
10713 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10714 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10715 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10716 add_show_prefix_cmd.
10717 * remote.c (remote_command, set_remote_cmd): Remove.
10718 (_initialize_remote): Use add_basic_prefix_cmd.
10719 * record-full.c (set_record_full_command)
10720 (show_record_full_command): Remove.
10721 (_initialize_record_full): Use add_basic_prefix_cmd,
10722 add_show_prefix_cmd.
10723 * record-btrace.c (cmd_set_record_btrace)
10724 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10725 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10726 (cmd_show_record_btrace_pt): Remove.
10727 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10728 add_show_prefix_cmd.
10729 * ravenscar-thread.c (set_ravenscar_command)
10730 (show_ravenscar_command): Remove.
10731 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10732 add_show_prefix_cmd.
10733 * mips-tdep.c (show_mips_command, set_mips_command)
10734 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10735 add_show_prefix_cmd.
10736 * maint.c (maintenance_command, maintenance_info_command)
10737 (maintenance_check_command, maintenance_print_command)
10738 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10739 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10740 add_show_prefix_cmd.
10741 (show_per_command_cmd): Remove.
10742 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10743 Remove.
10744 (maintenance_show_test_settings_cmd): Remove.
10745 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10746 add_show_prefix_cmd.
10747 * maint-test-options.c (maintenance_test_options_command):
10748 Remove.
10749 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10750 * macrocmd.c (macro_command): Remove
10751 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10752 * language.c (set_check, show_check): Remove.
10753 (_initialize_language): Use add_basic_prefix_cmd,
10754 add_show_prefix_cmd.
10755 * infcmd.c (unset_command): Remove.
10756 (_initialize_infcmd): Use add_basic_prefix_cmd.
10757 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10758 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10759 add_show_prefix_cmd.
10760 * go32-nat.c (go32_info_dos_command): Remove.
10761 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10762 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10763 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10764 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10765 (_initialize_frame): Use add_basic_prefix_cmd,
10766 add_show_prefix_cmd.
10767 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10768 (_initialize_dcache): Use add_basic_prefix_cmd,
10769 add_show_prefix_cmd.
10770 * cp-support.c (maint_cplus_command): Remove.
10771 (_initialize_cp_support): Use add_basic_prefix_cmd.
10772 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10773 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10774 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10775 add_basic_prefix_cmd, add_show_prefix_cmd.
10776 * breakpoint.c (save_command): Remove.
10777 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10778 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10779 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10780 add_show_prefix_cmd.
10781 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10782 (set_ada_command, show_ada_command): Remove.
10783 (_initialize_ada_language): Use add_basic_prefix_cmd,
10784 add_show_prefix_cmd.
10785 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10786
3557f442
KR
107872020-04-16 Kamil Rytarowski <n54@gmx.com>
10788
10789 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10790 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10791
16197208
SM
107922020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10793
10794 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10795 warning messages.
10796
00ac85d3
SM
107972020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10798
10799 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10800 import table is not at beginning of .idata section.
10801
381ce63f
PA
108022020-04-16 Pedro Alves <palves@redhat.com>
10803
10804 * inferior.c (delete_inferior): Use delete operator directly
10805 instead of delete_program_space.
10806 * progspace.c (add_program_space): New, factored out from
10807 program_space::program_space.
10808 (remove_program_space): New, factored out from
10809 delete_program_space.
10810 (program_space::program_space): Remove intro comment. Rewrite.
10811 (program_space::~program_space): Remove intro comment. Call
10812 remove_program_space.
10813 (delete_program_space): Delete.
10814 * progspace.h (program_space::program_space): Make explicit. Move
10815 intro comment here, adjusted.
10816 (program_space::~program_space): Move intro comment here,
10817 adjusted.
10818 (delete_program_space): Remove.
10819
a010605f
TT
108202020-04-16 Tom Tromey <tromey@adacore.com>
10821
10822 * windows-nat.c (windows_nat::handle_access_violation): New
10823 function.
10824 * nat/windows-nat.h (handle_access_violation): Declare.
10825 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10826 windows-nat.c. Call handle_access_violation.
10827
efba5c23
TV
108282020-04-16 Tom de Vries <tdevries@suse.de>
10829
10830 PR symtab/25791
10831 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10832 CUs without psymtab.
10833
97ed802d
KB
108342020-04-16 Kevin Buettner <kevinb@redhat.com>
10835
10836 * python/python.c (do_start_initialization): Don't call
10837 PyEval_InitThreads for Python 3.9 and beyond.
10838
c7d64809
KR
108392020-04-15 Kamil Rytarowski <n54@gmx.com>
10840
10841 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10842 thread functions.
10843 (obsd_nat_target::wait): Likewise.
10844
ce127a96
TT
108452020-04-15 Tom Tromey <tromey@adacore.com>
10846
10847 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10848 (DEBUG_EXCEPT): Use debug_printf.
10849
99f1bc6a
AB
108502020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10851
10852 * completer.c (class completion_tracker::completion_hash_entry)
10853 <hash_name>: New member function.
10854 (completion_tracker::discard_completions): New callback to hash a
10855 completion_hash_entry, pass this to htab_create_alloc.
10856
a0e9b532
JT
108572016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10858
10859 * windows-nat.c (windows_make_so): Warn rather than stopping with
10860 an error if realpath() fails.
10861
06ca5dd4
KR
108622020-04-14 Kamil Rytarowski <n54@gmx.com>
10863
10864 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10865 (nbsd_nat_target::info_proc): Add do_status.
10866
194d088f
TV
108672020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10868 Tom de Vries <tdevries@suse.de>
10869
10870 PR symtab/25718
10871 * psympriv.h (struct partial_symtab::read_symtab)
10872 (struct partial_symtab::expand_psymtab)
10873 (struct partial_symtab::read_dependencies): Update comments.
10874 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10875 read_symtab for includer.
10876 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10877 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10878 (struct dwarf2_include_psymtab::m_readin): Remove.
10879 (struct dwarf2_include_psymtab::includer): New member function.
10880 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10881
c1a66c06
TV
108822020-04-14 Tom de Vries <tdevries@suse.de>
10883
10884 PR symtab/25720
10885 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10886 with NULL symbol_matcher and lookup_name.
10887 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10888 and lookup_name.
10889 * dwarf2/read.c (dw2_expand_symtabs_matching)
10890 (dw2_debug_names_expand_symtabs_matching): Same.
10891 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10892 Make lookup_name a pointer. Update comment.
10893 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10894 lookup_name being a pointer.
10895 * symfile.c (expand_symtabs_matching): Same.
10896 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10897 * linespec.c (iterate_over_all_matching_symtabs): Same.
10898
400b5eca
TT
108992020-04-13 Tom Tromey <tom@tromey.com>
10900
10901 * run-on-main-thread.c: Update include.
10902 * unittests/main-thread-selftests.c: Update include.
10903 * tui/tui-win.c: Update include.
10904 * tui/tui-io.c: Update include.
10905 * tui/tui-interp.c: Update include.
10906 * tui/tui-hooks.c: Update include.
10907 * top.h: Update include.
10908 * top.c: Update include.
10909 * ser-base.c: Update include.
10910 * remote.c: Update include.
10911 * remote-notif.c: Update include.
10912 * remote-fileio.c: Update include.
10913 * record-full.c: Update include.
10914 * record-btrace.c: Update include.
10915 * python/python.c: Update include.
10916 * posix-hdep.c: Update include.
10917 * mingw-hdep.c: Update include.
10918 * mi/mi-main.c: Update include.
10919 * mi/mi-interp.c: Update include.
10920 * main.c: Update include.
10921 * linux-nat.c: Update include.
10922 * interps.c: Update include.
10923 * infrun.c: Update include.
10924 * inf-loop.c: Update include.
10925 * event-top.c: Update include.
10926 * event-loop.c: Move to ../gdbsupport/.
10927 * event-loop.h: Move to ../gdbsupport/.
10928 * async-event.h: Update include.
10929 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10930
93b54c8e
TT
109312020-04-13 Tom Tromey <tom@tromey.com>
10932
10933 * tui/tui-win.c: Include async-event.h.
10934 * remote.c: Include async-event.h.
10935 * remote-notif.c: Include async-event.h.
10936 * record-full.c: Include async-event.h.
10937 * record-btrace.c: Include async-event.h.
10938 * infrun.c: Include async-event.h.
10939 * event-top.c: Include async-event.h.
10940 * event-loop.h: Move some declarations to async-event.h.
10941 * event-loop.c: Don't include ser-event.h or top.h. Move some
10942 code to async-event.c.
10943 * async-event.h: New file.
10944 * async-event.c: New file.
10945 * Makefile.in (COMMON_SFILES): Add async-event.c.
10946 (HFILES_NO_SRCDIR): Add async-event.h.
10947
c1cd3163
TT
109482020-04-13 Tom Tromey <tom@tromey.com>
10949
10950 * utils.c (flush_streams): New function.
10951 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10952
29f2bf4f
TT
109532020-04-13 Tom Tromey <tom@tromey.com>
10954
10955 * event-loop.c (handle_file_event): Use warning, not
10956 printf_unfiltered.
10957
98029d02
TT
109582020-04-13 Tom Tromey <tom@tromey.com>
10959
10960 * event-loop.c: Include <chrono>.
10961
06cc9596
TT
109622020-04-13 Tom Tromey <tom@tromey.com>
10963
10964 * gdb_select.h: Move to ../gdbsupport/.
10965 * event-loop.c: Update include path.
10966 * top.c: Update include path.
10967 * ser-base.c: Update include path.
10968 * ui-file.c: Update include path.
10969 * ser-tcp.c: Update include path.
10970 * guile/scm-ports.c: Update include path.
10971 * posix-hdep.c: Update include path.
10972 * ser-unix.c: Update include path.
10973 * gdb_usleep.c: Update include path.
10974 * mingw-hdep.c: Update include path.
10975 * inflow.c: Update include path.
10976 * infrun.c: Update include path.
10977 * event-top.c: Update include path.
10978
8ae8e197
TT
109792020-04-13 Tom Tromey <tom@tromey.com>
10980
10981 * configure: Rebuild.
10982 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10983
58cf28e8
TT
109842020-04-13 Tom Tromey <tom@tromey.com>
10985
10986 * event-loop.h (start_event_loop): Don't declare.
10987 * event-loop.c (start_event_loop): Move...
10988 * main.c (start_event_loop): ...here. Now static.
10989
b7f999ae
SDJ
109902020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10991
10992 * MAINTAINERS: Update my email address.
10993
1085dfd4
KR
109942020-04-12 Kamil Rytarowski <n54@gmx.com>
10995
10996 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10997 IP_ALL.
10998
49d1d1f5
KR
109992020-04-12 Kamil Rytarowski <n54@gmx.com>
11000
11001 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11002 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11003
b4848d2a
KR
110042020-04-12 Kamil Rytarowski <n54@gmx.com>
11005
11006 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11007 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11008
51c133d5
KR
110092020-04-12 Kamil Rytarowski <n54@gmx.com>
11010
11011 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11012
54b8cbd0
KR
110132020-04-11 Kamil Rytarowski <n54@gmx.com>
11014
11015 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11016 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11017 (nbsd_nat_target::info_proc): New functions.
11018 * nbsd-nat.c (kinfo_get_vmmap): New function.
11019 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11020 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11021 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11022 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11023 functions.
11024 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11025 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11026 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11027 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11028 (KINFO_VME_FLAG_GROWS_DOWN): New.
11029
cf83625d
AS
110302020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11031
11032 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11033 bit shift.
11034
0c4311ab
TT
110352020-04-10 Tom Tromey <tromey@adacore.com>
11036
11037 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11038
3e65b3e9
TT
110392020-04-10 Tom Tromey <tromey@adacore.com>
11040
11041 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11042 separate debug files.
11043
13302e95
HD
110442020-04-10 Hannes Domani <ssbssa@yahoo.de>
11045
11046 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11047 Move to...
11048 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11049 ... here.
11050 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11051 Check for STATUS_WX86_BREAKPOINT.
11052 (windows_nat_target::wait): Same.
11053
bdfc1e8a
TV
110542020-04-10 Tom de Vries <tdevries@suse.de>
11055
11056 PR cli/25808
11057 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11058
f4460aec
SM
110592020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11060
11061 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11062 (Write After Approval): Remove Tom de Vries.
11063
a25198bb
BE
110642020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11065
11066 revert partially:
11067 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11068
aac66a4c
SM
11069 * buildsym.c (record_line): Fix undefined behavior and preserve
11070 lines at eof.
a25198bb 11071
206c98a6
KR
110722020-04-09 Kamil Rytarowski <n54@gmx.com>
11073
11074 * auxv.h (svr4_auxv_parse): New.
11075 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11076 and generic_auxv_parse.
11077 (svr4_auxv_parse): Add.
11078 * obsd-tdep.c: Include "auxv.h".
11079 (obsd_auxv_parse): Remove.
11080 (obsd_init_abi): Remove comment.
11081 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11082 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11083 * nbsd-tdep.c: Include "auxv.h".
11084 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11085
71fbdbaf
TT
110862020-04-08 Tom Tromey <tromey@adacore.com>
11087
11088 * nat/windows-nat.h (last_wait_event): Don't declare.
11089 (wait_for_debug_event): Update comment.
11090 * nat/windows-nat.c (last_wait_event): Now static.
11091
2c1d95e8
TT
110922020-04-08 Tom Tromey <tromey@adacore.com>
11093
11094 * windows-nat.c (wait_for_debug_event): Move to
11095 nat/windows-nat.c.
11096 * nat/windows-nat.h (wait_for_debug_event): Declare.
11097 * nat/windows-nat.c (wait_for_debug_event): Move from
11098 windows-nat.c. No longer static.
11099
d2977bc4
TT
111002020-04-08 Tom Tromey <tromey@adacore.com>
11101
11102 * windows-nat.c (get_windows_debug_event): Use
11103 fetch_pending_stop.
11104 * nat/windows-nat.h (fetch_pending_stop): Declare.
11105 * nat/windows-nat.c (fetch_pending_stop): New function.
11106
e758e19c
TT
111072020-04-08 Tom Tromey <tromey@adacore.com>
11108
11109 * windows-nat.c (windows_continue): Use matching_pending_stop and
11110 continue_last_debug_event.
11111 * nat/windows-nat.h (matching_pending_stop)
11112 (continue_last_debug_event): Declare.
11113 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11114 (matching_pending_stop, continue_last_debug_event): New
11115 functions.
11116
8d30e395
TT
111172020-04-08 Tom Tromey <tromey@adacore.com>
11118
11119 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11120 (handle_exception_result): Move to nat/windows-nat.h.
11121 (DEBUG_EXCEPTION_SIMPLE): Remove.
11122 (windows_nat::handle_ms_vc_exception): New function.
11123 (handle_exception): Move to nat/windows-nat.c.
11124 (get_windows_debug_event): Update.
11125 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11126 nat/windows-nat.c.
11127 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11128 (handle_exception_result): Move from windows-nat.c.
11129 (handle_exception): Declare.
11130 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11131 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11132 windows-nat.c.
11133
29de418d
TT
111342020-04-08 Tom Tromey <tromey@adacore.com>
11135
11136 * windows-nat.c (exception_count, event_count): Remove.
11137 (handle_exception, get_windows_debug_event)
11138 (do_initial_windows_stuff): Update.
11139
a816ba18
TT
111402020-04-08 Tom Tromey <tromey@adacore.com>
11141
11142 * windows-nat.c (windows_nat::handle_load_dll)
11143 (windows_nat::handle_unload_dll): Rename. No longer static.
11144 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11145 Declare.
11146
a00caa12
TT
111472020-04-08 Tom Tromey <tromey@adacore.com>
11148
11149 * complaints.h (stop_whining): Declare at top-level.
11150 (complaint): Don't declare stop_whining.
11151
d41b524f
TT
111522020-04-08 Tom Tromey <tromey@adacore.com>
11153
11154 * windows-nat.c (windows_nat::handle_output_debug_string):
11155 Rename. No longer static.
11156 * nat/windows-nat.h (handle_output_debug_string): Declare.
11157
3c76026d
TT
111582020-04-08 Tom Tromey <tromey@adacore.com>
11159
11160 * windows-nat.c (current_process_handle, current_process_id)
11161 (main_thread_id, last_sig, current_event, last_wait_event)
11162 (current_windows_thread, desired_stop_thread_id, pending_stops)
11163 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11164 (display_selectors, fake_create_process)
11165 (get_windows_debug_event): Update.
11166 * nat/windows-nat.h (current_process_handle, current_process_id)
11167 (main_thread_id, last_sig, current_event, last_wait_event)
11168 (current_windows_thread, desired_stop_thread_id, pending_stops)
11169 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11170 * nat/windows-nat.c (current_process_handle, current_process_id)
11171 (main_thread_id, last_sig, current_event, last_wait_event)
11172 (current_windows_thread, desired_stop_thread_id, pending_stops)
11173 (siginfo_er): New globals. Move from windows-nat.c.
11174
9d8679cc
TT
111752020-04-08 Tom Tromey <tromey@adacore.com>
11176
11177 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11178 (handle_load_dll): Update.
11179 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11180
28688adf
TT
111812020-04-08 Tom Tromey <tromey@adacore.com>
11182
11183 * windows-nat.c (enum thread_disposition_type): Move to
11184 nat/windows-nat.h.
11185 (windows_nat::thread_rec): Rename from thread_rec. No longer
11186 static.
11187 (windows_add_thread, windows_nat_target::fetch_registers)
11188 (windows_nat_target::store_registers, handle_exception)
11189 (windows_nat_target::resume, get_windows_debug_event)
11190 (windows_nat_target::get_tib_address)
11191 (windows_nat_target::thread_name)
11192 (windows_nat_target::thread_alive): Update.
11193 * nat/windows-nat.h (enum thread_disposition_type): Move from
11194 windows-nat.c.
11195 (thread_rec): Declare.
11196
4834dad0
TT
111972020-04-08 Tom Tromey <tromey@adacore.com>
11198
11199 * windows-nat.c: Add "using namespace".
11200 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11201 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11202
65bafd5b
TT
112032020-04-08 Tom Tromey <tromey@adacore.com>
11204
11205 * nat/windows-nat.h (struct windows_thread_info): Declare
11206 destructor.
11207 * nat/windows-nat.c (~windows_thread_info): New.
11208
0a4afda3
TT
112092020-04-08 Tom Tromey <tromey@adacore.com>
11210
11211 PR gdb/22992
11212 * windows-nat.c (current_event): Update comment.
11213 (last_wait_event, desired_stop_thread_id): New globals.
11214 (struct pending_stop): New.
11215 (pending_stops): New global.
11216 (windows_nat_target) <stopped_by_sw_breakpoint>
11217 <supports_stopped_by_sw_breakpoint>: New methods.
11218 (windows_fetch_one_register): Add assertions. Adjust PC.
11219 (windows_continue): Handle pending stops. Suspend other threads
11220 when stepping. Use last_wait_event
11221 (wait_for_debug_event): New function.
11222 (get_windows_debug_event): Use wait_for_debug_event. Handle
11223 pending stops. Queue spurious stops.
11224 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11225 (windows_nat_target::kill): Use wait_for_debug_event.
11226 * nat/windows-nat.h (struct windows_thread_info)
11227 <stopped_at_software_breakpoint>: New field.
11228 * nat/windows-nat.c (windows_thread_info::resume): Clear
11229 stopped_at_software_breakpoint.
11230
8e61ebec
TT
112312020-04-08 Tom Tromey <tromey@adacore.com>
11232
11233 * windows-nat.c (enum thread_disposition_type): New.
11234 (thread_rec): Replace "get_context" parameter with "disposition";
11235 change type.
11236 (windows_add_thread, windows_nat_target::fetch_registers)
11237 (windows_nat_target::store_registers, handle_exception)
11238 (windows_nat_target::resume, get_windows_debug_event)
11239 (windows_nat_target::get_tib_address)
11240 (windows_nat_target::thread_name)
11241 (windows_nat_target::thread_alive): Update.
11242
98a03287
TT
112432020-04-08 Tom Tromey <tromey@adacore.com>
11244
11245 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11246 (windows_continue): Use windows_continue::resume.
11247 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11248 resume>: Declare new methods.
11249 * nat/windows-nat.c: New file.
11250 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11251
7c7411bc
TT
112522020-04-08 Tom Tromey <tromey@adacore.com>
11253
11254 * windows-nat.c (windows_add_thread, windows_delete_thread)
11255 (windows_nat_target::fetch_registers)
11256 (windows_nat_target::store_registers, fake_create_process)
11257 (windows_nat_target::resume, windows_nat_target::resume)
11258 (get_windows_debug_event, windows_nat_target::wait)
11259 (windows_nat_target::pid_to_str)
11260 (windows_nat_target::get_tib_address)
11261 (windows_nat_target::get_ada_task_ptid)
11262 (windows_nat_target::thread_name)
11263 (windows_nat_target::thread_alive): Use lwp, not tid.
11264
2950fdf7
TT
112652020-04-08 Tom Tromey <tromey@adacore.com>
11266
11267 * windows-nat.c (handle_exception)
11268 (windows_nat_target::thread_name): Update.
11269 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11270 <name>: Now unique_xmalloc_ptr.
11271
62fe396b
TT
112722020-04-08 Tom Tromey <tromey@adacore.com>
11273
11274 * windows-nat.c (thread_rec)
11275 (windows_nat_target::fetch_registers): Update.
11276 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11277 Update comment.
11278 <debug_registers_changed, reload_context>: Now bool.
11279
e9534bd2
TT
112802020-04-08 Tom Tromey <tromey@adacore.com>
11281
11282 * windows-nat.c (windows_add_thread): Use new.
11283 (windows_init_thread_list, windows_delete_thread): Use delete.
11284 (get_windows_debug_event): Update.
11285 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11286 destructor, and initializers.
11287
ae1f8880
TT
112882020-04-08 Tom Tromey <tromey@adacore.com>
11289
11290 * windows-nat.c (struct windows_thread_info): Remove.
11291 * nat/windows-nat.h: New file.
11292
55a1e039
TT
112932020-04-08 Tom Tromey <tromey@adacore.com>
11294
11295 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11296 (thread_rec, windows_add_thread, windows_delete_thread)
11297 (windows_continue): Update.
11298
93366324
TT
112992020-04-08 Tom Tromey <tromey@adacore.com>
11300
11301 * windows-nat.c (struct windows_thread_info): Remove typedef.
11302 (thread_head): Remove.
11303 (thread_list): New global.
11304 (thread_rec, windows_add_thread, windows_init_thread_list)
11305 (windows_delete_thread, windows_continue): Update.
11306
0f2265e2
SM
113072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11308
11309 * windows-tdep.h (windows_init_abi): Add comment.
11310 (cygwin_init_abi): New declaration.
11311 * windows-tdep.c: Split signal enumeration in two, one for
11312 Windows and one for Cygwin.
11313 (windows_gdb_signal_to_target): Only deal with signal of the
11314 Windows OS ABI.
11315 (cygwin_gdb_signal_to_target): New function.
11316 (windows_init_abi): Rename to windows_init_abi_common, don't set
11317 gdb_signal_to_target gdbarch method. Add new new function with
11318 this name.
11319 (cygwin_init_abi): New function.
11320 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11321 comment. Don't call windows_init_abi.
11322 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11323 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11324 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11325 i386_windows_init_abi_common, don't call windows_init_abi. Add
11326 a new function of this name.
11327 (i386_cygwin_init_abi): New function.
11328 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11329 OS ABI Cygwin.
11330
3810f182
SM
113312020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11332
11333 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11334 parameter.c.
11335 (dwarf2_read_gdb_index): Update.
11336
063f8e80
KR
113372020-04-07 Kamil Rytarowski <n54@gmx.com>
11338
11339 * nbsd-tdep.c: Include "objfiles.h".
11340 (nbsd_skip_solib_resolver): New.
11341 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11342
85a9510c 113432020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11344
11345 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11346 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11347 with DW_LLE_base_addressx are being emitted in DWARFv5.
11348 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11349 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11350 unsigned integer.
11351
9fc3eaae 113522020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11353
11354 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11355 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11356 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11357 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11358 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11359 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11360 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11361
11362
41144253 113632020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11364
11365 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11366 (read_loclist_index): New function definition.
11367 (lookup_loclist_base): New function definition.
11368 (read_loclist_header): New function definition.
11369 (dwarf2_cu): Add loclist_base and loclist_header field.
11370 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11371 (read_full_die_1): Read the value of DW_AT_loclists_base.
11372 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11373 (read_attribute_value): Handle DW_FORM_loclistx.
11374 (skip_one_die): Handle DW_FORM_loclistx.
11375 (loclist_header): New structure declaration.
11376 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11377
9f4e76a4
SM
113782020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11379
11380 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11381 constructor. Remove `addr` parameter from other constructor and
11382 add `per_cu` parameter.
11383 * dwarf2/read.c (create_partial_symtab): Update.
11384
25c11aca
TV
113852020-04-07 Tom de Vries <tdevries@suse.de>
11386
11387 PR symtab/25796
11388 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11389 (partial_die_info::fixup): Inherit has_const_value.
11390
5707e24b
TV
113912020-04-07 Tom de Vries <tdevries@suse.de>
11392
11393 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11394 symbols without address.
11395
05f00e22
KR
113962020-04-06 Kamil Rytarowski <n54@gmx.com>
11397
11398 * nbsd-nat.h (struct thread_info): Add forward declaration.
11399 (nbsd_nat_target::thread_alive): Add.
11400 (nbsd_nat_target::thread_name): Likewise.
11401 (nbsd_nat_target::update_thread_list): Likewise.
11402 (update_thread_list::post_attach): Likewise.
11403 (post_attach::pid_to_str): Likewise.
11404 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11405 (nbsd_thread_lister): Add.
11406 (nbsd_nat_target::thread_alive): Likewise.
11407 (nbsd_nat_target::thread_name): Likewise.
11408 (nbsd_add_threads): Likewise.
11409 (update_thread_list::post_attach): Likewise.
11410 (nbsd_nat_target::update_thread_list): Likewise.
11411 (post_attach::pid_to_str): Likewise.
11412
6ee448cc
TT
114132020-04-06 Tom Tromey <tromey@adacore.com>
11414
11415 * ada-valprint.c (print_variant_part): Extract the variant field.
11416 (print_field_values): Use the field as the outer value when
11417 recursing.
11418
dea34e8c
TT
114192020-04-06 Tom Tromey <tromey@adacore.com>
11420
11421 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11422 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11423 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11424 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11425 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11426
93689ce9
TT
114272020-04-06 Tom Tromey <tromey@adacore.com>
11428
11429 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11430 TYPE_CODE_ERROR.
11431
79743962
KR
114322020-04-06 Kamil Rytarowski <n54@gmx.com>
11433
11434 * nbsd-tdep.c: Include "gdbarch.h".
11435 Define enum with NetBSD signal numbers.
11436 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11437 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11438 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11439 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11440 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11441 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11442 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11443 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11444 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11445 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11446 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11447 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11448
9e7c9a03
HD
114492020-04-03 Hannes Domani <ssbssa@yahoo.de>
11450
11451 PR gdb/25325
11452 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11453
d9e49b61
TT
114542020-04-03 Tom Tromey <tromey@adacore.com>
11455
11456 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11457 Read constant block.
11458
e0fc5c3f
SM
114592020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11460
11461 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11462 (gdb_bfd_get_full_section_contents): New declaration.
11463 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11464 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11465 gdb_bfd_get_full_section_contents.
11466
e2ff18a0
SM
114672020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11468
11469 * exec.c (build_section_table): Replace internal_error with
11470 gdb_assert.
11471 (section_table_xfer_memory_partial): Likewise.
11472 * mdebugread.c (parse_partial_symbols): Likewise.
11473 * psymtab.c (lookup_partial_symbol): Likewise.
11474 * utils.c (wrap_here): Likewise.
11475
0830d301
TT
114762020-04-02 Tom Tromey <tromey@adacore.com>
11477
11478 * f-lang.c (build_fortran_types): Use arch_type to initialize
11479 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11480
e7da7f8f
TT
114812020-04-02 Tom Tromey <tromey@adacore.com>
11482
11483 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11484 of attributes.
11485
c90d28ac
AB
114862020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11487 Bernd Edlinger <bernd.edlinger@hotmail.de>
11488 Tom Tromey <tromey@adacore.com>
11489
11490 * buildsym.c (buildsym_compunit::record_line): Remove
11491 deduplication code.
11492
1aa98955
TV
114932020-04-02 Tom de Vries <tdevries@suse.de>
11494
11495 PR ada/24671
11496 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11497
d3214198
TV
114982020-04-02 Tom de Vries <tdevries@suse.de>
11499
11500 * dwarf2/read.c (dwarf2_gdb_index_functions,
11501 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11502 NULL.
11503 * psymtab.c (psym_lookup_global_symbol_language): New function.
11504 (psym_functions): Init psym_lookup_global_symbol_language with
11505 psym_lookup_global_symbol_language.
11506 * symfile-debug.c (debug_sym_quick_functions): Init
11507 lookup_global_symbol_language with NULL.
11508 * symfile.c (set_initial_language): Remove fixme comment.
11509 * symfile.h (struct quick_symbol_functions): Add
11510 lookup_global_symbol_language.
11511 * symtab.c (find_quick_global_symbol_language): New function.
11512 (find_main_name): Use find_quick_global_symbol_language.
11513
2836752f
SM
115142020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11515
11516 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11517
64dc2d4b
BE
115182020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11519
11520 * buildsym.c (record_line): Fix undefined behavior and preserve
11521 lines at eof.
11522
bbe3dc41
BE
115232020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11524
11525 * buildsym.c (record_line): Fix the resizing condition.
11526
6b4a335b
TT
115272020-04-01 Tom Tromey <tom@tromey.com>
11528
11529 * value.h (value_literal_complex): Add comment.
11530 * valops.c (value_literal_complex): Refer to value.h.
11531
3638a098
TT
115322020-04-01 Tom Tromey <tom@tromey.com>
11533
11534 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11535 (scalar_type): New rule, from typebase.
11536 (typebase): Use scalar_type. Recognize complex types.
11537 (field_name): Handle FLOAT_KEYWORD.
11538 (ident_tokens): Add _Complex and __complex__.
11539
c34e8714
TT
115402020-04-01 Tom Tromey <tom@tromey.com>
11541
11542 PR exp/25299:
11543 * valarith.c (promotion_type, complex_binop): New functions.
11544 (scalar_binop): Handle complex numbers. Use promotion_type.
11545 (value_pos, value_neg, value_complement): Handle complex numbers.
11546
fa649bb7
TT
115472020-04-01 Tom Tromey <tom@tromey.com>
11548
11549 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11550 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11551 (parse_number): Handle complex numbers.
11552
981c08ce
TT
115532020-04-01 Tom Tromey <tom@tromey.com>
11554
11555 * c-valprint.c (c_decorations): Change complex suffix to "i".
11556
4c99290d
TT
115572020-04-01 Tom Tromey <tom@tromey.com>
11558
11559 * valprint.c (generic_value_print_complex): Use accessors.
11560 * value.h (value_real_part, value_imaginary_part): Declare.
11561 * valops.c (value_real_part, value_imaginary_part): New
11562 functions.
11563 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11564
5b930b45
TT
115652020-04-01 Tom Tromey <tom@tromey.com>
11566
11567 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11568 (read_range_type): Update.
11569 * mdebugread.c (basic_type): Update.
11570 * go-lang.c (build_go_types): Use init_complex_type.
11571 * gdbtypes.h (struct main_type) <complex_type>: New member.
11572 (init_complex_type): Update.
11573 (arch_complex_type): Don't declare.
11574 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11575 Make name if none given. Use alloc_type_copy. Look for cached
11576 complex type.
11577 (arch_complex_type): Remove.
11578 (gdbtypes_post_init): Use init_complex_type.
11579 * f-lang.c (build_fortran_types): Use init_complex_type.
11580 * dwarf2/read.c (read_base_type): Update.
11581 * d-lang.c (build_d_types): Use init_complex_type.
11582 * ctfread.c (read_base_type): Update.
11583
53cccef1
TBA
115842020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11585
11586 * infrun.c (stop_all_threads): Update assertion, plus when
11587 stopping threads, take into account that we might be trying
11588 to stop an all-stop target.
11589 (stop_waiting): Call 'stop_all_threads' if there exists a
11590 non-stop target.
11591
a0714d30
TBA
115922020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11593
11594 * target.h (exists_non_stop_target): New function declaration.
11595 * target.c (exists_non_stop_target): New function.
11596
60e22c1e
HD
115972020-04-01 Hannes Domani <ssbssa@yahoo.de>
11598
11599 PR gdb/24789
11600 * eval.c (is_integral_or_integral_reference): New function.
11601 (evaluate_subexp_standard): Allow integer references in
11602 pointer arithmetic.
11603
e139a727
TBA
116042020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11605
11606 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11607 check for no ptid in the stop reply when the target is non-stop.
11608
e0802d59
TT
116092020-04-01 Tom Tromey <tromey@adacore.com>
11610
11611 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11612 "name" parameter to rvalue reference. Initialize m_name_holder.
11613 <lookup_name_info>: New overloads.
11614 <name>: Return gdb::string_view.
11615 <c_str>: New method.
11616 <make_ignore_params>: Update.
11617 <search_name_hash>: Update.
11618 <language_lookup_name>: Return const char *.
11619 <m_name>: Change type.
11620 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11621 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11622 (lookup_name_info::match_any): Update.
11623 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11624 Update.
11625 * minsyms.c (linkage_name_str): Update.
11626 * language.c (default_symbol_name_matcher): Update.
11627 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11628 Update.
11629 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11630 (ada_lookup_name_info::ada_lookup_name_info): Update.
11631 (literal_symbol_name_matcher): Update.
11632
8c072cb6
TT
116332020-04-01 Tom Tromey <tromey@adacore.com>
11634
11635 * psymtab.c (psymtab_search_name): Remove function.
11636 (psym_lookup_symbol): Create search name and lookup name here.
11637 (lookup_partial_symbol): Remove "name" parameter; add
11638 lookup_name.
11639 (psym_expand_symtabs_for_function): Update.
11640
6f29a534
TT
116412020-03-31 Joel Jones <joelkevinjones@gmail.com>
11642
11643 PR tui/25597:
11644 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11645
af62665e
TT
116462020-03-31 Tom Tromey <tromey@adacore.com>
11647
11648 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11649 memcpy.
11650
d1a89da5
NC
116512020-03-30 Nelson Chu <nelson.chu@sifive.com>
11652
11653 * features/riscv/32bit-csr.xml: Regenerated.
11654 * features/riscv/64bit-csr.xml: Regenerated.
11655
d8af9068
TT
116562020-03-30 Tom Tromey <tromey@adacore.com>
11657
11658 * ada-valprint.c (print_variant_part): Update.
11659 * ada-lang.h (ada_which_variant_applies): Update.
11660 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11661 outer_valaddr parameters; replace with "outer" value parameter.
11662 (to_fixed_variant_branch_type): Update.
11663
227c0bf4
PFC
116642020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11665
11666 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11667 <list>. Remove inclusion of observable.h.
11668 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11669 (struct arch_lwp_info): New struct.
11670 (class ppc_linux_dreg_interface): New class.
11671 (struct ppc_linux_process_info): New struct.
11672 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11673 <low_new_clone, low_forget_process, low_prepare_to_resume>
11674 <copy_thread_dreg_state, mark_thread_stale>
11675 <mark_debug_registers_changed, register_hw_breakpoint>
11676 <clear_hw_breakpoint, register_wp, clear_wp>
11677 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11678 <num_memory_accesses, get_trigger_type>
11679 <create_watchpoint_request, hwdebug_point_cmp>
11680 <init_arch_lwp_info, get_arch_lwp_info>
11681 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11682 methods.
11683 <struct ptid_hash>: New inner struct.
11684 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11685 members.
11686 (saved_dabr_value, hwdebug_info, max_slots_number)
11687 (struct hw_break_tuple, struct thread_points, ppc_threads)
11688 (have_ptrace_hwdebug_interface)
11689 (hwdebug_find_thread_points_by_tid)
11690 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11691 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11692 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11693 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11694 use m_dreg_interface.
11695 (hwdebug_point_cmp): Change to...
11696 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11697 reference arguments instead of pointers.
11698 (ppc_linux_nat_target::ranged_break_num_registers): Use
11699 m_dreg_interface.
11700 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11701 m_dreg_interface. Call register_hw_breakpoint.
11702 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11703 m_dreg_interface. Call clear_hw_breakpoint.
11704 (get_trigger_type): Change to...
11705 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11706 comment.
11707 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11708 use m_dreg_interface. Call register_hw_breakpoint.
11709 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11710 use m_dreg_interface. Call clear_hw_breakpoint.
11711 (can_use_watchpoint_cond_accel): Change to...
11712 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11713 method. Update comment, use m_dreg_interface and
11714 m_process_info.
11715 (calculate_dvc): Change to...
11716 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11717 m_dreg_interface.
11718 (num_memory_accesses): Change to...
11719 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11720 (check_condition): Change to...
11721 (ppc_linux_nat_target::check_condition): ...this method.
11722 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11723 comment, use m_dreg_interface.
11724 (create_watchpoint_request): Change to...
11725 (ppc_linux_nat_target::create_watchpoint_request): ...this
11726 method. Use m_dreg_interface.
11727 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11728 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11729 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11730 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11731 (ppc_linux_nat_target::low_forget_process)
11732 (ppc_linux_nat_target::low_new_fork)
11733 (ppc_linux_nat_target::low_new_clone)
11734 (ppc_linux_nat_target::low_delete_thread)
11735 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11736 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11737 only call mark_thread_stale.
11738 (ppc_linux_thread_exit): Remove.
11739 (ppc_linux_nat_target::stopped_data_address): Change to...
11740 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11741 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11742 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11743 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11744 comment. Call low_stopped_data_address.
11745 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11746 m_dreg_interface.
11747 (ppc_linux_nat_target::masked_watch_num_registers): Use
11748 m_dreg_interface.
11749 (ppc_linux_nat_target::copy_thread_dreg_state)
11750 (ppc_linux_nat_target::mark_thread_stale)
11751 (ppc_linux_nat_target::mark_debug_registers_changed)
11752 (ppc_linux_nat_target::register_hw_breakpoint)
11753 (ppc_linux_nat_target::clear_hw_breakpoint)
11754 (ppc_linux_nat_target::register_wp)
11755 (ppc_linux_nat_target::clear_wp)
11756 (ppc_linux_nat_target::init_arch_lwp_info)
11757 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11758 (_initialize_ppc_linux_nat): Remove observer callback.
11759
4db10d8f
PFC
117602020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11761
11762 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11763 (ppc_linux_nat_target::auxv_parse)
11764 (ppc_linux_nat_target::read_description)
11765 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11766 Move up.
11767
1310c1b0
PFC
117682020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11769
11770 * linux-nat.h (low_new_clone): New method.
11771 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11772
69b037c3
SM
117732020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11774
11775 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11776 (dbx_expand_psymtab): ... this.
11777 (start_psymtab): Update.
11778 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11779 (mdebug_expand_psymtab): ... this.
11780 (parse_partial_symbols): Update.
11781 (new_psymtab): Update.
11782 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11783 (xcoff_expand_psymtab): ... this.
11784 (xcoff_start_psymtab): Update.
11785
48993951
SM
117862020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11787
11788 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11789 <expand_dependencies>: ... this.
11790 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11791 (partial_symtab::expand_dependencies): ... this.
11792 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11793 Update.
11794 (dwarf2_psymtab::expand_psymtab): Update.
11795 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11796 * mdebugread.c (psymtab_to_symtab_1): Update.
11797 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11798
3ad83046
SM
117992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11800
11801 * psympriv.h (discard_psymtab): Remove.
11802 * dbxread.c (dbx_end_psymtab): Update.
11803 * xcoffread.c (xcoff_end_psymtab): Update.
11804
4d1b9ab6
TT
118052020-03-28 Tom Tromey <tom@tromey.com>
11806
11807 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11808 comment.
11809
f1749218
TT
118102020-03-28 Tom Tromey <tom@tromey.com>
11811
11812 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11813
ebea7626
HD
118142020-03-27 Hannes Domani <ssbssa@yahoo.de>
11815
11816 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11817
a879b4d5
JB
118182020-03-26 John Baldwin <jhb@FreeBSD.org>
11819
11820 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11821
0826b30a
TT
118222020-03-26 Tom Tromey <tom@tromey.com>
11823
11824 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11825 (mark_common_block_symbol_computed, read_tag_string_type)
11826 (attr_to_dynamic_prop, read_subrange_type): Update.
11827 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11828 to be methods on struct attribute.
11829 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11830 (read_call_site_scope, partial_die_info::read)
11831 (partial_die_info::read, lookup_die_type, follow_die_ref):
11832 Update.
11833 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11834 from dwarf2_get_ref_die_offset.
11835 (attribute::constant_value): New method, from
11836 dwarf2_get_attr_constant_value.
11837 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11838 Declare method.
11839 <constant_value>: New method.
11840
2b2558bf
TT
118412020-03-26 Tom Tromey <tom@tromey.com>
11842
11843 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11844 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11845 (dwarf_type_encoding_name): Move to stringify.c.
11846 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11847 * dwarf2/stringify.c: New file.
11848 * dwarf2/stringify.h: New file.
11849
eeb64781
TT
118502020-03-26 Tom Tromey <tom@tromey.com>
11851
11852 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11853 Rewrite.
11854
a39fdb41
TT
118552020-03-26 Tom Tromey <tom@tromey.com>
11856
11857 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11858 methods.
11859 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11860 (lookup_ranges_base): Likewise.
11861 (read_cutu_die_from_dwo, read_full_die_1): Update.
11862
436c571c
TT
118632020-03-26 Tom Tromey <tom@tromey.com>
11864
11865 * dwarf2/read.c (read_import_statement, read_file_scope)
11866 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11867 (read_lexical_block_scope, read_call_site_scope)
11868 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11869 (handle_struct_member_die, process_structure_scope)
11870 (update_enumeration_type_from_children)
11871 (process_enumeration_scope, read_array_type, read_common_block)
11872 (read_namespace, read_module, read_subroutine_type): Update.
11873 (sibling_die): Remove.
11874
052c8bb8
TT
118752020-03-26 Tom Tromey <tom@tromey.com>
11876
11877 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11878 (build_type_psymtabs_reader, read_structure_type)
11879 (read_enumeration_type, read_full_die_1): Update.
11880 (dwarf2_attr_no_follow): Move to die.h.
11881 * dwarf2/die.h (struct die_info) <attr>: New method.
11882
2b24b6e4
TT
118832020-03-26 Tom Tromey <tom@tromey.com>
11884
11885 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11886 <base_address>: Now an optional.
11887 (dwarf2_find_base_address, dwarf2_rnglists_process)
11888 (dwarf2_ranges_process, fill_in_loclist_baton)
11889 (dwarf2_symbol_mark_computed): Update.
11890
c2d50fd0
TT
118912020-03-26 Tom Tromey <tom@tromey.com>
11892
11893 * dwarf2/read.c (struct die_info): Move to die.h.
11894 * dwarf2/die.h: New file.
11895
0df7ad3a
TT
118962020-03-26 Tom Tromey <tom@tromey.com>
11897
11898 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11899 * dwarf2/read.c
11900 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11901 Move to line-header.c.
11902 (read_checked_initial_length_and_offset, read_formatted_entries):
11903 Likewise.
11904 (dwarf_decode_line_header): Split into two.
11905 * dwarf2/line-header.c
11906 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11907 Move from read.c.
11908 (read_checked_initial_length_and_offset, read_formatted_entries):
11909 Likewise.
11910 (dwarf_decode_line_header): New function, split from read.c.
11911
86c0bb4c
TT
119122020-03-26 Tom Tromey <tom@tromey.com>
11913
11914 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11915 Declare method.
11916 * dwarf2/read.c (read_attribute_value): Update.
11917 (dwarf2_per_objfile::read_line_string): Rename from
11918 read_indirect_line_string.
11919 (read_formatted_entries): Update.
11920
2ef46c2f
TT
119212020-03-26 Tom Tromey <tom@tromey.com>
11922
11923 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11924 variable.
11925
4f9c1eda
TT
119262020-03-26 Tom Tromey <tom@tromey.com>
11927
11928 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11929 const.
11930 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11931 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11932 parameter const.
11933
5a0e026f
TT
119342020-03-26 Tom Tromey <tom@tromey.com>
11935
11936 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11937 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11938 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11939 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11940
8844c11b
TT
119412020-03-26 Tom Tromey <tom@tromey.com>
11942
11943 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11944 file_names_size, file_full_name, file_file_name>: Use const.
11945 <file_name_at, file_names>: Add const overload.
11946 * dwarf2/line-header.c (line_header::file_file_name)
11947 (line_header::file_full_name): Update.
11948
c90ec28a
TT
119492020-03-26 Tom Tromey <tom@tromey.com>
11950
11951 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11952 (macro_start_file, consume_improper_spaces)
11953 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11954 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11955 (dwarf_decode_macros): Move to macro.c.
11956 * dwarf2/macro.c: New file.
11957 * dwarf2/macro.h: New file.
11958 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11959
4f44ae6c
TT
119602020-03-26 Tom Tromey <tom@tromey.com>
11961
11962 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11963 method.
11964 * dwarf2/section.c: New method. From
11965 read_indirect_string_at_offset_from.
11966 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11967 (read_indirect_string_at_offset_from): Move to section.c.
11968 (read_indirect_string_at_offset): Rewrite.
11969 (read_indirect_line_string_at_offset): Remove.
11970 (read_indirect_string, read_indirect_line_string)
11971 (dwarf_decode_macro_bytes): Update.
11972
a0194fa8
TT
119732020-03-26 Tom Tromey <tom@tromey.com>
11974
11975 * dwarf2/section.h (struct dwarf2_section_info)
11976 <overload_complaint>: Declare.
11977 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11978 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11979 Rename from dwarf2_section_buffer_overflow_complaint.
11980 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11981 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11982
3d27bbdb
TT
119832020-03-26 Tom Tromey <tom@tromey.com>
11984
11985 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11986 Declare.
11987 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11988 Move from read.c.
11989 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11990 to section.c.
11991
9eac9650
TT
119922020-03-26 Tom Tromey <tom@tromey.com>
11993
11994 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11995
bf80d710
TT
119962020-03-26 Tom Tromey <tom@tromey.com>
11997
11998 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11999 "builder".
12000 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12001 parameter.
12002 (dwarf_decode_macros): Update.
12003
0314b390
TT
120042020-03-26 Tom Tromey <tom@tromey.com>
12005
12006 * dwarf2/read.c (read_attribute_value): Update.
12007 (read_indirect_string_from_dwz): Move to dwz.c; change into
12008 method.
12009 (dwarf_decode_macro_bytes): Update.
12010 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12011 * dwarf2/dwz.c: New file.
12012 * Makefile.in (COMMON_SFILES): Add dwz.c.
12013
9fda78b6
TT
120142020-03-26 Tom Tromey <tom@tromey.com>
12015
12016 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12017 * dwarf2/read.c: Add include.
12018 * dwarf2/index-write.c: Add include.
12019 * dwarf2/index-cache.c: Add include.
12020 * dwarf2/dwz.h: New file.
12021
33aa3c10
TT
120222020-03-25 Tom Tromey <tom@tromey.com>
12023
12024 * compile/compile-object-load.c (get_out_value_type): Mention
12025 correct symbol name in error message.
12026
d503b685
HD
120272020-03-25 Hannes Domani <ssbssa@yahoo.de>
12028
12029 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12030
7b1eff95
TV
120312020-03-25 Tom de Vries <tdevries@suse.de>
12032
12033 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12034 * symmisc.c (dump_symtab_1): Print user and includes fields.
12035 (maintenance_info_symtabs): Same.
12036
dd895392
AB
120372020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12038
12039 PR gdb/25534
12040 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12041 (riscv_regcache_cooked_write): New function.
12042 (riscv_push_dummy_call): Use new function.
12043 (riscv_return_value): Likewise.
12044
5ab2fbf1
SM
120452020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12046
12047 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12048 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12049 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12050 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12051 * infrun.c (follow_fork): Likewise.
12052 (follow_fork_inferior): Likewise.
12053 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12054 * linux-nat.h (class linux_nat_target): Likewise.
12055 * remote.c (class remote_target) <follow_fork>: Likewise.
12056 (remote_target::follow_fork): Likewise.
12057 * target-delegates.c: Re-generate.
12058 * target.c (default_follow_fork): Likewise.
12059 (target_follow_fork): Likewise.
12060 * target.h (struct target_ops) <follow_fork>: Likewise.
12061 (target_follow_fork): Likewise.
12062
a64fafb5
TV
120632020-03-24 Tom de Vries <tdevries@suse.de>
12064
12065 * psymtab.c (maintenance_info_psymtabs): Print user field.
12066
fe26d3a3
TT
120672020-03-20 Tom Tromey <tromey@adacore.com>
12068
12069 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12070 const.
12071 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12072 const.
12073
c884cc46
SM
120742020-03-20 Simon Marchi <simon.marchi@efficios.com>
12075
12076 * ptrace.m4: Don't check for ptrace declaration.
12077 * config.in: Re-generate.
12078 * configure: Re-generate.
12079 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12080 not defined.
12081
1ff700c2
KR
120822020-03-20 Kamil Rytarowski <n54@gmx.com>
12083
12084 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12085 `PTRACE_TYPE_RET'.
12086 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12087 * sparc-nat.c (gdb_ptrace): Likewise.
12088 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12089
f7d4f0b1
TT
120902020-03-20 Tom Tromey <tromey@adacore.com>
12091
12092 * c-exp.y (lex_one_token): Fix assert.
12093
f67210ff
TT
120942020-03-20 Tom Tromey <tromey@adacore.com>
12095
12096 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12097 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12098 strncpy call.
12099
1773be9e
TT
121002020-03-20 Tom Tromey <tromey@adacore.com>
12101
12102 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12103
70304be9
TT
121042020-03-20 Tom Tromey <tromey@adacore.com>
12105
12106 * ada-valprint.c (print_variant_part): Remove parameters; switch
12107 to value-based API.
12108 (print_field_values): Likewise.
12109 (ada_val_print_struct_union): Likewise.
12110 (ada_value_print_1): Update.
12111
9faa006d
KR
121122020-03-20 Kamil Rytarowski <n54@gmx.com>
12113
12114 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12115 nbsd_nat_target instead of inf_ptrace_target.
12116 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12117 nbsd_nat_target.
12118
4a90f062
KR
121192020-03-20 Kamil Rytarowski <n54@gmx.com>
12120
12121 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12122 it to the ptrace call.
12123 * (store_registers): Likewise.
12124
121252020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12126
12127 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12128 it to the ptrace call.
12129 * (store_registers): Likewise.
12130
2d07da27
LM
121312020-03-19 Luis Machado <luis.machado@linaro.org>
12132
12133 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12134 valid, fetch vg value from ptrace.
12135
f09db380
KR
121362020-03-19 Kamil Rytarowski <n54@gmx.com>
12137 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12138 * inf-ptrace.c: Likewise.
12139 * (gdb_ptrace): Add.
12140 * (inf_ptrace_target::resume): Update.
12141 * (inf_ptrace_target::xfer_partial): Likewise.
12142 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12143 * (inf_ptrace_peek_poke): Update.
12144
fcc7376e
KR
121452020-03-19 Kamil Rytarowski <n54@gmx.com>
12146
12147 * x86-bsd-nat.c (gdb_ptrace): New.
12148 * (x86bsd_dr_set): Add new argument `ptid'.
12149 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12150 x86bsd_dr_set_addr): Update.
12151
cada5fc9
AB
121522020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12153
12154 * remote.c (remote_target::process_stop_reply): Handle events for
12155 all threads differently.
12156
19a2740f
AB
121572020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12158
12159 * completer.c (completion_tracker::remove_completion): Define new
12160 function.
12161 * completer.h (completion_tracker::remove_completion): Declare new
12162 function.
12163 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12164 when adding a C++ function symbol.
12165
724fd9ba
AB
121662020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12167
12168 * completer.c (completion_tracker::completion_hash_entry): Define
12169 new class.
12170 (advance_to_filename_complete_word_point): Call
12171 recompute_lowest_common_denominator.
12172 (completion_tracker::completion_tracker): Call discard_completions
12173 to setup the hash table.
12174 (completion_tracker::discard_completions): Allow for being called
12175 from the constructor, pass new equal function, and element deleter
12176 when constructing the hash table. Initialise new class member
12177 variables.
12178 (completion_tracker::maybe_add_completion): Remove use of
12179 m_entries_vec, and store more information into m_entries_hash.
12180 (completion_tracker::recompute_lcd_visitor): New function, most
12181 content taken from...
12182 (completion_tracker::recompute_lowest_common_denominator):
12183 ...here, this now just visits each item in the hash calling the
12184 above visitor.
12185 (completion_tracker::build_completion_result): Remove use of
12186 m_entries_vec, call recompute_lowest_common_denominator.
12187 * completer.h (completion_tracker::have_completions): Remove use
12188 of m_entries_vec.
12189 (completion_tracker::completion_hash_entry): Declare new class.
12190 (completion_tracker::recompute_lowest_common_denominator): Change
12191 function signature.
12192 (completion_tracker::recompute_lcd_visitor): Declare new function.
12193 (completion_tracker::m_entries_vec): Delete.
12194 (completion_tracker::m_entries_hash): Initialize to NULL.
12195 (completion_tracker::m_lowest_common_denominator_valid): New
12196 member variable.
12197 (completion_tracker::m_lowest_common_denominator_max_length): New
12198 member variable.
12199
5a82b8a1
KR
122002020-03-17 Kamil Rytarowski <n54@gmx.com>
12201
12202 * regformats/regdef.h: Put reg in gdb namespace.
12203
fb516a69
KR
122042020-03-17 Kamil Rytarowski <n54@gmx.com>
12205
12206 * i386-bsd-nat.c (gdb_ptrace): New.
12207 * (i386bsd_fetch_inferior_registers,
12208 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12209 * (i386bsd_fetch_inferior_registers,
12210 i386bsd_store_inferior_registers) Use gdb_ptrace.
12211
1c0aa1fb
KR
122122020-03-17 Kamil Rytarowski <n54@gmx.com>
12213
12214 * amd64-bsd-nat.c (gdb_ptrace): New.
12215 * (amd64bsd_fetch_inferior_registers,
12216 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12217 * (amd64bsd_fetch_inferior_registers,
12218 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12219
5ccd2fb7
KR
122202020-03-17 Kamil Rytarowski <n54@gmx.com>
12221
12222 * user-regs.c (user_reg::read): Rename to...
12223 (user_reg::xread): ...this.
12224 * (append_user_reg): Rename argument `read' to `xread'.
12225 * (user_reg_add_builtin): Likewise.
12226 * (user_reg_add): Likewise.
12227 * (value_of_user_reg): Likewise.
12228
2108a63a
KR
122292020-03-17 Kamil Rytarowski <n54@gmx.com>
12230
12231 * sparc-nat.c (gdb_ptrace): New.
12232 * sparc-nat.c (sparc_fetch_inferior_registers)
12233 (sparc_store_inferior_registers) Remove obsolete comment.
12234 * sparc-nat.c (sparc_fetch_inferior_registers)
12235 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12236 * sparc-nat.c (sparc_fetch_inferior_registers)
12237 (sparc_store_inferior_registers) Use gdb_ptrace.
12238
a225c9a8
KR
122392020-03-17 Kamil Rytarowski <n54@gmx.com>
12240
12241 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12242 it to the ptrace call.
12243 * sh-nbsd-nat.c (store_registers): Likewise.
12244
98097623
KR
122452020-03-17 Kamil Rytarowski <n54@gmx.com>
12246
12247 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12248 nbsd_nat_target instead of inf_ptrace_target.
12249 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12250 nbsd_nat_target.
12251
9e38d619
KR
122522020-03-17 Kamil Rytarowski <n54@gmx.com>
12253
12254 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12255
a2ecbe9f
KR
122562020-03-17 Kamil Rytarowski <n54@gmx.com>
12257
12258 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12259 <sys/sysctl.h>.
12260 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12261
58990295
TV
122622020-03-17 Tom de Vries <tdevries@suse.de>
12263
12264 PR gdb/23710
12265 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12266 fields.
12267 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12268 fields.
12269 (process_imported_unit_die): Skip import of c++ CUs.
12270
771dd3a8
TT
122712020-03-16 Tom Tromey <tom@tromey.com>
12272
12273 * p-valprint.c (pascal_object_print_value): Initialize
12274 base_value.
12275
817a7585
AK
122762020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12277 Shahab Vahedi <shahab@synopsys.com>
12278
12279 * Makefile.in: Add arch/arc.o
12280 * configure.tgt: Likewise.
12281 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12282 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12283 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12284 * arc-tdep.h (arc_read_description): Add proto type.
12285 * arch/arc.c: New file.
12286 * arch/arc.h: Likewise.
12287 * features/Makefile: Replace old target descriptions with new.
12288 * features/arc-arcompact.c: Remove.
12289 * features/arc-arcompact.xml: Likewise.
12290 * features/arc-v2.c: Likewise
12291 * features/arc-v2.xml: Likewise
12292 * features/arc/aux-arcompact.xml: New file.
12293 * features/arc/aux-v2.xml: Likewise.
12294 * features/arc/core-arcompact.xml: Likewise.
12295 * features/arc/core-v2.xml: Likewise.
12296 * features/arc/aux-arcompact.c: Generate.
12297 * features/arc/aux-v2.c: Likewise.
12298 * features/arc/core-arcompact.c: Likewise.
12299 * features/arc/core-v2.c: Likewise.
12300 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12301
67430cd0
TT
123022020-03-16 Tom Tromey <tromey@adacore.com>
12303
12304 PR gdb/25663:
12305 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12306 putting value into bcache.
12307
30efb6c7
SM
123082020-03-16 Simon Marchi <simon.marchi@efficios.com>
12309
12310 PR gdb/21500
12311 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12312 to...
12313 (amd64_windows_init_abi_common): ... this. Don't set size of
12314 long type.
12315 (amd64_windows_init_abi): New function.
12316 (amd64_cygwin_init_abi): New function.
12317 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12318 the Cygwin OS ABI.
12319 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12320 comment.
12321
8db52437
SM
123222020-03-16 Simon Marchi <simon.marchi@efficios.com>
12323
12324 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12325 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12326 (pe_import_directory_entry): New struct type.
12327 (is_linked_with_cygwin_dll): New function.
12328 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12329 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12330 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12331
5982a56a
SM
123322020-03-16 Simon Marchi <simon.marchi@efficios.com>
12333
12334 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12335 i386_cygwin_core_osabi_sniffer.
12336
7a1998df
SM
123372020-03-16 Simon Marchi <simon.marchi@efficios.com>
12338
12339 * i386-cygwin-tdep.c: Rename to...
12340 * i386-windows-tdep.c: ... this.
12341 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12342 i386-windows-tdep.c.
12343 * configure.tgt: Likewise.
12344
053205cc
SM
123452020-03-16 Simon Marchi <simon.marchi@efficios.com>
12346
12347 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12348 * osabi.c (gdb_osabi_names): Add "Windows".
12349 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12350 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12351 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12352 i386_cygwin_osabi_sniffer.
12353 (_initialize_i386_cygwin_tdep): Register OS ABI
12354 GDB_OSABI_WINDOWS for i386.
12355 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12356 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12357 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12358 for x86-64.
12359 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12360 when the target matches '*-*-mingw*'.
12361
fe4b2ee6
SM
123622020-03-16 Simon Marchi <simon.marchi@efficios.com>
12363
12364 * defs.h (enum gdb_osabi): Move to...
12365 * osabi.h (enum gdb_osabi): ... here.
12366 * gdbarch.sh: Include osabi.h in gdbarch.h.
12367 * gdbarch.h: Re-generate.
12368
cb9b645d
SM
123692020-03-16 Simon Marchi <simon.marchi@efficios.com>
12370
12371 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12372 function.
12373 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12374
3293bbaf
TT
123752020-03-14 Tom Tromey <tom@tromey.com>
12376
12377 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12378 for C++.
12379 (c_type_print_modifier): Likewise. Add "language" parameter.
12380 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12381 (c_type_print_base_1): Update.
12382 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12383 constants.
12384 * type-stack.c (type_stack::insert): Handle tp_atomic and
12385 tp_restrict.
12386 (type_stack::follow_type_instance_flags): Likewise.
12387 (type_stack::follow_types): Likewise. Merge type-following code.
12388 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12389 (space_identifier, cv_with_space_id)
12390 (const_or_volatile_or_space_identifier_noopt)
12391 (const_or_volatile_or_space_identifier): Remove.
12392 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12393 rules.
12394 (ptr_operator, typebase): Update.
12395 (enum token_flag) <FLAG_C>: New constant.
12396 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12397 "_Atomic".
12398 (lex_one_token): Handle FLAG_C.
12399
154151a6
KR
124002020-03-14 Kamil Rytarowski <n54@gmx.com>
12401
12402 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12403 it to the ptrace call.
12404 * m68k-bsd-nat.c (store_registers): Likewise.
12405
bc107784
KR
124062020-03-14 Kamil Rytarowski <n54@gmx.com>
12407
12408 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12409 gdb_byte *.
12410 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12411 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12412 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12413
01a80117
KR
124142020-03-14 Kamil Rytarowski <n54@gmx.com>
12415
12416 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12417 nbsd_nat_target instead of inf_ptrace_target.
12418 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12419 nbsd_nat_target.
12420
f90280ca
KR
124212020-03-14 Kamil Rytarowski <n54@gmx.com>
12422
12423 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12424 register_t.
12425
6def66f1
KR
124262020-03-14 Kamil Rytarowski <n54@gmx.com>
12427
12428 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12429 it to the ptrace call.
12430 * alpha-bsd-nat.c (store_registers): Likewise.
12431
66eaca97
KR
124322020-03-14 Kamil Rytarowski <n54@gmx.com>
12433
12434 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12435 includes.
12436 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12437 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12438 fill_fpregset): Likewise.
12439
4fed520b
KR
124402020-03-14 Kamil Rytarowski <n54@gmx.com>
12441
12442 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12443 nbsd_nat_target instead of inf_ptrace_target.
12444 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12445 nbsd_nat_target.
12446
2190cf06
KR
124472020-03-14 Kamil Rytarowski <n54@gmx.com>
12448
12449 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12450 register_t.
12451
75c56d3d
KR
124522020-03-14 Kamil Rytarowski <n54@gmx.com>
12453
12454 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12455 it to the ptrace call.
12456 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12457 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12458 * arm-nbsd-nat.c (store_register): Likewise.
12459 * arm-nbsd-nat.c (store_regs): Likewise.
12460 * arm-nbsd-nat.c (store_fp_register): Likewise.
12461 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12462
6018d381
KR
124632020-03-14 Kamil Rytarowski <n54@gmx.com>
12464
12465 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12466 nbsd_nat_target instead of inf_ptrace_target.
12467 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12468 nbsd_nat_target.
12469
013f99f0
KR
124702020-03-14 Kamil Rytarowski <n54@gmx.com>
12471
12472 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12473 it to the ptrace call.
12474 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12475
12753073
KR
124762020-03-14 Kamil Rytarowski <n54@gmx.com>
12477
6227b330
KR
12478 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12479 it to the ptrace call.
12480 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12481
124822020-03-14 Kamil Rytarowski <n54@gmx.com>
12483
12484 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12485 gdb_byte *.
12753073
KR
12486 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12487
d5be5fa4
KR
124882020-03-14 Kamil Rytarowski <n54@gmx.com>
12489
12490 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12491 instead of inf_ptrace_target.
12492 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12493 nbsd_nat_target.
12494
8110f842
KR
124952020-03-14 Kamil Rytarowski <n54@gmx.com>
12496
12497 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12498 register_t.
12499
52feded7
KR
125002020-03-14 Kamil Rytarowski <n54@gmx.com>
12501
12502 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12503 register_t.
12504
25567eee
KR
125052020-03-14 Kamil Rytarowski <n54@gmx.com>
12506
12507 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12508 register_t.
12509
426a9c18
TT
125102020-03-13 Tom Tromey <tom@tromey.com>
12511
12512 * value.h (val_print): Don't declare.
12513 * valprint.h (val_print_array_elements)
12514 (val_print_scalar_formatted, generic_val_print): Don't declare.
12515 * valprint.c (generic_val_print_array): Take a struct value.
12516 (generic_val_print_ptr, generic_val_print_memberptr)
12517 (generic_val_print_bool, generic_val_print_int)
12518 (generic_val_print_char, generic_val_print_complex)
12519 (generic_val_print): Remove.
12520 (generic_value_print): Update.
12521 (do_val_print): Remove unused parameters. Don't call
12522 la_val_print.
12523 (val_print): Remove.
12524 (common_val_print): Update. Don't call value_check_printable.
12525 (val_print_scalar_formatted, val_print_array_elements): Remove.
12526 * rust-lang.c (rust_val_print): Remove.
12527 (rust_language_defn): Update.
12528 * p-valprint.c (pascal_val_print): Remove.
12529 (pascal_value_print_inner): Update.
12530 (pascal_object_print_val_fields, pascal_object_print_val):
12531 Remove.
12532 (pascal_object_print_static_field): Update.
12533 * p-lang.h (pascal_val_print): Don't declare.
12534 * p-lang.c (pascal_language_defn): Update.
12535 * opencl-lang.c (opencl_language_defn): Update.
12536 * objc-lang.c (objc_language_defn): Update.
12537 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12538 * m2-lang.h (m2_val_print): Don't declare.
12539 * m2-lang.c (m2_language_defn): Update.
12540 * language.h (struct language_defn) <la_val_print>: Remove.
12541 * language.c (unk_lang_value_print_inner): Rename. Change
12542 argument types.
12543 (unknown_language_defn, auto_language_defn): Update.
12544 * go-valprint.c (go_val_print): Remove.
12545 * go-lang.h (go_val_print): Don't declare.
12546 * go-lang.c (go_language_defn): Update.
12547 * f-valprint.c (f_val_print): Remove.
12548 * f-lang.h (f_value_print): Don't declare.
12549 * f-lang.c (f_language_defn): Update.
12550 * d-valprint.c (d_val_print): Remove.
12551 * d-lang.h (d_value_print): Don't declare.
12552 * d-lang.c (d_language_defn): Update.
12553 * cp-valprint.c (cp_print_value_fields)
12554 (cp_print_value_fields_rtti, cp_print_value): Remove.
12555 (cp_print_static_field): Update.
12556 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12557 (c_val_print_struct, c_val_print_union, c_val_print_int)
12558 (c_val_print_memberptr, c_val_print): Remove.
12559 * c-lang.h (c_val_print_array, cp_print_value_fields)
12560 (cp_print_value_fields_rtti): Don't declare.
12561 * c-lang.c (c_language_defn, cplus_language_defn)
12562 (asm_language_defn, minimal_language_defn): Update.
12563 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12564 (ada_val_print_enum): Take a struct value.
12565 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12566 (ada_val_print): Remove.
12567 (ada_value_print_1): Update.
12568 (printable_val_type): Remove.
12569 * ada-lang.h (ada_val_print): Don't declare.
12570 * ada-lang.c (ada_language_defn): Update.
12571
42331a1e
TT
125722020-03-13 Tom Tromey <tom@tromey.com>
12573
12574 * valprint.c (do_val_print): Update.
12575 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12576 a struct value.
12577 (value_to_value_object_no_release): Declare.
12578 * python/py-value.c (value_to_value_object_no_release): New
12579 function.
12580 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12581 struct value.
12582 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12583 function.
12584 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12585 a struct value.
12586 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12587 Declare.
12588 (gdbscm_apply_val_pretty_printer): Take a struct value.
12589 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12590 value.
12591 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12592 value.
12593 * extension-priv.h (struct extension_language_ops)
12594 <apply_val_pretty_printer>: Take a struct value.
12595 * cp-valprint.c (cp_print_value): Create a struct value.
12596 (cp_print_value): Update.
12597
3a916a97
TT
125982020-03-13 Tom Tromey <tom@tromey.com>
12599
12600 * ada-valprint.c (print_field_values): Call common_val_print.
12601
b59eac37
TT
126022020-03-13 Tom Tromey <tom@tromey.com>
12603
12604 * ada-valprint.c (val_print_packed_array_elements): Remove
12605 bitoffset and val parameters. Call common_val_print.
12606 (ada_val_print_string): Remove offset, address, and original_value
12607 parameters.
12608 (ada_val_print_array): Update.
12609 (ada_value_print_array): New function.
12610 (ada_value_print_1): Call it.
12611
03371129
TT
126122020-03-13 Tom Tromey <tom@tromey.com>
12613
12614 * ada-valprint.c (ada_value_print): Use common_val_print.
12615
2e088f8b
TT
126162020-03-13 Tom Tromey <tom@tromey.com>
12617
12618 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12619
39ef85a8
TT
126202020-03-13 Tom Tromey <tom@tromey.com>
12621
12622 * ada-valprint.c (ada_value_print_num): New function.
12623 (ada_value_print_1): Use it.
12624
b9fa6e07
TT
126252020-03-13 Tom Tromey <tom@tromey.com>
12626
12627 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12628
416595d6
TT
126292020-03-13 Tom Tromey <tom@tromey.com>
12630
12631 * ada-valprint.c (ada_value_print_ptr): New function.
12632 (ada_value_print_1): Use it.
12633
5b5e15ec
TT
126342020-03-13 Tom Tromey <tom@tromey.com>
12635
12636 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12637 call common_val_print.
12638 (ada_val_print_1): Update.
12639 (ada_value_print_1): New function.
12640 (ada_value_print_inner): Rewrite.
12641
fbf54e75
TT
126422020-03-13 Tom Tromey <tom@tromey.com>
12643
12644 * cp-valprint.c (cp_print_value_fields): Update.
12645 (cp_print_value): New function.
12646
64b653ca
TT
126472020-03-13 Tom Tromey <tom@tromey.com>
12648
12649 * m2-valprint.c (m2_value_print_inner): Use
12650 cp_print_value_fields.
12651 * cp-valprint.c (cp_print_value_fields): New function.
12652 * c-valprint.c (c_value_print_struct): New function.
12653 (c_value_print_inner): Use c_value_print_struct.
12654 * c-lang.h (cp_print_value_fields): Declare.
12655
6999f067
TT
126562020-03-13 Tom Tromey <tom@tromey.com>
12657
12658 * c-valprint.c (c_value_print_array): New function.
12659 (c_value_print_inner): Use it.
12660
ce80b8bd
TT
126612020-03-13 Tom Tromey <tom@tromey.com>
12662
12663 * c-valprint.c (c_value_print_memberptr): New function.
12664 (c_value_print_inner): Use it.
12665
2faac269
TT
126662020-03-13 Tom Tromey <tom@tromey.com>
12667
12668 * c-valprint.c (c_value_print_int): New function.
12669 (c_value_print_inner): Use it.
12670
da3e2c29
TT
126712020-03-13 Tom Tromey <tom@tromey.com>
12672
12673 * c-valprint.c (c_value_print_ptr): New function.
12674 (c_value_print_inner): Use it.
12675
50836231
TT
126762020-03-13 Tom Tromey <tom@tromey.com>
12677
12678 * c-valprint.c (c_value_print_inner): Rewrite.
12679
4f412b6e
TT
126802020-03-13 Tom Tromey <tom@tromey.com>
12681
12682 * valprint.c (generic_value_print_complex): New function.
12683 (generic_value_print): Use it.
12684
f5354008
TT
126852020-03-13 Tom Tromey <tom@tromey.com>
12686
12687 * valprint.c (generic_val_print_float): Don't call
12688 val_print_scalar_formatted.
12689 (generic_val_print, generic_value_print): Update.
12690
3eec3b05
TT
126912020-03-13 Tom Tromey <tom@tromey.com>
12692
12693 * valprint.c (generic_value_print_char): New function
12694 (generic_value_print): Use it.
12695
fdddfccb
TT
126962020-03-13 Tom Tromey <tom@tromey.com>
12697
12698 * valprint.c (generic_value_print_int): New function.
12699 (generic_value_print): Use it.
12700
6dde7521
TT
127012020-03-13 Tom Tromey <tom@tromey.com>
12702
12703 * valprint.c (generic_value_print_bool): New function.
12704 (generic_value_print): Use it.
12705
4112d2e6
TT
127062020-03-13 Tom Tromey <tom@tromey.com>
12707
12708 * valprint.c (generic_val_print_func): Simplify.
12709 (generic_val_print, generic_value_print): Update.
12710
65786af6
TT
127112020-03-13 Tom Tromey <tom@tromey.com>
12712
12713 * valprint.c (generic_val_print_flags): Remove.
12714 (generic_val_print, generic_value_print): Update.
12715 (val_print_type_code_flags): Add original_value parameter.
12716
40f3ce18
TT
127172020-03-13 Tom Tromey <tom@tromey.com>
12718
12719 * valprint.c (generic_val_print): Update.
12720 (generic_value_print): Update.
12721 * valprint.c (generic_val_print_enum): Don't call
12722 val_print_scalar_formatted.
12723
2a5b130b
TT
127242020-03-13 Tom Tromey <tom@tromey.com>
12725
12726 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12727 * valprint.c (generic_value_print_ptr): New function.
12728
abc66ce9
TT
127292020-03-13 Tom Tromey <tom@tromey.com>
12730
12731 * valprint.c (generic_value_print): Rewrite.
12732
07a32858
TT
127332020-03-13 Tom Tromey <tom@tromey.com>
12734
12735 * p-valprint.c (pascal_object_print_value_fields)
12736 (pascal_object_print_value): New functions.
12737
64d64d3a
TT
127382020-03-13 Tom Tromey <tom@tromey.com>
12739
12740 * p-valprint.c (pascal_value_print_inner): Rewrite.
12741
6a95a1f5
TT
127422020-03-13 Tom Tromey <tom@tromey.com>
12743
12744 * f-valprint.c (f_value_print_innner): Rewrite.
12745
59fcdac6
TT
127462020-03-13 Tom Tromey <tom@tromey.com>
12747
12748 * m2-valprint.c (m2_print_unbounded_array): New overload.
12749 (m2_print_unbounded_array): Update.
12750 (m2_print_array_contents): Take a struct value.
12751 (m2_value_print_inner): Rewrite.
12752
d133c3e1
TT
127532020-03-13 Tom Tromey <tom@tromey.com>
12754
12755 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12756 (d_value_print_inner): New function.
12757 * d-lang.h (d_value_print_inner): Declare.
12758 * d-lang.c (d_language_defn): Use d_value_print_inner.
12759
23b0f06b
TT
127602020-03-13 Tom Tromey <tom@tromey.com>
12761
12762 * go-valprint.c (go_value_print_inner): New function.
12763 * go-lang.h (go_value_print_inner): Declare.
12764 * go-lang.c (go_language_defn): Use go_value_print_inner.
12765
5f56f7cb
TT
127662020-03-13 Tom Tromey <tom@tromey.com>
12767
12768 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12769 API.
12770 (rust_val_print): Rewrite.
12771 (rust_value_print_inner): New function, from rust_val_print.
12772 (rust_language_defn): Use rust_value_print_inner.
12773
26792ee0
TT
127742020-03-13 Tom Tromey <tom@tromey.com>
12775
12776 * ada-valprint.c (ada_value_print_inner): New function.
12777 * ada-lang.h (ada_value_print_inner): Declare.
12778 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12779
24051bbe
TT
127802020-03-13 Tom Tromey <tom@tromey.com>
12781
12782 * f-valprint.c (f_value_print_innner): New function.
12783 * f-lang.h (f_value_print_innner): Declare.
12784 * f-lang.c (f_language_defn): Use f_value_print_innner.
12785
c0941be6
TT
127862020-03-13 Tom Tromey <tom@tromey.com>
12787
12788 * p-valprint.c (pascal_value_print_inner): New function.
12789 * p-lang.h (pascal_value_print_inner): Declare.
12790 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12791
62c4663d
TT
127922020-03-13 Tom Tromey <tom@tromey.com>
12793
12794 * m2-valprint.c (m2_value_print_inner): New function.
12795 * m2-lang.h (m2_value_print_inner): Declare.
12796 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12797
62182190
TT
127982020-03-13 Tom Tromey <tom@tromey.com>
12799
12800 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12801 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12802 * c-valprint.c (c_value_print_inner): New function.
12803 * c-lang.h (c_value_print_inner): Declare.
12804 * c-lang.c (c_language_defn, cplus_language_defn)
12805 (asm_language_defn, minimal_language_defn): Use
12806 c_value_print_inner.
12807
1e592a8a
TT
128082020-03-13 Tom Tromey <tom@tromey.com>
12809
12810 * p-valprint.c (pascal_object_print_value_fields): Now static.
12811 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12812
7fe471e9
TT
128132020-03-13 Tom Tromey <tom@tromey.com>
12814
12815 * c-valprint.c (c_val_print_array): Simplify.
12816
d121c6ce
TT
128172020-03-13 Tom Tromey <tom@tromey.com>
12818
12819 * valprint.c (value_print_array_elements): New function.
12820 * valprint.h (value_print_array_elements): Declare.
12821
4dba70ee
TT
128222020-03-13 Tom Tromey <tom@tromey.com>
12823
12824 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12825 * mips-tdep.c (mips_print_register): Use
12826 value_print_scalar_formatted.
12827
4f9ae810
TT
128282020-03-13 Tom Tromey <tom@tromey.com>
12829
12830 * valprint.h (value_print_scalar_formatted): Declare.
12831 * valprint.c (value_print_scalar_formatted): New function.
12832
156bfec9
TT
128332020-03-13 Tom Tromey <tom@tromey.com>
12834
12835 * valprint.h (generic_value_print): Declare.
12836 * valprint.c (generic_value_print): New function.
12837
2b4e573d
TT
128382020-03-13 Tom Tromey <tom@tromey.com>
12839
12840 * valprint.c (do_val_print): Call la_value_print_inner, if
12841 available.
12842 * rust-lang.c (rust_language_defn): Update.
12843 * p-lang.c (pascal_language_defn): Update.
12844 * opencl-lang.c (opencl_language_defn): Update.
12845 * objc-lang.c (objc_language_defn): Update.
12846 * m2-lang.c (m2_language_defn): Update.
12847 * language.h (struct language_defn) <la_value_print_inner>: New
12848 member.
12849 * language.c (unknown_language_defn, auto_language_defn): Update.
12850 * go-lang.c (go_language_defn): Update.
12851 * f-lang.c (f_language_defn): Update.
12852 * d-lang.c (d_language_defn): Update.
12853 * c-lang.c (c_language_defn, cplus_language_defn)
12854 (asm_language_defn, minimal_language_defn): Update.
12855 * ada-lang.c (ada_language_defn): Update.
12856
a1f6a07c
TT
128572020-03-13 Tom Tromey <tom@tromey.com>
12858
12859 * c-valprint.c (c_value_print): Use common_val_print.
12860
410cf315
TT
128612020-03-13 Tom Tromey <tom@tromey.com>
12862
12863 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12864
72a45c93
TT
128652020-03-13 Tom Tromey <tom@tromey.com>
12866
12867 * f-valprint.c (f77_print_array_1, f_val_print): Use
12868 common_val_print.
12869
040f66bd
TT
128702020-03-13 Tom Tromey <tom@tromey.com>
12871
12872 * riscv-tdep.c (riscv_print_one_register_info): Use
12873 common_val_print.
12874
a6e05a6c
TT
128752020-03-13 Tom Tromey <tom@tromey.com>
12876
12877 * mi/mi-main.c (output_register): Use common_val_print.
12878
3444c526
TT
128792020-03-13 Tom Tromey <tom@tromey.com>
12880
12881 * infcmd.c (default_print_one_register_info): Use
12882 common_val_print.
12883
c2a44efe
TT
128842020-03-13 Tom Tromey <tom@tromey.com>
12885
12886 * valprint.h (common_val_print_checked): Declare.
12887 * valprint.c (common_val_print_checked): New function.
12888 * stack.c (print_frame_arg): Use common_val_print_checked.
12889
b0c26e99
TT
128902020-03-13 Tom Tromey <tom@tromey.com>
12891
12892 * valprint.c (do_val_print): New function, from val_print.
12893 (val_print): Use do_val_print.
12894 (common_val_print): Use do_val_print.
12895
ce3acbe9
TT
128962020-03-13 Tom Tromey <tom@tromey.com>
12897
12898 * valprint.c (value_print): Use scoped_value_mark.
12899
96c7f873
TV
129002020-03-13 Tom de Vries <tdevries@suse.de>
12901
12902 PR symtab/25646
12903 * psymtab.c (partial_symtab::partial_symtab): Don't set
12904 globals_offset and statics_offset. Push element onto
12905 current_global_psymbols and current_static_psymbols stacks.
12906 (concat): New function.
12907 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12908 element from current_global_psymbols and current_static_psymbols
12909 stacks. Concat popped elements to global_psymbols and
12910 static_symbols.
12911 (add_psymbol_to_list): Use current_global_psymbols and
12912 current_static_psymbols stacks.
12913 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12914 current_static_psymbols fields.
12915
6ba0a321
CB
129162020-03-12 Christian Biesinger <cbiesinger@google.com>
12917
12918 * corelow.c (sniff_core_bfd): Remove.
12919 (class core_target) <m_core_vec>: Remove.
12920 (core_target::core_target): Update.
12921 (core_file_fns): Remove.
12922 (deprecated_add_core_fns): Remove.
12923 (default_core_sniffer): Remove.
12924 (sniff_core_bfd): Remove.
12925 (default_check_format): Remove.
12926 (gdb_check_format): Remove.
12927 (core_target_open): Update.
12928 (core_target::get_core_register_section): Update.
12929 (get_core_registers_cb): Update.
12930 (core_target::fetch_registers): Update.
12931 * gdbcore.h (struct core_fns): Remove.
12932 (deprecated_add_core_fns): Remove.
12933 (default_core_sniffer): Remove.
12934 (default_check_format): Remove.
12935
227031b2
TT
129362020-03-12 Tom Tromey <tom@tromey.com>
12937
12938 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12939 CORE_ADDR.
12940 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12941
53807e9f
TT
129422020-03-12 Tom Tromey <tom@tromey.com>
12943
12944 * remote.c (remote_target::download_tracepoint)
12945 (remote_target::enable_tracepoint)
12946 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12947 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12948 sprintf_vma.
12949
64f25102
TT
129502020-03-12 Tom Tromey <tom@tromey.com>
12951
12952 * symfile-mem.c: Update CORE_ADDR size assert.
12953
272cd5a3
SM
129542020-03-12 Simon Marchi <simon.marchi@efficios.com>
12955
12956 * selftest.m4: Move to gdbsupport/.
12957 * acinclude.m4: Update path to selftest.m4.
12958
74cd3f9d
SM
129592020-03-12 Simon Marchi <simon.marchi@efficios.com>
12960
12961 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12962 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12963 gdbarch-selfselftests.c and selftest-arch.c.
12964 (SUBDIR_UNITTESTS_OBS): Rename to...
12965 (SELFTESTS_OBS): ... this.
12966 (COMMON_SFILES): Remove disasm-selftests.c and
12967 gdbarch-selftests.c.
12968 * configure.ac: Don't add selftest-arch.{c,o} to
12969 CONFIG_{SRCS,OBS}.
12970 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12971 preprocessor conditions.
12972
db6878ac
SM
129732020-03-12 Simon Marchi <simon.marchi@efficios.com>
12974
12975 * configure.ac: Don't source bfd/development.sh.
12976 * selftest.m4: Modify comment.
12977 * configure: Re-generate.
12978
4d696a5c
SM
129792020-03-12 Simon Marchi <simon.marchi@efficios.com>
12980
12981 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12982 not "true" or "false".
12983 * configure: Re-generate.
12984
8dd8e1c7
CB
129852020-03-12 Christian Biesinger <cbiesinger@google.com>
12986
12987 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12988 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12989 renamed to arm_nbsd_supply_gregset.
12990 (fetch_register): Update to call arm_nbsd_supply_gregset.
12991 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12992 (arm_netbsd_nat_target::fetch_registers): Update.
12993 (fetch_elfcore_registers): Removed.
12994 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12995 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12996 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12997 not require NetBSD system headers.
12998 (arm_nbsd_regset): New struct.
12999 (arm_nbsd_iterate_over_regset_sections): New function.
13000 (arm_netbsd_init_abi_common): Updated to call
13001 set_gdbarch_iterate_over_regset_sections.
13002 * arm-nbsd-tdep.h: New file.
13003
dd69bf7a
KB
130042020-03-11 Kevin Buettner <kevinb@redhat.com>
13005
13006 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13007 recursion.
13008
a0761e34
SM
130092020-03-11 Simon Marchi <simon.marchi@efficios.com>
13010
13011 * configure: Re-generate.
13012
e7a82140
TT
130132020-03-11 Tom Tromey <tromey@adacore.com>
13014
13015 * ada-typeprint.c (print_choices): Fix comment.
13016
dcc050c8
AB
130172020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13018
13019 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13020 previous item in the list, when the list has no items.
13021
1c33af77
TV
130222020-03-11 Tom de Vries <tdevries@suse.de>
13023
13024 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13025 PROP_LOCLIST handling code.
13026
8c95582d
AB
130272020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13028
13029 * buildsym-legacy.c (record_line): Pass extra parameter to
13030 record_line.
13031 * buildsym.c (buildsym_compunit::record_line): Take an extra
13032 parameter, reduce duplication in the line table, and record the
13033 is_stmt flag in the line table.
13034 * buildsym.h (buildsym_compunit::record_line): Add extra
13035 parameter.
13036 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13037 non-statement lines.
13038 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13039 this to the symtab builder.
13040 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13041 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13042 through to dwarf_record_line_1.
13043 * infrun.c (process_event_stop_test): When stepping, don't stop at
13044 a non-statement instruction, and only refresh the step info when
13045 we land in the middle of a line's range. Also add an extra
13046 comment.
13047 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13048 field.
13049 * record-btrace.c (btrace_find_line_range): Only record lines
13050 marked as is-statement.
13051 * stack.c (frame_show_address): Show the frame address if we are
13052 in a non-statement sal.
13053 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13054 (maintenance_print_one_line_table): Print a header for the is_stmt
13055 column, and include is_stmt information in the output.
13056 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13057 preference to non-statements.
13058 (find_pcs_for_symtab_line): Prefer is-statement entries.
13059 (find_line_common): Likewise.
13060 * symtab.h (struct linetable_entry): Add is_stmt field.
13061 (struct symtab_and_line): Likewise.
13062 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13063 arranging the line table.
13064
e4003a34
TV
130652020-03-07 Tom de Vries <tdevries@suse.de>
13066
13067 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13068 DIE.
13069
e8932576
TT
130702020-03-07 Tom Tromey <tom@tromey.com>
13071
13072 * valops.c (value_literal_complex): Remove obsolete comment.
13073 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13074 comment.
13075
29734269
SM
130762020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13077
13078 * infrun.h: Forward-declare thread_info.
13079 (set_step_info): Add thread_info parameter, add doc.
13080 * infrun.c (set_step_info): Add thread_info parameter, move doc
13081 to header.
13082 * infrun.c (process_event_stop_test): Pass thread to
13083 set_step_info call.
13084 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13085 set_step_info.
13086 (prepare_one_step): Add thread_info parameter, pass it to
13087 set_step_frame and prepare_one_step (recursive) call.
13088 (step_1): Pass thread to prepare_one_step call.
13089 (step_command_fsm::should_stop): Pass thread to
13090 prepare_one_step.
13091 (until_next_fsm): Pass thread to set_step_frame call.
13092 (finish_command): Pass thread to set_step_info call.
13093
b7d64b29
HD
130942020-03-06 Hannes Domani <ssbssa@yahoo.de>
13095
13096 * windows-tdep.c (windows_solib_create_inferior_hook):
13097 Check if inferior is running.
13098
09f2921c
TV
130992020-03-06 Tom de Vries <tdevries@suse.de>
13100
13101 * NEWS: Fix "the the".
13102 * ctfread.c: Same.
13103
fd760e79
TV
131042020-03-06 Tom de Vries <tdevries@suse.de>
13105
13106 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13107
20ea4a60
AB
131082020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13109
13110 * .dir-locals.el: Add a comment referencing the other copies of
13111 this file.
13112
0afbabf0
JB
131132020-03-05 John Baldwin <jhb@FreeBSD.org>
13114
13115 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13116 psargs.
13117
842806cb
TBA
131182020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13119
13120 * .gitattributes: New file.
13121
be1e3d3e
TT
131222020-03-04 Tom Tromey <tom@tromey.com>
13123
13124 * symmisc.c (print_symbol_bcache_statistics)
13125 (print_objfile_statistics): Update.
13126 * symfile.c (allocate_symtab): Use intern.
13127 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13128 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13129 macro_cache>: Remove.
13130 <string_cache>: New member.
13131 (struct objfile) <intern>: New methods.
13132 * elfread.c (elf_symtab_read): Use intern.
13133 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13134 (dwarf2_compute_name, dwarf2_physname)
13135 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13136 names.
13137 (guess_partial_die_structure_name): Update.
13138 (partial_die_info::fixup): Intern name.
13139 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13140 name.
13141 (dwarf2_name): Intern name. Update.
13142 * buildsym.c (buildsym_compunit::get_macro_table): Use
13143 string_cache.
13144
4e7625fd
TT
131452020-03-04 Tom Tromey <tom@tromey.com>
13146
13147 * jit.c (bfd_open_from_target_memory): Make "target" const.
13148 * corefile.c (gnutarget): Now const.
13149 * gdbcore.h (gnutarget): Now const.
13150
46f9f931
HD
131512020-03-04 Hannes Domani <ssbssa@yahoo.de>
13152
13153 * NEWS: Mention support for WOW64 processes.
13154 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13155 (amd64_windows_segment_register_p): Remove static.
13156 (_initialize_amd64_windows_nat): Update.
13157 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13158 * i386-windows-nat.c (context_offset): Update.
13159 (i386_mappings): Rename and remove static.
13160 (i386_windows_segment_register_p): Remove static.
13161 (_initialize_i386_windows_nat): Update.
13162 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13163 (STATUS_WX86_SINGLE_STEP): New macro.
13164 (EnumProcessModulesEx): New macro.
13165 (Wow64SuspendThread): New macro.
13166 (Wow64GetThreadContext): New macro.
13167 (Wow64SetThreadContext): New macro.
13168 (Wow64GetThreadSelectorEntry): New macro.
13169 (windows_set_context_register_offsets): Add static.
13170 (windows_set_segment_register_p): Likewise.
13171 (windows_add_thread): Adapt for WOW64 processes.
13172 (windows_fetch_one_register): Likewise.
13173 (windows_nat_target::fetch_registers): Likewise.
13174 (windows_store_one_register): Likewise.
13175 (display_selector): Likewise.
13176 (display_selectors): Likewise.
13177 (handle_exception): Likewise.
13178 (windows_continue): Likewise.
13179 (windows_nat_target::resume): Likewise.
13180 (windows_add_all_dlls): Likewise.
13181 (do_initial_windows_stuff): Likewise.
13182 (windows_nat_target::attach): Likewise.
13183 (windows_get_exec_module_filename): Likewise.
13184 (windows_nat_target::create_inferior): Likewise.
13185 (windows_xfer_siginfo): Likewise.
13186 (_initialize_loadable): Initialize Wow64SuspendThread,
13187 Wow64GetThreadContext, Wow64SetThreadContext,
13188 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13189 * windows-nat.h (windows_set_context_register_offsets):
13190 Remove declaration.
13191 (windows_set_segment_register_p): Likewise.
13192 (i386_windows_segment_register_p): Add declaration.
13193 (amd64_windows_segment_register_p): Likewise.
13194
440cf44e
LM
131952020-03-04 Luis Machado <luis.machado@linaro.org>
13196
13197 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13198 in "info registers" for AArch64/ARM.
13199
13200 The change caused "info registers" to not print GPR's.
13201
13202 gdb/ChangeLog:
13203
13204 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13205
13206 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13207 when reg->group is empty and reggroup is not.
13208
1009d92f
TT
132092020-03-03 Tom Tromey <tromey@adacore.com>
13210
13211 * dwarf2/frame.c (struct dwarf2_frame_cache)
13212 <checked_tailcall_bottom, entry_cfa_sp_offset,
13213 entry_cfa_sp_offset_p>: Remove members.
13214 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13215 (dwarf2_frame_prev_register): Don't call
13216 dwarf2_tailcall_sniffer_first.
13217 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13218 * frame-unwind.c (add_unwinder): New fuction.
13219 (frame_unwind_init): Use it. Add tailcall unwinder.
13220
5e5d66b6
AB
132212020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13222 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13223
13224 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13225 value should be printed as true.
13226
584cf46d
HD
132272020-03-03 Hannes Domani <ssbssa@yahoo.de>
13228
13229 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13230 (windows_init_abi): Set and use windows_so_ops.
13231
7b973adc
SDJ
132322020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13233
13234 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13235 when verifying if dealing with a convenience variable.
13236
bb7b70ab
LM
132372020-03-03 Luis Machado <luis.machado@linaro.org>
13238
13239 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13240
9822cb57
SM
132412020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13242
13243 * infrun.c (gdbarch_supports_displaced_stepping): New.
13244 (use_displaced_stepping): Break up conditions in smaller pieces.
13245 Use gdbarch_supports_displaced_stepping.
13246 (displaced_step_prepare_throw): Use
13247 gdbarch_supports_displaced_stepping.
13248
63e163f2
AB
132492020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13250
13251 * NEWS: Mention new behaviour of the history filename.
13252 * top.c (write_history_p): Add comment.
13253 (show_write_history_p): Add header comment, give a different
13254 message when history writing is on, but the history filename is
13255 empty.
13256 (history_filename): Add comment.
13257 (history_filename_empty): New function.
13258 (show_history_filename): Add header comment, give a different
13259 message when the filename is empty.
13260 (init_history): Compare history_filename against nullptr, and only
13261 read history if the filename is not empty.
13262 (set_history_filename): Add header comment, and only make
13263 non-empty filenames absolute.
13264 (init_main): Make the filename argument to 'set history filename'
13265 optional.
13266
81b86b97
CB
132672020-03-02 Christian Biesinger <cbiesinger@google.com>
13268
13269 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13270 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13271 (fetch_fp_register): Update.
13272 (fetch_fp_regs): Update.
13273 (store_fp_register): Update.
13274 (store_fp_regs): Update.
13275 (arm_netbsd_nat_target::read_description): New function.
13276 (fetch_elfcore_registers): Update.
13277
24ed6739
AB
132782020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13279
13280 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13281 general_thread if the stop reply is missing a thread-id.
13282 (remote_target::process_stop_reply): Use the first non-exited
13283 thread if the target didn't pass a thread-id.
13284 * infrun.c (do_target_wait): Move call to
13285 switch_to_inferior_no_thread to ....
13286 (do_target_wait_1): ... here.
13287
a84bb2a0
JT
132882020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13289
13290 * debuginfod-support.c: Include defs.h first.
13291
658dadf0
TV
132922020-02-28 Tom de Vries <tdevries@suse.de>
13293
13294 * symfile.c (set_initial_language): Use default language for lookup.
13295
4ebe4877
SM
132962020-02-28 Simon Marchi <simon.marchi@efficios.com>
13297
13298 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13299 reader variable, pass `this` to read_cutu_die_from_dwo.
13300
e5da1139
AM
133012020-02-27 Aaron Merey <amerey@redhat.com>
13302
13303 * source.c (open_source_file): Check for nullptr when computing
13304 srcpath.
13305
317f7127
TT
133062020-02-27 Tom Tromey <tromey@adacore.com>
13307
13308 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13309 member.
13310 (dwarf2_add_field): Don't update nfields.
13311 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13312
3104d9ee
AB
133132020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13314
13315 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13316 abs.
13317
b83470bf
TT
133182020-02-26 Tom Tromey <tom@tromey.com>
13319
13320 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13321 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13322 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13323 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13324 per_cu_data.
13325
edfe0a0c
TT
133262020-02-26 Tom Tromey <tom@tromey.com>
13327
13328 * dwarf2/index-write.c (psym_index_map): Change type.
13329 (add_address_entry_worker, write_one_signatured_type)
13330 (recursively_count_psymbols, recursively_write_psymbols)
13331 (class debug_names, psyms_seen_size, write_gdbindex)
13332 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13333
0d79cdc4
AM
133342020-02-26 Aaron Merey <amerey@redhat.com>
13335
13336 * Makefile.in: Handle optional debuginfod support.
13337 * NEWS: Update.
13338 * README: Add --with-debuginfod summary.
13339 * config.in: Regenerate.
13340 * configure: Regenerate.
13341 * configure.ac: Handle optional debuginfod support.
13342 * debuginfod-support.c: debuginfod helper functions.
13343 * debuginfod-support.h: Ditto.
13344 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13345 summary.
13346 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13347 when a dwz file cannot be found.
13348 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13349 debuginfo file cannot be found.
13350 * source.c (open_source_file): Query debuginfod servers when a
13351 source file cannot be found.
13352 * top.c (print_gdb_configuration): Include
13353 --{with,without}-debuginfod in the output.
13354
b65ce565
JG
133552020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13356
13357 * thread.c (thr_try_catch_cmd): Print thread name.
13358
d4c9a4f8
SM
133592020-02-26 Simon Marchi <simon.marchi@efficios.com>
13360
13361 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13362 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13363 dwarf2_fetch_die_type_sect_off): Move to...
13364 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13365 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13366 dwarf2_fetch_die_type_sect_off): ... here.
13367 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13368 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13369 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13370
0dce4280
TV
133712020-02-26 Tom de Vries <tdevries@suse.de>
13372
13373 PR gdb/25603
13374 * symfile.c (set_initial_language): Exit-early if
13375 language_mode == language_mode_manual.
13376
450a1bfc
SM
133772020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13378
13379 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13380 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13381 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13382
9e80cfa1
AB
133832020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13384
13385 * gdbtypes.c (create_array_type_with_stride): Handle negative
13386 array strides.
13387 * valarith.c (value_subscripted_rvalue): Likewise.
13388
09624f1f
LM
133892020-02-25 Luis Machado <luis.machado@linaro.org>
13390
13391 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13392
8cb5117c
SM
133932020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13394
13395 * loc.h (dwarf2_get_die_type): Move to...
13396 * read.h (dwarf2_get_die_type): ... here.
13397 * read.c (dwarf2_get_die_type): Move doc to header.
13398
c325c44e
JB
133992020-02-25 Joel Brobecker <brobecker@adacore.com>
13400
13401 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13402 'gnulib/Makefile.in' to the list.
13403
4ac93832
TT
134042020-02-24 Tom Tromey <tom@tromey.com>
13405
13406 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13407 Remove.
13408 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13409 XOBNEWVEC.
13410
197400e8
TT
134112020-02-24 Tom Tromey <tom@tromey.com>
13412
13413 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13414 New method.
13415 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13416 (dw2_do_instantiate_symtab, dw2_get_file_names)
13417 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13418
76935768
TT
134192020-02-24 Tom Tromey <tom@tromey.com>
13420
13421 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13422 make_scoped_restore.
13423 (dwarf2_psymtab::read_symtab): Don't clear
13424 reading_partial_symbols.
13425
a88ef40d
TV
134262020-02-24 Tom de Vries <tdevries@suse.de>
13427
13428 PR gdb/25592
13429 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13430
c9af6521
TV
134312020-02-24 Tom de Vries <tdevries@suse.de>
13432
13433 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13434 commands layout next/prev/regs.
13435
5707a07a
TT
134362020-02-22 Tom Tromey <tom@tromey.com>
13437
13438 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13439 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13440
3b0fb49e
TT
134412020-02-22 Tom Tromey <tom@tromey.com>
13442
13443 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13444
283be8bf
TT
134452020-02-22 Tom Tromey <tom@tromey.com>
13446
13447 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13448 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13449 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13450 * tui/tui.c (_initialize_tui): Add usage text.
13451
ca793b96
TT
134522020-02-22 Tom Tromey <tom@tromey.com>
13453
13454 * tui/tui-win.c (tui_set_focus_command)
13455 (tui_set_win_height_command): Use error_no_arg.
13456 (_initialize_tui_win): Update help text.
13457 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13458
432b5c40
TT
134592020-02-22 Tom Tromey <tom@tromey.com>
13460
13461 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13462 * tui/tui-disasm.h (struct tui_disasm_window)
13463 <display_start_addr>: Declare.
13464 * tui/tui-source.h (struct tui_source_window)
13465 <display_start_addr>: Declare.
13466 * tui/tui-winsource.h (struct tui_source_window_base)
13467 <show_source_line, display_start_addr>: New methods.
13468 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13469 Rename and move to protected section.
13470 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13471 (tui_source_window_base::do_erase_source_content): Update.
13472 (tui_source_window_base::show_source_line): Now a method.
13473 (tui_source_window_base::show_source_content)
13474 (tui_source_window_base::tui_source_window_base)
13475 (tui_source_window_base::rerender)
13476 (tui_source_window_base::refill)
13477 (tui_source_window_base::do_scroll_horizontal)
13478 (tui_source_window_base::set_is_exec_point_at)
13479 (tui_source_window_base::update_breakpoint_info)
13480 (tui_source_window_base::update_exec_info): Update.
13481 * tui/tui-source.c (tui_source_window::set_contents)
13482 (tui_source_window::showing_source_p)
13483 (tui_source_window::do_scroll_vertical)
13484 (tui_source_window::location_matches_p)
13485 (tui_source_window::line_is_displayed): Update.
13486 (tui_source_window::display_start_addr): New method.
13487 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13488 (tui_disasm_window::do_scroll_vertical)
13489 (tui_disasm_window::location_matches_p): Update.
13490 (tui_disasm_window::display_start_addr): New method.
13491
01b1af32
TT
134922020-02-22 Tom Tromey <tom@tromey.com>
13493
13494 * NEWS: Add entry for gdb.register_window_type.
13495 * tui/tui-layout.h (window_factory): New typedef.
13496 (tui_register_window): Declare.
13497 * tui/tui-layout.c (saved_tui_windows): New global.
13498 (tui_apply_current_layout): Use it.
13499 (tui_register_window): New function.
13500 * python/python.c (do_start_initialization): Call
13501 gdbpy_initialize_tui.
13502 (python_GdbMethods): Add "register_window_type" function.
13503 * python/python-internal.h (gdbpy_register_tui_window)
13504 (gdbpy_initialize_tui): Declare.
13505 * python/py-tui.c: New file.
13506 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13507
fc96d20b
TT
135082020-02-22 Tom Tromey <tom@tromey.com>
13509
13510 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13511
935c78c0
TT
135122020-02-22 Tom Tromey <tom@tromey.com>
13513
13514 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13515 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13516 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13517 (tui_set_win_focus_to): Move from tui-win.c.
13518
0240c8f1
TT
135192020-02-22 Tom Tromey <tom@tromey.com>
13520
13521 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13522 functions.
13523 (known_window_types): New global.
13524 (tui_get_window_by_name): Reimplement.
13525 (initialize_known_windows): New function.
13526 (validate_window_name): Rewrite.
13527 (_initialize_tui_layout): Call initialize_known_windows.
13528
fdb01f0c
TT
135292020-02-22 Tom Tromey <tom@tromey.com>
13530
13531 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13532 Remove constants.
13533 * tui/tui-winsource.h (struct tui_source_window_base)
13534 <tui_source_window_base>: Remove parameter.
13535 * tui/tui-winsource.c
13536 (tui_source_window_base::tui_source_window_base): Remove
13537 parameter.
13538 (tui_source_window_base::refill): Update.
13539 * tui/tui-stack.h (struct tui_locator_window)
13540 <tui_locator_window>: Update.
13541 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13542 Default the constructor.
13543 * tui/tui-regs.h (struct tui_data_item_window)
13544 <tui_data_item_window>: Default the constructor.
13545 (struct tui_data_window) <tui_data_window>: Likewise.
13546 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13547 Default the constructor.
13548 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13549 Default the constructor.
13550 <type>: Remove.
13551 (struct tui_win_info) <tui_win_info>: Default the constructor.
13552 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13553 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13554 Default the constructor.
13555
865a5aec
TT
135562020-02-22 Tom Tromey <tom@tromey.com>
13557
13558 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13559 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13560 * tui/tui-win.c (tui_resize_all): Don't call
13561 tui_delete_invisible_windows.
13562 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13563 done.
13564 (tui_set_layout): Update.
13565 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13566 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13567 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13568
e098d18c
TT
135692020-02-22 Tom Tromey <tom@tromey.com>
13570
13571 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13572 correctly.
13573
eb9c8874
TT
135742020-02-22 Tom Tromey <tom@tromey.com>
13575
13576 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13577
7eed1a8e
TT
135782020-02-22 Tom Tromey <tom@tromey.com>
13579
13580 * tui/tui-winsource.h (struct tui_source_window_iterator)
13581 <inner_iterator>: New etytypedef.
13582 <tui_source_window_iterator>: Take "end" parameter.
13583 <tui_source_window_iterator>: Take iterator.
13584 <operator*, advance>: Update.
13585 <m_iter>: Change type.
13586 <m_end>: New field.
13587 (struct tui_source_windows) <begin, end>: Update.
13588 * tui/tui-layout.c (tui_windows): New global.
13589 (tui_apply_current_layout): Clear tui_windows.
13590 (tui_layout_window::apply): Update tui_windows.
13591 * tui/tui-data.h (tui_windows): Declare.
13592 (all_tui_windows): Now inline function.
13593 (class tui_window_iterator, struct all_tui_windows): Remove.
13594
7c043ba6
TT
135952020-02-22 Tom Tromey <tom@tromey.com>
13596
13597 PR tui/17850:
13598 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13599 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13600 "height" argument.
13601 (class tui_layout_window) <get_sizes>: Likewise.
13602 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13603 argument.
13604 <get_sizes>: Add "height" argument.
13605 <m_vertical>: New field.
13606 * tui/tui-layout.c (tui_layout_split::clone): Update.
13607 (tui_layout_split::get_sizes): Add "height" argument.
13608 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13609 (tui_new_layout_command): Parse "-horizontal".
13610 (_initialize_tui_layout): Update help string.
13611 (tui_layout_split::specification): Add "-horizontal" when needed.
13612 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13613 argument.
13614 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13615 New methods.
13616
6bc56648
TT
136172020-02-22 Tom Tromey <tom@tromey.com>
13618
13619 * tui/tui-layout.h (enum tui_adjust_result): New.
13620 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13621 (class tui_layout_window) <adjust_size>: Return
13622 tui_adjust_result. Rewrite.
13623 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13624 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13625
c22fef7e
TT
136262020-02-22 Tom Tromey <tom@tromey.com>
13627
13628 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13629 parameter and return types.
13630 (class tui_layout_base) <specification>: Add "depth".
13631 (class tui_layout_window) <specification>: Add "depth".
13632 (class tui_layout_split) <specification>: Add "depth".
13633 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13634 and return types.
13635 (tui_new_layout_command): Parse sub-layouts.
13636 (_initialize_tui_layout): Update help string.
13637 (tui_layout_window::specification): Add "depth".
13638 (add_layout_command): Update.
13639
ee325b61
TT
136402020-02-22 Tom Tromey <tom@tromey.com>
13641
13642 * NEWS: Add "tui new-layout" item.
13643 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13644 Add new-layout command to help text.
13645 (validate_window_name): New function.
13646 (tui_new_layout_command): New function.
13647 (_initialize_tui_layout): Register "new-layout".
13648 (tui_layout_window::specification): New method.
13649 (tui_layout_window::specification): New method.
13650 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13651 method.
13652 (class tui_layout_window) <specification>: New method.
13653 (class tui_layout_split) <specification>: New method.
13654
416eb92d
TT
136552020-02-22 Tom Tromey <tom@tromey.com>
13656
13657 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13658 * tui/tui-win.c (window_name_completer): Update comment.
13659 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13660 Declare method.
13661 (class tui_layout_window) <replace_window>: Likewise.
13662 (class tui_layout_split) <replace_window>: Likewise.
13663 (tui_set_layout): Don't declare.
13664 (tui_set_initial_layout): Declare function.
13665 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13666 (asm_regs_layout): New globals.
13667 (tui_current_layout, show_layout): Remove.
13668 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13669 (find_layout, tui_apply_layout): New function.
13670 (layout_completer): Remove.
13671 (tui_next_layout): Reimplement.
13672 (tui_next_layout_command): New function.
13673 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13674 (tui_regs_layout): Reimplement.
13675 (tui_regs_layout_command): New function.
13676 (extract_display_start_addr): Rewrite.
13677 (next_layout, prev_layout): Remove.
13678 (tui_layout_window::replace_window): New method.
13679 (tui_layout_split::replace_window): New method.
13680 (destroy_layout): New function.
13681 (layout_list): New global.
13682 (add_layout_command): New function.
13683 (initialize_layouts): Update.
13684 (tui_layout_command): New function.
13685 (_initialize_tui_layout): Install "layout" commands.
13686 * tui/tui-data.h (enum tui_layout_type): Remove.
13687 (tui_current_layout): Don't declare.
13688
0dbc2fc7
TT
136892020-02-22 Tom Tromey <tom@tromey.com>
13690
13691 * tui/tui-regs.c (tui_reg_layout): Remove.
13692 (tui_reg_command): Use tui_regs_layout.
13693 * tui/tui-layout.h (tui_reg_command): Declare.
13694 * tui/tui-layout.c (tui_reg_command): New function.
13695
5afe342e
TT
136962020-02-22 Tom Tromey <tom@tromey.com>
13697
13698 * tui/tui.c (tui_rl_delete_other_windows): Call
13699 tui_remove_some_windows.
13700 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13701 Declare method.
13702 (class tui_layout_window) <remove_windows>: New method.
13703 (class tui_layout_split) <remove_windows>: Declare.
13704 (tui_remove_some_windows): Declare.
13705 * tui/tui-layout.c (tui_remove_some_windows): New function.
13706 (tui_layout_split::remove_windows): New method.
13707
427326a8
TT
137082020-02-22 Tom Tromey <tom@tromey.com>
13709
13710 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13711 * tui/tui-layout.h (tui_next_layout): Declare.
13712 * tui/tui-layout.c (tui_next_layout): New function.
13713
3fe12b6d
TT
137142020-02-22 Tom Tromey <tom@tromey.com>
13715
13716 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13717 correct coordinates.
13718
59b8b5d2
TT
137192020-02-22 Tom Tromey <tom@tromey.com>
13720
13721 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13722 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13723 DATA_WIN case.
13724
2a3d458b
TT
137252020-02-22 Tom Tromey <tom@tromey.com>
13726
13727 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13728 TUI_DISASM_WIN, not tui_win_list.
13729
3f0cbb04
TT
137302020-02-22 Tom Tromey <tom@tromey.com>
13731
13732 * valprint.c (generic_val_print_enum_1)
13733 (val_print_type_code_flags): Style member names.
13734 * rust-lang.c (val_print_struct, rust_print_enum)
13735 (rust_print_struct_def, rust_internal_print_type): Style member
13736 names.
13737 * p-valprint.c (pascal_object_print_value_fields): Style member
13738 names. Only call fprintf_symbol_filtered for static members.
13739 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13740 * f-valprint.c (f_val_print): Style member names.
13741 * f-typeprint.c (f_type_print_base): Style member names.
13742 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13743 call fprintf_symbol_filtered for static members.
13744 (cp_print_class_member): Style member names.
13745 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13746 member names.
13747 * ada-valprint.c (ada_print_scalar): Style enum names.
13748 (ada_val_print_enum): Likewise.
13749 * ada-typeprint.c (print_enum_type): Style enum names.
13750
d4d947ae
TT
137512020-02-21 Tom Tromey <tom@tromey.com>
13752
13753 * psympriv.h (struct partial_symtab): Update comment.
13754
e94e944b
TT
137552020-02-21 Tom Tromey <tromey@adacore.com>
13756
13757 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13758 type is CORE_ADDR.
13759
1eb73179
TV
137602020-02-21 Tom de Vries <tdevries@suse.de>
13761
13762 PR gdb/25534
13763 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13764 if dependencies[i]->user != NULL.
13765
4f180d53
AT
137662020-02-21 Ali Tamur <tamur@google.com>
13767
13768 * dwarf2/read.c (dwarf2_name): Add null check.
13769
22b6cd70
TT
137702020-02-20 Tom Tromey <tom@tromey.com>
13771
13772 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13773 ">=", in binary search.
13774 (dwarf2_find_containing_comp_unit): New overload.
13775 (run_test): New self-test.
13776 (_initialize_dwarf2_read): Register new test.
13777
bd0cf5a6
NC
137782020-02-20 Nelson Chu <nelson.chu@sifive.com>
13779
13780 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13781 * riscv-tdep.h: Likewise.
13782 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13783 rv32-only CSR.
13784 * features/riscv/64bit-csr.xml: Regenerated.
13785
3f702acd
SDJ
137862020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13787 Tom Tromey <tom@tromey.com>
13788
13789 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13790 of 'fputc_unfiltered'.
13791 (putchar_unfiltered): Call 'fputc_unfiltered'.
13792 (fputc_unfiltered): Call 'fputs_unfiltered'.
13793
d13c7322
AB
137942020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13795
13796 * config.in: Regenerate.
13797 * configure: Regenerate.
13798 * configure.ac: Add --with-python-libdir option.
13799 * main.c: Use WITH_PYTHON_LIBDIR.
13800
869d8950
TT
138012020-02-19 Tom Tromey <tom@tromey.com>
13802
13803 * symtab.c (general_symbol_info::compute_and_set_names): Use
13804 obstack_strndup. Simplify call to symbol_set_demangled_name.
13805
298e9637
SM
138062020-02-19 Simon Marchi <simon.marchi@efficios.com>
13807
13808 * dwarf2/read.c (allocate_signatured_type_table,
13809 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13810 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13811 Remove objfile parameter, update all callers.
13812
08410482
DE
138132020-02-19 Doug Evans <dje@google.com>
13814
13815 PR rust/25535
13816 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13817 rust_enum_variant calculation.
13818
dfdeeca1
TT
138192020-02-19 Tom Tromey <tromey@adacore.com>
13820
13821 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13822
2ef5453b
TT
138232020-02-19 Tom Tromey <tromey@adacore.com>
13824
13825 * ada-lang.c (cache_symbol): Use obstack_strdup.
13826
9f1528a1
AB
138272020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13828
13829 * configure: Regenerate.
13830
d3c22fa8
TT
138312020-02-19 Tom Tromey <tromey@adacore.com>
13832
13833 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13834 NULL check.
13835
bf84f706
MR
138362020-02-19 Maciej W. Rozycki <macro@wdc.com>
13837
13838 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13839
d1c9b20f
AB
138402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13841
13842 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13843 if GDBSERVER is not defined.
13844 (riscv_tdesc_cache): Likewise, also store const target_desc.
13845 (STATIC_IN_GDB): Define.
13846 (riscv_create_target_description): Update declaration with
13847 STATIC_IN_GDB.
13848 (riscv_lookup_target_description): New function, only define if
13849 GDBSERVER is not defined.
13850 * arch/riscv.h (riscv_create_target_description): Declare only
13851 when GDBSERVER is defined.
13852 (riscv_lookup_target_description): New declaration when GDBSERVER
13853 is not defined.
13854 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13855 (riscv_linux_read_features): ...this, and return
13856 riscv_gdbarch_features instead of target_desc.
13857 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13858 (riscv_linux_read_description): Rename to...
13859 (riscv_linux_read_features): ...this.
13860 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13861 Update to use riscv_gdbarch_features and
13862 riscv_lookup_target_description.
13863 * riscv-tdep.c (riscv_find_default_target_description): Use
13864 riscv_lookup_target_description instead of
13865 riscv_create_target_description.
13866
373d7ac0
SM
138672020-02-18 Simon Marchi <simon.marchi@efficios.com>
13868
13869 * valprint.c (generic_val_print_enum_1): When printing a flag
13870 enum with value 0 and there is no enumerator with value 0, print
13871 just "0" instead of "(unknown: 0x0)".
13872
b29a2df0
SM
138732020-02-18 Simon Marchi <simon.marchi@efficios.com>
13874
13875 * valprint.c (generic_val_print_enum_1): Print unknown part of
13876 flag enum in hex.
13877
6740f0cc
SM
138782020-02-18 Simon Marchi <simon.marchi@efficios.com>
13879
13880 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13881 flag enums to contain duplicate enumerators.
13882 * valprint.c (generic_val_print_enum_1): Update comment.
13883
edd45eb0
SM
138842020-02-18 Simon Marchi <simon.marchi@efficios.com>
13885
13886 * dwarf2/read.c: Include "count-one-bits.h".
13887 (update_enumeration_type_from_children): If an enumerator has
13888 multiple bits set, don't treat the enumeration as a "flag enum".
13889 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13890 of flag enums have 0 or 1 bit set.
13891
6d0cf446
BE
138922020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13893
13894 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13895 conversion.
13896 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13897 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13898 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13899 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13900 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13901
7001c1b7
SM
139022020-02-18 Simon Marchi <simon.marchi@efficios.com>
13903
13904 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13905
fdb61c6c
SM
139062020-02-14 Simon Marchi <simon.marchi@efficios.com>
13907
13908 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13909 displaced_step_closure_up.
13910 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13911 (struct displaced_step_closure_up):
13912 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13913 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13914 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13915 Likewise.
13916 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13917 * gdbarch.c, gdbarch.h: Re-generate.
13918 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13919 displaced_step_closure_up.
13920 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13921 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13922 * infrun.h (displaced_step_closure_up): New type alias.
13923 (struct displaced_step_inferior_state) <step_closure>: Change
13924 type to displaced_step_closure_up.
13925 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13926 displaced_step_closure_up.
13927 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13928
a4a38eb4
TT
139292020-02-14 Tom Tromey <tom@tromey.com>
13930
13931 * minidebug.c (gnu_debug_key): New global.
13932 (find_separate_debug_file_in_section): Use it.
13933
e8217e61
SM
139342020-02-14 Simon Marchi <simon.marchi@efficios.com>
13935
13936 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13937 std::unique_ptr.
13938 * gdbarch.c: Re-generate.
13939 * gdbarch.h: Re-generate.
13940 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13941 change.
13942 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13943 type to std::unique_ptr.
13944 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13945 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13946 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13947 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13948 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13949 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13950 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13951 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13952 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13953
d8d83535
SM
139542020-02-14 Simon Marchi <simon.marchi@efficios.com>
13955
13956 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13957 std::unique_ptr.
13958 (displaced_step_clear): Rename to...
13959 (displaced_step_reset): ... this. Just call displaced->reset ().
13960 (displaced_step_clear_cleanup): Rename to...
13961 (displaced_step_reset_cleanup): ... this.
13962 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13963 (displaced_step_fixup): Likewise.
13964 (resume_1): Likewise.
13965 (handle_inferior_event): Restore child's memory before calling
13966 displaced_step_fixup on the parent.
13967 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13968 to std::unique_ptr.
13969 <step_closure>: Change type to std::unique_ptr.
13970
5f661e03
SM
139712020-02-14 Simon Marchi <simon.marchi@efficios.com>
13972
13973 * arm-tdep.c: Include count-one-bits.h.
13974 (cleanup_block_store_pc): Use count_one_bits.
13975 (cleanup_block_load_pc): Use count_one_bits.
13976 (arm_copy_block_xfer): Use count_one_bits.
13977 (thumb2_copy_block_xfer): Use count_one_bits.
13978 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13979 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13980 (thumb_get_next_pcs_raw): Use count_one_bits.
13981 (arm_get_next_pcs_raw): Use count_one_bits_l.
13982 * arch/arm.c (bitcount): Remove.
13983 * arch/arm.h (bitcount): Remove.
13984
8084e579
TT
139852020-02-14 Tom Tromey <tromey@adacore.com>
13986
13987 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13988 Update.
13989 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13990 * dwarf2/loc.c (call_site_find_chain_1): Return
13991 unique_xmalloc_ptr.
13992 (call_site_find_chain): Likewise.
13993
258bf0ee
RB
139942020-02-14 Richard Biener <rguenther@suse.de>
13995
13996 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13997 on expression with division operators.
13998
f98a8458
AKS
139992020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14000
14001 * MAINTAINERS (Write After Approval): Adding myself.
14002
d1437c0e
TT
140032020-02-12 Tom Tromey <tom@tromey.com>
14004
14005 * event-loop.c (event_data, gdb_event, event_handler_func):
14006 Remove.
14007
3d4560f7
TT
140082020-02-12 Tom Tromey <tom@tromey.com>
14009
14010 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14011 (dwarf2_frame_objfile_data): Add comment.
14012 (find_comp_unit, set_comp_unit): New functions.
14013 (dwarf2_frame_find_fde): Use find_comp_unit.
14014 (dwarf2_build_frame_info): Use set_comp_unit.
14015
21982304
TT
140162020-02-12 Tom Tromey <tom@tromey.com>
14017
14018 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14019 (comp_unit): Don't initialize objfile.
14020 (execute_cfa_program): Add text_offset parameter.
14021 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14022 (dwarf2_frame_cache): Update.
14023 (dwarf2_build_frame_info): Don't set "objfile" member.
14024
4debb237
TT
140252020-02-12 Tom Tromey <tom@tromey.com>
14026
14027 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14028 (decode_frame_entry): Likewise.
14029 (dwarf2_build_frame_info): Update.
14030
0d404d44
TT
140312020-02-12 Tom Tromey <tom@tromey.com>
14032
14033 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14034 (decode_frame_entry_1): Use the comp_unit obstack.
14035
a7a3ae5c
TT
140362020-02-12 Tom Tromey <tom@tromey.com>
14037
14038 * dwarf2/frame.c (struct comp_unit): Add initializers and
14039 constructor.
14040 (dwarf2_frame_objfile_data): Store a comp_unit.
14041 (dwarf2_frame_find_fde): Update.
14042 (dwarf2_build_frame_info): Use "new".
14043
a9d65418
TT
140442020-02-12 Tom Tromey <tom@tromey.com>
14045
14046 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14047 (dwarf2_fde_table): Typedef for std::vector.
14048 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14049 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14050 (decode_frame_entry): Update.
14051 (dwarf2_build_frame_info): Use "new".
14052
7559c217
CB
140532020-02-12 Christian Biesinger <cbiesinger@google.com>
14054
14055 * arm-tdep.c (arm_gdbarch_init): Update.
14056 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14057 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14058 have_neon, is_m>: Change to bool.
14059
aeefc73c
CB
140602020-02-12 Christian Biesinger <cbiesinger@google.com>
14061
14062 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14063
d27b8e5f
TT
140642020-02-12 Tom Tromey <tom@tromey.com>
14065
14066 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14067
cd5900f3
HD
140682020-02-12 Hannes Domani <ssbssa@yahoo.de>
14069
14070 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14071 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14072
f056b22b
TT
140732020-02-11 Tom Tromey <tom@tromey.com>
14074
14075 * psymtab.h: Update comment.
14076
f92ff6b5
TT
140772020-02-11 Tom Tromey <tom@tromey.com>
14078
14079 * gdb_obstack.h (struct auto_obstack): Use
14080 DISABLE_COPY_AND_ASSIGN.
14081
3fd6912b
TT
140822020-02-11 Tom Tromey <tom@tromey.com>
14083
14084 * dwarf2/frame.h (struct objfile): Don't forward declare.
14085
69ed9b74
CB
140862020-02-11 Christian Biesinger <cbiesinger@google.com>
14087
14088 * cris-tdep.c (cris_supply_gregset): Change signature to match
14089 what struct regset expects.
14090 (cris_regset): New struct.
14091 (fetch_core_registers): Remove.
14092 (cris_iterate_over_regset_sections): New function.
14093 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14094 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14095
bda874f6
CB
140962020-02-11 Christian Biesinger <cbiesinger@google.com>
14097
14098 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14099 registers.
14100
754e1564
CB
141012020-02-11 Christian Biesinger <cbiesinger@google.com>
14102
14103 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14104
8ddd8e0e
SM
141052020-02-11 Simon Marchi <simon.marchi@efficios.com>
14106
14107 * configure: Re-generate.
14108
898e7f60
SM
141092020-02-11 Simon Marchi <simon.marchi@efficios.com>
14110
14111 * configure: Re-generate.
14112
58df732b
SM
141132020-02-11 Simon Marchi <simon.marchi@efficios.com>
14114
14115 * acinclude: Update warning.m4 path.
14116 * warning.m4: Move to gdbsupport.
14117
da5bd37e
TT
141182020-02-11 Tom Tromey <tromey@adacore.com>
14119
14120 * remote.c (remote_console_output): Update.
14121 * printcmd.c (printf_command): Update.
14122 * event-loop.c (gdb_wait_for_event): Update.
14123 * linux-nat.c (sigchld_handler): Update.
14124 * remote-sim.c (gdb_os_write_stdout): Update.
14125 (gdb_os_flush_stdout): Update.
14126 (gdb_os_flush_stderr): Update.
14127 (gdb_os_write_stderr): Update.
14128 * exceptions.c (print_exception): Update.
14129 * remote-fileio.c (remote_fileio_func_read): Update.
14130 (remote_fileio_func_write): Update.
14131 * tui/tui.c (tui_enable): Update.
14132 * tui/tui-interp.c (tui_interp::init): Update.
14133 * utils.c (init_page_info): Update.
14134 (putchar_unfiltered, fputc_unfiltered): Update.
14135 (gdb_flush): Update.
14136 (emit_style_escape): Update.
14137 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14138 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14139 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14140 (stderr_file::write): Update.
14141 (stderr_file::puts): Update.
14142 * ui-file.h (ui_file_isatty, ui_file_write)
14143 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14144 (ui_file_puts): Don't declare.
14145
85f0dd3c
TV
141462020-02-10 Tom de Vries <tdevries@suse.de>
14147
14148 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14149 sentinel to char *.
14150
2e927613
TV
141512020-02-09 Tom de Vries <tdevries@suse.de>
14152
14153 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14154 filename if it matches "<artificial>".
14155
6bafc845
HD
141562020-02-09 Hannes Domani <ssbssa@yahoo.de>
14157
14158 * windows-tdep.c (struct enum_value_name): New struct.
14159 (create_enum): New function.
14160 (windows_get_siginfo_type): Create and use enum types.
14161
7928d571
HD
141622020-02-09 Hannes Domani <ssbssa@yahoo.de>
14163
14164 * NEWS: Mention $_siginfo support for Windows.
14165 * windows-nat.c (handle_exception): Set siginfo_er.
14166 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14167 (windows_xfer_siginfo): New function.
14168 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14169 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14170 (init_windows_gdbarch_data): New function.
14171 (get_windows_gdbarch_data): New function.
14172 (windows_get_siginfo_type): New function.
14173 (windows_init_abi): Register windows_get_siginfo_type.
14174 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14175
6751ebae
TT
141762020-02-08 Tom Tromey <tom@tromey.com>
14177
14178 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14179 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14180 <keep>: Declare method.
14181 <m_keep>: Remove member.
14182 <~cutu_reader>: Remove.
14183 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14184 (cutu_reader::cutu_reader): Update.
14185 (cutu_reader::keep): Rename from ~cutu_reader.
14186 (process_psymtab_comp_unit, build_type_psymtabs_1)
14187 (process_skeletonless_type_unit, load_partial_comp_unit)
14188 (load_full_comp_unit, dwarf2_read_addr_index)
14189 (read_signatured_type): Update.
14190
135f5437
TT
141912020-02-08 Tom Tromey <tom@tromey.com>
14192
14193 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14194 "want_partial_unit" parameter.
14195 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14196 Inline check for DW_TAG_partial_unit.
14197 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14198
9f66ff1c
TT
141992020-02-08 Tom Tromey <tom@tromey.com>
14200
14201 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14202 read.c.
14203 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14204 read.c.
14205
c8a7a66f
TT
142062020-02-08 Tom Tromey <tom@tromey.com>
14207
14208 * dwarf2/read.c (read_address): Move to comp-unit.c.
14209 (dwarf2_rnglists_process, dwarf2_ranges_process)
14210 (read_attribute_value, dwarf_decode_lines_1)
14211 (var_decode_location, decode_locdesc): Update.
14212 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14213 read.c. Remove "cu" parameter.
14214 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14215 method.
14216
8266302d
TT
142172020-02-08 Tom Tromey <tom@tromey.com>
14218
14219 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14220 (read_indirect_line_string): Update.
14221 * dwarf2/comp-unit.c (read_offset): Remove.
14222 (read_comp_unit_head): Update.
14223 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14224 method.
14225 (read_offset): Don't declare.
14226
4057dfde
TT
142272020-02-08 Tom Tromey <tom@tromey.com>
14228
14229 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14230 * dwarf2/read.c (struct comp_unit_head): Move to
14231 dwarf2/comp-unit.h.
14232 (enum class rcuh_kind): Move to comp-unit.h.
14233 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14234 (read_comp_unit_head, error_check_comp_unit_head)
14235 (read_and_check_comp_unit_head): Move to comp-unit.c.
14236 (read_offset, dwarf_unit_type_name): Likewise.
14237 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14238 (cutu_reader::cutu_reader, read_call_site_scope)
14239 (find_partial_die, follow_die_offset): Update.
14240 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14241
24aa364d
TT
142422020-02-08 Tom Tromey <tom@tromey.com>
14243
14244 * dwarf2/read.c (read_offset_1): Move to leb.c.
14245 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14246 (dwarf_decode_macro_bytes): Update.
14247 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14248 * dwarf2/leb.h (read_offset): Declare.
14249
2c7d5afc
TT
142502020-02-08 Tom Tromey <tom@tromey.com>
14251
14252 * dwarf2/read.c (dwarf2_section_size): Remove.
14253 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14254 Update.
14255 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14256
4075cb26
TT
142572020-02-08 Tom Tromey <tom@tromey.com>
14258
14259 * dwarf2/read.c (read_initial_length): Move to leb.c.
14260 * dwarf2/leb.h (read_initial_length): Declare.
14261 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14262 handle_nonstd parameter.
14263 * dwarf2/frame.c (read_initial_length): Remove.
14264 (decode_frame_entry_1): Update.
14265
09ba997f
TT
142662020-02-08 Tom Tromey <tom@tromey.com>
14267
14268 * dwarf2/loc.c (dwarf2_find_location_expression)
14269 (dwarf_evaluate_loc_desc::get_tls_address)
14270 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14271 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14272 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14273 (dwarf2_compile_property_to_c)
14274 (dwarf2_loc_desc_get_symbol_read_needs)
14275 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14276 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14277 (loclist_describe_location, loclist_tracepoint_var_ref)
14278 (loclist_generate_c_location): Update.
14279 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14280 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14281 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14282 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14283 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14284 (dwarf2_per_cu_data::addr_size)
14285 (dwarf2_per_cu_data::ref_addr_size)
14286 (dwarf2_per_cu_data::text_offset)
14287 (dwarf2_per_cu_data::addr_type): Now methods.
14288 (per_cu_header_read_in): Make per_cu "const".
14289 (dwarf2_version): Remove.
14290 (dwarf2_per_cu_data::int_type): Now a method.
14291 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14292 (set_die_type, read_array_type, read_subrange_index_type)
14293 (read_tag_string_type, read_subrange_type): Update.
14294 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14295 offset_size, ref_addr_size, text_offset, addr_type, version,
14296 objfile, int_type, addr_sized_int_type>: Declare methods.
14297
96c738c0
TT
142982020-02-08 Tom Tromey <tom@tromey.com>
14299
14300 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14301 Move earlier.
14302
8fdd972c
TT
143032020-02-08 Tom Tromey <tom@tromey.com>
14304
14305 * dwarf2/read.h (dwarf_line_debug): Declare.
14306 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14307 * dwarf2/read.c: Move line_header code to new files.
14308 (dwarf_line_debug): No longer static.
14309 * dwarf2/line-header.c: New file.
14310 * dwarf2/line-header.h: New file.
14311
03075812
TT
143122020-02-08 Tom Tromey <tom@tromey.com>
14313
14314 * dwarf2/read.c (struct line_header) <file_full_name,
14315 file_file_name>: Return unique_xmalloc_ptr.
14316 (line_header::file_file_name): Update.
14317 (line_header::file_full_name): Update.
14318 (dw2_get_file_names_reader): Update.
14319 (macro_start_file): Update.
14320
bb822404
TT
143212020-02-08 Tom Tromey <tom@tromey.com>
14322
14323 * dwarf2/read.c (struct line_header) <file_full_name,
14324 file_file_name>: Declare methods.
14325 (dw2_get_file_names_reader): Update.
14326 (file_file_name): Now a method.
14327 (file_full_name): Likewise.
14328 (macro_start_file): Update.
14329
009b64fc
TT
143302020-02-08 Tom Tromey <tom@tromey.com>
14331
14332 * dwarf2/read.c (dwarf_always_disassemble)
14333 (show_dwarf_always_disassemble): Move to loc.c.
14334 (_initialize_dwarf2_read): Move "always-disassemble" registration
14335 to loc.c.
14336 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14337 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14338 static.
14339 (show_dwarf_always_disassemble): Move from read.c.
14340 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14341
5895093f
TT
143422020-02-08 Tom Tromey <tom@tromey.com>
14343
14344 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14345 (create_quick_file_names_table): Return htab_up.
14346 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14347 Update.
14348 * dwarf2/read.h (struct dwarf2_per_objfile)
14349 <quick_file_names_table>: Now htab_up.
14350
b3b32279
TT
143512020-02-08 Tom Tromey <tom@tromey.com>
14352
14353 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14354
1d33d811
TT
143552020-02-08 Tom Tromey <tom@tromey.com>
14356
14357 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14358 Rewrite.
14359 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14360 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14361 (abbrev_table::abbrev_table): No longer inline.
14362 (ABBREV_HASH_SIZE): Remove.
14363 (abbrev_table::m_abbrevs): Now an htab_up.
14364
86de1d91
TT
143652020-02-08 Tom Tromey <tom@tromey.com>
14366
14367 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14368 (cutu_reader): Update.
14369 (build_type_psymtabs_1): Update.
14370 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14371 (abbrev_table::alloc_abbrev): Update.
14372 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14373 (abbrev_table::read): New static method, renamed from
14374 abbrev_table_read_table.
14375 (abbrev_table::alloc_abbrev)
14376 (abbrev_table::add_abbrev): Now private.
14377 (abbrev_table::abbrev_table): Now private.
14378 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14379
0335378b
TT
143802020-02-08 Tom Tromey <tom@tromey.com>
14381
14382 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14383 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14384 htab_up.
14385
48b490f2
TT
143862020-02-08 Tom Tromey <tom@tromey.com>
14387
14388 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14389 htab_up.
14390 (lookup_dwo_unit_in_dwp): Update.
14391 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14392 on obstack.
14393
bc68fb19
TT
143942020-02-08 Tom Tromey <tom@tromey.com>
14395
14396 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14397 obstack.
14398
d15acc42
TT
143992020-02-08 Tom Tromey <tom@tromey.com>
14400
14401 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14402 line_header_hash.
14403 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14404 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14405 Change type to htab_up.
14406
eaa5fa8b
TT
144072020-02-08 Tom Tromey <tom@tromey.com>
14408
14409 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14410 htab_up. Don't allocate on obstack.
14411 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14412 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14413 Change type to htab_up.
14414
b0b6a987
TT
144152020-02-08 Tom Tromey <tom@tromey.com>
14416
14417 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14418 Change type to htab_up.
14419 * dwarf2/read.c (create_signatured_type_table_from_index)
14420 (create_signatured_type_table_from_debug_names)
14421 (create_all_type_units, add_type_unit)
14422 (lookup_dwo_signatured_type, lookup_signatured_type)
14423 (process_skeletonless_type_unit): Update.
14424 (create_debug_type_hash_table, create_debug_types_hash_table):
14425 Change type of types_htab.
14426 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14427 htab_up. Don't allocate on obstack.
14428 (create_cus_hash_table): Change type of cus_htab parameter.
14429 (struct dwo_file) <cus, tus>: Now htab_up.
14430 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14431 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14432 (queue_and_load_all_dwo_tus): Update.
14433 * dwarf2/index-write.c (write_gdbindex): Update.
14434 (write_debug_names): Update.
14435
39856def
TT
144362020-02-08 Tom Tromey <tom@tromey.com>
14437
14438 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14439 dwarf2/read.c. Remove "next" member. Add constructor ntad
14440 destructor.
14441 (struct dwarf2_per_objfile) <queue>: New member.
14442 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14443 dwarf2/read.h.
14444 (dwarf2_queue, dwarf2_queue_tail): Remove.
14445 (class dwarf2_queue_guard): Add parameter to constructor. Use
14446 DISABLE_COPY_AND_ASSIGN.
14447 <m_per_objfile>: New member.
14448 <~dwarf2_queue_guard>: Rewrite.
14449 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14450 Update.
14451 (~dwarf2_queue_item): New.
14452
3e225074
TT
144532020-02-08 Tom Tromey <tom@tromey.com>
14454
14455 * dwarf2/read.c (struct die_info) <has_children>: New member.
14456 (dw2_get_file_names_reader): Remove has_children.
14457 (dw2_get_file_names): Update.
14458 (read_cutu_die_from_dwo): Remove has_children.
14459 (cutu_reader::init_tu_and_read_dwo_dies)
14460 (cutu_reader::cutu_reader): Update.
14461 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14462 Remove has_children.
14463 (build_type_psymtabs_1, process_skeletonless_type_unit)
14464 (load_partial_comp_unit, load_full_comp_unit): Update.
14465 (create_dwo_cu_reader): Remove has_children.
14466 (create_cus_hash_table, read_die_and_children): Update.
14467 (read_full_die_1,read_full_die): Remove has_children.
14468 (read_signatured_type): Update.
14469 (class cutu_reader) <has_children>: Remove.
14470
82ca8957
TT
144712020-02-08 Tom Tromey <tom@tromey.com>
14472
14473 * dwarf2/expr.c: Rename from dwarf2expr.c.
14474 * dwarf2/expr.h: Rename from dwarf2expr.h.
14475 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14476 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14477 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14478 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14479 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14480 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14481 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14482 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14483 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14484 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14485 * dwarf2/loc.c: Rename from dwarf2loc.c.
14486 * dwarf2/loc.h: Rename from dwarf2loc.h.
14487 * dwarf2/read.c: Rename from dwarf2read.c.
14488 * dwarf2/read.h: Rename from dwarf2read.h.
14489 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14490 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14491 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14492 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14493 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14494 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14495 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14496 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14497 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14498 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14499 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14500 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14501 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14502 Update.
14503 * Makefile.in (COMMON_SFILES): Update.
14504 (HFILES_NO_SRCDIR): Update.
14505
9e35d499
TT
145062020-02-08 Tom Tromey <tom@tromey.com>
14507
14508 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14509 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14510
1eba2311
TT
145112020-02-08 Tom Tromey <tom@tromey.com>
14512
14513 * dwarf2read.h (struct die_info): Don't declare.
14514
e41c2da2
TT
145152020-02-08 Tom Tromey <tom@tromey.com>
14516
14517 * dwarf2read.h (die_info_ptr): Remove typedef.
14518
4fc6c0d5
TT
145192020-02-08 Tom Tromey <tom@tromey.com>
14520
14521 * dwarf2read.c (read_call_site_scope)
14522 (handle_data_member_location, dwarf2_add_member_fn)
14523 (mark_common_block_symbol_computed, read_common_block)
14524 (attr_to_dynamic_prop, partial_die_info::read)
14525 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14526 (dwarf2_symbol_mark_computed, set_die_type): Update.
14527 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14528 method.
14529 (attr_form_is_block): Don't declare.
14530 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14531
cd6c91b4
TT
145322020-02-08 Tom Tromey <tom@tromey.com>
14533
14534 * dwarf2read.c (dwarf2_find_base_address, )
14535 (read_call_site_scope, rust_containing_type)
14536 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14537 (handle_data_member_location, dwarf2_add_member_fn)
14538 (get_alignment, read_structure_type, process_structure_scope)
14539 (mark_common_block_symbol_computed, read_common_block)
14540 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14541 (partial_die_info::read, read_attribute_value, new_symbol)
14542 (lookup_die_type, dwarf2_get_ref_die_offset)
14543 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14544 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14545 (dwarf2_symbol_mark_computed): Update.
14546 * dwarf2/attribute.h (struct attribute) <value_as_address,
14547 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14548 methods.
14549 (value_as_address, attr_form_is_section_offset)
14550 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14551 * dwarf2/attribute.c (attribute::value_as_address)
14552 (attribute::form_is_section_offset, attribute::form_is_constant)
14553 (attribute::form_is_ref): Now methods.
14554
162dce55
TT
145552020-02-08 Tom Tromey <tom@tromey.com>
14556
14557 * dwarf2read.c (struct attribute, DW_STRING)
14558 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14559 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14560 (attr_form_is_block, attr_form_is_section_offset)
14561 (attr_form_is_constant, attr_form_is_ref): Move.
14562 * dwarf2/attribute.h: New file.
14563 * dwarf2/attribute.c: New file, from dwarf2read.c.
14564 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14565
3054dd54
TT
145662020-02-08 Tom Tromey <tom@tromey.com>
14567
14568 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14569 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14570 Move.
14571 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14572 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14573 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14574 abbrev.c.
14575 * dwarf2/abbrev.h: New file.
14576 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14577 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14578
96b79293
TT
145792020-02-08 Tom Tromey <tom@tromey.com>
14580
14581 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14582 (dwarf2_section_size, dwarf2_get_section_info)
14583 (create_signatured_type_table_from_debug_names)
14584 (create_addrmap_from_aranges, read_debug_names_from_section)
14585 (get_gdb_index_contents_from_section, read_comp_unit_head)
14586 (error_check_comp_unit_head, read_abbrev_offset)
14587 (create_debug_type_hash_table, init_cu_die_reader)
14588 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14589 (read_comp_units_from_section, create_cus_hash_table)
14590 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14591 (create_dwp_v2_section, dwarf2_rnglists_process)
14592 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14593 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14594 (read_indirect_string_from_dwz, read_addr_index_1)
14595 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14596 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14597 (fill_in_loclist_baton): Update.
14598 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14599 get_containing_section, get_bfd_owner, get_bfd_section,
14600 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14601 (dwarf2_read_section, get_section_name, get_section_file_name)
14602 (get_containing_section, get_section_bfd_owner)
14603 (get_section_bfd_section, get_section_name, get_section_file_name)
14604 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14605 declare.
14606 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14607 (dwarf2_section_info::get_bfd_owner)
14608 (dwarf2_section_info::get_bfd_section)
14609 (dwarf2_section_info::get_name)
14610 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14611 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14612 (dwarf2_section_info::read): Now methods.
14613 * dwarf-index-write.c (class debug_names): Update.
14614
2c86cff9
TT
146152020-02-08 Tom Tromey <tom@tromey.com>
14616
14617 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14618 Move to dwarf2/section.h.
14619 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14620 (get_section_bfd_section, get_section_name)
14621 (get_section_file_name, get_section_id, get_section_flags)
14622 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14623 dwarf2/section.c.
14624 * dwarf2/section.h: New file.
14625 * dwarf2/section.c: New file, from dwarf2read.c.
14626 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14627
f4382c45
TT
146282020-02-08 Tom Tromey <tom@tromey.com>
14629
14630 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14631 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14632 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14633 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14634 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14635 * dwarf2/leb.h: New file, from dwarf2read.c.
14636 * dwarf2/leb.c: New file, from dwarf2read.c.
14637 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14638 Remove.
14639 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14640 (COMMON_SFILES): Add dwarf2/leb.c.
14641
01840b7a
JB
146422020-02-08 Joel Brobecker <brobecker@adacore.com>
14643
14644 GDB 9.1 released.
14645
dfcb27e4
IB
146462020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14647
14648 PR gdb/25190:
aac66a4c
SM
14649 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14650 * gdb/remote.c (remote_console_output): Update.
14651 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14652 (ui_file_puts): ...this.
14653 * gdb/ui-file.h (ui_file_puts): Add declaration.
14654 * gdb/utils.c (emit_style_escape): Update.
14655 (flush_wrap_buffer): Update.
14656 (fputs_maybe_filtered): Update.
14657 (fputs_unfiltered): Add function.
dfcb27e4 14658
faa17681
IB
146592020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14660
aac66a4c
SM
14661 * gdb/event-loop.c (gdb_wait_for_event): Update.
14662 * gdb/printcmd.c (printf_command): Update.
14663 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14664 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14665 (gdb_os_flush_stderr): Update.
14666 * gdb/remote.c (remote_console_output): Update.
14667 * gdb/ui-file.c (gdb_flush): Rename to...
14668 (ui_file_flush): ...this.
14669 (stderr_file::write): Update.
14670 (stderr_file::puts): Update.
14671 * gdb/ui-file.h (gdb_flush): Rename to...
14672 (ui_file_flush): ...this.
14673 * gdb/utils.c (gdb_flush): Add function.
14674 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14675
5abbbe1d
TT
146762020-02-07 Tom Tromey <tromey@adacore.com>
14677
14678 PR breakpoints/24915:
14679 * source.c (find_and_open_source): Do not check basenames_may_differ.
14680
919adfe8
TT
146812020-02-07 Tom Tromey <tom@tromey.com>
14682
14683 * README: Update gdbserver documentation.
14684 * gdbserver: Move to top level.
14685 * configure.tgt (build_gdbserver): Remove.
14686 * configure.ac: Remove --enable-gdbserver.
14687 * configure: Rebuild.
14688 * Makefile.in (distclean): Don't mention gdbserver.
14689
1d5d29e7
SV
146902020-02-06 Shahab Vahedi <shahab@synopsys.com>
14691
14692 * source-cache.c (source_cache::ensure): Surround
14693 get_plain_source_lines with a try/catch.
14694 (source_cache::get_line_charpos): Get rid of try/catch
14695 and only check for the return value of "ensure".
14696 * tui/tui-source.c (tui_source_window::set_contents):
14697 Simplify "nlines" calculation.
14698
6eb1129c
SV
146992020-02-06 Shahab Vahedi <shahab@synopsys.com>
14700
14701 * MAINTAINERS (Write After Approval): Add myself.
14702
c6a42d11
CB
147032020-02-05 Christian Biesinger <cbiesinger@google.com>
14704
14705 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14706 function call.
14707
c8ecdda6
CB
147082020-02-05 Christian Biesinger <cbiesinger@google.com>
14709
14710 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14711
f6480e70
MR
147122020-02-05 Maciej W. Rozycki <macro@wdc.com>
14713
14714 * nat/riscv-linux-tdesc.h: New file.
14715 * nat/riscv-linux-tdesc.c: New file, taking code from...
14716 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14717 ... here.
14718 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14719 NATDEPFILES.
14720
dcc9fbc6
AB
147212020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14722
14723 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14724 we don't set the fake simulator ptid to the null_ptid.
14725
719546c4
SM
147262020-02-03 Simon Marchi <simon.marchi@efficios.com>
14727
14728 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14729 * gdbthread.h (class thread_info) <resumed>: Likewise.
14730 * infrun.c (resume_1): Likewise.
14731 (proceed): Likewise.
14732 (infrun_thread_stop_requested): Likewise.
14733 (stop_all_threads): Likewise.
14734 (handle_inferior_event): Likewise.
14735 (restart_threads): Likewise.
14736 (finish_step_over): Likewise.
14737 (keep_going_stepped_thread): Likewise.
14738 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14739 (linux_handle_extended_wait): Likewise.
14740 * record-btrace.c (get_thread_current_frame_id): Likewise.
14741 * record-full.c (record_full_wait_1): Likewise.
14742 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14743 * target.c (target_resume): Likewise.
14744 * thread.c (set_running_thread): Likewise.
14745
e409c542
AKS
147462020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14747
14748 * f-valprint.c (f77_print_array_1): Changed datatype of index
14749 variable to LONGEST from int to enable it to contain bound
14750 values correctly.
14751
ee98c0da
MR
147522020-02-03 Maciej W. Rozycki <macro@wdc.com>
14753
14754 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14755 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14756 offsets according to FLEN determined.
14757 (riscv_linux_nat_target::read_description): Determine FLEN
14758 dynamically.
14759 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14760 according to FLEN determined.
14761 (riscv_linux_nat_target::store_registers): Likewise.
14762
aa66aac4
SV
147632020-02-01 Shahab Vahedi <shahab@synopsys.com>
14764
14765 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14766 when reg->group is empty and reggroup is not.
14767
fd9faca8
TT
147682020-01-31 Tom Tromey <tromey@adacore.com>
14769
14770 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14771 Call beneath target's mourn_inferior after unpushing.
14772
42330a68
AB
147732020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14774
14775 PR tui/9765
14776 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14777 have enough lines to fill the screen, still return the lowest
14778 address we found.
14779
7a27a45b
AB
147802020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14781
14782 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14783 '-', '<', and '>' commands.
14784
c47f70e2
PA
147852020-01-29 Pedro Alves <palves@redhat.com>
14786 Sergio Durigan Junior <sergiodj@redhat.com>
14787
14788 * infcmd.c (construct_inferior_arguments): Assert that
14789 'argc' is greater than 0.
14790
5133a315
LM
147912020-01-29 Luis Machado <luis.machado@linaro.org>
14792
14793 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14794 (BRK_INSN_MASK): Define to 0xd4200000.
14795 (aarch64_program_breakpoint_here_p): New function.
14796 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14797 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14798 breakpoint.c.
14799 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14800 breakpoint.h
14801 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14802 call gdbarch_program_breakpoint_here_p.
14803 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14804 default_program_breakpoint_here_p, changed return type to bool and
14805 simplified.
14806 * breakpoint.h (program_breakpoint_here): Moved prototype to
14807 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14808 return type to bool.
14809 * gdbarch.c: Regenerate.
14810 * gdbarch.h: Regenerate.
14811 * gdbarch.sh (program_breakpoint_here_p): New method.
14812 * infrun.c (handle_signal_stop): Call
14813 gdbarch_program_breakpoint_here_p.
14814
168f8c6b
TT
148152020-01-26 Tom Tromey <tom@tromey.com>
14816
14817 * ctfread.c (struct ctf_fp_info): Reindent.
14818 (_initialize_ctfread): Remove.
14819
128a391f
TT
148202020-01-26 Tom Tromey <tom@tromey.com>
14821
14822 * psymtab.c (partial_map_expand_apply)
14823 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14824 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14825 (psym_print_stats, psym_expand_symtabs_for_function)
14826 (psym_map_symbol_filenames, psym_map_matching_symbols)
14827 (psym_expand_symtabs_matching)
14828 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14829 (maintenance_check_psymtabs): Use new methods.
14830 * psympriv.h (struct partial_symtab) <readin_p,
14831 get_compunit_symtab>: New methods.
14832 <readin, compunit_symtab>: Remove members.
14833 (struct standard_psymtab): New.
14834 (struct legacy_psymtab): Derive from standard_psymtab.
14835 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14836 standard_psymtab.
14837 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14838
0494dbec
TT
148392020-01-26 Tom Tromey <tom@tromey.com>
14840
14841 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14842 read_dependencies. Add assert.
14843 * psymtab.c (partial_symtab::read_dependencies): New method.
14844 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14845 method.
14846 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14847 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14848 read_dependencies.
14849 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14850 Add assert.
14851
8566b89b
TT
148522020-01-26 Tom Tromey <tom@tromey.com>
14853
14854 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14855 Call expand_psymtab.
14856 (xcoff_read_symtab): Call expand_psymtab.
14857 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14858 legacy_expand_psymtab.
14859 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14860 method.
14861 (struct legacy_psymtab) <expand_psymtab>: Implement.
14862 <legacy_expand_psymtab>: New member.
14863 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14864 (parse_partial_symbols): Set legacy_expand_psymtab.
14865 (psymtab_to_symtab_1): Change argument order. Call
14866 expand_psymtab.
14867 (new_psymtab): Set legacy_expand_psymtab.
14868 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14869 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14870 expand_psymtab.
14871 (dwarf2_psymtab::expand_psymtab): Rename from
14872 psymtab_to_symtab_1. Call expand_psymtab.
14873 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14874 (dbx_end_psymtab): Likewise.
14875 (dbx_psymtab_to_symtab_1): Change argument order. Call
14876 expand_psymtab.
14877 (dbx_read_symtab): Call expand_psymtab.
14878 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14879 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14880 (ctf_psymtab::read_symtab): Call expand_psymtab.
14881
077cbab2
TT
148822020-01-26 Tom Tromey <tom@tromey.com>
14883
14884 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14885 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14886 messages.
14887 * mdebugread.c (mdebug_read_symtab): Remove prints.
14888 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14889 assert.
14890 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14891
891813be
TT
148922020-01-26 Tom Tromey <tom@tromey.com>
14893
14894 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14895 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14896 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14897 legacy_symtab.
14898 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14899 * psymtab.c (psymtab_to_symtab): Call method.
14900 (dump_psymtab): Update.
14901 * psympriv.h (struct partial_symtab): Add virtual destructor.
14902 <read_symtab>: New method.
14903 (struct legacy_symtab): New.
14904 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14905 (struct pst_map) <pst>: Now a legacy_psymtab.
14906 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14907 (new_psymtab): Use legacy_psymtab.
14908 * dwarf2read.h (struct dwarf2_psymtab): New.
14909 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14910 * dwarf2read.c (dwarf2_create_include_psymtab)
14911 (dwarf2_build_include_psymtabs, create_type_unit_group)
14912 (create_partial_symtab, process_psymtab_comp_unit_reader)
14913 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14914 (set_partial_user): Use dwarf2_psymtab.
14915 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14916 (psymtab_to_symtab_1, process_full_comp_unit)
14917 (process_full_type_unit, dwarf2_ranges_read)
14918 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14919 (dwarf_decode_lines): Use dwarf2_psymtab.
14920 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14921 (add_address_entry_worker, write_one_signatured_type)
14922 (recursively_count_psymbols, recursively_write_psymbols)
14923 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14924 (write_debug_names): Likewise.
14925 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14926 <pst>: Now a legacy_psymtab.
14927 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14928 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14929 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14930 * ctfread.c (struct ctf_psymtab): New.
14931 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14932 ctf_psymtab.
14933 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14934 (create_partial_symtab): Return a ctf_psymtab.
14935 (scan_partial_symbols): Update.
14936
c3693a1d
TT
149372020-01-26 Tom Tromey <tom@tromey.com>
14938
14939 * xcoffread.c (xcoff_start_psymtab): Use new.
14940 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14941 renamed from start_psymtab_common.
14942 * psympriv.h (struct partial_symtab): Add new constructor.
14943 (start_psymtab_common): Don't declare.
14944 * mdebugread.c (parse_partial_symbols): Use new.
14945 * dwarf2read.c (create_partial_symtab): Use new.
14946 * dbxread.c (start_psymtab): Use new.
14947 * ctfread.c (create_partial_symtab): Use new.
14948
32caafd0
TT
149492020-01-26 Tom Tromey <tom@tromey.com>
14950
14951 * xcoffread.c (xcoff_end_psymtab): Use new.
14952 * psymtab.c (start_psymtab_common): Use new.
14953 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14954 Update.
14955 * psympriv.h (struct partial_symtab): Add parameters to
14956 constructor. Don't inline.
14957 (allocate_psymtab): Don't declare.
14958 * mdebugread.c (new_psymtab): Use new.
14959 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14960 * dbxread.c (dbx_end_psymtab): Use new.
14961
abaa2f23
TT
149622020-01-26 Tom Tromey <tom@tromey.com>
14963
14964 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14965 allocate_psymtab. Update documentation.
14966 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14967 allocate_psymtab. Do not use new.
14968 (allocate_psymtab): Use new. Update.
14969
6d94535f
TT
149702020-01-26 Tom Tromey <tom@tromey.com>
14971
14972 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14973 * psymtab.c (psym_print_stats): Update.
14974 * psympriv.h (struct partial_symtab) <readin,
14975 psymtabs_addrmap_supported, anonymous>: Now bool.
14976 * mdebugread.c (psymtab_to_symtab_1): Update.
14977 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14978 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14979 (process_full_comp_unit, process_full_type_unit): Update.
14980 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14981 * ctfread.c (psymtab_to_symtab): Update.
14982
6f17252b
TT
149832020-01-26 Tom Tromey <tom@tromey.com>
14984
14985 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14986 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14987 * psymtab.c (psymtab_storage): Delete psymtabs.
14988 (psymtab_storage::allocate_psymtab): Use new.
14989 (psymtab_storage::discard_psymtab): Use delete.
14990 * psympriv.h (struct partial_symtab): Add constructor and
14991 initializers.
14992
f6f1cebc
TT
149932020-01-26 Tom Tromey <tom@tromey.com>
14994
14995 * machoread.c: Do not include psympriv.h.
14996
e47e48f6
PW
149972020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14998
14999 * NEWS: Mention the new option and the set/show commands.
15000
a2fedca9
PW
150012020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15002
15003 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15004 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15005 (validate_exec_file): New variables, enums, functions.
15006 (exec_file_locate_attach, print_section_info): Style the filenames.
15007 (_initialize_exec): Install show_exec_file_mismatch_command and
15008 set_exec_file_mismatch_command.
15009 * gdbcore.h (validate_exec_file): Declare.
15010 * infcmd.c (attach_command): Call validate_exec_file.
15011 * remote.c ( remote_target::remote_add_inferior): Likewise.
15012
7ffa82e1
AB
150132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15014
15015 * frame.c (find_frame_sal): Move call to get_next_frame into more
15016 inner scope.
15017 * inline-frame.c (inilne_state) <inline_state>: Update argument
15018 types.
15019 (inilne_state) <skipped_symbol>: Rename to...
15020 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15021 (skip_inline_frames): Build vector of skipped symbols and use this
15022 to reate the inline_state.
15023 (inline_skipped_symbol): Add a comment and some assertions, fetch
15024 skipped symbol from the list.
15025
3d92a3e3
AB
150262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15027
15028 * buildsym.c (lte_is_less_than): Delete.
15029 (buildsym_compunit::end_symtab_with_blockvector): Create local
15030 lambda function to sort line table entries, and use
15031 std::stable_sort instead of std::sort.
15032 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15033 markers when looking for a previous line.
15034
94a72be7
AB
150352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15036
15037 * dwarf2read.c (lnp_state_machine::record_line): Include
15038 end_sequence parameter in debug print out. Record the line if we
15039 are at an end_sequence marker even if it's not the start of a
15040 statement.
15041 * symmisc.c (maintenance_print_one_line_table): Print end of
15042 sequence markers with 'END' not '0'.
15043
53af73bf
PA
150442020-01-24 Pedro Alves <palves@redhat.com>
15045
15046 PR gdb/25410
15047 * thread.c (scoped_restore_current_thread::restore): Use
15048 switch_to_inferior_no_thread.
15049 * exec.c: Include "progspace-and-thread.h".
15050 (add_target_sections, remove_target_sections):
15051 scoped_restore_current_pspace_and_thread instead of
15052 scoped_restore_current_thread.
15053 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15054 and aspace to the inferior before calling clone_program_space.
15055 Remove stale comment.
15056
3050c6f4
CB
150572020-01-24 Christian Biesinger <cbiesinger@google.com>
15058
15059 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15060 (arm_netbsd_nat_target::fetch_registers): ...this.
15061 (arm_nbsd_nat_target::store_registers): Rename to...
15062 (arm_netbsd_nat_target::store_registers): ...this.
15063
73685c7e
CB
150642020-01-24 Christian Biesinger <cbiesinger@google.com>
15065
15066 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15067 register_t.
15068
89203d40
CB
150692020-01-24 Christian Biesinger <cbiesinger@google.com>
15070
15071 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15072 Update comment.
15073 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15074 Likewise.
15075 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15076 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15077 the correct replacement (iterate_over_regset_sections).
15078 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15079 Update comment.
15080
1ba1ac88
AB
150812020-01-24 Graham Markall <graham.markall@embecosm.com>
15082
15083 PR gdb/23718
15084 * gdb/python/python.c (execute_gdb_command): Call
15085 async_enable_stdin in catch block.
15086
f3364a6d
AB
150872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15088
15089 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15090 SWITCH_THRU_ALL_UIS.
15091
733d0a67
AB
150922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15093
15094 PR tui/9765
15095 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15096 comment, add extra parameter, and update to store previous symbol
15097 when appropriate.
15098 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15099 add extra parameter.
15100 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15101 remove unneeded parameter, add try/catch around gdb_print_insn,
15102 rewrite to add items to asm_lines vector.
15103 (tui_find_backward_disassembly_start_address): New function.
15104 (tui_find_disassembly_address): Updated throughout.
15105 (tui_disasm_window::set_contents): Update for changes to
15106 tui_disassemble.
15107 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15108 number of lines to scroll.
15109
b3b3bada
SM
151102020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15111
15112 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15113 (SECT_OFF_DATA): Likewise.
15114 (SECT_OFF_RODATA): Likewise.
15115 (SECT_OFF_TEXT): Likewise.
15116 (SECT_OFF_BSS): Likewise.
15117 (struct objfile) <text_section_offset, data_section_offset>: New
15118 methods.
15119 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15120 objfile::text_section_offset.
15121 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15122 * coffread.c (coff_symtab_read): Likewise.
15123 (enter_linenos): Likewise.
15124 (process_coff_symbol): Likewise.
15125 * ctfread.c (get_objfile_text_range): Likewise.
15126 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15127 Use objfile::data_section_offset.
15128 * dwarf2-frame.c (execute_cfa_program): Use
15129 objfile::text_section_offset.
15130 (dwarf2_frame_find_fde): Likewise.
15131 * dwarf2read.c (create_addrmap_from_index): Likewise.
15132 (create_addrmap_from_aranges): Likewise.
15133 (dw2_find_pc_sect_compunit_symtab): Likewise.
15134 (process_psymtab_comp_unit_reader): Likewise.
15135 (add_partial_symbol): Likewise.
15136 (add_partial_subprogram): Likewise.
15137 (process_full_comp_unit): Likewise.
15138 (read_file_scope): Likewise.
15139 (read_func_scope): Likewise.
15140 (read_lexical_block_scope): Likewise.
15141 (read_call_site_scope): Likewise.
15142 (dwarf2_rnglists_process): Likewise.
15143 (dwarf2_ranges_process): Likewise.
15144 (dwarf2_ranges_read): Likewise.
15145 (dwarf_decode_lines_1): Likewise.
15146 (new_symbol): Likewise.
15147 (dwarf2_fetch_die_loc_sect_off): Likewise.
15148 (dwarf2_per_cu_text_offset): Likewise.
15149 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15150 * hppa-tdep.c (read_unwind_info): Likewise.
15151 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15152 * psympriv.h (struct partial_symtab): Likewise.
15153 * psymtab.c (find_pc_sect_psymtab): Likewise.
15154 * solib-svr4.c (enable_break): Likewise.
15155 * stap-probe.c (relocate_address): Use
15156 objfile::data_section_offset.
15157 * xcoffread.c (enter_line_range): Use
15158 objfile::text_section_offset.
15159 (read_xcoff_symtab): Likewise.
15160
ab53f382
SM
151612020-01-23 Simon Marchi <simon.marchi@efficios.com>
15162
15163 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15164 declaration to narrower scopes.
15165
e7eee665
SM
151662020-01-23 Simon Marchi <simon.marchi@efficios.com>
15167
15168 * darwin-nat.h (struct darwin_exception_msg, enum
15169 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15170 Move up.
15171 (class darwin_nat_target) <wait_1, check_new_threads,
15172 decode_exception_message, decode_message, stop_inferior,
15173 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15174 * darwin-nat.c (darwin_check_new_threads): Rename to...
15175 (darwin_nat_target::check_new_threads): ... this.
15176 (darwin_suspend_inferior_it): Remove.
15177 (darwin_decode_exception_message): Rename to...
15178 (darwin_nat_target::decode_exception_message): ... this.
15179 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15180 (darwin_decode_message): Rename to...
15181 (darwin_nat_target::decode_message): ... this.
15182 (cancel_breakpoint): Rename to...
15183 (darwin_nat_target::cancel_breakpoint): ... this.
15184 (darwin_wait): Rename to...
15185 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15186 instead of iterate_over_inferiors.
15187 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15188 (darwin_stop_inferior): Rename to...
15189 (darwin_nat_target::stop_inferior): ... this.
15190 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15191 (darwin_init_thread_list): Rename to...
15192 (darwin_nat_target::init_thread_list): ... this.
15193 (darwin_ptrace_him): Rename to...
15194 (darwin_nat_target::ptrace_him): ... this.
15195 (darwin_nat_target::create_inferior): Pass lambda function to
15196 fork_inferior.
15197 (darwin_nat_target::detach): Call stop_inferior instead of
15198 darwin_stop_inferior.
15199 * fork-inferior.h (fork_inferior): Change init_trace_fun
15200 parameter to gdb::function_view.
15201 * fork-inferior.c (fork_inferior): Likewise.
15202
c162ed3e
HD
152032020-01-23 Hannes Domani <ssbssa@yahoo.de>
15204
15205 * i386-cygwin-tdep.c (core_process_module_section): Update.
15206 * windows-nat.c (struct lm_info_windows): Add text_offset.
15207 (windows_xfer_shared_libraries): Update.
15208 * windows-tdep.c (windows_xfer_shared_library):
15209 Add text_offset_cached argument.
15210 * windows-tdep.h (windows_xfer_shared_library): Update.
15211
a1237872
SM
152122020-01-21 Simon Marchi <simon.marchi@efficios.com>
15213
15214 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15215
b3ee6dd9
SM
152162020-01-21 Simon Marchi <simon.marchi@efficios.com>
15217
15218 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15219 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15220 replace with range-based for.
15221 (gdbsim_interrupt_inferior): Remove.
15222 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15223 with a range-based for. Inline code from
15224 gdbsim_interrupt_inferior.
15225
f9fac3c8
SM
152262020-01-21 Simon Marchi <simon.marchi@efficios.com>
15227
15228 * infrun.c (proceed): Fix indentation.
15229
f6474de9
TT
152302020-01-21 Tom Tromey <tromey@adacore.com>
15231
15232 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15233 * python/python.c (python_extension_ops): Update.
15234 (gdbpy_colorize): New function.
15235 * python/lib/gdb/__init__.py (colorize): New function.
15236 * extension.h (ext_lang_colorize): Declare.
15237 * extension.c (ext_lang_colorize): New function.
15238 * extension-priv.h (struct extension_language_ops) <colorize>: New
15239 member.
15240 * cli/cli-style.c (_initialize_cli_style): Update help text.
15241
f0c702d4
LM
152422020-01-21 Luis Machado <luis.machado@linaro.org>
15243
15244 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15245 <cond>: Change type to bool.
15246 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15247 (aarch64_displaced_step_cb): Likewise.
15248 (aarch64_displaced_step_tb): Likewise.
15249
1ab139e5
LM
152502020-01-21 Luis Machado <luis.machado@linaro.org>
15251
15252 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15253 output.
15254
0c271889
LM
152552020-01-21 Luis Machado <luis.machado@linaro.org>
15256
15257 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15258 <pc_adjust>: Adjust the documentation.
15259 (aarch64_displaced_step_fixup): Check if PC really moved before
15260 adjusting it.
15261
4d89c1c7
TT
152622020-01-19 Tom Tromey <tom@tromey.com>
15263
15264 * disasm.c (~gdb_disassembler): New destructor.
15265 (gdb_buffered_insn_length): Call disassemble_free_target.
15266 * disasm.h (class gdb_disassembler): Declare destructor. Use
15267 DISABLE_COPY_AND_ASSIGN.
15268
c0ab21c2
TT
152692020-01-19 Tom Tromey <tom@tromey.com>
15270
15271 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15272 (die_reader_func_ftype): Remove.
15273 (cutu_reader): New class.
15274 (dw2_get_file_names_reader): Remove "data" parameter.
15275 (dw2_get_file_names): Use cutu_reader.
15276 (create_debug_type_hash_table): Update.
15277 (read_cutu_die_from_dwo): Update comment.
15278 (lookup_dwo_unit): Add dwo_name parameter.
15279 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15280 die_reader_func_ftype and data parameters.
15281 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15282 Remove die_reader_func_ftype and data parameters.
15283 (~cutu_reader): New; from init_cutu_and_read_dies.
15284 (cutu_reader::cutu_reader): Rename from
15285 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15286 and data parameters.
15287 (init_cutu_and_read_dies_simple): Remove.
15288 (struct process_psymtab_comp_unit_data): Remove.
15289 (process_psymtab_comp_unit_reader): Remove data parameter; add
15290 want_partial_unit and pretend_language parameters.
15291 (process_psymtab_comp_unit): Use cutu_reader.
15292 (build_type_psymtabs_reader): Remove data parameter.
15293 (build_type_psymtabs_1): Use cutu_reader.
15294 (process_skeletonless_type_unit): Likewise.
15295 (load_partial_comp_unit_reader): Remove.
15296 (load_partial_comp_unit): Use cutu_reader.
15297 (load_full_comp_unit_reader): Remove.
15298 (load_full_comp_unit): Use cutu_reader.
15299 (struct create_dwo_cu_data): Remove.
15300 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15301 dwo_unit parameters.
15302 (create_cus_hash_table): Use cutu_reader.
15303 (struct dwarf2_read_addr_index_data): Remove.
15304 (dwarf2_read_addr_index_reader): Remove.
15305 (dwarf2_read_addr_index): Use cutu_reader.
15306 (read_signatured_type_reader): Remove.
15307 (read_signatured_type): Use cutu_reader.
15308
45bbae5c
TT
153092020-01-19 Tom Tromey <tom@tromey.com>
15310
15311 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15312 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15313 (tui_wrefresh): Declare.
15314 * tui/tui-wingeneral.c (suppress_output): New global.
15315 (tui_suppress_output, ~tui_suppress_output): New constructor and
15316 destructor.
15317 (tui_wrefresh): New function.
15318 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15319 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15320 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15321 method.
15322 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15323 tui_wrefresh.
15324 (tui_data_window::no_refresh): New method.
15325 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15326 (tui_reg_command): Use tui_suppress_output
15327 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15328 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15329 method.
15330 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15331
4f13c1c0
TT
153322020-01-19 Tom Tromey <tom@tromey.com>
15333
15334 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15335 Handle case where symtab is null.
15336
fa47e446
SM
153372020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15338
15339 * linux-fork.c (one_fork_p): Simplify.
15340
26f42329
SM
153412020-01-17 Simon Marchi <simon.marchi@efficios.com>
15342
15343 * top.c (struct qt_args): Remove.
15344 (kill_or_detach): Change return type to void, replace `void *`
15345 parameter with a proper one.
15346 (print_inferior_quit_action): Likewise.
15347 (quit_confirm): Use range-based for loop to iterate over inferiors.
15348 (quit_force): Likewise.
15349
a9ac81b1
SM
153502020-01-17 Simon Marchi <simon.marchi@efficios.com>
15351
15352 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15353 `void *` parameter with proper parameters.
15354 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15355 (print_one_inferior): Change return type to void, replace `void *`
15356 parameter with proper parameters.
15357 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15358 inferiors.
15359 (get_other_inferior): Remove.
15360 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15361 inferiors.
15362
788eca49
SM
153632020-01-17 Simon Marchi <simon.marchi@efficios.com>
15364
15365 * mi/mi-interp.c (report_initial_inferior): Remove.
15366 (mi_interp::init): Use range-based for to iterate over inferiors.
15367
d9bc85b6
SM
153682020-01-17 Simon Marchi <simon.marchi@efficios.com>
15369
15370 * python/py-inferior.c (build_inferior_list): Remove.
15371 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15372
40c94099
CB
153732020-01-16 Christian Biesinger <cbiesinger@google.com>
15374
15375 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15376 (btrace_stitch_trace): Likewise.
15377 * charset.c (intermediate_encoding): Likewise (vaild).
15378 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15379 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15380 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15381
e0cdfe3c
HD
153822020-01-16 Hannes Domani <ssbssa@yahoo.de>
15383
15384 * windows-tdep.c (windows_get_tlb_type):
15385 Add rtl_user_process_parameters type.
15386
790f1718 153872020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15388 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15389
15390 PR build/24805
15391 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15392 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15393 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15394 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15395 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15396 (ps_plog): Redeclare exported functions with default visibility.
15397
3112ed97
NA
153982020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15399
15400 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15401 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15402
8dc3273e
SM
154032020-01-15 Simon Marchi <simon.marchi@efficios.com>
15404
15405 * infcmd.c (post_create_inferior): Use get_thread_regcache
15406 instead of get_current_regcache.
15407
ff47f4f0
TT
154082020-01-14 Tom Tromey <tom@tromey.com>
15409
15410 PR symtab/12535:
15411 * python/python.c (gdbpy_decode_line): Treat empty string the same
15412 as no argument.
15413
975f45b7
TT
154142020-01-14 Tom Tromey <tom@tromey.com>
15415
15416 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15417
25e57356
TT
154182020-01-14 Tom Tromey <tom@tromey.com>
15419
15420 * nat/linux-btrace.c: Don't include <config.h>.
15421 * nat/linux-ptrace.c: Don't include <config.h>.
15422 * nat/x86-linux-dregs.c: Don't include <config.h>.
15423
05ea2a05
TT
154242020-01-14 Tom Tromey <tom@tromey.com>
15425
15426 * configure: Rebuild.
15427 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15428
01027315
TT
154292020-01-14 Tom Tromey <tom@tromey.com>
15430
15431 * nat/x86-linux-dregs.c: Include configh.h.
15432 * nat/linux-ptrace.c: Include configh.h.
15433 * nat/linux-btrace.c: Include configh.h.
15434 * defs.h: Include config.h, bfd.h.
15435 * configure.ac: Don't source common.host.
15436 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15437 * configure: Rebuild.
15438 * acinclude.m4: Update path.
15439 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15440 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15441 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15442 (CLIBS): Add LIBSUPPORT.
15443 (CDEPS): Likewise.
15444 (COMMON_SFILES): Remove gdbsupport files.
15445 (HFILES_NO_SRCDIR): Likewise.
15446 (stamp-version): Update path to create-version.sh.
15447 (ALLDEPFILES): Remove gdbsupport files.
15448
b2ceabe8
TT
154492020-01-14 Tom Tromey <tom@tromey.com>
15450
15451 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15452 USE_WIN32API when needed.
15453 * configure.ac (USE_WIN32API): Don't define.
15454 (WIN32LIBS): Use WIN32APILIBS.
15455 * configure: Rebuild.
15456
25c51f71
TT
154572020-01-14 Tom Tromey <tom@tromey.com>
15458
15459 * configure: Rebuild.
15460 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15461
717c684d
BE
154622020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15463
15464 * skip.c (skip_function_command): Make skip w/o arguments use the
15465 name of the inlined function if pc is inside any inlined function.
15466
7da6a5b9
LM
154672020-01-14 Luis Machado <luis.machado@linaro.org>
15468
15469 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15470 * infrun.c (resume_1): Likewise.
15471 (handle_inferior_event): Remove stale comment.
15472 * linux-nat.c (linux_nat_target::resume): Update comments.
15473 (save_stop_reason): Likewise.
15474 (linux_nat_filter_event): Likewise.
15475 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15476
44e4c775
AB
154772020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15478
15479 * elfread.c (record_minimal_symbol): Set section index to 0 for
15480 non-allocatable sections.
15481
18a8505e
AT
15482
154832020-01-13 Ali Tamur <tamur@google.com>
15484
15485 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15486 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15487 to gdb::optional. Update comments.
15488 (dwo_file): Update comments.
15489 (read_attribute): Update API to take an additional out parameter,
15490 need_reprocess. This is used to mark attributes that need other
15491 attributes (e.g. str_offsets_base) for correct computation which may not
15492 have been read yet.
15493 (read_attribute_reprocess): New function declaration.
15494 (read_addr_index): Likewise.
15495 (read_dwo_str_index): Likewise.
15496 (read_stub_str_index): Likewise.
15497 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15498 (lookup_addr_base): New function definition.
15499 (lookup_ranges_base): Likewise.
15500 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15501 lookup_ranges_base.
15502 (init_cutu_and_read_dies): Update comments.
15503 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15504 unit. This is used to inherit parent's str_offsets_base and addr_base.
15505 Update comments.
15506 (init_cutu_and_read_dies_simple): Reflect API changes.
15507 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15508 (create_cus_hash_table): Change API to take parent compile unit.
15509 Reflect API changes.
15510 (open_and_init_dwo_file): Reflect API changes.
15511 (dwarf2_get_pc_bounds): Update comments.
15512 (dwarf2_record_block_ranges): Likewise.
15513 (read_full_die_1): Change implementation to reprocess attributes that
15514 need str_offsets_base and addr_base.
15515 (partial_die_info::read): Likewise.
15516 (read_attribute_reprocess): New function definition.
15517 (read_attribute_value): Change API to take an additional out parameter,
15518 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15519 when a non-dwo compile unit has index based attributes.
15520 (read_attribute): Reflect API changes.
15521 (read_addr_index_1): Reflect API changes. Update comments.
15522 (dwarf2_read_addr_index_data): Reflect API changes.
15523 (dwarf2_read_addr_index): Likewise.
15524 (read_str_index): Change API and implementation. This becomes a helper
15525 to be used by the new string index related methods. Update error
15526 message and comments.
15527 (read_dwo_str_index): New function definition.
15528 (read_stub_str_index): Likewise.
15529 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15530 * symfile.h (dwarf2_debug_sections): Likewise.
15531 * xcoffread.c (dwarf2_debug_sections): Likewise.
15532
0cac9354
SM
155332020-01-13 Simon Marchi <simon.marchi@efficios.com>
15534
15535 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15536 core_reg_sect type to gdb_byte *.
15537 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15538 * cris-tdep.c (fetch_core_registers): Likewise.
15539 * corelow.c (core_target::get_core_register_section): Change
15540 type of `contents` to gdb::byte_vector.
15541
9a6d629c
AB
155422020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15543
15544 * tui/tui-wingeneral.c (box_win): Position the title in the center
15545 of the border.
15546
d8b2f9e3
SM
155472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15548
15549 * corelow.c (core_target::get_core_register_section): Use
15550 std::vector instead of alloca.
15551
bb564c58
SM
155522020-01-13 Simon Marchi <simon.marchi@efficios.com>
15553
15554 * warning.m4: Add -Wmissing-declarations to build_warnings.
15555 * configure: Re-generate.
15556
6b366111
SM
155572020-01-13 Simon Marchi <simon.marchi@efficios.com>
15558
15559 * python/python.c (init__gdb_module): Add declaration.
15560
6c265988
SM
155612020-01-13 Simon Marchi <simon.marchi@efficios.com>
15562
15563 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15564 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15565 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15566 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15567 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15568 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15569 * ada-exp.y (_initialize_ada_exp): Add declaration.
15570 * ada-lang.c (_initialize_ada_language): Add declaration.
15571 * ada-tasks.c (_initialize_tasks): Add declaration.
15572 * agent.c (_initialize_agent): Add declaration.
15573 * aix-thread.c (_initialize_aix_thread): Add declaration.
15574 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15575 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15576 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15577 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15578 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15579 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15580 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15581 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15582 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15583 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15584 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15585 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15586 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15587 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15588 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15589 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15590 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15591 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15592 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15593 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15594 * annotate.c (_initialize_annotate): Add declaration.
15595 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15596 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15597 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15598 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15599 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15600 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15601 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15602 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15603 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15604 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15605 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15606 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15607 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15608 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15609 * auto-load.c (_initialize_auto_load): Add declaration.
15610 * auxv.c (_initialize_auxv): Add declaration.
15611 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15612 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15613 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15614 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15615 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15616 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15617 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15618 * breakpoint.c (_initialize_breakpoint): Add declaration.
15619 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15620 * btrace.c (_initialize_btrace): Add declaration.
15621 * charset.c (_initialize_charset): Add declaration.
15622 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15623 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15624 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15625 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15626 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15627 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15628 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15629 * coffread.c (_initialize_coffread): Add declaration.
15630 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15631 * compile/compile.c (_initialize_compile): Add declaration.
15632 * complaints.c (_initialize_complaints): Add declaration.
15633 * completer.c (_initialize_completer): Add declaration.
15634 * copying.c (_initialize_copying): Add declaration.
15635 * corefile.c (_initialize_core): Add declaration.
15636 * corelow.c (_initialize_corelow): Add declaration.
15637 * cp-abi.c (_initialize_cp_abi): Add declaration.
15638 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15639 * cp-support.c (_initialize_cp_support): Add declaration.
15640 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15641 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15642 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15643 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15644 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15645 * ctfread.c (_initialize_ctfread): Add declaration.
15646 * d-lang.c (_initialize_d_language): Add declaration.
15647 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15648 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15649 * dbxread.c (_initialize_dbxread): Add declaration.
15650 * dcache.c (_initialize_dcache): Add declaration.
15651 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15652 * disasm.c (_initialize_disasm): Add declaration.
15653 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15654 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15655 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15656 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15657 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15658 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15659 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15660 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15661 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15662 * elfread.c (_initialize_elfread): Add declaration.
15663 * exec.c (_initialize_exec): Add declaration.
15664 * extension.c (_initialize_extension): Add declaration.
15665 * f-lang.c (_initialize_f_language): Add declaration.
15666 * f-valprint.c (_initialize_f_valprint): Add declaration.
15667 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15668 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15669 * filesystem.c (_initialize_filesystem): Add declaration.
15670 * findcmd.c (_initialize_mem_search): Add declaration.
15671 * findvar.c (_initialize_findvar): Add declaration.
15672 * fork-child.c (_initialize_fork_child): Add declaration.
15673 * frame-base.c (_initialize_frame_base): Add declaration.
15674 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15675 * frame.c (_initialize_frame): Add declaration.
15676 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15677 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15678 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15679 * gcore.c (_initialize_gcore): Add declaration.
15680 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15681 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15682 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15683 * gdbarch.c (_initialize_gdbarch): Add declaration.
15684 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15685 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15686 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15687 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15688 * go-lang.c (_initialize_go_language): Add declaration.
15689 * go32-nat.c (_initialize_go32_nat): Add declaration.
15690 * guile/guile.c (_initialize_guile): Add declaration.
15691 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15692 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15693 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15694 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15695 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15696 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15697 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15698 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15699 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15700 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15701 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15702 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15703 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15704 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15705 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15706 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15707 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15708 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15709 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15710 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15711 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15712 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15713 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15714 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15715 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15716 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15717 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15718 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15719 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15720 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15721 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15722 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15723 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15724 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15725 * infcall.c (_initialize_infcall): Add declaration.
15726 * infcmd.c (_initialize_infcmd): Add declaration.
15727 * inflow.c (_initialize_inflow): Add declaration.
15728 * infrun.c (_initialize_infrun): Add declaration.
15729 * interps.c (_initialize_interpreter): Add declaration.
15730 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15731 * jit.c (_initialize_jit): Add declaration.
15732 * language.c (_initialize_language): Add declaration.
15733 * linux-fork.c (_initialize_linux_fork): Add declaration.
15734 * linux-nat.c (_initialize_linux_nat): Add declaration.
15735 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15736 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15737 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15738 * m2-lang.c (_initialize_m2_language): Add declaration.
15739 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15740 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15741 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15742 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15743 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15744 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15745 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15746 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15747 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15748 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15749 * machoread.c (_initialize_machoread): Add declaration.
15750 * macrocmd.c (_initialize_macrocmd): Add declaration.
15751 * macroscope.c (_initialize_macroscope): Add declaration.
15752 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15753 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15754 * maint.c (_initialize_maint_cmds): Add declaration.
15755 * mdebugread.c (_initialize_mdebugread): Add declaration.
15756 * memattr.c (_initialize_mem): Add declaration.
15757 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15758 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15759 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15760 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15761 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15762 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15763 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15764 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15765 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15766 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15767 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15768 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15769 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15770 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15771 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15772 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15773 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15774 * mipsread.c (_initialize_mipsread): Add declaration.
15775 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15776 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15777 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15778 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15779 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15780 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15781 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15782 * nto-procfs.c (_initialize_procfs): Add declaration.
15783 * objc-lang.c (_initialize_objc_language): Add declaration.
15784 * observable.c (_initialize_observer): Add declaration.
15785 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15786 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15787 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15788 * osabi.c (_initialize_gdb_osabi): Add declaration.
15789 * osdata.c (_initialize_osdata): Add declaration.
15790 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15791 * parse.c (_initialize_parse): Add declaration.
15792 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15793 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15794 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15795 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15796 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15797 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15798 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15799 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15800 * printcmd.c (_initialize_printcmd): Add declaration.
15801 * probe.c (_initialize_probe): Add declaration.
15802 * proc-api.c (_initialize_proc_api): Add declaration.
15803 * proc-events.c (_initialize_proc_events): Add declaration.
15804 * proc-service.c (_initialize_proc_service): Add declaration.
15805 * procfs.c (_initialize_procfs): Add declaration.
15806 * producer.c (_initialize_producer): Add declaration.
15807 * psymtab.c (_initialize_psymtab): Add declaration.
15808 * python/python.c (_initialize_python): Add declaration.
15809 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15810 * record-btrace.c (_initialize_record_btrace): Add declaration.
15811 * record-full.c (_initialize_record_full): Add declaration.
15812 * record.c (_initialize_record): Add declaration.
15813 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15814 * regcache.c (_initialize_regcache): Add declaration.
15815 * reggroups.c (_initialize_reggroup): Add declaration.
15816 * remote-notif.c (_initialize_notif): Add declaration.
15817 * remote-sim.c (_initialize_remote_sim): Add declaration.
15818 * remote.c (_initialize_remote): Add declaration.
15819 * reverse.c (_initialize_reverse): Add declaration.
15820 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15821 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15822 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15823 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15824 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15825 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15826 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15827 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15828 Add declaration.
15829 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15830 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15831 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15832 * rust-exp.y (_initialize_rust_exp): Add declaration.
15833 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15834 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15835 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15836 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15837 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15838 * score-tdep.c (_initialize_score_tdep): Add declaration.
15839 * ser-go32.c (_initialize_ser_dos): Add declaration.
15840 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15841 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15842 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15843 * ser-uds.c (_initialize_ser_socket): Add declaration.
15844 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15845 * serial.c (_initialize_serial): Add declaration.
15846 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15847 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15848 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15849 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15850 * skip.c (_initialize_step_skip): Add declaration.
15851 * sol-thread.c (_initialize_sol_thread): Add declaration.
15852 * solib-aix.c (_initialize_solib_aix): Add declaration.
15853 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15854 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15855 * solib-frv.c (_initialize_frv_solib): Add declaration.
15856 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15857 * solib-target.c (_initialize_solib_target): Add declaration.
15858 * solib.c (_initialize_solib): Add declaration.
15859 * source-cache.c (_initialize_source_cache): Add declaration.
15860 * source.c (_initialize_source): Add declaration.
15861 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15862 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15863 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15864 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15865 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15866 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15867 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15868 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15869 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15870 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15871 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15872 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15873 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15874 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15875 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15876 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15877 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15878 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15879 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15880 * stabsread.c (_initialize_stabsread): Add declaration.
15881 * stack.c (_initialize_stack): Add declaration.
15882 * stap-probe.c (_initialize_stap_probe): Add declaration.
15883 * std-regs.c (_initialize_frame_reg): Add declaration.
15884 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15885 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15886 * symfile.c (_initialize_symfile): Add declaration.
15887 * symmisc.c (_initialize_symmisc): Add declaration.
15888 * symtab.c (_initialize_symtab): Add declaration.
15889 * target.c (_initialize_target): Add declaration.
15890 * target-connection.c (_initialize_target_connection): Add
15891 declaration.
15892 * target-dcache.c (_initialize_target_dcache): Add declaration.
15893 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15894 * thread.c (_initialize_thread): Add declaration.
15895 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15896 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15897 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15898 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15899 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15900 * tracectf.c (_initialize_ctf): Add declaration.
15901 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15902 * tracefile.c (_initialize_tracefile): Add declaration.
15903 * tracepoint.c (_initialize_tracepoint): Add declaration.
15904 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15905 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15906 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15907 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15908 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15909 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15910 * tui/tui.c (_initialize_tui): Add declaration.
15911 * typeprint.c (_initialize_typeprint): Add declaration.
15912 * ui-style.c (_initialize_ui_style): Add declaration.
15913 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15914 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15915 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15916 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15917 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15918 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15919 * unittests/filtered_iterator-selftests.c
15920 (_initialize_filtered_iterator_selftests): Add declaration.
15921 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15922 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15923 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15924 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15925 * unittests/main-thread-selftests.c
15926 (_initialize_main_thread_selftests): Add declaration.
15927 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15928 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15929 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15930 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15931 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15932 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15933 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15934 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15935 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15936 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15937 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15938 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15939 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15940 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15941 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15942 declaration.
15943 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15944 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15945 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15946 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15947 * user-regs.c (_initialize_user_regs): Add declaration.
15948 * utils.c (_initialize_utils): Add declaration.
15949 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15950 * valops.c (_initialize_valops): Add declaration.
15951 * valprint.c (_initialize_valprint): Add declaration.
15952 * value.c (_initialize_values): Add declaration.
15953 * varobj.c (_initialize_varobj): Add declaration.
15954 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15955 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15956 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15957 * windows-nat.c (_initialize_windows_nat): Add declaration.
15958 (_initialize_check_for_gdb_ini): Add declaration.
15959 (_initialize_loadable): Add declaration.
15960 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15961 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15962 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15963 * xcoffread.c (_initialize_xcoffread): Add declaration.
15964 * xml-support.c (_initialize_xml_support): Add declaration.
15965 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15966 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15967 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15968 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15969
e2de1eec
SM
159702020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15971
15972 * regformats/regdat.sh: Generate declaration for init function.
15973
e0037b4c
SM
159742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15975
15976 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15977 up.
15978 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15979 close_one_inferior>: New methods.
15980 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15981 pass down target to find_inferior_pid.
15982 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15983 Pass down target to find_inferior_ptid.
15984 (gdbsim_target::create_inferior): Pass down target to
15985 add_thread_silent.
15986 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15987 target down to find_inferior_ptid and switch_to_thread.
15988 (gdbsim_target::close): Update to call close_one_inferior.
15989 (struct resume_data): Remove.
15990 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15991 directly, rather than through a void pointer.
15992 (gdbsim_target::resume): Update to call resume_one_inferior.
15993
58920b5b
SM
159942020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15995
15996 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15997
4ec89149
PA
159982020-01-12 Pedro Alves <palves@redhat.com>
15999
16000 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16001 directly for the current inferior instead of
16002 discard_all_inferiors.
16003 (discard_all_inferiors): Delete.
16004
7c392d1d
TT
160052020-01-11 Tom Tromey <tom@tromey.com>
16006
16007 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16008 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16009 deprecated_safe_get_selected_frame.
16010
d9ebdab7
TBA
160112020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16012
16013 * inferior.c (print_inferior): Switch inferior before printing it.
16014
f3c469b9
PA
160152020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16016 Pedro Alves <palves@redhat.com>
16017
16018 * progspace-and-thread.c (switch_to_program_space_and_thread):
16019 Assert there's an inferior for PSPACE. Use
16020 switch_to_inferior_no_thread to switch the inferior too.
16021 * progspace.c (program_space::~program_space): Call
16022 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16023 (program_space::free_all_objfiles): Don't call clear_symtab_users
16024 here.
16025 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16026
65c574f6
PA
160272020-01-10 Pedro Alves <palves@redhat.com>
16028
16029 * NEWS: Mention multi-target debugging, "info connections", and
16030 "add-inferior -no-connection".
16031
2f4fcf00
PA
160322020-01-10 Pedro Alves <palves@redhat.com>
16033
16034 * infrun.c: Include "target-connection.h".
16035 (check_multi_target_resumption): New.
16036 (proceed): Call it.
16037 * target-connection.c (make_target_connection_string): Make
16038 extern.
16039 * target-connection.h (make_target_connection_string): Declare.
16040
121b3efd
PA
160412020-01-10 Pedro Alves <palves@redhat.com>
16042
16043 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16044 * inferior.c (uiout_field_connection): New function.
16045 (print_inferior): Add new "connection-id" column.
16046 (add_inferior_command): Show connection number/string of added
16047 inferior.
16048 * process-stratum-target.h
16049 (process_stratum_target::connection_string): New virtual method.
16050 (process_stratum_target::connection_number): New field.
16051 * remote.c (remote_target::connection_string): New override.
16052 * target-connection.c: New file.
16053 * target-connection.h: New file.
16054 * target.c (decref_target): Remove process_stratum targets from
16055 the connection list.
16056 (target_stack::push): Add process_stratum targets to the
16057 connection list.
16058
4f837581
PA
160592020-01-10 Pedro Alves <palves@redhat.com>
16060
16061 Revert:
16062 2016-04-12 Pedro Alves <palves@redhat.com>
16063 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16064 Remove references to name.
16065 * serial.h (struct serial) <name>: Delete.
16066
f4ec508e
PA
160672020-01-10 Pedro Alves <palves@redhat.com>
16068
16069 * gdbarch-selftests.c (register_to_value_test): Remove "target
16070 already pushed" check.
16071
5b6d1e4f
PA
160722020-01-10 Pedro Alves <palves@redhat.com>
16073 John Baldwin <jhb@FreeBSD.org>
16074
16075 * aarch64-linux-nat.c
16076 (aarch64_linux_nat_target::thread_architecture): Adjust.
16077 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16078 (task_command_1): Likewise.
16079 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16080 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16081 (aix_thread_target::store_registers)
16082 (aix_thread_target::thread_alive): Adjust.
16083 * amd64-fbsd-tdep.c: Include "inferior.h".
16084 (amd64fbsd_get_thread_local_address): Pass down target.
16085 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16086 thread's gdbarch instead of target_gdbarch.
16087 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16088 get_last_target_status.
16089 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16090 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16091 inferiors.
16092 (update_inserted_breakpoint_locations): Skip if inferiors with no
16093 execution.
16094 (update_global_location_list): When handling moribund locations,
16095 find representative inferior for location's pspace, and use thread
16096 count of its process_stratum target.
16097 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16098 * bsd-uthread.c (bsd_uthread_target::wait): Use
16099 as_process_stratum_target and adjust thread_change_ptid and
16100 add_thread calls.
16101 (bsd_uthread_target::update_thread_list): Use
16102 as_process_stratum_target and adjust find_thread_ptid,
16103 thread_change_ptid and add_thread calls.
16104 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16105 find_thread_ptid call.
16106 * corelow.c (add_to_thread_list): Adjust add_thread call.
16107 (core_target_open): Adjust add_thread_silent and thread_count
16108 calls.
16109 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16110 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16111 * event-top.c (async_disconnect): Pop targets from all inferiors.
16112 * exec.c (add_target_sections): Push exec target on all inferiors
16113 sharing the program space.
16114 (remove_target_sections): Remove the exec target from all
16115 inferiors sharing the program space.
16116 (exec_on_vfork): New.
16117 * exec.h (exec_on_vfork): Declare.
16118 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16119 Pass it down.
16120 (fbsd_nat_target::update_thread_list): Adjust.
16121 (fbsd_nat_target::resume): Adjust.
16122 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16123 down.
16124 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16125 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16126 get_thread_arch_regcache call.
16127 * fork-child.c (gdb_startup_inferior): Pass target down to
16128 startup_inferior and set_executing.
16129 * gdbthread.h (struct process_stratum_target): Forward declare.
16130 (add_thread, add_thread_silent, add_thread_with_info)
16131 (in_thread_list): Add process_stratum_target parameter.
16132 (find_thread_ptid(inferior*, ptid_t)): New overload.
16133 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16134 parameter.
16135 (all_threads()): Delete overload.
16136 (all_threads, all_non_exited_threads): Add process_stratum_target
16137 parameter.
16138 (all_threads_safe): Use brace initialization.
16139 (thread_count): Add process_stratum_target parameter.
16140 (set_resumed, set_running, set_stop_requested, set_executing)
16141 (threads_are_executing, finish_thread_state): Add
16142 process_stratum_target parameter.
16143 (switch_to_thread): Use is_current_thread.
16144 * i386-fbsd-tdep.c: Include "inferior.h".
16145 (i386fbsd_get_thread_local_address): Pass down target.
16146 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16147 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16148 have_inferiors check.
16149 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16150 (inf_ptrace_target::attach): Adjust.
16151 * infcall.c (run_inferior_call): Adjust.
16152 * infcmd.c (run_command_1): Pass target to
16153 scoped_finish_thread_state.
16154 (proceed_thread_callback): Skip inferiors with no execution.
16155 (continue_command): Rename 'all_threads' local to avoid hiding
16156 'all_threads' function. Adjust get_last_target_status call.
16157 (prepare_one_step): Adjust set_running call.
16158 (signal_command): Use user_visible_resume_target. Compare thread
16159 pointers instead of inferior_ptid.
16160 (info_program_command): Adjust to pass down target.
16161 (attach_command): Mark target's 'thread_executing' flag.
16162 (stop_current_target_threads_ns): New, factored out from ...
16163 (interrupt_target_1): ... this. Switch inferior before making
16164 target calls.
16165 * inferior-iter.h
16166 (struct all_inferiors_iterator, struct all_inferiors_range)
16167 (struct all_inferiors_safe_range)
16168 (struct all_non_exited_inferiors_range): Filter on
16169 process_stratum_target too. Remove explicit.
16170 * inferior.c (inferior::inferior): Push dummy target on target
16171 stack.
16172 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16173 Add process_stratum_target parameter, and pass it down.
16174 (have_live_inferiors): Adjust.
16175 (switch_to_inferior_and_push_target): New.
16176 (add_inferior_command, clone_inferior_command): Handle
16177 "-no-connection" parameter. Use
16178 switch_to_inferior_and_push_target.
16179 (_initialize_inferior): Mention "-no-connection" option in
16180 the help of "add-inferior" and "clone-inferior" commands.
16181 * inferior.h: Include "process-stratum-target.h".
16182 (interrupt_target_1): Use bool.
16183 (struct inferior) <push_target, unpush_target, target_is_pushed,
16184 find_target_beneath, top_target, process_target, target_at,
16185 m_stack>: New.
16186 (discard_all_inferiors): Delete.
16187 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16188 (all_inferiors, all_non_exited_inferiors): Add
16189 process_stratum_target parameter.
16190 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16191 (target_last_proc_target): New global.
16192 (follow_fork_inferior): Push target on new inferior. Pass target
16193 to add_thread_silent. Call exec_on_vfork. Handle target's
16194 reference count.
16195 (follow_fork): Adjust get_last_target_status call. Also consider
16196 target.
16197 (follow_exec): Push target on new inferior.
16198 (struct execution_control_state) <target>: New field.
16199 (user_visible_resume_target): New.
16200 (do_target_resume): Call target_async.
16201 (resume_1): Set target's threads_executing flag. Consider resume
16202 target.
16203 (commit_resume_all_targets): New.
16204 (proceed): Also consider resume target. Skip threads of inferiors
16205 with no execution. Commit resumtion in all targets.
16206 (start_remote): Pass current inferior to wait_for_inferior.
16207 (infrun_thread_stop_requested): Consider target as well. Pass
16208 thread_info pointer to clear_inline_frame_state instead of ptid.
16209 (infrun_thread_thread_exit): Consider target as well.
16210 (random_pending_event_thread): New inferior parameter. Use it.
16211 (do_target_wait): Rename to ...
16212 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16213 down.
16214 (threads_are_resumed_pending_p, do_target_wait): New.
16215 (prepare_for_detach): Adjust calls.
16216 (wait_for_inferior): New inferior parameter. Handle it. Use
16217 do_target_wait_1 instead of do_target_wait.
16218 (fetch_inferior_event): Adjust. Switch to representative
16219 inferior. Pass target down.
16220 (set_last_target_status): Add process_stratum_target parameter.
16221 Save target in global.
16222 (get_last_target_status): Add process_stratum_target parameter and
16223 handle it.
16224 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16225 (context_switch): Check inferior_ptid == null_ptid before calling
16226 inferior_thread().
16227 (get_inferior_stop_soon): Pass down target.
16228 (wait_one): Rename to ...
16229 (poll_one_curr_target): ... this.
16230 (struct wait_one_event): New.
16231 (wait_one): New.
16232 (stop_all_threads): Adjust.
16233 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16234 event's target.
16235 (switch_back_to_stepped_thread): Also consider target.
16236 (print_stop_event): Update.
16237 (normal_stop): Update. Also consider the resume target.
16238 * infrun.h (wait_for_inferior): Remove declaration.
16239 (user_visible_resume_target): New declaration.
16240 (get_last_target_status, set_last_target_status): New
16241 process_stratum_target parameter.
16242 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16243 process_stratum_target parameter, and use it.
16244 (clear_inline_frame_state (thread_info*)): New.
16245 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16246 process_stratum_target parameter.
16247 (clear_inline_frame_state (thread_info*)): Declare.
16248 * linux-fork.c (delete_checkpoint_command): Pass target down to
16249 find_thread_ptid.
16250 (checkpoint_command): Adjust.
16251 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16252 instead of just tweaking inferior_ptid.
16253 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16254 (exit_lwp): Pass target down to find_thread_ptid.
16255 (attach_proc_task_lwp_callback): Pass target down to
16256 add_thread/set_running/set_executing.
16257 (linux_nat_target::attach): Pass target down to
16258 thread_change_ptid.
16259 (get_detach_signal): Pass target down to find_thread_ptid.
16260 Consider last target status's target.
16261 (linux_resume_one_lwp_throw, resume_lwp)
16262 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16263 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16264 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16265 (linux_nat_target::async_wait_fd): New.
16266 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16267 target down.
16268 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16269 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16270 * linux-thread-db.c (struct thread_db_info::process_target): New
16271 field.
16272 (add_thread_db_info): Save target.
16273 (get_thread_db_info): New process_stratum_target parameter. Also
16274 match target.
16275 (delete_thread_db_info): New process_stratum_target parameter.
16276 Also match target.
16277 (thread_from_lwp): Adjust to pass down target.
16278 (thread_db_notice_clone): Pass down target.
16279 (check_thread_db_callback): Pass down target.
16280 (try_thread_db_load_1): Always push the thread_db target.
16281 (try_thread_db_load, record_thread): Pass target down.
16282 (thread_db_target::detach): Pass target down. Always unpush the
16283 thread_db target.
16284 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16285 target down. Always unpush the thread_db target.
16286 (find_new_threads_callback, thread_db_find_new_threads_2)
16287 (thread_db_target::update_thread_list): Pass target down.
16288 (thread_db_target::pid_to_str): Pass current inferior down.
16289 (thread_db_target::get_thread_local_address): Pass target down.
16290 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16291 target down.
16292 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16293 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16294 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16295 (procfs_init_inferior): Rename to ...
16296 (procfs_target::procfs_init_inferior): ... this and adjust.
16297 (procfs_target::create_inferior, procfs_notice_thread)
16298 (procfs_do_thread_registers): Adjust.
16299 * ppc-fbsd-tdep.c: Include "inferior.h".
16300 (ppcfbsd_get_thread_local_address): Pass down target.
16301 * proc-service.c (ps_xfer_memory): Switch current inferior and
16302 program space as well.
16303 (get_ps_regcache): Pass target down.
16304 * process-stratum-target.c
16305 (process_stratum_target::thread_address_space)
16306 (process_stratum_target::thread_architecture): Pass target down.
16307 * process-stratum-target.h
16308 (process_stratum_target::threads_executing): New field.
16309 (as_process_stratum_target): New.
16310 * ravenscar-thread.c
16311 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16312 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16313 down.
16314 * record-btrace.c (record_btrace_target::info_record): Adjust.
16315 (record_btrace_target::record_method)
16316 (record_btrace_target::record_is_replaying)
16317 (record_btrace_target::fetch_registers)
16318 (get_thread_current_frame_id, record_btrace_target::resume)
16319 (record_btrace_target::wait, record_btrace_target::stop): Pass
16320 target down.
16321 * record-full.c (record_full_wait_1): Switch to event thread.
16322 Pass target down.
16323 * regcache.c (regcache::regcache)
16324 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16325 process_stratum_target parameter and handle it.
16326 (current_thread_target): New global.
16327 (get_thread_regcache): Add process_stratum_target parameter and
16328 handle it. Switch inferior before calling target method.
16329 (get_thread_regcache): Pass target down.
16330 (get_thread_regcache_for_ptid): Pass target down.
16331 (registers_changed_ptid): Add process_stratum_target parameter and
16332 handle it.
16333 (registers_changed_thread, registers_changed): Pass target down.
16334 (test_get_thread_arch_aspace_regcache): New.
16335 (current_regcache_test): Define a couple local test_target_ops
16336 instances and use them for testing.
16337 (readwrite_regcache): Pass process_stratum_target parameter.
16338 (cooked_read_test, cooked_write_test): Pass mock_target down.
16339 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16340 (get_thread_arch_aspace_regcache): Add process_stratum_target
16341 parameter.
16342 (regcache::target): New method.
16343 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16344 (regcache::registers_changed_ptid): Add process_stratum_target
16345 parameter.
16346 (regcache::m_target): New field.
16347 (registers_changed_ptid): Add process_stratum_target parameter.
16348 * remote.c (remote_state::supports_vCont_probed): New field.
16349 (remote_target::async_wait_fd): New method.
16350 (remote_unpush_and_throw): Add remote_target parameter.
16351 (get_current_remote_target): Adjust.
16352 (remote_target::remote_add_inferior): Push target.
16353 (remote_target::remote_add_thread)
16354 (remote_target::remote_notice_new_inferior)
16355 (get_remote_thread_info): Pass target down.
16356 (remote_target::update_thread_list): Skip threads of inferiors
16357 bound to other targets. (remote_target::close): Don't discard
16358 inferiors. (remote_target::add_current_inferior_and_thread)
16359 (remote_target::process_initial_stop_replies)
16360 (remote_target::start_remote)
16361 (remote_target::remote_serial_quit_handler): Pass down target.
16362 (remote_target::remote_unpush_target): New remote_target
16363 parameter. Unpush the target from all inferiors.
16364 (remote_target::remote_unpush_and_throw): New remote_target
16365 parameter. Pass it down.
16366 (remote_target::open_1): Check whether the current inferior has
16367 execution instead of checking whether any inferior is live. Pass
16368 target down.
16369 (remote_target::remote_detach_1): Pass down target. Use
16370 remote_unpush_target.
16371 (extended_remote_target::attach): Pass down target.
16372 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16373 (remote_target::append_resumption): Pass down target.
16374 (remote_target::append_pending_thread_resumptions)
16375 (remote_target::remote_resume_with_hc, remote_target::resume)
16376 (remote_target::commit_resume): Pass down target.
16377 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16378 (remote_target::interrupt_query)
16379 (remote_target::remove_new_fork_children)
16380 (remote_target::check_pending_events_prevent_wildcard_vcont)
16381 (remote_target::remote_parse_stop_reply)
16382 (remote_target::process_stop_reply): Pass down target.
16383 (first_remote_resumed_thread): New remote_target parameter. Pass
16384 it down.
16385 (remote_target::wait_as): Pass down target.
16386 (unpush_and_perror): New remote_target parameter. Pass it down.
16387 (remote_target::readchar, remote_target::remote_serial_write)
16388 (remote_target::getpkt_or_notif_sane_1)
16389 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16390 down target.
16391 (remote_target::mourn_inferior): Pass down target. Use
16392 remote_unpush_target.
16393 (remote_target::core_of_thread)
16394 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16395 (remote_target::pid_to_exec_file)
16396 (remote_target::thread_handle_to_thread_info): Pass down target.
16397 (remote_target::async_wait_fd): New.
16398 * riscv-fbsd-tdep.c: Include "inferior.h".
16399 (riscv_fbsd_get_thread_local_address): Pass down target.
16400 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16401 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16402 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16403 Adjust.
16404 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16405 * solib-svr4.c (enable_break): Pass down target.
16406 * spu-multiarch.c (parse_spufs_run): Pass down target.
16407 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16408 * target-delegates.c: Regenerate.
16409 * target.c (g_target_stack): Delete.
16410 (current_top_target): Return the current inferior's top target.
16411 (target_has_execution_1): Refer to the passed-in inferior's top
16412 target.
16413 (target_supports_terminal_ours): Check whether the initial
16414 inferior was already created.
16415 (decref_target): New.
16416 (target_stack::push): Incref/decref the target.
16417 (push_target, push_target, unpush_target): Adjust.
16418 (target_stack::unpush): Defref target.
16419 (target_is_pushed): Return bool. Adjust to refer to the current
16420 inferior's target stack.
16421 (dispose_inferior): Delete, and inline parts ...
16422 (target_preopen): ... here. Only dispose of the current inferior.
16423 (target_detach): Hold strong target reference while detaching.
16424 Pass target down.
16425 (target_thread_name): Add assertion.
16426 (target_resume): Pass down target.
16427 (target_ops::beneath, find_target_at): Adjust to refer to the
16428 current inferior's target stack.
16429 (get_dummy_target): New.
16430 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16431 has a thread running.
16432 (initialize_targets): Rename to ...
16433 (_initialize_target): ... this.
16434 * target.h: Include "gdbsupport/refcounted-object.h".
16435 (struct target_ops): Inherit refcounted_object.
16436 (target_ops::shortname, target_ops::longname): Make const.
16437 (target_ops::async_wait_fd): New method.
16438 (decref_target): Declare.
16439 (struct target_ops_ref_policy): New.
16440 (target_ops_ref): New typedef.
16441 (get_dummy_target): Declare function.
16442 (target_is_pushed): Return bool.
16443 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16444 (all_matching_threads_iterator::all_matching_threads_iterator):
16445 Handle filter target.
16446 * thread-iter.h (struct all_matching_threads_iterator, struct
16447 all_matching_threads_range, class all_non_exited_threads_range):
16448 Filter by target too. Remove explicit.
16449 * thread.c (threads_executing): Delete.
16450 (inferior_thread): Pass down current inferior.
16451 (clear_thread_inferior_resources): Pass down thread pointer
16452 instead of ptid_t.
16453 (add_thread_silent, add_thread_with_info, add_thread): Add
16454 process_stratum_target parameter. Use it for thread and inferior
16455 searches.
16456 (is_current_thread): New.
16457 (thread_info::deletable): Use it.
16458 (find_thread_ptid, thread_count, in_thread_list)
16459 (thread_change_ptid, set_resumed, set_running): New
16460 process_stratum_target parameter. Pass it down.
16461 (set_executing): New process_stratum_target parameter. Pass it
16462 down. Adjust reference to 'threads_executing'.
16463 (threads_are_executing): New process_stratum_target parameter.
16464 Adjust reference to 'threads_executing'.
16465 (set_stop_requested, finish_thread_state): New
16466 process_stratum_target parameter. Pass it down.
16467 (switch_to_thread): Also match inferior.
16468 (switch_to_thread): New process_stratum_target parameter. Pass it
16469 down.
16470 (update_threads_executing): Reimplement.
16471 * top.c (quit_force): Pop targets from all inferior.
16472 (gdb_init): Don't call initialize_targets.
16473 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16474 Declare.
16475 (windows_add_thread, windows_delete_thread): Adjust.
16476 (get_windows_debug_event): Rename to ...
16477 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16478 * tracefile-tfile.c (tfile_target_open): Pass down target.
16479 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16480 Forward declare.
16481 (switch_to_thread): Add process_stratum_target parameter.
16482 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16483 parameter. Use it.
16484 (mi_on_resume): Pass target down.
16485 * nat/fork-inferior.c (startup_inferior): Add
16486 process_stratum_target parameter. Pass it down.
16487 * nat/fork-inferior.h (startup_inferior): Add
16488 process_stratum_target parameter.
16489 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16490
75c6c844
PA
164912020-01-10 Pedro Alves <palves@redhat.com>
16492
16493 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16494 directly. Instead find the first thread in the thread list and
16495 use switch_to_thread.
16496
78f2c40a
PA
164972020-01-10 Pedro Alves <palves@redhat.com>
16498
16499 * remote.c (remote_target::remote_add_inferior): Don't bind a
16500 process to the current inferior if the current inferior is already
16501 bound to a process.
16502
e7af6c70
TBA
165032020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16504 Pedro Alves <palves@redhat.com>
16505
16506 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16507 If no process is specified, return null_ptid instead of
16508 inferior_ptid.
16509 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16510 TARGET_WAITKIND_SIGNALLED with no pid.
16511
31ba933e
PA
165122020-01-10 Pedro Alves <palves@redhat.com>
16513
16514 * remote.c (first_remote_resumed_thread): New.
16515 (remote_target::wait_as): Use it as default event_ptid instead of
16516 inferior_ptid.
16517
735fc2ca
PA
165182020-01-10 Pedro Alves <palves@redhat.com>
16519
16520 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16521
c17e02e1
PA
165222020-01-10 Pedro Alves <palves@redhat.com>
16523
16524 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16525 not -1.
16526
ab1ddbcf
PA
165272020-01-10 Pedro Alves <palves@redhat.com>
16528
16529 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16530 ptid to get_last_target_status.
16531 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16532 ptid to get_last_target_status.
16533 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16534 get_last_target_status.
16535 (info_program_command): Don't pass a target_waitstatus to
16536 get_last_target_status.
16537 * infrun.c (init_wait_for_inferior): Use
16538 nullify_last_target_wait_ptid.
16539 (get_last_target_status): Handle nullptr arguments.
16540 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16541 (print_stop_event): Don't pass a ptid to get_last_target_status.
16542 (normal_stop): Don't pass a ptid to get_last_target_status.
16543 * infrun.h (get_last_target_status, set_last_target_status): Move
16544 comments here and update.
16545 (nullify_last_target_wait_ptid): Declare.
16546 * linux-fork.c (fork_load_infrun_state): Remove local extern
16547 declaration of nullify_last_target_wait_ptid.
16548 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16549 to get_last_target_status.
16550
f3f8ece4
PA
165512020-01-10 Pedro Alves <palves@redhat.com>
16552
16553 * gdbthread.h (scoped_restore_current_thread)
16554 <dont_restore, restore, m_dont_restore>: Declare.
16555 * thread.c (thread_alive): Add assertion. Return bool.
16556 (switch_to_thread_if_alive): New.
16557 (prune_threads): Switch inferior/thread.
16558 (print_thread_info_1): Switch thread before calling target methods.
16559 (scoped_restore_current_thread::restore): New, factored out from
16560 ...
16561 (scoped_restore_current_thread::~scoped_restore_current_thread):
16562 ... this.
16563 (scoped_restore_current_thread::scoped_restore_current_thread):
16564 Add assertion.
16565 (thread_apply_all_command, thread_select): Use
16566 switch_to_thread_if_alive.
16567 * infrun.c (proceed, restart_threads, handle_signal_stop)
16568 (switch_back_to_stepped_thread): Switch current thread before
16569 calling target methods.
16570
db2d40f7
PA
165712020-01-10 Pedro Alves <palves@redhat.com>
16572
16573 * inferior.c (switch_to_inferior_no_thread): New function,
16574 factored out from ...
16575 (inferior_command): ... here.
16576 * inferior.h (switch_to_inferior_no_thread): Declare.
16577 * mi/mi-main.c (run_one_inferior): Use
16578 switch_to_inferior_no_thread.
16579
bd420a2d
PA
165802020-01-10 Pedro Alves <palves@redhat.com>
16581
16582 * infcmd.c (kill_command): Remove dead code.
16583
ddf5db90
PA
165842020-01-10 Pedro Alves <palves@redhat.com>
16585
16586 * remote.c (remote_target::mourn_inferior): No longer check
16587 whether the target is running.
16588
5018ce90
PA
165892020-01-10 Pedro Alves <palves@redhat.com>
16590
16591 * corelow.c (core_target::has_execution): Change parameter type to
16592 inferior pointer.
16593 * inferior.c (number_of_live_inferiors): Use
16594 inferior::has_execution instead of target_has_execution_1.
16595 * inferior.h (inferior::has_execution): New.
16596 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16597 inferior::has_execution instead of target_has_execution_1.
16598 * process-stratum-target.c
16599 (process_stratum_target::has_execution): Change parameter type to
16600 inferior pointer. Check the inferior's PID instead of
16601 inferior_ptid.
16602 * process-stratum-target.h
16603 (process_stratum_target::has_execution): Change parameter type to
16604 inferior pointer.
16605 * record-full.c (record_full_core_target::has_execution): Change
16606 parameter type to inferior pointer.
16607 * target.c (target_has_execution_1): Change parameter type to
16608 inferior pointer.
16609 (target_has_execution_current): Adjust.
16610 * target.h (target_ops::has_execution): Change parameter type to
16611 inferior pointer.
16612 (target_has_execution_1): Change parameter type to inferior
16613 pointer. Change return type to bool.
16614 * tracefile.h (tracefile_target::has_execution): Change parameter
16615 type to inferior pointer.
16616
74375d18
PA
166172020-01-10 Pedro Alves <palves@redhat.com>
16618
16619 * exceptions.c (print_flush): Remove current_top_target() check.
16620
acdf84a6
PA
166212020-01-10 Pedro Alves <palves@redhat.com>
16622
16623 * remote.c (show_remote_exec_file): Show the current inferior's
16624 exec-file instead of the command variable's value.
16625
ec506636
PA
166262020-01-10 Pedro Alves <palves@redhat.com>
16627
16628 * record-full.c (record_full_resume_ptid): New global.
16629 (record_full_target::resume): Set it.
16630 (record_full_wait_1): Use record_full_resume_ptid instead of
16631 inferior_ptid.
16632
873657b9
PA
166332020-01-10 Pedro Alves <palves@redhat.com>
16634
16635 * gdbthread.h (scoped_restore_current_thread)
16636 <dont_restore, restore, m_dont_restore>: Declare.
16637 * thread.c (thread_alive): Add assertion. Return bool.
16638 (switch_to_thread_if_alive): New.
16639 (prune_threads): Switch inferior/thread.
16640 (print_thread_info_1): Switch thread before calling target methods.
16641 (scoped_restore_current_thread::restore): New, factored out from
16642 ...
16643 (scoped_restore_current_thread::~scoped_restore_current_thread):
16644 ... this.
16645 (scoped_restore_current_thread::scoped_restore_current_thread):
16646 Add assertion.
16647 (thread_apply_all_command, thread_select): Use
16648 switch_to_thread_if_alive.
16649
7f0ae84c
GB
166502020-01-10 George Barrett <bob@bob131.so>
16651
16652 * stap-probe.c (stap_modify_semaphore): Don't check for null
16653 semaphores.
16654 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16655 for null semaphores.
16656
f5a7c406
AB
166572020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16658
16659 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16660 all source windows, and maintain horizontal scroll status while
16661 doing so.
16662
9ae6bf64
TT
166632020-01-09 Tom Tromey <tom@tromey.com>
16664
16665 PR tui/18932:
16666 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16667 update_source_window, not print_source_lines.
16668
b2efe70c
AB
166692020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16670
16671 * tui/tui.c (tui_enable): Register tui hooks after calling
16672 tui_display_main.
16673
5f23a082
CB
166742020-01-09 Christian Biesinger <cbiesinger@google.com>
16675
16676 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16677
3061113b
SM
166782020-01-08 Simon Marchi <simon.marchi@efficios.com>
16679
16680 * thread.c (print_thread_info_1): Fix indentation.
16681
57d75002
CB
166822020-01-09 Christian Biesinger <cbiesinger@google.com>
16683
16684 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16685 unique_xmalloc_ptr outside the if to always free the demangled name.
16686
6a053cb1
TT
166872020-01-08 Tom Tromey <tromey@adacore.com>
16688
16689 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16690 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16691 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16692 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16693 Remove.
16694 (section_offsets): New typedef.
16695 * symtab.c (fixup_section, get_msymbol_address): Update.
16696 * symmisc.c (dump_msymbols): Update.
16697 * symfile.h (relative_addr_info_to_section_offsets)
16698 (symfile_map_offsets_to_segments): Update.
16699 * symfile.c (build_section_addr_info_from_objfile)
16700 (init_objfile_sect_indices): Update.
16701 (struct place_section_arg): Change type of "offsets".
16702 (place_section): Update.
16703 (relative_addr_info_to_section_offsets): Change type of
16704 "section_offsets". Remove "num_sections" parameter.
16705 (default_symfile_offsets, syms_from_objfile_1)
16706 (set_objfile_default_section_offset): Update.
16707 (reread_symbols): No need to preserve section offsets by hand.
16708 (symfile_map_offsets_to_segments): Change type of "offsets".
16709 * stap-probe.c (relocate_address): Update.
16710 * stabsread.h (process_one_symbol): Update.
16711 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16712 (solib_target_relocate_section_addresses): Update.
16713 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16714 Update.
16715 * solib-frv.c (frv_relocate_main_executable): Update.
16716 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16717 * solib-aix.c (solib_aix_get_section_offsets): Change return
16718 type.
16719 (solib_aix_solib_create_inferior_hook): Update.
16720 * remote.c (remote_target::get_offsets): Update.
16721 * psymtab.c (find_pc_sect_psymtab): Update.
16722 * psympriv.h (struct partial_symbol) <address, text_low,
16723 text_high>: Update.
16724 * objfiles.h (obj_section_offset): Update.
16725 (struct objfile) <section_offsets>: Change type.
16726 <num_sections>: Remove.
16727 (objfile_relocate): Update.
16728 * objfiles.c (entry_point_address_query): Update
16729 (relocate_one_symbol): Change type of "section_offsets".
16730 (objfile_relocate1, objfile_relocate1): Change type of
16731 "new_offsets".
16732 (objfile_rebase1): Update.
16733 * mipsread.c (mipscoff_symfile_read): Update.
16734 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16735 parameter.
16736 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16737 (parse_external, psymtab_to_symtab_1): Update.
16738 * machoread.c (macho_symfile_offsets): Update.
16739 * ia64-tdep.c (ia64_find_unwind_table): Update.
16740 * hppa-tdep.c (read_unwind_info): Update.
16741 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16742 * dwarf2read.c (create_addrmap_from_index)
16743 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16744 (process_psymtab_comp_unit_reader, add_partial_symbol)
16745 (add_partial_subprogram, process_full_comp_unit)
16746 (read_file_scope, read_func_scope, read_lexical_block_scope)
16747 (read_call_site_scope, dwarf2_rnglists_process)
16748 (dwarf2_ranges_process, dwarf2_ranges_read)
16749 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16750 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16751 Update.
16752 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16753 Update.
16754 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16755 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16756 (process_one_symbol): Change type of "section_offsets".
16757 * ctfread.c (get_objfile_text_range): Update.
16758 * coffread.c (coff_symtab_read, enter_linenos)
16759 (process_coff_symbol): Update.
16760 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16761 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16762
456e800a
TT
167632020-01-08 Tom Tromey <tromey@adacore.com>
16764
16765 * dwarf2read.c (parse_macro_definition): Use std::string.
16766 (parse_macro_definition): Likewise.
16767
6dfa2fc2
TT
167682020-01-08 Tom Tromey <tromey@adacore.com>
16769
16770 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16771 (ATTR_ALLOC_CHUNK): Remove.
16772
421d1616
TT
167732020-01-08 Tom Tromey <tromey@adacore.com>
16774
16775 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16776
43816ebc
TT
167772020-01-08 Tom Tromey <tromey@adacore.com>
16778
16779 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16780 (dwarf2_compute_name, open_dwo_file): Likewise.
16781 (process_enumeration_scope): Use std::vector.
16782 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16783 (partial_die_info::fixup, dwarf2_start_subfile)
16784 (guess_full_die_structure_name, dwarf2_name): Likewise.
16785 (determine_prefix): Update.
16786 (guess_full_die_structure_name): Make return type const.
16787 (partial_die_full_name): Return unique_xmalloc_ptr.
16788 (DW_FIELD_ALLOC_CHUNK): Remove.
16789
4212d509
TT
167902020-01-07 Tom Tromey <tromey@adacore.com>
16791
16792 PR build/24937:
16793 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16794
06a6207a
JT
167952020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16796
16797 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16798
153d79c4
AB
167992020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16800
16801 * stack.c (print_frame_info): Move disassemble_next_line code
16802 inside source_print block.
16803
66182876
EZ
168042020-01-06 Eli Zaretskii <eliz@gnu.org>
16805
16806 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16807 gdb/signals.h, as we are now using native signal symbols.
16808
cbfa8581
SV
168092020-01-06 Shahab Vahedi <shahab@synopsys.com>
16810
16811 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16812 overflow by an early check of content vs threshold.
aac66a4c 16813 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16814 Likewise.
16815
3f602821
EZ
168162020-01-06 Eli Zaretskii <eliz@gnu.org>
16817
16818 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16819
a08c904d
JT
168202020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16821
16822 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16823 export table if no section contains it's RVA.
16824
89a65580
EZ
168252020-01-06 Eli Zaretskii <eliz@gnu.org>
16826
16827 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16828
8b7fcda2
HD
168292020-01-06 Hannes Domani <ssbssa@yahoo.de>
16830
16831 * source.c (print_source_lines_base): Set last_line_listed.
16832
a61b4f69
SV
168332020-01-06 Shahab Vahedi <shahab@synopsys.com>
16834
16835 * tui/tui-disasm.c: Remove trailing spaces.
16836
559e7e50
EZ
168372020-01-06 Eli Zaretskii <eliz@gnu.org>
16838 Pedro Alves <palves@redhat.com>
16839
16840 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16841 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16842 (windows_gdb_signal_to_target): New function, uses the above
16843 enumeration to convert GDB internal signal codes to equivalent
16844 Windows codes.
16845 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16846 * windows-nat.c: Include "gdb_wait.h".
16847 (get_windows_debug_event): Extract the fatal exception from the
16848 exit status and convert to the equivalent Posix signal number.
16849 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16850 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16851 * gdbsupport/gdb_wait.c: New file, implements
16852 windows_status_to_termsig.
16853 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16854 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16855
f2302a34
AB
168562020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16857
16858 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16859 show_layout.
16860
6a5206eb
LM
168612020-01-05 Luis Machado <luis.machado@linaro.org>
16862
16863 * aarch64-linux-nat.c
16864 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16865 and bfd_mach_aarch64.
16866
6ec1d75e
PW
168672020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16868
16869 * ui-file.c (stdio_file::can_emit_style_escape)
16870 (tee_file::can_emit_style_escape): Ensure style is used also on
16871 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16872 to gdb_stdout.
16873 * main.c (set_gdb_data_directory): Use file style to output the
16874 warning that the given pathname is not a directory.
16875 * top.c (show_history_filename, gdb_safe_append_history)
16876 (show_gdb_datadir): Use file style.
16877
44f81a76
HD
168782020-01-03 Hannes Domani <ssbssa@yahoo.de>
16879
16880 * solib-target.c (struct lm_info_target):
16881 Change offsets to be a unique_xmalloc_ptr.
16882 (solib_target_relocate_section_addresses): Update.
16883
25057eb0
HD
168842020-01-03 Hannes Domani <ssbssa@yahoo.de>
16885
16886 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16887
6e2118f5
BE
168882020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16889
16890 * MAINTAINERS (Write After Approval): Add myself.
16891
8133c7dc
LM
168922020-01-02 Luis Machado <luis.machado@linaro.org>
16893
16894 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16895 Cell BE architecture.
16896 * target.h (struct target_ops) <thread_architecture>: Likewise.
16897
48189bec
HD
168982020-01-01 Hannes Domani <ssbssa@yahoo.de>
16899
16900 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16901
ead1063b
HD
169022020-01-01 Hannes Domani <ssbssa@yahoo.de>
16903
16904 * MAINTAINERS (Write After Approval): Add myself.
16905
e5d78223
JB
169062020-01-01 Joel Brobecker <brobecker@adacore.com>
16907
16908 * gdbarch.sh: Update copyright year range of generated files.
16909
b811d2c2
JB
169102020-01-01 Joel Brobecker <brobecker@adacore.com>
16911
16912 Update copyright year range in all GDB files.
16913
5f4def5c
JB
169142020-01-01 Joel Brobecker <brobecker@adacore.com>
16915
16916 * copyright.py: Convert to Python 3.
16917
51fd4002
JB
169182020-01-01 Joel Brobecker <brobecker@adacore.com>
16919
16920 * copyright.py: Adapt after move of gnulib directory from gdb
16921 directory to toplevel directory.
16922
5fb651f2
JB
169232020-01-01 Joel Brobecker <brobecker@adacore.com>
16924
16925 * copyright.py (main): Exit if run from the wrong directory.
16926
5dd8bf88
JB
169272020-01-01 Joel Brobecker <brobecker@adacore.com>
16928
16929 * top.c (print_gdb_version): Change copyright year to 2020.
16930
9f71dacb 169312020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16932
9f71dacb 16933 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16934
9f71dacb 16935For older changes see ChangeLog-2019.
c906108c
SS
16936\f
16937Local Variables:
16938mode: change-log
16939left-margin: 8
16940fill-column: 74
16941version-control: never
57da7796 16942coding: utf-8
c906108c 16943End:
This page took 3.862439 seconds and 4 git commands to generate.