]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
fix printing of DWARF fixed-point type objects with format modifier
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b26daff9
JB
12020-11-15 Joel Brobecker <brobecker@adacore.com>
2
3 * printcmd.c (print_scalar_formatted): Add fixed-point type
4 handling when options->format is set.
5
09584414
JB
62020-11-15 Joel Brobecker <brobecker@adacore.com>
7
8 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
9 * dwarf2/read.c (get_dwarf2_rational_constant)
10 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
11 (has_zero_over_zero_small_attribute): New functions.
12 read_base_type, set_die_type): Add fixed-point type handling.
13 * gdb-gdb.py.in: Add fixed-point type handling.
14 * gdbtypes.c: #include "gmp-utils.h".
15 (create_range_type, set_type_code): Add fixed-point type handling.
16 (init_fixed_point_type): New function.
17 (is_integral_type, is_scalar_type): Add fixed-point type handling.
18 (print_fixed_point_type_info): New function.
19 (recursive_dump_type, copy_type_recursive): Add fixed-point type
20 handling.
21 (fixed_point_type_storage): New typedef.
22 (fixed_point_objfile_key): New static global.
23 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
24 (fixed_point_type_base_type, fixed_point_scaling_factor): New
25 functions.
26 * gdbtypes.h: #include "gmp-utils.h".
27 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
28 (union type_specific) <fixed_point_info>: New field.
29 (struct fixed_point_type_info): New struct.
30 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
31 (init_fixed_point_type, is_fixed_point_type)
32 (fixed_point_type_base_type, fixed_point_scaling_factor)
33 (allocate_fixed_point_type_info): Add declarations.
34 * valprint.c (generic_val_print_fixed_point): New function.
35 (generic_value_print): Add fixed-point type handling.
36 * value.c (value_as_address, unpack_long): Add fixed-point type
37 handling.
38
e55c6530
JB
392020-11-15 Joel Brobecker <brobecker@adacore.com>
40
41 * utils.h (uinteger_pow): Add declaration.
42 * utils.c (uinteger_pow): Moved here (without changes)...
43 * valarith.c (uinteger_pow): ... from here.
44
b34c74ab
JB
452020-11-15 Joel Brobecker <brobecker@adacore.com>
46
47 * gmp-utils.h, gmp-utils.h: New file.
48 * unittests/gmp-utils-selftests.c: New file.
49 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
50 unittests/gmp-utils-selftests.c.
51 (COMMON_SFILES) Add gmp-utils.c.
52 (HFILES_NO_SRCDIR): Add gmp-utils.h.
53
1b4ac058
JB
542020-11-15 Joel Brobecker <brobecker@adacore.com>
55
56 * configure.ac: Generate an error if a usable GMP library
57 could not be found.
58 * configure: Regenerate.
59
2c947d9b
JB
602020-11-15 Joel Brobecker <brobecker@adacore.com>
61
62 * configure.ac: Add support for --with-libgmp-prefix.
63 * Makefile.in (LIBGMP): New variable.
64 (CLIBS): Include $(LIBGMP).
65 * configure, config.in: Regenerate
66
9dd02fc0
AB
672020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
68
69 PR cli/26879
70 * f-exp.y (COMPLETE): New token.
71 (exp): Two new rules for tab-completion.
72 (saw_name_at_eof): New static global.
73 (last_was_structop): Likewise.
74 (yylex): Set new variables, and return COMPLETE token at the end
75 of the input stream in some cases.
76
758cb810
TT
772020-11-14 Tom Tromey <tom@tromey.com>
78
79 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
80
749065b7
TT
812020-11-14 Tom Tromey <tom@tromey.com>
82
83 * opencl-lang.c (opencl_component_ref): Make "comps" const.
84
2c5b1849
SM
852020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
86
87 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
88
e8b2f0d9
TT
892020-11-13 Tom Tromey <tom@tromey.com>
90
91 * c-lang.c (convert_ucn, convert_octal, convert_hex)
92 (convert_escape, parse_one_string): Constify.
93
25f4c262
KS
942020-11-13 Keith Seitz <keiths@redhat.com>
95
96 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
97 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
98 outside of ELF segments" warning for debugin
99
9d3ab915
KS
1002020-11-13 Keith Seitz <keiths@redhat.com>
101
102 PR gdb/23034
103 * elfread.c (elf_symfile_segments): Output a BFD file name
104 for the "Loadable section ... outside of ELF segments" warning.
105
9ecab40c
SM
1062020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
107
108 PR gdb/26835
109 * arm-tdep.c (class arm_instruction_reader): New.
110 (target_arm_instruction_reader): New.
111 (arm_analyze_prologue): Add instruction reader parameter and use
112 it. Use arm_expand_immediate.
113 (class target_arm_instruction_reader): Adjust.
114 (arm_skip_prologue): Adjust.
115 (arm_expand_immediate): New.
116 (arm_scan_prologue): Adjust.
117 (arm_analyze_prologue_test): New.
118 (class test_arm_instruction_reader): New.
119
5a7cf527
AB
1202020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
121
122 * f-lang.c (fortran_argument_convert): Add declaration. Add
123 header comment, taken from f-lang.h. Make static.
124 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
125 (fortran_argument_convert): Delete declaration.
126
7bea47f0
AB
1272020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * ada-exp.y (find_primitive_type): Make parameter const.
130 * ada-lang.c (enum ada_primitive_types): Delete.
131 (ada_language::language_arch_info): Update.
132 * c-lang.c (enum c_primitive_types): Delete.
133 (c_language_arch_info): Update.
134 (enum cplus_primitive_types): Delete.
135 (cplus_language::language_arch_info): Update.
136 * d-lang.c (enum d_primitive_types): Delete.
137 (d_language::language_arch_info): Update.
138 * f-lang.c (enum f_primitive_types): Delete.
139 (f_language::language_arch_info): Update.
140 * go-lang.c (enum go_primitive_types): Delete.
141 (go_language::language_arch_info): Update.
142 * language.c (auto_or_unknown_language::language_arch_info):
143 Update.
144 (language_gdbarch_post_init): Use obstack_new, use array indexing.
145 (language_string_char_type): Add header comment, call function in
146 language_arch_info.
147 (language_bool_type): Likewise
148 (language_arch_info::bool_type): Define.
149 (language_lookup_primitive_type_1): Delete.
150 (language_lookup_primitive_type): Rewrite as a templated function
151 to call function in language_arch_info, then instantiate twice.
152 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
153 (language_arch_info::lookup_primitive_type_and_symbol): Define.
154 (language_arch_info::lookup_primitive_type): Define twice with
155 different signatures.
156 (language_arch_info::lookup_primitive_type_as_symbol): Define.
157 (language_lookup_primitive_type_as_symbol): Rewrite to call a
158 member function in language_arch_info.
159 * language.h (language_arch_info): Complete rewrite.
160 (language_lookup_primitive_type): Make templated.
161 * m2-lang.c (enum m2_primitive_types): Delete.
162 (m2_language::language_arch_info): Update.
163 * opencl-lang.c (OCL_P_TYPE): Delete.
164 (enum opencl_primitive_types): Delete.
165 (opencl_type_data): Delete.
166 (builtin_opencl_type): Delete.
167 (lookup_opencl_vector_type): Update.
168 (opencl_language::language_arch_info): Update, lots of content
169 moved from...
170 (build_opencl_types): ...here. This function is now deleted.
171 (_initialize_opencl_language): Delete.
172 * p-lang.c (enum pascal_primitive_types): Delete.
173 (pascal_language::language_arch_info): Update.
174 * rust-lang.c (enum rust_primitive_types): Delete.
175 (rust_language::language_arch_info): Update.
176
bf6e5d01
SM
1772020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
178
179 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
180 dwarf2_queue_guard.
181
1350c3b4
SM
1822020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
183
184 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
185 comment.
186
6f738b01
SM
1872020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
188
189 * dwarf2/read.c (dwarf_read_debug_printf,
190 dwarf_read_debug_printf_v): New macros, use throughout the file.
191
10c19fad
SV
1922020-11-12 Shahab Vahedi <shahab@synopsys.com>
193
194 * arc-linux-tdep.c (collect_register): Populate "eret" by
195 "pc" value from the regcache when asked for "pc" value.
196
1f2624a3
TT
1972020-11-12 Tom Tromey <tom@tromey.com>
198
199 PR rust/26799:
200 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
201 exist.
202
ab33b152
AB
2032020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
204
205 * features/Makefile (XMLTOC): Add rx.xml.
206 (FEATURE_XMLFILES): Remove rx.xml.
207 (FEATURE_CFILES rule): Pass '-single-feature' flag.
208 * features/rx.c: Regenerate.
209 * features/rx.xml: Wrap in `target` tags, and reindent.
210 * target-descriptions.c (struct maint_print_c_tdesc_options): New
211 structure.
212 (maint_print_c_tdesc_opt_def): New typedef.
213 (maint_print_c_tdesc_opt_defs): New static global.
214 (make_maint_print_c_tdesc_options_def_group): New function.
215 (maint_print_c_tdesc_cmd): Make use of command line flags, only
216 print single feature C file for target descriptions containing a
217 single feature.
218 (maint_print_c_tdesc_cmd_completer): New function.
219 (_initialize_target_descriptions): Update call to register command
220 completer, and include command line flag in help text.
221
550820e1
AB
2222020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
223
224 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
225 numbers.
226 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
227 enum values.
228
baf20f76
TT
2292020-11-10 Tom Tromey <tom@tromey.com>
230
231 * value.h (internalvar_name): Update.
232 * value.c (internalvar_name): Make return type const.
233
caaece0e
TT
2342020-11-10 Tom Tromey <tom@tromey.com>
235
236 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
237 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
238 const.
239
8e20b4be
TT
2402020-11-10 Tom Tromey <tom@tromey.com>
241
242 * objc-lang.h (value_nsstring): Update.
243 * objc-lang.c (value_nsstring): Make "ptr" const.
244
86775fab
AB
2452020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 * expprint.c (print_subexp_funcall): Increment expression position
248 after reading argument count.
249 * f-lang.c (print_subexp_f): Skip over opcode before calling
250 common function.
251 (dump_subexp_body_f): Likewise.
252
3fed4c0b
RG
2532020-11-06 Romain Geissler <romain.geissler@amadeus.com>
254
255 PR python/26832
256 * configure: Regenerate.
257 * configure.ac: Check for python modules ctypes instead of
258 itertools.
259
ac3d4064
PA
2602020-11-06 Pedro Alves <pedro@palves.net>
261
262 * macroexp.c (struct macro_buffer): Split in two classes. Add
263 uses adjusted.
264 (struct shared_macro_buffer): New, factored out from struct
265 macro_buffer.
266 (struct growable_macro_buffer): New, factored out from struct
267 macro_buffer.
268 (set_token, get_comment, get_identifier, get_pp_number)
269 (get_character_constant, get_string_literal, get_punctuator)
270 (get_next_token_for_substitution): Constify parameters.
271 (substitute_args): Constify locals.
272
606decb2
TT
2732020-11-05 Tom Tromey <tom@tromey.com>
274
275 * dwarf2/read.c (read_cutu_die_from_dwo)
276 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
277 (build_type_psymtabs_1): Update.
278 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
279 parameter.
280 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
281 Don't read section. Add assert.
282
9c91c725
TT
2832020-11-04 Tom Tromey <tromey@adacore.com>
284
285 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
286
8d9fd3a1
TT
2872020-11-04 Tom Tromey <tromey@adacore.com>
288
289 * ada-typeprint.c (ada_print_type): Handle __T types.
290
d8f62e84
TT
2912020-11-04 Tom Tromey <tromey@adacore.com>
292
293 * dwarf2/read.c (add_partial_symbol, process_die):
294 Handle DW_TAG_array_type.
295 (is_type_tag_for_partial): Add "lang" parameter.
296 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
297
7ff5b937
TT
2982020-11-04 Tom Tromey <tromey@adacore.com>
299
300 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
301
10f6a3ad
TT
3022020-11-04 Tom Tromey <tromey@adacore.com>
303
304 * dwarf2/read.c (read_array_type): Only apply stride to innermost
305 array.
306
b72795a8
TT
3072020-11-04 Tom Tromey <tromey@adacore.com>
308
309 * gdbtypes.c (update_static_array_size): Handle bit stride.
310
24aa1b02
TT
3112020-11-04 Tom Tromey <tromey@adacore.com>
312
313 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
314
c9a28cbe
TT
3152020-11-04 Tom Tromey <tromey@adacore.com>
316
317 * ada-lang.c (ada_is_any_packed_array_type): New function.
318 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
319
57567375
TT
3202020-11-04 Tom Tromey <tromey@adacore.com>
321
322 * dwarf2/read.c (recognize_bound_expression)
323 (quirk_ada_thick_pointer): New functions.
324 (read_array_type): Call quirk_ada_thick_pointer.
325 (set_die_type): Add "skip_data_location" parameter.
326 (quirk_ada_thick_pointer): New function.
327 (process_structure_scope): Call quirk_ada_thick_pointer.
328 * ada-lang.c (ada_is_unconstrained_packed_array_type)
329 (decode_packed_array_bitsize): Handle thick pointers without
330 parallel types.
331 (ada_is_gnat_encoded_packed_array_type): Rename from
332 ada_is_packed_array_type.
333 (ada_is_constrained_packed_array_type): Update.
334 * ada-valprint.c (ada_val_print_gnat_array): Remove.
335 (ada_value_print_1): Use ada_get_decoded_value.
336
a7400e44
TT
3372020-11-04 Tom Tromey <tromey@adacore.com>
338
339 * ada-lang.c (recursively_update_array_bitsize): New function.
340 (decode_constrained_packed_array_type): Call it.
341
75fd6a26
TT
3422020-11-04 Tom Tromey <tromey@adacore.com>
343
344 * ada-lang.c (to_fixed_array_type): Error if
345 decode_constrained_packed_array_type returns NULL.
346
93f9561e
TT
3472020-11-04 Tom Tromey <tromey@adacore.com>
348
349 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
350
257e02d8
TT
3512020-11-02 Tom Tromey <tromey@adacore.com>
352
353 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
354 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
355 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
356 * amd64-ravenscar-thread.c: New file.
357 * amd64-ravenscar-thread.h: New file.
358 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
359 * configure.tgt (amd64_tobjs): Add ravenscar objects.
360
74d877e5
AB
3612020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
362
363 * main.c (execute_cmdargs): New function.
364 (captured_main_1): Make use of execute_cmdargs.
365
64aaad63
AB
3662020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
367
368 * NEWS: Mention changes to config file search path.
369 * main.c
370
5b3d3560
TT
3712020-11-02 Tom Tromey <tromey@adacore.com>
372
373 * python/python.c: Consolidate two HAVE_PYTHON blocks.
374 (python_GdbModuleDef): Move earlier. Now static.
375 (do_start_initialization): Consolidate some IS_PY3K blocks.
376
dda83cd7
SM
3772020-11-02 Simon Marchi <simon.marchi@efficios.com>
378
379 * aarch64-linux-tdep.c: Fix indentation.
380 * aarch64-ravenscar-thread.c: Fix indentation.
381 * aarch64-tdep.c: Fix indentation.
382 * aarch64-tdep.h: Fix indentation.
383 * ada-lang.c: Fix indentation.
384 * ada-lang.h: Fix indentation.
385 * ada-tasks.c: Fix indentation.
386 * ada-typeprint.c: Fix indentation.
387 * ada-valprint.c: Fix indentation.
388 * ada-varobj.c: Fix indentation.
389 * addrmap.c: Fix indentation.
390 * addrmap.h: Fix indentation.
391 * agent.c: Fix indentation.
392 * aix-thread.c: Fix indentation.
393 * alpha-bsd-nat.c: Fix indentation.
394 * alpha-linux-tdep.c: Fix indentation.
395 * alpha-mdebug-tdep.c: Fix indentation.
396 * alpha-nbsd-tdep.c: Fix indentation.
397 * alpha-obsd-tdep.c: Fix indentation.
398 * alpha-tdep.c: Fix indentation.
399 * amd64-bsd-nat.c: Fix indentation.
400 * amd64-darwin-tdep.c: Fix indentation.
401 * amd64-linux-nat.c: Fix indentation.
402 * amd64-linux-tdep.c: Fix indentation.
403 * amd64-nat.c: Fix indentation.
404 * amd64-obsd-tdep.c: Fix indentation.
405 * amd64-tdep.c: Fix indentation.
406 * amd64-windows-tdep.c: Fix indentation.
407 * annotate.c: Fix indentation.
408 * arc-tdep.c: Fix indentation.
409 * arch-utils.c: Fix indentation.
410 * arch/arm-get-next-pcs.c: Fix indentation.
411 * arch/arm.c: Fix indentation.
412 * arm-linux-nat.c: Fix indentation.
413 * arm-linux-tdep.c: Fix indentation.
414 * arm-nbsd-tdep.c: Fix indentation.
415 * arm-pikeos-tdep.c: Fix indentation.
416 * arm-tdep.c: Fix indentation.
417 * arm-tdep.h: Fix indentation.
418 * arm-wince-tdep.c: Fix indentation.
419 * auto-load.c: Fix indentation.
420 * auxv.c: Fix indentation.
421 * avr-tdep.c: Fix indentation.
422 * ax-gdb.c: Fix indentation.
423 * ax-general.c: Fix indentation.
424 * bfin-linux-tdep.c: Fix indentation.
425 * block.c: Fix indentation.
426 * block.h: Fix indentation.
427 * blockframe.c: Fix indentation.
428 * bpf-tdep.c: Fix indentation.
429 * break-catch-sig.c: Fix indentation.
430 * break-catch-syscall.c: Fix indentation.
431 * break-catch-throw.c: Fix indentation.
432 * breakpoint.c: Fix indentation.
433 * breakpoint.h: Fix indentation.
434 * bsd-uthread.c: Fix indentation.
435 * btrace.c: Fix indentation.
436 * build-id.c: Fix indentation.
437 * buildsym-legacy.h: Fix indentation.
438 * buildsym.c: Fix indentation.
439 * c-typeprint.c: Fix indentation.
440 * c-valprint.c: Fix indentation.
441 * c-varobj.c: Fix indentation.
442 * charset.c: Fix indentation.
443 * cli/cli-cmds.c: Fix indentation.
444 * cli/cli-decode.c: Fix indentation.
445 * cli/cli-decode.h: Fix indentation.
446 * cli/cli-script.c: Fix indentation.
447 * cli/cli-setshow.c: Fix indentation.
448 * coff-pe-read.c: Fix indentation.
449 * coffread.c: Fix indentation.
450 * compile/compile-cplus-types.c: Fix indentation.
451 * compile/compile-object-load.c: Fix indentation.
452 * compile/compile-object-run.c: Fix indentation.
453 * completer.c: Fix indentation.
454 * corefile.c: Fix indentation.
455 * corelow.c: Fix indentation.
456 * cp-abi.h: Fix indentation.
457 * cp-namespace.c: Fix indentation.
458 * cp-support.c: Fix indentation.
459 * cp-valprint.c: Fix indentation.
460 * cris-linux-tdep.c: Fix indentation.
461 * cris-tdep.c: Fix indentation.
462 * darwin-nat-info.c: Fix indentation.
463 * darwin-nat.c: Fix indentation.
464 * darwin-nat.h: Fix indentation.
465 * dbxread.c: Fix indentation.
466 * dcache.c: Fix indentation.
467 * disasm.c: Fix indentation.
468 * dtrace-probe.c: Fix indentation.
469 * dwarf2/abbrev.c: Fix indentation.
470 * dwarf2/attribute.c: Fix indentation.
471 * dwarf2/expr.c: Fix indentation.
472 * dwarf2/frame.c: Fix indentation.
473 * dwarf2/index-cache.c: Fix indentation.
474 * dwarf2/index-write.c: Fix indentation.
475 * dwarf2/line-header.c: Fix indentation.
476 * dwarf2/loc.c: Fix indentation.
477 * dwarf2/macro.c: Fix indentation.
478 * dwarf2/read.c: Fix indentation.
479 * dwarf2/read.h: Fix indentation.
480 * elfread.c: Fix indentation.
481 * eval.c: Fix indentation.
482 * event-top.c: Fix indentation.
483 * exec.c: Fix indentation.
484 * exec.h: Fix indentation.
485 * expprint.c: Fix indentation.
486 * f-lang.c: Fix indentation.
487 * f-typeprint.c: Fix indentation.
488 * f-valprint.c: Fix indentation.
489 * fbsd-nat.c: Fix indentation.
490 * fbsd-tdep.c: Fix indentation.
491 * findvar.c: Fix indentation.
492 * fork-child.c: Fix indentation.
493 * frame-unwind.c: Fix indentation.
494 * frame-unwind.h: Fix indentation.
495 * frame.c: Fix indentation.
496 * frv-linux-tdep.c: Fix indentation.
497 * frv-tdep.c: Fix indentation.
498 * frv-tdep.h: Fix indentation.
499 * ft32-tdep.c: Fix indentation.
500 * gcore.c: Fix indentation.
501 * gdb_bfd.c: Fix indentation.
502 * gdbarch.sh: Fix indentation.
503 * gdbarch.c: Re-generate
504 * gdbarch.h: Re-generate.
505 * gdbcore.h: Fix indentation.
506 * gdbthread.h: Fix indentation.
507 * gdbtypes.c: Fix indentation.
508 * gdbtypes.h: Fix indentation.
509 * glibc-tdep.c: Fix indentation.
510 * gnu-nat.c: Fix indentation.
511 * gnu-nat.h: Fix indentation.
512 * gnu-v2-abi.c: Fix indentation.
513 * gnu-v3-abi.c: Fix indentation.
514 * go32-nat.c: Fix indentation.
515 * guile/guile-internal.h: Fix indentation.
516 * guile/scm-cmd.c: Fix indentation.
517 * guile/scm-frame.c: Fix indentation.
518 * guile/scm-iterator.c: Fix indentation.
519 * guile/scm-math.c: Fix indentation.
520 * guile/scm-ports.c: Fix indentation.
521 * guile/scm-pretty-print.c: Fix indentation.
522 * guile/scm-value.c: Fix indentation.
523 * h8300-tdep.c: Fix indentation.
524 * hppa-linux-nat.c: Fix indentation.
525 * hppa-linux-tdep.c: Fix indentation.
526 * hppa-nbsd-nat.c: Fix indentation.
527 * hppa-nbsd-tdep.c: Fix indentation.
528 * hppa-obsd-nat.c: Fix indentation.
529 * hppa-tdep.c: Fix indentation.
530 * hppa-tdep.h: Fix indentation.
531 * i386-bsd-nat.c: Fix indentation.
532 * i386-darwin-nat.c: Fix indentation.
533 * i386-darwin-tdep.c: Fix indentation.
534 * i386-dicos-tdep.c: Fix indentation.
535 * i386-gnu-nat.c: Fix indentation.
536 * i386-linux-nat.c: Fix indentation.
537 * i386-linux-tdep.c: Fix indentation.
538 * i386-nto-tdep.c: Fix indentation.
539 * i386-obsd-tdep.c: Fix indentation.
540 * i386-sol2-nat.c: Fix indentation.
541 * i386-tdep.c: Fix indentation.
542 * i386-tdep.h: Fix indentation.
543 * i386-windows-tdep.c: Fix indentation.
544 * i387-tdep.c: Fix indentation.
545 * i387-tdep.h: Fix indentation.
546 * ia64-libunwind-tdep.c: Fix indentation.
547 * ia64-libunwind-tdep.h: Fix indentation.
548 * ia64-linux-nat.c: Fix indentation.
549 * ia64-linux-tdep.c: Fix indentation.
550 * ia64-tdep.c: Fix indentation.
551 * ia64-tdep.h: Fix indentation.
552 * ia64-vms-tdep.c: Fix indentation.
553 * infcall.c: Fix indentation.
554 * infcmd.c: Fix indentation.
555 * inferior.c: Fix indentation.
556 * infrun.c: Fix indentation.
557 * iq2000-tdep.c: Fix indentation.
558 * language.c: Fix indentation.
559 * linespec.c: Fix indentation.
560 * linux-fork.c: Fix indentation.
561 * linux-nat.c: Fix indentation.
562 * linux-tdep.c: Fix indentation.
563 * linux-thread-db.c: Fix indentation.
564 * lm32-tdep.c: Fix indentation.
565 * m2-lang.c: Fix indentation.
566 * m2-typeprint.c: Fix indentation.
567 * m2-valprint.c: Fix indentation.
568 * m32c-tdep.c: Fix indentation.
569 * m32r-linux-tdep.c: Fix indentation.
570 * m32r-tdep.c: Fix indentation.
571 * m68hc11-tdep.c: Fix indentation.
572 * m68k-bsd-nat.c: Fix indentation.
573 * m68k-linux-nat.c: Fix indentation.
574 * m68k-linux-tdep.c: Fix indentation.
575 * m68k-tdep.c: Fix indentation.
576 * machoread.c: Fix indentation.
577 * macrocmd.c: Fix indentation.
578 * macroexp.c: Fix indentation.
579 * macroscope.c: Fix indentation.
580 * macrotab.c: Fix indentation.
581 * macrotab.h: Fix indentation.
582 * main.c: Fix indentation.
583 * mdebugread.c: Fix indentation.
584 * mep-tdep.c: Fix indentation.
585 * mi/mi-cmd-catch.c: Fix indentation.
586 * mi/mi-cmd-disas.c: Fix indentation.
587 * mi/mi-cmd-env.c: Fix indentation.
588 * mi/mi-cmd-stack.c: Fix indentation.
589 * mi/mi-cmd-var.c: Fix indentation.
590 * mi/mi-cmds.c: Fix indentation.
591 * mi/mi-main.c: Fix indentation.
592 * mi/mi-parse.c: Fix indentation.
593 * microblaze-tdep.c: Fix indentation.
594 * minidebug.c: Fix indentation.
595 * minsyms.c: Fix indentation.
596 * mips-linux-nat.c: Fix indentation.
597 * mips-linux-tdep.c: Fix indentation.
598 * mips-nbsd-tdep.c: Fix indentation.
599 * mips-tdep.c: Fix indentation.
600 * mn10300-linux-tdep.c: Fix indentation.
601 * mn10300-tdep.c: Fix indentation.
602 * moxie-tdep.c: Fix indentation.
603 * msp430-tdep.c: Fix indentation.
604 * namespace.h: Fix indentation.
605 * nat/fork-inferior.c: Fix indentation.
606 * nat/gdb_ptrace.h: Fix indentation.
607 * nat/linux-namespaces.c: Fix indentation.
608 * nat/linux-osdata.c: Fix indentation.
609 * nat/netbsd-nat.c: Fix indentation.
610 * nat/x86-dregs.c: Fix indentation.
611 * nbsd-nat.c: Fix indentation.
612 * nbsd-tdep.c: Fix indentation.
613 * nios2-linux-tdep.c: Fix indentation.
614 * nios2-tdep.c: Fix indentation.
615 * nto-procfs.c: Fix indentation.
616 * nto-tdep.c: Fix indentation.
617 * objfiles.c: Fix indentation.
618 * objfiles.h: Fix indentation.
619 * opencl-lang.c: Fix indentation.
620 * or1k-tdep.c: Fix indentation.
621 * osabi.c: Fix indentation.
622 * osabi.h: Fix indentation.
623 * osdata.c: Fix indentation.
624 * p-lang.c: Fix indentation.
625 * p-typeprint.c: Fix indentation.
626 * p-valprint.c: Fix indentation.
627 * parse.c: Fix indentation.
628 * ppc-linux-nat.c: Fix indentation.
629 * ppc-linux-tdep.c: Fix indentation.
630 * ppc-nbsd-nat.c: Fix indentation.
631 * ppc-nbsd-tdep.c: Fix indentation.
632 * ppc-obsd-nat.c: Fix indentation.
633 * ppc-ravenscar-thread.c: Fix indentation.
634 * ppc-sysv-tdep.c: Fix indentation.
635 * ppc64-tdep.c: Fix indentation.
636 * printcmd.c: Fix indentation.
637 * proc-api.c: Fix indentation.
638 * producer.c: Fix indentation.
639 * producer.h: Fix indentation.
640 * prologue-value.c: Fix indentation.
641 * prologue-value.h: Fix indentation.
642 * psymtab.c: Fix indentation.
643 * python/py-arch.c: Fix indentation.
644 * python/py-bpevent.c: Fix indentation.
645 * python/py-event.c: Fix indentation.
646 * python/py-event.h: Fix indentation.
647 * python/py-finishbreakpoint.c: Fix indentation.
648 * python/py-frame.c: Fix indentation.
649 * python/py-framefilter.c: Fix indentation.
650 * python/py-inferior.c: Fix indentation.
651 * python/py-infthread.c: Fix indentation.
652 * python/py-objfile.c: Fix indentation.
653 * python/py-prettyprint.c: Fix indentation.
654 * python/py-registers.c: Fix indentation.
655 * python/py-signalevent.c: Fix indentation.
656 * python/py-stopevent.c: Fix indentation.
657 * python/py-stopevent.h: Fix indentation.
658 * python/py-threadevent.c: Fix indentation.
659 * python/py-tui.c: Fix indentation.
660 * python/py-unwind.c: Fix indentation.
661 * python/py-value.c: Fix indentation.
662 * python/py-xmethods.c: Fix indentation.
663 * python/python-internal.h: Fix indentation.
664 * python/python.c: Fix indentation.
665 * ravenscar-thread.c: Fix indentation.
666 * record-btrace.c: Fix indentation.
667 * record-full.c: Fix indentation.
668 * record.c: Fix indentation.
669 * reggroups.c: Fix indentation.
670 * regset.h: Fix indentation.
671 * remote-fileio.c: Fix indentation.
672 * remote.c: Fix indentation.
673 * reverse.c: Fix indentation.
674 * riscv-linux-tdep.c: Fix indentation.
675 * riscv-ravenscar-thread.c: Fix indentation.
676 * riscv-tdep.c: Fix indentation.
677 * rl78-tdep.c: Fix indentation.
678 * rs6000-aix-tdep.c: Fix indentation.
679 * rs6000-lynx178-tdep.c: Fix indentation.
680 * rs6000-nat.c: Fix indentation.
681 * rs6000-tdep.c: Fix indentation.
682 * rust-lang.c: Fix indentation.
683 * rx-tdep.c: Fix indentation.
684 * s12z-tdep.c: Fix indentation.
685 * s390-linux-tdep.c: Fix indentation.
686 * score-tdep.c: Fix indentation.
687 * ser-base.c: Fix indentation.
688 * ser-mingw.c: Fix indentation.
689 * ser-uds.c: Fix indentation.
690 * ser-unix.c: Fix indentation.
691 * serial.c: Fix indentation.
692 * sh-linux-tdep.c: Fix indentation.
693 * sh-nbsd-tdep.c: Fix indentation.
694 * sh-tdep.c: Fix indentation.
695 * skip.c: Fix indentation.
696 * sol-thread.c: Fix indentation.
697 * solib-aix.c: Fix indentation.
698 * solib-darwin.c: Fix indentation.
699 * solib-frv.c: Fix indentation.
700 * solib-svr4.c: Fix indentation.
701 * solib.c: Fix indentation.
702 * source.c: Fix indentation.
703 * sparc-linux-tdep.c: Fix indentation.
704 * sparc-nbsd-tdep.c: Fix indentation.
705 * sparc-obsd-tdep.c: Fix indentation.
706 * sparc-ravenscar-thread.c: Fix indentation.
707 * sparc-tdep.c: Fix indentation.
708 * sparc64-linux-tdep.c: Fix indentation.
709 * sparc64-nbsd-tdep.c: Fix indentation.
710 * sparc64-obsd-tdep.c: Fix indentation.
711 * sparc64-tdep.c: Fix indentation.
712 * stabsread.c: Fix indentation.
713 * stack.c: Fix indentation.
714 * stap-probe.c: Fix indentation.
715 * stubs/ia64vms-stub.c: Fix indentation.
716 * stubs/m32r-stub.c: Fix indentation.
717 * stubs/m68k-stub.c: Fix indentation.
718 * stubs/sh-stub.c: Fix indentation.
719 * stubs/sparc-stub.c: Fix indentation.
720 * symfile-mem.c: Fix indentation.
721 * symfile.c: Fix indentation.
722 * symfile.h: Fix indentation.
723 * symmisc.c: Fix indentation.
724 * symtab.c: Fix indentation.
725 * symtab.h: Fix indentation.
726 * target-float.c: Fix indentation.
727 * target.c: Fix indentation.
728 * target.h: Fix indentation.
729 * tic6x-tdep.c: Fix indentation.
730 * tilegx-linux-tdep.c: Fix indentation.
731 * tilegx-tdep.c: Fix indentation.
732 * top.c: Fix indentation.
733 * tracefile-tfile.c: Fix indentation.
734 * tracepoint.c: Fix indentation.
735 * tui/tui-disasm.c: Fix indentation.
736 * tui/tui-io.c: Fix indentation.
737 * tui/tui-regs.c: Fix indentation.
738 * tui/tui-stack.c: Fix indentation.
739 * tui/tui-win.c: Fix indentation.
740 * tui/tui-winsource.c: Fix indentation.
741 * tui/tui.c: Fix indentation.
742 * typeprint.c: Fix indentation.
743 * ui-out.h: Fix indentation.
744 * unittests/copy_bitwise-selftests.c: Fix indentation.
745 * unittests/memory-map-selftests.c: Fix indentation.
746 * utils.c: Fix indentation.
747 * v850-tdep.c: Fix indentation.
748 * valarith.c: Fix indentation.
749 * valops.c: Fix indentation.
750 * valprint.c: Fix indentation.
751 * valprint.h: Fix indentation.
752 * value.c: Fix indentation.
753 * value.h: Fix indentation.
754 * varobj.c: Fix indentation.
755 * vax-tdep.c: Fix indentation.
756 * windows-nat.c: Fix indentation.
757 * windows-tdep.c: Fix indentation.
758 * xcoffread.c: Fix indentation.
759 * xml-syscall.c: Fix indentation.
760 * xml-tdesc.c: Fix indentation.
761 * xstormy16-tdep.c: Fix indentation.
762 * xtensa-config.c: Fix indentation.
763 * xtensa-linux-nat.c: Fix indentation.
764 * xtensa-linux-tdep.c: Fix indentation.
765 * xtensa-tdep.c: Fix indentation.
766
e1f57067
AB
7672020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
768 Craig Blackmore <craig.blackmore@embecosm.com>
769
770 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
771 as an unsigned value.
772
ae7754b2
TT
7732020-11-01 Tom Tromey <tom@tromey.com>
774
775 * dbxread.c (dbx_end_psymtab): Update.
776 * dwarf2/read.c (process_psymtab_comp_unit_reader)
777 (build_type_psymtabs_reader): Update.
778 * xcoffread.c (xcoff_end_psymtab): Update.
779 * ctfread.c (scan_partial_symbols): Update.
780 * psymtab.c (sort_pst_symbols): Remove.
781 (partial_symtab::end): Rename from end_psymtab_common. Inline
782 sort_pst_symbols.
783 * psympriv.h (struct partial_symtab) <end>: New method.
784 (end_psymtab_common): Don't declare.
785
0684bb51
TT
7862020-11-01 Tom Tromey <tom@tromey.com>
787
788 * symmisc.c (count_psyms): New function.
789 (print_objfile_statistics): Use it.
790 * psymtab.c (append_psymbol_to_list): Remove.
791 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
792 * objfiles.h (struct objstats) <n_psyms>: Remove.
793
089002bb
TT
7942020-11-01 Tom Tromey <tom@tromey.com>
795
796 * dbxread.c (dbx_end_psymtab): Update.
797 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
798 (build_type_psymtabs_reader): Update.
799 * xcoffread.c (xcoff_end_psymtab): Update.
800 * ctfread.c (scan_partial_symbols): Update.
801 * psympriv.h (end_psymtab_common): Update.
802 * psymtab.c (end_psymtab_common): Remove objfile parameter.
803 (sort_pst_symbols): Likewise.
804
525454d6
TT
8052020-11-01 Tom Tromey <tom@tromey.com>
806
807 * dbxread.c (dbx_symfile_read): Update.
808 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
809 * xcoffread.c (xcoff_initial_scan): Update.
810 * psympriv.h (init_psymbol_list): Don't declare.
811 * psymtab.c (init_psymbol_list): Remove.
812
60bd1d53
JB
8132020-11-01 Joel Brobecker <brobecker@adacore.com>
814
815 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
816 gnat_encoded_fixed_type_info. Update all callers.
817
db99d0d0
JB
8182020-11-01 Joel Brobecker <brobecker@adacore.com>
819
820 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
821 line too long.
822
75f24e86
JB
8232020-11-01 Joel Brobecker <brobecker@adacore.com>
824
825 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
826 cast_from_fixed. Update all callers.
827 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
828 Update all callers.
829 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
830 Update all callers.
831 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
832 ada_scaling_factor.
833 * ada-typeprint.c: Replace call to ada_scaling_factor by call
834 to print_gnat_encoded_fixed_point_type.
835 * ada-valprint.c: Likewise.
836
4f0469cd
AB
8372020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
838
839 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
840 (debug_prefixed_printf): Add check of debug_displaced flag.
841 * linux-nat.c (linux_nat_debug_printf): Add check of
842 debug_linux_nat flag.
843
17417fb0
SM
8442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
845
846 * infrun.c (infrun_debug_printf_1): Remove.
847 (displaced_debug_printf_1): Remove.
848 (stop_all_threads): Use debug_prefixed_printf.
849 * infrun.h (infrun_debug_printf_1): Remove.
850 (infrun_debug_printf): Use debug_prefixed_printf.
851 (displaced_debug_printf_1): Remove.
852 (displaced_debug_printf): Use debug_prefixed_printf.
853 * linux-nat.c (linux_nat_debug_printf_1): Remove.
854 (linux_nat_debug_printf): Use debug_prefixed_printf.
855
ad6dba1c
SM
8562020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
857
858 * configure: Re-generate.
859 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
860 AC_LANG_PROGRAM.
861
b6fb30ed
SM
8622020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
863
864 * configure: Re-generate.
865
5164c117
SM
8662020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
867
868 * configure: Re-generate.
869
864ca435
SM
8702020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
871
872 * configure: Re-generate.
873
b9442ec1
SM
8742020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
875
876 * configure: Re-generate.
877
294f2697
SM
8782020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
879
880 * acinclude.m4: Modernize.
881 * configure: Re-generate.
882
5593a99a
SM
8832020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
884
885 * configure.ac: Modernize.
886 * configure: Re-generate.
887
e41fda1d
SM
8882020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
889
890 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
891 * configure: Re-generate.
892 * configure.ac: Remove AM_PROG_CC_STDC.
893
91e1a0ed
SM
8942020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
895
896 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
897 AC_CANONICAL_SYSTEM.
898 * configure: Re-generate.
899
136821d9
SM
9002020-10-30 Simon Marchi <simon.marchi@efficios.com>
901
902 * infrun.h (displaced_debug_printf): New macro. Replace
903 displaced debug prints throughout to use it.
904 (displaced_debug_printf_1): New declaration.
905 (displaced_step_dump_bytes): Return string, remove ui_file
906 parameter, update all callers.
907 * infrun.c (displaced_debug_printf_1): New function.
908 (displaced_step_dump_bytes): Return string, remove ui_file
909 parameter
910
aa2045e7
SM
9112020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
912
913 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
914
b1ec2735
TT
9152020-10-30 Tom Tromey <tromey@adacore.com>
916
917 * Makefile.in (stamp-init): Depend on config.status.
918
b78b3a29
TBA
9192020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
920
921 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
922
d70bdd3c
PA
9232020-10-30 Pedro Alves <pedro@palves.net>
924
925 * thread.c (lookup_selected_frame): Move ...
926 * frame.c (lookup_selected_frame): ... here.
927
79952e69
PA
9282020-10-30 Pedro Alves <pedro@palves.net>
929
930 * blockframe.c (block_innermost_frame): Use get_selected_frame.
931 * frame.c
932 (scoped_restore_selected_frame::scoped_restore_selected_frame):
933 Use save_selected_frame. Save language as well.
934 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
935 Use restore_selected_frame, and restore language as well.
936 (selected_frame_id, selected_frame_level): New.
937 (selected_frame): Update comments.
938 (save_selected_frame, restore_selected_frame): New.
939 (get_selected_frame): Use lookup_selected_frame.
940 (get_selected_frame_if_set): Delete.
941 (select_frame): Record selected_frame_level and selected_frame_id.
942 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
943 fields.
944 (get_selected_frame): Make 'message' parameter optional.
945 (get_selected_frame_if_set): Delete declaration.
946 (select_frame): Update comments.
947 (save_selected_frame, restore_selected_frame)
948 (lookup_selected_frame): Declare.
949 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
950 * infrun.c (struct infcall_control_state) <selected_frame_level>:
951 New field.
952 (save_infcall_control_state): Use save_selected_frame.
953 (restore_selected_frame): Delete.
954 (restore_infcall_control_state): Use restore_selected_frame.
955 * stack.c (select_frame_command_core, frame_command_core): Use
956 get_selected_frame.
957 * thread.c (restore_selected_frame): Rename to ...
958 (lookup_selected_frame): ... this and make extern. Select the
959 current frame if the frame level is -1.
960 (scoped_restore_current_thread::restore): Also restore the
961 language.
962 (scoped_restore_current_thread::~scoped_restore_current_thread):
963 Don't try/catch.
964 (scoped_restore_current_thread::scoped_restore_current_thread):
965 Save the language as well. Use save_selected_frame.
966
58103c33
SM
9672020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
968
969 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
970 documentation.
971 * gdbarch.h: Re-generate.
972
40a53766
SM
9732020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
974
975 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
976 parameter.
977 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
978 Likewise.
979 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
980 Likewise.
981 * arch-utils.c (default_displaced_step_hw_singlestep):
982 Likewise.
983 * arch-utils.h (default_displaced_step_hw_singlestep):
984 Likewise.
985 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
986 Likewise.
987 * s390-tdep.c (s390_displaced_step_hw_singlestep):
988 Likewise.
989 * gdbarch.c: Re-generate.
990 * gdbarch.h: Re-generate.
991 * infrun.c (resume_1): Adjust.
992
8407f91b
TT
9932020-10-29 Tom Tromey <tom@tromey.com>
994
995 * progspace.c (program_space::~program_space): Don't call
996 exec_close.
997
5008b3b2
TT
9982020-10-29 Tom Tromey <tom@tromey.com>
999
1000 * exec.c (exec_target::close): Don't change current program
1001 space.
1002
d9eebde0
TT
10032020-10-29 Tom Tromey <tom@tromey.com>
1004
1005 * symfile.c (add_symbol_file_command): Update.
1006 * exec.c (program_space::add_target_sections): Rename.
1007 * symfile-mem.c (symbol_file_add_from_memory): Update.
1008 * progspace.h (struct program_space) <add_target_sections>:
1009 Declare new overload.
1010 * exec.h (add_target_sections_of_objfile): Don't declare.
1011
3769e227
TT
10122020-10-29 Tom Tromey <tom@tromey.com>
1013
1014 * solib.c (solib_map_sections): Update.
1015 * exec.c (program_space::add_target_sections): Now a method.
1016 (exec_file_attach): Update.
1017 * exec.h (add_target_sections): Don't declare.
1018 * progspace.h (struct program_space) <add_target_sections>:
1019 Declare.
1020
2a3f84af
TT
10212020-10-29 Tom Tromey <tom@tromey.com>
1022
1023 * progspace.h (struct program_space) <remove_target_sections>:
1024 Declare.
1025 * exec.c (program_space::remove_target_sections): Now a method.
1026 * exec.h (remove_target_sections): Don't declare.
1027
004eecfd
TT
10282020-10-29 Tom Tromey <tom@tromey.com>
1029
1030 * inferior.c (delete_inferior): Update.
1031 * progspace.c (program_space::empty): Rename from
1032 program_space_empty_p. Return bool.
1033 * progspace.h (struct program_space) <empty>: New method.
1034 (program_space_empty_p): Don't declare.
1035
e39fb971
TT
10362020-10-29 Tom Tromey <tom@tromey.com>
1037
1038 * progspace.c (program_space::~program_space): Don't call
1039 clear_program_space_solib_cache.
1040 (program_space::clear_solib_cache): Rename from
1041 clear_solib_cache.
1042 * solib.c (handle_solib_event): Update.
1043 * progspace.h (struct program_space) <clear_solib_cache>: New
1044 method.
1045 (clear_program_space_solib_cache): Don't declare.
1046
a42d7dd8
TT
10472020-10-29 Tom Tromey <tom@tromey.com>
1048
1049 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1050 * target.c (info_target_command): Update.
1051 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1052 (symbol_file_clear, reread_symbols): Update.
1053 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1054 * stabsread.c (scan_file_globals): Update.
1055 * solib.c (update_solib_list): Update.
1056 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1057 (svr4_fetch_objfile_link_map, enable_break)
1058 (svr4_relocate_main_executable)
1059 (svr4_iterate_over_objfiles_in_search_order): Update.
1060 * solib-frv.c (lm_base, enable_break)
1061 (frv_relocate_main_executable): Update.
1062 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1063 (frv_fetch_objfile_link_map): Update.
1064 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1065 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1066 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1067 * remote.c (remote_target::get_offsets): Update.
1068 (remote_target::start_remote)
1069 (extended_remote_target::post_attach): Update.
1070 * objfiles.c (entry_point_address_query): Update.
1071 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1072 * minsyms.c (get_symbol_leading_char): Update.
1073 * frame.c (inside_main_func): Update.
1074 * progspace.h (symfile_objfile): Remove macro.
1075
19f6550e
TT
10762020-10-29 Tom Tromey <tom@tromey.com>
1077
1078 * exec.c (exec_file_attach): Update.
1079 * progspace.c (program_space::exec_close): Update.
1080 * progspace.h (struct program_space) <ebfd>: Now a
1081 gdb_bfd_ref_ptr.
1082 <set_exec_bfd>: Change argument type.
1083 <exec_bfd>: Update.
1084
7e10abd1
TT
10852020-10-29 Tom Tromey <tom@tromey.com>
1086
1087 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1088 * symfile.c (reread_symbols): Update.
1089 * symfile-mem.c (add_symbol_file_from_memory_command)
1090 (add_vsyscall_page): Update.
1091 * source-cache.c (source_cache::get_plain_source_lines): Update.
1092 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1093 (svr4_current_sos_direct, svr4_exec_displacement)
1094 (svr4_relocate_main_executable): Update.
1095 (svr4_iterate_over_objfiles_in_search_order): Update.
1096 * solib-frv.c (enable_break2, enable_break): Update.
1097 * solib-dsbt.c (lm_base, enable_break): Update.
1098 * solib-darwin.c (find_program_interpreter)
1099 (darwin_solib_create_inferior_hook): Update.
1100 * sol-thread.c (rw_common, ps_pdmodel): Update.
1101 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1102 * remote.c (compare_sections_command)
1103 (remote_target::trace_set_readonly_regions): Update.
1104 * remote-sim.c (get_sim_inferior_data)
1105 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1106 (gdbsim_target_open, gdbsim_target::files_info): Update.
1107 * exec.h (exec_bfd): Remove macro.
1108 * progspace.c (initialize_progspace): Update.
1109 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1110 Update.
1111 * nto-procfs.c (nto_procfs_target::post_attach)
1112 (nto_procfs_target::create_inferior): Update.
1113 * maint.c (maintenance_info_sections): Update.
1114 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1115 Update.
1116 * infcmd.c (post_create_inferior): Update.
1117 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1118 (objfile_find_memory_regions): Update.
1119 * exec.c (validate_exec_file, exec_file_attach)
1120 (exec_read_partial_read_only, print_section_info): Update.
1121 * corelow.c (core_target_open): Update.
1122 * corefile.c (reopen_exec_file, validate_files): Update.
1123 * arm-tdep.c (gdb_print_insn_arm): Update.
1124 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1125 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1126 methods.
1127
b55221ab
TT
11282020-10-29 Tom Tromey <tom@tromey.com>
1129
1130 * progspace.h (current_target_sections): Remove macro.
1131 * solib-svr4.c (scan_dyntag): Update.
1132 * solib-dsbt.c (scan_dyntag): Update.
1133 * exec.c (exec_target::close): Update.
1134 (add_target_sections, add_target_sections_of_objfile)
1135 (remove_target_sections, exec_target::get_section_table)
1136 (exec_target::files_info, set_section_command)
1137 (exec_set_section_address, exec_target::has_memory)
1138 (exec_target::has_memory): Update.
1139
5a36e715
TT
11402020-10-29 Tom Tromey <tom@tromey.com>
1141
1142 * source-cache.c (source_cache::get_plain_source_lines): Use
1143 current_program_space.
1144 * corefile.c (reopen_exec_file): Use current_program_space.
1145 * exec.c (exec_file_attach): Use current_program_space.
1146 * exec.h (exec_bfd_mtime): Remove.
1147
784c8592
TT
11482020-10-29 Tom Tromey <tom@tromey.com>
1149
1150 * gcore.c (default_gcore_mach): Remove.
1151 (create_gcore_bfd): Update.
1152
8a4f1402
TT
11532020-10-29 Tom Tromey <tom@tromey.com>
1154
1155 * progspace.c (program_space::exec_close): New method, from
1156 exec_close in exec.c.
1157 * exec.c (exec_close): Move to progspace.c.
1158 (exec_target::close, exec_file_attach): Update.
1159 * progspace.h (struct program_space) <exec_close>: Declare
1160 method.
1161
c20cb686
TT
11622020-10-29 Tom Tromey <tom@tromey.com>
1163
1164 * progspace.h (struct program_space) <exec_filename>: Rename from
1165 pspace_exec_filename. Now a unique_xmalloc_ptr.
1166 * inferior.c (print_selected_inferior): Update.
1167 (print_inferior): Update.
1168 * mi/mi-main.c (print_one_inferior): Update.
1169 * exec.h (exec_filename): Remove macro.
1170 * corefile.c (get_exec_file): Update.
1171 * exec.c (exec_close): Update.
1172 (exec_file_attach): Update.
1173 * progspace.c (clone_program_space): Update.
1174 (print_program_space): Update.
1175
6be2a9ab
TT
11762020-10-29 Tom Tromey <tom@tromey.com>
1177
1178 * target-section.h (struct target_section): Add constructor.
1179 * exec.c (build_section_table, add_target_sections_of_objfile):
1180 Update.
1181 * corelow.c (core_target::build_file_mappings): Update.
1182
cfaa8f76
TBA
11832020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1184
1185 PR gdb/19318
1186 * inferior.c (detach_inferior_command): Restore the current thread.
1187 (kill_inferior_command): Ditto.
1188
1b00ef06
TV
11892020-10-28 Tom de Vries <tdevries@suse.de>
1190
1191 PR symtab/26772
1192 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1193 map, check it in the "best match" loop.
1194
7f40ce1a
SM
11952020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1196
1197 * m32c-tdep.c: Remove unused includes.
1198
5eb9e3f5
SM
11992020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1200
1201 * xtensa-tdep.c: Remove includes.
1202
b1d4d8d1
TBA
12032020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1204
1205 * breakpoint.c (struct condition_command_opts): New struct.
1206 (condition_command_option_defs): New static global.
1207 (make_condition_command_options_def_group): New function.
1208 (condition_completer): Update to consider the '-force' flag.
1209 (condition_command): Use gdb::option for the '-force' flag.
1210
bd24c5d6
TV
12112020-10-27 Tom de Vries <tdevries@suse.de>
1212
1213 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1214 symbols in section check.
1215
61eb46a4
TV
12162020-10-27 Tom de Vries <tdevries@suse.de>
1217
1218 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1219
733d554a
TBA
12202020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1221
1222 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1223 * breakpoint.c: Update the help text of the 'condition' and 'break'
1224 commands.
1225 (set_breakpoint_condition): Take a new bool parameter
1226 to control whether condition definition should be forced even when
1227 the condition expression is invalid in all of the current locations.
1228 (condition_command): Update the call to 'set_breakpoint_condition'.
1229 (find_condition_and_thread): Take the "-force-condition" flag into
1230 account.
1231 * linespec.c (linespec_keywords): Add "-force-condition" as an
1232 element.
1233 (FORCE_KEYWORD_INDEX): New #define.
1234 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1235 as a keyword.
1236 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1237 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1238 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1239 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1240
b5fa468f
TBA
12412020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1242
1243 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1244 * breakpoint.c (set_breakpoint_location_condition): New function.
1245 (set_breakpoint_condition): Disable a breakpoint location if parsing
1246 the condition string gives an error.
1247 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1248 (build_target_condition_list): Ditto.
1249 (build_target_command_list): Ditto.
1250 (build_bpstat_chain): Ditto.
1251 (print_one_breakpoint_location): Ditto.
1252 (print_one_breakpoint): Ditto.
1253 (breakpoint_1): Ditto.
1254 (bp_location::bp_location): Ditto.
1255 (locations_are_equal): Ditto.
1256 (update_breakpoint_locations): Ditto.
1257 (enable_disable_bp_num_loc): Ditto.
1258 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1259 (find_condition_and_thread_for_sals): New static function.
1260 (create_breakpoint): Call find_condition_and_thread_for_sals.
1261 (location_to_sals): Call find_condition_and_thread_for_sals instead
1262 of find_condition_and_thread.
1263
1c47ec3e
TV
12642020-10-26 Tom de Vries <tdevries@suse.de>
1265
1266 * dwarf2/read.c (process_full_comp_unit): Call
1267 dwarf2_find_base_address.
1268
6390859c
TT
12692020-10-26 Tom Tromey <tromey@adacore.com>
1270
1271 * gdbtypes.c (create_range_type): Revert previous patch. Add
1272 comment.
1273
d744f0f9
PA
12742020-10-26 Pedro Alves <pedro@palves.net>
1275
1276 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1277 (my_waitpid): Use gdb::handle_eintr.
1278
006811bc
SM
12792020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1280
1281 * acinclude.m4: Update ptrace.m4 path.
1282 * ptrace.m4: Moved to gdbsupport.
1283
c75e31a1
SM
12842020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1285
1286 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1287 instead of target_gdbarch.
1288
32495661
SM
12892020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1290
1291 * jit.c (jit_reader_load_command): Pass current inferior.
1292 (jit_inferior_init): Change parameter type to inferior, use it.
1293 (jit_inferior_created): Remove.
1294 (jit_inferior_created_hook): Pass inferior parameter down.
1295 (_initialize_jit): Use jit_inferior_created_hook instead of
1296 jit_inferior_created.
1297 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1298 * infrun.c (follow_exec): Pass inferior to
1299 jit_inferior_created_hook.
1300
3f66685e
SM
13012020-10-24 Simon Marchi <simon.marchi@efficios.com>
1302
1303 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1304 parameter and use it.
1305 (thread_db_inferior_created): Pass inferior argument.
1306
a0ff652f
SM
13072020-10-24 Simon Marchi <simon.marchi@efficios.com>
1308
1309 * aix-thread.c (aix_thread_inferior_created): Add inferior
1310 parameter.
1311 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1312 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1313 * jit.c (jit_inferior_created): Likewise.
1314 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1315 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1316 * observable.h (inferior_created): Likewise.
1317 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1318 * symfile-mem.c (add_vsyscall_page): Likewise.
1319 * infcmd.c (post_create_inferior): Pass inferior argument.
1320
3c67532c
JB
13212020-10-24 Joel Brobecker <brobecker@adacore.com>
1322
1323 GDB 10.1 released.
1324
8747316e
JB
13252020-10-23 Joel Brobecker <brobecker@adacore.com>
1326
1327 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1328 to ada_check_typedef.
1329
1a0ea399
AB
13302020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1331
1332 * f-exp.y (f_parse): Rename to...
1333 (f_language::parser): ...this.
1334 * f-lang.c (f_get_encoding): Rename to...
1335 (f_language::get_encoding): ...this.
1336 (f_op_print_tab): Rename to...
1337 (f_language::op_print_tab): ...this.
1338 (exp_descriptor_f): Rename to...
1339 (f_language::exp_descriptor_tab): ...this.
1340 (class f_language): Moved to f-lang.h.
1341 (f_language::language_arch_info): New function, moved out of class
1342 declaration.
1343 (f_language::search_name_hash): Likewise.
1344 (f_language::lookup_symbol_nonlocal): Likewise.
1345 (f_language::get_symbol_name_matcher_inner): Likewise.
1346 * f-lang.h: Add 'valprint.h' include.
1347 (class f_language): Moved here from f-lang.c.
1348 * f-typeprint.c (f_type_print_args): Delete commented out
1349 declaration.
1350 (f_print_typedef): Rename to...
1351 (f_language::print_typedef): ...this.
1352 (f_print_type): Rename to...
1353 (f_language::print_type): ...this.
1354 (f_type_print_varspec_prefix): Delete declaration and rename to...
1355 (f_language::f_type_print_varspec_prefix): ...this.
1356 (f_type_print_varspec_suffix): Delete declaration and rename to...
1357 (f_language::f_type_print_varspec_suffix): ...this.
1358 (f_type_print_base): Delete declaration and rename to...
1359 (f_language::f_type_print_base): ...this.
1360 * f-valprint.c (f_value_print_inner): Rename to...
1361 (f_language::value_print_inner): ...this.
1362 * parse.c: Delete 'f-lang.h' include.
1363
88cefd9b
AB
13642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1365
1366 * language.h (language_defn::print_type): Add variable names in
1367 declaration, and update header comment.
1368
5399db93
AB
13692020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1370
1371 * ada-lang.c (ada_language::demangle): Rename to...
1372 (ada_language::demangle_symbol): ...this.
1373 * c-lang.c (cplus_language::demangle): Rename to...
1374 (cplus_language::demangle_symbol): ...this.
1375 * d-lang.c (d_language::demangle): Rename to...
1376 (d_language::demangle_symbol): ...this.
1377 * f-lang.c (f_language::demangle): Rename to...
1378 (f_language::demangle_symbol): ...this.
1379 * go-lang.c (go_language::demangle): Rename to...
1380 (go_language::demangle_symbol): ...this.
1381 * language.c (language_demangle): Update call to demangle_symbol.
1382 (auto_or_unknown_language::demangle): Rename to...
1383 (auto_or_unknown_language::demangle_symbol): ...this.
1384 * language.h (language_defn::demangle): Rename to...
1385 (language_defn::demangle_symbol): ...this.
1386 * objc-lang.c (objc_language::demangle): Rename to...
1387 (objc_language::demangle_symbol): ...this.
1388 * rust-lang.c (rust_language::demangle): Rename to...
1389 (rust_language::demangle_symbol): ...this.
1390
4b2f86ef
AB
13912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1392
1393 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1394 (iterate_over_file_blocks): Replace use of macro with the macros
1395 definition.
1396
e74b39de
AB
13972020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1398
1399 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1400 * valprint.c (maybe_print_array_index): Replace use of macro with
1401 the macros definition.
1402
00c696a6
AB
14032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1404
1405 * ada-lang.c (ada_language::print_array_index): Call value_print
1406 directly.
1407 * language.c (language_defn::print_array_index): Likewise.
1408 * language.h (LA_VALUE_PRINT): Delete.
1409 * valprint.c (value_print): Call value_print on the
1410 current_language directly.
1411
d3b67c56
AB
14122020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1413
1414 * language.h (LA_PRINT_TYPEDEF): Delete.
1415 * typeprint.c (typedef_print): Call print_typedef directly on the
1416 current_language object.
1417
790e2a12
AB
14182020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1419
1420 * m2-exp.y (m2_parse): Rename to...
1421 (m2_language::parser): ...this. Update function signature.
1422 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1423 (m2_op_print): Rename to...
1424 (m2_language::op_print_tab): ...this, and make const.
1425 (exp_descriptor_modula2): Rename to...
1426 (m2_language::exp_descriptor_modula2): ...this.
1427 (class m2_language): Move to m2-lang.h.
1428 (m2_language::language_arch_info): New function, moved out of
1429 class declaration.
1430 (m2_language::printchar): New function, body from m2_printchar.
1431 (m2_language::printstr): New function, moved out of class
1432 declaration.
1433 (m2_language::emitchar): Likewise.
1434 * m2-lang.h (m2_parse): Delete declaration.
1435 (m2_print_typedef): Delete declaration.
1436 (m2_value_print_inner): Delete declaration.
1437 (class m2_language): Class declaration moved from m2-lang.c,
1438 larger functions are left in m2-lang.c.
1439 * m2-typeprint.c (m2_print_typedef): Rename to...
1440 (m2_language::print_typedef): ...this, and update function
1441 signature.
1442 * m2-valprint.c (m2_value_print_inner): Rename to...
1443 (m2_language::value_print_inner): ...this, replace use of
1444 LA_PRINT_STRING with a direct call to printstr member function,
1445 and update recursive call.
1446
b01175fc
AB
14472020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1448
1449 * language.c (default_is_string_type_p): Delete, implementation
1450 moved into auto_or_unknown_language::is_string_type_p.
1451 (unk_op_print_tab): Moved into
1452 auto_or_unknown_language::opcode_print_table.
1453 (unknown_language_arch_info): Delete, implementation moved into
1454 auto_or_unknown_language::language_arch_info.
1455 (class auto_or_unknown_language): New class, member functions
1456 copied from unknown_language class, with some updates.
1457 (class unknown_language): Most member functions moved into
1458 auto_or_unknown_language class. Inherit from
1459 auto_or_unknown_language class.
1460 (class auto_language): Inherit from auto_or_unknown_language.
1461 Delete most member functions.
1462
1a97fe8c
HD
14632020-10-22 Hannes Domani <ssbssa@yahoo.de>
1464
1465 * stabsread.c (read_member_functions): Remove gdb_assert.
1466
6b9d0dfd
HD
14672020-10-22 Hannes Domani <ssbssa@yahoo.de>
1468
1469 * gdbtypes.c (init_complex_type): Check target type name.
1470
4b4bb603
SM
14712020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1472
1473 * target-debug.h (target_debug_print_struct_target_ops_p):
1474 Remove.
1475 (target_debug_print_async_callback_ftype_p): Remove.
1476 (target_debug_print_struct_trace_state_variable_p): Remove.
1477 (target_debug_print_struct_traceframe_info_p): Remove.
1478 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1479 (target_debug_print_enum_btrace_format): Remove.
1480 (target_debug_print_enum_info_proc_what): Remove.
1481 (target_debug_print_thread_info_pp): Remove.
1482
24f5300a
SM
14832020-10-22 Simon Marchi <simon.marchi@efficios.com>
1484
1485 * target.h (struct target_ops) <make_corefile_notes>:
1486 Change return type to unique pointer.
1487 * target.c (dummy_make_corefile_notes): Likewise.
1488 * exec.c (struct exec_target) <make_corefile_notes>:
1489 Likewise.
1490 (exec_target::make_corefile_notes): Likewise.
1491 * procfs.c (class procfs_target) <make_corefile_notes>:
1492 Likewise.
1493 (procfs_do_thread_registers): Adjust to unique pointer.
1494 (struct procfs_corefile_thread_data): Add constructor.
1495 <note_data>: Change type to unique pointer.
1496 (procfs_corefile_thread_callback): Adjust to unique pointer.
1497 (procfs_target::make_corefile_notes): Change return type to
1498 unique pointer.
1499 * target-delegates.c: Re-generate.
1500 * gcore.c (write_gcore_file_1): Adjust.
1501 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1502 New.
1503
5fb4027f
TV
15042020-10-22 Tom de Vries <tdevries@suse.de>
1505
1506 * block.c (find_block_in_blockvector): Make sure the returned block
1507 contains pc.
1508
4a636814
SM
15092020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1510
1511 PR gdb/26693
1512 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1513 parameter.
1514 (load_cu): Pass existing CU.
1515 (process_imported_unit_die): Likewise.
1516 (follow_die_offset): Likewise.
1517
1bd57575
LM
15182020-10-22 Luis Machado <luis.machado@linaro.org>
1519
1520 * corelow.c (core_target::xfer_partial): Also check for an empty
1521 m_core_unavailable_mappings vector.
1522
6b4c676c
AB
15232020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1524
1525 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1526 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1527 * f-exp.y (arglist): Allow for a series of subranges.
1528 (subrange): Add cases for subranges with strides.
1529 * f-lang.c (value_f90_subarray): Catch use of array strides and
1530 throw an error.
1531 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1532
f2d8e4c5
AB
15332020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1534
1535 * expprint.c (print_subexp_standard): Change enum range_type to
1536 range_flag and rename variables to match.
1537 (dump_subexp_body_standard): Likewise.
1538 * expression.h (enum range_type): Rename to...
1539 (enum range_flag): ...this.
1540 (range_types): Rename to...
1541 (range_flags): ...this.
1542 * f-lang.c (value_f90_subarray): Change enum range_type to
1543 range_flag and rename variables to match.
1544 * parse.c (operator_length_standard): Likewise.
1545 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1546 range_type to range_flag.
1547 * rust-lang.c (rust_evaluate_funcall): Likewise.
1548 (rust_range): Likewise.
1549 (rust_compute_range): Likewise.
1550 (rust_subscript): Likewise.
1551
2f1b18db
AB
15522020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * expprint.c (print_subexp_standard): Update to reflect changes to
1555 enum range_type.
1556 (dump_subexp_body_standard): Likewise.
1557 * expression.h (enum range_type): Convert to a bit field enum, and
1558 make the enum unsigned.
1559 * f-exp.y (subrange): Update to reflect changes to enum
1560 range_type.
1561 * f-lang.c (value_f90_subarray): Likewise.
1562 * parse.c (operator_length_standard): Likewise.
1563 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1564 * rust-lang.c (rust_range): Likewise.
1565 (rust_compute_range): Likewise.
1566 (rust_subscript): Likewise.
1567
a46d1843
SM
15682020-10-21 Simon Marchi <simon.marchi@efficios.com>
1569
1570 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1571 (displaced_step_in_progress): Fix comment.
1572
c21f37a8
SM
15732020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1574
1575 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1576 * gdbarch.c: Re-generate.
1577 * gdbarch.h: Re-generate.
1578 * gcore.c (write_gcore_file_1): Adjust.
1579 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1580 constructor.
1581 <note_data>: Change type to unique pointer.
1582 <abort_iteration>: Change type to bool.
1583 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1584 (fbsd_collect_thread_registers): Return void, adjust.
1585 (struct fbsd_corefile_thread_data): Add construtor.
1586 <note_data>: Change type to unique pointer.
1587 (fbsd_corefile_thread): Adjust.
1588 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1589 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1590 to unique pointer, adjust.
1591 (struct linux_collect_regset_section_cb_data): Add constructor.
1592 <note_data>: Change type to unique pointer.
1593 <abort_iteration>: Change type to bool.
1594 (linux_collect_thread_registers): Return void, adjust.
1595 (struct linux_corefile_thread_data): Add constructor.
1596 <note_data>: Change type to unique pointer.
1597 (linux_corefile_thread): Adjust.
1598 (linux_make_corefile_notes): Return unique pointer, adjust.
1599
07fbbd01
SM
16002020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1601
1602 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1603 * gdbarch.c: Re-generate.
1604 * gdbarch.h: Re-generate.
1605 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1606 bool.
1607 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1608 Likewise.
1609 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1610 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1611 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1612 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1613
39535193
SM
16142020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1615
1616 * gdbarch.sh: Make generated predicates return bool.
1617 * gdbarch.c: Re-generate.
1618 * gdbarch.h: Re-generate.
1619
ad523d01
TT
16202020-10-20 Tom Tromey <tom@tromey.com>
1621
1622 * varobj-iter.h (struct varobj_item): Remove typedef.
1623
c4464ade
SM
16242020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1625
1626 * infrun.c (currently_stepping): Change int to bool
1627 (maybe_software_singlestep): Likewise.
1628 (show_stop_on_solib_events): Likewise.
1629 (stepping_past_nonsteppable_watchpoint): Likewise.
1630 (displaced_step_in_progress_any_inferior): Likewise.
1631 (displaced_step_in_progress_thread): Likewise.
1632 (keep_going_stepped_thread): Likewise.
1633 (thread_still_needs_step_over): Likewise.
1634 (start_step_over): Likewise.
1635 (do_target_resume): Likewise.
1636 (resume_1): Likewise.
1637 (clear_proceed_status): Likewise.
1638 (thread_still_needs_step_over_bp): Likewise.
1639 (proceed): Likewise.
1640 (switch_back_to_stepped_thread): Likewise.
1641 (adjust_pc_after_break): Likewise.
1642 (stepped_in_from): Likewise.
1643 (handle_stop_requested): Likewise.
1644 (handle_syscall_event): Likewise.
1645 (handle_no_resumed): Likewise.
1646 (handle_inferior_event): Likewise.
1647 (finish_step_over): Likewise.
1648 (handle_signal_stop): Likewise.
1649 (process_event_stop_test): Likewise.
1650
2eb20436
SM
16512020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1652
1653 * infrun.c (get_displaced_stepping_state): Fix comment.
1654
e0c45ded
AS
16552020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1656
1657 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1658
22cc388e
TT
16592020-10-19 Tom Tromey <tromey@adacore.com>
1660
1661 PR tui/26719
1662 * tui/tui-winsource.h (struct tui_source_window_base)
1663 <refresh_window>: Rename from refresh_pad.
1664 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1665 Rename from refresh_pad.
1666 (tui_source_window_base::show_source_content)
1667 (tui_source_window_base::do_scroll_horizontal): Update.
1668
3c6eb4d4
TBA
16692020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1670
1671 * thread.c (_initialize_thread): Fine-tune the help text of
1672 'info threads'.
1673
26703721
TBA
16742020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1675
1676 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1677
61c26be8
MS
16782020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1679
1680 * breakpoint.c (handle_jit_event): Add an argument, change how
1681 `jit_event_handler` is called.
1682
932539d7
TT
16832020-10-17 Tom Tromey <tom@tromey.com>
1684
1685 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1686 (scan_xcoff_symtab): Update.
1687 * psymtab.h (class psymtab_storage) <global_psymbols,
1688 static_psymbols, current_global_psymbols,
1689 current_static_psymbols>: Remove.
1690 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1691 (match_partial_symbol, lookup_partial_symbol): Update.
1692 (print_partial_symbols): Change parameters.
1693 (dump_psymtab, recursively_search_psymtabs)
1694 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1695 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1696 (concat): Remove.
1697 (end_psymtab_common): Simplify.
1698 (append_psymbol_to_list): Change parameters.
1699 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1700 (init_psymbol_list): Simplify.
1701 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1702 * psympriv.h (struct partial_symtab) <empty>: New method.
1703 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1704 Remove.
1705 <global_psymbols, static_psymbols>: New members.
1706 <add_psymbol>: New methods.
1707 (add_psymbol_to_list): Don't declare.
1708 (psymbol_placement): Move earlier.
1709 * mdebugread.c (parse_partial_symbols): Update.
1710 (handle_psymbol_enumerators): Change parameters.
1711 (mdebug_expand_psymtab): Update.
1712 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1713 (add_partial_symbol): Update.
1714 * dwarf2/index-write.c (write_psymbols): Change parameters.
1715 (write_one_signatured_type): Update.
1716 (recursively_count_psymbols): Update.
1717 (recursively_write_psymbols): Update.
1718 (class debug_names) <recursively_write_psymbols>: Update.
1719 <write_psymbols>: Change parameters.
1720 <write_one_signatured_type>: Update.
1721 * dbxread.c (read_dbx_symtab): Update.
1722 (dbx_end_psymtab): Use partial_symtab::empty.
1723 * ctfread.c (struct ctf_context) <pst>: New member.
1724 (create_partial_symtab): Set it.
1725 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1726 (scan_partial_symbols): Use the psymtab's context. Update.
1727
cfabbd35
TT
17282020-10-17 Tom Tromey <tom@tromey.com>
1729
1730 * valprint.c (generic_value_print): Remove comment.
1731 * m2-valprint.c (m2_value_print_inner): Remove comment.
1732 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1733 type.
1734
520596f2
TV
17352020-10-17 Tom de Vries <tdevries@suse.de>
1736
1737 PR symtab/26317
1738 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1739 symbol main.
1740
76547ab3
TV
17412020-10-14 Tom de Vries <tdevries@suse.de>
1742
1743 PR gdb/26733
1744 * solib.c (solib_contains_address_p): Handle
1745 'solib->sections == nullptr'.
1746
d3a07122
SM
17472020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1748
1749 PR gdb/26642
1750 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1751 target can't do async.
1752 * target.c (target_wait): Assert that we don't pass
1753 TARGET_WNOHANG to a target that can't async.
1754
1b71cfcf
KR
17552020-10-13 Kamil Rytarowski <n54@gmx.com>
1756
1757 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1758 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1759 * alpha-bsd-nat.c: Adjust include.
1760 * alpha-bsd-tdep.h: Adjust comment.
1761 * alpha-nbsd-tdep.c: Rename to ...
1762 * alpha-netbsd-tdep.c: ... this, adjust include.
1763 * amd64-nbsd-nat.c: Rename to ...
1764 * amd64-netbsd-nat.c: ... this, adjust include.
1765 * amd64-nbsd-tdep.c: Rename to ...
1766 * amd64-netbsd-tdep.c: ... this, adjust include.
1767 * amd64-tdep.h: Adjust include.
1768 * arm-nbsd-nat.c: Rename to ...
1769 * arm-netbsd-nat.c: ... this, adjust include.
1770 * arm-nbsd-tdep.c: Rename to ...
1771 * arm-netbsd-tdep.c: ... this, adjust include.
1772 * arm-nbsd-tdep.h: Rename to ...
1773 * arm-netbsd-tdep.h: ... this, adjust include.
1774 * configure.nat: Adjust file lists.
1775 * configure.tgt: Likewise.
1776 * hppa-nbsd-nat.c: Rename to ...
1777 * hppa-netbsd-nat.c: ... this, adjust include.
1778 * hppa-nbsd-tdep.c: Rename to ...
1779 * hppa-netbsd-tdep.c: ... this, adjust include.
1780 * i386-nbsd-nat.c: Rename to ...
1781 * i386-netbsd-nat.c: ... this, adjust include.
1782 * i386-nbsd-tdep.c: Rename to ...
1783 * i386-netbsd-tdep.c: ... this, adjust include.
1784 * m68k-bsd-nat.c: Adjust include.
1785 * mips-nbsd-nat.c: Rename to ...
1786 * mips-netbsd-nat.c: ... this, adjust include.
1787 * mips-nbsd-tdep.c: Rename to ...
1788 * mips-netbsd-tdep.c: ... this, adjust include.
1789 * mips-nbsd-tdep.h: Rename to ...
1790 * mips-netbsd-tdep.h: ... this.
1791 * nbsd-nat.c: Rename to ...
1792 * netbsd-nat.c: ... this, adjust include.
1793 * nbsd-nat.h: Rename to ...
1794 * netbsd-nat.h: ... this, adjust include.
1795 * nbsd-tdep.c: Rename to ...
1796 * netbsd-tdep.c: ... this, adjust include.
1797 * nbsd-tdep.h: Rename to ...
1798 * netbsd-tdep.h: ... this.
1799 * ppc-nbsd-nat.c: Rename to ...
1800 * ppc-netbsd-nat.c: ... this, adjust include.
1801 * ppc-nbsd-tdep.c: Rename to ...
1802 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1803 * ppc-nbsd-tdep.h: Rename to ...
1804 * ppc-netbsd-tdep.h: ... this.
1805 * sh-nbsd-nat.c: Rename to ...
1806 * sh-netbsd-nat.c: ... this, adjust include.
1807 * sh-nbsd-tdep.c: Rename to ...
1808 * sh-netbsd-tdep.c: ... this, adjust include.
1809 * sparc-nbsd-nat.c: Rename to ...
1810 * sparc-netbsd-nat.c: ... this.
1811 * sparc-nbsd-tdep.c: Rename to ...
1812 * sparc-netbsd-tdep.c: ... this, adjust include.
1813 * sparc64-nbsd-nat.c: Rename to ...
1814 * sparc64-netbsd-nat.c: ... this.
1815 * sparc64-nbsd-tdep.c: Rename to ...
1816 * sparc64-netbsd-tdep.c: ... this, adjust include.
1817 * sparc64-tdep.h: Adjust comment.
1818 * vax-bsd-nat.c: Adjust include.
1819 * vax-nbsd-tdep.c: Rename to ...
1820 * vax-netbsd-tdep.c: ... this, adjust include.
1821
d7a78e5c
TT
18222020-10-12 Tom Tromey <tom@tromey.com>
1823
1824 * target.h (struct target_ops) <get_section_table>: Update.
1825 (target_get_section_table): Update.
1826 * target.c (target_get_section_table, target_section_by_addr)
1827 (memory_xfer_partial_1): Update.
1828 * target-section.h (target_section_table): Now an alias.
1829 * target-delegates.c: Rebuild.
1830 * target-debug.h (target_debug_print_target_section_table_p):
1831 Rename from target_debug_print_struct_target_section_table_p.
1832 * symfile.c (build_section_addr_info_from_section_table): Update.
1833 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1834 * solib-svr4.c (scan_dyntag): Update.
1835 * solib-dsbt.c (scan_dyntag): Update.
1836 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1837 Update.
1838 * record-full.c (record_full_core_target::xfer_partial): Update.
1839 * progspace.h (struct program_space) <target_sections>: Update.
1840 * exec.h (print_section_info): Update.
1841 * exec.c (exec_target::close, build_section_table)
1842 (add_target_sections, add_target_sections_of_objfile)
1843 (remove_target_sections, exec_on_vfork)
1844 (section_table_available_memory)
1845 (section_table_xfer_memory_partial)
1846 (exec_target::get_section_table, exec_target::xfer_partial)
1847 (print_section_info, set_section_command)
1848 (exec_set_section_address, exec_target::has_memory): Update.
1849 * corelow.c (core_target::build_file_mappings)
1850 (core_target::xfer_partial, core_target::info_proc_mappings)
1851 (core_target::info_proc_mappings): Update.
1852 * bfd-target.c (class target_bfd): Update
1853
eda214ce
TT
18542020-10-12 Tom Tromey <tom@tromey.com>
1855
1856 * progspace.c (program_space::~program_space): Don't call
1857 clear_section_table.
1858 * exec.h (clear_section_table): Don't declare.
1859 * exec.c (exec_target::close): Update.
1860 (clear_section_table): Remove.
1861
91840ee3
TT
18622020-10-12 Tom Tromey <tom@tromey.com>
1863
1864 * exec.c (add_target_sections_of_objfile): Simplify.
1865
2d128614
TT
18662020-10-12 Tom Tromey <tom@tromey.com>
1867
1868 * solib.c (solib_map_sections): Update.
1869 * record-full.c (record_full_core_open_1): Update.
1870 * exec.h (build_section_table): Return a target_section_table.
1871 * exec.c (exec_file_attach): Update.
1872 (build_section_table): Return a target_section_table.
1873 * corelow.c (core_target::core_target): Update.
1874 * bfd-target.c (target_bfd::target_bfd): Update.
1875
bb2a6777
TT
18762020-10-12 Tom Tromey <tom@tromey.com>
1877
1878 * target.c (target_section_by_addr, memory_xfer_partial_1):
1879 Update.
1880 * target-section.h (struct target_section_table): Use
1881 std::vector.
1882 * symfile.h (build_section_addr_info_from_section_table): Take a
1883 target_section_table.
1884 * symfile.c (build_section_addr_info_from_section_table): Take a
1885 target_section_table.
1886 * solist.h (struct so_list) <sections>: Change type.
1887 <sections_end>: Remove.
1888 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1889 (solib_contains_address_p): Update.
1890 * solib-svr4.c (scan_dyntag): Update.
1891 * solib-dsbt.c (scan_dyntag): Update.
1892 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1893 Update.
1894 * record-full.c (record_full_core_start, record_full_core_end):
1895 Remove.
1896 (record_full_core_sections): New global.
1897 (record_full_core_open_1, record_full_core_target::xfer_partial):
1898 Update.
1899 * exec.h (build_section_table, section_table_xfer_memory_partial)
1900 (add_target_sections): Take a target_section_table.
1901 * exec.c (exec_file_attach, clear_section_table): Update.
1902 (resize_section_table): Remove.
1903 (build_section_table, add_target_sections): Take a
1904 target_section_table.
1905 (add_target_sections_of_objfile, remove_target_sections)
1906 (exec_on_vfork): Update.
1907 (section_table_available_memory): Take a target_section_table.
1908 (section_table_read_available_memory): Update.
1909 (section_table_xfer_memory_partial): Take a target_section_table.
1910 (print_section_info, set_section_command)
1911 (exec_set_section_address, exec_target::has_memory): Update.
1912 * corelow.c (class core_target) <m_core_section_table,
1913 m_core_file_mappings>: Remove braces.
1914 <~core_target>: Remove.
1915 (core_target::core_target): Update.
1916 (core_target::~core_target): Remove.
1917 (core_target::build_file_mappings)
1918 (core_target::xfer_memory_via_mappings)
1919 (core_target::xfer_partial, core_target::info_proc_mappings):
1920 Update.
1921 * bfd-target.c (target_bfd::xfer_partial): Update.
1922 (target_bfd::target_bfd): Update.
1923 (target_bfd::~target_bfd): Remove.
1924
7b466b10
TT
19252020-10-12 Tom Tromey <tom@tromey.com>
1926
1927 * target.h (struct target_section, struct target_section_table):
1928 Move to target-section.h.
1929 * target-section.h: New file.
1930
87a37e5e
PA
19312020-10-12 Pedro Alves <pedro@palves.net>
1932
1933 PR exp/26602
1934 * valops.c (struct struct_field_searcher): New.
1935 (update_search_result): Rename to ...
1936 (struct_field_searcher::update_result): ... this. Simplify
1937 prototype. Record all found fields.
1938 (do_search_struct_field): Rename to ...
1939 (struct_field_searcher::search): ... this. Simplify prototype.
1940 Maintain stack of visited baseclass path. Call update_result for
1941 fields too. Keep searching fields in baseclasses instead of
1942 stopping at the first found field.
1943 (search_struct_field): Use struct_field_searcher. When looking
1944 for fields, report ambiguous access attempts.
1945
9370fd51
AB
19462020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1947
1948 * frame.c (inside_main_func): Check full symbols as well as
1949 minimal symbols.
1950
59c8a30b
JB
19512020-10-09 Joel Brobecker <brobecker@adacore.com>
1952
1953 * ada-lang.c (advance_wild_match): Rewrite the function's
1954 description. Change the type of target0, t0 and t1 to char.
1955
7c184d33
TT
19562020-10-09 Tom Tromey <tromey@adacore.com>
1957
1958 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1959
5c4258f4
TT
19602020-10-09 Tom Tromey <tromey@adacore.com>
1961
1962 * ada-lang.h (ada_encode): Return std::string.
1963 * ada-lang.c (ada_encode_1): Return std::string.
1964 (ada_encode): Likewise.
1965 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1966 Update.
1967 * ada-exp.y (block_lookup, write_var_or_type): Update.
1968
3d87245c
HD
19692020-10-09 Hannes Domani <ssbssa@yahoo.de>
1970
1971 PR exp/26714
1972 * printcmd.c (print_formatted): Handle void results as
1973 unformatted prints.
1974
bbb826f5
AB
19752020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1976
1977 * arch/aarch32.c (aarch32_create_target_description): Release the
1978 target_desc_up as late as possible.
1979 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1980 * arch/amd64.c (amd64_create_target_description): Likewise.
1981 * arch/arc.c (arc_create_target_description): Return a
1982 target_desc_up, don't release it.
1983 * arch/arc.h (arc_create_target_description): Update declaration.
1984 (arc_lookup_target_description): Move target_desc_up into the
1985 cache, and return a borrowed pointer.
1986 * arch/arm.c (arm_create_target_description): Release the
1987 target_desc_up as late as possible.
1988 * arch/i386.c (i386_create_target_description): Likewise.
1989 * arch/riscv.h (riscv_create_target_description): Update
1990 declaration to match definition.
1991 * arch/tic6x.c (tic6x_create_target_description): Release the
1992 target_desc_up as late as possible.
1993
361cb219
AB
19942020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1995
1996 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1997 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1998
f5c4b229
JV
19992020-10-09 Jan Vrany <jan.vrany@labware.com>
2000
2001 * source.c (directory_command): Notify observers that "directories"
2002 parameter has changed.
2003
b2701685
TT
20042020-10-08 Tom Tromey <tom@tromey.com>
2005
2006 * cli/cli-cmds.c (print_disassembly): Style function name and
2007 addresses. Add _() wrappers.
2008
ada508b6
SV
20092020-10-08 Shahab Vahedi <shahab@synopsys.com>
2010
2011 * NEWS: Mention ARC support in GDBserver.
2012
51a948fd
AB
20132020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2014
2015 * arch/aarch32.c (aarch32_create_target_description): Release
2016 unique_ptr returned from allocate_target_description.
2017 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2018 * arch/amd64.c (amd64_create_target_description): Likewise.
2019 * arch/arc.c (arc_create_target_description): Likewise.
2020 * arch/arm.c (arm_create_target_description): Likewise.
2021 * arch/i386.c (i386_create_target_description): Likewise.
2022 * arch/riscv.c (riscv_create_target_description): Update return
2023 type. Handle allocate_target_description returning a unique_ptr.
2024 (riscv_lookup_target_description): Update to handle unique_ptr.
2025 * arch/tic6x.c (tic6x_create_target_description): Release
2026 unique_ptr returned from allocate_target_description.
2027 * features/microblaze-with-stack-protect.c: Regenerate.
2028 * features/microblaze.c: Regenerate.
2029 * features/mips-dsp-linux.c: Regenerate.
2030 * features/mips-linux.c: Regenerate.
2031 * features/mips64-dsp-linux.c: Regenerate.
2032 * features/mips64-linux.c: Regenerate.
2033 * features/nds32.c: Regenerate.
2034 * features/nios2.c: Regenerate.
2035 * features/or1k.c: Regenerate.
2036 * features/rs6000/powerpc-32.c: Regenerate.
2037 * features/rs6000/powerpc-32l.c: Regenerate.
2038 * features/rs6000/powerpc-403.c: Regenerate.
2039 * features/rs6000/powerpc-403gc.c: Regenerate.
2040 * features/rs6000/powerpc-405.c: Regenerate.
2041 * features/rs6000/powerpc-505.c: Regenerate.
2042 * features/rs6000/powerpc-601.c: Regenerate.
2043 * features/rs6000/powerpc-602.c: Regenerate.
2044 * features/rs6000/powerpc-603.c: Regenerate.
2045 * features/rs6000/powerpc-604.c: Regenerate.
2046 * features/rs6000/powerpc-64.c: Regenerate.
2047 * features/rs6000/powerpc-64l.c: Regenerate.
2048 * features/rs6000/powerpc-7400.c: Regenerate.
2049 * features/rs6000/powerpc-750.c: Regenerate.
2050 * features/rs6000/powerpc-860.c: Regenerate.
2051 * features/rs6000/powerpc-altivec32.c: Regenerate.
2052 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2053 * features/rs6000/powerpc-altivec64.c: Regenerate.
2054 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2055 * features/rs6000/powerpc-e500.c: Regenerate.
2056 * features/rs6000/powerpc-e500l.c: Regenerate.
2057 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2058 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2059 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2060 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2061 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2062 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2063 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2064 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2065 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2066 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2067 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2068 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2069 * features/rs6000/powerpc-vsx32.c: Regenerate.
2070 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2071 * features/rs6000/powerpc-vsx64.c: Regenerate.
2072 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2073 * features/rs6000/rs6000.c: Regenerate.
2074 * features/rx.c: Regenerate.
2075 * features/s390-gs-linux64.c: Regenerate.
2076 * features/s390-linux32.c: Regenerate.
2077 * features/s390-linux32v1.c: Regenerate.
2078 * features/s390-linux32v2.c: Regenerate.
2079 * features/s390-linux64.c: Regenerate.
2080 * features/s390-linux64v1.c: Regenerate.
2081 * features/s390-linux64v2.c: Regenerate.
2082 * features/s390-te-linux64.c: Regenerate.
2083 * features/s390-tevx-linux64.c: Regenerate.
2084 * features/s390-vx-linux64.c: Regenerate.
2085 * features/s390x-gs-linux64.c: Regenerate.
2086 * features/s390x-linux64.c: Regenerate.
2087 * features/s390x-linux64v1.c: Regenerate.
2088 * features/s390x-linux64v2.c: Regenerate.
2089 * features/s390x-te-linux64.c: Regenerate.
2090 * features/s390x-tevx-linux64.c: Regenerate.
2091 * features/s390x-vx-linux64.c: Regenerate.
2092 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2093 from allocate_target_description.
2094 * target-descriptions.c (allocate_target_description): Update
2095 return type.
2096 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2097 allocate_target_description.
2098
485c47e5
TT
20992020-10-07 Tom Tromey <tromey@adacore.com>
2100
2101 * unittests/search-memory-selftests.c: New file.
2102 * Makefile.in (SELFTESTS_SRCS): Add
2103 unittests/search-memory-selftests.c.
2104
3a135a91
TT
21052020-10-07 Tom Tromey <tromey@adacore.com>
2106
2107 PR gdb/16930:
2108 * findcmd.c (_initialize_mem_search): Mention that the range is
2109 inclusive.
2110
4a72de73
TT
21112020-10-07 Tom Tromey <tromey@adacore.com>
2112
2113 * target.h (simple_search_memory): Don't declare.
2114 * target.c (simple_search_memory): Move to gdbsupport.
2115 (default_search_memory): Update.
2116 * remote.c (remote_target::search_memory): Update.
2117
a038ffd8
SM
21182020-10-07 Simon Marchi <simon.marchi@efficios.com>
2119
2120 * Makefile.in (COMPILE): Add CXXFLAGS.
2121 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2122 (check-headers): Add CXXFLAGS.
2123
cc463201
AK
21242020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2125
2126 * arc-linux-tdep.h: New file.
2127 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2128 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2129 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2130 arc_linux_gregset, arc_linux_v2_regset,
2131 arc_linux_iterate_over_regset_sections,
2132 arc_linux_core_read_description): Implement.
2133 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2134 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2135 (arc_gdbarch_features_create): Add.
2136 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2137
e4bd363f
SV
21382020-10-07 Shahab Vahedi <shahab@synopsys.com>
2139
2140 * arch/arc.h: Rename "arc_gdbarch_features" to
2141 "arc_arch_features".
2142 * arc-tdep.h: Likewise.
2143 * arc-tdep.c: Likewise.
2144
b68bef99
TBA
21452020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2146
2147 * infcmd.c (attach_command): Remove the redundant call to
2148 `clear_proceed_status`.
2149
4641551a
KR
21502020-10-07 Kamil Rytarowski <n54@gmx.com>
2151
2152 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2153
91e5e8db
KR
21542020-10-07 Kamil Rytarowski <n54@gmx.com>
2155
2156 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2157 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2158 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2159
64c03bdb
SM
21602020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2161
2162 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2163 (_initialize_break_catch_sig): Don't allocate array.
2164
31a8f60f
AB
21652020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2166
2167 * symtab.c (find_pc_line): Return unmapped addresses when the
2168 requested address is also unmapped.
2169
9e6dbd8b
SM
21702020-10-05 Simon Marchi <simon.marchi@efficios.com>
2171
2172 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2173 tui/tui-out.h.
2174
a1d217e8
SM
21752020-10-05 Simon Marchi <simon.marchi@efficios.com>
2176
2177 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2178 type::is_vector instead of TYPE_VECTOR.
2179
7d144117
SM
21802020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2181
2182 * auto-load.c (auto_load_objfile_script_1): Don't use
2183 debugfile_holder as temporary variable when stripping drive
2184 letter.
2185
cd096ec8
HD
21862020-10-05 Hannes Domani <ssbssa@yahoo.de>
2187
2188 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2189 Add TYPE_CODE_COMPLEX.
2190 (amd64_windows_return_value): Fix types returned via XMM0.
2191
b58e7f72
AH
21922020-10-05 Alan Hayward <alan.hayward@arm.com>
2193
2194 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2195 AArch64/ARM maintainers.
2196
8d378f27
SM
21972020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2198
2199 * NEWS: Mention set/show debug event-loop.
2200
d5519913
TT
22012020-10-02 Tom Tromey <tromey@adacore.com>
2202
2203 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2204 REG_EXTENDED.
2205
18b67edc
SM
22062020-10-02 Simon Marchi <simon.marchi@efficios.com>
2207
2208 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2209 * procfs.c (procfs_inferior_created): Remove.
2210 (_initialize_procfs): Don't register procfs_inferior_created.
2211
6b01403b
SM
22122020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2213
2214 * async-event.c (invoke_async_signal_handlers): Add debug
2215 print.
2216 (check_async_event_handlers): Likewise.
2217 * event-top.c (show_debug_event_loop): New function.
2218 (_initialize_event_top): Register "set debug event-loop"
2219 setting.
2220
ba988419
SM
22212020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2222
2223 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2224 * debug.h: Remove.
2225 * infrun.c: Include gdbsupport/common-debug.h.
2226 * linux-nat.c: Likewise.
2227
db20ebdf
SM
22282020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2229
2230 * async-event.h (create_async_signal_handler): Add name
2231 parameter.
2232 (create_async_event_handler): Likewise.
2233 * async-event.c (struct async_signal_handler) <name>: New field.
2234 (struct async_event_handler) <name>: New field.
2235 (create_async_signal_handler): Assign name.
2236 (create_async_event_handler): Assign name.
2237 * event-top.c (async_init_signals): Pass name when creating
2238 handler.
2239 * infrun.c (_initialize_infrun): Likewise.
2240 * record-btrace.c (record_btrace_push_target): Likewise.
2241 * record-full.c (record_full_open): Likewise.
2242 * remote-notif.c (remote_notif_state_allocate): Likewise.
2243 * remote.c (remote_target::open_1): Likewise.
2244 * tui/tui-win.c (tui_initialize_win): Likewise.
2245
2554f6f5
SM
22462020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2247
2248 * async-event.c (initialize_async_signal_handlers): Pass name to
2249 add_file_handler
2250 * event-top.c (ui_register_input_event_handler): Likewise.
2251 * linux-nat.c (linux_nat_target::async): Likewise.
2252 * run-on-main-thread.c (_initialize_run_on_main_thread):
2253 Likewise
2254 * ser-base.c (reschedule): Likewise.
2255 (ser_base_async): Likewise.
2256 * tui/tui-io.c: Likewise.
2257 * top.h (struct ui) <num>: New field.
2258 * top.c (highest_ui_num): New variable.
2259 (ui::ui): Initialize num.
2260
a7aba266
SM
22612020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2262
2263 * observable.h <inferior_created>: Remove parameters. Update all
2264 listeners.
2265 * inferior.h (post_create_inferior): Remove target parameter.
2266 Update all callers.
2267
048fde1e 22682020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2269
2270 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2271 and DW_MACRO_undef_strx.
2272 (dwarf_decode_macros): Likewise
2273 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2274 which is the value of DW_AT_str_offsets_base.
2275 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2276 str_offsets_base.
2277
064280be
KR
22782020-10-01 Kamil Rytarowski <n54@gmx.com>
2279
2280 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2281
6ff33035
KR
22822020-10-01 Kamil Rytarowski <n54@gmx.com>
2283
2284 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2285 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2286
1eb6eb79
KR
22872020-10-01 Kamil Rytarowski <n54@gmx.com>
2288
2289 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2290
95eb9e54
TV
22912020-09-30 Tom de Vries <tdevries@suse.de>
2292
2293 PR symtab/26683
2294 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2295
cae21f8e
TT
22962020-09-30 Tom Tromey <tromey@adacore.com>
2297
2298 * dwarf2/read.c (handle_variant): Use constant_value.
2299
529908cb
TT
23002020-09-29 Tom Tromey <tom@tromey.com>
2301
2302 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2303 (read_file_scope, dwarf2_get_pc_bounds)
2304 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2305 (read_structure_type, handle_struct_member_die)
2306 (read_enumeration_type, read_array_type, read_set_type)
2307 (read_tag_pointer_type, read_tag_reference_type)
2308 (read_subroutine_type, read_base_type, read_subrange_type)
2309 (read_full_die_1, partial_die_info::read)
2310 (partial_die_info::read, by, new_symbol)
2311 (dwarf2_const_value_data, dwarf2_const_value_attr)
2312 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2313 (prepare_one_comp_unit): Update.
2314 * dwarf2/attribute.h (DW_UNSND): Remove.
2315
c45bc3f8
TT
23162020-09-29 Tom Tromey <tom@tromey.com>
2317
2318 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2319 (read_subroutine_type, partial_die_info::read)
2320 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2321 (dwarf2_add_member_fn): Update.
2322 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2323 * dwarf2/attribute.c (attribute::as_boolean): New method.
2324
23dca5c3
TT
23252020-09-29 Tom Tromey <tom@tromey.com>
2326
2327 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2328 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2329 method.
2330 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2331
52c14d11
TT
23322020-09-29 Tom Tromey <tom@tromey.com>
2333
2334 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2335 the attribute's form.
2336
e8e5c158
TT
23372020-09-29 Tom Tromey <tom@tromey.com>
2338
2339 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2340 (dwarf2_add_member_fn): Update.
2341 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2342 * dwarf2/attribute.c (attribute::defaulted): New method, from
2343 is_valid_DW_AT_defaulted.
2344
d4df075e
TT
23452020-09-29 Tom Tromey <tom@tromey.com>
2346
2347 * dwarf2/read.c (dw2_get_file_names_reader)
2348 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2349 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2350 (dwarf2_symbol_mark_computed): Use as_unsigned.
2351 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2352 method.
2353 <form_is_section_offset>: Update comment.
2354
bf23a268
TT
23552020-09-29 Tom Tromey <tom@tromey.com>
2356
2357 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2358 dwarf2_default_access_attribute. Look up attribute.
2359 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2360 Update.
2361
7a5f294d
TT
23622020-09-29 Tom Tromey <tom@tromey.com>
2363
2364 * dwarf2/read.c (skip_one_die): Update.
2365 (read_full_die_1): Change how reprocessing is done.
2366 (partial_die_info::read): Update.
2367 (read_attribute_value): Remove need_reprocess parameter.
2368 (read_attribute): Likewise.
2369 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2370 New method.
2371
36d378cf
TT
23722020-09-29 Tom Tromey <tom@tromey.com>
2373
2374 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2375 (dwarf2_const_value_attr, dump_die_shallow)
2376 (dwarf2_fetch_constant_bytes): Update.
2377 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2378 comment.
2379 <set_address>: New method.
2380 (DW_ADDR): Remove.
2381 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2382 (attribute::as_string, attribute::as_address): Add assert.
2383
fe56917a
TT
23842020-09-29 Tom Tromey <tom@tromey.com>
2385
2386 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2387 (read_attribute_reprocess, read_attribute_value): Update.
2388 (read_attribute): Clear requires_reprocessing.
2389 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2390 form_requires_reprocessing>: New methods.
2391 <string_init>: Clear requires_reprocessing.
2392 <set_unsigned_reprocess>: New method.
2393 <name>: Shrink by one bit.
2394 <requires_reprocessing>: New member.
2395 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2396 method.
2397
414ad644
TT
23982020-09-29 Tom Tromey <tom@tromey.com>
2399
2400 * dwarf2/read.c (read_attribute_value): Update.
2401 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2402 set_unsigned>: New methods.
2403 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2404
1bc397c5
TT
24052020-09-29 Tom Tromey <tom@tromey.com>
2406
2407 * dwarf2/read.c (get_alignment, read_array_order)
2408 (read_attribute_value, dwarf2_const_value_attr)
2409 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2410 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2411 New methods.
2412 (DW_SND): Remove.
2413
630ed6b9
TT
24142020-09-29 Tom Tromey <tom@tromey.com>
2415
2416 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2417 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2418 Update.
2419 * dwarf2/attribute.h (struct attribute) <as_signature,
2420 set_signature>: New methods.
2421 (DW_SIGNATURE): Remove.
2422
9d2246fc
TT
24232020-09-29 Tom Tromey <tom@tromey.com>
2424
2425 * dwarf2/read.c (read_call_site_scope)
2426 (handle_data_member_location, dwarf2_add_member_fn)
2427 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2428 (partial_die_info::read, read_attribute_value)
2429 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2430 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2431 (dwarf2_symbol_mark_computed): Update.
2432 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2433 methods.
2434 (DW_BLOCK): Remove.
2435 * dwarf2/attribute.c (attribute::form_is_block): Add
2436 DW_FORM_data16.
2437
c6481205
TT
24382020-09-29 Tom Tromey <tom@tromey.com>
2439
2440 * dwarf2/read.c (read_cutu_die_from_dwo)
2441 (read_attribute_reprocess, read_attribute_value, read_attribute)
2442 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2443 (dwarf2_fetch_constant_bytes): Update.
2444 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2445 <set_string_noncanonical, set_string_canonical>: New methods.
2446 <string_is_canonical>: Update comment.
2447 <canonical_string_p>: Add assert.
2448 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2449 * dwarf2/attribute.c (attribute::form_is_string): New method.
2450 (attribute::string): Use it.
2451
3b64bf15
TT
24522020-09-29 Tom Tromey <tom@tromey.com>
2453
2454 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2455 (dump_die_shallow): Use canonical_string_p.
2456 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2457 method.
2458
2c830f54
TT
24592020-09-29 Tom Tromey <tom@tromey.com>
2460
2461 * dwarf2/read.c (partial_die_info::read)
2462 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2463 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2464 attribute::as_string.
2465
6c412691
TT
24662020-09-29 Tom Tromey <tom@tromey.com>
2467
2468 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2469 DW_ADDR.
2470 (attribute::string): Don't use DW_STRING.
2471 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2472 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2473
95f982e5
TT
24742020-09-29 Tom Tromey <tom@tromey.com>
2475
2476 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2477 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2478 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2479 * dwarf2/attribute.h (struct attribute): Rename methods.
2480 * dwarf2/attribute.c (attribute::as_address): Rename from
2481 value_as_address.
2482 (attribute::as_string): Rename from value_as_string.
2483
f800b00e
TT
24842020-09-29 Tom Tromey <tom@tromey.com>
2485
2486 * dwarf2/read.c (partial_die_info::read) <case
2487 DW_AT_linkage_name>: Use value_as_string.
2488 (dwarf2_string_attr): Use value_as_string.
2489 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2490 method.
2491 * dwarf2/attribute.c (attribute::value_as_string): New method.
2492
de38d64a
PA
24932020-09-29 Pedro Alves <pedro@palves.net>
2494
2495 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2496 defined before using '#pragma GCC diagnostic' instead of checking
2497 __clang__.
2498
9aed480c
TT
24992020-09-28 Tom Tromey <tom@tromey.com>
2500
2501 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2502 (handle_signal_stop): Update.
2503 * procfs.c (procfs_target::insert_watchpoint): Update.
2504 * target.h (target_have_steppable_watchpoint): Now a function.
2505
8a3ecb79
TT
25062020-09-28 Tom Tromey <tom@tromey.com>
2507
2508 * infrun.c (set_schedlock_func): Update.
2509 * target.h (target_can_lock_scheduler): Now a function.
2510
55f6301a
TT
25112020-09-28 Tom Tromey <tom@tromey.com>
2512
2513 * inferior.h (class inferior) <has_execution>: Update.
2514 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2515 * valops.c (find_function_in_inferior)
2516 (value_allocate_space_in_inferior): Update.
2517 * top.c (kill_or_detach): Update.
2518 * target.c (target_preopen, set_target_permissions): Update.
2519 (target_has_execution_current): Remove.
2520 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2521 Update.
2522 * solib.c (update_solib_list, reload_shared_libraries): Update.
2523 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2524 * solib-dsbt.c (enable_break): Update.
2525 * score-tdep.c (score7_fetch_inst): Update.
2526 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2527 Update.
2528 * remote.c (remote_target::start_remote)
2529 (remote_target::remote_check_symbols, remote_target::open_1)
2530 (remote_target::remote_detach_1, remote_target::verify_memory)
2531 (remote_target::xfer_partial, remote_target::read_description)
2532 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2533 * record-full.c (record_full_open_1): Update.
2534 * record-btrace.c (record_btrace_target_open): Update.
2535 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2536 (value_nsstring): Update.
2537 * linux-thread-db.c (add_thread_db_info)
2538 (thread_db_find_new_threads_silently, check_thread_db_callback)
2539 (try_thread_db_load_1, record_thread): Update.
2540 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2541 Update.
2542 * linux-fork.c (checkpoint_command): Update.
2543 * infrun.c (set_non_stop, set_observer_mode)
2544 (check_multi_target_resumption, for_each_just_stopped_thread)
2545 (maybe_remove_breakpoints, normal_stop)
2546 (class infcall_suspend_state): Update.
2547 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2548 (info_program_command, attach_command): Update.
2549 * infcall.c (call_function_by_hand_dummy): Update.
2550 * inf-loop.c (inferior_event_handler): Update.
2551 * gcore.c (gcore_command, derive_heap_segment): Update.
2552 * exec.c (exec_file_command): Update.
2553 * eval.c (evaluate_subexp): Update.
2554 * compile/compile.c (compile_to_object): Update.
2555 * cli/cli-dump.c (restore_command): Update.
2556 * breakpoint.c (update_watchpoint)
2557 (update_inserted_breakpoint_locations)
2558 (insert_breakpoint_locations, get_bpstat_thread): Update.
2559 * target.h (target_has_execution): Remove macro.
2560 (target_has_execution_current): Don't declare.
2561 (target_has_execution): Rename from target_has_execution_1. Add
2562 argument default.
2563
05374cfd
TT
25642020-09-28 Tom Tromey <tom@tromey.com>
2565
2566 * mi/mi-main.c (exec_reverse_continue)
2567 (mi_cmd_list_target_features): Update.
2568 * infrun.c (set_exec_direction_func): Update.
2569 * target.c (default_execution_direction): Update.
2570 * reverse.c (exec_reverse_once): Update.
2571 * target.h (target_can_execute_reverse): Now a function.
2572
9dccd06e
TT
25732020-09-28 Tom Tromey <tom@tromey.com>
2574
2575 * tui/tui-regs.c (tui_get_register)
2576 (tui_data_window::show_registers): Update.
2577 * thread.c (scoped_restore_current_thread::restore)
2578 (scoped_restore_current_thread::scoped_restore_current_thread):
2579 Update.
2580 * regcache-dump.c (regcache_print): Update.
2581 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2582 Update.
2583 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2584 * mep-tdep.c (current_me_module, current_options): Update.
2585 * linux-thread-db.c (thread_db_load): Update.
2586 * infcmd.c (registers_info, info_vector_command)
2587 (info_float_command): Update.
2588 * ia64-tdep.c (ia64_frame_prev_register)
2589 (ia64_sigtramp_frame_prev_register): Update.
2590 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2591 * gcore.c (derive_stack_segment): Update.
2592 * frame.c (get_current_frame, has_stack_frames): Update.
2593 * findvar.c (language_defn::read_var_value): Update.
2594 * arm-tdep.c (arm_pc_is_thumb): Update.
2595 * target.c (target_has_registers): Rename from
2596 target_has_registers_1.
2597 * target.h (target_has_registers): Remove macro.
2598 (target_has_registers): Rename from target_has_registers_1.
2599
841de120
TT
26002020-09-28 Tom Tromey <tom@tromey.com>
2601
2602 * windows-tdep.c (tlb_make_value): Update.
2603 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2604 * thread.c (scoped_restore_current_thread::restore)
2605 (scoped_restore_current_thread::scoped_restore_current_thread)
2606 (thread_command): Update.
2607 * stack.c (backtrace_command_1, frame_apply_level_command)
2608 (frame_apply_all_command, frame_apply_command): Update.
2609 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2610 Update.
2611 * gcore.c (derive_stack_segment): Update.
2612 * frame.c (get_current_frame, has_stack_frames): Update.
2613 * auxv.c (info_auxv_command): Update.
2614 * ada-tasks.c (ada_build_task_list): Update.
2615 * target.c (target_has_stack): Rename from target_has_stack_1.
2616 * target.h (target_has_stack): Remove macro.
2617 (target_has_stack): Rename from target_has_stack_1.
2618
a739972c
TT
26192020-09-28 Tom Tromey <tom@tromey.com>
2620
2621 * target.c (target_has_memory): Rename from target_has_memory_1.
2622 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2623 * thread.c (scoped_restore_current_thread::restore)
2624 (scoped_restore_current_thread::scoped_restore_current_thread):
2625 Update.
2626 * frame.c (get_current_frame, has_stack_frames): Update.
2627 * target.h (target_has_memory): Remove macro.
2628 (target_has_memory): Rename from target_has_memory_1.
2629
5b8a4776
TT
26302020-09-28 Tom Tromey <tom@tromey.com>
2631
2632 * target.c (target_has_all_memory_1): Remove.
2633 * target.h (target_has_all_memory): Remove define.
2634 (target_has_all_memory_1): Don't declare.
2635
bd356ec6
SM
26362020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2637
2638 * ser-base.c: Adjust comments formatting.
2639
2c72d5e5
TT
26402020-09-27 Tom Tromey <tom@tromey.com>
2641
2642 PR tui/25342:
2643 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2644
35a98237
TT
26452020-09-27 Tom Tromey <tom@tromey.com>
2646
2647 PR tui/25342:
2648 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2649
9e820dec
TT
26502020-09-27 Tom Tromey <tom@tromey.com>
2651
2652 * unittests/tui-selftests.c: Update.
2653 * tui/tui-winsource.h (struct tui_source_window_base)
2654 <extra_margin, show_line_number, refresh_pad>: New methods.
2655 <m_max_length, m_pad>: New members.
2656 (tui_copy_source_line): Update.
2657 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2658 first_col, line_width, ndigits parameters. Add length.
2659 (tui_source_window_base::show_source_line): Write to pad. Line
2660 number now 0-based.
2661 (tui_source_window_base::refresh_pad): New method.
2662 (tui_source_window_base::show_source_content): Write to pad. Call
2663 refresh_pad.
2664 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2665 not refill.
2666 (tui_source_window_base::update_exec_info): Call
2667 show_line_number.
2668 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2669 method.
2670 <m_digits>: New member.
2671 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2672 and m_max_length.
2673 (tui_source_window::show_line_number): New method.
2674 * tui/tui-io.h (tui_puts): Fix comment.
2675 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2676 m_max_length.
2677
c15c15c8
TT
26782020-09-27 Tom Tromey <tom@tromey.com>
2679
2680 * tui/tui-winsource.c
2681 (tui_source_window_base::set_is_exec_point_at): Don't call
2682 show_source_line.
2683
149830c1
TT
26842020-09-27 Tom Tromey <tom@tromey.com>
2685
2686 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2687 method.
2688 <erase>: Update.
2689 <cursor_x, cursor_y>: Remove.
2690 <m_inner_window>: New member.
2691 (tui_py_window::rerender): Create inner window.
2692 (tui_py_window::output): Write to inner window.
2693
8f9929bb
GR
26942020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2695
2696 PR python/26586
2697 * cli/cli-script.c (execute_control_commands): don't set
2698 instream to nullptr here as this breaks the from_tty argument
2699 to gdb.execute in Python.
2700 (execute_user_command): set instream to nullptr here instead.
2701
956bdb59
SM
27022020-09-25 Simon Marchi <simon.marchi@efficios.com>
2703
2704 * infrun.h (infrun_debug_printf): Fix formatting.
2705 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2706
3b93626b
SJ
27072020-09-25 Saagar Jha <saagar@saagarjha.com>
2708
2709 * compile/compile-object-load.h (struct munmap_list): Add
2710 explicitly-defined move constructor.
2711
b551a89f
TT
27122020-09-24 Tom Tromey <tromey@adacore.com>
2713
2714 PR tui/26638:
2715 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2716 method.
2717 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2718 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2719 (tui_prev_win): Rewrite.
2720
99bb393f
HD
27212020-09-23 Hannes Domani <ssbssa@yahoo.de>
2722
2723 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2724 in WOW64 processes as SIGINT.
2725 * nat/windows-nat.h: Make wow64_process a shared variable.
2726 * windows-nat.c: Remove static wow64_process variable.
2727
20a5fcbd
TT
27282020-09-23 Tom Tromey <tom@tromey.com>
2729
2730 PR symtab/25470:
2731 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2732 offset and bit size.
2733 * printcmd.c (print_scalar_formatted): Handle zero-length
2734 integer.
2735 (print_scalar_formatted): Use bit_size_differs_p.
2736 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2737 constant.
2738 (union type_specific): <int_stuff>: New member.
2739 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2740 methods.
2741 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2742 TYPE_SPECIFIC_FIELD.
2743 (recursive_dump_type, copy_type_recursive): Update.
2744 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2745 DW_AT_data_bit_offset.
2746
bac51ab7
TT
27472020-09-23 Tom Tromey <tom@tromey.com>
2748
2749 * utils.h (class gdb_argv): Add move operators.
2750 <append>: New methods.
2751 * compile/compile.c (build_argc_argv): Remove.
2752 (compile_args_argc): Remove.
2753 (compile_args_argv): Change type.
2754 (set_compile_args): Simplify.
2755 (append_args): Remove.
2756 (filter_args): Remove argcp parameter.
2757 (get_args): Return gdb_argv. Simplify.
2758 (compile_to_object): Update.
2759
92677124
TT
27602020-09-23 Tom Tromey <tom@tromey.com>
2761
2762 * compile/compile-object-run.c (do_module_cleanup)
2763 <~do_module_cleanup> :Remove.
2764 (do_module_cleanup): Update.
2765 * compile/compile-object-load.h (struct munmap_list): Add move
2766 assignment operator.
2767 <source_file>: Now a std::string.
2768 <munmap_list>: Rename. No longer a pointer.
2769 * compile/compile-object-load.c (struct setup_sections_data): Add
2770 constructor.
2771 <setup_one_section>: Declare.
2772 <munmap_list>: Move earlier.
2773 <m_bfd>: New member.
2774 <m_last_size, m_last_section_first, m_last_prot,
2775 m_last_max_alignment>: Rename, add initializers where needed.
2776 (setup_sections_data::setup_one_section): Rename from
2777 setup_sections. Update.
2778 (compile_object_load): Update. Don't use bfd_map_over_sections.
2779
e616f60a
TT
27802020-09-23 Tom Tromey <tom@tromey.com>
2781
2782 * compile/compile-object-run.c (struct do_module_cleanup): Add
2783 parameters to constructor. Update destructor.
2784 <source_file, scope, scope_data, out_value_type, out_value_addr,
2785 munmap_list_head, objfile_name_string>: Remove.
2786 <module>: New member.
2787 (do_module_cleanup): Update.
2788 (compile_object_run): Update.
2789
e947a848
TT
27902020-09-23 Tom Tromey <tom@tromey.com>
2791
2792 * compile/compile.c (eval_compile_command): Update.
2793 * compile/compile-object-run.h (compile_object_run): Take a
2794 compile_module_up.
2795 * compile/compile-object-run.c (compile_object_run): Take a
2796 compile_module_up.
2797 * compile/compile-object-load.h (struct compile_module): Add
2798 constructor, destructor.
2799 (compile_module_up): New typedef.
2800 (compile_object_load): Return compile_object_up.
2801 * compile/compile-object-load.c (compile_object_load): Return
2802 compile_module_up.
2803
0dbf6ee6
TT
28042020-09-23 Tom Tromey <tom@tromey.com>
2805
2806 * compile/compile-object-run.c (struct do_module_cleanup): Add
2807 constructor, destructor.
2808 <objfile_name_string>: Don't use struct hack.
2809 (do_module_cleanup): Use delete.
2810 (compile_object_run): Use new.
2811
ebe824f5
TT
28122020-09-23 Tom Tromey <tom@tromey.com>
2813
2814 * compile/compile-cplus-types.c
2815 (compile_cplus_convert_struct_or_union): Use std::vector.
2816 (compile_cplus_convert_func): Likewise.
2817 * compile/compile-c-types.c (convert_func): Use std::vector.
2818
5dd918d9
TT
28192020-09-21 Tom Tromey <tromey@adacore.com>
2820
2821 * sparc-tdep.c (sparc32_skip_prologue): Use
2822 skip_prologue_using_sal.
2823
5486c517
TT
28242020-09-19 Tom Tromey <tom@tromey.com>
2825
2826 * symfile.c (add_section_size_callback): Remove.
2827 (load_one_section): Rename from load_section_callback. Change
2828 parameters.
2829 (generic_load): Use foreach.
2830
8a6bb1d1
TT
28312020-09-19 Tom Tromey <tom@tromey.com>
2832
2833 * exec.c (add_to_section_table): Remove.
2834 (build_section_table): Use foreach.
2835
08f93a1a
TT
28362020-09-19 Tom Tromey <tom@tromey.com>
2837
2838 * elfread.c (elf_locate_sections): Change parameters.
2839 (elf_symfile_read): Use foreach.
2840
03cd72b8
TT
28412020-09-19 Tom Tromey <tom@tromey.com>
2842
2843 * cli/cli-dump.c (struct callback_data): Remove.
2844 (restore_one_section): Rename from restore_section_callback.
2845 Change parameters.
2846 (restore_binary_file): Change parameters.
2847 (restore_command): Use foreach.
2848
f4f2b85f
TT
28492020-09-19 Tom Tromey <tom@tromey.com>
2850
2851 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2852 (gcore_copy_callback): Likewise.
2853 (gcore_memory_sections): Use foreach.
2854
b35c1d1c
TT
28552020-09-19 Tom Tromey <tom@tromey.com>
2856
2857 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2858 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2859 parameters.
2860 (generic_elf_osabi_sniffer): Use foreach.
2861 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2862 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2863
5bb6e9dd
TT
28642020-09-19 Tom Tromey <tom@tromey.com>
2865
2866 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2867 (dwarf2_get_dwz_file): Use foreach.
2868 (dwarf2_locate_dwo_sections): Change parameters.
2869 (open_and_init_dwo_file): Use foreach.
2870 (dwarf2_locate_common_dwp_sections): Change parameters.
2871 (open_and_init_dwp_file): Use foreach.
2872
ad7277da
TT
28732020-09-19 Tom Tromey <tom@tromey.com>
2874
2875 * symfile.h: (find_lowest_section): Don't declare.
2876 * symfile.c (find_lowest_section): Now static. Change
2877 parameters.
2878 (struct place_section_arg): Remove.
2879 (place_section): Change parameters.
2880 (addr_info_make_relative): Use foreach.
2881 (symfile_dummy_outputs): Remove.
2882 (default_symfile_relocate): Use foreach.
2883
cb814f2e
TT
28842020-09-19 Tom Tromey <tom@tromey.com>
2885
2886 * objfiles.c (add_to_objfile_sections): Rename from
2887 add_to_objfile_sections_full.
2888 (add_to_objfile_sections): Remove.
2889 (build_objfile_section_table): Use foreach.
2890
3cabfd26
TT
28912020-09-19 Tom Tromey <tom@tromey.com>
2892
2893 * stap-probe.c (get_stap_base_address_1): Remove.
2894 (get_stap_base_address): Use foreach.
2895
1ce51eb5
TT
28962020-09-19 Tom Tromey <tom@tromey.com>
2897
2898 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2899 parameters.
2900 (gdb_bfd_close_or_warn): Use foreach.
2901
a190fabb
TT
29022020-09-19 Tom Tromey <tom@tromey.com>
2903
2904 * corelow.c (add_to_thread_list): Change parameters.
2905 (core_target_open): Use foreach.
2906
cafb0d81
TT
29072020-09-19 Tom Tromey <tom@tromey.com>
2908
2909 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2910 existing function.
2911
c8d5abea
AB
29122020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2913
2914 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2915 for arrays.
2916
6d816919
AB
29172020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * eval.c: Remove 'f-lang.h' include.
2920 (value_f90_subarray): Moved to f-lang.c.
2921 (eval_call): Renamed to...
2922 (evaluate_subexp_do_call): ...this, is no longer static, header
2923 comment moved into header file.
2924 (evaluate_funcall): Update call to eval_call.
2925 (skip_undetermined_arglist): Moved to f-lang.c.
2926 (fortran_value_subarray): Likewise.
2927 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2928 moved to evaluate_subexp_f.
2929 (calc_f77_array_dims): Moved to f-lang.c
2930 * expprint.c (print_subexp_funcall): New function.
2931 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2932 moved to print_subexp_f, OP_FUNCALL uses new function.
2933 (dump_subexp_body_funcall): New function.
2934 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2935 moved to dump_subexp_f, OP_FUNCALL uses new function.
2936 * expression.h (evaluate_subexp_do_call): Declare.
2937 * f-lang.c (value_f90_subarray): Moved from eval.c.
2938 (skip_undetermined_arglist): Likewise.
2939 (calc_f77_array_dims): Likewise.
2940 (fortran_value_subarray): Likewise.
2941 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2942 (operator_length_f): Likewise.
2943 (print_subexp_f): Likewise.
2944 (dump_subexp_body_f): Likewise.
2945 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2946 declaration of this operation to here.
2947 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2948 support moved to operator_length_f.
2949 * parser-defs.h (dump_subexp_body_funcall): Declare.
2950 (print_subexp_funcall): Declare.
2951 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2952 fortran-operator.def.
2953
8c37706a
AB
29542020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2955
2956 * eval.c (fortran_value_subarray): New function, content is taken
2957 from...
2958 (evaluate_subexp_standard): ...here, in two places. Now arrays
2959 and strings both call the new function.
2960 (calc_f77_array_dims): Add header comment, handle strings.
2961
14f9473c
VC
29622020-09-18 Victor Collod <vcollod@nvidia.com>
2963
2964 PR gdb/26635
2965 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2966 (i386_analyze_prologue): Call i386_skip_endbr.
2967
b60cea74
TT
29682020-09-18 Tom Tromey <tromey@adacore.com>
2969
2970 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2971 (windows_nat_target::wait): Update.
2972 * target/wait.h (enum target_wait_flag): New. Use
2973 DEF_ENUM_FLAGS_TYPE.
2974 * target/target.h (target_wait): Change type of options.
2975 * target.h (target_options_to_string, default_target_wait):
2976 Update.
2977 (struct target_ops) <wait>: Change type of options.
2978 * target.c (target_wait, default_target_wait, do_option): Change
2979 type of "options".
2980 (target_options_to_string): Likewise.
2981 * target-delegates.c: Rebuild.
2982 * target-debug.h (target_debug_print_target_wait_flags): Rename
2983 from target_debug_print_options.
2984 * sol-thread.c (class sol_thread_target) <wait>: Update.
2985 (sol_thread_target::wait): Update.
2986 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2987 (rs6000_nat_target::wait): Update.
2988 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2989 Update.
2990 (remote_target::wait_ns, remote_target::wait_as): Change type of
2991 "options".
2992 (remote_target::wait): Update.
2993 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2994 (gdbsim_target::wait): Update.
2995 * record-full.c (class record_full_base_target) <wait>: Update.
2996 (record_full_wait_1): Change type of "options".
2997 (record_full_base_target::wait): Update.
2998 * record-btrace.c (class record_btrace_target) <wait>: Update.
2999 (record_btrace_target::wait): Update.
3000 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3001 Update.
3002 (ravenscar_thread_target::wait): Update.
3003 * procfs.c (class procfs_target) <wait>: Update.
3004 (procfs_target::wait): Update.
3005 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3006 * obsd-nat.c (obsd_nat_target::wait): Update.
3007 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3008 (nto_procfs_target::wait): Update.
3009 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3010 * nbsd-nat.c (nbsd_wait): Change type of "options".
3011 (nbsd_nat_target::wait): Update.
3012 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3013 (thread_db_target::wait): Update.
3014 * linux-nat.h (class linux_nat_target) <wait>: Update.
3015 * linux-nat.c (linux_nat_target::wait): Update.
3016 (linux_nat_wait_1): Update.
3017 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3018 "options".
3019 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3020 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3021 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3022 (go32_nat_target::wait): Update.
3023 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3024 * gnu-nat.c (gnu_nat_target::wait): Update.
3025 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3026 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3027 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3028 * darwin-nat.c (darwin_nat_target::wait): Update.
3029 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3030 (bsd_uthread_target::wait): Update.
3031 * aix-thread.c (class aix_thread_target) <wait>: Update.
3032 (aix_thread_target::wait): Update.
3033
0295dde6
AB
30342020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3035
3036 * compile/compile-object-run.c (create_copied_type_recursive): New
3037 function.
3038 (compile_object_run): Use new function.
3039
d3483b43
JT
30402020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3041
3042 * NEWS: Mention x86_64 Cygwin core file support.
3043
e7d612ad
JT
30442020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3045
3046 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3047 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3048
aff9d387
JT
30492020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3050
62a5151b
JT
3051 * windows-tdep.h: Add prototypes.
3052 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3053 (i386_windows_core_pid_to_str): Move and rename ...
3054 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3055 (windows_core_pid_to_str): ... and here.
3056 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3057
30582020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3059 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3060 (amd64_windows_init_abi_common): ... and register.
3061
7d155da3
JT
30622020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3063
3064 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3065 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3066
e8ef12b9
PA
30672020-09-18 Pedro Alves <pedro@palves.net>
3068
3069 PR gdb/26631
3070 * thread.c (thread_find_command): Switch inferior before calling
3071 target methods.
3072
c1e1314d
TT
30732020-09-17 Tom Tromey <tromey@adacore.com>
3074
3075 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3076 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3077 (tdesc_arch_data_up): New typedef.
3078 (tdesc_use_registers, tdesc_data_alloc): Update.
3079 (tdesc_data_cleanup): Don't declare.
3080 * target-descriptions.c (tdesc_data_alloc): Return a
3081 tdesc_arch_data_up.
3082 (tdesc_arch_data_deleter::operator()): Rename from
3083 tdesc_data_cleanup. Change argument type.
3084 (tdesc_use_registers): Change early_data to an rvalue reference.
3085 (tdesc_use_registers): Don't use delete.
3086 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3087 * s390-tdep.c (s390_gdbarch_init): Update.
3088 * rx-tdep.c (rx_gdbarch_init): Update.
3089 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3090 * riscv-tdep.c (riscv_gdbarch_init): Update.
3091 * or1k-tdep.c (or1k_gdbarch_init): Update.
3092 * nios2-tdep.c (nios2_gdbarch_init): Update.
3093 * nds32-tdep.c (nds32_gdbarch_init): Update.
3094 * mips-tdep.c (mips_gdbarch_init): Update.
3095 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3096 * m68k-tdep.c (m68k_gdbarch_init): Update.
3097 * i386-tdep.c (i386_gdbarch_init): Update.
3098 * arm-tdep.c (arm_gdbarch_init): Update.
3099 * arc-tdep.c (arc_tdesc_init): Update.
3100 (arc_gdbarch_init): Update.
3101 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3102
0363df3d
HD
31032020-09-17 Hannes Domani <ssbssa@yahoo.de>
3104
3105 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3106 for WOW64 processes.
3107
280a9412
TT
31082020-09-17 Tom Tromey <tom@tromey.com>
3109
3110 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3111
6108fd18
TT
31122020-09-17 Tom Tromey <tom@tromey.com>
3113
3114 * value.c (preserve_values): Update.
3115 * python/py-type.c (save_objfile_types): Update.
3116 * guile/scm-type.c (save_objfile_types): Update.
3117 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3118 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3119 * compile/compile-object-run.c (compile_object_run): Update.
3120
fa9b1164
TT
31212020-09-17 Tom Tromey <tom@tromey.com>
3122
3123 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3124 Remove.
3125 <m_table>: Now htab_up.
3126 * typeprint.c (typedef_hash_table::recursively_update)
3127 (typedef_hash_table::add_template_parameters)
3128 (typedef_hash_table::typedef_hash_table): Update.
3129 (typedef_hash_table::~typedef_hash_table): Remove.
3130 (typedef_hash_table::typedef_hash_table)
3131 (typedef_hash_table::find_global_typedef)
3132 (typedef_hash_table::find_typedef): Update.
3133
eb53f105
TT
31342020-09-17 Tom Tromey <tom@tromey.com>
3135
3136 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3137
7a8a5d47
TT
31382020-09-17 Tom Tromey <tom@tromey.com>
3139
3140 * linespec.c (class decode_compound_collector)
3141 <~decode_compound_collector>: Remove.
3142 <m_unique_syms>: Now htab_up.
3143 (decode_compound_collector::operator ()): Update.
3144 (class symtab_collector) <~symtab_collector>: Remove.
3145 <m_symtab_table>: Now htab_up.
3146 (symtab_collector::operator ()): Update.
3147
99032cfc
TT
31482020-09-17 Tom Tromey <tom@tromey.com>
3149
3150 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3151 (filename_seen_cache::clear): Update.
3152 (~filename_seen_cache): Remove.
3153 (filename_seen_cache::seen): Update.
3154 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3155 htab_up.
3156 <~filename_seen_cache>: Remove.
3157 <traverse>: Update.
3158
32580f6d
TT
31592020-09-17 Tom Tromey <tom@tromey.com>
3160
3161 * completer.c (completion_tracker::discard_completions)
3162 (completion_tracker::~completion_tracker)
3163 (completion_tracker::maybe_add_completion)
3164 (completion_tracker::remove_completion)
3165 (completion_tracker::recompute_lowest_common_denominator)
3166 (completion_tracker::build_completion_result): Update.
3167 * completer.h (class completion_tracker) <have_completions>:
3168 Update.
3169 <m_entries_hash>: Now htab_up.
3170
c1fb9836
TT
31712020-09-17 Tom Tromey <tom@tromey.com>
3172
3173 * breakpoint.c (ambiguous_names_p): Use htab_up.
3174
88f07206
TT
31752020-09-17 Tom Tromey <tom@tromey.com>
3176
3177 * auto-load.c (struct auto_load_pspace_info)
3178 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3179 <loaded_script_files, loaded_script_texts>: Change type to
3180 htab_up.
3181 (~auto_load_pspace_info) Remove.
3182 (init_loaded_scripts_info, maybe_add_script_file)
3183 (maybe_add_script_text, auto_load_info_scripts): Update.
3184
9519b2ee
TT
31852020-09-17 Tom Tromey <tromey@adacore.com>
3186
3187 * c-exp.y (name_obstack): Now static.
3188
d2cd4113
CC
31892020-09-17 Chungyi Chi <demonic@csie.io>
3190
3191 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3192
b650a282
SM
31932020-09-16 Simon Marchi <simon.marchi@efficios.com>
3194
3195 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3196 (add_solib_catchpoint): Likewise.
3197 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3198 to bool.
3199 (add_solib_catchpoint): Change int parameter/variable to bool.
3200 (catch_load_or_unload): Likewise.
3201 (init_catchpoint): Likewise.
3202 (create_fork_vfork_event_catchpoint): Likewise.
3203 (catch_fork_command_1): Likewise.
3204 (catch_exec_command_1): Likewise.
3205
4d0bcfcf
SM
32062020-09-16 Simon Marchi <simon.marchi@efficios.com>
3207
3208 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3209 Change instance_flags to m_instance_flags.
3210
fe830662
TT
32112020-09-16 Tom Tromey <tromey@adacore.com>
3212
3213 PR gdb/26598:
3214 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3215
fe5ddfc3
JB
32162020-09-16 John Baldwin <jhb@FreeBSD.org>
3217
3218 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3219 PL_FLAG_EXEC.
3220 (fbsd_nat_target::insert_exec_catchpoint)
3221 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3222 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3223 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3224
e911c666
JB
32252020-09-16 John Baldwin <jhb@FreeBSD.org>
3226
3227 * configure.ac: Remove check for kinfo_getvmmap().
3228 * configure, config.in: Regenerate.
3229 * fbsd-nat.c (fbsd_read_mapping): Remove
3230 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3231 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3232 kinfo_get_vmmap() are always present.
3233
1f17d372
JB
32342020-09-16 John Baldwin <jhb@FreeBSD.org>
3235
3236 * fbsd-nat.c: Always include support for
3237 TARGET_OBJECT_SIGNAL_INFO.
3238
bcb1da7f
JB
32392020-09-16 John Baldwin <jhb@FreeBSD.org>
3240
3241 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3242 sysctl and remove procfs fallback.
3243
5515f729
JB
32442020-09-16 John Baldwin <jhb@FreeBSD.org>
3245
3246 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3247 * fbsd-nat.h: Likewise.
3248
da1df1db
TBA
32492020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3250
3251 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3252 argument.
3253
0e25e767
AB
32542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3255
3256 * ada-lang.c (ada_language_data): Delete.
3257 (ada_language): Remove references to ada_language_data.
3258 * c-lang.c (c_language_data): Delete.
3259 (c_language): Remove references to c_language_data.
3260 (cplus_language_data): Delete.
3261 (cplus_language): Remove references to cplus_language_data.
3262 (asm_language_data): Delete.
3263 (asm_language): Remove references to asm_language_data.
3264 (minimal_language_data): Delete.
3265 (minimal_language): Remove references to minimal_language_data.
3266 * d-lang.c (d_language_data): Delete.
3267 (d_language): Remove references to d_language_data.
3268 * f-lang.c (f_language_data): Delete.
3269 (f_language): Remove references to f_language_data.
3270 * go-lang.c (go_language_data): Delete.
3271 (go_language): Remove references to go_language_data.
3272 * language.c (unknown_language_data): Delete.
3273 (unknown_language): Remove references to unknown_language_data.
3274 (auto_language_data): Delete.
3275 (auto_language): Remove references to auto_language_data.
3276 * language.h (language_data): Delete struct.
3277 (language_defn): No longer inherit from language_data.
3278 * m2-lang.c (m2_language_data): Delete.
3279 (m2_language): Remove references to m2_language_data.
3280 * objc-lang.c (objc_language_data): Delete.
3281 (objc_language): Remove references to objc_language_data.
3282 * opencl-lang.c (opencl_language_data): Delete.
3283 (opencl_language): Remove references to opencl_language_data.
3284 * p-lang.c (pascal_language_data): Delete.
3285 (pascal_language): Remove references to pascal_language_data.
3286 * rust-lang.c (rust_language_data): Delete.
3287 (rust_language): Remove references to rust_language_data.
3288
b7c6e27d
AB
32892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3290
3291 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3292 initializer.
3293 (ada_language::opcode_print_table): New member function.
3294 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3295 (c_language::opcode_print_table): New member function.
3296 (cplus_language_data): Remove la_op_print_tab initializer.
3297 (cplus_language::opcode_print_table): New member function.
3298 (asm_language_data): Remove la_op_print_tab initializer.
3299 (asm_language::opcode_print_table): New member function.
3300 (minimal_language_data): Remove la_op_print_tab initializer.
3301 (minimal_language::opcode_print_table): New member function.
3302 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3303 (d_language::opcode_print_table): New member function.
3304 * expprint.c (print_subexp_standard): Update call to
3305 opcode_print_table.
3306 (op_string): Likewise.
3307 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3308 (f_language::opcode_print_table): New member function.
3309 * go-lang.c (go_language_data): Remove la_op_print_tab
3310 initializer.
3311 (go_language::opcode_print_table): New member function.
3312 * language.c (unknown_language_data): Remove la_op_print_tab
3313 initializer.
3314 (unknown_language::opcode_print_table): New member function.
3315 (auto_language_data): Remove la_op_print_tab initializer.
3316 (auto_language::opcode_print_table): New member function.
3317 * language.h (language_data): Remove la_op_print_tab field.
3318 (language_defn::opcode_print_table): Declare new member function.
3319 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3320 initializer.
3321 (m2_language::opcode_print_table): New member function.
3322 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3323 initializer.
3324 (objc_language::opcode_print_table): New member function.
3325 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3326 initializer.
3327 (opencl_language::opcode_print_table): New member function.
3328 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3329 initializer.
3330 (pascal_language::opcode_print_table): New member function.
3331 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3332 initializer.
3333 (rust_language::opcode_print_table): New member function.
3334
5aba6ebe
AB
33352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3336
3337 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3338 (ada_language::expression_ops): New member function.
3339 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3340 (c_language::expression_ops): New member function.
3341 (cplus_language_data): Remove la_exp_desc initializer.
3342 (cplus_language::expression_ops): New member function.
3343 (asm_language_data): Remove la_exp_desc initializer.
3344 (asm_language::expression_ops): New member function.
3345 (minimal_language_data): Remove la_exp_desc initializer.
3346 (minimal_language::expression_ops): New member function.
3347 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3348 (d_language::expression_ops): New member function.
3349 * eval.c (evaluate_subexp): Update call to expression_ops.
3350 * expprint.c (print_subexp): Likewise.
3351 (op_name): Likewise.
3352 (dump_subexp_body): Likewise.
3353 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3354 (f_language::expression_ops): New member function.
3355 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3356 (go_language::expression_ops): New member function.
3357 * language.c (language_defn::expression_ops): New function.
3358 (unknown_language_data): Remove la_exp_desc initializer.
3359 (auto_language_data): Likewise.
3360 * language.h (language_data): Remove la_exp_desc field.
3361 (language_defn::expression_ops): Declare new member function.
3362 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3363 (m2_language::expression_ops): New member function.
3364 * objc-lang.c (objc_language_data): Remove la_exp_desc
3365 initializer.
3366 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3367 initializer.
3368 (opencl_language::expression_ops): New member function.
3369 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3370 * parse.c (operator_length): Update call to expression_ops.
3371 (exp_iterate): Likewise.
3372 * rust-lang.c (rust_language_data): Remove la_exp_desc
3373 initializer.
3374 (ruse_language::expression_ops): New member function.
3375
b63a3f3f
AB
33762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3377
3378 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3379 initializer.
3380 (ada_language::varobj_ops): New member function.
3381 * c-lang.c (c_language_data): Remove la_varobj_ops
3382 initializer.
3383 (cplus_language_data): Likewise.
3384 (cplus_language::varobj_ops): New member function.
3385 (asm_language_data): Remove la_varobj_ops initializer.
3386 (minimal_language_data): Likewise.
3387 * d-lang.c (d_language_data): Likewise.
3388 * f-lang.c (f_language_data): Likewise.
3389 * go-lang.c (go_language_data): Likewise.
3390 * language.c (language_defn::varobj_ops): New function.
3391 (unknown_language_data): Remove la_varobj_ops
3392 initializer.
3393 (auto_language_data): Likewise.
3394 * language.h (language_data): Remove la_varobj_ops field.
3395 (language_defn::varobj_ops): Declare new member function.
3396 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3397 * objc-lang.c (objc_language_data): Likewise.
3398 * opencl-lang.c (opencl_language_data): Likewise.
3399 * p-lang.c (pascal_language_data): Likewise.
3400 * rust-lang.c (rust_language_data): Likewise.
3401 * varobj.c (varobj_create): Update call to varobj_ops.
3402 * varobj.h (default_varobj_ops): Delete define.
3403
1ac14a04
AB
34042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3407 initializer.
3408 * c-lang.c (c_language_data): Likewise.
3409 (c_language::macro_expansion): New member function.
3410 (cplus_language_data): Likewise.
3411 (cplus_language::macro_expansion): New member function.
3412 (asm_language_data): Likewise.
3413 (asm_language::macro_expansion): New member function.
3414 (minimal_language_data): Likewise.
3415 (minimal_language::macro_expansion): New member function.
3416 * d-lang.c (d_language_data): Remove la_macro_expansion
3417 initializer.
3418 * f-lang.c (f_language_data): Likewise.
3419 * go-lang.c (go_language_data): Likewise.
3420 * language.c (unknown_language_data): Likewise.
3421 (auto_language_data): Likewise.
3422 * language.h (language_data): Remove la_macro_expansion field.
3423 (language_defn::macro_expansion): New member function.
3424 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3425 initializer.
3426 * objc-lang.c (objc_language_data): Likewise.
3427 (objc_language::macro_expansion): New member function.
3428 * opencl-lang.c (opencl_language_data): Likewise.
3429 (opencl_language::macro_expansion): New member function.
3430 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3431 initializer.
3432 * rust-lang.c (rust_language_data): Likewise.
3433 * symtab.c (default_collect_symbol_completion_matches_break_on):
3434 Update call to macro_expansion.
3435
3a3440fb
AB
34362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3437
3438 * ada-lang.c (ada_language_data): Remove la_array_ordering
3439 initializer.
3440 * c-lang.c (c_language_data): Likewise.
3441 (cplus_language_data): Likewise.
3442 (asm_language_data): Likewise.
3443 (minimal_language_data): Likewise.
3444 * d-lang.c (d_language_data): Likewise.
3445 * dwarf2/read.c (read_array_order): Update for call to
3446 array_ordering.
3447 * f-lang.c (f_language_data): Remove la_array_ordering
3448 initializer.
3449 (f_language::array_ordering): New member function.
3450 * go-lang.c (go_language_data): Remove la_array_ordering
3451 initializer.
3452 * language.c (unknown_language_data): Likewise.
3453 (auto_language_data): Likewise.
3454 * language.h (language_data): Delete la_array_ordering field.
3455 (language_defn::array_ordering): New member function.
3456 * m2-lang.c (m2_language_data): Remove la_array_ordering
3457 initializer.
3458 * objc-lang.c (objc_language_data): Likewise.
3459 * opencl-lang.c (opencl_language_data): Likewise.
3460 * p-lang.c (pascal_language_data): Likewise.
3461 * rust-lang.c (rust_language_data): Likewise.
3462
0d201fa4
AB
34632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3464
3465 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3466 initializer.
3467 * c-lang.c (c_language_data): Likewise.
3468 (cplus_language_data): Likewise.
3469 (asm_language_data): Likewise.
3470 (minimal_language_data): Likewise.
3471 * d-lang.c (d_language_data): Likewise.
3472 * f-lang.c (f_language_data): Likewise.
3473 (f_language::case_sensitivity): New member function.
3474 * go-lang.c (go_language_data): Remove la_case_sensitivity
3475 initializer.
3476 * language.c (enum case_mode): Moved here from language.h.
3477 (case_mode): Make static.
3478 (show_case_command): Update for case_sensitivity being a method.
3479 (set_case_command): Likewise.
3480 (set_range_case): Likewise.
3481 (unknown_language_data): Remove la_case_sensitivity initializer.
3482 (auto_language_data): Likewise.
3483 * language.h (case_mode): Delete, move enum declaration to
3484 language.c.
3485 (language_data): Delete la_case_sensitivity field.
3486 (language_defn::case_sensitivity): New member function.
3487 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3488 initializer.
3489 * objc-lang.c (objc_language_data): Likewise.
3490 * opencl-lang.c (opencl_language_data): Likewise.
3491 * p-lang.c (pascal_language_data): Likewise.
3492 * rust-lang.c (rust_language_data): Likewise.
3493
efdf6a73
AB
34942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3495
3496 * ada-lang.c (ada_language_data): Remove la_range_check
3497 initializer.
3498 * c-lang.c (c_language_data): Likewise.
3499 (cplus_language_data): Likewise.
3500 (asm_language_data): Likewise.
3501 (minimal_language_data): Likewise.
3502 * d-lang.c (d_language_data): Likewise.
3503 * f-lang.c (f_language_data): Likewise.
3504 (f_language::range_checking_on_by_default): New member function.
3505 * go-lang.c (go_language_data): Remove la_range_check initializer.
3506 * language.c (enum range_mode): Moved here from language.h.
3507 (range_mode): Made static.
3508 (show_range_command): Update to use
3509 range_checking_on_by_default.
3510 (set_range_command): Likewise.
3511 (set_range_case): Likewise.
3512 (unknown_language_data): Remove la_range_check initializer.
3513 (auto_language_data): Likewise.
3514 * language.h (range_mode): Delete. Enum definition moved to
3515 language.c.
3516 (language_data): Remove la_range_check field.
3517 (language_defn::range_checking_on_by_default): New member
3518 function.
3519 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3520 (m2_language::range_checking_on_by_default): New member function.
3521 * objc-lang.c (objc_language_data): Remove la_range_check
3522 initializer.
3523 * opencl-lang.c (opencl_language_data): Likewise.
3524 * p-lang.c (pascal_language_data): Likewise.
3525 (pascal_language::range_checking_on_by_default): New member
3526 function.
3527 * rust-lang.c (rust_language_data): Remove la_range_check
3528 initializer.
3529 (rust_language::range_checking_on_by_default): New member
3530 function.
3531
bf92aec5
AB
35322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3533
3534 * dwarf2/read.c (dwarf2_physname): Remove special case for
3535 language_go.
3536 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3537 member function.
3538
d3355e4d
AB
35392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3540
3541 * ada-lang.c (ada_language_data): Remove
3542 la_store_sym_names_in_linkage_form_p initializer.
3543 (ada_language::store_sym_names_in_linkage_form_p): New member
3544 function.
3545 * c-lang.c (c_language_data): Remove
3546 la_store_sym_names_in_linkage_form_p initializer.
3547 (c_language::store_sym_names_in_linkage_form_p): New member
3548 function.
3549 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3550 initializer.
3551 (asm_language_data): Likewise.
3552 (asm_language::store_sym_names_in_linkage_form_p): New member
3553 function.
3554 (minimal_language_data): Remove
3555 la_store_sym_names_in_linkage_form_p initializer.
3556 (minimal_language::store_sym_names_in_linkage_form_p): New member
3557 function.
3558 * d-lang.c (d_language_data): Remove
3559 la_store_sym_names_in_linkage_form_p initializer.
3560 * dwarf2/read.c (dwarf2_physname): Update call to
3561 store_sym_names_in_linkage_form_p.
3562 * f-lang.c (f_language_data): Remove
3563 la_store_sym_names_in_linkage_form_p initializer.
3564 * go-lang.c (go_language_data): Remove
3565 la_store_sym_names_in_linkage_form_p initializer.
3566 * language.c (unknown_language_data): Remove
3567 la_store_sym_names_in_linkage_form_p initializer.
3568 (unknown_language::store_sym_names_in_linkage_form_p): New member
3569 function.
3570 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3571 initializer.
3572 (auto_language::store_sym_names_in_linkage_form_p): New member
3573 function.
3574 * language.h (language_data): Remove
3575 la_store_sym_names_in_linkage_form_p member variable.
3576 (language_defn::store_sym_names_in_linkage_form_p): New member
3577 function.
3578 * m2-lang.c (m2_language_data): Remove
3579 la_store_sym_names_in_linkage_form_p initializer.
3580 * objc-lang.c (objc_language_data): Likewise.
3581 * opencl-lang.c (opencl_language_data): Likewise.
3582 * p-lang.c (pascal_language_data): Likewise.
3583 * rust-lang.c (rust_language_data): Likewise.
3584
22c12a6c
AB
35852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3586
3587 * ada-lang.c (ada_language_data): Remove string_lower_bound
3588 initializer.
3589 * c-lang.c (c_language_data): Likewise.
3590 (cplus_language_data): Likewise.
3591 (asm_language_data): Likewise.
3592 (minimal_language_data): Likewise.
3593 * d-lang.c (d_language_data): Likewise.
3594 * f-lang.c (f_language_data): Likewise.
3595 * go-lang.c (go_language_data): Likewise.
3596 * language.c (unknown_language_data): Likewise.
3597 (auto_language_data): Likewise.
3598 * language.h (language_data): Remove string_lower_bound field.
3599 (language_defn::string_lower_bound): New member function.
3600 * m2-lang.c (m2_language_data): Remove string_lower_bound
3601 initializer.
3602 (m2_language::string_lower_bound): New member function.
3603 * objc-lang.c (objc_language_data): Remove string_lower_bound
3604 initializer.
3605 * opencl-lang.c (opencl_language_data): Likewise.
3606 * p-lang.c (pascal_language_data): Likewise.
3607 * rust-lang.c (rust_language_data): Likewise.
3608 * valops.c (value_cstring): Update call to string_lower_bound.
3609 (value_string): Likewise.
3610 * value.c (allocate_repeated_value): Likewise.
3611
1c236ddd
AB
36122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3613
3614 * valops.c (value_repeat): Fix incorrect argument name in comment.
3615
67bd3fd5
AB
36162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3617
3618 * ada-lang.c (ada_language_data): Remove c_style_arrays
3619 initializer.
3620 (ada_language::c_style_arrays_p): New member fuction.
3621 * c-lang.c (c_language_data): Remove c_style_arrays
3622 initializer.
3623 (cplus_language_data): Likewise.
3624 (asm_language_data): Likewise.
3625 (minimal_language_data): Likewise.
3626 * d-lang.c (d_language_data): Likewise.
3627 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3628 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3629 (f_language::c_style_arrays_p): New member function.
3630 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3631 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3632 * language.c (unknown_language_data): Remove c_style_arrays
3633 initializer.
3634 (auto_language_data): Likewise.
3635 * language.h (language_data): Remove c_style_arrays field.
3636 (language_defn::c_style_arrays_p): New member function.
3637 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3638 (m2_language::c_style_arrays_p): New member function.
3639 * objc-lang.c (objc_language_data): Remove c_style_arrays
3640 initializer.
3641 * opencl-lang.c (opencl_language_data): Likewise.
3642 * p-lang.c (pascal_language_data): Likewise.
3643 * rust-lang.c (rust_language_data): Likewise.
3644 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3645 and update local variable to a bool.
3646 * valops.c (value_cast): Update call to c_style_arrays_p.
3647 (value_array): Likewise.
3648 * value.c (coerce_array): Likewise.
3649
85967615
AB
36502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3651
3652 * ada-lang.c (ada_language_data): Remove la_language initializer.
3653 * c-lang.c (c_language_data): Likewise.
3654 (cplus_language_data): Likewise.
3655 (asm_language_data): Likewise.
3656 (minimal_language_data): Likewise.
3657 * d-lang.c (d_language_data): Likewise.
3658 * f-lang.c (f_language_data): Likewise.
3659 * go-lang.c (go_language_data): Likewise.
3660 * language.c (unknown_language_data): Likewise.
3661 (auto_language_data): Likewise.
3662 * language.h (language_data): Remove la_language field.
3663 (language_defn::language_defn): Initialise la_language field.
3664 (language_defn::la_language): New member variable.
3665 * m2-lang.c (m2_language_data): Remove la_language field.
3666 * objc-lang.c (objc_language_data): Likewise.
3667 * opencl-lang.c (opencl_language_data): Likewise.
3668 * p-lang.c (pascal_language_data): Likewise.
3669 * rust-lang.c (rust_language_data): Likewise.
3670
e171d6f1
AB
36712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3672
3673 * ada-lang.c (ada_extensions): Delete, moved into
3674 ada_language::filename_extensions.
3675 (ada_language_data): Remove la_filename_extensions initializer.
3676 (ada_language::filename_extensions): New member function.
3677 * c-lang.c (c_extensions): Delete, moved into
3678 c_language::filename_extensions.
3679 (c_language_data): Remove la_filename_extensions initializer.
3680 (c_language::filename_extensions): New member function.
3681 (cplus_extensions): Delete, moved into
3682 cplus_language::filename_extensions.
3683 (cplus_language_data): Remove la_filename_extensions initializer.
3684 (cplus_language::filename_extensions): New member function.
3685 (asm_extensions): Delete, moved into
3686 asm_language::filename_extensions.
3687 (asm_language_data): Remove la_filename_extensions initializer.
3688 (asm_language::filename_extensions): New member function.
3689 (minimal_language_data): Remove la_filename_extensions
3690 initializer.
3691 * d-lang.c (d_extensions): Delete, moved into
3692 d_language::filename_extensions.
3693 (d_language_data): Remove la_filename_extensions initializer.
3694 (d_language::filename_extensions): New member function.
3695 * f-lang.c (f_extensions): Delete, moved into
3696 f_language::filename_extensions.
3697 (f_language_data): Remove la_filename_extensions initializer.
3698 (f_language::filename_extensions): New member function.
3699 * go-lang.c (go_language_data): Remove la_filename_extensions
3700 initializer.
3701 * language.c (add_set_language_command): Update now that
3702 filename_extensions returns a vector.
3703 (unknown_language_data): Remove la_filename_extensions
3704 initializer.
3705 (auto_language_data): Likewise.
3706 * language.h (language_data): Remove la_filename_extensions field.
3707 (language_defn::filename_extensions): New member function.
3708 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3709 initializer.
3710 * objc-lang.c (objc_extensions): Delete, moved into
3711 objc_language::filename_extensions.
3712 (objc_language_data): Remove la_filename_extensions initializer.
3713 (objc_language::filename_extensions): New member function.
3714 * opencl-lang.c (opencl_language_data): Remove
3715 la_filename_extensions initializer.
3716 * p-lang.c (pascal_extensions): Delete, moved into
3717 pascal_language::filename_extensions.
3718 (pascal_language_data): Remove la_filename_extensions initializer.
3719 (pascal_language::filename_extensions): New member function.
3720 * rust-lang.c (rust_extensions): Delete, moved into
3721 rust_language::filename_extensions.
3722 (rust_language_data): Remove la_filename_extensions initializer.
3723 (rust_language::filename_extensions): New member function.
3724 * symfile.c (add_filename_language): Add new assert.
3725
6f7664a9
AB
37262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3727
3728 * ada-lang.c (ada_language_data): Remove la_name and
3729 la_natural_name initializers.
3730 (ada_language::name): New member function.
3731 (ada_language::natural_name): New member function.
3732 * c-lang.c (c_language_data): Remove la_name and
3733 la_natural_name initializers.
3734 (c_language::name): New member function.
3735 (c_language::natural_name): New member function.
3736 (cplus_language_data): Remove la_name and
3737 la_natural_name initializers.
3738 (cplus_language::name): New member function.
3739 (cplus_language::natural_name): New member function.
3740 (asm_language_data): Remove la_name and
3741 la_natural_name initializers.
3742 (asm_language::name): New member function.
3743 (asm_language::natural_name): New member function.
3744 (minimal_language_data): Remove la_name and
3745 la_natural_name initializers.
3746 (minimal_language::name): New member function.
3747 (minimal_language::natural_name): New member function.
3748 * compile/compile.c (compile_to_object): Update call to
3749 lanugage_defn::name.
3750 * d-lang.c (d_language_data): Remove la_name and
3751 la_natural_name initializers.
3752 (d_language::name): New member function.
3753 (d_language::natural_name): New member function.
3754 * expprint.c (print_subexp_standard): Update call to
3755 language_defn::name.
3756 (dump_raw_expression): Likewise
3757 (dump_prefix_expression): Likewise.
3758 * f-lang.c (f_language_data): Remove la_name and
3759 la_natural_name initializers.
3760 (f_language::name): New member function.
3761 (f_language::natural_name): New member function.
3762 * go-lang.c (go_language_data): Remove la_name and
3763 la_natural_name initializers.
3764 (go_language::name): New member function.
3765 (go_language::natural_name): New member function.
3766 * language.c (show_language_command): Update call to
3767 language_defn::name.
3768 (set_language_command): Likewise.
3769 (language_enum): Likewise.
3770 (language_str): Likewise.
3771 (add_set_language_command): Likewise, use
3772 language_defn::natural_name in the doc string.
3773 (unknown_language_data): Remove la_name and
3774 la_natural_name initializers.
3775 (unknown_language::name): New member function.
3776 (unknown_language::natural_name): New member function.
3777 (auto_language_data): Remove la_name and
3778 la_natural_name initializers.
3779 (auto_language::name): New member function.
3780 (auto_language::natural_name): New member function.
3781 (language_lookup_primitive_type_as_symbol): Update call to
3782 language_defn::name.
3783 * language.h (language_data): Remove la_name and la_natural_name
3784 member variables.
3785 (language_defn::name): New member function.
3786 (language_defn::natural_name): New member function.
3787 * m2-lang.c (m2_language_data): Remove la_name and
3788 la_natural_name initializers.
3789 (m2_language::name): New member function.
3790 (m2_language::natural_name): New member function.
3791 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3792 language_defn::natural_name.
3793 * objc-lang.c (objc_language_data): Remove la_name and
3794 la_natural_name initializers.
3795 (objc_language::name): New member function.
3796 (objc_language::natural_name): New member function.
3797 * opencl-lang.c (opencl_language_data): Remove la_name and
3798 la_natural_name initializers.
3799 (opencl_language::name): New member function.
3800 (opencl_language::natural_name): New member function.
3801 * p-lang.c (pascal_language_data): Remove la_name and
3802 la_natural_name initializers.
3803 (pascal_language::name): New member function.
3804 (pascal_language::natural_name): New member function.
3805 * rust-lang.c (rust_language_data): Remove la_name and
3806 la_natural_name initializers.
3807 (rust_language::name): New member function.
3808 (rust_language::natural_name): New member function.
3809 * symtab.c (lookup_language_this): Update call to
3810 language_defn::name.
3811
5bae7c4e
AB
38122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3813
3814 * ada-lang.c (ada_language_data): Remove la_name_of_this
3815 initializer.
3816 * ax-gdb.c (gen_expr): Update call to name_of_this.
3817 * c-exp.y (classify_name): Likewise.
3818 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3819 (cplus_language_data): Likewise.
3820 (cplus_language::name_of_this): New member function.
3821 (asm_language_data): Remove la_name_of_this initializer.
3822 (minimal_language_data): Likewise.
3823 * d-lang.c (d_language_data): Likewise.
3824 (d_language::name_of_this): New member function.
3825 * expprint.c (print_subexp_standard): Update call to name_of_this.
3826 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3827 * go-lang.c (go_language_data): Likewise.
3828 * language.c (unknown_language_data): Likewise.
3829 (unknown_language::name_of_this): New member function.
3830 (auto_language_data): Remove la_name_of_this initializer.
3831 (auto_language::name_of_this): New member function.
3832 * language.h (language_data): Delete la_name_of_this member
3833 variable.
3834 (language_defn::name_of_this): New member function.
3835 * m2-lang.c (m2_language_data): Remove la_name_of_this
3836 initializer.
3837 * objc-lang.c (objc_language_data): Likewise.
3838 (objc_language::name_of_this): New member function.
3839 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3840 initializer.
3841 * p-lang.c (pascal_language_data): Likewise.
3842 (pascal_language::name_of_this): New member function.
3843 * rust-lang.c (rust_language_data): Remove la_name_of_this
3844 initializer.
3845 * symtab.c (lookup_language_this): Update call to name_of_this.
3846 (lookup_symbol_aux): Likewise.
3847 * valops.c (value_of_this): Likewise.
3848
22e3f3ed
AB
38492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3850
3851 * ada-lang.c (ada_language_data): Remove
3852 la_struct_too_deep_ellipsis initializer.
3853 (ada_language::struct_too_deep_ellipsis): New member function.
3854 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3855 initializer.
3856 (cplus_language_data): Likewise.
3857 (asm_language_data): Likewise.
3858 (minimal_language_data): Likewise.
3859 * cp-valprint.c (cp_print_value): Update call to
3860 struct_too_deep_ellipsis.
3861 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3862 initializer.
3863 * f-lang.c (f_language_data): Likewise.
3864 (f_language::struct_too_deep_ellipsis): New member function.
3865 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3866 initializer.
3867 * language.c (unknown_language_data): Likewise.
3868 (auto_language_data): Likewise.
3869 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3870 member variable.
3871 (language_defn::struct_too_deep_ellipsis): New member function.
3872 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3873 initializer.Q
3874 * objc-lang.c (objc_language_data): Likewise.
3875 * opencl-lang.c (opencl_language_data): Likewise.
3876 * p-lang.c (pascal_language_data): Likewise.
3877 * rust-lang.c (rust_language_data): Likewise.
3878 * valprint.c (val_print_check_max_depth): Update call to
3879 struct_too_deep_ellipsis.
3880
ed29e1c7
FW
38812020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3882
3883 * MAINTAINERS (Write After Approval): Add myself.
3884
12d8f940
TT
38852020-09-15 Tom Tromey <tom@tromey.com>
3886
3887 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3888 Remove.
3889
6b5a7bc7
TT
38902020-09-15 Tom Tromey <tom@tromey.com>
3891
3892 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3893 and TYPE_CODE_METHODPTR cases.
3894 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3895 (c_value_print_inner): Update.
3896 * valprint.c (generic_value_print_memberptr): New function, from
3897 c_value_print_memberptr.
3898 (generic_value_print): Use it. Call cplus_print_method_ptr.
3899
47f0e2ff
TT
39002020-09-15 Tom Tromey <tromey@adacore.com>
3901
3902 * python/python-internal.h (PyInt_FromLong): Remove define.
3903 * python/py-value.c (convert_value_from_python): Use
3904 gdb_py_object_from_longest.
3905 * python/py-type.c (typy_get_code): Use
3906 gdb_py_object_from_longest.
3907 * python/py-symtab.c (salpy_get_line): Use
3908 gdb_py_object_from_longest.
3909 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3910 gdb_py_object_from_longest.
3911 * python/py-record.c (recpy_gap_reason_code): Use
3912 gdb_py_object_from_longest.
3913 * python/py-record-btrace.c (recpy_bt_insn_size)
3914 (recpy_bt_func_level, btpy_list_count): Use
3915 gdb_py_object_from_longest.
3916 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3917 gdb_py_object_from_longest. Fix error handling.
3918 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3919 gdb_py_object_from_longest.
3920 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3921 gdb_py_object_from_longest.
3922 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3923 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3924 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3925
512116ce
TT
39262020-09-15 Tom Tromey <tromey@adacore.com>
3927
3928 * python/python.c (gdbpy_parameter_value): Use
3929 gdb_py_object_from_ulongest.
3930
4ab1029c
TT
39312020-09-15 Tom Tromey <tromey@adacore.com>
3932
3933 * python/py-infevents.c (create_register_changed_event_object):
3934 Use gdb_py_object_from_longest.
3935 * python/py-exitedevent.c (create_exited_event_object): Use
3936 gdb_py_object_from_longest.
3937
062534d4
TT
39382020-09-15 Tom Tromey <tromey@adacore.com>
3939
3940 * python/python.c (gdbpy_parameter_value): Use
3941 gdb_py_object_from_longest.
3942 * python/py-type.c (convert_field, typy_range): Use
3943 gdb_py_object_from_longest.
3944 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3945 gdb_py_object_from_longest.
3946 * python/py-lazy-string.c (stpy_get_length): Use
3947 gdb_py_object_from_longest.
3948 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3949 gdb_py_object_from_longest.
3950 * python/py-infevents.c (create_memory_changed_event_object): Use
3951 gdb_py_object_from_longest.
3952 * python/py-inferior.c (infpy_get_num): Use
3953 gdb_py_object_from_longest.
3954 (infpy_get_pid): Likewise.
3955
d1cab987
TT
39562020-09-15 Tom Tromey <tromey@adacore.com>
3957
3958 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3959 defines.
3960 * python/py-value.c (valpy_long): Use
3961 gdb_py_object_from_ulongest.
3962 * python/py-symtab.c (salpy_get_pc): Use
3963 gdb_py_object_from_ulongest.
3964 (salpy_get_last): Likewise.
3965 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3966 gdb_py_object_from_ulongest.
3967 * python/py-lazy-string.c (stpy_get_address): Use
3968 gdb_py_object_from_ulongest.
3969 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3970 * python/py-arch.c (archpy_disassemble): Use
3971 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3972 error handling.
3973
4bde49dc
TT
39742020-09-15 Tom Tromey <tromey@adacore.com>
3975
3976 * python/python-internal.h (gdb_py_long_from_longest): Remove
3977 defines.
3978 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3979 * python/py-type.c (convert_field, typy_get_sizeof): Use
3980 gdb_py_object_from_longest.
3981 * python/py-record-btrace.c (btpy_list_index): Use
3982 gdb_py_object_from_longest.
3983
37431074
TT
39842020-09-15 Tom Tromey <tromey@adacore.com>
3985
3986 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3987 * python/py-record.c (recpy_element_number): Use
3988 gdb_py_object_from_longest.
3989 (recpy_gap_number): Likewise.
3990
cbe25684
TT
39912020-09-15 Tom Tromey <tromey@adacore.com>
3992
3993 * top.c (ui::ui): Update.
3994 (highest_ui_num): Remove.
3995 * top.h (struct ui) <num>: Remove.
3996
db92ac45
TT
39972020-09-15 Tom Tromey <tromey@adacore.com>
3998
3999 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4000 * ui-style.c (ansi_regex_text): Now array.
4001 * rust-exp.y (number_regex_text): Now array.
4002 * linespec.c (linespec_quote_characters): Now array.
4003 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4004 Now arrays.
4005
d2b31b67
SM
40062020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4007
4008 * debuginfod-support.c (debuginfod_client_deleter): New.
4009 (debuginfod_client_up): New.
4010 (debuginfod_init): Return debuginfod_client_up.
4011 (debuginfod_source_query): Adjust.
4012 (debuginfod_debuginfo_query): Adjust.
4013
3246bd8e
SM
40142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4015
4016 * debuginfod-support.c (debuginfod_source_query): Use
4017 make_unique_xstrdup.
4018
10242f36
SM
40192020-09-14 Simon Marchi <simon.marchi@efficios.com>
4020
4021 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4022 with `type::instance_flags`.
4023
e1044e6a
MM
40242020-09-14 Michael Mullin <masmullin@gmail.com>
4025
4026 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4027 Remove baton parameter.
4028
04902b09
PA
40292020-09-14 Pedro Alves <pedro@palves.net>
4030
4031 * Makefile.in (SELFTESTS_SRCS): Add
4032 unittests/enum-flags-selftests.c.
4033 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4034 btrace_function_flags instead of enum btrace_function_flag.
4035 * compile/compile-c-types.c (convert_qualified): Use
4036 enum_flags::raw.
4037 * compile/compile-cplus-symbols.c (convert_one_symbol)
4038 (convert_symbol_bmsym):
4039 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4040 (compile_cplus_convert_struct_or_union_methods)
4041 (compile_cplus_instance::convert_qualified_base):
4042 * go-exp.y (parse_string_or_char): Add cast to int.
4043 * unittests/enum-flags-selftests.c: New file.
4044 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4045 type to btrace_thread_flags from btrace_thread_flag.
4046 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4047 local's type to btrace_thread_flags from btrace_thread_flag. Add
4048 cast in DEBUG call.
4049
69896a2c
PA
40502020-09-14 Pedro Alves <pedro@palves.net>
4051
4052 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4053 * gdbtypes.c (address_space_name_to_int): Rename to ...
4054 (address_space_name_to_type_instance_flags): ... this.
4055 (address_space_int_to_name): Rename to ...
4056 (address_space_type_instance_flags_to_name): ... this.
4057 * gdbtypes.h (address_space_name_to_int): Rename to ...
4058 (address_space_name_to_type_instance_flags): ... this.
4059 (address_space_int_to_name): Rename to ...
4060 (address_space_type_instance_flags_to_name): ... this.
4061 * type-stack.c (type_stack::insert): Adjust to rename.
4062 * type-stack.h (type_stack::insert): Likewise.
4063
314ad88d
PA
40642020-09-14 Pedro Alves <pedro@palves.net>
4065 Andrew Burgess <andrew.burgess@embecosm.com>
4066
4067 * avr-tdep.c (avr_address_class_type_flags): Return
4068 type_instance_flags.
4069 (avr_address_class_type_flags_to_name): Take a
4070 type_instance_flags.
4071 (avr_address_class_name_to_type_flags): Return bool and take a
4072 type_instance_flags.
4073 * d-lang.c (build_d_types): Use type::set_instance_flags.
4074 * ft32-tdep.c (ft32_address_class_type_flags): Return
4075 type_instance_flags.
4076 (ft32_address_class_type_flags_to_name): Take a
4077 type_instance_flags.
4078 (ft32_address_class_name_to_type_flags): Return bool and take a
4079 type_instance_flags.
4080 (ft32_gdbarch_init): Use type::set_instance_flags.
4081 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4082 * gdbarch.h, gdbarch.c: Regenerate.
4083 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4084 (address_class_name_to_type_flags): Use type_instance_flags and
4085 bool.
4086 * gdbtypes.c (address_space_name_to_int)
4087 (address_space_int_to_name, make_qualified_type): Use
4088 type_instance_flags.
4089 (make_qualified_type): Use type_instance_flags and
4090 type::set_instance_flags.
4091 (make_type_with_address_space, make_cv_type, make_vector_type)
4092 (check_typedef): Use type_instance_flags.
4093 (recursive_dump_type): Cast type_instance_flags to unsigned for
4094 printing.
4095 (copy_type_recursive): Use type::set_instance_flags.
4096 (gdbtypes_post_init): Use type::set_instance_flags.
4097 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4098 <m_instance_flags>: ... this.
4099 <instance_flags, set_instance_flags>: New methods.
4100 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4101 (SET_TYPE_INSTANCE_FLAGS): New.
4102 (address_space_name_to_int, address_space_int_to_name)
4103 (make_type_with_address_space): Pass flags using
4104 type_instance_flags instead of int.
4105 * stabsread.c (cleanup_undefined_types_noname): Use
4106 type::set_instance_flags.
4107 * s390-tdep.c (s390_address_class_type_flags): Return
4108 type_instance_flags.
4109 (s390_address_class_type_flags_to_name): Take a
4110 type_instance_flags.
4111 (s390_address_class_name_to_type_flags): Return bool and take a
4112 type_instance_flags.
4113 * type-stack.c (type_stack::follow_types): Use
4114 type_instance_flags.
4115 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4116
27087b7f
TT
41172020-09-14 Tom Tromey <tromey@adacore.com>
4118
4119 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4120 * x86-tdep.c (x86_is_thunk_register_name)
4121 (x86_in_indirect_branch_thunk): Update.
4122 * sparc64-tdep.c (sparc64_fpu_register_names)
4123 (sparc64_cp0_register_names, sparc64_register_names)
4124 (sparc64_pseudo_register_names): Now const.
4125 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4126 cp0_registers_num>: Now const.
4127 * sparc-tdep.c (sparc_core_register_names)
4128 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4129 (sparc32_pseudo_register_names): Now const.
4130 (validate_tdesc_registers): Update.
4131 * rust-lang.c (rust_extensions): Now const.
4132 * p-lang.c (p_extensions): Now const.
4133 * objc-lang.c (objc_extensions): Now const.
4134 * nto-tdep.c (nto_thread_state_str): Now const.
4135 * moxie-tdep.c (moxie_register_names): Now const.
4136 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4137 Now const.
4138 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4139 (mips_linux_reg_names): Now const.
4140 (mips_gdbarch_init): Update.
4141 * microblaze-tdep.c (microblaze_register_names): Now const.
4142 * m68k-tdep.c (m68k_register_names): Now const.
4143 * m32r-tdep.c (m32r_register_names): Now const.
4144 * ia64-tdep.c (ia64_register_names): Now const.
4145 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4146 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4147 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4148 ymm_avx512_register_names, pkeys_register_names>: Now const.
4149 * i386-tdep.c (i386_register_names, i386_zmm_names)
4150 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4151 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4152 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4153 * f-lang.c (f_extensions): Now const.
4154 * d-lang.c (d_extensions): Now const.
4155 * csky-tdep.c (csky_register_names): Now const.
4156 * charset.c (default_charset_names, charset_enum): Now const.
4157 (_initialize_charset): Update.
4158 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4159 const.
4160 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4161 (bsd_uthread_solib_loaded): Update.
4162 (bsd_uthread_state): Now const.
4163 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4164 (amd64_ymm_avx512_names, amd64_ymmh_names)
4165 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4166 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4167 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4168 (amd64_dword_names): Now const.
4169 * agent.c (can_use_agent_enum): Now const.
4170 * ada-tasks.c (task_states, long_task_states): Now const.
4171 * ada-lang.c (known_runtime_file_name_patterns)
4172 (known_auxiliary_function_name_patterns, attribute_names)
4173 (standard_exc, ada_extensions): Now const.
4174
89806626
SM
41752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4176
4177 * bcache.h (struct bcache) <bcache>: Remove constructor.
4178 <m_hash_function, m_compare_function>: Remove.
4179 <~bcache>: Make virtual.
4180 <compare>: Remove static method, introduce virtual method.
4181 <default_hash>: Remove.
4182 <hash>: New virtual method.
4183 * bcache.c (bcache::expand_hash_table): Update.
4184 (bcache::insert): Update.
4185 (bcache::hash): New.
4186 (bcache::compare): Update comment and parameter names.
4187 * gdbtypes.c (types_deeply_equal): Update.
4188 * psymtab.h (struct psymbol_bcache): New struct.
4189 (class psymtab_storage) <psymtab_storage>: Make default.
4190 <psymbol_cache>: Change type to psymbol_bcache.
4191 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4192 (psymbol_hash): Change to...
4193 (psymbol_bcache::hash): ... this.
4194 (psymbol_compare): Change to...
4195 (psymbol_bcache::compare): ... this.
4196
677c92fe
SM
41972020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4198
4199 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4200 checking for initial lwp.
4201
3eba3a01
TT
42022020-09-14 Tom Tromey <tromey@adacore.com>
4203
4204 * m68k-tdep.c (m68k_extract_return_value): Use
4205 pointer_result_regnum.
4206 (m68k_store_return_value): Likewise.
4207 (m68k_reg_struct_return_p): Handle vectors and arrays.
4208 (m68k_return_value): Handle arrays.
4209 (m68k_svr4_return_value): Fix single-element aggregate handling.
4210 Handle long double. Adjust for embedded ABI.
4211 (m68k_svr4_init_abi): Set pointer_result_regnum.
4212 (m68k_embedded_init_abi): New function.
4213 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4214 (m68k_osabi_sniffer): New function.
4215 (_initialize_m68k_tdep): Register osabi sniffer.
4216 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4217 member.
4218
33f4dd48
SM
42192020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4220
4221 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4222 with gdb::unique_xmalloc_ptr<char>.
4223
8400a90d
SM
42242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4225
4226 * xml-support.h (xml_fetch_another): Change type to be a
4227 function_view.
4228 (xml_process_xincludes): Remove baton parameter.
4229 (xml_fetch_content_from_file): Change baton parameter to
4230 dirname.
4231 * xml-support.c (struct xinclude_parsing_data)
4232 <xinclude_parsing_data>: Remove baton parameter.
4233 <fetcher_baton>: Remove.
4234 (xinclude_start_include): Adjust.
4235 (xml_process_xincludes): Adjust.
4236 (xml_fetch_content_from_file): Replace baton parameter with
4237 dirname.
4238 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4239 (xml_init_syscalls_info): Use a lambda.
4240 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4241 (file_read_description_xml): Use a lambda.
4242 (fetch_available_features_from_target): Change baton parameter
4243 to target_ops.
4244 (target_read_description_xml): Use a lambda.
4245 (target_fetch_description_xml): Use a lambda.
4246 (string_read_description_xml): Update.
4247
04f5bab2
SM
42482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4249
4250 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4251 uses with type::endianity_is_not_default.
4252
db558e34
SM
42532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * gdbtypes.h (struct type) <endianity_is_not_default,
4256 set_endianity_is_not_default>: New methods.
4257 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4258 type::endianity_is_not_default, change all write call sites to
4259 use type::set_endianity_is_not_default.
4260
22c4c60c
SM
42612020-09-14 Simon Marchi <simon.marchi@efficios.com>
4262
4263 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4264 uses with type::is_fixed_instance.
4265
9cdd0d12
SM
42662020-09-14 Simon Marchi <simon.marchi@efficios.com>
4267
4268 * gdbtypes.h (struct type) <is_fixed_instance,
4269 set_is_fixed_instance>: New methods.
4270 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4271 write call sites to use type::set_is_fixed_instance.
4272
0becda7a
SM
42732020-09-14 Simon Marchi <simon.marchi@efficios.com>
4274
4275 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4276 uses with type::is_gnu_ifunc.
4277
03cc7249
SM
42782020-09-14 Simon Marchi <simon.marchi@efficios.com>
4279
4280 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4281 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4282 use type::set_is_gnu_ifunc.
4283
3f46044c
SM
42842020-09-14 Simon Marchi <simon.marchi@efficios.com>
4285
4286 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4287 uses with type::stub_is_supported.
4288
9baccff6
SM
42892020-09-14 Simon Marchi <simon.marchi@efficios.com>
4290
4291 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4292 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4293 use type::set_stub_is_supported.
4294
bd63c870
SM
42952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4298 uses with type::is_vector.
4299
2062087b
SM
43002020-09-14 Simon Marchi <simon.marchi@efficios.com>
4301
4302 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4303 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4304 use type::set_is_vector.
4305
a409645d
SM
43062020-09-14 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4309 uses with type::has_varargs.
4310
1d6286ed
SM
43112020-09-14 Simon Marchi <simon.marchi@efficios.com>
4312
4313 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4314 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4315 use type::set_has_varargs.
4316
7f9f399b
SM
43172020-09-14 Simon Marchi <simon.marchi@efficios.com>
4318
4319 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4320 uses with type::is_prototyped.
4321
27e69b7a
SM
43222020-09-14 Simon Marchi <simon.marchi@efficios.com>
4323
4324 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4325 New methods.
4326 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4327 call sites to use type::set_is_prototyped.
4328
d2183968
SM
43292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4330
4331 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4332 uses with type::target_is_stub.
4333
8f53807e
SM
43342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4335
4336 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4337 New methods.
4338 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4339 sites to use type::set_target_is_stub.
4340
e46d3488
SM
43412020-09-14 Simon Marchi <simon.marchi@efficios.com>
4342
4343 * gdbtypes.h (TYPE_STUB): Remove, replace all
4344 uses with type::is_stub.
4345
b4b73759
SM
43462020-09-14 Simon Marchi <simon.marchi@efficios.com>
4347
4348 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4349 (TYPE_STUB): Use type::is_stub, change all write call sites to
4350 use type::set_is_stub.
4351
20ce4123
SM
43522020-09-14 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4355 type::has_no_signedness.
4356
15152a54
SM
43572020-09-14 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * gdbtypes.h (struct type) <has_no_signedness,
4360 set_has_no_signedness>: New methods.
4361 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4362 call sites to use type::set_has_no_signedness.
4363
c6d940a9
SM
43642020-09-14 Simon Marchi <simon.marchi@efficios.com>
4365
4366 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4367 type::is_unsigned.
4368
653223d3
SM
43692020-09-14 Simon Marchi <simon.marchi@efficios.com>
4370
4371 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4372 methods.
4373 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4374 sites to use type::set_is_unsigned.
4375
55ea94da 43762020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4377 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4378
e851246a
SM
4379 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4380 pointer and stack frame offset when unwinding.
55ea94da 4381
6791b117
PA
43822020-09-13 Pedro Alves <pedro@palves.net>
4383
4384 * NEWS: Document "-break-insert --qualified".
4385 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4386
77f2120b
PA
43872020-09-13 Pedro Alves <pedro@palves.net>
4388
4389 * linespec.c (classify_mtype, compare_msyms): Delete.
4390 (search_minsyms_for_name): Remove classification logic. Instead
4391 filter out trampoline symbols if we also found an external
4392 function of the same name.
4393
ed6a896c
JB
43942020-09-13 Joel Brobecker <brobecker@adacore.com>
4395
4396 * NEWS: Create a new section for the next release branch.
4397 Rename the section of the current branch, now that it has
4398 been cut.
4399
32aea73e
JB
44002020-09-13 Joel Brobecker <brobecker@adacore.com>
4401
4402 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4403 * version.in: Bump version to 11.0.50.DATE-git.
4404
8087c3fa
JB
44052020-09-12 Joel Brobecker <brobecker@adacore.com>
4406
4407 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4408
2a67f09d
FW
44092020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4410 Felix Willgerodt <Felix.Willgerodt@intel.com>
4411
4412 * gdbarch.sh: Added bfloat16 type.
4413 * gdbarch.c: Regenerated.
4414 * gdbarch.h: Regenerated.
4415 * gdbtypes.c (floatformats_bfloat16): New struct.
4416 (gdbtypes_post_init): Add builtin_bfloat16.
4417 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4418 (floatformats_bfloat16): New struct.
4419 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4420 (i386_ymm_type): Add field "v16_bfloat16"
4421 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4422 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4423 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4424 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4425 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4426 * features/i386/64bit-avx512.c: Regenerated.
4427 * features/i386/64bit-sse.xml: Add bfloat16 type.
4428 * features/i386/64bit-sse.c: Regenerated.
4429
1347d111
FW
44302020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4431
4432 * i386-tdep.c (i386_zmm_type): Fix field names.
4433 (i386_ymm_type): Fix field names.
4434
7a4e8e7d
TBA
44352020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4436
4437 * breakpoint.c: Fix typo in the help message of the
4438 "set breakpoint condition-evaluation" command.
4439
cf4ac4be
KR
44402020-09-10 Kamil Rytarowski <n54@gmx.com>
4441
4442 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4443 * (nbsd_nat_target::pid_to_exec_file)
4444 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4445 (nbsd_nat_target::post_startup_inferior)
4446 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4447 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4448 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4449 * (nbsd_thread_lister): Remove.
4450
f404573e
KR
44512020-09-10 Kamil Rytarowski <n54@gmx.com>
4452
4453 * fork-inferior.c (startup_inferior): Avoid double free.
4454
1ccb2c17
KR
44552020-09-10 Kamil Rytarowski <n54@gmx.com>
4456
4457 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4458 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4459
feedfcc7
KR
44602020-09-10 Kamil Rytarowski <n54@gmx.com>
4461
4462 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4463 * netbsd-nat.c: Include <sys/ptrace.h>.
4464 * (netbsd_nat::enable_proc_events): Add.
4465
c489f8c6
KR
44662020-09-10 Kamil Rytarowski <n54@gmx.com>
4467
4468 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4469 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4470 (netbsd_nat::for_each_thread): Add.
4471 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4472 "gdbsupport/common-debug.h".
4473 * (netbsd_nat::netbsd_thread_lister)
4474 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4475 (netbsd_nat::for_each_thread): Add.
4476
330662f6
KR
44772020-09-10 Kamil Rytarowski <n54@gmx.com>
4478
4479 * netbsd-nat.h: Include <unistd.h>.
4480 * (netbsd_nat::pid_to_exec_file): Add.
4481 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4482 * (netbsd_nat::pid_to_exec_file) Add.
4483
70b67307
KR
44842020-09-10 Kamil Rytarowski <n54@gmx.com>
4485
4486 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4487
99cf6da6
KR
44882020-09-10 Kamil Rytarowski <n54@gmx.com>
4489
4490 * netbsd-nat.h: New file.
4491 * netbsd-nat.c: Likewise.
4492
1b788fb6
TT
44932020-09-09 Tom Tromey <tromey@adacore.com>
4494
4495 * ada-lang.c (remove_extra_symbols): Do not increment when
4496 removing an element
4497
03b0a45f
TT
44982020-09-08 Tom Tromey <tromey@adacore.com>
4499
4500 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4501
3cae4447
TT
45022020-09-08 Tom Tromey <tromey@adacore.com>
4503
4504 PR win32/25302:
4505 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4506 (gdb_bfd_init_data): New function.
4507 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4508
7f08fd51
TBA
45092020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4510
4511 * infrun.c (fetch_inferior_event): Use
4512 `switch_to_target_no_thread` to switch the target.
4513
3e6ff933
TT
45142020-09-06 Tom Tromey <tom@tromey.com>
4515
4516 * symfile.h (dwarf2_free_objfile): Don't declare.
4517
e56798df
AKS
45182020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4519
4520 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4521 to match 16 byte real/complex type generated by Flang compiler.
4522
8f5c6526
TV
45232020-09-03 Tom de Vries <tdevries@suse.de>
4524
4525 PR breakpoint/26546
4526 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4527 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4528
c5065df0
SM
45292020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4530
4531 * maint.c (index_digits): New function.
4532 (struct maint_print_section_data): Remove.
4533 (print_bfd_section_info): Remove print_data parameter, add arg
4534 and index_digits.
4535 (print_objfile_section_info): Likewise.
4536 (print_bfd_section_info_maybe_relocated): Likewise (plus
4537 objfile).
4538 (maintenance_info_sections): Adjust calls.
4539
02c6f3f1
TT
45402020-09-02 Tom Tromey <tromey@adacore.com>
4541
4542 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4543 for null pointers.
4544 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4545
ef5e5b0b
SM
45462020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4547
4548 * bcache.h (struct bcache) <insert>: Change type of `added` to
4549 pointer to bool.
4550 * bcache.c (bcache::insert): Likewise.
4551 * gdbtypes.c (check_types_worklist): Adjust.
4552 * psymtab.c (add_psymbol_to_bcache): Adjust.
4553
973695d6
KB
45542020-08-31 Kevin Buettner <kevinb@redhat.com>
4555
4556 * corelow.c (unordered_set): Include.
4557 (class core_target): Add field 'm_core_unavailable_mappings'.
4558 (core_target::build_file_mappings): Print only one warning
4559 per inaccessible file. Add unavailable/broken mappings
4560 to m_core_unavailable_mappings.
4561 (core_target::xfer_partial): Call...
4562 (core_target::xfer_memory_via_mappings): New method.
4563
264fc0e2
SM
45642020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4565
4566 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4567 type to bool.
4568
2de01bdb
SM
45692020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4570
4571 * dwarf2/read.c (struct field_info): Fix indentation.
4572
f3bd50f1
SM
45732020-08-31 Simon Marchi <simon.marchi@efficios.com>
4574
4575 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4576 ordering in comment.
4577 * frame.c (frame_id_eq): Fix indentation.
4578
22b9b4b0
SL
45792020-08-31 Scott Linder <scott@scottlinder.com>
4580 Simon Marchi <simon.marchi@efficios.com>
4581
4582 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4583 inline frame ids in outer frame.
4584
84154d16
SM
45852020-08-31 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4588 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4589 (outer_frame_id): Use FID_STACK_OUTER instead of
4590 FID_STACK_INVALID.
4591 (frame_id_p): Don't check for outer_frame_id.
4592
8efaf6b3
SM
45932020-08-31 Simon Marchi <simon.marchi@efficios.com>
4594
4595 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4596 regnum/frame in value. Call allocate_value_lazy.
4597 * frame.c (frame_unwind_register_value): Use
4598 val_print_not_saved.
4599
fe1fe7ea
SM
46002020-08-31 Simon Marchi <simon.marchi@efficios.com>
4601
4602 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4603
f7c7700d
PA
46042020-08-29 Pedro Alves <pedro@palves.net>
4605
4606 * progspace.c (print_program_space): Use all_inferiors. Switch to
4607 the inferior before calling target_pid_to_str.
4608
e0814aae
TT
46092020-08-28 Tom Tromey <tom@tromey.com>
4610
4611 * xcoffread.c (xcoff_end_psymtab): Update comment.
4612 * dbxread.c (dbx_end_psymtab): Update comment.
4613
626d2320
TV
46142020-08-28 Tom de Vries <tdevries@suse.de>
4615
4616 PR breakpoint/26544
4617 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4618 event_location.
4619 (create_breakpoint): Same.
4620 (base_breakpoint_decode_location): Same.
4621 (bkpt_create_sals_from_location): Same.
4622 (bkpt_decode_location): Same.
4623 (bkpt_probe_create_sals_from_location): Same.
4624 (bkpt_probe_decode_location): Same.
4625 (tracepoint_create_sals_from_location): Same.
4626 (tracepoint_decode_location): Same.
4627 (tracepoint_probe_decode_location): Same.
4628 (strace_marker_create_sals_from_location): Same.
4629 (strace_marker_decode_location): Same.
4630 (create_sals_from_location_default): Same.
4631 (decode_location_default): Same.
4632 * breakpoint.h (struct breakpoint_ops): Same.
4633 (create_breakpoint): Same.
4634 * linespec.h (decode_line_full): Same.
4635 * linespec.c (decode_line_full): Same. Throw error if
4636 result.size () == 0.
4637
df631783
PA
46382020-08-27 Pedro Alves <pedro@palves.net>
4639
4640 PR gdb/26524
4641 * breakpoint.c (until_break_fsm) <location_breakpoint,
4642 caller_breakpoint>: Delete fields.
4643 <breakpoints>: New field.
4644 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4645 two individual breakpoints.
4646 (until_break_fsm::should_stop): Loop over breakpoints in the
4647 breakpoint vector.
4648 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4649 vector.
4650 (until_break_command): Handle location expanding into multiple
4651 sals.
4652
b2b38aa4
PA
46532020-08-27 Pedro Alves <pedro@palves.net>
4654
4655 PR gdb/26523
4656 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4657 bp_until breakpoints user-specified locations. Update intro
4658 comment.
4659
b886559f
SM
46602020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4661
4662 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4663 gdb_bfd_sections): New.
4664 * maint.c (print_bfd_section_info): Change param type to
4665 maint_print_section_data.
4666 (print_objfile_section_info): Likewise.
4667 (print_bfd_section_info_maybe_relocated): Likewise.
4668 (maintenance_info_sections): Use gdb_bfd_sections.
4669
4c6e63bf
SV
46702020-08-25 Shahab Vahedi <shahab@synopsys.com>
4671
4672 * MAINTAINERS: Add ARC target and maintainer.
4673
8d7f0635
AK
46742020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4675
4676 * configure.tgt: ARC support for GNU/Linux.
4677 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4678 * arc-linux-tdep.c: New file.
4679 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4680 * arc-tdep.c (arc_write_pc): Use it.
4681
fdd8731b
SV
46822020-08-25 Shahab Vahedi <shahab@synopsys.com>
4683
4684 * arc-tdep.c (arc_check_for_hardware_loop): New.
4685 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4686
22459524
SV
46872020-08-25 Shahab Vahedi <shahab@synopsys.com>
4688
4689 * arc-tdep.h: Include "gdbarch.h".
4690
995d3a19
SV
46912020-08-25 Shahab Vahedi <shahab@synopsys.com>
4692
4693 * arch/arc.h
4694 (arc_gdbarch_features): New class to stir the selection of target XML.
4695 (arc_create_target_description): Use FEATURES to choose XML target.
4696 (arc_lookup_target_description): Use arc_create_target_description
4697 to create _new_ target descriptions or return the already created
4698 ones if the FEATURES is the same.
4699 * arch/arc.c: Implementation of prototypes described above.
4700 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4701 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4702 * arc-tdep.c (*_feature_name): Make feature names consistent.
4703 (arc_register_feature): A new struct to hold information about
4704 registers of a particular target/feature.
4705 (arc_check_tdesc_feature): Check if XML provides registers in
4706 compliance with ARC_REGISTER_FEATURE structs.
4707 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4708 (determine_*_reg_feature_set): Which feature name to look for.
4709 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4710 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4711 to expected ISA enums to be used in arc_gdbarch_features structs.
4712 * features/Makefile (FEATURE_XMLFILES): Add new files.
4713 * gdb/features/arc/v1-aux.c: New file.
4714 * gdb/features/arc/v1-aux.xml: Likewise.
4715 * gdb/features/arc/v1-core.c: Likewise.
4716 * gdb/features/arc/v1-core.xml: Likewise.
4717 * gdb/features/arc/v2-aux.c: Likewise.
4718 * gdb/features/arc/v2-aux.xml: Likewise.
4719 * gdb/features/arc/v2-core.c: Likewise.
4720 * gdb/features/arc/v2-core.xml: Likewise.
4721 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4722
3945d2d7
GM
47232020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4724 Andrew Burgess <andrew.burgess@embecosm.com>
4725
4726 PR m2/26372
fc5d6901 4727 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4728 an assert. Remove single element array indexing pattern as the
4729 MULTI_SUBSCRIPT support will handle this case too.
4730
2677f2d3
SM
47312020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4732
4733 * value.h (valprint_check_validity): Move declaration from
4734 here...
4735 * valprint.h (valprint_check_validity): ... to here.
4736
c426fddb
SM
47372020-08-24 Simon Marchi <simon.marchi@efficios.com>
4738
4739 * debug.h: New file.
4740 * debug.c (debug_prefixed_vprintf): New function.
4741 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4742 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4743
1eb8556f
SM
47442020-08-24 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * infrun.h (infrun_debug_printf_1): New function declaration.
4747 (infrun_debug_printf): New macro.
4748 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4749 throughout.
4750 (infrun_debug_printf): New function.
4751 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4752 (handle_jit_event): Likewise.
4753
b8fff44e
MW
47542020-08-21 Mark Wielaard <mark@klomp.org>
4755
4756 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4757
d19c3068
SM
47582020-08-22 Simon Marchi <simon.marchi@efficios.com>
4759
4760 * frame.c (enum class frame_id_status): New.
4761 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4762 (fprintf_frame): Update.
4763 (compute_frame_id): Set frame id status to "computing" on entry.
4764 Set it back to "not_computed" on failure and to "computed" on
4765 success.
4766 (get_frame_id): Assert the frame id is not being computed.
4767 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4768 (create_new_frame): Likewise.
4769 (frame_cleanup_after_sniffer): Update assert.
4770
b70e516e
SM
47712020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4772
4773 * regcache.c (pid_ptid_regcache_map): New type.
4774 (target_ptid_regcache_map): Remove.
4775 (target_pid_ptid_regcache_map): New type.
4776 (regcaches): Change type to target_pid_ptid_regcache_map.
4777 (get_thread_arch_aspace_regcache): Update.
4778 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4779 case.
4780 (regcaches_size): Update.
4781 (regcache_count): Update.
4782 (registers_changed_ptid_target_pid_test): New.
4783 (_initialize_regcache): Register new test.
4784
cdd9148a
SM
47852020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4786
4787 * regcache.c (regcache_count): New.
4788 (struct regcache_test_data): New.
4789 (regcache_test_data_up): New.
4790 (populate_regcaches_for_test): New.
4791 (regcaches_test): Remove.
4792 (get_thread_arch_aspace_regcache_test): New.
4793 (registers_changed_ptid_all_test): New.
4794 (registers_changed_ptid_target_test): New.
4795 (registers_changed_ptid_target_ptid_test): New.
4796 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4797 (_initialize_regcache): Register new tests.
4798
dd125343
SM
47992020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4800
4801 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4802 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4803 gdbarch and aspace parameter. Use current inferior's aspace.
4804 Validate regcache's arch value.
4805 (regcaches_test): Update.
4806
3ee93972
SM
48072020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4808
4809 * regcache.c (regcaches_test): Call registers_changed.
4810
33bf4c5c
TBA
48112020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4812
4813 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4814
c2fd7fae
AKS
48152020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4816
4817 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4818 to find the end of prologue for flang compiled binaries.
4819 * arm-tdep.c (arm_skip_prologue): Likewise.
4820 * i386-tdep.c (i386_skip_prologue): Likewise.
4821 * producer.c (producer_is_llvm): New function.
4822 (producer_parsing_tests): Added new tests for clang/flang.
4823 * producer.h (producer_is_llvm): New declaration.
4824
9327494e
SM
48252020-08-18 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * linux-nat.c (linux_nat_debug_printf): New function.
4828 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4829
d138725a
AM
48302020-08-18 Aaron Merey <amerey@redhat.com>
4831
4832 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4833 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4834 (CLIBS): Add DEBUGINFOD_LIBS.
4835
f9b11e6b
ST
48362020-08-17 Sergei Trofimovich <siarheit@google.com>
4837
4838 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4839 'gdbarch_num_regs'.
4840
3ae7ab99
TT
48412020-08-17 Tom Tromey <tromey@adacore.com>
4842
4843 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4844 ada_get_decoded_value returns NULL.
4845
b017825f
TT
48462020-08-17 Tom Tromey <tromey@adacore.com>
4847
4848 * python/py-inferior.c (infpy_search_memory): Use
4849 gdb_py_object_from_ulongest.
4850 * python/py-infevents.c (create_inferior_call_event_object)
4851 (create_memory_changed_event_object): Use
4852 gdb_py_object_from_ulongest.
4853 * python/py-linetable.c (ltpy_entry_get_pc): Use
4854 gdb_py_object_from_ulongest.
4855
7635cf79
SM
48562020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4857
4858 * loc.c (class symbol_needs_eval_context): Fix indentation.
4859
f54be24b
SM
48602020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4861
4862 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4863 bool.
4864
53d5a2a5
TV
48652020-08-17 Tom de Vries <tdevries@suse.de>
4866
4867 PR gdb/26393
4868 * gdbtypes.c (dump_dynamic_prop): New function.
4869 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4870
547ce8f0
TV
48712020-08-15 Tom de Vries <tdevries@suse.de>
4872
4873 PR backtrace/26390
4874 * stack.c (print_frame_args): Temporarily set the selected
4875 frame to FRAME while printing the frame's arguments.
4876
6ea815e7
PFC
48772020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4878
4879 PR breakpoints/26385
4880 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4881 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4882
6e562fa3
PFC
48832020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4884
4885 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4886 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4887 and >= to check return value instead of == -1 and != -1.
4888
d369b608
SM
48892020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4890
4891 * utils.h (class gdb_argv) <as_array_view>: New method.
4892 * utils.c (gdb_argv_as_array_view_test): New.
4893 (_initialize_utils): Register selftest.
4894 * maint.c (maintenance_selftest): Use the new method.
4895
b31488a3
KR
48962020-08-13 Kamil Rytarowski <n54@gmx.com>
4897
4898 * target.h (supports_dumpcore, dumpcore): New
4899 function declarations.
4900 * target.c (supports_dumpcore, dumpcore): New
4901 functions.
4902 * target-delegates.c: Rebuild.
4903 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4904 and target_dumpcore ().
4905
002a3166
AM
49062020-08-13 Aaron Merey <amerey@redhat.com>
4907
4908 * debuginfod-support.c: Replace global variables with user_data.
4909
ece5bc8a
SM
49102020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4911
4912 * maint.c (maintenance_selftest): Split args and pass array_view
4913 to run_tests.
4914
6d8a0a5e
LM
49152020-08-12 Luis Machado <luis.machado@linaro.org>
4916
4917 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4918 type's length.
4919 Use %s and pulongest to print the length.
4920
7cf663a9
PA
49212020-08-12 Pedro Alves <palves@redhat.com>
4922
4923 * NEWS: Move "Multi-target debugging support" item to the
4924 "Changes since GDB 9" section.
4925
27c7b875
PA
49262020-08-12 Pedro Alves <palves@redhat.com>
4927
4928 PR gdb/26336
4929 * progspace.c (program_space::remove_objfile): Invalidate the
4930 frame cache.
4931
1796a2a1
TV
49322020-08-11 Tom de Vries <tdevries@suse.de>
4933
4934 * MAINTAINERS: Mark ms1 as deleted.
4935
f8e3fe0d
LM
49362020-08-10 Luis Machado <luis.machado@linaro.org>
4937
4938 PR gdb/26310
4939
4940 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4941 act accordingly.
4942 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4943 movz/str/stur/stp skipping behavior.
4944
cc308722
LM
49452020-08-10 Luis Machado <luis.machado@linaro.org>
4946
4947 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4948 struct user_sve_header instead of struct sve_context.
4949
041d9819
SM
49502020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4951
4952 * read.h (dwarf2_fetch_die_loc_sect_off,
4953 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4954 `void *` parameter with function_view.
4955 * read.c (dwarf2_fetch_die_loc_sect_off,
4956 dwarf2_fetch_die_loc_cu_off): Likewise.
4957 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4958 (per_cu_dwarf_call): Adjust.
4959 (get_frame_address_in_block_wrapper): Remove.
4960 (indirect_synthetic_pointer): Adjust.
4961 (get_ax_pc): Remove.
4962 (dwarf2_compile_expr_to_ax): Adjust.
4963
38f8aa06
TV
49642020-08-08 Tom de Vries <tdevries@suse.de>
4965
4966 PR build/26344
4967 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4968 constructor.
4969 * regcache.c (get_thread_arch_aspace_regcache): Same.
4970
a52b3ae2
TT
49712020-08-07 Tom Tromey <tromey@adacore.com>
4972
4973 * ravenscar-thread.c
4974 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4975 New method.
4976 (ravenscar_thread_target::wait): Check
4977 runtime_initialized.
4978 (ravenscar_thread_target::prepare_to_store)
4979 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4980 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4981 (ravenscar_thread_target::stopped_by_watchpoint)
4982 (ravenscar_thread_target::stopped_data_address)
4983 (ravenscar_thread_target::core_of_thread): Use
4984 scoped_restore_current_thread and
4985 set_base_thread_from_ravenscar_task.
4986
0e29517d
TT
49872020-08-07 Tom Tromey <tromey@adacore.com>
4988
4989 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4990
592f9bd7
TT
49912020-08-07 Tom Tromey <tromey@adacore.com>
4992
4993 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4994 update_inferior_ptid before update_thread_list.
4995 (temporarily_change_regcache_ptid): New class.
4996 (ravenscar_thread_target::fetch_registers)
4997 (ravenscar_thread_target::store_registers)
4998 (ravenscar_thread_target::prepare_to_store): Use base thread when
4999 forwarding operation.
5000
39e2018a
TT
50012020-08-07 Tom Tromey <tromey@adacore.com>
5002
5003 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5004 "is_pid" case.
5005
2080266b
TT
50062020-08-07 Tom Tromey <tromey@adacore.com>
5007
5008 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5009 New methods.
5010 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5011 first.
5012 (ravenscar_thread_target::add_thread): Rename from
5013 ravenscar_add_thread.
5014 (ravenscar_thread_target::update_thread_list): Use a lambda.
5015 (ravenscar_thread_target::xfer_partial): New method.
5016
78c02f21
TT
50172020-08-07 Tom Tromey <tromey@adacore.com>
5018
5019 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5020 gdb::function_view.
5021 (iterate_over_live_ada_tasks): Change type of argument.
5022 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5023 of argument.
5024
d5d833af
TT
50252020-08-07 Tom Tromey <tromey@adacore.com>
5026
5027 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5028 Remove.
5029 (ravenscar_thread_target::extra_thread_info): Remove.
5030 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5031 defer to target beneath for non-Ravenscar threads.
5032
a8ac85bb
TT
50332020-08-07 Tom Tromey <tromey@adacore.com>
5034
5035 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5036 get_base_thread_from_ravenscar_task>: Now methods.
5037 <m_cpu_map>: New member.
5038 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5039 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5040 (ravenscar_thread_target::task_is_currently_active): Update.
5041 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5042 Now a method.
5043 (ravenscar_thread_target::add_active_thread): Put initial thread
5044 into the m_cpu_map.
5045
550ab58d
TT
50462020-08-07 Tom Tromey <tromey@adacore.com>
5047
5048 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5049 event_ptid.
5050
e9546579
TT
50512020-08-07 Tom Tromey <tromey@adacore.com>
5052
5053 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5054 runtime_initialized.
5055
3d4470e5
TT
50562020-08-07 Tom Tromey <tromey@adacore.com>
5057
5058 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5059 add_active_thread.
5060 (ravenscar_thread_target::add_active_thread): Now public.
5061 (ravenscar_inferior_created): Call add_active_thread after pushing
5062 the target.
5063
888bdb2b
SM
50642020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5065
5066 * regcache.c (ptid_regcache_map): New type.
5067 (target_ptid_regcache_map): New type.
5068 (regcaches): Change type to target_ptid_regcache_map.
5069 (get_thread_arch_aspace_regcache): Update to regcaches' new
5070 type.
5071 (regcache_thread_ptid_changed): Likewise.
5072 (registers_changed_ptid): Likewise.
5073 (regcaches_size): Likewise.
5074 (regcaches_test): Update.
5075 (regcache_thread_ptid_changed): Update.
5076 * regcache.h (regcache_up): New type.
5077 * gdbsupport/ptid.h (hash_ptid): New struct.
5078
b161a60d
SM
50792020-08-07 Simon Marchi <simon.marchi@efficios.com>
5080
5081 * observable.h (thread_ptid_changed): Add parameter
5082 `process_stratum_target *`.
5083 * infrun.c (infrun_thread_ptid_changed): Add parameter
5084 `process_stratum_target *` and use it.
5085 (selftests): New namespace.
5086 (infrun_thread_ptid_changed): New function.
5087 (_initialize_infrun): Register selftest.
5088 * regcache.c (regcache_thread_ptid_changed): Add parameter
5089 `process_stratum_target *` and use it.
5090 (regcache_thread_ptid_changed): New function.
5091 (_initialize_regcache): Register selftest.
5092 * thread.c (thread_change_ptid): Pass target to
5093 thread_ptid_changed observable.
5094
d2854d8d
CT
50952020-08-06 Caroline Tice <cmtice@google.com>
5096
fe4c3d43
SM
5097 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5098 (struct dwp_sections): Update field comments. Add loclists and
5099 rnglists fields.
5100 (struct virtual_v2_dwo_sections): Rename struct to
5101 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5102 size & offset fields for loclists and rnglists.
5103 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5104 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5105 skipping dummy type units.
5106 (create_dwp_hash_table): Update the large comment above the function to
5107 discuss Version 5 DWP files as well, with references. Update all the
5108 version checks in the function to check for version 5 as well. Add new
5109 section at the end to create dwp hash table for version 5.
5110 (create_dwp_v2_section): Rename function to
5111 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5112 Add V5 to error message text.
5113 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5114 into calls to create_dwp_v2_or_v5_section.
5115 (create_dwo_unit_in_dwp_v5): New function.
5116 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5117 check for version2; add else clause to handle version 5.
5118 (open_and_init_dwo_file): Add code to check dwarf version & only call
5119 create_debug_types_hash_table (with sections.types) if version is not 5;
5120 else call create_debug_type_hash_table, with sections.info.
5121 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5122 version 5.
5123 (dwarf2_locate_v5_dwp_sections): New function.
5124 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5125 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5126
159ed7d9
SM
51272020-08-06 Simon Marchi <simon.marchi@efficios.com>
5128
5129 * regcache.h (class regcache): Remove friend
5130 registers_changed_ptid.
5131 <regcache_thread_ptid_changed>: Remove.
5132 <regcaches>: Remove.
5133 * regcache.c (regcache::regcaches): Rename to...
5134 (regcaches): ... this. Make static.
5135 (get_thread_arch_aspace_regcache): Update.
5136 (regcache::regcache_thread_ptid_changed): Rename to...
5137 (regcache_thread_ptid_changed): ... this. Update.
5138 (class regcache_access): Remove.
5139 (regcaches_test): Update.
5140 (_initialize_regcache): Update.
5141 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5142 <forward_list>.
5143
174981ae
SM
51442020-08-06 Simon Marchi <simon.marchi@efficios.com>
5145
5146 * regcache.h (class regcache) <current_regcache>: Rename to...
5147 <regcaches>: ... this. Move doc here.
5148 * regcache.c (regcache::current_regcache) Rename to...
5149 (regcache::regcaches): ... this. Move doc to header.
5150 (get_thread_arch_aspace_regcache): Update.
5151 (regcache::regcache_thread_ptid_changed): Update.
5152 (registers_changed_ptid): Update.
5153 (class regcache_access) <current_regcache_size>: Rename to...
5154 <regcaches_size>: ... this.
5155 (current_regcache_test): Rename to...
5156 (regcaches_test): ... this.
5157 (_initialize_regcache): Update.
5158
ed908db6
VC
51592020-08-06 Victor Collod <vcollod@nvidia.com>
5160
5161 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5162
b5582ab7
KB
51632020-08-05 Kevin Buettner <kevinb@redhat.com>
5164
5165 * corelow.c (core_target::build_file_mappings): Don't output
5166 null pathname in warning.
5167
ea946b86
SM
51682020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5169
5170 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5171 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5172 gdb.dwarf2/dw2-single-line-discriminators.exp,
5173 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5174
57d02173
TT
51752020-08-05 Tom Tromey <tromey@adacore.com>
5176
5177 PR rust/26197:
5178 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5179 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5180 Fix off-by-one and type size errors in ordinary case.
5181
5555c86d
TV
51822020-08-05 Tom de Vries <tdevries@suse.de>
5183
5184 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5185 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5186
97916bfe
SM
51872020-08-04 Simon Marchi <simon.marchi@efficios.com>
5188
5189 * frame.h (frame_id_p): Return bool.
5190 (frame_id_artificial_p): Return bool.
5191 (frame_id_eq): Return bool.
5192 (has_stack_frames): Return bool.
5193 (get_selected_frame): Fix typo in comment.
5194 (get_frame_pc_if_available): Return bool.
5195 (get_frame_address_in_block_if_available): Return bool.
5196 (get_frame_func_if_available): Return bool.
5197 (read_frame_register_unsigned): Return bool.
5198 (get_frame_register_bytes): Return bool.
5199 (safe_frame_unwind_memory): Return bool.
5200 (deprecated_frame_register_read): Return bool.
5201 (frame_unwinder_is): Return bool.
5202 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5203 bool.
5204 <this_id::p>: Likewise.
5205 <prev_p>: Likewise.
5206 (frame_stash_add): Return bool.
5207 (get_frame_id): Use bool.
5208 (frame_id_build_special) Use bool.
5209 (frame_id_build_unavailable_stack): Use bool.
5210 (frame_id_build): Use bool.
5211 (frame_id_p): Return bool, use true/false instead of 1/0.
5212 (frame_id_artificial_p): Likewise.
5213 (frame_id_eq): Likewise.
5214 (frame_id_inner): Likewise.
5215 (get_frame_func_if_available): Likewise.
5216 (read_frame_register_unsigned): Likewise.
5217 (deprecated_frame_register_read): Likewise.
5218 (get_frame_register_bytes): Likewise.
5219 (has_stack_frames): Likewise.
5220 (inside_main_func): Likewise.
5221 (inside_entry_func): Likewise.
5222 (get_frame_pc_if_available): Likewise.
5223 (get_frame_address_in_block_if_available): Likewise.
5224 (frame_unwinder_is): Likewise.
5225 (safe_frame_unwind_memory): Likewise.
5226 (frame_unwind_arch): Likewise.
5227
fedfee88
SM
52282020-08-04 Simon Marchi <simon.marchi@efficios.com>
5229
5230 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5231 type to cached_copy_status.
5232 (fprintf_frame): Adjust.
5233 (get_frame_func_if_available): Adjust.
5234 (frame_cleanup_after_sniffer): Adjust.
5235
6cfa9b59
MW
52362020-08-04 Mark Wielaard <mark@klomp.org>
5237
5238 * MAINTAINERS (Write After Approval): Update email address.
5239
66d6346b
SM
52402020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5241
5242 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5243 dynamic_prop::const_val.
5244
8a6d5e35
SM
52452020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5246
5247 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5248 dynamic_prop::kind.
5249
51d6067d
SM
52502020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5251
5252 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5253
b26e2ae7
JM
52542020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5255
5256 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5257
39791af2
JM
52582020-08-04 Weimin Pan <weimin.pan@oracle.com>
5259 Jose E. Marchesi <jose.marchesi@oracle.com>
5260
5261 * configure.tgt: Add entry for bpf-*-*.
5262 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5263 (ALLDEPFILES): Add bpf-tdep.c.
5264 * bpf-tdep.c: New file.
5265 * MAINTAINERS: Add bpf target and maintainer.
5266 * NEWS: Mention the support for the new target.
5267
521894aa
TV
52682020-08-04 Tom de Vries <tdevries@suse.de>
5269
5270 PR symtab/23270
5271 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5272 Error.
5273
5d6356e9
JB
52742020-08-03 John Baldwin <jhb@FreeBSD.org>
5275
5276 * syscalls/freebsd.xml: Regenerate.
5277
0cf82b81
JB
52782020-08-03 John Baldwin <jhb@FreeBSD.org>
5279
5280 * syscalls/update-freebsd.sh: Fix usage and year range.
5281
8f34b746
TV
52822020-08-03 Tom de Vries <tdevries@suse.de>
5283
5284 PR symtab/26333
5285 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5286 DW_LNE_lo_user/DW_LNE_hi_user range.
5287
5e500d33
SM
52882020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5289
5290 PR ada/26318
5291 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5292 kind.
5293
78319c15
TBA
52942020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5295
5296 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5297
4c55e970
TBA
52982020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5299
5300 * breakpoint.c (set_breakpoint_condition): Update the condition
5301 expressions after checking that the input condition string parses
5302 successfully and does not contain junk at the end.
5303
1e620590
TBA
53042020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5305
5306 * breakpoint.c (set_breakpoint_condition): Update the
5307 condition string after parsing the new condition successfully.
5308
c8693053
RO
53092020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5310
5311 * proc-api.c (_STRUCTURED_PROC): Don't define.
5312 * proc-events.c: Likewise.
5313 * proc-flags.c: Likewise.
5314 * proc-why.c: Likewise.
5315 * procfs.c: Likewise.
5316
5317 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5318 * configure, config.in: Regenerate.
5319
5a99adb8
TV
53202020-07-30 Tom de Vries <tdevries@suse.de>
5321
5322 PR build/26320
5323 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5324 m_red/m_green/m_blue in a union.
5325
8ba83e91
TV
53262020-07-29 Tom de Vries <tdevries@suse.de>
5327
5328 PR tdep/26280
5329 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5330
f75a0693
AB
53312020-07-28 Tom Tromey <tromey@adacore.com>
5332
5333 PR symtab/26270:
5334 * symtab.h (find_pc_partial_function_sym): Declare.
5335 * cli/cli-cmds.c (disassemble_command): Use
5336 find_pc_partial_function_sym. Check asm_demangle.
5337 * blockframe.c (cache_pc_function_sym): New global.
5338 (cache_pc_function_name): Remove.
5339 (clear_pc_function_cache): Update.
5340 (find_pc_partial_function_sym): New function, from
5341 find_pc_partial_function.
5342 (find_pc_partial_function): Rewrite using
5343 find_pc_partial_function_sym.
5344
16f3242c
TT
53452020-07-28 Tom Tromey <tromey@adacore.com>
5346
5347 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5348 help. Add usage.
5349
4888741a
TT
53502020-07-28 Tom Tromey <tromey@adacore.com>
5351
5352 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5353 <DW_OP_GNU_variable_value>: Cast to address type.
5354
4d46f402
KR
53552020-07-28 Kamil Rytarowski <n54@gmx.com>
5356
5357 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5358 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5359 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5360 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5361 (nbsd_get_siginfo_type): New.
5362 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5363 (_initialize_nbsd_tdep): New.
5364
d70f978b
L
53652020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5366
5367 PR binutils/26301
5368 * configure: Regenerated.
5369
377170fa
L
53702020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5371
5372 PR binutils/26301
5373 * configure: Regenerated.
5374
43d5901d
AB
53752020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * python/py-frame.c: Remove 'user-regs.h' include.
5378 (frapy_read_register): Rewrite to make use of
5379 gdbpy_parse_register_id.
5380 * python/py-registers.c (gdbpy_parse_register_id): New function,
5381 moved here from python/py-unwind.c. Updated the return type, and
5382 also accepts register descriptor objects.
5383 * python/py-unwind.c: Remove 'user-regs.h' include.
5384 (pyuw_parse_register_id): Moved to python/py-registers.c.
5385 (unwind_infopy_add_saved_register): Update to use
5386 gdbpy_parse_register_id.
5387 (pending_framepy_read_register): Likewise.
5388 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5389
14fa8fb3
AB
53902020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5391
5392 * python/py-registers.c: Add 'user-regs.h' include.
5393 (register_descriptor_iter_find): New function.
5394 (register_descriptor_iterator_object_methods): New static global
5395 methods array.
5396 (register_descriptor_iterator_object_type): Add pointer to methods
5397 array.
5398
ddce1758
JB
53992020-07-27 John Baldwin <jhb@FreeBSD.org>
5400
5401 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5402 for all architectures on FreeBSD 11.3 and later.
5403
a4089f52
TT
54042020-07-27 Tom Tromey <tromey@adacore.com>
5405
5406 * gcore.h (load_corefile): Don't declare.
5407
95420d30
TV
54082020-07-27 Tom de Vries <tdevries@suse.de>
5409
5410 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5411 * config.in: Regenerate.
5412 * configure: Regenerate.
5413
05a6b8c2
EZ
54142020-07-26 Eli Zaretskii <eliz@gnu.org>
5415
5416 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5417 ws2tcpip.h. When checking whether socklen_t type is defined, use
5418 ws2tcpip.h if it is available and sys/socket.h isn't.
5419 * configure: Regenerate.
5420 * config.in: Regenerate.
5421
e79eb02f
AB
54222020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5423
5424 PR fortran/23051
5425 PR fortran/26139
5426 * valops.c (value_ind): Pass address to
5427 readjust_indirect_value_type.
5428 * value.c (readjust_indirect_value_type): Make parameter
5429 non-const, and add extra address parameter. Resolve original type
5430 before using it.
5431 * value.h (readjust_indirect_value_type): Update function
5432 signature and comment.
5433
876518dd
TV
54342020-07-25 Tom de Vries <tdevries@suse.de>
5435
5436 PR symtab/26243
5437 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5438 entries.
5439
f6720b1c
AM
54402020-07-24 Aaron Merey <amerey@redhat.com>
5441
5442 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5443 * configure: Rebuild.
5444
513487e1
KB
54452020-07-23 Kevin Buettner <kevinb@redhat.com>
5446
5447 PR corefiles/26294
5448 * corelow.c (_initialize_corelow): Add period to help text
5449 for "maintenance print core-file-backed-mappings".
5450
e7bc9db8
PA
54512020-07-23 Pedro Alves <pedro@palves.net>
5452
5453 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5454 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5455 meanwhile.
5456 * frame.c (frame_cache_generation, get_frame_cache_generation):
5457 New.
5458 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5459 (get_prev_frame_if_no_cycle): On exception, don't touch
5460 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5461 * frame.h (get_frame_cache_generation): Declare.
5462
90fcc466
TV
54632020-07-23 Tom de Vries <tdevries@suse.de>
5464
5465 PR tui/26282
5466 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5467 New default constructor.
5468
78344df7
AB
54692020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5470
5471 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5472 exclude non-statement entries.
5473
b089853a
KB
54742020-07-22 Kevin Buettner <kevinb@redhat.com>
5475
5476 * NEWS (New commands): Mention new command
5477 "maintenance print core-file-backed-mappings".
5478
09c2f5d4
KB
54792020-07-22 Kevin Buettner <kevinb@redhat.com>
5480
5481 * corelow.c (gdbcmd.h): Include.
5482 (core_target::info_proc_mappings): New method.
5483 (get_current_core_target): New function.
5484 (maintenance_print_core_file_backed_mappings): New function.
5485 (_initialize_corelow): Add core-file-backed-mappings to
5486 "maint print" commands.
5487
9c5ec5c2 54882020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5489
9c5ec5c2
KB
5490 * linux-tdep.c (dump_note_entry_p): New function.
5491 (linux_dump_mapping_p_ftype): New typedef.
5492 (linux_find_memory_regions_full): Add new parameter,
5493 should_dump_mapping_p.
5494 (linux_find_memory_regions): Adjust call to
5495 linux_find_memory_regions_full.
5496 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5497 call to linux_find_memory_regions_full.
5498
db082f59
KB
54992020-07-22 Kevin Buettner <kevinb@redhat.com>
5500
5501 * corelow.c (solist.h, unordered_map): Include.
5502 (class core_target): Add field m_core_file_mappings and
5503 method build_file_mappings.
5504 (core_target::core_target): Call build_file_mappings.
5505 (core_target::~core_target): Free memory associated with
5506 m_core_file_mappings.
5507 (core_target::build_file_mappings): New method.
5508 (core_target::xfer_partial): Use m_core_file_mappings
5509 for memory transfers.
5510 * linux-tdep.c (linux_read_core_file_mappings): New
5511 function.
5512 (linux_core_info_proc_mappings): Rewrite to use
5513 linux_read_core_file_mappings.
5514 (linux_init_abi): Register linux_read_core_file_mappings.
5515
7e183d27
KB
55162020-07-22 Kevin Buettner <kevinb@redhat.com>
5517
5518 * arch-utils.c (default_read_core_file_mappings): New function.
5519 * arch-utils.c (default_read_core_file_mappings): Declare.
5520 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5521 * gdbarch.h, gdbarch.c: Regenerate.
5522
2735d421
KB
55232020-07-22 Kevin Buettner <kevinb@redhat.com>
5524
5525 PR corefiles/25631
5526 * corelow.c (core_target:xfer_partial): Revise
5527 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5528 case after first checking the stratum beneath the core
5529 target.
5530 (has_all_memory): Return true.
5531 * target.c (raw_memory_xfer_partial): Revise comment
5532 regarding use of has_all_memory.
5533
e56cb451
KB
55342020-07-22 Kevin Buettner <kevinb@redhat.com>
5535
5536 * exec.h (section_table_xfer_memory): Revise declaration,
5537 replacing section name parameter with an optional callback
5538 predicate.
5539 * exec.c (section_table_xfer_memory): Likewise.
5540 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5541 of section_table_xfer_memory.
5542
32fa152e
TT
55432020-07-22 Tom Tromey <tromey@adacore.com>
5544
5545 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5546 lookup_symbol_search_name.
5547
a67a1c41
AB
55482020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5549
5550 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5551 redundant local variable.
5552 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5553 reference, not pointer, update code accordingly.
5554
a7b4ff4f
SM
55552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5556 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5557
5558 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5559 * jit.c (jit_breakpoint_re_set_internal): Use the
5560 `skip_jit_symbol_lookup` field.
5561
2340e834
SM
55622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5563 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5564
5565 * jit.c (jit_read_descriptor): Define the descriptor address once,
5566 use twice.
5567 (jit_breakpoint_deleted): Move the declaration of the loop variable
5568 `iter` into the loop header.
5569 (jit_breakpoint_re_set_internal): Move the declaration of the local
5570 variable `objf_data` to the first point of definition.
5571 (jit_event_handler): Move the declaration of local variables
5572 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5573 Rename `objf` to `jited`.
5574
c1072906
SM
55752020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5576
5577 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5578 Remove.
5579 * jit.c (get_jiter_objfile_data): Update.
5580
c8474dc3
TBA
55812020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5582 Simon Marchi <simon.marchi@polymtl.ca>
5583
5584 * jit.c (struct jit_program_space_data): Remove.
5585 (jit_program_space_key): Remove.
5586 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5587 stuff.
5588 (get_jit_program_space_data): Remove.
5589 (jit_breakpoint_deleted): Iterate on all of the program space's
5590 objfiles.
5591 (jit_inferior_init): Likewise.
5592 (jit_breakpoint_re_set_internal): Likewise. Also change return
5593 type to void.
5594 (jit_breakpoint_re_set): Pass current_program_space to
5595 jit_breakpoint_re_set_internal.
5596
77208eb7
SM
55972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5598
5599 * jit.h (struct jiter_objfile_data) <cached_code_address,
5600 jit_breakpoint>: Move to here from ...
5601 * jit.c (jit_program_space_data): ... here.
5602 (jiter_objfile_data::~jiter_objfile_data): Update.
5603 (jit_breakpoint_deleted): Update.
5604 (jit_breakpoint_re_set_internal): Update.
5605
8c1c720f
SM
56062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5607
5608 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5609 checks.
5610 (jit_read_descriptor): Remove NULL check.
5611 (jit_event_handler): Add an assertion.
5612
0e74a041
SM
56132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5614
5615 * jit.h (struct jit_objfile_data): Split into...
5616 (struct jiter_objfile_data): ... this ...
5617 (struct jited_objfile_data): ... and this.
5618 * objfiles.h (struct objfile) <jit_data>: Remove.
5619 <jiter_data, jited_data>: New fields.
5620 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5621 (jiter_objfile_data::~jiter_objfile_data): ... this.
5622 (get_jit_objfile_data): Rename to ...
5623 (get_jiter_objfile_data): ... this.
5624 (add_objfile_entry): Update.
5625 (jit_read_descriptor): Use get_jiter_objfile_data.
5626 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5627 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5628 (jit_inferior_exit_hook): Use objfile's jited_data field.
5629
238b5c9f
SM
56302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5631
5632 * jit.h: Forward-declare `struct minimal_symbol`.
5633 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5634 constructor, destructor, and an objfile* field.
5635 * jit.c (jit_objfile_data): Remove.
5636 (struct jit_objfile_data): Migrate from here to jit.h.
5637 (jit_objfile_data::~jit_objfile_data): New destructor
5638 implementation with code moved from free_objfile_data.
5639 (free_objfile_data): Delete.
5640 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5641 (jit_find_objf_with_entry_addr): Ditto.
5642 (jit_inferior_exit_hook): Ditto.
5643 (_initialize_jit): Remove the call to
5644 register_objfile_data_with_cleanup.
5645 * objfiles.h (struct objfile) <jit_data>: New field.
5646
fe053b9e
TBA
56472020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5648
5649 * jit.h: Forward-declare `struct objfile`.
5650 (jit_event_handler): Add a second parameter, the JITer objfile.
5651 * jit.c (jit_read_descriptor): Change the signature to take the
5652 JITer objfile as an argument instead of the jit_program_space_data.
5653 (jit_inferior_init): Update the call to jit_read_descriptor.
5654 (jit_event_handler): Use the new JITer objfile argument when calling
5655 jit_read_descriptor.
5656 * breakpoint.c (handle_jit_event): Update the call to
5657 jit_event_handler to pass the JITer objfile.
5658
4cec0c66
JB
56592020-07-21 John Baldwin <jhb@FreeBSD.org>
5660
5661 * gdbarch.c: Regenerate.
5662 * gdbarch.h: Regenerate.
5663 * gdbarch.sh (handle_segmentation_fault): Remove method.
5664 * infrun.c (handle_segmentation_fault): Remove.
5665 (print_signal_received_reason): Remove call to
5666 handle_segmentation_fault.
5667
0e42f66a
JB
56682020-07-21 John Baldwin <jhb@FreeBSD.org>
5669
5670 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5671 Rename to sparc64_linux_report_signal_info and add siggnal
5672 argument.
5673 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5674 instead of sparc64_linux_handle_segmentation_fault.
5675
77bdfeb2
JB
56762020-07-21 John Baldwin <jhb@FreeBSD.org>
5677
5678 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5679 i386_linux_report_signal_info instead of
5680 i386_linux_handle_segmentation_fault.
5681 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5682 to i386_linux_report_signal_info and add siggnal argument.
5683 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5684 of i386_linux_handle_segmentation_fault.
5685 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5686 to i386_linux_report_signal_info and add siggnal argument.
5687
ad97bfc5
JB
56882020-07-21 John Baldwin <jhb@FreeBSD.org>
5689
5690 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5691 hook if present.
5692
272bb05c
JB
56932020-07-21 John Baldwin <jhb@FreeBSD.org>
5694
5695 * gdbarch.c: Regenerate.
5696 * gdbarch.h: Regenerate.
5697 * gdbarch.sh (report_signal_info): New method.
5698 * infrun.c (print_signal_received_reason): Invoke gdbarch
5699 report_signal_info hook if present.
5700
baf8791e
AB
57012020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5702
5703 * python/py-registers.c : Add 'unordered_map' include.
5704 (gdbpy_new_reggroup): Renamed to...
5705 (gdbpy_get_reggroup): ...this. Update to only create register
5706 group descriptors when needed.
5707 (gdbpy_reggroup_iter_next): Update.
5708
f7306dac
AB
57092020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5710
5711 * python/py-registers.c (gdbpy_register_object_data): New static
5712 global.
5713 (gdbpy_register_object_data_init): New function.
5714 (gdbpy_new_register_descriptor): Renamed to...
5715 (gdbpy_get_register_descriptor): ...this, and update to reuse
5716 existing register descriptors where possible.
5717 (gdbpy_register_descriptor_iter_next): Update.
5718 (gdbpy_initialize_registers): Register new gdbarch data.
5719
05c309a8
SM
57202020-07-21 Simon Marchi <simon.marchi@efficios.com>
5721
5722 * linux-nat.c (stopped_pids): Make static.
5723
d1fd641e
SM
57242020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5725
5726 PR ada/26235
5727 * gdbtypes.c (ada_discrete_type_low_bound,
5728 ada_discrete_type_high_bound): Handle undefined bounds.
5729
1de14d77
KR
57302020-07-21 Kamil Rytarowski <n54@gmx.com>
5731
5732 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5733 declaration.
5734 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5735 function.
5736
ed810cc7
JB
57372020-07-20 John Baldwin <jhb@FreeBSD.org>
5738
5739 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5740 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5741 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5742 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5743 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5744 method.
5745
ae5369e7
LC
57462020-07-20 Ludovic Courtès <ludo@gnu.org>
5747
5748 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5749 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5750 which are deprecated in Guile 3.0.
5751 * configure.ac (try_guile_versions): Add "guile-3.0".
5752 * configure (try_guile_versions): Regenerate.
5753 * NEWS: Update entry.
5754
68cf161c
LC
57552020-07-20 Ludovic Courtès <ludo@gnu.org>
5756 Doug Evans <dje@google.com>
5757
5758 PR gdb/21104
5759 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5760 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5761 USING_GUILE_BEFORE_2_2.
5762 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5763 Change type to 'scm_t_port_type *'.
5764 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5765 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5766 parameter and honor it. Update callers.
5767 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5768 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5769 functions.
5770 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5771 USING_GUILE_BEFORE_2_2.
5772 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5773 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5774 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5775 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5776 and 'SCM_PORT_TYPE'.
5777 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5778 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5779 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5780 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5781 [!USING_GUILE_BEFORE_2_2]: New functions.
5782 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5783 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5784 'gdbscm_memory_port_read'.
5785 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5786 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5787 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5788 function.
5789 (ioscm_init_memory_port): Remove.
5790 (ioscm_init_memory_port_stream): New function
5791 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5792 function.
5793 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5794 Return scm_from_uint (0).
5795 (gdbscm_set_memory_port_read_buffer_size_x)
5796 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5797 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5798 Return scm_from_uint (0).
5799 (gdbscm_set_memory_port_write_buffer_size_x)
5800 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5801 * configure.ac (try_guile_versions): Add "guile-2.2".
5802 * configure: Regenerate.
5803 * NEWS: Add entry.
5804
aee91db3
TT
58052020-07-18 Tom Tromey <tom@tromey.com>
5806
5807 * linux-nat.c (linux_multi_process): Remove.
5808 (linux_nat_target::supports_multi_process): Return true.
5809
0e267416
AB
58102020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5811
5812 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5813 (riscv_lookup_target_description): Return pointer out of
5814 unique_ptr.
5815 * target-descriptions.c (allocate_target_description): Add
5816 comment.
5817 (target_desc_deleter::operator()): Likewise.
5818 * target-descriptions.h (struct target_desc_deleter): Moved to
5819 gdbsupport/tdesc.h.
5820 (target_desc_up): Likewise.
5821
f80c8ec4
TT
58222020-07-17 Tom Tromey <tromey@adacore.com>
5823
5824 * linux-nat.c (linux_nat_target::supports_non_stop)
5825 (linux_nat_target::always_non_stop_p): Use "true".
5826 (linux_nat_target::supports_disable_randomization): Use "true" and
5827 "false".
5828
d0ce17d8
CT
58292020-07-16 Caroline Tice <cmtice@google.com>
5830
5831 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5832 (RNGLIST_HEADER_SIZE64): New constant definition.
5833 (struct dwop_section_names): Add rnglists_dwo.
5834 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5835 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5836 (struct dwo_sections): Add rnglists field.
5837 (read_attribut_reprocess): Add tag parameter.
5838 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5839 (cu_debug_rnglists_section): New function (decl & definition).
5840 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5841 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5842 die whose range is being checked; get rnglist section from
5843 cu_debug_rnglists_section, to get from either objfile or dwo file as
5844 appropriate. Add cases for DW_RLE_base_addressx,
5845 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5846 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5847 test inside if-condition and updating complaint message.
5848 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5849 dwarf2_rnglists_process.
5850 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5851 dwarf2_ranges_process.
5852 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5853 need_ranges_base and update comment appropriately. Also pass die tag
5854 to dwarf2_ranges_read.
5855 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5856 need_ranges_base and update comment appropriately. Also pass die tag
5857 to dwarf2_ranges_process.
5858 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5859 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5860 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5861 need_ranges_base and update comment appropriately. Also pass die tag
5862 to read_attribute_reprocess and dwarf2_ranges_read.
5863 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5864 and update function comment appropriately.
5865 (read_loclist_index): Call read_loclists_rnglists_header instead of
5866 read_loclist_header.
5867 (read_rnglist_index): New function.
5868 (read_attribute_reprocess): Add tag parameter. Add code for
5869 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5870 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5871
3dcc261c
AB
58722020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5873
5874 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5875 being resolved.
5876
ccb9eba6
AB
58772020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5878
5879 * arch-utils.c (show_architecture): Update formatting of messages.
5880
cf88be68
SM
58812020-07-12 Simon Marchi <simon.marchi@efficios.com>
5882
5883 * gdbtypes.h (struct type) <bounds>: Handle array and string
5884 types.
5885 * ada-lang.c (assign_aggregate): Use type::bounds on
5886 array/string type.
5887 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5888 * c-varobj.c (c_number_of_children): Likewise.
5889 (c_describe_child): Likewise.
5890 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5891 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5892 (f_type_print_base): Likewise.
5893 * f-valprint.c (f77_array_offset_tbl): Likewise.
5894 (f77_get_upperbound): Likewise.
5895 (f77_print_array_1): Likewise.
5896 * guile/scm-type.c (gdbscm_type_range): Likewise.
5897 * m2-typeprint.c (m2_array): Likewise.
5898 (m2_is_long_set_of_type): Likewise.
5899 * m2-valprint.c (get_long_set_bounds): Likewise.
5900 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5901 * python/py-type.c (typy_range): Likewise.
5902 * rust-lang.c (rust_internal_print_type): Likewise.
5903 * type-stack.c (type_stack::follow_types): Likewise.
5904 * valarith.c (value_subscripted_rvalue): Likewise.
5905 * valops.c (value_cast): Likewise.
5906
509971ae
SM
59072020-07-12 Simon Marchi <simon.marchi@efficios.com>
5908
5909 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5910 callers to use the equivalent accessor methods.
5911
107406b7
SM
59122020-07-12 Simon Marchi <simon.marchi@efficios.com>
5913
5914 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5915 (struct type) <bit_stride>: New method.
5916 (TYPE_BIT_STRIDE): Remove.
5917 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5918
bb789949
SM
59192020-07-12 Simon Marchi <simon.marchi@efficios.com>
5920
5921 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5922 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5923 callers to use the equivalent accessor methods instead.
5924
39498edb
SM
59252020-07-12 Simon Marchi <simon.marchi@efficios.com>
5926
5927 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5928 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5929 callers to use the equivalent accessor methods instead.
5930
3b606f38
SM
59312020-07-12 Simon Marchi <simon.marchi@efficios.com>
5932
5933 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5934 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5935 to use dynamic_prop::kind.
5936
064d9cb9
SM
59372020-07-12 Simon Marchi <simon.marchi@efficios.com>
5938
5939 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5940 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5941 to get the bound property's kind and check against
5942 PROP_UNDEFINED.
5943
5537ddd0
SM
59442020-07-12 Simon Marchi <simon.marchi@efficios.com>
5945
5946 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5947 all callers to use type::range_bounds followed by
5948 dynamic_prop::{low,high}.
5949
8c2e4e06
SM
59502020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5951
5952 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5953 const_val, set_const_val, baton, set_locexpr, set_loclist,
5954 set_addr_offset, variant_parts, set_variant_parts,
5955 original_type, set_original_type>: New methods.
5956 <kind>: Rename to...
5957 <m_kind>: ... this. Update all users to use the new methods
5958 instead.
5959 <data>: Rename to...
5960 <m_data>: ... this. Update all users to use the new methods
5961 instead.
5962
7c6f2712
SM
59632020-07-12 Simon Marchi <simon.marchi@efficios.com>
5964
5965 * gdbtypes.c (get_discrete_bounds): Return failure if
5966 the range type's bounds are not both defined and constant
5967 values.
5968 (get_array_bounds): Update comment. Remove undefined bound check.
5969
599088e3
SM
59702020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5971
5972 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5973 the type::bounds method directly.
5974
c4dfcb36
SM
59752020-07-12 Simon Marchi <simon.marchi@efficios.com>
5976
5977 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5978 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5979 are used to set the range type's bounds to use set_bounds.
5980
0a278aa7
PW
59812020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5982
5983 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5984
cce20f10
PA
59852020-07-10 Pedro Alves <pedro@palves.net>
5986
5987 * gdbthread.h (inferior_ref): Define.
5988 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5989 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5990 * thread.c
5991 (scoped_restore_current_thread::restore):
5992 Adjust to gdb::ref_ptr.
5993 (scoped_restore_current_thread::~scoped_restore_current_thread):
5994 Remove manual decref handling.
5995 (scoped_restore_current_thread::scoped_restore_current_thread):
5996 Adjust to use
5997 inferior_ref::new_reference/thread_info_ref::new_reference.
5998 Incref the thread before calling get_frame_id instead of after.
5999 Let TARGET_CLOSE_ERROR propagate.
6000
6d7aa592
PA
60012020-07-10 Pedro Alves <pedro@palves.net>
6002
6003 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6004 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6005 NOT_AVAILABLE_ERROR.
6006 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6007 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6008
b3e3a4c1
SM
60092020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6010 Pedro Alves <pedro@palves.net>
6011
6012 PR gdb/26199
6013 * infrun.c (threads_are_resumed_pending_p): Delete.
6014 (do_target_wait): Remove threads_are_executing and
6015 threads_are_resumed_pending_p checks from the inferior_matches
6016 lambda. Update comments.
6017
d6cc5d98
PA
60182020-07-10 Pedro Alves <pedro@palves.net>
6019
6020 PR gdb/26199
6021 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6022 executing threads.
6023
7d3badc6
PA
60242020-07-10 Pedro Alves <pedro@palves.net>
6025
6026 PR gdb/26199
6027 * infrun.c (handle_no_resumed): Handle multiple targets.
6028
42bd97a6
PA
60292020-07-10 Pedro Alves <pedro@palves.net>
6030
6031 PR gdb/26199
6032 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6033 target_is_async_p.
6034
43667cc6
PA
60352020-07-10 Pedro Alves <pedro@palves.net>
6036
6037 PR gdb/26199
6038 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6039 threads, not all threads.
6040
96118d11
PA
60412020-07-10 Pedro Alves <pedro@palves.net>
6042
6043 PR gdb/26199
6044 * remote.c (remote_target::open_1): Pass remote target pointer as
6045 data to create_async_event_handler.
6046 (remote_async_inferior_event_handler): Mark async event handler
6047 before returning if the remote target still has either pending
6048 events or unacknowledged notifications.
6049
54904d81
JB
60502020-07-10 John Baldwin <jhb@FreeBSD.org>
6051
6052 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6053 declaration.
6054 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6055 function.
6056
f37e5866
JB
60572020-07-09 John Baldwin <jhb@FreeBSD.org>
6058
6059 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6060 inferior_ptid.
6061
fc238d4a
JB
60622020-07-09 John Baldwin <jhb@FreeBSD.org>
6063
6064 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6065 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6066 AT_FREEBSD_PS_STRINGS.
6067
6e2469ff
HD
60682020-07-08 Hannes Domani <ssbssa@yahoo.de>
6069
6070 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6071 of debugfile path on Windows.
6072
d1076c41
JB
60732020-07-08 John Baldwin <jhb@FreeBSD.org>
6074
6075 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6076 argument to 'data'.
6077
15f3b077
TT
60782020-07-08 Tom Tromey <tromey@adacore.com>
6079
6080 * ada-lang.c (ada_exception_message_1): Use read_memory.
6081
9fc501fd
AB
60822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6083
6084 PR python/22748
6085 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6086 special handling for inline frames.
6087 * findvar.c (value_of_register_lazy): Skip inline frames when
6088 creating lazy register values.
6089 * frame.c (frame_id_computed_p): Delete definition.
6090 * frame.h (frame_id_computed_p): Delete declaration.
6091
64cb3757
AB
60922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6093
6094 * NEWS: Mention additions to Python API.
6095 * python/py-arch.c (archpy_register_groups): New function.
6096 (arch_object_methods): Add 'register_groups' method.
6097 * python/py-registers.c (reggroup_iterator_object): New struct.
6098 (reggroup_object): New struct.
6099 (gdbpy_new_reggroup): New function.
6100 (gdbpy_reggroup_to_string): New function.
6101 (gdbpy_reggroup_name): New function.
6102 (gdbpy_reggroup_iter): New function.
6103 (gdbpy_reggroup_iter_next): New function.
6104 (gdbpy_new_reggroup_iterator): New function
6105 (gdbpy_initialize_registers): Register new types.
6106 (reggroup_iterator_object_type): Define new Python type.
6107 (gdbpy_reggroup_getset): New static global.
6108 (reggroup_object_type): Define new Python type.
6109 * python/python-internal.h
6110
0f767f94
AB
61112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6112
6113 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6114 * python/py-arch.c (archpy_registers): New function.
6115 (arch_object_methods): Add 'registers' method.
6116 * python/py-registers.c: New file.
6117 * python/python-internal.h
6118 (gdbpy_new_register_descriptor_iterator): Declare.
6119 (gdbpy_initialize_registers): Declare.
6120 * python/python.c (do_start_initialization): Call
6121 gdbpy_initialize_registers.
6122 * NEWS: Mention additions to the Python API.
6123
87dbc774
AB
61242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6125
6126 * NEWS: Mention new Python API method.
6127 * python/py-unwind.c (pending_framepy_architecture): New function.
6128 (pending_frame_object_methods): Add architecture method.
6129
3bc98c0c
AB
61302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6131
6132 * gdbarch.c: Regenerate.
6133 * gdbarch.h: Regenerate.
6134 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6135 (gdbarch_data): Use internal_error for the case where
6136 deprecated_set_gdbarch_data was originally needed.
6137 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6138 and use passed in obstack.
6139 (libunwind_frame_set_descr): Should no longer get back NULL from
6140 gdbarch_data.
6141 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6142 type.
6143 * user-regs.c (user_regs_init): Update parameters, and use passed
6144 in obstack.
6145 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6146 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6147
d8cc8af6
TV
61482020-07-06 Tom de Vries <tdevries@suse.de>
6149
6150 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6151 End-Of-Sequence in lte_is_less_than.
6152 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6153 "gdb: Don't reorder line table entries too much when sorting".
6154
947f7597
TV
61552020-07-06 Tom de Vries <tdevries@suse.de>
6156
6157 PR tui/26205
6158 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6159
1e7c1b22
TV
61602020-07-05 Tom de Vries <tdevries@suse.de>
6161
6162 PR build/26187
6163 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6164 std::uncaught_exceptions instead of deprecated
6165 std::uncaught_exception.
6166
a36158ec
SM
61672020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6168
6169 * macroexp.h (macro_stringify): Return
6170 gdb::unique_xmalloc_ptr<char>.
6171 * macroexp.c (macro_stringify): Likewise.
6172 * macrotab.c (fixup_definition): Update.
6173
14d960c8
SM
61742020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6175
6176 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6177 (lex_one_token): Update.
6178 * macroexp.c (struct macro_buffer) <release>: Return
6179 gdb::unique_xmalloc_ptr<char>.
6180 (macro_stringify): Update.
6181 (macro_expand): Update.
6182 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6183 * macroexp.h (macro_expand_next): Likewise.
6184
211d5b1c
SM
61852020-07-02 Simon Marchi <simon.marchi@efficios.com>
6186
6187 * macroexp.h (macro_lookup_ftype): Remove.
6188 (macro_expand, macro_expand_once, macro_expand_next): Remove
6189 lookup function parameters, add scope parameter.
6190 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6191 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6192 * macroscope.h (standard_macro_lookup): Change parameter type
6193 to macro_scope.
6194 * macroscope.c (standard_macro_lookup): Likewise.
6195 * c-exp.y (lex_one_token): Update.
6196 * macrocmd.c (macro_expand_command): Likewise.
6197 (macro_expand_once_command): Likewise.
6198
b1a35af2
SM
61992020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6200
6201 * inf-loop.c (inferior_event_handler): Remove client_data param.
6202 * inf-loop.h (inferior_event_handler): Likewise.
6203 * infcmd.c (step_1): Adjust.
6204 * infrun.c (proceed): Adjust.
6205 (fetch_inferior_event): Remove client_data param.
6206 (infrun_async_inferior_event_handler): Adjust.
6207 * infrun.h (fetch_inferior_event): Remove `void *` param.
6208 * linux-nat.c (handle_target_event): Adjust.
6209 * record-btrace.c (record_btrace_handle_async_inferior_event):
6210 Adjust.
6211 * record-full.c (record_full_async_inferior_event_handler):
6212 Adjust.
6213 * remote.c (remote_async_inferior_event_handler): Adjust.
6214
1cdf9e33
TT
62152020-07-01 Tom Tromey <tom@tromey.com>
6216
6217 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6218 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6219
32c1e210
TT
62202020-07-01 Tom Tromey <tom@tromey.com>
6221
6222 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6223 tui_gen_win_info.
6224 (tui_win_info::make_window): Merge with
6225 tui_gen_win_info::make_window.
6226 (tui_win_info::make_visible): Move from tui_gen_win_info.
6227 * tui/tui-win.c (tui_win_info::max_width): Move from
6228 tui_gen_win_info.
6229 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6230 type.
6231 <window_factory>: Likewise.
6232 * tui/tui-layout.c (tui_win_info::resize): Move from
6233 tui_gen_win_info.
6234 (make_standard_window): Change return type.
6235 (get_locator_window, tui_get_window_by_name): Likewise.
6236 (tui_layout_window::apply): Remove a cast.
6237 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6238 (struct tui_win_info): Merge with tui_gen_win_info.
6239 (struct tui_gen_win_info): Remove.
6240
a30cb6da
TT
62412020-07-01 Tom Tromey <tom@tromey.com>
6242
6243 * tui/tui-stack.h (struct tui_locator_window): Derive from
6244 tui_win_info.
6245 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6246 <can_box>: New method.
6247
1eb2161f
TT
62482020-07-01 Tom Tromey <tom@tromey.com>
6249
6250 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6251
7134f2eb
TT
62522020-07-01 Tom Tromey <tom@tromey.com>
6253
6254 * tui/tui-regs.c (tui_data_window::display_registers_from)
6255 (tui_data_window::display_registers_from)
6256 (tui_data_window::first_data_item_displayed)
6257 (tui_data_window::delete_data_content_windows): Update.
6258 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6259 Remove.
6260 (tui_data_window::check_register_values): Update.
6261 (tui_data_item_window::rerender): Add parameters. Update.
6262 (tui_data_item_window::refresh_window): Remove.
6263 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6264 virtual.
6265 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6266 tui_gen_win_info.
6267 <refresh_window, max_height, min_height>: Remove.
6268 <rerender>: Add parameters.
6269 <x, y, visible>: New members.
6270 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6271 <m_item_width>: New member.
6272
22b7b041
TT
62732020-07-01 Tom Tromey <tom@tromey.com>
6274
6275 * tui/tui-regs.c (tui_data_window::show_register_group)
6276 (tui_data_window::check_register_values): Update.
6277 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6278 from item_no.
6279
c9753adb
TT
62802020-07-01 Tom Tromey <tom@tromey.com>
6281
6282 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6283 useless "if".
6284
9ab26b4a
TT
62852020-07-01 Tom Tromey <tom@tromey.com>
6286
6287 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6288 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6289
e555083f
TT
62902020-07-01 Tom Tromey <tom@tromey.com>
6291
6292 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6293 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6294 (struct tui_line_or_address): Move from tui-data.h.
6295 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6296 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6297 (tui_cmd_window, tui_source_window_base, tui_source_window)
6298 (tui_disasm_window): Don't declare.
6299 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6300 to tui-winsource.h.
6301 (SINGLE_KEY): Move to tui-stack.c.
6302
7a02bab7
TT
63032020-07-01 Tom Tromey <tom@tromey.com>
6304
6305 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6306 std::string.
6307 * tui/tui-regs.c (class tab_expansion_file): New.
6308 (tab_expansion_file::write): New method.
6309 (tui_register_format): Change return type. Use
6310 tab_expansion_file.
6311 (tui_get_register, tui_data_window::display_registers_from)
6312 (tui_data_item_window::rerender): Update.
6313 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6314 * tui/tui-io.c (tui_expand_tabs): Remove.
6315
ea68593b
TT
63162020-07-01 Tom Tromey <tom@tromey.com>
6317
6318 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6319
a8caed5d
FS
63202020-07-01 Fangrui Song <maskray@google.com>
6321
6322 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6323
9cdf9820
AKS
63242020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6325
6326 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6327 forms for DW_AT_associated and DW_AT_allocated attributes,
6328 which is already checked in function attr_to_dynamic_prop.
6329
a1520ad8
TT
63302020-06-30 Tom Tromey <tromey@adacore.com>
6331
6332 * dwarf2/read.c (quirk_rust_enum): Correctly call
6333 alloc_rust_variant for default-less enum.
6334
5ac58899
TT
63352020-06-30 Tom Tromey <tromey@adacore.com>
6336
6337 PR build/26183:
6338 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6339 gdb::to_string.
6340
19b187a9
SM
63412020-06-29 Simon Marchi <simon.marchi@efficios.com>
6342
6343 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6344 * gdbarch.h: Re-generate.
6345
cd4c4c07
TT
63462020-06-28 Tom Tromey <tom@tromey.com>
6347
6348 * command.h (cmd_types): Remove.
6349 (cmd_type): Don't declare.
6350 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6351 typedef.
6352 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6353 * cli/cli-decode.c (cmd_type): Remove.
6354
05779d57
PA
63552020-06-27 Pedro Alves <palves@redhat.com>
6356
6357 * fork-child.c (prefork_hook): Adjust.
6358 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6359 Delete.
6360 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6361 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6362 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6363 Remove declarations.
6364 (struct inferior) <set_tty, tty>: New methods.
6365 (struct inferior) <terminal>: Rename to ...
6366 (struct inferior) <m_terminal>: ... this and make private.
6367 * main.c (captured_main_1): Adjust.
6368 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6369 (mi_cmd_inferior_tty_show): Adjust.
6370 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6371 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6372
1776e3e5
NA
63732020-06-26 Nick Alcock <nick.alcock@oracle.com>
6374
6375 * configure.ac: Add --enable-libctf: handle --disable-static
6376 properly.
6377 * acinclude.m4: sinclude ../config/enable.m4.
6378 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6379 (LIBCTF): Substitute in.
6380 (CTF_DEPS): New, likewise.
6381 (CLIBS): libctf needs symbols from libbfd: move earlier.
6382 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6383 flags.
6384 * ctfread.c: Surround in ENABLE_LIBCTF.
6385 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6386 * configure: Regenerate.
6387 * config.in: Likewise.
6388
58373b80
SM
63892020-06-25 Simon Marchi <simon.marchi@efficios.com>
6390
6391 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6392
277474ee
SM
63932020-06-25 Simon Marchi <simon.marchi@efficios.com>
6394
6395 * inferior.h (struct inferior) <terminal>: Change type to
6396 gdb::unique_xmalloc_ptr<char>.
6397 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6398 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6399 field, adjust to unique pointer.
6400 (get_inferior_io_terminal): Adjust to unique pointer.
6401
6d74da72
AB
64022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6403
6404 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6405 registers, not just the known core set of registers.
6406
2e52d038
AB
64072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6408
6409 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6410 fflags, frm, and fcsr registers.
6411 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6412 restore groups.
6413 (riscv_tdesc_unknown_reg): New function.
6414 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6415 tdesc_use_registers.
6416 * riscv-tdep.h (struct gdbarch_tdep): Add
6417 unknown_csrs_first_regnum, unknown_csrs_count,
6418 duplicate_fflags_regnum, duplicate_frm_regnum, and
6419 duplicate_fcsr_regnum fields.
6420
be64fd07
AB
64212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6422
6423 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6424 callback, use the callback (when not null) to help number unknown
6425 registers.
6426 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6427 (tdesc_use_registers): Add extra parameter to declaration.
6428
3b9fce96
AB
64292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6430
6431 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6432 in the file.
6433 (class riscv_pending_register_alias): Likewise.
6434 (riscv_register_feature::register_info): Change 'required_p' field
6435 to 'required', and change its type. Add 'check' member function.
6436 (riscv_register_feature::register_info::check): Define new member
6437 function.
6438 (riscv_xreg_feature): Change initialisation of 'required' field.
6439 (riscv_freg_feature): Likewise.
6440 (riscv_virtual_feature): Likewise.
6441 (riscv_csr_feature): Likewise.
6442 (riscv_check_tdesc_feature): Take extra parameter, the csr
6443 tdesc_feature, rewrite the function to use the new
6444 riscv_register_feature::register_info::check function.
6445 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6446
865bad26
AB
64472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6448
6449 * features/Makefile: Remove all references to the deleted files
6450 below.
6451 * features/riscv/32bit-csr.c: Deleted.
6452 * features/riscv/32bit-csr.xml: Deleted.
6453 * features/riscv/64bit-csr.c: Deleted.
6454 * features/riscv/64bit-csr.xml: Deleted.
6455 * features/riscv/rebuild-csr-xml.sh: Deleted.
6456
ed69cbc8
AB
64572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6458
6459 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6460 whitespace error for declaration of names member variable.
6461 (struct riscv_register_feature): Add new prefer_first_name member
6462 variable, and fix whitespace error in declaration of registers.
6463 (riscv_xreg_feature): Initialize prefer_first_name field.
6464 (riscv_freg_feature): Likewise.
6465 (riscv_virtual_feature): Likewise.
6466 (riscv_csr_feature): Likewise.
6467 (riscv_register_name): Expand on comments. Remove register name
6468 modifications for CSR and virtual registers.
6469
4445e8f5
AB
64702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6471
6472 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6473 errors.
6474
767a879e
AB
64752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6476
6477 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6478 riscv-opc.h.
6479 (class riscv_pending_register_alias): New class.
6480 (riscv_check_tdesc_feature): Take vector of pending aliases and
6481 populate it as appropriate.
6482 (riscv_setup_register_aliases): Delete.
6483 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6484 to riscv_check_tdesc_feature in all cases. Use the vector to
6485 create the register aliases.
6486
bb6e55f3
RO
64872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6488
6489 * sol2-tdep.c (sol2_static_transform_name): Remove.
6490 (sol2_init_abi): Don't register it.
6491 * gdbarch.sh (static_transform_name): Remove.
6492 * gdbarch.c, gdbarch.h: Regenerate.
6493
6494 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6495 gdbarch_static_transform_name.
6496 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6497 * stabsread.c (define_symbol) <'X'>: Remove.
6498 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6499 handling.
6500 <'V'>: Likewise.
6501 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6502 <'S'>: Remove call to gdbarch_static_transform_name.
6503
c6d36836
RO
65042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6505
6506 * procfs.c (procfs_pre_trace): New function.
6507 (procfs_target::create_inferior): Pass it to fork_inferior.
6508
a7e6196b
RO
65092020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6510
6511 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6512 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6513 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6514 sol2-tdep.o, sparc-sol2-tdep.o.
6515 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6516 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6517 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6518 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6519
d412e696
RO
65202020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6521
6522 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6523 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6524 Call sol2_init_abi.
6525 Remove calls to set_gdbarch_skip_solib_resolver,
6526 set_gdbarch_core_pid_to_str.
6527 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6528 (i386_sol2_static_transform_name): Remove.
6529 (i386_sol2_init_abi): Call sol2_init_abi.
6530 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6531 set_gdbarch_static_transform_name,
6532 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6533 Use sol2_sigtramp_p.
6534 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6535 (sol2_sigtramp_p): New function.
6536 (sol2_static_transform_name): New function.
6537 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6538 (sol2_init_abi): New function.
6539 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6540 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6541 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6542 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6543 (sparc_sol2_static_transform_name): Remove.
6544 (sparc32_sol2_init_abi): Call sol2_init_abi.
6545 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6546 set_gdbarch_static_transform_name,
6547 set_gdbarch_skip_solib_resolver,
6548 set_gdbarch_core_pid_to_str.
6549 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6550 (sparc_sol2_static_transform_name): Remove
6551 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6552 call sol2_sigtramp_p.
6553 (sparc64_sol2_init_abi): Call sol2_init_abi.
6554 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6555 set_gdbarch_static_transform_name,
6556 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6557
a8654e7d
PW
65582020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6559
6560 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6561 * exec.c (validate_exec_file): If from_tty, set both
6562 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6563 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6564 and from_tty, unconditionally ask a confirmation.
6565
caa7fd04
AB
65662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6567
6568 * target-descriptions.c (tdesc_architecture_name): Protect against
6569 NULL pointer dereference.
6570 (maint_print_xml_tdesc_cmd): New function.
6571 (_initialize_target_descriptions): Register new 'maint print
6572 xml-tdesc' command and give it the filename completer.
6573 * NEWS: Mention new 'maint print xml-tdesc' command.
6574
fbf42f4e
AB
65752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6576
6577 * target-descriptions.c (class tdesc_compatible_info): New class.
6578 (struct target_desc): Change type of compatible vector.
6579 (tdesc_compatible_p): Update for change in type of
6580 target_desc::compatible.
6581 (tdesc_compatible_info_list): New function.
6582 (tdesc_compatible_info_arch_name): New function.
6583 (tdesc_add_compatible): Update for change in type of
6584 target_desc::compatible.
6585 (print_c_tdesc::visit_pre): Likewise.
6586
20821f4e
AB
65872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6588
6589 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6590 whitespace to underscore.
6591 (maint_print_c_tdesc_cmd): Use fake filename for target
6592 descriptions that came from the target.
6593 (_initialize_target_descriptions): Add filename command completion
6594 for 'maint print c-tdesc'.
6595
1fb5ee62
SM
65962020-06-23 Simon Marchi <simon.marchi@efficios.com>
6597
6598 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6599 lines.
6600
fc3ecb3e
SM
66012020-06-23 Simon Marchi <simon.marchi@efficios.com>
6602
6603 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6604 lines.
6605 (dwarf2_find_location_expression): Likewise.
6606 (call_site_parameter_matches): Likewise.
6607 (dwarf2_compile_expr_to_ax): Likewise.
6608 (disassemble_dwarf_expression): Likewise.
6609 (loclist_describe_location): Likewise.
6610
236ef034
PA
66112020-06-23 Pedro Alves <palves@redhat.com>
6612
6613 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6614 progspace-and-thread.h. Include scoped-mock-context.h instead.
6615 (register_to_value_test): Use scoped_mock_context.
6616 * regcache.c: Include "scoped-mock-context.h".
6617 (cooked_read_test): Don't error out if a target is already pushed.
6618 Use scoped_mock_context. Adjust.
6619 * scoped-mock-context.h: New file.
6620
39e7ecca
AB
66212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6622
6623 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6624 initializer.
6625 (ada_language::is_string_type_p): New member function.
6626 * c-lang.c (c_language_data): Delete la_is_string_type_p
6627 initializer.
6628 (cplus_language_data): Likewise.
6629 (asm_language_data): Likewise.
6630 (minimal_language_data): Likewise.
6631 * d-lang.c (d_language_data): Likewise.
6632 * f-lang.c (f_is_string_type_p): Delete function, implementation
6633 moved to f_language::is_string_type_p.
6634 (f_language_data): Delete la_is_string_type_p initializer.
6635 (f_language::is_string_type_p): New member function,
6636 implementation from f_is_string_type_p.
6637 * go-lang.c (go_is_string_type_p): Delete function, implementation
6638 moved to go_language::is_string_type_p.
6639 (go_language_data): Delete la_is_string_type_p initializer.
6640 (go_language::is_string_type_p): New member function,
6641 implementation from go_is_string_type_p.
6642 * language.c (language_defn::is_string_type_p): Define new member
6643 function.
6644 (default_is_string_type_p): Make static, add comment copied from
6645 header file.
6646 (unknown_language_data): Delete la_is_string_type_p initializer.
6647 (unknown_language::is_string_type_p): New member function.
6648 (auto_language_data): Delete la_is_string_type_p initializer.
6649 (auto_language::is_string_type_p): New member function.
6650 * language.h (language_data): Delete la_is_string_type_p field.
6651 (language_defn::is_string_type_p): Declare new function.
6652 (default_is_string_type_p): Delete desclaration, move comment to
6653 definition.
6654 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6655 moved to m2_language::is_string_type_p.
6656 (m2_language_data): Delete la_is_string_type_p initializer.
6657 (m2_language::is_string_type_p): New member function,
6658 implementation from m2_is_string_type_p.
6659 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6660 initializer.
6661 * opencl-lang.c (opencl_language_data): Likewise.
6662 * p-lang.c (pascal_is_string_type_p): Delete function,
6663 implementation moved to pascal_language::is_string_type_p.
6664 (pascal_language_data): Delete la_is_string_type_p initializer.
6665 (pascal_language::is_string_type_p): New member function,
6666 implementation from pascal_is_string_type_p.
6667 * rust-lang.c (rust_is_string_type_p): Delete function,
6668 implementation moved to rust_language::is_string_type_p.
6669 (rust_language_data): Delete la_is_string_type_p initializer.
6670 (rust_language::is_string_type_p): New member function,
6671 implementation from rust_is_string_type_p.
6672 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6673 is_string_type_p.
6674
4ffc13fb
AB
66752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6676
6677 * ada-lang.c (ada_language_data): Delete la_print_typedef
6678 initializer.
6679 (ada_language::print_typedef): New member function.
6680 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6681 (cplus_language_data): Likewise.
6682 (asm_language_data): Likewise.
6683 (minimal_language_data): Likewise.
6684 * d-lang.c (d_language_data): Likewise.
6685 * f-lang.c (f_language_data): Likewise.
6686 (f_language::print_typedef): New member function.
6687 * go-lang.c (go_language_data): Delete la_print_typedef
6688 initializer.
6689 * language.c (language_defn::print_typedef): Define member
6690 function.
6691 (unknown_language_data): Delete la_print_typedef initializer.
6692 (unknown_language::print_typedef): New member function.
6693 (auto_language_data): Delete la_print_typedef initializer.
6694 (auto_language::print_typedef): New member function.
6695 * language.h (language_data): Delete la_print_typedef field.
6696 (language_defn::print_typedef): Declare new member function.
6697 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6698 (default_print_typedef): Delete declaration.
6699 * m2-lang.c (m2_language_data): Delete la_print_typedef
6700 initializer.
6701 (m2_language::print_typedef): New member function.
6702 * objc-lang.c (objc_language_data): Delete la_print_typedef
6703 initializer.
6704 * opencl-lang.c (opencl_language_data): Likewise.
6705 * p-lang.c (pascal_language_data): Likewise.
6706 (pascal_language::print_typedef): New member function.
6707 * rust-lang.c (rust_print_typedef): Delete function,
6708 implementation moved to rust_language::print_typedef.
6709 (rust_language): Delete la_print_typedef initializer.
6710 (rust_language::print_typedef): New member function,
6711 implementation from rust_print_typedef.
6712 * typeprint.c (default_print_typedef): Delete.
6713
d711ee67
AB
67142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6715
6716 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6717 (ada_language::printstr): New member function.
6718 * c-lang.c (c_language_data): Delete la_printstr initializer.
6719 (cplus_language_data): Likewise.
6720 (asm_language_data): Likewise.
6721 (minimal_language_data): Likewise.
6722 * d-lang.c (d_language_data): Likewise.
6723 * f-lang.c (f_printstr): Rename to f_language::printstr.
6724 (f_language_data): Delete la_printstr initializer.
6725 (f_language::printstr): New member function, implementation from
6726 f_printstr.
6727 * go-lang.c (go_language_data): Delete la_printstr initializer.
6728 * language.c (language_defn::printstr): Define new member
6729 function.
6730 (unk_lang_printstr): Delete.
6731 (unknown_language_data): Delete la_printstr initializer.
6732 (unknown_language::printstr): New member function.
6733 (auto_language_data): Delete la_printstr initializer.
6734 (auto_language::printstr): New member function.
6735 * language.h (language_data): Delete la_printstr field.
6736 (language_defn::printstr): Declare new member function.
6737 (LA_PRINT_STRING): Update call to printstr.
6738 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6739 (m2_language_data): Delete la_printstr initializer.
6740 (m2_language::printstr): New member function, implementation from
6741 m2_printstr.
6742 * objc-lang.c (objc_language_data): Delete la_printstr
6743 initializer.
6744 * opencl-lang.c (opencl_language_data): Likewise.
6745 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6746 (pascal_language_data): Delete la_printstr initializer.
6747 (pascal_language::printstr): New member function, implementation
6748 from pascal_printstr.
6749 * p-lang.h (pascal_printstr): Delete declaration.
6750 * rust-lang.c (rust_printstr): Update header comment.
6751 (rust_language_data): Delete la_printstr initializer.
6752 (rust_language::printstr): New member function.
6753
52b50f2c
AB
67542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6755
6756 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6757 (ada_language::printchar): New member function.
6758 * c-lang.c (c_language_data): Delete la_printchar initializer.
6759 (cplus_language_data): Likewise.
6760 (asm_language_data): Likewise.
6761 (minimal_language_data): Likewise.
6762 * d-lang.c (d_language_data): Likewise.
6763 * f-lang.c (f_printchar): Rename to f_language::printchar.
6764 (f_language_data): Delete la_printchar initializer.
6765 (f_language::printchar): New member function, implementation from
6766 f_printchar.
6767 * go-lang.c (go_language_data): Delete la_printchar initializer.
6768 * language.c (unk_lang_printchar): Delete.
6769 (language_defn::printchar): Define new member function.
6770 (unknown_language_data): Delete la_printchar initializer.
6771 (unknown_language::printchar): New member function.
6772 (auto_language_data): Delete la_printchar initializer.
6773 (auto_language::printchar): New member function.
6774 * language.h (language_data): Delete la_printchar field.
6775 (language_defn::printchar): Declare new member function.
6776 (LA_PRINT_CHAR): Update call to printchar.
6777 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6778 (m2_language::printchar): New member function.
6779 * objc-lang.c (objc_language_data): Delete la_printchar
6780 initializer.
6781 * opencl-lang.c (opencl_language_data): Likewise.
6782 * p-lang.c (pascal_language_data): Delete la_printchar
6783 initializer.
6784 (pascal_language::printchar): New member function.
6785 * rust-lang.c (rust_printchar): Rename to
6786 rust_language::printchar.
6787 (rust_language_data): Delete la_printchar initializer.
6788 (rust_language::printchar): New member function, implementation
6789 from rust_printchar.
6790
ec8cec5b
AB
67912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6792
6793 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6794 (ada_language_data): Delete la_emitchar initializer.
6795 (ada_language::emitchar): New member function, implementation from
6796 emit_char.
6797 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6798 (cplus_language_data): Likewise.
6799 (asm_language_data): Likewise.
6800 (minimal_language_data): Likewise.
6801 * d-lang.c (d_language_data): Likewise.
6802 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6803 (f_language_data): Delete la_emitchar initializer.
6804 (f_language::emitchar): New member function, implementation from
6805 f_emit_char.
6806 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6807 * language.c (unk_lang_emit_char): Delete.
6808 (language_defn::emitchar): New member function definition.
6809 (unknown_language_data): Delete la_emitchar initializer.
6810 (unknown_language::emitchar): New member function.
6811 (auto_language_data): Delete la_emitchar initializer.
6812 (auto_language::emitchar): New member function.
6813 * language.h (language_data): Delete la_emitchar field.
6814 (language_defn::emitchar): New member field declaration.
6815 (LA_EMIT_CHAR): Update call to emitchar.
6816 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6817 (m2_language_data): Delete la_emitchar initializer.
6818 (m2_language::emitchar): New member function, implementation from
6819 m2_emit_char.
6820 * objc-lang.c (objc_language_data): Delete la_emitchar
6821 initializer.
6822 * opencl-lang.c (opencl_language_data): Likewise.
6823 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6824 (pascal_language_data): Delete la_emitchar initializer.
6825 (pascal_language::emitchar): New member function, implementation
6826 from pascal_emit_char.
6827 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6828 (rust_language_data): Delete la_emitchar initializer.
6829 (rust_language::emitchar): New member function, implementation
6830 from rust_emitchar.
6831
1bf9c363
AB
68322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6833
6834 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6835 (ada_language_data): Delete la_post_parser initializer.
6836 (ada_language::post_parser): New member function.
6837 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6838 (cplus_language_data): Likewise.
6839 (asm_language_data): Likewise.
6840 (minimal_language_data): Likewise.
6841 * d-lang.c (d_language_data): Likewise.
6842 * f-lang.c (f_language_data): Likewise.
6843 * go-lang.c (go_language_data): Likewise.
6844 * language.c (unknown_language_data): Likewise.
6845 (auto_language_data): Likewise.
6846 * language.h (language_data): Delete la_post_parser field.
6847 (language_defn::post_parser): New member function.
6848 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6849 * objc-lang.c (objc_language_data): Likewise.
6850 * opencl-lang.c (opencl_language_data): Likewise.
6851 * p-lang.c (pascal_language_data): Likewise.
6852 * parse.c (parse_exp_in_context): Update call to post_parser.
6853 (null_post_parser): Delete definition.
6854 * parser-defs.h (null_post_parser): Delete declaration.
6855 * rust-lang.c (rust_language_data): Delete la_post_parser
6856 initializer.
6857
87afa652
AB
68582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6859
6860 * ada-lang.c (parse): Rename to ada_language::parser.
6861 (ada_language_data): Delete la_parser initializer.
6862 (ada_language::parser): New member function, implementation from
6863 parse.
6864 * c-lang.c (c_language_data): Delete la_parser initializer.
6865 (cplus_language_data): Likewise.
6866 (asm_language_data): Likewise.
6867 (minimal_language_data): Likewise.
6868 * d-lang.c (d_language_data): Likewise.
6869 (d_language::parser): New member function.
6870 * f-lang.c (f_language_data): Delete la_parser initializer.
6871 (f_language::parser): New member function.
6872 * go-lang.c (go_language_data): Delete la_parser initializer.
6873 (go_language::parser): New member function.
6874 * language.c (unk_lang_parser): Delete.
6875 (language_defn::parser): Define new member function.
6876 (unknown_language_data): Delete la_parser initializer.
6877 (unknown_language::parser): New member function.
6878 (auto_language_data): Delete la_parser initializer.
6879 (auto_language::parser): New member function.
6880 * language.h (language_data): Delete la_parser field.
6881 (language_defn::parser): Declare new member function.
6882 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6883 (m2_language::parser): New member function.
6884 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6885 * opencl-lang.c (opencl_language_data): Likewise.
6886 * p-lang.c (pascal_language_data): Likewise.
6887 (pascal_language::parser): New member function.
6888 * parse.c (parse_exp_in_context): Update call to parser.
6889 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6890 (rust_language::parser): New member function.
6891
37825800
AB
68922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6893
6894 * top.c (print_gdb_configuration): Print --with-python-libdir
6895 configuration value.
6896
5b860c93
PW
68972020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6898
6899 * NEWS: Mention change to the alias command.
6900
cf00cd6f
PW
69012020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6902
6903 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6904 (alias_command_completer)
6905 (make_alias_options_def_group): New functions.
6906 (alias_opts, alias_option_defs): New struct and array.
6907 (alias_usage_error): Update usage.
6908 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6909 Use option framework.
6910 (_initialize_cli_cmds): Update alias command help.
6911 Update aliases command help.
6912 (show_user):
6913 Add NULL for new default_args lookup_cmd argument.
6914 (valid_command_p): Rename to validate_aliased_command.
6915 Add NULL for new default_args lookup_cmd argument. Verify that the
6916 aliased_command has no default args.
6917 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6918 (lookup_cmd_1, lookup_cmd): New argument default_args.
6919 (add_alias_cmd):
6920 Add NULL for new default_args lookup_cmd argument.
6921 (print_help_for_command): Show default args under the layout
6922 alias some_alias = some_aliased_cmd some_alias_default_arg.
6923 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6924 xfree default_args in destructor.
6925 * cli/cli-script.c (process_next_line, do_define_command):
6926 Add NULL for new default_args lookup_cmd argument.
6927 * command.h: Declare new default_args argument in lookup_cmd
6928 and lookup_cmd_1.
6929 * completer.c (complete_line_internal_1):
6930 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6931 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6932 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6933 Likewise.
6934 * infcmd.c (_initialize_infcmd): Likewise.
6935 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6936 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6937 * python/py-param.c (add_setshow_generic): Likewise.
6938 * remote.c (_initialize_remote): Likewise.
6939 * top.c (execute_command): Prepend default_args if command has some.
6940 (set_verbose):
6941 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6942 * tracepoint.c (validate_actionline, encode_actions_1):
6943 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6944
bd920864
TBA
69452020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6946
6947 * jit.c (jit_read_descriptor): Use bool as the return type.
6948 (jit_breakpoint_re_set_internal): Use bool as the return type.
6949 Invert the return value logic; return true if the jit breakpoint
6950 has been successfully initialized.
6951 (jit_inferior_init): Update the call to
6952 jit_breakpoint_re_set_internal.
6953
f8098322
PA
69542020-06-22 Pedro Alves <palves@redhat.com>
6955
6956 PR gdb/25939
6957 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6958 Use the current inferior instead. Don't return
6959 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6960 wait again.
6961 * sol-thread.c (sol_thread_target::wait): Don't reference
6962 inferior_ptid.
6963 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6964 (sol_update_thread_list_callback): Use the current inferior's pid
6965 instead of inferior_ptid.
6966
196535a6
RO
69672020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6968
6969 * procfs.c: Cleanup many comments.
6970
6971 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6972 (AFTER_WATCHFLAG): Replace by value.
6973
6974 (MAIN_PROC_NAME_FORMAT): Inline ...
6975 (create_procinfo): ... here.
6976
6977 (procfs_debug_inferior): Remove SYS_exec handling.
6978 (syscall_is_exec): Likewise.
6979 (procfs_set_exec_trap): Likewise.
6980
6981 (syscall_is_lwp_exit): Inline in callers.
6982 (syscall_is_exit): Likewise.
6983 (syscall_is_exec): Likewise.
6984 (syscall_is_lwp_create): Likewise.
6985
6986 (invalidate_cache): Remove #if 0 code.
6987
6988 (make_signal_thread_runnable): Remove.
6989 (procfs_target::resume): Remove #if 0 code.
6990
cf6f3e86
RO
69912020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6992
6993 PR gdb/25939
6994 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6995 call ...
6996 (procfs_target::create_inferior): ... here.
6997
48e9cc84
PW
69982020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6999
7000 * exec.c (validate_exec_file): Ensure the build-id is up to
7001 date by calling reopen_exec_file (that checks file timestamp
7002 to decide to re-read the file).
7003
3922b302
PA
70042020-06-18 Pedro Alves <palves@redhat.com>
7005
7006 PR gdb/25412
7007 * gdbthread.h (delete_thread, delete_thread_silent)
7008 (find_thread_ptid): Update comments.
7009 * thread.c (current_thread_): New global.
7010 (is_current_thread): Move higher, and reimplement.
7011 (inferior_thread): Reimplement.
7012 (set_thread_exited): Use bool. Add assertions.
7013 (add_thread_silent): Simplify thread-reuse handling by always
7014 calling delete_thread.
7015 (delete_thread): Remove intro comment.
7016 (find_thread_ptid): Skip exited threads.
7017 (switch_to_thread_no_regs): Write to current_thread_.
7018 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7019 INFERIOR_PTID. Clear current_thread_.
7020
6dbdab44
PA
70212020-06-18 Pedro Alves <palves@redhat.com>
7022
7023 * aix-thread.c (pd_update): Use switch_to_thread.
7024
2da4b788
PA
70252020-06-18 Pedro Alves <palves@redhat.com>
7026
7027 * ravenscar-thread.c (ravenscar_thread_target): Update.
7028 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7029 (ravenscar_thread_target::add_active_thread): ... this. Don't
7030 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7031 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7032
50838d1b
PA
70332020-06-18 Pedro Alves <palves@redhat.com>
7034
7035 * nat/windows-nat.c (current_windows_thread): Remove.
7036 * nat/windows-nat.h (current_windows_thread): Remove.
7037 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7038 Adjust.
7039 (display_selectors): Adjust to fetch the current
7040 windows_thread_info based on inferior_ptid.
7041 (fake_create_process): No longer write to current_windows_thread.
7042 (windows_nat_target::get_windows_debug_event):
7043 Don't set inferior_ptid or current_windows_thread.
7044 (windows_nat_target::wait): Adjust to not rely on
7045 current_windows_thread.
7046 (do_initial_windows_stuff): Now a method of windows_nat_target.
7047 Switch to the last_ptid thread.
7048 (windows_nat_target::attach): Adjust.
7049 (windows_nat_target::detach): Use switch_to_no_thread instead of
7050 writing to inferior_ptid directly.
7051 (windows_nat_target::create_inferior): Adjust.
7052
31ce04e9
PA
70532020-06-18 Pedro Alves <palves@redhat.com>
7054
7055 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7056
1ee1a363
PA
70572020-06-18 Pedro Alves <palves@redhat.com>
7058
7059 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7060 after creating it, instead of writing to inferior_ptid. Don't
7061 write to inferior_ptid.
7062
6d350754
PA
70632020-06-18 Pedro Alves <palves@redhat.com>
7064
7065 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7066
5d971d48
PA
70672020-06-18 Pedro Alves <palves@redhat.com>
7068
7069 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7070 it, instead of writing to inferior_ptid.
7071
86e57d1b
PA
70722020-06-18 Pedro Alves <palves@redhat.com>
7073
7074 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7075 to inferior_ptid.
7076
f2e1c129
PA
70772020-06-18 Pedro Alves <palves@redhat.com>
7078
7079 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7080 instead of writing to inferior_ptid directly.
7081
60db1b85
PA
70822020-06-18 Pedro Alves <palves@redhat.com>
7083
7084 * corelow.c (core_target::close): Use switch_to_no_thread instead
7085 of writing to inferior_ptid directly.
7086 (add_to_thread_list, core_target_open): Use switch_to_thread
7087 instead of writing to inferior_ptid directly.
7088
fe7d6a8d
PA
70892020-06-18 Pedro Alves <palves@redhat.com>
7090
7091 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7092 inferior_ptid.
7093 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7094 inferior_ptid.
7095 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7096 inferior_ptid directly.
7097 (darwin_nat_target::init_thread_list): Switch to thread, instead
7098 of writing to inferior_ptid.
7099 (darwin_nat_target::attach): Don't write to inferior_ptid.
7100 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7101
975f8708
PA
71022020-06-18 Pedro Alves <palves@redhat.com>
7103
7104 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7105 thread.
7106 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7107 Instead use switch_to_thread.
7108 (gnu_nat_target::detach): Use switch_to_no_thread
7109 instead of writing to inferior_ptid directly. Used passed-in
7110 inferior instead of looking up the inferior by pid.
7111
1a204730
PA
71122020-06-18 Pedro Alves <palves@redhat.com>
7113
7114 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7115 inferior_ptid.
7116
ebe84f23
PA
71172020-06-18 Pedro Alves <palves@redhat.com>
7118
7119 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7120 inferior_ptid.
7121 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7122 thread.
7123 (nto_procfs_target::detach): Avoid referencing
7124 inferior_ptid. Use switch_to_no_thread instead of writing to
7125 inferior_ptid directly.
7126 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7127 instead of writing to inferior_ptid directly.
7128 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7129 to thread.
7130
191f02e5
PA
71312020-06-18 Pedro Alves <palves@redhat.com>
7132
7133 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7134 after creating it, instead of writing to inferior_ptid.
7135 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7136 to inferior_ptid directly.
7137 (gdbsim_target::wait): Don't write to inferior_ptid.
7138
0ac55310
PA
71392020-06-18 Pedro Alves <palves@redhat.com>
7140
7141 * remote.c (remote_target::remote_notice_new_inferior): Use
7142 switch_to_thread instead of writing to inferior_ptid directly.
7143 (remote_target::add_current_inferior_and_thread): Use
7144 switch_to_no_thread instead of writing to inferior_ptid directly.
7145 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7146 and switch_to_thread instead of using set_current_inferior or
7147 writing to inferior_ptid directly.
7148
5233f39b
PA
71492020-06-18 Pedro Alves <palves@redhat.com>
7150
7151 * tracectf.c (ctf_target_open): Switch to added thread instead of
7152 writing to inferior_ptid directly.
7153 (ctf_target::close): Use switch_to_no_thread instead of writing to
7154 inferior_ptid directly.
7155
087e161b
PA
71562020-06-18 Pedro Alves <palves@redhat.com>
7157
7158 * tracefile-tfile.c (tfile_target_open): Don't write to
7159 inferior_ptid directly, instead switch to added thread.
7160 (tfile_target::close): Use switch_to_no_thread instead of writing
7161 to inferior_ptid directly.
7162
7fb43e53
PA
71632020-06-18 Pedro Alves <palves@redhat.com>
7164
7165 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7166 (procfs_target::detach): Use switch_to_no_thread
7167 instead of writing to inferior_ptid directly.
7168 (do_attach): Change return type to void. Switch to the added
7169 thread.
7170 (procfs_target::create_inferior): Switch to the added thread.
7171 (procfs_do_thread_registers): Don't write to inferior_ptid.
7172
18493a00
PA
71732020-06-18 Pedro Alves <palves@redhat.com>
7174
7175 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7176 of writing to inferior_ptid.
7177 (scoped_restore_exited_inferior): Delete.
7178 (handle_vfork_child_exec_or_exit): Simplify using
7179 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7180 instead of writing to inferior_ptid.
7181 (THREAD_STOPPED_BY): Delete.
7182 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7183 (thread_stopped_by_hw_breakpoint): Delete.
7184 (save_waitstatus): Use
7185 scoped_restore_current_thread+switch_to_thread, and call
7186 target_stopped_by_watchpoint instead of
7187 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7188 instead of thread_stopped_by_sw_breakpoint, and
7189 target_stopped_by_hw_breakpoint instead of
7190 thread_stopped_by_hw_breakpoint.
7191 (handle_inferior_event)
7192 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7193 inferior_ptid directly, nor
7194 set_current_inferior/set_current_program_space. Use
7195 switch_to_thread / switch_to_inferior_no_thread instead.
7196
a0776b13
PA
71972020-06-18 Pedro Alves <palves@redhat.com>
7198
7199 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7200 instead of writing to inferior_ptid.
7201
6155c136
PA
72022020-06-18 Pedro Alves <palves@redhat.com>
7203
7204 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7205 added thread.
7206 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7207 to the added thread.
7208 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7209 instead of writing to inferior_ptid.
7210
c5316fc6
PA
72112020-06-18 Pedro Alves <palves@redhat.com>
7212
7213 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7214 (register_to_value_test): Mock a program_space too. Heap-allocate
7215 the address space. Don't write to inferior_ptid. Use
7216 switch_to_thread instead.
7217
8df01799
PA
72182020-06-18 Pedro Alves <palves@redhat.com>
7219
7220 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7221 Delete.
7222 (find_signalled_thread()): New, factored out from
7223 linux_make_corefile_notes and adjusted to handle exited threads.
7224 (linux_make_corefile_notes): Adjust to use the new
7225 find_signalled_thread.
7226
41792d68
PA
72272020-06-18 Pedro Alves <palves@redhat.com>
7228
7229 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7230 of saving/restoring inferior_ptid.
7231
612f258a
TT
72322020-06-17 Tom Tromey <tom@tromey.com>
7233
7234 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7235 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7236 declare.
7237 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7238
efb763a5
SM
72392020-06-15 Simon Marchi <simon.marchi@efficios.com>
7240
7241 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7242 of partial symtabs.
7243
2951f6c0
SM
72442020-06-17 Simon Marchi <simon.marchi@efficios.com>
7245
7246 * regformats/reg-arm.dat: Remove.
7247 * regformats/reg-bfin.dat: Remove.
7248 * regformats/reg-cris.dat: Remove.
7249 * regformats/reg-crisv32.dat: Remove.
7250 * regformats/reg-m32r.dat: Remove.
7251 * regformats/reg-tilegx.dat: Remove.
7252 * regformats/reg-tilegx32.dat: Remove.
7253
7d458ea5
SM
72542020-06-17 Simon Marchi <simon.marchi@efficios.com>
7255
7256 * features/Makefile (WHICH): Remove arm files.
7257 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7258 * regformats/arm/arm-with-neon.dat: Remove.
7259 * regformats/arm/arm-with-vfpv2.dat: Remove.
7260 * regformats/arm/arm-with-vfpv3.dat: Remove.
7261
3af96c0d
SM
72622020-06-17 Simon Marchi <simon.marchi@efficios.com>
7263
7264 * features/Makefile (XMLTOC): Remove rx.xml.
7265
b25e22fd
PA
72662020-06-17 Pedro Alves <palves@redhat.com>
7267
7268 * gdbthread.h (thread_control_state) <trap_expected> Update
7269 comments.
7270
a78a19b1
AB
72712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7272
7273 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7274 ada_language::lookup_symbol_nonlocal.
7275 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7276 (ada_language::lookup_symbol_nonlocal): New member function,
7277 implementation from ada_lookup_symbol_nonlocal.
7278 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7279 initializer.
7280 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7281 initializer.
7282 (cplus_language::lookup_symbol_nonlocal): New member function.
7283 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7284 (minimal_language_data) Likewise.
7285 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7286 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7287 initializer.
7288 (d_language::lookup_symbol_nonlocal): New member function.
7289 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7290 initializer.
7291 (f_language::lookup_symbol_nonlocal): New member function.
7292 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7293 initializer.
7294 * language.c (unknown_language_data): Likewise.
7295 (auto_language_data): Likewise.
7296 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7297 field.
7298 (language_defn::lookup_symbol_nonlocal): New member function.
7299 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7300 initializer.
7301 * objc-lang.c (objc_language_data): Likewise.
7302 * opencl-lang.c (opencl_language_data): Likewise.
7303 * p-lang.c (pascal_language_data): Likewise.
7304 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7305 rust_language::lookup_symbol_nonlocal.
7306 (rust_language_data): Delete la_lookup_symbol_nonlocal
7307 initializer.
7308 (rust_language::lookup_symbol_nonlocal): New member function,
7309 implementation from rust_lookup_symbol_nonlocal.
7310 * symtab.c (lookup_symbol_aux): Update call to
7311 lookup_symbol_nonlocal.
7312 (basic_lookup_symbol_nonlocal): Rename to...
7313 (language_defn::lookup_symbol_nonlocal): ...this, and update
7314 header comment. Remove language_defn parameter, and replace with
7315 uses of `this'.
7316 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7317
ebe2334e
AB
73182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7319
7320 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7321 initializer.
7322 (ada_language::value_print_inner): New member function.
7323 * c-lang.c (c_language_data): Delete la_value_print_inner
7324 initializer.
7325 (cplus_language_data): Likewise.
7326 (asm_language_data): Likewise.
7327 (minimal_language_data): Likewise.
7328 * d-lang.c (d_language_data): Likewise.
7329 (d_language::value_print_inner): New member function.
7330 * f-lang.c (f_language_data): Delete la_value_print_inner
7331 initializer.
7332 (f_language::value_print_inner): New member function.
7333 * f-lang.h (f_value_print_innner): Rename to...
7334 (f_value_print_inner): ...this (note spelling of 'inner').
7335 * f-valprint.c (f_value_print_innner): Rename to...
7336 (f_value_print_inner): ...this (note spelling of 'inner').
7337 * go-lang.c (go_language_data): Delete la_value_print_inner
7338 initializer.
7339 (go_language::value_print_inner): New member function.
7340 * language.c (language_defn::value_print_inner): Define new member
7341 function.
7342 (unk_lang_value_print_inner): Delete.
7343 (unknown_language_data): Delete la_value_print_inner initializer.
7344 (unknown_language::value_print_inner): New member function.
7345 (auto_language_data): Delete la_value_print_inner initializer.
7346 (auto_language::value_print_inner): New member function.
7347 * language.h (language_data): Delete la_value_print_inner field.
7348 (language_defn::value_print_inner): Delcare new member function.
7349 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7350 initializer.
7351 (m2_language::value_print_inner): New member function.
7352 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7353 initializer.
7354 * opencl-lang.c (opencl_language_data): Likewise.
7355 * p-lang.c (pascal_language_data): Likewise.
7356 (pascal_language::value_print_inner): New member function.
7357 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7358 initializer.
7359 (rust_language::value_print_inner): New member function.
7360 * valprint.c (do_val_print): Update call to value_print_inner.
7361
a1d1fa3e
AB
73622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7363
7364 * ada-lang.c (ada_language_data): Delete la_value_print
7365 initializer.
7366 (ada_language::value_print): New member function.
7367 * c-lang.c (c_language_data): Delete la_value_print initializer.
7368 (cplus_language_data): Likewise.
7369 (asm_language_data): Likewise.
7370 (minimal_language_data): Likewise.
7371 * d-lang.c (d_language_data): Likewise.
7372 * f-lang.c (f_language_data): Likewise.
7373 * go-lang.c (go_language_data): Likewise.
7374 * language.c (unk_lang_value_print): Delete.
7375 (language_defn::value_print): Define new member function.
7376 (unknown_language_data): Delete la_value_print initializer.
7377 (unknown_language::value_print): New member function.
7378 (auto_language_data): Delete la_value_print initializer.
7379 (auto_language::value_print): New member function.
7380 * language.h (language_data): Delete la_value_print field.
7381 (language_defn::value_print): Declare new member function.
7382 (LA_VALUE_PRINT): Update call to value_print.
7383 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7384 * objc-lang.c (objc_language_data): Likewise.
7385 * opencl-lang.c (opencl_language_data): Likewise.
7386 * p-lang.c (pascal_language_data): Likewise.
7387 (pascal_language::value_print): New member function.
7388 * rust-lang.c (rust_language_data): Delete la_value_print
7389 initializer.
7390
f16a9f57
AB
73912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7392
7393 * ada-lang.c (ada_watch_location_expression): Rename to
7394 ada_language::watch_location_expression.
7395 (ada_language_data): Delete la_watch_location_expression
7396 initializer.
7397 (ada_language::watch_location_expression): New member function,
7398 implementation from ada_watch_location_expression.
7399 * breakpoint.c (watch_command_1): Update call to
7400 watch_location_expression.
7401 * c-lang.c (c_watch_location_expression): Rename to
7402 language_defn::watch_location_expression.
7403 (c_language_data): Delete la_watch_location_expression
7404 initializer.
7405 (cplus_language_data): Likewise.
7406 (asm_language_data): Likewise.
7407 (minimal_language_data): Likewise.
7408 * c-lang.h (c_watch_location_expression): Delete declaration.
7409 * d-lang.c (d_language_data): Delete la_watch_location_expression
7410 initializer.
7411 * f-lang.c (f_language_data): Likewise.
7412 * go-lang.c (go_language_data): Likewise.
7413 * language.c (language_defn::watch_location_expression): Member
7414 function implementation from c_watch_location_expression.
7415 (unknown_language_data): Delete la_watch_location_expression
7416 initializer.
7417 (auto_language_data): Likewise.
7418 * language.h (language_data): Delete la_watch_location_expression
7419 field.
7420 (language_defn::watch_location_expression): Declare new member
7421 function.
7422 * m2-lang.c (m2_language_data): Delete
7423 la_watch_location_expression initializer.
7424 * objc-lang.c (objc_language_data): Likewise.
7425 * opencl-lang.c (opencl_language_data): Likewise.
7426 * p-lang.c (pascal_language_data): Likewise.
7427 * rust-lang.c (rust_watch_location_expression): Rename to
7428 rust_language::watch_location_expression.
7429 (rust_language_data): Delete la_watch_location_expression
7430 initializer.
7431 (rust_language::watch_location_expression): New member function,
7432 implementation from rust_watch_location_expression.
7433
7e56227d
AB
74342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7435
7436 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7437 ada_language::collect_symbol_completion_matches.
7438 (ada_language_data): Delete la_collect_symbol_completion_matches
7439 initializer.
7440 (ada_language::collect_symbol_completion_matches): New member
7441 function, implementation from
7442 ada_collect_symbol_completion_matches.
7443 * c-lang.c (c_language_data): Delete
7444 la_collect_symbol_completion_matches initializer.
7445 (cplus_language_data): Likewise.
7446 (asm_language_data): Likewise.
7447 (minimal_language_data): Likewise.
7448 * d-lang.c (d_language_data): Likewise.
7449 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7450 f_language::collect_symbol_completion_matches.
7451 (f_language_data): Delete la_collect_symbol_completion_matches
7452 initializer.
7453 (f_language::collect_symbol_completion_matches) New member
7454 function, implementation from f_collect_symbol_completion_matches.
7455 * go-lang.c (go_language_data): Delete
7456 la_collect_symbol_completion_matches initializer.
7457 * language.c (unknown_language_data): Likewise.
7458 (auto_language_data): Likewise.
7459 * language.h (language_data): Delete
7460 la_collect_symbol_completion_matches field.
7461 (language_defn::collect_symbol_completion_matches): New member
7462 function.
7463 * m2-lang.c (m2_language_data): Delete
7464 la_collect_symbol_completion_matches initializer.
7465 * objc-lang.c (objc_language_data): Likewise.
7466 * opencl-lang.c (opencl_language_data): Likewise.
7467 * p-lang.c (pascal_language_data): Likewise.
7468 * rust-lang.c (rust_language_data): Likewise.
7469 * symtab.c (default_collect_symbol_completion_matches): Delete.
7470 (collect_symbol_completion_matches): Update call to
7471 collect_symbol_completion_matches.
7472 (collect_symbol_completion_matches_type): Likewise.
7473 * symtab.h (default_collect_symbol_completion_matches): Delete
7474 declaration.
7475
53fc67f8
AB
74762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7477
7478 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7479 (ada_language_data): Delete la_word_break_characters initializer.
7480 (ada_language::word_break_characters): New member function.
7481 * c-lang.c (c_language_data): Delete la_word_break_characters
7482 initializer.
7483 (cplus_language_data): Likewise.
7484 (asm_language_data): Likewise.
7485 (minimal_language_data): Likewise.
7486 * completer.c: Update global comment.
7487 (advance_to_expression_complete_word_point): Update call to
7488 word_break_characters.
7489 (complete_files_symbols): Likewise.
7490 (complete_line_internal_1): Likewise.
7491 (default_completer_handle_brkchars): Likewise.
7492 (skip_quoted_chars): Likewise.
7493 * d-lang.c (d_language_data): Delete la_word_break_characters
7494 initializer.
7495 * f-lang.c (f_word_break_characters): Delete.
7496 (f_language_data): Delete la_word_break_characters initializer.
7497 (f_language::word_break_characters): New member function.
7498 * go-lang.c (go_language_data): Delete la_word_break_characters
7499 initializer.
7500 * language.c (unknown_language_data): Likewise.
7501 (auto_language_data): Likewise.
7502 * language.h (default_word_break_characters): Move declaration to
7503 earlier in the file.
7504 (language_data): Delete la_word_break_characters field.
7505 (language_defn::word_break_characters): New member function.
7506 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7507 initializer.
7508 * objc-lang.c (objc_language_data): Likewise.
7509 * opencl-lang.c (opencl_language_data): Likewise.
7510 * p-lang.c (pascal_language_data): Likewise.
7511 * rust-lang.c (rust_language_data): Likewise.
7512
c9debfb9
AB
75132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7514
7515 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7516 (ada_language_data): Delete la_get_symbol_name_matcher
7517 initializer.
7518 (language_defn::get_symbol_name_matcher_inner): New member
7519 function.
7520 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7521 initializer.
7522 (cplus_language_data): Likewise.
7523 (cplus_language::get_symbol_name_matcher_inner): New member
7524 function.
7525 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7526 (minimal_language_data): Likewise.
7527 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7528 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7529 initializer.
7530 * dictionary.c (iter_match_first_hashed): Update call to
7531 get_symbol_name_matcher.
7532 (iter_match_next_hashed): Likewise.
7533 (iter_match_next_linear): Likewise.
7534 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7535 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7536 initializer.
7537 (f_language::get_symbol_name_matcher_inner): New member function.
7538 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7539 initializer.
7540 * language.c (default_symbol_name_matcher): Update header comment,
7541 make static.
7542 (language_defn::get_symbol_name_matcher): New definition.
7543 (language_defn::get_symbol_name_matcher_inner): Likewise.
7544 (get_symbol_name_matcher): Delete.
7545 (unknown_language_data): Delete la_get_symbol_name_matcher
7546 initializer.
7547 (auto_language_data): Likewise.
7548 * language.h (language_data): Delete la_get_symbol_name_matcher
7549 field.
7550 (language_defn::get_symbol_name_matcher): New member function.
7551 (language_defn::get_symbol_name_matcher_inner): Likewise.
7552 (default_symbol_name_matcher): Delete declaration.
7553 * linespec.c (find_methods): Update call to
7554 get_symbol_name_matcher.
7555 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7556 initializer.
7557 * minsyms.c (lookup_minimal_symbol): Update call to
7558 get_symbol_name_matcher.
7559 (iterate_over_minimal_symbols): Likewise.
7560 * objc-lang.c (objc_language_data): Delete
7561 la_get_symbol_name_matcher initializer.
7562 * opencl-lang.c (opencl_language_data): Likewise.
7563 * p-lang.c (pascal_language_data): Likewise.
7564 * psymtab.c (psymbol_name_matches): Update call to
7565 get_symbol_name_matcher.
7566 * rust-lang.c (rust_language_data): Delete
7567 la_get_symbol_name_matcher initializer.
7568 * symtab.c (symbol_matches_search_name): Update call to
7569 get_symbol_name_matcher.
7570 (compare_symbol_name): Likewise.
7571
9a49ad8c
AB
75722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7573
7574 * ada-lang.c (ada_language_data): Delete la_compute_program
7575 initializer.
7576 * c-lang.c (c_language_data): Likewise.
7577 (c_language::compute_program): New member function.
7578 (cplus_language_data): Delete la_compute_program initializer.
7579 (cplus_language::compute_program): New member function.
7580 (asm_language_data): Delete la_compute_program initializer.
7581 (minimal_language_data): Likewise.
7582 * c-lang.h (c_compute_program): Update comment.
7583 (cplus_compute_program): Likewise.
7584 * compile/compile-c-support.c (c_compute_program): Likewise.
7585 (cplus_compute_program): Likewise.
7586 * compile/compile.c (compile_to_object): Update call to
7587 la_compute_program.
7588 * d-lang.c (d_language_data): Delete la_compute_program
7589 initializer.
7590 * f-lang.c (f_language_data): Likewise.
7591 * go-lang.c (go_language_data): Likewise.
7592 * language.c (unknown_language_data): Likewise.
7593 (auto_language_data): Likewise.
7594 * language.h (language_data): Delete la_compute_program field.
7595 (language_defn::compute_program): New member function.
7596 * m2-lang.c (m2_language_data): Delete la_compute_program
7597 initializer.
7598 * objc-lang.c (objc_language_data): Likewise.
7599 * opencl-lang.c (opencl_language_data): Likewise.
7600 * p-lang.c (pascal_language_data): Likewise.
7601 * rust-lang.c (rust_language_data): Likewise.
7602
eff93b4d
AB
76032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7604
7605 * ada-lang.c (ada_language_data) Delete
7606 la_class_name_from_physname initializer.
7607 * c-lang.c (c_language_data): Likewise.
7608 (cplus_language_data): Likewise.
7609 (cplus_language::class_name_from_physname): New member function.
7610 (asm_language_data): Delete la_class_name_from_physname
7611 initializer.
7612 (minimal_language_data): Likewise.
7613 * d-lang.c (d_language_data): Likewise.
7614 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7615 method on language_defn class.
7616 (guess_full_die_structure_name): Likewise.
7617 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7618 initializer.
7619 * go-lang.c (go_language_data): Likewise.
7620 * language.c (language_class_name_from_physname): Delete.
7621 (unk_lang_class_name): Delete.
7622 (unknown_language_data): Delete la_class_name_from_physname
7623 initializer.
7624 (auto_language_data): Likewise.
7625 * language.h (language_data): Delete la_class_name_from_physname
7626 field.
7627 (language_defn::class_name_from_physname): New function.
7628 (language_class_name_from_physname): Delete declaration.
7629 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7630 initializer.
7631 * objc-lang.c (objc_language_data): Likewise.
7632 * opencl-lang.c (opencl_language_data): Likewise.
7633 * p-lang.c (pascal_language_data): Likewise.
7634 * rust-lang.c (rust_language_data): Likewise.
7635
de543742
TT
76362020-06-16 Tom Tromey <tom@tromey.com>
7637
7638 * tui/tui-data.h (STATUS_NAME): New macro.
7639 * tui/tui-layout.c (tui_remove_some_windows)
7640 (initialize_known_windows, tui_register_window)
7641 (tui_layout_split::remove_windows, initialize_layouts)
7642 (tui_new_layout_command): Don't use hard-coded window names.
7643
a350efd4
TT
76442020-06-16 Tom Tromey <tom@tromey.com>
7645
7646 PR tui/25348:
7647 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7648 tui_initialize_readline. Only run once. Call rl_initialize.
7649 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7650 tui_initialize_readline.
7651 * tui/tui-io.c (tui_setup_io): Call
7652 tui_ensure_readline_initialized.
7653 * tui/tui-interp.c (tui_interp::init): Update.
7654
39ec0490
TT
76552020-06-16 Tom Tromey <tom@tromey.com>
7656
7657 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7658 Also preserve the status window.
7659
d2d1ea20
TT
76602020-06-16 Tom Tromey <tom@tromey.com>
7661
7662 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7663 where m_window==nullptr.
7664
66920317
TT
76652020-06-15 Tom Tromey <tromey@adacore.com>
7666
7667 * windows-nat.c (windows_nat::handle_output_debug_string):
7668 Update.
7669 (windows_nat::handle_ms_vc_exception): Update.
7670 * target.h (target_read_string): Change API.
7671 * target.c (target_read_string): Change API.
7672 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7673 Update.
7674 * solib-frv.c (frv_current_sos): Update.
7675 * solib-dsbt.c (dsbt_current_sos): Update.
7676 * solib-darwin.c (darwin_current_sos): Update.
7677 * linux-thread-db.c (inferior_has_bug): Update.
7678 * expprint.c (print_subexp_standard): Update.
7679 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7680 (ada_exception_message_1): Update.
7681
a5d871dd
TT
76822020-06-15 Tom Tromey <tromey@adacore.com>
7683
7684 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7685
670e35fa
TT
76862020-06-15 Tom Tromey <tromey@adacore.com>
7687
7688 * valprint.c (read_string): Update comment.
7689 * target.c (MIN): Remove.
7690 (target_read_string): Rewrite.
7691
f5272a3b
TT
76922020-06-15 Tom Tromey <tromey@adacore.com>
7693
7694 * corefile.c (read_memory_string): Remove.
7695 * ada-valprint.c (ada_value_print_ptr): Update.
7696 * ada-lang.h (ada_tag_name): Change return type.
7697 * ada-lang.c (type_from_tag): Update.
7698 (ada_tag_name_from_tsd): Change return type. Use
7699 target_read_string.
7700 (ada_tag_name): Likewise.
7701 * gdbcore.h (read_memory_string): Don't declare.
7702
2c074f49
HD
77032020-06-14 Hannes Domani <ssbssa@yahoo.de>
7704
7705 * symtab.c (rbreak_command): Ignore Windows drive colon.
7706
6a17d503
SM
77072020-06-12 Simon Marchi <simon.marchi@efficios.com>
7708
7709 * NEWS: Mention removed GDBserver host support.
7710
453c733f
NC
77112020-06-12 Nelson Chu <nelson.chu@sifive.com>
7712
7713 * features/riscv/rebuild-csr-xml.sh: Updated.
7714
2b4e6a3f
TT
77152020-06-11 Tom Tromey <tom@tromey.com>
7716
7717 PR gdb/18318:
7718 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7719
4412332f
JG
77202020-06-09 Jonny Grant <jg@jguk.org>
77212020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7722
7723 * main.c (captured_main_1): Don't print new line after help.
7724 (print_gdb_help): add mailing list and IRC channel information
7725 to --help. Add new lines between items in the footer. Remove
7726 quotes around bug url.
7727
2f33032a
KS
77282020-06-11 Keith Seitz <keiths@redhat.com>
7729
7730 PR gdb/21356
7731 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7732 Resolve typedefs for type length calculations.
7733
7ab96794
TV
77342020-06-10 Tom de Vries <tdevries@suse.de>
7735
7736 PR ada/24713
7737 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7738 (write_psymbols): Enable .gdb_index for ada.
7739 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7740 ada.
7741
e5f3ece2
TV
77422020-06-10 Tom de Vries <tdevries@suse.de>
7743
7744 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7745 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7746 namei" instead of "const char *name" argument.
7747 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7748 dw2_symtab_iter_init.
7749
940da03e
SM
77502020-06-08 Simon Marchi <simon.marchi@efficios.com>
7751
7752 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7753 to use type::field and field::type instead.
7754
b6cdac4b
SM
77552020-06-08 Simon Marchi <simon.marchi@efficios.com>
7756
7757 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7758 to use field::type instead.
7759
5d14b6e5
SM
77602020-06-08 Simon Marchi <simon.marchi@efficios.com>
7761
7762 * gdbtypes.h (struct field) <type, set_type>: New methods.
7763 Rename `type` field to...
7764 <m_type>: ... this. Change references throughout to use type or
7765 set_type methods.
7766 (FIELD_TYPE): Use field::type. Change call sites that modify
7767 the field's type to use field::set_type instead.
7768
3d967001
SM
77692020-06-08 Simon Marchi <simon.marchi@efficios.com>
7770
7771 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7772 to use type::index_type instead.
7773
262abc0d
SM
77742020-06-08 Simon Marchi <simon.marchi@efficios.com>
7775
7776 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7777 methods.
7778 (TYPE_INDEX_TYPE): Use type::index_type.
7779 * gdbtypes.c (create_array_type_with_stride): Likewise.
7780
82836c92
TT
77812020-06-07 Tom Tromey <tom@tromey.com>
7782
7783 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7784 parameter.
7785 (generic_value_print): Update.
7786
940dace9
AB
77872020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7788
7789 Revert commit 982a38f60b0.
7790 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7791
982a38f6
AB
77922020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7793
7794 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7795 avoid use after free.
7796
82f06518
TV
77972020-06-05 Tom de Vries <tdevries@suse.de>
7798
7799 * NEWS: Fix typos.
7800
f8c41851
SM
78012020-06-04 Simon Marchi <simon.marchi@efficios.com>
7802
7803 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7804 the per_bfd object.
7805 (dwarf2_read_debug_names): Likewise.
7806 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7807 object when re-using a per_bfd object with an index.
7808
f9b5d5ea
TV
78092020-06-03 Tom de Vries <tdevries@suse.de>
7810
7811 PR symtab/26046
7812 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7813 children for C++.
7814 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7815 DW_TAG_subprogram.
7816
f6eee2d0
AB
78172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7818
7819 * ada-lang.c (ada_language_data): Delete skip_trampoline
7820 initializer.
7821 * c-lang.c (c_language_data): Likewise.
7822 (cplus_language_data): Likewise.
7823 (cplus_language::skip_trampoline): New member function.
7824 (asm_language_data): Delete skip_trampoline initializer.
7825 (minimal_language_data): Likewise.
7826 * d-lang.c (d_language_data): Likewise.
7827 * f-lang.c (f_language_data): Likewise.
7828 * go-lang.c (go_language_data): Likewise.
7829 * language.c (unk_lang_trampoline): Delete function.
7830 (skip_language_trampoline): Update.
7831 (unknown_language_data): Delete skip_trampoline initializer.
7832 (auto_language_data): Likewise.
7833 * language.h (language_data): Delete skip_trampoline field.
7834 (language_defn::skip_trampoline): New function.
7835 * m2-lang.c (m2_language_data): Delete skip_trampoline
7836 initializer.
7837 * objc-lang.c (objc_skip_trampoline): Delete function, move
7838 implementation to objc_language::skip_trampoline.
7839 (objc_language_data): Delete skip_trampoline initializer.
7840 (objc_language::skip_trampoline): New member function with
7841 implementation from objc_skip_trampoline.
7842 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7843 initializer.
7844 * p-lang.c (pascal_language_data): Likewise.
7845 * rust-lang.c (rust_language_data): Likewise.
7846
0a50df5d
AB
78472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7848
7849 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7850 (ada_language::demangle): New member function.
7851 * c-lang.c (c_language_data): Delete la_demangle initializer.
7852 (cplus_language_data): Delete la_demangle initializer.
7853 (cplus_language::demangle): New member function.
7854 (asm_language_data): Delete la_demangle initializer.
7855 (minimal_language_data): Delete la_demangle initializer.
7856 * d-lang.c (d_language_data): Delete la_demangle initializer.
7857 (d_language::demangle): New member function.
7858 * f-lang.c (f_language_data): Delete la_demangle initializer.
7859 (f_language::demangle): New member function.
7860 * go-lang.c (go_language_data): Delete la_demangle initializer.
7861 (go_language::demangle): New member function.
7862 * language.c (language_demangle): Update.
7863 (unk_lang_demangle): Delete.
7864 (unknown_language_data): Delete la_demangle initializer.
7865 (unknown_language::demangle): New member function.
7866 (auto_language_data): Delete la_demangle initializer.
7867 (auto_language::demangle): New member function.
7868 * language.h (language_data): Delete la_demangle field.
7869 (language_defn::demangle): New function.
7870 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7871 * objc-lang.c (objc_language_data): Delete la_demangle
7872 initializer.
7873 (objc_language::demangle): New member function.
7874 * opencl-lang.c (opencl_language_data): Delete la_demangle
7875 initializer.
7876 * p-lang.c (pascal_language_data): Likewise.
7877 * rust-lang.c (rust_language_data): Likewise.
7878 (rust_language::demangle): New member function.
7879
fbfb0a46
AB
78802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * ada-lang.c (ada_language_data): Delete la_print_type
7883 initializer.
7884 (ada_language::print_type): New member function.
7885 * c-lang.c (c_language_data): Delete la_print_type initializer.
7886 (c_language::print_type): New member function.
7887 (cplus_language_data): Delete la_print_type initializer.
7888 (cplus_language::print_type): New member function.
7889 (asm_language_data): Delete la_print_type initializer.
7890 (asm_language::print_type): New member function.
7891 (minimal_language_data): Delete la_print_type initializer.
7892 (minimal_language::print_type): New member function.
7893 * d-lang.c (d_language_data): Delete la_print_type initializer.
7894 (d_language::print_type): New member function.
7895 * f-lang.c (f_language_data): Delete la_print_type initializer.
7896 (f_language::print_type): New member function.
7897 * go-lang.c (go_language_data): Delete la_print_type initializer.
7898 (go_language::print_type): New member function.
7899 * language.c (unk_lang_print_type): Delete.
7900 (unknown_language_data): Delete la_print_type initializer.
7901 (unknown_language::print_type): New member function.
7902 (auto_language_data): Delete la_print_type initializer.
7903 (auto_language::print_type): New member function.
7904 * language.h (language_data): Delete la_print_type field.
7905 (language_defn::print_type): New function.
7906 (LA_PRINT_TYPE): Update.
7907 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7908 (m2_language::print_type): New member function.
7909 * objc-lang.c (objc_language_data): Delete la_print_type
7910 initializer.
7911 (objc_language::print_type): New member function.
7912 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7913 to opencl_language::print_type.
7914 (opencl_language_data): Delete la_print_type initializer.
7915 (opencl_language::print_type): New member function, implementation
7916 from opencl_print_type.
7917 * p-lang.c (pascal_language_data): Delete la_print_type
7918 initializer.
7919 (pascal_language::print_type): New member function.
7920 * rust-lang.c (rust_print_type): Delete, implementation moved to
7921 rust_language::print_type.
7922 (rust_language_data): Delete la_print_type initializer.
7923 (rust_language::print_type): New member function, implementation
7924 from rust_print_type.
7925
6f827019
AB
79262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7927
7928 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7929 implementation moves to...
7930 (ada_language::sniff_from_mangled_name): ...here. Update return
7931 type.
7932 (ada_language_data): Delete la_sniff_from_mangled_name
7933 initializer.
7934 * c-lang.c (c_language_data): Likewise.
7935 (cplus_language_data): Likewise.
7936 (cplus_language::sniff_from_mangled_name): New member function,
7937 implementation taken from gdb_sniff_from_mangled_name.
7938 (asm_language_data): Delete la_sniff_from_mangled_name
7939 initializer.
7940 (minimal_language_data): Likewise.
7941 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7942 implementation moves to cplus_language::sniff_from_mangled_name.
7943 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7944 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7945 moves to...
7946 (d_language::sniff_from_mangled_name): ...here.
7947 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7948 * f-lang.c (f_language_data): Likewise.
7949 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7950 moves to...
7951 (go_language::sniff_from_mangled_name): ...here.
7952 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7953 * language.c (language_sniff_from_mangled_name): Delete.
7954 (unknown_language_data): Delete la_sniff_from_mangled_name
7955 initializer.
7956 (auto_language_data): Likewise.
7957 * language.h (language_data): Delete la_sniff_from_mangled_name
7958 field.
7959 (language_defn::sniff_from_mangled_name): New function.
7960 (language_sniff_from_mangled_name): Delete declaration.
7961 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7962 field.
7963 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7964 implementation moves to...
7965 (objc_language::sniff_from_mangled_name): ...here.
7966 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7967 * opencl-lang.c (opencl_language_data): Likewise.
7968 * p-lang.c (pascal_language_data): Likewise.
7969 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7970 implementation moves to...
7971 (rust_language::sniff_from_mangled_name): ...here.
7972 (rust_language_data): Delete la_sniff_from_mangled_name
7973 initializer.
7974 * symtab.c (symbol_find_demangled_name): Call
7975 sniff_from_mangled_name member function.
7976
fb8006fd
AB
79772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7978
7979 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7980 initializer.
7981 * c-lang.c (c_language_data): Likewise.
7982 (cplus_language_data): Likewise.
7983 (cplus_language::search_name_hash): New member function.
7984 (asm_language_data): Delete la_search_name_hash initializer.
7985 (minimal_language_data): Likewise.
7986 * d-lang.c (d_language_data): Likewise.
7987 * dictionary.c (default_search_name_hash): Rename to...
7988 (language_defn::search_name_hash): ...this.
7989 * f-lang.c (f_language_data): Likewise.
7990 (f_language::search_name_hash): New member function.
7991 * go-lang.c (go_language_data): Delete la_search_name_hash
7992 initializer.
7993 * language.c (unknown_language_data): Likewise.
7994 (auto_language_data): Likewise.
7995 * language.h (struct language_data): Delete la_search_name_hash
7996 field.
7997 (language_defn::search_name_hash): Declare new member function.
7998 (default_search_name_hash): Delete declaration.
7999 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8000 initializer.
8001 * objc-lang.c (objc_language_data): Likewise.
8002 * opencl-lang.c (opencl_language_data): Likewise.
8003 * p-lang.c (pascal_language_data): Likewise.
8004 * rust-lang.c (rust_language_data): Likewise.
8005 * symtab.c (search_name_hash): Update call.
8006
8e25bafe
AB
80072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8008
8009 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8010 initializer.
8011 * c-lang.c (class compile_instance): Declare.
8012 (c_language_data): Delete la_get_compile_instance initializer.
8013 (c_language::get_compile_instance): New member function.
8014 (cplus_language_data): Delete la_get_compile_instance initializer.
8015 (cplus_language::get_compile_instance): New member function.
8016 (asm_language_data): Delete la_get_compile_instance initializer.
8017 (minimal_language_data): Likewise.
8018 * c-lang.h (c_get_compile_context): Update comment.
8019 (cplus_get_compile_context): Update comment.
8020 * compile/compile.c (compile_to_object): Update calls, don't rely
8021 on function pointer being NULL.
8022 * d-lang.c (d_language_data): Delete la_get_compile_instance
8023 initializer.
8024 * f-lang.c (f_language_data): Likewise.
8025 * go-lang.c (go_language_data): Likewise.
8026 * language.c (unknown_language_data): Likewise.
8027 (auto_language_data): Likewise.
8028 * language.h (language_data): Delete la_get_compile_instance field.
8029 (language_defn::get_compile_instance): New member function.
8030 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8031 initializer.
8032 * objc-lang.c (objc_language_data): Likewise.
8033 * opencl-lang.c (opencl_language_data): Likewise.
8034 * p-lang.c (pascal_language_data): Likewise.
8035 * rust-lang.c (rust_language_data): Likewise.
8036
4009ee92
AB
80372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8038
8039 * ada-lang.c (ada_add_all_symbols): Update comment.
8040 (ada_iterate_over_symbols): Delete, move implementation to...
8041 (ada_language::iterate_over_symbols): ...here, a new member
8042 function, rewrite to use range based for loop.
8043 (ada_language_data): Delete la_iterate_over_symbols initializer.
8044 * c-lang.c (c_language_data): Likewise.
8045 (cplus_language_data): Likewise.
8046 (asm_language_data): Likewise.
8047 (minimal_language_data): Likewise.
8048 * d-lang.c (d_language_data): Likewise.
8049 * f-lang.c (f_language_data): Likewise.
8050 * go-lang.c (go_language_data): Likewise.
8051 * language.c (unknown_language_data): Likewise.
8052 (auto_language_data): Likewise.
8053 * language.h (language_data): Delete la_iterate_over_symbols field.
8054 (language_defn::iterate_over_symbols): New member function.
8055 (LA_ITERATE_OVER_SYMBOLS): Update.
8056 * linespec.c (iterate_over_all_matching_symtabs): Update.
8057 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8058 initializer.
8059 * objc-lang.c (objc_language_data): Likewise.
8060 * opencl-lang.c (opencl_language_data): Likewise.
8061 * p-lang.c (pascal_language_data): Likewise.
8062 * rust-lang.c (rust_language_data): Likewise.
8063
54f4ca46
AB
80642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8065
8066 * ada-lang.c (ada_language_data): Delete
8067 la_lookup_transparent_type initializer.
8068 * c-lang.c (c_language_data): Likewise.
8069 (cplus_language_data): Likewise.
8070 (cplus_language::lookup_transparent_type): New member function.
8071 (asm_language_data): Delete la_lookup_transparent_type
8072 initializer.
8073 (minimal_language_data): Likewise.
8074 * d-lang.c (d_language_data): Likewise.
8075 * f-lang.c (f_language_data): Likewise.
8076 * go-lang.c (go_language_data): Likewise.
8077 * language.c (unknown_language_data): Likewise.
8078 (auto_language_data): Likewise.
8079 * language.h (struct language_data): Delete
8080 la_lookup_transparent_type field.
8081 (language_defn::lookup_transparent_type): New member function.
8082 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8083 initializer.
8084 * objc-lang.c (objc_language_data): Likewise.
8085 * opencl-lang.c (opencl_language_data): Likewise.
8086 * p-lang.c (pascal_language_data): Likewise.
8087 * rust-lang.c (rust_language_data): Likewise.
8088 * symtab.c (symbol_matches_domain): Update call.
8089
1fb314aa
AB
80902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8091
8092 * ada-lang.c (ada_language_arch_info): Delete function, move
8093 implementation to...
8094 (ada_language::language_arch_info): ...here, a new member
8095 function.
8096 (ada_language_data): Delete la_language_arch_info.
8097 * c-lang.c (c_language_data): Likewise.
8098 (c_language::language_arch_info): New member function.
8099 (cplus_language_arch_info): Delete function, move
8100 implementation to...
8101 (cplus_language::language_arch_info): ...here, a new member
8102 function.
8103 (cplus_language_data): Delete la_language_arch_info.
8104 (asm_language_data): Likewise.
8105 (asm_language::language_arch_info): New member function.
8106 (minimal_language_data): Delete la_language_arch_info.
8107 (minimal_language::language_arch_info): New member function.
8108 * d-lang.c (d_language_arch_info): Delete function, move
8109 implementation to...
8110 (d_language::language_arch_info): ...here, a new member
8111 function.
8112 (d_language_data): Delete la_language_arch_info.
8113 * f-lang.c (f_language_arch_info): Delete function, move
8114 implementation to...
8115 (f_language::language_arch_info): ...here, a new member
8116 function.
8117 (f_language_data): Delete la_language_arch_info.
8118 * go-lang.c (go_language_arch_info): Delete function, move
8119 implementation to...
8120 (go_language::language_arch_info): ...here, a new member
8121 function.
8122 (go_language_data): Delete la_language_arch_info.
8123 * language.c (unknown_language_data): Likewise.
8124 (unknown_language::language_arch_info): New member function.
8125 (auto_language_data): Delete la_language_arch_info.
8126 (auto_language::language_arch_info): New member function.
8127 (language_gdbarch_post_init): Update call to
8128 la_language_arch_info.
8129 * language.h (language_data): Delete la_language_arch_info
8130 function pointer.
8131 (language_defn::language_arch_info): New function.
8132 * m2-lang.c (m2_language_arch_info): Delete function, move
8133 implementation to...
8134 (m2_language::language_arch_info): ...here, a new member
8135 function.
8136 (m2_language_data): Delete la_language_arch_info.
8137 * objc-lang.c (objc_language_arch_info): Delete function, move
8138 implementation to...
8139 (objc_language::language_arch_info): ...here, a new member
8140 function.
8141 (objc_language_data): Delete la_language_arch_info.
8142 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8143 implementation to...
8144 (opencl_language::language_arch_info): ...here, a new member
8145 function.
8146 (opencl_language_data): Delete la_language_arch_info.
8147 * p-lang.c (pascal_language_arch_info): Delete function, move
8148 implementation to...
8149 (pascal_language::language_arch_info): ...here, a new member
8150 function.
8151 (pascal_language_data): Delete la_language_arch_info.
8152 * rust-lang.c (rust_language_arch_info): Delete function, move
8153 implementation to...
8154 (rust_language::language_arch_info): ...here, a new member
8155 function.
8156 (rust_language_data): Delete la_language_arch_info.
8157
48448202
AB
81582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8159
8160 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8161 initializer.
8162 * c-lang.c (c_language_data): Likewise.
8163 (cplus_language_data): Likewise.
8164 (cplus_language::pass_by_reference_info): New method.
8165 (asm_language_data): Delete la_pass_by_reference initializer.
8166 (minimal_language_data): Likewise.
8167 * cp-abi.c (cp_pass_by_reference): Remove use of
8168 default_pass_by_reference.
8169 * d-lang.c (d_language_data): Likewise.
8170 * f-lang.c (f_language_data): Likewise.
8171 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8172 default_pass_by_reference.
8173 * go-lang.c (go_language_data): Likewise.
8174 * language.c (language_pass_by_reference): Update.
8175 (default_pass_by_reference): Delete.
8176 (unknown_language_data): Delete la_pass_by_reference
8177 initializer.
8178 (auto_language_data): Likewise.
8179 * language.h (struct language_data): Delete la_pass_by_reference
8180 field.
8181 (language_defn::pass_by_reference_info): New member function.
8182 (default_pass_by_reference): Delete declaration.
8183 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8184 initializer.
8185 * objc-lang.c (objc_language_data): Likewise.
8186 * opencl-lang.c (opencl_language_data): Likewise.
8187 * p-lang.c (pascal_language_data): Likewise.
8188 * rust-lang.c (rust_language_data): Likewise.
8189
15e5fd35
AB
81902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8191
8192 * ada-lang.c (ada_read_var_value): Delete function, move
8193 implementation to...
8194 (ada_language::read_var_value): ...here.
8195 (ada_language_data): Delete la_read_var_value initializer.
8196 * c-lang.c (c_language_data): Likewise.
8197 (cplus_language_data): Likewise.
8198 (minimal_language_data): Likewise.
8199 * d-lang.c (d_language_data): Likewise.
8200 * f-lang.c (f_language_data): Likewise.
8201 * findvar.c (default_read_var_value): Rename to...
8202 (language_defn::read_var_value): ...this.
8203 * findvar.c (read_var_value): Update header comment, and change to
8204 call member function instead of function pointer.
8205 * go-lang.c (go_language_data): Likewise.
8206 * language.c (unknown_language_data): Delete la_read_var_value
8207 initializer.
8208 (auto_language_data): Likewise.
8209 * language.h (struct language_data): Delete la_read_var_value
8210 field.
8211 (language_defn::read_var_value): New member function.
8212 (default_read_var_value): Delete declaration.
8213 * m2-lang.c (m2_language_data): Delete la_read_var_value
8214 initializer.
8215 * objc-lang.c (objc_language_data): Likewise.
8216 * opencl-lang.c (opencl_language_data): Likewise.
8217 * p-lang.c (pascal_language_data): Likewise.
8218 * rust-lang.c (rust_language_data): Likewise.
8219 * value.h (default_read_var_value): Delete declaration.
8220
5bd40f2a
AB
82212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8222
8223 * ada-lang.c (ada_print_array_index): Delete function, move
8224 implementation to...
8225 (ada_language::print_array_index): ...here.
8226 (ada_language_data): Delete la_print_array_index initializer.
8227 * c-lang.c (c_language_data): Likewise.
8228 (cplus_language_data): Likewise.
8229 (minimal_language_data): Likewise.
8230 * d-lang.c (d_language_data): Likewise.
8231 * f-lang.c (f_language_data): Likewise.
8232 * go-lang.c (go_language_data): Likewise.
8233 * language.c (default_print_array_index): Delete function, move
8234 implementation to...
8235 (language_defn::print_array_index): ...here.
8236 (unknown_language_data): Delete la_print_array_index initializer.
8237 (auto_language_data): Likewise.
8238 * language.h (struct language_data): Delete la_print_array_index
8239 field.
8240 (language_defn::print_array_index): New member function.
8241 (LA_PRINT_ARRAY_INDEX): Update.
8242 (default_print_array_index): Delete declaration.
8243 * m2-lang.c (m2_language_data): Delete la_print_array_index
8244 initializer.
8245 * objc-lang.c (objc_language_data): Likewise.
8246 * opencl-lang.c (opencl_language_data): Likewise.
8247 * p-lang.c (pascal_language_data): Likewise.
8248 * rust-lang.c (rust_language_data): Likewise.
8249
0874fd07
AB
82502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8251
8252 * gdb/ada-lang.c (ada_language_defn): Convert to...
8253 (ada_language_data): ...this.
8254 (class ada_language): New class.
8255 (ada_language_defn): New static global.
8256 * gdb/c-lang.c (c_language_defn): Convert to...
8257 (c_language_data): ...this.
8258 (class c_language): New class.
8259 (c_language_defn): New static global.
8260 (cplus_language_defn): Convert to...
8261 (cplus_language_data): ...this.
8262 (class cplus_language): New class.
8263 (cplus_language_defn): New static global.
8264 (asm_language_defn): Convert to...
8265 (asm_language_data): ...this.
8266 (class asm_language): New class.
8267 (asm_language_defn): New static global.
8268 (minimal_language_defn): Convert to...
8269 (minimal_language_data): ...this.
8270 (class minimal_language): New class.
8271 (minimal_language_defn): New static global.
8272 * gdb/d-lang.c (d_language_defn): Convert to...
8273 (d_language_data): ...this.
8274 (class d_language): New class.
8275 (d_language_defn): New static global.
8276 * gdb/f-lang.c (f_language_defn): Convert to...
8277 (f_language_data): ...this.
8278 (class f_language): New class.
8279 (f_language_defn): New static global.
8280 * gdb/go-lang.c (go_language_defn): Convert to...
8281 (go_language_data): ...this.
8282 (class go_language): New class.
8283 (go_language_defn): New static global.
8284 * gdb/language.c (unknown_language_defn): Remove declaration.
8285 (current_language): Initialize to nullptr, real initialization is
8286 moved to _initialize_language.
8287 (languages): Delete global.
8288 (language_defn::languages): Define.
8289 (set_language_command): Use language_defn::languages.
8290 (set_language): Likewise.
8291 (range_error): Likewise.
8292 (language_enum): Likewise.
8293 (language_def): Likewise.
8294 (add_set_language_command): Use language_def::languages for the
8295 language list, and language_def to lookup language pointers.
8296 (skip_language_trampoline): Use language_defn::languages.
8297 (unknown_language_defn): Convert to...
8298 (unknown_language_data): ...this.
8299 (class unknown_language): New class.
8300 (unknown_language_defn): New static global.
8301 (auto_language_defn): Convert to...
8302 (auto_language_data): ...this.
8303 (class auto_language): New class.
8304 (auto_language_defn): New static global.
8305 (language_gdbarch_post_init): Use language_defn::languages.
8306 (_initialize_language): Initialize current_language.
8307 * gdb/language.h (struct language_defn): Rename to...
8308 (struct language_data): ...this.
8309 (struct language_defn): New.
8310 (auto_language_defn): Delete.
8311 (unknown_language_defn): Delete.
8312 (minimal_language_defn): Delete.
8313 (ada_language_defn): Delete.
8314 (asm_language_defn): Delete.
8315 (c_language_defn): Delete.
8316 (cplus_language_defn): Delete.
8317 (d_language_defn): Delete.
8318 (f_language_defn): Delete.
8319 (go_language_defn): Delete.
8320 (m2_language_defn): Delete.
8321 (objc_language_defn): Delete.
8322 (opencl_language_defn): Delete.
8323 (pascal_language_defn): Delete.
8324 (rust_language_defn): Delete.
8325 * gdb/m2-lang.c (m2_language_defn): Convert to...
8326 (m2_language_data): ...this.
8327 (class m2_language): New class.
8328 (m2_language_defn): New static global.
8329 * gdb/objc-lang.c (objc_language_defn): Convert to...
8330 (objc_language_data): ...this.
8331 (class objc_language): New class.
8332 (objc_language_defn): New static global.
8333 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8334 (opencl_language_data): ...this.
8335 (class opencl_language): New class.
8336 (opencl_language_defn): New static global.
8337 * gdb/p-lang.c (pascal_language_defn): Convert to...
8338 (pascal_language_data): ...this.
8339 (class pascal_language): New class.
8340 (pascal_language_defn): New static global.
8341 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8342 language pointer, update comment format.
8343 * gdb/rust-lang.c (rust_language_defn): Convert to...
8344 (rust_language_data): ...this.
8345 (class rust_language): New class.
8346 (rust_language_defn): New static global.
8347
1313c56e
AB
83482020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8349
8350 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8351 member variable.
8352 <m_stmt_at_address>: New member variable.
8353 (lnp_state_machine::record_line): Don't record some lines, update
8354 tracking of is_stmt at the same address.
8355 (lnp_state_machine::lnp_state_machine): Initialise new member
8356 variables.
8357
b7ed9f3d
ST
83582020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8359
8360 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8361 "-include gnu-nat-mig.h".
8362 * gnu-nat-mig.h: New file.
8363 * gnu-nat.c: Include "gnu-nat-mig.h".
8364 (exc_server, msg_reply_server, notify_server,
8365 process_reply_server): Remove declarations.
8366
14a8ad62
ST
83672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8368
8369 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8370 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8371 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8372 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8373 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8374 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8375 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8376 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8377 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8378 to gnu_nat_target class.
8379 * gnu-nat.c: Likewise.
8380 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8381 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8382 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8383 object.
8384 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8385 instead of `gnu_target'.
8386
0af5e106
ST
83872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8388
8389 * i386-gnu-tdep.c: Include "gdbcore.h"
8390 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8391 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8392 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8393 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8394 i386_gnu_sigcontext_addr): New functions
8395 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8396 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8397 tdep.
8398
078f2fc9
ST
83992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8400
8401 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8402 before fork_inferior call. Avoid calling it if target_is_pushed returns
8403 true.
8404
53dff92c
ST
84052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8406
8407 * gnu-nat.h (gnu_target): New variable declaration.
8408 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8409 gnu_target.
8410 * gnu-nat.c (gnu_target): New variable.
8411 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8412 add_thread_silent, and add_thread calls.
8413 (gnu_nat_target::create_inferior): Pass gnu_target to
8414 add_thread_silent, thread_change_ptid call.
8415 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8416 call.
8417
5a8b8627
ST
84182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8419
8420 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8421 (gnu_nat_target::find_memory_regions): Remove unused
8422 `old_address' variable.
8423
366f550a
ST
84242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8425
8426 * gnu-nat.c: Include "gdbarch.h".
8427
f14871bf
ST
84282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8429
8430 * reply_mig_hack.awk (Error return): Cast function through
8431 void *, to bypass compiler function call check.
8432
c6887cfb
ST
84332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8434
8435 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8436 $(srcdir)/reply_mig_hack.awk.
8437
6930bffe
ST
84382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8439
8440 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8441
112c22ed
JG
84422020-05-30 Jonny Grant <jg@jguk.org>
8443
8444 * configure.ac (ACX_BUGURL): change bug URL to https.
8445
f68f85b5
PA
84462020-05-30 Pedro Alves <palves@redhat.com>
8447
8448 * cp-support.c (replace_typedefs_template): New.
8449 (replace_typedefs_qualified_name): Handle
8450 DEMANGLE_COMPONENT_TEMPLATE.
8451
976ca316
SM
84522020-05-29 Simon Marchi <simon.marchi@efficios.com>
8453
8454 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8455 dwarf2/index-cache.h, dwarf2/index-write.c,
8456 dwarf2/index-write.h, dwarf2/line-header.c,
8457 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8458 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8459 variables and fields from `dwarf2_per_objfile` to just
8460 `per_objfile` throughout.
8461
989ade05
SM
84622020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8463
8464 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8465 <push_dwarf_reg_entry_value>: Add comment.
8466
c47bae85
KB
84672020-05-28 Kevin Buettner <kevinb@redhat.com>
8468 Keith Seitz <keiths@redhat.com>
8469
8470 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8471 instead of PyEval_ReleaseLock.
8472 (class gdbpy_gil): Move to earlier in file.
8473 (finalize_python): Set gdb_python_initialized.
8474 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8475 when not initialized.
8476
44486dcf
SM
84772020-05-28 Simon Marchi <simon.marchi@efficios.com>
8478
8479 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8480 <push_dwarf_reg_entry_value>: Remove assert. Override
8481 per_objfile with caller_per_objfile.
8482
f030440d
TV
84832020-05-28 Tom de Vries <tdevries@suse.de>
8484
8485 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8486 PR gold/15646 workaround to symbol kind "type".
8487
f0fbb768
TT
84882020-05-27 Tom Tromey <tromey@adacore.com>
8489
8490 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8491
af0b2a3e
TT
84922020-05-27 Tom Tromey <tromey@adacore.com>
8493
8494 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8495 Use htab_find_with_hash.
8496 <add_abbrev>: Remove "abbrev_number" parameter.
8497 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8498 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8499 (hash_abbrev): Add comment.
8500 (abbrev_table::lookup_abbrev): Move to header file.
8501 (abbrev_table::read): Update.
8502
7d00ffec
TT
85032020-05-27 Tom Tromey <tromey@adacore.com>
8504
8505 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8506 method.
8507 <canonical_name>: New member.
8508 <raw_name>: Rename from "name".
8509 (partial_die_info): Initialize canonical_name.
8510 (scan_partial_symbols): Check raw_name.
8511 (partial_die_parent_scope, partial_die_full_name)
8512 (add_partial_symbol, add_partial_subprogram)
8513 (add_partial_enumeration, load_partial_dies): Use "name" method.
8514 (partial_die_info::name): New method.
8515 (partial_die_info::read, guess_partial_die_structure_name)
8516 (partial_die_info::fixup): Update.
8517
697bba18
TT
85182020-05-27 Tom Tromey <tromey@adacore.com>
8519
8520 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8521 <get_ref_die_offset>: Inline.
8522 <get_ref_die_offset_complaint>: New method.
8523 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8524 (attribute::get_ref_die_offset_complaint): Rename from
8525 get_ref_die_offset. Just issue complaint.
8526
c17ace43
HD
85272020-05-27 Hannes Domani <ssbssa@yahoo.de>
8528
8529 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8530
96445f0b
HD
85312020-05-27 Hannes Domani <ssbssa@yahoo.de>
8532
8533 * exec.c (exec_file_attach): Use errno value of first openp failure.
8534
ac637ec3
HD
85352020-05-27 Hannes Domani <ssbssa@yahoo.de>
8536
8537 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8538 Don't close thread handle.
8539
17ee85fc
TT
85402020-05-27 Tom Tromey <tom@tromey.com>
8541 Simon Marchi <simon.marchi@efficios.com>
8542
8543 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8544 shared_ptr.
8545 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8546 member.
8547 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8548 dwarf2_per_bfd_objfile_data_key>: New globals.
8549 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8550 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8551 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8552 shared.
8553 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8554 short-circuit when sharing.
8555 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8556 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8557
39b16f87
SM
85582020-05-27 Simon Marchi <simon.marchi@efficios.com>
8559
8560 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8561 to...
8562 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8563 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8564
fcf23d5b
SM
85652020-05-27 Simon Marchi <simon.marchi@efficios.com>
8566
8567 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8568 build_name_components, find_name_components_bounds>:
8569 Add per_objfile parameter.
8570 (struct mapped_index) <symbol_name_at>: Likewise.
8571 (struct mapped_debug_names): Remove constructor.
8572 <dwarf2_per_objfile>: Remove field.
8573 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8574 (mapped_index_base::find_name_components_bounds,
8575 mapped_index_base::build_name_components,
8576 dw2_expand_symtabs_matching_symbol): Likewise.
8577 (class mock_mapped_index) <symbol_name_at>: Likewise.
8578 (check_match): Likewise.
8579 (check_find_bounds_finds): Likewise.
8580 (test_mapped_index_find_name_component_bounds): Update.
8581 (CHECK_MATCH): Update.
8582 (dw2_expand_symtabs_matching): Update.
8583 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8584 per_objfile parameter.
8585 <find_vec_in_debug_names>: Likewise.
8586 <m_per_objfile>: New field.
8587 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8588 parameter.
8589 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8590 (dw2_debug_names_iterator::next): Update.
8591 (dw2_debug_names_lookup_symbol): Update.
8592 (dw2_debug_names_expand_symtabs_for_function): Update.
8593 (dw2_debug_names_map_matching_symbols): Update.
8594 (dw2_debug_names_expand_symtabs_matching): Update.
8595 (dwarf2_read_debug_names): Update.
8596
7188ed02
SM
85972020-05-27 Simon Marchi <simon.marchi@efficios.com>
8598
8599 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8600 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8601 move to dwarf2_per_objfile.
8602 <read_in_chain>: Remove.
8603 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8604 remove_all_cus, age_comp_units>: New methods.
8605 <m_dwarf2_cus>: New member.
8606 (struct dwarf2_per_cu_data) <cu>: Remove.
8607 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8608 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8609 moved to methods of dwarf2_per_objfile.
8610 (dwarf2_clear_marks): Remove.
8611 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8612 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8613 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8614 (dwarf2_per_objfile::remove_all_cus): New.
8615 (class free_cached_comp_units) <~free_cached_comp_units>:
8616 Update.
8617 (load_cu): Update.
8618 (dw2_do_instantiate_symtab): Adjust.
8619 (fill_in_sig_entry_from_dwo_entry): Adjust.
8620 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8621 (cutu_reader::cutu_reader): Likewise.
8622 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8623 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8624 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8625 and dwarf2_per_objfile::age_comp_units.
8626 (load_partial_comp_unit): Update.
8627 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8628 (process_queue): Likewise.
8629 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8630 backlink.
8631 (dwarf2_read_addr_index): Likewise.
8632 (follow_die_offset): Likewise.
8633 (dwarf2_fetch_die_loc_sect_off): Likewise.
8634 (dwarf2_fetch_constant_bytes): Likewise.
8635 (dwarf2_fetch_die_type_sect_off): Likewise.
8636 (follow_die_sig_1): Likewise.
8637 (load_full_type_unit): Likewise.
8638 (read_signatured_type): Likewise.
8639 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8640 (dwarf2_cu::~dwarf2_cu): Remove.
8641 (dwarf2_per_objfile::get_cu): New.
8642 (dwarf2_per_objfile::set_cu): New.
8643 (age_cached_comp_units): Rename to...
8644 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8645 to std::unordered_map.
8646 (free_one_cached_comp_unit): Rename to...
8647 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8648 to std::unordered_map.
8649 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8650 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8651 a dwarf2_per_objfile in data.
8652 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8653 (dwarf2_clear_marks): Remove.
8654
2e671100
SM
86552020-05-27 Simon Marchi <simon.marchi@efficios.com>
8656
8657 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8658 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8659 (init_tu_and_read_dwo_dies): Likewise.
8660 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8661 (cutu_reader::cutu_reader): Likewise.
8662 (load_partial_comp_unit): Likewise.
8663 (process_psymtab_comp_unit): Update.
8664 (build_type_psymtabs_1): Update.
8665 (process_skeletonless_type_unit): Update.
8666 (load_full_comp_unit): Update.
8667 (find_partial_die): Update.
8668 (dwarf2_read_addr_index): Update.
8669 (read_signatured_type): Update.
8670
2e6a9f79
SM
86712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8672
8673 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8674 m_header_read_in>: New fields.
8675 <get_header>: New method.
8676 * dwarf2/read.c (per_cu_header_read_in): Remove.
8677 (dwarf2_per_cu_data::get_header): New.
8678 (dwarf2_per_cu_data::addr_size): Update.
8679 (dwarf2_per_cu_data::offset_size): Update.
8680 (dwarf2_per_cu_data::ref_addr_size): Update.
8681
1b555f17
SM
86822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8683
8684 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8685 (dw2_do_instantiate_symtab): Update.
8686 (queue_and_load_all_dwo_tus): Change parameter from
8687 dwarf2_per_cu_data to dwarf2_cu.
8688 (dwarf2_fetch_die_loc_sect_off): Update.
8689 (dwarf2_fetch_constant_bytes): Update.
8690 (dwarf2_fetch_die_type_sect_off): Update.
8691
8fc0b21d
SM
86922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8693
8694 * dwarf2/read.c (process_full_comp_unit,
8695 process_full_type_unit): Remove per_cu, per_objfile paramters.
8696 Add dwarf2_cu parameter.
8697 (process_queue): Update.
8698
168c9250
SM
86992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8700
8701 * dwarf2/read.c (create_cu_from_index_list): Replace
8702 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8703 (create_cus_from_index_list): Likewise.
8704 (create_cus_from_index): Likewise.
8705 (create_signatured_type_table_from_index): Likewise.
8706 (create_cus_from_debug_names_list): Likewise.
8707 (create_cus_from_debug_names): Likewise.
8708 (dwarf2_read_gdb_index): Update.
8709 (dwarf2_read_debug_names): Update.
8710
e286671b
TT
87112020-05-27 Tom Tromey <tom@tromey.com>
8712 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * dwarf2/read.h (struct dwarf2_per_objfile)
8715 <get_type_for_signatured_type, set_type_for_signatured_type>:
8716 New methods.
8717 <m_type_map>: New member.
8718 (struct signatured_type) <type>: Remove.
8719 * dwarf2/read.c
8720 (dwarf2_per_objfile::get_type_for_signatured_type,
8721 dwarf2_per_objfile::set_type_for_signatured_type): New.
8722 (get_signatured_type): Use new methods.
8723
8adb8487
TT
87242020-05-27 Tom Tromey <tom@tromey.com>
8725 Simon Marchi <simon.marchi@efficios.com>
8726
8727 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8728 (struct dwarf2_per_objfile) <type_units>: New member.
8729 <get_type_unit_group_unshareable>: New method.
8730 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8731 num_symtabs, symtabs>: Remove; move to
8732 type_unit_group_unshareable.
8733 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8734 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8735 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8736
127bbf4b
SM
87372020-05-27 Simon Marchi <simon.marchi@efficios.com>
8738
8739 * dwarf2/read.h (struct dwarf2_per_cu_data):
8740 <dwarf2_per_objfile>: Remove.
8741 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8742 dwarf2_per_objfile.
8743 (create_signatured_type_table_from_index): Likewise.
8744 (create_signatured_type_table_from_debug_names): Likewise.
8745 (create_debug_type_hash_table): Likewise.
8746 (fill_in_sig_entry_from_dwo_entry): Likewise.
8747 (create_type_unit_group): Likewise.
8748 (read_comp_units_from_section): Likewise.
8749 (create_cus_hash_table): Likewise.
8750
f6e649dd
SM
87512020-05-27 Simon Marchi <simon.marchi@efficios.com>
8752
8753 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8754 dwarf2_per_cu_data::dwarf2_per_objfile.
8755 (compute_compunit_symtab_includes): Likewise.
8756 (dwarf2_cu::start_symtab): Likewise.
8757
aa66c379
SM
87582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8759
8760 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8761 parameter.
8762 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8763 (read_namespace_alias): Update.
8764 (lookup_die_type): Update.
8765 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8766 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8767 Update.
8768 (disassemble_dwarf_expression): Update.
8769
120ce1b5
SM
87702020-05-27 Simon Marchi <simon.marchi@efficios.com>
8771
8772 * dwarf2/read.h (struct dwarf2_queue_item): Add
8773 dwarf2_per_objfile parameter, assign new parameter.
8774 <per_objfile>: New field.
8775 * dwarf2/read.c (free_one_cached_comp_unit): Add
8776 dwarf2_per_objfile parameter.
8777 (queue_comp_unit): Likewise.
8778 (dw2_do_instantiate_symtab): Update.
8779 (process_psymtab_comp_unit): Update.
8780 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8781 (process_imported_unit_die): Update.
8782 (queue_and_load_dwo_tu): Update.
8783 (follow_die_offset): Update.
8784 (follow_die_sig_1): Update.
8785
9f47c707
SM
87862020-05-27 Simon Marchi <simon.marchi@efficios.com>
8787
8788 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8789 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8790 (read_call_site_scope): Assign per_objfile.
8791 (dwarf2_per_cu_data::objfile): Remove.
8792 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8793 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8794 dwarf2_per_objfile parameter.
8795 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8796 dwarf2_per_objfile parameter.
8797 (dwarf_expr_reg_to_entry_parameter): Add output
8798 dwarf2_per_objfile parameter.
8799 (locexpr_get_frame_base): Update.
8800 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8801 <push_dwarf_reg_entry_value>: Update.
8802 <call_site_to_target_addr>: Update.
8803 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8804 parameter.
8805 (value_of_dwarf_reg_entry): Update.
8806 (rw_pieced_value): Update.
8807 (indirect_synthetic_pointer): Update.
8808 (dwarf2_evaluate_property): Update.
8809 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8810 parameter.
8811 (locexpr_read_variable): Update.
8812 (locexpr_get_symbol_read_needs): Update.
8813 (loclist_read_variable): Update.
8814
14095eb3
SM
88152020-05-27 Simon Marchi <simon.marchi@efficios.com>
8816
8817 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8818 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8819 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8820 parameter.
8821 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8822 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8823 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8824 parameter.
8825 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8826 sect_variable_value): Add dwarf2_per_objfile parameter.
8827 (class dwarf_evaluate_loc_desc) <dwarf_call,
8828 dwarf_variable_value>: Update.
8829 (fetch_const_value_from_synthetic_pointer): Add
8830 dwarf2_per_objfile parameter.
8831 (fetch_const_value_from_synthetic_pointer): Update.
8832 (coerced_pieced_ref): Update.
8833 (class symbol_needs_eval_context) <dwarf_call,
8834 dwarf_variable_value>: Update.
8835 (dwarf2_compile_expr_to_ax): Update.
8836
3c3cd3d4
SM
88372020-05-27 Simon Marchi <simon.marchi@efficios.com>
8838
8839 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8840 parameter.
8841 (dwarf2_evaluate_loc_desc_full): Update.
8842
82ca3f51
SM
88432020-05-27 Simon Marchi <simon.marchi@efficios.com>
8844
8845 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8846 parameter.
8847 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8848 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8849 dwarf2_per_objfile parameter.
8850 (decode_debug_loc_dwo_addresses): Likewise.
8851 (dwarf2_find_location_expression): Update.
8852 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8853 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8854 parameter.
8855 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8856 parameter.
8857 (locexpr_describe_location_1): Likewise.
8858 (locexpr_describe_location): Update.
8859
4b167ea1
SM
88602020-05-27 Simon Marchi <simon.marchi@efficios.com>
8861
8862 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8863 Remove.
8864 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8865 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8866 (dwarf2_compile_property_to_c): Update.
8867 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8868 use text offset from objfile.
8869 (locexpr_tracepoint_var_ref): Update.
8870 (locexpr_generate_c_location): Update.
8871 (loclist_describe_location): Update.
8872 (loclist_tracepoint_var_ref): Update.
8873 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8874 dwarf2_per_objfile parameter.
8875 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8876 use text offset from objfile.
8877 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8878
89b07335
SM
88792020-05-27 Simon Marchi <simon.marchi@efficios.com>
8880
8881 * dwarf2/expr.h (struct dwarf_expr_context)
8882 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8883 <offset>: Remove.
8884 <per_objfile>: New member.
8885 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8886 dwarf2_per_objfile parameter. Don't set offset, set
8887 per_objfile.
8888 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8889 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8890 a dwarf2_per_objfile object instead of an offset.
8891 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8892 constructor.
8893 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8894 to dwarf2_expr_executor constructor. Don't set offset.
8895 (dwarf2_fetch_cfa_info): Update.
8896 (struct dwarf2_frame_cache) <text_offset>: Remove.
8897 <per_objfile>: New field.
8898 (dwarf2_frame_cache): Update.
8899 (dwarf2_frame_prev_register): Update.
8900 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8901 <dwarf_evaluate_loc_desc>: Add constructor.
8902 (dwarf2_evaluate_loc_desc_full): Update.
8903 (dwarf2_locexpr_baton_eval): Update.
8904 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8905 Add constructor.
8906 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8907
293e7e51
SM
89082020-05-27 Simon Marchi <simon.marchi@efficios.com>
8909
8910 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8911 addr_sized_int_type>: Move to dwarf2_cu.
8912 <int_type>: Move to dwarf2_per_objfile.
8913 (struct dwarf2_per_objfile) <int_type>: Move here.
8914 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8915 addr_sized_int_type>: Move here.
8916 (read_func_scope): Update.
8917 (read_array_type): Update.
8918 (read_tag_string_type): Update.
8919 (attr_to_dynamic_prop): Update.
8920 (dwarf2_per_cu_data::int_type): Rename to...
8921 (dwarf2_per_objfile::int_type): ... this.
8922 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8923 (dwarf2_cu::addr_sized_int_type): ... this.
8924 (read_subrange_type): Update.
8925 (dwarf2_per_cu_data::addr_type): Rename to...
8926 (dwarf2_cu::addr_type): ... this.
8927 (set_die_type): Update.
8928
64874a40
SM
89292020-05-27 Simon Marchi <simon.marchi@efficios.com>
8930
8931 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8932 data through per_cu->cu.
8933
4ab09049
SM
89342020-05-27 Simon Marchi <simon.marchi@efficios.com>
8935
8936 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8937 dwarf2_per_cu_data parameter fo dwarf2_cu.
8938 (lookup_dwo_type_unit): Likewise.
8939 (read_cutu_die_from_dwo): Likewise.
8940 (lookup_dwo_unit): Likewise.
8941 (open_and_init_dwo_file): Likewise.
8942 (lookup_dwo_cutu): Likewise.
8943 (lookup_dwo_comp_unit): Likewise.
8944 (lookup_dwo_type_unit): Likewise.
8945 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8946 (cutu_reader::cutu_reader): Update.
8947
47b14e86
SM
89482020-05-27 Simon Marchi <simon.marchi@efficios.com>
8949
8950 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8951 parameter.
8952 (process_full_type_unit): Likewise.
8953 (process_queue): Update.
8954
43182c09
SM
89552020-05-27 Simon Marchi <simon.marchi@efficios.com>
8956
8957 * dwarf2/read.c (recursively_compute_inclusions): Add
8958 dwarf2_per_objfile parameter.
8959 (compute_compunit_symtab_includes): Likewise.
8960 (process_cu_includes): Update.
8961
7aa104c4
SM
89622020-05-27 Simon Marchi <simon.marchi@efficios.com>
8963
8964 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8965 parameter.
8966 (create_type_unit_group): Update.
8967 (process_psymtab_comp_unit_reader): Update.
8968 (build_type_psymtabs_reader): Update.
8969
e3beb21d
SM
89702020-05-27 Simon Marchi <simon.marchi@efficios.com>
8971
8972 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8973 object through m_this_cu->cu.
8974
d460f660
SM
89752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8976
8977 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8978 the info parameter.
8979 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8980
ab432490
SM
89812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8982
8983 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8984 per_objfile parameter.
8985 (load_full_type_unit): Add per_objfile parameter.
8986 (read_signatured_type): Likewise.
8987 (load_full_comp_unit): Likewise.
8988 (load_cu): Likewise.
8989 (dw2_do_instantiate_symtab): Likewise.
8990 (dw2_get_file_names): Likewise.
8991 (dw2_map_symtabs_matching_filename): Update.
8992 (dw_expand_symtabs_matching_file_matcher): Update.
8993 (dw2_map_symbol_filenames): Update.
8994 (process_psymtab_comp_unit): Add per_objfile parameter.
8995 (build_type_psymtabs_1): Update.
8996 (process_skeletonless_type_unit): Update.
8997 (dwarf2_build_psymtabs_hard): Update.
8998 (load_partial_comp_unit): Add per_objfile parameter.
8999 (scan_partial_symbols): Update.
9000 (load_full_comp_unit): Add per_objfile parameter.
9001 (process_imported_unit_die): Update.
9002 (create_cus_hash_table): Update.
9003 (find_partial_die): Update.
9004 (dwarf2_read_addr_index): Update.
9005 (follow_die_offset): Update.
9006 (dwarf2_fetch_die_loc_sect_off): Update.
9007 (dwarf2_fetch_constant_bytes): Update.
9008 (dwarf2_fetch_die_type_sect_off): Update.
9009 (follow_die_sig_1): Update.
9010 (load_full_type_unit): Add per_objfile parameter.
9011 (read_signatured_type): Likewise.
9012
313bad1b
SM
90132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9014
9015 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9016 of objfile_name.
9017
c3699833
SM
90182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9019
9020 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9021 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9022 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9023 field.
9024 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9025 (create_cus_from_index): Update.
9026 (dwarf2_read_gdb_index): Update.
9027 (create_cus_from_debug_names): Update.
9028 (dwarf2_read_debug_names): Update.
9029 (get_abbrev_section_for_cu): Update.
9030 (create_all_comp_units): Update.
9031 (read_attribute_value): Update.
9032 (get_debug_line_section): Update.
9033 * dwarf2/index-cache.c (index_cache::store): Update.
9034 * dwarf2/index-write.c (save_gdb_index_command): Update.
9035 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9036
1859c670
SM
90372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9038
9039 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9040 member.
9041 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9042 dwarf2_per_cu_data::per_bfd.
9043 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9044 (create_type_unit_group): Likewise.
9045 (queue_comp_unit): Remove reference to
9046 per_cu->dwarf2_per_objfile.
9047 (maybe_queue_comp_unit): Likewise.
9048 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9049 (create_cus_hash_table): Assign new field.
9050
5e22e966
SM
90512020-05-27 Simon Marchi <simon.marchi@efficios.com>
9052
9053 * dwarf2/read.c: Replace
9054 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9055 dwarf2_cu->per_objfile throughout.
9056
97a1449a
SM
90572020-05-27 Simon Marchi <simon.marchi@efficios.com>
9058
9059 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9060 parameter, don't use per_cu->dwarf2_per_objfile.
9061 (dw2_instantiate_symtab): Likewise.
9062 (dw2_find_last_source_symtab): Update.
9063 (dw2_map_expand_apply): Update.
9064 (dw2_lookup_symbol): Update.
9065 (dw2_expand_symtabs_for_function): Update.
9066 (dw2_expand_all_symtabs): Update.
9067 (dw2_expand_symtabs_with_fullname): Update.
9068 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9069 don't use per_cu->dwarf2_per_objfile.
9070 (dw2_expand_marked_cus): Update.
9071 (dw2_find_pc_sect_compunit_symtab): Update.
9072 (dw2_debug_names_lookup_symbol): Update.
9073 (dw2_debug_names_expand_symtabs_for_function): Update.
9074 (dw2_debug_names_map_matching_symbols): Update.
9075 (dwarf2_psymtab::expand_psymtab): Update.
9076
9e021579
SM
90772020-05-27 Simon Marchi <simon.marchi@efficios.com>
9078
9079 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9080 <per_objfile>: New member.
9081 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9082 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9083 call to dwarf2_cu.
9084 (cutu_reader::cutu_reader): Update.
9085 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9086
ae090bdb
SM
90872020-05-27 Simon Marchi <simon.marchi@efficios.com>
9088
9089 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9090 struct dwarf2_per_objfile.
9091 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9092 dwarf2_per_bfd.
9093 * dwarf2/read.c (set_die_type): Update.
9094 (get_die_type_at_offset): Update.
9095
af758d11
SM
90962020-05-27 Tom Tromey <tom@tromey.com>
9097 Simon Marchi <simon.marchi@efficios.com>
9098
9099 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9100 method.
9101 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9102 get_symtab, set_symtab>: New methods.
9103 <m_symtabs>: New field.
9104 (struct dwarf2_psymtab): Derive from partial_symtab.
9105 <readin_p, get_compunit_symtab>: Declare methods.
9106 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9107 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9108 New methods.
9109 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9110 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9111 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9112 (dw2_symtab_iter_next, dw2_print_stats)
9113 (dw2_expand_symtabs_with_fullname)
9114 (dw2_expand_symtabs_matching_one)
9115 (dw_expand_symtabs_matching_file_matcher)
9116 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9117 (dw2_debug_names_iterator::next)
9118 (dw2_debug_names_map_matching_symbols)
9119 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9120 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9121 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9122 New methods.
9123 (get_compunit_symtab, process_full_comp_unit)
9124 (process_full_type_unit): Update.
9125 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9126
5989a64e
SM
91272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9128
9129 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9130 then introduce a new dwarf2_per_objfile type.
9131 <read_line_string>: Move to the new dwarf2_per_objfile type.
9132 <objfile>: Likewise.
9133 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9134 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9135 dwarf2_per_objfile->per_bfd.
9136 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9137 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9138 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9139 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9140 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9141 (dwarf2_per_objfile::locate_sections): Rename to...
9142 (dwarf2_per_bfd::locate_sections): ... this.
9143 (dwarf2_per_objfile::get_cutu): Rename to...
9144 (dwarf2_per_bfd::get_cutu): ... this.
9145 (dwarf2_per_objfile::get_cu): Rename to...
9146 (dwarf2_per_bfd::get_cu): ... this.
9147 (dwarf2_per_objfile::get_tu): Rename to...
9148 (dwarf2_per_bfd::get_tu): ... this.
9149 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9150 (dwarf2_per_bfd::allocate_per_cu): ... this.
9151 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9152 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9153 (get_gdb_index_contents_ftype): Change parameter from
9154 dwarf2_per_objfile to dwarf2_per_bfd.
9155 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9156 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9157
a50264ba
TT
91582020-05-27 Tom Tromey <tom@tromey.com>
9159 Simon Marchi <simon.marchi@efficios.com>
9160
9161 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9162 (allocate_piece_closure): Set "per_objfile" member.
9163 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9164 (locexpr_describe_location, loclist_describe_location): Use new
9165 member.
9166 * dwarf2/read.c (read_call_site_scope)
9167 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9168 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9169 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9170 handle_data_member_location): Set per_objfile member.
9171 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9172 member.
9173 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9174
d3473f0c
TT
91752020-05-27 Tom Tromey <tom@tromey.com>
9176
9177 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9178 allocate_signatured_type>: Declare new methods.
9179 <m_num_psymtabs>: New member.
9180 (struct dwarf2_per_cu_data) <index>: New member.
9181 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9182 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9183 (create_cu_from_index_list): Use allocate_per_cu.
9184 (create_signatured_type_table_from_index)
9185 (create_signatured_type_table_from_debug_names)
9186 (create_debug_type_hash_table, add_type_unit)
9187 (read_comp_units_from_section): Use allocate_signatured_type.
9188
5717c425
TT
91892020-05-27 Tom Tromey <tom@tromey.com>
9190
9191 * psymtab.c (partial_map_expand_apply)
9192 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9193 (psym_lookup_global_symbol_language)
9194 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9195 (psym_print_stats, psym_expand_symtabs_for_function)
9196 (psym_map_symbol_filenames, psym_map_matching_symbols)
9197 (psym_expand_symtabs_matching)
9198 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9199 (maintenance_check_psymtabs): Update.
9200 * psympriv.h (struct partial_symtab) <readin_p,
9201 get_compunit_symtab>: Add objfile parameter.
9202 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9203 Likewise.
9204 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9205 get_compunit_symtab>: Likewise.
9206 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9207
45940949
TT
92082020-05-27 Tom Tromey <tom@tromey.com>
9209
9210 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9211 member.
9212 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9213 (create_cu_from_index_list)
9214 (create_signatured_type_table_from_index)
9215 (create_signatured_type_table_from_debug_names)
9216 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9217 (dwarf2_create_include_psymtab)
9218 (create_debug_type_hash_table, add_type_unit)
9219 (create_type_unit_group, read_comp_units_from_section)
9220 (dwarf2_compute_name, create_cus_hash_table)
9221 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9222 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9223 obstack.
9224 (dw2_get_real_path): Likewise. Change argument to
9225 dwarf2_per_objfile.
9226
f8c6d152
LM
92272020-05-27 Luis Machado <luis.machado@linaro.org>
9228
9229 PR tdep/26000
9230 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9231 for ldrd (immediate).
9232
e98d2e6d
PW
92332020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9234
9235 * command.h: Add comment giving the name of class_tui.
9236 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9237 create the fake command for the help for class_tui.
9238
53a47a3e
TT
92392020-05-26 Tom Tromey <tromey@adacore.com>
9240
9241 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9242 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9243 (val_atr): New function.
9244 (value_val_atr): Use it.
9245 * ada-valprint.c (print_optional_low_bound): Change low bound
9246 handling for enums.
9247 (val_print_packed_array_elements): Don't call discrete_position.
9248 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9249 discrete_position for enum types.
9250 * language.c (default_print_array_index): Change type.
9251 * language.h (struct language_defn) <la_print_array_index>: Add
9252 index_type parameter, change type of index_value.
9253 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9254 (default_print_array_index): Update.
9255 * valprint.c (maybe_print_array_index): Don't call
9256 value_from_longest. Update.
9257 (value_print_array_elements): Don't call discrete_position.
9258
0bc2354b
TT
92592020-05-26 Tom Tromey <tromey@adacore.com>
9260
9261 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9262 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9263
1218a4bf
CDA
92642020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9265
9266 PR gdb/13519
9267 * avr-tdep.c (avr_integer_to_address): Return data or code
9268 address accordingly to the second 'type' argument of the
9269 function.
9270
92651b1d
MW
92712020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9272
9273 * infcmd.c, inferior.h: (construct_inferior_arguments):
9274 Moved function from here to gdbsupport/common-inferior.{h,cc}
9275
0a4f5f8c
TT
92762020-05-23 Tom Tromey <tom@tromey.com>
9277
9278 Revert commit eca1f90c:
9279 * NEWS: Remove entry for completion styling.
9280 * completer.c (_rl_completion_prefix_display_length): Move
9281 declaration later.
9282 (gdb_fnprint): Revert.
9283 (gdb_display_match_list_1): Likewise.
9284 * cli/cli-style.c (completion_prefix_style)
9285 (completion_difference_style, completion_suffix_style): Remove.
9286 (_initialize_cli_style): Revert.
9287 * cli/cli-style.h (completion_prefix_style)
9288 (completion_difference_style, completion_suffix_style): Don't
9289 declare.
9290
e08bd6c5
PA
92912020-05-24 Pedro Alves <palves@redhat.com>
9292
9293 * symtab.c (completion_list_add_name): Return boolean indication
9294 of whether the symbol matched.
9295 (completion_list_add_symbol): Don't try to remove C++ aliases if
9296 the symbol didn't match in the first place.
9297 * symtab.h (completion_list_add_name): Return bool.
9298
ceacbf6e
SM
92992020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9300
9301 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9302 type::field.
9303
26f16254
JB
93042020-05-23 Joel Brobecker <brobecker@adacore.com>
9305
9306 GDB 9.2 released.
9307
eca1f90c
TT
93082020-05-23 Tom Tromey <tom@tromey.com>
9309
9310 * NEWS: Add entry for completion styling.
9311 * completer.c (_rl_completion_prefix_display_length): Move
9312 declaration earlier.
9313 (gdb_fnprint): Use completion_style.
9314 (gdb_display_match_list_1): Likewise.
9315 * cli/cli-style.c (completion_prefix_style)
9316 (completion_difference_style, completion_suffix_style): New
9317 globals.
9318 (_initialize_cli_style): Register new globals.
9319 * cli/cli-style.h (completion_prefix_style)
9320 (completion_difference_style, completion_suffix_style): Declare.
9321
51e2cfa2
PA
93222020-05-23 Pedro Alves <palves@redhat.com>
9323
9324 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9325 (parse_escape): Use ISDIGIT instead of isdigit.
9326 (puts_debug): Use gdb_isprint instead of isprint.
9327 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9328 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9329 ISSPACE instead of isspace.
9330 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9331 instead of isspace.
9332 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9333 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9334 instead of isxdigit and ISDIGIT instead of isdigit.
9335
80fc5e77
SM
93362020-05-22 Simon Marchi <simon.marchi@efficios.com>
9337
9338 * gdbtypes.h (struct type) <field>: New method.
9339 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9340 or type::field.
9341
3cabb6b0
SM
93422020-05-22 Simon Marchi <simon.marchi@efficios.com>
9343
9344 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9345 (TYPE_FIELDS): Use type::fields. Change all call sites that
9346 modify the propery to use type::set_fields instead.
9347
1f704f76
SM
93482020-05-22 Simon Marchi <simon.marchi@efficios.com>
9349
9350 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9351 type::num_fields instead.
9352
5e33d5f4
SM
93532020-05-22 Simon Marchi <simon.marchi@efficios.com>
9354
9355 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9356 methods.
9357 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9358 that modify the number of fields to use type::set_num_fields
9359 instead.
9360
9392ebb3
TT
93612020-05-22 Tom Tromey <tromey@adacore.com>
9362
9363 * compile/compile-object-load.h (munmap_list_free): Don't
9364 declare.
9365
7c13f4e8
AB
93662020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9367
9368 * annotate.c (annotate_source_line): Update return type, add call
9369 to update current symtab and line.
9370 * annotate.h (annotate_source_line): Update return type, and
9371 extend header comment.
9372 * source.c (info_line_command): Check annotation_level before
9373 calling annotate_source_line.
9374 * stack.c (print_frame_info): If calling annotate_source_line
9375 returns true, then don't print any other source line information.
9376
aa370940
SM
93772020-05-21 Simon Marchi <simon.marchi@efficios.com>
9378
9379 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9380
84d53fa9
SM
93812020-05-21 Simon Marchi <simon.marchi@efficios.com>
9382
9383 * coffread.c (patch_type): Remove NULL check before xfree.
9384 * corefile.c (set_gnutarget): Likewise.
9385 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9386 * exec.c (build_section_table): Likewise.
9387 * remote.c (remote_target::pass_signals): Likewise.
9388 * utils.c (n_spaces): Likewise.
9389 * cli/cli-script.c (document_command): Likewise.
9390 * i386-windows-tdep.c (core_process_module_section): Likewise.
9391 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9392
9d428aae
SM
93932020-05-20 Simon Marchi <simon.marchi@efficios.com>
9394
9395 * symfile.c (reread_symbols): Clear objfile's section_offsets
9396 vector and section indices, re-compute them by calling
9397 sym_offsets.
9398
250106a7
TT
93992020-05-20 Tom Tromey <tromey@adacore.com>
9400
9401 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9402 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9403
9a0bacfb
TV
94042020-05-20 Tom de Vries <tdevries@suse.de>
9405
9406 PR symtab/25833
9407 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9408
7b958a48
AM
94092020-05-20 Alan Modra <amodra@gmail.com>
9410
9411 PR 25993
9412 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9413 bfd_set_filename.
9414 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9415 passed to bfd_set_filename.
9416 * symfile-mem.c (add_vsyscall_page): Likewise for string
9417 passed to symbol_file_add_from_memory.
9418 (symbol_file_add_from_memory): Make name param a const char* and
9419 don't strdup.
9420
c7e97679
AM
94212020-05-20 Alan Modra <amodra@gmail.com>
9422
9423 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9424 rather than accessing bfd->filename directly.
9425 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9426 and use bfd_section_name.
9427 * dwarf2/frame.c (decode_frame_entry): Likewise.
9428 * exec.c (exec_set_section_address): Likewise.
9429 * solib-aix.c (solib_aix_bfd_open): Likewise.
9430 * stap-probe.c (get_stap_base_address): Likewise.
9431 * symfile.c (reread_symbols): Likewise.
9432
563c591b
TT
94332020-05-19 Tom Tromey <tromey@adacore.com>
9434
9435 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9436
f408d82c
SM
94372020-05-19 Simon Marchi <simon.marchi@efficios.com>
9438
9439 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9440
98c59b52
PA
94412020-05-19 Pedro Alves <palves@redhat.com>
9442
9443 * NEWS (set exec-file-mismatch): Adjust entry.
9444 * exec.c: Include "build-id.h".
9445 (validate_exec_file): Try to match build IDs instead of filenames.
9446 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9447 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9448 and pass down 'warn_if_slow'.
9449 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9450 gdb_bfd_open_closure to pass it down.
9451 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9452
4111f652
PA
94532020-05-19 Pedro Alves <palves@redhat.com>
9454
9455 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9456 * target.c (target_fileio_open_1): Rename to target_fileio_open
9457 and make extern. Use bool.
9458 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9459 (target_fileio_read_alloc_1): Adjust.
9460 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9461 (target_fileio_open_warn_if_slow): Delete declaration.
9462
ad80db5b
PA
94632020-05-19 Pedro Alves <palves@redhat.com>
9464
9465 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9466 Adjust all callers.
9467
1d6ce4d3
YS
94682020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9469
9470 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9471 whether disp is negative.
9472
9005fbbb
SM
94732020-05-19 Simon Marchi <simon.marchi@efficios.com>
9474
9475 * symfile.h (struct symfile_segment_data)
9476 <~symfile_segment_data>: Remove.
9477 <segment_info>: Change to std::vector.
9478 * symfile.c (default_symfile_segments): Update.
9479 * elfread.c (elf_symfile_segments): Update.
9480
68b888ff
SM
94812020-05-19 Simon Marchi <simon.marchi@efficios.com>
9482
9483 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9484 <segments>: New.
9485 <segment_bases, segment_sizes>: Remove.
9486 * symfile.c (default_symfile_segments): Update.
9487 * elfread.c (elf_symfile_segments): Update.
9488 * remote.c (remote_target::get_offsets): Update.
9489 * solib-target.c (solib_target_relocate_section_addresses):
9490 Update.
9491
62982abd
SM
94922020-05-19 Simon Marchi <simon.marchi@efficios.com>
9493
9494 * symfile.h (struct symfile_segment_data): Initialize fields.
9495 <~symfile_segment_data>: Add.
9496 (symfile_segment_data_up): New.
9497 (struct sym_fns) <sym_segments>: Return a
9498 symfile_segment_data_up.
9499 (default_symfile_segments): Return a symfile_segment_data_up.
9500 (free_symfile_segment_data): Remove.
9501 (get_symfile_segment_data): Return a symfile_segment_data_up.
9502 * symfile.c (default_symfile_segments): Likewise.
9503 (get_symfile_segment_data): Likewise.
9504 (free_symfile_segment_data): Remove.
9505 (symfile_find_segment_sections): Update.
9506 * elfread.c (elf_symfile_segments): Return a
9507 symfile_segment_data_up.
9508 * remote.c (remote_target::get_offsets): Update.
9509 * solib-target.c (solib_target_relocate_section_addresses):
9510 Update.
9511 * symfile-debug.c (debug_sym_segments): Return a
9512 symfile_segment_data_up.
9513
7f204339
RO
95142020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9515
e52a0f1b
RO
9516 PR build/25981
9517 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9518 Hardcode register numbers.
9519
7f204339
RO
9520 PR build/25981
9521 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9522 procfs_find_LDT_entry): Remove.
9523 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9524 procfs_find_LDT_entry): Remove.
9525 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9526 Remove.
9527
7f32a4d5
PA
95282020-05-17 Pedro Alves <palves@redhat.com>
9529 Andrew Burgess <andrew.burgess@embecosm.com>
9530 Keno Fischer <keno@juliacomputing.com>
9531
9532 PR gdb/25741
9533 * breakpoint.c (build_target_condition_list): Update comments.
9534 (build_target_command_list): Update comments and skip matching
9535 locations.
9536 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9537 a separate function. Simplify "set breakpoint auto-hw off"
9538 handling.
9539 (insert_breakpoints): Update comment.
9540 (tracepoint_locations_match): New parameter. For breakpoints,
9541 compare location types too, if the caller wants to.
9542 (handle_automatic_hardware_breakpoints): New functions.
9543 (bp_location_is_less_than): Also sort by location type and
9544 hardware breakpoint length.
9545 (update_global_location_list): Handle "set breakpoint auto-hw on"
9546 here.
9547 (update_breakpoint_locations): Ask breakpoint_locations_match to
9548 ignore location types.
9549
7d93a1e0
SM
95502020-05-16 Simon Marchi <simon.marchi@efficios.com>
9551
9552 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9553 type::name instead.
9554
d0e39ea2
SM
95552020-05-16 Simon Marchi <simon.marchi@efficios.com>
9556
9557 * gdbtypes.h (struct type) <name, set_name>: New methods.
9558 (TYPE_CODE): Use type::name. Change all call sites used to set
9559 the name to use type::set_name instead.
9560
2dab0c7b
TT
95612020-05-16 Tom Tromey <tom@tromey.com>
9562
9563 * top.c (quit_force): Update.
9564 * infrun.c (handle_no_resumed): Update.
9565 * top.h (all_uis): New function.
9566 (ALL_UIS): Remove.
9567
59f7bd8d
SM
95682020-05-16 Simon Marchi <simon.marchi@efficios.com>
9569
9570 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9571
9bf058f0
PA
95722020-05-16 Pedro Alves <palves@redhat.com>
9573
9574 * ia64-linux-nat.c
9575 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9576 Declare method.
9577 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9578
8f86ae1a
SM
95792020-05-15 Simon Marchi <simon.marchi@efficios.com>
9580
9581 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9582 (sparc64_adi_info): Likewise.
9583
d6bc0792
TT
95842020-05-15 Tom Tromey <tom@tromey.com>
9585
9586 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9587 block_objfile.
9588 (lookup_objfile_from_block): Remove.
9589 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9590 (lookup_global_symbol): Use block_objfile.
9591 * symtab.h (lookup_objfile_from_block): Don't declare.
9592 * printcmd.c (clear_dangling_display_expressions): Use
9593 block_objfile.
9594 * parse.c (operator_check_standard): Use block_objfile.
9595
8c14c3a3
TT
95962020-05-15 Tom Tromey <tom@tromey.com>
9597
9598 * language.c (language_alloc_type_symbol): Set
9599 SYMBOL_SECTION.
9600 * symtab.c (initialize_objfile_symbol): Remove.
9601 (allocate_symbol): Remove.
9602 (allocate_template_symbol): Remove.
9603 * dwarf2/read.c (fixup_go_packaging): Use "new".
9604 (new_symbol): Use "new".
9605 (read_variable): Don't call initialize_objfile_symbol. Use
9606 "new".
9607 (read_func_scope): Use "new".
9608 * xcoffread.c (process_xcoff_symbol): Don't call
9609 initialize_objfile_symbol.
9610 (SYMBOL_DUP): Remove.
9611 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9612 "new".
9613 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9614 (allocate_template_symbol): Don't declare.
9615 (struct symbol): Add copy constructor. Change defaults.
9616 * jit.c (finalize_symtab): Use "new".
9617 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9618 Use "new".
9619 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9620 (common_block_end): Use "new".
9621 * mdebugread.c (parse_symbol): Use "new".
9622 (new_symbol): Likewise.
9623
5b4a1a8d
PW
96242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9625
9626 * NEWS: Mention changes to help and apropos.
9627
57b4f16e
PW
96282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9629
9630 * command.h (enum command_class): Improve comments, document
9631 that class_alias is for user-defined aliases, give the class
9632 name for each class, remove unused class_xdb.
9633 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9634 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9635 by a precise class.
9636 * infcmd.c (_initialize_infcmd): Likewise.
9637 * reverse.c (_initialize_reverse): Likewise.
9638 * stack.c (_initialize_stack): Likewise.
9639 * symfile.c (_initialize_symfile): Likewise.
9640 * tracepoint.c (_initialize_tracepoint): Likewise.
9641
7c05caf7
PW
96422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9643
9644 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9645 when their aliased command is traversed.
9646 (help_cmd): Add fput_command_names_styled call to
9647 output command name and aliases when command has an alias.
9648
3b3aaacb
PW
96492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9650
9651 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9652 * cli/cli-decode.c (help_cmd_list): Declare as static,
9653 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9654 a command together with the command.
9655 (fput_command_name_styled, fput_command_names_styled): New functions.
9656 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9657 fput_command_name_styled.
9658 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9659 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9660
7aa1b46f
PW
96612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9662
9663 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9664 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9665 * command.h (cmd_show_list): Likewise.
9666 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9667 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9668
89bcba74
PW
96692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9670
9671 * unittests/command-def-selftests.c (traverse_command_structure):
9672 Verify all commands of a list have the same prefix command and
9673 that only the top cmdlist commands have a null prefix.
9674
3f4d92eb
PW
96752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9676
9677 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9678 as prefix, not one of its aliases.
9679 (set_cmd_prefix): Remove.
9680 (do_add_cmd): Centralize the setting of the prefix of a command, when
9681 command is defined after its full chain of prefix commands.
9682 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9683 (add_setshow_cmd_full): Likewise.
9684 (update_prefix_field_of_prefixed_commands): New function.
9685 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9686 update_prefix_field_of_prefixed_commands.
9687 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9688 addresses of remote_set_cmdlist and remote_show_cmdlist given
9689 as argument, not the address of an argument.
9690 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9691 * gdb/remote.c (_initialize_remote): Likewise.
9692
0605465f
PW
96932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9694
9695 * cli/cli-cmds.c (alias_command): Check for an existing alias
9696 using lookup_cmd_composition, as valid_command_p is too strict
9697 and forbids aliases that are the prefix of an existing alias
9698 or command.
9699 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9700 command is properly recognised as a valid command.
9701
58e6ac70
PW
97022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9703
9704 * unittests/help-doc-selftests.c: Rename to
9705 unittests/command-def-selftests.c
9706 * unittests/command-def-selftests.c (help_doc_tests): Update some
9707 comments.
9708 (command_structure_tests, traverse_command_structure): New namespace
9709 and function.
9710 (command_structure_invariants_tests): New function.
9711 (_initialize_command_def_selftests) Renamed from
9712 _initialize_help_doc_selftests, register command_structure_invariants
9713 selftest.
9714
a7b9ceb8
PW
97152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9716
9717 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9718 an alias of 'show'.
9719
b2188a06
JB
97202020-05-15 Joel Brobecker <brobecker@adacore.com>
9721
9722 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9723 ada_is_fixed_point_type. Update all callers.
9724 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9725 all callers.
9726 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9727 Update all callers.
9728 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9729 print_fixed_point_type. Update all callers.
9730 * ada-valprint.c (ada_value_print_num): Replace call to
9731 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9732
a51951c2
KB
97332020-05-14 Kevin Buettner <kevinb@redhat.com>
9734
9735 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9736 processors.
9737 (cpu_supports_bts): Add CV_AMD case.
9738
29d6859f
LM
97392020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9740 Simon Marchi <simon.marchi@efficios.com>
9741
9742 * infrun.c (stop_all_threads): Collect multiple wait events at
9743 each pass.
9744
78134374
SM
97452020-05-14 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9748 type::code instead.
9749
67607e24
SM
97502020-05-14 Simon Marchi <simon.marchi@efficios.com>
9751
9752 * gdbtypes.h (struct type) <code, set_code>: New methods.
9753 (TYPE_CODE): Use type::code. Change all call sites used to set
9754 the code to use type::set_code instead.
9755
a05575d3
TBA
97562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9757 Tom de Vries <tdevries@suse.de>
9758 Pedro Alves <palves@redhat.com>
9759
9760 PR threads/25478
9761 * infrun.c (stop_all_threads): Do NOT ignore
9762 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9763 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9764 received.
9765 (handle_no_resumed): Remove code handling a live inferior with no
9766 threads.
9767 * remote.c (has_single_non_exited_thread): New.
9768 (remote_target::update_thread_list): Do not delete a thread if is
9769 the last thread of the process.
9770 * thread.c (thread_select): Call delete_exited_threads instead of
9771 prune_threads.
9772
6ad82919
TBA
97732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9774
9775 * infrun.c (stop_all_threads): Enable/disable thread events of all
9776 targets. Move a debug message denoting the end of the function
9777 into the SCOPED_EXIT block.
9778
d890404b
TBA
97792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9780
9781 * process-stratum-target.h: Include <set>.
9782 (all_non_exited_process_targets, switch_to_target_no_thread): New
9783 function declarations.
9784 * process-stratum-target.c (all_non_exited_process_targets)
9785 (switch_to_target_no_thread): New function implementations.
9786
293b3ebc
TBA
97872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9788
9789 * infrun.c (handle_inferior_event): Extract out a piece of code
9790 into...
9791 (mark_non_executing_threads): ...this new function.
9792
7ca9b62a
TBA
97932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9794
9795 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9796 use.
9797
fc75c28b
TBA
97982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9799
9800 * regcache.c (regcache_read_pc_protected): New function
9801 implementation that returns 0 if the PC cannot read via
9802 'regcache_read_pc'.
9803 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9804 instead of 'regcache_read_pc'.
9805 (keep_going_pass_signal): Ditto.
9806
a89febbd
TT
98072020-05-13 Tom Tromey <tromey@adacore.com>
9808
9809 * ada-lang.c (align_value): Remove.
9810 (ada_template_to_fixed_record_type_1): Use align_up.
9811
f7e23710
TBA
98122020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9813
9814 * async-event.c: Update the copyright year.
9815 * async-event.h: Update the copyright year.
9816
02ff80c2
SM
98172020-05-12 Simon Marchi <simon.marchi@efficios.com>
9818
9819 * objfiles.h (is_addr_in_objfile,
9820 shared_objfile_contains_address_p): Return bool.
9821 * objfile.c (is_addr_in_objfile,
9822 shared_objfile_contains_address_p): Return bool.
9823
4fd6c7e8
TT
98242020-05-11 Tom Tromey <tromey@adacore.com>
9825
9826 * cli/cli-cmds.c (info_command): Restore.
9827 (_initialize_cli_cmds): Use add_prefix_command for "info".
9828 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9829
5eb68a39
TT
98302020-05-11 Tom Tromey <tromey@adacore.com>
9831
9832 * ada-lang.c (ada_value_primitive_field): Now public.
9833 * ada-lang.h (ada_value_primitive_field): Declare.
9834 * ada-valprint.c (print_field_values): Use
9835 ada_value_primitive_field for wrapper fields.
9836
7666722f
TV
98372020-05-11 Tom de Vries <tdevries@suse.de>
9838
9839 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9840 MODULE_DOMAIN.
9841
3ee6bb11
TV
98422020-05-11 Tom de Vries <tdevries@suse.de>
9843
9844 PR symtab/25941
9845 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9846 with length 0, if not gdb-produced.
9847 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9848
43434996
TV
98492020-05-09 Tom de Vries <tdevries@suse.de>
9850
9851 PR gdb/25955
9852 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9853 calculation.
9854
2f78cffc
TT
98552020-05-09 Tom Tromey <tom@tromey.com>
9856
9857 * top.c (server_command): Now bool.
9858 * top.h (server_command): Now bool.
9859
4f7bc5ed
TT
98602020-05-08 Tom Tromey <tromey@adacore.com>
9861
9862 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9863 already being processed.
9864
8be4b118
TT
98652020-05-08 Tom Tromey <tom@tromey.com>
9866
9867 * printcmd.c (struct display) <next>: Remove.
9868 <display>: New constructor.
9869 <exp_string>: Now a std::string.
9870 <enabled_p>: Now a bool.
9871 (display_number): Move definition earlier.
9872 (displays): Rename from display_chain. Now a std::vector.
9873 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9874 (display_command): Update.
9875 (do_one_display, disable_display)
9876 (enable_disable_display_command, do_enable_disable_display):
9877 Update.
9878 (free_display): Remove.
9879 (clear_displays): Rewrite.
9880 (delete_display): Update.
9881 (map_display_numbers): Use function_view. Remove "data"
9882 parameter. Update.
9883 (do_delete_display): Remove.
9884 (undisplay_command): Update.
9885 (do_one_display, do_displays, disable_display)
9886 (info_display_command): Update.
9887 (do_enable_disable_display): Remove.
9888 (enable_disable_display_command)
9889 (clear_dangling_display_expressions): Update.
9890
94c93c35
TT
98912020-05-08 Tom Tromey <tom@tromey.com>
9892
9893 * symtab.c (set_symbol_cache_size)
9894 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9895 (maintenance_print_symbol_cache_statistics): Update.
9896 * symmisc.c (print_symbol_bcache_statistics)
9897 (print_objfile_statistics, maintenance_print_objfiles)
9898 (maintenance_info_symtabs, maintenance_check_symtabs)
9899 (maintenance_expand_symtabs, maintenance_info_line_tables):
9900 Update.
9901 * symfile-debug.c (set_debug_symfile): Update.
9902 * source.c (forget_cached_source_info): Update.
9903 * python/python.c (gdbpy_progspaces): Update.
9904 * psymtab.c (maintenance_info_psymtabs): Update.
9905 * probe.c (parse_probes): Update.
9906 * linespec.c (iterate_over_all_matching_symtabs)
9907 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9908 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9909 * exec.c (exec_target::close): Update.
9910 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9911 * breakpoint.c (print_one_breakpoint_location)
9912 (create_longjmp_master_breakpoint)
9913 (create_std_terminate_master_breakpoint): Update.
9914 * progspace.c (program_spaces): Now a std::vector.
9915 (maybe_new_address_space): Update.
9916 (add_program_space): Remove.
9917 (program_space::program_space): Update.
9918 (remove_program_space): Update.
9919 (number_of_program_spaces): Remove.
9920 (print_program_space, update_address_spaces): Update.
9921 * progspace.h (program_spaces): Change type.
9922 (ALL_PSPACES): Remove.
9923 (number_of_program_spaces): Don't declare.
9924 (struct program_space) <next>: Remove.
9925
a1fd1ac9
TT
99262020-05-08 Tom Tromey <tom@tromey.com>
9927
9928 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9929 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9930 (enable_break): Update.
9931 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9932 (frv_fdpic_find_canonical_descriptor): Update.
9933 (frv_fetch_objfile_link_map): Update.
9934 * progspace.c (program_space::free_all_objfiles): Update.
9935 (program_space::solibs): New method.
9936 * progspace.h (struct program_space) <solibs>: New method.
9937 * solist.h (master_so_list): Don't declare.
9938 (ALL_SO_LIBS): Remove.
9939 * solib.h (so_list_head): Remove.
9940 (update_solib_list): Update comment.
9941 * solib.c (master_so_list): Remove.
9942 (solib_used, update_solib_list, solib_add)
9943 (info_sharedlibrary_command, clear_solib)
9944 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9945
38eae084
TT
99462020-05-08 Tom Tromey <tom@tromey.com>
9947
9948 * extension.c (extension_languages): Now a std::array.
9949 (ALL_EXTENSION_LANGUAGES): Remove.
9950 (get_ext_lang_defn, get_ext_lang_of_file)
9951 (eval_ext_lang_from_control_command): Update.
9952 (finish_ext_lang_initialization)
9953 (auto_load_ext_lang_scripts_for_objfile)
9954 (ext_lang_type_printers::ext_lang_type_printers)
9955 (apply_ext_lang_type_printers)
9956 (ext_lang_type_printers::~ext_lang_type_printers)
9957 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9958 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9959 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9960 (get_matching_xmethod_workers, ext_lang_colorize)
9961 (ext_lang_before_prompt): Update.
9962 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9963
596dc4ad
TT
99642020-05-08 Tom Tromey <tom@tromey.com>
9965
9966 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9967 overload.
9968 <swap_string, m_string>: Remove.
9969 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9970 Update.
9971 * stabsread.c (define_symbol, read_type): Update.
9972 * linespec.c (find_linespec_symbols): Update.
9973 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9974 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9975 * dbxread.c (read_dbx_symtab): Update.
9976 * cp-support.h (cp_canonicalize_string_full)
9977 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9978 Return unique_xmalloc_ptr.
9979 * cp-support.c (inspect_type): Update.
9980 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9981 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9982 Likewise.
9983 * c-typeprint.c (print_name_maybe_canonical): Update.
9984 * break-catch-throw.c (check_status_exception_catchpoint):
9985 Update.
9986
bf4cb9be
TV
99872020-05-08 Tom de Vries <tdevries@suse.de>
9988
9989 * infrun.c (follow_fork): Copy current_line and current_symtab to
9990 child thread.
9991
a1b68f28
SM
99922020-05-07 Simon Marchi <simon.marchi@efficios.com>
9993
9994 * async-event.c (struct async_signal_handler, struct
9995 async_event_handler): Reformat, remove typedef.
9996
98d48915
SM
99972020-05-07 Simon Marchi <simon.marchi@efficios.com>
9998
9999 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10000 access thistype->main_type->dyn_prop_list directly.
10001
7aa91313
SM
100022020-05-07 Simon Marchi <simon.marchi@efficios.com>
10003
10004 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10005 (remove_dyn_prop): Remove. Update all users to use
10006 type::remove_dyn_prop.
10007 * gdbtypes.c (remove_dyn_prop): Rename to...
10008 (type::remove_dyn_prop): ... this.
10009
5c54719c
SM
100102020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10011
10012 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10013 (add_dyn_prop): Remove. Update all users to use
10014 type::add_dyn_prop.
10015 * gdbtypes.c (add_dyn_prop): Rename to...
10016 (type::add_dyn_prop): ... this.
10017
24e99c6c
SM
100182020-05-07 Simon Marchi <simon.marchi@efficios.com>
10019
10020 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10021 (get_dyn_prop): Remove. Update all users to use
10022 type::dyn_prop.
10023 * gdbtypes.c (get_dyn_prop): Rename to...
10024 (type::dyn_prop): ... this.
10025
0d4bf016
SM
100262020-05-06 Simon Marchi <simon.marchi@efficios.com>
10027
10028 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10029
ac4a4f1c
SM
100302020-05-06 Simon Marchi <simon.marchi@efficios.com>
10031
10032 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10033 instruction, skip it if it's there.
10034
a3bbacc1
SM
100352020-05-05 Simon Marchi <simon.marchi@efficios.com>
10036
10037 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10038
c3236f84
SM
100392020-05-04 Simon Marchi <simon.marchi@efficios.com>
10040
10041 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10042 * gdbtypes.c (recursive_dump_type): Remove use of
10043 TYPE_INCOMPLETE.
10044
3b6acaee
TT
100452020-05-03 Tom Tromey <tom@tromey.com>
10046
10047 * breakpoint.c (catch_command, tcatch_command): Remove.
10048 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10049 add_show_prefix_cmd.
10050 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10051 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10052 Remove.
10053 (add_internal_problem_command): Use add_basic_prefix_cmd,
10054 add_show_prefix_cmd.
10055 * mips-tdep.c (set_mipsfpu_command): Remove.
10056 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10057 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10058 (_initialize_index_cache): Use add_basic_prefix_cmd.
10059 * memattr.c (dummy_cmd): Remove.
10060 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10061 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10062 (_initialize_tui_win): Use add_basic_prefix_cmd,
10063 add_show_prefix_cmd.
10064 * cli/cli-logging.c (set_logging_command): Remove.
10065 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10066 add_show_prefix_cmd.
10067 (show_logging_command): Remove.
10068 * target.c (target_command): Remove.
10069 (add_target): Use add_basic_prefix_cmd.
10070
a51119cd
HD
100712020-05-02 Hannes Domani <ssbssa@yahoo.de>
10072
10073 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10074
652fc23a 100752020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10076
652fc23a
PW
10077 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10078 info_command.
10079
117539e6
KR
100802020-04-30 Kamil Rytarowski <n54@gmx.com>
10081
10082 * nbsd-nat.c (nbsd_enable_proc_events)
10083 (nbsd_nat_target::post_startup_inferior): Add.
10084 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10085 (nbsd_nat_target::update_thread_list): Rewrite.
10086 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10087 "PTRACE_LWP_CREATE".
10088 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10089
102e38eb 100902020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10091
102e38eb
PW
10092 * stack.c (_initialize_stack): Remove duplicated creation
10093 of "frame" command and "f" alias.
10094
ee9d1e5f
HD
100952020-04-30 Hannes Domani <ssbssa@yahoo.de>
10096
10097 PR gdb/18706
10098 * gdbtypes.c (check_typedef): Calculate size of array of
10099 stubbed type.
10100
627c7fb8
HD
101012020-04-30 Hannes Domani <ssbssa@yahoo.de>
10102
10103 PR gdb/15559
10104 * i386-tdep.c (i386_push_dummy_call): Call
10105 i386_thiscall_push_dummy_call.
10106 (i386_thiscall_push_dummy_call): New function.
10107 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10108 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10109 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10110
ffc2844e
SM
101112020-04-29 Simon Marchi <simon.marchi@efficios.com>
10112
10113 * gdbarch.sh (do_read): Add shellcheck disable directive for
10114 warning SC2162.
10115
1207375d
SM
101162020-04-29 Simon Marchi <simon.marchi@efficios.com>
10117
10118 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10119 "referenced but not assigned" warning.
10120
9fdb2916
SM
101212020-04-29 Simon Marchi <simon.marchi@efficios.com>
10122
10123 * gdbarch.sh: Remove code that sets fallbackdefault.
10124
759cea5e
SM
101252020-04-29 Simon Marchi <simon.marchi@efficios.com>
10126
10127 * gdbarch.sh: Use shell operators && and || instead of
10128 -a and -o.
10129
cb02ab24
SM
101302020-04-29 Simon Marchi <simon.marchi@efficios.com>
10131
10132 * gdbarch.sh: Use $(...) instead of `...`.
10133
a6fc5ffc
SM
101342020-04-29 Simon Marchi <simon.marchi@efficios.com>
10135
10136 * gdbarch.sh: Use double quotes around variables.
10137
8d113d13
SM
101382020-04-29 Simon Marchi <simon.marchi@efficios.com>
10139
10140 * gdbarch.sh: Use %s with printf, instead of variables in the
10141 format string.
10142
ed6acedd
TT
101432020-04-29 Tom Tromey <tromey@adacore.com>
10144
10145 PR ada/25875:
10146 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10147 type fields here.
10148 (read_enumeration_type): Call
10149 update_enumeration_type_from_children later. Update comments.
10150 (process_enumeration_scope): Don't create type fields.
10151
b68b1b58
KR
101522020-04-29 Kamil Rytarowski <n54@gmx.com>
10153
10154 * nbsd-tdep.c: Include "xml-syscall.h".
10155 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10156
f94b2e03
KR
101572020-04-29 Kamil Rytarowski <n54@gmx.com>
10158
10159 * nbsd-nat.c: Include "sys/wait.h".
10160 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10161 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10162 (nbsd_nat_target::remove_exec_catchpoint)
10163 (nbsd_nat_target::set_syscall_catchpoint): Add.
10164 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10165 (nbsd_nat_target::insert_exec_catchpoint)
10166 (nbsd_nat_target::remove_exec_catchpoint)
10167 (nbsd_nat_target::set_syscall_catchpoint): Add.
10168 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10169 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10170 `nbsd_get_syscall_number'.
10171
fc49bc72
TT
101722020-04-29 Tom Tromey <tom@tromey.com>
10173
10174 * stack.c (print_block_frame_labels): Remove.
10175
d642b692
HD
101762020-04-29 Hannes Domani <ssbssa@yahoo.de>
10177
10178 PR gdb/17320
10179 * ada-valprint.c (val_print_packed_array_elements): Move array
10180 end bracket to new line.
10181 (ada_val_print_string): Remove extra spaces before first array
10182 element.
10183 * c-valprint.c (c_value_print_array): Likewise.
10184 * m2-valprint.c (m2_print_array_contents): Likewise.
10185 (m2_value_print_inner): Likewise.
10186 * p-valprint.c (pascal_value_print_inner): Likewise.
10187 * valprint.c (generic_val_print_array): Likewise.
10188 (value_print_array_elements): Move first array element and array
10189 end bracket to new line.
10190
ea90f227
TV
101912020-04-29 Tom de Vries <tdevries@suse.de>
10192
10193 PR symtab/25889
10194 * linespec.c (find_method): Fix ix calculation.
10195
4498ef4f
KR
101962020-04-28 Kamil Rytarowski <n54@gmx.com>
10197
10198 * syscalls/update-netbsd.sh: New file.
10199 * syscalls/netbsd.xml: Regenerate.
10200 * data-directory/Makefile.in: Register `netbsd.xml' in
10201 `SYSCALLS_FILES'.
10202
a55e30b5
SM
102032020-04-28 Simon Marchi <simon.marchi@efficios.com>
10204
10205 * syscalls/update-freebsd.sh: Add double quotes.
10206
2b2fbab8
TT
102072020-04-28 Tom Tromey <tom@tromey.com>
10208
10209 * NEWS: Update.
10210 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10211 (cmdpy_init): Allow class_tui.
10212
a65189c9
TV
102132020-04-28 Mark Williams <mark@myosotissp.com>
10214
10215 PR gdb/24480
10216 * dwarf2read.c: Add missing assingments to list_in_scope when
10217 start_symtab was already called.
10218
1b95cdb7
SM
102192020-04-28 Simon Marchi <simon.marchi@efficios.com>
10220
10221 PR gdb/25881
10222 * dwarf2/read.c (offset_map_type): Use
10223 gdb:hash_enum<sect_offset> as hash function.
10224
15cd93d0
TV
102252020-04-28 Tom de Vries <tdevries@suse.de>
10226
10227 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10228 with DW_AT_signature.
10229
1eb39914
SM
102302020-04-27 Simon Marchi <simon.marchi@efficios.com>
10231
10232 * configure.ac: Remove check for fs_base/gs_base in
10233 user_regs_struct.
10234 * configure: Re-generate.
10235 * config.in: Re-generate.
10236 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10237 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10238 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10239
991a3e2e
LM
102402020-04-27 Luis Machado <luis.machado@linaro.org>
10241
10242 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10243 problematic inline frame unwinding situation.
10244 * frame.c (frame_id_computed_p): New function.
10245 * frame.h (frame_id_computed_p): New prototype.
10246
361ba0e8
TT
102472020-04-26 Tom Tromey <tom@tromey.com>
10248
10249 * command.h (enum command_class) <class_pseudo>: Remove.
10250
bc3609fd
PW
102512020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10252
10253 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10254 and whitespace.
10255
b9771db7
KR
102562020-04-25 Kamil Rytarowski <n54@gmx.com>
10257
ec16513e
SM
10258 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10259 `PT_GET_PROCESS_STATE' block.
b9771db7 10260
7151c1af
TT
102612020-04-24 Tom Tromey <tom@tromey.com>
10262
10263 * symtab.h (symbol_get_demangled_name): Don't declare.
10264 * symtab.c (symbol_get_demangled_name): Remove.
10265 (general_symbol_info::natural_name)
10266 (general_symbol_info::demangled_name): Update.
10267
906bb4c5
TT
102682020-04-24 Tom Tromey <tom@tromey.com>
10269
10270 PR rust/25025:
10271 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10272
bcfe6157
TT
102732020-04-24 Tom Tromey <tom@tromey.com>
10274
10275 PR symtab/12707:
10276 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10277 exists.
10278 (new_symbol): Likewise.
10279 * compile/compile-object-load.c (get_out_value_type): Use
10280 symbol_matches_search_name.
10281
f049a313
TT
102822020-04-24 Tom Tromey <tom@tromey.com>
10283
10284 * dwarf2/read.c (add_partial_symbol): Do not call
10285 compute_and_set_names.
10286
76e288d1
TT
102872020-04-24 Tom Tromey <tom@tromey.com>
10288
10289 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10290 overload.
10291
2467f4f6
TT
102922020-04-24 Tom Tromey <tom@tromey.com>
10293
10294 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10295 (add_psymbol_to_list): New overload. Make old overload call new
10296 one.
10297 * psympriv.h (add_psymbol_to_list): New overload.
10298
e61108c9
TT
102992020-04-24 Tom Tromey <tom@tromey.com>
10300
10301 * dwarf2/read.c (partial_die_info::read) <case
10302 DW_AT_linkage_name>: Use value_as_string.
10303 (dwarf2_string_attr): Use value_as_string.
10304 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10305 method.
10306 * dwarf2/attribute.c (attribute::value_as_string): New method.
10307
8c87a452
TT
103082020-04-24 Tom Tromey <tom@tromey.com>
10309
10310 * symtab.c (general_symbol_info::natural_name)
10311 (general_symbol_info::demangled_name): Check for language_rust.
10312
787de330
TT
103132020-04-24 Tom Tromey <tom@tromey.com>
10314
10315 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10316 (dwarf2_physname): ... from here.
10317 (partial_die_info::read): Add Rust "{" hack.
10318
ff985671
TT
103192020-04-24 Tom Tromey <tom@tromey.com>
10320
10321 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10322 method.
10323 (symbol_set_demangled_name): Don't declare.
10324 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10325 symbol_set_demangled_name.
10326 (general_symbol_info::set_language)
10327 (general_symbol_info::compute_and_set_names): Update.
10328 * minsyms.c (minimal_symbol_reader::install): Update.
10329 * dwarf2/read.c (new_symbol): Update.
10330
1acda803
TT
103312020-04-24 Tom Tromey <tromey@adacore.com>
10332
10333 PR python/23662:
10334 * python/py-type.c (convert_field): Handle
10335 FIELD_LOC_KIND_DWARF_BLOCK.
10336 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10337 (typy_get_dynamic): Nw function.
10338 (type_object_getset): Add "dynamic".
10339 * NEWS: Add entry.
10340
d656f129
TT
103412020-04-24 Tom Tromey <tromey@adacore.com>
10342
10343 * ada-typeprint.c (print_choices, print_variant_part)
10344 (print_record_field_types_dynamic): New functions.
10345 (print_record_field_types): Use print_record_field_types_dynamic.
10346
7d79de9a
TT
103472020-04-24 Tom Tromey <tromey@adacore.com>
10348
10349 * dwarf2/read.c (handle_data_member_location): New overload.
10350 (dwarf2_add_field): Use it.
10351 (decode_locdesc): Add "computed" parameter. Update comment.
10352 * gdbtypes.c (is_dynamic_type_internal): Also look for
10353 FIELD_LOC_KIND_DWARF_BLOCK.
10354 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10355 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10356 virtual base classes.
10357 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10358 FIELD_LOC_KIND_DWARF_BLOCK.
10359
f8e89861
TT
103602020-04-24 Tom Tromey <tromey@adacore.com>
10361
10362 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10363 * gdbtypes.c (is_dynamic_type_internal): Check
10364 TYPE_HAS_DYNAMIC_LENGTH.
10365 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10366 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10367 New macros.
10368 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10369 constant.
10370
9c6a1327
TT
103712020-04-24 Tom Tromey <tromey@adacore.com>
10372
10373 * dwarf2/read.c (struct variant_field): Rewrite.
10374 (struct variant_part_builder): New.
10375 (struct nextfield): Remove "variant" field. Add "offset".
10376 (struct field_info): Add "current_variant_part" and
10377 "variant_parts".
10378 (alloc_discriminant_info): Remove.
10379 (alloc_rust_variant): New function.
10380 (quirk_rust_enum): Update.
10381 (dwarf2_add_field): Set "offset" member. Don't handle
10382 DW_TAG_variant_part.
10383 (offset_map_type): New typedef.
10384 (convert_variant_range, create_one_variant)
10385 (create_one_variant_part, create_variant_parts)
10386 (add_variant_property): New functions.
10387 (dwarf2_attach_fields_to_type): Call add_variant_property.
10388 (read_structure_type): Don't handle DW_TAG_variant_part.
10389 (handle_variant_part, handle_variant): New functions.
10390 (handle_struct_member_die): Use them.
10391 (process_structure_scope): Don't handle variant parts.
10392 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10393 (struct discriminant_info): Remove.
10394 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10395 (struct main_type) <flag_discriminated_union>: Remove.
10396 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10397 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10398 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10399 Update.
10400 * valops.c (value_union_variant): Remove.
10401 * value.h (value_union_variant): Don't declare.
10402
b249d2c2
TT
104032020-04-24 Tom Tromey <tromey@adacore.com>
10404
10405 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10406 (ada_value_primitive_packed_val): Update.
10407 * ada-valprint.c (ada_value_print_1): Update.
10408 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10409 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10410 just an address. Use evaluate_for_locexpr_baton.
10411 (dwarf2_evaluate_property): Update.
10412 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10413 array_view.
10414 * findvar.c (default_read_var_value): Update.
10415 * gdbtypes.c (compute_variant_fields_inner)
10416 (resolve_dynamic_type_internal): Update.
10417 (resolve_dynamic_type): Change type of valaddr parameter.
10418 * gdbtypes.h (resolve_dynamic_type): Update.
10419 * valarith.c (value_subscripted_rvalue): Update.
10420 * value.c (value_from_contents_and_address): Update.
10421
61122aa9
TT
104222020-04-24 Tom Tromey <tromey@adacore.com>
10423
10424 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10425 "push_initial_value" parameter.
10426 (dwarf2_evaluate_property): Likewise.
10427 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10428
ef83a141
TT
104292020-04-24 Tom Tromey <tromey@adacore.com>
10430
10431 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10432 (variant::matches, compute_variant_fields_recurse)
10433 (compute_variant_fields_inner, compute_variant_fields): New
10434 functions.
10435 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10436 Use resolved_type after type is made.
10437 (operator==): Add new cases.
10438 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10439 (struct discriminant_range, struct variant, struct variant_part):
10440 New.
10441 (union dynamic_prop_data) <variant_parts, original_type>: New
10442 members.
10443 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10444 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10445 constants.
10446 * value.c (unpack_bits_as_long): Now public.
10447 * value.h (unpack_bits_as_long): Declare.
10448
675127ec
TT
104492020-04-24 Tom Tromey <tromey@adacore.com>
10450
10451 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10452 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10453
9852ceef
HD
104542020-04-24 Hannes Domani <ssbssa@yahoo.de>
10455
10456 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10457
7632c6ce
KR
104582020-04-24 Kamil Rytarowski <n54@gmx.com>
10459
10460 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10461 (remove_fork_catchpoint, post_startup_inferior)
10462 (post_attach): Move...
10463 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10464 (remove_fork_catchpoint, post_startup_inferior)
10465 (post_attach): ...here.
10466 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10467 (remove_fork_catchpoint, post_startup_inferior)
10468 (post_attach): Move...
10469 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10470 (remove_fork_catchpoint, post_startup_inferior)
10471 (post_attach): ...here.
10472
7be2bb4f
TT
104732020-04-24 Tom Tromey <tromey@adacore.com>
10474
10475 * nat/windows-nat.h (struct windows_thread_info)
10476 <pc_adjusted>: New member.
10477 * windows-nat.c (windows_fetch_one_register): Check
10478 pc_adjusted.
10479 (windows_nat_target::get_windows_debug_event)
10480 (windows_nat_target::wait): Set pc_adjusted.
10481
f80cb3b4
TV
104822020-04-24 Tom de Vries <tdevries@suse.de>
10483
10484 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10485 Run gdb-add-index inside temp dir.
10486
29514b87
TT
104872020-04-23 Tom Tromey <tromey@adacore.com>
10488
10489 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10490 in loop.
10491
5939967b
LM
104922020-04-23 Luis Machado <luis.machado@linaro.org>
10493
10494 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10495 get_frame_register instead of gdbarch_unwind_pc.
10496
70bc38f5
TV
104972020-04-23 Tom de Vries <tdevries@suse.de>
10498
10499 * symtab.c (lookup_global_symbol): Prefer def over decl.
10500
de82891c
TV
105012020-04-23 Tom de Vries <tdevries@suse.de>
10502
10503 PR symtab/25807
10504 * block.c (best_symbol, better_symbol): Promote to external.
10505 * block.h (best_symbol, better_symbol): Declare.
10506 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10507 decl.
10508
ecc6c606
TT
105092020-04-23 Tom Tromey <tromey@adacore.com>
10510
10511 PR ada/25837:
10512 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10513 "const char *", not a "const std::string &".
10514 <name_and_matcher::operator==>: Update.
10515 * unittests/lookup_name_info-selftests.c: Change type of
10516 "result".
10517
740480b8
TT
105182020-04-23 Tom Tromey <tom@tromey.com>
10519
10520 * inferior.h (iterate_over_inferiors): Don't declare.
10521 * inferior.c (iterate_over_inferiors): Remove.
10522 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10523 Remove.
10524 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10525 use iterate_over_inferiors.
10526 (darwin_resume_inferior_it)
10527 (struct resume_inferior_threads_param)
10528 (darwin_resume_inferior_threads_it): Remove.
10529 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10530
ae3ab1f0
TV
105312020-04-23 Tom de Vries <tdevries@suse.de>
10532
10533 * blockframe.c (find_pc_partial_function): Use
10534 find_pc_sect_compunit_symtab rather than
10535 objfile->sf->qf->find_pc_sect_compunit_symtab.
10536
317d2668
TV
105372020-04-22 Tom de Vries <tdevries@suse.de>
10538
10539 PR symtab/25764
10540 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10541 in psymtabs.
10542
eea9e357
TV
105432020-04-22 Tom de Vries <tdevries@suse.de>
10544
10545 PR symtab/25801
10546 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10547 symtabs.
10548
3d5afab3
TV
105492020-04-22 Tom de Vries <tdevries@suse.de>
10550
10551 PR symtab/25700
10552 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10553 CU if already created.
10554
d43b7a2d
TBA
105552020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10556
10557 * infrun.c (displaced_step_fixup): Switch to the event_thread
10558 before calling displaced_step_restore, not after.
10559
d89edf9b
MM
105602020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10561
10562 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10563 its inferior is not recorded by us.
10564 (record_btrace_target_open): Replace call to
10565 all_non_exited_threads () with call to current_inferior
10566 ()->non_exited_threads ().
10567 (record_btrace_target::stop_recording): Likewise.
10568 (record_btrace_target::close): Likewise.
10569 (record_btrace_target::wait): Likewise.
10570 (record_btrace_target::record_stop_replaying): Likewise.
10571
5897fd49
MM
105722020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10573
10574 * btrace.c (btrace_enable): Throw an error on double enables and
10575 when enabling recording fails.
10576 (btrace_disable): Throw an error if the thread is not recorded.
10577
1a476b6d
MM
105782020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10579
10580 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10581 request if we do not have a thread_info.
10582
4778a5f8
TV
105832020-04-21 Tom de Vries <tdevries@suse.de>
10584
10585 PR gdb/25471
10586 * thread.c
10587 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10588 exception in get_frame_id.
10589
0fa7617d
TT
105902020-04-20 Tom Tromey <tromey@adacore.com>
10591
10592 * python/python.c (struct gdbpy_event): Mark move constructor as
10593 noexcept.
10594 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10595 constructor as noexcept.
10596 * completer.h (struct completion_result): Mark move constructor as
10597 noexcept.
10598 * completer.c (completion_result::completion_result): Use
10599 initialization style. Don't call reset_match_list.
10600
ad23bda0
MS
106012020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10602
10603 * MAINTAINERS (Write After Approval): Add myself.
10604
45e1f031
TT
106052020-04-18 Tom Tromey <tom@tromey.com>
10606
10607 * windows-tdep.c (init_w32_command_list)
10608 (w32_prefix_command_valid): Restore.
10609 (_initialize_windows_tdep): Call init_w32_command_list.
10610
08feed99
TT
106112020-04-18 Tom Tromey <tom@tromey.com>
10612
10613 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10614 * value.c (value_fn_field): Update.
10615 * valops.c (find_function_in_inferior)
10616 (value_allocate_space_in_inferior): Update.
10617 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10618 Update.
10619 * tui/tui-source.c (tui_source_window::set_contents): Update.
10620 * symtab.c (lookup_global_or_static_symbol)
10621 (find_function_start_sal_1, skip_prologue_sal)
10622 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10623 * symmisc.c (dump_msymbols, dump_symtab_1)
10624 (maintenance_print_one_line_table): Update.
10625 * symfile.c (init_entry_point_info, section_is_mapped)
10626 (list_overlays_command, simple_read_overlay_table)
10627 (simple_overlay_update_1): Update.
10628 * stap-probe.c (handle_stap_probe): Update.
10629 * stabsread.c (dbx_init_float_type, define_symbol)
10630 (read_one_struct_field, read_enum_type, read_range_type): Update.
10631 * source.c (info_line_command): Update.
10632 * python/python.c (gdbpy_source_objfile_script)
10633 (gdbpy_execute_objfile_script): Update.
10634 * python/py-type.c (save_objfile_types): Update.
10635 * python/py-objfile.c (py_free_objfile): Update.
10636 * python/py-inferior.c (python_new_objfile): Update.
10637 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10638 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10639 (maintenance_check_psymtabs): Update.
10640 * printcmd.c (info_address_command): Update.
10641 * objfiles.h (struct objfile) <arch>: New method, from
10642 get_objfile_arch.
10643 (get_objfile_arch): Don't declare.
10644 * objfiles.c (get_objfile_arch): Remove.
10645 (filter_overlapping_sections): Update.
10646 * minsyms.c (msymbol_is_function): Update.
10647 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10648 (output_nondebug_symbol): Update.
10649 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10650 (mdebug_expand_psymtab): Update.
10651 * machoread.c (macho_add_oso_symfile): Update.
10652 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10653 Update.
10654 * linux-fork.c (checkpoint_command): Update.
10655 * linespec.c (convert_linespec_to_sals): Update.
10656 * jit.c (finalize_symtab): Update.
10657 * infrun.c (insert_exception_resume_from_probe): Update.
10658 * ia64-tdep.c (ia64_find_unwind_table): Update.
10659 * hppa-tdep.c (internalize_unwinds): Update.
10660 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10661 Update.
10662 * gcore.c (call_target_sbrk): Update.
10663 * elfread.c (record_minimal_symbol, elf_symtab_read)
10664 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10665 (elf_gnu_ifunc_resolve_by_got): Update.
10666 * dwarf2/read.c (create_addrmap_from_index)
10667 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10668 (read_debug_names_from_section)
10669 (process_psymtab_comp_unit_reader, add_partial_symbol)
10670 (add_partial_subprogram, process_full_comp_unit)
10671 (read_file_scope, read_func_scope, read_lexical_block_scope)
10672 (read_call_site_scope, dwarf2_ranges_read)
10673 (dwarf2_record_block_ranges, dwarf2_add_field)
10674 (mark_common_block_symbol_computed, read_tag_pointer_type)
10675 (read_tag_string_type, dwarf2_init_float_type)
10676 (dwarf2_init_complex_target_type, read_base_type)
10677 (partial_die_info::read, partial_die_info::read)
10678 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10679 (dwarf2_fetch_die_loc_sect_off): Update.
10680 * dwarf2/loc.c (dwarf2_find_location_expression)
10681 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10682 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10683 (dwarf2_loc_desc_get_symbol_read_needs)
10684 (locexpr_describe_location_piece, locexpr_describe_location_1)
10685 (loclist_describe_location): Update.
10686 * dwarf2/index-write.c (write_debug_names): Update.
10687 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10688 * dtrace-probe.c (dtrace_process_dof): Update.
10689 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10690 (process_one_symbol): Update.
10691 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10692 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10693 (coff_read_enum_type): Update.
10694 * cli/cli-cmds.c (edit_command, list_command): Update.
10695 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10696 * breakpoint.c (create_overlay_event_breakpoint)
10697 (create_longjmp_master_breakpoint)
10698 (create_std_terminate_master_breakpoint)
10699 (create_exception_master_breakpoint, get_sal_arch): Update.
10700 * block.c (block_gdbarch): Update.
10701 * annotate.c (annotate_source_line): Update.
10702
0743fc83
TT
107032020-04-17 Tom Tromey <tromey@adacore.com>
10704
10705 * auto-load.c (show_auto_load_cmd): Remove.
10706 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10707 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10708 (maintenance_print_arc_command): Remove.
10709 * tui/tui-win.c (tui_command): Remove.
10710 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10711 * tui/tui-layout.c (tui_layout_command): Remove.
10712 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10713 * python/python.c (user_set_python, user_show_python): Remove.
10714 (_initialize_python): Use add_basic_prefix_cmd,
10715 add_show_prefix_cmd.
10716 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10717 (install_gdb_commands): Use add_basic_prefix_cmd,
10718 add_show_prefix_cmd.
10719 (info_guile_command): Remove.
10720 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10721 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10722 add_show_prefix_cmd.
10723 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10724 Remove do_set and do_show parameters.
10725 * cli/cli-style.c (set_style, show_style): Remove.
10726 (_initialize_cli_style): Use add_basic_prefix_cmd,
10727 add_show_prefix_cmd.
10728 (cli_style_option::add_setshow_commands): Remove do_set and
10729 do_show parameters.
10730 (cli_style_option::add_setshow_commands): Use
10731 add_basic_prefix_cmd, add_show_prefix_cmd.
10732 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10733 (set_style_name): Remove.
10734 * cli/cli-dump.c (dump_command, append_command): Remove.
10735 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10736 (tekhex_dump_command, binary_dump_command)
10737 (binary_append_command): Remove.
10738 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10739 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10740 (init_w32_command_list): Remove; move into ...
10741 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10742 * valprint.c (set_print, show_print, set_print_raw)
10743 (show_print_raw): Remove.
10744 (_initialize_valprint): Use add_basic_prefix_cmd,
10745 add_show_prefix_cmd.
10746 * typeprint.c (set_print_type, show_print_type): Remove.
10747 (_initialize_typeprint): Use add_basic_prefix_cmd,
10748 add_show_prefix_cmd.
10749 * record.c (set_record_command, show_record_command): Remove.
10750 (_initialize_record): Use add_basic_prefix_cmd,
10751 add_show_prefix_cmd.
10752 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10753 add_show_prefix_cmd.
10754 (info_command, show_command, set_debug, show_debug): Remove.
10755 * top.h (set_history, show_history): Don't declare.
10756 * top.c (set_history, show_history): Remove.
10757 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10758 (unset_tdesc_cmd): Remove.
10759 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10760 add_show_prefix_cmd.
10761 * symtab.c (info_module_command): Remove.
10762 (_initialize_symtab): Use add_basic_prefix_cmd.
10763 * symfile.c (overlay_command): Remove.
10764 (_initialize_symfile): Use add_basic_prefix_cmd.
10765 * sparc64-tdep.c (info_adi_command): Remove.
10766 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10767 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10768 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10769 add_show_prefix_cmd.
10770 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10771 (_initialize_serial): Use add_basic_prefix_cmd,
10772 add_show_prefix_cmd.
10773 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10774 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10775 add_show_prefix_cmd.
10776 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10777 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10778 add_show_prefix_cmd.
10779 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10780 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10781 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10782 add_show_prefix_cmd.
10783 * remote.c (remote_command, set_remote_cmd): Remove.
10784 (_initialize_remote): Use add_basic_prefix_cmd.
10785 * record-full.c (set_record_full_command)
10786 (show_record_full_command): Remove.
10787 (_initialize_record_full): Use add_basic_prefix_cmd,
10788 add_show_prefix_cmd.
10789 * record-btrace.c (cmd_set_record_btrace)
10790 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10791 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10792 (cmd_show_record_btrace_pt): Remove.
10793 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10794 add_show_prefix_cmd.
10795 * ravenscar-thread.c (set_ravenscar_command)
10796 (show_ravenscar_command): Remove.
10797 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10798 add_show_prefix_cmd.
10799 * mips-tdep.c (show_mips_command, set_mips_command)
10800 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10801 add_show_prefix_cmd.
10802 * maint.c (maintenance_command, maintenance_info_command)
10803 (maintenance_check_command, maintenance_print_command)
10804 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10805 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10806 add_show_prefix_cmd.
10807 (show_per_command_cmd): Remove.
10808 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10809 Remove.
10810 (maintenance_show_test_settings_cmd): Remove.
10811 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10812 add_show_prefix_cmd.
10813 * maint-test-options.c (maintenance_test_options_command):
10814 Remove.
10815 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10816 * macrocmd.c (macro_command): Remove
10817 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10818 * language.c (set_check, show_check): Remove.
10819 (_initialize_language): Use add_basic_prefix_cmd,
10820 add_show_prefix_cmd.
10821 * infcmd.c (unset_command): Remove.
10822 (_initialize_infcmd): Use add_basic_prefix_cmd.
10823 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10824 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10825 add_show_prefix_cmd.
10826 * go32-nat.c (go32_info_dos_command): Remove.
10827 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10828 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10829 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10830 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10831 (_initialize_frame): Use add_basic_prefix_cmd,
10832 add_show_prefix_cmd.
10833 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10834 (_initialize_dcache): Use add_basic_prefix_cmd,
10835 add_show_prefix_cmd.
10836 * cp-support.c (maint_cplus_command): Remove.
10837 (_initialize_cp_support): Use add_basic_prefix_cmd.
10838 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10839 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10840 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10841 add_basic_prefix_cmd, add_show_prefix_cmd.
10842 * breakpoint.c (save_command): Remove.
10843 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10844 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10845 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10846 add_show_prefix_cmd.
10847 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10848 (set_ada_command, show_ada_command): Remove.
10849 (_initialize_ada_language): Use add_basic_prefix_cmd,
10850 add_show_prefix_cmd.
10851 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10852
3557f442
KR
108532020-04-16 Kamil Rytarowski <n54@gmx.com>
10854
10855 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10856 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10857
16197208
SM
108582020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10859
10860 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10861 warning messages.
10862
00ac85d3
SM
108632020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10864
10865 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10866 import table is not at beginning of .idata section.
10867
381ce63f
PA
108682020-04-16 Pedro Alves <palves@redhat.com>
10869
10870 * inferior.c (delete_inferior): Use delete operator directly
10871 instead of delete_program_space.
10872 * progspace.c (add_program_space): New, factored out from
10873 program_space::program_space.
10874 (remove_program_space): New, factored out from
10875 delete_program_space.
10876 (program_space::program_space): Remove intro comment. Rewrite.
10877 (program_space::~program_space): Remove intro comment. Call
10878 remove_program_space.
10879 (delete_program_space): Delete.
10880 * progspace.h (program_space::program_space): Make explicit. Move
10881 intro comment here, adjusted.
10882 (program_space::~program_space): Move intro comment here,
10883 adjusted.
10884 (delete_program_space): Remove.
10885
a010605f
TT
108862020-04-16 Tom Tromey <tromey@adacore.com>
10887
10888 * windows-nat.c (windows_nat::handle_access_violation): New
10889 function.
10890 * nat/windows-nat.h (handle_access_violation): Declare.
10891 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10892 windows-nat.c. Call handle_access_violation.
10893
efba5c23
TV
108942020-04-16 Tom de Vries <tdevries@suse.de>
10895
10896 PR symtab/25791
10897 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10898 CUs without psymtab.
10899
97ed802d
KB
109002020-04-16 Kevin Buettner <kevinb@redhat.com>
10901
10902 * python/python.c (do_start_initialization): Don't call
10903 PyEval_InitThreads for Python 3.9 and beyond.
10904
c7d64809
KR
109052020-04-15 Kamil Rytarowski <n54@gmx.com>
10906
10907 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10908 thread functions.
10909 (obsd_nat_target::wait): Likewise.
10910
ce127a96
TT
109112020-04-15 Tom Tromey <tromey@adacore.com>
10912
10913 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10914 (DEBUG_EXCEPT): Use debug_printf.
10915
99f1bc6a
AB
109162020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10917
10918 * completer.c (class completion_tracker::completion_hash_entry)
10919 <hash_name>: New member function.
10920 (completion_tracker::discard_completions): New callback to hash a
10921 completion_hash_entry, pass this to htab_create_alloc.
10922
a0e9b532
JT
109232016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10924
10925 * windows-nat.c (windows_make_so): Warn rather than stopping with
10926 an error if realpath() fails.
10927
06ca5dd4
KR
109282020-04-14 Kamil Rytarowski <n54@gmx.com>
10929
10930 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10931 (nbsd_nat_target::info_proc): Add do_status.
10932
194d088f
TV
109332020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10934 Tom de Vries <tdevries@suse.de>
10935
10936 PR symtab/25718
10937 * psympriv.h (struct partial_symtab::read_symtab)
10938 (struct partial_symtab::expand_psymtab)
10939 (struct partial_symtab::read_dependencies): Update comments.
10940 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10941 read_symtab for includer.
10942 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10943 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10944 (struct dwarf2_include_psymtab::m_readin): Remove.
10945 (struct dwarf2_include_psymtab::includer): New member function.
10946 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10947
c1a66c06
TV
109482020-04-14 Tom de Vries <tdevries@suse.de>
10949
10950 PR symtab/25720
10951 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10952 with NULL symbol_matcher and lookup_name.
10953 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10954 and lookup_name.
10955 * dwarf2/read.c (dw2_expand_symtabs_matching)
10956 (dw2_debug_names_expand_symtabs_matching): Same.
10957 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10958 Make lookup_name a pointer. Update comment.
10959 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10960 lookup_name being a pointer.
10961 * symfile.c (expand_symtabs_matching): Same.
10962 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10963 * linespec.c (iterate_over_all_matching_symtabs): Same.
10964
400b5eca
TT
109652020-04-13 Tom Tromey <tom@tromey.com>
10966
10967 * run-on-main-thread.c: Update include.
10968 * unittests/main-thread-selftests.c: Update include.
10969 * tui/tui-win.c: Update include.
10970 * tui/tui-io.c: Update include.
10971 * tui/tui-interp.c: Update include.
10972 * tui/tui-hooks.c: Update include.
10973 * top.h: Update include.
10974 * top.c: Update include.
10975 * ser-base.c: Update include.
10976 * remote.c: Update include.
10977 * remote-notif.c: Update include.
10978 * remote-fileio.c: Update include.
10979 * record-full.c: Update include.
10980 * record-btrace.c: Update include.
10981 * python/python.c: Update include.
10982 * posix-hdep.c: Update include.
10983 * mingw-hdep.c: Update include.
10984 * mi/mi-main.c: Update include.
10985 * mi/mi-interp.c: Update include.
10986 * main.c: Update include.
10987 * linux-nat.c: Update include.
10988 * interps.c: Update include.
10989 * infrun.c: Update include.
10990 * inf-loop.c: Update include.
10991 * event-top.c: Update include.
10992 * event-loop.c: Move to ../gdbsupport/.
10993 * event-loop.h: Move to ../gdbsupport/.
10994 * async-event.h: Update include.
10995 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10996
93b54c8e
TT
109972020-04-13 Tom Tromey <tom@tromey.com>
10998
10999 * tui/tui-win.c: Include async-event.h.
11000 * remote.c: Include async-event.h.
11001 * remote-notif.c: Include async-event.h.
11002 * record-full.c: Include async-event.h.
11003 * record-btrace.c: Include async-event.h.
11004 * infrun.c: Include async-event.h.
11005 * event-top.c: Include async-event.h.
11006 * event-loop.h: Move some declarations to async-event.h.
11007 * event-loop.c: Don't include ser-event.h or top.h. Move some
11008 code to async-event.c.
11009 * async-event.h: New file.
11010 * async-event.c: New file.
11011 * Makefile.in (COMMON_SFILES): Add async-event.c.
11012 (HFILES_NO_SRCDIR): Add async-event.h.
11013
c1cd3163
TT
110142020-04-13 Tom Tromey <tom@tromey.com>
11015
11016 * utils.c (flush_streams): New function.
11017 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11018
29f2bf4f
TT
110192020-04-13 Tom Tromey <tom@tromey.com>
11020
11021 * event-loop.c (handle_file_event): Use warning, not
11022 printf_unfiltered.
11023
98029d02
TT
110242020-04-13 Tom Tromey <tom@tromey.com>
11025
11026 * event-loop.c: Include <chrono>.
11027
06cc9596
TT
110282020-04-13 Tom Tromey <tom@tromey.com>
11029
11030 * gdb_select.h: Move to ../gdbsupport/.
11031 * event-loop.c: Update include path.
11032 * top.c: Update include path.
11033 * ser-base.c: Update include path.
11034 * ui-file.c: Update include path.
11035 * ser-tcp.c: Update include path.
11036 * guile/scm-ports.c: Update include path.
11037 * posix-hdep.c: Update include path.
11038 * ser-unix.c: Update include path.
11039 * gdb_usleep.c: Update include path.
11040 * mingw-hdep.c: Update include path.
11041 * inflow.c: Update include path.
11042 * infrun.c: Update include path.
11043 * event-top.c: Update include path.
11044
8ae8e197
TT
110452020-04-13 Tom Tromey <tom@tromey.com>
11046
11047 * configure: Rebuild.
11048 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11049
58cf28e8
TT
110502020-04-13 Tom Tromey <tom@tromey.com>
11051
11052 * event-loop.h (start_event_loop): Don't declare.
11053 * event-loop.c (start_event_loop): Move...
11054 * main.c (start_event_loop): ...here. Now static.
11055
b7f999ae
SDJ
110562020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11057
11058 * MAINTAINERS: Update my email address.
11059
1085dfd4
KR
110602020-04-12 Kamil Rytarowski <n54@gmx.com>
11061
11062 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11063 IP_ALL.
11064
49d1d1f5
KR
110652020-04-12 Kamil Rytarowski <n54@gmx.com>
11066
11067 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11068 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11069
b4848d2a
KR
110702020-04-12 Kamil Rytarowski <n54@gmx.com>
11071
11072 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11073 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11074
51c133d5
KR
110752020-04-12 Kamil Rytarowski <n54@gmx.com>
11076
11077 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11078
54b8cbd0
KR
110792020-04-11 Kamil Rytarowski <n54@gmx.com>
11080
11081 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11082 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11083 (nbsd_nat_target::info_proc): New functions.
11084 * nbsd-nat.c (kinfo_get_vmmap): New function.
11085 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11086 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11087 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11088 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11089 functions.
11090 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11091 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11092 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11093 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11094 (KINFO_VME_FLAG_GROWS_DOWN): New.
11095
cf83625d
AS
110962020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11097
11098 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11099 bit shift.
11100
0c4311ab
TT
111012020-04-10 Tom Tromey <tromey@adacore.com>
11102
11103 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11104
3e65b3e9
TT
111052020-04-10 Tom Tromey <tromey@adacore.com>
11106
11107 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11108 separate debug files.
11109
13302e95
HD
111102020-04-10 Hannes Domani <ssbssa@yahoo.de>
11111
11112 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11113 Move to...
11114 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11115 ... here.
11116 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11117 Check for STATUS_WX86_BREAKPOINT.
11118 (windows_nat_target::wait): Same.
11119
bdfc1e8a
TV
111202020-04-10 Tom de Vries <tdevries@suse.de>
11121
11122 PR cli/25808
11123 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11124
f4460aec
SM
111252020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11126
11127 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11128 (Write After Approval): Remove Tom de Vries.
11129
a25198bb
BE
111302020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11131
11132 revert partially:
11133 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11134
aac66a4c
SM
11135 * buildsym.c (record_line): Fix undefined behavior and preserve
11136 lines at eof.
a25198bb 11137
206c98a6
KR
111382020-04-09 Kamil Rytarowski <n54@gmx.com>
11139
11140 * auxv.h (svr4_auxv_parse): New.
11141 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11142 and generic_auxv_parse.
11143 (svr4_auxv_parse): Add.
11144 * obsd-tdep.c: Include "auxv.h".
11145 (obsd_auxv_parse): Remove.
11146 (obsd_init_abi): Remove comment.
11147 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11148 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11149 * nbsd-tdep.c: Include "auxv.h".
11150 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11151
71fbdbaf
TT
111522020-04-08 Tom Tromey <tromey@adacore.com>
11153
11154 * nat/windows-nat.h (last_wait_event): Don't declare.
11155 (wait_for_debug_event): Update comment.
11156 * nat/windows-nat.c (last_wait_event): Now static.
11157
2c1d95e8
TT
111582020-04-08 Tom Tromey <tromey@adacore.com>
11159
11160 * windows-nat.c (wait_for_debug_event): Move to
11161 nat/windows-nat.c.
11162 * nat/windows-nat.h (wait_for_debug_event): Declare.
11163 * nat/windows-nat.c (wait_for_debug_event): Move from
11164 windows-nat.c. No longer static.
11165
d2977bc4
TT
111662020-04-08 Tom Tromey <tromey@adacore.com>
11167
11168 * windows-nat.c (get_windows_debug_event): Use
11169 fetch_pending_stop.
11170 * nat/windows-nat.h (fetch_pending_stop): Declare.
11171 * nat/windows-nat.c (fetch_pending_stop): New function.
11172
e758e19c
TT
111732020-04-08 Tom Tromey <tromey@adacore.com>
11174
11175 * windows-nat.c (windows_continue): Use matching_pending_stop and
11176 continue_last_debug_event.
11177 * nat/windows-nat.h (matching_pending_stop)
11178 (continue_last_debug_event): Declare.
11179 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11180 (matching_pending_stop, continue_last_debug_event): New
11181 functions.
11182
8d30e395
TT
111832020-04-08 Tom Tromey <tromey@adacore.com>
11184
11185 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11186 (handle_exception_result): Move to nat/windows-nat.h.
11187 (DEBUG_EXCEPTION_SIMPLE): Remove.
11188 (windows_nat::handle_ms_vc_exception): New function.
11189 (handle_exception): Move to nat/windows-nat.c.
11190 (get_windows_debug_event): Update.
11191 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11192 nat/windows-nat.c.
11193 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11194 (handle_exception_result): Move from windows-nat.c.
11195 (handle_exception): Declare.
11196 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11197 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11198 windows-nat.c.
11199
29de418d
TT
112002020-04-08 Tom Tromey <tromey@adacore.com>
11201
11202 * windows-nat.c (exception_count, event_count): Remove.
11203 (handle_exception, get_windows_debug_event)
11204 (do_initial_windows_stuff): Update.
11205
a816ba18
TT
112062020-04-08 Tom Tromey <tromey@adacore.com>
11207
11208 * windows-nat.c (windows_nat::handle_load_dll)
11209 (windows_nat::handle_unload_dll): Rename. No longer static.
11210 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11211 Declare.
11212
a00caa12
TT
112132020-04-08 Tom Tromey <tromey@adacore.com>
11214
11215 * complaints.h (stop_whining): Declare at top-level.
11216 (complaint): Don't declare stop_whining.
11217
d41b524f
TT
112182020-04-08 Tom Tromey <tromey@adacore.com>
11219
11220 * windows-nat.c (windows_nat::handle_output_debug_string):
11221 Rename. No longer static.
11222 * nat/windows-nat.h (handle_output_debug_string): Declare.
11223
3c76026d
TT
112242020-04-08 Tom Tromey <tromey@adacore.com>
11225
11226 * windows-nat.c (current_process_handle, current_process_id)
11227 (main_thread_id, last_sig, current_event, last_wait_event)
11228 (current_windows_thread, desired_stop_thread_id, pending_stops)
11229 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11230 (display_selectors, fake_create_process)
11231 (get_windows_debug_event): Update.
11232 * nat/windows-nat.h (current_process_handle, current_process_id)
11233 (main_thread_id, last_sig, current_event, last_wait_event)
11234 (current_windows_thread, desired_stop_thread_id, pending_stops)
11235 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11236 * nat/windows-nat.c (current_process_handle, current_process_id)
11237 (main_thread_id, last_sig, current_event, last_wait_event)
11238 (current_windows_thread, desired_stop_thread_id, pending_stops)
11239 (siginfo_er): New globals. Move from windows-nat.c.
11240
9d8679cc
TT
112412020-04-08 Tom Tromey <tromey@adacore.com>
11242
11243 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11244 (handle_load_dll): Update.
11245 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11246
28688adf
TT
112472020-04-08 Tom Tromey <tromey@adacore.com>
11248
11249 * windows-nat.c (enum thread_disposition_type): Move to
11250 nat/windows-nat.h.
11251 (windows_nat::thread_rec): Rename from thread_rec. No longer
11252 static.
11253 (windows_add_thread, windows_nat_target::fetch_registers)
11254 (windows_nat_target::store_registers, handle_exception)
11255 (windows_nat_target::resume, get_windows_debug_event)
11256 (windows_nat_target::get_tib_address)
11257 (windows_nat_target::thread_name)
11258 (windows_nat_target::thread_alive): Update.
11259 * nat/windows-nat.h (enum thread_disposition_type): Move from
11260 windows-nat.c.
11261 (thread_rec): Declare.
11262
4834dad0
TT
112632020-04-08 Tom Tromey <tromey@adacore.com>
11264
11265 * windows-nat.c: Add "using namespace".
11266 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11267 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11268
65bafd5b
TT
112692020-04-08 Tom Tromey <tromey@adacore.com>
11270
11271 * nat/windows-nat.h (struct windows_thread_info): Declare
11272 destructor.
11273 * nat/windows-nat.c (~windows_thread_info): New.
11274
0a4afda3
TT
112752020-04-08 Tom Tromey <tromey@adacore.com>
11276
11277 PR gdb/22992
11278 * windows-nat.c (current_event): Update comment.
11279 (last_wait_event, desired_stop_thread_id): New globals.
11280 (struct pending_stop): New.
11281 (pending_stops): New global.
11282 (windows_nat_target) <stopped_by_sw_breakpoint>
11283 <supports_stopped_by_sw_breakpoint>: New methods.
11284 (windows_fetch_one_register): Add assertions. Adjust PC.
11285 (windows_continue): Handle pending stops. Suspend other threads
11286 when stepping. Use last_wait_event
11287 (wait_for_debug_event): New function.
11288 (get_windows_debug_event): Use wait_for_debug_event. Handle
11289 pending stops. Queue spurious stops.
11290 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11291 (windows_nat_target::kill): Use wait_for_debug_event.
11292 * nat/windows-nat.h (struct windows_thread_info)
11293 <stopped_at_software_breakpoint>: New field.
11294 * nat/windows-nat.c (windows_thread_info::resume): Clear
11295 stopped_at_software_breakpoint.
11296
8e61ebec
TT
112972020-04-08 Tom Tromey <tromey@adacore.com>
11298
11299 * windows-nat.c (enum thread_disposition_type): New.
11300 (thread_rec): Replace "get_context" parameter with "disposition";
11301 change type.
11302 (windows_add_thread, windows_nat_target::fetch_registers)
11303 (windows_nat_target::store_registers, handle_exception)
11304 (windows_nat_target::resume, get_windows_debug_event)
11305 (windows_nat_target::get_tib_address)
11306 (windows_nat_target::thread_name)
11307 (windows_nat_target::thread_alive): Update.
11308
98a03287
TT
113092020-04-08 Tom Tromey <tromey@adacore.com>
11310
11311 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11312 (windows_continue): Use windows_continue::resume.
11313 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11314 resume>: Declare new methods.
11315 * nat/windows-nat.c: New file.
11316 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11317
7c7411bc
TT
113182020-04-08 Tom Tromey <tromey@adacore.com>
11319
11320 * windows-nat.c (windows_add_thread, windows_delete_thread)
11321 (windows_nat_target::fetch_registers)
11322 (windows_nat_target::store_registers, fake_create_process)
11323 (windows_nat_target::resume, windows_nat_target::resume)
11324 (get_windows_debug_event, windows_nat_target::wait)
11325 (windows_nat_target::pid_to_str)
11326 (windows_nat_target::get_tib_address)
11327 (windows_nat_target::get_ada_task_ptid)
11328 (windows_nat_target::thread_name)
11329 (windows_nat_target::thread_alive): Use lwp, not tid.
11330
2950fdf7
TT
113312020-04-08 Tom Tromey <tromey@adacore.com>
11332
11333 * windows-nat.c (handle_exception)
11334 (windows_nat_target::thread_name): Update.
11335 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11336 <name>: Now unique_xmalloc_ptr.
11337
62fe396b
TT
113382020-04-08 Tom Tromey <tromey@adacore.com>
11339
11340 * windows-nat.c (thread_rec)
11341 (windows_nat_target::fetch_registers): Update.
11342 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11343 Update comment.
11344 <debug_registers_changed, reload_context>: Now bool.
11345
e9534bd2
TT
113462020-04-08 Tom Tromey <tromey@adacore.com>
11347
11348 * windows-nat.c (windows_add_thread): Use new.
11349 (windows_init_thread_list, windows_delete_thread): Use delete.
11350 (get_windows_debug_event): Update.
11351 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11352 destructor, and initializers.
11353
ae1f8880
TT
113542020-04-08 Tom Tromey <tromey@adacore.com>
11355
11356 * windows-nat.c (struct windows_thread_info): Remove.
11357 * nat/windows-nat.h: New file.
11358
55a1e039
TT
113592020-04-08 Tom Tromey <tromey@adacore.com>
11360
11361 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11362 (thread_rec, windows_add_thread, windows_delete_thread)
11363 (windows_continue): Update.
11364
93366324
TT
113652020-04-08 Tom Tromey <tromey@adacore.com>
11366
11367 * windows-nat.c (struct windows_thread_info): Remove typedef.
11368 (thread_head): Remove.
11369 (thread_list): New global.
11370 (thread_rec, windows_add_thread, windows_init_thread_list)
11371 (windows_delete_thread, windows_continue): Update.
11372
0f2265e2
SM
113732020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11374
11375 * windows-tdep.h (windows_init_abi): Add comment.
11376 (cygwin_init_abi): New declaration.
11377 * windows-tdep.c: Split signal enumeration in two, one for
11378 Windows and one for Cygwin.
11379 (windows_gdb_signal_to_target): Only deal with signal of the
11380 Windows OS ABI.
11381 (cygwin_gdb_signal_to_target): New function.
11382 (windows_init_abi): Rename to windows_init_abi_common, don't set
11383 gdb_signal_to_target gdbarch method. Add new new function with
11384 this name.
11385 (cygwin_init_abi): New function.
11386 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11387 comment. Don't call windows_init_abi.
11388 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11389 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11390 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11391 i386_windows_init_abi_common, don't call windows_init_abi. Add
11392 a new function of this name.
11393 (i386_cygwin_init_abi): New function.
11394 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11395 OS ABI Cygwin.
11396
3810f182
SM
113972020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11398
11399 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11400 parameter.c.
11401 (dwarf2_read_gdb_index): Update.
11402
063f8e80
KR
114032020-04-07 Kamil Rytarowski <n54@gmx.com>
11404
11405 * nbsd-tdep.c: Include "objfiles.h".
11406 (nbsd_skip_solib_resolver): New.
11407 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11408
85a9510c 114092020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11410
11411 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11412 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11413 with DW_LLE_base_addressx are being emitted in DWARFv5.
11414 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11415 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11416 unsigned integer.
11417
9fc3eaae 114182020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11419
11420 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11421 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11422 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11423 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11424 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11425 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11426 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11427
11428
41144253 114292020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11430
11431 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11432 (read_loclist_index): New function definition.
11433 (lookup_loclist_base): New function definition.
11434 (read_loclist_header): New function definition.
11435 (dwarf2_cu): Add loclist_base and loclist_header field.
11436 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11437 (read_full_die_1): Read the value of DW_AT_loclists_base.
11438 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11439 (read_attribute_value): Handle DW_FORM_loclistx.
11440 (skip_one_die): Handle DW_FORM_loclistx.
11441 (loclist_header): New structure declaration.
11442 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11443
9f4e76a4
SM
114442020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11445
11446 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11447 constructor. Remove `addr` parameter from other constructor and
11448 add `per_cu` parameter.
11449 * dwarf2/read.c (create_partial_symtab): Update.
11450
25c11aca
TV
114512020-04-07 Tom de Vries <tdevries@suse.de>
11452
11453 PR symtab/25796
11454 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11455 (partial_die_info::fixup): Inherit has_const_value.
11456
5707e24b
TV
114572020-04-07 Tom de Vries <tdevries@suse.de>
11458
11459 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11460 symbols without address.
11461
05f00e22
KR
114622020-04-06 Kamil Rytarowski <n54@gmx.com>
11463
11464 * nbsd-nat.h (struct thread_info): Add forward declaration.
11465 (nbsd_nat_target::thread_alive): Add.
11466 (nbsd_nat_target::thread_name): Likewise.
11467 (nbsd_nat_target::update_thread_list): Likewise.
11468 (update_thread_list::post_attach): Likewise.
11469 (post_attach::pid_to_str): Likewise.
11470 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11471 (nbsd_thread_lister): Add.
11472 (nbsd_nat_target::thread_alive): Likewise.
11473 (nbsd_nat_target::thread_name): Likewise.
11474 (nbsd_add_threads): Likewise.
11475 (update_thread_list::post_attach): Likewise.
11476 (nbsd_nat_target::update_thread_list): Likewise.
11477 (post_attach::pid_to_str): Likewise.
11478
6ee448cc
TT
114792020-04-06 Tom Tromey <tromey@adacore.com>
11480
11481 * ada-valprint.c (print_variant_part): Extract the variant field.
11482 (print_field_values): Use the field as the outer value when
11483 recursing.
11484
dea34e8c
TT
114852020-04-06 Tom Tromey <tromey@adacore.com>
11486
11487 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11488 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11489 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11490 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11491 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11492
93689ce9
TT
114932020-04-06 Tom Tromey <tromey@adacore.com>
11494
11495 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11496 TYPE_CODE_ERROR.
11497
79743962
KR
114982020-04-06 Kamil Rytarowski <n54@gmx.com>
11499
11500 * nbsd-tdep.c: Include "gdbarch.h".
11501 Define enum with NetBSD signal numbers.
11502 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11503 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11504 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11505 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11506 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11507 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11508 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11509 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11510 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11511 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11512 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11513 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11514
9e7c9a03
HD
115152020-04-03 Hannes Domani <ssbssa@yahoo.de>
11516
11517 PR gdb/25325
11518 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11519
d9e49b61
TT
115202020-04-03 Tom Tromey <tromey@adacore.com>
11521
11522 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11523 Read constant block.
11524
e0fc5c3f
SM
115252020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11526
11527 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11528 (gdb_bfd_get_full_section_contents): New declaration.
11529 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11530 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11531 gdb_bfd_get_full_section_contents.
11532
e2ff18a0
SM
115332020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11534
11535 * exec.c (build_section_table): Replace internal_error with
11536 gdb_assert.
11537 (section_table_xfer_memory_partial): Likewise.
11538 * mdebugread.c (parse_partial_symbols): Likewise.
11539 * psymtab.c (lookup_partial_symbol): Likewise.
11540 * utils.c (wrap_here): Likewise.
11541
0830d301
TT
115422020-04-02 Tom Tromey <tromey@adacore.com>
11543
11544 * f-lang.c (build_fortran_types): Use arch_type to initialize
11545 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11546
e7da7f8f
TT
115472020-04-02 Tom Tromey <tromey@adacore.com>
11548
11549 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11550 of attributes.
11551
c90d28ac
AB
115522020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11553 Bernd Edlinger <bernd.edlinger@hotmail.de>
11554 Tom Tromey <tromey@adacore.com>
11555
11556 * buildsym.c (buildsym_compunit::record_line): Remove
11557 deduplication code.
11558
1aa98955
TV
115592020-04-02 Tom de Vries <tdevries@suse.de>
11560
11561 PR ada/24671
11562 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11563
d3214198
TV
115642020-04-02 Tom de Vries <tdevries@suse.de>
11565
11566 * dwarf2/read.c (dwarf2_gdb_index_functions,
11567 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11568 NULL.
11569 * psymtab.c (psym_lookup_global_symbol_language): New function.
11570 (psym_functions): Init psym_lookup_global_symbol_language with
11571 psym_lookup_global_symbol_language.
11572 * symfile-debug.c (debug_sym_quick_functions): Init
11573 lookup_global_symbol_language with NULL.
11574 * symfile.c (set_initial_language): Remove fixme comment.
11575 * symfile.h (struct quick_symbol_functions): Add
11576 lookup_global_symbol_language.
11577 * symtab.c (find_quick_global_symbol_language): New function.
11578 (find_main_name): Use find_quick_global_symbol_language.
11579
2836752f
SM
115802020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11581
11582 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11583
64dc2d4b
BE
115842020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11585
11586 * buildsym.c (record_line): Fix undefined behavior and preserve
11587 lines at eof.
11588
bbe3dc41
BE
115892020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11590
11591 * buildsym.c (record_line): Fix the resizing condition.
11592
6b4a335b
TT
115932020-04-01 Tom Tromey <tom@tromey.com>
11594
11595 * value.h (value_literal_complex): Add comment.
11596 * valops.c (value_literal_complex): Refer to value.h.
11597
3638a098
TT
115982020-04-01 Tom Tromey <tom@tromey.com>
11599
11600 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11601 (scalar_type): New rule, from typebase.
11602 (typebase): Use scalar_type. Recognize complex types.
11603 (field_name): Handle FLOAT_KEYWORD.
11604 (ident_tokens): Add _Complex and __complex__.
11605
c34e8714
TT
116062020-04-01 Tom Tromey <tom@tromey.com>
11607
11608 PR exp/25299:
11609 * valarith.c (promotion_type, complex_binop): New functions.
11610 (scalar_binop): Handle complex numbers. Use promotion_type.
11611 (value_pos, value_neg, value_complement): Handle complex numbers.
11612
fa649bb7
TT
116132020-04-01 Tom Tromey <tom@tromey.com>
11614
11615 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11616 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11617 (parse_number): Handle complex numbers.
11618
981c08ce
TT
116192020-04-01 Tom Tromey <tom@tromey.com>
11620
11621 * c-valprint.c (c_decorations): Change complex suffix to "i".
11622
4c99290d
TT
116232020-04-01 Tom Tromey <tom@tromey.com>
11624
11625 * valprint.c (generic_value_print_complex): Use accessors.
11626 * value.h (value_real_part, value_imaginary_part): Declare.
11627 * valops.c (value_real_part, value_imaginary_part): New
11628 functions.
11629 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11630
5b930b45
TT
116312020-04-01 Tom Tromey <tom@tromey.com>
11632
11633 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11634 (read_range_type): Update.
11635 * mdebugread.c (basic_type): Update.
11636 * go-lang.c (build_go_types): Use init_complex_type.
11637 * gdbtypes.h (struct main_type) <complex_type>: New member.
11638 (init_complex_type): Update.
11639 (arch_complex_type): Don't declare.
11640 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11641 Make name if none given. Use alloc_type_copy. Look for cached
11642 complex type.
11643 (arch_complex_type): Remove.
11644 (gdbtypes_post_init): Use init_complex_type.
11645 * f-lang.c (build_fortran_types): Use init_complex_type.
11646 * dwarf2/read.c (read_base_type): Update.
11647 * d-lang.c (build_d_types): Use init_complex_type.
11648 * ctfread.c (read_base_type): Update.
11649
53cccef1
TBA
116502020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11651
11652 * infrun.c (stop_all_threads): Update assertion, plus when
11653 stopping threads, take into account that we might be trying
11654 to stop an all-stop target.
11655 (stop_waiting): Call 'stop_all_threads' if there exists a
11656 non-stop target.
11657
a0714d30
TBA
116582020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11659
11660 * target.h (exists_non_stop_target): New function declaration.
11661 * target.c (exists_non_stop_target): New function.
11662
60e22c1e
HD
116632020-04-01 Hannes Domani <ssbssa@yahoo.de>
11664
11665 PR gdb/24789
11666 * eval.c (is_integral_or_integral_reference): New function.
11667 (evaluate_subexp_standard): Allow integer references in
11668 pointer arithmetic.
11669
e139a727
TBA
116702020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11671
11672 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11673 check for no ptid in the stop reply when the target is non-stop.
11674
e0802d59
TT
116752020-04-01 Tom Tromey <tromey@adacore.com>
11676
11677 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11678 "name" parameter to rvalue reference. Initialize m_name_holder.
11679 <lookup_name_info>: New overloads.
11680 <name>: Return gdb::string_view.
11681 <c_str>: New method.
11682 <make_ignore_params>: Update.
11683 <search_name_hash>: Update.
11684 <language_lookup_name>: Return const char *.
11685 <m_name>: Change type.
11686 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11687 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11688 (lookup_name_info::match_any): Update.
11689 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11690 Update.
11691 * minsyms.c (linkage_name_str): Update.
11692 * language.c (default_symbol_name_matcher): Update.
11693 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11694 Update.
11695 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11696 (ada_lookup_name_info::ada_lookup_name_info): Update.
11697 (literal_symbol_name_matcher): Update.
11698
8c072cb6
TT
116992020-04-01 Tom Tromey <tromey@adacore.com>
11700
11701 * psymtab.c (psymtab_search_name): Remove function.
11702 (psym_lookup_symbol): Create search name and lookup name here.
11703 (lookup_partial_symbol): Remove "name" parameter; add
11704 lookup_name.
11705 (psym_expand_symtabs_for_function): Update.
11706
6f29a534
TT
117072020-03-31 Joel Jones <joelkevinjones@gmail.com>
11708
11709 PR tui/25597:
11710 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11711
af62665e
TT
117122020-03-31 Tom Tromey <tromey@adacore.com>
11713
11714 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11715 memcpy.
11716
d1a89da5
NC
117172020-03-30 Nelson Chu <nelson.chu@sifive.com>
11718
11719 * features/riscv/32bit-csr.xml: Regenerated.
11720 * features/riscv/64bit-csr.xml: Regenerated.
11721
d8af9068
TT
117222020-03-30 Tom Tromey <tromey@adacore.com>
11723
11724 * ada-valprint.c (print_variant_part): Update.
11725 * ada-lang.h (ada_which_variant_applies): Update.
11726 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11727 outer_valaddr parameters; replace with "outer" value parameter.
11728 (to_fixed_variant_branch_type): Update.
11729
227c0bf4
PFC
117302020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11731
11732 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11733 <list>. Remove inclusion of observable.h.
11734 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11735 (struct arch_lwp_info): New struct.
11736 (class ppc_linux_dreg_interface): New class.
11737 (struct ppc_linux_process_info): New struct.
11738 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11739 <low_new_clone, low_forget_process, low_prepare_to_resume>
11740 <copy_thread_dreg_state, mark_thread_stale>
11741 <mark_debug_registers_changed, register_hw_breakpoint>
11742 <clear_hw_breakpoint, register_wp, clear_wp>
11743 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11744 <num_memory_accesses, get_trigger_type>
11745 <create_watchpoint_request, hwdebug_point_cmp>
11746 <init_arch_lwp_info, get_arch_lwp_info>
11747 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11748 methods.
11749 <struct ptid_hash>: New inner struct.
11750 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11751 members.
11752 (saved_dabr_value, hwdebug_info, max_slots_number)
11753 (struct hw_break_tuple, struct thread_points, ppc_threads)
11754 (have_ptrace_hwdebug_interface)
11755 (hwdebug_find_thread_points_by_tid)
11756 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11757 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11758 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11759 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11760 use m_dreg_interface.
11761 (hwdebug_point_cmp): Change to...
11762 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11763 reference arguments instead of pointers.
11764 (ppc_linux_nat_target::ranged_break_num_registers): Use
11765 m_dreg_interface.
11766 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11767 m_dreg_interface. Call register_hw_breakpoint.
11768 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11769 m_dreg_interface. Call clear_hw_breakpoint.
11770 (get_trigger_type): Change to...
11771 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11772 comment.
11773 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11774 use m_dreg_interface. Call register_hw_breakpoint.
11775 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11776 use m_dreg_interface. Call clear_hw_breakpoint.
11777 (can_use_watchpoint_cond_accel): Change to...
11778 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11779 method. Update comment, use m_dreg_interface and
11780 m_process_info.
11781 (calculate_dvc): Change to...
11782 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11783 m_dreg_interface.
11784 (num_memory_accesses): Change to...
11785 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11786 (check_condition): Change to...
11787 (ppc_linux_nat_target::check_condition): ...this method.
11788 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11789 comment, use m_dreg_interface.
11790 (create_watchpoint_request): Change to...
11791 (ppc_linux_nat_target::create_watchpoint_request): ...this
11792 method. Use m_dreg_interface.
11793 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11794 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11795 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11796 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11797 (ppc_linux_nat_target::low_forget_process)
11798 (ppc_linux_nat_target::low_new_fork)
11799 (ppc_linux_nat_target::low_new_clone)
11800 (ppc_linux_nat_target::low_delete_thread)
11801 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11802 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11803 only call mark_thread_stale.
11804 (ppc_linux_thread_exit): Remove.
11805 (ppc_linux_nat_target::stopped_data_address): Change to...
11806 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11807 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11808 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11809 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11810 comment. Call low_stopped_data_address.
11811 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11812 m_dreg_interface.
11813 (ppc_linux_nat_target::masked_watch_num_registers): Use
11814 m_dreg_interface.
11815 (ppc_linux_nat_target::copy_thread_dreg_state)
11816 (ppc_linux_nat_target::mark_thread_stale)
11817 (ppc_linux_nat_target::mark_debug_registers_changed)
11818 (ppc_linux_nat_target::register_hw_breakpoint)
11819 (ppc_linux_nat_target::clear_hw_breakpoint)
11820 (ppc_linux_nat_target::register_wp)
11821 (ppc_linux_nat_target::clear_wp)
11822 (ppc_linux_nat_target::init_arch_lwp_info)
11823 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11824 (_initialize_ppc_linux_nat): Remove observer callback.
11825
4db10d8f
PFC
118262020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11827
11828 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11829 (ppc_linux_nat_target::auxv_parse)
11830 (ppc_linux_nat_target::read_description)
11831 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11832 Move up.
11833
1310c1b0
PFC
118342020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11835
11836 * linux-nat.h (low_new_clone): New method.
11837 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11838
69b037c3
SM
118392020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11840
11841 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11842 (dbx_expand_psymtab): ... this.
11843 (start_psymtab): Update.
11844 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11845 (mdebug_expand_psymtab): ... this.
11846 (parse_partial_symbols): Update.
11847 (new_psymtab): Update.
11848 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11849 (xcoff_expand_psymtab): ... this.
11850 (xcoff_start_psymtab): Update.
11851
48993951
SM
118522020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11853
11854 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11855 <expand_dependencies>: ... this.
11856 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11857 (partial_symtab::expand_dependencies): ... this.
11858 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11859 Update.
11860 (dwarf2_psymtab::expand_psymtab): Update.
11861 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11862 * mdebugread.c (psymtab_to_symtab_1): Update.
11863 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11864
3ad83046
SM
118652020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11866
11867 * psympriv.h (discard_psymtab): Remove.
11868 * dbxread.c (dbx_end_psymtab): Update.
11869 * xcoffread.c (xcoff_end_psymtab): Update.
11870
4d1b9ab6
TT
118712020-03-28 Tom Tromey <tom@tromey.com>
11872
11873 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11874 comment.
11875
f1749218
TT
118762020-03-28 Tom Tromey <tom@tromey.com>
11877
11878 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11879
ebea7626
HD
118802020-03-27 Hannes Domani <ssbssa@yahoo.de>
11881
11882 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11883
a879b4d5
JB
118842020-03-26 John Baldwin <jhb@FreeBSD.org>
11885
11886 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11887
0826b30a
TT
118882020-03-26 Tom Tromey <tom@tromey.com>
11889
11890 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11891 (mark_common_block_symbol_computed, read_tag_string_type)
11892 (attr_to_dynamic_prop, read_subrange_type): Update.
11893 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11894 to be methods on struct attribute.
11895 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11896 (read_call_site_scope, partial_die_info::read)
11897 (partial_die_info::read, lookup_die_type, follow_die_ref):
11898 Update.
11899 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11900 from dwarf2_get_ref_die_offset.
11901 (attribute::constant_value): New method, from
11902 dwarf2_get_attr_constant_value.
11903 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11904 Declare method.
11905 <constant_value>: New method.
11906
2b2558bf
TT
119072020-03-26 Tom Tromey <tom@tromey.com>
11908
11909 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11910 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11911 (dwarf_type_encoding_name): Move to stringify.c.
11912 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11913 * dwarf2/stringify.c: New file.
11914 * dwarf2/stringify.h: New file.
11915
eeb64781
TT
119162020-03-26 Tom Tromey <tom@tromey.com>
11917
11918 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11919 Rewrite.
11920
a39fdb41
TT
119212020-03-26 Tom Tromey <tom@tromey.com>
11922
11923 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11924 methods.
11925 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11926 (lookup_ranges_base): Likewise.
11927 (read_cutu_die_from_dwo, read_full_die_1): Update.
11928
436c571c
TT
119292020-03-26 Tom Tromey <tom@tromey.com>
11930
11931 * dwarf2/read.c (read_import_statement, read_file_scope)
11932 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11933 (read_lexical_block_scope, read_call_site_scope)
11934 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11935 (handle_struct_member_die, process_structure_scope)
11936 (update_enumeration_type_from_children)
11937 (process_enumeration_scope, read_array_type, read_common_block)
11938 (read_namespace, read_module, read_subroutine_type): Update.
11939 (sibling_die): Remove.
11940
052c8bb8
TT
119412020-03-26 Tom Tromey <tom@tromey.com>
11942
11943 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11944 (build_type_psymtabs_reader, read_structure_type)
11945 (read_enumeration_type, read_full_die_1): Update.
11946 (dwarf2_attr_no_follow): Move to die.h.
11947 * dwarf2/die.h (struct die_info) <attr>: New method.
11948
2b24b6e4
TT
119492020-03-26 Tom Tromey <tom@tromey.com>
11950
11951 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11952 <base_address>: Now an optional.
11953 (dwarf2_find_base_address, dwarf2_rnglists_process)
11954 (dwarf2_ranges_process, fill_in_loclist_baton)
11955 (dwarf2_symbol_mark_computed): Update.
11956
c2d50fd0
TT
119572020-03-26 Tom Tromey <tom@tromey.com>
11958
11959 * dwarf2/read.c (struct die_info): Move to die.h.
11960 * dwarf2/die.h: New file.
11961
0df7ad3a
TT
119622020-03-26 Tom Tromey <tom@tromey.com>
11963
11964 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11965 * dwarf2/read.c
11966 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11967 Move to line-header.c.
11968 (read_checked_initial_length_and_offset, read_formatted_entries):
11969 Likewise.
11970 (dwarf_decode_line_header): Split into two.
11971 * dwarf2/line-header.c
11972 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11973 Move from read.c.
11974 (read_checked_initial_length_and_offset, read_formatted_entries):
11975 Likewise.
11976 (dwarf_decode_line_header): New function, split from read.c.
11977
86c0bb4c
TT
119782020-03-26 Tom Tromey <tom@tromey.com>
11979
11980 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11981 Declare method.
11982 * dwarf2/read.c (read_attribute_value): Update.
11983 (dwarf2_per_objfile::read_line_string): Rename from
11984 read_indirect_line_string.
11985 (read_formatted_entries): Update.
11986
2ef46c2f
TT
119872020-03-26 Tom Tromey <tom@tromey.com>
11988
11989 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11990 variable.
11991
4f9c1eda
TT
119922020-03-26 Tom Tromey <tom@tromey.com>
11993
11994 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11995 const.
11996 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11997 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11998 parameter const.
11999
5a0e026f
TT
120002020-03-26 Tom Tromey <tom@tromey.com>
12001
12002 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12003 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12004 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12005 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12006
8844c11b
TT
120072020-03-26 Tom Tromey <tom@tromey.com>
12008
12009 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12010 file_names_size, file_full_name, file_file_name>: Use const.
12011 <file_name_at, file_names>: Add const overload.
12012 * dwarf2/line-header.c (line_header::file_file_name)
12013 (line_header::file_full_name): Update.
12014
c90ec28a
TT
120152020-03-26 Tom Tromey <tom@tromey.com>
12016
12017 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12018 (macro_start_file, consume_improper_spaces)
12019 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12020 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12021 (dwarf_decode_macros): Move to macro.c.
12022 * dwarf2/macro.c: New file.
12023 * dwarf2/macro.h: New file.
12024 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12025
4f44ae6c
TT
120262020-03-26 Tom Tromey <tom@tromey.com>
12027
12028 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12029 method.
12030 * dwarf2/section.c: New method. From
12031 read_indirect_string_at_offset_from.
12032 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12033 (read_indirect_string_at_offset_from): Move to section.c.
12034 (read_indirect_string_at_offset): Rewrite.
12035 (read_indirect_line_string_at_offset): Remove.
12036 (read_indirect_string, read_indirect_line_string)
12037 (dwarf_decode_macro_bytes): Update.
12038
a0194fa8
TT
120392020-03-26 Tom Tromey <tom@tromey.com>
12040
12041 * dwarf2/section.h (struct dwarf2_section_info)
12042 <overload_complaint>: Declare.
12043 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12044 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12045 Rename from dwarf2_section_buffer_overflow_complaint.
12046 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12047 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12048
3d27bbdb
TT
120492020-03-26 Tom Tromey <tom@tromey.com>
12050
12051 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12052 Declare.
12053 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12054 Move from read.c.
12055 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12056 to section.c.
12057
9eac9650
TT
120582020-03-26 Tom Tromey <tom@tromey.com>
12059
12060 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12061
bf80d710
TT
120622020-03-26 Tom Tromey <tom@tromey.com>
12063
12064 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12065 "builder".
12066 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12067 parameter.
12068 (dwarf_decode_macros): Update.
12069
0314b390
TT
120702020-03-26 Tom Tromey <tom@tromey.com>
12071
12072 * dwarf2/read.c (read_attribute_value): Update.
12073 (read_indirect_string_from_dwz): Move to dwz.c; change into
12074 method.
12075 (dwarf_decode_macro_bytes): Update.
12076 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12077 * dwarf2/dwz.c: New file.
12078 * Makefile.in (COMMON_SFILES): Add dwz.c.
12079
9fda78b6
TT
120802020-03-26 Tom Tromey <tom@tromey.com>
12081
12082 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12083 * dwarf2/read.c: Add include.
12084 * dwarf2/index-write.c: Add include.
12085 * dwarf2/index-cache.c: Add include.
12086 * dwarf2/dwz.h: New file.
12087
33aa3c10
TT
120882020-03-25 Tom Tromey <tom@tromey.com>
12089
12090 * compile/compile-object-load.c (get_out_value_type): Mention
12091 correct symbol name in error message.
12092
d503b685
HD
120932020-03-25 Hannes Domani <ssbssa@yahoo.de>
12094
12095 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12096
7b1eff95
TV
120972020-03-25 Tom de Vries <tdevries@suse.de>
12098
12099 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12100 * symmisc.c (dump_symtab_1): Print user and includes fields.
12101 (maintenance_info_symtabs): Same.
12102
dd895392
AB
121032020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12104
12105 PR gdb/25534
12106 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12107 (riscv_regcache_cooked_write): New function.
12108 (riscv_push_dummy_call): Use new function.
12109 (riscv_return_value): Likewise.
12110
5ab2fbf1
SM
121112020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12112
12113 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12114 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12115 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12116 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12117 * infrun.c (follow_fork): Likewise.
12118 (follow_fork_inferior): Likewise.
12119 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12120 * linux-nat.h (class linux_nat_target): Likewise.
12121 * remote.c (class remote_target) <follow_fork>: Likewise.
12122 (remote_target::follow_fork): Likewise.
12123 * target-delegates.c: Re-generate.
12124 * target.c (default_follow_fork): Likewise.
12125 (target_follow_fork): Likewise.
12126 * target.h (struct target_ops) <follow_fork>: Likewise.
12127 (target_follow_fork): Likewise.
12128
a64fafb5
TV
121292020-03-24 Tom de Vries <tdevries@suse.de>
12130
12131 * psymtab.c (maintenance_info_psymtabs): Print user field.
12132
fe26d3a3
TT
121332020-03-20 Tom Tromey <tromey@adacore.com>
12134
12135 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12136 const.
12137 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12138 const.
12139
c884cc46
SM
121402020-03-20 Simon Marchi <simon.marchi@efficios.com>
12141
12142 * ptrace.m4: Don't check for ptrace declaration.
12143 * config.in: Re-generate.
12144 * configure: Re-generate.
12145 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12146 not defined.
12147
1ff700c2
KR
121482020-03-20 Kamil Rytarowski <n54@gmx.com>
12149
12150 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12151 `PTRACE_TYPE_RET'.
12152 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12153 * sparc-nat.c (gdb_ptrace): Likewise.
12154 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12155
f7d4f0b1
TT
121562020-03-20 Tom Tromey <tromey@adacore.com>
12157
12158 * c-exp.y (lex_one_token): Fix assert.
12159
f67210ff
TT
121602020-03-20 Tom Tromey <tromey@adacore.com>
12161
12162 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12163 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12164 strncpy call.
12165
1773be9e
TT
121662020-03-20 Tom Tromey <tromey@adacore.com>
12167
12168 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12169
70304be9
TT
121702020-03-20 Tom Tromey <tromey@adacore.com>
12171
12172 * ada-valprint.c (print_variant_part): Remove parameters; switch
12173 to value-based API.
12174 (print_field_values): Likewise.
12175 (ada_val_print_struct_union): Likewise.
12176 (ada_value_print_1): Update.
12177
9faa006d
KR
121782020-03-20 Kamil Rytarowski <n54@gmx.com>
12179
12180 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12181 nbsd_nat_target instead of inf_ptrace_target.
12182 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12183 nbsd_nat_target.
12184
4a90f062
KR
121852020-03-20 Kamil Rytarowski <n54@gmx.com>
12186
12187 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12188 it to the ptrace call.
12189 * (store_registers): Likewise.
12190
121912020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12192
12193 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12194 it to the ptrace call.
12195 * (store_registers): Likewise.
12196
2d07da27
LM
121972020-03-19 Luis Machado <luis.machado@linaro.org>
12198
12199 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12200 valid, fetch vg value from ptrace.
12201
f09db380
KR
122022020-03-19 Kamil Rytarowski <n54@gmx.com>
12203 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12204 * inf-ptrace.c: Likewise.
12205 * (gdb_ptrace): Add.
12206 * (inf_ptrace_target::resume): Update.
12207 * (inf_ptrace_target::xfer_partial): Likewise.
12208 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12209 * (inf_ptrace_peek_poke): Update.
12210
fcc7376e
KR
122112020-03-19 Kamil Rytarowski <n54@gmx.com>
12212
12213 * x86-bsd-nat.c (gdb_ptrace): New.
12214 * (x86bsd_dr_set): Add new argument `ptid'.
12215 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12216 x86bsd_dr_set_addr): Update.
12217
cada5fc9
AB
122182020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12219
12220 * remote.c (remote_target::process_stop_reply): Handle events for
12221 all threads differently.
12222
19a2740f
AB
122232020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12224
12225 * completer.c (completion_tracker::remove_completion): Define new
12226 function.
12227 * completer.h (completion_tracker::remove_completion): Declare new
12228 function.
12229 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12230 when adding a C++ function symbol.
12231
724fd9ba
AB
122322020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12233
12234 * completer.c (completion_tracker::completion_hash_entry): Define
12235 new class.
12236 (advance_to_filename_complete_word_point): Call
12237 recompute_lowest_common_denominator.
12238 (completion_tracker::completion_tracker): Call discard_completions
12239 to setup the hash table.
12240 (completion_tracker::discard_completions): Allow for being called
12241 from the constructor, pass new equal function, and element deleter
12242 when constructing the hash table. Initialise new class member
12243 variables.
12244 (completion_tracker::maybe_add_completion): Remove use of
12245 m_entries_vec, and store more information into m_entries_hash.
12246 (completion_tracker::recompute_lcd_visitor): New function, most
12247 content taken from...
12248 (completion_tracker::recompute_lowest_common_denominator):
12249 ...here, this now just visits each item in the hash calling the
12250 above visitor.
12251 (completion_tracker::build_completion_result): Remove use of
12252 m_entries_vec, call recompute_lowest_common_denominator.
12253 * completer.h (completion_tracker::have_completions): Remove use
12254 of m_entries_vec.
12255 (completion_tracker::completion_hash_entry): Declare new class.
12256 (completion_tracker::recompute_lowest_common_denominator): Change
12257 function signature.
12258 (completion_tracker::recompute_lcd_visitor): Declare new function.
12259 (completion_tracker::m_entries_vec): Delete.
12260 (completion_tracker::m_entries_hash): Initialize to NULL.
12261 (completion_tracker::m_lowest_common_denominator_valid): New
12262 member variable.
12263 (completion_tracker::m_lowest_common_denominator_max_length): New
12264 member variable.
12265
5a82b8a1
KR
122662020-03-17 Kamil Rytarowski <n54@gmx.com>
12267
12268 * regformats/regdef.h: Put reg in gdb namespace.
12269
fb516a69
KR
122702020-03-17 Kamil Rytarowski <n54@gmx.com>
12271
12272 * i386-bsd-nat.c (gdb_ptrace): New.
12273 * (i386bsd_fetch_inferior_registers,
12274 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12275 * (i386bsd_fetch_inferior_registers,
12276 i386bsd_store_inferior_registers) Use gdb_ptrace.
12277
1c0aa1fb
KR
122782020-03-17 Kamil Rytarowski <n54@gmx.com>
12279
12280 * amd64-bsd-nat.c (gdb_ptrace): New.
12281 * (amd64bsd_fetch_inferior_registers,
12282 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12283 * (amd64bsd_fetch_inferior_registers,
12284 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12285
5ccd2fb7
KR
122862020-03-17 Kamil Rytarowski <n54@gmx.com>
12287
12288 * user-regs.c (user_reg::read): Rename to...
12289 (user_reg::xread): ...this.
12290 * (append_user_reg): Rename argument `read' to `xread'.
12291 * (user_reg_add_builtin): Likewise.
12292 * (user_reg_add): Likewise.
12293 * (value_of_user_reg): Likewise.
12294
2108a63a
KR
122952020-03-17 Kamil Rytarowski <n54@gmx.com>
12296
12297 * sparc-nat.c (gdb_ptrace): New.
12298 * sparc-nat.c (sparc_fetch_inferior_registers)
12299 (sparc_store_inferior_registers) Remove obsolete comment.
12300 * sparc-nat.c (sparc_fetch_inferior_registers)
12301 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12302 * sparc-nat.c (sparc_fetch_inferior_registers)
12303 (sparc_store_inferior_registers) Use gdb_ptrace.
12304
a225c9a8
KR
123052020-03-17 Kamil Rytarowski <n54@gmx.com>
12306
12307 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12308 it to the ptrace call.
12309 * sh-nbsd-nat.c (store_registers): Likewise.
12310
98097623
KR
123112020-03-17 Kamil Rytarowski <n54@gmx.com>
12312
12313 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12314 nbsd_nat_target instead of inf_ptrace_target.
12315 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12316 nbsd_nat_target.
12317
9e38d619
KR
123182020-03-17 Kamil Rytarowski <n54@gmx.com>
12319
12320 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12321
a2ecbe9f
KR
123222020-03-17 Kamil Rytarowski <n54@gmx.com>
12323
12324 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12325 <sys/sysctl.h>.
12326 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12327
58990295
TV
123282020-03-17 Tom de Vries <tdevries@suse.de>
12329
12330 PR gdb/23710
12331 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12332 fields.
12333 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12334 fields.
12335 (process_imported_unit_die): Skip import of c++ CUs.
12336
771dd3a8
TT
123372020-03-16 Tom Tromey <tom@tromey.com>
12338
12339 * p-valprint.c (pascal_object_print_value): Initialize
12340 base_value.
12341
817a7585
AK
123422020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12343 Shahab Vahedi <shahab@synopsys.com>
12344
12345 * Makefile.in: Add arch/arc.o
12346 * configure.tgt: Likewise.
12347 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12348 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12349 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12350 * arc-tdep.h (arc_read_description): Add proto type.
12351 * arch/arc.c: New file.
12352 * arch/arc.h: Likewise.
12353 * features/Makefile: Replace old target descriptions with new.
12354 * features/arc-arcompact.c: Remove.
12355 * features/arc-arcompact.xml: Likewise.
12356 * features/arc-v2.c: Likewise
12357 * features/arc-v2.xml: Likewise
12358 * features/arc/aux-arcompact.xml: New file.
12359 * features/arc/aux-v2.xml: Likewise.
12360 * features/arc/core-arcompact.xml: Likewise.
12361 * features/arc/core-v2.xml: Likewise.
12362 * features/arc/aux-arcompact.c: Generate.
12363 * features/arc/aux-v2.c: Likewise.
12364 * features/arc/core-arcompact.c: Likewise.
12365 * features/arc/core-v2.c: Likewise.
12366 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12367
67430cd0
TT
123682020-03-16 Tom Tromey <tromey@adacore.com>
12369
12370 PR gdb/25663:
12371 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12372 putting value into bcache.
12373
30efb6c7
SM
123742020-03-16 Simon Marchi <simon.marchi@efficios.com>
12375
12376 PR gdb/21500
12377 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12378 to...
12379 (amd64_windows_init_abi_common): ... this. Don't set size of
12380 long type.
12381 (amd64_windows_init_abi): New function.
12382 (amd64_cygwin_init_abi): New function.
12383 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12384 the Cygwin OS ABI.
12385 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12386 comment.
12387
8db52437
SM
123882020-03-16 Simon Marchi <simon.marchi@efficios.com>
12389
12390 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12391 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12392 (pe_import_directory_entry): New struct type.
12393 (is_linked_with_cygwin_dll): New function.
12394 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12395 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12396 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12397
5982a56a
SM
123982020-03-16 Simon Marchi <simon.marchi@efficios.com>
12399
12400 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12401 i386_cygwin_core_osabi_sniffer.
12402
7a1998df
SM
124032020-03-16 Simon Marchi <simon.marchi@efficios.com>
12404
12405 * i386-cygwin-tdep.c: Rename to...
12406 * i386-windows-tdep.c: ... this.
12407 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12408 i386-windows-tdep.c.
12409 * configure.tgt: Likewise.
12410
053205cc
SM
124112020-03-16 Simon Marchi <simon.marchi@efficios.com>
12412
12413 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12414 * osabi.c (gdb_osabi_names): Add "Windows".
12415 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12416 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12417 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12418 i386_cygwin_osabi_sniffer.
12419 (_initialize_i386_cygwin_tdep): Register OS ABI
12420 GDB_OSABI_WINDOWS for i386.
12421 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12422 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12423 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12424 for x86-64.
12425 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12426 when the target matches '*-*-mingw*'.
12427
fe4b2ee6
SM
124282020-03-16 Simon Marchi <simon.marchi@efficios.com>
12429
12430 * defs.h (enum gdb_osabi): Move to...
12431 * osabi.h (enum gdb_osabi): ... here.
12432 * gdbarch.sh: Include osabi.h in gdbarch.h.
12433 * gdbarch.h: Re-generate.
12434
cb9b645d
SM
124352020-03-16 Simon Marchi <simon.marchi@efficios.com>
12436
12437 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12438 function.
12439 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12440
3293bbaf
TT
124412020-03-14 Tom Tromey <tom@tromey.com>
12442
12443 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12444 for C++.
12445 (c_type_print_modifier): Likewise. Add "language" parameter.
12446 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12447 (c_type_print_base_1): Update.
12448 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12449 constants.
12450 * type-stack.c (type_stack::insert): Handle tp_atomic and
12451 tp_restrict.
12452 (type_stack::follow_type_instance_flags): Likewise.
12453 (type_stack::follow_types): Likewise. Merge type-following code.
12454 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12455 (space_identifier, cv_with_space_id)
12456 (const_or_volatile_or_space_identifier_noopt)
12457 (const_or_volatile_or_space_identifier): Remove.
12458 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12459 rules.
12460 (ptr_operator, typebase): Update.
12461 (enum token_flag) <FLAG_C>: New constant.
12462 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12463 "_Atomic".
12464 (lex_one_token): Handle FLAG_C.
12465
154151a6
KR
124662020-03-14 Kamil Rytarowski <n54@gmx.com>
12467
12468 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12469 it to the ptrace call.
12470 * m68k-bsd-nat.c (store_registers): Likewise.
12471
bc107784
KR
124722020-03-14 Kamil Rytarowski <n54@gmx.com>
12473
12474 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12475 gdb_byte *.
12476 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12477 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12478 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12479
01a80117
KR
124802020-03-14 Kamil Rytarowski <n54@gmx.com>
12481
12482 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12483 nbsd_nat_target instead of inf_ptrace_target.
12484 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12485 nbsd_nat_target.
12486
f90280ca
KR
124872020-03-14 Kamil Rytarowski <n54@gmx.com>
12488
12489 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12490 register_t.
12491
6def66f1
KR
124922020-03-14 Kamil Rytarowski <n54@gmx.com>
12493
12494 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12495 it to the ptrace call.
12496 * alpha-bsd-nat.c (store_registers): Likewise.
12497
66eaca97
KR
124982020-03-14 Kamil Rytarowski <n54@gmx.com>
12499
12500 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12501 includes.
12502 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12503 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12504 fill_fpregset): Likewise.
12505
4fed520b
KR
125062020-03-14 Kamil Rytarowski <n54@gmx.com>
12507
12508 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12509 nbsd_nat_target instead of inf_ptrace_target.
12510 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12511 nbsd_nat_target.
12512
2190cf06
KR
125132020-03-14 Kamil Rytarowski <n54@gmx.com>
12514
12515 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12516 register_t.
12517
75c56d3d
KR
125182020-03-14 Kamil Rytarowski <n54@gmx.com>
12519
12520 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12521 it to the ptrace call.
12522 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12523 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12524 * arm-nbsd-nat.c (store_register): Likewise.
12525 * arm-nbsd-nat.c (store_regs): Likewise.
12526 * arm-nbsd-nat.c (store_fp_register): Likewise.
12527 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12528
6018d381
KR
125292020-03-14 Kamil Rytarowski <n54@gmx.com>
12530
12531 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12532 nbsd_nat_target instead of inf_ptrace_target.
12533 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12534 nbsd_nat_target.
12535
013f99f0
KR
125362020-03-14 Kamil Rytarowski <n54@gmx.com>
12537
12538 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12539 it to the ptrace call.
12540 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12541
12753073
KR
125422020-03-14 Kamil Rytarowski <n54@gmx.com>
12543
6227b330
KR
12544 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12545 it to the ptrace call.
12546 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12547
125482020-03-14 Kamil Rytarowski <n54@gmx.com>
12549
12550 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12551 gdb_byte *.
12753073
KR
12552 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12553
d5be5fa4
KR
125542020-03-14 Kamil Rytarowski <n54@gmx.com>
12555
12556 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12557 instead of inf_ptrace_target.
12558 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12559 nbsd_nat_target.
12560
8110f842
KR
125612020-03-14 Kamil Rytarowski <n54@gmx.com>
12562
12563 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12564 register_t.
12565
52feded7
KR
125662020-03-14 Kamil Rytarowski <n54@gmx.com>
12567
12568 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12569 register_t.
12570
25567eee
KR
125712020-03-14 Kamil Rytarowski <n54@gmx.com>
12572
12573 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12574 register_t.
12575
426a9c18
TT
125762020-03-13 Tom Tromey <tom@tromey.com>
12577
12578 * value.h (val_print): Don't declare.
12579 * valprint.h (val_print_array_elements)
12580 (val_print_scalar_formatted, generic_val_print): Don't declare.
12581 * valprint.c (generic_val_print_array): Take a struct value.
12582 (generic_val_print_ptr, generic_val_print_memberptr)
12583 (generic_val_print_bool, generic_val_print_int)
12584 (generic_val_print_char, generic_val_print_complex)
12585 (generic_val_print): Remove.
12586 (generic_value_print): Update.
12587 (do_val_print): Remove unused parameters. Don't call
12588 la_val_print.
12589 (val_print): Remove.
12590 (common_val_print): Update. Don't call value_check_printable.
12591 (val_print_scalar_formatted, val_print_array_elements): Remove.
12592 * rust-lang.c (rust_val_print): Remove.
12593 (rust_language_defn): Update.
12594 * p-valprint.c (pascal_val_print): Remove.
12595 (pascal_value_print_inner): Update.
12596 (pascal_object_print_val_fields, pascal_object_print_val):
12597 Remove.
12598 (pascal_object_print_static_field): Update.
12599 * p-lang.h (pascal_val_print): Don't declare.
12600 * p-lang.c (pascal_language_defn): Update.
12601 * opencl-lang.c (opencl_language_defn): Update.
12602 * objc-lang.c (objc_language_defn): Update.
12603 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12604 * m2-lang.h (m2_val_print): Don't declare.
12605 * m2-lang.c (m2_language_defn): Update.
12606 * language.h (struct language_defn) <la_val_print>: Remove.
12607 * language.c (unk_lang_value_print_inner): Rename. Change
12608 argument types.
12609 (unknown_language_defn, auto_language_defn): Update.
12610 * go-valprint.c (go_val_print): Remove.
12611 * go-lang.h (go_val_print): Don't declare.
12612 * go-lang.c (go_language_defn): Update.
12613 * f-valprint.c (f_val_print): Remove.
12614 * f-lang.h (f_value_print): Don't declare.
12615 * f-lang.c (f_language_defn): Update.
12616 * d-valprint.c (d_val_print): Remove.
12617 * d-lang.h (d_value_print): Don't declare.
12618 * d-lang.c (d_language_defn): Update.
12619 * cp-valprint.c (cp_print_value_fields)
12620 (cp_print_value_fields_rtti, cp_print_value): Remove.
12621 (cp_print_static_field): Update.
12622 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12623 (c_val_print_struct, c_val_print_union, c_val_print_int)
12624 (c_val_print_memberptr, c_val_print): Remove.
12625 * c-lang.h (c_val_print_array, cp_print_value_fields)
12626 (cp_print_value_fields_rtti): Don't declare.
12627 * c-lang.c (c_language_defn, cplus_language_defn)
12628 (asm_language_defn, minimal_language_defn): Update.
12629 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12630 (ada_val_print_enum): Take a struct value.
12631 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12632 (ada_val_print): Remove.
12633 (ada_value_print_1): Update.
12634 (printable_val_type): Remove.
12635 * ada-lang.h (ada_val_print): Don't declare.
12636 * ada-lang.c (ada_language_defn): Update.
12637
42331a1e
TT
126382020-03-13 Tom Tromey <tom@tromey.com>
12639
12640 * valprint.c (do_val_print): Update.
12641 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12642 a struct value.
12643 (value_to_value_object_no_release): Declare.
12644 * python/py-value.c (value_to_value_object_no_release): New
12645 function.
12646 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12647 struct value.
12648 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12649 function.
12650 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12651 a struct value.
12652 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12653 Declare.
12654 (gdbscm_apply_val_pretty_printer): Take a struct value.
12655 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12656 value.
12657 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12658 value.
12659 * extension-priv.h (struct extension_language_ops)
12660 <apply_val_pretty_printer>: Take a struct value.
12661 * cp-valprint.c (cp_print_value): Create a struct value.
12662 (cp_print_value): Update.
12663
3a916a97
TT
126642020-03-13 Tom Tromey <tom@tromey.com>
12665
12666 * ada-valprint.c (print_field_values): Call common_val_print.
12667
b59eac37
TT
126682020-03-13 Tom Tromey <tom@tromey.com>
12669
12670 * ada-valprint.c (val_print_packed_array_elements): Remove
12671 bitoffset and val parameters. Call common_val_print.
12672 (ada_val_print_string): Remove offset, address, and original_value
12673 parameters.
12674 (ada_val_print_array): Update.
12675 (ada_value_print_array): New function.
12676 (ada_value_print_1): Call it.
12677
03371129
TT
126782020-03-13 Tom Tromey <tom@tromey.com>
12679
12680 * ada-valprint.c (ada_value_print): Use common_val_print.
12681
2e088f8b
TT
126822020-03-13 Tom Tromey <tom@tromey.com>
12683
12684 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12685
39ef85a8
TT
126862020-03-13 Tom Tromey <tom@tromey.com>
12687
12688 * ada-valprint.c (ada_value_print_num): New function.
12689 (ada_value_print_1): Use it.
12690
b9fa6e07
TT
126912020-03-13 Tom Tromey <tom@tromey.com>
12692
12693 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12694
416595d6
TT
126952020-03-13 Tom Tromey <tom@tromey.com>
12696
12697 * ada-valprint.c (ada_value_print_ptr): New function.
12698 (ada_value_print_1): Use it.
12699
5b5e15ec
TT
127002020-03-13 Tom Tromey <tom@tromey.com>
12701
12702 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12703 call common_val_print.
12704 (ada_val_print_1): Update.
12705 (ada_value_print_1): New function.
12706 (ada_value_print_inner): Rewrite.
12707
fbf54e75
TT
127082020-03-13 Tom Tromey <tom@tromey.com>
12709
12710 * cp-valprint.c (cp_print_value_fields): Update.
12711 (cp_print_value): New function.
12712
64b653ca
TT
127132020-03-13 Tom Tromey <tom@tromey.com>
12714
12715 * m2-valprint.c (m2_value_print_inner): Use
12716 cp_print_value_fields.
12717 * cp-valprint.c (cp_print_value_fields): New function.
12718 * c-valprint.c (c_value_print_struct): New function.
12719 (c_value_print_inner): Use c_value_print_struct.
12720 * c-lang.h (cp_print_value_fields): Declare.
12721
6999f067
TT
127222020-03-13 Tom Tromey <tom@tromey.com>
12723
12724 * c-valprint.c (c_value_print_array): New function.
12725 (c_value_print_inner): Use it.
12726
ce80b8bd
TT
127272020-03-13 Tom Tromey <tom@tromey.com>
12728
12729 * c-valprint.c (c_value_print_memberptr): New function.
12730 (c_value_print_inner): Use it.
12731
2faac269
TT
127322020-03-13 Tom Tromey <tom@tromey.com>
12733
12734 * c-valprint.c (c_value_print_int): New function.
12735 (c_value_print_inner): Use it.
12736
da3e2c29
TT
127372020-03-13 Tom Tromey <tom@tromey.com>
12738
12739 * c-valprint.c (c_value_print_ptr): New function.
12740 (c_value_print_inner): Use it.
12741
50836231
TT
127422020-03-13 Tom Tromey <tom@tromey.com>
12743
12744 * c-valprint.c (c_value_print_inner): Rewrite.
12745
4f412b6e
TT
127462020-03-13 Tom Tromey <tom@tromey.com>
12747
12748 * valprint.c (generic_value_print_complex): New function.
12749 (generic_value_print): Use it.
12750
f5354008
TT
127512020-03-13 Tom Tromey <tom@tromey.com>
12752
12753 * valprint.c (generic_val_print_float): Don't call
12754 val_print_scalar_formatted.
12755 (generic_val_print, generic_value_print): Update.
12756
3eec3b05
TT
127572020-03-13 Tom Tromey <tom@tromey.com>
12758
12759 * valprint.c (generic_value_print_char): New function
12760 (generic_value_print): Use it.
12761
fdddfccb
TT
127622020-03-13 Tom Tromey <tom@tromey.com>
12763
12764 * valprint.c (generic_value_print_int): New function.
12765 (generic_value_print): Use it.
12766
6dde7521
TT
127672020-03-13 Tom Tromey <tom@tromey.com>
12768
12769 * valprint.c (generic_value_print_bool): New function.
12770 (generic_value_print): Use it.
12771
4112d2e6
TT
127722020-03-13 Tom Tromey <tom@tromey.com>
12773
12774 * valprint.c (generic_val_print_func): Simplify.
12775 (generic_val_print, generic_value_print): Update.
12776
65786af6
TT
127772020-03-13 Tom Tromey <tom@tromey.com>
12778
12779 * valprint.c (generic_val_print_flags): Remove.
12780 (generic_val_print, generic_value_print): Update.
12781 (val_print_type_code_flags): Add original_value parameter.
12782
40f3ce18
TT
127832020-03-13 Tom Tromey <tom@tromey.com>
12784
12785 * valprint.c (generic_val_print): Update.
12786 (generic_value_print): Update.
12787 * valprint.c (generic_val_print_enum): Don't call
12788 val_print_scalar_formatted.
12789
2a5b130b
TT
127902020-03-13 Tom Tromey <tom@tromey.com>
12791
12792 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12793 * valprint.c (generic_value_print_ptr): New function.
12794
abc66ce9
TT
127952020-03-13 Tom Tromey <tom@tromey.com>
12796
12797 * valprint.c (generic_value_print): Rewrite.
12798
07a32858
TT
127992020-03-13 Tom Tromey <tom@tromey.com>
12800
12801 * p-valprint.c (pascal_object_print_value_fields)
12802 (pascal_object_print_value): New functions.
12803
64d64d3a
TT
128042020-03-13 Tom Tromey <tom@tromey.com>
12805
12806 * p-valprint.c (pascal_value_print_inner): Rewrite.
12807
6a95a1f5
TT
128082020-03-13 Tom Tromey <tom@tromey.com>
12809
12810 * f-valprint.c (f_value_print_innner): Rewrite.
12811
59fcdac6
TT
128122020-03-13 Tom Tromey <tom@tromey.com>
12813
12814 * m2-valprint.c (m2_print_unbounded_array): New overload.
12815 (m2_print_unbounded_array): Update.
12816 (m2_print_array_contents): Take a struct value.
12817 (m2_value_print_inner): Rewrite.
12818
d133c3e1
TT
128192020-03-13 Tom Tromey <tom@tromey.com>
12820
12821 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12822 (d_value_print_inner): New function.
12823 * d-lang.h (d_value_print_inner): Declare.
12824 * d-lang.c (d_language_defn): Use d_value_print_inner.
12825
23b0f06b
TT
128262020-03-13 Tom Tromey <tom@tromey.com>
12827
12828 * go-valprint.c (go_value_print_inner): New function.
12829 * go-lang.h (go_value_print_inner): Declare.
12830 * go-lang.c (go_language_defn): Use go_value_print_inner.
12831
5f56f7cb
TT
128322020-03-13 Tom Tromey <tom@tromey.com>
12833
12834 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12835 API.
12836 (rust_val_print): Rewrite.
12837 (rust_value_print_inner): New function, from rust_val_print.
12838 (rust_language_defn): Use rust_value_print_inner.
12839
26792ee0
TT
128402020-03-13 Tom Tromey <tom@tromey.com>
12841
12842 * ada-valprint.c (ada_value_print_inner): New function.
12843 * ada-lang.h (ada_value_print_inner): Declare.
12844 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12845
24051bbe
TT
128462020-03-13 Tom Tromey <tom@tromey.com>
12847
12848 * f-valprint.c (f_value_print_innner): New function.
12849 * f-lang.h (f_value_print_innner): Declare.
12850 * f-lang.c (f_language_defn): Use f_value_print_innner.
12851
c0941be6
TT
128522020-03-13 Tom Tromey <tom@tromey.com>
12853
12854 * p-valprint.c (pascal_value_print_inner): New function.
12855 * p-lang.h (pascal_value_print_inner): Declare.
12856 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12857
62c4663d
TT
128582020-03-13 Tom Tromey <tom@tromey.com>
12859
12860 * m2-valprint.c (m2_value_print_inner): New function.
12861 * m2-lang.h (m2_value_print_inner): Declare.
12862 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12863
62182190
TT
128642020-03-13 Tom Tromey <tom@tromey.com>
12865
12866 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12867 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12868 * c-valprint.c (c_value_print_inner): New function.
12869 * c-lang.h (c_value_print_inner): Declare.
12870 * c-lang.c (c_language_defn, cplus_language_defn)
12871 (asm_language_defn, minimal_language_defn): Use
12872 c_value_print_inner.
12873
1e592a8a
TT
128742020-03-13 Tom Tromey <tom@tromey.com>
12875
12876 * p-valprint.c (pascal_object_print_value_fields): Now static.
12877 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12878
7fe471e9
TT
128792020-03-13 Tom Tromey <tom@tromey.com>
12880
12881 * c-valprint.c (c_val_print_array): Simplify.
12882
d121c6ce
TT
128832020-03-13 Tom Tromey <tom@tromey.com>
12884
12885 * valprint.c (value_print_array_elements): New function.
12886 * valprint.h (value_print_array_elements): Declare.
12887
4dba70ee
TT
128882020-03-13 Tom Tromey <tom@tromey.com>
12889
12890 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12891 * mips-tdep.c (mips_print_register): Use
12892 value_print_scalar_formatted.
12893
4f9ae810
TT
128942020-03-13 Tom Tromey <tom@tromey.com>
12895
12896 * valprint.h (value_print_scalar_formatted): Declare.
12897 * valprint.c (value_print_scalar_formatted): New function.
12898
156bfec9
TT
128992020-03-13 Tom Tromey <tom@tromey.com>
12900
12901 * valprint.h (generic_value_print): Declare.
12902 * valprint.c (generic_value_print): New function.
12903
2b4e573d
TT
129042020-03-13 Tom Tromey <tom@tromey.com>
12905
12906 * valprint.c (do_val_print): Call la_value_print_inner, if
12907 available.
12908 * rust-lang.c (rust_language_defn): Update.
12909 * p-lang.c (pascal_language_defn): Update.
12910 * opencl-lang.c (opencl_language_defn): Update.
12911 * objc-lang.c (objc_language_defn): Update.
12912 * m2-lang.c (m2_language_defn): Update.
12913 * language.h (struct language_defn) <la_value_print_inner>: New
12914 member.
12915 * language.c (unknown_language_defn, auto_language_defn): Update.
12916 * go-lang.c (go_language_defn): Update.
12917 * f-lang.c (f_language_defn): Update.
12918 * d-lang.c (d_language_defn): Update.
12919 * c-lang.c (c_language_defn, cplus_language_defn)
12920 (asm_language_defn, minimal_language_defn): Update.
12921 * ada-lang.c (ada_language_defn): Update.
12922
a1f6a07c
TT
129232020-03-13 Tom Tromey <tom@tromey.com>
12924
12925 * c-valprint.c (c_value_print): Use common_val_print.
12926
410cf315
TT
129272020-03-13 Tom Tromey <tom@tromey.com>
12928
12929 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12930
72a45c93
TT
129312020-03-13 Tom Tromey <tom@tromey.com>
12932
12933 * f-valprint.c (f77_print_array_1, f_val_print): Use
12934 common_val_print.
12935
040f66bd
TT
129362020-03-13 Tom Tromey <tom@tromey.com>
12937
12938 * riscv-tdep.c (riscv_print_one_register_info): Use
12939 common_val_print.
12940
a6e05a6c
TT
129412020-03-13 Tom Tromey <tom@tromey.com>
12942
12943 * mi/mi-main.c (output_register): Use common_val_print.
12944
3444c526
TT
129452020-03-13 Tom Tromey <tom@tromey.com>
12946
12947 * infcmd.c (default_print_one_register_info): Use
12948 common_val_print.
12949
c2a44efe
TT
129502020-03-13 Tom Tromey <tom@tromey.com>
12951
12952 * valprint.h (common_val_print_checked): Declare.
12953 * valprint.c (common_val_print_checked): New function.
12954 * stack.c (print_frame_arg): Use common_val_print_checked.
12955
b0c26e99
TT
129562020-03-13 Tom Tromey <tom@tromey.com>
12957
12958 * valprint.c (do_val_print): New function, from val_print.
12959 (val_print): Use do_val_print.
12960 (common_val_print): Use do_val_print.
12961
ce3acbe9
TT
129622020-03-13 Tom Tromey <tom@tromey.com>
12963
12964 * valprint.c (value_print): Use scoped_value_mark.
12965
96c7f873
TV
129662020-03-13 Tom de Vries <tdevries@suse.de>
12967
12968 PR symtab/25646
12969 * psymtab.c (partial_symtab::partial_symtab): Don't set
12970 globals_offset and statics_offset. Push element onto
12971 current_global_psymbols and current_static_psymbols stacks.
12972 (concat): New function.
12973 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12974 element from current_global_psymbols and current_static_psymbols
12975 stacks. Concat popped elements to global_psymbols and
12976 static_symbols.
12977 (add_psymbol_to_list): Use current_global_psymbols and
12978 current_static_psymbols stacks.
12979 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12980 current_static_psymbols fields.
12981
6ba0a321
CB
129822020-03-12 Christian Biesinger <cbiesinger@google.com>
12983
12984 * corelow.c (sniff_core_bfd): Remove.
12985 (class core_target) <m_core_vec>: Remove.
12986 (core_target::core_target): Update.
12987 (core_file_fns): Remove.
12988 (deprecated_add_core_fns): Remove.
12989 (default_core_sniffer): Remove.
12990 (sniff_core_bfd): Remove.
12991 (default_check_format): Remove.
12992 (gdb_check_format): Remove.
12993 (core_target_open): Update.
12994 (core_target::get_core_register_section): Update.
12995 (get_core_registers_cb): Update.
12996 (core_target::fetch_registers): Update.
12997 * gdbcore.h (struct core_fns): Remove.
12998 (deprecated_add_core_fns): Remove.
12999 (default_core_sniffer): Remove.
13000 (default_check_format): Remove.
13001
227031b2
TT
130022020-03-12 Tom Tromey <tom@tromey.com>
13003
13004 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13005 CORE_ADDR.
13006 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13007
53807e9f
TT
130082020-03-12 Tom Tromey <tom@tromey.com>
13009
13010 * remote.c (remote_target::download_tracepoint)
13011 (remote_target::enable_tracepoint)
13012 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13013 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13014 sprintf_vma.
13015
64f25102
TT
130162020-03-12 Tom Tromey <tom@tromey.com>
13017
13018 * symfile-mem.c: Update CORE_ADDR size assert.
13019
272cd5a3
SM
130202020-03-12 Simon Marchi <simon.marchi@efficios.com>
13021
13022 * selftest.m4: Move to gdbsupport/.
13023 * acinclude.m4: Update path to selftest.m4.
13024
74cd3f9d
SM
130252020-03-12 Simon Marchi <simon.marchi@efficios.com>
13026
13027 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13028 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13029 gdbarch-selfselftests.c and selftest-arch.c.
13030 (SUBDIR_UNITTESTS_OBS): Rename to...
13031 (SELFTESTS_OBS): ... this.
13032 (COMMON_SFILES): Remove disasm-selftests.c and
13033 gdbarch-selftests.c.
13034 * configure.ac: Don't add selftest-arch.{c,o} to
13035 CONFIG_{SRCS,OBS}.
13036 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13037 preprocessor conditions.
13038
db6878ac
SM
130392020-03-12 Simon Marchi <simon.marchi@efficios.com>
13040
13041 * configure.ac: Don't source bfd/development.sh.
13042 * selftest.m4: Modify comment.
13043 * configure: Re-generate.
13044
4d696a5c
SM
130452020-03-12 Simon Marchi <simon.marchi@efficios.com>
13046
13047 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13048 not "true" or "false".
13049 * configure: Re-generate.
13050
8dd8e1c7
CB
130512020-03-12 Christian Biesinger <cbiesinger@google.com>
13052
13053 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13054 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13055 renamed to arm_nbsd_supply_gregset.
13056 (fetch_register): Update to call arm_nbsd_supply_gregset.
13057 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13058 (arm_netbsd_nat_target::fetch_registers): Update.
13059 (fetch_elfcore_registers): Removed.
13060 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13061 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13062 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13063 not require NetBSD system headers.
13064 (arm_nbsd_regset): New struct.
13065 (arm_nbsd_iterate_over_regset_sections): New function.
13066 (arm_netbsd_init_abi_common): Updated to call
13067 set_gdbarch_iterate_over_regset_sections.
13068 * arm-nbsd-tdep.h: New file.
13069
dd69bf7a
KB
130702020-03-11 Kevin Buettner <kevinb@redhat.com>
13071
13072 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13073 recursion.
13074
a0761e34
SM
130752020-03-11 Simon Marchi <simon.marchi@efficios.com>
13076
13077 * configure: Re-generate.
13078
e7a82140
TT
130792020-03-11 Tom Tromey <tromey@adacore.com>
13080
13081 * ada-typeprint.c (print_choices): Fix comment.
13082
dcc050c8
AB
130832020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13084
13085 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13086 previous item in the list, when the list has no items.
13087
1c33af77
TV
130882020-03-11 Tom de Vries <tdevries@suse.de>
13089
13090 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13091 PROP_LOCLIST handling code.
13092
8c95582d
AB
130932020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13094
13095 * buildsym-legacy.c (record_line): Pass extra parameter to
13096 record_line.
13097 * buildsym.c (buildsym_compunit::record_line): Take an extra
13098 parameter, reduce duplication in the line table, and record the
13099 is_stmt flag in the line table.
13100 * buildsym.h (buildsym_compunit::record_line): Add extra
13101 parameter.
13102 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13103 non-statement lines.
13104 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13105 this to the symtab builder.
13106 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13107 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13108 through to dwarf_record_line_1.
13109 * infrun.c (process_event_stop_test): When stepping, don't stop at
13110 a non-statement instruction, and only refresh the step info when
13111 we land in the middle of a line's range. Also add an extra
13112 comment.
13113 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13114 field.
13115 * record-btrace.c (btrace_find_line_range): Only record lines
13116 marked as is-statement.
13117 * stack.c (frame_show_address): Show the frame address if we are
13118 in a non-statement sal.
13119 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13120 (maintenance_print_one_line_table): Print a header for the is_stmt
13121 column, and include is_stmt information in the output.
13122 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13123 preference to non-statements.
13124 (find_pcs_for_symtab_line): Prefer is-statement entries.
13125 (find_line_common): Likewise.
13126 * symtab.h (struct linetable_entry): Add is_stmt field.
13127 (struct symtab_and_line): Likewise.
13128 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13129 arranging the line table.
13130
e4003a34
TV
131312020-03-07 Tom de Vries <tdevries@suse.de>
13132
13133 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13134 DIE.
13135
e8932576
TT
131362020-03-07 Tom Tromey <tom@tromey.com>
13137
13138 * valops.c (value_literal_complex): Remove obsolete comment.
13139 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13140 comment.
13141
29734269
SM
131422020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13143
13144 * infrun.h: Forward-declare thread_info.
13145 (set_step_info): Add thread_info parameter, add doc.
13146 * infrun.c (set_step_info): Add thread_info parameter, move doc
13147 to header.
13148 * infrun.c (process_event_stop_test): Pass thread to
13149 set_step_info call.
13150 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13151 set_step_info.
13152 (prepare_one_step): Add thread_info parameter, pass it to
13153 set_step_frame and prepare_one_step (recursive) call.
13154 (step_1): Pass thread to prepare_one_step call.
13155 (step_command_fsm::should_stop): Pass thread to
13156 prepare_one_step.
13157 (until_next_fsm): Pass thread to set_step_frame call.
13158 (finish_command): Pass thread to set_step_info call.
13159
b7d64b29
HD
131602020-03-06 Hannes Domani <ssbssa@yahoo.de>
13161
13162 * windows-tdep.c (windows_solib_create_inferior_hook):
13163 Check if inferior is running.
13164
09f2921c
TV
131652020-03-06 Tom de Vries <tdevries@suse.de>
13166
13167 * NEWS: Fix "the the".
13168 * ctfread.c: Same.
13169
fd760e79
TV
131702020-03-06 Tom de Vries <tdevries@suse.de>
13171
13172 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13173
20ea4a60
AB
131742020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13175
13176 * .dir-locals.el: Add a comment referencing the other copies of
13177 this file.
13178
0afbabf0
JB
131792020-03-05 John Baldwin <jhb@FreeBSD.org>
13180
13181 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13182 psargs.
13183
842806cb
TBA
131842020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13185
13186 * .gitattributes: New file.
13187
be1e3d3e
TT
131882020-03-04 Tom Tromey <tom@tromey.com>
13189
13190 * symmisc.c (print_symbol_bcache_statistics)
13191 (print_objfile_statistics): Update.
13192 * symfile.c (allocate_symtab): Use intern.
13193 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13194 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13195 macro_cache>: Remove.
13196 <string_cache>: New member.
13197 (struct objfile) <intern>: New methods.
13198 * elfread.c (elf_symtab_read): Use intern.
13199 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13200 (dwarf2_compute_name, dwarf2_physname)
13201 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13202 names.
13203 (guess_partial_die_structure_name): Update.
13204 (partial_die_info::fixup): Intern name.
13205 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13206 name.
13207 (dwarf2_name): Intern name. Update.
13208 * buildsym.c (buildsym_compunit::get_macro_table): Use
13209 string_cache.
13210
4e7625fd
TT
132112020-03-04 Tom Tromey <tom@tromey.com>
13212
13213 * jit.c (bfd_open_from_target_memory): Make "target" const.
13214 * corefile.c (gnutarget): Now const.
13215 * gdbcore.h (gnutarget): Now const.
13216
46f9f931
HD
132172020-03-04 Hannes Domani <ssbssa@yahoo.de>
13218
13219 * NEWS: Mention support for WOW64 processes.
13220 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13221 (amd64_windows_segment_register_p): Remove static.
13222 (_initialize_amd64_windows_nat): Update.
13223 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13224 * i386-windows-nat.c (context_offset): Update.
13225 (i386_mappings): Rename and remove static.
13226 (i386_windows_segment_register_p): Remove static.
13227 (_initialize_i386_windows_nat): Update.
13228 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13229 (STATUS_WX86_SINGLE_STEP): New macro.
13230 (EnumProcessModulesEx): New macro.
13231 (Wow64SuspendThread): New macro.
13232 (Wow64GetThreadContext): New macro.
13233 (Wow64SetThreadContext): New macro.
13234 (Wow64GetThreadSelectorEntry): New macro.
13235 (windows_set_context_register_offsets): Add static.
13236 (windows_set_segment_register_p): Likewise.
13237 (windows_add_thread): Adapt for WOW64 processes.
13238 (windows_fetch_one_register): Likewise.
13239 (windows_nat_target::fetch_registers): Likewise.
13240 (windows_store_one_register): Likewise.
13241 (display_selector): Likewise.
13242 (display_selectors): Likewise.
13243 (handle_exception): Likewise.
13244 (windows_continue): Likewise.
13245 (windows_nat_target::resume): Likewise.
13246 (windows_add_all_dlls): Likewise.
13247 (do_initial_windows_stuff): Likewise.
13248 (windows_nat_target::attach): Likewise.
13249 (windows_get_exec_module_filename): Likewise.
13250 (windows_nat_target::create_inferior): Likewise.
13251 (windows_xfer_siginfo): Likewise.
13252 (_initialize_loadable): Initialize Wow64SuspendThread,
13253 Wow64GetThreadContext, Wow64SetThreadContext,
13254 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13255 * windows-nat.h (windows_set_context_register_offsets):
13256 Remove declaration.
13257 (windows_set_segment_register_p): Likewise.
13258 (i386_windows_segment_register_p): Add declaration.
13259 (amd64_windows_segment_register_p): Likewise.
13260
440cf44e
LM
132612020-03-04 Luis Machado <luis.machado@linaro.org>
13262
13263 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13264 in "info registers" for AArch64/ARM.
13265
13266 The change caused "info registers" to not print GPR's.
13267
13268 gdb/ChangeLog:
13269
13270 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13271
13272 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13273 when reg->group is empty and reggroup is not.
13274
1009d92f
TT
132752020-03-03 Tom Tromey <tromey@adacore.com>
13276
13277 * dwarf2/frame.c (struct dwarf2_frame_cache)
13278 <checked_tailcall_bottom, entry_cfa_sp_offset,
13279 entry_cfa_sp_offset_p>: Remove members.
13280 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13281 (dwarf2_frame_prev_register): Don't call
13282 dwarf2_tailcall_sniffer_first.
13283 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13284 * frame-unwind.c (add_unwinder): New fuction.
13285 (frame_unwind_init): Use it. Add tailcall unwinder.
13286
5e5d66b6
AB
132872020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13288 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13289
13290 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13291 value should be printed as true.
13292
584cf46d
HD
132932020-03-03 Hannes Domani <ssbssa@yahoo.de>
13294
13295 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13296 (windows_init_abi): Set and use windows_so_ops.
13297
7b973adc
SDJ
132982020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13299
13300 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13301 when verifying if dealing with a convenience variable.
13302
bb7b70ab
LM
133032020-03-03 Luis Machado <luis.machado@linaro.org>
13304
13305 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13306
9822cb57
SM
133072020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13308
13309 * infrun.c (gdbarch_supports_displaced_stepping): New.
13310 (use_displaced_stepping): Break up conditions in smaller pieces.
13311 Use gdbarch_supports_displaced_stepping.
13312 (displaced_step_prepare_throw): Use
13313 gdbarch_supports_displaced_stepping.
13314
63e163f2
AB
133152020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13316
13317 * NEWS: Mention new behaviour of the history filename.
13318 * top.c (write_history_p): Add comment.
13319 (show_write_history_p): Add header comment, give a different
13320 message when history writing is on, but the history filename is
13321 empty.
13322 (history_filename): Add comment.
13323 (history_filename_empty): New function.
13324 (show_history_filename): Add header comment, give a different
13325 message when the filename is empty.
13326 (init_history): Compare history_filename against nullptr, and only
13327 read history if the filename is not empty.
13328 (set_history_filename): Add header comment, and only make
13329 non-empty filenames absolute.
13330 (init_main): Make the filename argument to 'set history filename'
13331 optional.
13332
81b86b97
CB
133332020-03-02 Christian Biesinger <cbiesinger@google.com>
13334
13335 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13336 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13337 (fetch_fp_register): Update.
13338 (fetch_fp_regs): Update.
13339 (store_fp_register): Update.
13340 (store_fp_regs): Update.
13341 (arm_netbsd_nat_target::read_description): New function.
13342 (fetch_elfcore_registers): Update.
13343
24ed6739
AB
133442020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13345
13346 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13347 general_thread if the stop reply is missing a thread-id.
13348 (remote_target::process_stop_reply): Use the first non-exited
13349 thread if the target didn't pass a thread-id.
13350 * infrun.c (do_target_wait): Move call to
13351 switch_to_inferior_no_thread to ....
13352 (do_target_wait_1): ... here.
13353
a84bb2a0
JT
133542020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13355
13356 * debuginfod-support.c: Include defs.h first.
13357
658dadf0
TV
133582020-02-28 Tom de Vries <tdevries@suse.de>
13359
13360 * symfile.c (set_initial_language): Use default language for lookup.
13361
4ebe4877
SM
133622020-02-28 Simon Marchi <simon.marchi@efficios.com>
13363
13364 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13365 reader variable, pass `this` to read_cutu_die_from_dwo.
13366
e5da1139
AM
133672020-02-27 Aaron Merey <amerey@redhat.com>
13368
13369 * source.c (open_source_file): Check for nullptr when computing
13370 srcpath.
13371
317f7127
TT
133722020-02-27 Tom Tromey <tromey@adacore.com>
13373
13374 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13375 member.
13376 (dwarf2_add_field): Don't update nfields.
13377 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13378
3104d9ee
AB
133792020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13380
13381 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13382 abs.
13383
b83470bf
TT
133842020-02-26 Tom Tromey <tom@tromey.com>
13385
13386 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13387 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13388 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13389 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13390 per_cu_data.
13391
edfe0a0c
TT
133922020-02-26 Tom Tromey <tom@tromey.com>
13393
13394 * dwarf2/index-write.c (psym_index_map): Change type.
13395 (add_address_entry_worker, write_one_signatured_type)
13396 (recursively_count_psymbols, recursively_write_psymbols)
13397 (class debug_names, psyms_seen_size, write_gdbindex)
13398 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13399
0d79cdc4
AM
134002020-02-26 Aaron Merey <amerey@redhat.com>
13401
13402 * Makefile.in: Handle optional debuginfod support.
13403 * NEWS: Update.
13404 * README: Add --with-debuginfod summary.
13405 * config.in: Regenerate.
13406 * configure: Regenerate.
13407 * configure.ac: Handle optional debuginfod support.
13408 * debuginfod-support.c: debuginfod helper functions.
13409 * debuginfod-support.h: Ditto.
13410 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13411 summary.
13412 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13413 when a dwz file cannot be found.
13414 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13415 debuginfo file cannot be found.
13416 * source.c (open_source_file): Query debuginfod servers when a
13417 source file cannot be found.
13418 * top.c (print_gdb_configuration): Include
13419 --{with,without}-debuginfod in the output.
13420
b65ce565
JG
134212020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13422
13423 * thread.c (thr_try_catch_cmd): Print thread name.
13424
d4c9a4f8
SM
134252020-02-26 Simon Marchi <simon.marchi@efficios.com>
13426
13427 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13428 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13429 dwarf2_fetch_die_type_sect_off): Move to...
13430 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13431 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13432 dwarf2_fetch_die_type_sect_off): ... here.
13433 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13434 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13435 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13436
0dce4280
TV
134372020-02-26 Tom de Vries <tdevries@suse.de>
13438
13439 PR gdb/25603
13440 * symfile.c (set_initial_language): Exit-early if
13441 language_mode == language_mode_manual.
13442
450a1bfc
SM
134432020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13444
13445 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13446 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13447 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13448
9e80cfa1
AB
134492020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13450
13451 * gdbtypes.c (create_array_type_with_stride): Handle negative
13452 array strides.
13453 * valarith.c (value_subscripted_rvalue): Likewise.
13454
09624f1f
LM
134552020-02-25 Luis Machado <luis.machado@linaro.org>
13456
13457 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13458
8cb5117c
SM
134592020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13460
13461 * loc.h (dwarf2_get_die_type): Move to...
13462 * read.h (dwarf2_get_die_type): ... here.
13463 * read.c (dwarf2_get_die_type): Move doc to header.
13464
c325c44e
JB
134652020-02-25 Joel Brobecker <brobecker@adacore.com>
13466
13467 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13468 'gnulib/Makefile.in' to the list.
13469
4ac93832
TT
134702020-02-24 Tom Tromey <tom@tromey.com>
13471
13472 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13473 Remove.
13474 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13475 XOBNEWVEC.
13476
197400e8
TT
134772020-02-24 Tom Tromey <tom@tromey.com>
13478
13479 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13480 New method.
13481 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13482 (dw2_do_instantiate_symtab, dw2_get_file_names)
13483 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13484
76935768
TT
134852020-02-24 Tom Tromey <tom@tromey.com>
13486
13487 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13488 make_scoped_restore.
13489 (dwarf2_psymtab::read_symtab): Don't clear
13490 reading_partial_symbols.
13491
a88ef40d
TV
134922020-02-24 Tom de Vries <tdevries@suse.de>
13493
13494 PR gdb/25592
13495 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13496
c9af6521
TV
134972020-02-24 Tom de Vries <tdevries@suse.de>
13498
13499 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13500 commands layout next/prev/regs.
13501
5707a07a
TT
135022020-02-22 Tom Tromey <tom@tromey.com>
13503
13504 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13505 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13506
3b0fb49e
TT
135072020-02-22 Tom Tromey <tom@tromey.com>
13508
13509 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13510
283be8bf
TT
135112020-02-22 Tom Tromey <tom@tromey.com>
13512
13513 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13514 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13515 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13516 * tui/tui.c (_initialize_tui): Add usage text.
13517
ca793b96
TT
135182020-02-22 Tom Tromey <tom@tromey.com>
13519
13520 * tui/tui-win.c (tui_set_focus_command)
13521 (tui_set_win_height_command): Use error_no_arg.
13522 (_initialize_tui_win): Update help text.
13523 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13524
432b5c40
TT
135252020-02-22 Tom Tromey <tom@tromey.com>
13526
13527 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13528 * tui/tui-disasm.h (struct tui_disasm_window)
13529 <display_start_addr>: Declare.
13530 * tui/tui-source.h (struct tui_source_window)
13531 <display_start_addr>: Declare.
13532 * tui/tui-winsource.h (struct tui_source_window_base)
13533 <show_source_line, display_start_addr>: New methods.
13534 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13535 Rename and move to protected section.
13536 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13537 (tui_source_window_base::do_erase_source_content): Update.
13538 (tui_source_window_base::show_source_line): Now a method.
13539 (tui_source_window_base::show_source_content)
13540 (tui_source_window_base::tui_source_window_base)
13541 (tui_source_window_base::rerender)
13542 (tui_source_window_base::refill)
13543 (tui_source_window_base::do_scroll_horizontal)
13544 (tui_source_window_base::set_is_exec_point_at)
13545 (tui_source_window_base::update_breakpoint_info)
13546 (tui_source_window_base::update_exec_info): Update.
13547 * tui/tui-source.c (tui_source_window::set_contents)
13548 (tui_source_window::showing_source_p)
13549 (tui_source_window::do_scroll_vertical)
13550 (tui_source_window::location_matches_p)
13551 (tui_source_window::line_is_displayed): Update.
13552 (tui_source_window::display_start_addr): New method.
13553 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13554 (tui_disasm_window::do_scroll_vertical)
13555 (tui_disasm_window::location_matches_p): Update.
13556 (tui_disasm_window::display_start_addr): New method.
13557
01b1af32
TT
135582020-02-22 Tom Tromey <tom@tromey.com>
13559
13560 * NEWS: Add entry for gdb.register_window_type.
13561 * tui/tui-layout.h (window_factory): New typedef.
13562 (tui_register_window): Declare.
13563 * tui/tui-layout.c (saved_tui_windows): New global.
13564 (tui_apply_current_layout): Use it.
13565 (tui_register_window): New function.
13566 * python/python.c (do_start_initialization): Call
13567 gdbpy_initialize_tui.
13568 (python_GdbMethods): Add "register_window_type" function.
13569 * python/python-internal.h (gdbpy_register_tui_window)
13570 (gdbpy_initialize_tui): Declare.
13571 * python/py-tui.c: New file.
13572 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13573
fc96d20b
TT
135742020-02-22 Tom Tromey <tom@tromey.com>
13575
13576 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13577
935c78c0
TT
135782020-02-22 Tom Tromey <tom@tromey.com>
13579
13580 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13581 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13582 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13583 (tui_set_win_focus_to): Move from tui-win.c.
13584
0240c8f1
TT
135852020-02-22 Tom Tromey <tom@tromey.com>
13586
13587 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13588 functions.
13589 (known_window_types): New global.
13590 (tui_get_window_by_name): Reimplement.
13591 (initialize_known_windows): New function.
13592 (validate_window_name): Rewrite.
13593 (_initialize_tui_layout): Call initialize_known_windows.
13594
fdb01f0c
TT
135952020-02-22 Tom Tromey <tom@tromey.com>
13596
13597 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13598 Remove constants.
13599 * tui/tui-winsource.h (struct tui_source_window_base)
13600 <tui_source_window_base>: Remove parameter.
13601 * tui/tui-winsource.c
13602 (tui_source_window_base::tui_source_window_base): Remove
13603 parameter.
13604 (tui_source_window_base::refill): Update.
13605 * tui/tui-stack.h (struct tui_locator_window)
13606 <tui_locator_window>: Update.
13607 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13608 Default the constructor.
13609 * tui/tui-regs.h (struct tui_data_item_window)
13610 <tui_data_item_window>: Default the constructor.
13611 (struct tui_data_window) <tui_data_window>: Likewise.
13612 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13613 Default the constructor.
13614 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13615 Default the constructor.
13616 <type>: Remove.
13617 (struct tui_win_info) <tui_win_info>: Default the constructor.
13618 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13619 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13620 Default the constructor.
13621
865a5aec
TT
136222020-02-22 Tom Tromey <tom@tromey.com>
13623
13624 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13625 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13626 * tui/tui-win.c (tui_resize_all): Don't call
13627 tui_delete_invisible_windows.
13628 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13629 done.
13630 (tui_set_layout): Update.
13631 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13632 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13633 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13634
e098d18c
TT
136352020-02-22 Tom Tromey <tom@tromey.com>
13636
13637 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13638 correctly.
13639
eb9c8874
TT
136402020-02-22 Tom Tromey <tom@tromey.com>
13641
13642 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13643
7eed1a8e
TT
136442020-02-22 Tom Tromey <tom@tromey.com>
13645
13646 * tui/tui-winsource.h (struct tui_source_window_iterator)
13647 <inner_iterator>: New etytypedef.
13648 <tui_source_window_iterator>: Take "end" parameter.
13649 <tui_source_window_iterator>: Take iterator.
13650 <operator*, advance>: Update.
13651 <m_iter>: Change type.
13652 <m_end>: New field.
13653 (struct tui_source_windows) <begin, end>: Update.
13654 * tui/tui-layout.c (tui_windows): New global.
13655 (tui_apply_current_layout): Clear tui_windows.
13656 (tui_layout_window::apply): Update tui_windows.
13657 * tui/tui-data.h (tui_windows): Declare.
13658 (all_tui_windows): Now inline function.
13659 (class tui_window_iterator, struct all_tui_windows): Remove.
13660
7c043ba6
TT
136612020-02-22 Tom Tromey <tom@tromey.com>
13662
13663 PR tui/17850:
13664 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13665 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13666 "height" argument.
13667 (class tui_layout_window) <get_sizes>: Likewise.
13668 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13669 argument.
13670 <get_sizes>: Add "height" argument.
13671 <m_vertical>: New field.
13672 * tui/tui-layout.c (tui_layout_split::clone): Update.
13673 (tui_layout_split::get_sizes): Add "height" argument.
13674 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13675 (tui_new_layout_command): Parse "-horizontal".
13676 (_initialize_tui_layout): Update help string.
13677 (tui_layout_split::specification): Add "-horizontal" when needed.
13678 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13679 argument.
13680 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13681 New methods.
13682
6bc56648
TT
136832020-02-22 Tom Tromey <tom@tromey.com>
13684
13685 * tui/tui-layout.h (enum tui_adjust_result): New.
13686 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13687 (class tui_layout_window) <adjust_size>: Return
13688 tui_adjust_result. Rewrite.
13689 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13690 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13691
c22fef7e
TT
136922020-02-22 Tom Tromey <tom@tromey.com>
13693
13694 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13695 parameter and return types.
13696 (class tui_layout_base) <specification>: Add "depth".
13697 (class tui_layout_window) <specification>: Add "depth".
13698 (class tui_layout_split) <specification>: Add "depth".
13699 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13700 and return types.
13701 (tui_new_layout_command): Parse sub-layouts.
13702 (_initialize_tui_layout): Update help string.
13703 (tui_layout_window::specification): Add "depth".
13704 (add_layout_command): Update.
13705
ee325b61
TT
137062020-02-22 Tom Tromey <tom@tromey.com>
13707
13708 * NEWS: Add "tui new-layout" item.
13709 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13710 Add new-layout command to help text.
13711 (validate_window_name): New function.
13712 (tui_new_layout_command): New function.
13713 (_initialize_tui_layout): Register "new-layout".
13714 (tui_layout_window::specification): New method.
13715 (tui_layout_window::specification): New method.
13716 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13717 method.
13718 (class tui_layout_window) <specification>: New method.
13719 (class tui_layout_split) <specification>: New method.
13720
416eb92d
TT
137212020-02-22 Tom Tromey <tom@tromey.com>
13722
13723 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13724 * tui/tui-win.c (window_name_completer): Update comment.
13725 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13726 Declare method.
13727 (class tui_layout_window) <replace_window>: Likewise.
13728 (class tui_layout_split) <replace_window>: Likewise.
13729 (tui_set_layout): Don't declare.
13730 (tui_set_initial_layout): Declare function.
13731 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13732 (asm_regs_layout): New globals.
13733 (tui_current_layout, show_layout): Remove.
13734 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13735 (find_layout, tui_apply_layout): New function.
13736 (layout_completer): Remove.
13737 (tui_next_layout): Reimplement.
13738 (tui_next_layout_command): New function.
13739 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13740 (tui_regs_layout): Reimplement.
13741 (tui_regs_layout_command): New function.
13742 (extract_display_start_addr): Rewrite.
13743 (next_layout, prev_layout): Remove.
13744 (tui_layout_window::replace_window): New method.
13745 (tui_layout_split::replace_window): New method.
13746 (destroy_layout): New function.
13747 (layout_list): New global.
13748 (add_layout_command): New function.
13749 (initialize_layouts): Update.
13750 (tui_layout_command): New function.
13751 (_initialize_tui_layout): Install "layout" commands.
13752 * tui/tui-data.h (enum tui_layout_type): Remove.
13753 (tui_current_layout): Don't declare.
13754
0dbc2fc7
TT
137552020-02-22 Tom Tromey <tom@tromey.com>
13756
13757 * tui/tui-regs.c (tui_reg_layout): Remove.
13758 (tui_reg_command): Use tui_regs_layout.
13759 * tui/tui-layout.h (tui_reg_command): Declare.
13760 * tui/tui-layout.c (tui_reg_command): New function.
13761
5afe342e
TT
137622020-02-22 Tom Tromey <tom@tromey.com>
13763
13764 * tui/tui.c (tui_rl_delete_other_windows): Call
13765 tui_remove_some_windows.
13766 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13767 Declare method.
13768 (class tui_layout_window) <remove_windows>: New method.
13769 (class tui_layout_split) <remove_windows>: Declare.
13770 (tui_remove_some_windows): Declare.
13771 * tui/tui-layout.c (tui_remove_some_windows): New function.
13772 (tui_layout_split::remove_windows): New method.
13773
427326a8
TT
137742020-02-22 Tom Tromey <tom@tromey.com>
13775
13776 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13777 * tui/tui-layout.h (tui_next_layout): Declare.
13778 * tui/tui-layout.c (tui_next_layout): New function.
13779
3fe12b6d
TT
137802020-02-22 Tom Tromey <tom@tromey.com>
13781
13782 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13783 correct coordinates.
13784
59b8b5d2
TT
137852020-02-22 Tom Tromey <tom@tromey.com>
13786
13787 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13788 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13789 DATA_WIN case.
13790
2a3d458b
TT
137912020-02-22 Tom Tromey <tom@tromey.com>
13792
13793 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13794 TUI_DISASM_WIN, not tui_win_list.
13795
3f0cbb04
TT
137962020-02-22 Tom Tromey <tom@tromey.com>
13797
13798 * valprint.c (generic_val_print_enum_1)
13799 (val_print_type_code_flags): Style member names.
13800 * rust-lang.c (val_print_struct, rust_print_enum)
13801 (rust_print_struct_def, rust_internal_print_type): Style member
13802 names.
13803 * p-valprint.c (pascal_object_print_value_fields): Style member
13804 names. Only call fprintf_symbol_filtered for static members.
13805 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13806 * f-valprint.c (f_val_print): Style member names.
13807 * f-typeprint.c (f_type_print_base): Style member names.
13808 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13809 call fprintf_symbol_filtered for static members.
13810 (cp_print_class_member): Style member names.
13811 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13812 member names.
13813 * ada-valprint.c (ada_print_scalar): Style enum names.
13814 (ada_val_print_enum): Likewise.
13815 * ada-typeprint.c (print_enum_type): Style enum names.
13816
d4d947ae
TT
138172020-02-21 Tom Tromey <tom@tromey.com>
13818
13819 * psympriv.h (struct partial_symtab): Update comment.
13820
e94e944b
TT
138212020-02-21 Tom Tromey <tromey@adacore.com>
13822
13823 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13824 type is CORE_ADDR.
13825
1eb73179
TV
138262020-02-21 Tom de Vries <tdevries@suse.de>
13827
13828 PR gdb/25534
13829 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13830 if dependencies[i]->user != NULL.
13831
4f180d53
AT
138322020-02-21 Ali Tamur <tamur@google.com>
13833
13834 * dwarf2/read.c (dwarf2_name): Add null check.
13835
22b6cd70
TT
138362020-02-20 Tom Tromey <tom@tromey.com>
13837
13838 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13839 ">=", in binary search.
13840 (dwarf2_find_containing_comp_unit): New overload.
13841 (run_test): New self-test.
13842 (_initialize_dwarf2_read): Register new test.
13843
bd0cf5a6
NC
138442020-02-20 Nelson Chu <nelson.chu@sifive.com>
13845
13846 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13847 * riscv-tdep.h: Likewise.
13848 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13849 rv32-only CSR.
13850 * features/riscv/64bit-csr.xml: Regenerated.
13851
3f702acd
SDJ
138522020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13853 Tom Tromey <tom@tromey.com>
13854
13855 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13856 of 'fputc_unfiltered'.
13857 (putchar_unfiltered): Call 'fputc_unfiltered'.
13858 (fputc_unfiltered): Call 'fputs_unfiltered'.
13859
d13c7322
AB
138602020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13861
13862 * config.in: Regenerate.
13863 * configure: Regenerate.
13864 * configure.ac: Add --with-python-libdir option.
13865 * main.c: Use WITH_PYTHON_LIBDIR.
13866
869d8950
TT
138672020-02-19 Tom Tromey <tom@tromey.com>
13868
13869 * symtab.c (general_symbol_info::compute_and_set_names): Use
13870 obstack_strndup. Simplify call to symbol_set_demangled_name.
13871
298e9637
SM
138722020-02-19 Simon Marchi <simon.marchi@efficios.com>
13873
13874 * dwarf2/read.c (allocate_signatured_type_table,
13875 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13876 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13877 Remove objfile parameter, update all callers.
13878
08410482
DE
138792020-02-19 Doug Evans <dje@google.com>
13880
13881 PR rust/25535
13882 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13883 rust_enum_variant calculation.
13884
dfdeeca1
TT
138852020-02-19 Tom Tromey <tromey@adacore.com>
13886
13887 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13888
2ef5453b
TT
138892020-02-19 Tom Tromey <tromey@adacore.com>
13890
13891 * ada-lang.c (cache_symbol): Use obstack_strdup.
13892
9f1528a1
AB
138932020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13894
13895 * configure: Regenerate.
13896
d3c22fa8
TT
138972020-02-19 Tom Tromey <tromey@adacore.com>
13898
13899 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13900 NULL check.
13901
bf84f706
MR
139022020-02-19 Maciej W. Rozycki <macro@wdc.com>
13903
13904 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13905
d1c9b20f
AB
139062020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13907
13908 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13909 if GDBSERVER is not defined.
13910 (riscv_tdesc_cache): Likewise, also store const target_desc.
13911 (STATIC_IN_GDB): Define.
13912 (riscv_create_target_description): Update declaration with
13913 STATIC_IN_GDB.
13914 (riscv_lookup_target_description): New function, only define if
13915 GDBSERVER is not defined.
13916 * arch/riscv.h (riscv_create_target_description): Declare only
13917 when GDBSERVER is defined.
13918 (riscv_lookup_target_description): New declaration when GDBSERVER
13919 is not defined.
13920 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13921 (riscv_linux_read_features): ...this, and return
13922 riscv_gdbarch_features instead of target_desc.
13923 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13924 (riscv_linux_read_description): Rename to...
13925 (riscv_linux_read_features): ...this.
13926 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13927 Update to use riscv_gdbarch_features and
13928 riscv_lookup_target_description.
13929 * riscv-tdep.c (riscv_find_default_target_description): Use
13930 riscv_lookup_target_description instead of
13931 riscv_create_target_description.
13932
373d7ac0
SM
139332020-02-18 Simon Marchi <simon.marchi@efficios.com>
13934
13935 * valprint.c (generic_val_print_enum_1): When printing a flag
13936 enum with value 0 and there is no enumerator with value 0, print
13937 just "0" instead of "(unknown: 0x0)".
13938
b29a2df0
SM
139392020-02-18 Simon Marchi <simon.marchi@efficios.com>
13940
13941 * valprint.c (generic_val_print_enum_1): Print unknown part of
13942 flag enum in hex.
13943
6740f0cc
SM
139442020-02-18 Simon Marchi <simon.marchi@efficios.com>
13945
13946 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13947 flag enums to contain duplicate enumerators.
13948 * valprint.c (generic_val_print_enum_1): Update comment.
13949
edd45eb0
SM
139502020-02-18 Simon Marchi <simon.marchi@efficios.com>
13951
13952 * dwarf2/read.c: Include "count-one-bits.h".
13953 (update_enumeration_type_from_children): If an enumerator has
13954 multiple bits set, don't treat the enumeration as a "flag enum".
13955 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13956 of flag enums have 0 or 1 bit set.
13957
6d0cf446
BE
139582020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13959
13960 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13961 conversion.
13962 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13963 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13964 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13965 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13966 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13967
7001c1b7
SM
139682020-02-18 Simon Marchi <simon.marchi@efficios.com>
13969
13970 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13971
fdb61c6c
SM
139722020-02-14 Simon Marchi <simon.marchi@efficios.com>
13973
13974 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13975 displaced_step_closure_up.
13976 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13977 (struct displaced_step_closure_up):
13978 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13979 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13980 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13981 Likewise.
13982 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13983 * gdbarch.c, gdbarch.h: Re-generate.
13984 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13985 displaced_step_closure_up.
13986 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13987 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13988 * infrun.h (displaced_step_closure_up): New type alias.
13989 (struct displaced_step_inferior_state) <step_closure>: Change
13990 type to displaced_step_closure_up.
13991 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13992 displaced_step_closure_up.
13993 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13994
a4a38eb4
TT
139952020-02-14 Tom Tromey <tom@tromey.com>
13996
13997 * minidebug.c (gnu_debug_key): New global.
13998 (find_separate_debug_file_in_section): Use it.
13999
e8217e61
SM
140002020-02-14 Simon Marchi <simon.marchi@efficios.com>
14001
14002 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14003 std::unique_ptr.
14004 * gdbarch.c: Re-generate.
14005 * gdbarch.h: Re-generate.
14006 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14007 change.
14008 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14009 type to std::unique_ptr.
14010 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14011 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14012 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14013 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14014 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14015 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14016 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14017 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14018 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14019
d8d83535
SM
140202020-02-14 Simon Marchi <simon.marchi@efficios.com>
14021
14022 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14023 std::unique_ptr.
14024 (displaced_step_clear): Rename to...
14025 (displaced_step_reset): ... this. Just call displaced->reset ().
14026 (displaced_step_clear_cleanup): Rename to...
14027 (displaced_step_reset_cleanup): ... this.
14028 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14029 (displaced_step_fixup): Likewise.
14030 (resume_1): Likewise.
14031 (handle_inferior_event): Restore child's memory before calling
14032 displaced_step_fixup on the parent.
14033 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14034 to std::unique_ptr.
14035 <step_closure>: Change type to std::unique_ptr.
14036
5f661e03
SM
140372020-02-14 Simon Marchi <simon.marchi@efficios.com>
14038
14039 * arm-tdep.c: Include count-one-bits.h.
14040 (cleanup_block_store_pc): Use count_one_bits.
14041 (cleanup_block_load_pc): Use count_one_bits.
14042 (arm_copy_block_xfer): Use count_one_bits.
14043 (thumb2_copy_block_xfer): Use count_one_bits.
14044 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14045 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14046 (thumb_get_next_pcs_raw): Use count_one_bits.
14047 (arm_get_next_pcs_raw): Use count_one_bits_l.
14048 * arch/arm.c (bitcount): Remove.
14049 * arch/arm.h (bitcount): Remove.
14050
8084e579
TT
140512020-02-14 Tom Tromey <tromey@adacore.com>
14052
14053 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14054 Update.
14055 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14056 * dwarf2/loc.c (call_site_find_chain_1): Return
14057 unique_xmalloc_ptr.
14058 (call_site_find_chain): Likewise.
14059
258bf0ee
RB
140602020-02-14 Richard Biener <rguenther@suse.de>
14061
14062 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14063 on expression with division operators.
14064
f98a8458
AKS
140652020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14066
14067 * MAINTAINERS (Write After Approval): Adding myself.
14068
d1437c0e
TT
140692020-02-12 Tom Tromey <tom@tromey.com>
14070
14071 * event-loop.c (event_data, gdb_event, event_handler_func):
14072 Remove.
14073
3d4560f7
TT
140742020-02-12 Tom Tromey <tom@tromey.com>
14075
14076 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14077 (dwarf2_frame_objfile_data): Add comment.
14078 (find_comp_unit, set_comp_unit): New functions.
14079 (dwarf2_frame_find_fde): Use find_comp_unit.
14080 (dwarf2_build_frame_info): Use set_comp_unit.
14081
21982304
TT
140822020-02-12 Tom Tromey <tom@tromey.com>
14083
14084 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14085 (comp_unit): Don't initialize objfile.
14086 (execute_cfa_program): Add text_offset parameter.
14087 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14088 (dwarf2_frame_cache): Update.
14089 (dwarf2_build_frame_info): Don't set "objfile" member.
14090
4debb237
TT
140912020-02-12 Tom Tromey <tom@tromey.com>
14092
14093 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14094 (decode_frame_entry): Likewise.
14095 (dwarf2_build_frame_info): Update.
14096
0d404d44
TT
140972020-02-12 Tom Tromey <tom@tromey.com>
14098
14099 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14100 (decode_frame_entry_1): Use the comp_unit obstack.
14101
a7a3ae5c
TT
141022020-02-12 Tom Tromey <tom@tromey.com>
14103
14104 * dwarf2/frame.c (struct comp_unit): Add initializers and
14105 constructor.
14106 (dwarf2_frame_objfile_data): Store a comp_unit.
14107 (dwarf2_frame_find_fde): Update.
14108 (dwarf2_build_frame_info): Use "new".
14109
a9d65418
TT
141102020-02-12 Tom Tromey <tom@tromey.com>
14111
14112 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14113 (dwarf2_fde_table): Typedef for std::vector.
14114 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14115 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14116 (decode_frame_entry): Update.
14117 (dwarf2_build_frame_info): Use "new".
14118
7559c217
CB
141192020-02-12 Christian Biesinger <cbiesinger@google.com>
14120
14121 * arm-tdep.c (arm_gdbarch_init): Update.
14122 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14123 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14124 have_neon, is_m>: Change to bool.
14125
aeefc73c
CB
141262020-02-12 Christian Biesinger <cbiesinger@google.com>
14127
14128 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14129
d27b8e5f
TT
141302020-02-12 Tom Tromey <tom@tromey.com>
14131
14132 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14133
cd5900f3
HD
141342020-02-12 Hannes Domani <ssbssa@yahoo.de>
14135
14136 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14137 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14138
f056b22b
TT
141392020-02-11 Tom Tromey <tom@tromey.com>
14140
14141 * psymtab.h: Update comment.
14142
f92ff6b5
TT
141432020-02-11 Tom Tromey <tom@tromey.com>
14144
14145 * gdb_obstack.h (struct auto_obstack): Use
14146 DISABLE_COPY_AND_ASSIGN.
14147
3fd6912b
TT
141482020-02-11 Tom Tromey <tom@tromey.com>
14149
14150 * dwarf2/frame.h (struct objfile): Don't forward declare.
14151
69ed9b74
CB
141522020-02-11 Christian Biesinger <cbiesinger@google.com>
14153
14154 * cris-tdep.c (cris_supply_gregset): Change signature to match
14155 what struct regset expects.
14156 (cris_regset): New struct.
14157 (fetch_core_registers): Remove.
14158 (cris_iterate_over_regset_sections): New function.
14159 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14160 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14161
bda874f6
CB
141622020-02-11 Christian Biesinger <cbiesinger@google.com>
14163
14164 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14165 registers.
14166
754e1564
CB
141672020-02-11 Christian Biesinger <cbiesinger@google.com>
14168
14169 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14170
8ddd8e0e
SM
141712020-02-11 Simon Marchi <simon.marchi@efficios.com>
14172
14173 * configure: Re-generate.
14174
898e7f60
SM
141752020-02-11 Simon Marchi <simon.marchi@efficios.com>
14176
14177 * configure: Re-generate.
14178
58df732b
SM
141792020-02-11 Simon Marchi <simon.marchi@efficios.com>
14180
14181 * acinclude: Update warning.m4 path.
14182 * warning.m4: Move to gdbsupport.
14183
da5bd37e
TT
141842020-02-11 Tom Tromey <tromey@adacore.com>
14185
14186 * remote.c (remote_console_output): Update.
14187 * printcmd.c (printf_command): Update.
14188 * event-loop.c (gdb_wait_for_event): Update.
14189 * linux-nat.c (sigchld_handler): Update.
14190 * remote-sim.c (gdb_os_write_stdout): Update.
14191 (gdb_os_flush_stdout): Update.
14192 (gdb_os_flush_stderr): Update.
14193 (gdb_os_write_stderr): Update.
14194 * exceptions.c (print_exception): Update.
14195 * remote-fileio.c (remote_fileio_func_read): Update.
14196 (remote_fileio_func_write): Update.
14197 * tui/tui.c (tui_enable): Update.
14198 * tui/tui-interp.c (tui_interp::init): Update.
14199 * utils.c (init_page_info): Update.
14200 (putchar_unfiltered, fputc_unfiltered): Update.
14201 (gdb_flush): Update.
14202 (emit_style_escape): Update.
14203 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14204 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14205 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14206 (stderr_file::write): Update.
14207 (stderr_file::puts): Update.
14208 * ui-file.h (ui_file_isatty, ui_file_write)
14209 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14210 (ui_file_puts): Don't declare.
14211
85f0dd3c
TV
142122020-02-10 Tom de Vries <tdevries@suse.de>
14213
14214 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14215 sentinel to char *.
14216
2e927613
TV
142172020-02-09 Tom de Vries <tdevries@suse.de>
14218
14219 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14220 filename if it matches "<artificial>".
14221
6bafc845
HD
142222020-02-09 Hannes Domani <ssbssa@yahoo.de>
14223
14224 * windows-tdep.c (struct enum_value_name): New struct.
14225 (create_enum): New function.
14226 (windows_get_siginfo_type): Create and use enum types.
14227
7928d571
HD
142282020-02-09 Hannes Domani <ssbssa@yahoo.de>
14229
14230 * NEWS: Mention $_siginfo support for Windows.
14231 * windows-nat.c (handle_exception): Set siginfo_er.
14232 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14233 (windows_xfer_siginfo): New function.
14234 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14235 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14236 (init_windows_gdbarch_data): New function.
14237 (get_windows_gdbarch_data): New function.
14238 (windows_get_siginfo_type): New function.
14239 (windows_init_abi): Register windows_get_siginfo_type.
14240 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14241
6751ebae
TT
142422020-02-08 Tom Tromey <tom@tromey.com>
14243
14244 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14245 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14246 <keep>: Declare method.
14247 <m_keep>: Remove member.
14248 <~cutu_reader>: Remove.
14249 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14250 (cutu_reader::cutu_reader): Update.
14251 (cutu_reader::keep): Rename from ~cutu_reader.
14252 (process_psymtab_comp_unit, build_type_psymtabs_1)
14253 (process_skeletonless_type_unit, load_partial_comp_unit)
14254 (load_full_comp_unit, dwarf2_read_addr_index)
14255 (read_signatured_type): Update.
14256
135f5437
TT
142572020-02-08 Tom Tromey <tom@tromey.com>
14258
14259 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14260 "want_partial_unit" parameter.
14261 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14262 Inline check for DW_TAG_partial_unit.
14263 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14264
9f66ff1c
TT
142652020-02-08 Tom Tromey <tom@tromey.com>
14266
14267 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14268 read.c.
14269 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14270 read.c.
14271
c8a7a66f
TT
142722020-02-08 Tom Tromey <tom@tromey.com>
14273
14274 * dwarf2/read.c (read_address): Move to comp-unit.c.
14275 (dwarf2_rnglists_process, dwarf2_ranges_process)
14276 (read_attribute_value, dwarf_decode_lines_1)
14277 (var_decode_location, decode_locdesc): Update.
14278 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14279 read.c. Remove "cu" parameter.
14280 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14281 method.
14282
8266302d
TT
142832020-02-08 Tom Tromey <tom@tromey.com>
14284
14285 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14286 (read_indirect_line_string): Update.
14287 * dwarf2/comp-unit.c (read_offset): Remove.
14288 (read_comp_unit_head): Update.
14289 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14290 method.
14291 (read_offset): Don't declare.
14292
4057dfde
TT
142932020-02-08 Tom Tromey <tom@tromey.com>
14294
14295 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14296 * dwarf2/read.c (struct comp_unit_head): Move to
14297 dwarf2/comp-unit.h.
14298 (enum class rcuh_kind): Move to comp-unit.h.
14299 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14300 (read_comp_unit_head, error_check_comp_unit_head)
14301 (read_and_check_comp_unit_head): Move to comp-unit.c.
14302 (read_offset, dwarf_unit_type_name): Likewise.
14303 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14304 (cutu_reader::cutu_reader, read_call_site_scope)
14305 (find_partial_die, follow_die_offset): Update.
14306 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14307
24aa364d
TT
143082020-02-08 Tom Tromey <tom@tromey.com>
14309
14310 * dwarf2/read.c (read_offset_1): Move to leb.c.
14311 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14312 (dwarf_decode_macro_bytes): Update.
14313 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14314 * dwarf2/leb.h (read_offset): Declare.
14315
2c7d5afc
TT
143162020-02-08 Tom Tromey <tom@tromey.com>
14317
14318 * dwarf2/read.c (dwarf2_section_size): Remove.
14319 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14320 Update.
14321 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14322
4075cb26
TT
143232020-02-08 Tom Tromey <tom@tromey.com>
14324
14325 * dwarf2/read.c (read_initial_length): Move to leb.c.
14326 * dwarf2/leb.h (read_initial_length): Declare.
14327 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14328 handle_nonstd parameter.
14329 * dwarf2/frame.c (read_initial_length): Remove.
14330 (decode_frame_entry_1): Update.
14331
09ba997f
TT
143322020-02-08 Tom Tromey <tom@tromey.com>
14333
14334 * dwarf2/loc.c (dwarf2_find_location_expression)
14335 (dwarf_evaluate_loc_desc::get_tls_address)
14336 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14337 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14338 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14339 (dwarf2_compile_property_to_c)
14340 (dwarf2_loc_desc_get_symbol_read_needs)
14341 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14342 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14343 (loclist_describe_location, loclist_tracepoint_var_ref)
14344 (loclist_generate_c_location): Update.
14345 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14346 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14347 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14348 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14349 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14350 (dwarf2_per_cu_data::addr_size)
14351 (dwarf2_per_cu_data::ref_addr_size)
14352 (dwarf2_per_cu_data::text_offset)
14353 (dwarf2_per_cu_data::addr_type): Now methods.
14354 (per_cu_header_read_in): Make per_cu "const".
14355 (dwarf2_version): Remove.
14356 (dwarf2_per_cu_data::int_type): Now a method.
14357 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14358 (set_die_type, read_array_type, read_subrange_index_type)
14359 (read_tag_string_type, read_subrange_type): Update.
14360 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14361 offset_size, ref_addr_size, text_offset, addr_type, version,
14362 objfile, int_type, addr_sized_int_type>: Declare methods.
14363
96c738c0
TT
143642020-02-08 Tom Tromey <tom@tromey.com>
14365
14366 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14367 Move earlier.
14368
8fdd972c
TT
143692020-02-08 Tom Tromey <tom@tromey.com>
14370
14371 * dwarf2/read.h (dwarf_line_debug): Declare.
14372 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14373 * dwarf2/read.c: Move line_header code to new files.
14374 (dwarf_line_debug): No longer static.
14375 * dwarf2/line-header.c: New file.
14376 * dwarf2/line-header.h: New file.
14377
03075812
TT
143782020-02-08 Tom Tromey <tom@tromey.com>
14379
14380 * dwarf2/read.c (struct line_header) <file_full_name,
14381 file_file_name>: Return unique_xmalloc_ptr.
14382 (line_header::file_file_name): Update.
14383 (line_header::file_full_name): Update.
14384 (dw2_get_file_names_reader): Update.
14385 (macro_start_file): Update.
14386
bb822404
TT
143872020-02-08 Tom Tromey <tom@tromey.com>
14388
14389 * dwarf2/read.c (struct line_header) <file_full_name,
14390 file_file_name>: Declare methods.
14391 (dw2_get_file_names_reader): Update.
14392 (file_file_name): Now a method.
14393 (file_full_name): Likewise.
14394 (macro_start_file): Update.
14395
009b64fc
TT
143962020-02-08 Tom Tromey <tom@tromey.com>
14397
14398 * dwarf2/read.c (dwarf_always_disassemble)
14399 (show_dwarf_always_disassemble): Move to loc.c.
14400 (_initialize_dwarf2_read): Move "always-disassemble" registration
14401 to loc.c.
14402 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14403 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14404 static.
14405 (show_dwarf_always_disassemble): Move from read.c.
14406 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14407
5895093f
TT
144082020-02-08 Tom Tromey <tom@tromey.com>
14409
14410 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14411 (create_quick_file_names_table): Return htab_up.
14412 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14413 Update.
14414 * dwarf2/read.h (struct dwarf2_per_objfile)
14415 <quick_file_names_table>: Now htab_up.
14416
b3b32279
TT
144172020-02-08 Tom Tromey <tom@tromey.com>
14418
14419 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14420
1d33d811
TT
144212020-02-08 Tom Tromey <tom@tromey.com>
14422
14423 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14424 Rewrite.
14425 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14426 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14427 (abbrev_table::abbrev_table): No longer inline.
14428 (ABBREV_HASH_SIZE): Remove.
14429 (abbrev_table::m_abbrevs): Now an htab_up.
14430
86de1d91
TT
144312020-02-08 Tom Tromey <tom@tromey.com>
14432
14433 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14434 (cutu_reader): Update.
14435 (build_type_psymtabs_1): Update.
14436 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14437 (abbrev_table::alloc_abbrev): Update.
14438 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14439 (abbrev_table::read): New static method, renamed from
14440 abbrev_table_read_table.
14441 (abbrev_table::alloc_abbrev)
14442 (abbrev_table::add_abbrev): Now private.
14443 (abbrev_table::abbrev_table): Now private.
14444 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14445
0335378b
TT
144462020-02-08 Tom Tromey <tom@tromey.com>
14447
14448 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14449 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14450 htab_up.
14451
48b490f2
TT
144522020-02-08 Tom Tromey <tom@tromey.com>
14453
14454 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14455 htab_up.
14456 (lookup_dwo_unit_in_dwp): Update.
14457 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14458 on obstack.
14459
bc68fb19
TT
144602020-02-08 Tom Tromey <tom@tromey.com>
14461
14462 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14463 obstack.
14464
d15acc42
TT
144652020-02-08 Tom Tromey <tom@tromey.com>
14466
14467 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14468 line_header_hash.
14469 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14470 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14471 Change type to htab_up.
14472
eaa5fa8b
TT
144732020-02-08 Tom Tromey <tom@tromey.com>
14474
14475 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14476 htab_up. Don't allocate on obstack.
14477 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14478 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14479 Change type to htab_up.
14480
b0b6a987
TT
144812020-02-08 Tom Tromey <tom@tromey.com>
14482
14483 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14484 Change type to htab_up.
14485 * dwarf2/read.c (create_signatured_type_table_from_index)
14486 (create_signatured_type_table_from_debug_names)
14487 (create_all_type_units, add_type_unit)
14488 (lookup_dwo_signatured_type, lookup_signatured_type)
14489 (process_skeletonless_type_unit): Update.
14490 (create_debug_type_hash_table, create_debug_types_hash_table):
14491 Change type of types_htab.
14492 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14493 htab_up. Don't allocate on obstack.
14494 (create_cus_hash_table): Change type of cus_htab parameter.
14495 (struct dwo_file) <cus, tus>: Now htab_up.
14496 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14497 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14498 (queue_and_load_all_dwo_tus): Update.
14499 * dwarf2/index-write.c (write_gdbindex): Update.
14500 (write_debug_names): Update.
14501
39856def
TT
145022020-02-08 Tom Tromey <tom@tromey.com>
14503
14504 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14505 dwarf2/read.c. Remove "next" member. Add constructor ntad
14506 destructor.
14507 (struct dwarf2_per_objfile) <queue>: New member.
14508 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14509 dwarf2/read.h.
14510 (dwarf2_queue, dwarf2_queue_tail): Remove.
14511 (class dwarf2_queue_guard): Add parameter to constructor. Use
14512 DISABLE_COPY_AND_ASSIGN.
14513 <m_per_objfile>: New member.
14514 <~dwarf2_queue_guard>: Rewrite.
14515 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14516 Update.
14517 (~dwarf2_queue_item): New.
14518
3e225074
TT
145192020-02-08 Tom Tromey <tom@tromey.com>
14520
14521 * dwarf2/read.c (struct die_info) <has_children>: New member.
14522 (dw2_get_file_names_reader): Remove has_children.
14523 (dw2_get_file_names): Update.
14524 (read_cutu_die_from_dwo): Remove has_children.
14525 (cutu_reader::init_tu_and_read_dwo_dies)
14526 (cutu_reader::cutu_reader): Update.
14527 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14528 Remove has_children.
14529 (build_type_psymtabs_1, process_skeletonless_type_unit)
14530 (load_partial_comp_unit, load_full_comp_unit): Update.
14531 (create_dwo_cu_reader): Remove has_children.
14532 (create_cus_hash_table, read_die_and_children): Update.
14533 (read_full_die_1,read_full_die): Remove has_children.
14534 (read_signatured_type): Update.
14535 (class cutu_reader) <has_children>: Remove.
14536
82ca8957
TT
145372020-02-08 Tom Tromey <tom@tromey.com>
14538
14539 * dwarf2/expr.c: Rename from dwarf2expr.c.
14540 * dwarf2/expr.h: Rename from dwarf2expr.h.
14541 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14542 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14543 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14544 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14545 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14546 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14547 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14548 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14549 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14550 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14551 * dwarf2/loc.c: Rename from dwarf2loc.c.
14552 * dwarf2/loc.h: Rename from dwarf2loc.h.
14553 * dwarf2/read.c: Rename from dwarf2read.c.
14554 * dwarf2/read.h: Rename from dwarf2read.h.
14555 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14556 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14557 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14558 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14559 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14560 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14561 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14562 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14563 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14564 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14565 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14566 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14567 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14568 Update.
14569 * Makefile.in (COMMON_SFILES): Update.
14570 (HFILES_NO_SRCDIR): Update.
14571
9e35d499
TT
145722020-02-08 Tom Tromey <tom@tromey.com>
14573
14574 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14575 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14576
1eba2311
TT
145772020-02-08 Tom Tromey <tom@tromey.com>
14578
14579 * dwarf2read.h (struct die_info): Don't declare.
14580
e41c2da2
TT
145812020-02-08 Tom Tromey <tom@tromey.com>
14582
14583 * dwarf2read.h (die_info_ptr): Remove typedef.
14584
4fc6c0d5
TT
145852020-02-08 Tom Tromey <tom@tromey.com>
14586
14587 * dwarf2read.c (read_call_site_scope)
14588 (handle_data_member_location, dwarf2_add_member_fn)
14589 (mark_common_block_symbol_computed, read_common_block)
14590 (attr_to_dynamic_prop, partial_die_info::read)
14591 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14592 (dwarf2_symbol_mark_computed, set_die_type): Update.
14593 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14594 method.
14595 (attr_form_is_block): Don't declare.
14596 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14597
cd6c91b4
TT
145982020-02-08 Tom Tromey <tom@tromey.com>
14599
14600 * dwarf2read.c (dwarf2_find_base_address, )
14601 (read_call_site_scope, rust_containing_type)
14602 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14603 (handle_data_member_location, dwarf2_add_member_fn)
14604 (get_alignment, read_structure_type, process_structure_scope)
14605 (mark_common_block_symbol_computed, read_common_block)
14606 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14607 (partial_die_info::read, read_attribute_value, new_symbol)
14608 (lookup_die_type, dwarf2_get_ref_die_offset)
14609 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14610 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14611 (dwarf2_symbol_mark_computed): Update.
14612 * dwarf2/attribute.h (struct attribute) <value_as_address,
14613 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14614 methods.
14615 (value_as_address, attr_form_is_section_offset)
14616 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14617 * dwarf2/attribute.c (attribute::value_as_address)
14618 (attribute::form_is_section_offset, attribute::form_is_constant)
14619 (attribute::form_is_ref): Now methods.
14620
162dce55
TT
146212020-02-08 Tom Tromey <tom@tromey.com>
14622
14623 * dwarf2read.c (struct attribute, DW_STRING)
14624 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14625 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14626 (attr_form_is_block, attr_form_is_section_offset)
14627 (attr_form_is_constant, attr_form_is_ref): Move.
14628 * dwarf2/attribute.h: New file.
14629 * dwarf2/attribute.c: New file, from dwarf2read.c.
14630 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14631
3054dd54
TT
146322020-02-08 Tom Tromey <tom@tromey.com>
14633
14634 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14635 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14636 Move.
14637 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14638 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14639 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14640 abbrev.c.
14641 * dwarf2/abbrev.h: New file.
14642 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14643 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14644
96b79293
TT
146452020-02-08 Tom Tromey <tom@tromey.com>
14646
14647 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14648 (dwarf2_section_size, dwarf2_get_section_info)
14649 (create_signatured_type_table_from_debug_names)
14650 (create_addrmap_from_aranges, read_debug_names_from_section)
14651 (get_gdb_index_contents_from_section, read_comp_unit_head)
14652 (error_check_comp_unit_head, read_abbrev_offset)
14653 (create_debug_type_hash_table, init_cu_die_reader)
14654 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14655 (read_comp_units_from_section, create_cus_hash_table)
14656 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14657 (create_dwp_v2_section, dwarf2_rnglists_process)
14658 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14659 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14660 (read_indirect_string_from_dwz, read_addr_index_1)
14661 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14662 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14663 (fill_in_loclist_baton): Update.
14664 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14665 get_containing_section, get_bfd_owner, get_bfd_section,
14666 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14667 (dwarf2_read_section, get_section_name, get_section_file_name)
14668 (get_containing_section, get_section_bfd_owner)
14669 (get_section_bfd_section, get_section_name, get_section_file_name)
14670 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14671 declare.
14672 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14673 (dwarf2_section_info::get_bfd_owner)
14674 (dwarf2_section_info::get_bfd_section)
14675 (dwarf2_section_info::get_name)
14676 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14677 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14678 (dwarf2_section_info::read): Now methods.
14679 * dwarf-index-write.c (class debug_names): Update.
14680
2c86cff9
TT
146812020-02-08 Tom Tromey <tom@tromey.com>
14682
14683 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14684 Move to dwarf2/section.h.
14685 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14686 (get_section_bfd_section, get_section_name)
14687 (get_section_file_name, get_section_id, get_section_flags)
14688 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14689 dwarf2/section.c.
14690 * dwarf2/section.h: New file.
14691 * dwarf2/section.c: New file, from dwarf2read.c.
14692 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14693
f4382c45
TT
146942020-02-08 Tom Tromey <tom@tromey.com>
14695
14696 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14697 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14698 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14699 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14700 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14701 * dwarf2/leb.h: New file, from dwarf2read.c.
14702 * dwarf2/leb.c: New file, from dwarf2read.c.
14703 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14704 Remove.
14705 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14706 (COMMON_SFILES): Add dwarf2/leb.c.
14707
01840b7a
JB
147082020-02-08 Joel Brobecker <brobecker@adacore.com>
14709
14710 GDB 9.1 released.
14711
dfcb27e4
IB
147122020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14713
14714 PR gdb/25190:
aac66a4c
SM
14715 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14716 * gdb/remote.c (remote_console_output): Update.
14717 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14718 (ui_file_puts): ...this.
14719 * gdb/ui-file.h (ui_file_puts): Add declaration.
14720 * gdb/utils.c (emit_style_escape): Update.
14721 (flush_wrap_buffer): Update.
14722 (fputs_maybe_filtered): Update.
14723 (fputs_unfiltered): Add function.
dfcb27e4 14724
faa17681
IB
147252020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14726
aac66a4c
SM
14727 * gdb/event-loop.c (gdb_wait_for_event): Update.
14728 * gdb/printcmd.c (printf_command): Update.
14729 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14730 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14731 (gdb_os_flush_stderr): Update.
14732 * gdb/remote.c (remote_console_output): Update.
14733 * gdb/ui-file.c (gdb_flush): Rename to...
14734 (ui_file_flush): ...this.
14735 (stderr_file::write): Update.
14736 (stderr_file::puts): Update.
14737 * gdb/ui-file.h (gdb_flush): Rename to...
14738 (ui_file_flush): ...this.
14739 * gdb/utils.c (gdb_flush): Add function.
14740 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14741
5abbbe1d
TT
147422020-02-07 Tom Tromey <tromey@adacore.com>
14743
14744 PR breakpoints/24915:
14745 * source.c (find_and_open_source): Do not check basenames_may_differ.
14746
919adfe8
TT
147472020-02-07 Tom Tromey <tom@tromey.com>
14748
14749 * README: Update gdbserver documentation.
14750 * gdbserver: Move to top level.
14751 * configure.tgt (build_gdbserver): Remove.
14752 * configure.ac: Remove --enable-gdbserver.
14753 * configure: Rebuild.
14754 * Makefile.in (distclean): Don't mention gdbserver.
14755
1d5d29e7
SV
147562020-02-06 Shahab Vahedi <shahab@synopsys.com>
14757
14758 * source-cache.c (source_cache::ensure): Surround
14759 get_plain_source_lines with a try/catch.
14760 (source_cache::get_line_charpos): Get rid of try/catch
14761 and only check for the return value of "ensure".
14762 * tui/tui-source.c (tui_source_window::set_contents):
14763 Simplify "nlines" calculation.
14764
6eb1129c
SV
147652020-02-06 Shahab Vahedi <shahab@synopsys.com>
14766
14767 * MAINTAINERS (Write After Approval): Add myself.
14768
c6a42d11
CB
147692020-02-05 Christian Biesinger <cbiesinger@google.com>
14770
14771 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14772 function call.
14773
c8ecdda6
CB
147742020-02-05 Christian Biesinger <cbiesinger@google.com>
14775
14776 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14777
f6480e70
MR
147782020-02-05 Maciej W. Rozycki <macro@wdc.com>
14779
14780 * nat/riscv-linux-tdesc.h: New file.
14781 * nat/riscv-linux-tdesc.c: New file, taking code from...
14782 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14783 ... here.
14784 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14785 NATDEPFILES.
14786
dcc9fbc6
AB
147872020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14788
14789 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14790 we don't set the fake simulator ptid to the null_ptid.
14791
719546c4
SM
147922020-02-03 Simon Marchi <simon.marchi@efficios.com>
14793
14794 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14795 * gdbthread.h (class thread_info) <resumed>: Likewise.
14796 * infrun.c (resume_1): Likewise.
14797 (proceed): Likewise.
14798 (infrun_thread_stop_requested): Likewise.
14799 (stop_all_threads): Likewise.
14800 (handle_inferior_event): Likewise.
14801 (restart_threads): Likewise.
14802 (finish_step_over): Likewise.
14803 (keep_going_stepped_thread): Likewise.
14804 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14805 (linux_handle_extended_wait): Likewise.
14806 * record-btrace.c (get_thread_current_frame_id): Likewise.
14807 * record-full.c (record_full_wait_1): Likewise.
14808 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14809 * target.c (target_resume): Likewise.
14810 * thread.c (set_running_thread): Likewise.
14811
e409c542
AKS
148122020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14813
14814 * f-valprint.c (f77_print_array_1): Changed datatype of index
14815 variable to LONGEST from int to enable it to contain bound
14816 values correctly.
14817
ee98c0da
MR
148182020-02-03 Maciej W. Rozycki <macro@wdc.com>
14819
14820 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14821 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14822 offsets according to FLEN determined.
14823 (riscv_linux_nat_target::read_description): Determine FLEN
14824 dynamically.
14825 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14826 according to FLEN determined.
14827 (riscv_linux_nat_target::store_registers): Likewise.
14828
aa66aac4
SV
148292020-02-01 Shahab Vahedi <shahab@synopsys.com>
14830
14831 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14832 when reg->group is empty and reggroup is not.
14833
fd9faca8
TT
148342020-01-31 Tom Tromey <tromey@adacore.com>
14835
14836 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14837 Call beneath target's mourn_inferior after unpushing.
14838
42330a68
AB
148392020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14840
14841 PR tui/9765
14842 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14843 have enough lines to fill the screen, still return the lowest
14844 address we found.
14845
7a27a45b
AB
148462020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14847
14848 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14849 '-', '<', and '>' commands.
14850
c47f70e2
PA
148512020-01-29 Pedro Alves <palves@redhat.com>
14852 Sergio Durigan Junior <sergiodj@redhat.com>
14853
14854 * infcmd.c (construct_inferior_arguments): Assert that
14855 'argc' is greater than 0.
14856
5133a315
LM
148572020-01-29 Luis Machado <luis.machado@linaro.org>
14858
14859 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14860 (BRK_INSN_MASK): Define to 0xd4200000.
14861 (aarch64_program_breakpoint_here_p): New function.
14862 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14863 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14864 breakpoint.c.
14865 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14866 breakpoint.h
14867 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14868 call gdbarch_program_breakpoint_here_p.
14869 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14870 default_program_breakpoint_here_p, changed return type to bool and
14871 simplified.
14872 * breakpoint.h (program_breakpoint_here): Moved prototype to
14873 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14874 return type to bool.
14875 * gdbarch.c: Regenerate.
14876 * gdbarch.h: Regenerate.
14877 * gdbarch.sh (program_breakpoint_here_p): New method.
14878 * infrun.c (handle_signal_stop): Call
14879 gdbarch_program_breakpoint_here_p.
14880
168f8c6b
TT
148812020-01-26 Tom Tromey <tom@tromey.com>
14882
14883 * ctfread.c (struct ctf_fp_info): Reindent.
14884 (_initialize_ctfread): Remove.
14885
128a391f
TT
148862020-01-26 Tom Tromey <tom@tromey.com>
14887
14888 * psymtab.c (partial_map_expand_apply)
14889 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14890 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14891 (psym_print_stats, psym_expand_symtabs_for_function)
14892 (psym_map_symbol_filenames, psym_map_matching_symbols)
14893 (psym_expand_symtabs_matching)
14894 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14895 (maintenance_check_psymtabs): Use new methods.
14896 * psympriv.h (struct partial_symtab) <readin_p,
14897 get_compunit_symtab>: New methods.
14898 <readin, compunit_symtab>: Remove members.
14899 (struct standard_psymtab): New.
14900 (struct legacy_psymtab): Derive from standard_psymtab.
14901 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14902 standard_psymtab.
14903 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14904
0494dbec
TT
149052020-01-26 Tom Tromey <tom@tromey.com>
14906
14907 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14908 read_dependencies. Add assert.
14909 * psymtab.c (partial_symtab::read_dependencies): New method.
14910 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14911 method.
14912 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14913 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14914 read_dependencies.
14915 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14916 Add assert.
14917
8566b89b
TT
149182020-01-26 Tom Tromey <tom@tromey.com>
14919
14920 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14921 Call expand_psymtab.
14922 (xcoff_read_symtab): Call expand_psymtab.
14923 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14924 legacy_expand_psymtab.
14925 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14926 method.
14927 (struct legacy_psymtab) <expand_psymtab>: Implement.
14928 <legacy_expand_psymtab>: New member.
14929 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14930 (parse_partial_symbols): Set legacy_expand_psymtab.
14931 (psymtab_to_symtab_1): Change argument order. Call
14932 expand_psymtab.
14933 (new_psymtab): Set legacy_expand_psymtab.
14934 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14935 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14936 expand_psymtab.
14937 (dwarf2_psymtab::expand_psymtab): Rename from
14938 psymtab_to_symtab_1. Call expand_psymtab.
14939 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14940 (dbx_end_psymtab): Likewise.
14941 (dbx_psymtab_to_symtab_1): Change argument order. Call
14942 expand_psymtab.
14943 (dbx_read_symtab): Call expand_psymtab.
14944 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14945 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14946 (ctf_psymtab::read_symtab): Call expand_psymtab.
14947
077cbab2
TT
149482020-01-26 Tom Tromey <tom@tromey.com>
14949
14950 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14951 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14952 messages.
14953 * mdebugread.c (mdebug_read_symtab): Remove prints.
14954 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14955 assert.
14956 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14957
891813be
TT
149582020-01-26 Tom Tromey <tom@tromey.com>
14959
14960 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14961 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14962 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14963 legacy_symtab.
14964 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14965 * psymtab.c (psymtab_to_symtab): Call method.
14966 (dump_psymtab): Update.
14967 * psympriv.h (struct partial_symtab): Add virtual destructor.
14968 <read_symtab>: New method.
14969 (struct legacy_symtab): New.
14970 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14971 (struct pst_map) <pst>: Now a legacy_psymtab.
14972 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14973 (new_psymtab): Use legacy_psymtab.
14974 * dwarf2read.h (struct dwarf2_psymtab): New.
14975 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14976 * dwarf2read.c (dwarf2_create_include_psymtab)
14977 (dwarf2_build_include_psymtabs, create_type_unit_group)
14978 (create_partial_symtab, process_psymtab_comp_unit_reader)
14979 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14980 (set_partial_user): Use dwarf2_psymtab.
14981 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14982 (psymtab_to_symtab_1, process_full_comp_unit)
14983 (process_full_type_unit, dwarf2_ranges_read)
14984 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14985 (dwarf_decode_lines): Use dwarf2_psymtab.
14986 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14987 (add_address_entry_worker, write_one_signatured_type)
14988 (recursively_count_psymbols, recursively_write_psymbols)
14989 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14990 (write_debug_names): Likewise.
14991 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14992 <pst>: Now a legacy_psymtab.
14993 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14994 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14995 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14996 * ctfread.c (struct ctf_psymtab): New.
14997 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14998 ctf_psymtab.
14999 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15000 (create_partial_symtab): Return a ctf_psymtab.
15001 (scan_partial_symbols): Update.
15002
c3693a1d
TT
150032020-01-26 Tom Tromey <tom@tromey.com>
15004
15005 * xcoffread.c (xcoff_start_psymtab): Use new.
15006 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15007 renamed from start_psymtab_common.
15008 * psympriv.h (struct partial_symtab): Add new constructor.
15009 (start_psymtab_common): Don't declare.
15010 * mdebugread.c (parse_partial_symbols): Use new.
15011 * dwarf2read.c (create_partial_symtab): Use new.
15012 * dbxread.c (start_psymtab): Use new.
15013 * ctfread.c (create_partial_symtab): Use new.
15014
32caafd0
TT
150152020-01-26 Tom Tromey <tom@tromey.com>
15016
15017 * xcoffread.c (xcoff_end_psymtab): Use new.
15018 * psymtab.c (start_psymtab_common): Use new.
15019 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15020 Update.
15021 * psympriv.h (struct partial_symtab): Add parameters to
15022 constructor. Don't inline.
15023 (allocate_psymtab): Don't declare.
15024 * mdebugread.c (new_psymtab): Use new.
15025 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15026 * dbxread.c (dbx_end_psymtab): Use new.
15027
abaa2f23
TT
150282020-01-26 Tom Tromey <tom@tromey.com>
15029
15030 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15031 allocate_psymtab. Update documentation.
15032 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15033 allocate_psymtab. Do not use new.
15034 (allocate_psymtab): Use new. Update.
15035
6d94535f
TT
150362020-01-26 Tom Tromey <tom@tromey.com>
15037
15038 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15039 * psymtab.c (psym_print_stats): Update.
15040 * psympriv.h (struct partial_symtab) <readin,
15041 psymtabs_addrmap_supported, anonymous>: Now bool.
15042 * mdebugread.c (psymtab_to_symtab_1): Update.
15043 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15044 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15045 (process_full_comp_unit, process_full_type_unit): Update.
15046 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15047 * ctfread.c (psymtab_to_symtab): Update.
15048
6f17252b
TT
150492020-01-26 Tom Tromey <tom@tromey.com>
15050
15051 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15052 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15053 * psymtab.c (psymtab_storage): Delete psymtabs.
15054 (psymtab_storage::allocate_psymtab): Use new.
15055 (psymtab_storage::discard_psymtab): Use delete.
15056 * psympriv.h (struct partial_symtab): Add constructor and
15057 initializers.
15058
f6f1cebc
TT
150592020-01-26 Tom Tromey <tom@tromey.com>
15060
15061 * machoread.c: Do not include psympriv.h.
15062
e47e48f6
PW
150632020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15064
15065 * NEWS: Mention the new option and the set/show commands.
15066
a2fedca9
PW
150672020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15068
15069 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15070 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15071 (validate_exec_file): New variables, enums, functions.
15072 (exec_file_locate_attach, print_section_info): Style the filenames.
15073 (_initialize_exec): Install show_exec_file_mismatch_command and
15074 set_exec_file_mismatch_command.
15075 * gdbcore.h (validate_exec_file): Declare.
15076 * infcmd.c (attach_command): Call validate_exec_file.
15077 * remote.c ( remote_target::remote_add_inferior): Likewise.
15078
7ffa82e1
AB
150792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15080
15081 * frame.c (find_frame_sal): Move call to get_next_frame into more
15082 inner scope.
15083 * inline-frame.c (inilne_state) <inline_state>: Update argument
15084 types.
15085 (inilne_state) <skipped_symbol>: Rename to...
15086 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15087 (skip_inline_frames): Build vector of skipped symbols and use this
15088 to reate the inline_state.
15089 (inline_skipped_symbol): Add a comment and some assertions, fetch
15090 skipped symbol from the list.
15091
3d92a3e3
AB
150922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15093
15094 * buildsym.c (lte_is_less_than): Delete.
15095 (buildsym_compunit::end_symtab_with_blockvector): Create local
15096 lambda function to sort line table entries, and use
15097 std::stable_sort instead of std::sort.
15098 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15099 markers when looking for a previous line.
15100
94a72be7
AB
151012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15102
15103 * dwarf2read.c (lnp_state_machine::record_line): Include
15104 end_sequence parameter in debug print out. Record the line if we
15105 are at an end_sequence marker even if it's not the start of a
15106 statement.
15107 * symmisc.c (maintenance_print_one_line_table): Print end of
15108 sequence markers with 'END' not '0'.
15109
53af73bf
PA
151102020-01-24 Pedro Alves <palves@redhat.com>
15111
15112 PR gdb/25410
15113 * thread.c (scoped_restore_current_thread::restore): Use
15114 switch_to_inferior_no_thread.
15115 * exec.c: Include "progspace-and-thread.h".
15116 (add_target_sections, remove_target_sections):
15117 scoped_restore_current_pspace_and_thread instead of
15118 scoped_restore_current_thread.
15119 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15120 and aspace to the inferior before calling clone_program_space.
15121 Remove stale comment.
15122
3050c6f4
CB
151232020-01-24 Christian Biesinger <cbiesinger@google.com>
15124
15125 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15126 (arm_netbsd_nat_target::fetch_registers): ...this.
15127 (arm_nbsd_nat_target::store_registers): Rename to...
15128 (arm_netbsd_nat_target::store_registers): ...this.
15129
73685c7e
CB
151302020-01-24 Christian Biesinger <cbiesinger@google.com>
15131
15132 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15133 register_t.
15134
89203d40
CB
151352020-01-24 Christian Biesinger <cbiesinger@google.com>
15136
15137 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15138 Update comment.
15139 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15140 Likewise.
15141 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15142 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15143 the correct replacement (iterate_over_regset_sections).
15144 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15145 Update comment.
15146
1ba1ac88
AB
151472020-01-24 Graham Markall <graham.markall@embecosm.com>
15148
15149 PR gdb/23718
15150 * gdb/python/python.c (execute_gdb_command): Call
15151 async_enable_stdin in catch block.
15152
f3364a6d
AB
151532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15154
15155 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15156 SWITCH_THRU_ALL_UIS.
15157
733d0a67
AB
151582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15159
15160 PR tui/9765
15161 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15162 comment, add extra parameter, and update to store previous symbol
15163 when appropriate.
15164 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15165 add extra parameter.
15166 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15167 remove unneeded parameter, add try/catch around gdb_print_insn,
15168 rewrite to add items to asm_lines vector.
15169 (tui_find_backward_disassembly_start_address): New function.
15170 (tui_find_disassembly_address): Updated throughout.
15171 (tui_disasm_window::set_contents): Update for changes to
15172 tui_disassemble.
15173 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15174 number of lines to scroll.
15175
b3b3bada
SM
151762020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15177
15178 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15179 (SECT_OFF_DATA): Likewise.
15180 (SECT_OFF_RODATA): Likewise.
15181 (SECT_OFF_TEXT): Likewise.
15182 (SECT_OFF_BSS): Likewise.
15183 (struct objfile) <text_section_offset, data_section_offset>: New
15184 methods.
15185 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15186 objfile::text_section_offset.
15187 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15188 * coffread.c (coff_symtab_read): Likewise.
15189 (enter_linenos): Likewise.
15190 (process_coff_symbol): Likewise.
15191 * ctfread.c (get_objfile_text_range): Likewise.
15192 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15193 Use objfile::data_section_offset.
15194 * dwarf2-frame.c (execute_cfa_program): Use
15195 objfile::text_section_offset.
15196 (dwarf2_frame_find_fde): Likewise.
15197 * dwarf2read.c (create_addrmap_from_index): Likewise.
15198 (create_addrmap_from_aranges): Likewise.
15199 (dw2_find_pc_sect_compunit_symtab): Likewise.
15200 (process_psymtab_comp_unit_reader): Likewise.
15201 (add_partial_symbol): Likewise.
15202 (add_partial_subprogram): Likewise.
15203 (process_full_comp_unit): Likewise.
15204 (read_file_scope): Likewise.
15205 (read_func_scope): Likewise.
15206 (read_lexical_block_scope): Likewise.
15207 (read_call_site_scope): Likewise.
15208 (dwarf2_rnglists_process): Likewise.
15209 (dwarf2_ranges_process): Likewise.
15210 (dwarf2_ranges_read): Likewise.
15211 (dwarf_decode_lines_1): Likewise.
15212 (new_symbol): Likewise.
15213 (dwarf2_fetch_die_loc_sect_off): Likewise.
15214 (dwarf2_per_cu_text_offset): Likewise.
15215 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15216 * hppa-tdep.c (read_unwind_info): Likewise.
15217 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15218 * psympriv.h (struct partial_symtab): Likewise.
15219 * psymtab.c (find_pc_sect_psymtab): Likewise.
15220 * solib-svr4.c (enable_break): Likewise.
15221 * stap-probe.c (relocate_address): Use
15222 objfile::data_section_offset.
15223 * xcoffread.c (enter_line_range): Use
15224 objfile::text_section_offset.
15225 (read_xcoff_symtab): Likewise.
15226
ab53f382
SM
152272020-01-23 Simon Marchi <simon.marchi@efficios.com>
15228
15229 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15230 declaration to narrower scopes.
15231
e7eee665
SM
152322020-01-23 Simon Marchi <simon.marchi@efficios.com>
15233
15234 * darwin-nat.h (struct darwin_exception_msg, enum
15235 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15236 Move up.
15237 (class darwin_nat_target) <wait_1, check_new_threads,
15238 decode_exception_message, decode_message, stop_inferior,
15239 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15240 * darwin-nat.c (darwin_check_new_threads): Rename to...
15241 (darwin_nat_target::check_new_threads): ... this.
15242 (darwin_suspend_inferior_it): Remove.
15243 (darwin_decode_exception_message): Rename to...
15244 (darwin_nat_target::decode_exception_message): ... this.
15245 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15246 (darwin_decode_message): Rename to...
15247 (darwin_nat_target::decode_message): ... this.
15248 (cancel_breakpoint): Rename to...
15249 (darwin_nat_target::cancel_breakpoint): ... this.
15250 (darwin_wait): Rename to...
15251 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15252 instead of iterate_over_inferiors.
15253 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15254 (darwin_stop_inferior): Rename to...
15255 (darwin_nat_target::stop_inferior): ... this.
15256 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15257 (darwin_init_thread_list): Rename to...
15258 (darwin_nat_target::init_thread_list): ... this.
15259 (darwin_ptrace_him): Rename to...
15260 (darwin_nat_target::ptrace_him): ... this.
15261 (darwin_nat_target::create_inferior): Pass lambda function to
15262 fork_inferior.
15263 (darwin_nat_target::detach): Call stop_inferior instead of
15264 darwin_stop_inferior.
15265 * fork-inferior.h (fork_inferior): Change init_trace_fun
15266 parameter to gdb::function_view.
15267 * fork-inferior.c (fork_inferior): Likewise.
15268
c162ed3e
HD
152692020-01-23 Hannes Domani <ssbssa@yahoo.de>
15270
15271 * i386-cygwin-tdep.c (core_process_module_section): Update.
15272 * windows-nat.c (struct lm_info_windows): Add text_offset.
15273 (windows_xfer_shared_libraries): Update.
15274 * windows-tdep.c (windows_xfer_shared_library):
15275 Add text_offset_cached argument.
15276 * windows-tdep.h (windows_xfer_shared_library): Update.
15277
a1237872
SM
152782020-01-21 Simon Marchi <simon.marchi@efficios.com>
15279
15280 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15281
b3ee6dd9
SM
152822020-01-21 Simon Marchi <simon.marchi@efficios.com>
15283
15284 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15285 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15286 replace with range-based for.
15287 (gdbsim_interrupt_inferior): Remove.
15288 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15289 with a range-based for. Inline code from
15290 gdbsim_interrupt_inferior.
15291
f9fac3c8
SM
152922020-01-21 Simon Marchi <simon.marchi@efficios.com>
15293
15294 * infrun.c (proceed): Fix indentation.
15295
f6474de9
TT
152962020-01-21 Tom Tromey <tromey@adacore.com>
15297
15298 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15299 * python/python.c (python_extension_ops): Update.
15300 (gdbpy_colorize): New function.
15301 * python/lib/gdb/__init__.py (colorize): New function.
15302 * extension.h (ext_lang_colorize): Declare.
15303 * extension.c (ext_lang_colorize): New function.
15304 * extension-priv.h (struct extension_language_ops) <colorize>: New
15305 member.
15306 * cli/cli-style.c (_initialize_cli_style): Update help text.
15307
f0c702d4
LM
153082020-01-21 Luis Machado <luis.machado@linaro.org>
15309
15310 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15311 <cond>: Change type to bool.
15312 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15313 (aarch64_displaced_step_cb): Likewise.
15314 (aarch64_displaced_step_tb): Likewise.
15315
1ab139e5
LM
153162020-01-21 Luis Machado <luis.machado@linaro.org>
15317
15318 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15319 output.
15320
0c271889
LM
153212020-01-21 Luis Machado <luis.machado@linaro.org>
15322
15323 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15324 <pc_adjust>: Adjust the documentation.
15325 (aarch64_displaced_step_fixup): Check if PC really moved before
15326 adjusting it.
15327
4d89c1c7
TT
153282020-01-19 Tom Tromey <tom@tromey.com>
15329
15330 * disasm.c (~gdb_disassembler): New destructor.
15331 (gdb_buffered_insn_length): Call disassemble_free_target.
15332 * disasm.h (class gdb_disassembler): Declare destructor. Use
15333 DISABLE_COPY_AND_ASSIGN.
15334
c0ab21c2
TT
153352020-01-19 Tom Tromey <tom@tromey.com>
15336
15337 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15338 (die_reader_func_ftype): Remove.
15339 (cutu_reader): New class.
15340 (dw2_get_file_names_reader): Remove "data" parameter.
15341 (dw2_get_file_names): Use cutu_reader.
15342 (create_debug_type_hash_table): Update.
15343 (read_cutu_die_from_dwo): Update comment.
15344 (lookup_dwo_unit): Add dwo_name parameter.
15345 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15346 die_reader_func_ftype and data parameters.
15347 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15348 Remove die_reader_func_ftype and data parameters.
15349 (~cutu_reader): New; from init_cutu_and_read_dies.
15350 (cutu_reader::cutu_reader): Rename from
15351 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15352 and data parameters.
15353 (init_cutu_and_read_dies_simple): Remove.
15354 (struct process_psymtab_comp_unit_data): Remove.
15355 (process_psymtab_comp_unit_reader): Remove data parameter; add
15356 want_partial_unit and pretend_language parameters.
15357 (process_psymtab_comp_unit): Use cutu_reader.
15358 (build_type_psymtabs_reader): Remove data parameter.
15359 (build_type_psymtabs_1): Use cutu_reader.
15360 (process_skeletonless_type_unit): Likewise.
15361 (load_partial_comp_unit_reader): Remove.
15362 (load_partial_comp_unit): Use cutu_reader.
15363 (load_full_comp_unit_reader): Remove.
15364 (load_full_comp_unit): Use cutu_reader.
15365 (struct create_dwo_cu_data): Remove.
15366 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15367 dwo_unit parameters.
15368 (create_cus_hash_table): Use cutu_reader.
15369 (struct dwarf2_read_addr_index_data): Remove.
15370 (dwarf2_read_addr_index_reader): Remove.
15371 (dwarf2_read_addr_index): Use cutu_reader.
15372 (read_signatured_type_reader): Remove.
15373 (read_signatured_type): Use cutu_reader.
15374
45bbae5c
TT
153752020-01-19 Tom Tromey <tom@tromey.com>
15376
15377 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15378 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15379 (tui_wrefresh): Declare.
15380 * tui/tui-wingeneral.c (suppress_output): New global.
15381 (tui_suppress_output, ~tui_suppress_output): New constructor and
15382 destructor.
15383 (tui_wrefresh): New function.
15384 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15385 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15386 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15387 method.
15388 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15389 tui_wrefresh.
15390 (tui_data_window::no_refresh): New method.
15391 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15392 (tui_reg_command): Use tui_suppress_output
15393 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15394 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15395 method.
15396 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15397
4f13c1c0
TT
153982020-01-19 Tom Tromey <tom@tromey.com>
15399
15400 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15401 Handle case where symtab is null.
15402
fa47e446
SM
154032020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15404
15405 * linux-fork.c (one_fork_p): Simplify.
15406
26f42329
SM
154072020-01-17 Simon Marchi <simon.marchi@efficios.com>
15408
15409 * top.c (struct qt_args): Remove.
15410 (kill_or_detach): Change return type to void, replace `void *`
15411 parameter with a proper one.
15412 (print_inferior_quit_action): Likewise.
15413 (quit_confirm): Use range-based for loop to iterate over inferiors.
15414 (quit_force): Likewise.
15415
a9ac81b1
SM
154162020-01-17 Simon Marchi <simon.marchi@efficios.com>
15417
15418 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15419 `void *` parameter with proper parameters.
15420 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15421 (print_one_inferior): Change return type to void, replace `void *`
15422 parameter with proper parameters.
15423 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15424 inferiors.
15425 (get_other_inferior): Remove.
15426 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15427 inferiors.
15428
788eca49
SM
154292020-01-17 Simon Marchi <simon.marchi@efficios.com>
15430
15431 * mi/mi-interp.c (report_initial_inferior): Remove.
15432 (mi_interp::init): Use range-based for to iterate over inferiors.
15433
d9bc85b6
SM
154342020-01-17 Simon Marchi <simon.marchi@efficios.com>
15435
15436 * python/py-inferior.c (build_inferior_list): Remove.
15437 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15438
40c94099
CB
154392020-01-16 Christian Biesinger <cbiesinger@google.com>
15440
15441 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15442 (btrace_stitch_trace): Likewise.
15443 * charset.c (intermediate_encoding): Likewise (vaild).
15444 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15445 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15446 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15447
e0cdfe3c
HD
154482020-01-16 Hannes Domani <ssbssa@yahoo.de>
15449
15450 * windows-tdep.c (windows_get_tlb_type):
15451 Add rtl_user_process_parameters type.
15452
790f1718 154532020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15454 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15455
15456 PR build/24805
15457 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15458 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15459 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15460 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15461 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15462 (ps_plog): Redeclare exported functions with default visibility.
15463
3112ed97
NA
154642020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15465
15466 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15467 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15468
8dc3273e
SM
154692020-01-15 Simon Marchi <simon.marchi@efficios.com>
15470
15471 * infcmd.c (post_create_inferior): Use get_thread_regcache
15472 instead of get_current_regcache.
15473
ff47f4f0
TT
154742020-01-14 Tom Tromey <tom@tromey.com>
15475
15476 PR symtab/12535:
15477 * python/python.c (gdbpy_decode_line): Treat empty string the same
15478 as no argument.
15479
975f45b7
TT
154802020-01-14 Tom Tromey <tom@tromey.com>
15481
15482 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15483
25e57356
TT
154842020-01-14 Tom Tromey <tom@tromey.com>
15485
15486 * nat/linux-btrace.c: Don't include <config.h>.
15487 * nat/linux-ptrace.c: Don't include <config.h>.
15488 * nat/x86-linux-dregs.c: Don't include <config.h>.
15489
05ea2a05
TT
154902020-01-14 Tom Tromey <tom@tromey.com>
15491
15492 * configure: Rebuild.
15493 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15494
01027315
TT
154952020-01-14 Tom Tromey <tom@tromey.com>
15496
15497 * nat/x86-linux-dregs.c: Include configh.h.
15498 * nat/linux-ptrace.c: Include configh.h.
15499 * nat/linux-btrace.c: Include configh.h.
15500 * defs.h: Include config.h, bfd.h.
15501 * configure.ac: Don't source common.host.
15502 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15503 * configure: Rebuild.
15504 * acinclude.m4: Update path.
15505 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15506 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15507 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15508 (CLIBS): Add LIBSUPPORT.
15509 (CDEPS): Likewise.
15510 (COMMON_SFILES): Remove gdbsupport files.
15511 (HFILES_NO_SRCDIR): Likewise.
15512 (stamp-version): Update path to create-version.sh.
15513 (ALLDEPFILES): Remove gdbsupport files.
15514
b2ceabe8
TT
155152020-01-14 Tom Tromey <tom@tromey.com>
15516
15517 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15518 USE_WIN32API when needed.
15519 * configure.ac (USE_WIN32API): Don't define.
15520 (WIN32LIBS): Use WIN32APILIBS.
15521 * configure: Rebuild.
15522
25c51f71
TT
155232020-01-14 Tom Tromey <tom@tromey.com>
15524
15525 * configure: Rebuild.
15526 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15527
717c684d
BE
155282020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15529
15530 * skip.c (skip_function_command): Make skip w/o arguments use the
15531 name of the inlined function if pc is inside any inlined function.
15532
7da6a5b9
LM
155332020-01-14 Luis Machado <luis.machado@linaro.org>
15534
15535 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15536 * infrun.c (resume_1): Likewise.
15537 (handle_inferior_event): Remove stale comment.
15538 * linux-nat.c (linux_nat_target::resume): Update comments.
15539 (save_stop_reason): Likewise.
15540 (linux_nat_filter_event): Likewise.
15541 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15542
44e4c775
AB
155432020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15544
15545 * elfread.c (record_minimal_symbol): Set section index to 0 for
15546 non-allocatable sections.
15547
18a8505e
AT
15548
155492020-01-13 Ali Tamur <tamur@google.com>
15550
15551 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15552 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15553 to gdb::optional. Update comments.
15554 (dwo_file): Update comments.
15555 (read_attribute): Update API to take an additional out parameter,
15556 need_reprocess. This is used to mark attributes that need other
15557 attributes (e.g. str_offsets_base) for correct computation which may not
15558 have been read yet.
15559 (read_attribute_reprocess): New function declaration.
15560 (read_addr_index): Likewise.
15561 (read_dwo_str_index): Likewise.
15562 (read_stub_str_index): Likewise.
15563 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15564 (lookup_addr_base): New function definition.
15565 (lookup_ranges_base): Likewise.
15566 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15567 lookup_ranges_base.
15568 (init_cutu_and_read_dies): Update comments.
15569 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15570 unit. This is used to inherit parent's str_offsets_base and addr_base.
15571 Update comments.
15572 (init_cutu_and_read_dies_simple): Reflect API changes.
15573 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15574 (create_cus_hash_table): Change API to take parent compile unit.
15575 Reflect API changes.
15576 (open_and_init_dwo_file): Reflect API changes.
15577 (dwarf2_get_pc_bounds): Update comments.
15578 (dwarf2_record_block_ranges): Likewise.
15579 (read_full_die_1): Change implementation to reprocess attributes that
15580 need str_offsets_base and addr_base.
15581 (partial_die_info::read): Likewise.
15582 (read_attribute_reprocess): New function definition.
15583 (read_attribute_value): Change API to take an additional out parameter,
15584 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15585 when a non-dwo compile unit has index based attributes.
15586 (read_attribute): Reflect API changes.
15587 (read_addr_index_1): Reflect API changes. Update comments.
15588 (dwarf2_read_addr_index_data): Reflect API changes.
15589 (dwarf2_read_addr_index): Likewise.
15590 (read_str_index): Change API and implementation. This becomes a helper
15591 to be used by the new string index related methods. Update error
15592 message and comments.
15593 (read_dwo_str_index): New function definition.
15594 (read_stub_str_index): Likewise.
15595 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15596 * symfile.h (dwarf2_debug_sections): Likewise.
15597 * xcoffread.c (dwarf2_debug_sections): Likewise.
15598
0cac9354
SM
155992020-01-13 Simon Marchi <simon.marchi@efficios.com>
15600
15601 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15602 core_reg_sect type to gdb_byte *.
15603 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15604 * cris-tdep.c (fetch_core_registers): Likewise.
15605 * corelow.c (core_target::get_core_register_section): Change
15606 type of `contents` to gdb::byte_vector.
15607
9a6d629c
AB
156082020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15609
15610 * tui/tui-wingeneral.c (box_win): Position the title in the center
15611 of the border.
15612
d8b2f9e3
SM
156132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15614
15615 * corelow.c (core_target::get_core_register_section): Use
15616 std::vector instead of alloca.
15617
bb564c58
SM
156182020-01-13 Simon Marchi <simon.marchi@efficios.com>
15619
15620 * warning.m4: Add -Wmissing-declarations to build_warnings.
15621 * configure: Re-generate.
15622
6b366111
SM
156232020-01-13 Simon Marchi <simon.marchi@efficios.com>
15624
15625 * python/python.c (init__gdb_module): Add declaration.
15626
6c265988
SM
156272020-01-13 Simon Marchi <simon.marchi@efficios.com>
15628
15629 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15630 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15631 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15632 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15633 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15634 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15635 * ada-exp.y (_initialize_ada_exp): Add declaration.
15636 * ada-lang.c (_initialize_ada_language): Add declaration.
15637 * ada-tasks.c (_initialize_tasks): Add declaration.
15638 * agent.c (_initialize_agent): Add declaration.
15639 * aix-thread.c (_initialize_aix_thread): Add declaration.
15640 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15641 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15642 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15643 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15644 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15645 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15646 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15647 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15648 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15649 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15650 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15651 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15652 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15653 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15654 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15655 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15656 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15657 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15658 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15659 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15660 * annotate.c (_initialize_annotate): Add declaration.
15661 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15662 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15663 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15664 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15665 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15666 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15667 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15668 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15669 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15670 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15671 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15672 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15673 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15674 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15675 * auto-load.c (_initialize_auto_load): Add declaration.
15676 * auxv.c (_initialize_auxv): Add declaration.
15677 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15678 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15679 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15680 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15681 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15682 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15683 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15684 * breakpoint.c (_initialize_breakpoint): Add declaration.
15685 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15686 * btrace.c (_initialize_btrace): Add declaration.
15687 * charset.c (_initialize_charset): Add declaration.
15688 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15689 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15690 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15691 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15692 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15693 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15694 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15695 * coffread.c (_initialize_coffread): Add declaration.
15696 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15697 * compile/compile.c (_initialize_compile): Add declaration.
15698 * complaints.c (_initialize_complaints): Add declaration.
15699 * completer.c (_initialize_completer): Add declaration.
15700 * copying.c (_initialize_copying): Add declaration.
15701 * corefile.c (_initialize_core): Add declaration.
15702 * corelow.c (_initialize_corelow): Add declaration.
15703 * cp-abi.c (_initialize_cp_abi): Add declaration.
15704 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15705 * cp-support.c (_initialize_cp_support): Add declaration.
15706 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15707 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15708 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15709 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15710 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15711 * ctfread.c (_initialize_ctfread): Add declaration.
15712 * d-lang.c (_initialize_d_language): Add declaration.
15713 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15714 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15715 * dbxread.c (_initialize_dbxread): Add declaration.
15716 * dcache.c (_initialize_dcache): Add declaration.
15717 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15718 * disasm.c (_initialize_disasm): Add declaration.
15719 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15720 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15721 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15722 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15723 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15724 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15725 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15726 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15727 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15728 * elfread.c (_initialize_elfread): Add declaration.
15729 * exec.c (_initialize_exec): Add declaration.
15730 * extension.c (_initialize_extension): Add declaration.
15731 * f-lang.c (_initialize_f_language): Add declaration.
15732 * f-valprint.c (_initialize_f_valprint): Add declaration.
15733 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15734 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15735 * filesystem.c (_initialize_filesystem): Add declaration.
15736 * findcmd.c (_initialize_mem_search): Add declaration.
15737 * findvar.c (_initialize_findvar): Add declaration.
15738 * fork-child.c (_initialize_fork_child): Add declaration.
15739 * frame-base.c (_initialize_frame_base): Add declaration.
15740 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15741 * frame.c (_initialize_frame): Add declaration.
15742 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15743 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15744 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15745 * gcore.c (_initialize_gcore): Add declaration.
15746 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15747 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15748 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15749 * gdbarch.c (_initialize_gdbarch): Add declaration.
15750 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15751 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15752 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15753 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15754 * go-lang.c (_initialize_go_language): Add declaration.
15755 * go32-nat.c (_initialize_go32_nat): Add declaration.
15756 * guile/guile.c (_initialize_guile): Add declaration.
15757 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15758 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15759 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15760 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15761 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15762 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15763 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15764 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15765 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15766 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15767 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15768 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15769 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15770 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15771 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15772 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15773 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15774 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15775 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15776 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15777 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15778 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15779 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15780 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15781 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15782 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15783 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15784 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15785 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15786 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15787 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15788 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15789 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15790 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15791 * infcall.c (_initialize_infcall): Add declaration.
15792 * infcmd.c (_initialize_infcmd): Add declaration.
15793 * inflow.c (_initialize_inflow): Add declaration.
15794 * infrun.c (_initialize_infrun): Add declaration.
15795 * interps.c (_initialize_interpreter): Add declaration.
15796 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15797 * jit.c (_initialize_jit): Add declaration.
15798 * language.c (_initialize_language): Add declaration.
15799 * linux-fork.c (_initialize_linux_fork): Add declaration.
15800 * linux-nat.c (_initialize_linux_nat): Add declaration.
15801 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15802 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15803 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15804 * m2-lang.c (_initialize_m2_language): Add declaration.
15805 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15806 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15807 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15808 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15809 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15810 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15811 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15812 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15813 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15814 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15815 * machoread.c (_initialize_machoread): Add declaration.
15816 * macrocmd.c (_initialize_macrocmd): Add declaration.
15817 * macroscope.c (_initialize_macroscope): Add declaration.
15818 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15819 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15820 * maint.c (_initialize_maint_cmds): Add declaration.
15821 * mdebugread.c (_initialize_mdebugread): Add declaration.
15822 * memattr.c (_initialize_mem): Add declaration.
15823 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15824 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15825 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15826 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15827 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15828 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15829 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15830 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15831 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15832 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15833 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15834 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15835 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15836 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15837 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15838 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15839 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15840 * mipsread.c (_initialize_mipsread): Add declaration.
15841 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15842 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15843 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15844 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15845 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15846 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15847 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15848 * nto-procfs.c (_initialize_procfs): Add declaration.
15849 * objc-lang.c (_initialize_objc_language): Add declaration.
15850 * observable.c (_initialize_observer): Add declaration.
15851 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15852 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15853 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15854 * osabi.c (_initialize_gdb_osabi): Add declaration.
15855 * osdata.c (_initialize_osdata): Add declaration.
15856 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15857 * parse.c (_initialize_parse): Add declaration.
15858 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15859 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15860 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15861 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15862 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15863 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15864 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15865 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15866 * printcmd.c (_initialize_printcmd): Add declaration.
15867 * probe.c (_initialize_probe): Add declaration.
15868 * proc-api.c (_initialize_proc_api): Add declaration.
15869 * proc-events.c (_initialize_proc_events): Add declaration.
15870 * proc-service.c (_initialize_proc_service): Add declaration.
15871 * procfs.c (_initialize_procfs): Add declaration.
15872 * producer.c (_initialize_producer): Add declaration.
15873 * psymtab.c (_initialize_psymtab): Add declaration.
15874 * python/python.c (_initialize_python): Add declaration.
15875 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15876 * record-btrace.c (_initialize_record_btrace): Add declaration.
15877 * record-full.c (_initialize_record_full): Add declaration.
15878 * record.c (_initialize_record): Add declaration.
15879 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15880 * regcache.c (_initialize_regcache): Add declaration.
15881 * reggroups.c (_initialize_reggroup): Add declaration.
15882 * remote-notif.c (_initialize_notif): Add declaration.
15883 * remote-sim.c (_initialize_remote_sim): Add declaration.
15884 * remote.c (_initialize_remote): Add declaration.
15885 * reverse.c (_initialize_reverse): Add declaration.
15886 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15887 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15888 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15889 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15890 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15891 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15892 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15893 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15894 Add declaration.
15895 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15896 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15897 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15898 * rust-exp.y (_initialize_rust_exp): Add declaration.
15899 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15900 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15901 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15902 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15903 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15904 * score-tdep.c (_initialize_score_tdep): Add declaration.
15905 * ser-go32.c (_initialize_ser_dos): Add declaration.
15906 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15907 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15908 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15909 * ser-uds.c (_initialize_ser_socket): Add declaration.
15910 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15911 * serial.c (_initialize_serial): Add declaration.
15912 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15913 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15914 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15915 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15916 * skip.c (_initialize_step_skip): Add declaration.
15917 * sol-thread.c (_initialize_sol_thread): Add declaration.
15918 * solib-aix.c (_initialize_solib_aix): Add declaration.
15919 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15920 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15921 * solib-frv.c (_initialize_frv_solib): Add declaration.
15922 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15923 * solib-target.c (_initialize_solib_target): Add declaration.
15924 * solib.c (_initialize_solib): Add declaration.
15925 * source-cache.c (_initialize_source_cache): Add declaration.
15926 * source.c (_initialize_source): Add declaration.
15927 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15928 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15929 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15930 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15931 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15932 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15933 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15934 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15935 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15936 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15937 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15938 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15939 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15940 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15941 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15942 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15943 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15944 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15945 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15946 * stabsread.c (_initialize_stabsread): Add declaration.
15947 * stack.c (_initialize_stack): Add declaration.
15948 * stap-probe.c (_initialize_stap_probe): Add declaration.
15949 * std-regs.c (_initialize_frame_reg): Add declaration.
15950 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15951 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15952 * symfile.c (_initialize_symfile): Add declaration.
15953 * symmisc.c (_initialize_symmisc): Add declaration.
15954 * symtab.c (_initialize_symtab): Add declaration.
15955 * target.c (_initialize_target): Add declaration.
15956 * target-connection.c (_initialize_target_connection): Add
15957 declaration.
15958 * target-dcache.c (_initialize_target_dcache): Add declaration.
15959 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15960 * thread.c (_initialize_thread): Add declaration.
15961 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15962 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15963 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15964 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15965 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15966 * tracectf.c (_initialize_ctf): Add declaration.
15967 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15968 * tracefile.c (_initialize_tracefile): Add declaration.
15969 * tracepoint.c (_initialize_tracepoint): Add declaration.
15970 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15971 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15972 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15973 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15974 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15975 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15976 * tui/tui.c (_initialize_tui): Add declaration.
15977 * typeprint.c (_initialize_typeprint): Add declaration.
15978 * ui-style.c (_initialize_ui_style): Add declaration.
15979 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15980 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15981 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15982 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15983 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15984 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15985 * unittests/filtered_iterator-selftests.c
15986 (_initialize_filtered_iterator_selftests): Add declaration.
15987 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15988 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15989 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15990 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15991 * unittests/main-thread-selftests.c
15992 (_initialize_main_thread_selftests): Add declaration.
15993 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15994 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15995 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15996 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15997 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15998 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15999 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16000 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16001 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16002 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16003 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16004 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16005 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16006 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16007 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16008 declaration.
16009 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16010 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16011 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16012 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16013 * user-regs.c (_initialize_user_regs): Add declaration.
16014 * utils.c (_initialize_utils): Add declaration.
16015 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16016 * valops.c (_initialize_valops): Add declaration.
16017 * valprint.c (_initialize_valprint): Add declaration.
16018 * value.c (_initialize_values): Add declaration.
16019 * varobj.c (_initialize_varobj): Add declaration.
16020 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16021 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16022 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16023 * windows-nat.c (_initialize_windows_nat): Add declaration.
16024 (_initialize_check_for_gdb_ini): Add declaration.
16025 (_initialize_loadable): Add declaration.
16026 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16027 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16028 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16029 * xcoffread.c (_initialize_xcoffread): Add declaration.
16030 * xml-support.c (_initialize_xml_support): Add declaration.
16031 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16032 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16033 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16034 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16035
e2de1eec
SM
160362020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16037
16038 * regformats/regdat.sh: Generate declaration for init function.
16039
e0037b4c
SM
160402020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16041
16042 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16043 up.
16044 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16045 close_one_inferior>: New methods.
16046 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16047 pass down target to find_inferior_pid.
16048 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16049 Pass down target to find_inferior_ptid.
16050 (gdbsim_target::create_inferior): Pass down target to
16051 add_thread_silent.
16052 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16053 target down to find_inferior_ptid and switch_to_thread.
16054 (gdbsim_target::close): Update to call close_one_inferior.
16055 (struct resume_data): Remove.
16056 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16057 directly, rather than through a void pointer.
16058 (gdbsim_target::resume): Update to call resume_one_inferior.
16059
58920b5b
SM
160602020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16061
16062 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16063
4ec89149
PA
160642020-01-12 Pedro Alves <palves@redhat.com>
16065
16066 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16067 directly for the current inferior instead of
16068 discard_all_inferiors.
16069 (discard_all_inferiors): Delete.
16070
7c392d1d
TT
160712020-01-11 Tom Tromey <tom@tromey.com>
16072
16073 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16074 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16075 deprecated_safe_get_selected_frame.
16076
d9ebdab7
TBA
160772020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16078
16079 * inferior.c (print_inferior): Switch inferior before printing it.
16080
f3c469b9
PA
160812020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16082 Pedro Alves <palves@redhat.com>
16083
16084 * progspace-and-thread.c (switch_to_program_space_and_thread):
16085 Assert there's an inferior for PSPACE. Use
16086 switch_to_inferior_no_thread to switch the inferior too.
16087 * progspace.c (program_space::~program_space): Call
16088 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16089 (program_space::free_all_objfiles): Don't call clear_symtab_users
16090 here.
16091 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16092
65c574f6
PA
160932020-01-10 Pedro Alves <palves@redhat.com>
16094
16095 * NEWS: Mention multi-target debugging, "info connections", and
16096 "add-inferior -no-connection".
16097
2f4fcf00
PA
160982020-01-10 Pedro Alves <palves@redhat.com>
16099
16100 * infrun.c: Include "target-connection.h".
16101 (check_multi_target_resumption): New.
16102 (proceed): Call it.
16103 * target-connection.c (make_target_connection_string): Make
16104 extern.
16105 * target-connection.h (make_target_connection_string): Declare.
16106
121b3efd
PA
161072020-01-10 Pedro Alves <palves@redhat.com>
16108
16109 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16110 * inferior.c (uiout_field_connection): New function.
16111 (print_inferior): Add new "connection-id" column.
16112 (add_inferior_command): Show connection number/string of added
16113 inferior.
16114 * process-stratum-target.h
16115 (process_stratum_target::connection_string): New virtual method.
16116 (process_stratum_target::connection_number): New field.
16117 * remote.c (remote_target::connection_string): New override.
16118 * target-connection.c: New file.
16119 * target-connection.h: New file.
16120 * target.c (decref_target): Remove process_stratum targets from
16121 the connection list.
16122 (target_stack::push): Add process_stratum targets to the
16123 connection list.
16124
4f837581
PA
161252020-01-10 Pedro Alves <palves@redhat.com>
16126
16127 Revert:
16128 2016-04-12 Pedro Alves <palves@redhat.com>
16129 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16130 Remove references to name.
16131 * serial.h (struct serial) <name>: Delete.
16132
f4ec508e
PA
161332020-01-10 Pedro Alves <palves@redhat.com>
16134
16135 * gdbarch-selftests.c (register_to_value_test): Remove "target
16136 already pushed" check.
16137
5b6d1e4f
PA
161382020-01-10 Pedro Alves <palves@redhat.com>
16139 John Baldwin <jhb@FreeBSD.org>
16140
16141 * aarch64-linux-nat.c
16142 (aarch64_linux_nat_target::thread_architecture): Adjust.
16143 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16144 (task_command_1): Likewise.
16145 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16146 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16147 (aix_thread_target::store_registers)
16148 (aix_thread_target::thread_alive): Adjust.
16149 * amd64-fbsd-tdep.c: Include "inferior.h".
16150 (amd64fbsd_get_thread_local_address): Pass down target.
16151 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16152 thread's gdbarch instead of target_gdbarch.
16153 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16154 get_last_target_status.
16155 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16156 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16157 inferiors.
16158 (update_inserted_breakpoint_locations): Skip if inferiors with no
16159 execution.
16160 (update_global_location_list): When handling moribund locations,
16161 find representative inferior for location's pspace, and use thread
16162 count of its process_stratum target.
16163 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16164 * bsd-uthread.c (bsd_uthread_target::wait): Use
16165 as_process_stratum_target and adjust thread_change_ptid and
16166 add_thread calls.
16167 (bsd_uthread_target::update_thread_list): Use
16168 as_process_stratum_target and adjust find_thread_ptid,
16169 thread_change_ptid and add_thread calls.
16170 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16171 find_thread_ptid call.
16172 * corelow.c (add_to_thread_list): Adjust add_thread call.
16173 (core_target_open): Adjust add_thread_silent and thread_count
16174 calls.
16175 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16176 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16177 * event-top.c (async_disconnect): Pop targets from all inferiors.
16178 * exec.c (add_target_sections): Push exec target on all inferiors
16179 sharing the program space.
16180 (remove_target_sections): Remove the exec target from all
16181 inferiors sharing the program space.
16182 (exec_on_vfork): New.
16183 * exec.h (exec_on_vfork): Declare.
16184 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16185 Pass it down.
16186 (fbsd_nat_target::update_thread_list): Adjust.
16187 (fbsd_nat_target::resume): Adjust.
16188 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16189 down.
16190 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16191 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16192 get_thread_arch_regcache call.
16193 * fork-child.c (gdb_startup_inferior): Pass target down to
16194 startup_inferior and set_executing.
16195 * gdbthread.h (struct process_stratum_target): Forward declare.
16196 (add_thread, add_thread_silent, add_thread_with_info)
16197 (in_thread_list): Add process_stratum_target parameter.
16198 (find_thread_ptid(inferior*, ptid_t)): New overload.
16199 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16200 parameter.
16201 (all_threads()): Delete overload.
16202 (all_threads, all_non_exited_threads): Add process_stratum_target
16203 parameter.
16204 (all_threads_safe): Use brace initialization.
16205 (thread_count): Add process_stratum_target parameter.
16206 (set_resumed, set_running, set_stop_requested, set_executing)
16207 (threads_are_executing, finish_thread_state): Add
16208 process_stratum_target parameter.
16209 (switch_to_thread): Use is_current_thread.
16210 * i386-fbsd-tdep.c: Include "inferior.h".
16211 (i386fbsd_get_thread_local_address): Pass down target.
16212 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16213 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16214 have_inferiors check.
16215 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16216 (inf_ptrace_target::attach): Adjust.
16217 * infcall.c (run_inferior_call): Adjust.
16218 * infcmd.c (run_command_1): Pass target to
16219 scoped_finish_thread_state.
16220 (proceed_thread_callback): Skip inferiors with no execution.
16221 (continue_command): Rename 'all_threads' local to avoid hiding
16222 'all_threads' function. Adjust get_last_target_status call.
16223 (prepare_one_step): Adjust set_running call.
16224 (signal_command): Use user_visible_resume_target. Compare thread
16225 pointers instead of inferior_ptid.
16226 (info_program_command): Adjust to pass down target.
16227 (attach_command): Mark target's 'thread_executing' flag.
16228 (stop_current_target_threads_ns): New, factored out from ...
16229 (interrupt_target_1): ... this. Switch inferior before making
16230 target calls.
16231 * inferior-iter.h
16232 (struct all_inferiors_iterator, struct all_inferiors_range)
16233 (struct all_inferiors_safe_range)
16234 (struct all_non_exited_inferiors_range): Filter on
16235 process_stratum_target too. Remove explicit.
16236 * inferior.c (inferior::inferior): Push dummy target on target
16237 stack.
16238 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16239 Add process_stratum_target parameter, and pass it down.
16240 (have_live_inferiors): Adjust.
16241 (switch_to_inferior_and_push_target): New.
16242 (add_inferior_command, clone_inferior_command): Handle
16243 "-no-connection" parameter. Use
16244 switch_to_inferior_and_push_target.
16245 (_initialize_inferior): Mention "-no-connection" option in
16246 the help of "add-inferior" and "clone-inferior" commands.
16247 * inferior.h: Include "process-stratum-target.h".
16248 (interrupt_target_1): Use bool.
16249 (struct inferior) <push_target, unpush_target, target_is_pushed,
16250 find_target_beneath, top_target, process_target, target_at,
16251 m_stack>: New.
16252 (discard_all_inferiors): Delete.
16253 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16254 (all_inferiors, all_non_exited_inferiors): Add
16255 process_stratum_target parameter.
16256 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16257 (target_last_proc_target): New global.
16258 (follow_fork_inferior): Push target on new inferior. Pass target
16259 to add_thread_silent. Call exec_on_vfork. Handle target's
16260 reference count.
16261 (follow_fork): Adjust get_last_target_status call. Also consider
16262 target.
16263 (follow_exec): Push target on new inferior.
16264 (struct execution_control_state) <target>: New field.
16265 (user_visible_resume_target): New.
16266 (do_target_resume): Call target_async.
16267 (resume_1): Set target's threads_executing flag. Consider resume
16268 target.
16269 (commit_resume_all_targets): New.
16270 (proceed): Also consider resume target. Skip threads of inferiors
16271 with no execution. Commit resumtion in all targets.
16272 (start_remote): Pass current inferior to wait_for_inferior.
16273 (infrun_thread_stop_requested): Consider target as well. Pass
16274 thread_info pointer to clear_inline_frame_state instead of ptid.
16275 (infrun_thread_thread_exit): Consider target as well.
16276 (random_pending_event_thread): New inferior parameter. Use it.
16277 (do_target_wait): Rename to ...
16278 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16279 down.
16280 (threads_are_resumed_pending_p, do_target_wait): New.
16281 (prepare_for_detach): Adjust calls.
16282 (wait_for_inferior): New inferior parameter. Handle it. Use
16283 do_target_wait_1 instead of do_target_wait.
16284 (fetch_inferior_event): Adjust. Switch to representative
16285 inferior. Pass target down.
16286 (set_last_target_status): Add process_stratum_target parameter.
16287 Save target in global.
16288 (get_last_target_status): Add process_stratum_target parameter and
16289 handle it.
16290 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16291 (context_switch): Check inferior_ptid == null_ptid before calling
16292 inferior_thread().
16293 (get_inferior_stop_soon): Pass down target.
16294 (wait_one): Rename to ...
16295 (poll_one_curr_target): ... this.
16296 (struct wait_one_event): New.
16297 (wait_one): New.
16298 (stop_all_threads): Adjust.
16299 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16300 event's target.
16301 (switch_back_to_stepped_thread): Also consider target.
16302 (print_stop_event): Update.
16303 (normal_stop): Update. Also consider the resume target.
16304 * infrun.h (wait_for_inferior): Remove declaration.
16305 (user_visible_resume_target): New declaration.
16306 (get_last_target_status, set_last_target_status): New
16307 process_stratum_target parameter.
16308 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16309 process_stratum_target parameter, and use it.
16310 (clear_inline_frame_state (thread_info*)): New.
16311 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16312 process_stratum_target parameter.
16313 (clear_inline_frame_state (thread_info*)): Declare.
16314 * linux-fork.c (delete_checkpoint_command): Pass target down to
16315 find_thread_ptid.
16316 (checkpoint_command): Adjust.
16317 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16318 instead of just tweaking inferior_ptid.
16319 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16320 (exit_lwp): Pass target down to find_thread_ptid.
16321 (attach_proc_task_lwp_callback): Pass target down to
16322 add_thread/set_running/set_executing.
16323 (linux_nat_target::attach): Pass target down to
16324 thread_change_ptid.
16325 (get_detach_signal): Pass target down to find_thread_ptid.
16326 Consider last target status's target.
16327 (linux_resume_one_lwp_throw, resume_lwp)
16328 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16329 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16330 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16331 (linux_nat_target::async_wait_fd): New.
16332 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16333 target down.
16334 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16335 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16336 * linux-thread-db.c (struct thread_db_info::process_target): New
16337 field.
16338 (add_thread_db_info): Save target.
16339 (get_thread_db_info): New process_stratum_target parameter. Also
16340 match target.
16341 (delete_thread_db_info): New process_stratum_target parameter.
16342 Also match target.
16343 (thread_from_lwp): Adjust to pass down target.
16344 (thread_db_notice_clone): Pass down target.
16345 (check_thread_db_callback): Pass down target.
16346 (try_thread_db_load_1): Always push the thread_db target.
16347 (try_thread_db_load, record_thread): Pass target down.
16348 (thread_db_target::detach): Pass target down. Always unpush the
16349 thread_db target.
16350 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16351 target down. Always unpush the thread_db target.
16352 (find_new_threads_callback, thread_db_find_new_threads_2)
16353 (thread_db_target::update_thread_list): Pass target down.
16354 (thread_db_target::pid_to_str): Pass current inferior down.
16355 (thread_db_target::get_thread_local_address): Pass target down.
16356 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16357 target down.
16358 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16359 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16360 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16361 (procfs_init_inferior): Rename to ...
16362 (procfs_target::procfs_init_inferior): ... this and adjust.
16363 (procfs_target::create_inferior, procfs_notice_thread)
16364 (procfs_do_thread_registers): Adjust.
16365 * ppc-fbsd-tdep.c: Include "inferior.h".
16366 (ppcfbsd_get_thread_local_address): Pass down target.
16367 * proc-service.c (ps_xfer_memory): Switch current inferior and
16368 program space as well.
16369 (get_ps_regcache): Pass target down.
16370 * process-stratum-target.c
16371 (process_stratum_target::thread_address_space)
16372 (process_stratum_target::thread_architecture): Pass target down.
16373 * process-stratum-target.h
16374 (process_stratum_target::threads_executing): New field.
16375 (as_process_stratum_target): New.
16376 * ravenscar-thread.c
16377 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16378 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16379 down.
16380 * record-btrace.c (record_btrace_target::info_record): Adjust.
16381 (record_btrace_target::record_method)
16382 (record_btrace_target::record_is_replaying)
16383 (record_btrace_target::fetch_registers)
16384 (get_thread_current_frame_id, record_btrace_target::resume)
16385 (record_btrace_target::wait, record_btrace_target::stop): Pass
16386 target down.
16387 * record-full.c (record_full_wait_1): Switch to event thread.
16388 Pass target down.
16389 * regcache.c (regcache::regcache)
16390 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16391 process_stratum_target parameter and handle it.
16392 (current_thread_target): New global.
16393 (get_thread_regcache): Add process_stratum_target parameter and
16394 handle it. Switch inferior before calling target method.
16395 (get_thread_regcache): Pass target down.
16396 (get_thread_regcache_for_ptid): Pass target down.
16397 (registers_changed_ptid): Add process_stratum_target parameter and
16398 handle it.
16399 (registers_changed_thread, registers_changed): Pass target down.
16400 (test_get_thread_arch_aspace_regcache): New.
16401 (current_regcache_test): Define a couple local test_target_ops
16402 instances and use them for testing.
16403 (readwrite_regcache): Pass process_stratum_target parameter.
16404 (cooked_read_test, cooked_write_test): Pass mock_target down.
16405 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16406 (get_thread_arch_aspace_regcache): Add process_stratum_target
16407 parameter.
16408 (regcache::target): New method.
16409 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16410 (regcache::registers_changed_ptid): Add process_stratum_target
16411 parameter.
16412 (regcache::m_target): New field.
16413 (registers_changed_ptid): Add process_stratum_target parameter.
16414 * remote.c (remote_state::supports_vCont_probed): New field.
16415 (remote_target::async_wait_fd): New method.
16416 (remote_unpush_and_throw): Add remote_target parameter.
16417 (get_current_remote_target): Adjust.
16418 (remote_target::remote_add_inferior): Push target.
16419 (remote_target::remote_add_thread)
16420 (remote_target::remote_notice_new_inferior)
16421 (get_remote_thread_info): Pass target down.
16422 (remote_target::update_thread_list): Skip threads of inferiors
16423 bound to other targets. (remote_target::close): Don't discard
16424 inferiors. (remote_target::add_current_inferior_and_thread)
16425 (remote_target::process_initial_stop_replies)
16426 (remote_target::start_remote)
16427 (remote_target::remote_serial_quit_handler): Pass down target.
16428 (remote_target::remote_unpush_target): New remote_target
16429 parameter. Unpush the target from all inferiors.
16430 (remote_target::remote_unpush_and_throw): New remote_target
16431 parameter. Pass it down.
16432 (remote_target::open_1): Check whether the current inferior has
16433 execution instead of checking whether any inferior is live. Pass
16434 target down.
16435 (remote_target::remote_detach_1): Pass down target. Use
16436 remote_unpush_target.
16437 (extended_remote_target::attach): Pass down target.
16438 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16439 (remote_target::append_resumption): Pass down target.
16440 (remote_target::append_pending_thread_resumptions)
16441 (remote_target::remote_resume_with_hc, remote_target::resume)
16442 (remote_target::commit_resume): Pass down target.
16443 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16444 (remote_target::interrupt_query)
16445 (remote_target::remove_new_fork_children)
16446 (remote_target::check_pending_events_prevent_wildcard_vcont)
16447 (remote_target::remote_parse_stop_reply)
16448 (remote_target::process_stop_reply): Pass down target.
16449 (first_remote_resumed_thread): New remote_target parameter. Pass
16450 it down.
16451 (remote_target::wait_as): Pass down target.
16452 (unpush_and_perror): New remote_target parameter. Pass it down.
16453 (remote_target::readchar, remote_target::remote_serial_write)
16454 (remote_target::getpkt_or_notif_sane_1)
16455 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16456 down target.
16457 (remote_target::mourn_inferior): Pass down target. Use
16458 remote_unpush_target.
16459 (remote_target::core_of_thread)
16460 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16461 (remote_target::pid_to_exec_file)
16462 (remote_target::thread_handle_to_thread_info): Pass down target.
16463 (remote_target::async_wait_fd): New.
16464 * riscv-fbsd-tdep.c: Include "inferior.h".
16465 (riscv_fbsd_get_thread_local_address): Pass down target.
16466 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16467 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16468 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16469 Adjust.
16470 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16471 * solib-svr4.c (enable_break): Pass down target.
16472 * spu-multiarch.c (parse_spufs_run): Pass down target.
16473 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16474 * target-delegates.c: Regenerate.
16475 * target.c (g_target_stack): Delete.
16476 (current_top_target): Return the current inferior's top target.
16477 (target_has_execution_1): Refer to the passed-in inferior's top
16478 target.
16479 (target_supports_terminal_ours): Check whether the initial
16480 inferior was already created.
16481 (decref_target): New.
16482 (target_stack::push): Incref/decref the target.
16483 (push_target, push_target, unpush_target): Adjust.
16484 (target_stack::unpush): Defref target.
16485 (target_is_pushed): Return bool. Adjust to refer to the current
16486 inferior's target stack.
16487 (dispose_inferior): Delete, and inline parts ...
16488 (target_preopen): ... here. Only dispose of the current inferior.
16489 (target_detach): Hold strong target reference while detaching.
16490 Pass target down.
16491 (target_thread_name): Add assertion.
16492 (target_resume): Pass down target.
16493 (target_ops::beneath, find_target_at): Adjust to refer to the
16494 current inferior's target stack.
16495 (get_dummy_target): New.
16496 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16497 has a thread running.
16498 (initialize_targets): Rename to ...
16499 (_initialize_target): ... this.
16500 * target.h: Include "gdbsupport/refcounted-object.h".
16501 (struct target_ops): Inherit refcounted_object.
16502 (target_ops::shortname, target_ops::longname): Make const.
16503 (target_ops::async_wait_fd): New method.
16504 (decref_target): Declare.
16505 (struct target_ops_ref_policy): New.
16506 (target_ops_ref): New typedef.
16507 (get_dummy_target): Declare function.
16508 (target_is_pushed): Return bool.
16509 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16510 (all_matching_threads_iterator::all_matching_threads_iterator):
16511 Handle filter target.
16512 * thread-iter.h (struct all_matching_threads_iterator, struct
16513 all_matching_threads_range, class all_non_exited_threads_range):
16514 Filter by target too. Remove explicit.
16515 * thread.c (threads_executing): Delete.
16516 (inferior_thread): Pass down current inferior.
16517 (clear_thread_inferior_resources): Pass down thread pointer
16518 instead of ptid_t.
16519 (add_thread_silent, add_thread_with_info, add_thread): Add
16520 process_stratum_target parameter. Use it for thread and inferior
16521 searches.
16522 (is_current_thread): New.
16523 (thread_info::deletable): Use it.
16524 (find_thread_ptid, thread_count, in_thread_list)
16525 (thread_change_ptid, set_resumed, set_running): New
16526 process_stratum_target parameter. Pass it down.
16527 (set_executing): New process_stratum_target parameter. Pass it
16528 down. Adjust reference to 'threads_executing'.
16529 (threads_are_executing): New process_stratum_target parameter.
16530 Adjust reference to 'threads_executing'.
16531 (set_stop_requested, finish_thread_state): New
16532 process_stratum_target parameter. Pass it down.
16533 (switch_to_thread): Also match inferior.
16534 (switch_to_thread): New process_stratum_target parameter. Pass it
16535 down.
16536 (update_threads_executing): Reimplement.
16537 * top.c (quit_force): Pop targets from all inferior.
16538 (gdb_init): Don't call initialize_targets.
16539 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16540 Declare.
16541 (windows_add_thread, windows_delete_thread): Adjust.
16542 (get_windows_debug_event): Rename to ...
16543 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16544 * tracefile-tfile.c (tfile_target_open): Pass down target.
16545 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16546 Forward declare.
16547 (switch_to_thread): Add process_stratum_target parameter.
16548 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16549 parameter. Use it.
16550 (mi_on_resume): Pass target down.
16551 * nat/fork-inferior.c (startup_inferior): Add
16552 process_stratum_target parameter. Pass it down.
16553 * nat/fork-inferior.h (startup_inferior): Add
16554 process_stratum_target parameter.
16555 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16556
75c6c844
PA
165572020-01-10 Pedro Alves <palves@redhat.com>
16558
16559 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16560 directly. Instead find the first thread in the thread list and
16561 use switch_to_thread.
16562
78f2c40a
PA
165632020-01-10 Pedro Alves <palves@redhat.com>
16564
16565 * remote.c (remote_target::remote_add_inferior): Don't bind a
16566 process to the current inferior if the current inferior is already
16567 bound to a process.
16568
e7af6c70
TBA
165692020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16570 Pedro Alves <palves@redhat.com>
16571
16572 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16573 If no process is specified, return null_ptid instead of
16574 inferior_ptid.
16575 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16576 TARGET_WAITKIND_SIGNALLED with no pid.
16577
31ba933e
PA
165782020-01-10 Pedro Alves <palves@redhat.com>
16579
16580 * remote.c (first_remote_resumed_thread): New.
16581 (remote_target::wait_as): Use it as default event_ptid instead of
16582 inferior_ptid.
16583
735fc2ca
PA
165842020-01-10 Pedro Alves <palves@redhat.com>
16585
16586 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16587
c17e02e1
PA
165882020-01-10 Pedro Alves <palves@redhat.com>
16589
16590 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16591 not -1.
16592
ab1ddbcf
PA
165932020-01-10 Pedro Alves <palves@redhat.com>
16594
16595 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16596 ptid to get_last_target_status.
16597 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16598 ptid to get_last_target_status.
16599 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16600 get_last_target_status.
16601 (info_program_command): Don't pass a target_waitstatus to
16602 get_last_target_status.
16603 * infrun.c (init_wait_for_inferior): Use
16604 nullify_last_target_wait_ptid.
16605 (get_last_target_status): Handle nullptr arguments.
16606 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16607 (print_stop_event): Don't pass a ptid to get_last_target_status.
16608 (normal_stop): Don't pass a ptid to get_last_target_status.
16609 * infrun.h (get_last_target_status, set_last_target_status): Move
16610 comments here and update.
16611 (nullify_last_target_wait_ptid): Declare.
16612 * linux-fork.c (fork_load_infrun_state): Remove local extern
16613 declaration of nullify_last_target_wait_ptid.
16614 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16615 to get_last_target_status.
16616
f3f8ece4
PA
166172020-01-10 Pedro Alves <palves@redhat.com>
16618
16619 * gdbthread.h (scoped_restore_current_thread)
16620 <dont_restore, restore, m_dont_restore>: Declare.
16621 * thread.c (thread_alive): Add assertion. Return bool.
16622 (switch_to_thread_if_alive): New.
16623 (prune_threads): Switch inferior/thread.
16624 (print_thread_info_1): Switch thread before calling target methods.
16625 (scoped_restore_current_thread::restore): New, factored out from
16626 ...
16627 (scoped_restore_current_thread::~scoped_restore_current_thread):
16628 ... this.
16629 (scoped_restore_current_thread::scoped_restore_current_thread):
16630 Add assertion.
16631 (thread_apply_all_command, thread_select): Use
16632 switch_to_thread_if_alive.
16633 * infrun.c (proceed, restart_threads, handle_signal_stop)
16634 (switch_back_to_stepped_thread): Switch current thread before
16635 calling target methods.
16636
db2d40f7
PA
166372020-01-10 Pedro Alves <palves@redhat.com>
16638
16639 * inferior.c (switch_to_inferior_no_thread): New function,
16640 factored out from ...
16641 (inferior_command): ... here.
16642 * inferior.h (switch_to_inferior_no_thread): Declare.
16643 * mi/mi-main.c (run_one_inferior): Use
16644 switch_to_inferior_no_thread.
16645
bd420a2d
PA
166462020-01-10 Pedro Alves <palves@redhat.com>
16647
16648 * infcmd.c (kill_command): Remove dead code.
16649
ddf5db90
PA
166502020-01-10 Pedro Alves <palves@redhat.com>
16651
16652 * remote.c (remote_target::mourn_inferior): No longer check
16653 whether the target is running.
16654
5018ce90
PA
166552020-01-10 Pedro Alves <palves@redhat.com>
16656
16657 * corelow.c (core_target::has_execution): Change parameter type to
16658 inferior pointer.
16659 * inferior.c (number_of_live_inferiors): Use
16660 inferior::has_execution instead of target_has_execution_1.
16661 * inferior.h (inferior::has_execution): New.
16662 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16663 inferior::has_execution instead of target_has_execution_1.
16664 * process-stratum-target.c
16665 (process_stratum_target::has_execution): Change parameter type to
16666 inferior pointer. Check the inferior's PID instead of
16667 inferior_ptid.
16668 * process-stratum-target.h
16669 (process_stratum_target::has_execution): Change parameter type to
16670 inferior pointer.
16671 * record-full.c (record_full_core_target::has_execution): Change
16672 parameter type to inferior pointer.
16673 * target.c (target_has_execution_1): Change parameter type to
16674 inferior pointer.
16675 (target_has_execution_current): Adjust.
16676 * target.h (target_ops::has_execution): Change parameter type to
16677 inferior pointer.
16678 (target_has_execution_1): Change parameter type to inferior
16679 pointer. Change return type to bool.
16680 * tracefile.h (tracefile_target::has_execution): Change parameter
16681 type to inferior pointer.
16682
74375d18
PA
166832020-01-10 Pedro Alves <palves@redhat.com>
16684
16685 * exceptions.c (print_flush): Remove current_top_target() check.
16686
acdf84a6
PA
166872020-01-10 Pedro Alves <palves@redhat.com>
16688
16689 * remote.c (show_remote_exec_file): Show the current inferior's
16690 exec-file instead of the command variable's value.
16691
ec506636
PA
166922020-01-10 Pedro Alves <palves@redhat.com>
16693
16694 * record-full.c (record_full_resume_ptid): New global.
16695 (record_full_target::resume): Set it.
16696 (record_full_wait_1): Use record_full_resume_ptid instead of
16697 inferior_ptid.
16698
873657b9
PA
166992020-01-10 Pedro Alves <palves@redhat.com>
16700
16701 * gdbthread.h (scoped_restore_current_thread)
16702 <dont_restore, restore, m_dont_restore>: Declare.
16703 * thread.c (thread_alive): Add assertion. Return bool.
16704 (switch_to_thread_if_alive): New.
16705 (prune_threads): Switch inferior/thread.
16706 (print_thread_info_1): Switch thread before calling target methods.
16707 (scoped_restore_current_thread::restore): New, factored out from
16708 ...
16709 (scoped_restore_current_thread::~scoped_restore_current_thread):
16710 ... this.
16711 (scoped_restore_current_thread::scoped_restore_current_thread):
16712 Add assertion.
16713 (thread_apply_all_command, thread_select): Use
16714 switch_to_thread_if_alive.
16715
7f0ae84c
GB
167162020-01-10 George Barrett <bob@bob131.so>
16717
16718 * stap-probe.c (stap_modify_semaphore): Don't check for null
16719 semaphores.
16720 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16721 for null semaphores.
16722
f5a7c406
AB
167232020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16724
16725 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16726 all source windows, and maintain horizontal scroll status while
16727 doing so.
16728
9ae6bf64
TT
167292020-01-09 Tom Tromey <tom@tromey.com>
16730
16731 PR tui/18932:
16732 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16733 update_source_window, not print_source_lines.
16734
b2efe70c
AB
167352020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16736
16737 * tui/tui.c (tui_enable): Register tui hooks after calling
16738 tui_display_main.
16739
5f23a082
CB
167402020-01-09 Christian Biesinger <cbiesinger@google.com>
16741
16742 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16743
3061113b
SM
167442020-01-08 Simon Marchi <simon.marchi@efficios.com>
16745
16746 * thread.c (print_thread_info_1): Fix indentation.
16747
57d75002
CB
167482020-01-09 Christian Biesinger <cbiesinger@google.com>
16749
16750 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16751 unique_xmalloc_ptr outside the if to always free the demangled name.
16752
6a053cb1
TT
167532020-01-08 Tom Tromey <tromey@adacore.com>
16754
16755 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16756 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16757 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16758 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16759 Remove.
16760 (section_offsets): New typedef.
16761 * symtab.c (fixup_section, get_msymbol_address): Update.
16762 * symmisc.c (dump_msymbols): Update.
16763 * symfile.h (relative_addr_info_to_section_offsets)
16764 (symfile_map_offsets_to_segments): Update.
16765 * symfile.c (build_section_addr_info_from_objfile)
16766 (init_objfile_sect_indices): Update.
16767 (struct place_section_arg): Change type of "offsets".
16768 (place_section): Update.
16769 (relative_addr_info_to_section_offsets): Change type of
16770 "section_offsets". Remove "num_sections" parameter.
16771 (default_symfile_offsets, syms_from_objfile_1)
16772 (set_objfile_default_section_offset): Update.
16773 (reread_symbols): No need to preserve section offsets by hand.
16774 (symfile_map_offsets_to_segments): Change type of "offsets".
16775 * stap-probe.c (relocate_address): Update.
16776 * stabsread.h (process_one_symbol): Update.
16777 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16778 (solib_target_relocate_section_addresses): Update.
16779 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16780 Update.
16781 * solib-frv.c (frv_relocate_main_executable): Update.
16782 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16783 * solib-aix.c (solib_aix_get_section_offsets): Change return
16784 type.
16785 (solib_aix_solib_create_inferior_hook): Update.
16786 * remote.c (remote_target::get_offsets): Update.
16787 * psymtab.c (find_pc_sect_psymtab): Update.
16788 * psympriv.h (struct partial_symbol) <address, text_low,
16789 text_high>: Update.
16790 * objfiles.h (obj_section_offset): Update.
16791 (struct objfile) <section_offsets>: Change type.
16792 <num_sections>: Remove.
16793 (objfile_relocate): Update.
16794 * objfiles.c (entry_point_address_query): Update
16795 (relocate_one_symbol): Change type of "section_offsets".
16796 (objfile_relocate1, objfile_relocate1): Change type of
16797 "new_offsets".
16798 (objfile_rebase1): Update.
16799 * mipsread.c (mipscoff_symfile_read): Update.
16800 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16801 parameter.
16802 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16803 (parse_external, psymtab_to_symtab_1): Update.
16804 * machoread.c (macho_symfile_offsets): Update.
16805 * ia64-tdep.c (ia64_find_unwind_table): Update.
16806 * hppa-tdep.c (read_unwind_info): Update.
16807 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16808 * dwarf2read.c (create_addrmap_from_index)
16809 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16810 (process_psymtab_comp_unit_reader, add_partial_symbol)
16811 (add_partial_subprogram, process_full_comp_unit)
16812 (read_file_scope, read_func_scope, read_lexical_block_scope)
16813 (read_call_site_scope, dwarf2_rnglists_process)
16814 (dwarf2_ranges_process, dwarf2_ranges_read)
16815 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16816 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16817 Update.
16818 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16819 Update.
16820 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16821 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16822 (process_one_symbol): Change type of "section_offsets".
16823 * ctfread.c (get_objfile_text_range): Update.
16824 * coffread.c (coff_symtab_read, enter_linenos)
16825 (process_coff_symbol): Update.
16826 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16827 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16828
456e800a
TT
168292020-01-08 Tom Tromey <tromey@adacore.com>
16830
16831 * dwarf2read.c (parse_macro_definition): Use std::string.
16832 (parse_macro_definition): Likewise.
16833
6dfa2fc2
TT
168342020-01-08 Tom Tromey <tromey@adacore.com>
16835
16836 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16837 (ATTR_ALLOC_CHUNK): Remove.
16838
421d1616
TT
168392020-01-08 Tom Tromey <tromey@adacore.com>
16840
16841 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16842
43816ebc
TT
168432020-01-08 Tom Tromey <tromey@adacore.com>
16844
16845 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16846 (dwarf2_compute_name, open_dwo_file): Likewise.
16847 (process_enumeration_scope): Use std::vector.
16848 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16849 (partial_die_info::fixup, dwarf2_start_subfile)
16850 (guess_full_die_structure_name, dwarf2_name): Likewise.
16851 (determine_prefix): Update.
16852 (guess_full_die_structure_name): Make return type const.
16853 (partial_die_full_name): Return unique_xmalloc_ptr.
16854 (DW_FIELD_ALLOC_CHUNK): Remove.
16855
4212d509
TT
168562020-01-07 Tom Tromey <tromey@adacore.com>
16857
16858 PR build/24937:
16859 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16860
06a6207a
JT
168612020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16862
16863 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16864
153d79c4
AB
168652020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16866
16867 * stack.c (print_frame_info): Move disassemble_next_line code
16868 inside source_print block.
16869
66182876
EZ
168702020-01-06 Eli Zaretskii <eliz@gnu.org>
16871
16872 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16873 gdb/signals.h, as we are now using native signal symbols.
16874
cbfa8581
SV
168752020-01-06 Shahab Vahedi <shahab@synopsys.com>
16876
16877 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16878 overflow by an early check of content vs threshold.
aac66a4c 16879 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16880 Likewise.
16881
3f602821
EZ
168822020-01-06 Eli Zaretskii <eliz@gnu.org>
16883
16884 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16885
a08c904d
JT
168862020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16887
16888 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16889 export table if no section contains it's RVA.
16890
89a65580
EZ
168912020-01-06 Eli Zaretskii <eliz@gnu.org>
16892
16893 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16894
8b7fcda2
HD
168952020-01-06 Hannes Domani <ssbssa@yahoo.de>
16896
16897 * source.c (print_source_lines_base): Set last_line_listed.
16898
a61b4f69
SV
168992020-01-06 Shahab Vahedi <shahab@synopsys.com>
16900
16901 * tui/tui-disasm.c: Remove trailing spaces.
16902
559e7e50
EZ
169032020-01-06 Eli Zaretskii <eliz@gnu.org>
16904 Pedro Alves <palves@redhat.com>
16905
16906 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16907 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16908 (windows_gdb_signal_to_target): New function, uses the above
16909 enumeration to convert GDB internal signal codes to equivalent
16910 Windows codes.
16911 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16912 * windows-nat.c: Include "gdb_wait.h".
16913 (get_windows_debug_event): Extract the fatal exception from the
16914 exit status and convert to the equivalent Posix signal number.
16915 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16916 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16917 * gdbsupport/gdb_wait.c: New file, implements
16918 windows_status_to_termsig.
16919 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16920 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16921
f2302a34
AB
169222020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16923
16924 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16925 show_layout.
16926
6a5206eb
LM
169272020-01-05 Luis Machado <luis.machado@linaro.org>
16928
16929 * aarch64-linux-nat.c
16930 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16931 and bfd_mach_aarch64.
16932
6ec1d75e
PW
169332020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16934
16935 * ui-file.c (stdio_file::can_emit_style_escape)
16936 (tee_file::can_emit_style_escape): Ensure style is used also on
16937 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16938 to gdb_stdout.
16939 * main.c (set_gdb_data_directory): Use file style to output the
16940 warning that the given pathname is not a directory.
16941 * top.c (show_history_filename, gdb_safe_append_history)
16942 (show_gdb_datadir): Use file style.
16943
44f81a76
HD
169442020-01-03 Hannes Domani <ssbssa@yahoo.de>
16945
16946 * solib-target.c (struct lm_info_target):
16947 Change offsets to be a unique_xmalloc_ptr.
16948 (solib_target_relocate_section_addresses): Update.
16949
25057eb0
HD
169502020-01-03 Hannes Domani <ssbssa@yahoo.de>
16951
16952 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16953
6e2118f5
BE
169542020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16955
16956 * MAINTAINERS (Write After Approval): Add myself.
16957
8133c7dc
LM
169582020-01-02 Luis Machado <luis.machado@linaro.org>
16959
16960 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16961 Cell BE architecture.
16962 * target.h (struct target_ops) <thread_architecture>: Likewise.
16963
48189bec
HD
169642020-01-01 Hannes Domani <ssbssa@yahoo.de>
16965
16966 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16967
ead1063b
HD
169682020-01-01 Hannes Domani <ssbssa@yahoo.de>
16969
16970 * MAINTAINERS (Write After Approval): Add myself.
16971
e5d78223
JB
169722020-01-01 Joel Brobecker <brobecker@adacore.com>
16973
16974 * gdbarch.sh: Update copyright year range of generated files.
16975
b811d2c2
JB
169762020-01-01 Joel Brobecker <brobecker@adacore.com>
16977
16978 Update copyright year range in all GDB files.
16979
5f4def5c
JB
169802020-01-01 Joel Brobecker <brobecker@adacore.com>
16981
16982 * copyright.py: Convert to Python 3.
16983
51fd4002
JB
169842020-01-01 Joel Brobecker <brobecker@adacore.com>
16985
16986 * copyright.py: Adapt after move of gnulib directory from gdb
16987 directory to toplevel directory.
16988
5fb651f2
JB
169892020-01-01 Joel Brobecker <brobecker@adacore.com>
16990
16991 * copyright.py (main): Exit if run from the wrong directory.
16992
5dd8bf88
JB
169932020-01-01 Joel Brobecker <brobecker@adacore.com>
16994
16995 * top.c (print_gdb_version): Change copyright year to 2020.
16996
9f71dacb 169972020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16998
9f71dacb 16999 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17000
9f71dacb 17001For older changes see ChangeLog-2019.
c906108c
SS
17002\f
17003Local Variables:
17004mode: change-log
17005left-margin: 8
17006fill-column: 74
17007version-control: never
57da7796 17008coding: utf-8
c906108c 17009End: