gdbtypes.h: Get rid of the TYPE_FIXED_POINT_INFO macro
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2a12c336
JB
12020-11-24 Joel Brobecker <brobecker@adacore.com>
2
3 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
4 New methods.
5 (INIT_FIXED_POINT_SPECIFIC): Adjust.
6 (TYPE_FIXED_POINT_INFO): Delete macro.
7 (allocate_fixed_point_type_info): Change return type to void.
8 * gdbtypes.c (copy_type_recursive): Replace the use of
9 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
10 (fixed_point_scaling_factor): Likewise.
11 (allocate_fixed_point_type_info): Change return type to void.
12 Adjust implementation accordingly.
13 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
14 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
15
c9f0b43f
JB
162020-11-24 Joel Brobecker <brobecker@adacore.com>
17
18 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
19 into one single gdb::array_view parameter.
20 (gdb_mpz::write): Likewise.
21 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
22 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
23 into one single gdb::array_view parameter.
24 Adjust implementation accordingly.
25 (gdb_mpz::write): Likewise.
26 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
27 * unittests/gmp-utils-selftests.c: Adapt following changes above.
28 * valarith.c, valops.c, valprint.c, value.c: Likewise.
29
987b6703
JB
302020-11-24 Joel Brobecker <brobecker@adacore.com>
31
32 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
33 Change return type to std::string. Update all callers.
34 * gmp-utils.c (gmp_string_printf): Likewise.
35
4fbb7cce
JB
362020-11-24 Joel Brobecker <brobecker@adacore.com>
37
38 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
39 instead of mpq_set_ui to initialize our GMP rational.
40
d6ab69dd
TV
412020-11-23 Tom de Vries <tdevries@suse.de>
42
43 * debuginfod-support.c (debuginfod_source_query)
44 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
45
dab72643
TT
462020-11-21 Tom Tromey <tom@tromey.com>
47
48 * breakpoint.c (watchpoint_exp_is_const): Return bool.
49
c0ad05d5
SM
502020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
53 Pass 2.0 to pow.
54 (gdb_mpz_write_all_from_small): Likewise.
55
a43b29c9
SM
562020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
59 of abs.
60
ae41200b
NA
612020-11-20 Nick Alcock <nick.alcock@oracle.com>
62
63 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
64 ctf_arc_open_by_name.
65
139633c3
NA
662020-11-20 Nick Alcock <nick.alcock@oracle.com>
67
68 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
69 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
70
cbbcd7a7
PA
712020-11-20 Pedro Alves <pedro@palves.net>
72
73 * language.c (language_arch_info::lookup_primitive_type): Use
74 gdb::function_view instead of gdb::function.
75 (template language_lookup_primitive_type): Rename to ...
76 (language_lookup_primitive_type_1): ... this, and make static.
77 (language_lookup_primitive_type(const struct language_defn *,
78 struct gdbarch *, const char *): Make non-template.
79 (language_lookup_primitive_type(const struct language_defn *,
80 struct gdbarch *, std::function<bool (struct type *)>): Make
81 non-template and use gdb::function_view.
82 * language.h (language_arch_info::lookup_primitive_type): Use
83 gdb::function_view instead of std::function.
84 (language_lookup_primitive_type): No longer template.
85 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
86 lambda instead of a std::function.
87
d5ef21c3
AA
882020-11-19 Andreas Arnez <arnez@linux.ibm.com>
89
90 PR tdep/26916
91 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
92 and STOCFH.
93
a5adb8f3
SM
942020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
97
70125a45
SM
982020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
99
100 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
101 in `loop_cb` parameter.
102 * gdbarch.c: Re-generate.
103 * gdbarch.h: Re-generate.
104 * arch-utils.c (default_read_core_file_mappings): Remove `other`
105 parameter.
106 * arch-utils.h (default_read_core_file_mappings): Likewise.
107 * corelow.c (core_target::build_file_mappings): Likewise.
108 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
109 (linux_core_info_proc_mappings): Likewise.
110
a5c641b5
AB
1112020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
112
113 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
114 * NEWS: Mention new options.
115 * f-array-walker.h: New file.
116 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
117 (repack_array_slices): New static global.
118 (show_repack_array_slices): New function.
119 (fortran_array_slicing_debug): New static global.
120 (show_fortran_array_slicing_debug): New function.
121 (value_f90_subarray): Delete.
122 (skip_undetermined_arglist): Delete.
123 (class fortran_array_repacker_base_impl): New class.
124 (class fortran_lazy_array_repacker_impl): New class.
125 (class fortran_array_repacker_impl): New class.
126 (fortran_value_subarray): Complete rewrite.
127 (set_fortran_list): New static global.
128 (show_fortran_list): Likewise.
129 (_initialize_f_language): Register new commands.
130 (fortran_adjust_dynamic_array_base_address_hack): New function.
131 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
132 Declare.
133 * f-valprint.c: Include 'f-array-walker.h'.
134 (class fortran_array_printer_impl): New class.
135 (f77_print_array_1): Delete.
136 (f77_print_array): Delete.
137 (fortran_print_array): New.
138 (f_value_print_inner): Update to call fortran_print_array.
139 * gdbtypes.c: Include 'f-lang.h'.
140 (resolve_dynamic_type_internal): Call
141 fortran_adjust_dynamic_array_base_address_hack.
142
a15a5258
AB
1432020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
144
145 * breakpoint.c (struct watch_options): New struct.
146 (watch_option_defs): New static global.
147 (make_watch_options_def_group): New function.
148 (watch_maybe_just_location): Convert option parsing.
149 (watch_command_completer): New function.
150 (_initialize_breakpoint): Build help text using options mechanism.
151
2e362716
AB
1522020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
155 (watch_command_1): Update parameter types. Convert locals to
156 bool.
157 (watch_command_wrapper): Change parameter type.
158 (watch_maybe_just_location): Change locals to bool.
159 (rwatch_command_wrapper): Update parameter type.
160 (awatch_command_wrapper): Update parameter type.
161 * breakpoint.h (watch_command_wrapper): Change parameter type.
162 (rwatch_command_wrapper): Update parameter type.
163 (awatch_command_wrapper): Update parameter type.
164 * eval.c (fetch_subexp_value): Change parameter type.
165 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
166 'false' not '0'.
167 * value.h (fetch_subexp_value): Change parameter type in
168 declaration.
169
b3ff61f8
AB
1702020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
171
172 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
173 skip_spaces.
174
5b7d45d3
KS
1752020-11-18 Keith Seitz <keiths@redhat.com>
176
177 * linux-tdep.c (dump_note_entry_p): Return true instead of
178 checking `filename'.
179
c44191f8
TV
1802020-11-18 Tom de Vries <tdevries@suse.de>
181
182 * debuginfod-support.c (debuginfod_source_query)
183 (debuginfod_debuginfo_query): Also do early exit if
184 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
185
5d8254e1
TV
1862020-11-18 Tom de Vries <tdevries@suse.de>
187
188 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
189 warning.
190
584903d3
SM
1912020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * gdbtypes.h (get_array_bounds): Return bool, adjust some
194 callers. Move doc here.
195 * gdbtypes.c (get_array_bounds): Return bool
196
6f2643db
AB
1972020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
198
199 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
200 assert.
201 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
202 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
203 case to the default.
204
037d7135
AB
2052020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
206
207 * printcmd.c: Include 'safe-ctype.c'.
208 (skip_over_slash_fmt): New function.
209 (print_command_completer): Call skip_over_slash_fmt.
210 (display_and_x_command_completer): New function.
211 (_initialize_printcmd): Add command completion for 'x' and
212 'display'.
213
2b3cb400
PA
2142020-11-16 Pedro Alves <pedro@palves.net>
215
216 * frame.c (get_prev_frame): Move get_frame_id call from here ...
217 (get_prev_frame_always_1): ... to here.
218 * inline-frame.c (inline_frame_this_id): Mention
219 get_prev_frame_always_1 in comment.
220
b74dbc20
JB
2212020-11-15 Joel Brobecker <brobecker@adacore.com>
222
223 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
224 handling.
225 (value_less): Add fixed-point handling.
226
0a12719e
JB
2272020-11-15 Joel Brobecker <brobecker@adacore.com>
228
229 * eval.c (binop_promote): Add fixed-point type handling.
230 * valarith.c (fixed_point_binop): New function.
231 (scalar_binop): Add fixed-point type handling.
232 (value_neg): Add fixed-point type handling.
233 * valops.c (value_cast_to_fixed_point): New function.
234 (value_cast): Add fixed-point type handling.
235
0c9150e4
JB
2362020-11-15 Joel Brobecker <brobecker@adacore.com>
237
238 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
239 range types.
240 * c-typeprint.c (c_type_print_varspec_prefix)
241 (c_type_print_varspec_suffix, c_type_print_base_1): Add
242 TYPE_CODE_FIXED_POINT handling.
243 * p-typeprint.c (pascal_type_print_varspec_prefix)
244 (pascal_type_print_varspec_suffix): Likewise.
245 * typeprint.c (print_type_fixed_point): New function.
246 * typeprint.h (print_type_fixed_point): Add declaration.
247
b26daff9
JB
2482020-11-15 Joel Brobecker <brobecker@adacore.com>
249
250 * printcmd.c (print_scalar_formatted): Add fixed-point type
251 handling when options->format is set.
252
09584414
JB
2532020-11-15 Joel Brobecker <brobecker@adacore.com>
254
255 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
256 * dwarf2/read.c (get_dwarf2_rational_constant)
257 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
258 (has_zero_over_zero_small_attribute): New functions.
259 read_base_type, set_die_type): Add fixed-point type handling.
260 * gdb-gdb.py.in: Add fixed-point type handling.
261 * gdbtypes.c: #include "gmp-utils.h".
262 (create_range_type, set_type_code): Add fixed-point type handling.
263 (init_fixed_point_type): New function.
264 (is_integral_type, is_scalar_type): Add fixed-point type handling.
265 (print_fixed_point_type_info): New function.
266 (recursive_dump_type, copy_type_recursive): Add fixed-point type
267 handling.
268 (fixed_point_type_storage): New typedef.
269 (fixed_point_objfile_key): New static global.
270 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
271 (fixed_point_type_base_type, fixed_point_scaling_factor): New
272 functions.
273 * gdbtypes.h: #include "gmp-utils.h".
274 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
275 (union type_specific) <fixed_point_info>: New field.
276 (struct fixed_point_type_info): New struct.
277 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
278 (init_fixed_point_type, is_fixed_point_type)
279 (fixed_point_type_base_type, fixed_point_scaling_factor)
280 (allocate_fixed_point_type_info): Add declarations.
281 * valprint.c (generic_val_print_fixed_point): New function.
282 (generic_value_print): Add fixed-point type handling.
283 * value.c (value_as_address, unpack_long): Add fixed-point type
284 handling.
285
e55c6530
JB
2862020-11-15 Joel Brobecker <brobecker@adacore.com>
287
288 * utils.h (uinteger_pow): Add declaration.
289 * utils.c (uinteger_pow): Moved here (without changes)...
290 * valarith.c (uinteger_pow): ... from here.
291
b34c74ab
JB
2922020-11-15 Joel Brobecker <brobecker@adacore.com>
293
40d9d2fd 294 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
295 * unittests/gmp-utils-selftests.c: New file.
296 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
297 unittests/gmp-utils-selftests.c.
298 (COMMON_SFILES) Add gmp-utils.c.
299 (HFILES_NO_SRCDIR): Add gmp-utils.h.
300
1b4ac058
JB
3012020-11-15 Joel Brobecker <brobecker@adacore.com>
302
303 * configure.ac: Generate an error if a usable GMP library
304 could not be found.
305 * configure: Regenerate.
306
2c947d9b
JB
3072020-11-15 Joel Brobecker <brobecker@adacore.com>
308
309 * configure.ac: Add support for --with-libgmp-prefix.
310 * Makefile.in (LIBGMP): New variable.
311 (CLIBS): Include $(LIBGMP).
312 * configure, config.in: Regenerate
313
9dd02fc0
AB
3142020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
315
316 PR cli/26879
317 * f-exp.y (COMPLETE): New token.
318 (exp): Two new rules for tab-completion.
319 (saw_name_at_eof): New static global.
320 (last_was_structop): Likewise.
321 (yylex): Set new variables, and return COMPLETE token at the end
322 of the input stream in some cases.
323
758cb810
TT
3242020-11-14 Tom Tromey <tom@tromey.com>
325
326 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
327
749065b7
TT
3282020-11-14 Tom Tromey <tom@tromey.com>
329
330 * opencl-lang.c (opencl_component_ref): Make "comps" const.
331
2c5b1849
SM
3322020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
335
e8b2f0d9
TT
3362020-11-13 Tom Tromey <tom@tromey.com>
337
338 * c-lang.c (convert_ucn, convert_octal, convert_hex)
339 (convert_escape, parse_one_string): Constify.
340
25f4c262
KS
3412020-11-13 Keith Seitz <keiths@redhat.com>
342
343 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
344 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
345 outside of ELF segments" warning for debugin
346
9d3ab915
KS
3472020-11-13 Keith Seitz <keiths@redhat.com>
348
349 PR gdb/23034
350 * elfread.c (elf_symfile_segments): Output a BFD file name
351 for the "Loadable section ... outside of ELF segments" warning.
352
9ecab40c
SM
3532020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
354
355 PR gdb/26835
356 * arm-tdep.c (class arm_instruction_reader): New.
357 (target_arm_instruction_reader): New.
358 (arm_analyze_prologue): Add instruction reader parameter and use
359 it. Use arm_expand_immediate.
360 (class target_arm_instruction_reader): Adjust.
361 (arm_skip_prologue): Adjust.
362 (arm_expand_immediate): New.
363 (arm_scan_prologue): Adjust.
364 (arm_analyze_prologue_test): New.
365 (class test_arm_instruction_reader): New.
366
5a7cf527
AB
3672020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
368
369 * f-lang.c (fortran_argument_convert): Add declaration. Add
370 header comment, taken from f-lang.h. Make static.
371 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
372 (fortran_argument_convert): Delete declaration.
373
7bea47f0
AB
3742020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * ada-exp.y (find_primitive_type): Make parameter const.
377 * ada-lang.c (enum ada_primitive_types): Delete.
378 (ada_language::language_arch_info): Update.
379 * c-lang.c (enum c_primitive_types): Delete.
380 (c_language_arch_info): Update.
381 (enum cplus_primitive_types): Delete.
382 (cplus_language::language_arch_info): Update.
383 * d-lang.c (enum d_primitive_types): Delete.
384 (d_language::language_arch_info): Update.
385 * f-lang.c (enum f_primitive_types): Delete.
386 (f_language::language_arch_info): Update.
387 * go-lang.c (enum go_primitive_types): Delete.
388 (go_language::language_arch_info): Update.
389 * language.c (auto_or_unknown_language::language_arch_info):
390 Update.
391 (language_gdbarch_post_init): Use obstack_new, use array indexing.
392 (language_string_char_type): Add header comment, call function in
393 language_arch_info.
394 (language_bool_type): Likewise
395 (language_arch_info::bool_type): Define.
396 (language_lookup_primitive_type_1): Delete.
397 (language_lookup_primitive_type): Rewrite as a templated function
398 to call function in language_arch_info, then instantiate twice.
399 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
400 (language_arch_info::lookup_primitive_type_and_symbol): Define.
401 (language_arch_info::lookup_primitive_type): Define twice with
402 different signatures.
403 (language_arch_info::lookup_primitive_type_as_symbol): Define.
404 (language_lookup_primitive_type_as_symbol): Rewrite to call a
405 member function in language_arch_info.
406 * language.h (language_arch_info): Complete rewrite.
407 (language_lookup_primitive_type): Make templated.
408 * m2-lang.c (enum m2_primitive_types): Delete.
409 (m2_language::language_arch_info): Update.
410 * opencl-lang.c (OCL_P_TYPE): Delete.
411 (enum opencl_primitive_types): Delete.
412 (opencl_type_data): Delete.
413 (builtin_opencl_type): Delete.
414 (lookup_opencl_vector_type): Update.
415 (opencl_language::language_arch_info): Update, lots of content
416 moved from...
417 (build_opencl_types): ...here. This function is now deleted.
418 (_initialize_opencl_language): Delete.
419 * p-lang.c (enum pascal_primitive_types): Delete.
420 (pascal_language::language_arch_info): Update.
421 * rust-lang.c (enum rust_primitive_types): Delete.
422 (rust_language::language_arch_info): Update.
423
bf6e5d01
SM
4242020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
425
426 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
427 dwarf2_queue_guard.
428
1350c3b4
SM
4292020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
432 comment.
433
6f738b01
SM
4342020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
435
436 * dwarf2/read.c (dwarf_read_debug_printf,
437 dwarf_read_debug_printf_v): New macros, use throughout the file.
438
10c19fad
SV
4392020-11-12 Shahab Vahedi <shahab@synopsys.com>
440
441 * arc-linux-tdep.c (collect_register): Populate "eret" by
442 "pc" value from the regcache when asked for "pc" value.
443
1f2624a3
TT
4442020-11-12 Tom Tromey <tom@tromey.com>
445
446 PR rust/26799:
447 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
448 exist.
449
ab33b152
AB
4502020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
451
452 * features/Makefile (XMLTOC): Add rx.xml.
453 (FEATURE_XMLFILES): Remove rx.xml.
454 (FEATURE_CFILES rule): Pass '-single-feature' flag.
455 * features/rx.c: Regenerate.
456 * features/rx.xml: Wrap in `target` tags, and reindent.
457 * target-descriptions.c (struct maint_print_c_tdesc_options): New
458 structure.
459 (maint_print_c_tdesc_opt_def): New typedef.
460 (maint_print_c_tdesc_opt_defs): New static global.
461 (make_maint_print_c_tdesc_options_def_group): New function.
462 (maint_print_c_tdesc_cmd): Make use of command line flags, only
463 print single feature C file for target descriptions containing a
464 single feature.
465 (maint_print_c_tdesc_cmd_completer): New function.
466 (_initialize_target_descriptions): Update call to register command
467 completer, and include command line flag in help text.
468
550820e1
AB
4692020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
470
471 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
472 numbers.
473 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
474 enum values.
475
baf20f76
TT
4762020-11-10 Tom Tromey <tom@tromey.com>
477
478 * value.h (internalvar_name): Update.
479 * value.c (internalvar_name): Make return type const.
480
caaece0e
TT
4812020-11-10 Tom Tromey <tom@tromey.com>
482
483 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
484 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
485 const.
486
8e20b4be
TT
4872020-11-10 Tom Tromey <tom@tromey.com>
488
489 * objc-lang.h (value_nsstring): Update.
490 * objc-lang.c (value_nsstring): Make "ptr" const.
491
86775fab
AB
4922020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
493
494 * expprint.c (print_subexp_funcall): Increment expression position
495 after reading argument count.
496 * f-lang.c (print_subexp_f): Skip over opcode before calling
497 common function.
498 (dump_subexp_body_f): Likewise.
499
3fed4c0b
RG
5002020-11-06 Romain Geissler <romain.geissler@amadeus.com>
501
502 PR python/26832
503 * configure: Regenerate.
504 * configure.ac: Check for python modules ctypes instead of
505 itertools.
506
ac3d4064
PA
5072020-11-06 Pedro Alves <pedro@palves.net>
508
509 * macroexp.c (struct macro_buffer): Split in two classes. Add
510 uses adjusted.
511 (struct shared_macro_buffer): New, factored out from struct
512 macro_buffer.
513 (struct growable_macro_buffer): New, factored out from struct
514 macro_buffer.
515 (set_token, get_comment, get_identifier, get_pp_number)
516 (get_character_constant, get_string_literal, get_punctuator)
517 (get_next_token_for_substitution): Constify parameters.
518 (substitute_args): Constify locals.
519
606decb2
TT
5202020-11-05 Tom Tromey <tom@tromey.com>
521
522 * dwarf2/read.c (read_cutu_die_from_dwo)
523 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
524 (build_type_psymtabs_1): Update.
525 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
526 parameter.
527 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
528 Don't read section. Add assert.
529
9c91c725
TT
5302020-11-04 Tom Tromey <tromey@adacore.com>
531
532 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
533
8d9fd3a1
TT
5342020-11-04 Tom Tromey <tromey@adacore.com>
535
536 * ada-typeprint.c (ada_print_type): Handle __T types.
537
d8f62e84
TT
5382020-11-04 Tom Tromey <tromey@adacore.com>
539
540 * dwarf2/read.c (add_partial_symbol, process_die):
541 Handle DW_TAG_array_type.
542 (is_type_tag_for_partial): Add "lang" parameter.
543 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
544
7ff5b937
TT
5452020-11-04 Tom Tromey <tromey@adacore.com>
546
547 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
548
10f6a3ad
TT
5492020-11-04 Tom Tromey <tromey@adacore.com>
550
551 * dwarf2/read.c (read_array_type): Only apply stride to innermost
552 array.
553
b72795a8
TT
5542020-11-04 Tom Tromey <tromey@adacore.com>
555
556 * gdbtypes.c (update_static_array_size): Handle bit stride.
557
24aa1b02
TT
5582020-11-04 Tom Tromey <tromey@adacore.com>
559
560 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
561
c9a28cbe
TT
5622020-11-04 Tom Tromey <tromey@adacore.com>
563
564 * ada-lang.c (ada_is_any_packed_array_type): New function.
565 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
566
57567375
TT
5672020-11-04 Tom Tromey <tromey@adacore.com>
568
569 * dwarf2/read.c (recognize_bound_expression)
570 (quirk_ada_thick_pointer): New functions.
571 (read_array_type): Call quirk_ada_thick_pointer.
572 (set_die_type): Add "skip_data_location" parameter.
573 (quirk_ada_thick_pointer): New function.
574 (process_structure_scope): Call quirk_ada_thick_pointer.
575 * ada-lang.c (ada_is_unconstrained_packed_array_type)
576 (decode_packed_array_bitsize): Handle thick pointers without
577 parallel types.
578 (ada_is_gnat_encoded_packed_array_type): Rename from
579 ada_is_packed_array_type.
580 (ada_is_constrained_packed_array_type): Update.
581 * ada-valprint.c (ada_val_print_gnat_array): Remove.
582 (ada_value_print_1): Use ada_get_decoded_value.
583
a7400e44
TT
5842020-11-04 Tom Tromey <tromey@adacore.com>
585
586 * ada-lang.c (recursively_update_array_bitsize): New function.
587 (decode_constrained_packed_array_type): Call it.
588
75fd6a26
TT
5892020-11-04 Tom Tromey <tromey@adacore.com>
590
591 * ada-lang.c (to_fixed_array_type): Error if
592 decode_constrained_packed_array_type returns NULL.
593
93f9561e
TT
5942020-11-04 Tom Tromey <tromey@adacore.com>
595
596 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
597
257e02d8
TT
5982020-11-02 Tom Tromey <tromey@adacore.com>
599
600 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
601 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
602 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
603 * amd64-ravenscar-thread.c: New file.
604 * amd64-ravenscar-thread.h: New file.
605 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
606 * configure.tgt (amd64_tobjs): Add ravenscar objects.
607
74d877e5
AB
6082020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
609
610 * main.c (execute_cmdargs): New function.
611 (captured_main_1): Make use of execute_cmdargs.
612
64aaad63
AB
6132020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
614
615 * NEWS: Mention changes to config file search path.
616 * main.c
617
5b3d3560
TT
6182020-11-02 Tom Tromey <tromey@adacore.com>
619
620 * python/python.c: Consolidate two HAVE_PYTHON blocks.
621 (python_GdbModuleDef): Move earlier. Now static.
622 (do_start_initialization): Consolidate some IS_PY3K blocks.
623
dda83cd7
SM
6242020-11-02 Simon Marchi <simon.marchi@efficios.com>
625
626 * aarch64-linux-tdep.c: Fix indentation.
627 * aarch64-ravenscar-thread.c: Fix indentation.
628 * aarch64-tdep.c: Fix indentation.
629 * aarch64-tdep.h: Fix indentation.
630 * ada-lang.c: Fix indentation.
631 * ada-lang.h: Fix indentation.
632 * ada-tasks.c: Fix indentation.
633 * ada-typeprint.c: Fix indentation.
634 * ada-valprint.c: Fix indentation.
635 * ada-varobj.c: Fix indentation.
636 * addrmap.c: Fix indentation.
637 * addrmap.h: Fix indentation.
638 * agent.c: Fix indentation.
639 * aix-thread.c: Fix indentation.
640 * alpha-bsd-nat.c: Fix indentation.
641 * alpha-linux-tdep.c: Fix indentation.
642 * alpha-mdebug-tdep.c: Fix indentation.
643 * alpha-nbsd-tdep.c: Fix indentation.
644 * alpha-obsd-tdep.c: Fix indentation.
645 * alpha-tdep.c: Fix indentation.
646 * amd64-bsd-nat.c: Fix indentation.
647 * amd64-darwin-tdep.c: Fix indentation.
648 * amd64-linux-nat.c: Fix indentation.
649 * amd64-linux-tdep.c: Fix indentation.
650 * amd64-nat.c: Fix indentation.
651 * amd64-obsd-tdep.c: Fix indentation.
652 * amd64-tdep.c: Fix indentation.
653 * amd64-windows-tdep.c: Fix indentation.
654 * annotate.c: Fix indentation.
655 * arc-tdep.c: Fix indentation.
656 * arch-utils.c: Fix indentation.
657 * arch/arm-get-next-pcs.c: Fix indentation.
658 * arch/arm.c: Fix indentation.
659 * arm-linux-nat.c: Fix indentation.
660 * arm-linux-tdep.c: Fix indentation.
661 * arm-nbsd-tdep.c: Fix indentation.
662 * arm-pikeos-tdep.c: Fix indentation.
663 * arm-tdep.c: Fix indentation.
664 * arm-tdep.h: Fix indentation.
665 * arm-wince-tdep.c: Fix indentation.
666 * auto-load.c: Fix indentation.
667 * auxv.c: Fix indentation.
668 * avr-tdep.c: Fix indentation.
669 * ax-gdb.c: Fix indentation.
670 * ax-general.c: Fix indentation.
671 * bfin-linux-tdep.c: Fix indentation.
672 * block.c: Fix indentation.
673 * block.h: Fix indentation.
674 * blockframe.c: Fix indentation.
675 * bpf-tdep.c: Fix indentation.
676 * break-catch-sig.c: Fix indentation.
677 * break-catch-syscall.c: Fix indentation.
678 * break-catch-throw.c: Fix indentation.
679 * breakpoint.c: Fix indentation.
680 * breakpoint.h: Fix indentation.
681 * bsd-uthread.c: Fix indentation.
682 * btrace.c: Fix indentation.
683 * build-id.c: Fix indentation.
684 * buildsym-legacy.h: Fix indentation.
685 * buildsym.c: Fix indentation.
686 * c-typeprint.c: Fix indentation.
687 * c-valprint.c: Fix indentation.
688 * c-varobj.c: Fix indentation.
689 * charset.c: Fix indentation.
690 * cli/cli-cmds.c: Fix indentation.
691 * cli/cli-decode.c: Fix indentation.
692 * cli/cli-decode.h: Fix indentation.
693 * cli/cli-script.c: Fix indentation.
694 * cli/cli-setshow.c: Fix indentation.
695 * coff-pe-read.c: Fix indentation.
696 * coffread.c: Fix indentation.
697 * compile/compile-cplus-types.c: Fix indentation.
698 * compile/compile-object-load.c: Fix indentation.
699 * compile/compile-object-run.c: Fix indentation.
700 * completer.c: Fix indentation.
701 * corefile.c: Fix indentation.
702 * corelow.c: Fix indentation.
703 * cp-abi.h: Fix indentation.
704 * cp-namespace.c: Fix indentation.
705 * cp-support.c: Fix indentation.
706 * cp-valprint.c: Fix indentation.
707 * cris-linux-tdep.c: Fix indentation.
708 * cris-tdep.c: Fix indentation.
709 * darwin-nat-info.c: Fix indentation.
710 * darwin-nat.c: Fix indentation.
711 * darwin-nat.h: Fix indentation.
712 * dbxread.c: Fix indentation.
713 * dcache.c: Fix indentation.
714 * disasm.c: Fix indentation.
715 * dtrace-probe.c: Fix indentation.
716 * dwarf2/abbrev.c: Fix indentation.
717 * dwarf2/attribute.c: Fix indentation.
718 * dwarf2/expr.c: Fix indentation.
719 * dwarf2/frame.c: Fix indentation.
720 * dwarf2/index-cache.c: Fix indentation.
721 * dwarf2/index-write.c: Fix indentation.
722 * dwarf2/line-header.c: Fix indentation.
723 * dwarf2/loc.c: Fix indentation.
724 * dwarf2/macro.c: Fix indentation.
725 * dwarf2/read.c: Fix indentation.
726 * dwarf2/read.h: Fix indentation.
727 * elfread.c: Fix indentation.
728 * eval.c: Fix indentation.
729 * event-top.c: Fix indentation.
730 * exec.c: Fix indentation.
731 * exec.h: Fix indentation.
732 * expprint.c: Fix indentation.
733 * f-lang.c: Fix indentation.
734 * f-typeprint.c: Fix indentation.
735 * f-valprint.c: Fix indentation.
736 * fbsd-nat.c: Fix indentation.
737 * fbsd-tdep.c: Fix indentation.
738 * findvar.c: Fix indentation.
739 * fork-child.c: Fix indentation.
740 * frame-unwind.c: Fix indentation.
741 * frame-unwind.h: Fix indentation.
742 * frame.c: Fix indentation.
743 * frv-linux-tdep.c: Fix indentation.
744 * frv-tdep.c: Fix indentation.
745 * frv-tdep.h: Fix indentation.
746 * ft32-tdep.c: Fix indentation.
747 * gcore.c: Fix indentation.
748 * gdb_bfd.c: Fix indentation.
749 * gdbarch.sh: Fix indentation.
750 * gdbarch.c: Re-generate
751 * gdbarch.h: Re-generate.
752 * gdbcore.h: Fix indentation.
753 * gdbthread.h: Fix indentation.
754 * gdbtypes.c: Fix indentation.
755 * gdbtypes.h: Fix indentation.
756 * glibc-tdep.c: Fix indentation.
757 * gnu-nat.c: Fix indentation.
758 * gnu-nat.h: Fix indentation.
759 * gnu-v2-abi.c: Fix indentation.
760 * gnu-v3-abi.c: Fix indentation.
761 * go32-nat.c: Fix indentation.
762 * guile/guile-internal.h: Fix indentation.
763 * guile/scm-cmd.c: Fix indentation.
764 * guile/scm-frame.c: Fix indentation.
765 * guile/scm-iterator.c: Fix indentation.
766 * guile/scm-math.c: Fix indentation.
767 * guile/scm-ports.c: Fix indentation.
768 * guile/scm-pretty-print.c: Fix indentation.
769 * guile/scm-value.c: Fix indentation.
770 * h8300-tdep.c: Fix indentation.
771 * hppa-linux-nat.c: Fix indentation.
772 * hppa-linux-tdep.c: Fix indentation.
773 * hppa-nbsd-nat.c: Fix indentation.
774 * hppa-nbsd-tdep.c: Fix indentation.
775 * hppa-obsd-nat.c: Fix indentation.
776 * hppa-tdep.c: Fix indentation.
777 * hppa-tdep.h: Fix indentation.
778 * i386-bsd-nat.c: Fix indentation.
779 * i386-darwin-nat.c: Fix indentation.
780 * i386-darwin-tdep.c: Fix indentation.
781 * i386-dicos-tdep.c: Fix indentation.
782 * i386-gnu-nat.c: Fix indentation.
783 * i386-linux-nat.c: Fix indentation.
784 * i386-linux-tdep.c: Fix indentation.
785 * i386-nto-tdep.c: Fix indentation.
786 * i386-obsd-tdep.c: Fix indentation.
787 * i386-sol2-nat.c: Fix indentation.
788 * i386-tdep.c: Fix indentation.
789 * i386-tdep.h: Fix indentation.
790 * i386-windows-tdep.c: Fix indentation.
791 * i387-tdep.c: Fix indentation.
792 * i387-tdep.h: Fix indentation.
793 * ia64-libunwind-tdep.c: Fix indentation.
794 * ia64-libunwind-tdep.h: Fix indentation.
795 * ia64-linux-nat.c: Fix indentation.
796 * ia64-linux-tdep.c: Fix indentation.
797 * ia64-tdep.c: Fix indentation.
798 * ia64-tdep.h: Fix indentation.
799 * ia64-vms-tdep.c: Fix indentation.
800 * infcall.c: Fix indentation.
801 * infcmd.c: Fix indentation.
802 * inferior.c: Fix indentation.
803 * infrun.c: Fix indentation.
804 * iq2000-tdep.c: Fix indentation.
805 * language.c: Fix indentation.
806 * linespec.c: Fix indentation.
807 * linux-fork.c: Fix indentation.
808 * linux-nat.c: Fix indentation.
809 * linux-tdep.c: Fix indentation.
810 * linux-thread-db.c: Fix indentation.
811 * lm32-tdep.c: Fix indentation.
812 * m2-lang.c: Fix indentation.
813 * m2-typeprint.c: Fix indentation.
814 * m2-valprint.c: Fix indentation.
815 * m32c-tdep.c: Fix indentation.
816 * m32r-linux-tdep.c: Fix indentation.
817 * m32r-tdep.c: Fix indentation.
818 * m68hc11-tdep.c: Fix indentation.
819 * m68k-bsd-nat.c: Fix indentation.
820 * m68k-linux-nat.c: Fix indentation.
821 * m68k-linux-tdep.c: Fix indentation.
822 * m68k-tdep.c: Fix indentation.
823 * machoread.c: Fix indentation.
824 * macrocmd.c: Fix indentation.
825 * macroexp.c: Fix indentation.
826 * macroscope.c: Fix indentation.
827 * macrotab.c: Fix indentation.
828 * macrotab.h: Fix indentation.
829 * main.c: Fix indentation.
830 * mdebugread.c: Fix indentation.
831 * mep-tdep.c: Fix indentation.
832 * mi/mi-cmd-catch.c: Fix indentation.
833 * mi/mi-cmd-disas.c: Fix indentation.
834 * mi/mi-cmd-env.c: Fix indentation.
835 * mi/mi-cmd-stack.c: Fix indentation.
836 * mi/mi-cmd-var.c: Fix indentation.
837 * mi/mi-cmds.c: Fix indentation.
838 * mi/mi-main.c: Fix indentation.
839 * mi/mi-parse.c: Fix indentation.
840 * microblaze-tdep.c: Fix indentation.
841 * minidebug.c: Fix indentation.
842 * minsyms.c: Fix indentation.
843 * mips-linux-nat.c: Fix indentation.
844 * mips-linux-tdep.c: Fix indentation.
845 * mips-nbsd-tdep.c: Fix indentation.
846 * mips-tdep.c: Fix indentation.
847 * mn10300-linux-tdep.c: Fix indentation.
848 * mn10300-tdep.c: Fix indentation.
849 * moxie-tdep.c: Fix indentation.
850 * msp430-tdep.c: Fix indentation.
851 * namespace.h: Fix indentation.
852 * nat/fork-inferior.c: Fix indentation.
853 * nat/gdb_ptrace.h: Fix indentation.
854 * nat/linux-namespaces.c: Fix indentation.
855 * nat/linux-osdata.c: Fix indentation.
856 * nat/netbsd-nat.c: Fix indentation.
857 * nat/x86-dregs.c: Fix indentation.
858 * nbsd-nat.c: Fix indentation.
859 * nbsd-tdep.c: Fix indentation.
860 * nios2-linux-tdep.c: Fix indentation.
861 * nios2-tdep.c: Fix indentation.
862 * nto-procfs.c: Fix indentation.
863 * nto-tdep.c: Fix indentation.
864 * objfiles.c: Fix indentation.
865 * objfiles.h: Fix indentation.
866 * opencl-lang.c: Fix indentation.
867 * or1k-tdep.c: Fix indentation.
868 * osabi.c: Fix indentation.
869 * osabi.h: Fix indentation.
870 * osdata.c: Fix indentation.
871 * p-lang.c: Fix indentation.
872 * p-typeprint.c: Fix indentation.
873 * p-valprint.c: Fix indentation.
874 * parse.c: Fix indentation.
875 * ppc-linux-nat.c: Fix indentation.
876 * ppc-linux-tdep.c: Fix indentation.
877 * ppc-nbsd-nat.c: Fix indentation.
878 * ppc-nbsd-tdep.c: Fix indentation.
879 * ppc-obsd-nat.c: Fix indentation.
880 * ppc-ravenscar-thread.c: Fix indentation.
881 * ppc-sysv-tdep.c: Fix indentation.
882 * ppc64-tdep.c: Fix indentation.
883 * printcmd.c: Fix indentation.
884 * proc-api.c: Fix indentation.
885 * producer.c: Fix indentation.
886 * producer.h: Fix indentation.
887 * prologue-value.c: Fix indentation.
888 * prologue-value.h: Fix indentation.
889 * psymtab.c: Fix indentation.
890 * python/py-arch.c: Fix indentation.
891 * python/py-bpevent.c: Fix indentation.
892 * python/py-event.c: Fix indentation.
893 * python/py-event.h: Fix indentation.
894 * python/py-finishbreakpoint.c: Fix indentation.
895 * python/py-frame.c: Fix indentation.
896 * python/py-framefilter.c: Fix indentation.
897 * python/py-inferior.c: Fix indentation.
898 * python/py-infthread.c: Fix indentation.
899 * python/py-objfile.c: Fix indentation.
900 * python/py-prettyprint.c: Fix indentation.
901 * python/py-registers.c: Fix indentation.
902 * python/py-signalevent.c: Fix indentation.
903 * python/py-stopevent.c: Fix indentation.
904 * python/py-stopevent.h: Fix indentation.
905 * python/py-threadevent.c: Fix indentation.
906 * python/py-tui.c: Fix indentation.
907 * python/py-unwind.c: Fix indentation.
908 * python/py-value.c: Fix indentation.
909 * python/py-xmethods.c: Fix indentation.
910 * python/python-internal.h: Fix indentation.
911 * python/python.c: Fix indentation.
912 * ravenscar-thread.c: Fix indentation.
913 * record-btrace.c: Fix indentation.
914 * record-full.c: Fix indentation.
915 * record.c: Fix indentation.
916 * reggroups.c: Fix indentation.
917 * regset.h: Fix indentation.
918 * remote-fileio.c: Fix indentation.
919 * remote.c: Fix indentation.
920 * reverse.c: Fix indentation.
921 * riscv-linux-tdep.c: Fix indentation.
922 * riscv-ravenscar-thread.c: Fix indentation.
923 * riscv-tdep.c: Fix indentation.
924 * rl78-tdep.c: Fix indentation.
925 * rs6000-aix-tdep.c: Fix indentation.
926 * rs6000-lynx178-tdep.c: Fix indentation.
927 * rs6000-nat.c: Fix indentation.
928 * rs6000-tdep.c: Fix indentation.
929 * rust-lang.c: Fix indentation.
930 * rx-tdep.c: Fix indentation.
931 * s12z-tdep.c: Fix indentation.
932 * s390-linux-tdep.c: Fix indentation.
933 * score-tdep.c: Fix indentation.
934 * ser-base.c: Fix indentation.
935 * ser-mingw.c: Fix indentation.
936 * ser-uds.c: Fix indentation.
937 * ser-unix.c: Fix indentation.
938 * serial.c: Fix indentation.
939 * sh-linux-tdep.c: Fix indentation.
940 * sh-nbsd-tdep.c: Fix indentation.
941 * sh-tdep.c: Fix indentation.
942 * skip.c: Fix indentation.
943 * sol-thread.c: Fix indentation.
944 * solib-aix.c: Fix indentation.
945 * solib-darwin.c: Fix indentation.
946 * solib-frv.c: Fix indentation.
947 * solib-svr4.c: Fix indentation.
948 * solib.c: Fix indentation.
949 * source.c: Fix indentation.
950 * sparc-linux-tdep.c: Fix indentation.
951 * sparc-nbsd-tdep.c: Fix indentation.
952 * sparc-obsd-tdep.c: Fix indentation.
953 * sparc-ravenscar-thread.c: Fix indentation.
954 * sparc-tdep.c: Fix indentation.
955 * sparc64-linux-tdep.c: Fix indentation.
956 * sparc64-nbsd-tdep.c: Fix indentation.
957 * sparc64-obsd-tdep.c: Fix indentation.
958 * sparc64-tdep.c: Fix indentation.
959 * stabsread.c: Fix indentation.
960 * stack.c: Fix indentation.
961 * stap-probe.c: Fix indentation.
962 * stubs/ia64vms-stub.c: Fix indentation.
963 * stubs/m32r-stub.c: Fix indentation.
964 * stubs/m68k-stub.c: Fix indentation.
965 * stubs/sh-stub.c: Fix indentation.
966 * stubs/sparc-stub.c: Fix indentation.
967 * symfile-mem.c: Fix indentation.
968 * symfile.c: Fix indentation.
969 * symfile.h: Fix indentation.
970 * symmisc.c: Fix indentation.
971 * symtab.c: Fix indentation.
972 * symtab.h: Fix indentation.
973 * target-float.c: Fix indentation.
974 * target.c: Fix indentation.
975 * target.h: Fix indentation.
976 * tic6x-tdep.c: Fix indentation.
977 * tilegx-linux-tdep.c: Fix indentation.
978 * tilegx-tdep.c: Fix indentation.
979 * top.c: Fix indentation.
980 * tracefile-tfile.c: Fix indentation.
981 * tracepoint.c: Fix indentation.
982 * tui/tui-disasm.c: Fix indentation.
983 * tui/tui-io.c: Fix indentation.
984 * tui/tui-regs.c: Fix indentation.
985 * tui/tui-stack.c: Fix indentation.
986 * tui/tui-win.c: Fix indentation.
987 * tui/tui-winsource.c: Fix indentation.
988 * tui/tui.c: Fix indentation.
989 * typeprint.c: Fix indentation.
990 * ui-out.h: Fix indentation.
991 * unittests/copy_bitwise-selftests.c: Fix indentation.
992 * unittests/memory-map-selftests.c: Fix indentation.
993 * utils.c: Fix indentation.
994 * v850-tdep.c: Fix indentation.
995 * valarith.c: Fix indentation.
996 * valops.c: Fix indentation.
997 * valprint.c: Fix indentation.
998 * valprint.h: Fix indentation.
999 * value.c: Fix indentation.
1000 * value.h: Fix indentation.
1001 * varobj.c: Fix indentation.
1002 * vax-tdep.c: Fix indentation.
1003 * windows-nat.c: Fix indentation.
1004 * windows-tdep.c: Fix indentation.
1005 * xcoffread.c: Fix indentation.
1006 * xml-syscall.c: Fix indentation.
1007 * xml-tdesc.c: Fix indentation.
1008 * xstormy16-tdep.c: Fix indentation.
1009 * xtensa-config.c: Fix indentation.
1010 * xtensa-linux-nat.c: Fix indentation.
1011 * xtensa-linux-tdep.c: Fix indentation.
1012 * xtensa-tdep.c: Fix indentation.
1013
e1f57067
AB
10142020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1015 Craig Blackmore <craig.blackmore@embecosm.com>
1016
1017 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1018 as an unsigned value.
1019
ae7754b2
TT
10202020-11-01 Tom Tromey <tom@tromey.com>
1021
1022 * dbxread.c (dbx_end_psymtab): Update.
1023 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1024 (build_type_psymtabs_reader): Update.
1025 * xcoffread.c (xcoff_end_psymtab): Update.
1026 * ctfread.c (scan_partial_symbols): Update.
1027 * psymtab.c (sort_pst_symbols): Remove.
1028 (partial_symtab::end): Rename from end_psymtab_common. Inline
1029 sort_pst_symbols.
1030 * psympriv.h (struct partial_symtab) <end>: New method.
1031 (end_psymtab_common): Don't declare.
1032
0684bb51
TT
10332020-11-01 Tom Tromey <tom@tromey.com>
1034
1035 * symmisc.c (count_psyms): New function.
1036 (print_objfile_statistics): Use it.
1037 * psymtab.c (append_psymbol_to_list): Remove.
1038 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1039 * objfiles.h (struct objstats) <n_psyms>: Remove.
1040
089002bb
TT
10412020-11-01 Tom Tromey <tom@tromey.com>
1042
1043 * dbxread.c (dbx_end_psymtab): Update.
1044 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1045 (build_type_psymtabs_reader): Update.
1046 * xcoffread.c (xcoff_end_psymtab): Update.
1047 * ctfread.c (scan_partial_symbols): Update.
1048 * psympriv.h (end_psymtab_common): Update.
1049 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1050 (sort_pst_symbols): Likewise.
1051
525454d6
TT
10522020-11-01 Tom Tromey <tom@tromey.com>
1053
1054 * dbxread.c (dbx_symfile_read): Update.
1055 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1056 * xcoffread.c (xcoff_initial_scan): Update.
1057 * psympriv.h (init_psymbol_list): Don't declare.
1058 * psymtab.c (init_psymbol_list): Remove.
1059
60bd1d53
JB
10602020-11-01 Joel Brobecker <brobecker@adacore.com>
1061
1062 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1063 gnat_encoded_fixed_type_info. Update all callers.
1064
db99d0d0
JB
10652020-11-01 Joel Brobecker <brobecker@adacore.com>
1066
1067 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1068 line too long.
1069
75f24e86
JB
10702020-11-01 Joel Brobecker <brobecker@adacore.com>
1071
1072 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1073 cast_from_fixed. Update all callers.
1074 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1075 Update all callers.
1076 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1077 Update all callers.
1078 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1079 ada_scaling_factor.
1080 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1081 to print_gnat_encoded_fixed_point_type.
1082 * ada-valprint.c: Likewise.
1083
4f0469cd
AB
10842020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1085
1086 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1087 (debug_prefixed_printf): Add check of debug_displaced flag.
1088 * linux-nat.c (linux_nat_debug_printf): Add check of
1089 debug_linux_nat flag.
1090
17417fb0
SM
10912020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * infrun.c (infrun_debug_printf_1): Remove.
1094 (displaced_debug_printf_1): Remove.
1095 (stop_all_threads): Use debug_prefixed_printf.
1096 * infrun.h (infrun_debug_printf_1): Remove.
1097 (infrun_debug_printf): Use debug_prefixed_printf.
1098 (displaced_debug_printf_1): Remove.
1099 (displaced_debug_printf): Use debug_prefixed_printf.
1100 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1101 (linux_nat_debug_printf): Use debug_prefixed_printf.
1102
ad6dba1c
SM
11032020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1104
1105 * configure: Re-generate.
1106 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1107 AC_LANG_PROGRAM.
1108
b6fb30ed
SM
11092020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1110
1111 * configure: Re-generate.
1112
5164c117
SM
11132020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1114
1115 * configure: Re-generate.
1116
864ca435
SM
11172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1118
1119 * configure: Re-generate.
1120
b9442ec1
SM
11212020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * configure: Re-generate.
1124
294f2697
SM
11252020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1126
1127 * acinclude.m4: Modernize.
1128 * configure: Re-generate.
1129
5593a99a
SM
11302020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1131
1132 * configure.ac: Modernize.
1133 * configure: Re-generate.
1134
e41fda1d
SM
11352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1138 * configure: Re-generate.
1139 * configure.ac: Remove AM_PROG_CC_STDC.
1140
91e1a0ed
SM
11412020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1142
1143 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1144 AC_CANONICAL_SYSTEM.
1145 * configure: Re-generate.
1146
136821d9
SM
11472020-10-30 Simon Marchi <simon.marchi@efficios.com>
1148
1149 * infrun.h (displaced_debug_printf): New macro. Replace
1150 displaced debug prints throughout to use it.
1151 (displaced_debug_printf_1): New declaration.
1152 (displaced_step_dump_bytes): Return string, remove ui_file
1153 parameter, update all callers.
1154 * infrun.c (displaced_debug_printf_1): New function.
1155 (displaced_step_dump_bytes): Return string, remove ui_file
1156 parameter
1157
aa2045e7
SM
11582020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1159
1160 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1161
b1ec2735
TT
11622020-10-30 Tom Tromey <tromey@adacore.com>
1163
1164 * Makefile.in (stamp-init): Depend on config.status.
1165
b78b3a29
TBA
11662020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1167
1168 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1169
d70bdd3c
PA
11702020-10-30 Pedro Alves <pedro@palves.net>
1171
1172 * thread.c (lookup_selected_frame): Move ...
1173 * frame.c (lookup_selected_frame): ... here.
1174
79952e69
PA
11752020-10-30 Pedro Alves <pedro@palves.net>
1176
1177 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1178 * frame.c
1179 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1180 Use save_selected_frame. Save language as well.
1181 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1182 Use restore_selected_frame, and restore language as well.
1183 (selected_frame_id, selected_frame_level): New.
1184 (selected_frame): Update comments.
1185 (save_selected_frame, restore_selected_frame): New.
1186 (get_selected_frame): Use lookup_selected_frame.
1187 (get_selected_frame_if_set): Delete.
1188 (select_frame): Record selected_frame_level and selected_frame_id.
1189 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1190 fields.
1191 (get_selected_frame): Make 'message' parameter optional.
1192 (get_selected_frame_if_set): Delete declaration.
1193 (select_frame): Update comments.
1194 (save_selected_frame, restore_selected_frame)
1195 (lookup_selected_frame): Declare.
1196 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1197 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1198 New field.
1199 (save_infcall_control_state): Use save_selected_frame.
1200 (restore_selected_frame): Delete.
1201 (restore_infcall_control_state): Use restore_selected_frame.
1202 * stack.c (select_frame_command_core, frame_command_core): Use
1203 get_selected_frame.
1204 * thread.c (restore_selected_frame): Rename to ...
1205 (lookup_selected_frame): ... this and make extern. Select the
1206 current frame if the frame level is -1.
1207 (scoped_restore_current_thread::restore): Also restore the
1208 language.
1209 (scoped_restore_current_thread::~scoped_restore_current_thread):
1210 Don't try/catch.
1211 (scoped_restore_current_thread::scoped_restore_current_thread):
1212 Save the language as well. Use save_selected_frame.
1213
58103c33
SM
12142020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1215
1216 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1217 documentation.
1218 * gdbarch.h: Re-generate.
1219
40a53766
SM
12202020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1221
1222 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1223 parameter.
1224 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1225 Likewise.
1226 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1227 Likewise.
1228 * arch-utils.c (default_displaced_step_hw_singlestep):
1229 Likewise.
1230 * arch-utils.h (default_displaced_step_hw_singlestep):
1231 Likewise.
1232 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1233 Likewise.
1234 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1235 Likewise.
1236 * gdbarch.c: Re-generate.
1237 * gdbarch.h: Re-generate.
1238 * infrun.c (resume_1): Adjust.
1239
8407f91b
TT
12402020-10-29 Tom Tromey <tom@tromey.com>
1241
1242 * progspace.c (program_space::~program_space): Don't call
1243 exec_close.
1244
5008b3b2
TT
12452020-10-29 Tom Tromey <tom@tromey.com>
1246
1247 * exec.c (exec_target::close): Don't change current program
1248 space.
1249
d9eebde0
TT
12502020-10-29 Tom Tromey <tom@tromey.com>
1251
1252 * symfile.c (add_symbol_file_command): Update.
1253 * exec.c (program_space::add_target_sections): Rename.
1254 * symfile-mem.c (symbol_file_add_from_memory): Update.
1255 * progspace.h (struct program_space) <add_target_sections>:
1256 Declare new overload.
1257 * exec.h (add_target_sections_of_objfile): Don't declare.
1258
3769e227
TT
12592020-10-29 Tom Tromey <tom@tromey.com>
1260
1261 * solib.c (solib_map_sections): Update.
1262 * exec.c (program_space::add_target_sections): Now a method.
1263 (exec_file_attach): Update.
1264 * exec.h (add_target_sections): Don't declare.
1265 * progspace.h (struct program_space) <add_target_sections>:
1266 Declare.
1267
2a3f84af
TT
12682020-10-29 Tom Tromey <tom@tromey.com>
1269
1270 * progspace.h (struct program_space) <remove_target_sections>:
1271 Declare.
1272 * exec.c (program_space::remove_target_sections): Now a method.
1273 * exec.h (remove_target_sections): Don't declare.
1274
004eecfd
TT
12752020-10-29 Tom Tromey <tom@tromey.com>
1276
1277 * inferior.c (delete_inferior): Update.
1278 * progspace.c (program_space::empty): Rename from
1279 program_space_empty_p. Return bool.
1280 * progspace.h (struct program_space) <empty>: New method.
1281 (program_space_empty_p): Don't declare.
1282
e39fb971
TT
12832020-10-29 Tom Tromey <tom@tromey.com>
1284
1285 * progspace.c (program_space::~program_space): Don't call
1286 clear_program_space_solib_cache.
1287 (program_space::clear_solib_cache): Rename from
1288 clear_solib_cache.
1289 * solib.c (handle_solib_event): Update.
1290 * progspace.h (struct program_space) <clear_solib_cache>: New
1291 method.
1292 (clear_program_space_solib_cache): Don't declare.
1293
a42d7dd8
TT
12942020-10-29 Tom Tromey <tom@tromey.com>
1295
1296 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1297 * target.c (info_target_command): Update.
1298 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1299 (symbol_file_clear, reread_symbols): Update.
1300 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1301 * stabsread.c (scan_file_globals): Update.
1302 * solib.c (update_solib_list): Update.
1303 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1304 (svr4_fetch_objfile_link_map, enable_break)
1305 (svr4_relocate_main_executable)
1306 (svr4_iterate_over_objfiles_in_search_order): Update.
1307 * solib-frv.c (lm_base, enable_break)
1308 (frv_relocate_main_executable): Update.
1309 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1310 (frv_fetch_objfile_link_map): Update.
1311 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1312 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1313 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1314 * remote.c (remote_target::get_offsets): Update.
1315 (remote_target::start_remote)
1316 (extended_remote_target::post_attach): Update.
1317 * objfiles.c (entry_point_address_query): Update.
1318 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1319 * minsyms.c (get_symbol_leading_char): Update.
1320 * frame.c (inside_main_func): Update.
1321 * progspace.h (symfile_objfile): Remove macro.
1322
19f6550e
TT
13232020-10-29 Tom Tromey <tom@tromey.com>
1324
1325 * exec.c (exec_file_attach): Update.
1326 * progspace.c (program_space::exec_close): Update.
1327 * progspace.h (struct program_space) <ebfd>: Now a
1328 gdb_bfd_ref_ptr.
1329 <set_exec_bfd>: Change argument type.
1330 <exec_bfd>: Update.
1331
7e10abd1
TT
13322020-10-29 Tom Tromey <tom@tromey.com>
1333
1334 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1335 * symfile.c (reread_symbols): Update.
1336 * symfile-mem.c (add_symbol_file_from_memory_command)
1337 (add_vsyscall_page): Update.
1338 * source-cache.c (source_cache::get_plain_source_lines): Update.
1339 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1340 (svr4_current_sos_direct, svr4_exec_displacement)
1341 (svr4_relocate_main_executable): Update.
1342 (svr4_iterate_over_objfiles_in_search_order): Update.
1343 * solib-frv.c (enable_break2, enable_break): Update.
1344 * solib-dsbt.c (lm_base, enable_break): Update.
1345 * solib-darwin.c (find_program_interpreter)
1346 (darwin_solib_create_inferior_hook): Update.
1347 * sol-thread.c (rw_common, ps_pdmodel): Update.
1348 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1349 * remote.c (compare_sections_command)
1350 (remote_target::trace_set_readonly_regions): Update.
1351 * remote-sim.c (get_sim_inferior_data)
1352 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1353 (gdbsim_target_open, gdbsim_target::files_info): Update.
1354 * exec.h (exec_bfd): Remove macro.
1355 * progspace.c (initialize_progspace): Update.
1356 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1357 Update.
1358 * nto-procfs.c (nto_procfs_target::post_attach)
1359 (nto_procfs_target::create_inferior): Update.
1360 * maint.c (maintenance_info_sections): Update.
1361 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1362 Update.
1363 * infcmd.c (post_create_inferior): Update.
1364 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1365 (objfile_find_memory_regions): Update.
1366 * exec.c (validate_exec_file, exec_file_attach)
1367 (exec_read_partial_read_only, print_section_info): Update.
1368 * corelow.c (core_target_open): Update.
1369 * corefile.c (reopen_exec_file, validate_files): Update.
1370 * arm-tdep.c (gdb_print_insn_arm): Update.
1371 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1372 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1373 methods.
1374
b55221ab
TT
13752020-10-29 Tom Tromey <tom@tromey.com>
1376
1377 * progspace.h (current_target_sections): Remove macro.
1378 * solib-svr4.c (scan_dyntag): Update.
1379 * solib-dsbt.c (scan_dyntag): Update.
1380 * exec.c (exec_target::close): Update.
1381 (add_target_sections, add_target_sections_of_objfile)
1382 (remove_target_sections, exec_target::get_section_table)
1383 (exec_target::files_info, set_section_command)
1384 (exec_set_section_address, exec_target::has_memory)
1385 (exec_target::has_memory): Update.
1386
5a36e715
TT
13872020-10-29 Tom Tromey <tom@tromey.com>
1388
1389 * source-cache.c (source_cache::get_plain_source_lines): Use
1390 current_program_space.
1391 * corefile.c (reopen_exec_file): Use current_program_space.
1392 * exec.c (exec_file_attach): Use current_program_space.
1393 * exec.h (exec_bfd_mtime): Remove.
1394
784c8592
TT
13952020-10-29 Tom Tromey <tom@tromey.com>
1396
1397 * gcore.c (default_gcore_mach): Remove.
1398 (create_gcore_bfd): Update.
1399
8a4f1402
TT
14002020-10-29 Tom Tromey <tom@tromey.com>
1401
1402 * progspace.c (program_space::exec_close): New method, from
1403 exec_close in exec.c.
1404 * exec.c (exec_close): Move to progspace.c.
1405 (exec_target::close, exec_file_attach): Update.
1406 * progspace.h (struct program_space) <exec_close>: Declare
1407 method.
1408
c20cb686
TT
14092020-10-29 Tom Tromey <tom@tromey.com>
1410
1411 * progspace.h (struct program_space) <exec_filename>: Rename from
1412 pspace_exec_filename. Now a unique_xmalloc_ptr.
1413 * inferior.c (print_selected_inferior): Update.
1414 (print_inferior): Update.
1415 * mi/mi-main.c (print_one_inferior): Update.
1416 * exec.h (exec_filename): Remove macro.
1417 * corefile.c (get_exec_file): Update.
1418 * exec.c (exec_close): Update.
1419 (exec_file_attach): Update.
1420 * progspace.c (clone_program_space): Update.
1421 (print_program_space): Update.
1422
6be2a9ab
TT
14232020-10-29 Tom Tromey <tom@tromey.com>
1424
1425 * target-section.h (struct target_section): Add constructor.
1426 * exec.c (build_section_table, add_target_sections_of_objfile):
1427 Update.
1428 * corelow.c (core_target::build_file_mappings): Update.
1429
cfaa8f76
TBA
14302020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1431
1432 PR gdb/19318
1433 * inferior.c (detach_inferior_command): Restore the current thread.
1434 (kill_inferior_command): Ditto.
1435
1b00ef06
TV
14362020-10-28 Tom de Vries <tdevries@suse.de>
1437
1438 PR symtab/26772
1439 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1440 map, check it in the "best match" loop.
1441
7f40ce1a
SM
14422020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1443
1444 * m32c-tdep.c: Remove unused includes.
1445
5eb9e3f5
SM
14462020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1447
1448 * xtensa-tdep.c: Remove includes.
1449
b1d4d8d1
TBA
14502020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1451
1452 * breakpoint.c (struct condition_command_opts): New struct.
1453 (condition_command_option_defs): New static global.
1454 (make_condition_command_options_def_group): New function.
1455 (condition_completer): Update to consider the '-force' flag.
1456 (condition_command): Use gdb::option for the '-force' flag.
1457
bd24c5d6
TV
14582020-10-27 Tom de Vries <tdevries@suse.de>
1459
1460 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1461 symbols in section check.
1462
61eb46a4
TV
14632020-10-27 Tom de Vries <tdevries@suse.de>
1464
1465 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1466
733d554a
TBA
14672020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1468
1469 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1470 * breakpoint.c: Update the help text of the 'condition' and 'break'
1471 commands.
1472 (set_breakpoint_condition): Take a new bool parameter
1473 to control whether condition definition should be forced even when
1474 the condition expression is invalid in all of the current locations.
1475 (condition_command): Update the call to 'set_breakpoint_condition'.
1476 (find_condition_and_thread): Take the "-force-condition" flag into
1477 account.
1478 * linespec.c (linespec_keywords): Add "-force-condition" as an
1479 element.
1480 (FORCE_KEYWORD_INDEX): New #define.
1481 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1482 as a keyword.
1483 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1484 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1485 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1486 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1487
b5fa468f
TBA
14882020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1489
1490 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1491 * breakpoint.c (set_breakpoint_location_condition): New function.
1492 (set_breakpoint_condition): Disable a breakpoint location if parsing
1493 the condition string gives an error.
1494 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1495 (build_target_condition_list): Ditto.
1496 (build_target_command_list): Ditto.
1497 (build_bpstat_chain): Ditto.
1498 (print_one_breakpoint_location): Ditto.
1499 (print_one_breakpoint): Ditto.
1500 (breakpoint_1): Ditto.
1501 (bp_location::bp_location): Ditto.
1502 (locations_are_equal): Ditto.
1503 (update_breakpoint_locations): Ditto.
1504 (enable_disable_bp_num_loc): Ditto.
1505 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1506 (find_condition_and_thread_for_sals): New static function.
1507 (create_breakpoint): Call find_condition_and_thread_for_sals.
1508 (location_to_sals): Call find_condition_and_thread_for_sals instead
1509 of find_condition_and_thread.
1510
1c47ec3e
TV
15112020-10-26 Tom de Vries <tdevries@suse.de>
1512
1513 * dwarf2/read.c (process_full_comp_unit): Call
1514 dwarf2_find_base_address.
1515
6390859c
TT
15162020-10-26 Tom Tromey <tromey@adacore.com>
1517
1518 * gdbtypes.c (create_range_type): Revert previous patch. Add
1519 comment.
1520
d744f0f9
PA
15212020-10-26 Pedro Alves <pedro@palves.net>
1522
1523 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1524 (my_waitpid): Use gdb::handle_eintr.
1525
006811bc
SM
15262020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * acinclude.m4: Update ptrace.m4 path.
1529 * ptrace.m4: Moved to gdbsupport.
1530
c75e31a1
SM
15312020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1532
1533 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1534 instead of target_gdbarch.
1535
32495661
SM
15362020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1537
1538 * jit.c (jit_reader_load_command): Pass current inferior.
1539 (jit_inferior_init): Change parameter type to inferior, use it.
1540 (jit_inferior_created): Remove.
1541 (jit_inferior_created_hook): Pass inferior parameter down.
1542 (_initialize_jit): Use jit_inferior_created_hook instead of
1543 jit_inferior_created.
1544 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1545 * infrun.c (follow_exec): Pass inferior to
1546 jit_inferior_created_hook.
1547
3f66685e
SM
15482020-10-24 Simon Marchi <simon.marchi@efficios.com>
1549
1550 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1551 parameter and use it.
1552 (thread_db_inferior_created): Pass inferior argument.
1553
a0ff652f
SM
15542020-10-24 Simon Marchi <simon.marchi@efficios.com>
1555
1556 * aix-thread.c (aix_thread_inferior_created): Add inferior
1557 parameter.
1558 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1559 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1560 * jit.c (jit_inferior_created): Likewise.
1561 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1562 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1563 * observable.h (inferior_created): Likewise.
1564 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1565 * symfile-mem.c (add_vsyscall_page): Likewise.
1566 * infcmd.c (post_create_inferior): Pass inferior argument.
1567
3c67532c
JB
15682020-10-24 Joel Brobecker <brobecker@adacore.com>
1569
1570 GDB 10.1 released.
1571
8747316e
JB
15722020-10-23 Joel Brobecker <brobecker@adacore.com>
1573
1574 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1575 to ada_check_typedef.
1576
1a0ea399
AB
15772020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1578
1579 * f-exp.y (f_parse): Rename to...
1580 (f_language::parser): ...this.
1581 * f-lang.c (f_get_encoding): Rename to...
1582 (f_language::get_encoding): ...this.
1583 (f_op_print_tab): Rename to...
1584 (f_language::op_print_tab): ...this.
1585 (exp_descriptor_f): Rename to...
1586 (f_language::exp_descriptor_tab): ...this.
1587 (class f_language): Moved to f-lang.h.
1588 (f_language::language_arch_info): New function, moved out of class
1589 declaration.
1590 (f_language::search_name_hash): Likewise.
1591 (f_language::lookup_symbol_nonlocal): Likewise.
1592 (f_language::get_symbol_name_matcher_inner): Likewise.
1593 * f-lang.h: Add 'valprint.h' include.
1594 (class f_language): Moved here from f-lang.c.
1595 * f-typeprint.c (f_type_print_args): Delete commented out
1596 declaration.
1597 (f_print_typedef): Rename to...
1598 (f_language::print_typedef): ...this.
1599 (f_print_type): Rename to...
1600 (f_language::print_type): ...this.
1601 (f_type_print_varspec_prefix): Delete declaration and rename to...
1602 (f_language::f_type_print_varspec_prefix): ...this.
1603 (f_type_print_varspec_suffix): Delete declaration and rename to...
1604 (f_language::f_type_print_varspec_suffix): ...this.
1605 (f_type_print_base): Delete declaration and rename to...
1606 (f_language::f_type_print_base): ...this.
1607 * f-valprint.c (f_value_print_inner): Rename to...
1608 (f_language::value_print_inner): ...this.
1609 * parse.c: Delete 'f-lang.h' include.
1610
88cefd9b
AB
16112020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1612
1613 * language.h (language_defn::print_type): Add variable names in
1614 declaration, and update header comment.
1615
5399db93
AB
16162020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1617
1618 * ada-lang.c (ada_language::demangle): Rename to...
1619 (ada_language::demangle_symbol): ...this.
1620 * c-lang.c (cplus_language::demangle): Rename to...
1621 (cplus_language::demangle_symbol): ...this.
1622 * d-lang.c (d_language::demangle): Rename to...
1623 (d_language::demangle_symbol): ...this.
1624 * f-lang.c (f_language::demangle): Rename to...
1625 (f_language::demangle_symbol): ...this.
1626 * go-lang.c (go_language::demangle): Rename to...
1627 (go_language::demangle_symbol): ...this.
1628 * language.c (language_demangle): Update call to demangle_symbol.
1629 (auto_or_unknown_language::demangle): Rename to...
1630 (auto_or_unknown_language::demangle_symbol): ...this.
1631 * language.h (language_defn::demangle): Rename to...
1632 (language_defn::demangle_symbol): ...this.
1633 * objc-lang.c (objc_language::demangle): Rename to...
1634 (objc_language::demangle_symbol): ...this.
1635 * rust-lang.c (rust_language::demangle): Rename to...
1636 (rust_language::demangle_symbol): ...this.
1637
4b2f86ef
AB
16382020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1641 (iterate_over_file_blocks): Replace use of macro with the macros
1642 definition.
1643
e74b39de
AB
16442020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1647 * valprint.c (maybe_print_array_index): Replace use of macro with
1648 the macros definition.
1649
00c696a6
AB
16502020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1651
1652 * ada-lang.c (ada_language::print_array_index): Call value_print
1653 directly.
1654 * language.c (language_defn::print_array_index): Likewise.
1655 * language.h (LA_VALUE_PRINT): Delete.
1656 * valprint.c (value_print): Call value_print on the
1657 current_language directly.
1658
d3b67c56
AB
16592020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * language.h (LA_PRINT_TYPEDEF): Delete.
1662 * typeprint.c (typedef_print): Call print_typedef directly on the
1663 current_language object.
1664
790e2a12
AB
16652020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * m2-exp.y (m2_parse): Rename to...
1668 (m2_language::parser): ...this. Update function signature.
1669 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1670 (m2_op_print): Rename to...
1671 (m2_language::op_print_tab): ...this, and make const.
1672 (exp_descriptor_modula2): Rename to...
1673 (m2_language::exp_descriptor_modula2): ...this.
1674 (class m2_language): Move to m2-lang.h.
1675 (m2_language::language_arch_info): New function, moved out of
1676 class declaration.
1677 (m2_language::printchar): New function, body from m2_printchar.
1678 (m2_language::printstr): New function, moved out of class
1679 declaration.
1680 (m2_language::emitchar): Likewise.
1681 * m2-lang.h (m2_parse): Delete declaration.
1682 (m2_print_typedef): Delete declaration.
1683 (m2_value_print_inner): Delete declaration.
1684 (class m2_language): Class declaration moved from m2-lang.c,
1685 larger functions are left in m2-lang.c.
1686 * m2-typeprint.c (m2_print_typedef): Rename to...
1687 (m2_language::print_typedef): ...this, and update function
1688 signature.
1689 * m2-valprint.c (m2_value_print_inner): Rename to...
1690 (m2_language::value_print_inner): ...this, replace use of
1691 LA_PRINT_STRING with a direct call to printstr member function,
1692 and update recursive call.
1693
b01175fc
AB
16942020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1695
1696 * language.c (default_is_string_type_p): Delete, implementation
1697 moved into auto_or_unknown_language::is_string_type_p.
1698 (unk_op_print_tab): Moved into
1699 auto_or_unknown_language::opcode_print_table.
1700 (unknown_language_arch_info): Delete, implementation moved into
1701 auto_or_unknown_language::language_arch_info.
1702 (class auto_or_unknown_language): New class, member functions
1703 copied from unknown_language class, with some updates.
1704 (class unknown_language): Most member functions moved into
1705 auto_or_unknown_language class. Inherit from
1706 auto_or_unknown_language class.
1707 (class auto_language): Inherit from auto_or_unknown_language.
1708 Delete most member functions.
1709
1a97fe8c
HD
17102020-10-22 Hannes Domani <ssbssa@yahoo.de>
1711
1712 * stabsread.c (read_member_functions): Remove gdb_assert.
1713
6b9d0dfd
HD
17142020-10-22 Hannes Domani <ssbssa@yahoo.de>
1715
1716 * gdbtypes.c (init_complex_type): Check target type name.
1717
4b4bb603
SM
17182020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1719
1720 * target-debug.h (target_debug_print_struct_target_ops_p):
1721 Remove.
1722 (target_debug_print_async_callback_ftype_p): Remove.
1723 (target_debug_print_struct_trace_state_variable_p): Remove.
1724 (target_debug_print_struct_traceframe_info_p): Remove.
1725 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1726 (target_debug_print_enum_btrace_format): Remove.
1727 (target_debug_print_enum_info_proc_what): Remove.
1728 (target_debug_print_thread_info_pp): Remove.
1729
24f5300a
SM
17302020-10-22 Simon Marchi <simon.marchi@efficios.com>
1731
1732 * target.h (struct target_ops) <make_corefile_notes>:
1733 Change return type to unique pointer.
1734 * target.c (dummy_make_corefile_notes): Likewise.
1735 * exec.c (struct exec_target) <make_corefile_notes>:
1736 Likewise.
1737 (exec_target::make_corefile_notes): Likewise.
1738 * procfs.c (class procfs_target) <make_corefile_notes>:
1739 Likewise.
1740 (procfs_do_thread_registers): Adjust to unique pointer.
1741 (struct procfs_corefile_thread_data): Add constructor.
1742 <note_data>: Change type to unique pointer.
1743 (procfs_corefile_thread_callback): Adjust to unique pointer.
1744 (procfs_target::make_corefile_notes): Change return type to
1745 unique pointer.
1746 * target-delegates.c: Re-generate.
1747 * gcore.c (write_gcore_file_1): Adjust.
1748 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1749 New.
1750
5fb4027f
TV
17512020-10-22 Tom de Vries <tdevries@suse.de>
1752
1753 * block.c (find_block_in_blockvector): Make sure the returned block
1754 contains pc.
1755
4a636814
SM
17562020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1757
1758 PR gdb/26693
1759 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1760 parameter.
1761 (load_cu): Pass existing CU.
1762 (process_imported_unit_die): Likewise.
1763 (follow_die_offset): Likewise.
1764
1bd57575
LM
17652020-10-22 Luis Machado <luis.machado@linaro.org>
1766
1767 * corelow.c (core_target::xfer_partial): Also check for an empty
1768 m_core_unavailable_mappings vector.
1769
6b4c676c
AB
17702020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1773 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1774 * f-exp.y (arglist): Allow for a series of subranges.
1775 (subrange): Add cases for subranges with strides.
1776 * f-lang.c (value_f90_subarray): Catch use of array strides and
1777 throw an error.
1778 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1779
f2d8e4c5
AB
17802020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1781
1782 * expprint.c (print_subexp_standard): Change enum range_type to
1783 range_flag and rename variables to match.
1784 (dump_subexp_body_standard): Likewise.
1785 * expression.h (enum range_type): Rename to...
1786 (enum range_flag): ...this.
1787 (range_types): Rename to...
1788 (range_flags): ...this.
1789 * f-lang.c (value_f90_subarray): Change enum range_type to
1790 range_flag and rename variables to match.
1791 * parse.c (operator_length_standard): Likewise.
1792 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1793 range_type to range_flag.
1794 * rust-lang.c (rust_evaluate_funcall): Likewise.
1795 (rust_range): Likewise.
1796 (rust_compute_range): Likewise.
1797 (rust_subscript): Likewise.
1798
2f1b18db
AB
17992020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * expprint.c (print_subexp_standard): Update to reflect changes to
1802 enum range_type.
1803 (dump_subexp_body_standard): Likewise.
1804 * expression.h (enum range_type): Convert to a bit field enum, and
1805 make the enum unsigned.
1806 * f-exp.y (subrange): Update to reflect changes to enum
1807 range_type.
1808 * f-lang.c (value_f90_subarray): Likewise.
1809 * parse.c (operator_length_standard): Likewise.
1810 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1811 * rust-lang.c (rust_range): Likewise.
1812 (rust_compute_range): Likewise.
1813 (rust_subscript): Likewise.
1814
a46d1843
SM
18152020-10-21 Simon Marchi <simon.marchi@efficios.com>
1816
1817 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1818 (displaced_step_in_progress): Fix comment.
1819
c21f37a8
SM
18202020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1821
1822 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1823 * gdbarch.c: Re-generate.
1824 * gdbarch.h: Re-generate.
1825 * gcore.c (write_gcore_file_1): Adjust.
1826 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1827 constructor.
1828 <note_data>: Change type to unique pointer.
1829 <abort_iteration>: Change type to bool.
1830 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1831 (fbsd_collect_thread_registers): Return void, adjust.
1832 (struct fbsd_corefile_thread_data): Add construtor.
1833 <note_data>: Change type to unique pointer.
1834 (fbsd_corefile_thread): Adjust.
1835 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1836 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1837 to unique pointer, adjust.
1838 (struct linux_collect_regset_section_cb_data): Add constructor.
1839 <note_data>: Change type to unique pointer.
1840 <abort_iteration>: Change type to bool.
1841 (linux_collect_thread_registers): Return void, adjust.
1842 (struct linux_corefile_thread_data): Add constructor.
1843 <note_data>: Change type to unique pointer.
1844 (linux_corefile_thread): Adjust.
1845 (linux_make_corefile_notes): Return unique pointer, adjust.
1846
07fbbd01
SM
18472020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1848
1849 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1850 * gdbarch.c: Re-generate.
1851 * gdbarch.h: Re-generate.
1852 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1853 bool.
1854 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1855 Likewise.
1856 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1857 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1858 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1859 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1860
39535193
SM
18612020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1862
1863 * gdbarch.sh: Make generated predicates return bool.
1864 * gdbarch.c: Re-generate.
1865 * gdbarch.h: Re-generate.
1866
ad523d01
TT
18672020-10-20 Tom Tromey <tom@tromey.com>
1868
1869 * varobj-iter.h (struct varobj_item): Remove typedef.
1870
c4464ade
SM
18712020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1872
1873 * infrun.c (currently_stepping): Change int to bool
1874 (maybe_software_singlestep): Likewise.
1875 (show_stop_on_solib_events): Likewise.
1876 (stepping_past_nonsteppable_watchpoint): Likewise.
1877 (displaced_step_in_progress_any_inferior): Likewise.
1878 (displaced_step_in_progress_thread): Likewise.
1879 (keep_going_stepped_thread): Likewise.
1880 (thread_still_needs_step_over): Likewise.
1881 (start_step_over): Likewise.
1882 (do_target_resume): Likewise.
1883 (resume_1): Likewise.
1884 (clear_proceed_status): Likewise.
1885 (thread_still_needs_step_over_bp): Likewise.
1886 (proceed): Likewise.
1887 (switch_back_to_stepped_thread): Likewise.
1888 (adjust_pc_after_break): Likewise.
1889 (stepped_in_from): Likewise.
1890 (handle_stop_requested): Likewise.
1891 (handle_syscall_event): Likewise.
1892 (handle_no_resumed): Likewise.
1893 (handle_inferior_event): Likewise.
1894 (finish_step_over): Likewise.
1895 (handle_signal_stop): Likewise.
1896 (process_event_stop_test): Likewise.
1897
2eb20436
SM
18982020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1899
1900 * infrun.c (get_displaced_stepping_state): Fix comment.
1901
e0c45ded
AS
19022020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1903
1904 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1905
22cc388e
TT
19062020-10-19 Tom Tromey <tromey@adacore.com>
1907
1908 PR tui/26719
1909 * tui/tui-winsource.h (struct tui_source_window_base)
1910 <refresh_window>: Rename from refresh_pad.
1911 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1912 Rename from refresh_pad.
1913 (tui_source_window_base::show_source_content)
1914 (tui_source_window_base::do_scroll_horizontal): Update.
1915
3c6eb4d4
TBA
19162020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1917
1918 * thread.c (_initialize_thread): Fine-tune the help text of
1919 'info threads'.
1920
26703721
TBA
19212020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1922
1923 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1924
61c26be8
MS
19252020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1926
1927 * breakpoint.c (handle_jit_event): Add an argument, change how
1928 `jit_event_handler` is called.
1929
932539d7
TT
19302020-10-17 Tom Tromey <tom@tromey.com>
1931
1932 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1933 (scan_xcoff_symtab): Update.
1934 * psymtab.h (class psymtab_storage) <global_psymbols,
1935 static_psymbols, current_global_psymbols,
1936 current_static_psymbols>: Remove.
1937 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1938 (match_partial_symbol, lookup_partial_symbol): Update.
1939 (print_partial_symbols): Change parameters.
1940 (dump_psymtab, recursively_search_psymtabs)
1941 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1942 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1943 (concat): Remove.
1944 (end_psymtab_common): Simplify.
1945 (append_psymbol_to_list): Change parameters.
1946 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1947 (init_psymbol_list): Simplify.
1948 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1949 * psympriv.h (struct partial_symtab) <empty>: New method.
1950 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1951 Remove.
1952 <global_psymbols, static_psymbols>: New members.
1953 <add_psymbol>: New methods.
1954 (add_psymbol_to_list): Don't declare.
1955 (psymbol_placement): Move earlier.
1956 * mdebugread.c (parse_partial_symbols): Update.
1957 (handle_psymbol_enumerators): Change parameters.
1958 (mdebug_expand_psymtab): Update.
1959 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1960 (add_partial_symbol): Update.
1961 * dwarf2/index-write.c (write_psymbols): Change parameters.
1962 (write_one_signatured_type): Update.
1963 (recursively_count_psymbols): Update.
1964 (recursively_write_psymbols): Update.
1965 (class debug_names) <recursively_write_psymbols>: Update.
1966 <write_psymbols>: Change parameters.
1967 <write_one_signatured_type>: Update.
1968 * dbxread.c (read_dbx_symtab): Update.
1969 (dbx_end_psymtab): Use partial_symtab::empty.
1970 * ctfread.c (struct ctf_context) <pst>: New member.
1971 (create_partial_symtab): Set it.
1972 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1973 (scan_partial_symbols): Use the psymtab's context. Update.
1974
cfabbd35
TT
19752020-10-17 Tom Tromey <tom@tromey.com>
1976
1977 * valprint.c (generic_value_print): Remove comment.
1978 * m2-valprint.c (m2_value_print_inner): Remove comment.
1979 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1980 type.
1981
520596f2
TV
19822020-10-17 Tom de Vries <tdevries@suse.de>
1983
1984 PR symtab/26317
1985 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1986 symbol main.
1987
76547ab3
TV
19882020-10-14 Tom de Vries <tdevries@suse.de>
1989
1990 PR gdb/26733
1991 * solib.c (solib_contains_address_p): Handle
1992 'solib->sections == nullptr'.
1993
d3a07122
SM
19942020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1995
1996 PR gdb/26642
1997 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1998 target can't do async.
1999 * target.c (target_wait): Assert that we don't pass
2000 TARGET_WNOHANG to a target that can't async.
2001
1b71cfcf
KR
20022020-10-13 Kamil Rytarowski <n54@gmx.com>
2003
2004 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2005 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2006 * alpha-bsd-nat.c: Adjust include.
2007 * alpha-bsd-tdep.h: Adjust comment.
2008 * alpha-nbsd-tdep.c: Rename to ...
2009 * alpha-netbsd-tdep.c: ... this, adjust include.
2010 * amd64-nbsd-nat.c: Rename to ...
2011 * amd64-netbsd-nat.c: ... this, adjust include.
2012 * amd64-nbsd-tdep.c: Rename to ...
2013 * amd64-netbsd-tdep.c: ... this, adjust include.
2014 * amd64-tdep.h: Adjust include.
2015 * arm-nbsd-nat.c: Rename to ...
2016 * arm-netbsd-nat.c: ... this, adjust include.
2017 * arm-nbsd-tdep.c: Rename to ...
2018 * arm-netbsd-tdep.c: ... this, adjust include.
2019 * arm-nbsd-tdep.h: Rename to ...
2020 * arm-netbsd-tdep.h: ... this, adjust include.
2021 * configure.nat: Adjust file lists.
2022 * configure.tgt: Likewise.
2023 * hppa-nbsd-nat.c: Rename to ...
2024 * hppa-netbsd-nat.c: ... this, adjust include.
2025 * hppa-nbsd-tdep.c: Rename to ...
2026 * hppa-netbsd-tdep.c: ... this, adjust include.
2027 * i386-nbsd-nat.c: Rename to ...
2028 * i386-netbsd-nat.c: ... this, adjust include.
2029 * i386-nbsd-tdep.c: Rename to ...
2030 * i386-netbsd-tdep.c: ... this, adjust include.
2031 * m68k-bsd-nat.c: Adjust include.
2032 * mips-nbsd-nat.c: Rename to ...
2033 * mips-netbsd-nat.c: ... this, adjust include.
2034 * mips-nbsd-tdep.c: Rename to ...
2035 * mips-netbsd-tdep.c: ... this, adjust include.
2036 * mips-nbsd-tdep.h: Rename to ...
2037 * mips-netbsd-tdep.h: ... this.
2038 * nbsd-nat.c: Rename to ...
2039 * netbsd-nat.c: ... this, adjust include.
2040 * nbsd-nat.h: Rename to ...
2041 * netbsd-nat.h: ... this, adjust include.
2042 * nbsd-tdep.c: Rename to ...
2043 * netbsd-tdep.c: ... this, adjust include.
2044 * nbsd-tdep.h: Rename to ...
2045 * netbsd-tdep.h: ... this.
2046 * ppc-nbsd-nat.c: Rename to ...
2047 * ppc-netbsd-nat.c: ... this, adjust include.
2048 * ppc-nbsd-tdep.c: Rename to ...
2049 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2050 * ppc-nbsd-tdep.h: Rename to ...
2051 * ppc-netbsd-tdep.h: ... this.
2052 * sh-nbsd-nat.c: Rename to ...
2053 * sh-netbsd-nat.c: ... this, adjust include.
2054 * sh-nbsd-tdep.c: Rename to ...
2055 * sh-netbsd-tdep.c: ... this, adjust include.
2056 * sparc-nbsd-nat.c: Rename to ...
2057 * sparc-netbsd-nat.c: ... this.
2058 * sparc-nbsd-tdep.c: Rename to ...
2059 * sparc-netbsd-tdep.c: ... this, adjust include.
2060 * sparc64-nbsd-nat.c: Rename to ...
2061 * sparc64-netbsd-nat.c: ... this.
2062 * sparc64-nbsd-tdep.c: Rename to ...
2063 * sparc64-netbsd-tdep.c: ... this, adjust include.
2064 * sparc64-tdep.h: Adjust comment.
2065 * vax-bsd-nat.c: Adjust include.
2066 * vax-nbsd-tdep.c: Rename to ...
2067 * vax-netbsd-tdep.c: ... this, adjust include.
2068
d7a78e5c
TT
20692020-10-12 Tom Tromey <tom@tromey.com>
2070
2071 * target.h (struct target_ops) <get_section_table>: Update.
2072 (target_get_section_table): Update.
2073 * target.c (target_get_section_table, target_section_by_addr)
2074 (memory_xfer_partial_1): Update.
2075 * target-section.h (target_section_table): Now an alias.
2076 * target-delegates.c: Rebuild.
2077 * target-debug.h (target_debug_print_target_section_table_p):
2078 Rename from target_debug_print_struct_target_section_table_p.
2079 * symfile.c (build_section_addr_info_from_section_table): Update.
2080 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2081 * solib-svr4.c (scan_dyntag): Update.
2082 * solib-dsbt.c (scan_dyntag): Update.
2083 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2084 Update.
2085 * record-full.c (record_full_core_target::xfer_partial): Update.
2086 * progspace.h (struct program_space) <target_sections>: Update.
2087 * exec.h (print_section_info): Update.
2088 * exec.c (exec_target::close, build_section_table)
2089 (add_target_sections, add_target_sections_of_objfile)
2090 (remove_target_sections, exec_on_vfork)
2091 (section_table_available_memory)
2092 (section_table_xfer_memory_partial)
2093 (exec_target::get_section_table, exec_target::xfer_partial)
2094 (print_section_info, set_section_command)
2095 (exec_set_section_address, exec_target::has_memory): Update.
2096 * corelow.c (core_target::build_file_mappings)
2097 (core_target::xfer_partial, core_target::info_proc_mappings)
2098 (core_target::info_proc_mappings): Update.
2099 * bfd-target.c (class target_bfd): Update
2100
eda214ce
TT
21012020-10-12 Tom Tromey <tom@tromey.com>
2102
2103 * progspace.c (program_space::~program_space): Don't call
2104 clear_section_table.
2105 * exec.h (clear_section_table): Don't declare.
2106 * exec.c (exec_target::close): Update.
2107 (clear_section_table): Remove.
2108
91840ee3
TT
21092020-10-12 Tom Tromey <tom@tromey.com>
2110
2111 * exec.c (add_target_sections_of_objfile): Simplify.
2112
2d128614
TT
21132020-10-12 Tom Tromey <tom@tromey.com>
2114
2115 * solib.c (solib_map_sections): Update.
2116 * record-full.c (record_full_core_open_1): Update.
2117 * exec.h (build_section_table): Return a target_section_table.
2118 * exec.c (exec_file_attach): Update.
2119 (build_section_table): Return a target_section_table.
2120 * corelow.c (core_target::core_target): Update.
2121 * bfd-target.c (target_bfd::target_bfd): Update.
2122
bb2a6777
TT
21232020-10-12 Tom Tromey <tom@tromey.com>
2124
2125 * target.c (target_section_by_addr, memory_xfer_partial_1):
2126 Update.
2127 * target-section.h (struct target_section_table): Use
2128 std::vector.
2129 * symfile.h (build_section_addr_info_from_section_table): Take a
2130 target_section_table.
2131 * symfile.c (build_section_addr_info_from_section_table): Take a
2132 target_section_table.
2133 * solist.h (struct so_list) <sections>: Change type.
2134 <sections_end>: Remove.
2135 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2136 (solib_contains_address_p): Update.
2137 * solib-svr4.c (scan_dyntag): Update.
2138 * solib-dsbt.c (scan_dyntag): Update.
2139 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2140 Update.
2141 * record-full.c (record_full_core_start, record_full_core_end):
2142 Remove.
2143 (record_full_core_sections): New global.
2144 (record_full_core_open_1, record_full_core_target::xfer_partial):
2145 Update.
2146 * exec.h (build_section_table, section_table_xfer_memory_partial)
2147 (add_target_sections): Take a target_section_table.
2148 * exec.c (exec_file_attach, clear_section_table): Update.
2149 (resize_section_table): Remove.
2150 (build_section_table, add_target_sections): Take a
2151 target_section_table.
2152 (add_target_sections_of_objfile, remove_target_sections)
2153 (exec_on_vfork): Update.
2154 (section_table_available_memory): Take a target_section_table.
2155 (section_table_read_available_memory): Update.
2156 (section_table_xfer_memory_partial): Take a target_section_table.
2157 (print_section_info, set_section_command)
2158 (exec_set_section_address, exec_target::has_memory): Update.
2159 * corelow.c (class core_target) <m_core_section_table,
2160 m_core_file_mappings>: Remove braces.
2161 <~core_target>: Remove.
2162 (core_target::core_target): Update.
2163 (core_target::~core_target): Remove.
2164 (core_target::build_file_mappings)
2165 (core_target::xfer_memory_via_mappings)
2166 (core_target::xfer_partial, core_target::info_proc_mappings):
2167 Update.
2168 * bfd-target.c (target_bfd::xfer_partial): Update.
2169 (target_bfd::target_bfd): Update.
2170 (target_bfd::~target_bfd): Remove.
2171
7b466b10
TT
21722020-10-12 Tom Tromey <tom@tromey.com>
2173
2174 * target.h (struct target_section, struct target_section_table):
2175 Move to target-section.h.
2176 * target-section.h: New file.
2177
87a37e5e
PA
21782020-10-12 Pedro Alves <pedro@palves.net>
2179
2180 PR exp/26602
2181 * valops.c (struct struct_field_searcher): New.
2182 (update_search_result): Rename to ...
2183 (struct_field_searcher::update_result): ... this. Simplify
2184 prototype. Record all found fields.
2185 (do_search_struct_field): Rename to ...
2186 (struct_field_searcher::search): ... this. Simplify prototype.
2187 Maintain stack of visited baseclass path. Call update_result for
2188 fields too. Keep searching fields in baseclasses instead of
2189 stopping at the first found field.
2190 (search_struct_field): Use struct_field_searcher. When looking
2191 for fields, report ambiguous access attempts.
2192
9370fd51
AB
21932020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2194
2195 * frame.c (inside_main_func): Check full symbols as well as
2196 minimal symbols.
2197
59c8a30b
JB
21982020-10-09 Joel Brobecker <brobecker@adacore.com>
2199
2200 * ada-lang.c (advance_wild_match): Rewrite the function's
2201 description. Change the type of target0, t0 and t1 to char.
2202
7c184d33
TT
22032020-10-09 Tom Tromey <tromey@adacore.com>
2204
2205 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2206
5c4258f4
TT
22072020-10-09 Tom Tromey <tromey@adacore.com>
2208
2209 * ada-lang.h (ada_encode): Return std::string.
2210 * ada-lang.c (ada_encode_1): Return std::string.
2211 (ada_encode): Likewise.
2212 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2213 Update.
2214 * ada-exp.y (block_lookup, write_var_or_type): Update.
2215
3d87245c
HD
22162020-10-09 Hannes Domani <ssbssa@yahoo.de>
2217
2218 PR exp/26714
2219 * printcmd.c (print_formatted): Handle void results as
2220 unformatted prints.
2221
bbb826f5
AB
22222020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * arch/aarch32.c (aarch32_create_target_description): Release the
2225 target_desc_up as late as possible.
2226 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2227 * arch/amd64.c (amd64_create_target_description): Likewise.
2228 * arch/arc.c (arc_create_target_description): Return a
2229 target_desc_up, don't release it.
2230 * arch/arc.h (arc_create_target_description): Update declaration.
2231 (arc_lookup_target_description): Move target_desc_up into the
2232 cache, and return a borrowed pointer.
2233 * arch/arm.c (arm_create_target_description): Release the
2234 target_desc_up as late as possible.
2235 * arch/i386.c (i386_create_target_description): Likewise.
2236 * arch/riscv.h (riscv_create_target_description): Update
2237 declaration to match definition.
2238 * arch/tic6x.c (tic6x_create_target_description): Release the
2239 target_desc_up as late as possible.
2240
361cb219
AB
22412020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2242
2243 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2244 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2245
f5c4b229
JV
22462020-10-09 Jan Vrany <jan.vrany@labware.com>
2247
2248 * source.c (directory_command): Notify observers that "directories"
2249 parameter has changed.
2250
b2701685
TT
22512020-10-08 Tom Tromey <tom@tromey.com>
2252
2253 * cli/cli-cmds.c (print_disassembly): Style function name and
2254 addresses. Add _() wrappers.
2255
ada508b6
SV
22562020-10-08 Shahab Vahedi <shahab@synopsys.com>
2257
2258 * NEWS: Mention ARC support in GDBserver.
2259
51a948fd
AB
22602020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2261
2262 * arch/aarch32.c (aarch32_create_target_description): Release
2263 unique_ptr returned from allocate_target_description.
2264 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2265 * arch/amd64.c (amd64_create_target_description): Likewise.
2266 * arch/arc.c (arc_create_target_description): Likewise.
2267 * arch/arm.c (arm_create_target_description): Likewise.
2268 * arch/i386.c (i386_create_target_description): Likewise.
2269 * arch/riscv.c (riscv_create_target_description): Update return
2270 type. Handle allocate_target_description returning a unique_ptr.
2271 (riscv_lookup_target_description): Update to handle unique_ptr.
2272 * arch/tic6x.c (tic6x_create_target_description): Release
2273 unique_ptr returned from allocate_target_description.
2274 * features/microblaze-with-stack-protect.c: Regenerate.
2275 * features/microblaze.c: Regenerate.
2276 * features/mips-dsp-linux.c: Regenerate.
2277 * features/mips-linux.c: Regenerate.
2278 * features/mips64-dsp-linux.c: Regenerate.
2279 * features/mips64-linux.c: Regenerate.
2280 * features/nds32.c: Regenerate.
2281 * features/nios2.c: Regenerate.
2282 * features/or1k.c: Regenerate.
2283 * features/rs6000/powerpc-32.c: Regenerate.
2284 * features/rs6000/powerpc-32l.c: Regenerate.
2285 * features/rs6000/powerpc-403.c: Regenerate.
2286 * features/rs6000/powerpc-403gc.c: Regenerate.
2287 * features/rs6000/powerpc-405.c: Regenerate.
2288 * features/rs6000/powerpc-505.c: Regenerate.
2289 * features/rs6000/powerpc-601.c: Regenerate.
2290 * features/rs6000/powerpc-602.c: Regenerate.
2291 * features/rs6000/powerpc-603.c: Regenerate.
2292 * features/rs6000/powerpc-604.c: Regenerate.
2293 * features/rs6000/powerpc-64.c: Regenerate.
2294 * features/rs6000/powerpc-64l.c: Regenerate.
2295 * features/rs6000/powerpc-7400.c: Regenerate.
2296 * features/rs6000/powerpc-750.c: Regenerate.
2297 * features/rs6000/powerpc-860.c: Regenerate.
2298 * features/rs6000/powerpc-altivec32.c: Regenerate.
2299 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2300 * features/rs6000/powerpc-altivec64.c: Regenerate.
2301 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2302 * features/rs6000/powerpc-e500.c: Regenerate.
2303 * features/rs6000/powerpc-e500l.c: Regenerate.
2304 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2305 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2306 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2307 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2308 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2309 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2310 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2311 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2312 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2313 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2314 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2315 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2316 * features/rs6000/powerpc-vsx32.c: Regenerate.
2317 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2318 * features/rs6000/powerpc-vsx64.c: Regenerate.
2319 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2320 * features/rs6000/rs6000.c: Regenerate.
2321 * features/rx.c: Regenerate.
2322 * features/s390-gs-linux64.c: Regenerate.
2323 * features/s390-linux32.c: Regenerate.
2324 * features/s390-linux32v1.c: Regenerate.
2325 * features/s390-linux32v2.c: Regenerate.
2326 * features/s390-linux64.c: Regenerate.
2327 * features/s390-linux64v1.c: Regenerate.
2328 * features/s390-linux64v2.c: Regenerate.
2329 * features/s390-te-linux64.c: Regenerate.
2330 * features/s390-tevx-linux64.c: Regenerate.
2331 * features/s390-vx-linux64.c: Regenerate.
2332 * features/s390x-gs-linux64.c: Regenerate.
2333 * features/s390x-linux64.c: Regenerate.
2334 * features/s390x-linux64v1.c: Regenerate.
2335 * features/s390x-linux64v2.c: Regenerate.
2336 * features/s390x-te-linux64.c: Regenerate.
2337 * features/s390x-tevx-linux64.c: Regenerate.
2338 * features/s390x-vx-linux64.c: Regenerate.
2339 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2340 from allocate_target_description.
2341 * target-descriptions.c (allocate_target_description): Update
2342 return type.
2343 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2344 allocate_target_description.
2345
485c47e5
TT
23462020-10-07 Tom Tromey <tromey@adacore.com>
2347
2348 * unittests/search-memory-selftests.c: New file.
2349 * Makefile.in (SELFTESTS_SRCS): Add
2350 unittests/search-memory-selftests.c.
2351
3a135a91
TT
23522020-10-07 Tom Tromey <tromey@adacore.com>
2353
2354 PR gdb/16930:
2355 * findcmd.c (_initialize_mem_search): Mention that the range is
2356 inclusive.
2357
4a72de73
TT
23582020-10-07 Tom Tromey <tromey@adacore.com>
2359
2360 * target.h (simple_search_memory): Don't declare.
2361 * target.c (simple_search_memory): Move to gdbsupport.
2362 (default_search_memory): Update.
2363 * remote.c (remote_target::search_memory): Update.
2364
a038ffd8
SM
23652020-10-07 Simon Marchi <simon.marchi@efficios.com>
2366
2367 * Makefile.in (COMPILE): Add CXXFLAGS.
2368 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2369 (check-headers): Add CXXFLAGS.
2370
cc463201
AK
23712020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2372
2373 * arc-linux-tdep.h: New file.
2374 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2375 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2376 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2377 arc_linux_gregset, arc_linux_v2_regset,
2378 arc_linux_iterate_over_regset_sections,
2379 arc_linux_core_read_description): Implement.
2380 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2381 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2382 (arc_gdbarch_features_create): Add.
2383 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2384
e4bd363f
SV
23852020-10-07 Shahab Vahedi <shahab@synopsys.com>
2386
2387 * arch/arc.h: Rename "arc_gdbarch_features" to
2388 "arc_arch_features".
2389 * arc-tdep.h: Likewise.
2390 * arc-tdep.c: Likewise.
2391
b68bef99
TBA
23922020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2393
2394 * infcmd.c (attach_command): Remove the redundant call to
2395 `clear_proceed_status`.
2396
4641551a
KR
23972020-10-07 Kamil Rytarowski <n54@gmx.com>
2398
2399 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2400
91e5e8db
KR
24012020-10-07 Kamil Rytarowski <n54@gmx.com>
2402
2403 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2404 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2405 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2406
64c03bdb
SM
24072020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2408
2409 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2410 (_initialize_break_catch_sig): Don't allocate array.
2411
31a8f60f
AB
24122020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2413
2414 * symtab.c (find_pc_line): Return unmapped addresses when the
2415 requested address is also unmapped.
2416
9e6dbd8b
SM
24172020-10-05 Simon Marchi <simon.marchi@efficios.com>
2418
2419 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2420 tui/tui-out.h.
2421
a1d217e8
SM
24222020-10-05 Simon Marchi <simon.marchi@efficios.com>
2423
2424 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2425 type::is_vector instead of TYPE_VECTOR.
2426
7d144117
SM
24272020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2428
2429 * auto-load.c (auto_load_objfile_script_1): Don't use
2430 debugfile_holder as temporary variable when stripping drive
2431 letter.
2432
cd096ec8
HD
24332020-10-05 Hannes Domani <ssbssa@yahoo.de>
2434
2435 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2436 Add TYPE_CODE_COMPLEX.
2437 (amd64_windows_return_value): Fix types returned via XMM0.
2438
b58e7f72
AH
24392020-10-05 Alan Hayward <alan.hayward@arm.com>
2440
2441 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2442 AArch64/ARM maintainers.
2443
8d378f27
SM
24442020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2445
2446 * NEWS: Mention set/show debug event-loop.
2447
d5519913
TT
24482020-10-02 Tom Tromey <tromey@adacore.com>
2449
2450 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2451 REG_EXTENDED.
2452
18b67edc
SM
24532020-10-02 Simon Marchi <simon.marchi@efficios.com>
2454
2455 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2456 * procfs.c (procfs_inferior_created): Remove.
2457 (_initialize_procfs): Don't register procfs_inferior_created.
2458
6b01403b
SM
24592020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2460
2461 * async-event.c (invoke_async_signal_handlers): Add debug
2462 print.
2463 (check_async_event_handlers): Likewise.
2464 * event-top.c (show_debug_event_loop): New function.
2465 (_initialize_event_top): Register "set debug event-loop"
2466 setting.
2467
ba988419
SM
24682020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2469
2470 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2471 * debug.h: Remove.
2472 * infrun.c: Include gdbsupport/common-debug.h.
2473 * linux-nat.c: Likewise.
2474
db20ebdf
SM
24752020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2476
2477 * async-event.h (create_async_signal_handler): Add name
2478 parameter.
2479 (create_async_event_handler): Likewise.
2480 * async-event.c (struct async_signal_handler) <name>: New field.
2481 (struct async_event_handler) <name>: New field.
2482 (create_async_signal_handler): Assign name.
2483 (create_async_event_handler): Assign name.
2484 * event-top.c (async_init_signals): Pass name when creating
2485 handler.
2486 * infrun.c (_initialize_infrun): Likewise.
2487 * record-btrace.c (record_btrace_push_target): Likewise.
2488 * record-full.c (record_full_open): Likewise.
2489 * remote-notif.c (remote_notif_state_allocate): Likewise.
2490 * remote.c (remote_target::open_1): Likewise.
2491 * tui/tui-win.c (tui_initialize_win): Likewise.
2492
2554f6f5
SM
24932020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2494
2495 * async-event.c (initialize_async_signal_handlers): Pass name to
2496 add_file_handler
2497 * event-top.c (ui_register_input_event_handler): Likewise.
2498 * linux-nat.c (linux_nat_target::async): Likewise.
2499 * run-on-main-thread.c (_initialize_run_on_main_thread):
2500 Likewise
2501 * ser-base.c (reschedule): Likewise.
2502 (ser_base_async): Likewise.
2503 * tui/tui-io.c: Likewise.
2504 * top.h (struct ui) <num>: New field.
2505 * top.c (highest_ui_num): New variable.
2506 (ui::ui): Initialize num.
2507
a7aba266
SM
25082020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2509
2510 * observable.h <inferior_created>: Remove parameters. Update all
2511 listeners.
2512 * inferior.h (post_create_inferior): Remove target parameter.
2513 Update all callers.
2514
048fde1e 25152020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2516
2517 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2518 and DW_MACRO_undef_strx.
2519 (dwarf_decode_macros): Likewise
2520 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2521 which is the value of DW_AT_str_offsets_base.
2522 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2523 str_offsets_base.
2524
064280be
KR
25252020-10-01 Kamil Rytarowski <n54@gmx.com>
2526
2527 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2528
6ff33035
KR
25292020-10-01 Kamil Rytarowski <n54@gmx.com>
2530
2531 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2532 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2533
1eb6eb79
KR
25342020-10-01 Kamil Rytarowski <n54@gmx.com>
2535
2536 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2537
95eb9e54
TV
25382020-09-30 Tom de Vries <tdevries@suse.de>
2539
2540 PR symtab/26683
2541 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2542
cae21f8e
TT
25432020-09-30 Tom Tromey <tromey@adacore.com>
2544
2545 * dwarf2/read.c (handle_variant): Use constant_value.
2546
529908cb
TT
25472020-09-29 Tom Tromey <tom@tromey.com>
2548
2549 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2550 (read_file_scope, dwarf2_get_pc_bounds)
2551 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2552 (read_structure_type, handle_struct_member_die)
2553 (read_enumeration_type, read_array_type, read_set_type)
2554 (read_tag_pointer_type, read_tag_reference_type)
2555 (read_subroutine_type, read_base_type, read_subrange_type)
2556 (read_full_die_1, partial_die_info::read)
2557 (partial_die_info::read, by, new_symbol)
2558 (dwarf2_const_value_data, dwarf2_const_value_attr)
2559 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2560 (prepare_one_comp_unit): Update.
2561 * dwarf2/attribute.h (DW_UNSND): Remove.
2562
c45bc3f8
TT
25632020-09-29 Tom Tromey <tom@tromey.com>
2564
2565 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2566 (read_subroutine_type, partial_die_info::read)
2567 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2568 (dwarf2_add_member_fn): Update.
2569 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2570 * dwarf2/attribute.c (attribute::as_boolean): New method.
2571
23dca5c3
TT
25722020-09-29 Tom Tromey <tom@tromey.com>
2573
2574 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2575 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2576 method.
2577 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2578
52c14d11
TT
25792020-09-29 Tom Tromey <tom@tromey.com>
2580
2581 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2582 the attribute's form.
2583
e8e5c158
TT
25842020-09-29 Tom Tromey <tom@tromey.com>
2585
2586 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2587 (dwarf2_add_member_fn): Update.
2588 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2589 * dwarf2/attribute.c (attribute::defaulted): New method, from
2590 is_valid_DW_AT_defaulted.
2591
d4df075e
TT
25922020-09-29 Tom Tromey <tom@tromey.com>
2593
2594 * dwarf2/read.c (dw2_get_file_names_reader)
2595 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2596 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2597 (dwarf2_symbol_mark_computed): Use as_unsigned.
2598 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2599 method.
2600 <form_is_section_offset>: Update comment.
2601
bf23a268
TT
26022020-09-29 Tom Tromey <tom@tromey.com>
2603
2604 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2605 dwarf2_default_access_attribute. Look up attribute.
2606 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2607 Update.
2608
7a5f294d
TT
26092020-09-29 Tom Tromey <tom@tromey.com>
2610
2611 * dwarf2/read.c (skip_one_die): Update.
2612 (read_full_die_1): Change how reprocessing is done.
2613 (partial_die_info::read): Update.
2614 (read_attribute_value): Remove need_reprocess parameter.
2615 (read_attribute): Likewise.
2616 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2617 New method.
2618
36d378cf
TT
26192020-09-29 Tom Tromey <tom@tromey.com>
2620
2621 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2622 (dwarf2_const_value_attr, dump_die_shallow)
2623 (dwarf2_fetch_constant_bytes): Update.
2624 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2625 comment.
2626 <set_address>: New method.
2627 (DW_ADDR): Remove.
2628 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2629 (attribute::as_string, attribute::as_address): Add assert.
2630
fe56917a
TT
26312020-09-29 Tom Tromey <tom@tromey.com>
2632
2633 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2634 (read_attribute_reprocess, read_attribute_value): Update.
2635 (read_attribute): Clear requires_reprocessing.
2636 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2637 form_requires_reprocessing>: New methods.
2638 <string_init>: Clear requires_reprocessing.
2639 <set_unsigned_reprocess>: New method.
2640 <name>: Shrink by one bit.
2641 <requires_reprocessing>: New member.
2642 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2643 method.
2644
414ad644
TT
26452020-09-29 Tom Tromey <tom@tromey.com>
2646
2647 * dwarf2/read.c (read_attribute_value): Update.
2648 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2649 set_unsigned>: New methods.
2650 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2651
1bc397c5
TT
26522020-09-29 Tom Tromey <tom@tromey.com>
2653
2654 * dwarf2/read.c (get_alignment, read_array_order)
2655 (read_attribute_value, dwarf2_const_value_attr)
2656 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2657 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2658 New methods.
2659 (DW_SND): Remove.
2660
630ed6b9
TT
26612020-09-29 Tom Tromey <tom@tromey.com>
2662
2663 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2664 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2665 Update.
2666 * dwarf2/attribute.h (struct attribute) <as_signature,
2667 set_signature>: New methods.
2668 (DW_SIGNATURE): Remove.
2669
9d2246fc
TT
26702020-09-29 Tom Tromey <tom@tromey.com>
2671
2672 * dwarf2/read.c (read_call_site_scope)
2673 (handle_data_member_location, dwarf2_add_member_fn)
2674 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2675 (partial_die_info::read, read_attribute_value)
2676 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2677 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2678 (dwarf2_symbol_mark_computed): Update.
2679 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2680 methods.
2681 (DW_BLOCK): Remove.
2682 * dwarf2/attribute.c (attribute::form_is_block): Add
2683 DW_FORM_data16.
2684
c6481205
TT
26852020-09-29 Tom Tromey <tom@tromey.com>
2686
2687 * dwarf2/read.c (read_cutu_die_from_dwo)
2688 (read_attribute_reprocess, read_attribute_value, read_attribute)
2689 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2690 (dwarf2_fetch_constant_bytes): Update.
2691 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2692 <set_string_noncanonical, set_string_canonical>: New methods.
2693 <string_is_canonical>: Update comment.
2694 <canonical_string_p>: Add assert.
2695 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2696 * dwarf2/attribute.c (attribute::form_is_string): New method.
2697 (attribute::string): Use it.
2698
3b64bf15
TT
26992020-09-29 Tom Tromey <tom@tromey.com>
2700
2701 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2702 (dump_die_shallow): Use canonical_string_p.
2703 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2704 method.
2705
2c830f54
TT
27062020-09-29 Tom Tromey <tom@tromey.com>
2707
2708 * dwarf2/read.c (partial_die_info::read)
2709 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2710 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2711 attribute::as_string.
2712
6c412691
TT
27132020-09-29 Tom Tromey <tom@tromey.com>
2714
2715 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2716 DW_ADDR.
2717 (attribute::string): Don't use DW_STRING.
2718 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2719 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2720
95f982e5
TT
27212020-09-29 Tom Tromey <tom@tromey.com>
2722
2723 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2724 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2725 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2726 * dwarf2/attribute.h (struct attribute): Rename methods.
2727 * dwarf2/attribute.c (attribute::as_address): Rename from
2728 value_as_address.
2729 (attribute::as_string): Rename from value_as_string.
2730
f800b00e
TT
27312020-09-29 Tom Tromey <tom@tromey.com>
2732
2733 * dwarf2/read.c (partial_die_info::read) <case
2734 DW_AT_linkage_name>: Use value_as_string.
2735 (dwarf2_string_attr): Use value_as_string.
2736 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2737 method.
2738 * dwarf2/attribute.c (attribute::value_as_string): New method.
2739
de38d64a
PA
27402020-09-29 Pedro Alves <pedro@palves.net>
2741
2742 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2743 defined before using '#pragma GCC diagnostic' instead of checking
2744 __clang__.
2745
9aed480c
TT
27462020-09-28 Tom Tromey <tom@tromey.com>
2747
2748 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2749 (handle_signal_stop): Update.
2750 * procfs.c (procfs_target::insert_watchpoint): Update.
2751 * target.h (target_have_steppable_watchpoint): Now a function.
2752
8a3ecb79
TT
27532020-09-28 Tom Tromey <tom@tromey.com>
2754
2755 * infrun.c (set_schedlock_func): Update.
2756 * target.h (target_can_lock_scheduler): Now a function.
2757
55f6301a
TT
27582020-09-28 Tom Tromey <tom@tromey.com>
2759
2760 * inferior.h (class inferior) <has_execution>: Update.
2761 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2762 * valops.c (find_function_in_inferior)
2763 (value_allocate_space_in_inferior): Update.
2764 * top.c (kill_or_detach): Update.
2765 * target.c (target_preopen, set_target_permissions): Update.
2766 (target_has_execution_current): Remove.
2767 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2768 Update.
2769 * solib.c (update_solib_list, reload_shared_libraries): Update.
2770 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2771 * solib-dsbt.c (enable_break): Update.
2772 * score-tdep.c (score7_fetch_inst): Update.
2773 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2774 Update.
2775 * remote.c (remote_target::start_remote)
2776 (remote_target::remote_check_symbols, remote_target::open_1)
2777 (remote_target::remote_detach_1, remote_target::verify_memory)
2778 (remote_target::xfer_partial, remote_target::read_description)
2779 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2780 * record-full.c (record_full_open_1): Update.
2781 * record-btrace.c (record_btrace_target_open): Update.
2782 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2783 (value_nsstring): Update.
2784 * linux-thread-db.c (add_thread_db_info)
2785 (thread_db_find_new_threads_silently, check_thread_db_callback)
2786 (try_thread_db_load_1, record_thread): Update.
2787 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2788 Update.
2789 * linux-fork.c (checkpoint_command): Update.
2790 * infrun.c (set_non_stop, set_observer_mode)
2791 (check_multi_target_resumption, for_each_just_stopped_thread)
2792 (maybe_remove_breakpoints, normal_stop)
2793 (class infcall_suspend_state): Update.
2794 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2795 (info_program_command, attach_command): Update.
2796 * infcall.c (call_function_by_hand_dummy): Update.
2797 * inf-loop.c (inferior_event_handler): Update.
2798 * gcore.c (gcore_command, derive_heap_segment): Update.
2799 * exec.c (exec_file_command): Update.
2800 * eval.c (evaluate_subexp): Update.
2801 * compile/compile.c (compile_to_object): Update.
2802 * cli/cli-dump.c (restore_command): Update.
2803 * breakpoint.c (update_watchpoint)
2804 (update_inserted_breakpoint_locations)
2805 (insert_breakpoint_locations, get_bpstat_thread): Update.
2806 * target.h (target_has_execution): Remove macro.
2807 (target_has_execution_current): Don't declare.
2808 (target_has_execution): Rename from target_has_execution_1. Add
2809 argument default.
2810
05374cfd
TT
28112020-09-28 Tom Tromey <tom@tromey.com>
2812
2813 * mi/mi-main.c (exec_reverse_continue)
2814 (mi_cmd_list_target_features): Update.
2815 * infrun.c (set_exec_direction_func): Update.
2816 * target.c (default_execution_direction): Update.
2817 * reverse.c (exec_reverse_once): Update.
2818 * target.h (target_can_execute_reverse): Now a function.
2819
9dccd06e
TT
28202020-09-28 Tom Tromey <tom@tromey.com>
2821
2822 * tui/tui-regs.c (tui_get_register)
2823 (tui_data_window::show_registers): Update.
2824 * thread.c (scoped_restore_current_thread::restore)
2825 (scoped_restore_current_thread::scoped_restore_current_thread):
2826 Update.
2827 * regcache-dump.c (regcache_print): Update.
2828 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2829 Update.
2830 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2831 * mep-tdep.c (current_me_module, current_options): Update.
2832 * linux-thread-db.c (thread_db_load): Update.
2833 * infcmd.c (registers_info, info_vector_command)
2834 (info_float_command): Update.
2835 * ia64-tdep.c (ia64_frame_prev_register)
2836 (ia64_sigtramp_frame_prev_register): Update.
2837 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2838 * gcore.c (derive_stack_segment): Update.
2839 * frame.c (get_current_frame, has_stack_frames): Update.
2840 * findvar.c (language_defn::read_var_value): Update.
2841 * arm-tdep.c (arm_pc_is_thumb): Update.
2842 * target.c (target_has_registers): Rename from
2843 target_has_registers_1.
2844 * target.h (target_has_registers): Remove macro.
2845 (target_has_registers): Rename from target_has_registers_1.
2846
841de120
TT
28472020-09-28 Tom Tromey <tom@tromey.com>
2848
2849 * windows-tdep.c (tlb_make_value): Update.
2850 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2851 * thread.c (scoped_restore_current_thread::restore)
2852 (scoped_restore_current_thread::scoped_restore_current_thread)
2853 (thread_command): Update.
2854 * stack.c (backtrace_command_1, frame_apply_level_command)
2855 (frame_apply_all_command, frame_apply_command): Update.
2856 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2857 Update.
2858 * gcore.c (derive_stack_segment): Update.
2859 * frame.c (get_current_frame, has_stack_frames): Update.
2860 * auxv.c (info_auxv_command): Update.
2861 * ada-tasks.c (ada_build_task_list): Update.
2862 * target.c (target_has_stack): Rename from target_has_stack_1.
2863 * target.h (target_has_stack): Remove macro.
2864 (target_has_stack): Rename from target_has_stack_1.
2865
a739972c
TT
28662020-09-28 Tom Tromey <tom@tromey.com>
2867
2868 * target.c (target_has_memory): Rename from target_has_memory_1.
2869 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2870 * thread.c (scoped_restore_current_thread::restore)
2871 (scoped_restore_current_thread::scoped_restore_current_thread):
2872 Update.
2873 * frame.c (get_current_frame, has_stack_frames): Update.
2874 * target.h (target_has_memory): Remove macro.
2875 (target_has_memory): Rename from target_has_memory_1.
2876
5b8a4776
TT
28772020-09-28 Tom Tromey <tom@tromey.com>
2878
2879 * target.c (target_has_all_memory_1): Remove.
2880 * target.h (target_has_all_memory): Remove define.
2881 (target_has_all_memory_1): Don't declare.
2882
bd356ec6
SM
28832020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2884
2885 * ser-base.c: Adjust comments formatting.
2886
2c72d5e5
TT
28872020-09-27 Tom Tromey <tom@tromey.com>
2888
2889 PR tui/25342:
2890 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2891
35a98237
TT
28922020-09-27 Tom Tromey <tom@tromey.com>
2893
2894 PR tui/25342:
2895 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2896
9e820dec
TT
28972020-09-27 Tom Tromey <tom@tromey.com>
2898
2899 * unittests/tui-selftests.c: Update.
2900 * tui/tui-winsource.h (struct tui_source_window_base)
2901 <extra_margin, show_line_number, refresh_pad>: New methods.
2902 <m_max_length, m_pad>: New members.
2903 (tui_copy_source_line): Update.
2904 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2905 first_col, line_width, ndigits parameters. Add length.
2906 (tui_source_window_base::show_source_line): Write to pad. Line
2907 number now 0-based.
2908 (tui_source_window_base::refresh_pad): New method.
2909 (tui_source_window_base::show_source_content): Write to pad. Call
2910 refresh_pad.
2911 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2912 not refill.
2913 (tui_source_window_base::update_exec_info): Call
2914 show_line_number.
2915 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2916 method.
2917 <m_digits>: New member.
2918 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2919 and m_max_length.
2920 (tui_source_window::show_line_number): New method.
2921 * tui/tui-io.h (tui_puts): Fix comment.
2922 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2923 m_max_length.
2924
c15c15c8
TT
29252020-09-27 Tom Tromey <tom@tromey.com>
2926
2927 * tui/tui-winsource.c
2928 (tui_source_window_base::set_is_exec_point_at): Don't call
2929 show_source_line.
2930
149830c1
TT
29312020-09-27 Tom Tromey <tom@tromey.com>
2932
2933 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2934 method.
2935 <erase>: Update.
2936 <cursor_x, cursor_y>: Remove.
2937 <m_inner_window>: New member.
2938 (tui_py_window::rerender): Create inner window.
2939 (tui_py_window::output): Write to inner window.
2940
8f9929bb
GR
29412020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2942
2943 PR python/26586
2944 * cli/cli-script.c (execute_control_commands): don't set
2945 instream to nullptr here as this breaks the from_tty argument
2946 to gdb.execute in Python.
2947 (execute_user_command): set instream to nullptr here instead.
2948
956bdb59
SM
29492020-09-25 Simon Marchi <simon.marchi@efficios.com>
2950
2951 * infrun.h (infrun_debug_printf): Fix formatting.
2952 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2953
3b93626b
SJ
29542020-09-25 Saagar Jha <saagar@saagarjha.com>
2955
2956 * compile/compile-object-load.h (struct munmap_list): Add
2957 explicitly-defined move constructor.
2958
b551a89f
TT
29592020-09-24 Tom Tromey <tromey@adacore.com>
2960
2961 PR tui/26638:
2962 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2963 method.
2964 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2965 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2966 (tui_prev_win): Rewrite.
2967
99bb393f
HD
29682020-09-23 Hannes Domani <ssbssa@yahoo.de>
2969
2970 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2971 in WOW64 processes as SIGINT.
2972 * nat/windows-nat.h: Make wow64_process a shared variable.
2973 * windows-nat.c: Remove static wow64_process variable.
2974
20a5fcbd
TT
29752020-09-23 Tom Tromey <tom@tromey.com>
2976
2977 PR symtab/25470:
2978 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2979 offset and bit size.
2980 * printcmd.c (print_scalar_formatted): Handle zero-length
2981 integer.
2982 (print_scalar_formatted): Use bit_size_differs_p.
2983 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2984 constant.
2985 (union type_specific): <int_stuff>: New member.
2986 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2987 methods.
2988 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2989 TYPE_SPECIFIC_FIELD.
2990 (recursive_dump_type, copy_type_recursive): Update.
2991 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2992 DW_AT_data_bit_offset.
2993
bac51ab7
TT
29942020-09-23 Tom Tromey <tom@tromey.com>
2995
2996 * utils.h (class gdb_argv): Add move operators.
2997 <append>: New methods.
2998 * compile/compile.c (build_argc_argv): Remove.
2999 (compile_args_argc): Remove.
3000 (compile_args_argv): Change type.
3001 (set_compile_args): Simplify.
3002 (append_args): Remove.
3003 (filter_args): Remove argcp parameter.
3004 (get_args): Return gdb_argv. Simplify.
3005 (compile_to_object): Update.
3006
92677124
TT
30072020-09-23 Tom Tromey <tom@tromey.com>
3008
3009 * compile/compile-object-run.c (do_module_cleanup)
3010 <~do_module_cleanup> :Remove.
3011 (do_module_cleanup): Update.
3012 * compile/compile-object-load.h (struct munmap_list): Add move
3013 assignment operator.
3014 <source_file>: Now a std::string.
3015 <munmap_list>: Rename. No longer a pointer.
3016 * compile/compile-object-load.c (struct setup_sections_data): Add
3017 constructor.
3018 <setup_one_section>: Declare.
3019 <munmap_list>: Move earlier.
3020 <m_bfd>: New member.
3021 <m_last_size, m_last_section_first, m_last_prot,
3022 m_last_max_alignment>: Rename, add initializers where needed.
3023 (setup_sections_data::setup_one_section): Rename from
3024 setup_sections. Update.
3025 (compile_object_load): Update. Don't use bfd_map_over_sections.
3026
e616f60a
TT
30272020-09-23 Tom Tromey <tom@tromey.com>
3028
3029 * compile/compile-object-run.c (struct do_module_cleanup): Add
3030 parameters to constructor. Update destructor.
3031 <source_file, scope, scope_data, out_value_type, out_value_addr,
3032 munmap_list_head, objfile_name_string>: Remove.
3033 <module>: New member.
3034 (do_module_cleanup): Update.
3035 (compile_object_run): Update.
3036
e947a848
TT
30372020-09-23 Tom Tromey <tom@tromey.com>
3038
3039 * compile/compile.c (eval_compile_command): Update.
3040 * compile/compile-object-run.h (compile_object_run): Take a
3041 compile_module_up.
3042 * compile/compile-object-run.c (compile_object_run): Take a
3043 compile_module_up.
3044 * compile/compile-object-load.h (struct compile_module): Add
3045 constructor, destructor.
3046 (compile_module_up): New typedef.
3047 (compile_object_load): Return compile_object_up.
3048 * compile/compile-object-load.c (compile_object_load): Return
3049 compile_module_up.
3050
0dbf6ee6
TT
30512020-09-23 Tom Tromey <tom@tromey.com>
3052
3053 * compile/compile-object-run.c (struct do_module_cleanup): Add
3054 constructor, destructor.
3055 <objfile_name_string>: Don't use struct hack.
3056 (do_module_cleanup): Use delete.
3057 (compile_object_run): Use new.
3058
ebe824f5
TT
30592020-09-23 Tom Tromey <tom@tromey.com>
3060
3061 * compile/compile-cplus-types.c
3062 (compile_cplus_convert_struct_or_union): Use std::vector.
3063 (compile_cplus_convert_func): Likewise.
3064 * compile/compile-c-types.c (convert_func): Use std::vector.
3065
5dd918d9
TT
30662020-09-21 Tom Tromey <tromey@adacore.com>
3067
3068 * sparc-tdep.c (sparc32_skip_prologue): Use
3069 skip_prologue_using_sal.
3070
5486c517
TT
30712020-09-19 Tom Tromey <tom@tromey.com>
3072
3073 * symfile.c (add_section_size_callback): Remove.
3074 (load_one_section): Rename from load_section_callback. Change
3075 parameters.
3076 (generic_load): Use foreach.
3077
8a6bb1d1
TT
30782020-09-19 Tom Tromey <tom@tromey.com>
3079
3080 * exec.c (add_to_section_table): Remove.
3081 (build_section_table): Use foreach.
3082
08f93a1a
TT
30832020-09-19 Tom Tromey <tom@tromey.com>
3084
3085 * elfread.c (elf_locate_sections): Change parameters.
3086 (elf_symfile_read): Use foreach.
3087
03cd72b8
TT
30882020-09-19 Tom Tromey <tom@tromey.com>
3089
3090 * cli/cli-dump.c (struct callback_data): Remove.
3091 (restore_one_section): Rename from restore_section_callback.
3092 Change parameters.
3093 (restore_binary_file): Change parameters.
3094 (restore_command): Use foreach.
3095
f4f2b85f
TT
30962020-09-19 Tom Tromey <tom@tromey.com>
3097
3098 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3099 (gcore_copy_callback): Likewise.
3100 (gcore_memory_sections): Use foreach.
3101
b35c1d1c
TT
31022020-09-19 Tom Tromey <tom@tromey.com>
3103
3104 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3105 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3106 parameters.
3107 (generic_elf_osabi_sniffer): Use foreach.
3108 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3109 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3110
5bb6e9dd
TT
31112020-09-19 Tom Tromey <tom@tromey.com>
3112
3113 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3114 (dwarf2_get_dwz_file): Use foreach.
3115 (dwarf2_locate_dwo_sections): Change parameters.
3116 (open_and_init_dwo_file): Use foreach.
3117 (dwarf2_locate_common_dwp_sections): Change parameters.
3118 (open_and_init_dwp_file): Use foreach.
3119
ad7277da
TT
31202020-09-19 Tom Tromey <tom@tromey.com>
3121
3122 * symfile.h: (find_lowest_section): Don't declare.
3123 * symfile.c (find_lowest_section): Now static. Change
3124 parameters.
3125 (struct place_section_arg): Remove.
3126 (place_section): Change parameters.
3127 (addr_info_make_relative): Use foreach.
3128 (symfile_dummy_outputs): Remove.
3129 (default_symfile_relocate): Use foreach.
3130
cb814f2e
TT
31312020-09-19 Tom Tromey <tom@tromey.com>
3132
3133 * objfiles.c (add_to_objfile_sections): Rename from
3134 add_to_objfile_sections_full.
3135 (add_to_objfile_sections): Remove.
3136 (build_objfile_section_table): Use foreach.
3137
3cabfd26
TT
31382020-09-19 Tom Tromey <tom@tromey.com>
3139
3140 * stap-probe.c (get_stap_base_address_1): Remove.
3141 (get_stap_base_address): Use foreach.
3142
1ce51eb5
TT
31432020-09-19 Tom Tromey <tom@tromey.com>
3144
3145 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3146 parameters.
3147 (gdb_bfd_close_or_warn): Use foreach.
3148
a190fabb
TT
31492020-09-19 Tom Tromey <tom@tromey.com>
3150
3151 * corelow.c (add_to_thread_list): Change parameters.
3152 (core_target_open): Use foreach.
3153
cafb0d81
TT
31542020-09-19 Tom Tromey <tom@tromey.com>
3155
3156 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3157 existing function.
3158
c8d5abea
AB
31592020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3160
3161 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3162 for arrays.
3163
6d816919
AB
31642020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3165
3166 * eval.c: Remove 'f-lang.h' include.
3167 (value_f90_subarray): Moved to f-lang.c.
3168 (eval_call): Renamed to...
3169 (evaluate_subexp_do_call): ...this, is no longer static, header
3170 comment moved into header file.
3171 (evaluate_funcall): Update call to eval_call.
3172 (skip_undetermined_arglist): Moved to f-lang.c.
3173 (fortran_value_subarray): Likewise.
3174 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3175 moved to evaluate_subexp_f.
3176 (calc_f77_array_dims): Moved to f-lang.c
3177 * expprint.c (print_subexp_funcall): New function.
3178 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3179 moved to print_subexp_f, OP_FUNCALL uses new function.
3180 (dump_subexp_body_funcall): New function.
3181 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3182 moved to dump_subexp_f, OP_FUNCALL uses new function.
3183 * expression.h (evaluate_subexp_do_call): Declare.
3184 * f-lang.c (value_f90_subarray): Moved from eval.c.
3185 (skip_undetermined_arglist): Likewise.
3186 (calc_f77_array_dims): Likewise.
3187 (fortran_value_subarray): Likewise.
3188 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3189 (operator_length_f): Likewise.
3190 (print_subexp_f): Likewise.
3191 (dump_subexp_body_f): Likewise.
3192 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3193 declaration of this operation to here.
3194 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3195 support moved to operator_length_f.
3196 * parser-defs.h (dump_subexp_body_funcall): Declare.
3197 (print_subexp_funcall): Declare.
3198 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3199 fortran-operator.def.
3200
8c37706a
AB
32012020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3202
3203 * eval.c (fortran_value_subarray): New function, content is taken
3204 from...
3205 (evaluate_subexp_standard): ...here, in two places. Now arrays
3206 and strings both call the new function.
3207 (calc_f77_array_dims): Add header comment, handle strings.
3208
14f9473c
VC
32092020-09-18 Victor Collod <vcollod@nvidia.com>
3210
3211 PR gdb/26635
3212 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3213 (i386_analyze_prologue): Call i386_skip_endbr.
3214
b60cea74
TT
32152020-09-18 Tom Tromey <tromey@adacore.com>
3216
3217 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3218 (windows_nat_target::wait): Update.
3219 * target/wait.h (enum target_wait_flag): New. Use
3220 DEF_ENUM_FLAGS_TYPE.
3221 * target/target.h (target_wait): Change type of options.
3222 * target.h (target_options_to_string, default_target_wait):
3223 Update.
3224 (struct target_ops) <wait>: Change type of options.
3225 * target.c (target_wait, default_target_wait, do_option): Change
3226 type of "options".
3227 (target_options_to_string): Likewise.
3228 * target-delegates.c: Rebuild.
3229 * target-debug.h (target_debug_print_target_wait_flags): Rename
3230 from target_debug_print_options.
3231 * sol-thread.c (class sol_thread_target) <wait>: Update.
3232 (sol_thread_target::wait): Update.
3233 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3234 (rs6000_nat_target::wait): Update.
3235 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3236 Update.
3237 (remote_target::wait_ns, remote_target::wait_as): Change type of
3238 "options".
3239 (remote_target::wait): Update.
3240 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3241 (gdbsim_target::wait): Update.
3242 * record-full.c (class record_full_base_target) <wait>: Update.
3243 (record_full_wait_1): Change type of "options".
3244 (record_full_base_target::wait): Update.
3245 * record-btrace.c (class record_btrace_target) <wait>: Update.
3246 (record_btrace_target::wait): Update.
3247 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3248 Update.
3249 (ravenscar_thread_target::wait): Update.
3250 * procfs.c (class procfs_target) <wait>: Update.
3251 (procfs_target::wait): Update.
3252 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3253 * obsd-nat.c (obsd_nat_target::wait): Update.
3254 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3255 (nto_procfs_target::wait): Update.
3256 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3257 * nbsd-nat.c (nbsd_wait): Change type of "options".
3258 (nbsd_nat_target::wait): Update.
3259 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3260 (thread_db_target::wait): Update.
3261 * linux-nat.h (class linux_nat_target) <wait>: Update.
3262 * linux-nat.c (linux_nat_target::wait): Update.
3263 (linux_nat_wait_1): Update.
3264 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3265 "options".
3266 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3267 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3268 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3269 (go32_nat_target::wait): Update.
3270 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3271 * gnu-nat.c (gnu_nat_target::wait): Update.
3272 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3273 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3274 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3275 * darwin-nat.c (darwin_nat_target::wait): Update.
3276 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3277 (bsd_uthread_target::wait): Update.
3278 * aix-thread.c (class aix_thread_target) <wait>: Update.
3279 (aix_thread_target::wait): Update.
3280
0295dde6
AB
32812020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3282
3283 * compile/compile-object-run.c (create_copied_type_recursive): New
3284 function.
3285 (compile_object_run): Use new function.
3286
d3483b43
JT
32872020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3288
3289 * NEWS: Mention x86_64 Cygwin core file support.
3290
e7d612ad
JT
32912020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3292
3293 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3294 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3295
aff9d387
JT
32962020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3297
62a5151b
JT
3298 * windows-tdep.h: Add prototypes.
3299 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3300 (i386_windows_core_pid_to_str): Move and rename ...
3301 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3302 (windows_core_pid_to_str): ... and here.
3303 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3304
33052020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3306 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3307 (amd64_windows_init_abi_common): ... and register.
3308
7d155da3
JT
33092020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3310
3311 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3312 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3313
e8ef12b9
PA
33142020-09-18 Pedro Alves <pedro@palves.net>
3315
3316 PR gdb/26631
3317 * thread.c (thread_find_command): Switch inferior before calling
3318 target methods.
3319
c1e1314d
TT
33202020-09-17 Tom Tromey <tromey@adacore.com>
3321
3322 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3323 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3324 (tdesc_arch_data_up): New typedef.
3325 (tdesc_use_registers, tdesc_data_alloc): Update.
3326 (tdesc_data_cleanup): Don't declare.
3327 * target-descriptions.c (tdesc_data_alloc): Return a
3328 tdesc_arch_data_up.
3329 (tdesc_arch_data_deleter::operator()): Rename from
3330 tdesc_data_cleanup. Change argument type.
3331 (tdesc_use_registers): Change early_data to an rvalue reference.
3332 (tdesc_use_registers): Don't use delete.
3333 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3334 * s390-tdep.c (s390_gdbarch_init): Update.
3335 * rx-tdep.c (rx_gdbarch_init): Update.
3336 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3337 * riscv-tdep.c (riscv_gdbarch_init): Update.
3338 * or1k-tdep.c (or1k_gdbarch_init): Update.
3339 * nios2-tdep.c (nios2_gdbarch_init): Update.
3340 * nds32-tdep.c (nds32_gdbarch_init): Update.
3341 * mips-tdep.c (mips_gdbarch_init): Update.
3342 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3343 * m68k-tdep.c (m68k_gdbarch_init): Update.
3344 * i386-tdep.c (i386_gdbarch_init): Update.
3345 * arm-tdep.c (arm_gdbarch_init): Update.
3346 * arc-tdep.c (arc_tdesc_init): Update.
3347 (arc_gdbarch_init): Update.
3348 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3349
0363df3d
HD
33502020-09-17 Hannes Domani <ssbssa@yahoo.de>
3351
3352 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3353 for WOW64 processes.
3354
280a9412
TT
33552020-09-17 Tom Tromey <tom@tromey.com>
3356
3357 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3358
6108fd18
TT
33592020-09-17 Tom Tromey <tom@tromey.com>
3360
3361 * value.c (preserve_values): Update.
3362 * python/py-type.c (save_objfile_types): Update.
3363 * guile/scm-type.c (save_objfile_types): Update.
3364 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3365 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3366 * compile/compile-object-run.c (compile_object_run): Update.
3367
fa9b1164
TT
33682020-09-17 Tom Tromey <tom@tromey.com>
3369
3370 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3371 Remove.
3372 <m_table>: Now htab_up.
3373 * typeprint.c (typedef_hash_table::recursively_update)
3374 (typedef_hash_table::add_template_parameters)
3375 (typedef_hash_table::typedef_hash_table): Update.
3376 (typedef_hash_table::~typedef_hash_table): Remove.
3377 (typedef_hash_table::typedef_hash_table)
3378 (typedef_hash_table::find_global_typedef)
3379 (typedef_hash_table::find_typedef): Update.
3380
eb53f105
TT
33812020-09-17 Tom Tromey <tom@tromey.com>
3382
3383 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3384
7a8a5d47
TT
33852020-09-17 Tom Tromey <tom@tromey.com>
3386
3387 * linespec.c (class decode_compound_collector)
3388 <~decode_compound_collector>: Remove.
3389 <m_unique_syms>: Now htab_up.
3390 (decode_compound_collector::operator ()): Update.
3391 (class symtab_collector) <~symtab_collector>: Remove.
3392 <m_symtab_table>: Now htab_up.
3393 (symtab_collector::operator ()): Update.
3394
99032cfc
TT
33952020-09-17 Tom Tromey <tom@tromey.com>
3396
3397 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3398 (filename_seen_cache::clear): Update.
3399 (~filename_seen_cache): Remove.
3400 (filename_seen_cache::seen): Update.
3401 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3402 htab_up.
3403 <~filename_seen_cache>: Remove.
3404 <traverse>: Update.
3405
32580f6d
TT
34062020-09-17 Tom Tromey <tom@tromey.com>
3407
3408 * completer.c (completion_tracker::discard_completions)
3409 (completion_tracker::~completion_tracker)
3410 (completion_tracker::maybe_add_completion)
3411 (completion_tracker::remove_completion)
3412 (completion_tracker::recompute_lowest_common_denominator)
3413 (completion_tracker::build_completion_result): Update.
3414 * completer.h (class completion_tracker) <have_completions>:
3415 Update.
3416 <m_entries_hash>: Now htab_up.
3417
c1fb9836
TT
34182020-09-17 Tom Tromey <tom@tromey.com>
3419
3420 * breakpoint.c (ambiguous_names_p): Use htab_up.
3421
88f07206
TT
34222020-09-17 Tom Tromey <tom@tromey.com>
3423
3424 * auto-load.c (struct auto_load_pspace_info)
3425 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3426 <loaded_script_files, loaded_script_texts>: Change type to
3427 htab_up.
3428 (~auto_load_pspace_info) Remove.
3429 (init_loaded_scripts_info, maybe_add_script_file)
3430 (maybe_add_script_text, auto_load_info_scripts): Update.
3431
9519b2ee
TT
34322020-09-17 Tom Tromey <tromey@adacore.com>
3433
3434 * c-exp.y (name_obstack): Now static.
3435
d2cd4113
CC
34362020-09-17 Chungyi Chi <demonic@csie.io>
3437
3438 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3439
b650a282
SM
34402020-09-16 Simon Marchi <simon.marchi@efficios.com>
3441
3442 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3443 (add_solib_catchpoint): Likewise.
3444 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3445 to bool.
3446 (add_solib_catchpoint): Change int parameter/variable to bool.
3447 (catch_load_or_unload): Likewise.
3448 (init_catchpoint): Likewise.
3449 (create_fork_vfork_event_catchpoint): Likewise.
3450 (catch_fork_command_1): Likewise.
3451 (catch_exec_command_1): Likewise.
3452
4d0bcfcf
SM
34532020-09-16 Simon Marchi <simon.marchi@efficios.com>
3454
3455 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3456 Change instance_flags to m_instance_flags.
3457
fe830662
TT
34582020-09-16 Tom Tromey <tromey@adacore.com>
3459
3460 PR gdb/26598:
3461 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3462
fe5ddfc3
JB
34632020-09-16 John Baldwin <jhb@FreeBSD.org>
3464
3465 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3466 PL_FLAG_EXEC.
3467 (fbsd_nat_target::insert_exec_catchpoint)
3468 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3469 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3470 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3471
e911c666
JB
34722020-09-16 John Baldwin <jhb@FreeBSD.org>
3473
3474 * configure.ac: Remove check for kinfo_getvmmap().
3475 * configure, config.in: Regenerate.
3476 * fbsd-nat.c (fbsd_read_mapping): Remove
3477 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3478 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3479 kinfo_get_vmmap() are always present.
3480
1f17d372
JB
34812020-09-16 John Baldwin <jhb@FreeBSD.org>
3482
3483 * fbsd-nat.c: Always include support for
3484 TARGET_OBJECT_SIGNAL_INFO.
3485
bcb1da7f
JB
34862020-09-16 John Baldwin <jhb@FreeBSD.org>
3487
3488 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3489 sysctl and remove procfs fallback.
3490
5515f729
JB
34912020-09-16 John Baldwin <jhb@FreeBSD.org>
3492
3493 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3494 * fbsd-nat.h: Likewise.
3495
da1df1db
TBA
34962020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3497
3498 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3499 argument.
3500
0e25e767
AB
35012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * ada-lang.c (ada_language_data): Delete.
3504 (ada_language): Remove references to ada_language_data.
3505 * c-lang.c (c_language_data): Delete.
3506 (c_language): Remove references to c_language_data.
3507 (cplus_language_data): Delete.
3508 (cplus_language): Remove references to cplus_language_data.
3509 (asm_language_data): Delete.
3510 (asm_language): Remove references to asm_language_data.
3511 (minimal_language_data): Delete.
3512 (minimal_language): Remove references to minimal_language_data.
3513 * d-lang.c (d_language_data): Delete.
3514 (d_language): Remove references to d_language_data.
3515 * f-lang.c (f_language_data): Delete.
3516 (f_language): Remove references to f_language_data.
3517 * go-lang.c (go_language_data): Delete.
3518 (go_language): Remove references to go_language_data.
3519 * language.c (unknown_language_data): Delete.
3520 (unknown_language): Remove references to unknown_language_data.
3521 (auto_language_data): Delete.
3522 (auto_language): Remove references to auto_language_data.
3523 * language.h (language_data): Delete struct.
3524 (language_defn): No longer inherit from language_data.
3525 * m2-lang.c (m2_language_data): Delete.
3526 (m2_language): Remove references to m2_language_data.
3527 * objc-lang.c (objc_language_data): Delete.
3528 (objc_language): Remove references to objc_language_data.
3529 * opencl-lang.c (opencl_language_data): Delete.
3530 (opencl_language): Remove references to opencl_language_data.
3531 * p-lang.c (pascal_language_data): Delete.
3532 (pascal_language): Remove references to pascal_language_data.
3533 * rust-lang.c (rust_language_data): Delete.
3534 (rust_language): Remove references to rust_language_data.
3535
b7c6e27d
AB
35362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3537
3538 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3539 initializer.
3540 (ada_language::opcode_print_table): New member function.
3541 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3542 (c_language::opcode_print_table): New member function.
3543 (cplus_language_data): Remove la_op_print_tab initializer.
3544 (cplus_language::opcode_print_table): New member function.
3545 (asm_language_data): Remove la_op_print_tab initializer.
3546 (asm_language::opcode_print_table): New member function.
3547 (minimal_language_data): Remove la_op_print_tab initializer.
3548 (minimal_language::opcode_print_table): New member function.
3549 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3550 (d_language::opcode_print_table): New member function.
3551 * expprint.c (print_subexp_standard): Update call to
3552 opcode_print_table.
3553 (op_string): Likewise.
3554 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3555 (f_language::opcode_print_table): New member function.
3556 * go-lang.c (go_language_data): Remove la_op_print_tab
3557 initializer.
3558 (go_language::opcode_print_table): New member function.
3559 * language.c (unknown_language_data): Remove la_op_print_tab
3560 initializer.
3561 (unknown_language::opcode_print_table): New member function.
3562 (auto_language_data): Remove la_op_print_tab initializer.
3563 (auto_language::opcode_print_table): New member function.
3564 * language.h (language_data): Remove la_op_print_tab field.
3565 (language_defn::opcode_print_table): Declare new member function.
3566 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3567 initializer.
3568 (m2_language::opcode_print_table): New member function.
3569 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3570 initializer.
3571 (objc_language::opcode_print_table): New member function.
3572 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3573 initializer.
3574 (opencl_language::opcode_print_table): New member function.
3575 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3576 initializer.
3577 (pascal_language::opcode_print_table): New member function.
3578 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3579 initializer.
3580 (rust_language::opcode_print_table): New member function.
3581
5aba6ebe
AB
35822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3583
3584 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3585 (ada_language::expression_ops): New member function.
3586 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3587 (c_language::expression_ops): New member function.
3588 (cplus_language_data): Remove la_exp_desc initializer.
3589 (cplus_language::expression_ops): New member function.
3590 (asm_language_data): Remove la_exp_desc initializer.
3591 (asm_language::expression_ops): New member function.
3592 (minimal_language_data): Remove la_exp_desc initializer.
3593 (minimal_language::expression_ops): New member function.
3594 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3595 (d_language::expression_ops): New member function.
3596 * eval.c (evaluate_subexp): Update call to expression_ops.
3597 * expprint.c (print_subexp): Likewise.
3598 (op_name): Likewise.
3599 (dump_subexp_body): Likewise.
3600 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3601 (f_language::expression_ops): New member function.
3602 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3603 (go_language::expression_ops): New member function.
3604 * language.c (language_defn::expression_ops): New function.
3605 (unknown_language_data): Remove la_exp_desc initializer.
3606 (auto_language_data): Likewise.
3607 * language.h (language_data): Remove la_exp_desc field.
3608 (language_defn::expression_ops): Declare new member function.
3609 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3610 (m2_language::expression_ops): New member function.
3611 * objc-lang.c (objc_language_data): Remove la_exp_desc
3612 initializer.
3613 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3614 initializer.
3615 (opencl_language::expression_ops): New member function.
3616 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3617 * parse.c (operator_length): Update call to expression_ops.
3618 (exp_iterate): Likewise.
3619 * rust-lang.c (rust_language_data): Remove la_exp_desc
3620 initializer.
3621 (ruse_language::expression_ops): New member function.
3622
b63a3f3f
AB
36232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3624
3625 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3626 initializer.
3627 (ada_language::varobj_ops): New member function.
3628 * c-lang.c (c_language_data): Remove la_varobj_ops
3629 initializer.
3630 (cplus_language_data): Likewise.
3631 (cplus_language::varobj_ops): New member function.
3632 (asm_language_data): Remove la_varobj_ops initializer.
3633 (minimal_language_data): Likewise.
3634 * d-lang.c (d_language_data): Likewise.
3635 * f-lang.c (f_language_data): Likewise.
3636 * go-lang.c (go_language_data): Likewise.
3637 * language.c (language_defn::varobj_ops): New function.
3638 (unknown_language_data): Remove la_varobj_ops
3639 initializer.
3640 (auto_language_data): Likewise.
3641 * language.h (language_data): Remove la_varobj_ops field.
3642 (language_defn::varobj_ops): Declare new member function.
3643 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3644 * objc-lang.c (objc_language_data): Likewise.
3645 * opencl-lang.c (opencl_language_data): Likewise.
3646 * p-lang.c (pascal_language_data): Likewise.
3647 * rust-lang.c (rust_language_data): Likewise.
3648 * varobj.c (varobj_create): Update call to varobj_ops.
3649 * varobj.h (default_varobj_ops): Delete define.
3650
1ac14a04
AB
36512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3652
3653 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3654 initializer.
3655 * c-lang.c (c_language_data): Likewise.
3656 (c_language::macro_expansion): New member function.
3657 (cplus_language_data): Likewise.
3658 (cplus_language::macro_expansion): New member function.
3659 (asm_language_data): Likewise.
3660 (asm_language::macro_expansion): New member function.
3661 (minimal_language_data): Likewise.
3662 (minimal_language::macro_expansion): New member function.
3663 * d-lang.c (d_language_data): Remove la_macro_expansion
3664 initializer.
3665 * f-lang.c (f_language_data): Likewise.
3666 * go-lang.c (go_language_data): Likewise.
3667 * language.c (unknown_language_data): Likewise.
3668 (auto_language_data): Likewise.
3669 * language.h (language_data): Remove la_macro_expansion field.
3670 (language_defn::macro_expansion): New member function.
3671 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3672 initializer.
3673 * objc-lang.c (objc_language_data): Likewise.
3674 (objc_language::macro_expansion): New member function.
3675 * opencl-lang.c (opencl_language_data): Likewise.
3676 (opencl_language::macro_expansion): New member function.
3677 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3678 initializer.
3679 * rust-lang.c (rust_language_data): Likewise.
3680 * symtab.c (default_collect_symbol_completion_matches_break_on):
3681 Update call to macro_expansion.
3682
3a3440fb
AB
36832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3684
3685 * ada-lang.c (ada_language_data): Remove la_array_ordering
3686 initializer.
3687 * c-lang.c (c_language_data): Likewise.
3688 (cplus_language_data): Likewise.
3689 (asm_language_data): Likewise.
3690 (minimal_language_data): Likewise.
3691 * d-lang.c (d_language_data): Likewise.
3692 * dwarf2/read.c (read_array_order): Update for call to
3693 array_ordering.
3694 * f-lang.c (f_language_data): Remove la_array_ordering
3695 initializer.
3696 (f_language::array_ordering): New member function.
3697 * go-lang.c (go_language_data): Remove la_array_ordering
3698 initializer.
3699 * language.c (unknown_language_data): Likewise.
3700 (auto_language_data): Likewise.
3701 * language.h (language_data): Delete la_array_ordering field.
3702 (language_defn::array_ordering): New member function.
3703 * m2-lang.c (m2_language_data): Remove la_array_ordering
3704 initializer.
3705 * objc-lang.c (objc_language_data): Likewise.
3706 * opencl-lang.c (opencl_language_data): Likewise.
3707 * p-lang.c (pascal_language_data): Likewise.
3708 * rust-lang.c (rust_language_data): Likewise.
3709
0d201fa4
AB
37102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3711
3712 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3713 initializer.
3714 * c-lang.c (c_language_data): Likewise.
3715 (cplus_language_data): Likewise.
3716 (asm_language_data): Likewise.
3717 (minimal_language_data): Likewise.
3718 * d-lang.c (d_language_data): Likewise.
3719 * f-lang.c (f_language_data): Likewise.
3720 (f_language::case_sensitivity): New member function.
3721 * go-lang.c (go_language_data): Remove la_case_sensitivity
3722 initializer.
3723 * language.c (enum case_mode): Moved here from language.h.
3724 (case_mode): Make static.
3725 (show_case_command): Update for case_sensitivity being a method.
3726 (set_case_command): Likewise.
3727 (set_range_case): Likewise.
3728 (unknown_language_data): Remove la_case_sensitivity initializer.
3729 (auto_language_data): Likewise.
3730 * language.h (case_mode): Delete, move enum declaration to
3731 language.c.
3732 (language_data): Delete la_case_sensitivity field.
3733 (language_defn::case_sensitivity): New member function.
3734 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3735 initializer.
3736 * objc-lang.c (objc_language_data): Likewise.
3737 * opencl-lang.c (opencl_language_data): Likewise.
3738 * p-lang.c (pascal_language_data): Likewise.
3739 * rust-lang.c (rust_language_data): Likewise.
3740
efdf6a73
AB
37412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3742
3743 * ada-lang.c (ada_language_data): Remove la_range_check
3744 initializer.
3745 * c-lang.c (c_language_data): Likewise.
3746 (cplus_language_data): Likewise.
3747 (asm_language_data): Likewise.
3748 (minimal_language_data): Likewise.
3749 * d-lang.c (d_language_data): Likewise.
3750 * f-lang.c (f_language_data): Likewise.
3751 (f_language::range_checking_on_by_default): New member function.
3752 * go-lang.c (go_language_data): Remove la_range_check initializer.
3753 * language.c (enum range_mode): Moved here from language.h.
3754 (range_mode): Made static.
3755 (show_range_command): Update to use
3756 range_checking_on_by_default.
3757 (set_range_command): Likewise.
3758 (set_range_case): Likewise.
3759 (unknown_language_data): Remove la_range_check initializer.
3760 (auto_language_data): Likewise.
3761 * language.h (range_mode): Delete. Enum definition moved to
3762 language.c.
3763 (language_data): Remove la_range_check field.
3764 (language_defn::range_checking_on_by_default): New member
3765 function.
3766 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3767 (m2_language::range_checking_on_by_default): New member function.
3768 * objc-lang.c (objc_language_data): Remove la_range_check
3769 initializer.
3770 * opencl-lang.c (opencl_language_data): Likewise.
3771 * p-lang.c (pascal_language_data): Likewise.
3772 (pascal_language::range_checking_on_by_default): New member
3773 function.
3774 * rust-lang.c (rust_language_data): Remove la_range_check
3775 initializer.
3776 (rust_language::range_checking_on_by_default): New member
3777 function.
3778
bf92aec5
AB
37792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3780
3781 * dwarf2/read.c (dwarf2_physname): Remove special case for
3782 language_go.
3783 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3784 member function.
3785
d3355e4d
AB
37862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3787
3788 * ada-lang.c (ada_language_data): Remove
3789 la_store_sym_names_in_linkage_form_p initializer.
3790 (ada_language::store_sym_names_in_linkage_form_p): New member
3791 function.
3792 * c-lang.c (c_language_data): Remove
3793 la_store_sym_names_in_linkage_form_p initializer.
3794 (c_language::store_sym_names_in_linkage_form_p): New member
3795 function.
3796 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3797 initializer.
3798 (asm_language_data): Likewise.
3799 (asm_language::store_sym_names_in_linkage_form_p): New member
3800 function.
3801 (minimal_language_data): Remove
3802 la_store_sym_names_in_linkage_form_p initializer.
3803 (minimal_language::store_sym_names_in_linkage_form_p): New member
3804 function.
3805 * d-lang.c (d_language_data): Remove
3806 la_store_sym_names_in_linkage_form_p initializer.
3807 * dwarf2/read.c (dwarf2_physname): Update call to
3808 store_sym_names_in_linkage_form_p.
3809 * f-lang.c (f_language_data): Remove
3810 la_store_sym_names_in_linkage_form_p initializer.
3811 * go-lang.c (go_language_data): Remove
3812 la_store_sym_names_in_linkage_form_p initializer.
3813 * language.c (unknown_language_data): Remove
3814 la_store_sym_names_in_linkage_form_p initializer.
3815 (unknown_language::store_sym_names_in_linkage_form_p): New member
3816 function.
3817 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3818 initializer.
3819 (auto_language::store_sym_names_in_linkage_form_p): New member
3820 function.
3821 * language.h (language_data): Remove
3822 la_store_sym_names_in_linkage_form_p member variable.
3823 (language_defn::store_sym_names_in_linkage_form_p): New member
3824 function.
3825 * m2-lang.c (m2_language_data): Remove
3826 la_store_sym_names_in_linkage_form_p initializer.
3827 * objc-lang.c (objc_language_data): Likewise.
3828 * opencl-lang.c (opencl_language_data): Likewise.
3829 * p-lang.c (pascal_language_data): Likewise.
3830 * rust-lang.c (rust_language_data): Likewise.
3831
22c12a6c
AB
38322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3833
3834 * ada-lang.c (ada_language_data): Remove string_lower_bound
3835 initializer.
3836 * c-lang.c (c_language_data): Likewise.
3837 (cplus_language_data): Likewise.
3838 (asm_language_data): Likewise.
3839 (minimal_language_data): Likewise.
3840 * d-lang.c (d_language_data): Likewise.
3841 * f-lang.c (f_language_data): Likewise.
3842 * go-lang.c (go_language_data): Likewise.
3843 * language.c (unknown_language_data): Likewise.
3844 (auto_language_data): Likewise.
3845 * language.h (language_data): Remove string_lower_bound field.
3846 (language_defn::string_lower_bound): New member function.
3847 * m2-lang.c (m2_language_data): Remove string_lower_bound
3848 initializer.
3849 (m2_language::string_lower_bound): New member function.
3850 * objc-lang.c (objc_language_data): Remove string_lower_bound
3851 initializer.
3852 * opencl-lang.c (opencl_language_data): Likewise.
3853 * p-lang.c (pascal_language_data): Likewise.
3854 * rust-lang.c (rust_language_data): Likewise.
3855 * valops.c (value_cstring): Update call to string_lower_bound.
3856 (value_string): Likewise.
3857 * value.c (allocate_repeated_value): Likewise.
3858
1c236ddd
AB
38592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3860
3861 * valops.c (value_repeat): Fix incorrect argument name in comment.
3862
67bd3fd5
AB
38632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3864
3865 * ada-lang.c (ada_language_data): Remove c_style_arrays
3866 initializer.
3867 (ada_language::c_style_arrays_p): New member fuction.
3868 * c-lang.c (c_language_data): Remove c_style_arrays
3869 initializer.
3870 (cplus_language_data): Likewise.
3871 (asm_language_data): Likewise.
3872 (minimal_language_data): Likewise.
3873 * d-lang.c (d_language_data): Likewise.
3874 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3875 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3876 (f_language::c_style_arrays_p): New member function.
3877 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3878 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3879 * language.c (unknown_language_data): Remove c_style_arrays
3880 initializer.
3881 (auto_language_data): Likewise.
3882 * language.h (language_data): Remove c_style_arrays field.
3883 (language_defn::c_style_arrays_p): New member function.
3884 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3885 (m2_language::c_style_arrays_p): New member function.
3886 * objc-lang.c (objc_language_data): Remove c_style_arrays
3887 initializer.
3888 * opencl-lang.c (opencl_language_data): Likewise.
3889 * p-lang.c (pascal_language_data): Likewise.
3890 * rust-lang.c (rust_language_data): Likewise.
3891 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3892 and update local variable to a bool.
3893 * valops.c (value_cast): Update call to c_style_arrays_p.
3894 (value_array): Likewise.
3895 * value.c (coerce_array): Likewise.
3896
85967615
AB
38972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3898
3899 * ada-lang.c (ada_language_data): Remove la_language initializer.
3900 * c-lang.c (c_language_data): Likewise.
3901 (cplus_language_data): Likewise.
3902 (asm_language_data): Likewise.
3903 (minimal_language_data): Likewise.
3904 * d-lang.c (d_language_data): Likewise.
3905 * f-lang.c (f_language_data): Likewise.
3906 * go-lang.c (go_language_data): Likewise.
3907 * language.c (unknown_language_data): Likewise.
3908 (auto_language_data): Likewise.
3909 * language.h (language_data): Remove la_language field.
3910 (language_defn::language_defn): Initialise la_language field.
3911 (language_defn::la_language): New member variable.
3912 * m2-lang.c (m2_language_data): Remove la_language field.
3913 * objc-lang.c (objc_language_data): Likewise.
3914 * opencl-lang.c (opencl_language_data): Likewise.
3915 * p-lang.c (pascal_language_data): Likewise.
3916 * rust-lang.c (rust_language_data): Likewise.
3917
e171d6f1
AB
39182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3919
3920 * ada-lang.c (ada_extensions): Delete, moved into
3921 ada_language::filename_extensions.
3922 (ada_language_data): Remove la_filename_extensions initializer.
3923 (ada_language::filename_extensions): New member function.
3924 * c-lang.c (c_extensions): Delete, moved into
3925 c_language::filename_extensions.
3926 (c_language_data): Remove la_filename_extensions initializer.
3927 (c_language::filename_extensions): New member function.
3928 (cplus_extensions): Delete, moved into
3929 cplus_language::filename_extensions.
3930 (cplus_language_data): Remove la_filename_extensions initializer.
3931 (cplus_language::filename_extensions): New member function.
3932 (asm_extensions): Delete, moved into
3933 asm_language::filename_extensions.
3934 (asm_language_data): Remove la_filename_extensions initializer.
3935 (asm_language::filename_extensions): New member function.
3936 (minimal_language_data): Remove la_filename_extensions
3937 initializer.
3938 * d-lang.c (d_extensions): Delete, moved into
3939 d_language::filename_extensions.
3940 (d_language_data): Remove la_filename_extensions initializer.
3941 (d_language::filename_extensions): New member function.
3942 * f-lang.c (f_extensions): Delete, moved into
3943 f_language::filename_extensions.
3944 (f_language_data): Remove la_filename_extensions initializer.
3945 (f_language::filename_extensions): New member function.
3946 * go-lang.c (go_language_data): Remove la_filename_extensions
3947 initializer.
3948 * language.c (add_set_language_command): Update now that
3949 filename_extensions returns a vector.
3950 (unknown_language_data): Remove la_filename_extensions
3951 initializer.
3952 (auto_language_data): Likewise.
3953 * language.h (language_data): Remove la_filename_extensions field.
3954 (language_defn::filename_extensions): New member function.
3955 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3956 initializer.
3957 * objc-lang.c (objc_extensions): Delete, moved into
3958 objc_language::filename_extensions.
3959 (objc_language_data): Remove la_filename_extensions initializer.
3960 (objc_language::filename_extensions): New member function.
3961 * opencl-lang.c (opencl_language_data): Remove
3962 la_filename_extensions initializer.
3963 * p-lang.c (pascal_extensions): Delete, moved into
3964 pascal_language::filename_extensions.
3965 (pascal_language_data): Remove la_filename_extensions initializer.
3966 (pascal_language::filename_extensions): New member function.
3967 * rust-lang.c (rust_extensions): Delete, moved into
3968 rust_language::filename_extensions.
3969 (rust_language_data): Remove la_filename_extensions initializer.
3970 (rust_language::filename_extensions): New member function.
3971 * symfile.c (add_filename_language): Add new assert.
3972
6f7664a9
AB
39732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * ada-lang.c (ada_language_data): Remove la_name and
3976 la_natural_name initializers.
3977 (ada_language::name): New member function.
3978 (ada_language::natural_name): New member function.
3979 * c-lang.c (c_language_data): Remove la_name and
3980 la_natural_name initializers.
3981 (c_language::name): New member function.
3982 (c_language::natural_name): New member function.
3983 (cplus_language_data): Remove la_name and
3984 la_natural_name initializers.
3985 (cplus_language::name): New member function.
3986 (cplus_language::natural_name): New member function.
3987 (asm_language_data): Remove la_name and
3988 la_natural_name initializers.
3989 (asm_language::name): New member function.
3990 (asm_language::natural_name): New member function.
3991 (minimal_language_data): Remove la_name and
3992 la_natural_name initializers.
3993 (minimal_language::name): New member function.
3994 (minimal_language::natural_name): New member function.
3995 * compile/compile.c (compile_to_object): Update call to
3996 lanugage_defn::name.
3997 * d-lang.c (d_language_data): Remove la_name and
3998 la_natural_name initializers.
3999 (d_language::name): New member function.
4000 (d_language::natural_name): New member function.
4001 * expprint.c (print_subexp_standard): Update call to
4002 language_defn::name.
4003 (dump_raw_expression): Likewise
4004 (dump_prefix_expression): Likewise.
4005 * f-lang.c (f_language_data): Remove la_name and
4006 la_natural_name initializers.
4007 (f_language::name): New member function.
4008 (f_language::natural_name): New member function.
4009 * go-lang.c (go_language_data): Remove la_name and
4010 la_natural_name initializers.
4011 (go_language::name): New member function.
4012 (go_language::natural_name): New member function.
4013 * language.c (show_language_command): Update call to
4014 language_defn::name.
4015 (set_language_command): Likewise.
4016 (language_enum): Likewise.
4017 (language_str): Likewise.
4018 (add_set_language_command): Likewise, use
4019 language_defn::natural_name in the doc string.
4020 (unknown_language_data): Remove la_name and
4021 la_natural_name initializers.
4022 (unknown_language::name): New member function.
4023 (unknown_language::natural_name): New member function.
4024 (auto_language_data): Remove la_name and
4025 la_natural_name initializers.
4026 (auto_language::name): New member function.
4027 (auto_language::natural_name): New member function.
4028 (language_lookup_primitive_type_as_symbol): Update call to
4029 language_defn::name.
4030 * language.h (language_data): Remove la_name and la_natural_name
4031 member variables.
4032 (language_defn::name): New member function.
4033 (language_defn::natural_name): New member function.
4034 * m2-lang.c (m2_language_data): Remove la_name and
4035 la_natural_name initializers.
4036 (m2_language::name): New member function.
4037 (m2_language::natural_name): New member function.
4038 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4039 language_defn::natural_name.
4040 * objc-lang.c (objc_language_data): Remove la_name and
4041 la_natural_name initializers.
4042 (objc_language::name): New member function.
4043 (objc_language::natural_name): New member function.
4044 * opencl-lang.c (opencl_language_data): Remove la_name and
4045 la_natural_name initializers.
4046 (opencl_language::name): New member function.
4047 (opencl_language::natural_name): New member function.
4048 * p-lang.c (pascal_language_data): Remove la_name and
4049 la_natural_name initializers.
4050 (pascal_language::name): New member function.
4051 (pascal_language::natural_name): New member function.
4052 * rust-lang.c (rust_language_data): Remove la_name and
4053 la_natural_name initializers.
4054 (rust_language::name): New member function.
4055 (rust_language::natural_name): New member function.
4056 * symtab.c (lookup_language_this): Update call to
4057 language_defn::name.
4058
5bae7c4e
AB
40592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4060
4061 * ada-lang.c (ada_language_data): Remove la_name_of_this
4062 initializer.
4063 * ax-gdb.c (gen_expr): Update call to name_of_this.
4064 * c-exp.y (classify_name): Likewise.
4065 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4066 (cplus_language_data): Likewise.
4067 (cplus_language::name_of_this): New member function.
4068 (asm_language_data): Remove la_name_of_this initializer.
4069 (minimal_language_data): Likewise.
4070 * d-lang.c (d_language_data): Likewise.
4071 (d_language::name_of_this): New member function.
4072 * expprint.c (print_subexp_standard): Update call to name_of_this.
4073 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4074 * go-lang.c (go_language_data): Likewise.
4075 * language.c (unknown_language_data): Likewise.
4076 (unknown_language::name_of_this): New member function.
4077 (auto_language_data): Remove la_name_of_this initializer.
4078 (auto_language::name_of_this): New member function.
4079 * language.h (language_data): Delete la_name_of_this member
4080 variable.
4081 (language_defn::name_of_this): New member function.
4082 * m2-lang.c (m2_language_data): Remove la_name_of_this
4083 initializer.
4084 * objc-lang.c (objc_language_data): Likewise.
4085 (objc_language::name_of_this): New member function.
4086 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4087 initializer.
4088 * p-lang.c (pascal_language_data): Likewise.
4089 (pascal_language::name_of_this): New member function.
4090 * rust-lang.c (rust_language_data): Remove la_name_of_this
4091 initializer.
4092 * symtab.c (lookup_language_this): Update call to name_of_this.
4093 (lookup_symbol_aux): Likewise.
4094 * valops.c (value_of_this): Likewise.
4095
22e3f3ed
AB
40962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4097
4098 * ada-lang.c (ada_language_data): Remove
4099 la_struct_too_deep_ellipsis initializer.
4100 (ada_language::struct_too_deep_ellipsis): New member function.
4101 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4102 initializer.
4103 (cplus_language_data): Likewise.
4104 (asm_language_data): Likewise.
4105 (minimal_language_data): Likewise.
4106 * cp-valprint.c (cp_print_value): Update call to
4107 struct_too_deep_ellipsis.
4108 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4109 initializer.
4110 * f-lang.c (f_language_data): Likewise.
4111 (f_language::struct_too_deep_ellipsis): New member function.
4112 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4113 initializer.
4114 * language.c (unknown_language_data): Likewise.
4115 (auto_language_data): Likewise.
4116 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4117 member variable.
4118 (language_defn::struct_too_deep_ellipsis): New member function.
4119 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4120 initializer.Q
4121 * objc-lang.c (objc_language_data): Likewise.
4122 * opencl-lang.c (opencl_language_data): Likewise.
4123 * p-lang.c (pascal_language_data): Likewise.
4124 * rust-lang.c (rust_language_data): Likewise.
4125 * valprint.c (val_print_check_max_depth): Update call to
4126 struct_too_deep_ellipsis.
4127
ed29e1c7
FW
41282020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4129
4130 * MAINTAINERS (Write After Approval): Add myself.
4131
12d8f940
TT
41322020-09-15 Tom Tromey <tom@tromey.com>
4133
4134 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4135 Remove.
4136
6b5a7bc7
TT
41372020-09-15 Tom Tromey <tom@tromey.com>
4138
4139 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4140 and TYPE_CODE_METHODPTR cases.
4141 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4142 (c_value_print_inner): Update.
4143 * valprint.c (generic_value_print_memberptr): New function, from
4144 c_value_print_memberptr.
4145 (generic_value_print): Use it. Call cplus_print_method_ptr.
4146
47f0e2ff
TT
41472020-09-15 Tom Tromey <tromey@adacore.com>
4148
4149 * python/python-internal.h (PyInt_FromLong): Remove define.
4150 * python/py-value.c (convert_value_from_python): Use
4151 gdb_py_object_from_longest.
4152 * python/py-type.c (typy_get_code): Use
4153 gdb_py_object_from_longest.
4154 * python/py-symtab.c (salpy_get_line): Use
4155 gdb_py_object_from_longest.
4156 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4157 gdb_py_object_from_longest.
4158 * python/py-record.c (recpy_gap_reason_code): Use
4159 gdb_py_object_from_longest.
4160 * python/py-record-btrace.c (recpy_bt_insn_size)
4161 (recpy_bt_func_level, btpy_list_count): Use
4162 gdb_py_object_from_longest.
4163 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4164 gdb_py_object_from_longest. Fix error handling.
4165 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4166 gdb_py_object_from_longest.
4167 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4168 gdb_py_object_from_longest.
4169 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4170 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4171 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4172
512116ce
TT
41732020-09-15 Tom Tromey <tromey@adacore.com>
4174
4175 * python/python.c (gdbpy_parameter_value): Use
4176 gdb_py_object_from_ulongest.
4177
4ab1029c
TT
41782020-09-15 Tom Tromey <tromey@adacore.com>
4179
4180 * python/py-infevents.c (create_register_changed_event_object):
4181 Use gdb_py_object_from_longest.
4182 * python/py-exitedevent.c (create_exited_event_object): Use
4183 gdb_py_object_from_longest.
4184
062534d4
TT
41852020-09-15 Tom Tromey <tromey@adacore.com>
4186
4187 * python/python.c (gdbpy_parameter_value): Use
4188 gdb_py_object_from_longest.
4189 * python/py-type.c (convert_field, typy_range): Use
4190 gdb_py_object_from_longest.
4191 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4192 gdb_py_object_from_longest.
4193 * python/py-lazy-string.c (stpy_get_length): Use
4194 gdb_py_object_from_longest.
4195 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4196 gdb_py_object_from_longest.
4197 * python/py-infevents.c (create_memory_changed_event_object): Use
4198 gdb_py_object_from_longest.
4199 * python/py-inferior.c (infpy_get_num): Use
4200 gdb_py_object_from_longest.
4201 (infpy_get_pid): Likewise.
4202
d1cab987
TT
42032020-09-15 Tom Tromey <tromey@adacore.com>
4204
4205 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4206 defines.
4207 * python/py-value.c (valpy_long): Use
4208 gdb_py_object_from_ulongest.
4209 * python/py-symtab.c (salpy_get_pc): Use
4210 gdb_py_object_from_ulongest.
4211 (salpy_get_last): Likewise.
4212 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4213 gdb_py_object_from_ulongest.
4214 * python/py-lazy-string.c (stpy_get_address): Use
4215 gdb_py_object_from_ulongest.
4216 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4217 * python/py-arch.c (archpy_disassemble): Use
4218 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4219 error handling.
4220
4bde49dc
TT
42212020-09-15 Tom Tromey <tromey@adacore.com>
4222
4223 * python/python-internal.h (gdb_py_long_from_longest): Remove
4224 defines.
4225 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4226 * python/py-type.c (convert_field, typy_get_sizeof): Use
4227 gdb_py_object_from_longest.
4228 * python/py-record-btrace.c (btpy_list_index): Use
4229 gdb_py_object_from_longest.
4230
37431074
TT
42312020-09-15 Tom Tromey <tromey@adacore.com>
4232
4233 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4234 * python/py-record.c (recpy_element_number): Use
4235 gdb_py_object_from_longest.
4236 (recpy_gap_number): Likewise.
4237
cbe25684
TT
42382020-09-15 Tom Tromey <tromey@adacore.com>
4239
4240 * top.c (ui::ui): Update.
4241 (highest_ui_num): Remove.
4242 * top.h (struct ui) <num>: Remove.
4243
db92ac45
TT
42442020-09-15 Tom Tromey <tromey@adacore.com>
4245
4246 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4247 * ui-style.c (ansi_regex_text): Now array.
4248 * rust-exp.y (number_regex_text): Now array.
4249 * linespec.c (linespec_quote_characters): Now array.
4250 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4251 Now arrays.
4252
d2b31b67
SM
42532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4254
4255 * debuginfod-support.c (debuginfod_client_deleter): New.
4256 (debuginfod_client_up): New.
4257 (debuginfod_init): Return debuginfod_client_up.
4258 (debuginfod_source_query): Adjust.
4259 (debuginfod_debuginfo_query): Adjust.
4260
3246bd8e
SM
42612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4262
4263 * debuginfod-support.c (debuginfod_source_query): Use
4264 make_unique_xstrdup.
4265
10242f36
SM
42662020-09-14 Simon Marchi <simon.marchi@efficios.com>
4267
4268 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4269 with `type::instance_flags`.
4270
e1044e6a
MM
42712020-09-14 Michael Mullin <masmullin@gmail.com>
4272
4273 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4274 Remove baton parameter.
4275
04902b09
PA
42762020-09-14 Pedro Alves <pedro@palves.net>
4277
4278 * Makefile.in (SELFTESTS_SRCS): Add
4279 unittests/enum-flags-selftests.c.
4280 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4281 btrace_function_flags instead of enum btrace_function_flag.
4282 * compile/compile-c-types.c (convert_qualified): Use
4283 enum_flags::raw.
4284 * compile/compile-cplus-symbols.c (convert_one_symbol)
4285 (convert_symbol_bmsym):
4286 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4287 (compile_cplus_convert_struct_or_union_methods)
4288 (compile_cplus_instance::convert_qualified_base):
4289 * go-exp.y (parse_string_or_char): Add cast to int.
4290 * unittests/enum-flags-selftests.c: New file.
4291 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4292 type to btrace_thread_flags from btrace_thread_flag.
4293 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4294 local's type to btrace_thread_flags from btrace_thread_flag. Add
4295 cast in DEBUG call.
4296
69896a2c
PA
42972020-09-14 Pedro Alves <pedro@palves.net>
4298
4299 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4300 * gdbtypes.c (address_space_name_to_int): Rename to ...
4301 (address_space_name_to_type_instance_flags): ... this.
4302 (address_space_int_to_name): Rename to ...
4303 (address_space_type_instance_flags_to_name): ... this.
4304 * gdbtypes.h (address_space_name_to_int): Rename to ...
4305 (address_space_name_to_type_instance_flags): ... this.
4306 (address_space_int_to_name): Rename to ...
4307 (address_space_type_instance_flags_to_name): ... this.
4308 * type-stack.c (type_stack::insert): Adjust to rename.
4309 * type-stack.h (type_stack::insert): Likewise.
4310
314ad88d
PA
43112020-09-14 Pedro Alves <pedro@palves.net>
4312 Andrew Burgess <andrew.burgess@embecosm.com>
4313
4314 * avr-tdep.c (avr_address_class_type_flags): Return
4315 type_instance_flags.
4316 (avr_address_class_type_flags_to_name): Take a
4317 type_instance_flags.
4318 (avr_address_class_name_to_type_flags): Return bool and take a
4319 type_instance_flags.
4320 * d-lang.c (build_d_types): Use type::set_instance_flags.
4321 * ft32-tdep.c (ft32_address_class_type_flags): Return
4322 type_instance_flags.
4323 (ft32_address_class_type_flags_to_name): Take a
4324 type_instance_flags.
4325 (ft32_address_class_name_to_type_flags): Return bool and take a
4326 type_instance_flags.
4327 (ft32_gdbarch_init): Use type::set_instance_flags.
4328 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4329 * gdbarch.h, gdbarch.c: Regenerate.
4330 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4331 (address_class_name_to_type_flags): Use type_instance_flags and
4332 bool.
4333 * gdbtypes.c (address_space_name_to_int)
4334 (address_space_int_to_name, make_qualified_type): Use
4335 type_instance_flags.
4336 (make_qualified_type): Use type_instance_flags and
4337 type::set_instance_flags.
4338 (make_type_with_address_space, make_cv_type, make_vector_type)
4339 (check_typedef): Use type_instance_flags.
4340 (recursive_dump_type): Cast type_instance_flags to unsigned for
4341 printing.
4342 (copy_type_recursive): Use type::set_instance_flags.
4343 (gdbtypes_post_init): Use type::set_instance_flags.
4344 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4345 <m_instance_flags>: ... this.
4346 <instance_flags, set_instance_flags>: New methods.
4347 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4348 (SET_TYPE_INSTANCE_FLAGS): New.
4349 (address_space_name_to_int, address_space_int_to_name)
4350 (make_type_with_address_space): Pass flags using
4351 type_instance_flags instead of int.
4352 * stabsread.c (cleanup_undefined_types_noname): Use
4353 type::set_instance_flags.
4354 * s390-tdep.c (s390_address_class_type_flags): Return
4355 type_instance_flags.
4356 (s390_address_class_type_flags_to_name): Take a
4357 type_instance_flags.
4358 (s390_address_class_name_to_type_flags): Return bool and take a
4359 type_instance_flags.
4360 * type-stack.c (type_stack::follow_types): Use
4361 type_instance_flags.
4362 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4363
27087b7f
TT
43642020-09-14 Tom Tromey <tromey@adacore.com>
4365
4366 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4367 * x86-tdep.c (x86_is_thunk_register_name)
4368 (x86_in_indirect_branch_thunk): Update.
4369 * sparc64-tdep.c (sparc64_fpu_register_names)
4370 (sparc64_cp0_register_names, sparc64_register_names)
4371 (sparc64_pseudo_register_names): Now const.
4372 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4373 cp0_registers_num>: Now const.
4374 * sparc-tdep.c (sparc_core_register_names)
4375 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4376 (sparc32_pseudo_register_names): Now const.
4377 (validate_tdesc_registers): Update.
4378 * rust-lang.c (rust_extensions): Now const.
4379 * p-lang.c (p_extensions): Now const.
4380 * objc-lang.c (objc_extensions): Now const.
4381 * nto-tdep.c (nto_thread_state_str): Now const.
4382 * moxie-tdep.c (moxie_register_names): Now const.
4383 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4384 Now const.
4385 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4386 (mips_linux_reg_names): Now const.
4387 (mips_gdbarch_init): Update.
4388 * microblaze-tdep.c (microblaze_register_names): Now const.
4389 * m68k-tdep.c (m68k_register_names): Now const.
4390 * m32r-tdep.c (m32r_register_names): Now const.
4391 * ia64-tdep.c (ia64_register_names): Now const.
4392 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4393 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4394 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4395 ymm_avx512_register_names, pkeys_register_names>: Now const.
4396 * i386-tdep.c (i386_register_names, i386_zmm_names)
4397 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4398 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4399 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4400 * f-lang.c (f_extensions): Now const.
4401 * d-lang.c (d_extensions): Now const.
4402 * csky-tdep.c (csky_register_names): Now const.
4403 * charset.c (default_charset_names, charset_enum): Now const.
4404 (_initialize_charset): Update.
4405 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4406 const.
4407 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4408 (bsd_uthread_solib_loaded): Update.
4409 (bsd_uthread_state): Now const.
4410 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4411 (amd64_ymm_avx512_names, amd64_ymmh_names)
4412 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4413 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4414 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4415 (amd64_dword_names): Now const.
4416 * agent.c (can_use_agent_enum): Now const.
4417 * ada-tasks.c (task_states, long_task_states): Now const.
4418 * ada-lang.c (known_runtime_file_name_patterns)
4419 (known_auxiliary_function_name_patterns, attribute_names)
4420 (standard_exc, ada_extensions): Now const.
4421
89806626
SM
44222020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4423
4424 * bcache.h (struct bcache) <bcache>: Remove constructor.
4425 <m_hash_function, m_compare_function>: Remove.
4426 <~bcache>: Make virtual.
4427 <compare>: Remove static method, introduce virtual method.
4428 <default_hash>: Remove.
4429 <hash>: New virtual method.
4430 * bcache.c (bcache::expand_hash_table): Update.
4431 (bcache::insert): Update.
4432 (bcache::hash): New.
4433 (bcache::compare): Update comment and parameter names.
4434 * gdbtypes.c (types_deeply_equal): Update.
4435 * psymtab.h (struct psymbol_bcache): New struct.
4436 (class psymtab_storage) <psymtab_storage>: Make default.
4437 <psymbol_cache>: Change type to psymbol_bcache.
4438 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4439 (psymbol_hash): Change to...
4440 (psymbol_bcache::hash): ... this.
4441 (psymbol_compare): Change to...
4442 (psymbol_bcache::compare): ... this.
4443
677c92fe
SM
44442020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4445
4446 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4447 checking for initial lwp.
4448
3eba3a01
TT
44492020-09-14 Tom Tromey <tromey@adacore.com>
4450
4451 * m68k-tdep.c (m68k_extract_return_value): Use
4452 pointer_result_regnum.
4453 (m68k_store_return_value): Likewise.
4454 (m68k_reg_struct_return_p): Handle vectors and arrays.
4455 (m68k_return_value): Handle arrays.
4456 (m68k_svr4_return_value): Fix single-element aggregate handling.
4457 Handle long double. Adjust for embedded ABI.
4458 (m68k_svr4_init_abi): Set pointer_result_regnum.
4459 (m68k_embedded_init_abi): New function.
4460 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4461 (m68k_osabi_sniffer): New function.
4462 (_initialize_m68k_tdep): Register osabi sniffer.
4463 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4464 member.
4465
33f4dd48
SM
44662020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4467
4468 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4469 with gdb::unique_xmalloc_ptr<char>.
4470
8400a90d
SM
44712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4472
4473 * xml-support.h (xml_fetch_another): Change type to be a
4474 function_view.
4475 (xml_process_xincludes): Remove baton parameter.
4476 (xml_fetch_content_from_file): Change baton parameter to
4477 dirname.
4478 * xml-support.c (struct xinclude_parsing_data)
4479 <xinclude_parsing_data>: Remove baton parameter.
4480 <fetcher_baton>: Remove.
4481 (xinclude_start_include): Adjust.
4482 (xml_process_xincludes): Adjust.
4483 (xml_fetch_content_from_file): Replace baton parameter with
4484 dirname.
4485 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4486 (xml_init_syscalls_info): Use a lambda.
4487 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4488 (file_read_description_xml): Use a lambda.
4489 (fetch_available_features_from_target): Change baton parameter
4490 to target_ops.
4491 (target_read_description_xml): Use a lambda.
4492 (target_fetch_description_xml): Use a lambda.
4493 (string_read_description_xml): Update.
4494
04f5bab2
SM
44952020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4496
4497 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4498 uses with type::endianity_is_not_default.
4499
db558e34
SM
45002020-09-14 Simon Marchi <simon.marchi@efficios.com>
4501
4502 * gdbtypes.h (struct type) <endianity_is_not_default,
4503 set_endianity_is_not_default>: New methods.
4504 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4505 type::endianity_is_not_default, change all write call sites to
4506 use type::set_endianity_is_not_default.
4507
22c4c60c
SM
45082020-09-14 Simon Marchi <simon.marchi@efficios.com>
4509
4510 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4511 uses with type::is_fixed_instance.
4512
9cdd0d12
SM
45132020-09-14 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * gdbtypes.h (struct type) <is_fixed_instance,
4516 set_is_fixed_instance>: New methods.
4517 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4518 write call sites to use type::set_is_fixed_instance.
4519
0becda7a
SM
45202020-09-14 Simon Marchi <simon.marchi@efficios.com>
4521
4522 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4523 uses with type::is_gnu_ifunc.
4524
03cc7249
SM
45252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4526
4527 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4528 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4529 use type::set_is_gnu_ifunc.
4530
3f46044c
SM
45312020-09-14 Simon Marchi <simon.marchi@efficios.com>
4532
4533 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4534 uses with type::stub_is_supported.
4535
9baccff6
SM
45362020-09-14 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4539 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4540 use type::set_stub_is_supported.
4541
bd63c870
SM
45422020-09-14 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4545 uses with type::is_vector.
4546
2062087b
SM
45472020-09-14 Simon Marchi <simon.marchi@efficios.com>
4548
4549 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4550 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4551 use type::set_is_vector.
4552
a409645d
SM
45532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4554
4555 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4556 uses with type::has_varargs.
4557
1d6286ed
SM
45582020-09-14 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4561 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4562 use type::set_has_varargs.
4563
7f9f399b
SM
45642020-09-14 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4567 uses with type::is_prototyped.
4568
27e69b7a
SM
45692020-09-14 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4572 New methods.
4573 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4574 call sites to use type::set_is_prototyped.
4575
d2183968
SM
45762020-09-14 Simon Marchi <simon.marchi@efficios.com>
4577
4578 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4579 uses with type::target_is_stub.
4580
8f53807e
SM
45812020-09-14 Simon Marchi <simon.marchi@efficios.com>
4582
4583 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4584 New methods.
4585 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4586 sites to use type::set_target_is_stub.
4587
e46d3488
SM
45882020-09-14 Simon Marchi <simon.marchi@efficios.com>
4589
4590 * gdbtypes.h (TYPE_STUB): Remove, replace all
4591 uses with type::is_stub.
4592
b4b73759
SM
45932020-09-14 Simon Marchi <simon.marchi@efficios.com>
4594
4595 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4596 (TYPE_STUB): Use type::is_stub, change all write call sites to
4597 use type::set_is_stub.
4598
20ce4123
SM
45992020-09-14 Simon Marchi <simon.marchi@efficios.com>
4600
4601 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4602 type::has_no_signedness.
4603
15152a54
SM
46042020-09-14 Simon Marchi <simon.marchi@efficios.com>
4605
4606 * gdbtypes.h (struct type) <has_no_signedness,
4607 set_has_no_signedness>: New methods.
4608 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4609 call sites to use type::set_has_no_signedness.
4610
c6d940a9
SM
46112020-09-14 Simon Marchi <simon.marchi@efficios.com>
4612
4613 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4614 type::is_unsigned.
4615
653223d3
SM
46162020-09-14 Simon Marchi <simon.marchi@efficios.com>
4617
4618 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4619 methods.
4620 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4621 sites to use type::set_is_unsigned.
4622
55ea94da 46232020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4624 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4625
e851246a
SM
4626 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4627 pointer and stack frame offset when unwinding.
55ea94da 4628
6791b117
PA
46292020-09-13 Pedro Alves <pedro@palves.net>
4630
4631 * NEWS: Document "-break-insert --qualified".
4632 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4633
77f2120b
PA
46342020-09-13 Pedro Alves <pedro@palves.net>
4635
4636 * linespec.c (classify_mtype, compare_msyms): Delete.
4637 (search_minsyms_for_name): Remove classification logic. Instead
4638 filter out trampoline symbols if we also found an external
4639 function of the same name.
4640
ed6a896c
JB
46412020-09-13 Joel Brobecker <brobecker@adacore.com>
4642
4643 * NEWS: Create a new section for the next release branch.
4644 Rename the section of the current branch, now that it has
4645 been cut.
4646
32aea73e
JB
46472020-09-13 Joel Brobecker <brobecker@adacore.com>
4648
4649 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4650 * version.in: Bump version to 11.0.50.DATE-git.
4651
8087c3fa
JB
46522020-09-12 Joel Brobecker <brobecker@adacore.com>
4653
4654 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4655
2a67f09d
FW
46562020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4657 Felix Willgerodt <Felix.Willgerodt@intel.com>
4658
4659 * gdbarch.sh: Added bfloat16 type.
4660 * gdbarch.c: Regenerated.
4661 * gdbarch.h: Regenerated.
4662 * gdbtypes.c (floatformats_bfloat16): New struct.
4663 (gdbtypes_post_init): Add builtin_bfloat16.
4664 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4665 (floatformats_bfloat16): New struct.
4666 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4667 (i386_ymm_type): Add field "v16_bfloat16"
4668 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4669 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4670 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4671 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4672 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4673 * features/i386/64bit-avx512.c: Regenerated.
4674 * features/i386/64bit-sse.xml: Add bfloat16 type.
4675 * features/i386/64bit-sse.c: Regenerated.
4676
1347d111
FW
46772020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4678
4679 * i386-tdep.c (i386_zmm_type): Fix field names.
4680 (i386_ymm_type): Fix field names.
4681
7a4e8e7d
TBA
46822020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4683
4684 * breakpoint.c: Fix typo in the help message of the
4685 "set breakpoint condition-evaluation" command.
4686
cf4ac4be
KR
46872020-09-10 Kamil Rytarowski <n54@gmx.com>
4688
4689 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4690 * (nbsd_nat_target::pid_to_exec_file)
4691 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4692 (nbsd_nat_target::post_startup_inferior)
4693 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4694 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4695 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4696 * (nbsd_thread_lister): Remove.
4697
f404573e
KR
46982020-09-10 Kamil Rytarowski <n54@gmx.com>
4699
4700 * fork-inferior.c (startup_inferior): Avoid double free.
4701
1ccb2c17
KR
47022020-09-10 Kamil Rytarowski <n54@gmx.com>
4703
4704 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4705 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4706
feedfcc7
KR
47072020-09-10 Kamil Rytarowski <n54@gmx.com>
4708
4709 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4710 * netbsd-nat.c: Include <sys/ptrace.h>.
4711 * (netbsd_nat::enable_proc_events): Add.
4712
c489f8c6
KR
47132020-09-10 Kamil Rytarowski <n54@gmx.com>
4714
4715 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4716 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4717 (netbsd_nat::for_each_thread): Add.
4718 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4719 "gdbsupport/common-debug.h".
4720 * (netbsd_nat::netbsd_thread_lister)
4721 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4722 (netbsd_nat::for_each_thread): Add.
4723
330662f6
KR
47242020-09-10 Kamil Rytarowski <n54@gmx.com>
4725
4726 * netbsd-nat.h: Include <unistd.h>.
4727 * (netbsd_nat::pid_to_exec_file): Add.
4728 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4729 * (netbsd_nat::pid_to_exec_file) Add.
4730
70b67307
KR
47312020-09-10 Kamil Rytarowski <n54@gmx.com>
4732
4733 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4734
99cf6da6
KR
47352020-09-10 Kamil Rytarowski <n54@gmx.com>
4736
4737 * netbsd-nat.h: New file.
4738 * netbsd-nat.c: Likewise.
4739
1b788fb6
TT
47402020-09-09 Tom Tromey <tromey@adacore.com>
4741
4742 * ada-lang.c (remove_extra_symbols): Do not increment when
4743 removing an element
4744
03b0a45f
TT
47452020-09-08 Tom Tromey <tromey@adacore.com>
4746
4747 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4748
3cae4447
TT
47492020-09-08 Tom Tromey <tromey@adacore.com>
4750
4751 PR win32/25302:
4752 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4753 (gdb_bfd_init_data): New function.
4754 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4755
7f08fd51
TBA
47562020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4757
4758 * infrun.c (fetch_inferior_event): Use
4759 `switch_to_target_no_thread` to switch the target.
4760
3e6ff933
TT
47612020-09-06 Tom Tromey <tom@tromey.com>
4762
4763 * symfile.h (dwarf2_free_objfile): Don't declare.
4764
e56798df
AKS
47652020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4766
4767 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4768 to match 16 byte real/complex type generated by Flang compiler.
4769
8f5c6526
TV
47702020-09-03 Tom de Vries <tdevries@suse.de>
4771
4772 PR breakpoint/26546
4773 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4774 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4775
c5065df0
SM
47762020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4777
4778 * maint.c (index_digits): New function.
4779 (struct maint_print_section_data): Remove.
4780 (print_bfd_section_info): Remove print_data parameter, add arg
4781 and index_digits.
4782 (print_objfile_section_info): Likewise.
4783 (print_bfd_section_info_maybe_relocated): Likewise (plus
4784 objfile).
4785 (maintenance_info_sections): Adjust calls.
4786
02c6f3f1
TT
47872020-09-02 Tom Tromey <tromey@adacore.com>
4788
4789 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4790 for null pointers.
4791 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4792
ef5e5b0b
SM
47932020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4794
4795 * bcache.h (struct bcache) <insert>: Change type of `added` to
4796 pointer to bool.
4797 * bcache.c (bcache::insert): Likewise.
4798 * gdbtypes.c (check_types_worklist): Adjust.
4799 * psymtab.c (add_psymbol_to_bcache): Adjust.
4800
973695d6
KB
48012020-08-31 Kevin Buettner <kevinb@redhat.com>
4802
4803 * corelow.c (unordered_set): Include.
4804 (class core_target): Add field 'm_core_unavailable_mappings'.
4805 (core_target::build_file_mappings): Print only one warning
4806 per inaccessible file. Add unavailable/broken mappings
4807 to m_core_unavailable_mappings.
4808 (core_target::xfer_partial): Call...
4809 (core_target::xfer_memory_via_mappings): New method.
4810
264fc0e2
SM
48112020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4812
4813 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4814 type to bool.
4815
2de01bdb
SM
48162020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4817
4818 * dwarf2/read.c (struct field_info): Fix indentation.
4819
f3bd50f1
SM
48202020-08-31 Simon Marchi <simon.marchi@efficios.com>
4821
4822 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4823 ordering in comment.
4824 * frame.c (frame_id_eq): Fix indentation.
4825
22b9b4b0
SL
48262020-08-31 Scott Linder <scott@scottlinder.com>
4827 Simon Marchi <simon.marchi@efficios.com>
4828
4829 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4830 inline frame ids in outer frame.
4831
84154d16
SM
48322020-08-31 Simon Marchi <simon.marchi@efficios.com>
4833
4834 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4835 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4836 (outer_frame_id): Use FID_STACK_OUTER instead of
4837 FID_STACK_INVALID.
4838 (frame_id_p): Don't check for outer_frame_id.
4839
8efaf6b3
SM
48402020-08-31 Simon Marchi <simon.marchi@efficios.com>
4841
4842 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4843 regnum/frame in value. Call allocate_value_lazy.
4844 * frame.c (frame_unwind_register_value): Use
4845 val_print_not_saved.
4846
fe1fe7ea
SM
48472020-08-31 Simon Marchi <simon.marchi@efficios.com>
4848
4849 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4850
f7c7700d
PA
48512020-08-29 Pedro Alves <pedro@palves.net>
4852
4853 * progspace.c (print_program_space): Use all_inferiors. Switch to
4854 the inferior before calling target_pid_to_str.
4855
e0814aae
TT
48562020-08-28 Tom Tromey <tom@tromey.com>
4857
4858 * xcoffread.c (xcoff_end_psymtab): Update comment.
4859 * dbxread.c (dbx_end_psymtab): Update comment.
4860
626d2320
TV
48612020-08-28 Tom de Vries <tdevries@suse.de>
4862
4863 PR breakpoint/26544
4864 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4865 event_location.
4866 (create_breakpoint): Same.
4867 (base_breakpoint_decode_location): Same.
4868 (bkpt_create_sals_from_location): Same.
4869 (bkpt_decode_location): Same.
4870 (bkpt_probe_create_sals_from_location): Same.
4871 (bkpt_probe_decode_location): Same.
4872 (tracepoint_create_sals_from_location): Same.
4873 (tracepoint_decode_location): Same.
4874 (tracepoint_probe_decode_location): Same.
4875 (strace_marker_create_sals_from_location): Same.
4876 (strace_marker_decode_location): Same.
4877 (create_sals_from_location_default): Same.
4878 (decode_location_default): Same.
4879 * breakpoint.h (struct breakpoint_ops): Same.
4880 (create_breakpoint): Same.
4881 * linespec.h (decode_line_full): Same.
4882 * linespec.c (decode_line_full): Same. Throw error if
4883 result.size () == 0.
4884
df631783
PA
48852020-08-27 Pedro Alves <pedro@palves.net>
4886
4887 PR gdb/26524
4888 * breakpoint.c (until_break_fsm) <location_breakpoint,
4889 caller_breakpoint>: Delete fields.
4890 <breakpoints>: New field.
4891 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4892 two individual breakpoints.
4893 (until_break_fsm::should_stop): Loop over breakpoints in the
4894 breakpoint vector.
4895 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4896 vector.
4897 (until_break_command): Handle location expanding into multiple
4898 sals.
4899
b2b38aa4
PA
49002020-08-27 Pedro Alves <pedro@palves.net>
4901
4902 PR gdb/26523
4903 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4904 bp_until breakpoints user-specified locations. Update intro
4905 comment.
4906
b886559f
SM
49072020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4908
4909 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4910 gdb_bfd_sections): New.
4911 * maint.c (print_bfd_section_info): Change param type to
4912 maint_print_section_data.
4913 (print_objfile_section_info): Likewise.
4914 (print_bfd_section_info_maybe_relocated): Likewise.
4915 (maintenance_info_sections): Use gdb_bfd_sections.
4916
4c6e63bf
SV
49172020-08-25 Shahab Vahedi <shahab@synopsys.com>
4918
4919 * MAINTAINERS: Add ARC target and maintainer.
4920
8d7f0635
AK
49212020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4922
4923 * configure.tgt: ARC support for GNU/Linux.
4924 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4925 * arc-linux-tdep.c: New file.
4926 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4927 * arc-tdep.c (arc_write_pc): Use it.
4928
fdd8731b
SV
49292020-08-25 Shahab Vahedi <shahab@synopsys.com>
4930
4931 * arc-tdep.c (arc_check_for_hardware_loop): New.
4932 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4933
22459524
SV
49342020-08-25 Shahab Vahedi <shahab@synopsys.com>
4935
4936 * arc-tdep.h: Include "gdbarch.h".
4937
995d3a19
SV
49382020-08-25 Shahab Vahedi <shahab@synopsys.com>
4939
4940 * arch/arc.h
4941 (arc_gdbarch_features): New class to stir the selection of target XML.
4942 (arc_create_target_description): Use FEATURES to choose XML target.
4943 (arc_lookup_target_description): Use arc_create_target_description
4944 to create _new_ target descriptions or return the already created
4945 ones if the FEATURES is the same.
4946 * arch/arc.c: Implementation of prototypes described above.
4947 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4948 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4949 * arc-tdep.c (*_feature_name): Make feature names consistent.
4950 (arc_register_feature): A new struct to hold information about
4951 registers of a particular target/feature.
4952 (arc_check_tdesc_feature): Check if XML provides registers in
4953 compliance with ARC_REGISTER_FEATURE structs.
4954 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4955 (determine_*_reg_feature_set): Which feature name to look for.
4956 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4957 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4958 to expected ISA enums to be used in arc_gdbarch_features structs.
4959 * features/Makefile (FEATURE_XMLFILES): Add new files.
4960 * gdb/features/arc/v1-aux.c: New file.
4961 * gdb/features/arc/v1-aux.xml: Likewise.
4962 * gdb/features/arc/v1-core.c: Likewise.
4963 * gdb/features/arc/v1-core.xml: Likewise.
4964 * gdb/features/arc/v2-aux.c: Likewise.
4965 * gdb/features/arc/v2-aux.xml: Likewise.
4966 * gdb/features/arc/v2-core.c: Likewise.
4967 * gdb/features/arc/v2-core.xml: Likewise.
4968 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4969
3945d2d7
GM
49702020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4971 Andrew Burgess <andrew.burgess@embecosm.com>
4972
4973 PR m2/26372
fc5d6901 4974 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4975 an assert. Remove single element array indexing pattern as the
4976 MULTI_SUBSCRIPT support will handle this case too.
4977
2677f2d3
SM
49782020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4979
4980 * value.h (valprint_check_validity): Move declaration from
4981 here...
4982 * valprint.h (valprint_check_validity): ... to here.
4983
c426fddb
SM
49842020-08-24 Simon Marchi <simon.marchi@efficios.com>
4985
4986 * debug.h: New file.
4987 * debug.c (debug_prefixed_vprintf): New function.
4988 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4989 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4990
1eb8556f
SM
49912020-08-24 Simon Marchi <simon.marchi@efficios.com>
4992
4993 * infrun.h (infrun_debug_printf_1): New function declaration.
4994 (infrun_debug_printf): New macro.
4995 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4996 throughout.
4997 (infrun_debug_printf): New function.
4998 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4999 (handle_jit_event): Likewise.
5000
b8fff44e
MW
50012020-08-21 Mark Wielaard <mark@klomp.org>
5002
5003 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5004
d19c3068
SM
50052020-08-22 Simon Marchi <simon.marchi@efficios.com>
5006
5007 * frame.c (enum class frame_id_status): New.
5008 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5009 (fprintf_frame): Update.
5010 (compute_frame_id): Set frame id status to "computing" on entry.
5011 Set it back to "not_computed" on failure and to "computed" on
5012 success.
5013 (get_frame_id): Assert the frame id is not being computed.
5014 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5015 (create_new_frame): Likewise.
5016 (frame_cleanup_after_sniffer): Update assert.
5017
b70e516e
SM
50182020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5019
5020 * regcache.c (pid_ptid_regcache_map): New type.
5021 (target_ptid_regcache_map): Remove.
5022 (target_pid_ptid_regcache_map): New type.
5023 (regcaches): Change type to target_pid_ptid_regcache_map.
5024 (get_thread_arch_aspace_regcache): Update.
5025 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5026 case.
5027 (regcaches_size): Update.
5028 (regcache_count): Update.
5029 (registers_changed_ptid_target_pid_test): New.
5030 (_initialize_regcache): Register new test.
5031
cdd9148a
SM
50322020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5033
5034 * regcache.c (regcache_count): New.
5035 (struct regcache_test_data): New.
5036 (regcache_test_data_up): New.
5037 (populate_regcaches_for_test): New.
5038 (regcaches_test): Remove.
5039 (get_thread_arch_aspace_regcache_test): New.
5040 (registers_changed_ptid_all_test): New.
5041 (registers_changed_ptid_target_test): New.
5042 (registers_changed_ptid_target_ptid_test): New.
5043 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5044 (_initialize_regcache): Register new tests.
5045
dd125343
SM
50462020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5047
5048 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5049 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5050 gdbarch and aspace parameter. Use current inferior's aspace.
5051 Validate regcache's arch value.
5052 (regcaches_test): Update.
5053
3ee93972
SM
50542020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5055
5056 * regcache.c (regcaches_test): Call registers_changed.
5057
33bf4c5c
TBA
50582020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5059
5060 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5061
c2fd7fae
AKS
50622020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5063
5064 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5065 to find the end of prologue for flang compiled binaries.
5066 * arm-tdep.c (arm_skip_prologue): Likewise.
5067 * i386-tdep.c (i386_skip_prologue): Likewise.
5068 * producer.c (producer_is_llvm): New function.
5069 (producer_parsing_tests): Added new tests for clang/flang.
5070 * producer.h (producer_is_llvm): New declaration.
5071
9327494e
SM
50722020-08-18 Simon Marchi <simon.marchi@efficios.com>
5073
5074 * linux-nat.c (linux_nat_debug_printf): New function.
5075 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5076
d138725a
AM
50772020-08-18 Aaron Merey <amerey@redhat.com>
5078
5079 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5080 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5081 (CLIBS): Add DEBUGINFOD_LIBS.
5082
f9b11e6b
ST
50832020-08-17 Sergei Trofimovich <siarheit@google.com>
5084
5085 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5086 'gdbarch_num_regs'.
5087
3ae7ab99
TT
50882020-08-17 Tom Tromey <tromey@adacore.com>
5089
5090 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5091 ada_get_decoded_value returns NULL.
5092
b017825f
TT
50932020-08-17 Tom Tromey <tromey@adacore.com>
5094
5095 * python/py-inferior.c (infpy_search_memory): Use
5096 gdb_py_object_from_ulongest.
5097 * python/py-infevents.c (create_inferior_call_event_object)
5098 (create_memory_changed_event_object): Use
5099 gdb_py_object_from_ulongest.
5100 * python/py-linetable.c (ltpy_entry_get_pc): Use
5101 gdb_py_object_from_ulongest.
5102
7635cf79
SM
51032020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5104
5105 * loc.c (class symbol_needs_eval_context): Fix indentation.
5106
f54be24b
SM
51072020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5108
5109 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5110 bool.
5111
53d5a2a5
TV
51122020-08-17 Tom de Vries <tdevries@suse.de>
5113
5114 PR gdb/26393
5115 * gdbtypes.c (dump_dynamic_prop): New function.
5116 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5117
547ce8f0
TV
51182020-08-15 Tom de Vries <tdevries@suse.de>
5119
5120 PR backtrace/26390
5121 * stack.c (print_frame_args): Temporarily set the selected
5122 frame to FRAME while printing the frame's arguments.
5123
6ea815e7
PFC
51242020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5125
5126 PR breakpoints/26385
5127 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5128 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5129
6e562fa3
PFC
51302020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5131
5132 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5133 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5134 and >= to check return value instead of == -1 and != -1.
5135
d369b608
SM
51362020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5137
5138 * utils.h (class gdb_argv) <as_array_view>: New method.
5139 * utils.c (gdb_argv_as_array_view_test): New.
5140 (_initialize_utils): Register selftest.
5141 * maint.c (maintenance_selftest): Use the new method.
5142
b31488a3
KR
51432020-08-13 Kamil Rytarowski <n54@gmx.com>
5144
5145 * target.h (supports_dumpcore, dumpcore): New
5146 function declarations.
5147 * target.c (supports_dumpcore, dumpcore): New
5148 functions.
5149 * target-delegates.c: Rebuild.
5150 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5151 and target_dumpcore ().
5152
002a3166
AM
51532020-08-13 Aaron Merey <amerey@redhat.com>
5154
5155 * debuginfod-support.c: Replace global variables with user_data.
5156
ece5bc8a
SM
51572020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5158
5159 * maint.c (maintenance_selftest): Split args and pass array_view
5160 to run_tests.
5161
6d8a0a5e
LM
51622020-08-12 Luis Machado <luis.machado@linaro.org>
5163
5164 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5165 type's length.
5166 Use %s and pulongest to print the length.
5167
7cf663a9
PA
51682020-08-12 Pedro Alves <palves@redhat.com>
5169
5170 * NEWS: Move "Multi-target debugging support" item to the
5171 "Changes since GDB 9" section.
5172
27c7b875
PA
51732020-08-12 Pedro Alves <palves@redhat.com>
5174
5175 PR gdb/26336
5176 * progspace.c (program_space::remove_objfile): Invalidate the
5177 frame cache.
5178
1796a2a1
TV
51792020-08-11 Tom de Vries <tdevries@suse.de>
5180
5181 * MAINTAINERS: Mark ms1 as deleted.
5182
f8e3fe0d
LM
51832020-08-10 Luis Machado <luis.machado@linaro.org>
5184
5185 PR gdb/26310
5186
5187 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5188 act accordingly.
5189 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5190 movz/str/stur/stp skipping behavior.
5191
cc308722
LM
51922020-08-10 Luis Machado <luis.machado@linaro.org>
5193
5194 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5195 struct user_sve_header instead of struct sve_context.
5196
041d9819
SM
51972020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5198
5199 * read.h (dwarf2_fetch_die_loc_sect_off,
5200 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5201 `void *` parameter with function_view.
5202 * read.c (dwarf2_fetch_die_loc_sect_off,
5203 dwarf2_fetch_die_loc_cu_off): Likewise.
5204 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5205 (per_cu_dwarf_call): Adjust.
5206 (get_frame_address_in_block_wrapper): Remove.
5207 (indirect_synthetic_pointer): Adjust.
5208 (get_ax_pc): Remove.
5209 (dwarf2_compile_expr_to_ax): Adjust.
5210
38f8aa06
TV
52112020-08-08 Tom de Vries <tdevries@suse.de>
5212
5213 PR build/26344
5214 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5215 constructor.
5216 * regcache.c (get_thread_arch_aspace_regcache): Same.
5217
a52b3ae2
TT
52182020-08-07 Tom Tromey <tromey@adacore.com>
5219
5220 * ravenscar-thread.c
5221 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5222 New method.
5223 (ravenscar_thread_target::wait): Check
5224 runtime_initialized.
5225 (ravenscar_thread_target::prepare_to_store)
5226 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5227 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5228 (ravenscar_thread_target::stopped_by_watchpoint)
5229 (ravenscar_thread_target::stopped_data_address)
5230 (ravenscar_thread_target::core_of_thread): Use
5231 scoped_restore_current_thread and
5232 set_base_thread_from_ravenscar_task.
5233
0e29517d
TT
52342020-08-07 Tom Tromey <tromey@adacore.com>
5235
5236 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5237
592f9bd7
TT
52382020-08-07 Tom Tromey <tromey@adacore.com>
5239
5240 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5241 update_inferior_ptid before update_thread_list.
5242 (temporarily_change_regcache_ptid): New class.
5243 (ravenscar_thread_target::fetch_registers)
5244 (ravenscar_thread_target::store_registers)
5245 (ravenscar_thread_target::prepare_to_store): Use base thread when
5246 forwarding operation.
5247
39e2018a
TT
52482020-08-07 Tom Tromey <tromey@adacore.com>
5249
5250 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5251 "is_pid" case.
5252
2080266b
TT
52532020-08-07 Tom Tromey <tromey@adacore.com>
5254
5255 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5256 New methods.
5257 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5258 first.
5259 (ravenscar_thread_target::add_thread): Rename from
5260 ravenscar_add_thread.
5261 (ravenscar_thread_target::update_thread_list): Use a lambda.
5262 (ravenscar_thread_target::xfer_partial): New method.
5263
78c02f21
TT
52642020-08-07 Tom Tromey <tromey@adacore.com>
5265
5266 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5267 gdb::function_view.
5268 (iterate_over_live_ada_tasks): Change type of argument.
5269 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5270 of argument.
5271
d5d833af
TT
52722020-08-07 Tom Tromey <tromey@adacore.com>
5273
5274 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5275 Remove.
5276 (ravenscar_thread_target::extra_thread_info): Remove.
5277 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5278 defer to target beneath for non-Ravenscar threads.
5279
a8ac85bb
TT
52802020-08-07 Tom Tromey <tromey@adacore.com>
5281
5282 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5283 get_base_thread_from_ravenscar_task>: Now methods.
5284 <m_cpu_map>: New member.
5285 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5286 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5287 (ravenscar_thread_target::task_is_currently_active): Update.
5288 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5289 Now a method.
5290 (ravenscar_thread_target::add_active_thread): Put initial thread
5291 into the m_cpu_map.
5292
550ab58d
TT
52932020-08-07 Tom Tromey <tromey@adacore.com>
5294
5295 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5296 event_ptid.
5297
e9546579
TT
52982020-08-07 Tom Tromey <tromey@adacore.com>
5299
5300 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5301 runtime_initialized.
5302
3d4470e5
TT
53032020-08-07 Tom Tromey <tromey@adacore.com>
5304
5305 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5306 add_active_thread.
5307 (ravenscar_thread_target::add_active_thread): Now public.
5308 (ravenscar_inferior_created): Call add_active_thread after pushing
5309 the target.
5310
888bdb2b
SM
53112020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5312
5313 * regcache.c (ptid_regcache_map): New type.
5314 (target_ptid_regcache_map): New type.
5315 (regcaches): Change type to target_ptid_regcache_map.
5316 (get_thread_arch_aspace_regcache): Update to regcaches' new
5317 type.
5318 (regcache_thread_ptid_changed): Likewise.
5319 (registers_changed_ptid): Likewise.
5320 (regcaches_size): Likewise.
5321 (regcaches_test): Update.
5322 (regcache_thread_ptid_changed): Update.
5323 * regcache.h (regcache_up): New type.
5324 * gdbsupport/ptid.h (hash_ptid): New struct.
5325
b161a60d
SM
53262020-08-07 Simon Marchi <simon.marchi@efficios.com>
5327
5328 * observable.h (thread_ptid_changed): Add parameter
5329 `process_stratum_target *`.
5330 * infrun.c (infrun_thread_ptid_changed): Add parameter
5331 `process_stratum_target *` and use it.
5332 (selftests): New namespace.
5333 (infrun_thread_ptid_changed): New function.
5334 (_initialize_infrun): Register selftest.
5335 * regcache.c (regcache_thread_ptid_changed): Add parameter
5336 `process_stratum_target *` and use it.
5337 (regcache_thread_ptid_changed): New function.
5338 (_initialize_regcache): Register selftest.
5339 * thread.c (thread_change_ptid): Pass target to
5340 thread_ptid_changed observable.
5341
d2854d8d
CT
53422020-08-06 Caroline Tice <cmtice@google.com>
5343
fe4c3d43
SM
5344 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5345 (struct dwp_sections): Update field comments. Add loclists and
5346 rnglists fields.
5347 (struct virtual_v2_dwo_sections): Rename struct to
5348 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5349 size & offset fields for loclists and rnglists.
5350 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5351 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5352 skipping dummy type units.
5353 (create_dwp_hash_table): Update the large comment above the function to
5354 discuss Version 5 DWP files as well, with references. Update all the
5355 version checks in the function to check for version 5 as well. Add new
5356 section at the end to create dwp hash table for version 5.
5357 (create_dwp_v2_section): Rename function to
5358 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5359 Add V5 to error message text.
5360 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5361 into calls to create_dwp_v2_or_v5_section.
5362 (create_dwo_unit_in_dwp_v5): New function.
5363 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5364 check for version2; add else clause to handle version 5.
5365 (open_and_init_dwo_file): Add code to check dwarf version & only call
5366 create_debug_types_hash_table (with sections.types) if version is not 5;
5367 else call create_debug_type_hash_table, with sections.info.
5368 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5369 version 5.
5370 (dwarf2_locate_v5_dwp_sections): New function.
5371 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5372 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5373
159ed7d9
SM
53742020-08-06 Simon Marchi <simon.marchi@efficios.com>
5375
5376 * regcache.h (class regcache): Remove friend
5377 registers_changed_ptid.
5378 <regcache_thread_ptid_changed>: Remove.
5379 <regcaches>: Remove.
5380 * regcache.c (regcache::regcaches): Rename to...
5381 (regcaches): ... this. Make static.
5382 (get_thread_arch_aspace_regcache): Update.
5383 (regcache::regcache_thread_ptid_changed): Rename to...
5384 (regcache_thread_ptid_changed): ... this. Update.
5385 (class regcache_access): Remove.
5386 (regcaches_test): Update.
5387 (_initialize_regcache): Update.
5388 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5389 <forward_list>.
5390
174981ae
SM
53912020-08-06 Simon Marchi <simon.marchi@efficios.com>
5392
5393 * regcache.h (class regcache) <current_regcache>: Rename to...
5394 <regcaches>: ... this. Move doc here.
5395 * regcache.c (regcache::current_regcache) Rename to...
5396 (regcache::regcaches): ... this. Move doc to header.
5397 (get_thread_arch_aspace_regcache): Update.
5398 (regcache::regcache_thread_ptid_changed): Update.
5399 (registers_changed_ptid): Update.
5400 (class regcache_access) <current_regcache_size>: Rename to...
5401 <regcaches_size>: ... this.
5402 (current_regcache_test): Rename to...
5403 (regcaches_test): ... this.
5404 (_initialize_regcache): Update.
5405
ed908db6
VC
54062020-08-06 Victor Collod <vcollod@nvidia.com>
5407
5408 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5409
b5582ab7
KB
54102020-08-05 Kevin Buettner <kevinb@redhat.com>
5411
5412 * corelow.c (core_target::build_file_mappings): Don't output
5413 null pathname in warning.
5414
ea946b86
SM
54152020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5416
5417 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5418 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5419 gdb.dwarf2/dw2-single-line-discriminators.exp,
5420 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5421
57d02173
TT
54222020-08-05 Tom Tromey <tromey@adacore.com>
5423
5424 PR rust/26197:
5425 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5426 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5427 Fix off-by-one and type size errors in ordinary case.
5428
5555c86d
TV
54292020-08-05 Tom de Vries <tdevries@suse.de>
5430
5431 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5432 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5433
97916bfe
SM
54342020-08-04 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * frame.h (frame_id_p): Return bool.
5437 (frame_id_artificial_p): Return bool.
5438 (frame_id_eq): Return bool.
5439 (has_stack_frames): Return bool.
5440 (get_selected_frame): Fix typo in comment.
5441 (get_frame_pc_if_available): Return bool.
5442 (get_frame_address_in_block_if_available): Return bool.
5443 (get_frame_func_if_available): Return bool.
5444 (read_frame_register_unsigned): Return bool.
5445 (get_frame_register_bytes): Return bool.
5446 (safe_frame_unwind_memory): Return bool.
5447 (deprecated_frame_register_read): Return bool.
5448 (frame_unwinder_is): Return bool.
5449 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5450 bool.
5451 <this_id::p>: Likewise.
5452 <prev_p>: Likewise.
5453 (frame_stash_add): Return bool.
5454 (get_frame_id): Use bool.
5455 (frame_id_build_special) Use bool.
5456 (frame_id_build_unavailable_stack): Use bool.
5457 (frame_id_build): Use bool.
5458 (frame_id_p): Return bool, use true/false instead of 1/0.
5459 (frame_id_artificial_p): Likewise.
5460 (frame_id_eq): Likewise.
5461 (frame_id_inner): Likewise.
5462 (get_frame_func_if_available): Likewise.
5463 (read_frame_register_unsigned): Likewise.
5464 (deprecated_frame_register_read): Likewise.
5465 (get_frame_register_bytes): Likewise.
5466 (has_stack_frames): Likewise.
5467 (inside_main_func): Likewise.
5468 (inside_entry_func): Likewise.
5469 (get_frame_pc_if_available): Likewise.
5470 (get_frame_address_in_block_if_available): Likewise.
5471 (frame_unwinder_is): Likewise.
5472 (safe_frame_unwind_memory): Likewise.
5473 (frame_unwind_arch): Likewise.
5474
fedfee88
SM
54752020-08-04 Simon Marchi <simon.marchi@efficios.com>
5476
5477 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5478 type to cached_copy_status.
5479 (fprintf_frame): Adjust.
5480 (get_frame_func_if_available): Adjust.
5481 (frame_cleanup_after_sniffer): Adjust.
5482
6cfa9b59
MW
54832020-08-04 Mark Wielaard <mark@klomp.org>
5484
5485 * MAINTAINERS (Write After Approval): Update email address.
5486
66d6346b
SM
54872020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5488
5489 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5490 dynamic_prop::const_val.
5491
8a6d5e35
SM
54922020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5493
5494 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5495 dynamic_prop::kind.
5496
51d6067d
SM
54972020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5498
5499 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5500
b26e2ae7
JM
55012020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5502
5503 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5504
39791af2
JM
55052020-08-04 Weimin Pan <weimin.pan@oracle.com>
5506 Jose E. Marchesi <jose.marchesi@oracle.com>
5507
5508 * configure.tgt: Add entry for bpf-*-*.
5509 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5510 (ALLDEPFILES): Add bpf-tdep.c.
5511 * bpf-tdep.c: New file.
5512 * MAINTAINERS: Add bpf target and maintainer.
5513 * NEWS: Mention the support for the new target.
5514
521894aa
TV
55152020-08-04 Tom de Vries <tdevries@suse.de>
5516
5517 PR symtab/23270
5518 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5519 Error.
5520
5d6356e9
JB
55212020-08-03 John Baldwin <jhb@FreeBSD.org>
5522
5523 * syscalls/freebsd.xml: Regenerate.
5524
0cf82b81
JB
55252020-08-03 John Baldwin <jhb@FreeBSD.org>
5526
5527 * syscalls/update-freebsd.sh: Fix usage and year range.
5528
8f34b746
TV
55292020-08-03 Tom de Vries <tdevries@suse.de>
5530
5531 PR symtab/26333
5532 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5533 DW_LNE_lo_user/DW_LNE_hi_user range.
5534
5e500d33
SM
55352020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5536
5537 PR ada/26318
5538 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5539 kind.
5540
78319c15
TBA
55412020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5542
5543 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5544
4c55e970
TBA
55452020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5546
5547 * breakpoint.c (set_breakpoint_condition): Update the condition
5548 expressions after checking that the input condition string parses
5549 successfully and does not contain junk at the end.
5550
1e620590
TBA
55512020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5552
5553 * breakpoint.c (set_breakpoint_condition): Update the
5554 condition string after parsing the new condition successfully.
5555
c8693053
RO
55562020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5557
5558 * proc-api.c (_STRUCTURED_PROC): Don't define.
5559 * proc-events.c: Likewise.
5560 * proc-flags.c: Likewise.
5561 * proc-why.c: Likewise.
5562 * procfs.c: Likewise.
5563
5564 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5565 * configure, config.in: Regenerate.
5566
5a99adb8
TV
55672020-07-30 Tom de Vries <tdevries@suse.de>
5568
5569 PR build/26320
5570 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5571 m_red/m_green/m_blue in a union.
5572
8ba83e91
TV
55732020-07-29 Tom de Vries <tdevries@suse.de>
5574
5575 PR tdep/26280
5576 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5577
f75a0693
AB
55782020-07-28 Tom Tromey <tromey@adacore.com>
5579
5580 PR symtab/26270:
5581 * symtab.h (find_pc_partial_function_sym): Declare.
5582 * cli/cli-cmds.c (disassemble_command): Use
5583 find_pc_partial_function_sym. Check asm_demangle.
5584 * blockframe.c (cache_pc_function_sym): New global.
5585 (cache_pc_function_name): Remove.
5586 (clear_pc_function_cache): Update.
5587 (find_pc_partial_function_sym): New function, from
5588 find_pc_partial_function.
5589 (find_pc_partial_function): Rewrite using
5590 find_pc_partial_function_sym.
5591
16f3242c
TT
55922020-07-28 Tom Tromey <tromey@adacore.com>
5593
5594 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5595 help. Add usage.
5596
4888741a
TT
55972020-07-28 Tom Tromey <tromey@adacore.com>
5598
5599 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5600 <DW_OP_GNU_variable_value>: Cast to address type.
5601
4d46f402
KR
56022020-07-28 Kamil Rytarowski <n54@gmx.com>
5603
5604 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5605 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5606 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5607 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5608 (nbsd_get_siginfo_type): New.
5609 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5610 (_initialize_nbsd_tdep): New.
5611
d70f978b
L
56122020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5613
5614 PR binutils/26301
5615 * configure: Regenerated.
5616
377170fa
L
56172020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5618
5619 PR binutils/26301
5620 * configure: Regenerated.
5621
43d5901d
AB
56222020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5623
5624 * python/py-frame.c: Remove 'user-regs.h' include.
5625 (frapy_read_register): Rewrite to make use of
5626 gdbpy_parse_register_id.
5627 * python/py-registers.c (gdbpy_parse_register_id): New function,
5628 moved here from python/py-unwind.c. Updated the return type, and
5629 also accepts register descriptor objects.
5630 * python/py-unwind.c: Remove 'user-regs.h' include.
5631 (pyuw_parse_register_id): Moved to python/py-registers.c.
5632 (unwind_infopy_add_saved_register): Update to use
5633 gdbpy_parse_register_id.
5634 (pending_framepy_read_register): Likewise.
5635 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5636
14fa8fb3
AB
56372020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5638
5639 * python/py-registers.c: Add 'user-regs.h' include.
5640 (register_descriptor_iter_find): New function.
5641 (register_descriptor_iterator_object_methods): New static global
5642 methods array.
5643 (register_descriptor_iterator_object_type): Add pointer to methods
5644 array.
5645
ddce1758
JB
56462020-07-27 John Baldwin <jhb@FreeBSD.org>
5647
5648 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5649 for all architectures on FreeBSD 11.3 and later.
5650
a4089f52
TT
56512020-07-27 Tom Tromey <tromey@adacore.com>
5652
5653 * gcore.h (load_corefile): Don't declare.
5654
95420d30
TV
56552020-07-27 Tom de Vries <tdevries@suse.de>
5656
5657 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5658 * config.in: Regenerate.
5659 * configure: Regenerate.
5660
05a6b8c2
EZ
56612020-07-26 Eli Zaretskii <eliz@gnu.org>
5662
5663 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5664 ws2tcpip.h. When checking whether socklen_t type is defined, use
5665 ws2tcpip.h if it is available and sys/socket.h isn't.
5666 * configure: Regenerate.
5667 * config.in: Regenerate.
5668
e79eb02f
AB
56692020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5670
5671 PR fortran/23051
5672 PR fortran/26139
5673 * valops.c (value_ind): Pass address to
5674 readjust_indirect_value_type.
5675 * value.c (readjust_indirect_value_type): Make parameter
5676 non-const, and add extra address parameter. Resolve original type
5677 before using it.
5678 * value.h (readjust_indirect_value_type): Update function
5679 signature and comment.
5680
876518dd
TV
56812020-07-25 Tom de Vries <tdevries@suse.de>
5682
5683 PR symtab/26243
5684 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5685 entries.
5686
f6720b1c
AM
56872020-07-24 Aaron Merey <amerey@redhat.com>
5688
5689 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5690 * configure: Rebuild.
5691
513487e1
KB
56922020-07-23 Kevin Buettner <kevinb@redhat.com>
5693
5694 PR corefiles/26294
5695 * corelow.c (_initialize_corelow): Add period to help text
5696 for "maintenance print core-file-backed-mappings".
5697
e7bc9db8
PA
56982020-07-23 Pedro Alves <pedro@palves.net>
5699
5700 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5701 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5702 meanwhile.
5703 * frame.c (frame_cache_generation, get_frame_cache_generation):
5704 New.
5705 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5706 (get_prev_frame_if_no_cycle): On exception, don't touch
5707 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5708 * frame.h (get_frame_cache_generation): Declare.
5709
90fcc466
TV
57102020-07-23 Tom de Vries <tdevries@suse.de>
5711
5712 PR tui/26282
5713 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5714 New default constructor.
5715
78344df7
AB
57162020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5717
5718 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5719 exclude non-statement entries.
5720
b089853a
KB
57212020-07-22 Kevin Buettner <kevinb@redhat.com>
5722
5723 * NEWS (New commands): Mention new command
5724 "maintenance print core-file-backed-mappings".
5725
09c2f5d4
KB
57262020-07-22 Kevin Buettner <kevinb@redhat.com>
5727
5728 * corelow.c (gdbcmd.h): Include.
5729 (core_target::info_proc_mappings): New method.
5730 (get_current_core_target): New function.
5731 (maintenance_print_core_file_backed_mappings): New function.
5732 (_initialize_corelow): Add core-file-backed-mappings to
5733 "maint print" commands.
5734
9c5ec5c2 57352020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5736
9c5ec5c2
KB
5737 * linux-tdep.c (dump_note_entry_p): New function.
5738 (linux_dump_mapping_p_ftype): New typedef.
5739 (linux_find_memory_regions_full): Add new parameter,
5740 should_dump_mapping_p.
5741 (linux_find_memory_regions): Adjust call to
5742 linux_find_memory_regions_full.
5743 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5744 call to linux_find_memory_regions_full.
5745
db082f59
KB
57462020-07-22 Kevin Buettner <kevinb@redhat.com>
5747
5748 * corelow.c (solist.h, unordered_map): Include.
5749 (class core_target): Add field m_core_file_mappings and
5750 method build_file_mappings.
5751 (core_target::core_target): Call build_file_mappings.
5752 (core_target::~core_target): Free memory associated with
5753 m_core_file_mappings.
5754 (core_target::build_file_mappings): New method.
5755 (core_target::xfer_partial): Use m_core_file_mappings
5756 for memory transfers.
5757 * linux-tdep.c (linux_read_core_file_mappings): New
5758 function.
5759 (linux_core_info_proc_mappings): Rewrite to use
5760 linux_read_core_file_mappings.
5761 (linux_init_abi): Register linux_read_core_file_mappings.
5762
7e183d27
KB
57632020-07-22 Kevin Buettner <kevinb@redhat.com>
5764
5765 * arch-utils.c (default_read_core_file_mappings): New function.
5766 * arch-utils.c (default_read_core_file_mappings): Declare.
5767 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5768 * gdbarch.h, gdbarch.c: Regenerate.
5769
2735d421
KB
57702020-07-22 Kevin Buettner <kevinb@redhat.com>
5771
5772 PR corefiles/25631
5773 * corelow.c (core_target:xfer_partial): Revise
5774 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5775 case after first checking the stratum beneath the core
5776 target.
5777 (has_all_memory): Return true.
5778 * target.c (raw_memory_xfer_partial): Revise comment
5779 regarding use of has_all_memory.
5780
e56cb451
KB
57812020-07-22 Kevin Buettner <kevinb@redhat.com>
5782
5783 * exec.h (section_table_xfer_memory): Revise declaration,
5784 replacing section name parameter with an optional callback
5785 predicate.
5786 * exec.c (section_table_xfer_memory): Likewise.
5787 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5788 of section_table_xfer_memory.
5789
32fa152e
TT
57902020-07-22 Tom Tromey <tromey@adacore.com>
5791
5792 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5793 lookup_symbol_search_name.
5794
a67a1c41
AB
57952020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5796
5797 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5798 redundant local variable.
5799 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5800 reference, not pointer, update code accordingly.
5801
a7b4ff4f
SM
58022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5803 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5804
5805 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5806 * jit.c (jit_breakpoint_re_set_internal): Use the
5807 `skip_jit_symbol_lookup` field.
5808
2340e834
SM
58092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5810 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5811
5812 * jit.c (jit_read_descriptor): Define the descriptor address once,
5813 use twice.
5814 (jit_breakpoint_deleted): Move the declaration of the loop variable
5815 `iter` into the loop header.
5816 (jit_breakpoint_re_set_internal): Move the declaration of the local
5817 variable `objf_data` to the first point of definition.
5818 (jit_event_handler): Move the declaration of local variables
5819 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5820 Rename `objf` to `jited`.
5821
c1072906
SM
58222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5823
5824 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5825 Remove.
5826 * jit.c (get_jiter_objfile_data): Update.
5827
c8474dc3
TBA
58282020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5829 Simon Marchi <simon.marchi@polymtl.ca>
5830
5831 * jit.c (struct jit_program_space_data): Remove.
5832 (jit_program_space_key): Remove.
5833 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5834 stuff.
5835 (get_jit_program_space_data): Remove.
5836 (jit_breakpoint_deleted): Iterate on all of the program space's
5837 objfiles.
5838 (jit_inferior_init): Likewise.
5839 (jit_breakpoint_re_set_internal): Likewise. Also change return
5840 type to void.
5841 (jit_breakpoint_re_set): Pass current_program_space to
5842 jit_breakpoint_re_set_internal.
5843
77208eb7
SM
58442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5845
5846 * jit.h (struct jiter_objfile_data) <cached_code_address,
5847 jit_breakpoint>: Move to here from ...
5848 * jit.c (jit_program_space_data): ... here.
5849 (jiter_objfile_data::~jiter_objfile_data): Update.
5850 (jit_breakpoint_deleted): Update.
5851 (jit_breakpoint_re_set_internal): Update.
5852
8c1c720f
SM
58532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5854
5855 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5856 checks.
5857 (jit_read_descriptor): Remove NULL check.
5858 (jit_event_handler): Add an assertion.
5859
0e74a041
SM
58602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * jit.h (struct jit_objfile_data): Split into...
5863 (struct jiter_objfile_data): ... this ...
5864 (struct jited_objfile_data): ... and this.
5865 * objfiles.h (struct objfile) <jit_data>: Remove.
5866 <jiter_data, jited_data>: New fields.
5867 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5868 (jiter_objfile_data::~jiter_objfile_data): ... this.
5869 (get_jit_objfile_data): Rename to ...
5870 (get_jiter_objfile_data): ... this.
5871 (add_objfile_entry): Update.
5872 (jit_read_descriptor): Use get_jiter_objfile_data.
5873 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5874 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5875 (jit_inferior_exit_hook): Use objfile's jited_data field.
5876
238b5c9f
SM
58772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5878
5879 * jit.h: Forward-declare `struct minimal_symbol`.
5880 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5881 constructor, destructor, and an objfile* field.
5882 * jit.c (jit_objfile_data): Remove.
5883 (struct jit_objfile_data): Migrate from here to jit.h.
5884 (jit_objfile_data::~jit_objfile_data): New destructor
5885 implementation with code moved from free_objfile_data.
5886 (free_objfile_data): Delete.
5887 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5888 (jit_find_objf_with_entry_addr): Ditto.
5889 (jit_inferior_exit_hook): Ditto.
5890 (_initialize_jit): Remove the call to
5891 register_objfile_data_with_cleanup.
5892 * objfiles.h (struct objfile) <jit_data>: New field.
5893
fe053b9e
TBA
58942020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5895
5896 * jit.h: Forward-declare `struct objfile`.
5897 (jit_event_handler): Add a second parameter, the JITer objfile.
5898 * jit.c (jit_read_descriptor): Change the signature to take the
5899 JITer objfile as an argument instead of the jit_program_space_data.
5900 (jit_inferior_init): Update the call to jit_read_descriptor.
5901 (jit_event_handler): Use the new JITer objfile argument when calling
5902 jit_read_descriptor.
5903 * breakpoint.c (handle_jit_event): Update the call to
5904 jit_event_handler to pass the JITer objfile.
5905
4cec0c66
JB
59062020-07-21 John Baldwin <jhb@FreeBSD.org>
5907
5908 * gdbarch.c: Regenerate.
5909 * gdbarch.h: Regenerate.
5910 * gdbarch.sh (handle_segmentation_fault): Remove method.
5911 * infrun.c (handle_segmentation_fault): Remove.
5912 (print_signal_received_reason): Remove call to
5913 handle_segmentation_fault.
5914
0e42f66a
JB
59152020-07-21 John Baldwin <jhb@FreeBSD.org>
5916
5917 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5918 Rename to sparc64_linux_report_signal_info and add siggnal
5919 argument.
5920 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5921 instead of sparc64_linux_handle_segmentation_fault.
5922
77bdfeb2
JB
59232020-07-21 John Baldwin <jhb@FreeBSD.org>
5924
5925 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5926 i386_linux_report_signal_info instead of
5927 i386_linux_handle_segmentation_fault.
5928 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5929 to i386_linux_report_signal_info and add siggnal argument.
5930 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5931 of i386_linux_handle_segmentation_fault.
5932 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5933 to i386_linux_report_signal_info and add siggnal argument.
5934
ad97bfc5
JB
59352020-07-21 John Baldwin <jhb@FreeBSD.org>
5936
5937 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5938 hook if present.
5939
272bb05c
JB
59402020-07-21 John Baldwin <jhb@FreeBSD.org>
5941
5942 * gdbarch.c: Regenerate.
5943 * gdbarch.h: Regenerate.
5944 * gdbarch.sh (report_signal_info): New method.
5945 * infrun.c (print_signal_received_reason): Invoke gdbarch
5946 report_signal_info hook if present.
5947
baf8791e
AB
59482020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5949
5950 * python/py-registers.c : Add 'unordered_map' include.
5951 (gdbpy_new_reggroup): Renamed to...
5952 (gdbpy_get_reggroup): ...this. Update to only create register
5953 group descriptors when needed.
5954 (gdbpy_reggroup_iter_next): Update.
5955
f7306dac
AB
59562020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5957
5958 * python/py-registers.c (gdbpy_register_object_data): New static
5959 global.
5960 (gdbpy_register_object_data_init): New function.
5961 (gdbpy_new_register_descriptor): Renamed to...
5962 (gdbpy_get_register_descriptor): ...this, and update to reuse
5963 existing register descriptors where possible.
5964 (gdbpy_register_descriptor_iter_next): Update.
5965 (gdbpy_initialize_registers): Register new gdbarch data.
5966
05c309a8
SM
59672020-07-21 Simon Marchi <simon.marchi@efficios.com>
5968
5969 * linux-nat.c (stopped_pids): Make static.
5970
d1fd641e
SM
59712020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5972
5973 PR ada/26235
5974 * gdbtypes.c (ada_discrete_type_low_bound,
5975 ada_discrete_type_high_bound): Handle undefined bounds.
5976
1de14d77
KR
59772020-07-21 Kamil Rytarowski <n54@gmx.com>
5978
5979 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5980 declaration.
5981 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5982 function.
5983
ed810cc7
JB
59842020-07-20 John Baldwin <jhb@FreeBSD.org>
5985
5986 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5987 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5988 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5989 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5990 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5991 method.
5992
ae5369e7
LC
59932020-07-20 Ludovic Courtès <ludo@gnu.org>
5994
5995 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5996 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5997 which are deprecated in Guile 3.0.
5998 * configure.ac (try_guile_versions): Add "guile-3.0".
5999 * configure (try_guile_versions): Regenerate.
6000 * NEWS: Update entry.
6001
68cf161c
LC
60022020-07-20 Ludovic Courtès <ludo@gnu.org>
6003 Doug Evans <dje@google.com>
6004
6005 PR gdb/21104
6006 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6007 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6008 USING_GUILE_BEFORE_2_2.
6009 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6010 Change type to 'scm_t_port_type *'.
6011 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6012 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6013 parameter and honor it. Update callers.
6014 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6015 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6016 functions.
6017 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6018 USING_GUILE_BEFORE_2_2.
6019 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6020 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6021 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6022 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6023 and 'SCM_PORT_TYPE'.
6024 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6025 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6026 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6027 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6028 [!USING_GUILE_BEFORE_2_2]: New functions.
6029 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6030 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6031 'gdbscm_memory_port_read'.
6032 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6033 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6034 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6035 function.
6036 (ioscm_init_memory_port): Remove.
6037 (ioscm_init_memory_port_stream): New function
6038 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6039 function.
6040 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6041 Return scm_from_uint (0).
6042 (gdbscm_set_memory_port_read_buffer_size_x)
6043 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6044 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6045 Return scm_from_uint (0).
6046 (gdbscm_set_memory_port_write_buffer_size_x)
6047 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6048 * configure.ac (try_guile_versions): Add "guile-2.2".
6049 * configure: Regenerate.
6050 * NEWS: Add entry.
6051
aee91db3
TT
60522020-07-18 Tom Tromey <tom@tromey.com>
6053
6054 * linux-nat.c (linux_multi_process): Remove.
6055 (linux_nat_target::supports_multi_process): Return true.
6056
0e267416
AB
60572020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6058
6059 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6060 (riscv_lookup_target_description): Return pointer out of
6061 unique_ptr.
6062 * target-descriptions.c (allocate_target_description): Add
6063 comment.
6064 (target_desc_deleter::operator()): Likewise.
6065 * target-descriptions.h (struct target_desc_deleter): Moved to
6066 gdbsupport/tdesc.h.
6067 (target_desc_up): Likewise.
6068
f80c8ec4
TT
60692020-07-17 Tom Tromey <tromey@adacore.com>
6070
6071 * linux-nat.c (linux_nat_target::supports_non_stop)
6072 (linux_nat_target::always_non_stop_p): Use "true".
6073 (linux_nat_target::supports_disable_randomization): Use "true" and
6074 "false".
6075
d0ce17d8
CT
60762020-07-16 Caroline Tice <cmtice@google.com>
6077
6078 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6079 (RNGLIST_HEADER_SIZE64): New constant definition.
6080 (struct dwop_section_names): Add rnglists_dwo.
6081 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6082 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6083 (struct dwo_sections): Add rnglists field.
6084 (read_attribut_reprocess): Add tag parameter.
6085 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6086 (cu_debug_rnglists_section): New function (decl & definition).
6087 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6088 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6089 die whose range is being checked; get rnglist section from
6090 cu_debug_rnglists_section, to get from either objfile or dwo file as
6091 appropriate. Add cases for DW_RLE_base_addressx,
6092 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6093 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6094 test inside if-condition and updating complaint message.
6095 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6096 dwarf2_rnglists_process.
6097 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6098 dwarf2_ranges_process.
6099 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6100 need_ranges_base and update comment appropriately. Also pass die tag
6101 to dwarf2_ranges_read.
6102 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6103 need_ranges_base and update comment appropriately. Also pass die tag
6104 to dwarf2_ranges_process.
6105 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6106 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6107 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6108 need_ranges_base and update comment appropriately. Also pass die tag
6109 to read_attribute_reprocess and dwarf2_ranges_read.
6110 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6111 and update function comment appropriately.
6112 (read_loclist_index): Call read_loclists_rnglists_header instead of
6113 read_loclist_header.
6114 (read_rnglist_index): New function.
6115 (read_attribute_reprocess): Add tag parameter. Add code for
6116 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6117 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6118
3dcc261c
AB
61192020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6120
6121 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6122 being resolved.
6123
ccb9eba6
AB
61242020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6125
6126 * arch-utils.c (show_architecture): Update formatting of messages.
6127
cf88be68
SM
61282020-07-12 Simon Marchi <simon.marchi@efficios.com>
6129
6130 * gdbtypes.h (struct type) <bounds>: Handle array and string
6131 types.
6132 * ada-lang.c (assign_aggregate): Use type::bounds on
6133 array/string type.
6134 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6135 * c-varobj.c (c_number_of_children): Likewise.
6136 (c_describe_child): Likewise.
6137 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6138 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6139 (f_type_print_base): Likewise.
6140 * f-valprint.c (f77_array_offset_tbl): Likewise.
6141 (f77_get_upperbound): Likewise.
6142 (f77_print_array_1): Likewise.
6143 * guile/scm-type.c (gdbscm_type_range): Likewise.
6144 * m2-typeprint.c (m2_array): Likewise.
6145 (m2_is_long_set_of_type): Likewise.
6146 * m2-valprint.c (get_long_set_bounds): Likewise.
6147 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6148 * python/py-type.c (typy_range): Likewise.
6149 * rust-lang.c (rust_internal_print_type): Likewise.
6150 * type-stack.c (type_stack::follow_types): Likewise.
6151 * valarith.c (value_subscripted_rvalue): Likewise.
6152 * valops.c (value_cast): Likewise.
6153
509971ae
SM
61542020-07-12 Simon Marchi <simon.marchi@efficios.com>
6155
6156 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6157 callers to use the equivalent accessor methods.
6158
107406b7
SM
61592020-07-12 Simon Marchi <simon.marchi@efficios.com>
6160
6161 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6162 (struct type) <bit_stride>: New method.
6163 (TYPE_BIT_STRIDE): Remove.
6164 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6165
bb789949
SM
61662020-07-12 Simon Marchi <simon.marchi@efficios.com>
6167
6168 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6169 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6170 callers to use the equivalent accessor methods instead.
6171
39498edb
SM
61722020-07-12 Simon Marchi <simon.marchi@efficios.com>
6173
6174 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6175 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6176 callers to use the equivalent accessor methods instead.
6177
3b606f38
SM
61782020-07-12 Simon Marchi <simon.marchi@efficios.com>
6179
6180 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6181 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6182 to use dynamic_prop::kind.
6183
064d9cb9
SM
61842020-07-12 Simon Marchi <simon.marchi@efficios.com>
6185
6186 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6187 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6188 to get the bound property's kind and check against
6189 PROP_UNDEFINED.
6190
5537ddd0
SM
61912020-07-12 Simon Marchi <simon.marchi@efficios.com>
6192
6193 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6194 all callers to use type::range_bounds followed by
6195 dynamic_prop::{low,high}.
6196
8c2e4e06
SM
61972020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6198
6199 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6200 const_val, set_const_val, baton, set_locexpr, set_loclist,
6201 set_addr_offset, variant_parts, set_variant_parts,
6202 original_type, set_original_type>: New methods.
6203 <kind>: Rename to...
6204 <m_kind>: ... this. Update all users to use the new methods
6205 instead.
6206 <data>: Rename to...
6207 <m_data>: ... this. Update all users to use the new methods
6208 instead.
6209
7c6f2712
SM
62102020-07-12 Simon Marchi <simon.marchi@efficios.com>
6211
6212 * gdbtypes.c (get_discrete_bounds): Return failure if
6213 the range type's bounds are not both defined and constant
6214 values.
6215 (get_array_bounds): Update comment. Remove undefined bound check.
6216
599088e3
SM
62172020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6218
6219 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6220 the type::bounds method directly.
6221
c4dfcb36
SM
62222020-07-12 Simon Marchi <simon.marchi@efficios.com>
6223
6224 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6225 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6226 are used to set the range type's bounds to use set_bounds.
6227
0a278aa7
PW
62282020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6229
6230 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6231
cce20f10
PA
62322020-07-10 Pedro Alves <pedro@palves.net>
6233
6234 * gdbthread.h (inferior_ref): Define.
6235 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6236 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6237 * thread.c
6238 (scoped_restore_current_thread::restore):
6239 Adjust to gdb::ref_ptr.
6240 (scoped_restore_current_thread::~scoped_restore_current_thread):
6241 Remove manual decref handling.
6242 (scoped_restore_current_thread::scoped_restore_current_thread):
6243 Adjust to use
6244 inferior_ref::new_reference/thread_info_ref::new_reference.
6245 Incref the thread before calling get_frame_id instead of after.
6246 Let TARGET_CLOSE_ERROR propagate.
6247
6d7aa592
PA
62482020-07-10 Pedro Alves <pedro@palves.net>
6249
6250 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6251 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6252 NOT_AVAILABLE_ERROR.
6253 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6254 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6255
b3e3a4c1
SM
62562020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6257 Pedro Alves <pedro@palves.net>
6258
6259 PR gdb/26199
6260 * infrun.c (threads_are_resumed_pending_p): Delete.
6261 (do_target_wait): Remove threads_are_executing and
6262 threads_are_resumed_pending_p checks from the inferior_matches
6263 lambda. Update comments.
6264
d6cc5d98
PA
62652020-07-10 Pedro Alves <pedro@palves.net>
6266
6267 PR gdb/26199
6268 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6269 executing threads.
6270
7d3badc6
PA
62712020-07-10 Pedro Alves <pedro@palves.net>
6272
6273 PR gdb/26199
6274 * infrun.c (handle_no_resumed): Handle multiple targets.
6275
42bd97a6
PA
62762020-07-10 Pedro Alves <pedro@palves.net>
6277
6278 PR gdb/26199
6279 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6280 target_is_async_p.
6281
43667cc6
PA
62822020-07-10 Pedro Alves <pedro@palves.net>
6283
6284 PR gdb/26199
6285 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6286 threads, not all threads.
6287
96118d11
PA
62882020-07-10 Pedro Alves <pedro@palves.net>
6289
6290 PR gdb/26199
6291 * remote.c (remote_target::open_1): Pass remote target pointer as
6292 data to create_async_event_handler.
6293 (remote_async_inferior_event_handler): Mark async event handler
6294 before returning if the remote target still has either pending
6295 events or unacknowledged notifications.
6296
54904d81
JB
62972020-07-10 John Baldwin <jhb@FreeBSD.org>
6298
6299 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6300 declaration.
6301 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6302 function.
6303
f37e5866
JB
63042020-07-09 John Baldwin <jhb@FreeBSD.org>
6305
6306 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6307 inferior_ptid.
6308
fc238d4a
JB
63092020-07-09 John Baldwin <jhb@FreeBSD.org>
6310
6311 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6312 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6313 AT_FREEBSD_PS_STRINGS.
6314
6e2469ff
HD
63152020-07-08 Hannes Domani <ssbssa@yahoo.de>
6316
6317 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6318 of debugfile path on Windows.
6319
d1076c41
JB
63202020-07-08 John Baldwin <jhb@FreeBSD.org>
6321
6322 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6323 argument to 'data'.
6324
15f3b077
TT
63252020-07-08 Tom Tromey <tromey@adacore.com>
6326
6327 * ada-lang.c (ada_exception_message_1): Use read_memory.
6328
9fc501fd
AB
63292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6330
6331 PR python/22748
6332 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6333 special handling for inline frames.
6334 * findvar.c (value_of_register_lazy): Skip inline frames when
6335 creating lazy register values.
6336 * frame.c (frame_id_computed_p): Delete definition.
6337 * frame.h (frame_id_computed_p): Delete declaration.
6338
64cb3757
AB
63392020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6340
6341 * NEWS: Mention additions to Python API.
6342 * python/py-arch.c (archpy_register_groups): New function.
6343 (arch_object_methods): Add 'register_groups' method.
6344 * python/py-registers.c (reggroup_iterator_object): New struct.
6345 (reggroup_object): New struct.
6346 (gdbpy_new_reggroup): New function.
6347 (gdbpy_reggroup_to_string): New function.
6348 (gdbpy_reggroup_name): New function.
6349 (gdbpy_reggroup_iter): New function.
6350 (gdbpy_reggroup_iter_next): New function.
6351 (gdbpy_new_reggroup_iterator): New function
6352 (gdbpy_initialize_registers): Register new types.
6353 (reggroup_iterator_object_type): Define new Python type.
6354 (gdbpy_reggroup_getset): New static global.
6355 (reggroup_object_type): Define new Python type.
6356 * python/python-internal.h
6357
0f767f94
AB
63582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6359
6360 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6361 * python/py-arch.c (archpy_registers): New function.
6362 (arch_object_methods): Add 'registers' method.
6363 * python/py-registers.c: New file.
6364 * python/python-internal.h
6365 (gdbpy_new_register_descriptor_iterator): Declare.
6366 (gdbpy_initialize_registers): Declare.
6367 * python/python.c (do_start_initialization): Call
6368 gdbpy_initialize_registers.
6369 * NEWS: Mention additions to the Python API.
6370
87dbc774
AB
63712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6372
6373 * NEWS: Mention new Python API method.
6374 * python/py-unwind.c (pending_framepy_architecture): New function.
6375 (pending_frame_object_methods): Add architecture method.
6376
3bc98c0c
AB
63772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6378
6379 * gdbarch.c: Regenerate.
6380 * gdbarch.h: Regenerate.
6381 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6382 (gdbarch_data): Use internal_error for the case where
6383 deprecated_set_gdbarch_data was originally needed.
6384 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6385 and use passed in obstack.
6386 (libunwind_frame_set_descr): Should no longer get back NULL from
6387 gdbarch_data.
6388 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6389 type.
6390 * user-regs.c (user_regs_init): Update parameters, and use passed
6391 in obstack.
6392 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6393 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6394
d8cc8af6
TV
63952020-07-06 Tom de Vries <tdevries@suse.de>
6396
6397 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6398 End-Of-Sequence in lte_is_less_than.
6399 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6400 "gdb: Don't reorder line table entries too much when sorting".
6401
947f7597
TV
64022020-07-06 Tom de Vries <tdevries@suse.de>
6403
6404 PR tui/26205
6405 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6406
1e7c1b22
TV
64072020-07-05 Tom de Vries <tdevries@suse.de>
6408
6409 PR build/26187
6410 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6411 std::uncaught_exceptions instead of deprecated
6412 std::uncaught_exception.
6413
a36158ec
SM
64142020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6415
6416 * macroexp.h (macro_stringify): Return
6417 gdb::unique_xmalloc_ptr<char>.
6418 * macroexp.c (macro_stringify): Likewise.
6419 * macrotab.c (fixup_definition): Update.
6420
14d960c8
SM
64212020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6422
6423 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6424 (lex_one_token): Update.
6425 * macroexp.c (struct macro_buffer) <release>: Return
6426 gdb::unique_xmalloc_ptr<char>.
6427 (macro_stringify): Update.
6428 (macro_expand): Update.
6429 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6430 * macroexp.h (macro_expand_next): Likewise.
6431
211d5b1c
SM
64322020-07-02 Simon Marchi <simon.marchi@efficios.com>
6433
6434 * macroexp.h (macro_lookup_ftype): Remove.
6435 (macro_expand, macro_expand_once, macro_expand_next): Remove
6436 lookup function parameters, add scope parameter.
6437 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6438 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6439 * macroscope.h (standard_macro_lookup): Change parameter type
6440 to macro_scope.
6441 * macroscope.c (standard_macro_lookup): Likewise.
6442 * c-exp.y (lex_one_token): Update.
6443 * macrocmd.c (macro_expand_command): Likewise.
6444 (macro_expand_once_command): Likewise.
6445
b1a35af2
SM
64462020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6447
6448 * inf-loop.c (inferior_event_handler): Remove client_data param.
6449 * inf-loop.h (inferior_event_handler): Likewise.
6450 * infcmd.c (step_1): Adjust.
6451 * infrun.c (proceed): Adjust.
6452 (fetch_inferior_event): Remove client_data param.
6453 (infrun_async_inferior_event_handler): Adjust.
6454 * infrun.h (fetch_inferior_event): Remove `void *` param.
6455 * linux-nat.c (handle_target_event): Adjust.
6456 * record-btrace.c (record_btrace_handle_async_inferior_event):
6457 Adjust.
6458 * record-full.c (record_full_async_inferior_event_handler):
6459 Adjust.
6460 * remote.c (remote_async_inferior_event_handler): Adjust.
6461
1cdf9e33
TT
64622020-07-01 Tom Tromey <tom@tromey.com>
6463
6464 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6465 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6466
32c1e210
TT
64672020-07-01 Tom Tromey <tom@tromey.com>
6468
6469 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6470 tui_gen_win_info.
6471 (tui_win_info::make_window): Merge with
6472 tui_gen_win_info::make_window.
6473 (tui_win_info::make_visible): Move from tui_gen_win_info.
6474 * tui/tui-win.c (tui_win_info::max_width): Move from
6475 tui_gen_win_info.
6476 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6477 type.
6478 <window_factory>: Likewise.
6479 * tui/tui-layout.c (tui_win_info::resize): Move from
6480 tui_gen_win_info.
6481 (make_standard_window): Change return type.
6482 (get_locator_window, tui_get_window_by_name): Likewise.
6483 (tui_layout_window::apply): Remove a cast.
6484 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6485 (struct tui_win_info): Merge with tui_gen_win_info.
6486 (struct tui_gen_win_info): Remove.
6487
a30cb6da
TT
64882020-07-01 Tom Tromey <tom@tromey.com>
6489
6490 * tui/tui-stack.h (struct tui_locator_window): Derive from
6491 tui_win_info.
6492 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6493 <can_box>: New method.
6494
1eb2161f
TT
64952020-07-01 Tom Tromey <tom@tromey.com>
6496
6497 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6498
7134f2eb
TT
64992020-07-01 Tom Tromey <tom@tromey.com>
6500
6501 * tui/tui-regs.c (tui_data_window::display_registers_from)
6502 (tui_data_window::display_registers_from)
6503 (tui_data_window::first_data_item_displayed)
6504 (tui_data_window::delete_data_content_windows): Update.
6505 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6506 Remove.
6507 (tui_data_window::check_register_values): Update.
6508 (tui_data_item_window::rerender): Add parameters. Update.
6509 (tui_data_item_window::refresh_window): Remove.
6510 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6511 virtual.
6512 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6513 tui_gen_win_info.
6514 <refresh_window, max_height, min_height>: Remove.
6515 <rerender>: Add parameters.
6516 <x, y, visible>: New members.
6517 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6518 <m_item_width>: New member.
6519
22b7b041
TT
65202020-07-01 Tom Tromey <tom@tromey.com>
6521
6522 * tui/tui-regs.c (tui_data_window::show_register_group)
6523 (tui_data_window::check_register_values): Update.
6524 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6525 from item_no.
6526
c9753adb
TT
65272020-07-01 Tom Tromey <tom@tromey.com>
6528
6529 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6530 useless "if".
6531
9ab26b4a
TT
65322020-07-01 Tom Tromey <tom@tromey.com>
6533
6534 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6535 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6536
e555083f
TT
65372020-07-01 Tom Tromey <tom@tromey.com>
6538
6539 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6540 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6541 (struct tui_line_or_address): Move from tui-data.h.
6542 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6543 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6544 (tui_cmd_window, tui_source_window_base, tui_source_window)
6545 (tui_disasm_window): Don't declare.
6546 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6547 to tui-winsource.h.
6548 (SINGLE_KEY): Move to tui-stack.c.
6549
7a02bab7
TT
65502020-07-01 Tom Tromey <tom@tromey.com>
6551
6552 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6553 std::string.
6554 * tui/tui-regs.c (class tab_expansion_file): New.
6555 (tab_expansion_file::write): New method.
6556 (tui_register_format): Change return type. Use
6557 tab_expansion_file.
6558 (tui_get_register, tui_data_window::display_registers_from)
6559 (tui_data_item_window::rerender): Update.
6560 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6561 * tui/tui-io.c (tui_expand_tabs): Remove.
6562
ea68593b
TT
65632020-07-01 Tom Tromey <tom@tromey.com>
6564
6565 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6566
a8caed5d
FS
65672020-07-01 Fangrui Song <maskray@google.com>
6568
6569 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6570
9cdf9820
AKS
65712020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6572
6573 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6574 forms for DW_AT_associated and DW_AT_allocated attributes,
6575 which is already checked in function attr_to_dynamic_prop.
6576
a1520ad8
TT
65772020-06-30 Tom Tromey <tromey@adacore.com>
6578
6579 * dwarf2/read.c (quirk_rust_enum): Correctly call
6580 alloc_rust_variant for default-less enum.
6581
5ac58899
TT
65822020-06-30 Tom Tromey <tromey@adacore.com>
6583
6584 PR build/26183:
6585 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6586 gdb::to_string.
6587
19b187a9
SM
65882020-06-29 Simon Marchi <simon.marchi@efficios.com>
6589
6590 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6591 * gdbarch.h: Re-generate.
6592
cd4c4c07
TT
65932020-06-28 Tom Tromey <tom@tromey.com>
6594
6595 * command.h (cmd_types): Remove.
6596 (cmd_type): Don't declare.
6597 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6598 typedef.
6599 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6600 * cli/cli-decode.c (cmd_type): Remove.
6601
05779d57
PA
66022020-06-27 Pedro Alves <palves@redhat.com>
6603
6604 * fork-child.c (prefork_hook): Adjust.
6605 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6606 Delete.
6607 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6608 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6609 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6610 Remove declarations.
6611 (struct inferior) <set_tty, tty>: New methods.
6612 (struct inferior) <terminal>: Rename to ...
6613 (struct inferior) <m_terminal>: ... this and make private.
6614 * main.c (captured_main_1): Adjust.
6615 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6616 (mi_cmd_inferior_tty_show): Adjust.
6617 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6618 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6619
1776e3e5
NA
66202020-06-26 Nick Alcock <nick.alcock@oracle.com>
6621
6622 * configure.ac: Add --enable-libctf: handle --disable-static
6623 properly.
6624 * acinclude.m4: sinclude ../config/enable.m4.
6625 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6626 (LIBCTF): Substitute in.
6627 (CTF_DEPS): New, likewise.
6628 (CLIBS): libctf needs symbols from libbfd: move earlier.
6629 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6630 flags.
6631 * ctfread.c: Surround in ENABLE_LIBCTF.
6632 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6633 * configure: Regenerate.
6634 * config.in: Likewise.
6635
58373b80
SM
66362020-06-25 Simon Marchi <simon.marchi@efficios.com>
6637
6638 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6639
277474ee
SM
66402020-06-25 Simon Marchi <simon.marchi@efficios.com>
6641
6642 * inferior.h (struct inferior) <terminal>: Change type to
6643 gdb::unique_xmalloc_ptr<char>.
6644 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6645 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6646 field, adjust to unique pointer.
6647 (get_inferior_io_terminal): Adjust to unique pointer.
6648
6d74da72
AB
66492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6650
6651 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6652 registers, not just the known core set of registers.
6653
2e52d038
AB
66542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6655
6656 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6657 fflags, frm, and fcsr registers.
6658 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6659 restore groups.
6660 (riscv_tdesc_unknown_reg): New function.
6661 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6662 tdesc_use_registers.
6663 * riscv-tdep.h (struct gdbarch_tdep): Add
6664 unknown_csrs_first_regnum, unknown_csrs_count,
6665 duplicate_fflags_regnum, duplicate_frm_regnum, and
6666 duplicate_fcsr_regnum fields.
6667
be64fd07
AB
66682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6669
6670 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6671 callback, use the callback (when not null) to help number unknown
6672 registers.
6673 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6674 (tdesc_use_registers): Add extra parameter to declaration.
6675
3b9fce96
AB
66762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6677
6678 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6679 in the file.
6680 (class riscv_pending_register_alias): Likewise.
6681 (riscv_register_feature::register_info): Change 'required_p' field
6682 to 'required', and change its type. Add 'check' member function.
6683 (riscv_register_feature::register_info::check): Define new member
6684 function.
6685 (riscv_xreg_feature): Change initialisation of 'required' field.
6686 (riscv_freg_feature): Likewise.
6687 (riscv_virtual_feature): Likewise.
6688 (riscv_csr_feature): Likewise.
6689 (riscv_check_tdesc_feature): Take extra parameter, the csr
6690 tdesc_feature, rewrite the function to use the new
6691 riscv_register_feature::register_info::check function.
6692 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6693
865bad26
AB
66942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6695
6696 * features/Makefile: Remove all references to the deleted files
6697 below.
6698 * features/riscv/32bit-csr.c: Deleted.
6699 * features/riscv/32bit-csr.xml: Deleted.
6700 * features/riscv/64bit-csr.c: Deleted.
6701 * features/riscv/64bit-csr.xml: Deleted.
6702 * features/riscv/rebuild-csr-xml.sh: Deleted.
6703
ed69cbc8
AB
67042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6705
6706 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6707 whitespace error for declaration of names member variable.
6708 (struct riscv_register_feature): Add new prefer_first_name member
6709 variable, and fix whitespace error in declaration of registers.
6710 (riscv_xreg_feature): Initialize prefer_first_name field.
6711 (riscv_freg_feature): Likewise.
6712 (riscv_virtual_feature): Likewise.
6713 (riscv_csr_feature): Likewise.
6714 (riscv_register_name): Expand on comments. Remove register name
6715 modifications for CSR and virtual registers.
6716
4445e8f5
AB
67172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6720 errors.
6721
767a879e
AB
67222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6723
6724 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6725 riscv-opc.h.
6726 (class riscv_pending_register_alias): New class.
6727 (riscv_check_tdesc_feature): Take vector of pending aliases and
6728 populate it as appropriate.
6729 (riscv_setup_register_aliases): Delete.
6730 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6731 to riscv_check_tdesc_feature in all cases. Use the vector to
6732 create the register aliases.
6733
bb6e55f3
RO
67342020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6735
6736 * sol2-tdep.c (sol2_static_transform_name): Remove.
6737 (sol2_init_abi): Don't register it.
6738 * gdbarch.sh (static_transform_name): Remove.
6739 * gdbarch.c, gdbarch.h: Regenerate.
6740
6741 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6742 gdbarch_static_transform_name.
6743 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6744 * stabsread.c (define_symbol) <'X'>: Remove.
6745 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6746 handling.
6747 <'V'>: Likewise.
6748 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6749 <'S'>: Remove call to gdbarch_static_transform_name.
6750
c6d36836
RO
67512020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6752
6753 * procfs.c (procfs_pre_trace): New function.
6754 (procfs_target::create_inferior): Pass it to fork_inferior.
6755
a7e6196b
RO
67562020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6757
6758 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6759 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6760 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6761 sol2-tdep.o, sparc-sol2-tdep.o.
6762 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6763 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6764 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6765 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6766
d412e696
RO
67672020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6768
6769 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6770 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6771 Call sol2_init_abi.
6772 Remove calls to set_gdbarch_skip_solib_resolver,
6773 set_gdbarch_core_pid_to_str.
6774 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6775 (i386_sol2_static_transform_name): Remove.
6776 (i386_sol2_init_abi): Call sol2_init_abi.
6777 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6778 set_gdbarch_static_transform_name,
6779 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6780 Use sol2_sigtramp_p.
6781 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6782 (sol2_sigtramp_p): New function.
6783 (sol2_static_transform_name): New function.
6784 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6785 (sol2_init_abi): New function.
6786 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6787 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6788 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6789 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6790 (sparc_sol2_static_transform_name): Remove.
6791 (sparc32_sol2_init_abi): Call sol2_init_abi.
6792 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6793 set_gdbarch_static_transform_name,
6794 set_gdbarch_skip_solib_resolver,
6795 set_gdbarch_core_pid_to_str.
6796 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6797 (sparc_sol2_static_transform_name): Remove
6798 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6799 call sol2_sigtramp_p.
6800 (sparc64_sol2_init_abi): Call sol2_init_abi.
6801 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6802 set_gdbarch_static_transform_name,
6803 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6804
a8654e7d
PW
68052020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6806
6807 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6808 * exec.c (validate_exec_file): If from_tty, set both
6809 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6810 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6811 and from_tty, unconditionally ask a confirmation.
6812
caa7fd04
AB
68132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6814
6815 * target-descriptions.c (tdesc_architecture_name): Protect against
6816 NULL pointer dereference.
6817 (maint_print_xml_tdesc_cmd): New function.
6818 (_initialize_target_descriptions): Register new 'maint print
6819 xml-tdesc' command and give it the filename completer.
6820 * NEWS: Mention new 'maint print xml-tdesc' command.
6821
fbf42f4e
AB
68222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6823
6824 * target-descriptions.c (class tdesc_compatible_info): New class.
6825 (struct target_desc): Change type of compatible vector.
6826 (tdesc_compatible_p): Update for change in type of
6827 target_desc::compatible.
6828 (tdesc_compatible_info_list): New function.
6829 (tdesc_compatible_info_arch_name): New function.
6830 (tdesc_add_compatible): Update for change in type of
6831 target_desc::compatible.
6832 (print_c_tdesc::visit_pre): Likewise.
6833
20821f4e
AB
68342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6835
6836 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6837 whitespace to underscore.
6838 (maint_print_c_tdesc_cmd): Use fake filename for target
6839 descriptions that came from the target.
6840 (_initialize_target_descriptions): Add filename command completion
6841 for 'maint print c-tdesc'.
6842
1fb5ee62
SM
68432020-06-23 Simon Marchi <simon.marchi@efficios.com>
6844
6845 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6846 lines.
6847
fc3ecb3e
SM
68482020-06-23 Simon Marchi <simon.marchi@efficios.com>
6849
6850 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6851 lines.
6852 (dwarf2_find_location_expression): Likewise.
6853 (call_site_parameter_matches): Likewise.
6854 (dwarf2_compile_expr_to_ax): Likewise.
6855 (disassemble_dwarf_expression): Likewise.
6856 (loclist_describe_location): Likewise.
6857
236ef034
PA
68582020-06-23 Pedro Alves <palves@redhat.com>
6859
6860 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6861 progspace-and-thread.h. Include scoped-mock-context.h instead.
6862 (register_to_value_test): Use scoped_mock_context.
6863 * regcache.c: Include "scoped-mock-context.h".
6864 (cooked_read_test): Don't error out if a target is already pushed.
6865 Use scoped_mock_context. Adjust.
6866 * scoped-mock-context.h: New file.
6867
39e7ecca
AB
68682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6869
6870 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6871 initializer.
6872 (ada_language::is_string_type_p): New member function.
6873 * c-lang.c (c_language_data): Delete la_is_string_type_p
6874 initializer.
6875 (cplus_language_data): Likewise.
6876 (asm_language_data): Likewise.
6877 (minimal_language_data): Likewise.
6878 * d-lang.c (d_language_data): Likewise.
6879 * f-lang.c (f_is_string_type_p): Delete function, implementation
6880 moved to f_language::is_string_type_p.
6881 (f_language_data): Delete la_is_string_type_p initializer.
6882 (f_language::is_string_type_p): New member function,
6883 implementation from f_is_string_type_p.
6884 * go-lang.c (go_is_string_type_p): Delete function, implementation
6885 moved to go_language::is_string_type_p.
6886 (go_language_data): Delete la_is_string_type_p initializer.
6887 (go_language::is_string_type_p): New member function,
6888 implementation from go_is_string_type_p.
6889 * language.c (language_defn::is_string_type_p): Define new member
6890 function.
6891 (default_is_string_type_p): Make static, add comment copied from
6892 header file.
6893 (unknown_language_data): Delete la_is_string_type_p initializer.
6894 (unknown_language::is_string_type_p): New member function.
6895 (auto_language_data): Delete la_is_string_type_p initializer.
6896 (auto_language::is_string_type_p): New member function.
6897 * language.h (language_data): Delete la_is_string_type_p field.
6898 (language_defn::is_string_type_p): Declare new function.
6899 (default_is_string_type_p): Delete desclaration, move comment to
6900 definition.
6901 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6902 moved to m2_language::is_string_type_p.
6903 (m2_language_data): Delete la_is_string_type_p initializer.
6904 (m2_language::is_string_type_p): New member function,
6905 implementation from m2_is_string_type_p.
6906 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6907 initializer.
6908 * opencl-lang.c (opencl_language_data): Likewise.
6909 * p-lang.c (pascal_is_string_type_p): Delete function,
6910 implementation moved to pascal_language::is_string_type_p.
6911 (pascal_language_data): Delete la_is_string_type_p initializer.
6912 (pascal_language::is_string_type_p): New member function,
6913 implementation from pascal_is_string_type_p.
6914 * rust-lang.c (rust_is_string_type_p): Delete function,
6915 implementation moved to rust_language::is_string_type_p.
6916 (rust_language_data): Delete la_is_string_type_p initializer.
6917 (rust_language::is_string_type_p): New member function,
6918 implementation from rust_is_string_type_p.
6919 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6920 is_string_type_p.
6921
4ffc13fb
AB
69222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6923
6924 * ada-lang.c (ada_language_data): Delete la_print_typedef
6925 initializer.
6926 (ada_language::print_typedef): New member function.
6927 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6928 (cplus_language_data): Likewise.
6929 (asm_language_data): Likewise.
6930 (minimal_language_data): Likewise.
6931 * d-lang.c (d_language_data): Likewise.
6932 * f-lang.c (f_language_data): Likewise.
6933 (f_language::print_typedef): New member function.
6934 * go-lang.c (go_language_data): Delete la_print_typedef
6935 initializer.
6936 * language.c (language_defn::print_typedef): Define member
6937 function.
6938 (unknown_language_data): Delete la_print_typedef initializer.
6939 (unknown_language::print_typedef): New member function.
6940 (auto_language_data): Delete la_print_typedef initializer.
6941 (auto_language::print_typedef): New member function.
6942 * language.h (language_data): Delete la_print_typedef field.
6943 (language_defn::print_typedef): Declare new member function.
6944 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6945 (default_print_typedef): Delete declaration.
6946 * m2-lang.c (m2_language_data): Delete la_print_typedef
6947 initializer.
6948 (m2_language::print_typedef): New member function.
6949 * objc-lang.c (objc_language_data): Delete la_print_typedef
6950 initializer.
6951 * opencl-lang.c (opencl_language_data): Likewise.
6952 * p-lang.c (pascal_language_data): Likewise.
6953 (pascal_language::print_typedef): New member function.
6954 * rust-lang.c (rust_print_typedef): Delete function,
6955 implementation moved to rust_language::print_typedef.
6956 (rust_language): Delete la_print_typedef initializer.
6957 (rust_language::print_typedef): New member function,
6958 implementation from rust_print_typedef.
6959 * typeprint.c (default_print_typedef): Delete.
6960
d711ee67
AB
69612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6962
6963 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6964 (ada_language::printstr): New member function.
6965 * c-lang.c (c_language_data): Delete la_printstr initializer.
6966 (cplus_language_data): Likewise.
6967 (asm_language_data): Likewise.
6968 (minimal_language_data): Likewise.
6969 * d-lang.c (d_language_data): Likewise.
6970 * f-lang.c (f_printstr): Rename to f_language::printstr.
6971 (f_language_data): Delete la_printstr initializer.
6972 (f_language::printstr): New member function, implementation from
6973 f_printstr.
6974 * go-lang.c (go_language_data): Delete la_printstr initializer.
6975 * language.c (language_defn::printstr): Define new member
6976 function.
6977 (unk_lang_printstr): Delete.
6978 (unknown_language_data): Delete la_printstr initializer.
6979 (unknown_language::printstr): New member function.
6980 (auto_language_data): Delete la_printstr initializer.
6981 (auto_language::printstr): New member function.
6982 * language.h (language_data): Delete la_printstr field.
6983 (language_defn::printstr): Declare new member function.
6984 (LA_PRINT_STRING): Update call to printstr.
6985 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6986 (m2_language_data): Delete la_printstr initializer.
6987 (m2_language::printstr): New member function, implementation from
6988 m2_printstr.
6989 * objc-lang.c (objc_language_data): Delete la_printstr
6990 initializer.
6991 * opencl-lang.c (opencl_language_data): Likewise.
6992 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6993 (pascal_language_data): Delete la_printstr initializer.
6994 (pascal_language::printstr): New member function, implementation
6995 from pascal_printstr.
6996 * p-lang.h (pascal_printstr): Delete declaration.
6997 * rust-lang.c (rust_printstr): Update header comment.
6998 (rust_language_data): Delete la_printstr initializer.
6999 (rust_language::printstr): New member function.
7000
52b50f2c
AB
70012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7002
7003 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7004 (ada_language::printchar): New member function.
7005 * c-lang.c (c_language_data): Delete la_printchar initializer.
7006 (cplus_language_data): Likewise.
7007 (asm_language_data): Likewise.
7008 (minimal_language_data): Likewise.
7009 * d-lang.c (d_language_data): Likewise.
7010 * f-lang.c (f_printchar): Rename to f_language::printchar.
7011 (f_language_data): Delete la_printchar initializer.
7012 (f_language::printchar): New member function, implementation from
7013 f_printchar.
7014 * go-lang.c (go_language_data): Delete la_printchar initializer.
7015 * language.c (unk_lang_printchar): Delete.
7016 (language_defn::printchar): Define new member function.
7017 (unknown_language_data): Delete la_printchar initializer.
7018 (unknown_language::printchar): New member function.
7019 (auto_language_data): Delete la_printchar initializer.
7020 (auto_language::printchar): New member function.
7021 * language.h (language_data): Delete la_printchar field.
7022 (language_defn::printchar): Declare new member function.
7023 (LA_PRINT_CHAR): Update call to printchar.
7024 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7025 (m2_language::printchar): New member function.
7026 * objc-lang.c (objc_language_data): Delete la_printchar
7027 initializer.
7028 * opencl-lang.c (opencl_language_data): Likewise.
7029 * p-lang.c (pascal_language_data): Delete la_printchar
7030 initializer.
7031 (pascal_language::printchar): New member function.
7032 * rust-lang.c (rust_printchar): Rename to
7033 rust_language::printchar.
7034 (rust_language_data): Delete la_printchar initializer.
7035 (rust_language::printchar): New member function, implementation
7036 from rust_printchar.
7037
ec8cec5b
AB
70382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7039
7040 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7041 (ada_language_data): Delete la_emitchar initializer.
7042 (ada_language::emitchar): New member function, implementation from
7043 emit_char.
7044 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7045 (cplus_language_data): Likewise.
7046 (asm_language_data): Likewise.
7047 (minimal_language_data): Likewise.
7048 * d-lang.c (d_language_data): Likewise.
7049 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7050 (f_language_data): Delete la_emitchar initializer.
7051 (f_language::emitchar): New member function, implementation from
7052 f_emit_char.
7053 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7054 * language.c (unk_lang_emit_char): Delete.
7055 (language_defn::emitchar): New member function definition.
7056 (unknown_language_data): Delete la_emitchar initializer.
7057 (unknown_language::emitchar): New member function.
7058 (auto_language_data): Delete la_emitchar initializer.
7059 (auto_language::emitchar): New member function.
7060 * language.h (language_data): Delete la_emitchar field.
7061 (language_defn::emitchar): New member field declaration.
7062 (LA_EMIT_CHAR): Update call to emitchar.
7063 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7064 (m2_language_data): Delete la_emitchar initializer.
7065 (m2_language::emitchar): New member function, implementation from
7066 m2_emit_char.
7067 * objc-lang.c (objc_language_data): Delete la_emitchar
7068 initializer.
7069 * opencl-lang.c (opencl_language_data): Likewise.
7070 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7071 (pascal_language_data): Delete la_emitchar initializer.
7072 (pascal_language::emitchar): New member function, implementation
7073 from pascal_emit_char.
7074 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7075 (rust_language_data): Delete la_emitchar initializer.
7076 (rust_language::emitchar): New member function, implementation
7077 from rust_emitchar.
7078
1bf9c363
AB
70792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7080
7081 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7082 (ada_language_data): Delete la_post_parser initializer.
7083 (ada_language::post_parser): New member function.
7084 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7085 (cplus_language_data): Likewise.
7086 (asm_language_data): Likewise.
7087 (minimal_language_data): Likewise.
7088 * d-lang.c (d_language_data): Likewise.
7089 * f-lang.c (f_language_data): Likewise.
7090 * go-lang.c (go_language_data): Likewise.
7091 * language.c (unknown_language_data): Likewise.
7092 (auto_language_data): Likewise.
7093 * language.h (language_data): Delete la_post_parser field.
7094 (language_defn::post_parser): New member function.
7095 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7096 * objc-lang.c (objc_language_data): Likewise.
7097 * opencl-lang.c (opencl_language_data): Likewise.
7098 * p-lang.c (pascal_language_data): Likewise.
7099 * parse.c (parse_exp_in_context): Update call to post_parser.
7100 (null_post_parser): Delete definition.
7101 * parser-defs.h (null_post_parser): Delete declaration.
7102 * rust-lang.c (rust_language_data): Delete la_post_parser
7103 initializer.
7104
87afa652
AB
71052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7106
7107 * ada-lang.c (parse): Rename to ada_language::parser.
7108 (ada_language_data): Delete la_parser initializer.
7109 (ada_language::parser): New member function, implementation from
7110 parse.
7111 * c-lang.c (c_language_data): Delete la_parser initializer.
7112 (cplus_language_data): Likewise.
7113 (asm_language_data): Likewise.
7114 (minimal_language_data): Likewise.
7115 * d-lang.c (d_language_data): Likewise.
7116 (d_language::parser): New member function.
7117 * f-lang.c (f_language_data): Delete la_parser initializer.
7118 (f_language::parser): New member function.
7119 * go-lang.c (go_language_data): Delete la_parser initializer.
7120 (go_language::parser): New member function.
7121 * language.c (unk_lang_parser): Delete.
7122 (language_defn::parser): Define new member function.
7123 (unknown_language_data): Delete la_parser initializer.
7124 (unknown_language::parser): New member function.
7125 (auto_language_data): Delete la_parser initializer.
7126 (auto_language::parser): New member function.
7127 * language.h (language_data): Delete la_parser field.
7128 (language_defn::parser): Declare new member function.
7129 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7130 (m2_language::parser): New member function.
7131 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7132 * opencl-lang.c (opencl_language_data): Likewise.
7133 * p-lang.c (pascal_language_data): Likewise.
7134 (pascal_language::parser): New member function.
7135 * parse.c (parse_exp_in_context): Update call to parser.
7136 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7137 (rust_language::parser): New member function.
7138
37825800
AB
71392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7140
7141 * top.c (print_gdb_configuration): Print --with-python-libdir
7142 configuration value.
7143
5b860c93
PW
71442020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7145
7146 * NEWS: Mention change to the alias command.
7147
cf00cd6f
PW
71482020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7149
7150 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7151 (alias_command_completer)
7152 (make_alias_options_def_group): New functions.
7153 (alias_opts, alias_option_defs): New struct and array.
7154 (alias_usage_error): Update usage.
7155 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7156 Use option framework.
7157 (_initialize_cli_cmds): Update alias command help.
7158 Update aliases command help.
7159 (show_user):
7160 Add NULL for new default_args lookup_cmd argument.
7161 (valid_command_p): Rename to validate_aliased_command.
7162 Add NULL for new default_args lookup_cmd argument. Verify that the
7163 aliased_command has no default args.
7164 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7165 (lookup_cmd_1, lookup_cmd): New argument default_args.
7166 (add_alias_cmd):
7167 Add NULL for new default_args lookup_cmd argument.
7168 (print_help_for_command): Show default args under the layout
7169 alias some_alias = some_aliased_cmd some_alias_default_arg.
7170 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7171 xfree default_args in destructor.
7172 * cli/cli-script.c (process_next_line, do_define_command):
7173 Add NULL for new default_args lookup_cmd argument.
7174 * command.h: Declare new default_args argument in lookup_cmd
7175 and lookup_cmd_1.
7176 * completer.c (complete_line_internal_1):
7177 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7178 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7179 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7180 Likewise.
7181 * infcmd.c (_initialize_infcmd): Likewise.
7182 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7183 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7184 * python/py-param.c (add_setshow_generic): Likewise.
7185 * remote.c (_initialize_remote): Likewise.
7186 * top.c (execute_command): Prepend default_args if command has some.
7187 (set_verbose):
7188 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7189 * tracepoint.c (validate_actionline, encode_actions_1):
7190 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7191
bd920864
TBA
71922020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7193
7194 * jit.c (jit_read_descriptor): Use bool as the return type.
7195 (jit_breakpoint_re_set_internal): Use bool as the return type.
7196 Invert the return value logic; return true if the jit breakpoint
7197 has been successfully initialized.
7198 (jit_inferior_init): Update the call to
7199 jit_breakpoint_re_set_internal.
7200
f8098322
PA
72012020-06-22 Pedro Alves <palves@redhat.com>
7202
7203 PR gdb/25939
7204 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7205 Use the current inferior instead. Don't return
7206 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7207 wait again.
7208 * sol-thread.c (sol_thread_target::wait): Don't reference
7209 inferior_ptid.
7210 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7211 (sol_update_thread_list_callback): Use the current inferior's pid
7212 instead of inferior_ptid.
7213
196535a6
RO
72142020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7215
7216 * procfs.c: Cleanup many comments.
7217
7218 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7219 (AFTER_WATCHFLAG): Replace by value.
7220
7221 (MAIN_PROC_NAME_FORMAT): Inline ...
7222 (create_procinfo): ... here.
7223
7224 (procfs_debug_inferior): Remove SYS_exec handling.
7225 (syscall_is_exec): Likewise.
7226 (procfs_set_exec_trap): Likewise.
7227
7228 (syscall_is_lwp_exit): Inline in callers.
7229 (syscall_is_exit): Likewise.
7230 (syscall_is_exec): Likewise.
7231 (syscall_is_lwp_create): Likewise.
7232
7233 (invalidate_cache): Remove #if 0 code.
7234
7235 (make_signal_thread_runnable): Remove.
7236 (procfs_target::resume): Remove #if 0 code.
7237
cf6f3e86
RO
72382020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7239
7240 PR gdb/25939
7241 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7242 call ...
7243 (procfs_target::create_inferior): ... here.
7244
48e9cc84
PW
72452020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7246
7247 * exec.c (validate_exec_file): Ensure the build-id is up to
7248 date by calling reopen_exec_file (that checks file timestamp
7249 to decide to re-read the file).
7250
3922b302
PA
72512020-06-18 Pedro Alves <palves@redhat.com>
7252
7253 PR gdb/25412
7254 * gdbthread.h (delete_thread, delete_thread_silent)
7255 (find_thread_ptid): Update comments.
7256 * thread.c (current_thread_): New global.
7257 (is_current_thread): Move higher, and reimplement.
7258 (inferior_thread): Reimplement.
7259 (set_thread_exited): Use bool. Add assertions.
7260 (add_thread_silent): Simplify thread-reuse handling by always
7261 calling delete_thread.
7262 (delete_thread): Remove intro comment.
7263 (find_thread_ptid): Skip exited threads.
7264 (switch_to_thread_no_regs): Write to current_thread_.
7265 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7266 INFERIOR_PTID. Clear current_thread_.
7267
6dbdab44
PA
72682020-06-18 Pedro Alves <palves@redhat.com>
7269
7270 * aix-thread.c (pd_update): Use switch_to_thread.
7271
2da4b788
PA
72722020-06-18 Pedro Alves <palves@redhat.com>
7273
7274 * ravenscar-thread.c (ravenscar_thread_target): Update.
7275 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7276 (ravenscar_thread_target::add_active_thread): ... this. Don't
7277 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7278 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7279
50838d1b
PA
72802020-06-18 Pedro Alves <palves@redhat.com>
7281
7282 * nat/windows-nat.c (current_windows_thread): Remove.
7283 * nat/windows-nat.h (current_windows_thread): Remove.
7284 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7285 Adjust.
7286 (display_selectors): Adjust to fetch the current
7287 windows_thread_info based on inferior_ptid.
7288 (fake_create_process): No longer write to current_windows_thread.
7289 (windows_nat_target::get_windows_debug_event):
7290 Don't set inferior_ptid or current_windows_thread.
7291 (windows_nat_target::wait): Adjust to not rely on
7292 current_windows_thread.
7293 (do_initial_windows_stuff): Now a method of windows_nat_target.
7294 Switch to the last_ptid thread.
7295 (windows_nat_target::attach): Adjust.
7296 (windows_nat_target::detach): Use switch_to_no_thread instead of
7297 writing to inferior_ptid directly.
7298 (windows_nat_target::create_inferior): Adjust.
7299
31ce04e9
PA
73002020-06-18 Pedro Alves <palves@redhat.com>
7301
7302 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7303
1ee1a363
PA
73042020-06-18 Pedro Alves <palves@redhat.com>
7305
7306 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7307 after creating it, instead of writing to inferior_ptid. Don't
7308 write to inferior_ptid.
7309
6d350754
PA
73102020-06-18 Pedro Alves <palves@redhat.com>
7311
7312 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7313
5d971d48
PA
73142020-06-18 Pedro Alves <palves@redhat.com>
7315
7316 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7317 it, instead of writing to inferior_ptid.
7318
86e57d1b
PA
73192020-06-18 Pedro Alves <palves@redhat.com>
7320
7321 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7322 to inferior_ptid.
7323
f2e1c129
PA
73242020-06-18 Pedro Alves <palves@redhat.com>
7325
7326 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7327 instead of writing to inferior_ptid directly.
7328
60db1b85
PA
73292020-06-18 Pedro Alves <palves@redhat.com>
7330
7331 * corelow.c (core_target::close): Use switch_to_no_thread instead
7332 of writing to inferior_ptid directly.
7333 (add_to_thread_list, core_target_open): Use switch_to_thread
7334 instead of writing to inferior_ptid directly.
7335
fe7d6a8d
PA
73362020-06-18 Pedro Alves <palves@redhat.com>
7337
7338 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7339 inferior_ptid.
7340 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7341 inferior_ptid.
7342 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7343 inferior_ptid directly.
7344 (darwin_nat_target::init_thread_list): Switch to thread, instead
7345 of writing to inferior_ptid.
7346 (darwin_nat_target::attach): Don't write to inferior_ptid.
7347 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7348
975f8708
PA
73492020-06-18 Pedro Alves <palves@redhat.com>
7350
7351 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7352 thread.
7353 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7354 Instead use switch_to_thread.
7355 (gnu_nat_target::detach): Use switch_to_no_thread
7356 instead of writing to inferior_ptid directly. Used passed-in
7357 inferior instead of looking up the inferior by pid.
7358
1a204730
PA
73592020-06-18 Pedro Alves <palves@redhat.com>
7360
7361 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7362 inferior_ptid.
7363
ebe84f23
PA
73642020-06-18 Pedro Alves <palves@redhat.com>
7365
7366 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7367 inferior_ptid.
7368 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7369 thread.
7370 (nto_procfs_target::detach): Avoid referencing
7371 inferior_ptid. Use switch_to_no_thread instead of writing to
7372 inferior_ptid directly.
7373 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7374 instead of writing to inferior_ptid directly.
7375 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7376 to thread.
7377
191f02e5
PA
73782020-06-18 Pedro Alves <palves@redhat.com>
7379
7380 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7381 after creating it, instead of writing to inferior_ptid.
7382 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7383 to inferior_ptid directly.
7384 (gdbsim_target::wait): Don't write to inferior_ptid.
7385
0ac55310
PA
73862020-06-18 Pedro Alves <palves@redhat.com>
7387
7388 * remote.c (remote_target::remote_notice_new_inferior): Use
7389 switch_to_thread instead of writing to inferior_ptid directly.
7390 (remote_target::add_current_inferior_and_thread): Use
7391 switch_to_no_thread instead of writing to inferior_ptid directly.
7392 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7393 and switch_to_thread instead of using set_current_inferior or
7394 writing to inferior_ptid directly.
7395
5233f39b
PA
73962020-06-18 Pedro Alves <palves@redhat.com>
7397
7398 * tracectf.c (ctf_target_open): Switch to added thread instead of
7399 writing to inferior_ptid directly.
7400 (ctf_target::close): Use switch_to_no_thread instead of writing to
7401 inferior_ptid directly.
7402
087e161b
PA
74032020-06-18 Pedro Alves <palves@redhat.com>
7404
7405 * tracefile-tfile.c (tfile_target_open): Don't write to
7406 inferior_ptid directly, instead switch to added thread.
7407 (tfile_target::close): Use switch_to_no_thread instead of writing
7408 to inferior_ptid directly.
7409
7fb43e53
PA
74102020-06-18 Pedro Alves <palves@redhat.com>
7411
7412 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7413 (procfs_target::detach): Use switch_to_no_thread
7414 instead of writing to inferior_ptid directly.
7415 (do_attach): Change return type to void. Switch to the added
7416 thread.
7417 (procfs_target::create_inferior): Switch to the added thread.
7418 (procfs_do_thread_registers): Don't write to inferior_ptid.
7419
18493a00
PA
74202020-06-18 Pedro Alves <palves@redhat.com>
7421
7422 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7423 of writing to inferior_ptid.
7424 (scoped_restore_exited_inferior): Delete.
7425 (handle_vfork_child_exec_or_exit): Simplify using
7426 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7427 instead of writing to inferior_ptid.
7428 (THREAD_STOPPED_BY): Delete.
7429 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7430 (thread_stopped_by_hw_breakpoint): Delete.
7431 (save_waitstatus): Use
7432 scoped_restore_current_thread+switch_to_thread, and call
7433 target_stopped_by_watchpoint instead of
7434 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7435 instead of thread_stopped_by_sw_breakpoint, and
7436 target_stopped_by_hw_breakpoint instead of
7437 thread_stopped_by_hw_breakpoint.
7438 (handle_inferior_event)
7439 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7440 inferior_ptid directly, nor
7441 set_current_inferior/set_current_program_space. Use
7442 switch_to_thread / switch_to_inferior_no_thread instead.
7443
a0776b13
PA
74442020-06-18 Pedro Alves <palves@redhat.com>
7445
7446 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7447 instead of writing to inferior_ptid.
7448
6155c136
PA
74492020-06-18 Pedro Alves <palves@redhat.com>
7450
7451 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7452 added thread.
7453 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7454 to the added thread.
7455 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7456 instead of writing to inferior_ptid.
7457
c5316fc6
PA
74582020-06-18 Pedro Alves <palves@redhat.com>
7459
7460 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7461 (register_to_value_test): Mock a program_space too. Heap-allocate
7462 the address space. Don't write to inferior_ptid. Use
7463 switch_to_thread instead.
7464
8df01799
PA
74652020-06-18 Pedro Alves <palves@redhat.com>
7466
7467 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7468 Delete.
7469 (find_signalled_thread()): New, factored out from
7470 linux_make_corefile_notes and adjusted to handle exited threads.
7471 (linux_make_corefile_notes): Adjust to use the new
7472 find_signalled_thread.
7473
41792d68
PA
74742020-06-18 Pedro Alves <palves@redhat.com>
7475
7476 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7477 of saving/restoring inferior_ptid.
7478
612f258a
TT
74792020-06-17 Tom Tromey <tom@tromey.com>
7480
7481 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7482 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7483 declare.
7484 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7485
efb763a5
SM
74862020-06-15 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7489 of partial symtabs.
7490
2951f6c0
SM
74912020-06-17 Simon Marchi <simon.marchi@efficios.com>
7492
7493 * regformats/reg-arm.dat: Remove.
7494 * regformats/reg-bfin.dat: Remove.
7495 * regformats/reg-cris.dat: Remove.
7496 * regformats/reg-crisv32.dat: Remove.
7497 * regformats/reg-m32r.dat: Remove.
7498 * regformats/reg-tilegx.dat: Remove.
7499 * regformats/reg-tilegx32.dat: Remove.
7500
7d458ea5
SM
75012020-06-17 Simon Marchi <simon.marchi@efficios.com>
7502
7503 * features/Makefile (WHICH): Remove arm files.
7504 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7505 * regformats/arm/arm-with-neon.dat: Remove.
7506 * regformats/arm/arm-with-vfpv2.dat: Remove.
7507 * regformats/arm/arm-with-vfpv3.dat: Remove.
7508
3af96c0d
SM
75092020-06-17 Simon Marchi <simon.marchi@efficios.com>
7510
7511 * features/Makefile (XMLTOC): Remove rx.xml.
7512
b25e22fd
PA
75132020-06-17 Pedro Alves <palves@redhat.com>
7514
7515 * gdbthread.h (thread_control_state) <trap_expected> Update
7516 comments.
7517
a78a19b1
AB
75182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7519
7520 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7521 ada_language::lookup_symbol_nonlocal.
7522 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7523 (ada_language::lookup_symbol_nonlocal): New member function,
7524 implementation from ada_lookup_symbol_nonlocal.
7525 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7526 initializer.
7527 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7528 initializer.
7529 (cplus_language::lookup_symbol_nonlocal): New member function.
7530 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7531 (minimal_language_data) Likewise.
7532 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7533 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7534 initializer.
7535 (d_language::lookup_symbol_nonlocal): New member function.
7536 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7537 initializer.
7538 (f_language::lookup_symbol_nonlocal): New member function.
7539 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7540 initializer.
7541 * language.c (unknown_language_data): Likewise.
7542 (auto_language_data): Likewise.
7543 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7544 field.
7545 (language_defn::lookup_symbol_nonlocal): New member function.
7546 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7547 initializer.
7548 * objc-lang.c (objc_language_data): Likewise.
7549 * opencl-lang.c (opencl_language_data): Likewise.
7550 * p-lang.c (pascal_language_data): Likewise.
7551 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7552 rust_language::lookup_symbol_nonlocal.
7553 (rust_language_data): Delete la_lookup_symbol_nonlocal
7554 initializer.
7555 (rust_language::lookup_symbol_nonlocal): New member function,
7556 implementation from rust_lookup_symbol_nonlocal.
7557 * symtab.c (lookup_symbol_aux): Update call to
7558 lookup_symbol_nonlocal.
7559 (basic_lookup_symbol_nonlocal): Rename to...
7560 (language_defn::lookup_symbol_nonlocal): ...this, and update
7561 header comment. Remove language_defn parameter, and replace with
7562 uses of `this'.
7563 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7564
ebe2334e
AB
75652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7566
7567 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7568 initializer.
7569 (ada_language::value_print_inner): New member function.
7570 * c-lang.c (c_language_data): Delete la_value_print_inner
7571 initializer.
7572 (cplus_language_data): Likewise.
7573 (asm_language_data): Likewise.
7574 (minimal_language_data): Likewise.
7575 * d-lang.c (d_language_data): Likewise.
7576 (d_language::value_print_inner): New member function.
7577 * f-lang.c (f_language_data): Delete la_value_print_inner
7578 initializer.
7579 (f_language::value_print_inner): New member function.
7580 * f-lang.h (f_value_print_innner): Rename to...
7581 (f_value_print_inner): ...this (note spelling of 'inner').
7582 * f-valprint.c (f_value_print_innner): Rename to...
7583 (f_value_print_inner): ...this (note spelling of 'inner').
7584 * go-lang.c (go_language_data): Delete la_value_print_inner
7585 initializer.
7586 (go_language::value_print_inner): New member function.
7587 * language.c (language_defn::value_print_inner): Define new member
7588 function.
7589 (unk_lang_value_print_inner): Delete.
7590 (unknown_language_data): Delete la_value_print_inner initializer.
7591 (unknown_language::value_print_inner): New member function.
7592 (auto_language_data): Delete la_value_print_inner initializer.
7593 (auto_language::value_print_inner): New member function.
7594 * language.h (language_data): Delete la_value_print_inner field.
7595 (language_defn::value_print_inner): Delcare new member function.
7596 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7597 initializer.
7598 (m2_language::value_print_inner): New member function.
7599 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7600 initializer.
7601 * opencl-lang.c (opencl_language_data): Likewise.
7602 * p-lang.c (pascal_language_data): Likewise.
7603 (pascal_language::value_print_inner): New member function.
7604 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7605 initializer.
7606 (rust_language::value_print_inner): New member function.
7607 * valprint.c (do_val_print): Update call to value_print_inner.
7608
a1d1fa3e
AB
76092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7610
7611 * ada-lang.c (ada_language_data): Delete la_value_print
7612 initializer.
7613 (ada_language::value_print): New member function.
7614 * c-lang.c (c_language_data): Delete la_value_print initializer.
7615 (cplus_language_data): Likewise.
7616 (asm_language_data): Likewise.
7617 (minimal_language_data): Likewise.
7618 * d-lang.c (d_language_data): Likewise.
7619 * f-lang.c (f_language_data): Likewise.
7620 * go-lang.c (go_language_data): Likewise.
7621 * language.c (unk_lang_value_print): Delete.
7622 (language_defn::value_print): Define new member function.
7623 (unknown_language_data): Delete la_value_print initializer.
7624 (unknown_language::value_print): New member function.
7625 (auto_language_data): Delete la_value_print initializer.
7626 (auto_language::value_print): New member function.
7627 * language.h (language_data): Delete la_value_print field.
7628 (language_defn::value_print): Declare new member function.
7629 (LA_VALUE_PRINT): Update call to value_print.
7630 * m2-lang.c (m2_language_data): Delete la_value_print 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 (pascal_language::value_print): New member function.
7635 * rust-lang.c (rust_language_data): Delete la_value_print
7636 initializer.
7637
f16a9f57
AB
76382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7639
7640 * ada-lang.c (ada_watch_location_expression): Rename to
7641 ada_language::watch_location_expression.
7642 (ada_language_data): Delete la_watch_location_expression
7643 initializer.
7644 (ada_language::watch_location_expression): New member function,
7645 implementation from ada_watch_location_expression.
7646 * breakpoint.c (watch_command_1): Update call to
7647 watch_location_expression.
7648 * c-lang.c (c_watch_location_expression): Rename to
7649 language_defn::watch_location_expression.
7650 (c_language_data): Delete la_watch_location_expression
7651 initializer.
7652 (cplus_language_data): Likewise.
7653 (asm_language_data): Likewise.
7654 (minimal_language_data): Likewise.
7655 * c-lang.h (c_watch_location_expression): Delete declaration.
7656 * d-lang.c (d_language_data): Delete la_watch_location_expression
7657 initializer.
7658 * f-lang.c (f_language_data): Likewise.
7659 * go-lang.c (go_language_data): Likewise.
7660 * language.c (language_defn::watch_location_expression): Member
7661 function implementation from c_watch_location_expression.
7662 (unknown_language_data): Delete la_watch_location_expression
7663 initializer.
7664 (auto_language_data): Likewise.
7665 * language.h (language_data): Delete la_watch_location_expression
7666 field.
7667 (language_defn::watch_location_expression): Declare new member
7668 function.
7669 * m2-lang.c (m2_language_data): Delete
7670 la_watch_location_expression initializer.
7671 * objc-lang.c (objc_language_data): Likewise.
7672 * opencl-lang.c (opencl_language_data): Likewise.
7673 * p-lang.c (pascal_language_data): Likewise.
7674 * rust-lang.c (rust_watch_location_expression): Rename to
7675 rust_language::watch_location_expression.
7676 (rust_language_data): Delete la_watch_location_expression
7677 initializer.
7678 (rust_language::watch_location_expression): New member function,
7679 implementation from rust_watch_location_expression.
7680
7e56227d
AB
76812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7682
7683 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7684 ada_language::collect_symbol_completion_matches.
7685 (ada_language_data): Delete la_collect_symbol_completion_matches
7686 initializer.
7687 (ada_language::collect_symbol_completion_matches): New member
7688 function, implementation from
7689 ada_collect_symbol_completion_matches.
7690 * c-lang.c (c_language_data): Delete
7691 la_collect_symbol_completion_matches initializer.
7692 (cplus_language_data): Likewise.
7693 (asm_language_data): Likewise.
7694 (minimal_language_data): Likewise.
7695 * d-lang.c (d_language_data): Likewise.
7696 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7697 f_language::collect_symbol_completion_matches.
7698 (f_language_data): Delete la_collect_symbol_completion_matches
7699 initializer.
7700 (f_language::collect_symbol_completion_matches) New member
7701 function, implementation from f_collect_symbol_completion_matches.
7702 * go-lang.c (go_language_data): Delete
7703 la_collect_symbol_completion_matches initializer.
7704 * language.c (unknown_language_data): Likewise.
7705 (auto_language_data): Likewise.
7706 * language.h (language_data): Delete
7707 la_collect_symbol_completion_matches field.
7708 (language_defn::collect_symbol_completion_matches): New member
7709 function.
7710 * m2-lang.c (m2_language_data): Delete
7711 la_collect_symbol_completion_matches initializer.
7712 * objc-lang.c (objc_language_data): Likewise.
7713 * opencl-lang.c (opencl_language_data): Likewise.
7714 * p-lang.c (pascal_language_data): Likewise.
7715 * rust-lang.c (rust_language_data): Likewise.
7716 * symtab.c (default_collect_symbol_completion_matches): Delete.
7717 (collect_symbol_completion_matches): Update call to
7718 collect_symbol_completion_matches.
7719 (collect_symbol_completion_matches_type): Likewise.
7720 * symtab.h (default_collect_symbol_completion_matches): Delete
7721 declaration.
7722
53fc67f8
AB
77232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7724
7725 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7726 (ada_language_data): Delete la_word_break_characters initializer.
7727 (ada_language::word_break_characters): New member function.
7728 * c-lang.c (c_language_data): Delete la_word_break_characters
7729 initializer.
7730 (cplus_language_data): Likewise.
7731 (asm_language_data): Likewise.
7732 (minimal_language_data): Likewise.
7733 * completer.c: Update global comment.
7734 (advance_to_expression_complete_word_point): Update call to
7735 word_break_characters.
7736 (complete_files_symbols): Likewise.
7737 (complete_line_internal_1): Likewise.
7738 (default_completer_handle_brkchars): Likewise.
7739 (skip_quoted_chars): Likewise.
7740 * d-lang.c (d_language_data): Delete la_word_break_characters
7741 initializer.
7742 * f-lang.c (f_word_break_characters): Delete.
7743 (f_language_data): Delete la_word_break_characters initializer.
7744 (f_language::word_break_characters): New member function.
7745 * go-lang.c (go_language_data): Delete la_word_break_characters
7746 initializer.
7747 * language.c (unknown_language_data): Likewise.
7748 (auto_language_data): Likewise.
7749 * language.h (default_word_break_characters): Move declaration to
7750 earlier in the file.
7751 (language_data): Delete la_word_break_characters field.
7752 (language_defn::word_break_characters): New member function.
7753 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7754 initializer.
7755 * objc-lang.c (objc_language_data): Likewise.
7756 * opencl-lang.c (opencl_language_data): Likewise.
7757 * p-lang.c (pascal_language_data): Likewise.
7758 * rust-lang.c (rust_language_data): Likewise.
7759
c9debfb9
AB
77602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7761
7762 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7763 (ada_language_data): Delete la_get_symbol_name_matcher
7764 initializer.
7765 (language_defn::get_symbol_name_matcher_inner): New member
7766 function.
7767 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7768 initializer.
7769 (cplus_language_data): Likewise.
7770 (cplus_language::get_symbol_name_matcher_inner): New member
7771 function.
7772 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7773 (minimal_language_data): Likewise.
7774 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7775 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7776 initializer.
7777 * dictionary.c (iter_match_first_hashed): Update call to
7778 get_symbol_name_matcher.
7779 (iter_match_next_hashed): Likewise.
7780 (iter_match_next_linear): Likewise.
7781 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7782 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7783 initializer.
7784 (f_language::get_symbol_name_matcher_inner): New member function.
7785 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7786 initializer.
7787 * language.c (default_symbol_name_matcher): Update header comment,
7788 make static.
7789 (language_defn::get_symbol_name_matcher): New definition.
7790 (language_defn::get_symbol_name_matcher_inner): Likewise.
7791 (get_symbol_name_matcher): Delete.
7792 (unknown_language_data): Delete la_get_symbol_name_matcher
7793 initializer.
7794 (auto_language_data): Likewise.
7795 * language.h (language_data): Delete la_get_symbol_name_matcher
7796 field.
7797 (language_defn::get_symbol_name_matcher): New member function.
7798 (language_defn::get_symbol_name_matcher_inner): Likewise.
7799 (default_symbol_name_matcher): Delete declaration.
7800 * linespec.c (find_methods): Update call to
7801 get_symbol_name_matcher.
7802 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7803 initializer.
7804 * minsyms.c (lookup_minimal_symbol): Update call to
7805 get_symbol_name_matcher.
7806 (iterate_over_minimal_symbols): Likewise.
7807 * objc-lang.c (objc_language_data): Delete
7808 la_get_symbol_name_matcher initializer.
7809 * opencl-lang.c (opencl_language_data): Likewise.
7810 * p-lang.c (pascal_language_data): Likewise.
7811 * psymtab.c (psymbol_name_matches): Update call to
7812 get_symbol_name_matcher.
7813 * rust-lang.c (rust_language_data): Delete
7814 la_get_symbol_name_matcher initializer.
7815 * symtab.c (symbol_matches_search_name): Update call to
7816 get_symbol_name_matcher.
7817 (compare_symbol_name): Likewise.
7818
9a49ad8c
AB
78192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7820
7821 * ada-lang.c (ada_language_data): Delete la_compute_program
7822 initializer.
7823 * c-lang.c (c_language_data): Likewise.
7824 (c_language::compute_program): New member function.
7825 (cplus_language_data): Delete la_compute_program initializer.
7826 (cplus_language::compute_program): New member function.
7827 (asm_language_data): Delete la_compute_program initializer.
7828 (minimal_language_data): Likewise.
7829 * c-lang.h (c_compute_program): Update comment.
7830 (cplus_compute_program): Likewise.
7831 * compile/compile-c-support.c (c_compute_program): Likewise.
7832 (cplus_compute_program): Likewise.
7833 * compile/compile.c (compile_to_object): Update call to
7834 la_compute_program.
7835 * d-lang.c (d_language_data): Delete la_compute_program
7836 initializer.
7837 * f-lang.c (f_language_data): Likewise.
7838 * go-lang.c (go_language_data): Likewise.
7839 * language.c (unknown_language_data): Likewise.
7840 (auto_language_data): Likewise.
7841 * language.h (language_data): Delete la_compute_program field.
7842 (language_defn::compute_program): New member function.
7843 * m2-lang.c (m2_language_data): Delete la_compute_program
7844 initializer.
7845 * objc-lang.c (objc_language_data): Likewise.
7846 * opencl-lang.c (opencl_language_data): Likewise.
7847 * p-lang.c (pascal_language_data): Likewise.
7848 * rust-lang.c (rust_language_data): Likewise.
7849
eff93b4d
AB
78502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7851
7852 * ada-lang.c (ada_language_data) Delete
7853 la_class_name_from_physname initializer.
7854 * c-lang.c (c_language_data): Likewise.
7855 (cplus_language_data): Likewise.
7856 (cplus_language::class_name_from_physname): New member function.
7857 (asm_language_data): Delete la_class_name_from_physname
7858 initializer.
7859 (minimal_language_data): Likewise.
7860 * d-lang.c (d_language_data): Likewise.
7861 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7862 method on language_defn class.
7863 (guess_full_die_structure_name): Likewise.
7864 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7865 initializer.
7866 * go-lang.c (go_language_data): Likewise.
7867 * language.c (language_class_name_from_physname): Delete.
7868 (unk_lang_class_name): Delete.
7869 (unknown_language_data): Delete la_class_name_from_physname
7870 initializer.
7871 (auto_language_data): Likewise.
7872 * language.h (language_data): Delete la_class_name_from_physname
7873 field.
7874 (language_defn::class_name_from_physname): New function.
7875 (language_class_name_from_physname): Delete declaration.
7876 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7877 initializer.
7878 * objc-lang.c (objc_language_data): Likewise.
7879 * opencl-lang.c (opencl_language_data): Likewise.
7880 * p-lang.c (pascal_language_data): Likewise.
7881 * rust-lang.c (rust_language_data): Likewise.
7882
de543742
TT
78832020-06-16 Tom Tromey <tom@tromey.com>
7884
7885 * tui/tui-data.h (STATUS_NAME): New macro.
7886 * tui/tui-layout.c (tui_remove_some_windows)
7887 (initialize_known_windows, tui_register_window)
7888 (tui_layout_split::remove_windows, initialize_layouts)
7889 (tui_new_layout_command): Don't use hard-coded window names.
7890
a350efd4
TT
78912020-06-16 Tom Tromey <tom@tromey.com>
7892
7893 PR tui/25348:
7894 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7895 tui_initialize_readline. Only run once. Call rl_initialize.
7896 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7897 tui_initialize_readline.
7898 * tui/tui-io.c (tui_setup_io): Call
7899 tui_ensure_readline_initialized.
7900 * tui/tui-interp.c (tui_interp::init): Update.
7901
39ec0490
TT
79022020-06-16 Tom Tromey <tom@tromey.com>
7903
7904 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7905 Also preserve the status window.
7906
d2d1ea20
TT
79072020-06-16 Tom Tromey <tom@tromey.com>
7908
7909 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7910 where m_window==nullptr.
7911
66920317
TT
79122020-06-15 Tom Tromey <tromey@adacore.com>
7913
7914 * windows-nat.c (windows_nat::handle_output_debug_string):
7915 Update.
7916 (windows_nat::handle_ms_vc_exception): Update.
7917 * target.h (target_read_string): Change API.
7918 * target.c (target_read_string): Change API.
7919 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7920 Update.
7921 * solib-frv.c (frv_current_sos): Update.
7922 * solib-dsbt.c (dsbt_current_sos): Update.
7923 * solib-darwin.c (darwin_current_sos): Update.
7924 * linux-thread-db.c (inferior_has_bug): Update.
7925 * expprint.c (print_subexp_standard): Update.
7926 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7927 (ada_exception_message_1): Update.
7928
a5d871dd
TT
79292020-06-15 Tom Tromey <tromey@adacore.com>
7930
7931 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7932
670e35fa
TT
79332020-06-15 Tom Tromey <tromey@adacore.com>
7934
7935 * valprint.c (read_string): Update comment.
7936 * target.c (MIN): Remove.
7937 (target_read_string): Rewrite.
7938
f5272a3b
TT
79392020-06-15 Tom Tromey <tromey@adacore.com>
7940
7941 * corefile.c (read_memory_string): Remove.
7942 * ada-valprint.c (ada_value_print_ptr): Update.
7943 * ada-lang.h (ada_tag_name): Change return type.
7944 * ada-lang.c (type_from_tag): Update.
7945 (ada_tag_name_from_tsd): Change return type. Use
7946 target_read_string.
7947 (ada_tag_name): Likewise.
7948 * gdbcore.h (read_memory_string): Don't declare.
7949
2c074f49
HD
79502020-06-14 Hannes Domani <ssbssa@yahoo.de>
7951
7952 * symtab.c (rbreak_command): Ignore Windows drive colon.
7953
6a17d503
SM
79542020-06-12 Simon Marchi <simon.marchi@efficios.com>
7955
7956 * NEWS: Mention removed GDBserver host support.
7957
453c733f
NC
79582020-06-12 Nelson Chu <nelson.chu@sifive.com>
7959
7960 * features/riscv/rebuild-csr-xml.sh: Updated.
7961
2b4e6a3f
TT
79622020-06-11 Tom Tromey <tom@tromey.com>
7963
7964 PR gdb/18318:
7965 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7966
4412332f
JG
79672020-06-09 Jonny Grant <jg@jguk.org>
79682020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7969
7970 * main.c (captured_main_1): Don't print new line after help.
7971 (print_gdb_help): add mailing list and IRC channel information
7972 to --help. Add new lines between items in the footer. Remove
7973 quotes around bug url.
7974
2f33032a
KS
79752020-06-11 Keith Seitz <keiths@redhat.com>
7976
7977 PR gdb/21356
7978 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7979 Resolve typedefs for type length calculations.
7980
7ab96794
TV
79812020-06-10 Tom de Vries <tdevries@suse.de>
7982
7983 PR ada/24713
7984 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7985 (write_psymbols): Enable .gdb_index for ada.
7986 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7987 ada.
7988
e5f3ece2
TV
79892020-06-10 Tom de Vries <tdevries@suse.de>
7990
7991 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7992 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7993 namei" instead of "const char *name" argument.
7994 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7995 dw2_symtab_iter_init.
7996
940da03e
SM
79972020-06-08 Simon Marchi <simon.marchi@efficios.com>
7998
7999 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8000 to use type::field and field::type instead.
8001
b6cdac4b
SM
80022020-06-08 Simon Marchi <simon.marchi@efficios.com>
8003
8004 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8005 to use field::type instead.
8006
5d14b6e5
SM
80072020-06-08 Simon Marchi <simon.marchi@efficios.com>
8008
8009 * gdbtypes.h (struct field) <type, set_type>: New methods.
8010 Rename `type` field to...
8011 <m_type>: ... this. Change references throughout to use type or
8012 set_type methods.
8013 (FIELD_TYPE): Use field::type. Change call sites that modify
8014 the field's type to use field::set_type instead.
8015
3d967001
SM
80162020-06-08 Simon Marchi <simon.marchi@efficios.com>
8017
8018 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8019 to use type::index_type instead.
8020
262abc0d
SM
80212020-06-08 Simon Marchi <simon.marchi@efficios.com>
8022
8023 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8024 methods.
8025 (TYPE_INDEX_TYPE): Use type::index_type.
8026 * gdbtypes.c (create_array_type_with_stride): Likewise.
8027
82836c92
TT
80282020-06-07 Tom Tromey <tom@tromey.com>
8029
8030 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8031 parameter.
8032 (generic_value_print): Update.
8033
940dace9
AB
80342020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8035
8036 Revert commit 982a38f60b0.
8037 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8038
982a38f6
AB
80392020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8040
8041 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8042 avoid use after free.
8043
82f06518
TV
80442020-06-05 Tom de Vries <tdevries@suse.de>
8045
8046 * NEWS: Fix typos.
8047
f8c41851
SM
80482020-06-04 Simon Marchi <simon.marchi@efficios.com>
8049
8050 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8051 the per_bfd object.
8052 (dwarf2_read_debug_names): Likewise.
8053 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8054 object when re-using a per_bfd object with an index.
8055
f9b5d5ea
TV
80562020-06-03 Tom de Vries <tdevries@suse.de>
8057
8058 PR symtab/26046
8059 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8060 children for C++.
8061 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8062 DW_TAG_subprogram.
8063
f6eee2d0
AB
80642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8065
8066 * ada-lang.c (ada_language_data): Delete skip_trampoline
8067 initializer.
8068 * c-lang.c (c_language_data): Likewise.
8069 (cplus_language_data): Likewise.
8070 (cplus_language::skip_trampoline): New member function.
8071 (asm_language_data): Delete skip_trampoline initializer.
8072 (minimal_language_data): Likewise.
8073 * d-lang.c (d_language_data): Likewise.
8074 * f-lang.c (f_language_data): Likewise.
8075 * go-lang.c (go_language_data): Likewise.
8076 * language.c (unk_lang_trampoline): Delete function.
8077 (skip_language_trampoline): Update.
8078 (unknown_language_data): Delete skip_trampoline initializer.
8079 (auto_language_data): Likewise.
8080 * language.h (language_data): Delete skip_trampoline field.
8081 (language_defn::skip_trampoline): New function.
8082 * m2-lang.c (m2_language_data): Delete skip_trampoline
8083 initializer.
8084 * objc-lang.c (objc_skip_trampoline): Delete function, move
8085 implementation to objc_language::skip_trampoline.
8086 (objc_language_data): Delete skip_trampoline initializer.
8087 (objc_language::skip_trampoline): New member function with
8088 implementation from objc_skip_trampoline.
8089 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8090 initializer.
8091 * p-lang.c (pascal_language_data): Likewise.
8092 * rust-lang.c (rust_language_data): Likewise.
8093
0a50df5d
AB
80942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8095
8096 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8097 (ada_language::demangle): New member function.
8098 * c-lang.c (c_language_data): Delete la_demangle initializer.
8099 (cplus_language_data): Delete la_demangle initializer.
8100 (cplus_language::demangle): New member function.
8101 (asm_language_data): Delete la_demangle initializer.
8102 (minimal_language_data): Delete la_demangle initializer.
8103 * d-lang.c (d_language_data): Delete la_demangle initializer.
8104 (d_language::demangle): New member function.
8105 * f-lang.c (f_language_data): Delete la_demangle initializer.
8106 (f_language::demangle): New member function.
8107 * go-lang.c (go_language_data): Delete la_demangle initializer.
8108 (go_language::demangle): New member function.
8109 * language.c (language_demangle): Update.
8110 (unk_lang_demangle): Delete.
8111 (unknown_language_data): Delete la_demangle initializer.
8112 (unknown_language::demangle): New member function.
8113 (auto_language_data): Delete la_demangle initializer.
8114 (auto_language::demangle): New member function.
8115 * language.h (language_data): Delete la_demangle field.
8116 (language_defn::demangle): New function.
8117 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8118 * objc-lang.c (objc_language_data): Delete la_demangle
8119 initializer.
8120 (objc_language::demangle): New member function.
8121 * opencl-lang.c (opencl_language_data): Delete la_demangle
8122 initializer.
8123 * p-lang.c (pascal_language_data): Likewise.
8124 * rust-lang.c (rust_language_data): Likewise.
8125 (rust_language::demangle): New member function.
8126
fbfb0a46
AB
81272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8128
8129 * ada-lang.c (ada_language_data): Delete la_print_type
8130 initializer.
8131 (ada_language::print_type): New member function.
8132 * c-lang.c (c_language_data): Delete la_print_type initializer.
8133 (c_language::print_type): New member function.
8134 (cplus_language_data): Delete la_print_type initializer.
8135 (cplus_language::print_type): New member function.
8136 (asm_language_data): Delete la_print_type initializer.
8137 (asm_language::print_type): New member function.
8138 (minimal_language_data): Delete la_print_type initializer.
8139 (minimal_language::print_type): New member function.
8140 * d-lang.c (d_language_data): Delete la_print_type initializer.
8141 (d_language::print_type): New member function.
8142 * f-lang.c (f_language_data): Delete la_print_type initializer.
8143 (f_language::print_type): New member function.
8144 * go-lang.c (go_language_data): Delete la_print_type initializer.
8145 (go_language::print_type): New member function.
8146 * language.c (unk_lang_print_type): Delete.
8147 (unknown_language_data): Delete la_print_type initializer.
8148 (unknown_language::print_type): New member function.
8149 (auto_language_data): Delete la_print_type initializer.
8150 (auto_language::print_type): New member function.
8151 * language.h (language_data): Delete la_print_type field.
8152 (language_defn::print_type): New function.
8153 (LA_PRINT_TYPE): Update.
8154 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8155 (m2_language::print_type): New member function.
8156 * objc-lang.c (objc_language_data): Delete la_print_type
8157 initializer.
8158 (objc_language::print_type): New member function.
8159 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8160 to opencl_language::print_type.
8161 (opencl_language_data): Delete la_print_type initializer.
8162 (opencl_language::print_type): New member function, implementation
8163 from opencl_print_type.
8164 * p-lang.c (pascal_language_data): Delete la_print_type
8165 initializer.
8166 (pascal_language::print_type): New member function.
8167 * rust-lang.c (rust_print_type): Delete, implementation moved to
8168 rust_language::print_type.
8169 (rust_language_data): Delete la_print_type initializer.
8170 (rust_language::print_type): New member function, implementation
8171 from rust_print_type.
8172
6f827019
AB
81732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8174
8175 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8176 implementation moves to...
8177 (ada_language::sniff_from_mangled_name): ...here. Update return
8178 type.
8179 (ada_language_data): Delete la_sniff_from_mangled_name
8180 initializer.
8181 * c-lang.c (c_language_data): Likewise.
8182 (cplus_language_data): Likewise.
8183 (cplus_language::sniff_from_mangled_name): New member function,
8184 implementation taken from gdb_sniff_from_mangled_name.
8185 (asm_language_data): Delete la_sniff_from_mangled_name
8186 initializer.
8187 (minimal_language_data): Likewise.
8188 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8189 implementation moves to cplus_language::sniff_from_mangled_name.
8190 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8191 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8192 moves to...
8193 (d_language::sniff_from_mangled_name): ...here.
8194 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8195 * f-lang.c (f_language_data): Likewise.
8196 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8197 moves to...
8198 (go_language::sniff_from_mangled_name): ...here.
8199 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8200 * language.c (language_sniff_from_mangled_name): Delete.
8201 (unknown_language_data): Delete la_sniff_from_mangled_name
8202 initializer.
8203 (auto_language_data): Likewise.
8204 * language.h (language_data): Delete la_sniff_from_mangled_name
8205 field.
8206 (language_defn::sniff_from_mangled_name): New function.
8207 (language_sniff_from_mangled_name): Delete declaration.
8208 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8209 field.
8210 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8211 implementation moves to...
8212 (objc_language::sniff_from_mangled_name): ...here.
8213 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8214 * opencl-lang.c (opencl_language_data): Likewise.
8215 * p-lang.c (pascal_language_data): Likewise.
8216 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8217 implementation moves to...
8218 (rust_language::sniff_from_mangled_name): ...here.
8219 (rust_language_data): Delete la_sniff_from_mangled_name
8220 initializer.
8221 * symtab.c (symbol_find_demangled_name): Call
8222 sniff_from_mangled_name member function.
8223
fb8006fd
AB
82242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8225
8226 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8227 initializer.
8228 * c-lang.c (c_language_data): Likewise.
8229 (cplus_language_data): Likewise.
8230 (cplus_language::search_name_hash): New member function.
8231 (asm_language_data): Delete la_search_name_hash initializer.
8232 (minimal_language_data): Likewise.
8233 * d-lang.c (d_language_data): Likewise.
8234 * dictionary.c (default_search_name_hash): Rename to...
8235 (language_defn::search_name_hash): ...this.
8236 * f-lang.c (f_language_data): Likewise.
8237 (f_language::search_name_hash): New member function.
8238 * go-lang.c (go_language_data): Delete la_search_name_hash
8239 initializer.
8240 * language.c (unknown_language_data): Likewise.
8241 (auto_language_data): Likewise.
8242 * language.h (struct language_data): Delete la_search_name_hash
8243 field.
8244 (language_defn::search_name_hash): Declare new member function.
8245 (default_search_name_hash): Delete declaration.
8246 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8247 initializer.
8248 * objc-lang.c (objc_language_data): Likewise.
8249 * opencl-lang.c (opencl_language_data): Likewise.
8250 * p-lang.c (pascal_language_data): Likewise.
8251 * rust-lang.c (rust_language_data): Likewise.
8252 * symtab.c (search_name_hash): Update call.
8253
8e25bafe
AB
82542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8255
8256 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8257 initializer.
8258 * c-lang.c (class compile_instance): Declare.
8259 (c_language_data): Delete la_get_compile_instance initializer.
8260 (c_language::get_compile_instance): New member function.
8261 (cplus_language_data): Delete la_get_compile_instance initializer.
8262 (cplus_language::get_compile_instance): New member function.
8263 (asm_language_data): Delete la_get_compile_instance initializer.
8264 (minimal_language_data): Likewise.
8265 * c-lang.h (c_get_compile_context): Update comment.
8266 (cplus_get_compile_context): Update comment.
8267 * compile/compile.c (compile_to_object): Update calls, don't rely
8268 on function pointer being NULL.
8269 * d-lang.c (d_language_data): Delete la_get_compile_instance
8270 initializer.
8271 * f-lang.c (f_language_data): Likewise.
8272 * go-lang.c (go_language_data): Likewise.
8273 * language.c (unknown_language_data): Likewise.
8274 (auto_language_data): Likewise.
8275 * language.h (language_data): Delete la_get_compile_instance field.
8276 (language_defn::get_compile_instance): New member function.
8277 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8278 initializer.
8279 * objc-lang.c (objc_language_data): Likewise.
8280 * opencl-lang.c (opencl_language_data): Likewise.
8281 * p-lang.c (pascal_language_data): Likewise.
8282 * rust-lang.c (rust_language_data): Likewise.
8283
4009ee92
AB
82842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8285
8286 * ada-lang.c (ada_add_all_symbols): Update comment.
8287 (ada_iterate_over_symbols): Delete, move implementation to...
8288 (ada_language::iterate_over_symbols): ...here, a new member
8289 function, rewrite to use range based for loop.
8290 (ada_language_data): Delete la_iterate_over_symbols initializer.
8291 * c-lang.c (c_language_data): Likewise.
8292 (cplus_language_data): Likewise.
8293 (asm_language_data): Likewise.
8294 (minimal_language_data): Likewise.
8295 * d-lang.c (d_language_data): Likewise.
8296 * f-lang.c (f_language_data): Likewise.
8297 * go-lang.c (go_language_data): Likewise.
8298 * language.c (unknown_language_data): Likewise.
8299 (auto_language_data): Likewise.
8300 * language.h (language_data): Delete la_iterate_over_symbols field.
8301 (language_defn::iterate_over_symbols): New member function.
8302 (LA_ITERATE_OVER_SYMBOLS): Update.
8303 * linespec.c (iterate_over_all_matching_symtabs): Update.
8304 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8305 initializer.
8306 * objc-lang.c (objc_language_data): Likewise.
8307 * opencl-lang.c (opencl_language_data): Likewise.
8308 * p-lang.c (pascal_language_data): Likewise.
8309 * rust-lang.c (rust_language_data): Likewise.
8310
54f4ca46
AB
83112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8312
8313 * ada-lang.c (ada_language_data): Delete
8314 la_lookup_transparent_type initializer.
8315 * c-lang.c (c_language_data): Likewise.
8316 (cplus_language_data): Likewise.
8317 (cplus_language::lookup_transparent_type): New member function.
8318 (asm_language_data): Delete la_lookup_transparent_type
8319 initializer.
8320 (minimal_language_data): Likewise.
8321 * d-lang.c (d_language_data): Likewise.
8322 * f-lang.c (f_language_data): Likewise.
8323 * go-lang.c (go_language_data): Likewise.
8324 * language.c (unknown_language_data): Likewise.
8325 (auto_language_data): Likewise.
8326 * language.h (struct language_data): Delete
8327 la_lookup_transparent_type field.
8328 (language_defn::lookup_transparent_type): New member function.
8329 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8330 initializer.
8331 * objc-lang.c (objc_language_data): Likewise.
8332 * opencl-lang.c (opencl_language_data): Likewise.
8333 * p-lang.c (pascal_language_data): Likewise.
8334 * rust-lang.c (rust_language_data): Likewise.
8335 * symtab.c (symbol_matches_domain): Update call.
8336
1fb314aa
AB
83372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8338
8339 * ada-lang.c (ada_language_arch_info): Delete function, move
8340 implementation to...
8341 (ada_language::language_arch_info): ...here, a new member
8342 function.
8343 (ada_language_data): Delete la_language_arch_info.
8344 * c-lang.c (c_language_data): Likewise.
8345 (c_language::language_arch_info): New member function.
8346 (cplus_language_arch_info): Delete function, move
8347 implementation to...
8348 (cplus_language::language_arch_info): ...here, a new member
8349 function.
8350 (cplus_language_data): Delete la_language_arch_info.
8351 (asm_language_data): Likewise.
8352 (asm_language::language_arch_info): New member function.
8353 (minimal_language_data): Delete la_language_arch_info.
8354 (minimal_language::language_arch_info): New member function.
8355 * d-lang.c (d_language_arch_info): Delete function, move
8356 implementation to...
8357 (d_language::language_arch_info): ...here, a new member
8358 function.
8359 (d_language_data): Delete la_language_arch_info.
8360 * f-lang.c (f_language_arch_info): Delete function, move
8361 implementation to...
8362 (f_language::language_arch_info): ...here, a new member
8363 function.
8364 (f_language_data): Delete la_language_arch_info.
8365 * go-lang.c (go_language_arch_info): Delete function, move
8366 implementation to...
8367 (go_language::language_arch_info): ...here, a new member
8368 function.
8369 (go_language_data): Delete la_language_arch_info.
8370 * language.c (unknown_language_data): Likewise.
8371 (unknown_language::language_arch_info): New member function.
8372 (auto_language_data): Delete la_language_arch_info.
8373 (auto_language::language_arch_info): New member function.
8374 (language_gdbarch_post_init): Update call to
8375 la_language_arch_info.
8376 * language.h (language_data): Delete la_language_arch_info
8377 function pointer.
8378 (language_defn::language_arch_info): New function.
8379 * m2-lang.c (m2_language_arch_info): Delete function, move
8380 implementation to...
8381 (m2_language::language_arch_info): ...here, a new member
8382 function.
8383 (m2_language_data): Delete la_language_arch_info.
8384 * objc-lang.c (objc_language_arch_info): Delete function, move
8385 implementation to...
8386 (objc_language::language_arch_info): ...here, a new member
8387 function.
8388 (objc_language_data): Delete la_language_arch_info.
8389 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8390 implementation to...
8391 (opencl_language::language_arch_info): ...here, a new member
8392 function.
8393 (opencl_language_data): Delete la_language_arch_info.
8394 * p-lang.c (pascal_language_arch_info): Delete function, move
8395 implementation to...
8396 (pascal_language::language_arch_info): ...here, a new member
8397 function.
8398 (pascal_language_data): Delete la_language_arch_info.
8399 * rust-lang.c (rust_language_arch_info): Delete function, move
8400 implementation to...
8401 (rust_language::language_arch_info): ...here, a new member
8402 function.
8403 (rust_language_data): Delete la_language_arch_info.
8404
48448202
AB
84052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8406
8407 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8408 initializer.
8409 * c-lang.c (c_language_data): Likewise.
8410 (cplus_language_data): Likewise.
8411 (cplus_language::pass_by_reference_info): New method.
8412 (asm_language_data): Delete la_pass_by_reference initializer.
8413 (minimal_language_data): Likewise.
8414 * cp-abi.c (cp_pass_by_reference): Remove use of
8415 default_pass_by_reference.
8416 * d-lang.c (d_language_data): Likewise.
8417 * f-lang.c (f_language_data): Likewise.
8418 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8419 default_pass_by_reference.
8420 * go-lang.c (go_language_data): Likewise.
8421 * language.c (language_pass_by_reference): Update.
8422 (default_pass_by_reference): Delete.
8423 (unknown_language_data): Delete la_pass_by_reference
8424 initializer.
8425 (auto_language_data): Likewise.
8426 * language.h (struct language_data): Delete la_pass_by_reference
8427 field.
8428 (language_defn::pass_by_reference_info): New member function.
8429 (default_pass_by_reference): Delete declaration.
8430 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8431 initializer.
8432 * objc-lang.c (objc_language_data): Likewise.
8433 * opencl-lang.c (opencl_language_data): Likewise.
8434 * p-lang.c (pascal_language_data): Likewise.
8435 * rust-lang.c (rust_language_data): Likewise.
8436
15e5fd35
AB
84372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8438
8439 * ada-lang.c (ada_read_var_value): Delete function, move
8440 implementation to...
8441 (ada_language::read_var_value): ...here.
8442 (ada_language_data): Delete la_read_var_value initializer.
8443 * c-lang.c (c_language_data): Likewise.
8444 (cplus_language_data): Likewise.
8445 (minimal_language_data): Likewise.
8446 * d-lang.c (d_language_data): Likewise.
8447 * f-lang.c (f_language_data): Likewise.
8448 * findvar.c (default_read_var_value): Rename to...
8449 (language_defn::read_var_value): ...this.
8450 * findvar.c (read_var_value): Update header comment, and change to
8451 call member function instead of function pointer.
8452 * go-lang.c (go_language_data): Likewise.
8453 * language.c (unknown_language_data): Delete la_read_var_value
8454 initializer.
8455 (auto_language_data): Likewise.
8456 * language.h (struct language_data): Delete la_read_var_value
8457 field.
8458 (language_defn::read_var_value): New member function.
8459 (default_read_var_value): Delete declaration.
8460 * m2-lang.c (m2_language_data): Delete la_read_var_value
8461 initializer.
8462 * objc-lang.c (objc_language_data): Likewise.
8463 * opencl-lang.c (opencl_language_data): Likewise.
8464 * p-lang.c (pascal_language_data): Likewise.
8465 * rust-lang.c (rust_language_data): Likewise.
8466 * value.h (default_read_var_value): Delete declaration.
8467
5bd40f2a
AB
84682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8469
8470 * ada-lang.c (ada_print_array_index): Delete function, move
8471 implementation to...
8472 (ada_language::print_array_index): ...here.
8473 (ada_language_data): Delete la_print_array_index initializer.
8474 * c-lang.c (c_language_data): Likewise.
8475 (cplus_language_data): Likewise.
8476 (minimal_language_data): Likewise.
8477 * d-lang.c (d_language_data): Likewise.
8478 * f-lang.c (f_language_data): Likewise.
8479 * go-lang.c (go_language_data): Likewise.
8480 * language.c (default_print_array_index): Delete function, move
8481 implementation to...
8482 (language_defn::print_array_index): ...here.
8483 (unknown_language_data): Delete la_print_array_index initializer.
8484 (auto_language_data): Likewise.
8485 * language.h (struct language_data): Delete la_print_array_index
8486 field.
8487 (language_defn::print_array_index): New member function.
8488 (LA_PRINT_ARRAY_INDEX): Update.
8489 (default_print_array_index): Delete declaration.
8490 * m2-lang.c (m2_language_data): Delete la_print_array_index
8491 initializer.
8492 * objc-lang.c (objc_language_data): Likewise.
8493 * opencl-lang.c (opencl_language_data): Likewise.
8494 * p-lang.c (pascal_language_data): Likewise.
8495 * rust-lang.c (rust_language_data): Likewise.
8496
0874fd07
AB
84972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8498
8499 * gdb/ada-lang.c (ada_language_defn): Convert to...
8500 (ada_language_data): ...this.
8501 (class ada_language): New class.
8502 (ada_language_defn): New static global.
8503 * gdb/c-lang.c (c_language_defn): Convert to...
8504 (c_language_data): ...this.
8505 (class c_language): New class.
8506 (c_language_defn): New static global.
8507 (cplus_language_defn): Convert to...
8508 (cplus_language_data): ...this.
8509 (class cplus_language): New class.
8510 (cplus_language_defn): New static global.
8511 (asm_language_defn): Convert to...
8512 (asm_language_data): ...this.
8513 (class asm_language): New class.
8514 (asm_language_defn): New static global.
8515 (minimal_language_defn): Convert to...
8516 (minimal_language_data): ...this.
8517 (class minimal_language): New class.
8518 (minimal_language_defn): New static global.
8519 * gdb/d-lang.c (d_language_defn): Convert to...
8520 (d_language_data): ...this.
8521 (class d_language): New class.
8522 (d_language_defn): New static global.
8523 * gdb/f-lang.c (f_language_defn): Convert to...
8524 (f_language_data): ...this.
8525 (class f_language): New class.
8526 (f_language_defn): New static global.
8527 * gdb/go-lang.c (go_language_defn): Convert to...
8528 (go_language_data): ...this.
8529 (class go_language): New class.
8530 (go_language_defn): New static global.
8531 * gdb/language.c (unknown_language_defn): Remove declaration.
8532 (current_language): Initialize to nullptr, real initialization is
8533 moved to _initialize_language.
8534 (languages): Delete global.
8535 (language_defn::languages): Define.
8536 (set_language_command): Use language_defn::languages.
8537 (set_language): Likewise.
8538 (range_error): Likewise.
8539 (language_enum): Likewise.
8540 (language_def): Likewise.
8541 (add_set_language_command): Use language_def::languages for the
8542 language list, and language_def to lookup language pointers.
8543 (skip_language_trampoline): Use language_defn::languages.
8544 (unknown_language_defn): Convert to...
8545 (unknown_language_data): ...this.
8546 (class unknown_language): New class.
8547 (unknown_language_defn): New static global.
8548 (auto_language_defn): Convert to...
8549 (auto_language_data): ...this.
8550 (class auto_language): New class.
8551 (auto_language_defn): New static global.
8552 (language_gdbarch_post_init): Use language_defn::languages.
8553 (_initialize_language): Initialize current_language.
8554 * gdb/language.h (struct language_defn): Rename to...
8555 (struct language_data): ...this.
8556 (struct language_defn): New.
8557 (auto_language_defn): Delete.
8558 (unknown_language_defn): Delete.
8559 (minimal_language_defn): Delete.
8560 (ada_language_defn): Delete.
8561 (asm_language_defn): Delete.
8562 (c_language_defn): Delete.
8563 (cplus_language_defn): Delete.
8564 (d_language_defn): Delete.
8565 (f_language_defn): Delete.
8566 (go_language_defn): Delete.
8567 (m2_language_defn): Delete.
8568 (objc_language_defn): Delete.
8569 (opencl_language_defn): Delete.
8570 (pascal_language_defn): Delete.
8571 (rust_language_defn): Delete.
8572 * gdb/m2-lang.c (m2_language_defn): Convert to...
8573 (m2_language_data): ...this.
8574 (class m2_language): New class.
8575 (m2_language_defn): New static global.
8576 * gdb/objc-lang.c (objc_language_defn): Convert to...
8577 (objc_language_data): ...this.
8578 (class objc_language): New class.
8579 (objc_language_defn): New static global.
8580 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8581 (opencl_language_data): ...this.
8582 (class opencl_language): New class.
8583 (opencl_language_defn): New static global.
8584 * gdb/p-lang.c (pascal_language_defn): Convert to...
8585 (pascal_language_data): ...this.
8586 (class pascal_language): New class.
8587 (pascal_language_defn): New static global.
8588 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8589 language pointer, update comment format.
8590 * gdb/rust-lang.c (rust_language_defn): Convert to...
8591 (rust_language_data): ...this.
8592 (class rust_language): New class.
8593 (rust_language_defn): New static global.
8594
1313c56e
AB
85952020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8596
8597 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8598 member variable.
8599 <m_stmt_at_address>: New member variable.
8600 (lnp_state_machine::record_line): Don't record some lines, update
8601 tracking of is_stmt at the same address.
8602 (lnp_state_machine::lnp_state_machine): Initialise new member
8603 variables.
8604
b7ed9f3d
ST
86052020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8606
8607 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8608 "-include gnu-nat-mig.h".
8609 * gnu-nat-mig.h: New file.
8610 * gnu-nat.c: Include "gnu-nat-mig.h".
8611 (exc_server, msg_reply_server, notify_server,
8612 process_reply_server): Remove declarations.
8613
14a8ad62
ST
86142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8615
8616 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8617 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8618 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8619 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8620 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8621 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8622 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8623 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8624 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8625 to gnu_nat_target class.
8626 * gnu-nat.c: Likewise.
8627 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8628 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8629 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8630 object.
8631 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8632 instead of `gnu_target'.
8633
0af5e106
ST
86342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8635
8636 * i386-gnu-tdep.c: Include "gdbcore.h"
8637 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8638 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8639 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8640 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8641 i386_gnu_sigcontext_addr): New functions
8642 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8643 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8644 tdep.
8645
078f2fc9
ST
86462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8647
8648 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8649 before fork_inferior call. Avoid calling it if target_is_pushed returns
8650 true.
8651
53dff92c
ST
86522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8653
8654 * gnu-nat.h (gnu_target): New variable declaration.
8655 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8656 gnu_target.
8657 * gnu-nat.c (gnu_target): New variable.
8658 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8659 add_thread_silent, and add_thread calls.
8660 (gnu_nat_target::create_inferior): Pass gnu_target to
8661 add_thread_silent, thread_change_ptid call.
8662 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8663 call.
8664
5a8b8627
ST
86652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8666
8667 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8668 (gnu_nat_target::find_memory_regions): Remove unused
8669 `old_address' variable.
8670
366f550a
ST
86712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8672
8673 * gnu-nat.c: Include "gdbarch.h".
8674
f14871bf
ST
86752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8676
8677 * reply_mig_hack.awk (Error return): Cast function through
8678 void *, to bypass compiler function call check.
8679
c6887cfb
ST
86802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8681
8682 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8683 $(srcdir)/reply_mig_hack.awk.
8684
6930bffe
ST
86852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8686
8687 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8688
112c22ed
JG
86892020-05-30 Jonny Grant <jg@jguk.org>
8690
8691 * configure.ac (ACX_BUGURL): change bug URL to https.
8692
f68f85b5
PA
86932020-05-30 Pedro Alves <palves@redhat.com>
8694
8695 * cp-support.c (replace_typedefs_template): New.
8696 (replace_typedefs_qualified_name): Handle
8697 DEMANGLE_COMPONENT_TEMPLATE.
8698
976ca316
SM
86992020-05-29 Simon Marchi <simon.marchi@efficios.com>
8700
8701 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8702 dwarf2/index-cache.h, dwarf2/index-write.c,
8703 dwarf2/index-write.h, dwarf2/line-header.c,
8704 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8705 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8706 variables and fields from `dwarf2_per_objfile` to just
8707 `per_objfile` throughout.
8708
989ade05
SM
87092020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8710
8711 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8712 <push_dwarf_reg_entry_value>: Add comment.
8713
c47bae85
KB
87142020-05-28 Kevin Buettner <kevinb@redhat.com>
8715 Keith Seitz <keiths@redhat.com>
8716
8717 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8718 instead of PyEval_ReleaseLock.
8719 (class gdbpy_gil): Move to earlier in file.
8720 (finalize_python): Set gdb_python_initialized.
8721 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8722 when not initialized.
8723
44486dcf
SM
87242020-05-28 Simon Marchi <simon.marchi@efficios.com>
8725
8726 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8727 <push_dwarf_reg_entry_value>: Remove assert. Override
8728 per_objfile with caller_per_objfile.
8729
f030440d
TV
87302020-05-28 Tom de Vries <tdevries@suse.de>
8731
8732 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8733 PR gold/15646 workaround to symbol kind "type".
8734
f0fbb768
TT
87352020-05-27 Tom Tromey <tromey@adacore.com>
8736
8737 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8738
af0b2a3e
TT
87392020-05-27 Tom Tromey <tromey@adacore.com>
8740
8741 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8742 Use htab_find_with_hash.
8743 <add_abbrev>: Remove "abbrev_number" parameter.
8744 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8745 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8746 (hash_abbrev): Add comment.
8747 (abbrev_table::lookup_abbrev): Move to header file.
8748 (abbrev_table::read): Update.
8749
7d00ffec
TT
87502020-05-27 Tom Tromey <tromey@adacore.com>
8751
8752 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8753 method.
8754 <canonical_name>: New member.
8755 <raw_name>: Rename from "name".
8756 (partial_die_info): Initialize canonical_name.
8757 (scan_partial_symbols): Check raw_name.
8758 (partial_die_parent_scope, partial_die_full_name)
8759 (add_partial_symbol, add_partial_subprogram)
8760 (add_partial_enumeration, load_partial_dies): Use "name" method.
8761 (partial_die_info::name): New method.
8762 (partial_die_info::read, guess_partial_die_structure_name)
8763 (partial_die_info::fixup): Update.
8764
697bba18
TT
87652020-05-27 Tom Tromey <tromey@adacore.com>
8766
8767 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8768 <get_ref_die_offset>: Inline.
8769 <get_ref_die_offset_complaint>: New method.
8770 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8771 (attribute::get_ref_die_offset_complaint): Rename from
8772 get_ref_die_offset. Just issue complaint.
8773
c17ace43
HD
87742020-05-27 Hannes Domani <ssbssa@yahoo.de>
8775
8776 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8777
96445f0b
HD
87782020-05-27 Hannes Domani <ssbssa@yahoo.de>
8779
8780 * exec.c (exec_file_attach): Use errno value of first openp failure.
8781
ac637ec3
HD
87822020-05-27 Hannes Domani <ssbssa@yahoo.de>
8783
8784 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8785 Don't close thread handle.
8786
17ee85fc
TT
87872020-05-27 Tom Tromey <tom@tromey.com>
8788 Simon Marchi <simon.marchi@efficios.com>
8789
8790 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8791 shared_ptr.
8792 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8793 member.
8794 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8795 dwarf2_per_bfd_objfile_data_key>: New globals.
8796 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8797 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8798 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8799 shared.
8800 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8801 short-circuit when sharing.
8802 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8803 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8804
39b16f87
SM
88052020-05-27 Simon Marchi <simon.marchi@efficios.com>
8806
8807 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8808 to...
8809 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8810 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8811
fcf23d5b
SM
88122020-05-27 Simon Marchi <simon.marchi@efficios.com>
8813
8814 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8815 build_name_components, find_name_components_bounds>:
8816 Add per_objfile parameter.
8817 (struct mapped_index) <symbol_name_at>: Likewise.
8818 (struct mapped_debug_names): Remove constructor.
8819 <dwarf2_per_objfile>: Remove field.
8820 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8821 (mapped_index_base::find_name_components_bounds,
8822 mapped_index_base::build_name_components,
8823 dw2_expand_symtabs_matching_symbol): Likewise.
8824 (class mock_mapped_index) <symbol_name_at>: Likewise.
8825 (check_match): Likewise.
8826 (check_find_bounds_finds): Likewise.
8827 (test_mapped_index_find_name_component_bounds): Update.
8828 (CHECK_MATCH): Update.
8829 (dw2_expand_symtabs_matching): Update.
8830 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8831 per_objfile parameter.
8832 <find_vec_in_debug_names>: Likewise.
8833 <m_per_objfile>: New field.
8834 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8835 parameter.
8836 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8837 (dw2_debug_names_iterator::next): Update.
8838 (dw2_debug_names_lookup_symbol): Update.
8839 (dw2_debug_names_expand_symtabs_for_function): Update.
8840 (dw2_debug_names_map_matching_symbols): Update.
8841 (dw2_debug_names_expand_symtabs_matching): Update.
8842 (dwarf2_read_debug_names): Update.
8843
7188ed02
SM
88442020-05-27 Simon Marchi <simon.marchi@efficios.com>
8845
8846 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8847 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8848 move to dwarf2_per_objfile.
8849 <read_in_chain>: Remove.
8850 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8851 remove_all_cus, age_comp_units>: New methods.
8852 <m_dwarf2_cus>: New member.
8853 (struct dwarf2_per_cu_data) <cu>: Remove.
8854 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8855 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8856 moved to methods of dwarf2_per_objfile.
8857 (dwarf2_clear_marks): Remove.
8858 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8859 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8860 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8861 (dwarf2_per_objfile::remove_all_cus): New.
8862 (class free_cached_comp_units) <~free_cached_comp_units>:
8863 Update.
8864 (load_cu): Update.
8865 (dw2_do_instantiate_symtab): Adjust.
8866 (fill_in_sig_entry_from_dwo_entry): Adjust.
8867 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8868 (cutu_reader::cutu_reader): Likewise.
8869 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8870 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8871 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8872 and dwarf2_per_objfile::age_comp_units.
8873 (load_partial_comp_unit): Update.
8874 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8875 (process_queue): Likewise.
8876 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8877 backlink.
8878 (dwarf2_read_addr_index): Likewise.
8879 (follow_die_offset): Likewise.
8880 (dwarf2_fetch_die_loc_sect_off): Likewise.
8881 (dwarf2_fetch_constant_bytes): Likewise.
8882 (dwarf2_fetch_die_type_sect_off): Likewise.
8883 (follow_die_sig_1): Likewise.
8884 (load_full_type_unit): Likewise.
8885 (read_signatured_type): Likewise.
8886 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8887 (dwarf2_cu::~dwarf2_cu): Remove.
8888 (dwarf2_per_objfile::get_cu): New.
8889 (dwarf2_per_objfile::set_cu): New.
8890 (age_cached_comp_units): Rename to...
8891 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8892 to std::unordered_map.
8893 (free_one_cached_comp_unit): Rename to...
8894 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8895 to std::unordered_map.
8896 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8897 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8898 a dwarf2_per_objfile in data.
8899 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8900 (dwarf2_clear_marks): Remove.
8901
2e671100
SM
89022020-05-27 Simon Marchi <simon.marchi@efficios.com>
8903
8904 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8905 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8906 (init_tu_and_read_dwo_dies): Likewise.
8907 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8908 (cutu_reader::cutu_reader): Likewise.
8909 (load_partial_comp_unit): Likewise.
8910 (process_psymtab_comp_unit): Update.
8911 (build_type_psymtabs_1): Update.
8912 (process_skeletonless_type_unit): Update.
8913 (load_full_comp_unit): Update.
8914 (find_partial_die): Update.
8915 (dwarf2_read_addr_index): Update.
8916 (read_signatured_type): Update.
8917
2e6a9f79
SM
89182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8919
8920 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8921 m_header_read_in>: New fields.
8922 <get_header>: New method.
8923 * dwarf2/read.c (per_cu_header_read_in): Remove.
8924 (dwarf2_per_cu_data::get_header): New.
8925 (dwarf2_per_cu_data::addr_size): Update.
8926 (dwarf2_per_cu_data::offset_size): Update.
8927 (dwarf2_per_cu_data::ref_addr_size): Update.
8928
1b555f17
SM
89292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8930
8931 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8932 (dw2_do_instantiate_symtab): Update.
8933 (queue_and_load_all_dwo_tus): Change parameter from
8934 dwarf2_per_cu_data to dwarf2_cu.
8935 (dwarf2_fetch_die_loc_sect_off): Update.
8936 (dwarf2_fetch_constant_bytes): Update.
8937 (dwarf2_fetch_die_type_sect_off): Update.
8938
8fc0b21d
SM
89392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8940
8941 * dwarf2/read.c (process_full_comp_unit,
8942 process_full_type_unit): Remove per_cu, per_objfile paramters.
8943 Add dwarf2_cu parameter.
8944 (process_queue): Update.
8945
168c9250
SM
89462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8947
8948 * dwarf2/read.c (create_cu_from_index_list): Replace
8949 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8950 (create_cus_from_index_list): Likewise.
8951 (create_cus_from_index): Likewise.
8952 (create_signatured_type_table_from_index): Likewise.
8953 (create_cus_from_debug_names_list): Likewise.
8954 (create_cus_from_debug_names): Likewise.
8955 (dwarf2_read_gdb_index): Update.
8956 (dwarf2_read_debug_names): Update.
8957
e286671b
TT
89582020-05-27 Tom Tromey <tom@tromey.com>
8959 Simon Marchi <simon.marchi@efficios.com>
8960
8961 * dwarf2/read.h (struct dwarf2_per_objfile)
8962 <get_type_for_signatured_type, set_type_for_signatured_type>:
8963 New methods.
8964 <m_type_map>: New member.
8965 (struct signatured_type) <type>: Remove.
8966 * dwarf2/read.c
8967 (dwarf2_per_objfile::get_type_for_signatured_type,
8968 dwarf2_per_objfile::set_type_for_signatured_type): New.
8969 (get_signatured_type): Use new methods.
8970
8adb8487
TT
89712020-05-27 Tom Tromey <tom@tromey.com>
8972 Simon Marchi <simon.marchi@efficios.com>
8973
8974 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8975 (struct dwarf2_per_objfile) <type_units>: New member.
8976 <get_type_unit_group_unshareable>: New method.
8977 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8978 num_symtabs, symtabs>: Remove; move to
8979 type_unit_group_unshareable.
8980 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8981 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8982 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8983
127bbf4b
SM
89842020-05-27 Simon Marchi <simon.marchi@efficios.com>
8985
8986 * dwarf2/read.h (struct dwarf2_per_cu_data):
8987 <dwarf2_per_objfile>: Remove.
8988 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8989 dwarf2_per_objfile.
8990 (create_signatured_type_table_from_index): Likewise.
8991 (create_signatured_type_table_from_debug_names): Likewise.
8992 (create_debug_type_hash_table): Likewise.
8993 (fill_in_sig_entry_from_dwo_entry): Likewise.
8994 (create_type_unit_group): Likewise.
8995 (read_comp_units_from_section): Likewise.
8996 (create_cus_hash_table): Likewise.
8997
f6e649dd
SM
89982020-05-27 Simon Marchi <simon.marchi@efficios.com>
8999
9000 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9001 dwarf2_per_cu_data::dwarf2_per_objfile.
9002 (compute_compunit_symtab_includes): Likewise.
9003 (dwarf2_cu::start_symtab): Likewise.
9004
aa66c379
SM
90052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9006
9007 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9008 parameter.
9009 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9010 (read_namespace_alias): Update.
9011 (lookup_die_type): Update.
9012 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9013 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9014 Update.
9015 (disassemble_dwarf_expression): Update.
9016
120ce1b5
SM
90172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9018
9019 * dwarf2/read.h (struct dwarf2_queue_item): Add
9020 dwarf2_per_objfile parameter, assign new parameter.
9021 <per_objfile>: New field.
9022 * dwarf2/read.c (free_one_cached_comp_unit): Add
9023 dwarf2_per_objfile parameter.
9024 (queue_comp_unit): Likewise.
9025 (dw2_do_instantiate_symtab): Update.
9026 (process_psymtab_comp_unit): Update.
9027 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9028 (process_imported_unit_die): Update.
9029 (queue_and_load_dwo_tu): Update.
9030 (follow_die_offset): Update.
9031 (follow_die_sig_1): Update.
9032
9f47c707
SM
90332020-05-27 Simon Marchi <simon.marchi@efficios.com>
9034
9035 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9036 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9037 (read_call_site_scope): Assign per_objfile.
9038 (dwarf2_per_cu_data::objfile): Remove.
9039 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9040 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9041 dwarf2_per_objfile parameter.
9042 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9043 dwarf2_per_objfile parameter.
9044 (dwarf_expr_reg_to_entry_parameter): Add output
9045 dwarf2_per_objfile parameter.
9046 (locexpr_get_frame_base): Update.
9047 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9048 <push_dwarf_reg_entry_value>: Update.
9049 <call_site_to_target_addr>: Update.
9050 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9051 parameter.
9052 (value_of_dwarf_reg_entry): Update.
9053 (rw_pieced_value): Update.
9054 (indirect_synthetic_pointer): Update.
9055 (dwarf2_evaluate_property): Update.
9056 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9057 parameter.
9058 (locexpr_read_variable): Update.
9059 (locexpr_get_symbol_read_needs): Update.
9060 (loclist_read_variable): Update.
9061
14095eb3
SM
90622020-05-27 Simon Marchi <simon.marchi@efficios.com>
9063
9064 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9065 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9066 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9067 parameter.
9068 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9069 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9070 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9071 parameter.
9072 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9073 sect_variable_value): Add dwarf2_per_objfile parameter.
9074 (class dwarf_evaluate_loc_desc) <dwarf_call,
9075 dwarf_variable_value>: Update.
9076 (fetch_const_value_from_synthetic_pointer): Add
9077 dwarf2_per_objfile parameter.
9078 (fetch_const_value_from_synthetic_pointer): Update.
9079 (coerced_pieced_ref): Update.
9080 (class symbol_needs_eval_context) <dwarf_call,
9081 dwarf_variable_value>: Update.
9082 (dwarf2_compile_expr_to_ax): Update.
9083
3c3cd3d4
SM
90842020-05-27 Simon Marchi <simon.marchi@efficios.com>
9085
9086 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9087 parameter.
9088 (dwarf2_evaluate_loc_desc_full): Update.
9089
82ca3f51
SM
90902020-05-27 Simon Marchi <simon.marchi@efficios.com>
9091
9092 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9093 parameter.
9094 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9095 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9096 dwarf2_per_objfile parameter.
9097 (decode_debug_loc_dwo_addresses): Likewise.
9098 (dwarf2_find_location_expression): Update.
9099 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9100 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9101 parameter.
9102 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9103 parameter.
9104 (locexpr_describe_location_1): Likewise.
9105 (locexpr_describe_location): Update.
9106
4b167ea1
SM
91072020-05-27 Simon Marchi <simon.marchi@efficios.com>
9108
9109 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9110 Remove.
9111 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9112 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9113 (dwarf2_compile_property_to_c): Update.
9114 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9115 use text offset from objfile.
9116 (locexpr_tracepoint_var_ref): Update.
9117 (locexpr_generate_c_location): Update.
9118 (loclist_describe_location): Update.
9119 (loclist_tracepoint_var_ref): Update.
9120 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9121 dwarf2_per_objfile parameter.
9122 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9123 use text offset from objfile.
9124 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9125
89b07335
SM
91262020-05-27 Simon Marchi <simon.marchi@efficios.com>
9127
9128 * dwarf2/expr.h (struct dwarf_expr_context)
9129 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9130 <offset>: Remove.
9131 <per_objfile>: New member.
9132 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9133 dwarf2_per_objfile parameter. Don't set offset, set
9134 per_objfile.
9135 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9136 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9137 a dwarf2_per_objfile object instead of an offset.
9138 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9139 constructor.
9140 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9141 to dwarf2_expr_executor constructor. Don't set offset.
9142 (dwarf2_fetch_cfa_info): Update.
9143 (struct dwarf2_frame_cache) <text_offset>: Remove.
9144 <per_objfile>: New field.
9145 (dwarf2_frame_cache): Update.
9146 (dwarf2_frame_prev_register): Update.
9147 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9148 <dwarf_evaluate_loc_desc>: Add constructor.
9149 (dwarf2_evaluate_loc_desc_full): Update.
9150 (dwarf2_locexpr_baton_eval): Update.
9151 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9152 Add constructor.
9153 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9154
293e7e51
SM
91552020-05-27 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9158 addr_sized_int_type>: Move to dwarf2_cu.
9159 <int_type>: Move to dwarf2_per_objfile.
9160 (struct dwarf2_per_objfile) <int_type>: Move here.
9161 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9162 addr_sized_int_type>: Move here.
9163 (read_func_scope): Update.
9164 (read_array_type): Update.
9165 (read_tag_string_type): Update.
9166 (attr_to_dynamic_prop): Update.
9167 (dwarf2_per_cu_data::int_type): Rename to...
9168 (dwarf2_per_objfile::int_type): ... this.
9169 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9170 (dwarf2_cu::addr_sized_int_type): ... this.
9171 (read_subrange_type): Update.
9172 (dwarf2_per_cu_data::addr_type): Rename to...
9173 (dwarf2_cu::addr_type): ... this.
9174 (set_die_type): Update.
9175
64874a40
SM
91762020-05-27 Simon Marchi <simon.marchi@efficios.com>
9177
9178 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9179 data through per_cu->cu.
9180
4ab09049
SM
91812020-05-27 Simon Marchi <simon.marchi@efficios.com>
9182
9183 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9184 dwarf2_per_cu_data parameter fo dwarf2_cu.
9185 (lookup_dwo_type_unit): Likewise.
9186 (read_cutu_die_from_dwo): Likewise.
9187 (lookup_dwo_unit): Likewise.
9188 (open_and_init_dwo_file): Likewise.
9189 (lookup_dwo_cutu): Likewise.
9190 (lookup_dwo_comp_unit): Likewise.
9191 (lookup_dwo_type_unit): Likewise.
9192 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9193 (cutu_reader::cutu_reader): Update.
9194
47b14e86
SM
91952020-05-27 Simon Marchi <simon.marchi@efficios.com>
9196
9197 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9198 parameter.
9199 (process_full_type_unit): Likewise.
9200 (process_queue): Update.
9201
43182c09
SM
92022020-05-27 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * dwarf2/read.c (recursively_compute_inclusions): Add
9205 dwarf2_per_objfile parameter.
9206 (compute_compunit_symtab_includes): Likewise.
9207 (process_cu_includes): Update.
9208
7aa104c4
SM
92092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9210
9211 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9212 parameter.
9213 (create_type_unit_group): Update.
9214 (process_psymtab_comp_unit_reader): Update.
9215 (build_type_psymtabs_reader): Update.
9216
e3beb21d
SM
92172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9218
9219 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9220 object through m_this_cu->cu.
9221
d460f660
SM
92222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9223
9224 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9225 the info parameter.
9226 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9227
ab432490
SM
92282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9229
9230 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9231 per_objfile parameter.
9232 (load_full_type_unit): Add per_objfile parameter.
9233 (read_signatured_type): Likewise.
9234 (load_full_comp_unit): Likewise.
9235 (load_cu): Likewise.
9236 (dw2_do_instantiate_symtab): Likewise.
9237 (dw2_get_file_names): Likewise.
9238 (dw2_map_symtabs_matching_filename): Update.
9239 (dw_expand_symtabs_matching_file_matcher): Update.
9240 (dw2_map_symbol_filenames): Update.
9241 (process_psymtab_comp_unit): Add per_objfile parameter.
9242 (build_type_psymtabs_1): Update.
9243 (process_skeletonless_type_unit): Update.
9244 (dwarf2_build_psymtabs_hard): Update.
9245 (load_partial_comp_unit): Add per_objfile parameter.
9246 (scan_partial_symbols): Update.
9247 (load_full_comp_unit): Add per_objfile parameter.
9248 (process_imported_unit_die): Update.
9249 (create_cus_hash_table): Update.
9250 (find_partial_die): Update.
9251 (dwarf2_read_addr_index): Update.
9252 (follow_die_offset): Update.
9253 (dwarf2_fetch_die_loc_sect_off): Update.
9254 (dwarf2_fetch_constant_bytes): Update.
9255 (dwarf2_fetch_die_type_sect_off): Update.
9256 (follow_die_sig_1): Update.
9257 (load_full_type_unit): Add per_objfile parameter.
9258 (read_signatured_type): Likewise.
9259
313bad1b
SM
92602020-05-27 Simon Marchi <simon.marchi@efficios.com>
9261
9262 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9263 of objfile_name.
9264
c3699833
SM
92652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9266
9267 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9268 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9269 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9270 field.
9271 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9272 (create_cus_from_index): Update.
9273 (dwarf2_read_gdb_index): Update.
9274 (create_cus_from_debug_names): Update.
9275 (dwarf2_read_debug_names): Update.
9276 (get_abbrev_section_for_cu): Update.
9277 (create_all_comp_units): Update.
9278 (read_attribute_value): Update.
9279 (get_debug_line_section): Update.
9280 * dwarf2/index-cache.c (index_cache::store): Update.
9281 * dwarf2/index-write.c (save_gdb_index_command): Update.
9282 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9283
1859c670
SM
92842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9285
9286 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9287 member.
9288 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9289 dwarf2_per_cu_data::per_bfd.
9290 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9291 (create_type_unit_group): Likewise.
9292 (queue_comp_unit): Remove reference to
9293 per_cu->dwarf2_per_objfile.
9294 (maybe_queue_comp_unit): Likewise.
9295 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9296 (create_cus_hash_table): Assign new field.
9297
5e22e966
SM
92982020-05-27 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * dwarf2/read.c: Replace
9301 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9302 dwarf2_cu->per_objfile throughout.
9303
97a1449a
SM
93042020-05-27 Simon Marchi <simon.marchi@efficios.com>
9305
9306 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9307 parameter, don't use per_cu->dwarf2_per_objfile.
9308 (dw2_instantiate_symtab): Likewise.
9309 (dw2_find_last_source_symtab): Update.
9310 (dw2_map_expand_apply): Update.
9311 (dw2_lookup_symbol): Update.
9312 (dw2_expand_symtabs_for_function): Update.
9313 (dw2_expand_all_symtabs): Update.
9314 (dw2_expand_symtabs_with_fullname): Update.
9315 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9316 don't use per_cu->dwarf2_per_objfile.
9317 (dw2_expand_marked_cus): Update.
9318 (dw2_find_pc_sect_compunit_symtab): Update.
9319 (dw2_debug_names_lookup_symbol): Update.
9320 (dw2_debug_names_expand_symtabs_for_function): Update.
9321 (dw2_debug_names_map_matching_symbols): Update.
9322 (dwarf2_psymtab::expand_psymtab): Update.
9323
9e021579
SM
93242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9325
9326 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9327 <per_objfile>: New member.
9328 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9329 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9330 call to dwarf2_cu.
9331 (cutu_reader::cutu_reader): Update.
9332 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9333
ae090bdb
SM
93342020-05-27 Simon Marchi <simon.marchi@efficios.com>
9335
9336 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9337 struct dwarf2_per_objfile.
9338 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9339 dwarf2_per_bfd.
9340 * dwarf2/read.c (set_die_type): Update.
9341 (get_die_type_at_offset): Update.
9342
af758d11
SM
93432020-05-27 Tom Tromey <tom@tromey.com>
9344 Simon Marchi <simon.marchi@efficios.com>
9345
9346 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9347 method.
9348 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9349 get_symtab, set_symtab>: New methods.
9350 <m_symtabs>: New field.
9351 (struct dwarf2_psymtab): Derive from partial_symtab.
9352 <readin_p, get_compunit_symtab>: Declare methods.
9353 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9354 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9355 New methods.
9356 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9357 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9358 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9359 (dw2_symtab_iter_next, dw2_print_stats)
9360 (dw2_expand_symtabs_with_fullname)
9361 (dw2_expand_symtabs_matching_one)
9362 (dw_expand_symtabs_matching_file_matcher)
9363 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9364 (dw2_debug_names_iterator::next)
9365 (dw2_debug_names_map_matching_symbols)
9366 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9367 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9368 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9369 New methods.
9370 (get_compunit_symtab, process_full_comp_unit)
9371 (process_full_type_unit): Update.
9372 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9373
5989a64e
SM
93742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9375
9376 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9377 then introduce a new dwarf2_per_objfile type.
9378 <read_line_string>: Move to the new dwarf2_per_objfile type.
9379 <objfile>: Likewise.
9380 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9381 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9382 dwarf2_per_objfile->per_bfd.
9383 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9384 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9385 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9386 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9387 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9388 (dwarf2_per_objfile::locate_sections): Rename to...
9389 (dwarf2_per_bfd::locate_sections): ... this.
9390 (dwarf2_per_objfile::get_cutu): Rename to...
9391 (dwarf2_per_bfd::get_cutu): ... this.
9392 (dwarf2_per_objfile::get_cu): Rename to...
9393 (dwarf2_per_bfd::get_cu): ... this.
9394 (dwarf2_per_objfile::get_tu): Rename to...
9395 (dwarf2_per_bfd::get_tu): ... this.
9396 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9397 (dwarf2_per_bfd::allocate_per_cu): ... this.
9398 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9399 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9400 (get_gdb_index_contents_ftype): Change parameter from
9401 dwarf2_per_objfile to dwarf2_per_bfd.
9402 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9403 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9404
a50264ba
TT
94052020-05-27 Tom Tromey <tom@tromey.com>
9406 Simon Marchi <simon.marchi@efficios.com>
9407
9408 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9409 (allocate_piece_closure): Set "per_objfile" member.
9410 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9411 (locexpr_describe_location, loclist_describe_location): Use new
9412 member.
9413 * dwarf2/read.c (read_call_site_scope)
9414 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9415 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9416 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9417 handle_data_member_location): Set per_objfile member.
9418 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9419 member.
9420 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9421
d3473f0c
TT
94222020-05-27 Tom Tromey <tom@tromey.com>
9423
9424 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9425 allocate_signatured_type>: Declare new methods.
9426 <m_num_psymtabs>: New member.
9427 (struct dwarf2_per_cu_data) <index>: New member.
9428 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9429 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9430 (create_cu_from_index_list): Use allocate_per_cu.
9431 (create_signatured_type_table_from_index)
9432 (create_signatured_type_table_from_debug_names)
9433 (create_debug_type_hash_table, add_type_unit)
9434 (read_comp_units_from_section): Use allocate_signatured_type.
9435
5717c425
TT
94362020-05-27 Tom Tromey <tom@tromey.com>
9437
9438 * psymtab.c (partial_map_expand_apply)
9439 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9440 (psym_lookup_global_symbol_language)
9441 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9442 (psym_print_stats, psym_expand_symtabs_for_function)
9443 (psym_map_symbol_filenames, psym_map_matching_symbols)
9444 (psym_expand_symtabs_matching)
9445 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9446 (maintenance_check_psymtabs): Update.
9447 * psympriv.h (struct partial_symtab) <readin_p,
9448 get_compunit_symtab>: Add objfile parameter.
9449 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9450 Likewise.
9451 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9452 get_compunit_symtab>: Likewise.
9453 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9454
45940949
TT
94552020-05-27 Tom Tromey <tom@tromey.com>
9456
9457 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9458 member.
9459 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9460 (create_cu_from_index_list)
9461 (create_signatured_type_table_from_index)
9462 (create_signatured_type_table_from_debug_names)
9463 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9464 (dwarf2_create_include_psymtab)
9465 (create_debug_type_hash_table, add_type_unit)
9466 (create_type_unit_group, read_comp_units_from_section)
9467 (dwarf2_compute_name, create_cus_hash_table)
9468 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9469 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9470 obstack.
9471 (dw2_get_real_path): Likewise. Change argument to
9472 dwarf2_per_objfile.
9473
f8c6d152
LM
94742020-05-27 Luis Machado <luis.machado@linaro.org>
9475
9476 PR tdep/26000
9477 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9478 for ldrd (immediate).
9479
e98d2e6d
PW
94802020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9481
9482 * command.h: Add comment giving the name of class_tui.
9483 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9484 create the fake command for the help for class_tui.
9485
53a47a3e
TT
94862020-05-26 Tom Tromey <tromey@adacore.com>
9487
9488 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9489 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9490 (val_atr): New function.
9491 (value_val_atr): Use it.
9492 * ada-valprint.c (print_optional_low_bound): Change low bound
9493 handling for enums.
9494 (val_print_packed_array_elements): Don't call discrete_position.
9495 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9496 discrete_position for enum types.
9497 * language.c (default_print_array_index): Change type.
9498 * language.h (struct language_defn) <la_print_array_index>: Add
9499 index_type parameter, change type of index_value.
9500 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9501 (default_print_array_index): Update.
9502 * valprint.c (maybe_print_array_index): Don't call
9503 value_from_longest. Update.
9504 (value_print_array_elements): Don't call discrete_position.
9505
0bc2354b
TT
95062020-05-26 Tom Tromey <tromey@adacore.com>
9507
9508 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9509 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9510
1218a4bf
CDA
95112020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9512
9513 PR gdb/13519
9514 * avr-tdep.c (avr_integer_to_address): Return data or code
9515 address accordingly to the second 'type' argument of the
9516 function.
9517
92651b1d
MW
95182020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9519
9520 * infcmd.c, inferior.h: (construct_inferior_arguments):
9521 Moved function from here to gdbsupport/common-inferior.{h,cc}
9522
0a4f5f8c
TT
95232020-05-23 Tom Tromey <tom@tromey.com>
9524
9525 Revert commit eca1f90c:
9526 * NEWS: Remove entry for completion styling.
9527 * completer.c (_rl_completion_prefix_display_length): Move
9528 declaration later.
9529 (gdb_fnprint): Revert.
9530 (gdb_display_match_list_1): Likewise.
9531 * cli/cli-style.c (completion_prefix_style)
9532 (completion_difference_style, completion_suffix_style): Remove.
9533 (_initialize_cli_style): Revert.
9534 * cli/cli-style.h (completion_prefix_style)
9535 (completion_difference_style, completion_suffix_style): Don't
9536 declare.
9537
e08bd6c5
PA
95382020-05-24 Pedro Alves <palves@redhat.com>
9539
9540 * symtab.c (completion_list_add_name): Return boolean indication
9541 of whether the symbol matched.
9542 (completion_list_add_symbol): Don't try to remove C++ aliases if
9543 the symbol didn't match in the first place.
9544 * symtab.h (completion_list_add_name): Return bool.
9545
ceacbf6e
SM
95462020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9547
9548 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9549 type::field.
9550
26f16254
JB
95512020-05-23 Joel Brobecker <brobecker@adacore.com>
9552
9553 GDB 9.2 released.
9554
eca1f90c
TT
95552020-05-23 Tom Tromey <tom@tromey.com>
9556
9557 * NEWS: Add entry for completion styling.
9558 * completer.c (_rl_completion_prefix_display_length): Move
9559 declaration earlier.
9560 (gdb_fnprint): Use completion_style.
9561 (gdb_display_match_list_1): Likewise.
9562 * cli/cli-style.c (completion_prefix_style)
9563 (completion_difference_style, completion_suffix_style): New
9564 globals.
9565 (_initialize_cli_style): Register new globals.
9566 * cli/cli-style.h (completion_prefix_style)
9567 (completion_difference_style, completion_suffix_style): Declare.
9568
51e2cfa2
PA
95692020-05-23 Pedro Alves <palves@redhat.com>
9570
9571 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9572 (parse_escape): Use ISDIGIT instead of isdigit.
9573 (puts_debug): Use gdb_isprint instead of isprint.
9574 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9575 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9576 ISSPACE instead of isspace.
9577 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9578 instead of isspace.
9579 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9580 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9581 instead of isxdigit and ISDIGIT instead of isdigit.
9582
80fc5e77
SM
95832020-05-22 Simon Marchi <simon.marchi@efficios.com>
9584
9585 * gdbtypes.h (struct type) <field>: New method.
9586 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9587 or type::field.
9588
3cabb6b0
SM
95892020-05-22 Simon Marchi <simon.marchi@efficios.com>
9590
9591 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9592 (TYPE_FIELDS): Use type::fields. Change all call sites that
9593 modify the propery to use type::set_fields instead.
9594
1f704f76
SM
95952020-05-22 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9598 type::num_fields instead.
9599
5e33d5f4
SM
96002020-05-22 Simon Marchi <simon.marchi@efficios.com>
9601
9602 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9603 methods.
9604 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9605 that modify the number of fields to use type::set_num_fields
9606 instead.
9607
9392ebb3
TT
96082020-05-22 Tom Tromey <tromey@adacore.com>
9609
9610 * compile/compile-object-load.h (munmap_list_free): Don't
9611 declare.
9612
7c13f4e8
AB
96132020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9614
9615 * annotate.c (annotate_source_line): Update return type, add call
9616 to update current symtab and line.
9617 * annotate.h (annotate_source_line): Update return type, and
9618 extend header comment.
9619 * source.c (info_line_command): Check annotation_level before
9620 calling annotate_source_line.
9621 * stack.c (print_frame_info): If calling annotate_source_line
9622 returns true, then don't print any other source line information.
9623
aa370940
SM
96242020-05-21 Simon Marchi <simon.marchi@efficios.com>
9625
9626 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9627
84d53fa9
SM
96282020-05-21 Simon Marchi <simon.marchi@efficios.com>
9629
9630 * coffread.c (patch_type): Remove NULL check before xfree.
9631 * corefile.c (set_gnutarget): Likewise.
9632 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9633 * exec.c (build_section_table): Likewise.
9634 * remote.c (remote_target::pass_signals): Likewise.
9635 * utils.c (n_spaces): Likewise.
9636 * cli/cli-script.c (document_command): Likewise.
9637 * i386-windows-tdep.c (core_process_module_section): Likewise.
9638 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9639
9d428aae
SM
96402020-05-20 Simon Marchi <simon.marchi@efficios.com>
9641
9642 * symfile.c (reread_symbols): Clear objfile's section_offsets
9643 vector and section indices, re-compute them by calling
9644 sym_offsets.
9645
250106a7
TT
96462020-05-20 Tom Tromey <tromey@adacore.com>
9647
9648 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9649 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9650
9a0bacfb
TV
96512020-05-20 Tom de Vries <tdevries@suse.de>
9652
9653 PR symtab/25833
9654 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9655
7b958a48
AM
96562020-05-20 Alan Modra <amodra@gmail.com>
9657
9658 PR 25993
9659 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9660 bfd_set_filename.
9661 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9662 passed to bfd_set_filename.
9663 * symfile-mem.c (add_vsyscall_page): Likewise for string
9664 passed to symbol_file_add_from_memory.
9665 (symbol_file_add_from_memory): Make name param a const char* and
9666 don't strdup.
9667
c7e97679
AM
96682020-05-20 Alan Modra <amodra@gmail.com>
9669
9670 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9671 rather than accessing bfd->filename directly.
9672 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9673 and use bfd_section_name.
9674 * dwarf2/frame.c (decode_frame_entry): Likewise.
9675 * exec.c (exec_set_section_address): Likewise.
9676 * solib-aix.c (solib_aix_bfd_open): Likewise.
9677 * stap-probe.c (get_stap_base_address): Likewise.
9678 * symfile.c (reread_symbols): Likewise.
9679
563c591b
TT
96802020-05-19 Tom Tromey <tromey@adacore.com>
9681
9682 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9683
f408d82c
SM
96842020-05-19 Simon Marchi <simon.marchi@efficios.com>
9685
9686 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9687
98c59b52
PA
96882020-05-19 Pedro Alves <palves@redhat.com>
9689
9690 * NEWS (set exec-file-mismatch): Adjust entry.
9691 * exec.c: Include "build-id.h".
9692 (validate_exec_file): Try to match build IDs instead of filenames.
9693 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9694 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9695 and pass down 'warn_if_slow'.
9696 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9697 gdb_bfd_open_closure to pass it down.
9698 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9699
4111f652
PA
97002020-05-19 Pedro Alves <palves@redhat.com>
9701
9702 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9703 * target.c (target_fileio_open_1): Rename to target_fileio_open
9704 and make extern. Use bool.
9705 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9706 (target_fileio_read_alloc_1): Adjust.
9707 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9708 (target_fileio_open_warn_if_slow): Delete declaration.
9709
ad80db5b
PA
97102020-05-19 Pedro Alves <palves@redhat.com>
9711
9712 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9713 Adjust all callers.
9714
1d6ce4d3
YS
97152020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9716
9717 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9718 whether disp is negative.
9719
9005fbbb
SM
97202020-05-19 Simon Marchi <simon.marchi@efficios.com>
9721
9722 * symfile.h (struct symfile_segment_data)
9723 <~symfile_segment_data>: Remove.
9724 <segment_info>: Change to std::vector.
9725 * symfile.c (default_symfile_segments): Update.
9726 * elfread.c (elf_symfile_segments): Update.
9727
68b888ff
SM
97282020-05-19 Simon Marchi <simon.marchi@efficios.com>
9729
9730 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9731 <segments>: New.
9732 <segment_bases, segment_sizes>: Remove.
9733 * symfile.c (default_symfile_segments): Update.
9734 * elfread.c (elf_symfile_segments): Update.
9735 * remote.c (remote_target::get_offsets): Update.
9736 * solib-target.c (solib_target_relocate_section_addresses):
9737 Update.
9738
62982abd
SM
97392020-05-19 Simon Marchi <simon.marchi@efficios.com>
9740
9741 * symfile.h (struct symfile_segment_data): Initialize fields.
9742 <~symfile_segment_data>: Add.
9743 (symfile_segment_data_up): New.
9744 (struct sym_fns) <sym_segments>: Return a
9745 symfile_segment_data_up.
9746 (default_symfile_segments): Return a symfile_segment_data_up.
9747 (free_symfile_segment_data): Remove.
9748 (get_symfile_segment_data): Return a symfile_segment_data_up.
9749 * symfile.c (default_symfile_segments): Likewise.
9750 (get_symfile_segment_data): Likewise.
9751 (free_symfile_segment_data): Remove.
9752 (symfile_find_segment_sections): Update.
9753 * elfread.c (elf_symfile_segments): Return a
9754 symfile_segment_data_up.
9755 * remote.c (remote_target::get_offsets): Update.
9756 * solib-target.c (solib_target_relocate_section_addresses):
9757 Update.
9758 * symfile-debug.c (debug_sym_segments): Return a
9759 symfile_segment_data_up.
9760
7f204339
RO
97612020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9762
e52a0f1b
RO
9763 PR build/25981
9764 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9765 Hardcode register numbers.
9766
7f204339
RO
9767 PR build/25981
9768 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9769 procfs_find_LDT_entry): Remove.
9770 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9771 procfs_find_LDT_entry): Remove.
9772 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9773 Remove.
9774
7f32a4d5
PA
97752020-05-17 Pedro Alves <palves@redhat.com>
9776 Andrew Burgess <andrew.burgess@embecosm.com>
9777 Keno Fischer <keno@juliacomputing.com>
9778
9779 PR gdb/25741
9780 * breakpoint.c (build_target_condition_list): Update comments.
9781 (build_target_command_list): Update comments and skip matching
9782 locations.
9783 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9784 a separate function. Simplify "set breakpoint auto-hw off"
9785 handling.
9786 (insert_breakpoints): Update comment.
9787 (tracepoint_locations_match): New parameter. For breakpoints,
9788 compare location types too, if the caller wants to.
9789 (handle_automatic_hardware_breakpoints): New functions.
9790 (bp_location_is_less_than): Also sort by location type and
9791 hardware breakpoint length.
9792 (update_global_location_list): Handle "set breakpoint auto-hw on"
9793 here.
9794 (update_breakpoint_locations): Ask breakpoint_locations_match to
9795 ignore location types.
9796
7d93a1e0
SM
97972020-05-16 Simon Marchi <simon.marchi@efficios.com>
9798
9799 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9800 type::name instead.
9801
d0e39ea2
SM
98022020-05-16 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * gdbtypes.h (struct type) <name, set_name>: New methods.
9805 (TYPE_CODE): Use type::name. Change all call sites used to set
9806 the name to use type::set_name instead.
9807
2dab0c7b
TT
98082020-05-16 Tom Tromey <tom@tromey.com>
9809
9810 * top.c (quit_force): Update.
9811 * infrun.c (handle_no_resumed): Update.
9812 * top.h (all_uis): New function.
9813 (ALL_UIS): Remove.
9814
59f7bd8d
SM
98152020-05-16 Simon Marchi <simon.marchi@efficios.com>
9816
9817 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9818
9bf058f0
PA
98192020-05-16 Pedro Alves <palves@redhat.com>
9820
9821 * ia64-linux-nat.c
9822 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9823 Declare method.
9824 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9825
8f86ae1a
SM
98262020-05-15 Simon Marchi <simon.marchi@efficios.com>
9827
9828 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9829 (sparc64_adi_info): Likewise.
9830
d6bc0792
TT
98312020-05-15 Tom Tromey <tom@tromey.com>
9832
9833 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9834 block_objfile.
9835 (lookup_objfile_from_block): Remove.
9836 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9837 (lookup_global_symbol): Use block_objfile.
9838 * symtab.h (lookup_objfile_from_block): Don't declare.
9839 * printcmd.c (clear_dangling_display_expressions): Use
9840 block_objfile.
9841 * parse.c (operator_check_standard): Use block_objfile.
9842
8c14c3a3
TT
98432020-05-15 Tom Tromey <tom@tromey.com>
9844
9845 * language.c (language_alloc_type_symbol): Set
9846 SYMBOL_SECTION.
9847 * symtab.c (initialize_objfile_symbol): Remove.
9848 (allocate_symbol): Remove.
9849 (allocate_template_symbol): Remove.
9850 * dwarf2/read.c (fixup_go_packaging): Use "new".
9851 (new_symbol): Use "new".
9852 (read_variable): Don't call initialize_objfile_symbol. Use
9853 "new".
9854 (read_func_scope): Use "new".
9855 * xcoffread.c (process_xcoff_symbol): Don't call
9856 initialize_objfile_symbol.
9857 (SYMBOL_DUP): Remove.
9858 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9859 "new".
9860 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9861 (allocate_template_symbol): Don't declare.
9862 (struct symbol): Add copy constructor. Change defaults.
9863 * jit.c (finalize_symtab): Use "new".
9864 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9865 Use "new".
9866 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9867 (common_block_end): Use "new".
9868 * mdebugread.c (parse_symbol): Use "new".
9869 (new_symbol): Likewise.
9870
5b4a1a8d
PW
98712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9872
9873 * NEWS: Mention changes to help and apropos.
9874
57b4f16e
PW
98752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9876
9877 * command.h (enum command_class): Improve comments, document
9878 that class_alias is for user-defined aliases, give the class
9879 name for each class, remove unused class_xdb.
9880 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9881 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9882 by a precise class.
9883 * infcmd.c (_initialize_infcmd): Likewise.
9884 * reverse.c (_initialize_reverse): Likewise.
9885 * stack.c (_initialize_stack): Likewise.
9886 * symfile.c (_initialize_symfile): Likewise.
9887 * tracepoint.c (_initialize_tracepoint): Likewise.
9888
7c05caf7
PW
98892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9890
9891 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9892 when their aliased command is traversed.
9893 (help_cmd): Add fput_command_names_styled call to
9894 output command name and aliases when command has an alias.
9895
3b3aaacb
PW
98962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9897
9898 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9899 * cli/cli-decode.c (help_cmd_list): Declare as static,
9900 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9901 a command together with the command.
9902 (fput_command_name_styled, fput_command_names_styled): New functions.
9903 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9904 fput_command_name_styled.
9905 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9906 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9907
7aa1b46f
PW
99082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9909
9910 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9911 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9912 * command.h (cmd_show_list): Likewise.
9913 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9914 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9915
89bcba74
PW
99162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9917
9918 * unittests/command-def-selftests.c (traverse_command_structure):
9919 Verify all commands of a list have the same prefix command and
9920 that only the top cmdlist commands have a null prefix.
9921
3f4d92eb
PW
99222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9923
9924 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9925 as prefix, not one of its aliases.
9926 (set_cmd_prefix): Remove.
9927 (do_add_cmd): Centralize the setting of the prefix of a command, when
9928 command is defined after its full chain of prefix commands.
9929 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9930 (add_setshow_cmd_full): Likewise.
9931 (update_prefix_field_of_prefixed_commands): New function.
9932 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9933 update_prefix_field_of_prefixed_commands.
9934 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9935 addresses of remote_set_cmdlist and remote_show_cmdlist given
9936 as argument, not the address of an argument.
9937 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9938 * gdb/remote.c (_initialize_remote): Likewise.
9939
0605465f
PW
99402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9941
9942 * cli/cli-cmds.c (alias_command): Check for an existing alias
9943 using lookup_cmd_composition, as valid_command_p is too strict
9944 and forbids aliases that are the prefix of an existing alias
9945 or command.
9946 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9947 command is properly recognised as a valid command.
9948
58e6ac70
PW
99492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9950
9951 * unittests/help-doc-selftests.c: Rename to
9952 unittests/command-def-selftests.c
9953 * unittests/command-def-selftests.c (help_doc_tests): Update some
9954 comments.
9955 (command_structure_tests, traverse_command_structure): New namespace
9956 and function.
9957 (command_structure_invariants_tests): New function.
9958 (_initialize_command_def_selftests) Renamed from
9959 _initialize_help_doc_selftests, register command_structure_invariants
9960 selftest.
9961
a7b9ceb8
PW
99622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9963
9964 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9965 an alias of 'show'.
9966
b2188a06
JB
99672020-05-15 Joel Brobecker <brobecker@adacore.com>
9968
9969 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9970 ada_is_fixed_point_type. Update all callers.
9971 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9972 all callers.
9973 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9974 Update all callers.
9975 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9976 print_fixed_point_type. Update all callers.
9977 * ada-valprint.c (ada_value_print_num): Replace call to
9978 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9979
a51951c2
KB
99802020-05-14 Kevin Buettner <kevinb@redhat.com>
9981
9982 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9983 processors.
9984 (cpu_supports_bts): Add CV_AMD case.
9985
29d6859f
LM
99862020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9987 Simon Marchi <simon.marchi@efficios.com>
9988
9989 * infrun.c (stop_all_threads): Collect multiple wait events at
9990 each pass.
9991
78134374
SM
99922020-05-14 Simon Marchi <simon.marchi@efficios.com>
9993
9994 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9995 type::code instead.
9996
67607e24
SM
99972020-05-14 Simon Marchi <simon.marchi@efficios.com>
9998
9999 * gdbtypes.h (struct type) <code, set_code>: New methods.
10000 (TYPE_CODE): Use type::code. Change all call sites used to set
10001 the code to use type::set_code instead.
10002
a05575d3
TBA
100032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10004 Tom de Vries <tdevries@suse.de>
10005 Pedro Alves <palves@redhat.com>
10006
10007 PR threads/25478
10008 * infrun.c (stop_all_threads): Do NOT ignore
10009 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10010 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10011 received.
10012 (handle_no_resumed): Remove code handling a live inferior with no
10013 threads.
10014 * remote.c (has_single_non_exited_thread): New.
10015 (remote_target::update_thread_list): Do not delete a thread if is
10016 the last thread of the process.
10017 * thread.c (thread_select): Call delete_exited_threads instead of
10018 prune_threads.
10019
6ad82919
TBA
100202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10021
10022 * infrun.c (stop_all_threads): Enable/disable thread events of all
10023 targets. Move a debug message denoting the end of the function
10024 into the SCOPED_EXIT block.
10025
d890404b
TBA
100262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10027
10028 * process-stratum-target.h: Include <set>.
10029 (all_non_exited_process_targets, switch_to_target_no_thread): New
10030 function declarations.
10031 * process-stratum-target.c (all_non_exited_process_targets)
10032 (switch_to_target_no_thread): New function implementations.
10033
293b3ebc
TBA
100342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10035
10036 * infrun.c (handle_inferior_event): Extract out a piece of code
10037 into...
10038 (mark_non_executing_threads): ...this new function.
10039
7ca9b62a
TBA
100402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10041
10042 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10043 use.
10044
fc75c28b
TBA
100452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10046
10047 * regcache.c (regcache_read_pc_protected): New function
10048 implementation that returns 0 if the PC cannot read via
10049 'regcache_read_pc'.
10050 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10051 instead of 'regcache_read_pc'.
10052 (keep_going_pass_signal): Ditto.
10053
a89febbd
TT
100542020-05-13 Tom Tromey <tromey@adacore.com>
10055
10056 * ada-lang.c (align_value): Remove.
10057 (ada_template_to_fixed_record_type_1): Use align_up.
10058
f7e23710
TBA
100592020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10060
10061 * async-event.c: Update the copyright year.
10062 * async-event.h: Update the copyright year.
10063
02ff80c2
SM
100642020-05-12 Simon Marchi <simon.marchi@efficios.com>
10065
10066 * objfiles.h (is_addr_in_objfile,
10067 shared_objfile_contains_address_p): Return bool.
10068 * objfile.c (is_addr_in_objfile,
10069 shared_objfile_contains_address_p): Return bool.
10070
4fd6c7e8
TT
100712020-05-11 Tom Tromey <tromey@adacore.com>
10072
10073 * cli/cli-cmds.c (info_command): Restore.
10074 (_initialize_cli_cmds): Use add_prefix_command for "info".
10075 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10076
5eb68a39
TT
100772020-05-11 Tom Tromey <tromey@adacore.com>
10078
10079 * ada-lang.c (ada_value_primitive_field): Now public.
10080 * ada-lang.h (ada_value_primitive_field): Declare.
10081 * ada-valprint.c (print_field_values): Use
10082 ada_value_primitive_field for wrapper fields.
10083
7666722f
TV
100842020-05-11 Tom de Vries <tdevries@suse.de>
10085
10086 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10087 MODULE_DOMAIN.
10088
3ee6bb11
TV
100892020-05-11 Tom de Vries <tdevries@suse.de>
10090
10091 PR symtab/25941
10092 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10093 with length 0, if not gdb-produced.
10094 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10095
43434996
TV
100962020-05-09 Tom de Vries <tdevries@suse.de>
10097
10098 PR gdb/25955
10099 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10100 calculation.
10101
2f78cffc
TT
101022020-05-09 Tom Tromey <tom@tromey.com>
10103
10104 * top.c (server_command): Now bool.
10105 * top.h (server_command): Now bool.
10106
4f7bc5ed
TT
101072020-05-08 Tom Tromey <tromey@adacore.com>
10108
10109 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10110 already being processed.
10111
8be4b118
TT
101122020-05-08 Tom Tromey <tom@tromey.com>
10113
10114 * printcmd.c (struct display) <next>: Remove.
10115 <display>: New constructor.
10116 <exp_string>: Now a std::string.
10117 <enabled_p>: Now a bool.
10118 (display_number): Move definition earlier.
10119 (displays): Rename from display_chain. Now a std::vector.
10120 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10121 (display_command): Update.
10122 (do_one_display, disable_display)
10123 (enable_disable_display_command, do_enable_disable_display):
10124 Update.
10125 (free_display): Remove.
10126 (clear_displays): Rewrite.
10127 (delete_display): Update.
10128 (map_display_numbers): Use function_view. Remove "data"
10129 parameter. Update.
10130 (do_delete_display): Remove.
10131 (undisplay_command): Update.
10132 (do_one_display, do_displays, disable_display)
10133 (info_display_command): Update.
10134 (do_enable_disable_display): Remove.
10135 (enable_disable_display_command)
10136 (clear_dangling_display_expressions): Update.
10137
94c93c35
TT
101382020-05-08 Tom Tromey <tom@tromey.com>
10139
10140 * symtab.c (set_symbol_cache_size)
10141 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10142 (maintenance_print_symbol_cache_statistics): Update.
10143 * symmisc.c (print_symbol_bcache_statistics)
10144 (print_objfile_statistics, maintenance_print_objfiles)
10145 (maintenance_info_symtabs, maintenance_check_symtabs)
10146 (maintenance_expand_symtabs, maintenance_info_line_tables):
10147 Update.
10148 * symfile-debug.c (set_debug_symfile): Update.
10149 * source.c (forget_cached_source_info): Update.
10150 * python/python.c (gdbpy_progspaces): Update.
10151 * psymtab.c (maintenance_info_psymtabs): Update.
10152 * probe.c (parse_probes): Update.
10153 * linespec.c (iterate_over_all_matching_symtabs)
10154 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10155 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10156 * exec.c (exec_target::close): Update.
10157 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10158 * breakpoint.c (print_one_breakpoint_location)
10159 (create_longjmp_master_breakpoint)
10160 (create_std_terminate_master_breakpoint): Update.
10161 * progspace.c (program_spaces): Now a std::vector.
10162 (maybe_new_address_space): Update.
10163 (add_program_space): Remove.
10164 (program_space::program_space): Update.
10165 (remove_program_space): Update.
10166 (number_of_program_spaces): Remove.
10167 (print_program_space, update_address_spaces): Update.
10168 * progspace.h (program_spaces): Change type.
10169 (ALL_PSPACES): Remove.
10170 (number_of_program_spaces): Don't declare.
10171 (struct program_space) <next>: Remove.
10172
a1fd1ac9
TT
101732020-05-08 Tom Tromey <tom@tromey.com>
10174
10175 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10176 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10177 (enable_break): Update.
10178 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10179 (frv_fdpic_find_canonical_descriptor): Update.
10180 (frv_fetch_objfile_link_map): Update.
10181 * progspace.c (program_space::free_all_objfiles): Update.
10182 (program_space::solibs): New method.
10183 * progspace.h (struct program_space) <solibs>: New method.
10184 * solist.h (master_so_list): Don't declare.
10185 (ALL_SO_LIBS): Remove.
10186 * solib.h (so_list_head): Remove.
10187 (update_solib_list): Update comment.
10188 * solib.c (master_so_list): Remove.
10189 (solib_used, update_solib_list, solib_add)
10190 (info_sharedlibrary_command, clear_solib)
10191 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10192
38eae084
TT
101932020-05-08 Tom Tromey <tom@tromey.com>
10194
10195 * extension.c (extension_languages): Now a std::array.
10196 (ALL_EXTENSION_LANGUAGES): Remove.
10197 (get_ext_lang_defn, get_ext_lang_of_file)
10198 (eval_ext_lang_from_control_command): Update.
10199 (finish_ext_lang_initialization)
10200 (auto_load_ext_lang_scripts_for_objfile)
10201 (ext_lang_type_printers::ext_lang_type_printers)
10202 (apply_ext_lang_type_printers)
10203 (ext_lang_type_printers::~ext_lang_type_printers)
10204 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10205 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10206 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10207 (get_matching_xmethod_workers, ext_lang_colorize)
10208 (ext_lang_before_prompt): Update.
10209 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10210
596dc4ad
TT
102112020-05-08 Tom Tromey <tom@tromey.com>
10212
10213 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10214 overload.
10215 <swap_string, m_string>: Remove.
10216 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10217 Update.
10218 * stabsread.c (define_symbol, read_type): Update.
10219 * linespec.c (find_linespec_symbols): Update.
10220 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10221 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10222 * dbxread.c (read_dbx_symtab): Update.
10223 * cp-support.h (cp_canonicalize_string_full)
10224 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10225 Return unique_xmalloc_ptr.
10226 * cp-support.c (inspect_type): Update.
10227 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10228 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10229 Likewise.
10230 * c-typeprint.c (print_name_maybe_canonical): Update.
10231 * break-catch-throw.c (check_status_exception_catchpoint):
10232 Update.
10233
bf4cb9be
TV
102342020-05-08 Tom de Vries <tdevries@suse.de>
10235
10236 * infrun.c (follow_fork): Copy current_line and current_symtab to
10237 child thread.
10238
a1b68f28
SM
102392020-05-07 Simon Marchi <simon.marchi@efficios.com>
10240
10241 * async-event.c (struct async_signal_handler, struct
10242 async_event_handler): Reformat, remove typedef.
10243
98d48915
SM
102442020-05-07 Simon Marchi <simon.marchi@efficios.com>
10245
10246 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10247 access thistype->main_type->dyn_prop_list directly.
10248
7aa91313
SM
102492020-05-07 Simon Marchi <simon.marchi@efficios.com>
10250
10251 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10252 (remove_dyn_prop): Remove. Update all users to use
10253 type::remove_dyn_prop.
10254 * gdbtypes.c (remove_dyn_prop): Rename to...
10255 (type::remove_dyn_prop): ... this.
10256
5c54719c
SM
102572020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10258
10259 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10260 (add_dyn_prop): Remove. Update all users to use
10261 type::add_dyn_prop.
10262 * gdbtypes.c (add_dyn_prop): Rename to...
10263 (type::add_dyn_prop): ... this.
10264
24e99c6c
SM
102652020-05-07 Simon Marchi <simon.marchi@efficios.com>
10266
10267 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10268 (get_dyn_prop): Remove. Update all users to use
10269 type::dyn_prop.
10270 * gdbtypes.c (get_dyn_prop): Rename to...
10271 (type::dyn_prop): ... this.
10272
0d4bf016
SM
102732020-05-06 Simon Marchi <simon.marchi@efficios.com>
10274
10275 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10276
ac4a4f1c
SM
102772020-05-06 Simon Marchi <simon.marchi@efficios.com>
10278
10279 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10280 instruction, skip it if it's there.
10281
a3bbacc1
SM
102822020-05-05 Simon Marchi <simon.marchi@efficios.com>
10283
10284 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10285
c3236f84
SM
102862020-05-04 Simon Marchi <simon.marchi@efficios.com>
10287
10288 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10289 * gdbtypes.c (recursive_dump_type): Remove use of
10290 TYPE_INCOMPLETE.
10291
3b6acaee
TT
102922020-05-03 Tom Tromey <tom@tromey.com>
10293
10294 * breakpoint.c (catch_command, tcatch_command): Remove.
10295 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10296 add_show_prefix_cmd.
10297 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10298 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10299 Remove.
10300 (add_internal_problem_command): Use add_basic_prefix_cmd,
10301 add_show_prefix_cmd.
10302 * mips-tdep.c (set_mipsfpu_command): Remove.
10303 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10304 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10305 (_initialize_index_cache): Use add_basic_prefix_cmd.
10306 * memattr.c (dummy_cmd): Remove.
10307 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10308 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10309 (_initialize_tui_win): Use add_basic_prefix_cmd,
10310 add_show_prefix_cmd.
10311 * cli/cli-logging.c (set_logging_command): Remove.
10312 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10313 add_show_prefix_cmd.
10314 (show_logging_command): Remove.
10315 * target.c (target_command): Remove.
10316 (add_target): Use add_basic_prefix_cmd.
10317
a51119cd
HD
103182020-05-02 Hannes Domani <ssbssa@yahoo.de>
10319
10320 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10321
652fc23a 103222020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10323
652fc23a
PW
10324 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10325 info_command.
10326
117539e6
KR
103272020-04-30 Kamil Rytarowski <n54@gmx.com>
10328
10329 * nbsd-nat.c (nbsd_enable_proc_events)
10330 (nbsd_nat_target::post_startup_inferior): Add.
10331 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10332 (nbsd_nat_target::update_thread_list): Rewrite.
10333 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10334 "PTRACE_LWP_CREATE".
10335 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10336
102e38eb 103372020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10338
102e38eb
PW
10339 * stack.c (_initialize_stack): Remove duplicated creation
10340 of "frame" command and "f" alias.
10341
ee9d1e5f
HD
103422020-04-30 Hannes Domani <ssbssa@yahoo.de>
10343
10344 PR gdb/18706
10345 * gdbtypes.c (check_typedef): Calculate size of array of
10346 stubbed type.
10347
627c7fb8
HD
103482020-04-30 Hannes Domani <ssbssa@yahoo.de>
10349
10350 PR gdb/15559
10351 * i386-tdep.c (i386_push_dummy_call): Call
10352 i386_thiscall_push_dummy_call.
10353 (i386_thiscall_push_dummy_call): New function.
10354 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10355 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10356 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10357
ffc2844e
SM
103582020-04-29 Simon Marchi <simon.marchi@efficios.com>
10359
10360 * gdbarch.sh (do_read): Add shellcheck disable directive for
10361 warning SC2162.
10362
1207375d
SM
103632020-04-29 Simon Marchi <simon.marchi@efficios.com>
10364
10365 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10366 "referenced but not assigned" warning.
10367
9fdb2916
SM
103682020-04-29 Simon Marchi <simon.marchi@efficios.com>
10369
10370 * gdbarch.sh: Remove code that sets fallbackdefault.
10371
759cea5e
SM
103722020-04-29 Simon Marchi <simon.marchi@efficios.com>
10373
10374 * gdbarch.sh: Use shell operators && and || instead of
10375 -a and -o.
10376
cb02ab24
SM
103772020-04-29 Simon Marchi <simon.marchi@efficios.com>
10378
10379 * gdbarch.sh: Use $(...) instead of `...`.
10380
a6fc5ffc
SM
103812020-04-29 Simon Marchi <simon.marchi@efficios.com>
10382
10383 * gdbarch.sh: Use double quotes around variables.
10384
8d113d13
SM
103852020-04-29 Simon Marchi <simon.marchi@efficios.com>
10386
10387 * gdbarch.sh: Use %s with printf, instead of variables in the
10388 format string.
10389
ed6acedd
TT
103902020-04-29 Tom Tromey <tromey@adacore.com>
10391
10392 PR ada/25875:
10393 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10394 type fields here.
10395 (read_enumeration_type): Call
10396 update_enumeration_type_from_children later. Update comments.
10397 (process_enumeration_scope): Don't create type fields.
10398
b68b1b58
KR
103992020-04-29 Kamil Rytarowski <n54@gmx.com>
10400
10401 * nbsd-tdep.c: Include "xml-syscall.h".
10402 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10403
f94b2e03
KR
104042020-04-29 Kamil Rytarowski <n54@gmx.com>
10405
10406 * nbsd-nat.c: Include "sys/wait.h".
10407 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10408 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10409 (nbsd_nat_target::remove_exec_catchpoint)
10410 (nbsd_nat_target::set_syscall_catchpoint): Add.
10411 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10412 (nbsd_nat_target::insert_exec_catchpoint)
10413 (nbsd_nat_target::remove_exec_catchpoint)
10414 (nbsd_nat_target::set_syscall_catchpoint): Add.
10415 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10416 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10417 `nbsd_get_syscall_number'.
10418
fc49bc72
TT
104192020-04-29 Tom Tromey <tom@tromey.com>
10420
10421 * stack.c (print_block_frame_labels): Remove.
10422
d642b692
HD
104232020-04-29 Hannes Domani <ssbssa@yahoo.de>
10424
10425 PR gdb/17320
10426 * ada-valprint.c (val_print_packed_array_elements): Move array
10427 end bracket to new line.
10428 (ada_val_print_string): Remove extra spaces before first array
10429 element.
10430 * c-valprint.c (c_value_print_array): Likewise.
10431 * m2-valprint.c (m2_print_array_contents): Likewise.
10432 (m2_value_print_inner): Likewise.
10433 * p-valprint.c (pascal_value_print_inner): Likewise.
10434 * valprint.c (generic_val_print_array): Likewise.
10435 (value_print_array_elements): Move first array element and array
10436 end bracket to new line.
10437
ea90f227
TV
104382020-04-29 Tom de Vries <tdevries@suse.de>
10439
10440 PR symtab/25889
10441 * linespec.c (find_method): Fix ix calculation.
10442
4498ef4f
KR
104432020-04-28 Kamil Rytarowski <n54@gmx.com>
10444
10445 * syscalls/update-netbsd.sh: New file.
10446 * syscalls/netbsd.xml: Regenerate.
10447 * data-directory/Makefile.in: Register `netbsd.xml' in
10448 `SYSCALLS_FILES'.
10449
a55e30b5
SM
104502020-04-28 Simon Marchi <simon.marchi@efficios.com>
10451
10452 * syscalls/update-freebsd.sh: Add double quotes.
10453
2b2fbab8
TT
104542020-04-28 Tom Tromey <tom@tromey.com>
10455
10456 * NEWS: Update.
10457 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10458 (cmdpy_init): Allow class_tui.
10459
a65189c9
TV
104602020-04-28 Mark Williams <mark@myosotissp.com>
10461
10462 PR gdb/24480
10463 * dwarf2read.c: Add missing assingments to list_in_scope when
10464 start_symtab was already called.
10465
1b95cdb7
SM
104662020-04-28 Simon Marchi <simon.marchi@efficios.com>
10467
10468 PR gdb/25881
10469 * dwarf2/read.c (offset_map_type): Use
10470 gdb:hash_enum<sect_offset> as hash function.
10471
15cd93d0
TV
104722020-04-28 Tom de Vries <tdevries@suse.de>
10473
10474 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10475 with DW_AT_signature.
10476
1eb39914
SM
104772020-04-27 Simon Marchi <simon.marchi@efficios.com>
10478
10479 * configure.ac: Remove check for fs_base/gs_base in
10480 user_regs_struct.
10481 * configure: Re-generate.
10482 * config.in: Re-generate.
10483 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10484 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10485 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10486
991a3e2e
LM
104872020-04-27 Luis Machado <luis.machado@linaro.org>
10488
10489 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10490 problematic inline frame unwinding situation.
10491 * frame.c (frame_id_computed_p): New function.
10492 * frame.h (frame_id_computed_p): New prototype.
10493
361ba0e8
TT
104942020-04-26 Tom Tromey <tom@tromey.com>
10495
10496 * command.h (enum command_class) <class_pseudo>: Remove.
10497
bc3609fd
PW
104982020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10499
10500 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10501 and whitespace.
10502
b9771db7
KR
105032020-04-25 Kamil Rytarowski <n54@gmx.com>
10504
ec16513e
SM
10505 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10506 `PT_GET_PROCESS_STATE' block.
b9771db7 10507
7151c1af
TT
105082020-04-24 Tom Tromey <tom@tromey.com>
10509
10510 * symtab.h (symbol_get_demangled_name): Don't declare.
10511 * symtab.c (symbol_get_demangled_name): Remove.
10512 (general_symbol_info::natural_name)
10513 (general_symbol_info::demangled_name): Update.
10514
906bb4c5
TT
105152020-04-24 Tom Tromey <tom@tromey.com>
10516
10517 PR rust/25025:
10518 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10519
bcfe6157
TT
105202020-04-24 Tom Tromey <tom@tromey.com>
10521
10522 PR symtab/12707:
10523 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10524 exists.
10525 (new_symbol): Likewise.
10526 * compile/compile-object-load.c (get_out_value_type): Use
10527 symbol_matches_search_name.
10528
f049a313
TT
105292020-04-24 Tom Tromey <tom@tromey.com>
10530
10531 * dwarf2/read.c (add_partial_symbol): Do not call
10532 compute_and_set_names.
10533
76e288d1
TT
105342020-04-24 Tom Tromey <tom@tromey.com>
10535
10536 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10537 overload.
10538
2467f4f6
TT
105392020-04-24 Tom Tromey <tom@tromey.com>
10540
10541 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10542 (add_psymbol_to_list): New overload. Make old overload call new
10543 one.
10544 * psympriv.h (add_psymbol_to_list): New overload.
10545
e61108c9
TT
105462020-04-24 Tom Tromey <tom@tromey.com>
10547
10548 * dwarf2/read.c (partial_die_info::read) <case
10549 DW_AT_linkage_name>: Use value_as_string.
10550 (dwarf2_string_attr): Use value_as_string.
10551 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10552 method.
10553 * dwarf2/attribute.c (attribute::value_as_string): New method.
10554
8c87a452
TT
105552020-04-24 Tom Tromey <tom@tromey.com>
10556
10557 * symtab.c (general_symbol_info::natural_name)
10558 (general_symbol_info::demangled_name): Check for language_rust.
10559
787de330
TT
105602020-04-24 Tom Tromey <tom@tromey.com>
10561
10562 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10563 (dwarf2_physname): ... from here.
10564 (partial_die_info::read): Add Rust "{" hack.
10565
ff985671
TT
105662020-04-24 Tom Tromey <tom@tromey.com>
10567
10568 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10569 method.
10570 (symbol_set_demangled_name): Don't declare.
10571 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10572 symbol_set_demangled_name.
10573 (general_symbol_info::set_language)
10574 (general_symbol_info::compute_and_set_names): Update.
10575 * minsyms.c (minimal_symbol_reader::install): Update.
10576 * dwarf2/read.c (new_symbol): Update.
10577
1acda803
TT
105782020-04-24 Tom Tromey <tromey@adacore.com>
10579
10580 PR python/23662:
10581 * python/py-type.c (convert_field): Handle
10582 FIELD_LOC_KIND_DWARF_BLOCK.
10583 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10584 (typy_get_dynamic): Nw function.
10585 (type_object_getset): Add "dynamic".
10586 * NEWS: Add entry.
10587
d656f129
TT
105882020-04-24 Tom Tromey <tromey@adacore.com>
10589
10590 * ada-typeprint.c (print_choices, print_variant_part)
10591 (print_record_field_types_dynamic): New functions.
10592 (print_record_field_types): Use print_record_field_types_dynamic.
10593
7d79de9a
TT
105942020-04-24 Tom Tromey <tromey@adacore.com>
10595
10596 * dwarf2/read.c (handle_data_member_location): New overload.
10597 (dwarf2_add_field): Use it.
10598 (decode_locdesc): Add "computed" parameter. Update comment.
10599 * gdbtypes.c (is_dynamic_type_internal): Also look for
10600 FIELD_LOC_KIND_DWARF_BLOCK.
10601 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10602 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10603 virtual base classes.
10604 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10605 FIELD_LOC_KIND_DWARF_BLOCK.
10606
f8e89861
TT
106072020-04-24 Tom Tromey <tromey@adacore.com>
10608
10609 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10610 * gdbtypes.c (is_dynamic_type_internal): Check
10611 TYPE_HAS_DYNAMIC_LENGTH.
10612 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10613 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10614 New macros.
10615 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10616 constant.
10617
9c6a1327
TT
106182020-04-24 Tom Tromey <tromey@adacore.com>
10619
10620 * dwarf2/read.c (struct variant_field): Rewrite.
10621 (struct variant_part_builder): New.
10622 (struct nextfield): Remove "variant" field. Add "offset".
10623 (struct field_info): Add "current_variant_part" and
10624 "variant_parts".
10625 (alloc_discriminant_info): Remove.
10626 (alloc_rust_variant): New function.
10627 (quirk_rust_enum): Update.
10628 (dwarf2_add_field): Set "offset" member. Don't handle
10629 DW_TAG_variant_part.
10630 (offset_map_type): New typedef.
10631 (convert_variant_range, create_one_variant)
10632 (create_one_variant_part, create_variant_parts)
10633 (add_variant_property): New functions.
10634 (dwarf2_attach_fields_to_type): Call add_variant_property.
10635 (read_structure_type): Don't handle DW_TAG_variant_part.
10636 (handle_variant_part, handle_variant): New functions.
10637 (handle_struct_member_die): Use them.
10638 (process_structure_scope): Don't handle variant parts.
10639 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10640 (struct discriminant_info): Remove.
10641 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10642 (struct main_type) <flag_discriminated_union>: Remove.
10643 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10644 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10645 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10646 Update.
10647 * valops.c (value_union_variant): Remove.
10648 * value.h (value_union_variant): Don't declare.
10649
b249d2c2
TT
106502020-04-24 Tom Tromey <tromey@adacore.com>
10651
10652 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10653 (ada_value_primitive_packed_val): Update.
10654 * ada-valprint.c (ada_value_print_1): Update.
10655 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10656 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10657 just an address. Use evaluate_for_locexpr_baton.
10658 (dwarf2_evaluate_property): Update.
10659 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10660 array_view.
10661 * findvar.c (default_read_var_value): Update.
10662 * gdbtypes.c (compute_variant_fields_inner)
10663 (resolve_dynamic_type_internal): Update.
10664 (resolve_dynamic_type): Change type of valaddr parameter.
10665 * gdbtypes.h (resolve_dynamic_type): Update.
10666 * valarith.c (value_subscripted_rvalue): Update.
10667 * value.c (value_from_contents_and_address): Update.
10668
61122aa9
TT
106692020-04-24 Tom Tromey <tromey@adacore.com>
10670
10671 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10672 "push_initial_value" parameter.
10673 (dwarf2_evaluate_property): Likewise.
10674 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10675
ef83a141
TT
106762020-04-24 Tom Tromey <tromey@adacore.com>
10677
10678 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10679 (variant::matches, compute_variant_fields_recurse)
10680 (compute_variant_fields_inner, compute_variant_fields): New
10681 functions.
10682 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10683 Use resolved_type after type is made.
10684 (operator==): Add new cases.
10685 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10686 (struct discriminant_range, struct variant, struct variant_part):
10687 New.
10688 (union dynamic_prop_data) <variant_parts, original_type>: New
10689 members.
10690 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10691 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10692 constants.
10693 * value.c (unpack_bits_as_long): Now public.
10694 * value.h (unpack_bits_as_long): Declare.
10695
675127ec
TT
106962020-04-24 Tom Tromey <tromey@adacore.com>
10697
10698 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10699 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10700
9852ceef
HD
107012020-04-24 Hannes Domani <ssbssa@yahoo.de>
10702
10703 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10704
7632c6ce
KR
107052020-04-24 Kamil Rytarowski <n54@gmx.com>
10706
10707 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10708 (remove_fork_catchpoint, post_startup_inferior)
10709 (post_attach): Move...
10710 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10711 (remove_fork_catchpoint, post_startup_inferior)
10712 (post_attach): ...here.
10713 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10714 (remove_fork_catchpoint, post_startup_inferior)
10715 (post_attach): Move...
10716 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10717 (remove_fork_catchpoint, post_startup_inferior)
10718 (post_attach): ...here.
10719
7be2bb4f
TT
107202020-04-24 Tom Tromey <tromey@adacore.com>
10721
10722 * nat/windows-nat.h (struct windows_thread_info)
10723 <pc_adjusted>: New member.
10724 * windows-nat.c (windows_fetch_one_register): Check
10725 pc_adjusted.
10726 (windows_nat_target::get_windows_debug_event)
10727 (windows_nat_target::wait): Set pc_adjusted.
10728
f80cb3b4
TV
107292020-04-24 Tom de Vries <tdevries@suse.de>
10730
10731 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10732 Run gdb-add-index inside temp dir.
10733
29514b87
TT
107342020-04-23 Tom Tromey <tromey@adacore.com>
10735
10736 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10737 in loop.
10738
5939967b
LM
107392020-04-23 Luis Machado <luis.machado@linaro.org>
10740
10741 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10742 get_frame_register instead of gdbarch_unwind_pc.
10743
70bc38f5
TV
107442020-04-23 Tom de Vries <tdevries@suse.de>
10745
10746 * symtab.c (lookup_global_symbol): Prefer def over decl.
10747
de82891c
TV
107482020-04-23 Tom de Vries <tdevries@suse.de>
10749
10750 PR symtab/25807
10751 * block.c (best_symbol, better_symbol): Promote to external.
10752 * block.h (best_symbol, better_symbol): Declare.
10753 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10754 decl.
10755
ecc6c606
TT
107562020-04-23 Tom Tromey <tromey@adacore.com>
10757
10758 PR ada/25837:
10759 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10760 "const char *", not a "const std::string &".
10761 <name_and_matcher::operator==>: Update.
10762 * unittests/lookup_name_info-selftests.c: Change type of
10763 "result".
10764
740480b8
TT
107652020-04-23 Tom Tromey <tom@tromey.com>
10766
10767 * inferior.h (iterate_over_inferiors): Don't declare.
10768 * inferior.c (iterate_over_inferiors): Remove.
10769 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10770 Remove.
10771 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10772 use iterate_over_inferiors.
10773 (darwin_resume_inferior_it)
10774 (struct resume_inferior_threads_param)
10775 (darwin_resume_inferior_threads_it): Remove.
10776 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10777
ae3ab1f0
TV
107782020-04-23 Tom de Vries <tdevries@suse.de>
10779
10780 * blockframe.c (find_pc_partial_function): Use
10781 find_pc_sect_compunit_symtab rather than
10782 objfile->sf->qf->find_pc_sect_compunit_symtab.
10783
317d2668
TV
107842020-04-22 Tom de Vries <tdevries@suse.de>
10785
10786 PR symtab/25764
10787 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10788 in psymtabs.
10789
eea9e357
TV
107902020-04-22 Tom de Vries <tdevries@suse.de>
10791
10792 PR symtab/25801
10793 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10794 symtabs.
10795
3d5afab3
TV
107962020-04-22 Tom de Vries <tdevries@suse.de>
10797
10798 PR symtab/25700
10799 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10800 CU if already created.
10801
d43b7a2d
TBA
108022020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10803
10804 * infrun.c (displaced_step_fixup): Switch to the event_thread
10805 before calling displaced_step_restore, not after.
10806
d89edf9b
MM
108072020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10808
10809 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10810 its inferior is not recorded by us.
10811 (record_btrace_target_open): Replace call to
10812 all_non_exited_threads () with call to current_inferior
10813 ()->non_exited_threads ().
10814 (record_btrace_target::stop_recording): Likewise.
10815 (record_btrace_target::close): Likewise.
10816 (record_btrace_target::wait): Likewise.
10817 (record_btrace_target::record_stop_replaying): Likewise.
10818
5897fd49
MM
108192020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10820
10821 * btrace.c (btrace_enable): Throw an error on double enables and
10822 when enabling recording fails.
10823 (btrace_disable): Throw an error if the thread is not recorded.
10824
1a476b6d
MM
108252020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10826
10827 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10828 request if we do not have a thread_info.
10829
4778a5f8
TV
108302020-04-21 Tom de Vries <tdevries@suse.de>
10831
10832 PR gdb/25471
10833 * thread.c
10834 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10835 exception in get_frame_id.
10836
0fa7617d
TT
108372020-04-20 Tom Tromey <tromey@adacore.com>
10838
10839 * python/python.c (struct gdbpy_event): Mark move constructor as
10840 noexcept.
10841 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10842 constructor as noexcept.
10843 * completer.h (struct completion_result): Mark move constructor as
10844 noexcept.
10845 * completer.c (completion_result::completion_result): Use
10846 initialization style. Don't call reset_match_list.
10847
ad23bda0
MS
108482020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10849
10850 * MAINTAINERS (Write After Approval): Add myself.
10851
45e1f031
TT
108522020-04-18 Tom Tromey <tom@tromey.com>
10853
10854 * windows-tdep.c (init_w32_command_list)
10855 (w32_prefix_command_valid): Restore.
10856 (_initialize_windows_tdep): Call init_w32_command_list.
10857
08feed99
TT
108582020-04-18 Tom Tromey <tom@tromey.com>
10859
10860 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10861 * value.c (value_fn_field): Update.
10862 * valops.c (find_function_in_inferior)
10863 (value_allocate_space_in_inferior): Update.
10864 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10865 Update.
10866 * tui/tui-source.c (tui_source_window::set_contents): Update.
10867 * symtab.c (lookup_global_or_static_symbol)
10868 (find_function_start_sal_1, skip_prologue_sal)
10869 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10870 * symmisc.c (dump_msymbols, dump_symtab_1)
10871 (maintenance_print_one_line_table): Update.
10872 * symfile.c (init_entry_point_info, section_is_mapped)
10873 (list_overlays_command, simple_read_overlay_table)
10874 (simple_overlay_update_1): Update.
10875 * stap-probe.c (handle_stap_probe): Update.
10876 * stabsread.c (dbx_init_float_type, define_symbol)
10877 (read_one_struct_field, read_enum_type, read_range_type): Update.
10878 * source.c (info_line_command): Update.
10879 * python/python.c (gdbpy_source_objfile_script)
10880 (gdbpy_execute_objfile_script): Update.
10881 * python/py-type.c (save_objfile_types): Update.
10882 * python/py-objfile.c (py_free_objfile): Update.
10883 * python/py-inferior.c (python_new_objfile): Update.
10884 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10885 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10886 (maintenance_check_psymtabs): Update.
10887 * printcmd.c (info_address_command): Update.
10888 * objfiles.h (struct objfile) <arch>: New method, from
10889 get_objfile_arch.
10890 (get_objfile_arch): Don't declare.
10891 * objfiles.c (get_objfile_arch): Remove.
10892 (filter_overlapping_sections): Update.
10893 * minsyms.c (msymbol_is_function): Update.
10894 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10895 (output_nondebug_symbol): Update.
10896 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10897 (mdebug_expand_psymtab): Update.
10898 * machoread.c (macho_add_oso_symfile): Update.
10899 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10900 Update.
10901 * linux-fork.c (checkpoint_command): Update.
10902 * linespec.c (convert_linespec_to_sals): Update.
10903 * jit.c (finalize_symtab): Update.
10904 * infrun.c (insert_exception_resume_from_probe): Update.
10905 * ia64-tdep.c (ia64_find_unwind_table): Update.
10906 * hppa-tdep.c (internalize_unwinds): Update.
10907 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10908 Update.
10909 * gcore.c (call_target_sbrk): Update.
10910 * elfread.c (record_minimal_symbol, elf_symtab_read)
10911 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10912 (elf_gnu_ifunc_resolve_by_got): Update.
10913 * dwarf2/read.c (create_addrmap_from_index)
10914 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10915 (read_debug_names_from_section)
10916 (process_psymtab_comp_unit_reader, add_partial_symbol)
10917 (add_partial_subprogram, process_full_comp_unit)
10918 (read_file_scope, read_func_scope, read_lexical_block_scope)
10919 (read_call_site_scope, dwarf2_ranges_read)
10920 (dwarf2_record_block_ranges, dwarf2_add_field)
10921 (mark_common_block_symbol_computed, read_tag_pointer_type)
10922 (read_tag_string_type, dwarf2_init_float_type)
10923 (dwarf2_init_complex_target_type, read_base_type)
10924 (partial_die_info::read, partial_die_info::read)
10925 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10926 (dwarf2_fetch_die_loc_sect_off): Update.
10927 * dwarf2/loc.c (dwarf2_find_location_expression)
10928 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10929 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10930 (dwarf2_loc_desc_get_symbol_read_needs)
10931 (locexpr_describe_location_piece, locexpr_describe_location_1)
10932 (loclist_describe_location): Update.
10933 * dwarf2/index-write.c (write_debug_names): Update.
10934 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10935 * dtrace-probe.c (dtrace_process_dof): Update.
10936 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10937 (process_one_symbol): Update.
10938 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10939 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10940 (coff_read_enum_type): Update.
10941 * cli/cli-cmds.c (edit_command, list_command): Update.
10942 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10943 * breakpoint.c (create_overlay_event_breakpoint)
10944 (create_longjmp_master_breakpoint)
10945 (create_std_terminate_master_breakpoint)
10946 (create_exception_master_breakpoint, get_sal_arch): Update.
10947 * block.c (block_gdbarch): Update.
10948 * annotate.c (annotate_source_line): Update.
10949
0743fc83
TT
109502020-04-17 Tom Tromey <tromey@adacore.com>
10951
10952 * auto-load.c (show_auto_load_cmd): Remove.
10953 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10954 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10955 (maintenance_print_arc_command): Remove.
10956 * tui/tui-win.c (tui_command): Remove.
10957 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10958 * tui/tui-layout.c (tui_layout_command): Remove.
10959 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10960 * python/python.c (user_set_python, user_show_python): Remove.
10961 (_initialize_python): Use add_basic_prefix_cmd,
10962 add_show_prefix_cmd.
10963 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10964 (install_gdb_commands): Use add_basic_prefix_cmd,
10965 add_show_prefix_cmd.
10966 (info_guile_command): Remove.
10967 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10968 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10969 add_show_prefix_cmd.
10970 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10971 Remove do_set and do_show parameters.
10972 * cli/cli-style.c (set_style, show_style): Remove.
10973 (_initialize_cli_style): Use add_basic_prefix_cmd,
10974 add_show_prefix_cmd.
10975 (cli_style_option::add_setshow_commands): Remove do_set and
10976 do_show parameters.
10977 (cli_style_option::add_setshow_commands): Use
10978 add_basic_prefix_cmd, add_show_prefix_cmd.
10979 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10980 (set_style_name): Remove.
10981 * cli/cli-dump.c (dump_command, append_command): Remove.
10982 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10983 (tekhex_dump_command, binary_dump_command)
10984 (binary_append_command): Remove.
10985 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10986 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10987 (init_w32_command_list): Remove; move into ...
10988 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10989 * valprint.c (set_print, show_print, set_print_raw)
10990 (show_print_raw): Remove.
10991 (_initialize_valprint): Use add_basic_prefix_cmd,
10992 add_show_prefix_cmd.
10993 * typeprint.c (set_print_type, show_print_type): Remove.
10994 (_initialize_typeprint): Use add_basic_prefix_cmd,
10995 add_show_prefix_cmd.
10996 * record.c (set_record_command, show_record_command): Remove.
10997 (_initialize_record): Use add_basic_prefix_cmd,
10998 add_show_prefix_cmd.
10999 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11000 add_show_prefix_cmd.
11001 (info_command, show_command, set_debug, show_debug): Remove.
11002 * top.h (set_history, show_history): Don't declare.
11003 * top.c (set_history, show_history): Remove.
11004 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11005 (unset_tdesc_cmd): Remove.
11006 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11007 add_show_prefix_cmd.
11008 * symtab.c (info_module_command): Remove.
11009 (_initialize_symtab): Use add_basic_prefix_cmd.
11010 * symfile.c (overlay_command): Remove.
11011 (_initialize_symfile): Use add_basic_prefix_cmd.
11012 * sparc64-tdep.c (info_adi_command): Remove.
11013 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11014 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11015 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11016 add_show_prefix_cmd.
11017 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11018 (_initialize_serial): Use add_basic_prefix_cmd,
11019 add_show_prefix_cmd.
11020 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11021 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11022 add_show_prefix_cmd.
11023 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11024 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11025 add_show_prefix_cmd.
11026 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11027 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11028 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11029 add_show_prefix_cmd.
11030 * remote.c (remote_command, set_remote_cmd): Remove.
11031 (_initialize_remote): Use add_basic_prefix_cmd.
11032 * record-full.c (set_record_full_command)
11033 (show_record_full_command): Remove.
11034 (_initialize_record_full): Use add_basic_prefix_cmd,
11035 add_show_prefix_cmd.
11036 * record-btrace.c (cmd_set_record_btrace)
11037 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11038 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11039 (cmd_show_record_btrace_pt): Remove.
11040 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11041 add_show_prefix_cmd.
11042 * ravenscar-thread.c (set_ravenscar_command)
11043 (show_ravenscar_command): Remove.
11044 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11045 add_show_prefix_cmd.
11046 * mips-tdep.c (show_mips_command, set_mips_command)
11047 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11048 add_show_prefix_cmd.
11049 * maint.c (maintenance_command, maintenance_info_command)
11050 (maintenance_check_command, maintenance_print_command)
11051 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11052 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11053 add_show_prefix_cmd.
11054 (show_per_command_cmd): Remove.
11055 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11056 Remove.
11057 (maintenance_show_test_settings_cmd): Remove.
11058 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11059 add_show_prefix_cmd.
11060 * maint-test-options.c (maintenance_test_options_command):
11061 Remove.
11062 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11063 * macrocmd.c (macro_command): Remove
11064 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11065 * language.c (set_check, show_check): Remove.
11066 (_initialize_language): Use add_basic_prefix_cmd,
11067 add_show_prefix_cmd.
11068 * infcmd.c (unset_command): Remove.
11069 (_initialize_infcmd): Use add_basic_prefix_cmd.
11070 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11071 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11072 add_show_prefix_cmd.
11073 * go32-nat.c (go32_info_dos_command): Remove.
11074 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11075 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11076 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11077 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11078 (_initialize_frame): Use add_basic_prefix_cmd,
11079 add_show_prefix_cmd.
11080 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11081 (_initialize_dcache): Use add_basic_prefix_cmd,
11082 add_show_prefix_cmd.
11083 * cp-support.c (maint_cplus_command): Remove.
11084 (_initialize_cp_support): Use add_basic_prefix_cmd.
11085 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11086 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11087 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11088 add_basic_prefix_cmd, add_show_prefix_cmd.
11089 * breakpoint.c (save_command): Remove.
11090 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11091 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11092 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11093 add_show_prefix_cmd.
11094 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11095 (set_ada_command, show_ada_command): Remove.
11096 (_initialize_ada_language): Use add_basic_prefix_cmd,
11097 add_show_prefix_cmd.
11098 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11099
3557f442
KR
111002020-04-16 Kamil Rytarowski <n54@gmx.com>
11101
11102 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11103 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11104
16197208
SM
111052020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11106
11107 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11108 warning messages.
11109
00ac85d3
SM
111102020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11111
11112 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11113 import table is not at beginning of .idata section.
11114
381ce63f
PA
111152020-04-16 Pedro Alves <palves@redhat.com>
11116
11117 * inferior.c (delete_inferior): Use delete operator directly
11118 instead of delete_program_space.
11119 * progspace.c (add_program_space): New, factored out from
11120 program_space::program_space.
11121 (remove_program_space): New, factored out from
11122 delete_program_space.
11123 (program_space::program_space): Remove intro comment. Rewrite.
11124 (program_space::~program_space): Remove intro comment. Call
11125 remove_program_space.
11126 (delete_program_space): Delete.
11127 * progspace.h (program_space::program_space): Make explicit. Move
11128 intro comment here, adjusted.
11129 (program_space::~program_space): Move intro comment here,
11130 adjusted.
11131 (delete_program_space): Remove.
11132
a010605f
TT
111332020-04-16 Tom Tromey <tromey@adacore.com>
11134
11135 * windows-nat.c (windows_nat::handle_access_violation): New
11136 function.
11137 * nat/windows-nat.h (handle_access_violation): Declare.
11138 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11139 windows-nat.c. Call handle_access_violation.
11140
efba5c23
TV
111412020-04-16 Tom de Vries <tdevries@suse.de>
11142
11143 PR symtab/25791
11144 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11145 CUs without psymtab.
11146
97ed802d
KB
111472020-04-16 Kevin Buettner <kevinb@redhat.com>
11148
11149 * python/python.c (do_start_initialization): Don't call
11150 PyEval_InitThreads for Python 3.9 and beyond.
11151
c7d64809
KR
111522020-04-15 Kamil Rytarowski <n54@gmx.com>
11153
11154 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11155 thread functions.
11156 (obsd_nat_target::wait): Likewise.
11157
ce127a96
TT
111582020-04-15 Tom Tromey <tromey@adacore.com>
11159
11160 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11161 (DEBUG_EXCEPT): Use debug_printf.
11162
99f1bc6a
AB
111632020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11164
11165 * completer.c (class completion_tracker::completion_hash_entry)
11166 <hash_name>: New member function.
11167 (completion_tracker::discard_completions): New callback to hash a
11168 completion_hash_entry, pass this to htab_create_alloc.
11169
a0e9b532
JT
111702016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11171
11172 * windows-nat.c (windows_make_so): Warn rather than stopping with
11173 an error if realpath() fails.
11174
06ca5dd4
KR
111752020-04-14 Kamil Rytarowski <n54@gmx.com>
11176
11177 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11178 (nbsd_nat_target::info_proc): Add do_status.
11179
194d088f
TV
111802020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11181 Tom de Vries <tdevries@suse.de>
11182
11183 PR symtab/25718
11184 * psympriv.h (struct partial_symtab::read_symtab)
11185 (struct partial_symtab::expand_psymtab)
11186 (struct partial_symtab::read_dependencies): Update comments.
11187 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11188 read_symtab for includer.
11189 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11190 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11191 (struct dwarf2_include_psymtab::m_readin): Remove.
11192 (struct dwarf2_include_psymtab::includer): New member function.
11193 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11194
c1a66c06
TV
111952020-04-14 Tom de Vries <tdevries@suse.de>
11196
11197 PR symtab/25720
11198 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11199 with NULL symbol_matcher and lookup_name.
11200 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11201 and lookup_name.
11202 * dwarf2/read.c (dw2_expand_symtabs_matching)
11203 (dw2_debug_names_expand_symtabs_matching): Same.
11204 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11205 Make lookup_name a pointer. Update comment.
11206 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11207 lookup_name being a pointer.
11208 * symfile.c (expand_symtabs_matching): Same.
11209 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11210 * linespec.c (iterate_over_all_matching_symtabs): Same.
11211
400b5eca
TT
112122020-04-13 Tom Tromey <tom@tromey.com>
11213
11214 * run-on-main-thread.c: Update include.
11215 * unittests/main-thread-selftests.c: Update include.
11216 * tui/tui-win.c: Update include.
11217 * tui/tui-io.c: Update include.
11218 * tui/tui-interp.c: Update include.
11219 * tui/tui-hooks.c: Update include.
11220 * top.h: Update include.
11221 * top.c: Update include.
11222 * ser-base.c: Update include.
11223 * remote.c: Update include.
11224 * remote-notif.c: Update include.
11225 * remote-fileio.c: Update include.
11226 * record-full.c: Update include.
11227 * record-btrace.c: Update include.
11228 * python/python.c: Update include.
11229 * posix-hdep.c: Update include.
11230 * mingw-hdep.c: Update include.
11231 * mi/mi-main.c: Update include.
11232 * mi/mi-interp.c: Update include.
11233 * main.c: Update include.
11234 * linux-nat.c: Update include.
11235 * interps.c: Update include.
11236 * infrun.c: Update include.
11237 * inf-loop.c: Update include.
11238 * event-top.c: Update include.
11239 * event-loop.c: Move to ../gdbsupport/.
11240 * event-loop.h: Move to ../gdbsupport/.
11241 * async-event.h: Update include.
11242 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11243
93b54c8e
TT
112442020-04-13 Tom Tromey <tom@tromey.com>
11245
11246 * tui/tui-win.c: Include async-event.h.
11247 * remote.c: Include async-event.h.
11248 * remote-notif.c: Include async-event.h.
11249 * record-full.c: Include async-event.h.
11250 * record-btrace.c: Include async-event.h.
11251 * infrun.c: Include async-event.h.
11252 * event-top.c: Include async-event.h.
11253 * event-loop.h: Move some declarations to async-event.h.
11254 * event-loop.c: Don't include ser-event.h or top.h. Move some
11255 code to async-event.c.
11256 * async-event.h: New file.
11257 * async-event.c: New file.
11258 * Makefile.in (COMMON_SFILES): Add async-event.c.
11259 (HFILES_NO_SRCDIR): Add async-event.h.
11260
c1cd3163
TT
112612020-04-13 Tom Tromey <tom@tromey.com>
11262
11263 * utils.c (flush_streams): New function.
11264 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11265
29f2bf4f
TT
112662020-04-13 Tom Tromey <tom@tromey.com>
11267
11268 * event-loop.c (handle_file_event): Use warning, not
11269 printf_unfiltered.
11270
98029d02
TT
112712020-04-13 Tom Tromey <tom@tromey.com>
11272
11273 * event-loop.c: Include <chrono>.
11274
06cc9596
TT
112752020-04-13 Tom Tromey <tom@tromey.com>
11276
11277 * gdb_select.h: Move to ../gdbsupport/.
11278 * event-loop.c: Update include path.
11279 * top.c: Update include path.
11280 * ser-base.c: Update include path.
11281 * ui-file.c: Update include path.
11282 * ser-tcp.c: Update include path.
11283 * guile/scm-ports.c: Update include path.
11284 * posix-hdep.c: Update include path.
11285 * ser-unix.c: Update include path.
11286 * gdb_usleep.c: Update include path.
11287 * mingw-hdep.c: Update include path.
11288 * inflow.c: Update include path.
11289 * infrun.c: Update include path.
11290 * event-top.c: Update include path.
11291
8ae8e197
TT
112922020-04-13 Tom Tromey <tom@tromey.com>
11293
11294 * configure: Rebuild.
11295 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11296
58cf28e8
TT
112972020-04-13 Tom Tromey <tom@tromey.com>
11298
11299 * event-loop.h (start_event_loop): Don't declare.
11300 * event-loop.c (start_event_loop): Move...
11301 * main.c (start_event_loop): ...here. Now static.
11302
b7f999ae
SDJ
113032020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11304
11305 * MAINTAINERS: Update my email address.
11306
1085dfd4
KR
113072020-04-12 Kamil Rytarowski <n54@gmx.com>
11308
11309 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11310 IP_ALL.
11311
49d1d1f5
KR
113122020-04-12 Kamil Rytarowski <n54@gmx.com>
11313
11314 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11315 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11316
b4848d2a
KR
113172020-04-12 Kamil Rytarowski <n54@gmx.com>
11318
11319 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11320 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11321
51c133d5
KR
113222020-04-12 Kamil Rytarowski <n54@gmx.com>
11323
11324 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11325
54b8cbd0
KR
113262020-04-11 Kamil Rytarowski <n54@gmx.com>
11327
11328 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11329 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11330 (nbsd_nat_target::info_proc): New functions.
11331 * nbsd-nat.c (kinfo_get_vmmap): New function.
11332 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11333 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11334 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11335 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11336 functions.
11337 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11338 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11339 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11340 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11341 (KINFO_VME_FLAG_GROWS_DOWN): New.
11342
cf83625d
AS
113432020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11344
11345 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11346 bit shift.
11347
0c4311ab
TT
113482020-04-10 Tom Tromey <tromey@adacore.com>
11349
11350 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11351
3e65b3e9
TT
113522020-04-10 Tom Tromey <tromey@adacore.com>
11353
11354 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11355 separate debug files.
11356
13302e95
HD
113572020-04-10 Hannes Domani <ssbssa@yahoo.de>
11358
11359 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11360 Move to...
11361 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11362 ... here.
11363 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11364 Check for STATUS_WX86_BREAKPOINT.
11365 (windows_nat_target::wait): Same.
11366
bdfc1e8a
TV
113672020-04-10 Tom de Vries <tdevries@suse.de>
11368
11369 PR cli/25808
11370 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11371
f4460aec
SM
113722020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11373
11374 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11375 (Write After Approval): Remove Tom de Vries.
11376
a25198bb
BE
113772020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11378
11379 revert partially:
11380 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11381
aac66a4c
SM
11382 * buildsym.c (record_line): Fix undefined behavior and preserve
11383 lines at eof.
a25198bb 11384
206c98a6
KR
113852020-04-09 Kamil Rytarowski <n54@gmx.com>
11386
11387 * auxv.h (svr4_auxv_parse): New.
11388 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11389 and generic_auxv_parse.
11390 (svr4_auxv_parse): Add.
11391 * obsd-tdep.c: Include "auxv.h".
11392 (obsd_auxv_parse): Remove.
11393 (obsd_init_abi): Remove comment.
11394 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11395 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11396 * nbsd-tdep.c: Include "auxv.h".
11397 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11398
71fbdbaf
TT
113992020-04-08 Tom Tromey <tromey@adacore.com>
11400
11401 * nat/windows-nat.h (last_wait_event): Don't declare.
11402 (wait_for_debug_event): Update comment.
11403 * nat/windows-nat.c (last_wait_event): Now static.
11404
2c1d95e8
TT
114052020-04-08 Tom Tromey <tromey@adacore.com>
11406
11407 * windows-nat.c (wait_for_debug_event): Move to
11408 nat/windows-nat.c.
11409 * nat/windows-nat.h (wait_for_debug_event): Declare.
11410 * nat/windows-nat.c (wait_for_debug_event): Move from
11411 windows-nat.c. No longer static.
11412
d2977bc4
TT
114132020-04-08 Tom Tromey <tromey@adacore.com>
11414
11415 * windows-nat.c (get_windows_debug_event): Use
11416 fetch_pending_stop.
11417 * nat/windows-nat.h (fetch_pending_stop): Declare.
11418 * nat/windows-nat.c (fetch_pending_stop): New function.
11419
e758e19c
TT
114202020-04-08 Tom Tromey <tromey@adacore.com>
11421
11422 * windows-nat.c (windows_continue): Use matching_pending_stop and
11423 continue_last_debug_event.
11424 * nat/windows-nat.h (matching_pending_stop)
11425 (continue_last_debug_event): Declare.
11426 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11427 (matching_pending_stop, continue_last_debug_event): New
11428 functions.
11429
8d30e395
TT
114302020-04-08 Tom Tromey <tromey@adacore.com>
11431
11432 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11433 (handle_exception_result): Move to nat/windows-nat.h.
11434 (DEBUG_EXCEPTION_SIMPLE): Remove.
11435 (windows_nat::handle_ms_vc_exception): New function.
11436 (handle_exception): Move to nat/windows-nat.c.
11437 (get_windows_debug_event): Update.
11438 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11439 nat/windows-nat.c.
11440 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11441 (handle_exception_result): Move from windows-nat.c.
11442 (handle_exception): Declare.
11443 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11444 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11445 windows-nat.c.
11446
29de418d
TT
114472020-04-08 Tom Tromey <tromey@adacore.com>
11448
11449 * windows-nat.c (exception_count, event_count): Remove.
11450 (handle_exception, get_windows_debug_event)
11451 (do_initial_windows_stuff): Update.
11452
a816ba18
TT
114532020-04-08 Tom Tromey <tromey@adacore.com>
11454
11455 * windows-nat.c (windows_nat::handle_load_dll)
11456 (windows_nat::handle_unload_dll): Rename. No longer static.
11457 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11458 Declare.
11459
a00caa12
TT
114602020-04-08 Tom Tromey <tromey@adacore.com>
11461
11462 * complaints.h (stop_whining): Declare at top-level.
11463 (complaint): Don't declare stop_whining.
11464
d41b524f
TT
114652020-04-08 Tom Tromey <tromey@adacore.com>
11466
11467 * windows-nat.c (windows_nat::handle_output_debug_string):
11468 Rename. No longer static.
11469 * nat/windows-nat.h (handle_output_debug_string): Declare.
11470
3c76026d
TT
114712020-04-08 Tom Tromey <tromey@adacore.com>
11472
11473 * windows-nat.c (current_process_handle, current_process_id)
11474 (main_thread_id, last_sig, current_event, last_wait_event)
11475 (current_windows_thread, desired_stop_thread_id, pending_stops)
11476 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11477 (display_selectors, fake_create_process)
11478 (get_windows_debug_event): Update.
11479 * nat/windows-nat.h (current_process_handle, current_process_id)
11480 (main_thread_id, last_sig, current_event, last_wait_event)
11481 (current_windows_thread, desired_stop_thread_id, pending_stops)
11482 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11483 * nat/windows-nat.c (current_process_handle, current_process_id)
11484 (main_thread_id, last_sig, current_event, last_wait_event)
11485 (current_windows_thread, desired_stop_thread_id, pending_stops)
11486 (siginfo_er): New globals. Move from windows-nat.c.
11487
9d8679cc
TT
114882020-04-08 Tom Tromey <tromey@adacore.com>
11489
11490 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11491 (handle_load_dll): Update.
11492 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11493
28688adf
TT
114942020-04-08 Tom Tromey <tromey@adacore.com>
11495
11496 * windows-nat.c (enum thread_disposition_type): Move to
11497 nat/windows-nat.h.
11498 (windows_nat::thread_rec): Rename from thread_rec. No longer
11499 static.
11500 (windows_add_thread, windows_nat_target::fetch_registers)
11501 (windows_nat_target::store_registers, handle_exception)
11502 (windows_nat_target::resume, get_windows_debug_event)
11503 (windows_nat_target::get_tib_address)
11504 (windows_nat_target::thread_name)
11505 (windows_nat_target::thread_alive): Update.
11506 * nat/windows-nat.h (enum thread_disposition_type): Move from
11507 windows-nat.c.
11508 (thread_rec): Declare.
11509
4834dad0
TT
115102020-04-08 Tom Tromey <tromey@adacore.com>
11511
11512 * windows-nat.c: Add "using namespace".
11513 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11514 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11515
65bafd5b
TT
115162020-04-08 Tom Tromey <tromey@adacore.com>
11517
11518 * nat/windows-nat.h (struct windows_thread_info): Declare
11519 destructor.
11520 * nat/windows-nat.c (~windows_thread_info): New.
11521
0a4afda3
TT
115222020-04-08 Tom Tromey <tromey@adacore.com>
11523
11524 PR gdb/22992
11525 * windows-nat.c (current_event): Update comment.
11526 (last_wait_event, desired_stop_thread_id): New globals.
11527 (struct pending_stop): New.
11528 (pending_stops): New global.
11529 (windows_nat_target) <stopped_by_sw_breakpoint>
11530 <supports_stopped_by_sw_breakpoint>: New methods.
11531 (windows_fetch_one_register): Add assertions. Adjust PC.
11532 (windows_continue): Handle pending stops. Suspend other threads
11533 when stepping. Use last_wait_event
11534 (wait_for_debug_event): New function.
11535 (get_windows_debug_event): Use wait_for_debug_event. Handle
11536 pending stops. Queue spurious stops.
11537 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11538 (windows_nat_target::kill): Use wait_for_debug_event.
11539 * nat/windows-nat.h (struct windows_thread_info)
11540 <stopped_at_software_breakpoint>: New field.
11541 * nat/windows-nat.c (windows_thread_info::resume): Clear
11542 stopped_at_software_breakpoint.
11543
8e61ebec
TT
115442020-04-08 Tom Tromey <tromey@adacore.com>
11545
11546 * windows-nat.c (enum thread_disposition_type): New.
11547 (thread_rec): Replace "get_context" parameter with "disposition";
11548 change type.
11549 (windows_add_thread, windows_nat_target::fetch_registers)
11550 (windows_nat_target::store_registers, handle_exception)
11551 (windows_nat_target::resume, get_windows_debug_event)
11552 (windows_nat_target::get_tib_address)
11553 (windows_nat_target::thread_name)
11554 (windows_nat_target::thread_alive): Update.
11555
98a03287
TT
115562020-04-08 Tom Tromey <tromey@adacore.com>
11557
11558 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11559 (windows_continue): Use windows_continue::resume.
11560 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11561 resume>: Declare new methods.
11562 * nat/windows-nat.c: New file.
11563 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11564
7c7411bc
TT
115652020-04-08 Tom Tromey <tromey@adacore.com>
11566
11567 * windows-nat.c (windows_add_thread, windows_delete_thread)
11568 (windows_nat_target::fetch_registers)
11569 (windows_nat_target::store_registers, fake_create_process)
11570 (windows_nat_target::resume, windows_nat_target::resume)
11571 (get_windows_debug_event, windows_nat_target::wait)
11572 (windows_nat_target::pid_to_str)
11573 (windows_nat_target::get_tib_address)
11574 (windows_nat_target::get_ada_task_ptid)
11575 (windows_nat_target::thread_name)
11576 (windows_nat_target::thread_alive): Use lwp, not tid.
11577
2950fdf7
TT
115782020-04-08 Tom Tromey <tromey@adacore.com>
11579
11580 * windows-nat.c (handle_exception)
11581 (windows_nat_target::thread_name): Update.
11582 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11583 <name>: Now unique_xmalloc_ptr.
11584
62fe396b
TT
115852020-04-08 Tom Tromey <tromey@adacore.com>
11586
11587 * windows-nat.c (thread_rec)
11588 (windows_nat_target::fetch_registers): Update.
11589 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11590 Update comment.
11591 <debug_registers_changed, reload_context>: Now bool.
11592
e9534bd2
TT
115932020-04-08 Tom Tromey <tromey@adacore.com>
11594
11595 * windows-nat.c (windows_add_thread): Use new.
11596 (windows_init_thread_list, windows_delete_thread): Use delete.
11597 (get_windows_debug_event): Update.
11598 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11599 destructor, and initializers.
11600
ae1f8880
TT
116012020-04-08 Tom Tromey <tromey@adacore.com>
11602
11603 * windows-nat.c (struct windows_thread_info): Remove.
11604 * nat/windows-nat.h: New file.
11605
55a1e039
TT
116062020-04-08 Tom Tromey <tromey@adacore.com>
11607
11608 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11609 (thread_rec, windows_add_thread, windows_delete_thread)
11610 (windows_continue): Update.
11611
93366324
TT
116122020-04-08 Tom Tromey <tromey@adacore.com>
11613
11614 * windows-nat.c (struct windows_thread_info): Remove typedef.
11615 (thread_head): Remove.
11616 (thread_list): New global.
11617 (thread_rec, windows_add_thread, windows_init_thread_list)
11618 (windows_delete_thread, windows_continue): Update.
11619
0f2265e2
SM
116202020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11621
11622 * windows-tdep.h (windows_init_abi): Add comment.
11623 (cygwin_init_abi): New declaration.
11624 * windows-tdep.c: Split signal enumeration in two, one for
11625 Windows and one for Cygwin.
11626 (windows_gdb_signal_to_target): Only deal with signal of the
11627 Windows OS ABI.
11628 (cygwin_gdb_signal_to_target): New function.
11629 (windows_init_abi): Rename to windows_init_abi_common, don't set
11630 gdb_signal_to_target gdbarch method. Add new new function with
11631 this name.
11632 (cygwin_init_abi): New function.
11633 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11634 comment. Don't call windows_init_abi.
11635 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11636 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11637 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11638 i386_windows_init_abi_common, don't call windows_init_abi. Add
11639 a new function of this name.
11640 (i386_cygwin_init_abi): New function.
11641 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11642 OS ABI Cygwin.
11643
3810f182
SM
116442020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11645
11646 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11647 parameter.c.
11648 (dwarf2_read_gdb_index): Update.
11649
063f8e80
KR
116502020-04-07 Kamil Rytarowski <n54@gmx.com>
11651
11652 * nbsd-tdep.c: Include "objfiles.h".
11653 (nbsd_skip_solib_resolver): New.
11654 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11655
85a9510c 116562020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11657
11658 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11659 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11660 with DW_LLE_base_addressx are being emitted in DWARFv5.
11661 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11662 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11663 unsigned integer.
11664
9fc3eaae 116652020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11666
11667 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11668 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11669 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11670 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11671 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11672 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11673 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11674
11675
41144253 116762020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11677
11678 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11679 (read_loclist_index): New function definition.
11680 (lookup_loclist_base): New function definition.
11681 (read_loclist_header): New function definition.
11682 (dwarf2_cu): Add loclist_base and loclist_header field.
11683 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11684 (read_full_die_1): Read the value of DW_AT_loclists_base.
11685 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11686 (read_attribute_value): Handle DW_FORM_loclistx.
11687 (skip_one_die): Handle DW_FORM_loclistx.
11688 (loclist_header): New structure declaration.
11689 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11690
9f4e76a4
SM
116912020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11692
11693 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11694 constructor. Remove `addr` parameter from other constructor and
11695 add `per_cu` parameter.
11696 * dwarf2/read.c (create_partial_symtab): Update.
11697
25c11aca
TV
116982020-04-07 Tom de Vries <tdevries@suse.de>
11699
11700 PR symtab/25796
11701 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11702 (partial_die_info::fixup): Inherit has_const_value.
11703
5707e24b
TV
117042020-04-07 Tom de Vries <tdevries@suse.de>
11705
11706 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11707 symbols without address.
11708
05f00e22
KR
117092020-04-06 Kamil Rytarowski <n54@gmx.com>
11710
11711 * nbsd-nat.h (struct thread_info): Add forward declaration.
11712 (nbsd_nat_target::thread_alive): Add.
11713 (nbsd_nat_target::thread_name): Likewise.
11714 (nbsd_nat_target::update_thread_list): Likewise.
11715 (update_thread_list::post_attach): Likewise.
11716 (post_attach::pid_to_str): Likewise.
11717 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11718 (nbsd_thread_lister): Add.
11719 (nbsd_nat_target::thread_alive): Likewise.
11720 (nbsd_nat_target::thread_name): Likewise.
11721 (nbsd_add_threads): Likewise.
11722 (update_thread_list::post_attach): Likewise.
11723 (nbsd_nat_target::update_thread_list): Likewise.
11724 (post_attach::pid_to_str): Likewise.
11725
6ee448cc
TT
117262020-04-06 Tom Tromey <tromey@adacore.com>
11727
11728 * ada-valprint.c (print_variant_part): Extract the variant field.
11729 (print_field_values): Use the field as the outer value when
11730 recursing.
11731
dea34e8c
TT
117322020-04-06 Tom Tromey <tromey@adacore.com>
11733
11734 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11735 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11736 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11737 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11738 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11739
93689ce9
TT
117402020-04-06 Tom Tromey <tromey@adacore.com>
11741
11742 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11743 TYPE_CODE_ERROR.
11744
79743962
KR
117452020-04-06 Kamil Rytarowski <n54@gmx.com>
11746
11747 * nbsd-tdep.c: Include "gdbarch.h".
11748 Define enum with NetBSD signal numbers.
11749 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11750 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11751 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11752 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11753 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11754 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11755 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11756 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11757 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11758 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11759 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11760 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11761
9e7c9a03
HD
117622020-04-03 Hannes Domani <ssbssa@yahoo.de>
11763
11764 PR gdb/25325
11765 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11766
d9e49b61
TT
117672020-04-03 Tom Tromey <tromey@adacore.com>
11768
11769 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11770 Read constant block.
11771
e0fc5c3f
SM
117722020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11773
11774 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11775 (gdb_bfd_get_full_section_contents): New declaration.
11776 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11777 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11778 gdb_bfd_get_full_section_contents.
11779
e2ff18a0
SM
117802020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11781
11782 * exec.c (build_section_table): Replace internal_error with
11783 gdb_assert.
11784 (section_table_xfer_memory_partial): Likewise.
11785 * mdebugread.c (parse_partial_symbols): Likewise.
11786 * psymtab.c (lookup_partial_symbol): Likewise.
11787 * utils.c (wrap_here): Likewise.
11788
0830d301
TT
117892020-04-02 Tom Tromey <tromey@adacore.com>
11790
11791 * f-lang.c (build_fortran_types): Use arch_type to initialize
11792 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11793
e7da7f8f
TT
117942020-04-02 Tom Tromey <tromey@adacore.com>
11795
11796 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11797 of attributes.
11798
c90d28ac
AB
117992020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11800 Bernd Edlinger <bernd.edlinger@hotmail.de>
11801 Tom Tromey <tromey@adacore.com>
11802
11803 * buildsym.c (buildsym_compunit::record_line): Remove
11804 deduplication code.
11805
1aa98955
TV
118062020-04-02 Tom de Vries <tdevries@suse.de>
11807
11808 PR ada/24671
11809 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11810
d3214198
TV
118112020-04-02 Tom de Vries <tdevries@suse.de>
11812
11813 * dwarf2/read.c (dwarf2_gdb_index_functions,
11814 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11815 NULL.
11816 * psymtab.c (psym_lookup_global_symbol_language): New function.
11817 (psym_functions): Init psym_lookup_global_symbol_language with
11818 psym_lookup_global_symbol_language.
11819 * symfile-debug.c (debug_sym_quick_functions): Init
11820 lookup_global_symbol_language with NULL.
11821 * symfile.c (set_initial_language): Remove fixme comment.
11822 * symfile.h (struct quick_symbol_functions): Add
11823 lookup_global_symbol_language.
11824 * symtab.c (find_quick_global_symbol_language): New function.
11825 (find_main_name): Use find_quick_global_symbol_language.
11826
2836752f
SM
118272020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11828
11829 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11830
64dc2d4b
BE
118312020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11832
11833 * buildsym.c (record_line): Fix undefined behavior and preserve
11834 lines at eof.
11835
bbe3dc41
BE
118362020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11837
11838 * buildsym.c (record_line): Fix the resizing condition.
11839
6b4a335b
TT
118402020-04-01 Tom Tromey <tom@tromey.com>
11841
11842 * value.h (value_literal_complex): Add comment.
11843 * valops.c (value_literal_complex): Refer to value.h.
11844
3638a098
TT
118452020-04-01 Tom Tromey <tom@tromey.com>
11846
11847 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11848 (scalar_type): New rule, from typebase.
11849 (typebase): Use scalar_type. Recognize complex types.
11850 (field_name): Handle FLOAT_KEYWORD.
11851 (ident_tokens): Add _Complex and __complex__.
11852
c34e8714
TT
118532020-04-01 Tom Tromey <tom@tromey.com>
11854
11855 PR exp/25299:
11856 * valarith.c (promotion_type, complex_binop): New functions.
11857 (scalar_binop): Handle complex numbers. Use promotion_type.
11858 (value_pos, value_neg, value_complement): Handle complex numbers.
11859
fa649bb7
TT
118602020-04-01 Tom Tromey <tom@tromey.com>
11861
11862 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11863 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11864 (parse_number): Handle complex numbers.
11865
981c08ce
TT
118662020-04-01 Tom Tromey <tom@tromey.com>
11867
11868 * c-valprint.c (c_decorations): Change complex suffix to "i".
11869
4c99290d
TT
118702020-04-01 Tom Tromey <tom@tromey.com>
11871
11872 * valprint.c (generic_value_print_complex): Use accessors.
11873 * value.h (value_real_part, value_imaginary_part): Declare.
11874 * valops.c (value_real_part, value_imaginary_part): New
11875 functions.
11876 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11877
5b930b45
TT
118782020-04-01 Tom Tromey <tom@tromey.com>
11879
11880 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11881 (read_range_type): Update.
11882 * mdebugread.c (basic_type): Update.
11883 * go-lang.c (build_go_types): Use init_complex_type.
11884 * gdbtypes.h (struct main_type) <complex_type>: New member.
11885 (init_complex_type): Update.
11886 (arch_complex_type): Don't declare.
11887 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11888 Make name if none given. Use alloc_type_copy. Look for cached
11889 complex type.
11890 (arch_complex_type): Remove.
11891 (gdbtypes_post_init): Use init_complex_type.
11892 * f-lang.c (build_fortran_types): Use init_complex_type.
11893 * dwarf2/read.c (read_base_type): Update.
11894 * d-lang.c (build_d_types): Use init_complex_type.
11895 * ctfread.c (read_base_type): Update.
11896
53cccef1
TBA
118972020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11898
11899 * infrun.c (stop_all_threads): Update assertion, plus when
11900 stopping threads, take into account that we might be trying
11901 to stop an all-stop target.
11902 (stop_waiting): Call 'stop_all_threads' if there exists a
11903 non-stop target.
11904
a0714d30
TBA
119052020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11906
11907 * target.h (exists_non_stop_target): New function declaration.
11908 * target.c (exists_non_stop_target): New function.
11909
60e22c1e
HD
119102020-04-01 Hannes Domani <ssbssa@yahoo.de>
11911
11912 PR gdb/24789
11913 * eval.c (is_integral_or_integral_reference): New function.
11914 (evaluate_subexp_standard): Allow integer references in
11915 pointer arithmetic.
11916
e139a727
TBA
119172020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11918
11919 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11920 check for no ptid in the stop reply when the target is non-stop.
11921
e0802d59
TT
119222020-04-01 Tom Tromey <tromey@adacore.com>
11923
11924 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11925 "name" parameter to rvalue reference. Initialize m_name_holder.
11926 <lookup_name_info>: New overloads.
11927 <name>: Return gdb::string_view.
11928 <c_str>: New method.
11929 <make_ignore_params>: Update.
11930 <search_name_hash>: Update.
11931 <language_lookup_name>: Return const char *.
11932 <m_name>: Change type.
11933 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11934 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11935 (lookup_name_info::match_any): Update.
11936 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11937 Update.
11938 * minsyms.c (linkage_name_str): Update.
11939 * language.c (default_symbol_name_matcher): Update.
11940 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11941 Update.
11942 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11943 (ada_lookup_name_info::ada_lookup_name_info): Update.
11944 (literal_symbol_name_matcher): Update.
11945
8c072cb6
TT
119462020-04-01 Tom Tromey <tromey@adacore.com>
11947
11948 * psymtab.c (psymtab_search_name): Remove function.
11949 (psym_lookup_symbol): Create search name and lookup name here.
11950 (lookup_partial_symbol): Remove "name" parameter; add
11951 lookup_name.
11952 (psym_expand_symtabs_for_function): Update.
11953
6f29a534
TT
119542020-03-31 Joel Jones <joelkevinjones@gmail.com>
11955
11956 PR tui/25597:
11957 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11958
af62665e
TT
119592020-03-31 Tom Tromey <tromey@adacore.com>
11960
11961 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11962 memcpy.
11963
d1a89da5
NC
119642020-03-30 Nelson Chu <nelson.chu@sifive.com>
11965
11966 * features/riscv/32bit-csr.xml: Regenerated.
11967 * features/riscv/64bit-csr.xml: Regenerated.
11968
d8af9068
TT
119692020-03-30 Tom Tromey <tromey@adacore.com>
11970
11971 * ada-valprint.c (print_variant_part): Update.
11972 * ada-lang.h (ada_which_variant_applies): Update.
11973 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11974 outer_valaddr parameters; replace with "outer" value parameter.
11975 (to_fixed_variant_branch_type): Update.
11976
227c0bf4
PFC
119772020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11978
11979 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11980 <list>. Remove inclusion of observable.h.
11981 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11982 (struct arch_lwp_info): New struct.
11983 (class ppc_linux_dreg_interface): New class.
11984 (struct ppc_linux_process_info): New struct.
11985 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11986 <low_new_clone, low_forget_process, low_prepare_to_resume>
11987 <copy_thread_dreg_state, mark_thread_stale>
11988 <mark_debug_registers_changed, register_hw_breakpoint>
11989 <clear_hw_breakpoint, register_wp, clear_wp>
11990 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11991 <num_memory_accesses, get_trigger_type>
11992 <create_watchpoint_request, hwdebug_point_cmp>
11993 <init_arch_lwp_info, get_arch_lwp_info>
11994 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11995 methods.
11996 <struct ptid_hash>: New inner struct.
11997 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11998 members.
11999 (saved_dabr_value, hwdebug_info, max_slots_number)
12000 (struct hw_break_tuple, struct thread_points, ppc_threads)
12001 (have_ptrace_hwdebug_interface)
12002 (hwdebug_find_thread_points_by_tid)
12003 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12004 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12005 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12006 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12007 use m_dreg_interface.
12008 (hwdebug_point_cmp): Change to...
12009 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12010 reference arguments instead of pointers.
12011 (ppc_linux_nat_target::ranged_break_num_registers): Use
12012 m_dreg_interface.
12013 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12014 m_dreg_interface. Call register_hw_breakpoint.
12015 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12016 m_dreg_interface. Call clear_hw_breakpoint.
12017 (get_trigger_type): Change to...
12018 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12019 comment.
12020 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12021 use m_dreg_interface. Call register_hw_breakpoint.
12022 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12023 use m_dreg_interface. Call clear_hw_breakpoint.
12024 (can_use_watchpoint_cond_accel): Change to...
12025 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12026 method. Update comment, use m_dreg_interface and
12027 m_process_info.
12028 (calculate_dvc): Change to...
12029 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12030 m_dreg_interface.
12031 (num_memory_accesses): Change to...
12032 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12033 (check_condition): Change to...
12034 (ppc_linux_nat_target::check_condition): ...this method.
12035 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12036 comment, use m_dreg_interface.
12037 (create_watchpoint_request): Change to...
12038 (ppc_linux_nat_target::create_watchpoint_request): ...this
12039 method. Use m_dreg_interface.
12040 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12041 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12042 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12043 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12044 (ppc_linux_nat_target::low_forget_process)
12045 (ppc_linux_nat_target::low_new_fork)
12046 (ppc_linux_nat_target::low_new_clone)
12047 (ppc_linux_nat_target::low_delete_thread)
12048 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12049 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12050 only call mark_thread_stale.
12051 (ppc_linux_thread_exit): Remove.
12052 (ppc_linux_nat_target::stopped_data_address): Change to...
12053 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12054 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12055 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12056 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12057 comment. Call low_stopped_data_address.
12058 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12059 m_dreg_interface.
12060 (ppc_linux_nat_target::masked_watch_num_registers): Use
12061 m_dreg_interface.
12062 (ppc_linux_nat_target::copy_thread_dreg_state)
12063 (ppc_linux_nat_target::mark_thread_stale)
12064 (ppc_linux_nat_target::mark_debug_registers_changed)
12065 (ppc_linux_nat_target::register_hw_breakpoint)
12066 (ppc_linux_nat_target::clear_hw_breakpoint)
12067 (ppc_linux_nat_target::register_wp)
12068 (ppc_linux_nat_target::clear_wp)
12069 (ppc_linux_nat_target::init_arch_lwp_info)
12070 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12071 (_initialize_ppc_linux_nat): Remove observer callback.
12072
4db10d8f
PFC
120732020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12074
12075 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12076 (ppc_linux_nat_target::auxv_parse)
12077 (ppc_linux_nat_target::read_description)
12078 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12079 Move up.
12080
1310c1b0
PFC
120812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12082
12083 * linux-nat.h (low_new_clone): New method.
12084 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12085
69b037c3
SM
120862020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12087
12088 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12089 (dbx_expand_psymtab): ... this.
12090 (start_psymtab): Update.
12091 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12092 (mdebug_expand_psymtab): ... this.
12093 (parse_partial_symbols): Update.
12094 (new_psymtab): Update.
12095 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12096 (xcoff_expand_psymtab): ... this.
12097 (xcoff_start_psymtab): Update.
12098
48993951
SM
120992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12100
12101 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12102 <expand_dependencies>: ... this.
12103 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12104 (partial_symtab::expand_dependencies): ... this.
12105 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12106 Update.
12107 (dwarf2_psymtab::expand_psymtab): Update.
12108 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12109 * mdebugread.c (psymtab_to_symtab_1): Update.
12110 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12111
3ad83046
SM
121122020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12113
12114 * psympriv.h (discard_psymtab): Remove.
12115 * dbxread.c (dbx_end_psymtab): Update.
12116 * xcoffread.c (xcoff_end_psymtab): Update.
12117
4d1b9ab6
TT
121182020-03-28 Tom Tromey <tom@tromey.com>
12119
12120 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12121 comment.
12122
f1749218
TT
121232020-03-28 Tom Tromey <tom@tromey.com>
12124
12125 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12126
ebea7626
HD
121272020-03-27 Hannes Domani <ssbssa@yahoo.de>
12128
12129 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12130
a879b4d5
JB
121312020-03-26 John Baldwin <jhb@FreeBSD.org>
12132
12133 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12134
0826b30a
TT
121352020-03-26 Tom Tromey <tom@tromey.com>
12136
12137 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12138 (mark_common_block_symbol_computed, read_tag_string_type)
12139 (attr_to_dynamic_prop, read_subrange_type): Update.
12140 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12141 to be methods on struct attribute.
12142 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12143 (read_call_site_scope, partial_die_info::read)
12144 (partial_die_info::read, lookup_die_type, follow_die_ref):
12145 Update.
12146 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12147 from dwarf2_get_ref_die_offset.
12148 (attribute::constant_value): New method, from
12149 dwarf2_get_attr_constant_value.
12150 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12151 Declare method.
12152 <constant_value>: New method.
12153
2b2558bf
TT
121542020-03-26 Tom Tromey <tom@tromey.com>
12155
12156 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12157 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12158 (dwarf_type_encoding_name): Move to stringify.c.
12159 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12160 * dwarf2/stringify.c: New file.
12161 * dwarf2/stringify.h: New file.
12162
eeb64781
TT
121632020-03-26 Tom Tromey <tom@tromey.com>
12164
12165 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12166 Rewrite.
12167
a39fdb41
TT
121682020-03-26 Tom Tromey <tom@tromey.com>
12169
12170 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12171 methods.
12172 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12173 (lookup_ranges_base): Likewise.
12174 (read_cutu_die_from_dwo, read_full_die_1): Update.
12175
436c571c
TT
121762020-03-26 Tom Tromey <tom@tromey.com>
12177
12178 * dwarf2/read.c (read_import_statement, read_file_scope)
12179 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12180 (read_lexical_block_scope, read_call_site_scope)
12181 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12182 (handle_struct_member_die, process_structure_scope)
12183 (update_enumeration_type_from_children)
12184 (process_enumeration_scope, read_array_type, read_common_block)
12185 (read_namespace, read_module, read_subroutine_type): Update.
12186 (sibling_die): Remove.
12187
052c8bb8
TT
121882020-03-26 Tom Tromey <tom@tromey.com>
12189
12190 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12191 (build_type_psymtabs_reader, read_structure_type)
12192 (read_enumeration_type, read_full_die_1): Update.
12193 (dwarf2_attr_no_follow): Move to die.h.
12194 * dwarf2/die.h (struct die_info) <attr>: New method.
12195
2b24b6e4
TT
121962020-03-26 Tom Tromey <tom@tromey.com>
12197
12198 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12199 <base_address>: Now an optional.
12200 (dwarf2_find_base_address, dwarf2_rnglists_process)
12201 (dwarf2_ranges_process, fill_in_loclist_baton)
12202 (dwarf2_symbol_mark_computed): Update.
12203
c2d50fd0
TT
122042020-03-26 Tom Tromey <tom@tromey.com>
12205
12206 * dwarf2/read.c (struct die_info): Move to die.h.
12207 * dwarf2/die.h: New file.
12208
0df7ad3a
TT
122092020-03-26 Tom Tromey <tom@tromey.com>
12210
12211 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12212 * dwarf2/read.c
12213 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12214 Move to line-header.c.
12215 (read_checked_initial_length_and_offset, read_formatted_entries):
12216 Likewise.
12217 (dwarf_decode_line_header): Split into two.
12218 * dwarf2/line-header.c
12219 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12220 Move from read.c.
12221 (read_checked_initial_length_and_offset, read_formatted_entries):
12222 Likewise.
12223 (dwarf_decode_line_header): New function, split from read.c.
12224
86c0bb4c
TT
122252020-03-26 Tom Tromey <tom@tromey.com>
12226
12227 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12228 Declare method.
12229 * dwarf2/read.c (read_attribute_value): Update.
12230 (dwarf2_per_objfile::read_line_string): Rename from
12231 read_indirect_line_string.
12232 (read_formatted_entries): Update.
12233
2ef46c2f
TT
122342020-03-26 Tom Tromey <tom@tromey.com>
12235
12236 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12237 variable.
12238
4f9c1eda
TT
122392020-03-26 Tom Tromey <tom@tromey.com>
12240
12241 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12242 const.
12243 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12244 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12245 parameter const.
12246
5a0e026f
TT
122472020-03-26 Tom Tromey <tom@tromey.com>
12248
12249 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12250 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12251 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12252 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12253
8844c11b
TT
122542020-03-26 Tom Tromey <tom@tromey.com>
12255
12256 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12257 file_names_size, file_full_name, file_file_name>: Use const.
12258 <file_name_at, file_names>: Add const overload.
12259 * dwarf2/line-header.c (line_header::file_file_name)
12260 (line_header::file_full_name): Update.
12261
c90ec28a
TT
122622020-03-26 Tom Tromey <tom@tromey.com>
12263
12264 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12265 (macro_start_file, consume_improper_spaces)
12266 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12267 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12268 (dwarf_decode_macros): Move to macro.c.
12269 * dwarf2/macro.c: New file.
12270 * dwarf2/macro.h: New file.
12271 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12272
4f44ae6c
TT
122732020-03-26 Tom Tromey <tom@tromey.com>
12274
12275 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12276 method.
12277 * dwarf2/section.c: New method. From
12278 read_indirect_string_at_offset_from.
12279 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12280 (read_indirect_string_at_offset_from): Move to section.c.
12281 (read_indirect_string_at_offset): Rewrite.
12282 (read_indirect_line_string_at_offset): Remove.
12283 (read_indirect_string, read_indirect_line_string)
12284 (dwarf_decode_macro_bytes): Update.
12285
a0194fa8
TT
122862020-03-26 Tom Tromey <tom@tromey.com>
12287
12288 * dwarf2/section.h (struct dwarf2_section_info)
12289 <overload_complaint>: Declare.
12290 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12291 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12292 Rename from dwarf2_section_buffer_overflow_complaint.
12293 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12294 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12295
3d27bbdb
TT
122962020-03-26 Tom Tromey <tom@tromey.com>
12297
12298 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12299 Declare.
12300 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12301 Move from read.c.
12302 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12303 to section.c.
12304
9eac9650
TT
123052020-03-26 Tom Tromey <tom@tromey.com>
12306
12307 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12308
bf80d710
TT
123092020-03-26 Tom Tromey <tom@tromey.com>
12310
12311 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12312 "builder".
12313 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12314 parameter.
12315 (dwarf_decode_macros): Update.
12316
0314b390
TT
123172020-03-26 Tom Tromey <tom@tromey.com>
12318
12319 * dwarf2/read.c (read_attribute_value): Update.
12320 (read_indirect_string_from_dwz): Move to dwz.c; change into
12321 method.
12322 (dwarf_decode_macro_bytes): Update.
12323 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12324 * dwarf2/dwz.c: New file.
12325 * Makefile.in (COMMON_SFILES): Add dwz.c.
12326
9fda78b6
TT
123272020-03-26 Tom Tromey <tom@tromey.com>
12328
12329 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12330 * dwarf2/read.c: Add include.
12331 * dwarf2/index-write.c: Add include.
12332 * dwarf2/index-cache.c: Add include.
12333 * dwarf2/dwz.h: New file.
12334
33aa3c10
TT
123352020-03-25 Tom Tromey <tom@tromey.com>
12336
12337 * compile/compile-object-load.c (get_out_value_type): Mention
12338 correct symbol name in error message.
12339
d503b685
HD
123402020-03-25 Hannes Domani <ssbssa@yahoo.de>
12341
12342 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12343
7b1eff95
TV
123442020-03-25 Tom de Vries <tdevries@suse.de>
12345
12346 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12347 * symmisc.c (dump_symtab_1): Print user and includes fields.
12348 (maintenance_info_symtabs): Same.
12349
dd895392
AB
123502020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12351
12352 PR gdb/25534
12353 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12354 (riscv_regcache_cooked_write): New function.
12355 (riscv_push_dummy_call): Use new function.
12356 (riscv_return_value): Likewise.
12357
5ab2fbf1
SM
123582020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12359
12360 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12361 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12362 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12363 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12364 * infrun.c (follow_fork): Likewise.
12365 (follow_fork_inferior): Likewise.
12366 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12367 * linux-nat.h (class linux_nat_target): Likewise.
12368 * remote.c (class remote_target) <follow_fork>: Likewise.
12369 (remote_target::follow_fork): Likewise.
12370 * target-delegates.c: Re-generate.
12371 * target.c (default_follow_fork): Likewise.
12372 (target_follow_fork): Likewise.
12373 * target.h (struct target_ops) <follow_fork>: Likewise.
12374 (target_follow_fork): Likewise.
12375
a64fafb5
TV
123762020-03-24 Tom de Vries <tdevries@suse.de>
12377
12378 * psymtab.c (maintenance_info_psymtabs): Print user field.
12379
fe26d3a3
TT
123802020-03-20 Tom Tromey <tromey@adacore.com>
12381
12382 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12383 const.
12384 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12385 const.
12386
c884cc46
SM
123872020-03-20 Simon Marchi <simon.marchi@efficios.com>
12388
12389 * ptrace.m4: Don't check for ptrace declaration.
12390 * config.in: Re-generate.
12391 * configure: Re-generate.
12392 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12393 not defined.
12394
1ff700c2
KR
123952020-03-20 Kamil Rytarowski <n54@gmx.com>
12396
12397 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12398 `PTRACE_TYPE_RET'.
12399 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12400 * sparc-nat.c (gdb_ptrace): Likewise.
12401 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12402
f7d4f0b1
TT
124032020-03-20 Tom Tromey <tromey@adacore.com>
12404
12405 * c-exp.y (lex_one_token): Fix assert.
12406
f67210ff
TT
124072020-03-20 Tom Tromey <tromey@adacore.com>
12408
12409 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12410 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12411 strncpy call.
12412
1773be9e
TT
124132020-03-20 Tom Tromey <tromey@adacore.com>
12414
12415 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12416
70304be9
TT
124172020-03-20 Tom Tromey <tromey@adacore.com>
12418
12419 * ada-valprint.c (print_variant_part): Remove parameters; switch
12420 to value-based API.
12421 (print_field_values): Likewise.
12422 (ada_val_print_struct_union): Likewise.
12423 (ada_value_print_1): Update.
12424
9faa006d
KR
124252020-03-20 Kamil Rytarowski <n54@gmx.com>
12426
12427 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12428 nbsd_nat_target instead of inf_ptrace_target.
12429 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12430 nbsd_nat_target.
12431
4a90f062
KR
124322020-03-20 Kamil Rytarowski <n54@gmx.com>
12433
12434 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12435 it to the ptrace call.
12436 * (store_registers): Likewise.
12437
124382020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12439
12440 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12441 it to the ptrace call.
12442 * (store_registers): Likewise.
12443
2d07da27
LM
124442020-03-19 Luis Machado <luis.machado@linaro.org>
12445
12446 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12447 valid, fetch vg value from ptrace.
12448
f09db380
KR
124492020-03-19 Kamil Rytarowski <n54@gmx.com>
12450 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12451 * inf-ptrace.c: Likewise.
12452 * (gdb_ptrace): Add.
12453 * (inf_ptrace_target::resume): Update.
12454 * (inf_ptrace_target::xfer_partial): Likewise.
12455 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12456 * (inf_ptrace_peek_poke): Update.
12457
fcc7376e
KR
124582020-03-19 Kamil Rytarowski <n54@gmx.com>
12459
12460 * x86-bsd-nat.c (gdb_ptrace): New.
12461 * (x86bsd_dr_set): Add new argument `ptid'.
12462 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12463 x86bsd_dr_set_addr): Update.
12464
cada5fc9
AB
124652020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12466
12467 * remote.c (remote_target::process_stop_reply): Handle events for
12468 all threads differently.
12469
19a2740f
AB
124702020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12471
12472 * completer.c (completion_tracker::remove_completion): Define new
12473 function.
12474 * completer.h (completion_tracker::remove_completion): Declare new
12475 function.
12476 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12477 when adding a C++ function symbol.
12478
724fd9ba
AB
124792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12480
12481 * completer.c (completion_tracker::completion_hash_entry): Define
12482 new class.
12483 (advance_to_filename_complete_word_point): Call
12484 recompute_lowest_common_denominator.
12485 (completion_tracker::completion_tracker): Call discard_completions
12486 to setup the hash table.
12487 (completion_tracker::discard_completions): Allow for being called
12488 from the constructor, pass new equal function, and element deleter
12489 when constructing the hash table. Initialise new class member
12490 variables.
12491 (completion_tracker::maybe_add_completion): Remove use of
12492 m_entries_vec, and store more information into m_entries_hash.
12493 (completion_tracker::recompute_lcd_visitor): New function, most
12494 content taken from...
12495 (completion_tracker::recompute_lowest_common_denominator):
12496 ...here, this now just visits each item in the hash calling the
12497 above visitor.
12498 (completion_tracker::build_completion_result): Remove use of
12499 m_entries_vec, call recompute_lowest_common_denominator.
12500 * completer.h (completion_tracker::have_completions): Remove use
12501 of m_entries_vec.
12502 (completion_tracker::completion_hash_entry): Declare new class.
12503 (completion_tracker::recompute_lowest_common_denominator): Change
12504 function signature.
12505 (completion_tracker::recompute_lcd_visitor): Declare new function.
12506 (completion_tracker::m_entries_vec): Delete.
12507 (completion_tracker::m_entries_hash): Initialize to NULL.
12508 (completion_tracker::m_lowest_common_denominator_valid): New
12509 member variable.
12510 (completion_tracker::m_lowest_common_denominator_max_length): New
12511 member variable.
12512
5a82b8a1
KR
125132020-03-17 Kamil Rytarowski <n54@gmx.com>
12514
12515 * regformats/regdef.h: Put reg in gdb namespace.
12516
fb516a69
KR
125172020-03-17 Kamil Rytarowski <n54@gmx.com>
12518
12519 * i386-bsd-nat.c (gdb_ptrace): New.
12520 * (i386bsd_fetch_inferior_registers,
12521 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12522 * (i386bsd_fetch_inferior_registers,
12523 i386bsd_store_inferior_registers) Use gdb_ptrace.
12524
1c0aa1fb
KR
125252020-03-17 Kamil Rytarowski <n54@gmx.com>
12526
12527 * amd64-bsd-nat.c (gdb_ptrace): New.
12528 * (amd64bsd_fetch_inferior_registers,
12529 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12530 * (amd64bsd_fetch_inferior_registers,
12531 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12532
5ccd2fb7
KR
125332020-03-17 Kamil Rytarowski <n54@gmx.com>
12534
12535 * user-regs.c (user_reg::read): Rename to...
12536 (user_reg::xread): ...this.
12537 * (append_user_reg): Rename argument `read' to `xread'.
12538 * (user_reg_add_builtin): Likewise.
12539 * (user_reg_add): Likewise.
12540 * (value_of_user_reg): Likewise.
12541
2108a63a
KR
125422020-03-17 Kamil Rytarowski <n54@gmx.com>
12543
12544 * sparc-nat.c (gdb_ptrace): New.
12545 * sparc-nat.c (sparc_fetch_inferior_registers)
12546 (sparc_store_inferior_registers) Remove obsolete comment.
12547 * sparc-nat.c (sparc_fetch_inferior_registers)
12548 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12549 * sparc-nat.c (sparc_fetch_inferior_registers)
12550 (sparc_store_inferior_registers) Use gdb_ptrace.
12551
a225c9a8
KR
125522020-03-17 Kamil Rytarowski <n54@gmx.com>
12553
12554 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12555 it to the ptrace call.
12556 * sh-nbsd-nat.c (store_registers): Likewise.
12557
98097623
KR
125582020-03-17 Kamil Rytarowski <n54@gmx.com>
12559
12560 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12561 nbsd_nat_target instead of inf_ptrace_target.
12562 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12563 nbsd_nat_target.
12564
9e38d619
KR
125652020-03-17 Kamil Rytarowski <n54@gmx.com>
12566
12567 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12568
a2ecbe9f
KR
125692020-03-17 Kamil Rytarowski <n54@gmx.com>
12570
12571 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12572 <sys/sysctl.h>.
12573 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12574
58990295
TV
125752020-03-17 Tom de Vries <tdevries@suse.de>
12576
12577 PR gdb/23710
12578 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12579 fields.
12580 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12581 fields.
12582 (process_imported_unit_die): Skip import of c++ CUs.
12583
771dd3a8
TT
125842020-03-16 Tom Tromey <tom@tromey.com>
12585
12586 * p-valprint.c (pascal_object_print_value): Initialize
12587 base_value.
12588
817a7585
AK
125892020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12590 Shahab Vahedi <shahab@synopsys.com>
12591
12592 * Makefile.in: Add arch/arc.o
12593 * configure.tgt: Likewise.
12594 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12595 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12596 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12597 * arc-tdep.h (arc_read_description): Add proto type.
12598 * arch/arc.c: New file.
12599 * arch/arc.h: Likewise.
12600 * features/Makefile: Replace old target descriptions with new.
12601 * features/arc-arcompact.c: Remove.
12602 * features/arc-arcompact.xml: Likewise.
12603 * features/arc-v2.c: Likewise
12604 * features/arc-v2.xml: Likewise
12605 * features/arc/aux-arcompact.xml: New file.
12606 * features/arc/aux-v2.xml: Likewise.
12607 * features/arc/core-arcompact.xml: Likewise.
12608 * features/arc/core-v2.xml: Likewise.
12609 * features/arc/aux-arcompact.c: Generate.
12610 * features/arc/aux-v2.c: Likewise.
12611 * features/arc/core-arcompact.c: Likewise.
12612 * features/arc/core-v2.c: Likewise.
12613 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12614
67430cd0
TT
126152020-03-16 Tom Tromey <tromey@adacore.com>
12616
12617 PR gdb/25663:
12618 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12619 putting value into bcache.
12620
30efb6c7
SM
126212020-03-16 Simon Marchi <simon.marchi@efficios.com>
12622
12623 PR gdb/21500
12624 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12625 to...
12626 (amd64_windows_init_abi_common): ... this. Don't set size of
12627 long type.
12628 (amd64_windows_init_abi): New function.
12629 (amd64_cygwin_init_abi): New function.
12630 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12631 the Cygwin OS ABI.
12632 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12633 comment.
12634
8db52437
SM
126352020-03-16 Simon Marchi <simon.marchi@efficios.com>
12636
12637 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12638 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12639 (pe_import_directory_entry): New struct type.
12640 (is_linked_with_cygwin_dll): New function.
12641 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12642 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12643 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12644
5982a56a
SM
126452020-03-16 Simon Marchi <simon.marchi@efficios.com>
12646
12647 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12648 i386_cygwin_core_osabi_sniffer.
12649
7a1998df
SM
126502020-03-16 Simon Marchi <simon.marchi@efficios.com>
12651
12652 * i386-cygwin-tdep.c: Rename to...
12653 * i386-windows-tdep.c: ... this.
12654 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12655 i386-windows-tdep.c.
12656 * configure.tgt: Likewise.
12657
053205cc
SM
126582020-03-16 Simon Marchi <simon.marchi@efficios.com>
12659
12660 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12661 * osabi.c (gdb_osabi_names): Add "Windows".
12662 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12663 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12664 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12665 i386_cygwin_osabi_sniffer.
12666 (_initialize_i386_cygwin_tdep): Register OS ABI
12667 GDB_OSABI_WINDOWS for i386.
12668 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12669 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12670 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12671 for x86-64.
12672 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12673 when the target matches '*-*-mingw*'.
12674
fe4b2ee6
SM
126752020-03-16 Simon Marchi <simon.marchi@efficios.com>
12676
12677 * defs.h (enum gdb_osabi): Move to...
12678 * osabi.h (enum gdb_osabi): ... here.
12679 * gdbarch.sh: Include osabi.h in gdbarch.h.
12680 * gdbarch.h: Re-generate.
12681
cb9b645d
SM
126822020-03-16 Simon Marchi <simon.marchi@efficios.com>
12683
12684 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12685 function.
12686 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12687
3293bbaf
TT
126882020-03-14 Tom Tromey <tom@tromey.com>
12689
12690 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12691 for C++.
12692 (c_type_print_modifier): Likewise. Add "language" parameter.
12693 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12694 (c_type_print_base_1): Update.
12695 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12696 constants.
12697 * type-stack.c (type_stack::insert): Handle tp_atomic and
12698 tp_restrict.
12699 (type_stack::follow_type_instance_flags): Likewise.
12700 (type_stack::follow_types): Likewise. Merge type-following code.
12701 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12702 (space_identifier, cv_with_space_id)
12703 (const_or_volatile_or_space_identifier_noopt)
12704 (const_or_volatile_or_space_identifier): Remove.
12705 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12706 rules.
12707 (ptr_operator, typebase): Update.
12708 (enum token_flag) <FLAG_C>: New constant.
12709 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12710 "_Atomic".
12711 (lex_one_token): Handle FLAG_C.
12712
154151a6
KR
127132020-03-14 Kamil Rytarowski <n54@gmx.com>
12714
12715 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12716 it to the ptrace call.
12717 * m68k-bsd-nat.c (store_registers): Likewise.
12718
bc107784
KR
127192020-03-14 Kamil Rytarowski <n54@gmx.com>
12720
12721 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12722 gdb_byte *.
12723 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12724 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12725 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12726
01a80117
KR
127272020-03-14 Kamil Rytarowski <n54@gmx.com>
12728
12729 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12730 nbsd_nat_target instead of inf_ptrace_target.
12731 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12732 nbsd_nat_target.
12733
f90280ca
KR
127342020-03-14 Kamil Rytarowski <n54@gmx.com>
12735
12736 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12737 register_t.
12738
6def66f1
KR
127392020-03-14 Kamil Rytarowski <n54@gmx.com>
12740
12741 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12742 it to the ptrace call.
12743 * alpha-bsd-nat.c (store_registers): Likewise.
12744
66eaca97
KR
127452020-03-14 Kamil Rytarowski <n54@gmx.com>
12746
12747 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12748 includes.
12749 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12750 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12751 fill_fpregset): Likewise.
12752
4fed520b
KR
127532020-03-14 Kamil Rytarowski <n54@gmx.com>
12754
12755 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12756 nbsd_nat_target instead of inf_ptrace_target.
12757 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12758 nbsd_nat_target.
12759
2190cf06
KR
127602020-03-14 Kamil Rytarowski <n54@gmx.com>
12761
12762 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12763 register_t.
12764
75c56d3d
KR
127652020-03-14 Kamil Rytarowski <n54@gmx.com>
12766
12767 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12768 it to the ptrace call.
12769 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12770 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12771 * arm-nbsd-nat.c (store_register): Likewise.
12772 * arm-nbsd-nat.c (store_regs): Likewise.
12773 * arm-nbsd-nat.c (store_fp_register): Likewise.
12774 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12775
6018d381
KR
127762020-03-14 Kamil Rytarowski <n54@gmx.com>
12777
12778 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12779 nbsd_nat_target instead of inf_ptrace_target.
12780 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12781 nbsd_nat_target.
12782
013f99f0
KR
127832020-03-14 Kamil Rytarowski <n54@gmx.com>
12784
12785 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12786 it to the ptrace call.
12787 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12788
12753073
KR
127892020-03-14 Kamil Rytarowski <n54@gmx.com>
12790
6227b330
KR
12791 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12792 it to the ptrace call.
12793 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12794
127952020-03-14 Kamil Rytarowski <n54@gmx.com>
12796
12797 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12798 gdb_byte *.
12753073
KR
12799 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12800
d5be5fa4
KR
128012020-03-14 Kamil Rytarowski <n54@gmx.com>
12802
12803 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12804 instead of inf_ptrace_target.
12805 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12806 nbsd_nat_target.
12807
8110f842
KR
128082020-03-14 Kamil Rytarowski <n54@gmx.com>
12809
12810 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12811 register_t.
12812
52feded7
KR
128132020-03-14 Kamil Rytarowski <n54@gmx.com>
12814
12815 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12816 register_t.
12817
25567eee
KR
128182020-03-14 Kamil Rytarowski <n54@gmx.com>
12819
12820 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12821 register_t.
12822
426a9c18
TT
128232020-03-13 Tom Tromey <tom@tromey.com>
12824
12825 * value.h (val_print): Don't declare.
12826 * valprint.h (val_print_array_elements)
12827 (val_print_scalar_formatted, generic_val_print): Don't declare.
12828 * valprint.c (generic_val_print_array): Take a struct value.
12829 (generic_val_print_ptr, generic_val_print_memberptr)
12830 (generic_val_print_bool, generic_val_print_int)
12831 (generic_val_print_char, generic_val_print_complex)
12832 (generic_val_print): Remove.
12833 (generic_value_print): Update.
12834 (do_val_print): Remove unused parameters. Don't call
12835 la_val_print.
12836 (val_print): Remove.
12837 (common_val_print): Update. Don't call value_check_printable.
12838 (val_print_scalar_formatted, val_print_array_elements): Remove.
12839 * rust-lang.c (rust_val_print): Remove.
12840 (rust_language_defn): Update.
12841 * p-valprint.c (pascal_val_print): Remove.
12842 (pascal_value_print_inner): Update.
12843 (pascal_object_print_val_fields, pascal_object_print_val):
12844 Remove.
12845 (pascal_object_print_static_field): Update.
12846 * p-lang.h (pascal_val_print): Don't declare.
12847 * p-lang.c (pascal_language_defn): Update.
12848 * opencl-lang.c (opencl_language_defn): Update.
12849 * objc-lang.c (objc_language_defn): Update.
12850 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12851 * m2-lang.h (m2_val_print): Don't declare.
12852 * m2-lang.c (m2_language_defn): Update.
12853 * language.h (struct language_defn) <la_val_print>: Remove.
12854 * language.c (unk_lang_value_print_inner): Rename. Change
12855 argument types.
12856 (unknown_language_defn, auto_language_defn): Update.
12857 * go-valprint.c (go_val_print): Remove.
12858 * go-lang.h (go_val_print): Don't declare.
12859 * go-lang.c (go_language_defn): Update.
12860 * f-valprint.c (f_val_print): Remove.
12861 * f-lang.h (f_value_print): Don't declare.
12862 * f-lang.c (f_language_defn): Update.
12863 * d-valprint.c (d_val_print): Remove.
12864 * d-lang.h (d_value_print): Don't declare.
12865 * d-lang.c (d_language_defn): Update.
12866 * cp-valprint.c (cp_print_value_fields)
12867 (cp_print_value_fields_rtti, cp_print_value): Remove.
12868 (cp_print_static_field): Update.
12869 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12870 (c_val_print_struct, c_val_print_union, c_val_print_int)
12871 (c_val_print_memberptr, c_val_print): Remove.
12872 * c-lang.h (c_val_print_array, cp_print_value_fields)
12873 (cp_print_value_fields_rtti): Don't declare.
12874 * c-lang.c (c_language_defn, cplus_language_defn)
12875 (asm_language_defn, minimal_language_defn): Update.
12876 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12877 (ada_val_print_enum): Take a struct value.
12878 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12879 (ada_val_print): Remove.
12880 (ada_value_print_1): Update.
12881 (printable_val_type): Remove.
12882 * ada-lang.h (ada_val_print): Don't declare.
12883 * ada-lang.c (ada_language_defn): Update.
12884
42331a1e
TT
128852020-03-13 Tom Tromey <tom@tromey.com>
12886
12887 * valprint.c (do_val_print): Update.
12888 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12889 a struct value.
12890 (value_to_value_object_no_release): Declare.
12891 * python/py-value.c (value_to_value_object_no_release): New
12892 function.
12893 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12894 struct value.
12895 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12896 function.
12897 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12898 a struct value.
12899 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12900 Declare.
12901 (gdbscm_apply_val_pretty_printer): Take a struct value.
12902 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12903 value.
12904 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12905 value.
12906 * extension-priv.h (struct extension_language_ops)
12907 <apply_val_pretty_printer>: Take a struct value.
12908 * cp-valprint.c (cp_print_value): Create a struct value.
12909 (cp_print_value): Update.
12910
3a916a97
TT
129112020-03-13 Tom Tromey <tom@tromey.com>
12912
12913 * ada-valprint.c (print_field_values): Call common_val_print.
12914
b59eac37
TT
129152020-03-13 Tom Tromey <tom@tromey.com>
12916
12917 * ada-valprint.c (val_print_packed_array_elements): Remove
12918 bitoffset and val parameters. Call common_val_print.
12919 (ada_val_print_string): Remove offset, address, and original_value
12920 parameters.
12921 (ada_val_print_array): Update.
12922 (ada_value_print_array): New function.
12923 (ada_value_print_1): Call it.
12924
03371129
TT
129252020-03-13 Tom Tromey <tom@tromey.com>
12926
12927 * ada-valprint.c (ada_value_print): Use common_val_print.
12928
2e088f8b
TT
129292020-03-13 Tom Tromey <tom@tromey.com>
12930
12931 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12932
39ef85a8
TT
129332020-03-13 Tom Tromey <tom@tromey.com>
12934
12935 * ada-valprint.c (ada_value_print_num): New function.
12936 (ada_value_print_1): Use it.
12937
b9fa6e07
TT
129382020-03-13 Tom Tromey <tom@tromey.com>
12939
12940 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12941
416595d6
TT
129422020-03-13 Tom Tromey <tom@tromey.com>
12943
12944 * ada-valprint.c (ada_value_print_ptr): New function.
12945 (ada_value_print_1): Use it.
12946
5b5e15ec
TT
129472020-03-13 Tom Tromey <tom@tromey.com>
12948
12949 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12950 call common_val_print.
12951 (ada_val_print_1): Update.
12952 (ada_value_print_1): New function.
12953 (ada_value_print_inner): Rewrite.
12954
fbf54e75
TT
129552020-03-13 Tom Tromey <tom@tromey.com>
12956
12957 * cp-valprint.c (cp_print_value_fields): Update.
12958 (cp_print_value): New function.
12959
64b653ca
TT
129602020-03-13 Tom Tromey <tom@tromey.com>
12961
12962 * m2-valprint.c (m2_value_print_inner): Use
12963 cp_print_value_fields.
12964 * cp-valprint.c (cp_print_value_fields): New function.
12965 * c-valprint.c (c_value_print_struct): New function.
12966 (c_value_print_inner): Use c_value_print_struct.
12967 * c-lang.h (cp_print_value_fields): Declare.
12968
6999f067
TT
129692020-03-13 Tom Tromey <tom@tromey.com>
12970
12971 * c-valprint.c (c_value_print_array): New function.
12972 (c_value_print_inner): Use it.
12973
ce80b8bd
TT
129742020-03-13 Tom Tromey <tom@tromey.com>
12975
12976 * c-valprint.c (c_value_print_memberptr): New function.
12977 (c_value_print_inner): Use it.
12978
2faac269
TT
129792020-03-13 Tom Tromey <tom@tromey.com>
12980
12981 * c-valprint.c (c_value_print_int): New function.
12982 (c_value_print_inner): Use it.
12983
da3e2c29
TT
129842020-03-13 Tom Tromey <tom@tromey.com>
12985
12986 * c-valprint.c (c_value_print_ptr): New function.
12987 (c_value_print_inner): Use it.
12988
50836231
TT
129892020-03-13 Tom Tromey <tom@tromey.com>
12990
12991 * c-valprint.c (c_value_print_inner): Rewrite.
12992
4f412b6e
TT
129932020-03-13 Tom Tromey <tom@tromey.com>
12994
12995 * valprint.c (generic_value_print_complex): New function.
12996 (generic_value_print): Use it.
12997
f5354008
TT
129982020-03-13 Tom Tromey <tom@tromey.com>
12999
13000 * valprint.c (generic_val_print_float): Don't call
13001 val_print_scalar_formatted.
13002 (generic_val_print, generic_value_print): Update.
13003
3eec3b05
TT
130042020-03-13 Tom Tromey <tom@tromey.com>
13005
13006 * valprint.c (generic_value_print_char): New function
13007 (generic_value_print): Use it.
13008
fdddfccb
TT
130092020-03-13 Tom Tromey <tom@tromey.com>
13010
13011 * valprint.c (generic_value_print_int): New function.
13012 (generic_value_print): Use it.
13013
6dde7521
TT
130142020-03-13 Tom Tromey <tom@tromey.com>
13015
13016 * valprint.c (generic_value_print_bool): New function.
13017 (generic_value_print): Use it.
13018
4112d2e6
TT
130192020-03-13 Tom Tromey <tom@tromey.com>
13020
13021 * valprint.c (generic_val_print_func): Simplify.
13022 (generic_val_print, generic_value_print): Update.
13023
65786af6
TT
130242020-03-13 Tom Tromey <tom@tromey.com>
13025
13026 * valprint.c (generic_val_print_flags): Remove.
13027 (generic_val_print, generic_value_print): Update.
13028 (val_print_type_code_flags): Add original_value parameter.
13029
40f3ce18
TT
130302020-03-13 Tom Tromey <tom@tromey.com>
13031
13032 * valprint.c (generic_val_print): Update.
13033 (generic_value_print): Update.
13034 * valprint.c (generic_val_print_enum): Don't call
13035 val_print_scalar_formatted.
13036
2a5b130b
TT
130372020-03-13 Tom Tromey <tom@tromey.com>
13038
13039 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13040 * valprint.c (generic_value_print_ptr): New function.
13041
abc66ce9
TT
130422020-03-13 Tom Tromey <tom@tromey.com>
13043
13044 * valprint.c (generic_value_print): Rewrite.
13045
07a32858
TT
130462020-03-13 Tom Tromey <tom@tromey.com>
13047
13048 * p-valprint.c (pascal_object_print_value_fields)
13049 (pascal_object_print_value): New functions.
13050
64d64d3a
TT
130512020-03-13 Tom Tromey <tom@tromey.com>
13052
13053 * p-valprint.c (pascal_value_print_inner): Rewrite.
13054
6a95a1f5
TT
130552020-03-13 Tom Tromey <tom@tromey.com>
13056
13057 * f-valprint.c (f_value_print_innner): Rewrite.
13058
59fcdac6
TT
130592020-03-13 Tom Tromey <tom@tromey.com>
13060
13061 * m2-valprint.c (m2_print_unbounded_array): New overload.
13062 (m2_print_unbounded_array): Update.
13063 (m2_print_array_contents): Take a struct value.
13064 (m2_value_print_inner): Rewrite.
13065
d133c3e1
TT
130662020-03-13 Tom Tromey <tom@tromey.com>
13067
13068 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13069 (d_value_print_inner): New function.
13070 * d-lang.h (d_value_print_inner): Declare.
13071 * d-lang.c (d_language_defn): Use d_value_print_inner.
13072
23b0f06b
TT
130732020-03-13 Tom Tromey <tom@tromey.com>
13074
13075 * go-valprint.c (go_value_print_inner): New function.
13076 * go-lang.h (go_value_print_inner): Declare.
13077 * go-lang.c (go_language_defn): Use go_value_print_inner.
13078
5f56f7cb
TT
130792020-03-13 Tom Tromey <tom@tromey.com>
13080
13081 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13082 API.
13083 (rust_val_print): Rewrite.
13084 (rust_value_print_inner): New function, from rust_val_print.
13085 (rust_language_defn): Use rust_value_print_inner.
13086
26792ee0
TT
130872020-03-13 Tom Tromey <tom@tromey.com>
13088
13089 * ada-valprint.c (ada_value_print_inner): New function.
13090 * ada-lang.h (ada_value_print_inner): Declare.
13091 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13092
24051bbe
TT
130932020-03-13 Tom Tromey <tom@tromey.com>
13094
13095 * f-valprint.c (f_value_print_innner): New function.
13096 * f-lang.h (f_value_print_innner): Declare.
13097 * f-lang.c (f_language_defn): Use f_value_print_innner.
13098
c0941be6
TT
130992020-03-13 Tom Tromey <tom@tromey.com>
13100
13101 * p-valprint.c (pascal_value_print_inner): New function.
13102 * p-lang.h (pascal_value_print_inner): Declare.
13103 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13104
62c4663d
TT
131052020-03-13 Tom Tromey <tom@tromey.com>
13106
13107 * m2-valprint.c (m2_value_print_inner): New function.
13108 * m2-lang.h (m2_value_print_inner): Declare.
13109 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13110
62182190
TT
131112020-03-13 Tom Tromey <tom@tromey.com>
13112
13113 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13114 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13115 * c-valprint.c (c_value_print_inner): New function.
13116 * c-lang.h (c_value_print_inner): Declare.
13117 * c-lang.c (c_language_defn, cplus_language_defn)
13118 (asm_language_defn, minimal_language_defn): Use
13119 c_value_print_inner.
13120
1e592a8a
TT
131212020-03-13 Tom Tromey <tom@tromey.com>
13122
13123 * p-valprint.c (pascal_object_print_value_fields): Now static.
13124 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13125
7fe471e9
TT
131262020-03-13 Tom Tromey <tom@tromey.com>
13127
13128 * c-valprint.c (c_val_print_array): Simplify.
13129
d121c6ce
TT
131302020-03-13 Tom Tromey <tom@tromey.com>
13131
13132 * valprint.c (value_print_array_elements): New function.
13133 * valprint.h (value_print_array_elements): Declare.
13134
4dba70ee
TT
131352020-03-13 Tom Tromey <tom@tromey.com>
13136
13137 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13138 * mips-tdep.c (mips_print_register): Use
13139 value_print_scalar_formatted.
13140
4f9ae810
TT
131412020-03-13 Tom Tromey <tom@tromey.com>
13142
13143 * valprint.h (value_print_scalar_formatted): Declare.
13144 * valprint.c (value_print_scalar_formatted): New function.
13145
156bfec9
TT
131462020-03-13 Tom Tromey <tom@tromey.com>
13147
13148 * valprint.h (generic_value_print): Declare.
13149 * valprint.c (generic_value_print): New function.
13150
2b4e573d
TT
131512020-03-13 Tom Tromey <tom@tromey.com>
13152
13153 * valprint.c (do_val_print): Call la_value_print_inner, if
13154 available.
13155 * rust-lang.c (rust_language_defn): Update.
13156 * p-lang.c (pascal_language_defn): Update.
13157 * opencl-lang.c (opencl_language_defn): Update.
13158 * objc-lang.c (objc_language_defn): Update.
13159 * m2-lang.c (m2_language_defn): Update.
13160 * language.h (struct language_defn) <la_value_print_inner>: New
13161 member.
13162 * language.c (unknown_language_defn, auto_language_defn): Update.
13163 * go-lang.c (go_language_defn): Update.
13164 * f-lang.c (f_language_defn): Update.
13165 * d-lang.c (d_language_defn): Update.
13166 * c-lang.c (c_language_defn, cplus_language_defn)
13167 (asm_language_defn, minimal_language_defn): Update.
13168 * ada-lang.c (ada_language_defn): Update.
13169
a1f6a07c
TT
131702020-03-13 Tom Tromey <tom@tromey.com>
13171
13172 * c-valprint.c (c_value_print): Use common_val_print.
13173
410cf315
TT
131742020-03-13 Tom Tromey <tom@tromey.com>
13175
13176 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13177
72a45c93
TT
131782020-03-13 Tom Tromey <tom@tromey.com>
13179
13180 * f-valprint.c (f77_print_array_1, f_val_print): Use
13181 common_val_print.
13182
040f66bd
TT
131832020-03-13 Tom Tromey <tom@tromey.com>
13184
13185 * riscv-tdep.c (riscv_print_one_register_info): Use
13186 common_val_print.
13187
a6e05a6c
TT
131882020-03-13 Tom Tromey <tom@tromey.com>
13189
13190 * mi/mi-main.c (output_register): Use common_val_print.
13191
3444c526
TT
131922020-03-13 Tom Tromey <tom@tromey.com>
13193
13194 * infcmd.c (default_print_one_register_info): Use
13195 common_val_print.
13196
c2a44efe
TT
131972020-03-13 Tom Tromey <tom@tromey.com>
13198
13199 * valprint.h (common_val_print_checked): Declare.
13200 * valprint.c (common_val_print_checked): New function.
13201 * stack.c (print_frame_arg): Use common_val_print_checked.
13202
b0c26e99
TT
132032020-03-13 Tom Tromey <tom@tromey.com>
13204
13205 * valprint.c (do_val_print): New function, from val_print.
13206 (val_print): Use do_val_print.
13207 (common_val_print): Use do_val_print.
13208
ce3acbe9
TT
132092020-03-13 Tom Tromey <tom@tromey.com>
13210
13211 * valprint.c (value_print): Use scoped_value_mark.
13212
96c7f873
TV
132132020-03-13 Tom de Vries <tdevries@suse.de>
13214
13215 PR symtab/25646
13216 * psymtab.c (partial_symtab::partial_symtab): Don't set
13217 globals_offset and statics_offset. Push element onto
13218 current_global_psymbols and current_static_psymbols stacks.
13219 (concat): New function.
13220 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13221 element from current_global_psymbols and current_static_psymbols
13222 stacks. Concat popped elements to global_psymbols and
13223 static_symbols.
13224 (add_psymbol_to_list): Use current_global_psymbols and
13225 current_static_psymbols stacks.
13226 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13227 current_static_psymbols fields.
13228
6ba0a321
CB
132292020-03-12 Christian Biesinger <cbiesinger@google.com>
13230
13231 * corelow.c (sniff_core_bfd): Remove.
13232 (class core_target) <m_core_vec>: Remove.
13233 (core_target::core_target): Update.
13234 (core_file_fns): Remove.
13235 (deprecated_add_core_fns): Remove.
13236 (default_core_sniffer): Remove.
13237 (sniff_core_bfd): Remove.
13238 (default_check_format): Remove.
13239 (gdb_check_format): Remove.
13240 (core_target_open): Update.
13241 (core_target::get_core_register_section): Update.
13242 (get_core_registers_cb): Update.
13243 (core_target::fetch_registers): Update.
13244 * gdbcore.h (struct core_fns): Remove.
13245 (deprecated_add_core_fns): Remove.
13246 (default_core_sniffer): Remove.
13247 (default_check_format): Remove.
13248
227031b2
TT
132492020-03-12 Tom Tromey <tom@tromey.com>
13250
13251 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13252 CORE_ADDR.
13253 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13254
53807e9f
TT
132552020-03-12 Tom Tromey <tom@tromey.com>
13256
13257 * remote.c (remote_target::download_tracepoint)
13258 (remote_target::enable_tracepoint)
13259 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13260 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13261 sprintf_vma.
13262
64f25102
TT
132632020-03-12 Tom Tromey <tom@tromey.com>
13264
13265 * symfile-mem.c: Update CORE_ADDR size assert.
13266
272cd5a3
SM
132672020-03-12 Simon Marchi <simon.marchi@efficios.com>
13268
13269 * selftest.m4: Move to gdbsupport/.
13270 * acinclude.m4: Update path to selftest.m4.
13271
74cd3f9d
SM
132722020-03-12 Simon Marchi <simon.marchi@efficios.com>
13273
13274 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13275 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13276 gdbarch-selfselftests.c and selftest-arch.c.
13277 (SUBDIR_UNITTESTS_OBS): Rename to...
13278 (SELFTESTS_OBS): ... this.
13279 (COMMON_SFILES): Remove disasm-selftests.c and
13280 gdbarch-selftests.c.
13281 * configure.ac: Don't add selftest-arch.{c,o} to
13282 CONFIG_{SRCS,OBS}.
13283 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13284 preprocessor conditions.
13285
db6878ac
SM
132862020-03-12 Simon Marchi <simon.marchi@efficios.com>
13287
13288 * configure.ac: Don't source bfd/development.sh.
13289 * selftest.m4: Modify comment.
13290 * configure: Re-generate.
13291
4d696a5c
SM
132922020-03-12 Simon Marchi <simon.marchi@efficios.com>
13293
13294 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13295 not "true" or "false".
13296 * configure: Re-generate.
13297
8dd8e1c7
CB
132982020-03-12 Christian Biesinger <cbiesinger@google.com>
13299
13300 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13301 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13302 renamed to arm_nbsd_supply_gregset.
13303 (fetch_register): Update to call arm_nbsd_supply_gregset.
13304 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13305 (arm_netbsd_nat_target::fetch_registers): Update.
13306 (fetch_elfcore_registers): Removed.
13307 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13308 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13309 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13310 not require NetBSD system headers.
13311 (arm_nbsd_regset): New struct.
13312 (arm_nbsd_iterate_over_regset_sections): New function.
13313 (arm_netbsd_init_abi_common): Updated to call
13314 set_gdbarch_iterate_over_regset_sections.
13315 * arm-nbsd-tdep.h: New file.
13316
dd69bf7a
KB
133172020-03-11 Kevin Buettner <kevinb@redhat.com>
13318
13319 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13320 recursion.
13321
a0761e34
SM
133222020-03-11 Simon Marchi <simon.marchi@efficios.com>
13323
13324 * configure: Re-generate.
13325
e7a82140
TT
133262020-03-11 Tom Tromey <tromey@adacore.com>
13327
13328 * ada-typeprint.c (print_choices): Fix comment.
13329
dcc050c8
AB
133302020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13331
13332 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13333 previous item in the list, when the list has no items.
13334
1c33af77
TV
133352020-03-11 Tom de Vries <tdevries@suse.de>
13336
13337 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13338 PROP_LOCLIST handling code.
13339
8c95582d
AB
133402020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13341
13342 * buildsym-legacy.c (record_line): Pass extra parameter to
13343 record_line.
13344 * buildsym.c (buildsym_compunit::record_line): Take an extra
13345 parameter, reduce duplication in the line table, and record the
13346 is_stmt flag in the line table.
13347 * buildsym.h (buildsym_compunit::record_line): Add extra
13348 parameter.
13349 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13350 non-statement lines.
13351 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13352 this to the symtab builder.
13353 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13354 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13355 through to dwarf_record_line_1.
13356 * infrun.c (process_event_stop_test): When stepping, don't stop at
13357 a non-statement instruction, and only refresh the step info when
13358 we land in the middle of a line's range. Also add an extra
13359 comment.
13360 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13361 field.
13362 * record-btrace.c (btrace_find_line_range): Only record lines
13363 marked as is-statement.
13364 * stack.c (frame_show_address): Show the frame address if we are
13365 in a non-statement sal.
13366 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13367 (maintenance_print_one_line_table): Print a header for the is_stmt
13368 column, and include is_stmt information in the output.
13369 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13370 preference to non-statements.
13371 (find_pcs_for_symtab_line): Prefer is-statement entries.
13372 (find_line_common): Likewise.
13373 * symtab.h (struct linetable_entry): Add is_stmt field.
13374 (struct symtab_and_line): Likewise.
13375 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13376 arranging the line table.
13377
e4003a34
TV
133782020-03-07 Tom de Vries <tdevries@suse.de>
13379
13380 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13381 DIE.
13382
e8932576
TT
133832020-03-07 Tom Tromey <tom@tromey.com>
13384
13385 * valops.c (value_literal_complex): Remove obsolete comment.
13386 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13387 comment.
13388
29734269
SM
133892020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13390
13391 * infrun.h: Forward-declare thread_info.
13392 (set_step_info): Add thread_info parameter, add doc.
13393 * infrun.c (set_step_info): Add thread_info parameter, move doc
13394 to header.
13395 * infrun.c (process_event_stop_test): Pass thread to
13396 set_step_info call.
13397 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13398 set_step_info.
13399 (prepare_one_step): Add thread_info parameter, pass it to
13400 set_step_frame and prepare_one_step (recursive) call.
13401 (step_1): Pass thread to prepare_one_step call.
13402 (step_command_fsm::should_stop): Pass thread to
13403 prepare_one_step.
13404 (until_next_fsm): Pass thread to set_step_frame call.
13405 (finish_command): Pass thread to set_step_info call.
13406
b7d64b29
HD
134072020-03-06 Hannes Domani <ssbssa@yahoo.de>
13408
13409 * windows-tdep.c (windows_solib_create_inferior_hook):
13410 Check if inferior is running.
13411
09f2921c
TV
134122020-03-06 Tom de Vries <tdevries@suse.de>
13413
13414 * NEWS: Fix "the the".
13415 * ctfread.c: Same.
13416
fd760e79
TV
134172020-03-06 Tom de Vries <tdevries@suse.de>
13418
13419 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13420
20ea4a60
AB
134212020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13422
13423 * .dir-locals.el: Add a comment referencing the other copies of
13424 this file.
13425
0afbabf0
JB
134262020-03-05 John Baldwin <jhb@FreeBSD.org>
13427
13428 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13429 psargs.
13430
842806cb
TBA
134312020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13432
13433 * .gitattributes: New file.
13434
be1e3d3e
TT
134352020-03-04 Tom Tromey <tom@tromey.com>
13436
13437 * symmisc.c (print_symbol_bcache_statistics)
13438 (print_objfile_statistics): Update.
13439 * symfile.c (allocate_symtab): Use intern.
13440 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13441 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13442 macro_cache>: Remove.
13443 <string_cache>: New member.
13444 (struct objfile) <intern>: New methods.
13445 * elfread.c (elf_symtab_read): Use intern.
13446 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13447 (dwarf2_compute_name, dwarf2_physname)
13448 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13449 names.
13450 (guess_partial_die_structure_name): Update.
13451 (partial_die_info::fixup): Intern name.
13452 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13453 name.
13454 (dwarf2_name): Intern name. Update.
13455 * buildsym.c (buildsym_compunit::get_macro_table): Use
13456 string_cache.
13457
4e7625fd
TT
134582020-03-04 Tom Tromey <tom@tromey.com>
13459
13460 * jit.c (bfd_open_from_target_memory): Make "target" const.
13461 * corefile.c (gnutarget): Now const.
13462 * gdbcore.h (gnutarget): Now const.
13463
46f9f931
HD
134642020-03-04 Hannes Domani <ssbssa@yahoo.de>
13465
13466 * NEWS: Mention support for WOW64 processes.
13467 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13468 (amd64_windows_segment_register_p): Remove static.
13469 (_initialize_amd64_windows_nat): Update.
13470 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13471 * i386-windows-nat.c (context_offset): Update.
13472 (i386_mappings): Rename and remove static.
13473 (i386_windows_segment_register_p): Remove static.
13474 (_initialize_i386_windows_nat): Update.
13475 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13476 (STATUS_WX86_SINGLE_STEP): New macro.
13477 (EnumProcessModulesEx): New macro.
13478 (Wow64SuspendThread): New macro.
13479 (Wow64GetThreadContext): New macro.
13480 (Wow64SetThreadContext): New macro.
13481 (Wow64GetThreadSelectorEntry): New macro.
13482 (windows_set_context_register_offsets): Add static.
13483 (windows_set_segment_register_p): Likewise.
13484 (windows_add_thread): Adapt for WOW64 processes.
13485 (windows_fetch_one_register): Likewise.
13486 (windows_nat_target::fetch_registers): Likewise.
13487 (windows_store_one_register): Likewise.
13488 (display_selector): Likewise.
13489 (display_selectors): Likewise.
13490 (handle_exception): Likewise.
13491 (windows_continue): Likewise.
13492 (windows_nat_target::resume): Likewise.
13493 (windows_add_all_dlls): Likewise.
13494 (do_initial_windows_stuff): Likewise.
13495 (windows_nat_target::attach): Likewise.
13496 (windows_get_exec_module_filename): Likewise.
13497 (windows_nat_target::create_inferior): Likewise.
13498 (windows_xfer_siginfo): Likewise.
13499 (_initialize_loadable): Initialize Wow64SuspendThread,
13500 Wow64GetThreadContext, Wow64SetThreadContext,
13501 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13502 * windows-nat.h (windows_set_context_register_offsets):
13503 Remove declaration.
13504 (windows_set_segment_register_p): Likewise.
13505 (i386_windows_segment_register_p): Add declaration.
13506 (amd64_windows_segment_register_p): Likewise.
13507
440cf44e
LM
135082020-03-04 Luis Machado <luis.machado@linaro.org>
13509
13510 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13511 in "info registers" for AArch64/ARM.
13512
13513 The change caused "info registers" to not print GPR's.
13514
13515 gdb/ChangeLog:
13516
13517 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13518
13519 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13520 when reg->group is empty and reggroup is not.
13521
1009d92f
TT
135222020-03-03 Tom Tromey <tromey@adacore.com>
13523
13524 * dwarf2/frame.c (struct dwarf2_frame_cache)
13525 <checked_tailcall_bottom, entry_cfa_sp_offset,
13526 entry_cfa_sp_offset_p>: Remove members.
13527 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13528 (dwarf2_frame_prev_register): Don't call
13529 dwarf2_tailcall_sniffer_first.
13530 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13531 * frame-unwind.c (add_unwinder): New fuction.
13532 (frame_unwind_init): Use it. Add tailcall unwinder.
13533
5e5d66b6
AB
135342020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13535 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13536
13537 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13538 value should be printed as true.
13539
584cf46d
HD
135402020-03-03 Hannes Domani <ssbssa@yahoo.de>
13541
13542 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13543 (windows_init_abi): Set and use windows_so_ops.
13544
7b973adc
SDJ
135452020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13546
13547 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13548 when verifying if dealing with a convenience variable.
13549
bb7b70ab
LM
135502020-03-03 Luis Machado <luis.machado@linaro.org>
13551
13552 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13553
9822cb57
SM
135542020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13555
13556 * infrun.c (gdbarch_supports_displaced_stepping): New.
13557 (use_displaced_stepping): Break up conditions in smaller pieces.
13558 Use gdbarch_supports_displaced_stepping.
13559 (displaced_step_prepare_throw): Use
13560 gdbarch_supports_displaced_stepping.
13561
63e163f2
AB
135622020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13563
13564 * NEWS: Mention new behaviour of the history filename.
13565 * top.c (write_history_p): Add comment.
13566 (show_write_history_p): Add header comment, give a different
13567 message when history writing is on, but the history filename is
13568 empty.
13569 (history_filename): Add comment.
13570 (history_filename_empty): New function.
13571 (show_history_filename): Add header comment, give a different
13572 message when the filename is empty.
13573 (init_history): Compare history_filename against nullptr, and only
13574 read history if the filename is not empty.
13575 (set_history_filename): Add header comment, and only make
13576 non-empty filenames absolute.
13577 (init_main): Make the filename argument to 'set history filename'
13578 optional.
13579
81b86b97
CB
135802020-03-02 Christian Biesinger <cbiesinger@google.com>
13581
13582 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13583 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13584 (fetch_fp_register): Update.
13585 (fetch_fp_regs): Update.
13586 (store_fp_register): Update.
13587 (store_fp_regs): Update.
13588 (arm_netbsd_nat_target::read_description): New function.
13589 (fetch_elfcore_registers): Update.
13590
24ed6739
AB
135912020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13592
13593 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13594 general_thread if the stop reply is missing a thread-id.
13595 (remote_target::process_stop_reply): Use the first non-exited
13596 thread if the target didn't pass a thread-id.
13597 * infrun.c (do_target_wait): Move call to
13598 switch_to_inferior_no_thread to ....
13599 (do_target_wait_1): ... here.
13600
a84bb2a0
JT
136012020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13602
13603 * debuginfod-support.c: Include defs.h first.
13604
658dadf0
TV
136052020-02-28 Tom de Vries <tdevries@suse.de>
13606
13607 * symfile.c (set_initial_language): Use default language for lookup.
13608
4ebe4877
SM
136092020-02-28 Simon Marchi <simon.marchi@efficios.com>
13610
13611 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13612 reader variable, pass `this` to read_cutu_die_from_dwo.
13613
e5da1139
AM
136142020-02-27 Aaron Merey <amerey@redhat.com>
13615
13616 * source.c (open_source_file): Check for nullptr when computing
13617 srcpath.
13618
317f7127
TT
136192020-02-27 Tom Tromey <tromey@adacore.com>
13620
13621 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13622 member.
13623 (dwarf2_add_field): Don't update nfields.
13624 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13625
3104d9ee
AB
136262020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13627
13628 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13629 abs.
13630
b83470bf
TT
136312020-02-26 Tom Tromey <tom@tromey.com>
13632
13633 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13634 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13635 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13636 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13637 per_cu_data.
13638
edfe0a0c
TT
136392020-02-26 Tom Tromey <tom@tromey.com>
13640
13641 * dwarf2/index-write.c (psym_index_map): Change type.
13642 (add_address_entry_worker, write_one_signatured_type)
13643 (recursively_count_psymbols, recursively_write_psymbols)
13644 (class debug_names, psyms_seen_size, write_gdbindex)
13645 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13646
0d79cdc4
AM
136472020-02-26 Aaron Merey <amerey@redhat.com>
13648
13649 * Makefile.in: Handle optional debuginfod support.
13650 * NEWS: Update.
13651 * README: Add --with-debuginfod summary.
13652 * config.in: Regenerate.
13653 * configure: Regenerate.
13654 * configure.ac: Handle optional debuginfod support.
13655 * debuginfod-support.c: debuginfod helper functions.
13656 * debuginfod-support.h: Ditto.
13657 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13658 summary.
13659 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13660 when a dwz file cannot be found.
13661 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13662 debuginfo file cannot be found.
13663 * source.c (open_source_file): Query debuginfod servers when a
13664 source file cannot be found.
13665 * top.c (print_gdb_configuration): Include
13666 --{with,without}-debuginfod in the output.
13667
b65ce565
JG
136682020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13669
13670 * thread.c (thr_try_catch_cmd): Print thread name.
13671
d4c9a4f8
SM
136722020-02-26 Simon Marchi <simon.marchi@efficios.com>
13673
13674 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13675 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13676 dwarf2_fetch_die_type_sect_off): Move to...
13677 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13678 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13679 dwarf2_fetch_die_type_sect_off): ... here.
13680 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13681 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13682 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13683
0dce4280
TV
136842020-02-26 Tom de Vries <tdevries@suse.de>
13685
13686 PR gdb/25603
13687 * symfile.c (set_initial_language): Exit-early if
13688 language_mode == language_mode_manual.
13689
450a1bfc
SM
136902020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13691
13692 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13693 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13694 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13695
9e80cfa1
AB
136962020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13697
13698 * gdbtypes.c (create_array_type_with_stride): Handle negative
13699 array strides.
13700 * valarith.c (value_subscripted_rvalue): Likewise.
13701
09624f1f
LM
137022020-02-25 Luis Machado <luis.machado@linaro.org>
13703
13704 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13705
8cb5117c
SM
137062020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13707
13708 * loc.h (dwarf2_get_die_type): Move to...
13709 * read.h (dwarf2_get_die_type): ... here.
13710 * read.c (dwarf2_get_die_type): Move doc to header.
13711
c325c44e
JB
137122020-02-25 Joel Brobecker <brobecker@adacore.com>
13713
13714 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13715 'gnulib/Makefile.in' to the list.
13716
4ac93832
TT
137172020-02-24 Tom Tromey <tom@tromey.com>
13718
13719 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13720 Remove.
13721 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13722 XOBNEWVEC.
13723
197400e8
TT
137242020-02-24 Tom Tromey <tom@tromey.com>
13725
13726 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13727 New method.
13728 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13729 (dw2_do_instantiate_symtab, dw2_get_file_names)
13730 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13731
76935768
TT
137322020-02-24 Tom Tromey <tom@tromey.com>
13733
13734 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13735 make_scoped_restore.
13736 (dwarf2_psymtab::read_symtab): Don't clear
13737 reading_partial_symbols.
13738
a88ef40d
TV
137392020-02-24 Tom de Vries <tdevries@suse.de>
13740
13741 PR gdb/25592
13742 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13743
c9af6521
TV
137442020-02-24 Tom de Vries <tdevries@suse.de>
13745
13746 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13747 commands layout next/prev/regs.
13748
5707a07a
TT
137492020-02-22 Tom Tromey <tom@tromey.com>
13750
13751 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13752 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13753
3b0fb49e
TT
137542020-02-22 Tom Tromey <tom@tromey.com>
13755
13756 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13757
283be8bf
TT
137582020-02-22 Tom Tromey <tom@tromey.com>
13759
13760 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13761 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13762 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13763 * tui/tui.c (_initialize_tui): Add usage text.
13764
ca793b96
TT
137652020-02-22 Tom Tromey <tom@tromey.com>
13766
13767 * tui/tui-win.c (tui_set_focus_command)
13768 (tui_set_win_height_command): Use error_no_arg.
13769 (_initialize_tui_win): Update help text.
13770 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13771
432b5c40
TT
137722020-02-22 Tom Tromey <tom@tromey.com>
13773
13774 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13775 * tui/tui-disasm.h (struct tui_disasm_window)
13776 <display_start_addr>: Declare.
13777 * tui/tui-source.h (struct tui_source_window)
13778 <display_start_addr>: Declare.
13779 * tui/tui-winsource.h (struct tui_source_window_base)
13780 <show_source_line, display_start_addr>: New methods.
13781 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13782 Rename and move to protected section.
13783 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13784 (tui_source_window_base::do_erase_source_content): Update.
13785 (tui_source_window_base::show_source_line): Now a method.
13786 (tui_source_window_base::show_source_content)
13787 (tui_source_window_base::tui_source_window_base)
13788 (tui_source_window_base::rerender)
13789 (tui_source_window_base::refill)
13790 (tui_source_window_base::do_scroll_horizontal)
13791 (tui_source_window_base::set_is_exec_point_at)
13792 (tui_source_window_base::update_breakpoint_info)
13793 (tui_source_window_base::update_exec_info): Update.
13794 * tui/tui-source.c (tui_source_window::set_contents)
13795 (tui_source_window::showing_source_p)
13796 (tui_source_window::do_scroll_vertical)
13797 (tui_source_window::location_matches_p)
13798 (tui_source_window::line_is_displayed): Update.
13799 (tui_source_window::display_start_addr): New method.
13800 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13801 (tui_disasm_window::do_scroll_vertical)
13802 (tui_disasm_window::location_matches_p): Update.
13803 (tui_disasm_window::display_start_addr): New method.
13804
01b1af32
TT
138052020-02-22 Tom Tromey <tom@tromey.com>
13806
13807 * NEWS: Add entry for gdb.register_window_type.
13808 * tui/tui-layout.h (window_factory): New typedef.
13809 (tui_register_window): Declare.
13810 * tui/tui-layout.c (saved_tui_windows): New global.
13811 (tui_apply_current_layout): Use it.
13812 (tui_register_window): New function.
13813 * python/python.c (do_start_initialization): Call
13814 gdbpy_initialize_tui.
13815 (python_GdbMethods): Add "register_window_type" function.
13816 * python/python-internal.h (gdbpy_register_tui_window)
13817 (gdbpy_initialize_tui): Declare.
13818 * python/py-tui.c: New file.
13819 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13820
fc96d20b
TT
138212020-02-22 Tom Tromey <tom@tromey.com>
13822
13823 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13824
935c78c0
TT
138252020-02-22 Tom Tromey <tom@tromey.com>
13826
13827 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13828 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13829 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13830 (tui_set_win_focus_to): Move from tui-win.c.
13831
0240c8f1
TT
138322020-02-22 Tom Tromey <tom@tromey.com>
13833
13834 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13835 functions.
13836 (known_window_types): New global.
13837 (tui_get_window_by_name): Reimplement.
13838 (initialize_known_windows): New function.
13839 (validate_window_name): Rewrite.
13840 (_initialize_tui_layout): Call initialize_known_windows.
13841
fdb01f0c
TT
138422020-02-22 Tom Tromey <tom@tromey.com>
13843
13844 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13845 Remove constants.
13846 * tui/tui-winsource.h (struct tui_source_window_base)
13847 <tui_source_window_base>: Remove parameter.
13848 * tui/tui-winsource.c
13849 (tui_source_window_base::tui_source_window_base): Remove
13850 parameter.
13851 (tui_source_window_base::refill): Update.
13852 * tui/tui-stack.h (struct tui_locator_window)
13853 <tui_locator_window>: Update.
13854 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13855 Default the constructor.
13856 * tui/tui-regs.h (struct tui_data_item_window)
13857 <tui_data_item_window>: Default the constructor.
13858 (struct tui_data_window) <tui_data_window>: Likewise.
13859 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13860 Default the constructor.
13861 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13862 Default the constructor.
13863 <type>: Remove.
13864 (struct tui_win_info) <tui_win_info>: Default the constructor.
13865 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13866 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13867 Default the constructor.
13868
865a5aec
TT
138692020-02-22 Tom Tromey <tom@tromey.com>
13870
13871 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13872 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13873 * tui/tui-win.c (tui_resize_all): Don't call
13874 tui_delete_invisible_windows.
13875 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13876 done.
13877 (tui_set_layout): Update.
13878 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13879 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13880 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13881
e098d18c
TT
138822020-02-22 Tom Tromey <tom@tromey.com>
13883
13884 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13885 correctly.
13886
eb9c8874
TT
138872020-02-22 Tom Tromey <tom@tromey.com>
13888
13889 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13890
7eed1a8e
TT
138912020-02-22 Tom Tromey <tom@tromey.com>
13892
13893 * tui/tui-winsource.h (struct tui_source_window_iterator)
13894 <inner_iterator>: New etytypedef.
13895 <tui_source_window_iterator>: Take "end" parameter.
13896 <tui_source_window_iterator>: Take iterator.
13897 <operator*, advance>: Update.
13898 <m_iter>: Change type.
13899 <m_end>: New field.
13900 (struct tui_source_windows) <begin, end>: Update.
13901 * tui/tui-layout.c (tui_windows): New global.
13902 (tui_apply_current_layout): Clear tui_windows.
13903 (tui_layout_window::apply): Update tui_windows.
13904 * tui/tui-data.h (tui_windows): Declare.
13905 (all_tui_windows): Now inline function.
13906 (class tui_window_iterator, struct all_tui_windows): Remove.
13907
7c043ba6
TT
139082020-02-22 Tom Tromey <tom@tromey.com>
13909
13910 PR tui/17850:
13911 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13912 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13913 "height" argument.
13914 (class tui_layout_window) <get_sizes>: Likewise.
13915 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13916 argument.
13917 <get_sizes>: Add "height" argument.
13918 <m_vertical>: New field.
13919 * tui/tui-layout.c (tui_layout_split::clone): Update.
13920 (tui_layout_split::get_sizes): Add "height" argument.
13921 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13922 (tui_new_layout_command): Parse "-horizontal".
13923 (_initialize_tui_layout): Update help string.
13924 (tui_layout_split::specification): Add "-horizontal" when needed.
13925 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13926 argument.
13927 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13928 New methods.
13929
6bc56648
TT
139302020-02-22 Tom Tromey <tom@tromey.com>
13931
13932 * tui/tui-layout.h (enum tui_adjust_result): New.
13933 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13934 (class tui_layout_window) <adjust_size>: Return
13935 tui_adjust_result. Rewrite.
13936 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13937 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13938
c22fef7e
TT
139392020-02-22 Tom Tromey <tom@tromey.com>
13940
13941 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13942 parameter and return types.
13943 (class tui_layout_base) <specification>: Add "depth".
13944 (class tui_layout_window) <specification>: Add "depth".
13945 (class tui_layout_split) <specification>: Add "depth".
13946 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13947 and return types.
13948 (tui_new_layout_command): Parse sub-layouts.
13949 (_initialize_tui_layout): Update help string.
13950 (tui_layout_window::specification): Add "depth".
13951 (add_layout_command): Update.
13952
ee325b61
TT
139532020-02-22 Tom Tromey <tom@tromey.com>
13954
13955 * NEWS: Add "tui new-layout" item.
13956 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13957 Add new-layout command to help text.
13958 (validate_window_name): New function.
13959 (tui_new_layout_command): New function.
13960 (_initialize_tui_layout): Register "new-layout".
13961 (tui_layout_window::specification): New method.
13962 (tui_layout_window::specification): New method.
13963 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13964 method.
13965 (class tui_layout_window) <specification>: New method.
13966 (class tui_layout_split) <specification>: New method.
13967
416eb92d
TT
139682020-02-22 Tom Tromey <tom@tromey.com>
13969
13970 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13971 * tui/tui-win.c (window_name_completer): Update comment.
13972 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13973 Declare method.
13974 (class tui_layout_window) <replace_window>: Likewise.
13975 (class tui_layout_split) <replace_window>: Likewise.
13976 (tui_set_layout): Don't declare.
13977 (tui_set_initial_layout): Declare function.
13978 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13979 (asm_regs_layout): New globals.
13980 (tui_current_layout, show_layout): Remove.
13981 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13982 (find_layout, tui_apply_layout): New function.
13983 (layout_completer): Remove.
13984 (tui_next_layout): Reimplement.
13985 (tui_next_layout_command): New function.
13986 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13987 (tui_regs_layout): Reimplement.
13988 (tui_regs_layout_command): New function.
13989 (extract_display_start_addr): Rewrite.
13990 (next_layout, prev_layout): Remove.
13991 (tui_layout_window::replace_window): New method.
13992 (tui_layout_split::replace_window): New method.
13993 (destroy_layout): New function.
13994 (layout_list): New global.
13995 (add_layout_command): New function.
13996 (initialize_layouts): Update.
13997 (tui_layout_command): New function.
13998 (_initialize_tui_layout): Install "layout" commands.
13999 * tui/tui-data.h (enum tui_layout_type): Remove.
14000 (tui_current_layout): Don't declare.
14001
0dbc2fc7
TT
140022020-02-22 Tom Tromey <tom@tromey.com>
14003
14004 * tui/tui-regs.c (tui_reg_layout): Remove.
14005 (tui_reg_command): Use tui_regs_layout.
14006 * tui/tui-layout.h (tui_reg_command): Declare.
14007 * tui/tui-layout.c (tui_reg_command): New function.
14008
5afe342e
TT
140092020-02-22 Tom Tromey <tom@tromey.com>
14010
14011 * tui/tui.c (tui_rl_delete_other_windows): Call
14012 tui_remove_some_windows.
14013 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14014 Declare method.
14015 (class tui_layout_window) <remove_windows>: New method.
14016 (class tui_layout_split) <remove_windows>: Declare.
14017 (tui_remove_some_windows): Declare.
14018 * tui/tui-layout.c (tui_remove_some_windows): New function.
14019 (tui_layout_split::remove_windows): New method.
14020
427326a8
TT
140212020-02-22 Tom Tromey <tom@tromey.com>
14022
14023 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14024 * tui/tui-layout.h (tui_next_layout): Declare.
14025 * tui/tui-layout.c (tui_next_layout): New function.
14026
3fe12b6d
TT
140272020-02-22 Tom Tromey <tom@tromey.com>
14028
14029 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14030 correct coordinates.
14031
59b8b5d2
TT
140322020-02-22 Tom Tromey <tom@tromey.com>
14033
14034 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14035 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14036 DATA_WIN case.
14037
2a3d458b
TT
140382020-02-22 Tom Tromey <tom@tromey.com>
14039
14040 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14041 TUI_DISASM_WIN, not tui_win_list.
14042
3f0cbb04
TT
140432020-02-22 Tom Tromey <tom@tromey.com>
14044
14045 * valprint.c (generic_val_print_enum_1)
14046 (val_print_type_code_flags): Style member names.
14047 * rust-lang.c (val_print_struct, rust_print_enum)
14048 (rust_print_struct_def, rust_internal_print_type): Style member
14049 names.
14050 * p-valprint.c (pascal_object_print_value_fields): Style member
14051 names. Only call fprintf_symbol_filtered for static members.
14052 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14053 * f-valprint.c (f_val_print): Style member names.
14054 * f-typeprint.c (f_type_print_base): Style member names.
14055 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14056 call fprintf_symbol_filtered for static members.
14057 (cp_print_class_member): Style member names.
14058 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14059 member names.
14060 * ada-valprint.c (ada_print_scalar): Style enum names.
14061 (ada_val_print_enum): Likewise.
14062 * ada-typeprint.c (print_enum_type): Style enum names.
14063
d4d947ae
TT
140642020-02-21 Tom Tromey <tom@tromey.com>
14065
14066 * psympriv.h (struct partial_symtab): Update comment.
14067
e94e944b
TT
140682020-02-21 Tom Tromey <tromey@adacore.com>
14069
14070 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14071 type is CORE_ADDR.
14072
1eb73179
TV
140732020-02-21 Tom de Vries <tdevries@suse.de>
14074
14075 PR gdb/25534
14076 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14077 if dependencies[i]->user != NULL.
14078
4f180d53
AT
140792020-02-21 Ali Tamur <tamur@google.com>
14080
14081 * dwarf2/read.c (dwarf2_name): Add null check.
14082
22b6cd70
TT
140832020-02-20 Tom Tromey <tom@tromey.com>
14084
14085 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14086 ">=", in binary search.
14087 (dwarf2_find_containing_comp_unit): New overload.
14088 (run_test): New self-test.
14089 (_initialize_dwarf2_read): Register new test.
14090
bd0cf5a6
NC
140912020-02-20 Nelson Chu <nelson.chu@sifive.com>
14092
14093 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14094 * riscv-tdep.h: Likewise.
14095 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14096 rv32-only CSR.
14097 * features/riscv/64bit-csr.xml: Regenerated.
14098
3f702acd
SDJ
140992020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14100 Tom Tromey <tom@tromey.com>
14101
14102 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14103 of 'fputc_unfiltered'.
14104 (putchar_unfiltered): Call 'fputc_unfiltered'.
14105 (fputc_unfiltered): Call 'fputs_unfiltered'.
14106
d13c7322
AB
141072020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14108
14109 * config.in: Regenerate.
14110 * configure: Regenerate.
14111 * configure.ac: Add --with-python-libdir option.
14112 * main.c: Use WITH_PYTHON_LIBDIR.
14113
869d8950
TT
141142020-02-19 Tom Tromey <tom@tromey.com>
14115
14116 * symtab.c (general_symbol_info::compute_and_set_names): Use
14117 obstack_strndup. Simplify call to symbol_set_demangled_name.
14118
298e9637
SM
141192020-02-19 Simon Marchi <simon.marchi@efficios.com>
14120
14121 * dwarf2/read.c (allocate_signatured_type_table,
14122 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14123 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14124 Remove objfile parameter, update all callers.
14125
08410482
DE
141262020-02-19 Doug Evans <dje@google.com>
14127
14128 PR rust/25535
14129 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14130 rust_enum_variant calculation.
14131
dfdeeca1
TT
141322020-02-19 Tom Tromey <tromey@adacore.com>
14133
14134 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14135
2ef5453b
TT
141362020-02-19 Tom Tromey <tromey@adacore.com>
14137
14138 * ada-lang.c (cache_symbol): Use obstack_strdup.
14139
9f1528a1
AB
141402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14141
14142 * configure: Regenerate.
14143
d3c22fa8
TT
141442020-02-19 Tom Tromey <tromey@adacore.com>
14145
14146 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14147 NULL check.
14148
bf84f706
MR
141492020-02-19 Maciej W. Rozycki <macro@wdc.com>
14150
14151 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14152
d1c9b20f
AB
141532020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14154
14155 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14156 if GDBSERVER is not defined.
14157 (riscv_tdesc_cache): Likewise, also store const target_desc.
14158 (STATIC_IN_GDB): Define.
14159 (riscv_create_target_description): Update declaration with
14160 STATIC_IN_GDB.
14161 (riscv_lookup_target_description): New function, only define if
14162 GDBSERVER is not defined.
14163 * arch/riscv.h (riscv_create_target_description): Declare only
14164 when GDBSERVER is defined.
14165 (riscv_lookup_target_description): New declaration when GDBSERVER
14166 is not defined.
14167 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14168 (riscv_linux_read_features): ...this, and return
14169 riscv_gdbarch_features instead of target_desc.
14170 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14171 (riscv_linux_read_description): Rename to...
14172 (riscv_linux_read_features): ...this.
14173 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14174 Update to use riscv_gdbarch_features and
14175 riscv_lookup_target_description.
14176 * riscv-tdep.c (riscv_find_default_target_description): Use
14177 riscv_lookup_target_description instead of
14178 riscv_create_target_description.
14179
373d7ac0
SM
141802020-02-18 Simon Marchi <simon.marchi@efficios.com>
14181
14182 * valprint.c (generic_val_print_enum_1): When printing a flag
14183 enum with value 0 and there is no enumerator with value 0, print
14184 just "0" instead of "(unknown: 0x0)".
14185
b29a2df0
SM
141862020-02-18 Simon Marchi <simon.marchi@efficios.com>
14187
14188 * valprint.c (generic_val_print_enum_1): Print unknown part of
14189 flag enum in hex.
14190
6740f0cc
SM
141912020-02-18 Simon Marchi <simon.marchi@efficios.com>
14192
14193 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14194 flag enums to contain duplicate enumerators.
14195 * valprint.c (generic_val_print_enum_1): Update comment.
14196
edd45eb0
SM
141972020-02-18 Simon Marchi <simon.marchi@efficios.com>
14198
14199 * dwarf2/read.c: Include "count-one-bits.h".
14200 (update_enumeration_type_from_children): If an enumerator has
14201 multiple bits set, don't treat the enumeration as a "flag enum".
14202 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14203 of flag enums have 0 or 1 bit set.
14204
6d0cf446
BE
142052020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14206
14207 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14208 conversion.
14209 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14210 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14211 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14212 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14213 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14214
7001c1b7
SM
142152020-02-18 Simon Marchi <simon.marchi@efficios.com>
14216
14217 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14218
fdb61c6c
SM
142192020-02-14 Simon Marchi <simon.marchi@efficios.com>
14220
14221 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14222 displaced_step_closure_up.
14223 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14224 (struct displaced_step_closure_up):
14225 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14226 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14227 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14228 Likewise.
14229 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14230 * gdbarch.c, gdbarch.h: Re-generate.
14231 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14232 displaced_step_closure_up.
14233 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14234 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14235 * infrun.h (displaced_step_closure_up): New type alias.
14236 (struct displaced_step_inferior_state) <step_closure>: Change
14237 type to displaced_step_closure_up.
14238 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14239 displaced_step_closure_up.
14240 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14241
a4a38eb4
TT
142422020-02-14 Tom Tromey <tom@tromey.com>
14243
14244 * minidebug.c (gnu_debug_key): New global.
14245 (find_separate_debug_file_in_section): Use it.
14246
e8217e61
SM
142472020-02-14 Simon Marchi <simon.marchi@efficios.com>
14248
14249 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14250 std::unique_ptr.
14251 * gdbarch.c: Re-generate.
14252 * gdbarch.h: Re-generate.
14253 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14254 change.
14255 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14256 type to std::unique_ptr.
14257 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14258 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14259 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14260 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14261 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14262 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14263 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14264 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14265 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14266
d8d83535
SM
142672020-02-14 Simon Marchi <simon.marchi@efficios.com>
14268
14269 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14270 std::unique_ptr.
14271 (displaced_step_clear): Rename to...
14272 (displaced_step_reset): ... this. Just call displaced->reset ().
14273 (displaced_step_clear_cleanup): Rename to...
14274 (displaced_step_reset_cleanup): ... this.
14275 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14276 (displaced_step_fixup): Likewise.
14277 (resume_1): Likewise.
14278 (handle_inferior_event): Restore child's memory before calling
14279 displaced_step_fixup on the parent.
14280 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14281 to std::unique_ptr.
14282 <step_closure>: Change type to std::unique_ptr.
14283
5f661e03
SM
142842020-02-14 Simon Marchi <simon.marchi@efficios.com>
14285
14286 * arm-tdep.c: Include count-one-bits.h.
14287 (cleanup_block_store_pc): Use count_one_bits.
14288 (cleanup_block_load_pc): Use count_one_bits.
14289 (arm_copy_block_xfer): Use count_one_bits.
14290 (thumb2_copy_block_xfer): Use count_one_bits.
14291 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14292 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14293 (thumb_get_next_pcs_raw): Use count_one_bits.
14294 (arm_get_next_pcs_raw): Use count_one_bits_l.
14295 * arch/arm.c (bitcount): Remove.
14296 * arch/arm.h (bitcount): Remove.
14297
8084e579
TT
142982020-02-14 Tom Tromey <tromey@adacore.com>
14299
14300 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14301 Update.
14302 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14303 * dwarf2/loc.c (call_site_find_chain_1): Return
14304 unique_xmalloc_ptr.
14305 (call_site_find_chain): Likewise.
14306
258bf0ee
RB
143072020-02-14 Richard Biener <rguenther@suse.de>
14308
14309 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14310 on expression with division operators.
14311
f98a8458
AKS
143122020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14313
14314 * MAINTAINERS (Write After Approval): Adding myself.
14315
d1437c0e
TT
143162020-02-12 Tom Tromey <tom@tromey.com>
14317
14318 * event-loop.c (event_data, gdb_event, event_handler_func):
14319 Remove.
14320
3d4560f7
TT
143212020-02-12 Tom Tromey <tom@tromey.com>
14322
14323 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14324 (dwarf2_frame_objfile_data): Add comment.
14325 (find_comp_unit, set_comp_unit): New functions.
14326 (dwarf2_frame_find_fde): Use find_comp_unit.
14327 (dwarf2_build_frame_info): Use set_comp_unit.
14328
21982304
TT
143292020-02-12 Tom Tromey <tom@tromey.com>
14330
14331 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14332 (comp_unit): Don't initialize objfile.
14333 (execute_cfa_program): Add text_offset parameter.
14334 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14335 (dwarf2_frame_cache): Update.
14336 (dwarf2_build_frame_info): Don't set "objfile" member.
14337
4debb237
TT
143382020-02-12 Tom Tromey <tom@tromey.com>
14339
14340 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14341 (decode_frame_entry): Likewise.
14342 (dwarf2_build_frame_info): Update.
14343
0d404d44
TT
143442020-02-12 Tom Tromey <tom@tromey.com>
14345
14346 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14347 (decode_frame_entry_1): Use the comp_unit obstack.
14348
a7a3ae5c
TT
143492020-02-12 Tom Tromey <tom@tromey.com>
14350
14351 * dwarf2/frame.c (struct comp_unit): Add initializers and
14352 constructor.
14353 (dwarf2_frame_objfile_data): Store a comp_unit.
14354 (dwarf2_frame_find_fde): Update.
14355 (dwarf2_build_frame_info): Use "new".
14356
a9d65418
TT
143572020-02-12 Tom Tromey <tom@tromey.com>
14358
14359 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14360 (dwarf2_fde_table): Typedef for std::vector.
14361 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14362 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14363 (decode_frame_entry): Update.
14364 (dwarf2_build_frame_info): Use "new".
14365
7559c217
CB
143662020-02-12 Christian Biesinger <cbiesinger@google.com>
14367
14368 * arm-tdep.c (arm_gdbarch_init): Update.
14369 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14370 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14371 have_neon, is_m>: Change to bool.
14372
aeefc73c
CB
143732020-02-12 Christian Biesinger <cbiesinger@google.com>
14374
14375 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14376
d27b8e5f
TT
143772020-02-12 Tom Tromey <tom@tromey.com>
14378
14379 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14380
cd5900f3
HD
143812020-02-12 Hannes Domani <ssbssa@yahoo.de>
14382
14383 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14384 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14385
f056b22b
TT
143862020-02-11 Tom Tromey <tom@tromey.com>
14387
14388 * psymtab.h: Update comment.
14389
f92ff6b5
TT
143902020-02-11 Tom Tromey <tom@tromey.com>
14391
14392 * gdb_obstack.h (struct auto_obstack): Use
14393 DISABLE_COPY_AND_ASSIGN.
14394
3fd6912b
TT
143952020-02-11 Tom Tromey <tom@tromey.com>
14396
14397 * dwarf2/frame.h (struct objfile): Don't forward declare.
14398
69ed9b74
CB
143992020-02-11 Christian Biesinger <cbiesinger@google.com>
14400
14401 * cris-tdep.c (cris_supply_gregset): Change signature to match
14402 what struct regset expects.
14403 (cris_regset): New struct.
14404 (fetch_core_registers): Remove.
14405 (cris_iterate_over_regset_sections): New function.
14406 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14407 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14408
bda874f6
CB
144092020-02-11 Christian Biesinger <cbiesinger@google.com>
14410
14411 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14412 registers.
14413
754e1564
CB
144142020-02-11 Christian Biesinger <cbiesinger@google.com>
14415
14416 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14417
8ddd8e0e
SM
144182020-02-11 Simon Marchi <simon.marchi@efficios.com>
14419
14420 * configure: Re-generate.
14421
898e7f60
SM
144222020-02-11 Simon Marchi <simon.marchi@efficios.com>
14423
14424 * configure: Re-generate.
14425
58df732b
SM
144262020-02-11 Simon Marchi <simon.marchi@efficios.com>
14427
14428 * acinclude: Update warning.m4 path.
14429 * warning.m4: Move to gdbsupport.
14430
da5bd37e
TT
144312020-02-11 Tom Tromey <tromey@adacore.com>
14432
14433 * remote.c (remote_console_output): Update.
14434 * printcmd.c (printf_command): Update.
14435 * event-loop.c (gdb_wait_for_event): Update.
14436 * linux-nat.c (sigchld_handler): Update.
14437 * remote-sim.c (gdb_os_write_stdout): Update.
14438 (gdb_os_flush_stdout): Update.
14439 (gdb_os_flush_stderr): Update.
14440 (gdb_os_write_stderr): Update.
14441 * exceptions.c (print_exception): Update.
14442 * remote-fileio.c (remote_fileio_func_read): Update.
14443 (remote_fileio_func_write): Update.
14444 * tui/tui.c (tui_enable): Update.
14445 * tui/tui-interp.c (tui_interp::init): Update.
14446 * utils.c (init_page_info): Update.
14447 (putchar_unfiltered, fputc_unfiltered): Update.
14448 (gdb_flush): Update.
14449 (emit_style_escape): Update.
14450 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14451 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14452 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14453 (stderr_file::write): Update.
14454 (stderr_file::puts): Update.
14455 * ui-file.h (ui_file_isatty, ui_file_write)
14456 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14457 (ui_file_puts): Don't declare.
14458
85f0dd3c
TV
144592020-02-10 Tom de Vries <tdevries@suse.de>
14460
14461 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14462 sentinel to char *.
14463
2e927613
TV
144642020-02-09 Tom de Vries <tdevries@suse.de>
14465
14466 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14467 filename if it matches "<artificial>".
14468
6bafc845
HD
144692020-02-09 Hannes Domani <ssbssa@yahoo.de>
14470
14471 * windows-tdep.c (struct enum_value_name): New struct.
14472 (create_enum): New function.
14473 (windows_get_siginfo_type): Create and use enum types.
14474
7928d571
HD
144752020-02-09 Hannes Domani <ssbssa@yahoo.de>
14476
14477 * NEWS: Mention $_siginfo support for Windows.
14478 * windows-nat.c (handle_exception): Set siginfo_er.
14479 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14480 (windows_xfer_siginfo): New function.
14481 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14482 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14483 (init_windows_gdbarch_data): New function.
14484 (get_windows_gdbarch_data): New function.
14485 (windows_get_siginfo_type): New function.
14486 (windows_init_abi): Register windows_get_siginfo_type.
14487 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14488
6751ebae
TT
144892020-02-08 Tom Tromey <tom@tromey.com>
14490
14491 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14492 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14493 <keep>: Declare method.
14494 <m_keep>: Remove member.
14495 <~cutu_reader>: Remove.
14496 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14497 (cutu_reader::cutu_reader): Update.
14498 (cutu_reader::keep): Rename from ~cutu_reader.
14499 (process_psymtab_comp_unit, build_type_psymtabs_1)
14500 (process_skeletonless_type_unit, load_partial_comp_unit)
14501 (load_full_comp_unit, dwarf2_read_addr_index)
14502 (read_signatured_type): Update.
14503
135f5437
TT
145042020-02-08 Tom Tromey <tom@tromey.com>
14505
14506 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14507 "want_partial_unit" parameter.
14508 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14509 Inline check for DW_TAG_partial_unit.
14510 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14511
9f66ff1c
TT
145122020-02-08 Tom Tromey <tom@tromey.com>
14513
14514 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14515 read.c.
14516 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14517 read.c.
14518
c8a7a66f
TT
145192020-02-08 Tom Tromey <tom@tromey.com>
14520
14521 * dwarf2/read.c (read_address): Move to comp-unit.c.
14522 (dwarf2_rnglists_process, dwarf2_ranges_process)
14523 (read_attribute_value, dwarf_decode_lines_1)
14524 (var_decode_location, decode_locdesc): Update.
14525 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14526 read.c. Remove "cu" parameter.
14527 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14528 method.
14529
8266302d
TT
145302020-02-08 Tom Tromey <tom@tromey.com>
14531
14532 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14533 (read_indirect_line_string): Update.
14534 * dwarf2/comp-unit.c (read_offset): Remove.
14535 (read_comp_unit_head): Update.
14536 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14537 method.
14538 (read_offset): Don't declare.
14539
4057dfde
TT
145402020-02-08 Tom Tromey <tom@tromey.com>
14541
14542 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14543 * dwarf2/read.c (struct comp_unit_head): Move to
14544 dwarf2/comp-unit.h.
14545 (enum class rcuh_kind): Move to comp-unit.h.
14546 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14547 (read_comp_unit_head, error_check_comp_unit_head)
14548 (read_and_check_comp_unit_head): Move to comp-unit.c.
14549 (read_offset, dwarf_unit_type_name): Likewise.
14550 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14551 (cutu_reader::cutu_reader, read_call_site_scope)
14552 (find_partial_die, follow_die_offset): Update.
14553 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14554
24aa364d
TT
145552020-02-08 Tom Tromey <tom@tromey.com>
14556
14557 * dwarf2/read.c (read_offset_1): Move to leb.c.
14558 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14559 (dwarf_decode_macro_bytes): Update.
14560 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14561 * dwarf2/leb.h (read_offset): Declare.
14562
2c7d5afc
TT
145632020-02-08 Tom Tromey <tom@tromey.com>
14564
14565 * dwarf2/read.c (dwarf2_section_size): Remove.
14566 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14567 Update.
14568 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14569
4075cb26
TT
145702020-02-08 Tom Tromey <tom@tromey.com>
14571
14572 * dwarf2/read.c (read_initial_length): Move to leb.c.
14573 * dwarf2/leb.h (read_initial_length): Declare.
14574 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14575 handle_nonstd parameter.
14576 * dwarf2/frame.c (read_initial_length): Remove.
14577 (decode_frame_entry_1): Update.
14578
09ba997f
TT
145792020-02-08 Tom Tromey <tom@tromey.com>
14580
14581 * dwarf2/loc.c (dwarf2_find_location_expression)
14582 (dwarf_evaluate_loc_desc::get_tls_address)
14583 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14584 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14585 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14586 (dwarf2_compile_property_to_c)
14587 (dwarf2_loc_desc_get_symbol_read_needs)
14588 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14589 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14590 (loclist_describe_location, loclist_tracepoint_var_ref)
14591 (loclist_generate_c_location): Update.
14592 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14593 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14594 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14595 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14596 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14597 (dwarf2_per_cu_data::addr_size)
14598 (dwarf2_per_cu_data::ref_addr_size)
14599 (dwarf2_per_cu_data::text_offset)
14600 (dwarf2_per_cu_data::addr_type): Now methods.
14601 (per_cu_header_read_in): Make per_cu "const".
14602 (dwarf2_version): Remove.
14603 (dwarf2_per_cu_data::int_type): Now a method.
14604 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14605 (set_die_type, read_array_type, read_subrange_index_type)
14606 (read_tag_string_type, read_subrange_type): Update.
14607 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14608 offset_size, ref_addr_size, text_offset, addr_type, version,
14609 objfile, int_type, addr_sized_int_type>: Declare methods.
14610
96c738c0
TT
146112020-02-08 Tom Tromey <tom@tromey.com>
14612
14613 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14614 Move earlier.
14615
8fdd972c
TT
146162020-02-08 Tom Tromey <tom@tromey.com>
14617
14618 * dwarf2/read.h (dwarf_line_debug): Declare.
14619 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14620 * dwarf2/read.c: Move line_header code to new files.
14621 (dwarf_line_debug): No longer static.
14622 * dwarf2/line-header.c: New file.
14623 * dwarf2/line-header.h: New file.
14624
03075812
TT
146252020-02-08 Tom Tromey <tom@tromey.com>
14626
14627 * dwarf2/read.c (struct line_header) <file_full_name,
14628 file_file_name>: Return unique_xmalloc_ptr.
14629 (line_header::file_file_name): Update.
14630 (line_header::file_full_name): Update.
14631 (dw2_get_file_names_reader): Update.
14632 (macro_start_file): Update.
14633
bb822404
TT
146342020-02-08 Tom Tromey <tom@tromey.com>
14635
14636 * dwarf2/read.c (struct line_header) <file_full_name,
14637 file_file_name>: Declare methods.
14638 (dw2_get_file_names_reader): Update.
14639 (file_file_name): Now a method.
14640 (file_full_name): Likewise.
14641 (macro_start_file): Update.
14642
009b64fc
TT
146432020-02-08 Tom Tromey <tom@tromey.com>
14644
14645 * dwarf2/read.c (dwarf_always_disassemble)
14646 (show_dwarf_always_disassemble): Move to loc.c.
14647 (_initialize_dwarf2_read): Move "always-disassemble" registration
14648 to loc.c.
14649 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14650 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14651 static.
14652 (show_dwarf_always_disassemble): Move from read.c.
14653 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14654
5895093f
TT
146552020-02-08 Tom Tromey <tom@tromey.com>
14656
14657 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14658 (create_quick_file_names_table): Return htab_up.
14659 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14660 Update.
14661 * dwarf2/read.h (struct dwarf2_per_objfile)
14662 <quick_file_names_table>: Now htab_up.
14663
b3b32279
TT
146642020-02-08 Tom Tromey <tom@tromey.com>
14665
14666 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14667
1d33d811
TT
146682020-02-08 Tom Tromey <tom@tromey.com>
14669
14670 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14671 Rewrite.
14672 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14673 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14674 (abbrev_table::abbrev_table): No longer inline.
14675 (ABBREV_HASH_SIZE): Remove.
14676 (abbrev_table::m_abbrevs): Now an htab_up.
14677
86de1d91
TT
146782020-02-08 Tom Tromey <tom@tromey.com>
14679
14680 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14681 (cutu_reader): Update.
14682 (build_type_psymtabs_1): Update.
14683 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14684 (abbrev_table::alloc_abbrev): Update.
14685 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14686 (abbrev_table::read): New static method, renamed from
14687 abbrev_table_read_table.
14688 (abbrev_table::alloc_abbrev)
14689 (abbrev_table::add_abbrev): Now private.
14690 (abbrev_table::abbrev_table): Now private.
14691 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14692
0335378b
TT
146932020-02-08 Tom Tromey <tom@tromey.com>
14694
14695 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14696 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14697 htab_up.
14698
48b490f2
TT
146992020-02-08 Tom Tromey <tom@tromey.com>
14700
14701 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14702 htab_up.
14703 (lookup_dwo_unit_in_dwp): Update.
14704 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14705 on obstack.
14706
bc68fb19
TT
147072020-02-08 Tom Tromey <tom@tromey.com>
14708
14709 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14710 obstack.
14711
d15acc42
TT
147122020-02-08 Tom Tromey <tom@tromey.com>
14713
14714 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14715 line_header_hash.
14716 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14717 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14718 Change type to htab_up.
14719
eaa5fa8b
TT
147202020-02-08 Tom Tromey <tom@tromey.com>
14721
14722 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14723 htab_up. Don't allocate on obstack.
14724 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14725 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14726 Change type to htab_up.
14727
b0b6a987
TT
147282020-02-08 Tom Tromey <tom@tromey.com>
14729
14730 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14731 Change type to htab_up.
14732 * dwarf2/read.c (create_signatured_type_table_from_index)
14733 (create_signatured_type_table_from_debug_names)
14734 (create_all_type_units, add_type_unit)
14735 (lookup_dwo_signatured_type, lookup_signatured_type)
14736 (process_skeletonless_type_unit): Update.
14737 (create_debug_type_hash_table, create_debug_types_hash_table):
14738 Change type of types_htab.
14739 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14740 htab_up. Don't allocate on obstack.
14741 (create_cus_hash_table): Change type of cus_htab parameter.
14742 (struct dwo_file) <cus, tus>: Now htab_up.
14743 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14744 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14745 (queue_and_load_all_dwo_tus): Update.
14746 * dwarf2/index-write.c (write_gdbindex): Update.
14747 (write_debug_names): Update.
14748
39856def
TT
147492020-02-08 Tom Tromey <tom@tromey.com>
14750
14751 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14752 dwarf2/read.c. Remove "next" member. Add constructor ntad
14753 destructor.
14754 (struct dwarf2_per_objfile) <queue>: New member.
14755 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14756 dwarf2/read.h.
14757 (dwarf2_queue, dwarf2_queue_tail): Remove.
14758 (class dwarf2_queue_guard): Add parameter to constructor. Use
14759 DISABLE_COPY_AND_ASSIGN.
14760 <m_per_objfile>: New member.
14761 <~dwarf2_queue_guard>: Rewrite.
14762 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14763 Update.
14764 (~dwarf2_queue_item): New.
14765
3e225074
TT
147662020-02-08 Tom Tromey <tom@tromey.com>
14767
14768 * dwarf2/read.c (struct die_info) <has_children>: New member.
14769 (dw2_get_file_names_reader): Remove has_children.
14770 (dw2_get_file_names): Update.
14771 (read_cutu_die_from_dwo): Remove has_children.
14772 (cutu_reader::init_tu_and_read_dwo_dies)
14773 (cutu_reader::cutu_reader): Update.
14774 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14775 Remove has_children.
14776 (build_type_psymtabs_1, process_skeletonless_type_unit)
14777 (load_partial_comp_unit, load_full_comp_unit): Update.
14778 (create_dwo_cu_reader): Remove has_children.
14779 (create_cus_hash_table, read_die_and_children): Update.
14780 (read_full_die_1,read_full_die): Remove has_children.
14781 (read_signatured_type): Update.
14782 (class cutu_reader) <has_children>: Remove.
14783
82ca8957
TT
147842020-02-08 Tom Tromey <tom@tromey.com>
14785
14786 * dwarf2/expr.c: Rename from dwarf2expr.c.
14787 * dwarf2/expr.h: Rename from dwarf2expr.h.
14788 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14789 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14790 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14791 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14792 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14793 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14794 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14795 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14796 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14797 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14798 * dwarf2/loc.c: Rename from dwarf2loc.c.
14799 * dwarf2/loc.h: Rename from dwarf2loc.h.
14800 * dwarf2/read.c: Rename from dwarf2read.c.
14801 * dwarf2/read.h: Rename from dwarf2read.h.
14802 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14803 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14804 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14805 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14806 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14807 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14808 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14809 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14810 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14811 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14812 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14813 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14814 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14815 Update.
14816 * Makefile.in (COMMON_SFILES): Update.
14817 (HFILES_NO_SRCDIR): Update.
14818
9e35d499
TT
148192020-02-08 Tom Tromey <tom@tromey.com>
14820
14821 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14822 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14823
1eba2311
TT
148242020-02-08 Tom Tromey <tom@tromey.com>
14825
14826 * dwarf2read.h (struct die_info): Don't declare.
14827
e41c2da2
TT
148282020-02-08 Tom Tromey <tom@tromey.com>
14829
14830 * dwarf2read.h (die_info_ptr): Remove typedef.
14831
4fc6c0d5
TT
148322020-02-08 Tom Tromey <tom@tromey.com>
14833
14834 * dwarf2read.c (read_call_site_scope)
14835 (handle_data_member_location, dwarf2_add_member_fn)
14836 (mark_common_block_symbol_computed, read_common_block)
14837 (attr_to_dynamic_prop, partial_die_info::read)
14838 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14839 (dwarf2_symbol_mark_computed, set_die_type): Update.
14840 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14841 method.
14842 (attr_form_is_block): Don't declare.
14843 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14844
cd6c91b4
TT
148452020-02-08 Tom Tromey <tom@tromey.com>
14846
14847 * dwarf2read.c (dwarf2_find_base_address, )
14848 (read_call_site_scope, rust_containing_type)
14849 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14850 (handle_data_member_location, dwarf2_add_member_fn)
14851 (get_alignment, read_structure_type, process_structure_scope)
14852 (mark_common_block_symbol_computed, read_common_block)
14853 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14854 (partial_die_info::read, read_attribute_value, new_symbol)
14855 (lookup_die_type, dwarf2_get_ref_die_offset)
14856 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14857 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14858 (dwarf2_symbol_mark_computed): Update.
14859 * dwarf2/attribute.h (struct attribute) <value_as_address,
14860 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14861 methods.
14862 (value_as_address, attr_form_is_section_offset)
14863 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14864 * dwarf2/attribute.c (attribute::value_as_address)
14865 (attribute::form_is_section_offset, attribute::form_is_constant)
14866 (attribute::form_is_ref): Now methods.
14867
162dce55
TT
148682020-02-08 Tom Tromey <tom@tromey.com>
14869
14870 * dwarf2read.c (struct attribute, DW_STRING)
14871 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14872 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14873 (attr_form_is_block, attr_form_is_section_offset)
14874 (attr_form_is_constant, attr_form_is_ref): Move.
14875 * dwarf2/attribute.h: New file.
14876 * dwarf2/attribute.c: New file, from dwarf2read.c.
14877 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14878
3054dd54
TT
148792020-02-08 Tom Tromey <tom@tromey.com>
14880
14881 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14882 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14883 Move.
14884 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14885 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14886 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14887 abbrev.c.
14888 * dwarf2/abbrev.h: New file.
14889 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14890 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14891
96b79293
TT
148922020-02-08 Tom Tromey <tom@tromey.com>
14893
14894 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14895 (dwarf2_section_size, dwarf2_get_section_info)
14896 (create_signatured_type_table_from_debug_names)
14897 (create_addrmap_from_aranges, read_debug_names_from_section)
14898 (get_gdb_index_contents_from_section, read_comp_unit_head)
14899 (error_check_comp_unit_head, read_abbrev_offset)
14900 (create_debug_type_hash_table, init_cu_die_reader)
14901 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14902 (read_comp_units_from_section, create_cus_hash_table)
14903 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14904 (create_dwp_v2_section, dwarf2_rnglists_process)
14905 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14906 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14907 (read_indirect_string_from_dwz, read_addr_index_1)
14908 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14909 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14910 (fill_in_loclist_baton): Update.
14911 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14912 get_containing_section, get_bfd_owner, get_bfd_section,
14913 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14914 (dwarf2_read_section, get_section_name, get_section_file_name)
14915 (get_containing_section, get_section_bfd_owner)
14916 (get_section_bfd_section, get_section_name, get_section_file_name)
14917 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14918 declare.
14919 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14920 (dwarf2_section_info::get_bfd_owner)
14921 (dwarf2_section_info::get_bfd_section)
14922 (dwarf2_section_info::get_name)
14923 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14924 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14925 (dwarf2_section_info::read): Now methods.
14926 * dwarf-index-write.c (class debug_names): Update.
14927
2c86cff9
TT
149282020-02-08 Tom Tromey <tom@tromey.com>
14929
14930 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14931 Move to dwarf2/section.h.
14932 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14933 (get_section_bfd_section, get_section_name)
14934 (get_section_file_name, get_section_id, get_section_flags)
14935 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14936 dwarf2/section.c.
14937 * dwarf2/section.h: New file.
14938 * dwarf2/section.c: New file, from dwarf2read.c.
14939 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14940
f4382c45
TT
149412020-02-08 Tom Tromey <tom@tromey.com>
14942
14943 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14944 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14945 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14946 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14947 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14948 * dwarf2/leb.h: New file, from dwarf2read.c.
14949 * dwarf2/leb.c: New file, from dwarf2read.c.
14950 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14951 Remove.
14952 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14953 (COMMON_SFILES): Add dwarf2/leb.c.
14954
01840b7a
JB
149552020-02-08 Joel Brobecker <brobecker@adacore.com>
14956
14957 GDB 9.1 released.
14958
dfcb27e4
IB
149592020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14960
14961 PR gdb/25190:
aac66a4c
SM
14962 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14963 * gdb/remote.c (remote_console_output): Update.
14964 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14965 (ui_file_puts): ...this.
14966 * gdb/ui-file.h (ui_file_puts): Add declaration.
14967 * gdb/utils.c (emit_style_escape): Update.
14968 (flush_wrap_buffer): Update.
14969 (fputs_maybe_filtered): Update.
14970 (fputs_unfiltered): Add function.
dfcb27e4 14971
faa17681
IB
149722020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14973
aac66a4c
SM
14974 * gdb/event-loop.c (gdb_wait_for_event): Update.
14975 * gdb/printcmd.c (printf_command): Update.
14976 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14977 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14978 (gdb_os_flush_stderr): Update.
14979 * gdb/remote.c (remote_console_output): Update.
14980 * gdb/ui-file.c (gdb_flush): Rename to...
14981 (ui_file_flush): ...this.
14982 (stderr_file::write): Update.
14983 (stderr_file::puts): Update.
14984 * gdb/ui-file.h (gdb_flush): Rename to...
14985 (ui_file_flush): ...this.
14986 * gdb/utils.c (gdb_flush): Add function.
14987 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14988
5abbbe1d
TT
149892020-02-07 Tom Tromey <tromey@adacore.com>
14990
14991 PR breakpoints/24915:
14992 * source.c (find_and_open_source): Do not check basenames_may_differ.
14993
919adfe8
TT
149942020-02-07 Tom Tromey <tom@tromey.com>
14995
14996 * README: Update gdbserver documentation.
14997 * gdbserver: Move to top level.
14998 * configure.tgt (build_gdbserver): Remove.
14999 * configure.ac: Remove --enable-gdbserver.
15000 * configure: Rebuild.
15001 * Makefile.in (distclean): Don't mention gdbserver.
15002
1d5d29e7
SV
150032020-02-06 Shahab Vahedi <shahab@synopsys.com>
15004
15005 * source-cache.c (source_cache::ensure): Surround
15006 get_plain_source_lines with a try/catch.
15007 (source_cache::get_line_charpos): Get rid of try/catch
15008 and only check for the return value of "ensure".
15009 * tui/tui-source.c (tui_source_window::set_contents):
15010 Simplify "nlines" calculation.
15011
6eb1129c
SV
150122020-02-06 Shahab Vahedi <shahab@synopsys.com>
15013
15014 * MAINTAINERS (Write After Approval): Add myself.
15015
c6a42d11
CB
150162020-02-05 Christian Biesinger <cbiesinger@google.com>
15017
15018 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15019 function call.
15020
c8ecdda6
CB
150212020-02-05 Christian Biesinger <cbiesinger@google.com>
15022
15023 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15024
f6480e70
MR
150252020-02-05 Maciej W. Rozycki <macro@wdc.com>
15026
15027 * nat/riscv-linux-tdesc.h: New file.
15028 * nat/riscv-linux-tdesc.c: New file, taking code from...
15029 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15030 ... here.
15031 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15032 NATDEPFILES.
15033
dcc9fbc6
AB
150342020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15035
15036 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15037 we don't set the fake simulator ptid to the null_ptid.
15038
719546c4
SM
150392020-02-03 Simon Marchi <simon.marchi@efficios.com>
15040
15041 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15042 * gdbthread.h (class thread_info) <resumed>: Likewise.
15043 * infrun.c (resume_1): Likewise.
15044 (proceed): Likewise.
15045 (infrun_thread_stop_requested): Likewise.
15046 (stop_all_threads): Likewise.
15047 (handle_inferior_event): Likewise.
15048 (restart_threads): Likewise.
15049 (finish_step_over): Likewise.
15050 (keep_going_stepped_thread): Likewise.
15051 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15052 (linux_handle_extended_wait): Likewise.
15053 * record-btrace.c (get_thread_current_frame_id): Likewise.
15054 * record-full.c (record_full_wait_1): Likewise.
15055 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15056 * target.c (target_resume): Likewise.
15057 * thread.c (set_running_thread): Likewise.
15058
e409c542
AKS
150592020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15060
15061 * f-valprint.c (f77_print_array_1): Changed datatype of index
15062 variable to LONGEST from int to enable it to contain bound
15063 values correctly.
15064
ee98c0da
MR
150652020-02-03 Maciej W. Rozycki <macro@wdc.com>
15066
15067 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15068 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15069 offsets according to FLEN determined.
15070 (riscv_linux_nat_target::read_description): Determine FLEN
15071 dynamically.
15072 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15073 according to FLEN determined.
15074 (riscv_linux_nat_target::store_registers): Likewise.
15075
aa66aac4
SV
150762020-02-01 Shahab Vahedi <shahab@synopsys.com>
15077
15078 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15079 when reg->group is empty and reggroup is not.
15080
fd9faca8
TT
150812020-01-31 Tom Tromey <tromey@adacore.com>
15082
15083 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15084 Call beneath target's mourn_inferior after unpushing.
15085
42330a68
AB
150862020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15087
15088 PR tui/9765
15089 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15090 have enough lines to fill the screen, still return the lowest
15091 address we found.
15092
7a27a45b
AB
150932020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15094
15095 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15096 '-', '<', and '>' commands.
15097
c47f70e2
PA
150982020-01-29 Pedro Alves <palves@redhat.com>
15099 Sergio Durigan Junior <sergiodj@redhat.com>
15100
15101 * infcmd.c (construct_inferior_arguments): Assert that
15102 'argc' is greater than 0.
15103
5133a315
LM
151042020-01-29 Luis Machado <luis.machado@linaro.org>
15105
15106 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15107 (BRK_INSN_MASK): Define to 0xd4200000.
15108 (aarch64_program_breakpoint_here_p): New function.
15109 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15110 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15111 breakpoint.c.
15112 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15113 breakpoint.h
15114 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15115 call gdbarch_program_breakpoint_here_p.
15116 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15117 default_program_breakpoint_here_p, changed return type to bool and
15118 simplified.
15119 * breakpoint.h (program_breakpoint_here): Moved prototype to
15120 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15121 return type to bool.
15122 * gdbarch.c: Regenerate.
15123 * gdbarch.h: Regenerate.
15124 * gdbarch.sh (program_breakpoint_here_p): New method.
15125 * infrun.c (handle_signal_stop): Call
15126 gdbarch_program_breakpoint_here_p.
15127
168f8c6b
TT
151282020-01-26 Tom Tromey <tom@tromey.com>
15129
15130 * ctfread.c (struct ctf_fp_info): Reindent.
15131 (_initialize_ctfread): Remove.
15132
128a391f
TT
151332020-01-26 Tom Tromey <tom@tromey.com>
15134
15135 * psymtab.c (partial_map_expand_apply)
15136 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15137 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15138 (psym_print_stats, psym_expand_symtabs_for_function)
15139 (psym_map_symbol_filenames, psym_map_matching_symbols)
15140 (psym_expand_symtabs_matching)
15141 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15142 (maintenance_check_psymtabs): Use new methods.
15143 * psympriv.h (struct partial_symtab) <readin_p,
15144 get_compunit_symtab>: New methods.
15145 <readin, compunit_symtab>: Remove members.
15146 (struct standard_psymtab): New.
15147 (struct legacy_psymtab): Derive from standard_psymtab.
15148 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15149 standard_psymtab.
15150 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15151
0494dbec
TT
151522020-01-26 Tom Tromey <tom@tromey.com>
15153
15154 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15155 read_dependencies. Add assert.
15156 * psymtab.c (partial_symtab::read_dependencies): New method.
15157 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15158 method.
15159 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15160 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15161 read_dependencies.
15162 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15163 Add assert.
15164
8566b89b
TT
151652020-01-26 Tom Tromey <tom@tromey.com>
15166
15167 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15168 Call expand_psymtab.
15169 (xcoff_read_symtab): Call expand_psymtab.
15170 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15171 legacy_expand_psymtab.
15172 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15173 method.
15174 (struct legacy_psymtab) <expand_psymtab>: Implement.
15175 <legacy_expand_psymtab>: New member.
15176 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15177 (parse_partial_symbols): Set legacy_expand_psymtab.
15178 (psymtab_to_symtab_1): Change argument order. Call
15179 expand_psymtab.
15180 (new_psymtab): Set legacy_expand_psymtab.
15181 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15182 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15183 expand_psymtab.
15184 (dwarf2_psymtab::expand_psymtab): Rename from
15185 psymtab_to_symtab_1. Call expand_psymtab.
15186 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15187 (dbx_end_psymtab): Likewise.
15188 (dbx_psymtab_to_symtab_1): Change argument order. Call
15189 expand_psymtab.
15190 (dbx_read_symtab): Call expand_psymtab.
15191 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15192 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15193 (ctf_psymtab::read_symtab): Call expand_psymtab.
15194
077cbab2
TT
151952020-01-26 Tom Tromey <tom@tromey.com>
15196
15197 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15198 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15199 messages.
15200 * mdebugread.c (mdebug_read_symtab): Remove prints.
15201 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15202 assert.
15203 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15204
891813be
TT
152052020-01-26 Tom Tromey <tom@tromey.com>
15206
15207 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15208 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15209 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15210 legacy_symtab.
15211 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15212 * psymtab.c (psymtab_to_symtab): Call method.
15213 (dump_psymtab): Update.
15214 * psympriv.h (struct partial_symtab): Add virtual destructor.
15215 <read_symtab>: New method.
15216 (struct legacy_symtab): New.
15217 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15218 (struct pst_map) <pst>: Now a legacy_psymtab.
15219 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15220 (new_psymtab): Use legacy_psymtab.
15221 * dwarf2read.h (struct dwarf2_psymtab): New.
15222 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15223 * dwarf2read.c (dwarf2_create_include_psymtab)
15224 (dwarf2_build_include_psymtabs, create_type_unit_group)
15225 (create_partial_symtab, process_psymtab_comp_unit_reader)
15226 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15227 (set_partial_user): Use dwarf2_psymtab.
15228 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15229 (psymtab_to_symtab_1, process_full_comp_unit)
15230 (process_full_type_unit, dwarf2_ranges_read)
15231 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15232 (dwarf_decode_lines): Use dwarf2_psymtab.
15233 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15234 (add_address_entry_worker, write_one_signatured_type)
15235 (recursively_count_psymbols, recursively_write_psymbols)
15236 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15237 (write_debug_names): Likewise.
15238 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15239 <pst>: Now a legacy_psymtab.
15240 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15241 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15242 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15243 * ctfread.c (struct ctf_psymtab): New.
15244 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15245 ctf_psymtab.
15246 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15247 (create_partial_symtab): Return a ctf_psymtab.
15248 (scan_partial_symbols): Update.
15249
c3693a1d
TT
152502020-01-26 Tom Tromey <tom@tromey.com>
15251
15252 * xcoffread.c (xcoff_start_psymtab): Use new.
15253 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15254 renamed from start_psymtab_common.
15255 * psympriv.h (struct partial_symtab): Add new constructor.
15256 (start_psymtab_common): Don't declare.
15257 * mdebugread.c (parse_partial_symbols): Use new.
15258 * dwarf2read.c (create_partial_symtab): Use new.
15259 * dbxread.c (start_psymtab): Use new.
15260 * ctfread.c (create_partial_symtab): Use new.
15261
32caafd0
TT
152622020-01-26 Tom Tromey <tom@tromey.com>
15263
15264 * xcoffread.c (xcoff_end_psymtab): Use new.
15265 * psymtab.c (start_psymtab_common): Use new.
15266 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15267 Update.
15268 * psympriv.h (struct partial_symtab): Add parameters to
15269 constructor. Don't inline.
15270 (allocate_psymtab): Don't declare.
15271 * mdebugread.c (new_psymtab): Use new.
15272 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15273 * dbxread.c (dbx_end_psymtab): Use new.
15274
abaa2f23
TT
152752020-01-26 Tom Tromey <tom@tromey.com>
15276
15277 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15278 allocate_psymtab. Update documentation.
15279 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15280 allocate_psymtab. Do not use new.
15281 (allocate_psymtab): Use new. Update.
15282
6d94535f
TT
152832020-01-26 Tom Tromey <tom@tromey.com>
15284
15285 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15286 * psymtab.c (psym_print_stats): Update.
15287 * psympriv.h (struct partial_symtab) <readin,
15288 psymtabs_addrmap_supported, anonymous>: Now bool.
15289 * mdebugread.c (psymtab_to_symtab_1): Update.
15290 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15291 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15292 (process_full_comp_unit, process_full_type_unit): Update.
15293 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15294 * ctfread.c (psymtab_to_symtab): Update.
15295
6f17252b
TT
152962020-01-26 Tom Tromey <tom@tromey.com>
15297
15298 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15299 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15300 * psymtab.c (psymtab_storage): Delete psymtabs.
15301 (psymtab_storage::allocate_psymtab): Use new.
15302 (psymtab_storage::discard_psymtab): Use delete.
15303 * psympriv.h (struct partial_symtab): Add constructor and
15304 initializers.
15305
f6f1cebc
TT
153062020-01-26 Tom Tromey <tom@tromey.com>
15307
15308 * machoread.c: Do not include psympriv.h.
15309
e47e48f6
PW
153102020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15311
15312 * NEWS: Mention the new option and the set/show commands.
15313
a2fedca9
PW
153142020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15315
15316 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15317 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15318 (validate_exec_file): New variables, enums, functions.
15319 (exec_file_locate_attach, print_section_info): Style the filenames.
15320 (_initialize_exec): Install show_exec_file_mismatch_command and
15321 set_exec_file_mismatch_command.
15322 * gdbcore.h (validate_exec_file): Declare.
15323 * infcmd.c (attach_command): Call validate_exec_file.
15324 * remote.c ( remote_target::remote_add_inferior): Likewise.
15325
7ffa82e1
AB
153262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15327
15328 * frame.c (find_frame_sal): Move call to get_next_frame into more
15329 inner scope.
15330 * inline-frame.c (inilne_state) <inline_state>: Update argument
15331 types.
15332 (inilne_state) <skipped_symbol>: Rename to...
15333 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15334 (skip_inline_frames): Build vector of skipped symbols and use this
15335 to reate the inline_state.
15336 (inline_skipped_symbol): Add a comment and some assertions, fetch
15337 skipped symbol from the list.
15338
3d92a3e3
AB
153392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15340
15341 * buildsym.c (lte_is_less_than): Delete.
15342 (buildsym_compunit::end_symtab_with_blockvector): Create local
15343 lambda function to sort line table entries, and use
15344 std::stable_sort instead of std::sort.
15345 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15346 markers when looking for a previous line.
15347
94a72be7
AB
153482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15349
15350 * dwarf2read.c (lnp_state_machine::record_line): Include
15351 end_sequence parameter in debug print out. Record the line if we
15352 are at an end_sequence marker even if it's not the start of a
15353 statement.
15354 * symmisc.c (maintenance_print_one_line_table): Print end of
15355 sequence markers with 'END' not '0'.
15356
53af73bf
PA
153572020-01-24 Pedro Alves <palves@redhat.com>
15358
15359 PR gdb/25410
15360 * thread.c (scoped_restore_current_thread::restore): Use
15361 switch_to_inferior_no_thread.
15362 * exec.c: Include "progspace-and-thread.h".
15363 (add_target_sections, remove_target_sections):
15364 scoped_restore_current_pspace_and_thread instead of
15365 scoped_restore_current_thread.
15366 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15367 and aspace to the inferior before calling clone_program_space.
15368 Remove stale comment.
15369
3050c6f4
CB
153702020-01-24 Christian Biesinger <cbiesinger@google.com>
15371
15372 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15373 (arm_netbsd_nat_target::fetch_registers): ...this.
15374 (arm_nbsd_nat_target::store_registers): Rename to...
15375 (arm_netbsd_nat_target::store_registers): ...this.
15376
73685c7e
CB
153772020-01-24 Christian Biesinger <cbiesinger@google.com>
15378
15379 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15380 register_t.
15381
89203d40
CB
153822020-01-24 Christian Biesinger <cbiesinger@google.com>
15383
15384 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15385 Update comment.
15386 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15387 Likewise.
15388 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15389 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15390 the correct replacement (iterate_over_regset_sections).
15391 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15392 Update comment.
15393
1ba1ac88
AB
153942020-01-24 Graham Markall <graham.markall@embecosm.com>
15395
15396 PR gdb/23718
15397 * gdb/python/python.c (execute_gdb_command): Call
15398 async_enable_stdin in catch block.
15399
f3364a6d
AB
154002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15401
15402 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15403 SWITCH_THRU_ALL_UIS.
15404
733d0a67
AB
154052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15406
15407 PR tui/9765
15408 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15409 comment, add extra parameter, and update to store previous symbol
15410 when appropriate.
15411 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15412 add extra parameter.
15413 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15414 remove unneeded parameter, add try/catch around gdb_print_insn,
15415 rewrite to add items to asm_lines vector.
15416 (tui_find_backward_disassembly_start_address): New function.
15417 (tui_find_disassembly_address): Updated throughout.
15418 (tui_disasm_window::set_contents): Update for changes to
15419 tui_disassemble.
15420 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15421 number of lines to scroll.
15422
b3b3bada
SM
154232020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15424
15425 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15426 (SECT_OFF_DATA): Likewise.
15427 (SECT_OFF_RODATA): Likewise.
15428 (SECT_OFF_TEXT): Likewise.
15429 (SECT_OFF_BSS): Likewise.
15430 (struct objfile) <text_section_offset, data_section_offset>: New
15431 methods.
15432 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15433 objfile::text_section_offset.
15434 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15435 * coffread.c (coff_symtab_read): Likewise.
15436 (enter_linenos): Likewise.
15437 (process_coff_symbol): Likewise.
15438 * ctfread.c (get_objfile_text_range): Likewise.
15439 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15440 Use objfile::data_section_offset.
15441 * dwarf2-frame.c (execute_cfa_program): Use
15442 objfile::text_section_offset.
15443 (dwarf2_frame_find_fde): Likewise.
15444 * dwarf2read.c (create_addrmap_from_index): Likewise.
15445 (create_addrmap_from_aranges): Likewise.
15446 (dw2_find_pc_sect_compunit_symtab): Likewise.
15447 (process_psymtab_comp_unit_reader): Likewise.
15448 (add_partial_symbol): Likewise.
15449 (add_partial_subprogram): Likewise.
15450 (process_full_comp_unit): Likewise.
15451 (read_file_scope): Likewise.
15452 (read_func_scope): Likewise.
15453 (read_lexical_block_scope): Likewise.
15454 (read_call_site_scope): Likewise.
15455 (dwarf2_rnglists_process): Likewise.
15456 (dwarf2_ranges_process): Likewise.
15457 (dwarf2_ranges_read): Likewise.
15458 (dwarf_decode_lines_1): Likewise.
15459 (new_symbol): Likewise.
15460 (dwarf2_fetch_die_loc_sect_off): Likewise.
15461 (dwarf2_per_cu_text_offset): Likewise.
15462 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15463 * hppa-tdep.c (read_unwind_info): Likewise.
15464 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15465 * psympriv.h (struct partial_symtab): Likewise.
15466 * psymtab.c (find_pc_sect_psymtab): Likewise.
15467 * solib-svr4.c (enable_break): Likewise.
15468 * stap-probe.c (relocate_address): Use
15469 objfile::data_section_offset.
15470 * xcoffread.c (enter_line_range): Use
15471 objfile::text_section_offset.
15472 (read_xcoff_symtab): Likewise.
15473
ab53f382
SM
154742020-01-23 Simon Marchi <simon.marchi@efficios.com>
15475
15476 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15477 declaration to narrower scopes.
15478
e7eee665
SM
154792020-01-23 Simon Marchi <simon.marchi@efficios.com>
15480
15481 * darwin-nat.h (struct darwin_exception_msg, enum
15482 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15483 Move up.
15484 (class darwin_nat_target) <wait_1, check_new_threads,
15485 decode_exception_message, decode_message, stop_inferior,
15486 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15487 * darwin-nat.c (darwin_check_new_threads): Rename to...
15488 (darwin_nat_target::check_new_threads): ... this.
15489 (darwin_suspend_inferior_it): Remove.
15490 (darwin_decode_exception_message): Rename to...
15491 (darwin_nat_target::decode_exception_message): ... this.
15492 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15493 (darwin_decode_message): Rename to...
15494 (darwin_nat_target::decode_message): ... this.
15495 (cancel_breakpoint): Rename to...
15496 (darwin_nat_target::cancel_breakpoint): ... this.
15497 (darwin_wait): Rename to...
15498 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15499 instead of iterate_over_inferiors.
15500 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15501 (darwin_stop_inferior): Rename to...
15502 (darwin_nat_target::stop_inferior): ... this.
15503 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15504 (darwin_init_thread_list): Rename to...
15505 (darwin_nat_target::init_thread_list): ... this.
15506 (darwin_ptrace_him): Rename to...
15507 (darwin_nat_target::ptrace_him): ... this.
15508 (darwin_nat_target::create_inferior): Pass lambda function to
15509 fork_inferior.
15510 (darwin_nat_target::detach): Call stop_inferior instead of
15511 darwin_stop_inferior.
15512 * fork-inferior.h (fork_inferior): Change init_trace_fun
15513 parameter to gdb::function_view.
15514 * fork-inferior.c (fork_inferior): Likewise.
15515
c162ed3e
HD
155162020-01-23 Hannes Domani <ssbssa@yahoo.de>
15517
15518 * i386-cygwin-tdep.c (core_process_module_section): Update.
15519 * windows-nat.c (struct lm_info_windows): Add text_offset.
15520 (windows_xfer_shared_libraries): Update.
15521 * windows-tdep.c (windows_xfer_shared_library):
15522 Add text_offset_cached argument.
15523 * windows-tdep.h (windows_xfer_shared_library): Update.
15524
a1237872
SM
155252020-01-21 Simon Marchi <simon.marchi@efficios.com>
15526
15527 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15528
b3ee6dd9
SM
155292020-01-21 Simon Marchi <simon.marchi@efficios.com>
15530
15531 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15532 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15533 replace with range-based for.
15534 (gdbsim_interrupt_inferior): Remove.
15535 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15536 with a range-based for. Inline code from
15537 gdbsim_interrupt_inferior.
15538
f9fac3c8
SM
155392020-01-21 Simon Marchi <simon.marchi@efficios.com>
15540
15541 * infrun.c (proceed): Fix indentation.
15542
f6474de9
TT
155432020-01-21 Tom Tromey <tromey@adacore.com>
15544
15545 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15546 * python/python.c (python_extension_ops): Update.
15547 (gdbpy_colorize): New function.
15548 * python/lib/gdb/__init__.py (colorize): New function.
15549 * extension.h (ext_lang_colorize): Declare.
15550 * extension.c (ext_lang_colorize): New function.
15551 * extension-priv.h (struct extension_language_ops) <colorize>: New
15552 member.
15553 * cli/cli-style.c (_initialize_cli_style): Update help text.
15554
f0c702d4
LM
155552020-01-21 Luis Machado <luis.machado@linaro.org>
15556
15557 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15558 <cond>: Change type to bool.
15559 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15560 (aarch64_displaced_step_cb): Likewise.
15561 (aarch64_displaced_step_tb): Likewise.
15562
1ab139e5
LM
155632020-01-21 Luis Machado <luis.machado@linaro.org>
15564
15565 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15566 output.
15567
0c271889
LM
155682020-01-21 Luis Machado <luis.machado@linaro.org>
15569
15570 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15571 <pc_adjust>: Adjust the documentation.
15572 (aarch64_displaced_step_fixup): Check if PC really moved before
15573 adjusting it.
15574
4d89c1c7
TT
155752020-01-19 Tom Tromey <tom@tromey.com>
15576
15577 * disasm.c (~gdb_disassembler): New destructor.
15578 (gdb_buffered_insn_length): Call disassemble_free_target.
15579 * disasm.h (class gdb_disassembler): Declare destructor. Use
15580 DISABLE_COPY_AND_ASSIGN.
15581
c0ab21c2
TT
155822020-01-19 Tom Tromey <tom@tromey.com>
15583
15584 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15585 (die_reader_func_ftype): Remove.
15586 (cutu_reader): New class.
15587 (dw2_get_file_names_reader): Remove "data" parameter.
15588 (dw2_get_file_names): Use cutu_reader.
15589 (create_debug_type_hash_table): Update.
15590 (read_cutu_die_from_dwo): Update comment.
15591 (lookup_dwo_unit): Add dwo_name parameter.
15592 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15593 die_reader_func_ftype and data parameters.
15594 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15595 Remove die_reader_func_ftype and data parameters.
15596 (~cutu_reader): New; from init_cutu_and_read_dies.
15597 (cutu_reader::cutu_reader): Rename from
15598 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15599 and data parameters.
15600 (init_cutu_and_read_dies_simple): Remove.
15601 (struct process_psymtab_comp_unit_data): Remove.
15602 (process_psymtab_comp_unit_reader): Remove data parameter; add
15603 want_partial_unit and pretend_language parameters.
15604 (process_psymtab_comp_unit): Use cutu_reader.
15605 (build_type_psymtabs_reader): Remove data parameter.
15606 (build_type_psymtabs_1): Use cutu_reader.
15607 (process_skeletonless_type_unit): Likewise.
15608 (load_partial_comp_unit_reader): Remove.
15609 (load_partial_comp_unit): Use cutu_reader.
15610 (load_full_comp_unit_reader): Remove.
15611 (load_full_comp_unit): Use cutu_reader.
15612 (struct create_dwo_cu_data): Remove.
15613 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15614 dwo_unit parameters.
15615 (create_cus_hash_table): Use cutu_reader.
15616 (struct dwarf2_read_addr_index_data): Remove.
15617 (dwarf2_read_addr_index_reader): Remove.
15618 (dwarf2_read_addr_index): Use cutu_reader.
15619 (read_signatured_type_reader): Remove.
15620 (read_signatured_type): Use cutu_reader.
15621
45bbae5c
TT
156222020-01-19 Tom Tromey <tom@tromey.com>
15623
15624 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15625 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15626 (tui_wrefresh): Declare.
15627 * tui/tui-wingeneral.c (suppress_output): New global.
15628 (tui_suppress_output, ~tui_suppress_output): New constructor and
15629 destructor.
15630 (tui_wrefresh): New function.
15631 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15632 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15633 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15634 method.
15635 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15636 tui_wrefresh.
15637 (tui_data_window::no_refresh): New method.
15638 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15639 (tui_reg_command): Use tui_suppress_output
15640 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15641 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15642 method.
15643 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15644
4f13c1c0
TT
156452020-01-19 Tom Tromey <tom@tromey.com>
15646
15647 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15648 Handle case where symtab is null.
15649
fa47e446
SM
156502020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15651
15652 * linux-fork.c (one_fork_p): Simplify.
15653
26f42329
SM
156542020-01-17 Simon Marchi <simon.marchi@efficios.com>
15655
15656 * top.c (struct qt_args): Remove.
15657 (kill_or_detach): Change return type to void, replace `void *`
15658 parameter with a proper one.
15659 (print_inferior_quit_action): Likewise.
15660 (quit_confirm): Use range-based for loop to iterate over inferiors.
15661 (quit_force): Likewise.
15662
a9ac81b1
SM
156632020-01-17 Simon Marchi <simon.marchi@efficios.com>
15664
15665 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15666 `void *` parameter with proper parameters.
15667 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15668 (print_one_inferior): Change return type to void, replace `void *`
15669 parameter with proper parameters.
15670 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15671 inferiors.
15672 (get_other_inferior): Remove.
15673 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15674 inferiors.
15675
788eca49
SM
156762020-01-17 Simon Marchi <simon.marchi@efficios.com>
15677
15678 * mi/mi-interp.c (report_initial_inferior): Remove.
15679 (mi_interp::init): Use range-based for to iterate over inferiors.
15680
d9bc85b6
SM
156812020-01-17 Simon Marchi <simon.marchi@efficios.com>
15682
15683 * python/py-inferior.c (build_inferior_list): Remove.
15684 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15685
40c94099
CB
156862020-01-16 Christian Biesinger <cbiesinger@google.com>
15687
15688 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15689 (btrace_stitch_trace): Likewise.
15690 * charset.c (intermediate_encoding): Likewise (vaild).
15691 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15692 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15693 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15694
e0cdfe3c
HD
156952020-01-16 Hannes Domani <ssbssa@yahoo.de>
15696
15697 * windows-tdep.c (windows_get_tlb_type):
15698 Add rtl_user_process_parameters type.
15699
790f1718 157002020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15701 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15702
15703 PR build/24805
15704 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15705 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15706 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15707 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15708 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15709 (ps_plog): Redeclare exported functions with default visibility.
15710
3112ed97
NA
157112020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15712
15713 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15714 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15715
8dc3273e
SM
157162020-01-15 Simon Marchi <simon.marchi@efficios.com>
15717
15718 * infcmd.c (post_create_inferior): Use get_thread_regcache
15719 instead of get_current_regcache.
15720
ff47f4f0
TT
157212020-01-14 Tom Tromey <tom@tromey.com>
15722
15723 PR symtab/12535:
15724 * python/python.c (gdbpy_decode_line): Treat empty string the same
15725 as no argument.
15726
975f45b7
TT
157272020-01-14 Tom Tromey <tom@tromey.com>
15728
15729 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15730
25e57356
TT
157312020-01-14 Tom Tromey <tom@tromey.com>
15732
15733 * nat/linux-btrace.c: Don't include <config.h>.
15734 * nat/linux-ptrace.c: Don't include <config.h>.
15735 * nat/x86-linux-dregs.c: Don't include <config.h>.
15736
05ea2a05
TT
157372020-01-14 Tom Tromey <tom@tromey.com>
15738
15739 * configure: Rebuild.
15740 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15741
01027315
TT
157422020-01-14 Tom Tromey <tom@tromey.com>
15743
15744 * nat/x86-linux-dregs.c: Include configh.h.
15745 * nat/linux-ptrace.c: Include configh.h.
15746 * nat/linux-btrace.c: Include configh.h.
15747 * defs.h: Include config.h, bfd.h.
15748 * configure.ac: Don't source common.host.
15749 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15750 * configure: Rebuild.
15751 * acinclude.m4: Update path.
15752 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15753 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15754 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15755 (CLIBS): Add LIBSUPPORT.
15756 (CDEPS): Likewise.
15757 (COMMON_SFILES): Remove gdbsupport files.
15758 (HFILES_NO_SRCDIR): Likewise.
15759 (stamp-version): Update path to create-version.sh.
15760 (ALLDEPFILES): Remove gdbsupport files.
15761
b2ceabe8
TT
157622020-01-14 Tom Tromey <tom@tromey.com>
15763
15764 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15765 USE_WIN32API when needed.
15766 * configure.ac (USE_WIN32API): Don't define.
15767 (WIN32LIBS): Use WIN32APILIBS.
15768 * configure: Rebuild.
15769
25c51f71
TT
157702020-01-14 Tom Tromey <tom@tromey.com>
15771
15772 * configure: Rebuild.
15773 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15774
717c684d
BE
157752020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15776
15777 * skip.c (skip_function_command): Make skip w/o arguments use the
15778 name of the inlined function if pc is inside any inlined function.
15779
7da6a5b9
LM
157802020-01-14 Luis Machado <luis.machado@linaro.org>
15781
15782 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15783 * infrun.c (resume_1): Likewise.
15784 (handle_inferior_event): Remove stale comment.
15785 * linux-nat.c (linux_nat_target::resume): Update comments.
15786 (save_stop_reason): Likewise.
15787 (linux_nat_filter_event): Likewise.
15788 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15789
44e4c775
AB
157902020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15791
15792 * elfread.c (record_minimal_symbol): Set section index to 0 for
15793 non-allocatable sections.
15794
18a8505e
AT
15795
157962020-01-13 Ali Tamur <tamur@google.com>
15797
15798 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15799 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15800 to gdb::optional. Update comments.
15801 (dwo_file): Update comments.
15802 (read_attribute): Update API to take an additional out parameter,
15803 need_reprocess. This is used to mark attributes that need other
15804 attributes (e.g. str_offsets_base) for correct computation which may not
15805 have been read yet.
15806 (read_attribute_reprocess): New function declaration.
15807 (read_addr_index): Likewise.
15808 (read_dwo_str_index): Likewise.
15809 (read_stub_str_index): Likewise.
15810 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15811 (lookup_addr_base): New function definition.
15812 (lookup_ranges_base): Likewise.
15813 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15814 lookup_ranges_base.
15815 (init_cutu_and_read_dies): Update comments.
15816 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15817 unit. This is used to inherit parent's str_offsets_base and addr_base.
15818 Update comments.
15819 (init_cutu_and_read_dies_simple): Reflect API changes.
15820 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15821 (create_cus_hash_table): Change API to take parent compile unit.
15822 Reflect API changes.
15823 (open_and_init_dwo_file): Reflect API changes.
15824 (dwarf2_get_pc_bounds): Update comments.
15825 (dwarf2_record_block_ranges): Likewise.
15826 (read_full_die_1): Change implementation to reprocess attributes that
15827 need str_offsets_base and addr_base.
15828 (partial_die_info::read): Likewise.
15829 (read_attribute_reprocess): New function definition.
15830 (read_attribute_value): Change API to take an additional out parameter,
15831 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15832 when a non-dwo compile unit has index based attributes.
15833 (read_attribute): Reflect API changes.
15834 (read_addr_index_1): Reflect API changes. Update comments.
15835 (dwarf2_read_addr_index_data): Reflect API changes.
15836 (dwarf2_read_addr_index): Likewise.
15837 (read_str_index): Change API and implementation. This becomes a helper
15838 to be used by the new string index related methods. Update error
15839 message and comments.
15840 (read_dwo_str_index): New function definition.
15841 (read_stub_str_index): Likewise.
15842 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15843 * symfile.h (dwarf2_debug_sections): Likewise.
15844 * xcoffread.c (dwarf2_debug_sections): Likewise.
15845
0cac9354
SM
158462020-01-13 Simon Marchi <simon.marchi@efficios.com>
15847
15848 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15849 core_reg_sect type to gdb_byte *.
15850 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15851 * cris-tdep.c (fetch_core_registers): Likewise.
15852 * corelow.c (core_target::get_core_register_section): Change
15853 type of `contents` to gdb::byte_vector.
15854
9a6d629c
AB
158552020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15856
15857 * tui/tui-wingeneral.c (box_win): Position the title in the center
15858 of the border.
15859
d8b2f9e3
SM
158602020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15861
15862 * corelow.c (core_target::get_core_register_section): Use
15863 std::vector instead of alloca.
15864
bb564c58
SM
158652020-01-13 Simon Marchi <simon.marchi@efficios.com>
15866
15867 * warning.m4: Add -Wmissing-declarations to build_warnings.
15868 * configure: Re-generate.
15869
6b366111
SM
158702020-01-13 Simon Marchi <simon.marchi@efficios.com>
15871
15872 * python/python.c (init__gdb_module): Add declaration.
15873
6c265988
SM
158742020-01-13 Simon Marchi <simon.marchi@efficios.com>
15875
15876 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15877 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15878 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15879 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15880 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15881 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15882 * ada-exp.y (_initialize_ada_exp): Add declaration.
15883 * ada-lang.c (_initialize_ada_language): Add declaration.
15884 * ada-tasks.c (_initialize_tasks): Add declaration.
15885 * agent.c (_initialize_agent): Add declaration.
15886 * aix-thread.c (_initialize_aix_thread): Add declaration.
15887 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15888 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15889 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15890 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15891 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15892 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15893 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15894 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15895 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15896 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15897 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15898 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15899 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15900 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15901 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15902 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15903 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15904 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15905 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15906 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15907 * annotate.c (_initialize_annotate): Add declaration.
15908 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15909 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15910 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15911 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15912 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15913 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15914 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15915 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15916 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15917 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15918 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15919 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15920 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15921 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15922 * auto-load.c (_initialize_auto_load): Add declaration.
15923 * auxv.c (_initialize_auxv): Add declaration.
15924 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15925 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15926 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15927 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15928 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15929 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15930 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15931 * breakpoint.c (_initialize_breakpoint): Add declaration.
15932 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15933 * btrace.c (_initialize_btrace): Add declaration.
15934 * charset.c (_initialize_charset): Add declaration.
15935 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15936 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15937 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15938 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15939 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15940 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15941 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15942 * coffread.c (_initialize_coffread): Add declaration.
15943 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15944 * compile/compile.c (_initialize_compile): Add declaration.
15945 * complaints.c (_initialize_complaints): Add declaration.
15946 * completer.c (_initialize_completer): Add declaration.
15947 * copying.c (_initialize_copying): Add declaration.
15948 * corefile.c (_initialize_core): Add declaration.
15949 * corelow.c (_initialize_corelow): Add declaration.
15950 * cp-abi.c (_initialize_cp_abi): Add declaration.
15951 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15952 * cp-support.c (_initialize_cp_support): Add declaration.
15953 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15954 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15955 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15956 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15957 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15958 * ctfread.c (_initialize_ctfread): Add declaration.
15959 * d-lang.c (_initialize_d_language): Add declaration.
15960 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15961 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15962 * dbxread.c (_initialize_dbxread): Add declaration.
15963 * dcache.c (_initialize_dcache): Add declaration.
15964 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15965 * disasm.c (_initialize_disasm): Add declaration.
15966 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15967 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15968 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15969 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15970 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15971 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15972 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15973 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15974 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15975 * elfread.c (_initialize_elfread): Add declaration.
15976 * exec.c (_initialize_exec): Add declaration.
15977 * extension.c (_initialize_extension): Add declaration.
15978 * f-lang.c (_initialize_f_language): Add declaration.
15979 * f-valprint.c (_initialize_f_valprint): Add declaration.
15980 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15981 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15982 * filesystem.c (_initialize_filesystem): Add declaration.
15983 * findcmd.c (_initialize_mem_search): Add declaration.
15984 * findvar.c (_initialize_findvar): Add declaration.
15985 * fork-child.c (_initialize_fork_child): Add declaration.
15986 * frame-base.c (_initialize_frame_base): Add declaration.
15987 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15988 * frame.c (_initialize_frame): Add declaration.
15989 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15990 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15991 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15992 * gcore.c (_initialize_gcore): Add declaration.
15993 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15994 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15995 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15996 * gdbarch.c (_initialize_gdbarch): Add declaration.
15997 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15998 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15999 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16000 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16001 * go-lang.c (_initialize_go_language): Add declaration.
16002 * go32-nat.c (_initialize_go32_nat): Add declaration.
16003 * guile/guile.c (_initialize_guile): Add declaration.
16004 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16005 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16006 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16007 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16008 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16009 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16010 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16011 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16012 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16013 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16014 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16015 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16016 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16017 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16018 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16019 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16020 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16021 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16022 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16023 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16024 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16025 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16026 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16027 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16028 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16029 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16030 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16031 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16032 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16033 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16034 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16035 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16036 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16037 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16038 * infcall.c (_initialize_infcall): Add declaration.
16039 * infcmd.c (_initialize_infcmd): Add declaration.
16040 * inflow.c (_initialize_inflow): Add declaration.
16041 * infrun.c (_initialize_infrun): Add declaration.
16042 * interps.c (_initialize_interpreter): Add declaration.
16043 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16044 * jit.c (_initialize_jit): Add declaration.
16045 * language.c (_initialize_language): Add declaration.
16046 * linux-fork.c (_initialize_linux_fork): Add declaration.
16047 * linux-nat.c (_initialize_linux_nat): Add declaration.
16048 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16049 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16050 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16051 * m2-lang.c (_initialize_m2_language): Add declaration.
16052 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16053 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16054 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16055 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16056 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16057 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16058 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16059 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16060 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16061 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16062 * machoread.c (_initialize_machoread): Add declaration.
16063 * macrocmd.c (_initialize_macrocmd): Add declaration.
16064 * macroscope.c (_initialize_macroscope): Add declaration.
16065 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16066 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16067 * maint.c (_initialize_maint_cmds): Add declaration.
16068 * mdebugread.c (_initialize_mdebugread): Add declaration.
16069 * memattr.c (_initialize_mem): Add declaration.
16070 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16071 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16072 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16073 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16074 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16075 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16076 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16077 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16078 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16079 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16080 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16081 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16082 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16083 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16084 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16085 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16086 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16087 * mipsread.c (_initialize_mipsread): Add declaration.
16088 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16089 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16090 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16091 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16092 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16093 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16094 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16095 * nto-procfs.c (_initialize_procfs): Add declaration.
16096 * objc-lang.c (_initialize_objc_language): Add declaration.
16097 * observable.c (_initialize_observer): Add declaration.
16098 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16099 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16100 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16101 * osabi.c (_initialize_gdb_osabi): Add declaration.
16102 * osdata.c (_initialize_osdata): Add declaration.
16103 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16104 * parse.c (_initialize_parse): Add declaration.
16105 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16106 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16107 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16108 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16109 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16110 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16111 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16112 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16113 * printcmd.c (_initialize_printcmd): Add declaration.
16114 * probe.c (_initialize_probe): Add declaration.
16115 * proc-api.c (_initialize_proc_api): Add declaration.
16116 * proc-events.c (_initialize_proc_events): Add declaration.
16117 * proc-service.c (_initialize_proc_service): Add declaration.
16118 * procfs.c (_initialize_procfs): Add declaration.
16119 * producer.c (_initialize_producer): Add declaration.
16120 * psymtab.c (_initialize_psymtab): Add declaration.
16121 * python/python.c (_initialize_python): Add declaration.
16122 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16123 * record-btrace.c (_initialize_record_btrace): Add declaration.
16124 * record-full.c (_initialize_record_full): Add declaration.
16125 * record.c (_initialize_record): Add declaration.
16126 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16127 * regcache.c (_initialize_regcache): Add declaration.
16128 * reggroups.c (_initialize_reggroup): Add declaration.
16129 * remote-notif.c (_initialize_notif): Add declaration.
16130 * remote-sim.c (_initialize_remote_sim): Add declaration.
16131 * remote.c (_initialize_remote): Add declaration.
16132 * reverse.c (_initialize_reverse): Add declaration.
16133 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16134 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16135 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16136 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16137 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16138 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16139 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16140 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16141 Add declaration.
16142 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16143 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16144 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16145 * rust-exp.y (_initialize_rust_exp): Add declaration.
16146 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16147 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16148 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16149 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16150 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16151 * score-tdep.c (_initialize_score_tdep): Add declaration.
16152 * ser-go32.c (_initialize_ser_dos): Add declaration.
16153 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16154 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16155 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16156 * ser-uds.c (_initialize_ser_socket): Add declaration.
16157 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16158 * serial.c (_initialize_serial): Add declaration.
16159 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16160 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16161 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16162 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16163 * skip.c (_initialize_step_skip): Add declaration.
16164 * sol-thread.c (_initialize_sol_thread): Add declaration.
16165 * solib-aix.c (_initialize_solib_aix): Add declaration.
16166 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16167 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16168 * solib-frv.c (_initialize_frv_solib): Add declaration.
16169 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16170 * solib-target.c (_initialize_solib_target): Add declaration.
16171 * solib.c (_initialize_solib): Add declaration.
16172 * source-cache.c (_initialize_source_cache): Add declaration.
16173 * source.c (_initialize_source): Add declaration.
16174 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16175 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16176 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16177 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16178 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16179 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16180 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16181 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16182 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16183 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16184 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16185 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16186 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16187 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16188 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16189 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16190 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16191 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16192 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16193 * stabsread.c (_initialize_stabsread): Add declaration.
16194 * stack.c (_initialize_stack): Add declaration.
16195 * stap-probe.c (_initialize_stap_probe): Add declaration.
16196 * std-regs.c (_initialize_frame_reg): Add declaration.
16197 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16198 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16199 * symfile.c (_initialize_symfile): Add declaration.
16200 * symmisc.c (_initialize_symmisc): Add declaration.
16201 * symtab.c (_initialize_symtab): Add declaration.
16202 * target.c (_initialize_target): Add declaration.
16203 * target-connection.c (_initialize_target_connection): Add
16204 declaration.
16205 * target-dcache.c (_initialize_target_dcache): Add declaration.
16206 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16207 * thread.c (_initialize_thread): Add declaration.
16208 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16209 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16210 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16211 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16212 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16213 * tracectf.c (_initialize_ctf): Add declaration.
16214 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16215 * tracefile.c (_initialize_tracefile): Add declaration.
16216 * tracepoint.c (_initialize_tracepoint): Add declaration.
16217 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16218 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16219 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16220 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16221 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16222 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16223 * tui/tui.c (_initialize_tui): Add declaration.
16224 * typeprint.c (_initialize_typeprint): Add declaration.
16225 * ui-style.c (_initialize_ui_style): Add declaration.
16226 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16227 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16228 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16229 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16230 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16231 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16232 * unittests/filtered_iterator-selftests.c
16233 (_initialize_filtered_iterator_selftests): Add declaration.
16234 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16235 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16236 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16237 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16238 * unittests/main-thread-selftests.c
16239 (_initialize_main_thread_selftests): Add declaration.
16240 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16241 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16242 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16243 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16244 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16245 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16246 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16247 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16248 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16249 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16250 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16251 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16252 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16253 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16254 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16255 declaration.
16256 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16257 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16258 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16259 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16260 * user-regs.c (_initialize_user_regs): Add declaration.
16261 * utils.c (_initialize_utils): Add declaration.
16262 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16263 * valops.c (_initialize_valops): Add declaration.
16264 * valprint.c (_initialize_valprint): Add declaration.
16265 * value.c (_initialize_values): Add declaration.
16266 * varobj.c (_initialize_varobj): Add declaration.
16267 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16268 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16269 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16270 * windows-nat.c (_initialize_windows_nat): Add declaration.
16271 (_initialize_check_for_gdb_ini): Add declaration.
16272 (_initialize_loadable): Add declaration.
16273 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16274 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16275 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16276 * xcoffread.c (_initialize_xcoffread): Add declaration.
16277 * xml-support.c (_initialize_xml_support): Add declaration.
16278 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16279 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16280 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16281 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16282
e2de1eec
SM
162832020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16284
16285 * regformats/regdat.sh: Generate declaration for init function.
16286
e0037b4c
SM
162872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16288
16289 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16290 up.
16291 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16292 close_one_inferior>: New methods.
16293 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16294 pass down target to find_inferior_pid.
16295 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16296 Pass down target to find_inferior_ptid.
16297 (gdbsim_target::create_inferior): Pass down target to
16298 add_thread_silent.
16299 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16300 target down to find_inferior_ptid and switch_to_thread.
16301 (gdbsim_target::close): Update to call close_one_inferior.
16302 (struct resume_data): Remove.
16303 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16304 directly, rather than through a void pointer.
16305 (gdbsim_target::resume): Update to call resume_one_inferior.
16306
58920b5b
SM
163072020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16308
16309 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16310
4ec89149
PA
163112020-01-12 Pedro Alves <palves@redhat.com>
16312
16313 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16314 directly for the current inferior instead of
16315 discard_all_inferiors.
16316 (discard_all_inferiors): Delete.
16317
7c392d1d
TT
163182020-01-11 Tom Tromey <tom@tromey.com>
16319
16320 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16321 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16322 deprecated_safe_get_selected_frame.
16323
d9ebdab7
TBA
163242020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16325
16326 * inferior.c (print_inferior): Switch inferior before printing it.
16327
f3c469b9
PA
163282020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16329 Pedro Alves <palves@redhat.com>
16330
16331 * progspace-and-thread.c (switch_to_program_space_and_thread):
16332 Assert there's an inferior for PSPACE. Use
16333 switch_to_inferior_no_thread to switch the inferior too.
16334 * progspace.c (program_space::~program_space): Call
16335 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16336 (program_space::free_all_objfiles): Don't call clear_symtab_users
16337 here.
16338 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16339
65c574f6
PA
163402020-01-10 Pedro Alves <palves@redhat.com>
16341
16342 * NEWS: Mention multi-target debugging, "info connections", and
16343 "add-inferior -no-connection".
16344
2f4fcf00
PA
163452020-01-10 Pedro Alves <palves@redhat.com>
16346
16347 * infrun.c: Include "target-connection.h".
16348 (check_multi_target_resumption): New.
16349 (proceed): Call it.
16350 * target-connection.c (make_target_connection_string): Make
16351 extern.
16352 * target-connection.h (make_target_connection_string): Declare.
16353
121b3efd
PA
163542020-01-10 Pedro Alves <palves@redhat.com>
16355
16356 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16357 * inferior.c (uiout_field_connection): New function.
16358 (print_inferior): Add new "connection-id" column.
16359 (add_inferior_command): Show connection number/string of added
16360 inferior.
16361 * process-stratum-target.h
16362 (process_stratum_target::connection_string): New virtual method.
16363 (process_stratum_target::connection_number): New field.
16364 * remote.c (remote_target::connection_string): New override.
16365 * target-connection.c: New file.
16366 * target-connection.h: New file.
16367 * target.c (decref_target): Remove process_stratum targets from
16368 the connection list.
16369 (target_stack::push): Add process_stratum targets to the
16370 connection list.
16371
4f837581
PA
163722020-01-10 Pedro Alves <palves@redhat.com>
16373
16374 Revert:
16375 2016-04-12 Pedro Alves <palves@redhat.com>
16376 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16377 Remove references to name.
16378 * serial.h (struct serial) <name>: Delete.
16379
f4ec508e
PA
163802020-01-10 Pedro Alves <palves@redhat.com>
16381
16382 * gdbarch-selftests.c (register_to_value_test): Remove "target
16383 already pushed" check.
16384
5b6d1e4f
PA
163852020-01-10 Pedro Alves <palves@redhat.com>
16386 John Baldwin <jhb@FreeBSD.org>
16387
16388 * aarch64-linux-nat.c
16389 (aarch64_linux_nat_target::thread_architecture): Adjust.
16390 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16391 (task_command_1): Likewise.
16392 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16393 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16394 (aix_thread_target::store_registers)
16395 (aix_thread_target::thread_alive): Adjust.
16396 * amd64-fbsd-tdep.c: Include "inferior.h".
16397 (amd64fbsd_get_thread_local_address): Pass down target.
16398 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16399 thread's gdbarch instead of target_gdbarch.
16400 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16401 get_last_target_status.
16402 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16403 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16404 inferiors.
16405 (update_inserted_breakpoint_locations): Skip if inferiors with no
16406 execution.
16407 (update_global_location_list): When handling moribund locations,
16408 find representative inferior for location's pspace, and use thread
16409 count of its process_stratum target.
16410 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16411 * bsd-uthread.c (bsd_uthread_target::wait): Use
16412 as_process_stratum_target and adjust thread_change_ptid and
16413 add_thread calls.
16414 (bsd_uthread_target::update_thread_list): Use
16415 as_process_stratum_target and adjust find_thread_ptid,
16416 thread_change_ptid and add_thread calls.
16417 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16418 find_thread_ptid call.
16419 * corelow.c (add_to_thread_list): Adjust add_thread call.
16420 (core_target_open): Adjust add_thread_silent and thread_count
16421 calls.
16422 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16423 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16424 * event-top.c (async_disconnect): Pop targets from all inferiors.
16425 * exec.c (add_target_sections): Push exec target on all inferiors
16426 sharing the program space.
16427 (remove_target_sections): Remove the exec target from all
16428 inferiors sharing the program space.
16429 (exec_on_vfork): New.
16430 * exec.h (exec_on_vfork): Declare.
16431 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16432 Pass it down.
16433 (fbsd_nat_target::update_thread_list): Adjust.
16434 (fbsd_nat_target::resume): Adjust.
16435 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16436 down.
16437 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16438 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16439 get_thread_arch_regcache call.
16440 * fork-child.c (gdb_startup_inferior): Pass target down to
16441 startup_inferior and set_executing.
16442 * gdbthread.h (struct process_stratum_target): Forward declare.
16443 (add_thread, add_thread_silent, add_thread_with_info)
16444 (in_thread_list): Add process_stratum_target parameter.
16445 (find_thread_ptid(inferior*, ptid_t)): New overload.
16446 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16447 parameter.
16448 (all_threads()): Delete overload.
16449 (all_threads, all_non_exited_threads): Add process_stratum_target
16450 parameter.
16451 (all_threads_safe): Use brace initialization.
16452 (thread_count): Add process_stratum_target parameter.
16453 (set_resumed, set_running, set_stop_requested, set_executing)
16454 (threads_are_executing, finish_thread_state): Add
16455 process_stratum_target parameter.
16456 (switch_to_thread): Use is_current_thread.
16457 * i386-fbsd-tdep.c: Include "inferior.h".
16458 (i386fbsd_get_thread_local_address): Pass down target.
16459 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16460 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16461 have_inferiors check.
16462 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16463 (inf_ptrace_target::attach): Adjust.
16464 * infcall.c (run_inferior_call): Adjust.
16465 * infcmd.c (run_command_1): Pass target to
16466 scoped_finish_thread_state.
16467 (proceed_thread_callback): Skip inferiors with no execution.
16468 (continue_command): Rename 'all_threads' local to avoid hiding
16469 'all_threads' function. Adjust get_last_target_status call.
16470 (prepare_one_step): Adjust set_running call.
16471 (signal_command): Use user_visible_resume_target. Compare thread
16472 pointers instead of inferior_ptid.
16473 (info_program_command): Adjust to pass down target.
16474 (attach_command): Mark target's 'thread_executing' flag.
16475 (stop_current_target_threads_ns): New, factored out from ...
16476 (interrupt_target_1): ... this. Switch inferior before making
16477 target calls.
16478 * inferior-iter.h
16479 (struct all_inferiors_iterator, struct all_inferiors_range)
16480 (struct all_inferiors_safe_range)
16481 (struct all_non_exited_inferiors_range): Filter on
16482 process_stratum_target too. Remove explicit.
16483 * inferior.c (inferior::inferior): Push dummy target on target
16484 stack.
16485 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16486 Add process_stratum_target parameter, and pass it down.
16487 (have_live_inferiors): Adjust.
16488 (switch_to_inferior_and_push_target): New.
16489 (add_inferior_command, clone_inferior_command): Handle
16490 "-no-connection" parameter. Use
16491 switch_to_inferior_and_push_target.
16492 (_initialize_inferior): Mention "-no-connection" option in
16493 the help of "add-inferior" and "clone-inferior" commands.
16494 * inferior.h: Include "process-stratum-target.h".
16495 (interrupt_target_1): Use bool.
16496 (struct inferior) <push_target, unpush_target, target_is_pushed,
16497 find_target_beneath, top_target, process_target, target_at,
16498 m_stack>: New.
16499 (discard_all_inferiors): Delete.
16500 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16501 (all_inferiors, all_non_exited_inferiors): Add
16502 process_stratum_target parameter.
16503 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16504 (target_last_proc_target): New global.
16505 (follow_fork_inferior): Push target on new inferior. Pass target
16506 to add_thread_silent. Call exec_on_vfork. Handle target's
16507 reference count.
16508 (follow_fork): Adjust get_last_target_status call. Also consider
16509 target.
16510 (follow_exec): Push target on new inferior.
16511 (struct execution_control_state) <target>: New field.
16512 (user_visible_resume_target): New.
16513 (do_target_resume): Call target_async.
16514 (resume_1): Set target's threads_executing flag. Consider resume
16515 target.
16516 (commit_resume_all_targets): New.
16517 (proceed): Also consider resume target. Skip threads of inferiors
16518 with no execution. Commit resumtion in all targets.
16519 (start_remote): Pass current inferior to wait_for_inferior.
16520 (infrun_thread_stop_requested): Consider target as well. Pass
16521 thread_info pointer to clear_inline_frame_state instead of ptid.
16522 (infrun_thread_thread_exit): Consider target as well.
16523 (random_pending_event_thread): New inferior parameter. Use it.
16524 (do_target_wait): Rename to ...
16525 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16526 down.
16527 (threads_are_resumed_pending_p, do_target_wait): New.
16528 (prepare_for_detach): Adjust calls.
16529 (wait_for_inferior): New inferior parameter. Handle it. Use
16530 do_target_wait_1 instead of do_target_wait.
16531 (fetch_inferior_event): Adjust. Switch to representative
16532 inferior. Pass target down.
16533 (set_last_target_status): Add process_stratum_target parameter.
16534 Save target in global.
16535 (get_last_target_status): Add process_stratum_target parameter and
16536 handle it.
16537 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16538 (context_switch): Check inferior_ptid == null_ptid before calling
16539 inferior_thread().
16540 (get_inferior_stop_soon): Pass down target.
16541 (wait_one): Rename to ...
16542 (poll_one_curr_target): ... this.
16543 (struct wait_one_event): New.
16544 (wait_one): New.
16545 (stop_all_threads): Adjust.
16546 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16547 event's target.
16548 (switch_back_to_stepped_thread): Also consider target.
16549 (print_stop_event): Update.
16550 (normal_stop): Update. Also consider the resume target.
16551 * infrun.h (wait_for_inferior): Remove declaration.
16552 (user_visible_resume_target): New declaration.
16553 (get_last_target_status, set_last_target_status): New
16554 process_stratum_target parameter.
16555 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16556 process_stratum_target parameter, and use it.
16557 (clear_inline_frame_state (thread_info*)): New.
16558 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16559 process_stratum_target parameter.
16560 (clear_inline_frame_state (thread_info*)): Declare.
16561 * linux-fork.c (delete_checkpoint_command): Pass target down to
16562 find_thread_ptid.
16563 (checkpoint_command): Adjust.
16564 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16565 instead of just tweaking inferior_ptid.
16566 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16567 (exit_lwp): Pass target down to find_thread_ptid.
16568 (attach_proc_task_lwp_callback): Pass target down to
16569 add_thread/set_running/set_executing.
16570 (linux_nat_target::attach): Pass target down to
16571 thread_change_ptid.
16572 (get_detach_signal): Pass target down to find_thread_ptid.
16573 Consider last target status's target.
16574 (linux_resume_one_lwp_throw, resume_lwp)
16575 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16576 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16577 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16578 (linux_nat_target::async_wait_fd): New.
16579 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16580 target down.
16581 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16582 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16583 * linux-thread-db.c (struct thread_db_info::process_target): New
16584 field.
16585 (add_thread_db_info): Save target.
16586 (get_thread_db_info): New process_stratum_target parameter. Also
16587 match target.
16588 (delete_thread_db_info): New process_stratum_target parameter.
16589 Also match target.
16590 (thread_from_lwp): Adjust to pass down target.
16591 (thread_db_notice_clone): Pass down target.
16592 (check_thread_db_callback): Pass down target.
16593 (try_thread_db_load_1): Always push the thread_db target.
16594 (try_thread_db_load, record_thread): Pass target down.
16595 (thread_db_target::detach): Pass target down. Always unpush the
16596 thread_db target.
16597 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16598 target down. Always unpush the thread_db target.
16599 (find_new_threads_callback, thread_db_find_new_threads_2)
16600 (thread_db_target::update_thread_list): Pass target down.
16601 (thread_db_target::pid_to_str): Pass current inferior down.
16602 (thread_db_target::get_thread_local_address): Pass target down.
16603 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16604 target down.
16605 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16606 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16607 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16608 (procfs_init_inferior): Rename to ...
16609 (procfs_target::procfs_init_inferior): ... this and adjust.
16610 (procfs_target::create_inferior, procfs_notice_thread)
16611 (procfs_do_thread_registers): Adjust.
16612 * ppc-fbsd-tdep.c: Include "inferior.h".
16613 (ppcfbsd_get_thread_local_address): Pass down target.
16614 * proc-service.c (ps_xfer_memory): Switch current inferior and
16615 program space as well.
16616 (get_ps_regcache): Pass target down.
16617 * process-stratum-target.c
16618 (process_stratum_target::thread_address_space)
16619 (process_stratum_target::thread_architecture): Pass target down.
16620 * process-stratum-target.h
16621 (process_stratum_target::threads_executing): New field.
16622 (as_process_stratum_target): New.
16623 * ravenscar-thread.c
16624 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16625 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16626 down.
16627 * record-btrace.c (record_btrace_target::info_record): Adjust.
16628 (record_btrace_target::record_method)
16629 (record_btrace_target::record_is_replaying)
16630 (record_btrace_target::fetch_registers)
16631 (get_thread_current_frame_id, record_btrace_target::resume)
16632 (record_btrace_target::wait, record_btrace_target::stop): Pass
16633 target down.
16634 * record-full.c (record_full_wait_1): Switch to event thread.
16635 Pass target down.
16636 * regcache.c (regcache::regcache)
16637 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16638 process_stratum_target parameter and handle it.
16639 (current_thread_target): New global.
16640 (get_thread_regcache): Add process_stratum_target parameter and
16641 handle it. Switch inferior before calling target method.
16642 (get_thread_regcache): Pass target down.
16643 (get_thread_regcache_for_ptid): Pass target down.
16644 (registers_changed_ptid): Add process_stratum_target parameter and
16645 handle it.
16646 (registers_changed_thread, registers_changed): Pass target down.
16647 (test_get_thread_arch_aspace_regcache): New.
16648 (current_regcache_test): Define a couple local test_target_ops
16649 instances and use them for testing.
16650 (readwrite_regcache): Pass process_stratum_target parameter.
16651 (cooked_read_test, cooked_write_test): Pass mock_target down.
16652 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16653 (get_thread_arch_aspace_regcache): Add process_stratum_target
16654 parameter.
16655 (regcache::target): New method.
16656 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16657 (regcache::registers_changed_ptid): Add process_stratum_target
16658 parameter.
16659 (regcache::m_target): New field.
16660 (registers_changed_ptid): Add process_stratum_target parameter.
16661 * remote.c (remote_state::supports_vCont_probed): New field.
16662 (remote_target::async_wait_fd): New method.
16663 (remote_unpush_and_throw): Add remote_target parameter.
16664 (get_current_remote_target): Adjust.
16665 (remote_target::remote_add_inferior): Push target.
16666 (remote_target::remote_add_thread)
16667 (remote_target::remote_notice_new_inferior)
16668 (get_remote_thread_info): Pass target down.
16669 (remote_target::update_thread_list): Skip threads of inferiors
16670 bound to other targets. (remote_target::close): Don't discard
16671 inferiors. (remote_target::add_current_inferior_and_thread)
16672 (remote_target::process_initial_stop_replies)
16673 (remote_target::start_remote)
16674 (remote_target::remote_serial_quit_handler): Pass down target.
16675 (remote_target::remote_unpush_target): New remote_target
16676 parameter. Unpush the target from all inferiors.
16677 (remote_target::remote_unpush_and_throw): New remote_target
16678 parameter. Pass it down.
16679 (remote_target::open_1): Check whether the current inferior has
16680 execution instead of checking whether any inferior is live. Pass
16681 target down.
16682 (remote_target::remote_detach_1): Pass down target. Use
16683 remote_unpush_target.
16684 (extended_remote_target::attach): Pass down target.
16685 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16686 (remote_target::append_resumption): Pass down target.
16687 (remote_target::append_pending_thread_resumptions)
16688 (remote_target::remote_resume_with_hc, remote_target::resume)
16689 (remote_target::commit_resume): Pass down target.
16690 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16691 (remote_target::interrupt_query)
16692 (remote_target::remove_new_fork_children)
16693 (remote_target::check_pending_events_prevent_wildcard_vcont)
16694 (remote_target::remote_parse_stop_reply)
16695 (remote_target::process_stop_reply): Pass down target.
16696 (first_remote_resumed_thread): New remote_target parameter. Pass
16697 it down.
16698 (remote_target::wait_as): Pass down target.
16699 (unpush_and_perror): New remote_target parameter. Pass it down.
16700 (remote_target::readchar, remote_target::remote_serial_write)
16701 (remote_target::getpkt_or_notif_sane_1)
16702 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16703 down target.
16704 (remote_target::mourn_inferior): Pass down target. Use
16705 remote_unpush_target.
16706 (remote_target::core_of_thread)
16707 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16708 (remote_target::pid_to_exec_file)
16709 (remote_target::thread_handle_to_thread_info): Pass down target.
16710 (remote_target::async_wait_fd): New.
16711 * riscv-fbsd-tdep.c: Include "inferior.h".
16712 (riscv_fbsd_get_thread_local_address): Pass down target.
16713 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16714 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16715 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16716 Adjust.
16717 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16718 * solib-svr4.c (enable_break): Pass down target.
16719 * spu-multiarch.c (parse_spufs_run): Pass down target.
16720 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16721 * target-delegates.c: Regenerate.
16722 * target.c (g_target_stack): Delete.
16723 (current_top_target): Return the current inferior's top target.
16724 (target_has_execution_1): Refer to the passed-in inferior's top
16725 target.
16726 (target_supports_terminal_ours): Check whether the initial
16727 inferior was already created.
16728 (decref_target): New.
16729 (target_stack::push): Incref/decref the target.
16730 (push_target, push_target, unpush_target): Adjust.
16731 (target_stack::unpush): Defref target.
16732 (target_is_pushed): Return bool. Adjust to refer to the current
16733 inferior's target stack.
16734 (dispose_inferior): Delete, and inline parts ...
16735 (target_preopen): ... here. Only dispose of the current inferior.
16736 (target_detach): Hold strong target reference while detaching.
16737 Pass target down.
16738 (target_thread_name): Add assertion.
16739 (target_resume): Pass down target.
16740 (target_ops::beneath, find_target_at): Adjust to refer to the
16741 current inferior's target stack.
16742 (get_dummy_target): New.
16743 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16744 has a thread running.
16745 (initialize_targets): Rename to ...
16746 (_initialize_target): ... this.
16747 * target.h: Include "gdbsupport/refcounted-object.h".
16748 (struct target_ops): Inherit refcounted_object.
16749 (target_ops::shortname, target_ops::longname): Make const.
16750 (target_ops::async_wait_fd): New method.
16751 (decref_target): Declare.
16752 (struct target_ops_ref_policy): New.
16753 (target_ops_ref): New typedef.
16754 (get_dummy_target): Declare function.
16755 (target_is_pushed): Return bool.
16756 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16757 (all_matching_threads_iterator::all_matching_threads_iterator):
16758 Handle filter target.
16759 * thread-iter.h (struct all_matching_threads_iterator, struct
16760 all_matching_threads_range, class all_non_exited_threads_range):
16761 Filter by target too. Remove explicit.
16762 * thread.c (threads_executing): Delete.
16763 (inferior_thread): Pass down current inferior.
16764 (clear_thread_inferior_resources): Pass down thread pointer
16765 instead of ptid_t.
16766 (add_thread_silent, add_thread_with_info, add_thread): Add
16767 process_stratum_target parameter. Use it for thread and inferior
16768 searches.
16769 (is_current_thread): New.
16770 (thread_info::deletable): Use it.
16771 (find_thread_ptid, thread_count, in_thread_list)
16772 (thread_change_ptid, set_resumed, set_running): New
16773 process_stratum_target parameter. Pass it down.
16774 (set_executing): New process_stratum_target parameter. Pass it
16775 down. Adjust reference to 'threads_executing'.
16776 (threads_are_executing): New process_stratum_target parameter.
16777 Adjust reference to 'threads_executing'.
16778 (set_stop_requested, finish_thread_state): New
16779 process_stratum_target parameter. Pass it down.
16780 (switch_to_thread): Also match inferior.
16781 (switch_to_thread): New process_stratum_target parameter. Pass it
16782 down.
16783 (update_threads_executing): Reimplement.
16784 * top.c (quit_force): Pop targets from all inferior.
16785 (gdb_init): Don't call initialize_targets.
16786 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16787 Declare.
16788 (windows_add_thread, windows_delete_thread): Adjust.
16789 (get_windows_debug_event): Rename to ...
16790 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16791 * tracefile-tfile.c (tfile_target_open): Pass down target.
16792 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16793 Forward declare.
16794 (switch_to_thread): Add process_stratum_target parameter.
16795 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16796 parameter. Use it.
16797 (mi_on_resume): Pass target down.
16798 * nat/fork-inferior.c (startup_inferior): Add
16799 process_stratum_target parameter. Pass it down.
16800 * nat/fork-inferior.h (startup_inferior): Add
16801 process_stratum_target parameter.
16802 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16803
75c6c844
PA
168042020-01-10 Pedro Alves <palves@redhat.com>
16805
16806 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16807 directly. Instead find the first thread in the thread list and
16808 use switch_to_thread.
16809
78f2c40a
PA
168102020-01-10 Pedro Alves <palves@redhat.com>
16811
16812 * remote.c (remote_target::remote_add_inferior): Don't bind a
16813 process to the current inferior if the current inferior is already
16814 bound to a process.
16815
e7af6c70
TBA
168162020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16817 Pedro Alves <palves@redhat.com>
16818
16819 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16820 If no process is specified, return null_ptid instead of
16821 inferior_ptid.
16822 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16823 TARGET_WAITKIND_SIGNALLED with no pid.
16824
31ba933e
PA
168252020-01-10 Pedro Alves <palves@redhat.com>
16826
16827 * remote.c (first_remote_resumed_thread): New.
16828 (remote_target::wait_as): Use it as default event_ptid instead of
16829 inferior_ptid.
16830
735fc2ca
PA
168312020-01-10 Pedro Alves <palves@redhat.com>
16832
16833 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16834
c17e02e1
PA
168352020-01-10 Pedro Alves <palves@redhat.com>
16836
16837 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16838 not -1.
16839
ab1ddbcf
PA
168402020-01-10 Pedro Alves <palves@redhat.com>
16841
16842 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16843 ptid to get_last_target_status.
16844 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16845 ptid to get_last_target_status.
16846 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16847 get_last_target_status.
16848 (info_program_command): Don't pass a target_waitstatus to
16849 get_last_target_status.
16850 * infrun.c (init_wait_for_inferior): Use
16851 nullify_last_target_wait_ptid.
16852 (get_last_target_status): Handle nullptr arguments.
16853 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16854 (print_stop_event): Don't pass a ptid to get_last_target_status.
16855 (normal_stop): Don't pass a ptid to get_last_target_status.
16856 * infrun.h (get_last_target_status, set_last_target_status): Move
16857 comments here and update.
16858 (nullify_last_target_wait_ptid): Declare.
16859 * linux-fork.c (fork_load_infrun_state): Remove local extern
16860 declaration of nullify_last_target_wait_ptid.
16861 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16862 to get_last_target_status.
16863
f3f8ece4
PA
168642020-01-10 Pedro Alves <palves@redhat.com>
16865
16866 * gdbthread.h (scoped_restore_current_thread)
16867 <dont_restore, restore, m_dont_restore>: Declare.
16868 * thread.c (thread_alive): Add assertion. Return bool.
16869 (switch_to_thread_if_alive): New.
16870 (prune_threads): Switch inferior/thread.
16871 (print_thread_info_1): Switch thread before calling target methods.
16872 (scoped_restore_current_thread::restore): New, factored out from
16873 ...
16874 (scoped_restore_current_thread::~scoped_restore_current_thread):
16875 ... this.
16876 (scoped_restore_current_thread::scoped_restore_current_thread):
16877 Add assertion.
16878 (thread_apply_all_command, thread_select): Use
16879 switch_to_thread_if_alive.
16880 * infrun.c (proceed, restart_threads, handle_signal_stop)
16881 (switch_back_to_stepped_thread): Switch current thread before
16882 calling target methods.
16883
db2d40f7
PA
168842020-01-10 Pedro Alves <palves@redhat.com>
16885
16886 * inferior.c (switch_to_inferior_no_thread): New function,
16887 factored out from ...
16888 (inferior_command): ... here.
16889 * inferior.h (switch_to_inferior_no_thread): Declare.
16890 * mi/mi-main.c (run_one_inferior): Use
16891 switch_to_inferior_no_thread.
16892
bd420a2d
PA
168932020-01-10 Pedro Alves <palves@redhat.com>
16894
16895 * infcmd.c (kill_command): Remove dead code.
16896
ddf5db90
PA
168972020-01-10 Pedro Alves <palves@redhat.com>
16898
16899 * remote.c (remote_target::mourn_inferior): No longer check
16900 whether the target is running.
16901
5018ce90
PA
169022020-01-10 Pedro Alves <palves@redhat.com>
16903
16904 * corelow.c (core_target::has_execution): Change parameter type to
16905 inferior pointer.
16906 * inferior.c (number_of_live_inferiors): Use
16907 inferior::has_execution instead of target_has_execution_1.
16908 * inferior.h (inferior::has_execution): New.
16909 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16910 inferior::has_execution instead of target_has_execution_1.
16911 * process-stratum-target.c
16912 (process_stratum_target::has_execution): Change parameter type to
16913 inferior pointer. Check the inferior's PID instead of
16914 inferior_ptid.
16915 * process-stratum-target.h
16916 (process_stratum_target::has_execution): Change parameter type to
16917 inferior pointer.
16918 * record-full.c (record_full_core_target::has_execution): Change
16919 parameter type to inferior pointer.
16920 * target.c (target_has_execution_1): Change parameter type to
16921 inferior pointer.
16922 (target_has_execution_current): Adjust.
16923 * target.h (target_ops::has_execution): Change parameter type to
16924 inferior pointer.
16925 (target_has_execution_1): Change parameter type to inferior
16926 pointer. Change return type to bool.
16927 * tracefile.h (tracefile_target::has_execution): Change parameter
16928 type to inferior pointer.
16929
74375d18
PA
169302020-01-10 Pedro Alves <palves@redhat.com>
16931
16932 * exceptions.c (print_flush): Remove current_top_target() check.
16933
acdf84a6
PA
169342020-01-10 Pedro Alves <palves@redhat.com>
16935
16936 * remote.c (show_remote_exec_file): Show the current inferior's
16937 exec-file instead of the command variable's value.
16938
ec506636
PA
169392020-01-10 Pedro Alves <palves@redhat.com>
16940
16941 * record-full.c (record_full_resume_ptid): New global.
16942 (record_full_target::resume): Set it.
16943 (record_full_wait_1): Use record_full_resume_ptid instead of
16944 inferior_ptid.
16945
873657b9
PA
169462020-01-10 Pedro Alves <palves@redhat.com>
16947
16948 * gdbthread.h (scoped_restore_current_thread)
16949 <dont_restore, restore, m_dont_restore>: Declare.
16950 * thread.c (thread_alive): Add assertion. Return bool.
16951 (switch_to_thread_if_alive): New.
16952 (prune_threads): Switch inferior/thread.
16953 (print_thread_info_1): Switch thread before calling target methods.
16954 (scoped_restore_current_thread::restore): New, factored out from
16955 ...
16956 (scoped_restore_current_thread::~scoped_restore_current_thread):
16957 ... this.
16958 (scoped_restore_current_thread::scoped_restore_current_thread):
16959 Add assertion.
16960 (thread_apply_all_command, thread_select): Use
16961 switch_to_thread_if_alive.
16962
7f0ae84c
GB
169632020-01-10 George Barrett <bob@bob131.so>
16964
16965 * stap-probe.c (stap_modify_semaphore): Don't check for null
16966 semaphores.
16967 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16968 for null semaphores.
16969
f5a7c406
AB
169702020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16971
16972 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16973 all source windows, and maintain horizontal scroll status while
16974 doing so.
16975
9ae6bf64
TT
169762020-01-09 Tom Tromey <tom@tromey.com>
16977
16978 PR tui/18932:
16979 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16980 update_source_window, not print_source_lines.
16981
b2efe70c
AB
169822020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16983
16984 * tui/tui.c (tui_enable): Register tui hooks after calling
16985 tui_display_main.
16986
5f23a082
CB
169872020-01-09 Christian Biesinger <cbiesinger@google.com>
16988
16989 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16990
3061113b
SM
169912020-01-08 Simon Marchi <simon.marchi@efficios.com>
16992
16993 * thread.c (print_thread_info_1): Fix indentation.
16994
57d75002
CB
169952020-01-09 Christian Biesinger <cbiesinger@google.com>
16996
16997 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16998 unique_xmalloc_ptr outside the if to always free the demangled name.
16999
6a053cb1
TT
170002020-01-08 Tom Tromey <tromey@adacore.com>
17001
17002 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17003 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17004 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17005 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17006 Remove.
17007 (section_offsets): New typedef.
17008 * symtab.c (fixup_section, get_msymbol_address): Update.
17009 * symmisc.c (dump_msymbols): Update.
17010 * symfile.h (relative_addr_info_to_section_offsets)
17011 (symfile_map_offsets_to_segments): Update.
17012 * symfile.c (build_section_addr_info_from_objfile)
17013 (init_objfile_sect_indices): Update.
17014 (struct place_section_arg): Change type of "offsets".
17015 (place_section): Update.
17016 (relative_addr_info_to_section_offsets): Change type of
17017 "section_offsets". Remove "num_sections" parameter.
17018 (default_symfile_offsets, syms_from_objfile_1)
17019 (set_objfile_default_section_offset): Update.
17020 (reread_symbols): No need to preserve section offsets by hand.
17021 (symfile_map_offsets_to_segments): Change type of "offsets".
17022 * stap-probe.c (relocate_address): Update.
17023 * stabsread.h (process_one_symbol): Update.
17024 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17025 (solib_target_relocate_section_addresses): Update.
17026 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17027 Update.
17028 * solib-frv.c (frv_relocate_main_executable): Update.
17029 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17030 * solib-aix.c (solib_aix_get_section_offsets): Change return
17031 type.
17032 (solib_aix_solib_create_inferior_hook): Update.
17033 * remote.c (remote_target::get_offsets): Update.
17034 * psymtab.c (find_pc_sect_psymtab): Update.
17035 * psympriv.h (struct partial_symbol) <address, text_low,
17036 text_high>: Update.
17037 * objfiles.h (obj_section_offset): Update.
17038 (struct objfile) <section_offsets>: Change type.
17039 <num_sections>: Remove.
17040 (objfile_relocate): Update.
17041 * objfiles.c (entry_point_address_query): Update
17042 (relocate_one_symbol): Change type of "section_offsets".
17043 (objfile_relocate1, objfile_relocate1): Change type of
17044 "new_offsets".
17045 (objfile_rebase1): Update.
17046 * mipsread.c (mipscoff_symfile_read): Update.
17047 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17048 parameter.
17049 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17050 (parse_external, psymtab_to_symtab_1): Update.
17051 * machoread.c (macho_symfile_offsets): Update.
17052 * ia64-tdep.c (ia64_find_unwind_table): Update.
17053 * hppa-tdep.c (read_unwind_info): Update.
17054 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17055 * dwarf2read.c (create_addrmap_from_index)
17056 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17057 (process_psymtab_comp_unit_reader, add_partial_symbol)
17058 (add_partial_subprogram, process_full_comp_unit)
17059 (read_file_scope, read_func_scope, read_lexical_block_scope)
17060 (read_call_site_scope, dwarf2_rnglists_process)
17061 (dwarf2_ranges_process, dwarf2_ranges_read)
17062 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17063 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17064 Update.
17065 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17066 Update.
17067 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17068 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17069 (process_one_symbol): Change type of "section_offsets".
17070 * ctfread.c (get_objfile_text_range): Update.
17071 * coffread.c (coff_symtab_read, enter_linenos)
17072 (process_coff_symbol): Update.
17073 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17074 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17075
456e800a
TT
170762020-01-08 Tom Tromey <tromey@adacore.com>
17077
17078 * dwarf2read.c (parse_macro_definition): Use std::string.
17079 (parse_macro_definition): Likewise.
17080
6dfa2fc2
TT
170812020-01-08 Tom Tromey <tromey@adacore.com>
17082
17083 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17084 (ATTR_ALLOC_CHUNK): Remove.
17085
421d1616
TT
170862020-01-08 Tom Tromey <tromey@adacore.com>
17087
17088 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17089
43816ebc
TT
170902020-01-08 Tom Tromey <tromey@adacore.com>
17091
17092 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17093 (dwarf2_compute_name, open_dwo_file): Likewise.
17094 (process_enumeration_scope): Use std::vector.
17095 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17096 (partial_die_info::fixup, dwarf2_start_subfile)
17097 (guess_full_die_structure_name, dwarf2_name): Likewise.
17098 (determine_prefix): Update.
17099 (guess_full_die_structure_name): Make return type const.
17100 (partial_die_full_name): Return unique_xmalloc_ptr.
17101 (DW_FIELD_ALLOC_CHUNK): Remove.
17102
4212d509
TT
171032020-01-07 Tom Tromey <tromey@adacore.com>
17104
17105 PR build/24937:
17106 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17107
06a6207a
JT
171082020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17109
17110 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17111
153d79c4
AB
171122020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17113
17114 * stack.c (print_frame_info): Move disassemble_next_line code
17115 inside source_print block.
17116
66182876
EZ
171172020-01-06 Eli Zaretskii <eliz@gnu.org>
17118
17119 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17120 gdb/signals.h, as we are now using native signal symbols.
17121
cbfa8581
SV
171222020-01-06 Shahab Vahedi <shahab@synopsys.com>
17123
17124 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17125 overflow by an early check of content vs threshold.
aac66a4c 17126 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17127 Likewise.
17128
3f602821
EZ
171292020-01-06 Eli Zaretskii <eliz@gnu.org>
17130
17131 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17132
a08c904d
JT
171332020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17134
17135 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17136 export table if no section contains it's RVA.
17137
89a65580
EZ
171382020-01-06 Eli Zaretskii <eliz@gnu.org>
17139
17140 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17141
8b7fcda2
HD
171422020-01-06 Hannes Domani <ssbssa@yahoo.de>
17143
17144 * source.c (print_source_lines_base): Set last_line_listed.
17145
a61b4f69
SV
171462020-01-06 Shahab Vahedi <shahab@synopsys.com>
17147
17148 * tui/tui-disasm.c: Remove trailing spaces.
17149
559e7e50
EZ
171502020-01-06 Eli Zaretskii <eliz@gnu.org>
17151 Pedro Alves <palves@redhat.com>
17152
17153 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17154 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17155 (windows_gdb_signal_to_target): New function, uses the above
17156 enumeration to convert GDB internal signal codes to equivalent
17157 Windows codes.
17158 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17159 * windows-nat.c: Include "gdb_wait.h".
17160 (get_windows_debug_event): Extract the fatal exception from the
17161 exit status and convert to the equivalent Posix signal number.
17162 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17163 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17164 * gdbsupport/gdb_wait.c: New file, implements
17165 windows_status_to_termsig.
17166 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17167 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17168
f2302a34
AB
171692020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17170
17171 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17172 show_layout.
17173
6a5206eb
LM
171742020-01-05 Luis Machado <luis.machado@linaro.org>
17175
17176 * aarch64-linux-nat.c
17177 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17178 and bfd_mach_aarch64.
17179
6ec1d75e
PW
171802020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17181
17182 * ui-file.c (stdio_file::can_emit_style_escape)
17183 (tee_file::can_emit_style_escape): Ensure style is used also on
17184 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17185 to gdb_stdout.
17186 * main.c (set_gdb_data_directory): Use file style to output the
17187 warning that the given pathname is not a directory.
17188 * top.c (show_history_filename, gdb_safe_append_history)
17189 (show_gdb_datadir): Use file style.
17190
44f81a76
HD
171912020-01-03 Hannes Domani <ssbssa@yahoo.de>
17192
17193 * solib-target.c (struct lm_info_target):
17194 Change offsets to be a unique_xmalloc_ptr.
17195 (solib_target_relocate_section_addresses): Update.
17196
25057eb0
HD
171972020-01-03 Hannes Domani <ssbssa@yahoo.de>
17198
17199 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17200
6e2118f5
BE
172012020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17202
17203 * MAINTAINERS (Write After Approval): Add myself.
17204
8133c7dc
LM
172052020-01-02 Luis Machado <luis.machado@linaro.org>
17206
17207 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17208 Cell BE architecture.
17209 * target.h (struct target_ops) <thread_architecture>: Likewise.
17210
48189bec
HD
172112020-01-01 Hannes Domani <ssbssa@yahoo.de>
17212
17213 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17214
ead1063b
HD
172152020-01-01 Hannes Domani <ssbssa@yahoo.de>
17216
17217 * MAINTAINERS (Write After Approval): Add myself.
17218
e5d78223
JB
172192020-01-01 Joel Brobecker <brobecker@adacore.com>
17220
17221 * gdbarch.sh: Update copyright year range of generated files.
17222
b811d2c2
JB
172232020-01-01 Joel Brobecker <brobecker@adacore.com>
17224
17225 Update copyright year range in all GDB files.
17226
5f4def5c
JB
172272020-01-01 Joel Brobecker <brobecker@adacore.com>
17228
17229 * copyright.py: Convert to Python 3.
17230
51fd4002
JB
172312020-01-01 Joel Brobecker <brobecker@adacore.com>
17232
17233 * copyright.py: Adapt after move of gnulib directory from gdb
17234 directory to toplevel directory.
17235
5fb651f2
JB
172362020-01-01 Joel Brobecker <brobecker@adacore.com>
17237
17238 * copyright.py (main): Exit if run from the wrong directory.
17239
5dd8bf88
JB
172402020-01-01 Joel Brobecker <brobecker@adacore.com>
17241
17242 * top.c (print_gdb_version): Change copyright year to 2020.
17243
9f71dacb 172442020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17245
9f71dacb 17246 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17247
9f71dacb 17248For older changes see ChangeLog-2019.
c906108c
SS
17249\f
17250Local Variables:
17251mode: change-log
17252left-margin: 8
17253fill-column: 74
17254version-control: never
57da7796 17255coding: utf-8
c906108c 17256End:
This page took 3.25173 seconds and 4 git commands to generate.