language_lookup_primitive_type, std::function -> gdb::function_view
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cbbcd7a7
PA
12020-11-20 Pedro Alves <pedro@palves.net>
2
3 * language.c (language_arch_info::lookup_primitive_type): Use
4 gdb::function_view instead of gdb::function.
5 (template language_lookup_primitive_type): Rename to ...
6 (language_lookup_primitive_type_1): ... this, and make static.
7 (language_lookup_primitive_type(const struct language_defn *,
8 struct gdbarch *, const char *): Make non-template.
9 (language_lookup_primitive_type(const struct language_defn *,
10 struct gdbarch *, std::function<bool (struct type *)>): Make
11 non-template and use gdb::function_view.
12 * language.h (language_arch_info::lookup_primitive_type): Use
13 gdb::function_view instead of std::function.
14 (language_lookup_primitive_type): No longer template.
15 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
16 lambda instead of a std::function.
17
d5ef21c3
AA
182020-11-19 Andreas Arnez <arnez@linux.ibm.com>
19
20 PR tdep/26916
21 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
22 and STOCFH.
23
a5adb8f3
SM
242020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
27
70125a45
SM
282020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
29
30 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
31 in `loop_cb` parameter.
32 * gdbarch.c: Re-generate.
33 * gdbarch.h: Re-generate.
34 * arch-utils.c (default_read_core_file_mappings): Remove `other`
35 parameter.
36 * arch-utils.h (default_read_core_file_mappings): Likewise.
37 * corelow.c (core_target::build_file_mappings): Likewise.
38 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
39 (linux_core_info_proc_mappings): Likewise.
40
a5c641b5
AB
412020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
44 * NEWS: Mention new options.
45 * f-array-walker.h: New file.
46 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
47 (repack_array_slices): New static global.
48 (show_repack_array_slices): New function.
49 (fortran_array_slicing_debug): New static global.
50 (show_fortran_array_slicing_debug): New function.
51 (value_f90_subarray): Delete.
52 (skip_undetermined_arglist): Delete.
53 (class fortran_array_repacker_base_impl): New class.
54 (class fortran_lazy_array_repacker_impl): New class.
55 (class fortran_array_repacker_impl): New class.
56 (fortran_value_subarray): Complete rewrite.
57 (set_fortran_list): New static global.
58 (show_fortran_list): Likewise.
59 (_initialize_f_language): Register new commands.
60 (fortran_adjust_dynamic_array_base_address_hack): New function.
61 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
62 Declare.
63 * f-valprint.c: Include 'f-array-walker.h'.
64 (class fortran_array_printer_impl): New class.
65 (f77_print_array_1): Delete.
66 (f77_print_array): Delete.
67 (fortran_print_array): New.
68 (f_value_print_inner): Update to call fortran_print_array.
69 * gdbtypes.c: Include 'f-lang.h'.
70 (resolve_dynamic_type_internal): Call
71 fortran_adjust_dynamic_array_base_address_hack.
72
a15a5258
AB
732020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
74
75 * breakpoint.c (struct watch_options): New struct.
76 (watch_option_defs): New static global.
77 (make_watch_options_def_group): New function.
78 (watch_maybe_just_location): Convert option parsing.
79 (watch_command_completer): New function.
80 (_initialize_breakpoint): Build help text using options mechanism.
81
2e362716
AB
822020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
85 (watch_command_1): Update parameter types. Convert locals to
86 bool.
87 (watch_command_wrapper): Change parameter type.
88 (watch_maybe_just_location): Change locals to bool.
89 (rwatch_command_wrapper): Update parameter type.
90 (awatch_command_wrapper): Update parameter type.
91 * breakpoint.h (watch_command_wrapper): Change parameter type.
92 (rwatch_command_wrapper): Update parameter type.
93 (awatch_command_wrapper): Update parameter type.
94 * eval.c (fetch_subexp_value): Change parameter type.
95 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
96 'false' not '0'.
97 * value.h (fetch_subexp_value): Change parameter type in
98 declaration.
99
b3ff61f8
AB
1002020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
101
102 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
103 skip_spaces.
104
5b7d45d3
KS
1052020-11-18 Keith Seitz <keiths@redhat.com>
106
107 * linux-tdep.c (dump_note_entry_p): Return true instead of
108 checking `filename'.
109
c44191f8
TV
1102020-11-18 Tom de Vries <tdevries@suse.de>
111
112 * debuginfod-support.c (debuginfod_source_query)
113 (debuginfod_debuginfo_query): Also do early exit if
114 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
115
5d8254e1
TV
1162020-11-18 Tom de Vries <tdevries@suse.de>
117
118 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
119 warning.
120
584903d3
SM
1212020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * gdbtypes.h (get_array_bounds): Return bool, adjust some
124 callers. Move doc here.
125 * gdbtypes.c (get_array_bounds): Return bool
126
6f2643db
AB
1272020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
130 assert.
131 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
132 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
133 case to the default.
134
037d7135
AB
1352020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
136
137 * printcmd.c: Include 'safe-ctype.c'.
138 (skip_over_slash_fmt): New function.
139 (print_command_completer): Call skip_over_slash_fmt.
140 (display_and_x_command_completer): New function.
141 (_initialize_printcmd): Add command completion for 'x' and
142 'display'.
143
2b3cb400
PA
1442020-11-16 Pedro Alves <pedro@palves.net>
145
146 * frame.c (get_prev_frame): Move get_frame_id call from here ...
147 (get_prev_frame_always_1): ... to here.
148 * inline-frame.c (inline_frame_this_id): Mention
149 get_prev_frame_always_1 in comment.
150
b74dbc20
JB
1512020-11-15 Joel Brobecker <brobecker@adacore.com>
152
153 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
154 handling.
155 (value_less): Add fixed-point handling.
156
0a12719e
JB
1572020-11-15 Joel Brobecker <brobecker@adacore.com>
158
159 * eval.c (binop_promote): Add fixed-point type handling.
160 * valarith.c (fixed_point_binop): New function.
161 (scalar_binop): Add fixed-point type handling.
162 (value_neg): Add fixed-point type handling.
163 * valops.c (value_cast_to_fixed_point): New function.
164 (value_cast): Add fixed-point type handling.
165
0c9150e4
JB
1662020-11-15 Joel Brobecker <brobecker@adacore.com>
167
168 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
169 range types.
170 * c-typeprint.c (c_type_print_varspec_prefix)
171 (c_type_print_varspec_suffix, c_type_print_base_1): Add
172 TYPE_CODE_FIXED_POINT handling.
173 * p-typeprint.c (pascal_type_print_varspec_prefix)
174 (pascal_type_print_varspec_suffix): Likewise.
175 * typeprint.c (print_type_fixed_point): New function.
176 * typeprint.h (print_type_fixed_point): Add declaration.
177
b26daff9
JB
1782020-11-15 Joel Brobecker <brobecker@adacore.com>
179
180 * printcmd.c (print_scalar_formatted): Add fixed-point type
181 handling when options->format is set.
182
09584414
JB
1832020-11-15 Joel Brobecker <brobecker@adacore.com>
184
185 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
186 * dwarf2/read.c (get_dwarf2_rational_constant)
187 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
188 (has_zero_over_zero_small_attribute): New functions.
189 read_base_type, set_die_type): Add fixed-point type handling.
190 * gdb-gdb.py.in: Add fixed-point type handling.
191 * gdbtypes.c: #include "gmp-utils.h".
192 (create_range_type, set_type_code): Add fixed-point type handling.
193 (init_fixed_point_type): New function.
194 (is_integral_type, is_scalar_type): Add fixed-point type handling.
195 (print_fixed_point_type_info): New function.
196 (recursive_dump_type, copy_type_recursive): Add fixed-point type
197 handling.
198 (fixed_point_type_storage): New typedef.
199 (fixed_point_objfile_key): New static global.
200 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
201 (fixed_point_type_base_type, fixed_point_scaling_factor): New
202 functions.
203 * gdbtypes.h: #include "gmp-utils.h".
204 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
205 (union type_specific) <fixed_point_info>: New field.
206 (struct fixed_point_type_info): New struct.
207 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
208 (init_fixed_point_type, is_fixed_point_type)
209 (fixed_point_type_base_type, fixed_point_scaling_factor)
210 (allocate_fixed_point_type_info): Add declarations.
211 * valprint.c (generic_val_print_fixed_point): New function.
212 (generic_value_print): Add fixed-point type handling.
213 * value.c (value_as_address, unpack_long): Add fixed-point type
214 handling.
215
e55c6530
JB
2162020-11-15 Joel Brobecker <brobecker@adacore.com>
217
218 * utils.h (uinteger_pow): Add declaration.
219 * utils.c (uinteger_pow): Moved here (without changes)...
220 * valarith.c (uinteger_pow): ... from here.
221
b34c74ab
JB
2222020-11-15 Joel Brobecker <brobecker@adacore.com>
223
40d9d2fd 224 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
225 * unittests/gmp-utils-selftests.c: New file.
226 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
227 unittests/gmp-utils-selftests.c.
228 (COMMON_SFILES) Add gmp-utils.c.
229 (HFILES_NO_SRCDIR): Add gmp-utils.h.
230
1b4ac058
JB
2312020-11-15 Joel Brobecker <brobecker@adacore.com>
232
233 * configure.ac: Generate an error if a usable GMP library
234 could not be found.
235 * configure: Regenerate.
236
2c947d9b
JB
2372020-11-15 Joel Brobecker <brobecker@adacore.com>
238
239 * configure.ac: Add support for --with-libgmp-prefix.
240 * Makefile.in (LIBGMP): New variable.
241 (CLIBS): Include $(LIBGMP).
242 * configure, config.in: Regenerate
243
9dd02fc0
AB
2442020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
245
246 PR cli/26879
247 * f-exp.y (COMPLETE): New token.
248 (exp): Two new rules for tab-completion.
249 (saw_name_at_eof): New static global.
250 (last_was_structop): Likewise.
251 (yylex): Set new variables, and return COMPLETE token at the end
252 of the input stream in some cases.
253
758cb810
TT
2542020-11-14 Tom Tromey <tom@tromey.com>
255
256 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
257
749065b7
TT
2582020-11-14 Tom Tromey <tom@tromey.com>
259
260 * opencl-lang.c (opencl_component_ref): Make "comps" const.
261
2c5b1849
SM
2622020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
263
264 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
265
e8b2f0d9
TT
2662020-11-13 Tom Tromey <tom@tromey.com>
267
268 * c-lang.c (convert_ucn, convert_octal, convert_hex)
269 (convert_escape, parse_one_string): Constify.
270
25f4c262
KS
2712020-11-13 Keith Seitz <keiths@redhat.com>
272
273 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
274 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
275 outside of ELF segments" warning for debugin
276
9d3ab915
KS
2772020-11-13 Keith Seitz <keiths@redhat.com>
278
279 PR gdb/23034
280 * elfread.c (elf_symfile_segments): Output a BFD file name
281 for the "Loadable section ... outside of ELF segments" warning.
282
9ecab40c
SM
2832020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
284
285 PR gdb/26835
286 * arm-tdep.c (class arm_instruction_reader): New.
287 (target_arm_instruction_reader): New.
288 (arm_analyze_prologue): Add instruction reader parameter and use
289 it. Use arm_expand_immediate.
290 (class target_arm_instruction_reader): Adjust.
291 (arm_skip_prologue): Adjust.
292 (arm_expand_immediate): New.
293 (arm_scan_prologue): Adjust.
294 (arm_analyze_prologue_test): New.
295 (class test_arm_instruction_reader): New.
296
5a7cf527
AB
2972020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
298
299 * f-lang.c (fortran_argument_convert): Add declaration. Add
300 header comment, taken from f-lang.h. Make static.
301 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
302 (fortran_argument_convert): Delete declaration.
303
7bea47f0
AB
3042020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
305
306 * ada-exp.y (find_primitive_type): Make parameter const.
307 * ada-lang.c (enum ada_primitive_types): Delete.
308 (ada_language::language_arch_info): Update.
309 * c-lang.c (enum c_primitive_types): Delete.
310 (c_language_arch_info): Update.
311 (enum cplus_primitive_types): Delete.
312 (cplus_language::language_arch_info): Update.
313 * d-lang.c (enum d_primitive_types): Delete.
314 (d_language::language_arch_info): Update.
315 * f-lang.c (enum f_primitive_types): Delete.
316 (f_language::language_arch_info): Update.
317 * go-lang.c (enum go_primitive_types): Delete.
318 (go_language::language_arch_info): Update.
319 * language.c (auto_or_unknown_language::language_arch_info):
320 Update.
321 (language_gdbarch_post_init): Use obstack_new, use array indexing.
322 (language_string_char_type): Add header comment, call function in
323 language_arch_info.
324 (language_bool_type): Likewise
325 (language_arch_info::bool_type): Define.
326 (language_lookup_primitive_type_1): Delete.
327 (language_lookup_primitive_type): Rewrite as a templated function
328 to call function in language_arch_info, then instantiate twice.
329 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
330 (language_arch_info::lookup_primitive_type_and_symbol): Define.
331 (language_arch_info::lookup_primitive_type): Define twice with
332 different signatures.
333 (language_arch_info::lookup_primitive_type_as_symbol): Define.
334 (language_lookup_primitive_type_as_symbol): Rewrite to call a
335 member function in language_arch_info.
336 * language.h (language_arch_info): Complete rewrite.
337 (language_lookup_primitive_type): Make templated.
338 * m2-lang.c (enum m2_primitive_types): Delete.
339 (m2_language::language_arch_info): Update.
340 * opencl-lang.c (OCL_P_TYPE): Delete.
341 (enum opencl_primitive_types): Delete.
342 (opencl_type_data): Delete.
343 (builtin_opencl_type): Delete.
344 (lookup_opencl_vector_type): Update.
345 (opencl_language::language_arch_info): Update, lots of content
346 moved from...
347 (build_opencl_types): ...here. This function is now deleted.
348 (_initialize_opencl_language): Delete.
349 * p-lang.c (enum pascal_primitive_types): Delete.
350 (pascal_language::language_arch_info): Update.
351 * rust-lang.c (enum rust_primitive_types): Delete.
352 (rust_language::language_arch_info): Update.
353
bf6e5d01
SM
3542020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
355
356 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
357 dwarf2_queue_guard.
358
1350c3b4
SM
3592020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
360
361 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
362 comment.
363
6f738b01
SM
3642020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
365
366 * dwarf2/read.c (dwarf_read_debug_printf,
367 dwarf_read_debug_printf_v): New macros, use throughout the file.
368
10c19fad
SV
3692020-11-12 Shahab Vahedi <shahab@synopsys.com>
370
371 * arc-linux-tdep.c (collect_register): Populate "eret" by
372 "pc" value from the regcache when asked for "pc" value.
373
1f2624a3
TT
3742020-11-12 Tom Tromey <tom@tromey.com>
375
376 PR rust/26799:
377 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
378 exist.
379
ab33b152
AB
3802020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
381
382 * features/Makefile (XMLTOC): Add rx.xml.
383 (FEATURE_XMLFILES): Remove rx.xml.
384 (FEATURE_CFILES rule): Pass '-single-feature' flag.
385 * features/rx.c: Regenerate.
386 * features/rx.xml: Wrap in `target` tags, and reindent.
387 * target-descriptions.c (struct maint_print_c_tdesc_options): New
388 structure.
389 (maint_print_c_tdesc_opt_def): New typedef.
390 (maint_print_c_tdesc_opt_defs): New static global.
391 (make_maint_print_c_tdesc_options_def_group): New function.
392 (maint_print_c_tdesc_cmd): Make use of command line flags, only
393 print single feature C file for target descriptions containing a
394 single feature.
395 (maint_print_c_tdesc_cmd_completer): New function.
396 (_initialize_target_descriptions): Update call to register command
397 completer, and include command line flag in help text.
398
550820e1
AB
3992020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
400
401 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
402 numbers.
403 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
404 enum values.
405
baf20f76
TT
4062020-11-10 Tom Tromey <tom@tromey.com>
407
408 * value.h (internalvar_name): Update.
409 * value.c (internalvar_name): Make return type const.
410
caaece0e
TT
4112020-11-10 Tom Tromey <tom@tromey.com>
412
413 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
414 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
415 const.
416
8e20b4be
TT
4172020-11-10 Tom Tromey <tom@tromey.com>
418
419 * objc-lang.h (value_nsstring): Update.
420 * objc-lang.c (value_nsstring): Make "ptr" const.
421
86775fab
AB
4222020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
423
424 * expprint.c (print_subexp_funcall): Increment expression position
425 after reading argument count.
426 * f-lang.c (print_subexp_f): Skip over opcode before calling
427 common function.
428 (dump_subexp_body_f): Likewise.
429
3fed4c0b
RG
4302020-11-06 Romain Geissler <romain.geissler@amadeus.com>
431
432 PR python/26832
433 * configure: Regenerate.
434 * configure.ac: Check for python modules ctypes instead of
435 itertools.
436
ac3d4064
PA
4372020-11-06 Pedro Alves <pedro@palves.net>
438
439 * macroexp.c (struct macro_buffer): Split in two classes. Add
440 uses adjusted.
441 (struct shared_macro_buffer): New, factored out from struct
442 macro_buffer.
443 (struct growable_macro_buffer): New, factored out from struct
444 macro_buffer.
445 (set_token, get_comment, get_identifier, get_pp_number)
446 (get_character_constant, get_string_literal, get_punctuator)
447 (get_next_token_for_substitution): Constify parameters.
448 (substitute_args): Constify locals.
449
606decb2
TT
4502020-11-05 Tom Tromey <tom@tromey.com>
451
452 * dwarf2/read.c (read_cutu_die_from_dwo)
453 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
454 (build_type_psymtabs_1): Update.
455 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
456 parameter.
457 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
458 Don't read section. Add assert.
459
9c91c725
TT
4602020-11-04 Tom Tromey <tromey@adacore.com>
461
462 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
463
8d9fd3a1
TT
4642020-11-04 Tom Tromey <tromey@adacore.com>
465
466 * ada-typeprint.c (ada_print_type): Handle __T types.
467
d8f62e84
TT
4682020-11-04 Tom Tromey <tromey@adacore.com>
469
470 * dwarf2/read.c (add_partial_symbol, process_die):
471 Handle DW_TAG_array_type.
472 (is_type_tag_for_partial): Add "lang" parameter.
473 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
474
7ff5b937
TT
4752020-11-04 Tom Tromey <tromey@adacore.com>
476
477 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
478
10f6a3ad
TT
4792020-11-04 Tom Tromey <tromey@adacore.com>
480
481 * dwarf2/read.c (read_array_type): Only apply stride to innermost
482 array.
483
b72795a8
TT
4842020-11-04 Tom Tromey <tromey@adacore.com>
485
486 * gdbtypes.c (update_static_array_size): Handle bit stride.
487
24aa1b02
TT
4882020-11-04 Tom Tromey <tromey@adacore.com>
489
490 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
491
c9a28cbe
TT
4922020-11-04 Tom Tromey <tromey@adacore.com>
493
494 * ada-lang.c (ada_is_any_packed_array_type): New function.
495 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
496
57567375
TT
4972020-11-04 Tom Tromey <tromey@adacore.com>
498
499 * dwarf2/read.c (recognize_bound_expression)
500 (quirk_ada_thick_pointer): New functions.
501 (read_array_type): Call quirk_ada_thick_pointer.
502 (set_die_type): Add "skip_data_location" parameter.
503 (quirk_ada_thick_pointer): New function.
504 (process_structure_scope): Call quirk_ada_thick_pointer.
505 * ada-lang.c (ada_is_unconstrained_packed_array_type)
506 (decode_packed_array_bitsize): Handle thick pointers without
507 parallel types.
508 (ada_is_gnat_encoded_packed_array_type): Rename from
509 ada_is_packed_array_type.
510 (ada_is_constrained_packed_array_type): Update.
511 * ada-valprint.c (ada_val_print_gnat_array): Remove.
512 (ada_value_print_1): Use ada_get_decoded_value.
513
a7400e44
TT
5142020-11-04 Tom Tromey <tromey@adacore.com>
515
516 * ada-lang.c (recursively_update_array_bitsize): New function.
517 (decode_constrained_packed_array_type): Call it.
518
75fd6a26
TT
5192020-11-04 Tom Tromey <tromey@adacore.com>
520
521 * ada-lang.c (to_fixed_array_type): Error if
522 decode_constrained_packed_array_type returns NULL.
523
93f9561e
TT
5242020-11-04 Tom Tromey <tromey@adacore.com>
525
526 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
527
257e02d8
TT
5282020-11-02 Tom Tromey <tromey@adacore.com>
529
530 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
531 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
532 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
533 * amd64-ravenscar-thread.c: New file.
534 * amd64-ravenscar-thread.h: New file.
535 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
536 * configure.tgt (amd64_tobjs): Add ravenscar objects.
537
74d877e5
AB
5382020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
539
540 * main.c (execute_cmdargs): New function.
541 (captured_main_1): Make use of execute_cmdargs.
542
64aaad63
AB
5432020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * NEWS: Mention changes to config file search path.
546 * main.c
547
5b3d3560
TT
5482020-11-02 Tom Tromey <tromey@adacore.com>
549
550 * python/python.c: Consolidate two HAVE_PYTHON blocks.
551 (python_GdbModuleDef): Move earlier. Now static.
552 (do_start_initialization): Consolidate some IS_PY3K blocks.
553
dda83cd7
SM
5542020-11-02 Simon Marchi <simon.marchi@efficios.com>
555
556 * aarch64-linux-tdep.c: Fix indentation.
557 * aarch64-ravenscar-thread.c: Fix indentation.
558 * aarch64-tdep.c: Fix indentation.
559 * aarch64-tdep.h: Fix indentation.
560 * ada-lang.c: Fix indentation.
561 * ada-lang.h: Fix indentation.
562 * ada-tasks.c: Fix indentation.
563 * ada-typeprint.c: Fix indentation.
564 * ada-valprint.c: Fix indentation.
565 * ada-varobj.c: Fix indentation.
566 * addrmap.c: Fix indentation.
567 * addrmap.h: Fix indentation.
568 * agent.c: Fix indentation.
569 * aix-thread.c: Fix indentation.
570 * alpha-bsd-nat.c: Fix indentation.
571 * alpha-linux-tdep.c: Fix indentation.
572 * alpha-mdebug-tdep.c: Fix indentation.
573 * alpha-nbsd-tdep.c: Fix indentation.
574 * alpha-obsd-tdep.c: Fix indentation.
575 * alpha-tdep.c: Fix indentation.
576 * amd64-bsd-nat.c: Fix indentation.
577 * amd64-darwin-tdep.c: Fix indentation.
578 * amd64-linux-nat.c: Fix indentation.
579 * amd64-linux-tdep.c: Fix indentation.
580 * amd64-nat.c: Fix indentation.
581 * amd64-obsd-tdep.c: Fix indentation.
582 * amd64-tdep.c: Fix indentation.
583 * amd64-windows-tdep.c: Fix indentation.
584 * annotate.c: Fix indentation.
585 * arc-tdep.c: Fix indentation.
586 * arch-utils.c: Fix indentation.
587 * arch/arm-get-next-pcs.c: Fix indentation.
588 * arch/arm.c: Fix indentation.
589 * arm-linux-nat.c: Fix indentation.
590 * arm-linux-tdep.c: Fix indentation.
591 * arm-nbsd-tdep.c: Fix indentation.
592 * arm-pikeos-tdep.c: Fix indentation.
593 * arm-tdep.c: Fix indentation.
594 * arm-tdep.h: Fix indentation.
595 * arm-wince-tdep.c: Fix indentation.
596 * auto-load.c: Fix indentation.
597 * auxv.c: Fix indentation.
598 * avr-tdep.c: Fix indentation.
599 * ax-gdb.c: Fix indentation.
600 * ax-general.c: Fix indentation.
601 * bfin-linux-tdep.c: Fix indentation.
602 * block.c: Fix indentation.
603 * block.h: Fix indentation.
604 * blockframe.c: Fix indentation.
605 * bpf-tdep.c: Fix indentation.
606 * break-catch-sig.c: Fix indentation.
607 * break-catch-syscall.c: Fix indentation.
608 * break-catch-throw.c: Fix indentation.
609 * breakpoint.c: Fix indentation.
610 * breakpoint.h: Fix indentation.
611 * bsd-uthread.c: Fix indentation.
612 * btrace.c: Fix indentation.
613 * build-id.c: Fix indentation.
614 * buildsym-legacy.h: Fix indentation.
615 * buildsym.c: Fix indentation.
616 * c-typeprint.c: Fix indentation.
617 * c-valprint.c: Fix indentation.
618 * c-varobj.c: Fix indentation.
619 * charset.c: Fix indentation.
620 * cli/cli-cmds.c: Fix indentation.
621 * cli/cli-decode.c: Fix indentation.
622 * cli/cli-decode.h: Fix indentation.
623 * cli/cli-script.c: Fix indentation.
624 * cli/cli-setshow.c: Fix indentation.
625 * coff-pe-read.c: Fix indentation.
626 * coffread.c: Fix indentation.
627 * compile/compile-cplus-types.c: Fix indentation.
628 * compile/compile-object-load.c: Fix indentation.
629 * compile/compile-object-run.c: Fix indentation.
630 * completer.c: Fix indentation.
631 * corefile.c: Fix indentation.
632 * corelow.c: Fix indentation.
633 * cp-abi.h: Fix indentation.
634 * cp-namespace.c: Fix indentation.
635 * cp-support.c: Fix indentation.
636 * cp-valprint.c: Fix indentation.
637 * cris-linux-tdep.c: Fix indentation.
638 * cris-tdep.c: Fix indentation.
639 * darwin-nat-info.c: Fix indentation.
640 * darwin-nat.c: Fix indentation.
641 * darwin-nat.h: Fix indentation.
642 * dbxread.c: Fix indentation.
643 * dcache.c: Fix indentation.
644 * disasm.c: Fix indentation.
645 * dtrace-probe.c: Fix indentation.
646 * dwarf2/abbrev.c: Fix indentation.
647 * dwarf2/attribute.c: Fix indentation.
648 * dwarf2/expr.c: Fix indentation.
649 * dwarf2/frame.c: Fix indentation.
650 * dwarf2/index-cache.c: Fix indentation.
651 * dwarf2/index-write.c: Fix indentation.
652 * dwarf2/line-header.c: Fix indentation.
653 * dwarf2/loc.c: Fix indentation.
654 * dwarf2/macro.c: Fix indentation.
655 * dwarf2/read.c: Fix indentation.
656 * dwarf2/read.h: Fix indentation.
657 * elfread.c: Fix indentation.
658 * eval.c: Fix indentation.
659 * event-top.c: Fix indentation.
660 * exec.c: Fix indentation.
661 * exec.h: Fix indentation.
662 * expprint.c: Fix indentation.
663 * f-lang.c: Fix indentation.
664 * f-typeprint.c: Fix indentation.
665 * f-valprint.c: Fix indentation.
666 * fbsd-nat.c: Fix indentation.
667 * fbsd-tdep.c: Fix indentation.
668 * findvar.c: Fix indentation.
669 * fork-child.c: Fix indentation.
670 * frame-unwind.c: Fix indentation.
671 * frame-unwind.h: Fix indentation.
672 * frame.c: Fix indentation.
673 * frv-linux-tdep.c: Fix indentation.
674 * frv-tdep.c: Fix indentation.
675 * frv-tdep.h: Fix indentation.
676 * ft32-tdep.c: Fix indentation.
677 * gcore.c: Fix indentation.
678 * gdb_bfd.c: Fix indentation.
679 * gdbarch.sh: Fix indentation.
680 * gdbarch.c: Re-generate
681 * gdbarch.h: Re-generate.
682 * gdbcore.h: Fix indentation.
683 * gdbthread.h: Fix indentation.
684 * gdbtypes.c: Fix indentation.
685 * gdbtypes.h: Fix indentation.
686 * glibc-tdep.c: Fix indentation.
687 * gnu-nat.c: Fix indentation.
688 * gnu-nat.h: Fix indentation.
689 * gnu-v2-abi.c: Fix indentation.
690 * gnu-v3-abi.c: Fix indentation.
691 * go32-nat.c: Fix indentation.
692 * guile/guile-internal.h: Fix indentation.
693 * guile/scm-cmd.c: Fix indentation.
694 * guile/scm-frame.c: Fix indentation.
695 * guile/scm-iterator.c: Fix indentation.
696 * guile/scm-math.c: Fix indentation.
697 * guile/scm-ports.c: Fix indentation.
698 * guile/scm-pretty-print.c: Fix indentation.
699 * guile/scm-value.c: Fix indentation.
700 * h8300-tdep.c: Fix indentation.
701 * hppa-linux-nat.c: Fix indentation.
702 * hppa-linux-tdep.c: Fix indentation.
703 * hppa-nbsd-nat.c: Fix indentation.
704 * hppa-nbsd-tdep.c: Fix indentation.
705 * hppa-obsd-nat.c: Fix indentation.
706 * hppa-tdep.c: Fix indentation.
707 * hppa-tdep.h: Fix indentation.
708 * i386-bsd-nat.c: Fix indentation.
709 * i386-darwin-nat.c: Fix indentation.
710 * i386-darwin-tdep.c: Fix indentation.
711 * i386-dicos-tdep.c: Fix indentation.
712 * i386-gnu-nat.c: Fix indentation.
713 * i386-linux-nat.c: Fix indentation.
714 * i386-linux-tdep.c: Fix indentation.
715 * i386-nto-tdep.c: Fix indentation.
716 * i386-obsd-tdep.c: Fix indentation.
717 * i386-sol2-nat.c: Fix indentation.
718 * i386-tdep.c: Fix indentation.
719 * i386-tdep.h: Fix indentation.
720 * i386-windows-tdep.c: Fix indentation.
721 * i387-tdep.c: Fix indentation.
722 * i387-tdep.h: Fix indentation.
723 * ia64-libunwind-tdep.c: Fix indentation.
724 * ia64-libunwind-tdep.h: Fix indentation.
725 * ia64-linux-nat.c: Fix indentation.
726 * ia64-linux-tdep.c: Fix indentation.
727 * ia64-tdep.c: Fix indentation.
728 * ia64-tdep.h: Fix indentation.
729 * ia64-vms-tdep.c: Fix indentation.
730 * infcall.c: Fix indentation.
731 * infcmd.c: Fix indentation.
732 * inferior.c: Fix indentation.
733 * infrun.c: Fix indentation.
734 * iq2000-tdep.c: Fix indentation.
735 * language.c: Fix indentation.
736 * linespec.c: Fix indentation.
737 * linux-fork.c: Fix indentation.
738 * linux-nat.c: Fix indentation.
739 * linux-tdep.c: Fix indentation.
740 * linux-thread-db.c: Fix indentation.
741 * lm32-tdep.c: Fix indentation.
742 * m2-lang.c: Fix indentation.
743 * m2-typeprint.c: Fix indentation.
744 * m2-valprint.c: Fix indentation.
745 * m32c-tdep.c: Fix indentation.
746 * m32r-linux-tdep.c: Fix indentation.
747 * m32r-tdep.c: Fix indentation.
748 * m68hc11-tdep.c: Fix indentation.
749 * m68k-bsd-nat.c: Fix indentation.
750 * m68k-linux-nat.c: Fix indentation.
751 * m68k-linux-tdep.c: Fix indentation.
752 * m68k-tdep.c: Fix indentation.
753 * machoread.c: Fix indentation.
754 * macrocmd.c: Fix indentation.
755 * macroexp.c: Fix indentation.
756 * macroscope.c: Fix indentation.
757 * macrotab.c: Fix indentation.
758 * macrotab.h: Fix indentation.
759 * main.c: Fix indentation.
760 * mdebugread.c: Fix indentation.
761 * mep-tdep.c: Fix indentation.
762 * mi/mi-cmd-catch.c: Fix indentation.
763 * mi/mi-cmd-disas.c: Fix indentation.
764 * mi/mi-cmd-env.c: Fix indentation.
765 * mi/mi-cmd-stack.c: Fix indentation.
766 * mi/mi-cmd-var.c: Fix indentation.
767 * mi/mi-cmds.c: Fix indentation.
768 * mi/mi-main.c: Fix indentation.
769 * mi/mi-parse.c: Fix indentation.
770 * microblaze-tdep.c: Fix indentation.
771 * minidebug.c: Fix indentation.
772 * minsyms.c: Fix indentation.
773 * mips-linux-nat.c: Fix indentation.
774 * mips-linux-tdep.c: Fix indentation.
775 * mips-nbsd-tdep.c: Fix indentation.
776 * mips-tdep.c: Fix indentation.
777 * mn10300-linux-tdep.c: Fix indentation.
778 * mn10300-tdep.c: Fix indentation.
779 * moxie-tdep.c: Fix indentation.
780 * msp430-tdep.c: Fix indentation.
781 * namespace.h: Fix indentation.
782 * nat/fork-inferior.c: Fix indentation.
783 * nat/gdb_ptrace.h: Fix indentation.
784 * nat/linux-namespaces.c: Fix indentation.
785 * nat/linux-osdata.c: Fix indentation.
786 * nat/netbsd-nat.c: Fix indentation.
787 * nat/x86-dregs.c: Fix indentation.
788 * nbsd-nat.c: Fix indentation.
789 * nbsd-tdep.c: Fix indentation.
790 * nios2-linux-tdep.c: Fix indentation.
791 * nios2-tdep.c: Fix indentation.
792 * nto-procfs.c: Fix indentation.
793 * nto-tdep.c: Fix indentation.
794 * objfiles.c: Fix indentation.
795 * objfiles.h: Fix indentation.
796 * opencl-lang.c: Fix indentation.
797 * or1k-tdep.c: Fix indentation.
798 * osabi.c: Fix indentation.
799 * osabi.h: Fix indentation.
800 * osdata.c: Fix indentation.
801 * p-lang.c: Fix indentation.
802 * p-typeprint.c: Fix indentation.
803 * p-valprint.c: Fix indentation.
804 * parse.c: Fix indentation.
805 * ppc-linux-nat.c: Fix indentation.
806 * ppc-linux-tdep.c: Fix indentation.
807 * ppc-nbsd-nat.c: Fix indentation.
808 * ppc-nbsd-tdep.c: Fix indentation.
809 * ppc-obsd-nat.c: Fix indentation.
810 * ppc-ravenscar-thread.c: Fix indentation.
811 * ppc-sysv-tdep.c: Fix indentation.
812 * ppc64-tdep.c: Fix indentation.
813 * printcmd.c: Fix indentation.
814 * proc-api.c: Fix indentation.
815 * producer.c: Fix indentation.
816 * producer.h: Fix indentation.
817 * prologue-value.c: Fix indentation.
818 * prologue-value.h: Fix indentation.
819 * psymtab.c: Fix indentation.
820 * python/py-arch.c: Fix indentation.
821 * python/py-bpevent.c: Fix indentation.
822 * python/py-event.c: Fix indentation.
823 * python/py-event.h: Fix indentation.
824 * python/py-finishbreakpoint.c: Fix indentation.
825 * python/py-frame.c: Fix indentation.
826 * python/py-framefilter.c: Fix indentation.
827 * python/py-inferior.c: Fix indentation.
828 * python/py-infthread.c: Fix indentation.
829 * python/py-objfile.c: Fix indentation.
830 * python/py-prettyprint.c: Fix indentation.
831 * python/py-registers.c: Fix indentation.
832 * python/py-signalevent.c: Fix indentation.
833 * python/py-stopevent.c: Fix indentation.
834 * python/py-stopevent.h: Fix indentation.
835 * python/py-threadevent.c: Fix indentation.
836 * python/py-tui.c: Fix indentation.
837 * python/py-unwind.c: Fix indentation.
838 * python/py-value.c: Fix indentation.
839 * python/py-xmethods.c: Fix indentation.
840 * python/python-internal.h: Fix indentation.
841 * python/python.c: Fix indentation.
842 * ravenscar-thread.c: Fix indentation.
843 * record-btrace.c: Fix indentation.
844 * record-full.c: Fix indentation.
845 * record.c: Fix indentation.
846 * reggroups.c: Fix indentation.
847 * regset.h: Fix indentation.
848 * remote-fileio.c: Fix indentation.
849 * remote.c: Fix indentation.
850 * reverse.c: Fix indentation.
851 * riscv-linux-tdep.c: Fix indentation.
852 * riscv-ravenscar-thread.c: Fix indentation.
853 * riscv-tdep.c: Fix indentation.
854 * rl78-tdep.c: Fix indentation.
855 * rs6000-aix-tdep.c: Fix indentation.
856 * rs6000-lynx178-tdep.c: Fix indentation.
857 * rs6000-nat.c: Fix indentation.
858 * rs6000-tdep.c: Fix indentation.
859 * rust-lang.c: Fix indentation.
860 * rx-tdep.c: Fix indentation.
861 * s12z-tdep.c: Fix indentation.
862 * s390-linux-tdep.c: Fix indentation.
863 * score-tdep.c: Fix indentation.
864 * ser-base.c: Fix indentation.
865 * ser-mingw.c: Fix indentation.
866 * ser-uds.c: Fix indentation.
867 * ser-unix.c: Fix indentation.
868 * serial.c: Fix indentation.
869 * sh-linux-tdep.c: Fix indentation.
870 * sh-nbsd-tdep.c: Fix indentation.
871 * sh-tdep.c: Fix indentation.
872 * skip.c: Fix indentation.
873 * sol-thread.c: Fix indentation.
874 * solib-aix.c: Fix indentation.
875 * solib-darwin.c: Fix indentation.
876 * solib-frv.c: Fix indentation.
877 * solib-svr4.c: Fix indentation.
878 * solib.c: Fix indentation.
879 * source.c: Fix indentation.
880 * sparc-linux-tdep.c: Fix indentation.
881 * sparc-nbsd-tdep.c: Fix indentation.
882 * sparc-obsd-tdep.c: Fix indentation.
883 * sparc-ravenscar-thread.c: Fix indentation.
884 * sparc-tdep.c: Fix indentation.
885 * sparc64-linux-tdep.c: Fix indentation.
886 * sparc64-nbsd-tdep.c: Fix indentation.
887 * sparc64-obsd-tdep.c: Fix indentation.
888 * sparc64-tdep.c: Fix indentation.
889 * stabsread.c: Fix indentation.
890 * stack.c: Fix indentation.
891 * stap-probe.c: Fix indentation.
892 * stubs/ia64vms-stub.c: Fix indentation.
893 * stubs/m32r-stub.c: Fix indentation.
894 * stubs/m68k-stub.c: Fix indentation.
895 * stubs/sh-stub.c: Fix indentation.
896 * stubs/sparc-stub.c: Fix indentation.
897 * symfile-mem.c: Fix indentation.
898 * symfile.c: Fix indentation.
899 * symfile.h: Fix indentation.
900 * symmisc.c: Fix indentation.
901 * symtab.c: Fix indentation.
902 * symtab.h: Fix indentation.
903 * target-float.c: Fix indentation.
904 * target.c: Fix indentation.
905 * target.h: Fix indentation.
906 * tic6x-tdep.c: Fix indentation.
907 * tilegx-linux-tdep.c: Fix indentation.
908 * tilegx-tdep.c: Fix indentation.
909 * top.c: Fix indentation.
910 * tracefile-tfile.c: Fix indentation.
911 * tracepoint.c: Fix indentation.
912 * tui/tui-disasm.c: Fix indentation.
913 * tui/tui-io.c: Fix indentation.
914 * tui/tui-regs.c: Fix indentation.
915 * tui/tui-stack.c: Fix indentation.
916 * tui/tui-win.c: Fix indentation.
917 * tui/tui-winsource.c: Fix indentation.
918 * tui/tui.c: Fix indentation.
919 * typeprint.c: Fix indentation.
920 * ui-out.h: Fix indentation.
921 * unittests/copy_bitwise-selftests.c: Fix indentation.
922 * unittests/memory-map-selftests.c: Fix indentation.
923 * utils.c: Fix indentation.
924 * v850-tdep.c: Fix indentation.
925 * valarith.c: Fix indentation.
926 * valops.c: Fix indentation.
927 * valprint.c: Fix indentation.
928 * valprint.h: Fix indentation.
929 * value.c: Fix indentation.
930 * value.h: Fix indentation.
931 * varobj.c: Fix indentation.
932 * vax-tdep.c: Fix indentation.
933 * windows-nat.c: Fix indentation.
934 * windows-tdep.c: Fix indentation.
935 * xcoffread.c: Fix indentation.
936 * xml-syscall.c: Fix indentation.
937 * xml-tdesc.c: Fix indentation.
938 * xstormy16-tdep.c: Fix indentation.
939 * xtensa-config.c: Fix indentation.
940 * xtensa-linux-nat.c: Fix indentation.
941 * xtensa-linux-tdep.c: Fix indentation.
942 * xtensa-tdep.c: Fix indentation.
943
e1f57067
AB
9442020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
945 Craig Blackmore <craig.blackmore@embecosm.com>
946
947 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
948 as an unsigned value.
949
ae7754b2
TT
9502020-11-01 Tom Tromey <tom@tromey.com>
951
952 * dbxread.c (dbx_end_psymtab): Update.
953 * dwarf2/read.c (process_psymtab_comp_unit_reader)
954 (build_type_psymtabs_reader): Update.
955 * xcoffread.c (xcoff_end_psymtab): Update.
956 * ctfread.c (scan_partial_symbols): Update.
957 * psymtab.c (sort_pst_symbols): Remove.
958 (partial_symtab::end): Rename from end_psymtab_common. Inline
959 sort_pst_symbols.
960 * psympriv.h (struct partial_symtab) <end>: New method.
961 (end_psymtab_common): Don't declare.
962
0684bb51
TT
9632020-11-01 Tom Tromey <tom@tromey.com>
964
965 * symmisc.c (count_psyms): New function.
966 (print_objfile_statistics): Use it.
967 * psymtab.c (append_psymbol_to_list): Remove.
968 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
969 * objfiles.h (struct objstats) <n_psyms>: Remove.
970
089002bb
TT
9712020-11-01 Tom Tromey <tom@tromey.com>
972
973 * dbxread.c (dbx_end_psymtab): Update.
974 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
975 (build_type_psymtabs_reader): Update.
976 * xcoffread.c (xcoff_end_psymtab): Update.
977 * ctfread.c (scan_partial_symbols): Update.
978 * psympriv.h (end_psymtab_common): Update.
979 * psymtab.c (end_psymtab_common): Remove objfile parameter.
980 (sort_pst_symbols): Likewise.
981
525454d6
TT
9822020-11-01 Tom Tromey <tom@tromey.com>
983
984 * dbxread.c (dbx_symfile_read): Update.
985 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
986 * xcoffread.c (xcoff_initial_scan): Update.
987 * psympriv.h (init_psymbol_list): Don't declare.
988 * psymtab.c (init_psymbol_list): Remove.
989
60bd1d53
JB
9902020-11-01 Joel Brobecker <brobecker@adacore.com>
991
992 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
993 gnat_encoded_fixed_type_info. Update all callers.
994
db99d0d0
JB
9952020-11-01 Joel Brobecker <brobecker@adacore.com>
996
997 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
998 line too long.
999
75f24e86
JB
10002020-11-01 Joel Brobecker <brobecker@adacore.com>
1001
1002 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1003 cast_from_fixed. Update all callers.
1004 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1005 Update all callers.
1006 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1007 Update all callers.
1008 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1009 ada_scaling_factor.
1010 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1011 to print_gnat_encoded_fixed_point_type.
1012 * ada-valprint.c: Likewise.
1013
4f0469cd
AB
10142020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1015
1016 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1017 (debug_prefixed_printf): Add check of debug_displaced flag.
1018 * linux-nat.c (linux_nat_debug_printf): Add check of
1019 debug_linux_nat flag.
1020
17417fb0
SM
10212020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1022
1023 * infrun.c (infrun_debug_printf_1): Remove.
1024 (displaced_debug_printf_1): Remove.
1025 (stop_all_threads): Use debug_prefixed_printf.
1026 * infrun.h (infrun_debug_printf_1): Remove.
1027 (infrun_debug_printf): Use debug_prefixed_printf.
1028 (displaced_debug_printf_1): Remove.
1029 (displaced_debug_printf): Use debug_prefixed_printf.
1030 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1031 (linux_nat_debug_printf): Use debug_prefixed_printf.
1032
ad6dba1c
SM
10332020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1034
1035 * configure: Re-generate.
1036 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1037 AC_LANG_PROGRAM.
1038
b6fb30ed
SM
10392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1040
1041 * configure: Re-generate.
1042
5164c117
SM
10432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1044
1045 * configure: Re-generate.
1046
864ca435
SM
10472020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1048
1049 * configure: Re-generate.
1050
b9442ec1
SM
10512020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1052
1053 * configure: Re-generate.
1054
294f2697
SM
10552020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1056
1057 * acinclude.m4: Modernize.
1058 * configure: Re-generate.
1059
5593a99a
SM
10602020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1061
1062 * configure.ac: Modernize.
1063 * configure: Re-generate.
1064
e41fda1d
SM
10652020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1066
1067 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1068 * configure: Re-generate.
1069 * configure.ac: Remove AM_PROG_CC_STDC.
1070
91e1a0ed
SM
10712020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1072
1073 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1074 AC_CANONICAL_SYSTEM.
1075 * configure: Re-generate.
1076
136821d9
SM
10772020-10-30 Simon Marchi <simon.marchi@efficios.com>
1078
1079 * infrun.h (displaced_debug_printf): New macro. Replace
1080 displaced debug prints throughout to use it.
1081 (displaced_debug_printf_1): New declaration.
1082 (displaced_step_dump_bytes): Return string, remove ui_file
1083 parameter, update all callers.
1084 * infrun.c (displaced_debug_printf_1): New function.
1085 (displaced_step_dump_bytes): Return string, remove ui_file
1086 parameter
1087
aa2045e7
SM
10882020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1089
1090 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1091
b1ec2735
TT
10922020-10-30 Tom Tromey <tromey@adacore.com>
1093
1094 * Makefile.in (stamp-init): Depend on config.status.
1095
b78b3a29
TBA
10962020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1097
1098 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1099
d70bdd3c
PA
11002020-10-30 Pedro Alves <pedro@palves.net>
1101
1102 * thread.c (lookup_selected_frame): Move ...
1103 * frame.c (lookup_selected_frame): ... here.
1104
79952e69
PA
11052020-10-30 Pedro Alves <pedro@palves.net>
1106
1107 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1108 * frame.c
1109 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1110 Use save_selected_frame. Save language as well.
1111 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1112 Use restore_selected_frame, and restore language as well.
1113 (selected_frame_id, selected_frame_level): New.
1114 (selected_frame): Update comments.
1115 (save_selected_frame, restore_selected_frame): New.
1116 (get_selected_frame): Use lookup_selected_frame.
1117 (get_selected_frame_if_set): Delete.
1118 (select_frame): Record selected_frame_level and selected_frame_id.
1119 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1120 fields.
1121 (get_selected_frame): Make 'message' parameter optional.
1122 (get_selected_frame_if_set): Delete declaration.
1123 (select_frame): Update comments.
1124 (save_selected_frame, restore_selected_frame)
1125 (lookup_selected_frame): Declare.
1126 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1127 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1128 New field.
1129 (save_infcall_control_state): Use save_selected_frame.
1130 (restore_selected_frame): Delete.
1131 (restore_infcall_control_state): Use restore_selected_frame.
1132 * stack.c (select_frame_command_core, frame_command_core): Use
1133 get_selected_frame.
1134 * thread.c (restore_selected_frame): Rename to ...
1135 (lookup_selected_frame): ... this and make extern. Select the
1136 current frame if the frame level is -1.
1137 (scoped_restore_current_thread::restore): Also restore the
1138 language.
1139 (scoped_restore_current_thread::~scoped_restore_current_thread):
1140 Don't try/catch.
1141 (scoped_restore_current_thread::scoped_restore_current_thread):
1142 Save the language as well. Use save_selected_frame.
1143
58103c33
SM
11442020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1145
1146 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1147 documentation.
1148 * gdbarch.h: Re-generate.
1149
40a53766
SM
11502020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1151
1152 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1153 parameter.
1154 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1155 Likewise.
1156 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1157 Likewise.
1158 * arch-utils.c (default_displaced_step_hw_singlestep):
1159 Likewise.
1160 * arch-utils.h (default_displaced_step_hw_singlestep):
1161 Likewise.
1162 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1163 Likewise.
1164 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1165 Likewise.
1166 * gdbarch.c: Re-generate.
1167 * gdbarch.h: Re-generate.
1168 * infrun.c (resume_1): Adjust.
1169
8407f91b
TT
11702020-10-29 Tom Tromey <tom@tromey.com>
1171
1172 * progspace.c (program_space::~program_space): Don't call
1173 exec_close.
1174
5008b3b2
TT
11752020-10-29 Tom Tromey <tom@tromey.com>
1176
1177 * exec.c (exec_target::close): Don't change current program
1178 space.
1179
d9eebde0
TT
11802020-10-29 Tom Tromey <tom@tromey.com>
1181
1182 * symfile.c (add_symbol_file_command): Update.
1183 * exec.c (program_space::add_target_sections): Rename.
1184 * symfile-mem.c (symbol_file_add_from_memory): Update.
1185 * progspace.h (struct program_space) <add_target_sections>:
1186 Declare new overload.
1187 * exec.h (add_target_sections_of_objfile): Don't declare.
1188
3769e227
TT
11892020-10-29 Tom Tromey <tom@tromey.com>
1190
1191 * solib.c (solib_map_sections): Update.
1192 * exec.c (program_space::add_target_sections): Now a method.
1193 (exec_file_attach): Update.
1194 * exec.h (add_target_sections): Don't declare.
1195 * progspace.h (struct program_space) <add_target_sections>:
1196 Declare.
1197
2a3f84af
TT
11982020-10-29 Tom Tromey <tom@tromey.com>
1199
1200 * progspace.h (struct program_space) <remove_target_sections>:
1201 Declare.
1202 * exec.c (program_space::remove_target_sections): Now a method.
1203 * exec.h (remove_target_sections): Don't declare.
1204
004eecfd
TT
12052020-10-29 Tom Tromey <tom@tromey.com>
1206
1207 * inferior.c (delete_inferior): Update.
1208 * progspace.c (program_space::empty): Rename from
1209 program_space_empty_p. Return bool.
1210 * progspace.h (struct program_space) <empty>: New method.
1211 (program_space_empty_p): Don't declare.
1212
e39fb971
TT
12132020-10-29 Tom Tromey <tom@tromey.com>
1214
1215 * progspace.c (program_space::~program_space): Don't call
1216 clear_program_space_solib_cache.
1217 (program_space::clear_solib_cache): Rename from
1218 clear_solib_cache.
1219 * solib.c (handle_solib_event): Update.
1220 * progspace.h (struct program_space) <clear_solib_cache>: New
1221 method.
1222 (clear_program_space_solib_cache): Don't declare.
1223
a42d7dd8
TT
12242020-10-29 Tom Tromey <tom@tromey.com>
1225
1226 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1227 * target.c (info_target_command): Update.
1228 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1229 (symbol_file_clear, reread_symbols): Update.
1230 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1231 * stabsread.c (scan_file_globals): Update.
1232 * solib.c (update_solib_list): Update.
1233 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1234 (svr4_fetch_objfile_link_map, enable_break)
1235 (svr4_relocate_main_executable)
1236 (svr4_iterate_over_objfiles_in_search_order): Update.
1237 * solib-frv.c (lm_base, enable_break)
1238 (frv_relocate_main_executable): Update.
1239 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1240 (frv_fetch_objfile_link_map): Update.
1241 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1242 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1243 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1244 * remote.c (remote_target::get_offsets): Update.
1245 (remote_target::start_remote)
1246 (extended_remote_target::post_attach): Update.
1247 * objfiles.c (entry_point_address_query): Update.
1248 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1249 * minsyms.c (get_symbol_leading_char): Update.
1250 * frame.c (inside_main_func): Update.
1251 * progspace.h (symfile_objfile): Remove macro.
1252
19f6550e
TT
12532020-10-29 Tom Tromey <tom@tromey.com>
1254
1255 * exec.c (exec_file_attach): Update.
1256 * progspace.c (program_space::exec_close): Update.
1257 * progspace.h (struct program_space) <ebfd>: Now a
1258 gdb_bfd_ref_ptr.
1259 <set_exec_bfd>: Change argument type.
1260 <exec_bfd>: Update.
1261
7e10abd1
TT
12622020-10-29 Tom Tromey <tom@tromey.com>
1263
1264 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1265 * symfile.c (reread_symbols): Update.
1266 * symfile-mem.c (add_symbol_file_from_memory_command)
1267 (add_vsyscall_page): Update.
1268 * source-cache.c (source_cache::get_plain_source_lines): Update.
1269 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1270 (svr4_current_sos_direct, svr4_exec_displacement)
1271 (svr4_relocate_main_executable): Update.
1272 (svr4_iterate_over_objfiles_in_search_order): Update.
1273 * solib-frv.c (enable_break2, enable_break): Update.
1274 * solib-dsbt.c (lm_base, enable_break): Update.
1275 * solib-darwin.c (find_program_interpreter)
1276 (darwin_solib_create_inferior_hook): Update.
1277 * sol-thread.c (rw_common, ps_pdmodel): Update.
1278 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1279 * remote.c (compare_sections_command)
1280 (remote_target::trace_set_readonly_regions): Update.
1281 * remote-sim.c (get_sim_inferior_data)
1282 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1283 (gdbsim_target_open, gdbsim_target::files_info): Update.
1284 * exec.h (exec_bfd): Remove macro.
1285 * progspace.c (initialize_progspace): Update.
1286 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1287 Update.
1288 * nto-procfs.c (nto_procfs_target::post_attach)
1289 (nto_procfs_target::create_inferior): Update.
1290 * maint.c (maintenance_info_sections): Update.
1291 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1292 Update.
1293 * infcmd.c (post_create_inferior): Update.
1294 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1295 (objfile_find_memory_regions): Update.
1296 * exec.c (validate_exec_file, exec_file_attach)
1297 (exec_read_partial_read_only, print_section_info): Update.
1298 * corelow.c (core_target_open): Update.
1299 * corefile.c (reopen_exec_file, validate_files): Update.
1300 * arm-tdep.c (gdb_print_insn_arm): Update.
1301 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1302 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1303 methods.
1304
b55221ab
TT
13052020-10-29 Tom Tromey <tom@tromey.com>
1306
1307 * progspace.h (current_target_sections): Remove macro.
1308 * solib-svr4.c (scan_dyntag): Update.
1309 * solib-dsbt.c (scan_dyntag): Update.
1310 * exec.c (exec_target::close): Update.
1311 (add_target_sections, add_target_sections_of_objfile)
1312 (remove_target_sections, exec_target::get_section_table)
1313 (exec_target::files_info, set_section_command)
1314 (exec_set_section_address, exec_target::has_memory)
1315 (exec_target::has_memory): Update.
1316
5a36e715
TT
13172020-10-29 Tom Tromey <tom@tromey.com>
1318
1319 * source-cache.c (source_cache::get_plain_source_lines): Use
1320 current_program_space.
1321 * corefile.c (reopen_exec_file): Use current_program_space.
1322 * exec.c (exec_file_attach): Use current_program_space.
1323 * exec.h (exec_bfd_mtime): Remove.
1324
784c8592
TT
13252020-10-29 Tom Tromey <tom@tromey.com>
1326
1327 * gcore.c (default_gcore_mach): Remove.
1328 (create_gcore_bfd): Update.
1329
8a4f1402
TT
13302020-10-29 Tom Tromey <tom@tromey.com>
1331
1332 * progspace.c (program_space::exec_close): New method, from
1333 exec_close in exec.c.
1334 * exec.c (exec_close): Move to progspace.c.
1335 (exec_target::close, exec_file_attach): Update.
1336 * progspace.h (struct program_space) <exec_close>: Declare
1337 method.
1338
c20cb686
TT
13392020-10-29 Tom Tromey <tom@tromey.com>
1340
1341 * progspace.h (struct program_space) <exec_filename>: Rename from
1342 pspace_exec_filename. Now a unique_xmalloc_ptr.
1343 * inferior.c (print_selected_inferior): Update.
1344 (print_inferior): Update.
1345 * mi/mi-main.c (print_one_inferior): Update.
1346 * exec.h (exec_filename): Remove macro.
1347 * corefile.c (get_exec_file): Update.
1348 * exec.c (exec_close): Update.
1349 (exec_file_attach): Update.
1350 * progspace.c (clone_program_space): Update.
1351 (print_program_space): Update.
1352
6be2a9ab
TT
13532020-10-29 Tom Tromey <tom@tromey.com>
1354
1355 * target-section.h (struct target_section): Add constructor.
1356 * exec.c (build_section_table, add_target_sections_of_objfile):
1357 Update.
1358 * corelow.c (core_target::build_file_mappings): Update.
1359
cfaa8f76
TBA
13602020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1361
1362 PR gdb/19318
1363 * inferior.c (detach_inferior_command): Restore the current thread.
1364 (kill_inferior_command): Ditto.
1365
1b00ef06
TV
13662020-10-28 Tom de Vries <tdevries@suse.de>
1367
1368 PR symtab/26772
1369 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1370 map, check it in the "best match" loop.
1371
7f40ce1a
SM
13722020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1373
1374 * m32c-tdep.c: Remove unused includes.
1375
5eb9e3f5
SM
13762020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1377
1378 * xtensa-tdep.c: Remove includes.
1379
b1d4d8d1
TBA
13802020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1381
1382 * breakpoint.c (struct condition_command_opts): New struct.
1383 (condition_command_option_defs): New static global.
1384 (make_condition_command_options_def_group): New function.
1385 (condition_completer): Update to consider the '-force' flag.
1386 (condition_command): Use gdb::option for the '-force' flag.
1387
bd24c5d6
TV
13882020-10-27 Tom de Vries <tdevries@suse.de>
1389
1390 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1391 symbols in section check.
1392
61eb46a4
TV
13932020-10-27 Tom de Vries <tdevries@suse.de>
1394
1395 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1396
733d554a
TBA
13972020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1398
1399 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1400 * breakpoint.c: Update the help text of the 'condition' and 'break'
1401 commands.
1402 (set_breakpoint_condition): Take a new bool parameter
1403 to control whether condition definition should be forced even when
1404 the condition expression is invalid in all of the current locations.
1405 (condition_command): Update the call to 'set_breakpoint_condition'.
1406 (find_condition_and_thread): Take the "-force-condition" flag into
1407 account.
1408 * linespec.c (linespec_keywords): Add "-force-condition" as an
1409 element.
1410 (FORCE_KEYWORD_INDEX): New #define.
1411 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1412 as a keyword.
1413 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1414 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1415 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1416 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1417
b5fa468f
TBA
14182020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1419
1420 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1421 * breakpoint.c (set_breakpoint_location_condition): New function.
1422 (set_breakpoint_condition): Disable a breakpoint location if parsing
1423 the condition string gives an error.
1424 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1425 (build_target_condition_list): Ditto.
1426 (build_target_command_list): Ditto.
1427 (build_bpstat_chain): Ditto.
1428 (print_one_breakpoint_location): Ditto.
1429 (print_one_breakpoint): Ditto.
1430 (breakpoint_1): Ditto.
1431 (bp_location::bp_location): Ditto.
1432 (locations_are_equal): Ditto.
1433 (update_breakpoint_locations): Ditto.
1434 (enable_disable_bp_num_loc): Ditto.
1435 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1436 (find_condition_and_thread_for_sals): New static function.
1437 (create_breakpoint): Call find_condition_and_thread_for_sals.
1438 (location_to_sals): Call find_condition_and_thread_for_sals instead
1439 of find_condition_and_thread.
1440
1c47ec3e
TV
14412020-10-26 Tom de Vries <tdevries@suse.de>
1442
1443 * dwarf2/read.c (process_full_comp_unit): Call
1444 dwarf2_find_base_address.
1445
6390859c
TT
14462020-10-26 Tom Tromey <tromey@adacore.com>
1447
1448 * gdbtypes.c (create_range_type): Revert previous patch. Add
1449 comment.
1450
d744f0f9
PA
14512020-10-26 Pedro Alves <pedro@palves.net>
1452
1453 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1454 (my_waitpid): Use gdb::handle_eintr.
1455
006811bc
SM
14562020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1457
1458 * acinclude.m4: Update ptrace.m4 path.
1459 * ptrace.m4: Moved to gdbsupport.
1460
c75e31a1
SM
14612020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1462
1463 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1464 instead of target_gdbarch.
1465
32495661
SM
14662020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1467
1468 * jit.c (jit_reader_load_command): Pass current inferior.
1469 (jit_inferior_init): Change parameter type to inferior, use it.
1470 (jit_inferior_created): Remove.
1471 (jit_inferior_created_hook): Pass inferior parameter down.
1472 (_initialize_jit): Use jit_inferior_created_hook instead of
1473 jit_inferior_created.
1474 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1475 * infrun.c (follow_exec): Pass inferior to
1476 jit_inferior_created_hook.
1477
3f66685e
SM
14782020-10-24 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1481 parameter and use it.
1482 (thread_db_inferior_created): Pass inferior argument.
1483
a0ff652f
SM
14842020-10-24 Simon Marchi <simon.marchi@efficios.com>
1485
1486 * aix-thread.c (aix_thread_inferior_created): Add inferior
1487 parameter.
1488 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1489 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1490 * jit.c (jit_inferior_created): Likewise.
1491 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1492 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1493 * observable.h (inferior_created): Likewise.
1494 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1495 * symfile-mem.c (add_vsyscall_page): Likewise.
1496 * infcmd.c (post_create_inferior): Pass inferior argument.
1497
3c67532c
JB
14982020-10-24 Joel Brobecker <brobecker@adacore.com>
1499
1500 GDB 10.1 released.
1501
8747316e
JB
15022020-10-23 Joel Brobecker <brobecker@adacore.com>
1503
1504 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1505 to ada_check_typedef.
1506
1a0ea399
AB
15072020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1508
1509 * f-exp.y (f_parse): Rename to...
1510 (f_language::parser): ...this.
1511 * f-lang.c (f_get_encoding): Rename to...
1512 (f_language::get_encoding): ...this.
1513 (f_op_print_tab): Rename to...
1514 (f_language::op_print_tab): ...this.
1515 (exp_descriptor_f): Rename to...
1516 (f_language::exp_descriptor_tab): ...this.
1517 (class f_language): Moved to f-lang.h.
1518 (f_language::language_arch_info): New function, moved out of class
1519 declaration.
1520 (f_language::search_name_hash): Likewise.
1521 (f_language::lookup_symbol_nonlocal): Likewise.
1522 (f_language::get_symbol_name_matcher_inner): Likewise.
1523 * f-lang.h: Add 'valprint.h' include.
1524 (class f_language): Moved here from f-lang.c.
1525 * f-typeprint.c (f_type_print_args): Delete commented out
1526 declaration.
1527 (f_print_typedef): Rename to...
1528 (f_language::print_typedef): ...this.
1529 (f_print_type): Rename to...
1530 (f_language::print_type): ...this.
1531 (f_type_print_varspec_prefix): Delete declaration and rename to...
1532 (f_language::f_type_print_varspec_prefix): ...this.
1533 (f_type_print_varspec_suffix): Delete declaration and rename to...
1534 (f_language::f_type_print_varspec_suffix): ...this.
1535 (f_type_print_base): Delete declaration and rename to...
1536 (f_language::f_type_print_base): ...this.
1537 * f-valprint.c (f_value_print_inner): Rename to...
1538 (f_language::value_print_inner): ...this.
1539 * parse.c: Delete 'f-lang.h' include.
1540
88cefd9b
AB
15412020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1542
1543 * language.h (language_defn::print_type): Add variable names in
1544 declaration, and update header comment.
1545
5399db93
AB
15462020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1547
1548 * ada-lang.c (ada_language::demangle): Rename to...
1549 (ada_language::demangle_symbol): ...this.
1550 * c-lang.c (cplus_language::demangle): Rename to...
1551 (cplus_language::demangle_symbol): ...this.
1552 * d-lang.c (d_language::demangle): Rename to...
1553 (d_language::demangle_symbol): ...this.
1554 * f-lang.c (f_language::demangle): Rename to...
1555 (f_language::demangle_symbol): ...this.
1556 * go-lang.c (go_language::demangle): Rename to...
1557 (go_language::demangle_symbol): ...this.
1558 * language.c (language_demangle): Update call to demangle_symbol.
1559 (auto_or_unknown_language::demangle): Rename to...
1560 (auto_or_unknown_language::demangle_symbol): ...this.
1561 * language.h (language_defn::demangle): Rename to...
1562 (language_defn::demangle_symbol): ...this.
1563 * objc-lang.c (objc_language::demangle): Rename to...
1564 (objc_language::demangle_symbol): ...this.
1565 * rust-lang.c (rust_language::demangle): Rename to...
1566 (rust_language::demangle_symbol): ...this.
1567
4b2f86ef
AB
15682020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1569
1570 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1571 (iterate_over_file_blocks): Replace use of macro with the macros
1572 definition.
1573
e74b39de
AB
15742020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1575
1576 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1577 * valprint.c (maybe_print_array_index): Replace use of macro with
1578 the macros definition.
1579
00c696a6
AB
15802020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1581
1582 * ada-lang.c (ada_language::print_array_index): Call value_print
1583 directly.
1584 * language.c (language_defn::print_array_index): Likewise.
1585 * language.h (LA_VALUE_PRINT): Delete.
1586 * valprint.c (value_print): Call value_print on the
1587 current_language directly.
1588
d3b67c56
AB
15892020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * language.h (LA_PRINT_TYPEDEF): Delete.
1592 * typeprint.c (typedef_print): Call print_typedef directly on the
1593 current_language object.
1594
790e2a12
AB
15952020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * m2-exp.y (m2_parse): Rename to...
1598 (m2_language::parser): ...this. Update function signature.
1599 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1600 (m2_op_print): Rename to...
1601 (m2_language::op_print_tab): ...this, and make const.
1602 (exp_descriptor_modula2): Rename to...
1603 (m2_language::exp_descriptor_modula2): ...this.
1604 (class m2_language): Move to m2-lang.h.
1605 (m2_language::language_arch_info): New function, moved out of
1606 class declaration.
1607 (m2_language::printchar): New function, body from m2_printchar.
1608 (m2_language::printstr): New function, moved out of class
1609 declaration.
1610 (m2_language::emitchar): Likewise.
1611 * m2-lang.h (m2_parse): Delete declaration.
1612 (m2_print_typedef): Delete declaration.
1613 (m2_value_print_inner): Delete declaration.
1614 (class m2_language): Class declaration moved from m2-lang.c,
1615 larger functions are left in m2-lang.c.
1616 * m2-typeprint.c (m2_print_typedef): Rename to...
1617 (m2_language::print_typedef): ...this, and update function
1618 signature.
1619 * m2-valprint.c (m2_value_print_inner): Rename to...
1620 (m2_language::value_print_inner): ...this, replace use of
1621 LA_PRINT_STRING with a direct call to printstr member function,
1622 and update recursive call.
1623
b01175fc
AB
16242020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1625
1626 * language.c (default_is_string_type_p): Delete, implementation
1627 moved into auto_or_unknown_language::is_string_type_p.
1628 (unk_op_print_tab): Moved into
1629 auto_or_unknown_language::opcode_print_table.
1630 (unknown_language_arch_info): Delete, implementation moved into
1631 auto_or_unknown_language::language_arch_info.
1632 (class auto_or_unknown_language): New class, member functions
1633 copied from unknown_language class, with some updates.
1634 (class unknown_language): Most member functions moved into
1635 auto_or_unknown_language class. Inherit from
1636 auto_or_unknown_language class.
1637 (class auto_language): Inherit from auto_or_unknown_language.
1638 Delete most member functions.
1639
1a97fe8c
HD
16402020-10-22 Hannes Domani <ssbssa@yahoo.de>
1641
1642 * stabsread.c (read_member_functions): Remove gdb_assert.
1643
6b9d0dfd
HD
16442020-10-22 Hannes Domani <ssbssa@yahoo.de>
1645
1646 * gdbtypes.c (init_complex_type): Check target type name.
1647
4b4bb603
SM
16482020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1649
1650 * target-debug.h (target_debug_print_struct_target_ops_p):
1651 Remove.
1652 (target_debug_print_async_callback_ftype_p): Remove.
1653 (target_debug_print_struct_trace_state_variable_p): Remove.
1654 (target_debug_print_struct_traceframe_info_p): Remove.
1655 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1656 (target_debug_print_enum_btrace_format): Remove.
1657 (target_debug_print_enum_info_proc_what): Remove.
1658 (target_debug_print_thread_info_pp): Remove.
1659
24f5300a
SM
16602020-10-22 Simon Marchi <simon.marchi@efficios.com>
1661
1662 * target.h (struct target_ops) <make_corefile_notes>:
1663 Change return type to unique pointer.
1664 * target.c (dummy_make_corefile_notes): Likewise.
1665 * exec.c (struct exec_target) <make_corefile_notes>:
1666 Likewise.
1667 (exec_target::make_corefile_notes): Likewise.
1668 * procfs.c (class procfs_target) <make_corefile_notes>:
1669 Likewise.
1670 (procfs_do_thread_registers): Adjust to unique pointer.
1671 (struct procfs_corefile_thread_data): Add constructor.
1672 <note_data>: Change type to unique pointer.
1673 (procfs_corefile_thread_callback): Adjust to unique pointer.
1674 (procfs_target::make_corefile_notes): Change return type to
1675 unique pointer.
1676 * target-delegates.c: Re-generate.
1677 * gcore.c (write_gcore_file_1): Adjust.
1678 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1679 New.
1680
5fb4027f
TV
16812020-10-22 Tom de Vries <tdevries@suse.de>
1682
1683 * block.c (find_block_in_blockvector): Make sure the returned block
1684 contains pc.
1685
4a636814
SM
16862020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1687
1688 PR gdb/26693
1689 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1690 parameter.
1691 (load_cu): Pass existing CU.
1692 (process_imported_unit_die): Likewise.
1693 (follow_die_offset): Likewise.
1694
1bd57575
LM
16952020-10-22 Luis Machado <luis.machado@linaro.org>
1696
1697 * corelow.c (core_target::xfer_partial): Also check for an empty
1698 m_core_unavailable_mappings vector.
1699
6b4c676c
AB
17002020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1701
1702 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1703 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1704 * f-exp.y (arglist): Allow for a series of subranges.
1705 (subrange): Add cases for subranges with strides.
1706 * f-lang.c (value_f90_subarray): Catch use of array strides and
1707 throw an error.
1708 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1709
f2d8e4c5
AB
17102020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1711
1712 * expprint.c (print_subexp_standard): Change enum range_type to
1713 range_flag and rename variables to match.
1714 (dump_subexp_body_standard): Likewise.
1715 * expression.h (enum range_type): Rename to...
1716 (enum range_flag): ...this.
1717 (range_types): Rename to...
1718 (range_flags): ...this.
1719 * f-lang.c (value_f90_subarray): Change enum range_type to
1720 range_flag and rename variables to match.
1721 * parse.c (operator_length_standard): Likewise.
1722 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1723 range_type to range_flag.
1724 * rust-lang.c (rust_evaluate_funcall): Likewise.
1725 (rust_range): Likewise.
1726 (rust_compute_range): Likewise.
1727 (rust_subscript): Likewise.
1728
2f1b18db
AB
17292020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1730
1731 * expprint.c (print_subexp_standard): Update to reflect changes to
1732 enum range_type.
1733 (dump_subexp_body_standard): Likewise.
1734 * expression.h (enum range_type): Convert to a bit field enum, and
1735 make the enum unsigned.
1736 * f-exp.y (subrange): Update to reflect changes to enum
1737 range_type.
1738 * f-lang.c (value_f90_subarray): Likewise.
1739 * parse.c (operator_length_standard): Likewise.
1740 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1741 * rust-lang.c (rust_range): Likewise.
1742 (rust_compute_range): Likewise.
1743 (rust_subscript): Likewise.
1744
a46d1843
SM
17452020-10-21 Simon Marchi <simon.marchi@efficios.com>
1746
1747 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1748 (displaced_step_in_progress): Fix comment.
1749
c21f37a8
SM
17502020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1751
1752 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1753 * gdbarch.c: Re-generate.
1754 * gdbarch.h: Re-generate.
1755 * gcore.c (write_gcore_file_1): Adjust.
1756 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1757 constructor.
1758 <note_data>: Change type to unique pointer.
1759 <abort_iteration>: Change type to bool.
1760 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1761 (fbsd_collect_thread_registers): Return void, adjust.
1762 (struct fbsd_corefile_thread_data): Add construtor.
1763 <note_data>: Change type to unique pointer.
1764 (fbsd_corefile_thread): Adjust.
1765 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1766 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1767 to unique pointer, adjust.
1768 (struct linux_collect_regset_section_cb_data): Add constructor.
1769 <note_data>: Change type to unique pointer.
1770 <abort_iteration>: Change type to bool.
1771 (linux_collect_thread_registers): Return void, adjust.
1772 (struct linux_corefile_thread_data): Add constructor.
1773 <note_data>: Change type to unique pointer.
1774 (linux_corefile_thread): Adjust.
1775 (linux_make_corefile_notes): Return unique pointer, adjust.
1776
07fbbd01
SM
17772020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1778
1779 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1780 * gdbarch.c: Re-generate.
1781 * gdbarch.h: Re-generate.
1782 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1783 bool.
1784 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1785 Likewise.
1786 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1787 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1788 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1789 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1790
39535193
SM
17912020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1792
1793 * gdbarch.sh: Make generated predicates return bool.
1794 * gdbarch.c: Re-generate.
1795 * gdbarch.h: Re-generate.
1796
ad523d01
TT
17972020-10-20 Tom Tromey <tom@tromey.com>
1798
1799 * varobj-iter.h (struct varobj_item): Remove typedef.
1800
c4464ade
SM
18012020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1802
1803 * infrun.c (currently_stepping): Change int to bool
1804 (maybe_software_singlestep): Likewise.
1805 (show_stop_on_solib_events): Likewise.
1806 (stepping_past_nonsteppable_watchpoint): Likewise.
1807 (displaced_step_in_progress_any_inferior): Likewise.
1808 (displaced_step_in_progress_thread): Likewise.
1809 (keep_going_stepped_thread): Likewise.
1810 (thread_still_needs_step_over): Likewise.
1811 (start_step_over): Likewise.
1812 (do_target_resume): Likewise.
1813 (resume_1): Likewise.
1814 (clear_proceed_status): Likewise.
1815 (thread_still_needs_step_over_bp): Likewise.
1816 (proceed): Likewise.
1817 (switch_back_to_stepped_thread): Likewise.
1818 (adjust_pc_after_break): Likewise.
1819 (stepped_in_from): Likewise.
1820 (handle_stop_requested): Likewise.
1821 (handle_syscall_event): Likewise.
1822 (handle_no_resumed): Likewise.
1823 (handle_inferior_event): Likewise.
1824 (finish_step_over): Likewise.
1825 (handle_signal_stop): Likewise.
1826 (process_event_stop_test): Likewise.
1827
2eb20436
SM
18282020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1829
1830 * infrun.c (get_displaced_stepping_state): Fix comment.
1831
e0c45ded
AS
18322020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1833
1834 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1835
22cc388e
TT
18362020-10-19 Tom Tromey <tromey@adacore.com>
1837
1838 PR tui/26719
1839 * tui/tui-winsource.h (struct tui_source_window_base)
1840 <refresh_window>: Rename from refresh_pad.
1841 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1842 Rename from refresh_pad.
1843 (tui_source_window_base::show_source_content)
1844 (tui_source_window_base::do_scroll_horizontal): Update.
1845
3c6eb4d4
TBA
18462020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1847
1848 * thread.c (_initialize_thread): Fine-tune the help text of
1849 'info threads'.
1850
26703721
TBA
18512020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1852
1853 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1854
61c26be8
MS
18552020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1856
1857 * breakpoint.c (handle_jit_event): Add an argument, change how
1858 `jit_event_handler` is called.
1859
932539d7
TT
18602020-10-17 Tom Tromey <tom@tromey.com>
1861
1862 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1863 (scan_xcoff_symtab): Update.
1864 * psymtab.h (class psymtab_storage) <global_psymbols,
1865 static_psymbols, current_global_psymbols,
1866 current_static_psymbols>: Remove.
1867 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1868 (match_partial_symbol, lookup_partial_symbol): Update.
1869 (print_partial_symbols): Change parameters.
1870 (dump_psymtab, recursively_search_psymtabs)
1871 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1872 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1873 (concat): Remove.
1874 (end_psymtab_common): Simplify.
1875 (append_psymbol_to_list): Change parameters.
1876 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1877 (init_psymbol_list): Simplify.
1878 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1879 * psympriv.h (struct partial_symtab) <empty>: New method.
1880 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1881 Remove.
1882 <global_psymbols, static_psymbols>: New members.
1883 <add_psymbol>: New methods.
1884 (add_psymbol_to_list): Don't declare.
1885 (psymbol_placement): Move earlier.
1886 * mdebugread.c (parse_partial_symbols): Update.
1887 (handle_psymbol_enumerators): Change parameters.
1888 (mdebug_expand_psymtab): Update.
1889 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1890 (add_partial_symbol): Update.
1891 * dwarf2/index-write.c (write_psymbols): Change parameters.
1892 (write_one_signatured_type): Update.
1893 (recursively_count_psymbols): Update.
1894 (recursively_write_psymbols): Update.
1895 (class debug_names) <recursively_write_psymbols>: Update.
1896 <write_psymbols>: Change parameters.
1897 <write_one_signatured_type>: Update.
1898 * dbxread.c (read_dbx_symtab): Update.
1899 (dbx_end_psymtab): Use partial_symtab::empty.
1900 * ctfread.c (struct ctf_context) <pst>: New member.
1901 (create_partial_symtab): Set it.
1902 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1903 (scan_partial_symbols): Use the psymtab's context. Update.
1904
cfabbd35
TT
19052020-10-17 Tom Tromey <tom@tromey.com>
1906
1907 * valprint.c (generic_value_print): Remove comment.
1908 * m2-valprint.c (m2_value_print_inner): Remove comment.
1909 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1910 type.
1911
520596f2
TV
19122020-10-17 Tom de Vries <tdevries@suse.de>
1913
1914 PR symtab/26317
1915 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1916 symbol main.
1917
76547ab3
TV
19182020-10-14 Tom de Vries <tdevries@suse.de>
1919
1920 PR gdb/26733
1921 * solib.c (solib_contains_address_p): Handle
1922 'solib->sections == nullptr'.
1923
d3a07122
SM
19242020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 PR gdb/26642
1927 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1928 target can't do async.
1929 * target.c (target_wait): Assert that we don't pass
1930 TARGET_WNOHANG to a target that can't async.
1931
1b71cfcf
KR
19322020-10-13 Kamil Rytarowski <n54@gmx.com>
1933
1934 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1935 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1936 * alpha-bsd-nat.c: Adjust include.
1937 * alpha-bsd-tdep.h: Adjust comment.
1938 * alpha-nbsd-tdep.c: Rename to ...
1939 * alpha-netbsd-tdep.c: ... this, adjust include.
1940 * amd64-nbsd-nat.c: Rename to ...
1941 * amd64-netbsd-nat.c: ... this, adjust include.
1942 * amd64-nbsd-tdep.c: Rename to ...
1943 * amd64-netbsd-tdep.c: ... this, adjust include.
1944 * amd64-tdep.h: Adjust include.
1945 * arm-nbsd-nat.c: Rename to ...
1946 * arm-netbsd-nat.c: ... this, adjust include.
1947 * arm-nbsd-tdep.c: Rename to ...
1948 * arm-netbsd-tdep.c: ... this, adjust include.
1949 * arm-nbsd-tdep.h: Rename to ...
1950 * arm-netbsd-tdep.h: ... this, adjust include.
1951 * configure.nat: Adjust file lists.
1952 * configure.tgt: Likewise.
1953 * hppa-nbsd-nat.c: Rename to ...
1954 * hppa-netbsd-nat.c: ... this, adjust include.
1955 * hppa-nbsd-tdep.c: Rename to ...
1956 * hppa-netbsd-tdep.c: ... this, adjust include.
1957 * i386-nbsd-nat.c: Rename to ...
1958 * i386-netbsd-nat.c: ... this, adjust include.
1959 * i386-nbsd-tdep.c: Rename to ...
1960 * i386-netbsd-tdep.c: ... this, adjust include.
1961 * m68k-bsd-nat.c: Adjust include.
1962 * mips-nbsd-nat.c: Rename to ...
1963 * mips-netbsd-nat.c: ... this, adjust include.
1964 * mips-nbsd-tdep.c: Rename to ...
1965 * mips-netbsd-tdep.c: ... this, adjust include.
1966 * mips-nbsd-tdep.h: Rename to ...
1967 * mips-netbsd-tdep.h: ... this.
1968 * nbsd-nat.c: Rename to ...
1969 * netbsd-nat.c: ... this, adjust include.
1970 * nbsd-nat.h: Rename to ...
1971 * netbsd-nat.h: ... this, adjust include.
1972 * nbsd-tdep.c: Rename to ...
1973 * netbsd-tdep.c: ... this, adjust include.
1974 * nbsd-tdep.h: Rename to ...
1975 * netbsd-tdep.h: ... this.
1976 * ppc-nbsd-nat.c: Rename to ...
1977 * ppc-netbsd-nat.c: ... this, adjust include.
1978 * ppc-nbsd-tdep.c: Rename to ...
1979 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1980 * ppc-nbsd-tdep.h: Rename to ...
1981 * ppc-netbsd-tdep.h: ... this.
1982 * sh-nbsd-nat.c: Rename to ...
1983 * sh-netbsd-nat.c: ... this, adjust include.
1984 * sh-nbsd-tdep.c: Rename to ...
1985 * sh-netbsd-tdep.c: ... this, adjust include.
1986 * sparc-nbsd-nat.c: Rename to ...
1987 * sparc-netbsd-nat.c: ... this.
1988 * sparc-nbsd-tdep.c: Rename to ...
1989 * sparc-netbsd-tdep.c: ... this, adjust include.
1990 * sparc64-nbsd-nat.c: Rename to ...
1991 * sparc64-netbsd-nat.c: ... this.
1992 * sparc64-nbsd-tdep.c: Rename to ...
1993 * sparc64-netbsd-tdep.c: ... this, adjust include.
1994 * sparc64-tdep.h: Adjust comment.
1995 * vax-bsd-nat.c: Adjust include.
1996 * vax-nbsd-tdep.c: Rename to ...
1997 * vax-netbsd-tdep.c: ... this, adjust include.
1998
d7a78e5c
TT
19992020-10-12 Tom Tromey <tom@tromey.com>
2000
2001 * target.h (struct target_ops) <get_section_table>: Update.
2002 (target_get_section_table): Update.
2003 * target.c (target_get_section_table, target_section_by_addr)
2004 (memory_xfer_partial_1): Update.
2005 * target-section.h (target_section_table): Now an alias.
2006 * target-delegates.c: Rebuild.
2007 * target-debug.h (target_debug_print_target_section_table_p):
2008 Rename from target_debug_print_struct_target_section_table_p.
2009 * symfile.c (build_section_addr_info_from_section_table): Update.
2010 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2011 * solib-svr4.c (scan_dyntag): Update.
2012 * solib-dsbt.c (scan_dyntag): Update.
2013 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2014 Update.
2015 * record-full.c (record_full_core_target::xfer_partial): Update.
2016 * progspace.h (struct program_space) <target_sections>: Update.
2017 * exec.h (print_section_info): Update.
2018 * exec.c (exec_target::close, build_section_table)
2019 (add_target_sections, add_target_sections_of_objfile)
2020 (remove_target_sections, exec_on_vfork)
2021 (section_table_available_memory)
2022 (section_table_xfer_memory_partial)
2023 (exec_target::get_section_table, exec_target::xfer_partial)
2024 (print_section_info, set_section_command)
2025 (exec_set_section_address, exec_target::has_memory): Update.
2026 * corelow.c (core_target::build_file_mappings)
2027 (core_target::xfer_partial, core_target::info_proc_mappings)
2028 (core_target::info_proc_mappings): Update.
2029 * bfd-target.c (class target_bfd): Update
2030
eda214ce
TT
20312020-10-12 Tom Tromey <tom@tromey.com>
2032
2033 * progspace.c (program_space::~program_space): Don't call
2034 clear_section_table.
2035 * exec.h (clear_section_table): Don't declare.
2036 * exec.c (exec_target::close): Update.
2037 (clear_section_table): Remove.
2038
91840ee3
TT
20392020-10-12 Tom Tromey <tom@tromey.com>
2040
2041 * exec.c (add_target_sections_of_objfile): Simplify.
2042
2d128614
TT
20432020-10-12 Tom Tromey <tom@tromey.com>
2044
2045 * solib.c (solib_map_sections): Update.
2046 * record-full.c (record_full_core_open_1): Update.
2047 * exec.h (build_section_table): Return a target_section_table.
2048 * exec.c (exec_file_attach): Update.
2049 (build_section_table): Return a target_section_table.
2050 * corelow.c (core_target::core_target): Update.
2051 * bfd-target.c (target_bfd::target_bfd): Update.
2052
bb2a6777
TT
20532020-10-12 Tom Tromey <tom@tromey.com>
2054
2055 * target.c (target_section_by_addr, memory_xfer_partial_1):
2056 Update.
2057 * target-section.h (struct target_section_table): Use
2058 std::vector.
2059 * symfile.h (build_section_addr_info_from_section_table): Take a
2060 target_section_table.
2061 * symfile.c (build_section_addr_info_from_section_table): Take a
2062 target_section_table.
2063 * solist.h (struct so_list) <sections>: Change type.
2064 <sections_end>: Remove.
2065 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2066 (solib_contains_address_p): Update.
2067 * solib-svr4.c (scan_dyntag): Update.
2068 * solib-dsbt.c (scan_dyntag): Update.
2069 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2070 Update.
2071 * record-full.c (record_full_core_start, record_full_core_end):
2072 Remove.
2073 (record_full_core_sections): New global.
2074 (record_full_core_open_1, record_full_core_target::xfer_partial):
2075 Update.
2076 * exec.h (build_section_table, section_table_xfer_memory_partial)
2077 (add_target_sections): Take a target_section_table.
2078 * exec.c (exec_file_attach, clear_section_table): Update.
2079 (resize_section_table): Remove.
2080 (build_section_table, add_target_sections): Take a
2081 target_section_table.
2082 (add_target_sections_of_objfile, remove_target_sections)
2083 (exec_on_vfork): Update.
2084 (section_table_available_memory): Take a target_section_table.
2085 (section_table_read_available_memory): Update.
2086 (section_table_xfer_memory_partial): Take a target_section_table.
2087 (print_section_info, set_section_command)
2088 (exec_set_section_address, exec_target::has_memory): Update.
2089 * corelow.c (class core_target) <m_core_section_table,
2090 m_core_file_mappings>: Remove braces.
2091 <~core_target>: Remove.
2092 (core_target::core_target): Update.
2093 (core_target::~core_target): Remove.
2094 (core_target::build_file_mappings)
2095 (core_target::xfer_memory_via_mappings)
2096 (core_target::xfer_partial, core_target::info_proc_mappings):
2097 Update.
2098 * bfd-target.c (target_bfd::xfer_partial): Update.
2099 (target_bfd::target_bfd): Update.
2100 (target_bfd::~target_bfd): Remove.
2101
7b466b10
TT
21022020-10-12 Tom Tromey <tom@tromey.com>
2103
2104 * target.h (struct target_section, struct target_section_table):
2105 Move to target-section.h.
2106 * target-section.h: New file.
2107
87a37e5e
PA
21082020-10-12 Pedro Alves <pedro@palves.net>
2109
2110 PR exp/26602
2111 * valops.c (struct struct_field_searcher): New.
2112 (update_search_result): Rename to ...
2113 (struct_field_searcher::update_result): ... this. Simplify
2114 prototype. Record all found fields.
2115 (do_search_struct_field): Rename to ...
2116 (struct_field_searcher::search): ... this. Simplify prototype.
2117 Maintain stack of visited baseclass path. Call update_result for
2118 fields too. Keep searching fields in baseclasses instead of
2119 stopping at the first found field.
2120 (search_struct_field): Use struct_field_searcher. When looking
2121 for fields, report ambiguous access attempts.
2122
9370fd51
AB
21232020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2124
2125 * frame.c (inside_main_func): Check full symbols as well as
2126 minimal symbols.
2127
59c8a30b
JB
21282020-10-09 Joel Brobecker <brobecker@adacore.com>
2129
2130 * ada-lang.c (advance_wild_match): Rewrite the function's
2131 description. Change the type of target0, t0 and t1 to char.
2132
7c184d33
TT
21332020-10-09 Tom Tromey <tromey@adacore.com>
2134
2135 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2136
5c4258f4
TT
21372020-10-09 Tom Tromey <tromey@adacore.com>
2138
2139 * ada-lang.h (ada_encode): Return std::string.
2140 * ada-lang.c (ada_encode_1): Return std::string.
2141 (ada_encode): Likewise.
2142 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2143 Update.
2144 * ada-exp.y (block_lookup, write_var_or_type): Update.
2145
3d87245c
HD
21462020-10-09 Hannes Domani <ssbssa@yahoo.de>
2147
2148 PR exp/26714
2149 * printcmd.c (print_formatted): Handle void results as
2150 unformatted prints.
2151
bbb826f5
AB
21522020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 * arch/aarch32.c (aarch32_create_target_description): Release the
2155 target_desc_up as late as possible.
2156 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2157 * arch/amd64.c (amd64_create_target_description): Likewise.
2158 * arch/arc.c (arc_create_target_description): Return a
2159 target_desc_up, don't release it.
2160 * arch/arc.h (arc_create_target_description): Update declaration.
2161 (arc_lookup_target_description): Move target_desc_up into the
2162 cache, and return a borrowed pointer.
2163 * arch/arm.c (arm_create_target_description): Release the
2164 target_desc_up as late as possible.
2165 * arch/i386.c (i386_create_target_description): Likewise.
2166 * arch/riscv.h (riscv_create_target_description): Update
2167 declaration to match definition.
2168 * arch/tic6x.c (tic6x_create_target_description): Release the
2169 target_desc_up as late as possible.
2170
361cb219
AB
21712020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2172
2173 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2174 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2175
f5c4b229
JV
21762020-10-09 Jan Vrany <jan.vrany@labware.com>
2177
2178 * source.c (directory_command): Notify observers that "directories"
2179 parameter has changed.
2180
b2701685
TT
21812020-10-08 Tom Tromey <tom@tromey.com>
2182
2183 * cli/cli-cmds.c (print_disassembly): Style function name and
2184 addresses. Add _() wrappers.
2185
ada508b6
SV
21862020-10-08 Shahab Vahedi <shahab@synopsys.com>
2187
2188 * NEWS: Mention ARC support in GDBserver.
2189
51a948fd
AB
21902020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2191
2192 * arch/aarch32.c (aarch32_create_target_description): Release
2193 unique_ptr returned from allocate_target_description.
2194 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2195 * arch/amd64.c (amd64_create_target_description): Likewise.
2196 * arch/arc.c (arc_create_target_description): Likewise.
2197 * arch/arm.c (arm_create_target_description): Likewise.
2198 * arch/i386.c (i386_create_target_description): Likewise.
2199 * arch/riscv.c (riscv_create_target_description): Update return
2200 type. Handle allocate_target_description returning a unique_ptr.
2201 (riscv_lookup_target_description): Update to handle unique_ptr.
2202 * arch/tic6x.c (tic6x_create_target_description): Release
2203 unique_ptr returned from allocate_target_description.
2204 * features/microblaze-with-stack-protect.c: Regenerate.
2205 * features/microblaze.c: Regenerate.
2206 * features/mips-dsp-linux.c: Regenerate.
2207 * features/mips-linux.c: Regenerate.
2208 * features/mips64-dsp-linux.c: Regenerate.
2209 * features/mips64-linux.c: Regenerate.
2210 * features/nds32.c: Regenerate.
2211 * features/nios2.c: Regenerate.
2212 * features/or1k.c: Regenerate.
2213 * features/rs6000/powerpc-32.c: Regenerate.
2214 * features/rs6000/powerpc-32l.c: Regenerate.
2215 * features/rs6000/powerpc-403.c: Regenerate.
2216 * features/rs6000/powerpc-403gc.c: Regenerate.
2217 * features/rs6000/powerpc-405.c: Regenerate.
2218 * features/rs6000/powerpc-505.c: Regenerate.
2219 * features/rs6000/powerpc-601.c: Regenerate.
2220 * features/rs6000/powerpc-602.c: Regenerate.
2221 * features/rs6000/powerpc-603.c: Regenerate.
2222 * features/rs6000/powerpc-604.c: Regenerate.
2223 * features/rs6000/powerpc-64.c: Regenerate.
2224 * features/rs6000/powerpc-64l.c: Regenerate.
2225 * features/rs6000/powerpc-7400.c: Regenerate.
2226 * features/rs6000/powerpc-750.c: Regenerate.
2227 * features/rs6000/powerpc-860.c: Regenerate.
2228 * features/rs6000/powerpc-altivec32.c: Regenerate.
2229 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2230 * features/rs6000/powerpc-altivec64.c: Regenerate.
2231 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2232 * features/rs6000/powerpc-e500.c: Regenerate.
2233 * features/rs6000/powerpc-e500l.c: Regenerate.
2234 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2235 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2236 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2237 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2238 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2239 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2240 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2241 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2242 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2243 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2244 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2245 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2246 * features/rs6000/powerpc-vsx32.c: Regenerate.
2247 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2248 * features/rs6000/powerpc-vsx64.c: Regenerate.
2249 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2250 * features/rs6000/rs6000.c: Regenerate.
2251 * features/rx.c: Regenerate.
2252 * features/s390-gs-linux64.c: Regenerate.
2253 * features/s390-linux32.c: Regenerate.
2254 * features/s390-linux32v1.c: Regenerate.
2255 * features/s390-linux32v2.c: Regenerate.
2256 * features/s390-linux64.c: Regenerate.
2257 * features/s390-linux64v1.c: Regenerate.
2258 * features/s390-linux64v2.c: Regenerate.
2259 * features/s390-te-linux64.c: Regenerate.
2260 * features/s390-tevx-linux64.c: Regenerate.
2261 * features/s390-vx-linux64.c: Regenerate.
2262 * features/s390x-gs-linux64.c: Regenerate.
2263 * features/s390x-linux64.c: Regenerate.
2264 * features/s390x-linux64v1.c: Regenerate.
2265 * features/s390x-linux64v2.c: Regenerate.
2266 * features/s390x-te-linux64.c: Regenerate.
2267 * features/s390x-tevx-linux64.c: Regenerate.
2268 * features/s390x-vx-linux64.c: Regenerate.
2269 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2270 from allocate_target_description.
2271 * target-descriptions.c (allocate_target_description): Update
2272 return type.
2273 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2274 allocate_target_description.
2275
485c47e5
TT
22762020-10-07 Tom Tromey <tromey@adacore.com>
2277
2278 * unittests/search-memory-selftests.c: New file.
2279 * Makefile.in (SELFTESTS_SRCS): Add
2280 unittests/search-memory-selftests.c.
2281
3a135a91
TT
22822020-10-07 Tom Tromey <tromey@adacore.com>
2283
2284 PR gdb/16930:
2285 * findcmd.c (_initialize_mem_search): Mention that the range is
2286 inclusive.
2287
4a72de73
TT
22882020-10-07 Tom Tromey <tromey@adacore.com>
2289
2290 * target.h (simple_search_memory): Don't declare.
2291 * target.c (simple_search_memory): Move to gdbsupport.
2292 (default_search_memory): Update.
2293 * remote.c (remote_target::search_memory): Update.
2294
a038ffd8
SM
22952020-10-07 Simon Marchi <simon.marchi@efficios.com>
2296
2297 * Makefile.in (COMPILE): Add CXXFLAGS.
2298 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2299 (check-headers): Add CXXFLAGS.
2300
cc463201
AK
23012020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2302
2303 * arc-linux-tdep.h: New file.
2304 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2305 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2306 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2307 arc_linux_gregset, arc_linux_v2_regset,
2308 arc_linux_iterate_over_regset_sections,
2309 arc_linux_core_read_description): Implement.
2310 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2311 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2312 (arc_gdbarch_features_create): Add.
2313 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2314
e4bd363f
SV
23152020-10-07 Shahab Vahedi <shahab@synopsys.com>
2316
2317 * arch/arc.h: Rename "arc_gdbarch_features" to
2318 "arc_arch_features".
2319 * arc-tdep.h: Likewise.
2320 * arc-tdep.c: Likewise.
2321
b68bef99
TBA
23222020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2323
2324 * infcmd.c (attach_command): Remove the redundant call to
2325 `clear_proceed_status`.
2326
4641551a
KR
23272020-10-07 Kamil Rytarowski <n54@gmx.com>
2328
2329 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2330
91e5e8db
KR
23312020-10-07 Kamil Rytarowski <n54@gmx.com>
2332
2333 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2334 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2335 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2336
64c03bdb
SM
23372020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2338
2339 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2340 (_initialize_break_catch_sig): Don't allocate array.
2341
31a8f60f
AB
23422020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2343
2344 * symtab.c (find_pc_line): Return unmapped addresses when the
2345 requested address is also unmapped.
2346
9e6dbd8b
SM
23472020-10-05 Simon Marchi <simon.marchi@efficios.com>
2348
2349 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2350 tui/tui-out.h.
2351
a1d217e8
SM
23522020-10-05 Simon Marchi <simon.marchi@efficios.com>
2353
2354 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2355 type::is_vector instead of TYPE_VECTOR.
2356
7d144117
SM
23572020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2358
2359 * auto-load.c (auto_load_objfile_script_1): Don't use
2360 debugfile_holder as temporary variable when stripping drive
2361 letter.
2362
cd096ec8
HD
23632020-10-05 Hannes Domani <ssbssa@yahoo.de>
2364
2365 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2366 Add TYPE_CODE_COMPLEX.
2367 (amd64_windows_return_value): Fix types returned via XMM0.
2368
b58e7f72
AH
23692020-10-05 Alan Hayward <alan.hayward@arm.com>
2370
2371 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2372 AArch64/ARM maintainers.
2373
8d378f27
SM
23742020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2375
2376 * NEWS: Mention set/show debug event-loop.
2377
d5519913
TT
23782020-10-02 Tom Tromey <tromey@adacore.com>
2379
2380 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2381 REG_EXTENDED.
2382
18b67edc
SM
23832020-10-02 Simon Marchi <simon.marchi@efficios.com>
2384
2385 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2386 * procfs.c (procfs_inferior_created): Remove.
2387 (_initialize_procfs): Don't register procfs_inferior_created.
2388
6b01403b
SM
23892020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2390
2391 * async-event.c (invoke_async_signal_handlers): Add debug
2392 print.
2393 (check_async_event_handlers): Likewise.
2394 * event-top.c (show_debug_event_loop): New function.
2395 (_initialize_event_top): Register "set debug event-loop"
2396 setting.
2397
ba988419
SM
23982020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2399
2400 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2401 * debug.h: Remove.
2402 * infrun.c: Include gdbsupport/common-debug.h.
2403 * linux-nat.c: Likewise.
2404
db20ebdf
SM
24052020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2406
2407 * async-event.h (create_async_signal_handler): Add name
2408 parameter.
2409 (create_async_event_handler): Likewise.
2410 * async-event.c (struct async_signal_handler) <name>: New field.
2411 (struct async_event_handler) <name>: New field.
2412 (create_async_signal_handler): Assign name.
2413 (create_async_event_handler): Assign name.
2414 * event-top.c (async_init_signals): Pass name when creating
2415 handler.
2416 * infrun.c (_initialize_infrun): Likewise.
2417 * record-btrace.c (record_btrace_push_target): Likewise.
2418 * record-full.c (record_full_open): Likewise.
2419 * remote-notif.c (remote_notif_state_allocate): Likewise.
2420 * remote.c (remote_target::open_1): Likewise.
2421 * tui/tui-win.c (tui_initialize_win): Likewise.
2422
2554f6f5
SM
24232020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2424
2425 * async-event.c (initialize_async_signal_handlers): Pass name to
2426 add_file_handler
2427 * event-top.c (ui_register_input_event_handler): Likewise.
2428 * linux-nat.c (linux_nat_target::async): Likewise.
2429 * run-on-main-thread.c (_initialize_run_on_main_thread):
2430 Likewise
2431 * ser-base.c (reschedule): Likewise.
2432 (ser_base_async): Likewise.
2433 * tui/tui-io.c: Likewise.
2434 * top.h (struct ui) <num>: New field.
2435 * top.c (highest_ui_num): New variable.
2436 (ui::ui): Initialize num.
2437
a7aba266
SM
24382020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2439
2440 * observable.h <inferior_created>: Remove parameters. Update all
2441 listeners.
2442 * inferior.h (post_create_inferior): Remove target parameter.
2443 Update all callers.
2444
048fde1e 24452020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2446
2447 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2448 and DW_MACRO_undef_strx.
2449 (dwarf_decode_macros): Likewise
2450 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2451 which is the value of DW_AT_str_offsets_base.
2452 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2453 str_offsets_base.
2454
064280be
KR
24552020-10-01 Kamil Rytarowski <n54@gmx.com>
2456
2457 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2458
6ff33035
KR
24592020-10-01 Kamil Rytarowski <n54@gmx.com>
2460
2461 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2462 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2463
1eb6eb79
KR
24642020-10-01 Kamil Rytarowski <n54@gmx.com>
2465
2466 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2467
95eb9e54
TV
24682020-09-30 Tom de Vries <tdevries@suse.de>
2469
2470 PR symtab/26683
2471 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2472
cae21f8e
TT
24732020-09-30 Tom Tromey <tromey@adacore.com>
2474
2475 * dwarf2/read.c (handle_variant): Use constant_value.
2476
529908cb
TT
24772020-09-29 Tom Tromey <tom@tromey.com>
2478
2479 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2480 (read_file_scope, dwarf2_get_pc_bounds)
2481 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2482 (read_structure_type, handle_struct_member_die)
2483 (read_enumeration_type, read_array_type, read_set_type)
2484 (read_tag_pointer_type, read_tag_reference_type)
2485 (read_subroutine_type, read_base_type, read_subrange_type)
2486 (read_full_die_1, partial_die_info::read)
2487 (partial_die_info::read, by, new_symbol)
2488 (dwarf2_const_value_data, dwarf2_const_value_attr)
2489 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2490 (prepare_one_comp_unit): Update.
2491 * dwarf2/attribute.h (DW_UNSND): Remove.
2492
c45bc3f8
TT
24932020-09-29 Tom Tromey <tom@tromey.com>
2494
2495 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2496 (read_subroutine_type, partial_die_info::read)
2497 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2498 (dwarf2_add_member_fn): Update.
2499 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2500 * dwarf2/attribute.c (attribute::as_boolean): New method.
2501
23dca5c3
TT
25022020-09-29 Tom Tromey <tom@tromey.com>
2503
2504 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2505 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2506 method.
2507 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2508
52c14d11
TT
25092020-09-29 Tom Tromey <tom@tromey.com>
2510
2511 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2512 the attribute's form.
2513
e8e5c158
TT
25142020-09-29 Tom Tromey <tom@tromey.com>
2515
2516 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2517 (dwarf2_add_member_fn): Update.
2518 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2519 * dwarf2/attribute.c (attribute::defaulted): New method, from
2520 is_valid_DW_AT_defaulted.
2521
d4df075e
TT
25222020-09-29 Tom Tromey <tom@tromey.com>
2523
2524 * dwarf2/read.c (dw2_get_file_names_reader)
2525 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2526 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2527 (dwarf2_symbol_mark_computed): Use as_unsigned.
2528 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2529 method.
2530 <form_is_section_offset>: Update comment.
2531
bf23a268
TT
25322020-09-29 Tom Tromey <tom@tromey.com>
2533
2534 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2535 dwarf2_default_access_attribute. Look up attribute.
2536 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2537 Update.
2538
7a5f294d
TT
25392020-09-29 Tom Tromey <tom@tromey.com>
2540
2541 * dwarf2/read.c (skip_one_die): Update.
2542 (read_full_die_1): Change how reprocessing is done.
2543 (partial_die_info::read): Update.
2544 (read_attribute_value): Remove need_reprocess parameter.
2545 (read_attribute): Likewise.
2546 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2547 New method.
2548
36d378cf
TT
25492020-09-29 Tom Tromey <tom@tromey.com>
2550
2551 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2552 (dwarf2_const_value_attr, dump_die_shallow)
2553 (dwarf2_fetch_constant_bytes): Update.
2554 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2555 comment.
2556 <set_address>: New method.
2557 (DW_ADDR): Remove.
2558 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2559 (attribute::as_string, attribute::as_address): Add assert.
2560
fe56917a
TT
25612020-09-29 Tom Tromey <tom@tromey.com>
2562
2563 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2564 (read_attribute_reprocess, read_attribute_value): Update.
2565 (read_attribute): Clear requires_reprocessing.
2566 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2567 form_requires_reprocessing>: New methods.
2568 <string_init>: Clear requires_reprocessing.
2569 <set_unsigned_reprocess>: New method.
2570 <name>: Shrink by one bit.
2571 <requires_reprocessing>: New member.
2572 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2573 method.
2574
414ad644
TT
25752020-09-29 Tom Tromey <tom@tromey.com>
2576
2577 * dwarf2/read.c (read_attribute_value): Update.
2578 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2579 set_unsigned>: New methods.
2580 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2581
1bc397c5
TT
25822020-09-29 Tom Tromey <tom@tromey.com>
2583
2584 * dwarf2/read.c (get_alignment, read_array_order)
2585 (read_attribute_value, dwarf2_const_value_attr)
2586 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2587 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2588 New methods.
2589 (DW_SND): Remove.
2590
630ed6b9
TT
25912020-09-29 Tom Tromey <tom@tromey.com>
2592
2593 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2594 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2595 Update.
2596 * dwarf2/attribute.h (struct attribute) <as_signature,
2597 set_signature>: New methods.
2598 (DW_SIGNATURE): Remove.
2599
9d2246fc
TT
26002020-09-29 Tom Tromey <tom@tromey.com>
2601
2602 * dwarf2/read.c (read_call_site_scope)
2603 (handle_data_member_location, dwarf2_add_member_fn)
2604 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2605 (partial_die_info::read, read_attribute_value)
2606 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2607 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2608 (dwarf2_symbol_mark_computed): Update.
2609 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2610 methods.
2611 (DW_BLOCK): Remove.
2612 * dwarf2/attribute.c (attribute::form_is_block): Add
2613 DW_FORM_data16.
2614
c6481205
TT
26152020-09-29 Tom Tromey <tom@tromey.com>
2616
2617 * dwarf2/read.c (read_cutu_die_from_dwo)
2618 (read_attribute_reprocess, read_attribute_value, read_attribute)
2619 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2620 (dwarf2_fetch_constant_bytes): Update.
2621 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2622 <set_string_noncanonical, set_string_canonical>: New methods.
2623 <string_is_canonical>: Update comment.
2624 <canonical_string_p>: Add assert.
2625 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2626 * dwarf2/attribute.c (attribute::form_is_string): New method.
2627 (attribute::string): Use it.
2628
3b64bf15
TT
26292020-09-29 Tom Tromey <tom@tromey.com>
2630
2631 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2632 (dump_die_shallow): Use canonical_string_p.
2633 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2634 method.
2635
2c830f54
TT
26362020-09-29 Tom Tromey <tom@tromey.com>
2637
2638 * dwarf2/read.c (partial_die_info::read)
2639 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2640 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2641 attribute::as_string.
2642
6c412691
TT
26432020-09-29 Tom Tromey <tom@tromey.com>
2644
2645 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2646 DW_ADDR.
2647 (attribute::string): Don't use DW_STRING.
2648 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2649 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2650
95f982e5
TT
26512020-09-29 Tom Tromey <tom@tromey.com>
2652
2653 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2654 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2655 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2656 * dwarf2/attribute.h (struct attribute): Rename methods.
2657 * dwarf2/attribute.c (attribute::as_address): Rename from
2658 value_as_address.
2659 (attribute::as_string): Rename from value_as_string.
2660
f800b00e
TT
26612020-09-29 Tom Tromey <tom@tromey.com>
2662
2663 * dwarf2/read.c (partial_die_info::read) <case
2664 DW_AT_linkage_name>: Use value_as_string.
2665 (dwarf2_string_attr): Use value_as_string.
2666 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2667 method.
2668 * dwarf2/attribute.c (attribute::value_as_string): New method.
2669
de38d64a
PA
26702020-09-29 Pedro Alves <pedro@palves.net>
2671
2672 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2673 defined before using '#pragma GCC diagnostic' instead of checking
2674 __clang__.
2675
9aed480c
TT
26762020-09-28 Tom Tromey <tom@tromey.com>
2677
2678 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2679 (handle_signal_stop): Update.
2680 * procfs.c (procfs_target::insert_watchpoint): Update.
2681 * target.h (target_have_steppable_watchpoint): Now a function.
2682
8a3ecb79
TT
26832020-09-28 Tom Tromey <tom@tromey.com>
2684
2685 * infrun.c (set_schedlock_func): Update.
2686 * target.h (target_can_lock_scheduler): Now a function.
2687
55f6301a
TT
26882020-09-28 Tom Tromey <tom@tromey.com>
2689
2690 * inferior.h (class inferior) <has_execution>: Update.
2691 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2692 * valops.c (find_function_in_inferior)
2693 (value_allocate_space_in_inferior): Update.
2694 * top.c (kill_or_detach): Update.
2695 * target.c (target_preopen, set_target_permissions): Update.
2696 (target_has_execution_current): Remove.
2697 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2698 Update.
2699 * solib.c (update_solib_list, reload_shared_libraries): Update.
2700 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2701 * solib-dsbt.c (enable_break): Update.
2702 * score-tdep.c (score7_fetch_inst): Update.
2703 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2704 Update.
2705 * remote.c (remote_target::start_remote)
2706 (remote_target::remote_check_symbols, remote_target::open_1)
2707 (remote_target::remote_detach_1, remote_target::verify_memory)
2708 (remote_target::xfer_partial, remote_target::read_description)
2709 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2710 * record-full.c (record_full_open_1): Update.
2711 * record-btrace.c (record_btrace_target_open): Update.
2712 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2713 (value_nsstring): Update.
2714 * linux-thread-db.c (add_thread_db_info)
2715 (thread_db_find_new_threads_silently, check_thread_db_callback)
2716 (try_thread_db_load_1, record_thread): Update.
2717 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2718 Update.
2719 * linux-fork.c (checkpoint_command): Update.
2720 * infrun.c (set_non_stop, set_observer_mode)
2721 (check_multi_target_resumption, for_each_just_stopped_thread)
2722 (maybe_remove_breakpoints, normal_stop)
2723 (class infcall_suspend_state): Update.
2724 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2725 (info_program_command, attach_command): Update.
2726 * infcall.c (call_function_by_hand_dummy): Update.
2727 * inf-loop.c (inferior_event_handler): Update.
2728 * gcore.c (gcore_command, derive_heap_segment): Update.
2729 * exec.c (exec_file_command): Update.
2730 * eval.c (evaluate_subexp): Update.
2731 * compile/compile.c (compile_to_object): Update.
2732 * cli/cli-dump.c (restore_command): Update.
2733 * breakpoint.c (update_watchpoint)
2734 (update_inserted_breakpoint_locations)
2735 (insert_breakpoint_locations, get_bpstat_thread): Update.
2736 * target.h (target_has_execution): Remove macro.
2737 (target_has_execution_current): Don't declare.
2738 (target_has_execution): Rename from target_has_execution_1. Add
2739 argument default.
2740
05374cfd
TT
27412020-09-28 Tom Tromey <tom@tromey.com>
2742
2743 * mi/mi-main.c (exec_reverse_continue)
2744 (mi_cmd_list_target_features): Update.
2745 * infrun.c (set_exec_direction_func): Update.
2746 * target.c (default_execution_direction): Update.
2747 * reverse.c (exec_reverse_once): Update.
2748 * target.h (target_can_execute_reverse): Now a function.
2749
9dccd06e
TT
27502020-09-28 Tom Tromey <tom@tromey.com>
2751
2752 * tui/tui-regs.c (tui_get_register)
2753 (tui_data_window::show_registers): Update.
2754 * thread.c (scoped_restore_current_thread::restore)
2755 (scoped_restore_current_thread::scoped_restore_current_thread):
2756 Update.
2757 * regcache-dump.c (regcache_print): Update.
2758 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2759 Update.
2760 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2761 * mep-tdep.c (current_me_module, current_options): Update.
2762 * linux-thread-db.c (thread_db_load): Update.
2763 * infcmd.c (registers_info, info_vector_command)
2764 (info_float_command): Update.
2765 * ia64-tdep.c (ia64_frame_prev_register)
2766 (ia64_sigtramp_frame_prev_register): Update.
2767 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2768 * gcore.c (derive_stack_segment): Update.
2769 * frame.c (get_current_frame, has_stack_frames): Update.
2770 * findvar.c (language_defn::read_var_value): Update.
2771 * arm-tdep.c (arm_pc_is_thumb): Update.
2772 * target.c (target_has_registers): Rename from
2773 target_has_registers_1.
2774 * target.h (target_has_registers): Remove macro.
2775 (target_has_registers): Rename from target_has_registers_1.
2776
841de120
TT
27772020-09-28 Tom Tromey <tom@tromey.com>
2778
2779 * windows-tdep.c (tlb_make_value): Update.
2780 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2781 * thread.c (scoped_restore_current_thread::restore)
2782 (scoped_restore_current_thread::scoped_restore_current_thread)
2783 (thread_command): Update.
2784 * stack.c (backtrace_command_1, frame_apply_level_command)
2785 (frame_apply_all_command, frame_apply_command): Update.
2786 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2787 Update.
2788 * gcore.c (derive_stack_segment): Update.
2789 * frame.c (get_current_frame, has_stack_frames): Update.
2790 * auxv.c (info_auxv_command): Update.
2791 * ada-tasks.c (ada_build_task_list): Update.
2792 * target.c (target_has_stack): Rename from target_has_stack_1.
2793 * target.h (target_has_stack): Remove macro.
2794 (target_has_stack): Rename from target_has_stack_1.
2795
a739972c
TT
27962020-09-28 Tom Tromey <tom@tromey.com>
2797
2798 * target.c (target_has_memory): Rename from target_has_memory_1.
2799 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2800 * thread.c (scoped_restore_current_thread::restore)
2801 (scoped_restore_current_thread::scoped_restore_current_thread):
2802 Update.
2803 * frame.c (get_current_frame, has_stack_frames): Update.
2804 * target.h (target_has_memory): Remove macro.
2805 (target_has_memory): Rename from target_has_memory_1.
2806
5b8a4776
TT
28072020-09-28 Tom Tromey <tom@tromey.com>
2808
2809 * target.c (target_has_all_memory_1): Remove.
2810 * target.h (target_has_all_memory): Remove define.
2811 (target_has_all_memory_1): Don't declare.
2812
bd356ec6
SM
28132020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2814
2815 * ser-base.c: Adjust comments formatting.
2816
2c72d5e5
TT
28172020-09-27 Tom Tromey <tom@tromey.com>
2818
2819 PR tui/25342:
2820 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2821
35a98237
TT
28222020-09-27 Tom Tromey <tom@tromey.com>
2823
2824 PR tui/25342:
2825 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2826
9e820dec
TT
28272020-09-27 Tom Tromey <tom@tromey.com>
2828
2829 * unittests/tui-selftests.c: Update.
2830 * tui/tui-winsource.h (struct tui_source_window_base)
2831 <extra_margin, show_line_number, refresh_pad>: New methods.
2832 <m_max_length, m_pad>: New members.
2833 (tui_copy_source_line): Update.
2834 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2835 first_col, line_width, ndigits parameters. Add length.
2836 (tui_source_window_base::show_source_line): Write to pad. Line
2837 number now 0-based.
2838 (tui_source_window_base::refresh_pad): New method.
2839 (tui_source_window_base::show_source_content): Write to pad. Call
2840 refresh_pad.
2841 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2842 not refill.
2843 (tui_source_window_base::update_exec_info): Call
2844 show_line_number.
2845 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2846 method.
2847 <m_digits>: New member.
2848 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2849 and m_max_length.
2850 (tui_source_window::show_line_number): New method.
2851 * tui/tui-io.h (tui_puts): Fix comment.
2852 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2853 m_max_length.
2854
c15c15c8
TT
28552020-09-27 Tom Tromey <tom@tromey.com>
2856
2857 * tui/tui-winsource.c
2858 (tui_source_window_base::set_is_exec_point_at): Don't call
2859 show_source_line.
2860
149830c1
TT
28612020-09-27 Tom Tromey <tom@tromey.com>
2862
2863 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2864 method.
2865 <erase>: Update.
2866 <cursor_x, cursor_y>: Remove.
2867 <m_inner_window>: New member.
2868 (tui_py_window::rerender): Create inner window.
2869 (tui_py_window::output): Write to inner window.
2870
8f9929bb
GR
28712020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2872
2873 PR python/26586
2874 * cli/cli-script.c (execute_control_commands): don't set
2875 instream to nullptr here as this breaks the from_tty argument
2876 to gdb.execute in Python.
2877 (execute_user_command): set instream to nullptr here instead.
2878
956bdb59
SM
28792020-09-25 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * infrun.h (infrun_debug_printf): Fix formatting.
2882 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2883
3b93626b
SJ
28842020-09-25 Saagar Jha <saagar@saagarjha.com>
2885
2886 * compile/compile-object-load.h (struct munmap_list): Add
2887 explicitly-defined move constructor.
2888
b551a89f
TT
28892020-09-24 Tom Tromey <tromey@adacore.com>
2890
2891 PR tui/26638:
2892 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2893 method.
2894 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2895 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2896 (tui_prev_win): Rewrite.
2897
99bb393f
HD
28982020-09-23 Hannes Domani <ssbssa@yahoo.de>
2899
2900 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2901 in WOW64 processes as SIGINT.
2902 * nat/windows-nat.h: Make wow64_process a shared variable.
2903 * windows-nat.c: Remove static wow64_process variable.
2904
20a5fcbd
TT
29052020-09-23 Tom Tromey <tom@tromey.com>
2906
2907 PR symtab/25470:
2908 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2909 offset and bit size.
2910 * printcmd.c (print_scalar_formatted): Handle zero-length
2911 integer.
2912 (print_scalar_formatted): Use bit_size_differs_p.
2913 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2914 constant.
2915 (union type_specific): <int_stuff>: New member.
2916 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2917 methods.
2918 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2919 TYPE_SPECIFIC_FIELD.
2920 (recursive_dump_type, copy_type_recursive): Update.
2921 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2922 DW_AT_data_bit_offset.
2923
bac51ab7
TT
29242020-09-23 Tom Tromey <tom@tromey.com>
2925
2926 * utils.h (class gdb_argv): Add move operators.
2927 <append>: New methods.
2928 * compile/compile.c (build_argc_argv): Remove.
2929 (compile_args_argc): Remove.
2930 (compile_args_argv): Change type.
2931 (set_compile_args): Simplify.
2932 (append_args): Remove.
2933 (filter_args): Remove argcp parameter.
2934 (get_args): Return gdb_argv. Simplify.
2935 (compile_to_object): Update.
2936
92677124
TT
29372020-09-23 Tom Tromey <tom@tromey.com>
2938
2939 * compile/compile-object-run.c (do_module_cleanup)
2940 <~do_module_cleanup> :Remove.
2941 (do_module_cleanup): Update.
2942 * compile/compile-object-load.h (struct munmap_list): Add move
2943 assignment operator.
2944 <source_file>: Now a std::string.
2945 <munmap_list>: Rename. No longer a pointer.
2946 * compile/compile-object-load.c (struct setup_sections_data): Add
2947 constructor.
2948 <setup_one_section>: Declare.
2949 <munmap_list>: Move earlier.
2950 <m_bfd>: New member.
2951 <m_last_size, m_last_section_first, m_last_prot,
2952 m_last_max_alignment>: Rename, add initializers where needed.
2953 (setup_sections_data::setup_one_section): Rename from
2954 setup_sections. Update.
2955 (compile_object_load): Update. Don't use bfd_map_over_sections.
2956
e616f60a
TT
29572020-09-23 Tom Tromey <tom@tromey.com>
2958
2959 * compile/compile-object-run.c (struct do_module_cleanup): Add
2960 parameters to constructor. Update destructor.
2961 <source_file, scope, scope_data, out_value_type, out_value_addr,
2962 munmap_list_head, objfile_name_string>: Remove.
2963 <module>: New member.
2964 (do_module_cleanup): Update.
2965 (compile_object_run): Update.
2966
e947a848
TT
29672020-09-23 Tom Tromey <tom@tromey.com>
2968
2969 * compile/compile.c (eval_compile_command): Update.
2970 * compile/compile-object-run.h (compile_object_run): Take a
2971 compile_module_up.
2972 * compile/compile-object-run.c (compile_object_run): Take a
2973 compile_module_up.
2974 * compile/compile-object-load.h (struct compile_module): Add
2975 constructor, destructor.
2976 (compile_module_up): New typedef.
2977 (compile_object_load): Return compile_object_up.
2978 * compile/compile-object-load.c (compile_object_load): Return
2979 compile_module_up.
2980
0dbf6ee6
TT
29812020-09-23 Tom Tromey <tom@tromey.com>
2982
2983 * compile/compile-object-run.c (struct do_module_cleanup): Add
2984 constructor, destructor.
2985 <objfile_name_string>: Don't use struct hack.
2986 (do_module_cleanup): Use delete.
2987 (compile_object_run): Use new.
2988
ebe824f5
TT
29892020-09-23 Tom Tromey <tom@tromey.com>
2990
2991 * compile/compile-cplus-types.c
2992 (compile_cplus_convert_struct_or_union): Use std::vector.
2993 (compile_cplus_convert_func): Likewise.
2994 * compile/compile-c-types.c (convert_func): Use std::vector.
2995
5dd918d9
TT
29962020-09-21 Tom Tromey <tromey@adacore.com>
2997
2998 * sparc-tdep.c (sparc32_skip_prologue): Use
2999 skip_prologue_using_sal.
3000
5486c517
TT
30012020-09-19 Tom Tromey <tom@tromey.com>
3002
3003 * symfile.c (add_section_size_callback): Remove.
3004 (load_one_section): Rename from load_section_callback. Change
3005 parameters.
3006 (generic_load): Use foreach.
3007
8a6bb1d1
TT
30082020-09-19 Tom Tromey <tom@tromey.com>
3009
3010 * exec.c (add_to_section_table): Remove.
3011 (build_section_table): Use foreach.
3012
08f93a1a
TT
30132020-09-19 Tom Tromey <tom@tromey.com>
3014
3015 * elfread.c (elf_locate_sections): Change parameters.
3016 (elf_symfile_read): Use foreach.
3017
03cd72b8
TT
30182020-09-19 Tom Tromey <tom@tromey.com>
3019
3020 * cli/cli-dump.c (struct callback_data): Remove.
3021 (restore_one_section): Rename from restore_section_callback.
3022 Change parameters.
3023 (restore_binary_file): Change parameters.
3024 (restore_command): Use foreach.
3025
f4f2b85f
TT
30262020-09-19 Tom Tromey <tom@tromey.com>
3027
3028 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3029 (gcore_copy_callback): Likewise.
3030 (gcore_memory_sections): Use foreach.
3031
b35c1d1c
TT
30322020-09-19 Tom Tromey <tom@tromey.com>
3033
3034 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3035 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3036 parameters.
3037 (generic_elf_osabi_sniffer): Use foreach.
3038 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3039 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3040
5bb6e9dd
TT
30412020-09-19 Tom Tromey <tom@tromey.com>
3042
3043 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3044 (dwarf2_get_dwz_file): Use foreach.
3045 (dwarf2_locate_dwo_sections): Change parameters.
3046 (open_and_init_dwo_file): Use foreach.
3047 (dwarf2_locate_common_dwp_sections): Change parameters.
3048 (open_and_init_dwp_file): Use foreach.
3049
ad7277da
TT
30502020-09-19 Tom Tromey <tom@tromey.com>
3051
3052 * symfile.h: (find_lowest_section): Don't declare.
3053 * symfile.c (find_lowest_section): Now static. Change
3054 parameters.
3055 (struct place_section_arg): Remove.
3056 (place_section): Change parameters.
3057 (addr_info_make_relative): Use foreach.
3058 (symfile_dummy_outputs): Remove.
3059 (default_symfile_relocate): Use foreach.
3060
cb814f2e
TT
30612020-09-19 Tom Tromey <tom@tromey.com>
3062
3063 * objfiles.c (add_to_objfile_sections): Rename from
3064 add_to_objfile_sections_full.
3065 (add_to_objfile_sections): Remove.
3066 (build_objfile_section_table): Use foreach.
3067
3cabfd26
TT
30682020-09-19 Tom Tromey <tom@tromey.com>
3069
3070 * stap-probe.c (get_stap_base_address_1): Remove.
3071 (get_stap_base_address): Use foreach.
3072
1ce51eb5
TT
30732020-09-19 Tom Tromey <tom@tromey.com>
3074
3075 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3076 parameters.
3077 (gdb_bfd_close_or_warn): Use foreach.
3078
a190fabb
TT
30792020-09-19 Tom Tromey <tom@tromey.com>
3080
3081 * corelow.c (add_to_thread_list): Change parameters.
3082 (core_target_open): Use foreach.
3083
cafb0d81
TT
30842020-09-19 Tom Tromey <tom@tromey.com>
3085
3086 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3087 existing function.
3088
c8d5abea
AB
30892020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3090
3091 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3092 for arrays.
3093
6d816919
AB
30942020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3095
3096 * eval.c: Remove 'f-lang.h' include.
3097 (value_f90_subarray): Moved to f-lang.c.
3098 (eval_call): Renamed to...
3099 (evaluate_subexp_do_call): ...this, is no longer static, header
3100 comment moved into header file.
3101 (evaluate_funcall): Update call to eval_call.
3102 (skip_undetermined_arglist): Moved to f-lang.c.
3103 (fortran_value_subarray): Likewise.
3104 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3105 moved to evaluate_subexp_f.
3106 (calc_f77_array_dims): Moved to f-lang.c
3107 * expprint.c (print_subexp_funcall): New function.
3108 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3109 moved to print_subexp_f, OP_FUNCALL uses new function.
3110 (dump_subexp_body_funcall): New function.
3111 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3112 moved to dump_subexp_f, OP_FUNCALL uses new function.
3113 * expression.h (evaluate_subexp_do_call): Declare.
3114 * f-lang.c (value_f90_subarray): Moved from eval.c.
3115 (skip_undetermined_arglist): Likewise.
3116 (calc_f77_array_dims): Likewise.
3117 (fortran_value_subarray): Likewise.
3118 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3119 (operator_length_f): Likewise.
3120 (print_subexp_f): Likewise.
3121 (dump_subexp_body_f): Likewise.
3122 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3123 declaration of this operation to here.
3124 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3125 support moved to operator_length_f.
3126 * parser-defs.h (dump_subexp_body_funcall): Declare.
3127 (print_subexp_funcall): Declare.
3128 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3129 fortran-operator.def.
3130
8c37706a
AB
31312020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3132
3133 * eval.c (fortran_value_subarray): New function, content is taken
3134 from...
3135 (evaluate_subexp_standard): ...here, in two places. Now arrays
3136 and strings both call the new function.
3137 (calc_f77_array_dims): Add header comment, handle strings.
3138
14f9473c
VC
31392020-09-18 Victor Collod <vcollod@nvidia.com>
3140
3141 PR gdb/26635
3142 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3143 (i386_analyze_prologue): Call i386_skip_endbr.
3144
b60cea74
TT
31452020-09-18 Tom Tromey <tromey@adacore.com>
3146
3147 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3148 (windows_nat_target::wait): Update.
3149 * target/wait.h (enum target_wait_flag): New. Use
3150 DEF_ENUM_FLAGS_TYPE.
3151 * target/target.h (target_wait): Change type of options.
3152 * target.h (target_options_to_string, default_target_wait):
3153 Update.
3154 (struct target_ops) <wait>: Change type of options.
3155 * target.c (target_wait, default_target_wait, do_option): Change
3156 type of "options".
3157 (target_options_to_string): Likewise.
3158 * target-delegates.c: Rebuild.
3159 * target-debug.h (target_debug_print_target_wait_flags): Rename
3160 from target_debug_print_options.
3161 * sol-thread.c (class sol_thread_target) <wait>: Update.
3162 (sol_thread_target::wait): Update.
3163 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3164 (rs6000_nat_target::wait): Update.
3165 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3166 Update.
3167 (remote_target::wait_ns, remote_target::wait_as): Change type of
3168 "options".
3169 (remote_target::wait): Update.
3170 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3171 (gdbsim_target::wait): Update.
3172 * record-full.c (class record_full_base_target) <wait>: Update.
3173 (record_full_wait_1): Change type of "options".
3174 (record_full_base_target::wait): Update.
3175 * record-btrace.c (class record_btrace_target) <wait>: Update.
3176 (record_btrace_target::wait): Update.
3177 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3178 Update.
3179 (ravenscar_thread_target::wait): Update.
3180 * procfs.c (class procfs_target) <wait>: Update.
3181 (procfs_target::wait): Update.
3182 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3183 * obsd-nat.c (obsd_nat_target::wait): Update.
3184 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3185 (nto_procfs_target::wait): Update.
3186 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3187 * nbsd-nat.c (nbsd_wait): Change type of "options".
3188 (nbsd_nat_target::wait): Update.
3189 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3190 (thread_db_target::wait): Update.
3191 * linux-nat.h (class linux_nat_target) <wait>: Update.
3192 * linux-nat.c (linux_nat_target::wait): Update.
3193 (linux_nat_wait_1): Update.
3194 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3195 "options".
3196 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3197 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3198 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3199 (go32_nat_target::wait): Update.
3200 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3201 * gnu-nat.c (gnu_nat_target::wait): Update.
3202 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3203 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3204 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3205 * darwin-nat.c (darwin_nat_target::wait): Update.
3206 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3207 (bsd_uthread_target::wait): Update.
3208 * aix-thread.c (class aix_thread_target) <wait>: Update.
3209 (aix_thread_target::wait): Update.
3210
0295dde6
AB
32112020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3212
3213 * compile/compile-object-run.c (create_copied_type_recursive): New
3214 function.
3215 (compile_object_run): Use new function.
3216
d3483b43
JT
32172020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3218
3219 * NEWS: Mention x86_64 Cygwin core file support.
3220
e7d612ad
JT
32212020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3222
3223 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3224 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3225
aff9d387
JT
32262020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3227
62a5151b
JT
3228 * windows-tdep.h: Add prototypes.
3229 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3230 (i386_windows_core_pid_to_str): Move and rename ...
3231 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3232 (windows_core_pid_to_str): ... and here.
3233 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3234
32352020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3236 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3237 (amd64_windows_init_abi_common): ... and register.
3238
7d155da3
JT
32392020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3240
3241 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3242 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3243
e8ef12b9
PA
32442020-09-18 Pedro Alves <pedro@palves.net>
3245
3246 PR gdb/26631
3247 * thread.c (thread_find_command): Switch inferior before calling
3248 target methods.
3249
c1e1314d
TT
32502020-09-17 Tom Tromey <tromey@adacore.com>
3251
3252 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3253 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3254 (tdesc_arch_data_up): New typedef.
3255 (tdesc_use_registers, tdesc_data_alloc): Update.
3256 (tdesc_data_cleanup): Don't declare.
3257 * target-descriptions.c (tdesc_data_alloc): Return a
3258 tdesc_arch_data_up.
3259 (tdesc_arch_data_deleter::operator()): Rename from
3260 tdesc_data_cleanup. Change argument type.
3261 (tdesc_use_registers): Change early_data to an rvalue reference.
3262 (tdesc_use_registers): Don't use delete.
3263 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3264 * s390-tdep.c (s390_gdbarch_init): Update.
3265 * rx-tdep.c (rx_gdbarch_init): Update.
3266 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3267 * riscv-tdep.c (riscv_gdbarch_init): Update.
3268 * or1k-tdep.c (or1k_gdbarch_init): Update.
3269 * nios2-tdep.c (nios2_gdbarch_init): Update.
3270 * nds32-tdep.c (nds32_gdbarch_init): Update.
3271 * mips-tdep.c (mips_gdbarch_init): Update.
3272 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3273 * m68k-tdep.c (m68k_gdbarch_init): Update.
3274 * i386-tdep.c (i386_gdbarch_init): Update.
3275 * arm-tdep.c (arm_gdbarch_init): Update.
3276 * arc-tdep.c (arc_tdesc_init): Update.
3277 (arc_gdbarch_init): Update.
3278 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3279
0363df3d
HD
32802020-09-17 Hannes Domani <ssbssa@yahoo.de>
3281
3282 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3283 for WOW64 processes.
3284
280a9412
TT
32852020-09-17 Tom Tromey <tom@tromey.com>
3286
3287 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3288
6108fd18
TT
32892020-09-17 Tom Tromey <tom@tromey.com>
3290
3291 * value.c (preserve_values): Update.
3292 * python/py-type.c (save_objfile_types): Update.
3293 * guile/scm-type.c (save_objfile_types): Update.
3294 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3295 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3296 * compile/compile-object-run.c (compile_object_run): Update.
3297
fa9b1164
TT
32982020-09-17 Tom Tromey <tom@tromey.com>
3299
3300 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3301 Remove.
3302 <m_table>: Now htab_up.
3303 * typeprint.c (typedef_hash_table::recursively_update)
3304 (typedef_hash_table::add_template_parameters)
3305 (typedef_hash_table::typedef_hash_table): Update.
3306 (typedef_hash_table::~typedef_hash_table): Remove.
3307 (typedef_hash_table::typedef_hash_table)
3308 (typedef_hash_table::find_global_typedef)
3309 (typedef_hash_table::find_typedef): Update.
3310
eb53f105
TT
33112020-09-17 Tom Tromey <tom@tromey.com>
3312
3313 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3314
7a8a5d47
TT
33152020-09-17 Tom Tromey <tom@tromey.com>
3316
3317 * linespec.c (class decode_compound_collector)
3318 <~decode_compound_collector>: Remove.
3319 <m_unique_syms>: Now htab_up.
3320 (decode_compound_collector::operator ()): Update.
3321 (class symtab_collector) <~symtab_collector>: Remove.
3322 <m_symtab_table>: Now htab_up.
3323 (symtab_collector::operator ()): Update.
3324
99032cfc
TT
33252020-09-17 Tom Tromey <tom@tromey.com>
3326
3327 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3328 (filename_seen_cache::clear): Update.
3329 (~filename_seen_cache): Remove.
3330 (filename_seen_cache::seen): Update.
3331 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3332 htab_up.
3333 <~filename_seen_cache>: Remove.
3334 <traverse>: Update.
3335
32580f6d
TT
33362020-09-17 Tom Tromey <tom@tromey.com>
3337
3338 * completer.c (completion_tracker::discard_completions)
3339 (completion_tracker::~completion_tracker)
3340 (completion_tracker::maybe_add_completion)
3341 (completion_tracker::remove_completion)
3342 (completion_tracker::recompute_lowest_common_denominator)
3343 (completion_tracker::build_completion_result): Update.
3344 * completer.h (class completion_tracker) <have_completions>:
3345 Update.
3346 <m_entries_hash>: Now htab_up.
3347
c1fb9836
TT
33482020-09-17 Tom Tromey <tom@tromey.com>
3349
3350 * breakpoint.c (ambiguous_names_p): Use htab_up.
3351
88f07206
TT
33522020-09-17 Tom Tromey <tom@tromey.com>
3353
3354 * auto-load.c (struct auto_load_pspace_info)
3355 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3356 <loaded_script_files, loaded_script_texts>: Change type to
3357 htab_up.
3358 (~auto_load_pspace_info) Remove.
3359 (init_loaded_scripts_info, maybe_add_script_file)
3360 (maybe_add_script_text, auto_load_info_scripts): Update.
3361
9519b2ee
TT
33622020-09-17 Tom Tromey <tromey@adacore.com>
3363
3364 * c-exp.y (name_obstack): Now static.
3365
d2cd4113
CC
33662020-09-17 Chungyi Chi <demonic@csie.io>
3367
3368 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3369
b650a282
SM
33702020-09-16 Simon Marchi <simon.marchi@efficios.com>
3371
3372 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3373 (add_solib_catchpoint): Likewise.
3374 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3375 to bool.
3376 (add_solib_catchpoint): Change int parameter/variable to bool.
3377 (catch_load_or_unload): Likewise.
3378 (init_catchpoint): Likewise.
3379 (create_fork_vfork_event_catchpoint): Likewise.
3380 (catch_fork_command_1): Likewise.
3381 (catch_exec_command_1): Likewise.
3382
4d0bcfcf
SM
33832020-09-16 Simon Marchi <simon.marchi@efficios.com>
3384
3385 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3386 Change instance_flags to m_instance_flags.
3387
fe830662
TT
33882020-09-16 Tom Tromey <tromey@adacore.com>
3389
3390 PR gdb/26598:
3391 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3392
fe5ddfc3
JB
33932020-09-16 John Baldwin <jhb@FreeBSD.org>
3394
3395 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3396 PL_FLAG_EXEC.
3397 (fbsd_nat_target::insert_exec_catchpoint)
3398 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3399 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3400 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3401
e911c666
JB
34022020-09-16 John Baldwin <jhb@FreeBSD.org>
3403
3404 * configure.ac: Remove check for kinfo_getvmmap().
3405 * configure, config.in: Regenerate.
3406 * fbsd-nat.c (fbsd_read_mapping): Remove
3407 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3408 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3409 kinfo_get_vmmap() are always present.
3410
1f17d372
JB
34112020-09-16 John Baldwin <jhb@FreeBSD.org>
3412
3413 * fbsd-nat.c: Always include support for
3414 TARGET_OBJECT_SIGNAL_INFO.
3415
bcb1da7f
JB
34162020-09-16 John Baldwin <jhb@FreeBSD.org>
3417
3418 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3419 sysctl and remove procfs fallback.
3420
5515f729
JB
34212020-09-16 John Baldwin <jhb@FreeBSD.org>
3422
3423 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3424 * fbsd-nat.h: Likewise.
3425
da1df1db
TBA
34262020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3427
3428 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3429 argument.
3430
0e25e767
AB
34312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3432
3433 * ada-lang.c (ada_language_data): Delete.
3434 (ada_language): Remove references to ada_language_data.
3435 * c-lang.c (c_language_data): Delete.
3436 (c_language): Remove references to c_language_data.
3437 (cplus_language_data): Delete.
3438 (cplus_language): Remove references to cplus_language_data.
3439 (asm_language_data): Delete.
3440 (asm_language): Remove references to asm_language_data.
3441 (minimal_language_data): Delete.
3442 (minimal_language): Remove references to minimal_language_data.
3443 * d-lang.c (d_language_data): Delete.
3444 (d_language): Remove references to d_language_data.
3445 * f-lang.c (f_language_data): Delete.
3446 (f_language): Remove references to f_language_data.
3447 * go-lang.c (go_language_data): Delete.
3448 (go_language): Remove references to go_language_data.
3449 * language.c (unknown_language_data): Delete.
3450 (unknown_language): Remove references to unknown_language_data.
3451 (auto_language_data): Delete.
3452 (auto_language): Remove references to auto_language_data.
3453 * language.h (language_data): Delete struct.
3454 (language_defn): No longer inherit from language_data.
3455 * m2-lang.c (m2_language_data): Delete.
3456 (m2_language): Remove references to m2_language_data.
3457 * objc-lang.c (objc_language_data): Delete.
3458 (objc_language): Remove references to objc_language_data.
3459 * opencl-lang.c (opencl_language_data): Delete.
3460 (opencl_language): Remove references to opencl_language_data.
3461 * p-lang.c (pascal_language_data): Delete.
3462 (pascal_language): Remove references to pascal_language_data.
3463 * rust-lang.c (rust_language_data): Delete.
3464 (rust_language): Remove references to rust_language_data.
3465
b7c6e27d
AB
34662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3469 initializer.
3470 (ada_language::opcode_print_table): New member function.
3471 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3472 (c_language::opcode_print_table): New member function.
3473 (cplus_language_data): Remove la_op_print_tab initializer.
3474 (cplus_language::opcode_print_table): New member function.
3475 (asm_language_data): Remove la_op_print_tab initializer.
3476 (asm_language::opcode_print_table): New member function.
3477 (minimal_language_data): Remove la_op_print_tab initializer.
3478 (minimal_language::opcode_print_table): New member function.
3479 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3480 (d_language::opcode_print_table): New member function.
3481 * expprint.c (print_subexp_standard): Update call to
3482 opcode_print_table.
3483 (op_string): Likewise.
3484 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3485 (f_language::opcode_print_table): New member function.
3486 * go-lang.c (go_language_data): Remove la_op_print_tab
3487 initializer.
3488 (go_language::opcode_print_table): New member function.
3489 * language.c (unknown_language_data): Remove la_op_print_tab
3490 initializer.
3491 (unknown_language::opcode_print_table): New member function.
3492 (auto_language_data): Remove la_op_print_tab initializer.
3493 (auto_language::opcode_print_table): New member function.
3494 * language.h (language_data): Remove la_op_print_tab field.
3495 (language_defn::opcode_print_table): Declare new member function.
3496 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3497 initializer.
3498 (m2_language::opcode_print_table): New member function.
3499 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3500 initializer.
3501 (objc_language::opcode_print_table): New member function.
3502 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3503 initializer.
3504 (opencl_language::opcode_print_table): New member function.
3505 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3506 initializer.
3507 (pascal_language::opcode_print_table): New member function.
3508 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3509 initializer.
3510 (rust_language::opcode_print_table): New member function.
3511
5aba6ebe
AB
35122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3513
3514 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3515 (ada_language::expression_ops): New member function.
3516 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3517 (c_language::expression_ops): New member function.
3518 (cplus_language_data): Remove la_exp_desc initializer.
3519 (cplus_language::expression_ops): New member function.
3520 (asm_language_data): Remove la_exp_desc initializer.
3521 (asm_language::expression_ops): New member function.
3522 (minimal_language_data): Remove la_exp_desc initializer.
3523 (minimal_language::expression_ops): New member function.
3524 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3525 (d_language::expression_ops): New member function.
3526 * eval.c (evaluate_subexp): Update call to expression_ops.
3527 * expprint.c (print_subexp): Likewise.
3528 (op_name): Likewise.
3529 (dump_subexp_body): Likewise.
3530 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3531 (f_language::expression_ops): New member function.
3532 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3533 (go_language::expression_ops): New member function.
3534 * language.c (language_defn::expression_ops): New function.
3535 (unknown_language_data): Remove la_exp_desc initializer.
3536 (auto_language_data): Likewise.
3537 * language.h (language_data): Remove la_exp_desc field.
3538 (language_defn::expression_ops): Declare new member function.
3539 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3540 (m2_language::expression_ops): New member function.
3541 * objc-lang.c (objc_language_data): Remove la_exp_desc
3542 initializer.
3543 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3544 initializer.
3545 (opencl_language::expression_ops): New member function.
3546 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3547 * parse.c (operator_length): Update call to expression_ops.
3548 (exp_iterate): Likewise.
3549 * rust-lang.c (rust_language_data): Remove la_exp_desc
3550 initializer.
3551 (ruse_language::expression_ops): New member function.
3552
b63a3f3f
AB
35532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3554
3555 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3556 initializer.
3557 (ada_language::varobj_ops): New member function.
3558 * c-lang.c (c_language_data): Remove la_varobj_ops
3559 initializer.
3560 (cplus_language_data): Likewise.
3561 (cplus_language::varobj_ops): New member function.
3562 (asm_language_data): Remove la_varobj_ops initializer.
3563 (minimal_language_data): Likewise.
3564 * d-lang.c (d_language_data): Likewise.
3565 * f-lang.c (f_language_data): Likewise.
3566 * go-lang.c (go_language_data): Likewise.
3567 * language.c (language_defn::varobj_ops): New function.
3568 (unknown_language_data): Remove la_varobj_ops
3569 initializer.
3570 (auto_language_data): Likewise.
3571 * language.h (language_data): Remove la_varobj_ops field.
3572 (language_defn::varobj_ops): Declare new member function.
3573 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3574 * objc-lang.c (objc_language_data): Likewise.
3575 * opencl-lang.c (opencl_language_data): Likewise.
3576 * p-lang.c (pascal_language_data): Likewise.
3577 * rust-lang.c (rust_language_data): Likewise.
3578 * varobj.c (varobj_create): Update call to varobj_ops.
3579 * varobj.h (default_varobj_ops): Delete define.
3580
1ac14a04
AB
35812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3582
3583 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3584 initializer.
3585 * c-lang.c (c_language_data): Likewise.
3586 (c_language::macro_expansion): New member function.
3587 (cplus_language_data): Likewise.
3588 (cplus_language::macro_expansion): New member function.
3589 (asm_language_data): Likewise.
3590 (asm_language::macro_expansion): New member function.
3591 (minimal_language_data): Likewise.
3592 (minimal_language::macro_expansion): New member function.
3593 * d-lang.c (d_language_data): Remove la_macro_expansion
3594 initializer.
3595 * f-lang.c (f_language_data): Likewise.
3596 * go-lang.c (go_language_data): Likewise.
3597 * language.c (unknown_language_data): Likewise.
3598 (auto_language_data): Likewise.
3599 * language.h (language_data): Remove la_macro_expansion field.
3600 (language_defn::macro_expansion): New member function.
3601 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3602 initializer.
3603 * objc-lang.c (objc_language_data): Likewise.
3604 (objc_language::macro_expansion): New member function.
3605 * opencl-lang.c (opencl_language_data): Likewise.
3606 (opencl_language::macro_expansion): New member function.
3607 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3608 initializer.
3609 * rust-lang.c (rust_language_data): Likewise.
3610 * symtab.c (default_collect_symbol_completion_matches_break_on):
3611 Update call to macro_expansion.
3612
3a3440fb
AB
36132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3614
3615 * ada-lang.c (ada_language_data): Remove la_array_ordering
3616 initializer.
3617 * c-lang.c (c_language_data): Likewise.
3618 (cplus_language_data): Likewise.
3619 (asm_language_data): Likewise.
3620 (minimal_language_data): Likewise.
3621 * d-lang.c (d_language_data): Likewise.
3622 * dwarf2/read.c (read_array_order): Update for call to
3623 array_ordering.
3624 * f-lang.c (f_language_data): Remove la_array_ordering
3625 initializer.
3626 (f_language::array_ordering): New member function.
3627 * go-lang.c (go_language_data): Remove la_array_ordering
3628 initializer.
3629 * language.c (unknown_language_data): Likewise.
3630 (auto_language_data): Likewise.
3631 * language.h (language_data): Delete la_array_ordering field.
3632 (language_defn::array_ordering): New member function.
3633 * m2-lang.c (m2_language_data): Remove la_array_ordering
3634 initializer.
3635 * objc-lang.c (objc_language_data): Likewise.
3636 * opencl-lang.c (opencl_language_data): Likewise.
3637 * p-lang.c (pascal_language_data): Likewise.
3638 * rust-lang.c (rust_language_data): Likewise.
3639
0d201fa4
AB
36402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3641
3642 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3643 initializer.
3644 * c-lang.c (c_language_data): Likewise.
3645 (cplus_language_data): Likewise.
3646 (asm_language_data): Likewise.
3647 (minimal_language_data): Likewise.
3648 * d-lang.c (d_language_data): Likewise.
3649 * f-lang.c (f_language_data): Likewise.
3650 (f_language::case_sensitivity): New member function.
3651 * go-lang.c (go_language_data): Remove la_case_sensitivity
3652 initializer.
3653 * language.c (enum case_mode): Moved here from language.h.
3654 (case_mode): Make static.
3655 (show_case_command): Update for case_sensitivity being a method.
3656 (set_case_command): Likewise.
3657 (set_range_case): Likewise.
3658 (unknown_language_data): Remove la_case_sensitivity initializer.
3659 (auto_language_data): Likewise.
3660 * language.h (case_mode): Delete, move enum declaration to
3661 language.c.
3662 (language_data): Delete la_case_sensitivity field.
3663 (language_defn::case_sensitivity): New member function.
3664 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3665 initializer.
3666 * objc-lang.c (objc_language_data): Likewise.
3667 * opencl-lang.c (opencl_language_data): Likewise.
3668 * p-lang.c (pascal_language_data): Likewise.
3669 * rust-lang.c (rust_language_data): Likewise.
3670
efdf6a73
AB
36712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3672
3673 * ada-lang.c (ada_language_data): Remove la_range_check
3674 initializer.
3675 * c-lang.c (c_language_data): Likewise.
3676 (cplus_language_data): Likewise.
3677 (asm_language_data): Likewise.
3678 (minimal_language_data): Likewise.
3679 * d-lang.c (d_language_data): Likewise.
3680 * f-lang.c (f_language_data): Likewise.
3681 (f_language::range_checking_on_by_default): New member function.
3682 * go-lang.c (go_language_data): Remove la_range_check initializer.
3683 * language.c (enum range_mode): Moved here from language.h.
3684 (range_mode): Made static.
3685 (show_range_command): Update to use
3686 range_checking_on_by_default.
3687 (set_range_command): Likewise.
3688 (set_range_case): Likewise.
3689 (unknown_language_data): Remove la_range_check initializer.
3690 (auto_language_data): Likewise.
3691 * language.h (range_mode): Delete. Enum definition moved to
3692 language.c.
3693 (language_data): Remove la_range_check field.
3694 (language_defn::range_checking_on_by_default): New member
3695 function.
3696 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3697 (m2_language::range_checking_on_by_default): New member function.
3698 * objc-lang.c (objc_language_data): Remove la_range_check
3699 initializer.
3700 * opencl-lang.c (opencl_language_data): Likewise.
3701 * p-lang.c (pascal_language_data): Likewise.
3702 (pascal_language::range_checking_on_by_default): New member
3703 function.
3704 * rust-lang.c (rust_language_data): Remove la_range_check
3705 initializer.
3706 (rust_language::range_checking_on_by_default): New member
3707 function.
3708
bf92aec5
AB
37092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3710
3711 * dwarf2/read.c (dwarf2_physname): Remove special case for
3712 language_go.
3713 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3714 member function.
3715
d3355e4d
AB
37162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3717
3718 * ada-lang.c (ada_language_data): Remove
3719 la_store_sym_names_in_linkage_form_p initializer.
3720 (ada_language::store_sym_names_in_linkage_form_p): New member
3721 function.
3722 * c-lang.c (c_language_data): Remove
3723 la_store_sym_names_in_linkage_form_p initializer.
3724 (c_language::store_sym_names_in_linkage_form_p): New member
3725 function.
3726 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3727 initializer.
3728 (asm_language_data): Likewise.
3729 (asm_language::store_sym_names_in_linkage_form_p): New member
3730 function.
3731 (minimal_language_data): Remove
3732 la_store_sym_names_in_linkage_form_p initializer.
3733 (minimal_language::store_sym_names_in_linkage_form_p): New member
3734 function.
3735 * d-lang.c (d_language_data): Remove
3736 la_store_sym_names_in_linkage_form_p initializer.
3737 * dwarf2/read.c (dwarf2_physname): Update call to
3738 store_sym_names_in_linkage_form_p.
3739 * f-lang.c (f_language_data): Remove
3740 la_store_sym_names_in_linkage_form_p initializer.
3741 * go-lang.c (go_language_data): Remove
3742 la_store_sym_names_in_linkage_form_p initializer.
3743 * language.c (unknown_language_data): Remove
3744 la_store_sym_names_in_linkage_form_p initializer.
3745 (unknown_language::store_sym_names_in_linkage_form_p): New member
3746 function.
3747 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3748 initializer.
3749 (auto_language::store_sym_names_in_linkage_form_p): New member
3750 function.
3751 * language.h (language_data): Remove
3752 la_store_sym_names_in_linkage_form_p member variable.
3753 (language_defn::store_sym_names_in_linkage_form_p): New member
3754 function.
3755 * m2-lang.c (m2_language_data): Remove
3756 la_store_sym_names_in_linkage_form_p initializer.
3757 * objc-lang.c (objc_language_data): Likewise.
3758 * opencl-lang.c (opencl_language_data): Likewise.
3759 * p-lang.c (pascal_language_data): Likewise.
3760 * rust-lang.c (rust_language_data): Likewise.
3761
22c12a6c
AB
37622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3763
3764 * ada-lang.c (ada_language_data): Remove string_lower_bound
3765 initializer.
3766 * c-lang.c (c_language_data): Likewise.
3767 (cplus_language_data): Likewise.
3768 (asm_language_data): Likewise.
3769 (minimal_language_data): Likewise.
3770 * d-lang.c (d_language_data): Likewise.
3771 * f-lang.c (f_language_data): Likewise.
3772 * go-lang.c (go_language_data): Likewise.
3773 * language.c (unknown_language_data): Likewise.
3774 (auto_language_data): Likewise.
3775 * language.h (language_data): Remove string_lower_bound field.
3776 (language_defn::string_lower_bound): New member function.
3777 * m2-lang.c (m2_language_data): Remove string_lower_bound
3778 initializer.
3779 (m2_language::string_lower_bound): New member function.
3780 * objc-lang.c (objc_language_data): Remove string_lower_bound
3781 initializer.
3782 * opencl-lang.c (opencl_language_data): Likewise.
3783 * p-lang.c (pascal_language_data): Likewise.
3784 * rust-lang.c (rust_language_data): Likewise.
3785 * valops.c (value_cstring): Update call to string_lower_bound.
3786 (value_string): Likewise.
3787 * value.c (allocate_repeated_value): Likewise.
3788
1c236ddd
AB
37892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3790
3791 * valops.c (value_repeat): Fix incorrect argument name in comment.
3792
67bd3fd5
AB
37932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3794
3795 * ada-lang.c (ada_language_data): Remove c_style_arrays
3796 initializer.
3797 (ada_language::c_style_arrays_p): New member fuction.
3798 * c-lang.c (c_language_data): Remove c_style_arrays
3799 initializer.
3800 (cplus_language_data): Likewise.
3801 (asm_language_data): Likewise.
3802 (minimal_language_data): Likewise.
3803 * d-lang.c (d_language_data): Likewise.
3804 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3805 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3806 (f_language::c_style_arrays_p): New member function.
3807 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3808 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3809 * language.c (unknown_language_data): Remove c_style_arrays
3810 initializer.
3811 (auto_language_data): Likewise.
3812 * language.h (language_data): Remove c_style_arrays field.
3813 (language_defn::c_style_arrays_p): New member function.
3814 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3815 (m2_language::c_style_arrays_p): New member function.
3816 * objc-lang.c (objc_language_data): Remove c_style_arrays
3817 initializer.
3818 * opencl-lang.c (opencl_language_data): Likewise.
3819 * p-lang.c (pascal_language_data): Likewise.
3820 * rust-lang.c (rust_language_data): Likewise.
3821 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3822 and update local variable to a bool.
3823 * valops.c (value_cast): Update call to c_style_arrays_p.
3824 (value_array): Likewise.
3825 * value.c (coerce_array): Likewise.
3826
85967615
AB
38272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3828
3829 * ada-lang.c (ada_language_data): Remove la_language initializer.
3830 * c-lang.c (c_language_data): Likewise.
3831 (cplus_language_data): Likewise.
3832 (asm_language_data): Likewise.
3833 (minimal_language_data): Likewise.
3834 * d-lang.c (d_language_data): Likewise.
3835 * f-lang.c (f_language_data): Likewise.
3836 * go-lang.c (go_language_data): Likewise.
3837 * language.c (unknown_language_data): Likewise.
3838 (auto_language_data): Likewise.
3839 * language.h (language_data): Remove la_language field.
3840 (language_defn::language_defn): Initialise la_language field.
3841 (language_defn::la_language): New member variable.
3842 * m2-lang.c (m2_language_data): Remove la_language field.
3843 * objc-lang.c (objc_language_data): Likewise.
3844 * opencl-lang.c (opencl_language_data): Likewise.
3845 * p-lang.c (pascal_language_data): Likewise.
3846 * rust-lang.c (rust_language_data): Likewise.
3847
e171d6f1
AB
38482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3849
3850 * ada-lang.c (ada_extensions): Delete, moved into
3851 ada_language::filename_extensions.
3852 (ada_language_data): Remove la_filename_extensions initializer.
3853 (ada_language::filename_extensions): New member function.
3854 * c-lang.c (c_extensions): Delete, moved into
3855 c_language::filename_extensions.
3856 (c_language_data): Remove la_filename_extensions initializer.
3857 (c_language::filename_extensions): New member function.
3858 (cplus_extensions): Delete, moved into
3859 cplus_language::filename_extensions.
3860 (cplus_language_data): Remove la_filename_extensions initializer.
3861 (cplus_language::filename_extensions): New member function.
3862 (asm_extensions): Delete, moved into
3863 asm_language::filename_extensions.
3864 (asm_language_data): Remove la_filename_extensions initializer.
3865 (asm_language::filename_extensions): New member function.
3866 (minimal_language_data): Remove la_filename_extensions
3867 initializer.
3868 * d-lang.c (d_extensions): Delete, moved into
3869 d_language::filename_extensions.
3870 (d_language_data): Remove la_filename_extensions initializer.
3871 (d_language::filename_extensions): New member function.
3872 * f-lang.c (f_extensions): Delete, moved into
3873 f_language::filename_extensions.
3874 (f_language_data): Remove la_filename_extensions initializer.
3875 (f_language::filename_extensions): New member function.
3876 * go-lang.c (go_language_data): Remove la_filename_extensions
3877 initializer.
3878 * language.c (add_set_language_command): Update now that
3879 filename_extensions returns a vector.
3880 (unknown_language_data): Remove la_filename_extensions
3881 initializer.
3882 (auto_language_data): Likewise.
3883 * language.h (language_data): Remove la_filename_extensions field.
3884 (language_defn::filename_extensions): New member function.
3885 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3886 initializer.
3887 * objc-lang.c (objc_extensions): Delete, moved into
3888 objc_language::filename_extensions.
3889 (objc_language_data): Remove la_filename_extensions initializer.
3890 (objc_language::filename_extensions): New member function.
3891 * opencl-lang.c (opencl_language_data): Remove
3892 la_filename_extensions initializer.
3893 * p-lang.c (pascal_extensions): Delete, moved into
3894 pascal_language::filename_extensions.
3895 (pascal_language_data): Remove la_filename_extensions initializer.
3896 (pascal_language::filename_extensions): New member function.
3897 * rust-lang.c (rust_extensions): Delete, moved into
3898 rust_language::filename_extensions.
3899 (rust_language_data): Remove la_filename_extensions initializer.
3900 (rust_language::filename_extensions): New member function.
3901 * symfile.c (add_filename_language): Add new assert.
3902
6f7664a9
AB
39032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3904
3905 * ada-lang.c (ada_language_data): Remove la_name and
3906 la_natural_name initializers.
3907 (ada_language::name): New member function.
3908 (ada_language::natural_name): New member function.
3909 * c-lang.c (c_language_data): Remove la_name and
3910 la_natural_name initializers.
3911 (c_language::name): New member function.
3912 (c_language::natural_name): New member function.
3913 (cplus_language_data): Remove la_name and
3914 la_natural_name initializers.
3915 (cplus_language::name): New member function.
3916 (cplus_language::natural_name): New member function.
3917 (asm_language_data): Remove la_name and
3918 la_natural_name initializers.
3919 (asm_language::name): New member function.
3920 (asm_language::natural_name): New member function.
3921 (minimal_language_data): Remove la_name and
3922 la_natural_name initializers.
3923 (minimal_language::name): New member function.
3924 (minimal_language::natural_name): New member function.
3925 * compile/compile.c (compile_to_object): Update call to
3926 lanugage_defn::name.
3927 * d-lang.c (d_language_data): Remove la_name and
3928 la_natural_name initializers.
3929 (d_language::name): New member function.
3930 (d_language::natural_name): New member function.
3931 * expprint.c (print_subexp_standard): Update call to
3932 language_defn::name.
3933 (dump_raw_expression): Likewise
3934 (dump_prefix_expression): Likewise.
3935 * f-lang.c (f_language_data): Remove la_name and
3936 la_natural_name initializers.
3937 (f_language::name): New member function.
3938 (f_language::natural_name): New member function.
3939 * go-lang.c (go_language_data): Remove la_name and
3940 la_natural_name initializers.
3941 (go_language::name): New member function.
3942 (go_language::natural_name): New member function.
3943 * language.c (show_language_command): Update call to
3944 language_defn::name.
3945 (set_language_command): Likewise.
3946 (language_enum): Likewise.
3947 (language_str): Likewise.
3948 (add_set_language_command): Likewise, use
3949 language_defn::natural_name in the doc string.
3950 (unknown_language_data): Remove la_name and
3951 la_natural_name initializers.
3952 (unknown_language::name): New member function.
3953 (unknown_language::natural_name): New member function.
3954 (auto_language_data): Remove la_name and
3955 la_natural_name initializers.
3956 (auto_language::name): New member function.
3957 (auto_language::natural_name): New member function.
3958 (language_lookup_primitive_type_as_symbol): Update call to
3959 language_defn::name.
3960 * language.h (language_data): Remove la_name and la_natural_name
3961 member variables.
3962 (language_defn::name): New member function.
3963 (language_defn::natural_name): New member function.
3964 * m2-lang.c (m2_language_data): Remove la_name and
3965 la_natural_name initializers.
3966 (m2_language::name): New member function.
3967 (m2_language::natural_name): New member function.
3968 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3969 language_defn::natural_name.
3970 * objc-lang.c (objc_language_data): Remove la_name and
3971 la_natural_name initializers.
3972 (objc_language::name): New member function.
3973 (objc_language::natural_name): New member function.
3974 * opencl-lang.c (opencl_language_data): Remove la_name and
3975 la_natural_name initializers.
3976 (opencl_language::name): New member function.
3977 (opencl_language::natural_name): New member function.
3978 * p-lang.c (pascal_language_data): Remove la_name and
3979 la_natural_name initializers.
3980 (pascal_language::name): New member function.
3981 (pascal_language::natural_name): New member function.
3982 * rust-lang.c (rust_language_data): Remove la_name and
3983 la_natural_name initializers.
3984 (rust_language::name): New member function.
3985 (rust_language::natural_name): New member function.
3986 * symtab.c (lookup_language_this): Update call to
3987 language_defn::name.
3988
5bae7c4e
AB
39892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3990
3991 * ada-lang.c (ada_language_data): Remove la_name_of_this
3992 initializer.
3993 * ax-gdb.c (gen_expr): Update call to name_of_this.
3994 * c-exp.y (classify_name): Likewise.
3995 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3996 (cplus_language_data): Likewise.
3997 (cplus_language::name_of_this): New member function.
3998 (asm_language_data): Remove la_name_of_this initializer.
3999 (minimal_language_data): Likewise.
4000 * d-lang.c (d_language_data): Likewise.
4001 (d_language::name_of_this): New member function.
4002 * expprint.c (print_subexp_standard): Update call to name_of_this.
4003 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4004 * go-lang.c (go_language_data): Likewise.
4005 * language.c (unknown_language_data): Likewise.
4006 (unknown_language::name_of_this): New member function.
4007 (auto_language_data): Remove la_name_of_this initializer.
4008 (auto_language::name_of_this): New member function.
4009 * language.h (language_data): Delete la_name_of_this member
4010 variable.
4011 (language_defn::name_of_this): New member function.
4012 * m2-lang.c (m2_language_data): Remove la_name_of_this
4013 initializer.
4014 * objc-lang.c (objc_language_data): Likewise.
4015 (objc_language::name_of_this): New member function.
4016 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4017 initializer.
4018 * p-lang.c (pascal_language_data): Likewise.
4019 (pascal_language::name_of_this): New member function.
4020 * rust-lang.c (rust_language_data): Remove la_name_of_this
4021 initializer.
4022 * symtab.c (lookup_language_this): Update call to name_of_this.
4023 (lookup_symbol_aux): Likewise.
4024 * valops.c (value_of_this): Likewise.
4025
22e3f3ed
AB
40262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * ada-lang.c (ada_language_data): Remove
4029 la_struct_too_deep_ellipsis initializer.
4030 (ada_language::struct_too_deep_ellipsis): New member function.
4031 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4032 initializer.
4033 (cplus_language_data): Likewise.
4034 (asm_language_data): Likewise.
4035 (minimal_language_data): Likewise.
4036 * cp-valprint.c (cp_print_value): Update call to
4037 struct_too_deep_ellipsis.
4038 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4039 initializer.
4040 * f-lang.c (f_language_data): Likewise.
4041 (f_language::struct_too_deep_ellipsis): New member function.
4042 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4043 initializer.
4044 * language.c (unknown_language_data): Likewise.
4045 (auto_language_data): Likewise.
4046 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4047 member variable.
4048 (language_defn::struct_too_deep_ellipsis): New member function.
4049 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4050 initializer.Q
4051 * objc-lang.c (objc_language_data): Likewise.
4052 * opencl-lang.c (opencl_language_data): Likewise.
4053 * p-lang.c (pascal_language_data): Likewise.
4054 * rust-lang.c (rust_language_data): Likewise.
4055 * valprint.c (val_print_check_max_depth): Update call to
4056 struct_too_deep_ellipsis.
4057
ed29e1c7
FW
40582020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4059
4060 * MAINTAINERS (Write After Approval): Add myself.
4061
12d8f940
TT
40622020-09-15 Tom Tromey <tom@tromey.com>
4063
4064 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4065 Remove.
4066
6b5a7bc7
TT
40672020-09-15 Tom Tromey <tom@tromey.com>
4068
4069 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4070 and TYPE_CODE_METHODPTR cases.
4071 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4072 (c_value_print_inner): Update.
4073 * valprint.c (generic_value_print_memberptr): New function, from
4074 c_value_print_memberptr.
4075 (generic_value_print): Use it. Call cplus_print_method_ptr.
4076
47f0e2ff
TT
40772020-09-15 Tom Tromey <tromey@adacore.com>
4078
4079 * python/python-internal.h (PyInt_FromLong): Remove define.
4080 * python/py-value.c (convert_value_from_python): Use
4081 gdb_py_object_from_longest.
4082 * python/py-type.c (typy_get_code): Use
4083 gdb_py_object_from_longest.
4084 * python/py-symtab.c (salpy_get_line): Use
4085 gdb_py_object_from_longest.
4086 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4087 gdb_py_object_from_longest.
4088 * python/py-record.c (recpy_gap_reason_code): Use
4089 gdb_py_object_from_longest.
4090 * python/py-record-btrace.c (recpy_bt_insn_size)
4091 (recpy_bt_func_level, btpy_list_count): Use
4092 gdb_py_object_from_longest.
4093 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4094 gdb_py_object_from_longest. Fix error handling.
4095 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4096 gdb_py_object_from_longest.
4097 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4098 gdb_py_object_from_longest.
4099 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4100 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4101 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4102
512116ce
TT
41032020-09-15 Tom Tromey <tromey@adacore.com>
4104
4105 * python/python.c (gdbpy_parameter_value): Use
4106 gdb_py_object_from_ulongest.
4107
4ab1029c
TT
41082020-09-15 Tom Tromey <tromey@adacore.com>
4109
4110 * python/py-infevents.c (create_register_changed_event_object):
4111 Use gdb_py_object_from_longest.
4112 * python/py-exitedevent.c (create_exited_event_object): Use
4113 gdb_py_object_from_longest.
4114
062534d4
TT
41152020-09-15 Tom Tromey <tromey@adacore.com>
4116
4117 * python/python.c (gdbpy_parameter_value): Use
4118 gdb_py_object_from_longest.
4119 * python/py-type.c (convert_field, typy_range): Use
4120 gdb_py_object_from_longest.
4121 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4122 gdb_py_object_from_longest.
4123 * python/py-lazy-string.c (stpy_get_length): Use
4124 gdb_py_object_from_longest.
4125 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4126 gdb_py_object_from_longest.
4127 * python/py-infevents.c (create_memory_changed_event_object): Use
4128 gdb_py_object_from_longest.
4129 * python/py-inferior.c (infpy_get_num): Use
4130 gdb_py_object_from_longest.
4131 (infpy_get_pid): Likewise.
4132
d1cab987
TT
41332020-09-15 Tom Tromey <tromey@adacore.com>
4134
4135 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4136 defines.
4137 * python/py-value.c (valpy_long): Use
4138 gdb_py_object_from_ulongest.
4139 * python/py-symtab.c (salpy_get_pc): Use
4140 gdb_py_object_from_ulongest.
4141 (salpy_get_last): Likewise.
4142 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4143 gdb_py_object_from_ulongest.
4144 * python/py-lazy-string.c (stpy_get_address): Use
4145 gdb_py_object_from_ulongest.
4146 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4147 * python/py-arch.c (archpy_disassemble): Use
4148 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4149 error handling.
4150
4bde49dc
TT
41512020-09-15 Tom Tromey <tromey@adacore.com>
4152
4153 * python/python-internal.h (gdb_py_long_from_longest): Remove
4154 defines.
4155 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4156 * python/py-type.c (convert_field, typy_get_sizeof): Use
4157 gdb_py_object_from_longest.
4158 * python/py-record-btrace.c (btpy_list_index): Use
4159 gdb_py_object_from_longest.
4160
37431074
TT
41612020-09-15 Tom Tromey <tromey@adacore.com>
4162
4163 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4164 * python/py-record.c (recpy_element_number): Use
4165 gdb_py_object_from_longest.
4166 (recpy_gap_number): Likewise.
4167
cbe25684
TT
41682020-09-15 Tom Tromey <tromey@adacore.com>
4169
4170 * top.c (ui::ui): Update.
4171 (highest_ui_num): Remove.
4172 * top.h (struct ui) <num>: Remove.
4173
db92ac45
TT
41742020-09-15 Tom Tromey <tromey@adacore.com>
4175
4176 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4177 * ui-style.c (ansi_regex_text): Now array.
4178 * rust-exp.y (number_regex_text): Now array.
4179 * linespec.c (linespec_quote_characters): Now array.
4180 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4181 Now arrays.
4182
d2b31b67
SM
41832020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4184
4185 * debuginfod-support.c (debuginfod_client_deleter): New.
4186 (debuginfod_client_up): New.
4187 (debuginfod_init): Return debuginfod_client_up.
4188 (debuginfod_source_query): Adjust.
4189 (debuginfod_debuginfo_query): Adjust.
4190
3246bd8e
SM
41912020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4192
4193 * debuginfod-support.c (debuginfod_source_query): Use
4194 make_unique_xstrdup.
4195
10242f36
SM
41962020-09-14 Simon Marchi <simon.marchi@efficios.com>
4197
4198 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4199 with `type::instance_flags`.
4200
e1044e6a
MM
42012020-09-14 Michael Mullin <masmullin@gmail.com>
4202
4203 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4204 Remove baton parameter.
4205
04902b09
PA
42062020-09-14 Pedro Alves <pedro@palves.net>
4207
4208 * Makefile.in (SELFTESTS_SRCS): Add
4209 unittests/enum-flags-selftests.c.
4210 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4211 btrace_function_flags instead of enum btrace_function_flag.
4212 * compile/compile-c-types.c (convert_qualified): Use
4213 enum_flags::raw.
4214 * compile/compile-cplus-symbols.c (convert_one_symbol)
4215 (convert_symbol_bmsym):
4216 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4217 (compile_cplus_convert_struct_or_union_methods)
4218 (compile_cplus_instance::convert_qualified_base):
4219 * go-exp.y (parse_string_or_char): Add cast to int.
4220 * unittests/enum-flags-selftests.c: New file.
4221 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4222 type to btrace_thread_flags from btrace_thread_flag.
4223 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4224 local's type to btrace_thread_flags from btrace_thread_flag. Add
4225 cast in DEBUG call.
4226
69896a2c
PA
42272020-09-14 Pedro Alves <pedro@palves.net>
4228
4229 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4230 * gdbtypes.c (address_space_name_to_int): Rename to ...
4231 (address_space_name_to_type_instance_flags): ... this.
4232 (address_space_int_to_name): Rename to ...
4233 (address_space_type_instance_flags_to_name): ... this.
4234 * gdbtypes.h (address_space_name_to_int): Rename to ...
4235 (address_space_name_to_type_instance_flags): ... this.
4236 (address_space_int_to_name): Rename to ...
4237 (address_space_type_instance_flags_to_name): ... this.
4238 * type-stack.c (type_stack::insert): Adjust to rename.
4239 * type-stack.h (type_stack::insert): Likewise.
4240
314ad88d
PA
42412020-09-14 Pedro Alves <pedro@palves.net>
4242 Andrew Burgess <andrew.burgess@embecosm.com>
4243
4244 * avr-tdep.c (avr_address_class_type_flags): Return
4245 type_instance_flags.
4246 (avr_address_class_type_flags_to_name): Take a
4247 type_instance_flags.
4248 (avr_address_class_name_to_type_flags): Return bool and take a
4249 type_instance_flags.
4250 * d-lang.c (build_d_types): Use type::set_instance_flags.
4251 * ft32-tdep.c (ft32_address_class_type_flags): Return
4252 type_instance_flags.
4253 (ft32_address_class_type_flags_to_name): Take a
4254 type_instance_flags.
4255 (ft32_address_class_name_to_type_flags): Return bool and take a
4256 type_instance_flags.
4257 (ft32_gdbarch_init): Use type::set_instance_flags.
4258 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4259 * gdbarch.h, gdbarch.c: Regenerate.
4260 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4261 (address_class_name_to_type_flags): Use type_instance_flags and
4262 bool.
4263 * gdbtypes.c (address_space_name_to_int)
4264 (address_space_int_to_name, make_qualified_type): Use
4265 type_instance_flags.
4266 (make_qualified_type): Use type_instance_flags and
4267 type::set_instance_flags.
4268 (make_type_with_address_space, make_cv_type, make_vector_type)
4269 (check_typedef): Use type_instance_flags.
4270 (recursive_dump_type): Cast type_instance_flags to unsigned for
4271 printing.
4272 (copy_type_recursive): Use type::set_instance_flags.
4273 (gdbtypes_post_init): Use type::set_instance_flags.
4274 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4275 <m_instance_flags>: ... this.
4276 <instance_flags, set_instance_flags>: New methods.
4277 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4278 (SET_TYPE_INSTANCE_FLAGS): New.
4279 (address_space_name_to_int, address_space_int_to_name)
4280 (make_type_with_address_space): Pass flags using
4281 type_instance_flags instead of int.
4282 * stabsread.c (cleanup_undefined_types_noname): Use
4283 type::set_instance_flags.
4284 * s390-tdep.c (s390_address_class_type_flags): Return
4285 type_instance_flags.
4286 (s390_address_class_type_flags_to_name): Take a
4287 type_instance_flags.
4288 (s390_address_class_name_to_type_flags): Return bool and take a
4289 type_instance_flags.
4290 * type-stack.c (type_stack::follow_types): Use
4291 type_instance_flags.
4292 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4293
27087b7f
TT
42942020-09-14 Tom Tromey <tromey@adacore.com>
4295
4296 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4297 * x86-tdep.c (x86_is_thunk_register_name)
4298 (x86_in_indirect_branch_thunk): Update.
4299 * sparc64-tdep.c (sparc64_fpu_register_names)
4300 (sparc64_cp0_register_names, sparc64_register_names)
4301 (sparc64_pseudo_register_names): Now const.
4302 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4303 cp0_registers_num>: Now const.
4304 * sparc-tdep.c (sparc_core_register_names)
4305 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4306 (sparc32_pseudo_register_names): Now const.
4307 (validate_tdesc_registers): Update.
4308 * rust-lang.c (rust_extensions): Now const.
4309 * p-lang.c (p_extensions): Now const.
4310 * objc-lang.c (objc_extensions): Now const.
4311 * nto-tdep.c (nto_thread_state_str): Now const.
4312 * moxie-tdep.c (moxie_register_names): Now const.
4313 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4314 Now const.
4315 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4316 (mips_linux_reg_names): Now const.
4317 (mips_gdbarch_init): Update.
4318 * microblaze-tdep.c (microblaze_register_names): Now const.
4319 * m68k-tdep.c (m68k_register_names): Now const.
4320 * m32r-tdep.c (m32r_register_names): Now const.
4321 * ia64-tdep.c (ia64_register_names): Now const.
4322 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4323 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4324 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4325 ymm_avx512_register_names, pkeys_register_names>: Now const.
4326 * i386-tdep.c (i386_register_names, i386_zmm_names)
4327 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4328 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4329 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4330 * f-lang.c (f_extensions): Now const.
4331 * d-lang.c (d_extensions): Now const.
4332 * csky-tdep.c (csky_register_names): Now const.
4333 * charset.c (default_charset_names, charset_enum): Now const.
4334 (_initialize_charset): Update.
4335 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4336 const.
4337 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4338 (bsd_uthread_solib_loaded): Update.
4339 (bsd_uthread_state): Now const.
4340 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4341 (amd64_ymm_avx512_names, amd64_ymmh_names)
4342 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4343 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4344 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4345 (amd64_dword_names): Now const.
4346 * agent.c (can_use_agent_enum): Now const.
4347 * ada-tasks.c (task_states, long_task_states): Now const.
4348 * ada-lang.c (known_runtime_file_name_patterns)
4349 (known_auxiliary_function_name_patterns, attribute_names)
4350 (standard_exc, ada_extensions): Now const.
4351
89806626
SM
43522020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4353
4354 * bcache.h (struct bcache) <bcache>: Remove constructor.
4355 <m_hash_function, m_compare_function>: Remove.
4356 <~bcache>: Make virtual.
4357 <compare>: Remove static method, introduce virtual method.
4358 <default_hash>: Remove.
4359 <hash>: New virtual method.
4360 * bcache.c (bcache::expand_hash_table): Update.
4361 (bcache::insert): Update.
4362 (bcache::hash): New.
4363 (bcache::compare): Update comment and parameter names.
4364 * gdbtypes.c (types_deeply_equal): Update.
4365 * psymtab.h (struct psymbol_bcache): New struct.
4366 (class psymtab_storage) <psymtab_storage>: Make default.
4367 <psymbol_cache>: Change type to psymbol_bcache.
4368 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4369 (psymbol_hash): Change to...
4370 (psymbol_bcache::hash): ... this.
4371 (psymbol_compare): Change to...
4372 (psymbol_bcache::compare): ... this.
4373
677c92fe
SM
43742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4375
4376 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4377 checking for initial lwp.
4378
3eba3a01
TT
43792020-09-14 Tom Tromey <tromey@adacore.com>
4380
4381 * m68k-tdep.c (m68k_extract_return_value): Use
4382 pointer_result_regnum.
4383 (m68k_store_return_value): Likewise.
4384 (m68k_reg_struct_return_p): Handle vectors and arrays.
4385 (m68k_return_value): Handle arrays.
4386 (m68k_svr4_return_value): Fix single-element aggregate handling.
4387 Handle long double. Adjust for embedded ABI.
4388 (m68k_svr4_init_abi): Set pointer_result_regnum.
4389 (m68k_embedded_init_abi): New function.
4390 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4391 (m68k_osabi_sniffer): New function.
4392 (_initialize_m68k_tdep): Register osabi sniffer.
4393 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4394 member.
4395
33f4dd48
SM
43962020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4397
4398 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4399 with gdb::unique_xmalloc_ptr<char>.
4400
8400a90d
SM
44012020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4402
4403 * xml-support.h (xml_fetch_another): Change type to be a
4404 function_view.
4405 (xml_process_xincludes): Remove baton parameter.
4406 (xml_fetch_content_from_file): Change baton parameter to
4407 dirname.
4408 * xml-support.c (struct xinclude_parsing_data)
4409 <xinclude_parsing_data>: Remove baton parameter.
4410 <fetcher_baton>: Remove.
4411 (xinclude_start_include): Adjust.
4412 (xml_process_xincludes): Adjust.
4413 (xml_fetch_content_from_file): Replace baton parameter with
4414 dirname.
4415 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4416 (xml_init_syscalls_info): Use a lambda.
4417 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4418 (file_read_description_xml): Use a lambda.
4419 (fetch_available_features_from_target): Change baton parameter
4420 to target_ops.
4421 (target_read_description_xml): Use a lambda.
4422 (target_fetch_description_xml): Use a lambda.
4423 (string_read_description_xml): Update.
4424
04f5bab2
SM
44252020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4426
4427 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4428 uses with type::endianity_is_not_default.
4429
db558e34
SM
44302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4431
4432 * gdbtypes.h (struct type) <endianity_is_not_default,
4433 set_endianity_is_not_default>: New methods.
4434 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4435 type::endianity_is_not_default, change all write call sites to
4436 use type::set_endianity_is_not_default.
4437
22c4c60c
SM
44382020-09-14 Simon Marchi <simon.marchi@efficios.com>
4439
4440 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4441 uses with type::is_fixed_instance.
4442
9cdd0d12
SM
44432020-09-14 Simon Marchi <simon.marchi@efficios.com>
4444
4445 * gdbtypes.h (struct type) <is_fixed_instance,
4446 set_is_fixed_instance>: New methods.
4447 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4448 write call sites to use type::set_is_fixed_instance.
4449
0becda7a
SM
44502020-09-14 Simon Marchi <simon.marchi@efficios.com>
4451
4452 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4453 uses with type::is_gnu_ifunc.
4454
03cc7249
SM
44552020-09-14 Simon Marchi <simon.marchi@efficios.com>
4456
4457 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4458 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4459 use type::set_is_gnu_ifunc.
4460
3f46044c
SM
44612020-09-14 Simon Marchi <simon.marchi@efficios.com>
4462
4463 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4464 uses with type::stub_is_supported.
4465
9baccff6
SM
44662020-09-14 Simon Marchi <simon.marchi@efficios.com>
4467
4468 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4469 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4470 use type::set_stub_is_supported.
4471
bd63c870
SM
44722020-09-14 Simon Marchi <simon.marchi@efficios.com>
4473
4474 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4475 uses with type::is_vector.
4476
2062087b
SM
44772020-09-14 Simon Marchi <simon.marchi@efficios.com>
4478
4479 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4480 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4481 use type::set_is_vector.
4482
a409645d
SM
44832020-09-14 Simon Marchi <simon.marchi@efficios.com>
4484
4485 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4486 uses with type::has_varargs.
4487
1d6286ed
SM
44882020-09-14 Simon Marchi <simon.marchi@efficios.com>
4489
4490 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4491 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4492 use type::set_has_varargs.
4493
7f9f399b
SM
44942020-09-14 Simon Marchi <simon.marchi@efficios.com>
4495
4496 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4497 uses with type::is_prototyped.
4498
27e69b7a
SM
44992020-09-14 Simon Marchi <simon.marchi@efficios.com>
4500
4501 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4502 New methods.
4503 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4504 call sites to use type::set_is_prototyped.
4505
d2183968
SM
45062020-09-14 Simon Marchi <simon.marchi@efficios.com>
4507
4508 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4509 uses with type::target_is_stub.
4510
8f53807e
SM
45112020-09-14 Simon Marchi <simon.marchi@efficios.com>
4512
4513 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4514 New methods.
4515 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4516 sites to use type::set_target_is_stub.
4517
e46d3488
SM
45182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4519
4520 * gdbtypes.h (TYPE_STUB): Remove, replace all
4521 uses with type::is_stub.
4522
b4b73759
SM
45232020-09-14 Simon Marchi <simon.marchi@efficios.com>
4524
4525 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4526 (TYPE_STUB): Use type::is_stub, change all write call sites to
4527 use type::set_is_stub.
4528
20ce4123
SM
45292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4532 type::has_no_signedness.
4533
15152a54
SM
45342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4535
4536 * gdbtypes.h (struct type) <has_no_signedness,
4537 set_has_no_signedness>: New methods.
4538 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4539 call sites to use type::set_has_no_signedness.
4540
c6d940a9
SM
45412020-09-14 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4544 type::is_unsigned.
4545
653223d3
SM
45462020-09-14 Simon Marchi <simon.marchi@efficios.com>
4547
4548 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4549 methods.
4550 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4551 sites to use type::set_is_unsigned.
4552
55ea94da 45532020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4554 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4555
e851246a
SM
4556 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4557 pointer and stack frame offset when unwinding.
55ea94da 4558
6791b117
PA
45592020-09-13 Pedro Alves <pedro@palves.net>
4560
4561 * NEWS: Document "-break-insert --qualified".
4562 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4563
77f2120b
PA
45642020-09-13 Pedro Alves <pedro@palves.net>
4565
4566 * linespec.c (classify_mtype, compare_msyms): Delete.
4567 (search_minsyms_for_name): Remove classification logic. Instead
4568 filter out trampoline symbols if we also found an external
4569 function of the same name.
4570
ed6a896c
JB
45712020-09-13 Joel Brobecker <brobecker@adacore.com>
4572
4573 * NEWS: Create a new section for the next release branch.
4574 Rename the section of the current branch, now that it has
4575 been cut.
4576
32aea73e
JB
45772020-09-13 Joel Brobecker <brobecker@adacore.com>
4578
4579 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4580 * version.in: Bump version to 11.0.50.DATE-git.
4581
8087c3fa
JB
45822020-09-12 Joel Brobecker <brobecker@adacore.com>
4583
4584 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4585
2a67f09d
FW
45862020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4587 Felix Willgerodt <Felix.Willgerodt@intel.com>
4588
4589 * gdbarch.sh: Added bfloat16 type.
4590 * gdbarch.c: Regenerated.
4591 * gdbarch.h: Regenerated.
4592 * gdbtypes.c (floatformats_bfloat16): New struct.
4593 (gdbtypes_post_init): Add builtin_bfloat16.
4594 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4595 (floatformats_bfloat16): New struct.
4596 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4597 (i386_ymm_type): Add field "v16_bfloat16"
4598 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4599 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4600 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4601 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4602 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4603 * features/i386/64bit-avx512.c: Regenerated.
4604 * features/i386/64bit-sse.xml: Add bfloat16 type.
4605 * features/i386/64bit-sse.c: Regenerated.
4606
1347d111
FW
46072020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4608
4609 * i386-tdep.c (i386_zmm_type): Fix field names.
4610 (i386_ymm_type): Fix field names.
4611
7a4e8e7d
TBA
46122020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4613
4614 * breakpoint.c: Fix typo in the help message of the
4615 "set breakpoint condition-evaluation" command.
4616
cf4ac4be
KR
46172020-09-10 Kamil Rytarowski <n54@gmx.com>
4618
4619 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4620 * (nbsd_nat_target::pid_to_exec_file)
4621 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4622 (nbsd_nat_target::post_startup_inferior)
4623 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4624 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4625 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4626 * (nbsd_thread_lister): Remove.
4627
f404573e
KR
46282020-09-10 Kamil Rytarowski <n54@gmx.com>
4629
4630 * fork-inferior.c (startup_inferior): Avoid double free.
4631
1ccb2c17
KR
46322020-09-10 Kamil Rytarowski <n54@gmx.com>
4633
4634 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4635 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4636
feedfcc7
KR
46372020-09-10 Kamil Rytarowski <n54@gmx.com>
4638
4639 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4640 * netbsd-nat.c: Include <sys/ptrace.h>.
4641 * (netbsd_nat::enable_proc_events): Add.
4642
c489f8c6
KR
46432020-09-10 Kamil Rytarowski <n54@gmx.com>
4644
4645 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4646 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4647 (netbsd_nat::for_each_thread): Add.
4648 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4649 "gdbsupport/common-debug.h".
4650 * (netbsd_nat::netbsd_thread_lister)
4651 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4652 (netbsd_nat::for_each_thread): Add.
4653
330662f6
KR
46542020-09-10 Kamil Rytarowski <n54@gmx.com>
4655
4656 * netbsd-nat.h: Include <unistd.h>.
4657 * (netbsd_nat::pid_to_exec_file): Add.
4658 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4659 * (netbsd_nat::pid_to_exec_file) Add.
4660
70b67307
KR
46612020-09-10 Kamil Rytarowski <n54@gmx.com>
4662
4663 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4664
99cf6da6
KR
46652020-09-10 Kamil Rytarowski <n54@gmx.com>
4666
4667 * netbsd-nat.h: New file.
4668 * netbsd-nat.c: Likewise.
4669
1b788fb6
TT
46702020-09-09 Tom Tromey <tromey@adacore.com>
4671
4672 * ada-lang.c (remove_extra_symbols): Do not increment when
4673 removing an element
4674
03b0a45f
TT
46752020-09-08 Tom Tromey <tromey@adacore.com>
4676
4677 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4678
3cae4447
TT
46792020-09-08 Tom Tromey <tromey@adacore.com>
4680
4681 PR win32/25302:
4682 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4683 (gdb_bfd_init_data): New function.
4684 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4685
7f08fd51
TBA
46862020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4687
4688 * infrun.c (fetch_inferior_event): Use
4689 `switch_to_target_no_thread` to switch the target.
4690
3e6ff933
TT
46912020-09-06 Tom Tromey <tom@tromey.com>
4692
4693 * symfile.h (dwarf2_free_objfile): Don't declare.
4694
e56798df
AKS
46952020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4696
4697 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4698 to match 16 byte real/complex type generated by Flang compiler.
4699
8f5c6526
TV
47002020-09-03 Tom de Vries <tdevries@suse.de>
4701
4702 PR breakpoint/26546
4703 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4704 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4705
c5065df0
SM
47062020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4707
4708 * maint.c (index_digits): New function.
4709 (struct maint_print_section_data): Remove.
4710 (print_bfd_section_info): Remove print_data parameter, add arg
4711 and index_digits.
4712 (print_objfile_section_info): Likewise.
4713 (print_bfd_section_info_maybe_relocated): Likewise (plus
4714 objfile).
4715 (maintenance_info_sections): Adjust calls.
4716
02c6f3f1
TT
47172020-09-02 Tom Tromey <tromey@adacore.com>
4718
4719 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4720 for null pointers.
4721 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4722
ef5e5b0b
SM
47232020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4724
4725 * bcache.h (struct bcache) <insert>: Change type of `added` to
4726 pointer to bool.
4727 * bcache.c (bcache::insert): Likewise.
4728 * gdbtypes.c (check_types_worklist): Adjust.
4729 * psymtab.c (add_psymbol_to_bcache): Adjust.
4730
973695d6
KB
47312020-08-31 Kevin Buettner <kevinb@redhat.com>
4732
4733 * corelow.c (unordered_set): Include.
4734 (class core_target): Add field 'm_core_unavailable_mappings'.
4735 (core_target::build_file_mappings): Print only one warning
4736 per inaccessible file. Add unavailable/broken mappings
4737 to m_core_unavailable_mappings.
4738 (core_target::xfer_partial): Call...
4739 (core_target::xfer_memory_via_mappings): New method.
4740
264fc0e2
SM
47412020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4742
4743 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4744 type to bool.
4745
2de01bdb
SM
47462020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4747
4748 * dwarf2/read.c (struct field_info): Fix indentation.
4749
f3bd50f1
SM
47502020-08-31 Simon Marchi <simon.marchi@efficios.com>
4751
4752 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4753 ordering in comment.
4754 * frame.c (frame_id_eq): Fix indentation.
4755
22b9b4b0
SL
47562020-08-31 Scott Linder <scott@scottlinder.com>
4757 Simon Marchi <simon.marchi@efficios.com>
4758
4759 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4760 inline frame ids in outer frame.
4761
84154d16
SM
47622020-08-31 Simon Marchi <simon.marchi@efficios.com>
4763
4764 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4765 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4766 (outer_frame_id): Use FID_STACK_OUTER instead of
4767 FID_STACK_INVALID.
4768 (frame_id_p): Don't check for outer_frame_id.
4769
8efaf6b3
SM
47702020-08-31 Simon Marchi <simon.marchi@efficios.com>
4771
4772 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4773 regnum/frame in value. Call allocate_value_lazy.
4774 * frame.c (frame_unwind_register_value): Use
4775 val_print_not_saved.
4776
fe1fe7ea
SM
47772020-08-31 Simon Marchi <simon.marchi@efficios.com>
4778
4779 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4780
f7c7700d
PA
47812020-08-29 Pedro Alves <pedro@palves.net>
4782
4783 * progspace.c (print_program_space): Use all_inferiors. Switch to
4784 the inferior before calling target_pid_to_str.
4785
e0814aae
TT
47862020-08-28 Tom Tromey <tom@tromey.com>
4787
4788 * xcoffread.c (xcoff_end_psymtab): Update comment.
4789 * dbxread.c (dbx_end_psymtab): Update comment.
4790
626d2320
TV
47912020-08-28 Tom de Vries <tdevries@suse.de>
4792
4793 PR breakpoint/26544
4794 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4795 event_location.
4796 (create_breakpoint): Same.
4797 (base_breakpoint_decode_location): Same.
4798 (bkpt_create_sals_from_location): Same.
4799 (bkpt_decode_location): Same.
4800 (bkpt_probe_create_sals_from_location): Same.
4801 (bkpt_probe_decode_location): Same.
4802 (tracepoint_create_sals_from_location): Same.
4803 (tracepoint_decode_location): Same.
4804 (tracepoint_probe_decode_location): Same.
4805 (strace_marker_create_sals_from_location): Same.
4806 (strace_marker_decode_location): Same.
4807 (create_sals_from_location_default): Same.
4808 (decode_location_default): Same.
4809 * breakpoint.h (struct breakpoint_ops): Same.
4810 (create_breakpoint): Same.
4811 * linespec.h (decode_line_full): Same.
4812 * linespec.c (decode_line_full): Same. Throw error if
4813 result.size () == 0.
4814
df631783
PA
48152020-08-27 Pedro Alves <pedro@palves.net>
4816
4817 PR gdb/26524
4818 * breakpoint.c (until_break_fsm) <location_breakpoint,
4819 caller_breakpoint>: Delete fields.
4820 <breakpoints>: New field.
4821 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4822 two individual breakpoints.
4823 (until_break_fsm::should_stop): Loop over breakpoints in the
4824 breakpoint vector.
4825 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4826 vector.
4827 (until_break_command): Handle location expanding into multiple
4828 sals.
4829
b2b38aa4
PA
48302020-08-27 Pedro Alves <pedro@palves.net>
4831
4832 PR gdb/26523
4833 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4834 bp_until breakpoints user-specified locations. Update intro
4835 comment.
4836
b886559f
SM
48372020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4838
4839 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4840 gdb_bfd_sections): New.
4841 * maint.c (print_bfd_section_info): Change param type to
4842 maint_print_section_data.
4843 (print_objfile_section_info): Likewise.
4844 (print_bfd_section_info_maybe_relocated): Likewise.
4845 (maintenance_info_sections): Use gdb_bfd_sections.
4846
4c6e63bf
SV
48472020-08-25 Shahab Vahedi <shahab@synopsys.com>
4848
4849 * MAINTAINERS: Add ARC target and maintainer.
4850
8d7f0635
AK
48512020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4852
4853 * configure.tgt: ARC support for GNU/Linux.
4854 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4855 * arc-linux-tdep.c: New file.
4856 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4857 * arc-tdep.c (arc_write_pc): Use it.
4858
fdd8731b
SV
48592020-08-25 Shahab Vahedi <shahab@synopsys.com>
4860
4861 * arc-tdep.c (arc_check_for_hardware_loop): New.
4862 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4863
22459524
SV
48642020-08-25 Shahab Vahedi <shahab@synopsys.com>
4865
4866 * arc-tdep.h: Include "gdbarch.h".
4867
995d3a19
SV
48682020-08-25 Shahab Vahedi <shahab@synopsys.com>
4869
4870 * arch/arc.h
4871 (arc_gdbarch_features): New class to stir the selection of target XML.
4872 (arc_create_target_description): Use FEATURES to choose XML target.
4873 (arc_lookup_target_description): Use arc_create_target_description
4874 to create _new_ target descriptions or return the already created
4875 ones if the FEATURES is the same.
4876 * arch/arc.c: Implementation of prototypes described above.
4877 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4878 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4879 * arc-tdep.c (*_feature_name): Make feature names consistent.
4880 (arc_register_feature): A new struct to hold information about
4881 registers of a particular target/feature.
4882 (arc_check_tdesc_feature): Check if XML provides registers in
4883 compliance with ARC_REGISTER_FEATURE structs.
4884 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4885 (determine_*_reg_feature_set): Which feature name to look for.
4886 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4887 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4888 to expected ISA enums to be used in arc_gdbarch_features structs.
4889 * features/Makefile (FEATURE_XMLFILES): Add new files.
4890 * gdb/features/arc/v1-aux.c: New file.
4891 * gdb/features/arc/v1-aux.xml: Likewise.
4892 * gdb/features/arc/v1-core.c: Likewise.
4893 * gdb/features/arc/v1-core.xml: Likewise.
4894 * gdb/features/arc/v2-aux.c: Likewise.
4895 * gdb/features/arc/v2-aux.xml: Likewise.
4896 * gdb/features/arc/v2-core.c: Likewise.
4897 * gdb/features/arc/v2-core.xml: Likewise.
4898 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4899
3945d2d7
GM
49002020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4901 Andrew Burgess <andrew.burgess@embecosm.com>
4902
4903 PR m2/26372
fc5d6901 4904 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4905 an assert. Remove single element array indexing pattern as the
4906 MULTI_SUBSCRIPT support will handle this case too.
4907
2677f2d3
SM
49082020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4909
4910 * value.h (valprint_check_validity): Move declaration from
4911 here...
4912 * valprint.h (valprint_check_validity): ... to here.
4913
c426fddb
SM
49142020-08-24 Simon Marchi <simon.marchi@efficios.com>
4915
4916 * debug.h: New file.
4917 * debug.c (debug_prefixed_vprintf): New function.
4918 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4919 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4920
1eb8556f
SM
49212020-08-24 Simon Marchi <simon.marchi@efficios.com>
4922
4923 * infrun.h (infrun_debug_printf_1): New function declaration.
4924 (infrun_debug_printf): New macro.
4925 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4926 throughout.
4927 (infrun_debug_printf): New function.
4928 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4929 (handle_jit_event): Likewise.
4930
b8fff44e
MW
49312020-08-21 Mark Wielaard <mark@klomp.org>
4932
4933 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4934
d19c3068
SM
49352020-08-22 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * frame.c (enum class frame_id_status): New.
4938 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4939 (fprintf_frame): Update.
4940 (compute_frame_id): Set frame id status to "computing" on entry.
4941 Set it back to "not_computed" on failure and to "computed" on
4942 success.
4943 (get_frame_id): Assert the frame id is not being computed.
4944 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4945 (create_new_frame): Likewise.
4946 (frame_cleanup_after_sniffer): Update assert.
4947
b70e516e
SM
49482020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4949
4950 * regcache.c (pid_ptid_regcache_map): New type.
4951 (target_ptid_regcache_map): Remove.
4952 (target_pid_ptid_regcache_map): New type.
4953 (regcaches): Change type to target_pid_ptid_regcache_map.
4954 (get_thread_arch_aspace_regcache): Update.
4955 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4956 case.
4957 (regcaches_size): Update.
4958 (regcache_count): Update.
4959 (registers_changed_ptid_target_pid_test): New.
4960 (_initialize_regcache): Register new test.
4961
cdd9148a
SM
49622020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4963
4964 * regcache.c (regcache_count): New.
4965 (struct regcache_test_data): New.
4966 (regcache_test_data_up): New.
4967 (populate_regcaches_for_test): New.
4968 (regcaches_test): Remove.
4969 (get_thread_arch_aspace_regcache_test): New.
4970 (registers_changed_ptid_all_test): New.
4971 (registers_changed_ptid_target_test): New.
4972 (registers_changed_ptid_target_ptid_test): New.
4973 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4974 (_initialize_regcache): Register new tests.
4975
dd125343
SM
49762020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4977
4978 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4979 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4980 gdbarch and aspace parameter. Use current inferior's aspace.
4981 Validate regcache's arch value.
4982 (regcaches_test): Update.
4983
3ee93972
SM
49842020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4985
4986 * regcache.c (regcaches_test): Call registers_changed.
4987
33bf4c5c
TBA
49882020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4989
4990 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4991
c2fd7fae
AKS
49922020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4993
4994 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4995 to find the end of prologue for flang compiled binaries.
4996 * arm-tdep.c (arm_skip_prologue): Likewise.
4997 * i386-tdep.c (i386_skip_prologue): Likewise.
4998 * producer.c (producer_is_llvm): New function.
4999 (producer_parsing_tests): Added new tests for clang/flang.
5000 * producer.h (producer_is_llvm): New declaration.
5001
9327494e
SM
50022020-08-18 Simon Marchi <simon.marchi@efficios.com>
5003
5004 * linux-nat.c (linux_nat_debug_printf): New function.
5005 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5006
d138725a
AM
50072020-08-18 Aaron Merey <amerey@redhat.com>
5008
5009 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5010 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5011 (CLIBS): Add DEBUGINFOD_LIBS.
5012
f9b11e6b
ST
50132020-08-17 Sergei Trofimovich <siarheit@google.com>
5014
5015 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5016 'gdbarch_num_regs'.
5017
3ae7ab99
TT
50182020-08-17 Tom Tromey <tromey@adacore.com>
5019
5020 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5021 ada_get_decoded_value returns NULL.
5022
b017825f
TT
50232020-08-17 Tom Tromey <tromey@adacore.com>
5024
5025 * python/py-inferior.c (infpy_search_memory): Use
5026 gdb_py_object_from_ulongest.
5027 * python/py-infevents.c (create_inferior_call_event_object)
5028 (create_memory_changed_event_object): Use
5029 gdb_py_object_from_ulongest.
5030 * python/py-linetable.c (ltpy_entry_get_pc): Use
5031 gdb_py_object_from_ulongest.
5032
7635cf79
SM
50332020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5034
5035 * loc.c (class symbol_needs_eval_context): Fix indentation.
5036
f54be24b
SM
50372020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5038
5039 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5040 bool.
5041
53d5a2a5
TV
50422020-08-17 Tom de Vries <tdevries@suse.de>
5043
5044 PR gdb/26393
5045 * gdbtypes.c (dump_dynamic_prop): New function.
5046 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5047
547ce8f0
TV
50482020-08-15 Tom de Vries <tdevries@suse.de>
5049
5050 PR backtrace/26390
5051 * stack.c (print_frame_args): Temporarily set the selected
5052 frame to FRAME while printing the frame's arguments.
5053
6ea815e7
PFC
50542020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5055
5056 PR breakpoints/26385
5057 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5058 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5059
6e562fa3
PFC
50602020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5061
5062 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5063 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5064 and >= to check return value instead of == -1 and != -1.
5065
d369b608
SM
50662020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5067
5068 * utils.h (class gdb_argv) <as_array_view>: New method.
5069 * utils.c (gdb_argv_as_array_view_test): New.
5070 (_initialize_utils): Register selftest.
5071 * maint.c (maintenance_selftest): Use the new method.
5072
b31488a3
KR
50732020-08-13 Kamil Rytarowski <n54@gmx.com>
5074
5075 * target.h (supports_dumpcore, dumpcore): New
5076 function declarations.
5077 * target.c (supports_dumpcore, dumpcore): New
5078 functions.
5079 * target-delegates.c: Rebuild.
5080 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5081 and target_dumpcore ().
5082
002a3166
AM
50832020-08-13 Aaron Merey <amerey@redhat.com>
5084
5085 * debuginfod-support.c: Replace global variables with user_data.
5086
ece5bc8a
SM
50872020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5088
5089 * maint.c (maintenance_selftest): Split args and pass array_view
5090 to run_tests.
5091
6d8a0a5e
LM
50922020-08-12 Luis Machado <luis.machado@linaro.org>
5093
5094 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5095 type's length.
5096 Use %s and pulongest to print the length.
5097
7cf663a9
PA
50982020-08-12 Pedro Alves <palves@redhat.com>
5099
5100 * NEWS: Move "Multi-target debugging support" item to the
5101 "Changes since GDB 9" section.
5102
27c7b875
PA
51032020-08-12 Pedro Alves <palves@redhat.com>
5104
5105 PR gdb/26336
5106 * progspace.c (program_space::remove_objfile): Invalidate the
5107 frame cache.
5108
1796a2a1
TV
51092020-08-11 Tom de Vries <tdevries@suse.de>
5110
5111 * MAINTAINERS: Mark ms1 as deleted.
5112
f8e3fe0d
LM
51132020-08-10 Luis Machado <luis.machado@linaro.org>
5114
5115 PR gdb/26310
5116
5117 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5118 act accordingly.
5119 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5120 movz/str/stur/stp skipping behavior.
5121
cc308722
LM
51222020-08-10 Luis Machado <luis.machado@linaro.org>
5123
5124 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5125 struct user_sve_header instead of struct sve_context.
5126
041d9819
SM
51272020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5128
5129 * read.h (dwarf2_fetch_die_loc_sect_off,
5130 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5131 `void *` parameter with function_view.
5132 * read.c (dwarf2_fetch_die_loc_sect_off,
5133 dwarf2_fetch_die_loc_cu_off): Likewise.
5134 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5135 (per_cu_dwarf_call): Adjust.
5136 (get_frame_address_in_block_wrapper): Remove.
5137 (indirect_synthetic_pointer): Adjust.
5138 (get_ax_pc): Remove.
5139 (dwarf2_compile_expr_to_ax): Adjust.
5140
38f8aa06
TV
51412020-08-08 Tom de Vries <tdevries@suse.de>
5142
5143 PR build/26344
5144 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5145 constructor.
5146 * regcache.c (get_thread_arch_aspace_regcache): Same.
5147
a52b3ae2
TT
51482020-08-07 Tom Tromey <tromey@adacore.com>
5149
5150 * ravenscar-thread.c
5151 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5152 New method.
5153 (ravenscar_thread_target::wait): Check
5154 runtime_initialized.
5155 (ravenscar_thread_target::prepare_to_store)
5156 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5157 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5158 (ravenscar_thread_target::stopped_by_watchpoint)
5159 (ravenscar_thread_target::stopped_data_address)
5160 (ravenscar_thread_target::core_of_thread): Use
5161 scoped_restore_current_thread and
5162 set_base_thread_from_ravenscar_task.
5163
0e29517d
TT
51642020-08-07 Tom Tromey <tromey@adacore.com>
5165
5166 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5167
592f9bd7
TT
51682020-08-07 Tom Tromey <tromey@adacore.com>
5169
5170 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5171 update_inferior_ptid before update_thread_list.
5172 (temporarily_change_regcache_ptid): New class.
5173 (ravenscar_thread_target::fetch_registers)
5174 (ravenscar_thread_target::store_registers)
5175 (ravenscar_thread_target::prepare_to_store): Use base thread when
5176 forwarding operation.
5177
39e2018a
TT
51782020-08-07 Tom Tromey <tromey@adacore.com>
5179
5180 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5181 "is_pid" case.
5182
2080266b
TT
51832020-08-07 Tom Tromey <tromey@adacore.com>
5184
5185 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5186 New methods.
5187 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5188 first.
5189 (ravenscar_thread_target::add_thread): Rename from
5190 ravenscar_add_thread.
5191 (ravenscar_thread_target::update_thread_list): Use a lambda.
5192 (ravenscar_thread_target::xfer_partial): New method.
5193
78c02f21
TT
51942020-08-07 Tom Tromey <tromey@adacore.com>
5195
5196 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5197 gdb::function_view.
5198 (iterate_over_live_ada_tasks): Change type of argument.
5199 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5200 of argument.
5201
d5d833af
TT
52022020-08-07 Tom Tromey <tromey@adacore.com>
5203
5204 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5205 Remove.
5206 (ravenscar_thread_target::extra_thread_info): Remove.
5207 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5208 defer to target beneath for non-Ravenscar threads.
5209
a8ac85bb
TT
52102020-08-07 Tom Tromey <tromey@adacore.com>
5211
5212 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5213 get_base_thread_from_ravenscar_task>: Now methods.
5214 <m_cpu_map>: New member.
5215 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5216 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5217 (ravenscar_thread_target::task_is_currently_active): Update.
5218 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5219 Now a method.
5220 (ravenscar_thread_target::add_active_thread): Put initial thread
5221 into the m_cpu_map.
5222
550ab58d
TT
52232020-08-07 Tom Tromey <tromey@adacore.com>
5224
5225 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5226 event_ptid.
5227
e9546579
TT
52282020-08-07 Tom Tromey <tromey@adacore.com>
5229
5230 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5231 runtime_initialized.
5232
3d4470e5
TT
52332020-08-07 Tom Tromey <tromey@adacore.com>
5234
5235 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5236 add_active_thread.
5237 (ravenscar_thread_target::add_active_thread): Now public.
5238 (ravenscar_inferior_created): Call add_active_thread after pushing
5239 the target.
5240
888bdb2b
SM
52412020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5242
5243 * regcache.c (ptid_regcache_map): New type.
5244 (target_ptid_regcache_map): New type.
5245 (regcaches): Change type to target_ptid_regcache_map.
5246 (get_thread_arch_aspace_regcache): Update to regcaches' new
5247 type.
5248 (regcache_thread_ptid_changed): Likewise.
5249 (registers_changed_ptid): Likewise.
5250 (regcaches_size): Likewise.
5251 (regcaches_test): Update.
5252 (regcache_thread_ptid_changed): Update.
5253 * regcache.h (regcache_up): New type.
5254 * gdbsupport/ptid.h (hash_ptid): New struct.
5255
b161a60d
SM
52562020-08-07 Simon Marchi <simon.marchi@efficios.com>
5257
5258 * observable.h (thread_ptid_changed): Add parameter
5259 `process_stratum_target *`.
5260 * infrun.c (infrun_thread_ptid_changed): Add parameter
5261 `process_stratum_target *` and use it.
5262 (selftests): New namespace.
5263 (infrun_thread_ptid_changed): New function.
5264 (_initialize_infrun): Register selftest.
5265 * regcache.c (regcache_thread_ptid_changed): Add parameter
5266 `process_stratum_target *` and use it.
5267 (regcache_thread_ptid_changed): New function.
5268 (_initialize_regcache): Register selftest.
5269 * thread.c (thread_change_ptid): Pass target to
5270 thread_ptid_changed observable.
5271
d2854d8d
CT
52722020-08-06 Caroline Tice <cmtice@google.com>
5273
fe4c3d43
SM
5274 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5275 (struct dwp_sections): Update field comments. Add loclists and
5276 rnglists fields.
5277 (struct virtual_v2_dwo_sections): Rename struct to
5278 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5279 size & offset fields for loclists and rnglists.
5280 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5281 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5282 skipping dummy type units.
5283 (create_dwp_hash_table): Update the large comment above the function to
5284 discuss Version 5 DWP files as well, with references. Update all the
5285 version checks in the function to check for version 5 as well. Add new
5286 section at the end to create dwp hash table for version 5.
5287 (create_dwp_v2_section): Rename function to
5288 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5289 Add V5 to error message text.
5290 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5291 into calls to create_dwp_v2_or_v5_section.
5292 (create_dwo_unit_in_dwp_v5): New function.
5293 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5294 check for version2; add else clause to handle version 5.
5295 (open_and_init_dwo_file): Add code to check dwarf version & only call
5296 create_debug_types_hash_table (with sections.types) if version is not 5;
5297 else call create_debug_type_hash_table, with sections.info.
5298 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5299 version 5.
5300 (dwarf2_locate_v5_dwp_sections): New function.
5301 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5302 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5303
159ed7d9
SM
53042020-08-06 Simon Marchi <simon.marchi@efficios.com>
5305
5306 * regcache.h (class regcache): Remove friend
5307 registers_changed_ptid.
5308 <regcache_thread_ptid_changed>: Remove.
5309 <regcaches>: Remove.
5310 * regcache.c (regcache::regcaches): Rename to...
5311 (regcaches): ... this. Make static.
5312 (get_thread_arch_aspace_regcache): Update.
5313 (regcache::regcache_thread_ptid_changed): Rename to...
5314 (regcache_thread_ptid_changed): ... this. Update.
5315 (class regcache_access): Remove.
5316 (regcaches_test): Update.
5317 (_initialize_regcache): Update.
5318 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5319 <forward_list>.
5320
174981ae
SM
53212020-08-06 Simon Marchi <simon.marchi@efficios.com>
5322
5323 * regcache.h (class regcache) <current_regcache>: Rename to...
5324 <regcaches>: ... this. Move doc here.
5325 * regcache.c (regcache::current_regcache) Rename to...
5326 (regcache::regcaches): ... this. Move doc to header.
5327 (get_thread_arch_aspace_regcache): Update.
5328 (regcache::regcache_thread_ptid_changed): Update.
5329 (registers_changed_ptid): Update.
5330 (class regcache_access) <current_regcache_size>: Rename to...
5331 <regcaches_size>: ... this.
5332 (current_regcache_test): Rename to...
5333 (regcaches_test): ... this.
5334 (_initialize_regcache): Update.
5335
ed908db6
VC
53362020-08-06 Victor Collod <vcollod@nvidia.com>
5337
5338 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5339
b5582ab7
KB
53402020-08-05 Kevin Buettner <kevinb@redhat.com>
5341
5342 * corelow.c (core_target::build_file_mappings): Don't output
5343 null pathname in warning.
5344
ea946b86
SM
53452020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5346
5347 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5348 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5349 gdb.dwarf2/dw2-single-line-discriminators.exp,
5350 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5351
57d02173
TT
53522020-08-05 Tom Tromey <tromey@adacore.com>
5353
5354 PR rust/26197:
5355 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5356 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5357 Fix off-by-one and type size errors in ordinary case.
5358
5555c86d
TV
53592020-08-05 Tom de Vries <tdevries@suse.de>
5360
5361 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5362 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5363
97916bfe
SM
53642020-08-04 Simon Marchi <simon.marchi@efficios.com>
5365
5366 * frame.h (frame_id_p): Return bool.
5367 (frame_id_artificial_p): Return bool.
5368 (frame_id_eq): Return bool.
5369 (has_stack_frames): Return bool.
5370 (get_selected_frame): Fix typo in comment.
5371 (get_frame_pc_if_available): Return bool.
5372 (get_frame_address_in_block_if_available): Return bool.
5373 (get_frame_func_if_available): Return bool.
5374 (read_frame_register_unsigned): Return bool.
5375 (get_frame_register_bytes): Return bool.
5376 (safe_frame_unwind_memory): Return bool.
5377 (deprecated_frame_register_read): Return bool.
5378 (frame_unwinder_is): Return bool.
5379 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5380 bool.
5381 <this_id::p>: Likewise.
5382 <prev_p>: Likewise.
5383 (frame_stash_add): Return bool.
5384 (get_frame_id): Use bool.
5385 (frame_id_build_special) Use bool.
5386 (frame_id_build_unavailable_stack): Use bool.
5387 (frame_id_build): Use bool.
5388 (frame_id_p): Return bool, use true/false instead of 1/0.
5389 (frame_id_artificial_p): Likewise.
5390 (frame_id_eq): Likewise.
5391 (frame_id_inner): Likewise.
5392 (get_frame_func_if_available): Likewise.
5393 (read_frame_register_unsigned): Likewise.
5394 (deprecated_frame_register_read): Likewise.
5395 (get_frame_register_bytes): Likewise.
5396 (has_stack_frames): Likewise.
5397 (inside_main_func): Likewise.
5398 (inside_entry_func): Likewise.
5399 (get_frame_pc_if_available): Likewise.
5400 (get_frame_address_in_block_if_available): Likewise.
5401 (frame_unwinder_is): Likewise.
5402 (safe_frame_unwind_memory): Likewise.
5403 (frame_unwind_arch): Likewise.
5404
fedfee88
SM
54052020-08-04 Simon Marchi <simon.marchi@efficios.com>
5406
5407 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5408 type to cached_copy_status.
5409 (fprintf_frame): Adjust.
5410 (get_frame_func_if_available): Adjust.
5411 (frame_cleanup_after_sniffer): Adjust.
5412
6cfa9b59
MW
54132020-08-04 Mark Wielaard <mark@klomp.org>
5414
5415 * MAINTAINERS (Write After Approval): Update email address.
5416
66d6346b
SM
54172020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5418
5419 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5420 dynamic_prop::const_val.
5421
8a6d5e35
SM
54222020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5423
5424 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5425 dynamic_prop::kind.
5426
51d6067d
SM
54272020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5428
5429 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5430
b26e2ae7
JM
54312020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5432
5433 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5434
39791af2
JM
54352020-08-04 Weimin Pan <weimin.pan@oracle.com>
5436 Jose E. Marchesi <jose.marchesi@oracle.com>
5437
5438 * configure.tgt: Add entry for bpf-*-*.
5439 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5440 (ALLDEPFILES): Add bpf-tdep.c.
5441 * bpf-tdep.c: New file.
5442 * MAINTAINERS: Add bpf target and maintainer.
5443 * NEWS: Mention the support for the new target.
5444
521894aa
TV
54452020-08-04 Tom de Vries <tdevries@suse.de>
5446
5447 PR symtab/23270
5448 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5449 Error.
5450
5d6356e9
JB
54512020-08-03 John Baldwin <jhb@FreeBSD.org>
5452
5453 * syscalls/freebsd.xml: Regenerate.
5454
0cf82b81
JB
54552020-08-03 John Baldwin <jhb@FreeBSD.org>
5456
5457 * syscalls/update-freebsd.sh: Fix usage and year range.
5458
8f34b746
TV
54592020-08-03 Tom de Vries <tdevries@suse.de>
5460
5461 PR symtab/26333
5462 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5463 DW_LNE_lo_user/DW_LNE_hi_user range.
5464
5e500d33
SM
54652020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5466
5467 PR ada/26318
5468 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5469 kind.
5470
78319c15
TBA
54712020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5472
5473 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5474
4c55e970
TBA
54752020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5476
5477 * breakpoint.c (set_breakpoint_condition): Update the condition
5478 expressions after checking that the input condition string parses
5479 successfully and does not contain junk at the end.
5480
1e620590
TBA
54812020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5482
5483 * breakpoint.c (set_breakpoint_condition): Update the
5484 condition string after parsing the new condition successfully.
5485
c8693053
RO
54862020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5487
5488 * proc-api.c (_STRUCTURED_PROC): Don't define.
5489 * proc-events.c: Likewise.
5490 * proc-flags.c: Likewise.
5491 * proc-why.c: Likewise.
5492 * procfs.c: Likewise.
5493
5494 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5495 * configure, config.in: Regenerate.
5496
5a99adb8
TV
54972020-07-30 Tom de Vries <tdevries@suse.de>
5498
5499 PR build/26320
5500 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5501 m_red/m_green/m_blue in a union.
5502
8ba83e91
TV
55032020-07-29 Tom de Vries <tdevries@suse.de>
5504
5505 PR tdep/26280
5506 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5507
f75a0693
AB
55082020-07-28 Tom Tromey <tromey@adacore.com>
5509
5510 PR symtab/26270:
5511 * symtab.h (find_pc_partial_function_sym): Declare.
5512 * cli/cli-cmds.c (disassemble_command): Use
5513 find_pc_partial_function_sym. Check asm_demangle.
5514 * blockframe.c (cache_pc_function_sym): New global.
5515 (cache_pc_function_name): Remove.
5516 (clear_pc_function_cache): Update.
5517 (find_pc_partial_function_sym): New function, from
5518 find_pc_partial_function.
5519 (find_pc_partial_function): Rewrite using
5520 find_pc_partial_function_sym.
5521
16f3242c
TT
55222020-07-28 Tom Tromey <tromey@adacore.com>
5523
5524 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5525 help. Add usage.
5526
4888741a
TT
55272020-07-28 Tom Tromey <tromey@adacore.com>
5528
5529 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5530 <DW_OP_GNU_variable_value>: Cast to address type.
5531
4d46f402
KR
55322020-07-28 Kamil Rytarowski <n54@gmx.com>
5533
5534 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5535 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5536 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5537 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5538 (nbsd_get_siginfo_type): New.
5539 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5540 (_initialize_nbsd_tdep): New.
5541
d70f978b
L
55422020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5543
5544 PR binutils/26301
5545 * configure: Regenerated.
5546
377170fa
L
55472020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5548
5549 PR binutils/26301
5550 * configure: Regenerated.
5551
43d5901d
AB
55522020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5553
5554 * python/py-frame.c: Remove 'user-regs.h' include.
5555 (frapy_read_register): Rewrite to make use of
5556 gdbpy_parse_register_id.
5557 * python/py-registers.c (gdbpy_parse_register_id): New function,
5558 moved here from python/py-unwind.c. Updated the return type, and
5559 also accepts register descriptor objects.
5560 * python/py-unwind.c: Remove 'user-regs.h' include.
5561 (pyuw_parse_register_id): Moved to python/py-registers.c.
5562 (unwind_infopy_add_saved_register): Update to use
5563 gdbpy_parse_register_id.
5564 (pending_framepy_read_register): Likewise.
5565 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5566
14fa8fb3
AB
55672020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5568
5569 * python/py-registers.c: Add 'user-regs.h' include.
5570 (register_descriptor_iter_find): New function.
5571 (register_descriptor_iterator_object_methods): New static global
5572 methods array.
5573 (register_descriptor_iterator_object_type): Add pointer to methods
5574 array.
5575
ddce1758
JB
55762020-07-27 John Baldwin <jhb@FreeBSD.org>
5577
5578 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5579 for all architectures on FreeBSD 11.3 and later.
5580
a4089f52
TT
55812020-07-27 Tom Tromey <tromey@adacore.com>
5582
5583 * gcore.h (load_corefile): Don't declare.
5584
95420d30
TV
55852020-07-27 Tom de Vries <tdevries@suse.de>
5586
5587 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5588 * config.in: Regenerate.
5589 * configure: Regenerate.
5590
05a6b8c2
EZ
55912020-07-26 Eli Zaretskii <eliz@gnu.org>
5592
5593 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5594 ws2tcpip.h. When checking whether socklen_t type is defined, use
5595 ws2tcpip.h if it is available and sys/socket.h isn't.
5596 * configure: Regenerate.
5597 * config.in: Regenerate.
5598
e79eb02f
AB
55992020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5600
5601 PR fortran/23051
5602 PR fortran/26139
5603 * valops.c (value_ind): Pass address to
5604 readjust_indirect_value_type.
5605 * value.c (readjust_indirect_value_type): Make parameter
5606 non-const, and add extra address parameter. Resolve original type
5607 before using it.
5608 * value.h (readjust_indirect_value_type): Update function
5609 signature and comment.
5610
876518dd
TV
56112020-07-25 Tom de Vries <tdevries@suse.de>
5612
5613 PR symtab/26243
5614 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5615 entries.
5616
f6720b1c
AM
56172020-07-24 Aaron Merey <amerey@redhat.com>
5618
5619 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5620 * configure: Rebuild.
5621
513487e1
KB
56222020-07-23 Kevin Buettner <kevinb@redhat.com>
5623
5624 PR corefiles/26294
5625 * corelow.c (_initialize_corelow): Add period to help text
5626 for "maintenance print core-file-backed-mappings".
5627
e7bc9db8
PA
56282020-07-23 Pedro Alves <pedro@palves.net>
5629
5630 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5631 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5632 meanwhile.
5633 * frame.c (frame_cache_generation, get_frame_cache_generation):
5634 New.
5635 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5636 (get_prev_frame_if_no_cycle): On exception, don't touch
5637 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5638 * frame.h (get_frame_cache_generation): Declare.
5639
90fcc466
TV
56402020-07-23 Tom de Vries <tdevries@suse.de>
5641
5642 PR tui/26282
5643 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5644 New default constructor.
5645
78344df7
AB
56462020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5647
5648 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5649 exclude non-statement entries.
5650
b089853a
KB
56512020-07-22 Kevin Buettner <kevinb@redhat.com>
5652
5653 * NEWS (New commands): Mention new command
5654 "maintenance print core-file-backed-mappings".
5655
09c2f5d4
KB
56562020-07-22 Kevin Buettner <kevinb@redhat.com>
5657
5658 * corelow.c (gdbcmd.h): Include.
5659 (core_target::info_proc_mappings): New method.
5660 (get_current_core_target): New function.
5661 (maintenance_print_core_file_backed_mappings): New function.
5662 (_initialize_corelow): Add core-file-backed-mappings to
5663 "maint print" commands.
5664
9c5ec5c2 56652020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5666
9c5ec5c2
KB
5667 * linux-tdep.c (dump_note_entry_p): New function.
5668 (linux_dump_mapping_p_ftype): New typedef.
5669 (linux_find_memory_regions_full): Add new parameter,
5670 should_dump_mapping_p.
5671 (linux_find_memory_regions): Adjust call to
5672 linux_find_memory_regions_full.
5673 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5674 call to linux_find_memory_regions_full.
5675
db082f59
KB
56762020-07-22 Kevin Buettner <kevinb@redhat.com>
5677
5678 * corelow.c (solist.h, unordered_map): Include.
5679 (class core_target): Add field m_core_file_mappings and
5680 method build_file_mappings.
5681 (core_target::core_target): Call build_file_mappings.
5682 (core_target::~core_target): Free memory associated with
5683 m_core_file_mappings.
5684 (core_target::build_file_mappings): New method.
5685 (core_target::xfer_partial): Use m_core_file_mappings
5686 for memory transfers.
5687 * linux-tdep.c (linux_read_core_file_mappings): New
5688 function.
5689 (linux_core_info_proc_mappings): Rewrite to use
5690 linux_read_core_file_mappings.
5691 (linux_init_abi): Register linux_read_core_file_mappings.
5692
7e183d27
KB
56932020-07-22 Kevin Buettner <kevinb@redhat.com>
5694
5695 * arch-utils.c (default_read_core_file_mappings): New function.
5696 * arch-utils.c (default_read_core_file_mappings): Declare.
5697 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5698 * gdbarch.h, gdbarch.c: Regenerate.
5699
2735d421
KB
57002020-07-22 Kevin Buettner <kevinb@redhat.com>
5701
5702 PR corefiles/25631
5703 * corelow.c (core_target:xfer_partial): Revise
5704 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5705 case after first checking the stratum beneath the core
5706 target.
5707 (has_all_memory): Return true.
5708 * target.c (raw_memory_xfer_partial): Revise comment
5709 regarding use of has_all_memory.
5710
e56cb451
KB
57112020-07-22 Kevin Buettner <kevinb@redhat.com>
5712
5713 * exec.h (section_table_xfer_memory): Revise declaration,
5714 replacing section name parameter with an optional callback
5715 predicate.
5716 * exec.c (section_table_xfer_memory): Likewise.
5717 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5718 of section_table_xfer_memory.
5719
32fa152e
TT
57202020-07-22 Tom Tromey <tromey@adacore.com>
5721
5722 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5723 lookup_symbol_search_name.
5724
a67a1c41
AB
57252020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5726
5727 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5728 redundant local variable.
5729 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5730 reference, not pointer, update code accordingly.
5731
a7b4ff4f
SM
57322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5733 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5734
5735 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5736 * jit.c (jit_breakpoint_re_set_internal): Use the
5737 `skip_jit_symbol_lookup` field.
5738
2340e834
SM
57392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5740 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5741
5742 * jit.c (jit_read_descriptor): Define the descriptor address once,
5743 use twice.
5744 (jit_breakpoint_deleted): Move the declaration of the loop variable
5745 `iter` into the loop header.
5746 (jit_breakpoint_re_set_internal): Move the declaration of the local
5747 variable `objf_data` to the first point of definition.
5748 (jit_event_handler): Move the declaration of local variables
5749 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5750 Rename `objf` to `jited`.
5751
c1072906
SM
57522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5753
5754 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5755 Remove.
5756 * jit.c (get_jiter_objfile_data): Update.
5757
c8474dc3
TBA
57582020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5759 Simon Marchi <simon.marchi@polymtl.ca>
5760
5761 * jit.c (struct jit_program_space_data): Remove.
5762 (jit_program_space_key): Remove.
5763 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5764 stuff.
5765 (get_jit_program_space_data): Remove.
5766 (jit_breakpoint_deleted): Iterate on all of the program space's
5767 objfiles.
5768 (jit_inferior_init): Likewise.
5769 (jit_breakpoint_re_set_internal): Likewise. Also change return
5770 type to void.
5771 (jit_breakpoint_re_set): Pass current_program_space to
5772 jit_breakpoint_re_set_internal.
5773
77208eb7
SM
57742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5775
5776 * jit.h (struct jiter_objfile_data) <cached_code_address,
5777 jit_breakpoint>: Move to here from ...
5778 * jit.c (jit_program_space_data): ... here.
5779 (jiter_objfile_data::~jiter_objfile_data): Update.
5780 (jit_breakpoint_deleted): Update.
5781 (jit_breakpoint_re_set_internal): Update.
5782
8c1c720f
SM
57832020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5784
5785 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5786 checks.
5787 (jit_read_descriptor): Remove NULL check.
5788 (jit_event_handler): Add an assertion.
5789
0e74a041
SM
57902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5791
5792 * jit.h (struct jit_objfile_data): Split into...
5793 (struct jiter_objfile_data): ... this ...
5794 (struct jited_objfile_data): ... and this.
5795 * objfiles.h (struct objfile) <jit_data>: Remove.
5796 <jiter_data, jited_data>: New fields.
5797 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5798 (jiter_objfile_data::~jiter_objfile_data): ... this.
5799 (get_jit_objfile_data): Rename to ...
5800 (get_jiter_objfile_data): ... this.
5801 (add_objfile_entry): Update.
5802 (jit_read_descriptor): Use get_jiter_objfile_data.
5803 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5804 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5805 (jit_inferior_exit_hook): Use objfile's jited_data field.
5806
238b5c9f
SM
58072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5808
5809 * jit.h: Forward-declare `struct minimal_symbol`.
5810 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5811 constructor, destructor, and an objfile* field.
5812 * jit.c (jit_objfile_data): Remove.
5813 (struct jit_objfile_data): Migrate from here to jit.h.
5814 (jit_objfile_data::~jit_objfile_data): New destructor
5815 implementation with code moved from free_objfile_data.
5816 (free_objfile_data): Delete.
5817 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5818 (jit_find_objf_with_entry_addr): Ditto.
5819 (jit_inferior_exit_hook): Ditto.
5820 (_initialize_jit): Remove the call to
5821 register_objfile_data_with_cleanup.
5822 * objfiles.h (struct objfile) <jit_data>: New field.
5823
fe053b9e
TBA
58242020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5825
5826 * jit.h: Forward-declare `struct objfile`.
5827 (jit_event_handler): Add a second parameter, the JITer objfile.
5828 * jit.c (jit_read_descriptor): Change the signature to take the
5829 JITer objfile as an argument instead of the jit_program_space_data.
5830 (jit_inferior_init): Update the call to jit_read_descriptor.
5831 (jit_event_handler): Use the new JITer objfile argument when calling
5832 jit_read_descriptor.
5833 * breakpoint.c (handle_jit_event): Update the call to
5834 jit_event_handler to pass the JITer objfile.
5835
4cec0c66
JB
58362020-07-21 John Baldwin <jhb@FreeBSD.org>
5837
5838 * gdbarch.c: Regenerate.
5839 * gdbarch.h: Regenerate.
5840 * gdbarch.sh (handle_segmentation_fault): Remove method.
5841 * infrun.c (handle_segmentation_fault): Remove.
5842 (print_signal_received_reason): Remove call to
5843 handle_segmentation_fault.
5844
0e42f66a
JB
58452020-07-21 John Baldwin <jhb@FreeBSD.org>
5846
5847 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5848 Rename to sparc64_linux_report_signal_info and add siggnal
5849 argument.
5850 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5851 instead of sparc64_linux_handle_segmentation_fault.
5852
77bdfeb2
JB
58532020-07-21 John Baldwin <jhb@FreeBSD.org>
5854
5855 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5856 i386_linux_report_signal_info instead of
5857 i386_linux_handle_segmentation_fault.
5858 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5859 to i386_linux_report_signal_info and add siggnal argument.
5860 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5861 of i386_linux_handle_segmentation_fault.
5862 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5863 to i386_linux_report_signal_info and add siggnal argument.
5864
ad97bfc5
JB
58652020-07-21 John Baldwin <jhb@FreeBSD.org>
5866
5867 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5868 hook if present.
5869
272bb05c
JB
58702020-07-21 John Baldwin <jhb@FreeBSD.org>
5871
5872 * gdbarch.c: Regenerate.
5873 * gdbarch.h: Regenerate.
5874 * gdbarch.sh (report_signal_info): New method.
5875 * infrun.c (print_signal_received_reason): Invoke gdbarch
5876 report_signal_info hook if present.
5877
baf8791e
AB
58782020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5879
5880 * python/py-registers.c : Add 'unordered_map' include.
5881 (gdbpy_new_reggroup): Renamed to...
5882 (gdbpy_get_reggroup): ...this. Update to only create register
5883 group descriptors when needed.
5884 (gdbpy_reggroup_iter_next): Update.
5885
f7306dac
AB
58862020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5887
5888 * python/py-registers.c (gdbpy_register_object_data): New static
5889 global.
5890 (gdbpy_register_object_data_init): New function.
5891 (gdbpy_new_register_descriptor): Renamed to...
5892 (gdbpy_get_register_descriptor): ...this, and update to reuse
5893 existing register descriptors where possible.
5894 (gdbpy_register_descriptor_iter_next): Update.
5895 (gdbpy_initialize_registers): Register new gdbarch data.
5896
05c309a8
SM
58972020-07-21 Simon Marchi <simon.marchi@efficios.com>
5898
5899 * linux-nat.c (stopped_pids): Make static.
5900
d1fd641e
SM
59012020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5902
5903 PR ada/26235
5904 * gdbtypes.c (ada_discrete_type_low_bound,
5905 ada_discrete_type_high_bound): Handle undefined bounds.
5906
1de14d77
KR
59072020-07-21 Kamil Rytarowski <n54@gmx.com>
5908
5909 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5910 declaration.
5911 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5912 function.
5913
ed810cc7
JB
59142020-07-20 John Baldwin <jhb@FreeBSD.org>
5915
5916 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5917 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5918 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5919 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5920 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5921 method.
5922
ae5369e7
LC
59232020-07-20 Ludovic Courtès <ludo@gnu.org>
5924
5925 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5926 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5927 which are deprecated in Guile 3.0.
5928 * configure.ac (try_guile_versions): Add "guile-3.0".
5929 * configure (try_guile_versions): Regenerate.
5930 * NEWS: Update entry.
5931
68cf161c
LC
59322020-07-20 Ludovic Courtès <ludo@gnu.org>
5933 Doug Evans <dje@google.com>
5934
5935 PR gdb/21104
5936 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5937 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5938 USING_GUILE_BEFORE_2_2.
5939 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5940 Change type to 'scm_t_port_type *'.
5941 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5942 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5943 parameter and honor it. Update callers.
5944 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5945 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5946 functions.
5947 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5948 USING_GUILE_BEFORE_2_2.
5949 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5950 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5951 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5952 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5953 and 'SCM_PORT_TYPE'.
5954 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5955 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5956 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5957 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5958 [!USING_GUILE_BEFORE_2_2]: New functions.
5959 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5960 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5961 'gdbscm_memory_port_read'.
5962 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5963 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5964 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5965 function.
5966 (ioscm_init_memory_port): Remove.
5967 (ioscm_init_memory_port_stream): New function
5968 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5969 function.
5970 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5971 Return scm_from_uint (0).
5972 (gdbscm_set_memory_port_read_buffer_size_x)
5973 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5974 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5975 Return scm_from_uint (0).
5976 (gdbscm_set_memory_port_write_buffer_size_x)
5977 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5978 * configure.ac (try_guile_versions): Add "guile-2.2".
5979 * configure: Regenerate.
5980 * NEWS: Add entry.
5981
aee91db3
TT
59822020-07-18 Tom Tromey <tom@tromey.com>
5983
5984 * linux-nat.c (linux_multi_process): Remove.
5985 (linux_nat_target::supports_multi_process): Return true.
5986
0e267416
AB
59872020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5988
5989 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5990 (riscv_lookup_target_description): Return pointer out of
5991 unique_ptr.
5992 * target-descriptions.c (allocate_target_description): Add
5993 comment.
5994 (target_desc_deleter::operator()): Likewise.
5995 * target-descriptions.h (struct target_desc_deleter): Moved to
5996 gdbsupport/tdesc.h.
5997 (target_desc_up): Likewise.
5998
f80c8ec4
TT
59992020-07-17 Tom Tromey <tromey@adacore.com>
6000
6001 * linux-nat.c (linux_nat_target::supports_non_stop)
6002 (linux_nat_target::always_non_stop_p): Use "true".
6003 (linux_nat_target::supports_disable_randomization): Use "true" and
6004 "false".
6005
d0ce17d8
CT
60062020-07-16 Caroline Tice <cmtice@google.com>
6007
6008 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6009 (RNGLIST_HEADER_SIZE64): New constant definition.
6010 (struct dwop_section_names): Add rnglists_dwo.
6011 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6012 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6013 (struct dwo_sections): Add rnglists field.
6014 (read_attribut_reprocess): Add tag parameter.
6015 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6016 (cu_debug_rnglists_section): New function (decl & definition).
6017 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6018 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6019 die whose range is being checked; get rnglist section from
6020 cu_debug_rnglists_section, to get from either objfile or dwo file as
6021 appropriate. Add cases for DW_RLE_base_addressx,
6022 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6023 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6024 test inside if-condition and updating complaint message.
6025 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6026 dwarf2_rnglists_process.
6027 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6028 dwarf2_ranges_process.
6029 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6030 need_ranges_base and update comment appropriately. Also pass die tag
6031 to dwarf2_ranges_read.
6032 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6033 need_ranges_base and update comment appropriately. Also pass die tag
6034 to dwarf2_ranges_process.
6035 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6036 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6037 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6038 need_ranges_base and update comment appropriately. Also pass die tag
6039 to read_attribute_reprocess and dwarf2_ranges_read.
6040 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6041 and update function comment appropriately.
6042 (read_loclist_index): Call read_loclists_rnglists_header instead of
6043 read_loclist_header.
6044 (read_rnglist_index): New function.
6045 (read_attribute_reprocess): Add tag parameter. Add code for
6046 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6047 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6048
3dcc261c
AB
60492020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6050
6051 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6052 being resolved.
6053
ccb9eba6
AB
60542020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6055
6056 * arch-utils.c (show_architecture): Update formatting of messages.
6057
cf88be68
SM
60582020-07-12 Simon Marchi <simon.marchi@efficios.com>
6059
6060 * gdbtypes.h (struct type) <bounds>: Handle array and string
6061 types.
6062 * ada-lang.c (assign_aggregate): Use type::bounds on
6063 array/string type.
6064 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6065 * c-varobj.c (c_number_of_children): Likewise.
6066 (c_describe_child): Likewise.
6067 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6068 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6069 (f_type_print_base): Likewise.
6070 * f-valprint.c (f77_array_offset_tbl): Likewise.
6071 (f77_get_upperbound): Likewise.
6072 (f77_print_array_1): Likewise.
6073 * guile/scm-type.c (gdbscm_type_range): Likewise.
6074 * m2-typeprint.c (m2_array): Likewise.
6075 (m2_is_long_set_of_type): Likewise.
6076 * m2-valprint.c (get_long_set_bounds): Likewise.
6077 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6078 * python/py-type.c (typy_range): Likewise.
6079 * rust-lang.c (rust_internal_print_type): Likewise.
6080 * type-stack.c (type_stack::follow_types): Likewise.
6081 * valarith.c (value_subscripted_rvalue): Likewise.
6082 * valops.c (value_cast): Likewise.
6083
509971ae
SM
60842020-07-12 Simon Marchi <simon.marchi@efficios.com>
6085
6086 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6087 callers to use the equivalent accessor methods.
6088
107406b7
SM
60892020-07-12 Simon Marchi <simon.marchi@efficios.com>
6090
6091 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6092 (struct type) <bit_stride>: New method.
6093 (TYPE_BIT_STRIDE): Remove.
6094 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6095
bb789949
SM
60962020-07-12 Simon Marchi <simon.marchi@efficios.com>
6097
6098 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6099 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6100 callers to use the equivalent accessor methods instead.
6101
39498edb
SM
61022020-07-12 Simon Marchi <simon.marchi@efficios.com>
6103
6104 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6105 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6106 callers to use the equivalent accessor methods instead.
6107
3b606f38
SM
61082020-07-12 Simon Marchi <simon.marchi@efficios.com>
6109
6110 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6111 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6112 to use dynamic_prop::kind.
6113
064d9cb9
SM
61142020-07-12 Simon Marchi <simon.marchi@efficios.com>
6115
6116 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6117 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6118 to get the bound property's kind and check against
6119 PROP_UNDEFINED.
6120
5537ddd0
SM
61212020-07-12 Simon Marchi <simon.marchi@efficios.com>
6122
6123 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6124 all callers to use type::range_bounds followed by
6125 dynamic_prop::{low,high}.
6126
8c2e4e06
SM
61272020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6128
6129 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6130 const_val, set_const_val, baton, set_locexpr, set_loclist,
6131 set_addr_offset, variant_parts, set_variant_parts,
6132 original_type, set_original_type>: New methods.
6133 <kind>: Rename to...
6134 <m_kind>: ... this. Update all users to use the new methods
6135 instead.
6136 <data>: Rename to...
6137 <m_data>: ... this. Update all users to use the new methods
6138 instead.
6139
7c6f2712
SM
61402020-07-12 Simon Marchi <simon.marchi@efficios.com>
6141
6142 * gdbtypes.c (get_discrete_bounds): Return failure if
6143 the range type's bounds are not both defined and constant
6144 values.
6145 (get_array_bounds): Update comment. Remove undefined bound check.
6146
599088e3
SM
61472020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6148
6149 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6150 the type::bounds method directly.
6151
c4dfcb36
SM
61522020-07-12 Simon Marchi <simon.marchi@efficios.com>
6153
6154 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6155 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6156 are used to set the range type's bounds to use set_bounds.
6157
0a278aa7
PW
61582020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6159
6160 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6161
cce20f10
PA
61622020-07-10 Pedro Alves <pedro@palves.net>
6163
6164 * gdbthread.h (inferior_ref): Define.
6165 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6166 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6167 * thread.c
6168 (scoped_restore_current_thread::restore):
6169 Adjust to gdb::ref_ptr.
6170 (scoped_restore_current_thread::~scoped_restore_current_thread):
6171 Remove manual decref handling.
6172 (scoped_restore_current_thread::scoped_restore_current_thread):
6173 Adjust to use
6174 inferior_ref::new_reference/thread_info_ref::new_reference.
6175 Incref the thread before calling get_frame_id instead of after.
6176 Let TARGET_CLOSE_ERROR propagate.
6177
6d7aa592
PA
61782020-07-10 Pedro Alves <pedro@palves.net>
6179
6180 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6181 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6182 NOT_AVAILABLE_ERROR.
6183 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6184 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6185
b3e3a4c1
SM
61862020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6187 Pedro Alves <pedro@palves.net>
6188
6189 PR gdb/26199
6190 * infrun.c (threads_are_resumed_pending_p): Delete.
6191 (do_target_wait): Remove threads_are_executing and
6192 threads_are_resumed_pending_p checks from the inferior_matches
6193 lambda. Update comments.
6194
d6cc5d98
PA
61952020-07-10 Pedro Alves <pedro@palves.net>
6196
6197 PR gdb/26199
6198 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6199 executing threads.
6200
7d3badc6
PA
62012020-07-10 Pedro Alves <pedro@palves.net>
6202
6203 PR gdb/26199
6204 * infrun.c (handle_no_resumed): Handle multiple targets.
6205
42bd97a6
PA
62062020-07-10 Pedro Alves <pedro@palves.net>
6207
6208 PR gdb/26199
6209 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6210 target_is_async_p.
6211
43667cc6
PA
62122020-07-10 Pedro Alves <pedro@palves.net>
6213
6214 PR gdb/26199
6215 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6216 threads, not all threads.
6217
96118d11
PA
62182020-07-10 Pedro Alves <pedro@palves.net>
6219
6220 PR gdb/26199
6221 * remote.c (remote_target::open_1): Pass remote target pointer as
6222 data to create_async_event_handler.
6223 (remote_async_inferior_event_handler): Mark async event handler
6224 before returning if the remote target still has either pending
6225 events or unacknowledged notifications.
6226
54904d81
JB
62272020-07-10 John Baldwin <jhb@FreeBSD.org>
6228
6229 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6230 declaration.
6231 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6232 function.
6233
f37e5866
JB
62342020-07-09 John Baldwin <jhb@FreeBSD.org>
6235
6236 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6237 inferior_ptid.
6238
fc238d4a
JB
62392020-07-09 John Baldwin <jhb@FreeBSD.org>
6240
6241 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6242 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6243 AT_FREEBSD_PS_STRINGS.
6244
6e2469ff
HD
62452020-07-08 Hannes Domani <ssbssa@yahoo.de>
6246
6247 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6248 of debugfile path on Windows.
6249
d1076c41
JB
62502020-07-08 John Baldwin <jhb@FreeBSD.org>
6251
6252 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6253 argument to 'data'.
6254
15f3b077
TT
62552020-07-08 Tom Tromey <tromey@adacore.com>
6256
6257 * ada-lang.c (ada_exception_message_1): Use read_memory.
6258
9fc501fd
AB
62592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6260
6261 PR python/22748
6262 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6263 special handling for inline frames.
6264 * findvar.c (value_of_register_lazy): Skip inline frames when
6265 creating lazy register values.
6266 * frame.c (frame_id_computed_p): Delete definition.
6267 * frame.h (frame_id_computed_p): Delete declaration.
6268
64cb3757
AB
62692020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6270
6271 * NEWS: Mention additions to Python API.
6272 * python/py-arch.c (archpy_register_groups): New function.
6273 (arch_object_methods): Add 'register_groups' method.
6274 * python/py-registers.c (reggroup_iterator_object): New struct.
6275 (reggroup_object): New struct.
6276 (gdbpy_new_reggroup): New function.
6277 (gdbpy_reggroup_to_string): New function.
6278 (gdbpy_reggroup_name): New function.
6279 (gdbpy_reggroup_iter): New function.
6280 (gdbpy_reggroup_iter_next): New function.
6281 (gdbpy_new_reggroup_iterator): New function
6282 (gdbpy_initialize_registers): Register new types.
6283 (reggroup_iterator_object_type): Define new Python type.
6284 (gdbpy_reggroup_getset): New static global.
6285 (reggroup_object_type): Define new Python type.
6286 * python/python-internal.h
6287
0f767f94
AB
62882020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6289
6290 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6291 * python/py-arch.c (archpy_registers): New function.
6292 (arch_object_methods): Add 'registers' method.
6293 * python/py-registers.c: New file.
6294 * python/python-internal.h
6295 (gdbpy_new_register_descriptor_iterator): Declare.
6296 (gdbpy_initialize_registers): Declare.
6297 * python/python.c (do_start_initialization): Call
6298 gdbpy_initialize_registers.
6299 * NEWS: Mention additions to the Python API.
6300
87dbc774
AB
63012020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6302
6303 * NEWS: Mention new Python API method.
6304 * python/py-unwind.c (pending_framepy_architecture): New function.
6305 (pending_frame_object_methods): Add architecture method.
6306
3bc98c0c
AB
63072020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6308
6309 * gdbarch.c: Regenerate.
6310 * gdbarch.h: Regenerate.
6311 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6312 (gdbarch_data): Use internal_error for the case where
6313 deprecated_set_gdbarch_data was originally needed.
6314 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6315 and use passed in obstack.
6316 (libunwind_frame_set_descr): Should no longer get back NULL from
6317 gdbarch_data.
6318 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6319 type.
6320 * user-regs.c (user_regs_init): Update parameters, and use passed
6321 in obstack.
6322 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6323 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6324
d8cc8af6
TV
63252020-07-06 Tom de Vries <tdevries@suse.de>
6326
6327 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6328 End-Of-Sequence in lte_is_less_than.
6329 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6330 "gdb: Don't reorder line table entries too much when sorting".
6331
947f7597
TV
63322020-07-06 Tom de Vries <tdevries@suse.de>
6333
6334 PR tui/26205
6335 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6336
1e7c1b22
TV
63372020-07-05 Tom de Vries <tdevries@suse.de>
6338
6339 PR build/26187
6340 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6341 std::uncaught_exceptions instead of deprecated
6342 std::uncaught_exception.
6343
a36158ec
SM
63442020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6345
6346 * macroexp.h (macro_stringify): Return
6347 gdb::unique_xmalloc_ptr<char>.
6348 * macroexp.c (macro_stringify): Likewise.
6349 * macrotab.c (fixup_definition): Update.
6350
14d960c8
SM
63512020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6352
6353 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6354 (lex_one_token): Update.
6355 * macroexp.c (struct macro_buffer) <release>: Return
6356 gdb::unique_xmalloc_ptr<char>.
6357 (macro_stringify): Update.
6358 (macro_expand): Update.
6359 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6360 * macroexp.h (macro_expand_next): Likewise.
6361
211d5b1c
SM
63622020-07-02 Simon Marchi <simon.marchi@efficios.com>
6363
6364 * macroexp.h (macro_lookup_ftype): Remove.
6365 (macro_expand, macro_expand_once, macro_expand_next): Remove
6366 lookup function parameters, add scope parameter.
6367 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6368 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6369 * macroscope.h (standard_macro_lookup): Change parameter type
6370 to macro_scope.
6371 * macroscope.c (standard_macro_lookup): Likewise.
6372 * c-exp.y (lex_one_token): Update.
6373 * macrocmd.c (macro_expand_command): Likewise.
6374 (macro_expand_once_command): Likewise.
6375
b1a35af2
SM
63762020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6377
6378 * inf-loop.c (inferior_event_handler): Remove client_data param.
6379 * inf-loop.h (inferior_event_handler): Likewise.
6380 * infcmd.c (step_1): Adjust.
6381 * infrun.c (proceed): Adjust.
6382 (fetch_inferior_event): Remove client_data param.
6383 (infrun_async_inferior_event_handler): Adjust.
6384 * infrun.h (fetch_inferior_event): Remove `void *` param.
6385 * linux-nat.c (handle_target_event): Adjust.
6386 * record-btrace.c (record_btrace_handle_async_inferior_event):
6387 Adjust.
6388 * record-full.c (record_full_async_inferior_event_handler):
6389 Adjust.
6390 * remote.c (remote_async_inferior_event_handler): Adjust.
6391
1cdf9e33
TT
63922020-07-01 Tom Tromey <tom@tromey.com>
6393
6394 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6395 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6396
32c1e210
TT
63972020-07-01 Tom Tromey <tom@tromey.com>
6398
6399 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6400 tui_gen_win_info.
6401 (tui_win_info::make_window): Merge with
6402 tui_gen_win_info::make_window.
6403 (tui_win_info::make_visible): Move from tui_gen_win_info.
6404 * tui/tui-win.c (tui_win_info::max_width): Move from
6405 tui_gen_win_info.
6406 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6407 type.
6408 <window_factory>: Likewise.
6409 * tui/tui-layout.c (tui_win_info::resize): Move from
6410 tui_gen_win_info.
6411 (make_standard_window): Change return type.
6412 (get_locator_window, tui_get_window_by_name): Likewise.
6413 (tui_layout_window::apply): Remove a cast.
6414 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6415 (struct tui_win_info): Merge with tui_gen_win_info.
6416 (struct tui_gen_win_info): Remove.
6417
a30cb6da
TT
64182020-07-01 Tom Tromey <tom@tromey.com>
6419
6420 * tui/tui-stack.h (struct tui_locator_window): Derive from
6421 tui_win_info.
6422 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6423 <can_box>: New method.
6424
1eb2161f
TT
64252020-07-01 Tom Tromey <tom@tromey.com>
6426
6427 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6428
7134f2eb
TT
64292020-07-01 Tom Tromey <tom@tromey.com>
6430
6431 * tui/tui-regs.c (tui_data_window::display_registers_from)
6432 (tui_data_window::display_registers_from)
6433 (tui_data_window::first_data_item_displayed)
6434 (tui_data_window::delete_data_content_windows): Update.
6435 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6436 Remove.
6437 (tui_data_window::check_register_values): Update.
6438 (tui_data_item_window::rerender): Add parameters. Update.
6439 (tui_data_item_window::refresh_window): Remove.
6440 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6441 virtual.
6442 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6443 tui_gen_win_info.
6444 <refresh_window, max_height, min_height>: Remove.
6445 <rerender>: Add parameters.
6446 <x, y, visible>: New members.
6447 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6448 <m_item_width>: New member.
6449
22b7b041
TT
64502020-07-01 Tom Tromey <tom@tromey.com>
6451
6452 * tui/tui-regs.c (tui_data_window::show_register_group)
6453 (tui_data_window::check_register_values): Update.
6454 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6455 from item_no.
6456
c9753adb
TT
64572020-07-01 Tom Tromey <tom@tromey.com>
6458
6459 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6460 useless "if".
6461
9ab26b4a
TT
64622020-07-01 Tom Tromey <tom@tromey.com>
6463
6464 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6465 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6466
e555083f
TT
64672020-07-01 Tom Tromey <tom@tromey.com>
6468
6469 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6470 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6471 (struct tui_line_or_address): Move from tui-data.h.
6472 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6473 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6474 (tui_cmd_window, tui_source_window_base, tui_source_window)
6475 (tui_disasm_window): Don't declare.
6476 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6477 to tui-winsource.h.
6478 (SINGLE_KEY): Move to tui-stack.c.
6479
7a02bab7
TT
64802020-07-01 Tom Tromey <tom@tromey.com>
6481
6482 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6483 std::string.
6484 * tui/tui-regs.c (class tab_expansion_file): New.
6485 (tab_expansion_file::write): New method.
6486 (tui_register_format): Change return type. Use
6487 tab_expansion_file.
6488 (tui_get_register, tui_data_window::display_registers_from)
6489 (tui_data_item_window::rerender): Update.
6490 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6491 * tui/tui-io.c (tui_expand_tabs): Remove.
6492
ea68593b
TT
64932020-07-01 Tom Tromey <tom@tromey.com>
6494
6495 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6496
a8caed5d
FS
64972020-07-01 Fangrui Song <maskray@google.com>
6498
6499 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6500
9cdf9820
AKS
65012020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6502
6503 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6504 forms for DW_AT_associated and DW_AT_allocated attributes,
6505 which is already checked in function attr_to_dynamic_prop.
6506
a1520ad8
TT
65072020-06-30 Tom Tromey <tromey@adacore.com>
6508
6509 * dwarf2/read.c (quirk_rust_enum): Correctly call
6510 alloc_rust_variant for default-less enum.
6511
5ac58899
TT
65122020-06-30 Tom Tromey <tromey@adacore.com>
6513
6514 PR build/26183:
6515 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6516 gdb::to_string.
6517
19b187a9
SM
65182020-06-29 Simon Marchi <simon.marchi@efficios.com>
6519
6520 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6521 * gdbarch.h: Re-generate.
6522
cd4c4c07
TT
65232020-06-28 Tom Tromey <tom@tromey.com>
6524
6525 * command.h (cmd_types): Remove.
6526 (cmd_type): Don't declare.
6527 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6528 typedef.
6529 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6530 * cli/cli-decode.c (cmd_type): Remove.
6531
05779d57
PA
65322020-06-27 Pedro Alves <palves@redhat.com>
6533
6534 * fork-child.c (prefork_hook): Adjust.
6535 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6536 Delete.
6537 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6538 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6539 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6540 Remove declarations.
6541 (struct inferior) <set_tty, tty>: New methods.
6542 (struct inferior) <terminal>: Rename to ...
6543 (struct inferior) <m_terminal>: ... this and make private.
6544 * main.c (captured_main_1): Adjust.
6545 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6546 (mi_cmd_inferior_tty_show): Adjust.
6547 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6548 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6549
1776e3e5
NA
65502020-06-26 Nick Alcock <nick.alcock@oracle.com>
6551
6552 * configure.ac: Add --enable-libctf: handle --disable-static
6553 properly.
6554 * acinclude.m4: sinclude ../config/enable.m4.
6555 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6556 (LIBCTF): Substitute in.
6557 (CTF_DEPS): New, likewise.
6558 (CLIBS): libctf needs symbols from libbfd: move earlier.
6559 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6560 flags.
6561 * ctfread.c: Surround in ENABLE_LIBCTF.
6562 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6563 * configure: Regenerate.
6564 * config.in: Likewise.
6565
58373b80
SM
65662020-06-25 Simon Marchi <simon.marchi@efficios.com>
6567
6568 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6569
277474ee
SM
65702020-06-25 Simon Marchi <simon.marchi@efficios.com>
6571
6572 * inferior.h (struct inferior) <terminal>: Change type to
6573 gdb::unique_xmalloc_ptr<char>.
6574 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6575 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6576 field, adjust to unique pointer.
6577 (get_inferior_io_terminal): Adjust to unique pointer.
6578
6d74da72
AB
65792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6580
6581 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6582 registers, not just the known core set of registers.
6583
2e52d038
AB
65842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6585
6586 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6587 fflags, frm, and fcsr registers.
6588 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6589 restore groups.
6590 (riscv_tdesc_unknown_reg): New function.
6591 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6592 tdesc_use_registers.
6593 * riscv-tdep.h (struct gdbarch_tdep): Add
6594 unknown_csrs_first_regnum, unknown_csrs_count,
6595 duplicate_fflags_regnum, duplicate_frm_regnum, and
6596 duplicate_fcsr_regnum fields.
6597
be64fd07
AB
65982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6599
6600 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6601 callback, use the callback (when not null) to help number unknown
6602 registers.
6603 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6604 (tdesc_use_registers): Add extra parameter to declaration.
6605
3b9fce96
AB
66062020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6607
6608 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6609 in the file.
6610 (class riscv_pending_register_alias): Likewise.
6611 (riscv_register_feature::register_info): Change 'required_p' field
6612 to 'required', and change its type. Add 'check' member function.
6613 (riscv_register_feature::register_info::check): Define new member
6614 function.
6615 (riscv_xreg_feature): Change initialisation of 'required' field.
6616 (riscv_freg_feature): Likewise.
6617 (riscv_virtual_feature): Likewise.
6618 (riscv_csr_feature): Likewise.
6619 (riscv_check_tdesc_feature): Take extra parameter, the csr
6620 tdesc_feature, rewrite the function to use the new
6621 riscv_register_feature::register_info::check function.
6622 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6623
865bad26
AB
66242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6625
6626 * features/Makefile: Remove all references to the deleted files
6627 below.
6628 * features/riscv/32bit-csr.c: Deleted.
6629 * features/riscv/32bit-csr.xml: Deleted.
6630 * features/riscv/64bit-csr.c: Deleted.
6631 * features/riscv/64bit-csr.xml: Deleted.
6632 * features/riscv/rebuild-csr-xml.sh: Deleted.
6633
ed69cbc8
AB
66342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6635
6636 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6637 whitespace error for declaration of names member variable.
6638 (struct riscv_register_feature): Add new prefer_first_name member
6639 variable, and fix whitespace error in declaration of registers.
6640 (riscv_xreg_feature): Initialize prefer_first_name field.
6641 (riscv_freg_feature): Likewise.
6642 (riscv_virtual_feature): Likewise.
6643 (riscv_csr_feature): Likewise.
6644 (riscv_register_name): Expand on comments. Remove register name
6645 modifications for CSR and virtual registers.
6646
4445e8f5
AB
66472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6648
6649 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6650 errors.
6651
767a879e
AB
66522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6653
6654 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6655 riscv-opc.h.
6656 (class riscv_pending_register_alias): New class.
6657 (riscv_check_tdesc_feature): Take vector of pending aliases and
6658 populate it as appropriate.
6659 (riscv_setup_register_aliases): Delete.
6660 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6661 to riscv_check_tdesc_feature in all cases. Use the vector to
6662 create the register aliases.
6663
bb6e55f3
RO
66642020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6665
6666 * sol2-tdep.c (sol2_static_transform_name): Remove.
6667 (sol2_init_abi): Don't register it.
6668 * gdbarch.sh (static_transform_name): Remove.
6669 * gdbarch.c, gdbarch.h: Regenerate.
6670
6671 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6672 gdbarch_static_transform_name.
6673 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6674 * stabsread.c (define_symbol) <'X'>: Remove.
6675 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6676 handling.
6677 <'V'>: Likewise.
6678 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6679 <'S'>: Remove call to gdbarch_static_transform_name.
6680
c6d36836
RO
66812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6682
6683 * procfs.c (procfs_pre_trace): New function.
6684 (procfs_target::create_inferior): Pass it to fork_inferior.
6685
a7e6196b
RO
66862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6687
6688 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6689 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6690 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6691 sol2-tdep.o, sparc-sol2-tdep.o.
6692 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6693 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6694 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6695 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6696
d412e696
RO
66972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6698
6699 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6700 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6701 Call sol2_init_abi.
6702 Remove calls to set_gdbarch_skip_solib_resolver,
6703 set_gdbarch_core_pid_to_str.
6704 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6705 (i386_sol2_static_transform_name): Remove.
6706 (i386_sol2_init_abi): Call sol2_init_abi.
6707 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6708 set_gdbarch_static_transform_name,
6709 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6710 Use sol2_sigtramp_p.
6711 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6712 (sol2_sigtramp_p): New function.
6713 (sol2_static_transform_name): New function.
6714 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6715 (sol2_init_abi): New function.
6716 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6717 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6718 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6719 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6720 (sparc_sol2_static_transform_name): Remove.
6721 (sparc32_sol2_init_abi): Call sol2_init_abi.
6722 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6723 set_gdbarch_static_transform_name,
6724 set_gdbarch_skip_solib_resolver,
6725 set_gdbarch_core_pid_to_str.
6726 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6727 (sparc_sol2_static_transform_name): Remove
6728 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6729 call sol2_sigtramp_p.
6730 (sparc64_sol2_init_abi): Call sol2_init_abi.
6731 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6732 set_gdbarch_static_transform_name,
6733 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6734
a8654e7d
PW
67352020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6736
6737 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6738 * exec.c (validate_exec_file): If from_tty, set both
6739 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6740 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6741 and from_tty, unconditionally ask a confirmation.
6742
caa7fd04
AB
67432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6744
6745 * target-descriptions.c (tdesc_architecture_name): Protect against
6746 NULL pointer dereference.
6747 (maint_print_xml_tdesc_cmd): New function.
6748 (_initialize_target_descriptions): Register new 'maint print
6749 xml-tdesc' command and give it the filename completer.
6750 * NEWS: Mention new 'maint print xml-tdesc' command.
6751
fbf42f4e
AB
67522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6753
6754 * target-descriptions.c (class tdesc_compatible_info): New class.
6755 (struct target_desc): Change type of compatible vector.
6756 (tdesc_compatible_p): Update for change in type of
6757 target_desc::compatible.
6758 (tdesc_compatible_info_list): New function.
6759 (tdesc_compatible_info_arch_name): New function.
6760 (tdesc_add_compatible): Update for change in type of
6761 target_desc::compatible.
6762 (print_c_tdesc::visit_pre): Likewise.
6763
20821f4e
AB
67642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6765
6766 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6767 whitespace to underscore.
6768 (maint_print_c_tdesc_cmd): Use fake filename for target
6769 descriptions that came from the target.
6770 (_initialize_target_descriptions): Add filename command completion
6771 for 'maint print c-tdesc'.
6772
1fb5ee62
SM
67732020-06-23 Simon Marchi <simon.marchi@efficios.com>
6774
6775 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6776 lines.
6777
fc3ecb3e
SM
67782020-06-23 Simon Marchi <simon.marchi@efficios.com>
6779
6780 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6781 lines.
6782 (dwarf2_find_location_expression): Likewise.
6783 (call_site_parameter_matches): Likewise.
6784 (dwarf2_compile_expr_to_ax): Likewise.
6785 (disassemble_dwarf_expression): Likewise.
6786 (loclist_describe_location): Likewise.
6787
236ef034
PA
67882020-06-23 Pedro Alves <palves@redhat.com>
6789
6790 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6791 progspace-and-thread.h. Include scoped-mock-context.h instead.
6792 (register_to_value_test): Use scoped_mock_context.
6793 * regcache.c: Include "scoped-mock-context.h".
6794 (cooked_read_test): Don't error out if a target is already pushed.
6795 Use scoped_mock_context. Adjust.
6796 * scoped-mock-context.h: New file.
6797
39e7ecca
AB
67982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6799
6800 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6801 initializer.
6802 (ada_language::is_string_type_p): New member function.
6803 * c-lang.c (c_language_data): Delete la_is_string_type_p
6804 initializer.
6805 (cplus_language_data): Likewise.
6806 (asm_language_data): Likewise.
6807 (minimal_language_data): Likewise.
6808 * d-lang.c (d_language_data): Likewise.
6809 * f-lang.c (f_is_string_type_p): Delete function, implementation
6810 moved to f_language::is_string_type_p.
6811 (f_language_data): Delete la_is_string_type_p initializer.
6812 (f_language::is_string_type_p): New member function,
6813 implementation from f_is_string_type_p.
6814 * go-lang.c (go_is_string_type_p): Delete function, implementation
6815 moved to go_language::is_string_type_p.
6816 (go_language_data): Delete la_is_string_type_p initializer.
6817 (go_language::is_string_type_p): New member function,
6818 implementation from go_is_string_type_p.
6819 * language.c (language_defn::is_string_type_p): Define new member
6820 function.
6821 (default_is_string_type_p): Make static, add comment copied from
6822 header file.
6823 (unknown_language_data): Delete la_is_string_type_p initializer.
6824 (unknown_language::is_string_type_p): New member function.
6825 (auto_language_data): Delete la_is_string_type_p initializer.
6826 (auto_language::is_string_type_p): New member function.
6827 * language.h (language_data): Delete la_is_string_type_p field.
6828 (language_defn::is_string_type_p): Declare new function.
6829 (default_is_string_type_p): Delete desclaration, move comment to
6830 definition.
6831 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6832 moved to m2_language::is_string_type_p.
6833 (m2_language_data): Delete la_is_string_type_p initializer.
6834 (m2_language::is_string_type_p): New member function,
6835 implementation from m2_is_string_type_p.
6836 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6837 initializer.
6838 * opencl-lang.c (opencl_language_data): Likewise.
6839 * p-lang.c (pascal_is_string_type_p): Delete function,
6840 implementation moved to pascal_language::is_string_type_p.
6841 (pascal_language_data): Delete la_is_string_type_p initializer.
6842 (pascal_language::is_string_type_p): New member function,
6843 implementation from pascal_is_string_type_p.
6844 * rust-lang.c (rust_is_string_type_p): Delete function,
6845 implementation moved to rust_language::is_string_type_p.
6846 (rust_language_data): Delete la_is_string_type_p initializer.
6847 (rust_language::is_string_type_p): New member function,
6848 implementation from rust_is_string_type_p.
6849 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6850 is_string_type_p.
6851
4ffc13fb
AB
68522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6853
6854 * ada-lang.c (ada_language_data): Delete la_print_typedef
6855 initializer.
6856 (ada_language::print_typedef): New member function.
6857 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6858 (cplus_language_data): Likewise.
6859 (asm_language_data): Likewise.
6860 (minimal_language_data): Likewise.
6861 * d-lang.c (d_language_data): Likewise.
6862 * f-lang.c (f_language_data): Likewise.
6863 (f_language::print_typedef): New member function.
6864 * go-lang.c (go_language_data): Delete la_print_typedef
6865 initializer.
6866 * language.c (language_defn::print_typedef): Define member
6867 function.
6868 (unknown_language_data): Delete la_print_typedef initializer.
6869 (unknown_language::print_typedef): New member function.
6870 (auto_language_data): Delete la_print_typedef initializer.
6871 (auto_language::print_typedef): New member function.
6872 * language.h (language_data): Delete la_print_typedef field.
6873 (language_defn::print_typedef): Declare new member function.
6874 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6875 (default_print_typedef): Delete declaration.
6876 * m2-lang.c (m2_language_data): Delete la_print_typedef
6877 initializer.
6878 (m2_language::print_typedef): New member function.
6879 * objc-lang.c (objc_language_data): Delete la_print_typedef
6880 initializer.
6881 * opencl-lang.c (opencl_language_data): Likewise.
6882 * p-lang.c (pascal_language_data): Likewise.
6883 (pascal_language::print_typedef): New member function.
6884 * rust-lang.c (rust_print_typedef): Delete function,
6885 implementation moved to rust_language::print_typedef.
6886 (rust_language): Delete la_print_typedef initializer.
6887 (rust_language::print_typedef): New member function,
6888 implementation from rust_print_typedef.
6889 * typeprint.c (default_print_typedef): Delete.
6890
d711ee67
AB
68912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6892
6893 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6894 (ada_language::printstr): New member function.
6895 * c-lang.c (c_language_data): Delete la_printstr initializer.
6896 (cplus_language_data): Likewise.
6897 (asm_language_data): Likewise.
6898 (minimal_language_data): Likewise.
6899 * d-lang.c (d_language_data): Likewise.
6900 * f-lang.c (f_printstr): Rename to f_language::printstr.
6901 (f_language_data): Delete la_printstr initializer.
6902 (f_language::printstr): New member function, implementation from
6903 f_printstr.
6904 * go-lang.c (go_language_data): Delete la_printstr initializer.
6905 * language.c (language_defn::printstr): Define new member
6906 function.
6907 (unk_lang_printstr): Delete.
6908 (unknown_language_data): Delete la_printstr initializer.
6909 (unknown_language::printstr): New member function.
6910 (auto_language_data): Delete la_printstr initializer.
6911 (auto_language::printstr): New member function.
6912 * language.h (language_data): Delete la_printstr field.
6913 (language_defn::printstr): Declare new member function.
6914 (LA_PRINT_STRING): Update call to printstr.
6915 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6916 (m2_language_data): Delete la_printstr initializer.
6917 (m2_language::printstr): New member function, implementation from
6918 m2_printstr.
6919 * objc-lang.c (objc_language_data): Delete la_printstr
6920 initializer.
6921 * opencl-lang.c (opencl_language_data): Likewise.
6922 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6923 (pascal_language_data): Delete la_printstr initializer.
6924 (pascal_language::printstr): New member function, implementation
6925 from pascal_printstr.
6926 * p-lang.h (pascal_printstr): Delete declaration.
6927 * rust-lang.c (rust_printstr): Update header comment.
6928 (rust_language_data): Delete la_printstr initializer.
6929 (rust_language::printstr): New member function.
6930
52b50f2c
AB
69312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6932
6933 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6934 (ada_language::printchar): New member function.
6935 * c-lang.c (c_language_data): Delete la_printchar initializer.
6936 (cplus_language_data): Likewise.
6937 (asm_language_data): Likewise.
6938 (minimal_language_data): Likewise.
6939 * d-lang.c (d_language_data): Likewise.
6940 * f-lang.c (f_printchar): Rename to f_language::printchar.
6941 (f_language_data): Delete la_printchar initializer.
6942 (f_language::printchar): New member function, implementation from
6943 f_printchar.
6944 * go-lang.c (go_language_data): Delete la_printchar initializer.
6945 * language.c (unk_lang_printchar): Delete.
6946 (language_defn::printchar): Define new member function.
6947 (unknown_language_data): Delete la_printchar initializer.
6948 (unknown_language::printchar): New member function.
6949 (auto_language_data): Delete la_printchar initializer.
6950 (auto_language::printchar): New member function.
6951 * language.h (language_data): Delete la_printchar field.
6952 (language_defn::printchar): Declare new member function.
6953 (LA_PRINT_CHAR): Update call to printchar.
6954 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6955 (m2_language::printchar): New member function.
6956 * objc-lang.c (objc_language_data): Delete la_printchar
6957 initializer.
6958 * opencl-lang.c (opencl_language_data): Likewise.
6959 * p-lang.c (pascal_language_data): Delete la_printchar
6960 initializer.
6961 (pascal_language::printchar): New member function.
6962 * rust-lang.c (rust_printchar): Rename to
6963 rust_language::printchar.
6964 (rust_language_data): Delete la_printchar initializer.
6965 (rust_language::printchar): New member function, implementation
6966 from rust_printchar.
6967
ec8cec5b
AB
69682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6969
6970 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6971 (ada_language_data): Delete la_emitchar initializer.
6972 (ada_language::emitchar): New member function, implementation from
6973 emit_char.
6974 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6975 (cplus_language_data): Likewise.
6976 (asm_language_data): Likewise.
6977 (minimal_language_data): Likewise.
6978 * d-lang.c (d_language_data): Likewise.
6979 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6980 (f_language_data): Delete la_emitchar initializer.
6981 (f_language::emitchar): New member function, implementation from
6982 f_emit_char.
6983 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6984 * language.c (unk_lang_emit_char): Delete.
6985 (language_defn::emitchar): New member function definition.
6986 (unknown_language_data): Delete la_emitchar initializer.
6987 (unknown_language::emitchar): New member function.
6988 (auto_language_data): Delete la_emitchar initializer.
6989 (auto_language::emitchar): New member function.
6990 * language.h (language_data): Delete la_emitchar field.
6991 (language_defn::emitchar): New member field declaration.
6992 (LA_EMIT_CHAR): Update call to emitchar.
6993 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6994 (m2_language_data): Delete la_emitchar initializer.
6995 (m2_language::emitchar): New member function, implementation from
6996 m2_emit_char.
6997 * objc-lang.c (objc_language_data): Delete la_emitchar
6998 initializer.
6999 * opencl-lang.c (opencl_language_data): Likewise.
7000 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7001 (pascal_language_data): Delete la_emitchar initializer.
7002 (pascal_language::emitchar): New member function, implementation
7003 from pascal_emit_char.
7004 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7005 (rust_language_data): Delete la_emitchar initializer.
7006 (rust_language::emitchar): New member function, implementation
7007 from rust_emitchar.
7008
1bf9c363
AB
70092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7010
7011 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7012 (ada_language_data): Delete la_post_parser initializer.
7013 (ada_language::post_parser): New member function.
7014 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7015 (cplus_language_data): Likewise.
7016 (asm_language_data): Likewise.
7017 (minimal_language_data): Likewise.
7018 * d-lang.c (d_language_data): Likewise.
7019 * f-lang.c (f_language_data): Likewise.
7020 * go-lang.c (go_language_data): Likewise.
7021 * language.c (unknown_language_data): Likewise.
7022 (auto_language_data): Likewise.
7023 * language.h (language_data): Delete la_post_parser field.
7024 (language_defn::post_parser): New member function.
7025 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7026 * objc-lang.c (objc_language_data): Likewise.
7027 * opencl-lang.c (opencl_language_data): Likewise.
7028 * p-lang.c (pascal_language_data): Likewise.
7029 * parse.c (parse_exp_in_context): Update call to post_parser.
7030 (null_post_parser): Delete definition.
7031 * parser-defs.h (null_post_parser): Delete declaration.
7032 * rust-lang.c (rust_language_data): Delete la_post_parser
7033 initializer.
7034
87afa652
AB
70352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7036
7037 * ada-lang.c (parse): Rename to ada_language::parser.
7038 (ada_language_data): Delete la_parser initializer.
7039 (ada_language::parser): New member function, implementation from
7040 parse.
7041 * c-lang.c (c_language_data): Delete la_parser initializer.
7042 (cplus_language_data): Likewise.
7043 (asm_language_data): Likewise.
7044 (minimal_language_data): Likewise.
7045 * d-lang.c (d_language_data): Likewise.
7046 (d_language::parser): New member function.
7047 * f-lang.c (f_language_data): Delete la_parser initializer.
7048 (f_language::parser): New member function.
7049 * go-lang.c (go_language_data): Delete la_parser initializer.
7050 (go_language::parser): New member function.
7051 * language.c (unk_lang_parser): Delete.
7052 (language_defn::parser): Define new member function.
7053 (unknown_language_data): Delete la_parser initializer.
7054 (unknown_language::parser): New member function.
7055 (auto_language_data): Delete la_parser initializer.
7056 (auto_language::parser): New member function.
7057 * language.h (language_data): Delete la_parser field.
7058 (language_defn::parser): Declare new member function.
7059 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7060 (m2_language::parser): New member function.
7061 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7062 * opencl-lang.c (opencl_language_data): Likewise.
7063 * p-lang.c (pascal_language_data): Likewise.
7064 (pascal_language::parser): New member function.
7065 * parse.c (parse_exp_in_context): Update call to parser.
7066 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7067 (rust_language::parser): New member function.
7068
37825800
AB
70692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7070
7071 * top.c (print_gdb_configuration): Print --with-python-libdir
7072 configuration value.
7073
5b860c93
PW
70742020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7075
7076 * NEWS: Mention change to the alias command.
7077
cf00cd6f
PW
70782020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7079
7080 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7081 (alias_command_completer)
7082 (make_alias_options_def_group): New functions.
7083 (alias_opts, alias_option_defs): New struct and array.
7084 (alias_usage_error): Update usage.
7085 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7086 Use option framework.
7087 (_initialize_cli_cmds): Update alias command help.
7088 Update aliases command help.
7089 (show_user):
7090 Add NULL for new default_args lookup_cmd argument.
7091 (valid_command_p): Rename to validate_aliased_command.
7092 Add NULL for new default_args lookup_cmd argument. Verify that the
7093 aliased_command has no default args.
7094 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7095 (lookup_cmd_1, lookup_cmd): New argument default_args.
7096 (add_alias_cmd):
7097 Add NULL for new default_args lookup_cmd argument.
7098 (print_help_for_command): Show default args under the layout
7099 alias some_alias = some_aliased_cmd some_alias_default_arg.
7100 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7101 xfree default_args in destructor.
7102 * cli/cli-script.c (process_next_line, do_define_command):
7103 Add NULL for new default_args lookup_cmd argument.
7104 * command.h: Declare new default_args argument in lookup_cmd
7105 and lookup_cmd_1.
7106 * completer.c (complete_line_internal_1):
7107 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7108 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7109 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7110 Likewise.
7111 * infcmd.c (_initialize_infcmd): Likewise.
7112 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7113 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7114 * python/py-param.c (add_setshow_generic): Likewise.
7115 * remote.c (_initialize_remote): Likewise.
7116 * top.c (execute_command): Prepend default_args if command has some.
7117 (set_verbose):
7118 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7119 * tracepoint.c (validate_actionline, encode_actions_1):
7120 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7121
bd920864
TBA
71222020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7123
7124 * jit.c (jit_read_descriptor): Use bool as the return type.
7125 (jit_breakpoint_re_set_internal): Use bool as the return type.
7126 Invert the return value logic; return true if the jit breakpoint
7127 has been successfully initialized.
7128 (jit_inferior_init): Update the call to
7129 jit_breakpoint_re_set_internal.
7130
f8098322
PA
71312020-06-22 Pedro Alves <palves@redhat.com>
7132
7133 PR gdb/25939
7134 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7135 Use the current inferior instead. Don't return
7136 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7137 wait again.
7138 * sol-thread.c (sol_thread_target::wait): Don't reference
7139 inferior_ptid.
7140 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7141 (sol_update_thread_list_callback): Use the current inferior's pid
7142 instead of inferior_ptid.
7143
196535a6
RO
71442020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7145
7146 * procfs.c: Cleanup many comments.
7147
7148 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7149 (AFTER_WATCHFLAG): Replace by value.
7150
7151 (MAIN_PROC_NAME_FORMAT): Inline ...
7152 (create_procinfo): ... here.
7153
7154 (procfs_debug_inferior): Remove SYS_exec handling.
7155 (syscall_is_exec): Likewise.
7156 (procfs_set_exec_trap): Likewise.
7157
7158 (syscall_is_lwp_exit): Inline in callers.
7159 (syscall_is_exit): Likewise.
7160 (syscall_is_exec): Likewise.
7161 (syscall_is_lwp_create): Likewise.
7162
7163 (invalidate_cache): Remove #if 0 code.
7164
7165 (make_signal_thread_runnable): Remove.
7166 (procfs_target::resume): Remove #if 0 code.
7167
cf6f3e86
RO
71682020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7169
7170 PR gdb/25939
7171 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7172 call ...
7173 (procfs_target::create_inferior): ... here.
7174
48e9cc84
PW
71752020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7176
7177 * exec.c (validate_exec_file): Ensure the build-id is up to
7178 date by calling reopen_exec_file (that checks file timestamp
7179 to decide to re-read the file).
7180
3922b302
PA
71812020-06-18 Pedro Alves <palves@redhat.com>
7182
7183 PR gdb/25412
7184 * gdbthread.h (delete_thread, delete_thread_silent)
7185 (find_thread_ptid): Update comments.
7186 * thread.c (current_thread_): New global.
7187 (is_current_thread): Move higher, and reimplement.
7188 (inferior_thread): Reimplement.
7189 (set_thread_exited): Use bool. Add assertions.
7190 (add_thread_silent): Simplify thread-reuse handling by always
7191 calling delete_thread.
7192 (delete_thread): Remove intro comment.
7193 (find_thread_ptid): Skip exited threads.
7194 (switch_to_thread_no_regs): Write to current_thread_.
7195 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7196 INFERIOR_PTID. Clear current_thread_.
7197
6dbdab44
PA
71982020-06-18 Pedro Alves <palves@redhat.com>
7199
7200 * aix-thread.c (pd_update): Use switch_to_thread.
7201
2da4b788
PA
72022020-06-18 Pedro Alves <palves@redhat.com>
7203
7204 * ravenscar-thread.c (ravenscar_thread_target): Update.
7205 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7206 (ravenscar_thread_target::add_active_thread): ... this. Don't
7207 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7208 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7209
50838d1b
PA
72102020-06-18 Pedro Alves <palves@redhat.com>
7211
7212 * nat/windows-nat.c (current_windows_thread): Remove.
7213 * nat/windows-nat.h (current_windows_thread): Remove.
7214 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7215 Adjust.
7216 (display_selectors): Adjust to fetch the current
7217 windows_thread_info based on inferior_ptid.
7218 (fake_create_process): No longer write to current_windows_thread.
7219 (windows_nat_target::get_windows_debug_event):
7220 Don't set inferior_ptid or current_windows_thread.
7221 (windows_nat_target::wait): Adjust to not rely on
7222 current_windows_thread.
7223 (do_initial_windows_stuff): Now a method of windows_nat_target.
7224 Switch to the last_ptid thread.
7225 (windows_nat_target::attach): Adjust.
7226 (windows_nat_target::detach): Use switch_to_no_thread instead of
7227 writing to inferior_ptid directly.
7228 (windows_nat_target::create_inferior): Adjust.
7229
31ce04e9
PA
72302020-06-18 Pedro Alves <palves@redhat.com>
7231
7232 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7233
1ee1a363
PA
72342020-06-18 Pedro Alves <palves@redhat.com>
7235
7236 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7237 after creating it, instead of writing to inferior_ptid. Don't
7238 write to inferior_ptid.
7239
6d350754
PA
72402020-06-18 Pedro Alves <palves@redhat.com>
7241
7242 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7243
5d971d48
PA
72442020-06-18 Pedro Alves <palves@redhat.com>
7245
7246 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7247 it, instead of writing to inferior_ptid.
7248
86e57d1b
PA
72492020-06-18 Pedro Alves <palves@redhat.com>
7250
7251 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7252 to inferior_ptid.
7253
f2e1c129
PA
72542020-06-18 Pedro Alves <palves@redhat.com>
7255
7256 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7257 instead of writing to inferior_ptid directly.
7258
60db1b85
PA
72592020-06-18 Pedro Alves <palves@redhat.com>
7260
7261 * corelow.c (core_target::close): Use switch_to_no_thread instead
7262 of writing to inferior_ptid directly.
7263 (add_to_thread_list, core_target_open): Use switch_to_thread
7264 instead of writing to inferior_ptid directly.
7265
fe7d6a8d
PA
72662020-06-18 Pedro Alves <palves@redhat.com>
7267
7268 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7269 inferior_ptid.
7270 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7271 inferior_ptid.
7272 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7273 inferior_ptid directly.
7274 (darwin_nat_target::init_thread_list): Switch to thread, instead
7275 of writing to inferior_ptid.
7276 (darwin_nat_target::attach): Don't write to inferior_ptid.
7277 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7278
975f8708
PA
72792020-06-18 Pedro Alves <palves@redhat.com>
7280
7281 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7282 thread.
7283 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7284 Instead use switch_to_thread.
7285 (gnu_nat_target::detach): Use switch_to_no_thread
7286 instead of writing to inferior_ptid directly. Used passed-in
7287 inferior instead of looking up the inferior by pid.
7288
1a204730
PA
72892020-06-18 Pedro Alves <palves@redhat.com>
7290
7291 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7292 inferior_ptid.
7293
ebe84f23
PA
72942020-06-18 Pedro Alves <palves@redhat.com>
7295
7296 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7297 inferior_ptid.
7298 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7299 thread.
7300 (nto_procfs_target::detach): Avoid referencing
7301 inferior_ptid. Use switch_to_no_thread instead of writing to
7302 inferior_ptid directly.
7303 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7304 instead of writing to inferior_ptid directly.
7305 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7306 to thread.
7307
191f02e5
PA
73082020-06-18 Pedro Alves <palves@redhat.com>
7309
7310 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7311 after creating it, instead of writing to inferior_ptid.
7312 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7313 to inferior_ptid directly.
7314 (gdbsim_target::wait): Don't write to inferior_ptid.
7315
0ac55310
PA
73162020-06-18 Pedro Alves <palves@redhat.com>
7317
7318 * remote.c (remote_target::remote_notice_new_inferior): Use
7319 switch_to_thread instead of writing to inferior_ptid directly.
7320 (remote_target::add_current_inferior_and_thread): Use
7321 switch_to_no_thread instead of writing to inferior_ptid directly.
7322 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7323 and switch_to_thread instead of using set_current_inferior or
7324 writing to inferior_ptid directly.
7325
5233f39b
PA
73262020-06-18 Pedro Alves <palves@redhat.com>
7327
7328 * tracectf.c (ctf_target_open): Switch to added thread instead of
7329 writing to inferior_ptid directly.
7330 (ctf_target::close): Use switch_to_no_thread instead of writing to
7331 inferior_ptid directly.
7332
087e161b
PA
73332020-06-18 Pedro Alves <palves@redhat.com>
7334
7335 * tracefile-tfile.c (tfile_target_open): Don't write to
7336 inferior_ptid directly, instead switch to added thread.
7337 (tfile_target::close): Use switch_to_no_thread instead of writing
7338 to inferior_ptid directly.
7339
7fb43e53
PA
73402020-06-18 Pedro Alves <palves@redhat.com>
7341
7342 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7343 (procfs_target::detach): Use switch_to_no_thread
7344 instead of writing to inferior_ptid directly.
7345 (do_attach): Change return type to void. Switch to the added
7346 thread.
7347 (procfs_target::create_inferior): Switch to the added thread.
7348 (procfs_do_thread_registers): Don't write to inferior_ptid.
7349
18493a00
PA
73502020-06-18 Pedro Alves <palves@redhat.com>
7351
7352 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7353 of writing to inferior_ptid.
7354 (scoped_restore_exited_inferior): Delete.
7355 (handle_vfork_child_exec_or_exit): Simplify using
7356 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7357 instead of writing to inferior_ptid.
7358 (THREAD_STOPPED_BY): Delete.
7359 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7360 (thread_stopped_by_hw_breakpoint): Delete.
7361 (save_waitstatus): Use
7362 scoped_restore_current_thread+switch_to_thread, and call
7363 target_stopped_by_watchpoint instead of
7364 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7365 instead of thread_stopped_by_sw_breakpoint, and
7366 target_stopped_by_hw_breakpoint instead of
7367 thread_stopped_by_hw_breakpoint.
7368 (handle_inferior_event)
7369 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7370 inferior_ptid directly, nor
7371 set_current_inferior/set_current_program_space. Use
7372 switch_to_thread / switch_to_inferior_no_thread instead.
7373
a0776b13
PA
73742020-06-18 Pedro Alves <palves@redhat.com>
7375
7376 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7377 instead of writing to inferior_ptid.
7378
6155c136
PA
73792020-06-18 Pedro Alves <palves@redhat.com>
7380
7381 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7382 added thread.
7383 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7384 to the added thread.
7385 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7386 instead of writing to inferior_ptid.
7387
c5316fc6
PA
73882020-06-18 Pedro Alves <palves@redhat.com>
7389
7390 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7391 (register_to_value_test): Mock a program_space too. Heap-allocate
7392 the address space. Don't write to inferior_ptid. Use
7393 switch_to_thread instead.
7394
8df01799
PA
73952020-06-18 Pedro Alves <palves@redhat.com>
7396
7397 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7398 Delete.
7399 (find_signalled_thread()): New, factored out from
7400 linux_make_corefile_notes and adjusted to handle exited threads.
7401 (linux_make_corefile_notes): Adjust to use the new
7402 find_signalled_thread.
7403
41792d68
PA
74042020-06-18 Pedro Alves <palves@redhat.com>
7405
7406 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7407 of saving/restoring inferior_ptid.
7408
612f258a
TT
74092020-06-17 Tom Tromey <tom@tromey.com>
7410
7411 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7412 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7413 declare.
7414 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7415
efb763a5
SM
74162020-06-15 Simon Marchi <simon.marchi@efficios.com>
7417
7418 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7419 of partial symtabs.
7420
2951f6c0
SM
74212020-06-17 Simon Marchi <simon.marchi@efficios.com>
7422
7423 * regformats/reg-arm.dat: Remove.
7424 * regformats/reg-bfin.dat: Remove.
7425 * regformats/reg-cris.dat: Remove.
7426 * regformats/reg-crisv32.dat: Remove.
7427 * regformats/reg-m32r.dat: Remove.
7428 * regformats/reg-tilegx.dat: Remove.
7429 * regformats/reg-tilegx32.dat: Remove.
7430
7d458ea5
SM
74312020-06-17 Simon Marchi <simon.marchi@efficios.com>
7432
7433 * features/Makefile (WHICH): Remove arm files.
7434 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7435 * regformats/arm/arm-with-neon.dat: Remove.
7436 * regformats/arm/arm-with-vfpv2.dat: Remove.
7437 * regformats/arm/arm-with-vfpv3.dat: Remove.
7438
3af96c0d
SM
74392020-06-17 Simon Marchi <simon.marchi@efficios.com>
7440
7441 * features/Makefile (XMLTOC): Remove rx.xml.
7442
b25e22fd
PA
74432020-06-17 Pedro Alves <palves@redhat.com>
7444
7445 * gdbthread.h (thread_control_state) <trap_expected> Update
7446 comments.
7447
a78a19b1
AB
74482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7449
7450 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7451 ada_language::lookup_symbol_nonlocal.
7452 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7453 (ada_language::lookup_symbol_nonlocal): New member function,
7454 implementation from ada_lookup_symbol_nonlocal.
7455 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7456 initializer.
7457 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7458 initializer.
7459 (cplus_language::lookup_symbol_nonlocal): New member function.
7460 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7461 (minimal_language_data) Likewise.
7462 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7463 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7464 initializer.
7465 (d_language::lookup_symbol_nonlocal): New member function.
7466 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7467 initializer.
7468 (f_language::lookup_symbol_nonlocal): New member function.
7469 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7470 initializer.
7471 * language.c (unknown_language_data): Likewise.
7472 (auto_language_data): Likewise.
7473 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7474 field.
7475 (language_defn::lookup_symbol_nonlocal): New member function.
7476 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7477 initializer.
7478 * objc-lang.c (objc_language_data): Likewise.
7479 * opencl-lang.c (opencl_language_data): Likewise.
7480 * p-lang.c (pascal_language_data): Likewise.
7481 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7482 rust_language::lookup_symbol_nonlocal.
7483 (rust_language_data): Delete la_lookup_symbol_nonlocal
7484 initializer.
7485 (rust_language::lookup_symbol_nonlocal): New member function,
7486 implementation from rust_lookup_symbol_nonlocal.
7487 * symtab.c (lookup_symbol_aux): Update call to
7488 lookup_symbol_nonlocal.
7489 (basic_lookup_symbol_nonlocal): Rename to...
7490 (language_defn::lookup_symbol_nonlocal): ...this, and update
7491 header comment. Remove language_defn parameter, and replace with
7492 uses of `this'.
7493 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7494
ebe2334e
AB
74952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7496
7497 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7498 initializer.
7499 (ada_language::value_print_inner): New member function.
7500 * c-lang.c (c_language_data): Delete la_value_print_inner
7501 initializer.
7502 (cplus_language_data): Likewise.
7503 (asm_language_data): Likewise.
7504 (minimal_language_data): Likewise.
7505 * d-lang.c (d_language_data): Likewise.
7506 (d_language::value_print_inner): New member function.
7507 * f-lang.c (f_language_data): Delete la_value_print_inner
7508 initializer.
7509 (f_language::value_print_inner): New member function.
7510 * f-lang.h (f_value_print_innner): Rename to...
7511 (f_value_print_inner): ...this (note spelling of 'inner').
7512 * f-valprint.c (f_value_print_innner): Rename to...
7513 (f_value_print_inner): ...this (note spelling of 'inner').
7514 * go-lang.c (go_language_data): Delete la_value_print_inner
7515 initializer.
7516 (go_language::value_print_inner): New member function.
7517 * language.c (language_defn::value_print_inner): Define new member
7518 function.
7519 (unk_lang_value_print_inner): Delete.
7520 (unknown_language_data): Delete la_value_print_inner initializer.
7521 (unknown_language::value_print_inner): New member function.
7522 (auto_language_data): Delete la_value_print_inner initializer.
7523 (auto_language::value_print_inner): New member function.
7524 * language.h (language_data): Delete la_value_print_inner field.
7525 (language_defn::value_print_inner): Delcare new member function.
7526 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7527 initializer.
7528 (m2_language::value_print_inner): New member function.
7529 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7530 initializer.
7531 * opencl-lang.c (opencl_language_data): Likewise.
7532 * p-lang.c (pascal_language_data): Likewise.
7533 (pascal_language::value_print_inner): New member function.
7534 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7535 initializer.
7536 (rust_language::value_print_inner): New member function.
7537 * valprint.c (do_val_print): Update call to value_print_inner.
7538
a1d1fa3e
AB
75392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7540
7541 * ada-lang.c (ada_language_data): Delete la_value_print
7542 initializer.
7543 (ada_language::value_print): New member function.
7544 * c-lang.c (c_language_data): Delete la_value_print initializer.
7545 (cplus_language_data): Likewise.
7546 (asm_language_data): Likewise.
7547 (minimal_language_data): Likewise.
7548 * d-lang.c (d_language_data): Likewise.
7549 * f-lang.c (f_language_data): Likewise.
7550 * go-lang.c (go_language_data): Likewise.
7551 * language.c (unk_lang_value_print): Delete.
7552 (language_defn::value_print): Define new member function.
7553 (unknown_language_data): Delete la_value_print initializer.
7554 (unknown_language::value_print): New member function.
7555 (auto_language_data): Delete la_value_print initializer.
7556 (auto_language::value_print): New member function.
7557 * language.h (language_data): Delete la_value_print field.
7558 (language_defn::value_print): Declare new member function.
7559 (LA_VALUE_PRINT): Update call to value_print.
7560 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7561 * objc-lang.c (objc_language_data): Likewise.
7562 * opencl-lang.c (opencl_language_data): Likewise.
7563 * p-lang.c (pascal_language_data): Likewise.
7564 (pascal_language::value_print): New member function.
7565 * rust-lang.c (rust_language_data): Delete la_value_print
7566 initializer.
7567
f16a9f57
AB
75682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7569
7570 * ada-lang.c (ada_watch_location_expression): Rename to
7571 ada_language::watch_location_expression.
7572 (ada_language_data): Delete la_watch_location_expression
7573 initializer.
7574 (ada_language::watch_location_expression): New member function,
7575 implementation from ada_watch_location_expression.
7576 * breakpoint.c (watch_command_1): Update call to
7577 watch_location_expression.
7578 * c-lang.c (c_watch_location_expression): Rename to
7579 language_defn::watch_location_expression.
7580 (c_language_data): Delete la_watch_location_expression
7581 initializer.
7582 (cplus_language_data): Likewise.
7583 (asm_language_data): Likewise.
7584 (minimal_language_data): Likewise.
7585 * c-lang.h (c_watch_location_expression): Delete declaration.
7586 * d-lang.c (d_language_data): Delete la_watch_location_expression
7587 initializer.
7588 * f-lang.c (f_language_data): Likewise.
7589 * go-lang.c (go_language_data): Likewise.
7590 * language.c (language_defn::watch_location_expression): Member
7591 function implementation from c_watch_location_expression.
7592 (unknown_language_data): Delete la_watch_location_expression
7593 initializer.
7594 (auto_language_data): Likewise.
7595 * language.h (language_data): Delete la_watch_location_expression
7596 field.
7597 (language_defn::watch_location_expression): Declare new member
7598 function.
7599 * m2-lang.c (m2_language_data): Delete
7600 la_watch_location_expression initializer.
7601 * objc-lang.c (objc_language_data): Likewise.
7602 * opencl-lang.c (opencl_language_data): Likewise.
7603 * p-lang.c (pascal_language_data): Likewise.
7604 * rust-lang.c (rust_watch_location_expression): Rename to
7605 rust_language::watch_location_expression.
7606 (rust_language_data): Delete la_watch_location_expression
7607 initializer.
7608 (rust_language::watch_location_expression): New member function,
7609 implementation from rust_watch_location_expression.
7610
7e56227d
AB
76112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7612
7613 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7614 ada_language::collect_symbol_completion_matches.
7615 (ada_language_data): Delete la_collect_symbol_completion_matches
7616 initializer.
7617 (ada_language::collect_symbol_completion_matches): New member
7618 function, implementation from
7619 ada_collect_symbol_completion_matches.
7620 * c-lang.c (c_language_data): Delete
7621 la_collect_symbol_completion_matches initializer.
7622 (cplus_language_data): Likewise.
7623 (asm_language_data): Likewise.
7624 (minimal_language_data): Likewise.
7625 * d-lang.c (d_language_data): Likewise.
7626 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7627 f_language::collect_symbol_completion_matches.
7628 (f_language_data): Delete la_collect_symbol_completion_matches
7629 initializer.
7630 (f_language::collect_symbol_completion_matches) New member
7631 function, implementation from f_collect_symbol_completion_matches.
7632 * go-lang.c (go_language_data): Delete
7633 la_collect_symbol_completion_matches initializer.
7634 * language.c (unknown_language_data): Likewise.
7635 (auto_language_data): Likewise.
7636 * language.h (language_data): Delete
7637 la_collect_symbol_completion_matches field.
7638 (language_defn::collect_symbol_completion_matches): New member
7639 function.
7640 * m2-lang.c (m2_language_data): Delete
7641 la_collect_symbol_completion_matches initializer.
7642 * objc-lang.c (objc_language_data): Likewise.
7643 * opencl-lang.c (opencl_language_data): Likewise.
7644 * p-lang.c (pascal_language_data): Likewise.
7645 * rust-lang.c (rust_language_data): Likewise.
7646 * symtab.c (default_collect_symbol_completion_matches): Delete.
7647 (collect_symbol_completion_matches): Update call to
7648 collect_symbol_completion_matches.
7649 (collect_symbol_completion_matches_type): Likewise.
7650 * symtab.h (default_collect_symbol_completion_matches): Delete
7651 declaration.
7652
53fc67f8
AB
76532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7654
7655 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7656 (ada_language_data): Delete la_word_break_characters initializer.
7657 (ada_language::word_break_characters): New member function.
7658 * c-lang.c (c_language_data): Delete la_word_break_characters
7659 initializer.
7660 (cplus_language_data): Likewise.
7661 (asm_language_data): Likewise.
7662 (minimal_language_data): Likewise.
7663 * completer.c: Update global comment.
7664 (advance_to_expression_complete_word_point): Update call to
7665 word_break_characters.
7666 (complete_files_symbols): Likewise.
7667 (complete_line_internal_1): Likewise.
7668 (default_completer_handle_brkchars): Likewise.
7669 (skip_quoted_chars): Likewise.
7670 * d-lang.c (d_language_data): Delete la_word_break_characters
7671 initializer.
7672 * f-lang.c (f_word_break_characters): Delete.
7673 (f_language_data): Delete la_word_break_characters initializer.
7674 (f_language::word_break_characters): New member function.
7675 * go-lang.c (go_language_data): Delete la_word_break_characters
7676 initializer.
7677 * language.c (unknown_language_data): Likewise.
7678 (auto_language_data): Likewise.
7679 * language.h (default_word_break_characters): Move declaration to
7680 earlier in the file.
7681 (language_data): Delete la_word_break_characters field.
7682 (language_defn::word_break_characters): New member function.
7683 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7684 initializer.
7685 * objc-lang.c (objc_language_data): Likewise.
7686 * opencl-lang.c (opencl_language_data): Likewise.
7687 * p-lang.c (pascal_language_data): Likewise.
7688 * rust-lang.c (rust_language_data): Likewise.
7689
c9debfb9
AB
76902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7691
7692 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7693 (ada_language_data): Delete la_get_symbol_name_matcher
7694 initializer.
7695 (language_defn::get_symbol_name_matcher_inner): New member
7696 function.
7697 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7698 initializer.
7699 (cplus_language_data): Likewise.
7700 (cplus_language::get_symbol_name_matcher_inner): New member
7701 function.
7702 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7703 (minimal_language_data): Likewise.
7704 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7705 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7706 initializer.
7707 * dictionary.c (iter_match_first_hashed): Update call to
7708 get_symbol_name_matcher.
7709 (iter_match_next_hashed): Likewise.
7710 (iter_match_next_linear): Likewise.
7711 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7712 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7713 initializer.
7714 (f_language::get_symbol_name_matcher_inner): New member function.
7715 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7716 initializer.
7717 * language.c (default_symbol_name_matcher): Update header comment,
7718 make static.
7719 (language_defn::get_symbol_name_matcher): New definition.
7720 (language_defn::get_symbol_name_matcher_inner): Likewise.
7721 (get_symbol_name_matcher): Delete.
7722 (unknown_language_data): Delete la_get_symbol_name_matcher
7723 initializer.
7724 (auto_language_data): Likewise.
7725 * language.h (language_data): Delete la_get_symbol_name_matcher
7726 field.
7727 (language_defn::get_symbol_name_matcher): New member function.
7728 (language_defn::get_symbol_name_matcher_inner): Likewise.
7729 (default_symbol_name_matcher): Delete declaration.
7730 * linespec.c (find_methods): Update call to
7731 get_symbol_name_matcher.
7732 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7733 initializer.
7734 * minsyms.c (lookup_minimal_symbol): Update call to
7735 get_symbol_name_matcher.
7736 (iterate_over_minimal_symbols): Likewise.
7737 * objc-lang.c (objc_language_data): Delete
7738 la_get_symbol_name_matcher initializer.
7739 * opencl-lang.c (opencl_language_data): Likewise.
7740 * p-lang.c (pascal_language_data): Likewise.
7741 * psymtab.c (psymbol_name_matches): Update call to
7742 get_symbol_name_matcher.
7743 * rust-lang.c (rust_language_data): Delete
7744 la_get_symbol_name_matcher initializer.
7745 * symtab.c (symbol_matches_search_name): Update call to
7746 get_symbol_name_matcher.
7747 (compare_symbol_name): Likewise.
7748
9a49ad8c
AB
77492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7750
7751 * ada-lang.c (ada_language_data): Delete la_compute_program
7752 initializer.
7753 * c-lang.c (c_language_data): Likewise.
7754 (c_language::compute_program): New member function.
7755 (cplus_language_data): Delete la_compute_program initializer.
7756 (cplus_language::compute_program): New member function.
7757 (asm_language_data): Delete la_compute_program initializer.
7758 (minimal_language_data): Likewise.
7759 * c-lang.h (c_compute_program): Update comment.
7760 (cplus_compute_program): Likewise.
7761 * compile/compile-c-support.c (c_compute_program): Likewise.
7762 (cplus_compute_program): Likewise.
7763 * compile/compile.c (compile_to_object): Update call to
7764 la_compute_program.
7765 * d-lang.c (d_language_data): Delete la_compute_program
7766 initializer.
7767 * f-lang.c (f_language_data): Likewise.
7768 * go-lang.c (go_language_data): Likewise.
7769 * language.c (unknown_language_data): Likewise.
7770 (auto_language_data): Likewise.
7771 * language.h (language_data): Delete la_compute_program field.
7772 (language_defn::compute_program): New member function.
7773 * m2-lang.c (m2_language_data): Delete la_compute_program
7774 initializer.
7775 * objc-lang.c (objc_language_data): Likewise.
7776 * opencl-lang.c (opencl_language_data): Likewise.
7777 * p-lang.c (pascal_language_data): Likewise.
7778 * rust-lang.c (rust_language_data): Likewise.
7779
eff93b4d
AB
77802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7781
7782 * ada-lang.c (ada_language_data) Delete
7783 la_class_name_from_physname initializer.
7784 * c-lang.c (c_language_data): Likewise.
7785 (cplus_language_data): Likewise.
7786 (cplus_language::class_name_from_physname): New member function.
7787 (asm_language_data): Delete la_class_name_from_physname
7788 initializer.
7789 (minimal_language_data): Likewise.
7790 * d-lang.c (d_language_data): Likewise.
7791 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7792 method on language_defn class.
7793 (guess_full_die_structure_name): Likewise.
7794 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7795 initializer.
7796 * go-lang.c (go_language_data): Likewise.
7797 * language.c (language_class_name_from_physname): Delete.
7798 (unk_lang_class_name): Delete.
7799 (unknown_language_data): Delete la_class_name_from_physname
7800 initializer.
7801 (auto_language_data): Likewise.
7802 * language.h (language_data): Delete la_class_name_from_physname
7803 field.
7804 (language_defn::class_name_from_physname): New function.
7805 (language_class_name_from_physname): Delete declaration.
7806 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7807 initializer.
7808 * objc-lang.c (objc_language_data): Likewise.
7809 * opencl-lang.c (opencl_language_data): Likewise.
7810 * p-lang.c (pascal_language_data): Likewise.
7811 * rust-lang.c (rust_language_data): Likewise.
7812
de543742
TT
78132020-06-16 Tom Tromey <tom@tromey.com>
7814
7815 * tui/tui-data.h (STATUS_NAME): New macro.
7816 * tui/tui-layout.c (tui_remove_some_windows)
7817 (initialize_known_windows, tui_register_window)
7818 (tui_layout_split::remove_windows, initialize_layouts)
7819 (tui_new_layout_command): Don't use hard-coded window names.
7820
a350efd4
TT
78212020-06-16 Tom Tromey <tom@tromey.com>
7822
7823 PR tui/25348:
7824 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7825 tui_initialize_readline. Only run once. Call rl_initialize.
7826 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7827 tui_initialize_readline.
7828 * tui/tui-io.c (tui_setup_io): Call
7829 tui_ensure_readline_initialized.
7830 * tui/tui-interp.c (tui_interp::init): Update.
7831
39ec0490
TT
78322020-06-16 Tom Tromey <tom@tromey.com>
7833
7834 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7835 Also preserve the status window.
7836
d2d1ea20
TT
78372020-06-16 Tom Tromey <tom@tromey.com>
7838
7839 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7840 where m_window==nullptr.
7841
66920317
TT
78422020-06-15 Tom Tromey <tromey@adacore.com>
7843
7844 * windows-nat.c (windows_nat::handle_output_debug_string):
7845 Update.
7846 (windows_nat::handle_ms_vc_exception): Update.
7847 * target.h (target_read_string): Change API.
7848 * target.c (target_read_string): Change API.
7849 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7850 Update.
7851 * solib-frv.c (frv_current_sos): Update.
7852 * solib-dsbt.c (dsbt_current_sos): Update.
7853 * solib-darwin.c (darwin_current_sos): Update.
7854 * linux-thread-db.c (inferior_has_bug): Update.
7855 * expprint.c (print_subexp_standard): Update.
7856 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7857 (ada_exception_message_1): Update.
7858
a5d871dd
TT
78592020-06-15 Tom Tromey <tromey@adacore.com>
7860
7861 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7862
670e35fa
TT
78632020-06-15 Tom Tromey <tromey@adacore.com>
7864
7865 * valprint.c (read_string): Update comment.
7866 * target.c (MIN): Remove.
7867 (target_read_string): Rewrite.
7868
f5272a3b
TT
78692020-06-15 Tom Tromey <tromey@adacore.com>
7870
7871 * corefile.c (read_memory_string): Remove.
7872 * ada-valprint.c (ada_value_print_ptr): Update.
7873 * ada-lang.h (ada_tag_name): Change return type.
7874 * ada-lang.c (type_from_tag): Update.
7875 (ada_tag_name_from_tsd): Change return type. Use
7876 target_read_string.
7877 (ada_tag_name): Likewise.
7878 * gdbcore.h (read_memory_string): Don't declare.
7879
2c074f49
HD
78802020-06-14 Hannes Domani <ssbssa@yahoo.de>
7881
7882 * symtab.c (rbreak_command): Ignore Windows drive colon.
7883
6a17d503
SM
78842020-06-12 Simon Marchi <simon.marchi@efficios.com>
7885
7886 * NEWS: Mention removed GDBserver host support.
7887
453c733f
NC
78882020-06-12 Nelson Chu <nelson.chu@sifive.com>
7889
7890 * features/riscv/rebuild-csr-xml.sh: Updated.
7891
2b4e6a3f
TT
78922020-06-11 Tom Tromey <tom@tromey.com>
7893
7894 PR gdb/18318:
7895 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7896
4412332f
JG
78972020-06-09 Jonny Grant <jg@jguk.org>
78982020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7899
7900 * main.c (captured_main_1): Don't print new line after help.
7901 (print_gdb_help): add mailing list and IRC channel information
7902 to --help. Add new lines between items in the footer. Remove
7903 quotes around bug url.
7904
2f33032a
KS
79052020-06-11 Keith Seitz <keiths@redhat.com>
7906
7907 PR gdb/21356
7908 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7909 Resolve typedefs for type length calculations.
7910
7ab96794
TV
79112020-06-10 Tom de Vries <tdevries@suse.de>
7912
7913 PR ada/24713
7914 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7915 (write_psymbols): Enable .gdb_index for ada.
7916 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7917 ada.
7918
e5f3ece2
TV
79192020-06-10 Tom de Vries <tdevries@suse.de>
7920
7921 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7922 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7923 namei" instead of "const char *name" argument.
7924 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7925 dw2_symtab_iter_init.
7926
940da03e
SM
79272020-06-08 Simon Marchi <simon.marchi@efficios.com>
7928
7929 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7930 to use type::field and field::type instead.
7931
b6cdac4b
SM
79322020-06-08 Simon Marchi <simon.marchi@efficios.com>
7933
7934 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7935 to use field::type instead.
7936
5d14b6e5
SM
79372020-06-08 Simon Marchi <simon.marchi@efficios.com>
7938
7939 * gdbtypes.h (struct field) <type, set_type>: New methods.
7940 Rename `type` field to...
7941 <m_type>: ... this. Change references throughout to use type or
7942 set_type methods.
7943 (FIELD_TYPE): Use field::type. Change call sites that modify
7944 the field's type to use field::set_type instead.
7945
3d967001
SM
79462020-06-08 Simon Marchi <simon.marchi@efficios.com>
7947
7948 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7949 to use type::index_type instead.
7950
262abc0d
SM
79512020-06-08 Simon Marchi <simon.marchi@efficios.com>
7952
7953 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7954 methods.
7955 (TYPE_INDEX_TYPE): Use type::index_type.
7956 * gdbtypes.c (create_array_type_with_stride): Likewise.
7957
82836c92
TT
79582020-06-07 Tom Tromey <tom@tromey.com>
7959
7960 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7961 parameter.
7962 (generic_value_print): Update.
7963
940dace9
AB
79642020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7965
7966 Revert commit 982a38f60b0.
7967 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7968
982a38f6
AB
79692020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7970
7971 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7972 avoid use after free.
7973
82f06518
TV
79742020-06-05 Tom de Vries <tdevries@suse.de>
7975
7976 * NEWS: Fix typos.
7977
f8c41851
SM
79782020-06-04 Simon Marchi <simon.marchi@efficios.com>
7979
7980 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7981 the per_bfd object.
7982 (dwarf2_read_debug_names): Likewise.
7983 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7984 object when re-using a per_bfd object with an index.
7985
f9b5d5ea
TV
79862020-06-03 Tom de Vries <tdevries@suse.de>
7987
7988 PR symtab/26046
7989 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7990 children for C++.
7991 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7992 DW_TAG_subprogram.
7993
f6eee2d0
AB
79942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7995
7996 * ada-lang.c (ada_language_data): Delete skip_trampoline
7997 initializer.
7998 * c-lang.c (c_language_data): Likewise.
7999 (cplus_language_data): Likewise.
8000 (cplus_language::skip_trampoline): New member function.
8001 (asm_language_data): Delete skip_trampoline initializer.
8002 (minimal_language_data): Likewise.
8003 * d-lang.c (d_language_data): Likewise.
8004 * f-lang.c (f_language_data): Likewise.
8005 * go-lang.c (go_language_data): Likewise.
8006 * language.c (unk_lang_trampoline): Delete function.
8007 (skip_language_trampoline): Update.
8008 (unknown_language_data): Delete skip_trampoline initializer.
8009 (auto_language_data): Likewise.
8010 * language.h (language_data): Delete skip_trampoline field.
8011 (language_defn::skip_trampoline): New function.
8012 * m2-lang.c (m2_language_data): Delete skip_trampoline
8013 initializer.
8014 * objc-lang.c (objc_skip_trampoline): Delete function, move
8015 implementation to objc_language::skip_trampoline.
8016 (objc_language_data): Delete skip_trampoline initializer.
8017 (objc_language::skip_trampoline): New member function with
8018 implementation from objc_skip_trampoline.
8019 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8020 initializer.
8021 * p-lang.c (pascal_language_data): Likewise.
8022 * rust-lang.c (rust_language_data): Likewise.
8023
0a50df5d
AB
80242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8025
8026 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8027 (ada_language::demangle): New member function.
8028 * c-lang.c (c_language_data): Delete la_demangle initializer.
8029 (cplus_language_data): Delete la_demangle initializer.
8030 (cplus_language::demangle): New member function.
8031 (asm_language_data): Delete la_demangle initializer.
8032 (minimal_language_data): Delete la_demangle initializer.
8033 * d-lang.c (d_language_data): Delete la_demangle initializer.
8034 (d_language::demangle): New member function.
8035 * f-lang.c (f_language_data): Delete la_demangle initializer.
8036 (f_language::demangle): New member function.
8037 * go-lang.c (go_language_data): Delete la_demangle initializer.
8038 (go_language::demangle): New member function.
8039 * language.c (language_demangle): Update.
8040 (unk_lang_demangle): Delete.
8041 (unknown_language_data): Delete la_demangle initializer.
8042 (unknown_language::demangle): New member function.
8043 (auto_language_data): Delete la_demangle initializer.
8044 (auto_language::demangle): New member function.
8045 * language.h (language_data): Delete la_demangle field.
8046 (language_defn::demangle): New function.
8047 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8048 * objc-lang.c (objc_language_data): Delete la_demangle
8049 initializer.
8050 (objc_language::demangle): New member function.
8051 * opencl-lang.c (opencl_language_data): Delete la_demangle
8052 initializer.
8053 * p-lang.c (pascal_language_data): Likewise.
8054 * rust-lang.c (rust_language_data): Likewise.
8055 (rust_language::demangle): New member function.
8056
fbfb0a46
AB
80572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8058
8059 * ada-lang.c (ada_language_data): Delete la_print_type
8060 initializer.
8061 (ada_language::print_type): New member function.
8062 * c-lang.c (c_language_data): Delete la_print_type initializer.
8063 (c_language::print_type): New member function.
8064 (cplus_language_data): Delete la_print_type initializer.
8065 (cplus_language::print_type): New member function.
8066 (asm_language_data): Delete la_print_type initializer.
8067 (asm_language::print_type): New member function.
8068 (minimal_language_data): Delete la_print_type initializer.
8069 (minimal_language::print_type): New member function.
8070 * d-lang.c (d_language_data): Delete la_print_type initializer.
8071 (d_language::print_type): New member function.
8072 * f-lang.c (f_language_data): Delete la_print_type initializer.
8073 (f_language::print_type): New member function.
8074 * go-lang.c (go_language_data): Delete la_print_type initializer.
8075 (go_language::print_type): New member function.
8076 * language.c (unk_lang_print_type): Delete.
8077 (unknown_language_data): Delete la_print_type initializer.
8078 (unknown_language::print_type): New member function.
8079 (auto_language_data): Delete la_print_type initializer.
8080 (auto_language::print_type): New member function.
8081 * language.h (language_data): Delete la_print_type field.
8082 (language_defn::print_type): New function.
8083 (LA_PRINT_TYPE): Update.
8084 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8085 (m2_language::print_type): New member function.
8086 * objc-lang.c (objc_language_data): Delete la_print_type
8087 initializer.
8088 (objc_language::print_type): New member function.
8089 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8090 to opencl_language::print_type.
8091 (opencl_language_data): Delete la_print_type initializer.
8092 (opencl_language::print_type): New member function, implementation
8093 from opencl_print_type.
8094 * p-lang.c (pascal_language_data): Delete la_print_type
8095 initializer.
8096 (pascal_language::print_type): New member function.
8097 * rust-lang.c (rust_print_type): Delete, implementation moved to
8098 rust_language::print_type.
8099 (rust_language_data): Delete la_print_type initializer.
8100 (rust_language::print_type): New member function, implementation
8101 from rust_print_type.
8102
6f827019
AB
81032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8104
8105 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8106 implementation moves to...
8107 (ada_language::sniff_from_mangled_name): ...here. Update return
8108 type.
8109 (ada_language_data): Delete la_sniff_from_mangled_name
8110 initializer.
8111 * c-lang.c (c_language_data): Likewise.
8112 (cplus_language_data): Likewise.
8113 (cplus_language::sniff_from_mangled_name): New member function,
8114 implementation taken from gdb_sniff_from_mangled_name.
8115 (asm_language_data): Delete la_sniff_from_mangled_name
8116 initializer.
8117 (minimal_language_data): Likewise.
8118 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8119 implementation moves to cplus_language::sniff_from_mangled_name.
8120 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8121 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8122 moves to...
8123 (d_language::sniff_from_mangled_name): ...here.
8124 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8125 * f-lang.c (f_language_data): Likewise.
8126 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8127 moves to...
8128 (go_language::sniff_from_mangled_name): ...here.
8129 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8130 * language.c (language_sniff_from_mangled_name): Delete.
8131 (unknown_language_data): Delete la_sniff_from_mangled_name
8132 initializer.
8133 (auto_language_data): Likewise.
8134 * language.h (language_data): Delete la_sniff_from_mangled_name
8135 field.
8136 (language_defn::sniff_from_mangled_name): New function.
8137 (language_sniff_from_mangled_name): Delete declaration.
8138 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8139 field.
8140 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8141 implementation moves to...
8142 (objc_language::sniff_from_mangled_name): ...here.
8143 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8144 * opencl-lang.c (opencl_language_data): Likewise.
8145 * p-lang.c (pascal_language_data): Likewise.
8146 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8147 implementation moves to...
8148 (rust_language::sniff_from_mangled_name): ...here.
8149 (rust_language_data): Delete la_sniff_from_mangled_name
8150 initializer.
8151 * symtab.c (symbol_find_demangled_name): Call
8152 sniff_from_mangled_name member function.
8153
fb8006fd
AB
81542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8155
8156 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8157 initializer.
8158 * c-lang.c (c_language_data): Likewise.
8159 (cplus_language_data): Likewise.
8160 (cplus_language::search_name_hash): New member function.
8161 (asm_language_data): Delete la_search_name_hash initializer.
8162 (minimal_language_data): Likewise.
8163 * d-lang.c (d_language_data): Likewise.
8164 * dictionary.c (default_search_name_hash): Rename to...
8165 (language_defn::search_name_hash): ...this.
8166 * f-lang.c (f_language_data): Likewise.
8167 (f_language::search_name_hash): New member function.
8168 * go-lang.c (go_language_data): Delete la_search_name_hash
8169 initializer.
8170 * language.c (unknown_language_data): Likewise.
8171 (auto_language_data): Likewise.
8172 * language.h (struct language_data): Delete la_search_name_hash
8173 field.
8174 (language_defn::search_name_hash): Declare new member function.
8175 (default_search_name_hash): Delete declaration.
8176 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8177 initializer.
8178 * objc-lang.c (objc_language_data): Likewise.
8179 * opencl-lang.c (opencl_language_data): Likewise.
8180 * p-lang.c (pascal_language_data): Likewise.
8181 * rust-lang.c (rust_language_data): Likewise.
8182 * symtab.c (search_name_hash): Update call.
8183
8e25bafe
AB
81842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8185
8186 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8187 initializer.
8188 * c-lang.c (class compile_instance): Declare.
8189 (c_language_data): Delete la_get_compile_instance initializer.
8190 (c_language::get_compile_instance): New member function.
8191 (cplus_language_data): Delete la_get_compile_instance initializer.
8192 (cplus_language::get_compile_instance): New member function.
8193 (asm_language_data): Delete la_get_compile_instance initializer.
8194 (minimal_language_data): Likewise.
8195 * c-lang.h (c_get_compile_context): Update comment.
8196 (cplus_get_compile_context): Update comment.
8197 * compile/compile.c (compile_to_object): Update calls, don't rely
8198 on function pointer being NULL.
8199 * d-lang.c (d_language_data): Delete la_get_compile_instance
8200 initializer.
8201 * f-lang.c (f_language_data): Likewise.
8202 * go-lang.c (go_language_data): Likewise.
8203 * language.c (unknown_language_data): Likewise.
8204 (auto_language_data): Likewise.
8205 * language.h (language_data): Delete la_get_compile_instance field.
8206 (language_defn::get_compile_instance): New member function.
8207 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8208 initializer.
8209 * objc-lang.c (objc_language_data): Likewise.
8210 * opencl-lang.c (opencl_language_data): Likewise.
8211 * p-lang.c (pascal_language_data): Likewise.
8212 * rust-lang.c (rust_language_data): Likewise.
8213
4009ee92
AB
82142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8215
8216 * ada-lang.c (ada_add_all_symbols): Update comment.
8217 (ada_iterate_over_symbols): Delete, move implementation to...
8218 (ada_language::iterate_over_symbols): ...here, a new member
8219 function, rewrite to use range based for loop.
8220 (ada_language_data): Delete la_iterate_over_symbols initializer.
8221 * c-lang.c (c_language_data): Likewise.
8222 (cplus_language_data): Likewise.
8223 (asm_language_data): Likewise.
8224 (minimal_language_data): Likewise.
8225 * d-lang.c (d_language_data): Likewise.
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_iterate_over_symbols field.
8231 (language_defn::iterate_over_symbols): New member function.
8232 (LA_ITERATE_OVER_SYMBOLS): Update.
8233 * linespec.c (iterate_over_all_matching_symtabs): Update.
8234 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8235 initializer.
8236 * objc-lang.c (objc_language_data): Likewise.
8237 * opencl-lang.c (opencl_language_data): Likewise.
8238 * p-lang.c (pascal_language_data): Likewise.
8239 * rust-lang.c (rust_language_data): Likewise.
8240
54f4ca46
AB
82412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8242
8243 * ada-lang.c (ada_language_data): Delete
8244 la_lookup_transparent_type initializer.
8245 * c-lang.c (c_language_data): Likewise.
8246 (cplus_language_data): Likewise.
8247 (cplus_language::lookup_transparent_type): New member function.
8248 (asm_language_data): Delete la_lookup_transparent_type
8249 initializer.
8250 (minimal_language_data): Likewise.
8251 * d-lang.c (d_language_data): Likewise.
8252 * f-lang.c (f_language_data): Likewise.
8253 * go-lang.c (go_language_data): Likewise.
8254 * language.c (unknown_language_data): Likewise.
8255 (auto_language_data): Likewise.
8256 * language.h (struct language_data): Delete
8257 la_lookup_transparent_type field.
8258 (language_defn::lookup_transparent_type): New member function.
8259 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
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 * symtab.c (symbol_matches_domain): Update call.
8266
1fb314aa
AB
82672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8268
8269 * ada-lang.c (ada_language_arch_info): Delete function, move
8270 implementation to...
8271 (ada_language::language_arch_info): ...here, a new member
8272 function.
8273 (ada_language_data): Delete la_language_arch_info.
8274 * c-lang.c (c_language_data): Likewise.
8275 (c_language::language_arch_info): New member function.
8276 (cplus_language_arch_info): Delete function, move
8277 implementation to...
8278 (cplus_language::language_arch_info): ...here, a new member
8279 function.
8280 (cplus_language_data): Delete la_language_arch_info.
8281 (asm_language_data): Likewise.
8282 (asm_language::language_arch_info): New member function.
8283 (minimal_language_data): Delete la_language_arch_info.
8284 (minimal_language::language_arch_info): New member function.
8285 * d-lang.c (d_language_arch_info): Delete function, move
8286 implementation to...
8287 (d_language::language_arch_info): ...here, a new member
8288 function.
8289 (d_language_data): Delete la_language_arch_info.
8290 * f-lang.c (f_language_arch_info): Delete function, move
8291 implementation to...
8292 (f_language::language_arch_info): ...here, a new member
8293 function.
8294 (f_language_data): Delete la_language_arch_info.
8295 * go-lang.c (go_language_arch_info): Delete function, move
8296 implementation to...
8297 (go_language::language_arch_info): ...here, a new member
8298 function.
8299 (go_language_data): Delete la_language_arch_info.
8300 * language.c (unknown_language_data): Likewise.
8301 (unknown_language::language_arch_info): New member function.
8302 (auto_language_data): Delete la_language_arch_info.
8303 (auto_language::language_arch_info): New member function.
8304 (language_gdbarch_post_init): Update call to
8305 la_language_arch_info.
8306 * language.h (language_data): Delete la_language_arch_info
8307 function pointer.
8308 (language_defn::language_arch_info): New function.
8309 * m2-lang.c (m2_language_arch_info): Delete function, move
8310 implementation to...
8311 (m2_language::language_arch_info): ...here, a new member
8312 function.
8313 (m2_language_data): Delete la_language_arch_info.
8314 * objc-lang.c (objc_language_arch_info): Delete function, move
8315 implementation to...
8316 (objc_language::language_arch_info): ...here, a new member
8317 function.
8318 (objc_language_data): Delete la_language_arch_info.
8319 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8320 implementation to...
8321 (opencl_language::language_arch_info): ...here, a new member
8322 function.
8323 (opencl_language_data): Delete la_language_arch_info.
8324 * p-lang.c (pascal_language_arch_info): Delete function, move
8325 implementation to...
8326 (pascal_language::language_arch_info): ...here, a new member
8327 function.
8328 (pascal_language_data): Delete la_language_arch_info.
8329 * rust-lang.c (rust_language_arch_info): Delete function, move
8330 implementation to...
8331 (rust_language::language_arch_info): ...here, a new member
8332 function.
8333 (rust_language_data): Delete la_language_arch_info.
8334
48448202
AB
83352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8336
8337 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8338 initializer.
8339 * c-lang.c (c_language_data): Likewise.
8340 (cplus_language_data): Likewise.
8341 (cplus_language::pass_by_reference_info): New method.
8342 (asm_language_data): Delete la_pass_by_reference initializer.
8343 (minimal_language_data): Likewise.
8344 * cp-abi.c (cp_pass_by_reference): Remove use of
8345 default_pass_by_reference.
8346 * d-lang.c (d_language_data): Likewise.
8347 * f-lang.c (f_language_data): Likewise.
8348 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8349 default_pass_by_reference.
8350 * go-lang.c (go_language_data): Likewise.
8351 * language.c (language_pass_by_reference): Update.
8352 (default_pass_by_reference): Delete.
8353 (unknown_language_data): Delete la_pass_by_reference
8354 initializer.
8355 (auto_language_data): Likewise.
8356 * language.h (struct language_data): Delete la_pass_by_reference
8357 field.
8358 (language_defn::pass_by_reference_info): New member function.
8359 (default_pass_by_reference): Delete declaration.
8360 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8361 initializer.
8362 * objc-lang.c (objc_language_data): Likewise.
8363 * opencl-lang.c (opencl_language_data): Likewise.
8364 * p-lang.c (pascal_language_data): Likewise.
8365 * rust-lang.c (rust_language_data): Likewise.
8366
15e5fd35
AB
83672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8368
8369 * ada-lang.c (ada_read_var_value): Delete function, move
8370 implementation to...
8371 (ada_language::read_var_value): ...here.
8372 (ada_language_data): Delete la_read_var_value initializer.
8373 * c-lang.c (c_language_data): Likewise.
8374 (cplus_language_data): Likewise.
8375 (minimal_language_data): Likewise.
8376 * d-lang.c (d_language_data): Likewise.
8377 * f-lang.c (f_language_data): Likewise.
8378 * findvar.c (default_read_var_value): Rename to...
8379 (language_defn::read_var_value): ...this.
8380 * findvar.c (read_var_value): Update header comment, and change to
8381 call member function instead of function pointer.
8382 * go-lang.c (go_language_data): Likewise.
8383 * language.c (unknown_language_data): Delete la_read_var_value
8384 initializer.
8385 (auto_language_data): Likewise.
8386 * language.h (struct language_data): Delete la_read_var_value
8387 field.
8388 (language_defn::read_var_value): New member function.
8389 (default_read_var_value): Delete declaration.
8390 * m2-lang.c (m2_language_data): Delete la_read_var_value
8391 initializer.
8392 * objc-lang.c (objc_language_data): Likewise.
8393 * opencl-lang.c (opencl_language_data): Likewise.
8394 * p-lang.c (pascal_language_data): Likewise.
8395 * rust-lang.c (rust_language_data): Likewise.
8396 * value.h (default_read_var_value): Delete declaration.
8397
5bd40f2a
AB
83982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8399
8400 * ada-lang.c (ada_print_array_index): Delete function, move
8401 implementation to...
8402 (ada_language::print_array_index): ...here.
8403 (ada_language_data): Delete la_print_array_index initializer.
8404 * c-lang.c (c_language_data): Likewise.
8405 (cplus_language_data): Likewise.
8406 (minimal_language_data): Likewise.
8407 * d-lang.c (d_language_data): Likewise.
8408 * f-lang.c (f_language_data): Likewise.
8409 * go-lang.c (go_language_data): Likewise.
8410 * language.c (default_print_array_index): Delete function, move
8411 implementation to...
8412 (language_defn::print_array_index): ...here.
8413 (unknown_language_data): Delete la_print_array_index initializer.
8414 (auto_language_data): Likewise.
8415 * language.h (struct language_data): Delete la_print_array_index
8416 field.
8417 (language_defn::print_array_index): New member function.
8418 (LA_PRINT_ARRAY_INDEX): Update.
8419 (default_print_array_index): Delete declaration.
8420 * m2-lang.c (m2_language_data): Delete la_print_array_index
8421 initializer.
8422 * objc-lang.c (objc_language_data): Likewise.
8423 * opencl-lang.c (opencl_language_data): Likewise.
8424 * p-lang.c (pascal_language_data): Likewise.
8425 * rust-lang.c (rust_language_data): Likewise.
8426
0874fd07
AB
84272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8428
8429 * gdb/ada-lang.c (ada_language_defn): Convert to...
8430 (ada_language_data): ...this.
8431 (class ada_language): New class.
8432 (ada_language_defn): New static global.
8433 * gdb/c-lang.c (c_language_defn): Convert to...
8434 (c_language_data): ...this.
8435 (class c_language): New class.
8436 (c_language_defn): New static global.
8437 (cplus_language_defn): Convert to...
8438 (cplus_language_data): ...this.
8439 (class cplus_language): New class.
8440 (cplus_language_defn): New static global.
8441 (asm_language_defn): Convert to...
8442 (asm_language_data): ...this.
8443 (class asm_language): New class.
8444 (asm_language_defn): New static global.
8445 (minimal_language_defn): Convert to...
8446 (minimal_language_data): ...this.
8447 (class minimal_language): New class.
8448 (minimal_language_defn): New static global.
8449 * gdb/d-lang.c (d_language_defn): Convert to...
8450 (d_language_data): ...this.
8451 (class d_language): New class.
8452 (d_language_defn): New static global.
8453 * gdb/f-lang.c (f_language_defn): Convert to...
8454 (f_language_data): ...this.
8455 (class f_language): New class.
8456 (f_language_defn): New static global.
8457 * gdb/go-lang.c (go_language_defn): Convert to...
8458 (go_language_data): ...this.
8459 (class go_language): New class.
8460 (go_language_defn): New static global.
8461 * gdb/language.c (unknown_language_defn): Remove declaration.
8462 (current_language): Initialize to nullptr, real initialization is
8463 moved to _initialize_language.
8464 (languages): Delete global.
8465 (language_defn::languages): Define.
8466 (set_language_command): Use language_defn::languages.
8467 (set_language): Likewise.
8468 (range_error): Likewise.
8469 (language_enum): Likewise.
8470 (language_def): Likewise.
8471 (add_set_language_command): Use language_def::languages for the
8472 language list, and language_def to lookup language pointers.
8473 (skip_language_trampoline): Use language_defn::languages.
8474 (unknown_language_defn): Convert to...
8475 (unknown_language_data): ...this.
8476 (class unknown_language): New class.
8477 (unknown_language_defn): New static global.
8478 (auto_language_defn): Convert to...
8479 (auto_language_data): ...this.
8480 (class auto_language): New class.
8481 (auto_language_defn): New static global.
8482 (language_gdbarch_post_init): Use language_defn::languages.
8483 (_initialize_language): Initialize current_language.
8484 * gdb/language.h (struct language_defn): Rename to...
8485 (struct language_data): ...this.
8486 (struct language_defn): New.
8487 (auto_language_defn): Delete.
8488 (unknown_language_defn): Delete.
8489 (minimal_language_defn): Delete.
8490 (ada_language_defn): Delete.
8491 (asm_language_defn): Delete.
8492 (c_language_defn): Delete.
8493 (cplus_language_defn): Delete.
8494 (d_language_defn): Delete.
8495 (f_language_defn): Delete.
8496 (go_language_defn): Delete.
8497 (m2_language_defn): Delete.
8498 (objc_language_defn): Delete.
8499 (opencl_language_defn): Delete.
8500 (pascal_language_defn): Delete.
8501 (rust_language_defn): Delete.
8502 * gdb/m2-lang.c (m2_language_defn): Convert to...
8503 (m2_language_data): ...this.
8504 (class m2_language): New class.
8505 (m2_language_defn): New static global.
8506 * gdb/objc-lang.c (objc_language_defn): Convert to...
8507 (objc_language_data): ...this.
8508 (class objc_language): New class.
8509 (objc_language_defn): New static global.
8510 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8511 (opencl_language_data): ...this.
8512 (class opencl_language): New class.
8513 (opencl_language_defn): New static global.
8514 * gdb/p-lang.c (pascal_language_defn): Convert to...
8515 (pascal_language_data): ...this.
8516 (class pascal_language): New class.
8517 (pascal_language_defn): New static global.
8518 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8519 language pointer, update comment format.
8520 * gdb/rust-lang.c (rust_language_defn): Convert to...
8521 (rust_language_data): ...this.
8522 (class rust_language): New class.
8523 (rust_language_defn): New static global.
8524
1313c56e
AB
85252020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8526
8527 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8528 member variable.
8529 <m_stmt_at_address>: New member variable.
8530 (lnp_state_machine::record_line): Don't record some lines, update
8531 tracking of is_stmt at the same address.
8532 (lnp_state_machine::lnp_state_machine): Initialise new member
8533 variables.
8534
b7ed9f3d
ST
85352020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8536
8537 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8538 "-include gnu-nat-mig.h".
8539 * gnu-nat-mig.h: New file.
8540 * gnu-nat.c: Include "gnu-nat-mig.h".
8541 (exc_server, msg_reply_server, notify_server,
8542 process_reply_server): Remove declarations.
8543
14a8ad62
ST
85442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8545
8546 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8547 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8548 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8549 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8550 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8551 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8552 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8553 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8554 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8555 to gnu_nat_target class.
8556 * gnu-nat.c: Likewise.
8557 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8558 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8559 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8560 object.
8561 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8562 instead of `gnu_target'.
8563
0af5e106
ST
85642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8565
8566 * i386-gnu-tdep.c: Include "gdbcore.h"
8567 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8568 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8569 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8570 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8571 i386_gnu_sigcontext_addr): New functions
8572 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8573 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8574 tdep.
8575
078f2fc9
ST
85762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8577
8578 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8579 before fork_inferior call. Avoid calling it if target_is_pushed returns
8580 true.
8581
53dff92c
ST
85822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8583
8584 * gnu-nat.h (gnu_target): New variable declaration.
8585 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8586 gnu_target.
8587 * gnu-nat.c (gnu_target): New variable.
8588 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8589 add_thread_silent, and add_thread calls.
8590 (gnu_nat_target::create_inferior): Pass gnu_target to
8591 add_thread_silent, thread_change_ptid call.
8592 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8593 call.
8594
5a8b8627
ST
85952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8596
8597 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8598 (gnu_nat_target::find_memory_regions): Remove unused
8599 `old_address' variable.
8600
366f550a
ST
86012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8602
8603 * gnu-nat.c: Include "gdbarch.h".
8604
f14871bf
ST
86052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8606
8607 * reply_mig_hack.awk (Error return): Cast function through
8608 void *, to bypass compiler function call check.
8609
c6887cfb
ST
86102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8611
8612 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8613 $(srcdir)/reply_mig_hack.awk.
8614
6930bffe
ST
86152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8616
8617 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8618
112c22ed
JG
86192020-05-30 Jonny Grant <jg@jguk.org>
8620
8621 * configure.ac (ACX_BUGURL): change bug URL to https.
8622
f68f85b5
PA
86232020-05-30 Pedro Alves <palves@redhat.com>
8624
8625 * cp-support.c (replace_typedefs_template): New.
8626 (replace_typedefs_qualified_name): Handle
8627 DEMANGLE_COMPONENT_TEMPLATE.
8628
976ca316
SM
86292020-05-29 Simon Marchi <simon.marchi@efficios.com>
8630
8631 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8632 dwarf2/index-cache.h, dwarf2/index-write.c,
8633 dwarf2/index-write.h, dwarf2/line-header.c,
8634 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8635 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8636 variables and fields from `dwarf2_per_objfile` to just
8637 `per_objfile` throughout.
8638
989ade05
SM
86392020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8640
8641 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8642 <push_dwarf_reg_entry_value>: Add comment.
8643
c47bae85
KB
86442020-05-28 Kevin Buettner <kevinb@redhat.com>
8645 Keith Seitz <keiths@redhat.com>
8646
8647 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8648 instead of PyEval_ReleaseLock.
8649 (class gdbpy_gil): Move to earlier in file.
8650 (finalize_python): Set gdb_python_initialized.
8651 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8652 when not initialized.
8653
44486dcf
SM
86542020-05-28 Simon Marchi <simon.marchi@efficios.com>
8655
8656 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8657 <push_dwarf_reg_entry_value>: Remove assert. Override
8658 per_objfile with caller_per_objfile.
8659
f030440d
TV
86602020-05-28 Tom de Vries <tdevries@suse.de>
8661
8662 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8663 PR gold/15646 workaround to symbol kind "type".
8664
f0fbb768
TT
86652020-05-27 Tom Tromey <tromey@adacore.com>
8666
8667 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8668
af0b2a3e
TT
86692020-05-27 Tom Tromey <tromey@adacore.com>
8670
8671 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8672 Use htab_find_with_hash.
8673 <add_abbrev>: Remove "abbrev_number" parameter.
8674 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8675 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8676 (hash_abbrev): Add comment.
8677 (abbrev_table::lookup_abbrev): Move to header file.
8678 (abbrev_table::read): Update.
8679
7d00ffec
TT
86802020-05-27 Tom Tromey <tromey@adacore.com>
8681
8682 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8683 method.
8684 <canonical_name>: New member.
8685 <raw_name>: Rename from "name".
8686 (partial_die_info): Initialize canonical_name.
8687 (scan_partial_symbols): Check raw_name.
8688 (partial_die_parent_scope, partial_die_full_name)
8689 (add_partial_symbol, add_partial_subprogram)
8690 (add_partial_enumeration, load_partial_dies): Use "name" method.
8691 (partial_die_info::name): New method.
8692 (partial_die_info::read, guess_partial_die_structure_name)
8693 (partial_die_info::fixup): Update.
8694
697bba18
TT
86952020-05-27 Tom Tromey <tromey@adacore.com>
8696
8697 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8698 <get_ref_die_offset>: Inline.
8699 <get_ref_die_offset_complaint>: New method.
8700 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8701 (attribute::get_ref_die_offset_complaint): Rename from
8702 get_ref_die_offset. Just issue complaint.
8703
c17ace43
HD
87042020-05-27 Hannes Domani <ssbssa@yahoo.de>
8705
8706 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8707
96445f0b
HD
87082020-05-27 Hannes Domani <ssbssa@yahoo.de>
8709
8710 * exec.c (exec_file_attach): Use errno value of first openp failure.
8711
ac637ec3
HD
87122020-05-27 Hannes Domani <ssbssa@yahoo.de>
8713
8714 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8715 Don't close thread handle.
8716
17ee85fc
TT
87172020-05-27 Tom Tromey <tom@tromey.com>
8718 Simon Marchi <simon.marchi@efficios.com>
8719
8720 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8721 shared_ptr.
8722 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8723 member.
8724 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8725 dwarf2_per_bfd_objfile_data_key>: New globals.
8726 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8727 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8728 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8729 shared.
8730 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8731 short-circuit when sharing.
8732 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8733 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8734
39b16f87
SM
87352020-05-27 Simon Marchi <simon.marchi@efficios.com>
8736
8737 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8738 to...
8739 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8740 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8741
fcf23d5b
SM
87422020-05-27 Simon Marchi <simon.marchi@efficios.com>
8743
8744 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8745 build_name_components, find_name_components_bounds>:
8746 Add per_objfile parameter.
8747 (struct mapped_index) <symbol_name_at>: Likewise.
8748 (struct mapped_debug_names): Remove constructor.
8749 <dwarf2_per_objfile>: Remove field.
8750 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8751 (mapped_index_base::find_name_components_bounds,
8752 mapped_index_base::build_name_components,
8753 dw2_expand_symtabs_matching_symbol): Likewise.
8754 (class mock_mapped_index) <symbol_name_at>: Likewise.
8755 (check_match): Likewise.
8756 (check_find_bounds_finds): Likewise.
8757 (test_mapped_index_find_name_component_bounds): Update.
8758 (CHECK_MATCH): Update.
8759 (dw2_expand_symtabs_matching): Update.
8760 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8761 per_objfile parameter.
8762 <find_vec_in_debug_names>: Likewise.
8763 <m_per_objfile>: New field.
8764 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8765 parameter.
8766 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8767 (dw2_debug_names_iterator::next): Update.
8768 (dw2_debug_names_lookup_symbol): Update.
8769 (dw2_debug_names_expand_symtabs_for_function): Update.
8770 (dw2_debug_names_map_matching_symbols): Update.
8771 (dw2_debug_names_expand_symtabs_matching): Update.
8772 (dwarf2_read_debug_names): Update.
8773
7188ed02
SM
87742020-05-27 Simon Marchi <simon.marchi@efficios.com>
8775
8776 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8777 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8778 move to dwarf2_per_objfile.
8779 <read_in_chain>: Remove.
8780 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8781 remove_all_cus, age_comp_units>: New methods.
8782 <m_dwarf2_cus>: New member.
8783 (struct dwarf2_per_cu_data) <cu>: Remove.
8784 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8785 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8786 moved to methods of dwarf2_per_objfile.
8787 (dwarf2_clear_marks): Remove.
8788 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8789 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8790 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8791 (dwarf2_per_objfile::remove_all_cus): New.
8792 (class free_cached_comp_units) <~free_cached_comp_units>:
8793 Update.
8794 (load_cu): Update.
8795 (dw2_do_instantiate_symtab): Adjust.
8796 (fill_in_sig_entry_from_dwo_entry): Adjust.
8797 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8798 (cutu_reader::cutu_reader): Likewise.
8799 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8800 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8801 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8802 and dwarf2_per_objfile::age_comp_units.
8803 (load_partial_comp_unit): Update.
8804 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8805 (process_queue): Likewise.
8806 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8807 backlink.
8808 (dwarf2_read_addr_index): Likewise.
8809 (follow_die_offset): Likewise.
8810 (dwarf2_fetch_die_loc_sect_off): Likewise.
8811 (dwarf2_fetch_constant_bytes): Likewise.
8812 (dwarf2_fetch_die_type_sect_off): Likewise.
8813 (follow_die_sig_1): Likewise.
8814 (load_full_type_unit): Likewise.
8815 (read_signatured_type): Likewise.
8816 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8817 (dwarf2_cu::~dwarf2_cu): Remove.
8818 (dwarf2_per_objfile::get_cu): New.
8819 (dwarf2_per_objfile::set_cu): New.
8820 (age_cached_comp_units): Rename to...
8821 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8822 to std::unordered_map.
8823 (free_one_cached_comp_unit): Rename to...
8824 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8825 to std::unordered_map.
8826 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8827 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8828 a dwarf2_per_objfile in data.
8829 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8830 (dwarf2_clear_marks): Remove.
8831
2e671100
SM
88322020-05-27 Simon Marchi <simon.marchi@efficios.com>
8833
8834 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8835 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8836 (init_tu_and_read_dwo_dies): Likewise.
8837 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8838 (cutu_reader::cutu_reader): Likewise.
8839 (load_partial_comp_unit): Likewise.
8840 (process_psymtab_comp_unit): Update.
8841 (build_type_psymtabs_1): Update.
8842 (process_skeletonless_type_unit): Update.
8843 (load_full_comp_unit): Update.
8844 (find_partial_die): Update.
8845 (dwarf2_read_addr_index): Update.
8846 (read_signatured_type): Update.
8847
2e6a9f79
SM
88482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8849
8850 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8851 m_header_read_in>: New fields.
8852 <get_header>: New method.
8853 * dwarf2/read.c (per_cu_header_read_in): Remove.
8854 (dwarf2_per_cu_data::get_header): New.
8855 (dwarf2_per_cu_data::addr_size): Update.
8856 (dwarf2_per_cu_data::offset_size): Update.
8857 (dwarf2_per_cu_data::ref_addr_size): Update.
8858
1b555f17
SM
88592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8860
8861 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8862 (dw2_do_instantiate_symtab): Update.
8863 (queue_and_load_all_dwo_tus): Change parameter from
8864 dwarf2_per_cu_data to dwarf2_cu.
8865 (dwarf2_fetch_die_loc_sect_off): Update.
8866 (dwarf2_fetch_constant_bytes): Update.
8867 (dwarf2_fetch_die_type_sect_off): Update.
8868
8fc0b21d
SM
88692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8870
8871 * dwarf2/read.c (process_full_comp_unit,
8872 process_full_type_unit): Remove per_cu, per_objfile paramters.
8873 Add dwarf2_cu parameter.
8874 (process_queue): Update.
8875
168c9250
SM
88762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8877
8878 * dwarf2/read.c (create_cu_from_index_list): Replace
8879 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8880 (create_cus_from_index_list): Likewise.
8881 (create_cus_from_index): Likewise.
8882 (create_signatured_type_table_from_index): Likewise.
8883 (create_cus_from_debug_names_list): Likewise.
8884 (create_cus_from_debug_names): Likewise.
8885 (dwarf2_read_gdb_index): Update.
8886 (dwarf2_read_debug_names): Update.
8887
e286671b
TT
88882020-05-27 Tom Tromey <tom@tromey.com>
8889 Simon Marchi <simon.marchi@efficios.com>
8890
8891 * dwarf2/read.h (struct dwarf2_per_objfile)
8892 <get_type_for_signatured_type, set_type_for_signatured_type>:
8893 New methods.
8894 <m_type_map>: New member.
8895 (struct signatured_type) <type>: Remove.
8896 * dwarf2/read.c
8897 (dwarf2_per_objfile::get_type_for_signatured_type,
8898 dwarf2_per_objfile::set_type_for_signatured_type): New.
8899 (get_signatured_type): Use new methods.
8900
8adb8487
TT
89012020-05-27 Tom Tromey <tom@tromey.com>
8902 Simon Marchi <simon.marchi@efficios.com>
8903
8904 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8905 (struct dwarf2_per_objfile) <type_units>: New member.
8906 <get_type_unit_group_unshareable>: New method.
8907 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8908 num_symtabs, symtabs>: Remove; move to
8909 type_unit_group_unshareable.
8910 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8911 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8912 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8913
127bbf4b
SM
89142020-05-27 Simon Marchi <simon.marchi@efficios.com>
8915
8916 * dwarf2/read.h (struct dwarf2_per_cu_data):
8917 <dwarf2_per_objfile>: Remove.
8918 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8919 dwarf2_per_objfile.
8920 (create_signatured_type_table_from_index): Likewise.
8921 (create_signatured_type_table_from_debug_names): Likewise.
8922 (create_debug_type_hash_table): Likewise.
8923 (fill_in_sig_entry_from_dwo_entry): Likewise.
8924 (create_type_unit_group): Likewise.
8925 (read_comp_units_from_section): Likewise.
8926 (create_cus_hash_table): Likewise.
8927
f6e649dd
SM
89282020-05-27 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8931 dwarf2_per_cu_data::dwarf2_per_objfile.
8932 (compute_compunit_symtab_includes): Likewise.
8933 (dwarf2_cu::start_symtab): Likewise.
8934
aa66c379
SM
89352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8936
8937 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8938 parameter.
8939 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8940 (read_namespace_alias): Update.
8941 (lookup_die_type): Update.
8942 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8943 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8944 Update.
8945 (disassemble_dwarf_expression): Update.
8946
120ce1b5
SM
89472020-05-27 Simon Marchi <simon.marchi@efficios.com>
8948
8949 * dwarf2/read.h (struct dwarf2_queue_item): Add
8950 dwarf2_per_objfile parameter, assign new parameter.
8951 <per_objfile>: New field.
8952 * dwarf2/read.c (free_one_cached_comp_unit): Add
8953 dwarf2_per_objfile parameter.
8954 (queue_comp_unit): Likewise.
8955 (dw2_do_instantiate_symtab): Update.
8956 (process_psymtab_comp_unit): Update.
8957 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8958 (process_imported_unit_die): Update.
8959 (queue_and_load_dwo_tu): Update.
8960 (follow_die_offset): Update.
8961 (follow_die_sig_1): Update.
8962
9f47c707
SM
89632020-05-27 Simon Marchi <simon.marchi@efficios.com>
8964
8965 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8966 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8967 (read_call_site_scope): Assign per_objfile.
8968 (dwarf2_per_cu_data::objfile): Remove.
8969 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8970 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8971 dwarf2_per_objfile parameter.
8972 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8973 dwarf2_per_objfile parameter.
8974 (dwarf_expr_reg_to_entry_parameter): Add output
8975 dwarf2_per_objfile parameter.
8976 (locexpr_get_frame_base): Update.
8977 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8978 <push_dwarf_reg_entry_value>: Update.
8979 <call_site_to_target_addr>: Update.
8980 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8981 parameter.
8982 (value_of_dwarf_reg_entry): Update.
8983 (rw_pieced_value): Update.
8984 (indirect_synthetic_pointer): Update.
8985 (dwarf2_evaluate_property): Update.
8986 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8987 parameter.
8988 (locexpr_read_variable): Update.
8989 (locexpr_get_symbol_read_needs): Update.
8990 (loclist_read_variable): Update.
8991
14095eb3
SM
89922020-05-27 Simon Marchi <simon.marchi@efficios.com>
8993
8994 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8995 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8996 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8997 parameter.
8998 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8999 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9000 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9001 parameter.
9002 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9003 sect_variable_value): Add dwarf2_per_objfile parameter.
9004 (class dwarf_evaluate_loc_desc) <dwarf_call,
9005 dwarf_variable_value>: Update.
9006 (fetch_const_value_from_synthetic_pointer): Add
9007 dwarf2_per_objfile parameter.
9008 (fetch_const_value_from_synthetic_pointer): Update.
9009 (coerced_pieced_ref): Update.
9010 (class symbol_needs_eval_context) <dwarf_call,
9011 dwarf_variable_value>: Update.
9012 (dwarf2_compile_expr_to_ax): Update.
9013
3c3cd3d4
SM
90142020-05-27 Simon Marchi <simon.marchi@efficios.com>
9015
9016 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9017 parameter.
9018 (dwarf2_evaluate_loc_desc_full): Update.
9019
82ca3f51
SM
90202020-05-27 Simon Marchi <simon.marchi@efficios.com>
9021
9022 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9023 parameter.
9024 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9025 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9026 dwarf2_per_objfile parameter.
9027 (decode_debug_loc_dwo_addresses): Likewise.
9028 (dwarf2_find_location_expression): Update.
9029 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9030 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9031 parameter.
9032 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9033 parameter.
9034 (locexpr_describe_location_1): Likewise.
9035 (locexpr_describe_location): Update.
9036
4b167ea1
SM
90372020-05-27 Simon Marchi <simon.marchi@efficios.com>
9038
9039 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9040 Remove.
9041 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9042 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9043 (dwarf2_compile_property_to_c): Update.
9044 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9045 use text offset from objfile.
9046 (locexpr_tracepoint_var_ref): Update.
9047 (locexpr_generate_c_location): Update.
9048 (loclist_describe_location): Update.
9049 (loclist_tracepoint_var_ref): Update.
9050 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9051 dwarf2_per_objfile parameter.
9052 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9053 use text offset from objfile.
9054 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9055
89b07335
SM
90562020-05-27 Simon Marchi <simon.marchi@efficios.com>
9057
9058 * dwarf2/expr.h (struct dwarf_expr_context)
9059 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9060 <offset>: Remove.
9061 <per_objfile>: New member.
9062 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9063 dwarf2_per_objfile parameter. Don't set offset, set
9064 per_objfile.
9065 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9066 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9067 a dwarf2_per_objfile object instead of an offset.
9068 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9069 constructor.
9070 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9071 to dwarf2_expr_executor constructor. Don't set offset.
9072 (dwarf2_fetch_cfa_info): Update.
9073 (struct dwarf2_frame_cache) <text_offset>: Remove.
9074 <per_objfile>: New field.
9075 (dwarf2_frame_cache): Update.
9076 (dwarf2_frame_prev_register): Update.
9077 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9078 <dwarf_evaluate_loc_desc>: Add constructor.
9079 (dwarf2_evaluate_loc_desc_full): Update.
9080 (dwarf2_locexpr_baton_eval): Update.
9081 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9082 Add constructor.
9083 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9084
293e7e51
SM
90852020-05-27 Simon Marchi <simon.marchi@efficios.com>
9086
9087 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9088 addr_sized_int_type>: Move to dwarf2_cu.
9089 <int_type>: Move to dwarf2_per_objfile.
9090 (struct dwarf2_per_objfile) <int_type>: Move here.
9091 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9092 addr_sized_int_type>: Move here.
9093 (read_func_scope): Update.
9094 (read_array_type): Update.
9095 (read_tag_string_type): Update.
9096 (attr_to_dynamic_prop): Update.
9097 (dwarf2_per_cu_data::int_type): Rename to...
9098 (dwarf2_per_objfile::int_type): ... this.
9099 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9100 (dwarf2_cu::addr_sized_int_type): ... this.
9101 (read_subrange_type): Update.
9102 (dwarf2_per_cu_data::addr_type): Rename to...
9103 (dwarf2_cu::addr_type): ... this.
9104 (set_die_type): Update.
9105
64874a40
SM
91062020-05-27 Simon Marchi <simon.marchi@efficios.com>
9107
9108 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9109 data through per_cu->cu.
9110
4ab09049
SM
91112020-05-27 Simon Marchi <simon.marchi@efficios.com>
9112
9113 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9114 dwarf2_per_cu_data parameter fo dwarf2_cu.
9115 (lookup_dwo_type_unit): Likewise.
9116 (read_cutu_die_from_dwo): Likewise.
9117 (lookup_dwo_unit): Likewise.
9118 (open_and_init_dwo_file): Likewise.
9119 (lookup_dwo_cutu): Likewise.
9120 (lookup_dwo_comp_unit): Likewise.
9121 (lookup_dwo_type_unit): Likewise.
9122 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9123 (cutu_reader::cutu_reader): Update.
9124
47b14e86
SM
91252020-05-27 Simon Marchi <simon.marchi@efficios.com>
9126
9127 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9128 parameter.
9129 (process_full_type_unit): Likewise.
9130 (process_queue): Update.
9131
43182c09
SM
91322020-05-27 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * dwarf2/read.c (recursively_compute_inclusions): Add
9135 dwarf2_per_objfile parameter.
9136 (compute_compunit_symtab_includes): Likewise.
9137 (process_cu_includes): Update.
9138
7aa104c4
SM
91392020-05-27 Simon Marchi <simon.marchi@efficios.com>
9140
9141 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9142 parameter.
9143 (create_type_unit_group): Update.
9144 (process_psymtab_comp_unit_reader): Update.
9145 (build_type_psymtabs_reader): Update.
9146
e3beb21d
SM
91472020-05-27 Simon Marchi <simon.marchi@efficios.com>
9148
9149 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9150 object through m_this_cu->cu.
9151
d460f660
SM
91522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9153
9154 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9155 the info parameter.
9156 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9157
ab432490
SM
91582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9159
9160 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9161 per_objfile parameter.
9162 (load_full_type_unit): Add per_objfile parameter.
9163 (read_signatured_type): Likewise.
9164 (load_full_comp_unit): Likewise.
9165 (load_cu): Likewise.
9166 (dw2_do_instantiate_symtab): Likewise.
9167 (dw2_get_file_names): Likewise.
9168 (dw2_map_symtabs_matching_filename): Update.
9169 (dw_expand_symtabs_matching_file_matcher): Update.
9170 (dw2_map_symbol_filenames): Update.
9171 (process_psymtab_comp_unit): Add per_objfile parameter.
9172 (build_type_psymtabs_1): Update.
9173 (process_skeletonless_type_unit): Update.
9174 (dwarf2_build_psymtabs_hard): Update.
9175 (load_partial_comp_unit): Add per_objfile parameter.
9176 (scan_partial_symbols): Update.
9177 (load_full_comp_unit): Add per_objfile parameter.
9178 (process_imported_unit_die): Update.
9179 (create_cus_hash_table): Update.
9180 (find_partial_die): Update.
9181 (dwarf2_read_addr_index): Update.
9182 (follow_die_offset): Update.
9183 (dwarf2_fetch_die_loc_sect_off): Update.
9184 (dwarf2_fetch_constant_bytes): Update.
9185 (dwarf2_fetch_die_type_sect_off): Update.
9186 (follow_die_sig_1): Update.
9187 (load_full_type_unit): Add per_objfile parameter.
9188 (read_signatured_type): Likewise.
9189
313bad1b
SM
91902020-05-27 Simon Marchi <simon.marchi@efficios.com>
9191
9192 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9193 of objfile_name.
9194
c3699833
SM
91952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9196
9197 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9198 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9199 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9200 field.
9201 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9202 (create_cus_from_index): Update.
9203 (dwarf2_read_gdb_index): Update.
9204 (create_cus_from_debug_names): Update.
9205 (dwarf2_read_debug_names): Update.
9206 (get_abbrev_section_for_cu): Update.
9207 (create_all_comp_units): Update.
9208 (read_attribute_value): Update.
9209 (get_debug_line_section): Update.
9210 * dwarf2/index-cache.c (index_cache::store): Update.
9211 * dwarf2/index-write.c (save_gdb_index_command): Update.
9212 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9213
1859c670
SM
92142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9215
9216 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9217 member.
9218 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9219 dwarf2_per_cu_data::per_bfd.
9220 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9221 (create_type_unit_group): Likewise.
9222 (queue_comp_unit): Remove reference to
9223 per_cu->dwarf2_per_objfile.
9224 (maybe_queue_comp_unit): Likewise.
9225 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9226 (create_cus_hash_table): Assign new field.
9227
5e22e966
SM
92282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9229
9230 * dwarf2/read.c: Replace
9231 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9232 dwarf2_cu->per_objfile throughout.
9233
97a1449a
SM
92342020-05-27 Simon Marchi <simon.marchi@efficios.com>
9235
9236 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9237 parameter, don't use per_cu->dwarf2_per_objfile.
9238 (dw2_instantiate_symtab): Likewise.
9239 (dw2_find_last_source_symtab): Update.
9240 (dw2_map_expand_apply): Update.
9241 (dw2_lookup_symbol): Update.
9242 (dw2_expand_symtabs_for_function): Update.
9243 (dw2_expand_all_symtabs): Update.
9244 (dw2_expand_symtabs_with_fullname): Update.
9245 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9246 don't use per_cu->dwarf2_per_objfile.
9247 (dw2_expand_marked_cus): Update.
9248 (dw2_find_pc_sect_compunit_symtab): Update.
9249 (dw2_debug_names_lookup_symbol): Update.
9250 (dw2_debug_names_expand_symtabs_for_function): Update.
9251 (dw2_debug_names_map_matching_symbols): Update.
9252 (dwarf2_psymtab::expand_psymtab): Update.
9253
9e021579
SM
92542020-05-27 Simon Marchi <simon.marchi@efficios.com>
9255
9256 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9257 <per_objfile>: New member.
9258 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9259 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9260 call to dwarf2_cu.
9261 (cutu_reader::cutu_reader): Update.
9262 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9263
ae090bdb
SM
92642020-05-27 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9267 struct dwarf2_per_objfile.
9268 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9269 dwarf2_per_bfd.
9270 * dwarf2/read.c (set_die_type): Update.
9271 (get_die_type_at_offset): Update.
9272
af758d11
SM
92732020-05-27 Tom Tromey <tom@tromey.com>
9274 Simon Marchi <simon.marchi@efficios.com>
9275
9276 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9277 method.
9278 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9279 get_symtab, set_symtab>: New methods.
9280 <m_symtabs>: New field.
9281 (struct dwarf2_psymtab): Derive from partial_symtab.
9282 <readin_p, get_compunit_symtab>: Declare methods.
9283 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9284 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9285 New methods.
9286 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9287 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9288 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9289 (dw2_symtab_iter_next, dw2_print_stats)
9290 (dw2_expand_symtabs_with_fullname)
9291 (dw2_expand_symtabs_matching_one)
9292 (dw_expand_symtabs_matching_file_matcher)
9293 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9294 (dw2_debug_names_iterator::next)
9295 (dw2_debug_names_map_matching_symbols)
9296 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9297 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9298 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9299 New methods.
9300 (get_compunit_symtab, process_full_comp_unit)
9301 (process_full_type_unit): Update.
9302 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9303
5989a64e
SM
93042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9305
9306 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9307 then introduce a new dwarf2_per_objfile type.
9308 <read_line_string>: Move to the new dwarf2_per_objfile type.
9309 <objfile>: Likewise.
9310 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9311 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9312 dwarf2_per_objfile->per_bfd.
9313 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9314 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9315 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9316 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9317 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9318 (dwarf2_per_objfile::locate_sections): Rename to...
9319 (dwarf2_per_bfd::locate_sections): ... this.
9320 (dwarf2_per_objfile::get_cutu): Rename to...
9321 (dwarf2_per_bfd::get_cutu): ... this.
9322 (dwarf2_per_objfile::get_cu): Rename to...
9323 (dwarf2_per_bfd::get_cu): ... this.
9324 (dwarf2_per_objfile::get_tu): Rename to...
9325 (dwarf2_per_bfd::get_tu): ... this.
9326 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9327 (dwarf2_per_bfd::allocate_per_cu): ... this.
9328 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9329 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9330 (get_gdb_index_contents_ftype): Change parameter from
9331 dwarf2_per_objfile to dwarf2_per_bfd.
9332 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9333 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9334
a50264ba
TT
93352020-05-27 Tom Tromey <tom@tromey.com>
9336 Simon Marchi <simon.marchi@efficios.com>
9337
9338 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9339 (allocate_piece_closure): Set "per_objfile" member.
9340 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9341 (locexpr_describe_location, loclist_describe_location): Use new
9342 member.
9343 * dwarf2/read.c (read_call_site_scope)
9344 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9345 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9346 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9347 handle_data_member_location): Set per_objfile member.
9348 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9349 member.
9350 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9351
d3473f0c
TT
93522020-05-27 Tom Tromey <tom@tromey.com>
9353
9354 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9355 allocate_signatured_type>: Declare new methods.
9356 <m_num_psymtabs>: New member.
9357 (struct dwarf2_per_cu_data) <index>: New member.
9358 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9359 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9360 (create_cu_from_index_list): Use allocate_per_cu.
9361 (create_signatured_type_table_from_index)
9362 (create_signatured_type_table_from_debug_names)
9363 (create_debug_type_hash_table, add_type_unit)
9364 (read_comp_units_from_section): Use allocate_signatured_type.
9365
5717c425
TT
93662020-05-27 Tom Tromey <tom@tromey.com>
9367
9368 * psymtab.c (partial_map_expand_apply)
9369 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9370 (psym_lookup_global_symbol_language)
9371 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9372 (psym_print_stats, psym_expand_symtabs_for_function)
9373 (psym_map_symbol_filenames, psym_map_matching_symbols)
9374 (psym_expand_symtabs_matching)
9375 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9376 (maintenance_check_psymtabs): Update.
9377 * psympriv.h (struct partial_symtab) <readin_p,
9378 get_compunit_symtab>: Add objfile parameter.
9379 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9380 Likewise.
9381 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9382 get_compunit_symtab>: Likewise.
9383 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9384
45940949
TT
93852020-05-27 Tom Tromey <tom@tromey.com>
9386
9387 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9388 member.
9389 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9390 (create_cu_from_index_list)
9391 (create_signatured_type_table_from_index)
9392 (create_signatured_type_table_from_debug_names)
9393 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9394 (dwarf2_create_include_psymtab)
9395 (create_debug_type_hash_table, add_type_unit)
9396 (create_type_unit_group, read_comp_units_from_section)
9397 (dwarf2_compute_name, create_cus_hash_table)
9398 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9399 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9400 obstack.
9401 (dw2_get_real_path): Likewise. Change argument to
9402 dwarf2_per_objfile.
9403
f8c6d152
LM
94042020-05-27 Luis Machado <luis.machado@linaro.org>
9405
9406 PR tdep/26000
9407 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9408 for ldrd (immediate).
9409
e98d2e6d
PW
94102020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9411
9412 * command.h: Add comment giving the name of class_tui.
9413 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9414 create the fake command for the help for class_tui.
9415
53a47a3e
TT
94162020-05-26 Tom Tromey <tromey@adacore.com>
9417
9418 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9419 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9420 (val_atr): New function.
9421 (value_val_atr): Use it.
9422 * ada-valprint.c (print_optional_low_bound): Change low bound
9423 handling for enums.
9424 (val_print_packed_array_elements): Don't call discrete_position.
9425 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9426 discrete_position for enum types.
9427 * language.c (default_print_array_index): Change type.
9428 * language.h (struct language_defn) <la_print_array_index>: Add
9429 index_type parameter, change type of index_value.
9430 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9431 (default_print_array_index): Update.
9432 * valprint.c (maybe_print_array_index): Don't call
9433 value_from_longest. Update.
9434 (value_print_array_elements): Don't call discrete_position.
9435
0bc2354b
TT
94362020-05-26 Tom Tromey <tromey@adacore.com>
9437
9438 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9439 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9440
1218a4bf
CDA
94412020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9442
9443 PR gdb/13519
9444 * avr-tdep.c (avr_integer_to_address): Return data or code
9445 address accordingly to the second 'type' argument of the
9446 function.
9447
92651b1d
MW
94482020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9449
9450 * infcmd.c, inferior.h: (construct_inferior_arguments):
9451 Moved function from here to gdbsupport/common-inferior.{h,cc}
9452
0a4f5f8c
TT
94532020-05-23 Tom Tromey <tom@tromey.com>
9454
9455 Revert commit eca1f90c:
9456 * NEWS: Remove entry for completion styling.
9457 * completer.c (_rl_completion_prefix_display_length): Move
9458 declaration later.
9459 (gdb_fnprint): Revert.
9460 (gdb_display_match_list_1): Likewise.
9461 * cli/cli-style.c (completion_prefix_style)
9462 (completion_difference_style, completion_suffix_style): Remove.
9463 (_initialize_cli_style): Revert.
9464 * cli/cli-style.h (completion_prefix_style)
9465 (completion_difference_style, completion_suffix_style): Don't
9466 declare.
9467
e08bd6c5
PA
94682020-05-24 Pedro Alves <palves@redhat.com>
9469
9470 * symtab.c (completion_list_add_name): Return boolean indication
9471 of whether the symbol matched.
9472 (completion_list_add_symbol): Don't try to remove C++ aliases if
9473 the symbol didn't match in the first place.
9474 * symtab.h (completion_list_add_name): Return bool.
9475
ceacbf6e
SM
94762020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9477
9478 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9479 type::field.
9480
26f16254
JB
94812020-05-23 Joel Brobecker <brobecker@adacore.com>
9482
9483 GDB 9.2 released.
9484
eca1f90c
TT
94852020-05-23 Tom Tromey <tom@tromey.com>
9486
9487 * NEWS: Add entry for completion styling.
9488 * completer.c (_rl_completion_prefix_display_length): Move
9489 declaration earlier.
9490 (gdb_fnprint): Use completion_style.
9491 (gdb_display_match_list_1): Likewise.
9492 * cli/cli-style.c (completion_prefix_style)
9493 (completion_difference_style, completion_suffix_style): New
9494 globals.
9495 (_initialize_cli_style): Register new globals.
9496 * cli/cli-style.h (completion_prefix_style)
9497 (completion_difference_style, completion_suffix_style): Declare.
9498
51e2cfa2
PA
94992020-05-23 Pedro Alves <palves@redhat.com>
9500
9501 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9502 (parse_escape): Use ISDIGIT instead of isdigit.
9503 (puts_debug): Use gdb_isprint instead of isprint.
9504 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9505 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9506 ISSPACE instead of isspace.
9507 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9508 instead of isspace.
9509 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9510 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9511 instead of isxdigit and ISDIGIT instead of isdigit.
9512
80fc5e77
SM
95132020-05-22 Simon Marchi <simon.marchi@efficios.com>
9514
9515 * gdbtypes.h (struct type) <field>: New method.
9516 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9517 or type::field.
9518
3cabb6b0
SM
95192020-05-22 Simon Marchi <simon.marchi@efficios.com>
9520
9521 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9522 (TYPE_FIELDS): Use type::fields. Change all call sites that
9523 modify the propery to use type::set_fields instead.
9524
1f704f76
SM
95252020-05-22 Simon Marchi <simon.marchi@efficios.com>
9526
9527 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9528 type::num_fields instead.
9529
5e33d5f4
SM
95302020-05-22 Simon Marchi <simon.marchi@efficios.com>
9531
9532 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9533 methods.
9534 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9535 that modify the number of fields to use type::set_num_fields
9536 instead.
9537
9392ebb3
TT
95382020-05-22 Tom Tromey <tromey@adacore.com>
9539
9540 * compile/compile-object-load.h (munmap_list_free): Don't
9541 declare.
9542
7c13f4e8
AB
95432020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9544
9545 * annotate.c (annotate_source_line): Update return type, add call
9546 to update current symtab and line.
9547 * annotate.h (annotate_source_line): Update return type, and
9548 extend header comment.
9549 * source.c (info_line_command): Check annotation_level before
9550 calling annotate_source_line.
9551 * stack.c (print_frame_info): If calling annotate_source_line
9552 returns true, then don't print any other source line information.
9553
aa370940
SM
95542020-05-21 Simon Marchi <simon.marchi@efficios.com>
9555
9556 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9557
84d53fa9
SM
95582020-05-21 Simon Marchi <simon.marchi@efficios.com>
9559
9560 * coffread.c (patch_type): Remove NULL check before xfree.
9561 * corefile.c (set_gnutarget): Likewise.
9562 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9563 * exec.c (build_section_table): Likewise.
9564 * remote.c (remote_target::pass_signals): Likewise.
9565 * utils.c (n_spaces): Likewise.
9566 * cli/cli-script.c (document_command): Likewise.
9567 * i386-windows-tdep.c (core_process_module_section): Likewise.
9568 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9569
9d428aae
SM
95702020-05-20 Simon Marchi <simon.marchi@efficios.com>
9571
9572 * symfile.c (reread_symbols): Clear objfile's section_offsets
9573 vector and section indices, re-compute them by calling
9574 sym_offsets.
9575
250106a7
TT
95762020-05-20 Tom Tromey <tromey@adacore.com>
9577
9578 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9579 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9580
9a0bacfb
TV
95812020-05-20 Tom de Vries <tdevries@suse.de>
9582
9583 PR symtab/25833
9584 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9585
7b958a48
AM
95862020-05-20 Alan Modra <amodra@gmail.com>
9587
9588 PR 25993
9589 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9590 bfd_set_filename.
9591 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9592 passed to bfd_set_filename.
9593 * symfile-mem.c (add_vsyscall_page): Likewise for string
9594 passed to symbol_file_add_from_memory.
9595 (symbol_file_add_from_memory): Make name param a const char* and
9596 don't strdup.
9597
c7e97679
AM
95982020-05-20 Alan Modra <amodra@gmail.com>
9599
9600 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9601 rather than accessing bfd->filename directly.
9602 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9603 and use bfd_section_name.
9604 * dwarf2/frame.c (decode_frame_entry): Likewise.
9605 * exec.c (exec_set_section_address): Likewise.
9606 * solib-aix.c (solib_aix_bfd_open): Likewise.
9607 * stap-probe.c (get_stap_base_address): Likewise.
9608 * symfile.c (reread_symbols): Likewise.
9609
563c591b
TT
96102020-05-19 Tom Tromey <tromey@adacore.com>
9611
9612 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9613
f408d82c
SM
96142020-05-19 Simon Marchi <simon.marchi@efficios.com>
9615
9616 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9617
98c59b52
PA
96182020-05-19 Pedro Alves <palves@redhat.com>
9619
9620 * NEWS (set exec-file-mismatch): Adjust entry.
9621 * exec.c: Include "build-id.h".
9622 (validate_exec_file): Try to match build IDs instead of filenames.
9623 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9624 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9625 and pass down 'warn_if_slow'.
9626 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9627 gdb_bfd_open_closure to pass it down.
9628 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9629
4111f652
PA
96302020-05-19 Pedro Alves <palves@redhat.com>
9631
9632 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9633 * target.c (target_fileio_open_1): Rename to target_fileio_open
9634 and make extern. Use bool.
9635 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9636 (target_fileio_read_alloc_1): Adjust.
9637 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9638 (target_fileio_open_warn_if_slow): Delete declaration.
9639
ad80db5b
PA
96402020-05-19 Pedro Alves <palves@redhat.com>
9641
9642 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9643 Adjust all callers.
9644
1d6ce4d3
YS
96452020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9646
9647 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9648 whether disp is negative.
9649
9005fbbb
SM
96502020-05-19 Simon Marchi <simon.marchi@efficios.com>
9651
9652 * symfile.h (struct symfile_segment_data)
9653 <~symfile_segment_data>: Remove.
9654 <segment_info>: Change to std::vector.
9655 * symfile.c (default_symfile_segments): Update.
9656 * elfread.c (elf_symfile_segments): Update.
9657
68b888ff
SM
96582020-05-19 Simon Marchi <simon.marchi@efficios.com>
9659
9660 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9661 <segments>: New.
9662 <segment_bases, segment_sizes>: Remove.
9663 * symfile.c (default_symfile_segments): Update.
9664 * elfread.c (elf_symfile_segments): Update.
9665 * remote.c (remote_target::get_offsets): Update.
9666 * solib-target.c (solib_target_relocate_section_addresses):
9667 Update.
9668
62982abd
SM
96692020-05-19 Simon Marchi <simon.marchi@efficios.com>
9670
9671 * symfile.h (struct symfile_segment_data): Initialize fields.
9672 <~symfile_segment_data>: Add.
9673 (symfile_segment_data_up): New.
9674 (struct sym_fns) <sym_segments>: Return a
9675 symfile_segment_data_up.
9676 (default_symfile_segments): Return a symfile_segment_data_up.
9677 (free_symfile_segment_data): Remove.
9678 (get_symfile_segment_data): Return a symfile_segment_data_up.
9679 * symfile.c (default_symfile_segments): Likewise.
9680 (get_symfile_segment_data): Likewise.
9681 (free_symfile_segment_data): Remove.
9682 (symfile_find_segment_sections): Update.
9683 * elfread.c (elf_symfile_segments): Return a
9684 symfile_segment_data_up.
9685 * remote.c (remote_target::get_offsets): Update.
9686 * solib-target.c (solib_target_relocate_section_addresses):
9687 Update.
9688 * symfile-debug.c (debug_sym_segments): Return a
9689 symfile_segment_data_up.
9690
7f204339
RO
96912020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9692
e52a0f1b
RO
9693 PR build/25981
9694 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9695 Hardcode register numbers.
9696
7f204339
RO
9697 PR build/25981
9698 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9699 procfs_find_LDT_entry): Remove.
9700 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9701 procfs_find_LDT_entry): Remove.
9702 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9703 Remove.
9704
7f32a4d5
PA
97052020-05-17 Pedro Alves <palves@redhat.com>
9706 Andrew Burgess <andrew.burgess@embecosm.com>
9707 Keno Fischer <keno@juliacomputing.com>
9708
9709 PR gdb/25741
9710 * breakpoint.c (build_target_condition_list): Update comments.
9711 (build_target_command_list): Update comments and skip matching
9712 locations.
9713 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9714 a separate function. Simplify "set breakpoint auto-hw off"
9715 handling.
9716 (insert_breakpoints): Update comment.
9717 (tracepoint_locations_match): New parameter. For breakpoints,
9718 compare location types too, if the caller wants to.
9719 (handle_automatic_hardware_breakpoints): New functions.
9720 (bp_location_is_less_than): Also sort by location type and
9721 hardware breakpoint length.
9722 (update_global_location_list): Handle "set breakpoint auto-hw on"
9723 here.
9724 (update_breakpoint_locations): Ask breakpoint_locations_match to
9725 ignore location types.
9726
7d93a1e0
SM
97272020-05-16 Simon Marchi <simon.marchi@efficios.com>
9728
9729 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9730 type::name instead.
9731
d0e39ea2
SM
97322020-05-16 Simon Marchi <simon.marchi@efficios.com>
9733
9734 * gdbtypes.h (struct type) <name, set_name>: New methods.
9735 (TYPE_CODE): Use type::name. Change all call sites used to set
9736 the name to use type::set_name instead.
9737
2dab0c7b
TT
97382020-05-16 Tom Tromey <tom@tromey.com>
9739
9740 * top.c (quit_force): Update.
9741 * infrun.c (handle_no_resumed): Update.
9742 * top.h (all_uis): New function.
9743 (ALL_UIS): Remove.
9744
59f7bd8d
SM
97452020-05-16 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9748
9bf058f0
PA
97492020-05-16 Pedro Alves <palves@redhat.com>
9750
9751 * ia64-linux-nat.c
9752 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9753 Declare method.
9754 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9755
8f86ae1a
SM
97562020-05-15 Simon Marchi <simon.marchi@efficios.com>
9757
9758 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9759 (sparc64_adi_info): Likewise.
9760
d6bc0792
TT
97612020-05-15 Tom Tromey <tom@tromey.com>
9762
9763 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9764 block_objfile.
9765 (lookup_objfile_from_block): Remove.
9766 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9767 (lookup_global_symbol): Use block_objfile.
9768 * symtab.h (lookup_objfile_from_block): Don't declare.
9769 * printcmd.c (clear_dangling_display_expressions): Use
9770 block_objfile.
9771 * parse.c (operator_check_standard): Use block_objfile.
9772
8c14c3a3
TT
97732020-05-15 Tom Tromey <tom@tromey.com>
9774
9775 * language.c (language_alloc_type_symbol): Set
9776 SYMBOL_SECTION.
9777 * symtab.c (initialize_objfile_symbol): Remove.
9778 (allocate_symbol): Remove.
9779 (allocate_template_symbol): Remove.
9780 * dwarf2/read.c (fixup_go_packaging): Use "new".
9781 (new_symbol): Use "new".
9782 (read_variable): Don't call initialize_objfile_symbol. Use
9783 "new".
9784 (read_func_scope): Use "new".
9785 * xcoffread.c (process_xcoff_symbol): Don't call
9786 initialize_objfile_symbol.
9787 (SYMBOL_DUP): Remove.
9788 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9789 "new".
9790 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9791 (allocate_template_symbol): Don't declare.
9792 (struct symbol): Add copy constructor. Change defaults.
9793 * jit.c (finalize_symtab): Use "new".
9794 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9795 Use "new".
9796 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9797 (common_block_end): Use "new".
9798 * mdebugread.c (parse_symbol): Use "new".
9799 (new_symbol): Likewise.
9800
5b4a1a8d
PW
98012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9802
9803 * NEWS: Mention changes to help and apropos.
9804
57b4f16e
PW
98052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9806
9807 * command.h (enum command_class): Improve comments, document
9808 that class_alias is for user-defined aliases, give the class
9809 name for each class, remove unused class_xdb.
9810 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9811 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9812 by a precise class.
9813 * infcmd.c (_initialize_infcmd): Likewise.
9814 * reverse.c (_initialize_reverse): Likewise.
9815 * stack.c (_initialize_stack): Likewise.
9816 * symfile.c (_initialize_symfile): Likewise.
9817 * tracepoint.c (_initialize_tracepoint): Likewise.
9818
7c05caf7
PW
98192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9820
9821 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9822 when their aliased command is traversed.
9823 (help_cmd): Add fput_command_names_styled call to
9824 output command name and aliases when command has an alias.
9825
3b3aaacb
PW
98262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9827
9828 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9829 * cli/cli-decode.c (help_cmd_list): Declare as static,
9830 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9831 a command together with the command.
9832 (fput_command_name_styled, fput_command_names_styled): New functions.
9833 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9834 fput_command_name_styled.
9835 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9836 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9837
7aa1b46f
PW
98382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9839
9840 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9841 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9842 * command.h (cmd_show_list): Likewise.
9843 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9844 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9845
89bcba74
PW
98462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9847
9848 * unittests/command-def-selftests.c (traverse_command_structure):
9849 Verify all commands of a list have the same prefix command and
9850 that only the top cmdlist commands have a null prefix.
9851
3f4d92eb
PW
98522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9853
9854 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9855 as prefix, not one of its aliases.
9856 (set_cmd_prefix): Remove.
9857 (do_add_cmd): Centralize the setting of the prefix of a command, when
9858 command is defined after its full chain of prefix commands.
9859 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9860 (add_setshow_cmd_full): Likewise.
9861 (update_prefix_field_of_prefixed_commands): New function.
9862 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9863 update_prefix_field_of_prefixed_commands.
9864 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9865 addresses of remote_set_cmdlist and remote_show_cmdlist given
9866 as argument, not the address of an argument.
9867 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9868 * gdb/remote.c (_initialize_remote): Likewise.
9869
0605465f
PW
98702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9871
9872 * cli/cli-cmds.c (alias_command): Check for an existing alias
9873 using lookup_cmd_composition, as valid_command_p is too strict
9874 and forbids aliases that are the prefix of an existing alias
9875 or command.
9876 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9877 command is properly recognised as a valid command.
9878
58e6ac70
PW
98792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9880
9881 * unittests/help-doc-selftests.c: Rename to
9882 unittests/command-def-selftests.c
9883 * unittests/command-def-selftests.c (help_doc_tests): Update some
9884 comments.
9885 (command_structure_tests, traverse_command_structure): New namespace
9886 and function.
9887 (command_structure_invariants_tests): New function.
9888 (_initialize_command_def_selftests) Renamed from
9889 _initialize_help_doc_selftests, register command_structure_invariants
9890 selftest.
9891
a7b9ceb8
PW
98922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9893
9894 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9895 an alias of 'show'.
9896
b2188a06
JB
98972020-05-15 Joel Brobecker <brobecker@adacore.com>
9898
9899 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9900 ada_is_fixed_point_type. Update all callers.
9901 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9902 all callers.
9903 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9904 Update all callers.
9905 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9906 print_fixed_point_type. Update all callers.
9907 * ada-valprint.c (ada_value_print_num): Replace call to
9908 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9909
a51951c2
KB
99102020-05-14 Kevin Buettner <kevinb@redhat.com>
9911
9912 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9913 processors.
9914 (cpu_supports_bts): Add CV_AMD case.
9915
29d6859f
LM
99162020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9917 Simon Marchi <simon.marchi@efficios.com>
9918
9919 * infrun.c (stop_all_threads): Collect multiple wait events at
9920 each pass.
9921
78134374
SM
99222020-05-14 Simon Marchi <simon.marchi@efficios.com>
9923
9924 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9925 type::code instead.
9926
67607e24
SM
99272020-05-14 Simon Marchi <simon.marchi@efficios.com>
9928
9929 * gdbtypes.h (struct type) <code, set_code>: New methods.
9930 (TYPE_CODE): Use type::code. Change all call sites used to set
9931 the code to use type::set_code instead.
9932
a05575d3
TBA
99332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9934 Tom de Vries <tdevries@suse.de>
9935 Pedro Alves <palves@redhat.com>
9936
9937 PR threads/25478
9938 * infrun.c (stop_all_threads): Do NOT ignore
9939 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9940 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9941 received.
9942 (handle_no_resumed): Remove code handling a live inferior with no
9943 threads.
9944 * remote.c (has_single_non_exited_thread): New.
9945 (remote_target::update_thread_list): Do not delete a thread if is
9946 the last thread of the process.
9947 * thread.c (thread_select): Call delete_exited_threads instead of
9948 prune_threads.
9949
6ad82919
TBA
99502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9951
9952 * infrun.c (stop_all_threads): Enable/disable thread events of all
9953 targets. Move a debug message denoting the end of the function
9954 into the SCOPED_EXIT block.
9955
d890404b
TBA
99562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9957
9958 * process-stratum-target.h: Include <set>.
9959 (all_non_exited_process_targets, switch_to_target_no_thread): New
9960 function declarations.
9961 * process-stratum-target.c (all_non_exited_process_targets)
9962 (switch_to_target_no_thread): New function implementations.
9963
293b3ebc
TBA
99642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9965
9966 * infrun.c (handle_inferior_event): Extract out a piece of code
9967 into...
9968 (mark_non_executing_threads): ...this new function.
9969
7ca9b62a
TBA
99702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9971
9972 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9973 use.
9974
fc75c28b
TBA
99752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9976
9977 * regcache.c (regcache_read_pc_protected): New function
9978 implementation that returns 0 if the PC cannot read via
9979 'regcache_read_pc'.
9980 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9981 instead of 'regcache_read_pc'.
9982 (keep_going_pass_signal): Ditto.
9983
a89febbd
TT
99842020-05-13 Tom Tromey <tromey@adacore.com>
9985
9986 * ada-lang.c (align_value): Remove.
9987 (ada_template_to_fixed_record_type_1): Use align_up.
9988
f7e23710
TBA
99892020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9990
9991 * async-event.c: Update the copyright year.
9992 * async-event.h: Update the copyright year.
9993
02ff80c2
SM
99942020-05-12 Simon Marchi <simon.marchi@efficios.com>
9995
9996 * objfiles.h (is_addr_in_objfile,
9997 shared_objfile_contains_address_p): Return bool.
9998 * objfile.c (is_addr_in_objfile,
9999 shared_objfile_contains_address_p): Return bool.
10000
4fd6c7e8
TT
100012020-05-11 Tom Tromey <tromey@adacore.com>
10002
10003 * cli/cli-cmds.c (info_command): Restore.
10004 (_initialize_cli_cmds): Use add_prefix_command for "info".
10005 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10006
5eb68a39
TT
100072020-05-11 Tom Tromey <tromey@adacore.com>
10008
10009 * ada-lang.c (ada_value_primitive_field): Now public.
10010 * ada-lang.h (ada_value_primitive_field): Declare.
10011 * ada-valprint.c (print_field_values): Use
10012 ada_value_primitive_field for wrapper fields.
10013
7666722f
TV
100142020-05-11 Tom de Vries <tdevries@suse.de>
10015
10016 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10017 MODULE_DOMAIN.
10018
3ee6bb11
TV
100192020-05-11 Tom de Vries <tdevries@suse.de>
10020
10021 PR symtab/25941
10022 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10023 with length 0, if not gdb-produced.
10024 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10025
43434996
TV
100262020-05-09 Tom de Vries <tdevries@suse.de>
10027
10028 PR gdb/25955
10029 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10030 calculation.
10031
2f78cffc
TT
100322020-05-09 Tom Tromey <tom@tromey.com>
10033
10034 * top.c (server_command): Now bool.
10035 * top.h (server_command): Now bool.
10036
4f7bc5ed
TT
100372020-05-08 Tom Tromey <tromey@adacore.com>
10038
10039 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10040 already being processed.
10041
8be4b118
TT
100422020-05-08 Tom Tromey <tom@tromey.com>
10043
10044 * printcmd.c (struct display) <next>: Remove.
10045 <display>: New constructor.
10046 <exp_string>: Now a std::string.
10047 <enabled_p>: Now a bool.
10048 (display_number): Move definition earlier.
10049 (displays): Rename from display_chain. Now a std::vector.
10050 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10051 (display_command): Update.
10052 (do_one_display, disable_display)
10053 (enable_disable_display_command, do_enable_disable_display):
10054 Update.
10055 (free_display): Remove.
10056 (clear_displays): Rewrite.
10057 (delete_display): Update.
10058 (map_display_numbers): Use function_view. Remove "data"
10059 parameter. Update.
10060 (do_delete_display): Remove.
10061 (undisplay_command): Update.
10062 (do_one_display, do_displays, disable_display)
10063 (info_display_command): Update.
10064 (do_enable_disable_display): Remove.
10065 (enable_disable_display_command)
10066 (clear_dangling_display_expressions): Update.
10067
94c93c35
TT
100682020-05-08 Tom Tromey <tom@tromey.com>
10069
10070 * symtab.c (set_symbol_cache_size)
10071 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10072 (maintenance_print_symbol_cache_statistics): Update.
10073 * symmisc.c (print_symbol_bcache_statistics)
10074 (print_objfile_statistics, maintenance_print_objfiles)
10075 (maintenance_info_symtabs, maintenance_check_symtabs)
10076 (maintenance_expand_symtabs, maintenance_info_line_tables):
10077 Update.
10078 * symfile-debug.c (set_debug_symfile): Update.
10079 * source.c (forget_cached_source_info): Update.
10080 * python/python.c (gdbpy_progspaces): Update.
10081 * psymtab.c (maintenance_info_psymtabs): Update.
10082 * probe.c (parse_probes): Update.
10083 * linespec.c (iterate_over_all_matching_symtabs)
10084 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10085 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10086 * exec.c (exec_target::close): Update.
10087 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10088 * breakpoint.c (print_one_breakpoint_location)
10089 (create_longjmp_master_breakpoint)
10090 (create_std_terminate_master_breakpoint): Update.
10091 * progspace.c (program_spaces): Now a std::vector.
10092 (maybe_new_address_space): Update.
10093 (add_program_space): Remove.
10094 (program_space::program_space): Update.
10095 (remove_program_space): Update.
10096 (number_of_program_spaces): Remove.
10097 (print_program_space, update_address_spaces): Update.
10098 * progspace.h (program_spaces): Change type.
10099 (ALL_PSPACES): Remove.
10100 (number_of_program_spaces): Don't declare.
10101 (struct program_space) <next>: Remove.
10102
a1fd1ac9
TT
101032020-05-08 Tom Tromey <tom@tromey.com>
10104
10105 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10106 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10107 (enable_break): Update.
10108 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10109 (frv_fdpic_find_canonical_descriptor): Update.
10110 (frv_fetch_objfile_link_map): Update.
10111 * progspace.c (program_space::free_all_objfiles): Update.
10112 (program_space::solibs): New method.
10113 * progspace.h (struct program_space) <solibs>: New method.
10114 * solist.h (master_so_list): Don't declare.
10115 (ALL_SO_LIBS): Remove.
10116 * solib.h (so_list_head): Remove.
10117 (update_solib_list): Update comment.
10118 * solib.c (master_so_list): Remove.
10119 (solib_used, update_solib_list, solib_add)
10120 (info_sharedlibrary_command, clear_solib)
10121 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10122
38eae084
TT
101232020-05-08 Tom Tromey <tom@tromey.com>
10124
10125 * extension.c (extension_languages): Now a std::array.
10126 (ALL_EXTENSION_LANGUAGES): Remove.
10127 (get_ext_lang_defn, get_ext_lang_of_file)
10128 (eval_ext_lang_from_control_command): Update.
10129 (finish_ext_lang_initialization)
10130 (auto_load_ext_lang_scripts_for_objfile)
10131 (ext_lang_type_printers::ext_lang_type_printers)
10132 (apply_ext_lang_type_printers)
10133 (ext_lang_type_printers::~ext_lang_type_printers)
10134 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10135 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10136 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10137 (get_matching_xmethod_workers, ext_lang_colorize)
10138 (ext_lang_before_prompt): Update.
10139 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10140
596dc4ad
TT
101412020-05-08 Tom Tromey <tom@tromey.com>
10142
10143 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10144 overload.
10145 <swap_string, m_string>: Remove.
10146 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10147 Update.
10148 * stabsread.c (define_symbol, read_type): Update.
10149 * linespec.c (find_linespec_symbols): Update.
10150 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10151 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10152 * dbxread.c (read_dbx_symtab): Update.
10153 * cp-support.h (cp_canonicalize_string_full)
10154 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10155 Return unique_xmalloc_ptr.
10156 * cp-support.c (inspect_type): Update.
10157 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10158 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10159 Likewise.
10160 * c-typeprint.c (print_name_maybe_canonical): Update.
10161 * break-catch-throw.c (check_status_exception_catchpoint):
10162 Update.
10163
bf4cb9be
TV
101642020-05-08 Tom de Vries <tdevries@suse.de>
10165
10166 * infrun.c (follow_fork): Copy current_line and current_symtab to
10167 child thread.
10168
a1b68f28
SM
101692020-05-07 Simon Marchi <simon.marchi@efficios.com>
10170
10171 * async-event.c (struct async_signal_handler, struct
10172 async_event_handler): Reformat, remove typedef.
10173
98d48915
SM
101742020-05-07 Simon Marchi <simon.marchi@efficios.com>
10175
10176 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10177 access thistype->main_type->dyn_prop_list directly.
10178
7aa91313
SM
101792020-05-07 Simon Marchi <simon.marchi@efficios.com>
10180
10181 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10182 (remove_dyn_prop): Remove. Update all users to use
10183 type::remove_dyn_prop.
10184 * gdbtypes.c (remove_dyn_prop): Rename to...
10185 (type::remove_dyn_prop): ... this.
10186
5c54719c
SM
101872020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10188
10189 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10190 (add_dyn_prop): Remove. Update all users to use
10191 type::add_dyn_prop.
10192 * gdbtypes.c (add_dyn_prop): Rename to...
10193 (type::add_dyn_prop): ... this.
10194
24e99c6c
SM
101952020-05-07 Simon Marchi <simon.marchi@efficios.com>
10196
10197 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10198 (get_dyn_prop): Remove. Update all users to use
10199 type::dyn_prop.
10200 * gdbtypes.c (get_dyn_prop): Rename to...
10201 (type::dyn_prop): ... this.
10202
0d4bf016
SM
102032020-05-06 Simon Marchi <simon.marchi@efficios.com>
10204
10205 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10206
ac4a4f1c
SM
102072020-05-06 Simon Marchi <simon.marchi@efficios.com>
10208
10209 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10210 instruction, skip it if it's there.
10211
a3bbacc1
SM
102122020-05-05 Simon Marchi <simon.marchi@efficios.com>
10213
10214 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10215
c3236f84
SM
102162020-05-04 Simon Marchi <simon.marchi@efficios.com>
10217
10218 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10219 * gdbtypes.c (recursive_dump_type): Remove use of
10220 TYPE_INCOMPLETE.
10221
3b6acaee
TT
102222020-05-03 Tom Tromey <tom@tromey.com>
10223
10224 * breakpoint.c (catch_command, tcatch_command): Remove.
10225 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10226 add_show_prefix_cmd.
10227 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10228 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10229 Remove.
10230 (add_internal_problem_command): Use add_basic_prefix_cmd,
10231 add_show_prefix_cmd.
10232 * mips-tdep.c (set_mipsfpu_command): Remove.
10233 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10234 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10235 (_initialize_index_cache): Use add_basic_prefix_cmd.
10236 * memattr.c (dummy_cmd): Remove.
10237 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10238 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10239 (_initialize_tui_win): Use add_basic_prefix_cmd,
10240 add_show_prefix_cmd.
10241 * cli/cli-logging.c (set_logging_command): Remove.
10242 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10243 add_show_prefix_cmd.
10244 (show_logging_command): Remove.
10245 * target.c (target_command): Remove.
10246 (add_target): Use add_basic_prefix_cmd.
10247
a51119cd
HD
102482020-05-02 Hannes Domani <ssbssa@yahoo.de>
10249
10250 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10251
652fc23a 102522020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10253
652fc23a
PW
10254 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10255 info_command.
10256
117539e6
KR
102572020-04-30 Kamil Rytarowski <n54@gmx.com>
10258
10259 * nbsd-nat.c (nbsd_enable_proc_events)
10260 (nbsd_nat_target::post_startup_inferior): Add.
10261 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10262 (nbsd_nat_target::update_thread_list): Rewrite.
10263 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10264 "PTRACE_LWP_CREATE".
10265 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10266
102e38eb 102672020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10268
102e38eb
PW
10269 * stack.c (_initialize_stack): Remove duplicated creation
10270 of "frame" command and "f" alias.
10271
ee9d1e5f
HD
102722020-04-30 Hannes Domani <ssbssa@yahoo.de>
10273
10274 PR gdb/18706
10275 * gdbtypes.c (check_typedef): Calculate size of array of
10276 stubbed type.
10277
627c7fb8
HD
102782020-04-30 Hannes Domani <ssbssa@yahoo.de>
10279
10280 PR gdb/15559
10281 * i386-tdep.c (i386_push_dummy_call): Call
10282 i386_thiscall_push_dummy_call.
10283 (i386_thiscall_push_dummy_call): New function.
10284 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10285 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10286 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10287
ffc2844e
SM
102882020-04-29 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * gdbarch.sh (do_read): Add shellcheck disable directive for
10291 warning SC2162.
10292
1207375d
SM
102932020-04-29 Simon Marchi <simon.marchi@efficios.com>
10294
10295 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10296 "referenced but not assigned" warning.
10297
9fdb2916
SM
102982020-04-29 Simon Marchi <simon.marchi@efficios.com>
10299
10300 * gdbarch.sh: Remove code that sets fallbackdefault.
10301
759cea5e
SM
103022020-04-29 Simon Marchi <simon.marchi@efficios.com>
10303
10304 * gdbarch.sh: Use shell operators && and || instead of
10305 -a and -o.
10306
cb02ab24
SM
103072020-04-29 Simon Marchi <simon.marchi@efficios.com>
10308
10309 * gdbarch.sh: Use $(...) instead of `...`.
10310
a6fc5ffc
SM
103112020-04-29 Simon Marchi <simon.marchi@efficios.com>
10312
10313 * gdbarch.sh: Use double quotes around variables.
10314
8d113d13
SM
103152020-04-29 Simon Marchi <simon.marchi@efficios.com>
10316
10317 * gdbarch.sh: Use %s with printf, instead of variables in the
10318 format string.
10319
ed6acedd
TT
103202020-04-29 Tom Tromey <tromey@adacore.com>
10321
10322 PR ada/25875:
10323 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10324 type fields here.
10325 (read_enumeration_type): Call
10326 update_enumeration_type_from_children later. Update comments.
10327 (process_enumeration_scope): Don't create type fields.
10328
b68b1b58
KR
103292020-04-29 Kamil Rytarowski <n54@gmx.com>
10330
10331 * nbsd-tdep.c: Include "xml-syscall.h".
10332 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10333
f94b2e03
KR
103342020-04-29 Kamil Rytarowski <n54@gmx.com>
10335
10336 * nbsd-nat.c: Include "sys/wait.h".
10337 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10338 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10339 (nbsd_nat_target::remove_exec_catchpoint)
10340 (nbsd_nat_target::set_syscall_catchpoint): Add.
10341 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10342 (nbsd_nat_target::insert_exec_catchpoint)
10343 (nbsd_nat_target::remove_exec_catchpoint)
10344 (nbsd_nat_target::set_syscall_catchpoint): Add.
10345 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10346 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10347 `nbsd_get_syscall_number'.
10348
fc49bc72
TT
103492020-04-29 Tom Tromey <tom@tromey.com>
10350
10351 * stack.c (print_block_frame_labels): Remove.
10352
d642b692
HD
103532020-04-29 Hannes Domani <ssbssa@yahoo.de>
10354
10355 PR gdb/17320
10356 * ada-valprint.c (val_print_packed_array_elements): Move array
10357 end bracket to new line.
10358 (ada_val_print_string): Remove extra spaces before first array
10359 element.
10360 * c-valprint.c (c_value_print_array): Likewise.
10361 * m2-valprint.c (m2_print_array_contents): Likewise.
10362 (m2_value_print_inner): Likewise.
10363 * p-valprint.c (pascal_value_print_inner): Likewise.
10364 * valprint.c (generic_val_print_array): Likewise.
10365 (value_print_array_elements): Move first array element and array
10366 end bracket to new line.
10367
ea90f227
TV
103682020-04-29 Tom de Vries <tdevries@suse.de>
10369
10370 PR symtab/25889
10371 * linespec.c (find_method): Fix ix calculation.
10372
4498ef4f
KR
103732020-04-28 Kamil Rytarowski <n54@gmx.com>
10374
10375 * syscalls/update-netbsd.sh: New file.
10376 * syscalls/netbsd.xml: Regenerate.
10377 * data-directory/Makefile.in: Register `netbsd.xml' in
10378 `SYSCALLS_FILES'.
10379
a55e30b5
SM
103802020-04-28 Simon Marchi <simon.marchi@efficios.com>
10381
10382 * syscalls/update-freebsd.sh: Add double quotes.
10383
2b2fbab8
TT
103842020-04-28 Tom Tromey <tom@tromey.com>
10385
10386 * NEWS: Update.
10387 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10388 (cmdpy_init): Allow class_tui.
10389
a65189c9
TV
103902020-04-28 Mark Williams <mark@myosotissp.com>
10391
10392 PR gdb/24480
10393 * dwarf2read.c: Add missing assingments to list_in_scope when
10394 start_symtab was already called.
10395
1b95cdb7
SM
103962020-04-28 Simon Marchi <simon.marchi@efficios.com>
10397
10398 PR gdb/25881
10399 * dwarf2/read.c (offset_map_type): Use
10400 gdb:hash_enum<sect_offset> as hash function.
10401
15cd93d0
TV
104022020-04-28 Tom de Vries <tdevries@suse.de>
10403
10404 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10405 with DW_AT_signature.
10406
1eb39914
SM
104072020-04-27 Simon Marchi <simon.marchi@efficios.com>
10408
10409 * configure.ac: Remove check for fs_base/gs_base in
10410 user_regs_struct.
10411 * configure: Re-generate.
10412 * config.in: Re-generate.
10413 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10414 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10415 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10416
991a3e2e
LM
104172020-04-27 Luis Machado <luis.machado@linaro.org>
10418
10419 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10420 problematic inline frame unwinding situation.
10421 * frame.c (frame_id_computed_p): New function.
10422 * frame.h (frame_id_computed_p): New prototype.
10423
361ba0e8
TT
104242020-04-26 Tom Tromey <tom@tromey.com>
10425
10426 * command.h (enum command_class) <class_pseudo>: Remove.
10427
bc3609fd
PW
104282020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10429
10430 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10431 and whitespace.
10432
b9771db7
KR
104332020-04-25 Kamil Rytarowski <n54@gmx.com>
10434
ec16513e
SM
10435 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10436 `PT_GET_PROCESS_STATE' block.
b9771db7 10437
7151c1af
TT
104382020-04-24 Tom Tromey <tom@tromey.com>
10439
10440 * symtab.h (symbol_get_demangled_name): Don't declare.
10441 * symtab.c (symbol_get_demangled_name): Remove.
10442 (general_symbol_info::natural_name)
10443 (general_symbol_info::demangled_name): Update.
10444
906bb4c5
TT
104452020-04-24 Tom Tromey <tom@tromey.com>
10446
10447 PR rust/25025:
10448 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10449
bcfe6157
TT
104502020-04-24 Tom Tromey <tom@tromey.com>
10451
10452 PR symtab/12707:
10453 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10454 exists.
10455 (new_symbol): Likewise.
10456 * compile/compile-object-load.c (get_out_value_type): Use
10457 symbol_matches_search_name.
10458
f049a313
TT
104592020-04-24 Tom Tromey <tom@tromey.com>
10460
10461 * dwarf2/read.c (add_partial_symbol): Do not call
10462 compute_and_set_names.
10463
76e288d1
TT
104642020-04-24 Tom Tromey <tom@tromey.com>
10465
10466 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10467 overload.
10468
2467f4f6
TT
104692020-04-24 Tom Tromey <tom@tromey.com>
10470
10471 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10472 (add_psymbol_to_list): New overload. Make old overload call new
10473 one.
10474 * psympriv.h (add_psymbol_to_list): New overload.
10475
e61108c9
TT
104762020-04-24 Tom Tromey <tom@tromey.com>
10477
10478 * dwarf2/read.c (partial_die_info::read) <case
10479 DW_AT_linkage_name>: Use value_as_string.
10480 (dwarf2_string_attr): Use value_as_string.
10481 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10482 method.
10483 * dwarf2/attribute.c (attribute::value_as_string): New method.
10484
8c87a452
TT
104852020-04-24 Tom Tromey <tom@tromey.com>
10486
10487 * symtab.c (general_symbol_info::natural_name)
10488 (general_symbol_info::demangled_name): Check for language_rust.
10489
787de330
TT
104902020-04-24 Tom Tromey <tom@tromey.com>
10491
10492 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10493 (dwarf2_physname): ... from here.
10494 (partial_die_info::read): Add Rust "{" hack.
10495
ff985671
TT
104962020-04-24 Tom Tromey <tom@tromey.com>
10497
10498 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10499 method.
10500 (symbol_set_demangled_name): Don't declare.
10501 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10502 symbol_set_demangled_name.
10503 (general_symbol_info::set_language)
10504 (general_symbol_info::compute_and_set_names): Update.
10505 * minsyms.c (minimal_symbol_reader::install): Update.
10506 * dwarf2/read.c (new_symbol): Update.
10507
1acda803
TT
105082020-04-24 Tom Tromey <tromey@adacore.com>
10509
10510 PR python/23662:
10511 * python/py-type.c (convert_field): Handle
10512 FIELD_LOC_KIND_DWARF_BLOCK.
10513 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10514 (typy_get_dynamic): Nw function.
10515 (type_object_getset): Add "dynamic".
10516 * NEWS: Add entry.
10517
d656f129
TT
105182020-04-24 Tom Tromey <tromey@adacore.com>
10519
10520 * ada-typeprint.c (print_choices, print_variant_part)
10521 (print_record_field_types_dynamic): New functions.
10522 (print_record_field_types): Use print_record_field_types_dynamic.
10523
7d79de9a
TT
105242020-04-24 Tom Tromey <tromey@adacore.com>
10525
10526 * dwarf2/read.c (handle_data_member_location): New overload.
10527 (dwarf2_add_field): Use it.
10528 (decode_locdesc): Add "computed" parameter. Update comment.
10529 * gdbtypes.c (is_dynamic_type_internal): Also look for
10530 FIELD_LOC_KIND_DWARF_BLOCK.
10531 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10532 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10533 virtual base classes.
10534 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10535 FIELD_LOC_KIND_DWARF_BLOCK.
10536
f8e89861
TT
105372020-04-24 Tom Tromey <tromey@adacore.com>
10538
10539 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10540 * gdbtypes.c (is_dynamic_type_internal): Check
10541 TYPE_HAS_DYNAMIC_LENGTH.
10542 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10543 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10544 New macros.
10545 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10546 constant.
10547
9c6a1327
TT
105482020-04-24 Tom Tromey <tromey@adacore.com>
10549
10550 * dwarf2/read.c (struct variant_field): Rewrite.
10551 (struct variant_part_builder): New.
10552 (struct nextfield): Remove "variant" field. Add "offset".
10553 (struct field_info): Add "current_variant_part" and
10554 "variant_parts".
10555 (alloc_discriminant_info): Remove.
10556 (alloc_rust_variant): New function.
10557 (quirk_rust_enum): Update.
10558 (dwarf2_add_field): Set "offset" member. Don't handle
10559 DW_TAG_variant_part.
10560 (offset_map_type): New typedef.
10561 (convert_variant_range, create_one_variant)
10562 (create_one_variant_part, create_variant_parts)
10563 (add_variant_property): New functions.
10564 (dwarf2_attach_fields_to_type): Call add_variant_property.
10565 (read_structure_type): Don't handle DW_TAG_variant_part.
10566 (handle_variant_part, handle_variant): New functions.
10567 (handle_struct_member_die): Use them.
10568 (process_structure_scope): Don't handle variant parts.
10569 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10570 (struct discriminant_info): Remove.
10571 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10572 (struct main_type) <flag_discriminated_union>: Remove.
10573 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10574 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10575 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10576 Update.
10577 * valops.c (value_union_variant): Remove.
10578 * value.h (value_union_variant): Don't declare.
10579
b249d2c2
TT
105802020-04-24 Tom Tromey <tromey@adacore.com>
10581
10582 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10583 (ada_value_primitive_packed_val): Update.
10584 * ada-valprint.c (ada_value_print_1): Update.
10585 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10586 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10587 just an address. Use evaluate_for_locexpr_baton.
10588 (dwarf2_evaluate_property): Update.
10589 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10590 array_view.
10591 * findvar.c (default_read_var_value): Update.
10592 * gdbtypes.c (compute_variant_fields_inner)
10593 (resolve_dynamic_type_internal): Update.
10594 (resolve_dynamic_type): Change type of valaddr parameter.
10595 * gdbtypes.h (resolve_dynamic_type): Update.
10596 * valarith.c (value_subscripted_rvalue): Update.
10597 * value.c (value_from_contents_and_address): Update.
10598
61122aa9
TT
105992020-04-24 Tom Tromey <tromey@adacore.com>
10600
10601 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10602 "push_initial_value" parameter.
10603 (dwarf2_evaluate_property): Likewise.
10604 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10605
ef83a141
TT
106062020-04-24 Tom Tromey <tromey@adacore.com>
10607
10608 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10609 (variant::matches, compute_variant_fields_recurse)
10610 (compute_variant_fields_inner, compute_variant_fields): New
10611 functions.
10612 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10613 Use resolved_type after type is made.
10614 (operator==): Add new cases.
10615 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10616 (struct discriminant_range, struct variant, struct variant_part):
10617 New.
10618 (union dynamic_prop_data) <variant_parts, original_type>: New
10619 members.
10620 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10621 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10622 constants.
10623 * value.c (unpack_bits_as_long): Now public.
10624 * value.h (unpack_bits_as_long): Declare.
10625
675127ec
TT
106262020-04-24 Tom Tromey <tromey@adacore.com>
10627
10628 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10629 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10630
9852ceef
HD
106312020-04-24 Hannes Domani <ssbssa@yahoo.de>
10632
10633 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10634
7632c6ce
KR
106352020-04-24 Kamil Rytarowski <n54@gmx.com>
10636
10637 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10638 (remove_fork_catchpoint, post_startup_inferior)
10639 (post_attach): Move...
10640 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10641 (remove_fork_catchpoint, post_startup_inferior)
10642 (post_attach): ...here.
10643 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10644 (remove_fork_catchpoint, post_startup_inferior)
10645 (post_attach): Move...
10646 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10647 (remove_fork_catchpoint, post_startup_inferior)
10648 (post_attach): ...here.
10649
7be2bb4f
TT
106502020-04-24 Tom Tromey <tromey@adacore.com>
10651
10652 * nat/windows-nat.h (struct windows_thread_info)
10653 <pc_adjusted>: New member.
10654 * windows-nat.c (windows_fetch_one_register): Check
10655 pc_adjusted.
10656 (windows_nat_target::get_windows_debug_event)
10657 (windows_nat_target::wait): Set pc_adjusted.
10658
f80cb3b4
TV
106592020-04-24 Tom de Vries <tdevries@suse.de>
10660
10661 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10662 Run gdb-add-index inside temp dir.
10663
29514b87
TT
106642020-04-23 Tom Tromey <tromey@adacore.com>
10665
10666 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10667 in loop.
10668
5939967b
LM
106692020-04-23 Luis Machado <luis.machado@linaro.org>
10670
10671 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10672 get_frame_register instead of gdbarch_unwind_pc.
10673
70bc38f5
TV
106742020-04-23 Tom de Vries <tdevries@suse.de>
10675
10676 * symtab.c (lookup_global_symbol): Prefer def over decl.
10677
de82891c
TV
106782020-04-23 Tom de Vries <tdevries@suse.de>
10679
10680 PR symtab/25807
10681 * block.c (best_symbol, better_symbol): Promote to external.
10682 * block.h (best_symbol, better_symbol): Declare.
10683 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10684 decl.
10685
ecc6c606
TT
106862020-04-23 Tom Tromey <tromey@adacore.com>
10687
10688 PR ada/25837:
10689 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10690 "const char *", not a "const std::string &".
10691 <name_and_matcher::operator==>: Update.
10692 * unittests/lookup_name_info-selftests.c: Change type of
10693 "result".
10694
740480b8
TT
106952020-04-23 Tom Tromey <tom@tromey.com>
10696
10697 * inferior.h (iterate_over_inferiors): Don't declare.
10698 * inferior.c (iterate_over_inferiors): Remove.
10699 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10700 Remove.
10701 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10702 use iterate_over_inferiors.
10703 (darwin_resume_inferior_it)
10704 (struct resume_inferior_threads_param)
10705 (darwin_resume_inferior_threads_it): Remove.
10706 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10707
ae3ab1f0
TV
107082020-04-23 Tom de Vries <tdevries@suse.de>
10709
10710 * blockframe.c (find_pc_partial_function): Use
10711 find_pc_sect_compunit_symtab rather than
10712 objfile->sf->qf->find_pc_sect_compunit_symtab.
10713
317d2668
TV
107142020-04-22 Tom de Vries <tdevries@suse.de>
10715
10716 PR symtab/25764
10717 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10718 in psymtabs.
10719
eea9e357
TV
107202020-04-22 Tom de Vries <tdevries@suse.de>
10721
10722 PR symtab/25801
10723 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10724 symtabs.
10725
3d5afab3
TV
107262020-04-22 Tom de Vries <tdevries@suse.de>
10727
10728 PR symtab/25700
10729 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10730 CU if already created.
10731
d43b7a2d
TBA
107322020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10733
10734 * infrun.c (displaced_step_fixup): Switch to the event_thread
10735 before calling displaced_step_restore, not after.
10736
d89edf9b
MM
107372020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10738
10739 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10740 its inferior is not recorded by us.
10741 (record_btrace_target_open): Replace call to
10742 all_non_exited_threads () with call to current_inferior
10743 ()->non_exited_threads ().
10744 (record_btrace_target::stop_recording): Likewise.
10745 (record_btrace_target::close): Likewise.
10746 (record_btrace_target::wait): Likewise.
10747 (record_btrace_target::record_stop_replaying): Likewise.
10748
5897fd49
MM
107492020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10750
10751 * btrace.c (btrace_enable): Throw an error on double enables and
10752 when enabling recording fails.
10753 (btrace_disable): Throw an error if the thread is not recorded.
10754
1a476b6d
MM
107552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10756
10757 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10758 request if we do not have a thread_info.
10759
4778a5f8
TV
107602020-04-21 Tom de Vries <tdevries@suse.de>
10761
10762 PR gdb/25471
10763 * thread.c
10764 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10765 exception in get_frame_id.
10766
0fa7617d
TT
107672020-04-20 Tom Tromey <tromey@adacore.com>
10768
10769 * python/python.c (struct gdbpy_event): Mark move constructor as
10770 noexcept.
10771 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10772 constructor as noexcept.
10773 * completer.h (struct completion_result): Mark move constructor as
10774 noexcept.
10775 * completer.c (completion_result::completion_result): Use
10776 initialization style. Don't call reset_match_list.
10777
ad23bda0
MS
107782020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10779
10780 * MAINTAINERS (Write After Approval): Add myself.
10781
45e1f031
TT
107822020-04-18 Tom Tromey <tom@tromey.com>
10783
10784 * windows-tdep.c (init_w32_command_list)
10785 (w32_prefix_command_valid): Restore.
10786 (_initialize_windows_tdep): Call init_w32_command_list.
10787
08feed99
TT
107882020-04-18 Tom Tromey <tom@tromey.com>
10789
10790 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10791 * value.c (value_fn_field): Update.
10792 * valops.c (find_function_in_inferior)
10793 (value_allocate_space_in_inferior): Update.
10794 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10795 Update.
10796 * tui/tui-source.c (tui_source_window::set_contents): Update.
10797 * symtab.c (lookup_global_or_static_symbol)
10798 (find_function_start_sal_1, skip_prologue_sal)
10799 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10800 * symmisc.c (dump_msymbols, dump_symtab_1)
10801 (maintenance_print_one_line_table): Update.
10802 * symfile.c (init_entry_point_info, section_is_mapped)
10803 (list_overlays_command, simple_read_overlay_table)
10804 (simple_overlay_update_1): Update.
10805 * stap-probe.c (handle_stap_probe): Update.
10806 * stabsread.c (dbx_init_float_type, define_symbol)
10807 (read_one_struct_field, read_enum_type, read_range_type): Update.
10808 * source.c (info_line_command): Update.
10809 * python/python.c (gdbpy_source_objfile_script)
10810 (gdbpy_execute_objfile_script): Update.
10811 * python/py-type.c (save_objfile_types): Update.
10812 * python/py-objfile.c (py_free_objfile): Update.
10813 * python/py-inferior.c (python_new_objfile): Update.
10814 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10815 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10816 (maintenance_check_psymtabs): Update.
10817 * printcmd.c (info_address_command): Update.
10818 * objfiles.h (struct objfile) <arch>: New method, from
10819 get_objfile_arch.
10820 (get_objfile_arch): Don't declare.
10821 * objfiles.c (get_objfile_arch): Remove.
10822 (filter_overlapping_sections): Update.
10823 * minsyms.c (msymbol_is_function): Update.
10824 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10825 (output_nondebug_symbol): Update.
10826 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10827 (mdebug_expand_psymtab): Update.
10828 * machoread.c (macho_add_oso_symfile): Update.
10829 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10830 Update.
10831 * linux-fork.c (checkpoint_command): Update.
10832 * linespec.c (convert_linespec_to_sals): Update.
10833 * jit.c (finalize_symtab): Update.
10834 * infrun.c (insert_exception_resume_from_probe): Update.
10835 * ia64-tdep.c (ia64_find_unwind_table): Update.
10836 * hppa-tdep.c (internalize_unwinds): Update.
10837 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10838 Update.
10839 * gcore.c (call_target_sbrk): Update.
10840 * elfread.c (record_minimal_symbol, elf_symtab_read)
10841 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10842 (elf_gnu_ifunc_resolve_by_got): Update.
10843 * dwarf2/read.c (create_addrmap_from_index)
10844 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10845 (read_debug_names_from_section)
10846 (process_psymtab_comp_unit_reader, add_partial_symbol)
10847 (add_partial_subprogram, process_full_comp_unit)
10848 (read_file_scope, read_func_scope, read_lexical_block_scope)
10849 (read_call_site_scope, dwarf2_ranges_read)
10850 (dwarf2_record_block_ranges, dwarf2_add_field)
10851 (mark_common_block_symbol_computed, read_tag_pointer_type)
10852 (read_tag_string_type, dwarf2_init_float_type)
10853 (dwarf2_init_complex_target_type, read_base_type)
10854 (partial_die_info::read, partial_die_info::read)
10855 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10856 (dwarf2_fetch_die_loc_sect_off): Update.
10857 * dwarf2/loc.c (dwarf2_find_location_expression)
10858 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10859 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10860 (dwarf2_loc_desc_get_symbol_read_needs)
10861 (locexpr_describe_location_piece, locexpr_describe_location_1)
10862 (loclist_describe_location): Update.
10863 * dwarf2/index-write.c (write_debug_names): Update.
10864 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10865 * dtrace-probe.c (dtrace_process_dof): Update.
10866 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10867 (process_one_symbol): Update.
10868 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10869 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10870 (coff_read_enum_type): Update.
10871 * cli/cli-cmds.c (edit_command, list_command): Update.
10872 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10873 * breakpoint.c (create_overlay_event_breakpoint)
10874 (create_longjmp_master_breakpoint)
10875 (create_std_terminate_master_breakpoint)
10876 (create_exception_master_breakpoint, get_sal_arch): Update.
10877 * block.c (block_gdbarch): Update.
10878 * annotate.c (annotate_source_line): Update.
10879
0743fc83
TT
108802020-04-17 Tom Tromey <tromey@adacore.com>
10881
10882 * auto-load.c (show_auto_load_cmd): Remove.
10883 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10884 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10885 (maintenance_print_arc_command): Remove.
10886 * tui/tui-win.c (tui_command): Remove.
10887 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10888 * tui/tui-layout.c (tui_layout_command): Remove.
10889 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10890 * python/python.c (user_set_python, user_show_python): Remove.
10891 (_initialize_python): Use add_basic_prefix_cmd,
10892 add_show_prefix_cmd.
10893 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10894 (install_gdb_commands): Use add_basic_prefix_cmd,
10895 add_show_prefix_cmd.
10896 (info_guile_command): Remove.
10897 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10898 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10899 add_show_prefix_cmd.
10900 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10901 Remove do_set and do_show parameters.
10902 * cli/cli-style.c (set_style, show_style): Remove.
10903 (_initialize_cli_style): Use add_basic_prefix_cmd,
10904 add_show_prefix_cmd.
10905 (cli_style_option::add_setshow_commands): Remove do_set and
10906 do_show parameters.
10907 (cli_style_option::add_setshow_commands): Use
10908 add_basic_prefix_cmd, add_show_prefix_cmd.
10909 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10910 (set_style_name): Remove.
10911 * cli/cli-dump.c (dump_command, append_command): Remove.
10912 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10913 (tekhex_dump_command, binary_dump_command)
10914 (binary_append_command): Remove.
10915 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10916 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10917 (init_w32_command_list): Remove; move into ...
10918 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10919 * valprint.c (set_print, show_print, set_print_raw)
10920 (show_print_raw): Remove.
10921 (_initialize_valprint): Use add_basic_prefix_cmd,
10922 add_show_prefix_cmd.
10923 * typeprint.c (set_print_type, show_print_type): Remove.
10924 (_initialize_typeprint): Use add_basic_prefix_cmd,
10925 add_show_prefix_cmd.
10926 * record.c (set_record_command, show_record_command): Remove.
10927 (_initialize_record): Use add_basic_prefix_cmd,
10928 add_show_prefix_cmd.
10929 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10930 add_show_prefix_cmd.
10931 (info_command, show_command, set_debug, show_debug): Remove.
10932 * top.h (set_history, show_history): Don't declare.
10933 * top.c (set_history, show_history): Remove.
10934 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10935 (unset_tdesc_cmd): Remove.
10936 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10937 add_show_prefix_cmd.
10938 * symtab.c (info_module_command): Remove.
10939 (_initialize_symtab): Use add_basic_prefix_cmd.
10940 * symfile.c (overlay_command): Remove.
10941 (_initialize_symfile): Use add_basic_prefix_cmd.
10942 * sparc64-tdep.c (info_adi_command): Remove.
10943 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10944 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10945 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10946 add_show_prefix_cmd.
10947 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10948 (_initialize_serial): Use add_basic_prefix_cmd,
10949 add_show_prefix_cmd.
10950 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10951 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10952 add_show_prefix_cmd.
10953 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10954 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10955 add_show_prefix_cmd.
10956 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10957 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10958 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10959 add_show_prefix_cmd.
10960 * remote.c (remote_command, set_remote_cmd): Remove.
10961 (_initialize_remote): Use add_basic_prefix_cmd.
10962 * record-full.c (set_record_full_command)
10963 (show_record_full_command): Remove.
10964 (_initialize_record_full): Use add_basic_prefix_cmd,
10965 add_show_prefix_cmd.
10966 * record-btrace.c (cmd_set_record_btrace)
10967 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10968 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10969 (cmd_show_record_btrace_pt): Remove.
10970 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10971 add_show_prefix_cmd.
10972 * ravenscar-thread.c (set_ravenscar_command)
10973 (show_ravenscar_command): Remove.
10974 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10975 add_show_prefix_cmd.
10976 * mips-tdep.c (show_mips_command, set_mips_command)
10977 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10978 add_show_prefix_cmd.
10979 * maint.c (maintenance_command, maintenance_info_command)
10980 (maintenance_check_command, maintenance_print_command)
10981 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10982 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10983 add_show_prefix_cmd.
10984 (show_per_command_cmd): Remove.
10985 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10986 Remove.
10987 (maintenance_show_test_settings_cmd): Remove.
10988 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10989 add_show_prefix_cmd.
10990 * maint-test-options.c (maintenance_test_options_command):
10991 Remove.
10992 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10993 * macrocmd.c (macro_command): Remove
10994 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10995 * language.c (set_check, show_check): Remove.
10996 (_initialize_language): Use add_basic_prefix_cmd,
10997 add_show_prefix_cmd.
10998 * infcmd.c (unset_command): Remove.
10999 (_initialize_infcmd): Use add_basic_prefix_cmd.
11000 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11001 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11002 add_show_prefix_cmd.
11003 * go32-nat.c (go32_info_dos_command): Remove.
11004 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11005 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11006 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11007 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11008 (_initialize_frame): Use add_basic_prefix_cmd,
11009 add_show_prefix_cmd.
11010 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11011 (_initialize_dcache): Use add_basic_prefix_cmd,
11012 add_show_prefix_cmd.
11013 * cp-support.c (maint_cplus_command): Remove.
11014 (_initialize_cp_support): Use add_basic_prefix_cmd.
11015 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11016 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11017 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11018 add_basic_prefix_cmd, add_show_prefix_cmd.
11019 * breakpoint.c (save_command): Remove.
11020 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11021 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11022 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11023 add_show_prefix_cmd.
11024 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11025 (set_ada_command, show_ada_command): Remove.
11026 (_initialize_ada_language): Use add_basic_prefix_cmd,
11027 add_show_prefix_cmd.
11028 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11029
3557f442
KR
110302020-04-16 Kamil Rytarowski <n54@gmx.com>
11031
11032 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11033 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11034
16197208
SM
110352020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11036
11037 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11038 warning messages.
11039
00ac85d3
SM
110402020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11041
11042 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11043 import table is not at beginning of .idata section.
11044
381ce63f
PA
110452020-04-16 Pedro Alves <palves@redhat.com>
11046
11047 * inferior.c (delete_inferior): Use delete operator directly
11048 instead of delete_program_space.
11049 * progspace.c (add_program_space): New, factored out from
11050 program_space::program_space.
11051 (remove_program_space): New, factored out from
11052 delete_program_space.
11053 (program_space::program_space): Remove intro comment. Rewrite.
11054 (program_space::~program_space): Remove intro comment. Call
11055 remove_program_space.
11056 (delete_program_space): Delete.
11057 * progspace.h (program_space::program_space): Make explicit. Move
11058 intro comment here, adjusted.
11059 (program_space::~program_space): Move intro comment here,
11060 adjusted.
11061 (delete_program_space): Remove.
11062
a010605f
TT
110632020-04-16 Tom Tromey <tromey@adacore.com>
11064
11065 * windows-nat.c (windows_nat::handle_access_violation): New
11066 function.
11067 * nat/windows-nat.h (handle_access_violation): Declare.
11068 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11069 windows-nat.c. Call handle_access_violation.
11070
efba5c23
TV
110712020-04-16 Tom de Vries <tdevries@suse.de>
11072
11073 PR symtab/25791
11074 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11075 CUs without psymtab.
11076
97ed802d
KB
110772020-04-16 Kevin Buettner <kevinb@redhat.com>
11078
11079 * python/python.c (do_start_initialization): Don't call
11080 PyEval_InitThreads for Python 3.9 and beyond.
11081
c7d64809
KR
110822020-04-15 Kamil Rytarowski <n54@gmx.com>
11083
11084 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11085 thread functions.
11086 (obsd_nat_target::wait): Likewise.
11087
ce127a96
TT
110882020-04-15 Tom Tromey <tromey@adacore.com>
11089
11090 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11091 (DEBUG_EXCEPT): Use debug_printf.
11092
99f1bc6a
AB
110932020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11094
11095 * completer.c (class completion_tracker::completion_hash_entry)
11096 <hash_name>: New member function.
11097 (completion_tracker::discard_completions): New callback to hash a
11098 completion_hash_entry, pass this to htab_create_alloc.
11099
a0e9b532
JT
111002016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11101
11102 * windows-nat.c (windows_make_so): Warn rather than stopping with
11103 an error if realpath() fails.
11104
06ca5dd4
KR
111052020-04-14 Kamil Rytarowski <n54@gmx.com>
11106
11107 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11108 (nbsd_nat_target::info_proc): Add do_status.
11109
194d088f
TV
111102020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11111 Tom de Vries <tdevries@suse.de>
11112
11113 PR symtab/25718
11114 * psympriv.h (struct partial_symtab::read_symtab)
11115 (struct partial_symtab::expand_psymtab)
11116 (struct partial_symtab::read_dependencies): Update comments.
11117 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11118 read_symtab for includer.
11119 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11120 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11121 (struct dwarf2_include_psymtab::m_readin): Remove.
11122 (struct dwarf2_include_psymtab::includer): New member function.
11123 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11124
c1a66c06
TV
111252020-04-14 Tom de Vries <tdevries@suse.de>
11126
11127 PR symtab/25720
11128 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11129 with NULL symbol_matcher and lookup_name.
11130 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11131 and lookup_name.
11132 * dwarf2/read.c (dw2_expand_symtabs_matching)
11133 (dw2_debug_names_expand_symtabs_matching): Same.
11134 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11135 Make lookup_name a pointer. Update comment.
11136 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11137 lookup_name being a pointer.
11138 * symfile.c (expand_symtabs_matching): Same.
11139 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11140 * linespec.c (iterate_over_all_matching_symtabs): Same.
11141
400b5eca
TT
111422020-04-13 Tom Tromey <tom@tromey.com>
11143
11144 * run-on-main-thread.c: Update include.
11145 * unittests/main-thread-selftests.c: Update include.
11146 * tui/tui-win.c: Update include.
11147 * tui/tui-io.c: Update include.
11148 * tui/tui-interp.c: Update include.
11149 * tui/tui-hooks.c: Update include.
11150 * top.h: Update include.
11151 * top.c: Update include.
11152 * ser-base.c: Update include.
11153 * remote.c: Update include.
11154 * remote-notif.c: Update include.
11155 * remote-fileio.c: Update include.
11156 * record-full.c: Update include.
11157 * record-btrace.c: Update include.
11158 * python/python.c: Update include.
11159 * posix-hdep.c: Update include.
11160 * mingw-hdep.c: Update include.
11161 * mi/mi-main.c: Update include.
11162 * mi/mi-interp.c: Update include.
11163 * main.c: Update include.
11164 * linux-nat.c: Update include.
11165 * interps.c: Update include.
11166 * infrun.c: Update include.
11167 * inf-loop.c: Update include.
11168 * event-top.c: Update include.
11169 * event-loop.c: Move to ../gdbsupport/.
11170 * event-loop.h: Move to ../gdbsupport/.
11171 * async-event.h: Update include.
11172 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11173
93b54c8e
TT
111742020-04-13 Tom Tromey <tom@tromey.com>
11175
11176 * tui/tui-win.c: Include async-event.h.
11177 * remote.c: Include async-event.h.
11178 * remote-notif.c: Include async-event.h.
11179 * record-full.c: Include async-event.h.
11180 * record-btrace.c: Include async-event.h.
11181 * infrun.c: Include async-event.h.
11182 * event-top.c: Include async-event.h.
11183 * event-loop.h: Move some declarations to async-event.h.
11184 * event-loop.c: Don't include ser-event.h or top.h. Move some
11185 code to async-event.c.
11186 * async-event.h: New file.
11187 * async-event.c: New file.
11188 * Makefile.in (COMMON_SFILES): Add async-event.c.
11189 (HFILES_NO_SRCDIR): Add async-event.h.
11190
c1cd3163
TT
111912020-04-13 Tom Tromey <tom@tromey.com>
11192
11193 * utils.c (flush_streams): New function.
11194 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11195
29f2bf4f
TT
111962020-04-13 Tom Tromey <tom@tromey.com>
11197
11198 * event-loop.c (handle_file_event): Use warning, not
11199 printf_unfiltered.
11200
98029d02
TT
112012020-04-13 Tom Tromey <tom@tromey.com>
11202
11203 * event-loop.c: Include <chrono>.
11204
06cc9596
TT
112052020-04-13 Tom Tromey <tom@tromey.com>
11206
11207 * gdb_select.h: Move to ../gdbsupport/.
11208 * event-loop.c: Update include path.
11209 * top.c: Update include path.
11210 * ser-base.c: Update include path.
11211 * ui-file.c: Update include path.
11212 * ser-tcp.c: Update include path.
11213 * guile/scm-ports.c: Update include path.
11214 * posix-hdep.c: Update include path.
11215 * ser-unix.c: Update include path.
11216 * gdb_usleep.c: Update include path.
11217 * mingw-hdep.c: Update include path.
11218 * inflow.c: Update include path.
11219 * infrun.c: Update include path.
11220 * event-top.c: Update include path.
11221
8ae8e197
TT
112222020-04-13 Tom Tromey <tom@tromey.com>
11223
11224 * configure: Rebuild.
11225 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11226
58cf28e8
TT
112272020-04-13 Tom Tromey <tom@tromey.com>
11228
11229 * event-loop.h (start_event_loop): Don't declare.
11230 * event-loop.c (start_event_loop): Move...
11231 * main.c (start_event_loop): ...here. Now static.
11232
b7f999ae
SDJ
112332020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11234
11235 * MAINTAINERS: Update my email address.
11236
1085dfd4
KR
112372020-04-12 Kamil Rytarowski <n54@gmx.com>
11238
11239 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11240 IP_ALL.
11241
49d1d1f5
KR
112422020-04-12 Kamil Rytarowski <n54@gmx.com>
11243
11244 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11245 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11246
b4848d2a
KR
112472020-04-12 Kamil Rytarowski <n54@gmx.com>
11248
11249 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11250 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11251
51c133d5
KR
112522020-04-12 Kamil Rytarowski <n54@gmx.com>
11253
11254 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11255
54b8cbd0
KR
112562020-04-11 Kamil Rytarowski <n54@gmx.com>
11257
11258 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11259 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11260 (nbsd_nat_target::info_proc): New functions.
11261 * nbsd-nat.c (kinfo_get_vmmap): New function.
11262 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11263 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11264 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11265 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11266 functions.
11267 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11268 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11269 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11270 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11271 (KINFO_VME_FLAG_GROWS_DOWN): New.
11272
cf83625d
AS
112732020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11274
11275 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11276 bit shift.
11277
0c4311ab
TT
112782020-04-10 Tom Tromey <tromey@adacore.com>
11279
11280 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11281
3e65b3e9
TT
112822020-04-10 Tom Tromey <tromey@adacore.com>
11283
11284 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11285 separate debug files.
11286
13302e95
HD
112872020-04-10 Hannes Domani <ssbssa@yahoo.de>
11288
11289 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11290 Move to...
11291 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11292 ... here.
11293 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11294 Check for STATUS_WX86_BREAKPOINT.
11295 (windows_nat_target::wait): Same.
11296
bdfc1e8a
TV
112972020-04-10 Tom de Vries <tdevries@suse.de>
11298
11299 PR cli/25808
11300 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11301
f4460aec
SM
113022020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11303
11304 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11305 (Write After Approval): Remove Tom de Vries.
11306
a25198bb
BE
113072020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11308
11309 revert partially:
11310 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11311
aac66a4c
SM
11312 * buildsym.c (record_line): Fix undefined behavior and preserve
11313 lines at eof.
a25198bb 11314
206c98a6
KR
113152020-04-09 Kamil Rytarowski <n54@gmx.com>
11316
11317 * auxv.h (svr4_auxv_parse): New.
11318 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11319 and generic_auxv_parse.
11320 (svr4_auxv_parse): Add.
11321 * obsd-tdep.c: Include "auxv.h".
11322 (obsd_auxv_parse): Remove.
11323 (obsd_init_abi): Remove comment.
11324 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11325 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11326 * nbsd-tdep.c: Include "auxv.h".
11327 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11328
71fbdbaf
TT
113292020-04-08 Tom Tromey <tromey@adacore.com>
11330
11331 * nat/windows-nat.h (last_wait_event): Don't declare.
11332 (wait_for_debug_event): Update comment.
11333 * nat/windows-nat.c (last_wait_event): Now static.
11334
2c1d95e8
TT
113352020-04-08 Tom Tromey <tromey@adacore.com>
11336
11337 * windows-nat.c (wait_for_debug_event): Move to
11338 nat/windows-nat.c.
11339 * nat/windows-nat.h (wait_for_debug_event): Declare.
11340 * nat/windows-nat.c (wait_for_debug_event): Move from
11341 windows-nat.c. No longer static.
11342
d2977bc4
TT
113432020-04-08 Tom Tromey <tromey@adacore.com>
11344
11345 * windows-nat.c (get_windows_debug_event): Use
11346 fetch_pending_stop.
11347 * nat/windows-nat.h (fetch_pending_stop): Declare.
11348 * nat/windows-nat.c (fetch_pending_stop): New function.
11349
e758e19c
TT
113502020-04-08 Tom Tromey <tromey@adacore.com>
11351
11352 * windows-nat.c (windows_continue): Use matching_pending_stop and
11353 continue_last_debug_event.
11354 * nat/windows-nat.h (matching_pending_stop)
11355 (continue_last_debug_event): Declare.
11356 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11357 (matching_pending_stop, continue_last_debug_event): New
11358 functions.
11359
8d30e395
TT
113602020-04-08 Tom Tromey <tromey@adacore.com>
11361
11362 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11363 (handle_exception_result): Move to nat/windows-nat.h.
11364 (DEBUG_EXCEPTION_SIMPLE): Remove.
11365 (windows_nat::handle_ms_vc_exception): New function.
11366 (handle_exception): Move to nat/windows-nat.c.
11367 (get_windows_debug_event): Update.
11368 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11369 nat/windows-nat.c.
11370 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11371 (handle_exception_result): Move from windows-nat.c.
11372 (handle_exception): Declare.
11373 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11374 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11375 windows-nat.c.
11376
29de418d
TT
113772020-04-08 Tom Tromey <tromey@adacore.com>
11378
11379 * windows-nat.c (exception_count, event_count): Remove.
11380 (handle_exception, get_windows_debug_event)
11381 (do_initial_windows_stuff): Update.
11382
a816ba18
TT
113832020-04-08 Tom Tromey <tromey@adacore.com>
11384
11385 * windows-nat.c (windows_nat::handle_load_dll)
11386 (windows_nat::handle_unload_dll): Rename. No longer static.
11387 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11388 Declare.
11389
a00caa12
TT
113902020-04-08 Tom Tromey <tromey@adacore.com>
11391
11392 * complaints.h (stop_whining): Declare at top-level.
11393 (complaint): Don't declare stop_whining.
11394
d41b524f
TT
113952020-04-08 Tom Tromey <tromey@adacore.com>
11396
11397 * windows-nat.c (windows_nat::handle_output_debug_string):
11398 Rename. No longer static.
11399 * nat/windows-nat.h (handle_output_debug_string): Declare.
11400
3c76026d
TT
114012020-04-08 Tom Tromey <tromey@adacore.com>
11402
11403 * windows-nat.c (current_process_handle, current_process_id)
11404 (main_thread_id, last_sig, current_event, last_wait_event)
11405 (current_windows_thread, desired_stop_thread_id, pending_stops)
11406 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11407 (display_selectors, fake_create_process)
11408 (get_windows_debug_event): Update.
11409 * nat/windows-nat.h (current_process_handle, current_process_id)
11410 (main_thread_id, last_sig, current_event, last_wait_event)
11411 (current_windows_thread, desired_stop_thread_id, pending_stops)
11412 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11413 * nat/windows-nat.c (current_process_handle, current_process_id)
11414 (main_thread_id, last_sig, current_event, last_wait_event)
11415 (current_windows_thread, desired_stop_thread_id, pending_stops)
11416 (siginfo_er): New globals. Move from windows-nat.c.
11417
9d8679cc
TT
114182020-04-08 Tom Tromey <tromey@adacore.com>
11419
11420 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11421 (handle_load_dll): Update.
11422 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11423
28688adf
TT
114242020-04-08 Tom Tromey <tromey@adacore.com>
11425
11426 * windows-nat.c (enum thread_disposition_type): Move to
11427 nat/windows-nat.h.
11428 (windows_nat::thread_rec): Rename from thread_rec. No longer
11429 static.
11430 (windows_add_thread, windows_nat_target::fetch_registers)
11431 (windows_nat_target::store_registers, handle_exception)
11432 (windows_nat_target::resume, get_windows_debug_event)
11433 (windows_nat_target::get_tib_address)
11434 (windows_nat_target::thread_name)
11435 (windows_nat_target::thread_alive): Update.
11436 * nat/windows-nat.h (enum thread_disposition_type): Move from
11437 windows-nat.c.
11438 (thread_rec): Declare.
11439
4834dad0
TT
114402020-04-08 Tom Tromey <tromey@adacore.com>
11441
11442 * windows-nat.c: Add "using namespace".
11443 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11444 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11445
65bafd5b
TT
114462020-04-08 Tom Tromey <tromey@adacore.com>
11447
11448 * nat/windows-nat.h (struct windows_thread_info): Declare
11449 destructor.
11450 * nat/windows-nat.c (~windows_thread_info): New.
11451
0a4afda3
TT
114522020-04-08 Tom Tromey <tromey@adacore.com>
11453
11454 PR gdb/22992
11455 * windows-nat.c (current_event): Update comment.
11456 (last_wait_event, desired_stop_thread_id): New globals.
11457 (struct pending_stop): New.
11458 (pending_stops): New global.
11459 (windows_nat_target) <stopped_by_sw_breakpoint>
11460 <supports_stopped_by_sw_breakpoint>: New methods.
11461 (windows_fetch_one_register): Add assertions. Adjust PC.
11462 (windows_continue): Handle pending stops. Suspend other threads
11463 when stepping. Use last_wait_event
11464 (wait_for_debug_event): New function.
11465 (get_windows_debug_event): Use wait_for_debug_event. Handle
11466 pending stops. Queue spurious stops.
11467 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11468 (windows_nat_target::kill): Use wait_for_debug_event.
11469 * nat/windows-nat.h (struct windows_thread_info)
11470 <stopped_at_software_breakpoint>: New field.
11471 * nat/windows-nat.c (windows_thread_info::resume): Clear
11472 stopped_at_software_breakpoint.
11473
8e61ebec
TT
114742020-04-08 Tom Tromey <tromey@adacore.com>
11475
11476 * windows-nat.c (enum thread_disposition_type): New.
11477 (thread_rec): Replace "get_context" parameter with "disposition";
11478 change type.
11479 (windows_add_thread, windows_nat_target::fetch_registers)
11480 (windows_nat_target::store_registers, handle_exception)
11481 (windows_nat_target::resume, get_windows_debug_event)
11482 (windows_nat_target::get_tib_address)
11483 (windows_nat_target::thread_name)
11484 (windows_nat_target::thread_alive): Update.
11485
98a03287
TT
114862020-04-08 Tom Tromey <tromey@adacore.com>
11487
11488 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11489 (windows_continue): Use windows_continue::resume.
11490 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11491 resume>: Declare new methods.
11492 * nat/windows-nat.c: New file.
11493 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11494
7c7411bc
TT
114952020-04-08 Tom Tromey <tromey@adacore.com>
11496
11497 * windows-nat.c (windows_add_thread, windows_delete_thread)
11498 (windows_nat_target::fetch_registers)
11499 (windows_nat_target::store_registers, fake_create_process)
11500 (windows_nat_target::resume, windows_nat_target::resume)
11501 (get_windows_debug_event, windows_nat_target::wait)
11502 (windows_nat_target::pid_to_str)
11503 (windows_nat_target::get_tib_address)
11504 (windows_nat_target::get_ada_task_ptid)
11505 (windows_nat_target::thread_name)
11506 (windows_nat_target::thread_alive): Use lwp, not tid.
11507
2950fdf7
TT
115082020-04-08 Tom Tromey <tromey@adacore.com>
11509
11510 * windows-nat.c (handle_exception)
11511 (windows_nat_target::thread_name): Update.
11512 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11513 <name>: Now unique_xmalloc_ptr.
11514
62fe396b
TT
115152020-04-08 Tom Tromey <tromey@adacore.com>
11516
11517 * windows-nat.c (thread_rec)
11518 (windows_nat_target::fetch_registers): Update.
11519 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11520 Update comment.
11521 <debug_registers_changed, reload_context>: Now bool.
11522
e9534bd2
TT
115232020-04-08 Tom Tromey <tromey@adacore.com>
11524
11525 * windows-nat.c (windows_add_thread): Use new.
11526 (windows_init_thread_list, windows_delete_thread): Use delete.
11527 (get_windows_debug_event): Update.
11528 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11529 destructor, and initializers.
11530
ae1f8880
TT
115312020-04-08 Tom Tromey <tromey@adacore.com>
11532
11533 * windows-nat.c (struct windows_thread_info): Remove.
11534 * nat/windows-nat.h: New file.
11535
55a1e039
TT
115362020-04-08 Tom Tromey <tromey@adacore.com>
11537
11538 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11539 (thread_rec, windows_add_thread, windows_delete_thread)
11540 (windows_continue): Update.
11541
93366324
TT
115422020-04-08 Tom Tromey <tromey@adacore.com>
11543
11544 * windows-nat.c (struct windows_thread_info): Remove typedef.
11545 (thread_head): Remove.
11546 (thread_list): New global.
11547 (thread_rec, windows_add_thread, windows_init_thread_list)
11548 (windows_delete_thread, windows_continue): Update.
11549
0f2265e2
SM
115502020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11551
11552 * windows-tdep.h (windows_init_abi): Add comment.
11553 (cygwin_init_abi): New declaration.
11554 * windows-tdep.c: Split signal enumeration in two, one for
11555 Windows and one for Cygwin.
11556 (windows_gdb_signal_to_target): Only deal with signal of the
11557 Windows OS ABI.
11558 (cygwin_gdb_signal_to_target): New function.
11559 (windows_init_abi): Rename to windows_init_abi_common, don't set
11560 gdb_signal_to_target gdbarch method. Add new new function with
11561 this name.
11562 (cygwin_init_abi): New function.
11563 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11564 comment. Don't call windows_init_abi.
11565 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11566 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11567 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11568 i386_windows_init_abi_common, don't call windows_init_abi. Add
11569 a new function of this name.
11570 (i386_cygwin_init_abi): New function.
11571 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11572 OS ABI Cygwin.
11573
3810f182
SM
115742020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11575
11576 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11577 parameter.c.
11578 (dwarf2_read_gdb_index): Update.
11579
063f8e80
KR
115802020-04-07 Kamil Rytarowski <n54@gmx.com>
11581
11582 * nbsd-tdep.c: Include "objfiles.h".
11583 (nbsd_skip_solib_resolver): New.
11584 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11585
85a9510c 115862020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11587
11588 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11589 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11590 with DW_LLE_base_addressx are being emitted in DWARFv5.
11591 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11592 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11593 unsigned integer.
11594
9fc3eaae 115952020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11596
11597 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11598 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11599 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11600 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11601 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11602 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11603 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11604
11605
41144253 116062020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11607
11608 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11609 (read_loclist_index): New function definition.
11610 (lookup_loclist_base): New function definition.
11611 (read_loclist_header): New function definition.
11612 (dwarf2_cu): Add loclist_base and loclist_header field.
11613 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11614 (read_full_die_1): Read the value of DW_AT_loclists_base.
11615 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11616 (read_attribute_value): Handle DW_FORM_loclistx.
11617 (skip_one_die): Handle DW_FORM_loclistx.
11618 (loclist_header): New structure declaration.
11619 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11620
9f4e76a4
SM
116212020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11622
11623 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11624 constructor. Remove `addr` parameter from other constructor and
11625 add `per_cu` parameter.
11626 * dwarf2/read.c (create_partial_symtab): Update.
11627
25c11aca
TV
116282020-04-07 Tom de Vries <tdevries@suse.de>
11629
11630 PR symtab/25796
11631 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11632 (partial_die_info::fixup): Inherit has_const_value.
11633
5707e24b
TV
116342020-04-07 Tom de Vries <tdevries@suse.de>
11635
11636 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11637 symbols without address.
11638
05f00e22
KR
116392020-04-06 Kamil Rytarowski <n54@gmx.com>
11640
11641 * nbsd-nat.h (struct thread_info): Add forward declaration.
11642 (nbsd_nat_target::thread_alive): Add.
11643 (nbsd_nat_target::thread_name): Likewise.
11644 (nbsd_nat_target::update_thread_list): Likewise.
11645 (update_thread_list::post_attach): Likewise.
11646 (post_attach::pid_to_str): Likewise.
11647 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11648 (nbsd_thread_lister): Add.
11649 (nbsd_nat_target::thread_alive): Likewise.
11650 (nbsd_nat_target::thread_name): Likewise.
11651 (nbsd_add_threads): Likewise.
11652 (update_thread_list::post_attach): Likewise.
11653 (nbsd_nat_target::update_thread_list): Likewise.
11654 (post_attach::pid_to_str): Likewise.
11655
6ee448cc
TT
116562020-04-06 Tom Tromey <tromey@adacore.com>
11657
11658 * ada-valprint.c (print_variant_part): Extract the variant field.
11659 (print_field_values): Use the field as the outer value when
11660 recursing.
11661
dea34e8c
TT
116622020-04-06 Tom Tromey <tromey@adacore.com>
11663
11664 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11665 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11666 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11667 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11668 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11669
93689ce9
TT
116702020-04-06 Tom Tromey <tromey@adacore.com>
11671
11672 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11673 TYPE_CODE_ERROR.
11674
79743962
KR
116752020-04-06 Kamil Rytarowski <n54@gmx.com>
11676
11677 * nbsd-tdep.c: Include "gdbarch.h".
11678 Define enum with NetBSD signal numbers.
11679 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11680 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11681 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11682 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11683 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11684 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11685 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11686 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11687 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11688 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11689 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11690 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11691
9e7c9a03
HD
116922020-04-03 Hannes Domani <ssbssa@yahoo.de>
11693
11694 PR gdb/25325
11695 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11696
d9e49b61
TT
116972020-04-03 Tom Tromey <tromey@adacore.com>
11698
11699 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11700 Read constant block.
11701
e0fc5c3f
SM
117022020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11703
11704 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11705 (gdb_bfd_get_full_section_contents): New declaration.
11706 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11707 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11708 gdb_bfd_get_full_section_contents.
11709
e2ff18a0
SM
117102020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11711
11712 * exec.c (build_section_table): Replace internal_error with
11713 gdb_assert.
11714 (section_table_xfer_memory_partial): Likewise.
11715 * mdebugread.c (parse_partial_symbols): Likewise.
11716 * psymtab.c (lookup_partial_symbol): Likewise.
11717 * utils.c (wrap_here): Likewise.
11718
0830d301
TT
117192020-04-02 Tom Tromey <tromey@adacore.com>
11720
11721 * f-lang.c (build_fortran_types): Use arch_type to initialize
11722 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11723
e7da7f8f
TT
117242020-04-02 Tom Tromey <tromey@adacore.com>
11725
11726 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11727 of attributes.
11728
c90d28ac
AB
117292020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11730 Bernd Edlinger <bernd.edlinger@hotmail.de>
11731 Tom Tromey <tromey@adacore.com>
11732
11733 * buildsym.c (buildsym_compunit::record_line): Remove
11734 deduplication code.
11735
1aa98955
TV
117362020-04-02 Tom de Vries <tdevries@suse.de>
11737
11738 PR ada/24671
11739 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11740
d3214198
TV
117412020-04-02 Tom de Vries <tdevries@suse.de>
11742
11743 * dwarf2/read.c (dwarf2_gdb_index_functions,
11744 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11745 NULL.
11746 * psymtab.c (psym_lookup_global_symbol_language): New function.
11747 (psym_functions): Init psym_lookup_global_symbol_language with
11748 psym_lookup_global_symbol_language.
11749 * symfile-debug.c (debug_sym_quick_functions): Init
11750 lookup_global_symbol_language with NULL.
11751 * symfile.c (set_initial_language): Remove fixme comment.
11752 * symfile.h (struct quick_symbol_functions): Add
11753 lookup_global_symbol_language.
11754 * symtab.c (find_quick_global_symbol_language): New function.
11755 (find_main_name): Use find_quick_global_symbol_language.
11756
2836752f
SM
117572020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11758
11759 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11760
64dc2d4b
BE
117612020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11762
11763 * buildsym.c (record_line): Fix undefined behavior and preserve
11764 lines at eof.
11765
bbe3dc41
BE
117662020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11767
11768 * buildsym.c (record_line): Fix the resizing condition.
11769
6b4a335b
TT
117702020-04-01 Tom Tromey <tom@tromey.com>
11771
11772 * value.h (value_literal_complex): Add comment.
11773 * valops.c (value_literal_complex): Refer to value.h.
11774
3638a098
TT
117752020-04-01 Tom Tromey <tom@tromey.com>
11776
11777 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11778 (scalar_type): New rule, from typebase.
11779 (typebase): Use scalar_type. Recognize complex types.
11780 (field_name): Handle FLOAT_KEYWORD.
11781 (ident_tokens): Add _Complex and __complex__.
11782
c34e8714
TT
117832020-04-01 Tom Tromey <tom@tromey.com>
11784
11785 PR exp/25299:
11786 * valarith.c (promotion_type, complex_binop): New functions.
11787 (scalar_binop): Handle complex numbers. Use promotion_type.
11788 (value_pos, value_neg, value_complement): Handle complex numbers.
11789
fa649bb7
TT
117902020-04-01 Tom Tromey <tom@tromey.com>
11791
11792 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11793 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11794 (parse_number): Handle complex numbers.
11795
981c08ce
TT
117962020-04-01 Tom Tromey <tom@tromey.com>
11797
11798 * c-valprint.c (c_decorations): Change complex suffix to "i".
11799
4c99290d
TT
118002020-04-01 Tom Tromey <tom@tromey.com>
11801
11802 * valprint.c (generic_value_print_complex): Use accessors.
11803 * value.h (value_real_part, value_imaginary_part): Declare.
11804 * valops.c (value_real_part, value_imaginary_part): New
11805 functions.
11806 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11807
5b930b45
TT
118082020-04-01 Tom Tromey <tom@tromey.com>
11809
11810 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11811 (read_range_type): Update.
11812 * mdebugread.c (basic_type): Update.
11813 * go-lang.c (build_go_types): Use init_complex_type.
11814 * gdbtypes.h (struct main_type) <complex_type>: New member.
11815 (init_complex_type): Update.
11816 (arch_complex_type): Don't declare.
11817 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11818 Make name if none given. Use alloc_type_copy. Look for cached
11819 complex type.
11820 (arch_complex_type): Remove.
11821 (gdbtypes_post_init): Use init_complex_type.
11822 * f-lang.c (build_fortran_types): Use init_complex_type.
11823 * dwarf2/read.c (read_base_type): Update.
11824 * d-lang.c (build_d_types): Use init_complex_type.
11825 * ctfread.c (read_base_type): Update.
11826
53cccef1
TBA
118272020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11828
11829 * infrun.c (stop_all_threads): Update assertion, plus when
11830 stopping threads, take into account that we might be trying
11831 to stop an all-stop target.
11832 (stop_waiting): Call 'stop_all_threads' if there exists a
11833 non-stop target.
11834
a0714d30
TBA
118352020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11836
11837 * target.h (exists_non_stop_target): New function declaration.
11838 * target.c (exists_non_stop_target): New function.
11839
60e22c1e
HD
118402020-04-01 Hannes Domani <ssbssa@yahoo.de>
11841
11842 PR gdb/24789
11843 * eval.c (is_integral_or_integral_reference): New function.
11844 (evaluate_subexp_standard): Allow integer references in
11845 pointer arithmetic.
11846
e139a727
TBA
118472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11848
11849 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11850 check for no ptid in the stop reply when the target is non-stop.
11851
e0802d59
TT
118522020-04-01 Tom Tromey <tromey@adacore.com>
11853
11854 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11855 "name" parameter to rvalue reference. Initialize m_name_holder.
11856 <lookup_name_info>: New overloads.
11857 <name>: Return gdb::string_view.
11858 <c_str>: New method.
11859 <make_ignore_params>: Update.
11860 <search_name_hash>: Update.
11861 <language_lookup_name>: Return const char *.
11862 <m_name>: Change type.
11863 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11864 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11865 (lookup_name_info::match_any): Update.
11866 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11867 Update.
11868 * minsyms.c (linkage_name_str): Update.
11869 * language.c (default_symbol_name_matcher): Update.
11870 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11871 Update.
11872 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11873 (ada_lookup_name_info::ada_lookup_name_info): Update.
11874 (literal_symbol_name_matcher): Update.
11875
8c072cb6
TT
118762020-04-01 Tom Tromey <tromey@adacore.com>
11877
11878 * psymtab.c (psymtab_search_name): Remove function.
11879 (psym_lookup_symbol): Create search name and lookup name here.
11880 (lookup_partial_symbol): Remove "name" parameter; add
11881 lookup_name.
11882 (psym_expand_symtabs_for_function): Update.
11883
6f29a534
TT
118842020-03-31 Joel Jones <joelkevinjones@gmail.com>
11885
11886 PR tui/25597:
11887 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11888
af62665e
TT
118892020-03-31 Tom Tromey <tromey@adacore.com>
11890
11891 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11892 memcpy.
11893
d1a89da5
NC
118942020-03-30 Nelson Chu <nelson.chu@sifive.com>
11895
11896 * features/riscv/32bit-csr.xml: Regenerated.
11897 * features/riscv/64bit-csr.xml: Regenerated.
11898
d8af9068
TT
118992020-03-30 Tom Tromey <tromey@adacore.com>
11900
11901 * ada-valprint.c (print_variant_part): Update.
11902 * ada-lang.h (ada_which_variant_applies): Update.
11903 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11904 outer_valaddr parameters; replace with "outer" value parameter.
11905 (to_fixed_variant_branch_type): Update.
11906
227c0bf4
PFC
119072020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11908
11909 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11910 <list>. Remove inclusion of observable.h.
11911 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11912 (struct arch_lwp_info): New struct.
11913 (class ppc_linux_dreg_interface): New class.
11914 (struct ppc_linux_process_info): New struct.
11915 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11916 <low_new_clone, low_forget_process, low_prepare_to_resume>
11917 <copy_thread_dreg_state, mark_thread_stale>
11918 <mark_debug_registers_changed, register_hw_breakpoint>
11919 <clear_hw_breakpoint, register_wp, clear_wp>
11920 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11921 <num_memory_accesses, get_trigger_type>
11922 <create_watchpoint_request, hwdebug_point_cmp>
11923 <init_arch_lwp_info, get_arch_lwp_info>
11924 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11925 methods.
11926 <struct ptid_hash>: New inner struct.
11927 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11928 members.
11929 (saved_dabr_value, hwdebug_info, max_slots_number)
11930 (struct hw_break_tuple, struct thread_points, ppc_threads)
11931 (have_ptrace_hwdebug_interface)
11932 (hwdebug_find_thread_points_by_tid)
11933 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11934 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11935 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11936 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11937 use m_dreg_interface.
11938 (hwdebug_point_cmp): Change to...
11939 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11940 reference arguments instead of pointers.
11941 (ppc_linux_nat_target::ranged_break_num_registers): Use
11942 m_dreg_interface.
11943 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11944 m_dreg_interface. Call register_hw_breakpoint.
11945 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11946 m_dreg_interface. Call clear_hw_breakpoint.
11947 (get_trigger_type): Change to...
11948 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11949 comment.
11950 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11951 use m_dreg_interface. Call register_hw_breakpoint.
11952 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11953 use m_dreg_interface. Call clear_hw_breakpoint.
11954 (can_use_watchpoint_cond_accel): Change to...
11955 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11956 method. Update comment, use m_dreg_interface and
11957 m_process_info.
11958 (calculate_dvc): Change to...
11959 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11960 m_dreg_interface.
11961 (num_memory_accesses): Change to...
11962 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11963 (check_condition): Change to...
11964 (ppc_linux_nat_target::check_condition): ...this method.
11965 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11966 comment, use m_dreg_interface.
11967 (create_watchpoint_request): Change to...
11968 (ppc_linux_nat_target::create_watchpoint_request): ...this
11969 method. Use m_dreg_interface.
11970 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11971 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11972 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11973 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11974 (ppc_linux_nat_target::low_forget_process)
11975 (ppc_linux_nat_target::low_new_fork)
11976 (ppc_linux_nat_target::low_new_clone)
11977 (ppc_linux_nat_target::low_delete_thread)
11978 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11979 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11980 only call mark_thread_stale.
11981 (ppc_linux_thread_exit): Remove.
11982 (ppc_linux_nat_target::stopped_data_address): Change to...
11983 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11984 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11985 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11986 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11987 comment. Call low_stopped_data_address.
11988 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11989 m_dreg_interface.
11990 (ppc_linux_nat_target::masked_watch_num_registers): Use
11991 m_dreg_interface.
11992 (ppc_linux_nat_target::copy_thread_dreg_state)
11993 (ppc_linux_nat_target::mark_thread_stale)
11994 (ppc_linux_nat_target::mark_debug_registers_changed)
11995 (ppc_linux_nat_target::register_hw_breakpoint)
11996 (ppc_linux_nat_target::clear_hw_breakpoint)
11997 (ppc_linux_nat_target::register_wp)
11998 (ppc_linux_nat_target::clear_wp)
11999 (ppc_linux_nat_target::init_arch_lwp_info)
12000 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12001 (_initialize_ppc_linux_nat): Remove observer callback.
12002
4db10d8f
PFC
120032020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12004
12005 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12006 (ppc_linux_nat_target::auxv_parse)
12007 (ppc_linux_nat_target::read_description)
12008 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12009 Move up.
12010
1310c1b0
PFC
120112020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12012
12013 * linux-nat.h (low_new_clone): New method.
12014 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12015
69b037c3
SM
120162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12017
12018 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12019 (dbx_expand_psymtab): ... this.
12020 (start_psymtab): Update.
12021 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12022 (mdebug_expand_psymtab): ... this.
12023 (parse_partial_symbols): Update.
12024 (new_psymtab): Update.
12025 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12026 (xcoff_expand_psymtab): ... this.
12027 (xcoff_start_psymtab): Update.
12028
48993951
SM
120292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12030
12031 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12032 <expand_dependencies>: ... this.
12033 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12034 (partial_symtab::expand_dependencies): ... this.
12035 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12036 Update.
12037 (dwarf2_psymtab::expand_psymtab): Update.
12038 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12039 * mdebugread.c (psymtab_to_symtab_1): Update.
12040 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12041
3ad83046
SM
120422020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12043
12044 * psympriv.h (discard_psymtab): Remove.
12045 * dbxread.c (dbx_end_psymtab): Update.
12046 * xcoffread.c (xcoff_end_psymtab): Update.
12047
4d1b9ab6
TT
120482020-03-28 Tom Tromey <tom@tromey.com>
12049
12050 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12051 comment.
12052
f1749218
TT
120532020-03-28 Tom Tromey <tom@tromey.com>
12054
12055 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12056
ebea7626
HD
120572020-03-27 Hannes Domani <ssbssa@yahoo.de>
12058
12059 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12060
a879b4d5
JB
120612020-03-26 John Baldwin <jhb@FreeBSD.org>
12062
12063 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12064
0826b30a
TT
120652020-03-26 Tom Tromey <tom@tromey.com>
12066
12067 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12068 (mark_common_block_symbol_computed, read_tag_string_type)
12069 (attr_to_dynamic_prop, read_subrange_type): Update.
12070 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12071 to be methods on struct attribute.
12072 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12073 (read_call_site_scope, partial_die_info::read)
12074 (partial_die_info::read, lookup_die_type, follow_die_ref):
12075 Update.
12076 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12077 from dwarf2_get_ref_die_offset.
12078 (attribute::constant_value): New method, from
12079 dwarf2_get_attr_constant_value.
12080 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12081 Declare method.
12082 <constant_value>: New method.
12083
2b2558bf
TT
120842020-03-26 Tom Tromey <tom@tromey.com>
12085
12086 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12087 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12088 (dwarf_type_encoding_name): Move to stringify.c.
12089 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12090 * dwarf2/stringify.c: New file.
12091 * dwarf2/stringify.h: New file.
12092
eeb64781
TT
120932020-03-26 Tom Tromey <tom@tromey.com>
12094
12095 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12096 Rewrite.
12097
a39fdb41
TT
120982020-03-26 Tom Tromey <tom@tromey.com>
12099
12100 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12101 methods.
12102 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12103 (lookup_ranges_base): Likewise.
12104 (read_cutu_die_from_dwo, read_full_die_1): Update.
12105
436c571c
TT
121062020-03-26 Tom Tromey <tom@tromey.com>
12107
12108 * dwarf2/read.c (read_import_statement, read_file_scope)
12109 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12110 (read_lexical_block_scope, read_call_site_scope)
12111 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12112 (handle_struct_member_die, process_structure_scope)
12113 (update_enumeration_type_from_children)
12114 (process_enumeration_scope, read_array_type, read_common_block)
12115 (read_namespace, read_module, read_subroutine_type): Update.
12116 (sibling_die): Remove.
12117
052c8bb8
TT
121182020-03-26 Tom Tromey <tom@tromey.com>
12119
12120 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12121 (build_type_psymtabs_reader, read_structure_type)
12122 (read_enumeration_type, read_full_die_1): Update.
12123 (dwarf2_attr_no_follow): Move to die.h.
12124 * dwarf2/die.h (struct die_info) <attr>: New method.
12125
2b24b6e4
TT
121262020-03-26 Tom Tromey <tom@tromey.com>
12127
12128 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12129 <base_address>: Now an optional.
12130 (dwarf2_find_base_address, dwarf2_rnglists_process)
12131 (dwarf2_ranges_process, fill_in_loclist_baton)
12132 (dwarf2_symbol_mark_computed): Update.
12133
c2d50fd0
TT
121342020-03-26 Tom Tromey <tom@tromey.com>
12135
12136 * dwarf2/read.c (struct die_info): Move to die.h.
12137 * dwarf2/die.h: New file.
12138
0df7ad3a
TT
121392020-03-26 Tom Tromey <tom@tromey.com>
12140
12141 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12142 * dwarf2/read.c
12143 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12144 Move to line-header.c.
12145 (read_checked_initial_length_and_offset, read_formatted_entries):
12146 Likewise.
12147 (dwarf_decode_line_header): Split into two.
12148 * dwarf2/line-header.c
12149 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12150 Move from read.c.
12151 (read_checked_initial_length_and_offset, read_formatted_entries):
12152 Likewise.
12153 (dwarf_decode_line_header): New function, split from read.c.
12154
86c0bb4c
TT
121552020-03-26 Tom Tromey <tom@tromey.com>
12156
12157 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12158 Declare method.
12159 * dwarf2/read.c (read_attribute_value): Update.
12160 (dwarf2_per_objfile::read_line_string): Rename from
12161 read_indirect_line_string.
12162 (read_formatted_entries): Update.
12163
2ef46c2f
TT
121642020-03-26 Tom Tromey <tom@tromey.com>
12165
12166 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12167 variable.
12168
4f9c1eda
TT
121692020-03-26 Tom Tromey <tom@tromey.com>
12170
12171 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12172 const.
12173 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12174 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12175 parameter const.
12176
5a0e026f
TT
121772020-03-26 Tom Tromey <tom@tromey.com>
12178
12179 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12180 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12181 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12182 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12183
8844c11b
TT
121842020-03-26 Tom Tromey <tom@tromey.com>
12185
12186 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12187 file_names_size, file_full_name, file_file_name>: Use const.
12188 <file_name_at, file_names>: Add const overload.
12189 * dwarf2/line-header.c (line_header::file_file_name)
12190 (line_header::file_full_name): Update.
12191
c90ec28a
TT
121922020-03-26 Tom Tromey <tom@tromey.com>
12193
12194 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12195 (macro_start_file, consume_improper_spaces)
12196 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12197 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12198 (dwarf_decode_macros): Move to macro.c.
12199 * dwarf2/macro.c: New file.
12200 * dwarf2/macro.h: New file.
12201 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12202
4f44ae6c
TT
122032020-03-26 Tom Tromey <tom@tromey.com>
12204
12205 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12206 method.
12207 * dwarf2/section.c: New method. From
12208 read_indirect_string_at_offset_from.
12209 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12210 (read_indirect_string_at_offset_from): Move to section.c.
12211 (read_indirect_string_at_offset): Rewrite.
12212 (read_indirect_line_string_at_offset): Remove.
12213 (read_indirect_string, read_indirect_line_string)
12214 (dwarf_decode_macro_bytes): Update.
12215
a0194fa8
TT
122162020-03-26 Tom Tromey <tom@tromey.com>
12217
12218 * dwarf2/section.h (struct dwarf2_section_info)
12219 <overload_complaint>: Declare.
12220 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12221 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12222 Rename from dwarf2_section_buffer_overflow_complaint.
12223 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12224 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12225
3d27bbdb
TT
122262020-03-26 Tom Tromey <tom@tromey.com>
12227
12228 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12229 Declare.
12230 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12231 Move from read.c.
12232 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12233 to section.c.
12234
9eac9650
TT
122352020-03-26 Tom Tromey <tom@tromey.com>
12236
12237 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12238
bf80d710
TT
122392020-03-26 Tom Tromey <tom@tromey.com>
12240
12241 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12242 "builder".
12243 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12244 parameter.
12245 (dwarf_decode_macros): Update.
12246
0314b390
TT
122472020-03-26 Tom Tromey <tom@tromey.com>
12248
12249 * dwarf2/read.c (read_attribute_value): Update.
12250 (read_indirect_string_from_dwz): Move to dwz.c; change into
12251 method.
12252 (dwarf_decode_macro_bytes): Update.
12253 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12254 * dwarf2/dwz.c: New file.
12255 * Makefile.in (COMMON_SFILES): Add dwz.c.
12256
9fda78b6
TT
122572020-03-26 Tom Tromey <tom@tromey.com>
12258
12259 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12260 * dwarf2/read.c: Add include.
12261 * dwarf2/index-write.c: Add include.
12262 * dwarf2/index-cache.c: Add include.
12263 * dwarf2/dwz.h: New file.
12264
33aa3c10
TT
122652020-03-25 Tom Tromey <tom@tromey.com>
12266
12267 * compile/compile-object-load.c (get_out_value_type): Mention
12268 correct symbol name in error message.
12269
d503b685
HD
122702020-03-25 Hannes Domani <ssbssa@yahoo.de>
12271
12272 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12273
7b1eff95
TV
122742020-03-25 Tom de Vries <tdevries@suse.de>
12275
12276 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12277 * symmisc.c (dump_symtab_1): Print user and includes fields.
12278 (maintenance_info_symtabs): Same.
12279
dd895392
AB
122802020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12281
12282 PR gdb/25534
12283 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12284 (riscv_regcache_cooked_write): New function.
12285 (riscv_push_dummy_call): Use new function.
12286 (riscv_return_value): Likewise.
12287
5ab2fbf1
SM
122882020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12289
12290 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12291 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12292 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12293 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12294 * infrun.c (follow_fork): Likewise.
12295 (follow_fork_inferior): Likewise.
12296 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12297 * linux-nat.h (class linux_nat_target): Likewise.
12298 * remote.c (class remote_target) <follow_fork>: Likewise.
12299 (remote_target::follow_fork): Likewise.
12300 * target-delegates.c: Re-generate.
12301 * target.c (default_follow_fork): Likewise.
12302 (target_follow_fork): Likewise.
12303 * target.h (struct target_ops) <follow_fork>: Likewise.
12304 (target_follow_fork): Likewise.
12305
a64fafb5
TV
123062020-03-24 Tom de Vries <tdevries@suse.de>
12307
12308 * psymtab.c (maintenance_info_psymtabs): Print user field.
12309
fe26d3a3
TT
123102020-03-20 Tom Tromey <tromey@adacore.com>
12311
12312 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12313 const.
12314 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12315 const.
12316
c884cc46
SM
123172020-03-20 Simon Marchi <simon.marchi@efficios.com>
12318
12319 * ptrace.m4: Don't check for ptrace declaration.
12320 * config.in: Re-generate.
12321 * configure: Re-generate.
12322 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12323 not defined.
12324
1ff700c2
KR
123252020-03-20 Kamil Rytarowski <n54@gmx.com>
12326
12327 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12328 `PTRACE_TYPE_RET'.
12329 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12330 * sparc-nat.c (gdb_ptrace): Likewise.
12331 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12332
f7d4f0b1
TT
123332020-03-20 Tom Tromey <tromey@adacore.com>
12334
12335 * c-exp.y (lex_one_token): Fix assert.
12336
f67210ff
TT
123372020-03-20 Tom Tromey <tromey@adacore.com>
12338
12339 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12340 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12341 strncpy call.
12342
1773be9e
TT
123432020-03-20 Tom Tromey <tromey@adacore.com>
12344
12345 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12346
70304be9
TT
123472020-03-20 Tom Tromey <tromey@adacore.com>
12348
12349 * ada-valprint.c (print_variant_part): Remove parameters; switch
12350 to value-based API.
12351 (print_field_values): Likewise.
12352 (ada_val_print_struct_union): Likewise.
12353 (ada_value_print_1): Update.
12354
9faa006d
KR
123552020-03-20 Kamil Rytarowski <n54@gmx.com>
12356
12357 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12358 nbsd_nat_target instead of inf_ptrace_target.
12359 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12360 nbsd_nat_target.
12361
4a90f062
KR
123622020-03-20 Kamil Rytarowski <n54@gmx.com>
12363
12364 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12365 it to the ptrace call.
12366 * (store_registers): Likewise.
12367
123682020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12369
12370 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12371 it to the ptrace call.
12372 * (store_registers): Likewise.
12373
2d07da27
LM
123742020-03-19 Luis Machado <luis.machado@linaro.org>
12375
12376 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12377 valid, fetch vg value from ptrace.
12378
f09db380
KR
123792020-03-19 Kamil Rytarowski <n54@gmx.com>
12380 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12381 * inf-ptrace.c: Likewise.
12382 * (gdb_ptrace): Add.
12383 * (inf_ptrace_target::resume): Update.
12384 * (inf_ptrace_target::xfer_partial): Likewise.
12385 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12386 * (inf_ptrace_peek_poke): Update.
12387
fcc7376e
KR
123882020-03-19 Kamil Rytarowski <n54@gmx.com>
12389
12390 * x86-bsd-nat.c (gdb_ptrace): New.
12391 * (x86bsd_dr_set): Add new argument `ptid'.
12392 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12393 x86bsd_dr_set_addr): Update.
12394
cada5fc9
AB
123952020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12396
12397 * remote.c (remote_target::process_stop_reply): Handle events for
12398 all threads differently.
12399
19a2740f
AB
124002020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12401
12402 * completer.c (completion_tracker::remove_completion): Define new
12403 function.
12404 * completer.h (completion_tracker::remove_completion): Declare new
12405 function.
12406 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12407 when adding a C++ function symbol.
12408
724fd9ba
AB
124092020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12410
12411 * completer.c (completion_tracker::completion_hash_entry): Define
12412 new class.
12413 (advance_to_filename_complete_word_point): Call
12414 recompute_lowest_common_denominator.
12415 (completion_tracker::completion_tracker): Call discard_completions
12416 to setup the hash table.
12417 (completion_tracker::discard_completions): Allow for being called
12418 from the constructor, pass new equal function, and element deleter
12419 when constructing the hash table. Initialise new class member
12420 variables.
12421 (completion_tracker::maybe_add_completion): Remove use of
12422 m_entries_vec, and store more information into m_entries_hash.
12423 (completion_tracker::recompute_lcd_visitor): New function, most
12424 content taken from...
12425 (completion_tracker::recompute_lowest_common_denominator):
12426 ...here, this now just visits each item in the hash calling the
12427 above visitor.
12428 (completion_tracker::build_completion_result): Remove use of
12429 m_entries_vec, call recompute_lowest_common_denominator.
12430 * completer.h (completion_tracker::have_completions): Remove use
12431 of m_entries_vec.
12432 (completion_tracker::completion_hash_entry): Declare new class.
12433 (completion_tracker::recompute_lowest_common_denominator): Change
12434 function signature.
12435 (completion_tracker::recompute_lcd_visitor): Declare new function.
12436 (completion_tracker::m_entries_vec): Delete.
12437 (completion_tracker::m_entries_hash): Initialize to NULL.
12438 (completion_tracker::m_lowest_common_denominator_valid): New
12439 member variable.
12440 (completion_tracker::m_lowest_common_denominator_max_length): New
12441 member variable.
12442
5a82b8a1
KR
124432020-03-17 Kamil Rytarowski <n54@gmx.com>
12444
12445 * regformats/regdef.h: Put reg in gdb namespace.
12446
fb516a69
KR
124472020-03-17 Kamil Rytarowski <n54@gmx.com>
12448
12449 * i386-bsd-nat.c (gdb_ptrace): New.
12450 * (i386bsd_fetch_inferior_registers,
12451 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12452 * (i386bsd_fetch_inferior_registers,
12453 i386bsd_store_inferior_registers) Use gdb_ptrace.
12454
1c0aa1fb
KR
124552020-03-17 Kamil Rytarowski <n54@gmx.com>
12456
12457 * amd64-bsd-nat.c (gdb_ptrace): New.
12458 * (amd64bsd_fetch_inferior_registers,
12459 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12460 * (amd64bsd_fetch_inferior_registers,
12461 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12462
5ccd2fb7
KR
124632020-03-17 Kamil Rytarowski <n54@gmx.com>
12464
12465 * user-regs.c (user_reg::read): Rename to...
12466 (user_reg::xread): ...this.
12467 * (append_user_reg): Rename argument `read' to `xread'.
12468 * (user_reg_add_builtin): Likewise.
12469 * (user_reg_add): Likewise.
12470 * (value_of_user_reg): Likewise.
12471
2108a63a
KR
124722020-03-17 Kamil Rytarowski <n54@gmx.com>
12473
12474 * sparc-nat.c (gdb_ptrace): New.
12475 * sparc-nat.c (sparc_fetch_inferior_registers)
12476 (sparc_store_inferior_registers) Remove obsolete comment.
12477 * sparc-nat.c (sparc_fetch_inferior_registers)
12478 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12479 * sparc-nat.c (sparc_fetch_inferior_registers)
12480 (sparc_store_inferior_registers) Use gdb_ptrace.
12481
a225c9a8
KR
124822020-03-17 Kamil Rytarowski <n54@gmx.com>
12483
12484 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12485 it to the ptrace call.
12486 * sh-nbsd-nat.c (store_registers): Likewise.
12487
98097623
KR
124882020-03-17 Kamil Rytarowski <n54@gmx.com>
12489
12490 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12491 nbsd_nat_target instead of inf_ptrace_target.
12492 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12493 nbsd_nat_target.
12494
9e38d619
KR
124952020-03-17 Kamil Rytarowski <n54@gmx.com>
12496
12497 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12498
a2ecbe9f
KR
124992020-03-17 Kamil Rytarowski <n54@gmx.com>
12500
12501 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12502 <sys/sysctl.h>.
12503 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12504
58990295
TV
125052020-03-17 Tom de Vries <tdevries@suse.de>
12506
12507 PR gdb/23710
12508 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12509 fields.
12510 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12511 fields.
12512 (process_imported_unit_die): Skip import of c++ CUs.
12513
771dd3a8
TT
125142020-03-16 Tom Tromey <tom@tromey.com>
12515
12516 * p-valprint.c (pascal_object_print_value): Initialize
12517 base_value.
12518
817a7585
AK
125192020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12520 Shahab Vahedi <shahab@synopsys.com>
12521
12522 * Makefile.in: Add arch/arc.o
12523 * configure.tgt: Likewise.
12524 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12525 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12526 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12527 * arc-tdep.h (arc_read_description): Add proto type.
12528 * arch/arc.c: New file.
12529 * arch/arc.h: Likewise.
12530 * features/Makefile: Replace old target descriptions with new.
12531 * features/arc-arcompact.c: Remove.
12532 * features/arc-arcompact.xml: Likewise.
12533 * features/arc-v2.c: Likewise
12534 * features/arc-v2.xml: Likewise
12535 * features/arc/aux-arcompact.xml: New file.
12536 * features/arc/aux-v2.xml: Likewise.
12537 * features/arc/core-arcompact.xml: Likewise.
12538 * features/arc/core-v2.xml: Likewise.
12539 * features/arc/aux-arcompact.c: Generate.
12540 * features/arc/aux-v2.c: Likewise.
12541 * features/arc/core-arcompact.c: Likewise.
12542 * features/arc/core-v2.c: Likewise.
12543 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12544
67430cd0
TT
125452020-03-16 Tom Tromey <tromey@adacore.com>
12546
12547 PR gdb/25663:
12548 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12549 putting value into bcache.
12550
30efb6c7
SM
125512020-03-16 Simon Marchi <simon.marchi@efficios.com>
12552
12553 PR gdb/21500
12554 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12555 to...
12556 (amd64_windows_init_abi_common): ... this. Don't set size of
12557 long type.
12558 (amd64_windows_init_abi): New function.
12559 (amd64_cygwin_init_abi): New function.
12560 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12561 the Cygwin OS ABI.
12562 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12563 comment.
12564
8db52437
SM
125652020-03-16 Simon Marchi <simon.marchi@efficios.com>
12566
12567 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12568 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12569 (pe_import_directory_entry): New struct type.
12570 (is_linked_with_cygwin_dll): New function.
12571 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12572 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12573 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12574
5982a56a
SM
125752020-03-16 Simon Marchi <simon.marchi@efficios.com>
12576
12577 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12578 i386_cygwin_core_osabi_sniffer.
12579
7a1998df
SM
125802020-03-16 Simon Marchi <simon.marchi@efficios.com>
12581
12582 * i386-cygwin-tdep.c: Rename to...
12583 * i386-windows-tdep.c: ... this.
12584 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12585 i386-windows-tdep.c.
12586 * configure.tgt: Likewise.
12587
053205cc
SM
125882020-03-16 Simon Marchi <simon.marchi@efficios.com>
12589
12590 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12591 * osabi.c (gdb_osabi_names): Add "Windows".
12592 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12593 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12594 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12595 i386_cygwin_osabi_sniffer.
12596 (_initialize_i386_cygwin_tdep): Register OS ABI
12597 GDB_OSABI_WINDOWS for i386.
12598 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12599 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12600 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12601 for x86-64.
12602 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12603 when the target matches '*-*-mingw*'.
12604
fe4b2ee6
SM
126052020-03-16 Simon Marchi <simon.marchi@efficios.com>
12606
12607 * defs.h (enum gdb_osabi): Move to...
12608 * osabi.h (enum gdb_osabi): ... here.
12609 * gdbarch.sh: Include osabi.h in gdbarch.h.
12610 * gdbarch.h: Re-generate.
12611
cb9b645d
SM
126122020-03-16 Simon Marchi <simon.marchi@efficios.com>
12613
12614 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12615 function.
12616 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12617
3293bbaf
TT
126182020-03-14 Tom Tromey <tom@tromey.com>
12619
12620 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12621 for C++.
12622 (c_type_print_modifier): Likewise. Add "language" parameter.
12623 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12624 (c_type_print_base_1): Update.
12625 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12626 constants.
12627 * type-stack.c (type_stack::insert): Handle tp_atomic and
12628 tp_restrict.
12629 (type_stack::follow_type_instance_flags): Likewise.
12630 (type_stack::follow_types): Likewise. Merge type-following code.
12631 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12632 (space_identifier, cv_with_space_id)
12633 (const_or_volatile_or_space_identifier_noopt)
12634 (const_or_volatile_or_space_identifier): Remove.
12635 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12636 rules.
12637 (ptr_operator, typebase): Update.
12638 (enum token_flag) <FLAG_C>: New constant.
12639 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12640 "_Atomic".
12641 (lex_one_token): Handle FLAG_C.
12642
154151a6
KR
126432020-03-14 Kamil Rytarowski <n54@gmx.com>
12644
12645 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12646 it to the ptrace call.
12647 * m68k-bsd-nat.c (store_registers): Likewise.
12648
bc107784
KR
126492020-03-14 Kamil Rytarowski <n54@gmx.com>
12650
12651 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12652 gdb_byte *.
12653 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12654 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12655 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12656
01a80117
KR
126572020-03-14 Kamil Rytarowski <n54@gmx.com>
12658
12659 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12660 nbsd_nat_target instead of inf_ptrace_target.
12661 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12662 nbsd_nat_target.
12663
f90280ca
KR
126642020-03-14 Kamil Rytarowski <n54@gmx.com>
12665
12666 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12667 register_t.
12668
6def66f1
KR
126692020-03-14 Kamil Rytarowski <n54@gmx.com>
12670
12671 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12672 it to the ptrace call.
12673 * alpha-bsd-nat.c (store_registers): Likewise.
12674
66eaca97
KR
126752020-03-14 Kamil Rytarowski <n54@gmx.com>
12676
12677 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12678 includes.
12679 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12680 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12681 fill_fpregset): Likewise.
12682
4fed520b
KR
126832020-03-14 Kamil Rytarowski <n54@gmx.com>
12684
12685 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12686 nbsd_nat_target instead of inf_ptrace_target.
12687 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12688 nbsd_nat_target.
12689
2190cf06
KR
126902020-03-14 Kamil Rytarowski <n54@gmx.com>
12691
12692 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12693 register_t.
12694
75c56d3d
KR
126952020-03-14 Kamil Rytarowski <n54@gmx.com>
12696
12697 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12698 it to the ptrace call.
12699 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12700 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12701 * arm-nbsd-nat.c (store_register): Likewise.
12702 * arm-nbsd-nat.c (store_regs): Likewise.
12703 * arm-nbsd-nat.c (store_fp_register): Likewise.
12704 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12705
6018d381
KR
127062020-03-14 Kamil Rytarowski <n54@gmx.com>
12707
12708 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12709 nbsd_nat_target instead of inf_ptrace_target.
12710 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12711 nbsd_nat_target.
12712
013f99f0
KR
127132020-03-14 Kamil Rytarowski <n54@gmx.com>
12714
12715 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12716 it to the ptrace call.
12717 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12718
12753073
KR
127192020-03-14 Kamil Rytarowski <n54@gmx.com>
12720
6227b330
KR
12721 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12722 it to the ptrace call.
12723 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12724
127252020-03-14 Kamil Rytarowski <n54@gmx.com>
12726
12727 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12728 gdb_byte *.
12753073
KR
12729 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12730
d5be5fa4
KR
127312020-03-14 Kamil Rytarowski <n54@gmx.com>
12732
12733 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12734 instead of inf_ptrace_target.
12735 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12736 nbsd_nat_target.
12737
8110f842
KR
127382020-03-14 Kamil Rytarowski <n54@gmx.com>
12739
12740 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12741 register_t.
12742
52feded7
KR
127432020-03-14 Kamil Rytarowski <n54@gmx.com>
12744
12745 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12746 register_t.
12747
25567eee
KR
127482020-03-14 Kamil Rytarowski <n54@gmx.com>
12749
12750 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12751 register_t.
12752
426a9c18
TT
127532020-03-13 Tom Tromey <tom@tromey.com>
12754
12755 * value.h (val_print): Don't declare.
12756 * valprint.h (val_print_array_elements)
12757 (val_print_scalar_formatted, generic_val_print): Don't declare.
12758 * valprint.c (generic_val_print_array): Take a struct value.
12759 (generic_val_print_ptr, generic_val_print_memberptr)
12760 (generic_val_print_bool, generic_val_print_int)
12761 (generic_val_print_char, generic_val_print_complex)
12762 (generic_val_print): Remove.
12763 (generic_value_print): Update.
12764 (do_val_print): Remove unused parameters. Don't call
12765 la_val_print.
12766 (val_print): Remove.
12767 (common_val_print): Update. Don't call value_check_printable.
12768 (val_print_scalar_formatted, val_print_array_elements): Remove.
12769 * rust-lang.c (rust_val_print): Remove.
12770 (rust_language_defn): Update.
12771 * p-valprint.c (pascal_val_print): Remove.
12772 (pascal_value_print_inner): Update.
12773 (pascal_object_print_val_fields, pascal_object_print_val):
12774 Remove.
12775 (pascal_object_print_static_field): Update.
12776 * p-lang.h (pascal_val_print): Don't declare.
12777 * p-lang.c (pascal_language_defn): Update.
12778 * opencl-lang.c (opencl_language_defn): Update.
12779 * objc-lang.c (objc_language_defn): Update.
12780 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12781 * m2-lang.h (m2_val_print): Don't declare.
12782 * m2-lang.c (m2_language_defn): Update.
12783 * language.h (struct language_defn) <la_val_print>: Remove.
12784 * language.c (unk_lang_value_print_inner): Rename. Change
12785 argument types.
12786 (unknown_language_defn, auto_language_defn): Update.
12787 * go-valprint.c (go_val_print): Remove.
12788 * go-lang.h (go_val_print): Don't declare.
12789 * go-lang.c (go_language_defn): Update.
12790 * f-valprint.c (f_val_print): Remove.
12791 * f-lang.h (f_value_print): Don't declare.
12792 * f-lang.c (f_language_defn): Update.
12793 * d-valprint.c (d_val_print): Remove.
12794 * d-lang.h (d_value_print): Don't declare.
12795 * d-lang.c (d_language_defn): Update.
12796 * cp-valprint.c (cp_print_value_fields)
12797 (cp_print_value_fields_rtti, cp_print_value): Remove.
12798 (cp_print_static_field): Update.
12799 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12800 (c_val_print_struct, c_val_print_union, c_val_print_int)
12801 (c_val_print_memberptr, c_val_print): Remove.
12802 * c-lang.h (c_val_print_array, cp_print_value_fields)
12803 (cp_print_value_fields_rtti): Don't declare.
12804 * c-lang.c (c_language_defn, cplus_language_defn)
12805 (asm_language_defn, minimal_language_defn): Update.
12806 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12807 (ada_val_print_enum): Take a struct value.
12808 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12809 (ada_val_print): Remove.
12810 (ada_value_print_1): Update.
12811 (printable_val_type): Remove.
12812 * ada-lang.h (ada_val_print): Don't declare.
12813 * ada-lang.c (ada_language_defn): Update.
12814
42331a1e
TT
128152020-03-13 Tom Tromey <tom@tromey.com>
12816
12817 * valprint.c (do_val_print): Update.
12818 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12819 a struct value.
12820 (value_to_value_object_no_release): Declare.
12821 * python/py-value.c (value_to_value_object_no_release): New
12822 function.
12823 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12824 struct value.
12825 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12826 function.
12827 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12828 a struct value.
12829 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12830 Declare.
12831 (gdbscm_apply_val_pretty_printer): Take a struct value.
12832 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12833 value.
12834 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12835 value.
12836 * extension-priv.h (struct extension_language_ops)
12837 <apply_val_pretty_printer>: Take a struct value.
12838 * cp-valprint.c (cp_print_value): Create a struct value.
12839 (cp_print_value): Update.
12840
3a916a97
TT
128412020-03-13 Tom Tromey <tom@tromey.com>
12842
12843 * ada-valprint.c (print_field_values): Call common_val_print.
12844
b59eac37
TT
128452020-03-13 Tom Tromey <tom@tromey.com>
12846
12847 * ada-valprint.c (val_print_packed_array_elements): Remove
12848 bitoffset and val parameters. Call common_val_print.
12849 (ada_val_print_string): Remove offset, address, and original_value
12850 parameters.
12851 (ada_val_print_array): Update.
12852 (ada_value_print_array): New function.
12853 (ada_value_print_1): Call it.
12854
03371129
TT
128552020-03-13 Tom Tromey <tom@tromey.com>
12856
12857 * ada-valprint.c (ada_value_print): Use common_val_print.
12858
2e088f8b
TT
128592020-03-13 Tom Tromey <tom@tromey.com>
12860
12861 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12862
39ef85a8
TT
128632020-03-13 Tom Tromey <tom@tromey.com>
12864
12865 * ada-valprint.c (ada_value_print_num): New function.
12866 (ada_value_print_1): Use it.
12867
b9fa6e07
TT
128682020-03-13 Tom Tromey <tom@tromey.com>
12869
12870 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12871
416595d6
TT
128722020-03-13 Tom Tromey <tom@tromey.com>
12873
12874 * ada-valprint.c (ada_value_print_ptr): New function.
12875 (ada_value_print_1): Use it.
12876
5b5e15ec
TT
128772020-03-13 Tom Tromey <tom@tromey.com>
12878
12879 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12880 call common_val_print.
12881 (ada_val_print_1): Update.
12882 (ada_value_print_1): New function.
12883 (ada_value_print_inner): Rewrite.
12884
fbf54e75
TT
128852020-03-13 Tom Tromey <tom@tromey.com>
12886
12887 * cp-valprint.c (cp_print_value_fields): Update.
12888 (cp_print_value): New function.
12889
64b653ca
TT
128902020-03-13 Tom Tromey <tom@tromey.com>
12891
12892 * m2-valprint.c (m2_value_print_inner): Use
12893 cp_print_value_fields.
12894 * cp-valprint.c (cp_print_value_fields): New function.
12895 * c-valprint.c (c_value_print_struct): New function.
12896 (c_value_print_inner): Use c_value_print_struct.
12897 * c-lang.h (cp_print_value_fields): Declare.
12898
6999f067
TT
128992020-03-13 Tom Tromey <tom@tromey.com>
12900
12901 * c-valprint.c (c_value_print_array): New function.
12902 (c_value_print_inner): Use it.
12903
ce80b8bd
TT
129042020-03-13 Tom Tromey <tom@tromey.com>
12905
12906 * c-valprint.c (c_value_print_memberptr): New function.
12907 (c_value_print_inner): Use it.
12908
2faac269
TT
129092020-03-13 Tom Tromey <tom@tromey.com>
12910
12911 * c-valprint.c (c_value_print_int): New function.
12912 (c_value_print_inner): Use it.
12913
da3e2c29
TT
129142020-03-13 Tom Tromey <tom@tromey.com>
12915
12916 * c-valprint.c (c_value_print_ptr): New function.
12917 (c_value_print_inner): Use it.
12918
50836231
TT
129192020-03-13 Tom Tromey <tom@tromey.com>
12920
12921 * c-valprint.c (c_value_print_inner): Rewrite.
12922
4f412b6e
TT
129232020-03-13 Tom Tromey <tom@tromey.com>
12924
12925 * valprint.c (generic_value_print_complex): New function.
12926 (generic_value_print): Use it.
12927
f5354008
TT
129282020-03-13 Tom Tromey <tom@tromey.com>
12929
12930 * valprint.c (generic_val_print_float): Don't call
12931 val_print_scalar_formatted.
12932 (generic_val_print, generic_value_print): Update.
12933
3eec3b05
TT
129342020-03-13 Tom Tromey <tom@tromey.com>
12935
12936 * valprint.c (generic_value_print_char): New function
12937 (generic_value_print): Use it.
12938
fdddfccb
TT
129392020-03-13 Tom Tromey <tom@tromey.com>
12940
12941 * valprint.c (generic_value_print_int): New function.
12942 (generic_value_print): Use it.
12943
6dde7521
TT
129442020-03-13 Tom Tromey <tom@tromey.com>
12945
12946 * valprint.c (generic_value_print_bool): New function.
12947 (generic_value_print): Use it.
12948
4112d2e6
TT
129492020-03-13 Tom Tromey <tom@tromey.com>
12950
12951 * valprint.c (generic_val_print_func): Simplify.
12952 (generic_val_print, generic_value_print): Update.
12953
65786af6
TT
129542020-03-13 Tom Tromey <tom@tromey.com>
12955
12956 * valprint.c (generic_val_print_flags): Remove.
12957 (generic_val_print, generic_value_print): Update.
12958 (val_print_type_code_flags): Add original_value parameter.
12959
40f3ce18
TT
129602020-03-13 Tom Tromey <tom@tromey.com>
12961
12962 * valprint.c (generic_val_print): Update.
12963 (generic_value_print): Update.
12964 * valprint.c (generic_val_print_enum): Don't call
12965 val_print_scalar_formatted.
12966
2a5b130b
TT
129672020-03-13 Tom Tromey <tom@tromey.com>
12968
12969 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12970 * valprint.c (generic_value_print_ptr): New function.
12971
abc66ce9
TT
129722020-03-13 Tom Tromey <tom@tromey.com>
12973
12974 * valprint.c (generic_value_print): Rewrite.
12975
07a32858
TT
129762020-03-13 Tom Tromey <tom@tromey.com>
12977
12978 * p-valprint.c (pascal_object_print_value_fields)
12979 (pascal_object_print_value): New functions.
12980
64d64d3a
TT
129812020-03-13 Tom Tromey <tom@tromey.com>
12982
12983 * p-valprint.c (pascal_value_print_inner): Rewrite.
12984
6a95a1f5
TT
129852020-03-13 Tom Tromey <tom@tromey.com>
12986
12987 * f-valprint.c (f_value_print_innner): Rewrite.
12988
59fcdac6
TT
129892020-03-13 Tom Tromey <tom@tromey.com>
12990
12991 * m2-valprint.c (m2_print_unbounded_array): New overload.
12992 (m2_print_unbounded_array): Update.
12993 (m2_print_array_contents): Take a struct value.
12994 (m2_value_print_inner): Rewrite.
12995
d133c3e1
TT
129962020-03-13 Tom Tromey <tom@tromey.com>
12997
12998 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12999 (d_value_print_inner): New function.
13000 * d-lang.h (d_value_print_inner): Declare.
13001 * d-lang.c (d_language_defn): Use d_value_print_inner.
13002
23b0f06b
TT
130032020-03-13 Tom Tromey <tom@tromey.com>
13004
13005 * go-valprint.c (go_value_print_inner): New function.
13006 * go-lang.h (go_value_print_inner): Declare.
13007 * go-lang.c (go_language_defn): Use go_value_print_inner.
13008
5f56f7cb
TT
130092020-03-13 Tom Tromey <tom@tromey.com>
13010
13011 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13012 API.
13013 (rust_val_print): Rewrite.
13014 (rust_value_print_inner): New function, from rust_val_print.
13015 (rust_language_defn): Use rust_value_print_inner.
13016
26792ee0
TT
130172020-03-13 Tom Tromey <tom@tromey.com>
13018
13019 * ada-valprint.c (ada_value_print_inner): New function.
13020 * ada-lang.h (ada_value_print_inner): Declare.
13021 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13022
24051bbe
TT
130232020-03-13 Tom Tromey <tom@tromey.com>
13024
13025 * f-valprint.c (f_value_print_innner): New function.
13026 * f-lang.h (f_value_print_innner): Declare.
13027 * f-lang.c (f_language_defn): Use f_value_print_innner.
13028
c0941be6
TT
130292020-03-13 Tom Tromey <tom@tromey.com>
13030
13031 * p-valprint.c (pascal_value_print_inner): New function.
13032 * p-lang.h (pascal_value_print_inner): Declare.
13033 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13034
62c4663d
TT
130352020-03-13 Tom Tromey <tom@tromey.com>
13036
13037 * m2-valprint.c (m2_value_print_inner): New function.
13038 * m2-lang.h (m2_value_print_inner): Declare.
13039 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13040
62182190
TT
130412020-03-13 Tom Tromey <tom@tromey.com>
13042
13043 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13044 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13045 * c-valprint.c (c_value_print_inner): New function.
13046 * c-lang.h (c_value_print_inner): Declare.
13047 * c-lang.c (c_language_defn, cplus_language_defn)
13048 (asm_language_defn, minimal_language_defn): Use
13049 c_value_print_inner.
13050
1e592a8a
TT
130512020-03-13 Tom Tromey <tom@tromey.com>
13052
13053 * p-valprint.c (pascal_object_print_value_fields): Now static.
13054 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13055
7fe471e9
TT
130562020-03-13 Tom Tromey <tom@tromey.com>
13057
13058 * c-valprint.c (c_val_print_array): Simplify.
13059
d121c6ce
TT
130602020-03-13 Tom Tromey <tom@tromey.com>
13061
13062 * valprint.c (value_print_array_elements): New function.
13063 * valprint.h (value_print_array_elements): Declare.
13064
4dba70ee
TT
130652020-03-13 Tom Tromey <tom@tromey.com>
13066
13067 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13068 * mips-tdep.c (mips_print_register): Use
13069 value_print_scalar_formatted.
13070
4f9ae810
TT
130712020-03-13 Tom Tromey <tom@tromey.com>
13072
13073 * valprint.h (value_print_scalar_formatted): Declare.
13074 * valprint.c (value_print_scalar_formatted): New function.
13075
156bfec9
TT
130762020-03-13 Tom Tromey <tom@tromey.com>
13077
13078 * valprint.h (generic_value_print): Declare.
13079 * valprint.c (generic_value_print): New function.
13080
2b4e573d
TT
130812020-03-13 Tom Tromey <tom@tromey.com>
13082
13083 * valprint.c (do_val_print): Call la_value_print_inner, if
13084 available.
13085 * rust-lang.c (rust_language_defn): Update.
13086 * p-lang.c (pascal_language_defn): Update.
13087 * opencl-lang.c (opencl_language_defn): Update.
13088 * objc-lang.c (objc_language_defn): Update.
13089 * m2-lang.c (m2_language_defn): Update.
13090 * language.h (struct language_defn) <la_value_print_inner>: New
13091 member.
13092 * language.c (unknown_language_defn, auto_language_defn): Update.
13093 * go-lang.c (go_language_defn): Update.
13094 * f-lang.c (f_language_defn): Update.
13095 * d-lang.c (d_language_defn): Update.
13096 * c-lang.c (c_language_defn, cplus_language_defn)
13097 (asm_language_defn, minimal_language_defn): Update.
13098 * ada-lang.c (ada_language_defn): Update.
13099
a1f6a07c
TT
131002020-03-13 Tom Tromey <tom@tromey.com>
13101
13102 * c-valprint.c (c_value_print): Use common_val_print.
13103
410cf315
TT
131042020-03-13 Tom Tromey <tom@tromey.com>
13105
13106 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13107
72a45c93
TT
131082020-03-13 Tom Tromey <tom@tromey.com>
13109
13110 * f-valprint.c (f77_print_array_1, f_val_print): Use
13111 common_val_print.
13112
040f66bd
TT
131132020-03-13 Tom Tromey <tom@tromey.com>
13114
13115 * riscv-tdep.c (riscv_print_one_register_info): Use
13116 common_val_print.
13117
a6e05a6c
TT
131182020-03-13 Tom Tromey <tom@tromey.com>
13119
13120 * mi/mi-main.c (output_register): Use common_val_print.
13121
3444c526
TT
131222020-03-13 Tom Tromey <tom@tromey.com>
13123
13124 * infcmd.c (default_print_one_register_info): Use
13125 common_val_print.
13126
c2a44efe
TT
131272020-03-13 Tom Tromey <tom@tromey.com>
13128
13129 * valprint.h (common_val_print_checked): Declare.
13130 * valprint.c (common_val_print_checked): New function.
13131 * stack.c (print_frame_arg): Use common_val_print_checked.
13132
b0c26e99
TT
131332020-03-13 Tom Tromey <tom@tromey.com>
13134
13135 * valprint.c (do_val_print): New function, from val_print.
13136 (val_print): Use do_val_print.
13137 (common_val_print): Use do_val_print.
13138
ce3acbe9
TT
131392020-03-13 Tom Tromey <tom@tromey.com>
13140
13141 * valprint.c (value_print): Use scoped_value_mark.
13142
96c7f873
TV
131432020-03-13 Tom de Vries <tdevries@suse.de>
13144
13145 PR symtab/25646
13146 * psymtab.c (partial_symtab::partial_symtab): Don't set
13147 globals_offset and statics_offset. Push element onto
13148 current_global_psymbols and current_static_psymbols stacks.
13149 (concat): New function.
13150 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13151 element from current_global_psymbols and current_static_psymbols
13152 stacks. Concat popped elements to global_psymbols and
13153 static_symbols.
13154 (add_psymbol_to_list): Use current_global_psymbols and
13155 current_static_psymbols stacks.
13156 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13157 current_static_psymbols fields.
13158
6ba0a321
CB
131592020-03-12 Christian Biesinger <cbiesinger@google.com>
13160
13161 * corelow.c (sniff_core_bfd): Remove.
13162 (class core_target) <m_core_vec>: Remove.
13163 (core_target::core_target): Update.
13164 (core_file_fns): Remove.
13165 (deprecated_add_core_fns): Remove.
13166 (default_core_sniffer): Remove.
13167 (sniff_core_bfd): Remove.
13168 (default_check_format): Remove.
13169 (gdb_check_format): Remove.
13170 (core_target_open): Update.
13171 (core_target::get_core_register_section): Update.
13172 (get_core_registers_cb): Update.
13173 (core_target::fetch_registers): Update.
13174 * gdbcore.h (struct core_fns): Remove.
13175 (deprecated_add_core_fns): Remove.
13176 (default_core_sniffer): Remove.
13177 (default_check_format): Remove.
13178
227031b2
TT
131792020-03-12 Tom Tromey <tom@tromey.com>
13180
13181 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13182 CORE_ADDR.
13183 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13184
53807e9f
TT
131852020-03-12 Tom Tromey <tom@tromey.com>
13186
13187 * remote.c (remote_target::download_tracepoint)
13188 (remote_target::enable_tracepoint)
13189 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13190 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13191 sprintf_vma.
13192
64f25102
TT
131932020-03-12 Tom Tromey <tom@tromey.com>
13194
13195 * symfile-mem.c: Update CORE_ADDR size assert.
13196
272cd5a3
SM
131972020-03-12 Simon Marchi <simon.marchi@efficios.com>
13198
13199 * selftest.m4: Move to gdbsupport/.
13200 * acinclude.m4: Update path to selftest.m4.
13201
74cd3f9d
SM
132022020-03-12 Simon Marchi <simon.marchi@efficios.com>
13203
13204 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13205 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13206 gdbarch-selfselftests.c and selftest-arch.c.
13207 (SUBDIR_UNITTESTS_OBS): Rename to...
13208 (SELFTESTS_OBS): ... this.
13209 (COMMON_SFILES): Remove disasm-selftests.c and
13210 gdbarch-selftests.c.
13211 * configure.ac: Don't add selftest-arch.{c,o} to
13212 CONFIG_{SRCS,OBS}.
13213 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13214 preprocessor conditions.
13215
db6878ac
SM
132162020-03-12 Simon Marchi <simon.marchi@efficios.com>
13217
13218 * configure.ac: Don't source bfd/development.sh.
13219 * selftest.m4: Modify comment.
13220 * configure: Re-generate.
13221
4d696a5c
SM
132222020-03-12 Simon Marchi <simon.marchi@efficios.com>
13223
13224 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13225 not "true" or "false".
13226 * configure: Re-generate.
13227
8dd8e1c7
CB
132282020-03-12 Christian Biesinger <cbiesinger@google.com>
13229
13230 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13231 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13232 renamed to arm_nbsd_supply_gregset.
13233 (fetch_register): Update to call arm_nbsd_supply_gregset.
13234 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13235 (arm_netbsd_nat_target::fetch_registers): Update.
13236 (fetch_elfcore_registers): Removed.
13237 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13238 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13239 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13240 not require NetBSD system headers.
13241 (arm_nbsd_regset): New struct.
13242 (arm_nbsd_iterate_over_regset_sections): New function.
13243 (arm_netbsd_init_abi_common): Updated to call
13244 set_gdbarch_iterate_over_regset_sections.
13245 * arm-nbsd-tdep.h: New file.
13246
dd69bf7a
KB
132472020-03-11 Kevin Buettner <kevinb@redhat.com>
13248
13249 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13250 recursion.
13251
a0761e34
SM
132522020-03-11 Simon Marchi <simon.marchi@efficios.com>
13253
13254 * configure: Re-generate.
13255
e7a82140
TT
132562020-03-11 Tom Tromey <tromey@adacore.com>
13257
13258 * ada-typeprint.c (print_choices): Fix comment.
13259
dcc050c8
AB
132602020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13261
13262 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13263 previous item in the list, when the list has no items.
13264
1c33af77
TV
132652020-03-11 Tom de Vries <tdevries@suse.de>
13266
13267 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13268 PROP_LOCLIST handling code.
13269
8c95582d
AB
132702020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13271
13272 * buildsym-legacy.c (record_line): Pass extra parameter to
13273 record_line.
13274 * buildsym.c (buildsym_compunit::record_line): Take an extra
13275 parameter, reduce duplication in the line table, and record the
13276 is_stmt flag in the line table.
13277 * buildsym.h (buildsym_compunit::record_line): Add extra
13278 parameter.
13279 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13280 non-statement lines.
13281 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13282 this to the symtab builder.
13283 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13284 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13285 through to dwarf_record_line_1.
13286 * infrun.c (process_event_stop_test): When stepping, don't stop at
13287 a non-statement instruction, and only refresh the step info when
13288 we land in the middle of a line's range. Also add an extra
13289 comment.
13290 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13291 field.
13292 * record-btrace.c (btrace_find_line_range): Only record lines
13293 marked as is-statement.
13294 * stack.c (frame_show_address): Show the frame address if we are
13295 in a non-statement sal.
13296 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13297 (maintenance_print_one_line_table): Print a header for the is_stmt
13298 column, and include is_stmt information in the output.
13299 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13300 preference to non-statements.
13301 (find_pcs_for_symtab_line): Prefer is-statement entries.
13302 (find_line_common): Likewise.
13303 * symtab.h (struct linetable_entry): Add is_stmt field.
13304 (struct symtab_and_line): Likewise.
13305 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13306 arranging the line table.
13307
e4003a34
TV
133082020-03-07 Tom de Vries <tdevries@suse.de>
13309
13310 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13311 DIE.
13312
e8932576
TT
133132020-03-07 Tom Tromey <tom@tromey.com>
13314
13315 * valops.c (value_literal_complex): Remove obsolete comment.
13316 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13317 comment.
13318
29734269
SM
133192020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13320
13321 * infrun.h: Forward-declare thread_info.
13322 (set_step_info): Add thread_info parameter, add doc.
13323 * infrun.c (set_step_info): Add thread_info parameter, move doc
13324 to header.
13325 * infrun.c (process_event_stop_test): Pass thread to
13326 set_step_info call.
13327 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13328 set_step_info.
13329 (prepare_one_step): Add thread_info parameter, pass it to
13330 set_step_frame and prepare_one_step (recursive) call.
13331 (step_1): Pass thread to prepare_one_step call.
13332 (step_command_fsm::should_stop): Pass thread to
13333 prepare_one_step.
13334 (until_next_fsm): Pass thread to set_step_frame call.
13335 (finish_command): Pass thread to set_step_info call.
13336
b7d64b29
HD
133372020-03-06 Hannes Domani <ssbssa@yahoo.de>
13338
13339 * windows-tdep.c (windows_solib_create_inferior_hook):
13340 Check if inferior is running.
13341
09f2921c
TV
133422020-03-06 Tom de Vries <tdevries@suse.de>
13343
13344 * NEWS: Fix "the the".
13345 * ctfread.c: Same.
13346
fd760e79
TV
133472020-03-06 Tom de Vries <tdevries@suse.de>
13348
13349 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13350
20ea4a60
AB
133512020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13352
13353 * .dir-locals.el: Add a comment referencing the other copies of
13354 this file.
13355
0afbabf0
JB
133562020-03-05 John Baldwin <jhb@FreeBSD.org>
13357
13358 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13359 psargs.
13360
842806cb
TBA
133612020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13362
13363 * .gitattributes: New file.
13364
be1e3d3e
TT
133652020-03-04 Tom Tromey <tom@tromey.com>
13366
13367 * symmisc.c (print_symbol_bcache_statistics)
13368 (print_objfile_statistics): Update.
13369 * symfile.c (allocate_symtab): Use intern.
13370 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13371 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13372 macro_cache>: Remove.
13373 <string_cache>: New member.
13374 (struct objfile) <intern>: New methods.
13375 * elfread.c (elf_symtab_read): Use intern.
13376 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13377 (dwarf2_compute_name, dwarf2_physname)
13378 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13379 names.
13380 (guess_partial_die_structure_name): Update.
13381 (partial_die_info::fixup): Intern name.
13382 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13383 name.
13384 (dwarf2_name): Intern name. Update.
13385 * buildsym.c (buildsym_compunit::get_macro_table): Use
13386 string_cache.
13387
4e7625fd
TT
133882020-03-04 Tom Tromey <tom@tromey.com>
13389
13390 * jit.c (bfd_open_from_target_memory): Make "target" const.
13391 * corefile.c (gnutarget): Now const.
13392 * gdbcore.h (gnutarget): Now const.
13393
46f9f931
HD
133942020-03-04 Hannes Domani <ssbssa@yahoo.de>
13395
13396 * NEWS: Mention support for WOW64 processes.
13397 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13398 (amd64_windows_segment_register_p): Remove static.
13399 (_initialize_amd64_windows_nat): Update.
13400 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13401 * i386-windows-nat.c (context_offset): Update.
13402 (i386_mappings): Rename and remove static.
13403 (i386_windows_segment_register_p): Remove static.
13404 (_initialize_i386_windows_nat): Update.
13405 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13406 (STATUS_WX86_SINGLE_STEP): New macro.
13407 (EnumProcessModulesEx): New macro.
13408 (Wow64SuspendThread): New macro.
13409 (Wow64GetThreadContext): New macro.
13410 (Wow64SetThreadContext): New macro.
13411 (Wow64GetThreadSelectorEntry): New macro.
13412 (windows_set_context_register_offsets): Add static.
13413 (windows_set_segment_register_p): Likewise.
13414 (windows_add_thread): Adapt for WOW64 processes.
13415 (windows_fetch_one_register): Likewise.
13416 (windows_nat_target::fetch_registers): Likewise.
13417 (windows_store_one_register): Likewise.
13418 (display_selector): Likewise.
13419 (display_selectors): Likewise.
13420 (handle_exception): Likewise.
13421 (windows_continue): Likewise.
13422 (windows_nat_target::resume): Likewise.
13423 (windows_add_all_dlls): Likewise.
13424 (do_initial_windows_stuff): Likewise.
13425 (windows_nat_target::attach): Likewise.
13426 (windows_get_exec_module_filename): Likewise.
13427 (windows_nat_target::create_inferior): Likewise.
13428 (windows_xfer_siginfo): Likewise.
13429 (_initialize_loadable): Initialize Wow64SuspendThread,
13430 Wow64GetThreadContext, Wow64SetThreadContext,
13431 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13432 * windows-nat.h (windows_set_context_register_offsets):
13433 Remove declaration.
13434 (windows_set_segment_register_p): Likewise.
13435 (i386_windows_segment_register_p): Add declaration.
13436 (amd64_windows_segment_register_p): Likewise.
13437
440cf44e
LM
134382020-03-04 Luis Machado <luis.machado@linaro.org>
13439
13440 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13441 in "info registers" for AArch64/ARM.
13442
13443 The change caused "info registers" to not print GPR's.
13444
13445 gdb/ChangeLog:
13446
13447 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13448
13449 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13450 when reg->group is empty and reggroup is not.
13451
1009d92f
TT
134522020-03-03 Tom Tromey <tromey@adacore.com>
13453
13454 * dwarf2/frame.c (struct dwarf2_frame_cache)
13455 <checked_tailcall_bottom, entry_cfa_sp_offset,
13456 entry_cfa_sp_offset_p>: Remove members.
13457 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13458 (dwarf2_frame_prev_register): Don't call
13459 dwarf2_tailcall_sniffer_first.
13460 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13461 * frame-unwind.c (add_unwinder): New fuction.
13462 (frame_unwind_init): Use it. Add tailcall unwinder.
13463
5e5d66b6
AB
134642020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13465 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13466
13467 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13468 value should be printed as true.
13469
584cf46d
HD
134702020-03-03 Hannes Domani <ssbssa@yahoo.de>
13471
13472 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13473 (windows_init_abi): Set and use windows_so_ops.
13474
7b973adc
SDJ
134752020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13476
13477 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13478 when verifying if dealing with a convenience variable.
13479
bb7b70ab
LM
134802020-03-03 Luis Machado <luis.machado@linaro.org>
13481
13482 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13483
9822cb57
SM
134842020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13485
13486 * infrun.c (gdbarch_supports_displaced_stepping): New.
13487 (use_displaced_stepping): Break up conditions in smaller pieces.
13488 Use gdbarch_supports_displaced_stepping.
13489 (displaced_step_prepare_throw): Use
13490 gdbarch_supports_displaced_stepping.
13491
63e163f2
AB
134922020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13493
13494 * NEWS: Mention new behaviour of the history filename.
13495 * top.c (write_history_p): Add comment.
13496 (show_write_history_p): Add header comment, give a different
13497 message when history writing is on, but the history filename is
13498 empty.
13499 (history_filename): Add comment.
13500 (history_filename_empty): New function.
13501 (show_history_filename): Add header comment, give a different
13502 message when the filename is empty.
13503 (init_history): Compare history_filename against nullptr, and only
13504 read history if the filename is not empty.
13505 (set_history_filename): Add header comment, and only make
13506 non-empty filenames absolute.
13507 (init_main): Make the filename argument to 'set history filename'
13508 optional.
13509
81b86b97
CB
135102020-03-02 Christian Biesinger <cbiesinger@google.com>
13511
13512 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13513 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13514 (fetch_fp_register): Update.
13515 (fetch_fp_regs): Update.
13516 (store_fp_register): Update.
13517 (store_fp_regs): Update.
13518 (arm_netbsd_nat_target::read_description): New function.
13519 (fetch_elfcore_registers): Update.
13520
24ed6739
AB
135212020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13522
13523 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13524 general_thread if the stop reply is missing a thread-id.
13525 (remote_target::process_stop_reply): Use the first non-exited
13526 thread if the target didn't pass a thread-id.
13527 * infrun.c (do_target_wait): Move call to
13528 switch_to_inferior_no_thread to ....
13529 (do_target_wait_1): ... here.
13530
a84bb2a0
JT
135312020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13532
13533 * debuginfod-support.c: Include defs.h first.
13534
658dadf0
TV
135352020-02-28 Tom de Vries <tdevries@suse.de>
13536
13537 * symfile.c (set_initial_language): Use default language for lookup.
13538
4ebe4877
SM
135392020-02-28 Simon Marchi <simon.marchi@efficios.com>
13540
13541 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13542 reader variable, pass `this` to read_cutu_die_from_dwo.
13543
e5da1139
AM
135442020-02-27 Aaron Merey <amerey@redhat.com>
13545
13546 * source.c (open_source_file): Check for nullptr when computing
13547 srcpath.
13548
317f7127
TT
135492020-02-27 Tom Tromey <tromey@adacore.com>
13550
13551 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13552 member.
13553 (dwarf2_add_field): Don't update nfields.
13554 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13555
3104d9ee
AB
135562020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13557
13558 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13559 abs.
13560
b83470bf
TT
135612020-02-26 Tom Tromey <tom@tromey.com>
13562
13563 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13564 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13565 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13566 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13567 per_cu_data.
13568
edfe0a0c
TT
135692020-02-26 Tom Tromey <tom@tromey.com>
13570
13571 * dwarf2/index-write.c (psym_index_map): Change type.
13572 (add_address_entry_worker, write_one_signatured_type)
13573 (recursively_count_psymbols, recursively_write_psymbols)
13574 (class debug_names, psyms_seen_size, write_gdbindex)
13575 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13576
0d79cdc4
AM
135772020-02-26 Aaron Merey <amerey@redhat.com>
13578
13579 * Makefile.in: Handle optional debuginfod support.
13580 * NEWS: Update.
13581 * README: Add --with-debuginfod summary.
13582 * config.in: Regenerate.
13583 * configure: Regenerate.
13584 * configure.ac: Handle optional debuginfod support.
13585 * debuginfod-support.c: debuginfod helper functions.
13586 * debuginfod-support.h: Ditto.
13587 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13588 summary.
13589 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13590 when a dwz file cannot be found.
13591 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13592 debuginfo file cannot be found.
13593 * source.c (open_source_file): Query debuginfod servers when a
13594 source file cannot be found.
13595 * top.c (print_gdb_configuration): Include
13596 --{with,without}-debuginfod in the output.
13597
b65ce565
JG
135982020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13599
13600 * thread.c (thr_try_catch_cmd): Print thread name.
13601
d4c9a4f8
SM
136022020-02-26 Simon Marchi <simon.marchi@efficios.com>
13603
13604 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13605 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13606 dwarf2_fetch_die_type_sect_off): Move to...
13607 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13608 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13609 dwarf2_fetch_die_type_sect_off): ... here.
13610 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13611 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13612 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13613
0dce4280
TV
136142020-02-26 Tom de Vries <tdevries@suse.de>
13615
13616 PR gdb/25603
13617 * symfile.c (set_initial_language): Exit-early if
13618 language_mode == language_mode_manual.
13619
450a1bfc
SM
136202020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13621
13622 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13623 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13624 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13625
9e80cfa1
AB
136262020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13627
13628 * gdbtypes.c (create_array_type_with_stride): Handle negative
13629 array strides.
13630 * valarith.c (value_subscripted_rvalue): Likewise.
13631
09624f1f
LM
136322020-02-25 Luis Machado <luis.machado@linaro.org>
13633
13634 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13635
8cb5117c
SM
136362020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13637
13638 * loc.h (dwarf2_get_die_type): Move to...
13639 * read.h (dwarf2_get_die_type): ... here.
13640 * read.c (dwarf2_get_die_type): Move doc to header.
13641
c325c44e
JB
136422020-02-25 Joel Brobecker <brobecker@adacore.com>
13643
13644 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13645 'gnulib/Makefile.in' to the list.
13646
4ac93832
TT
136472020-02-24 Tom Tromey <tom@tromey.com>
13648
13649 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13650 Remove.
13651 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13652 XOBNEWVEC.
13653
197400e8
TT
136542020-02-24 Tom Tromey <tom@tromey.com>
13655
13656 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13657 New method.
13658 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13659 (dw2_do_instantiate_symtab, dw2_get_file_names)
13660 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13661
76935768
TT
136622020-02-24 Tom Tromey <tom@tromey.com>
13663
13664 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13665 make_scoped_restore.
13666 (dwarf2_psymtab::read_symtab): Don't clear
13667 reading_partial_symbols.
13668
a88ef40d
TV
136692020-02-24 Tom de Vries <tdevries@suse.de>
13670
13671 PR gdb/25592
13672 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13673
c9af6521
TV
136742020-02-24 Tom de Vries <tdevries@suse.de>
13675
13676 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13677 commands layout next/prev/regs.
13678
5707a07a
TT
136792020-02-22 Tom Tromey <tom@tromey.com>
13680
13681 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13682 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13683
3b0fb49e
TT
136842020-02-22 Tom Tromey <tom@tromey.com>
13685
13686 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13687
283be8bf
TT
136882020-02-22 Tom Tromey <tom@tromey.com>
13689
13690 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13691 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13692 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13693 * tui/tui.c (_initialize_tui): Add usage text.
13694
ca793b96
TT
136952020-02-22 Tom Tromey <tom@tromey.com>
13696
13697 * tui/tui-win.c (tui_set_focus_command)
13698 (tui_set_win_height_command): Use error_no_arg.
13699 (_initialize_tui_win): Update help text.
13700 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13701
432b5c40
TT
137022020-02-22 Tom Tromey <tom@tromey.com>
13703
13704 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13705 * tui/tui-disasm.h (struct tui_disasm_window)
13706 <display_start_addr>: Declare.
13707 * tui/tui-source.h (struct tui_source_window)
13708 <display_start_addr>: Declare.
13709 * tui/tui-winsource.h (struct tui_source_window_base)
13710 <show_source_line, display_start_addr>: New methods.
13711 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13712 Rename and move to protected section.
13713 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13714 (tui_source_window_base::do_erase_source_content): Update.
13715 (tui_source_window_base::show_source_line): Now a method.
13716 (tui_source_window_base::show_source_content)
13717 (tui_source_window_base::tui_source_window_base)
13718 (tui_source_window_base::rerender)
13719 (tui_source_window_base::refill)
13720 (tui_source_window_base::do_scroll_horizontal)
13721 (tui_source_window_base::set_is_exec_point_at)
13722 (tui_source_window_base::update_breakpoint_info)
13723 (tui_source_window_base::update_exec_info): Update.
13724 * tui/tui-source.c (tui_source_window::set_contents)
13725 (tui_source_window::showing_source_p)
13726 (tui_source_window::do_scroll_vertical)
13727 (tui_source_window::location_matches_p)
13728 (tui_source_window::line_is_displayed): Update.
13729 (tui_source_window::display_start_addr): New method.
13730 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13731 (tui_disasm_window::do_scroll_vertical)
13732 (tui_disasm_window::location_matches_p): Update.
13733 (tui_disasm_window::display_start_addr): New method.
13734
01b1af32
TT
137352020-02-22 Tom Tromey <tom@tromey.com>
13736
13737 * NEWS: Add entry for gdb.register_window_type.
13738 * tui/tui-layout.h (window_factory): New typedef.
13739 (tui_register_window): Declare.
13740 * tui/tui-layout.c (saved_tui_windows): New global.
13741 (tui_apply_current_layout): Use it.
13742 (tui_register_window): New function.
13743 * python/python.c (do_start_initialization): Call
13744 gdbpy_initialize_tui.
13745 (python_GdbMethods): Add "register_window_type" function.
13746 * python/python-internal.h (gdbpy_register_tui_window)
13747 (gdbpy_initialize_tui): Declare.
13748 * python/py-tui.c: New file.
13749 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13750
fc96d20b
TT
137512020-02-22 Tom Tromey <tom@tromey.com>
13752
13753 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13754
935c78c0
TT
137552020-02-22 Tom Tromey <tom@tromey.com>
13756
13757 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13758 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13759 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13760 (tui_set_win_focus_to): Move from tui-win.c.
13761
0240c8f1
TT
137622020-02-22 Tom Tromey <tom@tromey.com>
13763
13764 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13765 functions.
13766 (known_window_types): New global.
13767 (tui_get_window_by_name): Reimplement.
13768 (initialize_known_windows): New function.
13769 (validate_window_name): Rewrite.
13770 (_initialize_tui_layout): Call initialize_known_windows.
13771
fdb01f0c
TT
137722020-02-22 Tom Tromey <tom@tromey.com>
13773
13774 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13775 Remove constants.
13776 * tui/tui-winsource.h (struct tui_source_window_base)
13777 <tui_source_window_base>: Remove parameter.
13778 * tui/tui-winsource.c
13779 (tui_source_window_base::tui_source_window_base): Remove
13780 parameter.
13781 (tui_source_window_base::refill): Update.
13782 * tui/tui-stack.h (struct tui_locator_window)
13783 <tui_locator_window>: Update.
13784 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13785 Default the constructor.
13786 * tui/tui-regs.h (struct tui_data_item_window)
13787 <tui_data_item_window>: Default the constructor.
13788 (struct tui_data_window) <tui_data_window>: Likewise.
13789 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13790 Default the constructor.
13791 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13792 Default the constructor.
13793 <type>: Remove.
13794 (struct tui_win_info) <tui_win_info>: Default the constructor.
13795 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13796 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13797 Default the constructor.
13798
865a5aec
TT
137992020-02-22 Tom Tromey <tom@tromey.com>
13800
13801 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13802 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13803 * tui/tui-win.c (tui_resize_all): Don't call
13804 tui_delete_invisible_windows.
13805 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13806 done.
13807 (tui_set_layout): Update.
13808 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13809 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13810 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13811
e098d18c
TT
138122020-02-22 Tom Tromey <tom@tromey.com>
13813
13814 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13815 correctly.
13816
eb9c8874
TT
138172020-02-22 Tom Tromey <tom@tromey.com>
13818
13819 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13820
7eed1a8e
TT
138212020-02-22 Tom Tromey <tom@tromey.com>
13822
13823 * tui/tui-winsource.h (struct tui_source_window_iterator)
13824 <inner_iterator>: New etytypedef.
13825 <tui_source_window_iterator>: Take "end" parameter.
13826 <tui_source_window_iterator>: Take iterator.
13827 <operator*, advance>: Update.
13828 <m_iter>: Change type.
13829 <m_end>: New field.
13830 (struct tui_source_windows) <begin, end>: Update.
13831 * tui/tui-layout.c (tui_windows): New global.
13832 (tui_apply_current_layout): Clear tui_windows.
13833 (tui_layout_window::apply): Update tui_windows.
13834 * tui/tui-data.h (tui_windows): Declare.
13835 (all_tui_windows): Now inline function.
13836 (class tui_window_iterator, struct all_tui_windows): Remove.
13837
7c043ba6
TT
138382020-02-22 Tom Tromey <tom@tromey.com>
13839
13840 PR tui/17850:
13841 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13842 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13843 "height" argument.
13844 (class tui_layout_window) <get_sizes>: Likewise.
13845 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13846 argument.
13847 <get_sizes>: Add "height" argument.
13848 <m_vertical>: New field.
13849 * tui/tui-layout.c (tui_layout_split::clone): Update.
13850 (tui_layout_split::get_sizes): Add "height" argument.
13851 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13852 (tui_new_layout_command): Parse "-horizontal".
13853 (_initialize_tui_layout): Update help string.
13854 (tui_layout_split::specification): Add "-horizontal" when needed.
13855 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13856 argument.
13857 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13858 New methods.
13859
6bc56648
TT
138602020-02-22 Tom Tromey <tom@tromey.com>
13861
13862 * tui/tui-layout.h (enum tui_adjust_result): New.
13863 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13864 (class tui_layout_window) <adjust_size>: Return
13865 tui_adjust_result. Rewrite.
13866 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13867 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13868
c22fef7e
TT
138692020-02-22 Tom Tromey <tom@tromey.com>
13870
13871 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13872 parameter and return types.
13873 (class tui_layout_base) <specification>: Add "depth".
13874 (class tui_layout_window) <specification>: Add "depth".
13875 (class tui_layout_split) <specification>: Add "depth".
13876 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13877 and return types.
13878 (tui_new_layout_command): Parse sub-layouts.
13879 (_initialize_tui_layout): Update help string.
13880 (tui_layout_window::specification): Add "depth".
13881 (add_layout_command): Update.
13882
ee325b61
TT
138832020-02-22 Tom Tromey <tom@tromey.com>
13884
13885 * NEWS: Add "tui new-layout" item.
13886 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13887 Add new-layout command to help text.
13888 (validate_window_name): New function.
13889 (tui_new_layout_command): New function.
13890 (_initialize_tui_layout): Register "new-layout".
13891 (tui_layout_window::specification): New method.
13892 (tui_layout_window::specification): New method.
13893 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13894 method.
13895 (class tui_layout_window) <specification>: New method.
13896 (class tui_layout_split) <specification>: New method.
13897
416eb92d
TT
138982020-02-22 Tom Tromey <tom@tromey.com>
13899
13900 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13901 * tui/tui-win.c (window_name_completer): Update comment.
13902 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13903 Declare method.
13904 (class tui_layout_window) <replace_window>: Likewise.
13905 (class tui_layout_split) <replace_window>: Likewise.
13906 (tui_set_layout): Don't declare.
13907 (tui_set_initial_layout): Declare function.
13908 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13909 (asm_regs_layout): New globals.
13910 (tui_current_layout, show_layout): Remove.
13911 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13912 (find_layout, tui_apply_layout): New function.
13913 (layout_completer): Remove.
13914 (tui_next_layout): Reimplement.
13915 (tui_next_layout_command): New function.
13916 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13917 (tui_regs_layout): Reimplement.
13918 (tui_regs_layout_command): New function.
13919 (extract_display_start_addr): Rewrite.
13920 (next_layout, prev_layout): Remove.
13921 (tui_layout_window::replace_window): New method.
13922 (tui_layout_split::replace_window): New method.
13923 (destroy_layout): New function.
13924 (layout_list): New global.
13925 (add_layout_command): New function.
13926 (initialize_layouts): Update.
13927 (tui_layout_command): New function.
13928 (_initialize_tui_layout): Install "layout" commands.
13929 * tui/tui-data.h (enum tui_layout_type): Remove.
13930 (tui_current_layout): Don't declare.
13931
0dbc2fc7
TT
139322020-02-22 Tom Tromey <tom@tromey.com>
13933
13934 * tui/tui-regs.c (tui_reg_layout): Remove.
13935 (tui_reg_command): Use tui_regs_layout.
13936 * tui/tui-layout.h (tui_reg_command): Declare.
13937 * tui/tui-layout.c (tui_reg_command): New function.
13938
5afe342e
TT
139392020-02-22 Tom Tromey <tom@tromey.com>
13940
13941 * tui/tui.c (tui_rl_delete_other_windows): Call
13942 tui_remove_some_windows.
13943 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13944 Declare method.
13945 (class tui_layout_window) <remove_windows>: New method.
13946 (class tui_layout_split) <remove_windows>: Declare.
13947 (tui_remove_some_windows): Declare.
13948 * tui/tui-layout.c (tui_remove_some_windows): New function.
13949 (tui_layout_split::remove_windows): New method.
13950
427326a8
TT
139512020-02-22 Tom Tromey <tom@tromey.com>
13952
13953 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13954 * tui/tui-layout.h (tui_next_layout): Declare.
13955 * tui/tui-layout.c (tui_next_layout): New function.
13956
3fe12b6d
TT
139572020-02-22 Tom Tromey <tom@tromey.com>
13958
13959 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13960 correct coordinates.
13961
59b8b5d2
TT
139622020-02-22 Tom Tromey <tom@tromey.com>
13963
13964 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13965 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13966 DATA_WIN case.
13967
2a3d458b
TT
139682020-02-22 Tom Tromey <tom@tromey.com>
13969
13970 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13971 TUI_DISASM_WIN, not tui_win_list.
13972
3f0cbb04
TT
139732020-02-22 Tom Tromey <tom@tromey.com>
13974
13975 * valprint.c (generic_val_print_enum_1)
13976 (val_print_type_code_flags): Style member names.
13977 * rust-lang.c (val_print_struct, rust_print_enum)
13978 (rust_print_struct_def, rust_internal_print_type): Style member
13979 names.
13980 * p-valprint.c (pascal_object_print_value_fields): Style member
13981 names. Only call fprintf_symbol_filtered for static members.
13982 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13983 * f-valprint.c (f_val_print): Style member names.
13984 * f-typeprint.c (f_type_print_base): Style member names.
13985 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13986 call fprintf_symbol_filtered for static members.
13987 (cp_print_class_member): Style member names.
13988 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13989 member names.
13990 * ada-valprint.c (ada_print_scalar): Style enum names.
13991 (ada_val_print_enum): Likewise.
13992 * ada-typeprint.c (print_enum_type): Style enum names.
13993
d4d947ae
TT
139942020-02-21 Tom Tromey <tom@tromey.com>
13995
13996 * psympriv.h (struct partial_symtab): Update comment.
13997
e94e944b
TT
139982020-02-21 Tom Tromey <tromey@adacore.com>
13999
14000 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14001 type is CORE_ADDR.
14002
1eb73179
TV
140032020-02-21 Tom de Vries <tdevries@suse.de>
14004
14005 PR gdb/25534
14006 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14007 if dependencies[i]->user != NULL.
14008
4f180d53
AT
140092020-02-21 Ali Tamur <tamur@google.com>
14010
14011 * dwarf2/read.c (dwarf2_name): Add null check.
14012
22b6cd70
TT
140132020-02-20 Tom Tromey <tom@tromey.com>
14014
14015 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14016 ">=", in binary search.
14017 (dwarf2_find_containing_comp_unit): New overload.
14018 (run_test): New self-test.
14019 (_initialize_dwarf2_read): Register new test.
14020
bd0cf5a6
NC
140212020-02-20 Nelson Chu <nelson.chu@sifive.com>
14022
14023 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14024 * riscv-tdep.h: Likewise.
14025 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14026 rv32-only CSR.
14027 * features/riscv/64bit-csr.xml: Regenerated.
14028
3f702acd
SDJ
140292020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14030 Tom Tromey <tom@tromey.com>
14031
14032 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14033 of 'fputc_unfiltered'.
14034 (putchar_unfiltered): Call 'fputc_unfiltered'.
14035 (fputc_unfiltered): Call 'fputs_unfiltered'.
14036
d13c7322
AB
140372020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14038
14039 * config.in: Regenerate.
14040 * configure: Regenerate.
14041 * configure.ac: Add --with-python-libdir option.
14042 * main.c: Use WITH_PYTHON_LIBDIR.
14043
869d8950
TT
140442020-02-19 Tom Tromey <tom@tromey.com>
14045
14046 * symtab.c (general_symbol_info::compute_and_set_names): Use
14047 obstack_strndup. Simplify call to symbol_set_demangled_name.
14048
298e9637
SM
140492020-02-19 Simon Marchi <simon.marchi@efficios.com>
14050
14051 * dwarf2/read.c (allocate_signatured_type_table,
14052 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14053 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14054 Remove objfile parameter, update all callers.
14055
08410482
DE
140562020-02-19 Doug Evans <dje@google.com>
14057
14058 PR rust/25535
14059 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14060 rust_enum_variant calculation.
14061
dfdeeca1
TT
140622020-02-19 Tom Tromey <tromey@adacore.com>
14063
14064 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14065
2ef5453b
TT
140662020-02-19 Tom Tromey <tromey@adacore.com>
14067
14068 * ada-lang.c (cache_symbol): Use obstack_strdup.
14069
9f1528a1
AB
140702020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14071
14072 * configure: Regenerate.
14073
d3c22fa8
TT
140742020-02-19 Tom Tromey <tromey@adacore.com>
14075
14076 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14077 NULL check.
14078
bf84f706
MR
140792020-02-19 Maciej W. Rozycki <macro@wdc.com>
14080
14081 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14082
d1c9b20f
AB
140832020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14084
14085 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14086 if GDBSERVER is not defined.
14087 (riscv_tdesc_cache): Likewise, also store const target_desc.
14088 (STATIC_IN_GDB): Define.
14089 (riscv_create_target_description): Update declaration with
14090 STATIC_IN_GDB.
14091 (riscv_lookup_target_description): New function, only define if
14092 GDBSERVER is not defined.
14093 * arch/riscv.h (riscv_create_target_description): Declare only
14094 when GDBSERVER is defined.
14095 (riscv_lookup_target_description): New declaration when GDBSERVER
14096 is not defined.
14097 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14098 (riscv_linux_read_features): ...this, and return
14099 riscv_gdbarch_features instead of target_desc.
14100 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14101 (riscv_linux_read_description): Rename to...
14102 (riscv_linux_read_features): ...this.
14103 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14104 Update to use riscv_gdbarch_features and
14105 riscv_lookup_target_description.
14106 * riscv-tdep.c (riscv_find_default_target_description): Use
14107 riscv_lookup_target_description instead of
14108 riscv_create_target_description.
14109
373d7ac0
SM
141102020-02-18 Simon Marchi <simon.marchi@efficios.com>
14111
14112 * valprint.c (generic_val_print_enum_1): When printing a flag
14113 enum with value 0 and there is no enumerator with value 0, print
14114 just "0" instead of "(unknown: 0x0)".
14115
b29a2df0
SM
141162020-02-18 Simon Marchi <simon.marchi@efficios.com>
14117
14118 * valprint.c (generic_val_print_enum_1): Print unknown part of
14119 flag enum in hex.
14120
6740f0cc
SM
141212020-02-18 Simon Marchi <simon.marchi@efficios.com>
14122
14123 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14124 flag enums to contain duplicate enumerators.
14125 * valprint.c (generic_val_print_enum_1): Update comment.
14126
edd45eb0
SM
141272020-02-18 Simon Marchi <simon.marchi@efficios.com>
14128
14129 * dwarf2/read.c: Include "count-one-bits.h".
14130 (update_enumeration_type_from_children): If an enumerator has
14131 multiple bits set, don't treat the enumeration as a "flag enum".
14132 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14133 of flag enums have 0 or 1 bit set.
14134
6d0cf446
BE
141352020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14136
14137 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14138 conversion.
14139 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14140 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14141 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14142 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14143 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14144
7001c1b7
SM
141452020-02-18 Simon Marchi <simon.marchi@efficios.com>
14146
14147 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14148
fdb61c6c
SM
141492020-02-14 Simon Marchi <simon.marchi@efficios.com>
14150
14151 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14152 displaced_step_closure_up.
14153 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14154 (struct displaced_step_closure_up):
14155 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14156 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14157 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14158 Likewise.
14159 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14160 * gdbarch.c, gdbarch.h: Re-generate.
14161 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14162 displaced_step_closure_up.
14163 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14164 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14165 * infrun.h (displaced_step_closure_up): New type alias.
14166 (struct displaced_step_inferior_state) <step_closure>: Change
14167 type to displaced_step_closure_up.
14168 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14169 displaced_step_closure_up.
14170 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14171
a4a38eb4
TT
141722020-02-14 Tom Tromey <tom@tromey.com>
14173
14174 * minidebug.c (gnu_debug_key): New global.
14175 (find_separate_debug_file_in_section): Use it.
14176
e8217e61
SM
141772020-02-14 Simon Marchi <simon.marchi@efficios.com>
14178
14179 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14180 std::unique_ptr.
14181 * gdbarch.c: Re-generate.
14182 * gdbarch.h: Re-generate.
14183 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14184 change.
14185 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14186 type to std::unique_ptr.
14187 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14188 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14189 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14190 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14191 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14192 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14193 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14194 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14195 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14196
d8d83535
SM
141972020-02-14 Simon Marchi <simon.marchi@efficios.com>
14198
14199 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14200 std::unique_ptr.
14201 (displaced_step_clear): Rename to...
14202 (displaced_step_reset): ... this. Just call displaced->reset ().
14203 (displaced_step_clear_cleanup): Rename to...
14204 (displaced_step_reset_cleanup): ... this.
14205 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14206 (displaced_step_fixup): Likewise.
14207 (resume_1): Likewise.
14208 (handle_inferior_event): Restore child's memory before calling
14209 displaced_step_fixup on the parent.
14210 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14211 to std::unique_ptr.
14212 <step_closure>: Change type to std::unique_ptr.
14213
5f661e03
SM
142142020-02-14 Simon Marchi <simon.marchi@efficios.com>
14215
14216 * arm-tdep.c: Include count-one-bits.h.
14217 (cleanup_block_store_pc): Use count_one_bits.
14218 (cleanup_block_load_pc): Use count_one_bits.
14219 (arm_copy_block_xfer): Use count_one_bits.
14220 (thumb2_copy_block_xfer): Use count_one_bits.
14221 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14222 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14223 (thumb_get_next_pcs_raw): Use count_one_bits.
14224 (arm_get_next_pcs_raw): Use count_one_bits_l.
14225 * arch/arm.c (bitcount): Remove.
14226 * arch/arm.h (bitcount): Remove.
14227
8084e579
TT
142282020-02-14 Tom Tromey <tromey@adacore.com>
14229
14230 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14231 Update.
14232 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14233 * dwarf2/loc.c (call_site_find_chain_1): Return
14234 unique_xmalloc_ptr.
14235 (call_site_find_chain): Likewise.
14236
258bf0ee
RB
142372020-02-14 Richard Biener <rguenther@suse.de>
14238
14239 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14240 on expression with division operators.
14241
f98a8458
AKS
142422020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14243
14244 * MAINTAINERS (Write After Approval): Adding myself.
14245
d1437c0e
TT
142462020-02-12 Tom Tromey <tom@tromey.com>
14247
14248 * event-loop.c (event_data, gdb_event, event_handler_func):
14249 Remove.
14250
3d4560f7
TT
142512020-02-12 Tom Tromey <tom@tromey.com>
14252
14253 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14254 (dwarf2_frame_objfile_data): Add comment.
14255 (find_comp_unit, set_comp_unit): New functions.
14256 (dwarf2_frame_find_fde): Use find_comp_unit.
14257 (dwarf2_build_frame_info): Use set_comp_unit.
14258
21982304
TT
142592020-02-12 Tom Tromey <tom@tromey.com>
14260
14261 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14262 (comp_unit): Don't initialize objfile.
14263 (execute_cfa_program): Add text_offset parameter.
14264 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14265 (dwarf2_frame_cache): Update.
14266 (dwarf2_build_frame_info): Don't set "objfile" member.
14267
4debb237
TT
142682020-02-12 Tom Tromey <tom@tromey.com>
14269
14270 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14271 (decode_frame_entry): Likewise.
14272 (dwarf2_build_frame_info): Update.
14273
0d404d44
TT
142742020-02-12 Tom Tromey <tom@tromey.com>
14275
14276 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14277 (decode_frame_entry_1): Use the comp_unit obstack.
14278
a7a3ae5c
TT
142792020-02-12 Tom Tromey <tom@tromey.com>
14280
14281 * dwarf2/frame.c (struct comp_unit): Add initializers and
14282 constructor.
14283 (dwarf2_frame_objfile_data): Store a comp_unit.
14284 (dwarf2_frame_find_fde): Update.
14285 (dwarf2_build_frame_info): Use "new".
14286
a9d65418
TT
142872020-02-12 Tom Tromey <tom@tromey.com>
14288
14289 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14290 (dwarf2_fde_table): Typedef for std::vector.
14291 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14292 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14293 (decode_frame_entry): Update.
14294 (dwarf2_build_frame_info): Use "new".
14295
7559c217
CB
142962020-02-12 Christian Biesinger <cbiesinger@google.com>
14297
14298 * arm-tdep.c (arm_gdbarch_init): Update.
14299 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14300 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14301 have_neon, is_m>: Change to bool.
14302
aeefc73c
CB
143032020-02-12 Christian Biesinger <cbiesinger@google.com>
14304
14305 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14306
d27b8e5f
TT
143072020-02-12 Tom Tromey <tom@tromey.com>
14308
14309 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14310
cd5900f3
HD
143112020-02-12 Hannes Domani <ssbssa@yahoo.de>
14312
14313 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14314 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14315
f056b22b
TT
143162020-02-11 Tom Tromey <tom@tromey.com>
14317
14318 * psymtab.h: Update comment.
14319
f92ff6b5
TT
143202020-02-11 Tom Tromey <tom@tromey.com>
14321
14322 * gdb_obstack.h (struct auto_obstack): Use
14323 DISABLE_COPY_AND_ASSIGN.
14324
3fd6912b
TT
143252020-02-11 Tom Tromey <tom@tromey.com>
14326
14327 * dwarf2/frame.h (struct objfile): Don't forward declare.
14328
69ed9b74
CB
143292020-02-11 Christian Biesinger <cbiesinger@google.com>
14330
14331 * cris-tdep.c (cris_supply_gregset): Change signature to match
14332 what struct regset expects.
14333 (cris_regset): New struct.
14334 (fetch_core_registers): Remove.
14335 (cris_iterate_over_regset_sections): New function.
14336 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14337 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14338
bda874f6
CB
143392020-02-11 Christian Biesinger <cbiesinger@google.com>
14340
14341 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14342 registers.
14343
754e1564
CB
143442020-02-11 Christian Biesinger <cbiesinger@google.com>
14345
14346 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14347
8ddd8e0e
SM
143482020-02-11 Simon Marchi <simon.marchi@efficios.com>
14349
14350 * configure: Re-generate.
14351
898e7f60
SM
143522020-02-11 Simon Marchi <simon.marchi@efficios.com>
14353
14354 * configure: Re-generate.
14355
58df732b
SM
143562020-02-11 Simon Marchi <simon.marchi@efficios.com>
14357
14358 * acinclude: Update warning.m4 path.
14359 * warning.m4: Move to gdbsupport.
14360
da5bd37e
TT
143612020-02-11 Tom Tromey <tromey@adacore.com>
14362
14363 * remote.c (remote_console_output): Update.
14364 * printcmd.c (printf_command): Update.
14365 * event-loop.c (gdb_wait_for_event): Update.
14366 * linux-nat.c (sigchld_handler): Update.
14367 * remote-sim.c (gdb_os_write_stdout): Update.
14368 (gdb_os_flush_stdout): Update.
14369 (gdb_os_flush_stderr): Update.
14370 (gdb_os_write_stderr): Update.
14371 * exceptions.c (print_exception): Update.
14372 * remote-fileio.c (remote_fileio_func_read): Update.
14373 (remote_fileio_func_write): Update.
14374 * tui/tui.c (tui_enable): Update.
14375 * tui/tui-interp.c (tui_interp::init): Update.
14376 * utils.c (init_page_info): Update.
14377 (putchar_unfiltered, fputc_unfiltered): Update.
14378 (gdb_flush): Update.
14379 (emit_style_escape): Update.
14380 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14381 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14382 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14383 (stderr_file::write): Update.
14384 (stderr_file::puts): Update.
14385 * ui-file.h (ui_file_isatty, ui_file_write)
14386 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14387 (ui_file_puts): Don't declare.
14388
85f0dd3c
TV
143892020-02-10 Tom de Vries <tdevries@suse.de>
14390
14391 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14392 sentinel to char *.
14393
2e927613
TV
143942020-02-09 Tom de Vries <tdevries@suse.de>
14395
14396 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14397 filename if it matches "<artificial>".
14398
6bafc845
HD
143992020-02-09 Hannes Domani <ssbssa@yahoo.de>
14400
14401 * windows-tdep.c (struct enum_value_name): New struct.
14402 (create_enum): New function.
14403 (windows_get_siginfo_type): Create and use enum types.
14404
7928d571
HD
144052020-02-09 Hannes Domani <ssbssa@yahoo.de>
14406
14407 * NEWS: Mention $_siginfo support for Windows.
14408 * windows-nat.c (handle_exception): Set siginfo_er.
14409 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14410 (windows_xfer_siginfo): New function.
14411 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14412 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14413 (init_windows_gdbarch_data): New function.
14414 (get_windows_gdbarch_data): New function.
14415 (windows_get_siginfo_type): New function.
14416 (windows_init_abi): Register windows_get_siginfo_type.
14417 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14418
6751ebae
TT
144192020-02-08 Tom Tromey <tom@tromey.com>
14420
14421 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14422 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14423 <keep>: Declare method.
14424 <m_keep>: Remove member.
14425 <~cutu_reader>: Remove.
14426 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14427 (cutu_reader::cutu_reader): Update.
14428 (cutu_reader::keep): Rename from ~cutu_reader.
14429 (process_psymtab_comp_unit, build_type_psymtabs_1)
14430 (process_skeletonless_type_unit, load_partial_comp_unit)
14431 (load_full_comp_unit, dwarf2_read_addr_index)
14432 (read_signatured_type): Update.
14433
135f5437
TT
144342020-02-08 Tom Tromey <tom@tromey.com>
14435
14436 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14437 "want_partial_unit" parameter.
14438 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14439 Inline check for DW_TAG_partial_unit.
14440 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14441
9f66ff1c
TT
144422020-02-08 Tom Tromey <tom@tromey.com>
14443
14444 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14445 read.c.
14446 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14447 read.c.
14448
c8a7a66f
TT
144492020-02-08 Tom Tromey <tom@tromey.com>
14450
14451 * dwarf2/read.c (read_address): Move to comp-unit.c.
14452 (dwarf2_rnglists_process, dwarf2_ranges_process)
14453 (read_attribute_value, dwarf_decode_lines_1)
14454 (var_decode_location, decode_locdesc): Update.
14455 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14456 read.c. Remove "cu" parameter.
14457 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14458 method.
14459
8266302d
TT
144602020-02-08 Tom Tromey <tom@tromey.com>
14461
14462 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14463 (read_indirect_line_string): Update.
14464 * dwarf2/comp-unit.c (read_offset): Remove.
14465 (read_comp_unit_head): Update.
14466 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14467 method.
14468 (read_offset): Don't declare.
14469
4057dfde
TT
144702020-02-08 Tom Tromey <tom@tromey.com>
14471
14472 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14473 * dwarf2/read.c (struct comp_unit_head): Move to
14474 dwarf2/comp-unit.h.
14475 (enum class rcuh_kind): Move to comp-unit.h.
14476 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14477 (read_comp_unit_head, error_check_comp_unit_head)
14478 (read_and_check_comp_unit_head): Move to comp-unit.c.
14479 (read_offset, dwarf_unit_type_name): Likewise.
14480 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14481 (cutu_reader::cutu_reader, read_call_site_scope)
14482 (find_partial_die, follow_die_offset): Update.
14483 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14484
24aa364d
TT
144852020-02-08 Tom Tromey <tom@tromey.com>
14486
14487 * dwarf2/read.c (read_offset_1): Move to leb.c.
14488 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14489 (dwarf_decode_macro_bytes): Update.
14490 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14491 * dwarf2/leb.h (read_offset): Declare.
14492
2c7d5afc
TT
144932020-02-08 Tom Tromey <tom@tromey.com>
14494
14495 * dwarf2/read.c (dwarf2_section_size): Remove.
14496 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14497 Update.
14498 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14499
4075cb26
TT
145002020-02-08 Tom Tromey <tom@tromey.com>
14501
14502 * dwarf2/read.c (read_initial_length): Move to leb.c.
14503 * dwarf2/leb.h (read_initial_length): Declare.
14504 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14505 handle_nonstd parameter.
14506 * dwarf2/frame.c (read_initial_length): Remove.
14507 (decode_frame_entry_1): Update.
14508
09ba997f
TT
145092020-02-08 Tom Tromey <tom@tromey.com>
14510
14511 * dwarf2/loc.c (dwarf2_find_location_expression)
14512 (dwarf_evaluate_loc_desc::get_tls_address)
14513 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14514 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14515 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14516 (dwarf2_compile_property_to_c)
14517 (dwarf2_loc_desc_get_symbol_read_needs)
14518 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14519 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14520 (loclist_describe_location, loclist_tracepoint_var_ref)
14521 (loclist_generate_c_location): Update.
14522 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14523 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14524 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14525 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14526 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14527 (dwarf2_per_cu_data::addr_size)
14528 (dwarf2_per_cu_data::ref_addr_size)
14529 (dwarf2_per_cu_data::text_offset)
14530 (dwarf2_per_cu_data::addr_type): Now methods.
14531 (per_cu_header_read_in): Make per_cu "const".
14532 (dwarf2_version): Remove.
14533 (dwarf2_per_cu_data::int_type): Now a method.
14534 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14535 (set_die_type, read_array_type, read_subrange_index_type)
14536 (read_tag_string_type, read_subrange_type): Update.
14537 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14538 offset_size, ref_addr_size, text_offset, addr_type, version,
14539 objfile, int_type, addr_sized_int_type>: Declare methods.
14540
96c738c0
TT
145412020-02-08 Tom Tromey <tom@tromey.com>
14542
14543 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14544 Move earlier.
14545
8fdd972c
TT
145462020-02-08 Tom Tromey <tom@tromey.com>
14547
14548 * dwarf2/read.h (dwarf_line_debug): Declare.
14549 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14550 * dwarf2/read.c: Move line_header code to new files.
14551 (dwarf_line_debug): No longer static.
14552 * dwarf2/line-header.c: New file.
14553 * dwarf2/line-header.h: New file.
14554
03075812
TT
145552020-02-08 Tom Tromey <tom@tromey.com>
14556
14557 * dwarf2/read.c (struct line_header) <file_full_name,
14558 file_file_name>: Return unique_xmalloc_ptr.
14559 (line_header::file_file_name): Update.
14560 (line_header::file_full_name): Update.
14561 (dw2_get_file_names_reader): Update.
14562 (macro_start_file): Update.
14563
bb822404
TT
145642020-02-08 Tom Tromey <tom@tromey.com>
14565
14566 * dwarf2/read.c (struct line_header) <file_full_name,
14567 file_file_name>: Declare methods.
14568 (dw2_get_file_names_reader): Update.
14569 (file_file_name): Now a method.
14570 (file_full_name): Likewise.
14571 (macro_start_file): Update.
14572
009b64fc
TT
145732020-02-08 Tom Tromey <tom@tromey.com>
14574
14575 * dwarf2/read.c (dwarf_always_disassemble)
14576 (show_dwarf_always_disassemble): Move to loc.c.
14577 (_initialize_dwarf2_read): Move "always-disassemble" registration
14578 to loc.c.
14579 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14580 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14581 static.
14582 (show_dwarf_always_disassemble): Move from read.c.
14583 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14584
5895093f
TT
145852020-02-08 Tom Tromey <tom@tromey.com>
14586
14587 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14588 (create_quick_file_names_table): Return htab_up.
14589 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14590 Update.
14591 * dwarf2/read.h (struct dwarf2_per_objfile)
14592 <quick_file_names_table>: Now htab_up.
14593
b3b32279
TT
145942020-02-08 Tom Tromey <tom@tromey.com>
14595
14596 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14597
1d33d811
TT
145982020-02-08 Tom Tromey <tom@tromey.com>
14599
14600 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14601 Rewrite.
14602 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14603 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14604 (abbrev_table::abbrev_table): No longer inline.
14605 (ABBREV_HASH_SIZE): Remove.
14606 (abbrev_table::m_abbrevs): Now an htab_up.
14607
86de1d91
TT
146082020-02-08 Tom Tromey <tom@tromey.com>
14609
14610 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14611 (cutu_reader): Update.
14612 (build_type_psymtabs_1): Update.
14613 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14614 (abbrev_table::alloc_abbrev): Update.
14615 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14616 (abbrev_table::read): New static method, renamed from
14617 abbrev_table_read_table.
14618 (abbrev_table::alloc_abbrev)
14619 (abbrev_table::add_abbrev): Now private.
14620 (abbrev_table::abbrev_table): Now private.
14621 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14622
0335378b
TT
146232020-02-08 Tom Tromey <tom@tromey.com>
14624
14625 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14626 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14627 htab_up.
14628
48b490f2
TT
146292020-02-08 Tom Tromey <tom@tromey.com>
14630
14631 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14632 htab_up.
14633 (lookup_dwo_unit_in_dwp): Update.
14634 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14635 on obstack.
14636
bc68fb19
TT
146372020-02-08 Tom Tromey <tom@tromey.com>
14638
14639 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14640 obstack.
14641
d15acc42
TT
146422020-02-08 Tom Tromey <tom@tromey.com>
14643
14644 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14645 line_header_hash.
14646 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14647 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14648 Change type to htab_up.
14649
eaa5fa8b
TT
146502020-02-08 Tom Tromey <tom@tromey.com>
14651
14652 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14653 htab_up. Don't allocate on obstack.
14654 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14655 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14656 Change type to htab_up.
14657
b0b6a987
TT
146582020-02-08 Tom Tromey <tom@tromey.com>
14659
14660 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14661 Change type to htab_up.
14662 * dwarf2/read.c (create_signatured_type_table_from_index)
14663 (create_signatured_type_table_from_debug_names)
14664 (create_all_type_units, add_type_unit)
14665 (lookup_dwo_signatured_type, lookup_signatured_type)
14666 (process_skeletonless_type_unit): Update.
14667 (create_debug_type_hash_table, create_debug_types_hash_table):
14668 Change type of types_htab.
14669 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14670 htab_up. Don't allocate on obstack.
14671 (create_cus_hash_table): Change type of cus_htab parameter.
14672 (struct dwo_file) <cus, tus>: Now htab_up.
14673 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14674 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14675 (queue_and_load_all_dwo_tus): Update.
14676 * dwarf2/index-write.c (write_gdbindex): Update.
14677 (write_debug_names): Update.
14678
39856def
TT
146792020-02-08 Tom Tromey <tom@tromey.com>
14680
14681 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14682 dwarf2/read.c. Remove "next" member. Add constructor ntad
14683 destructor.
14684 (struct dwarf2_per_objfile) <queue>: New member.
14685 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14686 dwarf2/read.h.
14687 (dwarf2_queue, dwarf2_queue_tail): Remove.
14688 (class dwarf2_queue_guard): Add parameter to constructor. Use
14689 DISABLE_COPY_AND_ASSIGN.
14690 <m_per_objfile>: New member.
14691 <~dwarf2_queue_guard>: Rewrite.
14692 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14693 Update.
14694 (~dwarf2_queue_item): New.
14695
3e225074
TT
146962020-02-08 Tom Tromey <tom@tromey.com>
14697
14698 * dwarf2/read.c (struct die_info) <has_children>: New member.
14699 (dw2_get_file_names_reader): Remove has_children.
14700 (dw2_get_file_names): Update.
14701 (read_cutu_die_from_dwo): Remove has_children.
14702 (cutu_reader::init_tu_and_read_dwo_dies)
14703 (cutu_reader::cutu_reader): Update.
14704 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14705 Remove has_children.
14706 (build_type_psymtabs_1, process_skeletonless_type_unit)
14707 (load_partial_comp_unit, load_full_comp_unit): Update.
14708 (create_dwo_cu_reader): Remove has_children.
14709 (create_cus_hash_table, read_die_and_children): Update.
14710 (read_full_die_1,read_full_die): Remove has_children.
14711 (read_signatured_type): Update.
14712 (class cutu_reader) <has_children>: Remove.
14713
82ca8957
TT
147142020-02-08 Tom Tromey <tom@tromey.com>
14715
14716 * dwarf2/expr.c: Rename from dwarf2expr.c.
14717 * dwarf2/expr.h: Rename from dwarf2expr.h.
14718 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14719 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14720 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14721 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14722 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14723 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14724 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14725 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14726 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14727 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14728 * dwarf2/loc.c: Rename from dwarf2loc.c.
14729 * dwarf2/loc.h: Rename from dwarf2loc.h.
14730 * dwarf2/read.c: Rename from dwarf2read.c.
14731 * dwarf2/read.h: Rename from dwarf2read.h.
14732 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14733 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14734 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14735 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14736 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14737 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14738 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14739 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14740 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14741 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14742 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14743 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14744 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14745 Update.
14746 * Makefile.in (COMMON_SFILES): Update.
14747 (HFILES_NO_SRCDIR): Update.
14748
9e35d499
TT
147492020-02-08 Tom Tromey <tom@tromey.com>
14750
14751 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14752 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14753
1eba2311
TT
147542020-02-08 Tom Tromey <tom@tromey.com>
14755
14756 * dwarf2read.h (struct die_info): Don't declare.
14757
e41c2da2
TT
147582020-02-08 Tom Tromey <tom@tromey.com>
14759
14760 * dwarf2read.h (die_info_ptr): Remove typedef.
14761
4fc6c0d5
TT
147622020-02-08 Tom Tromey <tom@tromey.com>
14763
14764 * dwarf2read.c (read_call_site_scope)
14765 (handle_data_member_location, dwarf2_add_member_fn)
14766 (mark_common_block_symbol_computed, read_common_block)
14767 (attr_to_dynamic_prop, partial_die_info::read)
14768 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14769 (dwarf2_symbol_mark_computed, set_die_type): Update.
14770 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14771 method.
14772 (attr_form_is_block): Don't declare.
14773 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14774
cd6c91b4
TT
147752020-02-08 Tom Tromey <tom@tromey.com>
14776
14777 * dwarf2read.c (dwarf2_find_base_address, )
14778 (read_call_site_scope, rust_containing_type)
14779 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14780 (handle_data_member_location, dwarf2_add_member_fn)
14781 (get_alignment, read_structure_type, process_structure_scope)
14782 (mark_common_block_symbol_computed, read_common_block)
14783 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14784 (partial_die_info::read, read_attribute_value, new_symbol)
14785 (lookup_die_type, dwarf2_get_ref_die_offset)
14786 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14787 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14788 (dwarf2_symbol_mark_computed): Update.
14789 * dwarf2/attribute.h (struct attribute) <value_as_address,
14790 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14791 methods.
14792 (value_as_address, attr_form_is_section_offset)
14793 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14794 * dwarf2/attribute.c (attribute::value_as_address)
14795 (attribute::form_is_section_offset, attribute::form_is_constant)
14796 (attribute::form_is_ref): Now methods.
14797
162dce55
TT
147982020-02-08 Tom Tromey <tom@tromey.com>
14799
14800 * dwarf2read.c (struct attribute, DW_STRING)
14801 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14802 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14803 (attr_form_is_block, attr_form_is_section_offset)
14804 (attr_form_is_constant, attr_form_is_ref): Move.
14805 * dwarf2/attribute.h: New file.
14806 * dwarf2/attribute.c: New file, from dwarf2read.c.
14807 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14808
3054dd54
TT
148092020-02-08 Tom Tromey <tom@tromey.com>
14810
14811 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14812 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14813 Move.
14814 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14815 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14816 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14817 abbrev.c.
14818 * dwarf2/abbrev.h: New file.
14819 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14820 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14821
96b79293
TT
148222020-02-08 Tom Tromey <tom@tromey.com>
14823
14824 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14825 (dwarf2_section_size, dwarf2_get_section_info)
14826 (create_signatured_type_table_from_debug_names)
14827 (create_addrmap_from_aranges, read_debug_names_from_section)
14828 (get_gdb_index_contents_from_section, read_comp_unit_head)
14829 (error_check_comp_unit_head, read_abbrev_offset)
14830 (create_debug_type_hash_table, init_cu_die_reader)
14831 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14832 (read_comp_units_from_section, create_cus_hash_table)
14833 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14834 (create_dwp_v2_section, dwarf2_rnglists_process)
14835 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14836 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14837 (read_indirect_string_from_dwz, read_addr_index_1)
14838 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14839 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14840 (fill_in_loclist_baton): Update.
14841 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14842 get_containing_section, get_bfd_owner, get_bfd_section,
14843 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14844 (dwarf2_read_section, get_section_name, get_section_file_name)
14845 (get_containing_section, get_section_bfd_owner)
14846 (get_section_bfd_section, get_section_name, get_section_file_name)
14847 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14848 declare.
14849 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14850 (dwarf2_section_info::get_bfd_owner)
14851 (dwarf2_section_info::get_bfd_section)
14852 (dwarf2_section_info::get_name)
14853 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14854 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14855 (dwarf2_section_info::read): Now methods.
14856 * dwarf-index-write.c (class debug_names): Update.
14857
2c86cff9
TT
148582020-02-08 Tom Tromey <tom@tromey.com>
14859
14860 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14861 Move to dwarf2/section.h.
14862 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14863 (get_section_bfd_section, get_section_name)
14864 (get_section_file_name, get_section_id, get_section_flags)
14865 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14866 dwarf2/section.c.
14867 * dwarf2/section.h: New file.
14868 * dwarf2/section.c: New file, from dwarf2read.c.
14869 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14870
f4382c45
TT
148712020-02-08 Tom Tromey <tom@tromey.com>
14872
14873 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14874 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14875 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14876 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14877 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14878 * dwarf2/leb.h: New file, from dwarf2read.c.
14879 * dwarf2/leb.c: New file, from dwarf2read.c.
14880 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14881 Remove.
14882 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14883 (COMMON_SFILES): Add dwarf2/leb.c.
14884
01840b7a
JB
148852020-02-08 Joel Brobecker <brobecker@adacore.com>
14886
14887 GDB 9.1 released.
14888
dfcb27e4
IB
148892020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14890
14891 PR gdb/25190:
aac66a4c
SM
14892 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14893 * gdb/remote.c (remote_console_output): Update.
14894 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14895 (ui_file_puts): ...this.
14896 * gdb/ui-file.h (ui_file_puts): Add declaration.
14897 * gdb/utils.c (emit_style_escape): Update.
14898 (flush_wrap_buffer): Update.
14899 (fputs_maybe_filtered): Update.
14900 (fputs_unfiltered): Add function.
dfcb27e4 14901
faa17681
IB
149022020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14903
aac66a4c
SM
14904 * gdb/event-loop.c (gdb_wait_for_event): Update.
14905 * gdb/printcmd.c (printf_command): Update.
14906 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14907 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14908 (gdb_os_flush_stderr): Update.
14909 * gdb/remote.c (remote_console_output): Update.
14910 * gdb/ui-file.c (gdb_flush): Rename to...
14911 (ui_file_flush): ...this.
14912 (stderr_file::write): Update.
14913 (stderr_file::puts): Update.
14914 * gdb/ui-file.h (gdb_flush): Rename to...
14915 (ui_file_flush): ...this.
14916 * gdb/utils.c (gdb_flush): Add function.
14917 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14918
5abbbe1d
TT
149192020-02-07 Tom Tromey <tromey@adacore.com>
14920
14921 PR breakpoints/24915:
14922 * source.c (find_and_open_source): Do not check basenames_may_differ.
14923
919adfe8
TT
149242020-02-07 Tom Tromey <tom@tromey.com>
14925
14926 * README: Update gdbserver documentation.
14927 * gdbserver: Move to top level.
14928 * configure.tgt (build_gdbserver): Remove.
14929 * configure.ac: Remove --enable-gdbserver.
14930 * configure: Rebuild.
14931 * Makefile.in (distclean): Don't mention gdbserver.
14932
1d5d29e7
SV
149332020-02-06 Shahab Vahedi <shahab@synopsys.com>
14934
14935 * source-cache.c (source_cache::ensure): Surround
14936 get_plain_source_lines with a try/catch.
14937 (source_cache::get_line_charpos): Get rid of try/catch
14938 and only check for the return value of "ensure".
14939 * tui/tui-source.c (tui_source_window::set_contents):
14940 Simplify "nlines" calculation.
14941
6eb1129c
SV
149422020-02-06 Shahab Vahedi <shahab@synopsys.com>
14943
14944 * MAINTAINERS (Write After Approval): Add myself.
14945
c6a42d11
CB
149462020-02-05 Christian Biesinger <cbiesinger@google.com>
14947
14948 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14949 function call.
14950
c8ecdda6
CB
149512020-02-05 Christian Biesinger <cbiesinger@google.com>
14952
14953 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14954
f6480e70
MR
149552020-02-05 Maciej W. Rozycki <macro@wdc.com>
14956
14957 * nat/riscv-linux-tdesc.h: New file.
14958 * nat/riscv-linux-tdesc.c: New file, taking code from...
14959 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14960 ... here.
14961 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14962 NATDEPFILES.
14963
dcc9fbc6
AB
149642020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14965
14966 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14967 we don't set the fake simulator ptid to the null_ptid.
14968
719546c4
SM
149692020-02-03 Simon Marchi <simon.marchi@efficios.com>
14970
14971 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14972 * gdbthread.h (class thread_info) <resumed>: Likewise.
14973 * infrun.c (resume_1): Likewise.
14974 (proceed): Likewise.
14975 (infrun_thread_stop_requested): Likewise.
14976 (stop_all_threads): Likewise.
14977 (handle_inferior_event): Likewise.
14978 (restart_threads): Likewise.
14979 (finish_step_over): Likewise.
14980 (keep_going_stepped_thread): Likewise.
14981 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14982 (linux_handle_extended_wait): Likewise.
14983 * record-btrace.c (get_thread_current_frame_id): Likewise.
14984 * record-full.c (record_full_wait_1): Likewise.
14985 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14986 * target.c (target_resume): Likewise.
14987 * thread.c (set_running_thread): Likewise.
14988
e409c542
AKS
149892020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14990
14991 * f-valprint.c (f77_print_array_1): Changed datatype of index
14992 variable to LONGEST from int to enable it to contain bound
14993 values correctly.
14994
ee98c0da
MR
149952020-02-03 Maciej W. Rozycki <macro@wdc.com>
14996
14997 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14998 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14999 offsets according to FLEN determined.
15000 (riscv_linux_nat_target::read_description): Determine FLEN
15001 dynamically.
15002 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15003 according to FLEN determined.
15004 (riscv_linux_nat_target::store_registers): Likewise.
15005
aa66aac4
SV
150062020-02-01 Shahab Vahedi <shahab@synopsys.com>
15007
15008 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15009 when reg->group is empty and reggroup is not.
15010
fd9faca8
TT
150112020-01-31 Tom Tromey <tromey@adacore.com>
15012
15013 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15014 Call beneath target's mourn_inferior after unpushing.
15015
42330a68
AB
150162020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15017
15018 PR tui/9765
15019 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15020 have enough lines to fill the screen, still return the lowest
15021 address we found.
15022
7a27a45b
AB
150232020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15024
15025 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15026 '-', '<', and '>' commands.
15027
c47f70e2
PA
150282020-01-29 Pedro Alves <palves@redhat.com>
15029 Sergio Durigan Junior <sergiodj@redhat.com>
15030
15031 * infcmd.c (construct_inferior_arguments): Assert that
15032 'argc' is greater than 0.
15033
5133a315
LM
150342020-01-29 Luis Machado <luis.machado@linaro.org>
15035
15036 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15037 (BRK_INSN_MASK): Define to 0xd4200000.
15038 (aarch64_program_breakpoint_here_p): New function.
15039 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15040 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15041 breakpoint.c.
15042 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15043 breakpoint.h
15044 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15045 call gdbarch_program_breakpoint_here_p.
15046 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15047 default_program_breakpoint_here_p, changed return type to bool and
15048 simplified.
15049 * breakpoint.h (program_breakpoint_here): Moved prototype to
15050 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15051 return type to bool.
15052 * gdbarch.c: Regenerate.
15053 * gdbarch.h: Regenerate.
15054 * gdbarch.sh (program_breakpoint_here_p): New method.
15055 * infrun.c (handle_signal_stop): Call
15056 gdbarch_program_breakpoint_here_p.
15057
168f8c6b
TT
150582020-01-26 Tom Tromey <tom@tromey.com>
15059
15060 * ctfread.c (struct ctf_fp_info): Reindent.
15061 (_initialize_ctfread): Remove.
15062
128a391f
TT
150632020-01-26 Tom Tromey <tom@tromey.com>
15064
15065 * psymtab.c (partial_map_expand_apply)
15066 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15067 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15068 (psym_print_stats, psym_expand_symtabs_for_function)
15069 (psym_map_symbol_filenames, psym_map_matching_symbols)
15070 (psym_expand_symtabs_matching)
15071 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15072 (maintenance_check_psymtabs): Use new methods.
15073 * psympriv.h (struct partial_symtab) <readin_p,
15074 get_compunit_symtab>: New methods.
15075 <readin, compunit_symtab>: Remove members.
15076 (struct standard_psymtab): New.
15077 (struct legacy_psymtab): Derive from standard_psymtab.
15078 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15079 standard_psymtab.
15080 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15081
0494dbec
TT
150822020-01-26 Tom Tromey <tom@tromey.com>
15083
15084 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15085 read_dependencies. Add assert.
15086 * psymtab.c (partial_symtab::read_dependencies): New method.
15087 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15088 method.
15089 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15090 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15091 read_dependencies.
15092 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15093 Add assert.
15094
8566b89b
TT
150952020-01-26 Tom Tromey <tom@tromey.com>
15096
15097 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15098 Call expand_psymtab.
15099 (xcoff_read_symtab): Call expand_psymtab.
15100 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15101 legacy_expand_psymtab.
15102 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15103 method.
15104 (struct legacy_psymtab) <expand_psymtab>: Implement.
15105 <legacy_expand_psymtab>: New member.
15106 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15107 (parse_partial_symbols): Set legacy_expand_psymtab.
15108 (psymtab_to_symtab_1): Change argument order. Call
15109 expand_psymtab.
15110 (new_psymtab): Set legacy_expand_psymtab.
15111 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15112 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15113 expand_psymtab.
15114 (dwarf2_psymtab::expand_psymtab): Rename from
15115 psymtab_to_symtab_1. Call expand_psymtab.
15116 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15117 (dbx_end_psymtab): Likewise.
15118 (dbx_psymtab_to_symtab_1): Change argument order. Call
15119 expand_psymtab.
15120 (dbx_read_symtab): Call expand_psymtab.
15121 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15122 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15123 (ctf_psymtab::read_symtab): Call expand_psymtab.
15124
077cbab2
TT
151252020-01-26 Tom Tromey <tom@tromey.com>
15126
15127 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15128 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15129 messages.
15130 * mdebugread.c (mdebug_read_symtab): Remove prints.
15131 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15132 assert.
15133 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15134
891813be
TT
151352020-01-26 Tom Tromey <tom@tromey.com>
15136
15137 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15138 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15139 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15140 legacy_symtab.
15141 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15142 * psymtab.c (psymtab_to_symtab): Call method.
15143 (dump_psymtab): Update.
15144 * psympriv.h (struct partial_symtab): Add virtual destructor.
15145 <read_symtab>: New method.
15146 (struct legacy_symtab): New.
15147 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15148 (struct pst_map) <pst>: Now a legacy_psymtab.
15149 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15150 (new_psymtab): Use legacy_psymtab.
15151 * dwarf2read.h (struct dwarf2_psymtab): New.
15152 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15153 * dwarf2read.c (dwarf2_create_include_psymtab)
15154 (dwarf2_build_include_psymtabs, create_type_unit_group)
15155 (create_partial_symtab, process_psymtab_comp_unit_reader)
15156 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15157 (set_partial_user): Use dwarf2_psymtab.
15158 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15159 (psymtab_to_symtab_1, process_full_comp_unit)
15160 (process_full_type_unit, dwarf2_ranges_read)
15161 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15162 (dwarf_decode_lines): Use dwarf2_psymtab.
15163 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15164 (add_address_entry_worker, write_one_signatured_type)
15165 (recursively_count_psymbols, recursively_write_psymbols)
15166 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15167 (write_debug_names): Likewise.
15168 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15169 <pst>: Now a legacy_psymtab.
15170 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15171 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15172 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15173 * ctfread.c (struct ctf_psymtab): New.
15174 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15175 ctf_psymtab.
15176 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15177 (create_partial_symtab): Return a ctf_psymtab.
15178 (scan_partial_symbols): Update.
15179
c3693a1d
TT
151802020-01-26 Tom Tromey <tom@tromey.com>
15181
15182 * xcoffread.c (xcoff_start_psymtab): Use new.
15183 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15184 renamed from start_psymtab_common.
15185 * psympriv.h (struct partial_symtab): Add new constructor.
15186 (start_psymtab_common): Don't declare.
15187 * mdebugread.c (parse_partial_symbols): Use new.
15188 * dwarf2read.c (create_partial_symtab): Use new.
15189 * dbxread.c (start_psymtab): Use new.
15190 * ctfread.c (create_partial_symtab): Use new.
15191
32caafd0
TT
151922020-01-26 Tom Tromey <tom@tromey.com>
15193
15194 * xcoffread.c (xcoff_end_psymtab): Use new.
15195 * psymtab.c (start_psymtab_common): Use new.
15196 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15197 Update.
15198 * psympriv.h (struct partial_symtab): Add parameters to
15199 constructor. Don't inline.
15200 (allocate_psymtab): Don't declare.
15201 * mdebugread.c (new_psymtab): Use new.
15202 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15203 * dbxread.c (dbx_end_psymtab): Use new.
15204
abaa2f23
TT
152052020-01-26 Tom Tromey <tom@tromey.com>
15206
15207 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15208 allocate_psymtab. Update documentation.
15209 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15210 allocate_psymtab. Do not use new.
15211 (allocate_psymtab): Use new. Update.
15212
6d94535f
TT
152132020-01-26 Tom Tromey <tom@tromey.com>
15214
15215 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15216 * psymtab.c (psym_print_stats): Update.
15217 * psympriv.h (struct partial_symtab) <readin,
15218 psymtabs_addrmap_supported, anonymous>: Now bool.
15219 * mdebugread.c (psymtab_to_symtab_1): Update.
15220 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15221 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15222 (process_full_comp_unit, process_full_type_unit): Update.
15223 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15224 * ctfread.c (psymtab_to_symtab): Update.
15225
6f17252b
TT
152262020-01-26 Tom Tromey <tom@tromey.com>
15227
15228 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15229 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15230 * psymtab.c (psymtab_storage): Delete psymtabs.
15231 (psymtab_storage::allocate_psymtab): Use new.
15232 (psymtab_storage::discard_psymtab): Use delete.
15233 * psympriv.h (struct partial_symtab): Add constructor and
15234 initializers.
15235
f6f1cebc
TT
152362020-01-26 Tom Tromey <tom@tromey.com>
15237
15238 * machoread.c: Do not include psympriv.h.
15239
e47e48f6
PW
152402020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15241
15242 * NEWS: Mention the new option and the set/show commands.
15243
a2fedca9
PW
152442020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15245
15246 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15247 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15248 (validate_exec_file): New variables, enums, functions.
15249 (exec_file_locate_attach, print_section_info): Style the filenames.
15250 (_initialize_exec): Install show_exec_file_mismatch_command and
15251 set_exec_file_mismatch_command.
15252 * gdbcore.h (validate_exec_file): Declare.
15253 * infcmd.c (attach_command): Call validate_exec_file.
15254 * remote.c ( remote_target::remote_add_inferior): Likewise.
15255
7ffa82e1
AB
152562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15257
15258 * frame.c (find_frame_sal): Move call to get_next_frame into more
15259 inner scope.
15260 * inline-frame.c (inilne_state) <inline_state>: Update argument
15261 types.
15262 (inilne_state) <skipped_symbol>: Rename to...
15263 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15264 (skip_inline_frames): Build vector of skipped symbols and use this
15265 to reate the inline_state.
15266 (inline_skipped_symbol): Add a comment and some assertions, fetch
15267 skipped symbol from the list.
15268
3d92a3e3
AB
152692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15270
15271 * buildsym.c (lte_is_less_than): Delete.
15272 (buildsym_compunit::end_symtab_with_blockvector): Create local
15273 lambda function to sort line table entries, and use
15274 std::stable_sort instead of std::sort.
15275 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15276 markers when looking for a previous line.
15277
94a72be7
AB
152782020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15279
15280 * dwarf2read.c (lnp_state_machine::record_line): Include
15281 end_sequence parameter in debug print out. Record the line if we
15282 are at an end_sequence marker even if it's not the start of a
15283 statement.
15284 * symmisc.c (maintenance_print_one_line_table): Print end of
15285 sequence markers with 'END' not '0'.
15286
53af73bf
PA
152872020-01-24 Pedro Alves <palves@redhat.com>
15288
15289 PR gdb/25410
15290 * thread.c (scoped_restore_current_thread::restore): Use
15291 switch_to_inferior_no_thread.
15292 * exec.c: Include "progspace-and-thread.h".
15293 (add_target_sections, remove_target_sections):
15294 scoped_restore_current_pspace_and_thread instead of
15295 scoped_restore_current_thread.
15296 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15297 and aspace to the inferior before calling clone_program_space.
15298 Remove stale comment.
15299
3050c6f4
CB
153002020-01-24 Christian Biesinger <cbiesinger@google.com>
15301
15302 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15303 (arm_netbsd_nat_target::fetch_registers): ...this.
15304 (arm_nbsd_nat_target::store_registers): Rename to...
15305 (arm_netbsd_nat_target::store_registers): ...this.
15306
73685c7e
CB
153072020-01-24 Christian Biesinger <cbiesinger@google.com>
15308
15309 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15310 register_t.
15311
89203d40
CB
153122020-01-24 Christian Biesinger <cbiesinger@google.com>
15313
15314 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15315 Update comment.
15316 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15317 Likewise.
15318 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15319 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15320 the correct replacement (iterate_over_regset_sections).
15321 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15322 Update comment.
15323
1ba1ac88
AB
153242020-01-24 Graham Markall <graham.markall@embecosm.com>
15325
15326 PR gdb/23718
15327 * gdb/python/python.c (execute_gdb_command): Call
15328 async_enable_stdin in catch block.
15329
f3364a6d
AB
153302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15331
15332 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15333 SWITCH_THRU_ALL_UIS.
15334
733d0a67
AB
153352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15336
15337 PR tui/9765
15338 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15339 comment, add extra parameter, and update to store previous symbol
15340 when appropriate.
15341 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15342 add extra parameter.
15343 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15344 remove unneeded parameter, add try/catch around gdb_print_insn,
15345 rewrite to add items to asm_lines vector.
15346 (tui_find_backward_disassembly_start_address): New function.
15347 (tui_find_disassembly_address): Updated throughout.
15348 (tui_disasm_window::set_contents): Update for changes to
15349 tui_disassemble.
15350 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15351 number of lines to scroll.
15352
b3b3bada
SM
153532020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15354
15355 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15356 (SECT_OFF_DATA): Likewise.
15357 (SECT_OFF_RODATA): Likewise.
15358 (SECT_OFF_TEXT): Likewise.
15359 (SECT_OFF_BSS): Likewise.
15360 (struct objfile) <text_section_offset, data_section_offset>: New
15361 methods.
15362 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15363 objfile::text_section_offset.
15364 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15365 * coffread.c (coff_symtab_read): Likewise.
15366 (enter_linenos): Likewise.
15367 (process_coff_symbol): Likewise.
15368 * ctfread.c (get_objfile_text_range): Likewise.
15369 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15370 Use objfile::data_section_offset.
15371 * dwarf2-frame.c (execute_cfa_program): Use
15372 objfile::text_section_offset.
15373 (dwarf2_frame_find_fde): Likewise.
15374 * dwarf2read.c (create_addrmap_from_index): Likewise.
15375 (create_addrmap_from_aranges): Likewise.
15376 (dw2_find_pc_sect_compunit_symtab): Likewise.
15377 (process_psymtab_comp_unit_reader): Likewise.
15378 (add_partial_symbol): Likewise.
15379 (add_partial_subprogram): Likewise.
15380 (process_full_comp_unit): Likewise.
15381 (read_file_scope): Likewise.
15382 (read_func_scope): Likewise.
15383 (read_lexical_block_scope): Likewise.
15384 (read_call_site_scope): Likewise.
15385 (dwarf2_rnglists_process): Likewise.
15386 (dwarf2_ranges_process): Likewise.
15387 (dwarf2_ranges_read): Likewise.
15388 (dwarf_decode_lines_1): Likewise.
15389 (new_symbol): Likewise.
15390 (dwarf2_fetch_die_loc_sect_off): Likewise.
15391 (dwarf2_per_cu_text_offset): Likewise.
15392 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15393 * hppa-tdep.c (read_unwind_info): Likewise.
15394 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15395 * psympriv.h (struct partial_symtab): Likewise.
15396 * psymtab.c (find_pc_sect_psymtab): Likewise.
15397 * solib-svr4.c (enable_break): Likewise.
15398 * stap-probe.c (relocate_address): Use
15399 objfile::data_section_offset.
15400 * xcoffread.c (enter_line_range): Use
15401 objfile::text_section_offset.
15402 (read_xcoff_symtab): Likewise.
15403
ab53f382
SM
154042020-01-23 Simon Marchi <simon.marchi@efficios.com>
15405
15406 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15407 declaration to narrower scopes.
15408
e7eee665
SM
154092020-01-23 Simon Marchi <simon.marchi@efficios.com>
15410
15411 * darwin-nat.h (struct darwin_exception_msg, enum
15412 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15413 Move up.
15414 (class darwin_nat_target) <wait_1, check_new_threads,
15415 decode_exception_message, decode_message, stop_inferior,
15416 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15417 * darwin-nat.c (darwin_check_new_threads): Rename to...
15418 (darwin_nat_target::check_new_threads): ... this.
15419 (darwin_suspend_inferior_it): Remove.
15420 (darwin_decode_exception_message): Rename to...
15421 (darwin_nat_target::decode_exception_message): ... this.
15422 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15423 (darwin_decode_message): Rename to...
15424 (darwin_nat_target::decode_message): ... this.
15425 (cancel_breakpoint): Rename to...
15426 (darwin_nat_target::cancel_breakpoint): ... this.
15427 (darwin_wait): Rename to...
15428 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15429 instead of iterate_over_inferiors.
15430 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15431 (darwin_stop_inferior): Rename to...
15432 (darwin_nat_target::stop_inferior): ... this.
15433 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15434 (darwin_init_thread_list): Rename to...
15435 (darwin_nat_target::init_thread_list): ... this.
15436 (darwin_ptrace_him): Rename to...
15437 (darwin_nat_target::ptrace_him): ... this.
15438 (darwin_nat_target::create_inferior): Pass lambda function to
15439 fork_inferior.
15440 (darwin_nat_target::detach): Call stop_inferior instead of
15441 darwin_stop_inferior.
15442 * fork-inferior.h (fork_inferior): Change init_trace_fun
15443 parameter to gdb::function_view.
15444 * fork-inferior.c (fork_inferior): Likewise.
15445
c162ed3e
HD
154462020-01-23 Hannes Domani <ssbssa@yahoo.de>
15447
15448 * i386-cygwin-tdep.c (core_process_module_section): Update.
15449 * windows-nat.c (struct lm_info_windows): Add text_offset.
15450 (windows_xfer_shared_libraries): Update.
15451 * windows-tdep.c (windows_xfer_shared_library):
15452 Add text_offset_cached argument.
15453 * windows-tdep.h (windows_xfer_shared_library): Update.
15454
a1237872
SM
154552020-01-21 Simon Marchi <simon.marchi@efficios.com>
15456
15457 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15458
b3ee6dd9
SM
154592020-01-21 Simon Marchi <simon.marchi@efficios.com>
15460
15461 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15462 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15463 replace with range-based for.
15464 (gdbsim_interrupt_inferior): Remove.
15465 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15466 with a range-based for. Inline code from
15467 gdbsim_interrupt_inferior.
15468
f9fac3c8
SM
154692020-01-21 Simon Marchi <simon.marchi@efficios.com>
15470
15471 * infrun.c (proceed): Fix indentation.
15472
f6474de9
TT
154732020-01-21 Tom Tromey <tromey@adacore.com>
15474
15475 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15476 * python/python.c (python_extension_ops): Update.
15477 (gdbpy_colorize): New function.
15478 * python/lib/gdb/__init__.py (colorize): New function.
15479 * extension.h (ext_lang_colorize): Declare.
15480 * extension.c (ext_lang_colorize): New function.
15481 * extension-priv.h (struct extension_language_ops) <colorize>: New
15482 member.
15483 * cli/cli-style.c (_initialize_cli_style): Update help text.
15484
f0c702d4
LM
154852020-01-21 Luis Machado <luis.machado@linaro.org>
15486
15487 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15488 <cond>: Change type to bool.
15489 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15490 (aarch64_displaced_step_cb): Likewise.
15491 (aarch64_displaced_step_tb): Likewise.
15492
1ab139e5
LM
154932020-01-21 Luis Machado <luis.machado@linaro.org>
15494
15495 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15496 output.
15497
0c271889
LM
154982020-01-21 Luis Machado <luis.machado@linaro.org>
15499
15500 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15501 <pc_adjust>: Adjust the documentation.
15502 (aarch64_displaced_step_fixup): Check if PC really moved before
15503 adjusting it.
15504
4d89c1c7
TT
155052020-01-19 Tom Tromey <tom@tromey.com>
15506
15507 * disasm.c (~gdb_disassembler): New destructor.
15508 (gdb_buffered_insn_length): Call disassemble_free_target.
15509 * disasm.h (class gdb_disassembler): Declare destructor. Use
15510 DISABLE_COPY_AND_ASSIGN.
15511
c0ab21c2
TT
155122020-01-19 Tom Tromey <tom@tromey.com>
15513
15514 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15515 (die_reader_func_ftype): Remove.
15516 (cutu_reader): New class.
15517 (dw2_get_file_names_reader): Remove "data" parameter.
15518 (dw2_get_file_names): Use cutu_reader.
15519 (create_debug_type_hash_table): Update.
15520 (read_cutu_die_from_dwo): Update comment.
15521 (lookup_dwo_unit): Add dwo_name parameter.
15522 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15523 die_reader_func_ftype and data parameters.
15524 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15525 Remove die_reader_func_ftype and data parameters.
15526 (~cutu_reader): New; from init_cutu_and_read_dies.
15527 (cutu_reader::cutu_reader): Rename from
15528 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15529 and data parameters.
15530 (init_cutu_and_read_dies_simple): Remove.
15531 (struct process_psymtab_comp_unit_data): Remove.
15532 (process_psymtab_comp_unit_reader): Remove data parameter; add
15533 want_partial_unit and pretend_language parameters.
15534 (process_psymtab_comp_unit): Use cutu_reader.
15535 (build_type_psymtabs_reader): Remove data parameter.
15536 (build_type_psymtabs_1): Use cutu_reader.
15537 (process_skeletonless_type_unit): Likewise.
15538 (load_partial_comp_unit_reader): Remove.
15539 (load_partial_comp_unit): Use cutu_reader.
15540 (load_full_comp_unit_reader): Remove.
15541 (load_full_comp_unit): Use cutu_reader.
15542 (struct create_dwo_cu_data): Remove.
15543 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15544 dwo_unit parameters.
15545 (create_cus_hash_table): Use cutu_reader.
15546 (struct dwarf2_read_addr_index_data): Remove.
15547 (dwarf2_read_addr_index_reader): Remove.
15548 (dwarf2_read_addr_index): Use cutu_reader.
15549 (read_signatured_type_reader): Remove.
15550 (read_signatured_type): Use cutu_reader.
15551
45bbae5c
TT
155522020-01-19 Tom Tromey <tom@tromey.com>
15553
15554 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15555 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15556 (tui_wrefresh): Declare.
15557 * tui/tui-wingeneral.c (suppress_output): New global.
15558 (tui_suppress_output, ~tui_suppress_output): New constructor and
15559 destructor.
15560 (tui_wrefresh): New function.
15561 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15562 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15563 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15564 method.
15565 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15566 tui_wrefresh.
15567 (tui_data_window::no_refresh): New method.
15568 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15569 (tui_reg_command): Use tui_suppress_output
15570 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15571 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15572 method.
15573 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15574
4f13c1c0
TT
155752020-01-19 Tom Tromey <tom@tromey.com>
15576
15577 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15578 Handle case where symtab is null.
15579
fa47e446
SM
155802020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15581
15582 * linux-fork.c (one_fork_p): Simplify.
15583
26f42329
SM
155842020-01-17 Simon Marchi <simon.marchi@efficios.com>
15585
15586 * top.c (struct qt_args): Remove.
15587 (kill_or_detach): Change return type to void, replace `void *`
15588 parameter with a proper one.
15589 (print_inferior_quit_action): Likewise.
15590 (quit_confirm): Use range-based for loop to iterate over inferiors.
15591 (quit_force): Likewise.
15592
a9ac81b1
SM
155932020-01-17 Simon Marchi <simon.marchi@efficios.com>
15594
15595 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15596 `void *` parameter with proper parameters.
15597 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15598 (print_one_inferior): Change return type to void, replace `void *`
15599 parameter with proper parameters.
15600 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15601 inferiors.
15602 (get_other_inferior): Remove.
15603 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15604 inferiors.
15605
788eca49
SM
156062020-01-17 Simon Marchi <simon.marchi@efficios.com>
15607
15608 * mi/mi-interp.c (report_initial_inferior): Remove.
15609 (mi_interp::init): Use range-based for to iterate over inferiors.
15610
d9bc85b6
SM
156112020-01-17 Simon Marchi <simon.marchi@efficios.com>
15612
15613 * python/py-inferior.c (build_inferior_list): Remove.
15614 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15615
40c94099
CB
156162020-01-16 Christian Biesinger <cbiesinger@google.com>
15617
15618 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15619 (btrace_stitch_trace): Likewise.
15620 * charset.c (intermediate_encoding): Likewise (vaild).
15621 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15622 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15623 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15624
e0cdfe3c
HD
156252020-01-16 Hannes Domani <ssbssa@yahoo.de>
15626
15627 * windows-tdep.c (windows_get_tlb_type):
15628 Add rtl_user_process_parameters type.
15629
790f1718 156302020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15631 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15632
15633 PR build/24805
15634 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15635 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15636 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15637 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15638 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15639 (ps_plog): Redeclare exported functions with default visibility.
15640
3112ed97
NA
156412020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15642
15643 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15644 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15645
8dc3273e
SM
156462020-01-15 Simon Marchi <simon.marchi@efficios.com>
15647
15648 * infcmd.c (post_create_inferior): Use get_thread_regcache
15649 instead of get_current_regcache.
15650
ff47f4f0
TT
156512020-01-14 Tom Tromey <tom@tromey.com>
15652
15653 PR symtab/12535:
15654 * python/python.c (gdbpy_decode_line): Treat empty string the same
15655 as no argument.
15656
975f45b7
TT
156572020-01-14 Tom Tromey <tom@tromey.com>
15658
15659 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15660
25e57356
TT
156612020-01-14 Tom Tromey <tom@tromey.com>
15662
15663 * nat/linux-btrace.c: Don't include <config.h>.
15664 * nat/linux-ptrace.c: Don't include <config.h>.
15665 * nat/x86-linux-dregs.c: Don't include <config.h>.
15666
05ea2a05
TT
156672020-01-14 Tom Tromey <tom@tromey.com>
15668
15669 * configure: Rebuild.
15670 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15671
01027315
TT
156722020-01-14 Tom Tromey <tom@tromey.com>
15673
15674 * nat/x86-linux-dregs.c: Include configh.h.
15675 * nat/linux-ptrace.c: Include configh.h.
15676 * nat/linux-btrace.c: Include configh.h.
15677 * defs.h: Include config.h, bfd.h.
15678 * configure.ac: Don't source common.host.
15679 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15680 * configure: Rebuild.
15681 * acinclude.m4: Update path.
15682 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15683 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15684 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15685 (CLIBS): Add LIBSUPPORT.
15686 (CDEPS): Likewise.
15687 (COMMON_SFILES): Remove gdbsupport files.
15688 (HFILES_NO_SRCDIR): Likewise.
15689 (stamp-version): Update path to create-version.sh.
15690 (ALLDEPFILES): Remove gdbsupport files.
15691
b2ceabe8
TT
156922020-01-14 Tom Tromey <tom@tromey.com>
15693
15694 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15695 USE_WIN32API when needed.
15696 * configure.ac (USE_WIN32API): Don't define.
15697 (WIN32LIBS): Use WIN32APILIBS.
15698 * configure: Rebuild.
15699
25c51f71
TT
157002020-01-14 Tom Tromey <tom@tromey.com>
15701
15702 * configure: Rebuild.
15703 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15704
717c684d
BE
157052020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15706
15707 * skip.c (skip_function_command): Make skip w/o arguments use the
15708 name of the inlined function if pc is inside any inlined function.
15709
7da6a5b9
LM
157102020-01-14 Luis Machado <luis.machado@linaro.org>
15711
15712 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15713 * infrun.c (resume_1): Likewise.
15714 (handle_inferior_event): Remove stale comment.
15715 * linux-nat.c (linux_nat_target::resume): Update comments.
15716 (save_stop_reason): Likewise.
15717 (linux_nat_filter_event): Likewise.
15718 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15719
44e4c775
AB
157202020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15721
15722 * elfread.c (record_minimal_symbol): Set section index to 0 for
15723 non-allocatable sections.
15724
18a8505e
AT
15725
157262020-01-13 Ali Tamur <tamur@google.com>
15727
15728 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15729 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15730 to gdb::optional. Update comments.
15731 (dwo_file): Update comments.
15732 (read_attribute): Update API to take an additional out parameter,
15733 need_reprocess. This is used to mark attributes that need other
15734 attributes (e.g. str_offsets_base) for correct computation which may not
15735 have been read yet.
15736 (read_attribute_reprocess): New function declaration.
15737 (read_addr_index): Likewise.
15738 (read_dwo_str_index): Likewise.
15739 (read_stub_str_index): Likewise.
15740 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15741 (lookup_addr_base): New function definition.
15742 (lookup_ranges_base): Likewise.
15743 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15744 lookup_ranges_base.
15745 (init_cutu_and_read_dies): Update comments.
15746 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15747 unit. This is used to inherit parent's str_offsets_base and addr_base.
15748 Update comments.
15749 (init_cutu_and_read_dies_simple): Reflect API changes.
15750 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15751 (create_cus_hash_table): Change API to take parent compile unit.
15752 Reflect API changes.
15753 (open_and_init_dwo_file): Reflect API changes.
15754 (dwarf2_get_pc_bounds): Update comments.
15755 (dwarf2_record_block_ranges): Likewise.
15756 (read_full_die_1): Change implementation to reprocess attributes that
15757 need str_offsets_base and addr_base.
15758 (partial_die_info::read): Likewise.
15759 (read_attribute_reprocess): New function definition.
15760 (read_attribute_value): Change API to take an additional out parameter,
15761 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15762 when a non-dwo compile unit has index based attributes.
15763 (read_attribute): Reflect API changes.
15764 (read_addr_index_1): Reflect API changes. Update comments.
15765 (dwarf2_read_addr_index_data): Reflect API changes.
15766 (dwarf2_read_addr_index): Likewise.
15767 (read_str_index): Change API and implementation. This becomes a helper
15768 to be used by the new string index related methods. Update error
15769 message and comments.
15770 (read_dwo_str_index): New function definition.
15771 (read_stub_str_index): Likewise.
15772 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15773 * symfile.h (dwarf2_debug_sections): Likewise.
15774 * xcoffread.c (dwarf2_debug_sections): Likewise.
15775
0cac9354
SM
157762020-01-13 Simon Marchi <simon.marchi@efficios.com>
15777
15778 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15779 core_reg_sect type to gdb_byte *.
15780 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15781 * cris-tdep.c (fetch_core_registers): Likewise.
15782 * corelow.c (core_target::get_core_register_section): Change
15783 type of `contents` to gdb::byte_vector.
15784
9a6d629c
AB
157852020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15786
15787 * tui/tui-wingeneral.c (box_win): Position the title in the center
15788 of the border.
15789
d8b2f9e3
SM
157902020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15791
15792 * corelow.c (core_target::get_core_register_section): Use
15793 std::vector instead of alloca.
15794
bb564c58
SM
157952020-01-13 Simon Marchi <simon.marchi@efficios.com>
15796
15797 * warning.m4: Add -Wmissing-declarations to build_warnings.
15798 * configure: Re-generate.
15799
6b366111
SM
158002020-01-13 Simon Marchi <simon.marchi@efficios.com>
15801
15802 * python/python.c (init__gdb_module): Add declaration.
15803
6c265988
SM
158042020-01-13 Simon Marchi <simon.marchi@efficios.com>
15805
15806 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15807 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15808 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15809 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15810 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15811 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15812 * ada-exp.y (_initialize_ada_exp): Add declaration.
15813 * ada-lang.c (_initialize_ada_language): Add declaration.
15814 * ada-tasks.c (_initialize_tasks): Add declaration.
15815 * agent.c (_initialize_agent): Add declaration.
15816 * aix-thread.c (_initialize_aix_thread): Add declaration.
15817 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15818 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15819 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15820 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15821 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15822 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15823 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15824 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15825 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15826 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15827 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15828 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15829 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15830 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15831 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15832 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15833 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15834 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15835 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15836 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15837 * annotate.c (_initialize_annotate): Add declaration.
15838 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15839 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15840 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15841 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15842 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15843 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15844 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15845 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15846 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15847 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15848 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15849 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15850 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15851 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15852 * auto-load.c (_initialize_auto_load): Add declaration.
15853 * auxv.c (_initialize_auxv): Add declaration.
15854 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15855 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15856 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15857 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15858 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15859 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15860 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15861 * breakpoint.c (_initialize_breakpoint): Add declaration.
15862 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15863 * btrace.c (_initialize_btrace): Add declaration.
15864 * charset.c (_initialize_charset): Add declaration.
15865 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15866 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15867 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15868 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15869 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15870 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15871 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15872 * coffread.c (_initialize_coffread): Add declaration.
15873 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15874 * compile/compile.c (_initialize_compile): Add declaration.
15875 * complaints.c (_initialize_complaints): Add declaration.
15876 * completer.c (_initialize_completer): Add declaration.
15877 * copying.c (_initialize_copying): Add declaration.
15878 * corefile.c (_initialize_core): Add declaration.
15879 * corelow.c (_initialize_corelow): Add declaration.
15880 * cp-abi.c (_initialize_cp_abi): Add declaration.
15881 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15882 * cp-support.c (_initialize_cp_support): Add declaration.
15883 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15884 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15885 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15886 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15887 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15888 * ctfread.c (_initialize_ctfread): Add declaration.
15889 * d-lang.c (_initialize_d_language): Add declaration.
15890 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15891 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15892 * dbxread.c (_initialize_dbxread): Add declaration.
15893 * dcache.c (_initialize_dcache): Add declaration.
15894 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15895 * disasm.c (_initialize_disasm): Add declaration.
15896 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15897 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15898 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15899 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15900 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15901 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15902 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15903 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15904 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15905 * elfread.c (_initialize_elfread): Add declaration.
15906 * exec.c (_initialize_exec): Add declaration.
15907 * extension.c (_initialize_extension): Add declaration.
15908 * f-lang.c (_initialize_f_language): Add declaration.
15909 * f-valprint.c (_initialize_f_valprint): Add declaration.
15910 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15911 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15912 * filesystem.c (_initialize_filesystem): Add declaration.
15913 * findcmd.c (_initialize_mem_search): Add declaration.
15914 * findvar.c (_initialize_findvar): Add declaration.
15915 * fork-child.c (_initialize_fork_child): Add declaration.
15916 * frame-base.c (_initialize_frame_base): Add declaration.
15917 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15918 * frame.c (_initialize_frame): Add declaration.
15919 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15920 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15921 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15922 * gcore.c (_initialize_gcore): Add declaration.
15923 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15924 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15925 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15926 * gdbarch.c (_initialize_gdbarch): Add declaration.
15927 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15928 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15929 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15930 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15931 * go-lang.c (_initialize_go_language): Add declaration.
15932 * go32-nat.c (_initialize_go32_nat): Add declaration.
15933 * guile/guile.c (_initialize_guile): Add declaration.
15934 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15935 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15936 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15937 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15938 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15939 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15940 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15941 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15942 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15943 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15944 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15945 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15946 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15947 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15948 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15949 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15950 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15951 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15952 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15953 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15954 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15955 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15956 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15957 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15958 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15959 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15960 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15961 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15962 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15963 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15964 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15965 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15966 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15967 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15968 * infcall.c (_initialize_infcall): Add declaration.
15969 * infcmd.c (_initialize_infcmd): Add declaration.
15970 * inflow.c (_initialize_inflow): Add declaration.
15971 * infrun.c (_initialize_infrun): Add declaration.
15972 * interps.c (_initialize_interpreter): Add declaration.
15973 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15974 * jit.c (_initialize_jit): Add declaration.
15975 * language.c (_initialize_language): Add declaration.
15976 * linux-fork.c (_initialize_linux_fork): Add declaration.
15977 * linux-nat.c (_initialize_linux_nat): Add declaration.
15978 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15979 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15980 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15981 * m2-lang.c (_initialize_m2_language): Add declaration.
15982 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15983 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15984 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15985 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15986 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15987 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15988 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15989 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15990 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15991 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15992 * machoread.c (_initialize_machoread): Add declaration.
15993 * macrocmd.c (_initialize_macrocmd): Add declaration.
15994 * macroscope.c (_initialize_macroscope): Add declaration.
15995 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15996 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15997 * maint.c (_initialize_maint_cmds): Add declaration.
15998 * mdebugread.c (_initialize_mdebugread): Add declaration.
15999 * memattr.c (_initialize_mem): Add declaration.
16000 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16001 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16002 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16003 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16004 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16005 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16006 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16007 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16008 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16009 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16010 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16011 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16012 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16013 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16014 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16015 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16016 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16017 * mipsread.c (_initialize_mipsread): Add declaration.
16018 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16019 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16020 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16021 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16022 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16023 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16024 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16025 * nto-procfs.c (_initialize_procfs): Add declaration.
16026 * objc-lang.c (_initialize_objc_language): Add declaration.
16027 * observable.c (_initialize_observer): Add declaration.
16028 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16029 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16030 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16031 * osabi.c (_initialize_gdb_osabi): Add declaration.
16032 * osdata.c (_initialize_osdata): Add declaration.
16033 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16034 * parse.c (_initialize_parse): Add declaration.
16035 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16036 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16037 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16038 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16039 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16040 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16041 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16042 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16043 * printcmd.c (_initialize_printcmd): Add declaration.
16044 * probe.c (_initialize_probe): Add declaration.
16045 * proc-api.c (_initialize_proc_api): Add declaration.
16046 * proc-events.c (_initialize_proc_events): Add declaration.
16047 * proc-service.c (_initialize_proc_service): Add declaration.
16048 * procfs.c (_initialize_procfs): Add declaration.
16049 * producer.c (_initialize_producer): Add declaration.
16050 * psymtab.c (_initialize_psymtab): Add declaration.
16051 * python/python.c (_initialize_python): Add declaration.
16052 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16053 * record-btrace.c (_initialize_record_btrace): Add declaration.
16054 * record-full.c (_initialize_record_full): Add declaration.
16055 * record.c (_initialize_record): Add declaration.
16056 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16057 * regcache.c (_initialize_regcache): Add declaration.
16058 * reggroups.c (_initialize_reggroup): Add declaration.
16059 * remote-notif.c (_initialize_notif): Add declaration.
16060 * remote-sim.c (_initialize_remote_sim): Add declaration.
16061 * remote.c (_initialize_remote): Add declaration.
16062 * reverse.c (_initialize_reverse): Add declaration.
16063 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16064 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16065 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16066 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16067 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16068 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16069 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16070 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16071 Add declaration.
16072 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16073 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16074 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16075 * rust-exp.y (_initialize_rust_exp): Add declaration.
16076 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16077 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16078 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16079 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16080 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16081 * score-tdep.c (_initialize_score_tdep): Add declaration.
16082 * ser-go32.c (_initialize_ser_dos): Add declaration.
16083 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16084 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16085 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16086 * ser-uds.c (_initialize_ser_socket): Add declaration.
16087 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16088 * serial.c (_initialize_serial): Add declaration.
16089 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16090 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16091 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16092 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16093 * skip.c (_initialize_step_skip): Add declaration.
16094 * sol-thread.c (_initialize_sol_thread): Add declaration.
16095 * solib-aix.c (_initialize_solib_aix): Add declaration.
16096 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16097 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16098 * solib-frv.c (_initialize_frv_solib): Add declaration.
16099 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16100 * solib-target.c (_initialize_solib_target): Add declaration.
16101 * solib.c (_initialize_solib): Add declaration.
16102 * source-cache.c (_initialize_source_cache): Add declaration.
16103 * source.c (_initialize_source): Add declaration.
16104 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16105 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16106 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16107 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16108 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16109 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16110 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16111 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16112 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16113 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16114 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16115 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16116 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16117 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16118 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16119 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16120 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16121 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16122 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16123 * stabsread.c (_initialize_stabsread): Add declaration.
16124 * stack.c (_initialize_stack): Add declaration.
16125 * stap-probe.c (_initialize_stap_probe): Add declaration.
16126 * std-regs.c (_initialize_frame_reg): Add declaration.
16127 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16128 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16129 * symfile.c (_initialize_symfile): Add declaration.
16130 * symmisc.c (_initialize_symmisc): Add declaration.
16131 * symtab.c (_initialize_symtab): Add declaration.
16132 * target.c (_initialize_target): Add declaration.
16133 * target-connection.c (_initialize_target_connection): Add
16134 declaration.
16135 * target-dcache.c (_initialize_target_dcache): Add declaration.
16136 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16137 * thread.c (_initialize_thread): Add declaration.
16138 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16139 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16140 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16141 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16142 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16143 * tracectf.c (_initialize_ctf): Add declaration.
16144 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16145 * tracefile.c (_initialize_tracefile): Add declaration.
16146 * tracepoint.c (_initialize_tracepoint): Add declaration.
16147 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16148 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16149 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16150 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16151 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16152 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16153 * tui/tui.c (_initialize_tui): Add declaration.
16154 * typeprint.c (_initialize_typeprint): Add declaration.
16155 * ui-style.c (_initialize_ui_style): Add declaration.
16156 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16157 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16158 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16159 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16160 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16161 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16162 * unittests/filtered_iterator-selftests.c
16163 (_initialize_filtered_iterator_selftests): Add declaration.
16164 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16165 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16166 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16167 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16168 * unittests/main-thread-selftests.c
16169 (_initialize_main_thread_selftests): Add declaration.
16170 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16171 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16172 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16173 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16174 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16175 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16176 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16177 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16178 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16179 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16180 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16181 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16182 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16183 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16184 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16185 declaration.
16186 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16187 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16188 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16189 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16190 * user-regs.c (_initialize_user_regs): Add declaration.
16191 * utils.c (_initialize_utils): Add declaration.
16192 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16193 * valops.c (_initialize_valops): Add declaration.
16194 * valprint.c (_initialize_valprint): Add declaration.
16195 * value.c (_initialize_values): Add declaration.
16196 * varobj.c (_initialize_varobj): Add declaration.
16197 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16198 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16199 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16200 * windows-nat.c (_initialize_windows_nat): Add declaration.
16201 (_initialize_check_for_gdb_ini): Add declaration.
16202 (_initialize_loadable): Add declaration.
16203 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16204 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16205 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16206 * xcoffread.c (_initialize_xcoffread): Add declaration.
16207 * xml-support.c (_initialize_xml_support): Add declaration.
16208 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16209 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16210 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16211 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16212
e2de1eec
SM
162132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16214
16215 * regformats/regdat.sh: Generate declaration for init function.
16216
e0037b4c
SM
162172020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16218
16219 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16220 up.
16221 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16222 close_one_inferior>: New methods.
16223 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16224 pass down target to find_inferior_pid.
16225 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16226 Pass down target to find_inferior_ptid.
16227 (gdbsim_target::create_inferior): Pass down target to
16228 add_thread_silent.
16229 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16230 target down to find_inferior_ptid and switch_to_thread.
16231 (gdbsim_target::close): Update to call close_one_inferior.
16232 (struct resume_data): Remove.
16233 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16234 directly, rather than through a void pointer.
16235 (gdbsim_target::resume): Update to call resume_one_inferior.
16236
58920b5b
SM
162372020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16238
16239 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16240
4ec89149
PA
162412020-01-12 Pedro Alves <palves@redhat.com>
16242
16243 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16244 directly for the current inferior instead of
16245 discard_all_inferiors.
16246 (discard_all_inferiors): Delete.
16247
7c392d1d
TT
162482020-01-11 Tom Tromey <tom@tromey.com>
16249
16250 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16251 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16252 deprecated_safe_get_selected_frame.
16253
d9ebdab7
TBA
162542020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16255
16256 * inferior.c (print_inferior): Switch inferior before printing it.
16257
f3c469b9
PA
162582020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16259 Pedro Alves <palves@redhat.com>
16260
16261 * progspace-and-thread.c (switch_to_program_space_and_thread):
16262 Assert there's an inferior for PSPACE. Use
16263 switch_to_inferior_no_thread to switch the inferior too.
16264 * progspace.c (program_space::~program_space): Call
16265 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16266 (program_space::free_all_objfiles): Don't call clear_symtab_users
16267 here.
16268 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16269
65c574f6
PA
162702020-01-10 Pedro Alves <palves@redhat.com>
16271
16272 * NEWS: Mention multi-target debugging, "info connections", and
16273 "add-inferior -no-connection".
16274
2f4fcf00
PA
162752020-01-10 Pedro Alves <palves@redhat.com>
16276
16277 * infrun.c: Include "target-connection.h".
16278 (check_multi_target_resumption): New.
16279 (proceed): Call it.
16280 * target-connection.c (make_target_connection_string): Make
16281 extern.
16282 * target-connection.h (make_target_connection_string): Declare.
16283
121b3efd
PA
162842020-01-10 Pedro Alves <palves@redhat.com>
16285
16286 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16287 * inferior.c (uiout_field_connection): New function.
16288 (print_inferior): Add new "connection-id" column.
16289 (add_inferior_command): Show connection number/string of added
16290 inferior.
16291 * process-stratum-target.h
16292 (process_stratum_target::connection_string): New virtual method.
16293 (process_stratum_target::connection_number): New field.
16294 * remote.c (remote_target::connection_string): New override.
16295 * target-connection.c: New file.
16296 * target-connection.h: New file.
16297 * target.c (decref_target): Remove process_stratum targets from
16298 the connection list.
16299 (target_stack::push): Add process_stratum targets to the
16300 connection list.
16301
4f837581
PA
163022020-01-10 Pedro Alves <palves@redhat.com>
16303
16304 Revert:
16305 2016-04-12 Pedro Alves <palves@redhat.com>
16306 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16307 Remove references to name.
16308 * serial.h (struct serial) <name>: Delete.
16309
f4ec508e
PA
163102020-01-10 Pedro Alves <palves@redhat.com>
16311
16312 * gdbarch-selftests.c (register_to_value_test): Remove "target
16313 already pushed" check.
16314
5b6d1e4f
PA
163152020-01-10 Pedro Alves <palves@redhat.com>
16316 John Baldwin <jhb@FreeBSD.org>
16317
16318 * aarch64-linux-nat.c
16319 (aarch64_linux_nat_target::thread_architecture): Adjust.
16320 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16321 (task_command_1): Likewise.
16322 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16323 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16324 (aix_thread_target::store_registers)
16325 (aix_thread_target::thread_alive): Adjust.
16326 * amd64-fbsd-tdep.c: Include "inferior.h".
16327 (amd64fbsd_get_thread_local_address): Pass down target.
16328 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16329 thread's gdbarch instead of target_gdbarch.
16330 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16331 get_last_target_status.
16332 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16333 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16334 inferiors.
16335 (update_inserted_breakpoint_locations): Skip if inferiors with no
16336 execution.
16337 (update_global_location_list): When handling moribund locations,
16338 find representative inferior for location's pspace, and use thread
16339 count of its process_stratum target.
16340 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16341 * bsd-uthread.c (bsd_uthread_target::wait): Use
16342 as_process_stratum_target and adjust thread_change_ptid and
16343 add_thread calls.
16344 (bsd_uthread_target::update_thread_list): Use
16345 as_process_stratum_target and adjust find_thread_ptid,
16346 thread_change_ptid and add_thread calls.
16347 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16348 find_thread_ptid call.
16349 * corelow.c (add_to_thread_list): Adjust add_thread call.
16350 (core_target_open): Adjust add_thread_silent and thread_count
16351 calls.
16352 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16353 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16354 * event-top.c (async_disconnect): Pop targets from all inferiors.
16355 * exec.c (add_target_sections): Push exec target on all inferiors
16356 sharing the program space.
16357 (remove_target_sections): Remove the exec target from all
16358 inferiors sharing the program space.
16359 (exec_on_vfork): New.
16360 * exec.h (exec_on_vfork): Declare.
16361 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16362 Pass it down.
16363 (fbsd_nat_target::update_thread_list): Adjust.
16364 (fbsd_nat_target::resume): Adjust.
16365 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16366 down.
16367 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16368 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16369 get_thread_arch_regcache call.
16370 * fork-child.c (gdb_startup_inferior): Pass target down to
16371 startup_inferior and set_executing.
16372 * gdbthread.h (struct process_stratum_target): Forward declare.
16373 (add_thread, add_thread_silent, add_thread_with_info)
16374 (in_thread_list): Add process_stratum_target parameter.
16375 (find_thread_ptid(inferior*, ptid_t)): New overload.
16376 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16377 parameter.
16378 (all_threads()): Delete overload.
16379 (all_threads, all_non_exited_threads): Add process_stratum_target
16380 parameter.
16381 (all_threads_safe): Use brace initialization.
16382 (thread_count): Add process_stratum_target parameter.
16383 (set_resumed, set_running, set_stop_requested, set_executing)
16384 (threads_are_executing, finish_thread_state): Add
16385 process_stratum_target parameter.
16386 (switch_to_thread): Use is_current_thread.
16387 * i386-fbsd-tdep.c: Include "inferior.h".
16388 (i386fbsd_get_thread_local_address): Pass down target.
16389 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16390 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16391 have_inferiors check.
16392 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16393 (inf_ptrace_target::attach): Adjust.
16394 * infcall.c (run_inferior_call): Adjust.
16395 * infcmd.c (run_command_1): Pass target to
16396 scoped_finish_thread_state.
16397 (proceed_thread_callback): Skip inferiors with no execution.
16398 (continue_command): Rename 'all_threads' local to avoid hiding
16399 'all_threads' function. Adjust get_last_target_status call.
16400 (prepare_one_step): Adjust set_running call.
16401 (signal_command): Use user_visible_resume_target. Compare thread
16402 pointers instead of inferior_ptid.
16403 (info_program_command): Adjust to pass down target.
16404 (attach_command): Mark target's 'thread_executing' flag.
16405 (stop_current_target_threads_ns): New, factored out from ...
16406 (interrupt_target_1): ... this. Switch inferior before making
16407 target calls.
16408 * inferior-iter.h
16409 (struct all_inferiors_iterator, struct all_inferiors_range)
16410 (struct all_inferiors_safe_range)
16411 (struct all_non_exited_inferiors_range): Filter on
16412 process_stratum_target too. Remove explicit.
16413 * inferior.c (inferior::inferior): Push dummy target on target
16414 stack.
16415 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16416 Add process_stratum_target parameter, and pass it down.
16417 (have_live_inferiors): Adjust.
16418 (switch_to_inferior_and_push_target): New.
16419 (add_inferior_command, clone_inferior_command): Handle
16420 "-no-connection" parameter. Use
16421 switch_to_inferior_and_push_target.
16422 (_initialize_inferior): Mention "-no-connection" option in
16423 the help of "add-inferior" and "clone-inferior" commands.
16424 * inferior.h: Include "process-stratum-target.h".
16425 (interrupt_target_1): Use bool.
16426 (struct inferior) <push_target, unpush_target, target_is_pushed,
16427 find_target_beneath, top_target, process_target, target_at,
16428 m_stack>: New.
16429 (discard_all_inferiors): Delete.
16430 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16431 (all_inferiors, all_non_exited_inferiors): Add
16432 process_stratum_target parameter.
16433 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16434 (target_last_proc_target): New global.
16435 (follow_fork_inferior): Push target on new inferior. Pass target
16436 to add_thread_silent. Call exec_on_vfork. Handle target's
16437 reference count.
16438 (follow_fork): Adjust get_last_target_status call. Also consider
16439 target.
16440 (follow_exec): Push target on new inferior.
16441 (struct execution_control_state) <target>: New field.
16442 (user_visible_resume_target): New.
16443 (do_target_resume): Call target_async.
16444 (resume_1): Set target's threads_executing flag. Consider resume
16445 target.
16446 (commit_resume_all_targets): New.
16447 (proceed): Also consider resume target. Skip threads of inferiors
16448 with no execution. Commit resumtion in all targets.
16449 (start_remote): Pass current inferior to wait_for_inferior.
16450 (infrun_thread_stop_requested): Consider target as well. Pass
16451 thread_info pointer to clear_inline_frame_state instead of ptid.
16452 (infrun_thread_thread_exit): Consider target as well.
16453 (random_pending_event_thread): New inferior parameter. Use it.
16454 (do_target_wait): Rename to ...
16455 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16456 down.
16457 (threads_are_resumed_pending_p, do_target_wait): New.
16458 (prepare_for_detach): Adjust calls.
16459 (wait_for_inferior): New inferior parameter. Handle it. Use
16460 do_target_wait_1 instead of do_target_wait.
16461 (fetch_inferior_event): Adjust. Switch to representative
16462 inferior. Pass target down.
16463 (set_last_target_status): Add process_stratum_target parameter.
16464 Save target in global.
16465 (get_last_target_status): Add process_stratum_target parameter and
16466 handle it.
16467 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16468 (context_switch): Check inferior_ptid == null_ptid before calling
16469 inferior_thread().
16470 (get_inferior_stop_soon): Pass down target.
16471 (wait_one): Rename to ...
16472 (poll_one_curr_target): ... this.
16473 (struct wait_one_event): New.
16474 (wait_one): New.
16475 (stop_all_threads): Adjust.
16476 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16477 event's target.
16478 (switch_back_to_stepped_thread): Also consider target.
16479 (print_stop_event): Update.
16480 (normal_stop): Update. Also consider the resume target.
16481 * infrun.h (wait_for_inferior): Remove declaration.
16482 (user_visible_resume_target): New declaration.
16483 (get_last_target_status, set_last_target_status): New
16484 process_stratum_target parameter.
16485 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16486 process_stratum_target parameter, and use it.
16487 (clear_inline_frame_state (thread_info*)): New.
16488 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16489 process_stratum_target parameter.
16490 (clear_inline_frame_state (thread_info*)): Declare.
16491 * linux-fork.c (delete_checkpoint_command): Pass target down to
16492 find_thread_ptid.
16493 (checkpoint_command): Adjust.
16494 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16495 instead of just tweaking inferior_ptid.
16496 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16497 (exit_lwp): Pass target down to find_thread_ptid.
16498 (attach_proc_task_lwp_callback): Pass target down to
16499 add_thread/set_running/set_executing.
16500 (linux_nat_target::attach): Pass target down to
16501 thread_change_ptid.
16502 (get_detach_signal): Pass target down to find_thread_ptid.
16503 Consider last target status's target.
16504 (linux_resume_one_lwp_throw, resume_lwp)
16505 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16506 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16507 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16508 (linux_nat_target::async_wait_fd): New.
16509 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16510 target down.
16511 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16512 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16513 * linux-thread-db.c (struct thread_db_info::process_target): New
16514 field.
16515 (add_thread_db_info): Save target.
16516 (get_thread_db_info): New process_stratum_target parameter. Also
16517 match target.
16518 (delete_thread_db_info): New process_stratum_target parameter.
16519 Also match target.
16520 (thread_from_lwp): Adjust to pass down target.
16521 (thread_db_notice_clone): Pass down target.
16522 (check_thread_db_callback): Pass down target.
16523 (try_thread_db_load_1): Always push the thread_db target.
16524 (try_thread_db_load, record_thread): Pass target down.
16525 (thread_db_target::detach): Pass target down. Always unpush the
16526 thread_db target.
16527 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16528 target down. Always unpush the thread_db target.
16529 (find_new_threads_callback, thread_db_find_new_threads_2)
16530 (thread_db_target::update_thread_list): Pass target down.
16531 (thread_db_target::pid_to_str): Pass current inferior down.
16532 (thread_db_target::get_thread_local_address): Pass target down.
16533 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16534 target down.
16535 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16536 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16537 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16538 (procfs_init_inferior): Rename to ...
16539 (procfs_target::procfs_init_inferior): ... this and adjust.
16540 (procfs_target::create_inferior, procfs_notice_thread)
16541 (procfs_do_thread_registers): Adjust.
16542 * ppc-fbsd-tdep.c: Include "inferior.h".
16543 (ppcfbsd_get_thread_local_address): Pass down target.
16544 * proc-service.c (ps_xfer_memory): Switch current inferior and
16545 program space as well.
16546 (get_ps_regcache): Pass target down.
16547 * process-stratum-target.c
16548 (process_stratum_target::thread_address_space)
16549 (process_stratum_target::thread_architecture): Pass target down.
16550 * process-stratum-target.h
16551 (process_stratum_target::threads_executing): New field.
16552 (as_process_stratum_target): New.
16553 * ravenscar-thread.c
16554 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16555 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16556 down.
16557 * record-btrace.c (record_btrace_target::info_record): Adjust.
16558 (record_btrace_target::record_method)
16559 (record_btrace_target::record_is_replaying)
16560 (record_btrace_target::fetch_registers)
16561 (get_thread_current_frame_id, record_btrace_target::resume)
16562 (record_btrace_target::wait, record_btrace_target::stop): Pass
16563 target down.
16564 * record-full.c (record_full_wait_1): Switch to event thread.
16565 Pass target down.
16566 * regcache.c (regcache::regcache)
16567 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16568 process_stratum_target parameter and handle it.
16569 (current_thread_target): New global.
16570 (get_thread_regcache): Add process_stratum_target parameter and
16571 handle it. Switch inferior before calling target method.
16572 (get_thread_regcache): Pass target down.
16573 (get_thread_regcache_for_ptid): Pass target down.
16574 (registers_changed_ptid): Add process_stratum_target parameter and
16575 handle it.
16576 (registers_changed_thread, registers_changed): Pass target down.
16577 (test_get_thread_arch_aspace_regcache): New.
16578 (current_regcache_test): Define a couple local test_target_ops
16579 instances and use them for testing.
16580 (readwrite_regcache): Pass process_stratum_target parameter.
16581 (cooked_read_test, cooked_write_test): Pass mock_target down.
16582 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16583 (get_thread_arch_aspace_regcache): Add process_stratum_target
16584 parameter.
16585 (regcache::target): New method.
16586 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16587 (regcache::registers_changed_ptid): Add process_stratum_target
16588 parameter.
16589 (regcache::m_target): New field.
16590 (registers_changed_ptid): Add process_stratum_target parameter.
16591 * remote.c (remote_state::supports_vCont_probed): New field.
16592 (remote_target::async_wait_fd): New method.
16593 (remote_unpush_and_throw): Add remote_target parameter.
16594 (get_current_remote_target): Adjust.
16595 (remote_target::remote_add_inferior): Push target.
16596 (remote_target::remote_add_thread)
16597 (remote_target::remote_notice_new_inferior)
16598 (get_remote_thread_info): Pass target down.
16599 (remote_target::update_thread_list): Skip threads of inferiors
16600 bound to other targets. (remote_target::close): Don't discard
16601 inferiors. (remote_target::add_current_inferior_and_thread)
16602 (remote_target::process_initial_stop_replies)
16603 (remote_target::start_remote)
16604 (remote_target::remote_serial_quit_handler): Pass down target.
16605 (remote_target::remote_unpush_target): New remote_target
16606 parameter. Unpush the target from all inferiors.
16607 (remote_target::remote_unpush_and_throw): New remote_target
16608 parameter. Pass it down.
16609 (remote_target::open_1): Check whether the current inferior has
16610 execution instead of checking whether any inferior is live. Pass
16611 target down.
16612 (remote_target::remote_detach_1): Pass down target. Use
16613 remote_unpush_target.
16614 (extended_remote_target::attach): Pass down target.
16615 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16616 (remote_target::append_resumption): Pass down target.
16617 (remote_target::append_pending_thread_resumptions)
16618 (remote_target::remote_resume_with_hc, remote_target::resume)
16619 (remote_target::commit_resume): Pass down target.
16620 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16621 (remote_target::interrupt_query)
16622 (remote_target::remove_new_fork_children)
16623 (remote_target::check_pending_events_prevent_wildcard_vcont)
16624 (remote_target::remote_parse_stop_reply)
16625 (remote_target::process_stop_reply): Pass down target.
16626 (first_remote_resumed_thread): New remote_target parameter. Pass
16627 it down.
16628 (remote_target::wait_as): Pass down target.
16629 (unpush_and_perror): New remote_target parameter. Pass it down.
16630 (remote_target::readchar, remote_target::remote_serial_write)
16631 (remote_target::getpkt_or_notif_sane_1)
16632 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16633 down target.
16634 (remote_target::mourn_inferior): Pass down target. Use
16635 remote_unpush_target.
16636 (remote_target::core_of_thread)
16637 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16638 (remote_target::pid_to_exec_file)
16639 (remote_target::thread_handle_to_thread_info): Pass down target.
16640 (remote_target::async_wait_fd): New.
16641 * riscv-fbsd-tdep.c: Include "inferior.h".
16642 (riscv_fbsd_get_thread_local_address): Pass down target.
16643 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16644 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16645 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16646 Adjust.
16647 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16648 * solib-svr4.c (enable_break): Pass down target.
16649 * spu-multiarch.c (parse_spufs_run): Pass down target.
16650 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16651 * target-delegates.c: Regenerate.
16652 * target.c (g_target_stack): Delete.
16653 (current_top_target): Return the current inferior's top target.
16654 (target_has_execution_1): Refer to the passed-in inferior's top
16655 target.
16656 (target_supports_terminal_ours): Check whether the initial
16657 inferior was already created.
16658 (decref_target): New.
16659 (target_stack::push): Incref/decref the target.
16660 (push_target, push_target, unpush_target): Adjust.
16661 (target_stack::unpush): Defref target.
16662 (target_is_pushed): Return bool. Adjust to refer to the current
16663 inferior's target stack.
16664 (dispose_inferior): Delete, and inline parts ...
16665 (target_preopen): ... here. Only dispose of the current inferior.
16666 (target_detach): Hold strong target reference while detaching.
16667 Pass target down.
16668 (target_thread_name): Add assertion.
16669 (target_resume): Pass down target.
16670 (target_ops::beneath, find_target_at): Adjust to refer to the
16671 current inferior's target stack.
16672 (get_dummy_target): New.
16673 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16674 has a thread running.
16675 (initialize_targets): Rename to ...
16676 (_initialize_target): ... this.
16677 * target.h: Include "gdbsupport/refcounted-object.h".
16678 (struct target_ops): Inherit refcounted_object.
16679 (target_ops::shortname, target_ops::longname): Make const.
16680 (target_ops::async_wait_fd): New method.
16681 (decref_target): Declare.
16682 (struct target_ops_ref_policy): New.
16683 (target_ops_ref): New typedef.
16684 (get_dummy_target): Declare function.
16685 (target_is_pushed): Return bool.
16686 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16687 (all_matching_threads_iterator::all_matching_threads_iterator):
16688 Handle filter target.
16689 * thread-iter.h (struct all_matching_threads_iterator, struct
16690 all_matching_threads_range, class all_non_exited_threads_range):
16691 Filter by target too. Remove explicit.
16692 * thread.c (threads_executing): Delete.
16693 (inferior_thread): Pass down current inferior.
16694 (clear_thread_inferior_resources): Pass down thread pointer
16695 instead of ptid_t.
16696 (add_thread_silent, add_thread_with_info, add_thread): Add
16697 process_stratum_target parameter. Use it for thread and inferior
16698 searches.
16699 (is_current_thread): New.
16700 (thread_info::deletable): Use it.
16701 (find_thread_ptid, thread_count, in_thread_list)
16702 (thread_change_ptid, set_resumed, set_running): New
16703 process_stratum_target parameter. Pass it down.
16704 (set_executing): New process_stratum_target parameter. Pass it
16705 down. Adjust reference to 'threads_executing'.
16706 (threads_are_executing): New process_stratum_target parameter.
16707 Adjust reference to 'threads_executing'.
16708 (set_stop_requested, finish_thread_state): New
16709 process_stratum_target parameter. Pass it down.
16710 (switch_to_thread): Also match inferior.
16711 (switch_to_thread): New process_stratum_target parameter. Pass it
16712 down.
16713 (update_threads_executing): Reimplement.
16714 * top.c (quit_force): Pop targets from all inferior.
16715 (gdb_init): Don't call initialize_targets.
16716 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16717 Declare.
16718 (windows_add_thread, windows_delete_thread): Adjust.
16719 (get_windows_debug_event): Rename to ...
16720 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16721 * tracefile-tfile.c (tfile_target_open): Pass down target.
16722 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16723 Forward declare.
16724 (switch_to_thread): Add process_stratum_target parameter.
16725 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16726 parameter. Use it.
16727 (mi_on_resume): Pass target down.
16728 * nat/fork-inferior.c (startup_inferior): Add
16729 process_stratum_target parameter. Pass it down.
16730 * nat/fork-inferior.h (startup_inferior): Add
16731 process_stratum_target parameter.
16732 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16733
75c6c844
PA
167342020-01-10 Pedro Alves <palves@redhat.com>
16735
16736 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16737 directly. Instead find the first thread in the thread list and
16738 use switch_to_thread.
16739
78f2c40a
PA
167402020-01-10 Pedro Alves <palves@redhat.com>
16741
16742 * remote.c (remote_target::remote_add_inferior): Don't bind a
16743 process to the current inferior if the current inferior is already
16744 bound to a process.
16745
e7af6c70
TBA
167462020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16747 Pedro Alves <palves@redhat.com>
16748
16749 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16750 If no process is specified, return null_ptid instead of
16751 inferior_ptid.
16752 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16753 TARGET_WAITKIND_SIGNALLED with no pid.
16754
31ba933e
PA
167552020-01-10 Pedro Alves <palves@redhat.com>
16756
16757 * remote.c (first_remote_resumed_thread): New.
16758 (remote_target::wait_as): Use it as default event_ptid instead of
16759 inferior_ptid.
16760
735fc2ca
PA
167612020-01-10 Pedro Alves <palves@redhat.com>
16762
16763 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16764
c17e02e1
PA
167652020-01-10 Pedro Alves <palves@redhat.com>
16766
16767 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16768 not -1.
16769
ab1ddbcf
PA
167702020-01-10 Pedro Alves <palves@redhat.com>
16771
16772 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16773 ptid to get_last_target_status.
16774 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16775 ptid to get_last_target_status.
16776 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16777 get_last_target_status.
16778 (info_program_command): Don't pass a target_waitstatus to
16779 get_last_target_status.
16780 * infrun.c (init_wait_for_inferior): Use
16781 nullify_last_target_wait_ptid.
16782 (get_last_target_status): Handle nullptr arguments.
16783 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16784 (print_stop_event): Don't pass a ptid to get_last_target_status.
16785 (normal_stop): Don't pass a ptid to get_last_target_status.
16786 * infrun.h (get_last_target_status, set_last_target_status): Move
16787 comments here and update.
16788 (nullify_last_target_wait_ptid): Declare.
16789 * linux-fork.c (fork_load_infrun_state): Remove local extern
16790 declaration of nullify_last_target_wait_ptid.
16791 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16792 to get_last_target_status.
16793
f3f8ece4
PA
167942020-01-10 Pedro Alves <palves@redhat.com>
16795
16796 * gdbthread.h (scoped_restore_current_thread)
16797 <dont_restore, restore, m_dont_restore>: Declare.
16798 * thread.c (thread_alive): Add assertion. Return bool.
16799 (switch_to_thread_if_alive): New.
16800 (prune_threads): Switch inferior/thread.
16801 (print_thread_info_1): Switch thread before calling target methods.
16802 (scoped_restore_current_thread::restore): New, factored out from
16803 ...
16804 (scoped_restore_current_thread::~scoped_restore_current_thread):
16805 ... this.
16806 (scoped_restore_current_thread::scoped_restore_current_thread):
16807 Add assertion.
16808 (thread_apply_all_command, thread_select): Use
16809 switch_to_thread_if_alive.
16810 * infrun.c (proceed, restart_threads, handle_signal_stop)
16811 (switch_back_to_stepped_thread): Switch current thread before
16812 calling target methods.
16813
db2d40f7
PA
168142020-01-10 Pedro Alves <palves@redhat.com>
16815
16816 * inferior.c (switch_to_inferior_no_thread): New function,
16817 factored out from ...
16818 (inferior_command): ... here.
16819 * inferior.h (switch_to_inferior_no_thread): Declare.
16820 * mi/mi-main.c (run_one_inferior): Use
16821 switch_to_inferior_no_thread.
16822
bd420a2d
PA
168232020-01-10 Pedro Alves <palves@redhat.com>
16824
16825 * infcmd.c (kill_command): Remove dead code.
16826
ddf5db90
PA
168272020-01-10 Pedro Alves <palves@redhat.com>
16828
16829 * remote.c (remote_target::mourn_inferior): No longer check
16830 whether the target is running.
16831
5018ce90
PA
168322020-01-10 Pedro Alves <palves@redhat.com>
16833
16834 * corelow.c (core_target::has_execution): Change parameter type to
16835 inferior pointer.
16836 * inferior.c (number_of_live_inferiors): Use
16837 inferior::has_execution instead of target_has_execution_1.
16838 * inferior.h (inferior::has_execution): New.
16839 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16840 inferior::has_execution instead of target_has_execution_1.
16841 * process-stratum-target.c
16842 (process_stratum_target::has_execution): Change parameter type to
16843 inferior pointer. Check the inferior's PID instead of
16844 inferior_ptid.
16845 * process-stratum-target.h
16846 (process_stratum_target::has_execution): Change parameter type to
16847 inferior pointer.
16848 * record-full.c (record_full_core_target::has_execution): Change
16849 parameter type to inferior pointer.
16850 * target.c (target_has_execution_1): Change parameter type to
16851 inferior pointer.
16852 (target_has_execution_current): Adjust.
16853 * target.h (target_ops::has_execution): Change parameter type to
16854 inferior pointer.
16855 (target_has_execution_1): Change parameter type to inferior
16856 pointer. Change return type to bool.
16857 * tracefile.h (tracefile_target::has_execution): Change parameter
16858 type to inferior pointer.
16859
74375d18
PA
168602020-01-10 Pedro Alves <palves@redhat.com>
16861
16862 * exceptions.c (print_flush): Remove current_top_target() check.
16863
acdf84a6
PA
168642020-01-10 Pedro Alves <palves@redhat.com>
16865
16866 * remote.c (show_remote_exec_file): Show the current inferior's
16867 exec-file instead of the command variable's value.
16868
ec506636
PA
168692020-01-10 Pedro Alves <palves@redhat.com>
16870
16871 * record-full.c (record_full_resume_ptid): New global.
16872 (record_full_target::resume): Set it.
16873 (record_full_wait_1): Use record_full_resume_ptid instead of
16874 inferior_ptid.
16875
873657b9
PA
168762020-01-10 Pedro Alves <palves@redhat.com>
16877
16878 * gdbthread.h (scoped_restore_current_thread)
16879 <dont_restore, restore, m_dont_restore>: Declare.
16880 * thread.c (thread_alive): Add assertion. Return bool.
16881 (switch_to_thread_if_alive): New.
16882 (prune_threads): Switch inferior/thread.
16883 (print_thread_info_1): Switch thread before calling target methods.
16884 (scoped_restore_current_thread::restore): New, factored out from
16885 ...
16886 (scoped_restore_current_thread::~scoped_restore_current_thread):
16887 ... this.
16888 (scoped_restore_current_thread::scoped_restore_current_thread):
16889 Add assertion.
16890 (thread_apply_all_command, thread_select): Use
16891 switch_to_thread_if_alive.
16892
7f0ae84c
GB
168932020-01-10 George Barrett <bob@bob131.so>
16894
16895 * stap-probe.c (stap_modify_semaphore): Don't check for null
16896 semaphores.
16897 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16898 for null semaphores.
16899
f5a7c406
AB
169002020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16901
16902 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16903 all source windows, and maintain horizontal scroll status while
16904 doing so.
16905
9ae6bf64
TT
169062020-01-09 Tom Tromey <tom@tromey.com>
16907
16908 PR tui/18932:
16909 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16910 update_source_window, not print_source_lines.
16911
b2efe70c
AB
169122020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16913
16914 * tui/tui.c (tui_enable): Register tui hooks after calling
16915 tui_display_main.
16916
5f23a082
CB
169172020-01-09 Christian Biesinger <cbiesinger@google.com>
16918
16919 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16920
3061113b
SM
169212020-01-08 Simon Marchi <simon.marchi@efficios.com>
16922
16923 * thread.c (print_thread_info_1): Fix indentation.
16924
57d75002
CB
169252020-01-09 Christian Biesinger <cbiesinger@google.com>
16926
16927 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16928 unique_xmalloc_ptr outside the if to always free the demangled name.
16929
6a053cb1
TT
169302020-01-08 Tom Tromey <tromey@adacore.com>
16931
16932 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16933 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16934 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16935 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16936 Remove.
16937 (section_offsets): New typedef.
16938 * symtab.c (fixup_section, get_msymbol_address): Update.
16939 * symmisc.c (dump_msymbols): Update.
16940 * symfile.h (relative_addr_info_to_section_offsets)
16941 (symfile_map_offsets_to_segments): Update.
16942 * symfile.c (build_section_addr_info_from_objfile)
16943 (init_objfile_sect_indices): Update.
16944 (struct place_section_arg): Change type of "offsets".
16945 (place_section): Update.
16946 (relative_addr_info_to_section_offsets): Change type of
16947 "section_offsets". Remove "num_sections" parameter.
16948 (default_symfile_offsets, syms_from_objfile_1)
16949 (set_objfile_default_section_offset): Update.
16950 (reread_symbols): No need to preserve section offsets by hand.
16951 (symfile_map_offsets_to_segments): Change type of "offsets".
16952 * stap-probe.c (relocate_address): Update.
16953 * stabsread.h (process_one_symbol): Update.
16954 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16955 (solib_target_relocate_section_addresses): Update.
16956 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16957 Update.
16958 * solib-frv.c (frv_relocate_main_executable): Update.
16959 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16960 * solib-aix.c (solib_aix_get_section_offsets): Change return
16961 type.
16962 (solib_aix_solib_create_inferior_hook): Update.
16963 * remote.c (remote_target::get_offsets): Update.
16964 * psymtab.c (find_pc_sect_psymtab): Update.
16965 * psympriv.h (struct partial_symbol) <address, text_low,
16966 text_high>: Update.
16967 * objfiles.h (obj_section_offset): Update.
16968 (struct objfile) <section_offsets>: Change type.
16969 <num_sections>: Remove.
16970 (objfile_relocate): Update.
16971 * objfiles.c (entry_point_address_query): Update
16972 (relocate_one_symbol): Change type of "section_offsets".
16973 (objfile_relocate1, objfile_relocate1): Change type of
16974 "new_offsets".
16975 (objfile_rebase1): Update.
16976 * mipsread.c (mipscoff_symfile_read): Update.
16977 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16978 parameter.
16979 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16980 (parse_external, psymtab_to_symtab_1): Update.
16981 * machoread.c (macho_symfile_offsets): Update.
16982 * ia64-tdep.c (ia64_find_unwind_table): Update.
16983 * hppa-tdep.c (read_unwind_info): Update.
16984 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16985 * dwarf2read.c (create_addrmap_from_index)
16986 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16987 (process_psymtab_comp_unit_reader, add_partial_symbol)
16988 (add_partial_subprogram, process_full_comp_unit)
16989 (read_file_scope, read_func_scope, read_lexical_block_scope)
16990 (read_call_site_scope, dwarf2_rnglists_process)
16991 (dwarf2_ranges_process, dwarf2_ranges_read)
16992 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16993 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16994 Update.
16995 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16996 Update.
16997 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16998 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16999 (process_one_symbol): Change type of "section_offsets".
17000 * ctfread.c (get_objfile_text_range): Update.
17001 * coffread.c (coff_symtab_read, enter_linenos)
17002 (process_coff_symbol): Update.
17003 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17004 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17005
456e800a
TT
170062020-01-08 Tom Tromey <tromey@adacore.com>
17007
17008 * dwarf2read.c (parse_macro_definition): Use std::string.
17009 (parse_macro_definition): Likewise.
17010
6dfa2fc2
TT
170112020-01-08 Tom Tromey <tromey@adacore.com>
17012
17013 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17014 (ATTR_ALLOC_CHUNK): Remove.
17015
421d1616
TT
170162020-01-08 Tom Tromey <tromey@adacore.com>
17017
17018 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17019
43816ebc
TT
170202020-01-08 Tom Tromey <tromey@adacore.com>
17021
17022 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17023 (dwarf2_compute_name, open_dwo_file): Likewise.
17024 (process_enumeration_scope): Use std::vector.
17025 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17026 (partial_die_info::fixup, dwarf2_start_subfile)
17027 (guess_full_die_structure_name, dwarf2_name): Likewise.
17028 (determine_prefix): Update.
17029 (guess_full_die_structure_name): Make return type const.
17030 (partial_die_full_name): Return unique_xmalloc_ptr.
17031 (DW_FIELD_ALLOC_CHUNK): Remove.
17032
4212d509
TT
170332020-01-07 Tom Tromey <tromey@adacore.com>
17034
17035 PR build/24937:
17036 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17037
06a6207a
JT
170382020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17039
17040 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17041
153d79c4
AB
170422020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17043
17044 * stack.c (print_frame_info): Move disassemble_next_line code
17045 inside source_print block.
17046
66182876
EZ
170472020-01-06 Eli Zaretskii <eliz@gnu.org>
17048
17049 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17050 gdb/signals.h, as we are now using native signal symbols.
17051
cbfa8581
SV
170522020-01-06 Shahab Vahedi <shahab@synopsys.com>
17053
17054 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17055 overflow by an early check of content vs threshold.
aac66a4c 17056 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17057 Likewise.
17058
3f602821
EZ
170592020-01-06 Eli Zaretskii <eliz@gnu.org>
17060
17061 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17062
a08c904d
JT
170632020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17064
17065 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17066 export table if no section contains it's RVA.
17067
89a65580
EZ
170682020-01-06 Eli Zaretskii <eliz@gnu.org>
17069
17070 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17071
8b7fcda2
HD
170722020-01-06 Hannes Domani <ssbssa@yahoo.de>
17073
17074 * source.c (print_source_lines_base): Set last_line_listed.
17075
a61b4f69
SV
170762020-01-06 Shahab Vahedi <shahab@synopsys.com>
17077
17078 * tui/tui-disasm.c: Remove trailing spaces.
17079
559e7e50
EZ
170802020-01-06 Eli Zaretskii <eliz@gnu.org>
17081 Pedro Alves <palves@redhat.com>
17082
17083 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17084 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17085 (windows_gdb_signal_to_target): New function, uses the above
17086 enumeration to convert GDB internal signal codes to equivalent
17087 Windows codes.
17088 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17089 * windows-nat.c: Include "gdb_wait.h".
17090 (get_windows_debug_event): Extract the fatal exception from the
17091 exit status and convert to the equivalent Posix signal number.
17092 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17093 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17094 * gdbsupport/gdb_wait.c: New file, implements
17095 windows_status_to_termsig.
17096 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17097 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17098
f2302a34
AB
170992020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17100
17101 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17102 show_layout.
17103
6a5206eb
LM
171042020-01-05 Luis Machado <luis.machado@linaro.org>
17105
17106 * aarch64-linux-nat.c
17107 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17108 and bfd_mach_aarch64.
17109
6ec1d75e
PW
171102020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17111
17112 * ui-file.c (stdio_file::can_emit_style_escape)
17113 (tee_file::can_emit_style_escape): Ensure style is used also on
17114 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17115 to gdb_stdout.
17116 * main.c (set_gdb_data_directory): Use file style to output the
17117 warning that the given pathname is not a directory.
17118 * top.c (show_history_filename, gdb_safe_append_history)
17119 (show_gdb_datadir): Use file style.
17120
44f81a76
HD
171212020-01-03 Hannes Domani <ssbssa@yahoo.de>
17122
17123 * solib-target.c (struct lm_info_target):
17124 Change offsets to be a unique_xmalloc_ptr.
17125 (solib_target_relocate_section_addresses): Update.
17126
25057eb0
HD
171272020-01-03 Hannes Domani <ssbssa@yahoo.de>
17128
17129 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17130
6e2118f5
BE
171312020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17132
17133 * MAINTAINERS (Write After Approval): Add myself.
17134
8133c7dc
LM
171352020-01-02 Luis Machado <luis.machado@linaro.org>
17136
17137 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17138 Cell BE architecture.
17139 * target.h (struct target_ops) <thread_architecture>: Likewise.
17140
48189bec
HD
171412020-01-01 Hannes Domani <ssbssa@yahoo.de>
17142
17143 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17144
ead1063b
HD
171452020-01-01 Hannes Domani <ssbssa@yahoo.de>
17146
17147 * MAINTAINERS (Write After Approval): Add myself.
17148
e5d78223
JB
171492020-01-01 Joel Brobecker <brobecker@adacore.com>
17150
17151 * gdbarch.sh: Update copyright year range of generated files.
17152
b811d2c2
JB
171532020-01-01 Joel Brobecker <brobecker@adacore.com>
17154
17155 Update copyright year range in all GDB files.
17156
5f4def5c
JB
171572020-01-01 Joel Brobecker <brobecker@adacore.com>
17158
17159 * copyright.py: Convert to Python 3.
17160
51fd4002
JB
171612020-01-01 Joel Brobecker <brobecker@adacore.com>
17162
17163 * copyright.py: Adapt after move of gnulib directory from gdb
17164 directory to toplevel directory.
17165
5fb651f2
JB
171662020-01-01 Joel Brobecker <brobecker@adacore.com>
17167
17168 * copyright.py (main): Exit if run from the wrong directory.
17169
5dd8bf88
JB
171702020-01-01 Joel Brobecker <brobecker@adacore.com>
17171
17172 * top.c (print_gdb_version): Change copyright year to 2020.
17173
9f71dacb 171742020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17175
9f71dacb 17176 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17177
9f71dacb 17178For older changes see ChangeLog-2019.
c906108c
SS
17179\f
17180Local Variables:
17181mode: change-log
17182left-margin: 8
17183fill-column: 74
17184version-control: never
57da7796 17185coding: utf-8
c906108c 17186End:
This page took 4.76017 seconds and 4 git commands to generate.