Ignore system_error in thread startup
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ae41200b
NA
12020-11-20 Nick Alcock <nick.alcock@oracle.com>
2
3 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
4 ctf_arc_open_by_name.
5
139633c3
NA
62020-11-20 Nick Alcock <nick.alcock@oracle.com>
7
8 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
9 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
10
cbbcd7a7
PA
112020-11-20 Pedro Alves <pedro@palves.net>
12
13 * language.c (language_arch_info::lookup_primitive_type): Use
14 gdb::function_view instead of gdb::function.
15 (template language_lookup_primitive_type): Rename to ...
16 (language_lookup_primitive_type_1): ... this, and make static.
17 (language_lookup_primitive_type(const struct language_defn *,
18 struct gdbarch *, const char *): Make non-template.
19 (language_lookup_primitive_type(const struct language_defn *,
20 struct gdbarch *, std::function<bool (struct type *)>): Make
21 non-template and use gdb::function_view.
22 * language.h (language_arch_info::lookup_primitive_type): Use
23 gdb::function_view instead of std::function.
24 (language_lookup_primitive_type): No longer template.
25 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
26 lambda instead of a std::function.
27
d5ef21c3
AA
282020-11-19 Andreas Arnez <arnez@linux.ibm.com>
29
30 PR tdep/26916
31 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
32 and STOCFH.
33
a5adb8f3
SM
342020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
37
70125a45
SM
382020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
39
40 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
41 in `loop_cb` parameter.
42 * gdbarch.c: Re-generate.
43 * gdbarch.h: Re-generate.
44 * arch-utils.c (default_read_core_file_mappings): Remove `other`
45 parameter.
46 * arch-utils.h (default_read_core_file_mappings): Likewise.
47 * corelow.c (core_target::build_file_mappings): Likewise.
48 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
49 (linux_core_info_proc_mappings): Likewise.
50
a5c641b5
AB
512020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
54 * NEWS: Mention new options.
55 * f-array-walker.h: New file.
56 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
57 (repack_array_slices): New static global.
58 (show_repack_array_slices): New function.
59 (fortran_array_slicing_debug): New static global.
60 (show_fortran_array_slicing_debug): New function.
61 (value_f90_subarray): Delete.
62 (skip_undetermined_arglist): Delete.
63 (class fortran_array_repacker_base_impl): New class.
64 (class fortran_lazy_array_repacker_impl): New class.
65 (class fortran_array_repacker_impl): New class.
66 (fortran_value_subarray): Complete rewrite.
67 (set_fortran_list): New static global.
68 (show_fortran_list): Likewise.
69 (_initialize_f_language): Register new commands.
70 (fortran_adjust_dynamic_array_base_address_hack): New function.
71 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
72 Declare.
73 * f-valprint.c: Include 'f-array-walker.h'.
74 (class fortran_array_printer_impl): New class.
75 (f77_print_array_1): Delete.
76 (f77_print_array): Delete.
77 (fortran_print_array): New.
78 (f_value_print_inner): Update to call fortran_print_array.
79 * gdbtypes.c: Include 'f-lang.h'.
80 (resolve_dynamic_type_internal): Call
81 fortran_adjust_dynamic_array_base_address_hack.
82
a15a5258
AB
832020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
84
85 * breakpoint.c (struct watch_options): New struct.
86 (watch_option_defs): New static global.
87 (make_watch_options_def_group): New function.
88 (watch_maybe_just_location): Convert option parsing.
89 (watch_command_completer): New function.
90 (_initialize_breakpoint): Build help text using options mechanism.
91
2e362716
AB
922020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
93
94 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
95 (watch_command_1): Update parameter types. Convert locals to
96 bool.
97 (watch_command_wrapper): Change parameter type.
98 (watch_maybe_just_location): Change locals to bool.
99 (rwatch_command_wrapper): Update parameter type.
100 (awatch_command_wrapper): Update parameter type.
101 * breakpoint.h (watch_command_wrapper): Change parameter type.
102 (rwatch_command_wrapper): Update parameter type.
103 (awatch_command_wrapper): Update parameter type.
104 * eval.c (fetch_subexp_value): Change parameter type.
105 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
106 'false' not '0'.
107 * value.h (fetch_subexp_value): Change parameter type in
108 declaration.
109
b3ff61f8
AB
1102020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
111
112 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
113 skip_spaces.
114
5b7d45d3
KS
1152020-11-18 Keith Seitz <keiths@redhat.com>
116
117 * linux-tdep.c (dump_note_entry_p): Return true instead of
118 checking `filename'.
119
c44191f8
TV
1202020-11-18 Tom de Vries <tdevries@suse.de>
121
122 * debuginfod-support.c (debuginfod_source_query)
123 (debuginfod_debuginfo_query): Also do early exit if
124 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
125
5d8254e1
TV
1262020-11-18 Tom de Vries <tdevries@suse.de>
127
128 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
129 warning.
130
584903d3
SM
1312020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
132
133 * gdbtypes.h (get_array_bounds): Return bool, adjust some
134 callers. Move doc here.
135 * gdbtypes.c (get_array_bounds): Return bool
136
6f2643db
AB
1372020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
138
139 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
140 assert.
141 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
142 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
143 case to the default.
144
037d7135
AB
1452020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
146
147 * printcmd.c: Include 'safe-ctype.c'.
148 (skip_over_slash_fmt): New function.
149 (print_command_completer): Call skip_over_slash_fmt.
150 (display_and_x_command_completer): New function.
151 (_initialize_printcmd): Add command completion for 'x' and
152 'display'.
153
2b3cb400
PA
1542020-11-16 Pedro Alves <pedro@palves.net>
155
156 * frame.c (get_prev_frame): Move get_frame_id call from here ...
157 (get_prev_frame_always_1): ... to here.
158 * inline-frame.c (inline_frame_this_id): Mention
159 get_prev_frame_always_1 in comment.
160
b74dbc20
JB
1612020-11-15 Joel Brobecker <brobecker@adacore.com>
162
163 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
164 handling.
165 (value_less): Add fixed-point handling.
166
0a12719e
JB
1672020-11-15 Joel Brobecker <brobecker@adacore.com>
168
169 * eval.c (binop_promote): Add fixed-point type handling.
170 * valarith.c (fixed_point_binop): New function.
171 (scalar_binop): Add fixed-point type handling.
172 (value_neg): Add fixed-point type handling.
173 * valops.c (value_cast_to_fixed_point): New function.
174 (value_cast): Add fixed-point type handling.
175
0c9150e4
JB
1762020-11-15 Joel Brobecker <brobecker@adacore.com>
177
178 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
179 range types.
180 * c-typeprint.c (c_type_print_varspec_prefix)
181 (c_type_print_varspec_suffix, c_type_print_base_1): Add
182 TYPE_CODE_FIXED_POINT handling.
183 * p-typeprint.c (pascal_type_print_varspec_prefix)
184 (pascal_type_print_varspec_suffix): Likewise.
185 * typeprint.c (print_type_fixed_point): New function.
186 * typeprint.h (print_type_fixed_point): Add declaration.
187
b26daff9
JB
1882020-11-15 Joel Brobecker <brobecker@adacore.com>
189
190 * printcmd.c (print_scalar_formatted): Add fixed-point type
191 handling when options->format is set.
192
09584414
JB
1932020-11-15 Joel Brobecker <brobecker@adacore.com>
194
195 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
196 * dwarf2/read.c (get_dwarf2_rational_constant)
197 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
198 (has_zero_over_zero_small_attribute): New functions.
199 read_base_type, set_die_type): Add fixed-point type handling.
200 * gdb-gdb.py.in: Add fixed-point type handling.
201 * gdbtypes.c: #include "gmp-utils.h".
202 (create_range_type, set_type_code): Add fixed-point type handling.
203 (init_fixed_point_type): New function.
204 (is_integral_type, is_scalar_type): Add fixed-point type handling.
205 (print_fixed_point_type_info): New function.
206 (recursive_dump_type, copy_type_recursive): Add fixed-point type
207 handling.
208 (fixed_point_type_storage): New typedef.
209 (fixed_point_objfile_key): New static global.
210 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
211 (fixed_point_type_base_type, fixed_point_scaling_factor): New
212 functions.
213 * gdbtypes.h: #include "gmp-utils.h".
214 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
215 (union type_specific) <fixed_point_info>: New field.
216 (struct fixed_point_type_info): New struct.
217 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
218 (init_fixed_point_type, is_fixed_point_type)
219 (fixed_point_type_base_type, fixed_point_scaling_factor)
220 (allocate_fixed_point_type_info): Add declarations.
221 * valprint.c (generic_val_print_fixed_point): New function.
222 (generic_value_print): Add fixed-point type handling.
223 * value.c (value_as_address, unpack_long): Add fixed-point type
224 handling.
225
e55c6530
JB
2262020-11-15 Joel Brobecker <brobecker@adacore.com>
227
228 * utils.h (uinteger_pow): Add declaration.
229 * utils.c (uinteger_pow): Moved here (without changes)...
230 * valarith.c (uinteger_pow): ... from here.
231
b34c74ab
JB
2322020-11-15 Joel Brobecker <brobecker@adacore.com>
233
40d9d2fd 234 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
235 * unittests/gmp-utils-selftests.c: New file.
236 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
237 unittests/gmp-utils-selftests.c.
238 (COMMON_SFILES) Add gmp-utils.c.
239 (HFILES_NO_SRCDIR): Add gmp-utils.h.
240
1b4ac058
JB
2412020-11-15 Joel Brobecker <brobecker@adacore.com>
242
243 * configure.ac: Generate an error if a usable GMP library
244 could not be found.
245 * configure: Regenerate.
246
2c947d9b
JB
2472020-11-15 Joel Brobecker <brobecker@adacore.com>
248
249 * configure.ac: Add support for --with-libgmp-prefix.
250 * Makefile.in (LIBGMP): New variable.
251 (CLIBS): Include $(LIBGMP).
252 * configure, config.in: Regenerate
253
9dd02fc0
AB
2542020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
255
256 PR cli/26879
257 * f-exp.y (COMPLETE): New token.
258 (exp): Two new rules for tab-completion.
259 (saw_name_at_eof): New static global.
260 (last_was_structop): Likewise.
261 (yylex): Set new variables, and return COMPLETE token at the end
262 of the input stream in some cases.
263
758cb810
TT
2642020-11-14 Tom Tromey <tom@tromey.com>
265
266 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
267
749065b7
TT
2682020-11-14 Tom Tromey <tom@tromey.com>
269
270 * opencl-lang.c (opencl_component_ref): Make "comps" const.
271
2c5b1849
SM
2722020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
273
274 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
275
e8b2f0d9
TT
2762020-11-13 Tom Tromey <tom@tromey.com>
277
278 * c-lang.c (convert_ucn, convert_octal, convert_hex)
279 (convert_escape, parse_one_string): Constify.
280
25f4c262
KS
2812020-11-13 Keith Seitz <keiths@redhat.com>
282
283 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
284 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
285 outside of ELF segments" warning for debugin
286
9d3ab915
KS
2872020-11-13 Keith Seitz <keiths@redhat.com>
288
289 PR gdb/23034
290 * elfread.c (elf_symfile_segments): Output a BFD file name
291 for the "Loadable section ... outside of ELF segments" warning.
292
9ecab40c
SM
2932020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
294
295 PR gdb/26835
296 * arm-tdep.c (class arm_instruction_reader): New.
297 (target_arm_instruction_reader): New.
298 (arm_analyze_prologue): Add instruction reader parameter and use
299 it. Use arm_expand_immediate.
300 (class target_arm_instruction_reader): Adjust.
301 (arm_skip_prologue): Adjust.
302 (arm_expand_immediate): New.
303 (arm_scan_prologue): Adjust.
304 (arm_analyze_prologue_test): New.
305 (class test_arm_instruction_reader): New.
306
5a7cf527
AB
3072020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
308
309 * f-lang.c (fortran_argument_convert): Add declaration. Add
310 header comment, taken from f-lang.h. Make static.
311 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
312 (fortran_argument_convert): Delete declaration.
313
7bea47f0
AB
3142020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
315
316 * ada-exp.y (find_primitive_type): Make parameter const.
317 * ada-lang.c (enum ada_primitive_types): Delete.
318 (ada_language::language_arch_info): Update.
319 * c-lang.c (enum c_primitive_types): Delete.
320 (c_language_arch_info): Update.
321 (enum cplus_primitive_types): Delete.
322 (cplus_language::language_arch_info): Update.
323 * d-lang.c (enum d_primitive_types): Delete.
324 (d_language::language_arch_info): Update.
325 * f-lang.c (enum f_primitive_types): Delete.
326 (f_language::language_arch_info): Update.
327 * go-lang.c (enum go_primitive_types): Delete.
328 (go_language::language_arch_info): Update.
329 * language.c (auto_or_unknown_language::language_arch_info):
330 Update.
331 (language_gdbarch_post_init): Use obstack_new, use array indexing.
332 (language_string_char_type): Add header comment, call function in
333 language_arch_info.
334 (language_bool_type): Likewise
335 (language_arch_info::bool_type): Define.
336 (language_lookup_primitive_type_1): Delete.
337 (language_lookup_primitive_type): Rewrite as a templated function
338 to call function in language_arch_info, then instantiate twice.
339 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
340 (language_arch_info::lookup_primitive_type_and_symbol): Define.
341 (language_arch_info::lookup_primitive_type): Define twice with
342 different signatures.
343 (language_arch_info::lookup_primitive_type_as_symbol): Define.
344 (language_lookup_primitive_type_as_symbol): Rewrite to call a
345 member function in language_arch_info.
346 * language.h (language_arch_info): Complete rewrite.
347 (language_lookup_primitive_type): Make templated.
348 * m2-lang.c (enum m2_primitive_types): Delete.
349 (m2_language::language_arch_info): Update.
350 * opencl-lang.c (OCL_P_TYPE): Delete.
351 (enum opencl_primitive_types): Delete.
352 (opencl_type_data): Delete.
353 (builtin_opencl_type): Delete.
354 (lookup_opencl_vector_type): Update.
355 (opencl_language::language_arch_info): Update, lots of content
356 moved from...
357 (build_opencl_types): ...here. This function is now deleted.
358 (_initialize_opencl_language): Delete.
359 * p-lang.c (enum pascal_primitive_types): Delete.
360 (pascal_language::language_arch_info): Update.
361 * rust-lang.c (enum rust_primitive_types): Delete.
362 (rust_language::language_arch_info): Update.
363
bf6e5d01
SM
3642020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
365
366 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
367 dwarf2_queue_guard.
368
1350c3b4
SM
3692020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
370
371 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
372 comment.
373
6f738b01
SM
3742020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * dwarf2/read.c (dwarf_read_debug_printf,
377 dwarf_read_debug_printf_v): New macros, use throughout the file.
378
10c19fad
SV
3792020-11-12 Shahab Vahedi <shahab@synopsys.com>
380
381 * arc-linux-tdep.c (collect_register): Populate "eret" by
382 "pc" value from the regcache when asked for "pc" value.
383
1f2624a3
TT
3842020-11-12 Tom Tromey <tom@tromey.com>
385
386 PR rust/26799:
387 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
388 exist.
389
ab33b152
AB
3902020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
391
392 * features/Makefile (XMLTOC): Add rx.xml.
393 (FEATURE_XMLFILES): Remove rx.xml.
394 (FEATURE_CFILES rule): Pass '-single-feature' flag.
395 * features/rx.c: Regenerate.
396 * features/rx.xml: Wrap in `target` tags, and reindent.
397 * target-descriptions.c (struct maint_print_c_tdesc_options): New
398 structure.
399 (maint_print_c_tdesc_opt_def): New typedef.
400 (maint_print_c_tdesc_opt_defs): New static global.
401 (make_maint_print_c_tdesc_options_def_group): New function.
402 (maint_print_c_tdesc_cmd): Make use of command line flags, only
403 print single feature C file for target descriptions containing a
404 single feature.
405 (maint_print_c_tdesc_cmd_completer): New function.
406 (_initialize_target_descriptions): Update call to register command
407 completer, and include command line flag in help text.
408
550820e1
AB
4092020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
410
411 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
412 numbers.
413 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
414 enum values.
415
baf20f76
TT
4162020-11-10 Tom Tromey <tom@tromey.com>
417
418 * value.h (internalvar_name): Update.
419 * value.c (internalvar_name): Make return type const.
420
caaece0e
TT
4212020-11-10 Tom Tromey <tom@tromey.com>
422
423 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
424 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
425 const.
426
8e20b4be
TT
4272020-11-10 Tom Tromey <tom@tromey.com>
428
429 * objc-lang.h (value_nsstring): Update.
430 * objc-lang.c (value_nsstring): Make "ptr" const.
431
86775fab
AB
4322020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
433
434 * expprint.c (print_subexp_funcall): Increment expression position
435 after reading argument count.
436 * f-lang.c (print_subexp_f): Skip over opcode before calling
437 common function.
438 (dump_subexp_body_f): Likewise.
439
3fed4c0b
RG
4402020-11-06 Romain Geissler <romain.geissler@amadeus.com>
441
442 PR python/26832
443 * configure: Regenerate.
444 * configure.ac: Check for python modules ctypes instead of
445 itertools.
446
ac3d4064
PA
4472020-11-06 Pedro Alves <pedro@palves.net>
448
449 * macroexp.c (struct macro_buffer): Split in two classes. Add
450 uses adjusted.
451 (struct shared_macro_buffer): New, factored out from struct
452 macro_buffer.
453 (struct growable_macro_buffer): New, factored out from struct
454 macro_buffer.
455 (set_token, get_comment, get_identifier, get_pp_number)
456 (get_character_constant, get_string_literal, get_punctuator)
457 (get_next_token_for_substitution): Constify parameters.
458 (substitute_args): Constify locals.
459
606decb2
TT
4602020-11-05 Tom Tromey <tom@tromey.com>
461
462 * dwarf2/read.c (read_cutu_die_from_dwo)
463 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
464 (build_type_psymtabs_1): Update.
465 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
466 parameter.
467 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
468 Don't read section. Add assert.
469
9c91c725
TT
4702020-11-04 Tom Tromey <tromey@adacore.com>
471
472 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
473
8d9fd3a1
TT
4742020-11-04 Tom Tromey <tromey@adacore.com>
475
476 * ada-typeprint.c (ada_print_type): Handle __T types.
477
d8f62e84
TT
4782020-11-04 Tom Tromey <tromey@adacore.com>
479
480 * dwarf2/read.c (add_partial_symbol, process_die):
481 Handle DW_TAG_array_type.
482 (is_type_tag_for_partial): Add "lang" parameter.
483 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
484
7ff5b937
TT
4852020-11-04 Tom Tromey <tromey@adacore.com>
486
487 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
488
10f6a3ad
TT
4892020-11-04 Tom Tromey <tromey@adacore.com>
490
491 * dwarf2/read.c (read_array_type): Only apply stride to innermost
492 array.
493
b72795a8
TT
4942020-11-04 Tom Tromey <tromey@adacore.com>
495
496 * gdbtypes.c (update_static_array_size): Handle bit stride.
497
24aa1b02
TT
4982020-11-04 Tom Tromey <tromey@adacore.com>
499
500 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
501
c9a28cbe
TT
5022020-11-04 Tom Tromey <tromey@adacore.com>
503
504 * ada-lang.c (ada_is_any_packed_array_type): New function.
505 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
506
57567375
TT
5072020-11-04 Tom Tromey <tromey@adacore.com>
508
509 * dwarf2/read.c (recognize_bound_expression)
510 (quirk_ada_thick_pointer): New functions.
511 (read_array_type): Call quirk_ada_thick_pointer.
512 (set_die_type): Add "skip_data_location" parameter.
513 (quirk_ada_thick_pointer): New function.
514 (process_structure_scope): Call quirk_ada_thick_pointer.
515 * ada-lang.c (ada_is_unconstrained_packed_array_type)
516 (decode_packed_array_bitsize): Handle thick pointers without
517 parallel types.
518 (ada_is_gnat_encoded_packed_array_type): Rename from
519 ada_is_packed_array_type.
520 (ada_is_constrained_packed_array_type): Update.
521 * ada-valprint.c (ada_val_print_gnat_array): Remove.
522 (ada_value_print_1): Use ada_get_decoded_value.
523
a7400e44
TT
5242020-11-04 Tom Tromey <tromey@adacore.com>
525
526 * ada-lang.c (recursively_update_array_bitsize): New function.
527 (decode_constrained_packed_array_type): Call it.
528
75fd6a26
TT
5292020-11-04 Tom Tromey <tromey@adacore.com>
530
531 * ada-lang.c (to_fixed_array_type): Error if
532 decode_constrained_packed_array_type returns NULL.
533
93f9561e
TT
5342020-11-04 Tom Tromey <tromey@adacore.com>
535
536 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
537
257e02d8
TT
5382020-11-02 Tom Tromey <tromey@adacore.com>
539
540 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
541 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
542 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
543 * amd64-ravenscar-thread.c: New file.
544 * amd64-ravenscar-thread.h: New file.
545 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
546 * configure.tgt (amd64_tobjs): Add ravenscar objects.
547
74d877e5
AB
5482020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
549
550 * main.c (execute_cmdargs): New function.
551 (captured_main_1): Make use of execute_cmdargs.
552
64aaad63
AB
5532020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
554
555 * NEWS: Mention changes to config file search path.
556 * main.c
557
5b3d3560
TT
5582020-11-02 Tom Tromey <tromey@adacore.com>
559
560 * python/python.c: Consolidate two HAVE_PYTHON blocks.
561 (python_GdbModuleDef): Move earlier. Now static.
562 (do_start_initialization): Consolidate some IS_PY3K blocks.
563
dda83cd7
SM
5642020-11-02 Simon Marchi <simon.marchi@efficios.com>
565
566 * aarch64-linux-tdep.c: Fix indentation.
567 * aarch64-ravenscar-thread.c: Fix indentation.
568 * aarch64-tdep.c: Fix indentation.
569 * aarch64-tdep.h: Fix indentation.
570 * ada-lang.c: Fix indentation.
571 * ada-lang.h: Fix indentation.
572 * ada-tasks.c: Fix indentation.
573 * ada-typeprint.c: Fix indentation.
574 * ada-valprint.c: Fix indentation.
575 * ada-varobj.c: Fix indentation.
576 * addrmap.c: Fix indentation.
577 * addrmap.h: Fix indentation.
578 * agent.c: Fix indentation.
579 * aix-thread.c: Fix indentation.
580 * alpha-bsd-nat.c: Fix indentation.
581 * alpha-linux-tdep.c: Fix indentation.
582 * alpha-mdebug-tdep.c: Fix indentation.
583 * alpha-nbsd-tdep.c: Fix indentation.
584 * alpha-obsd-tdep.c: Fix indentation.
585 * alpha-tdep.c: Fix indentation.
586 * amd64-bsd-nat.c: Fix indentation.
587 * amd64-darwin-tdep.c: Fix indentation.
588 * amd64-linux-nat.c: Fix indentation.
589 * amd64-linux-tdep.c: Fix indentation.
590 * amd64-nat.c: Fix indentation.
591 * amd64-obsd-tdep.c: Fix indentation.
592 * amd64-tdep.c: Fix indentation.
593 * amd64-windows-tdep.c: Fix indentation.
594 * annotate.c: Fix indentation.
595 * arc-tdep.c: Fix indentation.
596 * arch-utils.c: Fix indentation.
597 * arch/arm-get-next-pcs.c: Fix indentation.
598 * arch/arm.c: Fix indentation.
599 * arm-linux-nat.c: Fix indentation.
600 * arm-linux-tdep.c: Fix indentation.
601 * arm-nbsd-tdep.c: Fix indentation.
602 * arm-pikeos-tdep.c: Fix indentation.
603 * arm-tdep.c: Fix indentation.
604 * arm-tdep.h: Fix indentation.
605 * arm-wince-tdep.c: Fix indentation.
606 * auto-load.c: Fix indentation.
607 * auxv.c: Fix indentation.
608 * avr-tdep.c: Fix indentation.
609 * ax-gdb.c: Fix indentation.
610 * ax-general.c: Fix indentation.
611 * bfin-linux-tdep.c: Fix indentation.
612 * block.c: Fix indentation.
613 * block.h: Fix indentation.
614 * blockframe.c: Fix indentation.
615 * bpf-tdep.c: Fix indentation.
616 * break-catch-sig.c: Fix indentation.
617 * break-catch-syscall.c: Fix indentation.
618 * break-catch-throw.c: Fix indentation.
619 * breakpoint.c: Fix indentation.
620 * breakpoint.h: Fix indentation.
621 * bsd-uthread.c: Fix indentation.
622 * btrace.c: Fix indentation.
623 * build-id.c: Fix indentation.
624 * buildsym-legacy.h: Fix indentation.
625 * buildsym.c: Fix indentation.
626 * c-typeprint.c: Fix indentation.
627 * c-valprint.c: Fix indentation.
628 * c-varobj.c: Fix indentation.
629 * charset.c: Fix indentation.
630 * cli/cli-cmds.c: Fix indentation.
631 * cli/cli-decode.c: Fix indentation.
632 * cli/cli-decode.h: Fix indentation.
633 * cli/cli-script.c: Fix indentation.
634 * cli/cli-setshow.c: Fix indentation.
635 * coff-pe-read.c: Fix indentation.
636 * coffread.c: Fix indentation.
637 * compile/compile-cplus-types.c: Fix indentation.
638 * compile/compile-object-load.c: Fix indentation.
639 * compile/compile-object-run.c: Fix indentation.
640 * completer.c: Fix indentation.
641 * corefile.c: Fix indentation.
642 * corelow.c: Fix indentation.
643 * cp-abi.h: Fix indentation.
644 * cp-namespace.c: Fix indentation.
645 * cp-support.c: Fix indentation.
646 * cp-valprint.c: Fix indentation.
647 * cris-linux-tdep.c: Fix indentation.
648 * cris-tdep.c: Fix indentation.
649 * darwin-nat-info.c: Fix indentation.
650 * darwin-nat.c: Fix indentation.
651 * darwin-nat.h: Fix indentation.
652 * dbxread.c: Fix indentation.
653 * dcache.c: Fix indentation.
654 * disasm.c: Fix indentation.
655 * dtrace-probe.c: Fix indentation.
656 * dwarf2/abbrev.c: Fix indentation.
657 * dwarf2/attribute.c: Fix indentation.
658 * dwarf2/expr.c: Fix indentation.
659 * dwarf2/frame.c: Fix indentation.
660 * dwarf2/index-cache.c: Fix indentation.
661 * dwarf2/index-write.c: Fix indentation.
662 * dwarf2/line-header.c: Fix indentation.
663 * dwarf2/loc.c: Fix indentation.
664 * dwarf2/macro.c: Fix indentation.
665 * dwarf2/read.c: Fix indentation.
666 * dwarf2/read.h: Fix indentation.
667 * elfread.c: Fix indentation.
668 * eval.c: Fix indentation.
669 * event-top.c: Fix indentation.
670 * exec.c: Fix indentation.
671 * exec.h: Fix indentation.
672 * expprint.c: Fix indentation.
673 * f-lang.c: Fix indentation.
674 * f-typeprint.c: Fix indentation.
675 * f-valprint.c: Fix indentation.
676 * fbsd-nat.c: Fix indentation.
677 * fbsd-tdep.c: Fix indentation.
678 * findvar.c: Fix indentation.
679 * fork-child.c: Fix indentation.
680 * frame-unwind.c: Fix indentation.
681 * frame-unwind.h: Fix indentation.
682 * frame.c: Fix indentation.
683 * frv-linux-tdep.c: Fix indentation.
684 * frv-tdep.c: Fix indentation.
685 * frv-tdep.h: Fix indentation.
686 * ft32-tdep.c: Fix indentation.
687 * gcore.c: Fix indentation.
688 * gdb_bfd.c: Fix indentation.
689 * gdbarch.sh: Fix indentation.
690 * gdbarch.c: Re-generate
691 * gdbarch.h: Re-generate.
692 * gdbcore.h: Fix indentation.
693 * gdbthread.h: Fix indentation.
694 * gdbtypes.c: Fix indentation.
695 * gdbtypes.h: Fix indentation.
696 * glibc-tdep.c: Fix indentation.
697 * gnu-nat.c: Fix indentation.
698 * gnu-nat.h: Fix indentation.
699 * gnu-v2-abi.c: Fix indentation.
700 * gnu-v3-abi.c: Fix indentation.
701 * go32-nat.c: Fix indentation.
702 * guile/guile-internal.h: Fix indentation.
703 * guile/scm-cmd.c: Fix indentation.
704 * guile/scm-frame.c: Fix indentation.
705 * guile/scm-iterator.c: Fix indentation.
706 * guile/scm-math.c: Fix indentation.
707 * guile/scm-ports.c: Fix indentation.
708 * guile/scm-pretty-print.c: Fix indentation.
709 * guile/scm-value.c: Fix indentation.
710 * h8300-tdep.c: Fix indentation.
711 * hppa-linux-nat.c: Fix indentation.
712 * hppa-linux-tdep.c: Fix indentation.
713 * hppa-nbsd-nat.c: Fix indentation.
714 * hppa-nbsd-tdep.c: Fix indentation.
715 * hppa-obsd-nat.c: Fix indentation.
716 * hppa-tdep.c: Fix indentation.
717 * hppa-tdep.h: Fix indentation.
718 * i386-bsd-nat.c: Fix indentation.
719 * i386-darwin-nat.c: Fix indentation.
720 * i386-darwin-tdep.c: Fix indentation.
721 * i386-dicos-tdep.c: Fix indentation.
722 * i386-gnu-nat.c: Fix indentation.
723 * i386-linux-nat.c: Fix indentation.
724 * i386-linux-tdep.c: Fix indentation.
725 * i386-nto-tdep.c: Fix indentation.
726 * i386-obsd-tdep.c: Fix indentation.
727 * i386-sol2-nat.c: Fix indentation.
728 * i386-tdep.c: Fix indentation.
729 * i386-tdep.h: Fix indentation.
730 * i386-windows-tdep.c: Fix indentation.
731 * i387-tdep.c: Fix indentation.
732 * i387-tdep.h: Fix indentation.
733 * ia64-libunwind-tdep.c: Fix indentation.
734 * ia64-libunwind-tdep.h: Fix indentation.
735 * ia64-linux-nat.c: Fix indentation.
736 * ia64-linux-tdep.c: Fix indentation.
737 * ia64-tdep.c: Fix indentation.
738 * ia64-tdep.h: Fix indentation.
739 * ia64-vms-tdep.c: Fix indentation.
740 * infcall.c: Fix indentation.
741 * infcmd.c: Fix indentation.
742 * inferior.c: Fix indentation.
743 * infrun.c: Fix indentation.
744 * iq2000-tdep.c: Fix indentation.
745 * language.c: Fix indentation.
746 * linespec.c: Fix indentation.
747 * linux-fork.c: Fix indentation.
748 * linux-nat.c: Fix indentation.
749 * linux-tdep.c: Fix indentation.
750 * linux-thread-db.c: Fix indentation.
751 * lm32-tdep.c: Fix indentation.
752 * m2-lang.c: Fix indentation.
753 * m2-typeprint.c: Fix indentation.
754 * m2-valprint.c: Fix indentation.
755 * m32c-tdep.c: Fix indentation.
756 * m32r-linux-tdep.c: Fix indentation.
757 * m32r-tdep.c: Fix indentation.
758 * m68hc11-tdep.c: Fix indentation.
759 * m68k-bsd-nat.c: Fix indentation.
760 * m68k-linux-nat.c: Fix indentation.
761 * m68k-linux-tdep.c: Fix indentation.
762 * m68k-tdep.c: Fix indentation.
763 * machoread.c: Fix indentation.
764 * macrocmd.c: Fix indentation.
765 * macroexp.c: Fix indentation.
766 * macroscope.c: Fix indentation.
767 * macrotab.c: Fix indentation.
768 * macrotab.h: Fix indentation.
769 * main.c: Fix indentation.
770 * mdebugread.c: Fix indentation.
771 * mep-tdep.c: Fix indentation.
772 * mi/mi-cmd-catch.c: Fix indentation.
773 * mi/mi-cmd-disas.c: Fix indentation.
774 * mi/mi-cmd-env.c: Fix indentation.
775 * mi/mi-cmd-stack.c: Fix indentation.
776 * mi/mi-cmd-var.c: Fix indentation.
777 * mi/mi-cmds.c: Fix indentation.
778 * mi/mi-main.c: Fix indentation.
779 * mi/mi-parse.c: Fix indentation.
780 * microblaze-tdep.c: Fix indentation.
781 * minidebug.c: Fix indentation.
782 * minsyms.c: Fix indentation.
783 * mips-linux-nat.c: Fix indentation.
784 * mips-linux-tdep.c: Fix indentation.
785 * mips-nbsd-tdep.c: Fix indentation.
786 * mips-tdep.c: Fix indentation.
787 * mn10300-linux-tdep.c: Fix indentation.
788 * mn10300-tdep.c: Fix indentation.
789 * moxie-tdep.c: Fix indentation.
790 * msp430-tdep.c: Fix indentation.
791 * namespace.h: Fix indentation.
792 * nat/fork-inferior.c: Fix indentation.
793 * nat/gdb_ptrace.h: Fix indentation.
794 * nat/linux-namespaces.c: Fix indentation.
795 * nat/linux-osdata.c: Fix indentation.
796 * nat/netbsd-nat.c: Fix indentation.
797 * nat/x86-dregs.c: Fix indentation.
798 * nbsd-nat.c: Fix indentation.
799 * nbsd-tdep.c: Fix indentation.
800 * nios2-linux-tdep.c: Fix indentation.
801 * nios2-tdep.c: Fix indentation.
802 * nto-procfs.c: Fix indentation.
803 * nto-tdep.c: Fix indentation.
804 * objfiles.c: Fix indentation.
805 * objfiles.h: Fix indentation.
806 * opencl-lang.c: Fix indentation.
807 * or1k-tdep.c: Fix indentation.
808 * osabi.c: Fix indentation.
809 * osabi.h: Fix indentation.
810 * osdata.c: Fix indentation.
811 * p-lang.c: Fix indentation.
812 * p-typeprint.c: Fix indentation.
813 * p-valprint.c: Fix indentation.
814 * parse.c: Fix indentation.
815 * ppc-linux-nat.c: Fix indentation.
816 * ppc-linux-tdep.c: Fix indentation.
817 * ppc-nbsd-nat.c: Fix indentation.
818 * ppc-nbsd-tdep.c: Fix indentation.
819 * ppc-obsd-nat.c: Fix indentation.
820 * ppc-ravenscar-thread.c: Fix indentation.
821 * ppc-sysv-tdep.c: Fix indentation.
822 * ppc64-tdep.c: Fix indentation.
823 * printcmd.c: Fix indentation.
824 * proc-api.c: Fix indentation.
825 * producer.c: Fix indentation.
826 * producer.h: Fix indentation.
827 * prologue-value.c: Fix indentation.
828 * prologue-value.h: Fix indentation.
829 * psymtab.c: Fix indentation.
830 * python/py-arch.c: Fix indentation.
831 * python/py-bpevent.c: Fix indentation.
832 * python/py-event.c: Fix indentation.
833 * python/py-event.h: Fix indentation.
834 * python/py-finishbreakpoint.c: Fix indentation.
835 * python/py-frame.c: Fix indentation.
836 * python/py-framefilter.c: Fix indentation.
837 * python/py-inferior.c: Fix indentation.
838 * python/py-infthread.c: Fix indentation.
839 * python/py-objfile.c: Fix indentation.
840 * python/py-prettyprint.c: Fix indentation.
841 * python/py-registers.c: Fix indentation.
842 * python/py-signalevent.c: Fix indentation.
843 * python/py-stopevent.c: Fix indentation.
844 * python/py-stopevent.h: Fix indentation.
845 * python/py-threadevent.c: Fix indentation.
846 * python/py-tui.c: Fix indentation.
847 * python/py-unwind.c: Fix indentation.
848 * python/py-value.c: Fix indentation.
849 * python/py-xmethods.c: Fix indentation.
850 * python/python-internal.h: Fix indentation.
851 * python/python.c: Fix indentation.
852 * ravenscar-thread.c: Fix indentation.
853 * record-btrace.c: Fix indentation.
854 * record-full.c: Fix indentation.
855 * record.c: Fix indentation.
856 * reggroups.c: Fix indentation.
857 * regset.h: Fix indentation.
858 * remote-fileio.c: Fix indentation.
859 * remote.c: Fix indentation.
860 * reverse.c: Fix indentation.
861 * riscv-linux-tdep.c: Fix indentation.
862 * riscv-ravenscar-thread.c: Fix indentation.
863 * riscv-tdep.c: Fix indentation.
864 * rl78-tdep.c: Fix indentation.
865 * rs6000-aix-tdep.c: Fix indentation.
866 * rs6000-lynx178-tdep.c: Fix indentation.
867 * rs6000-nat.c: Fix indentation.
868 * rs6000-tdep.c: Fix indentation.
869 * rust-lang.c: Fix indentation.
870 * rx-tdep.c: Fix indentation.
871 * s12z-tdep.c: Fix indentation.
872 * s390-linux-tdep.c: Fix indentation.
873 * score-tdep.c: Fix indentation.
874 * ser-base.c: Fix indentation.
875 * ser-mingw.c: Fix indentation.
876 * ser-uds.c: Fix indentation.
877 * ser-unix.c: Fix indentation.
878 * serial.c: Fix indentation.
879 * sh-linux-tdep.c: Fix indentation.
880 * sh-nbsd-tdep.c: Fix indentation.
881 * sh-tdep.c: Fix indentation.
882 * skip.c: Fix indentation.
883 * sol-thread.c: Fix indentation.
884 * solib-aix.c: Fix indentation.
885 * solib-darwin.c: Fix indentation.
886 * solib-frv.c: Fix indentation.
887 * solib-svr4.c: Fix indentation.
888 * solib.c: Fix indentation.
889 * source.c: Fix indentation.
890 * sparc-linux-tdep.c: Fix indentation.
891 * sparc-nbsd-tdep.c: Fix indentation.
892 * sparc-obsd-tdep.c: Fix indentation.
893 * sparc-ravenscar-thread.c: Fix indentation.
894 * sparc-tdep.c: Fix indentation.
895 * sparc64-linux-tdep.c: Fix indentation.
896 * sparc64-nbsd-tdep.c: Fix indentation.
897 * sparc64-obsd-tdep.c: Fix indentation.
898 * sparc64-tdep.c: Fix indentation.
899 * stabsread.c: Fix indentation.
900 * stack.c: Fix indentation.
901 * stap-probe.c: Fix indentation.
902 * stubs/ia64vms-stub.c: Fix indentation.
903 * stubs/m32r-stub.c: Fix indentation.
904 * stubs/m68k-stub.c: Fix indentation.
905 * stubs/sh-stub.c: Fix indentation.
906 * stubs/sparc-stub.c: Fix indentation.
907 * symfile-mem.c: Fix indentation.
908 * symfile.c: Fix indentation.
909 * symfile.h: Fix indentation.
910 * symmisc.c: Fix indentation.
911 * symtab.c: Fix indentation.
912 * symtab.h: Fix indentation.
913 * target-float.c: Fix indentation.
914 * target.c: Fix indentation.
915 * target.h: Fix indentation.
916 * tic6x-tdep.c: Fix indentation.
917 * tilegx-linux-tdep.c: Fix indentation.
918 * tilegx-tdep.c: Fix indentation.
919 * top.c: Fix indentation.
920 * tracefile-tfile.c: Fix indentation.
921 * tracepoint.c: Fix indentation.
922 * tui/tui-disasm.c: Fix indentation.
923 * tui/tui-io.c: Fix indentation.
924 * tui/tui-regs.c: Fix indentation.
925 * tui/tui-stack.c: Fix indentation.
926 * tui/tui-win.c: Fix indentation.
927 * tui/tui-winsource.c: Fix indentation.
928 * tui/tui.c: Fix indentation.
929 * typeprint.c: Fix indentation.
930 * ui-out.h: Fix indentation.
931 * unittests/copy_bitwise-selftests.c: Fix indentation.
932 * unittests/memory-map-selftests.c: Fix indentation.
933 * utils.c: Fix indentation.
934 * v850-tdep.c: Fix indentation.
935 * valarith.c: Fix indentation.
936 * valops.c: Fix indentation.
937 * valprint.c: Fix indentation.
938 * valprint.h: Fix indentation.
939 * value.c: Fix indentation.
940 * value.h: Fix indentation.
941 * varobj.c: Fix indentation.
942 * vax-tdep.c: Fix indentation.
943 * windows-nat.c: Fix indentation.
944 * windows-tdep.c: Fix indentation.
945 * xcoffread.c: Fix indentation.
946 * xml-syscall.c: Fix indentation.
947 * xml-tdesc.c: Fix indentation.
948 * xstormy16-tdep.c: Fix indentation.
949 * xtensa-config.c: Fix indentation.
950 * xtensa-linux-nat.c: Fix indentation.
951 * xtensa-linux-tdep.c: Fix indentation.
952 * xtensa-tdep.c: Fix indentation.
953
e1f57067
AB
9542020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
955 Craig Blackmore <craig.blackmore@embecosm.com>
956
957 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
958 as an unsigned value.
959
ae7754b2
TT
9602020-11-01 Tom Tromey <tom@tromey.com>
961
962 * dbxread.c (dbx_end_psymtab): Update.
963 * dwarf2/read.c (process_psymtab_comp_unit_reader)
964 (build_type_psymtabs_reader): Update.
965 * xcoffread.c (xcoff_end_psymtab): Update.
966 * ctfread.c (scan_partial_symbols): Update.
967 * psymtab.c (sort_pst_symbols): Remove.
968 (partial_symtab::end): Rename from end_psymtab_common. Inline
969 sort_pst_symbols.
970 * psympriv.h (struct partial_symtab) <end>: New method.
971 (end_psymtab_common): Don't declare.
972
0684bb51
TT
9732020-11-01 Tom Tromey <tom@tromey.com>
974
975 * symmisc.c (count_psyms): New function.
976 (print_objfile_statistics): Use it.
977 * psymtab.c (append_psymbol_to_list): Remove.
978 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
979 * objfiles.h (struct objstats) <n_psyms>: Remove.
980
089002bb
TT
9812020-11-01 Tom Tromey <tom@tromey.com>
982
983 * dbxread.c (dbx_end_psymtab): Update.
984 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
985 (build_type_psymtabs_reader): Update.
986 * xcoffread.c (xcoff_end_psymtab): Update.
987 * ctfread.c (scan_partial_symbols): Update.
988 * psympriv.h (end_psymtab_common): Update.
989 * psymtab.c (end_psymtab_common): Remove objfile parameter.
990 (sort_pst_symbols): Likewise.
991
525454d6
TT
9922020-11-01 Tom Tromey <tom@tromey.com>
993
994 * dbxread.c (dbx_symfile_read): Update.
995 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
996 * xcoffread.c (xcoff_initial_scan): Update.
997 * psympriv.h (init_psymbol_list): Don't declare.
998 * psymtab.c (init_psymbol_list): Remove.
999
60bd1d53
JB
10002020-11-01 Joel Brobecker <brobecker@adacore.com>
1001
1002 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1003 gnat_encoded_fixed_type_info. Update all callers.
1004
db99d0d0
JB
10052020-11-01 Joel Brobecker <brobecker@adacore.com>
1006
1007 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1008 line too long.
1009
75f24e86
JB
10102020-11-01 Joel Brobecker <brobecker@adacore.com>
1011
1012 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1013 cast_from_fixed. Update all callers.
1014 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1015 Update all callers.
1016 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1017 Update all callers.
1018 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1019 ada_scaling_factor.
1020 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1021 to print_gnat_encoded_fixed_point_type.
1022 * ada-valprint.c: Likewise.
1023
4f0469cd
AB
10242020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1025
1026 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1027 (debug_prefixed_printf): Add check of debug_displaced flag.
1028 * linux-nat.c (linux_nat_debug_printf): Add check of
1029 debug_linux_nat flag.
1030
17417fb0
SM
10312020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1032
1033 * infrun.c (infrun_debug_printf_1): Remove.
1034 (displaced_debug_printf_1): Remove.
1035 (stop_all_threads): Use debug_prefixed_printf.
1036 * infrun.h (infrun_debug_printf_1): Remove.
1037 (infrun_debug_printf): Use debug_prefixed_printf.
1038 (displaced_debug_printf_1): Remove.
1039 (displaced_debug_printf): Use debug_prefixed_printf.
1040 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1041 (linux_nat_debug_printf): Use debug_prefixed_printf.
1042
ad6dba1c
SM
10432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1044
1045 * configure: Re-generate.
1046 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1047 AC_LANG_PROGRAM.
1048
b6fb30ed
SM
10492020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1050
1051 * configure: Re-generate.
1052
5164c117
SM
10532020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1054
1055 * configure: Re-generate.
1056
864ca435
SM
10572020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1058
1059 * configure: Re-generate.
1060
b9442ec1
SM
10612020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1062
1063 * configure: Re-generate.
1064
294f2697
SM
10652020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1066
1067 * acinclude.m4: Modernize.
1068 * configure: Re-generate.
1069
5593a99a
SM
10702020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1071
1072 * configure.ac: Modernize.
1073 * configure: Re-generate.
1074
e41fda1d
SM
10752020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1076
1077 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1078 * configure: Re-generate.
1079 * configure.ac: Remove AM_PROG_CC_STDC.
1080
91e1a0ed
SM
10812020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1082
1083 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1084 AC_CANONICAL_SYSTEM.
1085 * configure: Re-generate.
1086
136821d9
SM
10872020-10-30 Simon Marchi <simon.marchi@efficios.com>
1088
1089 * infrun.h (displaced_debug_printf): New macro. Replace
1090 displaced debug prints throughout to use it.
1091 (displaced_debug_printf_1): New declaration.
1092 (displaced_step_dump_bytes): Return string, remove ui_file
1093 parameter, update all callers.
1094 * infrun.c (displaced_debug_printf_1): New function.
1095 (displaced_step_dump_bytes): Return string, remove ui_file
1096 parameter
1097
aa2045e7
SM
10982020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1099
1100 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1101
b1ec2735
TT
11022020-10-30 Tom Tromey <tromey@adacore.com>
1103
1104 * Makefile.in (stamp-init): Depend on config.status.
1105
b78b3a29
TBA
11062020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1107
1108 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1109
d70bdd3c
PA
11102020-10-30 Pedro Alves <pedro@palves.net>
1111
1112 * thread.c (lookup_selected_frame): Move ...
1113 * frame.c (lookup_selected_frame): ... here.
1114
79952e69
PA
11152020-10-30 Pedro Alves <pedro@palves.net>
1116
1117 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1118 * frame.c
1119 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1120 Use save_selected_frame. Save language as well.
1121 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1122 Use restore_selected_frame, and restore language as well.
1123 (selected_frame_id, selected_frame_level): New.
1124 (selected_frame): Update comments.
1125 (save_selected_frame, restore_selected_frame): New.
1126 (get_selected_frame): Use lookup_selected_frame.
1127 (get_selected_frame_if_set): Delete.
1128 (select_frame): Record selected_frame_level and selected_frame_id.
1129 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1130 fields.
1131 (get_selected_frame): Make 'message' parameter optional.
1132 (get_selected_frame_if_set): Delete declaration.
1133 (select_frame): Update comments.
1134 (save_selected_frame, restore_selected_frame)
1135 (lookup_selected_frame): Declare.
1136 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1137 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1138 New field.
1139 (save_infcall_control_state): Use save_selected_frame.
1140 (restore_selected_frame): Delete.
1141 (restore_infcall_control_state): Use restore_selected_frame.
1142 * stack.c (select_frame_command_core, frame_command_core): Use
1143 get_selected_frame.
1144 * thread.c (restore_selected_frame): Rename to ...
1145 (lookup_selected_frame): ... this and make extern. Select the
1146 current frame if the frame level is -1.
1147 (scoped_restore_current_thread::restore): Also restore the
1148 language.
1149 (scoped_restore_current_thread::~scoped_restore_current_thread):
1150 Don't try/catch.
1151 (scoped_restore_current_thread::scoped_restore_current_thread):
1152 Save the language as well. Use save_selected_frame.
1153
58103c33
SM
11542020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1155
1156 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1157 documentation.
1158 * gdbarch.h: Re-generate.
1159
40a53766
SM
11602020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1161
1162 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1163 parameter.
1164 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1165 Likewise.
1166 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1167 Likewise.
1168 * arch-utils.c (default_displaced_step_hw_singlestep):
1169 Likewise.
1170 * arch-utils.h (default_displaced_step_hw_singlestep):
1171 Likewise.
1172 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1173 Likewise.
1174 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1175 Likewise.
1176 * gdbarch.c: Re-generate.
1177 * gdbarch.h: Re-generate.
1178 * infrun.c (resume_1): Adjust.
1179
8407f91b
TT
11802020-10-29 Tom Tromey <tom@tromey.com>
1181
1182 * progspace.c (program_space::~program_space): Don't call
1183 exec_close.
1184
5008b3b2
TT
11852020-10-29 Tom Tromey <tom@tromey.com>
1186
1187 * exec.c (exec_target::close): Don't change current program
1188 space.
1189
d9eebde0
TT
11902020-10-29 Tom Tromey <tom@tromey.com>
1191
1192 * symfile.c (add_symbol_file_command): Update.
1193 * exec.c (program_space::add_target_sections): Rename.
1194 * symfile-mem.c (symbol_file_add_from_memory): Update.
1195 * progspace.h (struct program_space) <add_target_sections>:
1196 Declare new overload.
1197 * exec.h (add_target_sections_of_objfile): Don't declare.
1198
3769e227
TT
11992020-10-29 Tom Tromey <tom@tromey.com>
1200
1201 * solib.c (solib_map_sections): Update.
1202 * exec.c (program_space::add_target_sections): Now a method.
1203 (exec_file_attach): Update.
1204 * exec.h (add_target_sections): Don't declare.
1205 * progspace.h (struct program_space) <add_target_sections>:
1206 Declare.
1207
2a3f84af
TT
12082020-10-29 Tom Tromey <tom@tromey.com>
1209
1210 * progspace.h (struct program_space) <remove_target_sections>:
1211 Declare.
1212 * exec.c (program_space::remove_target_sections): Now a method.
1213 * exec.h (remove_target_sections): Don't declare.
1214
004eecfd
TT
12152020-10-29 Tom Tromey <tom@tromey.com>
1216
1217 * inferior.c (delete_inferior): Update.
1218 * progspace.c (program_space::empty): Rename from
1219 program_space_empty_p. Return bool.
1220 * progspace.h (struct program_space) <empty>: New method.
1221 (program_space_empty_p): Don't declare.
1222
e39fb971
TT
12232020-10-29 Tom Tromey <tom@tromey.com>
1224
1225 * progspace.c (program_space::~program_space): Don't call
1226 clear_program_space_solib_cache.
1227 (program_space::clear_solib_cache): Rename from
1228 clear_solib_cache.
1229 * solib.c (handle_solib_event): Update.
1230 * progspace.h (struct program_space) <clear_solib_cache>: New
1231 method.
1232 (clear_program_space_solib_cache): Don't declare.
1233
a42d7dd8
TT
12342020-10-29 Tom Tromey <tom@tromey.com>
1235
1236 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1237 * target.c (info_target_command): Update.
1238 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1239 (symbol_file_clear, reread_symbols): Update.
1240 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1241 * stabsread.c (scan_file_globals): Update.
1242 * solib.c (update_solib_list): Update.
1243 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1244 (svr4_fetch_objfile_link_map, enable_break)
1245 (svr4_relocate_main_executable)
1246 (svr4_iterate_over_objfiles_in_search_order): Update.
1247 * solib-frv.c (lm_base, enable_break)
1248 (frv_relocate_main_executable): Update.
1249 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1250 (frv_fetch_objfile_link_map): Update.
1251 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1252 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1253 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1254 * remote.c (remote_target::get_offsets): Update.
1255 (remote_target::start_remote)
1256 (extended_remote_target::post_attach): Update.
1257 * objfiles.c (entry_point_address_query): Update.
1258 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1259 * minsyms.c (get_symbol_leading_char): Update.
1260 * frame.c (inside_main_func): Update.
1261 * progspace.h (symfile_objfile): Remove macro.
1262
19f6550e
TT
12632020-10-29 Tom Tromey <tom@tromey.com>
1264
1265 * exec.c (exec_file_attach): Update.
1266 * progspace.c (program_space::exec_close): Update.
1267 * progspace.h (struct program_space) <ebfd>: Now a
1268 gdb_bfd_ref_ptr.
1269 <set_exec_bfd>: Change argument type.
1270 <exec_bfd>: Update.
1271
7e10abd1
TT
12722020-10-29 Tom Tromey <tom@tromey.com>
1273
1274 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1275 * symfile.c (reread_symbols): Update.
1276 * symfile-mem.c (add_symbol_file_from_memory_command)
1277 (add_vsyscall_page): Update.
1278 * source-cache.c (source_cache::get_plain_source_lines): Update.
1279 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1280 (svr4_current_sos_direct, svr4_exec_displacement)
1281 (svr4_relocate_main_executable): Update.
1282 (svr4_iterate_over_objfiles_in_search_order): Update.
1283 * solib-frv.c (enable_break2, enable_break): Update.
1284 * solib-dsbt.c (lm_base, enable_break): Update.
1285 * solib-darwin.c (find_program_interpreter)
1286 (darwin_solib_create_inferior_hook): Update.
1287 * sol-thread.c (rw_common, ps_pdmodel): Update.
1288 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1289 * remote.c (compare_sections_command)
1290 (remote_target::trace_set_readonly_regions): Update.
1291 * remote-sim.c (get_sim_inferior_data)
1292 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1293 (gdbsim_target_open, gdbsim_target::files_info): Update.
1294 * exec.h (exec_bfd): Remove macro.
1295 * progspace.c (initialize_progspace): Update.
1296 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1297 Update.
1298 * nto-procfs.c (nto_procfs_target::post_attach)
1299 (nto_procfs_target::create_inferior): Update.
1300 * maint.c (maintenance_info_sections): Update.
1301 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1302 Update.
1303 * infcmd.c (post_create_inferior): Update.
1304 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1305 (objfile_find_memory_regions): Update.
1306 * exec.c (validate_exec_file, exec_file_attach)
1307 (exec_read_partial_read_only, print_section_info): Update.
1308 * corelow.c (core_target_open): Update.
1309 * corefile.c (reopen_exec_file, validate_files): Update.
1310 * arm-tdep.c (gdb_print_insn_arm): Update.
1311 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1312 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1313 methods.
1314
b55221ab
TT
13152020-10-29 Tom Tromey <tom@tromey.com>
1316
1317 * progspace.h (current_target_sections): Remove macro.
1318 * solib-svr4.c (scan_dyntag): Update.
1319 * solib-dsbt.c (scan_dyntag): Update.
1320 * exec.c (exec_target::close): Update.
1321 (add_target_sections, add_target_sections_of_objfile)
1322 (remove_target_sections, exec_target::get_section_table)
1323 (exec_target::files_info, set_section_command)
1324 (exec_set_section_address, exec_target::has_memory)
1325 (exec_target::has_memory): Update.
1326
5a36e715
TT
13272020-10-29 Tom Tromey <tom@tromey.com>
1328
1329 * source-cache.c (source_cache::get_plain_source_lines): Use
1330 current_program_space.
1331 * corefile.c (reopen_exec_file): Use current_program_space.
1332 * exec.c (exec_file_attach): Use current_program_space.
1333 * exec.h (exec_bfd_mtime): Remove.
1334
784c8592
TT
13352020-10-29 Tom Tromey <tom@tromey.com>
1336
1337 * gcore.c (default_gcore_mach): Remove.
1338 (create_gcore_bfd): Update.
1339
8a4f1402
TT
13402020-10-29 Tom Tromey <tom@tromey.com>
1341
1342 * progspace.c (program_space::exec_close): New method, from
1343 exec_close in exec.c.
1344 * exec.c (exec_close): Move to progspace.c.
1345 (exec_target::close, exec_file_attach): Update.
1346 * progspace.h (struct program_space) <exec_close>: Declare
1347 method.
1348
c20cb686
TT
13492020-10-29 Tom Tromey <tom@tromey.com>
1350
1351 * progspace.h (struct program_space) <exec_filename>: Rename from
1352 pspace_exec_filename. Now a unique_xmalloc_ptr.
1353 * inferior.c (print_selected_inferior): Update.
1354 (print_inferior): Update.
1355 * mi/mi-main.c (print_one_inferior): Update.
1356 * exec.h (exec_filename): Remove macro.
1357 * corefile.c (get_exec_file): Update.
1358 * exec.c (exec_close): Update.
1359 (exec_file_attach): Update.
1360 * progspace.c (clone_program_space): Update.
1361 (print_program_space): Update.
1362
6be2a9ab
TT
13632020-10-29 Tom Tromey <tom@tromey.com>
1364
1365 * target-section.h (struct target_section): Add constructor.
1366 * exec.c (build_section_table, add_target_sections_of_objfile):
1367 Update.
1368 * corelow.c (core_target::build_file_mappings): Update.
1369
cfaa8f76
TBA
13702020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1371
1372 PR gdb/19318
1373 * inferior.c (detach_inferior_command): Restore the current thread.
1374 (kill_inferior_command): Ditto.
1375
1b00ef06
TV
13762020-10-28 Tom de Vries <tdevries@suse.de>
1377
1378 PR symtab/26772
1379 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1380 map, check it in the "best match" loop.
1381
7f40ce1a
SM
13822020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1383
1384 * m32c-tdep.c: Remove unused includes.
1385
5eb9e3f5
SM
13862020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * xtensa-tdep.c: Remove includes.
1389
b1d4d8d1
TBA
13902020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1391
1392 * breakpoint.c (struct condition_command_opts): New struct.
1393 (condition_command_option_defs): New static global.
1394 (make_condition_command_options_def_group): New function.
1395 (condition_completer): Update to consider the '-force' flag.
1396 (condition_command): Use gdb::option for the '-force' flag.
1397
bd24c5d6
TV
13982020-10-27 Tom de Vries <tdevries@suse.de>
1399
1400 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1401 symbols in section check.
1402
61eb46a4
TV
14032020-10-27 Tom de Vries <tdevries@suse.de>
1404
1405 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1406
733d554a
TBA
14072020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1408
1409 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1410 * breakpoint.c: Update the help text of the 'condition' and 'break'
1411 commands.
1412 (set_breakpoint_condition): Take a new bool parameter
1413 to control whether condition definition should be forced even when
1414 the condition expression is invalid in all of the current locations.
1415 (condition_command): Update the call to 'set_breakpoint_condition'.
1416 (find_condition_and_thread): Take the "-force-condition" flag into
1417 account.
1418 * linespec.c (linespec_keywords): Add "-force-condition" as an
1419 element.
1420 (FORCE_KEYWORD_INDEX): New #define.
1421 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1422 as a keyword.
1423 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1424 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1425 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1426 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1427
b5fa468f
TBA
14282020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1429
1430 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1431 * breakpoint.c (set_breakpoint_location_condition): New function.
1432 (set_breakpoint_condition): Disable a breakpoint location if parsing
1433 the condition string gives an error.
1434 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1435 (build_target_condition_list): Ditto.
1436 (build_target_command_list): Ditto.
1437 (build_bpstat_chain): Ditto.
1438 (print_one_breakpoint_location): Ditto.
1439 (print_one_breakpoint): Ditto.
1440 (breakpoint_1): Ditto.
1441 (bp_location::bp_location): Ditto.
1442 (locations_are_equal): Ditto.
1443 (update_breakpoint_locations): Ditto.
1444 (enable_disable_bp_num_loc): Ditto.
1445 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1446 (find_condition_and_thread_for_sals): New static function.
1447 (create_breakpoint): Call find_condition_and_thread_for_sals.
1448 (location_to_sals): Call find_condition_and_thread_for_sals instead
1449 of find_condition_and_thread.
1450
1c47ec3e
TV
14512020-10-26 Tom de Vries <tdevries@suse.de>
1452
1453 * dwarf2/read.c (process_full_comp_unit): Call
1454 dwarf2_find_base_address.
1455
6390859c
TT
14562020-10-26 Tom Tromey <tromey@adacore.com>
1457
1458 * gdbtypes.c (create_range_type): Revert previous patch. Add
1459 comment.
1460
d744f0f9
PA
14612020-10-26 Pedro Alves <pedro@palves.net>
1462
1463 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1464 (my_waitpid): Use gdb::handle_eintr.
1465
006811bc
SM
14662020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1467
1468 * acinclude.m4: Update ptrace.m4 path.
1469 * ptrace.m4: Moved to gdbsupport.
1470
c75e31a1
SM
14712020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1472
1473 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1474 instead of target_gdbarch.
1475
32495661
SM
14762020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1477
1478 * jit.c (jit_reader_load_command): Pass current inferior.
1479 (jit_inferior_init): Change parameter type to inferior, use it.
1480 (jit_inferior_created): Remove.
1481 (jit_inferior_created_hook): Pass inferior parameter down.
1482 (_initialize_jit): Use jit_inferior_created_hook instead of
1483 jit_inferior_created.
1484 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1485 * infrun.c (follow_exec): Pass inferior to
1486 jit_inferior_created_hook.
1487
3f66685e
SM
14882020-10-24 Simon Marchi <simon.marchi@efficios.com>
1489
1490 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1491 parameter and use it.
1492 (thread_db_inferior_created): Pass inferior argument.
1493
a0ff652f
SM
14942020-10-24 Simon Marchi <simon.marchi@efficios.com>
1495
1496 * aix-thread.c (aix_thread_inferior_created): Add inferior
1497 parameter.
1498 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1499 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1500 * jit.c (jit_inferior_created): Likewise.
1501 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1502 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1503 * observable.h (inferior_created): Likewise.
1504 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1505 * symfile-mem.c (add_vsyscall_page): Likewise.
1506 * infcmd.c (post_create_inferior): Pass inferior argument.
1507
3c67532c
JB
15082020-10-24 Joel Brobecker <brobecker@adacore.com>
1509
1510 GDB 10.1 released.
1511
8747316e
JB
15122020-10-23 Joel Brobecker <brobecker@adacore.com>
1513
1514 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1515 to ada_check_typedef.
1516
1a0ea399
AB
15172020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1518
1519 * f-exp.y (f_parse): Rename to...
1520 (f_language::parser): ...this.
1521 * f-lang.c (f_get_encoding): Rename to...
1522 (f_language::get_encoding): ...this.
1523 (f_op_print_tab): Rename to...
1524 (f_language::op_print_tab): ...this.
1525 (exp_descriptor_f): Rename to...
1526 (f_language::exp_descriptor_tab): ...this.
1527 (class f_language): Moved to f-lang.h.
1528 (f_language::language_arch_info): New function, moved out of class
1529 declaration.
1530 (f_language::search_name_hash): Likewise.
1531 (f_language::lookup_symbol_nonlocal): Likewise.
1532 (f_language::get_symbol_name_matcher_inner): Likewise.
1533 * f-lang.h: Add 'valprint.h' include.
1534 (class f_language): Moved here from f-lang.c.
1535 * f-typeprint.c (f_type_print_args): Delete commented out
1536 declaration.
1537 (f_print_typedef): Rename to...
1538 (f_language::print_typedef): ...this.
1539 (f_print_type): Rename to...
1540 (f_language::print_type): ...this.
1541 (f_type_print_varspec_prefix): Delete declaration and rename to...
1542 (f_language::f_type_print_varspec_prefix): ...this.
1543 (f_type_print_varspec_suffix): Delete declaration and rename to...
1544 (f_language::f_type_print_varspec_suffix): ...this.
1545 (f_type_print_base): Delete declaration and rename to...
1546 (f_language::f_type_print_base): ...this.
1547 * f-valprint.c (f_value_print_inner): Rename to...
1548 (f_language::value_print_inner): ...this.
1549 * parse.c: Delete 'f-lang.h' include.
1550
88cefd9b
AB
15512020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1552
1553 * language.h (language_defn::print_type): Add variable names in
1554 declaration, and update header comment.
1555
5399db93
AB
15562020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1557
1558 * ada-lang.c (ada_language::demangle): Rename to...
1559 (ada_language::demangle_symbol): ...this.
1560 * c-lang.c (cplus_language::demangle): Rename to...
1561 (cplus_language::demangle_symbol): ...this.
1562 * d-lang.c (d_language::demangle): Rename to...
1563 (d_language::demangle_symbol): ...this.
1564 * f-lang.c (f_language::demangle): Rename to...
1565 (f_language::demangle_symbol): ...this.
1566 * go-lang.c (go_language::demangle): Rename to...
1567 (go_language::demangle_symbol): ...this.
1568 * language.c (language_demangle): Update call to demangle_symbol.
1569 (auto_or_unknown_language::demangle): Rename to...
1570 (auto_or_unknown_language::demangle_symbol): ...this.
1571 * language.h (language_defn::demangle): Rename to...
1572 (language_defn::demangle_symbol): ...this.
1573 * objc-lang.c (objc_language::demangle): Rename to...
1574 (objc_language::demangle_symbol): ...this.
1575 * rust-lang.c (rust_language::demangle): Rename to...
1576 (rust_language::demangle_symbol): ...this.
1577
4b2f86ef
AB
15782020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1579
1580 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1581 (iterate_over_file_blocks): Replace use of macro with the macros
1582 definition.
1583
e74b39de
AB
15842020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1585
1586 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1587 * valprint.c (maybe_print_array_index): Replace use of macro with
1588 the macros definition.
1589
00c696a6
AB
15902020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1591
1592 * ada-lang.c (ada_language::print_array_index): Call value_print
1593 directly.
1594 * language.c (language_defn::print_array_index): Likewise.
1595 * language.h (LA_VALUE_PRINT): Delete.
1596 * valprint.c (value_print): Call value_print on the
1597 current_language directly.
1598
d3b67c56
AB
15992020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1600
1601 * language.h (LA_PRINT_TYPEDEF): Delete.
1602 * typeprint.c (typedef_print): Call print_typedef directly on the
1603 current_language object.
1604
790e2a12
AB
16052020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * m2-exp.y (m2_parse): Rename to...
1608 (m2_language::parser): ...this. Update function signature.
1609 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1610 (m2_op_print): Rename to...
1611 (m2_language::op_print_tab): ...this, and make const.
1612 (exp_descriptor_modula2): Rename to...
1613 (m2_language::exp_descriptor_modula2): ...this.
1614 (class m2_language): Move to m2-lang.h.
1615 (m2_language::language_arch_info): New function, moved out of
1616 class declaration.
1617 (m2_language::printchar): New function, body from m2_printchar.
1618 (m2_language::printstr): New function, moved out of class
1619 declaration.
1620 (m2_language::emitchar): Likewise.
1621 * m2-lang.h (m2_parse): Delete declaration.
1622 (m2_print_typedef): Delete declaration.
1623 (m2_value_print_inner): Delete declaration.
1624 (class m2_language): Class declaration moved from m2-lang.c,
1625 larger functions are left in m2-lang.c.
1626 * m2-typeprint.c (m2_print_typedef): Rename to...
1627 (m2_language::print_typedef): ...this, and update function
1628 signature.
1629 * m2-valprint.c (m2_value_print_inner): Rename to...
1630 (m2_language::value_print_inner): ...this, replace use of
1631 LA_PRINT_STRING with a direct call to printstr member function,
1632 and update recursive call.
1633
b01175fc
AB
16342020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1635
1636 * language.c (default_is_string_type_p): Delete, implementation
1637 moved into auto_or_unknown_language::is_string_type_p.
1638 (unk_op_print_tab): Moved into
1639 auto_or_unknown_language::opcode_print_table.
1640 (unknown_language_arch_info): Delete, implementation moved into
1641 auto_or_unknown_language::language_arch_info.
1642 (class auto_or_unknown_language): New class, member functions
1643 copied from unknown_language class, with some updates.
1644 (class unknown_language): Most member functions moved into
1645 auto_or_unknown_language class. Inherit from
1646 auto_or_unknown_language class.
1647 (class auto_language): Inherit from auto_or_unknown_language.
1648 Delete most member functions.
1649
1a97fe8c
HD
16502020-10-22 Hannes Domani <ssbssa@yahoo.de>
1651
1652 * stabsread.c (read_member_functions): Remove gdb_assert.
1653
6b9d0dfd
HD
16542020-10-22 Hannes Domani <ssbssa@yahoo.de>
1655
1656 * gdbtypes.c (init_complex_type): Check target type name.
1657
4b4bb603
SM
16582020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1659
1660 * target-debug.h (target_debug_print_struct_target_ops_p):
1661 Remove.
1662 (target_debug_print_async_callback_ftype_p): Remove.
1663 (target_debug_print_struct_trace_state_variable_p): Remove.
1664 (target_debug_print_struct_traceframe_info_p): Remove.
1665 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1666 (target_debug_print_enum_btrace_format): Remove.
1667 (target_debug_print_enum_info_proc_what): Remove.
1668 (target_debug_print_thread_info_pp): Remove.
1669
24f5300a
SM
16702020-10-22 Simon Marchi <simon.marchi@efficios.com>
1671
1672 * target.h (struct target_ops) <make_corefile_notes>:
1673 Change return type to unique pointer.
1674 * target.c (dummy_make_corefile_notes): Likewise.
1675 * exec.c (struct exec_target) <make_corefile_notes>:
1676 Likewise.
1677 (exec_target::make_corefile_notes): Likewise.
1678 * procfs.c (class procfs_target) <make_corefile_notes>:
1679 Likewise.
1680 (procfs_do_thread_registers): Adjust to unique pointer.
1681 (struct procfs_corefile_thread_data): Add constructor.
1682 <note_data>: Change type to unique pointer.
1683 (procfs_corefile_thread_callback): Adjust to unique pointer.
1684 (procfs_target::make_corefile_notes): Change return type to
1685 unique pointer.
1686 * target-delegates.c: Re-generate.
1687 * gcore.c (write_gcore_file_1): Adjust.
1688 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1689 New.
1690
5fb4027f
TV
16912020-10-22 Tom de Vries <tdevries@suse.de>
1692
1693 * block.c (find_block_in_blockvector): Make sure the returned block
1694 contains pc.
1695
4a636814
SM
16962020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1697
1698 PR gdb/26693
1699 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1700 parameter.
1701 (load_cu): Pass existing CU.
1702 (process_imported_unit_die): Likewise.
1703 (follow_die_offset): Likewise.
1704
1bd57575
LM
17052020-10-22 Luis Machado <luis.machado@linaro.org>
1706
1707 * corelow.c (core_target::xfer_partial): Also check for an empty
1708 m_core_unavailable_mappings vector.
1709
6b4c676c
AB
17102020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1711
1712 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1713 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1714 * f-exp.y (arglist): Allow for a series of subranges.
1715 (subrange): Add cases for subranges with strides.
1716 * f-lang.c (value_f90_subarray): Catch use of array strides and
1717 throw an error.
1718 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1719
f2d8e4c5
AB
17202020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 * expprint.c (print_subexp_standard): Change enum range_type to
1723 range_flag and rename variables to match.
1724 (dump_subexp_body_standard): Likewise.
1725 * expression.h (enum range_type): Rename to...
1726 (enum range_flag): ...this.
1727 (range_types): Rename to...
1728 (range_flags): ...this.
1729 * f-lang.c (value_f90_subarray): Change enum range_type to
1730 range_flag and rename variables to match.
1731 * parse.c (operator_length_standard): Likewise.
1732 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1733 range_type to range_flag.
1734 * rust-lang.c (rust_evaluate_funcall): Likewise.
1735 (rust_range): Likewise.
1736 (rust_compute_range): Likewise.
1737 (rust_subscript): Likewise.
1738
2f1b18db
AB
17392020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1740
1741 * expprint.c (print_subexp_standard): Update to reflect changes to
1742 enum range_type.
1743 (dump_subexp_body_standard): Likewise.
1744 * expression.h (enum range_type): Convert to a bit field enum, and
1745 make the enum unsigned.
1746 * f-exp.y (subrange): Update to reflect changes to enum
1747 range_type.
1748 * f-lang.c (value_f90_subarray): Likewise.
1749 * parse.c (operator_length_standard): Likewise.
1750 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1751 * rust-lang.c (rust_range): Likewise.
1752 (rust_compute_range): Likewise.
1753 (rust_subscript): Likewise.
1754
a46d1843
SM
17552020-10-21 Simon Marchi <simon.marchi@efficios.com>
1756
1757 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1758 (displaced_step_in_progress): Fix comment.
1759
c21f37a8
SM
17602020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1761
1762 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1763 * gdbarch.c: Re-generate.
1764 * gdbarch.h: Re-generate.
1765 * gcore.c (write_gcore_file_1): Adjust.
1766 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1767 constructor.
1768 <note_data>: Change type to unique pointer.
1769 <abort_iteration>: Change type to bool.
1770 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1771 (fbsd_collect_thread_registers): Return void, adjust.
1772 (struct fbsd_corefile_thread_data): Add construtor.
1773 <note_data>: Change type to unique pointer.
1774 (fbsd_corefile_thread): Adjust.
1775 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1776 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1777 to unique pointer, adjust.
1778 (struct linux_collect_regset_section_cb_data): Add constructor.
1779 <note_data>: Change type to unique pointer.
1780 <abort_iteration>: Change type to bool.
1781 (linux_collect_thread_registers): Return void, adjust.
1782 (struct linux_corefile_thread_data): Add constructor.
1783 <note_data>: Change type to unique pointer.
1784 (linux_corefile_thread): Adjust.
1785 (linux_make_corefile_notes): Return unique pointer, adjust.
1786
07fbbd01
SM
17872020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1788
1789 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1790 * gdbarch.c: Re-generate.
1791 * gdbarch.h: Re-generate.
1792 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1793 bool.
1794 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1795 Likewise.
1796 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1797 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1798 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1799 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1800
39535193
SM
18012020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1802
1803 * gdbarch.sh: Make generated predicates return bool.
1804 * gdbarch.c: Re-generate.
1805 * gdbarch.h: Re-generate.
1806
ad523d01
TT
18072020-10-20 Tom Tromey <tom@tromey.com>
1808
1809 * varobj-iter.h (struct varobj_item): Remove typedef.
1810
c4464ade
SM
18112020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1812
1813 * infrun.c (currently_stepping): Change int to bool
1814 (maybe_software_singlestep): Likewise.
1815 (show_stop_on_solib_events): Likewise.
1816 (stepping_past_nonsteppable_watchpoint): Likewise.
1817 (displaced_step_in_progress_any_inferior): Likewise.
1818 (displaced_step_in_progress_thread): Likewise.
1819 (keep_going_stepped_thread): Likewise.
1820 (thread_still_needs_step_over): Likewise.
1821 (start_step_over): Likewise.
1822 (do_target_resume): Likewise.
1823 (resume_1): Likewise.
1824 (clear_proceed_status): Likewise.
1825 (thread_still_needs_step_over_bp): Likewise.
1826 (proceed): Likewise.
1827 (switch_back_to_stepped_thread): Likewise.
1828 (adjust_pc_after_break): Likewise.
1829 (stepped_in_from): Likewise.
1830 (handle_stop_requested): Likewise.
1831 (handle_syscall_event): Likewise.
1832 (handle_no_resumed): Likewise.
1833 (handle_inferior_event): Likewise.
1834 (finish_step_over): Likewise.
1835 (handle_signal_stop): Likewise.
1836 (process_event_stop_test): Likewise.
1837
2eb20436
SM
18382020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1839
1840 * infrun.c (get_displaced_stepping_state): Fix comment.
1841
e0c45ded
AS
18422020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1843
1844 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1845
22cc388e
TT
18462020-10-19 Tom Tromey <tromey@adacore.com>
1847
1848 PR tui/26719
1849 * tui/tui-winsource.h (struct tui_source_window_base)
1850 <refresh_window>: Rename from refresh_pad.
1851 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1852 Rename from refresh_pad.
1853 (tui_source_window_base::show_source_content)
1854 (tui_source_window_base::do_scroll_horizontal): Update.
1855
3c6eb4d4
TBA
18562020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1857
1858 * thread.c (_initialize_thread): Fine-tune the help text of
1859 'info threads'.
1860
26703721
TBA
18612020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1862
1863 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1864
61c26be8
MS
18652020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1866
1867 * breakpoint.c (handle_jit_event): Add an argument, change how
1868 `jit_event_handler` is called.
1869
932539d7
TT
18702020-10-17 Tom Tromey <tom@tromey.com>
1871
1872 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1873 (scan_xcoff_symtab): Update.
1874 * psymtab.h (class psymtab_storage) <global_psymbols,
1875 static_psymbols, current_global_psymbols,
1876 current_static_psymbols>: Remove.
1877 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1878 (match_partial_symbol, lookup_partial_symbol): Update.
1879 (print_partial_symbols): Change parameters.
1880 (dump_psymtab, recursively_search_psymtabs)
1881 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1882 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1883 (concat): Remove.
1884 (end_psymtab_common): Simplify.
1885 (append_psymbol_to_list): Change parameters.
1886 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1887 (init_psymbol_list): Simplify.
1888 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1889 * psympriv.h (struct partial_symtab) <empty>: New method.
1890 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1891 Remove.
1892 <global_psymbols, static_psymbols>: New members.
1893 <add_psymbol>: New methods.
1894 (add_psymbol_to_list): Don't declare.
1895 (psymbol_placement): Move earlier.
1896 * mdebugread.c (parse_partial_symbols): Update.
1897 (handle_psymbol_enumerators): Change parameters.
1898 (mdebug_expand_psymtab): Update.
1899 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1900 (add_partial_symbol): Update.
1901 * dwarf2/index-write.c (write_psymbols): Change parameters.
1902 (write_one_signatured_type): Update.
1903 (recursively_count_psymbols): Update.
1904 (recursively_write_psymbols): Update.
1905 (class debug_names) <recursively_write_psymbols>: Update.
1906 <write_psymbols>: Change parameters.
1907 <write_one_signatured_type>: Update.
1908 * dbxread.c (read_dbx_symtab): Update.
1909 (dbx_end_psymtab): Use partial_symtab::empty.
1910 * ctfread.c (struct ctf_context) <pst>: New member.
1911 (create_partial_symtab): Set it.
1912 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1913 (scan_partial_symbols): Use the psymtab's context. Update.
1914
cfabbd35
TT
19152020-10-17 Tom Tromey <tom@tromey.com>
1916
1917 * valprint.c (generic_value_print): Remove comment.
1918 * m2-valprint.c (m2_value_print_inner): Remove comment.
1919 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1920 type.
1921
520596f2
TV
19222020-10-17 Tom de Vries <tdevries@suse.de>
1923
1924 PR symtab/26317
1925 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1926 symbol main.
1927
76547ab3
TV
19282020-10-14 Tom de Vries <tdevries@suse.de>
1929
1930 PR gdb/26733
1931 * solib.c (solib_contains_address_p): Handle
1932 'solib->sections == nullptr'.
1933
d3a07122
SM
19342020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1935
1936 PR gdb/26642
1937 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1938 target can't do async.
1939 * target.c (target_wait): Assert that we don't pass
1940 TARGET_WNOHANG to a target that can't async.
1941
1b71cfcf
KR
19422020-10-13 Kamil Rytarowski <n54@gmx.com>
1943
1944 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1945 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1946 * alpha-bsd-nat.c: Adjust include.
1947 * alpha-bsd-tdep.h: Adjust comment.
1948 * alpha-nbsd-tdep.c: Rename to ...
1949 * alpha-netbsd-tdep.c: ... this, adjust include.
1950 * amd64-nbsd-nat.c: Rename to ...
1951 * amd64-netbsd-nat.c: ... this, adjust include.
1952 * amd64-nbsd-tdep.c: Rename to ...
1953 * amd64-netbsd-tdep.c: ... this, adjust include.
1954 * amd64-tdep.h: Adjust include.
1955 * arm-nbsd-nat.c: Rename to ...
1956 * arm-netbsd-nat.c: ... this, adjust include.
1957 * arm-nbsd-tdep.c: Rename to ...
1958 * arm-netbsd-tdep.c: ... this, adjust include.
1959 * arm-nbsd-tdep.h: Rename to ...
1960 * arm-netbsd-tdep.h: ... this, adjust include.
1961 * configure.nat: Adjust file lists.
1962 * configure.tgt: Likewise.
1963 * hppa-nbsd-nat.c: Rename to ...
1964 * hppa-netbsd-nat.c: ... this, adjust include.
1965 * hppa-nbsd-tdep.c: Rename to ...
1966 * hppa-netbsd-tdep.c: ... this, adjust include.
1967 * i386-nbsd-nat.c: Rename to ...
1968 * i386-netbsd-nat.c: ... this, adjust include.
1969 * i386-nbsd-tdep.c: Rename to ...
1970 * i386-netbsd-tdep.c: ... this, adjust include.
1971 * m68k-bsd-nat.c: Adjust include.
1972 * mips-nbsd-nat.c: Rename to ...
1973 * mips-netbsd-nat.c: ... this, adjust include.
1974 * mips-nbsd-tdep.c: Rename to ...
1975 * mips-netbsd-tdep.c: ... this, adjust include.
1976 * mips-nbsd-tdep.h: Rename to ...
1977 * mips-netbsd-tdep.h: ... this.
1978 * nbsd-nat.c: Rename to ...
1979 * netbsd-nat.c: ... this, adjust include.
1980 * nbsd-nat.h: Rename to ...
1981 * netbsd-nat.h: ... this, adjust include.
1982 * nbsd-tdep.c: Rename to ...
1983 * netbsd-tdep.c: ... this, adjust include.
1984 * nbsd-tdep.h: Rename to ...
1985 * netbsd-tdep.h: ... this.
1986 * ppc-nbsd-nat.c: Rename to ...
1987 * ppc-netbsd-nat.c: ... this, adjust include.
1988 * ppc-nbsd-tdep.c: Rename to ...
1989 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1990 * ppc-nbsd-tdep.h: Rename to ...
1991 * ppc-netbsd-tdep.h: ... this.
1992 * sh-nbsd-nat.c: Rename to ...
1993 * sh-netbsd-nat.c: ... this, adjust include.
1994 * sh-nbsd-tdep.c: Rename to ...
1995 * sh-netbsd-tdep.c: ... this, adjust include.
1996 * sparc-nbsd-nat.c: Rename to ...
1997 * sparc-netbsd-nat.c: ... this.
1998 * sparc-nbsd-tdep.c: Rename to ...
1999 * sparc-netbsd-tdep.c: ... this, adjust include.
2000 * sparc64-nbsd-nat.c: Rename to ...
2001 * sparc64-netbsd-nat.c: ... this.
2002 * sparc64-nbsd-tdep.c: Rename to ...
2003 * sparc64-netbsd-tdep.c: ... this, adjust include.
2004 * sparc64-tdep.h: Adjust comment.
2005 * vax-bsd-nat.c: Adjust include.
2006 * vax-nbsd-tdep.c: Rename to ...
2007 * vax-netbsd-tdep.c: ... this, adjust include.
2008
d7a78e5c
TT
20092020-10-12 Tom Tromey <tom@tromey.com>
2010
2011 * target.h (struct target_ops) <get_section_table>: Update.
2012 (target_get_section_table): Update.
2013 * target.c (target_get_section_table, target_section_by_addr)
2014 (memory_xfer_partial_1): Update.
2015 * target-section.h (target_section_table): Now an alias.
2016 * target-delegates.c: Rebuild.
2017 * target-debug.h (target_debug_print_target_section_table_p):
2018 Rename from target_debug_print_struct_target_section_table_p.
2019 * symfile.c (build_section_addr_info_from_section_table): Update.
2020 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2021 * solib-svr4.c (scan_dyntag): Update.
2022 * solib-dsbt.c (scan_dyntag): Update.
2023 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2024 Update.
2025 * record-full.c (record_full_core_target::xfer_partial): Update.
2026 * progspace.h (struct program_space) <target_sections>: Update.
2027 * exec.h (print_section_info): Update.
2028 * exec.c (exec_target::close, build_section_table)
2029 (add_target_sections, add_target_sections_of_objfile)
2030 (remove_target_sections, exec_on_vfork)
2031 (section_table_available_memory)
2032 (section_table_xfer_memory_partial)
2033 (exec_target::get_section_table, exec_target::xfer_partial)
2034 (print_section_info, set_section_command)
2035 (exec_set_section_address, exec_target::has_memory): Update.
2036 * corelow.c (core_target::build_file_mappings)
2037 (core_target::xfer_partial, core_target::info_proc_mappings)
2038 (core_target::info_proc_mappings): Update.
2039 * bfd-target.c (class target_bfd): Update
2040
eda214ce
TT
20412020-10-12 Tom Tromey <tom@tromey.com>
2042
2043 * progspace.c (program_space::~program_space): Don't call
2044 clear_section_table.
2045 * exec.h (clear_section_table): Don't declare.
2046 * exec.c (exec_target::close): Update.
2047 (clear_section_table): Remove.
2048
91840ee3
TT
20492020-10-12 Tom Tromey <tom@tromey.com>
2050
2051 * exec.c (add_target_sections_of_objfile): Simplify.
2052
2d128614
TT
20532020-10-12 Tom Tromey <tom@tromey.com>
2054
2055 * solib.c (solib_map_sections): Update.
2056 * record-full.c (record_full_core_open_1): Update.
2057 * exec.h (build_section_table): Return a target_section_table.
2058 * exec.c (exec_file_attach): Update.
2059 (build_section_table): Return a target_section_table.
2060 * corelow.c (core_target::core_target): Update.
2061 * bfd-target.c (target_bfd::target_bfd): Update.
2062
bb2a6777
TT
20632020-10-12 Tom Tromey <tom@tromey.com>
2064
2065 * target.c (target_section_by_addr, memory_xfer_partial_1):
2066 Update.
2067 * target-section.h (struct target_section_table): Use
2068 std::vector.
2069 * symfile.h (build_section_addr_info_from_section_table): Take a
2070 target_section_table.
2071 * symfile.c (build_section_addr_info_from_section_table): Take a
2072 target_section_table.
2073 * solist.h (struct so_list) <sections>: Change type.
2074 <sections_end>: Remove.
2075 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2076 (solib_contains_address_p): Update.
2077 * solib-svr4.c (scan_dyntag): Update.
2078 * solib-dsbt.c (scan_dyntag): Update.
2079 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2080 Update.
2081 * record-full.c (record_full_core_start, record_full_core_end):
2082 Remove.
2083 (record_full_core_sections): New global.
2084 (record_full_core_open_1, record_full_core_target::xfer_partial):
2085 Update.
2086 * exec.h (build_section_table, section_table_xfer_memory_partial)
2087 (add_target_sections): Take a target_section_table.
2088 * exec.c (exec_file_attach, clear_section_table): Update.
2089 (resize_section_table): Remove.
2090 (build_section_table, add_target_sections): Take a
2091 target_section_table.
2092 (add_target_sections_of_objfile, remove_target_sections)
2093 (exec_on_vfork): Update.
2094 (section_table_available_memory): Take a target_section_table.
2095 (section_table_read_available_memory): Update.
2096 (section_table_xfer_memory_partial): Take a target_section_table.
2097 (print_section_info, set_section_command)
2098 (exec_set_section_address, exec_target::has_memory): Update.
2099 * corelow.c (class core_target) <m_core_section_table,
2100 m_core_file_mappings>: Remove braces.
2101 <~core_target>: Remove.
2102 (core_target::core_target): Update.
2103 (core_target::~core_target): Remove.
2104 (core_target::build_file_mappings)
2105 (core_target::xfer_memory_via_mappings)
2106 (core_target::xfer_partial, core_target::info_proc_mappings):
2107 Update.
2108 * bfd-target.c (target_bfd::xfer_partial): Update.
2109 (target_bfd::target_bfd): Update.
2110 (target_bfd::~target_bfd): Remove.
2111
7b466b10
TT
21122020-10-12 Tom Tromey <tom@tromey.com>
2113
2114 * target.h (struct target_section, struct target_section_table):
2115 Move to target-section.h.
2116 * target-section.h: New file.
2117
87a37e5e
PA
21182020-10-12 Pedro Alves <pedro@palves.net>
2119
2120 PR exp/26602
2121 * valops.c (struct struct_field_searcher): New.
2122 (update_search_result): Rename to ...
2123 (struct_field_searcher::update_result): ... this. Simplify
2124 prototype. Record all found fields.
2125 (do_search_struct_field): Rename to ...
2126 (struct_field_searcher::search): ... this. Simplify prototype.
2127 Maintain stack of visited baseclass path. Call update_result for
2128 fields too. Keep searching fields in baseclasses instead of
2129 stopping at the first found field.
2130 (search_struct_field): Use struct_field_searcher. When looking
2131 for fields, report ambiguous access attempts.
2132
9370fd51
AB
21332020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2134
2135 * frame.c (inside_main_func): Check full symbols as well as
2136 minimal symbols.
2137
59c8a30b
JB
21382020-10-09 Joel Brobecker <brobecker@adacore.com>
2139
2140 * ada-lang.c (advance_wild_match): Rewrite the function's
2141 description. Change the type of target0, t0 and t1 to char.
2142
7c184d33
TT
21432020-10-09 Tom Tromey <tromey@adacore.com>
2144
2145 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2146
5c4258f4
TT
21472020-10-09 Tom Tromey <tromey@adacore.com>
2148
2149 * ada-lang.h (ada_encode): Return std::string.
2150 * ada-lang.c (ada_encode_1): Return std::string.
2151 (ada_encode): Likewise.
2152 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2153 Update.
2154 * ada-exp.y (block_lookup, write_var_or_type): Update.
2155
3d87245c
HD
21562020-10-09 Hannes Domani <ssbssa@yahoo.de>
2157
2158 PR exp/26714
2159 * printcmd.c (print_formatted): Handle void results as
2160 unformatted prints.
2161
bbb826f5
AB
21622020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2163
2164 * arch/aarch32.c (aarch32_create_target_description): Release the
2165 target_desc_up as late as possible.
2166 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2167 * arch/amd64.c (amd64_create_target_description): Likewise.
2168 * arch/arc.c (arc_create_target_description): Return a
2169 target_desc_up, don't release it.
2170 * arch/arc.h (arc_create_target_description): Update declaration.
2171 (arc_lookup_target_description): Move target_desc_up into the
2172 cache, and return a borrowed pointer.
2173 * arch/arm.c (arm_create_target_description): Release the
2174 target_desc_up as late as possible.
2175 * arch/i386.c (i386_create_target_description): Likewise.
2176 * arch/riscv.h (riscv_create_target_description): Update
2177 declaration to match definition.
2178 * arch/tic6x.c (tic6x_create_target_description): Release the
2179 target_desc_up as late as possible.
2180
361cb219
AB
21812020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2182
2183 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2184 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2185
f5c4b229
JV
21862020-10-09 Jan Vrany <jan.vrany@labware.com>
2187
2188 * source.c (directory_command): Notify observers that "directories"
2189 parameter has changed.
2190
b2701685
TT
21912020-10-08 Tom Tromey <tom@tromey.com>
2192
2193 * cli/cli-cmds.c (print_disassembly): Style function name and
2194 addresses. Add _() wrappers.
2195
ada508b6
SV
21962020-10-08 Shahab Vahedi <shahab@synopsys.com>
2197
2198 * NEWS: Mention ARC support in GDBserver.
2199
51a948fd
AB
22002020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2201
2202 * arch/aarch32.c (aarch32_create_target_description): Release
2203 unique_ptr returned from allocate_target_description.
2204 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2205 * arch/amd64.c (amd64_create_target_description): Likewise.
2206 * arch/arc.c (arc_create_target_description): Likewise.
2207 * arch/arm.c (arm_create_target_description): Likewise.
2208 * arch/i386.c (i386_create_target_description): Likewise.
2209 * arch/riscv.c (riscv_create_target_description): Update return
2210 type. Handle allocate_target_description returning a unique_ptr.
2211 (riscv_lookup_target_description): Update to handle unique_ptr.
2212 * arch/tic6x.c (tic6x_create_target_description): Release
2213 unique_ptr returned from allocate_target_description.
2214 * features/microblaze-with-stack-protect.c: Regenerate.
2215 * features/microblaze.c: Regenerate.
2216 * features/mips-dsp-linux.c: Regenerate.
2217 * features/mips-linux.c: Regenerate.
2218 * features/mips64-dsp-linux.c: Regenerate.
2219 * features/mips64-linux.c: Regenerate.
2220 * features/nds32.c: Regenerate.
2221 * features/nios2.c: Regenerate.
2222 * features/or1k.c: Regenerate.
2223 * features/rs6000/powerpc-32.c: Regenerate.
2224 * features/rs6000/powerpc-32l.c: Regenerate.
2225 * features/rs6000/powerpc-403.c: Regenerate.
2226 * features/rs6000/powerpc-403gc.c: Regenerate.
2227 * features/rs6000/powerpc-405.c: Regenerate.
2228 * features/rs6000/powerpc-505.c: Regenerate.
2229 * features/rs6000/powerpc-601.c: Regenerate.
2230 * features/rs6000/powerpc-602.c: Regenerate.
2231 * features/rs6000/powerpc-603.c: Regenerate.
2232 * features/rs6000/powerpc-604.c: Regenerate.
2233 * features/rs6000/powerpc-64.c: Regenerate.
2234 * features/rs6000/powerpc-64l.c: Regenerate.
2235 * features/rs6000/powerpc-7400.c: Regenerate.
2236 * features/rs6000/powerpc-750.c: Regenerate.
2237 * features/rs6000/powerpc-860.c: Regenerate.
2238 * features/rs6000/powerpc-altivec32.c: Regenerate.
2239 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2240 * features/rs6000/powerpc-altivec64.c: Regenerate.
2241 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2242 * features/rs6000/powerpc-e500.c: Regenerate.
2243 * features/rs6000/powerpc-e500l.c: Regenerate.
2244 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2245 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2246 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2247 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2248 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2249 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2250 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2251 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2252 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2253 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2254 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2255 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2256 * features/rs6000/powerpc-vsx32.c: Regenerate.
2257 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2258 * features/rs6000/powerpc-vsx64.c: Regenerate.
2259 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2260 * features/rs6000/rs6000.c: Regenerate.
2261 * features/rx.c: Regenerate.
2262 * features/s390-gs-linux64.c: Regenerate.
2263 * features/s390-linux32.c: Regenerate.
2264 * features/s390-linux32v1.c: Regenerate.
2265 * features/s390-linux32v2.c: Regenerate.
2266 * features/s390-linux64.c: Regenerate.
2267 * features/s390-linux64v1.c: Regenerate.
2268 * features/s390-linux64v2.c: Regenerate.
2269 * features/s390-te-linux64.c: Regenerate.
2270 * features/s390-tevx-linux64.c: Regenerate.
2271 * features/s390-vx-linux64.c: Regenerate.
2272 * features/s390x-gs-linux64.c: Regenerate.
2273 * features/s390x-linux64.c: Regenerate.
2274 * features/s390x-linux64v1.c: Regenerate.
2275 * features/s390x-linux64v2.c: Regenerate.
2276 * features/s390x-te-linux64.c: Regenerate.
2277 * features/s390x-tevx-linux64.c: Regenerate.
2278 * features/s390x-vx-linux64.c: Regenerate.
2279 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2280 from allocate_target_description.
2281 * target-descriptions.c (allocate_target_description): Update
2282 return type.
2283 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2284 allocate_target_description.
2285
485c47e5
TT
22862020-10-07 Tom Tromey <tromey@adacore.com>
2287
2288 * unittests/search-memory-selftests.c: New file.
2289 * Makefile.in (SELFTESTS_SRCS): Add
2290 unittests/search-memory-selftests.c.
2291
3a135a91
TT
22922020-10-07 Tom Tromey <tromey@adacore.com>
2293
2294 PR gdb/16930:
2295 * findcmd.c (_initialize_mem_search): Mention that the range is
2296 inclusive.
2297
4a72de73
TT
22982020-10-07 Tom Tromey <tromey@adacore.com>
2299
2300 * target.h (simple_search_memory): Don't declare.
2301 * target.c (simple_search_memory): Move to gdbsupport.
2302 (default_search_memory): Update.
2303 * remote.c (remote_target::search_memory): Update.
2304
a038ffd8
SM
23052020-10-07 Simon Marchi <simon.marchi@efficios.com>
2306
2307 * Makefile.in (COMPILE): Add CXXFLAGS.
2308 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2309 (check-headers): Add CXXFLAGS.
2310
cc463201
AK
23112020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2312
2313 * arc-linux-tdep.h: New file.
2314 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2315 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2316 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2317 arc_linux_gregset, arc_linux_v2_regset,
2318 arc_linux_iterate_over_regset_sections,
2319 arc_linux_core_read_description): Implement.
2320 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2321 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2322 (arc_gdbarch_features_create): Add.
2323 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2324
e4bd363f
SV
23252020-10-07 Shahab Vahedi <shahab@synopsys.com>
2326
2327 * arch/arc.h: Rename "arc_gdbarch_features" to
2328 "arc_arch_features".
2329 * arc-tdep.h: Likewise.
2330 * arc-tdep.c: Likewise.
2331
b68bef99
TBA
23322020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2333
2334 * infcmd.c (attach_command): Remove the redundant call to
2335 `clear_proceed_status`.
2336
4641551a
KR
23372020-10-07 Kamil Rytarowski <n54@gmx.com>
2338
2339 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2340
91e5e8db
KR
23412020-10-07 Kamil Rytarowski <n54@gmx.com>
2342
2343 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2344 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2345 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2346
64c03bdb
SM
23472020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2348
2349 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2350 (_initialize_break_catch_sig): Don't allocate array.
2351
31a8f60f
AB
23522020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2353
2354 * symtab.c (find_pc_line): Return unmapped addresses when the
2355 requested address is also unmapped.
2356
9e6dbd8b
SM
23572020-10-05 Simon Marchi <simon.marchi@efficios.com>
2358
2359 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2360 tui/tui-out.h.
2361
a1d217e8
SM
23622020-10-05 Simon Marchi <simon.marchi@efficios.com>
2363
2364 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2365 type::is_vector instead of TYPE_VECTOR.
2366
7d144117
SM
23672020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2368
2369 * auto-load.c (auto_load_objfile_script_1): Don't use
2370 debugfile_holder as temporary variable when stripping drive
2371 letter.
2372
cd096ec8
HD
23732020-10-05 Hannes Domani <ssbssa@yahoo.de>
2374
2375 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2376 Add TYPE_CODE_COMPLEX.
2377 (amd64_windows_return_value): Fix types returned via XMM0.
2378
b58e7f72
AH
23792020-10-05 Alan Hayward <alan.hayward@arm.com>
2380
2381 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2382 AArch64/ARM maintainers.
2383
8d378f27
SM
23842020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2385
2386 * NEWS: Mention set/show debug event-loop.
2387
d5519913
TT
23882020-10-02 Tom Tromey <tromey@adacore.com>
2389
2390 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2391 REG_EXTENDED.
2392
18b67edc
SM
23932020-10-02 Simon Marchi <simon.marchi@efficios.com>
2394
2395 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2396 * procfs.c (procfs_inferior_created): Remove.
2397 (_initialize_procfs): Don't register procfs_inferior_created.
2398
6b01403b
SM
23992020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2400
2401 * async-event.c (invoke_async_signal_handlers): Add debug
2402 print.
2403 (check_async_event_handlers): Likewise.
2404 * event-top.c (show_debug_event_loop): New function.
2405 (_initialize_event_top): Register "set debug event-loop"
2406 setting.
2407
ba988419
SM
24082020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2409
2410 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2411 * debug.h: Remove.
2412 * infrun.c: Include gdbsupport/common-debug.h.
2413 * linux-nat.c: Likewise.
2414
db20ebdf
SM
24152020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2416
2417 * async-event.h (create_async_signal_handler): Add name
2418 parameter.
2419 (create_async_event_handler): Likewise.
2420 * async-event.c (struct async_signal_handler) <name>: New field.
2421 (struct async_event_handler) <name>: New field.
2422 (create_async_signal_handler): Assign name.
2423 (create_async_event_handler): Assign name.
2424 * event-top.c (async_init_signals): Pass name when creating
2425 handler.
2426 * infrun.c (_initialize_infrun): Likewise.
2427 * record-btrace.c (record_btrace_push_target): Likewise.
2428 * record-full.c (record_full_open): Likewise.
2429 * remote-notif.c (remote_notif_state_allocate): Likewise.
2430 * remote.c (remote_target::open_1): Likewise.
2431 * tui/tui-win.c (tui_initialize_win): Likewise.
2432
2554f6f5
SM
24332020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2434
2435 * async-event.c (initialize_async_signal_handlers): Pass name to
2436 add_file_handler
2437 * event-top.c (ui_register_input_event_handler): Likewise.
2438 * linux-nat.c (linux_nat_target::async): Likewise.
2439 * run-on-main-thread.c (_initialize_run_on_main_thread):
2440 Likewise
2441 * ser-base.c (reschedule): Likewise.
2442 (ser_base_async): Likewise.
2443 * tui/tui-io.c: Likewise.
2444 * top.h (struct ui) <num>: New field.
2445 * top.c (highest_ui_num): New variable.
2446 (ui::ui): Initialize num.
2447
a7aba266
SM
24482020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 * observable.h <inferior_created>: Remove parameters. Update all
2451 listeners.
2452 * inferior.h (post_create_inferior): Remove target parameter.
2453 Update all callers.
2454
048fde1e 24552020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2456
2457 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2458 and DW_MACRO_undef_strx.
2459 (dwarf_decode_macros): Likewise
2460 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2461 which is the value of DW_AT_str_offsets_base.
2462 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2463 str_offsets_base.
2464
064280be
KR
24652020-10-01 Kamil Rytarowski <n54@gmx.com>
2466
2467 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2468
6ff33035
KR
24692020-10-01 Kamil Rytarowski <n54@gmx.com>
2470
2471 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2472 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2473
1eb6eb79
KR
24742020-10-01 Kamil Rytarowski <n54@gmx.com>
2475
2476 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2477
95eb9e54
TV
24782020-09-30 Tom de Vries <tdevries@suse.de>
2479
2480 PR symtab/26683
2481 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2482
cae21f8e
TT
24832020-09-30 Tom Tromey <tromey@adacore.com>
2484
2485 * dwarf2/read.c (handle_variant): Use constant_value.
2486
529908cb
TT
24872020-09-29 Tom Tromey <tom@tromey.com>
2488
2489 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2490 (read_file_scope, dwarf2_get_pc_bounds)
2491 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2492 (read_structure_type, handle_struct_member_die)
2493 (read_enumeration_type, read_array_type, read_set_type)
2494 (read_tag_pointer_type, read_tag_reference_type)
2495 (read_subroutine_type, read_base_type, read_subrange_type)
2496 (read_full_die_1, partial_die_info::read)
2497 (partial_die_info::read, by, new_symbol)
2498 (dwarf2_const_value_data, dwarf2_const_value_attr)
2499 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2500 (prepare_one_comp_unit): Update.
2501 * dwarf2/attribute.h (DW_UNSND): Remove.
2502
c45bc3f8
TT
25032020-09-29 Tom Tromey <tom@tromey.com>
2504
2505 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2506 (read_subroutine_type, partial_die_info::read)
2507 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2508 (dwarf2_add_member_fn): Update.
2509 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2510 * dwarf2/attribute.c (attribute::as_boolean): New method.
2511
23dca5c3
TT
25122020-09-29 Tom Tromey <tom@tromey.com>
2513
2514 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2515 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2516 method.
2517 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2518
52c14d11
TT
25192020-09-29 Tom Tromey <tom@tromey.com>
2520
2521 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2522 the attribute's form.
2523
e8e5c158
TT
25242020-09-29 Tom Tromey <tom@tromey.com>
2525
2526 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2527 (dwarf2_add_member_fn): Update.
2528 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2529 * dwarf2/attribute.c (attribute::defaulted): New method, from
2530 is_valid_DW_AT_defaulted.
2531
d4df075e
TT
25322020-09-29 Tom Tromey <tom@tromey.com>
2533
2534 * dwarf2/read.c (dw2_get_file_names_reader)
2535 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2536 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2537 (dwarf2_symbol_mark_computed): Use as_unsigned.
2538 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2539 method.
2540 <form_is_section_offset>: Update comment.
2541
bf23a268
TT
25422020-09-29 Tom Tromey <tom@tromey.com>
2543
2544 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2545 dwarf2_default_access_attribute. Look up attribute.
2546 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2547 Update.
2548
7a5f294d
TT
25492020-09-29 Tom Tromey <tom@tromey.com>
2550
2551 * dwarf2/read.c (skip_one_die): Update.
2552 (read_full_die_1): Change how reprocessing is done.
2553 (partial_die_info::read): Update.
2554 (read_attribute_value): Remove need_reprocess parameter.
2555 (read_attribute): Likewise.
2556 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2557 New method.
2558
36d378cf
TT
25592020-09-29 Tom Tromey <tom@tromey.com>
2560
2561 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2562 (dwarf2_const_value_attr, dump_die_shallow)
2563 (dwarf2_fetch_constant_bytes): Update.
2564 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2565 comment.
2566 <set_address>: New method.
2567 (DW_ADDR): Remove.
2568 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2569 (attribute::as_string, attribute::as_address): Add assert.
2570
fe56917a
TT
25712020-09-29 Tom Tromey <tom@tromey.com>
2572
2573 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2574 (read_attribute_reprocess, read_attribute_value): Update.
2575 (read_attribute): Clear requires_reprocessing.
2576 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2577 form_requires_reprocessing>: New methods.
2578 <string_init>: Clear requires_reprocessing.
2579 <set_unsigned_reprocess>: New method.
2580 <name>: Shrink by one bit.
2581 <requires_reprocessing>: New member.
2582 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2583 method.
2584
414ad644
TT
25852020-09-29 Tom Tromey <tom@tromey.com>
2586
2587 * dwarf2/read.c (read_attribute_value): Update.
2588 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2589 set_unsigned>: New methods.
2590 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2591
1bc397c5
TT
25922020-09-29 Tom Tromey <tom@tromey.com>
2593
2594 * dwarf2/read.c (get_alignment, read_array_order)
2595 (read_attribute_value, dwarf2_const_value_attr)
2596 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2597 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2598 New methods.
2599 (DW_SND): Remove.
2600
630ed6b9
TT
26012020-09-29 Tom Tromey <tom@tromey.com>
2602
2603 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2604 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2605 Update.
2606 * dwarf2/attribute.h (struct attribute) <as_signature,
2607 set_signature>: New methods.
2608 (DW_SIGNATURE): Remove.
2609
9d2246fc
TT
26102020-09-29 Tom Tromey <tom@tromey.com>
2611
2612 * dwarf2/read.c (read_call_site_scope)
2613 (handle_data_member_location, dwarf2_add_member_fn)
2614 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2615 (partial_die_info::read, read_attribute_value)
2616 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2617 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2618 (dwarf2_symbol_mark_computed): Update.
2619 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2620 methods.
2621 (DW_BLOCK): Remove.
2622 * dwarf2/attribute.c (attribute::form_is_block): Add
2623 DW_FORM_data16.
2624
c6481205
TT
26252020-09-29 Tom Tromey <tom@tromey.com>
2626
2627 * dwarf2/read.c (read_cutu_die_from_dwo)
2628 (read_attribute_reprocess, read_attribute_value, read_attribute)
2629 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2630 (dwarf2_fetch_constant_bytes): Update.
2631 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2632 <set_string_noncanonical, set_string_canonical>: New methods.
2633 <string_is_canonical>: Update comment.
2634 <canonical_string_p>: Add assert.
2635 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2636 * dwarf2/attribute.c (attribute::form_is_string): New method.
2637 (attribute::string): Use it.
2638
3b64bf15
TT
26392020-09-29 Tom Tromey <tom@tromey.com>
2640
2641 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2642 (dump_die_shallow): Use canonical_string_p.
2643 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2644 method.
2645
2c830f54
TT
26462020-09-29 Tom Tromey <tom@tromey.com>
2647
2648 * dwarf2/read.c (partial_die_info::read)
2649 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2650 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2651 attribute::as_string.
2652
6c412691
TT
26532020-09-29 Tom Tromey <tom@tromey.com>
2654
2655 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2656 DW_ADDR.
2657 (attribute::string): Don't use DW_STRING.
2658 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2659 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2660
95f982e5
TT
26612020-09-29 Tom Tromey <tom@tromey.com>
2662
2663 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2664 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2665 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2666 * dwarf2/attribute.h (struct attribute): Rename methods.
2667 * dwarf2/attribute.c (attribute::as_address): Rename from
2668 value_as_address.
2669 (attribute::as_string): Rename from value_as_string.
2670
f800b00e
TT
26712020-09-29 Tom Tromey <tom@tromey.com>
2672
2673 * dwarf2/read.c (partial_die_info::read) <case
2674 DW_AT_linkage_name>: Use value_as_string.
2675 (dwarf2_string_attr): Use value_as_string.
2676 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2677 method.
2678 * dwarf2/attribute.c (attribute::value_as_string): New method.
2679
de38d64a
PA
26802020-09-29 Pedro Alves <pedro@palves.net>
2681
2682 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2683 defined before using '#pragma GCC diagnostic' instead of checking
2684 __clang__.
2685
9aed480c
TT
26862020-09-28 Tom Tromey <tom@tromey.com>
2687
2688 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2689 (handle_signal_stop): Update.
2690 * procfs.c (procfs_target::insert_watchpoint): Update.
2691 * target.h (target_have_steppable_watchpoint): Now a function.
2692
8a3ecb79
TT
26932020-09-28 Tom Tromey <tom@tromey.com>
2694
2695 * infrun.c (set_schedlock_func): Update.
2696 * target.h (target_can_lock_scheduler): Now a function.
2697
55f6301a
TT
26982020-09-28 Tom Tromey <tom@tromey.com>
2699
2700 * inferior.h (class inferior) <has_execution>: Update.
2701 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2702 * valops.c (find_function_in_inferior)
2703 (value_allocate_space_in_inferior): Update.
2704 * top.c (kill_or_detach): Update.
2705 * target.c (target_preopen, set_target_permissions): Update.
2706 (target_has_execution_current): Remove.
2707 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2708 Update.
2709 * solib.c (update_solib_list, reload_shared_libraries): Update.
2710 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2711 * solib-dsbt.c (enable_break): Update.
2712 * score-tdep.c (score7_fetch_inst): Update.
2713 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2714 Update.
2715 * remote.c (remote_target::start_remote)
2716 (remote_target::remote_check_symbols, remote_target::open_1)
2717 (remote_target::remote_detach_1, remote_target::verify_memory)
2718 (remote_target::xfer_partial, remote_target::read_description)
2719 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2720 * record-full.c (record_full_open_1): Update.
2721 * record-btrace.c (record_btrace_target_open): Update.
2722 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2723 (value_nsstring): Update.
2724 * linux-thread-db.c (add_thread_db_info)
2725 (thread_db_find_new_threads_silently, check_thread_db_callback)
2726 (try_thread_db_load_1, record_thread): Update.
2727 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2728 Update.
2729 * linux-fork.c (checkpoint_command): Update.
2730 * infrun.c (set_non_stop, set_observer_mode)
2731 (check_multi_target_resumption, for_each_just_stopped_thread)
2732 (maybe_remove_breakpoints, normal_stop)
2733 (class infcall_suspend_state): Update.
2734 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2735 (info_program_command, attach_command): Update.
2736 * infcall.c (call_function_by_hand_dummy): Update.
2737 * inf-loop.c (inferior_event_handler): Update.
2738 * gcore.c (gcore_command, derive_heap_segment): Update.
2739 * exec.c (exec_file_command): Update.
2740 * eval.c (evaluate_subexp): Update.
2741 * compile/compile.c (compile_to_object): Update.
2742 * cli/cli-dump.c (restore_command): Update.
2743 * breakpoint.c (update_watchpoint)
2744 (update_inserted_breakpoint_locations)
2745 (insert_breakpoint_locations, get_bpstat_thread): Update.
2746 * target.h (target_has_execution): Remove macro.
2747 (target_has_execution_current): Don't declare.
2748 (target_has_execution): Rename from target_has_execution_1. Add
2749 argument default.
2750
05374cfd
TT
27512020-09-28 Tom Tromey <tom@tromey.com>
2752
2753 * mi/mi-main.c (exec_reverse_continue)
2754 (mi_cmd_list_target_features): Update.
2755 * infrun.c (set_exec_direction_func): Update.
2756 * target.c (default_execution_direction): Update.
2757 * reverse.c (exec_reverse_once): Update.
2758 * target.h (target_can_execute_reverse): Now a function.
2759
9dccd06e
TT
27602020-09-28 Tom Tromey <tom@tromey.com>
2761
2762 * tui/tui-regs.c (tui_get_register)
2763 (tui_data_window::show_registers): Update.
2764 * thread.c (scoped_restore_current_thread::restore)
2765 (scoped_restore_current_thread::scoped_restore_current_thread):
2766 Update.
2767 * regcache-dump.c (regcache_print): Update.
2768 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2769 Update.
2770 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2771 * mep-tdep.c (current_me_module, current_options): Update.
2772 * linux-thread-db.c (thread_db_load): Update.
2773 * infcmd.c (registers_info, info_vector_command)
2774 (info_float_command): Update.
2775 * ia64-tdep.c (ia64_frame_prev_register)
2776 (ia64_sigtramp_frame_prev_register): Update.
2777 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2778 * gcore.c (derive_stack_segment): Update.
2779 * frame.c (get_current_frame, has_stack_frames): Update.
2780 * findvar.c (language_defn::read_var_value): Update.
2781 * arm-tdep.c (arm_pc_is_thumb): Update.
2782 * target.c (target_has_registers): Rename from
2783 target_has_registers_1.
2784 * target.h (target_has_registers): Remove macro.
2785 (target_has_registers): Rename from target_has_registers_1.
2786
841de120
TT
27872020-09-28 Tom Tromey <tom@tromey.com>
2788
2789 * windows-tdep.c (tlb_make_value): Update.
2790 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2791 * thread.c (scoped_restore_current_thread::restore)
2792 (scoped_restore_current_thread::scoped_restore_current_thread)
2793 (thread_command): Update.
2794 * stack.c (backtrace_command_1, frame_apply_level_command)
2795 (frame_apply_all_command, frame_apply_command): Update.
2796 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2797 Update.
2798 * gcore.c (derive_stack_segment): Update.
2799 * frame.c (get_current_frame, has_stack_frames): Update.
2800 * auxv.c (info_auxv_command): Update.
2801 * ada-tasks.c (ada_build_task_list): Update.
2802 * target.c (target_has_stack): Rename from target_has_stack_1.
2803 * target.h (target_has_stack): Remove macro.
2804 (target_has_stack): Rename from target_has_stack_1.
2805
a739972c
TT
28062020-09-28 Tom Tromey <tom@tromey.com>
2807
2808 * target.c (target_has_memory): Rename from target_has_memory_1.
2809 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2810 * thread.c (scoped_restore_current_thread::restore)
2811 (scoped_restore_current_thread::scoped_restore_current_thread):
2812 Update.
2813 * frame.c (get_current_frame, has_stack_frames): Update.
2814 * target.h (target_has_memory): Remove macro.
2815 (target_has_memory): Rename from target_has_memory_1.
2816
5b8a4776
TT
28172020-09-28 Tom Tromey <tom@tromey.com>
2818
2819 * target.c (target_has_all_memory_1): Remove.
2820 * target.h (target_has_all_memory): Remove define.
2821 (target_has_all_memory_1): Don't declare.
2822
bd356ec6
SM
28232020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2824
2825 * ser-base.c: Adjust comments formatting.
2826
2c72d5e5
TT
28272020-09-27 Tom Tromey <tom@tromey.com>
2828
2829 PR tui/25342:
2830 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2831
35a98237
TT
28322020-09-27 Tom Tromey <tom@tromey.com>
2833
2834 PR tui/25342:
2835 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2836
9e820dec
TT
28372020-09-27 Tom Tromey <tom@tromey.com>
2838
2839 * unittests/tui-selftests.c: Update.
2840 * tui/tui-winsource.h (struct tui_source_window_base)
2841 <extra_margin, show_line_number, refresh_pad>: New methods.
2842 <m_max_length, m_pad>: New members.
2843 (tui_copy_source_line): Update.
2844 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2845 first_col, line_width, ndigits parameters. Add length.
2846 (tui_source_window_base::show_source_line): Write to pad. Line
2847 number now 0-based.
2848 (tui_source_window_base::refresh_pad): New method.
2849 (tui_source_window_base::show_source_content): Write to pad. Call
2850 refresh_pad.
2851 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2852 not refill.
2853 (tui_source_window_base::update_exec_info): Call
2854 show_line_number.
2855 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2856 method.
2857 <m_digits>: New member.
2858 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2859 and m_max_length.
2860 (tui_source_window::show_line_number): New method.
2861 * tui/tui-io.h (tui_puts): Fix comment.
2862 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2863 m_max_length.
2864
c15c15c8
TT
28652020-09-27 Tom Tromey <tom@tromey.com>
2866
2867 * tui/tui-winsource.c
2868 (tui_source_window_base::set_is_exec_point_at): Don't call
2869 show_source_line.
2870
149830c1
TT
28712020-09-27 Tom Tromey <tom@tromey.com>
2872
2873 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2874 method.
2875 <erase>: Update.
2876 <cursor_x, cursor_y>: Remove.
2877 <m_inner_window>: New member.
2878 (tui_py_window::rerender): Create inner window.
2879 (tui_py_window::output): Write to inner window.
2880
8f9929bb
GR
28812020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2882
2883 PR python/26586
2884 * cli/cli-script.c (execute_control_commands): don't set
2885 instream to nullptr here as this breaks the from_tty argument
2886 to gdb.execute in Python.
2887 (execute_user_command): set instream to nullptr here instead.
2888
956bdb59
SM
28892020-09-25 Simon Marchi <simon.marchi@efficios.com>
2890
2891 * infrun.h (infrun_debug_printf): Fix formatting.
2892 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2893
3b93626b
SJ
28942020-09-25 Saagar Jha <saagar@saagarjha.com>
2895
2896 * compile/compile-object-load.h (struct munmap_list): Add
2897 explicitly-defined move constructor.
2898
b551a89f
TT
28992020-09-24 Tom Tromey <tromey@adacore.com>
2900
2901 PR tui/26638:
2902 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2903 method.
2904 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2905 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2906 (tui_prev_win): Rewrite.
2907
99bb393f
HD
29082020-09-23 Hannes Domani <ssbssa@yahoo.de>
2909
2910 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2911 in WOW64 processes as SIGINT.
2912 * nat/windows-nat.h: Make wow64_process a shared variable.
2913 * windows-nat.c: Remove static wow64_process variable.
2914
20a5fcbd
TT
29152020-09-23 Tom Tromey <tom@tromey.com>
2916
2917 PR symtab/25470:
2918 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2919 offset and bit size.
2920 * printcmd.c (print_scalar_formatted): Handle zero-length
2921 integer.
2922 (print_scalar_formatted): Use bit_size_differs_p.
2923 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2924 constant.
2925 (union type_specific): <int_stuff>: New member.
2926 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2927 methods.
2928 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2929 TYPE_SPECIFIC_FIELD.
2930 (recursive_dump_type, copy_type_recursive): Update.
2931 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2932 DW_AT_data_bit_offset.
2933
bac51ab7
TT
29342020-09-23 Tom Tromey <tom@tromey.com>
2935
2936 * utils.h (class gdb_argv): Add move operators.
2937 <append>: New methods.
2938 * compile/compile.c (build_argc_argv): Remove.
2939 (compile_args_argc): Remove.
2940 (compile_args_argv): Change type.
2941 (set_compile_args): Simplify.
2942 (append_args): Remove.
2943 (filter_args): Remove argcp parameter.
2944 (get_args): Return gdb_argv. Simplify.
2945 (compile_to_object): Update.
2946
92677124
TT
29472020-09-23 Tom Tromey <tom@tromey.com>
2948
2949 * compile/compile-object-run.c (do_module_cleanup)
2950 <~do_module_cleanup> :Remove.
2951 (do_module_cleanup): Update.
2952 * compile/compile-object-load.h (struct munmap_list): Add move
2953 assignment operator.
2954 <source_file>: Now a std::string.
2955 <munmap_list>: Rename. No longer a pointer.
2956 * compile/compile-object-load.c (struct setup_sections_data): Add
2957 constructor.
2958 <setup_one_section>: Declare.
2959 <munmap_list>: Move earlier.
2960 <m_bfd>: New member.
2961 <m_last_size, m_last_section_first, m_last_prot,
2962 m_last_max_alignment>: Rename, add initializers where needed.
2963 (setup_sections_data::setup_one_section): Rename from
2964 setup_sections. Update.
2965 (compile_object_load): Update. Don't use bfd_map_over_sections.
2966
e616f60a
TT
29672020-09-23 Tom Tromey <tom@tromey.com>
2968
2969 * compile/compile-object-run.c (struct do_module_cleanup): Add
2970 parameters to constructor. Update destructor.
2971 <source_file, scope, scope_data, out_value_type, out_value_addr,
2972 munmap_list_head, objfile_name_string>: Remove.
2973 <module>: New member.
2974 (do_module_cleanup): Update.
2975 (compile_object_run): Update.
2976
e947a848
TT
29772020-09-23 Tom Tromey <tom@tromey.com>
2978
2979 * compile/compile.c (eval_compile_command): Update.
2980 * compile/compile-object-run.h (compile_object_run): Take a
2981 compile_module_up.
2982 * compile/compile-object-run.c (compile_object_run): Take a
2983 compile_module_up.
2984 * compile/compile-object-load.h (struct compile_module): Add
2985 constructor, destructor.
2986 (compile_module_up): New typedef.
2987 (compile_object_load): Return compile_object_up.
2988 * compile/compile-object-load.c (compile_object_load): Return
2989 compile_module_up.
2990
0dbf6ee6
TT
29912020-09-23 Tom Tromey <tom@tromey.com>
2992
2993 * compile/compile-object-run.c (struct do_module_cleanup): Add
2994 constructor, destructor.
2995 <objfile_name_string>: Don't use struct hack.
2996 (do_module_cleanup): Use delete.
2997 (compile_object_run): Use new.
2998
ebe824f5
TT
29992020-09-23 Tom Tromey <tom@tromey.com>
3000
3001 * compile/compile-cplus-types.c
3002 (compile_cplus_convert_struct_or_union): Use std::vector.
3003 (compile_cplus_convert_func): Likewise.
3004 * compile/compile-c-types.c (convert_func): Use std::vector.
3005
5dd918d9
TT
30062020-09-21 Tom Tromey <tromey@adacore.com>
3007
3008 * sparc-tdep.c (sparc32_skip_prologue): Use
3009 skip_prologue_using_sal.
3010
5486c517
TT
30112020-09-19 Tom Tromey <tom@tromey.com>
3012
3013 * symfile.c (add_section_size_callback): Remove.
3014 (load_one_section): Rename from load_section_callback. Change
3015 parameters.
3016 (generic_load): Use foreach.
3017
8a6bb1d1
TT
30182020-09-19 Tom Tromey <tom@tromey.com>
3019
3020 * exec.c (add_to_section_table): Remove.
3021 (build_section_table): Use foreach.
3022
08f93a1a
TT
30232020-09-19 Tom Tromey <tom@tromey.com>
3024
3025 * elfread.c (elf_locate_sections): Change parameters.
3026 (elf_symfile_read): Use foreach.
3027
03cd72b8
TT
30282020-09-19 Tom Tromey <tom@tromey.com>
3029
3030 * cli/cli-dump.c (struct callback_data): Remove.
3031 (restore_one_section): Rename from restore_section_callback.
3032 Change parameters.
3033 (restore_binary_file): Change parameters.
3034 (restore_command): Use foreach.
3035
f4f2b85f
TT
30362020-09-19 Tom Tromey <tom@tromey.com>
3037
3038 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3039 (gcore_copy_callback): Likewise.
3040 (gcore_memory_sections): Use foreach.
3041
b35c1d1c
TT
30422020-09-19 Tom Tromey <tom@tromey.com>
3043
3044 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3045 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3046 parameters.
3047 (generic_elf_osabi_sniffer): Use foreach.
3048 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3049 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3050
5bb6e9dd
TT
30512020-09-19 Tom Tromey <tom@tromey.com>
3052
3053 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3054 (dwarf2_get_dwz_file): Use foreach.
3055 (dwarf2_locate_dwo_sections): Change parameters.
3056 (open_and_init_dwo_file): Use foreach.
3057 (dwarf2_locate_common_dwp_sections): Change parameters.
3058 (open_and_init_dwp_file): Use foreach.
3059
ad7277da
TT
30602020-09-19 Tom Tromey <tom@tromey.com>
3061
3062 * symfile.h: (find_lowest_section): Don't declare.
3063 * symfile.c (find_lowest_section): Now static. Change
3064 parameters.
3065 (struct place_section_arg): Remove.
3066 (place_section): Change parameters.
3067 (addr_info_make_relative): Use foreach.
3068 (symfile_dummy_outputs): Remove.
3069 (default_symfile_relocate): Use foreach.
3070
cb814f2e
TT
30712020-09-19 Tom Tromey <tom@tromey.com>
3072
3073 * objfiles.c (add_to_objfile_sections): Rename from
3074 add_to_objfile_sections_full.
3075 (add_to_objfile_sections): Remove.
3076 (build_objfile_section_table): Use foreach.
3077
3cabfd26
TT
30782020-09-19 Tom Tromey <tom@tromey.com>
3079
3080 * stap-probe.c (get_stap_base_address_1): Remove.
3081 (get_stap_base_address): Use foreach.
3082
1ce51eb5
TT
30832020-09-19 Tom Tromey <tom@tromey.com>
3084
3085 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3086 parameters.
3087 (gdb_bfd_close_or_warn): Use foreach.
3088
a190fabb
TT
30892020-09-19 Tom Tromey <tom@tromey.com>
3090
3091 * corelow.c (add_to_thread_list): Change parameters.
3092 (core_target_open): Use foreach.
3093
cafb0d81
TT
30942020-09-19 Tom Tromey <tom@tromey.com>
3095
3096 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3097 existing function.
3098
c8d5abea
AB
30992020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3100
3101 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3102 for arrays.
3103
6d816919
AB
31042020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3105
3106 * eval.c: Remove 'f-lang.h' include.
3107 (value_f90_subarray): Moved to f-lang.c.
3108 (eval_call): Renamed to...
3109 (evaluate_subexp_do_call): ...this, is no longer static, header
3110 comment moved into header file.
3111 (evaluate_funcall): Update call to eval_call.
3112 (skip_undetermined_arglist): Moved to f-lang.c.
3113 (fortran_value_subarray): Likewise.
3114 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3115 moved to evaluate_subexp_f.
3116 (calc_f77_array_dims): Moved to f-lang.c
3117 * expprint.c (print_subexp_funcall): New function.
3118 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3119 moved to print_subexp_f, OP_FUNCALL uses new function.
3120 (dump_subexp_body_funcall): New function.
3121 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3122 moved to dump_subexp_f, OP_FUNCALL uses new function.
3123 * expression.h (evaluate_subexp_do_call): Declare.
3124 * f-lang.c (value_f90_subarray): Moved from eval.c.
3125 (skip_undetermined_arglist): Likewise.
3126 (calc_f77_array_dims): Likewise.
3127 (fortran_value_subarray): Likewise.
3128 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3129 (operator_length_f): Likewise.
3130 (print_subexp_f): Likewise.
3131 (dump_subexp_body_f): Likewise.
3132 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3133 declaration of this operation to here.
3134 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3135 support moved to operator_length_f.
3136 * parser-defs.h (dump_subexp_body_funcall): Declare.
3137 (print_subexp_funcall): Declare.
3138 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3139 fortran-operator.def.
3140
8c37706a
AB
31412020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3142
3143 * eval.c (fortran_value_subarray): New function, content is taken
3144 from...
3145 (evaluate_subexp_standard): ...here, in two places. Now arrays
3146 and strings both call the new function.
3147 (calc_f77_array_dims): Add header comment, handle strings.
3148
14f9473c
VC
31492020-09-18 Victor Collod <vcollod@nvidia.com>
3150
3151 PR gdb/26635
3152 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3153 (i386_analyze_prologue): Call i386_skip_endbr.
3154
b60cea74
TT
31552020-09-18 Tom Tromey <tromey@adacore.com>
3156
3157 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3158 (windows_nat_target::wait): Update.
3159 * target/wait.h (enum target_wait_flag): New. Use
3160 DEF_ENUM_FLAGS_TYPE.
3161 * target/target.h (target_wait): Change type of options.
3162 * target.h (target_options_to_string, default_target_wait):
3163 Update.
3164 (struct target_ops) <wait>: Change type of options.
3165 * target.c (target_wait, default_target_wait, do_option): Change
3166 type of "options".
3167 (target_options_to_string): Likewise.
3168 * target-delegates.c: Rebuild.
3169 * target-debug.h (target_debug_print_target_wait_flags): Rename
3170 from target_debug_print_options.
3171 * sol-thread.c (class sol_thread_target) <wait>: Update.
3172 (sol_thread_target::wait): Update.
3173 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3174 (rs6000_nat_target::wait): Update.
3175 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3176 Update.
3177 (remote_target::wait_ns, remote_target::wait_as): Change type of
3178 "options".
3179 (remote_target::wait): Update.
3180 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3181 (gdbsim_target::wait): Update.
3182 * record-full.c (class record_full_base_target) <wait>: Update.
3183 (record_full_wait_1): Change type of "options".
3184 (record_full_base_target::wait): Update.
3185 * record-btrace.c (class record_btrace_target) <wait>: Update.
3186 (record_btrace_target::wait): Update.
3187 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3188 Update.
3189 (ravenscar_thread_target::wait): Update.
3190 * procfs.c (class procfs_target) <wait>: Update.
3191 (procfs_target::wait): Update.
3192 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3193 * obsd-nat.c (obsd_nat_target::wait): Update.
3194 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3195 (nto_procfs_target::wait): Update.
3196 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3197 * nbsd-nat.c (nbsd_wait): Change type of "options".
3198 (nbsd_nat_target::wait): Update.
3199 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3200 (thread_db_target::wait): Update.
3201 * linux-nat.h (class linux_nat_target) <wait>: Update.
3202 * linux-nat.c (linux_nat_target::wait): Update.
3203 (linux_nat_wait_1): Update.
3204 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3205 "options".
3206 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3207 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3208 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3209 (go32_nat_target::wait): Update.
3210 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3211 * gnu-nat.c (gnu_nat_target::wait): Update.
3212 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3213 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3214 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3215 * darwin-nat.c (darwin_nat_target::wait): Update.
3216 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3217 (bsd_uthread_target::wait): Update.
3218 * aix-thread.c (class aix_thread_target) <wait>: Update.
3219 (aix_thread_target::wait): Update.
3220
0295dde6
AB
32212020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3222
3223 * compile/compile-object-run.c (create_copied_type_recursive): New
3224 function.
3225 (compile_object_run): Use new function.
3226
d3483b43
JT
32272020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3228
3229 * NEWS: Mention x86_64 Cygwin core file support.
3230
e7d612ad
JT
32312020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3232
3233 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3234 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3235
aff9d387
JT
32362020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3237
62a5151b
JT
3238 * windows-tdep.h: Add prototypes.
3239 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3240 (i386_windows_core_pid_to_str): Move and rename ...
3241 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3242 (windows_core_pid_to_str): ... and here.
3243 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3244
32452020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3246 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3247 (amd64_windows_init_abi_common): ... and register.
3248
7d155da3
JT
32492020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3250
3251 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3252 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3253
e8ef12b9
PA
32542020-09-18 Pedro Alves <pedro@palves.net>
3255
3256 PR gdb/26631
3257 * thread.c (thread_find_command): Switch inferior before calling
3258 target methods.
3259
c1e1314d
TT
32602020-09-17 Tom Tromey <tromey@adacore.com>
3261
3262 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3263 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3264 (tdesc_arch_data_up): New typedef.
3265 (tdesc_use_registers, tdesc_data_alloc): Update.
3266 (tdesc_data_cleanup): Don't declare.
3267 * target-descriptions.c (tdesc_data_alloc): Return a
3268 tdesc_arch_data_up.
3269 (tdesc_arch_data_deleter::operator()): Rename from
3270 tdesc_data_cleanup. Change argument type.
3271 (tdesc_use_registers): Change early_data to an rvalue reference.
3272 (tdesc_use_registers): Don't use delete.
3273 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3274 * s390-tdep.c (s390_gdbarch_init): Update.
3275 * rx-tdep.c (rx_gdbarch_init): Update.
3276 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3277 * riscv-tdep.c (riscv_gdbarch_init): Update.
3278 * or1k-tdep.c (or1k_gdbarch_init): Update.
3279 * nios2-tdep.c (nios2_gdbarch_init): Update.
3280 * nds32-tdep.c (nds32_gdbarch_init): Update.
3281 * mips-tdep.c (mips_gdbarch_init): Update.
3282 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3283 * m68k-tdep.c (m68k_gdbarch_init): Update.
3284 * i386-tdep.c (i386_gdbarch_init): Update.
3285 * arm-tdep.c (arm_gdbarch_init): Update.
3286 * arc-tdep.c (arc_tdesc_init): Update.
3287 (arc_gdbarch_init): Update.
3288 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3289
0363df3d
HD
32902020-09-17 Hannes Domani <ssbssa@yahoo.de>
3291
3292 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3293 for WOW64 processes.
3294
280a9412
TT
32952020-09-17 Tom Tromey <tom@tromey.com>
3296
3297 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3298
6108fd18
TT
32992020-09-17 Tom Tromey <tom@tromey.com>
3300
3301 * value.c (preserve_values): Update.
3302 * python/py-type.c (save_objfile_types): Update.
3303 * guile/scm-type.c (save_objfile_types): Update.
3304 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3305 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3306 * compile/compile-object-run.c (compile_object_run): Update.
3307
fa9b1164
TT
33082020-09-17 Tom Tromey <tom@tromey.com>
3309
3310 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3311 Remove.
3312 <m_table>: Now htab_up.
3313 * typeprint.c (typedef_hash_table::recursively_update)
3314 (typedef_hash_table::add_template_parameters)
3315 (typedef_hash_table::typedef_hash_table): Update.
3316 (typedef_hash_table::~typedef_hash_table): Remove.
3317 (typedef_hash_table::typedef_hash_table)
3318 (typedef_hash_table::find_global_typedef)
3319 (typedef_hash_table::find_typedef): Update.
3320
eb53f105
TT
33212020-09-17 Tom Tromey <tom@tromey.com>
3322
3323 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3324
7a8a5d47
TT
33252020-09-17 Tom Tromey <tom@tromey.com>
3326
3327 * linespec.c (class decode_compound_collector)
3328 <~decode_compound_collector>: Remove.
3329 <m_unique_syms>: Now htab_up.
3330 (decode_compound_collector::operator ()): Update.
3331 (class symtab_collector) <~symtab_collector>: Remove.
3332 <m_symtab_table>: Now htab_up.
3333 (symtab_collector::operator ()): Update.
3334
99032cfc
TT
33352020-09-17 Tom Tromey <tom@tromey.com>
3336
3337 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3338 (filename_seen_cache::clear): Update.
3339 (~filename_seen_cache): Remove.
3340 (filename_seen_cache::seen): Update.
3341 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3342 htab_up.
3343 <~filename_seen_cache>: Remove.
3344 <traverse>: Update.
3345
32580f6d
TT
33462020-09-17 Tom Tromey <tom@tromey.com>
3347
3348 * completer.c (completion_tracker::discard_completions)
3349 (completion_tracker::~completion_tracker)
3350 (completion_tracker::maybe_add_completion)
3351 (completion_tracker::remove_completion)
3352 (completion_tracker::recompute_lowest_common_denominator)
3353 (completion_tracker::build_completion_result): Update.
3354 * completer.h (class completion_tracker) <have_completions>:
3355 Update.
3356 <m_entries_hash>: Now htab_up.
3357
c1fb9836
TT
33582020-09-17 Tom Tromey <tom@tromey.com>
3359
3360 * breakpoint.c (ambiguous_names_p): Use htab_up.
3361
88f07206
TT
33622020-09-17 Tom Tromey <tom@tromey.com>
3363
3364 * auto-load.c (struct auto_load_pspace_info)
3365 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3366 <loaded_script_files, loaded_script_texts>: Change type to
3367 htab_up.
3368 (~auto_load_pspace_info) Remove.
3369 (init_loaded_scripts_info, maybe_add_script_file)
3370 (maybe_add_script_text, auto_load_info_scripts): Update.
3371
9519b2ee
TT
33722020-09-17 Tom Tromey <tromey@adacore.com>
3373
3374 * c-exp.y (name_obstack): Now static.
3375
d2cd4113
CC
33762020-09-17 Chungyi Chi <demonic@csie.io>
3377
3378 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3379
b650a282
SM
33802020-09-16 Simon Marchi <simon.marchi@efficios.com>
3381
3382 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3383 (add_solib_catchpoint): Likewise.
3384 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3385 to bool.
3386 (add_solib_catchpoint): Change int parameter/variable to bool.
3387 (catch_load_or_unload): Likewise.
3388 (init_catchpoint): Likewise.
3389 (create_fork_vfork_event_catchpoint): Likewise.
3390 (catch_fork_command_1): Likewise.
3391 (catch_exec_command_1): Likewise.
3392
4d0bcfcf
SM
33932020-09-16 Simon Marchi <simon.marchi@efficios.com>
3394
3395 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3396 Change instance_flags to m_instance_flags.
3397
fe830662
TT
33982020-09-16 Tom Tromey <tromey@adacore.com>
3399
3400 PR gdb/26598:
3401 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3402
fe5ddfc3
JB
34032020-09-16 John Baldwin <jhb@FreeBSD.org>
3404
3405 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3406 PL_FLAG_EXEC.
3407 (fbsd_nat_target::insert_exec_catchpoint)
3408 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3409 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3410 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3411
e911c666
JB
34122020-09-16 John Baldwin <jhb@FreeBSD.org>
3413
3414 * configure.ac: Remove check for kinfo_getvmmap().
3415 * configure, config.in: Regenerate.
3416 * fbsd-nat.c (fbsd_read_mapping): Remove
3417 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3418 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3419 kinfo_get_vmmap() are always present.
3420
1f17d372
JB
34212020-09-16 John Baldwin <jhb@FreeBSD.org>
3422
3423 * fbsd-nat.c: Always include support for
3424 TARGET_OBJECT_SIGNAL_INFO.
3425
bcb1da7f
JB
34262020-09-16 John Baldwin <jhb@FreeBSD.org>
3427
3428 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3429 sysctl and remove procfs fallback.
3430
5515f729
JB
34312020-09-16 John Baldwin <jhb@FreeBSD.org>
3432
3433 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3434 * fbsd-nat.h: Likewise.
3435
da1df1db
TBA
34362020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3437
3438 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3439 argument.
3440
0e25e767
AB
34412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3442
3443 * ada-lang.c (ada_language_data): Delete.
3444 (ada_language): Remove references to ada_language_data.
3445 * c-lang.c (c_language_data): Delete.
3446 (c_language): Remove references to c_language_data.
3447 (cplus_language_data): Delete.
3448 (cplus_language): Remove references to cplus_language_data.
3449 (asm_language_data): Delete.
3450 (asm_language): Remove references to asm_language_data.
3451 (minimal_language_data): Delete.
3452 (minimal_language): Remove references to minimal_language_data.
3453 * d-lang.c (d_language_data): Delete.
3454 (d_language): Remove references to d_language_data.
3455 * f-lang.c (f_language_data): Delete.
3456 (f_language): Remove references to f_language_data.
3457 * go-lang.c (go_language_data): Delete.
3458 (go_language): Remove references to go_language_data.
3459 * language.c (unknown_language_data): Delete.
3460 (unknown_language): Remove references to unknown_language_data.
3461 (auto_language_data): Delete.
3462 (auto_language): Remove references to auto_language_data.
3463 * language.h (language_data): Delete struct.
3464 (language_defn): No longer inherit from language_data.
3465 * m2-lang.c (m2_language_data): Delete.
3466 (m2_language): Remove references to m2_language_data.
3467 * objc-lang.c (objc_language_data): Delete.
3468 (objc_language): Remove references to objc_language_data.
3469 * opencl-lang.c (opencl_language_data): Delete.
3470 (opencl_language): Remove references to opencl_language_data.
3471 * p-lang.c (pascal_language_data): Delete.
3472 (pascal_language): Remove references to pascal_language_data.
3473 * rust-lang.c (rust_language_data): Delete.
3474 (rust_language): Remove references to rust_language_data.
3475
b7c6e27d
AB
34762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3477
3478 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3479 initializer.
3480 (ada_language::opcode_print_table): New member function.
3481 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3482 (c_language::opcode_print_table): New member function.
3483 (cplus_language_data): Remove la_op_print_tab initializer.
3484 (cplus_language::opcode_print_table): New member function.
3485 (asm_language_data): Remove la_op_print_tab initializer.
3486 (asm_language::opcode_print_table): New member function.
3487 (minimal_language_data): Remove la_op_print_tab initializer.
3488 (minimal_language::opcode_print_table): New member function.
3489 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3490 (d_language::opcode_print_table): New member function.
3491 * expprint.c (print_subexp_standard): Update call to
3492 opcode_print_table.
3493 (op_string): Likewise.
3494 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3495 (f_language::opcode_print_table): New member function.
3496 * go-lang.c (go_language_data): Remove la_op_print_tab
3497 initializer.
3498 (go_language::opcode_print_table): New member function.
3499 * language.c (unknown_language_data): Remove la_op_print_tab
3500 initializer.
3501 (unknown_language::opcode_print_table): New member function.
3502 (auto_language_data): Remove la_op_print_tab initializer.
3503 (auto_language::opcode_print_table): New member function.
3504 * language.h (language_data): Remove la_op_print_tab field.
3505 (language_defn::opcode_print_table): Declare new member function.
3506 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3507 initializer.
3508 (m2_language::opcode_print_table): New member function.
3509 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3510 initializer.
3511 (objc_language::opcode_print_table): New member function.
3512 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3513 initializer.
3514 (opencl_language::opcode_print_table): New member function.
3515 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3516 initializer.
3517 (pascal_language::opcode_print_table): New member function.
3518 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3519 initializer.
3520 (rust_language::opcode_print_table): New member function.
3521
5aba6ebe
AB
35222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3523
3524 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3525 (ada_language::expression_ops): New member function.
3526 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3527 (c_language::expression_ops): New member function.
3528 (cplus_language_data): Remove la_exp_desc initializer.
3529 (cplus_language::expression_ops): New member function.
3530 (asm_language_data): Remove la_exp_desc initializer.
3531 (asm_language::expression_ops): New member function.
3532 (minimal_language_data): Remove la_exp_desc initializer.
3533 (minimal_language::expression_ops): New member function.
3534 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3535 (d_language::expression_ops): New member function.
3536 * eval.c (evaluate_subexp): Update call to expression_ops.
3537 * expprint.c (print_subexp): Likewise.
3538 (op_name): Likewise.
3539 (dump_subexp_body): Likewise.
3540 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3541 (f_language::expression_ops): New member function.
3542 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3543 (go_language::expression_ops): New member function.
3544 * language.c (language_defn::expression_ops): New function.
3545 (unknown_language_data): Remove la_exp_desc initializer.
3546 (auto_language_data): Likewise.
3547 * language.h (language_data): Remove la_exp_desc field.
3548 (language_defn::expression_ops): Declare new member function.
3549 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3550 (m2_language::expression_ops): New member function.
3551 * objc-lang.c (objc_language_data): Remove la_exp_desc
3552 initializer.
3553 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3554 initializer.
3555 (opencl_language::expression_ops): New member function.
3556 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3557 * parse.c (operator_length): Update call to expression_ops.
3558 (exp_iterate): Likewise.
3559 * rust-lang.c (rust_language_data): Remove la_exp_desc
3560 initializer.
3561 (ruse_language::expression_ops): New member function.
3562
b63a3f3f
AB
35632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3564
3565 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3566 initializer.
3567 (ada_language::varobj_ops): New member function.
3568 * c-lang.c (c_language_data): Remove la_varobj_ops
3569 initializer.
3570 (cplus_language_data): Likewise.
3571 (cplus_language::varobj_ops): New member function.
3572 (asm_language_data): Remove la_varobj_ops initializer.
3573 (minimal_language_data): Likewise.
3574 * d-lang.c (d_language_data): Likewise.
3575 * f-lang.c (f_language_data): Likewise.
3576 * go-lang.c (go_language_data): Likewise.
3577 * language.c (language_defn::varobj_ops): New function.
3578 (unknown_language_data): Remove la_varobj_ops
3579 initializer.
3580 (auto_language_data): Likewise.
3581 * language.h (language_data): Remove la_varobj_ops field.
3582 (language_defn::varobj_ops): Declare new member function.
3583 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3584 * objc-lang.c (objc_language_data): Likewise.
3585 * opencl-lang.c (opencl_language_data): Likewise.
3586 * p-lang.c (pascal_language_data): Likewise.
3587 * rust-lang.c (rust_language_data): Likewise.
3588 * varobj.c (varobj_create): Update call to varobj_ops.
3589 * varobj.h (default_varobj_ops): Delete define.
3590
1ac14a04
AB
35912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3592
3593 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3594 initializer.
3595 * c-lang.c (c_language_data): Likewise.
3596 (c_language::macro_expansion): New member function.
3597 (cplus_language_data): Likewise.
3598 (cplus_language::macro_expansion): New member function.
3599 (asm_language_data): Likewise.
3600 (asm_language::macro_expansion): New member function.
3601 (minimal_language_data): Likewise.
3602 (minimal_language::macro_expansion): New member function.
3603 * d-lang.c (d_language_data): Remove la_macro_expansion
3604 initializer.
3605 * f-lang.c (f_language_data): Likewise.
3606 * go-lang.c (go_language_data): Likewise.
3607 * language.c (unknown_language_data): Likewise.
3608 (auto_language_data): Likewise.
3609 * language.h (language_data): Remove la_macro_expansion field.
3610 (language_defn::macro_expansion): New member function.
3611 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3612 initializer.
3613 * objc-lang.c (objc_language_data): Likewise.
3614 (objc_language::macro_expansion): New member function.
3615 * opencl-lang.c (opencl_language_data): Likewise.
3616 (opencl_language::macro_expansion): New member function.
3617 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3618 initializer.
3619 * rust-lang.c (rust_language_data): Likewise.
3620 * symtab.c (default_collect_symbol_completion_matches_break_on):
3621 Update call to macro_expansion.
3622
3a3440fb
AB
36232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3624
3625 * ada-lang.c (ada_language_data): Remove la_array_ordering
3626 initializer.
3627 * c-lang.c (c_language_data): Likewise.
3628 (cplus_language_data): Likewise.
3629 (asm_language_data): Likewise.
3630 (minimal_language_data): Likewise.
3631 * d-lang.c (d_language_data): Likewise.
3632 * dwarf2/read.c (read_array_order): Update for call to
3633 array_ordering.
3634 * f-lang.c (f_language_data): Remove la_array_ordering
3635 initializer.
3636 (f_language::array_ordering): New member function.
3637 * go-lang.c (go_language_data): Remove la_array_ordering
3638 initializer.
3639 * language.c (unknown_language_data): Likewise.
3640 (auto_language_data): Likewise.
3641 * language.h (language_data): Delete la_array_ordering field.
3642 (language_defn::array_ordering): New member function.
3643 * m2-lang.c (m2_language_data): Remove la_array_ordering
3644 initializer.
3645 * objc-lang.c (objc_language_data): Likewise.
3646 * opencl-lang.c (opencl_language_data): Likewise.
3647 * p-lang.c (pascal_language_data): Likewise.
3648 * rust-lang.c (rust_language_data): Likewise.
3649
0d201fa4
AB
36502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3651
3652 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3653 initializer.
3654 * c-lang.c (c_language_data): Likewise.
3655 (cplus_language_data): Likewise.
3656 (asm_language_data): Likewise.
3657 (minimal_language_data): Likewise.
3658 * d-lang.c (d_language_data): Likewise.
3659 * f-lang.c (f_language_data): Likewise.
3660 (f_language::case_sensitivity): New member function.
3661 * go-lang.c (go_language_data): Remove la_case_sensitivity
3662 initializer.
3663 * language.c (enum case_mode): Moved here from language.h.
3664 (case_mode): Make static.
3665 (show_case_command): Update for case_sensitivity being a method.
3666 (set_case_command): Likewise.
3667 (set_range_case): Likewise.
3668 (unknown_language_data): Remove la_case_sensitivity initializer.
3669 (auto_language_data): Likewise.
3670 * language.h (case_mode): Delete, move enum declaration to
3671 language.c.
3672 (language_data): Delete la_case_sensitivity field.
3673 (language_defn::case_sensitivity): New member function.
3674 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3675 initializer.
3676 * objc-lang.c (objc_language_data): Likewise.
3677 * opencl-lang.c (opencl_language_data): Likewise.
3678 * p-lang.c (pascal_language_data): Likewise.
3679 * rust-lang.c (rust_language_data): Likewise.
3680
efdf6a73
AB
36812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3682
3683 * ada-lang.c (ada_language_data): Remove la_range_check
3684 initializer.
3685 * c-lang.c (c_language_data): Likewise.
3686 (cplus_language_data): Likewise.
3687 (asm_language_data): Likewise.
3688 (minimal_language_data): Likewise.
3689 * d-lang.c (d_language_data): Likewise.
3690 * f-lang.c (f_language_data): Likewise.
3691 (f_language::range_checking_on_by_default): New member function.
3692 * go-lang.c (go_language_data): Remove la_range_check initializer.
3693 * language.c (enum range_mode): Moved here from language.h.
3694 (range_mode): Made static.
3695 (show_range_command): Update to use
3696 range_checking_on_by_default.
3697 (set_range_command): Likewise.
3698 (set_range_case): Likewise.
3699 (unknown_language_data): Remove la_range_check initializer.
3700 (auto_language_data): Likewise.
3701 * language.h (range_mode): Delete. Enum definition moved to
3702 language.c.
3703 (language_data): Remove la_range_check field.
3704 (language_defn::range_checking_on_by_default): New member
3705 function.
3706 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3707 (m2_language::range_checking_on_by_default): New member function.
3708 * objc-lang.c (objc_language_data): Remove la_range_check
3709 initializer.
3710 * opencl-lang.c (opencl_language_data): Likewise.
3711 * p-lang.c (pascal_language_data): Likewise.
3712 (pascal_language::range_checking_on_by_default): New member
3713 function.
3714 * rust-lang.c (rust_language_data): Remove la_range_check
3715 initializer.
3716 (rust_language::range_checking_on_by_default): New member
3717 function.
3718
bf92aec5
AB
37192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3720
3721 * dwarf2/read.c (dwarf2_physname): Remove special case for
3722 language_go.
3723 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3724 member function.
3725
d3355e4d
AB
37262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3727
3728 * ada-lang.c (ada_language_data): Remove
3729 la_store_sym_names_in_linkage_form_p initializer.
3730 (ada_language::store_sym_names_in_linkage_form_p): New member
3731 function.
3732 * c-lang.c (c_language_data): Remove
3733 la_store_sym_names_in_linkage_form_p initializer.
3734 (c_language::store_sym_names_in_linkage_form_p): New member
3735 function.
3736 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3737 initializer.
3738 (asm_language_data): Likewise.
3739 (asm_language::store_sym_names_in_linkage_form_p): New member
3740 function.
3741 (minimal_language_data): Remove
3742 la_store_sym_names_in_linkage_form_p initializer.
3743 (minimal_language::store_sym_names_in_linkage_form_p): New member
3744 function.
3745 * d-lang.c (d_language_data): Remove
3746 la_store_sym_names_in_linkage_form_p initializer.
3747 * dwarf2/read.c (dwarf2_physname): Update call to
3748 store_sym_names_in_linkage_form_p.
3749 * f-lang.c (f_language_data): Remove
3750 la_store_sym_names_in_linkage_form_p initializer.
3751 * go-lang.c (go_language_data): Remove
3752 la_store_sym_names_in_linkage_form_p initializer.
3753 * language.c (unknown_language_data): Remove
3754 la_store_sym_names_in_linkage_form_p initializer.
3755 (unknown_language::store_sym_names_in_linkage_form_p): New member
3756 function.
3757 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3758 initializer.
3759 (auto_language::store_sym_names_in_linkage_form_p): New member
3760 function.
3761 * language.h (language_data): Remove
3762 la_store_sym_names_in_linkage_form_p member variable.
3763 (language_defn::store_sym_names_in_linkage_form_p): New member
3764 function.
3765 * m2-lang.c (m2_language_data): Remove
3766 la_store_sym_names_in_linkage_form_p initializer.
3767 * objc-lang.c (objc_language_data): Likewise.
3768 * opencl-lang.c (opencl_language_data): Likewise.
3769 * p-lang.c (pascal_language_data): Likewise.
3770 * rust-lang.c (rust_language_data): Likewise.
3771
22c12a6c
AB
37722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3773
3774 * ada-lang.c (ada_language_data): Remove string_lower_bound
3775 initializer.
3776 * c-lang.c (c_language_data): Likewise.
3777 (cplus_language_data): Likewise.
3778 (asm_language_data): Likewise.
3779 (minimal_language_data): Likewise.
3780 * d-lang.c (d_language_data): Likewise.
3781 * f-lang.c (f_language_data): Likewise.
3782 * go-lang.c (go_language_data): Likewise.
3783 * language.c (unknown_language_data): Likewise.
3784 (auto_language_data): Likewise.
3785 * language.h (language_data): Remove string_lower_bound field.
3786 (language_defn::string_lower_bound): New member function.
3787 * m2-lang.c (m2_language_data): Remove string_lower_bound
3788 initializer.
3789 (m2_language::string_lower_bound): New member function.
3790 * objc-lang.c (objc_language_data): Remove string_lower_bound
3791 initializer.
3792 * opencl-lang.c (opencl_language_data): Likewise.
3793 * p-lang.c (pascal_language_data): Likewise.
3794 * rust-lang.c (rust_language_data): Likewise.
3795 * valops.c (value_cstring): Update call to string_lower_bound.
3796 (value_string): Likewise.
3797 * value.c (allocate_repeated_value): Likewise.
3798
1c236ddd
AB
37992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3800
3801 * valops.c (value_repeat): Fix incorrect argument name in comment.
3802
67bd3fd5
AB
38032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3804
3805 * ada-lang.c (ada_language_data): Remove c_style_arrays
3806 initializer.
3807 (ada_language::c_style_arrays_p): New member fuction.
3808 * c-lang.c (c_language_data): Remove c_style_arrays
3809 initializer.
3810 (cplus_language_data): Likewise.
3811 (asm_language_data): Likewise.
3812 (minimal_language_data): Likewise.
3813 * d-lang.c (d_language_data): Likewise.
3814 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3815 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3816 (f_language::c_style_arrays_p): New member function.
3817 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3818 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3819 * language.c (unknown_language_data): Remove c_style_arrays
3820 initializer.
3821 (auto_language_data): Likewise.
3822 * language.h (language_data): Remove c_style_arrays field.
3823 (language_defn::c_style_arrays_p): New member function.
3824 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3825 (m2_language::c_style_arrays_p): New member function.
3826 * objc-lang.c (objc_language_data): Remove c_style_arrays
3827 initializer.
3828 * opencl-lang.c (opencl_language_data): Likewise.
3829 * p-lang.c (pascal_language_data): Likewise.
3830 * rust-lang.c (rust_language_data): Likewise.
3831 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3832 and update local variable to a bool.
3833 * valops.c (value_cast): Update call to c_style_arrays_p.
3834 (value_array): Likewise.
3835 * value.c (coerce_array): Likewise.
3836
85967615
AB
38372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3838
3839 * ada-lang.c (ada_language_data): Remove la_language initializer.
3840 * c-lang.c (c_language_data): Likewise.
3841 (cplus_language_data): Likewise.
3842 (asm_language_data): Likewise.
3843 (minimal_language_data): Likewise.
3844 * d-lang.c (d_language_data): Likewise.
3845 * f-lang.c (f_language_data): Likewise.
3846 * go-lang.c (go_language_data): Likewise.
3847 * language.c (unknown_language_data): Likewise.
3848 (auto_language_data): Likewise.
3849 * language.h (language_data): Remove la_language field.
3850 (language_defn::language_defn): Initialise la_language field.
3851 (language_defn::la_language): New member variable.
3852 * m2-lang.c (m2_language_data): Remove la_language field.
3853 * objc-lang.c (objc_language_data): Likewise.
3854 * opencl-lang.c (opencl_language_data): Likewise.
3855 * p-lang.c (pascal_language_data): Likewise.
3856 * rust-lang.c (rust_language_data): Likewise.
3857
e171d6f1
AB
38582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3859
3860 * ada-lang.c (ada_extensions): Delete, moved into
3861 ada_language::filename_extensions.
3862 (ada_language_data): Remove la_filename_extensions initializer.
3863 (ada_language::filename_extensions): New member function.
3864 * c-lang.c (c_extensions): Delete, moved into
3865 c_language::filename_extensions.
3866 (c_language_data): Remove la_filename_extensions initializer.
3867 (c_language::filename_extensions): New member function.
3868 (cplus_extensions): Delete, moved into
3869 cplus_language::filename_extensions.
3870 (cplus_language_data): Remove la_filename_extensions initializer.
3871 (cplus_language::filename_extensions): New member function.
3872 (asm_extensions): Delete, moved into
3873 asm_language::filename_extensions.
3874 (asm_language_data): Remove la_filename_extensions initializer.
3875 (asm_language::filename_extensions): New member function.
3876 (minimal_language_data): Remove la_filename_extensions
3877 initializer.
3878 * d-lang.c (d_extensions): Delete, moved into
3879 d_language::filename_extensions.
3880 (d_language_data): Remove la_filename_extensions initializer.
3881 (d_language::filename_extensions): New member function.
3882 * f-lang.c (f_extensions): Delete, moved into
3883 f_language::filename_extensions.
3884 (f_language_data): Remove la_filename_extensions initializer.
3885 (f_language::filename_extensions): New member function.
3886 * go-lang.c (go_language_data): Remove la_filename_extensions
3887 initializer.
3888 * language.c (add_set_language_command): Update now that
3889 filename_extensions returns a vector.
3890 (unknown_language_data): Remove la_filename_extensions
3891 initializer.
3892 (auto_language_data): Likewise.
3893 * language.h (language_data): Remove la_filename_extensions field.
3894 (language_defn::filename_extensions): New member function.
3895 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3896 initializer.
3897 * objc-lang.c (objc_extensions): Delete, moved into
3898 objc_language::filename_extensions.
3899 (objc_language_data): Remove la_filename_extensions initializer.
3900 (objc_language::filename_extensions): New member function.
3901 * opencl-lang.c (opencl_language_data): Remove
3902 la_filename_extensions initializer.
3903 * p-lang.c (pascal_extensions): Delete, moved into
3904 pascal_language::filename_extensions.
3905 (pascal_language_data): Remove la_filename_extensions initializer.
3906 (pascal_language::filename_extensions): New member function.
3907 * rust-lang.c (rust_extensions): Delete, moved into
3908 rust_language::filename_extensions.
3909 (rust_language_data): Remove la_filename_extensions initializer.
3910 (rust_language::filename_extensions): New member function.
3911 * symfile.c (add_filename_language): Add new assert.
3912
6f7664a9
AB
39132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3914
3915 * ada-lang.c (ada_language_data): Remove la_name and
3916 la_natural_name initializers.
3917 (ada_language::name): New member function.
3918 (ada_language::natural_name): New member function.
3919 * c-lang.c (c_language_data): Remove la_name and
3920 la_natural_name initializers.
3921 (c_language::name): New member function.
3922 (c_language::natural_name): New member function.
3923 (cplus_language_data): Remove la_name and
3924 la_natural_name initializers.
3925 (cplus_language::name): New member function.
3926 (cplus_language::natural_name): New member function.
3927 (asm_language_data): Remove la_name and
3928 la_natural_name initializers.
3929 (asm_language::name): New member function.
3930 (asm_language::natural_name): New member function.
3931 (minimal_language_data): Remove la_name and
3932 la_natural_name initializers.
3933 (minimal_language::name): New member function.
3934 (minimal_language::natural_name): New member function.
3935 * compile/compile.c (compile_to_object): Update call to
3936 lanugage_defn::name.
3937 * d-lang.c (d_language_data): Remove la_name and
3938 la_natural_name initializers.
3939 (d_language::name): New member function.
3940 (d_language::natural_name): New member function.
3941 * expprint.c (print_subexp_standard): Update call to
3942 language_defn::name.
3943 (dump_raw_expression): Likewise
3944 (dump_prefix_expression): Likewise.
3945 * f-lang.c (f_language_data): Remove la_name and
3946 la_natural_name initializers.
3947 (f_language::name): New member function.
3948 (f_language::natural_name): New member function.
3949 * go-lang.c (go_language_data): Remove la_name and
3950 la_natural_name initializers.
3951 (go_language::name): New member function.
3952 (go_language::natural_name): New member function.
3953 * language.c (show_language_command): Update call to
3954 language_defn::name.
3955 (set_language_command): Likewise.
3956 (language_enum): Likewise.
3957 (language_str): Likewise.
3958 (add_set_language_command): Likewise, use
3959 language_defn::natural_name in the doc string.
3960 (unknown_language_data): Remove la_name and
3961 la_natural_name initializers.
3962 (unknown_language::name): New member function.
3963 (unknown_language::natural_name): New member function.
3964 (auto_language_data): Remove la_name and
3965 la_natural_name initializers.
3966 (auto_language::name): New member function.
3967 (auto_language::natural_name): New member function.
3968 (language_lookup_primitive_type_as_symbol): Update call to
3969 language_defn::name.
3970 * language.h (language_data): Remove la_name and la_natural_name
3971 member variables.
3972 (language_defn::name): New member function.
3973 (language_defn::natural_name): New member function.
3974 * m2-lang.c (m2_language_data): Remove la_name and
3975 la_natural_name initializers.
3976 (m2_language::name): New member function.
3977 (m2_language::natural_name): New member function.
3978 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3979 language_defn::natural_name.
3980 * objc-lang.c (objc_language_data): Remove la_name and
3981 la_natural_name initializers.
3982 (objc_language::name): New member function.
3983 (objc_language::natural_name): New member function.
3984 * opencl-lang.c (opencl_language_data): Remove la_name and
3985 la_natural_name initializers.
3986 (opencl_language::name): New member function.
3987 (opencl_language::natural_name): New member function.
3988 * p-lang.c (pascal_language_data): Remove la_name and
3989 la_natural_name initializers.
3990 (pascal_language::name): New member function.
3991 (pascal_language::natural_name): New member function.
3992 * rust-lang.c (rust_language_data): Remove la_name and
3993 la_natural_name initializers.
3994 (rust_language::name): New member function.
3995 (rust_language::natural_name): New member function.
3996 * symtab.c (lookup_language_this): Update call to
3997 language_defn::name.
3998
5bae7c4e
AB
39992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4000
4001 * ada-lang.c (ada_language_data): Remove la_name_of_this
4002 initializer.
4003 * ax-gdb.c (gen_expr): Update call to name_of_this.
4004 * c-exp.y (classify_name): Likewise.
4005 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4006 (cplus_language_data): Likewise.
4007 (cplus_language::name_of_this): New member function.
4008 (asm_language_data): Remove la_name_of_this initializer.
4009 (minimal_language_data): Likewise.
4010 * d-lang.c (d_language_data): Likewise.
4011 (d_language::name_of_this): New member function.
4012 * expprint.c (print_subexp_standard): Update call to name_of_this.
4013 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4014 * go-lang.c (go_language_data): Likewise.
4015 * language.c (unknown_language_data): Likewise.
4016 (unknown_language::name_of_this): New member function.
4017 (auto_language_data): Remove la_name_of_this initializer.
4018 (auto_language::name_of_this): New member function.
4019 * language.h (language_data): Delete la_name_of_this member
4020 variable.
4021 (language_defn::name_of_this): New member function.
4022 * m2-lang.c (m2_language_data): Remove la_name_of_this
4023 initializer.
4024 * objc-lang.c (objc_language_data): Likewise.
4025 (objc_language::name_of_this): New member function.
4026 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4027 initializer.
4028 * p-lang.c (pascal_language_data): Likewise.
4029 (pascal_language::name_of_this): New member function.
4030 * rust-lang.c (rust_language_data): Remove la_name_of_this
4031 initializer.
4032 * symtab.c (lookup_language_this): Update call to name_of_this.
4033 (lookup_symbol_aux): Likewise.
4034 * valops.c (value_of_this): Likewise.
4035
22e3f3ed
AB
40362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4037
4038 * ada-lang.c (ada_language_data): Remove
4039 la_struct_too_deep_ellipsis initializer.
4040 (ada_language::struct_too_deep_ellipsis): New member function.
4041 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4042 initializer.
4043 (cplus_language_data): Likewise.
4044 (asm_language_data): Likewise.
4045 (minimal_language_data): Likewise.
4046 * cp-valprint.c (cp_print_value): Update call to
4047 struct_too_deep_ellipsis.
4048 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4049 initializer.
4050 * f-lang.c (f_language_data): Likewise.
4051 (f_language::struct_too_deep_ellipsis): New member function.
4052 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4053 initializer.
4054 * language.c (unknown_language_data): Likewise.
4055 (auto_language_data): Likewise.
4056 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4057 member variable.
4058 (language_defn::struct_too_deep_ellipsis): New member function.
4059 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4060 initializer.Q
4061 * objc-lang.c (objc_language_data): Likewise.
4062 * opencl-lang.c (opencl_language_data): Likewise.
4063 * p-lang.c (pascal_language_data): Likewise.
4064 * rust-lang.c (rust_language_data): Likewise.
4065 * valprint.c (val_print_check_max_depth): Update call to
4066 struct_too_deep_ellipsis.
4067
ed29e1c7
FW
40682020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4069
4070 * MAINTAINERS (Write After Approval): Add myself.
4071
12d8f940
TT
40722020-09-15 Tom Tromey <tom@tromey.com>
4073
4074 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4075 Remove.
4076
6b5a7bc7
TT
40772020-09-15 Tom Tromey <tom@tromey.com>
4078
4079 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4080 and TYPE_CODE_METHODPTR cases.
4081 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4082 (c_value_print_inner): Update.
4083 * valprint.c (generic_value_print_memberptr): New function, from
4084 c_value_print_memberptr.
4085 (generic_value_print): Use it. Call cplus_print_method_ptr.
4086
47f0e2ff
TT
40872020-09-15 Tom Tromey <tromey@adacore.com>
4088
4089 * python/python-internal.h (PyInt_FromLong): Remove define.
4090 * python/py-value.c (convert_value_from_python): Use
4091 gdb_py_object_from_longest.
4092 * python/py-type.c (typy_get_code): Use
4093 gdb_py_object_from_longest.
4094 * python/py-symtab.c (salpy_get_line): Use
4095 gdb_py_object_from_longest.
4096 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4097 gdb_py_object_from_longest.
4098 * python/py-record.c (recpy_gap_reason_code): Use
4099 gdb_py_object_from_longest.
4100 * python/py-record-btrace.c (recpy_bt_insn_size)
4101 (recpy_bt_func_level, btpy_list_count): Use
4102 gdb_py_object_from_longest.
4103 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4104 gdb_py_object_from_longest. Fix error handling.
4105 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4106 gdb_py_object_from_longest.
4107 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4108 gdb_py_object_from_longest.
4109 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4110 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4111 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4112
512116ce
TT
41132020-09-15 Tom Tromey <tromey@adacore.com>
4114
4115 * python/python.c (gdbpy_parameter_value): Use
4116 gdb_py_object_from_ulongest.
4117
4ab1029c
TT
41182020-09-15 Tom Tromey <tromey@adacore.com>
4119
4120 * python/py-infevents.c (create_register_changed_event_object):
4121 Use gdb_py_object_from_longest.
4122 * python/py-exitedevent.c (create_exited_event_object): Use
4123 gdb_py_object_from_longest.
4124
062534d4
TT
41252020-09-15 Tom Tromey <tromey@adacore.com>
4126
4127 * python/python.c (gdbpy_parameter_value): Use
4128 gdb_py_object_from_longest.
4129 * python/py-type.c (convert_field, typy_range): Use
4130 gdb_py_object_from_longest.
4131 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4132 gdb_py_object_from_longest.
4133 * python/py-lazy-string.c (stpy_get_length): Use
4134 gdb_py_object_from_longest.
4135 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4136 gdb_py_object_from_longest.
4137 * python/py-infevents.c (create_memory_changed_event_object): Use
4138 gdb_py_object_from_longest.
4139 * python/py-inferior.c (infpy_get_num): Use
4140 gdb_py_object_from_longest.
4141 (infpy_get_pid): Likewise.
4142
d1cab987
TT
41432020-09-15 Tom Tromey <tromey@adacore.com>
4144
4145 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4146 defines.
4147 * python/py-value.c (valpy_long): Use
4148 gdb_py_object_from_ulongest.
4149 * python/py-symtab.c (salpy_get_pc): Use
4150 gdb_py_object_from_ulongest.
4151 (salpy_get_last): Likewise.
4152 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4153 gdb_py_object_from_ulongest.
4154 * python/py-lazy-string.c (stpy_get_address): Use
4155 gdb_py_object_from_ulongest.
4156 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4157 * python/py-arch.c (archpy_disassemble): Use
4158 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4159 error handling.
4160
4bde49dc
TT
41612020-09-15 Tom Tromey <tromey@adacore.com>
4162
4163 * python/python-internal.h (gdb_py_long_from_longest): Remove
4164 defines.
4165 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4166 * python/py-type.c (convert_field, typy_get_sizeof): Use
4167 gdb_py_object_from_longest.
4168 * python/py-record-btrace.c (btpy_list_index): Use
4169 gdb_py_object_from_longest.
4170
37431074
TT
41712020-09-15 Tom Tromey <tromey@adacore.com>
4172
4173 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4174 * python/py-record.c (recpy_element_number): Use
4175 gdb_py_object_from_longest.
4176 (recpy_gap_number): Likewise.
4177
cbe25684
TT
41782020-09-15 Tom Tromey <tromey@adacore.com>
4179
4180 * top.c (ui::ui): Update.
4181 (highest_ui_num): Remove.
4182 * top.h (struct ui) <num>: Remove.
4183
db92ac45
TT
41842020-09-15 Tom Tromey <tromey@adacore.com>
4185
4186 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4187 * ui-style.c (ansi_regex_text): Now array.
4188 * rust-exp.y (number_regex_text): Now array.
4189 * linespec.c (linespec_quote_characters): Now array.
4190 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4191 Now arrays.
4192
d2b31b67
SM
41932020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4194
4195 * debuginfod-support.c (debuginfod_client_deleter): New.
4196 (debuginfod_client_up): New.
4197 (debuginfod_init): Return debuginfod_client_up.
4198 (debuginfod_source_query): Adjust.
4199 (debuginfod_debuginfo_query): Adjust.
4200
3246bd8e
SM
42012020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4202
4203 * debuginfod-support.c (debuginfod_source_query): Use
4204 make_unique_xstrdup.
4205
10242f36
SM
42062020-09-14 Simon Marchi <simon.marchi@efficios.com>
4207
4208 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4209 with `type::instance_flags`.
4210
e1044e6a
MM
42112020-09-14 Michael Mullin <masmullin@gmail.com>
4212
4213 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4214 Remove baton parameter.
4215
04902b09
PA
42162020-09-14 Pedro Alves <pedro@palves.net>
4217
4218 * Makefile.in (SELFTESTS_SRCS): Add
4219 unittests/enum-flags-selftests.c.
4220 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4221 btrace_function_flags instead of enum btrace_function_flag.
4222 * compile/compile-c-types.c (convert_qualified): Use
4223 enum_flags::raw.
4224 * compile/compile-cplus-symbols.c (convert_one_symbol)
4225 (convert_symbol_bmsym):
4226 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4227 (compile_cplus_convert_struct_or_union_methods)
4228 (compile_cplus_instance::convert_qualified_base):
4229 * go-exp.y (parse_string_or_char): Add cast to int.
4230 * unittests/enum-flags-selftests.c: New file.
4231 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4232 type to btrace_thread_flags from btrace_thread_flag.
4233 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4234 local's type to btrace_thread_flags from btrace_thread_flag. Add
4235 cast in DEBUG call.
4236
69896a2c
PA
42372020-09-14 Pedro Alves <pedro@palves.net>
4238
4239 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4240 * gdbtypes.c (address_space_name_to_int): Rename to ...
4241 (address_space_name_to_type_instance_flags): ... this.
4242 (address_space_int_to_name): Rename to ...
4243 (address_space_type_instance_flags_to_name): ... this.
4244 * gdbtypes.h (address_space_name_to_int): Rename to ...
4245 (address_space_name_to_type_instance_flags): ... this.
4246 (address_space_int_to_name): Rename to ...
4247 (address_space_type_instance_flags_to_name): ... this.
4248 * type-stack.c (type_stack::insert): Adjust to rename.
4249 * type-stack.h (type_stack::insert): Likewise.
4250
314ad88d
PA
42512020-09-14 Pedro Alves <pedro@palves.net>
4252 Andrew Burgess <andrew.burgess@embecosm.com>
4253
4254 * avr-tdep.c (avr_address_class_type_flags): Return
4255 type_instance_flags.
4256 (avr_address_class_type_flags_to_name): Take a
4257 type_instance_flags.
4258 (avr_address_class_name_to_type_flags): Return bool and take a
4259 type_instance_flags.
4260 * d-lang.c (build_d_types): Use type::set_instance_flags.
4261 * ft32-tdep.c (ft32_address_class_type_flags): Return
4262 type_instance_flags.
4263 (ft32_address_class_type_flags_to_name): Take a
4264 type_instance_flags.
4265 (ft32_address_class_name_to_type_flags): Return bool and take a
4266 type_instance_flags.
4267 (ft32_gdbarch_init): Use type::set_instance_flags.
4268 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4269 * gdbarch.h, gdbarch.c: Regenerate.
4270 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4271 (address_class_name_to_type_flags): Use type_instance_flags and
4272 bool.
4273 * gdbtypes.c (address_space_name_to_int)
4274 (address_space_int_to_name, make_qualified_type): Use
4275 type_instance_flags.
4276 (make_qualified_type): Use type_instance_flags and
4277 type::set_instance_flags.
4278 (make_type_with_address_space, make_cv_type, make_vector_type)
4279 (check_typedef): Use type_instance_flags.
4280 (recursive_dump_type): Cast type_instance_flags to unsigned for
4281 printing.
4282 (copy_type_recursive): Use type::set_instance_flags.
4283 (gdbtypes_post_init): Use type::set_instance_flags.
4284 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4285 <m_instance_flags>: ... this.
4286 <instance_flags, set_instance_flags>: New methods.
4287 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4288 (SET_TYPE_INSTANCE_FLAGS): New.
4289 (address_space_name_to_int, address_space_int_to_name)
4290 (make_type_with_address_space): Pass flags using
4291 type_instance_flags instead of int.
4292 * stabsread.c (cleanup_undefined_types_noname): Use
4293 type::set_instance_flags.
4294 * s390-tdep.c (s390_address_class_type_flags): Return
4295 type_instance_flags.
4296 (s390_address_class_type_flags_to_name): Take a
4297 type_instance_flags.
4298 (s390_address_class_name_to_type_flags): Return bool and take a
4299 type_instance_flags.
4300 * type-stack.c (type_stack::follow_types): Use
4301 type_instance_flags.
4302 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4303
27087b7f
TT
43042020-09-14 Tom Tromey <tromey@adacore.com>
4305
4306 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4307 * x86-tdep.c (x86_is_thunk_register_name)
4308 (x86_in_indirect_branch_thunk): Update.
4309 * sparc64-tdep.c (sparc64_fpu_register_names)
4310 (sparc64_cp0_register_names, sparc64_register_names)
4311 (sparc64_pseudo_register_names): Now const.
4312 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4313 cp0_registers_num>: Now const.
4314 * sparc-tdep.c (sparc_core_register_names)
4315 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4316 (sparc32_pseudo_register_names): Now const.
4317 (validate_tdesc_registers): Update.
4318 * rust-lang.c (rust_extensions): Now const.
4319 * p-lang.c (p_extensions): Now const.
4320 * objc-lang.c (objc_extensions): Now const.
4321 * nto-tdep.c (nto_thread_state_str): Now const.
4322 * moxie-tdep.c (moxie_register_names): Now const.
4323 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4324 Now const.
4325 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4326 (mips_linux_reg_names): Now const.
4327 (mips_gdbarch_init): Update.
4328 * microblaze-tdep.c (microblaze_register_names): Now const.
4329 * m68k-tdep.c (m68k_register_names): Now const.
4330 * m32r-tdep.c (m32r_register_names): Now const.
4331 * ia64-tdep.c (ia64_register_names): Now const.
4332 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4333 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4334 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4335 ymm_avx512_register_names, pkeys_register_names>: Now const.
4336 * i386-tdep.c (i386_register_names, i386_zmm_names)
4337 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4338 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4339 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4340 * f-lang.c (f_extensions): Now const.
4341 * d-lang.c (d_extensions): Now const.
4342 * csky-tdep.c (csky_register_names): Now const.
4343 * charset.c (default_charset_names, charset_enum): Now const.
4344 (_initialize_charset): Update.
4345 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4346 const.
4347 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4348 (bsd_uthread_solib_loaded): Update.
4349 (bsd_uthread_state): Now const.
4350 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4351 (amd64_ymm_avx512_names, amd64_ymmh_names)
4352 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4353 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4354 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4355 (amd64_dword_names): Now const.
4356 * agent.c (can_use_agent_enum): Now const.
4357 * ada-tasks.c (task_states, long_task_states): Now const.
4358 * ada-lang.c (known_runtime_file_name_patterns)
4359 (known_auxiliary_function_name_patterns, attribute_names)
4360 (standard_exc, ada_extensions): Now const.
4361
89806626
SM
43622020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4363
4364 * bcache.h (struct bcache) <bcache>: Remove constructor.
4365 <m_hash_function, m_compare_function>: Remove.
4366 <~bcache>: Make virtual.
4367 <compare>: Remove static method, introduce virtual method.
4368 <default_hash>: Remove.
4369 <hash>: New virtual method.
4370 * bcache.c (bcache::expand_hash_table): Update.
4371 (bcache::insert): Update.
4372 (bcache::hash): New.
4373 (bcache::compare): Update comment and parameter names.
4374 * gdbtypes.c (types_deeply_equal): Update.
4375 * psymtab.h (struct psymbol_bcache): New struct.
4376 (class psymtab_storage) <psymtab_storage>: Make default.
4377 <psymbol_cache>: Change type to psymbol_bcache.
4378 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4379 (psymbol_hash): Change to...
4380 (psymbol_bcache::hash): ... this.
4381 (psymbol_compare): Change to...
4382 (psymbol_bcache::compare): ... this.
4383
677c92fe
SM
43842020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4385
4386 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4387 checking for initial lwp.
4388
3eba3a01
TT
43892020-09-14 Tom Tromey <tromey@adacore.com>
4390
4391 * m68k-tdep.c (m68k_extract_return_value): Use
4392 pointer_result_regnum.
4393 (m68k_store_return_value): Likewise.
4394 (m68k_reg_struct_return_p): Handle vectors and arrays.
4395 (m68k_return_value): Handle arrays.
4396 (m68k_svr4_return_value): Fix single-element aggregate handling.
4397 Handle long double. Adjust for embedded ABI.
4398 (m68k_svr4_init_abi): Set pointer_result_regnum.
4399 (m68k_embedded_init_abi): New function.
4400 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4401 (m68k_osabi_sniffer): New function.
4402 (_initialize_m68k_tdep): Register osabi sniffer.
4403 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4404 member.
4405
33f4dd48
SM
44062020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4407
4408 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4409 with gdb::unique_xmalloc_ptr<char>.
4410
8400a90d
SM
44112020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4412
4413 * xml-support.h (xml_fetch_another): Change type to be a
4414 function_view.
4415 (xml_process_xincludes): Remove baton parameter.
4416 (xml_fetch_content_from_file): Change baton parameter to
4417 dirname.
4418 * xml-support.c (struct xinclude_parsing_data)
4419 <xinclude_parsing_data>: Remove baton parameter.
4420 <fetcher_baton>: Remove.
4421 (xinclude_start_include): Adjust.
4422 (xml_process_xincludes): Adjust.
4423 (xml_fetch_content_from_file): Replace baton parameter with
4424 dirname.
4425 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4426 (xml_init_syscalls_info): Use a lambda.
4427 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4428 (file_read_description_xml): Use a lambda.
4429 (fetch_available_features_from_target): Change baton parameter
4430 to target_ops.
4431 (target_read_description_xml): Use a lambda.
4432 (target_fetch_description_xml): Use a lambda.
4433 (string_read_description_xml): Update.
4434
04f5bab2
SM
44352020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4436
4437 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4438 uses with type::endianity_is_not_default.
4439
db558e34
SM
44402020-09-14 Simon Marchi <simon.marchi@efficios.com>
4441
4442 * gdbtypes.h (struct type) <endianity_is_not_default,
4443 set_endianity_is_not_default>: New methods.
4444 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4445 type::endianity_is_not_default, change all write call sites to
4446 use type::set_endianity_is_not_default.
4447
22c4c60c
SM
44482020-09-14 Simon Marchi <simon.marchi@efficios.com>
4449
4450 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4451 uses with type::is_fixed_instance.
4452
9cdd0d12
SM
44532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4454
4455 * gdbtypes.h (struct type) <is_fixed_instance,
4456 set_is_fixed_instance>: New methods.
4457 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4458 write call sites to use type::set_is_fixed_instance.
4459
0becda7a
SM
44602020-09-14 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4463 uses with type::is_gnu_ifunc.
4464
03cc7249
SM
44652020-09-14 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4468 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4469 use type::set_is_gnu_ifunc.
4470
3f46044c
SM
44712020-09-14 Simon Marchi <simon.marchi@efficios.com>
4472
4473 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4474 uses with type::stub_is_supported.
4475
9baccff6
SM
44762020-09-14 Simon Marchi <simon.marchi@efficios.com>
4477
4478 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4479 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4480 use type::set_stub_is_supported.
4481
bd63c870
SM
44822020-09-14 Simon Marchi <simon.marchi@efficios.com>
4483
4484 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4485 uses with type::is_vector.
4486
2062087b
SM
44872020-09-14 Simon Marchi <simon.marchi@efficios.com>
4488
4489 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4490 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4491 use type::set_is_vector.
4492
a409645d
SM
44932020-09-14 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4496 uses with type::has_varargs.
4497
1d6286ed
SM
44982020-09-14 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4501 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4502 use type::set_has_varargs.
4503
7f9f399b
SM
45042020-09-14 Simon Marchi <simon.marchi@efficios.com>
4505
4506 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4507 uses with type::is_prototyped.
4508
27e69b7a
SM
45092020-09-14 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4512 New methods.
4513 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4514 call sites to use type::set_is_prototyped.
4515
d2183968
SM
45162020-09-14 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4519 uses with type::target_is_stub.
4520
8f53807e
SM
45212020-09-14 Simon Marchi <simon.marchi@efficios.com>
4522
4523 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4524 New methods.
4525 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4526 sites to use type::set_target_is_stub.
4527
e46d3488
SM
45282020-09-14 Simon Marchi <simon.marchi@efficios.com>
4529
4530 * gdbtypes.h (TYPE_STUB): Remove, replace all
4531 uses with type::is_stub.
4532
b4b73759
SM
45332020-09-14 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4536 (TYPE_STUB): Use type::is_stub, change all write call sites to
4537 use type::set_is_stub.
4538
20ce4123
SM
45392020-09-14 Simon Marchi <simon.marchi@efficios.com>
4540
4541 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4542 type::has_no_signedness.
4543
15152a54
SM
45442020-09-14 Simon Marchi <simon.marchi@efficios.com>
4545
4546 * gdbtypes.h (struct type) <has_no_signedness,
4547 set_has_no_signedness>: New methods.
4548 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4549 call sites to use type::set_has_no_signedness.
4550
c6d940a9
SM
45512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4552
4553 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4554 type::is_unsigned.
4555
653223d3
SM
45562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4557
4558 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4559 methods.
4560 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4561 sites to use type::set_is_unsigned.
4562
55ea94da 45632020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4564 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4565
e851246a
SM
4566 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4567 pointer and stack frame offset when unwinding.
55ea94da 4568
6791b117
PA
45692020-09-13 Pedro Alves <pedro@palves.net>
4570
4571 * NEWS: Document "-break-insert --qualified".
4572 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4573
77f2120b
PA
45742020-09-13 Pedro Alves <pedro@palves.net>
4575
4576 * linespec.c (classify_mtype, compare_msyms): Delete.
4577 (search_minsyms_for_name): Remove classification logic. Instead
4578 filter out trampoline symbols if we also found an external
4579 function of the same name.
4580
ed6a896c
JB
45812020-09-13 Joel Brobecker <brobecker@adacore.com>
4582
4583 * NEWS: Create a new section for the next release branch.
4584 Rename the section of the current branch, now that it has
4585 been cut.
4586
32aea73e
JB
45872020-09-13 Joel Brobecker <brobecker@adacore.com>
4588
4589 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4590 * version.in: Bump version to 11.0.50.DATE-git.
4591
8087c3fa
JB
45922020-09-12 Joel Brobecker <brobecker@adacore.com>
4593
4594 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4595
2a67f09d
FW
45962020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4597 Felix Willgerodt <Felix.Willgerodt@intel.com>
4598
4599 * gdbarch.sh: Added bfloat16 type.
4600 * gdbarch.c: Regenerated.
4601 * gdbarch.h: Regenerated.
4602 * gdbtypes.c (floatformats_bfloat16): New struct.
4603 (gdbtypes_post_init): Add builtin_bfloat16.
4604 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4605 (floatformats_bfloat16): New struct.
4606 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4607 (i386_ymm_type): Add field "v16_bfloat16"
4608 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4609 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4610 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4611 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4612 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4613 * features/i386/64bit-avx512.c: Regenerated.
4614 * features/i386/64bit-sse.xml: Add bfloat16 type.
4615 * features/i386/64bit-sse.c: Regenerated.
4616
1347d111
FW
46172020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4618
4619 * i386-tdep.c (i386_zmm_type): Fix field names.
4620 (i386_ymm_type): Fix field names.
4621
7a4e8e7d
TBA
46222020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4623
4624 * breakpoint.c: Fix typo in the help message of the
4625 "set breakpoint condition-evaluation" command.
4626
cf4ac4be
KR
46272020-09-10 Kamil Rytarowski <n54@gmx.com>
4628
4629 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4630 * (nbsd_nat_target::pid_to_exec_file)
4631 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4632 (nbsd_nat_target::post_startup_inferior)
4633 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4634 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4635 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4636 * (nbsd_thread_lister): Remove.
4637
f404573e
KR
46382020-09-10 Kamil Rytarowski <n54@gmx.com>
4639
4640 * fork-inferior.c (startup_inferior): Avoid double free.
4641
1ccb2c17
KR
46422020-09-10 Kamil Rytarowski <n54@gmx.com>
4643
4644 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4645 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4646
feedfcc7
KR
46472020-09-10 Kamil Rytarowski <n54@gmx.com>
4648
4649 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4650 * netbsd-nat.c: Include <sys/ptrace.h>.
4651 * (netbsd_nat::enable_proc_events): Add.
4652
c489f8c6
KR
46532020-09-10 Kamil Rytarowski <n54@gmx.com>
4654
4655 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4656 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4657 (netbsd_nat::for_each_thread): Add.
4658 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4659 "gdbsupport/common-debug.h".
4660 * (netbsd_nat::netbsd_thread_lister)
4661 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4662 (netbsd_nat::for_each_thread): Add.
4663
330662f6
KR
46642020-09-10 Kamil Rytarowski <n54@gmx.com>
4665
4666 * netbsd-nat.h: Include <unistd.h>.
4667 * (netbsd_nat::pid_to_exec_file): Add.
4668 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4669 * (netbsd_nat::pid_to_exec_file) Add.
4670
70b67307
KR
46712020-09-10 Kamil Rytarowski <n54@gmx.com>
4672
4673 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4674
99cf6da6
KR
46752020-09-10 Kamil Rytarowski <n54@gmx.com>
4676
4677 * netbsd-nat.h: New file.
4678 * netbsd-nat.c: Likewise.
4679
1b788fb6
TT
46802020-09-09 Tom Tromey <tromey@adacore.com>
4681
4682 * ada-lang.c (remove_extra_symbols): Do not increment when
4683 removing an element
4684
03b0a45f
TT
46852020-09-08 Tom Tromey <tromey@adacore.com>
4686
4687 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4688
3cae4447
TT
46892020-09-08 Tom Tromey <tromey@adacore.com>
4690
4691 PR win32/25302:
4692 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4693 (gdb_bfd_init_data): New function.
4694 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4695
7f08fd51
TBA
46962020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4697
4698 * infrun.c (fetch_inferior_event): Use
4699 `switch_to_target_no_thread` to switch the target.
4700
3e6ff933
TT
47012020-09-06 Tom Tromey <tom@tromey.com>
4702
4703 * symfile.h (dwarf2_free_objfile): Don't declare.
4704
e56798df
AKS
47052020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4706
4707 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4708 to match 16 byte real/complex type generated by Flang compiler.
4709
8f5c6526
TV
47102020-09-03 Tom de Vries <tdevries@suse.de>
4711
4712 PR breakpoint/26546
4713 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4714 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4715
c5065df0
SM
47162020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4717
4718 * maint.c (index_digits): New function.
4719 (struct maint_print_section_data): Remove.
4720 (print_bfd_section_info): Remove print_data parameter, add arg
4721 and index_digits.
4722 (print_objfile_section_info): Likewise.
4723 (print_bfd_section_info_maybe_relocated): Likewise (plus
4724 objfile).
4725 (maintenance_info_sections): Adjust calls.
4726
02c6f3f1
TT
47272020-09-02 Tom Tromey <tromey@adacore.com>
4728
4729 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4730 for null pointers.
4731 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4732
ef5e5b0b
SM
47332020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4734
4735 * bcache.h (struct bcache) <insert>: Change type of `added` to
4736 pointer to bool.
4737 * bcache.c (bcache::insert): Likewise.
4738 * gdbtypes.c (check_types_worklist): Adjust.
4739 * psymtab.c (add_psymbol_to_bcache): Adjust.
4740
973695d6
KB
47412020-08-31 Kevin Buettner <kevinb@redhat.com>
4742
4743 * corelow.c (unordered_set): Include.
4744 (class core_target): Add field 'm_core_unavailable_mappings'.
4745 (core_target::build_file_mappings): Print only one warning
4746 per inaccessible file. Add unavailable/broken mappings
4747 to m_core_unavailable_mappings.
4748 (core_target::xfer_partial): Call...
4749 (core_target::xfer_memory_via_mappings): New method.
4750
264fc0e2
SM
47512020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4752
4753 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4754 type to bool.
4755
2de01bdb
SM
47562020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4757
4758 * dwarf2/read.c (struct field_info): Fix indentation.
4759
f3bd50f1
SM
47602020-08-31 Simon Marchi <simon.marchi@efficios.com>
4761
4762 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4763 ordering in comment.
4764 * frame.c (frame_id_eq): Fix indentation.
4765
22b9b4b0
SL
47662020-08-31 Scott Linder <scott@scottlinder.com>
4767 Simon Marchi <simon.marchi@efficios.com>
4768
4769 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4770 inline frame ids in outer frame.
4771
84154d16
SM
47722020-08-31 Simon Marchi <simon.marchi@efficios.com>
4773
4774 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4775 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4776 (outer_frame_id): Use FID_STACK_OUTER instead of
4777 FID_STACK_INVALID.
4778 (frame_id_p): Don't check for outer_frame_id.
4779
8efaf6b3
SM
47802020-08-31 Simon Marchi <simon.marchi@efficios.com>
4781
4782 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4783 regnum/frame in value. Call allocate_value_lazy.
4784 * frame.c (frame_unwind_register_value): Use
4785 val_print_not_saved.
4786
fe1fe7ea
SM
47872020-08-31 Simon Marchi <simon.marchi@efficios.com>
4788
4789 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4790
f7c7700d
PA
47912020-08-29 Pedro Alves <pedro@palves.net>
4792
4793 * progspace.c (print_program_space): Use all_inferiors. Switch to
4794 the inferior before calling target_pid_to_str.
4795
e0814aae
TT
47962020-08-28 Tom Tromey <tom@tromey.com>
4797
4798 * xcoffread.c (xcoff_end_psymtab): Update comment.
4799 * dbxread.c (dbx_end_psymtab): Update comment.
4800
626d2320
TV
48012020-08-28 Tom de Vries <tdevries@suse.de>
4802
4803 PR breakpoint/26544
4804 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4805 event_location.
4806 (create_breakpoint): Same.
4807 (base_breakpoint_decode_location): Same.
4808 (bkpt_create_sals_from_location): Same.
4809 (bkpt_decode_location): Same.
4810 (bkpt_probe_create_sals_from_location): Same.
4811 (bkpt_probe_decode_location): Same.
4812 (tracepoint_create_sals_from_location): Same.
4813 (tracepoint_decode_location): Same.
4814 (tracepoint_probe_decode_location): Same.
4815 (strace_marker_create_sals_from_location): Same.
4816 (strace_marker_decode_location): Same.
4817 (create_sals_from_location_default): Same.
4818 (decode_location_default): Same.
4819 * breakpoint.h (struct breakpoint_ops): Same.
4820 (create_breakpoint): Same.
4821 * linespec.h (decode_line_full): Same.
4822 * linespec.c (decode_line_full): Same. Throw error if
4823 result.size () == 0.
4824
df631783
PA
48252020-08-27 Pedro Alves <pedro@palves.net>
4826
4827 PR gdb/26524
4828 * breakpoint.c (until_break_fsm) <location_breakpoint,
4829 caller_breakpoint>: Delete fields.
4830 <breakpoints>: New field.
4831 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4832 two individual breakpoints.
4833 (until_break_fsm::should_stop): Loop over breakpoints in the
4834 breakpoint vector.
4835 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4836 vector.
4837 (until_break_command): Handle location expanding into multiple
4838 sals.
4839
b2b38aa4
PA
48402020-08-27 Pedro Alves <pedro@palves.net>
4841
4842 PR gdb/26523
4843 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4844 bp_until breakpoints user-specified locations. Update intro
4845 comment.
4846
b886559f
SM
48472020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4848
4849 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4850 gdb_bfd_sections): New.
4851 * maint.c (print_bfd_section_info): Change param type to
4852 maint_print_section_data.
4853 (print_objfile_section_info): Likewise.
4854 (print_bfd_section_info_maybe_relocated): Likewise.
4855 (maintenance_info_sections): Use gdb_bfd_sections.
4856
4c6e63bf
SV
48572020-08-25 Shahab Vahedi <shahab@synopsys.com>
4858
4859 * MAINTAINERS: Add ARC target and maintainer.
4860
8d7f0635
AK
48612020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4862
4863 * configure.tgt: ARC support for GNU/Linux.
4864 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4865 * arc-linux-tdep.c: New file.
4866 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4867 * arc-tdep.c (arc_write_pc): Use it.
4868
fdd8731b
SV
48692020-08-25 Shahab Vahedi <shahab@synopsys.com>
4870
4871 * arc-tdep.c (arc_check_for_hardware_loop): New.
4872 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4873
22459524
SV
48742020-08-25 Shahab Vahedi <shahab@synopsys.com>
4875
4876 * arc-tdep.h: Include "gdbarch.h".
4877
995d3a19
SV
48782020-08-25 Shahab Vahedi <shahab@synopsys.com>
4879
4880 * arch/arc.h
4881 (arc_gdbarch_features): New class to stir the selection of target XML.
4882 (arc_create_target_description): Use FEATURES to choose XML target.
4883 (arc_lookup_target_description): Use arc_create_target_description
4884 to create _new_ target descriptions or return the already created
4885 ones if the FEATURES is the same.
4886 * arch/arc.c: Implementation of prototypes described above.
4887 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4888 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4889 * arc-tdep.c (*_feature_name): Make feature names consistent.
4890 (arc_register_feature): A new struct to hold information about
4891 registers of a particular target/feature.
4892 (arc_check_tdesc_feature): Check if XML provides registers in
4893 compliance with ARC_REGISTER_FEATURE structs.
4894 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4895 (determine_*_reg_feature_set): Which feature name to look for.
4896 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4897 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4898 to expected ISA enums to be used in arc_gdbarch_features structs.
4899 * features/Makefile (FEATURE_XMLFILES): Add new files.
4900 * gdb/features/arc/v1-aux.c: New file.
4901 * gdb/features/arc/v1-aux.xml: Likewise.
4902 * gdb/features/arc/v1-core.c: Likewise.
4903 * gdb/features/arc/v1-core.xml: Likewise.
4904 * gdb/features/arc/v2-aux.c: Likewise.
4905 * gdb/features/arc/v2-aux.xml: Likewise.
4906 * gdb/features/arc/v2-core.c: Likewise.
4907 * gdb/features/arc/v2-core.xml: Likewise.
4908 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4909
3945d2d7
GM
49102020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4911 Andrew Burgess <andrew.burgess@embecosm.com>
4912
4913 PR m2/26372
fc5d6901 4914 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4915 an assert. Remove single element array indexing pattern as the
4916 MULTI_SUBSCRIPT support will handle this case too.
4917
2677f2d3
SM
49182020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4919
4920 * value.h (valprint_check_validity): Move declaration from
4921 here...
4922 * valprint.h (valprint_check_validity): ... to here.
4923
c426fddb
SM
49242020-08-24 Simon Marchi <simon.marchi@efficios.com>
4925
4926 * debug.h: New file.
4927 * debug.c (debug_prefixed_vprintf): New function.
4928 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4929 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4930
1eb8556f
SM
49312020-08-24 Simon Marchi <simon.marchi@efficios.com>
4932
4933 * infrun.h (infrun_debug_printf_1): New function declaration.
4934 (infrun_debug_printf): New macro.
4935 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4936 throughout.
4937 (infrun_debug_printf): New function.
4938 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4939 (handle_jit_event): Likewise.
4940
b8fff44e
MW
49412020-08-21 Mark Wielaard <mark@klomp.org>
4942
4943 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4944
d19c3068
SM
49452020-08-22 Simon Marchi <simon.marchi@efficios.com>
4946
4947 * frame.c (enum class frame_id_status): New.
4948 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4949 (fprintf_frame): Update.
4950 (compute_frame_id): Set frame id status to "computing" on entry.
4951 Set it back to "not_computed" on failure and to "computed" on
4952 success.
4953 (get_frame_id): Assert the frame id is not being computed.
4954 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4955 (create_new_frame): Likewise.
4956 (frame_cleanup_after_sniffer): Update assert.
4957
b70e516e
SM
49582020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4959
4960 * regcache.c (pid_ptid_regcache_map): New type.
4961 (target_ptid_regcache_map): Remove.
4962 (target_pid_ptid_regcache_map): New type.
4963 (regcaches): Change type to target_pid_ptid_regcache_map.
4964 (get_thread_arch_aspace_regcache): Update.
4965 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4966 case.
4967 (regcaches_size): Update.
4968 (regcache_count): Update.
4969 (registers_changed_ptid_target_pid_test): New.
4970 (_initialize_regcache): Register new test.
4971
cdd9148a
SM
49722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4973
4974 * regcache.c (regcache_count): New.
4975 (struct regcache_test_data): New.
4976 (regcache_test_data_up): New.
4977 (populate_regcaches_for_test): New.
4978 (regcaches_test): Remove.
4979 (get_thread_arch_aspace_regcache_test): New.
4980 (registers_changed_ptid_all_test): New.
4981 (registers_changed_ptid_target_test): New.
4982 (registers_changed_ptid_target_ptid_test): New.
4983 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4984 (_initialize_regcache): Register new tests.
4985
dd125343
SM
49862020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4987
4988 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4989 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4990 gdbarch and aspace parameter. Use current inferior's aspace.
4991 Validate regcache's arch value.
4992 (regcaches_test): Update.
4993
3ee93972
SM
49942020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4995
4996 * regcache.c (regcaches_test): Call registers_changed.
4997
33bf4c5c
TBA
49982020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4999
5000 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5001
c2fd7fae
AKS
50022020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5003
5004 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5005 to find the end of prologue for flang compiled binaries.
5006 * arm-tdep.c (arm_skip_prologue): Likewise.
5007 * i386-tdep.c (i386_skip_prologue): Likewise.
5008 * producer.c (producer_is_llvm): New function.
5009 (producer_parsing_tests): Added new tests for clang/flang.
5010 * producer.h (producer_is_llvm): New declaration.
5011
9327494e
SM
50122020-08-18 Simon Marchi <simon.marchi@efficios.com>
5013
5014 * linux-nat.c (linux_nat_debug_printf): New function.
5015 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5016
d138725a
AM
50172020-08-18 Aaron Merey <amerey@redhat.com>
5018
5019 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5020 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5021 (CLIBS): Add DEBUGINFOD_LIBS.
5022
f9b11e6b
ST
50232020-08-17 Sergei Trofimovich <siarheit@google.com>
5024
5025 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5026 'gdbarch_num_regs'.
5027
3ae7ab99
TT
50282020-08-17 Tom Tromey <tromey@adacore.com>
5029
5030 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5031 ada_get_decoded_value returns NULL.
5032
b017825f
TT
50332020-08-17 Tom Tromey <tromey@adacore.com>
5034
5035 * python/py-inferior.c (infpy_search_memory): Use
5036 gdb_py_object_from_ulongest.
5037 * python/py-infevents.c (create_inferior_call_event_object)
5038 (create_memory_changed_event_object): Use
5039 gdb_py_object_from_ulongest.
5040 * python/py-linetable.c (ltpy_entry_get_pc): Use
5041 gdb_py_object_from_ulongest.
5042
7635cf79
SM
50432020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5044
5045 * loc.c (class symbol_needs_eval_context): Fix indentation.
5046
f54be24b
SM
50472020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5048
5049 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5050 bool.
5051
53d5a2a5
TV
50522020-08-17 Tom de Vries <tdevries@suse.de>
5053
5054 PR gdb/26393
5055 * gdbtypes.c (dump_dynamic_prop): New function.
5056 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5057
547ce8f0
TV
50582020-08-15 Tom de Vries <tdevries@suse.de>
5059
5060 PR backtrace/26390
5061 * stack.c (print_frame_args): Temporarily set the selected
5062 frame to FRAME while printing the frame's arguments.
5063
6ea815e7
PFC
50642020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5065
5066 PR breakpoints/26385
5067 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5068 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5069
6e562fa3
PFC
50702020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5071
5072 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5073 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5074 and >= to check return value instead of == -1 and != -1.
5075
d369b608
SM
50762020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5077
5078 * utils.h (class gdb_argv) <as_array_view>: New method.
5079 * utils.c (gdb_argv_as_array_view_test): New.
5080 (_initialize_utils): Register selftest.
5081 * maint.c (maintenance_selftest): Use the new method.
5082
b31488a3
KR
50832020-08-13 Kamil Rytarowski <n54@gmx.com>
5084
5085 * target.h (supports_dumpcore, dumpcore): New
5086 function declarations.
5087 * target.c (supports_dumpcore, dumpcore): New
5088 functions.
5089 * target-delegates.c: Rebuild.
5090 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5091 and target_dumpcore ().
5092
002a3166
AM
50932020-08-13 Aaron Merey <amerey@redhat.com>
5094
5095 * debuginfod-support.c: Replace global variables with user_data.
5096
ece5bc8a
SM
50972020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5098
5099 * maint.c (maintenance_selftest): Split args and pass array_view
5100 to run_tests.
5101
6d8a0a5e
LM
51022020-08-12 Luis Machado <luis.machado@linaro.org>
5103
5104 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5105 type's length.
5106 Use %s and pulongest to print the length.
5107
7cf663a9
PA
51082020-08-12 Pedro Alves <palves@redhat.com>
5109
5110 * NEWS: Move "Multi-target debugging support" item to the
5111 "Changes since GDB 9" section.
5112
27c7b875
PA
51132020-08-12 Pedro Alves <palves@redhat.com>
5114
5115 PR gdb/26336
5116 * progspace.c (program_space::remove_objfile): Invalidate the
5117 frame cache.
5118
1796a2a1
TV
51192020-08-11 Tom de Vries <tdevries@suse.de>
5120
5121 * MAINTAINERS: Mark ms1 as deleted.
5122
f8e3fe0d
LM
51232020-08-10 Luis Machado <luis.machado@linaro.org>
5124
5125 PR gdb/26310
5126
5127 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5128 act accordingly.
5129 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5130 movz/str/stur/stp skipping behavior.
5131
cc308722
LM
51322020-08-10 Luis Machado <luis.machado@linaro.org>
5133
5134 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5135 struct user_sve_header instead of struct sve_context.
5136
041d9819
SM
51372020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5138
5139 * read.h (dwarf2_fetch_die_loc_sect_off,
5140 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5141 `void *` parameter with function_view.
5142 * read.c (dwarf2_fetch_die_loc_sect_off,
5143 dwarf2_fetch_die_loc_cu_off): Likewise.
5144 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5145 (per_cu_dwarf_call): Adjust.
5146 (get_frame_address_in_block_wrapper): Remove.
5147 (indirect_synthetic_pointer): Adjust.
5148 (get_ax_pc): Remove.
5149 (dwarf2_compile_expr_to_ax): Adjust.
5150
38f8aa06
TV
51512020-08-08 Tom de Vries <tdevries@suse.de>
5152
5153 PR build/26344
5154 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5155 constructor.
5156 * regcache.c (get_thread_arch_aspace_regcache): Same.
5157
a52b3ae2
TT
51582020-08-07 Tom Tromey <tromey@adacore.com>
5159
5160 * ravenscar-thread.c
5161 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5162 New method.
5163 (ravenscar_thread_target::wait): Check
5164 runtime_initialized.
5165 (ravenscar_thread_target::prepare_to_store)
5166 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5167 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5168 (ravenscar_thread_target::stopped_by_watchpoint)
5169 (ravenscar_thread_target::stopped_data_address)
5170 (ravenscar_thread_target::core_of_thread): Use
5171 scoped_restore_current_thread and
5172 set_base_thread_from_ravenscar_task.
5173
0e29517d
TT
51742020-08-07 Tom Tromey <tromey@adacore.com>
5175
5176 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5177
592f9bd7
TT
51782020-08-07 Tom Tromey <tromey@adacore.com>
5179
5180 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5181 update_inferior_ptid before update_thread_list.
5182 (temporarily_change_regcache_ptid): New class.
5183 (ravenscar_thread_target::fetch_registers)
5184 (ravenscar_thread_target::store_registers)
5185 (ravenscar_thread_target::prepare_to_store): Use base thread when
5186 forwarding operation.
5187
39e2018a
TT
51882020-08-07 Tom Tromey <tromey@adacore.com>
5189
5190 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5191 "is_pid" case.
5192
2080266b
TT
51932020-08-07 Tom Tromey <tromey@adacore.com>
5194
5195 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5196 New methods.
5197 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5198 first.
5199 (ravenscar_thread_target::add_thread): Rename from
5200 ravenscar_add_thread.
5201 (ravenscar_thread_target::update_thread_list): Use a lambda.
5202 (ravenscar_thread_target::xfer_partial): New method.
5203
78c02f21
TT
52042020-08-07 Tom Tromey <tromey@adacore.com>
5205
5206 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5207 gdb::function_view.
5208 (iterate_over_live_ada_tasks): Change type of argument.
5209 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5210 of argument.
5211
d5d833af
TT
52122020-08-07 Tom Tromey <tromey@adacore.com>
5213
5214 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5215 Remove.
5216 (ravenscar_thread_target::extra_thread_info): Remove.
5217 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5218 defer to target beneath for non-Ravenscar threads.
5219
a8ac85bb
TT
52202020-08-07 Tom Tromey <tromey@adacore.com>
5221
5222 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5223 get_base_thread_from_ravenscar_task>: Now methods.
5224 <m_cpu_map>: New member.
5225 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5226 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5227 (ravenscar_thread_target::task_is_currently_active): Update.
5228 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5229 Now a method.
5230 (ravenscar_thread_target::add_active_thread): Put initial thread
5231 into the m_cpu_map.
5232
550ab58d
TT
52332020-08-07 Tom Tromey <tromey@adacore.com>
5234
5235 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5236 event_ptid.
5237
e9546579
TT
52382020-08-07 Tom Tromey <tromey@adacore.com>
5239
5240 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5241 runtime_initialized.
5242
3d4470e5
TT
52432020-08-07 Tom Tromey <tromey@adacore.com>
5244
5245 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5246 add_active_thread.
5247 (ravenscar_thread_target::add_active_thread): Now public.
5248 (ravenscar_inferior_created): Call add_active_thread after pushing
5249 the target.
5250
888bdb2b
SM
52512020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5252
5253 * regcache.c (ptid_regcache_map): New type.
5254 (target_ptid_regcache_map): New type.
5255 (regcaches): Change type to target_ptid_regcache_map.
5256 (get_thread_arch_aspace_regcache): Update to regcaches' new
5257 type.
5258 (regcache_thread_ptid_changed): Likewise.
5259 (registers_changed_ptid): Likewise.
5260 (regcaches_size): Likewise.
5261 (regcaches_test): Update.
5262 (regcache_thread_ptid_changed): Update.
5263 * regcache.h (regcache_up): New type.
5264 * gdbsupport/ptid.h (hash_ptid): New struct.
5265
b161a60d
SM
52662020-08-07 Simon Marchi <simon.marchi@efficios.com>
5267
5268 * observable.h (thread_ptid_changed): Add parameter
5269 `process_stratum_target *`.
5270 * infrun.c (infrun_thread_ptid_changed): Add parameter
5271 `process_stratum_target *` and use it.
5272 (selftests): New namespace.
5273 (infrun_thread_ptid_changed): New function.
5274 (_initialize_infrun): Register selftest.
5275 * regcache.c (regcache_thread_ptid_changed): Add parameter
5276 `process_stratum_target *` and use it.
5277 (regcache_thread_ptid_changed): New function.
5278 (_initialize_regcache): Register selftest.
5279 * thread.c (thread_change_ptid): Pass target to
5280 thread_ptid_changed observable.
5281
d2854d8d
CT
52822020-08-06 Caroline Tice <cmtice@google.com>
5283
fe4c3d43
SM
5284 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5285 (struct dwp_sections): Update field comments. Add loclists and
5286 rnglists fields.
5287 (struct virtual_v2_dwo_sections): Rename struct to
5288 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5289 size & offset fields for loclists and rnglists.
5290 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5291 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5292 skipping dummy type units.
5293 (create_dwp_hash_table): Update the large comment above the function to
5294 discuss Version 5 DWP files as well, with references. Update all the
5295 version checks in the function to check for version 5 as well. Add new
5296 section at the end to create dwp hash table for version 5.
5297 (create_dwp_v2_section): Rename function to
5298 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5299 Add V5 to error message text.
5300 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5301 into calls to create_dwp_v2_or_v5_section.
5302 (create_dwo_unit_in_dwp_v5): New function.
5303 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5304 check for version2; add else clause to handle version 5.
5305 (open_and_init_dwo_file): Add code to check dwarf version & only call
5306 create_debug_types_hash_table (with sections.types) if version is not 5;
5307 else call create_debug_type_hash_table, with sections.info.
5308 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5309 version 5.
5310 (dwarf2_locate_v5_dwp_sections): New function.
5311 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5312 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5313
159ed7d9
SM
53142020-08-06 Simon Marchi <simon.marchi@efficios.com>
5315
5316 * regcache.h (class regcache): Remove friend
5317 registers_changed_ptid.
5318 <regcache_thread_ptid_changed>: Remove.
5319 <regcaches>: Remove.
5320 * regcache.c (regcache::regcaches): Rename to...
5321 (regcaches): ... this. Make static.
5322 (get_thread_arch_aspace_regcache): Update.
5323 (regcache::regcache_thread_ptid_changed): Rename to...
5324 (regcache_thread_ptid_changed): ... this. Update.
5325 (class regcache_access): Remove.
5326 (regcaches_test): Update.
5327 (_initialize_regcache): Update.
5328 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5329 <forward_list>.
5330
174981ae
SM
53312020-08-06 Simon Marchi <simon.marchi@efficios.com>
5332
5333 * regcache.h (class regcache) <current_regcache>: Rename to...
5334 <regcaches>: ... this. Move doc here.
5335 * regcache.c (regcache::current_regcache) Rename to...
5336 (regcache::regcaches): ... this. Move doc to header.
5337 (get_thread_arch_aspace_regcache): Update.
5338 (regcache::regcache_thread_ptid_changed): Update.
5339 (registers_changed_ptid): Update.
5340 (class regcache_access) <current_regcache_size>: Rename to...
5341 <regcaches_size>: ... this.
5342 (current_regcache_test): Rename to...
5343 (regcaches_test): ... this.
5344 (_initialize_regcache): Update.
5345
ed908db6
VC
53462020-08-06 Victor Collod <vcollod@nvidia.com>
5347
5348 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5349
b5582ab7
KB
53502020-08-05 Kevin Buettner <kevinb@redhat.com>
5351
5352 * corelow.c (core_target::build_file_mappings): Don't output
5353 null pathname in warning.
5354
ea946b86
SM
53552020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5356
5357 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5358 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5359 gdb.dwarf2/dw2-single-line-discriminators.exp,
5360 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5361
57d02173
TT
53622020-08-05 Tom Tromey <tromey@adacore.com>
5363
5364 PR rust/26197:
5365 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5366 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5367 Fix off-by-one and type size errors in ordinary case.
5368
5555c86d
TV
53692020-08-05 Tom de Vries <tdevries@suse.de>
5370
5371 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5372 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5373
97916bfe
SM
53742020-08-04 Simon Marchi <simon.marchi@efficios.com>
5375
5376 * frame.h (frame_id_p): Return bool.
5377 (frame_id_artificial_p): Return bool.
5378 (frame_id_eq): Return bool.
5379 (has_stack_frames): Return bool.
5380 (get_selected_frame): Fix typo in comment.
5381 (get_frame_pc_if_available): Return bool.
5382 (get_frame_address_in_block_if_available): Return bool.
5383 (get_frame_func_if_available): Return bool.
5384 (read_frame_register_unsigned): Return bool.
5385 (get_frame_register_bytes): Return bool.
5386 (safe_frame_unwind_memory): Return bool.
5387 (deprecated_frame_register_read): Return bool.
5388 (frame_unwinder_is): Return bool.
5389 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5390 bool.
5391 <this_id::p>: Likewise.
5392 <prev_p>: Likewise.
5393 (frame_stash_add): Return bool.
5394 (get_frame_id): Use bool.
5395 (frame_id_build_special) Use bool.
5396 (frame_id_build_unavailable_stack): Use bool.
5397 (frame_id_build): Use bool.
5398 (frame_id_p): Return bool, use true/false instead of 1/0.
5399 (frame_id_artificial_p): Likewise.
5400 (frame_id_eq): Likewise.
5401 (frame_id_inner): Likewise.
5402 (get_frame_func_if_available): Likewise.
5403 (read_frame_register_unsigned): Likewise.
5404 (deprecated_frame_register_read): Likewise.
5405 (get_frame_register_bytes): Likewise.
5406 (has_stack_frames): Likewise.
5407 (inside_main_func): Likewise.
5408 (inside_entry_func): Likewise.
5409 (get_frame_pc_if_available): Likewise.
5410 (get_frame_address_in_block_if_available): Likewise.
5411 (frame_unwinder_is): Likewise.
5412 (safe_frame_unwind_memory): Likewise.
5413 (frame_unwind_arch): Likewise.
5414
fedfee88
SM
54152020-08-04 Simon Marchi <simon.marchi@efficios.com>
5416
5417 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5418 type to cached_copy_status.
5419 (fprintf_frame): Adjust.
5420 (get_frame_func_if_available): Adjust.
5421 (frame_cleanup_after_sniffer): Adjust.
5422
6cfa9b59
MW
54232020-08-04 Mark Wielaard <mark@klomp.org>
5424
5425 * MAINTAINERS (Write After Approval): Update email address.
5426
66d6346b
SM
54272020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5428
5429 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5430 dynamic_prop::const_val.
5431
8a6d5e35
SM
54322020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5433
5434 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5435 dynamic_prop::kind.
5436
51d6067d
SM
54372020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5438
5439 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5440
b26e2ae7
JM
54412020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5442
5443 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5444
39791af2
JM
54452020-08-04 Weimin Pan <weimin.pan@oracle.com>
5446 Jose E. Marchesi <jose.marchesi@oracle.com>
5447
5448 * configure.tgt: Add entry for bpf-*-*.
5449 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5450 (ALLDEPFILES): Add bpf-tdep.c.
5451 * bpf-tdep.c: New file.
5452 * MAINTAINERS: Add bpf target and maintainer.
5453 * NEWS: Mention the support for the new target.
5454
521894aa
TV
54552020-08-04 Tom de Vries <tdevries@suse.de>
5456
5457 PR symtab/23270
5458 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5459 Error.
5460
5d6356e9
JB
54612020-08-03 John Baldwin <jhb@FreeBSD.org>
5462
5463 * syscalls/freebsd.xml: Regenerate.
5464
0cf82b81
JB
54652020-08-03 John Baldwin <jhb@FreeBSD.org>
5466
5467 * syscalls/update-freebsd.sh: Fix usage and year range.
5468
8f34b746
TV
54692020-08-03 Tom de Vries <tdevries@suse.de>
5470
5471 PR symtab/26333
5472 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5473 DW_LNE_lo_user/DW_LNE_hi_user range.
5474
5e500d33
SM
54752020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5476
5477 PR ada/26318
5478 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5479 kind.
5480
78319c15
TBA
54812020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5482
5483 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5484
4c55e970
TBA
54852020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5486
5487 * breakpoint.c (set_breakpoint_condition): Update the condition
5488 expressions after checking that the input condition string parses
5489 successfully and does not contain junk at the end.
5490
1e620590
TBA
54912020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5492
5493 * breakpoint.c (set_breakpoint_condition): Update the
5494 condition string after parsing the new condition successfully.
5495
c8693053
RO
54962020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5497
5498 * proc-api.c (_STRUCTURED_PROC): Don't define.
5499 * proc-events.c: Likewise.
5500 * proc-flags.c: Likewise.
5501 * proc-why.c: Likewise.
5502 * procfs.c: Likewise.
5503
5504 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5505 * configure, config.in: Regenerate.
5506
5a99adb8
TV
55072020-07-30 Tom de Vries <tdevries@suse.de>
5508
5509 PR build/26320
5510 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5511 m_red/m_green/m_blue in a union.
5512
8ba83e91
TV
55132020-07-29 Tom de Vries <tdevries@suse.de>
5514
5515 PR tdep/26280
5516 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5517
f75a0693
AB
55182020-07-28 Tom Tromey <tromey@adacore.com>
5519
5520 PR symtab/26270:
5521 * symtab.h (find_pc_partial_function_sym): Declare.
5522 * cli/cli-cmds.c (disassemble_command): Use
5523 find_pc_partial_function_sym. Check asm_demangle.
5524 * blockframe.c (cache_pc_function_sym): New global.
5525 (cache_pc_function_name): Remove.
5526 (clear_pc_function_cache): Update.
5527 (find_pc_partial_function_sym): New function, from
5528 find_pc_partial_function.
5529 (find_pc_partial_function): Rewrite using
5530 find_pc_partial_function_sym.
5531
16f3242c
TT
55322020-07-28 Tom Tromey <tromey@adacore.com>
5533
5534 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5535 help. Add usage.
5536
4888741a
TT
55372020-07-28 Tom Tromey <tromey@adacore.com>
5538
5539 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5540 <DW_OP_GNU_variable_value>: Cast to address type.
5541
4d46f402
KR
55422020-07-28 Kamil Rytarowski <n54@gmx.com>
5543
5544 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5545 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5546 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5547 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5548 (nbsd_get_siginfo_type): New.
5549 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5550 (_initialize_nbsd_tdep): New.
5551
d70f978b
L
55522020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5553
5554 PR binutils/26301
5555 * configure: Regenerated.
5556
377170fa
L
55572020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5558
5559 PR binutils/26301
5560 * configure: Regenerated.
5561
43d5901d
AB
55622020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5563
5564 * python/py-frame.c: Remove 'user-regs.h' include.
5565 (frapy_read_register): Rewrite to make use of
5566 gdbpy_parse_register_id.
5567 * python/py-registers.c (gdbpy_parse_register_id): New function,
5568 moved here from python/py-unwind.c. Updated the return type, and
5569 also accepts register descriptor objects.
5570 * python/py-unwind.c: Remove 'user-regs.h' include.
5571 (pyuw_parse_register_id): Moved to python/py-registers.c.
5572 (unwind_infopy_add_saved_register): Update to use
5573 gdbpy_parse_register_id.
5574 (pending_framepy_read_register): Likewise.
5575 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5576
14fa8fb3
AB
55772020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5578
5579 * python/py-registers.c: Add 'user-regs.h' include.
5580 (register_descriptor_iter_find): New function.
5581 (register_descriptor_iterator_object_methods): New static global
5582 methods array.
5583 (register_descriptor_iterator_object_type): Add pointer to methods
5584 array.
5585
ddce1758
JB
55862020-07-27 John Baldwin <jhb@FreeBSD.org>
5587
5588 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5589 for all architectures on FreeBSD 11.3 and later.
5590
a4089f52
TT
55912020-07-27 Tom Tromey <tromey@adacore.com>
5592
5593 * gcore.h (load_corefile): Don't declare.
5594
95420d30
TV
55952020-07-27 Tom de Vries <tdevries@suse.de>
5596
5597 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5598 * config.in: Regenerate.
5599 * configure: Regenerate.
5600
05a6b8c2
EZ
56012020-07-26 Eli Zaretskii <eliz@gnu.org>
5602
5603 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5604 ws2tcpip.h. When checking whether socklen_t type is defined, use
5605 ws2tcpip.h if it is available and sys/socket.h isn't.
5606 * configure: Regenerate.
5607 * config.in: Regenerate.
5608
e79eb02f
AB
56092020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5610
5611 PR fortran/23051
5612 PR fortran/26139
5613 * valops.c (value_ind): Pass address to
5614 readjust_indirect_value_type.
5615 * value.c (readjust_indirect_value_type): Make parameter
5616 non-const, and add extra address parameter. Resolve original type
5617 before using it.
5618 * value.h (readjust_indirect_value_type): Update function
5619 signature and comment.
5620
876518dd
TV
56212020-07-25 Tom de Vries <tdevries@suse.de>
5622
5623 PR symtab/26243
5624 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5625 entries.
5626
f6720b1c
AM
56272020-07-24 Aaron Merey <amerey@redhat.com>
5628
5629 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5630 * configure: Rebuild.
5631
513487e1
KB
56322020-07-23 Kevin Buettner <kevinb@redhat.com>
5633
5634 PR corefiles/26294
5635 * corelow.c (_initialize_corelow): Add period to help text
5636 for "maintenance print core-file-backed-mappings".
5637
e7bc9db8
PA
56382020-07-23 Pedro Alves <pedro@palves.net>
5639
5640 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5641 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5642 meanwhile.
5643 * frame.c (frame_cache_generation, get_frame_cache_generation):
5644 New.
5645 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5646 (get_prev_frame_if_no_cycle): On exception, don't touch
5647 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5648 * frame.h (get_frame_cache_generation): Declare.
5649
90fcc466
TV
56502020-07-23 Tom de Vries <tdevries@suse.de>
5651
5652 PR tui/26282
5653 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5654 New default constructor.
5655
78344df7
AB
56562020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5657
5658 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5659 exclude non-statement entries.
5660
b089853a
KB
56612020-07-22 Kevin Buettner <kevinb@redhat.com>
5662
5663 * NEWS (New commands): Mention new command
5664 "maintenance print core-file-backed-mappings".
5665
09c2f5d4
KB
56662020-07-22 Kevin Buettner <kevinb@redhat.com>
5667
5668 * corelow.c (gdbcmd.h): Include.
5669 (core_target::info_proc_mappings): New method.
5670 (get_current_core_target): New function.
5671 (maintenance_print_core_file_backed_mappings): New function.
5672 (_initialize_corelow): Add core-file-backed-mappings to
5673 "maint print" commands.
5674
9c5ec5c2 56752020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5676
9c5ec5c2
KB
5677 * linux-tdep.c (dump_note_entry_p): New function.
5678 (linux_dump_mapping_p_ftype): New typedef.
5679 (linux_find_memory_regions_full): Add new parameter,
5680 should_dump_mapping_p.
5681 (linux_find_memory_regions): Adjust call to
5682 linux_find_memory_regions_full.
5683 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5684 call to linux_find_memory_regions_full.
5685
db082f59
KB
56862020-07-22 Kevin Buettner <kevinb@redhat.com>
5687
5688 * corelow.c (solist.h, unordered_map): Include.
5689 (class core_target): Add field m_core_file_mappings and
5690 method build_file_mappings.
5691 (core_target::core_target): Call build_file_mappings.
5692 (core_target::~core_target): Free memory associated with
5693 m_core_file_mappings.
5694 (core_target::build_file_mappings): New method.
5695 (core_target::xfer_partial): Use m_core_file_mappings
5696 for memory transfers.
5697 * linux-tdep.c (linux_read_core_file_mappings): New
5698 function.
5699 (linux_core_info_proc_mappings): Rewrite to use
5700 linux_read_core_file_mappings.
5701 (linux_init_abi): Register linux_read_core_file_mappings.
5702
7e183d27
KB
57032020-07-22 Kevin Buettner <kevinb@redhat.com>
5704
5705 * arch-utils.c (default_read_core_file_mappings): New function.
5706 * arch-utils.c (default_read_core_file_mappings): Declare.
5707 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5708 * gdbarch.h, gdbarch.c: Regenerate.
5709
2735d421
KB
57102020-07-22 Kevin Buettner <kevinb@redhat.com>
5711
5712 PR corefiles/25631
5713 * corelow.c (core_target:xfer_partial): Revise
5714 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5715 case after first checking the stratum beneath the core
5716 target.
5717 (has_all_memory): Return true.
5718 * target.c (raw_memory_xfer_partial): Revise comment
5719 regarding use of has_all_memory.
5720
e56cb451
KB
57212020-07-22 Kevin Buettner <kevinb@redhat.com>
5722
5723 * exec.h (section_table_xfer_memory): Revise declaration,
5724 replacing section name parameter with an optional callback
5725 predicate.
5726 * exec.c (section_table_xfer_memory): Likewise.
5727 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5728 of section_table_xfer_memory.
5729
32fa152e
TT
57302020-07-22 Tom Tromey <tromey@adacore.com>
5731
5732 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5733 lookup_symbol_search_name.
5734
a67a1c41
AB
57352020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5736
5737 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5738 redundant local variable.
5739 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5740 reference, not pointer, update code accordingly.
5741
a7b4ff4f
SM
57422020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5743 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5744
5745 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5746 * jit.c (jit_breakpoint_re_set_internal): Use the
5747 `skip_jit_symbol_lookup` field.
5748
2340e834
SM
57492020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5750 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5751
5752 * jit.c (jit_read_descriptor): Define the descriptor address once,
5753 use twice.
5754 (jit_breakpoint_deleted): Move the declaration of the loop variable
5755 `iter` into the loop header.
5756 (jit_breakpoint_re_set_internal): Move the declaration of the local
5757 variable `objf_data` to the first point of definition.
5758 (jit_event_handler): Move the declaration of local variables
5759 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5760 Rename `objf` to `jited`.
5761
c1072906
SM
57622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5763
5764 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5765 Remove.
5766 * jit.c (get_jiter_objfile_data): Update.
5767
c8474dc3
TBA
57682020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5769 Simon Marchi <simon.marchi@polymtl.ca>
5770
5771 * jit.c (struct jit_program_space_data): Remove.
5772 (jit_program_space_key): Remove.
5773 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5774 stuff.
5775 (get_jit_program_space_data): Remove.
5776 (jit_breakpoint_deleted): Iterate on all of the program space's
5777 objfiles.
5778 (jit_inferior_init): Likewise.
5779 (jit_breakpoint_re_set_internal): Likewise. Also change return
5780 type to void.
5781 (jit_breakpoint_re_set): Pass current_program_space to
5782 jit_breakpoint_re_set_internal.
5783
77208eb7
SM
57842020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5785
5786 * jit.h (struct jiter_objfile_data) <cached_code_address,
5787 jit_breakpoint>: Move to here from ...
5788 * jit.c (jit_program_space_data): ... here.
5789 (jiter_objfile_data::~jiter_objfile_data): Update.
5790 (jit_breakpoint_deleted): Update.
5791 (jit_breakpoint_re_set_internal): Update.
5792
8c1c720f
SM
57932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5794
5795 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5796 checks.
5797 (jit_read_descriptor): Remove NULL check.
5798 (jit_event_handler): Add an assertion.
5799
0e74a041
SM
58002020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5801
5802 * jit.h (struct jit_objfile_data): Split into...
5803 (struct jiter_objfile_data): ... this ...
5804 (struct jited_objfile_data): ... and this.
5805 * objfiles.h (struct objfile) <jit_data>: Remove.
5806 <jiter_data, jited_data>: New fields.
5807 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5808 (jiter_objfile_data::~jiter_objfile_data): ... this.
5809 (get_jit_objfile_data): Rename to ...
5810 (get_jiter_objfile_data): ... this.
5811 (add_objfile_entry): Update.
5812 (jit_read_descriptor): Use get_jiter_objfile_data.
5813 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5814 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5815 (jit_inferior_exit_hook): Use objfile's jited_data field.
5816
238b5c9f
SM
58172020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5818
5819 * jit.h: Forward-declare `struct minimal_symbol`.
5820 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5821 constructor, destructor, and an objfile* field.
5822 * jit.c (jit_objfile_data): Remove.
5823 (struct jit_objfile_data): Migrate from here to jit.h.
5824 (jit_objfile_data::~jit_objfile_data): New destructor
5825 implementation with code moved from free_objfile_data.
5826 (free_objfile_data): Delete.
5827 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5828 (jit_find_objf_with_entry_addr): Ditto.
5829 (jit_inferior_exit_hook): Ditto.
5830 (_initialize_jit): Remove the call to
5831 register_objfile_data_with_cleanup.
5832 * objfiles.h (struct objfile) <jit_data>: New field.
5833
fe053b9e
TBA
58342020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5835
5836 * jit.h: Forward-declare `struct objfile`.
5837 (jit_event_handler): Add a second parameter, the JITer objfile.
5838 * jit.c (jit_read_descriptor): Change the signature to take the
5839 JITer objfile as an argument instead of the jit_program_space_data.
5840 (jit_inferior_init): Update the call to jit_read_descriptor.
5841 (jit_event_handler): Use the new JITer objfile argument when calling
5842 jit_read_descriptor.
5843 * breakpoint.c (handle_jit_event): Update the call to
5844 jit_event_handler to pass the JITer objfile.
5845
4cec0c66
JB
58462020-07-21 John Baldwin <jhb@FreeBSD.org>
5847
5848 * gdbarch.c: Regenerate.
5849 * gdbarch.h: Regenerate.
5850 * gdbarch.sh (handle_segmentation_fault): Remove method.
5851 * infrun.c (handle_segmentation_fault): Remove.
5852 (print_signal_received_reason): Remove call to
5853 handle_segmentation_fault.
5854
0e42f66a
JB
58552020-07-21 John Baldwin <jhb@FreeBSD.org>
5856
5857 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5858 Rename to sparc64_linux_report_signal_info and add siggnal
5859 argument.
5860 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5861 instead of sparc64_linux_handle_segmentation_fault.
5862
77bdfeb2
JB
58632020-07-21 John Baldwin <jhb@FreeBSD.org>
5864
5865 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5866 i386_linux_report_signal_info instead of
5867 i386_linux_handle_segmentation_fault.
5868 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5869 to i386_linux_report_signal_info and add siggnal argument.
5870 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5871 of i386_linux_handle_segmentation_fault.
5872 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5873 to i386_linux_report_signal_info and add siggnal argument.
5874
ad97bfc5
JB
58752020-07-21 John Baldwin <jhb@FreeBSD.org>
5876
5877 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5878 hook if present.
5879
272bb05c
JB
58802020-07-21 John Baldwin <jhb@FreeBSD.org>
5881
5882 * gdbarch.c: Regenerate.
5883 * gdbarch.h: Regenerate.
5884 * gdbarch.sh (report_signal_info): New method.
5885 * infrun.c (print_signal_received_reason): Invoke gdbarch
5886 report_signal_info hook if present.
5887
baf8791e
AB
58882020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5889
5890 * python/py-registers.c : Add 'unordered_map' include.
5891 (gdbpy_new_reggroup): Renamed to...
5892 (gdbpy_get_reggroup): ...this. Update to only create register
5893 group descriptors when needed.
5894 (gdbpy_reggroup_iter_next): Update.
5895
f7306dac
AB
58962020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5897
5898 * python/py-registers.c (gdbpy_register_object_data): New static
5899 global.
5900 (gdbpy_register_object_data_init): New function.
5901 (gdbpy_new_register_descriptor): Renamed to...
5902 (gdbpy_get_register_descriptor): ...this, and update to reuse
5903 existing register descriptors where possible.
5904 (gdbpy_register_descriptor_iter_next): Update.
5905 (gdbpy_initialize_registers): Register new gdbarch data.
5906
05c309a8
SM
59072020-07-21 Simon Marchi <simon.marchi@efficios.com>
5908
5909 * linux-nat.c (stopped_pids): Make static.
5910
d1fd641e
SM
59112020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 PR ada/26235
5914 * gdbtypes.c (ada_discrete_type_low_bound,
5915 ada_discrete_type_high_bound): Handle undefined bounds.
5916
1de14d77
KR
59172020-07-21 Kamil Rytarowski <n54@gmx.com>
5918
5919 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5920 declaration.
5921 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5922 function.
5923
ed810cc7
JB
59242020-07-20 John Baldwin <jhb@FreeBSD.org>
5925
5926 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5927 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5928 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5929 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5930 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5931 method.
5932
ae5369e7
LC
59332020-07-20 Ludovic Courtès <ludo@gnu.org>
5934
5935 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5936 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5937 which are deprecated in Guile 3.0.
5938 * configure.ac (try_guile_versions): Add "guile-3.0".
5939 * configure (try_guile_versions): Regenerate.
5940 * NEWS: Update entry.
5941
68cf161c
LC
59422020-07-20 Ludovic Courtès <ludo@gnu.org>
5943 Doug Evans <dje@google.com>
5944
5945 PR gdb/21104
5946 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5947 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5948 USING_GUILE_BEFORE_2_2.
5949 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5950 Change type to 'scm_t_port_type *'.
5951 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5952 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5953 parameter and honor it. Update callers.
5954 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5955 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5956 functions.
5957 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5958 USING_GUILE_BEFORE_2_2.
5959 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5960 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5961 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5962 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5963 and 'SCM_PORT_TYPE'.
5964 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5965 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5966 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5967 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5968 [!USING_GUILE_BEFORE_2_2]: New functions.
5969 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5970 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5971 'gdbscm_memory_port_read'.
5972 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5973 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5974 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5975 function.
5976 (ioscm_init_memory_port): Remove.
5977 (ioscm_init_memory_port_stream): New function
5978 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5979 function.
5980 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5981 Return scm_from_uint (0).
5982 (gdbscm_set_memory_port_read_buffer_size_x)
5983 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5984 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5985 Return scm_from_uint (0).
5986 (gdbscm_set_memory_port_write_buffer_size_x)
5987 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5988 * configure.ac (try_guile_versions): Add "guile-2.2".
5989 * configure: Regenerate.
5990 * NEWS: Add entry.
5991
aee91db3
TT
59922020-07-18 Tom Tromey <tom@tromey.com>
5993
5994 * linux-nat.c (linux_multi_process): Remove.
5995 (linux_nat_target::supports_multi_process): Return true.
5996
0e267416
AB
59972020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5998
5999 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6000 (riscv_lookup_target_description): Return pointer out of
6001 unique_ptr.
6002 * target-descriptions.c (allocate_target_description): Add
6003 comment.
6004 (target_desc_deleter::operator()): Likewise.
6005 * target-descriptions.h (struct target_desc_deleter): Moved to
6006 gdbsupport/tdesc.h.
6007 (target_desc_up): Likewise.
6008
f80c8ec4
TT
60092020-07-17 Tom Tromey <tromey@adacore.com>
6010
6011 * linux-nat.c (linux_nat_target::supports_non_stop)
6012 (linux_nat_target::always_non_stop_p): Use "true".
6013 (linux_nat_target::supports_disable_randomization): Use "true" and
6014 "false".
6015
d0ce17d8
CT
60162020-07-16 Caroline Tice <cmtice@google.com>
6017
6018 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6019 (RNGLIST_HEADER_SIZE64): New constant definition.
6020 (struct dwop_section_names): Add rnglists_dwo.
6021 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6022 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6023 (struct dwo_sections): Add rnglists field.
6024 (read_attribut_reprocess): Add tag parameter.
6025 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6026 (cu_debug_rnglists_section): New function (decl & definition).
6027 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6028 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6029 die whose range is being checked; get rnglist section from
6030 cu_debug_rnglists_section, to get from either objfile or dwo file as
6031 appropriate. Add cases for DW_RLE_base_addressx,
6032 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6033 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6034 test inside if-condition and updating complaint message.
6035 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6036 dwarf2_rnglists_process.
6037 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6038 dwarf2_ranges_process.
6039 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6040 need_ranges_base and update comment appropriately. Also pass die tag
6041 to dwarf2_ranges_read.
6042 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6043 need_ranges_base and update comment appropriately. Also pass die tag
6044 to dwarf2_ranges_process.
6045 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6046 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6047 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6048 need_ranges_base and update comment appropriately. Also pass die tag
6049 to read_attribute_reprocess and dwarf2_ranges_read.
6050 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6051 and update function comment appropriately.
6052 (read_loclist_index): Call read_loclists_rnglists_header instead of
6053 read_loclist_header.
6054 (read_rnglist_index): New function.
6055 (read_attribute_reprocess): Add tag parameter. Add code for
6056 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6057 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6058
3dcc261c
AB
60592020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6060
6061 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6062 being resolved.
6063
ccb9eba6
AB
60642020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6065
6066 * arch-utils.c (show_architecture): Update formatting of messages.
6067
cf88be68
SM
60682020-07-12 Simon Marchi <simon.marchi@efficios.com>
6069
6070 * gdbtypes.h (struct type) <bounds>: Handle array and string
6071 types.
6072 * ada-lang.c (assign_aggregate): Use type::bounds on
6073 array/string type.
6074 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6075 * c-varobj.c (c_number_of_children): Likewise.
6076 (c_describe_child): Likewise.
6077 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6078 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6079 (f_type_print_base): Likewise.
6080 * f-valprint.c (f77_array_offset_tbl): Likewise.
6081 (f77_get_upperbound): Likewise.
6082 (f77_print_array_1): Likewise.
6083 * guile/scm-type.c (gdbscm_type_range): Likewise.
6084 * m2-typeprint.c (m2_array): Likewise.
6085 (m2_is_long_set_of_type): Likewise.
6086 * m2-valprint.c (get_long_set_bounds): Likewise.
6087 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6088 * python/py-type.c (typy_range): Likewise.
6089 * rust-lang.c (rust_internal_print_type): Likewise.
6090 * type-stack.c (type_stack::follow_types): Likewise.
6091 * valarith.c (value_subscripted_rvalue): Likewise.
6092 * valops.c (value_cast): Likewise.
6093
509971ae
SM
60942020-07-12 Simon Marchi <simon.marchi@efficios.com>
6095
6096 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6097 callers to use the equivalent accessor methods.
6098
107406b7
SM
60992020-07-12 Simon Marchi <simon.marchi@efficios.com>
6100
6101 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6102 (struct type) <bit_stride>: New method.
6103 (TYPE_BIT_STRIDE): Remove.
6104 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6105
bb789949
SM
61062020-07-12 Simon Marchi <simon.marchi@efficios.com>
6107
6108 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6109 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6110 callers to use the equivalent accessor methods instead.
6111
39498edb
SM
61122020-07-12 Simon Marchi <simon.marchi@efficios.com>
6113
6114 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6115 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6116 callers to use the equivalent accessor methods instead.
6117
3b606f38
SM
61182020-07-12 Simon Marchi <simon.marchi@efficios.com>
6119
6120 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6121 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6122 to use dynamic_prop::kind.
6123
064d9cb9
SM
61242020-07-12 Simon Marchi <simon.marchi@efficios.com>
6125
6126 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6127 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6128 to get the bound property's kind and check against
6129 PROP_UNDEFINED.
6130
5537ddd0
SM
61312020-07-12 Simon Marchi <simon.marchi@efficios.com>
6132
6133 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6134 all callers to use type::range_bounds followed by
6135 dynamic_prop::{low,high}.
6136
8c2e4e06
SM
61372020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6138
6139 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6140 const_val, set_const_val, baton, set_locexpr, set_loclist,
6141 set_addr_offset, variant_parts, set_variant_parts,
6142 original_type, set_original_type>: New methods.
6143 <kind>: Rename to...
6144 <m_kind>: ... this. Update all users to use the new methods
6145 instead.
6146 <data>: Rename to...
6147 <m_data>: ... this. Update all users to use the new methods
6148 instead.
6149
7c6f2712
SM
61502020-07-12 Simon Marchi <simon.marchi@efficios.com>
6151
6152 * gdbtypes.c (get_discrete_bounds): Return failure if
6153 the range type's bounds are not both defined and constant
6154 values.
6155 (get_array_bounds): Update comment. Remove undefined bound check.
6156
599088e3
SM
61572020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6158
6159 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6160 the type::bounds method directly.
6161
c4dfcb36
SM
61622020-07-12 Simon Marchi <simon.marchi@efficios.com>
6163
6164 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6165 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6166 are used to set the range type's bounds to use set_bounds.
6167
0a278aa7
PW
61682020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6169
6170 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6171
cce20f10
PA
61722020-07-10 Pedro Alves <pedro@palves.net>
6173
6174 * gdbthread.h (inferior_ref): Define.
6175 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6176 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6177 * thread.c
6178 (scoped_restore_current_thread::restore):
6179 Adjust to gdb::ref_ptr.
6180 (scoped_restore_current_thread::~scoped_restore_current_thread):
6181 Remove manual decref handling.
6182 (scoped_restore_current_thread::scoped_restore_current_thread):
6183 Adjust to use
6184 inferior_ref::new_reference/thread_info_ref::new_reference.
6185 Incref the thread before calling get_frame_id instead of after.
6186 Let TARGET_CLOSE_ERROR propagate.
6187
6d7aa592
PA
61882020-07-10 Pedro Alves <pedro@palves.net>
6189
6190 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6191 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6192 NOT_AVAILABLE_ERROR.
6193 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6194 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6195
b3e3a4c1
SM
61962020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6197 Pedro Alves <pedro@palves.net>
6198
6199 PR gdb/26199
6200 * infrun.c (threads_are_resumed_pending_p): Delete.
6201 (do_target_wait): Remove threads_are_executing and
6202 threads_are_resumed_pending_p checks from the inferior_matches
6203 lambda. Update comments.
6204
d6cc5d98
PA
62052020-07-10 Pedro Alves <pedro@palves.net>
6206
6207 PR gdb/26199
6208 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6209 executing threads.
6210
7d3badc6
PA
62112020-07-10 Pedro Alves <pedro@palves.net>
6212
6213 PR gdb/26199
6214 * infrun.c (handle_no_resumed): Handle multiple targets.
6215
42bd97a6
PA
62162020-07-10 Pedro Alves <pedro@palves.net>
6217
6218 PR gdb/26199
6219 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6220 target_is_async_p.
6221
43667cc6
PA
62222020-07-10 Pedro Alves <pedro@palves.net>
6223
6224 PR gdb/26199
6225 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6226 threads, not all threads.
6227
96118d11
PA
62282020-07-10 Pedro Alves <pedro@palves.net>
6229
6230 PR gdb/26199
6231 * remote.c (remote_target::open_1): Pass remote target pointer as
6232 data to create_async_event_handler.
6233 (remote_async_inferior_event_handler): Mark async event handler
6234 before returning if the remote target still has either pending
6235 events or unacknowledged notifications.
6236
54904d81
JB
62372020-07-10 John Baldwin <jhb@FreeBSD.org>
6238
6239 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6240 declaration.
6241 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6242 function.
6243
f37e5866
JB
62442020-07-09 John Baldwin <jhb@FreeBSD.org>
6245
6246 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6247 inferior_ptid.
6248
fc238d4a
JB
62492020-07-09 John Baldwin <jhb@FreeBSD.org>
6250
6251 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6252 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6253 AT_FREEBSD_PS_STRINGS.
6254
6e2469ff
HD
62552020-07-08 Hannes Domani <ssbssa@yahoo.de>
6256
6257 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6258 of debugfile path on Windows.
6259
d1076c41
JB
62602020-07-08 John Baldwin <jhb@FreeBSD.org>
6261
6262 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6263 argument to 'data'.
6264
15f3b077
TT
62652020-07-08 Tom Tromey <tromey@adacore.com>
6266
6267 * ada-lang.c (ada_exception_message_1): Use read_memory.
6268
9fc501fd
AB
62692020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6270
6271 PR python/22748
6272 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6273 special handling for inline frames.
6274 * findvar.c (value_of_register_lazy): Skip inline frames when
6275 creating lazy register values.
6276 * frame.c (frame_id_computed_p): Delete definition.
6277 * frame.h (frame_id_computed_p): Delete declaration.
6278
64cb3757
AB
62792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6280
6281 * NEWS: Mention additions to Python API.
6282 * python/py-arch.c (archpy_register_groups): New function.
6283 (arch_object_methods): Add 'register_groups' method.
6284 * python/py-registers.c (reggroup_iterator_object): New struct.
6285 (reggroup_object): New struct.
6286 (gdbpy_new_reggroup): New function.
6287 (gdbpy_reggroup_to_string): New function.
6288 (gdbpy_reggroup_name): New function.
6289 (gdbpy_reggroup_iter): New function.
6290 (gdbpy_reggroup_iter_next): New function.
6291 (gdbpy_new_reggroup_iterator): New function
6292 (gdbpy_initialize_registers): Register new types.
6293 (reggroup_iterator_object_type): Define new Python type.
6294 (gdbpy_reggroup_getset): New static global.
6295 (reggroup_object_type): Define new Python type.
6296 * python/python-internal.h
6297
0f767f94
AB
62982020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6299
6300 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6301 * python/py-arch.c (archpy_registers): New function.
6302 (arch_object_methods): Add 'registers' method.
6303 * python/py-registers.c: New file.
6304 * python/python-internal.h
6305 (gdbpy_new_register_descriptor_iterator): Declare.
6306 (gdbpy_initialize_registers): Declare.
6307 * python/python.c (do_start_initialization): Call
6308 gdbpy_initialize_registers.
6309 * NEWS: Mention additions to the Python API.
6310
87dbc774
AB
63112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6312
6313 * NEWS: Mention new Python API method.
6314 * python/py-unwind.c (pending_framepy_architecture): New function.
6315 (pending_frame_object_methods): Add architecture method.
6316
3bc98c0c
AB
63172020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6318
6319 * gdbarch.c: Regenerate.
6320 * gdbarch.h: Regenerate.
6321 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6322 (gdbarch_data): Use internal_error for the case where
6323 deprecated_set_gdbarch_data was originally needed.
6324 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6325 and use passed in obstack.
6326 (libunwind_frame_set_descr): Should no longer get back NULL from
6327 gdbarch_data.
6328 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6329 type.
6330 * user-regs.c (user_regs_init): Update parameters, and use passed
6331 in obstack.
6332 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6333 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6334
d8cc8af6
TV
63352020-07-06 Tom de Vries <tdevries@suse.de>
6336
6337 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6338 End-Of-Sequence in lte_is_less_than.
6339 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6340 "gdb: Don't reorder line table entries too much when sorting".
6341
947f7597
TV
63422020-07-06 Tom de Vries <tdevries@suse.de>
6343
6344 PR tui/26205
6345 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6346
1e7c1b22
TV
63472020-07-05 Tom de Vries <tdevries@suse.de>
6348
6349 PR build/26187
6350 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6351 std::uncaught_exceptions instead of deprecated
6352 std::uncaught_exception.
6353
a36158ec
SM
63542020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6355
6356 * macroexp.h (macro_stringify): Return
6357 gdb::unique_xmalloc_ptr<char>.
6358 * macroexp.c (macro_stringify): Likewise.
6359 * macrotab.c (fixup_definition): Update.
6360
14d960c8
SM
63612020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6362
6363 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6364 (lex_one_token): Update.
6365 * macroexp.c (struct macro_buffer) <release>: Return
6366 gdb::unique_xmalloc_ptr<char>.
6367 (macro_stringify): Update.
6368 (macro_expand): Update.
6369 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6370 * macroexp.h (macro_expand_next): Likewise.
6371
211d5b1c
SM
63722020-07-02 Simon Marchi <simon.marchi@efficios.com>
6373
6374 * macroexp.h (macro_lookup_ftype): Remove.
6375 (macro_expand, macro_expand_once, macro_expand_next): Remove
6376 lookup function parameters, add scope parameter.
6377 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6378 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6379 * macroscope.h (standard_macro_lookup): Change parameter type
6380 to macro_scope.
6381 * macroscope.c (standard_macro_lookup): Likewise.
6382 * c-exp.y (lex_one_token): Update.
6383 * macrocmd.c (macro_expand_command): Likewise.
6384 (macro_expand_once_command): Likewise.
6385
b1a35af2
SM
63862020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6387
6388 * inf-loop.c (inferior_event_handler): Remove client_data param.
6389 * inf-loop.h (inferior_event_handler): Likewise.
6390 * infcmd.c (step_1): Adjust.
6391 * infrun.c (proceed): Adjust.
6392 (fetch_inferior_event): Remove client_data param.
6393 (infrun_async_inferior_event_handler): Adjust.
6394 * infrun.h (fetch_inferior_event): Remove `void *` param.
6395 * linux-nat.c (handle_target_event): Adjust.
6396 * record-btrace.c (record_btrace_handle_async_inferior_event):
6397 Adjust.
6398 * record-full.c (record_full_async_inferior_event_handler):
6399 Adjust.
6400 * remote.c (remote_async_inferior_event_handler): Adjust.
6401
1cdf9e33
TT
64022020-07-01 Tom Tromey <tom@tromey.com>
6403
6404 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6405 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6406
32c1e210
TT
64072020-07-01 Tom Tromey <tom@tromey.com>
6408
6409 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6410 tui_gen_win_info.
6411 (tui_win_info::make_window): Merge with
6412 tui_gen_win_info::make_window.
6413 (tui_win_info::make_visible): Move from tui_gen_win_info.
6414 * tui/tui-win.c (tui_win_info::max_width): Move from
6415 tui_gen_win_info.
6416 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6417 type.
6418 <window_factory>: Likewise.
6419 * tui/tui-layout.c (tui_win_info::resize): Move from
6420 tui_gen_win_info.
6421 (make_standard_window): Change return type.
6422 (get_locator_window, tui_get_window_by_name): Likewise.
6423 (tui_layout_window::apply): Remove a cast.
6424 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6425 (struct tui_win_info): Merge with tui_gen_win_info.
6426 (struct tui_gen_win_info): Remove.
6427
a30cb6da
TT
64282020-07-01 Tom Tromey <tom@tromey.com>
6429
6430 * tui/tui-stack.h (struct tui_locator_window): Derive from
6431 tui_win_info.
6432 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6433 <can_box>: New method.
6434
1eb2161f
TT
64352020-07-01 Tom Tromey <tom@tromey.com>
6436
6437 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6438
7134f2eb
TT
64392020-07-01 Tom Tromey <tom@tromey.com>
6440
6441 * tui/tui-regs.c (tui_data_window::display_registers_from)
6442 (tui_data_window::display_registers_from)
6443 (tui_data_window::first_data_item_displayed)
6444 (tui_data_window::delete_data_content_windows): Update.
6445 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6446 Remove.
6447 (tui_data_window::check_register_values): Update.
6448 (tui_data_item_window::rerender): Add parameters. Update.
6449 (tui_data_item_window::refresh_window): Remove.
6450 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6451 virtual.
6452 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6453 tui_gen_win_info.
6454 <refresh_window, max_height, min_height>: Remove.
6455 <rerender>: Add parameters.
6456 <x, y, visible>: New members.
6457 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6458 <m_item_width>: New member.
6459
22b7b041
TT
64602020-07-01 Tom Tromey <tom@tromey.com>
6461
6462 * tui/tui-regs.c (tui_data_window::show_register_group)
6463 (tui_data_window::check_register_values): Update.
6464 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6465 from item_no.
6466
c9753adb
TT
64672020-07-01 Tom Tromey <tom@tromey.com>
6468
6469 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6470 useless "if".
6471
9ab26b4a
TT
64722020-07-01 Tom Tromey <tom@tromey.com>
6473
6474 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6475 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6476
e555083f
TT
64772020-07-01 Tom Tromey <tom@tromey.com>
6478
6479 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6480 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6481 (struct tui_line_or_address): Move from tui-data.h.
6482 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6483 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6484 (tui_cmd_window, tui_source_window_base, tui_source_window)
6485 (tui_disasm_window): Don't declare.
6486 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6487 to tui-winsource.h.
6488 (SINGLE_KEY): Move to tui-stack.c.
6489
7a02bab7
TT
64902020-07-01 Tom Tromey <tom@tromey.com>
6491
6492 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6493 std::string.
6494 * tui/tui-regs.c (class tab_expansion_file): New.
6495 (tab_expansion_file::write): New method.
6496 (tui_register_format): Change return type. Use
6497 tab_expansion_file.
6498 (tui_get_register, tui_data_window::display_registers_from)
6499 (tui_data_item_window::rerender): Update.
6500 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6501 * tui/tui-io.c (tui_expand_tabs): Remove.
6502
ea68593b
TT
65032020-07-01 Tom Tromey <tom@tromey.com>
6504
6505 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6506
a8caed5d
FS
65072020-07-01 Fangrui Song <maskray@google.com>
6508
6509 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6510
9cdf9820
AKS
65112020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6512
6513 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6514 forms for DW_AT_associated and DW_AT_allocated attributes,
6515 which is already checked in function attr_to_dynamic_prop.
6516
a1520ad8
TT
65172020-06-30 Tom Tromey <tromey@adacore.com>
6518
6519 * dwarf2/read.c (quirk_rust_enum): Correctly call
6520 alloc_rust_variant for default-less enum.
6521
5ac58899
TT
65222020-06-30 Tom Tromey <tromey@adacore.com>
6523
6524 PR build/26183:
6525 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6526 gdb::to_string.
6527
19b187a9
SM
65282020-06-29 Simon Marchi <simon.marchi@efficios.com>
6529
6530 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6531 * gdbarch.h: Re-generate.
6532
cd4c4c07
TT
65332020-06-28 Tom Tromey <tom@tromey.com>
6534
6535 * command.h (cmd_types): Remove.
6536 (cmd_type): Don't declare.
6537 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6538 typedef.
6539 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6540 * cli/cli-decode.c (cmd_type): Remove.
6541
05779d57
PA
65422020-06-27 Pedro Alves <palves@redhat.com>
6543
6544 * fork-child.c (prefork_hook): Adjust.
6545 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6546 Delete.
6547 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6548 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6549 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6550 Remove declarations.
6551 (struct inferior) <set_tty, tty>: New methods.
6552 (struct inferior) <terminal>: Rename to ...
6553 (struct inferior) <m_terminal>: ... this and make private.
6554 * main.c (captured_main_1): Adjust.
6555 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6556 (mi_cmd_inferior_tty_show): Adjust.
6557 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6558 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6559
1776e3e5
NA
65602020-06-26 Nick Alcock <nick.alcock@oracle.com>
6561
6562 * configure.ac: Add --enable-libctf: handle --disable-static
6563 properly.
6564 * acinclude.m4: sinclude ../config/enable.m4.
6565 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6566 (LIBCTF): Substitute in.
6567 (CTF_DEPS): New, likewise.
6568 (CLIBS): libctf needs symbols from libbfd: move earlier.
6569 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6570 flags.
6571 * ctfread.c: Surround in ENABLE_LIBCTF.
6572 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6573 * configure: Regenerate.
6574 * config.in: Likewise.
6575
58373b80
SM
65762020-06-25 Simon Marchi <simon.marchi@efficios.com>
6577
6578 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6579
277474ee
SM
65802020-06-25 Simon Marchi <simon.marchi@efficios.com>
6581
6582 * inferior.h (struct inferior) <terminal>: Change type to
6583 gdb::unique_xmalloc_ptr<char>.
6584 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6585 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6586 field, adjust to unique pointer.
6587 (get_inferior_io_terminal): Adjust to unique pointer.
6588
6d74da72
AB
65892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6590
6591 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6592 registers, not just the known core set of registers.
6593
2e52d038
AB
65942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6595
6596 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6597 fflags, frm, and fcsr registers.
6598 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6599 restore groups.
6600 (riscv_tdesc_unknown_reg): New function.
6601 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6602 tdesc_use_registers.
6603 * riscv-tdep.h (struct gdbarch_tdep): Add
6604 unknown_csrs_first_regnum, unknown_csrs_count,
6605 duplicate_fflags_regnum, duplicate_frm_regnum, and
6606 duplicate_fcsr_regnum fields.
6607
be64fd07
AB
66082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6609
6610 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6611 callback, use the callback (when not null) to help number unknown
6612 registers.
6613 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6614 (tdesc_use_registers): Add extra parameter to declaration.
6615
3b9fce96
AB
66162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6617
6618 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6619 in the file.
6620 (class riscv_pending_register_alias): Likewise.
6621 (riscv_register_feature::register_info): Change 'required_p' field
6622 to 'required', and change its type. Add 'check' member function.
6623 (riscv_register_feature::register_info::check): Define new member
6624 function.
6625 (riscv_xreg_feature): Change initialisation of 'required' field.
6626 (riscv_freg_feature): Likewise.
6627 (riscv_virtual_feature): Likewise.
6628 (riscv_csr_feature): Likewise.
6629 (riscv_check_tdesc_feature): Take extra parameter, the csr
6630 tdesc_feature, rewrite the function to use the new
6631 riscv_register_feature::register_info::check function.
6632 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6633
865bad26
AB
66342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6635
6636 * features/Makefile: Remove all references to the deleted files
6637 below.
6638 * features/riscv/32bit-csr.c: Deleted.
6639 * features/riscv/32bit-csr.xml: Deleted.
6640 * features/riscv/64bit-csr.c: Deleted.
6641 * features/riscv/64bit-csr.xml: Deleted.
6642 * features/riscv/rebuild-csr-xml.sh: Deleted.
6643
ed69cbc8
AB
66442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6645
6646 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6647 whitespace error for declaration of names member variable.
6648 (struct riscv_register_feature): Add new prefer_first_name member
6649 variable, and fix whitespace error in declaration of registers.
6650 (riscv_xreg_feature): Initialize prefer_first_name field.
6651 (riscv_freg_feature): Likewise.
6652 (riscv_virtual_feature): Likewise.
6653 (riscv_csr_feature): Likewise.
6654 (riscv_register_name): Expand on comments. Remove register name
6655 modifications for CSR and virtual registers.
6656
4445e8f5
AB
66572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6658
6659 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6660 errors.
6661
767a879e
AB
66622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6663
6664 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6665 riscv-opc.h.
6666 (class riscv_pending_register_alias): New class.
6667 (riscv_check_tdesc_feature): Take vector of pending aliases and
6668 populate it as appropriate.
6669 (riscv_setup_register_aliases): Delete.
6670 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6671 to riscv_check_tdesc_feature in all cases. Use the vector to
6672 create the register aliases.
6673
bb6e55f3
RO
66742020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6675
6676 * sol2-tdep.c (sol2_static_transform_name): Remove.
6677 (sol2_init_abi): Don't register it.
6678 * gdbarch.sh (static_transform_name): Remove.
6679 * gdbarch.c, gdbarch.h: Regenerate.
6680
6681 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6682 gdbarch_static_transform_name.
6683 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6684 * stabsread.c (define_symbol) <'X'>: Remove.
6685 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6686 handling.
6687 <'V'>: Likewise.
6688 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6689 <'S'>: Remove call to gdbarch_static_transform_name.
6690
c6d36836
RO
66912020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6692
6693 * procfs.c (procfs_pre_trace): New function.
6694 (procfs_target::create_inferior): Pass it to fork_inferior.
6695
a7e6196b
RO
66962020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6697
6698 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6699 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6700 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6701 sol2-tdep.o, sparc-sol2-tdep.o.
6702 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6703 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6704 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6705 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6706
d412e696
RO
67072020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6708
6709 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6710 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6711 Call sol2_init_abi.
6712 Remove calls to set_gdbarch_skip_solib_resolver,
6713 set_gdbarch_core_pid_to_str.
6714 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6715 (i386_sol2_static_transform_name): Remove.
6716 (i386_sol2_init_abi): Call sol2_init_abi.
6717 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6718 set_gdbarch_static_transform_name,
6719 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6720 Use sol2_sigtramp_p.
6721 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6722 (sol2_sigtramp_p): New function.
6723 (sol2_static_transform_name): New function.
6724 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6725 (sol2_init_abi): New function.
6726 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6727 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6728 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6729 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6730 (sparc_sol2_static_transform_name): Remove.
6731 (sparc32_sol2_init_abi): Call sol2_init_abi.
6732 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6733 set_gdbarch_static_transform_name,
6734 set_gdbarch_skip_solib_resolver,
6735 set_gdbarch_core_pid_to_str.
6736 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6737 (sparc_sol2_static_transform_name): Remove
6738 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6739 call sol2_sigtramp_p.
6740 (sparc64_sol2_init_abi): Call sol2_init_abi.
6741 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6742 set_gdbarch_static_transform_name,
6743 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6744
a8654e7d
PW
67452020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6746
6747 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6748 * exec.c (validate_exec_file): If from_tty, set both
6749 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6750 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6751 and from_tty, unconditionally ask a confirmation.
6752
caa7fd04
AB
67532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6754
6755 * target-descriptions.c (tdesc_architecture_name): Protect against
6756 NULL pointer dereference.
6757 (maint_print_xml_tdesc_cmd): New function.
6758 (_initialize_target_descriptions): Register new 'maint print
6759 xml-tdesc' command and give it the filename completer.
6760 * NEWS: Mention new 'maint print xml-tdesc' command.
6761
fbf42f4e
AB
67622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6763
6764 * target-descriptions.c (class tdesc_compatible_info): New class.
6765 (struct target_desc): Change type of compatible vector.
6766 (tdesc_compatible_p): Update for change in type of
6767 target_desc::compatible.
6768 (tdesc_compatible_info_list): New function.
6769 (tdesc_compatible_info_arch_name): New function.
6770 (tdesc_add_compatible): Update for change in type of
6771 target_desc::compatible.
6772 (print_c_tdesc::visit_pre): Likewise.
6773
20821f4e
AB
67742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6775
6776 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6777 whitespace to underscore.
6778 (maint_print_c_tdesc_cmd): Use fake filename for target
6779 descriptions that came from the target.
6780 (_initialize_target_descriptions): Add filename command completion
6781 for 'maint print c-tdesc'.
6782
1fb5ee62
SM
67832020-06-23 Simon Marchi <simon.marchi@efficios.com>
6784
6785 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6786 lines.
6787
fc3ecb3e
SM
67882020-06-23 Simon Marchi <simon.marchi@efficios.com>
6789
6790 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6791 lines.
6792 (dwarf2_find_location_expression): Likewise.
6793 (call_site_parameter_matches): Likewise.
6794 (dwarf2_compile_expr_to_ax): Likewise.
6795 (disassemble_dwarf_expression): Likewise.
6796 (loclist_describe_location): Likewise.
6797
236ef034
PA
67982020-06-23 Pedro Alves <palves@redhat.com>
6799
6800 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6801 progspace-and-thread.h. Include scoped-mock-context.h instead.
6802 (register_to_value_test): Use scoped_mock_context.
6803 * regcache.c: Include "scoped-mock-context.h".
6804 (cooked_read_test): Don't error out if a target is already pushed.
6805 Use scoped_mock_context. Adjust.
6806 * scoped-mock-context.h: New file.
6807
39e7ecca
AB
68082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6809
6810 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6811 initializer.
6812 (ada_language::is_string_type_p): New member function.
6813 * c-lang.c (c_language_data): Delete la_is_string_type_p
6814 initializer.
6815 (cplus_language_data): Likewise.
6816 (asm_language_data): Likewise.
6817 (minimal_language_data): Likewise.
6818 * d-lang.c (d_language_data): Likewise.
6819 * f-lang.c (f_is_string_type_p): Delete function, implementation
6820 moved to f_language::is_string_type_p.
6821 (f_language_data): Delete la_is_string_type_p initializer.
6822 (f_language::is_string_type_p): New member function,
6823 implementation from f_is_string_type_p.
6824 * go-lang.c (go_is_string_type_p): Delete function, implementation
6825 moved to go_language::is_string_type_p.
6826 (go_language_data): Delete la_is_string_type_p initializer.
6827 (go_language::is_string_type_p): New member function,
6828 implementation from go_is_string_type_p.
6829 * language.c (language_defn::is_string_type_p): Define new member
6830 function.
6831 (default_is_string_type_p): Make static, add comment copied from
6832 header file.
6833 (unknown_language_data): Delete la_is_string_type_p initializer.
6834 (unknown_language::is_string_type_p): New member function.
6835 (auto_language_data): Delete la_is_string_type_p initializer.
6836 (auto_language::is_string_type_p): New member function.
6837 * language.h (language_data): Delete la_is_string_type_p field.
6838 (language_defn::is_string_type_p): Declare new function.
6839 (default_is_string_type_p): Delete desclaration, move comment to
6840 definition.
6841 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6842 moved to m2_language::is_string_type_p.
6843 (m2_language_data): Delete la_is_string_type_p initializer.
6844 (m2_language::is_string_type_p): New member function,
6845 implementation from m2_is_string_type_p.
6846 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6847 initializer.
6848 * opencl-lang.c (opencl_language_data): Likewise.
6849 * p-lang.c (pascal_is_string_type_p): Delete function,
6850 implementation moved to pascal_language::is_string_type_p.
6851 (pascal_language_data): Delete la_is_string_type_p initializer.
6852 (pascal_language::is_string_type_p): New member function,
6853 implementation from pascal_is_string_type_p.
6854 * rust-lang.c (rust_is_string_type_p): Delete function,
6855 implementation moved to rust_language::is_string_type_p.
6856 (rust_language_data): Delete la_is_string_type_p initializer.
6857 (rust_language::is_string_type_p): New member function,
6858 implementation from rust_is_string_type_p.
6859 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6860 is_string_type_p.
6861
4ffc13fb
AB
68622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6863
6864 * ada-lang.c (ada_language_data): Delete la_print_typedef
6865 initializer.
6866 (ada_language::print_typedef): New member function.
6867 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6868 (cplus_language_data): Likewise.
6869 (asm_language_data): Likewise.
6870 (minimal_language_data): Likewise.
6871 * d-lang.c (d_language_data): Likewise.
6872 * f-lang.c (f_language_data): Likewise.
6873 (f_language::print_typedef): New member function.
6874 * go-lang.c (go_language_data): Delete la_print_typedef
6875 initializer.
6876 * language.c (language_defn::print_typedef): Define member
6877 function.
6878 (unknown_language_data): Delete la_print_typedef initializer.
6879 (unknown_language::print_typedef): New member function.
6880 (auto_language_data): Delete la_print_typedef initializer.
6881 (auto_language::print_typedef): New member function.
6882 * language.h (language_data): Delete la_print_typedef field.
6883 (language_defn::print_typedef): Declare new member function.
6884 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6885 (default_print_typedef): Delete declaration.
6886 * m2-lang.c (m2_language_data): Delete la_print_typedef
6887 initializer.
6888 (m2_language::print_typedef): New member function.
6889 * objc-lang.c (objc_language_data): Delete la_print_typedef
6890 initializer.
6891 * opencl-lang.c (opencl_language_data): Likewise.
6892 * p-lang.c (pascal_language_data): Likewise.
6893 (pascal_language::print_typedef): New member function.
6894 * rust-lang.c (rust_print_typedef): Delete function,
6895 implementation moved to rust_language::print_typedef.
6896 (rust_language): Delete la_print_typedef initializer.
6897 (rust_language::print_typedef): New member function,
6898 implementation from rust_print_typedef.
6899 * typeprint.c (default_print_typedef): Delete.
6900
d711ee67
AB
69012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6902
6903 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6904 (ada_language::printstr): New member function.
6905 * c-lang.c (c_language_data): Delete la_printstr initializer.
6906 (cplus_language_data): Likewise.
6907 (asm_language_data): Likewise.
6908 (minimal_language_data): Likewise.
6909 * d-lang.c (d_language_data): Likewise.
6910 * f-lang.c (f_printstr): Rename to f_language::printstr.
6911 (f_language_data): Delete la_printstr initializer.
6912 (f_language::printstr): New member function, implementation from
6913 f_printstr.
6914 * go-lang.c (go_language_data): Delete la_printstr initializer.
6915 * language.c (language_defn::printstr): Define new member
6916 function.
6917 (unk_lang_printstr): Delete.
6918 (unknown_language_data): Delete la_printstr initializer.
6919 (unknown_language::printstr): New member function.
6920 (auto_language_data): Delete la_printstr initializer.
6921 (auto_language::printstr): New member function.
6922 * language.h (language_data): Delete la_printstr field.
6923 (language_defn::printstr): Declare new member function.
6924 (LA_PRINT_STRING): Update call to printstr.
6925 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6926 (m2_language_data): Delete la_printstr initializer.
6927 (m2_language::printstr): New member function, implementation from
6928 m2_printstr.
6929 * objc-lang.c (objc_language_data): Delete la_printstr
6930 initializer.
6931 * opencl-lang.c (opencl_language_data): Likewise.
6932 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6933 (pascal_language_data): Delete la_printstr initializer.
6934 (pascal_language::printstr): New member function, implementation
6935 from pascal_printstr.
6936 * p-lang.h (pascal_printstr): Delete declaration.
6937 * rust-lang.c (rust_printstr): Update header comment.
6938 (rust_language_data): Delete la_printstr initializer.
6939 (rust_language::printstr): New member function.
6940
52b50f2c
AB
69412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6942
6943 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6944 (ada_language::printchar): New member function.
6945 * c-lang.c (c_language_data): Delete la_printchar initializer.
6946 (cplus_language_data): Likewise.
6947 (asm_language_data): Likewise.
6948 (minimal_language_data): Likewise.
6949 * d-lang.c (d_language_data): Likewise.
6950 * f-lang.c (f_printchar): Rename to f_language::printchar.
6951 (f_language_data): Delete la_printchar initializer.
6952 (f_language::printchar): New member function, implementation from
6953 f_printchar.
6954 * go-lang.c (go_language_data): Delete la_printchar initializer.
6955 * language.c (unk_lang_printchar): Delete.
6956 (language_defn::printchar): Define new member function.
6957 (unknown_language_data): Delete la_printchar initializer.
6958 (unknown_language::printchar): New member function.
6959 (auto_language_data): Delete la_printchar initializer.
6960 (auto_language::printchar): New member function.
6961 * language.h (language_data): Delete la_printchar field.
6962 (language_defn::printchar): Declare new member function.
6963 (LA_PRINT_CHAR): Update call to printchar.
6964 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6965 (m2_language::printchar): New member function.
6966 * objc-lang.c (objc_language_data): Delete la_printchar
6967 initializer.
6968 * opencl-lang.c (opencl_language_data): Likewise.
6969 * p-lang.c (pascal_language_data): Delete la_printchar
6970 initializer.
6971 (pascal_language::printchar): New member function.
6972 * rust-lang.c (rust_printchar): Rename to
6973 rust_language::printchar.
6974 (rust_language_data): Delete la_printchar initializer.
6975 (rust_language::printchar): New member function, implementation
6976 from rust_printchar.
6977
ec8cec5b
AB
69782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6979
6980 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6981 (ada_language_data): Delete la_emitchar initializer.
6982 (ada_language::emitchar): New member function, implementation from
6983 emit_char.
6984 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6985 (cplus_language_data): Likewise.
6986 (asm_language_data): Likewise.
6987 (minimal_language_data): Likewise.
6988 * d-lang.c (d_language_data): Likewise.
6989 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6990 (f_language_data): Delete la_emitchar initializer.
6991 (f_language::emitchar): New member function, implementation from
6992 f_emit_char.
6993 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6994 * language.c (unk_lang_emit_char): Delete.
6995 (language_defn::emitchar): New member function definition.
6996 (unknown_language_data): Delete la_emitchar initializer.
6997 (unknown_language::emitchar): New member function.
6998 (auto_language_data): Delete la_emitchar initializer.
6999 (auto_language::emitchar): New member function.
7000 * language.h (language_data): Delete la_emitchar field.
7001 (language_defn::emitchar): New member field declaration.
7002 (LA_EMIT_CHAR): Update call to emitchar.
7003 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7004 (m2_language_data): Delete la_emitchar initializer.
7005 (m2_language::emitchar): New member function, implementation from
7006 m2_emit_char.
7007 * objc-lang.c (objc_language_data): Delete la_emitchar
7008 initializer.
7009 * opencl-lang.c (opencl_language_data): Likewise.
7010 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7011 (pascal_language_data): Delete la_emitchar initializer.
7012 (pascal_language::emitchar): New member function, implementation
7013 from pascal_emit_char.
7014 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7015 (rust_language_data): Delete la_emitchar initializer.
7016 (rust_language::emitchar): New member function, implementation
7017 from rust_emitchar.
7018
1bf9c363
AB
70192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7020
7021 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7022 (ada_language_data): Delete la_post_parser initializer.
7023 (ada_language::post_parser): New member function.
7024 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7025 (cplus_language_data): Likewise.
7026 (asm_language_data): Likewise.
7027 (minimal_language_data): Likewise.
7028 * d-lang.c (d_language_data): Likewise.
7029 * f-lang.c (f_language_data): Likewise.
7030 * go-lang.c (go_language_data): Likewise.
7031 * language.c (unknown_language_data): Likewise.
7032 (auto_language_data): Likewise.
7033 * language.h (language_data): Delete la_post_parser field.
7034 (language_defn::post_parser): New member function.
7035 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7036 * objc-lang.c (objc_language_data): Likewise.
7037 * opencl-lang.c (opencl_language_data): Likewise.
7038 * p-lang.c (pascal_language_data): Likewise.
7039 * parse.c (parse_exp_in_context): Update call to post_parser.
7040 (null_post_parser): Delete definition.
7041 * parser-defs.h (null_post_parser): Delete declaration.
7042 * rust-lang.c (rust_language_data): Delete la_post_parser
7043 initializer.
7044
87afa652
AB
70452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7046
7047 * ada-lang.c (parse): Rename to ada_language::parser.
7048 (ada_language_data): Delete la_parser initializer.
7049 (ada_language::parser): New member function, implementation from
7050 parse.
7051 * c-lang.c (c_language_data): Delete la_parser initializer.
7052 (cplus_language_data): Likewise.
7053 (asm_language_data): Likewise.
7054 (minimal_language_data): Likewise.
7055 * d-lang.c (d_language_data): Likewise.
7056 (d_language::parser): New member function.
7057 * f-lang.c (f_language_data): Delete la_parser initializer.
7058 (f_language::parser): New member function.
7059 * go-lang.c (go_language_data): Delete la_parser initializer.
7060 (go_language::parser): New member function.
7061 * language.c (unk_lang_parser): Delete.
7062 (language_defn::parser): Define new member function.
7063 (unknown_language_data): Delete la_parser initializer.
7064 (unknown_language::parser): New member function.
7065 (auto_language_data): Delete la_parser initializer.
7066 (auto_language::parser): New member function.
7067 * language.h (language_data): Delete la_parser field.
7068 (language_defn::parser): Declare new member function.
7069 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7070 (m2_language::parser): New member function.
7071 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7072 * opencl-lang.c (opencl_language_data): Likewise.
7073 * p-lang.c (pascal_language_data): Likewise.
7074 (pascal_language::parser): New member function.
7075 * parse.c (parse_exp_in_context): Update call to parser.
7076 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7077 (rust_language::parser): New member function.
7078
37825800
AB
70792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7080
7081 * top.c (print_gdb_configuration): Print --with-python-libdir
7082 configuration value.
7083
5b860c93
PW
70842020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7085
7086 * NEWS: Mention change to the alias command.
7087
cf00cd6f
PW
70882020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7089
7090 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7091 (alias_command_completer)
7092 (make_alias_options_def_group): New functions.
7093 (alias_opts, alias_option_defs): New struct and array.
7094 (alias_usage_error): Update usage.
7095 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7096 Use option framework.
7097 (_initialize_cli_cmds): Update alias command help.
7098 Update aliases command help.
7099 (show_user):
7100 Add NULL for new default_args lookup_cmd argument.
7101 (valid_command_p): Rename to validate_aliased_command.
7102 Add NULL for new default_args lookup_cmd argument. Verify that the
7103 aliased_command has no default args.
7104 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7105 (lookup_cmd_1, lookup_cmd): New argument default_args.
7106 (add_alias_cmd):
7107 Add NULL for new default_args lookup_cmd argument.
7108 (print_help_for_command): Show default args under the layout
7109 alias some_alias = some_aliased_cmd some_alias_default_arg.
7110 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7111 xfree default_args in destructor.
7112 * cli/cli-script.c (process_next_line, do_define_command):
7113 Add NULL for new default_args lookup_cmd argument.
7114 * command.h: Declare new default_args argument in lookup_cmd
7115 and lookup_cmd_1.
7116 * completer.c (complete_line_internal_1):
7117 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7118 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7119 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7120 Likewise.
7121 * infcmd.c (_initialize_infcmd): Likewise.
7122 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7123 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7124 * python/py-param.c (add_setshow_generic): Likewise.
7125 * remote.c (_initialize_remote): Likewise.
7126 * top.c (execute_command): Prepend default_args if command has some.
7127 (set_verbose):
7128 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7129 * tracepoint.c (validate_actionline, encode_actions_1):
7130 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7131
bd920864
TBA
71322020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7133
7134 * jit.c (jit_read_descriptor): Use bool as the return type.
7135 (jit_breakpoint_re_set_internal): Use bool as the return type.
7136 Invert the return value logic; return true if the jit breakpoint
7137 has been successfully initialized.
7138 (jit_inferior_init): Update the call to
7139 jit_breakpoint_re_set_internal.
7140
f8098322
PA
71412020-06-22 Pedro Alves <palves@redhat.com>
7142
7143 PR gdb/25939
7144 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7145 Use the current inferior instead. Don't return
7146 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7147 wait again.
7148 * sol-thread.c (sol_thread_target::wait): Don't reference
7149 inferior_ptid.
7150 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7151 (sol_update_thread_list_callback): Use the current inferior's pid
7152 instead of inferior_ptid.
7153
196535a6
RO
71542020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7155
7156 * procfs.c: Cleanup many comments.
7157
7158 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7159 (AFTER_WATCHFLAG): Replace by value.
7160
7161 (MAIN_PROC_NAME_FORMAT): Inline ...
7162 (create_procinfo): ... here.
7163
7164 (procfs_debug_inferior): Remove SYS_exec handling.
7165 (syscall_is_exec): Likewise.
7166 (procfs_set_exec_trap): Likewise.
7167
7168 (syscall_is_lwp_exit): Inline in callers.
7169 (syscall_is_exit): Likewise.
7170 (syscall_is_exec): Likewise.
7171 (syscall_is_lwp_create): Likewise.
7172
7173 (invalidate_cache): Remove #if 0 code.
7174
7175 (make_signal_thread_runnable): Remove.
7176 (procfs_target::resume): Remove #if 0 code.
7177
cf6f3e86
RO
71782020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7179
7180 PR gdb/25939
7181 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7182 call ...
7183 (procfs_target::create_inferior): ... here.
7184
48e9cc84
PW
71852020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7186
7187 * exec.c (validate_exec_file): Ensure the build-id is up to
7188 date by calling reopen_exec_file (that checks file timestamp
7189 to decide to re-read the file).
7190
3922b302
PA
71912020-06-18 Pedro Alves <palves@redhat.com>
7192
7193 PR gdb/25412
7194 * gdbthread.h (delete_thread, delete_thread_silent)
7195 (find_thread_ptid): Update comments.
7196 * thread.c (current_thread_): New global.
7197 (is_current_thread): Move higher, and reimplement.
7198 (inferior_thread): Reimplement.
7199 (set_thread_exited): Use bool. Add assertions.
7200 (add_thread_silent): Simplify thread-reuse handling by always
7201 calling delete_thread.
7202 (delete_thread): Remove intro comment.
7203 (find_thread_ptid): Skip exited threads.
7204 (switch_to_thread_no_regs): Write to current_thread_.
7205 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7206 INFERIOR_PTID. Clear current_thread_.
7207
6dbdab44
PA
72082020-06-18 Pedro Alves <palves@redhat.com>
7209
7210 * aix-thread.c (pd_update): Use switch_to_thread.
7211
2da4b788
PA
72122020-06-18 Pedro Alves <palves@redhat.com>
7213
7214 * ravenscar-thread.c (ravenscar_thread_target): Update.
7215 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7216 (ravenscar_thread_target::add_active_thread): ... this. Don't
7217 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7218 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7219
50838d1b
PA
72202020-06-18 Pedro Alves <palves@redhat.com>
7221
7222 * nat/windows-nat.c (current_windows_thread): Remove.
7223 * nat/windows-nat.h (current_windows_thread): Remove.
7224 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7225 Adjust.
7226 (display_selectors): Adjust to fetch the current
7227 windows_thread_info based on inferior_ptid.
7228 (fake_create_process): No longer write to current_windows_thread.
7229 (windows_nat_target::get_windows_debug_event):
7230 Don't set inferior_ptid or current_windows_thread.
7231 (windows_nat_target::wait): Adjust to not rely on
7232 current_windows_thread.
7233 (do_initial_windows_stuff): Now a method of windows_nat_target.
7234 Switch to the last_ptid thread.
7235 (windows_nat_target::attach): Adjust.
7236 (windows_nat_target::detach): Use switch_to_no_thread instead of
7237 writing to inferior_ptid directly.
7238 (windows_nat_target::create_inferior): Adjust.
7239
31ce04e9
PA
72402020-06-18 Pedro Alves <palves@redhat.com>
7241
7242 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7243
1ee1a363
PA
72442020-06-18 Pedro Alves <palves@redhat.com>
7245
7246 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7247 after creating it, instead of writing to inferior_ptid. Don't
7248 write to inferior_ptid.
7249
6d350754
PA
72502020-06-18 Pedro Alves <palves@redhat.com>
7251
7252 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7253
5d971d48
PA
72542020-06-18 Pedro Alves <palves@redhat.com>
7255
7256 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7257 it, instead of writing to inferior_ptid.
7258
86e57d1b
PA
72592020-06-18 Pedro Alves <palves@redhat.com>
7260
7261 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7262 to inferior_ptid.
7263
f2e1c129
PA
72642020-06-18 Pedro Alves <palves@redhat.com>
7265
7266 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7267 instead of writing to inferior_ptid directly.
7268
60db1b85
PA
72692020-06-18 Pedro Alves <palves@redhat.com>
7270
7271 * corelow.c (core_target::close): Use switch_to_no_thread instead
7272 of writing to inferior_ptid directly.
7273 (add_to_thread_list, core_target_open): Use switch_to_thread
7274 instead of writing to inferior_ptid directly.
7275
fe7d6a8d
PA
72762020-06-18 Pedro Alves <palves@redhat.com>
7277
7278 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7279 inferior_ptid.
7280 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7281 inferior_ptid.
7282 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7283 inferior_ptid directly.
7284 (darwin_nat_target::init_thread_list): Switch to thread, instead
7285 of writing to inferior_ptid.
7286 (darwin_nat_target::attach): Don't write to inferior_ptid.
7287 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7288
975f8708
PA
72892020-06-18 Pedro Alves <palves@redhat.com>
7290
7291 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7292 thread.
7293 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7294 Instead use switch_to_thread.
7295 (gnu_nat_target::detach): Use switch_to_no_thread
7296 instead of writing to inferior_ptid directly. Used passed-in
7297 inferior instead of looking up the inferior by pid.
7298
1a204730
PA
72992020-06-18 Pedro Alves <palves@redhat.com>
7300
7301 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7302 inferior_ptid.
7303
ebe84f23
PA
73042020-06-18 Pedro Alves <palves@redhat.com>
7305
7306 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7307 inferior_ptid.
7308 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7309 thread.
7310 (nto_procfs_target::detach): Avoid referencing
7311 inferior_ptid. Use switch_to_no_thread instead of writing to
7312 inferior_ptid directly.
7313 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7314 instead of writing to inferior_ptid directly.
7315 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7316 to thread.
7317
191f02e5
PA
73182020-06-18 Pedro Alves <palves@redhat.com>
7319
7320 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7321 after creating it, instead of writing to inferior_ptid.
7322 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7323 to inferior_ptid directly.
7324 (gdbsim_target::wait): Don't write to inferior_ptid.
7325
0ac55310
PA
73262020-06-18 Pedro Alves <palves@redhat.com>
7327
7328 * remote.c (remote_target::remote_notice_new_inferior): Use
7329 switch_to_thread instead of writing to inferior_ptid directly.
7330 (remote_target::add_current_inferior_and_thread): Use
7331 switch_to_no_thread instead of writing to inferior_ptid directly.
7332 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7333 and switch_to_thread instead of using set_current_inferior or
7334 writing to inferior_ptid directly.
7335
5233f39b
PA
73362020-06-18 Pedro Alves <palves@redhat.com>
7337
7338 * tracectf.c (ctf_target_open): Switch to added thread instead of
7339 writing to inferior_ptid directly.
7340 (ctf_target::close): Use switch_to_no_thread instead of writing to
7341 inferior_ptid directly.
7342
087e161b
PA
73432020-06-18 Pedro Alves <palves@redhat.com>
7344
7345 * tracefile-tfile.c (tfile_target_open): Don't write to
7346 inferior_ptid directly, instead switch to added thread.
7347 (tfile_target::close): Use switch_to_no_thread instead of writing
7348 to inferior_ptid directly.
7349
7fb43e53
PA
73502020-06-18 Pedro Alves <palves@redhat.com>
7351
7352 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7353 (procfs_target::detach): Use switch_to_no_thread
7354 instead of writing to inferior_ptid directly.
7355 (do_attach): Change return type to void. Switch to the added
7356 thread.
7357 (procfs_target::create_inferior): Switch to the added thread.
7358 (procfs_do_thread_registers): Don't write to inferior_ptid.
7359
18493a00
PA
73602020-06-18 Pedro Alves <palves@redhat.com>
7361
7362 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7363 of writing to inferior_ptid.
7364 (scoped_restore_exited_inferior): Delete.
7365 (handle_vfork_child_exec_or_exit): Simplify using
7366 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7367 instead of writing to inferior_ptid.
7368 (THREAD_STOPPED_BY): Delete.
7369 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7370 (thread_stopped_by_hw_breakpoint): Delete.
7371 (save_waitstatus): Use
7372 scoped_restore_current_thread+switch_to_thread, and call
7373 target_stopped_by_watchpoint instead of
7374 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7375 instead of thread_stopped_by_sw_breakpoint, and
7376 target_stopped_by_hw_breakpoint instead of
7377 thread_stopped_by_hw_breakpoint.
7378 (handle_inferior_event)
7379 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7380 inferior_ptid directly, nor
7381 set_current_inferior/set_current_program_space. Use
7382 switch_to_thread / switch_to_inferior_no_thread instead.
7383
a0776b13
PA
73842020-06-18 Pedro Alves <palves@redhat.com>
7385
7386 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7387 instead of writing to inferior_ptid.
7388
6155c136
PA
73892020-06-18 Pedro Alves <palves@redhat.com>
7390
7391 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7392 added thread.
7393 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7394 to the added thread.
7395 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7396 instead of writing to inferior_ptid.
7397
c5316fc6
PA
73982020-06-18 Pedro Alves <palves@redhat.com>
7399
7400 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7401 (register_to_value_test): Mock a program_space too. Heap-allocate
7402 the address space. Don't write to inferior_ptid. Use
7403 switch_to_thread instead.
7404
8df01799
PA
74052020-06-18 Pedro Alves <palves@redhat.com>
7406
7407 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7408 Delete.
7409 (find_signalled_thread()): New, factored out from
7410 linux_make_corefile_notes and adjusted to handle exited threads.
7411 (linux_make_corefile_notes): Adjust to use the new
7412 find_signalled_thread.
7413
41792d68
PA
74142020-06-18 Pedro Alves <palves@redhat.com>
7415
7416 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7417 of saving/restoring inferior_ptid.
7418
612f258a
TT
74192020-06-17 Tom Tromey <tom@tromey.com>
7420
7421 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7422 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7423 declare.
7424 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7425
efb763a5
SM
74262020-06-15 Simon Marchi <simon.marchi@efficios.com>
7427
7428 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7429 of partial symtabs.
7430
2951f6c0
SM
74312020-06-17 Simon Marchi <simon.marchi@efficios.com>
7432
7433 * regformats/reg-arm.dat: Remove.
7434 * regformats/reg-bfin.dat: Remove.
7435 * regformats/reg-cris.dat: Remove.
7436 * regformats/reg-crisv32.dat: Remove.
7437 * regformats/reg-m32r.dat: Remove.
7438 * regformats/reg-tilegx.dat: Remove.
7439 * regformats/reg-tilegx32.dat: Remove.
7440
7d458ea5
SM
74412020-06-17 Simon Marchi <simon.marchi@efficios.com>
7442
7443 * features/Makefile (WHICH): Remove arm files.
7444 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7445 * regformats/arm/arm-with-neon.dat: Remove.
7446 * regformats/arm/arm-with-vfpv2.dat: Remove.
7447 * regformats/arm/arm-with-vfpv3.dat: Remove.
7448
3af96c0d
SM
74492020-06-17 Simon Marchi <simon.marchi@efficios.com>
7450
7451 * features/Makefile (XMLTOC): Remove rx.xml.
7452
b25e22fd
PA
74532020-06-17 Pedro Alves <palves@redhat.com>
7454
7455 * gdbthread.h (thread_control_state) <trap_expected> Update
7456 comments.
7457
a78a19b1
AB
74582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7459
7460 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7461 ada_language::lookup_symbol_nonlocal.
7462 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7463 (ada_language::lookup_symbol_nonlocal): New member function,
7464 implementation from ada_lookup_symbol_nonlocal.
7465 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7466 initializer.
7467 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7468 initializer.
7469 (cplus_language::lookup_symbol_nonlocal): New member function.
7470 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7471 (minimal_language_data) Likewise.
7472 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7473 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7474 initializer.
7475 (d_language::lookup_symbol_nonlocal): New member function.
7476 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7477 initializer.
7478 (f_language::lookup_symbol_nonlocal): New member function.
7479 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7480 initializer.
7481 * language.c (unknown_language_data): Likewise.
7482 (auto_language_data): Likewise.
7483 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7484 field.
7485 (language_defn::lookup_symbol_nonlocal): New member function.
7486 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7487 initializer.
7488 * objc-lang.c (objc_language_data): Likewise.
7489 * opencl-lang.c (opencl_language_data): Likewise.
7490 * p-lang.c (pascal_language_data): Likewise.
7491 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7492 rust_language::lookup_symbol_nonlocal.
7493 (rust_language_data): Delete la_lookup_symbol_nonlocal
7494 initializer.
7495 (rust_language::lookup_symbol_nonlocal): New member function,
7496 implementation from rust_lookup_symbol_nonlocal.
7497 * symtab.c (lookup_symbol_aux): Update call to
7498 lookup_symbol_nonlocal.
7499 (basic_lookup_symbol_nonlocal): Rename to...
7500 (language_defn::lookup_symbol_nonlocal): ...this, and update
7501 header comment. Remove language_defn parameter, and replace with
7502 uses of `this'.
7503 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7504
ebe2334e
AB
75052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7506
7507 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7508 initializer.
7509 (ada_language::value_print_inner): New member function.
7510 * c-lang.c (c_language_data): Delete la_value_print_inner
7511 initializer.
7512 (cplus_language_data): Likewise.
7513 (asm_language_data): Likewise.
7514 (minimal_language_data): Likewise.
7515 * d-lang.c (d_language_data): Likewise.
7516 (d_language::value_print_inner): New member function.
7517 * f-lang.c (f_language_data): Delete la_value_print_inner
7518 initializer.
7519 (f_language::value_print_inner): New member function.
7520 * f-lang.h (f_value_print_innner): Rename to...
7521 (f_value_print_inner): ...this (note spelling of 'inner').
7522 * f-valprint.c (f_value_print_innner): Rename to...
7523 (f_value_print_inner): ...this (note spelling of 'inner').
7524 * go-lang.c (go_language_data): Delete la_value_print_inner
7525 initializer.
7526 (go_language::value_print_inner): New member function.
7527 * language.c (language_defn::value_print_inner): Define new member
7528 function.
7529 (unk_lang_value_print_inner): Delete.
7530 (unknown_language_data): Delete la_value_print_inner initializer.
7531 (unknown_language::value_print_inner): New member function.
7532 (auto_language_data): Delete la_value_print_inner initializer.
7533 (auto_language::value_print_inner): New member function.
7534 * language.h (language_data): Delete la_value_print_inner field.
7535 (language_defn::value_print_inner): Delcare new member function.
7536 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7537 initializer.
7538 (m2_language::value_print_inner): New member function.
7539 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7540 initializer.
7541 * opencl-lang.c (opencl_language_data): Likewise.
7542 * p-lang.c (pascal_language_data): Likewise.
7543 (pascal_language::value_print_inner): New member function.
7544 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7545 initializer.
7546 (rust_language::value_print_inner): New member function.
7547 * valprint.c (do_val_print): Update call to value_print_inner.
7548
a1d1fa3e
AB
75492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7550
7551 * ada-lang.c (ada_language_data): Delete la_value_print
7552 initializer.
7553 (ada_language::value_print): New member function.
7554 * c-lang.c (c_language_data): Delete la_value_print initializer.
7555 (cplus_language_data): Likewise.
7556 (asm_language_data): Likewise.
7557 (minimal_language_data): Likewise.
7558 * d-lang.c (d_language_data): Likewise.
7559 * f-lang.c (f_language_data): Likewise.
7560 * go-lang.c (go_language_data): Likewise.
7561 * language.c (unk_lang_value_print): Delete.
7562 (language_defn::value_print): Define new member function.
7563 (unknown_language_data): Delete la_value_print initializer.
7564 (unknown_language::value_print): New member function.
7565 (auto_language_data): Delete la_value_print initializer.
7566 (auto_language::value_print): New member function.
7567 * language.h (language_data): Delete la_value_print field.
7568 (language_defn::value_print): Declare new member function.
7569 (LA_VALUE_PRINT): Update call to value_print.
7570 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7571 * objc-lang.c (objc_language_data): Likewise.
7572 * opencl-lang.c (opencl_language_data): Likewise.
7573 * p-lang.c (pascal_language_data): Likewise.
7574 (pascal_language::value_print): New member function.
7575 * rust-lang.c (rust_language_data): Delete la_value_print
7576 initializer.
7577
f16a9f57
AB
75782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7579
7580 * ada-lang.c (ada_watch_location_expression): Rename to
7581 ada_language::watch_location_expression.
7582 (ada_language_data): Delete la_watch_location_expression
7583 initializer.
7584 (ada_language::watch_location_expression): New member function,
7585 implementation from ada_watch_location_expression.
7586 * breakpoint.c (watch_command_1): Update call to
7587 watch_location_expression.
7588 * c-lang.c (c_watch_location_expression): Rename to
7589 language_defn::watch_location_expression.
7590 (c_language_data): Delete la_watch_location_expression
7591 initializer.
7592 (cplus_language_data): Likewise.
7593 (asm_language_data): Likewise.
7594 (minimal_language_data): Likewise.
7595 * c-lang.h (c_watch_location_expression): Delete declaration.
7596 * d-lang.c (d_language_data): Delete la_watch_location_expression
7597 initializer.
7598 * f-lang.c (f_language_data): Likewise.
7599 * go-lang.c (go_language_data): Likewise.
7600 * language.c (language_defn::watch_location_expression): Member
7601 function implementation from c_watch_location_expression.
7602 (unknown_language_data): Delete la_watch_location_expression
7603 initializer.
7604 (auto_language_data): Likewise.
7605 * language.h (language_data): Delete la_watch_location_expression
7606 field.
7607 (language_defn::watch_location_expression): Declare new member
7608 function.
7609 * m2-lang.c (m2_language_data): Delete
7610 la_watch_location_expression initializer.
7611 * objc-lang.c (objc_language_data): Likewise.
7612 * opencl-lang.c (opencl_language_data): Likewise.
7613 * p-lang.c (pascal_language_data): Likewise.
7614 * rust-lang.c (rust_watch_location_expression): Rename to
7615 rust_language::watch_location_expression.
7616 (rust_language_data): Delete la_watch_location_expression
7617 initializer.
7618 (rust_language::watch_location_expression): New member function,
7619 implementation from rust_watch_location_expression.
7620
7e56227d
AB
76212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7622
7623 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7624 ada_language::collect_symbol_completion_matches.
7625 (ada_language_data): Delete la_collect_symbol_completion_matches
7626 initializer.
7627 (ada_language::collect_symbol_completion_matches): New member
7628 function, implementation from
7629 ada_collect_symbol_completion_matches.
7630 * c-lang.c (c_language_data): Delete
7631 la_collect_symbol_completion_matches initializer.
7632 (cplus_language_data): Likewise.
7633 (asm_language_data): Likewise.
7634 (minimal_language_data): Likewise.
7635 * d-lang.c (d_language_data): Likewise.
7636 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7637 f_language::collect_symbol_completion_matches.
7638 (f_language_data): Delete la_collect_symbol_completion_matches
7639 initializer.
7640 (f_language::collect_symbol_completion_matches) New member
7641 function, implementation from f_collect_symbol_completion_matches.
7642 * go-lang.c (go_language_data): Delete
7643 la_collect_symbol_completion_matches initializer.
7644 * language.c (unknown_language_data): Likewise.
7645 (auto_language_data): Likewise.
7646 * language.h (language_data): Delete
7647 la_collect_symbol_completion_matches field.
7648 (language_defn::collect_symbol_completion_matches): New member
7649 function.
7650 * m2-lang.c (m2_language_data): Delete
7651 la_collect_symbol_completion_matches initializer.
7652 * objc-lang.c (objc_language_data): Likewise.
7653 * opencl-lang.c (opencl_language_data): Likewise.
7654 * p-lang.c (pascal_language_data): Likewise.
7655 * rust-lang.c (rust_language_data): Likewise.
7656 * symtab.c (default_collect_symbol_completion_matches): Delete.
7657 (collect_symbol_completion_matches): Update call to
7658 collect_symbol_completion_matches.
7659 (collect_symbol_completion_matches_type): Likewise.
7660 * symtab.h (default_collect_symbol_completion_matches): Delete
7661 declaration.
7662
53fc67f8
AB
76632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7664
7665 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7666 (ada_language_data): Delete la_word_break_characters initializer.
7667 (ada_language::word_break_characters): New member function.
7668 * c-lang.c (c_language_data): Delete la_word_break_characters
7669 initializer.
7670 (cplus_language_data): Likewise.
7671 (asm_language_data): Likewise.
7672 (minimal_language_data): Likewise.
7673 * completer.c: Update global comment.
7674 (advance_to_expression_complete_word_point): Update call to
7675 word_break_characters.
7676 (complete_files_symbols): Likewise.
7677 (complete_line_internal_1): Likewise.
7678 (default_completer_handle_brkchars): Likewise.
7679 (skip_quoted_chars): Likewise.
7680 * d-lang.c (d_language_data): Delete la_word_break_characters
7681 initializer.
7682 * f-lang.c (f_word_break_characters): Delete.
7683 (f_language_data): Delete la_word_break_characters initializer.
7684 (f_language::word_break_characters): New member function.
7685 * go-lang.c (go_language_data): Delete la_word_break_characters
7686 initializer.
7687 * language.c (unknown_language_data): Likewise.
7688 (auto_language_data): Likewise.
7689 * language.h (default_word_break_characters): Move declaration to
7690 earlier in the file.
7691 (language_data): Delete la_word_break_characters field.
7692 (language_defn::word_break_characters): New member function.
7693 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7694 initializer.
7695 * objc-lang.c (objc_language_data): Likewise.
7696 * opencl-lang.c (opencl_language_data): Likewise.
7697 * p-lang.c (pascal_language_data): Likewise.
7698 * rust-lang.c (rust_language_data): Likewise.
7699
c9debfb9
AB
77002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7701
7702 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7703 (ada_language_data): Delete la_get_symbol_name_matcher
7704 initializer.
7705 (language_defn::get_symbol_name_matcher_inner): New member
7706 function.
7707 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7708 initializer.
7709 (cplus_language_data): Likewise.
7710 (cplus_language::get_symbol_name_matcher_inner): New member
7711 function.
7712 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7713 (minimal_language_data): Likewise.
7714 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7715 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7716 initializer.
7717 * dictionary.c (iter_match_first_hashed): Update call to
7718 get_symbol_name_matcher.
7719 (iter_match_next_hashed): Likewise.
7720 (iter_match_next_linear): Likewise.
7721 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7722 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7723 initializer.
7724 (f_language::get_symbol_name_matcher_inner): New member function.
7725 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7726 initializer.
7727 * language.c (default_symbol_name_matcher): Update header comment,
7728 make static.
7729 (language_defn::get_symbol_name_matcher): New definition.
7730 (language_defn::get_symbol_name_matcher_inner): Likewise.
7731 (get_symbol_name_matcher): Delete.
7732 (unknown_language_data): Delete la_get_symbol_name_matcher
7733 initializer.
7734 (auto_language_data): Likewise.
7735 * language.h (language_data): Delete la_get_symbol_name_matcher
7736 field.
7737 (language_defn::get_symbol_name_matcher): New member function.
7738 (language_defn::get_symbol_name_matcher_inner): Likewise.
7739 (default_symbol_name_matcher): Delete declaration.
7740 * linespec.c (find_methods): Update call to
7741 get_symbol_name_matcher.
7742 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7743 initializer.
7744 * minsyms.c (lookup_minimal_symbol): Update call to
7745 get_symbol_name_matcher.
7746 (iterate_over_minimal_symbols): Likewise.
7747 * objc-lang.c (objc_language_data): Delete
7748 la_get_symbol_name_matcher initializer.
7749 * opencl-lang.c (opencl_language_data): Likewise.
7750 * p-lang.c (pascal_language_data): Likewise.
7751 * psymtab.c (psymbol_name_matches): Update call to
7752 get_symbol_name_matcher.
7753 * rust-lang.c (rust_language_data): Delete
7754 la_get_symbol_name_matcher initializer.
7755 * symtab.c (symbol_matches_search_name): Update call to
7756 get_symbol_name_matcher.
7757 (compare_symbol_name): Likewise.
7758
9a49ad8c
AB
77592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7760
7761 * ada-lang.c (ada_language_data): Delete la_compute_program
7762 initializer.
7763 * c-lang.c (c_language_data): Likewise.
7764 (c_language::compute_program): New member function.
7765 (cplus_language_data): Delete la_compute_program initializer.
7766 (cplus_language::compute_program): New member function.
7767 (asm_language_data): Delete la_compute_program initializer.
7768 (minimal_language_data): Likewise.
7769 * c-lang.h (c_compute_program): Update comment.
7770 (cplus_compute_program): Likewise.
7771 * compile/compile-c-support.c (c_compute_program): Likewise.
7772 (cplus_compute_program): Likewise.
7773 * compile/compile.c (compile_to_object): Update call to
7774 la_compute_program.
7775 * d-lang.c (d_language_data): Delete la_compute_program
7776 initializer.
7777 * f-lang.c (f_language_data): Likewise.
7778 * go-lang.c (go_language_data): Likewise.
7779 * language.c (unknown_language_data): Likewise.
7780 (auto_language_data): Likewise.
7781 * language.h (language_data): Delete la_compute_program field.
7782 (language_defn::compute_program): New member function.
7783 * m2-lang.c (m2_language_data): Delete la_compute_program
7784 initializer.
7785 * objc-lang.c (objc_language_data): Likewise.
7786 * opencl-lang.c (opencl_language_data): Likewise.
7787 * p-lang.c (pascal_language_data): Likewise.
7788 * rust-lang.c (rust_language_data): Likewise.
7789
eff93b4d
AB
77902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7791
7792 * ada-lang.c (ada_language_data) Delete
7793 la_class_name_from_physname initializer.
7794 * c-lang.c (c_language_data): Likewise.
7795 (cplus_language_data): Likewise.
7796 (cplus_language::class_name_from_physname): New member function.
7797 (asm_language_data): Delete la_class_name_from_physname
7798 initializer.
7799 (minimal_language_data): Likewise.
7800 * d-lang.c (d_language_data): Likewise.
7801 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7802 method on language_defn class.
7803 (guess_full_die_structure_name): Likewise.
7804 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7805 initializer.
7806 * go-lang.c (go_language_data): Likewise.
7807 * language.c (language_class_name_from_physname): Delete.
7808 (unk_lang_class_name): Delete.
7809 (unknown_language_data): Delete la_class_name_from_physname
7810 initializer.
7811 (auto_language_data): Likewise.
7812 * language.h (language_data): Delete la_class_name_from_physname
7813 field.
7814 (language_defn::class_name_from_physname): New function.
7815 (language_class_name_from_physname): Delete declaration.
7816 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7817 initializer.
7818 * objc-lang.c (objc_language_data): Likewise.
7819 * opencl-lang.c (opencl_language_data): Likewise.
7820 * p-lang.c (pascal_language_data): Likewise.
7821 * rust-lang.c (rust_language_data): Likewise.
7822
de543742
TT
78232020-06-16 Tom Tromey <tom@tromey.com>
7824
7825 * tui/tui-data.h (STATUS_NAME): New macro.
7826 * tui/tui-layout.c (tui_remove_some_windows)
7827 (initialize_known_windows, tui_register_window)
7828 (tui_layout_split::remove_windows, initialize_layouts)
7829 (tui_new_layout_command): Don't use hard-coded window names.
7830
a350efd4
TT
78312020-06-16 Tom Tromey <tom@tromey.com>
7832
7833 PR tui/25348:
7834 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7835 tui_initialize_readline. Only run once. Call rl_initialize.
7836 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7837 tui_initialize_readline.
7838 * tui/tui-io.c (tui_setup_io): Call
7839 tui_ensure_readline_initialized.
7840 * tui/tui-interp.c (tui_interp::init): Update.
7841
39ec0490
TT
78422020-06-16 Tom Tromey <tom@tromey.com>
7843
7844 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7845 Also preserve the status window.
7846
d2d1ea20
TT
78472020-06-16 Tom Tromey <tom@tromey.com>
7848
7849 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7850 where m_window==nullptr.
7851
66920317
TT
78522020-06-15 Tom Tromey <tromey@adacore.com>
7853
7854 * windows-nat.c (windows_nat::handle_output_debug_string):
7855 Update.
7856 (windows_nat::handle_ms_vc_exception): Update.
7857 * target.h (target_read_string): Change API.
7858 * target.c (target_read_string): Change API.
7859 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7860 Update.
7861 * solib-frv.c (frv_current_sos): Update.
7862 * solib-dsbt.c (dsbt_current_sos): Update.
7863 * solib-darwin.c (darwin_current_sos): Update.
7864 * linux-thread-db.c (inferior_has_bug): Update.
7865 * expprint.c (print_subexp_standard): Update.
7866 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7867 (ada_exception_message_1): Update.
7868
a5d871dd
TT
78692020-06-15 Tom Tromey <tromey@adacore.com>
7870
7871 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7872
670e35fa
TT
78732020-06-15 Tom Tromey <tromey@adacore.com>
7874
7875 * valprint.c (read_string): Update comment.
7876 * target.c (MIN): Remove.
7877 (target_read_string): Rewrite.
7878
f5272a3b
TT
78792020-06-15 Tom Tromey <tromey@adacore.com>
7880
7881 * corefile.c (read_memory_string): Remove.
7882 * ada-valprint.c (ada_value_print_ptr): Update.
7883 * ada-lang.h (ada_tag_name): Change return type.
7884 * ada-lang.c (type_from_tag): Update.
7885 (ada_tag_name_from_tsd): Change return type. Use
7886 target_read_string.
7887 (ada_tag_name): Likewise.
7888 * gdbcore.h (read_memory_string): Don't declare.
7889
2c074f49
HD
78902020-06-14 Hannes Domani <ssbssa@yahoo.de>
7891
7892 * symtab.c (rbreak_command): Ignore Windows drive colon.
7893
6a17d503
SM
78942020-06-12 Simon Marchi <simon.marchi@efficios.com>
7895
7896 * NEWS: Mention removed GDBserver host support.
7897
453c733f
NC
78982020-06-12 Nelson Chu <nelson.chu@sifive.com>
7899
7900 * features/riscv/rebuild-csr-xml.sh: Updated.
7901
2b4e6a3f
TT
79022020-06-11 Tom Tromey <tom@tromey.com>
7903
7904 PR gdb/18318:
7905 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7906
4412332f
JG
79072020-06-09 Jonny Grant <jg@jguk.org>
79082020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7909
7910 * main.c (captured_main_1): Don't print new line after help.
7911 (print_gdb_help): add mailing list and IRC channel information
7912 to --help. Add new lines between items in the footer. Remove
7913 quotes around bug url.
7914
2f33032a
KS
79152020-06-11 Keith Seitz <keiths@redhat.com>
7916
7917 PR gdb/21356
7918 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7919 Resolve typedefs for type length calculations.
7920
7ab96794
TV
79212020-06-10 Tom de Vries <tdevries@suse.de>
7922
7923 PR ada/24713
7924 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7925 (write_psymbols): Enable .gdb_index for ada.
7926 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7927 ada.
7928
e5f3ece2
TV
79292020-06-10 Tom de Vries <tdevries@suse.de>
7930
7931 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7932 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7933 namei" instead of "const char *name" argument.
7934 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7935 dw2_symtab_iter_init.
7936
940da03e
SM
79372020-06-08 Simon Marchi <simon.marchi@efficios.com>
7938
7939 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7940 to use type::field and field::type instead.
7941
b6cdac4b
SM
79422020-06-08 Simon Marchi <simon.marchi@efficios.com>
7943
7944 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7945 to use field::type instead.
7946
5d14b6e5
SM
79472020-06-08 Simon Marchi <simon.marchi@efficios.com>
7948
7949 * gdbtypes.h (struct field) <type, set_type>: New methods.
7950 Rename `type` field to...
7951 <m_type>: ... this. Change references throughout to use type or
7952 set_type methods.
7953 (FIELD_TYPE): Use field::type. Change call sites that modify
7954 the field's type to use field::set_type instead.
7955
3d967001
SM
79562020-06-08 Simon Marchi <simon.marchi@efficios.com>
7957
7958 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7959 to use type::index_type instead.
7960
262abc0d
SM
79612020-06-08 Simon Marchi <simon.marchi@efficios.com>
7962
7963 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7964 methods.
7965 (TYPE_INDEX_TYPE): Use type::index_type.
7966 * gdbtypes.c (create_array_type_with_stride): Likewise.
7967
82836c92
TT
79682020-06-07 Tom Tromey <tom@tromey.com>
7969
7970 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7971 parameter.
7972 (generic_value_print): Update.
7973
940dace9
AB
79742020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7975
7976 Revert commit 982a38f60b0.
7977 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7978
982a38f6
AB
79792020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7980
7981 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7982 avoid use after free.
7983
82f06518
TV
79842020-06-05 Tom de Vries <tdevries@suse.de>
7985
7986 * NEWS: Fix typos.
7987
f8c41851
SM
79882020-06-04 Simon Marchi <simon.marchi@efficios.com>
7989
7990 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7991 the per_bfd object.
7992 (dwarf2_read_debug_names): Likewise.
7993 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7994 object when re-using a per_bfd object with an index.
7995
f9b5d5ea
TV
79962020-06-03 Tom de Vries <tdevries@suse.de>
7997
7998 PR symtab/26046
7999 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8000 children for C++.
8001 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8002 DW_TAG_subprogram.
8003
f6eee2d0
AB
80042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8005
8006 * ada-lang.c (ada_language_data): Delete skip_trampoline
8007 initializer.
8008 * c-lang.c (c_language_data): Likewise.
8009 (cplus_language_data): Likewise.
8010 (cplus_language::skip_trampoline): New member function.
8011 (asm_language_data): Delete skip_trampoline initializer.
8012 (minimal_language_data): Likewise.
8013 * d-lang.c (d_language_data): Likewise.
8014 * f-lang.c (f_language_data): Likewise.
8015 * go-lang.c (go_language_data): Likewise.
8016 * language.c (unk_lang_trampoline): Delete function.
8017 (skip_language_trampoline): Update.
8018 (unknown_language_data): Delete skip_trampoline initializer.
8019 (auto_language_data): Likewise.
8020 * language.h (language_data): Delete skip_trampoline field.
8021 (language_defn::skip_trampoline): New function.
8022 * m2-lang.c (m2_language_data): Delete skip_trampoline
8023 initializer.
8024 * objc-lang.c (objc_skip_trampoline): Delete function, move
8025 implementation to objc_language::skip_trampoline.
8026 (objc_language_data): Delete skip_trampoline initializer.
8027 (objc_language::skip_trampoline): New member function with
8028 implementation from objc_skip_trampoline.
8029 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8030 initializer.
8031 * p-lang.c (pascal_language_data): Likewise.
8032 * rust-lang.c (rust_language_data): Likewise.
8033
0a50df5d
AB
80342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8035
8036 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8037 (ada_language::demangle): New member function.
8038 * c-lang.c (c_language_data): Delete la_demangle initializer.
8039 (cplus_language_data): Delete la_demangle initializer.
8040 (cplus_language::demangle): New member function.
8041 (asm_language_data): Delete la_demangle initializer.
8042 (minimal_language_data): Delete la_demangle initializer.
8043 * d-lang.c (d_language_data): Delete la_demangle initializer.
8044 (d_language::demangle): New member function.
8045 * f-lang.c (f_language_data): Delete la_demangle initializer.
8046 (f_language::demangle): New member function.
8047 * go-lang.c (go_language_data): Delete la_demangle initializer.
8048 (go_language::demangle): New member function.
8049 * language.c (language_demangle): Update.
8050 (unk_lang_demangle): Delete.
8051 (unknown_language_data): Delete la_demangle initializer.
8052 (unknown_language::demangle): New member function.
8053 (auto_language_data): Delete la_demangle initializer.
8054 (auto_language::demangle): New member function.
8055 * language.h (language_data): Delete la_demangle field.
8056 (language_defn::demangle): New function.
8057 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8058 * objc-lang.c (objc_language_data): Delete la_demangle
8059 initializer.
8060 (objc_language::demangle): New member function.
8061 * opencl-lang.c (opencl_language_data): Delete la_demangle
8062 initializer.
8063 * p-lang.c (pascal_language_data): Likewise.
8064 * rust-lang.c (rust_language_data): Likewise.
8065 (rust_language::demangle): New member function.
8066
fbfb0a46
AB
80672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8068
8069 * ada-lang.c (ada_language_data): Delete la_print_type
8070 initializer.
8071 (ada_language::print_type): New member function.
8072 * c-lang.c (c_language_data): Delete la_print_type initializer.
8073 (c_language::print_type): New member function.
8074 (cplus_language_data): Delete la_print_type initializer.
8075 (cplus_language::print_type): New member function.
8076 (asm_language_data): Delete la_print_type initializer.
8077 (asm_language::print_type): New member function.
8078 (minimal_language_data): Delete la_print_type initializer.
8079 (minimal_language::print_type): New member function.
8080 * d-lang.c (d_language_data): Delete la_print_type initializer.
8081 (d_language::print_type): New member function.
8082 * f-lang.c (f_language_data): Delete la_print_type initializer.
8083 (f_language::print_type): New member function.
8084 * go-lang.c (go_language_data): Delete la_print_type initializer.
8085 (go_language::print_type): New member function.
8086 * language.c (unk_lang_print_type): Delete.
8087 (unknown_language_data): Delete la_print_type initializer.
8088 (unknown_language::print_type): New member function.
8089 (auto_language_data): Delete la_print_type initializer.
8090 (auto_language::print_type): New member function.
8091 * language.h (language_data): Delete la_print_type field.
8092 (language_defn::print_type): New function.
8093 (LA_PRINT_TYPE): Update.
8094 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8095 (m2_language::print_type): New member function.
8096 * objc-lang.c (objc_language_data): Delete la_print_type
8097 initializer.
8098 (objc_language::print_type): New member function.
8099 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8100 to opencl_language::print_type.
8101 (opencl_language_data): Delete la_print_type initializer.
8102 (opencl_language::print_type): New member function, implementation
8103 from opencl_print_type.
8104 * p-lang.c (pascal_language_data): Delete la_print_type
8105 initializer.
8106 (pascal_language::print_type): New member function.
8107 * rust-lang.c (rust_print_type): Delete, implementation moved to
8108 rust_language::print_type.
8109 (rust_language_data): Delete la_print_type initializer.
8110 (rust_language::print_type): New member function, implementation
8111 from rust_print_type.
8112
6f827019
AB
81132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8114
8115 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8116 implementation moves to...
8117 (ada_language::sniff_from_mangled_name): ...here. Update return
8118 type.
8119 (ada_language_data): Delete la_sniff_from_mangled_name
8120 initializer.
8121 * c-lang.c (c_language_data): Likewise.
8122 (cplus_language_data): Likewise.
8123 (cplus_language::sniff_from_mangled_name): New member function,
8124 implementation taken from gdb_sniff_from_mangled_name.
8125 (asm_language_data): Delete la_sniff_from_mangled_name
8126 initializer.
8127 (minimal_language_data): Likewise.
8128 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8129 implementation moves to cplus_language::sniff_from_mangled_name.
8130 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8131 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8132 moves to...
8133 (d_language::sniff_from_mangled_name): ...here.
8134 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8135 * f-lang.c (f_language_data): Likewise.
8136 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8137 moves to...
8138 (go_language::sniff_from_mangled_name): ...here.
8139 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8140 * language.c (language_sniff_from_mangled_name): Delete.
8141 (unknown_language_data): Delete la_sniff_from_mangled_name
8142 initializer.
8143 (auto_language_data): Likewise.
8144 * language.h (language_data): Delete la_sniff_from_mangled_name
8145 field.
8146 (language_defn::sniff_from_mangled_name): New function.
8147 (language_sniff_from_mangled_name): Delete declaration.
8148 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8149 field.
8150 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8151 implementation moves to...
8152 (objc_language::sniff_from_mangled_name): ...here.
8153 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8154 * opencl-lang.c (opencl_language_data): Likewise.
8155 * p-lang.c (pascal_language_data): Likewise.
8156 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8157 implementation moves to...
8158 (rust_language::sniff_from_mangled_name): ...here.
8159 (rust_language_data): Delete la_sniff_from_mangled_name
8160 initializer.
8161 * symtab.c (symbol_find_demangled_name): Call
8162 sniff_from_mangled_name member function.
8163
fb8006fd
AB
81642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8165
8166 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8167 initializer.
8168 * c-lang.c (c_language_data): Likewise.
8169 (cplus_language_data): Likewise.
8170 (cplus_language::search_name_hash): New member function.
8171 (asm_language_data): Delete la_search_name_hash initializer.
8172 (minimal_language_data): Likewise.
8173 * d-lang.c (d_language_data): Likewise.
8174 * dictionary.c (default_search_name_hash): Rename to...
8175 (language_defn::search_name_hash): ...this.
8176 * f-lang.c (f_language_data): Likewise.
8177 (f_language::search_name_hash): New member function.
8178 * go-lang.c (go_language_data): Delete la_search_name_hash
8179 initializer.
8180 * language.c (unknown_language_data): Likewise.
8181 (auto_language_data): Likewise.
8182 * language.h (struct language_data): Delete la_search_name_hash
8183 field.
8184 (language_defn::search_name_hash): Declare new member function.
8185 (default_search_name_hash): Delete declaration.
8186 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8187 initializer.
8188 * objc-lang.c (objc_language_data): Likewise.
8189 * opencl-lang.c (opencl_language_data): Likewise.
8190 * p-lang.c (pascal_language_data): Likewise.
8191 * rust-lang.c (rust_language_data): Likewise.
8192 * symtab.c (search_name_hash): Update call.
8193
8e25bafe
AB
81942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8195
8196 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8197 initializer.
8198 * c-lang.c (class compile_instance): Declare.
8199 (c_language_data): Delete la_get_compile_instance initializer.
8200 (c_language::get_compile_instance): New member function.
8201 (cplus_language_data): Delete la_get_compile_instance initializer.
8202 (cplus_language::get_compile_instance): New member function.
8203 (asm_language_data): Delete la_get_compile_instance initializer.
8204 (minimal_language_data): Likewise.
8205 * c-lang.h (c_get_compile_context): Update comment.
8206 (cplus_get_compile_context): Update comment.
8207 * compile/compile.c (compile_to_object): Update calls, don't rely
8208 on function pointer being NULL.
8209 * d-lang.c (d_language_data): Delete la_get_compile_instance
8210 initializer.
8211 * f-lang.c (f_language_data): Likewise.
8212 * go-lang.c (go_language_data): Likewise.
8213 * language.c (unknown_language_data): Likewise.
8214 (auto_language_data): Likewise.
8215 * language.h (language_data): Delete la_get_compile_instance field.
8216 (language_defn::get_compile_instance): New member function.
8217 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8218 initializer.
8219 * objc-lang.c (objc_language_data): Likewise.
8220 * opencl-lang.c (opencl_language_data): Likewise.
8221 * p-lang.c (pascal_language_data): Likewise.
8222 * rust-lang.c (rust_language_data): Likewise.
8223
4009ee92
AB
82242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8225
8226 * ada-lang.c (ada_add_all_symbols): Update comment.
8227 (ada_iterate_over_symbols): Delete, move implementation to...
8228 (ada_language::iterate_over_symbols): ...here, a new member
8229 function, rewrite to use range based for loop.
8230 (ada_language_data): Delete la_iterate_over_symbols initializer.
8231 * c-lang.c (c_language_data): Likewise.
8232 (cplus_language_data): Likewise.
8233 (asm_language_data): Likewise.
8234 (minimal_language_data): Likewise.
8235 * d-lang.c (d_language_data): Likewise.
8236 * f-lang.c (f_language_data): Likewise.
8237 * go-lang.c (go_language_data): Likewise.
8238 * language.c (unknown_language_data): Likewise.
8239 (auto_language_data): Likewise.
8240 * language.h (language_data): Delete la_iterate_over_symbols field.
8241 (language_defn::iterate_over_symbols): New member function.
8242 (LA_ITERATE_OVER_SYMBOLS): Update.
8243 * linespec.c (iterate_over_all_matching_symtabs): Update.
8244 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8245 initializer.
8246 * objc-lang.c (objc_language_data): Likewise.
8247 * opencl-lang.c (opencl_language_data): Likewise.
8248 * p-lang.c (pascal_language_data): Likewise.
8249 * rust-lang.c (rust_language_data): Likewise.
8250
54f4ca46
AB
82512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8252
8253 * ada-lang.c (ada_language_data): Delete
8254 la_lookup_transparent_type initializer.
8255 * c-lang.c (c_language_data): Likewise.
8256 (cplus_language_data): Likewise.
8257 (cplus_language::lookup_transparent_type): New member function.
8258 (asm_language_data): Delete la_lookup_transparent_type
8259 initializer.
8260 (minimal_language_data): Likewise.
8261 * d-lang.c (d_language_data): Likewise.
8262 * f-lang.c (f_language_data): Likewise.
8263 * go-lang.c (go_language_data): Likewise.
8264 * language.c (unknown_language_data): Likewise.
8265 (auto_language_data): Likewise.
8266 * language.h (struct language_data): Delete
8267 la_lookup_transparent_type field.
8268 (language_defn::lookup_transparent_type): New member function.
8269 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8270 initializer.
8271 * objc-lang.c (objc_language_data): Likewise.
8272 * opencl-lang.c (opencl_language_data): Likewise.
8273 * p-lang.c (pascal_language_data): Likewise.
8274 * rust-lang.c (rust_language_data): Likewise.
8275 * symtab.c (symbol_matches_domain): Update call.
8276
1fb314aa
AB
82772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8278
8279 * ada-lang.c (ada_language_arch_info): Delete function, move
8280 implementation to...
8281 (ada_language::language_arch_info): ...here, a new member
8282 function.
8283 (ada_language_data): Delete la_language_arch_info.
8284 * c-lang.c (c_language_data): Likewise.
8285 (c_language::language_arch_info): New member function.
8286 (cplus_language_arch_info): Delete function, move
8287 implementation to...
8288 (cplus_language::language_arch_info): ...here, a new member
8289 function.
8290 (cplus_language_data): Delete la_language_arch_info.
8291 (asm_language_data): Likewise.
8292 (asm_language::language_arch_info): New member function.
8293 (minimal_language_data): Delete la_language_arch_info.
8294 (minimal_language::language_arch_info): New member function.
8295 * d-lang.c (d_language_arch_info): Delete function, move
8296 implementation to...
8297 (d_language::language_arch_info): ...here, a new member
8298 function.
8299 (d_language_data): Delete la_language_arch_info.
8300 * f-lang.c (f_language_arch_info): Delete function, move
8301 implementation to...
8302 (f_language::language_arch_info): ...here, a new member
8303 function.
8304 (f_language_data): Delete la_language_arch_info.
8305 * go-lang.c (go_language_arch_info): Delete function, move
8306 implementation to...
8307 (go_language::language_arch_info): ...here, a new member
8308 function.
8309 (go_language_data): Delete la_language_arch_info.
8310 * language.c (unknown_language_data): Likewise.
8311 (unknown_language::language_arch_info): New member function.
8312 (auto_language_data): Delete la_language_arch_info.
8313 (auto_language::language_arch_info): New member function.
8314 (language_gdbarch_post_init): Update call to
8315 la_language_arch_info.
8316 * language.h (language_data): Delete la_language_arch_info
8317 function pointer.
8318 (language_defn::language_arch_info): New function.
8319 * m2-lang.c (m2_language_arch_info): Delete function, move
8320 implementation to...
8321 (m2_language::language_arch_info): ...here, a new member
8322 function.
8323 (m2_language_data): Delete la_language_arch_info.
8324 * objc-lang.c (objc_language_arch_info): Delete function, move
8325 implementation to...
8326 (objc_language::language_arch_info): ...here, a new member
8327 function.
8328 (objc_language_data): Delete la_language_arch_info.
8329 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8330 implementation to...
8331 (opencl_language::language_arch_info): ...here, a new member
8332 function.
8333 (opencl_language_data): Delete la_language_arch_info.
8334 * p-lang.c (pascal_language_arch_info): Delete function, move
8335 implementation to...
8336 (pascal_language::language_arch_info): ...here, a new member
8337 function.
8338 (pascal_language_data): Delete la_language_arch_info.
8339 * rust-lang.c (rust_language_arch_info): Delete function, move
8340 implementation to...
8341 (rust_language::language_arch_info): ...here, a new member
8342 function.
8343 (rust_language_data): Delete la_language_arch_info.
8344
48448202
AB
83452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8346
8347 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8348 initializer.
8349 * c-lang.c (c_language_data): Likewise.
8350 (cplus_language_data): Likewise.
8351 (cplus_language::pass_by_reference_info): New method.
8352 (asm_language_data): Delete la_pass_by_reference initializer.
8353 (minimal_language_data): Likewise.
8354 * cp-abi.c (cp_pass_by_reference): Remove use of
8355 default_pass_by_reference.
8356 * d-lang.c (d_language_data): Likewise.
8357 * f-lang.c (f_language_data): Likewise.
8358 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8359 default_pass_by_reference.
8360 * go-lang.c (go_language_data): Likewise.
8361 * language.c (language_pass_by_reference): Update.
8362 (default_pass_by_reference): Delete.
8363 (unknown_language_data): Delete la_pass_by_reference
8364 initializer.
8365 (auto_language_data): Likewise.
8366 * language.h (struct language_data): Delete la_pass_by_reference
8367 field.
8368 (language_defn::pass_by_reference_info): New member function.
8369 (default_pass_by_reference): Delete declaration.
8370 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8371 initializer.
8372 * objc-lang.c (objc_language_data): Likewise.
8373 * opencl-lang.c (opencl_language_data): Likewise.
8374 * p-lang.c (pascal_language_data): Likewise.
8375 * rust-lang.c (rust_language_data): Likewise.
8376
15e5fd35
AB
83772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8378
8379 * ada-lang.c (ada_read_var_value): Delete function, move
8380 implementation to...
8381 (ada_language::read_var_value): ...here.
8382 (ada_language_data): Delete la_read_var_value initializer.
8383 * c-lang.c (c_language_data): Likewise.
8384 (cplus_language_data): Likewise.
8385 (minimal_language_data): Likewise.
8386 * d-lang.c (d_language_data): Likewise.
8387 * f-lang.c (f_language_data): Likewise.
8388 * findvar.c (default_read_var_value): Rename to...
8389 (language_defn::read_var_value): ...this.
8390 * findvar.c (read_var_value): Update header comment, and change to
8391 call member function instead of function pointer.
8392 * go-lang.c (go_language_data): Likewise.
8393 * language.c (unknown_language_data): Delete la_read_var_value
8394 initializer.
8395 (auto_language_data): Likewise.
8396 * language.h (struct language_data): Delete la_read_var_value
8397 field.
8398 (language_defn::read_var_value): New member function.
8399 (default_read_var_value): Delete declaration.
8400 * m2-lang.c (m2_language_data): Delete la_read_var_value
8401 initializer.
8402 * objc-lang.c (objc_language_data): Likewise.
8403 * opencl-lang.c (opencl_language_data): Likewise.
8404 * p-lang.c (pascal_language_data): Likewise.
8405 * rust-lang.c (rust_language_data): Likewise.
8406 * value.h (default_read_var_value): Delete declaration.
8407
5bd40f2a
AB
84082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8409
8410 * ada-lang.c (ada_print_array_index): Delete function, move
8411 implementation to...
8412 (ada_language::print_array_index): ...here.
8413 (ada_language_data): Delete la_print_array_index initializer.
8414 * c-lang.c (c_language_data): Likewise.
8415 (cplus_language_data): Likewise.
8416 (minimal_language_data): Likewise.
8417 * d-lang.c (d_language_data): Likewise.
8418 * f-lang.c (f_language_data): Likewise.
8419 * go-lang.c (go_language_data): Likewise.
8420 * language.c (default_print_array_index): Delete function, move
8421 implementation to...
8422 (language_defn::print_array_index): ...here.
8423 (unknown_language_data): Delete la_print_array_index initializer.
8424 (auto_language_data): Likewise.
8425 * language.h (struct language_data): Delete la_print_array_index
8426 field.
8427 (language_defn::print_array_index): New member function.
8428 (LA_PRINT_ARRAY_INDEX): Update.
8429 (default_print_array_index): Delete declaration.
8430 * m2-lang.c (m2_language_data): Delete la_print_array_index
8431 initializer.
8432 * objc-lang.c (objc_language_data): Likewise.
8433 * opencl-lang.c (opencl_language_data): Likewise.
8434 * p-lang.c (pascal_language_data): Likewise.
8435 * rust-lang.c (rust_language_data): Likewise.
8436
0874fd07
AB
84372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8438
8439 * gdb/ada-lang.c (ada_language_defn): Convert to...
8440 (ada_language_data): ...this.
8441 (class ada_language): New class.
8442 (ada_language_defn): New static global.
8443 * gdb/c-lang.c (c_language_defn): Convert to...
8444 (c_language_data): ...this.
8445 (class c_language): New class.
8446 (c_language_defn): New static global.
8447 (cplus_language_defn): Convert to...
8448 (cplus_language_data): ...this.
8449 (class cplus_language): New class.
8450 (cplus_language_defn): New static global.
8451 (asm_language_defn): Convert to...
8452 (asm_language_data): ...this.
8453 (class asm_language): New class.
8454 (asm_language_defn): New static global.
8455 (minimal_language_defn): Convert to...
8456 (minimal_language_data): ...this.
8457 (class minimal_language): New class.
8458 (minimal_language_defn): New static global.
8459 * gdb/d-lang.c (d_language_defn): Convert to...
8460 (d_language_data): ...this.
8461 (class d_language): New class.
8462 (d_language_defn): New static global.
8463 * gdb/f-lang.c (f_language_defn): Convert to...
8464 (f_language_data): ...this.
8465 (class f_language): New class.
8466 (f_language_defn): New static global.
8467 * gdb/go-lang.c (go_language_defn): Convert to...
8468 (go_language_data): ...this.
8469 (class go_language): New class.
8470 (go_language_defn): New static global.
8471 * gdb/language.c (unknown_language_defn): Remove declaration.
8472 (current_language): Initialize to nullptr, real initialization is
8473 moved to _initialize_language.
8474 (languages): Delete global.
8475 (language_defn::languages): Define.
8476 (set_language_command): Use language_defn::languages.
8477 (set_language): Likewise.
8478 (range_error): Likewise.
8479 (language_enum): Likewise.
8480 (language_def): Likewise.
8481 (add_set_language_command): Use language_def::languages for the
8482 language list, and language_def to lookup language pointers.
8483 (skip_language_trampoline): Use language_defn::languages.
8484 (unknown_language_defn): Convert to...
8485 (unknown_language_data): ...this.
8486 (class unknown_language): New class.
8487 (unknown_language_defn): New static global.
8488 (auto_language_defn): Convert to...
8489 (auto_language_data): ...this.
8490 (class auto_language): New class.
8491 (auto_language_defn): New static global.
8492 (language_gdbarch_post_init): Use language_defn::languages.
8493 (_initialize_language): Initialize current_language.
8494 * gdb/language.h (struct language_defn): Rename to...
8495 (struct language_data): ...this.
8496 (struct language_defn): New.
8497 (auto_language_defn): Delete.
8498 (unknown_language_defn): Delete.
8499 (minimal_language_defn): Delete.
8500 (ada_language_defn): Delete.
8501 (asm_language_defn): Delete.
8502 (c_language_defn): Delete.
8503 (cplus_language_defn): Delete.
8504 (d_language_defn): Delete.
8505 (f_language_defn): Delete.
8506 (go_language_defn): Delete.
8507 (m2_language_defn): Delete.
8508 (objc_language_defn): Delete.
8509 (opencl_language_defn): Delete.
8510 (pascal_language_defn): Delete.
8511 (rust_language_defn): Delete.
8512 * gdb/m2-lang.c (m2_language_defn): Convert to...
8513 (m2_language_data): ...this.
8514 (class m2_language): New class.
8515 (m2_language_defn): New static global.
8516 * gdb/objc-lang.c (objc_language_defn): Convert to...
8517 (objc_language_data): ...this.
8518 (class objc_language): New class.
8519 (objc_language_defn): New static global.
8520 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8521 (opencl_language_data): ...this.
8522 (class opencl_language): New class.
8523 (opencl_language_defn): New static global.
8524 * gdb/p-lang.c (pascal_language_defn): Convert to...
8525 (pascal_language_data): ...this.
8526 (class pascal_language): New class.
8527 (pascal_language_defn): New static global.
8528 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8529 language pointer, update comment format.
8530 * gdb/rust-lang.c (rust_language_defn): Convert to...
8531 (rust_language_data): ...this.
8532 (class rust_language): New class.
8533 (rust_language_defn): New static global.
8534
1313c56e
AB
85352020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8536
8537 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8538 member variable.
8539 <m_stmt_at_address>: New member variable.
8540 (lnp_state_machine::record_line): Don't record some lines, update
8541 tracking of is_stmt at the same address.
8542 (lnp_state_machine::lnp_state_machine): Initialise new member
8543 variables.
8544
b7ed9f3d
ST
85452020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8546
8547 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8548 "-include gnu-nat-mig.h".
8549 * gnu-nat-mig.h: New file.
8550 * gnu-nat.c: Include "gnu-nat-mig.h".
8551 (exc_server, msg_reply_server, notify_server,
8552 process_reply_server): Remove declarations.
8553
14a8ad62
ST
85542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8555
8556 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8557 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8558 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8559 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8560 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8561 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8562 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8563 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8564 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8565 to gnu_nat_target class.
8566 * gnu-nat.c: Likewise.
8567 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8568 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8569 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8570 object.
8571 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8572 instead of `gnu_target'.
8573
0af5e106
ST
85742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8575
8576 * i386-gnu-tdep.c: Include "gdbcore.h"
8577 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8578 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8579 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8580 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8581 i386_gnu_sigcontext_addr): New functions
8582 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8583 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8584 tdep.
8585
078f2fc9
ST
85862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8587
8588 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8589 before fork_inferior call. Avoid calling it if target_is_pushed returns
8590 true.
8591
53dff92c
ST
85922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8593
8594 * gnu-nat.h (gnu_target): New variable declaration.
8595 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8596 gnu_target.
8597 * gnu-nat.c (gnu_target): New variable.
8598 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8599 add_thread_silent, and add_thread calls.
8600 (gnu_nat_target::create_inferior): Pass gnu_target to
8601 add_thread_silent, thread_change_ptid call.
8602 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8603 call.
8604
5a8b8627
ST
86052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8606
8607 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8608 (gnu_nat_target::find_memory_regions): Remove unused
8609 `old_address' variable.
8610
366f550a
ST
86112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8612
8613 * gnu-nat.c: Include "gdbarch.h".
8614
f14871bf
ST
86152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8616
8617 * reply_mig_hack.awk (Error return): Cast function through
8618 void *, to bypass compiler function call check.
8619
c6887cfb
ST
86202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8621
8622 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8623 $(srcdir)/reply_mig_hack.awk.
8624
6930bffe
ST
86252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8626
8627 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8628
112c22ed
JG
86292020-05-30 Jonny Grant <jg@jguk.org>
8630
8631 * configure.ac (ACX_BUGURL): change bug URL to https.
8632
f68f85b5
PA
86332020-05-30 Pedro Alves <palves@redhat.com>
8634
8635 * cp-support.c (replace_typedefs_template): New.
8636 (replace_typedefs_qualified_name): Handle
8637 DEMANGLE_COMPONENT_TEMPLATE.
8638
976ca316
SM
86392020-05-29 Simon Marchi <simon.marchi@efficios.com>
8640
8641 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8642 dwarf2/index-cache.h, dwarf2/index-write.c,
8643 dwarf2/index-write.h, dwarf2/line-header.c,
8644 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8645 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8646 variables and fields from `dwarf2_per_objfile` to just
8647 `per_objfile` throughout.
8648
989ade05
SM
86492020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8650
8651 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8652 <push_dwarf_reg_entry_value>: Add comment.
8653
c47bae85
KB
86542020-05-28 Kevin Buettner <kevinb@redhat.com>
8655 Keith Seitz <keiths@redhat.com>
8656
8657 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8658 instead of PyEval_ReleaseLock.
8659 (class gdbpy_gil): Move to earlier in file.
8660 (finalize_python): Set gdb_python_initialized.
8661 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8662 when not initialized.
8663
44486dcf
SM
86642020-05-28 Simon Marchi <simon.marchi@efficios.com>
8665
8666 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8667 <push_dwarf_reg_entry_value>: Remove assert. Override
8668 per_objfile with caller_per_objfile.
8669
f030440d
TV
86702020-05-28 Tom de Vries <tdevries@suse.de>
8671
8672 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8673 PR gold/15646 workaround to symbol kind "type".
8674
f0fbb768
TT
86752020-05-27 Tom Tromey <tromey@adacore.com>
8676
8677 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8678
af0b2a3e
TT
86792020-05-27 Tom Tromey <tromey@adacore.com>
8680
8681 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8682 Use htab_find_with_hash.
8683 <add_abbrev>: Remove "abbrev_number" parameter.
8684 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8685 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8686 (hash_abbrev): Add comment.
8687 (abbrev_table::lookup_abbrev): Move to header file.
8688 (abbrev_table::read): Update.
8689
7d00ffec
TT
86902020-05-27 Tom Tromey <tromey@adacore.com>
8691
8692 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8693 method.
8694 <canonical_name>: New member.
8695 <raw_name>: Rename from "name".
8696 (partial_die_info): Initialize canonical_name.
8697 (scan_partial_symbols): Check raw_name.
8698 (partial_die_parent_scope, partial_die_full_name)
8699 (add_partial_symbol, add_partial_subprogram)
8700 (add_partial_enumeration, load_partial_dies): Use "name" method.
8701 (partial_die_info::name): New method.
8702 (partial_die_info::read, guess_partial_die_structure_name)
8703 (partial_die_info::fixup): Update.
8704
697bba18
TT
87052020-05-27 Tom Tromey <tromey@adacore.com>
8706
8707 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8708 <get_ref_die_offset>: Inline.
8709 <get_ref_die_offset_complaint>: New method.
8710 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8711 (attribute::get_ref_die_offset_complaint): Rename from
8712 get_ref_die_offset. Just issue complaint.
8713
c17ace43
HD
87142020-05-27 Hannes Domani <ssbssa@yahoo.de>
8715
8716 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8717
96445f0b
HD
87182020-05-27 Hannes Domani <ssbssa@yahoo.de>
8719
8720 * exec.c (exec_file_attach): Use errno value of first openp failure.
8721
ac637ec3
HD
87222020-05-27 Hannes Domani <ssbssa@yahoo.de>
8723
8724 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8725 Don't close thread handle.
8726
17ee85fc
TT
87272020-05-27 Tom Tromey <tom@tromey.com>
8728 Simon Marchi <simon.marchi@efficios.com>
8729
8730 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8731 shared_ptr.
8732 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8733 member.
8734 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8735 dwarf2_per_bfd_objfile_data_key>: New globals.
8736 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8737 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8738 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8739 shared.
8740 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8741 short-circuit when sharing.
8742 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8743 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8744
39b16f87
SM
87452020-05-27 Simon Marchi <simon.marchi@efficios.com>
8746
8747 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8748 to...
8749 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8750 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8751
fcf23d5b
SM
87522020-05-27 Simon Marchi <simon.marchi@efficios.com>
8753
8754 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8755 build_name_components, find_name_components_bounds>:
8756 Add per_objfile parameter.
8757 (struct mapped_index) <symbol_name_at>: Likewise.
8758 (struct mapped_debug_names): Remove constructor.
8759 <dwarf2_per_objfile>: Remove field.
8760 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8761 (mapped_index_base::find_name_components_bounds,
8762 mapped_index_base::build_name_components,
8763 dw2_expand_symtabs_matching_symbol): Likewise.
8764 (class mock_mapped_index) <symbol_name_at>: Likewise.
8765 (check_match): Likewise.
8766 (check_find_bounds_finds): Likewise.
8767 (test_mapped_index_find_name_component_bounds): Update.
8768 (CHECK_MATCH): Update.
8769 (dw2_expand_symtabs_matching): Update.
8770 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8771 per_objfile parameter.
8772 <find_vec_in_debug_names>: Likewise.
8773 <m_per_objfile>: New field.
8774 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8775 parameter.
8776 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8777 (dw2_debug_names_iterator::next): Update.
8778 (dw2_debug_names_lookup_symbol): Update.
8779 (dw2_debug_names_expand_symtabs_for_function): Update.
8780 (dw2_debug_names_map_matching_symbols): Update.
8781 (dw2_debug_names_expand_symtabs_matching): Update.
8782 (dwarf2_read_debug_names): Update.
8783
7188ed02
SM
87842020-05-27 Simon Marchi <simon.marchi@efficios.com>
8785
8786 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8787 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8788 move to dwarf2_per_objfile.
8789 <read_in_chain>: Remove.
8790 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8791 remove_all_cus, age_comp_units>: New methods.
8792 <m_dwarf2_cus>: New member.
8793 (struct dwarf2_per_cu_data) <cu>: Remove.
8794 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8795 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8796 moved to methods of dwarf2_per_objfile.
8797 (dwarf2_clear_marks): Remove.
8798 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8799 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8800 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8801 (dwarf2_per_objfile::remove_all_cus): New.
8802 (class free_cached_comp_units) <~free_cached_comp_units>:
8803 Update.
8804 (load_cu): Update.
8805 (dw2_do_instantiate_symtab): Adjust.
8806 (fill_in_sig_entry_from_dwo_entry): Adjust.
8807 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8808 (cutu_reader::cutu_reader): Likewise.
8809 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8810 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8811 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8812 and dwarf2_per_objfile::age_comp_units.
8813 (load_partial_comp_unit): Update.
8814 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8815 (process_queue): Likewise.
8816 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8817 backlink.
8818 (dwarf2_read_addr_index): Likewise.
8819 (follow_die_offset): Likewise.
8820 (dwarf2_fetch_die_loc_sect_off): Likewise.
8821 (dwarf2_fetch_constant_bytes): Likewise.
8822 (dwarf2_fetch_die_type_sect_off): Likewise.
8823 (follow_die_sig_1): Likewise.
8824 (load_full_type_unit): Likewise.
8825 (read_signatured_type): Likewise.
8826 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8827 (dwarf2_cu::~dwarf2_cu): Remove.
8828 (dwarf2_per_objfile::get_cu): New.
8829 (dwarf2_per_objfile::set_cu): New.
8830 (age_cached_comp_units): Rename to...
8831 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8832 to std::unordered_map.
8833 (free_one_cached_comp_unit): Rename to...
8834 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8835 to std::unordered_map.
8836 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8837 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8838 a dwarf2_per_objfile in data.
8839 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8840 (dwarf2_clear_marks): Remove.
8841
2e671100
SM
88422020-05-27 Simon Marchi <simon.marchi@efficios.com>
8843
8844 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8845 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8846 (init_tu_and_read_dwo_dies): Likewise.
8847 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8848 (cutu_reader::cutu_reader): Likewise.
8849 (load_partial_comp_unit): Likewise.
8850 (process_psymtab_comp_unit): Update.
8851 (build_type_psymtabs_1): Update.
8852 (process_skeletonless_type_unit): Update.
8853 (load_full_comp_unit): Update.
8854 (find_partial_die): Update.
8855 (dwarf2_read_addr_index): Update.
8856 (read_signatured_type): Update.
8857
2e6a9f79
SM
88582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8859
8860 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8861 m_header_read_in>: New fields.
8862 <get_header>: New method.
8863 * dwarf2/read.c (per_cu_header_read_in): Remove.
8864 (dwarf2_per_cu_data::get_header): New.
8865 (dwarf2_per_cu_data::addr_size): Update.
8866 (dwarf2_per_cu_data::offset_size): Update.
8867 (dwarf2_per_cu_data::ref_addr_size): Update.
8868
1b555f17
SM
88692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8870
8871 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8872 (dw2_do_instantiate_symtab): Update.
8873 (queue_and_load_all_dwo_tus): Change parameter from
8874 dwarf2_per_cu_data to dwarf2_cu.
8875 (dwarf2_fetch_die_loc_sect_off): Update.
8876 (dwarf2_fetch_constant_bytes): Update.
8877 (dwarf2_fetch_die_type_sect_off): Update.
8878
8fc0b21d
SM
88792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8880
8881 * dwarf2/read.c (process_full_comp_unit,
8882 process_full_type_unit): Remove per_cu, per_objfile paramters.
8883 Add dwarf2_cu parameter.
8884 (process_queue): Update.
8885
168c9250
SM
88862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8887
8888 * dwarf2/read.c (create_cu_from_index_list): Replace
8889 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8890 (create_cus_from_index_list): Likewise.
8891 (create_cus_from_index): Likewise.
8892 (create_signatured_type_table_from_index): Likewise.
8893 (create_cus_from_debug_names_list): Likewise.
8894 (create_cus_from_debug_names): Likewise.
8895 (dwarf2_read_gdb_index): Update.
8896 (dwarf2_read_debug_names): Update.
8897
e286671b
TT
88982020-05-27 Tom Tromey <tom@tromey.com>
8899 Simon Marchi <simon.marchi@efficios.com>
8900
8901 * dwarf2/read.h (struct dwarf2_per_objfile)
8902 <get_type_for_signatured_type, set_type_for_signatured_type>:
8903 New methods.
8904 <m_type_map>: New member.
8905 (struct signatured_type) <type>: Remove.
8906 * dwarf2/read.c
8907 (dwarf2_per_objfile::get_type_for_signatured_type,
8908 dwarf2_per_objfile::set_type_for_signatured_type): New.
8909 (get_signatured_type): Use new methods.
8910
8adb8487
TT
89112020-05-27 Tom Tromey <tom@tromey.com>
8912 Simon Marchi <simon.marchi@efficios.com>
8913
8914 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8915 (struct dwarf2_per_objfile) <type_units>: New member.
8916 <get_type_unit_group_unshareable>: New method.
8917 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8918 num_symtabs, symtabs>: Remove; move to
8919 type_unit_group_unshareable.
8920 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8921 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8922 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8923
127bbf4b
SM
89242020-05-27 Simon Marchi <simon.marchi@efficios.com>
8925
8926 * dwarf2/read.h (struct dwarf2_per_cu_data):
8927 <dwarf2_per_objfile>: Remove.
8928 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8929 dwarf2_per_objfile.
8930 (create_signatured_type_table_from_index): Likewise.
8931 (create_signatured_type_table_from_debug_names): Likewise.
8932 (create_debug_type_hash_table): Likewise.
8933 (fill_in_sig_entry_from_dwo_entry): Likewise.
8934 (create_type_unit_group): Likewise.
8935 (read_comp_units_from_section): Likewise.
8936 (create_cus_hash_table): Likewise.
8937
f6e649dd
SM
89382020-05-27 Simon Marchi <simon.marchi@efficios.com>
8939
8940 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8941 dwarf2_per_cu_data::dwarf2_per_objfile.
8942 (compute_compunit_symtab_includes): Likewise.
8943 (dwarf2_cu::start_symtab): Likewise.
8944
aa66c379
SM
89452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8946
8947 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8948 parameter.
8949 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8950 (read_namespace_alias): Update.
8951 (lookup_die_type): Update.
8952 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8953 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8954 Update.
8955 (disassemble_dwarf_expression): Update.
8956
120ce1b5
SM
89572020-05-27 Simon Marchi <simon.marchi@efficios.com>
8958
8959 * dwarf2/read.h (struct dwarf2_queue_item): Add
8960 dwarf2_per_objfile parameter, assign new parameter.
8961 <per_objfile>: New field.
8962 * dwarf2/read.c (free_one_cached_comp_unit): Add
8963 dwarf2_per_objfile parameter.
8964 (queue_comp_unit): Likewise.
8965 (dw2_do_instantiate_symtab): Update.
8966 (process_psymtab_comp_unit): Update.
8967 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8968 (process_imported_unit_die): Update.
8969 (queue_and_load_dwo_tu): Update.
8970 (follow_die_offset): Update.
8971 (follow_die_sig_1): Update.
8972
9f47c707
SM
89732020-05-27 Simon Marchi <simon.marchi@efficios.com>
8974
8975 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8976 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8977 (read_call_site_scope): Assign per_objfile.
8978 (dwarf2_per_cu_data::objfile): Remove.
8979 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8980 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8981 dwarf2_per_objfile parameter.
8982 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8983 dwarf2_per_objfile parameter.
8984 (dwarf_expr_reg_to_entry_parameter): Add output
8985 dwarf2_per_objfile parameter.
8986 (locexpr_get_frame_base): Update.
8987 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8988 <push_dwarf_reg_entry_value>: Update.
8989 <call_site_to_target_addr>: Update.
8990 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8991 parameter.
8992 (value_of_dwarf_reg_entry): Update.
8993 (rw_pieced_value): Update.
8994 (indirect_synthetic_pointer): Update.
8995 (dwarf2_evaluate_property): Update.
8996 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8997 parameter.
8998 (locexpr_read_variable): Update.
8999 (locexpr_get_symbol_read_needs): Update.
9000 (loclist_read_variable): Update.
9001
14095eb3
SM
90022020-05-27 Simon Marchi <simon.marchi@efficios.com>
9003
9004 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9005 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9006 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9007 parameter.
9008 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9009 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9010 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9011 parameter.
9012 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9013 sect_variable_value): Add dwarf2_per_objfile parameter.
9014 (class dwarf_evaluate_loc_desc) <dwarf_call,
9015 dwarf_variable_value>: Update.
9016 (fetch_const_value_from_synthetic_pointer): Add
9017 dwarf2_per_objfile parameter.
9018 (fetch_const_value_from_synthetic_pointer): Update.
9019 (coerced_pieced_ref): Update.
9020 (class symbol_needs_eval_context) <dwarf_call,
9021 dwarf_variable_value>: Update.
9022 (dwarf2_compile_expr_to_ax): Update.
9023
3c3cd3d4
SM
90242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9025
9026 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9027 parameter.
9028 (dwarf2_evaluate_loc_desc_full): Update.
9029
82ca3f51
SM
90302020-05-27 Simon Marchi <simon.marchi@efficios.com>
9031
9032 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9033 parameter.
9034 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9035 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9036 dwarf2_per_objfile parameter.
9037 (decode_debug_loc_dwo_addresses): Likewise.
9038 (dwarf2_find_location_expression): Update.
9039 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9040 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9041 parameter.
9042 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9043 parameter.
9044 (locexpr_describe_location_1): Likewise.
9045 (locexpr_describe_location): Update.
9046
4b167ea1
SM
90472020-05-27 Simon Marchi <simon.marchi@efficios.com>
9048
9049 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9050 Remove.
9051 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9052 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9053 (dwarf2_compile_property_to_c): Update.
9054 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9055 use text offset from objfile.
9056 (locexpr_tracepoint_var_ref): Update.
9057 (locexpr_generate_c_location): Update.
9058 (loclist_describe_location): Update.
9059 (loclist_tracepoint_var_ref): Update.
9060 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9061 dwarf2_per_objfile parameter.
9062 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9063 use text offset from objfile.
9064 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9065
89b07335
SM
90662020-05-27 Simon Marchi <simon.marchi@efficios.com>
9067
9068 * dwarf2/expr.h (struct dwarf_expr_context)
9069 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9070 <offset>: Remove.
9071 <per_objfile>: New member.
9072 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9073 dwarf2_per_objfile parameter. Don't set offset, set
9074 per_objfile.
9075 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9076 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9077 a dwarf2_per_objfile object instead of an offset.
9078 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9079 constructor.
9080 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9081 to dwarf2_expr_executor constructor. Don't set offset.
9082 (dwarf2_fetch_cfa_info): Update.
9083 (struct dwarf2_frame_cache) <text_offset>: Remove.
9084 <per_objfile>: New field.
9085 (dwarf2_frame_cache): Update.
9086 (dwarf2_frame_prev_register): Update.
9087 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9088 <dwarf_evaluate_loc_desc>: Add constructor.
9089 (dwarf2_evaluate_loc_desc_full): Update.
9090 (dwarf2_locexpr_baton_eval): Update.
9091 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9092 Add constructor.
9093 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9094
293e7e51
SM
90952020-05-27 Simon Marchi <simon.marchi@efficios.com>
9096
9097 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9098 addr_sized_int_type>: Move to dwarf2_cu.
9099 <int_type>: Move to dwarf2_per_objfile.
9100 (struct dwarf2_per_objfile) <int_type>: Move here.
9101 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9102 addr_sized_int_type>: Move here.
9103 (read_func_scope): Update.
9104 (read_array_type): Update.
9105 (read_tag_string_type): Update.
9106 (attr_to_dynamic_prop): Update.
9107 (dwarf2_per_cu_data::int_type): Rename to...
9108 (dwarf2_per_objfile::int_type): ... this.
9109 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9110 (dwarf2_cu::addr_sized_int_type): ... this.
9111 (read_subrange_type): Update.
9112 (dwarf2_per_cu_data::addr_type): Rename to...
9113 (dwarf2_cu::addr_type): ... this.
9114 (set_die_type): Update.
9115
64874a40
SM
91162020-05-27 Simon Marchi <simon.marchi@efficios.com>
9117
9118 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9119 data through per_cu->cu.
9120
4ab09049
SM
91212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9122
9123 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9124 dwarf2_per_cu_data parameter fo dwarf2_cu.
9125 (lookup_dwo_type_unit): Likewise.
9126 (read_cutu_die_from_dwo): Likewise.
9127 (lookup_dwo_unit): Likewise.
9128 (open_and_init_dwo_file): Likewise.
9129 (lookup_dwo_cutu): Likewise.
9130 (lookup_dwo_comp_unit): Likewise.
9131 (lookup_dwo_type_unit): Likewise.
9132 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9133 (cutu_reader::cutu_reader): Update.
9134
47b14e86
SM
91352020-05-27 Simon Marchi <simon.marchi@efficios.com>
9136
9137 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9138 parameter.
9139 (process_full_type_unit): Likewise.
9140 (process_queue): Update.
9141
43182c09
SM
91422020-05-27 Simon Marchi <simon.marchi@efficios.com>
9143
9144 * dwarf2/read.c (recursively_compute_inclusions): Add
9145 dwarf2_per_objfile parameter.
9146 (compute_compunit_symtab_includes): Likewise.
9147 (process_cu_includes): Update.
9148
7aa104c4
SM
91492020-05-27 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9152 parameter.
9153 (create_type_unit_group): Update.
9154 (process_psymtab_comp_unit_reader): Update.
9155 (build_type_psymtabs_reader): Update.
9156
e3beb21d
SM
91572020-05-27 Simon Marchi <simon.marchi@efficios.com>
9158
9159 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9160 object through m_this_cu->cu.
9161
d460f660
SM
91622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9163
9164 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9165 the info parameter.
9166 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9167
ab432490
SM
91682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9169
9170 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9171 per_objfile parameter.
9172 (load_full_type_unit): Add per_objfile parameter.
9173 (read_signatured_type): Likewise.
9174 (load_full_comp_unit): Likewise.
9175 (load_cu): Likewise.
9176 (dw2_do_instantiate_symtab): Likewise.
9177 (dw2_get_file_names): Likewise.
9178 (dw2_map_symtabs_matching_filename): Update.
9179 (dw_expand_symtabs_matching_file_matcher): Update.
9180 (dw2_map_symbol_filenames): Update.
9181 (process_psymtab_comp_unit): Add per_objfile parameter.
9182 (build_type_psymtabs_1): Update.
9183 (process_skeletonless_type_unit): Update.
9184 (dwarf2_build_psymtabs_hard): Update.
9185 (load_partial_comp_unit): Add per_objfile parameter.
9186 (scan_partial_symbols): Update.
9187 (load_full_comp_unit): Add per_objfile parameter.
9188 (process_imported_unit_die): Update.
9189 (create_cus_hash_table): Update.
9190 (find_partial_die): Update.
9191 (dwarf2_read_addr_index): Update.
9192 (follow_die_offset): Update.
9193 (dwarf2_fetch_die_loc_sect_off): Update.
9194 (dwarf2_fetch_constant_bytes): Update.
9195 (dwarf2_fetch_die_type_sect_off): Update.
9196 (follow_die_sig_1): Update.
9197 (load_full_type_unit): Add per_objfile parameter.
9198 (read_signatured_type): Likewise.
9199
313bad1b
SM
92002020-05-27 Simon Marchi <simon.marchi@efficios.com>
9201
9202 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9203 of objfile_name.
9204
c3699833
SM
92052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9206
9207 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9208 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9209 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9210 field.
9211 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9212 (create_cus_from_index): Update.
9213 (dwarf2_read_gdb_index): Update.
9214 (create_cus_from_debug_names): Update.
9215 (dwarf2_read_debug_names): Update.
9216 (get_abbrev_section_for_cu): Update.
9217 (create_all_comp_units): Update.
9218 (read_attribute_value): Update.
9219 (get_debug_line_section): Update.
9220 * dwarf2/index-cache.c (index_cache::store): Update.
9221 * dwarf2/index-write.c (save_gdb_index_command): Update.
9222 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9223
1859c670
SM
92242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9225
9226 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9227 member.
9228 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9229 dwarf2_per_cu_data::per_bfd.
9230 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9231 (create_type_unit_group): Likewise.
9232 (queue_comp_unit): Remove reference to
9233 per_cu->dwarf2_per_objfile.
9234 (maybe_queue_comp_unit): Likewise.
9235 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9236 (create_cus_hash_table): Assign new field.
9237
5e22e966
SM
92382020-05-27 Simon Marchi <simon.marchi@efficios.com>
9239
9240 * dwarf2/read.c: Replace
9241 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9242 dwarf2_cu->per_objfile throughout.
9243
97a1449a
SM
92442020-05-27 Simon Marchi <simon.marchi@efficios.com>
9245
9246 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9247 parameter, don't use per_cu->dwarf2_per_objfile.
9248 (dw2_instantiate_symtab): Likewise.
9249 (dw2_find_last_source_symtab): Update.
9250 (dw2_map_expand_apply): Update.
9251 (dw2_lookup_symbol): Update.
9252 (dw2_expand_symtabs_for_function): Update.
9253 (dw2_expand_all_symtabs): Update.
9254 (dw2_expand_symtabs_with_fullname): Update.
9255 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9256 don't use per_cu->dwarf2_per_objfile.
9257 (dw2_expand_marked_cus): Update.
9258 (dw2_find_pc_sect_compunit_symtab): Update.
9259 (dw2_debug_names_lookup_symbol): Update.
9260 (dw2_debug_names_expand_symtabs_for_function): Update.
9261 (dw2_debug_names_map_matching_symbols): Update.
9262 (dwarf2_psymtab::expand_psymtab): Update.
9263
9e021579
SM
92642020-05-27 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9267 <per_objfile>: New member.
9268 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9269 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9270 call to dwarf2_cu.
9271 (cutu_reader::cutu_reader): Update.
9272 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9273
ae090bdb
SM
92742020-05-27 Simon Marchi <simon.marchi@efficios.com>
9275
9276 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9277 struct dwarf2_per_objfile.
9278 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9279 dwarf2_per_bfd.
9280 * dwarf2/read.c (set_die_type): Update.
9281 (get_die_type_at_offset): Update.
9282
af758d11
SM
92832020-05-27 Tom Tromey <tom@tromey.com>
9284 Simon Marchi <simon.marchi@efficios.com>
9285
9286 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9287 method.
9288 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9289 get_symtab, set_symtab>: New methods.
9290 <m_symtabs>: New field.
9291 (struct dwarf2_psymtab): Derive from partial_symtab.
9292 <readin_p, get_compunit_symtab>: Declare methods.
9293 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9294 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9295 New methods.
9296 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9297 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9298 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9299 (dw2_symtab_iter_next, dw2_print_stats)
9300 (dw2_expand_symtabs_with_fullname)
9301 (dw2_expand_symtabs_matching_one)
9302 (dw_expand_symtabs_matching_file_matcher)
9303 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9304 (dw2_debug_names_iterator::next)
9305 (dw2_debug_names_map_matching_symbols)
9306 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9307 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9308 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9309 New methods.
9310 (get_compunit_symtab, process_full_comp_unit)
9311 (process_full_type_unit): Update.
9312 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9313
5989a64e
SM
93142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9315
9316 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9317 then introduce a new dwarf2_per_objfile type.
9318 <read_line_string>: Move to the new dwarf2_per_objfile type.
9319 <objfile>: Likewise.
9320 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9321 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9322 dwarf2_per_objfile->per_bfd.
9323 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9324 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9325 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9326 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9327 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9328 (dwarf2_per_objfile::locate_sections): Rename to...
9329 (dwarf2_per_bfd::locate_sections): ... this.
9330 (dwarf2_per_objfile::get_cutu): Rename to...
9331 (dwarf2_per_bfd::get_cutu): ... this.
9332 (dwarf2_per_objfile::get_cu): Rename to...
9333 (dwarf2_per_bfd::get_cu): ... this.
9334 (dwarf2_per_objfile::get_tu): Rename to...
9335 (dwarf2_per_bfd::get_tu): ... this.
9336 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9337 (dwarf2_per_bfd::allocate_per_cu): ... this.
9338 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9339 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9340 (get_gdb_index_contents_ftype): Change parameter from
9341 dwarf2_per_objfile to dwarf2_per_bfd.
9342 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9343 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9344
a50264ba
TT
93452020-05-27 Tom Tromey <tom@tromey.com>
9346 Simon Marchi <simon.marchi@efficios.com>
9347
9348 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9349 (allocate_piece_closure): Set "per_objfile" member.
9350 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9351 (locexpr_describe_location, loclist_describe_location): Use new
9352 member.
9353 * dwarf2/read.c (read_call_site_scope)
9354 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9355 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9356 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9357 handle_data_member_location): Set per_objfile member.
9358 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9359 member.
9360 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9361
d3473f0c
TT
93622020-05-27 Tom Tromey <tom@tromey.com>
9363
9364 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9365 allocate_signatured_type>: Declare new methods.
9366 <m_num_psymtabs>: New member.
9367 (struct dwarf2_per_cu_data) <index>: New member.
9368 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9369 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9370 (create_cu_from_index_list): Use allocate_per_cu.
9371 (create_signatured_type_table_from_index)
9372 (create_signatured_type_table_from_debug_names)
9373 (create_debug_type_hash_table, add_type_unit)
9374 (read_comp_units_from_section): Use allocate_signatured_type.
9375
5717c425
TT
93762020-05-27 Tom Tromey <tom@tromey.com>
9377
9378 * psymtab.c (partial_map_expand_apply)
9379 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9380 (psym_lookup_global_symbol_language)
9381 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9382 (psym_print_stats, psym_expand_symtabs_for_function)
9383 (psym_map_symbol_filenames, psym_map_matching_symbols)
9384 (psym_expand_symtabs_matching)
9385 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9386 (maintenance_check_psymtabs): Update.
9387 * psympriv.h (struct partial_symtab) <readin_p,
9388 get_compunit_symtab>: Add objfile parameter.
9389 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9390 Likewise.
9391 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9392 get_compunit_symtab>: Likewise.
9393 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9394
45940949
TT
93952020-05-27 Tom Tromey <tom@tromey.com>
9396
9397 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9398 member.
9399 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9400 (create_cu_from_index_list)
9401 (create_signatured_type_table_from_index)
9402 (create_signatured_type_table_from_debug_names)
9403 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9404 (dwarf2_create_include_psymtab)
9405 (create_debug_type_hash_table, add_type_unit)
9406 (create_type_unit_group, read_comp_units_from_section)
9407 (dwarf2_compute_name, create_cus_hash_table)
9408 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9409 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9410 obstack.
9411 (dw2_get_real_path): Likewise. Change argument to
9412 dwarf2_per_objfile.
9413
f8c6d152
LM
94142020-05-27 Luis Machado <luis.machado@linaro.org>
9415
9416 PR tdep/26000
9417 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9418 for ldrd (immediate).
9419
e98d2e6d
PW
94202020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9421
9422 * command.h: Add comment giving the name of class_tui.
9423 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9424 create the fake command for the help for class_tui.
9425
53a47a3e
TT
94262020-05-26 Tom Tromey <tromey@adacore.com>
9427
9428 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9429 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9430 (val_atr): New function.
9431 (value_val_atr): Use it.
9432 * ada-valprint.c (print_optional_low_bound): Change low bound
9433 handling for enums.
9434 (val_print_packed_array_elements): Don't call discrete_position.
9435 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9436 discrete_position for enum types.
9437 * language.c (default_print_array_index): Change type.
9438 * language.h (struct language_defn) <la_print_array_index>: Add
9439 index_type parameter, change type of index_value.
9440 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9441 (default_print_array_index): Update.
9442 * valprint.c (maybe_print_array_index): Don't call
9443 value_from_longest. Update.
9444 (value_print_array_elements): Don't call discrete_position.
9445
0bc2354b
TT
94462020-05-26 Tom Tromey <tromey@adacore.com>
9447
9448 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9449 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9450
1218a4bf
CDA
94512020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9452
9453 PR gdb/13519
9454 * avr-tdep.c (avr_integer_to_address): Return data or code
9455 address accordingly to the second 'type' argument of the
9456 function.
9457
92651b1d
MW
94582020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9459
9460 * infcmd.c, inferior.h: (construct_inferior_arguments):
9461 Moved function from here to gdbsupport/common-inferior.{h,cc}
9462
0a4f5f8c
TT
94632020-05-23 Tom Tromey <tom@tromey.com>
9464
9465 Revert commit eca1f90c:
9466 * NEWS: Remove entry for completion styling.
9467 * completer.c (_rl_completion_prefix_display_length): Move
9468 declaration later.
9469 (gdb_fnprint): Revert.
9470 (gdb_display_match_list_1): Likewise.
9471 * cli/cli-style.c (completion_prefix_style)
9472 (completion_difference_style, completion_suffix_style): Remove.
9473 (_initialize_cli_style): Revert.
9474 * cli/cli-style.h (completion_prefix_style)
9475 (completion_difference_style, completion_suffix_style): Don't
9476 declare.
9477
e08bd6c5
PA
94782020-05-24 Pedro Alves <palves@redhat.com>
9479
9480 * symtab.c (completion_list_add_name): Return boolean indication
9481 of whether the symbol matched.
9482 (completion_list_add_symbol): Don't try to remove C++ aliases if
9483 the symbol didn't match in the first place.
9484 * symtab.h (completion_list_add_name): Return bool.
9485
ceacbf6e
SM
94862020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9487
9488 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9489 type::field.
9490
26f16254
JB
94912020-05-23 Joel Brobecker <brobecker@adacore.com>
9492
9493 GDB 9.2 released.
9494
eca1f90c
TT
94952020-05-23 Tom Tromey <tom@tromey.com>
9496
9497 * NEWS: Add entry for completion styling.
9498 * completer.c (_rl_completion_prefix_display_length): Move
9499 declaration earlier.
9500 (gdb_fnprint): Use completion_style.
9501 (gdb_display_match_list_1): Likewise.
9502 * cli/cli-style.c (completion_prefix_style)
9503 (completion_difference_style, completion_suffix_style): New
9504 globals.
9505 (_initialize_cli_style): Register new globals.
9506 * cli/cli-style.h (completion_prefix_style)
9507 (completion_difference_style, completion_suffix_style): Declare.
9508
51e2cfa2
PA
95092020-05-23 Pedro Alves <palves@redhat.com>
9510
9511 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9512 (parse_escape): Use ISDIGIT instead of isdigit.
9513 (puts_debug): Use gdb_isprint instead of isprint.
9514 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9515 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9516 ISSPACE instead of isspace.
9517 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9518 instead of isspace.
9519 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9520 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9521 instead of isxdigit and ISDIGIT instead of isdigit.
9522
80fc5e77
SM
95232020-05-22 Simon Marchi <simon.marchi@efficios.com>
9524
9525 * gdbtypes.h (struct type) <field>: New method.
9526 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9527 or type::field.
9528
3cabb6b0
SM
95292020-05-22 Simon Marchi <simon.marchi@efficios.com>
9530
9531 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9532 (TYPE_FIELDS): Use type::fields. Change all call sites that
9533 modify the propery to use type::set_fields instead.
9534
1f704f76
SM
95352020-05-22 Simon Marchi <simon.marchi@efficios.com>
9536
9537 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9538 type::num_fields instead.
9539
5e33d5f4
SM
95402020-05-22 Simon Marchi <simon.marchi@efficios.com>
9541
9542 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9543 methods.
9544 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9545 that modify the number of fields to use type::set_num_fields
9546 instead.
9547
9392ebb3
TT
95482020-05-22 Tom Tromey <tromey@adacore.com>
9549
9550 * compile/compile-object-load.h (munmap_list_free): Don't
9551 declare.
9552
7c13f4e8
AB
95532020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9554
9555 * annotate.c (annotate_source_line): Update return type, add call
9556 to update current symtab and line.
9557 * annotate.h (annotate_source_line): Update return type, and
9558 extend header comment.
9559 * source.c (info_line_command): Check annotation_level before
9560 calling annotate_source_line.
9561 * stack.c (print_frame_info): If calling annotate_source_line
9562 returns true, then don't print any other source line information.
9563
aa370940
SM
95642020-05-21 Simon Marchi <simon.marchi@efficios.com>
9565
9566 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9567
84d53fa9
SM
95682020-05-21 Simon Marchi <simon.marchi@efficios.com>
9569
9570 * coffread.c (patch_type): Remove NULL check before xfree.
9571 * corefile.c (set_gnutarget): Likewise.
9572 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9573 * exec.c (build_section_table): Likewise.
9574 * remote.c (remote_target::pass_signals): Likewise.
9575 * utils.c (n_spaces): Likewise.
9576 * cli/cli-script.c (document_command): Likewise.
9577 * i386-windows-tdep.c (core_process_module_section): Likewise.
9578 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9579
9d428aae
SM
95802020-05-20 Simon Marchi <simon.marchi@efficios.com>
9581
9582 * symfile.c (reread_symbols): Clear objfile's section_offsets
9583 vector and section indices, re-compute them by calling
9584 sym_offsets.
9585
250106a7
TT
95862020-05-20 Tom Tromey <tromey@adacore.com>
9587
9588 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9589 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9590
9a0bacfb
TV
95912020-05-20 Tom de Vries <tdevries@suse.de>
9592
9593 PR symtab/25833
9594 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9595
7b958a48
AM
95962020-05-20 Alan Modra <amodra@gmail.com>
9597
9598 PR 25993
9599 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9600 bfd_set_filename.
9601 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9602 passed to bfd_set_filename.
9603 * symfile-mem.c (add_vsyscall_page): Likewise for string
9604 passed to symbol_file_add_from_memory.
9605 (symbol_file_add_from_memory): Make name param a const char* and
9606 don't strdup.
9607
c7e97679
AM
96082020-05-20 Alan Modra <amodra@gmail.com>
9609
9610 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9611 rather than accessing bfd->filename directly.
9612 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9613 and use bfd_section_name.
9614 * dwarf2/frame.c (decode_frame_entry): Likewise.
9615 * exec.c (exec_set_section_address): Likewise.
9616 * solib-aix.c (solib_aix_bfd_open): Likewise.
9617 * stap-probe.c (get_stap_base_address): Likewise.
9618 * symfile.c (reread_symbols): Likewise.
9619
563c591b
TT
96202020-05-19 Tom Tromey <tromey@adacore.com>
9621
9622 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9623
f408d82c
SM
96242020-05-19 Simon Marchi <simon.marchi@efficios.com>
9625
9626 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9627
98c59b52
PA
96282020-05-19 Pedro Alves <palves@redhat.com>
9629
9630 * NEWS (set exec-file-mismatch): Adjust entry.
9631 * exec.c: Include "build-id.h".
9632 (validate_exec_file): Try to match build IDs instead of filenames.
9633 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9634 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9635 and pass down 'warn_if_slow'.
9636 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9637 gdb_bfd_open_closure to pass it down.
9638 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9639
4111f652
PA
96402020-05-19 Pedro Alves <palves@redhat.com>
9641
9642 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9643 * target.c (target_fileio_open_1): Rename to target_fileio_open
9644 and make extern. Use bool.
9645 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9646 (target_fileio_read_alloc_1): Adjust.
9647 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9648 (target_fileio_open_warn_if_slow): Delete declaration.
9649
ad80db5b
PA
96502020-05-19 Pedro Alves <palves@redhat.com>
9651
9652 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9653 Adjust all callers.
9654
1d6ce4d3
YS
96552020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9656
9657 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9658 whether disp is negative.
9659
9005fbbb
SM
96602020-05-19 Simon Marchi <simon.marchi@efficios.com>
9661
9662 * symfile.h (struct symfile_segment_data)
9663 <~symfile_segment_data>: Remove.
9664 <segment_info>: Change to std::vector.
9665 * symfile.c (default_symfile_segments): Update.
9666 * elfread.c (elf_symfile_segments): Update.
9667
68b888ff
SM
96682020-05-19 Simon Marchi <simon.marchi@efficios.com>
9669
9670 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9671 <segments>: New.
9672 <segment_bases, segment_sizes>: Remove.
9673 * symfile.c (default_symfile_segments): Update.
9674 * elfread.c (elf_symfile_segments): Update.
9675 * remote.c (remote_target::get_offsets): Update.
9676 * solib-target.c (solib_target_relocate_section_addresses):
9677 Update.
9678
62982abd
SM
96792020-05-19 Simon Marchi <simon.marchi@efficios.com>
9680
9681 * symfile.h (struct symfile_segment_data): Initialize fields.
9682 <~symfile_segment_data>: Add.
9683 (symfile_segment_data_up): New.
9684 (struct sym_fns) <sym_segments>: Return a
9685 symfile_segment_data_up.
9686 (default_symfile_segments): Return a symfile_segment_data_up.
9687 (free_symfile_segment_data): Remove.
9688 (get_symfile_segment_data): Return a symfile_segment_data_up.
9689 * symfile.c (default_symfile_segments): Likewise.
9690 (get_symfile_segment_data): Likewise.
9691 (free_symfile_segment_data): Remove.
9692 (symfile_find_segment_sections): Update.
9693 * elfread.c (elf_symfile_segments): Return a
9694 symfile_segment_data_up.
9695 * remote.c (remote_target::get_offsets): Update.
9696 * solib-target.c (solib_target_relocate_section_addresses):
9697 Update.
9698 * symfile-debug.c (debug_sym_segments): Return a
9699 symfile_segment_data_up.
9700
7f204339
RO
97012020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9702
e52a0f1b
RO
9703 PR build/25981
9704 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9705 Hardcode register numbers.
9706
7f204339
RO
9707 PR build/25981
9708 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9709 procfs_find_LDT_entry): Remove.
9710 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9711 procfs_find_LDT_entry): Remove.
9712 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9713 Remove.
9714
7f32a4d5
PA
97152020-05-17 Pedro Alves <palves@redhat.com>
9716 Andrew Burgess <andrew.burgess@embecosm.com>
9717 Keno Fischer <keno@juliacomputing.com>
9718
9719 PR gdb/25741
9720 * breakpoint.c (build_target_condition_list): Update comments.
9721 (build_target_command_list): Update comments and skip matching
9722 locations.
9723 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9724 a separate function. Simplify "set breakpoint auto-hw off"
9725 handling.
9726 (insert_breakpoints): Update comment.
9727 (tracepoint_locations_match): New parameter. For breakpoints,
9728 compare location types too, if the caller wants to.
9729 (handle_automatic_hardware_breakpoints): New functions.
9730 (bp_location_is_less_than): Also sort by location type and
9731 hardware breakpoint length.
9732 (update_global_location_list): Handle "set breakpoint auto-hw on"
9733 here.
9734 (update_breakpoint_locations): Ask breakpoint_locations_match to
9735 ignore location types.
9736
7d93a1e0
SM
97372020-05-16 Simon Marchi <simon.marchi@efficios.com>
9738
9739 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9740 type::name instead.
9741
d0e39ea2
SM
97422020-05-16 Simon Marchi <simon.marchi@efficios.com>
9743
9744 * gdbtypes.h (struct type) <name, set_name>: New methods.
9745 (TYPE_CODE): Use type::name. Change all call sites used to set
9746 the name to use type::set_name instead.
9747
2dab0c7b
TT
97482020-05-16 Tom Tromey <tom@tromey.com>
9749
9750 * top.c (quit_force): Update.
9751 * infrun.c (handle_no_resumed): Update.
9752 * top.h (all_uis): New function.
9753 (ALL_UIS): Remove.
9754
59f7bd8d
SM
97552020-05-16 Simon Marchi <simon.marchi@efficios.com>
9756
9757 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9758
9bf058f0
PA
97592020-05-16 Pedro Alves <palves@redhat.com>
9760
9761 * ia64-linux-nat.c
9762 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9763 Declare method.
9764 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9765
8f86ae1a
SM
97662020-05-15 Simon Marchi <simon.marchi@efficios.com>
9767
9768 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9769 (sparc64_adi_info): Likewise.
9770
d6bc0792
TT
97712020-05-15 Tom Tromey <tom@tromey.com>
9772
9773 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9774 block_objfile.
9775 (lookup_objfile_from_block): Remove.
9776 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9777 (lookup_global_symbol): Use block_objfile.
9778 * symtab.h (lookup_objfile_from_block): Don't declare.
9779 * printcmd.c (clear_dangling_display_expressions): Use
9780 block_objfile.
9781 * parse.c (operator_check_standard): Use block_objfile.
9782
8c14c3a3
TT
97832020-05-15 Tom Tromey <tom@tromey.com>
9784
9785 * language.c (language_alloc_type_symbol): Set
9786 SYMBOL_SECTION.
9787 * symtab.c (initialize_objfile_symbol): Remove.
9788 (allocate_symbol): Remove.
9789 (allocate_template_symbol): Remove.
9790 * dwarf2/read.c (fixup_go_packaging): Use "new".
9791 (new_symbol): Use "new".
9792 (read_variable): Don't call initialize_objfile_symbol. Use
9793 "new".
9794 (read_func_scope): Use "new".
9795 * xcoffread.c (process_xcoff_symbol): Don't call
9796 initialize_objfile_symbol.
9797 (SYMBOL_DUP): Remove.
9798 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9799 "new".
9800 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9801 (allocate_template_symbol): Don't declare.
9802 (struct symbol): Add copy constructor. Change defaults.
9803 * jit.c (finalize_symtab): Use "new".
9804 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9805 Use "new".
9806 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9807 (common_block_end): Use "new".
9808 * mdebugread.c (parse_symbol): Use "new".
9809 (new_symbol): Likewise.
9810
5b4a1a8d
PW
98112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9812
9813 * NEWS: Mention changes to help and apropos.
9814
57b4f16e
PW
98152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9816
9817 * command.h (enum command_class): Improve comments, document
9818 that class_alias is for user-defined aliases, give the class
9819 name for each class, remove unused class_xdb.
9820 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9821 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9822 by a precise class.
9823 * infcmd.c (_initialize_infcmd): Likewise.
9824 * reverse.c (_initialize_reverse): Likewise.
9825 * stack.c (_initialize_stack): Likewise.
9826 * symfile.c (_initialize_symfile): Likewise.
9827 * tracepoint.c (_initialize_tracepoint): Likewise.
9828
7c05caf7
PW
98292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9830
9831 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9832 when their aliased command is traversed.
9833 (help_cmd): Add fput_command_names_styled call to
9834 output command name and aliases when command has an alias.
9835
3b3aaacb
PW
98362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9837
9838 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9839 * cli/cli-decode.c (help_cmd_list): Declare as static,
9840 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9841 a command together with the command.
9842 (fput_command_name_styled, fput_command_names_styled): New functions.
9843 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9844 fput_command_name_styled.
9845 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9846 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9847
7aa1b46f
PW
98482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9849
9850 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9851 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9852 * command.h (cmd_show_list): Likewise.
9853 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9854 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9855
89bcba74
PW
98562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9857
9858 * unittests/command-def-selftests.c (traverse_command_structure):
9859 Verify all commands of a list have the same prefix command and
9860 that only the top cmdlist commands have a null prefix.
9861
3f4d92eb
PW
98622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9863
9864 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9865 as prefix, not one of its aliases.
9866 (set_cmd_prefix): Remove.
9867 (do_add_cmd): Centralize the setting of the prefix of a command, when
9868 command is defined after its full chain of prefix commands.
9869 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9870 (add_setshow_cmd_full): Likewise.
9871 (update_prefix_field_of_prefixed_commands): New function.
9872 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9873 update_prefix_field_of_prefixed_commands.
9874 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9875 addresses of remote_set_cmdlist and remote_show_cmdlist given
9876 as argument, not the address of an argument.
9877 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9878 * gdb/remote.c (_initialize_remote): Likewise.
9879
0605465f
PW
98802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9881
9882 * cli/cli-cmds.c (alias_command): Check for an existing alias
9883 using lookup_cmd_composition, as valid_command_p is too strict
9884 and forbids aliases that are the prefix of an existing alias
9885 or command.
9886 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9887 command is properly recognised as a valid command.
9888
58e6ac70
PW
98892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9890
9891 * unittests/help-doc-selftests.c: Rename to
9892 unittests/command-def-selftests.c
9893 * unittests/command-def-selftests.c (help_doc_tests): Update some
9894 comments.
9895 (command_structure_tests, traverse_command_structure): New namespace
9896 and function.
9897 (command_structure_invariants_tests): New function.
9898 (_initialize_command_def_selftests) Renamed from
9899 _initialize_help_doc_selftests, register command_structure_invariants
9900 selftest.
9901
a7b9ceb8
PW
99022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9903
9904 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9905 an alias of 'show'.
9906
b2188a06
JB
99072020-05-15 Joel Brobecker <brobecker@adacore.com>
9908
9909 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9910 ada_is_fixed_point_type. Update all callers.
9911 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9912 all callers.
9913 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9914 Update all callers.
9915 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9916 print_fixed_point_type. Update all callers.
9917 * ada-valprint.c (ada_value_print_num): Replace call to
9918 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9919
a51951c2
KB
99202020-05-14 Kevin Buettner <kevinb@redhat.com>
9921
9922 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9923 processors.
9924 (cpu_supports_bts): Add CV_AMD case.
9925
29d6859f
LM
99262020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9927 Simon Marchi <simon.marchi@efficios.com>
9928
9929 * infrun.c (stop_all_threads): Collect multiple wait events at
9930 each pass.
9931
78134374
SM
99322020-05-14 Simon Marchi <simon.marchi@efficios.com>
9933
9934 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9935 type::code instead.
9936
67607e24
SM
99372020-05-14 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * gdbtypes.h (struct type) <code, set_code>: New methods.
9940 (TYPE_CODE): Use type::code. Change all call sites used to set
9941 the code to use type::set_code instead.
9942
a05575d3
TBA
99432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9944 Tom de Vries <tdevries@suse.de>
9945 Pedro Alves <palves@redhat.com>
9946
9947 PR threads/25478
9948 * infrun.c (stop_all_threads): Do NOT ignore
9949 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9950 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9951 received.
9952 (handle_no_resumed): Remove code handling a live inferior with no
9953 threads.
9954 * remote.c (has_single_non_exited_thread): New.
9955 (remote_target::update_thread_list): Do not delete a thread if is
9956 the last thread of the process.
9957 * thread.c (thread_select): Call delete_exited_threads instead of
9958 prune_threads.
9959
6ad82919
TBA
99602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9961
9962 * infrun.c (stop_all_threads): Enable/disable thread events of all
9963 targets. Move a debug message denoting the end of the function
9964 into the SCOPED_EXIT block.
9965
d890404b
TBA
99662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9967
9968 * process-stratum-target.h: Include <set>.
9969 (all_non_exited_process_targets, switch_to_target_no_thread): New
9970 function declarations.
9971 * process-stratum-target.c (all_non_exited_process_targets)
9972 (switch_to_target_no_thread): New function implementations.
9973
293b3ebc
TBA
99742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9975
9976 * infrun.c (handle_inferior_event): Extract out a piece of code
9977 into...
9978 (mark_non_executing_threads): ...this new function.
9979
7ca9b62a
TBA
99802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9981
9982 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9983 use.
9984
fc75c28b
TBA
99852020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9986
9987 * regcache.c (regcache_read_pc_protected): New function
9988 implementation that returns 0 if the PC cannot read via
9989 'regcache_read_pc'.
9990 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9991 instead of 'regcache_read_pc'.
9992 (keep_going_pass_signal): Ditto.
9993
a89febbd
TT
99942020-05-13 Tom Tromey <tromey@adacore.com>
9995
9996 * ada-lang.c (align_value): Remove.
9997 (ada_template_to_fixed_record_type_1): Use align_up.
9998
f7e23710
TBA
99992020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10000
10001 * async-event.c: Update the copyright year.
10002 * async-event.h: Update the copyright year.
10003
02ff80c2
SM
100042020-05-12 Simon Marchi <simon.marchi@efficios.com>
10005
10006 * objfiles.h (is_addr_in_objfile,
10007 shared_objfile_contains_address_p): Return bool.
10008 * objfile.c (is_addr_in_objfile,
10009 shared_objfile_contains_address_p): Return bool.
10010
4fd6c7e8
TT
100112020-05-11 Tom Tromey <tromey@adacore.com>
10012
10013 * cli/cli-cmds.c (info_command): Restore.
10014 (_initialize_cli_cmds): Use add_prefix_command for "info".
10015 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10016
5eb68a39
TT
100172020-05-11 Tom Tromey <tromey@adacore.com>
10018
10019 * ada-lang.c (ada_value_primitive_field): Now public.
10020 * ada-lang.h (ada_value_primitive_field): Declare.
10021 * ada-valprint.c (print_field_values): Use
10022 ada_value_primitive_field for wrapper fields.
10023
7666722f
TV
100242020-05-11 Tom de Vries <tdevries@suse.de>
10025
10026 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10027 MODULE_DOMAIN.
10028
3ee6bb11
TV
100292020-05-11 Tom de Vries <tdevries@suse.de>
10030
10031 PR symtab/25941
10032 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10033 with length 0, if not gdb-produced.
10034 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10035
43434996
TV
100362020-05-09 Tom de Vries <tdevries@suse.de>
10037
10038 PR gdb/25955
10039 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10040 calculation.
10041
2f78cffc
TT
100422020-05-09 Tom Tromey <tom@tromey.com>
10043
10044 * top.c (server_command): Now bool.
10045 * top.h (server_command): Now bool.
10046
4f7bc5ed
TT
100472020-05-08 Tom Tromey <tromey@adacore.com>
10048
10049 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10050 already being processed.
10051
8be4b118
TT
100522020-05-08 Tom Tromey <tom@tromey.com>
10053
10054 * printcmd.c (struct display) <next>: Remove.
10055 <display>: New constructor.
10056 <exp_string>: Now a std::string.
10057 <enabled_p>: Now a bool.
10058 (display_number): Move definition earlier.
10059 (displays): Rename from display_chain. Now a std::vector.
10060 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10061 (display_command): Update.
10062 (do_one_display, disable_display)
10063 (enable_disable_display_command, do_enable_disable_display):
10064 Update.
10065 (free_display): Remove.
10066 (clear_displays): Rewrite.
10067 (delete_display): Update.
10068 (map_display_numbers): Use function_view. Remove "data"
10069 parameter. Update.
10070 (do_delete_display): Remove.
10071 (undisplay_command): Update.
10072 (do_one_display, do_displays, disable_display)
10073 (info_display_command): Update.
10074 (do_enable_disable_display): Remove.
10075 (enable_disable_display_command)
10076 (clear_dangling_display_expressions): Update.
10077
94c93c35
TT
100782020-05-08 Tom Tromey <tom@tromey.com>
10079
10080 * symtab.c (set_symbol_cache_size)
10081 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10082 (maintenance_print_symbol_cache_statistics): Update.
10083 * symmisc.c (print_symbol_bcache_statistics)
10084 (print_objfile_statistics, maintenance_print_objfiles)
10085 (maintenance_info_symtabs, maintenance_check_symtabs)
10086 (maintenance_expand_symtabs, maintenance_info_line_tables):
10087 Update.
10088 * symfile-debug.c (set_debug_symfile): Update.
10089 * source.c (forget_cached_source_info): Update.
10090 * python/python.c (gdbpy_progspaces): Update.
10091 * psymtab.c (maintenance_info_psymtabs): Update.
10092 * probe.c (parse_probes): Update.
10093 * linespec.c (iterate_over_all_matching_symtabs)
10094 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10095 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10096 * exec.c (exec_target::close): Update.
10097 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10098 * breakpoint.c (print_one_breakpoint_location)
10099 (create_longjmp_master_breakpoint)
10100 (create_std_terminate_master_breakpoint): Update.
10101 * progspace.c (program_spaces): Now a std::vector.
10102 (maybe_new_address_space): Update.
10103 (add_program_space): Remove.
10104 (program_space::program_space): Update.
10105 (remove_program_space): Update.
10106 (number_of_program_spaces): Remove.
10107 (print_program_space, update_address_spaces): Update.
10108 * progspace.h (program_spaces): Change type.
10109 (ALL_PSPACES): Remove.
10110 (number_of_program_spaces): Don't declare.
10111 (struct program_space) <next>: Remove.
10112
a1fd1ac9
TT
101132020-05-08 Tom Tromey <tom@tromey.com>
10114
10115 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10116 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10117 (enable_break): Update.
10118 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10119 (frv_fdpic_find_canonical_descriptor): Update.
10120 (frv_fetch_objfile_link_map): Update.
10121 * progspace.c (program_space::free_all_objfiles): Update.
10122 (program_space::solibs): New method.
10123 * progspace.h (struct program_space) <solibs>: New method.
10124 * solist.h (master_so_list): Don't declare.
10125 (ALL_SO_LIBS): Remove.
10126 * solib.h (so_list_head): Remove.
10127 (update_solib_list): Update comment.
10128 * solib.c (master_so_list): Remove.
10129 (solib_used, update_solib_list, solib_add)
10130 (info_sharedlibrary_command, clear_solib)
10131 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10132
38eae084
TT
101332020-05-08 Tom Tromey <tom@tromey.com>
10134
10135 * extension.c (extension_languages): Now a std::array.
10136 (ALL_EXTENSION_LANGUAGES): Remove.
10137 (get_ext_lang_defn, get_ext_lang_of_file)
10138 (eval_ext_lang_from_control_command): Update.
10139 (finish_ext_lang_initialization)
10140 (auto_load_ext_lang_scripts_for_objfile)
10141 (ext_lang_type_printers::ext_lang_type_printers)
10142 (apply_ext_lang_type_printers)
10143 (ext_lang_type_printers::~ext_lang_type_printers)
10144 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10145 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10146 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10147 (get_matching_xmethod_workers, ext_lang_colorize)
10148 (ext_lang_before_prompt): Update.
10149 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10150
596dc4ad
TT
101512020-05-08 Tom Tromey <tom@tromey.com>
10152
10153 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10154 overload.
10155 <swap_string, m_string>: Remove.
10156 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10157 Update.
10158 * stabsread.c (define_symbol, read_type): Update.
10159 * linespec.c (find_linespec_symbols): Update.
10160 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10161 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10162 * dbxread.c (read_dbx_symtab): Update.
10163 * cp-support.h (cp_canonicalize_string_full)
10164 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10165 Return unique_xmalloc_ptr.
10166 * cp-support.c (inspect_type): Update.
10167 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10168 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10169 Likewise.
10170 * c-typeprint.c (print_name_maybe_canonical): Update.
10171 * break-catch-throw.c (check_status_exception_catchpoint):
10172 Update.
10173
bf4cb9be
TV
101742020-05-08 Tom de Vries <tdevries@suse.de>
10175
10176 * infrun.c (follow_fork): Copy current_line and current_symtab to
10177 child thread.
10178
a1b68f28
SM
101792020-05-07 Simon Marchi <simon.marchi@efficios.com>
10180
10181 * async-event.c (struct async_signal_handler, struct
10182 async_event_handler): Reformat, remove typedef.
10183
98d48915
SM
101842020-05-07 Simon Marchi <simon.marchi@efficios.com>
10185
10186 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10187 access thistype->main_type->dyn_prop_list directly.
10188
7aa91313
SM
101892020-05-07 Simon Marchi <simon.marchi@efficios.com>
10190
10191 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10192 (remove_dyn_prop): Remove. Update all users to use
10193 type::remove_dyn_prop.
10194 * gdbtypes.c (remove_dyn_prop): Rename to...
10195 (type::remove_dyn_prop): ... this.
10196
5c54719c
SM
101972020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10198
10199 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10200 (add_dyn_prop): Remove. Update all users to use
10201 type::add_dyn_prop.
10202 * gdbtypes.c (add_dyn_prop): Rename to...
10203 (type::add_dyn_prop): ... this.
10204
24e99c6c
SM
102052020-05-07 Simon Marchi <simon.marchi@efficios.com>
10206
10207 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10208 (get_dyn_prop): Remove. Update all users to use
10209 type::dyn_prop.
10210 * gdbtypes.c (get_dyn_prop): Rename to...
10211 (type::dyn_prop): ... this.
10212
0d4bf016
SM
102132020-05-06 Simon Marchi <simon.marchi@efficios.com>
10214
10215 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10216
ac4a4f1c
SM
102172020-05-06 Simon Marchi <simon.marchi@efficios.com>
10218
10219 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10220 instruction, skip it if it's there.
10221
a3bbacc1
SM
102222020-05-05 Simon Marchi <simon.marchi@efficios.com>
10223
10224 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10225
c3236f84
SM
102262020-05-04 Simon Marchi <simon.marchi@efficios.com>
10227
10228 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10229 * gdbtypes.c (recursive_dump_type): Remove use of
10230 TYPE_INCOMPLETE.
10231
3b6acaee
TT
102322020-05-03 Tom Tromey <tom@tromey.com>
10233
10234 * breakpoint.c (catch_command, tcatch_command): Remove.
10235 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10236 add_show_prefix_cmd.
10237 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10238 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10239 Remove.
10240 (add_internal_problem_command): Use add_basic_prefix_cmd,
10241 add_show_prefix_cmd.
10242 * mips-tdep.c (set_mipsfpu_command): Remove.
10243 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10244 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10245 (_initialize_index_cache): Use add_basic_prefix_cmd.
10246 * memattr.c (dummy_cmd): Remove.
10247 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10248 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10249 (_initialize_tui_win): Use add_basic_prefix_cmd,
10250 add_show_prefix_cmd.
10251 * cli/cli-logging.c (set_logging_command): Remove.
10252 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10253 add_show_prefix_cmd.
10254 (show_logging_command): Remove.
10255 * target.c (target_command): Remove.
10256 (add_target): Use add_basic_prefix_cmd.
10257
a51119cd
HD
102582020-05-02 Hannes Domani <ssbssa@yahoo.de>
10259
10260 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10261
652fc23a 102622020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10263
652fc23a
PW
10264 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10265 info_command.
10266
117539e6
KR
102672020-04-30 Kamil Rytarowski <n54@gmx.com>
10268
10269 * nbsd-nat.c (nbsd_enable_proc_events)
10270 (nbsd_nat_target::post_startup_inferior): Add.
10271 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10272 (nbsd_nat_target::update_thread_list): Rewrite.
10273 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10274 "PTRACE_LWP_CREATE".
10275 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10276
102e38eb 102772020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10278
102e38eb
PW
10279 * stack.c (_initialize_stack): Remove duplicated creation
10280 of "frame" command and "f" alias.
10281
ee9d1e5f
HD
102822020-04-30 Hannes Domani <ssbssa@yahoo.de>
10283
10284 PR gdb/18706
10285 * gdbtypes.c (check_typedef): Calculate size of array of
10286 stubbed type.
10287
627c7fb8
HD
102882020-04-30 Hannes Domani <ssbssa@yahoo.de>
10289
10290 PR gdb/15559
10291 * i386-tdep.c (i386_push_dummy_call): Call
10292 i386_thiscall_push_dummy_call.
10293 (i386_thiscall_push_dummy_call): New function.
10294 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10295 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10296 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10297
ffc2844e
SM
102982020-04-29 Simon Marchi <simon.marchi@efficios.com>
10299
10300 * gdbarch.sh (do_read): Add shellcheck disable directive for
10301 warning SC2162.
10302
1207375d
SM
103032020-04-29 Simon Marchi <simon.marchi@efficios.com>
10304
10305 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10306 "referenced but not assigned" warning.
10307
9fdb2916
SM
103082020-04-29 Simon Marchi <simon.marchi@efficios.com>
10309
10310 * gdbarch.sh: Remove code that sets fallbackdefault.
10311
759cea5e
SM
103122020-04-29 Simon Marchi <simon.marchi@efficios.com>
10313
10314 * gdbarch.sh: Use shell operators && and || instead of
10315 -a and -o.
10316
cb02ab24
SM
103172020-04-29 Simon Marchi <simon.marchi@efficios.com>
10318
10319 * gdbarch.sh: Use $(...) instead of `...`.
10320
a6fc5ffc
SM
103212020-04-29 Simon Marchi <simon.marchi@efficios.com>
10322
10323 * gdbarch.sh: Use double quotes around variables.
10324
8d113d13
SM
103252020-04-29 Simon Marchi <simon.marchi@efficios.com>
10326
10327 * gdbarch.sh: Use %s with printf, instead of variables in the
10328 format string.
10329
ed6acedd
TT
103302020-04-29 Tom Tromey <tromey@adacore.com>
10331
10332 PR ada/25875:
10333 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10334 type fields here.
10335 (read_enumeration_type): Call
10336 update_enumeration_type_from_children later. Update comments.
10337 (process_enumeration_scope): Don't create type fields.
10338
b68b1b58
KR
103392020-04-29 Kamil Rytarowski <n54@gmx.com>
10340
10341 * nbsd-tdep.c: Include "xml-syscall.h".
10342 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10343
f94b2e03
KR
103442020-04-29 Kamil Rytarowski <n54@gmx.com>
10345
10346 * nbsd-nat.c: Include "sys/wait.h".
10347 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10348 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10349 (nbsd_nat_target::remove_exec_catchpoint)
10350 (nbsd_nat_target::set_syscall_catchpoint): Add.
10351 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10352 (nbsd_nat_target::insert_exec_catchpoint)
10353 (nbsd_nat_target::remove_exec_catchpoint)
10354 (nbsd_nat_target::set_syscall_catchpoint): Add.
10355 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10356 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10357 `nbsd_get_syscall_number'.
10358
fc49bc72
TT
103592020-04-29 Tom Tromey <tom@tromey.com>
10360
10361 * stack.c (print_block_frame_labels): Remove.
10362
d642b692
HD
103632020-04-29 Hannes Domani <ssbssa@yahoo.de>
10364
10365 PR gdb/17320
10366 * ada-valprint.c (val_print_packed_array_elements): Move array
10367 end bracket to new line.
10368 (ada_val_print_string): Remove extra spaces before first array
10369 element.
10370 * c-valprint.c (c_value_print_array): Likewise.
10371 * m2-valprint.c (m2_print_array_contents): Likewise.
10372 (m2_value_print_inner): Likewise.
10373 * p-valprint.c (pascal_value_print_inner): Likewise.
10374 * valprint.c (generic_val_print_array): Likewise.
10375 (value_print_array_elements): Move first array element and array
10376 end bracket to new line.
10377
ea90f227
TV
103782020-04-29 Tom de Vries <tdevries@suse.de>
10379
10380 PR symtab/25889
10381 * linespec.c (find_method): Fix ix calculation.
10382
4498ef4f
KR
103832020-04-28 Kamil Rytarowski <n54@gmx.com>
10384
10385 * syscalls/update-netbsd.sh: New file.
10386 * syscalls/netbsd.xml: Regenerate.
10387 * data-directory/Makefile.in: Register `netbsd.xml' in
10388 `SYSCALLS_FILES'.
10389
a55e30b5
SM
103902020-04-28 Simon Marchi <simon.marchi@efficios.com>
10391
10392 * syscalls/update-freebsd.sh: Add double quotes.
10393
2b2fbab8
TT
103942020-04-28 Tom Tromey <tom@tromey.com>
10395
10396 * NEWS: Update.
10397 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10398 (cmdpy_init): Allow class_tui.
10399
a65189c9
TV
104002020-04-28 Mark Williams <mark@myosotissp.com>
10401
10402 PR gdb/24480
10403 * dwarf2read.c: Add missing assingments to list_in_scope when
10404 start_symtab was already called.
10405
1b95cdb7
SM
104062020-04-28 Simon Marchi <simon.marchi@efficios.com>
10407
10408 PR gdb/25881
10409 * dwarf2/read.c (offset_map_type): Use
10410 gdb:hash_enum<sect_offset> as hash function.
10411
15cd93d0
TV
104122020-04-28 Tom de Vries <tdevries@suse.de>
10413
10414 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10415 with DW_AT_signature.
10416
1eb39914
SM
104172020-04-27 Simon Marchi <simon.marchi@efficios.com>
10418
10419 * configure.ac: Remove check for fs_base/gs_base in
10420 user_regs_struct.
10421 * configure: Re-generate.
10422 * config.in: Re-generate.
10423 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10424 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10425 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10426
991a3e2e
LM
104272020-04-27 Luis Machado <luis.machado@linaro.org>
10428
10429 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10430 problematic inline frame unwinding situation.
10431 * frame.c (frame_id_computed_p): New function.
10432 * frame.h (frame_id_computed_p): New prototype.
10433
361ba0e8
TT
104342020-04-26 Tom Tromey <tom@tromey.com>
10435
10436 * command.h (enum command_class) <class_pseudo>: Remove.
10437
bc3609fd
PW
104382020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10439
10440 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10441 and whitespace.
10442
b9771db7
KR
104432020-04-25 Kamil Rytarowski <n54@gmx.com>
10444
ec16513e
SM
10445 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10446 `PT_GET_PROCESS_STATE' block.
b9771db7 10447
7151c1af
TT
104482020-04-24 Tom Tromey <tom@tromey.com>
10449
10450 * symtab.h (symbol_get_demangled_name): Don't declare.
10451 * symtab.c (symbol_get_demangled_name): Remove.
10452 (general_symbol_info::natural_name)
10453 (general_symbol_info::demangled_name): Update.
10454
906bb4c5
TT
104552020-04-24 Tom Tromey <tom@tromey.com>
10456
10457 PR rust/25025:
10458 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10459
bcfe6157
TT
104602020-04-24 Tom Tromey <tom@tromey.com>
10461
10462 PR symtab/12707:
10463 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10464 exists.
10465 (new_symbol): Likewise.
10466 * compile/compile-object-load.c (get_out_value_type): Use
10467 symbol_matches_search_name.
10468
f049a313
TT
104692020-04-24 Tom Tromey <tom@tromey.com>
10470
10471 * dwarf2/read.c (add_partial_symbol): Do not call
10472 compute_and_set_names.
10473
76e288d1
TT
104742020-04-24 Tom Tromey <tom@tromey.com>
10475
10476 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10477 overload.
10478
2467f4f6
TT
104792020-04-24 Tom Tromey <tom@tromey.com>
10480
10481 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10482 (add_psymbol_to_list): New overload. Make old overload call new
10483 one.
10484 * psympriv.h (add_psymbol_to_list): New overload.
10485
e61108c9
TT
104862020-04-24 Tom Tromey <tom@tromey.com>
10487
10488 * dwarf2/read.c (partial_die_info::read) <case
10489 DW_AT_linkage_name>: Use value_as_string.
10490 (dwarf2_string_attr): Use value_as_string.
10491 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10492 method.
10493 * dwarf2/attribute.c (attribute::value_as_string): New method.
10494
8c87a452
TT
104952020-04-24 Tom Tromey <tom@tromey.com>
10496
10497 * symtab.c (general_symbol_info::natural_name)
10498 (general_symbol_info::demangled_name): Check for language_rust.
10499
787de330
TT
105002020-04-24 Tom Tromey <tom@tromey.com>
10501
10502 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10503 (dwarf2_physname): ... from here.
10504 (partial_die_info::read): Add Rust "{" hack.
10505
ff985671
TT
105062020-04-24 Tom Tromey <tom@tromey.com>
10507
10508 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10509 method.
10510 (symbol_set_demangled_name): Don't declare.
10511 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10512 symbol_set_demangled_name.
10513 (general_symbol_info::set_language)
10514 (general_symbol_info::compute_and_set_names): Update.
10515 * minsyms.c (minimal_symbol_reader::install): Update.
10516 * dwarf2/read.c (new_symbol): Update.
10517
1acda803
TT
105182020-04-24 Tom Tromey <tromey@adacore.com>
10519
10520 PR python/23662:
10521 * python/py-type.c (convert_field): Handle
10522 FIELD_LOC_KIND_DWARF_BLOCK.
10523 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10524 (typy_get_dynamic): Nw function.
10525 (type_object_getset): Add "dynamic".
10526 * NEWS: Add entry.
10527
d656f129
TT
105282020-04-24 Tom Tromey <tromey@adacore.com>
10529
10530 * ada-typeprint.c (print_choices, print_variant_part)
10531 (print_record_field_types_dynamic): New functions.
10532 (print_record_field_types): Use print_record_field_types_dynamic.
10533
7d79de9a
TT
105342020-04-24 Tom Tromey <tromey@adacore.com>
10535
10536 * dwarf2/read.c (handle_data_member_location): New overload.
10537 (dwarf2_add_field): Use it.
10538 (decode_locdesc): Add "computed" parameter. Update comment.
10539 * gdbtypes.c (is_dynamic_type_internal): Also look for
10540 FIELD_LOC_KIND_DWARF_BLOCK.
10541 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10542 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10543 virtual base classes.
10544 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10545 FIELD_LOC_KIND_DWARF_BLOCK.
10546
f8e89861
TT
105472020-04-24 Tom Tromey <tromey@adacore.com>
10548
10549 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10550 * gdbtypes.c (is_dynamic_type_internal): Check
10551 TYPE_HAS_DYNAMIC_LENGTH.
10552 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10553 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10554 New macros.
10555 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10556 constant.
10557
9c6a1327
TT
105582020-04-24 Tom Tromey <tromey@adacore.com>
10559
10560 * dwarf2/read.c (struct variant_field): Rewrite.
10561 (struct variant_part_builder): New.
10562 (struct nextfield): Remove "variant" field. Add "offset".
10563 (struct field_info): Add "current_variant_part" and
10564 "variant_parts".
10565 (alloc_discriminant_info): Remove.
10566 (alloc_rust_variant): New function.
10567 (quirk_rust_enum): Update.
10568 (dwarf2_add_field): Set "offset" member. Don't handle
10569 DW_TAG_variant_part.
10570 (offset_map_type): New typedef.
10571 (convert_variant_range, create_one_variant)
10572 (create_one_variant_part, create_variant_parts)
10573 (add_variant_property): New functions.
10574 (dwarf2_attach_fields_to_type): Call add_variant_property.
10575 (read_structure_type): Don't handle DW_TAG_variant_part.
10576 (handle_variant_part, handle_variant): New functions.
10577 (handle_struct_member_die): Use them.
10578 (process_structure_scope): Don't handle variant parts.
10579 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10580 (struct discriminant_info): Remove.
10581 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10582 (struct main_type) <flag_discriminated_union>: Remove.
10583 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10584 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10585 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10586 Update.
10587 * valops.c (value_union_variant): Remove.
10588 * value.h (value_union_variant): Don't declare.
10589
b249d2c2
TT
105902020-04-24 Tom Tromey <tromey@adacore.com>
10591
10592 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10593 (ada_value_primitive_packed_val): Update.
10594 * ada-valprint.c (ada_value_print_1): Update.
10595 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10596 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10597 just an address. Use evaluate_for_locexpr_baton.
10598 (dwarf2_evaluate_property): Update.
10599 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10600 array_view.
10601 * findvar.c (default_read_var_value): Update.
10602 * gdbtypes.c (compute_variant_fields_inner)
10603 (resolve_dynamic_type_internal): Update.
10604 (resolve_dynamic_type): Change type of valaddr parameter.
10605 * gdbtypes.h (resolve_dynamic_type): Update.
10606 * valarith.c (value_subscripted_rvalue): Update.
10607 * value.c (value_from_contents_and_address): Update.
10608
61122aa9
TT
106092020-04-24 Tom Tromey <tromey@adacore.com>
10610
10611 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10612 "push_initial_value" parameter.
10613 (dwarf2_evaluate_property): Likewise.
10614 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10615
ef83a141
TT
106162020-04-24 Tom Tromey <tromey@adacore.com>
10617
10618 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10619 (variant::matches, compute_variant_fields_recurse)
10620 (compute_variant_fields_inner, compute_variant_fields): New
10621 functions.
10622 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10623 Use resolved_type after type is made.
10624 (operator==): Add new cases.
10625 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10626 (struct discriminant_range, struct variant, struct variant_part):
10627 New.
10628 (union dynamic_prop_data) <variant_parts, original_type>: New
10629 members.
10630 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10631 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10632 constants.
10633 * value.c (unpack_bits_as_long): Now public.
10634 * value.h (unpack_bits_as_long): Declare.
10635
675127ec
TT
106362020-04-24 Tom Tromey <tromey@adacore.com>
10637
10638 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10639 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10640
9852ceef
HD
106412020-04-24 Hannes Domani <ssbssa@yahoo.de>
10642
10643 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10644
7632c6ce
KR
106452020-04-24 Kamil Rytarowski <n54@gmx.com>
10646
10647 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10648 (remove_fork_catchpoint, post_startup_inferior)
10649 (post_attach): Move...
10650 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10651 (remove_fork_catchpoint, post_startup_inferior)
10652 (post_attach): ...here.
10653 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10654 (remove_fork_catchpoint, post_startup_inferior)
10655 (post_attach): Move...
10656 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10657 (remove_fork_catchpoint, post_startup_inferior)
10658 (post_attach): ...here.
10659
7be2bb4f
TT
106602020-04-24 Tom Tromey <tromey@adacore.com>
10661
10662 * nat/windows-nat.h (struct windows_thread_info)
10663 <pc_adjusted>: New member.
10664 * windows-nat.c (windows_fetch_one_register): Check
10665 pc_adjusted.
10666 (windows_nat_target::get_windows_debug_event)
10667 (windows_nat_target::wait): Set pc_adjusted.
10668
f80cb3b4
TV
106692020-04-24 Tom de Vries <tdevries@suse.de>
10670
10671 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10672 Run gdb-add-index inside temp dir.
10673
29514b87
TT
106742020-04-23 Tom Tromey <tromey@adacore.com>
10675
10676 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10677 in loop.
10678
5939967b
LM
106792020-04-23 Luis Machado <luis.machado@linaro.org>
10680
10681 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10682 get_frame_register instead of gdbarch_unwind_pc.
10683
70bc38f5
TV
106842020-04-23 Tom de Vries <tdevries@suse.de>
10685
10686 * symtab.c (lookup_global_symbol): Prefer def over decl.
10687
de82891c
TV
106882020-04-23 Tom de Vries <tdevries@suse.de>
10689
10690 PR symtab/25807
10691 * block.c (best_symbol, better_symbol): Promote to external.
10692 * block.h (best_symbol, better_symbol): Declare.
10693 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10694 decl.
10695
ecc6c606
TT
106962020-04-23 Tom Tromey <tromey@adacore.com>
10697
10698 PR ada/25837:
10699 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10700 "const char *", not a "const std::string &".
10701 <name_and_matcher::operator==>: Update.
10702 * unittests/lookup_name_info-selftests.c: Change type of
10703 "result".
10704
740480b8
TT
107052020-04-23 Tom Tromey <tom@tromey.com>
10706
10707 * inferior.h (iterate_over_inferiors): Don't declare.
10708 * inferior.c (iterate_over_inferiors): Remove.
10709 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10710 Remove.
10711 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10712 use iterate_over_inferiors.
10713 (darwin_resume_inferior_it)
10714 (struct resume_inferior_threads_param)
10715 (darwin_resume_inferior_threads_it): Remove.
10716 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10717
ae3ab1f0
TV
107182020-04-23 Tom de Vries <tdevries@suse.de>
10719
10720 * blockframe.c (find_pc_partial_function): Use
10721 find_pc_sect_compunit_symtab rather than
10722 objfile->sf->qf->find_pc_sect_compunit_symtab.
10723
317d2668
TV
107242020-04-22 Tom de Vries <tdevries@suse.de>
10725
10726 PR symtab/25764
10727 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10728 in psymtabs.
10729
eea9e357
TV
107302020-04-22 Tom de Vries <tdevries@suse.de>
10731
10732 PR symtab/25801
10733 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10734 symtabs.
10735
3d5afab3
TV
107362020-04-22 Tom de Vries <tdevries@suse.de>
10737
10738 PR symtab/25700
10739 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10740 CU if already created.
10741
d43b7a2d
TBA
107422020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10743
10744 * infrun.c (displaced_step_fixup): Switch to the event_thread
10745 before calling displaced_step_restore, not after.
10746
d89edf9b
MM
107472020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10748
10749 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10750 its inferior is not recorded by us.
10751 (record_btrace_target_open): Replace call to
10752 all_non_exited_threads () with call to current_inferior
10753 ()->non_exited_threads ().
10754 (record_btrace_target::stop_recording): Likewise.
10755 (record_btrace_target::close): Likewise.
10756 (record_btrace_target::wait): Likewise.
10757 (record_btrace_target::record_stop_replaying): Likewise.
10758
5897fd49
MM
107592020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10760
10761 * btrace.c (btrace_enable): Throw an error on double enables and
10762 when enabling recording fails.
10763 (btrace_disable): Throw an error if the thread is not recorded.
10764
1a476b6d
MM
107652020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10766
10767 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10768 request if we do not have a thread_info.
10769
4778a5f8
TV
107702020-04-21 Tom de Vries <tdevries@suse.de>
10771
10772 PR gdb/25471
10773 * thread.c
10774 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10775 exception in get_frame_id.
10776
0fa7617d
TT
107772020-04-20 Tom Tromey <tromey@adacore.com>
10778
10779 * python/python.c (struct gdbpy_event): Mark move constructor as
10780 noexcept.
10781 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10782 constructor as noexcept.
10783 * completer.h (struct completion_result): Mark move constructor as
10784 noexcept.
10785 * completer.c (completion_result::completion_result): Use
10786 initialization style. Don't call reset_match_list.
10787
ad23bda0
MS
107882020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10789
10790 * MAINTAINERS (Write After Approval): Add myself.
10791
45e1f031
TT
107922020-04-18 Tom Tromey <tom@tromey.com>
10793
10794 * windows-tdep.c (init_w32_command_list)
10795 (w32_prefix_command_valid): Restore.
10796 (_initialize_windows_tdep): Call init_w32_command_list.
10797
08feed99
TT
107982020-04-18 Tom Tromey <tom@tromey.com>
10799
10800 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10801 * value.c (value_fn_field): Update.
10802 * valops.c (find_function_in_inferior)
10803 (value_allocate_space_in_inferior): Update.
10804 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10805 Update.
10806 * tui/tui-source.c (tui_source_window::set_contents): Update.
10807 * symtab.c (lookup_global_or_static_symbol)
10808 (find_function_start_sal_1, skip_prologue_sal)
10809 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10810 * symmisc.c (dump_msymbols, dump_symtab_1)
10811 (maintenance_print_one_line_table): Update.
10812 * symfile.c (init_entry_point_info, section_is_mapped)
10813 (list_overlays_command, simple_read_overlay_table)
10814 (simple_overlay_update_1): Update.
10815 * stap-probe.c (handle_stap_probe): Update.
10816 * stabsread.c (dbx_init_float_type, define_symbol)
10817 (read_one_struct_field, read_enum_type, read_range_type): Update.
10818 * source.c (info_line_command): Update.
10819 * python/python.c (gdbpy_source_objfile_script)
10820 (gdbpy_execute_objfile_script): Update.
10821 * python/py-type.c (save_objfile_types): Update.
10822 * python/py-objfile.c (py_free_objfile): Update.
10823 * python/py-inferior.c (python_new_objfile): Update.
10824 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10825 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10826 (maintenance_check_psymtabs): Update.
10827 * printcmd.c (info_address_command): Update.
10828 * objfiles.h (struct objfile) <arch>: New method, from
10829 get_objfile_arch.
10830 (get_objfile_arch): Don't declare.
10831 * objfiles.c (get_objfile_arch): Remove.
10832 (filter_overlapping_sections): Update.
10833 * minsyms.c (msymbol_is_function): Update.
10834 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10835 (output_nondebug_symbol): Update.
10836 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10837 (mdebug_expand_psymtab): Update.
10838 * machoread.c (macho_add_oso_symfile): Update.
10839 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10840 Update.
10841 * linux-fork.c (checkpoint_command): Update.
10842 * linespec.c (convert_linespec_to_sals): Update.
10843 * jit.c (finalize_symtab): Update.
10844 * infrun.c (insert_exception_resume_from_probe): Update.
10845 * ia64-tdep.c (ia64_find_unwind_table): Update.
10846 * hppa-tdep.c (internalize_unwinds): Update.
10847 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10848 Update.
10849 * gcore.c (call_target_sbrk): Update.
10850 * elfread.c (record_minimal_symbol, elf_symtab_read)
10851 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10852 (elf_gnu_ifunc_resolve_by_got): Update.
10853 * dwarf2/read.c (create_addrmap_from_index)
10854 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10855 (read_debug_names_from_section)
10856 (process_psymtab_comp_unit_reader, add_partial_symbol)
10857 (add_partial_subprogram, process_full_comp_unit)
10858 (read_file_scope, read_func_scope, read_lexical_block_scope)
10859 (read_call_site_scope, dwarf2_ranges_read)
10860 (dwarf2_record_block_ranges, dwarf2_add_field)
10861 (mark_common_block_symbol_computed, read_tag_pointer_type)
10862 (read_tag_string_type, dwarf2_init_float_type)
10863 (dwarf2_init_complex_target_type, read_base_type)
10864 (partial_die_info::read, partial_die_info::read)
10865 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10866 (dwarf2_fetch_die_loc_sect_off): Update.
10867 * dwarf2/loc.c (dwarf2_find_location_expression)
10868 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10869 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10870 (dwarf2_loc_desc_get_symbol_read_needs)
10871 (locexpr_describe_location_piece, locexpr_describe_location_1)
10872 (loclist_describe_location): Update.
10873 * dwarf2/index-write.c (write_debug_names): Update.
10874 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10875 * dtrace-probe.c (dtrace_process_dof): Update.
10876 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10877 (process_one_symbol): Update.
10878 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10879 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10880 (coff_read_enum_type): Update.
10881 * cli/cli-cmds.c (edit_command, list_command): Update.
10882 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10883 * breakpoint.c (create_overlay_event_breakpoint)
10884 (create_longjmp_master_breakpoint)
10885 (create_std_terminate_master_breakpoint)
10886 (create_exception_master_breakpoint, get_sal_arch): Update.
10887 * block.c (block_gdbarch): Update.
10888 * annotate.c (annotate_source_line): Update.
10889
0743fc83
TT
108902020-04-17 Tom Tromey <tromey@adacore.com>
10891
10892 * auto-load.c (show_auto_load_cmd): Remove.
10893 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10894 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10895 (maintenance_print_arc_command): Remove.
10896 * tui/tui-win.c (tui_command): Remove.
10897 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10898 * tui/tui-layout.c (tui_layout_command): Remove.
10899 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10900 * python/python.c (user_set_python, user_show_python): Remove.
10901 (_initialize_python): Use add_basic_prefix_cmd,
10902 add_show_prefix_cmd.
10903 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10904 (install_gdb_commands): Use add_basic_prefix_cmd,
10905 add_show_prefix_cmd.
10906 (info_guile_command): Remove.
10907 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10908 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10909 add_show_prefix_cmd.
10910 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10911 Remove do_set and do_show parameters.
10912 * cli/cli-style.c (set_style, show_style): Remove.
10913 (_initialize_cli_style): Use add_basic_prefix_cmd,
10914 add_show_prefix_cmd.
10915 (cli_style_option::add_setshow_commands): Remove do_set and
10916 do_show parameters.
10917 (cli_style_option::add_setshow_commands): Use
10918 add_basic_prefix_cmd, add_show_prefix_cmd.
10919 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10920 (set_style_name): Remove.
10921 * cli/cli-dump.c (dump_command, append_command): Remove.
10922 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10923 (tekhex_dump_command, binary_dump_command)
10924 (binary_append_command): Remove.
10925 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10926 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10927 (init_w32_command_list): Remove; move into ...
10928 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10929 * valprint.c (set_print, show_print, set_print_raw)
10930 (show_print_raw): Remove.
10931 (_initialize_valprint): Use add_basic_prefix_cmd,
10932 add_show_prefix_cmd.
10933 * typeprint.c (set_print_type, show_print_type): Remove.
10934 (_initialize_typeprint): Use add_basic_prefix_cmd,
10935 add_show_prefix_cmd.
10936 * record.c (set_record_command, show_record_command): Remove.
10937 (_initialize_record): Use add_basic_prefix_cmd,
10938 add_show_prefix_cmd.
10939 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10940 add_show_prefix_cmd.
10941 (info_command, show_command, set_debug, show_debug): Remove.
10942 * top.h (set_history, show_history): Don't declare.
10943 * top.c (set_history, show_history): Remove.
10944 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10945 (unset_tdesc_cmd): Remove.
10946 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10947 add_show_prefix_cmd.
10948 * symtab.c (info_module_command): Remove.
10949 (_initialize_symtab): Use add_basic_prefix_cmd.
10950 * symfile.c (overlay_command): Remove.
10951 (_initialize_symfile): Use add_basic_prefix_cmd.
10952 * sparc64-tdep.c (info_adi_command): Remove.
10953 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10954 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10955 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10956 add_show_prefix_cmd.
10957 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10958 (_initialize_serial): Use add_basic_prefix_cmd,
10959 add_show_prefix_cmd.
10960 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10961 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10962 add_show_prefix_cmd.
10963 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10964 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10965 add_show_prefix_cmd.
10966 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10967 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10968 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10969 add_show_prefix_cmd.
10970 * remote.c (remote_command, set_remote_cmd): Remove.
10971 (_initialize_remote): Use add_basic_prefix_cmd.
10972 * record-full.c (set_record_full_command)
10973 (show_record_full_command): Remove.
10974 (_initialize_record_full): Use add_basic_prefix_cmd,
10975 add_show_prefix_cmd.
10976 * record-btrace.c (cmd_set_record_btrace)
10977 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10978 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10979 (cmd_show_record_btrace_pt): Remove.
10980 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10981 add_show_prefix_cmd.
10982 * ravenscar-thread.c (set_ravenscar_command)
10983 (show_ravenscar_command): Remove.
10984 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10985 add_show_prefix_cmd.
10986 * mips-tdep.c (show_mips_command, set_mips_command)
10987 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10988 add_show_prefix_cmd.
10989 * maint.c (maintenance_command, maintenance_info_command)
10990 (maintenance_check_command, maintenance_print_command)
10991 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10992 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10993 add_show_prefix_cmd.
10994 (show_per_command_cmd): Remove.
10995 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10996 Remove.
10997 (maintenance_show_test_settings_cmd): Remove.
10998 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10999 add_show_prefix_cmd.
11000 * maint-test-options.c (maintenance_test_options_command):
11001 Remove.
11002 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11003 * macrocmd.c (macro_command): Remove
11004 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11005 * language.c (set_check, show_check): Remove.
11006 (_initialize_language): Use add_basic_prefix_cmd,
11007 add_show_prefix_cmd.
11008 * infcmd.c (unset_command): Remove.
11009 (_initialize_infcmd): Use add_basic_prefix_cmd.
11010 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11011 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11012 add_show_prefix_cmd.
11013 * go32-nat.c (go32_info_dos_command): Remove.
11014 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11015 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11016 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11017 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11018 (_initialize_frame): Use add_basic_prefix_cmd,
11019 add_show_prefix_cmd.
11020 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11021 (_initialize_dcache): Use add_basic_prefix_cmd,
11022 add_show_prefix_cmd.
11023 * cp-support.c (maint_cplus_command): Remove.
11024 (_initialize_cp_support): Use add_basic_prefix_cmd.
11025 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11026 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11027 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11028 add_basic_prefix_cmd, add_show_prefix_cmd.
11029 * breakpoint.c (save_command): Remove.
11030 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11031 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11032 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11033 add_show_prefix_cmd.
11034 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11035 (set_ada_command, show_ada_command): Remove.
11036 (_initialize_ada_language): Use add_basic_prefix_cmd,
11037 add_show_prefix_cmd.
11038 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11039
3557f442
KR
110402020-04-16 Kamil Rytarowski <n54@gmx.com>
11041
11042 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11043 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11044
16197208
SM
110452020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11046
11047 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11048 warning messages.
11049
00ac85d3
SM
110502020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11051
11052 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11053 import table is not at beginning of .idata section.
11054
381ce63f
PA
110552020-04-16 Pedro Alves <palves@redhat.com>
11056
11057 * inferior.c (delete_inferior): Use delete operator directly
11058 instead of delete_program_space.
11059 * progspace.c (add_program_space): New, factored out from
11060 program_space::program_space.
11061 (remove_program_space): New, factored out from
11062 delete_program_space.
11063 (program_space::program_space): Remove intro comment. Rewrite.
11064 (program_space::~program_space): Remove intro comment. Call
11065 remove_program_space.
11066 (delete_program_space): Delete.
11067 * progspace.h (program_space::program_space): Make explicit. Move
11068 intro comment here, adjusted.
11069 (program_space::~program_space): Move intro comment here,
11070 adjusted.
11071 (delete_program_space): Remove.
11072
a010605f
TT
110732020-04-16 Tom Tromey <tromey@adacore.com>
11074
11075 * windows-nat.c (windows_nat::handle_access_violation): New
11076 function.
11077 * nat/windows-nat.h (handle_access_violation): Declare.
11078 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11079 windows-nat.c. Call handle_access_violation.
11080
efba5c23
TV
110812020-04-16 Tom de Vries <tdevries@suse.de>
11082
11083 PR symtab/25791
11084 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11085 CUs without psymtab.
11086
97ed802d
KB
110872020-04-16 Kevin Buettner <kevinb@redhat.com>
11088
11089 * python/python.c (do_start_initialization): Don't call
11090 PyEval_InitThreads for Python 3.9 and beyond.
11091
c7d64809
KR
110922020-04-15 Kamil Rytarowski <n54@gmx.com>
11093
11094 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11095 thread functions.
11096 (obsd_nat_target::wait): Likewise.
11097
ce127a96
TT
110982020-04-15 Tom Tromey <tromey@adacore.com>
11099
11100 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11101 (DEBUG_EXCEPT): Use debug_printf.
11102
99f1bc6a
AB
111032020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11104
11105 * completer.c (class completion_tracker::completion_hash_entry)
11106 <hash_name>: New member function.
11107 (completion_tracker::discard_completions): New callback to hash a
11108 completion_hash_entry, pass this to htab_create_alloc.
11109
a0e9b532
JT
111102016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11111
11112 * windows-nat.c (windows_make_so): Warn rather than stopping with
11113 an error if realpath() fails.
11114
06ca5dd4
KR
111152020-04-14 Kamil Rytarowski <n54@gmx.com>
11116
11117 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11118 (nbsd_nat_target::info_proc): Add do_status.
11119
194d088f
TV
111202020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11121 Tom de Vries <tdevries@suse.de>
11122
11123 PR symtab/25718
11124 * psympriv.h (struct partial_symtab::read_symtab)
11125 (struct partial_symtab::expand_psymtab)
11126 (struct partial_symtab::read_dependencies): Update comments.
11127 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11128 read_symtab for includer.
11129 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11130 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11131 (struct dwarf2_include_psymtab::m_readin): Remove.
11132 (struct dwarf2_include_psymtab::includer): New member function.
11133 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11134
c1a66c06
TV
111352020-04-14 Tom de Vries <tdevries@suse.de>
11136
11137 PR symtab/25720
11138 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11139 with NULL symbol_matcher and lookup_name.
11140 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11141 and lookup_name.
11142 * dwarf2/read.c (dw2_expand_symtabs_matching)
11143 (dw2_debug_names_expand_symtabs_matching): Same.
11144 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11145 Make lookup_name a pointer. Update comment.
11146 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11147 lookup_name being a pointer.
11148 * symfile.c (expand_symtabs_matching): Same.
11149 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11150 * linespec.c (iterate_over_all_matching_symtabs): Same.
11151
400b5eca
TT
111522020-04-13 Tom Tromey <tom@tromey.com>
11153
11154 * run-on-main-thread.c: Update include.
11155 * unittests/main-thread-selftests.c: Update include.
11156 * tui/tui-win.c: Update include.
11157 * tui/tui-io.c: Update include.
11158 * tui/tui-interp.c: Update include.
11159 * tui/tui-hooks.c: Update include.
11160 * top.h: Update include.
11161 * top.c: Update include.
11162 * ser-base.c: Update include.
11163 * remote.c: Update include.
11164 * remote-notif.c: Update include.
11165 * remote-fileio.c: Update include.
11166 * record-full.c: Update include.
11167 * record-btrace.c: Update include.
11168 * python/python.c: Update include.
11169 * posix-hdep.c: Update include.
11170 * mingw-hdep.c: Update include.
11171 * mi/mi-main.c: Update include.
11172 * mi/mi-interp.c: Update include.
11173 * main.c: Update include.
11174 * linux-nat.c: Update include.
11175 * interps.c: Update include.
11176 * infrun.c: Update include.
11177 * inf-loop.c: Update include.
11178 * event-top.c: Update include.
11179 * event-loop.c: Move to ../gdbsupport/.
11180 * event-loop.h: Move to ../gdbsupport/.
11181 * async-event.h: Update include.
11182 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11183
93b54c8e
TT
111842020-04-13 Tom Tromey <tom@tromey.com>
11185
11186 * tui/tui-win.c: Include async-event.h.
11187 * remote.c: Include async-event.h.
11188 * remote-notif.c: Include async-event.h.
11189 * record-full.c: Include async-event.h.
11190 * record-btrace.c: Include async-event.h.
11191 * infrun.c: Include async-event.h.
11192 * event-top.c: Include async-event.h.
11193 * event-loop.h: Move some declarations to async-event.h.
11194 * event-loop.c: Don't include ser-event.h or top.h. Move some
11195 code to async-event.c.
11196 * async-event.h: New file.
11197 * async-event.c: New file.
11198 * Makefile.in (COMMON_SFILES): Add async-event.c.
11199 (HFILES_NO_SRCDIR): Add async-event.h.
11200
c1cd3163
TT
112012020-04-13 Tom Tromey <tom@tromey.com>
11202
11203 * utils.c (flush_streams): New function.
11204 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11205
29f2bf4f
TT
112062020-04-13 Tom Tromey <tom@tromey.com>
11207
11208 * event-loop.c (handle_file_event): Use warning, not
11209 printf_unfiltered.
11210
98029d02
TT
112112020-04-13 Tom Tromey <tom@tromey.com>
11212
11213 * event-loop.c: Include <chrono>.
11214
06cc9596
TT
112152020-04-13 Tom Tromey <tom@tromey.com>
11216
11217 * gdb_select.h: Move to ../gdbsupport/.
11218 * event-loop.c: Update include path.
11219 * top.c: Update include path.
11220 * ser-base.c: Update include path.
11221 * ui-file.c: Update include path.
11222 * ser-tcp.c: Update include path.
11223 * guile/scm-ports.c: Update include path.
11224 * posix-hdep.c: Update include path.
11225 * ser-unix.c: Update include path.
11226 * gdb_usleep.c: Update include path.
11227 * mingw-hdep.c: Update include path.
11228 * inflow.c: Update include path.
11229 * infrun.c: Update include path.
11230 * event-top.c: Update include path.
11231
8ae8e197
TT
112322020-04-13 Tom Tromey <tom@tromey.com>
11233
11234 * configure: Rebuild.
11235 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11236
58cf28e8
TT
112372020-04-13 Tom Tromey <tom@tromey.com>
11238
11239 * event-loop.h (start_event_loop): Don't declare.
11240 * event-loop.c (start_event_loop): Move...
11241 * main.c (start_event_loop): ...here. Now static.
11242
b7f999ae
SDJ
112432020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11244
11245 * MAINTAINERS: Update my email address.
11246
1085dfd4
KR
112472020-04-12 Kamil Rytarowski <n54@gmx.com>
11248
11249 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11250 IP_ALL.
11251
49d1d1f5
KR
112522020-04-12 Kamil Rytarowski <n54@gmx.com>
11253
11254 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11255 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11256
b4848d2a
KR
112572020-04-12 Kamil Rytarowski <n54@gmx.com>
11258
11259 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11260 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11261
51c133d5
KR
112622020-04-12 Kamil Rytarowski <n54@gmx.com>
11263
11264 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11265
54b8cbd0
KR
112662020-04-11 Kamil Rytarowski <n54@gmx.com>
11267
11268 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11269 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11270 (nbsd_nat_target::info_proc): New functions.
11271 * nbsd-nat.c (kinfo_get_vmmap): New function.
11272 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11273 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11274 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11275 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11276 functions.
11277 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11278 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11279 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11280 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11281 (KINFO_VME_FLAG_GROWS_DOWN): New.
11282
cf83625d
AS
112832020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11284
11285 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11286 bit shift.
11287
0c4311ab
TT
112882020-04-10 Tom Tromey <tromey@adacore.com>
11289
11290 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11291
3e65b3e9
TT
112922020-04-10 Tom Tromey <tromey@adacore.com>
11293
11294 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11295 separate debug files.
11296
13302e95
HD
112972020-04-10 Hannes Domani <ssbssa@yahoo.de>
11298
11299 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11300 Move to...
11301 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11302 ... here.
11303 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11304 Check for STATUS_WX86_BREAKPOINT.
11305 (windows_nat_target::wait): Same.
11306
bdfc1e8a
TV
113072020-04-10 Tom de Vries <tdevries@suse.de>
11308
11309 PR cli/25808
11310 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11311
f4460aec
SM
113122020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11313
11314 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11315 (Write After Approval): Remove Tom de Vries.
11316
a25198bb
BE
113172020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11318
11319 revert partially:
11320 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11321
aac66a4c
SM
11322 * buildsym.c (record_line): Fix undefined behavior and preserve
11323 lines at eof.
a25198bb 11324
206c98a6
KR
113252020-04-09 Kamil Rytarowski <n54@gmx.com>
11326
11327 * auxv.h (svr4_auxv_parse): New.
11328 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11329 and generic_auxv_parse.
11330 (svr4_auxv_parse): Add.
11331 * obsd-tdep.c: Include "auxv.h".
11332 (obsd_auxv_parse): Remove.
11333 (obsd_init_abi): Remove comment.
11334 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11335 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11336 * nbsd-tdep.c: Include "auxv.h".
11337 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11338
71fbdbaf
TT
113392020-04-08 Tom Tromey <tromey@adacore.com>
11340
11341 * nat/windows-nat.h (last_wait_event): Don't declare.
11342 (wait_for_debug_event): Update comment.
11343 * nat/windows-nat.c (last_wait_event): Now static.
11344
2c1d95e8
TT
113452020-04-08 Tom Tromey <tromey@adacore.com>
11346
11347 * windows-nat.c (wait_for_debug_event): Move to
11348 nat/windows-nat.c.
11349 * nat/windows-nat.h (wait_for_debug_event): Declare.
11350 * nat/windows-nat.c (wait_for_debug_event): Move from
11351 windows-nat.c. No longer static.
11352
d2977bc4
TT
113532020-04-08 Tom Tromey <tromey@adacore.com>
11354
11355 * windows-nat.c (get_windows_debug_event): Use
11356 fetch_pending_stop.
11357 * nat/windows-nat.h (fetch_pending_stop): Declare.
11358 * nat/windows-nat.c (fetch_pending_stop): New function.
11359
e758e19c
TT
113602020-04-08 Tom Tromey <tromey@adacore.com>
11361
11362 * windows-nat.c (windows_continue): Use matching_pending_stop and
11363 continue_last_debug_event.
11364 * nat/windows-nat.h (matching_pending_stop)
11365 (continue_last_debug_event): Declare.
11366 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11367 (matching_pending_stop, continue_last_debug_event): New
11368 functions.
11369
8d30e395
TT
113702020-04-08 Tom Tromey <tromey@adacore.com>
11371
11372 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11373 (handle_exception_result): Move to nat/windows-nat.h.
11374 (DEBUG_EXCEPTION_SIMPLE): Remove.
11375 (windows_nat::handle_ms_vc_exception): New function.
11376 (handle_exception): Move to nat/windows-nat.c.
11377 (get_windows_debug_event): Update.
11378 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11379 nat/windows-nat.c.
11380 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11381 (handle_exception_result): Move from windows-nat.c.
11382 (handle_exception): Declare.
11383 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11384 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11385 windows-nat.c.
11386
29de418d
TT
113872020-04-08 Tom Tromey <tromey@adacore.com>
11388
11389 * windows-nat.c (exception_count, event_count): Remove.
11390 (handle_exception, get_windows_debug_event)
11391 (do_initial_windows_stuff): Update.
11392
a816ba18
TT
113932020-04-08 Tom Tromey <tromey@adacore.com>
11394
11395 * windows-nat.c (windows_nat::handle_load_dll)
11396 (windows_nat::handle_unload_dll): Rename. No longer static.
11397 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11398 Declare.
11399
a00caa12
TT
114002020-04-08 Tom Tromey <tromey@adacore.com>
11401
11402 * complaints.h (stop_whining): Declare at top-level.
11403 (complaint): Don't declare stop_whining.
11404
d41b524f
TT
114052020-04-08 Tom Tromey <tromey@adacore.com>
11406
11407 * windows-nat.c (windows_nat::handle_output_debug_string):
11408 Rename. No longer static.
11409 * nat/windows-nat.h (handle_output_debug_string): Declare.
11410
3c76026d
TT
114112020-04-08 Tom Tromey <tromey@adacore.com>
11412
11413 * 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 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11417 (display_selectors, fake_create_process)
11418 (get_windows_debug_event): Update.
11419 * nat/windows-nat.h (current_process_handle, current_process_id)
11420 (main_thread_id, last_sig, current_event, last_wait_event)
11421 (current_windows_thread, desired_stop_thread_id, pending_stops)
11422 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11423 * nat/windows-nat.c (current_process_handle, current_process_id)
11424 (main_thread_id, last_sig, current_event, last_wait_event)
11425 (current_windows_thread, desired_stop_thread_id, pending_stops)
11426 (siginfo_er): New globals. Move from windows-nat.c.
11427
9d8679cc
TT
114282020-04-08 Tom Tromey <tromey@adacore.com>
11429
11430 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11431 (handle_load_dll): Update.
11432 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11433
28688adf
TT
114342020-04-08 Tom Tromey <tromey@adacore.com>
11435
11436 * windows-nat.c (enum thread_disposition_type): Move to
11437 nat/windows-nat.h.
11438 (windows_nat::thread_rec): Rename from thread_rec. No longer
11439 static.
11440 (windows_add_thread, windows_nat_target::fetch_registers)
11441 (windows_nat_target::store_registers, handle_exception)
11442 (windows_nat_target::resume, get_windows_debug_event)
11443 (windows_nat_target::get_tib_address)
11444 (windows_nat_target::thread_name)
11445 (windows_nat_target::thread_alive): Update.
11446 * nat/windows-nat.h (enum thread_disposition_type): Move from
11447 windows-nat.c.
11448 (thread_rec): Declare.
11449
4834dad0
TT
114502020-04-08 Tom Tromey <tromey@adacore.com>
11451
11452 * windows-nat.c: Add "using namespace".
11453 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11454 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11455
65bafd5b
TT
114562020-04-08 Tom Tromey <tromey@adacore.com>
11457
11458 * nat/windows-nat.h (struct windows_thread_info): Declare
11459 destructor.
11460 * nat/windows-nat.c (~windows_thread_info): New.
11461
0a4afda3
TT
114622020-04-08 Tom Tromey <tromey@adacore.com>
11463
11464 PR gdb/22992
11465 * windows-nat.c (current_event): Update comment.
11466 (last_wait_event, desired_stop_thread_id): New globals.
11467 (struct pending_stop): New.
11468 (pending_stops): New global.
11469 (windows_nat_target) <stopped_by_sw_breakpoint>
11470 <supports_stopped_by_sw_breakpoint>: New methods.
11471 (windows_fetch_one_register): Add assertions. Adjust PC.
11472 (windows_continue): Handle pending stops. Suspend other threads
11473 when stepping. Use last_wait_event
11474 (wait_for_debug_event): New function.
11475 (get_windows_debug_event): Use wait_for_debug_event. Handle
11476 pending stops. Queue spurious stops.
11477 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11478 (windows_nat_target::kill): Use wait_for_debug_event.
11479 * nat/windows-nat.h (struct windows_thread_info)
11480 <stopped_at_software_breakpoint>: New field.
11481 * nat/windows-nat.c (windows_thread_info::resume): Clear
11482 stopped_at_software_breakpoint.
11483
8e61ebec
TT
114842020-04-08 Tom Tromey <tromey@adacore.com>
11485
11486 * windows-nat.c (enum thread_disposition_type): New.
11487 (thread_rec): Replace "get_context" parameter with "disposition";
11488 change type.
11489 (windows_add_thread, windows_nat_target::fetch_registers)
11490 (windows_nat_target::store_registers, handle_exception)
11491 (windows_nat_target::resume, get_windows_debug_event)
11492 (windows_nat_target::get_tib_address)
11493 (windows_nat_target::thread_name)
11494 (windows_nat_target::thread_alive): Update.
11495
98a03287
TT
114962020-04-08 Tom Tromey <tromey@adacore.com>
11497
11498 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11499 (windows_continue): Use windows_continue::resume.
11500 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11501 resume>: Declare new methods.
11502 * nat/windows-nat.c: New file.
11503 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11504
7c7411bc
TT
115052020-04-08 Tom Tromey <tromey@adacore.com>
11506
11507 * windows-nat.c (windows_add_thread, windows_delete_thread)
11508 (windows_nat_target::fetch_registers)
11509 (windows_nat_target::store_registers, fake_create_process)
11510 (windows_nat_target::resume, windows_nat_target::resume)
11511 (get_windows_debug_event, windows_nat_target::wait)
11512 (windows_nat_target::pid_to_str)
11513 (windows_nat_target::get_tib_address)
11514 (windows_nat_target::get_ada_task_ptid)
11515 (windows_nat_target::thread_name)
11516 (windows_nat_target::thread_alive): Use lwp, not tid.
11517
2950fdf7
TT
115182020-04-08 Tom Tromey <tromey@adacore.com>
11519
11520 * windows-nat.c (handle_exception)
11521 (windows_nat_target::thread_name): Update.
11522 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11523 <name>: Now unique_xmalloc_ptr.
11524
62fe396b
TT
115252020-04-08 Tom Tromey <tromey@adacore.com>
11526
11527 * windows-nat.c (thread_rec)
11528 (windows_nat_target::fetch_registers): Update.
11529 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11530 Update comment.
11531 <debug_registers_changed, reload_context>: Now bool.
11532
e9534bd2
TT
115332020-04-08 Tom Tromey <tromey@adacore.com>
11534
11535 * windows-nat.c (windows_add_thread): Use new.
11536 (windows_init_thread_list, windows_delete_thread): Use delete.
11537 (get_windows_debug_event): Update.
11538 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11539 destructor, and initializers.
11540
ae1f8880
TT
115412020-04-08 Tom Tromey <tromey@adacore.com>
11542
11543 * windows-nat.c (struct windows_thread_info): Remove.
11544 * nat/windows-nat.h: New file.
11545
55a1e039
TT
115462020-04-08 Tom Tromey <tromey@adacore.com>
11547
11548 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11549 (thread_rec, windows_add_thread, windows_delete_thread)
11550 (windows_continue): Update.
11551
93366324
TT
115522020-04-08 Tom Tromey <tromey@adacore.com>
11553
11554 * windows-nat.c (struct windows_thread_info): Remove typedef.
11555 (thread_head): Remove.
11556 (thread_list): New global.
11557 (thread_rec, windows_add_thread, windows_init_thread_list)
11558 (windows_delete_thread, windows_continue): Update.
11559
0f2265e2
SM
115602020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11561
11562 * windows-tdep.h (windows_init_abi): Add comment.
11563 (cygwin_init_abi): New declaration.
11564 * windows-tdep.c: Split signal enumeration in two, one for
11565 Windows and one for Cygwin.
11566 (windows_gdb_signal_to_target): Only deal with signal of the
11567 Windows OS ABI.
11568 (cygwin_gdb_signal_to_target): New function.
11569 (windows_init_abi): Rename to windows_init_abi_common, don't set
11570 gdb_signal_to_target gdbarch method. Add new new function with
11571 this name.
11572 (cygwin_init_abi): New function.
11573 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11574 comment. Don't call windows_init_abi.
11575 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11576 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11577 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11578 i386_windows_init_abi_common, don't call windows_init_abi. Add
11579 a new function of this name.
11580 (i386_cygwin_init_abi): New function.
11581 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11582 OS ABI Cygwin.
11583
3810f182
SM
115842020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11585
11586 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11587 parameter.c.
11588 (dwarf2_read_gdb_index): Update.
11589
063f8e80
KR
115902020-04-07 Kamil Rytarowski <n54@gmx.com>
11591
11592 * nbsd-tdep.c: Include "objfiles.h".
11593 (nbsd_skip_solib_resolver): New.
11594 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11595
85a9510c 115962020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11597
11598 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11599 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11600 with DW_LLE_base_addressx are being emitted in DWARFv5.
11601 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11602 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11603 unsigned integer.
11604
9fc3eaae 116052020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11606
11607 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11608 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11609 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11610 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11611 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11612 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11613 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11614
11615
41144253 116162020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11617
11618 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11619 (read_loclist_index): New function definition.
11620 (lookup_loclist_base): New function definition.
11621 (read_loclist_header): New function definition.
11622 (dwarf2_cu): Add loclist_base and loclist_header field.
11623 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11624 (read_full_die_1): Read the value of DW_AT_loclists_base.
11625 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11626 (read_attribute_value): Handle DW_FORM_loclistx.
11627 (skip_one_die): Handle DW_FORM_loclistx.
11628 (loclist_header): New structure declaration.
11629 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11630
9f4e76a4
SM
116312020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11632
11633 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11634 constructor. Remove `addr` parameter from other constructor and
11635 add `per_cu` parameter.
11636 * dwarf2/read.c (create_partial_symtab): Update.
11637
25c11aca
TV
116382020-04-07 Tom de Vries <tdevries@suse.de>
11639
11640 PR symtab/25796
11641 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11642 (partial_die_info::fixup): Inherit has_const_value.
11643
5707e24b
TV
116442020-04-07 Tom de Vries <tdevries@suse.de>
11645
11646 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11647 symbols without address.
11648
05f00e22
KR
116492020-04-06 Kamil Rytarowski <n54@gmx.com>
11650
11651 * nbsd-nat.h (struct thread_info): Add forward declaration.
11652 (nbsd_nat_target::thread_alive): Add.
11653 (nbsd_nat_target::thread_name): Likewise.
11654 (nbsd_nat_target::update_thread_list): Likewise.
11655 (update_thread_list::post_attach): Likewise.
11656 (post_attach::pid_to_str): Likewise.
11657 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11658 (nbsd_thread_lister): Add.
11659 (nbsd_nat_target::thread_alive): Likewise.
11660 (nbsd_nat_target::thread_name): Likewise.
11661 (nbsd_add_threads): Likewise.
11662 (update_thread_list::post_attach): Likewise.
11663 (nbsd_nat_target::update_thread_list): Likewise.
11664 (post_attach::pid_to_str): Likewise.
11665
6ee448cc
TT
116662020-04-06 Tom Tromey <tromey@adacore.com>
11667
11668 * ada-valprint.c (print_variant_part): Extract the variant field.
11669 (print_field_values): Use the field as the outer value when
11670 recursing.
11671
dea34e8c
TT
116722020-04-06 Tom Tromey <tromey@adacore.com>
11673
11674 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11675 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11676 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11677 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11678 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11679
93689ce9
TT
116802020-04-06 Tom Tromey <tromey@adacore.com>
11681
11682 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11683 TYPE_CODE_ERROR.
11684
79743962
KR
116852020-04-06 Kamil Rytarowski <n54@gmx.com>
11686
11687 * nbsd-tdep.c: Include "gdbarch.h".
11688 Define enum with NetBSD signal numbers.
11689 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11690 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11691 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11692 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11693 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11694 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11695 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11696 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11697 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11698 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11699 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11700 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11701
9e7c9a03
HD
117022020-04-03 Hannes Domani <ssbssa@yahoo.de>
11703
11704 PR gdb/25325
11705 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11706
d9e49b61
TT
117072020-04-03 Tom Tromey <tromey@adacore.com>
11708
11709 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11710 Read constant block.
11711
e0fc5c3f
SM
117122020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11713
11714 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11715 (gdb_bfd_get_full_section_contents): New declaration.
11716 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11717 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11718 gdb_bfd_get_full_section_contents.
11719
e2ff18a0
SM
117202020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11721
11722 * exec.c (build_section_table): Replace internal_error with
11723 gdb_assert.
11724 (section_table_xfer_memory_partial): Likewise.
11725 * mdebugread.c (parse_partial_symbols): Likewise.
11726 * psymtab.c (lookup_partial_symbol): Likewise.
11727 * utils.c (wrap_here): Likewise.
11728
0830d301
TT
117292020-04-02 Tom Tromey <tromey@adacore.com>
11730
11731 * f-lang.c (build_fortran_types): Use arch_type to initialize
11732 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11733
e7da7f8f
TT
117342020-04-02 Tom Tromey <tromey@adacore.com>
11735
11736 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11737 of attributes.
11738
c90d28ac
AB
117392020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11740 Bernd Edlinger <bernd.edlinger@hotmail.de>
11741 Tom Tromey <tromey@adacore.com>
11742
11743 * buildsym.c (buildsym_compunit::record_line): Remove
11744 deduplication code.
11745
1aa98955
TV
117462020-04-02 Tom de Vries <tdevries@suse.de>
11747
11748 PR ada/24671
11749 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11750
d3214198
TV
117512020-04-02 Tom de Vries <tdevries@suse.de>
11752
11753 * dwarf2/read.c (dwarf2_gdb_index_functions,
11754 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11755 NULL.
11756 * psymtab.c (psym_lookup_global_symbol_language): New function.
11757 (psym_functions): Init psym_lookup_global_symbol_language with
11758 psym_lookup_global_symbol_language.
11759 * symfile-debug.c (debug_sym_quick_functions): Init
11760 lookup_global_symbol_language with NULL.
11761 * symfile.c (set_initial_language): Remove fixme comment.
11762 * symfile.h (struct quick_symbol_functions): Add
11763 lookup_global_symbol_language.
11764 * symtab.c (find_quick_global_symbol_language): New function.
11765 (find_main_name): Use find_quick_global_symbol_language.
11766
2836752f
SM
117672020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11768
11769 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11770
64dc2d4b
BE
117712020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11772
11773 * buildsym.c (record_line): Fix undefined behavior and preserve
11774 lines at eof.
11775
bbe3dc41
BE
117762020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11777
11778 * buildsym.c (record_line): Fix the resizing condition.
11779
6b4a335b
TT
117802020-04-01 Tom Tromey <tom@tromey.com>
11781
11782 * value.h (value_literal_complex): Add comment.
11783 * valops.c (value_literal_complex): Refer to value.h.
11784
3638a098
TT
117852020-04-01 Tom Tromey <tom@tromey.com>
11786
11787 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11788 (scalar_type): New rule, from typebase.
11789 (typebase): Use scalar_type. Recognize complex types.
11790 (field_name): Handle FLOAT_KEYWORD.
11791 (ident_tokens): Add _Complex and __complex__.
11792
c34e8714
TT
117932020-04-01 Tom Tromey <tom@tromey.com>
11794
11795 PR exp/25299:
11796 * valarith.c (promotion_type, complex_binop): New functions.
11797 (scalar_binop): Handle complex numbers. Use promotion_type.
11798 (value_pos, value_neg, value_complement): Handle complex numbers.
11799
fa649bb7
TT
118002020-04-01 Tom Tromey <tom@tromey.com>
11801
11802 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11803 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11804 (parse_number): Handle complex numbers.
11805
981c08ce
TT
118062020-04-01 Tom Tromey <tom@tromey.com>
11807
11808 * c-valprint.c (c_decorations): Change complex suffix to "i".
11809
4c99290d
TT
118102020-04-01 Tom Tromey <tom@tromey.com>
11811
11812 * valprint.c (generic_value_print_complex): Use accessors.
11813 * value.h (value_real_part, value_imaginary_part): Declare.
11814 * valops.c (value_real_part, value_imaginary_part): New
11815 functions.
11816 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11817
5b930b45
TT
118182020-04-01 Tom Tromey <tom@tromey.com>
11819
11820 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11821 (read_range_type): Update.
11822 * mdebugread.c (basic_type): Update.
11823 * go-lang.c (build_go_types): Use init_complex_type.
11824 * gdbtypes.h (struct main_type) <complex_type>: New member.
11825 (init_complex_type): Update.
11826 (arch_complex_type): Don't declare.
11827 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11828 Make name if none given. Use alloc_type_copy. Look for cached
11829 complex type.
11830 (arch_complex_type): Remove.
11831 (gdbtypes_post_init): Use init_complex_type.
11832 * f-lang.c (build_fortran_types): Use init_complex_type.
11833 * dwarf2/read.c (read_base_type): Update.
11834 * d-lang.c (build_d_types): Use init_complex_type.
11835 * ctfread.c (read_base_type): Update.
11836
53cccef1
TBA
118372020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11838
11839 * infrun.c (stop_all_threads): Update assertion, plus when
11840 stopping threads, take into account that we might be trying
11841 to stop an all-stop target.
11842 (stop_waiting): Call 'stop_all_threads' if there exists a
11843 non-stop target.
11844
a0714d30
TBA
118452020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11846
11847 * target.h (exists_non_stop_target): New function declaration.
11848 * target.c (exists_non_stop_target): New function.
11849
60e22c1e
HD
118502020-04-01 Hannes Domani <ssbssa@yahoo.de>
11851
11852 PR gdb/24789
11853 * eval.c (is_integral_or_integral_reference): New function.
11854 (evaluate_subexp_standard): Allow integer references in
11855 pointer arithmetic.
11856
e139a727
TBA
118572020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11858
11859 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11860 check for no ptid in the stop reply when the target is non-stop.
11861
e0802d59
TT
118622020-04-01 Tom Tromey <tromey@adacore.com>
11863
11864 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11865 "name" parameter to rvalue reference. Initialize m_name_holder.
11866 <lookup_name_info>: New overloads.
11867 <name>: Return gdb::string_view.
11868 <c_str>: New method.
11869 <make_ignore_params>: Update.
11870 <search_name_hash>: Update.
11871 <language_lookup_name>: Return const char *.
11872 <m_name>: Change type.
11873 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11874 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11875 (lookup_name_info::match_any): Update.
11876 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11877 Update.
11878 * minsyms.c (linkage_name_str): Update.
11879 * language.c (default_symbol_name_matcher): Update.
11880 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11881 Update.
11882 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11883 (ada_lookup_name_info::ada_lookup_name_info): Update.
11884 (literal_symbol_name_matcher): Update.
11885
8c072cb6
TT
118862020-04-01 Tom Tromey <tromey@adacore.com>
11887
11888 * psymtab.c (psymtab_search_name): Remove function.
11889 (psym_lookup_symbol): Create search name and lookup name here.
11890 (lookup_partial_symbol): Remove "name" parameter; add
11891 lookup_name.
11892 (psym_expand_symtabs_for_function): Update.
11893
6f29a534
TT
118942020-03-31 Joel Jones <joelkevinjones@gmail.com>
11895
11896 PR tui/25597:
11897 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11898
af62665e
TT
118992020-03-31 Tom Tromey <tromey@adacore.com>
11900
11901 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11902 memcpy.
11903
d1a89da5
NC
119042020-03-30 Nelson Chu <nelson.chu@sifive.com>
11905
11906 * features/riscv/32bit-csr.xml: Regenerated.
11907 * features/riscv/64bit-csr.xml: Regenerated.
11908
d8af9068
TT
119092020-03-30 Tom Tromey <tromey@adacore.com>
11910
11911 * ada-valprint.c (print_variant_part): Update.
11912 * ada-lang.h (ada_which_variant_applies): Update.
11913 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11914 outer_valaddr parameters; replace with "outer" value parameter.
11915 (to_fixed_variant_branch_type): Update.
11916
227c0bf4
PFC
119172020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11918
11919 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11920 <list>. Remove inclusion of observable.h.
11921 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11922 (struct arch_lwp_info): New struct.
11923 (class ppc_linux_dreg_interface): New class.
11924 (struct ppc_linux_process_info): New struct.
11925 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11926 <low_new_clone, low_forget_process, low_prepare_to_resume>
11927 <copy_thread_dreg_state, mark_thread_stale>
11928 <mark_debug_registers_changed, register_hw_breakpoint>
11929 <clear_hw_breakpoint, register_wp, clear_wp>
11930 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11931 <num_memory_accesses, get_trigger_type>
11932 <create_watchpoint_request, hwdebug_point_cmp>
11933 <init_arch_lwp_info, get_arch_lwp_info>
11934 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11935 methods.
11936 <struct ptid_hash>: New inner struct.
11937 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11938 members.
11939 (saved_dabr_value, hwdebug_info, max_slots_number)
11940 (struct hw_break_tuple, struct thread_points, ppc_threads)
11941 (have_ptrace_hwdebug_interface)
11942 (hwdebug_find_thread_points_by_tid)
11943 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11944 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11945 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11946 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11947 use m_dreg_interface.
11948 (hwdebug_point_cmp): Change to...
11949 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11950 reference arguments instead of pointers.
11951 (ppc_linux_nat_target::ranged_break_num_registers): Use
11952 m_dreg_interface.
11953 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11954 m_dreg_interface. Call register_hw_breakpoint.
11955 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11956 m_dreg_interface. Call clear_hw_breakpoint.
11957 (get_trigger_type): Change to...
11958 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11959 comment.
11960 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11961 use m_dreg_interface. Call register_hw_breakpoint.
11962 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11963 use m_dreg_interface. Call clear_hw_breakpoint.
11964 (can_use_watchpoint_cond_accel): Change to...
11965 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11966 method. Update comment, use m_dreg_interface and
11967 m_process_info.
11968 (calculate_dvc): Change to...
11969 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11970 m_dreg_interface.
11971 (num_memory_accesses): Change to...
11972 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11973 (check_condition): Change to...
11974 (ppc_linux_nat_target::check_condition): ...this method.
11975 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11976 comment, use m_dreg_interface.
11977 (create_watchpoint_request): Change to...
11978 (ppc_linux_nat_target::create_watchpoint_request): ...this
11979 method. Use m_dreg_interface.
11980 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11981 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11982 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11983 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11984 (ppc_linux_nat_target::low_forget_process)
11985 (ppc_linux_nat_target::low_new_fork)
11986 (ppc_linux_nat_target::low_new_clone)
11987 (ppc_linux_nat_target::low_delete_thread)
11988 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11989 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11990 only call mark_thread_stale.
11991 (ppc_linux_thread_exit): Remove.
11992 (ppc_linux_nat_target::stopped_data_address): Change to...
11993 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11994 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11995 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11996 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11997 comment. Call low_stopped_data_address.
11998 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11999 m_dreg_interface.
12000 (ppc_linux_nat_target::masked_watch_num_registers): Use
12001 m_dreg_interface.
12002 (ppc_linux_nat_target::copy_thread_dreg_state)
12003 (ppc_linux_nat_target::mark_thread_stale)
12004 (ppc_linux_nat_target::mark_debug_registers_changed)
12005 (ppc_linux_nat_target::register_hw_breakpoint)
12006 (ppc_linux_nat_target::clear_hw_breakpoint)
12007 (ppc_linux_nat_target::register_wp)
12008 (ppc_linux_nat_target::clear_wp)
12009 (ppc_linux_nat_target::init_arch_lwp_info)
12010 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12011 (_initialize_ppc_linux_nat): Remove observer callback.
12012
4db10d8f
PFC
120132020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12014
12015 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12016 (ppc_linux_nat_target::auxv_parse)
12017 (ppc_linux_nat_target::read_description)
12018 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12019 Move up.
12020
1310c1b0
PFC
120212020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12022
12023 * linux-nat.h (low_new_clone): New method.
12024 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12025
69b037c3
SM
120262020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12027
12028 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12029 (dbx_expand_psymtab): ... this.
12030 (start_psymtab): Update.
12031 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12032 (mdebug_expand_psymtab): ... this.
12033 (parse_partial_symbols): Update.
12034 (new_psymtab): Update.
12035 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12036 (xcoff_expand_psymtab): ... this.
12037 (xcoff_start_psymtab): Update.
12038
48993951
SM
120392020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12040
12041 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12042 <expand_dependencies>: ... this.
12043 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12044 (partial_symtab::expand_dependencies): ... this.
12045 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12046 Update.
12047 (dwarf2_psymtab::expand_psymtab): Update.
12048 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12049 * mdebugread.c (psymtab_to_symtab_1): Update.
12050 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12051
3ad83046
SM
120522020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12053
12054 * psympriv.h (discard_psymtab): Remove.
12055 * dbxread.c (dbx_end_psymtab): Update.
12056 * xcoffread.c (xcoff_end_psymtab): Update.
12057
4d1b9ab6
TT
120582020-03-28 Tom Tromey <tom@tromey.com>
12059
12060 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12061 comment.
12062
f1749218
TT
120632020-03-28 Tom Tromey <tom@tromey.com>
12064
12065 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12066
ebea7626
HD
120672020-03-27 Hannes Domani <ssbssa@yahoo.de>
12068
12069 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12070
a879b4d5
JB
120712020-03-26 John Baldwin <jhb@FreeBSD.org>
12072
12073 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12074
0826b30a
TT
120752020-03-26 Tom Tromey <tom@tromey.com>
12076
12077 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12078 (mark_common_block_symbol_computed, read_tag_string_type)
12079 (attr_to_dynamic_prop, read_subrange_type): Update.
12080 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12081 to be methods on struct attribute.
12082 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12083 (read_call_site_scope, partial_die_info::read)
12084 (partial_die_info::read, lookup_die_type, follow_die_ref):
12085 Update.
12086 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12087 from dwarf2_get_ref_die_offset.
12088 (attribute::constant_value): New method, from
12089 dwarf2_get_attr_constant_value.
12090 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12091 Declare method.
12092 <constant_value>: New method.
12093
2b2558bf
TT
120942020-03-26 Tom Tromey <tom@tromey.com>
12095
12096 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12097 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12098 (dwarf_type_encoding_name): Move to stringify.c.
12099 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12100 * dwarf2/stringify.c: New file.
12101 * dwarf2/stringify.h: New file.
12102
eeb64781
TT
121032020-03-26 Tom Tromey <tom@tromey.com>
12104
12105 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12106 Rewrite.
12107
a39fdb41
TT
121082020-03-26 Tom Tromey <tom@tromey.com>
12109
12110 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12111 methods.
12112 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12113 (lookup_ranges_base): Likewise.
12114 (read_cutu_die_from_dwo, read_full_die_1): Update.
12115
436c571c
TT
121162020-03-26 Tom Tromey <tom@tromey.com>
12117
12118 * dwarf2/read.c (read_import_statement, read_file_scope)
12119 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12120 (read_lexical_block_scope, read_call_site_scope)
12121 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12122 (handle_struct_member_die, process_structure_scope)
12123 (update_enumeration_type_from_children)
12124 (process_enumeration_scope, read_array_type, read_common_block)
12125 (read_namespace, read_module, read_subroutine_type): Update.
12126 (sibling_die): Remove.
12127
052c8bb8
TT
121282020-03-26 Tom Tromey <tom@tromey.com>
12129
12130 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12131 (build_type_psymtabs_reader, read_structure_type)
12132 (read_enumeration_type, read_full_die_1): Update.
12133 (dwarf2_attr_no_follow): Move to die.h.
12134 * dwarf2/die.h (struct die_info) <attr>: New method.
12135
2b24b6e4
TT
121362020-03-26 Tom Tromey <tom@tromey.com>
12137
12138 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12139 <base_address>: Now an optional.
12140 (dwarf2_find_base_address, dwarf2_rnglists_process)
12141 (dwarf2_ranges_process, fill_in_loclist_baton)
12142 (dwarf2_symbol_mark_computed): Update.
12143
c2d50fd0
TT
121442020-03-26 Tom Tromey <tom@tromey.com>
12145
12146 * dwarf2/read.c (struct die_info): Move to die.h.
12147 * dwarf2/die.h: New file.
12148
0df7ad3a
TT
121492020-03-26 Tom Tromey <tom@tromey.com>
12150
12151 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12152 * dwarf2/read.c
12153 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12154 Move to line-header.c.
12155 (read_checked_initial_length_and_offset, read_formatted_entries):
12156 Likewise.
12157 (dwarf_decode_line_header): Split into two.
12158 * dwarf2/line-header.c
12159 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12160 Move from read.c.
12161 (read_checked_initial_length_and_offset, read_formatted_entries):
12162 Likewise.
12163 (dwarf_decode_line_header): New function, split from read.c.
12164
86c0bb4c
TT
121652020-03-26 Tom Tromey <tom@tromey.com>
12166
12167 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12168 Declare method.
12169 * dwarf2/read.c (read_attribute_value): Update.
12170 (dwarf2_per_objfile::read_line_string): Rename from
12171 read_indirect_line_string.
12172 (read_formatted_entries): Update.
12173
2ef46c2f
TT
121742020-03-26 Tom Tromey <tom@tromey.com>
12175
12176 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12177 variable.
12178
4f9c1eda
TT
121792020-03-26 Tom Tromey <tom@tromey.com>
12180
12181 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12182 const.
12183 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12184 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12185 parameter const.
12186
5a0e026f
TT
121872020-03-26 Tom Tromey <tom@tromey.com>
12188
12189 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12190 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12191 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12192 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12193
8844c11b
TT
121942020-03-26 Tom Tromey <tom@tromey.com>
12195
12196 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12197 file_names_size, file_full_name, file_file_name>: Use const.
12198 <file_name_at, file_names>: Add const overload.
12199 * dwarf2/line-header.c (line_header::file_file_name)
12200 (line_header::file_full_name): Update.
12201
c90ec28a
TT
122022020-03-26 Tom Tromey <tom@tromey.com>
12203
12204 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12205 (macro_start_file, consume_improper_spaces)
12206 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12207 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12208 (dwarf_decode_macros): Move to macro.c.
12209 * dwarf2/macro.c: New file.
12210 * dwarf2/macro.h: New file.
12211 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12212
4f44ae6c
TT
122132020-03-26 Tom Tromey <tom@tromey.com>
12214
12215 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12216 method.
12217 * dwarf2/section.c: New method. From
12218 read_indirect_string_at_offset_from.
12219 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12220 (read_indirect_string_at_offset_from): Move to section.c.
12221 (read_indirect_string_at_offset): Rewrite.
12222 (read_indirect_line_string_at_offset): Remove.
12223 (read_indirect_string, read_indirect_line_string)
12224 (dwarf_decode_macro_bytes): Update.
12225
a0194fa8
TT
122262020-03-26 Tom Tromey <tom@tromey.com>
12227
12228 * dwarf2/section.h (struct dwarf2_section_info)
12229 <overload_complaint>: Declare.
12230 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12231 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12232 Rename from dwarf2_section_buffer_overflow_complaint.
12233 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12234 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12235
3d27bbdb
TT
122362020-03-26 Tom Tromey <tom@tromey.com>
12237
12238 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12239 Declare.
12240 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12241 Move from read.c.
12242 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12243 to section.c.
12244
9eac9650
TT
122452020-03-26 Tom Tromey <tom@tromey.com>
12246
12247 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12248
bf80d710
TT
122492020-03-26 Tom Tromey <tom@tromey.com>
12250
12251 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12252 "builder".
12253 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12254 parameter.
12255 (dwarf_decode_macros): Update.
12256
0314b390
TT
122572020-03-26 Tom Tromey <tom@tromey.com>
12258
12259 * dwarf2/read.c (read_attribute_value): Update.
12260 (read_indirect_string_from_dwz): Move to dwz.c; change into
12261 method.
12262 (dwarf_decode_macro_bytes): Update.
12263 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12264 * dwarf2/dwz.c: New file.
12265 * Makefile.in (COMMON_SFILES): Add dwz.c.
12266
9fda78b6
TT
122672020-03-26 Tom Tromey <tom@tromey.com>
12268
12269 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12270 * dwarf2/read.c: Add include.
12271 * dwarf2/index-write.c: Add include.
12272 * dwarf2/index-cache.c: Add include.
12273 * dwarf2/dwz.h: New file.
12274
33aa3c10
TT
122752020-03-25 Tom Tromey <tom@tromey.com>
12276
12277 * compile/compile-object-load.c (get_out_value_type): Mention
12278 correct symbol name in error message.
12279
d503b685
HD
122802020-03-25 Hannes Domani <ssbssa@yahoo.de>
12281
12282 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12283
7b1eff95
TV
122842020-03-25 Tom de Vries <tdevries@suse.de>
12285
12286 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12287 * symmisc.c (dump_symtab_1): Print user and includes fields.
12288 (maintenance_info_symtabs): Same.
12289
dd895392
AB
122902020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12291
12292 PR gdb/25534
12293 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12294 (riscv_regcache_cooked_write): New function.
12295 (riscv_push_dummy_call): Use new function.
12296 (riscv_return_value): Likewise.
12297
5ab2fbf1
SM
122982020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12299
12300 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12301 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12302 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12303 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12304 * infrun.c (follow_fork): Likewise.
12305 (follow_fork_inferior): Likewise.
12306 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12307 * linux-nat.h (class linux_nat_target): Likewise.
12308 * remote.c (class remote_target) <follow_fork>: Likewise.
12309 (remote_target::follow_fork): Likewise.
12310 * target-delegates.c: Re-generate.
12311 * target.c (default_follow_fork): Likewise.
12312 (target_follow_fork): Likewise.
12313 * target.h (struct target_ops) <follow_fork>: Likewise.
12314 (target_follow_fork): Likewise.
12315
a64fafb5
TV
123162020-03-24 Tom de Vries <tdevries@suse.de>
12317
12318 * psymtab.c (maintenance_info_psymtabs): Print user field.
12319
fe26d3a3
TT
123202020-03-20 Tom Tromey <tromey@adacore.com>
12321
12322 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12323 const.
12324 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12325 const.
12326
c884cc46
SM
123272020-03-20 Simon Marchi <simon.marchi@efficios.com>
12328
12329 * ptrace.m4: Don't check for ptrace declaration.
12330 * config.in: Re-generate.
12331 * configure: Re-generate.
12332 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12333 not defined.
12334
1ff700c2
KR
123352020-03-20 Kamil Rytarowski <n54@gmx.com>
12336
12337 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12338 `PTRACE_TYPE_RET'.
12339 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12340 * sparc-nat.c (gdb_ptrace): Likewise.
12341 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12342
f7d4f0b1
TT
123432020-03-20 Tom Tromey <tromey@adacore.com>
12344
12345 * c-exp.y (lex_one_token): Fix assert.
12346
f67210ff
TT
123472020-03-20 Tom Tromey <tromey@adacore.com>
12348
12349 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12350 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12351 strncpy call.
12352
1773be9e
TT
123532020-03-20 Tom Tromey <tromey@adacore.com>
12354
12355 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12356
70304be9
TT
123572020-03-20 Tom Tromey <tromey@adacore.com>
12358
12359 * ada-valprint.c (print_variant_part): Remove parameters; switch
12360 to value-based API.
12361 (print_field_values): Likewise.
12362 (ada_val_print_struct_union): Likewise.
12363 (ada_value_print_1): Update.
12364
9faa006d
KR
123652020-03-20 Kamil Rytarowski <n54@gmx.com>
12366
12367 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12368 nbsd_nat_target instead of inf_ptrace_target.
12369 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12370 nbsd_nat_target.
12371
4a90f062
KR
123722020-03-20 Kamil Rytarowski <n54@gmx.com>
12373
12374 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12375 it to the ptrace call.
12376 * (store_registers): Likewise.
12377
123782020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12379
12380 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12381 it to the ptrace call.
12382 * (store_registers): Likewise.
12383
2d07da27
LM
123842020-03-19 Luis Machado <luis.machado@linaro.org>
12385
12386 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12387 valid, fetch vg value from ptrace.
12388
f09db380
KR
123892020-03-19 Kamil Rytarowski <n54@gmx.com>
12390 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12391 * inf-ptrace.c: Likewise.
12392 * (gdb_ptrace): Add.
12393 * (inf_ptrace_target::resume): Update.
12394 * (inf_ptrace_target::xfer_partial): Likewise.
12395 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12396 * (inf_ptrace_peek_poke): Update.
12397
fcc7376e
KR
123982020-03-19 Kamil Rytarowski <n54@gmx.com>
12399
12400 * x86-bsd-nat.c (gdb_ptrace): New.
12401 * (x86bsd_dr_set): Add new argument `ptid'.
12402 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12403 x86bsd_dr_set_addr): Update.
12404
cada5fc9
AB
124052020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12406
12407 * remote.c (remote_target::process_stop_reply): Handle events for
12408 all threads differently.
12409
19a2740f
AB
124102020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12411
12412 * completer.c (completion_tracker::remove_completion): Define new
12413 function.
12414 * completer.h (completion_tracker::remove_completion): Declare new
12415 function.
12416 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12417 when adding a C++ function symbol.
12418
724fd9ba
AB
124192020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12420
12421 * completer.c (completion_tracker::completion_hash_entry): Define
12422 new class.
12423 (advance_to_filename_complete_word_point): Call
12424 recompute_lowest_common_denominator.
12425 (completion_tracker::completion_tracker): Call discard_completions
12426 to setup the hash table.
12427 (completion_tracker::discard_completions): Allow for being called
12428 from the constructor, pass new equal function, and element deleter
12429 when constructing the hash table. Initialise new class member
12430 variables.
12431 (completion_tracker::maybe_add_completion): Remove use of
12432 m_entries_vec, and store more information into m_entries_hash.
12433 (completion_tracker::recompute_lcd_visitor): New function, most
12434 content taken from...
12435 (completion_tracker::recompute_lowest_common_denominator):
12436 ...here, this now just visits each item in the hash calling the
12437 above visitor.
12438 (completion_tracker::build_completion_result): Remove use of
12439 m_entries_vec, call recompute_lowest_common_denominator.
12440 * completer.h (completion_tracker::have_completions): Remove use
12441 of m_entries_vec.
12442 (completion_tracker::completion_hash_entry): Declare new class.
12443 (completion_tracker::recompute_lowest_common_denominator): Change
12444 function signature.
12445 (completion_tracker::recompute_lcd_visitor): Declare new function.
12446 (completion_tracker::m_entries_vec): Delete.
12447 (completion_tracker::m_entries_hash): Initialize to NULL.
12448 (completion_tracker::m_lowest_common_denominator_valid): New
12449 member variable.
12450 (completion_tracker::m_lowest_common_denominator_max_length): New
12451 member variable.
12452
5a82b8a1
KR
124532020-03-17 Kamil Rytarowski <n54@gmx.com>
12454
12455 * regformats/regdef.h: Put reg in gdb namespace.
12456
fb516a69
KR
124572020-03-17 Kamil Rytarowski <n54@gmx.com>
12458
12459 * i386-bsd-nat.c (gdb_ptrace): New.
12460 * (i386bsd_fetch_inferior_registers,
12461 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12462 * (i386bsd_fetch_inferior_registers,
12463 i386bsd_store_inferior_registers) Use gdb_ptrace.
12464
1c0aa1fb
KR
124652020-03-17 Kamil Rytarowski <n54@gmx.com>
12466
12467 * amd64-bsd-nat.c (gdb_ptrace): New.
12468 * (amd64bsd_fetch_inferior_registers,
12469 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12470 * (amd64bsd_fetch_inferior_registers,
12471 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12472
5ccd2fb7
KR
124732020-03-17 Kamil Rytarowski <n54@gmx.com>
12474
12475 * user-regs.c (user_reg::read): Rename to...
12476 (user_reg::xread): ...this.
12477 * (append_user_reg): Rename argument `read' to `xread'.
12478 * (user_reg_add_builtin): Likewise.
12479 * (user_reg_add): Likewise.
12480 * (value_of_user_reg): Likewise.
12481
2108a63a
KR
124822020-03-17 Kamil Rytarowski <n54@gmx.com>
12483
12484 * sparc-nat.c (gdb_ptrace): New.
12485 * sparc-nat.c (sparc_fetch_inferior_registers)
12486 (sparc_store_inferior_registers) Remove obsolete comment.
12487 * sparc-nat.c (sparc_fetch_inferior_registers)
12488 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12489 * sparc-nat.c (sparc_fetch_inferior_registers)
12490 (sparc_store_inferior_registers) Use gdb_ptrace.
12491
a225c9a8
KR
124922020-03-17 Kamil Rytarowski <n54@gmx.com>
12493
12494 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12495 it to the ptrace call.
12496 * sh-nbsd-nat.c (store_registers): Likewise.
12497
98097623
KR
124982020-03-17 Kamil Rytarowski <n54@gmx.com>
12499
12500 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12501 nbsd_nat_target instead of inf_ptrace_target.
12502 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12503 nbsd_nat_target.
12504
9e38d619
KR
125052020-03-17 Kamil Rytarowski <n54@gmx.com>
12506
12507 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12508
a2ecbe9f
KR
125092020-03-17 Kamil Rytarowski <n54@gmx.com>
12510
12511 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12512 <sys/sysctl.h>.
12513 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12514
58990295
TV
125152020-03-17 Tom de Vries <tdevries@suse.de>
12516
12517 PR gdb/23710
12518 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12519 fields.
12520 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12521 fields.
12522 (process_imported_unit_die): Skip import of c++ CUs.
12523
771dd3a8
TT
125242020-03-16 Tom Tromey <tom@tromey.com>
12525
12526 * p-valprint.c (pascal_object_print_value): Initialize
12527 base_value.
12528
817a7585
AK
125292020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12530 Shahab Vahedi <shahab@synopsys.com>
12531
12532 * Makefile.in: Add arch/arc.o
12533 * configure.tgt: Likewise.
12534 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12535 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12536 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12537 * arc-tdep.h (arc_read_description): Add proto type.
12538 * arch/arc.c: New file.
12539 * arch/arc.h: Likewise.
12540 * features/Makefile: Replace old target descriptions with new.
12541 * features/arc-arcompact.c: Remove.
12542 * features/arc-arcompact.xml: Likewise.
12543 * features/arc-v2.c: Likewise
12544 * features/arc-v2.xml: Likewise
12545 * features/arc/aux-arcompact.xml: New file.
12546 * features/arc/aux-v2.xml: Likewise.
12547 * features/arc/core-arcompact.xml: Likewise.
12548 * features/arc/core-v2.xml: Likewise.
12549 * features/arc/aux-arcompact.c: Generate.
12550 * features/arc/aux-v2.c: Likewise.
12551 * features/arc/core-arcompact.c: Likewise.
12552 * features/arc/core-v2.c: Likewise.
12553 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12554
67430cd0
TT
125552020-03-16 Tom Tromey <tromey@adacore.com>
12556
12557 PR gdb/25663:
12558 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12559 putting value into bcache.
12560
30efb6c7
SM
125612020-03-16 Simon Marchi <simon.marchi@efficios.com>
12562
12563 PR gdb/21500
12564 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12565 to...
12566 (amd64_windows_init_abi_common): ... this. Don't set size of
12567 long type.
12568 (amd64_windows_init_abi): New function.
12569 (amd64_cygwin_init_abi): New function.
12570 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12571 the Cygwin OS ABI.
12572 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12573 comment.
12574
8db52437
SM
125752020-03-16 Simon Marchi <simon.marchi@efficios.com>
12576
12577 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12578 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12579 (pe_import_directory_entry): New struct type.
12580 (is_linked_with_cygwin_dll): New function.
12581 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12582 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12583 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12584
5982a56a
SM
125852020-03-16 Simon Marchi <simon.marchi@efficios.com>
12586
12587 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12588 i386_cygwin_core_osabi_sniffer.
12589
7a1998df
SM
125902020-03-16 Simon Marchi <simon.marchi@efficios.com>
12591
12592 * i386-cygwin-tdep.c: Rename to...
12593 * i386-windows-tdep.c: ... this.
12594 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12595 i386-windows-tdep.c.
12596 * configure.tgt: Likewise.
12597
053205cc
SM
125982020-03-16 Simon Marchi <simon.marchi@efficios.com>
12599
12600 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12601 * osabi.c (gdb_osabi_names): Add "Windows".
12602 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12603 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12604 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12605 i386_cygwin_osabi_sniffer.
12606 (_initialize_i386_cygwin_tdep): Register OS ABI
12607 GDB_OSABI_WINDOWS for i386.
12608 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12609 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12610 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12611 for x86-64.
12612 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12613 when the target matches '*-*-mingw*'.
12614
fe4b2ee6
SM
126152020-03-16 Simon Marchi <simon.marchi@efficios.com>
12616
12617 * defs.h (enum gdb_osabi): Move to...
12618 * osabi.h (enum gdb_osabi): ... here.
12619 * gdbarch.sh: Include osabi.h in gdbarch.h.
12620 * gdbarch.h: Re-generate.
12621
cb9b645d
SM
126222020-03-16 Simon Marchi <simon.marchi@efficios.com>
12623
12624 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12625 function.
12626 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12627
3293bbaf
TT
126282020-03-14 Tom Tromey <tom@tromey.com>
12629
12630 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12631 for C++.
12632 (c_type_print_modifier): Likewise. Add "language" parameter.
12633 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12634 (c_type_print_base_1): Update.
12635 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12636 constants.
12637 * type-stack.c (type_stack::insert): Handle tp_atomic and
12638 tp_restrict.
12639 (type_stack::follow_type_instance_flags): Likewise.
12640 (type_stack::follow_types): Likewise. Merge type-following code.
12641 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12642 (space_identifier, cv_with_space_id)
12643 (const_or_volatile_or_space_identifier_noopt)
12644 (const_or_volatile_or_space_identifier): Remove.
12645 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12646 rules.
12647 (ptr_operator, typebase): Update.
12648 (enum token_flag) <FLAG_C>: New constant.
12649 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12650 "_Atomic".
12651 (lex_one_token): Handle FLAG_C.
12652
154151a6
KR
126532020-03-14 Kamil Rytarowski <n54@gmx.com>
12654
12655 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12656 it to the ptrace call.
12657 * m68k-bsd-nat.c (store_registers): Likewise.
12658
bc107784
KR
126592020-03-14 Kamil Rytarowski <n54@gmx.com>
12660
12661 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12662 gdb_byte *.
12663 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12664 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12665 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12666
01a80117
KR
126672020-03-14 Kamil Rytarowski <n54@gmx.com>
12668
12669 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12670 nbsd_nat_target instead of inf_ptrace_target.
12671 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12672 nbsd_nat_target.
12673
f90280ca
KR
126742020-03-14 Kamil Rytarowski <n54@gmx.com>
12675
12676 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12677 register_t.
12678
6def66f1
KR
126792020-03-14 Kamil Rytarowski <n54@gmx.com>
12680
12681 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12682 it to the ptrace call.
12683 * alpha-bsd-nat.c (store_registers): Likewise.
12684
66eaca97
KR
126852020-03-14 Kamil Rytarowski <n54@gmx.com>
12686
12687 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12688 includes.
12689 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12690 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12691 fill_fpregset): Likewise.
12692
4fed520b
KR
126932020-03-14 Kamil Rytarowski <n54@gmx.com>
12694
12695 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12696 nbsd_nat_target instead of inf_ptrace_target.
12697 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12698 nbsd_nat_target.
12699
2190cf06
KR
127002020-03-14 Kamil Rytarowski <n54@gmx.com>
12701
12702 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12703 register_t.
12704
75c56d3d
KR
127052020-03-14 Kamil Rytarowski <n54@gmx.com>
12706
12707 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12708 it to the ptrace call.
12709 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12710 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12711 * arm-nbsd-nat.c (store_register): Likewise.
12712 * arm-nbsd-nat.c (store_regs): Likewise.
12713 * arm-nbsd-nat.c (store_fp_register): Likewise.
12714 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12715
6018d381
KR
127162020-03-14 Kamil Rytarowski <n54@gmx.com>
12717
12718 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12719 nbsd_nat_target instead of inf_ptrace_target.
12720 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12721 nbsd_nat_target.
12722
013f99f0
KR
127232020-03-14 Kamil Rytarowski <n54@gmx.com>
12724
12725 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12726 it to the ptrace call.
12727 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12728
12753073
KR
127292020-03-14 Kamil Rytarowski <n54@gmx.com>
12730
6227b330
KR
12731 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12732 it to the ptrace call.
12733 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12734
127352020-03-14 Kamil Rytarowski <n54@gmx.com>
12736
12737 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12738 gdb_byte *.
12753073
KR
12739 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12740
d5be5fa4
KR
127412020-03-14 Kamil Rytarowski <n54@gmx.com>
12742
12743 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12744 instead of inf_ptrace_target.
12745 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12746 nbsd_nat_target.
12747
8110f842
KR
127482020-03-14 Kamil Rytarowski <n54@gmx.com>
12749
12750 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12751 register_t.
12752
52feded7
KR
127532020-03-14 Kamil Rytarowski <n54@gmx.com>
12754
12755 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12756 register_t.
12757
25567eee
KR
127582020-03-14 Kamil Rytarowski <n54@gmx.com>
12759
12760 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12761 register_t.
12762
426a9c18
TT
127632020-03-13 Tom Tromey <tom@tromey.com>
12764
12765 * value.h (val_print): Don't declare.
12766 * valprint.h (val_print_array_elements)
12767 (val_print_scalar_formatted, generic_val_print): Don't declare.
12768 * valprint.c (generic_val_print_array): Take a struct value.
12769 (generic_val_print_ptr, generic_val_print_memberptr)
12770 (generic_val_print_bool, generic_val_print_int)
12771 (generic_val_print_char, generic_val_print_complex)
12772 (generic_val_print): Remove.
12773 (generic_value_print): Update.
12774 (do_val_print): Remove unused parameters. Don't call
12775 la_val_print.
12776 (val_print): Remove.
12777 (common_val_print): Update. Don't call value_check_printable.
12778 (val_print_scalar_formatted, val_print_array_elements): Remove.
12779 * rust-lang.c (rust_val_print): Remove.
12780 (rust_language_defn): Update.
12781 * p-valprint.c (pascal_val_print): Remove.
12782 (pascal_value_print_inner): Update.
12783 (pascal_object_print_val_fields, pascal_object_print_val):
12784 Remove.
12785 (pascal_object_print_static_field): Update.
12786 * p-lang.h (pascal_val_print): Don't declare.
12787 * p-lang.c (pascal_language_defn): Update.
12788 * opencl-lang.c (opencl_language_defn): Update.
12789 * objc-lang.c (objc_language_defn): Update.
12790 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12791 * m2-lang.h (m2_val_print): Don't declare.
12792 * m2-lang.c (m2_language_defn): Update.
12793 * language.h (struct language_defn) <la_val_print>: Remove.
12794 * language.c (unk_lang_value_print_inner): Rename. Change
12795 argument types.
12796 (unknown_language_defn, auto_language_defn): Update.
12797 * go-valprint.c (go_val_print): Remove.
12798 * go-lang.h (go_val_print): Don't declare.
12799 * go-lang.c (go_language_defn): Update.
12800 * f-valprint.c (f_val_print): Remove.
12801 * f-lang.h (f_value_print): Don't declare.
12802 * f-lang.c (f_language_defn): Update.
12803 * d-valprint.c (d_val_print): Remove.
12804 * d-lang.h (d_value_print): Don't declare.
12805 * d-lang.c (d_language_defn): Update.
12806 * cp-valprint.c (cp_print_value_fields)
12807 (cp_print_value_fields_rtti, cp_print_value): Remove.
12808 (cp_print_static_field): Update.
12809 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12810 (c_val_print_struct, c_val_print_union, c_val_print_int)
12811 (c_val_print_memberptr, c_val_print): Remove.
12812 * c-lang.h (c_val_print_array, cp_print_value_fields)
12813 (cp_print_value_fields_rtti): Don't declare.
12814 * c-lang.c (c_language_defn, cplus_language_defn)
12815 (asm_language_defn, minimal_language_defn): Update.
12816 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12817 (ada_val_print_enum): Take a struct value.
12818 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12819 (ada_val_print): Remove.
12820 (ada_value_print_1): Update.
12821 (printable_val_type): Remove.
12822 * ada-lang.h (ada_val_print): Don't declare.
12823 * ada-lang.c (ada_language_defn): Update.
12824
42331a1e
TT
128252020-03-13 Tom Tromey <tom@tromey.com>
12826
12827 * valprint.c (do_val_print): Update.
12828 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12829 a struct value.
12830 (value_to_value_object_no_release): Declare.
12831 * python/py-value.c (value_to_value_object_no_release): New
12832 function.
12833 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12834 struct value.
12835 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12836 function.
12837 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12838 a struct value.
12839 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12840 Declare.
12841 (gdbscm_apply_val_pretty_printer): Take a struct value.
12842 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12843 value.
12844 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12845 value.
12846 * extension-priv.h (struct extension_language_ops)
12847 <apply_val_pretty_printer>: Take a struct value.
12848 * cp-valprint.c (cp_print_value): Create a struct value.
12849 (cp_print_value): Update.
12850
3a916a97
TT
128512020-03-13 Tom Tromey <tom@tromey.com>
12852
12853 * ada-valprint.c (print_field_values): Call common_val_print.
12854
b59eac37
TT
128552020-03-13 Tom Tromey <tom@tromey.com>
12856
12857 * ada-valprint.c (val_print_packed_array_elements): Remove
12858 bitoffset and val parameters. Call common_val_print.
12859 (ada_val_print_string): Remove offset, address, and original_value
12860 parameters.
12861 (ada_val_print_array): Update.
12862 (ada_value_print_array): New function.
12863 (ada_value_print_1): Call it.
12864
03371129
TT
128652020-03-13 Tom Tromey <tom@tromey.com>
12866
12867 * ada-valprint.c (ada_value_print): Use common_val_print.
12868
2e088f8b
TT
128692020-03-13 Tom Tromey <tom@tromey.com>
12870
12871 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12872
39ef85a8
TT
128732020-03-13 Tom Tromey <tom@tromey.com>
12874
12875 * ada-valprint.c (ada_value_print_num): New function.
12876 (ada_value_print_1): Use it.
12877
b9fa6e07
TT
128782020-03-13 Tom Tromey <tom@tromey.com>
12879
12880 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12881
416595d6
TT
128822020-03-13 Tom Tromey <tom@tromey.com>
12883
12884 * ada-valprint.c (ada_value_print_ptr): New function.
12885 (ada_value_print_1): Use it.
12886
5b5e15ec
TT
128872020-03-13 Tom Tromey <tom@tromey.com>
12888
12889 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12890 call common_val_print.
12891 (ada_val_print_1): Update.
12892 (ada_value_print_1): New function.
12893 (ada_value_print_inner): Rewrite.
12894
fbf54e75
TT
128952020-03-13 Tom Tromey <tom@tromey.com>
12896
12897 * cp-valprint.c (cp_print_value_fields): Update.
12898 (cp_print_value): New function.
12899
64b653ca
TT
129002020-03-13 Tom Tromey <tom@tromey.com>
12901
12902 * m2-valprint.c (m2_value_print_inner): Use
12903 cp_print_value_fields.
12904 * cp-valprint.c (cp_print_value_fields): New function.
12905 * c-valprint.c (c_value_print_struct): New function.
12906 (c_value_print_inner): Use c_value_print_struct.
12907 * c-lang.h (cp_print_value_fields): Declare.
12908
6999f067
TT
129092020-03-13 Tom Tromey <tom@tromey.com>
12910
12911 * c-valprint.c (c_value_print_array): New function.
12912 (c_value_print_inner): Use it.
12913
ce80b8bd
TT
129142020-03-13 Tom Tromey <tom@tromey.com>
12915
12916 * c-valprint.c (c_value_print_memberptr): New function.
12917 (c_value_print_inner): Use it.
12918
2faac269
TT
129192020-03-13 Tom Tromey <tom@tromey.com>
12920
12921 * c-valprint.c (c_value_print_int): New function.
12922 (c_value_print_inner): Use it.
12923
da3e2c29
TT
129242020-03-13 Tom Tromey <tom@tromey.com>
12925
12926 * c-valprint.c (c_value_print_ptr): New function.
12927 (c_value_print_inner): Use it.
12928
50836231
TT
129292020-03-13 Tom Tromey <tom@tromey.com>
12930
12931 * c-valprint.c (c_value_print_inner): Rewrite.
12932
4f412b6e
TT
129332020-03-13 Tom Tromey <tom@tromey.com>
12934
12935 * valprint.c (generic_value_print_complex): New function.
12936 (generic_value_print): Use it.
12937
f5354008
TT
129382020-03-13 Tom Tromey <tom@tromey.com>
12939
12940 * valprint.c (generic_val_print_float): Don't call
12941 val_print_scalar_formatted.
12942 (generic_val_print, generic_value_print): Update.
12943
3eec3b05
TT
129442020-03-13 Tom Tromey <tom@tromey.com>
12945
12946 * valprint.c (generic_value_print_char): New function
12947 (generic_value_print): Use it.
12948
fdddfccb
TT
129492020-03-13 Tom Tromey <tom@tromey.com>
12950
12951 * valprint.c (generic_value_print_int): New function.
12952 (generic_value_print): Use it.
12953
6dde7521
TT
129542020-03-13 Tom Tromey <tom@tromey.com>
12955
12956 * valprint.c (generic_value_print_bool): New function.
12957 (generic_value_print): Use it.
12958
4112d2e6
TT
129592020-03-13 Tom Tromey <tom@tromey.com>
12960
12961 * valprint.c (generic_val_print_func): Simplify.
12962 (generic_val_print, generic_value_print): Update.
12963
65786af6
TT
129642020-03-13 Tom Tromey <tom@tromey.com>
12965
12966 * valprint.c (generic_val_print_flags): Remove.
12967 (generic_val_print, generic_value_print): Update.
12968 (val_print_type_code_flags): Add original_value parameter.
12969
40f3ce18
TT
129702020-03-13 Tom Tromey <tom@tromey.com>
12971
12972 * valprint.c (generic_val_print): Update.
12973 (generic_value_print): Update.
12974 * valprint.c (generic_val_print_enum): Don't call
12975 val_print_scalar_formatted.
12976
2a5b130b
TT
129772020-03-13 Tom Tromey <tom@tromey.com>
12978
12979 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12980 * valprint.c (generic_value_print_ptr): New function.
12981
abc66ce9
TT
129822020-03-13 Tom Tromey <tom@tromey.com>
12983
12984 * valprint.c (generic_value_print): Rewrite.
12985
07a32858
TT
129862020-03-13 Tom Tromey <tom@tromey.com>
12987
12988 * p-valprint.c (pascal_object_print_value_fields)
12989 (pascal_object_print_value): New functions.
12990
64d64d3a
TT
129912020-03-13 Tom Tromey <tom@tromey.com>
12992
12993 * p-valprint.c (pascal_value_print_inner): Rewrite.
12994
6a95a1f5
TT
129952020-03-13 Tom Tromey <tom@tromey.com>
12996
12997 * f-valprint.c (f_value_print_innner): Rewrite.
12998
59fcdac6
TT
129992020-03-13 Tom Tromey <tom@tromey.com>
13000
13001 * m2-valprint.c (m2_print_unbounded_array): New overload.
13002 (m2_print_unbounded_array): Update.
13003 (m2_print_array_contents): Take a struct value.
13004 (m2_value_print_inner): Rewrite.
13005
d133c3e1
TT
130062020-03-13 Tom Tromey <tom@tromey.com>
13007
13008 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13009 (d_value_print_inner): New function.
13010 * d-lang.h (d_value_print_inner): Declare.
13011 * d-lang.c (d_language_defn): Use d_value_print_inner.
13012
23b0f06b
TT
130132020-03-13 Tom Tromey <tom@tromey.com>
13014
13015 * go-valprint.c (go_value_print_inner): New function.
13016 * go-lang.h (go_value_print_inner): Declare.
13017 * go-lang.c (go_language_defn): Use go_value_print_inner.
13018
5f56f7cb
TT
130192020-03-13 Tom Tromey <tom@tromey.com>
13020
13021 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13022 API.
13023 (rust_val_print): Rewrite.
13024 (rust_value_print_inner): New function, from rust_val_print.
13025 (rust_language_defn): Use rust_value_print_inner.
13026
26792ee0
TT
130272020-03-13 Tom Tromey <tom@tromey.com>
13028
13029 * ada-valprint.c (ada_value_print_inner): New function.
13030 * ada-lang.h (ada_value_print_inner): Declare.
13031 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13032
24051bbe
TT
130332020-03-13 Tom Tromey <tom@tromey.com>
13034
13035 * f-valprint.c (f_value_print_innner): New function.
13036 * f-lang.h (f_value_print_innner): Declare.
13037 * f-lang.c (f_language_defn): Use f_value_print_innner.
13038
c0941be6
TT
130392020-03-13 Tom Tromey <tom@tromey.com>
13040
13041 * p-valprint.c (pascal_value_print_inner): New function.
13042 * p-lang.h (pascal_value_print_inner): Declare.
13043 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13044
62c4663d
TT
130452020-03-13 Tom Tromey <tom@tromey.com>
13046
13047 * m2-valprint.c (m2_value_print_inner): New function.
13048 * m2-lang.h (m2_value_print_inner): Declare.
13049 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13050
62182190
TT
130512020-03-13 Tom Tromey <tom@tromey.com>
13052
13053 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13054 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13055 * c-valprint.c (c_value_print_inner): New function.
13056 * c-lang.h (c_value_print_inner): Declare.
13057 * c-lang.c (c_language_defn, cplus_language_defn)
13058 (asm_language_defn, minimal_language_defn): Use
13059 c_value_print_inner.
13060
1e592a8a
TT
130612020-03-13 Tom Tromey <tom@tromey.com>
13062
13063 * p-valprint.c (pascal_object_print_value_fields): Now static.
13064 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13065
7fe471e9
TT
130662020-03-13 Tom Tromey <tom@tromey.com>
13067
13068 * c-valprint.c (c_val_print_array): Simplify.
13069
d121c6ce
TT
130702020-03-13 Tom Tromey <tom@tromey.com>
13071
13072 * valprint.c (value_print_array_elements): New function.
13073 * valprint.h (value_print_array_elements): Declare.
13074
4dba70ee
TT
130752020-03-13 Tom Tromey <tom@tromey.com>
13076
13077 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13078 * mips-tdep.c (mips_print_register): Use
13079 value_print_scalar_formatted.
13080
4f9ae810
TT
130812020-03-13 Tom Tromey <tom@tromey.com>
13082
13083 * valprint.h (value_print_scalar_formatted): Declare.
13084 * valprint.c (value_print_scalar_formatted): New function.
13085
156bfec9
TT
130862020-03-13 Tom Tromey <tom@tromey.com>
13087
13088 * valprint.h (generic_value_print): Declare.
13089 * valprint.c (generic_value_print): New function.
13090
2b4e573d
TT
130912020-03-13 Tom Tromey <tom@tromey.com>
13092
13093 * valprint.c (do_val_print): Call la_value_print_inner, if
13094 available.
13095 * rust-lang.c (rust_language_defn): Update.
13096 * p-lang.c (pascal_language_defn): Update.
13097 * opencl-lang.c (opencl_language_defn): Update.
13098 * objc-lang.c (objc_language_defn): Update.
13099 * m2-lang.c (m2_language_defn): Update.
13100 * language.h (struct language_defn) <la_value_print_inner>: New
13101 member.
13102 * language.c (unknown_language_defn, auto_language_defn): Update.
13103 * go-lang.c (go_language_defn): Update.
13104 * f-lang.c (f_language_defn): Update.
13105 * d-lang.c (d_language_defn): Update.
13106 * c-lang.c (c_language_defn, cplus_language_defn)
13107 (asm_language_defn, minimal_language_defn): Update.
13108 * ada-lang.c (ada_language_defn): Update.
13109
a1f6a07c
TT
131102020-03-13 Tom Tromey <tom@tromey.com>
13111
13112 * c-valprint.c (c_value_print): Use common_val_print.
13113
410cf315
TT
131142020-03-13 Tom Tromey <tom@tromey.com>
13115
13116 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13117
72a45c93
TT
131182020-03-13 Tom Tromey <tom@tromey.com>
13119
13120 * f-valprint.c (f77_print_array_1, f_val_print): Use
13121 common_val_print.
13122
040f66bd
TT
131232020-03-13 Tom Tromey <tom@tromey.com>
13124
13125 * riscv-tdep.c (riscv_print_one_register_info): Use
13126 common_val_print.
13127
a6e05a6c
TT
131282020-03-13 Tom Tromey <tom@tromey.com>
13129
13130 * mi/mi-main.c (output_register): Use common_val_print.
13131
3444c526
TT
131322020-03-13 Tom Tromey <tom@tromey.com>
13133
13134 * infcmd.c (default_print_one_register_info): Use
13135 common_val_print.
13136
c2a44efe
TT
131372020-03-13 Tom Tromey <tom@tromey.com>
13138
13139 * valprint.h (common_val_print_checked): Declare.
13140 * valprint.c (common_val_print_checked): New function.
13141 * stack.c (print_frame_arg): Use common_val_print_checked.
13142
b0c26e99
TT
131432020-03-13 Tom Tromey <tom@tromey.com>
13144
13145 * valprint.c (do_val_print): New function, from val_print.
13146 (val_print): Use do_val_print.
13147 (common_val_print): Use do_val_print.
13148
ce3acbe9
TT
131492020-03-13 Tom Tromey <tom@tromey.com>
13150
13151 * valprint.c (value_print): Use scoped_value_mark.
13152
96c7f873
TV
131532020-03-13 Tom de Vries <tdevries@suse.de>
13154
13155 PR symtab/25646
13156 * psymtab.c (partial_symtab::partial_symtab): Don't set
13157 globals_offset and statics_offset. Push element onto
13158 current_global_psymbols and current_static_psymbols stacks.
13159 (concat): New function.
13160 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13161 element from current_global_psymbols and current_static_psymbols
13162 stacks. Concat popped elements to global_psymbols and
13163 static_symbols.
13164 (add_psymbol_to_list): Use current_global_psymbols and
13165 current_static_psymbols stacks.
13166 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13167 current_static_psymbols fields.
13168
6ba0a321
CB
131692020-03-12 Christian Biesinger <cbiesinger@google.com>
13170
13171 * corelow.c (sniff_core_bfd): Remove.
13172 (class core_target) <m_core_vec>: Remove.
13173 (core_target::core_target): Update.
13174 (core_file_fns): Remove.
13175 (deprecated_add_core_fns): Remove.
13176 (default_core_sniffer): Remove.
13177 (sniff_core_bfd): Remove.
13178 (default_check_format): Remove.
13179 (gdb_check_format): Remove.
13180 (core_target_open): Update.
13181 (core_target::get_core_register_section): Update.
13182 (get_core_registers_cb): Update.
13183 (core_target::fetch_registers): Update.
13184 * gdbcore.h (struct core_fns): Remove.
13185 (deprecated_add_core_fns): Remove.
13186 (default_core_sniffer): Remove.
13187 (default_check_format): Remove.
13188
227031b2
TT
131892020-03-12 Tom Tromey <tom@tromey.com>
13190
13191 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13192 CORE_ADDR.
13193 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13194
53807e9f
TT
131952020-03-12 Tom Tromey <tom@tromey.com>
13196
13197 * remote.c (remote_target::download_tracepoint)
13198 (remote_target::enable_tracepoint)
13199 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13200 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13201 sprintf_vma.
13202
64f25102
TT
132032020-03-12 Tom Tromey <tom@tromey.com>
13204
13205 * symfile-mem.c: Update CORE_ADDR size assert.
13206
272cd5a3
SM
132072020-03-12 Simon Marchi <simon.marchi@efficios.com>
13208
13209 * selftest.m4: Move to gdbsupport/.
13210 * acinclude.m4: Update path to selftest.m4.
13211
74cd3f9d
SM
132122020-03-12 Simon Marchi <simon.marchi@efficios.com>
13213
13214 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13215 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13216 gdbarch-selfselftests.c and selftest-arch.c.
13217 (SUBDIR_UNITTESTS_OBS): Rename to...
13218 (SELFTESTS_OBS): ... this.
13219 (COMMON_SFILES): Remove disasm-selftests.c and
13220 gdbarch-selftests.c.
13221 * configure.ac: Don't add selftest-arch.{c,o} to
13222 CONFIG_{SRCS,OBS}.
13223 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13224 preprocessor conditions.
13225
db6878ac
SM
132262020-03-12 Simon Marchi <simon.marchi@efficios.com>
13227
13228 * configure.ac: Don't source bfd/development.sh.
13229 * selftest.m4: Modify comment.
13230 * configure: Re-generate.
13231
4d696a5c
SM
132322020-03-12 Simon Marchi <simon.marchi@efficios.com>
13233
13234 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13235 not "true" or "false".
13236 * configure: Re-generate.
13237
8dd8e1c7
CB
132382020-03-12 Christian Biesinger <cbiesinger@google.com>
13239
13240 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13241 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13242 renamed to arm_nbsd_supply_gregset.
13243 (fetch_register): Update to call arm_nbsd_supply_gregset.
13244 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13245 (arm_netbsd_nat_target::fetch_registers): Update.
13246 (fetch_elfcore_registers): Removed.
13247 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13248 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13249 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13250 not require NetBSD system headers.
13251 (arm_nbsd_regset): New struct.
13252 (arm_nbsd_iterate_over_regset_sections): New function.
13253 (arm_netbsd_init_abi_common): Updated to call
13254 set_gdbarch_iterate_over_regset_sections.
13255 * arm-nbsd-tdep.h: New file.
13256
dd69bf7a
KB
132572020-03-11 Kevin Buettner <kevinb@redhat.com>
13258
13259 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13260 recursion.
13261
a0761e34
SM
132622020-03-11 Simon Marchi <simon.marchi@efficios.com>
13263
13264 * configure: Re-generate.
13265
e7a82140
TT
132662020-03-11 Tom Tromey <tromey@adacore.com>
13267
13268 * ada-typeprint.c (print_choices): Fix comment.
13269
dcc050c8
AB
132702020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13271
13272 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13273 previous item in the list, when the list has no items.
13274
1c33af77
TV
132752020-03-11 Tom de Vries <tdevries@suse.de>
13276
13277 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13278 PROP_LOCLIST handling code.
13279
8c95582d
AB
132802020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13281
13282 * buildsym-legacy.c (record_line): Pass extra parameter to
13283 record_line.
13284 * buildsym.c (buildsym_compunit::record_line): Take an extra
13285 parameter, reduce duplication in the line table, and record the
13286 is_stmt flag in the line table.
13287 * buildsym.h (buildsym_compunit::record_line): Add extra
13288 parameter.
13289 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13290 non-statement lines.
13291 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13292 this to the symtab builder.
13293 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13294 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13295 through to dwarf_record_line_1.
13296 * infrun.c (process_event_stop_test): When stepping, don't stop at
13297 a non-statement instruction, and only refresh the step info when
13298 we land in the middle of a line's range. Also add an extra
13299 comment.
13300 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13301 field.
13302 * record-btrace.c (btrace_find_line_range): Only record lines
13303 marked as is-statement.
13304 * stack.c (frame_show_address): Show the frame address if we are
13305 in a non-statement sal.
13306 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13307 (maintenance_print_one_line_table): Print a header for the is_stmt
13308 column, and include is_stmt information in the output.
13309 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13310 preference to non-statements.
13311 (find_pcs_for_symtab_line): Prefer is-statement entries.
13312 (find_line_common): Likewise.
13313 * symtab.h (struct linetable_entry): Add is_stmt field.
13314 (struct symtab_and_line): Likewise.
13315 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13316 arranging the line table.
13317
e4003a34
TV
133182020-03-07 Tom de Vries <tdevries@suse.de>
13319
13320 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13321 DIE.
13322
e8932576
TT
133232020-03-07 Tom Tromey <tom@tromey.com>
13324
13325 * valops.c (value_literal_complex): Remove obsolete comment.
13326 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13327 comment.
13328
29734269
SM
133292020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13330
13331 * infrun.h: Forward-declare thread_info.
13332 (set_step_info): Add thread_info parameter, add doc.
13333 * infrun.c (set_step_info): Add thread_info parameter, move doc
13334 to header.
13335 * infrun.c (process_event_stop_test): Pass thread to
13336 set_step_info call.
13337 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13338 set_step_info.
13339 (prepare_one_step): Add thread_info parameter, pass it to
13340 set_step_frame and prepare_one_step (recursive) call.
13341 (step_1): Pass thread to prepare_one_step call.
13342 (step_command_fsm::should_stop): Pass thread to
13343 prepare_one_step.
13344 (until_next_fsm): Pass thread to set_step_frame call.
13345 (finish_command): Pass thread to set_step_info call.
13346
b7d64b29
HD
133472020-03-06 Hannes Domani <ssbssa@yahoo.de>
13348
13349 * windows-tdep.c (windows_solib_create_inferior_hook):
13350 Check if inferior is running.
13351
09f2921c
TV
133522020-03-06 Tom de Vries <tdevries@suse.de>
13353
13354 * NEWS: Fix "the the".
13355 * ctfread.c: Same.
13356
fd760e79
TV
133572020-03-06 Tom de Vries <tdevries@suse.de>
13358
13359 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13360
20ea4a60
AB
133612020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13362
13363 * .dir-locals.el: Add a comment referencing the other copies of
13364 this file.
13365
0afbabf0
JB
133662020-03-05 John Baldwin <jhb@FreeBSD.org>
13367
13368 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13369 psargs.
13370
842806cb
TBA
133712020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13372
13373 * .gitattributes: New file.
13374
be1e3d3e
TT
133752020-03-04 Tom Tromey <tom@tromey.com>
13376
13377 * symmisc.c (print_symbol_bcache_statistics)
13378 (print_objfile_statistics): Update.
13379 * symfile.c (allocate_symtab): Use intern.
13380 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13381 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13382 macro_cache>: Remove.
13383 <string_cache>: New member.
13384 (struct objfile) <intern>: New methods.
13385 * elfread.c (elf_symtab_read): Use intern.
13386 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13387 (dwarf2_compute_name, dwarf2_physname)
13388 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13389 names.
13390 (guess_partial_die_structure_name): Update.
13391 (partial_die_info::fixup): Intern name.
13392 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13393 name.
13394 (dwarf2_name): Intern name. Update.
13395 * buildsym.c (buildsym_compunit::get_macro_table): Use
13396 string_cache.
13397
4e7625fd
TT
133982020-03-04 Tom Tromey <tom@tromey.com>
13399
13400 * jit.c (bfd_open_from_target_memory): Make "target" const.
13401 * corefile.c (gnutarget): Now const.
13402 * gdbcore.h (gnutarget): Now const.
13403
46f9f931
HD
134042020-03-04 Hannes Domani <ssbssa@yahoo.de>
13405
13406 * NEWS: Mention support for WOW64 processes.
13407 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13408 (amd64_windows_segment_register_p): Remove static.
13409 (_initialize_amd64_windows_nat): Update.
13410 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13411 * i386-windows-nat.c (context_offset): Update.
13412 (i386_mappings): Rename and remove static.
13413 (i386_windows_segment_register_p): Remove static.
13414 (_initialize_i386_windows_nat): Update.
13415 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13416 (STATUS_WX86_SINGLE_STEP): New macro.
13417 (EnumProcessModulesEx): New macro.
13418 (Wow64SuspendThread): New macro.
13419 (Wow64GetThreadContext): New macro.
13420 (Wow64SetThreadContext): New macro.
13421 (Wow64GetThreadSelectorEntry): New macro.
13422 (windows_set_context_register_offsets): Add static.
13423 (windows_set_segment_register_p): Likewise.
13424 (windows_add_thread): Adapt for WOW64 processes.
13425 (windows_fetch_one_register): Likewise.
13426 (windows_nat_target::fetch_registers): Likewise.
13427 (windows_store_one_register): Likewise.
13428 (display_selector): Likewise.
13429 (display_selectors): Likewise.
13430 (handle_exception): Likewise.
13431 (windows_continue): Likewise.
13432 (windows_nat_target::resume): Likewise.
13433 (windows_add_all_dlls): Likewise.
13434 (do_initial_windows_stuff): Likewise.
13435 (windows_nat_target::attach): Likewise.
13436 (windows_get_exec_module_filename): Likewise.
13437 (windows_nat_target::create_inferior): Likewise.
13438 (windows_xfer_siginfo): Likewise.
13439 (_initialize_loadable): Initialize Wow64SuspendThread,
13440 Wow64GetThreadContext, Wow64SetThreadContext,
13441 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13442 * windows-nat.h (windows_set_context_register_offsets):
13443 Remove declaration.
13444 (windows_set_segment_register_p): Likewise.
13445 (i386_windows_segment_register_p): Add declaration.
13446 (amd64_windows_segment_register_p): Likewise.
13447
440cf44e
LM
134482020-03-04 Luis Machado <luis.machado@linaro.org>
13449
13450 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13451 in "info registers" for AArch64/ARM.
13452
13453 The change caused "info registers" to not print GPR's.
13454
13455 gdb/ChangeLog:
13456
13457 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13458
13459 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13460 when reg->group is empty and reggroup is not.
13461
1009d92f
TT
134622020-03-03 Tom Tromey <tromey@adacore.com>
13463
13464 * dwarf2/frame.c (struct dwarf2_frame_cache)
13465 <checked_tailcall_bottom, entry_cfa_sp_offset,
13466 entry_cfa_sp_offset_p>: Remove members.
13467 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13468 (dwarf2_frame_prev_register): Don't call
13469 dwarf2_tailcall_sniffer_first.
13470 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13471 * frame-unwind.c (add_unwinder): New fuction.
13472 (frame_unwind_init): Use it. Add tailcall unwinder.
13473
5e5d66b6
AB
134742020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13475 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13476
13477 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13478 value should be printed as true.
13479
584cf46d
HD
134802020-03-03 Hannes Domani <ssbssa@yahoo.de>
13481
13482 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13483 (windows_init_abi): Set and use windows_so_ops.
13484
7b973adc
SDJ
134852020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13486
13487 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13488 when verifying if dealing with a convenience variable.
13489
bb7b70ab
LM
134902020-03-03 Luis Machado <luis.machado@linaro.org>
13491
13492 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13493
9822cb57
SM
134942020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13495
13496 * infrun.c (gdbarch_supports_displaced_stepping): New.
13497 (use_displaced_stepping): Break up conditions in smaller pieces.
13498 Use gdbarch_supports_displaced_stepping.
13499 (displaced_step_prepare_throw): Use
13500 gdbarch_supports_displaced_stepping.
13501
63e163f2
AB
135022020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13503
13504 * NEWS: Mention new behaviour of the history filename.
13505 * top.c (write_history_p): Add comment.
13506 (show_write_history_p): Add header comment, give a different
13507 message when history writing is on, but the history filename is
13508 empty.
13509 (history_filename): Add comment.
13510 (history_filename_empty): New function.
13511 (show_history_filename): Add header comment, give a different
13512 message when the filename is empty.
13513 (init_history): Compare history_filename against nullptr, and only
13514 read history if the filename is not empty.
13515 (set_history_filename): Add header comment, and only make
13516 non-empty filenames absolute.
13517 (init_main): Make the filename argument to 'set history filename'
13518 optional.
13519
81b86b97
CB
135202020-03-02 Christian Biesinger <cbiesinger@google.com>
13521
13522 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13523 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13524 (fetch_fp_register): Update.
13525 (fetch_fp_regs): Update.
13526 (store_fp_register): Update.
13527 (store_fp_regs): Update.
13528 (arm_netbsd_nat_target::read_description): New function.
13529 (fetch_elfcore_registers): Update.
13530
24ed6739
AB
135312020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13532
13533 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13534 general_thread if the stop reply is missing a thread-id.
13535 (remote_target::process_stop_reply): Use the first non-exited
13536 thread if the target didn't pass a thread-id.
13537 * infrun.c (do_target_wait): Move call to
13538 switch_to_inferior_no_thread to ....
13539 (do_target_wait_1): ... here.
13540
a84bb2a0
JT
135412020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13542
13543 * debuginfod-support.c: Include defs.h first.
13544
658dadf0
TV
135452020-02-28 Tom de Vries <tdevries@suse.de>
13546
13547 * symfile.c (set_initial_language): Use default language for lookup.
13548
4ebe4877
SM
135492020-02-28 Simon Marchi <simon.marchi@efficios.com>
13550
13551 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13552 reader variable, pass `this` to read_cutu_die_from_dwo.
13553
e5da1139
AM
135542020-02-27 Aaron Merey <amerey@redhat.com>
13555
13556 * source.c (open_source_file): Check for nullptr when computing
13557 srcpath.
13558
317f7127
TT
135592020-02-27 Tom Tromey <tromey@adacore.com>
13560
13561 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13562 member.
13563 (dwarf2_add_field): Don't update nfields.
13564 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13565
3104d9ee
AB
135662020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13567
13568 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13569 abs.
13570
b83470bf
TT
135712020-02-26 Tom Tromey <tom@tromey.com>
13572
13573 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13574 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13575 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13576 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13577 per_cu_data.
13578
edfe0a0c
TT
135792020-02-26 Tom Tromey <tom@tromey.com>
13580
13581 * dwarf2/index-write.c (psym_index_map): Change type.
13582 (add_address_entry_worker, write_one_signatured_type)
13583 (recursively_count_psymbols, recursively_write_psymbols)
13584 (class debug_names, psyms_seen_size, write_gdbindex)
13585 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13586
0d79cdc4
AM
135872020-02-26 Aaron Merey <amerey@redhat.com>
13588
13589 * Makefile.in: Handle optional debuginfod support.
13590 * NEWS: Update.
13591 * README: Add --with-debuginfod summary.
13592 * config.in: Regenerate.
13593 * configure: Regenerate.
13594 * configure.ac: Handle optional debuginfod support.
13595 * debuginfod-support.c: debuginfod helper functions.
13596 * debuginfod-support.h: Ditto.
13597 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13598 summary.
13599 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13600 when a dwz file cannot be found.
13601 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13602 debuginfo file cannot be found.
13603 * source.c (open_source_file): Query debuginfod servers when a
13604 source file cannot be found.
13605 * top.c (print_gdb_configuration): Include
13606 --{with,without}-debuginfod in the output.
13607
b65ce565
JG
136082020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13609
13610 * thread.c (thr_try_catch_cmd): Print thread name.
13611
d4c9a4f8
SM
136122020-02-26 Simon Marchi <simon.marchi@efficios.com>
13613
13614 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13615 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13616 dwarf2_fetch_die_type_sect_off): Move to...
13617 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13618 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13619 dwarf2_fetch_die_type_sect_off): ... here.
13620 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13621 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13622 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13623
0dce4280
TV
136242020-02-26 Tom de Vries <tdevries@suse.de>
13625
13626 PR gdb/25603
13627 * symfile.c (set_initial_language): Exit-early if
13628 language_mode == language_mode_manual.
13629
450a1bfc
SM
136302020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13631
13632 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13633 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13634 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13635
9e80cfa1
AB
136362020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13637
13638 * gdbtypes.c (create_array_type_with_stride): Handle negative
13639 array strides.
13640 * valarith.c (value_subscripted_rvalue): Likewise.
13641
09624f1f
LM
136422020-02-25 Luis Machado <luis.machado@linaro.org>
13643
13644 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13645
8cb5117c
SM
136462020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13647
13648 * loc.h (dwarf2_get_die_type): Move to...
13649 * read.h (dwarf2_get_die_type): ... here.
13650 * read.c (dwarf2_get_die_type): Move doc to header.
13651
c325c44e
JB
136522020-02-25 Joel Brobecker <brobecker@adacore.com>
13653
13654 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13655 'gnulib/Makefile.in' to the list.
13656
4ac93832
TT
136572020-02-24 Tom Tromey <tom@tromey.com>
13658
13659 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13660 Remove.
13661 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13662 XOBNEWVEC.
13663
197400e8
TT
136642020-02-24 Tom Tromey <tom@tromey.com>
13665
13666 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13667 New method.
13668 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13669 (dw2_do_instantiate_symtab, dw2_get_file_names)
13670 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13671
76935768
TT
136722020-02-24 Tom Tromey <tom@tromey.com>
13673
13674 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13675 make_scoped_restore.
13676 (dwarf2_psymtab::read_symtab): Don't clear
13677 reading_partial_symbols.
13678
a88ef40d
TV
136792020-02-24 Tom de Vries <tdevries@suse.de>
13680
13681 PR gdb/25592
13682 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13683
c9af6521
TV
136842020-02-24 Tom de Vries <tdevries@suse.de>
13685
13686 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13687 commands layout next/prev/regs.
13688
5707a07a
TT
136892020-02-22 Tom Tromey <tom@tromey.com>
13690
13691 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13692 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13693
3b0fb49e
TT
136942020-02-22 Tom Tromey <tom@tromey.com>
13695
13696 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13697
283be8bf
TT
136982020-02-22 Tom Tromey <tom@tromey.com>
13699
13700 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13701 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13702 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13703 * tui/tui.c (_initialize_tui): Add usage text.
13704
ca793b96
TT
137052020-02-22 Tom Tromey <tom@tromey.com>
13706
13707 * tui/tui-win.c (tui_set_focus_command)
13708 (tui_set_win_height_command): Use error_no_arg.
13709 (_initialize_tui_win): Update help text.
13710 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13711
432b5c40
TT
137122020-02-22 Tom Tromey <tom@tromey.com>
13713
13714 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13715 * tui/tui-disasm.h (struct tui_disasm_window)
13716 <display_start_addr>: Declare.
13717 * tui/tui-source.h (struct tui_source_window)
13718 <display_start_addr>: Declare.
13719 * tui/tui-winsource.h (struct tui_source_window_base)
13720 <show_source_line, display_start_addr>: New methods.
13721 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13722 Rename and move to protected section.
13723 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13724 (tui_source_window_base::do_erase_source_content): Update.
13725 (tui_source_window_base::show_source_line): Now a method.
13726 (tui_source_window_base::show_source_content)
13727 (tui_source_window_base::tui_source_window_base)
13728 (tui_source_window_base::rerender)
13729 (tui_source_window_base::refill)
13730 (tui_source_window_base::do_scroll_horizontal)
13731 (tui_source_window_base::set_is_exec_point_at)
13732 (tui_source_window_base::update_breakpoint_info)
13733 (tui_source_window_base::update_exec_info): Update.
13734 * tui/tui-source.c (tui_source_window::set_contents)
13735 (tui_source_window::showing_source_p)
13736 (tui_source_window::do_scroll_vertical)
13737 (tui_source_window::location_matches_p)
13738 (tui_source_window::line_is_displayed): Update.
13739 (tui_source_window::display_start_addr): New method.
13740 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13741 (tui_disasm_window::do_scroll_vertical)
13742 (tui_disasm_window::location_matches_p): Update.
13743 (tui_disasm_window::display_start_addr): New method.
13744
01b1af32
TT
137452020-02-22 Tom Tromey <tom@tromey.com>
13746
13747 * NEWS: Add entry for gdb.register_window_type.
13748 * tui/tui-layout.h (window_factory): New typedef.
13749 (tui_register_window): Declare.
13750 * tui/tui-layout.c (saved_tui_windows): New global.
13751 (tui_apply_current_layout): Use it.
13752 (tui_register_window): New function.
13753 * python/python.c (do_start_initialization): Call
13754 gdbpy_initialize_tui.
13755 (python_GdbMethods): Add "register_window_type" function.
13756 * python/python-internal.h (gdbpy_register_tui_window)
13757 (gdbpy_initialize_tui): Declare.
13758 * python/py-tui.c: New file.
13759 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13760
fc96d20b
TT
137612020-02-22 Tom Tromey <tom@tromey.com>
13762
13763 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13764
935c78c0
TT
137652020-02-22 Tom Tromey <tom@tromey.com>
13766
13767 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13768 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13769 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13770 (tui_set_win_focus_to): Move from tui-win.c.
13771
0240c8f1
TT
137722020-02-22 Tom Tromey <tom@tromey.com>
13773
13774 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13775 functions.
13776 (known_window_types): New global.
13777 (tui_get_window_by_name): Reimplement.
13778 (initialize_known_windows): New function.
13779 (validate_window_name): Rewrite.
13780 (_initialize_tui_layout): Call initialize_known_windows.
13781
fdb01f0c
TT
137822020-02-22 Tom Tromey <tom@tromey.com>
13783
13784 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13785 Remove constants.
13786 * tui/tui-winsource.h (struct tui_source_window_base)
13787 <tui_source_window_base>: Remove parameter.
13788 * tui/tui-winsource.c
13789 (tui_source_window_base::tui_source_window_base): Remove
13790 parameter.
13791 (tui_source_window_base::refill): Update.
13792 * tui/tui-stack.h (struct tui_locator_window)
13793 <tui_locator_window>: Update.
13794 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13795 Default the constructor.
13796 * tui/tui-regs.h (struct tui_data_item_window)
13797 <tui_data_item_window>: Default the constructor.
13798 (struct tui_data_window) <tui_data_window>: Likewise.
13799 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13800 Default the constructor.
13801 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13802 Default the constructor.
13803 <type>: Remove.
13804 (struct tui_win_info) <tui_win_info>: Default the constructor.
13805 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13806 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13807 Default the constructor.
13808
865a5aec
TT
138092020-02-22 Tom Tromey <tom@tromey.com>
13810
13811 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13812 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13813 * tui/tui-win.c (tui_resize_all): Don't call
13814 tui_delete_invisible_windows.
13815 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13816 done.
13817 (tui_set_layout): Update.
13818 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13819 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13820 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13821
e098d18c
TT
138222020-02-22 Tom Tromey <tom@tromey.com>
13823
13824 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13825 correctly.
13826
eb9c8874
TT
138272020-02-22 Tom Tromey <tom@tromey.com>
13828
13829 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13830
7eed1a8e
TT
138312020-02-22 Tom Tromey <tom@tromey.com>
13832
13833 * tui/tui-winsource.h (struct tui_source_window_iterator)
13834 <inner_iterator>: New etytypedef.
13835 <tui_source_window_iterator>: Take "end" parameter.
13836 <tui_source_window_iterator>: Take iterator.
13837 <operator*, advance>: Update.
13838 <m_iter>: Change type.
13839 <m_end>: New field.
13840 (struct tui_source_windows) <begin, end>: Update.
13841 * tui/tui-layout.c (tui_windows): New global.
13842 (tui_apply_current_layout): Clear tui_windows.
13843 (tui_layout_window::apply): Update tui_windows.
13844 * tui/tui-data.h (tui_windows): Declare.
13845 (all_tui_windows): Now inline function.
13846 (class tui_window_iterator, struct all_tui_windows): Remove.
13847
7c043ba6
TT
138482020-02-22 Tom Tromey <tom@tromey.com>
13849
13850 PR tui/17850:
13851 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13852 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13853 "height" argument.
13854 (class tui_layout_window) <get_sizes>: Likewise.
13855 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13856 argument.
13857 <get_sizes>: Add "height" argument.
13858 <m_vertical>: New field.
13859 * tui/tui-layout.c (tui_layout_split::clone): Update.
13860 (tui_layout_split::get_sizes): Add "height" argument.
13861 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13862 (tui_new_layout_command): Parse "-horizontal".
13863 (_initialize_tui_layout): Update help string.
13864 (tui_layout_split::specification): Add "-horizontal" when needed.
13865 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13866 argument.
13867 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13868 New methods.
13869
6bc56648
TT
138702020-02-22 Tom Tromey <tom@tromey.com>
13871
13872 * tui/tui-layout.h (enum tui_adjust_result): New.
13873 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13874 (class tui_layout_window) <adjust_size>: Return
13875 tui_adjust_result. Rewrite.
13876 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13877 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13878
c22fef7e
TT
138792020-02-22 Tom Tromey <tom@tromey.com>
13880
13881 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13882 parameter and return types.
13883 (class tui_layout_base) <specification>: Add "depth".
13884 (class tui_layout_window) <specification>: Add "depth".
13885 (class tui_layout_split) <specification>: Add "depth".
13886 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13887 and return types.
13888 (tui_new_layout_command): Parse sub-layouts.
13889 (_initialize_tui_layout): Update help string.
13890 (tui_layout_window::specification): Add "depth".
13891 (add_layout_command): Update.
13892
ee325b61
TT
138932020-02-22 Tom Tromey <tom@tromey.com>
13894
13895 * NEWS: Add "tui new-layout" item.
13896 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13897 Add new-layout command to help text.
13898 (validate_window_name): New function.
13899 (tui_new_layout_command): New function.
13900 (_initialize_tui_layout): Register "new-layout".
13901 (tui_layout_window::specification): New method.
13902 (tui_layout_window::specification): New method.
13903 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13904 method.
13905 (class tui_layout_window) <specification>: New method.
13906 (class tui_layout_split) <specification>: New method.
13907
416eb92d
TT
139082020-02-22 Tom Tromey <tom@tromey.com>
13909
13910 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13911 * tui/tui-win.c (window_name_completer): Update comment.
13912 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13913 Declare method.
13914 (class tui_layout_window) <replace_window>: Likewise.
13915 (class tui_layout_split) <replace_window>: Likewise.
13916 (tui_set_layout): Don't declare.
13917 (tui_set_initial_layout): Declare function.
13918 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13919 (asm_regs_layout): New globals.
13920 (tui_current_layout, show_layout): Remove.
13921 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13922 (find_layout, tui_apply_layout): New function.
13923 (layout_completer): Remove.
13924 (tui_next_layout): Reimplement.
13925 (tui_next_layout_command): New function.
13926 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13927 (tui_regs_layout): Reimplement.
13928 (tui_regs_layout_command): New function.
13929 (extract_display_start_addr): Rewrite.
13930 (next_layout, prev_layout): Remove.
13931 (tui_layout_window::replace_window): New method.
13932 (tui_layout_split::replace_window): New method.
13933 (destroy_layout): New function.
13934 (layout_list): New global.
13935 (add_layout_command): New function.
13936 (initialize_layouts): Update.
13937 (tui_layout_command): New function.
13938 (_initialize_tui_layout): Install "layout" commands.
13939 * tui/tui-data.h (enum tui_layout_type): Remove.
13940 (tui_current_layout): Don't declare.
13941
0dbc2fc7
TT
139422020-02-22 Tom Tromey <tom@tromey.com>
13943
13944 * tui/tui-regs.c (tui_reg_layout): Remove.
13945 (tui_reg_command): Use tui_regs_layout.
13946 * tui/tui-layout.h (tui_reg_command): Declare.
13947 * tui/tui-layout.c (tui_reg_command): New function.
13948
5afe342e
TT
139492020-02-22 Tom Tromey <tom@tromey.com>
13950
13951 * tui/tui.c (tui_rl_delete_other_windows): Call
13952 tui_remove_some_windows.
13953 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13954 Declare method.
13955 (class tui_layout_window) <remove_windows>: New method.
13956 (class tui_layout_split) <remove_windows>: Declare.
13957 (tui_remove_some_windows): Declare.
13958 * tui/tui-layout.c (tui_remove_some_windows): New function.
13959 (tui_layout_split::remove_windows): New method.
13960
427326a8
TT
139612020-02-22 Tom Tromey <tom@tromey.com>
13962
13963 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13964 * tui/tui-layout.h (tui_next_layout): Declare.
13965 * tui/tui-layout.c (tui_next_layout): New function.
13966
3fe12b6d
TT
139672020-02-22 Tom Tromey <tom@tromey.com>
13968
13969 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13970 correct coordinates.
13971
59b8b5d2
TT
139722020-02-22 Tom Tromey <tom@tromey.com>
13973
13974 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13975 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13976 DATA_WIN case.
13977
2a3d458b
TT
139782020-02-22 Tom Tromey <tom@tromey.com>
13979
13980 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13981 TUI_DISASM_WIN, not tui_win_list.
13982
3f0cbb04
TT
139832020-02-22 Tom Tromey <tom@tromey.com>
13984
13985 * valprint.c (generic_val_print_enum_1)
13986 (val_print_type_code_flags): Style member names.
13987 * rust-lang.c (val_print_struct, rust_print_enum)
13988 (rust_print_struct_def, rust_internal_print_type): Style member
13989 names.
13990 * p-valprint.c (pascal_object_print_value_fields): Style member
13991 names. Only call fprintf_symbol_filtered for static members.
13992 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13993 * f-valprint.c (f_val_print): Style member names.
13994 * f-typeprint.c (f_type_print_base): Style member names.
13995 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13996 call fprintf_symbol_filtered for static members.
13997 (cp_print_class_member): Style member names.
13998 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13999 member names.
14000 * ada-valprint.c (ada_print_scalar): Style enum names.
14001 (ada_val_print_enum): Likewise.
14002 * ada-typeprint.c (print_enum_type): Style enum names.
14003
d4d947ae
TT
140042020-02-21 Tom Tromey <tom@tromey.com>
14005
14006 * psympriv.h (struct partial_symtab): Update comment.
14007
e94e944b
TT
140082020-02-21 Tom Tromey <tromey@adacore.com>
14009
14010 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14011 type is CORE_ADDR.
14012
1eb73179
TV
140132020-02-21 Tom de Vries <tdevries@suse.de>
14014
14015 PR gdb/25534
14016 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14017 if dependencies[i]->user != NULL.
14018
4f180d53
AT
140192020-02-21 Ali Tamur <tamur@google.com>
14020
14021 * dwarf2/read.c (dwarf2_name): Add null check.
14022
22b6cd70
TT
140232020-02-20 Tom Tromey <tom@tromey.com>
14024
14025 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14026 ">=", in binary search.
14027 (dwarf2_find_containing_comp_unit): New overload.
14028 (run_test): New self-test.
14029 (_initialize_dwarf2_read): Register new test.
14030
bd0cf5a6
NC
140312020-02-20 Nelson Chu <nelson.chu@sifive.com>
14032
14033 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14034 * riscv-tdep.h: Likewise.
14035 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14036 rv32-only CSR.
14037 * features/riscv/64bit-csr.xml: Regenerated.
14038
3f702acd
SDJ
140392020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14040 Tom Tromey <tom@tromey.com>
14041
14042 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14043 of 'fputc_unfiltered'.
14044 (putchar_unfiltered): Call 'fputc_unfiltered'.
14045 (fputc_unfiltered): Call 'fputs_unfiltered'.
14046
d13c7322
AB
140472020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14048
14049 * config.in: Regenerate.
14050 * configure: Regenerate.
14051 * configure.ac: Add --with-python-libdir option.
14052 * main.c: Use WITH_PYTHON_LIBDIR.
14053
869d8950
TT
140542020-02-19 Tom Tromey <tom@tromey.com>
14055
14056 * symtab.c (general_symbol_info::compute_and_set_names): Use
14057 obstack_strndup. Simplify call to symbol_set_demangled_name.
14058
298e9637
SM
140592020-02-19 Simon Marchi <simon.marchi@efficios.com>
14060
14061 * dwarf2/read.c (allocate_signatured_type_table,
14062 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14063 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14064 Remove objfile parameter, update all callers.
14065
08410482
DE
140662020-02-19 Doug Evans <dje@google.com>
14067
14068 PR rust/25535
14069 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14070 rust_enum_variant calculation.
14071
dfdeeca1
TT
140722020-02-19 Tom Tromey <tromey@adacore.com>
14073
14074 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14075
2ef5453b
TT
140762020-02-19 Tom Tromey <tromey@adacore.com>
14077
14078 * ada-lang.c (cache_symbol): Use obstack_strdup.
14079
9f1528a1
AB
140802020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14081
14082 * configure: Regenerate.
14083
d3c22fa8
TT
140842020-02-19 Tom Tromey <tromey@adacore.com>
14085
14086 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14087 NULL check.
14088
bf84f706
MR
140892020-02-19 Maciej W. Rozycki <macro@wdc.com>
14090
14091 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14092
d1c9b20f
AB
140932020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14094
14095 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14096 if GDBSERVER is not defined.
14097 (riscv_tdesc_cache): Likewise, also store const target_desc.
14098 (STATIC_IN_GDB): Define.
14099 (riscv_create_target_description): Update declaration with
14100 STATIC_IN_GDB.
14101 (riscv_lookup_target_description): New function, only define if
14102 GDBSERVER is not defined.
14103 * arch/riscv.h (riscv_create_target_description): Declare only
14104 when GDBSERVER is defined.
14105 (riscv_lookup_target_description): New declaration when GDBSERVER
14106 is not defined.
14107 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14108 (riscv_linux_read_features): ...this, and return
14109 riscv_gdbarch_features instead of target_desc.
14110 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14111 (riscv_linux_read_description): Rename to...
14112 (riscv_linux_read_features): ...this.
14113 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14114 Update to use riscv_gdbarch_features and
14115 riscv_lookup_target_description.
14116 * riscv-tdep.c (riscv_find_default_target_description): Use
14117 riscv_lookup_target_description instead of
14118 riscv_create_target_description.
14119
373d7ac0
SM
141202020-02-18 Simon Marchi <simon.marchi@efficios.com>
14121
14122 * valprint.c (generic_val_print_enum_1): When printing a flag
14123 enum with value 0 and there is no enumerator with value 0, print
14124 just "0" instead of "(unknown: 0x0)".
14125
b29a2df0
SM
141262020-02-18 Simon Marchi <simon.marchi@efficios.com>
14127
14128 * valprint.c (generic_val_print_enum_1): Print unknown part of
14129 flag enum in hex.
14130
6740f0cc
SM
141312020-02-18 Simon Marchi <simon.marchi@efficios.com>
14132
14133 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14134 flag enums to contain duplicate enumerators.
14135 * valprint.c (generic_val_print_enum_1): Update comment.
14136
edd45eb0
SM
141372020-02-18 Simon Marchi <simon.marchi@efficios.com>
14138
14139 * dwarf2/read.c: Include "count-one-bits.h".
14140 (update_enumeration_type_from_children): If an enumerator has
14141 multiple bits set, don't treat the enumeration as a "flag enum".
14142 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14143 of flag enums have 0 or 1 bit set.
14144
6d0cf446
BE
141452020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14146
14147 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14148 conversion.
14149 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14150 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14151 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14152 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14153 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14154
7001c1b7
SM
141552020-02-18 Simon Marchi <simon.marchi@efficios.com>
14156
14157 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14158
fdb61c6c
SM
141592020-02-14 Simon Marchi <simon.marchi@efficios.com>
14160
14161 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14162 displaced_step_closure_up.
14163 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14164 (struct displaced_step_closure_up):
14165 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14166 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14167 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14168 Likewise.
14169 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14170 * gdbarch.c, gdbarch.h: Re-generate.
14171 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14172 displaced_step_closure_up.
14173 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14174 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14175 * infrun.h (displaced_step_closure_up): New type alias.
14176 (struct displaced_step_inferior_state) <step_closure>: Change
14177 type to displaced_step_closure_up.
14178 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14179 displaced_step_closure_up.
14180 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14181
a4a38eb4
TT
141822020-02-14 Tom Tromey <tom@tromey.com>
14183
14184 * minidebug.c (gnu_debug_key): New global.
14185 (find_separate_debug_file_in_section): Use it.
14186
e8217e61
SM
141872020-02-14 Simon Marchi <simon.marchi@efficios.com>
14188
14189 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14190 std::unique_ptr.
14191 * gdbarch.c: Re-generate.
14192 * gdbarch.h: Re-generate.
14193 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14194 change.
14195 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14196 type to std::unique_ptr.
14197 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14198 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14199 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14200 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14201 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14202 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14203 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14204 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14205 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14206
d8d83535
SM
142072020-02-14 Simon Marchi <simon.marchi@efficios.com>
14208
14209 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14210 std::unique_ptr.
14211 (displaced_step_clear): Rename to...
14212 (displaced_step_reset): ... this. Just call displaced->reset ().
14213 (displaced_step_clear_cleanup): Rename to...
14214 (displaced_step_reset_cleanup): ... this.
14215 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14216 (displaced_step_fixup): Likewise.
14217 (resume_1): Likewise.
14218 (handle_inferior_event): Restore child's memory before calling
14219 displaced_step_fixup on the parent.
14220 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14221 to std::unique_ptr.
14222 <step_closure>: Change type to std::unique_ptr.
14223
5f661e03
SM
142242020-02-14 Simon Marchi <simon.marchi@efficios.com>
14225
14226 * arm-tdep.c: Include count-one-bits.h.
14227 (cleanup_block_store_pc): Use count_one_bits.
14228 (cleanup_block_load_pc): Use count_one_bits.
14229 (arm_copy_block_xfer): Use count_one_bits.
14230 (thumb2_copy_block_xfer): Use count_one_bits.
14231 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14232 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14233 (thumb_get_next_pcs_raw): Use count_one_bits.
14234 (arm_get_next_pcs_raw): Use count_one_bits_l.
14235 * arch/arm.c (bitcount): Remove.
14236 * arch/arm.h (bitcount): Remove.
14237
8084e579
TT
142382020-02-14 Tom Tromey <tromey@adacore.com>
14239
14240 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14241 Update.
14242 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14243 * dwarf2/loc.c (call_site_find_chain_1): Return
14244 unique_xmalloc_ptr.
14245 (call_site_find_chain): Likewise.
14246
258bf0ee
RB
142472020-02-14 Richard Biener <rguenther@suse.de>
14248
14249 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14250 on expression with division operators.
14251
f98a8458
AKS
142522020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14253
14254 * MAINTAINERS (Write After Approval): Adding myself.
14255
d1437c0e
TT
142562020-02-12 Tom Tromey <tom@tromey.com>
14257
14258 * event-loop.c (event_data, gdb_event, event_handler_func):
14259 Remove.
14260
3d4560f7
TT
142612020-02-12 Tom Tromey <tom@tromey.com>
14262
14263 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14264 (dwarf2_frame_objfile_data): Add comment.
14265 (find_comp_unit, set_comp_unit): New functions.
14266 (dwarf2_frame_find_fde): Use find_comp_unit.
14267 (dwarf2_build_frame_info): Use set_comp_unit.
14268
21982304
TT
142692020-02-12 Tom Tromey <tom@tromey.com>
14270
14271 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14272 (comp_unit): Don't initialize objfile.
14273 (execute_cfa_program): Add text_offset parameter.
14274 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14275 (dwarf2_frame_cache): Update.
14276 (dwarf2_build_frame_info): Don't set "objfile" member.
14277
4debb237
TT
142782020-02-12 Tom Tromey <tom@tromey.com>
14279
14280 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14281 (decode_frame_entry): Likewise.
14282 (dwarf2_build_frame_info): Update.
14283
0d404d44
TT
142842020-02-12 Tom Tromey <tom@tromey.com>
14285
14286 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14287 (decode_frame_entry_1): Use the comp_unit obstack.
14288
a7a3ae5c
TT
142892020-02-12 Tom Tromey <tom@tromey.com>
14290
14291 * dwarf2/frame.c (struct comp_unit): Add initializers and
14292 constructor.
14293 (dwarf2_frame_objfile_data): Store a comp_unit.
14294 (dwarf2_frame_find_fde): Update.
14295 (dwarf2_build_frame_info): Use "new".
14296
a9d65418
TT
142972020-02-12 Tom Tromey <tom@tromey.com>
14298
14299 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14300 (dwarf2_fde_table): Typedef for std::vector.
14301 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14302 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14303 (decode_frame_entry): Update.
14304 (dwarf2_build_frame_info): Use "new".
14305
7559c217
CB
143062020-02-12 Christian Biesinger <cbiesinger@google.com>
14307
14308 * arm-tdep.c (arm_gdbarch_init): Update.
14309 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14310 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14311 have_neon, is_m>: Change to bool.
14312
aeefc73c
CB
143132020-02-12 Christian Biesinger <cbiesinger@google.com>
14314
14315 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14316
d27b8e5f
TT
143172020-02-12 Tom Tromey <tom@tromey.com>
14318
14319 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14320
cd5900f3
HD
143212020-02-12 Hannes Domani <ssbssa@yahoo.de>
14322
14323 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14324 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14325
f056b22b
TT
143262020-02-11 Tom Tromey <tom@tromey.com>
14327
14328 * psymtab.h: Update comment.
14329
f92ff6b5
TT
143302020-02-11 Tom Tromey <tom@tromey.com>
14331
14332 * gdb_obstack.h (struct auto_obstack): Use
14333 DISABLE_COPY_AND_ASSIGN.
14334
3fd6912b
TT
143352020-02-11 Tom Tromey <tom@tromey.com>
14336
14337 * dwarf2/frame.h (struct objfile): Don't forward declare.
14338
69ed9b74
CB
143392020-02-11 Christian Biesinger <cbiesinger@google.com>
14340
14341 * cris-tdep.c (cris_supply_gregset): Change signature to match
14342 what struct regset expects.
14343 (cris_regset): New struct.
14344 (fetch_core_registers): Remove.
14345 (cris_iterate_over_regset_sections): New function.
14346 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14347 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14348
bda874f6
CB
143492020-02-11 Christian Biesinger <cbiesinger@google.com>
14350
14351 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14352 registers.
14353
754e1564
CB
143542020-02-11 Christian Biesinger <cbiesinger@google.com>
14355
14356 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14357
8ddd8e0e
SM
143582020-02-11 Simon Marchi <simon.marchi@efficios.com>
14359
14360 * configure: Re-generate.
14361
898e7f60
SM
143622020-02-11 Simon Marchi <simon.marchi@efficios.com>
14363
14364 * configure: Re-generate.
14365
58df732b
SM
143662020-02-11 Simon Marchi <simon.marchi@efficios.com>
14367
14368 * acinclude: Update warning.m4 path.
14369 * warning.m4: Move to gdbsupport.
14370
da5bd37e
TT
143712020-02-11 Tom Tromey <tromey@adacore.com>
14372
14373 * remote.c (remote_console_output): Update.
14374 * printcmd.c (printf_command): Update.
14375 * event-loop.c (gdb_wait_for_event): Update.
14376 * linux-nat.c (sigchld_handler): Update.
14377 * remote-sim.c (gdb_os_write_stdout): Update.
14378 (gdb_os_flush_stdout): Update.
14379 (gdb_os_flush_stderr): Update.
14380 (gdb_os_write_stderr): Update.
14381 * exceptions.c (print_exception): Update.
14382 * remote-fileio.c (remote_fileio_func_read): Update.
14383 (remote_fileio_func_write): Update.
14384 * tui/tui.c (tui_enable): Update.
14385 * tui/tui-interp.c (tui_interp::init): Update.
14386 * utils.c (init_page_info): Update.
14387 (putchar_unfiltered, fputc_unfiltered): Update.
14388 (gdb_flush): Update.
14389 (emit_style_escape): Update.
14390 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14391 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14392 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14393 (stderr_file::write): Update.
14394 (stderr_file::puts): Update.
14395 * ui-file.h (ui_file_isatty, ui_file_write)
14396 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14397 (ui_file_puts): Don't declare.
14398
85f0dd3c
TV
143992020-02-10 Tom de Vries <tdevries@suse.de>
14400
14401 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14402 sentinel to char *.
14403
2e927613
TV
144042020-02-09 Tom de Vries <tdevries@suse.de>
14405
14406 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14407 filename if it matches "<artificial>".
14408
6bafc845
HD
144092020-02-09 Hannes Domani <ssbssa@yahoo.de>
14410
14411 * windows-tdep.c (struct enum_value_name): New struct.
14412 (create_enum): New function.
14413 (windows_get_siginfo_type): Create and use enum types.
14414
7928d571
HD
144152020-02-09 Hannes Domani <ssbssa@yahoo.de>
14416
14417 * NEWS: Mention $_siginfo support for Windows.
14418 * windows-nat.c (handle_exception): Set siginfo_er.
14419 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14420 (windows_xfer_siginfo): New function.
14421 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14422 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14423 (init_windows_gdbarch_data): New function.
14424 (get_windows_gdbarch_data): New function.
14425 (windows_get_siginfo_type): New function.
14426 (windows_init_abi): Register windows_get_siginfo_type.
14427 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14428
6751ebae
TT
144292020-02-08 Tom Tromey <tom@tromey.com>
14430
14431 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14432 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14433 <keep>: Declare method.
14434 <m_keep>: Remove member.
14435 <~cutu_reader>: Remove.
14436 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14437 (cutu_reader::cutu_reader): Update.
14438 (cutu_reader::keep): Rename from ~cutu_reader.
14439 (process_psymtab_comp_unit, build_type_psymtabs_1)
14440 (process_skeletonless_type_unit, load_partial_comp_unit)
14441 (load_full_comp_unit, dwarf2_read_addr_index)
14442 (read_signatured_type): Update.
14443
135f5437
TT
144442020-02-08 Tom Tromey <tom@tromey.com>
14445
14446 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14447 "want_partial_unit" parameter.
14448 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14449 Inline check for DW_TAG_partial_unit.
14450 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14451
9f66ff1c
TT
144522020-02-08 Tom Tromey <tom@tromey.com>
14453
14454 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14455 read.c.
14456 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14457 read.c.
14458
c8a7a66f
TT
144592020-02-08 Tom Tromey <tom@tromey.com>
14460
14461 * dwarf2/read.c (read_address): Move to comp-unit.c.
14462 (dwarf2_rnglists_process, dwarf2_ranges_process)
14463 (read_attribute_value, dwarf_decode_lines_1)
14464 (var_decode_location, decode_locdesc): Update.
14465 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14466 read.c. Remove "cu" parameter.
14467 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14468 method.
14469
8266302d
TT
144702020-02-08 Tom Tromey <tom@tromey.com>
14471
14472 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14473 (read_indirect_line_string): Update.
14474 * dwarf2/comp-unit.c (read_offset): Remove.
14475 (read_comp_unit_head): Update.
14476 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14477 method.
14478 (read_offset): Don't declare.
14479
4057dfde
TT
144802020-02-08 Tom Tromey <tom@tromey.com>
14481
14482 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14483 * dwarf2/read.c (struct comp_unit_head): Move to
14484 dwarf2/comp-unit.h.
14485 (enum class rcuh_kind): Move to comp-unit.h.
14486 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14487 (read_comp_unit_head, error_check_comp_unit_head)
14488 (read_and_check_comp_unit_head): Move to comp-unit.c.
14489 (read_offset, dwarf_unit_type_name): Likewise.
14490 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14491 (cutu_reader::cutu_reader, read_call_site_scope)
14492 (find_partial_die, follow_die_offset): Update.
14493 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14494
24aa364d
TT
144952020-02-08 Tom Tromey <tom@tromey.com>
14496
14497 * dwarf2/read.c (read_offset_1): Move to leb.c.
14498 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14499 (dwarf_decode_macro_bytes): Update.
14500 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14501 * dwarf2/leb.h (read_offset): Declare.
14502
2c7d5afc
TT
145032020-02-08 Tom Tromey <tom@tromey.com>
14504
14505 * dwarf2/read.c (dwarf2_section_size): Remove.
14506 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14507 Update.
14508 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14509
4075cb26
TT
145102020-02-08 Tom Tromey <tom@tromey.com>
14511
14512 * dwarf2/read.c (read_initial_length): Move to leb.c.
14513 * dwarf2/leb.h (read_initial_length): Declare.
14514 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14515 handle_nonstd parameter.
14516 * dwarf2/frame.c (read_initial_length): Remove.
14517 (decode_frame_entry_1): Update.
14518
09ba997f
TT
145192020-02-08 Tom Tromey <tom@tromey.com>
14520
14521 * dwarf2/loc.c (dwarf2_find_location_expression)
14522 (dwarf_evaluate_loc_desc::get_tls_address)
14523 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14524 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14525 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14526 (dwarf2_compile_property_to_c)
14527 (dwarf2_loc_desc_get_symbol_read_needs)
14528 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14529 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14530 (loclist_describe_location, loclist_tracepoint_var_ref)
14531 (loclist_generate_c_location): Update.
14532 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14533 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14534 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14535 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14536 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14537 (dwarf2_per_cu_data::addr_size)
14538 (dwarf2_per_cu_data::ref_addr_size)
14539 (dwarf2_per_cu_data::text_offset)
14540 (dwarf2_per_cu_data::addr_type): Now methods.
14541 (per_cu_header_read_in): Make per_cu "const".
14542 (dwarf2_version): Remove.
14543 (dwarf2_per_cu_data::int_type): Now a method.
14544 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14545 (set_die_type, read_array_type, read_subrange_index_type)
14546 (read_tag_string_type, read_subrange_type): Update.
14547 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14548 offset_size, ref_addr_size, text_offset, addr_type, version,
14549 objfile, int_type, addr_sized_int_type>: Declare methods.
14550
96c738c0
TT
145512020-02-08 Tom Tromey <tom@tromey.com>
14552
14553 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14554 Move earlier.
14555
8fdd972c
TT
145562020-02-08 Tom Tromey <tom@tromey.com>
14557
14558 * dwarf2/read.h (dwarf_line_debug): Declare.
14559 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14560 * dwarf2/read.c: Move line_header code to new files.
14561 (dwarf_line_debug): No longer static.
14562 * dwarf2/line-header.c: New file.
14563 * dwarf2/line-header.h: New file.
14564
03075812
TT
145652020-02-08 Tom Tromey <tom@tromey.com>
14566
14567 * dwarf2/read.c (struct line_header) <file_full_name,
14568 file_file_name>: Return unique_xmalloc_ptr.
14569 (line_header::file_file_name): Update.
14570 (line_header::file_full_name): Update.
14571 (dw2_get_file_names_reader): Update.
14572 (macro_start_file): Update.
14573
bb822404
TT
145742020-02-08 Tom Tromey <tom@tromey.com>
14575
14576 * dwarf2/read.c (struct line_header) <file_full_name,
14577 file_file_name>: Declare methods.
14578 (dw2_get_file_names_reader): Update.
14579 (file_file_name): Now a method.
14580 (file_full_name): Likewise.
14581 (macro_start_file): Update.
14582
009b64fc
TT
145832020-02-08 Tom Tromey <tom@tromey.com>
14584
14585 * dwarf2/read.c (dwarf_always_disassemble)
14586 (show_dwarf_always_disassemble): Move to loc.c.
14587 (_initialize_dwarf2_read): Move "always-disassemble" registration
14588 to loc.c.
14589 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14590 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14591 static.
14592 (show_dwarf_always_disassemble): Move from read.c.
14593 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14594
5895093f
TT
145952020-02-08 Tom Tromey <tom@tromey.com>
14596
14597 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14598 (create_quick_file_names_table): Return htab_up.
14599 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14600 Update.
14601 * dwarf2/read.h (struct dwarf2_per_objfile)
14602 <quick_file_names_table>: Now htab_up.
14603
b3b32279
TT
146042020-02-08 Tom Tromey <tom@tromey.com>
14605
14606 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14607
1d33d811
TT
146082020-02-08 Tom Tromey <tom@tromey.com>
14609
14610 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14611 Rewrite.
14612 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14613 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14614 (abbrev_table::abbrev_table): No longer inline.
14615 (ABBREV_HASH_SIZE): Remove.
14616 (abbrev_table::m_abbrevs): Now an htab_up.
14617
86de1d91
TT
146182020-02-08 Tom Tromey <tom@tromey.com>
14619
14620 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14621 (cutu_reader): Update.
14622 (build_type_psymtabs_1): Update.
14623 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14624 (abbrev_table::alloc_abbrev): Update.
14625 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14626 (abbrev_table::read): New static method, renamed from
14627 abbrev_table_read_table.
14628 (abbrev_table::alloc_abbrev)
14629 (abbrev_table::add_abbrev): Now private.
14630 (abbrev_table::abbrev_table): Now private.
14631 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14632
0335378b
TT
146332020-02-08 Tom Tromey <tom@tromey.com>
14634
14635 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14636 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14637 htab_up.
14638
48b490f2
TT
146392020-02-08 Tom Tromey <tom@tromey.com>
14640
14641 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14642 htab_up.
14643 (lookup_dwo_unit_in_dwp): Update.
14644 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14645 on obstack.
14646
bc68fb19
TT
146472020-02-08 Tom Tromey <tom@tromey.com>
14648
14649 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14650 obstack.
14651
d15acc42
TT
146522020-02-08 Tom Tromey <tom@tromey.com>
14653
14654 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14655 line_header_hash.
14656 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14657 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14658 Change type to htab_up.
14659
eaa5fa8b
TT
146602020-02-08 Tom Tromey <tom@tromey.com>
14661
14662 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14663 htab_up. Don't allocate on obstack.
14664 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14665 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14666 Change type to htab_up.
14667
b0b6a987
TT
146682020-02-08 Tom Tromey <tom@tromey.com>
14669
14670 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14671 Change type to htab_up.
14672 * dwarf2/read.c (create_signatured_type_table_from_index)
14673 (create_signatured_type_table_from_debug_names)
14674 (create_all_type_units, add_type_unit)
14675 (lookup_dwo_signatured_type, lookup_signatured_type)
14676 (process_skeletonless_type_unit): Update.
14677 (create_debug_type_hash_table, create_debug_types_hash_table):
14678 Change type of types_htab.
14679 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14680 htab_up. Don't allocate on obstack.
14681 (create_cus_hash_table): Change type of cus_htab parameter.
14682 (struct dwo_file) <cus, tus>: Now htab_up.
14683 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14684 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14685 (queue_and_load_all_dwo_tus): Update.
14686 * dwarf2/index-write.c (write_gdbindex): Update.
14687 (write_debug_names): Update.
14688
39856def
TT
146892020-02-08 Tom Tromey <tom@tromey.com>
14690
14691 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14692 dwarf2/read.c. Remove "next" member. Add constructor ntad
14693 destructor.
14694 (struct dwarf2_per_objfile) <queue>: New member.
14695 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14696 dwarf2/read.h.
14697 (dwarf2_queue, dwarf2_queue_tail): Remove.
14698 (class dwarf2_queue_guard): Add parameter to constructor. Use
14699 DISABLE_COPY_AND_ASSIGN.
14700 <m_per_objfile>: New member.
14701 <~dwarf2_queue_guard>: Rewrite.
14702 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14703 Update.
14704 (~dwarf2_queue_item): New.
14705
3e225074
TT
147062020-02-08 Tom Tromey <tom@tromey.com>
14707
14708 * dwarf2/read.c (struct die_info) <has_children>: New member.
14709 (dw2_get_file_names_reader): Remove has_children.
14710 (dw2_get_file_names): Update.
14711 (read_cutu_die_from_dwo): Remove has_children.
14712 (cutu_reader::init_tu_and_read_dwo_dies)
14713 (cutu_reader::cutu_reader): Update.
14714 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14715 Remove has_children.
14716 (build_type_psymtabs_1, process_skeletonless_type_unit)
14717 (load_partial_comp_unit, load_full_comp_unit): Update.
14718 (create_dwo_cu_reader): Remove has_children.
14719 (create_cus_hash_table, read_die_and_children): Update.
14720 (read_full_die_1,read_full_die): Remove has_children.
14721 (read_signatured_type): Update.
14722 (class cutu_reader) <has_children>: Remove.
14723
82ca8957
TT
147242020-02-08 Tom Tromey <tom@tromey.com>
14725
14726 * dwarf2/expr.c: Rename from dwarf2expr.c.
14727 * dwarf2/expr.h: Rename from dwarf2expr.h.
14728 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14729 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14730 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14731 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14732 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14733 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14734 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14735 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14736 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14737 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14738 * dwarf2/loc.c: Rename from dwarf2loc.c.
14739 * dwarf2/loc.h: Rename from dwarf2loc.h.
14740 * dwarf2/read.c: Rename from dwarf2read.c.
14741 * dwarf2/read.h: Rename from dwarf2read.h.
14742 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14743 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14744 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14745 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14746 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14747 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14748 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14749 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14750 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14751 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14752 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14753 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14754 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14755 Update.
14756 * Makefile.in (COMMON_SFILES): Update.
14757 (HFILES_NO_SRCDIR): Update.
14758
9e35d499
TT
147592020-02-08 Tom Tromey <tom@tromey.com>
14760
14761 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14762 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14763
1eba2311
TT
147642020-02-08 Tom Tromey <tom@tromey.com>
14765
14766 * dwarf2read.h (struct die_info): Don't declare.
14767
e41c2da2
TT
147682020-02-08 Tom Tromey <tom@tromey.com>
14769
14770 * dwarf2read.h (die_info_ptr): Remove typedef.
14771
4fc6c0d5
TT
147722020-02-08 Tom Tromey <tom@tromey.com>
14773
14774 * dwarf2read.c (read_call_site_scope)
14775 (handle_data_member_location, dwarf2_add_member_fn)
14776 (mark_common_block_symbol_computed, read_common_block)
14777 (attr_to_dynamic_prop, partial_die_info::read)
14778 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14779 (dwarf2_symbol_mark_computed, set_die_type): Update.
14780 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14781 method.
14782 (attr_form_is_block): Don't declare.
14783 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14784
cd6c91b4
TT
147852020-02-08 Tom Tromey <tom@tromey.com>
14786
14787 * dwarf2read.c (dwarf2_find_base_address, )
14788 (read_call_site_scope, rust_containing_type)
14789 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14790 (handle_data_member_location, dwarf2_add_member_fn)
14791 (get_alignment, read_structure_type, process_structure_scope)
14792 (mark_common_block_symbol_computed, read_common_block)
14793 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14794 (partial_die_info::read, read_attribute_value, new_symbol)
14795 (lookup_die_type, dwarf2_get_ref_die_offset)
14796 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14797 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14798 (dwarf2_symbol_mark_computed): Update.
14799 * dwarf2/attribute.h (struct attribute) <value_as_address,
14800 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14801 methods.
14802 (value_as_address, attr_form_is_section_offset)
14803 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14804 * dwarf2/attribute.c (attribute::value_as_address)
14805 (attribute::form_is_section_offset, attribute::form_is_constant)
14806 (attribute::form_is_ref): Now methods.
14807
162dce55
TT
148082020-02-08 Tom Tromey <tom@tromey.com>
14809
14810 * dwarf2read.c (struct attribute, DW_STRING)
14811 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14812 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14813 (attr_form_is_block, attr_form_is_section_offset)
14814 (attr_form_is_constant, attr_form_is_ref): Move.
14815 * dwarf2/attribute.h: New file.
14816 * dwarf2/attribute.c: New file, from dwarf2read.c.
14817 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14818
3054dd54
TT
148192020-02-08 Tom Tromey <tom@tromey.com>
14820
14821 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14822 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14823 Move.
14824 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14825 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14826 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14827 abbrev.c.
14828 * dwarf2/abbrev.h: New file.
14829 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14830 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14831
96b79293
TT
148322020-02-08 Tom Tromey <tom@tromey.com>
14833
14834 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14835 (dwarf2_section_size, dwarf2_get_section_info)
14836 (create_signatured_type_table_from_debug_names)
14837 (create_addrmap_from_aranges, read_debug_names_from_section)
14838 (get_gdb_index_contents_from_section, read_comp_unit_head)
14839 (error_check_comp_unit_head, read_abbrev_offset)
14840 (create_debug_type_hash_table, init_cu_die_reader)
14841 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14842 (read_comp_units_from_section, create_cus_hash_table)
14843 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14844 (create_dwp_v2_section, dwarf2_rnglists_process)
14845 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14846 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14847 (read_indirect_string_from_dwz, read_addr_index_1)
14848 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14849 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14850 (fill_in_loclist_baton): Update.
14851 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14852 get_containing_section, get_bfd_owner, get_bfd_section,
14853 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14854 (dwarf2_read_section, get_section_name, get_section_file_name)
14855 (get_containing_section, get_section_bfd_owner)
14856 (get_section_bfd_section, get_section_name, get_section_file_name)
14857 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14858 declare.
14859 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14860 (dwarf2_section_info::get_bfd_owner)
14861 (dwarf2_section_info::get_bfd_section)
14862 (dwarf2_section_info::get_name)
14863 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14864 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14865 (dwarf2_section_info::read): Now methods.
14866 * dwarf-index-write.c (class debug_names): Update.
14867
2c86cff9
TT
148682020-02-08 Tom Tromey <tom@tromey.com>
14869
14870 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14871 Move to dwarf2/section.h.
14872 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14873 (get_section_bfd_section, get_section_name)
14874 (get_section_file_name, get_section_id, get_section_flags)
14875 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14876 dwarf2/section.c.
14877 * dwarf2/section.h: New file.
14878 * dwarf2/section.c: New file, from dwarf2read.c.
14879 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14880
f4382c45
TT
148812020-02-08 Tom Tromey <tom@tromey.com>
14882
14883 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14884 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14885 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14886 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14887 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14888 * dwarf2/leb.h: New file, from dwarf2read.c.
14889 * dwarf2/leb.c: New file, from dwarf2read.c.
14890 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14891 Remove.
14892 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14893 (COMMON_SFILES): Add dwarf2/leb.c.
14894
01840b7a
JB
148952020-02-08 Joel Brobecker <brobecker@adacore.com>
14896
14897 GDB 9.1 released.
14898
dfcb27e4
IB
148992020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14900
14901 PR gdb/25190:
aac66a4c
SM
14902 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14903 * gdb/remote.c (remote_console_output): Update.
14904 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14905 (ui_file_puts): ...this.
14906 * gdb/ui-file.h (ui_file_puts): Add declaration.
14907 * gdb/utils.c (emit_style_escape): Update.
14908 (flush_wrap_buffer): Update.
14909 (fputs_maybe_filtered): Update.
14910 (fputs_unfiltered): Add function.
dfcb27e4 14911
faa17681
IB
149122020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14913
aac66a4c
SM
14914 * gdb/event-loop.c (gdb_wait_for_event): Update.
14915 * gdb/printcmd.c (printf_command): Update.
14916 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14917 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14918 (gdb_os_flush_stderr): Update.
14919 * gdb/remote.c (remote_console_output): Update.
14920 * gdb/ui-file.c (gdb_flush): Rename to...
14921 (ui_file_flush): ...this.
14922 (stderr_file::write): Update.
14923 (stderr_file::puts): Update.
14924 * gdb/ui-file.h (gdb_flush): Rename to...
14925 (ui_file_flush): ...this.
14926 * gdb/utils.c (gdb_flush): Add function.
14927 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14928
5abbbe1d
TT
149292020-02-07 Tom Tromey <tromey@adacore.com>
14930
14931 PR breakpoints/24915:
14932 * source.c (find_and_open_source): Do not check basenames_may_differ.
14933
919adfe8
TT
149342020-02-07 Tom Tromey <tom@tromey.com>
14935
14936 * README: Update gdbserver documentation.
14937 * gdbserver: Move to top level.
14938 * configure.tgt (build_gdbserver): Remove.
14939 * configure.ac: Remove --enable-gdbserver.
14940 * configure: Rebuild.
14941 * Makefile.in (distclean): Don't mention gdbserver.
14942
1d5d29e7
SV
149432020-02-06 Shahab Vahedi <shahab@synopsys.com>
14944
14945 * source-cache.c (source_cache::ensure): Surround
14946 get_plain_source_lines with a try/catch.
14947 (source_cache::get_line_charpos): Get rid of try/catch
14948 and only check for the return value of "ensure".
14949 * tui/tui-source.c (tui_source_window::set_contents):
14950 Simplify "nlines" calculation.
14951
6eb1129c
SV
149522020-02-06 Shahab Vahedi <shahab@synopsys.com>
14953
14954 * MAINTAINERS (Write After Approval): Add myself.
14955
c6a42d11
CB
149562020-02-05 Christian Biesinger <cbiesinger@google.com>
14957
14958 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14959 function call.
14960
c8ecdda6
CB
149612020-02-05 Christian Biesinger <cbiesinger@google.com>
14962
14963 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14964
f6480e70
MR
149652020-02-05 Maciej W. Rozycki <macro@wdc.com>
14966
14967 * nat/riscv-linux-tdesc.h: New file.
14968 * nat/riscv-linux-tdesc.c: New file, taking code from...
14969 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14970 ... here.
14971 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14972 NATDEPFILES.
14973
dcc9fbc6
AB
149742020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14975
14976 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14977 we don't set the fake simulator ptid to the null_ptid.
14978
719546c4
SM
149792020-02-03 Simon Marchi <simon.marchi@efficios.com>
14980
14981 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14982 * gdbthread.h (class thread_info) <resumed>: Likewise.
14983 * infrun.c (resume_1): Likewise.
14984 (proceed): Likewise.
14985 (infrun_thread_stop_requested): Likewise.
14986 (stop_all_threads): Likewise.
14987 (handle_inferior_event): Likewise.
14988 (restart_threads): Likewise.
14989 (finish_step_over): Likewise.
14990 (keep_going_stepped_thread): Likewise.
14991 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14992 (linux_handle_extended_wait): Likewise.
14993 * record-btrace.c (get_thread_current_frame_id): Likewise.
14994 * record-full.c (record_full_wait_1): Likewise.
14995 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14996 * target.c (target_resume): Likewise.
14997 * thread.c (set_running_thread): Likewise.
14998
e409c542
AKS
149992020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15000
15001 * f-valprint.c (f77_print_array_1): Changed datatype of index
15002 variable to LONGEST from int to enable it to contain bound
15003 values correctly.
15004
ee98c0da
MR
150052020-02-03 Maciej W. Rozycki <macro@wdc.com>
15006
15007 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15008 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15009 offsets according to FLEN determined.
15010 (riscv_linux_nat_target::read_description): Determine FLEN
15011 dynamically.
15012 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15013 according to FLEN determined.
15014 (riscv_linux_nat_target::store_registers): Likewise.
15015
aa66aac4
SV
150162020-02-01 Shahab Vahedi <shahab@synopsys.com>
15017
15018 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15019 when reg->group is empty and reggroup is not.
15020
fd9faca8
TT
150212020-01-31 Tom Tromey <tromey@adacore.com>
15022
15023 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15024 Call beneath target's mourn_inferior after unpushing.
15025
42330a68
AB
150262020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15027
15028 PR tui/9765
15029 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15030 have enough lines to fill the screen, still return the lowest
15031 address we found.
15032
7a27a45b
AB
150332020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15034
15035 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15036 '-', '<', and '>' commands.
15037
c47f70e2
PA
150382020-01-29 Pedro Alves <palves@redhat.com>
15039 Sergio Durigan Junior <sergiodj@redhat.com>
15040
15041 * infcmd.c (construct_inferior_arguments): Assert that
15042 'argc' is greater than 0.
15043
5133a315
LM
150442020-01-29 Luis Machado <luis.machado@linaro.org>
15045
15046 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15047 (BRK_INSN_MASK): Define to 0xd4200000.
15048 (aarch64_program_breakpoint_here_p): New function.
15049 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15050 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15051 breakpoint.c.
15052 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15053 breakpoint.h
15054 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15055 call gdbarch_program_breakpoint_here_p.
15056 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15057 default_program_breakpoint_here_p, changed return type to bool and
15058 simplified.
15059 * breakpoint.h (program_breakpoint_here): Moved prototype to
15060 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15061 return type to bool.
15062 * gdbarch.c: Regenerate.
15063 * gdbarch.h: Regenerate.
15064 * gdbarch.sh (program_breakpoint_here_p): New method.
15065 * infrun.c (handle_signal_stop): Call
15066 gdbarch_program_breakpoint_here_p.
15067
168f8c6b
TT
150682020-01-26 Tom Tromey <tom@tromey.com>
15069
15070 * ctfread.c (struct ctf_fp_info): Reindent.
15071 (_initialize_ctfread): Remove.
15072
128a391f
TT
150732020-01-26 Tom Tromey <tom@tromey.com>
15074
15075 * psymtab.c (partial_map_expand_apply)
15076 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15077 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15078 (psym_print_stats, psym_expand_symtabs_for_function)
15079 (psym_map_symbol_filenames, psym_map_matching_symbols)
15080 (psym_expand_symtabs_matching)
15081 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15082 (maintenance_check_psymtabs): Use new methods.
15083 * psympriv.h (struct partial_symtab) <readin_p,
15084 get_compunit_symtab>: New methods.
15085 <readin, compunit_symtab>: Remove members.
15086 (struct standard_psymtab): New.
15087 (struct legacy_psymtab): Derive from standard_psymtab.
15088 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15089 standard_psymtab.
15090 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15091
0494dbec
TT
150922020-01-26 Tom Tromey <tom@tromey.com>
15093
15094 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15095 read_dependencies. Add assert.
15096 * psymtab.c (partial_symtab::read_dependencies): New method.
15097 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15098 method.
15099 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15100 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15101 read_dependencies.
15102 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15103 Add assert.
15104
8566b89b
TT
151052020-01-26 Tom Tromey <tom@tromey.com>
15106
15107 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15108 Call expand_psymtab.
15109 (xcoff_read_symtab): Call expand_psymtab.
15110 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15111 legacy_expand_psymtab.
15112 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15113 method.
15114 (struct legacy_psymtab) <expand_psymtab>: Implement.
15115 <legacy_expand_psymtab>: New member.
15116 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15117 (parse_partial_symbols): Set legacy_expand_psymtab.
15118 (psymtab_to_symtab_1): Change argument order. Call
15119 expand_psymtab.
15120 (new_psymtab): Set legacy_expand_psymtab.
15121 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15122 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15123 expand_psymtab.
15124 (dwarf2_psymtab::expand_psymtab): Rename from
15125 psymtab_to_symtab_1. Call expand_psymtab.
15126 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15127 (dbx_end_psymtab): Likewise.
15128 (dbx_psymtab_to_symtab_1): Change argument order. Call
15129 expand_psymtab.
15130 (dbx_read_symtab): Call expand_psymtab.
15131 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15132 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15133 (ctf_psymtab::read_symtab): Call expand_psymtab.
15134
077cbab2
TT
151352020-01-26 Tom Tromey <tom@tromey.com>
15136
15137 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15138 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15139 messages.
15140 * mdebugread.c (mdebug_read_symtab): Remove prints.
15141 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15142 assert.
15143 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15144
891813be
TT
151452020-01-26 Tom Tromey <tom@tromey.com>
15146
15147 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15148 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15149 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15150 legacy_symtab.
15151 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15152 * psymtab.c (psymtab_to_symtab): Call method.
15153 (dump_psymtab): Update.
15154 * psympriv.h (struct partial_symtab): Add virtual destructor.
15155 <read_symtab>: New method.
15156 (struct legacy_symtab): New.
15157 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15158 (struct pst_map) <pst>: Now a legacy_psymtab.
15159 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15160 (new_psymtab): Use legacy_psymtab.
15161 * dwarf2read.h (struct dwarf2_psymtab): New.
15162 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15163 * dwarf2read.c (dwarf2_create_include_psymtab)
15164 (dwarf2_build_include_psymtabs, create_type_unit_group)
15165 (create_partial_symtab, process_psymtab_comp_unit_reader)
15166 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15167 (set_partial_user): Use dwarf2_psymtab.
15168 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15169 (psymtab_to_symtab_1, process_full_comp_unit)
15170 (process_full_type_unit, dwarf2_ranges_read)
15171 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15172 (dwarf_decode_lines): Use dwarf2_psymtab.
15173 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15174 (add_address_entry_worker, write_one_signatured_type)
15175 (recursively_count_psymbols, recursively_write_psymbols)
15176 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15177 (write_debug_names): Likewise.
15178 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15179 <pst>: Now a legacy_psymtab.
15180 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15181 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15182 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15183 * ctfread.c (struct ctf_psymtab): New.
15184 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15185 ctf_psymtab.
15186 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15187 (create_partial_symtab): Return a ctf_psymtab.
15188 (scan_partial_symbols): Update.
15189
c3693a1d
TT
151902020-01-26 Tom Tromey <tom@tromey.com>
15191
15192 * xcoffread.c (xcoff_start_psymtab): Use new.
15193 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15194 renamed from start_psymtab_common.
15195 * psympriv.h (struct partial_symtab): Add new constructor.
15196 (start_psymtab_common): Don't declare.
15197 * mdebugread.c (parse_partial_symbols): Use new.
15198 * dwarf2read.c (create_partial_symtab): Use new.
15199 * dbxread.c (start_psymtab): Use new.
15200 * ctfread.c (create_partial_symtab): Use new.
15201
32caafd0
TT
152022020-01-26 Tom Tromey <tom@tromey.com>
15203
15204 * xcoffread.c (xcoff_end_psymtab): Use new.
15205 * psymtab.c (start_psymtab_common): Use new.
15206 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15207 Update.
15208 * psympriv.h (struct partial_symtab): Add parameters to
15209 constructor. Don't inline.
15210 (allocate_psymtab): Don't declare.
15211 * mdebugread.c (new_psymtab): Use new.
15212 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15213 * dbxread.c (dbx_end_psymtab): Use new.
15214
abaa2f23
TT
152152020-01-26 Tom Tromey <tom@tromey.com>
15216
15217 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15218 allocate_psymtab. Update documentation.
15219 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15220 allocate_psymtab. Do not use new.
15221 (allocate_psymtab): Use new. Update.
15222
6d94535f
TT
152232020-01-26 Tom Tromey <tom@tromey.com>
15224
15225 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15226 * psymtab.c (psym_print_stats): Update.
15227 * psympriv.h (struct partial_symtab) <readin,
15228 psymtabs_addrmap_supported, anonymous>: Now bool.
15229 * mdebugread.c (psymtab_to_symtab_1): Update.
15230 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15231 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15232 (process_full_comp_unit, process_full_type_unit): Update.
15233 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15234 * ctfread.c (psymtab_to_symtab): Update.
15235
6f17252b
TT
152362020-01-26 Tom Tromey <tom@tromey.com>
15237
15238 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15239 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15240 * psymtab.c (psymtab_storage): Delete psymtabs.
15241 (psymtab_storage::allocate_psymtab): Use new.
15242 (psymtab_storage::discard_psymtab): Use delete.
15243 * psympriv.h (struct partial_symtab): Add constructor and
15244 initializers.
15245
f6f1cebc
TT
152462020-01-26 Tom Tromey <tom@tromey.com>
15247
15248 * machoread.c: Do not include psympriv.h.
15249
e47e48f6
PW
152502020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15251
15252 * NEWS: Mention the new option and the set/show commands.
15253
a2fedca9
PW
152542020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15255
15256 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15257 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15258 (validate_exec_file): New variables, enums, functions.
15259 (exec_file_locate_attach, print_section_info): Style the filenames.
15260 (_initialize_exec): Install show_exec_file_mismatch_command and
15261 set_exec_file_mismatch_command.
15262 * gdbcore.h (validate_exec_file): Declare.
15263 * infcmd.c (attach_command): Call validate_exec_file.
15264 * remote.c ( remote_target::remote_add_inferior): Likewise.
15265
7ffa82e1
AB
152662020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15267
15268 * frame.c (find_frame_sal): Move call to get_next_frame into more
15269 inner scope.
15270 * inline-frame.c (inilne_state) <inline_state>: Update argument
15271 types.
15272 (inilne_state) <skipped_symbol>: Rename to...
15273 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15274 (skip_inline_frames): Build vector of skipped symbols and use this
15275 to reate the inline_state.
15276 (inline_skipped_symbol): Add a comment and some assertions, fetch
15277 skipped symbol from the list.
15278
3d92a3e3
AB
152792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15280
15281 * buildsym.c (lte_is_less_than): Delete.
15282 (buildsym_compunit::end_symtab_with_blockvector): Create local
15283 lambda function to sort line table entries, and use
15284 std::stable_sort instead of std::sort.
15285 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15286 markers when looking for a previous line.
15287
94a72be7
AB
152882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15289
15290 * dwarf2read.c (lnp_state_machine::record_line): Include
15291 end_sequence parameter in debug print out. Record the line if we
15292 are at an end_sequence marker even if it's not the start of a
15293 statement.
15294 * symmisc.c (maintenance_print_one_line_table): Print end of
15295 sequence markers with 'END' not '0'.
15296
53af73bf
PA
152972020-01-24 Pedro Alves <palves@redhat.com>
15298
15299 PR gdb/25410
15300 * thread.c (scoped_restore_current_thread::restore): Use
15301 switch_to_inferior_no_thread.
15302 * exec.c: Include "progspace-and-thread.h".
15303 (add_target_sections, remove_target_sections):
15304 scoped_restore_current_pspace_and_thread instead of
15305 scoped_restore_current_thread.
15306 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15307 and aspace to the inferior before calling clone_program_space.
15308 Remove stale comment.
15309
3050c6f4
CB
153102020-01-24 Christian Biesinger <cbiesinger@google.com>
15311
15312 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15313 (arm_netbsd_nat_target::fetch_registers): ...this.
15314 (arm_nbsd_nat_target::store_registers): Rename to...
15315 (arm_netbsd_nat_target::store_registers): ...this.
15316
73685c7e
CB
153172020-01-24 Christian Biesinger <cbiesinger@google.com>
15318
15319 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15320 register_t.
15321
89203d40
CB
153222020-01-24 Christian Biesinger <cbiesinger@google.com>
15323
15324 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15325 Update comment.
15326 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15327 Likewise.
15328 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15329 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15330 the correct replacement (iterate_over_regset_sections).
15331 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15332 Update comment.
15333
1ba1ac88
AB
153342020-01-24 Graham Markall <graham.markall@embecosm.com>
15335
15336 PR gdb/23718
15337 * gdb/python/python.c (execute_gdb_command): Call
15338 async_enable_stdin in catch block.
15339
f3364a6d
AB
153402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15341
15342 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15343 SWITCH_THRU_ALL_UIS.
15344
733d0a67
AB
153452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15346
15347 PR tui/9765
15348 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15349 comment, add extra parameter, and update to store previous symbol
15350 when appropriate.
15351 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15352 add extra parameter.
15353 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15354 remove unneeded parameter, add try/catch around gdb_print_insn,
15355 rewrite to add items to asm_lines vector.
15356 (tui_find_backward_disassembly_start_address): New function.
15357 (tui_find_disassembly_address): Updated throughout.
15358 (tui_disasm_window::set_contents): Update for changes to
15359 tui_disassemble.
15360 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15361 number of lines to scroll.
15362
b3b3bada
SM
153632020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15364
15365 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15366 (SECT_OFF_DATA): Likewise.
15367 (SECT_OFF_RODATA): Likewise.
15368 (SECT_OFF_TEXT): Likewise.
15369 (SECT_OFF_BSS): Likewise.
15370 (struct objfile) <text_section_offset, data_section_offset>: New
15371 methods.
15372 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15373 objfile::text_section_offset.
15374 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15375 * coffread.c (coff_symtab_read): Likewise.
15376 (enter_linenos): Likewise.
15377 (process_coff_symbol): Likewise.
15378 * ctfread.c (get_objfile_text_range): Likewise.
15379 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15380 Use objfile::data_section_offset.
15381 * dwarf2-frame.c (execute_cfa_program): Use
15382 objfile::text_section_offset.
15383 (dwarf2_frame_find_fde): Likewise.
15384 * dwarf2read.c (create_addrmap_from_index): Likewise.
15385 (create_addrmap_from_aranges): Likewise.
15386 (dw2_find_pc_sect_compunit_symtab): Likewise.
15387 (process_psymtab_comp_unit_reader): Likewise.
15388 (add_partial_symbol): Likewise.
15389 (add_partial_subprogram): Likewise.
15390 (process_full_comp_unit): Likewise.
15391 (read_file_scope): Likewise.
15392 (read_func_scope): Likewise.
15393 (read_lexical_block_scope): Likewise.
15394 (read_call_site_scope): Likewise.
15395 (dwarf2_rnglists_process): Likewise.
15396 (dwarf2_ranges_process): Likewise.
15397 (dwarf2_ranges_read): Likewise.
15398 (dwarf_decode_lines_1): Likewise.
15399 (new_symbol): Likewise.
15400 (dwarf2_fetch_die_loc_sect_off): Likewise.
15401 (dwarf2_per_cu_text_offset): Likewise.
15402 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15403 * hppa-tdep.c (read_unwind_info): Likewise.
15404 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15405 * psympriv.h (struct partial_symtab): Likewise.
15406 * psymtab.c (find_pc_sect_psymtab): Likewise.
15407 * solib-svr4.c (enable_break): Likewise.
15408 * stap-probe.c (relocate_address): Use
15409 objfile::data_section_offset.
15410 * xcoffread.c (enter_line_range): Use
15411 objfile::text_section_offset.
15412 (read_xcoff_symtab): Likewise.
15413
ab53f382
SM
154142020-01-23 Simon Marchi <simon.marchi@efficios.com>
15415
15416 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15417 declaration to narrower scopes.
15418
e7eee665
SM
154192020-01-23 Simon Marchi <simon.marchi@efficios.com>
15420
15421 * darwin-nat.h (struct darwin_exception_msg, enum
15422 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15423 Move up.
15424 (class darwin_nat_target) <wait_1, check_new_threads,
15425 decode_exception_message, decode_message, stop_inferior,
15426 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15427 * darwin-nat.c (darwin_check_new_threads): Rename to...
15428 (darwin_nat_target::check_new_threads): ... this.
15429 (darwin_suspend_inferior_it): Remove.
15430 (darwin_decode_exception_message): Rename to...
15431 (darwin_nat_target::decode_exception_message): ... this.
15432 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15433 (darwin_decode_message): Rename to...
15434 (darwin_nat_target::decode_message): ... this.
15435 (cancel_breakpoint): Rename to...
15436 (darwin_nat_target::cancel_breakpoint): ... this.
15437 (darwin_wait): Rename to...
15438 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15439 instead of iterate_over_inferiors.
15440 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15441 (darwin_stop_inferior): Rename to...
15442 (darwin_nat_target::stop_inferior): ... this.
15443 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15444 (darwin_init_thread_list): Rename to...
15445 (darwin_nat_target::init_thread_list): ... this.
15446 (darwin_ptrace_him): Rename to...
15447 (darwin_nat_target::ptrace_him): ... this.
15448 (darwin_nat_target::create_inferior): Pass lambda function to
15449 fork_inferior.
15450 (darwin_nat_target::detach): Call stop_inferior instead of
15451 darwin_stop_inferior.
15452 * fork-inferior.h (fork_inferior): Change init_trace_fun
15453 parameter to gdb::function_view.
15454 * fork-inferior.c (fork_inferior): Likewise.
15455
c162ed3e
HD
154562020-01-23 Hannes Domani <ssbssa@yahoo.de>
15457
15458 * i386-cygwin-tdep.c (core_process_module_section): Update.
15459 * windows-nat.c (struct lm_info_windows): Add text_offset.
15460 (windows_xfer_shared_libraries): Update.
15461 * windows-tdep.c (windows_xfer_shared_library):
15462 Add text_offset_cached argument.
15463 * windows-tdep.h (windows_xfer_shared_library): Update.
15464
a1237872
SM
154652020-01-21 Simon Marchi <simon.marchi@efficios.com>
15466
15467 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15468
b3ee6dd9
SM
154692020-01-21 Simon Marchi <simon.marchi@efficios.com>
15470
15471 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15472 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15473 replace with range-based for.
15474 (gdbsim_interrupt_inferior): Remove.
15475 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15476 with a range-based for. Inline code from
15477 gdbsim_interrupt_inferior.
15478
f9fac3c8
SM
154792020-01-21 Simon Marchi <simon.marchi@efficios.com>
15480
15481 * infrun.c (proceed): Fix indentation.
15482
f6474de9
TT
154832020-01-21 Tom Tromey <tromey@adacore.com>
15484
15485 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15486 * python/python.c (python_extension_ops): Update.
15487 (gdbpy_colorize): New function.
15488 * python/lib/gdb/__init__.py (colorize): New function.
15489 * extension.h (ext_lang_colorize): Declare.
15490 * extension.c (ext_lang_colorize): New function.
15491 * extension-priv.h (struct extension_language_ops) <colorize>: New
15492 member.
15493 * cli/cli-style.c (_initialize_cli_style): Update help text.
15494
f0c702d4
LM
154952020-01-21 Luis Machado <luis.machado@linaro.org>
15496
15497 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15498 <cond>: Change type to bool.
15499 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15500 (aarch64_displaced_step_cb): Likewise.
15501 (aarch64_displaced_step_tb): Likewise.
15502
1ab139e5
LM
155032020-01-21 Luis Machado <luis.machado@linaro.org>
15504
15505 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15506 output.
15507
0c271889
LM
155082020-01-21 Luis Machado <luis.machado@linaro.org>
15509
15510 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15511 <pc_adjust>: Adjust the documentation.
15512 (aarch64_displaced_step_fixup): Check if PC really moved before
15513 adjusting it.
15514
4d89c1c7
TT
155152020-01-19 Tom Tromey <tom@tromey.com>
15516
15517 * disasm.c (~gdb_disassembler): New destructor.
15518 (gdb_buffered_insn_length): Call disassemble_free_target.
15519 * disasm.h (class gdb_disassembler): Declare destructor. Use
15520 DISABLE_COPY_AND_ASSIGN.
15521
c0ab21c2
TT
155222020-01-19 Tom Tromey <tom@tromey.com>
15523
15524 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15525 (die_reader_func_ftype): Remove.
15526 (cutu_reader): New class.
15527 (dw2_get_file_names_reader): Remove "data" parameter.
15528 (dw2_get_file_names): Use cutu_reader.
15529 (create_debug_type_hash_table): Update.
15530 (read_cutu_die_from_dwo): Update comment.
15531 (lookup_dwo_unit): Add dwo_name parameter.
15532 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15533 die_reader_func_ftype and data parameters.
15534 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15535 Remove die_reader_func_ftype and data parameters.
15536 (~cutu_reader): New; from init_cutu_and_read_dies.
15537 (cutu_reader::cutu_reader): Rename from
15538 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15539 and data parameters.
15540 (init_cutu_and_read_dies_simple): Remove.
15541 (struct process_psymtab_comp_unit_data): Remove.
15542 (process_psymtab_comp_unit_reader): Remove data parameter; add
15543 want_partial_unit and pretend_language parameters.
15544 (process_psymtab_comp_unit): Use cutu_reader.
15545 (build_type_psymtabs_reader): Remove data parameter.
15546 (build_type_psymtabs_1): Use cutu_reader.
15547 (process_skeletonless_type_unit): Likewise.
15548 (load_partial_comp_unit_reader): Remove.
15549 (load_partial_comp_unit): Use cutu_reader.
15550 (load_full_comp_unit_reader): Remove.
15551 (load_full_comp_unit): Use cutu_reader.
15552 (struct create_dwo_cu_data): Remove.
15553 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15554 dwo_unit parameters.
15555 (create_cus_hash_table): Use cutu_reader.
15556 (struct dwarf2_read_addr_index_data): Remove.
15557 (dwarf2_read_addr_index_reader): Remove.
15558 (dwarf2_read_addr_index): Use cutu_reader.
15559 (read_signatured_type_reader): Remove.
15560 (read_signatured_type): Use cutu_reader.
15561
45bbae5c
TT
155622020-01-19 Tom Tromey <tom@tromey.com>
15563
15564 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15565 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15566 (tui_wrefresh): Declare.
15567 * tui/tui-wingeneral.c (suppress_output): New global.
15568 (tui_suppress_output, ~tui_suppress_output): New constructor and
15569 destructor.
15570 (tui_wrefresh): New function.
15571 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15572 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15573 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15574 method.
15575 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15576 tui_wrefresh.
15577 (tui_data_window::no_refresh): New method.
15578 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15579 (tui_reg_command): Use tui_suppress_output
15580 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15581 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15582 method.
15583 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15584
4f13c1c0
TT
155852020-01-19 Tom Tromey <tom@tromey.com>
15586
15587 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15588 Handle case where symtab is null.
15589
fa47e446
SM
155902020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15591
15592 * linux-fork.c (one_fork_p): Simplify.
15593
26f42329
SM
155942020-01-17 Simon Marchi <simon.marchi@efficios.com>
15595
15596 * top.c (struct qt_args): Remove.
15597 (kill_or_detach): Change return type to void, replace `void *`
15598 parameter with a proper one.
15599 (print_inferior_quit_action): Likewise.
15600 (quit_confirm): Use range-based for loop to iterate over inferiors.
15601 (quit_force): Likewise.
15602
a9ac81b1
SM
156032020-01-17 Simon Marchi <simon.marchi@efficios.com>
15604
15605 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15606 `void *` parameter with proper parameters.
15607 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15608 (print_one_inferior): Change return type to void, replace `void *`
15609 parameter with proper parameters.
15610 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15611 inferiors.
15612 (get_other_inferior): Remove.
15613 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15614 inferiors.
15615
788eca49
SM
156162020-01-17 Simon Marchi <simon.marchi@efficios.com>
15617
15618 * mi/mi-interp.c (report_initial_inferior): Remove.
15619 (mi_interp::init): Use range-based for to iterate over inferiors.
15620
d9bc85b6
SM
156212020-01-17 Simon Marchi <simon.marchi@efficios.com>
15622
15623 * python/py-inferior.c (build_inferior_list): Remove.
15624 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15625
40c94099
CB
156262020-01-16 Christian Biesinger <cbiesinger@google.com>
15627
15628 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15629 (btrace_stitch_trace): Likewise.
15630 * charset.c (intermediate_encoding): Likewise (vaild).
15631 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15632 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15633 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15634
e0cdfe3c
HD
156352020-01-16 Hannes Domani <ssbssa@yahoo.de>
15636
15637 * windows-tdep.c (windows_get_tlb_type):
15638 Add rtl_user_process_parameters type.
15639
790f1718 156402020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15641 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15642
15643 PR build/24805
15644 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15645 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15646 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15647 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15648 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15649 (ps_plog): Redeclare exported functions with default visibility.
15650
3112ed97
NA
156512020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15652
15653 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15654 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15655
8dc3273e
SM
156562020-01-15 Simon Marchi <simon.marchi@efficios.com>
15657
15658 * infcmd.c (post_create_inferior): Use get_thread_regcache
15659 instead of get_current_regcache.
15660
ff47f4f0
TT
156612020-01-14 Tom Tromey <tom@tromey.com>
15662
15663 PR symtab/12535:
15664 * python/python.c (gdbpy_decode_line): Treat empty string the same
15665 as no argument.
15666
975f45b7
TT
156672020-01-14 Tom Tromey <tom@tromey.com>
15668
15669 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15670
25e57356
TT
156712020-01-14 Tom Tromey <tom@tromey.com>
15672
15673 * nat/linux-btrace.c: Don't include <config.h>.
15674 * nat/linux-ptrace.c: Don't include <config.h>.
15675 * nat/x86-linux-dregs.c: Don't include <config.h>.
15676
05ea2a05
TT
156772020-01-14 Tom Tromey <tom@tromey.com>
15678
15679 * configure: Rebuild.
15680 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15681
01027315
TT
156822020-01-14 Tom Tromey <tom@tromey.com>
15683
15684 * nat/x86-linux-dregs.c: Include configh.h.
15685 * nat/linux-ptrace.c: Include configh.h.
15686 * nat/linux-btrace.c: Include configh.h.
15687 * defs.h: Include config.h, bfd.h.
15688 * configure.ac: Don't source common.host.
15689 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15690 * configure: Rebuild.
15691 * acinclude.m4: Update path.
15692 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15693 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15694 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15695 (CLIBS): Add LIBSUPPORT.
15696 (CDEPS): Likewise.
15697 (COMMON_SFILES): Remove gdbsupport files.
15698 (HFILES_NO_SRCDIR): Likewise.
15699 (stamp-version): Update path to create-version.sh.
15700 (ALLDEPFILES): Remove gdbsupport files.
15701
b2ceabe8
TT
157022020-01-14 Tom Tromey <tom@tromey.com>
15703
15704 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15705 USE_WIN32API when needed.
15706 * configure.ac (USE_WIN32API): Don't define.
15707 (WIN32LIBS): Use WIN32APILIBS.
15708 * configure: Rebuild.
15709
25c51f71
TT
157102020-01-14 Tom Tromey <tom@tromey.com>
15711
15712 * configure: Rebuild.
15713 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15714
717c684d
BE
157152020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15716
15717 * skip.c (skip_function_command): Make skip w/o arguments use the
15718 name of the inlined function if pc is inside any inlined function.
15719
7da6a5b9
LM
157202020-01-14 Luis Machado <luis.machado@linaro.org>
15721
15722 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15723 * infrun.c (resume_1): Likewise.
15724 (handle_inferior_event): Remove stale comment.
15725 * linux-nat.c (linux_nat_target::resume): Update comments.
15726 (save_stop_reason): Likewise.
15727 (linux_nat_filter_event): Likewise.
15728 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15729
44e4c775
AB
157302020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15731
15732 * elfread.c (record_minimal_symbol): Set section index to 0 for
15733 non-allocatable sections.
15734
18a8505e
AT
15735
157362020-01-13 Ali Tamur <tamur@google.com>
15737
15738 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15739 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15740 to gdb::optional. Update comments.
15741 (dwo_file): Update comments.
15742 (read_attribute): Update API to take an additional out parameter,
15743 need_reprocess. This is used to mark attributes that need other
15744 attributes (e.g. str_offsets_base) for correct computation which may not
15745 have been read yet.
15746 (read_attribute_reprocess): New function declaration.
15747 (read_addr_index): Likewise.
15748 (read_dwo_str_index): Likewise.
15749 (read_stub_str_index): Likewise.
15750 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15751 (lookup_addr_base): New function definition.
15752 (lookup_ranges_base): Likewise.
15753 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15754 lookup_ranges_base.
15755 (init_cutu_and_read_dies): Update comments.
15756 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15757 unit. This is used to inherit parent's str_offsets_base and addr_base.
15758 Update comments.
15759 (init_cutu_and_read_dies_simple): Reflect API changes.
15760 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15761 (create_cus_hash_table): Change API to take parent compile unit.
15762 Reflect API changes.
15763 (open_and_init_dwo_file): Reflect API changes.
15764 (dwarf2_get_pc_bounds): Update comments.
15765 (dwarf2_record_block_ranges): Likewise.
15766 (read_full_die_1): Change implementation to reprocess attributes that
15767 need str_offsets_base and addr_base.
15768 (partial_die_info::read): Likewise.
15769 (read_attribute_reprocess): New function definition.
15770 (read_attribute_value): Change API to take an additional out parameter,
15771 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15772 when a non-dwo compile unit has index based attributes.
15773 (read_attribute): Reflect API changes.
15774 (read_addr_index_1): Reflect API changes. Update comments.
15775 (dwarf2_read_addr_index_data): Reflect API changes.
15776 (dwarf2_read_addr_index): Likewise.
15777 (read_str_index): Change API and implementation. This becomes a helper
15778 to be used by the new string index related methods. Update error
15779 message and comments.
15780 (read_dwo_str_index): New function definition.
15781 (read_stub_str_index): Likewise.
15782 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15783 * symfile.h (dwarf2_debug_sections): Likewise.
15784 * xcoffread.c (dwarf2_debug_sections): Likewise.
15785
0cac9354
SM
157862020-01-13 Simon Marchi <simon.marchi@efficios.com>
15787
15788 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15789 core_reg_sect type to gdb_byte *.
15790 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15791 * cris-tdep.c (fetch_core_registers): Likewise.
15792 * corelow.c (core_target::get_core_register_section): Change
15793 type of `contents` to gdb::byte_vector.
15794
9a6d629c
AB
157952020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15796
15797 * tui/tui-wingeneral.c (box_win): Position the title in the center
15798 of the border.
15799
d8b2f9e3
SM
158002020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15801
15802 * corelow.c (core_target::get_core_register_section): Use
15803 std::vector instead of alloca.
15804
bb564c58
SM
158052020-01-13 Simon Marchi <simon.marchi@efficios.com>
15806
15807 * warning.m4: Add -Wmissing-declarations to build_warnings.
15808 * configure: Re-generate.
15809
6b366111
SM
158102020-01-13 Simon Marchi <simon.marchi@efficios.com>
15811
15812 * python/python.c (init__gdb_module): Add declaration.
15813
6c265988
SM
158142020-01-13 Simon Marchi <simon.marchi@efficios.com>
15815
15816 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15817 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15818 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15819 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15820 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15821 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15822 * ada-exp.y (_initialize_ada_exp): Add declaration.
15823 * ada-lang.c (_initialize_ada_language): Add declaration.
15824 * ada-tasks.c (_initialize_tasks): Add declaration.
15825 * agent.c (_initialize_agent): Add declaration.
15826 * aix-thread.c (_initialize_aix_thread): Add declaration.
15827 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15828 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15829 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15830 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15831 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15832 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15833 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15834 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15835 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15836 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15837 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15838 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15839 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15840 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15841 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15842 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15843 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15844 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15845 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15846 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15847 * annotate.c (_initialize_annotate): Add declaration.
15848 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15849 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15850 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15851 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15852 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15853 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15854 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15855 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15856 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15857 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15858 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15859 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15860 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15861 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15862 * auto-load.c (_initialize_auto_load): Add declaration.
15863 * auxv.c (_initialize_auxv): Add declaration.
15864 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15865 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15866 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15867 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15868 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15869 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15870 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15871 * breakpoint.c (_initialize_breakpoint): Add declaration.
15872 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15873 * btrace.c (_initialize_btrace): Add declaration.
15874 * charset.c (_initialize_charset): Add declaration.
15875 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15876 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15877 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15878 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15879 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15880 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15881 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15882 * coffread.c (_initialize_coffread): Add declaration.
15883 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15884 * compile/compile.c (_initialize_compile): Add declaration.
15885 * complaints.c (_initialize_complaints): Add declaration.
15886 * completer.c (_initialize_completer): Add declaration.
15887 * copying.c (_initialize_copying): Add declaration.
15888 * corefile.c (_initialize_core): Add declaration.
15889 * corelow.c (_initialize_corelow): Add declaration.
15890 * cp-abi.c (_initialize_cp_abi): Add declaration.
15891 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15892 * cp-support.c (_initialize_cp_support): Add declaration.
15893 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15894 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15895 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15896 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15897 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15898 * ctfread.c (_initialize_ctfread): Add declaration.
15899 * d-lang.c (_initialize_d_language): Add declaration.
15900 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15901 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15902 * dbxread.c (_initialize_dbxread): Add declaration.
15903 * dcache.c (_initialize_dcache): Add declaration.
15904 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15905 * disasm.c (_initialize_disasm): Add declaration.
15906 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15907 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15908 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15909 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15910 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15911 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15912 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15913 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15914 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15915 * elfread.c (_initialize_elfread): Add declaration.
15916 * exec.c (_initialize_exec): Add declaration.
15917 * extension.c (_initialize_extension): Add declaration.
15918 * f-lang.c (_initialize_f_language): Add declaration.
15919 * f-valprint.c (_initialize_f_valprint): Add declaration.
15920 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15921 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15922 * filesystem.c (_initialize_filesystem): Add declaration.
15923 * findcmd.c (_initialize_mem_search): Add declaration.
15924 * findvar.c (_initialize_findvar): Add declaration.
15925 * fork-child.c (_initialize_fork_child): Add declaration.
15926 * frame-base.c (_initialize_frame_base): Add declaration.
15927 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15928 * frame.c (_initialize_frame): Add declaration.
15929 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15930 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15931 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15932 * gcore.c (_initialize_gcore): Add declaration.
15933 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15934 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15935 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15936 * gdbarch.c (_initialize_gdbarch): Add declaration.
15937 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15938 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15939 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15940 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15941 * go-lang.c (_initialize_go_language): Add declaration.
15942 * go32-nat.c (_initialize_go32_nat): Add declaration.
15943 * guile/guile.c (_initialize_guile): Add declaration.
15944 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15945 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15946 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15947 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15948 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15949 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15950 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15951 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15952 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15953 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15954 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15955 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15956 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15957 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15958 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15959 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15960 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15961 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15962 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15963 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15964 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15965 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15966 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15967 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15968 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15969 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15970 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15971 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15972 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15973 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15974 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15975 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15976 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15977 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15978 * infcall.c (_initialize_infcall): Add declaration.
15979 * infcmd.c (_initialize_infcmd): Add declaration.
15980 * inflow.c (_initialize_inflow): Add declaration.
15981 * infrun.c (_initialize_infrun): Add declaration.
15982 * interps.c (_initialize_interpreter): Add declaration.
15983 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15984 * jit.c (_initialize_jit): Add declaration.
15985 * language.c (_initialize_language): Add declaration.
15986 * linux-fork.c (_initialize_linux_fork): Add declaration.
15987 * linux-nat.c (_initialize_linux_nat): Add declaration.
15988 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15989 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15990 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15991 * m2-lang.c (_initialize_m2_language): Add declaration.
15992 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15993 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15994 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15995 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15996 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15997 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15998 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15999 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16000 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16001 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16002 * machoread.c (_initialize_machoread): Add declaration.
16003 * macrocmd.c (_initialize_macrocmd): Add declaration.
16004 * macroscope.c (_initialize_macroscope): Add declaration.
16005 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16006 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16007 * maint.c (_initialize_maint_cmds): Add declaration.
16008 * mdebugread.c (_initialize_mdebugread): Add declaration.
16009 * memattr.c (_initialize_mem): Add declaration.
16010 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16011 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16012 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16013 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16014 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16015 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16016 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16017 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16018 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16019 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16020 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16021 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16022 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16023 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16024 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16025 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16026 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16027 * mipsread.c (_initialize_mipsread): Add declaration.
16028 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16029 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16030 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16031 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16032 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16033 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16034 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16035 * nto-procfs.c (_initialize_procfs): Add declaration.
16036 * objc-lang.c (_initialize_objc_language): Add declaration.
16037 * observable.c (_initialize_observer): Add declaration.
16038 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16039 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16040 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16041 * osabi.c (_initialize_gdb_osabi): Add declaration.
16042 * osdata.c (_initialize_osdata): Add declaration.
16043 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16044 * parse.c (_initialize_parse): Add declaration.
16045 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16046 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16047 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16048 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16049 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16050 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16051 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16052 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16053 * printcmd.c (_initialize_printcmd): Add declaration.
16054 * probe.c (_initialize_probe): Add declaration.
16055 * proc-api.c (_initialize_proc_api): Add declaration.
16056 * proc-events.c (_initialize_proc_events): Add declaration.
16057 * proc-service.c (_initialize_proc_service): Add declaration.
16058 * procfs.c (_initialize_procfs): Add declaration.
16059 * producer.c (_initialize_producer): Add declaration.
16060 * psymtab.c (_initialize_psymtab): Add declaration.
16061 * python/python.c (_initialize_python): Add declaration.
16062 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16063 * record-btrace.c (_initialize_record_btrace): Add declaration.
16064 * record-full.c (_initialize_record_full): Add declaration.
16065 * record.c (_initialize_record): Add declaration.
16066 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16067 * regcache.c (_initialize_regcache): Add declaration.
16068 * reggroups.c (_initialize_reggroup): Add declaration.
16069 * remote-notif.c (_initialize_notif): Add declaration.
16070 * remote-sim.c (_initialize_remote_sim): Add declaration.
16071 * remote.c (_initialize_remote): Add declaration.
16072 * reverse.c (_initialize_reverse): Add declaration.
16073 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16074 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16075 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16076 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16077 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16078 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16079 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16080 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16081 Add declaration.
16082 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16083 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16084 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16085 * rust-exp.y (_initialize_rust_exp): Add declaration.
16086 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16087 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16088 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16089 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16090 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16091 * score-tdep.c (_initialize_score_tdep): Add declaration.
16092 * ser-go32.c (_initialize_ser_dos): Add declaration.
16093 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16094 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16095 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16096 * ser-uds.c (_initialize_ser_socket): Add declaration.
16097 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16098 * serial.c (_initialize_serial): Add declaration.
16099 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16100 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16101 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16102 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16103 * skip.c (_initialize_step_skip): Add declaration.
16104 * sol-thread.c (_initialize_sol_thread): Add declaration.
16105 * solib-aix.c (_initialize_solib_aix): Add declaration.
16106 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16107 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16108 * solib-frv.c (_initialize_frv_solib): Add declaration.
16109 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16110 * solib-target.c (_initialize_solib_target): Add declaration.
16111 * solib.c (_initialize_solib): Add declaration.
16112 * source-cache.c (_initialize_source_cache): Add declaration.
16113 * source.c (_initialize_source): Add declaration.
16114 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16115 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16116 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16117 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16118 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16119 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16120 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16121 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16122 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16123 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16124 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16125 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16126 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16127 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16128 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16129 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16130 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16131 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16132 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16133 * stabsread.c (_initialize_stabsread): Add declaration.
16134 * stack.c (_initialize_stack): Add declaration.
16135 * stap-probe.c (_initialize_stap_probe): Add declaration.
16136 * std-regs.c (_initialize_frame_reg): Add declaration.
16137 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16138 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16139 * symfile.c (_initialize_symfile): Add declaration.
16140 * symmisc.c (_initialize_symmisc): Add declaration.
16141 * symtab.c (_initialize_symtab): Add declaration.
16142 * target.c (_initialize_target): Add declaration.
16143 * target-connection.c (_initialize_target_connection): Add
16144 declaration.
16145 * target-dcache.c (_initialize_target_dcache): Add declaration.
16146 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16147 * thread.c (_initialize_thread): Add declaration.
16148 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16149 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16150 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16151 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16152 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16153 * tracectf.c (_initialize_ctf): Add declaration.
16154 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16155 * tracefile.c (_initialize_tracefile): Add declaration.
16156 * tracepoint.c (_initialize_tracepoint): Add declaration.
16157 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16158 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16159 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16160 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16161 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16162 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16163 * tui/tui.c (_initialize_tui): Add declaration.
16164 * typeprint.c (_initialize_typeprint): Add declaration.
16165 * ui-style.c (_initialize_ui_style): Add declaration.
16166 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16167 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16168 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16169 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16170 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16171 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16172 * unittests/filtered_iterator-selftests.c
16173 (_initialize_filtered_iterator_selftests): Add declaration.
16174 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16175 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16176 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16177 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16178 * unittests/main-thread-selftests.c
16179 (_initialize_main_thread_selftests): Add declaration.
16180 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16181 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16182 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16183 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16184 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16185 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16186 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16187 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16188 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16189 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16190 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16191 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16192 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16193 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16194 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16195 declaration.
16196 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16197 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16198 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16199 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16200 * user-regs.c (_initialize_user_regs): Add declaration.
16201 * utils.c (_initialize_utils): Add declaration.
16202 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16203 * valops.c (_initialize_valops): Add declaration.
16204 * valprint.c (_initialize_valprint): Add declaration.
16205 * value.c (_initialize_values): Add declaration.
16206 * varobj.c (_initialize_varobj): Add declaration.
16207 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16208 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16209 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16210 * windows-nat.c (_initialize_windows_nat): Add declaration.
16211 (_initialize_check_for_gdb_ini): Add declaration.
16212 (_initialize_loadable): Add declaration.
16213 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16214 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16215 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16216 * xcoffread.c (_initialize_xcoffread): Add declaration.
16217 * xml-support.c (_initialize_xml_support): Add declaration.
16218 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16219 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16220 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16221 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16222
e2de1eec
SM
162232020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16224
16225 * regformats/regdat.sh: Generate declaration for init function.
16226
e0037b4c
SM
162272020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16228
16229 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16230 up.
16231 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16232 close_one_inferior>: New methods.
16233 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16234 pass down target to find_inferior_pid.
16235 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16236 Pass down target to find_inferior_ptid.
16237 (gdbsim_target::create_inferior): Pass down target to
16238 add_thread_silent.
16239 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16240 target down to find_inferior_ptid and switch_to_thread.
16241 (gdbsim_target::close): Update to call close_one_inferior.
16242 (struct resume_data): Remove.
16243 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16244 directly, rather than through a void pointer.
16245 (gdbsim_target::resume): Update to call resume_one_inferior.
16246
58920b5b
SM
162472020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16248
16249 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16250
4ec89149
PA
162512020-01-12 Pedro Alves <palves@redhat.com>
16252
16253 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16254 directly for the current inferior instead of
16255 discard_all_inferiors.
16256 (discard_all_inferiors): Delete.
16257
7c392d1d
TT
162582020-01-11 Tom Tromey <tom@tromey.com>
16259
16260 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16261 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16262 deprecated_safe_get_selected_frame.
16263
d9ebdab7
TBA
162642020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16265
16266 * inferior.c (print_inferior): Switch inferior before printing it.
16267
f3c469b9
PA
162682020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16269 Pedro Alves <palves@redhat.com>
16270
16271 * progspace-and-thread.c (switch_to_program_space_and_thread):
16272 Assert there's an inferior for PSPACE. Use
16273 switch_to_inferior_no_thread to switch the inferior too.
16274 * progspace.c (program_space::~program_space): Call
16275 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16276 (program_space::free_all_objfiles): Don't call clear_symtab_users
16277 here.
16278 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16279
65c574f6
PA
162802020-01-10 Pedro Alves <palves@redhat.com>
16281
16282 * NEWS: Mention multi-target debugging, "info connections", and
16283 "add-inferior -no-connection".
16284
2f4fcf00
PA
162852020-01-10 Pedro Alves <palves@redhat.com>
16286
16287 * infrun.c: Include "target-connection.h".
16288 (check_multi_target_resumption): New.
16289 (proceed): Call it.
16290 * target-connection.c (make_target_connection_string): Make
16291 extern.
16292 * target-connection.h (make_target_connection_string): Declare.
16293
121b3efd
PA
162942020-01-10 Pedro Alves <palves@redhat.com>
16295
16296 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16297 * inferior.c (uiout_field_connection): New function.
16298 (print_inferior): Add new "connection-id" column.
16299 (add_inferior_command): Show connection number/string of added
16300 inferior.
16301 * process-stratum-target.h
16302 (process_stratum_target::connection_string): New virtual method.
16303 (process_stratum_target::connection_number): New field.
16304 * remote.c (remote_target::connection_string): New override.
16305 * target-connection.c: New file.
16306 * target-connection.h: New file.
16307 * target.c (decref_target): Remove process_stratum targets from
16308 the connection list.
16309 (target_stack::push): Add process_stratum targets to the
16310 connection list.
16311
4f837581
PA
163122020-01-10 Pedro Alves <palves@redhat.com>
16313
16314 Revert:
16315 2016-04-12 Pedro Alves <palves@redhat.com>
16316 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16317 Remove references to name.
16318 * serial.h (struct serial) <name>: Delete.
16319
f4ec508e
PA
163202020-01-10 Pedro Alves <palves@redhat.com>
16321
16322 * gdbarch-selftests.c (register_to_value_test): Remove "target
16323 already pushed" check.
16324
5b6d1e4f
PA
163252020-01-10 Pedro Alves <palves@redhat.com>
16326 John Baldwin <jhb@FreeBSD.org>
16327
16328 * aarch64-linux-nat.c
16329 (aarch64_linux_nat_target::thread_architecture): Adjust.
16330 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16331 (task_command_1): Likewise.
16332 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16333 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16334 (aix_thread_target::store_registers)
16335 (aix_thread_target::thread_alive): Adjust.
16336 * amd64-fbsd-tdep.c: Include "inferior.h".
16337 (amd64fbsd_get_thread_local_address): Pass down target.
16338 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16339 thread's gdbarch instead of target_gdbarch.
16340 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16341 get_last_target_status.
16342 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16343 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16344 inferiors.
16345 (update_inserted_breakpoint_locations): Skip if inferiors with no
16346 execution.
16347 (update_global_location_list): When handling moribund locations,
16348 find representative inferior for location's pspace, and use thread
16349 count of its process_stratum target.
16350 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16351 * bsd-uthread.c (bsd_uthread_target::wait): Use
16352 as_process_stratum_target and adjust thread_change_ptid and
16353 add_thread calls.
16354 (bsd_uthread_target::update_thread_list): Use
16355 as_process_stratum_target and adjust find_thread_ptid,
16356 thread_change_ptid and add_thread calls.
16357 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16358 find_thread_ptid call.
16359 * corelow.c (add_to_thread_list): Adjust add_thread call.
16360 (core_target_open): Adjust add_thread_silent and thread_count
16361 calls.
16362 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16363 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16364 * event-top.c (async_disconnect): Pop targets from all inferiors.
16365 * exec.c (add_target_sections): Push exec target on all inferiors
16366 sharing the program space.
16367 (remove_target_sections): Remove the exec target from all
16368 inferiors sharing the program space.
16369 (exec_on_vfork): New.
16370 * exec.h (exec_on_vfork): Declare.
16371 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16372 Pass it down.
16373 (fbsd_nat_target::update_thread_list): Adjust.
16374 (fbsd_nat_target::resume): Adjust.
16375 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16376 down.
16377 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16378 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16379 get_thread_arch_regcache call.
16380 * fork-child.c (gdb_startup_inferior): Pass target down to
16381 startup_inferior and set_executing.
16382 * gdbthread.h (struct process_stratum_target): Forward declare.
16383 (add_thread, add_thread_silent, add_thread_with_info)
16384 (in_thread_list): Add process_stratum_target parameter.
16385 (find_thread_ptid(inferior*, ptid_t)): New overload.
16386 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16387 parameter.
16388 (all_threads()): Delete overload.
16389 (all_threads, all_non_exited_threads): Add process_stratum_target
16390 parameter.
16391 (all_threads_safe): Use brace initialization.
16392 (thread_count): Add process_stratum_target parameter.
16393 (set_resumed, set_running, set_stop_requested, set_executing)
16394 (threads_are_executing, finish_thread_state): Add
16395 process_stratum_target parameter.
16396 (switch_to_thread): Use is_current_thread.
16397 * i386-fbsd-tdep.c: Include "inferior.h".
16398 (i386fbsd_get_thread_local_address): Pass down target.
16399 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16400 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16401 have_inferiors check.
16402 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16403 (inf_ptrace_target::attach): Adjust.
16404 * infcall.c (run_inferior_call): Adjust.
16405 * infcmd.c (run_command_1): Pass target to
16406 scoped_finish_thread_state.
16407 (proceed_thread_callback): Skip inferiors with no execution.
16408 (continue_command): Rename 'all_threads' local to avoid hiding
16409 'all_threads' function. Adjust get_last_target_status call.
16410 (prepare_one_step): Adjust set_running call.
16411 (signal_command): Use user_visible_resume_target. Compare thread
16412 pointers instead of inferior_ptid.
16413 (info_program_command): Adjust to pass down target.
16414 (attach_command): Mark target's 'thread_executing' flag.
16415 (stop_current_target_threads_ns): New, factored out from ...
16416 (interrupt_target_1): ... this. Switch inferior before making
16417 target calls.
16418 * inferior-iter.h
16419 (struct all_inferiors_iterator, struct all_inferiors_range)
16420 (struct all_inferiors_safe_range)
16421 (struct all_non_exited_inferiors_range): Filter on
16422 process_stratum_target too. Remove explicit.
16423 * inferior.c (inferior::inferior): Push dummy target on target
16424 stack.
16425 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16426 Add process_stratum_target parameter, and pass it down.
16427 (have_live_inferiors): Adjust.
16428 (switch_to_inferior_and_push_target): New.
16429 (add_inferior_command, clone_inferior_command): Handle
16430 "-no-connection" parameter. Use
16431 switch_to_inferior_and_push_target.
16432 (_initialize_inferior): Mention "-no-connection" option in
16433 the help of "add-inferior" and "clone-inferior" commands.
16434 * inferior.h: Include "process-stratum-target.h".
16435 (interrupt_target_1): Use bool.
16436 (struct inferior) <push_target, unpush_target, target_is_pushed,
16437 find_target_beneath, top_target, process_target, target_at,
16438 m_stack>: New.
16439 (discard_all_inferiors): Delete.
16440 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16441 (all_inferiors, all_non_exited_inferiors): Add
16442 process_stratum_target parameter.
16443 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16444 (target_last_proc_target): New global.
16445 (follow_fork_inferior): Push target on new inferior. Pass target
16446 to add_thread_silent. Call exec_on_vfork. Handle target's
16447 reference count.
16448 (follow_fork): Adjust get_last_target_status call. Also consider
16449 target.
16450 (follow_exec): Push target on new inferior.
16451 (struct execution_control_state) <target>: New field.
16452 (user_visible_resume_target): New.
16453 (do_target_resume): Call target_async.
16454 (resume_1): Set target's threads_executing flag. Consider resume
16455 target.
16456 (commit_resume_all_targets): New.
16457 (proceed): Also consider resume target. Skip threads of inferiors
16458 with no execution. Commit resumtion in all targets.
16459 (start_remote): Pass current inferior to wait_for_inferior.
16460 (infrun_thread_stop_requested): Consider target as well. Pass
16461 thread_info pointer to clear_inline_frame_state instead of ptid.
16462 (infrun_thread_thread_exit): Consider target as well.
16463 (random_pending_event_thread): New inferior parameter. Use it.
16464 (do_target_wait): Rename to ...
16465 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16466 down.
16467 (threads_are_resumed_pending_p, do_target_wait): New.
16468 (prepare_for_detach): Adjust calls.
16469 (wait_for_inferior): New inferior parameter. Handle it. Use
16470 do_target_wait_1 instead of do_target_wait.
16471 (fetch_inferior_event): Adjust. Switch to representative
16472 inferior. Pass target down.
16473 (set_last_target_status): Add process_stratum_target parameter.
16474 Save target in global.
16475 (get_last_target_status): Add process_stratum_target parameter and
16476 handle it.
16477 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16478 (context_switch): Check inferior_ptid == null_ptid before calling
16479 inferior_thread().
16480 (get_inferior_stop_soon): Pass down target.
16481 (wait_one): Rename to ...
16482 (poll_one_curr_target): ... this.
16483 (struct wait_one_event): New.
16484 (wait_one): New.
16485 (stop_all_threads): Adjust.
16486 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16487 event's target.
16488 (switch_back_to_stepped_thread): Also consider target.
16489 (print_stop_event): Update.
16490 (normal_stop): Update. Also consider the resume target.
16491 * infrun.h (wait_for_inferior): Remove declaration.
16492 (user_visible_resume_target): New declaration.
16493 (get_last_target_status, set_last_target_status): New
16494 process_stratum_target parameter.
16495 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16496 process_stratum_target parameter, and use it.
16497 (clear_inline_frame_state (thread_info*)): New.
16498 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16499 process_stratum_target parameter.
16500 (clear_inline_frame_state (thread_info*)): Declare.
16501 * linux-fork.c (delete_checkpoint_command): Pass target down to
16502 find_thread_ptid.
16503 (checkpoint_command): Adjust.
16504 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16505 instead of just tweaking inferior_ptid.
16506 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16507 (exit_lwp): Pass target down to find_thread_ptid.
16508 (attach_proc_task_lwp_callback): Pass target down to
16509 add_thread/set_running/set_executing.
16510 (linux_nat_target::attach): Pass target down to
16511 thread_change_ptid.
16512 (get_detach_signal): Pass target down to find_thread_ptid.
16513 Consider last target status's target.
16514 (linux_resume_one_lwp_throw, resume_lwp)
16515 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16516 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16517 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16518 (linux_nat_target::async_wait_fd): New.
16519 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16520 target down.
16521 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16522 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16523 * linux-thread-db.c (struct thread_db_info::process_target): New
16524 field.
16525 (add_thread_db_info): Save target.
16526 (get_thread_db_info): New process_stratum_target parameter. Also
16527 match target.
16528 (delete_thread_db_info): New process_stratum_target parameter.
16529 Also match target.
16530 (thread_from_lwp): Adjust to pass down target.
16531 (thread_db_notice_clone): Pass down target.
16532 (check_thread_db_callback): Pass down target.
16533 (try_thread_db_load_1): Always push the thread_db target.
16534 (try_thread_db_load, record_thread): Pass target down.
16535 (thread_db_target::detach): Pass target down. Always unpush the
16536 thread_db target.
16537 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16538 target down. Always unpush the thread_db target.
16539 (find_new_threads_callback, thread_db_find_new_threads_2)
16540 (thread_db_target::update_thread_list): Pass target down.
16541 (thread_db_target::pid_to_str): Pass current inferior down.
16542 (thread_db_target::get_thread_local_address): Pass target down.
16543 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16544 target down.
16545 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16546 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16547 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16548 (procfs_init_inferior): Rename to ...
16549 (procfs_target::procfs_init_inferior): ... this and adjust.
16550 (procfs_target::create_inferior, procfs_notice_thread)
16551 (procfs_do_thread_registers): Adjust.
16552 * ppc-fbsd-tdep.c: Include "inferior.h".
16553 (ppcfbsd_get_thread_local_address): Pass down target.
16554 * proc-service.c (ps_xfer_memory): Switch current inferior and
16555 program space as well.
16556 (get_ps_regcache): Pass target down.
16557 * process-stratum-target.c
16558 (process_stratum_target::thread_address_space)
16559 (process_stratum_target::thread_architecture): Pass target down.
16560 * process-stratum-target.h
16561 (process_stratum_target::threads_executing): New field.
16562 (as_process_stratum_target): New.
16563 * ravenscar-thread.c
16564 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16565 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16566 down.
16567 * record-btrace.c (record_btrace_target::info_record): Adjust.
16568 (record_btrace_target::record_method)
16569 (record_btrace_target::record_is_replaying)
16570 (record_btrace_target::fetch_registers)
16571 (get_thread_current_frame_id, record_btrace_target::resume)
16572 (record_btrace_target::wait, record_btrace_target::stop): Pass
16573 target down.
16574 * record-full.c (record_full_wait_1): Switch to event thread.
16575 Pass target down.
16576 * regcache.c (regcache::regcache)
16577 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16578 process_stratum_target parameter and handle it.
16579 (current_thread_target): New global.
16580 (get_thread_regcache): Add process_stratum_target parameter and
16581 handle it. Switch inferior before calling target method.
16582 (get_thread_regcache): Pass target down.
16583 (get_thread_regcache_for_ptid): Pass target down.
16584 (registers_changed_ptid): Add process_stratum_target parameter and
16585 handle it.
16586 (registers_changed_thread, registers_changed): Pass target down.
16587 (test_get_thread_arch_aspace_regcache): New.
16588 (current_regcache_test): Define a couple local test_target_ops
16589 instances and use them for testing.
16590 (readwrite_regcache): Pass process_stratum_target parameter.
16591 (cooked_read_test, cooked_write_test): Pass mock_target down.
16592 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16593 (get_thread_arch_aspace_regcache): Add process_stratum_target
16594 parameter.
16595 (regcache::target): New method.
16596 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16597 (regcache::registers_changed_ptid): Add process_stratum_target
16598 parameter.
16599 (regcache::m_target): New field.
16600 (registers_changed_ptid): Add process_stratum_target parameter.
16601 * remote.c (remote_state::supports_vCont_probed): New field.
16602 (remote_target::async_wait_fd): New method.
16603 (remote_unpush_and_throw): Add remote_target parameter.
16604 (get_current_remote_target): Adjust.
16605 (remote_target::remote_add_inferior): Push target.
16606 (remote_target::remote_add_thread)
16607 (remote_target::remote_notice_new_inferior)
16608 (get_remote_thread_info): Pass target down.
16609 (remote_target::update_thread_list): Skip threads of inferiors
16610 bound to other targets. (remote_target::close): Don't discard
16611 inferiors. (remote_target::add_current_inferior_and_thread)
16612 (remote_target::process_initial_stop_replies)
16613 (remote_target::start_remote)
16614 (remote_target::remote_serial_quit_handler): Pass down target.
16615 (remote_target::remote_unpush_target): New remote_target
16616 parameter. Unpush the target from all inferiors.
16617 (remote_target::remote_unpush_and_throw): New remote_target
16618 parameter. Pass it down.
16619 (remote_target::open_1): Check whether the current inferior has
16620 execution instead of checking whether any inferior is live. Pass
16621 target down.
16622 (remote_target::remote_detach_1): Pass down target. Use
16623 remote_unpush_target.
16624 (extended_remote_target::attach): Pass down target.
16625 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16626 (remote_target::append_resumption): Pass down target.
16627 (remote_target::append_pending_thread_resumptions)
16628 (remote_target::remote_resume_with_hc, remote_target::resume)
16629 (remote_target::commit_resume): Pass down target.
16630 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16631 (remote_target::interrupt_query)
16632 (remote_target::remove_new_fork_children)
16633 (remote_target::check_pending_events_prevent_wildcard_vcont)
16634 (remote_target::remote_parse_stop_reply)
16635 (remote_target::process_stop_reply): Pass down target.
16636 (first_remote_resumed_thread): New remote_target parameter. Pass
16637 it down.
16638 (remote_target::wait_as): Pass down target.
16639 (unpush_and_perror): New remote_target parameter. Pass it down.
16640 (remote_target::readchar, remote_target::remote_serial_write)
16641 (remote_target::getpkt_or_notif_sane_1)
16642 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16643 down target.
16644 (remote_target::mourn_inferior): Pass down target. Use
16645 remote_unpush_target.
16646 (remote_target::core_of_thread)
16647 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16648 (remote_target::pid_to_exec_file)
16649 (remote_target::thread_handle_to_thread_info): Pass down target.
16650 (remote_target::async_wait_fd): New.
16651 * riscv-fbsd-tdep.c: Include "inferior.h".
16652 (riscv_fbsd_get_thread_local_address): Pass down target.
16653 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16654 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16655 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16656 Adjust.
16657 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16658 * solib-svr4.c (enable_break): Pass down target.
16659 * spu-multiarch.c (parse_spufs_run): Pass down target.
16660 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16661 * target-delegates.c: Regenerate.
16662 * target.c (g_target_stack): Delete.
16663 (current_top_target): Return the current inferior's top target.
16664 (target_has_execution_1): Refer to the passed-in inferior's top
16665 target.
16666 (target_supports_terminal_ours): Check whether the initial
16667 inferior was already created.
16668 (decref_target): New.
16669 (target_stack::push): Incref/decref the target.
16670 (push_target, push_target, unpush_target): Adjust.
16671 (target_stack::unpush): Defref target.
16672 (target_is_pushed): Return bool. Adjust to refer to the current
16673 inferior's target stack.
16674 (dispose_inferior): Delete, and inline parts ...
16675 (target_preopen): ... here. Only dispose of the current inferior.
16676 (target_detach): Hold strong target reference while detaching.
16677 Pass target down.
16678 (target_thread_name): Add assertion.
16679 (target_resume): Pass down target.
16680 (target_ops::beneath, find_target_at): Adjust to refer to the
16681 current inferior's target stack.
16682 (get_dummy_target): New.
16683 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16684 has a thread running.
16685 (initialize_targets): Rename to ...
16686 (_initialize_target): ... this.
16687 * target.h: Include "gdbsupport/refcounted-object.h".
16688 (struct target_ops): Inherit refcounted_object.
16689 (target_ops::shortname, target_ops::longname): Make const.
16690 (target_ops::async_wait_fd): New method.
16691 (decref_target): Declare.
16692 (struct target_ops_ref_policy): New.
16693 (target_ops_ref): New typedef.
16694 (get_dummy_target): Declare function.
16695 (target_is_pushed): Return bool.
16696 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16697 (all_matching_threads_iterator::all_matching_threads_iterator):
16698 Handle filter target.
16699 * thread-iter.h (struct all_matching_threads_iterator, struct
16700 all_matching_threads_range, class all_non_exited_threads_range):
16701 Filter by target too. Remove explicit.
16702 * thread.c (threads_executing): Delete.
16703 (inferior_thread): Pass down current inferior.
16704 (clear_thread_inferior_resources): Pass down thread pointer
16705 instead of ptid_t.
16706 (add_thread_silent, add_thread_with_info, add_thread): Add
16707 process_stratum_target parameter. Use it for thread and inferior
16708 searches.
16709 (is_current_thread): New.
16710 (thread_info::deletable): Use it.
16711 (find_thread_ptid, thread_count, in_thread_list)
16712 (thread_change_ptid, set_resumed, set_running): New
16713 process_stratum_target parameter. Pass it down.
16714 (set_executing): New process_stratum_target parameter. Pass it
16715 down. Adjust reference to 'threads_executing'.
16716 (threads_are_executing): New process_stratum_target parameter.
16717 Adjust reference to 'threads_executing'.
16718 (set_stop_requested, finish_thread_state): New
16719 process_stratum_target parameter. Pass it down.
16720 (switch_to_thread): Also match inferior.
16721 (switch_to_thread): New process_stratum_target parameter. Pass it
16722 down.
16723 (update_threads_executing): Reimplement.
16724 * top.c (quit_force): Pop targets from all inferior.
16725 (gdb_init): Don't call initialize_targets.
16726 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16727 Declare.
16728 (windows_add_thread, windows_delete_thread): Adjust.
16729 (get_windows_debug_event): Rename to ...
16730 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16731 * tracefile-tfile.c (tfile_target_open): Pass down target.
16732 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16733 Forward declare.
16734 (switch_to_thread): Add process_stratum_target parameter.
16735 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16736 parameter. Use it.
16737 (mi_on_resume): Pass target down.
16738 * nat/fork-inferior.c (startup_inferior): Add
16739 process_stratum_target parameter. Pass it down.
16740 * nat/fork-inferior.h (startup_inferior): Add
16741 process_stratum_target parameter.
16742 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16743
75c6c844
PA
167442020-01-10 Pedro Alves <palves@redhat.com>
16745
16746 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16747 directly. Instead find the first thread in the thread list and
16748 use switch_to_thread.
16749
78f2c40a
PA
167502020-01-10 Pedro Alves <palves@redhat.com>
16751
16752 * remote.c (remote_target::remote_add_inferior): Don't bind a
16753 process to the current inferior if the current inferior is already
16754 bound to a process.
16755
e7af6c70
TBA
167562020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16757 Pedro Alves <palves@redhat.com>
16758
16759 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16760 If no process is specified, return null_ptid instead of
16761 inferior_ptid.
16762 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16763 TARGET_WAITKIND_SIGNALLED with no pid.
16764
31ba933e
PA
167652020-01-10 Pedro Alves <palves@redhat.com>
16766
16767 * remote.c (first_remote_resumed_thread): New.
16768 (remote_target::wait_as): Use it as default event_ptid instead of
16769 inferior_ptid.
16770
735fc2ca
PA
167712020-01-10 Pedro Alves <palves@redhat.com>
16772
16773 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16774
c17e02e1
PA
167752020-01-10 Pedro Alves <palves@redhat.com>
16776
16777 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16778 not -1.
16779
ab1ddbcf
PA
167802020-01-10 Pedro Alves <palves@redhat.com>
16781
16782 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16783 ptid to get_last_target_status.
16784 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16785 ptid to get_last_target_status.
16786 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16787 get_last_target_status.
16788 (info_program_command): Don't pass a target_waitstatus to
16789 get_last_target_status.
16790 * infrun.c (init_wait_for_inferior): Use
16791 nullify_last_target_wait_ptid.
16792 (get_last_target_status): Handle nullptr arguments.
16793 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16794 (print_stop_event): Don't pass a ptid to get_last_target_status.
16795 (normal_stop): Don't pass a ptid to get_last_target_status.
16796 * infrun.h (get_last_target_status, set_last_target_status): Move
16797 comments here and update.
16798 (nullify_last_target_wait_ptid): Declare.
16799 * linux-fork.c (fork_load_infrun_state): Remove local extern
16800 declaration of nullify_last_target_wait_ptid.
16801 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16802 to get_last_target_status.
16803
f3f8ece4
PA
168042020-01-10 Pedro Alves <palves@redhat.com>
16805
16806 * gdbthread.h (scoped_restore_current_thread)
16807 <dont_restore, restore, m_dont_restore>: Declare.
16808 * thread.c (thread_alive): Add assertion. Return bool.
16809 (switch_to_thread_if_alive): New.
16810 (prune_threads): Switch inferior/thread.
16811 (print_thread_info_1): Switch thread before calling target methods.
16812 (scoped_restore_current_thread::restore): New, factored out from
16813 ...
16814 (scoped_restore_current_thread::~scoped_restore_current_thread):
16815 ... this.
16816 (scoped_restore_current_thread::scoped_restore_current_thread):
16817 Add assertion.
16818 (thread_apply_all_command, thread_select): Use
16819 switch_to_thread_if_alive.
16820 * infrun.c (proceed, restart_threads, handle_signal_stop)
16821 (switch_back_to_stepped_thread): Switch current thread before
16822 calling target methods.
16823
db2d40f7
PA
168242020-01-10 Pedro Alves <palves@redhat.com>
16825
16826 * inferior.c (switch_to_inferior_no_thread): New function,
16827 factored out from ...
16828 (inferior_command): ... here.
16829 * inferior.h (switch_to_inferior_no_thread): Declare.
16830 * mi/mi-main.c (run_one_inferior): Use
16831 switch_to_inferior_no_thread.
16832
bd420a2d
PA
168332020-01-10 Pedro Alves <palves@redhat.com>
16834
16835 * infcmd.c (kill_command): Remove dead code.
16836
ddf5db90
PA
168372020-01-10 Pedro Alves <palves@redhat.com>
16838
16839 * remote.c (remote_target::mourn_inferior): No longer check
16840 whether the target is running.
16841
5018ce90
PA
168422020-01-10 Pedro Alves <palves@redhat.com>
16843
16844 * corelow.c (core_target::has_execution): Change parameter type to
16845 inferior pointer.
16846 * inferior.c (number_of_live_inferiors): Use
16847 inferior::has_execution instead of target_has_execution_1.
16848 * inferior.h (inferior::has_execution): New.
16849 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16850 inferior::has_execution instead of target_has_execution_1.
16851 * process-stratum-target.c
16852 (process_stratum_target::has_execution): Change parameter type to
16853 inferior pointer. Check the inferior's PID instead of
16854 inferior_ptid.
16855 * process-stratum-target.h
16856 (process_stratum_target::has_execution): Change parameter type to
16857 inferior pointer.
16858 * record-full.c (record_full_core_target::has_execution): Change
16859 parameter type to inferior pointer.
16860 * target.c (target_has_execution_1): Change parameter type to
16861 inferior pointer.
16862 (target_has_execution_current): Adjust.
16863 * target.h (target_ops::has_execution): Change parameter type to
16864 inferior pointer.
16865 (target_has_execution_1): Change parameter type to inferior
16866 pointer. Change return type to bool.
16867 * tracefile.h (tracefile_target::has_execution): Change parameter
16868 type to inferior pointer.
16869
74375d18
PA
168702020-01-10 Pedro Alves <palves@redhat.com>
16871
16872 * exceptions.c (print_flush): Remove current_top_target() check.
16873
acdf84a6
PA
168742020-01-10 Pedro Alves <palves@redhat.com>
16875
16876 * remote.c (show_remote_exec_file): Show the current inferior's
16877 exec-file instead of the command variable's value.
16878
ec506636
PA
168792020-01-10 Pedro Alves <palves@redhat.com>
16880
16881 * record-full.c (record_full_resume_ptid): New global.
16882 (record_full_target::resume): Set it.
16883 (record_full_wait_1): Use record_full_resume_ptid instead of
16884 inferior_ptid.
16885
873657b9
PA
168862020-01-10 Pedro Alves <palves@redhat.com>
16887
16888 * gdbthread.h (scoped_restore_current_thread)
16889 <dont_restore, restore, m_dont_restore>: Declare.
16890 * thread.c (thread_alive): Add assertion. Return bool.
16891 (switch_to_thread_if_alive): New.
16892 (prune_threads): Switch inferior/thread.
16893 (print_thread_info_1): Switch thread before calling target methods.
16894 (scoped_restore_current_thread::restore): New, factored out from
16895 ...
16896 (scoped_restore_current_thread::~scoped_restore_current_thread):
16897 ... this.
16898 (scoped_restore_current_thread::scoped_restore_current_thread):
16899 Add assertion.
16900 (thread_apply_all_command, thread_select): Use
16901 switch_to_thread_if_alive.
16902
7f0ae84c
GB
169032020-01-10 George Barrett <bob@bob131.so>
16904
16905 * stap-probe.c (stap_modify_semaphore): Don't check for null
16906 semaphores.
16907 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16908 for null semaphores.
16909
f5a7c406
AB
169102020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16911
16912 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16913 all source windows, and maintain horizontal scroll status while
16914 doing so.
16915
9ae6bf64
TT
169162020-01-09 Tom Tromey <tom@tromey.com>
16917
16918 PR tui/18932:
16919 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16920 update_source_window, not print_source_lines.
16921
b2efe70c
AB
169222020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16923
16924 * tui/tui.c (tui_enable): Register tui hooks after calling
16925 tui_display_main.
16926
5f23a082
CB
169272020-01-09 Christian Biesinger <cbiesinger@google.com>
16928
16929 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16930
3061113b
SM
169312020-01-08 Simon Marchi <simon.marchi@efficios.com>
16932
16933 * thread.c (print_thread_info_1): Fix indentation.
16934
57d75002
CB
169352020-01-09 Christian Biesinger <cbiesinger@google.com>
16936
16937 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16938 unique_xmalloc_ptr outside the if to always free the demangled name.
16939
6a053cb1
TT
169402020-01-08 Tom Tromey <tromey@adacore.com>
16941
16942 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16943 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16944 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16945 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16946 Remove.
16947 (section_offsets): New typedef.
16948 * symtab.c (fixup_section, get_msymbol_address): Update.
16949 * symmisc.c (dump_msymbols): Update.
16950 * symfile.h (relative_addr_info_to_section_offsets)
16951 (symfile_map_offsets_to_segments): Update.
16952 * symfile.c (build_section_addr_info_from_objfile)
16953 (init_objfile_sect_indices): Update.
16954 (struct place_section_arg): Change type of "offsets".
16955 (place_section): Update.
16956 (relative_addr_info_to_section_offsets): Change type of
16957 "section_offsets". Remove "num_sections" parameter.
16958 (default_symfile_offsets, syms_from_objfile_1)
16959 (set_objfile_default_section_offset): Update.
16960 (reread_symbols): No need to preserve section offsets by hand.
16961 (symfile_map_offsets_to_segments): Change type of "offsets".
16962 * stap-probe.c (relocate_address): Update.
16963 * stabsread.h (process_one_symbol): Update.
16964 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16965 (solib_target_relocate_section_addresses): Update.
16966 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16967 Update.
16968 * solib-frv.c (frv_relocate_main_executable): Update.
16969 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16970 * solib-aix.c (solib_aix_get_section_offsets): Change return
16971 type.
16972 (solib_aix_solib_create_inferior_hook): Update.
16973 * remote.c (remote_target::get_offsets): Update.
16974 * psymtab.c (find_pc_sect_psymtab): Update.
16975 * psympriv.h (struct partial_symbol) <address, text_low,
16976 text_high>: Update.
16977 * objfiles.h (obj_section_offset): Update.
16978 (struct objfile) <section_offsets>: Change type.
16979 <num_sections>: Remove.
16980 (objfile_relocate): Update.
16981 * objfiles.c (entry_point_address_query): Update
16982 (relocate_one_symbol): Change type of "section_offsets".
16983 (objfile_relocate1, objfile_relocate1): Change type of
16984 "new_offsets".
16985 (objfile_rebase1): Update.
16986 * mipsread.c (mipscoff_symfile_read): Update.
16987 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16988 parameter.
16989 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16990 (parse_external, psymtab_to_symtab_1): Update.
16991 * machoread.c (macho_symfile_offsets): Update.
16992 * ia64-tdep.c (ia64_find_unwind_table): Update.
16993 * hppa-tdep.c (read_unwind_info): Update.
16994 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16995 * dwarf2read.c (create_addrmap_from_index)
16996 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16997 (process_psymtab_comp_unit_reader, add_partial_symbol)
16998 (add_partial_subprogram, process_full_comp_unit)
16999 (read_file_scope, read_func_scope, read_lexical_block_scope)
17000 (read_call_site_scope, dwarf2_rnglists_process)
17001 (dwarf2_ranges_process, dwarf2_ranges_read)
17002 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17003 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17004 Update.
17005 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17006 Update.
17007 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17008 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17009 (process_one_symbol): Change type of "section_offsets".
17010 * ctfread.c (get_objfile_text_range): Update.
17011 * coffread.c (coff_symtab_read, enter_linenos)
17012 (process_coff_symbol): Update.
17013 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17014 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17015
456e800a
TT
170162020-01-08 Tom Tromey <tromey@adacore.com>
17017
17018 * dwarf2read.c (parse_macro_definition): Use std::string.
17019 (parse_macro_definition): Likewise.
17020
6dfa2fc2
TT
170212020-01-08 Tom Tromey <tromey@adacore.com>
17022
17023 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17024 (ATTR_ALLOC_CHUNK): Remove.
17025
421d1616
TT
170262020-01-08 Tom Tromey <tromey@adacore.com>
17027
17028 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17029
43816ebc
TT
170302020-01-08 Tom Tromey <tromey@adacore.com>
17031
17032 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17033 (dwarf2_compute_name, open_dwo_file): Likewise.
17034 (process_enumeration_scope): Use std::vector.
17035 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17036 (partial_die_info::fixup, dwarf2_start_subfile)
17037 (guess_full_die_structure_name, dwarf2_name): Likewise.
17038 (determine_prefix): Update.
17039 (guess_full_die_structure_name): Make return type const.
17040 (partial_die_full_name): Return unique_xmalloc_ptr.
17041 (DW_FIELD_ALLOC_CHUNK): Remove.
17042
4212d509
TT
170432020-01-07 Tom Tromey <tromey@adacore.com>
17044
17045 PR build/24937:
17046 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17047
06a6207a
JT
170482020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17049
17050 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17051
153d79c4
AB
170522020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17053
17054 * stack.c (print_frame_info): Move disassemble_next_line code
17055 inside source_print block.
17056
66182876
EZ
170572020-01-06 Eli Zaretskii <eliz@gnu.org>
17058
17059 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17060 gdb/signals.h, as we are now using native signal symbols.
17061
cbfa8581
SV
170622020-01-06 Shahab Vahedi <shahab@synopsys.com>
17063
17064 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17065 overflow by an early check of content vs threshold.
aac66a4c 17066 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17067 Likewise.
17068
3f602821
EZ
170692020-01-06 Eli Zaretskii <eliz@gnu.org>
17070
17071 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17072
a08c904d
JT
170732020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17074
17075 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17076 export table if no section contains it's RVA.
17077
89a65580
EZ
170782020-01-06 Eli Zaretskii <eliz@gnu.org>
17079
17080 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17081
8b7fcda2
HD
170822020-01-06 Hannes Domani <ssbssa@yahoo.de>
17083
17084 * source.c (print_source_lines_base): Set last_line_listed.
17085
a61b4f69
SV
170862020-01-06 Shahab Vahedi <shahab@synopsys.com>
17087
17088 * tui/tui-disasm.c: Remove trailing spaces.
17089
559e7e50
EZ
170902020-01-06 Eli Zaretskii <eliz@gnu.org>
17091 Pedro Alves <palves@redhat.com>
17092
17093 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17094 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17095 (windows_gdb_signal_to_target): New function, uses the above
17096 enumeration to convert GDB internal signal codes to equivalent
17097 Windows codes.
17098 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17099 * windows-nat.c: Include "gdb_wait.h".
17100 (get_windows_debug_event): Extract the fatal exception from the
17101 exit status and convert to the equivalent Posix signal number.
17102 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17103 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17104 * gdbsupport/gdb_wait.c: New file, implements
17105 windows_status_to_termsig.
17106 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17107 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17108
f2302a34
AB
171092020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17110
17111 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17112 show_layout.
17113
6a5206eb
LM
171142020-01-05 Luis Machado <luis.machado@linaro.org>
17115
17116 * aarch64-linux-nat.c
17117 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17118 and bfd_mach_aarch64.
17119
6ec1d75e
PW
171202020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17121
17122 * ui-file.c (stdio_file::can_emit_style_escape)
17123 (tee_file::can_emit_style_escape): Ensure style is used also on
17124 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17125 to gdb_stdout.
17126 * main.c (set_gdb_data_directory): Use file style to output the
17127 warning that the given pathname is not a directory.
17128 * top.c (show_history_filename, gdb_safe_append_history)
17129 (show_gdb_datadir): Use file style.
17130
44f81a76
HD
171312020-01-03 Hannes Domani <ssbssa@yahoo.de>
17132
17133 * solib-target.c (struct lm_info_target):
17134 Change offsets to be a unique_xmalloc_ptr.
17135 (solib_target_relocate_section_addresses): Update.
17136
25057eb0
HD
171372020-01-03 Hannes Domani <ssbssa@yahoo.de>
17138
17139 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17140
6e2118f5
BE
171412020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17142
17143 * MAINTAINERS (Write After Approval): Add myself.
17144
8133c7dc
LM
171452020-01-02 Luis Machado <luis.machado@linaro.org>
17146
17147 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17148 Cell BE architecture.
17149 * target.h (struct target_ops) <thread_architecture>: Likewise.
17150
48189bec
HD
171512020-01-01 Hannes Domani <ssbssa@yahoo.de>
17152
17153 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17154
ead1063b
HD
171552020-01-01 Hannes Domani <ssbssa@yahoo.de>
17156
17157 * MAINTAINERS (Write After Approval): Add myself.
17158
e5d78223
JB
171592020-01-01 Joel Brobecker <brobecker@adacore.com>
17160
17161 * gdbarch.sh: Update copyright year range of generated files.
17162
b811d2c2
JB
171632020-01-01 Joel Brobecker <brobecker@adacore.com>
17164
17165 Update copyright year range in all GDB files.
17166
5f4def5c
JB
171672020-01-01 Joel Brobecker <brobecker@adacore.com>
17168
17169 * copyright.py: Convert to Python 3.
17170
51fd4002
JB
171712020-01-01 Joel Brobecker <brobecker@adacore.com>
17172
17173 * copyright.py: Adapt after move of gnulib directory from gdb
17174 directory to toplevel directory.
17175
5fb651f2
JB
171762020-01-01 Joel Brobecker <brobecker@adacore.com>
17177
17178 * copyright.py (main): Exit if run from the wrong directory.
17179
5dd8bf88
JB
171802020-01-01 Joel Brobecker <brobecker@adacore.com>
17181
17182 * top.c (print_gdb_version): Change copyright year to 2020.
17183
9f71dacb 171842020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17185
9f71dacb 17186 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17187
9f71dacb 17188For older changes see ChangeLog-2019.
c906108c
SS
17189\f
17190Local Variables:
17191mode: change-log
17192left-margin: 8
17193fill-column: 74
17194version-control: never
57da7796 17195coding: utf-8
c906108c 17196End:
This page took 3.337011 seconds and 4 git commands to generate.