Fix an illegal memory access when accessing corrupt dynamic secondary relocations.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
dab72643
TT
12020-11-21 Tom Tromey <tom@tromey.com>
2
3 * breakpoint.c (watchpoint_exp_is_const): Return bool.
4
c0ad05d5
SM
52020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
8 Pass 2.0 to pow.
9 (gdb_mpz_write_all_from_small): Likewise.
10
a43b29c9
SM
112020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
14 of abs.
15
ae41200b
NA
162020-11-20 Nick Alcock <nick.alcock@oracle.com>
17
18 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
19 ctf_arc_open_by_name.
20
139633c3
NA
212020-11-20 Nick Alcock <nick.alcock@oracle.com>
22
23 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
24 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
25
cbbcd7a7
PA
262020-11-20 Pedro Alves <pedro@palves.net>
27
28 * language.c (language_arch_info::lookup_primitive_type): Use
29 gdb::function_view instead of gdb::function.
30 (template language_lookup_primitive_type): Rename to ...
31 (language_lookup_primitive_type_1): ... this, and make static.
32 (language_lookup_primitive_type(const struct language_defn *,
33 struct gdbarch *, const char *): Make non-template.
34 (language_lookup_primitive_type(const struct language_defn *,
35 struct gdbarch *, std::function<bool (struct type *)>): Make
36 non-template and use gdb::function_view.
37 * language.h (language_arch_info::lookup_primitive_type): Use
38 gdb::function_view instead of std::function.
39 (language_lookup_primitive_type): No longer template.
40 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
41 lambda instead of a std::function.
42
d5ef21c3
AA
432020-11-19 Andreas Arnez <arnez@linux.ibm.com>
44
45 PR tdep/26916
46 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
47 and STOCFH.
48
a5adb8f3
SM
492020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
52
70125a45
SM
532020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
54
55 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
56 in `loop_cb` parameter.
57 * gdbarch.c: Re-generate.
58 * gdbarch.h: Re-generate.
59 * arch-utils.c (default_read_core_file_mappings): Remove `other`
60 parameter.
61 * arch-utils.h (default_read_core_file_mappings): Likewise.
62 * corelow.c (core_target::build_file_mappings): Likewise.
63 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
64 (linux_core_info_proc_mappings): Likewise.
65
a5c641b5
AB
662020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
67
68 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
69 * NEWS: Mention new options.
70 * f-array-walker.h: New file.
71 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
72 (repack_array_slices): New static global.
73 (show_repack_array_slices): New function.
74 (fortran_array_slicing_debug): New static global.
75 (show_fortran_array_slicing_debug): New function.
76 (value_f90_subarray): Delete.
77 (skip_undetermined_arglist): Delete.
78 (class fortran_array_repacker_base_impl): New class.
79 (class fortran_lazy_array_repacker_impl): New class.
80 (class fortran_array_repacker_impl): New class.
81 (fortran_value_subarray): Complete rewrite.
82 (set_fortran_list): New static global.
83 (show_fortran_list): Likewise.
84 (_initialize_f_language): Register new commands.
85 (fortran_adjust_dynamic_array_base_address_hack): New function.
86 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
87 Declare.
88 * f-valprint.c: Include 'f-array-walker.h'.
89 (class fortran_array_printer_impl): New class.
90 (f77_print_array_1): Delete.
91 (f77_print_array): Delete.
92 (fortran_print_array): New.
93 (f_value_print_inner): Update to call fortran_print_array.
94 * gdbtypes.c: Include 'f-lang.h'.
95 (resolve_dynamic_type_internal): Call
96 fortran_adjust_dynamic_array_base_address_hack.
97
a15a5258
AB
982020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
99
100 * breakpoint.c (struct watch_options): New struct.
101 (watch_option_defs): New static global.
102 (make_watch_options_def_group): New function.
103 (watch_maybe_just_location): Convert option parsing.
104 (watch_command_completer): New function.
105 (_initialize_breakpoint): Build help text using options mechanism.
106
2e362716
AB
1072020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
108
109 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
110 (watch_command_1): Update parameter types. Convert locals to
111 bool.
112 (watch_command_wrapper): Change parameter type.
113 (watch_maybe_just_location): Change locals to bool.
114 (rwatch_command_wrapper): Update parameter type.
115 (awatch_command_wrapper): Update parameter type.
116 * breakpoint.h (watch_command_wrapper): Change parameter type.
117 (rwatch_command_wrapper): Update parameter type.
118 (awatch_command_wrapper): Update parameter type.
119 * eval.c (fetch_subexp_value): Change parameter type.
120 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
121 'false' not '0'.
122 * value.h (fetch_subexp_value): Change parameter type in
123 declaration.
124
b3ff61f8
AB
1252020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
126
127 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
128 skip_spaces.
129
5b7d45d3
KS
1302020-11-18 Keith Seitz <keiths@redhat.com>
131
132 * linux-tdep.c (dump_note_entry_p): Return true instead of
133 checking `filename'.
134
c44191f8
TV
1352020-11-18 Tom de Vries <tdevries@suse.de>
136
137 * debuginfod-support.c (debuginfod_source_query)
138 (debuginfod_debuginfo_query): Also do early exit if
139 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
140
5d8254e1
TV
1412020-11-18 Tom de Vries <tdevries@suse.de>
142
143 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
144 warning.
145
584903d3
SM
1462020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
147
148 * gdbtypes.h (get_array_bounds): Return bool, adjust some
149 callers. Move doc here.
150 * gdbtypes.c (get_array_bounds): Return bool
151
6f2643db
AB
1522020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
155 assert.
156 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
157 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
158 case to the default.
159
037d7135
AB
1602020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
161
162 * printcmd.c: Include 'safe-ctype.c'.
163 (skip_over_slash_fmt): New function.
164 (print_command_completer): Call skip_over_slash_fmt.
165 (display_and_x_command_completer): New function.
166 (_initialize_printcmd): Add command completion for 'x' and
167 'display'.
168
2b3cb400
PA
1692020-11-16 Pedro Alves <pedro@palves.net>
170
171 * frame.c (get_prev_frame): Move get_frame_id call from here ...
172 (get_prev_frame_always_1): ... to here.
173 * inline-frame.c (inline_frame_this_id): Mention
174 get_prev_frame_always_1 in comment.
175
b74dbc20
JB
1762020-11-15 Joel Brobecker <brobecker@adacore.com>
177
178 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
179 handling.
180 (value_less): Add fixed-point handling.
181
0a12719e
JB
1822020-11-15 Joel Brobecker <brobecker@adacore.com>
183
184 * eval.c (binop_promote): Add fixed-point type handling.
185 * valarith.c (fixed_point_binop): New function.
186 (scalar_binop): Add fixed-point type handling.
187 (value_neg): Add fixed-point type handling.
188 * valops.c (value_cast_to_fixed_point): New function.
189 (value_cast): Add fixed-point type handling.
190
0c9150e4
JB
1912020-11-15 Joel Brobecker <brobecker@adacore.com>
192
193 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
194 range types.
195 * c-typeprint.c (c_type_print_varspec_prefix)
196 (c_type_print_varspec_suffix, c_type_print_base_1): Add
197 TYPE_CODE_FIXED_POINT handling.
198 * p-typeprint.c (pascal_type_print_varspec_prefix)
199 (pascal_type_print_varspec_suffix): Likewise.
200 * typeprint.c (print_type_fixed_point): New function.
201 * typeprint.h (print_type_fixed_point): Add declaration.
202
b26daff9
JB
2032020-11-15 Joel Brobecker <brobecker@adacore.com>
204
205 * printcmd.c (print_scalar_formatted): Add fixed-point type
206 handling when options->format is set.
207
09584414
JB
2082020-11-15 Joel Brobecker <brobecker@adacore.com>
209
210 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
211 * dwarf2/read.c (get_dwarf2_rational_constant)
212 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
213 (has_zero_over_zero_small_attribute): New functions.
214 read_base_type, set_die_type): Add fixed-point type handling.
215 * gdb-gdb.py.in: Add fixed-point type handling.
216 * gdbtypes.c: #include "gmp-utils.h".
217 (create_range_type, set_type_code): Add fixed-point type handling.
218 (init_fixed_point_type): New function.
219 (is_integral_type, is_scalar_type): Add fixed-point type handling.
220 (print_fixed_point_type_info): New function.
221 (recursive_dump_type, copy_type_recursive): Add fixed-point type
222 handling.
223 (fixed_point_type_storage): New typedef.
224 (fixed_point_objfile_key): New static global.
225 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
226 (fixed_point_type_base_type, fixed_point_scaling_factor): New
227 functions.
228 * gdbtypes.h: #include "gmp-utils.h".
229 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
230 (union type_specific) <fixed_point_info>: New field.
231 (struct fixed_point_type_info): New struct.
232 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
233 (init_fixed_point_type, is_fixed_point_type)
234 (fixed_point_type_base_type, fixed_point_scaling_factor)
235 (allocate_fixed_point_type_info): Add declarations.
236 * valprint.c (generic_val_print_fixed_point): New function.
237 (generic_value_print): Add fixed-point type handling.
238 * value.c (value_as_address, unpack_long): Add fixed-point type
239 handling.
240
e55c6530
JB
2412020-11-15 Joel Brobecker <brobecker@adacore.com>
242
243 * utils.h (uinteger_pow): Add declaration.
244 * utils.c (uinteger_pow): Moved here (without changes)...
245 * valarith.c (uinteger_pow): ... from here.
246
b34c74ab
JB
2472020-11-15 Joel Brobecker <brobecker@adacore.com>
248
40d9d2fd 249 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
250 * unittests/gmp-utils-selftests.c: New file.
251 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
252 unittests/gmp-utils-selftests.c.
253 (COMMON_SFILES) Add gmp-utils.c.
254 (HFILES_NO_SRCDIR): Add gmp-utils.h.
255
1b4ac058
JB
2562020-11-15 Joel Brobecker <brobecker@adacore.com>
257
258 * configure.ac: Generate an error if a usable GMP library
259 could not be found.
260 * configure: Regenerate.
261
2c947d9b
JB
2622020-11-15 Joel Brobecker <brobecker@adacore.com>
263
264 * configure.ac: Add support for --with-libgmp-prefix.
265 * Makefile.in (LIBGMP): New variable.
266 (CLIBS): Include $(LIBGMP).
267 * configure, config.in: Regenerate
268
9dd02fc0
AB
2692020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
270
271 PR cli/26879
272 * f-exp.y (COMPLETE): New token.
273 (exp): Two new rules for tab-completion.
274 (saw_name_at_eof): New static global.
275 (last_was_structop): Likewise.
276 (yylex): Set new variables, and return COMPLETE token at the end
277 of the input stream in some cases.
278
758cb810
TT
2792020-11-14 Tom Tromey <tom@tromey.com>
280
281 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
282
749065b7
TT
2832020-11-14 Tom Tromey <tom@tromey.com>
284
285 * opencl-lang.c (opencl_component_ref): Make "comps" const.
286
2c5b1849
SM
2872020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
288
289 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
290
e8b2f0d9
TT
2912020-11-13 Tom Tromey <tom@tromey.com>
292
293 * c-lang.c (convert_ucn, convert_octal, convert_hex)
294 (convert_escape, parse_one_string): Constify.
295
25f4c262
KS
2962020-11-13 Keith Seitz <keiths@redhat.com>
297
298 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
299 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
300 outside of ELF segments" warning for debugin
301
9d3ab915
KS
3022020-11-13 Keith Seitz <keiths@redhat.com>
303
304 PR gdb/23034
305 * elfread.c (elf_symfile_segments): Output a BFD file name
306 for the "Loadable section ... outside of ELF segments" warning.
307
9ecab40c
SM
3082020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
309
310 PR gdb/26835
311 * arm-tdep.c (class arm_instruction_reader): New.
312 (target_arm_instruction_reader): New.
313 (arm_analyze_prologue): Add instruction reader parameter and use
314 it. Use arm_expand_immediate.
315 (class target_arm_instruction_reader): Adjust.
316 (arm_skip_prologue): Adjust.
317 (arm_expand_immediate): New.
318 (arm_scan_prologue): Adjust.
319 (arm_analyze_prologue_test): New.
320 (class test_arm_instruction_reader): New.
321
5a7cf527
AB
3222020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
323
324 * f-lang.c (fortran_argument_convert): Add declaration. Add
325 header comment, taken from f-lang.h. Make static.
326 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
327 (fortran_argument_convert): Delete declaration.
328
7bea47f0
AB
3292020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
330
331 * ada-exp.y (find_primitive_type): Make parameter const.
332 * ada-lang.c (enum ada_primitive_types): Delete.
333 (ada_language::language_arch_info): Update.
334 * c-lang.c (enum c_primitive_types): Delete.
335 (c_language_arch_info): Update.
336 (enum cplus_primitive_types): Delete.
337 (cplus_language::language_arch_info): Update.
338 * d-lang.c (enum d_primitive_types): Delete.
339 (d_language::language_arch_info): Update.
340 * f-lang.c (enum f_primitive_types): Delete.
341 (f_language::language_arch_info): Update.
342 * go-lang.c (enum go_primitive_types): Delete.
343 (go_language::language_arch_info): Update.
344 * language.c (auto_or_unknown_language::language_arch_info):
345 Update.
346 (language_gdbarch_post_init): Use obstack_new, use array indexing.
347 (language_string_char_type): Add header comment, call function in
348 language_arch_info.
349 (language_bool_type): Likewise
350 (language_arch_info::bool_type): Define.
351 (language_lookup_primitive_type_1): Delete.
352 (language_lookup_primitive_type): Rewrite as a templated function
353 to call function in language_arch_info, then instantiate twice.
354 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
355 (language_arch_info::lookup_primitive_type_and_symbol): Define.
356 (language_arch_info::lookup_primitive_type): Define twice with
357 different signatures.
358 (language_arch_info::lookup_primitive_type_as_symbol): Define.
359 (language_lookup_primitive_type_as_symbol): Rewrite to call a
360 member function in language_arch_info.
361 * language.h (language_arch_info): Complete rewrite.
362 (language_lookup_primitive_type): Make templated.
363 * m2-lang.c (enum m2_primitive_types): Delete.
364 (m2_language::language_arch_info): Update.
365 * opencl-lang.c (OCL_P_TYPE): Delete.
366 (enum opencl_primitive_types): Delete.
367 (opencl_type_data): Delete.
368 (builtin_opencl_type): Delete.
369 (lookup_opencl_vector_type): Update.
370 (opencl_language::language_arch_info): Update, lots of content
371 moved from...
372 (build_opencl_types): ...here. This function is now deleted.
373 (_initialize_opencl_language): Delete.
374 * p-lang.c (enum pascal_primitive_types): Delete.
375 (pascal_language::language_arch_info): Update.
376 * rust-lang.c (enum rust_primitive_types): Delete.
377 (rust_language::language_arch_info): Update.
378
bf6e5d01
SM
3792020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
380
381 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
382 dwarf2_queue_guard.
383
1350c3b4
SM
3842020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
385
386 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
387 comment.
388
6f738b01
SM
3892020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
390
391 * dwarf2/read.c (dwarf_read_debug_printf,
392 dwarf_read_debug_printf_v): New macros, use throughout the file.
393
10c19fad
SV
3942020-11-12 Shahab Vahedi <shahab@synopsys.com>
395
396 * arc-linux-tdep.c (collect_register): Populate "eret" by
397 "pc" value from the regcache when asked for "pc" value.
398
1f2624a3
TT
3992020-11-12 Tom Tromey <tom@tromey.com>
400
401 PR rust/26799:
402 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
403 exist.
404
ab33b152
AB
4052020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
406
407 * features/Makefile (XMLTOC): Add rx.xml.
408 (FEATURE_XMLFILES): Remove rx.xml.
409 (FEATURE_CFILES rule): Pass '-single-feature' flag.
410 * features/rx.c: Regenerate.
411 * features/rx.xml: Wrap in `target` tags, and reindent.
412 * target-descriptions.c (struct maint_print_c_tdesc_options): New
413 structure.
414 (maint_print_c_tdesc_opt_def): New typedef.
415 (maint_print_c_tdesc_opt_defs): New static global.
416 (make_maint_print_c_tdesc_options_def_group): New function.
417 (maint_print_c_tdesc_cmd): Make use of command line flags, only
418 print single feature C file for target descriptions containing a
419 single feature.
420 (maint_print_c_tdesc_cmd_completer): New function.
421 (_initialize_target_descriptions): Update call to register command
422 completer, and include command line flag in help text.
423
550820e1
AB
4242020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
427 numbers.
428 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
429 enum values.
430
baf20f76
TT
4312020-11-10 Tom Tromey <tom@tromey.com>
432
433 * value.h (internalvar_name): Update.
434 * value.c (internalvar_name): Make return type const.
435
caaece0e
TT
4362020-11-10 Tom Tromey <tom@tromey.com>
437
438 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
439 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
440 const.
441
8e20b4be
TT
4422020-11-10 Tom Tromey <tom@tromey.com>
443
444 * objc-lang.h (value_nsstring): Update.
445 * objc-lang.c (value_nsstring): Make "ptr" const.
446
86775fab
AB
4472020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
448
449 * expprint.c (print_subexp_funcall): Increment expression position
450 after reading argument count.
451 * f-lang.c (print_subexp_f): Skip over opcode before calling
452 common function.
453 (dump_subexp_body_f): Likewise.
454
3fed4c0b
RG
4552020-11-06 Romain Geissler <romain.geissler@amadeus.com>
456
457 PR python/26832
458 * configure: Regenerate.
459 * configure.ac: Check for python modules ctypes instead of
460 itertools.
461
ac3d4064
PA
4622020-11-06 Pedro Alves <pedro@palves.net>
463
464 * macroexp.c (struct macro_buffer): Split in two classes. Add
465 uses adjusted.
466 (struct shared_macro_buffer): New, factored out from struct
467 macro_buffer.
468 (struct growable_macro_buffer): New, factored out from struct
469 macro_buffer.
470 (set_token, get_comment, get_identifier, get_pp_number)
471 (get_character_constant, get_string_literal, get_punctuator)
472 (get_next_token_for_substitution): Constify parameters.
473 (substitute_args): Constify locals.
474
606decb2
TT
4752020-11-05 Tom Tromey <tom@tromey.com>
476
477 * dwarf2/read.c (read_cutu_die_from_dwo)
478 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
479 (build_type_psymtabs_1): Update.
480 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
481 parameter.
482 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
483 Don't read section. Add assert.
484
9c91c725
TT
4852020-11-04 Tom Tromey <tromey@adacore.com>
486
487 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
488
8d9fd3a1
TT
4892020-11-04 Tom Tromey <tromey@adacore.com>
490
491 * ada-typeprint.c (ada_print_type): Handle __T types.
492
d8f62e84
TT
4932020-11-04 Tom Tromey <tromey@adacore.com>
494
495 * dwarf2/read.c (add_partial_symbol, process_die):
496 Handle DW_TAG_array_type.
497 (is_type_tag_for_partial): Add "lang" parameter.
498 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
499
7ff5b937
TT
5002020-11-04 Tom Tromey <tromey@adacore.com>
501
502 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
503
10f6a3ad
TT
5042020-11-04 Tom Tromey <tromey@adacore.com>
505
506 * dwarf2/read.c (read_array_type): Only apply stride to innermost
507 array.
508
b72795a8
TT
5092020-11-04 Tom Tromey <tromey@adacore.com>
510
511 * gdbtypes.c (update_static_array_size): Handle bit stride.
512
24aa1b02
TT
5132020-11-04 Tom Tromey <tromey@adacore.com>
514
515 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
516
c9a28cbe
TT
5172020-11-04 Tom Tromey <tromey@adacore.com>
518
519 * ada-lang.c (ada_is_any_packed_array_type): New function.
520 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
521
57567375
TT
5222020-11-04 Tom Tromey <tromey@adacore.com>
523
524 * dwarf2/read.c (recognize_bound_expression)
525 (quirk_ada_thick_pointer): New functions.
526 (read_array_type): Call quirk_ada_thick_pointer.
527 (set_die_type): Add "skip_data_location" parameter.
528 (quirk_ada_thick_pointer): New function.
529 (process_structure_scope): Call quirk_ada_thick_pointer.
530 * ada-lang.c (ada_is_unconstrained_packed_array_type)
531 (decode_packed_array_bitsize): Handle thick pointers without
532 parallel types.
533 (ada_is_gnat_encoded_packed_array_type): Rename from
534 ada_is_packed_array_type.
535 (ada_is_constrained_packed_array_type): Update.
536 * ada-valprint.c (ada_val_print_gnat_array): Remove.
537 (ada_value_print_1): Use ada_get_decoded_value.
538
a7400e44
TT
5392020-11-04 Tom Tromey <tromey@adacore.com>
540
541 * ada-lang.c (recursively_update_array_bitsize): New function.
542 (decode_constrained_packed_array_type): Call it.
543
75fd6a26
TT
5442020-11-04 Tom Tromey <tromey@adacore.com>
545
546 * ada-lang.c (to_fixed_array_type): Error if
547 decode_constrained_packed_array_type returns NULL.
548
93f9561e
TT
5492020-11-04 Tom Tromey <tromey@adacore.com>
550
551 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
552
257e02d8
TT
5532020-11-02 Tom Tromey <tromey@adacore.com>
554
555 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
556 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
557 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
558 * amd64-ravenscar-thread.c: New file.
559 * amd64-ravenscar-thread.h: New file.
560 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
561 * configure.tgt (amd64_tobjs): Add ravenscar objects.
562
74d877e5
AB
5632020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
564
565 * main.c (execute_cmdargs): New function.
566 (captured_main_1): Make use of execute_cmdargs.
567
64aaad63
AB
5682020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * NEWS: Mention changes to config file search path.
571 * main.c
572
5b3d3560
TT
5732020-11-02 Tom Tromey <tromey@adacore.com>
574
575 * python/python.c: Consolidate two HAVE_PYTHON blocks.
576 (python_GdbModuleDef): Move earlier. Now static.
577 (do_start_initialization): Consolidate some IS_PY3K blocks.
578
dda83cd7
SM
5792020-11-02 Simon Marchi <simon.marchi@efficios.com>
580
581 * aarch64-linux-tdep.c: Fix indentation.
582 * aarch64-ravenscar-thread.c: Fix indentation.
583 * aarch64-tdep.c: Fix indentation.
584 * aarch64-tdep.h: Fix indentation.
585 * ada-lang.c: Fix indentation.
586 * ada-lang.h: Fix indentation.
587 * ada-tasks.c: Fix indentation.
588 * ada-typeprint.c: Fix indentation.
589 * ada-valprint.c: Fix indentation.
590 * ada-varobj.c: Fix indentation.
591 * addrmap.c: Fix indentation.
592 * addrmap.h: Fix indentation.
593 * agent.c: Fix indentation.
594 * aix-thread.c: Fix indentation.
595 * alpha-bsd-nat.c: Fix indentation.
596 * alpha-linux-tdep.c: Fix indentation.
597 * alpha-mdebug-tdep.c: Fix indentation.
598 * alpha-nbsd-tdep.c: Fix indentation.
599 * alpha-obsd-tdep.c: Fix indentation.
600 * alpha-tdep.c: Fix indentation.
601 * amd64-bsd-nat.c: Fix indentation.
602 * amd64-darwin-tdep.c: Fix indentation.
603 * amd64-linux-nat.c: Fix indentation.
604 * amd64-linux-tdep.c: Fix indentation.
605 * amd64-nat.c: Fix indentation.
606 * amd64-obsd-tdep.c: Fix indentation.
607 * amd64-tdep.c: Fix indentation.
608 * amd64-windows-tdep.c: Fix indentation.
609 * annotate.c: Fix indentation.
610 * arc-tdep.c: Fix indentation.
611 * arch-utils.c: Fix indentation.
612 * arch/arm-get-next-pcs.c: Fix indentation.
613 * arch/arm.c: Fix indentation.
614 * arm-linux-nat.c: Fix indentation.
615 * arm-linux-tdep.c: Fix indentation.
616 * arm-nbsd-tdep.c: Fix indentation.
617 * arm-pikeos-tdep.c: Fix indentation.
618 * arm-tdep.c: Fix indentation.
619 * arm-tdep.h: Fix indentation.
620 * arm-wince-tdep.c: Fix indentation.
621 * auto-load.c: Fix indentation.
622 * auxv.c: Fix indentation.
623 * avr-tdep.c: Fix indentation.
624 * ax-gdb.c: Fix indentation.
625 * ax-general.c: Fix indentation.
626 * bfin-linux-tdep.c: Fix indentation.
627 * block.c: Fix indentation.
628 * block.h: Fix indentation.
629 * blockframe.c: Fix indentation.
630 * bpf-tdep.c: Fix indentation.
631 * break-catch-sig.c: Fix indentation.
632 * break-catch-syscall.c: Fix indentation.
633 * break-catch-throw.c: Fix indentation.
634 * breakpoint.c: Fix indentation.
635 * breakpoint.h: Fix indentation.
636 * bsd-uthread.c: Fix indentation.
637 * btrace.c: Fix indentation.
638 * build-id.c: Fix indentation.
639 * buildsym-legacy.h: Fix indentation.
640 * buildsym.c: Fix indentation.
641 * c-typeprint.c: Fix indentation.
642 * c-valprint.c: Fix indentation.
643 * c-varobj.c: Fix indentation.
644 * charset.c: Fix indentation.
645 * cli/cli-cmds.c: Fix indentation.
646 * cli/cli-decode.c: Fix indentation.
647 * cli/cli-decode.h: Fix indentation.
648 * cli/cli-script.c: Fix indentation.
649 * cli/cli-setshow.c: Fix indentation.
650 * coff-pe-read.c: Fix indentation.
651 * coffread.c: Fix indentation.
652 * compile/compile-cplus-types.c: Fix indentation.
653 * compile/compile-object-load.c: Fix indentation.
654 * compile/compile-object-run.c: Fix indentation.
655 * completer.c: Fix indentation.
656 * corefile.c: Fix indentation.
657 * corelow.c: Fix indentation.
658 * cp-abi.h: Fix indentation.
659 * cp-namespace.c: Fix indentation.
660 * cp-support.c: Fix indentation.
661 * cp-valprint.c: Fix indentation.
662 * cris-linux-tdep.c: Fix indentation.
663 * cris-tdep.c: Fix indentation.
664 * darwin-nat-info.c: Fix indentation.
665 * darwin-nat.c: Fix indentation.
666 * darwin-nat.h: Fix indentation.
667 * dbxread.c: Fix indentation.
668 * dcache.c: Fix indentation.
669 * disasm.c: Fix indentation.
670 * dtrace-probe.c: Fix indentation.
671 * dwarf2/abbrev.c: Fix indentation.
672 * dwarf2/attribute.c: Fix indentation.
673 * dwarf2/expr.c: Fix indentation.
674 * dwarf2/frame.c: Fix indentation.
675 * dwarf2/index-cache.c: Fix indentation.
676 * dwarf2/index-write.c: Fix indentation.
677 * dwarf2/line-header.c: Fix indentation.
678 * dwarf2/loc.c: Fix indentation.
679 * dwarf2/macro.c: Fix indentation.
680 * dwarf2/read.c: Fix indentation.
681 * dwarf2/read.h: Fix indentation.
682 * elfread.c: Fix indentation.
683 * eval.c: Fix indentation.
684 * event-top.c: Fix indentation.
685 * exec.c: Fix indentation.
686 * exec.h: Fix indentation.
687 * expprint.c: Fix indentation.
688 * f-lang.c: Fix indentation.
689 * f-typeprint.c: Fix indentation.
690 * f-valprint.c: Fix indentation.
691 * fbsd-nat.c: Fix indentation.
692 * fbsd-tdep.c: Fix indentation.
693 * findvar.c: Fix indentation.
694 * fork-child.c: Fix indentation.
695 * frame-unwind.c: Fix indentation.
696 * frame-unwind.h: Fix indentation.
697 * frame.c: Fix indentation.
698 * frv-linux-tdep.c: Fix indentation.
699 * frv-tdep.c: Fix indentation.
700 * frv-tdep.h: Fix indentation.
701 * ft32-tdep.c: Fix indentation.
702 * gcore.c: Fix indentation.
703 * gdb_bfd.c: Fix indentation.
704 * gdbarch.sh: Fix indentation.
705 * gdbarch.c: Re-generate
706 * gdbarch.h: Re-generate.
707 * gdbcore.h: Fix indentation.
708 * gdbthread.h: Fix indentation.
709 * gdbtypes.c: Fix indentation.
710 * gdbtypes.h: Fix indentation.
711 * glibc-tdep.c: Fix indentation.
712 * gnu-nat.c: Fix indentation.
713 * gnu-nat.h: Fix indentation.
714 * gnu-v2-abi.c: Fix indentation.
715 * gnu-v3-abi.c: Fix indentation.
716 * go32-nat.c: Fix indentation.
717 * guile/guile-internal.h: Fix indentation.
718 * guile/scm-cmd.c: Fix indentation.
719 * guile/scm-frame.c: Fix indentation.
720 * guile/scm-iterator.c: Fix indentation.
721 * guile/scm-math.c: Fix indentation.
722 * guile/scm-ports.c: Fix indentation.
723 * guile/scm-pretty-print.c: Fix indentation.
724 * guile/scm-value.c: Fix indentation.
725 * h8300-tdep.c: Fix indentation.
726 * hppa-linux-nat.c: Fix indentation.
727 * hppa-linux-tdep.c: Fix indentation.
728 * hppa-nbsd-nat.c: Fix indentation.
729 * hppa-nbsd-tdep.c: Fix indentation.
730 * hppa-obsd-nat.c: Fix indentation.
731 * hppa-tdep.c: Fix indentation.
732 * hppa-tdep.h: Fix indentation.
733 * i386-bsd-nat.c: Fix indentation.
734 * i386-darwin-nat.c: Fix indentation.
735 * i386-darwin-tdep.c: Fix indentation.
736 * i386-dicos-tdep.c: Fix indentation.
737 * i386-gnu-nat.c: Fix indentation.
738 * i386-linux-nat.c: Fix indentation.
739 * i386-linux-tdep.c: Fix indentation.
740 * i386-nto-tdep.c: Fix indentation.
741 * i386-obsd-tdep.c: Fix indentation.
742 * i386-sol2-nat.c: Fix indentation.
743 * i386-tdep.c: Fix indentation.
744 * i386-tdep.h: Fix indentation.
745 * i386-windows-tdep.c: Fix indentation.
746 * i387-tdep.c: Fix indentation.
747 * i387-tdep.h: Fix indentation.
748 * ia64-libunwind-tdep.c: Fix indentation.
749 * ia64-libunwind-tdep.h: Fix indentation.
750 * ia64-linux-nat.c: Fix indentation.
751 * ia64-linux-tdep.c: Fix indentation.
752 * ia64-tdep.c: Fix indentation.
753 * ia64-tdep.h: Fix indentation.
754 * ia64-vms-tdep.c: Fix indentation.
755 * infcall.c: Fix indentation.
756 * infcmd.c: Fix indentation.
757 * inferior.c: Fix indentation.
758 * infrun.c: Fix indentation.
759 * iq2000-tdep.c: Fix indentation.
760 * language.c: Fix indentation.
761 * linespec.c: Fix indentation.
762 * linux-fork.c: Fix indentation.
763 * linux-nat.c: Fix indentation.
764 * linux-tdep.c: Fix indentation.
765 * linux-thread-db.c: Fix indentation.
766 * lm32-tdep.c: Fix indentation.
767 * m2-lang.c: Fix indentation.
768 * m2-typeprint.c: Fix indentation.
769 * m2-valprint.c: Fix indentation.
770 * m32c-tdep.c: Fix indentation.
771 * m32r-linux-tdep.c: Fix indentation.
772 * m32r-tdep.c: Fix indentation.
773 * m68hc11-tdep.c: Fix indentation.
774 * m68k-bsd-nat.c: Fix indentation.
775 * m68k-linux-nat.c: Fix indentation.
776 * m68k-linux-tdep.c: Fix indentation.
777 * m68k-tdep.c: Fix indentation.
778 * machoread.c: Fix indentation.
779 * macrocmd.c: Fix indentation.
780 * macroexp.c: Fix indentation.
781 * macroscope.c: Fix indentation.
782 * macrotab.c: Fix indentation.
783 * macrotab.h: Fix indentation.
784 * main.c: Fix indentation.
785 * mdebugread.c: Fix indentation.
786 * mep-tdep.c: Fix indentation.
787 * mi/mi-cmd-catch.c: Fix indentation.
788 * mi/mi-cmd-disas.c: Fix indentation.
789 * mi/mi-cmd-env.c: Fix indentation.
790 * mi/mi-cmd-stack.c: Fix indentation.
791 * mi/mi-cmd-var.c: Fix indentation.
792 * mi/mi-cmds.c: Fix indentation.
793 * mi/mi-main.c: Fix indentation.
794 * mi/mi-parse.c: Fix indentation.
795 * microblaze-tdep.c: Fix indentation.
796 * minidebug.c: Fix indentation.
797 * minsyms.c: Fix indentation.
798 * mips-linux-nat.c: Fix indentation.
799 * mips-linux-tdep.c: Fix indentation.
800 * mips-nbsd-tdep.c: Fix indentation.
801 * mips-tdep.c: Fix indentation.
802 * mn10300-linux-tdep.c: Fix indentation.
803 * mn10300-tdep.c: Fix indentation.
804 * moxie-tdep.c: Fix indentation.
805 * msp430-tdep.c: Fix indentation.
806 * namespace.h: Fix indentation.
807 * nat/fork-inferior.c: Fix indentation.
808 * nat/gdb_ptrace.h: Fix indentation.
809 * nat/linux-namespaces.c: Fix indentation.
810 * nat/linux-osdata.c: Fix indentation.
811 * nat/netbsd-nat.c: Fix indentation.
812 * nat/x86-dregs.c: Fix indentation.
813 * nbsd-nat.c: Fix indentation.
814 * nbsd-tdep.c: Fix indentation.
815 * nios2-linux-tdep.c: Fix indentation.
816 * nios2-tdep.c: Fix indentation.
817 * nto-procfs.c: Fix indentation.
818 * nto-tdep.c: Fix indentation.
819 * objfiles.c: Fix indentation.
820 * objfiles.h: Fix indentation.
821 * opencl-lang.c: Fix indentation.
822 * or1k-tdep.c: Fix indentation.
823 * osabi.c: Fix indentation.
824 * osabi.h: Fix indentation.
825 * osdata.c: Fix indentation.
826 * p-lang.c: Fix indentation.
827 * p-typeprint.c: Fix indentation.
828 * p-valprint.c: Fix indentation.
829 * parse.c: Fix indentation.
830 * ppc-linux-nat.c: Fix indentation.
831 * ppc-linux-tdep.c: Fix indentation.
832 * ppc-nbsd-nat.c: Fix indentation.
833 * ppc-nbsd-tdep.c: Fix indentation.
834 * ppc-obsd-nat.c: Fix indentation.
835 * ppc-ravenscar-thread.c: Fix indentation.
836 * ppc-sysv-tdep.c: Fix indentation.
837 * ppc64-tdep.c: Fix indentation.
838 * printcmd.c: Fix indentation.
839 * proc-api.c: Fix indentation.
840 * producer.c: Fix indentation.
841 * producer.h: Fix indentation.
842 * prologue-value.c: Fix indentation.
843 * prologue-value.h: Fix indentation.
844 * psymtab.c: Fix indentation.
845 * python/py-arch.c: Fix indentation.
846 * python/py-bpevent.c: Fix indentation.
847 * python/py-event.c: Fix indentation.
848 * python/py-event.h: Fix indentation.
849 * python/py-finishbreakpoint.c: Fix indentation.
850 * python/py-frame.c: Fix indentation.
851 * python/py-framefilter.c: Fix indentation.
852 * python/py-inferior.c: Fix indentation.
853 * python/py-infthread.c: Fix indentation.
854 * python/py-objfile.c: Fix indentation.
855 * python/py-prettyprint.c: Fix indentation.
856 * python/py-registers.c: Fix indentation.
857 * python/py-signalevent.c: Fix indentation.
858 * python/py-stopevent.c: Fix indentation.
859 * python/py-stopevent.h: Fix indentation.
860 * python/py-threadevent.c: Fix indentation.
861 * python/py-tui.c: Fix indentation.
862 * python/py-unwind.c: Fix indentation.
863 * python/py-value.c: Fix indentation.
864 * python/py-xmethods.c: Fix indentation.
865 * python/python-internal.h: Fix indentation.
866 * python/python.c: Fix indentation.
867 * ravenscar-thread.c: Fix indentation.
868 * record-btrace.c: Fix indentation.
869 * record-full.c: Fix indentation.
870 * record.c: Fix indentation.
871 * reggroups.c: Fix indentation.
872 * regset.h: Fix indentation.
873 * remote-fileio.c: Fix indentation.
874 * remote.c: Fix indentation.
875 * reverse.c: Fix indentation.
876 * riscv-linux-tdep.c: Fix indentation.
877 * riscv-ravenscar-thread.c: Fix indentation.
878 * riscv-tdep.c: Fix indentation.
879 * rl78-tdep.c: Fix indentation.
880 * rs6000-aix-tdep.c: Fix indentation.
881 * rs6000-lynx178-tdep.c: Fix indentation.
882 * rs6000-nat.c: Fix indentation.
883 * rs6000-tdep.c: Fix indentation.
884 * rust-lang.c: Fix indentation.
885 * rx-tdep.c: Fix indentation.
886 * s12z-tdep.c: Fix indentation.
887 * s390-linux-tdep.c: Fix indentation.
888 * score-tdep.c: Fix indentation.
889 * ser-base.c: Fix indentation.
890 * ser-mingw.c: Fix indentation.
891 * ser-uds.c: Fix indentation.
892 * ser-unix.c: Fix indentation.
893 * serial.c: Fix indentation.
894 * sh-linux-tdep.c: Fix indentation.
895 * sh-nbsd-tdep.c: Fix indentation.
896 * sh-tdep.c: Fix indentation.
897 * skip.c: Fix indentation.
898 * sol-thread.c: Fix indentation.
899 * solib-aix.c: Fix indentation.
900 * solib-darwin.c: Fix indentation.
901 * solib-frv.c: Fix indentation.
902 * solib-svr4.c: Fix indentation.
903 * solib.c: Fix indentation.
904 * source.c: Fix indentation.
905 * sparc-linux-tdep.c: Fix indentation.
906 * sparc-nbsd-tdep.c: Fix indentation.
907 * sparc-obsd-tdep.c: Fix indentation.
908 * sparc-ravenscar-thread.c: Fix indentation.
909 * sparc-tdep.c: Fix indentation.
910 * sparc64-linux-tdep.c: Fix indentation.
911 * sparc64-nbsd-tdep.c: Fix indentation.
912 * sparc64-obsd-tdep.c: Fix indentation.
913 * sparc64-tdep.c: Fix indentation.
914 * stabsread.c: Fix indentation.
915 * stack.c: Fix indentation.
916 * stap-probe.c: Fix indentation.
917 * stubs/ia64vms-stub.c: Fix indentation.
918 * stubs/m32r-stub.c: Fix indentation.
919 * stubs/m68k-stub.c: Fix indentation.
920 * stubs/sh-stub.c: Fix indentation.
921 * stubs/sparc-stub.c: Fix indentation.
922 * symfile-mem.c: Fix indentation.
923 * symfile.c: Fix indentation.
924 * symfile.h: Fix indentation.
925 * symmisc.c: Fix indentation.
926 * symtab.c: Fix indentation.
927 * symtab.h: Fix indentation.
928 * target-float.c: Fix indentation.
929 * target.c: Fix indentation.
930 * target.h: Fix indentation.
931 * tic6x-tdep.c: Fix indentation.
932 * tilegx-linux-tdep.c: Fix indentation.
933 * tilegx-tdep.c: Fix indentation.
934 * top.c: Fix indentation.
935 * tracefile-tfile.c: Fix indentation.
936 * tracepoint.c: Fix indentation.
937 * tui/tui-disasm.c: Fix indentation.
938 * tui/tui-io.c: Fix indentation.
939 * tui/tui-regs.c: Fix indentation.
940 * tui/tui-stack.c: Fix indentation.
941 * tui/tui-win.c: Fix indentation.
942 * tui/tui-winsource.c: Fix indentation.
943 * tui/tui.c: Fix indentation.
944 * typeprint.c: Fix indentation.
945 * ui-out.h: Fix indentation.
946 * unittests/copy_bitwise-selftests.c: Fix indentation.
947 * unittests/memory-map-selftests.c: Fix indentation.
948 * utils.c: Fix indentation.
949 * v850-tdep.c: Fix indentation.
950 * valarith.c: Fix indentation.
951 * valops.c: Fix indentation.
952 * valprint.c: Fix indentation.
953 * valprint.h: Fix indentation.
954 * value.c: Fix indentation.
955 * value.h: Fix indentation.
956 * varobj.c: Fix indentation.
957 * vax-tdep.c: Fix indentation.
958 * windows-nat.c: Fix indentation.
959 * windows-tdep.c: Fix indentation.
960 * xcoffread.c: Fix indentation.
961 * xml-syscall.c: Fix indentation.
962 * xml-tdesc.c: Fix indentation.
963 * xstormy16-tdep.c: Fix indentation.
964 * xtensa-config.c: Fix indentation.
965 * xtensa-linux-nat.c: Fix indentation.
966 * xtensa-linux-tdep.c: Fix indentation.
967 * xtensa-tdep.c: Fix indentation.
968
e1f57067
AB
9692020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
970 Craig Blackmore <craig.blackmore@embecosm.com>
971
972 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
973 as an unsigned value.
974
ae7754b2
TT
9752020-11-01 Tom Tromey <tom@tromey.com>
976
977 * dbxread.c (dbx_end_psymtab): Update.
978 * dwarf2/read.c (process_psymtab_comp_unit_reader)
979 (build_type_psymtabs_reader): Update.
980 * xcoffread.c (xcoff_end_psymtab): Update.
981 * ctfread.c (scan_partial_symbols): Update.
982 * psymtab.c (sort_pst_symbols): Remove.
983 (partial_symtab::end): Rename from end_psymtab_common. Inline
984 sort_pst_symbols.
985 * psympriv.h (struct partial_symtab) <end>: New method.
986 (end_psymtab_common): Don't declare.
987
0684bb51
TT
9882020-11-01 Tom Tromey <tom@tromey.com>
989
990 * symmisc.c (count_psyms): New function.
991 (print_objfile_statistics): Use it.
992 * psymtab.c (append_psymbol_to_list): Remove.
993 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
994 * objfiles.h (struct objstats) <n_psyms>: Remove.
995
089002bb
TT
9962020-11-01 Tom Tromey <tom@tromey.com>
997
998 * dbxread.c (dbx_end_psymtab): Update.
999 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1000 (build_type_psymtabs_reader): Update.
1001 * xcoffread.c (xcoff_end_psymtab): Update.
1002 * ctfread.c (scan_partial_symbols): Update.
1003 * psympriv.h (end_psymtab_common): Update.
1004 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1005 (sort_pst_symbols): Likewise.
1006
525454d6
TT
10072020-11-01 Tom Tromey <tom@tromey.com>
1008
1009 * dbxread.c (dbx_symfile_read): Update.
1010 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1011 * xcoffread.c (xcoff_initial_scan): Update.
1012 * psympriv.h (init_psymbol_list): Don't declare.
1013 * psymtab.c (init_psymbol_list): Remove.
1014
60bd1d53
JB
10152020-11-01 Joel Brobecker <brobecker@adacore.com>
1016
1017 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1018 gnat_encoded_fixed_type_info. Update all callers.
1019
db99d0d0
JB
10202020-11-01 Joel Brobecker <brobecker@adacore.com>
1021
1022 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1023 line too long.
1024
75f24e86
JB
10252020-11-01 Joel Brobecker <brobecker@adacore.com>
1026
1027 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1028 cast_from_fixed. Update all callers.
1029 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1030 Update all callers.
1031 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1032 Update all callers.
1033 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1034 ada_scaling_factor.
1035 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1036 to print_gnat_encoded_fixed_point_type.
1037 * ada-valprint.c: Likewise.
1038
4f0469cd
AB
10392020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1040
1041 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1042 (debug_prefixed_printf): Add check of debug_displaced flag.
1043 * linux-nat.c (linux_nat_debug_printf): Add check of
1044 debug_linux_nat flag.
1045
17417fb0
SM
10462020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1047
1048 * infrun.c (infrun_debug_printf_1): Remove.
1049 (displaced_debug_printf_1): Remove.
1050 (stop_all_threads): Use debug_prefixed_printf.
1051 * infrun.h (infrun_debug_printf_1): Remove.
1052 (infrun_debug_printf): Use debug_prefixed_printf.
1053 (displaced_debug_printf_1): Remove.
1054 (displaced_debug_printf): Use debug_prefixed_printf.
1055 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1056 (linux_nat_debug_printf): Use debug_prefixed_printf.
1057
ad6dba1c
SM
10582020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1059
1060 * configure: Re-generate.
1061 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1062 AC_LANG_PROGRAM.
1063
b6fb30ed
SM
10642020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1065
1066 * configure: Re-generate.
1067
5164c117
SM
10682020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1069
1070 * configure: Re-generate.
1071
864ca435
SM
10722020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1073
1074 * configure: Re-generate.
1075
b9442ec1
SM
10762020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1077
1078 * configure: Re-generate.
1079
294f2697
SM
10802020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1081
1082 * acinclude.m4: Modernize.
1083 * configure: Re-generate.
1084
5593a99a
SM
10852020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1086
1087 * configure.ac: Modernize.
1088 * configure: Re-generate.
1089
e41fda1d
SM
10902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1091
1092 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1093 * configure: Re-generate.
1094 * configure.ac: Remove AM_PROG_CC_STDC.
1095
91e1a0ed
SM
10962020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1097
1098 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1099 AC_CANONICAL_SYSTEM.
1100 * configure: Re-generate.
1101
136821d9
SM
11022020-10-30 Simon Marchi <simon.marchi@efficios.com>
1103
1104 * infrun.h (displaced_debug_printf): New macro. Replace
1105 displaced debug prints throughout to use it.
1106 (displaced_debug_printf_1): New declaration.
1107 (displaced_step_dump_bytes): Return string, remove ui_file
1108 parameter, update all callers.
1109 * infrun.c (displaced_debug_printf_1): New function.
1110 (displaced_step_dump_bytes): Return string, remove ui_file
1111 parameter
1112
aa2045e7
SM
11132020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1114
1115 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1116
b1ec2735
TT
11172020-10-30 Tom Tromey <tromey@adacore.com>
1118
1119 * Makefile.in (stamp-init): Depend on config.status.
1120
b78b3a29
TBA
11212020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1122
1123 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1124
d70bdd3c
PA
11252020-10-30 Pedro Alves <pedro@palves.net>
1126
1127 * thread.c (lookup_selected_frame): Move ...
1128 * frame.c (lookup_selected_frame): ... here.
1129
79952e69
PA
11302020-10-30 Pedro Alves <pedro@palves.net>
1131
1132 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1133 * frame.c
1134 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1135 Use save_selected_frame. Save language as well.
1136 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1137 Use restore_selected_frame, and restore language as well.
1138 (selected_frame_id, selected_frame_level): New.
1139 (selected_frame): Update comments.
1140 (save_selected_frame, restore_selected_frame): New.
1141 (get_selected_frame): Use lookup_selected_frame.
1142 (get_selected_frame_if_set): Delete.
1143 (select_frame): Record selected_frame_level and selected_frame_id.
1144 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1145 fields.
1146 (get_selected_frame): Make 'message' parameter optional.
1147 (get_selected_frame_if_set): Delete declaration.
1148 (select_frame): Update comments.
1149 (save_selected_frame, restore_selected_frame)
1150 (lookup_selected_frame): Declare.
1151 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1152 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1153 New field.
1154 (save_infcall_control_state): Use save_selected_frame.
1155 (restore_selected_frame): Delete.
1156 (restore_infcall_control_state): Use restore_selected_frame.
1157 * stack.c (select_frame_command_core, frame_command_core): Use
1158 get_selected_frame.
1159 * thread.c (restore_selected_frame): Rename to ...
1160 (lookup_selected_frame): ... this and make extern. Select the
1161 current frame if the frame level is -1.
1162 (scoped_restore_current_thread::restore): Also restore the
1163 language.
1164 (scoped_restore_current_thread::~scoped_restore_current_thread):
1165 Don't try/catch.
1166 (scoped_restore_current_thread::scoped_restore_current_thread):
1167 Save the language as well. Use save_selected_frame.
1168
58103c33
SM
11692020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1170
1171 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1172 documentation.
1173 * gdbarch.h: Re-generate.
1174
40a53766
SM
11752020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1176
1177 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1178 parameter.
1179 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1180 Likewise.
1181 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1182 Likewise.
1183 * arch-utils.c (default_displaced_step_hw_singlestep):
1184 Likewise.
1185 * arch-utils.h (default_displaced_step_hw_singlestep):
1186 Likewise.
1187 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1188 Likewise.
1189 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1190 Likewise.
1191 * gdbarch.c: Re-generate.
1192 * gdbarch.h: Re-generate.
1193 * infrun.c (resume_1): Adjust.
1194
8407f91b
TT
11952020-10-29 Tom Tromey <tom@tromey.com>
1196
1197 * progspace.c (program_space::~program_space): Don't call
1198 exec_close.
1199
5008b3b2
TT
12002020-10-29 Tom Tromey <tom@tromey.com>
1201
1202 * exec.c (exec_target::close): Don't change current program
1203 space.
1204
d9eebde0
TT
12052020-10-29 Tom Tromey <tom@tromey.com>
1206
1207 * symfile.c (add_symbol_file_command): Update.
1208 * exec.c (program_space::add_target_sections): Rename.
1209 * symfile-mem.c (symbol_file_add_from_memory): Update.
1210 * progspace.h (struct program_space) <add_target_sections>:
1211 Declare new overload.
1212 * exec.h (add_target_sections_of_objfile): Don't declare.
1213
3769e227
TT
12142020-10-29 Tom Tromey <tom@tromey.com>
1215
1216 * solib.c (solib_map_sections): Update.
1217 * exec.c (program_space::add_target_sections): Now a method.
1218 (exec_file_attach): Update.
1219 * exec.h (add_target_sections): Don't declare.
1220 * progspace.h (struct program_space) <add_target_sections>:
1221 Declare.
1222
2a3f84af
TT
12232020-10-29 Tom Tromey <tom@tromey.com>
1224
1225 * progspace.h (struct program_space) <remove_target_sections>:
1226 Declare.
1227 * exec.c (program_space::remove_target_sections): Now a method.
1228 * exec.h (remove_target_sections): Don't declare.
1229
004eecfd
TT
12302020-10-29 Tom Tromey <tom@tromey.com>
1231
1232 * inferior.c (delete_inferior): Update.
1233 * progspace.c (program_space::empty): Rename from
1234 program_space_empty_p. Return bool.
1235 * progspace.h (struct program_space) <empty>: New method.
1236 (program_space_empty_p): Don't declare.
1237
e39fb971
TT
12382020-10-29 Tom Tromey <tom@tromey.com>
1239
1240 * progspace.c (program_space::~program_space): Don't call
1241 clear_program_space_solib_cache.
1242 (program_space::clear_solib_cache): Rename from
1243 clear_solib_cache.
1244 * solib.c (handle_solib_event): Update.
1245 * progspace.h (struct program_space) <clear_solib_cache>: New
1246 method.
1247 (clear_program_space_solib_cache): Don't declare.
1248
a42d7dd8
TT
12492020-10-29 Tom Tromey <tom@tromey.com>
1250
1251 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1252 * target.c (info_target_command): Update.
1253 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1254 (symbol_file_clear, reread_symbols): Update.
1255 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1256 * stabsread.c (scan_file_globals): Update.
1257 * solib.c (update_solib_list): Update.
1258 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1259 (svr4_fetch_objfile_link_map, enable_break)
1260 (svr4_relocate_main_executable)
1261 (svr4_iterate_over_objfiles_in_search_order): Update.
1262 * solib-frv.c (lm_base, enable_break)
1263 (frv_relocate_main_executable): Update.
1264 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1265 (frv_fetch_objfile_link_map): Update.
1266 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1267 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1268 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1269 * remote.c (remote_target::get_offsets): Update.
1270 (remote_target::start_remote)
1271 (extended_remote_target::post_attach): Update.
1272 * objfiles.c (entry_point_address_query): Update.
1273 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1274 * minsyms.c (get_symbol_leading_char): Update.
1275 * frame.c (inside_main_func): Update.
1276 * progspace.h (symfile_objfile): Remove macro.
1277
19f6550e
TT
12782020-10-29 Tom Tromey <tom@tromey.com>
1279
1280 * exec.c (exec_file_attach): Update.
1281 * progspace.c (program_space::exec_close): Update.
1282 * progspace.h (struct program_space) <ebfd>: Now a
1283 gdb_bfd_ref_ptr.
1284 <set_exec_bfd>: Change argument type.
1285 <exec_bfd>: Update.
1286
7e10abd1
TT
12872020-10-29 Tom Tromey <tom@tromey.com>
1288
1289 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1290 * symfile.c (reread_symbols): Update.
1291 * symfile-mem.c (add_symbol_file_from_memory_command)
1292 (add_vsyscall_page): Update.
1293 * source-cache.c (source_cache::get_plain_source_lines): Update.
1294 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1295 (svr4_current_sos_direct, svr4_exec_displacement)
1296 (svr4_relocate_main_executable): Update.
1297 (svr4_iterate_over_objfiles_in_search_order): Update.
1298 * solib-frv.c (enable_break2, enable_break): Update.
1299 * solib-dsbt.c (lm_base, enable_break): Update.
1300 * solib-darwin.c (find_program_interpreter)
1301 (darwin_solib_create_inferior_hook): Update.
1302 * sol-thread.c (rw_common, ps_pdmodel): Update.
1303 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1304 * remote.c (compare_sections_command)
1305 (remote_target::trace_set_readonly_regions): Update.
1306 * remote-sim.c (get_sim_inferior_data)
1307 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1308 (gdbsim_target_open, gdbsim_target::files_info): Update.
1309 * exec.h (exec_bfd): Remove macro.
1310 * progspace.c (initialize_progspace): Update.
1311 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1312 Update.
1313 * nto-procfs.c (nto_procfs_target::post_attach)
1314 (nto_procfs_target::create_inferior): Update.
1315 * maint.c (maintenance_info_sections): Update.
1316 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1317 Update.
1318 * infcmd.c (post_create_inferior): Update.
1319 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1320 (objfile_find_memory_regions): Update.
1321 * exec.c (validate_exec_file, exec_file_attach)
1322 (exec_read_partial_read_only, print_section_info): Update.
1323 * corelow.c (core_target_open): Update.
1324 * corefile.c (reopen_exec_file, validate_files): Update.
1325 * arm-tdep.c (gdb_print_insn_arm): Update.
1326 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1327 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1328 methods.
1329
b55221ab
TT
13302020-10-29 Tom Tromey <tom@tromey.com>
1331
1332 * progspace.h (current_target_sections): Remove macro.
1333 * solib-svr4.c (scan_dyntag): Update.
1334 * solib-dsbt.c (scan_dyntag): Update.
1335 * exec.c (exec_target::close): Update.
1336 (add_target_sections, add_target_sections_of_objfile)
1337 (remove_target_sections, exec_target::get_section_table)
1338 (exec_target::files_info, set_section_command)
1339 (exec_set_section_address, exec_target::has_memory)
1340 (exec_target::has_memory): Update.
1341
5a36e715
TT
13422020-10-29 Tom Tromey <tom@tromey.com>
1343
1344 * source-cache.c (source_cache::get_plain_source_lines): Use
1345 current_program_space.
1346 * corefile.c (reopen_exec_file): Use current_program_space.
1347 * exec.c (exec_file_attach): Use current_program_space.
1348 * exec.h (exec_bfd_mtime): Remove.
1349
784c8592
TT
13502020-10-29 Tom Tromey <tom@tromey.com>
1351
1352 * gcore.c (default_gcore_mach): Remove.
1353 (create_gcore_bfd): Update.
1354
8a4f1402
TT
13552020-10-29 Tom Tromey <tom@tromey.com>
1356
1357 * progspace.c (program_space::exec_close): New method, from
1358 exec_close in exec.c.
1359 * exec.c (exec_close): Move to progspace.c.
1360 (exec_target::close, exec_file_attach): Update.
1361 * progspace.h (struct program_space) <exec_close>: Declare
1362 method.
1363
c20cb686
TT
13642020-10-29 Tom Tromey <tom@tromey.com>
1365
1366 * progspace.h (struct program_space) <exec_filename>: Rename from
1367 pspace_exec_filename. Now a unique_xmalloc_ptr.
1368 * inferior.c (print_selected_inferior): Update.
1369 (print_inferior): Update.
1370 * mi/mi-main.c (print_one_inferior): Update.
1371 * exec.h (exec_filename): Remove macro.
1372 * corefile.c (get_exec_file): Update.
1373 * exec.c (exec_close): Update.
1374 (exec_file_attach): Update.
1375 * progspace.c (clone_program_space): Update.
1376 (print_program_space): Update.
1377
6be2a9ab
TT
13782020-10-29 Tom Tromey <tom@tromey.com>
1379
1380 * target-section.h (struct target_section): Add constructor.
1381 * exec.c (build_section_table, add_target_sections_of_objfile):
1382 Update.
1383 * corelow.c (core_target::build_file_mappings): Update.
1384
cfaa8f76
TBA
13852020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1386
1387 PR gdb/19318
1388 * inferior.c (detach_inferior_command): Restore the current thread.
1389 (kill_inferior_command): Ditto.
1390
1b00ef06
TV
13912020-10-28 Tom de Vries <tdevries@suse.de>
1392
1393 PR symtab/26772
1394 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1395 map, check it in the "best match" loop.
1396
7f40ce1a
SM
13972020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1398
1399 * m32c-tdep.c: Remove unused includes.
1400
5eb9e3f5
SM
14012020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1402
1403 * xtensa-tdep.c: Remove includes.
1404
b1d4d8d1
TBA
14052020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1406
1407 * breakpoint.c (struct condition_command_opts): New struct.
1408 (condition_command_option_defs): New static global.
1409 (make_condition_command_options_def_group): New function.
1410 (condition_completer): Update to consider the '-force' flag.
1411 (condition_command): Use gdb::option for the '-force' flag.
1412
bd24c5d6
TV
14132020-10-27 Tom de Vries <tdevries@suse.de>
1414
1415 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1416 symbols in section check.
1417
61eb46a4
TV
14182020-10-27 Tom de Vries <tdevries@suse.de>
1419
1420 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1421
733d554a
TBA
14222020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1423
1424 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1425 * breakpoint.c: Update the help text of the 'condition' and 'break'
1426 commands.
1427 (set_breakpoint_condition): Take a new bool parameter
1428 to control whether condition definition should be forced even when
1429 the condition expression is invalid in all of the current locations.
1430 (condition_command): Update the call to 'set_breakpoint_condition'.
1431 (find_condition_and_thread): Take the "-force-condition" flag into
1432 account.
1433 * linespec.c (linespec_keywords): Add "-force-condition" as an
1434 element.
1435 (FORCE_KEYWORD_INDEX): New #define.
1436 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1437 as a keyword.
1438 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1439 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1440 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1441 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1442
b5fa468f
TBA
14432020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1444
1445 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1446 * breakpoint.c (set_breakpoint_location_condition): New function.
1447 (set_breakpoint_condition): Disable a breakpoint location if parsing
1448 the condition string gives an error.
1449 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1450 (build_target_condition_list): Ditto.
1451 (build_target_command_list): Ditto.
1452 (build_bpstat_chain): Ditto.
1453 (print_one_breakpoint_location): Ditto.
1454 (print_one_breakpoint): Ditto.
1455 (breakpoint_1): Ditto.
1456 (bp_location::bp_location): Ditto.
1457 (locations_are_equal): Ditto.
1458 (update_breakpoint_locations): Ditto.
1459 (enable_disable_bp_num_loc): Ditto.
1460 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1461 (find_condition_and_thread_for_sals): New static function.
1462 (create_breakpoint): Call find_condition_and_thread_for_sals.
1463 (location_to_sals): Call find_condition_and_thread_for_sals instead
1464 of find_condition_and_thread.
1465
1c47ec3e
TV
14662020-10-26 Tom de Vries <tdevries@suse.de>
1467
1468 * dwarf2/read.c (process_full_comp_unit): Call
1469 dwarf2_find_base_address.
1470
6390859c
TT
14712020-10-26 Tom Tromey <tromey@adacore.com>
1472
1473 * gdbtypes.c (create_range_type): Revert previous patch. Add
1474 comment.
1475
d744f0f9
PA
14762020-10-26 Pedro Alves <pedro@palves.net>
1477
1478 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1479 (my_waitpid): Use gdb::handle_eintr.
1480
006811bc
SM
14812020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1482
1483 * acinclude.m4: Update ptrace.m4 path.
1484 * ptrace.m4: Moved to gdbsupport.
1485
c75e31a1
SM
14862020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1489 instead of target_gdbarch.
1490
32495661
SM
14912020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1492
1493 * jit.c (jit_reader_load_command): Pass current inferior.
1494 (jit_inferior_init): Change parameter type to inferior, use it.
1495 (jit_inferior_created): Remove.
1496 (jit_inferior_created_hook): Pass inferior parameter down.
1497 (_initialize_jit): Use jit_inferior_created_hook instead of
1498 jit_inferior_created.
1499 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1500 * infrun.c (follow_exec): Pass inferior to
1501 jit_inferior_created_hook.
1502
3f66685e
SM
15032020-10-24 Simon Marchi <simon.marchi@efficios.com>
1504
1505 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1506 parameter and use it.
1507 (thread_db_inferior_created): Pass inferior argument.
1508
a0ff652f
SM
15092020-10-24 Simon Marchi <simon.marchi@efficios.com>
1510
1511 * aix-thread.c (aix_thread_inferior_created): Add inferior
1512 parameter.
1513 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1514 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1515 * jit.c (jit_inferior_created): Likewise.
1516 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1517 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1518 * observable.h (inferior_created): Likewise.
1519 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1520 * symfile-mem.c (add_vsyscall_page): Likewise.
1521 * infcmd.c (post_create_inferior): Pass inferior argument.
1522
3c67532c
JB
15232020-10-24 Joel Brobecker <brobecker@adacore.com>
1524
1525 GDB 10.1 released.
1526
8747316e
JB
15272020-10-23 Joel Brobecker <brobecker@adacore.com>
1528
1529 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1530 to ada_check_typedef.
1531
1a0ea399
AB
15322020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1533
1534 * f-exp.y (f_parse): Rename to...
1535 (f_language::parser): ...this.
1536 * f-lang.c (f_get_encoding): Rename to...
1537 (f_language::get_encoding): ...this.
1538 (f_op_print_tab): Rename to...
1539 (f_language::op_print_tab): ...this.
1540 (exp_descriptor_f): Rename to...
1541 (f_language::exp_descriptor_tab): ...this.
1542 (class f_language): Moved to f-lang.h.
1543 (f_language::language_arch_info): New function, moved out of class
1544 declaration.
1545 (f_language::search_name_hash): Likewise.
1546 (f_language::lookup_symbol_nonlocal): Likewise.
1547 (f_language::get_symbol_name_matcher_inner): Likewise.
1548 * f-lang.h: Add 'valprint.h' include.
1549 (class f_language): Moved here from f-lang.c.
1550 * f-typeprint.c (f_type_print_args): Delete commented out
1551 declaration.
1552 (f_print_typedef): Rename to...
1553 (f_language::print_typedef): ...this.
1554 (f_print_type): Rename to...
1555 (f_language::print_type): ...this.
1556 (f_type_print_varspec_prefix): Delete declaration and rename to...
1557 (f_language::f_type_print_varspec_prefix): ...this.
1558 (f_type_print_varspec_suffix): Delete declaration and rename to...
1559 (f_language::f_type_print_varspec_suffix): ...this.
1560 (f_type_print_base): Delete declaration and rename to...
1561 (f_language::f_type_print_base): ...this.
1562 * f-valprint.c (f_value_print_inner): Rename to...
1563 (f_language::value_print_inner): ...this.
1564 * parse.c: Delete 'f-lang.h' include.
1565
88cefd9b
AB
15662020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1567
1568 * language.h (language_defn::print_type): Add variable names in
1569 declaration, and update header comment.
1570
5399db93
AB
15712020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1572
1573 * ada-lang.c (ada_language::demangle): Rename to...
1574 (ada_language::demangle_symbol): ...this.
1575 * c-lang.c (cplus_language::demangle): Rename to...
1576 (cplus_language::demangle_symbol): ...this.
1577 * d-lang.c (d_language::demangle): Rename to...
1578 (d_language::demangle_symbol): ...this.
1579 * f-lang.c (f_language::demangle): Rename to...
1580 (f_language::demangle_symbol): ...this.
1581 * go-lang.c (go_language::demangle): Rename to...
1582 (go_language::demangle_symbol): ...this.
1583 * language.c (language_demangle): Update call to demangle_symbol.
1584 (auto_or_unknown_language::demangle): Rename to...
1585 (auto_or_unknown_language::demangle_symbol): ...this.
1586 * language.h (language_defn::demangle): Rename to...
1587 (language_defn::demangle_symbol): ...this.
1588 * objc-lang.c (objc_language::demangle): Rename to...
1589 (objc_language::demangle_symbol): ...this.
1590 * rust-lang.c (rust_language::demangle): Rename to...
1591 (rust_language::demangle_symbol): ...this.
1592
4b2f86ef
AB
15932020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1594
1595 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1596 (iterate_over_file_blocks): Replace use of macro with the macros
1597 definition.
1598
e74b39de
AB
15992020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1600
1601 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1602 * valprint.c (maybe_print_array_index): Replace use of macro with
1603 the macros definition.
1604
00c696a6
AB
16052020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * ada-lang.c (ada_language::print_array_index): Call value_print
1608 directly.
1609 * language.c (language_defn::print_array_index): Likewise.
1610 * language.h (LA_VALUE_PRINT): Delete.
1611 * valprint.c (value_print): Call value_print on the
1612 current_language directly.
1613
d3b67c56
AB
16142020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * language.h (LA_PRINT_TYPEDEF): Delete.
1617 * typeprint.c (typedef_print): Call print_typedef directly on the
1618 current_language object.
1619
790e2a12
AB
16202020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1621
1622 * m2-exp.y (m2_parse): Rename to...
1623 (m2_language::parser): ...this. Update function signature.
1624 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1625 (m2_op_print): Rename to...
1626 (m2_language::op_print_tab): ...this, and make const.
1627 (exp_descriptor_modula2): Rename to...
1628 (m2_language::exp_descriptor_modula2): ...this.
1629 (class m2_language): Move to m2-lang.h.
1630 (m2_language::language_arch_info): New function, moved out of
1631 class declaration.
1632 (m2_language::printchar): New function, body from m2_printchar.
1633 (m2_language::printstr): New function, moved out of class
1634 declaration.
1635 (m2_language::emitchar): Likewise.
1636 * m2-lang.h (m2_parse): Delete declaration.
1637 (m2_print_typedef): Delete declaration.
1638 (m2_value_print_inner): Delete declaration.
1639 (class m2_language): Class declaration moved from m2-lang.c,
1640 larger functions are left in m2-lang.c.
1641 * m2-typeprint.c (m2_print_typedef): Rename to...
1642 (m2_language::print_typedef): ...this, and update function
1643 signature.
1644 * m2-valprint.c (m2_value_print_inner): Rename to...
1645 (m2_language::value_print_inner): ...this, replace use of
1646 LA_PRINT_STRING with a direct call to printstr member function,
1647 and update recursive call.
1648
b01175fc
AB
16492020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * language.c (default_is_string_type_p): Delete, implementation
1652 moved into auto_or_unknown_language::is_string_type_p.
1653 (unk_op_print_tab): Moved into
1654 auto_or_unknown_language::opcode_print_table.
1655 (unknown_language_arch_info): Delete, implementation moved into
1656 auto_or_unknown_language::language_arch_info.
1657 (class auto_or_unknown_language): New class, member functions
1658 copied from unknown_language class, with some updates.
1659 (class unknown_language): Most member functions moved into
1660 auto_or_unknown_language class. Inherit from
1661 auto_or_unknown_language class.
1662 (class auto_language): Inherit from auto_or_unknown_language.
1663 Delete most member functions.
1664
1a97fe8c
HD
16652020-10-22 Hannes Domani <ssbssa@yahoo.de>
1666
1667 * stabsread.c (read_member_functions): Remove gdb_assert.
1668
6b9d0dfd
HD
16692020-10-22 Hannes Domani <ssbssa@yahoo.de>
1670
1671 * gdbtypes.c (init_complex_type): Check target type name.
1672
4b4bb603
SM
16732020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1674
1675 * target-debug.h (target_debug_print_struct_target_ops_p):
1676 Remove.
1677 (target_debug_print_async_callback_ftype_p): Remove.
1678 (target_debug_print_struct_trace_state_variable_p): Remove.
1679 (target_debug_print_struct_traceframe_info_p): Remove.
1680 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1681 (target_debug_print_enum_btrace_format): Remove.
1682 (target_debug_print_enum_info_proc_what): Remove.
1683 (target_debug_print_thread_info_pp): Remove.
1684
24f5300a
SM
16852020-10-22 Simon Marchi <simon.marchi@efficios.com>
1686
1687 * target.h (struct target_ops) <make_corefile_notes>:
1688 Change return type to unique pointer.
1689 * target.c (dummy_make_corefile_notes): Likewise.
1690 * exec.c (struct exec_target) <make_corefile_notes>:
1691 Likewise.
1692 (exec_target::make_corefile_notes): Likewise.
1693 * procfs.c (class procfs_target) <make_corefile_notes>:
1694 Likewise.
1695 (procfs_do_thread_registers): Adjust to unique pointer.
1696 (struct procfs_corefile_thread_data): Add constructor.
1697 <note_data>: Change type to unique pointer.
1698 (procfs_corefile_thread_callback): Adjust to unique pointer.
1699 (procfs_target::make_corefile_notes): Change return type to
1700 unique pointer.
1701 * target-delegates.c: Re-generate.
1702 * gcore.c (write_gcore_file_1): Adjust.
1703 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1704 New.
1705
5fb4027f
TV
17062020-10-22 Tom de Vries <tdevries@suse.de>
1707
1708 * block.c (find_block_in_blockvector): Make sure the returned block
1709 contains pc.
1710
4a636814
SM
17112020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1712
1713 PR gdb/26693
1714 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1715 parameter.
1716 (load_cu): Pass existing CU.
1717 (process_imported_unit_die): Likewise.
1718 (follow_die_offset): Likewise.
1719
1bd57575
LM
17202020-10-22 Luis Machado <luis.machado@linaro.org>
1721
1722 * corelow.c (core_target::xfer_partial): Also check for an empty
1723 m_core_unavailable_mappings vector.
1724
6b4c676c
AB
17252020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1726
1727 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1728 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1729 * f-exp.y (arglist): Allow for a series of subranges.
1730 (subrange): Add cases for subranges with strides.
1731 * f-lang.c (value_f90_subarray): Catch use of array strides and
1732 throw an error.
1733 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1734
f2d8e4c5
AB
17352020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * expprint.c (print_subexp_standard): Change enum range_type to
1738 range_flag and rename variables to match.
1739 (dump_subexp_body_standard): Likewise.
1740 * expression.h (enum range_type): Rename to...
1741 (enum range_flag): ...this.
1742 (range_types): Rename to...
1743 (range_flags): ...this.
1744 * f-lang.c (value_f90_subarray): Change enum range_type to
1745 range_flag and rename variables to match.
1746 * parse.c (operator_length_standard): Likewise.
1747 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1748 range_type to range_flag.
1749 * rust-lang.c (rust_evaluate_funcall): Likewise.
1750 (rust_range): Likewise.
1751 (rust_compute_range): Likewise.
1752 (rust_subscript): Likewise.
1753
2f1b18db
AB
17542020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1755
1756 * expprint.c (print_subexp_standard): Update to reflect changes to
1757 enum range_type.
1758 (dump_subexp_body_standard): Likewise.
1759 * expression.h (enum range_type): Convert to a bit field enum, and
1760 make the enum unsigned.
1761 * f-exp.y (subrange): Update to reflect changes to enum
1762 range_type.
1763 * f-lang.c (value_f90_subarray): Likewise.
1764 * parse.c (operator_length_standard): Likewise.
1765 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1766 * rust-lang.c (rust_range): Likewise.
1767 (rust_compute_range): Likewise.
1768 (rust_subscript): Likewise.
1769
a46d1843
SM
17702020-10-21 Simon Marchi <simon.marchi@efficios.com>
1771
1772 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1773 (displaced_step_in_progress): Fix comment.
1774
c21f37a8
SM
17752020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1776
1777 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1778 * gdbarch.c: Re-generate.
1779 * gdbarch.h: Re-generate.
1780 * gcore.c (write_gcore_file_1): Adjust.
1781 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1782 constructor.
1783 <note_data>: Change type to unique pointer.
1784 <abort_iteration>: Change type to bool.
1785 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1786 (fbsd_collect_thread_registers): Return void, adjust.
1787 (struct fbsd_corefile_thread_data): Add construtor.
1788 <note_data>: Change type to unique pointer.
1789 (fbsd_corefile_thread): Adjust.
1790 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1791 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1792 to unique pointer, adjust.
1793 (struct linux_collect_regset_section_cb_data): Add constructor.
1794 <note_data>: Change type to unique pointer.
1795 <abort_iteration>: Change type to bool.
1796 (linux_collect_thread_registers): Return void, adjust.
1797 (struct linux_corefile_thread_data): Add constructor.
1798 <note_data>: Change type to unique pointer.
1799 (linux_corefile_thread): Adjust.
1800 (linux_make_corefile_notes): Return unique pointer, adjust.
1801
07fbbd01
SM
18022020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1803
1804 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1805 * gdbarch.c: Re-generate.
1806 * gdbarch.h: Re-generate.
1807 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1808 bool.
1809 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1810 Likewise.
1811 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1812 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1813 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1814 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1815
39535193
SM
18162020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1817
1818 * gdbarch.sh: Make generated predicates return bool.
1819 * gdbarch.c: Re-generate.
1820 * gdbarch.h: Re-generate.
1821
ad523d01
TT
18222020-10-20 Tom Tromey <tom@tromey.com>
1823
1824 * varobj-iter.h (struct varobj_item): Remove typedef.
1825
c4464ade
SM
18262020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1827
1828 * infrun.c (currently_stepping): Change int to bool
1829 (maybe_software_singlestep): Likewise.
1830 (show_stop_on_solib_events): Likewise.
1831 (stepping_past_nonsteppable_watchpoint): Likewise.
1832 (displaced_step_in_progress_any_inferior): Likewise.
1833 (displaced_step_in_progress_thread): Likewise.
1834 (keep_going_stepped_thread): Likewise.
1835 (thread_still_needs_step_over): Likewise.
1836 (start_step_over): Likewise.
1837 (do_target_resume): Likewise.
1838 (resume_1): Likewise.
1839 (clear_proceed_status): Likewise.
1840 (thread_still_needs_step_over_bp): Likewise.
1841 (proceed): Likewise.
1842 (switch_back_to_stepped_thread): Likewise.
1843 (adjust_pc_after_break): Likewise.
1844 (stepped_in_from): Likewise.
1845 (handle_stop_requested): Likewise.
1846 (handle_syscall_event): Likewise.
1847 (handle_no_resumed): Likewise.
1848 (handle_inferior_event): Likewise.
1849 (finish_step_over): Likewise.
1850 (handle_signal_stop): Likewise.
1851 (process_event_stop_test): Likewise.
1852
2eb20436
SM
18532020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1854
1855 * infrun.c (get_displaced_stepping_state): Fix comment.
1856
e0c45ded
AS
18572020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1858
1859 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1860
22cc388e
TT
18612020-10-19 Tom Tromey <tromey@adacore.com>
1862
1863 PR tui/26719
1864 * tui/tui-winsource.h (struct tui_source_window_base)
1865 <refresh_window>: Rename from refresh_pad.
1866 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1867 Rename from refresh_pad.
1868 (tui_source_window_base::show_source_content)
1869 (tui_source_window_base::do_scroll_horizontal): Update.
1870
3c6eb4d4
TBA
18712020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1872
1873 * thread.c (_initialize_thread): Fine-tune the help text of
1874 'info threads'.
1875
26703721
TBA
18762020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1877
1878 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1879
61c26be8
MS
18802020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1881
1882 * breakpoint.c (handle_jit_event): Add an argument, change how
1883 `jit_event_handler` is called.
1884
932539d7
TT
18852020-10-17 Tom Tromey <tom@tromey.com>
1886
1887 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1888 (scan_xcoff_symtab): Update.
1889 * psymtab.h (class psymtab_storage) <global_psymbols,
1890 static_psymbols, current_global_psymbols,
1891 current_static_psymbols>: Remove.
1892 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1893 (match_partial_symbol, lookup_partial_symbol): Update.
1894 (print_partial_symbols): Change parameters.
1895 (dump_psymtab, recursively_search_psymtabs)
1896 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1897 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1898 (concat): Remove.
1899 (end_psymtab_common): Simplify.
1900 (append_psymbol_to_list): Change parameters.
1901 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1902 (init_psymbol_list): Simplify.
1903 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1904 * psympriv.h (struct partial_symtab) <empty>: New method.
1905 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1906 Remove.
1907 <global_psymbols, static_psymbols>: New members.
1908 <add_psymbol>: New methods.
1909 (add_psymbol_to_list): Don't declare.
1910 (psymbol_placement): Move earlier.
1911 * mdebugread.c (parse_partial_symbols): Update.
1912 (handle_psymbol_enumerators): Change parameters.
1913 (mdebug_expand_psymtab): Update.
1914 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1915 (add_partial_symbol): Update.
1916 * dwarf2/index-write.c (write_psymbols): Change parameters.
1917 (write_one_signatured_type): Update.
1918 (recursively_count_psymbols): Update.
1919 (recursively_write_psymbols): Update.
1920 (class debug_names) <recursively_write_psymbols>: Update.
1921 <write_psymbols>: Change parameters.
1922 <write_one_signatured_type>: Update.
1923 * dbxread.c (read_dbx_symtab): Update.
1924 (dbx_end_psymtab): Use partial_symtab::empty.
1925 * ctfread.c (struct ctf_context) <pst>: New member.
1926 (create_partial_symtab): Set it.
1927 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1928 (scan_partial_symbols): Use the psymtab's context. Update.
1929
cfabbd35
TT
19302020-10-17 Tom Tromey <tom@tromey.com>
1931
1932 * valprint.c (generic_value_print): Remove comment.
1933 * m2-valprint.c (m2_value_print_inner): Remove comment.
1934 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1935 type.
1936
520596f2
TV
19372020-10-17 Tom de Vries <tdevries@suse.de>
1938
1939 PR symtab/26317
1940 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1941 symbol main.
1942
76547ab3
TV
19432020-10-14 Tom de Vries <tdevries@suse.de>
1944
1945 PR gdb/26733
1946 * solib.c (solib_contains_address_p): Handle
1947 'solib->sections == nullptr'.
1948
d3a07122
SM
19492020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1950
1951 PR gdb/26642
1952 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1953 target can't do async.
1954 * target.c (target_wait): Assert that we don't pass
1955 TARGET_WNOHANG to a target that can't async.
1956
1b71cfcf
KR
19572020-10-13 Kamil Rytarowski <n54@gmx.com>
1958
1959 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1960 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1961 * alpha-bsd-nat.c: Adjust include.
1962 * alpha-bsd-tdep.h: Adjust comment.
1963 * alpha-nbsd-tdep.c: Rename to ...
1964 * alpha-netbsd-tdep.c: ... this, adjust include.
1965 * amd64-nbsd-nat.c: Rename to ...
1966 * amd64-netbsd-nat.c: ... this, adjust include.
1967 * amd64-nbsd-tdep.c: Rename to ...
1968 * amd64-netbsd-tdep.c: ... this, adjust include.
1969 * amd64-tdep.h: Adjust include.
1970 * arm-nbsd-nat.c: Rename to ...
1971 * arm-netbsd-nat.c: ... this, adjust include.
1972 * arm-nbsd-tdep.c: Rename to ...
1973 * arm-netbsd-tdep.c: ... this, adjust include.
1974 * arm-nbsd-tdep.h: Rename to ...
1975 * arm-netbsd-tdep.h: ... this, adjust include.
1976 * configure.nat: Adjust file lists.
1977 * configure.tgt: Likewise.
1978 * hppa-nbsd-nat.c: Rename to ...
1979 * hppa-netbsd-nat.c: ... this, adjust include.
1980 * hppa-nbsd-tdep.c: Rename to ...
1981 * hppa-netbsd-tdep.c: ... this, adjust include.
1982 * i386-nbsd-nat.c: Rename to ...
1983 * i386-netbsd-nat.c: ... this, adjust include.
1984 * i386-nbsd-tdep.c: Rename to ...
1985 * i386-netbsd-tdep.c: ... this, adjust include.
1986 * m68k-bsd-nat.c: Adjust include.
1987 * mips-nbsd-nat.c: Rename to ...
1988 * mips-netbsd-nat.c: ... this, adjust include.
1989 * mips-nbsd-tdep.c: Rename to ...
1990 * mips-netbsd-tdep.c: ... this, adjust include.
1991 * mips-nbsd-tdep.h: Rename to ...
1992 * mips-netbsd-tdep.h: ... this.
1993 * nbsd-nat.c: Rename to ...
1994 * netbsd-nat.c: ... this, adjust include.
1995 * nbsd-nat.h: Rename to ...
1996 * netbsd-nat.h: ... this, adjust include.
1997 * nbsd-tdep.c: Rename to ...
1998 * netbsd-tdep.c: ... this, adjust include.
1999 * nbsd-tdep.h: Rename to ...
2000 * netbsd-tdep.h: ... this.
2001 * ppc-nbsd-nat.c: Rename to ...
2002 * ppc-netbsd-nat.c: ... this, adjust include.
2003 * ppc-nbsd-tdep.c: Rename to ...
2004 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2005 * ppc-nbsd-tdep.h: Rename to ...
2006 * ppc-netbsd-tdep.h: ... this.
2007 * sh-nbsd-nat.c: Rename to ...
2008 * sh-netbsd-nat.c: ... this, adjust include.
2009 * sh-nbsd-tdep.c: Rename to ...
2010 * sh-netbsd-tdep.c: ... this, adjust include.
2011 * sparc-nbsd-nat.c: Rename to ...
2012 * sparc-netbsd-nat.c: ... this.
2013 * sparc-nbsd-tdep.c: Rename to ...
2014 * sparc-netbsd-tdep.c: ... this, adjust include.
2015 * sparc64-nbsd-nat.c: Rename to ...
2016 * sparc64-netbsd-nat.c: ... this.
2017 * sparc64-nbsd-tdep.c: Rename to ...
2018 * sparc64-netbsd-tdep.c: ... this, adjust include.
2019 * sparc64-tdep.h: Adjust comment.
2020 * vax-bsd-nat.c: Adjust include.
2021 * vax-nbsd-tdep.c: Rename to ...
2022 * vax-netbsd-tdep.c: ... this, adjust include.
2023
d7a78e5c
TT
20242020-10-12 Tom Tromey <tom@tromey.com>
2025
2026 * target.h (struct target_ops) <get_section_table>: Update.
2027 (target_get_section_table): Update.
2028 * target.c (target_get_section_table, target_section_by_addr)
2029 (memory_xfer_partial_1): Update.
2030 * target-section.h (target_section_table): Now an alias.
2031 * target-delegates.c: Rebuild.
2032 * target-debug.h (target_debug_print_target_section_table_p):
2033 Rename from target_debug_print_struct_target_section_table_p.
2034 * symfile.c (build_section_addr_info_from_section_table): Update.
2035 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2036 * solib-svr4.c (scan_dyntag): Update.
2037 * solib-dsbt.c (scan_dyntag): Update.
2038 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2039 Update.
2040 * record-full.c (record_full_core_target::xfer_partial): Update.
2041 * progspace.h (struct program_space) <target_sections>: Update.
2042 * exec.h (print_section_info): Update.
2043 * exec.c (exec_target::close, build_section_table)
2044 (add_target_sections, add_target_sections_of_objfile)
2045 (remove_target_sections, exec_on_vfork)
2046 (section_table_available_memory)
2047 (section_table_xfer_memory_partial)
2048 (exec_target::get_section_table, exec_target::xfer_partial)
2049 (print_section_info, set_section_command)
2050 (exec_set_section_address, exec_target::has_memory): Update.
2051 * corelow.c (core_target::build_file_mappings)
2052 (core_target::xfer_partial, core_target::info_proc_mappings)
2053 (core_target::info_proc_mappings): Update.
2054 * bfd-target.c (class target_bfd): Update
2055
eda214ce
TT
20562020-10-12 Tom Tromey <tom@tromey.com>
2057
2058 * progspace.c (program_space::~program_space): Don't call
2059 clear_section_table.
2060 * exec.h (clear_section_table): Don't declare.
2061 * exec.c (exec_target::close): Update.
2062 (clear_section_table): Remove.
2063
91840ee3
TT
20642020-10-12 Tom Tromey <tom@tromey.com>
2065
2066 * exec.c (add_target_sections_of_objfile): Simplify.
2067
2d128614
TT
20682020-10-12 Tom Tromey <tom@tromey.com>
2069
2070 * solib.c (solib_map_sections): Update.
2071 * record-full.c (record_full_core_open_1): Update.
2072 * exec.h (build_section_table): Return a target_section_table.
2073 * exec.c (exec_file_attach): Update.
2074 (build_section_table): Return a target_section_table.
2075 * corelow.c (core_target::core_target): Update.
2076 * bfd-target.c (target_bfd::target_bfd): Update.
2077
bb2a6777
TT
20782020-10-12 Tom Tromey <tom@tromey.com>
2079
2080 * target.c (target_section_by_addr, memory_xfer_partial_1):
2081 Update.
2082 * target-section.h (struct target_section_table): Use
2083 std::vector.
2084 * symfile.h (build_section_addr_info_from_section_table): Take a
2085 target_section_table.
2086 * symfile.c (build_section_addr_info_from_section_table): Take a
2087 target_section_table.
2088 * solist.h (struct so_list) <sections>: Change type.
2089 <sections_end>: Remove.
2090 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2091 (solib_contains_address_p): Update.
2092 * solib-svr4.c (scan_dyntag): Update.
2093 * solib-dsbt.c (scan_dyntag): Update.
2094 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2095 Update.
2096 * record-full.c (record_full_core_start, record_full_core_end):
2097 Remove.
2098 (record_full_core_sections): New global.
2099 (record_full_core_open_1, record_full_core_target::xfer_partial):
2100 Update.
2101 * exec.h (build_section_table, section_table_xfer_memory_partial)
2102 (add_target_sections): Take a target_section_table.
2103 * exec.c (exec_file_attach, clear_section_table): Update.
2104 (resize_section_table): Remove.
2105 (build_section_table, add_target_sections): Take a
2106 target_section_table.
2107 (add_target_sections_of_objfile, remove_target_sections)
2108 (exec_on_vfork): Update.
2109 (section_table_available_memory): Take a target_section_table.
2110 (section_table_read_available_memory): Update.
2111 (section_table_xfer_memory_partial): Take a target_section_table.
2112 (print_section_info, set_section_command)
2113 (exec_set_section_address, exec_target::has_memory): Update.
2114 * corelow.c (class core_target) <m_core_section_table,
2115 m_core_file_mappings>: Remove braces.
2116 <~core_target>: Remove.
2117 (core_target::core_target): Update.
2118 (core_target::~core_target): Remove.
2119 (core_target::build_file_mappings)
2120 (core_target::xfer_memory_via_mappings)
2121 (core_target::xfer_partial, core_target::info_proc_mappings):
2122 Update.
2123 * bfd-target.c (target_bfd::xfer_partial): Update.
2124 (target_bfd::target_bfd): Update.
2125 (target_bfd::~target_bfd): Remove.
2126
7b466b10
TT
21272020-10-12 Tom Tromey <tom@tromey.com>
2128
2129 * target.h (struct target_section, struct target_section_table):
2130 Move to target-section.h.
2131 * target-section.h: New file.
2132
87a37e5e
PA
21332020-10-12 Pedro Alves <pedro@palves.net>
2134
2135 PR exp/26602
2136 * valops.c (struct struct_field_searcher): New.
2137 (update_search_result): Rename to ...
2138 (struct_field_searcher::update_result): ... this. Simplify
2139 prototype. Record all found fields.
2140 (do_search_struct_field): Rename to ...
2141 (struct_field_searcher::search): ... this. Simplify prototype.
2142 Maintain stack of visited baseclass path. Call update_result for
2143 fields too. Keep searching fields in baseclasses instead of
2144 stopping at the first found field.
2145 (search_struct_field): Use struct_field_searcher. When looking
2146 for fields, report ambiguous access attempts.
2147
9370fd51
AB
21482020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2149
2150 * frame.c (inside_main_func): Check full symbols as well as
2151 minimal symbols.
2152
59c8a30b
JB
21532020-10-09 Joel Brobecker <brobecker@adacore.com>
2154
2155 * ada-lang.c (advance_wild_match): Rewrite the function's
2156 description. Change the type of target0, t0 and t1 to char.
2157
7c184d33
TT
21582020-10-09 Tom Tromey <tromey@adacore.com>
2159
2160 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2161
5c4258f4
TT
21622020-10-09 Tom Tromey <tromey@adacore.com>
2163
2164 * ada-lang.h (ada_encode): Return std::string.
2165 * ada-lang.c (ada_encode_1): Return std::string.
2166 (ada_encode): Likewise.
2167 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2168 Update.
2169 * ada-exp.y (block_lookup, write_var_or_type): Update.
2170
3d87245c
HD
21712020-10-09 Hannes Domani <ssbssa@yahoo.de>
2172
2173 PR exp/26714
2174 * printcmd.c (print_formatted): Handle void results as
2175 unformatted prints.
2176
bbb826f5
AB
21772020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2178
2179 * arch/aarch32.c (aarch32_create_target_description): Release the
2180 target_desc_up as late as possible.
2181 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2182 * arch/amd64.c (amd64_create_target_description): Likewise.
2183 * arch/arc.c (arc_create_target_description): Return a
2184 target_desc_up, don't release it.
2185 * arch/arc.h (arc_create_target_description): Update declaration.
2186 (arc_lookup_target_description): Move target_desc_up into the
2187 cache, and return a borrowed pointer.
2188 * arch/arm.c (arm_create_target_description): Release the
2189 target_desc_up as late as possible.
2190 * arch/i386.c (i386_create_target_description): Likewise.
2191 * arch/riscv.h (riscv_create_target_description): Update
2192 declaration to match definition.
2193 * arch/tic6x.c (tic6x_create_target_description): Release the
2194 target_desc_up as late as possible.
2195
361cb219
AB
21962020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2197
2198 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2199 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2200
f5c4b229
JV
22012020-10-09 Jan Vrany <jan.vrany@labware.com>
2202
2203 * source.c (directory_command): Notify observers that "directories"
2204 parameter has changed.
2205
b2701685
TT
22062020-10-08 Tom Tromey <tom@tromey.com>
2207
2208 * cli/cli-cmds.c (print_disassembly): Style function name and
2209 addresses. Add _() wrappers.
2210
ada508b6
SV
22112020-10-08 Shahab Vahedi <shahab@synopsys.com>
2212
2213 * NEWS: Mention ARC support in GDBserver.
2214
51a948fd
AB
22152020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2216
2217 * arch/aarch32.c (aarch32_create_target_description): Release
2218 unique_ptr returned from allocate_target_description.
2219 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2220 * arch/amd64.c (amd64_create_target_description): Likewise.
2221 * arch/arc.c (arc_create_target_description): Likewise.
2222 * arch/arm.c (arm_create_target_description): Likewise.
2223 * arch/i386.c (i386_create_target_description): Likewise.
2224 * arch/riscv.c (riscv_create_target_description): Update return
2225 type. Handle allocate_target_description returning a unique_ptr.
2226 (riscv_lookup_target_description): Update to handle unique_ptr.
2227 * arch/tic6x.c (tic6x_create_target_description): Release
2228 unique_ptr returned from allocate_target_description.
2229 * features/microblaze-with-stack-protect.c: Regenerate.
2230 * features/microblaze.c: Regenerate.
2231 * features/mips-dsp-linux.c: Regenerate.
2232 * features/mips-linux.c: Regenerate.
2233 * features/mips64-dsp-linux.c: Regenerate.
2234 * features/mips64-linux.c: Regenerate.
2235 * features/nds32.c: Regenerate.
2236 * features/nios2.c: Regenerate.
2237 * features/or1k.c: Regenerate.
2238 * features/rs6000/powerpc-32.c: Regenerate.
2239 * features/rs6000/powerpc-32l.c: Regenerate.
2240 * features/rs6000/powerpc-403.c: Regenerate.
2241 * features/rs6000/powerpc-403gc.c: Regenerate.
2242 * features/rs6000/powerpc-405.c: Regenerate.
2243 * features/rs6000/powerpc-505.c: Regenerate.
2244 * features/rs6000/powerpc-601.c: Regenerate.
2245 * features/rs6000/powerpc-602.c: Regenerate.
2246 * features/rs6000/powerpc-603.c: Regenerate.
2247 * features/rs6000/powerpc-604.c: Regenerate.
2248 * features/rs6000/powerpc-64.c: Regenerate.
2249 * features/rs6000/powerpc-64l.c: Regenerate.
2250 * features/rs6000/powerpc-7400.c: Regenerate.
2251 * features/rs6000/powerpc-750.c: Regenerate.
2252 * features/rs6000/powerpc-860.c: Regenerate.
2253 * features/rs6000/powerpc-altivec32.c: Regenerate.
2254 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2255 * features/rs6000/powerpc-altivec64.c: Regenerate.
2256 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2257 * features/rs6000/powerpc-e500.c: Regenerate.
2258 * features/rs6000/powerpc-e500l.c: Regenerate.
2259 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2260 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2261 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2262 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2263 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2264 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2265 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2266 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2267 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2268 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2269 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2270 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2271 * features/rs6000/powerpc-vsx32.c: Regenerate.
2272 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2273 * features/rs6000/powerpc-vsx64.c: Regenerate.
2274 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2275 * features/rs6000/rs6000.c: Regenerate.
2276 * features/rx.c: Regenerate.
2277 * features/s390-gs-linux64.c: Regenerate.
2278 * features/s390-linux32.c: Regenerate.
2279 * features/s390-linux32v1.c: Regenerate.
2280 * features/s390-linux32v2.c: Regenerate.
2281 * features/s390-linux64.c: Regenerate.
2282 * features/s390-linux64v1.c: Regenerate.
2283 * features/s390-linux64v2.c: Regenerate.
2284 * features/s390-te-linux64.c: Regenerate.
2285 * features/s390-tevx-linux64.c: Regenerate.
2286 * features/s390-vx-linux64.c: Regenerate.
2287 * features/s390x-gs-linux64.c: Regenerate.
2288 * features/s390x-linux64.c: Regenerate.
2289 * features/s390x-linux64v1.c: Regenerate.
2290 * features/s390x-linux64v2.c: Regenerate.
2291 * features/s390x-te-linux64.c: Regenerate.
2292 * features/s390x-tevx-linux64.c: Regenerate.
2293 * features/s390x-vx-linux64.c: Regenerate.
2294 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2295 from allocate_target_description.
2296 * target-descriptions.c (allocate_target_description): Update
2297 return type.
2298 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2299 allocate_target_description.
2300
485c47e5
TT
23012020-10-07 Tom Tromey <tromey@adacore.com>
2302
2303 * unittests/search-memory-selftests.c: New file.
2304 * Makefile.in (SELFTESTS_SRCS): Add
2305 unittests/search-memory-selftests.c.
2306
3a135a91
TT
23072020-10-07 Tom Tromey <tromey@adacore.com>
2308
2309 PR gdb/16930:
2310 * findcmd.c (_initialize_mem_search): Mention that the range is
2311 inclusive.
2312
4a72de73
TT
23132020-10-07 Tom Tromey <tromey@adacore.com>
2314
2315 * target.h (simple_search_memory): Don't declare.
2316 * target.c (simple_search_memory): Move to gdbsupport.
2317 (default_search_memory): Update.
2318 * remote.c (remote_target::search_memory): Update.
2319
a038ffd8
SM
23202020-10-07 Simon Marchi <simon.marchi@efficios.com>
2321
2322 * Makefile.in (COMPILE): Add CXXFLAGS.
2323 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2324 (check-headers): Add CXXFLAGS.
2325
cc463201
AK
23262020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2327
2328 * arc-linux-tdep.h: New file.
2329 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2330 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2331 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2332 arc_linux_gregset, arc_linux_v2_regset,
2333 arc_linux_iterate_over_regset_sections,
2334 arc_linux_core_read_description): Implement.
2335 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2336 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2337 (arc_gdbarch_features_create): Add.
2338 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2339
e4bd363f
SV
23402020-10-07 Shahab Vahedi <shahab@synopsys.com>
2341
2342 * arch/arc.h: Rename "arc_gdbarch_features" to
2343 "arc_arch_features".
2344 * arc-tdep.h: Likewise.
2345 * arc-tdep.c: Likewise.
2346
b68bef99
TBA
23472020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2348
2349 * infcmd.c (attach_command): Remove the redundant call to
2350 `clear_proceed_status`.
2351
4641551a
KR
23522020-10-07 Kamil Rytarowski <n54@gmx.com>
2353
2354 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2355
91e5e8db
KR
23562020-10-07 Kamil Rytarowski <n54@gmx.com>
2357
2358 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2359 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2360 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2361
64c03bdb
SM
23622020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2363
2364 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2365 (_initialize_break_catch_sig): Don't allocate array.
2366
31a8f60f
AB
23672020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2368
2369 * symtab.c (find_pc_line): Return unmapped addresses when the
2370 requested address is also unmapped.
2371
9e6dbd8b
SM
23722020-10-05 Simon Marchi <simon.marchi@efficios.com>
2373
2374 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2375 tui/tui-out.h.
2376
a1d217e8
SM
23772020-10-05 Simon Marchi <simon.marchi@efficios.com>
2378
2379 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2380 type::is_vector instead of TYPE_VECTOR.
2381
7d144117
SM
23822020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2383
2384 * auto-load.c (auto_load_objfile_script_1): Don't use
2385 debugfile_holder as temporary variable when stripping drive
2386 letter.
2387
cd096ec8
HD
23882020-10-05 Hannes Domani <ssbssa@yahoo.de>
2389
2390 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2391 Add TYPE_CODE_COMPLEX.
2392 (amd64_windows_return_value): Fix types returned via XMM0.
2393
b58e7f72
AH
23942020-10-05 Alan Hayward <alan.hayward@arm.com>
2395
2396 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2397 AArch64/ARM maintainers.
2398
8d378f27
SM
23992020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2400
2401 * NEWS: Mention set/show debug event-loop.
2402
d5519913
TT
24032020-10-02 Tom Tromey <tromey@adacore.com>
2404
2405 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2406 REG_EXTENDED.
2407
18b67edc
SM
24082020-10-02 Simon Marchi <simon.marchi@efficios.com>
2409
2410 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2411 * procfs.c (procfs_inferior_created): Remove.
2412 (_initialize_procfs): Don't register procfs_inferior_created.
2413
6b01403b
SM
24142020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2415
2416 * async-event.c (invoke_async_signal_handlers): Add debug
2417 print.
2418 (check_async_event_handlers): Likewise.
2419 * event-top.c (show_debug_event_loop): New function.
2420 (_initialize_event_top): Register "set debug event-loop"
2421 setting.
2422
ba988419
SM
24232020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2424
2425 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2426 * debug.h: Remove.
2427 * infrun.c: Include gdbsupport/common-debug.h.
2428 * linux-nat.c: Likewise.
2429
db20ebdf
SM
24302020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2431
2432 * async-event.h (create_async_signal_handler): Add name
2433 parameter.
2434 (create_async_event_handler): Likewise.
2435 * async-event.c (struct async_signal_handler) <name>: New field.
2436 (struct async_event_handler) <name>: New field.
2437 (create_async_signal_handler): Assign name.
2438 (create_async_event_handler): Assign name.
2439 * event-top.c (async_init_signals): Pass name when creating
2440 handler.
2441 * infrun.c (_initialize_infrun): Likewise.
2442 * record-btrace.c (record_btrace_push_target): Likewise.
2443 * record-full.c (record_full_open): Likewise.
2444 * remote-notif.c (remote_notif_state_allocate): Likewise.
2445 * remote.c (remote_target::open_1): Likewise.
2446 * tui/tui-win.c (tui_initialize_win): Likewise.
2447
2554f6f5
SM
24482020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 * async-event.c (initialize_async_signal_handlers): Pass name to
2451 add_file_handler
2452 * event-top.c (ui_register_input_event_handler): Likewise.
2453 * linux-nat.c (linux_nat_target::async): Likewise.
2454 * run-on-main-thread.c (_initialize_run_on_main_thread):
2455 Likewise
2456 * ser-base.c (reschedule): Likewise.
2457 (ser_base_async): Likewise.
2458 * tui/tui-io.c: Likewise.
2459 * top.h (struct ui) <num>: New field.
2460 * top.c (highest_ui_num): New variable.
2461 (ui::ui): Initialize num.
2462
a7aba266
SM
24632020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2464
2465 * observable.h <inferior_created>: Remove parameters. Update all
2466 listeners.
2467 * inferior.h (post_create_inferior): Remove target parameter.
2468 Update all callers.
2469
048fde1e 24702020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2471
2472 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2473 and DW_MACRO_undef_strx.
2474 (dwarf_decode_macros): Likewise
2475 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2476 which is the value of DW_AT_str_offsets_base.
2477 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2478 str_offsets_base.
2479
064280be
KR
24802020-10-01 Kamil Rytarowski <n54@gmx.com>
2481
2482 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2483
6ff33035
KR
24842020-10-01 Kamil Rytarowski <n54@gmx.com>
2485
2486 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2487 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2488
1eb6eb79
KR
24892020-10-01 Kamil Rytarowski <n54@gmx.com>
2490
2491 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2492
95eb9e54
TV
24932020-09-30 Tom de Vries <tdevries@suse.de>
2494
2495 PR symtab/26683
2496 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2497
cae21f8e
TT
24982020-09-30 Tom Tromey <tromey@adacore.com>
2499
2500 * dwarf2/read.c (handle_variant): Use constant_value.
2501
529908cb
TT
25022020-09-29 Tom Tromey <tom@tromey.com>
2503
2504 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2505 (read_file_scope, dwarf2_get_pc_bounds)
2506 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2507 (read_structure_type, handle_struct_member_die)
2508 (read_enumeration_type, read_array_type, read_set_type)
2509 (read_tag_pointer_type, read_tag_reference_type)
2510 (read_subroutine_type, read_base_type, read_subrange_type)
2511 (read_full_die_1, partial_die_info::read)
2512 (partial_die_info::read, by, new_symbol)
2513 (dwarf2_const_value_data, dwarf2_const_value_attr)
2514 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2515 (prepare_one_comp_unit): Update.
2516 * dwarf2/attribute.h (DW_UNSND): Remove.
2517
c45bc3f8
TT
25182020-09-29 Tom Tromey <tom@tromey.com>
2519
2520 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2521 (read_subroutine_type, partial_die_info::read)
2522 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2523 (dwarf2_add_member_fn): Update.
2524 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2525 * dwarf2/attribute.c (attribute::as_boolean): New method.
2526
23dca5c3
TT
25272020-09-29 Tom Tromey <tom@tromey.com>
2528
2529 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2530 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2531 method.
2532 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2533
52c14d11
TT
25342020-09-29 Tom Tromey <tom@tromey.com>
2535
2536 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2537 the attribute's form.
2538
e8e5c158
TT
25392020-09-29 Tom Tromey <tom@tromey.com>
2540
2541 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2542 (dwarf2_add_member_fn): Update.
2543 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2544 * dwarf2/attribute.c (attribute::defaulted): New method, from
2545 is_valid_DW_AT_defaulted.
2546
d4df075e
TT
25472020-09-29 Tom Tromey <tom@tromey.com>
2548
2549 * dwarf2/read.c (dw2_get_file_names_reader)
2550 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2551 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2552 (dwarf2_symbol_mark_computed): Use as_unsigned.
2553 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2554 method.
2555 <form_is_section_offset>: Update comment.
2556
bf23a268
TT
25572020-09-29 Tom Tromey <tom@tromey.com>
2558
2559 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2560 dwarf2_default_access_attribute. Look up attribute.
2561 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2562 Update.
2563
7a5f294d
TT
25642020-09-29 Tom Tromey <tom@tromey.com>
2565
2566 * dwarf2/read.c (skip_one_die): Update.
2567 (read_full_die_1): Change how reprocessing is done.
2568 (partial_die_info::read): Update.
2569 (read_attribute_value): Remove need_reprocess parameter.
2570 (read_attribute): Likewise.
2571 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2572 New method.
2573
36d378cf
TT
25742020-09-29 Tom Tromey <tom@tromey.com>
2575
2576 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2577 (dwarf2_const_value_attr, dump_die_shallow)
2578 (dwarf2_fetch_constant_bytes): Update.
2579 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2580 comment.
2581 <set_address>: New method.
2582 (DW_ADDR): Remove.
2583 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2584 (attribute::as_string, attribute::as_address): Add assert.
2585
fe56917a
TT
25862020-09-29 Tom Tromey <tom@tromey.com>
2587
2588 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2589 (read_attribute_reprocess, read_attribute_value): Update.
2590 (read_attribute): Clear requires_reprocessing.
2591 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2592 form_requires_reprocessing>: New methods.
2593 <string_init>: Clear requires_reprocessing.
2594 <set_unsigned_reprocess>: New method.
2595 <name>: Shrink by one bit.
2596 <requires_reprocessing>: New member.
2597 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2598 method.
2599
414ad644
TT
26002020-09-29 Tom Tromey <tom@tromey.com>
2601
2602 * dwarf2/read.c (read_attribute_value): Update.
2603 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2604 set_unsigned>: New methods.
2605 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2606
1bc397c5
TT
26072020-09-29 Tom Tromey <tom@tromey.com>
2608
2609 * dwarf2/read.c (get_alignment, read_array_order)
2610 (read_attribute_value, dwarf2_const_value_attr)
2611 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2612 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2613 New methods.
2614 (DW_SND): Remove.
2615
630ed6b9
TT
26162020-09-29 Tom Tromey <tom@tromey.com>
2617
2618 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2619 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2620 Update.
2621 * dwarf2/attribute.h (struct attribute) <as_signature,
2622 set_signature>: New methods.
2623 (DW_SIGNATURE): Remove.
2624
9d2246fc
TT
26252020-09-29 Tom Tromey <tom@tromey.com>
2626
2627 * dwarf2/read.c (read_call_site_scope)
2628 (handle_data_member_location, dwarf2_add_member_fn)
2629 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2630 (partial_die_info::read, read_attribute_value)
2631 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2632 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2633 (dwarf2_symbol_mark_computed): Update.
2634 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2635 methods.
2636 (DW_BLOCK): Remove.
2637 * dwarf2/attribute.c (attribute::form_is_block): Add
2638 DW_FORM_data16.
2639
c6481205
TT
26402020-09-29 Tom Tromey <tom@tromey.com>
2641
2642 * dwarf2/read.c (read_cutu_die_from_dwo)
2643 (read_attribute_reprocess, read_attribute_value, read_attribute)
2644 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2645 (dwarf2_fetch_constant_bytes): Update.
2646 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2647 <set_string_noncanonical, set_string_canonical>: New methods.
2648 <string_is_canonical>: Update comment.
2649 <canonical_string_p>: Add assert.
2650 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2651 * dwarf2/attribute.c (attribute::form_is_string): New method.
2652 (attribute::string): Use it.
2653
3b64bf15
TT
26542020-09-29 Tom Tromey <tom@tromey.com>
2655
2656 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2657 (dump_die_shallow): Use canonical_string_p.
2658 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2659 method.
2660
2c830f54
TT
26612020-09-29 Tom Tromey <tom@tromey.com>
2662
2663 * dwarf2/read.c (partial_die_info::read)
2664 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2665 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2666 attribute::as_string.
2667
6c412691
TT
26682020-09-29 Tom Tromey <tom@tromey.com>
2669
2670 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2671 DW_ADDR.
2672 (attribute::string): Don't use DW_STRING.
2673 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2674 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2675
95f982e5
TT
26762020-09-29 Tom Tromey <tom@tromey.com>
2677
2678 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2679 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2680 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2681 * dwarf2/attribute.h (struct attribute): Rename methods.
2682 * dwarf2/attribute.c (attribute::as_address): Rename from
2683 value_as_address.
2684 (attribute::as_string): Rename from value_as_string.
2685
f800b00e
TT
26862020-09-29 Tom Tromey <tom@tromey.com>
2687
2688 * dwarf2/read.c (partial_die_info::read) <case
2689 DW_AT_linkage_name>: Use value_as_string.
2690 (dwarf2_string_attr): Use value_as_string.
2691 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2692 method.
2693 * dwarf2/attribute.c (attribute::value_as_string): New method.
2694
de38d64a
PA
26952020-09-29 Pedro Alves <pedro@palves.net>
2696
2697 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2698 defined before using '#pragma GCC diagnostic' instead of checking
2699 __clang__.
2700
9aed480c
TT
27012020-09-28 Tom Tromey <tom@tromey.com>
2702
2703 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2704 (handle_signal_stop): Update.
2705 * procfs.c (procfs_target::insert_watchpoint): Update.
2706 * target.h (target_have_steppable_watchpoint): Now a function.
2707
8a3ecb79
TT
27082020-09-28 Tom Tromey <tom@tromey.com>
2709
2710 * infrun.c (set_schedlock_func): Update.
2711 * target.h (target_can_lock_scheduler): Now a function.
2712
55f6301a
TT
27132020-09-28 Tom Tromey <tom@tromey.com>
2714
2715 * inferior.h (class inferior) <has_execution>: Update.
2716 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2717 * valops.c (find_function_in_inferior)
2718 (value_allocate_space_in_inferior): Update.
2719 * top.c (kill_or_detach): Update.
2720 * target.c (target_preopen, set_target_permissions): Update.
2721 (target_has_execution_current): Remove.
2722 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2723 Update.
2724 * solib.c (update_solib_list, reload_shared_libraries): Update.
2725 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2726 * solib-dsbt.c (enable_break): Update.
2727 * score-tdep.c (score7_fetch_inst): Update.
2728 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2729 Update.
2730 * remote.c (remote_target::start_remote)
2731 (remote_target::remote_check_symbols, remote_target::open_1)
2732 (remote_target::remote_detach_1, remote_target::verify_memory)
2733 (remote_target::xfer_partial, remote_target::read_description)
2734 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2735 * record-full.c (record_full_open_1): Update.
2736 * record-btrace.c (record_btrace_target_open): Update.
2737 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2738 (value_nsstring): Update.
2739 * linux-thread-db.c (add_thread_db_info)
2740 (thread_db_find_new_threads_silently, check_thread_db_callback)
2741 (try_thread_db_load_1, record_thread): Update.
2742 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2743 Update.
2744 * linux-fork.c (checkpoint_command): Update.
2745 * infrun.c (set_non_stop, set_observer_mode)
2746 (check_multi_target_resumption, for_each_just_stopped_thread)
2747 (maybe_remove_breakpoints, normal_stop)
2748 (class infcall_suspend_state): Update.
2749 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2750 (info_program_command, attach_command): Update.
2751 * infcall.c (call_function_by_hand_dummy): Update.
2752 * inf-loop.c (inferior_event_handler): Update.
2753 * gcore.c (gcore_command, derive_heap_segment): Update.
2754 * exec.c (exec_file_command): Update.
2755 * eval.c (evaluate_subexp): Update.
2756 * compile/compile.c (compile_to_object): Update.
2757 * cli/cli-dump.c (restore_command): Update.
2758 * breakpoint.c (update_watchpoint)
2759 (update_inserted_breakpoint_locations)
2760 (insert_breakpoint_locations, get_bpstat_thread): Update.
2761 * target.h (target_has_execution): Remove macro.
2762 (target_has_execution_current): Don't declare.
2763 (target_has_execution): Rename from target_has_execution_1. Add
2764 argument default.
2765
05374cfd
TT
27662020-09-28 Tom Tromey <tom@tromey.com>
2767
2768 * mi/mi-main.c (exec_reverse_continue)
2769 (mi_cmd_list_target_features): Update.
2770 * infrun.c (set_exec_direction_func): Update.
2771 * target.c (default_execution_direction): Update.
2772 * reverse.c (exec_reverse_once): Update.
2773 * target.h (target_can_execute_reverse): Now a function.
2774
9dccd06e
TT
27752020-09-28 Tom Tromey <tom@tromey.com>
2776
2777 * tui/tui-regs.c (tui_get_register)
2778 (tui_data_window::show_registers): Update.
2779 * thread.c (scoped_restore_current_thread::restore)
2780 (scoped_restore_current_thread::scoped_restore_current_thread):
2781 Update.
2782 * regcache-dump.c (regcache_print): Update.
2783 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2784 Update.
2785 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2786 * mep-tdep.c (current_me_module, current_options): Update.
2787 * linux-thread-db.c (thread_db_load): Update.
2788 * infcmd.c (registers_info, info_vector_command)
2789 (info_float_command): Update.
2790 * ia64-tdep.c (ia64_frame_prev_register)
2791 (ia64_sigtramp_frame_prev_register): Update.
2792 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2793 * gcore.c (derive_stack_segment): Update.
2794 * frame.c (get_current_frame, has_stack_frames): Update.
2795 * findvar.c (language_defn::read_var_value): Update.
2796 * arm-tdep.c (arm_pc_is_thumb): Update.
2797 * target.c (target_has_registers): Rename from
2798 target_has_registers_1.
2799 * target.h (target_has_registers): Remove macro.
2800 (target_has_registers): Rename from target_has_registers_1.
2801
841de120
TT
28022020-09-28 Tom Tromey <tom@tromey.com>
2803
2804 * windows-tdep.c (tlb_make_value): Update.
2805 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2806 * thread.c (scoped_restore_current_thread::restore)
2807 (scoped_restore_current_thread::scoped_restore_current_thread)
2808 (thread_command): Update.
2809 * stack.c (backtrace_command_1, frame_apply_level_command)
2810 (frame_apply_all_command, frame_apply_command): Update.
2811 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2812 Update.
2813 * gcore.c (derive_stack_segment): Update.
2814 * frame.c (get_current_frame, has_stack_frames): Update.
2815 * auxv.c (info_auxv_command): Update.
2816 * ada-tasks.c (ada_build_task_list): Update.
2817 * target.c (target_has_stack): Rename from target_has_stack_1.
2818 * target.h (target_has_stack): Remove macro.
2819 (target_has_stack): Rename from target_has_stack_1.
2820
a739972c
TT
28212020-09-28 Tom Tromey <tom@tromey.com>
2822
2823 * target.c (target_has_memory): Rename from target_has_memory_1.
2824 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2825 * thread.c (scoped_restore_current_thread::restore)
2826 (scoped_restore_current_thread::scoped_restore_current_thread):
2827 Update.
2828 * frame.c (get_current_frame, has_stack_frames): Update.
2829 * target.h (target_has_memory): Remove macro.
2830 (target_has_memory): Rename from target_has_memory_1.
2831
5b8a4776
TT
28322020-09-28 Tom Tromey <tom@tromey.com>
2833
2834 * target.c (target_has_all_memory_1): Remove.
2835 * target.h (target_has_all_memory): Remove define.
2836 (target_has_all_memory_1): Don't declare.
2837
bd356ec6
SM
28382020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2839
2840 * ser-base.c: Adjust comments formatting.
2841
2c72d5e5
TT
28422020-09-27 Tom Tromey <tom@tromey.com>
2843
2844 PR tui/25342:
2845 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2846
35a98237
TT
28472020-09-27 Tom Tromey <tom@tromey.com>
2848
2849 PR tui/25342:
2850 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2851
9e820dec
TT
28522020-09-27 Tom Tromey <tom@tromey.com>
2853
2854 * unittests/tui-selftests.c: Update.
2855 * tui/tui-winsource.h (struct tui_source_window_base)
2856 <extra_margin, show_line_number, refresh_pad>: New methods.
2857 <m_max_length, m_pad>: New members.
2858 (tui_copy_source_line): Update.
2859 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2860 first_col, line_width, ndigits parameters. Add length.
2861 (tui_source_window_base::show_source_line): Write to pad. Line
2862 number now 0-based.
2863 (tui_source_window_base::refresh_pad): New method.
2864 (tui_source_window_base::show_source_content): Write to pad. Call
2865 refresh_pad.
2866 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2867 not refill.
2868 (tui_source_window_base::update_exec_info): Call
2869 show_line_number.
2870 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2871 method.
2872 <m_digits>: New member.
2873 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2874 and m_max_length.
2875 (tui_source_window::show_line_number): New method.
2876 * tui/tui-io.h (tui_puts): Fix comment.
2877 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2878 m_max_length.
2879
c15c15c8
TT
28802020-09-27 Tom Tromey <tom@tromey.com>
2881
2882 * tui/tui-winsource.c
2883 (tui_source_window_base::set_is_exec_point_at): Don't call
2884 show_source_line.
2885
149830c1
TT
28862020-09-27 Tom Tromey <tom@tromey.com>
2887
2888 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2889 method.
2890 <erase>: Update.
2891 <cursor_x, cursor_y>: Remove.
2892 <m_inner_window>: New member.
2893 (tui_py_window::rerender): Create inner window.
2894 (tui_py_window::output): Write to inner window.
2895
8f9929bb
GR
28962020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2897
2898 PR python/26586
2899 * cli/cli-script.c (execute_control_commands): don't set
2900 instream to nullptr here as this breaks the from_tty argument
2901 to gdb.execute in Python.
2902 (execute_user_command): set instream to nullptr here instead.
2903
956bdb59
SM
29042020-09-25 Simon Marchi <simon.marchi@efficios.com>
2905
2906 * infrun.h (infrun_debug_printf): Fix formatting.
2907 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2908
3b93626b
SJ
29092020-09-25 Saagar Jha <saagar@saagarjha.com>
2910
2911 * compile/compile-object-load.h (struct munmap_list): Add
2912 explicitly-defined move constructor.
2913
b551a89f
TT
29142020-09-24 Tom Tromey <tromey@adacore.com>
2915
2916 PR tui/26638:
2917 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2918 method.
2919 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2920 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2921 (tui_prev_win): Rewrite.
2922
99bb393f
HD
29232020-09-23 Hannes Domani <ssbssa@yahoo.de>
2924
2925 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2926 in WOW64 processes as SIGINT.
2927 * nat/windows-nat.h: Make wow64_process a shared variable.
2928 * windows-nat.c: Remove static wow64_process variable.
2929
20a5fcbd
TT
29302020-09-23 Tom Tromey <tom@tromey.com>
2931
2932 PR symtab/25470:
2933 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2934 offset and bit size.
2935 * printcmd.c (print_scalar_formatted): Handle zero-length
2936 integer.
2937 (print_scalar_formatted): Use bit_size_differs_p.
2938 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2939 constant.
2940 (union type_specific): <int_stuff>: New member.
2941 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2942 methods.
2943 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2944 TYPE_SPECIFIC_FIELD.
2945 (recursive_dump_type, copy_type_recursive): Update.
2946 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2947 DW_AT_data_bit_offset.
2948
bac51ab7
TT
29492020-09-23 Tom Tromey <tom@tromey.com>
2950
2951 * utils.h (class gdb_argv): Add move operators.
2952 <append>: New methods.
2953 * compile/compile.c (build_argc_argv): Remove.
2954 (compile_args_argc): Remove.
2955 (compile_args_argv): Change type.
2956 (set_compile_args): Simplify.
2957 (append_args): Remove.
2958 (filter_args): Remove argcp parameter.
2959 (get_args): Return gdb_argv. Simplify.
2960 (compile_to_object): Update.
2961
92677124
TT
29622020-09-23 Tom Tromey <tom@tromey.com>
2963
2964 * compile/compile-object-run.c (do_module_cleanup)
2965 <~do_module_cleanup> :Remove.
2966 (do_module_cleanup): Update.
2967 * compile/compile-object-load.h (struct munmap_list): Add move
2968 assignment operator.
2969 <source_file>: Now a std::string.
2970 <munmap_list>: Rename. No longer a pointer.
2971 * compile/compile-object-load.c (struct setup_sections_data): Add
2972 constructor.
2973 <setup_one_section>: Declare.
2974 <munmap_list>: Move earlier.
2975 <m_bfd>: New member.
2976 <m_last_size, m_last_section_first, m_last_prot,
2977 m_last_max_alignment>: Rename, add initializers where needed.
2978 (setup_sections_data::setup_one_section): Rename from
2979 setup_sections. Update.
2980 (compile_object_load): Update. Don't use bfd_map_over_sections.
2981
e616f60a
TT
29822020-09-23 Tom Tromey <tom@tromey.com>
2983
2984 * compile/compile-object-run.c (struct do_module_cleanup): Add
2985 parameters to constructor. Update destructor.
2986 <source_file, scope, scope_data, out_value_type, out_value_addr,
2987 munmap_list_head, objfile_name_string>: Remove.
2988 <module>: New member.
2989 (do_module_cleanup): Update.
2990 (compile_object_run): Update.
2991
e947a848
TT
29922020-09-23 Tom Tromey <tom@tromey.com>
2993
2994 * compile/compile.c (eval_compile_command): Update.
2995 * compile/compile-object-run.h (compile_object_run): Take a
2996 compile_module_up.
2997 * compile/compile-object-run.c (compile_object_run): Take a
2998 compile_module_up.
2999 * compile/compile-object-load.h (struct compile_module): Add
3000 constructor, destructor.
3001 (compile_module_up): New typedef.
3002 (compile_object_load): Return compile_object_up.
3003 * compile/compile-object-load.c (compile_object_load): Return
3004 compile_module_up.
3005
0dbf6ee6
TT
30062020-09-23 Tom Tromey <tom@tromey.com>
3007
3008 * compile/compile-object-run.c (struct do_module_cleanup): Add
3009 constructor, destructor.
3010 <objfile_name_string>: Don't use struct hack.
3011 (do_module_cleanup): Use delete.
3012 (compile_object_run): Use new.
3013
ebe824f5
TT
30142020-09-23 Tom Tromey <tom@tromey.com>
3015
3016 * compile/compile-cplus-types.c
3017 (compile_cplus_convert_struct_or_union): Use std::vector.
3018 (compile_cplus_convert_func): Likewise.
3019 * compile/compile-c-types.c (convert_func): Use std::vector.
3020
5dd918d9
TT
30212020-09-21 Tom Tromey <tromey@adacore.com>
3022
3023 * sparc-tdep.c (sparc32_skip_prologue): Use
3024 skip_prologue_using_sal.
3025
5486c517
TT
30262020-09-19 Tom Tromey <tom@tromey.com>
3027
3028 * symfile.c (add_section_size_callback): Remove.
3029 (load_one_section): Rename from load_section_callback. Change
3030 parameters.
3031 (generic_load): Use foreach.
3032
8a6bb1d1
TT
30332020-09-19 Tom Tromey <tom@tromey.com>
3034
3035 * exec.c (add_to_section_table): Remove.
3036 (build_section_table): Use foreach.
3037
08f93a1a
TT
30382020-09-19 Tom Tromey <tom@tromey.com>
3039
3040 * elfread.c (elf_locate_sections): Change parameters.
3041 (elf_symfile_read): Use foreach.
3042
03cd72b8
TT
30432020-09-19 Tom Tromey <tom@tromey.com>
3044
3045 * cli/cli-dump.c (struct callback_data): Remove.
3046 (restore_one_section): Rename from restore_section_callback.
3047 Change parameters.
3048 (restore_binary_file): Change parameters.
3049 (restore_command): Use foreach.
3050
f4f2b85f
TT
30512020-09-19 Tom Tromey <tom@tromey.com>
3052
3053 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3054 (gcore_copy_callback): Likewise.
3055 (gcore_memory_sections): Use foreach.
3056
b35c1d1c
TT
30572020-09-19 Tom Tromey <tom@tromey.com>
3058
3059 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3060 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3061 parameters.
3062 (generic_elf_osabi_sniffer): Use foreach.
3063 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3064 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3065
5bb6e9dd
TT
30662020-09-19 Tom Tromey <tom@tromey.com>
3067
3068 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3069 (dwarf2_get_dwz_file): Use foreach.
3070 (dwarf2_locate_dwo_sections): Change parameters.
3071 (open_and_init_dwo_file): Use foreach.
3072 (dwarf2_locate_common_dwp_sections): Change parameters.
3073 (open_and_init_dwp_file): Use foreach.
3074
ad7277da
TT
30752020-09-19 Tom Tromey <tom@tromey.com>
3076
3077 * symfile.h: (find_lowest_section): Don't declare.
3078 * symfile.c (find_lowest_section): Now static. Change
3079 parameters.
3080 (struct place_section_arg): Remove.
3081 (place_section): Change parameters.
3082 (addr_info_make_relative): Use foreach.
3083 (symfile_dummy_outputs): Remove.
3084 (default_symfile_relocate): Use foreach.
3085
cb814f2e
TT
30862020-09-19 Tom Tromey <tom@tromey.com>
3087
3088 * objfiles.c (add_to_objfile_sections): Rename from
3089 add_to_objfile_sections_full.
3090 (add_to_objfile_sections): Remove.
3091 (build_objfile_section_table): Use foreach.
3092
3cabfd26
TT
30932020-09-19 Tom Tromey <tom@tromey.com>
3094
3095 * stap-probe.c (get_stap_base_address_1): Remove.
3096 (get_stap_base_address): Use foreach.
3097
1ce51eb5
TT
30982020-09-19 Tom Tromey <tom@tromey.com>
3099
3100 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3101 parameters.
3102 (gdb_bfd_close_or_warn): Use foreach.
3103
a190fabb
TT
31042020-09-19 Tom Tromey <tom@tromey.com>
3105
3106 * corelow.c (add_to_thread_list): Change parameters.
3107 (core_target_open): Use foreach.
3108
cafb0d81
TT
31092020-09-19 Tom Tromey <tom@tromey.com>
3110
3111 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3112 existing function.
3113
c8d5abea
AB
31142020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3115
3116 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3117 for arrays.
3118
6d816919
AB
31192020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3120
3121 * eval.c: Remove 'f-lang.h' include.
3122 (value_f90_subarray): Moved to f-lang.c.
3123 (eval_call): Renamed to...
3124 (evaluate_subexp_do_call): ...this, is no longer static, header
3125 comment moved into header file.
3126 (evaluate_funcall): Update call to eval_call.
3127 (skip_undetermined_arglist): Moved to f-lang.c.
3128 (fortran_value_subarray): Likewise.
3129 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3130 moved to evaluate_subexp_f.
3131 (calc_f77_array_dims): Moved to f-lang.c
3132 * expprint.c (print_subexp_funcall): New function.
3133 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3134 moved to print_subexp_f, OP_FUNCALL uses new function.
3135 (dump_subexp_body_funcall): New function.
3136 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3137 moved to dump_subexp_f, OP_FUNCALL uses new function.
3138 * expression.h (evaluate_subexp_do_call): Declare.
3139 * f-lang.c (value_f90_subarray): Moved from eval.c.
3140 (skip_undetermined_arglist): Likewise.
3141 (calc_f77_array_dims): Likewise.
3142 (fortran_value_subarray): Likewise.
3143 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3144 (operator_length_f): Likewise.
3145 (print_subexp_f): Likewise.
3146 (dump_subexp_body_f): Likewise.
3147 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3148 declaration of this operation to here.
3149 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3150 support moved to operator_length_f.
3151 * parser-defs.h (dump_subexp_body_funcall): Declare.
3152 (print_subexp_funcall): Declare.
3153 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3154 fortran-operator.def.
3155
8c37706a
AB
31562020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3157
3158 * eval.c (fortran_value_subarray): New function, content is taken
3159 from...
3160 (evaluate_subexp_standard): ...here, in two places. Now arrays
3161 and strings both call the new function.
3162 (calc_f77_array_dims): Add header comment, handle strings.
3163
14f9473c
VC
31642020-09-18 Victor Collod <vcollod@nvidia.com>
3165
3166 PR gdb/26635
3167 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3168 (i386_analyze_prologue): Call i386_skip_endbr.
3169
b60cea74
TT
31702020-09-18 Tom Tromey <tromey@adacore.com>
3171
3172 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3173 (windows_nat_target::wait): Update.
3174 * target/wait.h (enum target_wait_flag): New. Use
3175 DEF_ENUM_FLAGS_TYPE.
3176 * target/target.h (target_wait): Change type of options.
3177 * target.h (target_options_to_string, default_target_wait):
3178 Update.
3179 (struct target_ops) <wait>: Change type of options.
3180 * target.c (target_wait, default_target_wait, do_option): Change
3181 type of "options".
3182 (target_options_to_string): Likewise.
3183 * target-delegates.c: Rebuild.
3184 * target-debug.h (target_debug_print_target_wait_flags): Rename
3185 from target_debug_print_options.
3186 * sol-thread.c (class sol_thread_target) <wait>: Update.
3187 (sol_thread_target::wait): Update.
3188 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3189 (rs6000_nat_target::wait): Update.
3190 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3191 Update.
3192 (remote_target::wait_ns, remote_target::wait_as): Change type of
3193 "options".
3194 (remote_target::wait): Update.
3195 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3196 (gdbsim_target::wait): Update.
3197 * record-full.c (class record_full_base_target) <wait>: Update.
3198 (record_full_wait_1): Change type of "options".
3199 (record_full_base_target::wait): Update.
3200 * record-btrace.c (class record_btrace_target) <wait>: Update.
3201 (record_btrace_target::wait): Update.
3202 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3203 Update.
3204 (ravenscar_thread_target::wait): Update.
3205 * procfs.c (class procfs_target) <wait>: Update.
3206 (procfs_target::wait): Update.
3207 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3208 * obsd-nat.c (obsd_nat_target::wait): Update.
3209 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3210 (nto_procfs_target::wait): Update.
3211 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3212 * nbsd-nat.c (nbsd_wait): Change type of "options".
3213 (nbsd_nat_target::wait): Update.
3214 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3215 (thread_db_target::wait): Update.
3216 * linux-nat.h (class linux_nat_target) <wait>: Update.
3217 * linux-nat.c (linux_nat_target::wait): Update.
3218 (linux_nat_wait_1): Update.
3219 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3220 "options".
3221 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3222 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3223 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3224 (go32_nat_target::wait): Update.
3225 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3226 * gnu-nat.c (gnu_nat_target::wait): Update.
3227 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3228 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3229 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3230 * darwin-nat.c (darwin_nat_target::wait): Update.
3231 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3232 (bsd_uthread_target::wait): Update.
3233 * aix-thread.c (class aix_thread_target) <wait>: Update.
3234 (aix_thread_target::wait): Update.
3235
0295dde6
AB
32362020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3237
3238 * compile/compile-object-run.c (create_copied_type_recursive): New
3239 function.
3240 (compile_object_run): Use new function.
3241
d3483b43
JT
32422020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3243
3244 * NEWS: Mention x86_64 Cygwin core file support.
3245
e7d612ad
JT
32462020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3247
3248 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3249 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3250
aff9d387
JT
32512020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3252
62a5151b
JT
3253 * windows-tdep.h: Add prototypes.
3254 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3255 (i386_windows_core_pid_to_str): Move and rename ...
3256 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3257 (windows_core_pid_to_str): ... and here.
3258 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3259
32602020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3261 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3262 (amd64_windows_init_abi_common): ... and register.
3263
7d155da3
JT
32642020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3265
3266 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3267 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3268
e8ef12b9
PA
32692020-09-18 Pedro Alves <pedro@palves.net>
3270
3271 PR gdb/26631
3272 * thread.c (thread_find_command): Switch inferior before calling
3273 target methods.
3274
c1e1314d
TT
32752020-09-17 Tom Tromey <tromey@adacore.com>
3276
3277 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3278 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3279 (tdesc_arch_data_up): New typedef.
3280 (tdesc_use_registers, tdesc_data_alloc): Update.
3281 (tdesc_data_cleanup): Don't declare.
3282 * target-descriptions.c (tdesc_data_alloc): Return a
3283 tdesc_arch_data_up.
3284 (tdesc_arch_data_deleter::operator()): Rename from
3285 tdesc_data_cleanup. Change argument type.
3286 (tdesc_use_registers): Change early_data to an rvalue reference.
3287 (tdesc_use_registers): Don't use delete.
3288 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3289 * s390-tdep.c (s390_gdbarch_init): Update.
3290 * rx-tdep.c (rx_gdbarch_init): Update.
3291 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3292 * riscv-tdep.c (riscv_gdbarch_init): Update.
3293 * or1k-tdep.c (or1k_gdbarch_init): Update.
3294 * nios2-tdep.c (nios2_gdbarch_init): Update.
3295 * nds32-tdep.c (nds32_gdbarch_init): Update.
3296 * mips-tdep.c (mips_gdbarch_init): Update.
3297 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3298 * m68k-tdep.c (m68k_gdbarch_init): Update.
3299 * i386-tdep.c (i386_gdbarch_init): Update.
3300 * arm-tdep.c (arm_gdbarch_init): Update.
3301 * arc-tdep.c (arc_tdesc_init): Update.
3302 (arc_gdbarch_init): Update.
3303 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3304
0363df3d
HD
33052020-09-17 Hannes Domani <ssbssa@yahoo.de>
3306
3307 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3308 for WOW64 processes.
3309
280a9412
TT
33102020-09-17 Tom Tromey <tom@tromey.com>
3311
3312 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3313
6108fd18
TT
33142020-09-17 Tom Tromey <tom@tromey.com>
3315
3316 * value.c (preserve_values): Update.
3317 * python/py-type.c (save_objfile_types): Update.
3318 * guile/scm-type.c (save_objfile_types): Update.
3319 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3320 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3321 * compile/compile-object-run.c (compile_object_run): Update.
3322
fa9b1164
TT
33232020-09-17 Tom Tromey <tom@tromey.com>
3324
3325 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3326 Remove.
3327 <m_table>: Now htab_up.
3328 * typeprint.c (typedef_hash_table::recursively_update)
3329 (typedef_hash_table::add_template_parameters)
3330 (typedef_hash_table::typedef_hash_table): Update.
3331 (typedef_hash_table::~typedef_hash_table): Remove.
3332 (typedef_hash_table::typedef_hash_table)
3333 (typedef_hash_table::find_global_typedef)
3334 (typedef_hash_table::find_typedef): Update.
3335
eb53f105
TT
33362020-09-17 Tom Tromey <tom@tromey.com>
3337
3338 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3339
7a8a5d47
TT
33402020-09-17 Tom Tromey <tom@tromey.com>
3341
3342 * linespec.c (class decode_compound_collector)
3343 <~decode_compound_collector>: Remove.
3344 <m_unique_syms>: Now htab_up.
3345 (decode_compound_collector::operator ()): Update.
3346 (class symtab_collector) <~symtab_collector>: Remove.
3347 <m_symtab_table>: Now htab_up.
3348 (symtab_collector::operator ()): Update.
3349
99032cfc
TT
33502020-09-17 Tom Tromey <tom@tromey.com>
3351
3352 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3353 (filename_seen_cache::clear): Update.
3354 (~filename_seen_cache): Remove.
3355 (filename_seen_cache::seen): Update.
3356 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3357 htab_up.
3358 <~filename_seen_cache>: Remove.
3359 <traverse>: Update.
3360
32580f6d
TT
33612020-09-17 Tom Tromey <tom@tromey.com>
3362
3363 * completer.c (completion_tracker::discard_completions)
3364 (completion_tracker::~completion_tracker)
3365 (completion_tracker::maybe_add_completion)
3366 (completion_tracker::remove_completion)
3367 (completion_tracker::recompute_lowest_common_denominator)
3368 (completion_tracker::build_completion_result): Update.
3369 * completer.h (class completion_tracker) <have_completions>:
3370 Update.
3371 <m_entries_hash>: Now htab_up.
3372
c1fb9836
TT
33732020-09-17 Tom Tromey <tom@tromey.com>
3374
3375 * breakpoint.c (ambiguous_names_p): Use htab_up.
3376
88f07206
TT
33772020-09-17 Tom Tromey <tom@tromey.com>
3378
3379 * auto-load.c (struct auto_load_pspace_info)
3380 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3381 <loaded_script_files, loaded_script_texts>: Change type to
3382 htab_up.
3383 (~auto_load_pspace_info) Remove.
3384 (init_loaded_scripts_info, maybe_add_script_file)
3385 (maybe_add_script_text, auto_load_info_scripts): Update.
3386
9519b2ee
TT
33872020-09-17 Tom Tromey <tromey@adacore.com>
3388
3389 * c-exp.y (name_obstack): Now static.
3390
d2cd4113
CC
33912020-09-17 Chungyi Chi <demonic@csie.io>
3392
3393 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3394
b650a282
SM
33952020-09-16 Simon Marchi <simon.marchi@efficios.com>
3396
3397 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3398 (add_solib_catchpoint): Likewise.
3399 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3400 to bool.
3401 (add_solib_catchpoint): Change int parameter/variable to bool.
3402 (catch_load_or_unload): Likewise.
3403 (init_catchpoint): Likewise.
3404 (create_fork_vfork_event_catchpoint): Likewise.
3405 (catch_fork_command_1): Likewise.
3406 (catch_exec_command_1): Likewise.
3407
4d0bcfcf
SM
34082020-09-16 Simon Marchi <simon.marchi@efficios.com>
3409
3410 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3411 Change instance_flags to m_instance_flags.
3412
fe830662
TT
34132020-09-16 Tom Tromey <tromey@adacore.com>
3414
3415 PR gdb/26598:
3416 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3417
fe5ddfc3
JB
34182020-09-16 John Baldwin <jhb@FreeBSD.org>
3419
3420 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3421 PL_FLAG_EXEC.
3422 (fbsd_nat_target::insert_exec_catchpoint)
3423 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3424 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3425 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3426
e911c666
JB
34272020-09-16 John Baldwin <jhb@FreeBSD.org>
3428
3429 * configure.ac: Remove check for kinfo_getvmmap().
3430 * configure, config.in: Regenerate.
3431 * fbsd-nat.c (fbsd_read_mapping): Remove
3432 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3433 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3434 kinfo_get_vmmap() are always present.
3435
1f17d372
JB
34362020-09-16 John Baldwin <jhb@FreeBSD.org>
3437
3438 * fbsd-nat.c: Always include support for
3439 TARGET_OBJECT_SIGNAL_INFO.
3440
bcb1da7f
JB
34412020-09-16 John Baldwin <jhb@FreeBSD.org>
3442
3443 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3444 sysctl and remove procfs fallback.
3445
5515f729
JB
34462020-09-16 John Baldwin <jhb@FreeBSD.org>
3447
3448 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3449 * fbsd-nat.h: Likewise.
3450
da1df1db
TBA
34512020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3452
3453 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3454 argument.
3455
0e25e767
AB
34562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3457
3458 * ada-lang.c (ada_language_data): Delete.
3459 (ada_language): Remove references to ada_language_data.
3460 * c-lang.c (c_language_data): Delete.
3461 (c_language): Remove references to c_language_data.
3462 (cplus_language_data): Delete.
3463 (cplus_language): Remove references to cplus_language_data.
3464 (asm_language_data): Delete.
3465 (asm_language): Remove references to asm_language_data.
3466 (minimal_language_data): Delete.
3467 (minimal_language): Remove references to minimal_language_data.
3468 * d-lang.c (d_language_data): Delete.
3469 (d_language): Remove references to d_language_data.
3470 * f-lang.c (f_language_data): Delete.
3471 (f_language): Remove references to f_language_data.
3472 * go-lang.c (go_language_data): Delete.
3473 (go_language): Remove references to go_language_data.
3474 * language.c (unknown_language_data): Delete.
3475 (unknown_language): Remove references to unknown_language_data.
3476 (auto_language_data): Delete.
3477 (auto_language): Remove references to auto_language_data.
3478 * language.h (language_data): Delete struct.
3479 (language_defn): No longer inherit from language_data.
3480 * m2-lang.c (m2_language_data): Delete.
3481 (m2_language): Remove references to m2_language_data.
3482 * objc-lang.c (objc_language_data): Delete.
3483 (objc_language): Remove references to objc_language_data.
3484 * opencl-lang.c (opencl_language_data): Delete.
3485 (opencl_language): Remove references to opencl_language_data.
3486 * p-lang.c (pascal_language_data): Delete.
3487 (pascal_language): Remove references to pascal_language_data.
3488 * rust-lang.c (rust_language_data): Delete.
3489 (rust_language): Remove references to rust_language_data.
3490
b7c6e27d
AB
34912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3492
3493 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3494 initializer.
3495 (ada_language::opcode_print_table): New member function.
3496 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3497 (c_language::opcode_print_table): New member function.
3498 (cplus_language_data): Remove la_op_print_tab initializer.
3499 (cplus_language::opcode_print_table): New member function.
3500 (asm_language_data): Remove la_op_print_tab initializer.
3501 (asm_language::opcode_print_table): New member function.
3502 (minimal_language_data): Remove la_op_print_tab initializer.
3503 (minimal_language::opcode_print_table): New member function.
3504 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3505 (d_language::opcode_print_table): New member function.
3506 * expprint.c (print_subexp_standard): Update call to
3507 opcode_print_table.
3508 (op_string): Likewise.
3509 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3510 (f_language::opcode_print_table): New member function.
3511 * go-lang.c (go_language_data): Remove la_op_print_tab
3512 initializer.
3513 (go_language::opcode_print_table): New member function.
3514 * language.c (unknown_language_data): Remove la_op_print_tab
3515 initializer.
3516 (unknown_language::opcode_print_table): New member function.
3517 (auto_language_data): Remove la_op_print_tab initializer.
3518 (auto_language::opcode_print_table): New member function.
3519 * language.h (language_data): Remove la_op_print_tab field.
3520 (language_defn::opcode_print_table): Declare new member function.
3521 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3522 initializer.
3523 (m2_language::opcode_print_table): New member function.
3524 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3525 initializer.
3526 (objc_language::opcode_print_table): New member function.
3527 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3528 initializer.
3529 (opencl_language::opcode_print_table): New member function.
3530 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3531 initializer.
3532 (pascal_language::opcode_print_table): New member function.
3533 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3534 initializer.
3535 (rust_language::opcode_print_table): New member function.
3536
5aba6ebe
AB
35372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3538
3539 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3540 (ada_language::expression_ops): New member function.
3541 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3542 (c_language::expression_ops): New member function.
3543 (cplus_language_data): Remove la_exp_desc initializer.
3544 (cplus_language::expression_ops): New member function.
3545 (asm_language_data): Remove la_exp_desc initializer.
3546 (asm_language::expression_ops): New member function.
3547 (minimal_language_data): Remove la_exp_desc initializer.
3548 (minimal_language::expression_ops): New member function.
3549 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3550 (d_language::expression_ops): New member function.
3551 * eval.c (evaluate_subexp): Update call to expression_ops.
3552 * expprint.c (print_subexp): Likewise.
3553 (op_name): Likewise.
3554 (dump_subexp_body): Likewise.
3555 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3556 (f_language::expression_ops): New member function.
3557 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3558 (go_language::expression_ops): New member function.
3559 * language.c (language_defn::expression_ops): New function.
3560 (unknown_language_data): Remove la_exp_desc initializer.
3561 (auto_language_data): Likewise.
3562 * language.h (language_data): Remove la_exp_desc field.
3563 (language_defn::expression_ops): Declare new member function.
3564 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3565 (m2_language::expression_ops): New member function.
3566 * objc-lang.c (objc_language_data): Remove la_exp_desc
3567 initializer.
3568 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3569 initializer.
3570 (opencl_language::expression_ops): New member function.
3571 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3572 * parse.c (operator_length): Update call to expression_ops.
3573 (exp_iterate): Likewise.
3574 * rust-lang.c (rust_language_data): Remove la_exp_desc
3575 initializer.
3576 (ruse_language::expression_ops): New member function.
3577
b63a3f3f
AB
35782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3579
3580 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3581 initializer.
3582 (ada_language::varobj_ops): New member function.
3583 * c-lang.c (c_language_data): Remove la_varobj_ops
3584 initializer.
3585 (cplus_language_data): Likewise.
3586 (cplus_language::varobj_ops): New member function.
3587 (asm_language_data): Remove la_varobj_ops initializer.
3588 (minimal_language_data): Likewise.
3589 * d-lang.c (d_language_data): Likewise.
3590 * f-lang.c (f_language_data): Likewise.
3591 * go-lang.c (go_language_data): Likewise.
3592 * language.c (language_defn::varobj_ops): New function.
3593 (unknown_language_data): Remove la_varobj_ops
3594 initializer.
3595 (auto_language_data): Likewise.
3596 * language.h (language_data): Remove la_varobj_ops field.
3597 (language_defn::varobj_ops): Declare new member function.
3598 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3599 * objc-lang.c (objc_language_data): Likewise.
3600 * opencl-lang.c (opencl_language_data): Likewise.
3601 * p-lang.c (pascal_language_data): Likewise.
3602 * rust-lang.c (rust_language_data): Likewise.
3603 * varobj.c (varobj_create): Update call to varobj_ops.
3604 * varobj.h (default_varobj_ops): Delete define.
3605
1ac14a04
AB
36062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3607
3608 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3609 initializer.
3610 * c-lang.c (c_language_data): Likewise.
3611 (c_language::macro_expansion): New member function.
3612 (cplus_language_data): Likewise.
3613 (cplus_language::macro_expansion): New member function.
3614 (asm_language_data): Likewise.
3615 (asm_language::macro_expansion): New member function.
3616 (minimal_language_data): Likewise.
3617 (minimal_language::macro_expansion): New member function.
3618 * d-lang.c (d_language_data): Remove la_macro_expansion
3619 initializer.
3620 * f-lang.c (f_language_data): Likewise.
3621 * go-lang.c (go_language_data): Likewise.
3622 * language.c (unknown_language_data): Likewise.
3623 (auto_language_data): Likewise.
3624 * language.h (language_data): Remove la_macro_expansion field.
3625 (language_defn::macro_expansion): New member function.
3626 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3627 initializer.
3628 * objc-lang.c (objc_language_data): Likewise.
3629 (objc_language::macro_expansion): New member function.
3630 * opencl-lang.c (opencl_language_data): Likewise.
3631 (opencl_language::macro_expansion): New member function.
3632 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3633 initializer.
3634 * rust-lang.c (rust_language_data): Likewise.
3635 * symtab.c (default_collect_symbol_completion_matches_break_on):
3636 Update call to macro_expansion.
3637
3a3440fb
AB
36382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3639
3640 * ada-lang.c (ada_language_data): Remove la_array_ordering
3641 initializer.
3642 * c-lang.c (c_language_data): Likewise.
3643 (cplus_language_data): Likewise.
3644 (asm_language_data): Likewise.
3645 (minimal_language_data): Likewise.
3646 * d-lang.c (d_language_data): Likewise.
3647 * dwarf2/read.c (read_array_order): Update for call to
3648 array_ordering.
3649 * f-lang.c (f_language_data): Remove la_array_ordering
3650 initializer.
3651 (f_language::array_ordering): New member function.
3652 * go-lang.c (go_language_data): Remove la_array_ordering
3653 initializer.
3654 * language.c (unknown_language_data): Likewise.
3655 (auto_language_data): Likewise.
3656 * language.h (language_data): Delete la_array_ordering field.
3657 (language_defn::array_ordering): New member function.
3658 * m2-lang.c (m2_language_data): Remove la_array_ordering
3659 initializer.
3660 * objc-lang.c (objc_language_data): Likewise.
3661 * opencl-lang.c (opencl_language_data): Likewise.
3662 * p-lang.c (pascal_language_data): Likewise.
3663 * rust-lang.c (rust_language_data): Likewise.
3664
0d201fa4
AB
36652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3666
3667 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3668 initializer.
3669 * c-lang.c (c_language_data): Likewise.
3670 (cplus_language_data): Likewise.
3671 (asm_language_data): Likewise.
3672 (minimal_language_data): Likewise.
3673 * d-lang.c (d_language_data): Likewise.
3674 * f-lang.c (f_language_data): Likewise.
3675 (f_language::case_sensitivity): New member function.
3676 * go-lang.c (go_language_data): Remove la_case_sensitivity
3677 initializer.
3678 * language.c (enum case_mode): Moved here from language.h.
3679 (case_mode): Make static.
3680 (show_case_command): Update for case_sensitivity being a method.
3681 (set_case_command): Likewise.
3682 (set_range_case): Likewise.
3683 (unknown_language_data): Remove la_case_sensitivity initializer.
3684 (auto_language_data): Likewise.
3685 * language.h (case_mode): Delete, move enum declaration to
3686 language.c.
3687 (language_data): Delete la_case_sensitivity field.
3688 (language_defn::case_sensitivity): New member function.
3689 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3690 initializer.
3691 * objc-lang.c (objc_language_data): Likewise.
3692 * opencl-lang.c (opencl_language_data): Likewise.
3693 * p-lang.c (pascal_language_data): Likewise.
3694 * rust-lang.c (rust_language_data): Likewise.
3695
efdf6a73
AB
36962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3697
3698 * ada-lang.c (ada_language_data): Remove la_range_check
3699 initializer.
3700 * c-lang.c (c_language_data): Likewise.
3701 (cplus_language_data): Likewise.
3702 (asm_language_data): Likewise.
3703 (minimal_language_data): Likewise.
3704 * d-lang.c (d_language_data): Likewise.
3705 * f-lang.c (f_language_data): Likewise.
3706 (f_language::range_checking_on_by_default): New member function.
3707 * go-lang.c (go_language_data): Remove la_range_check initializer.
3708 * language.c (enum range_mode): Moved here from language.h.
3709 (range_mode): Made static.
3710 (show_range_command): Update to use
3711 range_checking_on_by_default.
3712 (set_range_command): Likewise.
3713 (set_range_case): Likewise.
3714 (unknown_language_data): Remove la_range_check initializer.
3715 (auto_language_data): Likewise.
3716 * language.h (range_mode): Delete. Enum definition moved to
3717 language.c.
3718 (language_data): Remove la_range_check field.
3719 (language_defn::range_checking_on_by_default): New member
3720 function.
3721 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3722 (m2_language::range_checking_on_by_default): New member function.
3723 * objc-lang.c (objc_language_data): Remove la_range_check
3724 initializer.
3725 * opencl-lang.c (opencl_language_data): Likewise.
3726 * p-lang.c (pascal_language_data): Likewise.
3727 (pascal_language::range_checking_on_by_default): New member
3728 function.
3729 * rust-lang.c (rust_language_data): Remove la_range_check
3730 initializer.
3731 (rust_language::range_checking_on_by_default): New member
3732 function.
3733
bf92aec5
AB
37342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3735
3736 * dwarf2/read.c (dwarf2_physname): Remove special case for
3737 language_go.
3738 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3739 member function.
3740
d3355e4d
AB
37412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3742
3743 * ada-lang.c (ada_language_data): Remove
3744 la_store_sym_names_in_linkage_form_p initializer.
3745 (ada_language::store_sym_names_in_linkage_form_p): New member
3746 function.
3747 * c-lang.c (c_language_data): Remove
3748 la_store_sym_names_in_linkage_form_p initializer.
3749 (c_language::store_sym_names_in_linkage_form_p): New member
3750 function.
3751 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3752 initializer.
3753 (asm_language_data): Likewise.
3754 (asm_language::store_sym_names_in_linkage_form_p): New member
3755 function.
3756 (minimal_language_data): Remove
3757 la_store_sym_names_in_linkage_form_p initializer.
3758 (minimal_language::store_sym_names_in_linkage_form_p): New member
3759 function.
3760 * d-lang.c (d_language_data): Remove
3761 la_store_sym_names_in_linkage_form_p initializer.
3762 * dwarf2/read.c (dwarf2_physname): Update call to
3763 store_sym_names_in_linkage_form_p.
3764 * f-lang.c (f_language_data): Remove
3765 la_store_sym_names_in_linkage_form_p initializer.
3766 * go-lang.c (go_language_data): Remove
3767 la_store_sym_names_in_linkage_form_p initializer.
3768 * language.c (unknown_language_data): Remove
3769 la_store_sym_names_in_linkage_form_p initializer.
3770 (unknown_language::store_sym_names_in_linkage_form_p): New member
3771 function.
3772 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3773 initializer.
3774 (auto_language::store_sym_names_in_linkage_form_p): New member
3775 function.
3776 * language.h (language_data): Remove
3777 la_store_sym_names_in_linkage_form_p member variable.
3778 (language_defn::store_sym_names_in_linkage_form_p): New member
3779 function.
3780 * m2-lang.c (m2_language_data): Remove
3781 la_store_sym_names_in_linkage_form_p initializer.
3782 * objc-lang.c (objc_language_data): Likewise.
3783 * opencl-lang.c (opencl_language_data): Likewise.
3784 * p-lang.c (pascal_language_data): Likewise.
3785 * rust-lang.c (rust_language_data): Likewise.
3786
22c12a6c
AB
37872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3788
3789 * ada-lang.c (ada_language_data): Remove string_lower_bound
3790 initializer.
3791 * c-lang.c (c_language_data): Likewise.
3792 (cplus_language_data): Likewise.
3793 (asm_language_data): Likewise.
3794 (minimal_language_data): Likewise.
3795 * d-lang.c (d_language_data): Likewise.
3796 * f-lang.c (f_language_data): Likewise.
3797 * go-lang.c (go_language_data): Likewise.
3798 * language.c (unknown_language_data): Likewise.
3799 (auto_language_data): Likewise.
3800 * language.h (language_data): Remove string_lower_bound field.
3801 (language_defn::string_lower_bound): New member function.
3802 * m2-lang.c (m2_language_data): Remove string_lower_bound
3803 initializer.
3804 (m2_language::string_lower_bound): New member function.
3805 * objc-lang.c (objc_language_data): Remove string_lower_bound
3806 initializer.
3807 * opencl-lang.c (opencl_language_data): Likewise.
3808 * p-lang.c (pascal_language_data): Likewise.
3809 * rust-lang.c (rust_language_data): Likewise.
3810 * valops.c (value_cstring): Update call to string_lower_bound.
3811 (value_string): Likewise.
3812 * value.c (allocate_repeated_value): Likewise.
3813
1c236ddd
AB
38142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3815
3816 * valops.c (value_repeat): Fix incorrect argument name in comment.
3817
67bd3fd5
AB
38182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * ada-lang.c (ada_language_data): Remove c_style_arrays
3821 initializer.
3822 (ada_language::c_style_arrays_p): New member fuction.
3823 * c-lang.c (c_language_data): Remove c_style_arrays
3824 initializer.
3825 (cplus_language_data): Likewise.
3826 (asm_language_data): Likewise.
3827 (minimal_language_data): Likewise.
3828 * d-lang.c (d_language_data): Likewise.
3829 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3830 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3831 (f_language::c_style_arrays_p): New member function.
3832 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3833 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3834 * language.c (unknown_language_data): Remove c_style_arrays
3835 initializer.
3836 (auto_language_data): Likewise.
3837 * language.h (language_data): Remove c_style_arrays field.
3838 (language_defn::c_style_arrays_p): New member function.
3839 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3840 (m2_language::c_style_arrays_p): New member function.
3841 * objc-lang.c (objc_language_data): Remove c_style_arrays
3842 initializer.
3843 * opencl-lang.c (opencl_language_data): Likewise.
3844 * p-lang.c (pascal_language_data): Likewise.
3845 * rust-lang.c (rust_language_data): Likewise.
3846 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3847 and update local variable to a bool.
3848 * valops.c (value_cast): Update call to c_style_arrays_p.
3849 (value_array): Likewise.
3850 * value.c (coerce_array): Likewise.
3851
85967615
AB
38522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3853
3854 * ada-lang.c (ada_language_data): Remove la_language initializer.
3855 * c-lang.c (c_language_data): Likewise.
3856 (cplus_language_data): Likewise.
3857 (asm_language_data): Likewise.
3858 (minimal_language_data): Likewise.
3859 * d-lang.c (d_language_data): Likewise.
3860 * f-lang.c (f_language_data): Likewise.
3861 * go-lang.c (go_language_data): Likewise.
3862 * language.c (unknown_language_data): Likewise.
3863 (auto_language_data): Likewise.
3864 * language.h (language_data): Remove la_language field.
3865 (language_defn::language_defn): Initialise la_language field.
3866 (language_defn::la_language): New member variable.
3867 * m2-lang.c (m2_language_data): Remove la_language field.
3868 * objc-lang.c (objc_language_data): Likewise.
3869 * opencl-lang.c (opencl_language_data): Likewise.
3870 * p-lang.c (pascal_language_data): Likewise.
3871 * rust-lang.c (rust_language_data): Likewise.
3872
e171d6f1
AB
38732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3874
3875 * ada-lang.c (ada_extensions): Delete, moved into
3876 ada_language::filename_extensions.
3877 (ada_language_data): Remove la_filename_extensions initializer.
3878 (ada_language::filename_extensions): New member function.
3879 * c-lang.c (c_extensions): Delete, moved into
3880 c_language::filename_extensions.
3881 (c_language_data): Remove la_filename_extensions initializer.
3882 (c_language::filename_extensions): New member function.
3883 (cplus_extensions): Delete, moved into
3884 cplus_language::filename_extensions.
3885 (cplus_language_data): Remove la_filename_extensions initializer.
3886 (cplus_language::filename_extensions): New member function.
3887 (asm_extensions): Delete, moved into
3888 asm_language::filename_extensions.
3889 (asm_language_data): Remove la_filename_extensions initializer.
3890 (asm_language::filename_extensions): New member function.
3891 (minimal_language_data): Remove la_filename_extensions
3892 initializer.
3893 * d-lang.c (d_extensions): Delete, moved into
3894 d_language::filename_extensions.
3895 (d_language_data): Remove la_filename_extensions initializer.
3896 (d_language::filename_extensions): New member function.
3897 * f-lang.c (f_extensions): Delete, moved into
3898 f_language::filename_extensions.
3899 (f_language_data): Remove la_filename_extensions initializer.
3900 (f_language::filename_extensions): New member function.
3901 * go-lang.c (go_language_data): Remove la_filename_extensions
3902 initializer.
3903 * language.c (add_set_language_command): Update now that
3904 filename_extensions returns a vector.
3905 (unknown_language_data): Remove la_filename_extensions
3906 initializer.
3907 (auto_language_data): Likewise.
3908 * language.h (language_data): Remove la_filename_extensions field.
3909 (language_defn::filename_extensions): New member function.
3910 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3911 initializer.
3912 * objc-lang.c (objc_extensions): Delete, moved into
3913 objc_language::filename_extensions.
3914 (objc_language_data): Remove la_filename_extensions initializer.
3915 (objc_language::filename_extensions): New member function.
3916 * opencl-lang.c (opencl_language_data): Remove
3917 la_filename_extensions initializer.
3918 * p-lang.c (pascal_extensions): Delete, moved into
3919 pascal_language::filename_extensions.
3920 (pascal_language_data): Remove la_filename_extensions initializer.
3921 (pascal_language::filename_extensions): New member function.
3922 * rust-lang.c (rust_extensions): Delete, moved into
3923 rust_language::filename_extensions.
3924 (rust_language_data): Remove la_filename_extensions initializer.
3925 (rust_language::filename_extensions): New member function.
3926 * symfile.c (add_filename_language): Add new assert.
3927
6f7664a9
AB
39282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * ada-lang.c (ada_language_data): Remove la_name and
3931 la_natural_name initializers.
3932 (ada_language::name): New member function.
3933 (ada_language::natural_name): New member function.
3934 * c-lang.c (c_language_data): Remove la_name and
3935 la_natural_name initializers.
3936 (c_language::name): New member function.
3937 (c_language::natural_name): New member function.
3938 (cplus_language_data): Remove la_name and
3939 la_natural_name initializers.
3940 (cplus_language::name): New member function.
3941 (cplus_language::natural_name): New member function.
3942 (asm_language_data): Remove la_name and
3943 la_natural_name initializers.
3944 (asm_language::name): New member function.
3945 (asm_language::natural_name): New member function.
3946 (minimal_language_data): Remove la_name and
3947 la_natural_name initializers.
3948 (minimal_language::name): New member function.
3949 (minimal_language::natural_name): New member function.
3950 * compile/compile.c (compile_to_object): Update call to
3951 lanugage_defn::name.
3952 * d-lang.c (d_language_data): Remove la_name and
3953 la_natural_name initializers.
3954 (d_language::name): New member function.
3955 (d_language::natural_name): New member function.
3956 * expprint.c (print_subexp_standard): Update call to
3957 language_defn::name.
3958 (dump_raw_expression): Likewise
3959 (dump_prefix_expression): Likewise.
3960 * f-lang.c (f_language_data): Remove la_name and
3961 la_natural_name initializers.
3962 (f_language::name): New member function.
3963 (f_language::natural_name): New member function.
3964 * go-lang.c (go_language_data): Remove la_name and
3965 la_natural_name initializers.
3966 (go_language::name): New member function.
3967 (go_language::natural_name): New member function.
3968 * language.c (show_language_command): Update call to
3969 language_defn::name.
3970 (set_language_command): Likewise.
3971 (language_enum): Likewise.
3972 (language_str): Likewise.
3973 (add_set_language_command): Likewise, use
3974 language_defn::natural_name in the doc string.
3975 (unknown_language_data): Remove la_name and
3976 la_natural_name initializers.
3977 (unknown_language::name): New member function.
3978 (unknown_language::natural_name): New member function.
3979 (auto_language_data): Remove la_name and
3980 la_natural_name initializers.
3981 (auto_language::name): New member function.
3982 (auto_language::natural_name): New member function.
3983 (language_lookup_primitive_type_as_symbol): Update call to
3984 language_defn::name.
3985 * language.h (language_data): Remove la_name and la_natural_name
3986 member variables.
3987 (language_defn::name): New member function.
3988 (language_defn::natural_name): New member function.
3989 * m2-lang.c (m2_language_data): Remove la_name and
3990 la_natural_name initializers.
3991 (m2_language::name): New member function.
3992 (m2_language::natural_name): New member function.
3993 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3994 language_defn::natural_name.
3995 * objc-lang.c (objc_language_data): Remove la_name and
3996 la_natural_name initializers.
3997 (objc_language::name): New member function.
3998 (objc_language::natural_name): New member function.
3999 * opencl-lang.c (opencl_language_data): Remove la_name and
4000 la_natural_name initializers.
4001 (opencl_language::name): New member function.
4002 (opencl_language::natural_name): New member function.
4003 * p-lang.c (pascal_language_data): Remove la_name and
4004 la_natural_name initializers.
4005 (pascal_language::name): New member function.
4006 (pascal_language::natural_name): New member function.
4007 * rust-lang.c (rust_language_data): Remove la_name and
4008 la_natural_name initializers.
4009 (rust_language::name): New member function.
4010 (rust_language::natural_name): New member function.
4011 * symtab.c (lookup_language_this): Update call to
4012 language_defn::name.
4013
5bae7c4e
AB
40142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4015
4016 * ada-lang.c (ada_language_data): Remove la_name_of_this
4017 initializer.
4018 * ax-gdb.c (gen_expr): Update call to name_of_this.
4019 * c-exp.y (classify_name): Likewise.
4020 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4021 (cplus_language_data): Likewise.
4022 (cplus_language::name_of_this): New member function.
4023 (asm_language_data): Remove la_name_of_this initializer.
4024 (minimal_language_data): Likewise.
4025 * d-lang.c (d_language_data): Likewise.
4026 (d_language::name_of_this): New member function.
4027 * expprint.c (print_subexp_standard): Update call to name_of_this.
4028 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4029 * go-lang.c (go_language_data): Likewise.
4030 * language.c (unknown_language_data): Likewise.
4031 (unknown_language::name_of_this): New member function.
4032 (auto_language_data): Remove la_name_of_this initializer.
4033 (auto_language::name_of_this): New member function.
4034 * language.h (language_data): Delete la_name_of_this member
4035 variable.
4036 (language_defn::name_of_this): New member function.
4037 * m2-lang.c (m2_language_data): Remove la_name_of_this
4038 initializer.
4039 * objc-lang.c (objc_language_data): Likewise.
4040 (objc_language::name_of_this): New member function.
4041 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4042 initializer.
4043 * p-lang.c (pascal_language_data): Likewise.
4044 (pascal_language::name_of_this): New member function.
4045 * rust-lang.c (rust_language_data): Remove la_name_of_this
4046 initializer.
4047 * symtab.c (lookup_language_this): Update call to name_of_this.
4048 (lookup_symbol_aux): Likewise.
4049 * valops.c (value_of_this): Likewise.
4050
22e3f3ed
AB
40512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4052
4053 * ada-lang.c (ada_language_data): Remove
4054 la_struct_too_deep_ellipsis initializer.
4055 (ada_language::struct_too_deep_ellipsis): New member function.
4056 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4057 initializer.
4058 (cplus_language_data): Likewise.
4059 (asm_language_data): Likewise.
4060 (minimal_language_data): Likewise.
4061 * cp-valprint.c (cp_print_value): Update call to
4062 struct_too_deep_ellipsis.
4063 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4064 initializer.
4065 * f-lang.c (f_language_data): Likewise.
4066 (f_language::struct_too_deep_ellipsis): New member function.
4067 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4068 initializer.
4069 * language.c (unknown_language_data): Likewise.
4070 (auto_language_data): Likewise.
4071 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4072 member variable.
4073 (language_defn::struct_too_deep_ellipsis): New member function.
4074 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4075 initializer.Q
4076 * objc-lang.c (objc_language_data): Likewise.
4077 * opencl-lang.c (opencl_language_data): Likewise.
4078 * p-lang.c (pascal_language_data): Likewise.
4079 * rust-lang.c (rust_language_data): Likewise.
4080 * valprint.c (val_print_check_max_depth): Update call to
4081 struct_too_deep_ellipsis.
4082
ed29e1c7
FW
40832020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4084
4085 * MAINTAINERS (Write After Approval): Add myself.
4086
12d8f940
TT
40872020-09-15 Tom Tromey <tom@tromey.com>
4088
4089 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4090 Remove.
4091
6b5a7bc7
TT
40922020-09-15 Tom Tromey <tom@tromey.com>
4093
4094 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4095 and TYPE_CODE_METHODPTR cases.
4096 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4097 (c_value_print_inner): Update.
4098 * valprint.c (generic_value_print_memberptr): New function, from
4099 c_value_print_memberptr.
4100 (generic_value_print): Use it. Call cplus_print_method_ptr.
4101
47f0e2ff
TT
41022020-09-15 Tom Tromey <tromey@adacore.com>
4103
4104 * python/python-internal.h (PyInt_FromLong): Remove define.
4105 * python/py-value.c (convert_value_from_python): Use
4106 gdb_py_object_from_longest.
4107 * python/py-type.c (typy_get_code): Use
4108 gdb_py_object_from_longest.
4109 * python/py-symtab.c (salpy_get_line): Use
4110 gdb_py_object_from_longest.
4111 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4112 gdb_py_object_from_longest.
4113 * python/py-record.c (recpy_gap_reason_code): Use
4114 gdb_py_object_from_longest.
4115 * python/py-record-btrace.c (recpy_bt_insn_size)
4116 (recpy_bt_func_level, btpy_list_count): Use
4117 gdb_py_object_from_longest.
4118 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4119 gdb_py_object_from_longest. Fix error handling.
4120 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4121 gdb_py_object_from_longest.
4122 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4123 gdb_py_object_from_longest.
4124 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4125 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4126 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4127
512116ce
TT
41282020-09-15 Tom Tromey <tromey@adacore.com>
4129
4130 * python/python.c (gdbpy_parameter_value): Use
4131 gdb_py_object_from_ulongest.
4132
4ab1029c
TT
41332020-09-15 Tom Tromey <tromey@adacore.com>
4134
4135 * python/py-infevents.c (create_register_changed_event_object):
4136 Use gdb_py_object_from_longest.
4137 * python/py-exitedevent.c (create_exited_event_object): Use
4138 gdb_py_object_from_longest.
4139
062534d4
TT
41402020-09-15 Tom Tromey <tromey@adacore.com>
4141
4142 * python/python.c (gdbpy_parameter_value): Use
4143 gdb_py_object_from_longest.
4144 * python/py-type.c (convert_field, typy_range): Use
4145 gdb_py_object_from_longest.
4146 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4147 gdb_py_object_from_longest.
4148 * python/py-lazy-string.c (stpy_get_length): Use
4149 gdb_py_object_from_longest.
4150 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4151 gdb_py_object_from_longest.
4152 * python/py-infevents.c (create_memory_changed_event_object): Use
4153 gdb_py_object_from_longest.
4154 * python/py-inferior.c (infpy_get_num): Use
4155 gdb_py_object_from_longest.
4156 (infpy_get_pid): Likewise.
4157
d1cab987
TT
41582020-09-15 Tom Tromey <tromey@adacore.com>
4159
4160 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4161 defines.
4162 * python/py-value.c (valpy_long): Use
4163 gdb_py_object_from_ulongest.
4164 * python/py-symtab.c (salpy_get_pc): Use
4165 gdb_py_object_from_ulongest.
4166 (salpy_get_last): Likewise.
4167 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4168 gdb_py_object_from_ulongest.
4169 * python/py-lazy-string.c (stpy_get_address): Use
4170 gdb_py_object_from_ulongest.
4171 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4172 * python/py-arch.c (archpy_disassemble): Use
4173 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4174 error handling.
4175
4bde49dc
TT
41762020-09-15 Tom Tromey <tromey@adacore.com>
4177
4178 * python/python-internal.h (gdb_py_long_from_longest): Remove
4179 defines.
4180 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4181 * python/py-type.c (convert_field, typy_get_sizeof): Use
4182 gdb_py_object_from_longest.
4183 * python/py-record-btrace.c (btpy_list_index): Use
4184 gdb_py_object_from_longest.
4185
37431074
TT
41862020-09-15 Tom Tromey <tromey@adacore.com>
4187
4188 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4189 * python/py-record.c (recpy_element_number): Use
4190 gdb_py_object_from_longest.
4191 (recpy_gap_number): Likewise.
4192
cbe25684
TT
41932020-09-15 Tom Tromey <tromey@adacore.com>
4194
4195 * top.c (ui::ui): Update.
4196 (highest_ui_num): Remove.
4197 * top.h (struct ui) <num>: Remove.
4198
db92ac45
TT
41992020-09-15 Tom Tromey <tromey@adacore.com>
4200
4201 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4202 * ui-style.c (ansi_regex_text): Now array.
4203 * rust-exp.y (number_regex_text): Now array.
4204 * linespec.c (linespec_quote_characters): Now array.
4205 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4206 Now arrays.
4207
d2b31b67
SM
42082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4209
4210 * debuginfod-support.c (debuginfod_client_deleter): New.
4211 (debuginfod_client_up): New.
4212 (debuginfod_init): Return debuginfod_client_up.
4213 (debuginfod_source_query): Adjust.
4214 (debuginfod_debuginfo_query): Adjust.
4215
3246bd8e
SM
42162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4217
4218 * debuginfod-support.c (debuginfod_source_query): Use
4219 make_unique_xstrdup.
4220
10242f36
SM
42212020-09-14 Simon Marchi <simon.marchi@efficios.com>
4222
4223 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4224 with `type::instance_flags`.
4225
e1044e6a
MM
42262020-09-14 Michael Mullin <masmullin@gmail.com>
4227
4228 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4229 Remove baton parameter.
4230
04902b09
PA
42312020-09-14 Pedro Alves <pedro@palves.net>
4232
4233 * Makefile.in (SELFTESTS_SRCS): Add
4234 unittests/enum-flags-selftests.c.
4235 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4236 btrace_function_flags instead of enum btrace_function_flag.
4237 * compile/compile-c-types.c (convert_qualified): Use
4238 enum_flags::raw.
4239 * compile/compile-cplus-symbols.c (convert_one_symbol)
4240 (convert_symbol_bmsym):
4241 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4242 (compile_cplus_convert_struct_or_union_methods)
4243 (compile_cplus_instance::convert_qualified_base):
4244 * go-exp.y (parse_string_or_char): Add cast to int.
4245 * unittests/enum-flags-selftests.c: New file.
4246 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4247 type to btrace_thread_flags from btrace_thread_flag.
4248 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4249 local's type to btrace_thread_flags from btrace_thread_flag. Add
4250 cast in DEBUG call.
4251
69896a2c
PA
42522020-09-14 Pedro Alves <pedro@palves.net>
4253
4254 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4255 * gdbtypes.c (address_space_name_to_int): Rename to ...
4256 (address_space_name_to_type_instance_flags): ... this.
4257 (address_space_int_to_name): Rename to ...
4258 (address_space_type_instance_flags_to_name): ... this.
4259 * gdbtypes.h (address_space_name_to_int): Rename to ...
4260 (address_space_name_to_type_instance_flags): ... this.
4261 (address_space_int_to_name): Rename to ...
4262 (address_space_type_instance_flags_to_name): ... this.
4263 * type-stack.c (type_stack::insert): Adjust to rename.
4264 * type-stack.h (type_stack::insert): Likewise.
4265
314ad88d
PA
42662020-09-14 Pedro Alves <pedro@palves.net>
4267 Andrew Burgess <andrew.burgess@embecosm.com>
4268
4269 * avr-tdep.c (avr_address_class_type_flags): Return
4270 type_instance_flags.
4271 (avr_address_class_type_flags_to_name): Take a
4272 type_instance_flags.
4273 (avr_address_class_name_to_type_flags): Return bool and take a
4274 type_instance_flags.
4275 * d-lang.c (build_d_types): Use type::set_instance_flags.
4276 * ft32-tdep.c (ft32_address_class_type_flags): Return
4277 type_instance_flags.
4278 (ft32_address_class_type_flags_to_name): Take a
4279 type_instance_flags.
4280 (ft32_address_class_name_to_type_flags): Return bool and take a
4281 type_instance_flags.
4282 (ft32_gdbarch_init): Use type::set_instance_flags.
4283 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4284 * gdbarch.h, gdbarch.c: Regenerate.
4285 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4286 (address_class_name_to_type_flags): Use type_instance_flags and
4287 bool.
4288 * gdbtypes.c (address_space_name_to_int)
4289 (address_space_int_to_name, make_qualified_type): Use
4290 type_instance_flags.
4291 (make_qualified_type): Use type_instance_flags and
4292 type::set_instance_flags.
4293 (make_type_with_address_space, make_cv_type, make_vector_type)
4294 (check_typedef): Use type_instance_flags.
4295 (recursive_dump_type): Cast type_instance_flags to unsigned for
4296 printing.
4297 (copy_type_recursive): Use type::set_instance_flags.
4298 (gdbtypes_post_init): Use type::set_instance_flags.
4299 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4300 <m_instance_flags>: ... this.
4301 <instance_flags, set_instance_flags>: New methods.
4302 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4303 (SET_TYPE_INSTANCE_FLAGS): New.
4304 (address_space_name_to_int, address_space_int_to_name)
4305 (make_type_with_address_space): Pass flags using
4306 type_instance_flags instead of int.
4307 * stabsread.c (cleanup_undefined_types_noname): Use
4308 type::set_instance_flags.
4309 * s390-tdep.c (s390_address_class_type_flags): Return
4310 type_instance_flags.
4311 (s390_address_class_type_flags_to_name): Take a
4312 type_instance_flags.
4313 (s390_address_class_name_to_type_flags): Return bool and take a
4314 type_instance_flags.
4315 * type-stack.c (type_stack::follow_types): Use
4316 type_instance_flags.
4317 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4318
27087b7f
TT
43192020-09-14 Tom Tromey <tromey@adacore.com>
4320
4321 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4322 * x86-tdep.c (x86_is_thunk_register_name)
4323 (x86_in_indirect_branch_thunk): Update.
4324 * sparc64-tdep.c (sparc64_fpu_register_names)
4325 (sparc64_cp0_register_names, sparc64_register_names)
4326 (sparc64_pseudo_register_names): Now const.
4327 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4328 cp0_registers_num>: Now const.
4329 * sparc-tdep.c (sparc_core_register_names)
4330 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4331 (sparc32_pseudo_register_names): Now const.
4332 (validate_tdesc_registers): Update.
4333 * rust-lang.c (rust_extensions): Now const.
4334 * p-lang.c (p_extensions): Now const.
4335 * objc-lang.c (objc_extensions): Now const.
4336 * nto-tdep.c (nto_thread_state_str): Now const.
4337 * moxie-tdep.c (moxie_register_names): Now const.
4338 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4339 Now const.
4340 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4341 (mips_linux_reg_names): Now const.
4342 (mips_gdbarch_init): Update.
4343 * microblaze-tdep.c (microblaze_register_names): Now const.
4344 * m68k-tdep.c (m68k_register_names): Now const.
4345 * m32r-tdep.c (m32r_register_names): Now const.
4346 * ia64-tdep.c (ia64_register_names): Now const.
4347 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4348 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4349 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4350 ymm_avx512_register_names, pkeys_register_names>: Now const.
4351 * i386-tdep.c (i386_register_names, i386_zmm_names)
4352 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4353 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4354 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4355 * f-lang.c (f_extensions): Now const.
4356 * d-lang.c (d_extensions): Now const.
4357 * csky-tdep.c (csky_register_names): Now const.
4358 * charset.c (default_charset_names, charset_enum): Now const.
4359 (_initialize_charset): Update.
4360 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4361 const.
4362 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4363 (bsd_uthread_solib_loaded): Update.
4364 (bsd_uthread_state): Now const.
4365 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4366 (amd64_ymm_avx512_names, amd64_ymmh_names)
4367 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4368 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4369 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4370 (amd64_dword_names): Now const.
4371 * agent.c (can_use_agent_enum): Now const.
4372 * ada-tasks.c (task_states, long_task_states): Now const.
4373 * ada-lang.c (known_runtime_file_name_patterns)
4374 (known_auxiliary_function_name_patterns, attribute_names)
4375 (standard_exc, ada_extensions): Now const.
4376
89806626
SM
43772020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4378
4379 * bcache.h (struct bcache) <bcache>: Remove constructor.
4380 <m_hash_function, m_compare_function>: Remove.
4381 <~bcache>: Make virtual.
4382 <compare>: Remove static method, introduce virtual method.
4383 <default_hash>: Remove.
4384 <hash>: New virtual method.
4385 * bcache.c (bcache::expand_hash_table): Update.
4386 (bcache::insert): Update.
4387 (bcache::hash): New.
4388 (bcache::compare): Update comment and parameter names.
4389 * gdbtypes.c (types_deeply_equal): Update.
4390 * psymtab.h (struct psymbol_bcache): New struct.
4391 (class psymtab_storage) <psymtab_storage>: Make default.
4392 <psymbol_cache>: Change type to psymbol_bcache.
4393 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4394 (psymbol_hash): Change to...
4395 (psymbol_bcache::hash): ... this.
4396 (psymbol_compare): Change to...
4397 (psymbol_bcache::compare): ... this.
4398
677c92fe
SM
43992020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4400
4401 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4402 checking for initial lwp.
4403
3eba3a01
TT
44042020-09-14 Tom Tromey <tromey@adacore.com>
4405
4406 * m68k-tdep.c (m68k_extract_return_value): Use
4407 pointer_result_regnum.
4408 (m68k_store_return_value): Likewise.
4409 (m68k_reg_struct_return_p): Handle vectors and arrays.
4410 (m68k_return_value): Handle arrays.
4411 (m68k_svr4_return_value): Fix single-element aggregate handling.
4412 Handle long double. Adjust for embedded ABI.
4413 (m68k_svr4_init_abi): Set pointer_result_regnum.
4414 (m68k_embedded_init_abi): New function.
4415 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4416 (m68k_osabi_sniffer): New function.
4417 (_initialize_m68k_tdep): Register osabi sniffer.
4418 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4419 member.
4420
33f4dd48
SM
44212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4422
4423 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4424 with gdb::unique_xmalloc_ptr<char>.
4425
8400a90d
SM
44262020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4427
4428 * xml-support.h (xml_fetch_another): Change type to be a
4429 function_view.
4430 (xml_process_xincludes): Remove baton parameter.
4431 (xml_fetch_content_from_file): Change baton parameter to
4432 dirname.
4433 * xml-support.c (struct xinclude_parsing_data)
4434 <xinclude_parsing_data>: Remove baton parameter.
4435 <fetcher_baton>: Remove.
4436 (xinclude_start_include): Adjust.
4437 (xml_process_xincludes): Adjust.
4438 (xml_fetch_content_from_file): Replace baton parameter with
4439 dirname.
4440 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4441 (xml_init_syscalls_info): Use a lambda.
4442 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4443 (file_read_description_xml): Use a lambda.
4444 (fetch_available_features_from_target): Change baton parameter
4445 to target_ops.
4446 (target_read_description_xml): Use a lambda.
4447 (target_fetch_description_xml): Use a lambda.
4448 (string_read_description_xml): Update.
4449
04f5bab2
SM
44502020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4451
4452 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4453 uses with type::endianity_is_not_default.
4454
db558e34
SM
44552020-09-14 Simon Marchi <simon.marchi@efficios.com>
4456
4457 * gdbtypes.h (struct type) <endianity_is_not_default,
4458 set_endianity_is_not_default>: New methods.
4459 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4460 type::endianity_is_not_default, change all write call sites to
4461 use type::set_endianity_is_not_default.
4462
22c4c60c
SM
44632020-09-14 Simon Marchi <simon.marchi@efficios.com>
4464
4465 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4466 uses with type::is_fixed_instance.
4467
9cdd0d12
SM
44682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4469
4470 * gdbtypes.h (struct type) <is_fixed_instance,
4471 set_is_fixed_instance>: New methods.
4472 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4473 write call sites to use type::set_is_fixed_instance.
4474
0becda7a
SM
44752020-09-14 Simon Marchi <simon.marchi@efficios.com>
4476
4477 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4478 uses with type::is_gnu_ifunc.
4479
03cc7249
SM
44802020-09-14 Simon Marchi <simon.marchi@efficios.com>
4481
4482 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4483 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4484 use type::set_is_gnu_ifunc.
4485
3f46044c
SM
44862020-09-14 Simon Marchi <simon.marchi@efficios.com>
4487
4488 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4489 uses with type::stub_is_supported.
4490
9baccff6
SM
44912020-09-14 Simon Marchi <simon.marchi@efficios.com>
4492
4493 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4494 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4495 use type::set_stub_is_supported.
4496
bd63c870
SM
44972020-09-14 Simon Marchi <simon.marchi@efficios.com>
4498
4499 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4500 uses with type::is_vector.
4501
2062087b
SM
45022020-09-14 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4505 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4506 use type::set_is_vector.
4507
a409645d
SM
45082020-09-14 Simon Marchi <simon.marchi@efficios.com>
4509
4510 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4511 uses with type::has_varargs.
4512
1d6286ed
SM
45132020-09-14 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4516 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4517 use type::set_has_varargs.
4518
7f9f399b
SM
45192020-09-14 Simon Marchi <simon.marchi@efficios.com>
4520
4521 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4522 uses with type::is_prototyped.
4523
27e69b7a
SM
45242020-09-14 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4527 New methods.
4528 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4529 call sites to use type::set_is_prototyped.
4530
d2183968
SM
45312020-09-14 Simon Marchi <simon.marchi@efficios.com>
4532
4533 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4534 uses with type::target_is_stub.
4535
8f53807e
SM
45362020-09-14 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4539 New methods.
4540 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4541 sites to use type::set_target_is_stub.
4542
e46d3488
SM
45432020-09-14 Simon Marchi <simon.marchi@efficios.com>
4544
4545 * gdbtypes.h (TYPE_STUB): Remove, replace all
4546 uses with type::is_stub.
4547
b4b73759
SM
45482020-09-14 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4551 (TYPE_STUB): Use type::is_stub, change all write call sites to
4552 use type::set_is_stub.
4553
20ce4123
SM
45542020-09-14 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4557 type::has_no_signedness.
4558
15152a54
SM
45592020-09-14 Simon Marchi <simon.marchi@efficios.com>
4560
4561 * gdbtypes.h (struct type) <has_no_signedness,
4562 set_has_no_signedness>: New methods.
4563 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4564 call sites to use type::set_has_no_signedness.
4565
c6d940a9
SM
45662020-09-14 Simon Marchi <simon.marchi@efficios.com>
4567
4568 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4569 type::is_unsigned.
4570
653223d3
SM
45712020-09-14 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4574 methods.
4575 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4576 sites to use type::set_is_unsigned.
4577
55ea94da 45782020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4579 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4580
e851246a
SM
4581 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4582 pointer and stack frame offset when unwinding.
55ea94da 4583
6791b117
PA
45842020-09-13 Pedro Alves <pedro@palves.net>
4585
4586 * NEWS: Document "-break-insert --qualified".
4587 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4588
77f2120b
PA
45892020-09-13 Pedro Alves <pedro@palves.net>
4590
4591 * linespec.c (classify_mtype, compare_msyms): Delete.
4592 (search_minsyms_for_name): Remove classification logic. Instead
4593 filter out trampoline symbols if we also found an external
4594 function of the same name.
4595
ed6a896c
JB
45962020-09-13 Joel Brobecker <brobecker@adacore.com>
4597
4598 * NEWS: Create a new section for the next release branch.
4599 Rename the section of the current branch, now that it has
4600 been cut.
4601
32aea73e
JB
46022020-09-13 Joel Brobecker <brobecker@adacore.com>
4603
4604 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4605 * version.in: Bump version to 11.0.50.DATE-git.
4606
8087c3fa
JB
46072020-09-12 Joel Brobecker <brobecker@adacore.com>
4608
4609 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4610
2a67f09d
FW
46112020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4612 Felix Willgerodt <Felix.Willgerodt@intel.com>
4613
4614 * gdbarch.sh: Added bfloat16 type.
4615 * gdbarch.c: Regenerated.
4616 * gdbarch.h: Regenerated.
4617 * gdbtypes.c (floatformats_bfloat16): New struct.
4618 (gdbtypes_post_init): Add builtin_bfloat16.
4619 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4620 (floatformats_bfloat16): New struct.
4621 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4622 (i386_ymm_type): Add field "v16_bfloat16"
4623 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4624 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4625 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4626 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4627 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4628 * features/i386/64bit-avx512.c: Regenerated.
4629 * features/i386/64bit-sse.xml: Add bfloat16 type.
4630 * features/i386/64bit-sse.c: Regenerated.
4631
1347d111
FW
46322020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4633
4634 * i386-tdep.c (i386_zmm_type): Fix field names.
4635 (i386_ymm_type): Fix field names.
4636
7a4e8e7d
TBA
46372020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4638
4639 * breakpoint.c: Fix typo in the help message of the
4640 "set breakpoint condition-evaluation" command.
4641
cf4ac4be
KR
46422020-09-10 Kamil Rytarowski <n54@gmx.com>
4643
4644 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4645 * (nbsd_nat_target::pid_to_exec_file)
4646 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4647 (nbsd_nat_target::post_startup_inferior)
4648 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4649 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4650 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4651 * (nbsd_thread_lister): Remove.
4652
f404573e
KR
46532020-09-10 Kamil Rytarowski <n54@gmx.com>
4654
4655 * fork-inferior.c (startup_inferior): Avoid double free.
4656
1ccb2c17
KR
46572020-09-10 Kamil Rytarowski <n54@gmx.com>
4658
4659 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4660 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4661
feedfcc7
KR
46622020-09-10 Kamil Rytarowski <n54@gmx.com>
4663
4664 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4665 * netbsd-nat.c: Include <sys/ptrace.h>.
4666 * (netbsd_nat::enable_proc_events): Add.
4667
c489f8c6
KR
46682020-09-10 Kamil Rytarowski <n54@gmx.com>
4669
4670 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4671 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4672 (netbsd_nat::for_each_thread): Add.
4673 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4674 "gdbsupport/common-debug.h".
4675 * (netbsd_nat::netbsd_thread_lister)
4676 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4677 (netbsd_nat::for_each_thread): Add.
4678
330662f6
KR
46792020-09-10 Kamil Rytarowski <n54@gmx.com>
4680
4681 * netbsd-nat.h: Include <unistd.h>.
4682 * (netbsd_nat::pid_to_exec_file): Add.
4683 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4684 * (netbsd_nat::pid_to_exec_file) Add.
4685
70b67307
KR
46862020-09-10 Kamil Rytarowski <n54@gmx.com>
4687
4688 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4689
99cf6da6
KR
46902020-09-10 Kamil Rytarowski <n54@gmx.com>
4691
4692 * netbsd-nat.h: New file.
4693 * netbsd-nat.c: Likewise.
4694
1b788fb6
TT
46952020-09-09 Tom Tromey <tromey@adacore.com>
4696
4697 * ada-lang.c (remove_extra_symbols): Do not increment when
4698 removing an element
4699
03b0a45f
TT
47002020-09-08 Tom Tromey <tromey@adacore.com>
4701
4702 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4703
3cae4447
TT
47042020-09-08 Tom Tromey <tromey@adacore.com>
4705
4706 PR win32/25302:
4707 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4708 (gdb_bfd_init_data): New function.
4709 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4710
7f08fd51
TBA
47112020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4712
4713 * infrun.c (fetch_inferior_event): Use
4714 `switch_to_target_no_thread` to switch the target.
4715
3e6ff933
TT
47162020-09-06 Tom Tromey <tom@tromey.com>
4717
4718 * symfile.h (dwarf2_free_objfile): Don't declare.
4719
e56798df
AKS
47202020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4721
4722 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4723 to match 16 byte real/complex type generated by Flang compiler.
4724
8f5c6526
TV
47252020-09-03 Tom de Vries <tdevries@suse.de>
4726
4727 PR breakpoint/26546
4728 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4729 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4730
c5065df0
SM
47312020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4732
4733 * maint.c (index_digits): New function.
4734 (struct maint_print_section_data): Remove.
4735 (print_bfd_section_info): Remove print_data parameter, add arg
4736 and index_digits.
4737 (print_objfile_section_info): Likewise.
4738 (print_bfd_section_info_maybe_relocated): Likewise (plus
4739 objfile).
4740 (maintenance_info_sections): Adjust calls.
4741
02c6f3f1
TT
47422020-09-02 Tom Tromey <tromey@adacore.com>
4743
4744 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4745 for null pointers.
4746 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4747
ef5e5b0b
SM
47482020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4749
4750 * bcache.h (struct bcache) <insert>: Change type of `added` to
4751 pointer to bool.
4752 * bcache.c (bcache::insert): Likewise.
4753 * gdbtypes.c (check_types_worklist): Adjust.
4754 * psymtab.c (add_psymbol_to_bcache): Adjust.
4755
973695d6
KB
47562020-08-31 Kevin Buettner <kevinb@redhat.com>
4757
4758 * corelow.c (unordered_set): Include.
4759 (class core_target): Add field 'm_core_unavailable_mappings'.
4760 (core_target::build_file_mappings): Print only one warning
4761 per inaccessible file. Add unavailable/broken mappings
4762 to m_core_unavailable_mappings.
4763 (core_target::xfer_partial): Call...
4764 (core_target::xfer_memory_via_mappings): New method.
4765
264fc0e2
SM
47662020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4767
4768 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4769 type to bool.
4770
2de01bdb
SM
47712020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4772
4773 * dwarf2/read.c (struct field_info): Fix indentation.
4774
f3bd50f1
SM
47752020-08-31 Simon Marchi <simon.marchi@efficios.com>
4776
4777 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4778 ordering in comment.
4779 * frame.c (frame_id_eq): Fix indentation.
4780
22b9b4b0
SL
47812020-08-31 Scott Linder <scott@scottlinder.com>
4782 Simon Marchi <simon.marchi@efficios.com>
4783
4784 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4785 inline frame ids in outer frame.
4786
84154d16
SM
47872020-08-31 Simon Marchi <simon.marchi@efficios.com>
4788
4789 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4790 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4791 (outer_frame_id): Use FID_STACK_OUTER instead of
4792 FID_STACK_INVALID.
4793 (frame_id_p): Don't check for outer_frame_id.
4794
8efaf6b3
SM
47952020-08-31 Simon Marchi <simon.marchi@efficios.com>
4796
4797 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4798 regnum/frame in value. Call allocate_value_lazy.
4799 * frame.c (frame_unwind_register_value): Use
4800 val_print_not_saved.
4801
fe1fe7ea
SM
48022020-08-31 Simon Marchi <simon.marchi@efficios.com>
4803
4804 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4805
f7c7700d
PA
48062020-08-29 Pedro Alves <pedro@palves.net>
4807
4808 * progspace.c (print_program_space): Use all_inferiors. Switch to
4809 the inferior before calling target_pid_to_str.
4810
e0814aae
TT
48112020-08-28 Tom Tromey <tom@tromey.com>
4812
4813 * xcoffread.c (xcoff_end_psymtab): Update comment.
4814 * dbxread.c (dbx_end_psymtab): Update comment.
4815
626d2320
TV
48162020-08-28 Tom de Vries <tdevries@suse.de>
4817
4818 PR breakpoint/26544
4819 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4820 event_location.
4821 (create_breakpoint): Same.
4822 (base_breakpoint_decode_location): Same.
4823 (bkpt_create_sals_from_location): Same.
4824 (bkpt_decode_location): Same.
4825 (bkpt_probe_create_sals_from_location): Same.
4826 (bkpt_probe_decode_location): Same.
4827 (tracepoint_create_sals_from_location): Same.
4828 (tracepoint_decode_location): Same.
4829 (tracepoint_probe_decode_location): Same.
4830 (strace_marker_create_sals_from_location): Same.
4831 (strace_marker_decode_location): Same.
4832 (create_sals_from_location_default): Same.
4833 (decode_location_default): Same.
4834 * breakpoint.h (struct breakpoint_ops): Same.
4835 (create_breakpoint): Same.
4836 * linespec.h (decode_line_full): Same.
4837 * linespec.c (decode_line_full): Same. Throw error if
4838 result.size () == 0.
4839
df631783
PA
48402020-08-27 Pedro Alves <pedro@palves.net>
4841
4842 PR gdb/26524
4843 * breakpoint.c (until_break_fsm) <location_breakpoint,
4844 caller_breakpoint>: Delete fields.
4845 <breakpoints>: New field.
4846 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4847 two individual breakpoints.
4848 (until_break_fsm::should_stop): Loop over breakpoints in the
4849 breakpoint vector.
4850 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4851 vector.
4852 (until_break_command): Handle location expanding into multiple
4853 sals.
4854
b2b38aa4
PA
48552020-08-27 Pedro Alves <pedro@palves.net>
4856
4857 PR gdb/26523
4858 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4859 bp_until breakpoints user-specified locations. Update intro
4860 comment.
4861
b886559f
SM
48622020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4863
4864 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4865 gdb_bfd_sections): New.
4866 * maint.c (print_bfd_section_info): Change param type to
4867 maint_print_section_data.
4868 (print_objfile_section_info): Likewise.
4869 (print_bfd_section_info_maybe_relocated): Likewise.
4870 (maintenance_info_sections): Use gdb_bfd_sections.
4871
4c6e63bf
SV
48722020-08-25 Shahab Vahedi <shahab@synopsys.com>
4873
4874 * MAINTAINERS: Add ARC target and maintainer.
4875
8d7f0635
AK
48762020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4877
4878 * configure.tgt: ARC support for GNU/Linux.
4879 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4880 * arc-linux-tdep.c: New file.
4881 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4882 * arc-tdep.c (arc_write_pc): Use it.
4883
fdd8731b
SV
48842020-08-25 Shahab Vahedi <shahab@synopsys.com>
4885
4886 * arc-tdep.c (arc_check_for_hardware_loop): New.
4887 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4888
22459524
SV
48892020-08-25 Shahab Vahedi <shahab@synopsys.com>
4890
4891 * arc-tdep.h: Include "gdbarch.h".
4892
995d3a19
SV
48932020-08-25 Shahab Vahedi <shahab@synopsys.com>
4894
4895 * arch/arc.h
4896 (arc_gdbarch_features): New class to stir the selection of target XML.
4897 (arc_create_target_description): Use FEATURES to choose XML target.
4898 (arc_lookup_target_description): Use arc_create_target_description
4899 to create _new_ target descriptions or return the already created
4900 ones if the FEATURES is the same.
4901 * arch/arc.c: Implementation of prototypes described above.
4902 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4903 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4904 * arc-tdep.c (*_feature_name): Make feature names consistent.
4905 (arc_register_feature): A new struct to hold information about
4906 registers of a particular target/feature.
4907 (arc_check_tdesc_feature): Check if XML provides registers in
4908 compliance with ARC_REGISTER_FEATURE structs.
4909 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4910 (determine_*_reg_feature_set): Which feature name to look for.
4911 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4912 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4913 to expected ISA enums to be used in arc_gdbarch_features structs.
4914 * features/Makefile (FEATURE_XMLFILES): Add new files.
4915 * gdb/features/arc/v1-aux.c: New file.
4916 * gdb/features/arc/v1-aux.xml: Likewise.
4917 * gdb/features/arc/v1-core.c: Likewise.
4918 * gdb/features/arc/v1-core.xml: Likewise.
4919 * gdb/features/arc/v2-aux.c: Likewise.
4920 * gdb/features/arc/v2-aux.xml: Likewise.
4921 * gdb/features/arc/v2-core.c: Likewise.
4922 * gdb/features/arc/v2-core.xml: Likewise.
4923 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4924
3945d2d7
GM
49252020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4926 Andrew Burgess <andrew.burgess@embecosm.com>
4927
4928 PR m2/26372
fc5d6901 4929 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4930 an assert. Remove single element array indexing pattern as the
4931 MULTI_SUBSCRIPT support will handle this case too.
4932
2677f2d3
SM
49332020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4934
4935 * value.h (valprint_check_validity): Move declaration from
4936 here...
4937 * valprint.h (valprint_check_validity): ... to here.
4938
c426fddb
SM
49392020-08-24 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * debug.h: New file.
4942 * debug.c (debug_prefixed_vprintf): New function.
4943 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4944 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4945
1eb8556f
SM
49462020-08-24 Simon Marchi <simon.marchi@efficios.com>
4947
4948 * infrun.h (infrun_debug_printf_1): New function declaration.
4949 (infrun_debug_printf): New macro.
4950 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4951 throughout.
4952 (infrun_debug_printf): New function.
4953 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4954 (handle_jit_event): Likewise.
4955
b8fff44e
MW
49562020-08-21 Mark Wielaard <mark@klomp.org>
4957
4958 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4959
d19c3068
SM
49602020-08-22 Simon Marchi <simon.marchi@efficios.com>
4961
4962 * frame.c (enum class frame_id_status): New.
4963 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4964 (fprintf_frame): Update.
4965 (compute_frame_id): Set frame id status to "computing" on entry.
4966 Set it back to "not_computed" on failure and to "computed" on
4967 success.
4968 (get_frame_id): Assert the frame id is not being computed.
4969 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4970 (create_new_frame): Likewise.
4971 (frame_cleanup_after_sniffer): Update assert.
4972
b70e516e
SM
49732020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4974
4975 * regcache.c (pid_ptid_regcache_map): New type.
4976 (target_ptid_regcache_map): Remove.
4977 (target_pid_ptid_regcache_map): New type.
4978 (regcaches): Change type to target_pid_ptid_regcache_map.
4979 (get_thread_arch_aspace_regcache): Update.
4980 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4981 case.
4982 (regcaches_size): Update.
4983 (regcache_count): Update.
4984 (registers_changed_ptid_target_pid_test): New.
4985 (_initialize_regcache): Register new test.
4986
cdd9148a
SM
49872020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4988
4989 * regcache.c (regcache_count): New.
4990 (struct regcache_test_data): New.
4991 (regcache_test_data_up): New.
4992 (populate_regcaches_for_test): New.
4993 (regcaches_test): Remove.
4994 (get_thread_arch_aspace_regcache_test): New.
4995 (registers_changed_ptid_all_test): New.
4996 (registers_changed_ptid_target_test): New.
4997 (registers_changed_ptid_target_ptid_test): New.
4998 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4999 (_initialize_regcache): Register new tests.
5000
dd125343
SM
50012020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5002
5003 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5004 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5005 gdbarch and aspace parameter. Use current inferior's aspace.
5006 Validate regcache's arch value.
5007 (regcaches_test): Update.
5008
3ee93972
SM
50092020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5010
5011 * regcache.c (regcaches_test): Call registers_changed.
5012
33bf4c5c
TBA
50132020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5014
5015 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5016
c2fd7fae
AKS
50172020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5018
5019 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5020 to find the end of prologue for flang compiled binaries.
5021 * arm-tdep.c (arm_skip_prologue): Likewise.
5022 * i386-tdep.c (i386_skip_prologue): Likewise.
5023 * producer.c (producer_is_llvm): New function.
5024 (producer_parsing_tests): Added new tests for clang/flang.
5025 * producer.h (producer_is_llvm): New declaration.
5026
9327494e
SM
50272020-08-18 Simon Marchi <simon.marchi@efficios.com>
5028
5029 * linux-nat.c (linux_nat_debug_printf): New function.
5030 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5031
d138725a
AM
50322020-08-18 Aaron Merey <amerey@redhat.com>
5033
5034 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5035 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5036 (CLIBS): Add DEBUGINFOD_LIBS.
5037
f9b11e6b
ST
50382020-08-17 Sergei Trofimovich <siarheit@google.com>
5039
5040 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5041 'gdbarch_num_regs'.
5042
3ae7ab99
TT
50432020-08-17 Tom Tromey <tromey@adacore.com>
5044
5045 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5046 ada_get_decoded_value returns NULL.
5047
b017825f
TT
50482020-08-17 Tom Tromey <tromey@adacore.com>
5049
5050 * python/py-inferior.c (infpy_search_memory): Use
5051 gdb_py_object_from_ulongest.
5052 * python/py-infevents.c (create_inferior_call_event_object)
5053 (create_memory_changed_event_object): Use
5054 gdb_py_object_from_ulongest.
5055 * python/py-linetable.c (ltpy_entry_get_pc): Use
5056 gdb_py_object_from_ulongest.
5057
7635cf79
SM
50582020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5059
5060 * loc.c (class symbol_needs_eval_context): Fix indentation.
5061
f54be24b
SM
50622020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5063
5064 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5065 bool.
5066
53d5a2a5
TV
50672020-08-17 Tom de Vries <tdevries@suse.de>
5068
5069 PR gdb/26393
5070 * gdbtypes.c (dump_dynamic_prop): New function.
5071 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5072
547ce8f0
TV
50732020-08-15 Tom de Vries <tdevries@suse.de>
5074
5075 PR backtrace/26390
5076 * stack.c (print_frame_args): Temporarily set the selected
5077 frame to FRAME while printing the frame's arguments.
5078
6ea815e7
PFC
50792020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5080
5081 PR breakpoints/26385
5082 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5083 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5084
6e562fa3
PFC
50852020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5086
5087 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5088 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5089 and >= to check return value instead of == -1 and != -1.
5090
d369b608
SM
50912020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5092
5093 * utils.h (class gdb_argv) <as_array_view>: New method.
5094 * utils.c (gdb_argv_as_array_view_test): New.
5095 (_initialize_utils): Register selftest.
5096 * maint.c (maintenance_selftest): Use the new method.
5097
b31488a3
KR
50982020-08-13 Kamil Rytarowski <n54@gmx.com>
5099
5100 * target.h (supports_dumpcore, dumpcore): New
5101 function declarations.
5102 * target.c (supports_dumpcore, dumpcore): New
5103 functions.
5104 * target-delegates.c: Rebuild.
5105 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5106 and target_dumpcore ().
5107
002a3166
AM
51082020-08-13 Aaron Merey <amerey@redhat.com>
5109
5110 * debuginfod-support.c: Replace global variables with user_data.
5111
ece5bc8a
SM
51122020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5113
5114 * maint.c (maintenance_selftest): Split args and pass array_view
5115 to run_tests.
5116
6d8a0a5e
LM
51172020-08-12 Luis Machado <luis.machado@linaro.org>
5118
5119 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5120 type's length.
5121 Use %s and pulongest to print the length.
5122
7cf663a9
PA
51232020-08-12 Pedro Alves <palves@redhat.com>
5124
5125 * NEWS: Move "Multi-target debugging support" item to the
5126 "Changes since GDB 9" section.
5127
27c7b875
PA
51282020-08-12 Pedro Alves <palves@redhat.com>
5129
5130 PR gdb/26336
5131 * progspace.c (program_space::remove_objfile): Invalidate the
5132 frame cache.
5133
1796a2a1
TV
51342020-08-11 Tom de Vries <tdevries@suse.de>
5135
5136 * MAINTAINERS: Mark ms1 as deleted.
5137
f8e3fe0d
LM
51382020-08-10 Luis Machado <luis.machado@linaro.org>
5139
5140 PR gdb/26310
5141
5142 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5143 act accordingly.
5144 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5145 movz/str/stur/stp skipping behavior.
5146
cc308722
LM
51472020-08-10 Luis Machado <luis.machado@linaro.org>
5148
5149 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5150 struct user_sve_header instead of struct sve_context.
5151
041d9819
SM
51522020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5153
5154 * read.h (dwarf2_fetch_die_loc_sect_off,
5155 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5156 `void *` parameter with function_view.
5157 * read.c (dwarf2_fetch_die_loc_sect_off,
5158 dwarf2_fetch_die_loc_cu_off): Likewise.
5159 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5160 (per_cu_dwarf_call): Adjust.
5161 (get_frame_address_in_block_wrapper): Remove.
5162 (indirect_synthetic_pointer): Adjust.
5163 (get_ax_pc): Remove.
5164 (dwarf2_compile_expr_to_ax): Adjust.
5165
38f8aa06
TV
51662020-08-08 Tom de Vries <tdevries@suse.de>
5167
5168 PR build/26344
5169 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5170 constructor.
5171 * regcache.c (get_thread_arch_aspace_regcache): Same.
5172
a52b3ae2
TT
51732020-08-07 Tom Tromey <tromey@adacore.com>
5174
5175 * ravenscar-thread.c
5176 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5177 New method.
5178 (ravenscar_thread_target::wait): Check
5179 runtime_initialized.
5180 (ravenscar_thread_target::prepare_to_store)
5181 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5182 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5183 (ravenscar_thread_target::stopped_by_watchpoint)
5184 (ravenscar_thread_target::stopped_data_address)
5185 (ravenscar_thread_target::core_of_thread): Use
5186 scoped_restore_current_thread and
5187 set_base_thread_from_ravenscar_task.
5188
0e29517d
TT
51892020-08-07 Tom Tromey <tromey@adacore.com>
5190
5191 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5192
592f9bd7
TT
51932020-08-07 Tom Tromey <tromey@adacore.com>
5194
5195 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5196 update_inferior_ptid before update_thread_list.
5197 (temporarily_change_regcache_ptid): New class.
5198 (ravenscar_thread_target::fetch_registers)
5199 (ravenscar_thread_target::store_registers)
5200 (ravenscar_thread_target::prepare_to_store): Use base thread when
5201 forwarding operation.
5202
39e2018a
TT
52032020-08-07 Tom Tromey <tromey@adacore.com>
5204
5205 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5206 "is_pid" case.
5207
2080266b
TT
52082020-08-07 Tom Tromey <tromey@adacore.com>
5209
5210 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5211 New methods.
5212 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5213 first.
5214 (ravenscar_thread_target::add_thread): Rename from
5215 ravenscar_add_thread.
5216 (ravenscar_thread_target::update_thread_list): Use a lambda.
5217 (ravenscar_thread_target::xfer_partial): New method.
5218
78c02f21
TT
52192020-08-07 Tom Tromey <tromey@adacore.com>
5220
5221 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5222 gdb::function_view.
5223 (iterate_over_live_ada_tasks): Change type of argument.
5224 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5225 of argument.
5226
d5d833af
TT
52272020-08-07 Tom Tromey <tromey@adacore.com>
5228
5229 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5230 Remove.
5231 (ravenscar_thread_target::extra_thread_info): Remove.
5232 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5233 defer to target beneath for non-Ravenscar threads.
5234
a8ac85bb
TT
52352020-08-07 Tom Tromey <tromey@adacore.com>
5236
5237 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5238 get_base_thread_from_ravenscar_task>: Now methods.
5239 <m_cpu_map>: New member.
5240 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5241 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5242 (ravenscar_thread_target::task_is_currently_active): Update.
5243 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5244 Now a method.
5245 (ravenscar_thread_target::add_active_thread): Put initial thread
5246 into the m_cpu_map.
5247
550ab58d
TT
52482020-08-07 Tom Tromey <tromey@adacore.com>
5249
5250 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5251 event_ptid.
5252
e9546579
TT
52532020-08-07 Tom Tromey <tromey@adacore.com>
5254
5255 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5256 runtime_initialized.
5257
3d4470e5
TT
52582020-08-07 Tom Tromey <tromey@adacore.com>
5259
5260 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5261 add_active_thread.
5262 (ravenscar_thread_target::add_active_thread): Now public.
5263 (ravenscar_inferior_created): Call add_active_thread after pushing
5264 the target.
5265
888bdb2b
SM
52662020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5267
5268 * regcache.c (ptid_regcache_map): New type.
5269 (target_ptid_regcache_map): New type.
5270 (regcaches): Change type to target_ptid_regcache_map.
5271 (get_thread_arch_aspace_regcache): Update to regcaches' new
5272 type.
5273 (regcache_thread_ptid_changed): Likewise.
5274 (registers_changed_ptid): Likewise.
5275 (regcaches_size): Likewise.
5276 (regcaches_test): Update.
5277 (regcache_thread_ptid_changed): Update.
5278 * regcache.h (regcache_up): New type.
5279 * gdbsupport/ptid.h (hash_ptid): New struct.
5280
b161a60d
SM
52812020-08-07 Simon Marchi <simon.marchi@efficios.com>
5282
5283 * observable.h (thread_ptid_changed): Add parameter
5284 `process_stratum_target *`.
5285 * infrun.c (infrun_thread_ptid_changed): Add parameter
5286 `process_stratum_target *` and use it.
5287 (selftests): New namespace.
5288 (infrun_thread_ptid_changed): New function.
5289 (_initialize_infrun): Register selftest.
5290 * regcache.c (regcache_thread_ptid_changed): Add parameter
5291 `process_stratum_target *` and use it.
5292 (regcache_thread_ptid_changed): New function.
5293 (_initialize_regcache): Register selftest.
5294 * thread.c (thread_change_ptid): Pass target to
5295 thread_ptid_changed observable.
5296
d2854d8d
CT
52972020-08-06 Caroline Tice <cmtice@google.com>
5298
fe4c3d43
SM
5299 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5300 (struct dwp_sections): Update field comments. Add loclists and
5301 rnglists fields.
5302 (struct virtual_v2_dwo_sections): Rename struct to
5303 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5304 size & offset fields for loclists and rnglists.
5305 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5306 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5307 skipping dummy type units.
5308 (create_dwp_hash_table): Update the large comment above the function to
5309 discuss Version 5 DWP files as well, with references. Update all the
5310 version checks in the function to check for version 5 as well. Add new
5311 section at the end to create dwp hash table for version 5.
5312 (create_dwp_v2_section): Rename function to
5313 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5314 Add V5 to error message text.
5315 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5316 into calls to create_dwp_v2_or_v5_section.
5317 (create_dwo_unit_in_dwp_v5): New function.
5318 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5319 check for version2; add else clause to handle version 5.
5320 (open_and_init_dwo_file): Add code to check dwarf version & only call
5321 create_debug_types_hash_table (with sections.types) if version is not 5;
5322 else call create_debug_type_hash_table, with sections.info.
5323 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5324 version 5.
5325 (dwarf2_locate_v5_dwp_sections): New function.
5326 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5327 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5328
159ed7d9
SM
53292020-08-06 Simon Marchi <simon.marchi@efficios.com>
5330
5331 * regcache.h (class regcache): Remove friend
5332 registers_changed_ptid.
5333 <regcache_thread_ptid_changed>: Remove.
5334 <regcaches>: Remove.
5335 * regcache.c (regcache::regcaches): Rename to...
5336 (regcaches): ... this. Make static.
5337 (get_thread_arch_aspace_regcache): Update.
5338 (regcache::regcache_thread_ptid_changed): Rename to...
5339 (regcache_thread_ptid_changed): ... this. Update.
5340 (class regcache_access): Remove.
5341 (regcaches_test): Update.
5342 (_initialize_regcache): Update.
5343 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5344 <forward_list>.
5345
174981ae
SM
53462020-08-06 Simon Marchi <simon.marchi@efficios.com>
5347
5348 * regcache.h (class regcache) <current_regcache>: Rename to...
5349 <regcaches>: ... this. Move doc here.
5350 * regcache.c (regcache::current_regcache) Rename to...
5351 (regcache::regcaches): ... this. Move doc to header.
5352 (get_thread_arch_aspace_regcache): Update.
5353 (regcache::regcache_thread_ptid_changed): Update.
5354 (registers_changed_ptid): Update.
5355 (class regcache_access) <current_regcache_size>: Rename to...
5356 <regcaches_size>: ... this.
5357 (current_regcache_test): Rename to...
5358 (regcaches_test): ... this.
5359 (_initialize_regcache): Update.
5360
ed908db6
VC
53612020-08-06 Victor Collod <vcollod@nvidia.com>
5362
5363 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5364
b5582ab7
KB
53652020-08-05 Kevin Buettner <kevinb@redhat.com>
5366
5367 * corelow.c (core_target::build_file_mappings): Don't output
5368 null pathname in warning.
5369
ea946b86
SM
53702020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5371
5372 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5373 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5374 gdb.dwarf2/dw2-single-line-discriminators.exp,
5375 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5376
57d02173
TT
53772020-08-05 Tom Tromey <tromey@adacore.com>
5378
5379 PR rust/26197:
5380 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5381 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5382 Fix off-by-one and type size errors in ordinary case.
5383
5555c86d
TV
53842020-08-05 Tom de Vries <tdevries@suse.de>
5385
5386 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5387 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5388
97916bfe
SM
53892020-08-04 Simon Marchi <simon.marchi@efficios.com>
5390
5391 * frame.h (frame_id_p): Return bool.
5392 (frame_id_artificial_p): Return bool.
5393 (frame_id_eq): Return bool.
5394 (has_stack_frames): Return bool.
5395 (get_selected_frame): Fix typo in comment.
5396 (get_frame_pc_if_available): Return bool.
5397 (get_frame_address_in_block_if_available): Return bool.
5398 (get_frame_func_if_available): Return bool.
5399 (read_frame_register_unsigned): Return bool.
5400 (get_frame_register_bytes): Return bool.
5401 (safe_frame_unwind_memory): Return bool.
5402 (deprecated_frame_register_read): Return bool.
5403 (frame_unwinder_is): Return bool.
5404 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5405 bool.
5406 <this_id::p>: Likewise.
5407 <prev_p>: Likewise.
5408 (frame_stash_add): Return bool.
5409 (get_frame_id): Use bool.
5410 (frame_id_build_special) Use bool.
5411 (frame_id_build_unavailable_stack): Use bool.
5412 (frame_id_build): Use bool.
5413 (frame_id_p): Return bool, use true/false instead of 1/0.
5414 (frame_id_artificial_p): Likewise.
5415 (frame_id_eq): Likewise.
5416 (frame_id_inner): Likewise.
5417 (get_frame_func_if_available): Likewise.
5418 (read_frame_register_unsigned): Likewise.
5419 (deprecated_frame_register_read): Likewise.
5420 (get_frame_register_bytes): Likewise.
5421 (has_stack_frames): Likewise.
5422 (inside_main_func): Likewise.
5423 (inside_entry_func): Likewise.
5424 (get_frame_pc_if_available): Likewise.
5425 (get_frame_address_in_block_if_available): Likewise.
5426 (frame_unwinder_is): Likewise.
5427 (safe_frame_unwind_memory): Likewise.
5428 (frame_unwind_arch): Likewise.
5429
fedfee88
SM
54302020-08-04 Simon Marchi <simon.marchi@efficios.com>
5431
5432 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5433 type to cached_copy_status.
5434 (fprintf_frame): Adjust.
5435 (get_frame_func_if_available): Adjust.
5436 (frame_cleanup_after_sniffer): Adjust.
5437
6cfa9b59
MW
54382020-08-04 Mark Wielaard <mark@klomp.org>
5439
5440 * MAINTAINERS (Write After Approval): Update email address.
5441
66d6346b
SM
54422020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5443
5444 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5445 dynamic_prop::const_val.
5446
8a6d5e35
SM
54472020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5448
5449 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5450 dynamic_prop::kind.
5451
51d6067d
SM
54522020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5453
5454 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5455
b26e2ae7
JM
54562020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5457
5458 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5459
39791af2
JM
54602020-08-04 Weimin Pan <weimin.pan@oracle.com>
5461 Jose E. Marchesi <jose.marchesi@oracle.com>
5462
5463 * configure.tgt: Add entry for bpf-*-*.
5464 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5465 (ALLDEPFILES): Add bpf-tdep.c.
5466 * bpf-tdep.c: New file.
5467 * MAINTAINERS: Add bpf target and maintainer.
5468 * NEWS: Mention the support for the new target.
5469
521894aa
TV
54702020-08-04 Tom de Vries <tdevries@suse.de>
5471
5472 PR symtab/23270
5473 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5474 Error.
5475
5d6356e9
JB
54762020-08-03 John Baldwin <jhb@FreeBSD.org>
5477
5478 * syscalls/freebsd.xml: Regenerate.
5479
0cf82b81
JB
54802020-08-03 John Baldwin <jhb@FreeBSD.org>
5481
5482 * syscalls/update-freebsd.sh: Fix usage and year range.
5483
8f34b746
TV
54842020-08-03 Tom de Vries <tdevries@suse.de>
5485
5486 PR symtab/26333
5487 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5488 DW_LNE_lo_user/DW_LNE_hi_user range.
5489
5e500d33
SM
54902020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5491
5492 PR ada/26318
5493 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5494 kind.
5495
78319c15
TBA
54962020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5497
5498 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5499
4c55e970
TBA
55002020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5501
5502 * breakpoint.c (set_breakpoint_condition): Update the condition
5503 expressions after checking that the input condition string parses
5504 successfully and does not contain junk at the end.
5505
1e620590
TBA
55062020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5507
5508 * breakpoint.c (set_breakpoint_condition): Update the
5509 condition string after parsing the new condition successfully.
5510
c8693053
RO
55112020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5512
5513 * proc-api.c (_STRUCTURED_PROC): Don't define.
5514 * proc-events.c: Likewise.
5515 * proc-flags.c: Likewise.
5516 * proc-why.c: Likewise.
5517 * procfs.c: Likewise.
5518
5519 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5520 * configure, config.in: Regenerate.
5521
5a99adb8
TV
55222020-07-30 Tom de Vries <tdevries@suse.de>
5523
5524 PR build/26320
5525 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5526 m_red/m_green/m_blue in a union.
5527
8ba83e91
TV
55282020-07-29 Tom de Vries <tdevries@suse.de>
5529
5530 PR tdep/26280
5531 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5532
f75a0693
AB
55332020-07-28 Tom Tromey <tromey@adacore.com>
5534
5535 PR symtab/26270:
5536 * symtab.h (find_pc_partial_function_sym): Declare.
5537 * cli/cli-cmds.c (disassemble_command): Use
5538 find_pc_partial_function_sym. Check asm_demangle.
5539 * blockframe.c (cache_pc_function_sym): New global.
5540 (cache_pc_function_name): Remove.
5541 (clear_pc_function_cache): Update.
5542 (find_pc_partial_function_sym): New function, from
5543 find_pc_partial_function.
5544 (find_pc_partial_function): Rewrite using
5545 find_pc_partial_function_sym.
5546
16f3242c
TT
55472020-07-28 Tom Tromey <tromey@adacore.com>
5548
5549 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5550 help. Add usage.
5551
4888741a
TT
55522020-07-28 Tom Tromey <tromey@adacore.com>
5553
5554 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5555 <DW_OP_GNU_variable_value>: Cast to address type.
5556
4d46f402
KR
55572020-07-28 Kamil Rytarowski <n54@gmx.com>
5558
5559 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5560 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5561 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5562 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5563 (nbsd_get_siginfo_type): New.
5564 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5565 (_initialize_nbsd_tdep): New.
5566
d70f978b
L
55672020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5568
5569 PR binutils/26301
5570 * configure: Regenerated.
5571
377170fa
L
55722020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5573
5574 PR binutils/26301
5575 * configure: Regenerated.
5576
43d5901d
AB
55772020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5578
5579 * python/py-frame.c: Remove 'user-regs.h' include.
5580 (frapy_read_register): Rewrite to make use of
5581 gdbpy_parse_register_id.
5582 * python/py-registers.c (gdbpy_parse_register_id): New function,
5583 moved here from python/py-unwind.c. Updated the return type, and
5584 also accepts register descriptor objects.
5585 * python/py-unwind.c: Remove 'user-regs.h' include.
5586 (pyuw_parse_register_id): Moved to python/py-registers.c.
5587 (unwind_infopy_add_saved_register): Update to use
5588 gdbpy_parse_register_id.
5589 (pending_framepy_read_register): Likewise.
5590 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5591
14fa8fb3
AB
55922020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5593
5594 * python/py-registers.c: Add 'user-regs.h' include.
5595 (register_descriptor_iter_find): New function.
5596 (register_descriptor_iterator_object_methods): New static global
5597 methods array.
5598 (register_descriptor_iterator_object_type): Add pointer to methods
5599 array.
5600
ddce1758
JB
56012020-07-27 John Baldwin <jhb@FreeBSD.org>
5602
5603 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5604 for all architectures on FreeBSD 11.3 and later.
5605
a4089f52
TT
56062020-07-27 Tom Tromey <tromey@adacore.com>
5607
5608 * gcore.h (load_corefile): Don't declare.
5609
95420d30
TV
56102020-07-27 Tom de Vries <tdevries@suse.de>
5611
5612 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5613 * config.in: Regenerate.
5614 * configure: Regenerate.
5615
05a6b8c2
EZ
56162020-07-26 Eli Zaretskii <eliz@gnu.org>
5617
5618 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5619 ws2tcpip.h. When checking whether socklen_t type is defined, use
5620 ws2tcpip.h if it is available and sys/socket.h isn't.
5621 * configure: Regenerate.
5622 * config.in: Regenerate.
5623
e79eb02f
AB
56242020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5625
5626 PR fortran/23051
5627 PR fortran/26139
5628 * valops.c (value_ind): Pass address to
5629 readjust_indirect_value_type.
5630 * value.c (readjust_indirect_value_type): Make parameter
5631 non-const, and add extra address parameter. Resolve original type
5632 before using it.
5633 * value.h (readjust_indirect_value_type): Update function
5634 signature and comment.
5635
876518dd
TV
56362020-07-25 Tom de Vries <tdevries@suse.de>
5637
5638 PR symtab/26243
5639 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5640 entries.
5641
f6720b1c
AM
56422020-07-24 Aaron Merey <amerey@redhat.com>
5643
5644 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5645 * configure: Rebuild.
5646
513487e1
KB
56472020-07-23 Kevin Buettner <kevinb@redhat.com>
5648
5649 PR corefiles/26294
5650 * corelow.c (_initialize_corelow): Add period to help text
5651 for "maintenance print core-file-backed-mappings".
5652
e7bc9db8
PA
56532020-07-23 Pedro Alves <pedro@palves.net>
5654
5655 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5656 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5657 meanwhile.
5658 * frame.c (frame_cache_generation, get_frame_cache_generation):
5659 New.
5660 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5661 (get_prev_frame_if_no_cycle): On exception, don't touch
5662 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5663 * frame.h (get_frame_cache_generation): Declare.
5664
90fcc466
TV
56652020-07-23 Tom de Vries <tdevries@suse.de>
5666
5667 PR tui/26282
5668 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5669 New default constructor.
5670
78344df7
AB
56712020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5672
5673 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5674 exclude non-statement entries.
5675
b089853a
KB
56762020-07-22 Kevin Buettner <kevinb@redhat.com>
5677
5678 * NEWS (New commands): Mention new command
5679 "maintenance print core-file-backed-mappings".
5680
09c2f5d4
KB
56812020-07-22 Kevin Buettner <kevinb@redhat.com>
5682
5683 * corelow.c (gdbcmd.h): Include.
5684 (core_target::info_proc_mappings): New method.
5685 (get_current_core_target): New function.
5686 (maintenance_print_core_file_backed_mappings): New function.
5687 (_initialize_corelow): Add core-file-backed-mappings to
5688 "maint print" commands.
5689
9c5ec5c2 56902020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5691
9c5ec5c2
KB
5692 * linux-tdep.c (dump_note_entry_p): New function.
5693 (linux_dump_mapping_p_ftype): New typedef.
5694 (linux_find_memory_regions_full): Add new parameter,
5695 should_dump_mapping_p.
5696 (linux_find_memory_regions): Adjust call to
5697 linux_find_memory_regions_full.
5698 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5699 call to linux_find_memory_regions_full.
5700
db082f59
KB
57012020-07-22 Kevin Buettner <kevinb@redhat.com>
5702
5703 * corelow.c (solist.h, unordered_map): Include.
5704 (class core_target): Add field m_core_file_mappings and
5705 method build_file_mappings.
5706 (core_target::core_target): Call build_file_mappings.
5707 (core_target::~core_target): Free memory associated with
5708 m_core_file_mappings.
5709 (core_target::build_file_mappings): New method.
5710 (core_target::xfer_partial): Use m_core_file_mappings
5711 for memory transfers.
5712 * linux-tdep.c (linux_read_core_file_mappings): New
5713 function.
5714 (linux_core_info_proc_mappings): Rewrite to use
5715 linux_read_core_file_mappings.
5716 (linux_init_abi): Register linux_read_core_file_mappings.
5717
7e183d27
KB
57182020-07-22 Kevin Buettner <kevinb@redhat.com>
5719
5720 * arch-utils.c (default_read_core_file_mappings): New function.
5721 * arch-utils.c (default_read_core_file_mappings): Declare.
5722 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5723 * gdbarch.h, gdbarch.c: Regenerate.
5724
2735d421
KB
57252020-07-22 Kevin Buettner <kevinb@redhat.com>
5726
5727 PR corefiles/25631
5728 * corelow.c (core_target:xfer_partial): Revise
5729 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5730 case after first checking the stratum beneath the core
5731 target.
5732 (has_all_memory): Return true.
5733 * target.c (raw_memory_xfer_partial): Revise comment
5734 regarding use of has_all_memory.
5735
e56cb451
KB
57362020-07-22 Kevin Buettner <kevinb@redhat.com>
5737
5738 * exec.h (section_table_xfer_memory): Revise declaration,
5739 replacing section name parameter with an optional callback
5740 predicate.
5741 * exec.c (section_table_xfer_memory): Likewise.
5742 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5743 of section_table_xfer_memory.
5744
32fa152e
TT
57452020-07-22 Tom Tromey <tromey@adacore.com>
5746
5747 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5748 lookup_symbol_search_name.
5749
a67a1c41
AB
57502020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5751
5752 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5753 redundant local variable.
5754 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5755 reference, not pointer, update code accordingly.
5756
a7b4ff4f
SM
57572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5758 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5759
5760 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5761 * jit.c (jit_breakpoint_re_set_internal): Use the
5762 `skip_jit_symbol_lookup` field.
5763
2340e834
SM
57642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5765 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5766
5767 * jit.c (jit_read_descriptor): Define the descriptor address once,
5768 use twice.
5769 (jit_breakpoint_deleted): Move the declaration of the loop variable
5770 `iter` into the loop header.
5771 (jit_breakpoint_re_set_internal): Move the declaration of the local
5772 variable `objf_data` to the first point of definition.
5773 (jit_event_handler): Move the declaration of local variables
5774 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5775 Rename `objf` to `jited`.
5776
c1072906
SM
57772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5778
5779 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5780 Remove.
5781 * jit.c (get_jiter_objfile_data): Update.
5782
c8474dc3
TBA
57832020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5784 Simon Marchi <simon.marchi@polymtl.ca>
5785
5786 * jit.c (struct jit_program_space_data): Remove.
5787 (jit_program_space_key): Remove.
5788 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5789 stuff.
5790 (get_jit_program_space_data): Remove.
5791 (jit_breakpoint_deleted): Iterate on all of the program space's
5792 objfiles.
5793 (jit_inferior_init): Likewise.
5794 (jit_breakpoint_re_set_internal): Likewise. Also change return
5795 type to void.
5796 (jit_breakpoint_re_set): Pass current_program_space to
5797 jit_breakpoint_re_set_internal.
5798
77208eb7
SM
57992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5800
5801 * jit.h (struct jiter_objfile_data) <cached_code_address,
5802 jit_breakpoint>: Move to here from ...
5803 * jit.c (jit_program_space_data): ... here.
5804 (jiter_objfile_data::~jiter_objfile_data): Update.
5805 (jit_breakpoint_deleted): Update.
5806 (jit_breakpoint_re_set_internal): Update.
5807
8c1c720f
SM
58082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5809
5810 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5811 checks.
5812 (jit_read_descriptor): Remove NULL check.
5813 (jit_event_handler): Add an assertion.
5814
0e74a041
SM
58152020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5816
5817 * jit.h (struct jit_objfile_data): Split into...
5818 (struct jiter_objfile_data): ... this ...
5819 (struct jited_objfile_data): ... and this.
5820 * objfiles.h (struct objfile) <jit_data>: Remove.
5821 <jiter_data, jited_data>: New fields.
5822 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5823 (jiter_objfile_data::~jiter_objfile_data): ... this.
5824 (get_jit_objfile_data): Rename to ...
5825 (get_jiter_objfile_data): ... this.
5826 (add_objfile_entry): Update.
5827 (jit_read_descriptor): Use get_jiter_objfile_data.
5828 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5829 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5830 (jit_inferior_exit_hook): Use objfile's jited_data field.
5831
238b5c9f
SM
58322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5833
5834 * jit.h: Forward-declare `struct minimal_symbol`.
5835 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5836 constructor, destructor, and an objfile* field.
5837 * jit.c (jit_objfile_data): Remove.
5838 (struct jit_objfile_data): Migrate from here to jit.h.
5839 (jit_objfile_data::~jit_objfile_data): New destructor
5840 implementation with code moved from free_objfile_data.
5841 (free_objfile_data): Delete.
5842 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5843 (jit_find_objf_with_entry_addr): Ditto.
5844 (jit_inferior_exit_hook): Ditto.
5845 (_initialize_jit): Remove the call to
5846 register_objfile_data_with_cleanup.
5847 * objfiles.h (struct objfile) <jit_data>: New field.
5848
fe053b9e
TBA
58492020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5850
5851 * jit.h: Forward-declare `struct objfile`.
5852 (jit_event_handler): Add a second parameter, the JITer objfile.
5853 * jit.c (jit_read_descriptor): Change the signature to take the
5854 JITer objfile as an argument instead of the jit_program_space_data.
5855 (jit_inferior_init): Update the call to jit_read_descriptor.
5856 (jit_event_handler): Use the new JITer objfile argument when calling
5857 jit_read_descriptor.
5858 * breakpoint.c (handle_jit_event): Update the call to
5859 jit_event_handler to pass the JITer objfile.
5860
4cec0c66
JB
58612020-07-21 John Baldwin <jhb@FreeBSD.org>
5862
5863 * gdbarch.c: Regenerate.
5864 * gdbarch.h: Regenerate.
5865 * gdbarch.sh (handle_segmentation_fault): Remove method.
5866 * infrun.c (handle_segmentation_fault): Remove.
5867 (print_signal_received_reason): Remove call to
5868 handle_segmentation_fault.
5869
0e42f66a
JB
58702020-07-21 John Baldwin <jhb@FreeBSD.org>
5871
5872 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5873 Rename to sparc64_linux_report_signal_info and add siggnal
5874 argument.
5875 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5876 instead of sparc64_linux_handle_segmentation_fault.
5877
77bdfeb2
JB
58782020-07-21 John Baldwin <jhb@FreeBSD.org>
5879
5880 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5881 i386_linux_report_signal_info instead of
5882 i386_linux_handle_segmentation_fault.
5883 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5884 to i386_linux_report_signal_info and add siggnal argument.
5885 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5886 of i386_linux_handle_segmentation_fault.
5887 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5888 to i386_linux_report_signal_info and add siggnal argument.
5889
ad97bfc5
JB
58902020-07-21 John Baldwin <jhb@FreeBSD.org>
5891
5892 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5893 hook if present.
5894
272bb05c
JB
58952020-07-21 John Baldwin <jhb@FreeBSD.org>
5896
5897 * gdbarch.c: Regenerate.
5898 * gdbarch.h: Regenerate.
5899 * gdbarch.sh (report_signal_info): New method.
5900 * infrun.c (print_signal_received_reason): Invoke gdbarch
5901 report_signal_info hook if present.
5902
baf8791e
AB
59032020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5904
5905 * python/py-registers.c : Add 'unordered_map' include.
5906 (gdbpy_new_reggroup): Renamed to...
5907 (gdbpy_get_reggroup): ...this. Update to only create register
5908 group descriptors when needed.
5909 (gdbpy_reggroup_iter_next): Update.
5910
f7306dac
AB
59112020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5912
5913 * python/py-registers.c (gdbpy_register_object_data): New static
5914 global.
5915 (gdbpy_register_object_data_init): New function.
5916 (gdbpy_new_register_descriptor): Renamed to...
5917 (gdbpy_get_register_descriptor): ...this, and update to reuse
5918 existing register descriptors where possible.
5919 (gdbpy_register_descriptor_iter_next): Update.
5920 (gdbpy_initialize_registers): Register new gdbarch data.
5921
05c309a8
SM
59222020-07-21 Simon Marchi <simon.marchi@efficios.com>
5923
5924 * linux-nat.c (stopped_pids): Make static.
5925
d1fd641e
SM
59262020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5927
5928 PR ada/26235
5929 * gdbtypes.c (ada_discrete_type_low_bound,
5930 ada_discrete_type_high_bound): Handle undefined bounds.
5931
1de14d77
KR
59322020-07-21 Kamil Rytarowski <n54@gmx.com>
5933
5934 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5935 declaration.
5936 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5937 function.
5938
ed810cc7
JB
59392020-07-20 John Baldwin <jhb@FreeBSD.org>
5940
5941 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5942 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5943 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5944 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5945 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5946 method.
5947
ae5369e7
LC
59482020-07-20 Ludovic Courtès <ludo@gnu.org>
5949
5950 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5951 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5952 which are deprecated in Guile 3.0.
5953 * configure.ac (try_guile_versions): Add "guile-3.0".
5954 * configure (try_guile_versions): Regenerate.
5955 * NEWS: Update entry.
5956
68cf161c
LC
59572020-07-20 Ludovic Courtès <ludo@gnu.org>
5958 Doug Evans <dje@google.com>
5959
5960 PR gdb/21104
5961 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5962 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5963 USING_GUILE_BEFORE_2_2.
5964 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5965 Change type to 'scm_t_port_type *'.
5966 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5967 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5968 parameter and honor it. Update callers.
5969 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5970 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5971 functions.
5972 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5973 USING_GUILE_BEFORE_2_2.
5974 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5975 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5976 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5977 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5978 and 'SCM_PORT_TYPE'.
5979 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5980 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5981 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5982 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5983 [!USING_GUILE_BEFORE_2_2]: New functions.
5984 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5985 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5986 'gdbscm_memory_port_read'.
5987 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5988 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5989 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5990 function.
5991 (ioscm_init_memory_port): Remove.
5992 (ioscm_init_memory_port_stream): New function
5993 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5994 function.
5995 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5996 Return scm_from_uint (0).
5997 (gdbscm_set_memory_port_read_buffer_size_x)
5998 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5999 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6000 Return scm_from_uint (0).
6001 (gdbscm_set_memory_port_write_buffer_size_x)
6002 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6003 * configure.ac (try_guile_versions): Add "guile-2.2".
6004 * configure: Regenerate.
6005 * NEWS: Add entry.
6006
aee91db3
TT
60072020-07-18 Tom Tromey <tom@tromey.com>
6008
6009 * linux-nat.c (linux_multi_process): Remove.
6010 (linux_nat_target::supports_multi_process): Return true.
6011
0e267416
AB
60122020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6013
6014 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6015 (riscv_lookup_target_description): Return pointer out of
6016 unique_ptr.
6017 * target-descriptions.c (allocate_target_description): Add
6018 comment.
6019 (target_desc_deleter::operator()): Likewise.
6020 * target-descriptions.h (struct target_desc_deleter): Moved to
6021 gdbsupport/tdesc.h.
6022 (target_desc_up): Likewise.
6023
f80c8ec4
TT
60242020-07-17 Tom Tromey <tromey@adacore.com>
6025
6026 * linux-nat.c (linux_nat_target::supports_non_stop)
6027 (linux_nat_target::always_non_stop_p): Use "true".
6028 (linux_nat_target::supports_disable_randomization): Use "true" and
6029 "false".
6030
d0ce17d8
CT
60312020-07-16 Caroline Tice <cmtice@google.com>
6032
6033 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6034 (RNGLIST_HEADER_SIZE64): New constant definition.
6035 (struct dwop_section_names): Add rnglists_dwo.
6036 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6037 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6038 (struct dwo_sections): Add rnglists field.
6039 (read_attribut_reprocess): Add tag parameter.
6040 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6041 (cu_debug_rnglists_section): New function (decl & definition).
6042 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6043 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6044 die whose range is being checked; get rnglist section from
6045 cu_debug_rnglists_section, to get from either objfile or dwo file as
6046 appropriate. Add cases for DW_RLE_base_addressx,
6047 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6048 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6049 test inside if-condition and updating complaint message.
6050 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6051 dwarf2_rnglists_process.
6052 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6053 dwarf2_ranges_process.
6054 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6055 need_ranges_base and update comment appropriately. Also pass die tag
6056 to dwarf2_ranges_read.
6057 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6058 need_ranges_base and update comment appropriately. Also pass die tag
6059 to dwarf2_ranges_process.
6060 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6061 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6062 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6063 need_ranges_base and update comment appropriately. Also pass die tag
6064 to read_attribute_reprocess and dwarf2_ranges_read.
6065 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6066 and update function comment appropriately.
6067 (read_loclist_index): Call read_loclists_rnglists_header instead of
6068 read_loclist_header.
6069 (read_rnglist_index): New function.
6070 (read_attribute_reprocess): Add tag parameter. Add code for
6071 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6072 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6073
3dcc261c
AB
60742020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6075
6076 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6077 being resolved.
6078
ccb9eba6
AB
60792020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6080
6081 * arch-utils.c (show_architecture): Update formatting of messages.
6082
cf88be68
SM
60832020-07-12 Simon Marchi <simon.marchi@efficios.com>
6084
6085 * gdbtypes.h (struct type) <bounds>: Handle array and string
6086 types.
6087 * ada-lang.c (assign_aggregate): Use type::bounds on
6088 array/string type.
6089 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6090 * c-varobj.c (c_number_of_children): Likewise.
6091 (c_describe_child): Likewise.
6092 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6093 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6094 (f_type_print_base): Likewise.
6095 * f-valprint.c (f77_array_offset_tbl): Likewise.
6096 (f77_get_upperbound): Likewise.
6097 (f77_print_array_1): Likewise.
6098 * guile/scm-type.c (gdbscm_type_range): Likewise.
6099 * m2-typeprint.c (m2_array): Likewise.
6100 (m2_is_long_set_of_type): Likewise.
6101 * m2-valprint.c (get_long_set_bounds): Likewise.
6102 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6103 * python/py-type.c (typy_range): Likewise.
6104 * rust-lang.c (rust_internal_print_type): Likewise.
6105 * type-stack.c (type_stack::follow_types): Likewise.
6106 * valarith.c (value_subscripted_rvalue): Likewise.
6107 * valops.c (value_cast): Likewise.
6108
509971ae
SM
61092020-07-12 Simon Marchi <simon.marchi@efficios.com>
6110
6111 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6112 callers to use the equivalent accessor methods.
6113
107406b7
SM
61142020-07-12 Simon Marchi <simon.marchi@efficios.com>
6115
6116 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6117 (struct type) <bit_stride>: New method.
6118 (TYPE_BIT_STRIDE): Remove.
6119 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6120
bb789949
SM
61212020-07-12 Simon Marchi <simon.marchi@efficios.com>
6122
6123 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6124 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6125 callers to use the equivalent accessor methods instead.
6126
39498edb
SM
61272020-07-12 Simon Marchi <simon.marchi@efficios.com>
6128
6129 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6130 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6131 callers to use the equivalent accessor methods instead.
6132
3b606f38
SM
61332020-07-12 Simon Marchi <simon.marchi@efficios.com>
6134
6135 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6136 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6137 to use dynamic_prop::kind.
6138
064d9cb9
SM
61392020-07-12 Simon Marchi <simon.marchi@efficios.com>
6140
6141 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6142 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6143 to get the bound property's kind and check against
6144 PROP_UNDEFINED.
6145
5537ddd0
SM
61462020-07-12 Simon Marchi <simon.marchi@efficios.com>
6147
6148 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6149 all callers to use type::range_bounds followed by
6150 dynamic_prop::{low,high}.
6151
8c2e4e06
SM
61522020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6153
6154 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6155 const_val, set_const_val, baton, set_locexpr, set_loclist,
6156 set_addr_offset, variant_parts, set_variant_parts,
6157 original_type, set_original_type>: New methods.
6158 <kind>: Rename to...
6159 <m_kind>: ... this. Update all users to use the new methods
6160 instead.
6161 <data>: Rename to...
6162 <m_data>: ... this. Update all users to use the new methods
6163 instead.
6164
7c6f2712
SM
61652020-07-12 Simon Marchi <simon.marchi@efficios.com>
6166
6167 * gdbtypes.c (get_discrete_bounds): Return failure if
6168 the range type's bounds are not both defined and constant
6169 values.
6170 (get_array_bounds): Update comment. Remove undefined bound check.
6171
599088e3
SM
61722020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6173
6174 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6175 the type::bounds method directly.
6176
c4dfcb36
SM
61772020-07-12 Simon Marchi <simon.marchi@efficios.com>
6178
6179 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6180 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6181 are used to set the range type's bounds to use set_bounds.
6182
0a278aa7
PW
61832020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6184
6185 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6186
cce20f10
PA
61872020-07-10 Pedro Alves <pedro@palves.net>
6188
6189 * gdbthread.h (inferior_ref): Define.
6190 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6191 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6192 * thread.c
6193 (scoped_restore_current_thread::restore):
6194 Adjust to gdb::ref_ptr.
6195 (scoped_restore_current_thread::~scoped_restore_current_thread):
6196 Remove manual decref handling.
6197 (scoped_restore_current_thread::scoped_restore_current_thread):
6198 Adjust to use
6199 inferior_ref::new_reference/thread_info_ref::new_reference.
6200 Incref the thread before calling get_frame_id instead of after.
6201 Let TARGET_CLOSE_ERROR propagate.
6202
6d7aa592
PA
62032020-07-10 Pedro Alves <pedro@palves.net>
6204
6205 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6206 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6207 NOT_AVAILABLE_ERROR.
6208 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6209 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6210
b3e3a4c1
SM
62112020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6212 Pedro Alves <pedro@palves.net>
6213
6214 PR gdb/26199
6215 * infrun.c (threads_are_resumed_pending_p): Delete.
6216 (do_target_wait): Remove threads_are_executing and
6217 threads_are_resumed_pending_p checks from the inferior_matches
6218 lambda. Update comments.
6219
d6cc5d98
PA
62202020-07-10 Pedro Alves <pedro@palves.net>
6221
6222 PR gdb/26199
6223 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6224 executing threads.
6225
7d3badc6
PA
62262020-07-10 Pedro Alves <pedro@palves.net>
6227
6228 PR gdb/26199
6229 * infrun.c (handle_no_resumed): Handle multiple targets.
6230
42bd97a6
PA
62312020-07-10 Pedro Alves <pedro@palves.net>
6232
6233 PR gdb/26199
6234 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6235 target_is_async_p.
6236
43667cc6
PA
62372020-07-10 Pedro Alves <pedro@palves.net>
6238
6239 PR gdb/26199
6240 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6241 threads, not all threads.
6242
96118d11
PA
62432020-07-10 Pedro Alves <pedro@palves.net>
6244
6245 PR gdb/26199
6246 * remote.c (remote_target::open_1): Pass remote target pointer as
6247 data to create_async_event_handler.
6248 (remote_async_inferior_event_handler): Mark async event handler
6249 before returning if the remote target still has either pending
6250 events or unacknowledged notifications.
6251
54904d81
JB
62522020-07-10 John Baldwin <jhb@FreeBSD.org>
6253
6254 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6255 declaration.
6256 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6257 function.
6258
f37e5866
JB
62592020-07-09 John Baldwin <jhb@FreeBSD.org>
6260
6261 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6262 inferior_ptid.
6263
fc238d4a
JB
62642020-07-09 John Baldwin <jhb@FreeBSD.org>
6265
6266 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6267 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6268 AT_FREEBSD_PS_STRINGS.
6269
6e2469ff
HD
62702020-07-08 Hannes Domani <ssbssa@yahoo.de>
6271
6272 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6273 of debugfile path on Windows.
6274
d1076c41
JB
62752020-07-08 John Baldwin <jhb@FreeBSD.org>
6276
6277 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6278 argument to 'data'.
6279
15f3b077
TT
62802020-07-08 Tom Tromey <tromey@adacore.com>
6281
6282 * ada-lang.c (ada_exception_message_1): Use read_memory.
6283
9fc501fd
AB
62842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6285
6286 PR python/22748
6287 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6288 special handling for inline frames.
6289 * findvar.c (value_of_register_lazy): Skip inline frames when
6290 creating lazy register values.
6291 * frame.c (frame_id_computed_p): Delete definition.
6292 * frame.h (frame_id_computed_p): Delete declaration.
6293
64cb3757
AB
62942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6295
6296 * NEWS: Mention additions to Python API.
6297 * python/py-arch.c (archpy_register_groups): New function.
6298 (arch_object_methods): Add 'register_groups' method.
6299 * python/py-registers.c (reggroup_iterator_object): New struct.
6300 (reggroup_object): New struct.
6301 (gdbpy_new_reggroup): New function.
6302 (gdbpy_reggroup_to_string): New function.
6303 (gdbpy_reggroup_name): New function.
6304 (gdbpy_reggroup_iter): New function.
6305 (gdbpy_reggroup_iter_next): New function.
6306 (gdbpy_new_reggroup_iterator): New function
6307 (gdbpy_initialize_registers): Register new types.
6308 (reggroup_iterator_object_type): Define new Python type.
6309 (gdbpy_reggroup_getset): New static global.
6310 (reggroup_object_type): Define new Python type.
6311 * python/python-internal.h
6312
0f767f94
AB
63132020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6314
6315 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6316 * python/py-arch.c (archpy_registers): New function.
6317 (arch_object_methods): Add 'registers' method.
6318 * python/py-registers.c: New file.
6319 * python/python-internal.h
6320 (gdbpy_new_register_descriptor_iterator): Declare.
6321 (gdbpy_initialize_registers): Declare.
6322 * python/python.c (do_start_initialization): Call
6323 gdbpy_initialize_registers.
6324 * NEWS: Mention additions to the Python API.
6325
87dbc774
AB
63262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6327
6328 * NEWS: Mention new Python API method.
6329 * python/py-unwind.c (pending_framepy_architecture): New function.
6330 (pending_frame_object_methods): Add architecture method.
6331
3bc98c0c
AB
63322020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6333
6334 * gdbarch.c: Regenerate.
6335 * gdbarch.h: Regenerate.
6336 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6337 (gdbarch_data): Use internal_error for the case where
6338 deprecated_set_gdbarch_data was originally needed.
6339 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6340 and use passed in obstack.
6341 (libunwind_frame_set_descr): Should no longer get back NULL from
6342 gdbarch_data.
6343 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6344 type.
6345 * user-regs.c (user_regs_init): Update parameters, and use passed
6346 in obstack.
6347 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6348 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6349
d8cc8af6
TV
63502020-07-06 Tom de Vries <tdevries@suse.de>
6351
6352 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6353 End-Of-Sequence in lte_is_less_than.
6354 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6355 "gdb: Don't reorder line table entries too much when sorting".
6356
947f7597
TV
63572020-07-06 Tom de Vries <tdevries@suse.de>
6358
6359 PR tui/26205
6360 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6361
1e7c1b22
TV
63622020-07-05 Tom de Vries <tdevries@suse.de>
6363
6364 PR build/26187
6365 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6366 std::uncaught_exceptions instead of deprecated
6367 std::uncaught_exception.
6368
a36158ec
SM
63692020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6370
6371 * macroexp.h (macro_stringify): Return
6372 gdb::unique_xmalloc_ptr<char>.
6373 * macroexp.c (macro_stringify): Likewise.
6374 * macrotab.c (fixup_definition): Update.
6375
14d960c8
SM
63762020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6377
6378 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6379 (lex_one_token): Update.
6380 * macroexp.c (struct macro_buffer) <release>: Return
6381 gdb::unique_xmalloc_ptr<char>.
6382 (macro_stringify): Update.
6383 (macro_expand): Update.
6384 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6385 * macroexp.h (macro_expand_next): Likewise.
6386
211d5b1c
SM
63872020-07-02 Simon Marchi <simon.marchi@efficios.com>
6388
6389 * macroexp.h (macro_lookup_ftype): Remove.
6390 (macro_expand, macro_expand_once, macro_expand_next): Remove
6391 lookup function parameters, add scope parameter.
6392 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6393 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6394 * macroscope.h (standard_macro_lookup): Change parameter type
6395 to macro_scope.
6396 * macroscope.c (standard_macro_lookup): Likewise.
6397 * c-exp.y (lex_one_token): Update.
6398 * macrocmd.c (macro_expand_command): Likewise.
6399 (macro_expand_once_command): Likewise.
6400
b1a35af2
SM
64012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6402
6403 * inf-loop.c (inferior_event_handler): Remove client_data param.
6404 * inf-loop.h (inferior_event_handler): Likewise.
6405 * infcmd.c (step_1): Adjust.
6406 * infrun.c (proceed): Adjust.
6407 (fetch_inferior_event): Remove client_data param.
6408 (infrun_async_inferior_event_handler): Adjust.
6409 * infrun.h (fetch_inferior_event): Remove `void *` param.
6410 * linux-nat.c (handle_target_event): Adjust.
6411 * record-btrace.c (record_btrace_handle_async_inferior_event):
6412 Adjust.
6413 * record-full.c (record_full_async_inferior_event_handler):
6414 Adjust.
6415 * remote.c (remote_async_inferior_event_handler): Adjust.
6416
1cdf9e33
TT
64172020-07-01 Tom Tromey <tom@tromey.com>
6418
6419 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6420 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6421
32c1e210
TT
64222020-07-01 Tom Tromey <tom@tromey.com>
6423
6424 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6425 tui_gen_win_info.
6426 (tui_win_info::make_window): Merge with
6427 tui_gen_win_info::make_window.
6428 (tui_win_info::make_visible): Move from tui_gen_win_info.
6429 * tui/tui-win.c (tui_win_info::max_width): Move from
6430 tui_gen_win_info.
6431 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6432 type.
6433 <window_factory>: Likewise.
6434 * tui/tui-layout.c (tui_win_info::resize): Move from
6435 tui_gen_win_info.
6436 (make_standard_window): Change return type.
6437 (get_locator_window, tui_get_window_by_name): Likewise.
6438 (tui_layout_window::apply): Remove a cast.
6439 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6440 (struct tui_win_info): Merge with tui_gen_win_info.
6441 (struct tui_gen_win_info): Remove.
6442
a30cb6da
TT
64432020-07-01 Tom Tromey <tom@tromey.com>
6444
6445 * tui/tui-stack.h (struct tui_locator_window): Derive from
6446 tui_win_info.
6447 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6448 <can_box>: New method.
6449
1eb2161f
TT
64502020-07-01 Tom Tromey <tom@tromey.com>
6451
6452 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6453
7134f2eb
TT
64542020-07-01 Tom Tromey <tom@tromey.com>
6455
6456 * tui/tui-regs.c (tui_data_window::display_registers_from)
6457 (tui_data_window::display_registers_from)
6458 (tui_data_window::first_data_item_displayed)
6459 (tui_data_window::delete_data_content_windows): Update.
6460 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6461 Remove.
6462 (tui_data_window::check_register_values): Update.
6463 (tui_data_item_window::rerender): Add parameters. Update.
6464 (tui_data_item_window::refresh_window): Remove.
6465 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6466 virtual.
6467 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6468 tui_gen_win_info.
6469 <refresh_window, max_height, min_height>: Remove.
6470 <rerender>: Add parameters.
6471 <x, y, visible>: New members.
6472 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6473 <m_item_width>: New member.
6474
22b7b041
TT
64752020-07-01 Tom Tromey <tom@tromey.com>
6476
6477 * tui/tui-regs.c (tui_data_window::show_register_group)
6478 (tui_data_window::check_register_values): Update.
6479 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6480 from item_no.
6481
c9753adb
TT
64822020-07-01 Tom Tromey <tom@tromey.com>
6483
6484 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6485 useless "if".
6486
9ab26b4a
TT
64872020-07-01 Tom Tromey <tom@tromey.com>
6488
6489 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6490 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6491
e555083f
TT
64922020-07-01 Tom Tromey <tom@tromey.com>
6493
6494 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6495 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6496 (struct tui_line_or_address): Move from tui-data.h.
6497 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6498 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6499 (tui_cmd_window, tui_source_window_base, tui_source_window)
6500 (tui_disasm_window): Don't declare.
6501 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6502 to tui-winsource.h.
6503 (SINGLE_KEY): Move to tui-stack.c.
6504
7a02bab7
TT
65052020-07-01 Tom Tromey <tom@tromey.com>
6506
6507 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6508 std::string.
6509 * tui/tui-regs.c (class tab_expansion_file): New.
6510 (tab_expansion_file::write): New method.
6511 (tui_register_format): Change return type. Use
6512 tab_expansion_file.
6513 (tui_get_register, tui_data_window::display_registers_from)
6514 (tui_data_item_window::rerender): Update.
6515 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6516 * tui/tui-io.c (tui_expand_tabs): Remove.
6517
ea68593b
TT
65182020-07-01 Tom Tromey <tom@tromey.com>
6519
6520 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6521
a8caed5d
FS
65222020-07-01 Fangrui Song <maskray@google.com>
6523
6524 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6525
9cdf9820
AKS
65262020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6527
6528 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6529 forms for DW_AT_associated and DW_AT_allocated attributes,
6530 which is already checked in function attr_to_dynamic_prop.
6531
a1520ad8
TT
65322020-06-30 Tom Tromey <tromey@adacore.com>
6533
6534 * dwarf2/read.c (quirk_rust_enum): Correctly call
6535 alloc_rust_variant for default-less enum.
6536
5ac58899
TT
65372020-06-30 Tom Tromey <tromey@adacore.com>
6538
6539 PR build/26183:
6540 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6541 gdb::to_string.
6542
19b187a9
SM
65432020-06-29 Simon Marchi <simon.marchi@efficios.com>
6544
6545 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6546 * gdbarch.h: Re-generate.
6547
cd4c4c07
TT
65482020-06-28 Tom Tromey <tom@tromey.com>
6549
6550 * command.h (cmd_types): Remove.
6551 (cmd_type): Don't declare.
6552 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6553 typedef.
6554 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6555 * cli/cli-decode.c (cmd_type): Remove.
6556
05779d57
PA
65572020-06-27 Pedro Alves <palves@redhat.com>
6558
6559 * fork-child.c (prefork_hook): Adjust.
6560 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6561 Delete.
6562 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6563 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6564 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6565 Remove declarations.
6566 (struct inferior) <set_tty, tty>: New methods.
6567 (struct inferior) <terminal>: Rename to ...
6568 (struct inferior) <m_terminal>: ... this and make private.
6569 * main.c (captured_main_1): Adjust.
6570 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6571 (mi_cmd_inferior_tty_show): Adjust.
6572 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6573 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6574
1776e3e5
NA
65752020-06-26 Nick Alcock <nick.alcock@oracle.com>
6576
6577 * configure.ac: Add --enable-libctf: handle --disable-static
6578 properly.
6579 * acinclude.m4: sinclude ../config/enable.m4.
6580 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6581 (LIBCTF): Substitute in.
6582 (CTF_DEPS): New, likewise.
6583 (CLIBS): libctf needs symbols from libbfd: move earlier.
6584 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6585 flags.
6586 * ctfread.c: Surround in ENABLE_LIBCTF.
6587 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6588 * configure: Regenerate.
6589 * config.in: Likewise.
6590
58373b80
SM
65912020-06-25 Simon Marchi <simon.marchi@efficios.com>
6592
6593 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6594
277474ee
SM
65952020-06-25 Simon Marchi <simon.marchi@efficios.com>
6596
6597 * inferior.h (struct inferior) <terminal>: Change type to
6598 gdb::unique_xmalloc_ptr<char>.
6599 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6600 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6601 field, adjust to unique pointer.
6602 (get_inferior_io_terminal): Adjust to unique pointer.
6603
6d74da72
AB
66042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6605
6606 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6607 registers, not just the known core set of registers.
6608
2e52d038
AB
66092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6610
6611 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6612 fflags, frm, and fcsr registers.
6613 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6614 restore groups.
6615 (riscv_tdesc_unknown_reg): New function.
6616 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6617 tdesc_use_registers.
6618 * riscv-tdep.h (struct gdbarch_tdep): Add
6619 unknown_csrs_first_regnum, unknown_csrs_count,
6620 duplicate_fflags_regnum, duplicate_frm_regnum, and
6621 duplicate_fcsr_regnum fields.
6622
be64fd07
AB
66232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6624
6625 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6626 callback, use the callback (when not null) to help number unknown
6627 registers.
6628 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6629 (tdesc_use_registers): Add extra parameter to declaration.
6630
3b9fce96
AB
66312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6632
6633 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6634 in the file.
6635 (class riscv_pending_register_alias): Likewise.
6636 (riscv_register_feature::register_info): Change 'required_p' field
6637 to 'required', and change its type. Add 'check' member function.
6638 (riscv_register_feature::register_info::check): Define new member
6639 function.
6640 (riscv_xreg_feature): Change initialisation of 'required' field.
6641 (riscv_freg_feature): Likewise.
6642 (riscv_virtual_feature): Likewise.
6643 (riscv_csr_feature): Likewise.
6644 (riscv_check_tdesc_feature): Take extra parameter, the csr
6645 tdesc_feature, rewrite the function to use the new
6646 riscv_register_feature::register_info::check function.
6647 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6648
865bad26
AB
66492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6650
6651 * features/Makefile: Remove all references to the deleted files
6652 below.
6653 * features/riscv/32bit-csr.c: Deleted.
6654 * features/riscv/32bit-csr.xml: Deleted.
6655 * features/riscv/64bit-csr.c: Deleted.
6656 * features/riscv/64bit-csr.xml: Deleted.
6657 * features/riscv/rebuild-csr-xml.sh: Deleted.
6658
ed69cbc8
AB
66592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6660
6661 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6662 whitespace error for declaration of names member variable.
6663 (struct riscv_register_feature): Add new prefer_first_name member
6664 variable, and fix whitespace error in declaration of registers.
6665 (riscv_xreg_feature): Initialize prefer_first_name field.
6666 (riscv_freg_feature): Likewise.
6667 (riscv_virtual_feature): Likewise.
6668 (riscv_csr_feature): Likewise.
6669 (riscv_register_name): Expand on comments. Remove register name
6670 modifications for CSR and virtual registers.
6671
4445e8f5
AB
66722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6673
6674 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6675 errors.
6676
767a879e
AB
66772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6678
6679 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6680 riscv-opc.h.
6681 (class riscv_pending_register_alias): New class.
6682 (riscv_check_tdesc_feature): Take vector of pending aliases and
6683 populate it as appropriate.
6684 (riscv_setup_register_aliases): Delete.
6685 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6686 to riscv_check_tdesc_feature in all cases. Use the vector to
6687 create the register aliases.
6688
bb6e55f3
RO
66892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6690
6691 * sol2-tdep.c (sol2_static_transform_name): Remove.
6692 (sol2_init_abi): Don't register it.
6693 * gdbarch.sh (static_transform_name): Remove.
6694 * gdbarch.c, gdbarch.h: Regenerate.
6695
6696 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6697 gdbarch_static_transform_name.
6698 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6699 * stabsread.c (define_symbol) <'X'>: Remove.
6700 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6701 handling.
6702 <'V'>: Likewise.
6703 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6704 <'S'>: Remove call to gdbarch_static_transform_name.
6705
c6d36836
RO
67062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6707
6708 * procfs.c (procfs_pre_trace): New function.
6709 (procfs_target::create_inferior): Pass it to fork_inferior.
6710
a7e6196b
RO
67112020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6712
6713 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6714 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6715 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6716 sol2-tdep.o, sparc-sol2-tdep.o.
6717 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6718 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6719 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6720 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6721
d412e696
RO
67222020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6723
6724 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6725 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6726 Call sol2_init_abi.
6727 Remove calls to set_gdbarch_skip_solib_resolver,
6728 set_gdbarch_core_pid_to_str.
6729 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6730 (i386_sol2_static_transform_name): Remove.
6731 (i386_sol2_init_abi): Call sol2_init_abi.
6732 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6733 set_gdbarch_static_transform_name,
6734 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6735 Use sol2_sigtramp_p.
6736 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6737 (sol2_sigtramp_p): New function.
6738 (sol2_static_transform_name): New function.
6739 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6740 (sol2_init_abi): New function.
6741 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6742 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6743 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6744 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6745 (sparc_sol2_static_transform_name): Remove.
6746 (sparc32_sol2_init_abi): Call sol2_init_abi.
6747 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6748 set_gdbarch_static_transform_name,
6749 set_gdbarch_skip_solib_resolver,
6750 set_gdbarch_core_pid_to_str.
6751 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6752 (sparc_sol2_static_transform_name): Remove
6753 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6754 call sol2_sigtramp_p.
6755 (sparc64_sol2_init_abi): Call sol2_init_abi.
6756 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6757 set_gdbarch_static_transform_name,
6758 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6759
a8654e7d
PW
67602020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6761
6762 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6763 * exec.c (validate_exec_file): If from_tty, set both
6764 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6765 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6766 and from_tty, unconditionally ask a confirmation.
6767
caa7fd04
AB
67682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6769
6770 * target-descriptions.c (tdesc_architecture_name): Protect against
6771 NULL pointer dereference.
6772 (maint_print_xml_tdesc_cmd): New function.
6773 (_initialize_target_descriptions): Register new 'maint print
6774 xml-tdesc' command and give it the filename completer.
6775 * NEWS: Mention new 'maint print xml-tdesc' command.
6776
fbf42f4e
AB
67772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6778
6779 * target-descriptions.c (class tdesc_compatible_info): New class.
6780 (struct target_desc): Change type of compatible vector.
6781 (tdesc_compatible_p): Update for change in type of
6782 target_desc::compatible.
6783 (tdesc_compatible_info_list): New function.
6784 (tdesc_compatible_info_arch_name): New function.
6785 (tdesc_add_compatible): Update for change in type of
6786 target_desc::compatible.
6787 (print_c_tdesc::visit_pre): Likewise.
6788
20821f4e
AB
67892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6790
6791 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6792 whitespace to underscore.
6793 (maint_print_c_tdesc_cmd): Use fake filename for target
6794 descriptions that came from the target.
6795 (_initialize_target_descriptions): Add filename command completion
6796 for 'maint print c-tdesc'.
6797
1fb5ee62
SM
67982020-06-23 Simon Marchi <simon.marchi@efficios.com>
6799
6800 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6801 lines.
6802
fc3ecb3e
SM
68032020-06-23 Simon Marchi <simon.marchi@efficios.com>
6804
6805 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6806 lines.
6807 (dwarf2_find_location_expression): Likewise.
6808 (call_site_parameter_matches): Likewise.
6809 (dwarf2_compile_expr_to_ax): Likewise.
6810 (disassemble_dwarf_expression): Likewise.
6811 (loclist_describe_location): Likewise.
6812
236ef034
PA
68132020-06-23 Pedro Alves <palves@redhat.com>
6814
6815 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6816 progspace-and-thread.h. Include scoped-mock-context.h instead.
6817 (register_to_value_test): Use scoped_mock_context.
6818 * regcache.c: Include "scoped-mock-context.h".
6819 (cooked_read_test): Don't error out if a target is already pushed.
6820 Use scoped_mock_context. Adjust.
6821 * scoped-mock-context.h: New file.
6822
39e7ecca
AB
68232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6824
6825 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6826 initializer.
6827 (ada_language::is_string_type_p): New member function.
6828 * c-lang.c (c_language_data): Delete la_is_string_type_p
6829 initializer.
6830 (cplus_language_data): Likewise.
6831 (asm_language_data): Likewise.
6832 (minimal_language_data): Likewise.
6833 * d-lang.c (d_language_data): Likewise.
6834 * f-lang.c (f_is_string_type_p): Delete function, implementation
6835 moved to f_language::is_string_type_p.
6836 (f_language_data): Delete la_is_string_type_p initializer.
6837 (f_language::is_string_type_p): New member function,
6838 implementation from f_is_string_type_p.
6839 * go-lang.c (go_is_string_type_p): Delete function, implementation
6840 moved to go_language::is_string_type_p.
6841 (go_language_data): Delete la_is_string_type_p initializer.
6842 (go_language::is_string_type_p): New member function,
6843 implementation from go_is_string_type_p.
6844 * language.c (language_defn::is_string_type_p): Define new member
6845 function.
6846 (default_is_string_type_p): Make static, add comment copied from
6847 header file.
6848 (unknown_language_data): Delete la_is_string_type_p initializer.
6849 (unknown_language::is_string_type_p): New member function.
6850 (auto_language_data): Delete la_is_string_type_p initializer.
6851 (auto_language::is_string_type_p): New member function.
6852 * language.h (language_data): Delete la_is_string_type_p field.
6853 (language_defn::is_string_type_p): Declare new function.
6854 (default_is_string_type_p): Delete desclaration, move comment to
6855 definition.
6856 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6857 moved to m2_language::is_string_type_p.
6858 (m2_language_data): Delete la_is_string_type_p initializer.
6859 (m2_language::is_string_type_p): New member function,
6860 implementation from m2_is_string_type_p.
6861 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6862 initializer.
6863 * opencl-lang.c (opencl_language_data): Likewise.
6864 * p-lang.c (pascal_is_string_type_p): Delete function,
6865 implementation moved to pascal_language::is_string_type_p.
6866 (pascal_language_data): Delete la_is_string_type_p initializer.
6867 (pascal_language::is_string_type_p): New member function,
6868 implementation from pascal_is_string_type_p.
6869 * rust-lang.c (rust_is_string_type_p): Delete function,
6870 implementation moved to rust_language::is_string_type_p.
6871 (rust_language_data): Delete la_is_string_type_p initializer.
6872 (rust_language::is_string_type_p): New member function,
6873 implementation from rust_is_string_type_p.
6874 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6875 is_string_type_p.
6876
4ffc13fb
AB
68772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6878
6879 * ada-lang.c (ada_language_data): Delete la_print_typedef
6880 initializer.
6881 (ada_language::print_typedef): New member function.
6882 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6883 (cplus_language_data): Likewise.
6884 (asm_language_data): Likewise.
6885 (minimal_language_data): Likewise.
6886 * d-lang.c (d_language_data): Likewise.
6887 * f-lang.c (f_language_data): Likewise.
6888 (f_language::print_typedef): New member function.
6889 * go-lang.c (go_language_data): Delete la_print_typedef
6890 initializer.
6891 * language.c (language_defn::print_typedef): Define member
6892 function.
6893 (unknown_language_data): Delete la_print_typedef initializer.
6894 (unknown_language::print_typedef): New member function.
6895 (auto_language_data): Delete la_print_typedef initializer.
6896 (auto_language::print_typedef): New member function.
6897 * language.h (language_data): Delete la_print_typedef field.
6898 (language_defn::print_typedef): Declare new member function.
6899 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6900 (default_print_typedef): Delete declaration.
6901 * m2-lang.c (m2_language_data): Delete la_print_typedef
6902 initializer.
6903 (m2_language::print_typedef): New member function.
6904 * objc-lang.c (objc_language_data): Delete la_print_typedef
6905 initializer.
6906 * opencl-lang.c (opencl_language_data): Likewise.
6907 * p-lang.c (pascal_language_data): Likewise.
6908 (pascal_language::print_typedef): New member function.
6909 * rust-lang.c (rust_print_typedef): Delete function,
6910 implementation moved to rust_language::print_typedef.
6911 (rust_language): Delete la_print_typedef initializer.
6912 (rust_language::print_typedef): New member function,
6913 implementation from rust_print_typedef.
6914 * typeprint.c (default_print_typedef): Delete.
6915
d711ee67
AB
69162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6917
6918 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6919 (ada_language::printstr): New member function.
6920 * c-lang.c (c_language_data): Delete la_printstr initializer.
6921 (cplus_language_data): Likewise.
6922 (asm_language_data): Likewise.
6923 (minimal_language_data): Likewise.
6924 * d-lang.c (d_language_data): Likewise.
6925 * f-lang.c (f_printstr): Rename to f_language::printstr.
6926 (f_language_data): Delete la_printstr initializer.
6927 (f_language::printstr): New member function, implementation from
6928 f_printstr.
6929 * go-lang.c (go_language_data): Delete la_printstr initializer.
6930 * language.c (language_defn::printstr): Define new member
6931 function.
6932 (unk_lang_printstr): Delete.
6933 (unknown_language_data): Delete la_printstr initializer.
6934 (unknown_language::printstr): New member function.
6935 (auto_language_data): Delete la_printstr initializer.
6936 (auto_language::printstr): New member function.
6937 * language.h (language_data): Delete la_printstr field.
6938 (language_defn::printstr): Declare new member function.
6939 (LA_PRINT_STRING): Update call to printstr.
6940 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6941 (m2_language_data): Delete la_printstr initializer.
6942 (m2_language::printstr): New member function, implementation from
6943 m2_printstr.
6944 * objc-lang.c (objc_language_data): Delete la_printstr
6945 initializer.
6946 * opencl-lang.c (opencl_language_data): Likewise.
6947 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6948 (pascal_language_data): Delete la_printstr initializer.
6949 (pascal_language::printstr): New member function, implementation
6950 from pascal_printstr.
6951 * p-lang.h (pascal_printstr): Delete declaration.
6952 * rust-lang.c (rust_printstr): Update header comment.
6953 (rust_language_data): Delete la_printstr initializer.
6954 (rust_language::printstr): New member function.
6955
52b50f2c
AB
69562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6957
6958 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6959 (ada_language::printchar): New member function.
6960 * c-lang.c (c_language_data): Delete la_printchar initializer.
6961 (cplus_language_data): Likewise.
6962 (asm_language_data): Likewise.
6963 (minimal_language_data): Likewise.
6964 * d-lang.c (d_language_data): Likewise.
6965 * f-lang.c (f_printchar): Rename to f_language::printchar.
6966 (f_language_data): Delete la_printchar initializer.
6967 (f_language::printchar): New member function, implementation from
6968 f_printchar.
6969 * go-lang.c (go_language_data): Delete la_printchar initializer.
6970 * language.c (unk_lang_printchar): Delete.
6971 (language_defn::printchar): Define new member function.
6972 (unknown_language_data): Delete la_printchar initializer.
6973 (unknown_language::printchar): New member function.
6974 (auto_language_data): Delete la_printchar initializer.
6975 (auto_language::printchar): New member function.
6976 * language.h (language_data): Delete la_printchar field.
6977 (language_defn::printchar): Declare new member function.
6978 (LA_PRINT_CHAR): Update call to printchar.
6979 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6980 (m2_language::printchar): New member function.
6981 * objc-lang.c (objc_language_data): Delete la_printchar
6982 initializer.
6983 * opencl-lang.c (opencl_language_data): Likewise.
6984 * p-lang.c (pascal_language_data): Delete la_printchar
6985 initializer.
6986 (pascal_language::printchar): New member function.
6987 * rust-lang.c (rust_printchar): Rename to
6988 rust_language::printchar.
6989 (rust_language_data): Delete la_printchar initializer.
6990 (rust_language::printchar): New member function, implementation
6991 from rust_printchar.
6992
ec8cec5b
AB
69932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6994
6995 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6996 (ada_language_data): Delete la_emitchar initializer.
6997 (ada_language::emitchar): New member function, implementation from
6998 emit_char.
6999 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7000 (cplus_language_data): Likewise.
7001 (asm_language_data): Likewise.
7002 (minimal_language_data): Likewise.
7003 * d-lang.c (d_language_data): Likewise.
7004 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7005 (f_language_data): Delete la_emitchar initializer.
7006 (f_language::emitchar): New member function, implementation from
7007 f_emit_char.
7008 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7009 * language.c (unk_lang_emit_char): Delete.
7010 (language_defn::emitchar): New member function definition.
7011 (unknown_language_data): Delete la_emitchar initializer.
7012 (unknown_language::emitchar): New member function.
7013 (auto_language_data): Delete la_emitchar initializer.
7014 (auto_language::emitchar): New member function.
7015 * language.h (language_data): Delete la_emitchar field.
7016 (language_defn::emitchar): New member field declaration.
7017 (LA_EMIT_CHAR): Update call to emitchar.
7018 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7019 (m2_language_data): Delete la_emitchar initializer.
7020 (m2_language::emitchar): New member function, implementation from
7021 m2_emit_char.
7022 * objc-lang.c (objc_language_data): Delete la_emitchar
7023 initializer.
7024 * opencl-lang.c (opencl_language_data): Likewise.
7025 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7026 (pascal_language_data): Delete la_emitchar initializer.
7027 (pascal_language::emitchar): New member function, implementation
7028 from pascal_emit_char.
7029 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7030 (rust_language_data): Delete la_emitchar initializer.
7031 (rust_language::emitchar): New member function, implementation
7032 from rust_emitchar.
7033
1bf9c363
AB
70342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7035
7036 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7037 (ada_language_data): Delete la_post_parser initializer.
7038 (ada_language::post_parser): New member function.
7039 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7040 (cplus_language_data): Likewise.
7041 (asm_language_data): Likewise.
7042 (minimal_language_data): Likewise.
7043 * d-lang.c (d_language_data): Likewise.
7044 * f-lang.c (f_language_data): Likewise.
7045 * go-lang.c (go_language_data): Likewise.
7046 * language.c (unknown_language_data): Likewise.
7047 (auto_language_data): Likewise.
7048 * language.h (language_data): Delete la_post_parser field.
7049 (language_defn::post_parser): New member function.
7050 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7051 * objc-lang.c (objc_language_data): Likewise.
7052 * opencl-lang.c (opencl_language_data): Likewise.
7053 * p-lang.c (pascal_language_data): Likewise.
7054 * parse.c (parse_exp_in_context): Update call to post_parser.
7055 (null_post_parser): Delete definition.
7056 * parser-defs.h (null_post_parser): Delete declaration.
7057 * rust-lang.c (rust_language_data): Delete la_post_parser
7058 initializer.
7059
87afa652
AB
70602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7061
7062 * ada-lang.c (parse): Rename to ada_language::parser.
7063 (ada_language_data): Delete la_parser initializer.
7064 (ada_language::parser): New member function, implementation from
7065 parse.
7066 * c-lang.c (c_language_data): Delete la_parser initializer.
7067 (cplus_language_data): Likewise.
7068 (asm_language_data): Likewise.
7069 (minimal_language_data): Likewise.
7070 * d-lang.c (d_language_data): Likewise.
7071 (d_language::parser): New member function.
7072 * f-lang.c (f_language_data): Delete la_parser initializer.
7073 (f_language::parser): New member function.
7074 * go-lang.c (go_language_data): Delete la_parser initializer.
7075 (go_language::parser): New member function.
7076 * language.c (unk_lang_parser): Delete.
7077 (language_defn::parser): Define new member function.
7078 (unknown_language_data): Delete la_parser initializer.
7079 (unknown_language::parser): New member function.
7080 (auto_language_data): Delete la_parser initializer.
7081 (auto_language::parser): New member function.
7082 * language.h (language_data): Delete la_parser field.
7083 (language_defn::parser): Declare new member function.
7084 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7085 (m2_language::parser): New member function.
7086 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7087 * opencl-lang.c (opencl_language_data): Likewise.
7088 * p-lang.c (pascal_language_data): Likewise.
7089 (pascal_language::parser): New member function.
7090 * parse.c (parse_exp_in_context): Update call to parser.
7091 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7092 (rust_language::parser): New member function.
7093
37825800
AB
70942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7095
7096 * top.c (print_gdb_configuration): Print --with-python-libdir
7097 configuration value.
7098
5b860c93
PW
70992020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7100
7101 * NEWS: Mention change to the alias command.
7102
cf00cd6f
PW
71032020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7104
7105 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7106 (alias_command_completer)
7107 (make_alias_options_def_group): New functions.
7108 (alias_opts, alias_option_defs): New struct and array.
7109 (alias_usage_error): Update usage.
7110 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7111 Use option framework.
7112 (_initialize_cli_cmds): Update alias command help.
7113 Update aliases command help.
7114 (show_user):
7115 Add NULL for new default_args lookup_cmd argument.
7116 (valid_command_p): Rename to validate_aliased_command.
7117 Add NULL for new default_args lookup_cmd argument. Verify that the
7118 aliased_command has no default args.
7119 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7120 (lookup_cmd_1, lookup_cmd): New argument default_args.
7121 (add_alias_cmd):
7122 Add NULL for new default_args lookup_cmd argument.
7123 (print_help_for_command): Show default args under the layout
7124 alias some_alias = some_aliased_cmd some_alias_default_arg.
7125 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7126 xfree default_args in destructor.
7127 * cli/cli-script.c (process_next_line, do_define_command):
7128 Add NULL for new default_args lookup_cmd argument.
7129 * command.h: Declare new default_args argument in lookup_cmd
7130 and lookup_cmd_1.
7131 * completer.c (complete_line_internal_1):
7132 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7133 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7134 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7135 Likewise.
7136 * infcmd.c (_initialize_infcmd): Likewise.
7137 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7138 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7139 * python/py-param.c (add_setshow_generic): Likewise.
7140 * remote.c (_initialize_remote): Likewise.
7141 * top.c (execute_command): Prepend default_args if command has some.
7142 (set_verbose):
7143 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7144 * tracepoint.c (validate_actionline, encode_actions_1):
7145 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7146
bd920864
TBA
71472020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7148
7149 * jit.c (jit_read_descriptor): Use bool as the return type.
7150 (jit_breakpoint_re_set_internal): Use bool as the return type.
7151 Invert the return value logic; return true if the jit breakpoint
7152 has been successfully initialized.
7153 (jit_inferior_init): Update the call to
7154 jit_breakpoint_re_set_internal.
7155
f8098322
PA
71562020-06-22 Pedro Alves <palves@redhat.com>
7157
7158 PR gdb/25939
7159 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7160 Use the current inferior instead. Don't return
7161 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7162 wait again.
7163 * sol-thread.c (sol_thread_target::wait): Don't reference
7164 inferior_ptid.
7165 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7166 (sol_update_thread_list_callback): Use the current inferior's pid
7167 instead of inferior_ptid.
7168
196535a6
RO
71692020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7170
7171 * procfs.c: Cleanup many comments.
7172
7173 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7174 (AFTER_WATCHFLAG): Replace by value.
7175
7176 (MAIN_PROC_NAME_FORMAT): Inline ...
7177 (create_procinfo): ... here.
7178
7179 (procfs_debug_inferior): Remove SYS_exec handling.
7180 (syscall_is_exec): Likewise.
7181 (procfs_set_exec_trap): Likewise.
7182
7183 (syscall_is_lwp_exit): Inline in callers.
7184 (syscall_is_exit): Likewise.
7185 (syscall_is_exec): Likewise.
7186 (syscall_is_lwp_create): Likewise.
7187
7188 (invalidate_cache): Remove #if 0 code.
7189
7190 (make_signal_thread_runnable): Remove.
7191 (procfs_target::resume): Remove #if 0 code.
7192
cf6f3e86
RO
71932020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7194
7195 PR gdb/25939
7196 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7197 call ...
7198 (procfs_target::create_inferior): ... here.
7199
48e9cc84
PW
72002020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7201
7202 * exec.c (validate_exec_file): Ensure the build-id is up to
7203 date by calling reopen_exec_file (that checks file timestamp
7204 to decide to re-read the file).
7205
3922b302
PA
72062020-06-18 Pedro Alves <palves@redhat.com>
7207
7208 PR gdb/25412
7209 * gdbthread.h (delete_thread, delete_thread_silent)
7210 (find_thread_ptid): Update comments.
7211 * thread.c (current_thread_): New global.
7212 (is_current_thread): Move higher, and reimplement.
7213 (inferior_thread): Reimplement.
7214 (set_thread_exited): Use bool. Add assertions.
7215 (add_thread_silent): Simplify thread-reuse handling by always
7216 calling delete_thread.
7217 (delete_thread): Remove intro comment.
7218 (find_thread_ptid): Skip exited threads.
7219 (switch_to_thread_no_regs): Write to current_thread_.
7220 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7221 INFERIOR_PTID. Clear current_thread_.
7222
6dbdab44
PA
72232020-06-18 Pedro Alves <palves@redhat.com>
7224
7225 * aix-thread.c (pd_update): Use switch_to_thread.
7226
2da4b788
PA
72272020-06-18 Pedro Alves <palves@redhat.com>
7228
7229 * ravenscar-thread.c (ravenscar_thread_target): Update.
7230 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7231 (ravenscar_thread_target::add_active_thread): ... this. Don't
7232 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7233 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7234
50838d1b
PA
72352020-06-18 Pedro Alves <palves@redhat.com>
7236
7237 * nat/windows-nat.c (current_windows_thread): Remove.
7238 * nat/windows-nat.h (current_windows_thread): Remove.
7239 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7240 Adjust.
7241 (display_selectors): Adjust to fetch the current
7242 windows_thread_info based on inferior_ptid.
7243 (fake_create_process): No longer write to current_windows_thread.
7244 (windows_nat_target::get_windows_debug_event):
7245 Don't set inferior_ptid or current_windows_thread.
7246 (windows_nat_target::wait): Adjust to not rely on
7247 current_windows_thread.
7248 (do_initial_windows_stuff): Now a method of windows_nat_target.
7249 Switch to the last_ptid thread.
7250 (windows_nat_target::attach): Adjust.
7251 (windows_nat_target::detach): Use switch_to_no_thread instead of
7252 writing to inferior_ptid directly.
7253 (windows_nat_target::create_inferior): Adjust.
7254
31ce04e9
PA
72552020-06-18 Pedro Alves <palves@redhat.com>
7256
7257 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7258
1ee1a363
PA
72592020-06-18 Pedro Alves <palves@redhat.com>
7260
7261 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7262 after creating it, instead of writing to inferior_ptid. Don't
7263 write to inferior_ptid.
7264
6d350754
PA
72652020-06-18 Pedro Alves <palves@redhat.com>
7266
7267 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7268
5d971d48
PA
72692020-06-18 Pedro Alves <palves@redhat.com>
7270
7271 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7272 it, instead of writing to inferior_ptid.
7273
86e57d1b
PA
72742020-06-18 Pedro Alves <palves@redhat.com>
7275
7276 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7277 to inferior_ptid.
7278
f2e1c129
PA
72792020-06-18 Pedro Alves <palves@redhat.com>
7280
7281 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7282 instead of writing to inferior_ptid directly.
7283
60db1b85
PA
72842020-06-18 Pedro Alves <palves@redhat.com>
7285
7286 * corelow.c (core_target::close): Use switch_to_no_thread instead
7287 of writing to inferior_ptid directly.
7288 (add_to_thread_list, core_target_open): Use switch_to_thread
7289 instead of writing to inferior_ptid directly.
7290
fe7d6a8d
PA
72912020-06-18 Pedro Alves <palves@redhat.com>
7292
7293 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7294 inferior_ptid.
7295 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7296 inferior_ptid.
7297 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7298 inferior_ptid directly.
7299 (darwin_nat_target::init_thread_list): Switch to thread, instead
7300 of writing to inferior_ptid.
7301 (darwin_nat_target::attach): Don't write to inferior_ptid.
7302 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7303
975f8708
PA
73042020-06-18 Pedro Alves <palves@redhat.com>
7305
7306 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7307 thread.
7308 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7309 Instead use switch_to_thread.
7310 (gnu_nat_target::detach): Use switch_to_no_thread
7311 instead of writing to inferior_ptid directly. Used passed-in
7312 inferior instead of looking up the inferior by pid.
7313
1a204730
PA
73142020-06-18 Pedro Alves <palves@redhat.com>
7315
7316 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7317 inferior_ptid.
7318
ebe84f23
PA
73192020-06-18 Pedro Alves <palves@redhat.com>
7320
7321 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7322 inferior_ptid.
7323 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7324 thread.
7325 (nto_procfs_target::detach): Avoid referencing
7326 inferior_ptid. Use switch_to_no_thread instead of writing to
7327 inferior_ptid directly.
7328 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7329 instead of writing to inferior_ptid directly.
7330 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7331 to thread.
7332
191f02e5
PA
73332020-06-18 Pedro Alves <palves@redhat.com>
7334
7335 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7336 after creating it, instead of writing to inferior_ptid.
7337 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7338 to inferior_ptid directly.
7339 (gdbsim_target::wait): Don't write to inferior_ptid.
7340
0ac55310
PA
73412020-06-18 Pedro Alves <palves@redhat.com>
7342
7343 * remote.c (remote_target::remote_notice_new_inferior): Use
7344 switch_to_thread instead of writing to inferior_ptid directly.
7345 (remote_target::add_current_inferior_and_thread): Use
7346 switch_to_no_thread instead of writing to inferior_ptid directly.
7347 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7348 and switch_to_thread instead of using set_current_inferior or
7349 writing to inferior_ptid directly.
7350
5233f39b
PA
73512020-06-18 Pedro Alves <palves@redhat.com>
7352
7353 * tracectf.c (ctf_target_open): Switch to added thread instead of
7354 writing to inferior_ptid directly.
7355 (ctf_target::close): Use switch_to_no_thread instead of writing to
7356 inferior_ptid directly.
7357
087e161b
PA
73582020-06-18 Pedro Alves <palves@redhat.com>
7359
7360 * tracefile-tfile.c (tfile_target_open): Don't write to
7361 inferior_ptid directly, instead switch to added thread.
7362 (tfile_target::close): Use switch_to_no_thread instead of writing
7363 to inferior_ptid directly.
7364
7fb43e53
PA
73652020-06-18 Pedro Alves <palves@redhat.com>
7366
7367 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7368 (procfs_target::detach): Use switch_to_no_thread
7369 instead of writing to inferior_ptid directly.
7370 (do_attach): Change return type to void. Switch to the added
7371 thread.
7372 (procfs_target::create_inferior): Switch to the added thread.
7373 (procfs_do_thread_registers): Don't write to inferior_ptid.
7374
18493a00
PA
73752020-06-18 Pedro Alves <palves@redhat.com>
7376
7377 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7378 of writing to inferior_ptid.
7379 (scoped_restore_exited_inferior): Delete.
7380 (handle_vfork_child_exec_or_exit): Simplify using
7381 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7382 instead of writing to inferior_ptid.
7383 (THREAD_STOPPED_BY): Delete.
7384 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7385 (thread_stopped_by_hw_breakpoint): Delete.
7386 (save_waitstatus): Use
7387 scoped_restore_current_thread+switch_to_thread, and call
7388 target_stopped_by_watchpoint instead of
7389 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7390 instead of thread_stopped_by_sw_breakpoint, and
7391 target_stopped_by_hw_breakpoint instead of
7392 thread_stopped_by_hw_breakpoint.
7393 (handle_inferior_event)
7394 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7395 inferior_ptid directly, nor
7396 set_current_inferior/set_current_program_space. Use
7397 switch_to_thread / switch_to_inferior_no_thread instead.
7398
a0776b13
PA
73992020-06-18 Pedro Alves <palves@redhat.com>
7400
7401 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7402 instead of writing to inferior_ptid.
7403
6155c136
PA
74042020-06-18 Pedro Alves <palves@redhat.com>
7405
7406 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7407 added thread.
7408 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7409 to the added thread.
7410 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7411 instead of writing to inferior_ptid.
7412
c5316fc6
PA
74132020-06-18 Pedro Alves <palves@redhat.com>
7414
7415 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7416 (register_to_value_test): Mock a program_space too. Heap-allocate
7417 the address space. Don't write to inferior_ptid. Use
7418 switch_to_thread instead.
7419
8df01799
PA
74202020-06-18 Pedro Alves <palves@redhat.com>
7421
7422 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7423 Delete.
7424 (find_signalled_thread()): New, factored out from
7425 linux_make_corefile_notes and adjusted to handle exited threads.
7426 (linux_make_corefile_notes): Adjust to use the new
7427 find_signalled_thread.
7428
41792d68
PA
74292020-06-18 Pedro Alves <palves@redhat.com>
7430
7431 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7432 of saving/restoring inferior_ptid.
7433
612f258a
TT
74342020-06-17 Tom Tromey <tom@tromey.com>
7435
7436 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7437 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7438 declare.
7439 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7440
efb763a5
SM
74412020-06-15 Simon Marchi <simon.marchi@efficios.com>
7442
7443 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7444 of partial symtabs.
7445
2951f6c0
SM
74462020-06-17 Simon Marchi <simon.marchi@efficios.com>
7447
7448 * regformats/reg-arm.dat: Remove.
7449 * regformats/reg-bfin.dat: Remove.
7450 * regformats/reg-cris.dat: Remove.
7451 * regformats/reg-crisv32.dat: Remove.
7452 * regformats/reg-m32r.dat: Remove.
7453 * regformats/reg-tilegx.dat: Remove.
7454 * regformats/reg-tilegx32.dat: Remove.
7455
7d458ea5
SM
74562020-06-17 Simon Marchi <simon.marchi@efficios.com>
7457
7458 * features/Makefile (WHICH): Remove arm files.
7459 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7460 * regformats/arm/arm-with-neon.dat: Remove.
7461 * regformats/arm/arm-with-vfpv2.dat: Remove.
7462 * regformats/arm/arm-with-vfpv3.dat: Remove.
7463
3af96c0d
SM
74642020-06-17 Simon Marchi <simon.marchi@efficios.com>
7465
7466 * features/Makefile (XMLTOC): Remove rx.xml.
7467
b25e22fd
PA
74682020-06-17 Pedro Alves <palves@redhat.com>
7469
7470 * gdbthread.h (thread_control_state) <trap_expected> Update
7471 comments.
7472
a78a19b1
AB
74732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7474
7475 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7476 ada_language::lookup_symbol_nonlocal.
7477 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7478 (ada_language::lookup_symbol_nonlocal): New member function,
7479 implementation from ada_lookup_symbol_nonlocal.
7480 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7481 initializer.
7482 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7483 initializer.
7484 (cplus_language::lookup_symbol_nonlocal): New member function.
7485 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7486 (minimal_language_data) Likewise.
7487 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7488 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7489 initializer.
7490 (d_language::lookup_symbol_nonlocal): New member function.
7491 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7492 initializer.
7493 (f_language::lookup_symbol_nonlocal): New member function.
7494 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7495 initializer.
7496 * language.c (unknown_language_data): Likewise.
7497 (auto_language_data): Likewise.
7498 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7499 field.
7500 (language_defn::lookup_symbol_nonlocal): New member function.
7501 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7502 initializer.
7503 * objc-lang.c (objc_language_data): Likewise.
7504 * opencl-lang.c (opencl_language_data): Likewise.
7505 * p-lang.c (pascal_language_data): Likewise.
7506 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7507 rust_language::lookup_symbol_nonlocal.
7508 (rust_language_data): Delete la_lookup_symbol_nonlocal
7509 initializer.
7510 (rust_language::lookup_symbol_nonlocal): New member function,
7511 implementation from rust_lookup_symbol_nonlocal.
7512 * symtab.c (lookup_symbol_aux): Update call to
7513 lookup_symbol_nonlocal.
7514 (basic_lookup_symbol_nonlocal): Rename to...
7515 (language_defn::lookup_symbol_nonlocal): ...this, and update
7516 header comment. Remove language_defn parameter, and replace with
7517 uses of `this'.
7518 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7519
ebe2334e
AB
75202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7521
7522 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7523 initializer.
7524 (ada_language::value_print_inner): New member function.
7525 * c-lang.c (c_language_data): Delete la_value_print_inner
7526 initializer.
7527 (cplus_language_data): Likewise.
7528 (asm_language_data): Likewise.
7529 (minimal_language_data): Likewise.
7530 * d-lang.c (d_language_data): Likewise.
7531 (d_language::value_print_inner): New member function.
7532 * f-lang.c (f_language_data): Delete la_value_print_inner
7533 initializer.
7534 (f_language::value_print_inner): New member function.
7535 * f-lang.h (f_value_print_innner): Rename to...
7536 (f_value_print_inner): ...this (note spelling of 'inner').
7537 * f-valprint.c (f_value_print_innner): Rename to...
7538 (f_value_print_inner): ...this (note spelling of 'inner').
7539 * go-lang.c (go_language_data): Delete la_value_print_inner
7540 initializer.
7541 (go_language::value_print_inner): New member function.
7542 * language.c (language_defn::value_print_inner): Define new member
7543 function.
7544 (unk_lang_value_print_inner): Delete.
7545 (unknown_language_data): Delete la_value_print_inner initializer.
7546 (unknown_language::value_print_inner): New member function.
7547 (auto_language_data): Delete la_value_print_inner initializer.
7548 (auto_language::value_print_inner): New member function.
7549 * language.h (language_data): Delete la_value_print_inner field.
7550 (language_defn::value_print_inner): Delcare new member function.
7551 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7552 initializer.
7553 (m2_language::value_print_inner): New member function.
7554 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7555 initializer.
7556 * opencl-lang.c (opencl_language_data): Likewise.
7557 * p-lang.c (pascal_language_data): Likewise.
7558 (pascal_language::value_print_inner): New member function.
7559 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7560 initializer.
7561 (rust_language::value_print_inner): New member function.
7562 * valprint.c (do_val_print): Update call to value_print_inner.
7563
a1d1fa3e
AB
75642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7565
7566 * ada-lang.c (ada_language_data): Delete la_value_print
7567 initializer.
7568 (ada_language::value_print): New member function.
7569 * c-lang.c (c_language_data): Delete la_value_print initializer.
7570 (cplus_language_data): Likewise.
7571 (asm_language_data): Likewise.
7572 (minimal_language_data): Likewise.
7573 * d-lang.c (d_language_data): Likewise.
7574 * f-lang.c (f_language_data): Likewise.
7575 * go-lang.c (go_language_data): Likewise.
7576 * language.c (unk_lang_value_print): Delete.
7577 (language_defn::value_print): Define new member function.
7578 (unknown_language_data): Delete la_value_print initializer.
7579 (unknown_language::value_print): New member function.
7580 (auto_language_data): Delete la_value_print initializer.
7581 (auto_language::value_print): New member function.
7582 * language.h (language_data): Delete la_value_print field.
7583 (language_defn::value_print): Declare new member function.
7584 (LA_VALUE_PRINT): Update call to value_print.
7585 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7586 * objc-lang.c (objc_language_data): Likewise.
7587 * opencl-lang.c (opencl_language_data): Likewise.
7588 * p-lang.c (pascal_language_data): Likewise.
7589 (pascal_language::value_print): New member function.
7590 * rust-lang.c (rust_language_data): Delete la_value_print
7591 initializer.
7592
f16a9f57
AB
75932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7594
7595 * ada-lang.c (ada_watch_location_expression): Rename to
7596 ada_language::watch_location_expression.
7597 (ada_language_data): Delete la_watch_location_expression
7598 initializer.
7599 (ada_language::watch_location_expression): New member function,
7600 implementation from ada_watch_location_expression.
7601 * breakpoint.c (watch_command_1): Update call to
7602 watch_location_expression.
7603 * c-lang.c (c_watch_location_expression): Rename to
7604 language_defn::watch_location_expression.
7605 (c_language_data): Delete la_watch_location_expression
7606 initializer.
7607 (cplus_language_data): Likewise.
7608 (asm_language_data): Likewise.
7609 (minimal_language_data): Likewise.
7610 * c-lang.h (c_watch_location_expression): Delete declaration.
7611 * d-lang.c (d_language_data): Delete la_watch_location_expression
7612 initializer.
7613 * f-lang.c (f_language_data): Likewise.
7614 * go-lang.c (go_language_data): Likewise.
7615 * language.c (language_defn::watch_location_expression): Member
7616 function implementation from c_watch_location_expression.
7617 (unknown_language_data): Delete la_watch_location_expression
7618 initializer.
7619 (auto_language_data): Likewise.
7620 * language.h (language_data): Delete la_watch_location_expression
7621 field.
7622 (language_defn::watch_location_expression): Declare new member
7623 function.
7624 * m2-lang.c (m2_language_data): Delete
7625 la_watch_location_expression initializer.
7626 * objc-lang.c (objc_language_data): Likewise.
7627 * opencl-lang.c (opencl_language_data): Likewise.
7628 * p-lang.c (pascal_language_data): Likewise.
7629 * rust-lang.c (rust_watch_location_expression): Rename to
7630 rust_language::watch_location_expression.
7631 (rust_language_data): Delete la_watch_location_expression
7632 initializer.
7633 (rust_language::watch_location_expression): New member function,
7634 implementation from rust_watch_location_expression.
7635
7e56227d
AB
76362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7637
7638 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7639 ada_language::collect_symbol_completion_matches.
7640 (ada_language_data): Delete la_collect_symbol_completion_matches
7641 initializer.
7642 (ada_language::collect_symbol_completion_matches): New member
7643 function, implementation from
7644 ada_collect_symbol_completion_matches.
7645 * c-lang.c (c_language_data): Delete
7646 la_collect_symbol_completion_matches initializer.
7647 (cplus_language_data): Likewise.
7648 (asm_language_data): Likewise.
7649 (minimal_language_data): Likewise.
7650 * d-lang.c (d_language_data): Likewise.
7651 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7652 f_language::collect_symbol_completion_matches.
7653 (f_language_data): Delete la_collect_symbol_completion_matches
7654 initializer.
7655 (f_language::collect_symbol_completion_matches) New member
7656 function, implementation from f_collect_symbol_completion_matches.
7657 * go-lang.c (go_language_data): Delete
7658 la_collect_symbol_completion_matches initializer.
7659 * language.c (unknown_language_data): Likewise.
7660 (auto_language_data): Likewise.
7661 * language.h (language_data): Delete
7662 la_collect_symbol_completion_matches field.
7663 (language_defn::collect_symbol_completion_matches): New member
7664 function.
7665 * m2-lang.c (m2_language_data): Delete
7666 la_collect_symbol_completion_matches initializer.
7667 * objc-lang.c (objc_language_data): Likewise.
7668 * opencl-lang.c (opencl_language_data): Likewise.
7669 * p-lang.c (pascal_language_data): Likewise.
7670 * rust-lang.c (rust_language_data): Likewise.
7671 * symtab.c (default_collect_symbol_completion_matches): Delete.
7672 (collect_symbol_completion_matches): Update call to
7673 collect_symbol_completion_matches.
7674 (collect_symbol_completion_matches_type): Likewise.
7675 * symtab.h (default_collect_symbol_completion_matches): Delete
7676 declaration.
7677
53fc67f8
AB
76782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7679
7680 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7681 (ada_language_data): Delete la_word_break_characters initializer.
7682 (ada_language::word_break_characters): New member function.
7683 * c-lang.c (c_language_data): Delete la_word_break_characters
7684 initializer.
7685 (cplus_language_data): Likewise.
7686 (asm_language_data): Likewise.
7687 (minimal_language_data): Likewise.
7688 * completer.c: Update global comment.
7689 (advance_to_expression_complete_word_point): Update call to
7690 word_break_characters.
7691 (complete_files_symbols): Likewise.
7692 (complete_line_internal_1): Likewise.
7693 (default_completer_handle_brkchars): Likewise.
7694 (skip_quoted_chars): Likewise.
7695 * d-lang.c (d_language_data): Delete la_word_break_characters
7696 initializer.
7697 * f-lang.c (f_word_break_characters): Delete.
7698 (f_language_data): Delete la_word_break_characters initializer.
7699 (f_language::word_break_characters): New member function.
7700 * go-lang.c (go_language_data): Delete la_word_break_characters
7701 initializer.
7702 * language.c (unknown_language_data): Likewise.
7703 (auto_language_data): Likewise.
7704 * language.h (default_word_break_characters): Move declaration to
7705 earlier in the file.
7706 (language_data): Delete la_word_break_characters field.
7707 (language_defn::word_break_characters): New member function.
7708 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7709 initializer.
7710 * objc-lang.c (objc_language_data): Likewise.
7711 * opencl-lang.c (opencl_language_data): Likewise.
7712 * p-lang.c (pascal_language_data): Likewise.
7713 * rust-lang.c (rust_language_data): Likewise.
7714
c9debfb9
AB
77152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7716
7717 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7718 (ada_language_data): Delete la_get_symbol_name_matcher
7719 initializer.
7720 (language_defn::get_symbol_name_matcher_inner): New member
7721 function.
7722 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7723 initializer.
7724 (cplus_language_data): Likewise.
7725 (cplus_language::get_symbol_name_matcher_inner): New member
7726 function.
7727 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7728 (minimal_language_data): Likewise.
7729 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7730 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7731 initializer.
7732 * dictionary.c (iter_match_first_hashed): Update call to
7733 get_symbol_name_matcher.
7734 (iter_match_next_hashed): Likewise.
7735 (iter_match_next_linear): Likewise.
7736 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7737 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7738 initializer.
7739 (f_language::get_symbol_name_matcher_inner): New member function.
7740 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7741 initializer.
7742 * language.c (default_symbol_name_matcher): Update header comment,
7743 make static.
7744 (language_defn::get_symbol_name_matcher): New definition.
7745 (language_defn::get_symbol_name_matcher_inner): Likewise.
7746 (get_symbol_name_matcher): Delete.
7747 (unknown_language_data): Delete la_get_symbol_name_matcher
7748 initializer.
7749 (auto_language_data): Likewise.
7750 * language.h (language_data): Delete la_get_symbol_name_matcher
7751 field.
7752 (language_defn::get_symbol_name_matcher): New member function.
7753 (language_defn::get_symbol_name_matcher_inner): Likewise.
7754 (default_symbol_name_matcher): Delete declaration.
7755 * linespec.c (find_methods): Update call to
7756 get_symbol_name_matcher.
7757 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7758 initializer.
7759 * minsyms.c (lookup_minimal_symbol): Update call to
7760 get_symbol_name_matcher.
7761 (iterate_over_minimal_symbols): Likewise.
7762 * objc-lang.c (objc_language_data): Delete
7763 la_get_symbol_name_matcher initializer.
7764 * opencl-lang.c (opencl_language_data): Likewise.
7765 * p-lang.c (pascal_language_data): Likewise.
7766 * psymtab.c (psymbol_name_matches): Update call to
7767 get_symbol_name_matcher.
7768 * rust-lang.c (rust_language_data): Delete
7769 la_get_symbol_name_matcher initializer.
7770 * symtab.c (symbol_matches_search_name): Update call to
7771 get_symbol_name_matcher.
7772 (compare_symbol_name): Likewise.
7773
9a49ad8c
AB
77742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7775
7776 * ada-lang.c (ada_language_data): Delete la_compute_program
7777 initializer.
7778 * c-lang.c (c_language_data): Likewise.
7779 (c_language::compute_program): New member function.
7780 (cplus_language_data): Delete la_compute_program initializer.
7781 (cplus_language::compute_program): New member function.
7782 (asm_language_data): Delete la_compute_program initializer.
7783 (minimal_language_data): Likewise.
7784 * c-lang.h (c_compute_program): Update comment.
7785 (cplus_compute_program): Likewise.
7786 * compile/compile-c-support.c (c_compute_program): Likewise.
7787 (cplus_compute_program): Likewise.
7788 * compile/compile.c (compile_to_object): Update call to
7789 la_compute_program.
7790 * d-lang.c (d_language_data): Delete la_compute_program
7791 initializer.
7792 * f-lang.c (f_language_data): Likewise.
7793 * go-lang.c (go_language_data): Likewise.
7794 * language.c (unknown_language_data): Likewise.
7795 (auto_language_data): Likewise.
7796 * language.h (language_data): Delete la_compute_program field.
7797 (language_defn::compute_program): New member function.
7798 * m2-lang.c (m2_language_data): Delete la_compute_program
7799 initializer.
7800 * objc-lang.c (objc_language_data): Likewise.
7801 * opencl-lang.c (opencl_language_data): Likewise.
7802 * p-lang.c (pascal_language_data): Likewise.
7803 * rust-lang.c (rust_language_data): Likewise.
7804
eff93b4d
AB
78052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7806
7807 * ada-lang.c (ada_language_data) Delete
7808 la_class_name_from_physname initializer.
7809 * c-lang.c (c_language_data): Likewise.
7810 (cplus_language_data): Likewise.
7811 (cplus_language::class_name_from_physname): New member function.
7812 (asm_language_data): Delete la_class_name_from_physname
7813 initializer.
7814 (minimal_language_data): Likewise.
7815 * d-lang.c (d_language_data): Likewise.
7816 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7817 method on language_defn class.
7818 (guess_full_die_structure_name): Likewise.
7819 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7820 initializer.
7821 * go-lang.c (go_language_data): Likewise.
7822 * language.c (language_class_name_from_physname): Delete.
7823 (unk_lang_class_name): Delete.
7824 (unknown_language_data): Delete la_class_name_from_physname
7825 initializer.
7826 (auto_language_data): Likewise.
7827 * language.h (language_data): Delete la_class_name_from_physname
7828 field.
7829 (language_defn::class_name_from_physname): New function.
7830 (language_class_name_from_physname): Delete declaration.
7831 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7832 initializer.
7833 * objc-lang.c (objc_language_data): Likewise.
7834 * opencl-lang.c (opencl_language_data): Likewise.
7835 * p-lang.c (pascal_language_data): Likewise.
7836 * rust-lang.c (rust_language_data): Likewise.
7837
de543742
TT
78382020-06-16 Tom Tromey <tom@tromey.com>
7839
7840 * tui/tui-data.h (STATUS_NAME): New macro.
7841 * tui/tui-layout.c (tui_remove_some_windows)
7842 (initialize_known_windows, tui_register_window)
7843 (tui_layout_split::remove_windows, initialize_layouts)
7844 (tui_new_layout_command): Don't use hard-coded window names.
7845
a350efd4
TT
78462020-06-16 Tom Tromey <tom@tromey.com>
7847
7848 PR tui/25348:
7849 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7850 tui_initialize_readline. Only run once. Call rl_initialize.
7851 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7852 tui_initialize_readline.
7853 * tui/tui-io.c (tui_setup_io): Call
7854 tui_ensure_readline_initialized.
7855 * tui/tui-interp.c (tui_interp::init): Update.
7856
39ec0490
TT
78572020-06-16 Tom Tromey <tom@tromey.com>
7858
7859 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7860 Also preserve the status window.
7861
d2d1ea20
TT
78622020-06-16 Tom Tromey <tom@tromey.com>
7863
7864 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7865 where m_window==nullptr.
7866
66920317
TT
78672020-06-15 Tom Tromey <tromey@adacore.com>
7868
7869 * windows-nat.c (windows_nat::handle_output_debug_string):
7870 Update.
7871 (windows_nat::handle_ms_vc_exception): Update.
7872 * target.h (target_read_string): Change API.
7873 * target.c (target_read_string): Change API.
7874 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7875 Update.
7876 * solib-frv.c (frv_current_sos): Update.
7877 * solib-dsbt.c (dsbt_current_sos): Update.
7878 * solib-darwin.c (darwin_current_sos): Update.
7879 * linux-thread-db.c (inferior_has_bug): Update.
7880 * expprint.c (print_subexp_standard): Update.
7881 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7882 (ada_exception_message_1): Update.
7883
a5d871dd
TT
78842020-06-15 Tom Tromey <tromey@adacore.com>
7885
7886 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7887
670e35fa
TT
78882020-06-15 Tom Tromey <tromey@adacore.com>
7889
7890 * valprint.c (read_string): Update comment.
7891 * target.c (MIN): Remove.
7892 (target_read_string): Rewrite.
7893
f5272a3b
TT
78942020-06-15 Tom Tromey <tromey@adacore.com>
7895
7896 * corefile.c (read_memory_string): Remove.
7897 * ada-valprint.c (ada_value_print_ptr): Update.
7898 * ada-lang.h (ada_tag_name): Change return type.
7899 * ada-lang.c (type_from_tag): Update.
7900 (ada_tag_name_from_tsd): Change return type. Use
7901 target_read_string.
7902 (ada_tag_name): Likewise.
7903 * gdbcore.h (read_memory_string): Don't declare.
7904
2c074f49
HD
79052020-06-14 Hannes Domani <ssbssa@yahoo.de>
7906
7907 * symtab.c (rbreak_command): Ignore Windows drive colon.
7908
6a17d503
SM
79092020-06-12 Simon Marchi <simon.marchi@efficios.com>
7910
7911 * NEWS: Mention removed GDBserver host support.
7912
453c733f
NC
79132020-06-12 Nelson Chu <nelson.chu@sifive.com>
7914
7915 * features/riscv/rebuild-csr-xml.sh: Updated.
7916
2b4e6a3f
TT
79172020-06-11 Tom Tromey <tom@tromey.com>
7918
7919 PR gdb/18318:
7920 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7921
4412332f
JG
79222020-06-09 Jonny Grant <jg@jguk.org>
79232020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7924
7925 * main.c (captured_main_1): Don't print new line after help.
7926 (print_gdb_help): add mailing list and IRC channel information
7927 to --help. Add new lines between items in the footer. Remove
7928 quotes around bug url.
7929
2f33032a
KS
79302020-06-11 Keith Seitz <keiths@redhat.com>
7931
7932 PR gdb/21356
7933 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7934 Resolve typedefs for type length calculations.
7935
7ab96794
TV
79362020-06-10 Tom de Vries <tdevries@suse.de>
7937
7938 PR ada/24713
7939 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7940 (write_psymbols): Enable .gdb_index for ada.
7941 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7942 ada.
7943
e5f3ece2
TV
79442020-06-10 Tom de Vries <tdevries@suse.de>
7945
7946 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7947 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7948 namei" instead of "const char *name" argument.
7949 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7950 dw2_symtab_iter_init.
7951
940da03e
SM
79522020-06-08 Simon Marchi <simon.marchi@efficios.com>
7953
7954 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7955 to use type::field and field::type instead.
7956
b6cdac4b
SM
79572020-06-08 Simon Marchi <simon.marchi@efficios.com>
7958
7959 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7960 to use field::type instead.
7961
5d14b6e5
SM
79622020-06-08 Simon Marchi <simon.marchi@efficios.com>
7963
7964 * gdbtypes.h (struct field) <type, set_type>: New methods.
7965 Rename `type` field to...
7966 <m_type>: ... this. Change references throughout to use type or
7967 set_type methods.
7968 (FIELD_TYPE): Use field::type. Change call sites that modify
7969 the field's type to use field::set_type instead.
7970
3d967001
SM
79712020-06-08 Simon Marchi <simon.marchi@efficios.com>
7972
7973 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7974 to use type::index_type instead.
7975
262abc0d
SM
79762020-06-08 Simon Marchi <simon.marchi@efficios.com>
7977
7978 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7979 methods.
7980 (TYPE_INDEX_TYPE): Use type::index_type.
7981 * gdbtypes.c (create_array_type_with_stride): Likewise.
7982
82836c92
TT
79832020-06-07 Tom Tromey <tom@tromey.com>
7984
7985 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7986 parameter.
7987 (generic_value_print): Update.
7988
940dace9
AB
79892020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7990
7991 Revert commit 982a38f60b0.
7992 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7993
982a38f6
AB
79942020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7995
7996 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7997 avoid use after free.
7998
82f06518
TV
79992020-06-05 Tom de Vries <tdevries@suse.de>
8000
8001 * NEWS: Fix typos.
8002
f8c41851
SM
80032020-06-04 Simon Marchi <simon.marchi@efficios.com>
8004
8005 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8006 the per_bfd object.
8007 (dwarf2_read_debug_names): Likewise.
8008 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8009 object when re-using a per_bfd object with an index.
8010
f9b5d5ea
TV
80112020-06-03 Tom de Vries <tdevries@suse.de>
8012
8013 PR symtab/26046
8014 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8015 children for C++.
8016 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8017 DW_TAG_subprogram.
8018
f6eee2d0
AB
80192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8020
8021 * ada-lang.c (ada_language_data): Delete skip_trampoline
8022 initializer.
8023 * c-lang.c (c_language_data): Likewise.
8024 (cplus_language_data): Likewise.
8025 (cplus_language::skip_trampoline): New member function.
8026 (asm_language_data): Delete skip_trampoline initializer.
8027 (minimal_language_data): Likewise.
8028 * d-lang.c (d_language_data): Likewise.
8029 * f-lang.c (f_language_data): Likewise.
8030 * go-lang.c (go_language_data): Likewise.
8031 * language.c (unk_lang_trampoline): Delete function.
8032 (skip_language_trampoline): Update.
8033 (unknown_language_data): Delete skip_trampoline initializer.
8034 (auto_language_data): Likewise.
8035 * language.h (language_data): Delete skip_trampoline field.
8036 (language_defn::skip_trampoline): New function.
8037 * m2-lang.c (m2_language_data): Delete skip_trampoline
8038 initializer.
8039 * objc-lang.c (objc_skip_trampoline): Delete function, move
8040 implementation to objc_language::skip_trampoline.
8041 (objc_language_data): Delete skip_trampoline initializer.
8042 (objc_language::skip_trampoline): New member function with
8043 implementation from objc_skip_trampoline.
8044 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8045 initializer.
8046 * p-lang.c (pascal_language_data): Likewise.
8047 * rust-lang.c (rust_language_data): Likewise.
8048
0a50df5d
AB
80492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8050
8051 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8052 (ada_language::demangle): New member function.
8053 * c-lang.c (c_language_data): Delete la_demangle initializer.
8054 (cplus_language_data): Delete la_demangle initializer.
8055 (cplus_language::demangle): New member function.
8056 (asm_language_data): Delete la_demangle initializer.
8057 (minimal_language_data): Delete la_demangle initializer.
8058 * d-lang.c (d_language_data): Delete la_demangle initializer.
8059 (d_language::demangle): New member function.
8060 * f-lang.c (f_language_data): Delete la_demangle initializer.
8061 (f_language::demangle): New member function.
8062 * go-lang.c (go_language_data): Delete la_demangle initializer.
8063 (go_language::demangle): New member function.
8064 * language.c (language_demangle): Update.
8065 (unk_lang_demangle): Delete.
8066 (unknown_language_data): Delete la_demangle initializer.
8067 (unknown_language::demangle): New member function.
8068 (auto_language_data): Delete la_demangle initializer.
8069 (auto_language::demangle): New member function.
8070 * language.h (language_data): Delete la_demangle field.
8071 (language_defn::demangle): New function.
8072 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8073 * objc-lang.c (objc_language_data): Delete la_demangle
8074 initializer.
8075 (objc_language::demangle): New member function.
8076 * opencl-lang.c (opencl_language_data): Delete la_demangle
8077 initializer.
8078 * p-lang.c (pascal_language_data): Likewise.
8079 * rust-lang.c (rust_language_data): Likewise.
8080 (rust_language::demangle): New member function.
8081
fbfb0a46
AB
80822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8083
8084 * ada-lang.c (ada_language_data): Delete la_print_type
8085 initializer.
8086 (ada_language::print_type): New member function.
8087 * c-lang.c (c_language_data): Delete la_print_type initializer.
8088 (c_language::print_type): New member function.
8089 (cplus_language_data): Delete la_print_type initializer.
8090 (cplus_language::print_type): New member function.
8091 (asm_language_data): Delete la_print_type initializer.
8092 (asm_language::print_type): New member function.
8093 (minimal_language_data): Delete la_print_type initializer.
8094 (minimal_language::print_type): New member function.
8095 * d-lang.c (d_language_data): Delete la_print_type initializer.
8096 (d_language::print_type): New member function.
8097 * f-lang.c (f_language_data): Delete la_print_type initializer.
8098 (f_language::print_type): New member function.
8099 * go-lang.c (go_language_data): Delete la_print_type initializer.
8100 (go_language::print_type): New member function.
8101 * language.c (unk_lang_print_type): Delete.
8102 (unknown_language_data): Delete la_print_type initializer.
8103 (unknown_language::print_type): New member function.
8104 (auto_language_data): Delete la_print_type initializer.
8105 (auto_language::print_type): New member function.
8106 * language.h (language_data): Delete la_print_type field.
8107 (language_defn::print_type): New function.
8108 (LA_PRINT_TYPE): Update.
8109 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8110 (m2_language::print_type): New member function.
8111 * objc-lang.c (objc_language_data): Delete la_print_type
8112 initializer.
8113 (objc_language::print_type): New member function.
8114 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8115 to opencl_language::print_type.
8116 (opencl_language_data): Delete la_print_type initializer.
8117 (opencl_language::print_type): New member function, implementation
8118 from opencl_print_type.
8119 * p-lang.c (pascal_language_data): Delete la_print_type
8120 initializer.
8121 (pascal_language::print_type): New member function.
8122 * rust-lang.c (rust_print_type): Delete, implementation moved to
8123 rust_language::print_type.
8124 (rust_language_data): Delete la_print_type initializer.
8125 (rust_language::print_type): New member function, implementation
8126 from rust_print_type.
8127
6f827019
AB
81282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8129
8130 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8131 implementation moves to...
8132 (ada_language::sniff_from_mangled_name): ...here. Update return
8133 type.
8134 (ada_language_data): Delete la_sniff_from_mangled_name
8135 initializer.
8136 * c-lang.c (c_language_data): Likewise.
8137 (cplus_language_data): Likewise.
8138 (cplus_language::sniff_from_mangled_name): New member function,
8139 implementation taken from gdb_sniff_from_mangled_name.
8140 (asm_language_data): Delete la_sniff_from_mangled_name
8141 initializer.
8142 (minimal_language_data): Likewise.
8143 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8144 implementation moves to cplus_language::sniff_from_mangled_name.
8145 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8146 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8147 moves to...
8148 (d_language::sniff_from_mangled_name): ...here.
8149 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8150 * f-lang.c (f_language_data): Likewise.
8151 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8152 moves to...
8153 (go_language::sniff_from_mangled_name): ...here.
8154 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8155 * language.c (language_sniff_from_mangled_name): Delete.
8156 (unknown_language_data): Delete la_sniff_from_mangled_name
8157 initializer.
8158 (auto_language_data): Likewise.
8159 * language.h (language_data): Delete la_sniff_from_mangled_name
8160 field.
8161 (language_defn::sniff_from_mangled_name): New function.
8162 (language_sniff_from_mangled_name): Delete declaration.
8163 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8164 field.
8165 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8166 implementation moves to...
8167 (objc_language::sniff_from_mangled_name): ...here.
8168 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8169 * opencl-lang.c (opencl_language_data): Likewise.
8170 * p-lang.c (pascal_language_data): Likewise.
8171 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8172 implementation moves to...
8173 (rust_language::sniff_from_mangled_name): ...here.
8174 (rust_language_data): Delete la_sniff_from_mangled_name
8175 initializer.
8176 * symtab.c (symbol_find_demangled_name): Call
8177 sniff_from_mangled_name member function.
8178
fb8006fd
AB
81792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8180
8181 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8182 initializer.
8183 * c-lang.c (c_language_data): Likewise.
8184 (cplus_language_data): Likewise.
8185 (cplus_language::search_name_hash): New member function.
8186 (asm_language_data): Delete la_search_name_hash initializer.
8187 (minimal_language_data): Likewise.
8188 * d-lang.c (d_language_data): Likewise.
8189 * dictionary.c (default_search_name_hash): Rename to...
8190 (language_defn::search_name_hash): ...this.
8191 * f-lang.c (f_language_data): Likewise.
8192 (f_language::search_name_hash): New member function.
8193 * go-lang.c (go_language_data): Delete la_search_name_hash
8194 initializer.
8195 * language.c (unknown_language_data): Likewise.
8196 (auto_language_data): Likewise.
8197 * language.h (struct language_data): Delete la_search_name_hash
8198 field.
8199 (language_defn::search_name_hash): Declare new member function.
8200 (default_search_name_hash): Delete declaration.
8201 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8202 initializer.
8203 * objc-lang.c (objc_language_data): Likewise.
8204 * opencl-lang.c (opencl_language_data): Likewise.
8205 * p-lang.c (pascal_language_data): Likewise.
8206 * rust-lang.c (rust_language_data): Likewise.
8207 * symtab.c (search_name_hash): Update call.
8208
8e25bafe
AB
82092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8210
8211 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8212 initializer.
8213 * c-lang.c (class compile_instance): Declare.
8214 (c_language_data): Delete la_get_compile_instance initializer.
8215 (c_language::get_compile_instance): New member function.
8216 (cplus_language_data): Delete la_get_compile_instance initializer.
8217 (cplus_language::get_compile_instance): New member function.
8218 (asm_language_data): Delete la_get_compile_instance initializer.
8219 (minimal_language_data): Likewise.
8220 * c-lang.h (c_get_compile_context): Update comment.
8221 (cplus_get_compile_context): Update comment.
8222 * compile/compile.c (compile_to_object): Update calls, don't rely
8223 on function pointer being NULL.
8224 * d-lang.c (d_language_data): Delete la_get_compile_instance
8225 initializer.
8226 * f-lang.c (f_language_data): Likewise.
8227 * go-lang.c (go_language_data): Likewise.
8228 * language.c (unknown_language_data): Likewise.
8229 (auto_language_data): Likewise.
8230 * language.h (language_data): Delete la_get_compile_instance field.
8231 (language_defn::get_compile_instance): New member function.
8232 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8233 initializer.
8234 * objc-lang.c (objc_language_data): Likewise.
8235 * opencl-lang.c (opencl_language_data): Likewise.
8236 * p-lang.c (pascal_language_data): Likewise.
8237 * rust-lang.c (rust_language_data): Likewise.
8238
4009ee92
AB
82392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8240
8241 * ada-lang.c (ada_add_all_symbols): Update comment.
8242 (ada_iterate_over_symbols): Delete, move implementation to...
8243 (ada_language::iterate_over_symbols): ...here, a new member
8244 function, rewrite to use range based for loop.
8245 (ada_language_data): Delete la_iterate_over_symbols initializer.
8246 * c-lang.c (c_language_data): Likewise.
8247 (cplus_language_data): Likewise.
8248 (asm_language_data): Likewise.
8249 (minimal_language_data): Likewise.
8250 * d-lang.c (d_language_data): Likewise.
8251 * f-lang.c (f_language_data): Likewise.
8252 * go-lang.c (go_language_data): Likewise.
8253 * language.c (unknown_language_data): Likewise.
8254 (auto_language_data): Likewise.
8255 * language.h (language_data): Delete la_iterate_over_symbols field.
8256 (language_defn::iterate_over_symbols): New member function.
8257 (LA_ITERATE_OVER_SYMBOLS): Update.
8258 * linespec.c (iterate_over_all_matching_symtabs): Update.
8259 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8260 initializer.
8261 * objc-lang.c (objc_language_data): Likewise.
8262 * opencl-lang.c (opencl_language_data): Likewise.
8263 * p-lang.c (pascal_language_data): Likewise.
8264 * rust-lang.c (rust_language_data): Likewise.
8265
54f4ca46
AB
82662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8267
8268 * ada-lang.c (ada_language_data): Delete
8269 la_lookup_transparent_type initializer.
8270 * c-lang.c (c_language_data): Likewise.
8271 (cplus_language_data): Likewise.
8272 (cplus_language::lookup_transparent_type): New member function.
8273 (asm_language_data): Delete la_lookup_transparent_type
8274 initializer.
8275 (minimal_language_data): Likewise.
8276 * d-lang.c (d_language_data): Likewise.
8277 * f-lang.c (f_language_data): Likewise.
8278 * go-lang.c (go_language_data): Likewise.
8279 * language.c (unknown_language_data): Likewise.
8280 (auto_language_data): Likewise.
8281 * language.h (struct language_data): Delete
8282 la_lookup_transparent_type field.
8283 (language_defn::lookup_transparent_type): New member function.
8284 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8285 initializer.
8286 * objc-lang.c (objc_language_data): Likewise.
8287 * opencl-lang.c (opencl_language_data): Likewise.
8288 * p-lang.c (pascal_language_data): Likewise.
8289 * rust-lang.c (rust_language_data): Likewise.
8290 * symtab.c (symbol_matches_domain): Update call.
8291
1fb314aa
AB
82922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8293
8294 * ada-lang.c (ada_language_arch_info): Delete function, move
8295 implementation to...
8296 (ada_language::language_arch_info): ...here, a new member
8297 function.
8298 (ada_language_data): Delete la_language_arch_info.
8299 * c-lang.c (c_language_data): Likewise.
8300 (c_language::language_arch_info): New member function.
8301 (cplus_language_arch_info): Delete function, move
8302 implementation to...
8303 (cplus_language::language_arch_info): ...here, a new member
8304 function.
8305 (cplus_language_data): Delete la_language_arch_info.
8306 (asm_language_data): Likewise.
8307 (asm_language::language_arch_info): New member function.
8308 (minimal_language_data): Delete la_language_arch_info.
8309 (minimal_language::language_arch_info): New member function.
8310 * d-lang.c (d_language_arch_info): Delete function, move
8311 implementation to...
8312 (d_language::language_arch_info): ...here, a new member
8313 function.
8314 (d_language_data): Delete la_language_arch_info.
8315 * f-lang.c (f_language_arch_info): Delete function, move
8316 implementation to...
8317 (f_language::language_arch_info): ...here, a new member
8318 function.
8319 (f_language_data): Delete la_language_arch_info.
8320 * go-lang.c (go_language_arch_info): Delete function, move
8321 implementation to...
8322 (go_language::language_arch_info): ...here, a new member
8323 function.
8324 (go_language_data): Delete la_language_arch_info.
8325 * language.c (unknown_language_data): Likewise.
8326 (unknown_language::language_arch_info): New member function.
8327 (auto_language_data): Delete la_language_arch_info.
8328 (auto_language::language_arch_info): New member function.
8329 (language_gdbarch_post_init): Update call to
8330 la_language_arch_info.
8331 * language.h (language_data): Delete la_language_arch_info
8332 function pointer.
8333 (language_defn::language_arch_info): New function.
8334 * m2-lang.c (m2_language_arch_info): Delete function, move
8335 implementation to...
8336 (m2_language::language_arch_info): ...here, a new member
8337 function.
8338 (m2_language_data): Delete la_language_arch_info.
8339 * objc-lang.c (objc_language_arch_info): Delete function, move
8340 implementation to...
8341 (objc_language::language_arch_info): ...here, a new member
8342 function.
8343 (objc_language_data): Delete la_language_arch_info.
8344 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8345 implementation to...
8346 (opencl_language::language_arch_info): ...here, a new member
8347 function.
8348 (opencl_language_data): Delete la_language_arch_info.
8349 * p-lang.c (pascal_language_arch_info): Delete function, move
8350 implementation to...
8351 (pascal_language::language_arch_info): ...here, a new member
8352 function.
8353 (pascal_language_data): Delete la_language_arch_info.
8354 * rust-lang.c (rust_language_arch_info): Delete function, move
8355 implementation to...
8356 (rust_language::language_arch_info): ...here, a new member
8357 function.
8358 (rust_language_data): Delete la_language_arch_info.
8359
48448202
AB
83602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8361
8362 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8363 initializer.
8364 * c-lang.c (c_language_data): Likewise.
8365 (cplus_language_data): Likewise.
8366 (cplus_language::pass_by_reference_info): New method.
8367 (asm_language_data): Delete la_pass_by_reference initializer.
8368 (minimal_language_data): Likewise.
8369 * cp-abi.c (cp_pass_by_reference): Remove use of
8370 default_pass_by_reference.
8371 * d-lang.c (d_language_data): Likewise.
8372 * f-lang.c (f_language_data): Likewise.
8373 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8374 default_pass_by_reference.
8375 * go-lang.c (go_language_data): Likewise.
8376 * language.c (language_pass_by_reference): Update.
8377 (default_pass_by_reference): Delete.
8378 (unknown_language_data): Delete la_pass_by_reference
8379 initializer.
8380 (auto_language_data): Likewise.
8381 * language.h (struct language_data): Delete la_pass_by_reference
8382 field.
8383 (language_defn::pass_by_reference_info): New member function.
8384 (default_pass_by_reference): Delete declaration.
8385 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8386 initializer.
8387 * objc-lang.c (objc_language_data): Likewise.
8388 * opencl-lang.c (opencl_language_data): Likewise.
8389 * p-lang.c (pascal_language_data): Likewise.
8390 * rust-lang.c (rust_language_data): Likewise.
8391
15e5fd35
AB
83922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8393
8394 * ada-lang.c (ada_read_var_value): Delete function, move
8395 implementation to...
8396 (ada_language::read_var_value): ...here.
8397 (ada_language_data): Delete la_read_var_value initializer.
8398 * c-lang.c (c_language_data): Likewise.
8399 (cplus_language_data): Likewise.
8400 (minimal_language_data): Likewise.
8401 * d-lang.c (d_language_data): Likewise.
8402 * f-lang.c (f_language_data): Likewise.
8403 * findvar.c (default_read_var_value): Rename to...
8404 (language_defn::read_var_value): ...this.
8405 * findvar.c (read_var_value): Update header comment, and change to
8406 call member function instead of function pointer.
8407 * go-lang.c (go_language_data): Likewise.
8408 * language.c (unknown_language_data): Delete la_read_var_value
8409 initializer.
8410 (auto_language_data): Likewise.
8411 * language.h (struct language_data): Delete la_read_var_value
8412 field.
8413 (language_defn::read_var_value): New member function.
8414 (default_read_var_value): Delete declaration.
8415 * m2-lang.c (m2_language_data): Delete la_read_var_value
8416 initializer.
8417 * objc-lang.c (objc_language_data): Likewise.
8418 * opencl-lang.c (opencl_language_data): Likewise.
8419 * p-lang.c (pascal_language_data): Likewise.
8420 * rust-lang.c (rust_language_data): Likewise.
8421 * value.h (default_read_var_value): Delete declaration.
8422
5bd40f2a
AB
84232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8424
8425 * ada-lang.c (ada_print_array_index): Delete function, move
8426 implementation to...
8427 (ada_language::print_array_index): ...here.
8428 (ada_language_data): Delete la_print_array_index initializer.
8429 * c-lang.c (c_language_data): Likewise.
8430 (cplus_language_data): Likewise.
8431 (minimal_language_data): Likewise.
8432 * d-lang.c (d_language_data): Likewise.
8433 * f-lang.c (f_language_data): Likewise.
8434 * go-lang.c (go_language_data): Likewise.
8435 * language.c (default_print_array_index): Delete function, move
8436 implementation to...
8437 (language_defn::print_array_index): ...here.
8438 (unknown_language_data): Delete la_print_array_index initializer.
8439 (auto_language_data): Likewise.
8440 * language.h (struct language_data): Delete la_print_array_index
8441 field.
8442 (language_defn::print_array_index): New member function.
8443 (LA_PRINT_ARRAY_INDEX): Update.
8444 (default_print_array_index): Delete declaration.
8445 * m2-lang.c (m2_language_data): Delete la_print_array_index
8446 initializer.
8447 * objc-lang.c (objc_language_data): Likewise.
8448 * opencl-lang.c (opencl_language_data): Likewise.
8449 * p-lang.c (pascal_language_data): Likewise.
8450 * rust-lang.c (rust_language_data): Likewise.
8451
0874fd07
AB
84522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8453
8454 * gdb/ada-lang.c (ada_language_defn): Convert to...
8455 (ada_language_data): ...this.
8456 (class ada_language): New class.
8457 (ada_language_defn): New static global.
8458 * gdb/c-lang.c (c_language_defn): Convert to...
8459 (c_language_data): ...this.
8460 (class c_language): New class.
8461 (c_language_defn): New static global.
8462 (cplus_language_defn): Convert to...
8463 (cplus_language_data): ...this.
8464 (class cplus_language): New class.
8465 (cplus_language_defn): New static global.
8466 (asm_language_defn): Convert to...
8467 (asm_language_data): ...this.
8468 (class asm_language): New class.
8469 (asm_language_defn): New static global.
8470 (minimal_language_defn): Convert to...
8471 (minimal_language_data): ...this.
8472 (class minimal_language): New class.
8473 (minimal_language_defn): New static global.
8474 * gdb/d-lang.c (d_language_defn): Convert to...
8475 (d_language_data): ...this.
8476 (class d_language): New class.
8477 (d_language_defn): New static global.
8478 * gdb/f-lang.c (f_language_defn): Convert to...
8479 (f_language_data): ...this.
8480 (class f_language): New class.
8481 (f_language_defn): New static global.
8482 * gdb/go-lang.c (go_language_defn): Convert to...
8483 (go_language_data): ...this.
8484 (class go_language): New class.
8485 (go_language_defn): New static global.
8486 * gdb/language.c (unknown_language_defn): Remove declaration.
8487 (current_language): Initialize to nullptr, real initialization is
8488 moved to _initialize_language.
8489 (languages): Delete global.
8490 (language_defn::languages): Define.
8491 (set_language_command): Use language_defn::languages.
8492 (set_language): Likewise.
8493 (range_error): Likewise.
8494 (language_enum): Likewise.
8495 (language_def): Likewise.
8496 (add_set_language_command): Use language_def::languages for the
8497 language list, and language_def to lookup language pointers.
8498 (skip_language_trampoline): Use language_defn::languages.
8499 (unknown_language_defn): Convert to...
8500 (unknown_language_data): ...this.
8501 (class unknown_language): New class.
8502 (unknown_language_defn): New static global.
8503 (auto_language_defn): Convert to...
8504 (auto_language_data): ...this.
8505 (class auto_language): New class.
8506 (auto_language_defn): New static global.
8507 (language_gdbarch_post_init): Use language_defn::languages.
8508 (_initialize_language): Initialize current_language.
8509 * gdb/language.h (struct language_defn): Rename to...
8510 (struct language_data): ...this.
8511 (struct language_defn): New.
8512 (auto_language_defn): Delete.
8513 (unknown_language_defn): Delete.
8514 (minimal_language_defn): Delete.
8515 (ada_language_defn): Delete.
8516 (asm_language_defn): Delete.
8517 (c_language_defn): Delete.
8518 (cplus_language_defn): Delete.
8519 (d_language_defn): Delete.
8520 (f_language_defn): Delete.
8521 (go_language_defn): Delete.
8522 (m2_language_defn): Delete.
8523 (objc_language_defn): Delete.
8524 (opencl_language_defn): Delete.
8525 (pascal_language_defn): Delete.
8526 (rust_language_defn): Delete.
8527 * gdb/m2-lang.c (m2_language_defn): Convert to...
8528 (m2_language_data): ...this.
8529 (class m2_language): New class.
8530 (m2_language_defn): New static global.
8531 * gdb/objc-lang.c (objc_language_defn): Convert to...
8532 (objc_language_data): ...this.
8533 (class objc_language): New class.
8534 (objc_language_defn): New static global.
8535 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8536 (opencl_language_data): ...this.
8537 (class opencl_language): New class.
8538 (opencl_language_defn): New static global.
8539 * gdb/p-lang.c (pascal_language_defn): Convert to...
8540 (pascal_language_data): ...this.
8541 (class pascal_language): New class.
8542 (pascal_language_defn): New static global.
8543 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8544 language pointer, update comment format.
8545 * gdb/rust-lang.c (rust_language_defn): Convert to...
8546 (rust_language_data): ...this.
8547 (class rust_language): New class.
8548 (rust_language_defn): New static global.
8549
1313c56e
AB
85502020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8551
8552 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8553 member variable.
8554 <m_stmt_at_address>: New member variable.
8555 (lnp_state_machine::record_line): Don't record some lines, update
8556 tracking of is_stmt at the same address.
8557 (lnp_state_machine::lnp_state_machine): Initialise new member
8558 variables.
8559
b7ed9f3d
ST
85602020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8561
8562 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8563 "-include gnu-nat-mig.h".
8564 * gnu-nat-mig.h: New file.
8565 * gnu-nat.c: Include "gnu-nat-mig.h".
8566 (exc_server, msg_reply_server, notify_server,
8567 process_reply_server): Remove declarations.
8568
14a8ad62
ST
85692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8570
8571 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8572 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8573 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8574 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8575 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8576 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8577 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8578 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8579 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8580 to gnu_nat_target class.
8581 * gnu-nat.c: Likewise.
8582 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8583 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8584 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8585 object.
8586 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8587 instead of `gnu_target'.
8588
0af5e106
ST
85892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8590
8591 * i386-gnu-tdep.c: Include "gdbcore.h"
8592 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8593 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8594 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8595 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8596 i386_gnu_sigcontext_addr): New functions
8597 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8598 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8599 tdep.
8600
078f2fc9
ST
86012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8602
8603 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8604 before fork_inferior call. Avoid calling it if target_is_pushed returns
8605 true.
8606
53dff92c
ST
86072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8608
8609 * gnu-nat.h (gnu_target): New variable declaration.
8610 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8611 gnu_target.
8612 * gnu-nat.c (gnu_target): New variable.
8613 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8614 add_thread_silent, and add_thread calls.
8615 (gnu_nat_target::create_inferior): Pass gnu_target to
8616 add_thread_silent, thread_change_ptid call.
8617 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8618 call.
8619
5a8b8627
ST
86202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8621
8622 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8623 (gnu_nat_target::find_memory_regions): Remove unused
8624 `old_address' variable.
8625
366f550a
ST
86262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8627
8628 * gnu-nat.c: Include "gdbarch.h".
8629
f14871bf
ST
86302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8631
8632 * reply_mig_hack.awk (Error return): Cast function through
8633 void *, to bypass compiler function call check.
8634
c6887cfb
ST
86352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8636
8637 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8638 $(srcdir)/reply_mig_hack.awk.
8639
6930bffe
ST
86402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8641
8642 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8643
112c22ed
JG
86442020-05-30 Jonny Grant <jg@jguk.org>
8645
8646 * configure.ac (ACX_BUGURL): change bug URL to https.
8647
f68f85b5
PA
86482020-05-30 Pedro Alves <palves@redhat.com>
8649
8650 * cp-support.c (replace_typedefs_template): New.
8651 (replace_typedefs_qualified_name): Handle
8652 DEMANGLE_COMPONENT_TEMPLATE.
8653
976ca316
SM
86542020-05-29 Simon Marchi <simon.marchi@efficios.com>
8655
8656 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8657 dwarf2/index-cache.h, dwarf2/index-write.c,
8658 dwarf2/index-write.h, dwarf2/line-header.c,
8659 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8660 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8661 variables and fields from `dwarf2_per_objfile` to just
8662 `per_objfile` throughout.
8663
989ade05
SM
86642020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8665
8666 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8667 <push_dwarf_reg_entry_value>: Add comment.
8668
c47bae85
KB
86692020-05-28 Kevin Buettner <kevinb@redhat.com>
8670 Keith Seitz <keiths@redhat.com>
8671
8672 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8673 instead of PyEval_ReleaseLock.
8674 (class gdbpy_gil): Move to earlier in file.
8675 (finalize_python): Set gdb_python_initialized.
8676 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8677 when not initialized.
8678
44486dcf
SM
86792020-05-28 Simon Marchi <simon.marchi@efficios.com>
8680
8681 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8682 <push_dwarf_reg_entry_value>: Remove assert. Override
8683 per_objfile with caller_per_objfile.
8684
f030440d
TV
86852020-05-28 Tom de Vries <tdevries@suse.de>
8686
8687 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8688 PR gold/15646 workaround to symbol kind "type".
8689
f0fbb768
TT
86902020-05-27 Tom Tromey <tromey@adacore.com>
8691
8692 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8693
af0b2a3e
TT
86942020-05-27 Tom Tromey <tromey@adacore.com>
8695
8696 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8697 Use htab_find_with_hash.
8698 <add_abbrev>: Remove "abbrev_number" parameter.
8699 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8700 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8701 (hash_abbrev): Add comment.
8702 (abbrev_table::lookup_abbrev): Move to header file.
8703 (abbrev_table::read): Update.
8704
7d00ffec
TT
87052020-05-27 Tom Tromey <tromey@adacore.com>
8706
8707 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8708 method.
8709 <canonical_name>: New member.
8710 <raw_name>: Rename from "name".
8711 (partial_die_info): Initialize canonical_name.
8712 (scan_partial_symbols): Check raw_name.
8713 (partial_die_parent_scope, partial_die_full_name)
8714 (add_partial_symbol, add_partial_subprogram)
8715 (add_partial_enumeration, load_partial_dies): Use "name" method.
8716 (partial_die_info::name): New method.
8717 (partial_die_info::read, guess_partial_die_structure_name)
8718 (partial_die_info::fixup): Update.
8719
697bba18
TT
87202020-05-27 Tom Tromey <tromey@adacore.com>
8721
8722 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8723 <get_ref_die_offset>: Inline.
8724 <get_ref_die_offset_complaint>: New method.
8725 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8726 (attribute::get_ref_die_offset_complaint): Rename from
8727 get_ref_die_offset. Just issue complaint.
8728
c17ace43
HD
87292020-05-27 Hannes Domani <ssbssa@yahoo.de>
8730
8731 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8732
96445f0b
HD
87332020-05-27 Hannes Domani <ssbssa@yahoo.de>
8734
8735 * exec.c (exec_file_attach): Use errno value of first openp failure.
8736
ac637ec3
HD
87372020-05-27 Hannes Domani <ssbssa@yahoo.de>
8738
8739 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8740 Don't close thread handle.
8741
17ee85fc
TT
87422020-05-27 Tom Tromey <tom@tromey.com>
8743 Simon Marchi <simon.marchi@efficios.com>
8744
8745 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8746 shared_ptr.
8747 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8748 member.
8749 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8750 dwarf2_per_bfd_objfile_data_key>: New globals.
8751 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8752 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8753 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8754 shared.
8755 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8756 short-circuit when sharing.
8757 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8758 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8759
39b16f87
SM
87602020-05-27 Simon Marchi <simon.marchi@efficios.com>
8761
8762 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8763 to...
8764 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8765 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8766
fcf23d5b
SM
87672020-05-27 Simon Marchi <simon.marchi@efficios.com>
8768
8769 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8770 build_name_components, find_name_components_bounds>:
8771 Add per_objfile parameter.
8772 (struct mapped_index) <symbol_name_at>: Likewise.
8773 (struct mapped_debug_names): Remove constructor.
8774 <dwarf2_per_objfile>: Remove field.
8775 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8776 (mapped_index_base::find_name_components_bounds,
8777 mapped_index_base::build_name_components,
8778 dw2_expand_symtabs_matching_symbol): Likewise.
8779 (class mock_mapped_index) <symbol_name_at>: Likewise.
8780 (check_match): Likewise.
8781 (check_find_bounds_finds): Likewise.
8782 (test_mapped_index_find_name_component_bounds): Update.
8783 (CHECK_MATCH): Update.
8784 (dw2_expand_symtabs_matching): Update.
8785 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8786 per_objfile parameter.
8787 <find_vec_in_debug_names>: Likewise.
8788 <m_per_objfile>: New field.
8789 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8790 parameter.
8791 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8792 (dw2_debug_names_iterator::next): Update.
8793 (dw2_debug_names_lookup_symbol): Update.
8794 (dw2_debug_names_expand_symtabs_for_function): Update.
8795 (dw2_debug_names_map_matching_symbols): Update.
8796 (dw2_debug_names_expand_symtabs_matching): Update.
8797 (dwarf2_read_debug_names): Update.
8798
7188ed02
SM
87992020-05-27 Simon Marchi <simon.marchi@efficios.com>
8800
8801 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8802 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8803 move to dwarf2_per_objfile.
8804 <read_in_chain>: Remove.
8805 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8806 remove_all_cus, age_comp_units>: New methods.
8807 <m_dwarf2_cus>: New member.
8808 (struct dwarf2_per_cu_data) <cu>: Remove.
8809 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8810 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8811 moved to methods of dwarf2_per_objfile.
8812 (dwarf2_clear_marks): Remove.
8813 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8814 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8815 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8816 (dwarf2_per_objfile::remove_all_cus): New.
8817 (class free_cached_comp_units) <~free_cached_comp_units>:
8818 Update.
8819 (load_cu): Update.
8820 (dw2_do_instantiate_symtab): Adjust.
8821 (fill_in_sig_entry_from_dwo_entry): Adjust.
8822 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8823 (cutu_reader::cutu_reader): Likewise.
8824 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8825 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8826 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8827 and dwarf2_per_objfile::age_comp_units.
8828 (load_partial_comp_unit): Update.
8829 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8830 (process_queue): Likewise.
8831 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8832 backlink.
8833 (dwarf2_read_addr_index): Likewise.
8834 (follow_die_offset): Likewise.
8835 (dwarf2_fetch_die_loc_sect_off): Likewise.
8836 (dwarf2_fetch_constant_bytes): Likewise.
8837 (dwarf2_fetch_die_type_sect_off): Likewise.
8838 (follow_die_sig_1): Likewise.
8839 (load_full_type_unit): Likewise.
8840 (read_signatured_type): Likewise.
8841 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8842 (dwarf2_cu::~dwarf2_cu): Remove.
8843 (dwarf2_per_objfile::get_cu): New.
8844 (dwarf2_per_objfile::set_cu): New.
8845 (age_cached_comp_units): Rename to...
8846 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8847 to std::unordered_map.
8848 (free_one_cached_comp_unit): Rename to...
8849 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8850 to std::unordered_map.
8851 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8852 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8853 a dwarf2_per_objfile in data.
8854 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8855 (dwarf2_clear_marks): Remove.
8856
2e671100
SM
88572020-05-27 Simon Marchi <simon.marchi@efficios.com>
8858
8859 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8860 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8861 (init_tu_and_read_dwo_dies): Likewise.
8862 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8863 (cutu_reader::cutu_reader): Likewise.
8864 (load_partial_comp_unit): Likewise.
8865 (process_psymtab_comp_unit): Update.
8866 (build_type_psymtabs_1): Update.
8867 (process_skeletonless_type_unit): Update.
8868 (load_full_comp_unit): Update.
8869 (find_partial_die): Update.
8870 (dwarf2_read_addr_index): Update.
8871 (read_signatured_type): Update.
8872
2e6a9f79
SM
88732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8874
8875 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8876 m_header_read_in>: New fields.
8877 <get_header>: New method.
8878 * dwarf2/read.c (per_cu_header_read_in): Remove.
8879 (dwarf2_per_cu_data::get_header): New.
8880 (dwarf2_per_cu_data::addr_size): Update.
8881 (dwarf2_per_cu_data::offset_size): Update.
8882 (dwarf2_per_cu_data::ref_addr_size): Update.
8883
1b555f17
SM
88842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8885
8886 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8887 (dw2_do_instantiate_symtab): Update.
8888 (queue_and_load_all_dwo_tus): Change parameter from
8889 dwarf2_per_cu_data to dwarf2_cu.
8890 (dwarf2_fetch_die_loc_sect_off): Update.
8891 (dwarf2_fetch_constant_bytes): Update.
8892 (dwarf2_fetch_die_type_sect_off): Update.
8893
8fc0b21d
SM
88942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8895
8896 * dwarf2/read.c (process_full_comp_unit,
8897 process_full_type_unit): Remove per_cu, per_objfile paramters.
8898 Add dwarf2_cu parameter.
8899 (process_queue): Update.
8900
168c9250
SM
89012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8902
8903 * dwarf2/read.c (create_cu_from_index_list): Replace
8904 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8905 (create_cus_from_index_list): Likewise.
8906 (create_cus_from_index): Likewise.
8907 (create_signatured_type_table_from_index): Likewise.
8908 (create_cus_from_debug_names_list): Likewise.
8909 (create_cus_from_debug_names): Likewise.
8910 (dwarf2_read_gdb_index): Update.
8911 (dwarf2_read_debug_names): Update.
8912
e286671b
TT
89132020-05-27 Tom Tromey <tom@tromey.com>
8914 Simon Marchi <simon.marchi@efficios.com>
8915
8916 * dwarf2/read.h (struct dwarf2_per_objfile)
8917 <get_type_for_signatured_type, set_type_for_signatured_type>:
8918 New methods.
8919 <m_type_map>: New member.
8920 (struct signatured_type) <type>: Remove.
8921 * dwarf2/read.c
8922 (dwarf2_per_objfile::get_type_for_signatured_type,
8923 dwarf2_per_objfile::set_type_for_signatured_type): New.
8924 (get_signatured_type): Use new methods.
8925
8adb8487
TT
89262020-05-27 Tom Tromey <tom@tromey.com>
8927 Simon Marchi <simon.marchi@efficios.com>
8928
8929 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8930 (struct dwarf2_per_objfile) <type_units>: New member.
8931 <get_type_unit_group_unshareable>: New method.
8932 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8933 num_symtabs, symtabs>: Remove; move to
8934 type_unit_group_unshareable.
8935 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8936 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8937 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8938
127bbf4b
SM
89392020-05-27 Simon Marchi <simon.marchi@efficios.com>
8940
8941 * dwarf2/read.h (struct dwarf2_per_cu_data):
8942 <dwarf2_per_objfile>: Remove.
8943 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8944 dwarf2_per_objfile.
8945 (create_signatured_type_table_from_index): Likewise.
8946 (create_signatured_type_table_from_debug_names): Likewise.
8947 (create_debug_type_hash_table): Likewise.
8948 (fill_in_sig_entry_from_dwo_entry): Likewise.
8949 (create_type_unit_group): Likewise.
8950 (read_comp_units_from_section): Likewise.
8951 (create_cus_hash_table): Likewise.
8952
f6e649dd
SM
89532020-05-27 Simon Marchi <simon.marchi@efficios.com>
8954
8955 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8956 dwarf2_per_cu_data::dwarf2_per_objfile.
8957 (compute_compunit_symtab_includes): Likewise.
8958 (dwarf2_cu::start_symtab): Likewise.
8959
aa66c379
SM
89602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8961
8962 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8963 parameter.
8964 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8965 (read_namespace_alias): Update.
8966 (lookup_die_type): Update.
8967 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8968 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8969 Update.
8970 (disassemble_dwarf_expression): Update.
8971
120ce1b5
SM
89722020-05-27 Simon Marchi <simon.marchi@efficios.com>
8973
8974 * dwarf2/read.h (struct dwarf2_queue_item): Add
8975 dwarf2_per_objfile parameter, assign new parameter.
8976 <per_objfile>: New field.
8977 * dwarf2/read.c (free_one_cached_comp_unit): Add
8978 dwarf2_per_objfile parameter.
8979 (queue_comp_unit): Likewise.
8980 (dw2_do_instantiate_symtab): Update.
8981 (process_psymtab_comp_unit): Update.
8982 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8983 (process_imported_unit_die): Update.
8984 (queue_and_load_dwo_tu): Update.
8985 (follow_die_offset): Update.
8986 (follow_die_sig_1): Update.
8987
9f47c707
SM
89882020-05-27 Simon Marchi <simon.marchi@efficios.com>
8989
8990 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8991 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8992 (read_call_site_scope): Assign per_objfile.
8993 (dwarf2_per_cu_data::objfile): Remove.
8994 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8995 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8996 dwarf2_per_objfile parameter.
8997 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8998 dwarf2_per_objfile parameter.
8999 (dwarf_expr_reg_to_entry_parameter): Add output
9000 dwarf2_per_objfile parameter.
9001 (locexpr_get_frame_base): Update.
9002 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9003 <push_dwarf_reg_entry_value>: Update.
9004 <call_site_to_target_addr>: Update.
9005 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9006 parameter.
9007 (value_of_dwarf_reg_entry): Update.
9008 (rw_pieced_value): Update.
9009 (indirect_synthetic_pointer): Update.
9010 (dwarf2_evaluate_property): Update.
9011 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9012 parameter.
9013 (locexpr_read_variable): Update.
9014 (locexpr_get_symbol_read_needs): Update.
9015 (loclist_read_variable): Update.
9016
14095eb3
SM
90172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9018
9019 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9020 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9021 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9022 parameter.
9023 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9024 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9025 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9026 parameter.
9027 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9028 sect_variable_value): Add dwarf2_per_objfile parameter.
9029 (class dwarf_evaluate_loc_desc) <dwarf_call,
9030 dwarf_variable_value>: Update.
9031 (fetch_const_value_from_synthetic_pointer): Add
9032 dwarf2_per_objfile parameter.
9033 (fetch_const_value_from_synthetic_pointer): Update.
9034 (coerced_pieced_ref): Update.
9035 (class symbol_needs_eval_context) <dwarf_call,
9036 dwarf_variable_value>: Update.
9037 (dwarf2_compile_expr_to_ax): Update.
9038
3c3cd3d4
SM
90392020-05-27 Simon Marchi <simon.marchi@efficios.com>
9040
9041 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9042 parameter.
9043 (dwarf2_evaluate_loc_desc_full): Update.
9044
82ca3f51
SM
90452020-05-27 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9048 parameter.
9049 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9050 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9051 dwarf2_per_objfile parameter.
9052 (decode_debug_loc_dwo_addresses): Likewise.
9053 (dwarf2_find_location_expression): Update.
9054 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9055 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9056 parameter.
9057 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9058 parameter.
9059 (locexpr_describe_location_1): Likewise.
9060 (locexpr_describe_location): Update.
9061
4b167ea1
SM
90622020-05-27 Simon Marchi <simon.marchi@efficios.com>
9063
9064 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9065 Remove.
9066 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9067 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9068 (dwarf2_compile_property_to_c): Update.
9069 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9070 use text offset from objfile.
9071 (locexpr_tracepoint_var_ref): Update.
9072 (locexpr_generate_c_location): Update.
9073 (loclist_describe_location): Update.
9074 (loclist_tracepoint_var_ref): Update.
9075 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9076 dwarf2_per_objfile parameter.
9077 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9078 use text offset from objfile.
9079 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9080
89b07335
SM
90812020-05-27 Simon Marchi <simon.marchi@efficios.com>
9082
9083 * dwarf2/expr.h (struct dwarf_expr_context)
9084 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9085 <offset>: Remove.
9086 <per_objfile>: New member.
9087 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9088 dwarf2_per_objfile parameter. Don't set offset, set
9089 per_objfile.
9090 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9091 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9092 a dwarf2_per_objfile object instead of an offset.
9093 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9094 constructor.
9095 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9096 to dwarf2_expr_executor constructor. Don't set offset.
9097 (dwarf2_fetch_cfa_info): Update.
9098 (struct dwarf2_frame_cache) <text_offset>: Remove.
9099 <per_objfile>: New field.
9100 (dwarf2_frame_cache): Update.
9101 (dwarf2_frame_prev_register): Update.
9102 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9103 <dwarf_evaluate_loc_desc>: Add constructor.
9104 (dwarf2_evaluate_loc_desc_full): Update.
9105 (dwarf2_locexpr_baton_eval): Update.
9106 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9107 Add constructor.
9108 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9109
293e7e51
SM
91102020-05-27 Simon Marchi <simon.marchi@efficios.com>
9111
9112 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9113 addr_sized_int_type>: Move to dwarf2_cu.
9114 <int_type>: Move to dwarf2_per_objfile.
9115 (struct dwarf2_per_objfile) <int_type>: Move here.
9116 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9117 addr_sized_int_type>: Move here.
9118 (read_func_scope): Update.
9119 (read_array_type): Update.
9120 (read_tag_string_type): Update.
9121 (attr_to_dynamic_prop): Update.
9122 (dwarf2_per_cu_data::int_type): Rename to...
9123 (dwarf2_per_objfile::int_type): ... this.
9124 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9125 (dwarf2_cu::addr_sized_int_type): ... this.
9126 (read_subrange_type): Update.
9127 (dwarf2_per_cu_data::addr_type): Rename to...
9128 (dwarf2_cu::addr_type): ... this.
9129 (set_die_type): Update.
9130
64874a40
SM
91312020-05-27 Simon Marchi <simon.marchi@efficios.com>
9132
9133 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9134 data through per_cu->cu.
9135
4ab09049
SM
91362020-05-27 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9139 dwarf2_per_cu_data parameter fo dwarf2_cu.
9140 (lookup_dwo_type_unit): Likewise.
9141 (read_cutu_die_from_dwo): Likewise.
9142 (lookup_dwo_unit): Likewise.
9143 (open_and_init_dwo_file): Likewise.
9144 (lookup_dwo_cutu): Likewise.
9145 (lookup_dwo_comp_unit): Likewise.
9146 (lookup_dwo_type_unit): Likewise.
9147 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9148 (cutu_reader::cutu_reader): Update.
9149
47b14e86
SM
91502020-05-27 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9153 parameter.
9154 (process_full_type_unit): Likewise.
9155 (process_queue): Update.
9156
43182c09
SM
91572020-05-27 Simon Marchi <simon.marchi@efficios.com>
9158
9159 * dwarf2/read.c (recursively_compute_inclusions): Add
9160 dwarf2_per_objfile parameter.
9161 (compute_compunit_symtab_includes): Likewise.
9162 (process_cu_includes): Update.
9163
7aa104c4
SM
91642020-05-27 Simon Marchi <simon.marchi@efficios.com>
9165
9166 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9167 parameter.
9168 (create_type_unit_group): Update.
9169 (process_psymtab_comp_unit_reader): Update.
9170 (build_type_psymtabs_reader): Update.
9171
e3beb21d
SM
91722020-05-27 Simon Marchi <simon.marchi@efficios.com>
9173
9174 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9175 object through m_this_cu->cu.
9176
d460f660
SM
91772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9178
9179 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9180 the info parameter.
9181 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9182
ab432490
SM
91832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9184
9185 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9186 per_objfile parameter.
9187 (load_full_type_unit): Add per_objfile parameter.
9188 (read_signatured_type): Likewise.
9189 (load_full_comp_unit): Likewise.
9190 (load_cu): Likewise.
9191 (dw2_do_instantiate_symtab): Likewise.
9192 (dw2_get_file_names): Likewise.
9193 (dw2_map_symtabs_matching_filename): Update.
9194 (dw_expand_symtabs_matching_file_matcher): Update.
9195 (dw2_map_symbol_filenames): Update.
9196 (process_psymtab_comp_unit): Add per_objfile parameter.
9197 (build_type_psymtabs_1): Update.
9198 (process_skeletonless_type_unit): Update.
9199 (dwarf2_build_psymtabs_hard): Update.
9200 (load_partial_comp_unit): Add per_objfile parameter.
9201 (scan_partial_symbols): Update.
9202 (load_full_comp_unit): Add per_objfile parameter.
9203 (process_imported_unit_die): Update.
9204 (create_cus_hash_table): Update.
9205 (find_partial_die): Update.
9206 (dwarf2_read_addr_index): Update.
9207 (follow_die_offset): Update.
9208 (dwarf2_fetch_die_loc_sect_off): Update.
9209 (dwarf2_fetch_constant_bytes): Update.
9210 (dwarf2_fetch_die_type_sect_off): Update.
9211 (follow_die_sig_1): Update.
9212 (load_full_type_unit): Add per_objfile parameter.
9213 (read_signatured_type): Likewise.
9214
313bad1b
SM
92152020-05-27 Simon Marchi <simon.marchi@efficios.com>
9216
9217 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9218 of objfile_name.
9219
c3699833
SM
92202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9221
9222 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9223 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9224 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9225 field.
9226 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9227 (create_cus_from_index): Update.
9228 (dwarf2_read_gdb_index): Update.
9229 (create_cus_from_debug_names): Update.
9230 (dwarf2_read_debug_names): Update.
9231 (get_abbrev_section_for_cu): Update.
9232 (create_all_comp_units): Update.
9233 (read_attribute_value): Update.
9234 (get_debug_line_section): Update.
9235 * dwarf2/index-cache.c (index_cache::store): Update.
9236 * dwarf2/index-write.c (save_gdb_index_command): Update.
9237 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9238
1859c670
SM
92392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9240
9241 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9242 member.
9243 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9244 dwarf2_per_cu_data::per_bfd.
9245 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9246 (create_type_unit_group): Likewise.
9247 (queue_comp_unit): Remove reference to
9248 per_cu->dwarf2_per_objfile.
9249 (maybe_queue_comp_unit): Likewise.
9250 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9251 (create_cus_hash_table): Assign new field.
9252
5e22e966
SM
92532020-05-27 Simon Marchi <simon.marchi@efficios.com>
9254
9255 * dwarf2/read.c: Replace
9256 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9257 dwarf2_cu->per_objfile throughout.
9258
97a1449a
SM
92592020-05-27 Simon Marchi <simon.marchi@efficios.com>
9260
9261 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9262 parameter, don't use per_cu->dwarf2_per_objfile.
9263 (dw2_instantiate_symtab): Likewise.
9264 (dw2_find_last_source_symtab): Update.
9265 (dw2_map_expand_apply): Update.
9266 (dw2_lookup_symbol): Update.
9267 (dw2_expand_symtabs_for_function): Update.
9268 (dw2_expand_all_symtabs): Update.
9269 (dw2_expand_symtabs_with_fullname): Update.
9270 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9271 don't use per_cu->dwarf2_per_objfile.
9272 (dw2_expand_marked_cus): Update.
9273 (dw2_find_pc_sect_compunit_symtab): Update.
9274 (dw2_debug_names_lookup_symbol): Update.
9275 (dw2_debug_names_expand_symtabs_for_function): Update.
9276 (dw2_debug_names_map_matching_symbols): Update.
9277 (dwarf2_psymtab::expand_psymtab): Update.
9278
9e021579
SM
92792020-05-27 Simon Marchi <simon.marchi@efficios.com>
9280
9281 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9282 <per_objfile>: New member.
9283 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9284 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9285 call to dwarf2_cu.
9286 (cutu_reader::cutu_reader): Update.
9287 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9288
ae090bdb
SM
92892020-05-27 Simon Marchi <simon.marchi@efficios.com>
9290
9291 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9292 struct dwarf2_per_objfile.
9293 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9294 dwarf2_per_bfd.
9295 * dwarf2/read.c (set_die_type): Update.
9296 (get_die_type_at_offset): Update.
9297
af758d11
SM
92982020-05-27 Tom Tromey <tom@tromey.com>
9299 Simon Marchi <simon.marchi@efficios.com>
9300
9301 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9302 method.
9303 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9304 get_symtab, set_symtab>: New methods.
9305 <m_symtabs>: New field.
9306 (struct dwarf2_psymtab): Derive from partial_symtab.
9307 <readin_p, get_compunit_symtab>: Declare methods.
9308 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9309 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9310 New methods.
9311 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9312 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9313 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9314 (dw2_symtab_iter_next, dw2_print_stats)
9315 (dw2_expand_symtabs_with_fullname)
9316 (dw2_expand_symtabs_matching_one)
9317 (dw_expand_symtabs_matching_file_matcher)
9318 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9319 (dw2_debug_names_iterator::next)
9320 (dw2_debug_names_map_matching_symbols)
9321 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9322 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9323 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9324 New methods.
9325 (get_compunit_symtab, process_full_comp_unit)
9326 (process_full_type_unit): Update.
9327 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9328
5989a64e
SM
93292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9330
9331 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9332 then introduce a new dwarf2_per_objfile type.
9333 <read_line_string>: Move to the new dwarf2_per_objfile type.
9334 <objfile>: Likewise.
9335 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9336 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9337 dwarf2_per_objfile->per_bfd.
9338 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9339 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9340 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9341 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9342 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9343 (dwarf2_per_objfile::locate_sections): Rename to...
9344 (dwarf2_per_bfd::locate_sections): ... this.
9345 (dwarf2_per_objfile::get_cutu): Rename to...
9346 (dwarf2_per_bfd::get_cutu): ... this.
9347 (dwarf2_per_objfile::get_cu): Rename to...
9348 (dwarf2_per_bfd::get_cu): ... this.
9349 (dwarf2_per_objfile::get_tu): Rename to...
9350 (dwarf2_per_bfd::get_tu): ... this.
9351 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9352 (dwarf2_per_bfd::allocate_per_cu): ... this.
9353 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9354 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9355 (get_gdb_index_contents_ftype): Change parameter from
9356 dwarf2_per_objfile to dwarf2_per_bfd.
9357 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9358 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9359
a50264ba
TT
93602020-05-27 Tom Tromey <tom@tromey.com>
9361 Simon Marchi <simon.marchi@efficios.com>
9362
9363 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9364 (allocate_piece_closure): Set "per_objfile" member.
9365 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9366 (locexpr_describe_location, loclist_describe_location): Use new
9367 member.
9368 * dwarf2/read.c (read_call_site_scope)
9369 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9370 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9371 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9372 handle_data_member_location): Set per_objfile member.
9373 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9374 member.
9375 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9376
d3473f0c
TT
93772020-05-27 Tom Tromey <tom@tromey.com>
9378
9379 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9380 allocate_signatured_type>: Declare new methods.
9381 <m_num_psymtabs>: New member.
9382 (struct dwarf2_per_cu_data) <index>: New member.
9383 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9384 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9385 (create_cu_from_index_list): Use allocate_per_cu.
9386 (create_signatured_type_table_from_index)
9387 (create_signatured_type_table_from_debug_names)
9388 (create_debug_type_hash_table, add_type_unit)
9389 (read_comp_units_from_section): Use allocate_signatured_type.
9390
5717c425
TT
93912020-05-27 Tom Tromey <tom@tromey.com>
9392
9393 * psymtab.c (partial_map_expand_apply)
9394 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9395 (psym_lookup_global_symbol_language)
9396 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9397 (psym_print_stats, psym_expand_symtabs_for_function)
9398 (psym_map_symbol_filenames, psym_map_matching_symbols)
9399 (psym_expand_symtabs_matching)
9400 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9401 (maintenance_check_psymtabs): Update.
9402 * psympriv.h (struct partial_symtab) <readin_p,
9403 get_compunit_symtab>: Add objfile parameter.
9404 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9405 Likewise.
9406 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9407 get_compunit_symtab>: Likewise.
9408 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9409
45940949
TT
94102020-05-27 Tom Tromey <tom@tromey.com>
9411
9412 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9413 member.
9414 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9415 (create_cu_from_index_list)
9416 (create_signatured_type_table_from_index)
9417 (create_signatured_type_table_from_debug_names)
9418 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9419 (dwarf2_create_include_psymtab)
9420 (create_debug_type_hash_table, add_type_unit)
9421 (create_type_unit_group, read_comp_units_from_section)
9422 (dwarf2_compute_name, create_cus_hash_table)
9423 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9424 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9425 obstack.
9426 (dw2_get_real_path): Likewise. Change argument to
9427 dwarf2_per_objfile.
9428
f8c6d152
LM
94292020-05-27 Luis Machado <luis.machado@linaro.org>
9430
9431 PR tdep/26000
9432 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9433 for ldrd (immediate).
9434
e98d2e6d
PW
94352020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9436
9437 * command.h: Add comment giving the name of class_tui.
9438 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9439 create the fake command for the help for class_tui.
9440
53a47a3e
TT
94412020-05-26 Tom Tromey <tromey@adacore.com>
9442
9443 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9444 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9445 (val_atr): New function.
9446 (value_val_atr): Use it.
9447 * ada-valprint.c (print_optional_low_bound): Change low bound
9448 handling for enums.
9449 (val_print_packed_array_elements): Don't call discrete_position.
9450 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9451 discrete_position for enum types.
9452 * language.c (default_print_array_index): Change type.
9453 * language.h (struct language_defn) <la_print_array_index>: Add
9454 index_type parameter, change type of index_value.
9455 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9456 (default_print_array_index): Update.
9457 * valprint.c (maybe_print_array_index): Don't call
9458 value_from_longest. Update.
9459 (value_print_array_elements): Don't call discrete_position.
9460
0bc2354b
TT
94612020-05-26 Tom Tromey <tromey@adacore.com>
9462
9463 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9464 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9465
1218a4bf
CDA
94662020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9467
9468 PR gdb/13519
9469 * avr-tdep.c (avr_integer_to_address): Return data or code
9470 address accordingly to the second 'type' argument of the
9471 function.
9472
92651b1d
MW
94732020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9474
9475 * infcmd.c, inferior.h: (construct_inferior_arguments):
9476 Moved function from here to gdbsupport/common-inferior.{h,cc}
9477
0a4f5f8c
TT
94782020-05-23 Tom Tromey <tom@tromey.com>
9479
9480 Revert commit eca1f90c:
9481 * NEWS: Remove entry for completion styling.
9482 * completer.c (_rl_completion_prefix_display_length): Move
9483 declaration later.
9484 (gdb_fnprint): Revert.
9485 (gdb_display_match_list_1): Likewise.
9486 * cli/cli-style.c (completion_prefix_style)
9487 (completion_difference_style, completion_suffix_style): Remove.
9488 (_initialize_cli_style): Revert.
9489 * cli/cli-style.h (completion_prefix_style)
9490 (completion_difference_style, completion_suffix_style): Don't
9491 declare.
9492
e08bd6c5
PA
94932020-05-24 Pedro Alves <palves@redhat.com>
9494
9495 * symtab.c (completion_list_add_name): Return boolean indication
9496 of whether the symbol matched.
9497 (completion_list_add_symbol): Don't try to remove C++ aliases if
9498 the symbol didn't match in the first place.
9499 * symtab.h (completion_list_add_name): Return bool.
9500
ceacbf6e
SM
95012020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9502
9503 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9504 type::field.
9505
26f16254
JB
95062020-05-23 Joel Brobecker <brobecker@adacore.com>
9507
9508 GDB 9.2 released.
9509
eca1f90c
TT
95102020-05-23 Tom Tromey <tom@tromey.com>
9511
9512 * NEWS: Add entry for completion styling.
9513 * completer.c (_rl_completion_prefix_display_length): Move
9514 declaration earlier.
9515 (gdb_fnprint): Use completion_style.
9516 (gdb_display_match_list_1): Likewise.
9517 * cli/cli-style.c (completion_prefix_style)
9518 (completion_difference_style, completion_suffix_style): New
9519 globals.
9520 (_initialize_cli_style): Register new globals.
9521 * cli/cli-style.h (completion_prefix_style)
9522 (completion_difference_style, completion_suffix_style): Declare.
9523
51e2cfa2
PA
95242020-05-23 Pedro Alves <palves@redhat.com>
9525
9526 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9527 (parse_escape): Use ISDIGIT instead of isdigit.
9528 (puts_debug): Use gdb_isprint instead of isprint.
9529 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9530 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9531 ISSPACE instead of isspace.
9532 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9533 instead of isspace.
9534 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9535 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9536 instead of isxdigit and ISDIGIT instead of isdigit.
9537
80fc5e77
SM
95382020-05-22 Simon Marchi <simon.marchi@efficios.com>
9539
9540 * gdbtypes.h (struct type) <field>: New method.
9541 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9542 or type::field.
9543
3cabb6b0
SM
95442020-05-22 Simon Marchi <simon.marchi@efficios.com>
9545
9546 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9547 (TYPE_FIELDS): Use type::fields. Change all call sites that
9548 modify the propery to use type::set_fields instead.
9549
1f704f76
SM
95502020-05-22 Simon Marchi <simon.marchi@efficios.com>
9551
9552 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9553 type::num_fields instead.
9554
5e33d5f4
SM
95552020-05-22 Simon Marchi <simon.marchi@efficios.com>
9556
9557 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9558 methods.
9559 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9560 that modify the number of fields to use type::set_num_fields
9561 instead.
9562
9392ebb3
TT
95632020-05-22 Tom Tromey <tromey@adacore.com>
9564
9565 * compile/compile-object-load.h (munmap_list_free): Don't
9566 declare.
9567
7c13f4e8
AB
95682020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9569
9570 * annotate.c (annotate_source_line): Update return type, add call
9571 to update current symtab and line.
9572 * annotate.h (annotate_source_line): Update return type, and
9573 extend header comment.
9574 * source.c (info_line_command): Check annotation_level before
9575 calling annotate_source_line.
9576 * stack.c (print_frame_info): If calling annotate_source_line
9577 returns true, then don't print any other source line information.
9578
aa370940
SM
95792020-05-21 Simon Marchi <simon.marchi@efficios.com>
9580
9581 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9582
84d53fa9
SM
95832020-05-21 Simon Marchi <simon.marchi@efficios.com>
9584
9585 * coffread.c (patch_type): Remove NULL check before xfree.
9586 * corefile.c (set_gnutarget): Likewise.
9587 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9588 * exec.c (build_section_table): Likewise.
9589 * remote.c (remote_target::pass_signals): Likewise.
9590 * utils.c (n_spaces): Likewise.
9591 * cli/cli-script.c (document_command): Likewise.
9592 * i386-windows-tdep.c (core_process_module_section): Likewise.
9593 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9594
9d428aae
SM
95952020-05-20 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * symfile.c (reread_symbols): Clear objfile's section_offsets
9598 vector and section indices, re-compute them by calling
9599 sym_offsets.
9600
250106a7
TT
96012020-05-20 Tom Tromey <tromey@adacore.com>
9602
9603 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9604 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9605
9a0bacfb
TV
96062020-05-20 Tom de Vries <tdevries@suse.de>
9607
9608 PR symtab/25833
9609 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9610
7b958a48
AM
96112020-05-20 Alan Modra <amodra@gmail.com>
9612
9613 PR 25993
9614 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9615 bfd_set_filename.
9616 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9617 passed to bfd_set_filename.
9618 * symfile-mem.c (add_vsyscall_page): Likewise for string
9619 passed to symbol_file_add_from_memory.
9620 (symbol_file_add_from_memory): Make name param a const char* and
9621 don't strdup.
9622
c7e97679
AM
96232020-05-20 Alan Modra <amodra@gmail.com>
9624
9625 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9626 rather than accessing bfd->filename directly.
9627 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9628 and use bfd_section_name.
9629 * dwarf2/frame.c (decode_frame_entry): Likewise.
9630 * exec.c (exec_set_section_address): Likewise.
9631 * solib-aix.c (solib_aix_bfd_open): Likewise.
9632 * stap-probe.c (get_stap_base_address): Likewise.
9633 * symfile.c (reread_symbols): Likewise.
9634
563c591b
TT
96352020-05-19 Tom Tromey <tromey@adacore.com>
9636
9637 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9638
f408d82c
SM
96392020-05-19 Simon Marchi <simon.marchi@efficios.com>
9640
9641 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9642
98c59b52
PA
96432020-05-19 Pedro Alves <palves@redhat.com>
9644
9645 * NEWS (set exec-file-mismatch): Adjust entry.
9646 * exec.c: Include "build-id.h".
9647 (validate_exec_file): Try to match build IDs instead of filenames.
9648 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9649 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9650 and pass down 'warn_if_slow'.
9651 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9652 gdb_bfd_open_closure to pass it down.
9653 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9654
4111f652
PA
96552020-05-19 Pedro Alves <palves@redhat.com>
9656
9657 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9658 * target.c (target_fileio_open_1): Rename to target_fileio_open
9659 and make extern. Use bool.
9660 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9661 (target_fileio_read_alloc_1): Adjust.
9662 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9663 (target_fileio_open_warn_if_slow): Delete declaration.
9664
ad80db5b
PA
96652020-05-19 Pedro Alves <palves@redhat.com>
9666
9667 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9668 Adjust all callers.
9669
1d6ce4d3
YS
96702020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9671
9672 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9673 whether disp is negative.
9674
9005fbbb
SM
96752020-05-19 Simon Marchi <simon.marchi@efficios.com>
9676
9677 * symfile.h (struct symfile_segment_data)
9678 <~symfile_segment_data>: Remove.
9679 <segment_info>: Change to std::vector.
9680 * symfile.c (default_symfile_segments): Update.
9681 * elfread.c (elf_symfile_segments): Update.
9682
68b888ff
SM
96832020-05-19 Simon Marchi <simon.marchi@efficios.com>
9684
9685 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9686 <segments>: New.
9687 <segment_bases, segment_sizes>: Remove.
9688 * symfile.c (default_symfile_segments): Update.
9689 * elfread.c (elf_symfile_segments): Update.
9690 * remote.c (remote_target::get_offsets): Update.
9691 * solib-target.c (solib_target_relocate_section_addresses):
9692 Update.
9693
62982abd
SM
96942020-05-19 Simon Marchi <simon.marchi@efficios.com>
9695
9696 * symfile.h (struct symfile_segment_data): Initialize fields.
9697 <~symfile_segment_data>: Add.
9698 (symfile_segment_data_up): New.
9699 (struct sym_fns) <sym_segments>: Return a
9700 symfile_segment_data_up.
9701 (default_symfile_segments): Return a symfile_segment_data_up.
9702 (free_symfile_segment_data): Remove.
9703 (get_symfile_segment_data): Return a symfile_segment_data_up.
9704 * symfile.c (default_symfile_segments): Likewise.
9705 (get_symfile_segment_data): Likewise.
9706 (free_symfile_segment_data): Remove.
9707 (symfile_find_segment_sections): Update.
9708 * elfread.c (elf_symfile_segments): Return a
9709 symfile_segment_data_up.
9710 * remote.c (remote_target::get_offsets): Update.
9711 * solib-target.c (solib_target_relocate_section_addresses):
9712 Update.
9713 * symfile-debug.c (debug_sym_segments): Return a
9714 symfile_segment_data_up.
9715
7f204339
RO
97162020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9717
e52a0f1b
RO
9718 PR build/25981
9719 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9720 Hardcode register numbers.
9721
7f204339
RO
9722 PR build/25981
9723 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9724 procfs_find_LDT_entry): Remove.
9725 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9726 procfs_find_LDT_entry): Remove.
9727 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9728 Remove.
9729
7f32a4d5
PA
97302020-05-17 Pedro Alves <palves@redhat.com>
9731 Andrew Burgess <andrew.burgess@embecosm.com>
9732 Keno Fischer <keno@juliacomputing.com>
9733
9734 PR gdb/25741
9735 * breakpoint.c (build_target_condition_list): Update comments.
9736 (build_target_command_list): Update comments and skip matching
9737 locations.
9738 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9739 a separate function. Simplify "set breakpoint auto-hw off"
9740 handling.
9741 (insert_breakpoints): Update comment.
9742 (tracepoint_locations_match): New parameter. For breakpoints,
9743 compare location types too, if the caller wants to.
9744 (handle_automatic_hardware_breakpoints): New functions.
9745 (bp_location_is_less_than): Also sort by location type and
9746 hardware breakpoint length.
9747 (update_global_location_list): Handle "set breakpoint auto-hw on"
9748 here.
9749 (update_breakpoint_locations): Ask breakpoint_locations_match to
9750 ignore location types.
9751
7d93a1e0
SM
97522020-05-16 Simon Marchi <simon.marchi@efficios.com>
9753
9754 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9755 type::name instead.
9756
d0e39ea2
SM
97572020-05-16 Simon Marchi <simon.marchi@efficios.com>
9758
9759 * gdbtypes.h (struct type) <name, set_name>: New methods.
9760 (TYPE_CODE): Use type::name. Change all call sites used to set
9761 the name to use type::set_name instead.
9762
2dab0c7b
TT
97632020-05-16 Tom Tromey <tom@tromey.com>
9764
9765 * top.c (quit_force): Update.
9766 * infrun.c (handle_no_resumed): Update.
9767 * top.h (all_uis): New function.
9768 (ALL_UIS): Remove.
9769
59f7bd8d
SM
97702020-05-16 Simon Marchi <simon.marchi@efficios.com>
9771
9772 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9773
9bf058f0
PA
97742020-05-16 Pedro Alves <palves@redhat.com>
9775
9776 * ia64-linux-nat.c
9777 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9778 Declare method.
9779 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9780
8f86ae1a
SM
97812020-05-15 Simon Marchi <simon.marchi@efficios.com>
9782
9783 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9784 (sparc64_adi_info): Likewise.
9785
d6bc0792
TT
97862020-05-15 Tom Tromey <tom@tromey.com>
9787
9788 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9789 block_objfile.
9790 (lookup_objfile_from_block): Remove.
9791 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9792 (lookup_global_symbol): Use block_objfile.
9793 * symtab.h (lookup_objfile_from_block): Don't declare.
9794 * printcmd.c (clear_dangling_display_expressions): Use
9795 block_objfile.
9796 * parse.c (operator_check_standard): Use block_objfile.
9797
8c14c3a3
TT
97982020-05-15 Tom Tromey <tom@tromey.com>
9799
9800 * language.c (language_alloc_type_symbol): Set
9801 SYMBOL_SECTION.
9802 * symtab.c (initialize_objfile_symbol): Remove.
9803 (allocate_symbol): Remove.
9804 (allocate_template_symbol): Remove.
9805 * dwarf2/read.c (fixup_go_packaging): Use "new".
9806 (new_symbol): Use "new".
9807 (read_variable): Don't call initialize_objfile_symbol. Use
9808 "new".
9809 (read_func_scope): Use "new".
9810 * xcoffread.c (process_xcoff_symbol): Don't call
9811 initialize_objfile_symbol.
9812 (SYMBOL_DUP): Remove.
9813 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9814 "new".
9815 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9816 (allocate_template_symbol): Don't declare.
9817 (struct symbol): Add copy constructor. Change defaults.
9818 * jit.c (finalize_symtab): Use "new".
9819 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9820 Use "new".
9821 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9822 (common_block_end): Use "new".
9823 * mdebugread.c (parse_symbol): Use "new".
9824 (new_symbol): Likewise.
9825
5b4a1a8d
PW
98262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9827
9828 * NEWS: Mention changes to help and apropos.
9829
57b4f16e
PW
98302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9831
9832 * command.h (enum command_class): Improve comments, document
9833 that class_alias is for user-defined aliases, give the class
9834 name for each class, remove unused class_xdb.
9835 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9836 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9837 by a precise class.
9838 * infcmd.c (_initialize_infcmd): Likewise.
9839 * reverse.c (_initialize_reverse): Likewise.
9840 * stack.c (_initialize_stack): Likewise.
9841 * symfile.c (_initialize_symfile): Likewise.
9842 * tracepoint.c (_initialize_tracepoint): Likewise.
9843
7c05caf7
PW
98442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9845
9846 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9847 when their aliased command is traversed.
9848 (help_cmd): Add fput_command_names_styled call to
9849 output command name and aliases when command has an alias.
9850
3b3aaacb
PW
98512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9852
9853 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9854 * cli/cli-decode.c (help_cmd_list): Declare as static,
9855 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9856 a command together with the command.
9857 (fput_command_name_styled, fput_command_names_styled): New functions.
9858 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9859 fput_command_name_styled.
9860 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9861 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9862
7aa1b46f
PW
98632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9864
9865 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9866 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9867 * command.h (cmd_show_list): Likewise.
9868 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9869 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9870
89bcba74
PW
98712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9872
9873 * unittests/command-def-selftests.c (traverse_command_structure):
9874 Verify all commands of a list have the same prefix command and
9875 that only the top cmdlist commands have a null prefix.
9876
3f4d92eb
PW
98772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9878
9879 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9880 as prefix, not one of its aliases.
9881 (set_cmd_prefix): Remove.
9882 (do_add_cmd): Centralize the setting of the prefix of a command, when
9883 command is defined after its full chain of prefix commands.
9884 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9885 (add_setshow_cmd_full): Likewise.
9886 (update_prefix_field_of_prefixed_commands): New function.
9887 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9888 update_prefix_field_of_prefixed_commands.
9889 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9890 addresses of remote_set_cmdlist and remote_show_cmdlist given
9891 as argument, not the address of an argument.
9892 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9893 * gdb/remote.c (_initialize_remote): Likewise.
9894
0605465f
PW
98952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9896
9897 * cli/cli-cmds.c (alias_command): Check for an existing alias
9898 using lookup_cmd_composition, as valid_command_p is too strict
9899 and forbids aliases that are the prefix of an existing alias
9900 or command.
9901 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9902 command is properly recognised as a valid command.
9903
58e6ac70
PW
99042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9905
9906 * unittests/help-doc-selftests.c: Rename to
9907 unittests/command-def-selftests.c
9908 * unittests/command-def-selftests.c (help_doc_tests): Update some
9909 comments.
9910 (command_structure_tests, traverse_command_structure): New namespace
9911 and function.
9912 (command_structure_invariants_tests): New function.
9913 (_initialize_command_def_selftests) Renamed from
9914 _initialize_help_doc_selftests, register command_structure_invariants
9915 selftest.
9916
a7b9ceb8
PW
99172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9918
9919 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9920 an alias of 'show'.
9921
b2188a06
JB
99222020-05-15 Joel Brobecker <brobecker@adacore.com>
9923
9924 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9925 ada_is_fixed_point_type. Update all callers.
9926 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9927 all callers.
9928 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9929 Update all callers.
9930 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9931 print_fixed_point_type. Update all callers.
9932 * ada-valprint.c (ada_value_print_num): Replace call to
9933 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9934
a51951c2
KB
99352020-05-14 Kevin Buettner <kevinb@redhat.com>
9936
9937 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9938 processors.
9939 (cpu_supports_bts): Add CV_AMD case.
9940
29d6859f
LM
99412020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9942 Simon Marchi <simon.marchi@efficios.com>
9943
9944 * infrun.c (stop_all_threads): Collect multiple wait events at
9945 each pass.
9946
78134374
SM
99472020-05-14 Simon Marchi <simon.marchi@efficios.com>
9948
9949 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9950 type::code instead.
9951
67607e24
SM
99522020-05-14 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * gdbtypes.h (struct type) <code, set_code>: New methods.
9955 (TYPE_CODE): Use type::code. Change all call sites used to set
9956 the code to use type::set_code instead.
9957
a05575d3
TBA
99582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9959 Tom de Vries <tdevries@suse.de>
9960 Pedro Alves <palves@redhat.com>
9961
9962 PR threads/25478
9963 * infrun.c (stop_all_threads): Do NOT ignore
9964 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9965 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9966 received.
9967 (handle_no_resumed): Remove code handling a live inferior with no
9968 threads.
9969 * remote.c (has_single_non_exited_thread): New.
9970 (remote_target::update_thread_list): Do not delete a thread if is
9971 the last thread of the process.
9972 * thread.c (thread_select): Call delete_exited_threads instead of
9973 prune_threads.
9974
6ad82919
TBA
99752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9976
9977 * infrun.c (stop_all_threads): Enable/disable thread events of all
9978 targets. Move a debug message denoting the end of the function
9979 into the SCOPED_EXIT block.
9980
d890404b
TBA
99812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9982
9983 * process-stratum-target.h: Include <set>.
9984 (all_non_exited_process_targets, switch_to_target_no_thread): New
9985 function declarations.
9986 * process-stratum-target.c (all_non_exited_process_targets)
9987 (switch_to_target_no_thread): New function implementations.
9988
293b3ebc
TBA
99892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9990
9991 * infrun.c (handle_inferior_event): Extract out a piece of code
9992 into...
9993 (mark_non_executing_threads): ...this new function.
9994
7ca9b62a
TBA
99952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9996
9997 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9998 use.
9999
fc75c28b
TBA
100002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10001
10002 * regcache.c (regcache_read_pc_protected): New function
10003 implementation that returns 0 if the PC cannot read via
10004 'regcache_read_pc'.
10005 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10006 instead of 'regcache_read_pc'.
10007 (keep_going_pass_signal): Ditto.
10008
a89febbd
TT
100092020-05-13 Tom Tromey <tromey@adacore.com>
10010
10011 * ada-lang.c (align_value): Remove.
10012 (ada_template_to_fixed_record_type_1): Use align_up.
10013
f7e23710
TBA
100142020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10015
10016 * async-event.c: Update the copyright year.
10017 * async-event.h: Update the copyright year.
10018
02ff80c2
SM
100192020-05-12 Simon Marchi <simon.marchi@efficios.com>
10020
10021 * objfiles.h (is_addr_in_objfile,
10022 shared_objfile_contains_address_p): Return bool.
10023 * objfile.c (is_addr_in_objfile,
10024 shared_objfile_contains_address_p): Return bool.
10025
4fd6c7e8
TT
100262020-05-11 Tom Tromey <tromey@adacore.com>
10027
10028 * cli/cli-cmds.c (info_command): Restore.
10029 (_initialize_cli_cmds): Use add_prefix_command for "info".
10030 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10031
5eb68a39
TT
100322020-05-11 Tom Tromey <tromey@adacore.com>
10033
10034 * ada-lang.c (ada_value_primitive_field): Now public.
10035 * ada-lang.h (ada_value_primitive_field): Declare.
10036 * ada-valprint.c (print_field_values): Use
10037 ada_value_primitive_field for wrapper fields.
10038
7666722f
TV
100392020-05-11 Tom de Vries <tdevries@suse.de>
10040
10041 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10042 MODULE_DOMAIN.
10043
3ee6bb11
TV
100442020-05-11 Tom de Vries <tdevries@suse.de>
10045
10046 PR symtab/25941
10047 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10048 with length 0, if not gdb-produced.
10049 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10050
43434996
TV
100512020-05-09 Tom de Vries <tdevries@suse.de>
10052
10053 PR gdb/25955
10054 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10055 calculation.
10056
2f78cffc
TT
100572020-05-09 Tom Tromey <tom@tromey.com>
10058
10059 * top.c (server_command): Now bool.
10060 * top.h (server_command): Now bool.
10061
4f7bc5ed
TT
100622020-05-08 Tom Tromey <tromey@adacore.com>
10063
10064 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10065 already being processed.
10066
8be4b118
TT
100672020-05-08 Tom Tromey <tom@tromey.com>
10068
10069 * printcmd.c (struct display) <next>: Remove.
10070 <display>: New constructor.
10071 <exp_string>: Now a std::string.
10072 <enabled_p>: Now a bool.
10073 (display_number): Move definition earlier.
10074 (displays): Rename from display_chain. Now a std::vector.
10075 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10076 (display_command): Update.
10077 (do_one_display, disable_display)
10078 (enable_disable_display_command, do_enable_disable_display):
10079 Update.
10080 (free_display): Remove.
10081 (clear_displays): Rewrite.
10082 (delete_display): Update.
10083 (map_display_numbers): Use function_view. Remove "data"
10084 parameter. Update.
10085 (do_delete_display): Remove.
10086 (undisplay_command): Update.
10087 (do_one_display, do_displays, disable_display)
10088 (info_display_command): Update.
10089 (do_enable_disable_display): Remove.
10090 (enable_disable_display_command)
10091 (clear_dangling_display_expressions): Update.
10092
94c93c35
TT
100932020-05-08 Tom Tromey <tom@tromey.com>
10094
10095 * symtab.c (set_symbol_cache_size)
10096 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10097 (maintenance_print_symbol_cache_statistics): Update.
10098 * symmisc.c (print_symbol_bcache_statistics)
10099 (print_objfile_statistics, maintenance_print_objfiles)
10100 (maintenance_info_symtabs, maintenance_check_symtabs)
10101 (maintenance_expand_symtabs, maintenance_info_line_tables):
10102 Update.
10103 * symfile-debug.c (set_debug_symfile): Update.
10104 * source.c (forget_cached_source_info): Update.
10105 * python/python.c (gdbpy_progspaces): Update.
10106 * psymtab.c (maintenance_info_psymtabs): Update.
10107 * probe.c (parse_probes): Update.
10108 * linespec.c (iterate_over_all_matching_symtabs)
10109 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10110 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10111 * exec.c (exec_target::close): Update.
10112 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10113 * breakpoint.c (print_one_breakpoint_location)
10114 (create_longjmp_master_breakpoint)
10115 (create_std_terminate_master_breakpoint): Update.
10116 * progspace.c (program_spaces): Now a std::vector.
10117 (maybe_new_address_space): Update.
10118 (add_program_space): Remove.
10119 (program_space::program_space): Update.
10120 (remove_program_space): Update.
10121 (number_of_program_spaces): Remove.
10122 (print_program_space, update_address_spaces): Update.
10123 * progspace.h (program_spaces): Change type.
10124 (ALL_PSPACES): Remove.
10125 (number_of_program_spaces): Don't declare.
10126 (struct program_space) <next>: Remove.
10127
a1fd1ac9
TT
101282020-05-08 Tom Tromey <tom@tromey.com>
10129
10130 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10131 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10132 (enable_break): Update.
10133 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10134 (frv_fdpic_find_canonical_descriptor): Update.
10135 (frv_fetch_objfile_link_map): Update.
10136 * progspace.c (program_space::free_all_objfiles): Update.
10137 (program_space::solibs): New method.
10138 * progspace.h (struct program_space) <solibs>: New method.
10139 * solist.h (master_so_list): Don't declare.
10140 (ALL_SO_LIBS): Remove.
10141 * solib.h (so_list_head): Remove.
10142 (update_solib_list): Update comment.
10143 * solib.c (master_so_list): Remove.
10144 (solib_used, update_solib_list, solib_add)
10145 (info_sharedlibrary_command, clear_solib)
10146 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10147
38eae084
TT
101482020-05-08 Tom Tromey <tom@tromey.com>
10149
10150 * extension.c (extension_languages): Now a std::array.
10151 (ALL_EXTENSION_LANGUAGES): Remove.
10152 (get_ext_lang_defn, get_ext_lang_of_file)
10153 (eval_ext_lang_from_control_command): Update.
10154 (finish_ext_lang_initialization)
10155 (auto_load_ext_lang_scripts_for_objfile)
10156 (ext_lang_type_printers::ext_lang_type_printers)
10157 (apply_ext_lang_type_printers)
10158 (ext_lang_type_printers::~ext_lang_type_printers)
10159 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10160 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10161 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10162 (get_matching_xmethod_workers, ext_lang_colorize)
10163 (ext_lang_before_prompt): Update.
10164 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10165
596dc4ad
TT
101662020-05-08 Tom Tromey <tom@tromey.com>
10167
10168 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10169 overload.
10170 <swap_string, m_string>: Remove.
10171 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10172 Update.
10173 * stabsread.c (define_symbol, read_type): Update.
10174 * linespec.c (find_linespec_symbols): Update.
10175 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10176 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10177 * dbxread.c (read_dbx_symtab): Update.
10178 * cp-support.h (cp_canonicalize_string_full)
10179 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10180 Return unique_xmalloc_ptr.
10181 * cp-support.c (inspect_type): Update.
10182 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10183 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10184 Likewise.
10185 * c-typeprint.c (print_name_maybe_canonical): Update.
10186 * break-catch-throw.c (check_status_exception_catchpoint):
10187 Update.
10188
bf4cb9be
TV
101892020-05-08 Tom de Vries <tdevries@suse.de>
10190
10191 * infrun.c (follow_fork): Copy current_line and current_symtab to
10192 child thread.
10193
a1b68f28
SM
101942020-05-07 Simon Marchi <simon.marchi@efficios.com>
10195
10196 * async-event.c (struct async_signal_handler, struct
10197 async_event_handler): Reformat, remove typedef.
10198
98d48915
SM
101992020-05-07 Simon Marchi <simon.marchi@efficios.com>
10200
10201 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10202 access thistype->main_type->dyn_prop_list directly.
10203
7aa91313
SM
102042020-05-07 Simon Marchi <simon.marchi@efficios.com>
10205
10206 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10207 (remove_dyn_prop): Remove. Update all users to use
10208 type::remove_dyn_prop.
10209 * gdbtypes.c (remove_dyn_prop): Rename to...
10210 (type::remove_dyn_prop): ... this.
10211
5c54719c
SM
102122020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10213
10214 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10215 (add_dyn_prop): Remove. Update all users to use
10216 type::add_dyn_prop.
10217 * gdbtypes.c (add_dyn_prop): Rename to...
10218 (type::add_dyn_prop): ... this.
10219
24e99c6c
SM
102202020-05-07 Simon Marchi <simon.marchi@efficios.com>
10221
10222 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10223 (get_dyn_prop): Remove. Update all users to use
10224 type::dyn_prop.
10225 * gdbtypes.c (get_dyn_prop): Rename to...
10226 (type::dyn_prop): ... this.
10227
0d4bf016
SM
102282020-05-06 Simon Marchi <simon.marchi@efficios.com>
10229
10230 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10231
ac4a4f1c
SM
102322020-05-06 Simon Marchi <simon.marchi@efficios.com>
10233
10234 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10235 instruction, skip it if it's there.
10236
a3bbacc1
SM
102372020-05-05 Simon Marchi <simon.marchi@efficios.com>
10238
10239 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10240
c3236f84
SM
102412020-05-04 Simon Marchi <simon.marchi@efficios.com>
10242
10243 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10244 * gdbtypes.c (recursive_dump_type): Remove use of
10245 TYPE_INCOMPLETE.
10246
3b6acaee
TT
102472020-05-03 Tom Tromey <tom@tromey.com>
10248
10249 * breakpoint.c (catch_command, tcatch_command): Remove.
10250 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10251 add_show_prefix_cmd.
10252 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10253 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10254 Remove.
10255 (add_internal_problem_command): Use add_basic_prefix_cmd,
10256 add_show_prefix_cmd.
10257 * mips-tdep.c (set_mipsfpu_command): Remove.
10258 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10259 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10260 (_initialize_index_cache): Use add_basic_prefix_cmd.
10261 * memattr.c (dummy_cmd): Remove.
10262 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10263 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10264 (_initialize_tui_win): Use add_basic_prefix_cmd,
10265 add_show_prefix_cmd.
10266 * cli/cli-logging.c (set_logging_command): Remove.
10267 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10268 add_show_prefix_cmd.
10269 (show_logging_command): Remove.
10270 * target.c (target_command): Remove.
10271 (add_target): Use add_basic_prefix_cmd.
10272
a51119cd
HD
102732020-05-02 Hannes Domani <ssbssa@yahoo.de>
10274
10275 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10276
652fc23a 102772020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10278
652fc23a
PW
10279 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10280 info_command.
10281
117539e6
KR
102822020-04-30 Kamil Rytarowski <n54@gmx.com>
10283
10284 * nbsd-nat.c (nbsd_enable_proc_events)
10285 (nbsd_nat_target::post_startup_inferior): Add.
10286 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10287 (nbsd_nat_target::update_thread_list): Rewrite.
10288 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10289 "PTRACE_LWP_CREATE".
10290 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10291
102e38eb 102922020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10293
102e38eb
PW
10294 * stack.c (_initialize_stack): Remove duplicated creation
10295 of "frame" command and "f" alias.
10296
ee9d1e5f
HD
102972020-04-30 Hannes Domani <ssbssa@yahoo.de>
10298
10299 PR gdb/18706
10300 * gdbtypes.c (check_typedef): Calculate size of array of
10301 stubbed type.
10302
627c7fb8
HD
103032020-04-30 Hannes Domani <ssbssa@yahoo.de>
10304
10305 PR gdb/15559
10306 * i386-tdep.c (i386_push_dummy_call): Call
10307 i386_thiscall_push_dummy_call.
10308 (i386_thiscall_push_dummy_call): New function.
10309 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10310 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10311 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10312
ffc2844e
SM
103132020-04-29 Simon Marchi <simon.marchi@efficios.com>
10314
10315 * gdbarch.sh (do_read): Add shellcheck disable directive for
10316 warning SC2162.
10317
1207375d
SM
103182020-04-29 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10321 "referenced but not assigned" warning.
10322
9fdb2916
SM
103232020-04-29 Simon Marchi <simon.marchi@efficios.com>
10324
10325 * gdbarch.sh: Remove code that sets fallbackdefault.
10326
759cea5e
SM
103272020-04-29 Simon Marchi <simon.marchi@efficios.com>
10328
10329 * gdbarch.sh: Use shell operators && and || instead of
10330 -a and -o.
10331
cb02ab24
SM
103322020-04-29 Simon Marchi <simon.marchi@efficios.com>
10333
10334 * gdbarch.sh: Use $(...) instead of `...`.
10335
a6fc5ffc
SM
103362020-04-29 Simon Marchi <simon.marchi@efficios.com>
10337
10338 * gdbarch.sh: Use double quotes around variables.
10339
8d113d13
SM
103402020-04-29 Simon Marchi <simon.marchi@efficios.com>
10341
10342 * gdbarch.sh: Use %s with printf, instead of variables in the
10343 format string.
10344
ed6acedd
TT
103452020-04-29 Tom Tromey <tromey@adacore.com>
10346
10347 PR ada/25875:
10348 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10349 type fields here.
10350 (read_enumeration_type): Call
10351 update_enumeration_type_from_children later. Update comments.
10352 (process_enumeration_scope): Don't create type fields.
10353
b68b1b58
KR
103542020-04-29 Kamil Rytarowski <n54@gmx.com>
10355
10356 * nbsd-tdep.c: Include "xml-syscall.h".
10357 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10358
f94b2e03
KR
103592020-04-29 Kamil Rytarowski <n54@gmx.com>
10360
10361 * nbsd-nat.c: Include "sys/wait.h".
10362 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10363 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10364 (nbsd_nat_target::remove_exec_catchpoint)
10365 (nbsd_nat_target::set_syscall_catchpoint): Add.
10366 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10367 (nbsd_nat_target::insert_exec_catchpoint)
10368 (nbsd_nat_target::remove_exec_catchpoint)
10369 (nbsd_nat_target::set_syscall_catchpoint): Add.
10370 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10371 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10372 `nbsd_get_syscall_number'.
10373
fc49bc72
TT
103742020-04-29 Tom Tromey <tom@tromey.com>
10375
10376 * stack.c (print_block_frame_labels): Remove.
10377
d642b692
HD
103782020-04-29 Hannes Domani <ssbssa@yahoo.de>
10379
10380 PR gdb/17320
10381 * ada-valprint.c (val_print_packed_array_elements): Move array
10382 end bracket to new line.
10383 (ada_val_print_string): Remove extra spaces before first array
10384 element.
10385 * c-valprint.c (c_value_print_array): Likewise.
10386 * m2-valprint.c (m2_print_array_contents): Likewise.
10387 (m2_value_print_inner): Likewise.
10388 * p-valprint.c (pascal_value_print_inner): Likewise.
10389 * valprint.c (generic_val_print_array): Likewise.
10390 (value_print_array_elements): Move first array element and array
10391 end bracket to new line.
10392
ea90f227
TV
103932020-04-29 Tom de Vries <tdevries@suse.de>
10394
10395 PR symtab/25889
10396 * linespec.c (find_method): Fix ix calculation.
10397
4498ef4f
KR
103982020-04-28 Kamil Rytarowski <n54@gmx.com>
10399
10400 * syscalls/update-netbsd.sh: New file.
10401 * syscalls/netbsd.xml: Regenerate.
10402 * data-directory/Makefile.in: Register `netbsd.xml' in
10403 `SYSCALLS_FILES'.
10404
a55e30b5
SM
104052020-04-28 Simon Marchi <simon.marchi@efficios.com>
10406
10407 * syscalls/update-freebsd.sh: Add double quotes.
10408
2b2fbab8
TT
104092020-04-28 Tom Tromey <tom@tromey.com>
10410
10411 * NEWS: Update.
10412 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10413 (cmdpy_init): Allow class_tui.
10414
a65189c9
TV
104152020-04-28 Mark Williams <mark@myosotissp.com>
10416
10417 PR gdb/24480
10418 * dwarf2read.c: Add missing assingments to list_in_scope when
10419 start_symtab was already called.
10420
1b95cdb7
SM
104212020-04-28 Simon Marchi <simon.marchi@efficios.com>
10422
10423 PR gdb/25881
10424 * dwarf2/read.c (offset_map_type): Use
10425 gdb:hash_enum<sect_offset> as hash function.
10426
15cd93d0
TV
104272020-04-28 Tom de Vries <tdevries@suse.de>
10428
10429 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10430 with DW_AT_signature.
10431
1eb39914
SM
104322020-04-27 Simon Marchi <simon.marchi@efficios.com>
10433
10434 * configure.ac: Remove check for fs_base/gs_base in
10435 user_regs_struct.
10436 * configure: Re-generate.
10437 * config.in: Re-generate.
10438 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10439 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10440 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10441
991a3e2e
LM
104422020-04-27 Luis Machado <luis.machado@linaro.org>
10443
10444 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10445 problematic inline frame unwinding situation.
10446 * frame.c (frame_id_computed_p): New function.
10447 * frame.h (frame_id_computed_p): New prototype.
10448
361ba0e8
TT
104492020-04-26 Tom Tromey <tom@tromey.com>
10450
10451 * command.h (enum command_class) <class_pseudo>: Remove.
10452
bc3609fd
PW
104532020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10454
10455 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10456 and whitespace.
10457
b9771db7
KR
104582020-04-25 Kamil Rytarowski <n54@gmx.com>
10459
ec16513e
SM
10460 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10461 `PT_GET_PROCESS_STATE' block.
b9771db7 10462
7151c1af
TT
104632020-04-24 Tom Tromey <tom@tromey.com>
10464
10465 * symtab.h (symbol_get_demangled_name): Don't declare.
10466 * symtab.c (symbol_get_demangled_name): Remove.
10467 (general_symbol_info::natural_name)
10468 (general_symbol_info::demangled_name): Update.
10469
906bb4c5
TT
104702020-04-24 Tom Tromey <tom@tromey.com>
10471
10472 PR rust/25025:
10473 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10474
bcfe6157
TT
104752020-04-24 Tom Tromey <tom@tromey.com>
10476
10477 PR symtab/12707:
10478 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10479 exists.
10480 (new_symbol): Likewise.
10481 * compile/compile-object-load.c (get_out_value_type): Use
10482 symbol_matches_search_name.
10483
f049a313
TT
104842020-04-24 Tom Tromey <tom@tromey.com>
10485
10486 * dwarf2/read.c (add_partial_symbol): Do not call
10487 compute_and_set_names.
10488
76e288d1
TT
104892020-04-24 Tom Tromey <tom@tromey.com>
10490
10491 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10492 overload.
10493
2467f4f6
TT
104942020-04-24 Tom Tromey <tom@tromey.com>
10495
10496 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10497 (add_psymbol_to_list): New overload. Make old overload call new
10498 one.
10499 * psympriv.h (add_psymbol_to_list): New overload.
10500
e61108c9
TT
105012020-04-24 Tom Tromey <tom@tromey.com>
10502
10503 * dwarf2/read.c (partial_die_info::read) <case
10504 DW_AT_linkage_name>: Use value_as_string.
10505 (dwarf2_string_attr): Use value_as_string.
10506 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10507 method.
10508 * dwarf2/attribute.c (attribute::value_as_string): New method.
10509
8c87a452
TT
105102020-04-24 Tom Tromey <tom@tromey.com>
10511
10512 * symtab.c (general_symbol_info::natural_name)
10513 (general_symbol_info::demangled_name): Check for language_rust.
10514
787de330
TT
105152020-04-24 Tom Tromey <tom@tromey.com>
10516
10517 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10518 (dwarf2_physname): ... from here.
10519 (partial_die_info::read): Add Rust "{" hack.
10520
ff985671
TT
105212020-04-24 Tom Tromey <tom@tromey.com>
10522
10523 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10524 method.
10525 (symbol_set_demangled_name): Don't declare.
10526 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10527 symbol_set_demangled_name.
10528 (general_symbol_info::set_language)
10529 (general_symbol_info::compute_and_set_names): Update.
10530 * minsyms.c (minimal_symbol_reader::install): Update.
10531 * dwarf2/read.c (new_symbol): Update.
10532
1acda803
TT
105332020-04-24 Tom Tromey <tromey@adacore.com>
10534
10535 PR python/23662:
10536 * python/py-type.c (convert_field): Handle
10537 FIELD_LOC_KIND_DWARF_BLOCK.
10538 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10539 (typy_get_dynamic): Nw function.
10540 (type_object_getset): Add "dynamic".
10541 * NEWS: Add entry.
10542
d656f129
TT
105432020-04-24 Tom Tromey <tromey@adacore.com>
10544
10545 * ada-typeprint.c (print_choices, print_variant_part)
10546 (print_record_field_types_dynamic): New functions.
10547 (print_record_field_types): Use print_record_field_types_dynamic.
10548
7d79de9a
TT
105492020-04-24 Tom Tromey <tromey@adacore.com>
10550
10551 * dwarf2/read.c (handle_data_member_location): New overload.
10552 (dwarf2_add_field): Use it.
10553 (decode_locdesc): Add "computed" parameter. Update comment.
10554 * gdbtypes.c (is_dynamic_type_internal): Also look for
10555 FIELD_LOC_KIND_DWARF_BLOCK.
10556 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10557 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10558 virtual base classes.
10559 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10560 FIELD_LOC_KIND_DWARF_BLOCK.
10561
f8e89861
TT
105622020-04-24 Tom Tromey <tromey@adacore.com>
10563
10564 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10565 * gdbtypes.c (is_dynamic_type_internal): Check
10566 TYPE_HAS_DYNAMIC_LENGTH.
10567 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10568 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10569 New macros.
10570 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10571 constant.
10572
9c6a1327
TT
105732020-04-24 Tom Tromey <tromey@adacore.com>
10574
10575 * dwarf2/read.c (struct variant_field): Rewrite.
10576 (struct variant_part_builder): New.
10577 (struct nextfield): Remove "variant" field. Add "offset".
10578 (struct field_info): Add "current_variant_part" and
10579 "variant_parts".
10580 (alloc_discriminant_info): Remove.
10581 (alloc_rust_variant): New function.
10582 (quirk_rust_enum): Update.
10583 (dwarf2_add_field): Set "offset" member. Don't handle
10584 DW_TAG_variant_part.
10585 (offset_map_type): New typedef.
10586 (convert_variant_range, create_one_variant)
10587 (create_one_variant_part, create_variant_parts)
10588 (add_variant_property): New functions.
10589 (dwarf2_attach_fields_to_type): Call add_variant_property.
10590 (read_structure_type): Don't handle DW_TAG_variant_part.
10591 (handle_variant_part, handle_variant): New functions.
10592 (handle_struct_member_die): Use them.
10593 (process_structure_scope): Don't handle variant parts.
10594 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10595 (struct discriminant_info): Remove.
10596 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10597 (struct main_type) <flag_discriminated_union>: Remove.
10598 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10599 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10600 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10601 Update.
10602 * valops.c (value_union_variant): Remove.
10603 * value.h (value_union_variant): Don't declare.
10604
b249d2c2
TT
106052020-04-24 Tom Tromey <tromey@adacore.com>
10606
10607 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10608 (ada_value_primitive_packed_val): Update.
10609 * ada-valprint.c (ada_value_print_1): Update.
10610 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10611 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10612 just an address. Use evaluate_for_locexpr_baton.
10613 (dwarf2_evaluate_property): Update.
10614 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10615 array_view.
10616 * findvar.c (default_read_var_value): Update.
10617 * gdbtypes.c (compute_variant_fields_inner)
10618 (resolve_dynamic_type_internal): Update.
10619 (resolve_dynamic_type): Change type of valaddr parameter.
10620 * gdbtypes.h (resolve_dynamic_type): Update.
10621 * valarith.c (value_subscripted_rvalue): Update.
10622 * value.c (value_from_contents_and_address): Update.
10623
61122aa9
TT
106242020-04-24 Tom Tromey <tromey@adacore.com>
10625
10626 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10627 "push_initial_value" parameter.
10628 (dwarf2_evaluate_property): Likewise.
10629 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10630
ef83a141
TT
106312020-04-24 Tom Tromey <tromey@adacore.com>
10632
10633 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10634 (variant::matches, compute_variant_fields_recurse)
10635 (compute_variant_fields_inner, compute_variant_fields): New
10636 functions.
10637 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10638 Use resolved_type after type is made.
10639 (operator==): Add new cases.
10640 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10641 (struct discriminant_range, struct variant, struct variant_part):
10642 New.
10643 (union dynamic_prop_data) <variant_parts, original_type>: New
10644 members.
10645 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10646 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10647 constants.
10648 * value.c (unpack_bits_as_long): Now public.
10649 * value.h (unpack_bits_as_long): Declare.
10650
675127ec
TT
106512020-04-24 Tom Tromey <tromey@adacore.com>
10652
10653 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10654 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10655
9852ceef
HD
106562020-04-24 Hannes Domani <ssbssa@yahoo.de>
10657
10658 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10659
7632c6ce
KR
106602020-04-24 Kamil Rytarowski <n54@gmx.com>
10661
10662 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10663 (remove_fork_catchpoint, post_startup_inferior)
10664 (post_attach): Move...
10665 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10666 (remove_fork_catchpoint, post_startup_inferior)
10667 (post_attach): ...here.
10668 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10669 (remove_fork_catchpoint, post_startup_inferior)
10670 (post_attach): Move...
10671 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10672 (remove_fork_catchpoint, post_startup_inferior)
10673 (post_attach): ...here.
10674
7be2bb4f
TT
106752020-04-24 Tom Tromey <tromey@adacore.com>
10676
10677 * nat/windows-nat.h (struct windows_thread_info)
10678 <pc_adjusted>: New member.
10679 * windows-nat.c (windows_fetch_one_register): Check
10680 pc_adjusted.
10681 (windows_nat_target::get_windows_debug_event)
10682 (windows_nat_target::wait): Set pc_adjusted.
10683
f80cb3b4
TV
106842020-04-24 Tom de Vries <tdevries@suse.de>
10685
10686 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10687 Run gdb-add-index inside temp dir.
10688
29514b87
TT
106892020-04-23 Tom Tromey <tromey@adacore.com>
10690
10691 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10692 in loop.
10693
5939967b
LM
106942020-04-23 Luis Machado <luis.machado@linaro.org>
10695
10696 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10697 get_frame_register instead of gdbarch_unwind_pc.
10698
70bc38f5
TV
106992020-04-23 Tom de Vries <tdevries@suse.de>
10700
10701 * symtab.c (lookup_global_symbol): Prefer def over decl.
10702
de82891c
TV
107032020-04-23 Tom de Vries <tdevries@suse.de>
10704
10705 PR symtab/25807
10706 * block.c (best_symbol, better_symbol): Promote to external.
10707 * block.h (best_symbol, better_symbol): Declare.
10708 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10709 decl.
10710
ecc6c606
TT
107112020-04-23 Tom Tromey <tromey@adacore.com>
10712
10713 PR ada/25837:
10714 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10715 "const char *", not a "const std::string &".
10716 <name_and_matcher::operator==>: Update.
10717 * unittests/lookup_name_info-selftests.c: Change type of
10718 "result".
10719
740480b8
TT
107202020-04-23 Tom Tromey <tom@tromey.com>
10721
10722 * inferior.h (iterate_over_inferiors): Don't declare.
10723 * inferior.c (iterate_over_inferiors): Remove.
10724 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10725 Remove.
10726 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10727 use iterate_over_inferiors.
10728 (darwin_resume_inferior_it)
10729 (struct resume_inferior_threads_param)
10730 (darwin_resume_inferior_threads_it): Remove.
10731 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10732
ae3ab1f0
TV
107332020-04-23 Tom de Vries <tdevries@suse.de>
10734
10735 * blockframe.c (find_pc_partial_function): Use
10736 find_pc_sect_compunit_symtab rather than
10737 objfile->sf->qf->find_pc_sect_compunit_symtab.
10738
317d2668
TV
107392020-04-22 Tom de Vries <tdevries@suse.de>
10740
10741 PR symtab/25764
10742 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10743 in psymtabs.
10744
eea9e357
TV
107452020-04-22 Tom de Vries <tdevries@suse.de>
10746
10747 PR symtab/25801
10748 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10749 symtabs.
10750
3d5afab3
TV
107512020-04-22 Tom de Vries <tdevries@suse.de>
10752
10753 PR symtab/25700
10754 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10755 CU if already created.
10756
d43b7a2d
TBA
107572020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10758
10759 * infrun.c (displaced_step_fixup): Switch to the event_thread
10760 before calling displaced_step_restore, not after.
10761
d89edf9b
MM
107622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10763
10764 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10765 its inferior is not recorded by us.
10766 (record_btrace_target_open): Replace call to
10767 all_non_exited_threads () with call to current_inferior
10768 ()->non_exited_threads ().
10769 (record_btrace_target::stop_recording): Likewise.
10770 (record_btrace_target::close): Likewise.
10771 (record_btrace_target::wait): Likewise.
10772 (record_btrace_target::record_stop_replaying): Likewise.
10773
5897fd49
MM
107742020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10775
10776 * btrace.c (btrace_enable): Throw an error on double enables and
10777 when enabling recording fails.
10778 (btrace_disable): Throw an error if the thread is not recorded.
10779
1a476b6d
MM
107802020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10781
10782 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10783 request if we do not have a thread_info.
10784
4778a5f8
TV
107852020-04-21 Tom de Vries <tdevries@suse.de>
10786
10787 PR gdb/25471
10788 * thread.c
10789 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10790 exception in get_frame_id.
10791
0fa7617d
TT
107922020-04-20 Tom Tromey <tromey@adacore.com>
10793
10794 * python/python.c (struct gdbpy_event): Mark move constructor as
10795 noexcept.
10796 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10797 constructor as noexcept.
10798 * completer.h (struct completion_result): Mark move constructor as
10799 noexcept.
10800 * completer.c (completion_result::completion_result): Use
10801 initialization style. Don't call reset_match_list.
10802
ad23bda0
MS
108032020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10804
10805 * MAINTAINERS (Write After Approval): Add myself.
10806
45e1f031
TT
108072020-04-18 Tom Tromey <tom@tromey.com>
10808
10809 * windows-tdep.c (init_w32_command_list)
10810 (w32_prefix_command_valid): Restore.
10811 (_initialize_windows_tdep): Call init_w32_command_list.
10812
08feed99
TT
108132020-04-18 Tom Tromey <tom@tromey.com>
10814
10815 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10816 * value.c (value_fn_field): Update.
10817 * valops.c (find_function_in_inferior)
10818 (value_allocate_space_in_inferior): Update.
10819 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10820 Update.
10821 * tui/tui-source.c (tui_source_window::set_contents): Update.
10822 * symtab.c (lookup_global_or_static_symbol)
10823 (find_function_start_sal_1, skip_prologue_sal)
10824 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10825 * symmisc.c (dump_msymbols, dump_symtab_1)
10826 (maintenance_print_one_line_table): Update.
10827 * symfile.c (init_entry_point_info, section_is_mapped)
10828 (list_overlays_command, simple_read_overlay_table)
10829 (simple_overlay_update_1): Update.
10830 * stap-probe.c (handle_stap_probe): Update.
10831 * stabsread.c (dbx_init_float_type, define_symbol)
10832 (read_one_struct_field, read_enum_type, read_range_type): Update.
10833 * source.c (info_line_command): Update.
10834 * python/python.c (gdbpy_source_objfile_script)
10835 (gdbpy_execute_objfile_script): Update.
10836 * python/py-type.c (save_objfile_types): Update.
10837 * python/py-objfile.c (py_free_objfile): Update.
10838 * python/py-inferior.c (python_new_objfile): Update.
10839 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10840 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10841 (maintenance_check_psymtabs): Update.
10842 * printcmd.c (info_address_command): Update.
10843 * objfiles.h (struct objfile) <arch>: New method, from
10844 get_objfile_arch.
10845 (get_objfile_arch): Don't declare.
10846 * objfiles.c (get_objfile_arch): Remove.
10847 (filter_overlapping_sections): Update.
10848 * minsyms.c (msymbol_is_function): Update.
10849 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10850 (output_nondebug_symbol): Update.
10851 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10852 (mdebug_expand_psymtab): Update.
10853 * machoread.c (macho_add_oso_symfile): Update.
10854 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10855 Update.
10856 * linux-fork.c (checkpoint_command): Update.
10857 * linespec.c (convert_linespec_to_sals): Update.
10858 * jit.c (finalize_symtab): Update.
10859 * infrun.c (insert_exception_resume_from_probe): Update.
10860 * ia64-tdep.c (ia64_find_unwind_table): Update.
10861 * hppa-tdep.c (internalize_unwinds): Update.
10862 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10863 Update.
10864 * gcore.c (call_target_sbrk): Update.
10865 * elfread.c (record_minimal_symbol, elf_symtab_read)
10866 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10867 (elf_gnu_ifunc_resolve_by_got): Update.
10868 * dwarf2/read.c (create_addrmap_from_index)
10869 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10870 (read_debug_names_from_section)
10871 (process_psymtab_comp_unit_reader, add_partial_symbol)
10872 (add_partial_subprogram, process_full_comp_unit)
10873 (read_file_scope, read_func_scope, read_lexical_block_scope)
10874 (read_call_site_scope, dwarf2_ranges_read)
10875 (dwarf2_record_block_ranges, dwarf2_add_field)
10876 (mark_common_block_symbol_computed, read_tag_pointer_type)
10877 (read_tag_string_type, dwarf2_init_float_type)
10878 (dwarf2_init_complex_target_type, read_base_type)
10879 (partial_die_info::read, partial_die_info::read)
10880 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10881 (dwarf2_fetch_die_loc_sect_off): Update.
10882 * dwarf2/loc.c (dwarf2_find_location_expression)
10883 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10884 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10885 (dwarf2_loc_desc_get_symbol_read_needs)
10886 (locexpr_describe_location_piece, locexpr_describe_location_1)
10887 (loclist_describe_location): Update.
10888 * dwarf2/index-write.c (write_debug_names): Update.
10889 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10890 * dtrace-probe.c (dtrace_process_dof): Update.
10891 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10892 (process_one_symbol): Update.
10893 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10894 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10895 (coff_read_enum_type): Update.
10896 * cli/cli-cmds.c (edit_command, list_command): Update.
10897 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10898 * breakpoint.c (create_overlay_event_breakpoint)
10899 (create_longjmp_master_breakpoint)
10900 (create_std_terminate_master_breakpoint)
10901 (create_exception_master_breakpoint, get_sal_arch): Update.
10902 * block.c (block_gdbarch): Update.
10903 * annotate.c (annotate_source_line): Update.
10904
0743fc83
TT
109052020-04-17 Tom Tromey <tromey@adacore.com>
10906
10907 * auto-load.c (show_auto_load_cmd): Remove.
10908 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10909 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10910 (maintenance_print_arc_command): Remove.
10911 * tui/tui-win.c (tui_command): Remove.
10912 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10913 * tui/tui-layout.c (tui_layout_command): Remove.
10914 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10915 * python/python.c (user_set_python, user_show_python): Remove.
10916 (_initialize_python): Use add_basic_prefix_cmd,
10917 add_show_prefix_cmd.
10918 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10919 (install_gdb_commands): Use add_basic_prefix_cmd,
10920 add_show_prefix_cmd.
10921 (info_guile_command): Remove.
10922 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10923 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10924 add_show_prefix_cmd.
10925 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10926 Remove do_set and do_show parameters.
10927 * cli/cli-style.c (set_style, show_style): Remove.
10928 (_initialize_cli_style): Use add_basic_prefix_cmd,
10929 add_show_prefix_cmd.
10930 (cli_style_option::add_setshow_commands): Remove do_set and
10931 do_show parameters.
10932 (cli_style_option::add_setshow_commands): Use
10933 add_basic_prefix_cmd, add_show_prefix_cmd.
10934 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10935 (set_style_name): Remove.
10936 * cli/cli-dump.c (dump_command, append_command): Remove.
10937 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10938 (tekhex_dump_command, binary_dump_command)
10939 (binary_append_command): Remove.
10940 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10941 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10942 (init_w32_command_list): Remove; move into ...
10943 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10944 * valprint.c (set_print, show_print, set_print_raw)
10945 (show_print_raw): Remove.
10946 (_initialize_valprint): Use add_basic_prefix_cmd,
10947 add_show_prefix_cmd.
10948 * typeprint.c (set_print_type, show_print_type): Remove.
10949 (_initialize_typeprint): Use add_basic_prefix_cmd,
10950 add_show_prefix_cmd.
10951 * record.c (set_record_command, show_record_command): Remove.
10952 (_initialize_record): Use add_basic_prefix_cmd,
10953 add_show_prefix_cmd.
10954 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10955 add_show_prefix_cmd.
10956 (info_command, show_command, set_debug, show_debug): Remove.
10957 * top.h (set_history, show_history): Don't declare.
10958 * top.c (set_history, show_history): Remove.
10959 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10960 (unset_tdesc_cmd): Remove.
10961 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10962 add_show_prefix_cmd.
10963 * symtab.c (info_module_command): Remove.
10964 (_initialize_symtab): Use add_basic_prefix_cmd.
10965 * symfile.c (overlay_command): Remove.
10966 (_initialize_symfile): Use add_basic_prefix_cmd.
10967 * sparc64-tdep.c (info_adi_command): Remove.
10968 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10969 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10970 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10971 add_show_prefix_cmd.
10972 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10973 (_initialize_serial): Use add_basic_prefix_cmd,
10974 add_show_prefix_cmd.
10975 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10976 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10977 add_show_prefix_cmd.
10978 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10979 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10980 add_show_prefix_cmd.
10981 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10982 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10983 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10984 add_show_prefix_cmd.
10985 * remote.c (remote_command, set_remote_cmd): Remove.
10986 (_initialize_remote): Use add_basic_prefix_cmd.
10987 * record-full.c (set_record_full_command)
10988 (show_record_full_command): Remove.
10989 (_initialize_record_full): Use add_basic_prefix_cmd,
10990 add_show_prefix_cmd.
10991 * record-btrace.c (cmd_set_record_btrace)
10992 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10993 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10994 (cmd_show_record_btrace_pt): Remove.
10995 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10996 add_show_prefix_cmd.
10997 * ravenscar-thread.c (set_ravenscar_command)
10998 (show_ravenscar_command): Remove.
10999 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11000 add_show_prefix_cmd.
11001 * mips-tdep.c (show_mips_command, set_mips_command)
11002 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11003 add_show_prefix_cmd.
11004 * maint.c (maintenance_command, maintenance_info_command)
11005 (maintenance_check_command, maintenance_print_command)
11006 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11007 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11008 add_show_prefix_cmd.
11009 (show_per_command_cmd): Remove.
11010 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11011 Remove.
11012 (maintenance_show_test_settings_cmd): Remove.
11013 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11014 add_show_prefix_cmd.
11015 * maint-test-options.c (maintenance_test_options_command):
11016 Remove.
11017 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11018 * macrocmd.c (macro_command): Remove
11019 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11020 * language.c (set_check, show_check): Remove.
11021 (_initialize_language): Use add_basic_prefix_cmd,
11022 add_show_prefix_cmd.
11023 * infcmd.c (unset_command): Remove.
11024 (_initialize_infcmd): Use add_basic_prefix_cmd.
11025 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11026 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11027 add_show_prefix_cmd.
11028 * go32-nat.c (go32_info_dos_command): Remove.
11029 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11030 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11031 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11032 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11033 (_initialize_frame): Use add_basic_prefix_cmd,
11034 add_show_prefix_cmd.
11035 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11036 (_initialize_dcache): Use add_basic_prefix_cmd,
11037 add_show_prefix_cmd.
11038 * cp-support.c (maint_cplus_command): Remove.
11039 (_initialize_cp_support): Use add_basic_prefix_cmd.
11040 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11041 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11042 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11043 add_basic_prefix_cmd, add_show_prefix_cmd.
11044 * breakpoint.c (save_command): Remove.
11045 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11046 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11047 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11048 add_show_prefix_cmd.
11049 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11050 (set_ada_command, show_ada_command): Remove.
11051 (_initialize_ada_language): Use add_basic_prefix_cmd,
11052 add_show_prefix_cmd.
11053 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11054
3557f442
KR
110552020-04-16 Kamil Rytarowski <n54@gmx.com>
11056
11057 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11058 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11059
16197208
SM
110602020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11061
11062 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11063 warning messages.
11064
00ac85d3
SM
110652020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11066
11067 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11068 import table is not at beginning of .idata section.
11069
381ce63f
PA
110702020-04-16 Pedro Alves <palves@redhat.com>
11071
11072 * inferior.c (delete_inferior): Use delete operator directly
11073 instead of delete_program_space.
11074 * progspace.c (add_program_space): New, factored out from
11075 program_space::program_space.
11076 (remove_program_space): New, factored out from
11077 delete_program_space.
11078 (program_space::program_space): Remove intro comment. Rewrite.
11079 (program_space::~program_space): Remove intro comment. Call
11080 remove_program_space.
11081 (delete_program_space): Delete.
11082 * progspace.h (program_space::program_space): Make explicit. Move
11083 intro comment here, adjusted.
11084 (program_space::~program_space): Move intro comment here,
11085 adjusted.
11086 (delete_program_space): Remove.
11087
a010605f
TT
110882020-04-16 Tom Tromey <tromey@adacore.com>
11089
11090 * windows-nat.c (windows_nat::handle_access_violation): New
11091 function.
11092 * nat/windows-nat.h (handle_access_violation): Declare.
11093 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11094 windows-nat.c. Call handle_access_violation.
11095
efba5c23
TV
110962020-04-16 Tom de Vries <tdevries@suse.de>
11097
11098 PR symtab/25791
11099 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11100 CUs without psymtab.
11101
97ed802d
KB
111022020-04-16 Kevin Buettner <kevinb@redhat.com>
11103
11104 * python/python.c (do_start_initialization): Don't call
11105 PyEval_InitThreads for Python 3.9 and beyond.
11106
c7d64809
KR
111072020-04-15 Kamil Rytarowski <n54@gmx.com>
11108
11109 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11110 thread functions.
11111 (obsd_nat_target::wait): Likewise.
11112
ce127a96
TT
111132020-04-15 Tom Tromey <tromey@adacore.com>
11114
11115 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11116 (DEBUG_EXCEPT): Use debug_printf.
11117
99f1bc6a
AB
111182020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11119
11120 * completer.c (class completion_tracker::completion_hash_entry)
11121 <hash_name>: New member function.
11122 (completion_tracker::discard_completions): New callback to hash a
11123 completion_hash_entry, pass this to htab_create_alloc.
11124
a0e9b532
JT
111252016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11126
11127 * windows-nat.c (windows_make_so): Warn rather than stopping with
11128 an error if realpath() fails.
11129
06ca5dd4
KR
111302020-04-14 Kamil Rytarowski <n54@gmx.com>
11131
11132 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11133 (nbsd_nat_target::info_proc): Add do_status.
11134
194d088f
TV
111352020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11136 Tom de Vries <tdevries@suse.de>
11137
11138 PR symtab/25718
11139 * psympriv.h (struct partial_symtab::read_symtab)
11140 (struct partial_symtab::expand_psymtab)
11141 (struct partial_symtab::read_dependencies): Update comments.
11142 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11143 read_symtab for includer.
11144 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11145 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11146 (struct dwarf2_include_psymtab::m_readin): Remove.
11147 (struct dwarf2_include_psymtab::includer): New member function.
11148 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11149
c1a66c06
TV
111502020-04-14 Tom de Vries <tdevries@suse.de>
11151
11152 PR symtab/25720
11153 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11154 with NULL symbol_matcher and lookup_name.
11155 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11156 and lookup_name.
11157 * dwarf2/read.c (dw2_expand_symtabs_matching)
11158 (dw2_debug_names_expand_symtabs_matching): Same.
11159 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11160 Make lookup_name a pointer. Update comment.
11161 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11162 lookup_name being a pointer.
11163 * symfile.c (expand_symtabs_matching): Same.
11164 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11165 * linespec.c (iterate_over_all_matching_symtabs): Same.
11166
400b5eca
TT
111672020-04-13 Tom Tromey <tom@tromey.com>
11168
11169 * run-on-main-thread.c: Update include.
11170 * unittests/main-thread-selftests.c: Update include.
11171 * tui/tui-win.c: Update include.
11172 * tui/tui-io.c: Update include.
11173 * tui/tui-interp.c: Update include.
11174 * tui/tui-hooks.c: Update include.
11175 * top.h: Update include.
11176 * top.c: Update include.
11177 * ser-base.c: Update include.
11178 * remote.c: Update include.
11179 * remote-notif.c: Update include.
11180 * remote-fileio.c: Update include.
11181 * record-full.c: Update include.
11182 * record-btrace.c: Update include.
11183 * python/python.c: Update include.
11184 * posix-hdep.c: Update include.
11185 * mingw-hdep.c: Update include.
11186 * mi/mi-main.c: Update include.
11187 * mi/mi-interp.c: Update include.
11188 * main.c: Update include.
11189 * linux-nat.c: Update include.
11190 * interps.c: Update include.
11191 * infrun.c: Update include.
11192 * inf-loop.c: Update include.
11193 * event-top.c: Update include.
11194 * event-loop.c: Move to ../gdbsupport/.
11195 * event-loop.h: Move to ../gdbsupport/.
11196 * async-event.h: Update include.
11197 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11198
93b54c8e
TT
111992020-04-13 Tom Tromey <tom@tromey.com>
11200
11201 * tui/tui-win.c: Include async-event.h.
11202 * remote.c: Include async-event.h.
11203 * remote-notif.c: Include async-event.h.
11204 * record-full.c: Include async-event.h.
11205 * record-btrace.c: Include async-event.h.
11206 * infrun.c: Include async-event.h.
11207 * event-top.c: Include async-event.h.
11208 * event-loop.h: Move some declarations to async-event.h.
11209 * event-loop.c: Don't include ser-event.h or top.h. Move some
11210 code to async-event.c.
11211 * async-event.h: New file.
11212 * async-event.c: New file.
11213 * Makefile.in (COMMON_SFILES): Add async-event.c.
11214 (HFILES_NO_SRCDIR): Add async-event.h.
11215
c1cd3163
TT
112162020-04-13 Tom Tromey <tom@tromey.com>
11217
11218 * utils.c (flush_streams): New function.
11219 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11220
29f2bf4f
TT
112212020-04-13 Tom Tromey <tom@tromey.com>
11222
11223 * event-loop.c (handle_file_event): Use warning, not
11224 printf_unfiltered.
11225
98029d02
TT
112262020-04-13 Tom Tromey <tom@tromey.com>
11227
11228 * event-loop.c: Include <chrono>.
11229
06cc9596
TT
112302020-04-13 Tom Tromey <tom@tromey.com>
11231
11232 * gdb_select.h: Move to ../gdbsupport/.
11233 * event-loop.c: Update include path.
11234 * top.c: Update include path.
11235 * ser-base.c: Update include path.
11236 * ui-file.c: Update include path.
11237 * ser-tcp.c: Update include path.
11238 * guile/scm-ports.c: Update include path.
11239 * posix-hdep.c: Update include path.
11240 * ser-unix.c: Update include path.
11241 * gdb_usleep.c: Update include path.
11242 * mingw-hdep.c: Update include path.
11243 * inflow.c: Update include path.
11244 * infrun.c: Update include path.
11245 * event-top.c: Update include path.
11246
8ae8e197
TT
112472020-04-13 Tom Tromey <tom@tromey.com>
11248
11249 * configure: Rebuild.
11250 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11251
58cf28e8
TT
112522020-04-13 Tom Tromey <tom@tromey.com>
11253
11254 * event-loop.h (start_event_loop): Don't declare.
11255 * event-loop.c (start_event_loop): Move...
11256 * main.c (start_event_loop): ...here. Now static.
11257
b7f999ae
SDJ
112582020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11259
11260 * MAINTAINERS: Update my email address.
11261
1085dfd4
KR
112622020-04-12 Kamil Rytarowski <n54@gmx.com>
11263
11264 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11265 IP_ALL.
11266
49d1d1f5
KR
112672020-04-12 Kamil Rytarowski <n54@gmx.com>
11268
11269 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11270 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11271
b4848d2a
KR
112722020-04-12 Kamil Rytarowski <n54@gmx.com>
11273
11274 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11275 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11276
51c133d5
KR
112772020-04-12 Kamil Rytarowski <n54@gmx.com>
11278
11279 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11280
54b8cbd0
KR
112812020-04-11 Kamil Rytarowski <n54@gmx.com>
11282
11283 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11284 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11285 (nbsd_nat_target::info_proc): New functions.
11286 * nbsd-nat.c (kinfo_get_vmmap): New function.
11287 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11288 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11289 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11290 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11291 functions.
11292 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11293 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11294 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11295 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11296 (KINFO_VME_FLAG_GROWS_DOWN): New.
11297
cf83625d
AS
112982020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11299
11300 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11301 bit shift.
11302
0c4311ab
TT
113032020-04-10 Tom Tromey <tromey@adacore.com>
11304
11305 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11306
3e65b3e9
TT
113072020-04-10 Tom Tromey <tromey@adacore.com>
11308
11309 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11310 separate debug files.
11311
13302e95
HD
113122020-04-10 Hannes Domani <ssbssa@yahoo.de>
11313
11314 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11315 Move to...
11316 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11317 ... here.
11318 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11319 Check for STATUS_WX86_BREAKPOINT.
11320 (windows_nat_target::wait): Same.
11321
bdfc1e8a
TV
113222020-04-10 Tom de Vries <tdevries@suse.de>
11323
11324 PR cli/25808
11325 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11326
f4460aec
SM
113272020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11328
11329 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11330 (Write After Approval): Remove Tom de Vries.
11331
a25198bb
BE
113322020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11333
11334 revert partially:
11335 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11336
aac66a4c
SM
11337 * buildsym.c (record_line): Fix undefined behavior and preserve
11338 lines at eof.
a25198bb 11339
206c98a6
KR
113402020-04-09 Kamil Rytarowski <n54@gmx.com>
11341
11342 * auxv.h (svr4_auxv_parse): New.
11343 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11344 and generic_auxv_parse.
11345 (svr4_auxv_parse): Add.
11346 * obsd-tdep.c: Include "auxv.h".
11347 (obsd_auxv_parse): Remove.
11348 (obsd_init_abi): Remove comment.
11349 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11350 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11351 * nbsd-tdep.c: Include "auxv.h".
11352 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11353
71fbdbaf
TT
113542020-04-08 Tom Tromey <tromey@adacore.com>
11355
11356 * nat/windows-nat.h (last_wait_event): Don't declare.
11357 (wait_for_debug_event): Update comment.
11358 * nat/windows-nat.c (last_wait_event): Now static.
11359
2c1d95e8
TT
113602020-04-08 Tom Tromey <tromey@adacore.com>
11361
11362 * windows-nat.c (wait_for_debug_event): Move to
11363 nat/windows-nat.c.
11364 * nat/windows-nat.h (wait_for_debug_event): Declare.
11365 * nat/windows-nat.c (wait_for_debug_event): Move from
11366 windows-nat.c. No longer static.
11367
d2977bc4
TT
113682020-04-08 Tom Tromey <tromey@adacore.com>
11369
11370 * windows-nat.c (get_windows_debug_event): Use
11371 fetch_pending_stop.
11372 * nat/windows-nat.h (fetch_pending_stop): Declare.
11373 * nat/windows-nat.c (fetch_pending_stop): New function.
11374
e758e19c
TT
113752020-04-08 Tom Tromey <tromey@adacore.com>
11376
11377 * windows-nat.c (windows_continue): Use matching_pending_stop and
11378 continue_last_debug_event.
11379 * nat/windows-nat.h (matching_pending_stop)
11380 (continue_last_debug_event): Declare.
11381 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11382 (matching_pending_stop, continue_last_debug_event): New
11383 functions.
11384
8d30e395
TT
113852020-04-08 Tom Tromey <tromey@adacore.com>
11386
11387 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11388 (handle_exception_result): Move to nat/windows-nat.h.
11389 (DEBUG_EXCEPTION_SIMPLE): Remove.
11390 (windows_nat::handle_ms_vc_exception): New function.
11391 (handle_exception): Move to nat/windows-nat.c.
11392 (get_windows_debug_event): Update.
11393 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11394 nat/windows-nat.c.
11395 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11396 (handle_exception_result): Move from windows-nat.c.
11397 (handle_exception): Declare.
11398 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11399 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11400 windows-nat.c.
11401
29de418d
TT
114022020-04-08 Tom Tromey <tromey@adacore.com>
11403
11404 * windows-nat.c (exception_count, event_count): Remove.
11405 (handle_exception, get_windows_debug_event)
11406 (do_initial_windows_stuff): Update.
11407
a816ba18
TT
114082020-04-08 Tom Tromey <tromey@adacore.com>
11409
11410 * windows-nat.c (windows_nat::handle_load_dll)
11411 (windows_nat::handle_unload_dll): Rename. No longer static.
11412 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11413 Declare.
11414
a00caa12
TT
114152020-04-08 Tom Tromey <tromey@adacore.com>
11416
11417 * complaints.h (stop_whining): Declare at top-level.
11418 (complaint): Don't declare stop_whining.
11419
d41b524f
TT
114202020-04-08 Tom Tromey <tromey@adacore.com>
11421
11422 * windows-nat.c (windows_nat::handle_output_debug_string):
11423 Rename. No longer static.
11424 * nat/windows-nat.h (handle_output_debug_string): Declare.
11425
3c76026d
TT
114262020-04-08 Tom Tromey <tromey@adacore.com>
11427
11428 * windows-nat.c (current_process_handle, current_process_id)
11429 (main_thread_id, last_sig, current_event, last_wait_event)
11430 (current_windows_thread, desired_stop_thread_id, pending_stops)
11431 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11432 (display_selectors, fake_create_process)
11433 (get_windows_debug_event): Update.
11434 * nat/windows-nat.h (current_process_handle, current_process_id)
11435 (main_thread_id, last_sig, current_event, last_wait_event)
11436 (current_windows_thread, desired_stop_thread_id, pending_stops)
11437 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11438 * nat/windows-nat.c (current_process_handle, current_process_id)
11439 (main_thread_id, last_sig, current_event, last_wait_event)
11440 (current_windows_thread, desired_stop_thread_id, pending_stops)
11441 (siginfo_er): New globals. Move from windows-nat.c.
11442
9d8679cc
TT
114432020-04-08 Tom Tromey <tromey@adacore.com>
11444
11445 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11446 (handle_load_dll): Update.
11447 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11448
28688adf
TT
114492020-04-08 Tom Tromey <tromey@adacore.com>
11450
11451 * windows-nat.c (enum thread_disposition_type): Move to
11452 nat/windows-nat.h.
11453 (windows_nat::thread_rec): Rename from thread_rec. No longer
11454 static.
11455 (windows_add_thread, windows_nat_target::fetch_registers)
11456 (windows_nat_target::store_registers, handle_exception)
11457 (windows_nat_target::resume, get_windows_debug_event)
11458 (windows_nat_target::get_tib_address)
11459 (windows_nat_target::thread_name)
11460 (windows_nat_target::thread_alive): Update.
11461 * nat/windows-nat.h (enum thread_disposition_type): Move from
11462 windows-nat.c.
11463 (thread_rec): Declare.
11464
4834dad0
TT
114652020-04-08 Tom Tromey <tromey@adacore.com>
11466
11467 * windows-nat.c: Add "using namespace".
11468 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11469 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11470
65bafd5b
TT
114712020-04-08 Tom Tromey <tromey@adacore.com>
11472
11473 * nat/windows-nat.h (struct windows_thread_info): Declare
11474 destructor.
11475 * nat/windows-nat.c (~windows_thread_info): New.
11476
0a4afda3
TT
114772020-04-08 Tom Tromey <tromey@adacore.com>
11478
11479 PR gdb/22992
11480 * windows-nat.c (current_event): Update comment.
11481 (last_wait_event, desired_stop_thread_id): New globals.
11482 (struct pending_stop): New.
11483 (pending_stops): New global.
11484 (windows_nat_target) <stopped_by_sw_breakpoint>
11485 <supports_stopped_by_sw_breakpoint>: New methods.
11486 (windows_fetch_one_register): Add assertions. Adjust PC.
11487 (windows_continue): Handle pending stops. Suspend other threads
11488 when stepping. Use last_wait_event
11489 (wait_for_debug_event): New function.
11490 (get_windows_debug_event): Use wait_for_debug_event. Handle
11491 pending stops. Queue spurious stops.
11492 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11493 (windows_nat_target::kill): Use wait_for_debug_event.
11494 * nat/windows-nat.h (struct windows_thread_info)
11495 <stopped_at_software_breakpoint>: New field.
11496 * nat/windows-nat.c (windows_thread_info::resume): Clear
11497 stopped_at_software_breakpoint.
11498
8e61ebec
TT
114992020-04-08 Tom Tromey <tromey@adacore.com>
11500
11501 * windows-nat.c (enum thread_disposition_type): New.
11502 (thread_rec): Replace "get_context" parameter with "disposition";
11503 change type.
11504 (windows_add_thread, windows_nat_target::fetch_registers)
11505 (windows_nat_target::store_registers, handle_exception)
11506 (windows_nat_target::resume, get_windows_debug_event)
11507 (windows_nat_target::get_tib_address)
11508 (windows_nat_target::thread_name)
11509 (windows_nat_target::thread_alive): Update.
11510
98a03287
TT
115112020-04-08 Tom Tromey <tromey@adacore.com>
11512
11513 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11514 (windows_continue): Use windows_continue::resume.
11515 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11516 resume>: Declare new methods.
11517 * nat/windows-nat.c: New file.
11518 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11519
7c7411bc
TT
115202020-04-08 Tom Tromey <tromey@adacore.com>
11521
11522 * windows-nat.c (windows_add_thread, windows_delete_thread)
11523 (windows_nat_target::fetch_registers)
11524 (windows_nat_target::store_registers, fake_create_process)
11525 (windows_nat_target::resume, windows_nat_target::resume)
11526 (get_windows_debug_event, windows_nat_target::wait)
11527 (windows_nat_target::pid_to_str)
11528 (windows_nat_target::get_tib_address)
11529 (windows_nat_target::get_ada_task_ptid)
11530 (windows_nat_target::thread_name)
11531 (windows_nat_target::thread_alive): Use lwp, not tid.
11532
2950fdf7
TT
115332020-04-08 Tom Tromey <tromey@adacore.com>
11534
11535 * windows-nat.c (handle_exception)
11536 (windows_nat_target::thread_name): Update.
11537 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11538 <name>: Now unique_xmalloc_ptr.
11539
62fe396b
TT
115402020-04-08 Tom Tromey <tromey@adacore.com>
11541
11542 * windows-nat.c (thread_rec)
11543 (windows_nat_target::fetch_registers): Update.
11544 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11545 Update comment.
11546 <debug_registers_changed, reload_context>: Now bool.
11547
e9534bd2
TT
115482020-04-08 Tom Tromey <tromey@adacore.com>
11549
11550 * windows-nat.c (windows_add_thread): Use new.
11551 (windows_init_thread_list, windows_delete_thread): Use delete.
11552 (get_windows_debug_event): Update.
11553 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11554 destructor, and initializers.
11555
ae1f8880
TT
115562020-04-08 Tom Tromey <tromey@adacore.com>
11557
11558 * windows-nat.c (struct windows_thread_info): Remove.
11559 * nat/windows-nat.h: New file.
11560
55a1e039
TT
115612020-04-08 Tom Tromey <tromey@adacore.com>
11562
11563 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11564 (thread_rec, windows_add_thread, windows_delete_thread)
11565 (windows_continue): Update.
11566
93366324
TT
115672020-04-08 Tom Tromey <tromey@adacore.com>
11568
11569 * windows-nat.c (struct windows_thread_info): Remove typedef.
11570 (thread_head): Remove.
11571 (thread_list): New global.
11572 (thread_rec, windows_add_thread, windows_init_thread_list)
11573 (windows_delete_thread, windows_continue): Update.
11574
0f2265e2
SM
115752020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11576
11577 * windows-tdep.h (windows_init_abi): Add comment.
11578 (cygwin_init_abi): New declaration.
11579 * windows-tdep.c: Split signal enumeration in two, one for
11580 Windows and one for Cygwin.
11581 (windows_gdb_signal_to_target): Only deal with signal of the
11582 Windows OS ABI.
11583 (cygwin_gdb_signal_to_target): New function.
11584 (windows_init_abi): Rename to windows_init_abi_common, don't set
11585 gdb_signal_to_target gdbarch method. Add new new function with
11586 this name.
11587 (cygwin_init_abi): New function.
11588 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11589 comment. Don't call windows_init_abi.
11590 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11591 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11592 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11593 i386_windows_init_abi_common, don't call windows_init_abi. Add
11594 a new function of this name.
11595 (i386_cygwin_init_abi): New function.
11596 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11597 OS ABI Cygwin.
11598
3810f182
SM
115992020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11600
11601 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11602 parameter.c.
11603 (dwarf2_read_gdb_index): Update.
11604
063f8e80
KR
116052020-04-07 Kamil Rytarowski <n54@gmx.com>
11606
11607 * nbsd-tdep.c: Include "objfiles.h".
11608 (nbsd_skip_solib_resolver): New.
11609 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11610
85a9510c 116112020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11612
11613 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11614 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11615 with DW_LLE_base_addressx are being emitted in DWARFv5.
11616 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11617 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11618 unsigned integer.
11619
9fc3eaae 116202020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11621
11622 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11623 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11624 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11625 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11626 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11627 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11628 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11629
11630
41144253 116312020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11632
11633 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11634 (read_loclist_index): New function definition.
11635 (lookup_loclist_base): New function definition.
11636 (read_loclist_header): New function definition.
11637 (dwarf2_cu): Add loclist_base and loclist_header field.
11638 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11639 (read_full_die_1): Read the value of DW_AT_loclists_base.
11640 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11641 (read_attribute_value): Handle DW_FORM_loclistx.
11642 (skip_one_die): Handle DW_FORM_loclistx.
11643 (loclist_header): New structure declaration.
11644 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11645
9f4e76a4
SM
116462020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11647
11648 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11649 constructor. Remove `addr` parameter from other constructor and
11650 add `per_cu` parameter.
11651 * dwarf2/read.c (create_partial_symtab): Update.
11652
25c11aca
TV
116532020-04-07 Tom de Vries <tdevries@suse.de>
11654
11655 PR symtab/25796
11656 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11657 (partial_die_info::fixup): Inherit has_const_value.
11658
5707e24b
TV
116592020-04-07 Tom de Vries <tdevries@suse.de>
11660
11661 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11662 symbols without address.
11663
05f00e22
KR
116642020-04-06 Kamil Rytarowski <n54@gmx.com>
11665
11666 * nbsd-nat.h (struct thread_info): Add forward declaration.
11667 (nbsd_nat_target::thread_alive): Add.
11668 (nbsd_nat_target::thread_name): Likewise.
11669 (nbsd_nat_target::update_thread_list): Likewise.
11670 (update_thread_list::post_attach): Likewise.
11671 (post_attach::pid_to_str): Likewise.
11672 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11673 (nbsd_thread_lister): Add.
11674 (nbsd_nat_target::thread_alive): Likewise.
11675 (nbsd_nat_target::thread_name): Likewise.
11676 (nbsd_add_threads): Likewise.
11677 (update_thread_list::post_attach): Likewise.
11678 (nbsd_nat_target::update_thread_list): Likewise.
11679 (post_attach::pid_to_str): Likewise.
11680
6ee448cc
TT
116812020-04-06 Tom Tromey <tromey@adacore.com>
11682
11683 * ada-valprint.c (print_variant_part): Extract the variant field.
11684 (print_field_values): Use the field as the outer value when
11685 recursing.
11686
dea34e8c
TT
116872020-04-06 Tom Tromey <tromey@adacore.com>
11688
11689 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11690 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11691 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11692 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11693 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11694
93689ce9
TT
116952020-04-06 Tom Tromey <tromey@adacore.com>
11696
11697 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11698 TYPE_CODE_ERROR.
11699
79743962
KR
117002020-04-06 Kamil Rytarowski <n54@gmx.com>
11701
11702 * nbsd-tdep.c: Include "gdbarch.h".
11703 Define enum with NetBSD signal numbers.
11704 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11705 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11706 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11707 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11708 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11709 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11710 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11711 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11712 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11713 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11714 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11715 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11716
9e7c9a03
HD
117172020-04-03 Hannes Domani <ssbssa@yahoo.de>
11718
11719 PR gdb/25325
11720 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11721
d9e49b61
TT
117222020-04-03 Tom Tromey <tromey@adacore.com>
11723
11724 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11725 Read constant block.
11726
e0fc5c3f
SM
117272020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11728
11729 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11730 (gdb_bfd_get_full_section_contents): New declaration.
11731 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11732 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11733 gdb_bfd_get_full_section_contents.
11734
e2ff18a0
SM
117352020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11736
11737 * exec.c (build_section_table): Replace internal_error with
11738 gdb_assert.
11739 (section_table_xfer_memory_partial): Likewise.
11740 * mdebugread.c (parse_partial_symbols): Likewise.
11741 * psymtab.c (lookup_partial_symbol): Likewise.
11742 * utils.c (wrap_here): Likewise.
11743
0830d301
TT
117442020-04-02 Tom Tromey <tromey@adacore.com>
11745
11746 * f-lang.c (build_fortran_types): Use arch_type to initialize
11747 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11748
e7da7f8f
TT
117492020-04-02 Tom Tromey <tromey@adacore.com>
11750
11751 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11752 of attributes.
11753
c90d28ac
AB
117542020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11755 Bernd Edlinger <bernd.edlinger@hotmail.de>
11756 Tom Tromey <tromey@adacore.com>
11757
11758 * buildsym.c (buildsym_compunit::record_line): Remove
11759 deduplication code.
11760
1aa98955
TV
117612020-04-02 Tom de Vries <tdevries@suse.de>
11762
11763 PR ada/24671
11764 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11765
d3214198
TV
117662020-04-02 Tom de Vries <tdevries@suse.de>
11767
11768 * dwarf2/read.c (dwarf2_gdb_index_functions,
11769 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11770 NULL.
11771 * psymtab.c (psym_lookup_global_symbol_language): New function.
11772 (psym_functions): Init psym_lookup_global_symbol_language with
11773 psym_lookup_global_symbol_language.
11774 * symfile-debug.c (debug_sym_quick_functions): Init
11775 lookup_global_symbol_language with NULL.
11776 * symfile.c (set_initial_language): Remove fixme comment.
11777 * symfile.h (struct quick_symbol_functions): Add
11778 lookup_global_symbol_language.
11779 * symtab.c (find_quick_global_symbol_language): New function.
11780 (find_main_name): Use find_quick_global_symbol_language.
11781
2836752f
SM
117822020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11783
11784 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11785
64dc2d4b
BE
117862020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11787
11788 * buildsym.c (record_line): Fix undefined behavior and preserve
11789 lines at eof.
11790
bbe3dc41
BE
117912020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11792
11793 * buildsym.c (record_line): Fix the resizing condition.
11794
6b4a335b
TT
117952020-04-01 Tom Tromey <tom@tromey.com>
11796
11797 * value.h (value_literal_complex): Add comment.
11798 * valops.c (value_literal_complex): Refer to value.h.
11799
3638a098
TT
118002020-04-01 Tom Tromey <tom@tromey.com>
11801
11802 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11803 (scalar_type): New rule, from typebase.
11804 (typebase): Use scalar_type. Recognize complex types.
11805 (field_name): Handle FLOAT_KEYWORD.
11806 (ident_tokens): Add _Complex and __complex__.
11807
c34e8714
TT
118082020-04-01 Tom Tromey <tom@tromey.com>
11809
11810 PR exp/25299:
11811 * valarith.c (promotion_type, complex_binop): New functions.
11812 (scalar_binop): Handle complex numbers. Use promotion_type.
11813 (value_pos, value_neg, value_complement): Handle complex numbers.
11814
fa649bb7
TT
118152020-04-01 Tom Tromey <tom@tromey.com>
11816
11817 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11818 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11819 (parse_number): Handle complex numbers.
11820
981c08ce
TT
118212020-04-01 Tom Tromey <tom@tromey.com>
11822
11823 * c-valprint.c (c_decorations): Change complex suffix to "i".
11824
4c99290d
TT
118252020-04-01 Tom Tromey <tom@tromey.com>
11826
11827 * valprint.c (generic_value_print_complex): Use accessors.
11828 * value.h (value_real_part, value_imaginary_part): Declare.
11829 * valops.c (value_real_part, value_imaginary_part): New
11830 functions.
11831 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11832
5b930b45
TT
118332020-04-01 Tom Tromey <tom@tromey.com>
11834
11835 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11836 (read_range_type): Update.
11837 * mdebugread.c (basic_type): Update.
11838 * go-lang.c (build_go_types): Use init_complex_type.
11839 * gdbtypes.h (struct main_type) <complex_type>: New member.
11840 (init_complex_type): Update.
11841 (arch_complex_type): Don't declare.
11842 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11843 Make name if none given. Use alloc_type_copy. Look for cached
11844 complex type.
11845 (arch_complex_type): Remove.
11846 (gdbtypes_post_init): Use init_complex_type.
11847 * f-lang.c (build_fortran_types): Use init_complex_type.
11848 * dwarf2/read.c (read_base_type): Update.
11849 * d-lang.c (build_d_types): Use init_complex_type.
11850 * ctfread.c (read_base_type): Update.
11851
53cccef1
TBA
118522020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11853
11854 * infrun.c (stop_all_threads): Update assertion, plus when
11855 stopping threads, take into account that we might be trying
11856 to stop an all-stop target.
11857 (stop_waiting): Call 'stop_all_threads' if there exists a
11858 non-stop target.
11859
a0714d30
TBA
118602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11861
11862 * target.h (exists_non_stop_target): New function declaration.
11863 * target.c (exists_non_stop_target): New function.
11864
60e22c1e
HD
118652020-04-01 Hannes Domani <ssbssa@yahoo.de>
11866
11867 PR gdb/24789
11868 * eval.c (is_integral_or_integral_reference): New function.
11869 (evaluate_subexp_standard): Allow integer references in
11870 pointer arithmetic.
11871
e139a727
TBA
118722020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11873
11874 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11875 check for no ptid in the stop reply when the target is non-stop.
11876
e0802d59
TT
118772020-04-01 Tom Tromey <tromey@adacore.com>
11878
11879 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11880 "name" parameter to rvalue reference. Initialize m_name_holder.
11881 <lookup_name_info>: New overloads.
11882 <name>: Return gdb::string_view.
11883 <c_str>: New method.
11884 <make_ignore_params>: Update.
11885 <search_name_hash>: Update.
11886 <language_lookup_name>: Return const char *.
11887 <m_name>: Change type.
11888 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11889 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11890 (lookup_name_info::match_any): Update.
11891 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11892 Update.
11893 * minsyms.c (linkage_name_str): Update.
11894 * language.c (default_symbol_name_matcher): Update.
11895 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11896 Update.
11897 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11898 (ada_lookup_name_info::ada_lookup_name_info): Update.
11899 (literal_symbol_name_matcher): Update.
11900
8c072cb6
TT
119012020-04-01 Tom Tromey <tromey@adacore.com>
11902
11903 * psymtab.c (psymtab_search_name): Remove function.
11904 (psym_lookup_symbol): Create search name and lookup name here.
11905 (lookup_partial_symbol): Remove "name" parameter; add
11906 lookup_name.
11907 (psym_expand_symtabs_for_function): Update.
11908
6f29a534
TT
119092020-03-31 Joel Jones <joelkevinjones@gmail.com>
11910
11911 PR tui/25597:
11912 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11913
af62665e
TT
119142020-03-31 Tom Tromey <tromey@adacore.com>
11915
11916 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11917 memcpy.
11918
d1a89da5
NC
119192020-03-30 Nelson Chu <nelson.chu@sifive.com>
11920
11921 * features/riscv/32bit-csr.xml: Regenerated.
11922 * features/riscv/64bit-csr.xml: Regenerated.
11923
d8af9068
TT
119242020-03-30 Tom Tromey <tromey@adacore.com>
11925
11926 * ada-valprint.c (print_variant_part): Update.
11927 * ada-lang.h (ada_which_variant_applies): Update.
11928 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11929 outer_valaddr parameters; replace with "outer" value parameter.
11930 (to_fixed_variant_branch_type): Update.
11931
227c0bf4
PFC
119322020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11933
11934 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11935 <list>. Remove inclusion of observable.h.
11936 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11937 (struct arch_lwp_info): New struct.
11938 (class ppc_linux_dreg_interface): New class.
11939 (struct ppc_linux_process_info): New struct.
11940 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11941 <low_new_clone, low_forget_process, low_prepare_to_resume>
11942 <copy_thread_dreg_state, mark_thread_stale>
11943 <mark_debug_registers_changed, register_hw_breakpoint>
11944 <clear_hw_breakpoint, register_wp, clear_wp>
11945 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11946 <num_memory_accesses, get_trigger_type>
11947 <create_watchpoint_request, hwdebug_point_cmp>
11948 <init_arch_lwp_info, get_arch_lwp_info>
11949 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11950 methods.
11951 <struct ptid_hash>: New inner struct.
11952 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11953 members.
11954 (saved_dabr_value, hwdebug_info, max_slots_number)
11955 (struct hw_break_tuple, struct thread_points, ppc_threads)
11956 (have_ptrace_hwdebug_interface)
11957 (hwdebug_find_thread_points_by_tid)
11958 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11959 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11960 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11961 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11962 use m_dreg_interface.
11963 (hwdebug_point_cmp): Change to...
11964 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11965 reference arguments instead of pointers.
11966 (ppc_linux_nat_target::ranged_break_num_registers): Use
11967 m_dreg_interface.
11968 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11969 m_dreg_interface. Call register_hw_breakpoint.
11970 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11971 m_dreg_interface. Call clear_hw_breakpoint.
11972 (get_trigger_type): Change to...
11973 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11974 comment.
11975 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11976 use m_dreg_interface. Call register_hw_breakpoint.
11977 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11978 use m_dreg_interface. Call clear_hw_breakpoint.
11979 (can_use_watchpoint_cond_accel): Change to...
11980 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11981 method. Update comment, use m_dreg_interface and
11982 m_process_info.
11983 (calculate_dvc): Change to...
11984 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11985 m_dreg_interface.
11986 (num_memory_accesses): Change to...
11987 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11988 (check_condition): Change to...
11989 (ppc_linux_nat_target::check_condition): ...this method.
11990 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11991 comment, use m_dreg_interface.
11992 (create_watchpoint_request): Change to...
11993 (ppc_linux_nat_target::create_watchpoint_request): ...this
11994 method. Use m_dreg_interface.
11995 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11996 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11997 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11998 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11999 (ppc_linux_nat_target::low_forget_process)
12000 (ppc_linux_nat_target::low_new_fork)
12001 (ppc_linux_nat_target::low_new_clone)
12002 (ppc_linux_nat_target::low_delete_thread)
12003 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12004 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12005 only call mark_thread_stale.
12006 (ppc_linux_thread_exit): Remove.
12007 (ppc_linux_nat_target::stopped_data_address): Change to...
12008 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12009 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12010 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12011 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12012 comment. Call low_stopped_data_address.
12013 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12014 m_dreg_interface.
12015 (ppc_linux_nat_target::masked_watch_num_registers): Use
12016 m_dreg_interface.
12017 (ppc_linux_nat_target::copy_thread_dreg_state)
12018 (ppc_linux_nat_target::mark_thread_stale)
12019 (ppc_linux_nat_target::mark_debug_registers_changed)
12020 (ppc_linux_nat_target::register_hw_breakpoint)
12021 (ppc_linux_nat_target::clear_hw_breakpoint)
12022 (ppc_linux_nat_target::register_wp)
12023 (ppc_linux_nat_target::clear_wp)
12024 (ppc_linux_nat_target::init_arch_lwp_info)
12025 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12026 (_initialize_ppc_linux_nat): Remove observer callback.
12027
4db10d8f
PFC
120282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12029
12030 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12031 (ppc_linux_nat_target::auxv_parse)
12032 (ppc_linux_nat_target::read_description)
12033 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12034 Move up.
12035
1310c1b0
PFC
120362020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12037
12038 * linux-nat.h (low_new_clone): New method.
12039 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12040
69b037c3
SM
120412020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12042
12043 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12044 (dbx_expand_psymtab): ... this.
12045 (start_psymtab): Update.
12046 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12047 (mdebug_expand_psymtab): ... this.
12048 (parse_partial_symbols): Update.
12049 (new_psymtab): Update.
12050 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12051 (xcoff_expand_psymtab): ... this.
12052 (xcoff_start_psymtab): Update.
12053
48993951
SM
120542020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12055
12056 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12057 <expand_dependencies>: ... this.
12058 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12059 (partial_symtab::expand_dependencies): ... this.
12060 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12061 Update.
12062 (dwarf2_psymtab::expand_psymtab): Update.
12063 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12064 * mdebugread.c (psymtab_to_symtab_1): Update.
12065 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12066
3ad83046
SM
120672020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12068
12069 * psympriv.h (discard_psymtab): Remove.
12070 * dbxread.c (dbx_end_psymtab): Update.
12071 * xcoffread.c (xcoff_end_psymtab): Update.
12072
4d1b9ab6
TT
120732020-03-28 Tom Tromey <tom@tromey.com>
12074
12075 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12076 comment.
12077
f1749218
TT
120782020-03-28 Tom Tromey <tom@tromey.com>
12079
12080 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12081
ebea7626
HD
120822020-03-27 Hannes Domani <ssbssa@yahoo.de>
12083
12084 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12085
a879b4d5
JB
120862020-03-26 John Baldwin <jhb@FreeBSD.org>
12087
12088 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12089
0826b30a
TT
120902020-03-26 Tom Tromey <tom@tromey.com>
12091
12092 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12093 (mark_common_block_symbol_computed, read_tag_string_type)
12094 (attr_to_dynamic_prop, read_subrange_type): Update.
12095 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12096 to be methods on struct attribute.
12097 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12098 (read_call_site_scope, partial_die_info::read)
12099 (partial_die_info::read, lookup_die_type, follow_die_ref):
12100 Update.
12101 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12102 from dwarf2_get_ref_die_offset.
12103 (attribute::constant_value): New method, from
12104 dwarf2_get_attr_constant_value.
12105 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12106 Declare method.
12107 <constant_value>: New method.
12108
2b2558bf
TT
121092020-03-26 Tom Tromey <tom@tromey.com>
12110
12111 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12112 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12113 (dwarf_type_encoding_name): Move to stringify.c.
12114 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12115 * dwarf2/stringify.c: New file.
12116 * dwarf2/stringify.h: New file.
12117
eeb64781
TT
121182020-03-26 Tom Tromey <tom@tromey.com>
12119
12120 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12121 Rewrite.
12122
a39fdb41
TT
121232020-03-26 Tom Tromey <tom@tromey.com>
12124
12125 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12126 methods.
12127 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12128 (lookup_ranges_base): Likewise.
12129 (read_cutu_die_from_dwo, read_full_die_1): Update.
12130
436c571c
TT
121312020-03-26 Tom Tromey <tom@tromey.com>
12132
12133 * dwarf2/read.c (read_import_statement, read_file_scope)
12134 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12135 (read_lexical_block_scope, read_call_site_scope)
12136 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12137 (handle_struct_member_die, process_structure_scope)
12138 (update_enumeration_type_from_children)
12139 (process_enumeration_scope, read_array_type, read_common_block)
12140 (read_namespace, read_module, read_subroutine_type): Update.
12141 (sibling_die): Remove.
12142
052c8bb8
TT
121432020-03-26 Tom Tromey <tom@tromey.com>
12144
12145 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12146 (build_type_psymtabs_reader, read_structure_type)
12147 (read_enumeration_type, read_full_die_1): Update.
12148 (dwarf2_attr_no_follow): Move to die.h.
12149 * dwarf2/die.h (struct die_info) <attr>: New method.
12150
2b24b6e4
TT
121512020-03-26 Tom Tromey <tom@tromey.com>
12152
12153 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12154 <base_address>: Now an optional.
12155 (dwarf2_find_base_address, dwarf2_rnglists_process)
12156 (dwarf2_ranges_process, fill_in_loclist_baton)
12157 (dwarf2_symbol_mark_computed): Update.
12158
c2d50fd0
TT
121592020-03-26 Tom Tromey <tom@tromey.com>
12160
12161 * dwarf2/read.c (struct die_info): Move to die.h.
12162 * dwarf2/die.h: New file.
12163
0df7ad3a
TT
121642020-03-26 Tom Tromey <tom@tromey.com>
12165
12166 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12167 * dwarf2/read.c
12168 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12169 Move to line-header.c.
12170 (read_checked_initial_length_and_offset, read_formatted_entries):
12171 Likewise.
12172 (dwarf_decode_line_header): Split into two.
12173 * dwarf2/line-header.c
12174 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12175 Move from read.c.
12176 (read_checked_initial_length_and_offset, read_formatted_entries):
12177 Likewise.
12178 (dwarf_decode_line_header): New function, split from read.c.
12179
86c0bb4c
TT
121802020-03-26 Tom Tromey <tom@tromey.com>
12181
12182 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12183 Declare method.
12184 * dwarf2/read.c (read_attribute_value): Update.
12185 (dwarf2_per_objfile::read_line_string): Rename from
12186 read_indirect_line_string.
12187 (read_formatted_entries): Update.
12188
2ef46c2f
TT
121892020-03-26 Tom Tromey <tom@tromey.com>
12190
12191 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12192 variable.
12193
4f9c1eda
TT
121942020-03-26 Tom Tromey <tom@tromey.com>
12195
12196 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12197 const.
12198 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12199 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12200 parameter const.
12201
5a0e026f
TT
122022020-03-26 Tom Tromey <tom@tromey.com>
12203
12204 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12205 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12206 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12207 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12208
8844c11b
TT
122092020-03-26 Tom Tromey <tom@tromey.com>
12210
12211 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12212 file_names_size, file_full_name, file_file_name>: Use const.
12213 <file_name_at, file_names>: Add const overload.
12214 * dwarf2/line-header.c (line_header::file_file_name)
12215 (line_header::file_full_name): Update.
12216
c90ec28a
TT
122172020-03-26 Tom Tromey <tom@tromey.com>
12218
12219 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12220 (macro_start_file, consume_improper_spaces)
12221 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12222 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12223 (dwarf_decode_macros): Move to macro.c.
12224 * dwarf2/macro.c: New file.
12225 * dwarf2/macro.h: New file.
12226 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12227
4f44ae6c
TT
122282020-03-26 Tom Tromey <tom@tromey.com>
12229
12230 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12231 method.
12232 * dwarf2/section.c: New method. From
12233 read_indirect_string_at_offset_from.
12234 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12235 (read_indirect_string_at_offset_from): Move to section.c.
12236 (read_indirect_string_at_offset): Rewrite.
12237 (read_indirect_line_string_at_offset): Remove.
12238 (read_indirect_string, read_indirect_line_string)
12239 (dwarf_decode_macro_bytes): Update.
12240
a0194fa8
TT
122412020-03-26 Tom Tromey <tom@tromey.com>
12242
12243 * dwarf2/section.h (struct dwarf2_section_info)
12244 <overload_complaint>: Declare.
12245 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12246 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12247 Rename from dwarf2_section_buffer_overflow_complaint.
12248 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12249 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12250
3d27bbdb
TT
122512020-03-26 Tom Tromey <tom@tromey.com>
12252
12253 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12254 Declare.
12255 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12256 Move from read.c.
12257 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12258 to section.c.
12259
9eac9650
TT
122602020-03-26 Tom Tromey <tom@tromey.com>
12261
12262 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12263
bf80d710
TT
122642020-03-26 Tom Tromey <tom@tromey.com>
12265
12266 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12267 "builder".
12268 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12269 parameter.
12270 (dwarf_decode_macros): Update.
12271
0314b390
TT
122722020-03-26 Tom Tromey <tom@tromey.com>
12273
12274 * dwarf2/read.c (read_attribute_value): Update.
12275 (read_indirect_string_from_dwz): Move to dwz.c; change into
12276 method.
12277 (dwarf_decode_macro_bytes): Update.
12278 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12279 * dwarf2/dwz.c: New file.
12280 * Makefile.in (COMMON_SFILES): Add dwz.c.
12281
9fda78b6
TT
122822020-03-26 Tom Tromey <tom@tromey.com>
12283
12284 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12285 * dwarf2/read.c: Add include.
12286 * dwarf2/index-write.c: Add include.
12287 * dwarf2/index-cache.c: Add include.
12288 * dwarf2/dwz.h: New file.
12289
33aa3c10
TT
122902020-03-25 Tom Tromey <tom@tromey.com>
12291
12292 * compile/compile-object-load.c (get_out_value_type): Mention
12293 correct symbol name in error message.
12294
d503b685
HD
122952020-03-25 Hannes Domani <ssbssa@yahoo.de>
12296
12297 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12298
7b1eff95
TV
122992020-03-25 Tom de Vries <tdevries@suse.de>
12300
12301 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12302 * symmisc.c (dump_symtab_1): Print user and includes fields.
12303 (maintenance_info_symtabs): Same.
12304
dd895392
AB
123052020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12306
12307 PR gdb/25534
12308 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12309 (riscv_regcache_cooked_write): New function.
12310 (riscv_push_dummy_call): Use new function.
12311 (riscv_return_value): Likewise.
12312
5ab2fbf1
SM
123132020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12314
12315 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12316 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12317 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12318 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12319 * infrun.c (follow_fork): Likewise.
12320 (follow_fork_inferior): Likewise.
12321 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12322 * linux-nat.h (class linux_nat_target): Likewise.
12323 * remote.c (class remote_target) <follow_fork>: Likewise.
12324 (remote_target::follow_fork): Likewise.
12325 * target-delegates.c: Re-generate.
12326 * target.c (default_follow_fork): Likewise.
12327 (target_follow_fork): Likewise.
12328 * target.h (struct target_ops) <follow_fork>: Likewise.
12329 (target_follow_fork): Likewise.
12330
a64fafb5
TV
123312020-03-24 Tom de Vries <tdevries@suse.de>
12332
12333 * psymtab.c (maintenance_info_psymtabs): Print user field.
12334
fe26d3a3
TT
123352020-03-20 Tom Tromey <tromey@adacore.com>
12336
12337 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12338 const.
12339 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12340 const.
12341
c884cc46
SM
123422020-03-20 Simon Marchi <simon.marchi@efficios.com>
12343
12344 * ptrace.m4: Don't check for ptrace declaration.
12345 * config.in: Re-generate.
12346 * configure: Re-generate.
12347 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12348 not defined.
12349
1ff700c2
KR
123502020-03-20 Kamil Rytarowski <n54@gmx.com>
12351
12352 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12353 `PTRACE_TYPE_RET'.
12354 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12355 * sparc-nat.c (gdb_ptrace): Likewise.
12356 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12357
f7d4f0b1
TT
123582020-03-20 Tom Tromey <tromey@adacore.com>
12359
12360 * c-exp.y (lex_one_token): Fix assert.
12361
f67210ff
TT
123622020-03-20 Tom Tromey <tromey@adacore.com>
12363
12364 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12365 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12366 strncpy call.
12367
1773be9e
TT
123682020-03-20 Tom Tromey <tromey@adacore.com>
12369
12370 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12371
70304be9
TT
123722020-03-20 Tom Tromey <tromey@adacore.com>
12373
12374 * ada-valprint.c (print_variant_part): Remove parameters; switch
12375 to value-based API.
12376 (print_field_values): Likewise.
12377 (ada_val_print_struct_union): Likewise.
12378 (ada_value_print_1): Update.
12379
9faa006d
KR
123802020-03-20 Kamil Rytarowski <n54@gmx.com>
12381
12382 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12383 nbsd_nat_target instead of inf_ptrace_target.
12384 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12385 nbsd_nat_target.
12386
4a90f062
KR
123872020-03-20 Kamil Rytarowski <n54@gmx.com>
12388
12389 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12390 it to the ptrace call.
12391 * (store_registers): Likewise.
12392
123932020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12394
12395 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12396 it to the ptrace call.
12397 * (store_registers): Likewise.
12398
2d07da27
LM
123992020-03-19 Luis Machado <luis.machado@linaro.org>
12400
12401 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12402 valid, fetch vg value from ptrace.
12403
f09db380
KR
124042020-03-19 Kamil Rytarowski <n54@gmx.com>
12405 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12406 * inf-ptrace.c: Likewise.
12407 * (gdb_ptrace): Add.
12408 * (inf_ptrace_target::resume): Update.
12409 * (inf_ptrace_target::xfer_partial): Likewise.
12410 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12411 * (inf_ptrace_peek_poke): Update.
12412
fcc7376e
KR
124132020-03-19 Kamil Rytarowski <n54@gmx.com>
12414
12415 * x86-bsd-nat.c (gdb_ptrace): New.
12416 * (x86bsd_dr_set): Add new argument `ptid'.
12417 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12418 x86bsd_dr_set_addr): Update.
12419
cada5fc9
AB
124202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12421
12422 * remote.c (remote_target::process_stop_reply): Handle events for
12423 all threads differently.
12424
19a2740f
AB
124252020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12426
12427 * completer.c (completion_tracker::remove_completion): Define new
12428 function.
12429 * completer.h (completion_tracker::remove_completion): Declare new
12430 function.
12431 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12432 when adding a C++ function symbol.
12433
724fd9ba
AB
124342020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12435
12436 * completer.c (completion_tracker::completion_hash_entry): Define
12437 new class.
12438 (advance_to_filename_complete_word_point): Call
12439 recompute_lowest_common_denominator.
12440 (completion_tracker::completion_tracker): Call discard_completions
12441 to setup the hash table.
12442 (completion_tracker::discard_completions): Allow for being called
12443 from the constructor, pass new equal function, and element deleter
12444 when constructing the hash table. Initialise new class member
12445 variables.
12446 (completion_tracker::maybe_add_completion): Remove use of
12447 m_entries_vec, and store more information into m_entries_hash.
12448 (completion_tracker::recompute_lcd_visitor): New function, most
12449 content taken from...
12450 (completion_tracker::recompute_lowest_common_denominator):
12451 ...here, this now just visits each item in the hash calling the
12452 above visitor.
12453 (completion_tracker::build_completion_result): Remove use of
12454 m_entries_vec, call recompute_lowest_common_denominator.
12455 * completer.h (completion_tracker::have_completions): Remove use
12456 of m_entries_vec.
12457 (completion_tracker::completion_hash_entry): Declare new class.
12458 (completion_tracker::recompute_lowest_common_denominator): Change
12459 function signature.
12460 (completion_tracker::recompute_lcd_visitor): Declare new function.
12461 (completion_tracker::m_entries_vec): Delete.
12462 (completion_tracker::m_entries_hash): Initialize to NULL.
12463 (completion_tracker::m_lowest_common_denominator_valid): New
12464 member variable.
12465 (completion_tracker::m_lowest_common_denominator_max_length): New
12466 member variable.
12467
5a82b8a1
KR
124682020-03-17 Kamil Rytarowski <n54@gmx.com>
12469
12470 * regformats/regdef.h: Put reg in gdb namespace.
12471
fb516a69
KR
124722020-03-17 Kamil Rytarowski <n54@gmx.com>
12473
12474 * i386-bsd-nat.c (gdb_ptrace): New.
12475 * (i386bsd_fetch_inferior_registers,
12476 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12477 * (i386bsd_fetch_inferior_registers,
12478 i386bsd_store_inferior_registers) Use gdb_ptrace.
12479
1c0aa1fb
KR
124802020-03-17 Kamil Rytarowski <n54@gmx.com>
12481
12482 * amd64-bsd-nat.c (gdb_ptrace): New.
12483 * (amd64bsd_fetch_inferior_registers,
12484 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12485 * (amd64bsd_fetch_inferior_registers,
12486 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12487
5ccd2fb7
KR
124882020-03-17 Kamil Rytarowski <n54@gmx.com>
12489
12490 * user-regs.c (user_reg::read): Rename to...
12491 (user_reg::xread): ...this.
12492 * (append_user_reg): Rename argument `read' to `xread'.
12493 * (user_reg_add_builtin): Likewise.
12494 * (user_reg_add): Likewise.
12495 * (value_of_user_reg): Likewise.
12496
2108a63a
KR
124972020-03-17 Kamil Rytarowski <n54@gmx.com>
12498
12499 * sparc-nat.c (gdb_ptrace): New.
12500 * sparc-nat.c (sparc_fetch_inferior_registers)
12501 (sparc_store_inferior_registers) Remove obsolete comment.
12502 * sparc-nat.c (sparc_fetch_inferior_registers)
12503 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12504 * sparc-nat.c (sparc_fetch_inferior_registers)
12505 (sparc_store_inferior_registers) Use gdb_ptrace.
12506
a225c9a8
KR
125072020-03-17 Kamil Rytarowski <n54@gmx.com>
12508
12509 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12510 it to the ptrace call.
12511 * sh-nbsd-nat.c (store_registers): Likewise.
12512
98097623
KR
125132020-03-17 Kamil Rytarowski <n54@gmx.com>
12514
12515 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12516 nbsd_nat_target instead of inf_ptrace_target.
12517 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12518 nbsd_nat_target.
12519
9e38d619
KR
125202020-03-17 Kamil Rytarowski <n54@gmx.com>
12521
12522 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12523
a2ecbe9f
KR
125242020-03-17 Kamil Rytarowski <n54@gmx.com>
12525
12526 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12527 <sys/sysctl.h>.
12528 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12529
58990295
TV
125302020-03-17 Tom de Vries <tdevries@suse.de>
12531
12532 PR gdb/23710
12533 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12534 fields.
12535 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12536 fields.
12537 (process_imported_unit_die): Skip import of c++ CUs.
12538
771dd3a8
TT
125392020-03-16 Tom Tromey <tom@tromey.com>
12540
12541 * p-valprint.c (pascal_object_print_value): Initialize
12542 base_value.
12543
817a7585
AK
125442020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12545 Shahab Vahedi <shahab@synopsys.com>
12546
12547 * Makefile.in: Add arch/arc.o
12548 * configure.tgt: Likewise.
12549 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12550 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12551 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12552 * arc-tdep.h (arc_read_description): Add proto type.
12553 * arch/arc.c: New file.
12554 * arch/arc.h: Likewise.
12555 * features/Makefile: Replace old target descriptions with new.
12556 * features/arc-arcompact.c: Remove.
12557 * features/arc-arcompact.xml: Likewise.
12558 * features/arc-v2.c: Likewise
12559 * features/arc-v2.xml: Likewise
12560 * features/arc/aux-arcompact.xml: New file.
12561 * features/arc/aux-v2.xml: Likewise.
12562 * features/arc/core-arcompact.xml: Likewise.
12563 * features/arc/core-v2.xml: Likewise.
12564 * features/arc/aux-arcompact.c: Generate.
12565 * features/arc/aux-v2.c: Likewise.
12566 * features/arc/core-arcompact.c: Likewise.
12567 * features/arc/core-v2.c: Likewise.
12568 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12569
67430cd0
TT
125702020-03-16 Tom Tromey <tromey@adacore.com>
12571
12572 PR gdb/25663:
12573 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12574 putting value into bcache.
12575
30efb6c7
SM
125762020-03-16 Simon Marchi <simon.marchi@efficios.com>
12577
12578 PR gdb/21500
12579 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12580 to...
12581 (amd64_windows_init_abi_common): ... this. Don't set size of
12582 long type.
12583 (amd64_windows_init_abi): New function.
12584 (amd64_cygwin_init_abi): New function.
12585 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12586 the Cygwin OS ABI.
12587 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12588 comment.
12589
8db52437
SM
125902020-03-16 Simon Marchi <simon.marchi@efficios.com>
12591
12592 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12593 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12594 (pe_import_directory_entry): New struct type.
12595 (is_linked_with_cygwin_dll): New function.
12596 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12597 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12598 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12599
5982a56a
SM
126002020-03-16 Simon Marchi <simon.marchi@efficios.com>
12601
12602 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12603 i386_cygwin_core_osabi_sniffer.
12604
7a1998df
SM
126052020-03-16 Simon Marchi <simon.marchi@efficios.com>
12606
12607 * i386-cygwin-tdep.c: Rename to...
12608 * i386-windows-tdep.c: ... this.
12609 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12610 i386-windows-tdep.c.
12611 * configure.tgt: Likewise.
12612
053205cc
SM
126132020-03-16 Simon Marchi <simon.marchi@efficios.com>
12614
12615 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12616 * osabi.c (gdb_osabi_names): Add "Windows".
12617 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12618 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12619 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12620 i386_cygwin_osabi_sniffer.
12621 (_initialize_i386_cygwin_tdep): Register OS ABI
12622 GDB_OSABI_WINDOWS for i386.
12623 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12624 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12625 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12626 for x86-64.
12627 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12628 when the target matches '*-*-mingw*'.
12629
fe4b2ee6
SM
126302020-03-16 Simon Marchi <simon.marchi@efficios.com>
12631
12632 * defs.h (enum gdb_osabi): Move to...
12633 * osabi.h (enum gdb_osabi): ... here.
12634 * gdbarch.sh: Include osabi.h in gdbarch.h.
12635 * gdbarch.h: Re-generate.
12636
cb9b645d
SM
126372020-03-16 Simon Marchi <simon.marchi@efficios.com>
12638
12639 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12640 function.
12641 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12642
3293bbaf
TT
126432020-03-14 Tom Tromey <tom@tromey.com>
12644
12645 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12646 for C++.
12647 (c_type_print_modifier): Likewise. Add "language" parameter.
12648 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12649 (c_type_print_base_1): Update.
12650 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12651 constants.
12652 * type-stack.c (type_stack::insert): Handle tp_atomic and
12653 tp_restrict.
12654 (type_stack::follow_type_instance_flags): Likewise.
12655 (type_stack::follow_types): Likewise. Merge type-following code.
12656 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12657 (space_identifier, cv_with_space_id)
12658 (const_or_volatile_or_space_identifier_noopt)
12659 (const_or_volatile_or_space_identifier): Remove.
12660 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12661 rules.
12662 (ptr_operator, typebase): Update.
12663 (enum token_flag) <FLAG_C>: New constant.
12664 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12665 "_Atomic".
12666 (lex_one_token): Handle FLAG_C.
12667
154151a6
KR
126682020-03-14 Kamil Rytarowski <n54@gmx.com>
12669
12670 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12671 it to the ptrace call.
12672 * m68k-bsd-nat.c (store_registers): Likewise.
12673
bc107784
KR
126742020-03-14 Kamil Rytarowski <n54@gmx.com>
12675
12676 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12677 gdb_byte *.
12678 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12679 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12680 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12681
01a80117
KR
126822020-03-14 Kamil Rytarowski <n54@gmx.com>
12683
12684 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12685 nbsd_nat_target instead of inf_ptrace_target.
12686 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12687 nbsd_nat_target.
12688
f90280ca
KR
126892020-03-14 Kamil Rytarowski <n54@gmx.com>
12690
12691 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12692 register_t.
12693
6def66f1
KR
126942020-03-14 Kamil Rytarowski <n54@gmx.com>
12695
12696 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12697 it to the ptrace call.
12698 * alpha-bsd-nat.c (store_registers): Likewise.
12699
66eaca97
KR
127002020-03-14 Kamil Rytarowski <n54@gmx.com>
12701
12702 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12703 includes.
12704 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12705 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12706 fill_fpregset): Likewise.
12707
4fed520b
KR
127082020-03-14 Kamil Rytarowski <n54@gmx.com>
12709
12710 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12711 nbsd_nat_target instead of inf_ptrace_target.
12712 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12713 nbsd_nat_target.
12714
2190cf06
KR
127152020-03-14 Kamil Rytarowski <n54@gmx.com>
12716
12717 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12718 register_t.
12719
75c56d3d
KR
127202020-03-14 Kamil Rytarowski <n54@gmx.com>
12721
12722 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12723 it to the ptrace call.
12724 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12725 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12726 * arm-nbsd-nat.c (store_register): Likewise.
12727 * arm-nbsd-nat.c (store_regs): Likewise.
12728 * arm-nbsd-nat.c (store_fp_register): Likewise.
12729 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12730
6018d381
KR
127312020-03-14 Kamil Rytarowski <n54@gmx.com>
12732
12733 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12734 nbsd_nat_target instead of inf_ptrace_target.
12735 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12736 nbsd_nat_target.
12737
013f99f0
KR
127382020-03-14 Kamil Rytarowski <n54@gmx.com>
12739
12740 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12741 it to the ptrace call.
12742 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12743
12753073
KR
127442020-03-14 Kamil Rytarowski <n54@gmx.com>
12745
6227b330
KR
12746 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12747 it to the ptrace call.
12748 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12749
127502020-03-14 Kamil Rytarowski <n54@gmx.com>
12751
12752 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12753 gdb_byte *.
12753073
KR
12754 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12755
d5be5fa4
KR
127562020-03-14 Kamil Rytarowski <n54@gmx.com>
12757
12758 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12759 instead of inf_ptrace_target.
12760 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12761 nbsd_nat_target.
12762
8110f842
KR
127632020-03-14 Kamil Rytarowski <n54@gmx.com>
12764
12765 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12766 register_t.
12767
52feded7
KR
127682020-03-14 Kamil Rytarowski <n54@gmx.com>
12769
12770 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12771 register_t.
12772
25567eee
KR
127732020-03-14 Kamil Rytarowski <n54@gmx.com>
12774
12775 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12776 register_t.
12777
426a9c18
TT
127782020-03-13 Tom Tromey <tom@tromey.com>
12779
12780 * value.h (val_print): Don't declare.
12781 * valprint.h (val_print_array_elements)
12782 (val_print_scalar_formatted, generic_val_print): Don't declare.
12783 * valprint.c (generic_val_print_array): Take a struct value.
12784 (generic_val_print_ptr, generic_val_print_memberptr)
12785 (generic_val_print_bool, generic_val_print_int)
12786 (generic_val_print_char, generic_val_print_complex)
12787 (generic_val_print): Remove.
12788 (generic_value_print): Update.
12789 (do_val_print): Remove unused parameters. Don't call
12790 la_val_print.
12791 (val_print): Remove.
12792 (common_val_print): Update. Don't call value_check_printable.
12793 (val_print_scalar_formatted, val_print_array_elements): Remove.
12794 * rust-lang.c (rust_val_print): Remove.
12795 (rust_language_defn): Update.
12796 * p-valprint.c (pascal_val_print): Remove.
12797 (pascal_value_print_inner): Update.
12798 (pascal_object_print_val_fields, pascal_object_print_val):
12799 Remove.
12800 (pascal_object_print_static_field): Update.
12801 * p-lang.h (pascal_val_print): Don't declare.
12802 * p-lang.c (pascal_language_defn): Update.
12803 * opencl-lang.c (opencl_language_defn): Update.
12804 * objc-lang.c (objc_language_defn): Update.
12805 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12806 * m2-lang.h (m2_val_print): Don't declare.
12807 * m2-lang.c (m2_language_defn): Update.
12808 * language.h (struct language_defn) <la_val_print>: Remove.
12809 * language.c (unk_lang_value_print_inner): Rename. Change
12810 argument types.
12811 (unknown_language_defn, auto_language_defn): Update.
12812 * go-valprint.c (go_val_print): Remove.
12813 * go-lang.h (go_val_print): Don't declare.
12814 * go-lang.c (go_language_defn): Update.
12815 * f-valprint.c (f_val_print): Remove.
12816 * f-lang.h (f_value_print): Don't declare.
12817 * f-lang.c (f_language_defn): Update.
12818 * d-valprint.c (d_val_print): Remove.
12819 * d-lang.h (d_value_print): Don't declare.
12820 * d-lang.c (d_language_defn): Update.
12821 * cp-valprint.c (cp_print_value_fields)
12822 (cp_print_value_fields_rtti, cp_print_value): Remove.
12823 (cp_print_static_field): Update.
12824 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12825 (c_val_print_struct, c_val_print_union, c_val_print_int)
12826 (c_val_print_memberptr, c_val_print): Remove.
12827 * c-lang.h (c_val_print_array, cp_print_value_fields)
12828 (cp_print_value_fields_rtti): Don't declare.
12829 * c-lang.c (c_language_defn, cplus_language_defn)
12830 (asm_language_defn, minimal_language_defn): Update.
12831 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12832 (ada_val_print_enum): Take a struct value.
12833 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12834 (ada_val_print): Remove.
12835 (ada_value_print_1): Update.
12836 (printable_val_type): Remove.
12837 * ada-lang.h (ada_val_print): Don't declare.
12838 * ada-lang.c (ada_language_defn): Update.
12839
42331a1e
TT
128402020-03-13 Tom Tromey <tom@tromey.com>
12841
12842 * valprint.c (do_val_print): Update.
12843 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12844 a struct value.
12845 (value_to_value_object_no_release): Declare.
12846 * python/py-value.c (value_to_value_object_no_release): New
12847 function.
12848 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12849 struct value.
12850 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12851 function.
12852 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12853 a struct value.
12854 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12855 Declare.
12856 (gdbscm_apply_val_pretty_printer): Take a struct value.
12857 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12858 value.
12859 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12860 value.
12861 * extension-priv.h (struct extension_language_ops)
12862 <apply_val_pretty_printer>: Take a struct value.
12863 * cp-valprint.c (cp_print_value): Create a struct value.
12864 (cp_print_value): Update.
12865
3a916a97
TT
128662020-03-13 Tom Tromey <tom@tromey.com>
12867
12868 * ada-valprint.c (print_field_values): Call common_val_print.
12869
b59eac37
TT
128702020-03-13 Tom Tromey <tom@tromey.com>
12871
12872 * ada-valprint.c (val_print_packed_array_elements): Remove
12873 bitoffset and val parameters. Call common_val_print.
12874 (ada_val_print_string): Remove offset, address, and original_value
12875 parameters.
12876 (ada_val_print_array): Update.
12877 (ada_value_print_array): New function.
12878 (ada_value_print_1): Call it.
12879
03371129
TT
128802020-03-13 Tom Tromey <tom@tromey.com>
12881
12882 * ada-valprint.c (ada_value_print): Use common_val_print.
12883
2e088f8b
TT
128842020-03-13 Tom Tromey <tom@tromey.com>
12885
12886 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12887
39ef85a8
TT
128882020-03-13 Tom Tromey <tom@tromey.com>
12889
12890 * ada-valprint.c (ada_value_print_num): New function.
12891 (ada_value_print_1): Use it.
12892
b9fa6e07
TT
128932020-03-13 Tom Tromey <tom@tromey.com>
12894
12895 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12896
416595d6
TT
128972020-03-13 Tom Tromey <tom@tromey.com>
12898
12899 * ada-valprint.c (ada_value_print_ptr): New function.
12900 (ada_value_print_1): Use it.
12901
5b5e15ec
TT
129022020-03-13 Tom Tromey <tom@tromey.com>
12903
12904 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12905 call common_val_print.
12906 (ada_val_print_1): Update.
12907 (ada_value_print_1): New function.
12908 (ada_value_print_inner): Rewrite.
12909
fbf54e75
TT
129102020-03-13 Tom Tromey <tom@tromey.com>
12911
12912 * cp-valprint.c (cp_print_value_fields): Update.
12913 (cp_print_value): New function.
12914
64b653ca
TT
129152020-03-13 Tom Tromey <tom@tromey.com>
12916
12917 * m2-valprint.c (m2_value_print_inner): Use
12918 cp_print_value_fields.
12919 * cp-valprint.c (cp_print_value_fields): New function.
12920 * c-valprint.c (c_value_print_struct): New function.
12921 (c_value_print_inner): Use c_value_print_struct.
12922 * c-lang.h (cp_print_value_fields): Declare.
12923
6999f067
TT
129242020-03-13 Tom Tromey <tom@tromey.com>
12925
12926 * c-valprint.c (c_value_print_array): New function.
12927 (c_value_print_inner): Use it.
12928
ce80b8bd
TT
129292020-03-13 Tom Tromey <tom@tromey.com>
12930
12931 * c-valprint.c (c_value_print_memberptr): New function.
12932 (c_value_print_inner): Use it.
12933
2faac269
TT
129342020-03-13 Tom Tromey <tom@tromey.com>
12935
12936 * c-valprint.c (c_value_print_int): New function.
12937 (c_value_print_inner): Use it.
12938
da3e2c29
TT
129392020-03-13 Tom Tromey <tom@tromey.com>
12940
12941 * c-valprint.c (c_value_print_ptr): New function.
12942 (c_value_print_inner): Use it.
12943
50836231
TT
129442020-03-13 Tom Tromey <tom@tromey.com>
12945
12946 * c-valprint.c (c_value_print_inner): Rewrite.
12947
4f412b6e
TT
129482020-03-13 Tom Tromey <tom@tromey.com>
12949
12950 * valprint.c (generic_value_print_complex): New function.
12951 (generic_value_print): Use it.
12952
f5354008
TT
129532020-03-13 Tom Tromey <tom@tromey.com>
12954
12955 * valprint.c (generic_val_print_float): Don't call
12956 val_print_scalar_formatted.
12957 (generic_val_print, generic_value_print): Update.
12958
3eec3b05
TT
129592020-03-13 Tom Tromey <tom@tromey.com>
12960
12961 * valprint.c (generic_value_print_char): New function
12962 (generic_value_print): Use it.
12963
fdddfccb
TT
129642020-03-13 Tom Tromey <tom@tromey.com>
12965
12966 * valprint.c (generic_value_print_int): New function.
12967 (generic_value_print): Use it.
12968
6dde7521
TT
129692020-03-13 Tom Tromey <tom@tromey.com>
12970
12971 * valprint.c (generic_value_print_bool): New function.
12972 (generic_value_print): Use it.
12973
4112d2e6
TT
129742020-03-13 Tom Tromey <tom@tromey.com>
12975
12976 * valprint.c (generic_val_print_func): Simplify.
12977 (generic_val_print, generic_value_print): Update.
12978
65786af6
TT
129792020-03-13 Tom Tromey <tom@tromey.com>
12980
12981 * valprint.c (generic_val_print_flags): Remove.
12982 (generic_val_print, generic_value_print): Update.
12983 (val_print_type_code_flags): Add original_value parameter.
12984
40f3ce18
TT
129852020-03-13 Tom Tromey <tom@tromey.com>
12986
12987 * valprint.c (generic_val_print): Update.
12988 (generic_value_print): Update.
12989 * valprint.c (generic_val_print_enum): Don't call
12990 val_print_scalar_formatted.
12991
2a5b130b
TT
129922020-03-13 Tom Tromey <tom@tromey.com>
12993
12994 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12995 * valprint.c (generic_value_print_ptr): New function.
12996
abc66ce9
TT
129972020-03-13 Tom Tromey <tom@tromey.com>
12998
12999 * valprint.c (generic_value_print): Rewrite.
13000
07a32858
TT
130012020-03-13 Tom Tromey <tom@tromey.com>
13002
13003 * p-valprint.c (pascal_object_print_value_fields)
13004 (pascal_object_print_value): New functions.
13005
64d64d3a
TT
130062020-03-13 Tom Tromey <tom@tromey.com>
13007
13008 * p-valprint.c (pascal_value_print_inner): Rewrite.
13009
6a95a1f5
TT
130102020-03-13 Tom Tromey <tom@tromey.com>
13011
13012 * f-valprint.c (f_value_print_innner): Rewrite.
13013
59fcdac6
TT
130142020-03-13 Tom Tromey <tom@tromey.com>
13015
13016 * m2-valprint.c (m2_print_unbounded_array): New overload.
13017 (m2_print_unbounded_array): Update.
13018 (m2_print_array_contents): Take a struct value.
13019 (m2_value_print_inner): Rewrite.
13020
d133c3e1
TT
130212020-03-13 Tom Tromey <tom@tromey.com>
13022
13023 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13024 (d_value_print_inner): New function.
13025 * d-lang.h (d_value_print_inner): Declare.
13026 * d-lang.c (d_language_defn): Use d_value_print_inner.
13027
23b0f06b
TT
130282020-03-13 Tom Tromey <tom@tromey.com>
13029
13030 * go-valprint.c (go_value_print_inner): New function.
13031 * go-lang.h (go_value_print_inner): Declare.
13032 * go-lang.c (go_language_defn): Use go_value_print_inner.
13033
5f56f7cb
TT
130342020-03-13 Tom Tromey <tom@tromey.com>
13035
13036 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13037 API.
13038 (rust_val_print): Rewrite.
13039 (rust_value_print_inner): New function, from rust_val_print.
13040 (rust_language_defn): Use rust_value_print_inner.
13041
26792ee0
TT
130422020-03-13 Tom Tromey <tom@tromey.com>
13043
13044 * ada-valprint.c (ada_value_print_inner): New function.
13045 * ada-lang.h (ada_value_print_inner): Declare.
13046 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13047
24051bbe
TT
130482020-03-13 Tom Tromey <tom@tromey.com>
13049
13050 * f-valprint.c (f_value_print_innner): New function.
13051 * f-lang.h (f_value_print_innner): Declare.
13052 * f-lang.c (f_language_defn): Use f_value_print_innner.
13053
c0941be6
TT
130542020-03-13 Tom Tromey <tom@tromey.com>
13055
13056 * p-valprint.c (pascal_value_print_inner): New function.
13057 * p-lang.h (pascal_value_print_inner): Declare.
13058 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13059
62c4663d
TT
130602020-03-13 Tom Tromey <tom@tromey.com>
13061
13062 * m2-valprint.c (m2_value_print_inner): New function.
13063 * m2-lang.h (m2_value_print_inner): Declare.
13064 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13065
62182190
TT
130662020-03-13 Tom Tromey <tom@tromey.com>
13067
13068 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13069 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13070 * c-valprint.c (c_value_print_inner): New function.
13071 * c-lang.h (c_value_print_inner): Declare.
13072 * c-lang.c (c_language_defn, cplus_language_defn)
13073 (asm_language_defn, minimal_language_defn): Use
13074 c_value_print_inner.
13075
1e592a8a
TT
130762020-03-13 Tom Tromey <tom@tromey.com>
13077
13078 * p-valprint.c (pascal_object_print_value_fields): Now static.
13079 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13080
7fe471e9
TT
130812020-03-13 Tom Tromey <tom@tromey.com>
13082
13083 * c-valprint.c (c_val_print_array): Simplify.
13084
d121c6ce
TT
130852020-03-13 Tom Tromey <tom@tromey.com>
13086
13087 * valprint.c (value_print_array_elements): New function.
13088 * valprint.h (value_print_array_elements): Declare.
13089
4dba70ee
TT
130902020-03-13 Tom Tromey <tom@tromey.com>
13091
13092 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13093 * mips-tdep.c (mips_print_register): Use
13094 value_print_scalar_formatted.
13095
4f9ae810
TT
130962020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * valprint.h (value_print_scalar_formatted): Declare.
13099 * valprint.c (value_print_scalar_formatted): New function.
13100
156bfec9
TT
131012020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * valprint.h (generic_value_print): Declare.
13104 * valprint.c (generic_value_print): New function.
13105
2b4e573d
TT
131062020-03-13 Tom Tromey <tom@tromey.com>
13107
13108 * valprint.c (do_val_print): Call la_value_print_inner, if
13109 available.
13110 * rust-lang.c (rust_language_defn): Update.
13111 * p-lang.c (pascal_language_defn): Update.
13112 * opencl-lang.c (opencl_language_defn): Update.
13113 * objc-lang.c (objc_language_defn): Update.
13114 * m2-lang.c (m2_language_defn): Update.
13115 * language.h (struct language_defn) <la_value_print_inner>: New
13116 member.
13117 * language.c (unknown_language_defn, auto_language_defn): Update.
13118 * go-lang.c (go_language_defn): Update.
13119 * f-lang.c (f_language_defn): Update.
13120 * d-lang.c (d_language_defn): Update.
13121 * c-lang.c (c_language_defn, cplus_language_defn)
13122 (asm_language_defn, minimal_language_defn): Update.
13123 * ada-lang.c (ada_language_defn): Update.
13124
a1f6a07c
TT
131252020-03-13 Tom Tromey <tom@tromey.com>
13126
13127 * c-valprint.c (c_value_print): Use common_val_print.
13128
410cf315
TT
131292020-03-13 Tom Tromey <tom@tromey.com>
13130
13131 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13132
72a45c93
TT
131332020-03-13 Tom Tromey <tom@tromey.com>
13134
13135 * f-valprint.c (f77_print_array_1, f_val_print): Use
13136 common_val_print.
13137
040f66bd
TT
131382020-03-13 Tom Tromey <tom@tromey.com>
13139
13140 * riscv-tdep.c (riscv_print_one_register_info): Use
13141 common_val_print.
13142
a6e05a6c
TT
131432020-03-13 Tom Tromey <tom@tromey.com>
13144
13145 * mi/mi-main.c (output_register): Use common_val_print.
13146
3444c526
TT
131472020-03-13 Tom Tromey <tom@tromey.com>
13148
13149 * infcmd.c (default_print_one_register_info): Use
13150 common_val_print.
13151
c2a44efe
TT
131522020-03-13 Tom Tromey <tom@tromey.com>
13153
13154 * valprint.h (common_val_print_checked): Declare.
13155 * valprint.c (common_val_print_checked): New function.
13156 * stack.c (print_frame_arg): Use common_val_print_checked.
13157
b0c26e99
TT
131582020-03-13 Tom Tromey <tom@tromey.com>
13159
13160 * valprint.c (do_val_print): New function, from val_print.
13161 (val_print): Use do_val_print.
13162 (common_val_print): Use do_val_print.
13163
ce3acbe9
TT
131642020-03-13 Tom Tromey <tom@tromey.com>
13165
13166 * valprint.c (value_print): Use scoped_value_mark.
13167
96c7f873
TV
131682020-03-13 Tom de Vries <tdevries@suse.de>
13169
13170 PR symtab/25646
13171 * psymtab.c (partial_symtab::partial_symtab): Don't set
13172 globals_offset and statics_offset. Push element onto
13173 current_global_psymbols and current_static_psymbols stacks.
13174 (concat): New function.
13175 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13176 element from current_global_psymbols and current_static_psymbols
13177 stacks. Concat popped elements to global_psymbols and
13178 static_symbols.
13179 (add_psymbol_to_list): Use current_global_psymbols and
13180 current_static_psymbols stacks.
13181 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13182 current_static_psymbols fields.
13183
6ba0a321
CB
131842020-03-12 Christian Biesinger <cbiesinger@google.com>
13185
13186 * corelow.c (sniff_core_bfd): Remove.
13187 (class core_target) <m_core_vec>: Remove.
13188 (core_target::core_target): Update.
13189 (core_file_fns): Remove.
13190 (deprecated_add_core_fns): Remove.
13191 (default_core_sniffer): Remove.
13192 (sniff_core_bfd): Remove.
13193 (default_check_format): Remove.
13194 (gdb_check_format): Remove.
13195 (core_target_open): Update.
13196 (core_target::get_core_register_section): Update.
13197 (get_core_registers_cb): Update.
13198 (core_target::fetch_registers): Update.
13199 * gdbcore.h (struct core_fns): Remove.
13200 (deprecated_add_core_fns): Remove.
13201 (default_core_sniffer): Remove.
13202 (default_check_format): Remove.
13203
227031b2
TT
132042020-03-12 Tom Tromey <tom@tromey.com>
13205
13206 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13207 CORE_ADDR.
13208 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13209
53807e9f
TT
132102020-03-12 Tom Tromey <tom@tromey.com>
13211
13212 * remote.c (remote_target::download_tracepoint)
13213 (remote_target::enable_tracepoint)
13214 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13215 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13216 sprintf_vma.
13217
64f25102
TT
132182020-03-12 Tom Tromey <tom@tromey.com>
13219
13220 * symfile-mem.c: Update CORE_ADDR size assert.
13221
272cd5a3
SM
132222020-03-12 Simon Marchi <simon.marchi@efficios.com>
13223
13224 * selftest.m4: Move to gdbsupport/.
13225 * acinclude.m4: Update path to selftest.m4.
13226
74cd3f9d
SM
132272020-03-12 Simon Marchi <simon.marchi@efficios.com>
13228
13229 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13230 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13231 gdbarch-selfselftests.c and selftest-arch.c.
13232 (SUBDIR_UNITTESTS_OBS): Rename to...
13233 (SELFTESTS_OBS): ... this.
13234 (COMMON_SFILES): Remove disasm-selftests.c and
13235 gdbarch-selftests.c.
13236 * configure.ac: Don't add selftest-arch.{c,o} to
13237 CONFIG_{SRCS,OBS}.
13238 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13239 preprocessor conditions.
13240
db6878ac
SM
132412020-03-12 Simon Marchi <simon.marchi@efficios.com>
13242
13243 * configure.ac: Don't source bfd/development.sh.
13244 * selftest.m4: Modify comment.
13245 * configure: Re-generate.
13246
4d696a5c
SM
132472020-03-12 Simon Marchi <simon.marchi@efficios.com>
13248
13249 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13250 not "true" or "false".
13251 * configure: Re-generate.
13252
8dd8e1c7
CB
132532020-03-12 Christian Biesinger <cbiesinger@google.com>
13254
13255 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13256 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13257 renamed to arm_nbsd_supply_gregset.
13258 (fetch_register): Update to call arm_nbsd_supply_gregset.
13259 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13260 (arm_netbsd_nat_target::fetch_registers): Update.
13261 (fetch_elfcore_registers): Removed.
13262 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13263 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13264 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13265 not require NetBSD system headers.
13266 (arm_nbsd_regset): New struct.
13267 (arm_nbsd_iterate_over_regset_sections): New function.
13268 (arm_netbsd_init_abi_common): Updated to call
13269 set_gdbarch_iterate_over_regset_sections.
13270 * arm-nbsd-tdep.h: New file.
13271
dd69bf7a
KB
132722020-03-11 Kevin Buettner <kevinb@redhat.com>
13273
13274 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13275 recursion.
13276
a0761e34
SM
132772020-03-11 Simon Marchi <simon.marchi@efficios.com>
13278
13279 * configure: Re-generate.
13280
e7a82140
TT
132812020-03-11 Tom Tromey <tromey@adacore.com>
13282
13283 * ada-typeprint.c (print_choices): Fix comment.
13284
dcc050c8
AB
132852020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13286
13287 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13288 previous item in the list, when the list has no items.
13289
1c33af77
TV
132902020-03-11 Tom de Vries <tdevries@suse.de>
13291
13292 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13293 PROP_LOCLIST handling code.
13294
8c95582d
AB
132952020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13296
13297 * buildsym-legacy.c (record_line): Pass extra parameter to
13298 record_line.
13299 * buildsym.c (buildsym_compunit::record_line): Take an extra
13300 parameter, reduce duplication in the line table, and record the
13301 is_stmt flag in the line table.
13302 * buildsym.h (buildsym_compunit::record_line): Add extra
13303 parameter.
13304 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13305 non-statement lines.
13306 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13307 this to the symtab builder.
13308 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13309 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13310 through to dwarf_record_line_1.
13311 * infrun.c (process_event_stop_test): When stepping, don't stop at
13312 a non-statement instruction, and only refresh the step info when
13313 we land in the middle of a line's range. Also add an extra
13314 comment.
13315 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13316 field.
13317 * record-btrace.c (btrace_find_line_range): Only record lines
13318 marked as is-statement.
13319 * stack.c (frame_show_address): Show the frame address if we are
13320 in a non-statement sal.
13321 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13322 (maintenance_print_one_line_table): Print a header for the is_stmt
13323 column, and include is_stmt information in the output.
13324 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13325 preference to non-statements.
13326 (find_pcs_for_symtab_line): Prefer is-statement entries.
13327 (find_line_common): Likewise.
13328 * symtab.h (struct linetable_entry): Add is_stmt field.
13329 (struct symtab_and_line): Likewise.
13330 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13331 arranging the line table.
13332
e4003a34
TV
133332020-03-07 Tom de Vries <tdevries@suse.de>
13334
13335 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13336 DIE.
13337
e8932576
TT
133382020-03-07 Tom Tromey <tom@tromey.com>
13339
13340 * valops.c (value_literal_complex): Remove obsolete comment.
13341 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13342 comment.
13343
29734269
SM
133442020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13345
13346 * infrun.h: Forward-declare thread_info.
13347 (set_step_info): Add thread_info parameter, add doc.
13348 * infrun.c (set_step_info): Add thread_info parameter, move doc
13349 to header.
13350 * infrun.c (process_event_stop_test): Pass thread to
13351 set_step_info call.
13352 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13353 set_step_info.
13354 (prepare_one_step): Add thread_info parameter, pass it to
13355 set_step_frame and prepare_one_step (recursive) call.
13356 (step_1): Pass thread to prepare_one_step call.
13357 (step_command_fsm::should_stop): Pass thread to
13358 prepare_one_step.
13359 (until_next_fsm): Pass thread to set_step_frame call.
13360 (finish_command): Pass thread to set_step_info call.
13361
b7d64b29
HD
133622020-03-06 Hannes Domani <ssbssa@yahoo.de>
13363
13364 * windows-tdep.c (windows_solib_create_inferior_hook):
13365 Check if inferior is running.
13366
09f2921c
TV
133672020-03-06 Tom de Vries <tdevries@suse.de>
13368
13369 * NEWS: Fix "the the".
13370 * ctfread.c: Same.
13371
fd760e79
TV
133722020-03-06 Tom de Vries <tdevries@suse.de>
13373
13374 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13375
20ea4a60
AB
133762020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13377
13378 * .dir-locals.el: Add a comment referencing the other copies of
13379 this file.
13380
0afbabf0
JB
133812020-03-05 John Baldwin <jhb@FreeBSD.org>
13382
13383 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13384 psargs.
13385
842806cb
TBA
133862020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13387
13388 * .gitattributes: New file.
13389
be1e3d3e
TT
133902020-03-04 Tom Tromey <tom@tromey.com>
13391
13392 * symmisc.c (print_symbol_bcache_statistics)
13393 (print_objfile_statistics): Update.
13394 * symfile.c (allocate_symtab): Use intern.
13395 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13396 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13397 macro_cache>: Remove.
13398 <string_cache>: New member.
13399 (struct objfile) <intern>: New methods.
13400 * elfread.c (elf_symtab_read): Use intern.
13401 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13402 (dwarf2_compute_name, dwarf2_physname)
13403 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13404 names.
13405 (guess_partial_die_structure_name): Update.
13406 (partial_die_info::fixup): Intern name.
13407 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13408 name.
13409 (dwarf2_name): Intern name. Update.
13410 * buildsym.c (buildsym_compunit::get_macro_table): Use
13411 string_cache.
13412
4e7625fd
TT
134132020-03-04 Tom Tromey <tom@tromey.com>
13414
13415 * jit.c (bfd_open_from_target_memory): Make "target" const.
13416 * corefile.c (gnutarget): Now const.
13417 * gdbcore.h (gnutarget): Now const.
13418
46f9f931
HD
134192020-03-04 Hannes Domani <ssbssa@yahoo.de>
13420
13421 * NEWS: Mention support for WOW64 processes.
13422 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13423 (amd64_windows_segment_register_p): Remove static.
13424 (_initialize_amd64_windows_nat): Update.
13425 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13426 * i386-windows-nat.c (context_offset): Update.
13427 (i386_mappings): Rename and remove static.
13428 (i386_windows_segment_register_p): Remove static.
13429 (_initialize_i386_windows_nat): Update.
13430 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13431 (STATUS_WX86_SINGLE_STEP): New macro.
13432 (EnumProcessModulesEx): New macro.
13433 (Wow64SuspendThread): New macro.
13434 (Wow64GetThreadContext): New macro.
13435 (Wow64SetThreadContext): New macro.
13436 (Wow64GetThreadSelectorEntry): New macro.
13437 (windows_set_context_register_offsets): Add static.
13438 (windows_set_segment_register_p): Likewise.
13439 (windows_add_thread): Adapt for WOW64 processes.
13440 (windows_fetch_one_register): Likewise.
13441 (windows_nat_target::fetch_registers): Likewise.
13442 (windows_store_one_register): Likewise.
13443 (display_selector): Likewise.
13444 (display_selectors): Likewise.
13445 (handle_exception): Likewise.
13446 (windows_continue): Likewise.
13447 (windows_nat_target::resume): Likewise.
13448 (windows_add_all_dlls): Likewise.
13449 (do_initial_windows_stuff): Likewise.
13450 (windows_nat_target::attach): Likewise.
13451 (windows_get_exec_module_filename): Likewise.
13452 (windows_nat_target::create_inferior): Likewise.
13453 (windows_xfer_siginfo): Likewise.
13454 (_initialize_loadable): Initialize Wow64SuspendThread,
13455 Wow64GetThreadContext, Wow64SetThreadContext,
13456 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13457 * windows-nat.h (windows_set_context_register_offsets):
13458 Remove declaration.
13459 (windows_set_segment_register_p): Likewise.
13460 (i386_windows_segment_register_p): Add declaration.
13461 (amd64_windows_segment_register_p): Likewise.
13462
440cf44e
LM
134632020-03-04 Luis Machado <luis.machado@linaro.org>
13464
13465 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13466 in "info registers" for AArch64/ARM.
13467
13468 The change caused "info registers" to not print GPR's.
13469
13470 gdb/ChangeLog:
13471
13472 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13473
13474 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13475 when reg->group is empty and reggroup is not.
13476
1009d92f
TT
134772020-03-03 Tom Tromey <tromey@adacore.com>
13478
13479 * dwarf2/frame.c (struct dwarf2_frame_cache)
13480 <checked_tailcall_bottom, entry_cfa_sp_offset,
13481 entry_cfa_sp_offset_p>: Remove members.
13482 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13483 (dwarf2_frame_prev_register): Don't call
13484 dwarf2_tailcall_sniffer_first.
13485 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13486 * frame-unwind.c (add_unwinder): New fuction.
13487 (frame_unwind_init): Use it. Add tailcall unwinder.
13488
5e5d66b6
AB
134892020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13490 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13491
13492 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13493 value should be printed as true.
13494
584cf46d
HD
134952020-03-03 Hannes Domani <ssbssa@yahoo.de>
13496
13497 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13498 (windows_init_abi): Set and use windows_so_ops.
13499
7b973adc
SDJ
135002020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13501
13502 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13503 when verifying if dealing with a convenience variable.
13504
bb7b70ab
LM
135052020-03-03 Luis Machado <luis.machado@linaro.org>
13506
13507 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13508
9822cb57
SM
135092020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13510
13511 * infrun.c (gdbarch_supports_displaced_stepping): New.
13512 (use_displaced_stepping): Break up conditions in smaller pieces.
13513 Use gdbarch_supports_displaced_stepping.
13514 (displaced_step_prepare_throw): Use
13515 gdbarch_supports_displaced_stepping.
13516
63e163f2
AB
135172020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13518
13519 * NEWS: Mention new behaviour of the history filename.
13520 * top.c (write_history_p): Add comment.
13521 (show_write_history_p): Add header comment, give a different
13522 message when history writing is on, but the history filename is
13523 empty.
13524 (history_filename): Add comment.
13525 (history_filename_empty): New function.
13526 (show_history_filename): Add header comment, give a different
13527 message when the filename is empty.
13528 (init_history): Compare history_filename against nullptr, and only
13529 read history if the filename is not empty.
13530 (set_history_filename): Add header comment, and only make
13531 non-empty filenames absolute.
13532 (init_main): Make the filename argument to 'set history filename'
13533 optional.
13534
81b86b97
CB
135352020-03-02 Christian Biesinger <cbiesinger@google.com>
13536
13537 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13538 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13539 (fetch_fp_register): Update.
13540 (fetch_fp_regs): Update.
13541 (store_fp_register): Update.
13542 (store_fp_regs): Update.
13543 (arm_netbsd_nat_target::read_description): New function.
13544 (fetch_elfcore_registers): Update.
13545
24ed6739
AB
135462020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13547
13548 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13549 general_thread if the stop reply is missing a thread-id.
13550 (remote_target::process_stop_reply): Use the first non-exited
13551 thread if the target didn't pass a thread-id.
13552 * infrun.c (do_target_wait): Move call to
13553 switch_to_inferior_no_thread to ....
13554 (do_target_wait_1): ... here.
13555
a84bb2a0
JT
135562020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13557
13558 * debuginfod-support.c: Include defs.h first.
13559
658dadf0
TV
135602020-02-28 Tom de Vries <tdevries@suse.de>
13561
13562 * symfile.c (set_initial_language): Use default language for lookup.
13563
4ebe4877
SM
135642020-02-28 Simon Marchi <simon.marchi@efficios.com>
13565
13566 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13567 reader variable, pass `this` to read_cutu_die_from_dwo.
13568
e5da1139
AM
135692020-02-27 Aaron Merey <amerey@redhat.com>
13570
13571 * source.c (open_source_file): Check for nullptr when computing
13572 srcpath.
13573
317f7127
TT
135742020-02-27 Tom Tromey <tromey@adacore.com>
13575
13576 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13577 member.
13578 (dwarf2_add_field): Don't update nfields.
13579 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13580
3104d9ee
AB
135812020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13582
13583 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13584 abs.
13585
b83470bf
TT
135862020-02-26 Tom Tromey <tom@tromey.com>
13587
13588 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13589 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13590 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13591 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13592 per_cu_data.
13593
edfe0a0c
TT
135942020-02-26 Tom Tromey <tom@tromey.com>
13595
13596 * dwarf2/index-write.c (psym_index_map): Change type.
13597 (add_address_entry_worker, write_one_signatured_type)
13598 (recursively_count_psymbols, recursively_write_psymbols)
13599 (class debug_names, psyms_seen_size, write_gdbindex)
13600 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13601
0d79cdc4
AM
136022020-02-26 Aaron Merey <amerey@redhat.com>
13603
13604 * Makefile.in: Handle optional debuginfod support.
13605 * NEWS: Update.
13606 * README: Add --with-debuginfod summary.
13607 * config.in: Regenerate.
13608 * configure: Regenerate.
13609 * configure.ac: Handle optional debuginfod support.
13610 * debuginfod-support.c: debuginfod helper functions.
13611 * debuginfod-support.h: Ditto.
13612 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13613 summary.
13614 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13615 when a dwz file cannot be found.
13616 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13617 debuginfo file cannot be found.
13618 * source.c (open_source_file): Query debuginfod servers when a
13619 source file cannot be found.
13620 * top.c (print_gdb_configuration): Include
13621 --{with,without}-debuginfod in the output.
13622
b65ce565
JG
136232020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13624
13625 * thread.c (thr_try_catch_cmd): Print thread name.
13626
d4c9a4f8
SM
136272020-02-26 Simon Marchi <simon.marchi@efficios.com>
13628
13629 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13630 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13631 dwarf2_fetch_die_type_sect_off): Move to...
13632 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13633 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13634 dwarf2_fetch_die_type_sect_off): ... here.
13635 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13636 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13637 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13638
0dce4280
TV
136392020-02-26 Tom de Vries <tdevries@suse.de>
13640
13641 PR gdb/25603
13642 * symfile.c (set_initial_language): Exit-early if
13643 language_mode == language_mode_manual.
13644
450a1bfc
SM
136452020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13646
13647 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13648 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13649 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13650
9e80cfa1
AB
136512020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13652
13653 * gdbtypes.c (create_array_type_with_stride): Handle negative
13654 array strides.
13655 * valarith.c (value_subscripted_rvalue): Likewise.
13656
09624f1f
LM
136572020-02-25 Luis Machado <luis.machado@linaro.org>
13658
13659 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13660
8cb5117c
SM
136612020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13662
13663 * loc.h (dwarf2_get_die_type): Move to...
13664 * read.h (dwarf2_get_die_type): ... here.
13665 * read.c (dwarf2_get_die_type): Move doc to header.
13666
c325c44e
JB
136672020-02-25 Joel Brobecker <brobecker@adacore.com>
13668
13669 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13670 'gnulib/Makefile.in' to the list.
13671
4ac93832
TT
136722020-02-24 Tom Tromey <tom@tromey.com>
13673
13674 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13675 Remove.
13676 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13677 XOBNEWVEC.
13678
197400e8
TT
136792020-02-24 Tom Tromey <tom@tromey.com>
13680
13681 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13682 New method.
13683 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13684 (dw2_do_instantiate_symtab, dw2_get_file_names)
13685 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13686
76935768
TT
136872020-02-24 Tom Tromey <tom@tromey.com>
13688
13689 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13690 make_scoped_restore.
13691 (dwarf2_psymtab::read_symtab): Don't clear
13692 reading_partial_symbols.
13693
a88ef40d
TV
136942020-02-24 Tom de Vries <tdevries@suse.de>
13695
13696 PR gdb/25592
13697 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13698
c9af6521
TV
136992020-02-24 Tom de Vries <tdevries@suse.de>
13700
13701 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13702 commands layout next/prev/regs.
13703
5707a07a
TT
137042020-02-22 Tom Tromey <tom@tromey.com>
13705
13706 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13707 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13708
3b0fb49e
TT
137092020-02-22 Tom Tromey <tom@tromey.com>
13710
13711 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13712
283be8bf
TT
137132020-02-22 Tom Tromey <tom@tromey.com>
13714
13715 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13716 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13717 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13718 * tui/tui.c (_initialize_tui): Add usage text.
13719
ca793b96
TT
137202020-02-22 Tom Tromey <tom@tromey.com>
13721
13722 * tui/tui-win.c (tui_set_focus_command)
13723 (tui_set_win_height_command): Use error_no_arg.
13724 (_initialize_tui_win): Update help text.
13725 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13726
432b5c40
TT
137272020-02-22 Tom Tromey <tom@tromey.com>
13728
13729 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13730 * tui/tui-disasm.h (struct tui_disasm_window)
13731 <display_start_addr>: Declare.
13732 * tui/tui-source.h (struct tui_source_window)
13733 <display_start_addr>: Declare.
13734 * tui/tui-winsource.h (struct tui_source_window_base)
13735 <show_source_line, display_start_addr>: New methods.
13736 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13737 Rename and move to protected section.
13738 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13739 (tui_source_window_base::do_erase_source_content): Update.
13740 (tui_source_window_base::show_source_line): Now a method.
13741 (tui_source_window_base::show_source_content)
13742 (tui_source_window_base::tui_source_window_base)
13743 (tui_source_window_base::rerender)
13744 (tui_source_window_base::refill)
13745 (tui_source_window_base::do_scroll_horizontal)
13746 (tui_source_window_base::set_is_exec_point_at)
13747 (tui_source_window_base::update_breakpoint_info)
13748 (tui_source_window_base::update_exec_info): Update.
13749 * tui/tui-source.c (tui_source_window::set_contents)
13750 (tui_source_window::showing_source_p)
13751 (tui_source_window::do_scroll_vertical)
13752 (tui_source_window::location_matches_p)
13753 (tui_source_window::line_is_displayed): Update.
13754 (tui_source_window::display_start_addr): New method.
13755 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13756 (tui_disasm_window::do_scroll_vertical)
13757 (tui_disasm_window::location_matches_p): Update.
13758 (tui_disasm_window::display_start_addr): New method.
13759
01b1af32
TT
137602020-02-22 Tom Tromey <tom@tromey.com>
13761
13762 * NEWS: Add entry for gdb.register_window_type.
13763 * tui/tui-layout.h (window_factory): New typedef.
13764 (tui_register_window): Declare.
13765 * tui/tui-layout.c (saved_tui_windows): New global.
13766 (tui_apply_current_layout): Use it.
13767 (tui_register_window): New function.
13768 * python/python.c (do_start_initialization): Call
13769 gdbpy_initialize_tui.
13770 (python_GdbMethods): Add "register_window_type" function.
13771 * python/python-internal.h (gdbpy_register_tui_window)
13772 (gdbpy_initialize_tui): Declare.
13773 * python/py-tui.c: New file.
13774 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13775
fc96d20b
TT
137762020-02-22 Tom Tromey <tom@tromey.com>
13777
13778 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13779
935c78c0
TT
137802020-02-22 Tom Tromey <tom@tromey.com>
13781
13782 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13783 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13784 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13785 (tui_set_win_focus_to): Move from tui-win.c.
13786
0240c8f1
TT
137872020-02-22 Tom Tromey <tom@tromey.com>
13788
13789 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13790 functions.
13791 (known_window_types): New global.
13792 (tui_get_window_by_name): Reimplement.
13793 (initialize_known_windows): New function.
13794 (validate_window_name): Rewrite.
13795 (_initialize_tui_layout): Call initialize_known_windows.
13796
fdb01f0c
TT
137972020-02-22 Tom Tromey <tom@tromey.com>
13798
13799 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13800 Remove constants.
13801 * tui/tui-winsource.h (struct tui_source_window_base)
13802 <tui_source_window_base>: Remove parameter.
13803 * tui/tui-winsource.c
13804 (tui_source_window_base::tui_source_window_base): Remove
13805 parameter.
13806 (tui_source_window_base::refill): Update.
13807 * tui/tui-stack.h (struct tui_locator_window)
13808 <tui_locator_window>: Update.
13809 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13810 Default the constructor.
13811 * tui/tui-regs.h (struct tui_data_item_window)
13812 <tui_data_item_window>: Default the constructor.
13813 (struct tui_data_window) <tui_data_window>: Likewise.
13814 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13815 Default the constructor.
13816 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13817 Default the constructor.
13818 <type>: Remove.
13819 (struct tui_win_info) <tui_win_info>: Default the constructor.
13820 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13821 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13822 Default the constructor.
13823
865a5aec
TT
138242020-02-22 Tom Tromey <tom@tromey.com>
13825
13826 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13827 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13828 * tui/tui-win.c (tui_resize_all): Don't call
13829 tui_delete_invisible_windows.
13830 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13831 done.
13832 (tui_set_layout): Update.
13833 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13834 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13835 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13836
e098d18c
TT
138372020-02-22 Tom Tromey <tom@tromey.com>
13838
13839 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13840 correctly.
13841
eb9c8874
TT
138422020-02-22 Tom Tromey <tom@tromey.com>
13843
13844 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13845
7eed1a8e
TT
138462020-02-22 Tom Tromey <tom@tromey.com>
13847
13848 * tui/tui-winsource.h (struct tui_source_window_iterator)
13849 <inner_iterator>: New etytypedef.
13850 <tui_source_window_iterator>: Take "end" parameter.
13851 <tui_source_window_iterator>: Take iterator.
13852 <operator*, advance>: Update.
13853 <m_iter>: Change type.
13854 <m_end>: New field.
13855 (struct tui_source_windows) <begin, end>: Update.
13856 * tui/tui-layout.c (tui_windows): New global.
13857 (tui_apply_current_layout): Clear tui_windows.
13858 (tui_layout_window::apply): Update tui_windows.
13859 * tui/tui-data.h (tui_windows): Declare.
13860 (all_tui_windows): Now inline function.
13861 (class tui_window_iterator, struct all_tui_windows): Remove.
13862
7c043ba6
TT
138632020-02-22 Tom Tromey <tom@tromey.com>
13864
13865 PR tui/17850:
13866 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13867 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13868 "height" argument.
13869 (class tui_layout_window) <get_sizes>: Likewise.
13870 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13871 argument.
13872 <get_sizes>: Add "height" argument.
13873 <m_vertical>: New field.
13874 * tui/tui-layout.c (tui_layout_split::clone): Update.
13875 (tui_layout_split::get_sizes): Add "height" argument.
13876 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13877 (tui_new_layout_command): Parse "-horizontal".
13878 (_initialize_tui_layout): Update help string.
13879 (tui_layout_split::specification): Add "-horizontal" when needed.
13880 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13881 argument.
13882 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13883 New methods.
13884
6bc56648
TT
138852020-02-22 Tom Tromey <tom@tromey.com>
13886
13887 * tui/tui-layout.h (enum tui_adjust_result): New.
13888 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13889 (class tui_layout_window) <adjust_size>: Return
13890 tui_adjust_result. Rewrite.
13891 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13892 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13893
c22fef7e
TT
138942020-02-22 Tom Tromey <tom@tromey.com>
13895
13896 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13897 parameter and return types.
13898 (class tui_layout_base) <specification>: Add "depth".
13899 (class tui_layout_window) <specification>: Add "depth".
13900 (class tui_layout_split) <specification>: Add "depth".
13901 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13902 and return types.
13903 (tui_new_layout_command): Parse sub-layouts.
13904 (_initialize_tui_layout): Update help string.
13905 (tui_layout_window::specification): Add "depth".
13906 (add_layout_command): Update.
13907
ee325b61
TT
139082020-02-22 Tom Tromey <tom@tromey.com>
13909
13910 * NEWS: Add "tui new-layout" item.
13911 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13912 Add new-layout command to help text.
13913 (validate_window_name): New function.
13914 (tui_new_layout_command): New function.
13915 (_initialize_tui_layout): Register "new-layout".
13916 (tui_layout_window::specification): New method.
13917 (tui_layout_window::specification): New method.
13918 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13919 method.
13920 (class tui_layout_window) <specification>: New method.
13921 (class tui_layout_split) <specification>: New method.
13922
416eb92d
TT
139232020-02-22 Tom Tromey <tom@tromey.com>
13924
13925 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13926 * tui/tui-win.c (window_name_completer): Update comment.
13927 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13928 Declare method.
13929 (class tui_layout_window) <replace_window>: Likewise.
13930 (class tui_layout_split) <replace_window>: Likewise.
13931 (tui_set_layout): Don't declare.
13932 (tui_set_initial_layout): Declare function.
13933 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13934 (asm_regs_layout): New globals.
13935 (tui_current_layout, show_layout): Remove.
13936 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13937 (find_layout, tui_apply_layout): New function.
13938 (layout_completer): Remove.
13939 (tui_next_layout): Reimplement.
13940 (tui_next_layout_command): New function.
13941 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13942 (tui_regs_layout): Reimplement.
13943 (tui_regs_layout_command): New function.
13944 (extract_display_start_addr): Rewrite.
13945 (next_layout, prev_layout): Remove.
13946 (tui_layout_window::replace_window): New method.
13947 (tui_layout_split::replace_window): New method.
13948 (destroy_layout): New function.
13949 (layout_list): New global.
13950 (add_layout_command): New function.
13951 (initialize_layouts): Update.
13952 (tui_layout_command): New function.
13953 (_initialize_tui_layout): Install "layout" commands.
13954 * tui/tui-data.h (enum tui_layout_type): Remove.
13955 (tui_current_layout): Don't declare.
13956
0dbc2fc7
TT
139572020-02-22 Tom Tromey <tom@tromey.com>
13958
13959 * tui/tui-regs.c (tui_reg_layout): Remove.
13960 (tui_reg_command): Use tui_regs_layout.
13961 * tui/tui-layout.h (tui_reg_command): Declare.
13962 * tui/tui-layout.c (tui_reg_command): New function.
13963
5afe342e
TT
139642020-02-22 Tom Tromey <tom@tromey.com>
13965
13966 * tui/tui.c (tui_rl_delete_other_windows): Call
13967 tui_remove_some_windows.
13968 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13969 Declare method.
13970 (class tui_layout_window) <remove_windows>: New method.
13971 (class tui_layout_split) <remove_windows>: Declare.
13972 (tui_remove_some_windows): Declare.
13973 * tui/tui-layout.c (tui_remove_some_windows): New function.
13974 (tui_layout_split::remove_windows): New method.
13975
427326a8
TT
139762020-02-22 Tom Tromey <tom@tromey.com>
13977
13978 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13979 * tui/tui-layout.h (tui_next_layout): Declare.
13980 * tui/tui-layout.c (tui_next_layout): New function.
13981
3fe12b6d
TT
139822020-02-22 Tom Tromey <tom@tromey.com>
13983
13984 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13985 correct coordinates.
13986
59b8b5d2
TT
139872020-02-22 Tom Tromey <tom@tromey.com>
13988
13989 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13990 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13991 DATA_WIN case.
13992
2a3d458b
TT
139932020-02-22 Tom Tromey <tom@tromey.com>
13994
13995 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13996 TUI_DISASM_WIN, not tui_win_list.
13997
3f0cbb04
TT
139982020-02-22 Tom Tromey <tom@tromey.com>
13999
14000 * valprint.c (generic_val_print_enum_1)
14001 (val_print_type_code_flags): Style member names.
14002 * rust-lang.c (val_print_struct, rust_print_enum)
14003 (rust_print_struct_def, rust_internal_print_type): Style member
14004 names.
14005 * p-valprint.c (pascal_object_print_value_fields): Style member
14006 names. Only call fprintf_symbol_filtered for static members.
14007 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14008 * f-valprint.c (f_val_print): Style member names.
14009 * f-typeprint.c (f_type_print_base): Style member names.
14010 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14011 call fprintf_symbol_filtered for static members.
14012 (cp_print_class_member): Style member names.
14013 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14014 member names.
14015 * ada-valprint.c (ada_print_scalar): Style enum names.
14016 (ada_val_print_enum): Likewise.
14017 * ada-typeprint.c (print_enum_type): Style enum names.
14018
d4d947ae
TT
140192020-02-21 Tom Tromey <tom@tromey.com>
14020
14021 * psympriv.h (struct partial_symtab): Update comment.
14022
e94e944b
TT
140232020-02-21 Tom Tromey <tromey@adacore.com>
14024
14025 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14026 type is CORE_ADDR.
14027
1eb73179
TV
140282020-02-21 Tom de Vries <tdevries@suse.de>
14029
14030 PR gdb/25534
14031 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14032 if dependencies[i]->user != NULL.
14033
4f180d53
AT
140342020-02-21 Ali Tamur <tamur@google.com>
14035
14036 * dwarf2/read.c (dwarf2_name): Add null check.
14037
22b6cd70
TT
140382020-02-20 Tom Tromey <tom@tromey.com>
14039
14040 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14041 ">=", in binary search.
14042 (dwarf2_find_containing_comp_unit): New overload.
14043 (run_test): New self-test.
14044 (_initialize_dwarf2_read): Register new test.
14045
bd0cf5a6
NC
140462020-02-20 Nelson Chu <nelson.chu@sifive.com>
14047
14048 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14049 * riscv-tdep.h: Likewise.
14050 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14051 rv32-only CSR.
14052 * features/riscv/64bit-csr.xml: Regenerated.
14053
3f702acd
SDJ
140542020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14055 Tom Tromey <tom@tromey.com>
14056
14057 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14058 of 'fputc_unfiltered'.
14059 (putchar_unfiltered): Call 'fputc_unfiltered'.
14060 (fputc_unfiltered): Call 'fputs_unfiltered'.
14061
d13c7322
AB
140622020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14063
14064 * config.in: Regenerate.
14065 * configure: Regenerate.
14066 * configure.ac: Add --with-python-libdir option.
14067 * main.c: Use WITH_PYTHON_LIBDIR.
14068
869d8950
TT
140692020-02-19 Tom Tromey <tom@tromey.com>
14070
14071 * symtab.c (general_symbol_info::compute_and_set_names): Use
14072 obstack_strndup. Simplify call to symbol_set_demangled_name.
14073
298e9637
SM
140742020-02-19 Simon Marchi <simon.marchi@efficios.com>
14075
14076 * dwarf2/read.c (allocate_signatured_type_table,
14077 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14078 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14079 Remove objfile parameter, update all callers.
14080
08410482
DE
140812020-02-19 Doug Evans <dje@google.com>
14082
14083 PR rust/25535
14084 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14085 rust_enum_variant calculation.
14086
dfdeeca1
TT
140872020-02-19 Tom Tromey <tromey@adacore.com>
14088
14089 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14090
2ef5453b
TT
140912020-02-19 Tom Tromey <tromey@adacore.com>
14092
14093 * ada-lang.c (cache_symbol): Use obstack_strdup.
14094
9f1528a1
AB
140952020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14096
14097 * configure: Regenerate.
14098
d3c22fa8
TT
140992020-02-19 Tom Tromey <tromey@adacore.com>
14100
14101 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14102 NULL check.
14103
bf84f706
MR
141042020-02-19 Maciej W. Rozycki <macro@wdc.com>
14105
14106 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14107
d1c9b20f
AB
141082020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14109
14110 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14111 if GDBSERVER is not defined.
14112 (riscv_tdesc_cache): Likewise, also store const target_desc.
14113 (STATIC_IN_GDB): Define.
14114 (riscv_create_target_description): Update declaration with
14115 STATIC_IN_GDB.
14116 (riscv_lookup_target_description): New function, only define if
14117 GDBSERVER is not defined.
14118 * arch/riscv.h (riscv_create_target_description): Declare only
14119 when GDBSERVER is defined.
14120 (riscv_lookup_target_description): New declaration when GDBSERVER
14121 is not defined.
14122 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14123 (riscv_linux_read_features): ...this, and return
14124 riscv_gdbarch_features instead of target_desc.
14125 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14126 (riscv_linux_read_description): Rename to...
14127 (riscv_linux_read_features): ...this.
14128 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14129 Update to use riscv_gdbarch_features and
14130 riscv_lookup_target_description.
14131 * riscv-tdep.c (riscv_find_default_target_description): Use
14132 riscv_lookup_target_description instead of
14133 riscv_create_target_description.
14134
373d7ac0
SM
141352020-02-18 Simon Marchi <simon.marchi@efficios.com>
14136
14137 * valprint.c (generic_val_print_enum_1): When printing a flag
14138 enum with value 0 and there is no enumerator with value 0, print
14139 just "0" instead of "(unknown: 0x0)".
14140
b29a2df0
SM
141412020-02-18 Simon Marchi <simon.marchi@efficios.com>
14142
14143 * valprint.c (generic_val_print_enum_1): Print unknown part of
14144 flag enum in hex.
14145
6740f0cc
SM
141462020-02-18 Simon Marchi <simon.marchi@efficios.com>
14147
14148 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14149 flag enums to contain duplicate enumerators.
14150 * valprint.c (generic_val_print_enum_1): Update comment.
14151
edd45eb0
SM
141522020-02-18 Simon Marchi <simon.marchi@efficios.com>
14153
14154 * dwarf2/read.c: Include "count-one-bits.h".
14155 (update_enumeration_type_from_children): If an enumerator has
14156 multiple bits set, don't treat the enumeration as a "flag enum".
14157 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14158 of flag enums have 0 or 1 bit set.
14159
6d0cf446
BE
141602020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14161
14162 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14163 conversion.
14164 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14165 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14166 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14167 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14168 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14169
7001c1b7
SM
141702020-02-18 Simon Marchi <simon.marchi@efficios.com>
14171
14172 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14173
fdb61c6c
SM
141742020-02-14 Simon Marchi <simon.marchi@efficios.com>
14175
14176 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14177 displaced_step_closure_up.
14178 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14179 (struct displaced_step_closure_up):
14180 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14181 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14182 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14183 Likewise.
14184 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14185 * gdbarch.c, gdbarch.h: Re-generate.
14186 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14187 displaced_step_closure_up.
14188 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14189 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14190 * infrun.h (displaced_step_closure_up): New type alias.
14191 (struct displaced_step_inferior_state) <step_closure>: Change
14192 type to displaced_step_closure_up.
14193 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14194 displaced_step_closure_up.
14195 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14196
a4a38eb4
TT
141972020-02-14 Tom Tromey <tom@tromey.com>
14198
14199 * minidebug.c (gnu_debug_key): New global.
14200 (find_separate_debug_file_in_section): Use it.
14201
e8217e61
SM
142022020-02-14 Simon Marchi <simon.marchi@efficios.com>
14203
14204 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14205 std::unique_ptr.
14206 * gdbarch.c: Re-generate.
14207 * gdbarch.h: Re-generate.
14208 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14209 change.
14210 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14211 type to std::unique_ptr.
14212 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14213 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14214 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14215 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14216 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14217 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14218 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14219 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14220 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14221
d8d83535
SM
142222020-02-14 Simon Marchi <simon.marchi@efficios.com>
14223
14224 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14225 std::unique_ptr.
14226 (displaced_step_clear): Rename to...
14227 (displaced_step_reset): ... this. Just call displaced->reset ().
14228 (displaced_step_clear_cleanup): Rename to...
14229 (displaced_step_reset_cleanup): ... this.
14230 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14231 (displaced_step_fixup): Likewise.
14232 (resume_1): Likewise.
14233 (handle_inferior_event): Restore child's memory before calling
14234 displaced_step_fixup on the parent.
14235 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14236 to std::unique_ptr.
14237 <step_closure>: Change type to std::unique_ptr.
14238
5f661e03
SM
142392020-02-14 Simon Marchi <simon.marchi@efficios.com>
14240
14241 * arm-tdep.c: Include count-one-bits.h.
14242 (cleanup_block_store_pc): Use count_one_bits.
14243 (cleanup_block_load_pc): Use count_one_bits.
14244 (arm_copy_block_xfer): Use count_one_bits.
14245 (thumb2_copy_block_xfer): Use count_one_bits.
14246 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14247 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14248 (thumb_get_next_pcs_raw): Use count_one_bits.
14249 (arm_get_next_pcs_raw): Use count_one_bits_l.
14250 * arch/arm.c (bitcount): Remove.
14251 * arch/arm.h (bitcount): Remove.
14252
8084e579
TT
142532020-02-14 Tom Tromey <tromey@adacore.com>
14254
14255 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14256 Update.
14257 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14258 * dwarf2/loc.c (call_site_find_chain_1): Return
14259 unique_xmalloc_ptr.
14260 (call_site_find_chain): Likewise.
14261
258bf0ee
RB
142622020-02-14 Richard Biener <rguenther@suse.de>
14263
14264 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14265 on expression with division operators.
14266
f98a8458
AKS
142672020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14268
14269 * MAINTAINERS (Write After Approval): Adding myself.
14270
d1437c0e
TT
142712020-02-12 Tom Tromey <tom@tromey.com>
14272
14273 * event-loop.c (event_data, gdb_event, event_handler_func):
14274 Remove.
14275
3d4560f7
TT
142762020-02-12 Tom Tromey <tom@tromey.com>
14277
14278 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14279 (dwarf2_frame_objfile_data): Add comment.
14280 (find_comp_unit, set_comp_unit): New functions.
14281 (dwarf2_frame_find_fde): Use find_comp_unit.
14282 (dwarf2_build_frame_info): Use set_comp_unit.
14283
21982304
TT
142842020-02-12 Tom Tromey <tom@tromey.com>
14285
14286 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14287 (comp_unit): Don't initialize objfile.
14288 (execute_cfa_program): Add text_offset parameter.
14289 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14290 (dwarf2_frame_cache): Update.
14291 (dwarf2_build_frame_info): Don't set "objfile" member.
14292
4debb237
TT
142932020-02-12 Tom Tromey <tom@tromey.com>
14294
14295 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14296 (decode_frame_entry): Likewise.
14297 (dwarf2_build_frame_info): Update.
14298
0d404d44
TT
142992020-02-12 Tom Tromey <tom@tromey.com>
14300
14301 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14302 (decode_frame_entry_1): Use the comp_unit obstack.
14303
a7a3ae5c
TT
143042020-02-12 Tom Tromey <tom@tromey.com>
14305
14306 * dwarf2/frame.c (struct comp_unit): Add initializers and
14307 constructor.
14308 (dwarf2_frame_objfile_data): Store a comp_unit.
14309 (dwarf2_frame_find_fde): Update.
14310 (dwarf2_build_frame_info): Use "new".
14311
a9d65418
TT
143122020-02-12 Tom Tromey <tom@tromey.com>
14313
14314 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14315 (dwarf2_fde_table): Typedef for std::vector.
14316 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14317 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14318 (decode_frame_entry): Update.
14319 (dwarf2_build_frame_info): Use "new".
14320
7559c217
CB
143212020-02-12 Christian Biesinger <cbiesinger@google.com>
14322
14323 * arm-tdep.c (arm_gdbarch_init): Update.
14324 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14325 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14326 have_neon, is_m>: Change to bool.
14327
aeefc73c
CB
143282020-02-12 Christian Biesinger <cbiesinger@google.com>
14329
14330 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14331
d27b8e5f
TT
143322020-02-12 Tom Tromey <tom@tromey.com>
14333
14334 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14335
cd5900f3
HD
143362020-02-12 Hannes Domani <ssbssa@yahoo.de>
14337
14338 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14339 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14340
f056b22b
TT
143412020-02-11 Tom Tromey <tom@tromey.com>
14342
14343 * psymtab.h: Update comment.
14344
f92ff6b5
TT
143452020-02-11 Tom Tromey <tom@tromey.com>
14346
14347 * gdb_obstack.h (struct auto_obstack): Use
14348 DISABLE_COPY_AND_ASSIGN.
14349
3fd6912b
TT
143502020-02-11 Tom Tromey <tom@tromey.com>
14351
14352 * dwarf2/frame.h (struct objfile): Don't forward declare.
14353
69ed9b74
CB
143542020-02-11 Christian Biesinger <cbiesinger@google.com>
14355
14356 * cris-tdep.c (cris_supply_gregset): Change signature to match
14357 what struct regset expects.
14358 (cris_regset): New struct.
14359 (fetch_core_registers): Remove.
14360 (cris_iterate_over_regset_sections): New function.
14361 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14362 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14363
bda874f6
CB
143642020-02-11 Christian Biesinger <cbiesinger@google.com>
14365
14366 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14367 registers.
14368
754e1564
CB
143692020-02-11 Christian Biesinger <cbiesinger@google.com>
14370
14371 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14372
8ddd8e0e
SM
143732020-02-11 Simon Marchi <simon.marchi@efficios.com>
14374
14375 * configure: Re-generate.
14376
898e7f60
SM
143772020-02-11 Simon Marchi <simon.marchi@efficios.com>
14378
14379 * configure: Re-generate.
14380
58df732b
SM
143812020-02-11 Simon Marchi <simon.marchi@efficios.com>
14382
14383 * acinclude: Update warning.m4 path.
14384 * warning.m4: Move to gdbsupport.
14385
da5bd37e
TT
143862020-02-11 Tom Tromey <tromey@adacore.com>
14387
14388 * remote.c (remote_console_output): Update.
14389 * printcmd.c (printf_command): Update.
14390 * event-loop.c (gdb_wait_for_event): Update.
14391 * linux-nat.c (sigchld_handler): Update.
14392 * remote-sim.c (gdb_os_write_stdout): Update.
14393 (gdb_os_flush_stdout): Update.
14394 (gdb_os_flush_stderr): Update.
14395 (gdb_os_write_stderr): Update.
14396 * exceptions.c (print_exception): Update.
14397 * remote-fileio.c (remote_fileio_func_read): Update.
14398 (remote_fileio_func_write): Update.
14399 * tui/tui.c (tui_enable): Update.
14400 * tui/tui-interp.c (tui_interp::init): Update.
14401 * utils.c (init_page_info): Update.
14402 (putchar_unfiltered, fputc_unfiltered): Update.
14403 (gdb_flush): Update.
14404 (emit_style_escape): Update.
14405 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14406 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14407 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14408 (stderr_file::write): Update.
14409 (stderr_file::puts): Update.
14410 * ui-file.h (ui_file_isatty, ui_file_write)
14411 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14412 (ui_file_puts): Don't declare.
14413
85f0dd3c
TV
144142020-02-10 Tom de Vries <tdevries@suse.de>
14415
14416 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14417 sentinel to char *.
14418
2e927613
TV
144192020-02-09 Tom de Vries <tdevries@suse.de>
14420
14421 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14422 filename if it matches "<artificial>".
14423
6bafc845
HD
144242020-02-09 Hannes Domani <ssbssa@yahoo.de>
14425
14426 * windows-tdep.c (struct enum_value_name): New struct.
14427 (create_enum): New function.
14428 (windows_get_siginfo_type): Create and use enum types.
14429
7928d571
HD
144302020-02-09 Hannes Domani <ssbssa@yahoo.de>
14431
14432 * NEWS: Mention $_siginfo support for Windows.
14433 * windows-nat.c (handle_exception): Set siginfo_er.
14434 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14435 (windows_xfer_siginfo): New function.
14436 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14437 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14438 (init_windows_gdbarch_data): New function.
14439 (get_windows_gdbarch_data): New function.
14440 (windows_get_siginfo_type): New function.
14441 (windows_init_abi): Register windows_get_siginfo_type.
14442 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14443
6751ebae
TT
144442020-02-08 Tom Tromey <tom@tromey.com>
14445
14446 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14447 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14448 <keep>: Declare method.
14449 <m_keep>: Remove member.
14450 <~cutu_reader>: Remove.
14451 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14452 (cutu_reader::cutu_reader): Update.
14453 (cutu_reader::keep): Rename from ~cutu_reader.
14454 (process_psymtab_comp_unit, build_type_psymtabs_1)
14455 (process_skeletonless_type_unit, load_partial_comp_unit)
14456 (load_full_comp_unit, dwarf2_read_addr_index)
14457 (read_signatured_type): Update.
14458
135f5437
TT
144592020-02-08 Tom Tromey <tom@tromey.com>
14460
14461 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14462 "want_partial_unit" parameter.
14463 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14464 Inline check for DW_TAG_partial_unit.
14465 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14466
9f66ff1c
TT
144672020-02-08 Tom Tromey <tom@tromey.com>
14468
14469 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14470 read.c.
14471 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14472 read.c.
14473
c8a7a66f
TT
144742020-02-08 Tom Tromey <tom@tromey.com>
14475
14476 * dwarf2/read.c (read_address): Move to comp-unit.c.
14477 (dwarf2_rnglists_process, dwarf2_ranges_process)
14478 (read_attribute_value, dwarf_decode_lines_1)
14479 (var_decode_location, decode_locdesc): Update.
14480 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14481 read.c. Remove "cu" parameter.
14482 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14483 method.
14484
8266302d
TT
144852020-02-08 Tom Tromey <tom@tromey.com>
14486
14487 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14488 (read_indirect_line_string): Update.
14489 * dwarf2/comp-unit.c (read_offset): Remove.
14490 (read_comp_unit_head): Update.
14491 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14492 method.
14493 (read_offset): Don't declare.
14494
4057dfde
TT
144952020-02-08 Tom Tromey <tom@tromey.com>
14496
14497 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14498 * dwarf2/read.c (struct comp_unit_head): Move to
14499 dwarf2/comp-unit.h.
14500 (enum class rcuh_kind): Move to comp-unit.h.
14501 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14502 (read_comp_unit_head, error_check_comp_unit_head)
14503 (read_and_check_comp_unit_head): Move to comp-unit.c.
14504 (read_offset, dwarf_unit_type_name): Likewise.
14505 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14506 (cutu_reader::cutu_reader, read_call_site_scope)
14507 (find_partial_die, follow_die_offset): Update.
14508 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14509
24aa364d
TT
145102020-02-08 Tom Tromey <tom@tromey.com>
14511
14512 * dwarf2/read.c (read_offset_1): Move to leb.c.
14513 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14514 (dwarf_decode_macro_bytes): Update.
14515 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14516 * dwarf2/leb.h (read_offset): Declare.
14517
2c7d5afc
TT
145182020-02-08 Tom Tromey <tom@tromey.com>
14519
14520 * dwarf2/read.c (dwarf2_section_size): Remove.
14521 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14522 Update.
14523 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14524
4075cb26
TT
145252020-02-08 Tom Tromey <tom@tromey.com>
14526
14527 * dwarf2/read.c (read_initial_length): Move to leb.c.
14528 * dwarf2/leb.h (read_initial_length): Declare.
14529 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14530 handle_nonstd parameter.
14531 * dwarf2/frame.c (read_initial_length): Remove.
14532 (decode_frame_entry_1): Update.
14533
09ba997f
TT
145342020-02-08 Tom Tromey <tom@tromey.com>
14535
14536 * dwarf2/loc.c (dwarf2_find_location_expression)
14537 (dwarf_evaluate_loc_desc::get_tls_address)
14538 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14539 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14540 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14541 (dwarf2_compile_property_to_c)
14542 (dwarf2_loc_desc_get_symbol_read_needs)
14543 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14544 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14545 (loclist_describe_location, loclist_tracepoint_var_ref)
14546 (loclist_generate_c_location): Update.
14547 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14548 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14549 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14550 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14551 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14552 (dwarf2_per_cu_data::addr_size)
14553 (dwarf2_per_cu_data::ref_addr_size)
14554 (dwarf2_per_cu_data::text_offset)
14555 (dwarf2_per_cu_data::addr_type): Now methods.
14556 (per_cu_header_read_in): Make per_cu "const".
14557 (dwarf2_version): Remove.
14558 (dwarf2_per_cu_data::int_type): Now a method.
14559 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14560 (set_die_type, read_array_type, read_subrange_index_type)
14561 (read_tag_string_type, read_subrange_type): Update.
14562 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14563 offset_size, ref_addr_size, text_offset, addr_type, version,
14564 objfile, int_type, addr_sized_int_type>: Declare methods.
14565
96c738c0
TT
145662020-02-08 Tom Tromey <tom@tromey.com>
14567
14568 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14569 Move earlier.
14570
8fdd972c
TT
145712020-02-08 Tom Tromey <tom@tromey.com>
14572
14573 * dwarf2/read.h (dwarf_line_debug): Declare.
14574 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14575 * dwarf2/read.c: Move line_header code to new files.
14576 (dwarf_line_debug): No longer static.
14577 * dwarf2/line-header.c: New file.
14578 * dwarf2/line-header.h: New file.
14579
03075812
TT
145802020-02-08 Tom Tromey <tom@tromey.com>
14581
14582 * dwarf2/read.c (struct line_header) <file_full_name,
14583 file_file_name>: Return unique_xmalloc_ptr.
14584 (line_header::file_file_name): Update.
14585 (line_header::file_full_name): Update.
14586 (dw2_get_file_names_reader): Update.
14587 (macro_start_file): Update.
14588
bb822404
TT
145892020-02-08 Tom Tromey <tom@tromey.com>
14590
14591 * dwarf2/read.c (struct line_header) <file_full_name,
14592 file_file_name>: Declare methods.
14593 (dw2_get_file_names_reader): Update.
14594 (file_file_name): Now a method.
14595 (file_full_name): Likewise.
14596 (macro_start_file): Update.
14597
009b64fc
TT
145982020-02-08 Tom Tromey <tom@tromey.com>
14599
14600 * dwarf2/read.c (dwarf_always_disassemble)
14601 (show_dwarf_always_disassemble): Move to loc.c.
14602 (_initialize_dwarf2_read): Move "always-disassemble" registration
14603 to loc.c.
14604 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14605 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14606 static.
14607 (show_dwarf_always_disassemble): Move from read.c.
14608 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14609
5895093f
TT
146102020-02-08 Tom Tromey <tom@tromey.com>
14611
14612 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14613 (create_quick_file_names_table): Return htab_up.
14614 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14615 Update.
14616 * dwarf2/read.h (struct dwarf2_per_objfile)
14617 <quick_file_names_table>: Now htab_up.
14618
b3b32279
TT
146192020-02-08 Tom Tromey <tom@tromey.com>
14620
14621 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14622
1d33d811
TT
146232020-02-08 Tom Tromey <tom@tromey.com>
14624
14625 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14626 Rewrite.
14627 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14628 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14629 (abbrev_table::abbrev_table): No longer inline.
14630 (ABBREV_HASH_SIZE): Remove.
14631 (abbrev_table::m_abbrevs): Now an htab_up.
14632
86de1d91
TT
146332020-02-08 Tom Tromey <tom@tromey.com>
14634
14635 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14636 (cutu_reader): Update.
14637 (build_type_psymtabs_1): Update.
14638 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14639 (abbrev_table::alloc_abbrev): Update.
14640 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14641 (abbrev_table::read): New static method, renamed from
14642 abbrev_table_read_table.
14643 (abbrev_table::alloc_abbrev)
14644 (abbrev_table::add_abbrev): Now private.
14645 (abbrev_table::abbrev_table): Now private.
14646 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14647
0335378b
TT
146482020-02-08 Tom Tromey <tom@tromey.com>
14649
14650 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14651 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14652 htab_up.
14653
48b490f2
TT
146542020-02-08 Tom Tromey <tom@tromey.com>
14655
14656 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14657 htab_up.
14658 (lookup_dwo_unit_in_dwp): Update.
14659 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14660 on obstack.
14661
bc68fb19
TT
146622020-02-08 Tom Tromey <tom@tromey.com>
14663
14664 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14665 obstack.
14666
d15acc42
TT
146672020-02-08 Tom Tromey <tom@tromey.com>
14668
14669 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14670 line_header_hash.
14671 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14672 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14673 Change type to htab_up.
14674
eaa5fa8b
TT
146752020-02-08 Tom Tromey <tom@tromey.com>
14676
14677 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14678 htab_up. Don't allocate on obstack.
14679 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14680 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14681 Change type to htab_up.
14682
b0b6a987
TT
146832020-02-08 Tom Tromey <tom@tromey.com>
14684
14685 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14686 Change type to htab_up.
14687 * dwarf2/read.c (create_signatured_type_table_from_index)
14688 (create_signatured_type_table_from_debug_names)
14689 (create_all_type_units, add_type_unit)
14690 (lookup_dwo_signatured_type, lookup_signatured_type)
14691 (process_skeletonless_type_unit): Update.
14692 (create_debug_type_hash_table, create_debug_types_hash_table):
14693 Change type of types_htab.
14694 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14695 htab_up. Don't allocate on obstack.
14696 (create_cus_hash_table): Change type of cus_htab parameter.
14697 (struct dwo_file) <cus, tus>: Now htab_up.
14698 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14699 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14700 (queue_and_load_all_dwo_tus): Update.
14701 * dwarf2/index-write.c (write_gdbindex): Update.
14702 (write_debug_names): Update.
14703
39856def
TT
147042020-02-08 Tom Tromey <tom@tromey.com>
14705
14706 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14707 dwarf2/read.c. Remove "next" member. Add constructor ntad
14708 destructor.
14709 (struct dwarf2_per_objfile) <queue>: New member.
14710 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14711 dwarf2/read.h.
14712 (dwarf2_queue, dwarf2_queue_tail): Remove.
14713 (class dwarf2_queue_guard): Add parameter to constructor. Use
14714 DISABLE_COPY_AND_ASSIGN.
14715 <m_per_objfile>: New member.
14716 <~dwarf2_queue_guard>: Rewrite.
14717 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14718 Update.
14719 (~dwarf2_queue_item): New.
14720
3e225074
TT
147212020-02-08 Tom Tromey <tom@tromey.com>
14722
14723 * dwarf2/read.c (struct die_info) <has_children>: New member.
14724 (dw2_get_file_names_reader): Remove has_children.
14725 (dw2_get_file_names): Update.
14726 (read_cutu_die_from_dwo): Remove has_children.
14727 (cutu_reader::init_tu_and_read_dwo_dies)
14728 (cutu_reader::cutu_reader): Update.
14729 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14730 Remove has_children.
14731 (build_type_psymtabs_1, process_skeletonless_type_unit)
14732 (load_partial_comp_unit, load_full_comp_unit): Update.
14733 (create_dwo_cu_reader): Remove has_children.
14734 (create_cus_hash_table, read_die_and_children): Update.
14735 (read_full_die_1,read_full_die): Remove has_children.
14736 (read_signatured_type): Update.
14737 (class cutu_reader) <has_children>: Remove.
14738
82ca8957
TT
147392020-02-08 Tom Tromey <tom@tromey.com>
14740
14741 * dwarf2/expr.c: Rename from dwarf2expr.c.
14742 * dwarf2/expr.h: Rename from dwarf2expr.h.
14743 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14744 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14745 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14746 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14747 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14748 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14749 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14750 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14751 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14752 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14753 * dwarf2/loc.c: Rename from dwarf2loc.c.
14754 * dwarf2/loc.h: Rename from dwarf2loc.h.
14755 * dwarf2/read.c: Rename from dwarf2read.c.
14756 * dwarf2/read.h: Rename from dwarf2read.h.
14757 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14758 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14759 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14760 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14761 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14762 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14763 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14764 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14765 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14766 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14767 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14768 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14769 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14770 Update.
14771 * Makefile.in (COMMON_SFILES): Update.
14772 (HFILES_NO_SRCDIR): Update.
14773
9e35d499
TT
147742020-02-08 Tom Tromey <tom@tromey.com>
14775
14776 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14777 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14778
1eba2311
TT
147792020-02-08 Tom Tromey <tom@tromey.com>
14780
14781 * dwarf2read.h (struct die_info): Don't declare.
14782
e41c2da2
TT
147832020-02-08 Tom Tromey <tom@tromey.com>
14784
14785 * dwarf2read.h (die_info_ptr): Remove typedef.
14786
4fc6c0d5
TT
147872020-02-08 Tom Tromey <tom@tromey.com>
14788
14789 * dwarf2read.c (read_call_site_scope)
14790 (handle_data_member_location, dwarf2_add_member_fn)
14791 (mark_common_block_symbol_computed, read_common_block)
14792 (attr_to_dynamic_prop, partial_die_info::read)
14793 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14794 (dwarf2_symbol_mark_computed, set_die_type): Update.
14795 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14796 method.
14797 (attr_form_is_block): Don't declare.
14798 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14799
cd6c91b4
TT
148002020-02-08 Tom Tromey <tom@tromey.com>
14801
14802 * dwarf2read.c (dwarf2_find_base_address, )
14803 (read_call_site_scope, rust_containing_type)
14804 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14805 (handle_data_member_location, dwarf2_add_member_fn)
14806 (get_alignment, read_structure_type, process_structure_scope)
14807 (mark_common_block_symbol_computed, read_common_block)
14808 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14809 (partial_die_info::read, read_attribute_value, new_symbol)
14810 (lookup_die_type, dwarf2_get_ref_die_offset)
14811 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14812 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14813 (dwarf2_symbol_mark_computed): Update.
14814 * dwarf2/attribute.h (struct attribute) <value_as_address,
14815 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14816 methods.
14817 (value_as_address, attr_form_is_section_offset)
14818 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14819 * dwarf2/attribute.c (attribute::value_as_address)
14820 (attribute::form_is_section_offset, attribute::form_is_constant)
14821 (attribute::form_is_ref): Now methods.
14822
162dce55
TT
148232020-02-08 Tom Tromey <tom@tromey.com>
14824
14825 * dwarf2read.c (struct attribute, DW_STRING)
14826 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14827 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14828 (attr_form_is_block, attr_form_is_section_offset)
14829 (attr_form_is_constant, attr_form_is_ref): Move.
14830 * dwarf2/attribute.h: New file.
14831 * dwarf2/attribute.c: New file, from dwarf2read.c.
14832 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14833
3054dd54
TT
148342020-02-08 Tom Tromey <tom@tromey.com>
14835
14836 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14837 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14838 Move.
14839 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14840 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14841 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14842 abbrev.c.
14843 * dwarf2/abbrev.h: New file.
14844 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14845 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14846
96b79293
TT
148472020-02-08 Tom Tromey <tom@tromey.com>
14848
14849 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14850 (dwarf2_section_size, dwarf2_get_section_info)
14851 (create_signatured_type_table_from_debug_names)
14852 (create_addrmap_from_aranges, read_debug_names_from_section)
14853 (get_gdb_index_contents_from_section, read_comp_unit_head)
14854 (error_check_comp_unit_head, read_abbrev_offset)
14855 (create_debug_type_hash_table, init_cu_die_reader)
14856 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14857 (read_comp_units_from_section, create_cus_hash_table)
14858 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14859 (create_dwp_v2_section, dwarf2_rnglists_process)
14860 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14861 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14862 (read_indirect_string_from_dwz, read_addr_index_1)
14863 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14864 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14865 (fill_in_loclist_baton): Update.
14866 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14867 get_containing_section, get_bfd_owner, get_bfd_section,
14868 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14869 (dwarf2_read_section, get_section_name, get_section_file_name)
14870 (get_containing_section, get_section_bfd_owner)
14871 (get_section_bfd_section, get_section_name, get_section_file_name)
14872 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14873 declare.
14874 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14875 (dwarf2_section_info::get_bfd_owner)
14876 (dwarf2_section_info::get_bfd_section)
14877 (dwarf2_section_info::get_name)
14878 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14879 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14880 (dwarf2_section_info::read): Now methods.
14881 * dwarf-index-write.c (class debug_names): Update.
14882
2c86cff9
TT
148832020-02-08 Tom Tromey <tom@tromey.com>
14884
14885 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14886 Move to dwarf2/section.h.
14887 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14888 (get_section_bfd_section, get_section_name)
14889 (get_section_file_name, get_section_id, get_section_flags)
14890 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14891 dwarf2/section.c.
14892 * dwarf2/section.h: New file.
14893 * dwarf2/section.c: New file, from dwarf2read.c.
14894 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14895
f4382c45
TT
148962020-02-08 Tom Tromey <tom@tromey.com>
14897
14898 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14899 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14900 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14901 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14902 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14903 * dwarf2/leb.h: New file, from dwarf2read.c.
14904 * dwarf2/leb.c: New file, from dwarf2read.c.
14905 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14906 Remove.
14907 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14908 (COMMON_SFILES): Add dwarf2/leb.c.
14909
01840b7a
JB
149102020-02-08 Joel Brobecker <brobecker@adacore.com>
14911
14912 GDB 9.1 released.
14913
dfcb27e4
IB
149142020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14915
14916 PR gdb/25190:
aac66a4c
SM
14917 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14918 * gdb/remote.c (remote_console_output): Update.
14919 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14920 (ui_file_puts): ...this.
14921 * gdb/ui-file.h (ui_file_puts): Add declaration.
14922 * gdb/utils.c (emit_style_escape): Update.
14923 (flush_wrap_buffer): Update.
14924 (fputs_maybe_filtered): Update.
14925 (fputs_unfiltered): Add function.
dfcb27e4 14926
faa17681
IB
149272020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14928
aac66a4c
SM
14929 * gdb/event-loop.c (gdb_wait_for_event): Update.
14930 * gdb/printcmd.c (printf_command): Update.
14931 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14932 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14933 (gdb_os_flush_stderr): Update.
14934 * gdb/remote.c (remote_console_output): Update.
14935 * gdb/ui-file.c (gdb_flush): Rename to...
14936 (ui_file_flush): ...this.
14937 (stderr_file::write): Update.
14938 (stderr_file::puts): Update.
14939 * gdb/ui-file.h (gdb_flush): Rename to...
14940 (ui_file_flush): ...this.
14941 * gdb/utils.c (gdb_flush): Add function.
14942 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14943
5abbbe1d
TT
149442020-02-07 Tom Tromey <tromey@adacore.com>
14945
14946 PR breakpoints/24915:
14947 * source.c (find_and_open_source): Do not check basenames_may_differ.
14948
919adfe8
TT
149492020-02-07 Tom Tromey <tom@tromey.com>
14950
14951 * README: Update gdbserver documentation.
14952 * gdbserver: Move to top level.
14953 * configure.tgt (build_gdbserver): Remove.
14954 * configure.ac: Remove --enable-gdbserver.
14955 * configure: Rebuild.
14956 * Makefile.in (distclean): Don't mention gdbserver.
14957
1d5d29e7
SV
149582020-02-06 Shahab Vahedi <shahab@synopsys.com>
14959
14960 * source-cache.c (source_cache::ensure): Surround
14961 get_plain_source_lines with a try/catch.
14962 (source_cache::get_line_charpos): Get rid of try/catch
14963 and only check for the return value of "ensure".
14964 * tui/tui-source.c (tui_source_window::set_contents):
14965 Simplify "nlines" calculation.
14966
6eb1129c
SV
149672020-02-06 Shahab Vahedi <shahab@synopsys.com>
14968
14969 * MAINTAINERS (Write After Approval): Add myself.
14970
c6a42d11
CB
149712020-02-05 Christian Biesinger <cbiesinger@google.com>
14972
14973 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14974 function call.
14975
c8ecdda6
CB
149762020-02-05 Christian Biesinger <cbiesinger@google.com>
14977
14978 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14979
f6480e70
MR
149802020-02-05 Maciej W. Rozycki <macro@wdc.com>
14981
14982 * nat/riscv-linux-tdesc.h: New file.
14983 * nat/riscv-linux-tdesc.c: New file, taking code from...
14984 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14985 ... here.
14986 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14987 NATDEPFILES.
14988
dcc9fbc6
AB
149892020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14990
14991 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14992 we don't set the fake simulator ptid to the null_ptid.
14993
719546c4
SM
149942020-02-03 Simon Marchi <simon.marchi@efficios.com>
14995
14996 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14997 * gdbthread.h (class thread_info) <resumed>: Likewise.
14998 * infrun.c (resume_1): Likewise.
14999 (proceed): Likewise.
15000 (infrun_thread_stop_requested): Likewise.
15001 (stop_all_threads): Likewise.
15002 (handle_inferior_event): Likewise.
15003 (restart_threads): Likewise.
15004 (finish_step_over): Likewise.
15005 (keep_going_stepped_thread): Likewise.
15006 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15007 (linux_handle_extended_wait): Likewise.
15008 * record-btrace.c (get_thread_current_frame_id): Likewise.
15009 * record-full.c (record_full_wait_1): Likewise.
15010 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15011 * target.c (target_resume): Likewise.
15012 * thread.c (set_running_thread): Likewise.
15013
e409c542
AKS
150142020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15015
15016 * f-valprint.c (f77_print_array_1): Changed datatype of index
15017 variable to LONGEST from int to enable it to contain bound
15018 values correctly.
15019
ee98c0da
MR
150202020-02-03 Maciej W. Rozycki <macro@wdc.com>
15021
15022 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15023 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15024 offsets according to FLEN determined.
15025 (riscv_linux_nat_target::read_description): Determine FLEN
15026 dynamically.
15027 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15028 according to FLEN determined.
15029 (riscv_linux_nat_target::store_registers): Likewise.
15030
aa66aac4
SV
150312020-02-01 Shahab Vahedi <shahab@synopsys.com>
15032
15033 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15034 when reg->group is empty and reggroup is not.
15035
fd9faca8
TT
150362020-01-31 Tom Tromey <tromey@adacore.com>
15037
15038 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15039 Call beneath target's mourn_inferior after unpushing.
15040
42330a68
AB
150412020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15042
15043 PR tui/9765
15044 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15045 have enough lines to fill the screen, still return the lowest
15046 address we found.
15047
7a27a45b
AB
150482020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15049
15050 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15051 '-', '<', and '>' commands.
15052
c47f70e2
PA
150532020-01-29 Pedro Alves <palves@redhat.com>
15054 Sergio Durigan Junior <sergiodj@redhat.com>
15055
15056 * infcmd.c (construct_inferior_arguments): Assert that
15057 'argc' is greater than 0.
15058
5133a315
LM
150592020-01-29 Luis Machado <luis.machado@linaro.org>
15060
15061 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15062 (BRK_INSN_MASK): Define to 0xd4200000.
15063 (aarch64_program_breakpoint_here_p): New function.
15064 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15065 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15066 breakpoint.c.
15067 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15068 breakpoint.h
15069 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15070 call gdbarch_program_breakpoint_here_p.
15071 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15072 default_program_breakpoint_here_p, changed return type to bool and
15073 simplified.
15074 * breakpoint.h (program_breakpoint_here): Moved prototype to
15075 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15076 return type to bool.
15077 * gdbarch.c: Regenerate.
15078 * gdbarch.h: Regenerate.
15079 * gdbarch.sh (program_breakpoint_here_p): New method.
15080 * infrun.c (handle_signal_stop): Call
15081 gdbarch_program_breakpoint_here_p.
15082
168f8c6b
TT
150832020-01-26 Tom Tromey <tom@tromey.com>
15084
15085 * ctfread.c (struct ctf_fp_info): Reindent.
15086 (_initialize_ctfread): Remove.
15087
128a391f
TT
150882020-01-26 Tom Tromey <tom@tromey.com>
15089
15090 * psymtab.c (partial_map_expand_apply)
15091 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15092 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15093 (psym_print_stats, psym_expand_symtabs_for_function)
15094 (psym_map_symbol_filenames, psym_map_matching_symbols)
15095 (psym_expand_symtabs_matching)
15096 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15097 (maintenance_check_psymtabs): Use new methods.
15098 * psympriv.h (struct partial_symtab) <readin_p,
15099 get_compunit_symtab>: New methods.
15100 <readin, compunit_symtab>: Remove members.
15101 (struct standard_psymtab): New.
15102 (struct legacy_psymtab): Derive from standard_psymtab.
15103 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15104 standard_psymtab.
15105 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15106
0494dbec
TT
151072020-01-26 Tom Tromey <tom@tromey.com>
15108
15109 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15110 read_dependencies. Add assert.
15111 * psymtab.c (partial_symtab::read_dependencies): New method.
15112 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15113 method.
15114 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15115 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15116 read_dependencies.
15117 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15118 Add assert.
15119
8566b89b
TT
151202020-01-26 Tom Tromey <tom@tromey.com>
15121
15122 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15123 Call expand_psymtab.
15124 (xcoff_read_symtab): Call expand_psymtab.
15125 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15126 legacy_expand_psymtab.
15127 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15128 method.
15129 (struct legacy_psymtab) <expand_psymtab>: Implement.
15130 <legacy_expand_psymtab>: New member.
15131 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15132 (parse_partial_symbols): Set legacy_expand_psymtab.
15133 (psymtab_to_symtab_1): Change argument order. Call
15134 expand_psymtab.
15135 (new_psymtab): Set legacy_expand_psymtab.
15136 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15137 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15138 expand_psymtab.
15139 (dwarf2_psymtab::expand_psymtab): Rename from
15140 psymtab_to_symtab_1. Call expand_psymtab.
15141 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15142 (dbx_end_psymtab): Likewise.
15143 (dbx_psymtab_to_symtab_1): Change argument order. Call
15144 expand_psymtab.
15145 (dbx_read_symtab): Call expand_psymtab.
15146 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15147 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15148 (ctf_psymtab::read_symtab): Call expand_psymtab.
15149
077cbab2
TT
151502020-01-26 Tom Tromey <tom@tromey.com>
15151
15152 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15153 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15154 messages.
15155 * mdebugread.c (mdebug_read_symtab): Remove prints.
15156 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15157 assert.
15158 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15159
891813be
TT
151602020-01-26 Tom Tromey <tom@tromey.com>
15161
15162 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15163 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15164 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15165 legacy_symtab.
15166 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15167 * psymtab.c (psymtab_to_symtab): Call method.
15168 (dump_psymtab): Update.
15169 * psympriv.h (struct partial_symtab): Add virtual destructor.
15170 <read_symtab>: New method.
15171 (struct legacy_symtab): New.
15172 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15173 (struct pst_map) <pst>: Now a legacy_psymtab.
15174 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15175 (new_psymtab): Use legacy_psymtab.
15176 * dwarf2read.h (struct dwarf2_psymtab): New.
15177 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15178 * dwarf2read.c (dwarf2_create_include_psymtab)
15179 (dwarf2_build_include_psymtabs, create_type_unit_group)
15180 (create_partial_symtab, process_psymtab_comp_unit_reader)
15181 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15182 (set_partial_user): Use dwarf2_psymtab.
15183 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15184 (psymtab_to_symtab_1, process_full_comp_unit)
15185 (process_full_type_unit, dwarf2_ranges_read)
15186 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15187 (dwarf_decode_lines): Use dwarf2_psymtab.
15188 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15189 (add_address_entry_worker, write_one_signatured_type)
15190 (recursively_count_psymbols, recursively_write_psymbols)
15191 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15192 (write_debug_names): Likewise.
15193 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15194 <pst>: Now a legacy_psymtab.
15195 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15196 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15197 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15198 * ctfread.c (struct ctf_psymtab): New.
15199 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15200 ctf_psymtab.
15201 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15202 (create_partial_symtab): Return a ctf_psymtab.
15203 (scan_partial_symbols): Update.
15204
c3693a1d
TT
152052020-01-26 Tom Tromey <tom@tromey.com>
15206
15207 * xcoffread.c (xcoff_start_psymtab): Use new.
15208 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15209 renamed from start_psymtab_common.
15210 * psympriv.h (struct partial_symtab): Add new constructor.
15211 (start_psymtab_common): Don't declare.
15212 * mdebugread.c (parse_partial_symbols): Use new.
15213 * dwarf2read.c (create_partial_symtab): Use new.
15214 * dbxread.c (start_psymtab): Use new.
15215 * ctfread.c (create_partial_symtab): Use new.
15216
32caafd0
TT
152172020-01-26 Tom Tromey <tom@tromey.com>
15218
15219 * xcoffread.c (xcoff_end_psymtab): Use new.
15220 * psymtab.c (start_psymtab_common): Use new.
15221 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15222 Update.
15223 * psympriv.h (struct partial_symtab): Add parameters to
15224 constructor. Don't inline.
15225 (allocate_psymtab): Don't declare.
15226 * mdebugread.c (new_psymtab): Use new.
15227 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15228 * dbxread.c (dbx_end_psymtab): Use new.
15229
abaa2f23
TT
152302020-01-26 Tom Tromey <tom@tromey.com>
15231
15232 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15233 allocate_psymtab. Update documentation.
15234 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15235 allocate_psymtab. Do not use new.
15236 (allocate_psymtab): Use new. Update.
15237
6d94535f
TT
152382020-01-26 Tom Tromey <tom@tromey.com>
15239
15240 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15241 * psymtab.c (psym_print_stats): Update.
15242 * psympriv.h (struct partial_symtab) <readin,
15243 psymtabs_addrmap_supported, anonymous>: Now bool.
15244 * mdebugread.c (psymtab_to_symtab_1): Update.
15245 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15246 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15247 (process_full_comp_unit, process_full_type_unit): Update.
15248 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15249 * ctfread.c (psymtab_to_symtab): Update.
15250
6f17252b
TT
152512020-01-26 Tom Tromey <tom@tromey.com>
15252
15253 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15254 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15255 * psymtab.c (psymtab_storage): Delete psymtabs.
15256 (psymtab_storage::allocate_psymtab): Use new.
15257 (psymtab_storage::discard_psymtab): Use delete.
15258 * psympriv.h (struct partial_symtab): Add constructor and
15259 initializers.
15260
f6f1cebc
TT
152612020-01-26 Tom Tromey <tom@tromey.com>
15262
15263 * machoread.c: Do not include psympriv.h.
15264
e47e48f6
PW
152652020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15266
15267 * NEWS: Mention the new option and the set/show commands.
15268
a2fedca9
PW
152692020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15270
15271 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15272 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15273 (validate_exec_file): New variables, enums, functions.
15274 (exec_file_locate_attach, print_section_info): Style the filenames.
15275 (_initialize_exec): Install show_exec_file_mismatch_command and
15276 set_exec_file_mismatch_command.
15277 * gdbcore.h (validate_exec_file): Declare.
15278 * infcmd.c (attach_command): Call validate_exec_file.
15279 * remote.c ( remote_target::remote_add_inferior): Likewise.
15280
7ffa82e1
AB
152812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15282
15283 * frame.c (find_frame_sal): Move call to get_next_frame into more
15284 inner scope.
15285 * inline-frame.c (inilne_state) <inline_state>: Update argument
15286 types.
15287 (inilne_state) <skipped_symbol>: Rename to...
15288 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15289 (skip_inline_frames): Build vector of skipped symbols and use this
15290 to reate the inline_state.
15291 (inline_skipped_symbol): Add a comment and some assertions, fetch
15292 skipped symbol from the list.
15293
3d92a3e3
AB
152942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15295
15296 * buildsym.c (lte_is_less_than): Delete.
15297 (buildsym_compunit::end_symtab_with_blockvector): Create local
15298 lambda function to sort line table entries, and use
15299 std::stable_sort instead of std::sort.
15300 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15301 markers when looking for a previous line.
15302
94a72be7
AB
153032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15304
15305 * dwarf2read.c (lnp_state_machine::record_line): Include
15306 end_sequence parameter in debug print out. Record the line if we
15307 are at an end_sequence marker even if it's not the start of a
15308 statement.
15309 * symmisc.c (maintenance_print_one_line_table): Print end of
15310 sequence markers with 'END' not '0'.
15311
53af73bf
PA
153122020-01-24 Pedro Alves <palves@redhat.com>
15313
15314 PR gdb/25410
15315 * thread.c (scoped_restore_current_thread::restore): Use
15316 switch_to_inferior_no_thread.
15317 * exec.c: Include "progspace-and-thread.h".
15318 (add_target_sections, remove_target_sections):
15319 scoped_restore_current_pspace_and_thread instead of
15320 scoped_restore_current_thread.
15321 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15322 and aspace to the inferior before calling clone_program_space.
15323 Remove stale comment.
15324
3050c6f4
CB
153252020-01-24 Christian Biesinger <cbiesinger@google.com>
15326
15327 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15328 (arm_netbsd_nat_target::fetch_registers): ...this.
15329 (arm_nbsd_nat_target::store_registers): Rename to...
15330 (arm_netbsd_nat_target::store_registers): ...this.
15331
73685c7e
CB
153322020-01-24 Christian Biesinger <cbiesinger@google.com>
15333
15334 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15335 register_t.
15336
89203d40
CB
153372020-01-24 Christian Biesinger <cbiesinger@google.com>
15338
15339 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15340 Update comment.
15341 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15342 Likewise.
15343 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15344 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15345 the correct replacement (iterate_over_regset_sections).
15346 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15347 Update comment.
15348
1ba1ac88
AB
153492020-01-24 Graham Markall <graham.markall@embecosm.com>
15350
15351 PR gdb/23718
15352 * gdb/python/python.c (execute_gdb_command): Call
15353 async_enable_stdin in catch block.
15354
f3364a6d
AB
153552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15356
15357 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15358 SWITCH_THRU_ALL_UIS.
15359
733d0a67
AB
153602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15361
15362 PR tui/9765
15363 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15364 comment, add extra parameter, and update to store previous symbol
15365 when appropriate.
15366 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15367 add extra parameter.
15368 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15369 remove unneeded parameter, add try/catch around gdb_print_insn,
15370 rewrite to add items to asm_lines vector.
15371 (tui_find_backward_disassembly_start_address): New function.
15372 (tui_find_disassembly_address): Updated throughout.
15373 (tui_disasm_window::set_contents): Update for changes to
15374 tui_disassemble.
15375 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15376 number of lines to scroll.
15377
b3b3bada
SM
153782020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15379
15380 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15381 (SECT_OFF_DATA): Likewise.
15382 (SECT_OFF_RODATA): Likewise.
15383 (SECT_OFF_TEXT): Likewise.
15384 (SECT_OFF_BSS): Likewise.
15385 (struct objfile) <text_section_offset, data_section_offset>: New
15386 methods.
15387 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15388 objfile::text_section_offset.
15389 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15390 * coffread.c (coff_symtab_read): Likewise.
15391 (enter_linenos): Likewise.
15392 (process_coff_symbol): Likewise.
15393 * ctfread.c (get_objfile_text_range): Likewise.
15394 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15395 Use objfile::data_section_offset.
15396 * dwarf2-frame.c (execute_cfa_program): Use
15397 objfile::text_section_offset.
15398 (dwarf2_frame_find_fde): Likewise.
15399 * dwarf2read.c (create_addrmap_from_index): Likewise.
15400 (create_addrmap_from_aranges): Likewise.
15401 (dw2_find_pc_sect_compunit_symtab): Likewise.
15402 (process_psymtab_comp_unit_reader): Likewise.
15403 (add_partial_symbol): Likewise.
15404 (add_partial_subprogram): Likewise.
15405 (process_full_comp_unit): Likewise.
15406 (read_file_scope): Likewise.
15407 (read_func_scope): Likewise.
15408 (read_lexical_block_scope): Likewise.
15409 (read_call_site_scope): Likewise.
15410 (dwarf2_rnglists_process): Likewise.
15411 (dwarf2_ranges_process): Likewise.
15412 (dwarf2_ranges_read): Likewise.
15413 (dwarf_decode_lines_1): Likewise.
15414 (new_symbol): Likewise.
15415 (dwarf2_fetch_die_loc_sect_off): Likewise.
15416 (dwarf2_per_cu_text_offset): Likewise.
15417 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15418 * hppa-tdep.c (read_unwind_info): Likewise.
15419 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15420 * psympriv.h (struct partial_symtab): Likewise.
15421 * psymtab.c (find_pc_sect_psymtab): Likewise.
15422 * solib-svr4.c (enable_break): Likewise.
15423 * stap-probe.c (relocate_address): Use
15424 objfile::data_section_offset.
15425 * xcoffread.c (enter_line_range): Use
15426 objfile::text_section_offset.
15427 (read_xcoff_symtab): Likewise.
15428
ab53f382
SM
154292020-01-23 Simon Marchi <simon.marchi@efficios.com>
15430
15431 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15432 declaration to narrower scopes.
15433
e7eee665
SM
154342020-01-23 Simon Marchi <simon.marchi@efficios.com>
15435
15436 * darwin-nat.h (struct darwin_exception_msg, enum
15437 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15438 Move up.
15439 (class darwin_nat_target) <wait_1, check_new_threads,
15440 decode_exception_message, decode_message, stop_inferior,
15441 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15442 * darwin-nat.c (darwin_check_new_threads): Rename to...
15443 (darwin_nat_target::check_new_threads): ... this.
15444 (darwin_suspend_inferior_it): Remove.
15445 (darwin_decode_exception_message): Rename to...
15446 (darwin_nat_target::decode_exception_message): ... this.
15447 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15448 (darwin_decode_message): Rename to...
15449 (darwin_nat_target::decode_message): ... this.
15450 (cancel_breakpoint): Rename to...
15451 (darwin_nat_target::cancel_breakpoint): ... this.
15452 (darwin_wait): Rename to...
15453 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15454 instead of iterate_over_inferiors.
15455 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15456 (darwin_stop_inferior): Rename to...
15457 (darwin_nat_target::stop_inferior): ... this.
15458 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15459 (darwin_init_thread_list): Rename to...
15460 (darwin_nat_target::init_thread_list): ... this.
15461 (darwin_ptrace_him): Rename to...
15462 (darwin_nat_target::ptrace_him): ... this.
15463 (darwin_nat_target::create_inferior): Pass lambda function to
15464 fork_inferior.
15465 (darwin_nat_target::detach): Call stop_inferior instead of
15466 darwin_stop_inferior.
15467 * fork-inferior.h (fork_inferior): Change init_trace_fun
15468 parameter to gdb::function_view.
15469 * fork-inferior.c (fork_inferior): Likewise.
15470
c162ed3e
HD
154712020-01-23 Hannes Domani <ssbssa@yahoo.de>
15472
15473 * i386-cygwin-tdep.c (core_process_module_section): Update.
15474 * windows-nat.c (struct lm_info_windows): Add text_offset.
15475 (windows_xfer_shared_libraries): Update.
15476 * windows-tdep.c (windows_xfer_shared_library):
15477 Add text_offset_cached argument.
15478 * windows-tdep.h (windows_xfer_shared_library): Update.
15479
a1237872
SM
154802020-01-21 Simon Marchi <simon.marchi@efficios.com>
15481
15482 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15483
b3ee6dd9
SM
154842020-01-21 Simon Marchi <simon.marchi@efficios.com>
15485
15486 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15487 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15488 replace with range-based for.
15489 (gdbsim_interrupt_inferior): Remove.
15490 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15491 with a range-based for. Inline code from
15492 gdbsim_interrupt_inferior.
15493
f9fac3c8
SM
154942020-01-21 Simon Marchi <simon.marchi@efficios.com>
15495
15496 * infrun.c (proceed): Fix indentation.
15497
f6474de9
TT
154982020-01-21 Tom Tromey <tromey@adacore.com>
15499
15500 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15501 * python/python.c (python_extension_ops): Update.
15502 (gdbpy_colorize): New function.
15503 * python/lib/gdb/__init__.py (colorize): New function.
15504 * extension.h (ext_lang_colorize): Declare.
15505 * extension.c (ext_lang_colorize): New function.
15506 * extension-priv.h (struct extension_language_ops) <colorize>: New
15507 member.
15508 * cli/cli-style.c (_initialize_cli_style): Update help text.
15509
f0c702d4
LM
155102020-01-21 Luis Machado <luis.machado@linaro.org>
15511
15512 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15513 <cond>: Change type to bool.
15514 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15515 (aarch64_displaced_step_cb): Likewise.
15516 (aarch64_displaced_step_tb): Likewise.
15517
1ab139e5
LM
155182020-01-21 Luis Machado <luis.machado@linaro.org>
15519
15520 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15521 output.
15522
0c271889
LM
155232020-01-21 Luis Machado <luis.machado@linaro.org>
15524
15525 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15526 <pc_adjust>: Adjust the documentation.
15527 (aarch64_displaced_step_fixup): Check if PC really moved before
15528 adjusting it.
15529
4d89c1c7
TT
155302020-01-19 Tom Tromey <tom@tromey.com>
15531
15532 * disasm.c (~gdb_disassembler): New destructor.
15533 (gdb_buffered_insn_length): Call disassemble_free_target.
15534 * disasm.h (class gdb_disassembler): Declare destructor. Use
15535 DISABLE_COPY_AND_ASSIGN.
15536
c0ab21c2
TT
155372020-01-19 Tom Tromey <tom@tromey.com>
15538
15539 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15540 (die_reader_func_ftype): Remove.
15541 (cutu_reader): New class.
15542 (dw2_get_file_names_reader): Remove "data" parameter.
15543 (dw2_get_file_names): Use cutu_reader.
15544 (create_debug_type_hash_table): Update.
15545 (read_cutu_die_from_dwo): Update comment.
15546 (lookup_dwo_unit): Add dwo_name parameter.
15547 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15548 die_reader_func_ftype and data parameters.
15549 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15550 Remove die_reader_func_ftype and data parameters.
15551 (~cutu_reader): New; from init_cutu_and_read_dies.
15552 (cutu_reader::cutu_reader): Rename from
15553 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15554 and data parameters.
15555 (init_cutu_and_read_dies_simple): Remove.
15556 (struct process_psymtab_comp_unit_data): Remove.
15557 (process_psymtab_comp_unit_reader): Remove data parameter; add
15558 want_partial_unit and pretend_language parameters.
15559 (process_psymtab_comp_unit): Use cutu_reader.
15560 (build_type_psymtabs_reader): Remove data parameter.
15561 (build_type_psymtabs_1): Use cutu_reader.
15562 (process_skeletonless_type_unit): Likewise.
15563 (load_partial_comp_unit_reader): Remove.
15564 (load_partial_comp_unit): Use cutu_reader.
15565 (load_full_comp_unit_reader): Remove.
15566 (load_full_comp_unit): Use cutu_reader.
15567 (struct create_dwo_cu_data): Remove.
15568 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15569 dwo_unit parameters.
15570 (create_cus_hash_table): Use cutu_reader.
15571 (struct dwarf2_read_addr_index_data): Remove.
15572 (dwarf2_read_addr_index_reader): Remove.
15573 (dwarf2_read_addr_index): Use cutu_reader.
15574 (read_signatured_type_reader): Remove.
15575 (read_signatured_type): Use cutu_reader.
15576
45bbae5c
TT
155772020-01-19 Tom Tromey <tom@tromey.com>
15578
15579 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15580 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15581 (tui_wrefresh): Declare.
15582 * tui/tui-wingeneral.c (suppress_output): New global.
15583 (tui_suppress_output, ~tui_suppress_output): New constructor and
15584 destructor.
15585 (tui_wrefresh): New function.
15586 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15587 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15588 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15589 method.
15590 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15591 tui_wrefresh.
15592 (tui_data_window::no_refresh): New method.
15593 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15594 (tui_reg_command): Use tui_suppress_output
15595 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15596 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15597 method.
15598 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15599
4f13c1c0
TT
156002020-01-19 Tom Tromey <tom@tromey.com>
15601
15602 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15603 Handle case where symtab is null.
15604
fa47e446
SM
156052020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15606
15607 * linux-fork.c (one_fork_p): Simplify.
15608
26f42329
SM
156092020-01-17 Simon Marchi <simon.marchi@efficios.com>
15610
15611 * top.c (struct qt_args): Remove.
15612 (kill_or_detach): Change return type to void, replace `void *`
15613 parameter with a proper one.
15614 (print_inferior_quit_action): Likewise.
15615 (quit_confirm): Use range-based for loop to iterate over inferiors.
15616 (quit_force): Likewise.
15617
a9ac81b1
SM
156182020-01-17 Simon Marchi <simon.marchi@efficios.com>
15619
15620 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15621 `void *` parameter with proper parameters.
15622 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15623 (print_one_inferior): Change return type to void, replace `void *`
15624 parameter with proper parameters.
15625 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15626 inferiors.
15627 (get_other_inferior): Remove.
15628 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15629 inferiors.
15630
788eca49
SM
156312020-01-17 Simon Marchi <simon.marchi@efficios.com>
15632
15633 * mi/mi-interp.c (report_initial_inferior): Remove.
15634 (mi_interp::init): Use range-based for to iterate over inferiors.
15635
d9bc85b6
SM
156362020-01-17 Simon Marchi <simon.marchi@efficios.com>
15637
15638 * python/py-inferior.c (build_inferior_list): Remove.
15639 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15640
40c94099
CB
156412020-01-16 Christian Biesinger <cbiesinger@google.com>
15642
15643 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15644 (btrace_stitch_trace): Likewise.
15645 * charset.c (intermediate_encoding): Likewise (vaild).
15646 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15647 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15648 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15649
e0cdfe3c
HD
156502020-01-16 Hannes Domani <ssbssa@yahoo.de>
15651
15652 * windows-tdep.c (windows_get_tlb_type):
15653 Add rtl_user_process_parameters type.
15654
790f1718 156552020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15656 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15657
15658 PR build/24805
15659 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15660 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15661 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15662 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15663 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15664 (ps_plog): Redeclare exported functions with default visibility.
15665
3112ed97
NA
156662020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15667
15668 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15669 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15670
8dc3273e
SM
156712020-01-15 Simon Marchi <simon.marchi@efficios.com>
15672
15673 * infcmd.c (post_create_inferior): Use get_thread_regcache
15674 instead of get_current_regcache.
15675
ff47f4f0
TT
156762020-01-14 Tom Tromey <tom@tromey.com>
15677
15678 PR symtab/12535:
15679 * python/python.c (gdbpy_decode_line): Treat empty string the same
15680 as no argument.
15681
975f45b7
TT
156822020-01-14 Tom Tromey <tom@tromey.com>
15683
15684 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15685
25e57356
TT
156862020-01-14 Tom Tromey <tom@tromey.com>
15687
15688 * nat/linux-btrace.c: Don't include <config.h>.
15689 * nat/linux-ptrace.c: Don't include <config.h>.
15690 * nat/x86-linux-dregs.c: Don't include <config.h>.
15691
05ea2a05
TT
156922020-01-14 Tom Tromey <tom@tromey.com>
15693
15694 * configure: Rebuild.
15695 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15696
01027315
TT
156972020-01-14 Tom Tromey <tom@tromey.com>
15698
15699 * nat/x86-linux-dregs.c: Include configh.h.
15700 * nat/linux-ptrace.c: Include configh.h.
15701 * nat/linux-btrace.c: Include configh.h.
15702 * defs.h: Include config.h, bfd.h.
15703 * configure.ac: Don't source common.host.
15704 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15705 * configure: Rebuild.
15706 * acinclude.m4: Update path.
15707 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15708 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15709 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15710 (CLIBS): Add LIBSUPPORT.
15711 (CDEPS): Likewise.
15712 (COMMON_SFILES): Remove gdbsupport files.
15713 (HFILES_NO_SRCDIR): Likewise.
15714 (stamp-version): Update path to create-version.sh.
15715 (ALLDEPFILES): Remove gdbsupport files.
15716
b2ceabe8
TT
157172020-01-14 Tom Tromey <tom@tromey.com>
15718
15719 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15720 USE_WIN32API when needed.
15721 * configure.ac (USE_WIN32API): Don't define.
15722 (WIN32LIBS): Use WIN32APILIBS.
15723 * configure: Rebuild.
15724
25c51f71
TT
157252020-01-14 Tom Tromey <tom@tromey.com>
15726
15727 * configure: Rebuild.
15728 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15729
717c684d
BE
157302020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15731
15732 * skip.c (skip_function_command): Make skip w/o arguments use the
15733 name of the inlined function if pc is inside any inlined function.
15734
7da6a5b9
LM
157352020-01-14 Luis Machado <luis.machado@linaro.org>
15736
15737 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15738 * infrun.c (resume_1): Likewise.
15739 (handle_inferior_event): Remove stale comment.
15740 * linux-nat.c (linux_nat_target::resume): Update comments.
15741 (save_stop_reason): Likewise.
15742 (linux_nat_filter_event): Likewise.
15743 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15744
44e4c775
AB
157452020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15746
15747 * elfread.c (record_minimal_symbol): Set section index to 0 for
15748 non-allocatable sections.
15749
18a8505e
AT
15750
157512020-01-13 Ali Tamur <tamur@google.com>
15752
15753 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15754 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15755 to gdb::optional. Update comments.
15756 (dwo_file): Update comments.
15757 (read_attribute): Update API to take an additional out parameter,
15758 need_reprocess. This is used to mark attributes that need other
15759 attributes (e.g. str_offsets_base) for correct computation which may not
15760 have been read yet.
15761 (read_attribute_reprocess): New function declaration.
15762 (read_addr_index): Likewise.
15763 (read_dwo_str_index): Likewise.
15764 (read_stub_str_index): Likewise.
15765 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15766 (lookup_addr_base): New function definition.
15767 (lookup_ranges_base): Likewise.
15768 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15769 lookup_ranges_base.
15770 (init_cutu_and_read_dies): Update comments.
15771 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15772 unit. This is used to inherit parent's str_offsets_base and addr_base.
15773 Update comments.
15774 (init_cutu_and_read_dies_simple): Reflect API changes.
15775 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15776 (create_cus_hash_table): Change API to take parent compile unit.
15777 Reflect API changes.
15778 (open_and_init_dwo_file): Reflect API changes.
15779 (dwarf2_get_pc_bounds): Update comments.
15780 (dwarf2_record_block_ranges): Likewise.
15781 (read_full_die_1): Change implementation to reprocess attributes that
15782 need str_offsets_base and addr_base.
15783 (partial_die_info::read): Likewise.
15784 (read_attribute_reprocess): New function definition.
15785 (read_attribute_value): Change API to take an additional out parameter,
15786 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15787 when a non-dwo compile unit has index based attributes.
15788 (read_attribute): Reflect API changes.
15789 (read_addr_index_1): Reflect API changes. Update comments.
15790 (dwarf2_read_addr_index_data): Reflect API changes.
15791 (dwarf2_read_addr_index): Likewise.
15792 (read_str_index): Change API and implementation. This becomes a helper
15793 to be used by the new string index related methods. Update error
15794 message and comments.
15795 (read_dwo_str_index): New function definition.
15796 (read_stub_str_index): Likewise.
15797 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15798 * symfile.h (dwarf2_debug_sections): Likewise.
15799 * xcoffread.c (dwarf2_debug_sections): Likewise.
15800
0cac9354
SM
158012020-01-13 Simon Marchi <simon.marchi@efficios.com>
15802
15803 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15804 core_reg_sect type to gdb_byte *.
15805 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15806 * cris-tdep.c (fetch_core_registers): Likewise.
15807 * corelow.c (core_target::get_core_register_section): Change
15808 type of `contents` to gdb::byte_vector.
15809
9a6d629c
AB
158102020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15811
15812 * tui/tui-wingeneral.c (box_win): Position the title in the center
15813 of the border.
15814
d8b2f9e3
SM
158152020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15816
15817 * corelow.c (core_target::get_core_register_section): Use
15818 std::vector instead of alloca.
15819
bb564c58
SM
158202020-01-13 Simon Marchi <simon.marchi@efficios.com>
15821
15822 * warning.m4: Add -Wmissing-declarations to build_warnings.
15823 * configure: Re-generate.
15824
6b366111
SM
158252020-01-13 Simon Marchi <simon.marchi@efficios.com>
15826
15827 * python/python.c (init__gdb_module): Add declaration.
15828
6c265988
SM
158292020-01-13 Simon Marchi <simon.marchi@efficios.com>
15830
15831 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15832 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15833 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15834 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15835 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15836 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15837 * ada-exp.y (_initialize_ada_exp): Add declaration.
15838 * ada-lang.c (_initialize_ada_language): Add declaration.
15839 * ada-tasks.c (_initialize_tasks): Add declaration.
15840 * agent.c (_initialize_agent): Add declaration.
15841 * aix-thread.c (_initialize_aix_thread): Add declaration.
15842 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15843 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15844 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15845 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15846 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15847 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15848 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15849 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15850 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15851 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15852 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15853 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15854 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15855 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15856 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15857 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15858 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15859 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15860 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15861 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15862 * annotate.c (_initialize_annotate): Add declaration.
15863 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15864 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15865 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15866 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15867 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15868 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15869 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15870 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15871 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15872 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15873 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15874 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15875 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15876 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15877 * auto-load.c (_initialize_auto_load): Add declaration.
15878 * auxv.c (_initialize_auxv): Add declaration.
15879 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15880 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15881 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15882 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15883 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15884 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15885 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15886 * breakpoint.c (_initialize_breakpoint): Add declaration.
15887 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15888 * btrace.c (_initialize_btrace): Add declaration.
15889 * charset.c (_initialize_charset): Add declaration.
15890 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15891 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15892 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15893 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15894 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15895 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15896 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15897 * coffread.c (_initialize_coffread): Add declaration.
15898 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15899 * compile/compile.c (_initialize_compile): Add declaration.
15900 * complaints.c (_initialize_complaints): Add declaration.
15901 * completer.c (_initialize_completer): Add declaration.
15902 * copying.c (_initialize_copying): Add declaration.
15903 * corefile.c (_initialize_core): Add declaration.
15904 * corelow.c (_initialize_corelow): Add declaration.
15905 * cp-abi.c (_initialize_cp_abi): Add declaration.
15906 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15907 * cp-support.c (_initialize_cp_support): Add declaration.
15908 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15909 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15910 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15911 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15912 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15913 * ctfread.c (_initialize_ctfread): Add declaration.
15914 * d-lang.c (_initialize_d_language): Add declaration.
15915 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15916 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15917 * dbxread.c (_initialize_dbxread): Add declaration.
15918 * dcache.c (_initialize_dcache): Add declaration.
15919 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15920 * disasm.c (_initialize_disasm): Add declaration.
15921 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15922 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15923 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15924 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15925 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15926 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15927 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15928 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15929 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15930 * elfread.c (_initialize_elfread): Add declaration.
15931 * exec.c (_initialize_exec): Add declaration.
15932 * extension.c (_initialize_extension): Add declaration.
15933 * f-lang.c (_initialize_f_language): Add declaration.
15934 * f-valprint.c (_initialize_f_valprint): Add declaration.
15935 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15936 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15937 * filesystem.c (_initialize_filesystem): Add declaration.
15938 * findcmd.c (_initialize_mem_search): Add declaration.
15939 * findvar.c (_initialize_findvar): Add declaration.
15940 * fork-child.c (_initialize_fork_child): Add declaration.
15941 * frame-base.c (_initialize_frame_base): Add declaration.
15942 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15943 * frame.c (_initialize_frame): Add declaration.
15944 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15945 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15946 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15947 * gcore.c (_initialize_gcore): Add declaration.
15948 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15949 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15950 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15951 * gdbarch.c (_initialize_gdbarch): Add declaration.
15952 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15953 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15954 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15955 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15956 * go-lang.c (_initialize_go_language): Add declaration.
15957 * go32-nat.c (_initialize_go32_nat): Add declaration.
15958 * guile/guile.c (_initialize_guile): Add declaration.
15959 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15960 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15961 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15962 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15963 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15964 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15965 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15966 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15967 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15968 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15969 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15970 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15971 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15972 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15973 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15974 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15975 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15976 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15977 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15978 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15979 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15980 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15981 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15982 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15983 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15984 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15985 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15986 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15987 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15988 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15989 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15990 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15991 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15992 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15993 * infcall.c (_initialize_infcall): Add declaration.
15994 * infcmd.c (_initialize_infcmd): Add declaration.
15995 * inflow.c (_initialize_inflow): Add declaration.
15996 * infrun.c (_initialize_infrun): Add declaration.
15997 * interps.c (_initialize_interpreter): Add declaration.
15998 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15999 * jit.c (_initialize_jit): Add declaration.
16000 * language.c (_initialize_language): Add declaration.
16001 * linux-fork.c (_initialize_linux_fork): Add declaration.
16002 * linux-nat.c (_initialize_linux_nat): Add declaration.
16003 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16004 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16005 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16006 * m2-lang.c (_initialize_m2_language): Add declaration.
16007 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16008 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16009 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16010 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16011 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16012 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16013 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16014 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16015 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16016 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16017 * machoread.c (_initialize_machoread): Add declaration.
16018 * macrocmd.c (_initialize_macrocmd): Add declaration.
16019 * macroscope.c (_initialize_macroscope): Add declaration.
16020 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16021 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16022 * maint.c (_initialize_maint_cmds): Add declaration.
16023 * mdebugread.c (_initialize_mdebugread): Add declaration.
16024 * memattr.c (_initialize_mem): Add declaration.
16025 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16026 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16027 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16028 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16029 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16030 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16031 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16032 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16033 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16034 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16035 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16036 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16037 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16038 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16039 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16040 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16041 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16042 * mipsread.c (_initialize_mipsread): Add declaration.
16043 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16044 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16045 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16046 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16047 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16048 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16049 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16050 * nto-procfs.c (_initialize_procfs): Add declaration.
16051 * objc-lang.c (_initialize_objc_language): Add declaration.
16052 * observable.c (_initialize_observer): Add declaration.
16053 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16054 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16055 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16056 * osabi.c (_initialize_gdb_osabi): Add declaration.
16057 * osdata.c (_initialize_osdata): Add declaration.
16058 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16059 * parse.c (_initialize_parse): Add declaration.
16060 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16061 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16062 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16063 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16064 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16065 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16066 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16067 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16068 * printcmd.c (_initialize_printcmd): Add declaration.
16069 * probe.c (_initialize_probe): Add declaration.
16070 * proc-api.c (_initialize_proc_api): Add declaration.
16071 * proc-events.c (_initialize_proc_events): Add declaration.
16072 * proc-service.c (_initialize_proc_service): Add declaration.
16073 * procfs.c (_initialize_procfs): Add declaration.
16074 * producer.c (_initialize_producer): Add declaration.
16075 * psymtab.c (_initialize_psymtab): Add declaration.
16076 * python/python.c (_initialize_python): Add declaration.
16077 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16078 * record-btrace.c (_initialize_record_btrace): Add declaration.
16079 * record-full.c (_initialize_record_full): Add declaration.
16080 * record.c (_initialize_record): Add declaration.
16081 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16082 * regcache.c (_initialize_regcache): Add declaration.
16083 * reggroups.c (_initialize_reggroup): Add declaration.
16084 * remote-notif.c (_initialize_notif): Add declaration.
16085 * remote-sim.c (_initialize_remote_sim): Add declaration.
16086 * remote.c (_initialize_remote): Add declaration.
16087 * reverse.c (_initialize_reverse): Add declaration.
16088 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16089 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16090 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16091 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16092 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16093 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16094 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16095 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16096 Add declaration.
16097 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16098 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16099 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16100 * rust-exp.y (_initialize_rust_exp): Add declaration.
16101 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16102 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16103 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16104 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16105 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16106 * score-tdep.c (_initialize_score_tdep): Add declaration.
16107 * ser-go32.c (_initialize_ser_dos): Add declaration.
16108 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16109 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16110 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16111 * ser-uds.c (_initialize_ser_socket): Add declaration.
16112 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16113 * serial.c (_initialize_serial): Add declaration.
16114 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16115 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16116 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16117 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16118 * skip.c (_initialize_step_skip): Add declaration.
16119 * sol-thread.c (_initialize_sol_thread): Add declaration.
16120 * solib-aix.c (_initialize_solib_aix): Add declaration.
16121 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16122 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16123 * solib-frv.c (_initialize_frv_solib): Add declaration.
16124 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16125 * solib-target.c (_initialize_solib_target): Add declaration.
16126 * solib.c (_initialize_solib): Add declaration.
16127 * source-cache.c (_initialize_source_cache): Add declaration.
16128 * source.c (_initialize_source): Add declaration.
16129 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16130 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16131 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16132 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16133 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16134 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16135 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16136 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16137 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16138 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16139 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16140 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16141 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16142 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16143 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16144 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16145 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16146 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16147 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16148 * stabsread.c (_initialize_stabsread): Add declaration.
16149 * stack.c (_initialize_stack): Add declaration.
16150 * stap-probe.c (_initialize_stap_probe): Add declaration.
16151 * std-regs.c (_initialize_frame_reg): Add declaration.
16152 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16153 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16154 * symfile.c (_initialize_symfile): Add declaration.
16155 * symmisc.c (_initialize_symmisc): Add declaration.
16156 * symtab.c (_initialize_symtab): Add declaration.
16157 * target.c (_initialize_target): Add declaration.
16158 * target-connection.c (_initialize_target_connection): Add
16159 declaration.
16160 * target-dcache.c (_initialize_target_dcache): Add declaration.
16161 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16162 * thread.c (_initialize_thread): Add declaration.
16163 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16164 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16165 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16166 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16167 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16168 * tracectf.c (_initialize_ctf): Add declaration.
16169 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16170 * tracefile.c (_initialize_tracefile): Add declaration.
16171 * tracepoint.c (_initialize_tracepoint): Add declaration.
16172 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16173 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16174 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16175 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16176 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16177 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16178 * tui/tui.c (_initialize_tui): Add declaration.
16179 * typeprint.c (_initialize_typeprint): Add declaration.
16180 * ui-style.c (_initialize_ui_style): Add declaration.
16181 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16182 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16183 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16184 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16185 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16186 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16187 * unittests/filtered_iterator-selftests.c
16188 (_initialize_filtered_iterator_selftests): Add declaration.
16189 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16190 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16191 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16192 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16193 * unittests/main-thread-selftests.c
16194 (_initialize_main_thread_selftests): Add declaration.
16195 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16196 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16197 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16198 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16199 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16200 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16201 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16202 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16203 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16204 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16205 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16206 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16207 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16208 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16209 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16210 declaration.
16211 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16212 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16213 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16214 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16215 * user-regs.c (_initialize_user_regs): Add declaration.
16216 * utils.c (_initialize_utils): Add declaration.
16217 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16218 * valops.c (_initialize_valops): Add declaration.
16219 * valprint.c (_initialize_valprint): Add declaration.
16220 * value.c (_initialize_values): Add declaration.
16221 * varobj.c (_initialize_varobj): Add declaration.
16222 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16223 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16224 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16225 * windows-nat.c (_initialize_windows_nat): Add declaration.
16226 (_initialize_check_for_gdb_ini): Add declaration.
16227 (_initialize_loadable): Add declaration.
16228 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16229 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16230 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16231 * xcoffread.c (_initialize_xcoffread): Add declaration.
16232 * xml-support.c (_initialize_xml_support): Add declaration.
16233 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16234 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16235 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16236 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16237
e2de1eec
SM
162382020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16239
16240 * regformats/regdat.sh: Generate declaration for init function.
16241
e0037b4c
SM
162422020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16243
16244 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16245 up.
16246 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16247 close_one_inferior>: New methods.
16248 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16249 pass down target to find_inferior_pid.
16250 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16251 Pass down target to find_inferior_ptid.
16252 (gdbsim_target::create_inferior): Pass down target to
16253 add_thread_silent.
16254 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16255 target down to find_inferior_ptid and switch_to_thread.
16256 (gdbsim_target::close): Update to call close_one_inferior.
16257 (struct resume_data): Remove.
16258 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16259 directly, rather than through a void pointer.
16260 (gdbsim_target::resume): Update to call resume_one_inferior.
16261
58920b5b
SM
162622020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16263
16264 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16265
4ec89149
PA
162662020-01-12 Pedro Alves <palves@redhat.com>
16267
16268 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16269 directly for the current inferior instead of
16270 discard_all_inferiors.
16271 (discard_all_inferiors): Delete.
16272
7c392d1d
TT
162732020-01-11 Tom Tromey <tom@tromey.com>
16274
16275 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16276 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16277 deprecated_safe_get_selected_frame.
16278
d9ebdab7
TBA
162792020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16280
16281 * inferior.c (print_inferior): Switch inferior before printing it.
16282
f3c469b9
PA
162832020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16284 Pedro Alves <palves@redhat.com>
16285
16286 * progspace-and-thread.c (switch_to_program_space_and_thread):
16287 Assert there's an inferior for PSPACE. Use
16288 switch_to_inferior_no_thread to switch the inferior too.
16289 * progspace.c (program_space::~program_space): Call
16290 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16291 (program_space::free_all_objfiles): Don't call clear_symtab_users
16292 here.
16293 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16294
65c574f6
PA
162952020-01-10 Pedro Alves <palves@redhat.com>
16296
16297 * NEWS: Mention multi-target debugging, "info connections", and
16298 "add-inferior -no-connection".
16299
2f4fcf00
PA
163002020-01-10 Pedro Alves <palves@redhat.com>
16301
16302 * infrun.c: Include "target-connection.h".
16303 (check_multi_target_resumption): New.
16304 (proceed): Call it.
16305 * target-connection.c (make_target_connection_string): Make
16306 extern.
16307 * target-connection.h (make_target_connection_string): Declare.
16308
121b3efd
PA
163092020-01-10 Pedro Alves <palves@redhat.com>
16310
16311 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16312 * inferior.c (uiout_field_connection): New function.
16313 (print_inferior): Add new "connection-id" column.
16314 (add_inferior_command): Show connection number/string of added
16315 inferior.
16316 * process-stratum-target.h
16317 (process_stratum_target::connection_string): New virtual method.
16318 (process_stratum_target::connection_number): New field.
16319 * remote.c (remote_target::connection_string): New override.
16320 * target-connection.c: New file.
16321 * target-connection.h: New file.
16322 * target.c (decref_target): Remove process_stratum targets from
16323 the connection list.
16324 (target_stack::push): Add process_stratum targets to the
16325 connection list.
16326
4f837581
PA
163272020-01-10 Pedro Alves <palves@redhat.com>
16328
16329 Revert:
16330 2016-04-12 Pedro Alves <palves@redhat.com>
16331 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16332 Remove references to name.
16333 * serial.h (struct serial) <name>: Delete.
16334
f4ec508e
PA
163352020-01-10 Pedro Alves <palves@redhat.com>
16336
16337 * gdbarch-selftests.c (register_to_value_test): Remove "target
16338 already pushed" check.
16339
5b6d1e4f
PA
163402020-01-10 Pedro Alves <palves@redhat.com>
16341 John Baldwin <jhb@FreeBSD.org>
16342
16343 * aarch64-linux-nat.c
16344 (aarch64_linux_nat_target::thread_architecture): Adjust.
16345 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16346 (task_command_1): Likewise.
16347 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16348 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16349 (aix_thread_target::store_registers)
16350 (aix_thread_target::thread_alive): Adjust.
16351 * amd64-fbsd-tdep.c: Include "inferior.h".
16352 (amd64fbsd_get_thread_local_address): Pass down target.
16353 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16354 thread's gdbarch instead of target_gdbarch.
16355 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16356 get_last_target_status.
16357 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16358 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16359 inferiors.
16360 (update_inserted_breakpoint_locations): Skip if inferiors with no
16361 execution.
16362 (update_global_location_list): When handling moribund locations,
16363 find representative inferior for location's pspace, and use thread
16364 count of its process_stratum target.
16365 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16366 * bsd-uthread.c (bsd_uthread_target::wait): Use
16367 as_process_stratum_target and adjust thread_change_ptid and
16368 add_thread calls.
16369 (bsd_uthread_target::update_thread_list): Use
16370 as_process_stratum_target and adjust find_thread_ptid,
16371 thread_change_ptid and add_thread calls.
16372 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16373 find_thread_ptid call.
16374 * corelow.c (add_to_thread_list): Adjust add_thread call.
16375 (core_target_open): Adjust add_thread_silent and thread_count
16376 calls.
16377 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16378 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16379 * event-top.c (async_disconnect): Pop targets from all inferiors.
16380 * exec.c (add_target_sections): Push exec target on all inferiors
16381 sharing the program space.
16382 (remove_target_sections): Remove the exec target from all
16383 inferiors sharing the program space.
16384 (exec_on_vfork): New.
16385 * exec.h (exec_on_vfork): Declare.
16386 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16387 Pass it down.
16388 (fbsd_nat_target::update_thread_list): Adjust.
16389 (fbsd_nat_target::resume): Adjust.
16390 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16391 down.
16392 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16393 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16394 get_thread_arch_regcache call.
16395 * fork-child.c (gdb_startup_inferior): Pass target down to
16396 startup_inferior and set_executing.
16397 * gdbthread.h (struct process_stratum_target): Forward declare.
16398 (add_thread, add_thread_silent, add_thread_with_info)
16399 (in_thread_list): Add process_stratum_target parameter.
16400 (find_thread_ptid(inferior*, ptid_t)): New overload.
16401 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16402 parameter.
16403 (all_threads()): Delete overload.
16404 (all_threads, all_non_exited_threads): Add process_stratum_target
16405 parameter.
16406 (all_threads_safe): Use brace initialization.
16407 (thread_count): Add process_stratum_target parameter.
16408 (set_resumed, set_running, set_stop_requested, set_executing)
16409 (threads_are_executing, finish_thread_state): Add
16410 process_stratum_target parameter.
16411 (switch_to_thread): Use is_current_thread.
16412 * i386-fbsd-tdep.c: Include "inferior.h".
16413 (i386fbsd_get_thread_local_address): Pass down target.
16414 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16415 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16416 have_inferiors check.
16417 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16418 (inf_ptrace_target::attach): Adjust.
16419 * infcall.c (run_inferior_call): Adjust.
16420 * infcmd.c (run_command_1): Pass target to
16421 scoped_finish_thread_state.
16422 (proceed_thread_callback): Skip inferiors with no execution.
16423 (continue_command): Rename 'all_threads' local to avoid hiding
16424 'all_threads' function. Adjust get_last_target_status call.
16425 (prepare_one_step): Adjust set_running call.
16426 (signal_command): Use user_visible_resume_target. Compare thread
16427 pointers instead of inferior_ptid.
16428 (info_program_command): Adjust to pass down target.
16429 (attach_command): Mark target's 'thread_executing' flag.
16430 (stop_current_target_threads_ns): New, factored out from ...
16431 (interrupt_target_1): ... this. Switch inferior before making
16432 target calls.
16433 * inferior-iter.h
16434 (struct all_inferiors_iterator, struct all_inferiors_range)
16435 (struct all_inferiors_safe_range)
16436 (struct all_non_exited_inferiors_range): Filter on
16437 process_stratum_target too. Remove explicit.
16438 * inferior.c (inferior::inferior): Push dummy target on target
16439 stack.
16440 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16441 Add process_stratum_target parameter, and pass it down.
16442 (have_live_inferiors): Adjust.
16443 (switch_to_inferior_and_push_target): New.
16444 (add_inferior_command, clone_inferior_command): Handle
16445 "-no-connection" parameter. Use
16446 switch_to_inferior_and_push_target.
16447 (_initialize_inferior): Mention "-no-connection" option in
16448 the help of "add-inferior" and "clone-inferior" commands.
16449 * inferior.h: Include "process-stratum-target.h".
16450 (interrupt_target_1): Use bool.
16451 (struct inferior) <push_target, unpush_target, target_is_pushed,
16452 find_target_beneath, top_target, process_target, target_at,
16453 m_stack>: New.
16454 (discard_all_inferiors): Delete.
16455 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16456 (all_inferiors, all_non_exited_inferiors): Add
16457 process_stratum_target parameter.
16458 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16459 (target_last_proc_target): New global.
16460 (follow_fork_inferior): Push target on new inferior. Pass target
16461 to add_thread_silent. Call exec_on_vfork. Handle target's
16462 reference count.
16463 (follow_fork): Adjust get_last_target_status call. Also consider
16464 target.
16465 (follow_exec): Push target on new inferior.
16466 (struct execution_control_state) <target>: New field.
16467 (user_visible_resume_target): New.
16468 (do_target_resume): Call target_async.
16469 (resume_1): Set target's threads_executing flag. Consider resume
16470 target.
16471 (commit_resume_all_targets): New.
16472 (proceed): Also consider resume target. Skip threads of inferiors
16473 with no execution. Commit resumtion in all targets.
16474 (start_remote): Pass current inferior to wait_for_inferior.
16475 (infrun_thread_stop_requested): Consider target as well. Pass
16476 thread_info pointer to clear_inline_frame_state instead of ptid.
16477 (infrun_thread_thread_exit): Consider target as well.
16478 (random_pending_event_thread): New inferior parameter. Use it.
16479 (do_target_wait): Rename to ...
16480 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16481 down.
16482 (threads_are_resumed_pending_p, do_target_wait): New.
16483 (prepare_for_detach): Adjust calls.
16484 (wait_for_inferior): New inferior parameter. Handle it. Use
16485 do_target_wait_1 instead of do_target_wait.
16486 (fetch_inferior_event): Adjust. Switch to representative
16487 inferior. Pass target down.
16488 (set_last_target_status): Add process_stratum_target parameter.
16489 Save target in global.
16490 (get_last_target_status): Add process_stratum_target parameter and
16491 handle it.
16492 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16493 (context_switch): Check inferior_ptid == null_ptid before calling
16494 inferior_thread().
16495 (get_inferior_stop_soon): Pass down target.
16496 (wait_one): Rename to ...
16497 (poll_one_curr_target): ... this.
16498 (struct wait_one_event): New.
16499 (wait_one): New.
16500 (stop_all_threads): Adjust.
16501 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16502 event's target.
16503 (switch_back_to_stepped_thread): Also consider target.
16504 (print_stop_event): Update.
16505 (normal_stop): Update. Also consider the resume target.
16506 * infrun.h (wait_for_inferior): Remove declaration.
16507 (user_visible_resume_target): New declaration.
16508 (get_last_target_status, set_last_target_status): New
16509 process_stratum_target parameter.
16510 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16511 process_stratum_target parameter, and use it.
16512 (clear_inline_frame_state (thread_info*)): New.
16513 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16514 process_stratum_target parameter.
16515 (clear_inline_frame_state (thread_info*)): Declare.
16516 * linux-fork.c (delete_checkpoint_command): Pass target down to
16517 find_thread_ptid.
16518 (checkpoint_command): Adjust.
16519 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16520 instead of just tweaking inferior_ptid.
16521 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16522 (exit_lwp): Pass target down to find_thread_ptid.
16523 (attach_proc_task_lwp_callback): Pass target down to
16524 add_thread/set_running/set_executing.
16525 (linux_nat_target::attach): Pass target down to
16526 thread_change_ptid.
16527 (get_detach_signal): Pass target down to find_thread_ptid.
16528 Consider last target status's target.
16529 (linux_resume_one_lwp_throw, resume_lwp)
16530 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16531 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16532 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16533 (linux_nat_target::async_wait_fd): New.
16534 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16535 target down.
16536 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16537 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16538 * linux-thread-db.c (struct thread_db_info::process_target): New
16539 field.
16540 (add_thread_db_info): Save target.
16541 (get_thread_db_info): New process_stratum_target parameter. Also
16542 match target.
16543 (delete_thread_db_info): New process_stratum_target parameter.
16544 Also match target.
16545 (thread_from_lwp): Adjust to pass down target.
16546 (thread_db_notice_clone): Pass down target.
16547 (check_thread_db_callback): Pass down target.
16548 (try_thread_db_load_1): Always push the thread_db target.
16549 (try_thread_db_load, record_thread): Pass target down.
16550 (thread_db_target::detach): Pass target down. Always unpush the
16551 thread_db target.
16552 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16553 target down. Always unpush the thread_db target.
16554 (find_new_threads_callback, thread_db_find_new_threads_2)
16555 (thread_db_target::update_thread_list): Pass target down.
16556 (thread_db_target::pid_to_str): Pass current inferior down.
16557 (thread_db_target::get_thread_local_address): Pass target down.
16558 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16559 target down.
16560 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16561 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16562 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16563 (procfs_init_inferior): Rename to ...
16564 (procfs_target::procfs_init_inferior): ... this and adjust.
16565 (procfs_target::create_inferior, procfs_notice_thread)
16566 (procfs_do_thread_registers): Adjust.
16567 * ppc-fbsd-tdep.c: Include "inferior.h".
16568 (ppcfbsd_get_thread_local_address): Pass down target.
16569 * proc-service.c (ps_xfer_memory): Switch current inferior and
16570 program space as well.
16571 (get_ps_regcache): Pass target down.
16572 * process-stratum-target.c
16573 (process_stratum_target::thread_address_space)
16574 (process_stratum_target::thread_architecture): Pass target down.
16575 * process-stratum-target.h
16576 (process_stratum_target::threads_executing): New field.
16577 (as_process_stratum_target): New.
16578 * ravenscar-thread.c
16579 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16580 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16581 down.
16582 * record-btrace.c (record_btrace_target::info_record): Adjust.
16583 (record_btrace_target::record_method)
16584 (record_btrace_target::record_is_replaying)
16585 (record_btrace_target::fetch_registers)
16586 (get_thread_current_frame_id, record_btrace_target::resume)
16587 (record_btrace_target::wait, record_btrace_target::stop): Pass
16588 target down.
16589 * record-full.c (record_full_wait_1): Switch to event thread.
16590 Pass target down.
16591 * regcache.c (regcache::regcache)
16592 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16593 process_stratum_target parameter and handle it.
16594 (current_thread_target): New global.
16595 (get_thread_regcache): Add process_stratum_target parameter and
16596 handle it. Switch inferior before calling target method.
16597 (get_thread_regcache): Pass target down.
16598 (get_thread_regcache_for_ptid): Pass target down.
16599 (registers_changed_ptid): Add process_stratum_target parameter and
16600 handle it.
16601 (registers_changed_thread, registers_changed): Pass target down.
16602 (test_get_thread_arch_aspace_regcache): New.
16603 (current_regcache_test): Define a couple local test_target_ops
16604 instances and use them for testing.
16605 (readwrite_regcache): Pass process_stratum_target parameter.
16606 (cooked_read_test, cooked_write_test): Pass mock_target down.
16607 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16608 (get_thread_arch_aspace_regcache): Add process_stratum_target
16609 parameter.
16610 (regcache::target): New method.
16611 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16612 (regcache::registers_changed_ptid): Add process_stratum_target
16613 parameter.
16614 (regcache::m_target): New field.
16615 (registers_changed_ptid): Add process_stratum_target parameter.
16616 * remote.c (remote_state::supports_vCont_probed): New field.
16617 (remote_target::async_wait_fd): New method.
16618 (remote_unpush_and_throw): Add remote_target parameter.
16619 (get_current_remote_target): Adjust.
16620 (remote_target::remote_add_inferior): Push target.
16621 (remote_target::remote_add_thread)
16622 (remote_target::remote_notice_new_inferior)
16623 (get_remote_thread_info): Pass target down.
16624 (remote_target::update_thread_list): Skip threads of inferiors
16625 bound to other targets. (remote_target::close): Don't discard
16626 inferiors. (remote_target::add_current_inferior_and_thread)
16627 (remote_target::process_initial_stop_replies)
16628 (remote_target::start_remote)
16629 (remote_target::remote_serial_quit_handler): Pass down target.
16630 (remote_target::remote_unpush_target): New remote_target
16631 parameter. Unpush the target from all inferiors.
16632 (remote_target::remote_unpush_and_throw): New remote_target
16633 parameter. Pass it down.
16634 (remote_target::open_1): Check whether the current inferior has
16635 execution instead of checking whether any inferior is live. Pass
16636 target down.
16637 (remote_target::remote_detach_1): Pass down target. Use
16638 remote_unpush_target.
16639 (extended_remote_target::attach): Pass down target.
16640 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16641 (remote_target::append_resumption): Pass down target.
16642 (remote_target::append_pending_thread_resumptions)
16643 (remote_target::remote_resume_with_hc, remote_target::resume)
16644 (remote_target::commit_resume): Pass down target.
16645 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16646 (remote_target::interrupt_query)
16647 (remote_target::remove_new_fork_children)
16648 (remote_target::check_pending_events_prevent_wildcard_vcont)
16649 (remote_target::remote_parse_stop_reply)
16650 (remote_target::process_stop_reply): Pass down target.
16651 (first_remote_resumed_thread): New remote_target parameter. Pass
16652 it down.
16653 (remote_target::wait_as): Pass down target.
16654 (unpush_and_perror): New remote_target parameter. Pass it down.
16655 (remote_target::readchar, remote_target::remote_serial_write)
16656 (remote_target::getpkt_or_notif_sane_1)
16657 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16658 down target.
16659 (remote_target::mourn_inferior): Pass down target. Use
16660 remote_unpush_target.
16661 (remote_target::core_of_thread)
16662 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16663 (remote_target::pid_to_exec_file)
16664 (remote_target::thread_handle_to_thread_info): Pass down target.
16665 (remote_target::async_wait_fd): New.
16666 * riscv-fbsd-tdep.c: Include "inferior.h".
16667 (riscv_fbsd_get_thread_local_address): Pass down target.
16668 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16669 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16670 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16671 Adjust.
16672 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16673 * solib-svr4.c (enable_break): Pass down target.
16674 * spu-multiarch.c (parse_spufs_run): Pass down target.
16675 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16676 * target-delegates.c: Regenerate.
16677 * target.c (g_target_stack): Delete.
16678 (current_top_target): Return the current inferior's top target.
16679 (target_has_execution_1): Refer to the passed-in inferior's top
16680 target.
16681 (target_supports_terminal_ours): Check whether the initial
16682 inferior was already created.
16683 (decref_target): New.
16684 (target_stack::push): Incref/decref the target.
16685 (push_target, push_target, unpush_target): Adjust.
16686 (target_stack::unpush): Defref target.
16687 (target_is_pushed): Return bool. Adjust to refer to the current
16688 inferior's target stack.
16689 (dispose_inferior): Delete, and inline parts ...
16690 (target_preopen): ... here. Only dispose of the current inferior.
16691 (target_detach): Hold strong target reference while detaching.
16692 Pass target down.
16693 (target_thread_name): Add assertion.
16694 (target_resume): Pass down target.
16695 (target_ops::beneath, find_target_at): Adjust to refer to the
16696 current inferior's target stack.
16697 (get_dummy_target): New.
16698 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16699 has a thread running.
16700 (initialize_targets): Rename to ...
16701 (_initialize_target): ... this.
16702 * target.h: Include "gdbsupport/refcounted-object.h".
16703 (struct target_ops): Inherit refcounted_object.
16704 (target_ops::shortname, target_ops::longname): Make const.
16705 (target_ops::async_wait_fd): New method.
16706 (decref_target): Declare.
16707 (struct target_ops_ref_policy): New.
16708 (target_ops_ref): New typedef.
16709 (get_dummy_target): Declare function.
16710 (target_is_pushed): Return bool.
16711 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16712 (all_matching_threads_iterator::all_matching_threads_iterator):
16713 Handle filter target.
16714 * thread-iter.h (struct all_matching_threads_iterator, struct
16715 all_matching_threads_range, class all_non_exited_threads_range):
16716 Filter by target too. Remove explicit.
16717 * thread.c (threads_executing): Delete.
16718 (inferior_thread): Pass down current inferior.
16719 (clear_thread_inferior_resources): Pass down thread pointer
16720 instead of ptid_t.
16721 (add_thread_silent, add_thread_with_info, add_thread): Add
16722 process_stratum_target parameter. Use it for thread and inferior
16723 searches.
16724 (is_current_thread): New.
16725 (thread_info::deletable): Use it.
16726 (find_thread_ptid, thread_count, in_thread_list)
16727 (thread_change_ptid, set_resumed, set_running): New
16728 process_stratum_target parameter. Pass it down.
16729 (set_executing): New process_stratum_target parameter. Pass it
16730 down. Adjust reference to 'threads_executing'.
16731 (threads_are_executing): New process_stratum_target parameter.
16732 Adjust reference to 'threads_executing'.
16733 (set_stop_requested, finish_thread_state): New
16734 process_stratum_target parameter. Pass it down.
16735 (switch_to_thread): Also match inferior.
16736 (switch_to_thread): New process_stratum_target parameter. Pass it
16737 down.
16738 (update_threads_executing): Reimplement.
16739 * top.c (quit_force): Pop targets from all inferior.
16740 (gdb_init): Don't call initialize_targets.
16741 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16742 Declare.
16743 (windows_add_thread, windows_delete_thread): Adjust.
16744 (get_windows_debug_event): Rename to ...
16745 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16746 * tracefile-tfile.c (tfile_target_open): Pass down target.
16747 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16748 Forward declare.
16749 (switch_to_thread): Add process_stratum_target parameter.
16750 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16751 parameter. Use it.
16752 (mi_on_resume): Pass target down.
16753 * nat/fork-inferior.c (startup_inferior): Add
16754 process_stratum_target parameter. Pass it down.
16755 * nat/fork-inferior.h (startup_inferior): Add
16756 process_stratum_target parameter.
16757 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16758
75c6c844
PA
167592020-01-10 Pedro Alves <palves@redhat.com>
16760
16761 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16762 directly. Instead find the first thread in the thread list and
16763 use switch_to_thread.
16764
78f2c40a
PA
167652020-01-10 Pedro Alves <palves@redhat.com>
16766
16767 * remote.c (remote_target::remote_add_inferior): Don't bind a
16768 process to the current inferior if the current inferior is already
16769 bound to a process.
16770
e7af6c70
TBA
167712020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16772 Pedro Alves <palves@redhat.com>
16773
16774 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16775 If no process is specified, return null_ptid instead of
16776 inferior_ptid.
16777 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16778 TARGET_WAITKIND_SIGNALLED with no pid.
16779
31ba933e
PA
167802020-01-10 Pedro Alves <palves@redhat.com>
16781
16782 * remote.c (first_remote_resumed_thread): New.
16783 (remote_target::wait_as): Use it as default event_ptid instead of
16784 inferior_ptid.
16785
735fc2ca
PA
167862020-01-10 Pedro Alves <palves@redhat.com>
16787
16788 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16789
c17e02e1
PA
167902020-01-10 Pedro Alves <palves@redhat.com>
16791
16792 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16793 not -1.
16794
ab1ddbcf
PA
167952020-01-10 Pedro Alves <palves@redhat.com>
16796
16797 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16798 ptid to get_last_target_status.
16799 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16800 ptid to get_last_target_status.
16801 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16802 get_last_target_status.
16803 (info_program_command): Don't pass a target_waitstatus to
16804 get_last_target_status.
16805 * infrun.c (init_wait_for_inferior): Use
16806 nullify_last_target_wait_ptid.
16807 (get_last_target_status): Handle nullptr arguments.
16808 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16809 (print_stop_event): Don't pass a ptid to get_last_target_status.
16810 (normal_stop): Don't pass a ptid to get_last_target_status.
16811 * infrun.h (get_last_target_status, set_last_target_status): Move
16812 comments here and update.
16813 (nullify_last_target_wait_ptid): Declare.
16814 * linux-fork.c (fork_load_infrun_state): Remove local extern
16815 declaration of nullify_last_target_wait_ptid.
16816 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16817 to get_last_target_status.
16818
f3f8ece4
PA
168192020-01-10 Pedro Alves <palves@redhat.com>
16820
16821 * gdbthread.h (scoped_restore_current_thread)
16822 <dont_restore, restore, m_dont_restore>: Declare.
16823 * thread.c (thread_alive): Add assertion. Return bool.
16824 (switch_to_thread_if_alive): New.
16825 (prune_threads): Switch inferior/thread.
16826 (print_thread_info_1): Switch thread before calling target methods.
16827 (scoped_restore_current_thread::restore): New, factored out from
16828 ...
16829 (scoped_restore_current_thread::~scoped_restore_current_thread):
16830 ... this.
16831 (scoped_restore_current_thread::scoped_restore_current_thread):
16832 Add assertion.
16833 (thread_apply_all_command, thread_select): Use
16834 switch_to_thread_if_alive.
16835 * infrun.c (proceed, restart_threads, handle_signal_stop)
16836 (switch_back_to_stepped_thread): Switch current thread before
16837 calling target methods.
16838
db2d40f7
PA
168392020-01-10 Pedro Alves <palves@redhat.com>
16840
16841 * inferior.c (switch_to_inferior_no_thread): New function,
16842 factored out from ...
16843 (inferior_command): ... here.
16844 * inferior.h (switch_to_inferior_no_thread): Declare.
16845 * mi/mi-main.c (run_one_inferior): Use
16846 switch_to_inferior_no_thread.
16847
bd420a2d
PA
168482020-01-10 Pedro Alves <palves@redhat.com>
16849
16850 * infcmd.c (kill_command): Remove dead code.
16851
ddf5db90
PA
168522020-01-10 Pedro Alves <palves@redhat.com>
16853
16854 * remote.c (remote_target::mourn_inferior): No longer check
16855 whether the target is running.
16856
5018ce90
PA
168572020-01-10 Pedro Alves <palves@redhat.com>
16858
16859 * corelow.c (core_target::has_execution): Change parameter type to
16860 inferior pointer.
16861 * inferior.c (number_of_live_inferiors): Use
16862 inferior::has_execution instead of target_has_execution_1.
16863 * inferior.h (inferior::has_execution): New.
16864 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16865 inferior::has_execution instead of target_has_execution_1.
16866 * process-stratum-target.c
16867 (process_stratum_target::has_execution): Change parameter type to
16868 inferior pointer. Check the inferior's PID instead of
16869 inferior_ptid.
16870 * process-stratum-target.h
16871 (process_stratum_target::has_execution): Change parameter type to
16872 inferior pointer.
16873 * record-full.c (record_full_core_target::has_execution): Change
16874 parameter type to inferior pointer.
16875 * target.c (target_has_execution_1): Change parameter type to
16876 inferior pointer.
16877 (target_has_execution_current): Adjust.
16878 * target.h (target_ops::has_execution): Change parameter type to
16879 inferior pointer.
16880 (target_has_execution_1): Change parameter type to inferior
16881 pointer. Change return type to bool.
16882 * tracefile.h (tracefile_target::has_execution): Change parameter
16883 type to inferior pointer.
16884
74375d18
PA
168852020-01-10 Pedro Alves <palves@redhat.com>
16886
16887 * exceptions.c (print_flush): Remove current_top_target() check.
16888
acdf84a6
PA
168892020-01-10 Pedro Alves <palves@redhat.com>
16890
16891 * remote.c (show_remote_exec_file): Show the current inferior's
16892 exec-file instead of the command variable's value.
16893
ec506636
PA
168942020-01-10 Pedro Alves <palves@redhat.com>
16895
16896 * record-full.c (record_full_resume_ptid): New global.
16897 (record_full_target::resume): Set it.
16898 (record_full_wait_1): Use record_full_resume_ptid instead of
16899 inferior_ptid.
16900
873657b9
PA
169012020-01-10 Pedro Alves <palves@redhat.com>
16902
16903 * gdbthread.h (scoped_restore_current_thread)
16904 <dont_restore, restore, m_dont_restore>: Declare.
16905 * thread.c (thread_alive): Add assertion. Return bool.
16906 (switch_to_thread_if_alive): New.
16907 (prune_threads): Switch inferior/thread.
16908 (print_thread_info_1): Switch thread before calling target methods.
16909 (scoped_restore_current_thread::restore): New, factored out from
16910 ...
16911 (scoped_restore_current_thread::~scoped_restore_current_thread):
16912 ... this.
16913 (scoped_restore_current_thread::scoped_restore_current_thread):
16914 Add assertion.
16915 (thread_apply_all_command, thread_select): Use
16916 switch_to_thread_if_alive.
16917
7f0ae84c
GB
169182020-01-10 George Barrett <bob@bob131.so>
16919
16920 * stap-probe.c (stap_modify_semaphore): Don't check for null
16921 semaphores.
16922 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16923 for null semaphores.
16924
f5a7c406
AB
169252020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16926
16927 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16928 all source windows, and maintain horizontal scroll status while
16929 doing so.
16930
9ae6bf64
TT
169312020-01-09 Tom Tromey <tom@tromey.com>
16932
16933 PR tui/18932:
16934 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16935 update_source_window, not print_source_lines.
16936
b2efe70c
AB
169372020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16938
16939 * tui/tui.c (tui_enable): Register tui hooks after calling
16940 tui_display_main.
16941
5f23a082
CB
169422020-01-09 Christian Biesinger <cbiesinger@google.com>
16943
16944 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16945
3061113b
SM
169462020-01-08 Simon Marchi <simon.marchi@efficios.com>
16947
16948 * thread.c (print_thread_info_1): Fix indentation.
16949
57d75002
CB
169502020-01-09 Christian Biesinger <cbiesinger@google.com>
16951
16952 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16953 unique_xmalloc_ptr outside the if to always free the demangled name.
16954
6a053cb1
TT
169552020-01-08 Tom Tromey <tromey@adacore.com>
16956
16957 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16958 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16959 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16960 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16961 Remove.
16962 (section_offsets): New typedef.
16963 * symtab.c (fixup_section, get_msymbol_address): Update.
16964 * symmisc.c (dump_msymbols): Update.
16965 * symfile.h (relative_addr_info_to_section_offsets)
16966 (symfile_map_offsets_to_segments): Update.
16967 * symfile.c (build_section_addr_info_from_objfile)
16968 (init_objfile_sect_indices): Update.
16969 (struct place_section_arg): Change type of "offsets".
16970 (place_section): Update.
16971 (relative_addr_info_to_section_offsets): Change type of
16972 "section_offsets". Remove "num_sections" parameter.
16973 (default_symfile_offsets, syms_from_objfile_1)
16974 (set_objfile_default_section_offset): Update.
16975 (reread_symbols): No need to preserve section offsets by hand.
16976 (symfile_map_offsets_to_segments): Change type of "offsets".
16977 * stap-probe.c (relocate_address): Update.
16978 * stabsread.h (process_one_symbol): Update.
16979 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16980 (solib_target_relocate_section_addresses): Update.
16981 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16982 Update.
16983 * solib-frv.c (frv_relocate_main_executable): Update.
16984 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16985 * solib-aix.c (solib_aix_get_section_offsets): Change return
16986 type.
16987 (solib_aix_solib_create_inferior_hook): Update.
16988 * remote.c (remote_target::get_offsets): Update.
16989 * psymtab.c (find_pc_sect_psymtab): Update.
16990 * psympriv.h (struct partial_symbol) <address, text_low,
16991 text_high>: Update.
16992 * objfiles.h (obj_section_offset): Update.
16993 (struct objfile) <section_offsets>: Change type.
16994 <num_sections>: Remove.
16995 (objfile_relocate): Update.
16996 * objfiles.c (entry_point_address_query): Update
16997 (relocate_one_symbol): Change type of "section_offsets".
16998 (objfile_relocate1, objfile_relocate1): Change type of
16999 "new_offsets".
17000 (objfile_rebase1): Update.
17001 * mipsread.c (mipscoff_symfile_read): Update.
17002 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17003 parameter.
17004 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17005 (parse_external, psymtab_to_symtab_1): Update.
17006 * machoread.c (macho_symfile_offsets): Update.
17007 * ia64-tdep.c (ia64_find_unwind_table): Update.
17008 * hppa-tdep.c (read_unwind_info): Update.
17009 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17010 * dwarf2read.c (create_addrmap_from_index)
17011 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17012 (process_psymtab_comp_unit_reader, add_partial_symbol)
17013 (add_partial_subprogram, process_full_comp_unit)
17014 (read_file_scope, read_func_scope, read_lexical_block_scope)
17015 (read_call_site_scope, dwarf2_rnglists_process)
17016 (dwarf2_ranges_process, dwarf2_ranges_read)
17017 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17018 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17019 Update.
17020 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17021 Update.
17022 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17023 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17024 (process_one_symbol): Change type of "section_offsets".
17025 * ctfread.c (get_objfile_text_range): Update.
17026 * coffread.c (coff_symtab_read, enter_linenos)
17027 (process_coff_symbol): Update.
17028 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17029 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17030
456e800a
TT
170312020-01-08 Tom Tromey <tromey@adacore.com>
17032
17033 * dwarf2read.c (parse_macro_definition): Use std::string.
17034 (parse_macro_definition): Likewise.
17035
6dfa2fc2
TT
170362020-01-08 Tom Tromey <tromey@adacore.com>
17037
17038 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17039 (ATTR_ALLOC_CHUNK): Remove.
17040
421d1616
TT
170412020-01-08 Tom Tromey <tromey@adacore.com>
17042
17043 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17044
43816ebc
TT
170452020-01-08 Tom Tromey <tromey@adacore.com>
17046
17047 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17048 (dwarf2_compute_name, open_dwo_file): Likewise.
17049 (process_enumeration_scope): Use std::vector.
17050 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17051 (partial_die_info::fixup, dwarf2_start_subfile)
17052 (guess_full_die_structure_name, dwarf2_name): Likewise.
17053 (determine_prefix): Update.
17054 (guess_full_die_structure_name): Make return type const.
17055 (partial_die_full_name): Return unique_xmalloc_ptr.
17056 (DW_FIELD_ALLOC_CHUNK): Remove.
17057
4212d509
TT
170582020-01-07 Tom Tromey <tromey@adacore.com>
17059
17060 PR build/24937:
17061 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17062
06a6207a
JT
170632020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17064
17065 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17066
153d79c4
AB
170672020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17068
17069 * stack.c (print_frame_info): Move disassemble_next_line code
17070 inside source_print block.
17071
66182876
EZ
170722020-01-06 Eli Zaretskii <eliz@gnu.org>
17073
17074 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17075 gdb/signals.h, as we are now using native signal symbols.
17076
cbfa8581
SV
170772020-01-06 Shahab Vahedi <shahab@synopsys.com>
17078
17079 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17080 overflow by an early check of content vs threshold.
aac66a4c 17081 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17082 Likewise.
17083
3f602821
EZ
170842020-01-06 Eli Zaretskii <eliz@gnu.org>
17085
17086 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17087
a08c904d
JT
170882020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17089
17090 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17091 export table if no section contains it's RVA.
17092
89a65580
EZ
170932020-01-06 Eli Zaretskii <eliz@gnu.org>
17094
17095 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17096
8b7fcda2
HD
170972020-01-06 Hannes Domani <ssbssa@yahoo.de>
17098
17099 * source.c (print_source_lines_base): Set last_line_listed.
17100
a61b4f69
SV
171012020-01-06 Shahab Vahedi <shahab@synopsys.com>
17102
17103 * tui/tui-disasm.c: Remove trailing spaces.
17104
559e7e50
EZ
171052020-01-06 Eli Zaretskii <eliz@gnu.org>
17106 Pedro Alves <palves@redhat.com>
17107
17108 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17109 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17110 (windows_gdb_signal_to_target): New function, uses the above
17111 enumeration to convert GDB internal signal codes to equivalent
17112 Windows codes.
17113 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17114 * windows-nat.c: Include "gdb_wait.h".
17115 (get_windows_debug_event): Extract the fatal exception from the
17116 exit status and convert to the equivalent Posix signal number.
17117 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17118 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17119 * gdbsupport/gdb_wait.c: New file, implements
17120 windows_status_to_termsig.
17121 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17122 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17123
f2302a34
AB
171242020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17125
17126 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17127 show_layout.
17128
6a5206eb
LM
171292020-01-05 Luis Machado <luis.machado@linaro.org>
17130
17131 * aarch64-linux-nat.c
17132 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17133 and bfd_mach_aarch64.
17134
6ec1d75e
PW
171352020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17136
17137 * ui-file.c (stdio_file::can_emit_style_escape)
17138 (tee_file::can_emit_style_escape): Ensure style is used also on
17139 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17140 to gdb_stdout.
17141 * main.c (set_gdb_data_directory): Use file style to output the
17142 warning that the given pathname is not a directory.
17143 * top.c (show_history_filename, gdb_safe_append_history)
17144 (show_gdb_datadir): Use file style.
17145
44f81a76
HD
171462020-01-03 Hannes Domani <ssbssa@yahoo.de>
17147
17148 * solib-target.c (struct lm_info_target):
17149 Change offsets to be a unique_xmalloc_ptr.
17150 (solib_target_relocate_section_addresses): Update.
17151
25057eb0
HD
171522020-01-03 Hannes Domani <ssbssa@yahoo.de>
17153
17154 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17155
6e2118f5
BE
171562020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17157
17158 * MAINTAINERS (Write After Approval): Add myself.
17159
8133c7dc
LM
171602020-01-02 Luis Machado <luis.machado@linaro.org>
17161
17162 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17163 Cell BE architecture.
17164 * target.h (struct target_ops) <thread_architecture>: Likewise.
17165
48189bec
HD
171662020-01-01 Hannes Domani <ssbssa@yahoo.de>
17167
17168 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17169
ead1063b
HD
171702020-01-01 Hannes Domani <ssbssa@yahoo.de>
17171
17172 * MAINTAINERS (Write After Approval): Add myself.
17173
e5d78223
JB
171742020-01-01 Joel Brobecker <brobecker@adacore.com>
17175
17176 * gdbarch.sh: Update copyright year range of generated files.
17177
b811d2c2
JB
171782020-01-01 Joel Brobecker <brobecker@adacore.com>
17179
17180 Update copyright year range in all GDB files.
17181
5f4def5c
JB
171822020-01-01 Joel Brobecker <brobecker@adacore.com>
17183
17184 * copyright.py: Convert to Python 3.
17185
51fd4002
JB
171862020-01-01 Joel Brobecker <brobecker@adacore.com>
17187
17188 * copyright.py: Adapt after move of gnulib directory from gdb
17189 directory to toplevel directory.
17190
5fb651f2
JB
171912020-01-01 Joel Brobecker <brobecker@adacore.com>
17192
17193 * copyright.py (main): Exit if run from the wrong directory.
17194
5dd8bf88
JB
171952020-01-01 Joel Brobecker <brobecker@adacore.com>
17196
17197 * top.c (print_gdb_version): Change copyright year to 2020.
17198
9f71dacb 171992020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17200
9f71dacb 17201 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17202
9f71dacb 17203For older changes see ChangeLog-2019.
c906108c
SS
17204\f
17205Local Variables:
17206mode: change-log
17207left-margin: 8
17208fill-column: 74
17209version-control: never
57da7796 17210coding: utf-8
c906108c 17211End:
This page took 3.751095 seconds and 4 git commands to generate.