]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/fortran: Add support for Fortran array slices at the GDB prompt
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a5c641b5
AB
12020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
4 * NEWS: Mention new options.
5 * f-array-walker.h: New file.
6 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
7 (repack_array_slices): New static global.
8 (show_repack_array_slices): New function.
9 (fortran_array_slicing_debug): New static global.
10 (show_fortran_array_slicing_debug): New function.
11 (value_f90_subarray): Delete.
12 (skip_undetermined_arglist): Delete.
13 (class fortran_array_repacker_base_impl): New class.
14 (class fortran_lazy_array_repacker_impl): New class.
15 (class fortran_array_repacker_impl): New class.
16 (fortran_value_subarray): Complete rewrite.
17 (set_fortran_list): New static global.
18 (show_fortran_list): Likewise.
19 (_initialize_f_language): Register new commands.
20 (fortran_adjust_dynamic_array_base_address_hack): New function.
21 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
22 Declare.
23 * f-valprint.c: Include 'f-array-walker.h'.
24 (class fortran_array_printer_impl): New class.
25 (f77_print_array_1): Delete.
26 (f77_print_array): Delete.
27 (fortran_print_array): New.
28 (f_value_print_inner): Update to call fortran_print_array.
29 * gdbtypes.c: Include 'f-lang.h'.
30 (resolve_dynamic_type_internal): Call
31 fortran_adjust_dynamic_array_base_address_hack.
32
a15a5258
AB
332020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
34
35 * breakpoint.c (struct watch_options): New struct.
36 (watch_option_defs): New static global.
37 (make_watch_options_def_group): New function.
38 (watch_maybe_just_location): Convert option parsing.
39 (watch_command_completer): New function.
40 (_initialize_breakpoint): Build help text using options mechanism.
41
2e362716
AB
422020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
43
44 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
45 (watch_command_1): Update parameter types. Convert locals to
46 bool.
47 (watch_command_wrapper): Change parameter type.
48 (watch_maybe_just_location): Change locals to bool.
49 (rwatch_command_wrapper): Update parameter type.
50 (awatch_command_wrapper): Update parameter type.
51 * breakpoint.h (watch_command_wrapper): Change parameter type.
52 (rwatch_command_wrapper): Update parameter type.
53 (awatch_command_wrapper): Update parameter type.
54 * eval.c (fetch_subexp_value): Change parameter type.
55 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
56 'false' not '0'.
57 * value.h (fetch_subexp_value): Change parameter type in
58 declaration.
59
b3ff61f8
AB
602020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
61
62 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
63 skip_spaces.
64
5b7d45d3
KS
652020-11-18 Keith Seitz <keiths@redhat.com>
66
67 * linux-tdep.c (dump_note_entry_p): Return true instead of
68 checking `filename'.
69
c44191f8
TV
702020-11-18 Tom de Vries <tdevries@suse.de>
71
72 * debuginfod-support.c (debuginfod_source_query)
73 (debuginfod_debuginfo_query): Also do early exit if
74 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
75
5d8254e1
TV
762020-11-18 Tom de Vries <tdevries@suse.de>
77
78 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
79 warning.
80
584903d3
SM
812020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
82
83 * gdbtypes.h (get_array_bounds): Return bool, adjust some
84 callers. Move doc here.
85 * gdbtypes.c (get_array_bounds): Return bool
86
6f2643db
AB
872020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
88
89 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
90 assert.
91 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
92 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
93 case to the default.
94
037d7135
AB
952020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
96
97 * printcmd.c: Include 'safe-ctype.c'.
98 (skip_over_slash_fmt): New function.
99 (print_command_completer): Call skip_over_slash_fmt.
100 (display_and_x_command_completer): New function.
101 (_initialize_printcmd): Add command completion for 'x' and
102 'display'.
103
2b3cb400
PA
1042020-11-16 Pedro Alves <pedro@palves.net>
105
106 * frame.c (get_prev_frame): Move get_frame_id call from here ...
107 (get_prev_frame_always_1): ... to here.
108 * inline-frame.c (inline_frame_this_id): Mention
109 get_prev_frame_always_1 in comment.
110
b74dbc20
JB
1112020-11-15 Joel Brobecker <brobecker@adacore.com>
112
113 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
114 handling.
115 (value_less): Add fixed-point handling.
116
0a12719e
JB
1172020-11-15 Joel Brobecker <brobecker@adacore.com>
118
119 * eval.c (binop_promote): Add fixed-point type handling.
120 * valarith.c (fixed_point_binop): New function.
121 (scalar_binop): Add fixed-point type handling.
122 (value_neg): Add fixed-point type handling.
123 * valops.c (value_cast_to_fixed_point): New function.
124 (value_cast): Add fixed-point type handling.
125
0c9150e4
JB
1262020-11-15 Joel Brobecker <brobecker@adacore.com>
127
128 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
129 range types.
130 * c-typeprint.c (c_type_print_varspec_prefix)
131 (c_type_print_varspec_suffix, c_type_print_base_1): Add
132 TYPE_CODE_FIXED_POINT handling.
133 * p-typeprint.c (pascal_type_print_varspec_prefix)
134 (pascal_type_print_varspec_suffix): Likewise.
135 * typeprint.c (print_type_fixed_point): New function.
136 * typeprint.h (print_type_fixed_point): Add declaration.
137
b26daff9
JB
1382020-11-15 Joel Brobecker <brobecker@adacore.com>
139
140 * printcmd.c (print_scalar_formatted): Add fixed-point type
141 handling when options->format is set.
142
09584414
JB
1432020-11-15 Joel Brobecker <brobecker@adacore.com>
144
145 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
146 * dwarf2/read.c (get_dwarf2_rational_constant)
147 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
148 (has_zero_over_zero_small_attribute): New functions.
149 read_base_type, set_die_type): Add fixed-point type handling.
150 * gdb-gdb.py.in: Add fixed-point type handling.
151 * gdbtypes.c: #include "gmp-utils.h".
152 (create_range_type, set_type_code): Add fixed-point type handling.
153 (init_fixed_point_type): New function.
154 (is_integral_type, is_scalar_type): Add fixed-point type handling.
155 (print_fixed_point_type_info): New function.
156 (recursive_dump_type, copy_type_recursive): Add fixed-point type
157 handling.
158 (fixed_point_type_storage): New typedef.
159 (fixed_point_objfile_key): New static global.
160 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
161 (fixed_point_type_base_type, fixed_point_scaling_factor): New
162 functions.
163 * gdbtypes.h: #include "gmp-utils.h".
164 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
165 (union type_specific) <fixed_point_info>: New field.
166 (struct fixed_point_type_info): New struct.
167 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
168 (init_fixed_point_type, is_fixed_point_type)
169 (fixed_point_type_base_type, fixed_point_scaling_factor)
170 (allocate_fixed_point_type_info): Add declarations.
171 * valprint.c (generic_val_print_fixed_point): New function.
172 (generic_value_print): Add fixed-point type handling.
173 * value.c (value_as_address, unpack_long): Add fixed-point type
174 handling.
175
e55c6530
JB
1762020-11-15 Joel Brobecker <brobecker@adacore.com>
177
178 * utils.h (uinteger_pow): Add declaration.
179 * utils.c (uinteger_pow): Moved here (without changes)...
180 * valarith.c (uinteger_pow): ... from here.
181
b34c74ab
JB
1822020-11-15 Joel Brobecker <brobecker@adacore.com>
183
40d9d2fd 184 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
185 * unittests/gmp-utils-selftests.c: New file.
186 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
187 unittests/gmp-utils-selftests.c.
188 (COMMON_SFILES) Add gmp-utils.c.
189 (HFILES_NO_SRCDIR): Add gmp-utils.h.
190
1b4ac058
JB
1912020-11-15 Joel Brobecker <brobecker@adacore.com>
192
193 * configure.ac: Generate an error if a usable GMP library
194 could not be found.
195 * configure: Regenerate.
196
2c947d9b
JB
1972020-11-15 Joel Brobecker <brobecker@adacore.com>
198
199 * configure.ac: Add support for --with-libgmp-prefix.
200 * Makefile.in (LIBGMP): New variable.
201 (CLIBS): Include $(LIBGMP).
202 * configure, config.in: Regenerate
203
9dd02fc0
AB
2042020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
205
206 PR cli/26879
207 * f-exp.y (COMPLETE): New token.
208 (exp): Two new rules for tab-completion.
209 (saw_name_at_eof): New static global.
210 (last_was_structop): Likewise.
211 (yylex): Set new variables, and return COMPLETE token at the end
212 of the input stream in some cases.
213
758cb810
TT
2142020-11-14 Tom Tromey <tom@tromey.com>
215
216 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
217
749065b7
TT
2182020-11-14 Tom Tromey <tom@tromey.com>
219
220 * opencl-lang.c (opencl_component_ref): Make "comps" const.
221
2c5b1849
SM
2222020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
223
224 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
225
e8b2f0d9
TT
2262020-11-13 Tom Tromey <tom@tromey.com>
227
228 * c-lang.c (convert_ucn, convert_octal, convert_hex)
229 (convert_escape, parse_one_string): Constify.
230
25f4c262
KS
2312020-11-13 Keith Seitz <keiths@redhat.com>
232
233 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
234 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
235 outside of ELF segments" warning for debugin
236
9d3ab915
KS
2372020-11-13 Keith Seitz <keiths@redhat.com>
238
239 PR gdb/23034
240 * elfread.c (elf_symfile_segments): Output a BFD file name
241 for the "Loadable section ... outside of ELF segments" warning.
242
9ecab40c
SM
2432020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
244
245 PR gdb/26835
246 * arm-tdep.c (class arm_instruction_reader): New.
247 (target_arm_instruction_reader): New.
248 (arm_analyze_prologue): Add instruction reader parameter and use
249 it. Use arm_expand_immediate.
250 (class target_arm_instruction_reader): Adjust.
251 (arm_skip_prologue): Adjust.
252 (arm_expand_immediate): New.
253 (arm_scan_prologue): Adjust.
254 (arm_analyze_prologue_test): New.
255 (class test_arm_instruction_reader): New.
256
5a7cf527
AB
2572020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
258
259 * f-lang.c (fortran_argument_convert): Add declaration. Add
260 header comment, taken from f-lang.h. Make static.
261 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
262 (fortran_argument_convert): Delete declaration.
263
7bea47f0
AB
2642020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
265
266 * ada-exp.y (find_primitive_type): Make parameter const.
267 * ada-lang.c (enum ada_primitive_types): Delete.
268 (ada_language::language_arch_info): Update.
269 * c-lang.c (enum c_primitive_types): Delete.
270 (c_language_arch_info): Update.
271 (enum cplus_primitive_types): Delete.
272 (cplus_language::language_arch_info): Update.
273 * d-lang.c (enum d_primitive_types): Delete.
274 (d_language::language_arch_info): Update.
275 * f-lang.c (enum f_primitive_types): Delete.
276 (f_language::language_arch_info): Update.
277 * go-lang.c (enum go_primitive_types): Delete.
278 (go_language::language_arch_info): Update.
279 * language.c (auto_or_unknown_language::language_arch_info):
280 Update.
281 (language_gdbarch_post_init): Use obstack_new, use array indexing.
282 (language_string_char_type): Add header comment, call function in
283 language_arch_info.
284 (language_bool_type): Likewise
285 (language_arch_info::bool_type): Define.
286 (language_lookup_primitive_type_1): Delete.
287 (language_lookup_primitive_type): Rewrite as a templated function
288 to call function in language_arch_info, then instantiate twice.
289 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
290 (language_arch_info::lookup_primitive_type_and_symbol): Define.
291 (language_arch_info::lookup_primitive_type): Define twice with
292 different signatures.
293 (language_arch_info::lookup_primitive_type_as_symbol): Define.
294 (language_lookup_primitive_type_as_symbol): Rewrite to call a
295 member function in language_arch_info.
296 * language.h (language_arch_info): Complete rewrite.
297 (language_lookup_primitive_type): Make templated.
298 * m2-lang.c (enum m2_primitive_types): Delete.
299 (m2_language::language_arch_info): Update.
300 * opencl-lang.c (OCL_P_TYPE): Delete.
301 (enum opencl_primitive_types): Delete.
302 (opencl_type_data): Delete.
303 (builtin_opencl_type): Delete.
304 (lookup_opencl_vector_type): Update.
305 (opencl_language::language_arch_info): Update, lots of content
306 moved from...
307 (build_opencl_types): ...here. This function is now deleted.
308 (_initialize_opencl_language): Delete.
309 * p-lang.c (enum pascal_primitive_types): Delete.
310 (pascal_language::language_arch_info): Update.
311 * rust-lang.c (enum rust_primitive_types): Delete.
312 (rust_language::language_arch_info): Update.
313
bf6e5d01
SM
3142020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
315
316 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
317 dwarf2_queue_guard.
318
1350c3b4
SM
3192020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
320
321 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
322 comment.
323
6f738b01
SM
3242020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
325
326 * dwarf2/read.c (dwarf_read_debug_printf,
327 dwarf_read_debug_printf_v): New macros, use throughout the file.
328
10c19fad
SV
3292020-11-12 Shahab Vahedi <shahab@synopsys.com>
330
331 * arc-linux-tdep.c (collect_register): Populate "eret" by
332 "pc" value from the regcache when asked for "pc" value.
333
1f2624a3
TT
3342020-11-12 Tom Tromey <tom@tromey.com>
335
336 PR rust/26799:
337 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
338 exist.
339
ab33b152
AB
3402020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
341
342 * features/Makefile (XMLTOC): Add rx.xml.
343 (FEATURE_XMLFILES): Remove rx.xml.
344 (FEATURE_CFILES rule): Pass '-single-feature' flag.
345 * features/rx.c: Regenerate.
346 * features/rx.xml: Wrap in `target` tags, and reindent.
347 * target-descriptions.c (struct maint_print_c_tdesc_options): New
348 structure.
349 (maint_print_c_tdesc_opt_def): New typedef.
350 (maint_print_c_tdesc_opt_defs): New static global.
351 (make_maint_print_c_tdesc_options_def_group): New function.
352 (maint_print_c_tdesc_cmd): Make use of command line flags, only
353 print single feature C file for target descriptions containing a
354 single feature.
355 (maint_print_c_tdesc_cmd_completer): New function.
356 (_initialize_target_descriptions): Update call to register command
357 completer, and include command line flag in help text.
358
550820e1
AB
3592020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
360
361 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
362 numbers.
363 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
364 enum values.
365
baf20f76
TT
3662020-11-10 Tom Tromey <tom@tromey.com>
367
368 * value.h (internalvar_name): Update.
369 * value.c (internalvar_name): Make return type const.
370
caaece0e
TT
3712020-11-10 Tom Tromey <tom@tromey.com>
372
373 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
374 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
375 const.
376
8e20b4be
TT
3772020-11-10 Tom Tromey <tom@tromey.com>
378
379 * objc-lang.h (value_nsstring): Update.
380 * objc-lang.c (value_nsstring): Make "ptr" const.
381
86775fab
AB
3822020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
383
384 * expprint.c (print_subexp_funcall): Increment expression position
385 after reading argument count.
386 * f-lang.c (print_subexp_f): Skip over opcode before calling
387 common function.
388 (dump_subexp_body_f): Likewise.
389
3fed4c0b
RG
3902020-11-06 Romain Geissler <romain.geissler@amadeus.com>
391
392 PR python/26832
393 * configure: Regenerate.
394 * configure.ac: Check for python modules ctypes instead of
395 itertools.
396
ac3d4064
PA
3972020-11-06 Pedro Alves <pedro@palves.net>
398
399 * macroexp.c (struct macro_buffer): Split in two classes. Add
400 uses adjusted.
401 (struct shared_macro_buffer): New, factored out from struct
402 macro_buffer.
403 (struct growable_macro_buffer): New, factored out from struct
404 macro_buffer.
405 (set_token, get_comment, get_identifier, get_pp_number)
406 (get_character_constant, get_string_literal, get_punctuator)
407 (get_next_token_for_substitution): Constify parameters.
408 (substitute_args): Constify locals.
409
606decb2
TT
4102020-11-05 Tom Tromey <tom@tromey.com>
411
412 * dwarf2/read.c (read_cutu_die_from_dwo)
413 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
414 (build_type_psymtabs_1): Update.
415 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
416 parameter.
417 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
418 Don't read section. Add assert.
419
9c91c725
TT
4202020-11-04 Tom Tromey <tromey@adacore.com>
421
422 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
423
8d9fd3a1
TT
4242020-11-04 Tom Tromey <tromey@adacore.com>
425
426 * ada-typeprint.c (ada_print_type): Handle __T types.
427
d8f62e84
TT
4282020-11-04 Tom Tromey <tromey@adacore.com>
429
430 * dwarf2/read.c (add_partial_symbol, process_die):
431 Handle DW_TAG_array_type.
432 (is_type_tag_for_partial): Add "lang" parameter.
433 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
434
7ff5b937
TT
4352020-11-04 Tom Tromey <tromey@adacore.com>
436
437 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
438
10f6a3ad
TT
4392020-11-04 Tom Tromey <tromey@adacore.com>
440
441 * dwarf2/read.c (read_array_type): Only apply stride to innermost
442 array.
443
b72795a8
TT
4442020-11-04 Tom Tromey <tromey@adacore.com>
445
446 * gdbtypes.c (update_static_array_size): Handle bit stride.
447
24aa1b02
TT
4482020-11-04 Tom Tromey <tromey@adacore.com>
449
450 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
451
c9a28cbe
TT
4522020-11-04 Tom Tromey <tromey@adacore.com>
453
454 * ada-lang.c (ada_is_any_packed_array_type): New function.
455 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
456
57567375
TT
4572020-11-04 Tom Tromey <tromey@adacore.com>
458
459 * dwarf2/read.c (recognize_bound_expression)
460 (quirk_ada_thick_pointer): New functions.
461 (read_array_type): Call quirk_ada_thick_pointer.
462 (set_die_type): Add "skip_data_location" parameter.
463 (quirk_ada_thick_pointer): New function.
464 (process_structure_scope): Call quirk_ada_thick_pointer.
465 * ada-lang.c (ada_is_unconstrained_packed_array_type)
466 (decode_packed_array_bitsize): Handle thick pointers without
467 parallel types.
468 (ada_is_gnat_encoded_packed_array_type): Rename from
469 ada_is_packed_array_type.
470 (ada_is_constrained_packed_array_type): Update.
471 * ada-valprint.c (ada_val_print_gnat_array): Remove.
472 (ada_value_print_1): Use ada_get_decoded_value.
473
a7400e44
TT
4742020-11-04 Tom Tromey <tromey@adacore.com>
475
476 * ada-lang.c (recursively_update_array_bitsize): New function.
477 (decode_constrained_packed_array_type): Call it.
478
75fd6a26
TT
4792020-11-04 Tom Tromey <tromey@adacore.com>
480
481 * ada-lang.c (to_fixed_array_type): Error if
482 decode_constrained_packed_array_type returns NULL.
483
93f9561e
TT
4842020-11-04 Tom Tromey <tromey@adacore.com>
485
486 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
487
257e02d8
TT
4882020-11-02 Tom Tromey <tromey@adacore.com>
489
490 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
491 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
492 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
493 * amd64-ravenscar-thread.c: New file.
494 * amd64-ravenscar-thread.h: New file.
495 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
496 * configure.tgt (amd64_tobjs): Add ravenscar objects.
497
74d877e5
AB
4982020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
499
500 * main.c (execute_cmdargs): New function.
501 (captured_main_1): Make use of execute_cmdargs.
502
64aaad63
AB
5032020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
504
505 * NEWS: Mention changes to config file search path.
506 * main.c
507
5b3d3560
TT
5082020-11-02 Tom Tromey <tromey@adacore.com>
509
510 * python/python.c: Consolidate two HAVE_PYTHON blocks.
511 (python_GdbModuleDef): Move earlier. Now static.
512 (do_start_initialization): Consolidate some IS_PY3K blocks.
513
dda83cd7
SM
5142020-11-02 Simon Marchi <simon.marchi@efficios.com>
515
516 * aarch64-linux-tdep.c: Fix indentation.
517 * aarch64-ravenscar-thread.c: Fix indentation.
518 * aarch64-tdep.c: Fix indentation.
519 * aarch64-tdep.h: Fix indentation.
520 * ada-lang.c: Fix indentation.
521 * ada-lang.h: Fix indentation.
522 * ada-tasks.c: Fix indentation.
523 * ada-typeprint.c: Fix indentation.
524 * ada-valprint.c: Fix indentation.
525 * ada-varobj.c: Fix indentation.
526 * addrmap.c: Fix indentation.
527 * addrmap.h: Fix indentation.
528 * agent.c: Fix indentation.
529 * aix-thread.c: Fix indentation.
530 * alpha-bsd-nat.c: Fix indentation.
531 * alpha-linux-tdep.c: Fix indentation.
532 * alpha-mdebug-tdep.c: Fix indentation.
533 * alpha-nbsd-tdep.c: Fix indentation.
534 * alpha-obsd-tdep.c: Fix indentation.
535 * alpha-tdep.c: Fix indentation.
536 * amd64-bsd-nat.c: Fix indentation.
537 * amd64-darwin-tdep.c: Fix indentation.
538 * amd64-linux-nat.c: Fix indentation.
539 * amd64-linux-tdep.c: Fix indentation.
540 * amd64-nat.c: Fix indentation.
541 * amd64-obsd-tdep.c: Fix indentation.
542 * amd64-tdep.c: Fix indentation.
543 * amd64-windows-tdep.c: Fix indentation.
544 * annotate.c: Fix indentation.
545 * arc-tdep.c: Fix indentation.
546 * arch-utils.c: Fix indentation.
547 * arch/arm-get-next-pcs.c: Fix indentation.
548 * arch/arm.c: Fix indentation.
549 * arm-linux-nat.c: Fix indentation.
550 * arm-linux-tdep.c: Fix indentation.
551 * arm-nbsd-tdep.c: Fix indentation.
552 * arm-pikeos-tdep.c: Fix indentation.
553 * arm-tdep.c: Fix indentation.
554 * arm-tdep.h: Fix indentation.
555 * arm-wince-tdep.c: Fix indentation.
556 * auto-load.c: Fix indentation.
557 * auxv.c: Fix indentation.
558 * avr-tdep.c: Fix indentation.
559 * ax-gdb.c: Fix indentation.
560 * ax-general.c: Fix indentation.
561 * bfin-linux-tdep.c: Fix indentation.
562 * block.c: Fix indentation.
563 * block.h: Fix indentation.
564 * blockframe.c: Fix indentation.
565 * bpf-tdep.c: Fix indentation.
566 * break-catch-sig.c: Fix indentation.
567 * break-catch-syscall.c: Fix indentation.
568 * break-catch-throw.c: Fix indentation.
569 * breakpoint.c: Fix indentation.
570 * breakpoint.h: Fix indentation.
571 * bsd-uthread.c: Fix indentation.
572 * btrace.c: Fix indentation.
573 * build-id.c: Fix indentation.
574 * buildsym-legacy.h: Fix indentation.
575 * buildsym.c: Fix indentation.
576 * c-typeprint.c: Fix indentation.
577 * c-valprint.c: Fix indentation.
578 * c-varobj.c: Fix indentation.
579 * charset.c: Fix indentation.
580 * cli/cli-cmds.c: Fix indentation.
581 * cli/cli-decode.c: Fix indentation.
582 * cli/cli-decode.h: Fix indentation.
583 * cli/cli-script.c: Fix indentation.
584 * cli/cli-setshow.c: Fix indentation.
585 * coff-pe-read.c: Fix indentation.
586 * coffread.c: Fix indentation.
587 * compile/compile-cplus-types.c: Fix indentation.
588 * compile/compile-object-load.c: Fix indentation.
589 * compile/compile-object-run.c: Fix indentation.
590 * completer.c: Fix indentation.
591 * corefile.c: Fix indentation.
592 * corelow.c: Fix indentation.
593 * cp-abi.h: Fix indentation.
594 * cp-namespace.c: Fix indentation.
595 * cp-support.c: Fix indentation.
596 * cp-valprint.c: Fix indentation.
597 * cris-linux-tdep.c: Fix indentation.
598 * cris-tdep.c: Fix indentation.
599 * darwin-nat-info.c: Fix indentation.
600 * darwin-nat.c: Fix indentation.
601 * darwin-nat.h: Fix indentation.
602 * dbxread.c: Fix indentation.
603 * dcache.c: Fix indentation.
604 * disasm.c: Fix indentation.
605 * dtrace-probe.c: Fix indentation.
606 * dwarf2/abbrev.c: Fix indentation.
607 * dwarf2/attribute.c: Fix indentation.
608 * dwarf2/expr.c: Fix indentation.
609 * dwarf2/frame.c: Fix indentation.
610 * dwarf2/index-cache.c: Fix indentation.
611 * dwarf2/index-write.c: Fix indentation.
612 * dwarf2/line-header.c: Fix indentation.
613 * dwarf2/loc.c: Fix indentation.
614 * dwarf2/macro.c: Fix indentation.
615 * dwarf2/read.c: Fix indentation.
616 * dwarf2/read.h: Fix indentation.
617 * elfread.c: Fix indentation.
618 * eval.c: Fix indentation.
619 * event-top.c: Fix indentation.
620 * exec.c: Fix indentation.
621 * exec.h: Fix indentation.
622 * expprint.c: Fix indentation.
623 * f-lang.c: Fix indentation.
624 * f-typeprint.c: Fix indentation.
625 * f-valprint.c: Fix indentation.
626 * fbsd-nat.c: Fix indentation.
627 * fbsd-tdep.c: Fix indentation.
628 * findvar.c: Fix indentation.
629 * fork-child.c: Fix indentation.
630 * frame-unwind.c: Fix indentation.
631 * frame-unwind.h: Fix indentation.
632 * frame.c: Fix indentation.
633 * frv-linux-tdep.c: Fix indentation.
634 * frv-tdep.c: Fix indentation.
635 * frv-tdep.h: Fix indentation.
636 * ft32-tdep.c: Fix indentation.
637 * gcore.c: Fix indentation.
638 * gdb_bfd.c: Fix indentation.
639 * gdbarch.sh: Fix indentation.
640 * gdbarch.c: Re-generate
641 * gdbarch.h: Re-generate.
642 * gdbcore.h: Fix indentation.
643 * gdbthread.h: Fix indentation.
644 * gdbtypes.c: Fix indentation.
645 * gdbtypes.h: Fix indentation.
646 * glibc-tdep.c: Fix indentation.
647 * gnu-nat.c: Fix indentation.
648 * gnu-nat.h: Fix indentation.
649 * gnu-v2-abi.c: Fix indentation.
650 * gnu-v3-abi.c: Fix indentation.
651 * go32-nat.c: Fix indentation.
652 * guile/guile-internal.h: Fix indentation.
653 * guile/scm-cmd.c: Fix indentation.
654 * guile/scm-frame.c: Fix indentation.
655 * guile/scm-iterator.c: Fix indentation.
656 * guile/scm-math.c: Fix indentation.
657 * guile/scm-ports.c: Fix indentation.
658 * guile/scm-pretty-print.c: Fix indentation.
659 * guile/scm-value.c: Fix indentation.
660 * h8300-tdep.c: Fix indentation.
661 * hppa-linux-nat.c: Fix indentation.
662 * hppa-linux-tdep.c: Fix indentation.
663 * hppa-nbsd-nat.c: Fix indentation.
664 * hppa-nbsd-tdep.c: Fix indentation.
665 * hppa-obsd-nat.c: Fix indentation.
666 * hppa-tdep.c: Fix indentation.
667 * hppa-tdep.h: Fix indentation.
668 * i386-bsd-nat.c: Fix indentation.
669 * i386-darwin-nat.c: Fix indentation.
670 * i386-darwin-tdep.c: Fix indentation.
671 * i386-dicos-tdep.c: Fix indentation.
672 * i386-gnu-nat.c: Fix indentation.
673 * i386-linux-nat.c: Fix indentation.
674 * i386-linux-tdep.c: Fix indentation.
675 * i386-nto-tdep.c: Fix indentation.
676 * i386-obsd-tdep.c: Fix indentation.
677 * i386-sol2-nat.c: Fix indentation.
678 * i386-tdep.c: Fix indentation.
679 * i386-tdep.h: Fix indentation.
680 * i386-windows-tdep.c: Fix indentation.
681 * i387-tdep.c: Fix indentation.
682 * i387-tdep.h: Fix indentation.
683 * ia64-libunwind-tdep.c: Fix indentation.
684 * ia64-libunwind-tdep.h: Fix indentation.
685 * ia64-linux-nat.c: Fix indentation.
686 * ia64-linux-tdep.c: Fix indentation.
687 * ia64-tdep.c: Fix indentation.
688 * ia64-tdep.h: Fix indentation.
689 * ia64-vms-tdep.c: Fix indentation.
690 * infcall.c: Fix indentation.
691 * infcmd.c: Fix indentation.
692 * inferior.c: Fix indentation.
693 * infrun.c: Fix indentation.
694 * iq2000-tdep.c: Fix indentation.
695 * language.c: Fix indentation.
696 * linespec.c: Fix indentation.
697 * linux-fork.c: Fix indentation.
698 * linux-nat.c: Fix indentation.
699 * linux-tdep.c: Fix indentation.
700 * linux-thread-db.c: Fix indentation.
701 * lm32-tdep.c: Fix indentation.
702 * m2-lang.c: Fix indentation.
703 * m2-typeprint.c: Fix indentation.
704 * m2-valprint.c: Fix indentation.
705 * m32c-tdep.c: Fix indentation.
706 * m32r-linux-tdep.c: Fix indentation.
707 * m32r-tdep.c: Fix indentation.
708 * m68hc11-tdep.c: Fix indentation.
709 * m68k-bsd-nat.c: Fix indentation.
710 * m68k-linux-nat.c: Fix indentation.
711 * m68k-linux-tdep.c: Fix indentation.
712 * m68k-tdep.c: Fix indentation.
713 * machoread.c: Fix indentation.
714 * macrocmd.c: Fix indentation.
715 * macroexp.c: Fix indentation.
716 * macroscope.c: Fix indentation.
717 * macrotab.c: Fix indentation.
718 * macrotab.h: Fix indentation.
719 * main.c: Fix indentation.
720 * mdebugread.c: Fix indentation.
721 * mep-tdep.c: Fix indentation.
722 * mi/mi-cmd-catch.c: Fix indentation.
723 * mi/mi-cmd-disas.c: Fix indentation.
724 * mi/mi-cmd-env.c: Fix indentation.
725 * mi/mi-cmd-stack.c: Fix indentation.
726 * mi/mi-cmd-var.c: Fix indentation.
727 * mi/mi-cmds.c: Fix indentation.
728 * mi/mi-main.c: Fix indentation.
729 * mi/mi-parse.c: Fix indentation.
730 * microblaze-tdep.c: Fix indentation.
731 * minidebug.c: Fix indentation.
732 * minsyms.c: Fix indentation.
733 * mips-linux-nat.c: Fix indentation.
734 * mips-linux-tdep.c: Fix indentation.
735 * mips-nbsd-tdep.c: Fix indentation.
736 * mips-tdep.c: Fix indentation.
737 * mn10300-linux-tdep.c: Fix indentation.
738 * mn10300-tdep.c: Fix indentation.
739 * moxie-tdep.c: Fix indentation.
740 * msp430-tdep.c: Fix indentation.
741 * namespace.h: Fix indentation.
742 * nat/fork-inferior.c: Fix indentation.
743 * nat/gdb_ptrace.h: Fix indentation.
744 * nat/linux-namespaces.c: Fix indentation.
745 * nat/linux-osdata.c: Fix indentation.
746 * nat/netbsd-nat.c: Fix indentation.
747 * nat/x86-dregs.c: Fix indentation.
748 * nbsd-nat.c: Fix indentation.
749 * nbsd-tdep.c: Fix indentation.
750 * nios2-linux-tdep.c: Fix indentation.
751 * nios2-tdep.c: Fix indentation.
752 * nto-procfs.c: Fix indentation.
753 * nto-tdep.c: Fix indentation.
754 * objfiles.c: Fix indentation.
755 * objfiles.h: Fix indentation.
756 * opencl-lang.c: Fix indentation.
757 * or1k-tdep.c: Fix indentation.
758 * osabi.c: Fix indentation.
759 * osabi.h: Fix indentation.
760 * osdata.c: Fix indentation.
761 * p-lang.c: Fix indentation.
762 * p-typeprint.c: Fix indentation.
763 * p-valprint.c: Fix indentation.
764 * parse.c: Fix indentation.
765 * ppc-linux-nat.c: Fix indentation.
766 * ppc-linux-tdep.c: Fix indentation.
767 * ppc-nbsd-nat.c: Fix indentation.
768 * ppc-nbsd-tdep.c: Fix indentation.
769 * ppc-obsd-nat.c: Fix indentation.
770 * ppc-ravenscar-thread.c: Fix indentation.
771 * ppc-sysv-tdep.c: Fix indentation.
772 * ppc64-tdep.c: Fix indentation.
773 * printcmd.c: Fix indentation.
774 * proc-api.c: Fix indentation.
775 * producer.c: Fix indentation.
776 * producer.h: Fix indentation.
777 * prologue-value.c: Fix indentation.
778 * prologue-value.h: Fix indentation.
779 * psymtab.c: Fix indentation.
780 * python/py-arch.c: Fix indentation.
781 * python/py-bpevent.c: Fix indentation.
782 * python/py-event.c: Fix indentation.
783 * python/py-event.h: Fix indentation.
784 * python/py-finishbreakpoint.c: Fix indentation.
785 * python/py-frame.c: Fix indentation.
786 * python/py-framefilter.c: Fix indentation.
787 * python/py-inferior.c: Fix indentation.
788 * python/py-infthread.c: Fix indentation.
789 * python/py-objfile.c: Fix indentation.
790 * python/py-prettyprint.c: Fix indentation.
791 * python/py-registers.c: Fix indentation.
792 * python/py-signalevent.c: Fix indentation.
793 * python/py-stopevent.c: Fix indentation.
794 * python/py-stopevent.h: Fix indentation.
795 * python/py-threadevent.c: Fix indentation.
796 * python/py-tui.c: Fix indentation.
797 * python/py-unwind.c: Fix indentation.
798 * python/py-value.c: Fix indentation.
799 * python/py-xmethods.c: Fix indentation.
800 * python/python-internal.h: Fix indentation.
801 * python/python.c: Fix indentation.
802 * ravenscar-thread.c: Fix indentation.
803 * record-btrace.c: Fix indentation.
804 * record-full.c: Fix indentation.
805 * record.c: Fix indentation.
806 * reggroups.c: Fix indentation.
807 * regset.h: Fix indentation.
808 * remote-fileio.c: Fix indentation.
809 * remote.c: Fix indentation.
810 * reverse.c: Fix indentation.
811 * riscv-linux-tdep.c: Fix indentation.
812 * riscv-ravenscar-thread.c: Fix indentation.
813 * riscv-tdep.c: Fix indentation.
814 * rl78-tdep.c: Fix indentation.
815 * rs6000-aix-tdep.c: Fix indentation.
816 * rs6000-lynx178-tdep.c: Fix indentation.
817 * rs6000-nat.c: Fix indentation.
818 * rs6000-tdep.c: Fix indentation.
819 * rust-lang.c: Fix indentation.
820 * rx-tdep.c: Fix indentation.
821 * s12z-tdep.c: Fix indentation.
822 * s390-linux-tdep.c: Fix indentation.
823 * score-tdep.c: Fix indentation.
824 * ser-base.c: Fix indentation.
825 * ser-mingw.c: Fix indentation.
826 * ser-uds.c: Fix indentation.
827 * ser-unix.c: Fix indentation.
828 * serial.c: Fix indentation.
829 * sh-linux-tdep.c: Fix indentation.
830 * sh-nbsd-tdep.c: Fix indentation.
831 * sh-tdep.c: Fix indentation.
832 * skip.c: Fix indentation.
833 * sol-thread.c: Fix indentation.
834 * solib-aix.c: Fix indentation.
835 * solib-darwin.c: Fix indentation.
836 * solib-frv.c: Fix indentation.
837 * solib-svr4.c: Fix indentation.
838 * solib.c: Fix indentation.
839 * source.c: Fix indentation.
840 * sparc-linux-tdep.c: Fix indentation.
841 * sparc-nbsd-tdep.c: Fix indentation.
842 * sparc-obsd-tdep.c: Fix indentation.
843 * sparc-ravenscar-thread.c: Fix indentation.
844 * sparc-tdep.c: Fix indentation.
845 * sparc64-linux-tdep.c: Fix indentation.
846 * sparc64-nbsd-tdep.c: Fix indentation.
847 * sparc64-obsd-tdep.c: Fix indentation.
848 * sparc64-tdep.c: Fix indentation.
849 * stabsread.c: Fix indentation.
850 * stack.c: Fix indentation.
851 * stap-probe.c: Fix indentation.
852 * stubs/ia64vms-stub.c: Fix indentation.
853 * stubs/m32r-stub.c: Fix indentation.
854 * stubs/m68k-stub.c: Fix indentation.
855 * stubs/sh-stub.c: Fix indentation.
856 * stubs/sparc-stub.c: Fix indentation.
857 * symfile-mem.c: Fix indentation.
858 * symfile.c: Fix indentation.
859 * symfile.h: Fix indentation.
860 * symmisc.c: Fix indentation.
861 * symtab.c: Fix indentation.
862 * symtab.h: Fix indentation.
863 * target-float.c: Fix indentation.
864 * target.c: Fix indentation.
865 * target.h: Fix indentation.
866 * tic6x-tdep.c: Fix indentation.
867 * tilegx-linux-tdep.c: Fix indentation.
868 * tilegx-tdep.c: Fix indentation.
869 * top.c: Fix indentation.
870 * tracefile-tfile.c: Fix indentation.
871 * tracepoint.c: Fix indentation.
872 * tui/tui-disasm.c: Fix indentation.
873 * tui/tui-io.c: Fix indentation.
874 * tui/tui-regs.c: Fix indentation.
875 * tui/tui-stack.c: Fix indentation.
876 * tui/tui-win.c: Fix indentation.
877 * tui/tui-winsource.c: Fix indentation.
878 * tui/tui.c: Fix indentation.
879 * typeprint.c: Fix indentation.
880 * ui-out.h: Fix indentation.
881 * unittests/copy_bitwise-selftests.c: Fix indentation.
882 * unittests/memory-map-selftests.c: Fix indentation.
883 * utils.c: Fix indentation.
884 * v850-tdep.c: Fix indentation.
885 * valarith.c: Fix indentation.
886 * valops.c: Fix indentation.
887 * valprint.c: Fix indentation.
888 * valprint.h: Fix indentation.
889 * value.c: Fix indentation.
890 * value.h: Fix indentation.
891 * varobj.c: Fix indentation.
892 * vax-tdep.c: Fix indentation.
893 * windows-nat.c: Fix indentation.
894 * windows-tdep.c: Fix indentation.
895 * xcoffread.c: Fix indentation.
896 * xml-syscall.c: Fix indentation.
897 * xml-tdesc.c: Fix indentation.
898 * xstormy16-tdep.c: Fix indentation.
899 * xtensa-config.c: Fix indentation.
900 * xtensa-linux-nat.c: Fix indentation.
901 * xtensa-linux-tdep.c: Fix indentation.
902 * xtensa-tdep.c: Fix indentation.
903
e1f57067
AB
9042020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
905 Craig Blackmore <craig.blackmore@embecosm.com>
906
907 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
908 as an unsigned value.
909
ae7754b2
TT
9102020-11-01 Tom Tromey <tom@tromey.com>
911
912 * dbxread.c (dbx_end_psymtab): Update.
913 * dwarf2/read.c (process_psymtab_comp_unit_reader)
914 (build_type_psymtabs_reader): Update.
915 * xcoffread.c (xcoff_end_psymtab): Update.
916 * ctfread.c (scan_partial_symbols): Update.
917 * psymtab.c (sort_pst_symbols): Remove.
918 (partial_symtab::end): Rename from end_psymtab_common. Inline
919 sort_pst_symbols.
920 * psympriv.h (struct partial_symtab) <end>: New method.
921 (end_psymtab_common): Don't declare.
922
0684bb51
TT
9232020-11-01 Tom Tromey <tom@tromey.com>
924
925 * symmisc.c (count_psyms): New function.
926 (print_objfile_statistics): Use it.
927 * psymtab.c (append_psymbol_to_list): Remove.
928 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
929 * objfiles.h (struct objstats) <n_psyms>: Remove.
930
089002bb
TT
9312020-11-01 Tom Tromey <tom@tromey.com>
932
933 * dbxread.c (dbx_end_psymtab): Update.
934 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
935 (build_type_psymtabs_reader): Update.
936 * xcoffread.c (xcoff_end_psymtab): Update.
937 * ctfread.c (scan_partial_symbols): Update.
938 * psympriv.h (end_psymtab_common): Update.
939 * psymtab.c (end_psymtab_common): Remove objfile parameter.
940 (sort_pst_symbols): Likewise.
941
525454d6
TT
9422020-11-01 Tom Tromey <tom@tromey.com>
943
944 * dbxread.c (dbx_symfile_read): Update.
945 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
946 * xcoffread.c (xcoff_initial_scan): Update.
947 * psympriv.h (init_psymbol_list): Don't declare.
948 * psymtab.c (init_psymbol_list): Remove.
949
60bd1d53
JB
9502020-11-01 Joel Brobecker <brobecker@adacore.com>
951
952 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
953 gnat_encoded_fixed_type_info. Update all callers.
954
db99d0d0
JB
9552020-11-01 Joel Brobecker <brobecker@adacore.com>
956
957 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
958 line too long.
959
75f24e86
JB
9602020-11-01 Joel Brobecker <brobecker@adacore.com>
961
962 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
963 cast_from_fixed. Update all callers.
964 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
965 Update all callers.
966 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
967 Update all callers.
968 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
969 ada_scaling_factor.
970 * ada-typeprint.c: Replace call to ada_scaling_factor by call
971 to print_gnat_encoded_fixed_point_type.
972 * ada-valprint.c: Likewise.
973
4f0469cd
AB
9742020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
975
976 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
977 (debug_prefixed_printf): Add check of debug_displaced flag.
978 * linux-nat.c (linux_nat_debug_printf): Add check of
979 debug_linux_nat flag.
980
17417fb0
SM
9812020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
982
983 * infrun.c (infrun_debug_printf_1): Remove.
984 (displaced_debug_printf_1): Remove.
985 (stop_all_threads): Use debug_prefixed_printf.
986 * infrun.h (infrun_debug_printf_1): Remove.
987 (infrun_debug_printf): Use debug_prefixed_printf.
988 (displaced_debug_printf_1): Remove.
989 (displaced_debug_printf): Use debug_prefixed_printf.
990 * linux-nat.c (linux_nat_debug_printf_1): Remove.
991 (linux_nat_debug_printf): Use debug_prefixed_printf.
992
ad6dba1c
SM
9932020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
994
995 * configure: Re-generate.
996 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
997 AC_LANG_PROGRAM.
998
b6fb30ed
SM
9992020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1000
1001 * configure: Re-generate.
1002
5164c117
SM
10032020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1004
1005 * configure: Re-generate.
1006
864ca435
SM
10072020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1008
1009 * configure: Re-generate.
1010
b9442ec1
SM
10112020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1012
1013 * configure: Re-generate.
1014
294f2697
SM
10152020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1016
1017 * acinclude.m4: Modernize.
1018 * configure: Re-generate.
1019
5593a99a
SM
10202020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1021
1022 * configure.ac: Modernize.
1023 * configure: Re-generate.
1024
e41fda1d
SM
10252020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1026
1027 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1028 * configure: Re-generate.
1029 * configure.ac: Remove AM_PROG_CC_STDC.
1030
91e1a0ed
SM
10312020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1032
1033 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1034 AC_CANONICAL_SYSTEM.
1035 * configure: Re-generate.
1036
136821d9
SM
10372020-10-30 Simon Marchi <simon.marchi@efficios.com>
1038
1039 * infrun.h (displaced_debug_printf): New macro. Replace
1040 displaced debug prints throughout to use it.
1041 (displaced_debug_printf_1): New declaration.
1042 (displaced_step_dump_bytes): Return string, remove ui_file
1043 parameter, update all callers.
1044 * infrun.c (displaced_debug_printf_1): New function.
1045 (displaced_step_dump_bytes): Return string, remove ui_file
1046 parameter
1047
aa2045e7
SM
10482020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1049
1050 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1051
b1ec2735
TT
10522020-10-30 Tom Tromey <tromey@adacore.com>
1053
1054 * Makefile.in (stamp-init): Depend on config.status.
1055
b78b3a29
TBA
10562020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1057
1058 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1059
d70bdd3c
PA
10602020-10-30 Pedro Alves <pedro@palves.net>
1061
1062 * thread.c (lookup_selected_frame): Move ...
1063 * frame.c (lookup_selected_frame): ... here.
1064
79952e69
PA
10652020-10-30 Pedro Alves <pedro@palves.net>
1066
1067 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1068 * frame.c
1069 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1070 Use save_selected_frame. Save language as well.
1071 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1072 Use restore_selected_frame, and restore language as well.
1073 (selected_frame_id, selected_frame_level): New.
1074 (selected_frame): Update comments.
1075 (save_selected_frame, restore_selected_frame): New.
1076 (get_selected_frame): Use lookup_selected_frame.
1077 (get_selected_frame_if_set): Delete.
1078 (select_frame): Record selected_frame_level and selected_frame_id.
1079 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1080 fields.
1081 (get_selected_frame): Make 'message' parameter optional.
1082 (get_selected_frame_if_set): Delete declaration.
1083 (select_frame): Update comments.
1084 (save_selected_frame, restore_selected_frame)
1085 (lookup_selected_frame): Declare.
1086 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1087 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1088 New field.
1089 (save_infcall_control_state): Use save_selected_frame.
1090 (restore_selected_frame): Delete.
1091 (restore_infcall_control_state): Use restore_selected_frame.
1092 * stack.c (select_frame_command_core, frame_command_core): Use
1093 get_selected_frame.
1094 * thread.c (restore_selected_frame): Rename to ...
1095 (lookup_selected_frame): ... this and make extern. Select the
1096 current frame if the frame level is -1.
1097 (scoped_restore_current_thread::restore): Also restore the
1098 language.
1099 (scoped_restore_current_thread::~scoped_restore_current_thread):
1100 Don't try/catch.
1101 (scoped_restore_current_thread::scoped_restore_current_thread):
1102 Save the language as well. Use save_selected_frame.
1103
58103c33
SM
11042020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1105
1106 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1107 documentation.
1108 * gdbarch.h: Re-generate.
1109
40a53766
SM
11102020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1111
1112 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1113 parameter.
1114 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1115 Likewise.
1116 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1117 Likewise.
1118 * arch-utils.c (default_displaced_step_hw_singlestep):
1119 Likewise.
1120 * arch-utils.h (default_displaced_step_hw_singlestep):
1121 Likewise.
1122 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1123 Likewise.
1124 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1125 Likewise.
1126 * gdbarch.c: Re-generate.
1127 * gdbarch.h: Re-generate.
1128 * infrun.c (resume_1): Adjust.
1129
8407f91b
TT
11302020-10-29 Tom Tromey <tom@tromey.com>
1131
1132 * progspace.c (program_space::~program_space): Don't call
1133 exec_close.
1134
5008b3b2
TT
11352020-10-29 Tom Tromey <tom@tromey.com>
1136
1137 * exec.c (exec_target::close): Don't change current program
1138 space.
1139
d9eebde0
TT
11402020-10-29 Tom Tromey <tom@tromey.com>
1141
1142 * symfile.c (add_symbol_file_command): Update.
1143 * exec.c (program_space::add_target_sections): Rename.
1144 * symfile-mem.c (symbol_file_add_from_memory): Update.
1145 * progspace.h (struct program_space) <add_target_sections>:
1146 Declare new overload.
1147 * exec.h (add_target_sections_of_objfile): Don't declare.
1148
3769e227
TT
11492020-10-29 Tom Tromey <tom@tromey.com>
1150
1151 * solib.c (solib_map_sections): Update.
1152 * exec.c (program_space::add_target_sections): Now a method.
1153 (exec_file_attach): Update.
1154 * exec.h (add_target_sections): Don't declare.
1155 * progspace.h (struct program_space) <add_target_sections>:
1156 Declare.
1157
2a3f84af
TT
11582020-10-29 Tom Tromey <tom@tromey.com>
1159
1160 * progspace.h (struct program_space) <remove_target_sections>:
1161 Declare.
1162 * exec.c (program_space::remove_target_sections): Now a method.
1163 * exec.h (remove_target_sections): Don't declare.
1164
004eecfd
TT
11652020-10-29 Tom Tromey <tom@tromey.com>
1166
1167 * inferior.c (delete_inferior): Update.
1168 * progspace.c (program_space::empty): Rename from
1169 program_space_empty_p. Return bool.
1170 * progspace.h (struct program_space) <empty>: New method.
1171 (program_space_empty_p): Don't declare.
1172
e39fb971
TT
11732020-10-29 Tom Tromey <tom@tromey.com>
1174
1175 * progspace.c (program_space::~program_space): Don't call
1176 clear_program_space_solib_cache.
1177 (program_space::clear_solib_cache): Rename from
1178 clear_solib_cache.
1179 * solib.c (handle_solib_event): Update.
1180 * progspace.h (struct program_space) <clear_solib_cache>: New
1181 method.
1182 (clear_program_space_solib_cache): Don't declare.
1183
a42d7dd8
TT
11842020-10-29 Tom Tromey <tom@tromey.com>
1185
1186 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1187 * target.c (info_target_command): Update.
1188 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1189 (symbol_file_clear, reread_symbols): Update.
1190 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1191 * stabsread.c (scan_file_globals): Update.
1192 * solib.c (update_solib_list): Update.
1193 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1194 (svr4_fetch_objfile_link_map, enable_break)
1195 (svr4_relocate_main_executable)
1196 (svr4_iterate_over_objfiles_in_search_order): Update.
1197 * solib-frv.c (lm_base, enable_break)
1198 (frv_relocate_main_executable): Update.
1199 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1200 (frv_fetch_objfile_link_map): Update.
1201 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1202 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1203 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1204 * remote.c (remote_target::get_offsets): Update.
1205 (remote_target::start_remote)
1206 (extended_remote_target::post_attach): Update.
1207 * objfiles.c (entry_point_address_query): Update.
1208 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1209 * minsyms.c (get_symbol_leading_char): Update.
1210 * frame.c (inside_main_func): Update.
1211 * progspace.h (symfile_objfile): Remove macro.
1212
19f6550e
TT
12132020-10-29 Tom Tromey <tom@tromey.com>
1214
1215 * exec.c (exec_file_attach): Update.
1216 * progspace.c (program_space::exec_close): Update.
1217 * progspace.h (struct program_space) <ebfd>: Now a
1218 gdb_bfd_ref_ptr.
1219 <set_exec_bfd>: Change argument type.
1220 <exec_bfd>: Update.
1221
7e10abd1
TT
12222020-10-29 Tom Tromey <tom@tromey.com>
1223
1224 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1225 * symfile.c (reread_symbols): Update.
1226 * symfile-mem.c (add_symbol_file_from_memory_command)
1227 (add_vsyscall_page): Update.
1228 * source-cache.c (source_cache::get_plain_source_lines): Update.
1229 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1230 (svr4_current_sos_direct, svr4_exec_displacement)
1231 (svr4_relocate_main_executable): Update.
1232 (svr4_iterate_over_objfiles_in_search_order): Update.
1233 * solib-frv.c (enable_break2, enable_break): Update.
1234 * solib-dsbt.c (lm_base, enable_break): Update.
1235 * solib-darwin.c (find_program_interpreter)
1236 (darwin_solib_create_inferior_hook): Update.
1237 * sol-thread.c (rw_common, ps_pdmodel): Update.
1238 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1239 * remote.c (compare_sections_command)
1240 (remote_target::trace_set_readonly_regions): Update.
1241 * remote-sim.c (get_sim_inferior_data)
1242 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1243 (gdbsim_target_open, gdbsim_target::files_info): Update.
1244 * exec.h (exec_bfd): Remove macro.
1245 * progspace.c (initialize_progspace): Update.
1246 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1247 Update.
1248 * nto-procfs.c (nto_procfs_target::post_attach)
1249 (nto_procfs_target::create_inferior): Update.
1250 * maint.c (maintenance_info_sections): Update.
1251 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1252 Update.
1253 * infcmd.c (post_create_inferior): Update.
1254 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1255 (objfile_find_memory_regions): Update.
1256 * exec.c (validate_exec_file, exec_file_attach)
1257 (exec_read_partial_read_only, print_section_info): Update.
1258 * corelow.c (core_target_open): Update.
1259 * corefile.c (reopen_exec_file, validate_files): Update.
1260 * arm-tdep.c (gdb_print_insn_arm): Update.
1261 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1262 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1263 methods.
1264
b55221ab
TT
12652020-10-29 Tom Tromey <tom@tromey.com>
1266
1267 * progspace.h (current_target_sections): Remove macro.
1268 * solib-svr4.c (scan_dyntag): Update.
1269 * solib-dsbt.c (scan_dyntag): Update.
1270 * exec.c (exec_target::close): Update.
1271 (add_target_sections, add_target_sections_of_objfile)
1272 (remove_target_sections, exec_target::get_section_table)
1273 (exec_target::files_info, set_section_command)
1274 (exec_set_section_address, exec_target::has_memory)
1275 (exec_target::has_memory): Update.
1276
5a36e715
TT
12772020-10-29 Tom Tromey <tom@tromey.com>
1278
1279 * source-cache.c (source_cache::get_plain_source_lines): Use
1280 current_program_space.
1281 * corefile.c (reopen_exec_file): Use current_program_space.
1282 * exec.c (exec_file_attach): Use current_program_space.
1283 * exec.h (exec_bfd_mtime): Remove.
1284
784c8592
TT
12852020-10-29 Tom Tromey <tom@tromey.com>
1286
1287 * gcore.c (default_gcore_mach): Remove.
1288 (create_gcore_bfd): Update.
1289
8a4f1402
TT
12902020-10-29 Tom Tromey <tom@tromey.com>
1291
1292 * progspace.c (program_space::exec_close): New method, from
1293 exec_close in exec.c.
1294 * exec.c (exec_close): Move to progspace.c.
1295 (exec_target::close, exec_file_attach): Update.
1296 * progspace.h (struct program_space) <exec_close>: Declare
1297 method.
1298
c20cb686
TT
12992020-10-29 Tom Tromey <tom@tromey.com>
1300
1301 * progspace.h (struct program_space) <exec_filename>: Rename from
1302 pspace_exec_filename. Now a unique_xmalloc_ptr.
1303 * inferior.c (print_selected_inferior): Update.
1304 (print_inferior): Update.
1305 * mi/mi-main.c (print_one_inferior): Update.
1306 * exec.h (exec_filename): Remove macro.
1307 * corefile.c (get_exec_file): Update.
1308 * exec.c (exec_close): Update.
1309 (exec_file_attach): Update.
1310 * progspace.c (clone_program_space): Update.
1311 (print_program_space): Update.
1312
6be2a9ab
TT
13132020-10-29 Tom Tromey <tom@tromey.com>
1314
1315 * target-section.h (struct target_section): Add constructor.
1316 * exec.c (build_section_table, add_target_sections_of_objfile):
1317 Update.
1318 * corelow.c (core_target::build_file_mappings): Update.
1319
cfaa8f76
TBA
13202020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1321
1322 PR gdb/19318
1323 * inferior.c (detach_inferior_command): Restore the current thread.
1324 (kill_inferior_command): Ditto.
1325
1b00ef06
TV
13262020-10-28 Tom de Vries <tdevries@suse.de>
1327
1328 PR symtab/26772
1329 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1330 map, check it in the "best match" loop.
1331
7f40ce1a
SM
13322020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1333
1334 * m32c-tdep.c: Remove unused includes.
1335
5eb9e3f5
SM
13362020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1337
1338 * xtensa-tdep.c: Remove includes.
1339
b1d4d8d1
TBA
13402020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1341
1342 * breakpoint.c (struct condition_command_opts): New struct.
1343 (condition_command_option_defs): New static global.
1344 (make_condition_command_options_def_group): New function.
1345 (condition_completer): Update to consider the '-force' flag.
1346 (condition_command): Use gdb::option for the '-force' flag.
1347
bd24c5d6
TV
13482020-10-27 Tom de Vries <tdevries@suse.de>
1349
1350 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1351 symbols in section check.
1352
61eb46a4
TV
13532020-10-27 Tom de Vries <tdevries@suse.de>
1354
1355 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1356
733d554a
TBA
13572020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1358
1359 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1360 * breakpoint.c: Update the help text of the 'condition' and 'break'
1361 commands.
1362 (set_breakpoint_condition): Take a new bool parameter
1363 to control whether condition definition should be forced even when
1364 the condition expression is invalid in all of the current locations.
1365 (condition_command): Update the call to 'set_breakpoint_condition'.
1366 (find_condition_and_thread): Take the "-force-condition" flag into
1367 account.
1368 * linespec.c (linespec_keywords): Add "-force-condition" as an
1369 element.
1370 (FORCE_KEYWORD_INDEX): New #define.
1371 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1372 as a keyword.
1373 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1374 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1375 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1376 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1377
b5fa468f
TBA
13782020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1379
1380 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1381 * breakpoint.c (set_breakpoint_location_condition): New function.
1382 (set_breakpoint_condition): Disable a breakpoint location if parsing
1383 the condition string gives an error.
1384 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1385 (build_target_condition_list): Ditto.
1386 (build_target_command_list): Ditto.
1387 (build_bpstat_chain): Ditto.
1388 (print_one_breakpoint_location): Ditto.
1389 (print_one_breakpoint): Ditto.
1390 (breakpoint_1): Ditto.
1391 (bp_location::bp_location): Ditto.
1392 (locations_are_equal): Ditto.
1393 (update_breakpoint_locations): Ditto.
1394 (enable_disable_bp_num_loc): Ditto.
1395 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1396 (find_condition_and_thread_for_sals): New static function.
1397 (create_breakpoint): Call find_condition_and_thread_for_sals.
1398 (location_to_sals): Call find_condition_and_thread_for_sals instead
1399 of find_condition_and_thread.
1400
1c47ec3e
TV
14012020-10-26 Tom de Vries <tdevries@suse.de>
1402
1403 * dwarf2/read.c (process_full_comp_unit): Call
1404 dwarf2_find_base_address.
1405
6390859c
TT
14062020-10-26 Tom Tromey <tromey@adacore.com>
1407
1408 * gdbtypes.c (create_range_type): Revert previous patch. Add
1409 comment.
1410
d744f0f9
PA
14112020-10-26 Pedro Alves <pedro@palves.net>
1412
1413 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1414 (my_waitpid): Use gdb::handle_eintr.
1415
006811bc
SM
14162020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1417
1418 * acinclude.m4: Update ptrace.m4 path.
1419 * ptrace.m4: Moved to gdbsupport.
1420
c75e31a1
SM
14212020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1422
1423 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1424 instead of target_gdbarch.
1425
32495661
SM
14262020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1427
1428 * jit.c (jit_reader_load_command): Pass current inferior.
1429 (jit_inferior_init): Change parameter type to inferior, use it.
1430 (jit_inferior_created): Remove.
1431 (jit_inferior_created_hook): Pass inferior parameter down.
1432 (_initialize_jit): Use jit_inferior_created_hook instead of
1433 jit_inferior_created.
1434 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1435 * infrun.c (follow_exec): Pass inferior to
1436 jit_inferior_created_hook.
1437
3f66685e
SM
14382020-10-24 Simon Marchi <simon.marchi@efficios.com>
1439
1440 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1441 parameter and use it.
1442 (thread_db_inferior_created): Pass inferior argument.
1443
a0ff652f
SM
14442020-10-24 Simon Marchi <simon.marchi@efficios.com>
1445
1446 * aix-thread.c (aix_thread_inferior_created): Add inferior
1447 parameter.
1448 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1449 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1450 * jit.c (jit_inferior_created): Likewise.
1451 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1452 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1453 * observable.h (inferior_created): Likewise.
1454 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1455 * symfile-mem.c (add_vsyscall_page): Likewise.
1456 * infcmd.c (post_create_inferior): Pass inferior argument.
1457
3c67532c
JB
14582020-10-24 Joel Brobecker <brobecker@adacore.com>
1459
1460 GDB 10.1 released.
1461
8747316e
JB
14622020-10-23 Joel Brobecker <brobecker@adacore.com>
1463
1464 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1465 to ada_check_typedef.
1466
1a0ea399
AB
14672020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1468
1469 * f-exp.y (f_parse): Rename to...
1470 (f_language::parser): ...this.
1471 * f-lang.c (f_get_encoding): Rename to...
1472 (f_language::get_encoding): ...this.
1473 (f_op_print_tab): Rename to...
1474 (f_language::op_print_tab): ...this.
1475 (exp_descriptor_f): Rename to...
1476 (f_language::exp_descriptor_tab): ...this.
1477 (class f_language): Moved to f-lang.h.
1478 (f_language::language_arch_info): New function, moved out of class
1479 declaration.
1480 (f_language::search_name_hash): Likewise.
1481 (f_language::lookup_symbol_nonlocal): Likewise.
1482 (f_language::get_symbol_name_matcher_inner): Likewise.
1483 * f-lang.h: Add 'valprint.h' include.
1484 (class f_language): Moved here from f-lang.c.
1485 * f-typeprint.c (f_type_print_args): Delete commented out
1486 declaration.
1487 (f_print_typedef): Rename to...
1488 (f_language::print_typedef): ...this.
1489 (f_print_type): Rename to...
1490 (f_language::print_type): ...this.
1491 (f_type_print_varspec_prefix): Delete declaration and rename to...
1492 (f_language::f_type_print_varspec_prefix): ...this.
1493 (f_type_print_varspec_suffix): Delete declaration and rename to...
1494 (f_language::f_type_print_varspec_suffix): ...this.
1495 (f_type_print_base): Delete declaration and rename to...
1496 (f_language::f_type_print_base): ...this.
1497 * f-valprint.c (f_value_print_inner): Rename to...
1498 (f_language::value_print_inner): ...this.
1499 * parse.c: Delete 'f-lang.h' include.
1500
88cefd9b
AB
15012020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1502
1503 * language.h (language_defn::print_type): Add variable names in
1504 declaration, and update header comment.
1505
5399db93
AB
15062020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1507
1508 * ada-lang.c (ada_language::demangle): Rename to...
1509 (ada_language::demangle_symbol): ...this.
1510 * c-lang.c (cplus_language::demangle): Rename to...
1511 (cplus_language::demangle_symbol): ...this.
1512 * d-lang.c (d_language::demangle): Rename to...
1513 (d_language::demangle_symbol): ...this.
1514 * f-lang.c (f_language::demangle): Rename to...
1515 (f_language::demangle_symbol): ...this.
1516 * go-lang.c (go_language::demangle): Rename to...
1517 (go_language::demangle_symbol): ...this.
1518 * language.c (language_demangle): Update call to demangle_symbol.
1519 (auto_or_unknown_language::demangle): Rename to...
1520 (auto_or_unknown_language::demangle_symbol): ...this.
1521 * language.h (language_defn::demangle): Rename to...
1522 (language_defn::demangle_symbol): ...this.
1523 * objc-lang.c (objc_language::demangle): Rename to...
1524 (objc_language::demangle_symbol): ...this.
1525 * rust-lang.c (rust_language::demangle): Rename to...
1526 (rust_language::demangle_symbol): ...this.
1527
4b2f86ef
AB
15282020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1529
1530 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1531 (iterate_over_file_blocks): Replace use of macro with the macros
1532 definition.
1533
e74b39de
AB
15342020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1535
1536 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1537 * valprint.c (maybe_print_array_index): Replace use of macro with
1538 the macros definition.
1539
00c696a6
AB
15402020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1541
1542 * ada-lang.c (ada_language::print_array_index): Call value_print
1543 directly.
1544 * language.c (language_defn::print_array_index): Likewise.
1545 * language.h (LA_VALUE_PRINT): Delete.
1546 * valprint.c (value_print): Call value_print on the
1547 current_language directly.
1548
d3b67c56
AB
15492020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1550
1551 * language.h (LA_PRINT_TYPEDEF): Delete.
1552 * typeprint.c (typedef_print): Call print_typedef directly on the
1553 current_language object.
1554
790e2a12
AB
15552020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1556
1557 * m2-exp.y (m2_parse): Rename to...
1558 (m2_language::parser): ...this. Update function signature.
1559 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1560 (m2_op_print): Rename to...
1561 (m2_language::op_print_tab): ...this, and make const.
1562 (exp_descriptor_modula2): Rename to...
1563 (m2_language::exp_descriptor_modula2): ...this.
1564 (class m2_language): Move to m2-lang.h.
1565 (m2_language::language_arch_info): New function, moved out of
1566 class declaration.
1567 (m2_language::printchar): New function, body from m2_printchar.
1568 (m2_language::printstr): New function, moved out of class
1569 declaration.
1570 (m2_language::emitchar): Likewise.
1571 * m2-lang.h (m2_parse): Delete declaration.
1572 (m2_print_typedef): Delete declaration.
1573 (m2_value_print_inner): Delete declaration.
1574 (class m2_language): Class declaration moved from m2-lang.c,
1575 larger functions are left in m2-lang.c.
1576 * m2-typeprint.c (m2_print_typedef): Rename to...
1577 (m2_language::print_typedef): ...this, and update function
1578 signature.
1579 * m2-valprint.c (m2_value_print_inner): Rename to...
1580 (m2_language::value_print_inner): ...this, replace use of
1581 LA_PRINT_STRING with a direct call to printstr member function,
1582 and update recursive call.
1583
b01175fc
AB
15842020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1585
1586 * language.c (default_is_string_type_p): Delete, implementation
1587 moved into auto_or_unknown_language::is_string_type_p.
1588 (unk_op_print_tab): Moved into
1589 auto_or_unknown_language::opcode_print_table.
1590 (unknown_language_arch_info): Delete, implementation moved into
1591 auto_or_unknown_language::language_arch_info.
1592 (class auto_or_unknown_language): New class, member functions
1593 copied from unknown_language class, with some updates.
1594 (class unknown_language): Most member functions moved into
1595 auto_or_unknown_language class. Inherit from
1596 auto_or_unknown_language class.
1597 (class auto_language): Inherit from auto_or_unknown_language.
1598 Delete most member functions.
1599
1a97fe8c
HD
16002020-10-22 Hannes Domani <ssbssa@yahoo.de>
1601
1602 * stabsread.c (read_member_functions): Remove gdb_assert.
1603
6b9d0dfd
HD
16042020-10-22 Hannes Domani <ssbssa@yahoo.de>
1605
1606 * gdbtypes.c (init_complex_type): Check target type name.
1607
4b4bb603
SM
16082020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1609
1610 * target-debug.h (target_debug_print_struct_target_ops_p):
1611 Remove.
1612 (target_debug_print_async_callback_ftype_p): Remove.
1613 (target_debug_print_struct_trace_state_variable_p): Remove.
1614 (target_debug_print_struct_traceframe_info_p): Remove.
1615 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1616 (target_debug_print_enum_btrace_format): Remove.
1617 (target_debug_print_enum_info_proc_what): Remove.
1618 (target_debug_print_thread_info_pp): Remove.
1619
24f5300a
SM
16202020-10-22 Simon Marchi <simon.marchi@efficios.com>
1621
1622 * target.h (struct target_ops) <make_corefile_notes>:
1623 Change return type to unique pointer.
1624 * target.c (dummy_make_corefile_notes): Likewise.
1625 * exec.c (struct exec_target) <make_corefile_notes>:
1626 Likewise.
1627 (exec_target::make_corefile_notes): Likewise.
1628 * procfs.c (class procfs_target) <make_corefile_notes>:
1629 Likewise.
1630 (procfs_do_thread_registers): Adjust to unique pointer.
1631 (struct procfs_corefile_thread_data): Add constructor.
1632 <note_data>: Change type to unique pointer.
1633 (procfs_corefile_thread_callback): Adjust to unique pointer.
1634 (procfs_target::make_corefile_notes): Change return type to
1635 unique pointer.
1636 * target-delegates.c: Re-generate.
1637 * gcore.c (write_gcore_file_1): Adjust.
1638 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1639 New.
1640
5fb4027f
TV
16412020-10-22 Tom de Vries <tdevries@suse.de>
1642
1643 * block.c (find_block_in_blockvector): Make sure the returned block
1644 contains pc.
1645
4a636814
SM
16462020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1647
1648 PR gdb/26693
1649 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1650 parameter.
1651 (load_cu): Pass existing CU.
1652 (process_imported_unit_die): Likewise.
1653 (follow_die_offset): Likewise.
1654
1bd57575
LM
16552020-10-22 Luis Machado <luis.machado@linaro.org>
1656
1657 * corelow.c (core_target::xfer_partial): Also check for an empty
1658 m_core_unavailable_mappings vector.
1659
6b4c676c
AB
16602020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1661
1662 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1663 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1664 * f-exp.y (arglist): Allow for a series of subranges.
1665 (subrange): Add cases for subranges with strides.
1666 * f-lang.c (value_f90_subarray): Catch use of array strides and
1667 throw an error.
1668 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1669
f2d8e4c5
AB
16702020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1671
1672 * expprint.c (print_subexp_standard): Change enum range_type to
1673 range_flag and rename variables to match.
1674 (dump_subexp_body_standard): Likewise.
1675 * expression.h (enum range_type): Rename to...
1676 (enum range_flag): ...this.
1677 (range_types): Rename to...
1678 (range_flags): ...this.
1679 * f-lang.c (value_f90_subarray): Change enum range_type to
1680 range_flag and rename variables to match.
1681 * parse.c (operator_length_standard): Likewise.
1682 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1683 range_type to range_flag.
1684 * rust-lang.c (rust_evaluate_funcall): Likewise.
1685 (rust_range): Likewise.
1686 (rust_compute_range): Likewise.
1687 (rust_subscript): Likewise.
1688
2f1b18db
AB
16892020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1690
1691 * expprint.c (print_subexp_standard): Update to reflect changes to
1692 enum range_type.
1693 (dump_subexp_body_standard): Likewise.
1694 * expression.h (enum range_type): Convert to a bit field enum, and
1695 make the enum unsigned.
1696 * f-exp.y (subrange): Update to reflect changes to enum
1697 range_type.
1698 * f-lang.c (value_f90_subarray): Likewise.
1699 * parse.c (operator_length_standard): Likewise.
1700 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1701 * rust-lang.c (rust_range): Likewise.
1702 (rust_compute_range): Likewise.
1703 (rust_subscript): Likewise.
1704
a46d1843
SM
17052020-10-21 Simon Marchi <simon.marchi@efficios.com>
1706
1707 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1708 (displaced_step_in_progress): Fix comment.
1709
c21f37a8
SM
17102020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1711
1712 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1713 * gdbarch.c: Re-generate.
1714 * gdbarch.h: Re-generate.
1715 * gcore.c (write_gcore_file_1): Adjust.
1716 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1717 constructor.
1718 <note_data>: Change type to unique pointer.
1719 <abort_iteration>: Change type to bool.
1720 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1721 (fbsd_collect_thread_registers): Return void, adjust.
1722 (struct fbsd_corefile_thread_data): Add construtor.
1723 <note_data>: Change type to unique pointer.
1724 (fbsd_corefile_thread): Adjust.
1725 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1726 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1727 to unique pointer, adjust.
1728 (struct linux_collect_regset_section_cb_data): Add constructor.
1729 <note_data>: Change type to unique pointer.
1730 <abort_iteration>: Change type to bool.
1731 (linux_collect_thread_registers): Return void, adjust.
1732 (struct linux_corefile_thread_data): Add constructor.
1733 <note_data>: Change type to unique pointer.
1734 (linux_corefile_thread): Adjust.
1735 (linux_make_corefile_notes): Return unique pointer, adjust.
1736
07fbbd01
SM
17372020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1738
1739 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1740 * gdbarch.c: Re-generate.
1741 * gdbarch.h: Re-generate.
1742 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1743 bool.
1744 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1745 Likewise.
1746 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1747 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1748 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1749 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1750
39535193
SM
17512020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1752
1753 * gdbarch.sh: Make generated predicates return bool.
1754 * gdbarch.c: Re-generate.
1755 * gdbarch.h: Re-generate.
1756
ad523d01
TT
17572020-10-20 Tom Tromey <tom@tromey.com>
1758
1759 * varobj-iter.h (struct varobj_item): Remove typedef.
1760
c4464ade
SM
17612020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1762
1763 * infrun.c (currently_stepping): Change int to bool
1764 (maybe_software_singlestep): Likewise.
1765 (show_stop_on_solib_events): Likewise.
1766 (stepping_past_nonsteppable_watchpoint): Likewise.
1767 (displaced_step_in_progress_any_inferior): Likewise.
1768 (displaced_step_in_progress_thread): Likewise.
1769 (keep_going_stepped_thread): Likewise.
1770 (thread_still_needs_step_over): Likewise.
1771 (start_step_over): Likewise.
1772 (do_target_resume): Likewise.
1773 (resume_1): Likewise.
1774 (clear_proceed_status): Likewise.
1775 (thread_still_needs_step_over_bp): Likewise.
1776 (proceed): Likewise.
1777 (switch_back_to_stepped_thread): Likewise.
1778 (adjust_pc_after_break): Likewise.
1779 (stepped_in_from): Likewise.
1780 (handle_stop_requested): Likewise.
1781 (handle_syscall_event): Likewise.
1782 (handle_no_resumed): Likewise.
1783 (handle_inferior_event): Likewise.
1784 (finish_step_over): Likewise.
1785 (handle_signal_stop): Likewise.
1786 (process_event_stop_test): Likewise.
1787
2eb20436
SM
17882020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1789
1790 * infrun.c (get_displaced_stepping_state): Fix comment.
1791
e0c45ded
AS
17922020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1793
1794 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1795
22cc388e
TT
17962020-10-19 Tom Tromey <tromey@adacore.com>
1797
1798 PR tui/26719
1799 * tui/tui-winsource.h (struct tui_source_window_base)
1800 <refresh_window>: Rename from refresh_pad.
1801 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1802 Rename from refresh_pad.
1803 (tui_source_window_base::show_source_content)
1804 (tui_source_window_base::do_scroll_horizontal): Update.
1805
3c6eb4d4
TBA
18062020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1807
1808 * thread.c (_initialize_thread): Fine-tune the help text of
1809 'info threads'.
1810
26703721
TBA
18112020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1812
1813 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1814
61c26be8
MS
18152020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1816
1817 * breakpoint.c (handle_jit_event): Add an argument, change how
1818 `jit_event_handler` is called.
1819
932539d7
TT
18202020-10-17 Tom Tromey <tom@tromey.com>
1821
1822 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1823 (scan_xcoff_symtab): Update.
1824 * psymtab.h (class psymtab_storage) <global_psymbols,
1825 static_psymbols, current_global_psymbols,
1826 current_static_psymbols>: Remove.
1827 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1828 (match_partial_symbol, lookup_partial_symbol): Update.
1829 (print_partial_symbols): Change parameters.
1830 (dump_psymtab, recursively_search_psymtabs)
1831 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1832 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1833 (concat): Remove.
1834 (end_psymtab_common): Simplify.
1835 (append_psymbol_to_list): Change parameters.
1836 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1837 (init_psymbol_list): Simplify.
1838 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1839 * psympriv.h (struct partial_symtab) <empty>: New method.
1840 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1841 Remove.
1842 <global_psymbols, static_psymbols>: New members.
1843 <add_psymbol>: New methods.
1844 (add_psymbol_to_list): Don't declare.
1845 (psymbol_placement): Move earlier.
1846 * mdebugread.c (parse_partial_symbols): Update.
1847 (handle_psymbol_enumerators): Change parameters.
1848 (mdebug_expand_psymtab): Update.
1849 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1850 (add_partial_symbol): Update.
1851 * dwarf2/index-write.c (write_psymbols): Change parameters.
1852 (write_one_signatured_type): Update.
1853 (recursively_count_psymbols): Update.
1854 (recursively_write_psymbols): Update.
1855 (class debug_names) <recursively_write_psymbols>: Update.
1856 <write_psymbols>: Change parameters.
1857 <write_one_signatured_type>: Update.
1858 * dbxread.c (read_dbx_symtab): Update.
1859 (dbx_end_psymtab): Use partial_symtab::empty.
1860 * ctfread.c (struct ctf_context) <pst>: New member.
1861 (create_partial_symtab): Set it.
1862 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1863 (scan_partial_symbols): Use the psymtab's context. Update.
1864
cfabbd35
TT
18652020-10-17 Tom Tromey <tom@tromey.com>
1866
1867 * valprint.c (generic_value_print): Remove comment.
1868 * m2-valprint.c (m2_value_print_inner): Remove comment.
1869 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1870 type.
1871
520596f2
TV
18722020-10-17 Tom de Vries <tdevries@suse.de>
1873
1874 PR symtab/26317
1875 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1876 symbol main.
1877
76547ab3
TV
18782020-10-14 Tom de Vries <tdevries@suse.de>
1879
1880 PR gdb/26733
1881 * solib.c (solib_contains_address_p): Handle
1882 'solib->sections == nullptr'.
1883
d3a07122
SM
18842020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1885
1886 PR gdb/26642
1887 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1888 target can't do async.
1889 * target.c (target_wait): Assert that we don't pass
1890 TARGET_WNOHANG to a target that can't async.
1891
1b71cfcf
KR
18922020-10-13 Kamil Rytarowski <n54@gmx.com>
1893
1894 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1895 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1896 * alpha-bsd-nat.c: Adjust include.
1897 * alpha-bsd-tdep.h: Adjust comment.
1898 * alpha-nbsd-tdep.c: Rename to ...
1899 * alpha-netbsd-tdep.c: ... this, adjust include.
1900 * amd64-nbsd-nat.c: Rename to ...
1901 * amd64-netbsd-nat.c: ... this, adjust include.
1902 * amd64-nbsd-tdep.c: Rename to ...
1903 * amd64-netbsd-tdep.c: ... this, adjust include.
1904 * amd64-tdep.h: Adjust include.
1905 * arm-nbsd-nat.c: Rename to ...
1906 * arm-netbsd-nat.c: ... this, adjust include.
1907 * arm-nbsd-tdep.c: Rename to ...
1908 * arm-netbsd-tdep.c: ... this, adjust include.
1909 * arm-nbsd-tdep.h: Rename to ...
1910 * arm-netbsd-tdep.h: ... this, adjust include.
1911 * configure.nat: Adjust file lists.
1912 * configure.tgt: Likewise.
1913 * hppa-nbsd-nat.c: Rename to ...
1914 * hppa-netbsd-nat.c: ... this, adjust include.
1915 * hppa-nbsd-tdep.c: Rename to ...
1916 * hppa-netbsd-tdep.c: ... this, adjust include.
1917 * i386-nbsd-nat.c: Rename to ...
1918 * i386-netbsd-nat.c: ... this, adjust include.
1919 * i386-nbsd-tdep.c: Rename to ...
1920 * i386-netbsd-tdep.c: ... this, adjust include.
1921 * m68k-bsd-nat.c: Adjust include.
1922 * mips-nbsd-nat.c: Rename to ...
1923 * mips-netbsd-nat.c: ... this, adjust include.
1924 * mips-nbsd-tdep.c: Rename to ...
1925 * mips-netbsd-tdep.c: ... this, adjust include.
1926 * mips-nbsd-tdep.h: Rename to ...
1927 * mips-netbsd-tdep.h: ... this.
1928 * nbsd-nat.c: Rename to ...
1929 * netbsd-nat.c: ... this, adjust include.
1930 * nbsd-nat.h: Rename to ...
1931 * netbsd-nat.h: ... this, adjust include.
1932 * nbsd-tdep.c: Rename to ...
1933 * netbsd-tdep.c: ... this, adjust include.
1934 * nbsd-tdep.h: Rename to ...
1935 * netbsd-tdep.h: ... this.
1936 * ppc-nbsd-nat.c: Rename to ...
1937 * ppc-netbsd-nat.c: ... this, adjust include.
1938 * ppc-nbsd-tdep.c: Rename to ...
1939 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1940 * ppc-nbsd-tdep.h: Rename to ...
1941 * ppc-netbsd-tdep.h: ... this.
1942 * sh-nbsd-nat.c: Rename to ...
1943 * sh-netbsd-nat.c: ... this, adjust include.
1944 * sh-nbsd-tdep.c: Rename to ...
1945 * sh-netbsd-tdep.c: ... this, adjust include.
1946 * sparc-nbsd-nat.c: Rename to ...
1947 * sparc-netbsd-nat.c: ... this.
1948 * sparc-nbsd-tdep.c: Rename to ...
1949 * sparc-netbsd-tdep.c: ... this, adjust include.
1950 * sparc64-nbsd-nat.c: Rename to ...
1951 * sparc64-netbsd-nat.c: ... this.
1952 * sparc64-nbsd-tdep.c: Rename to ...
1953 * sparc64-netbsd-tdep.c: ... this, adjust include.
1954 * sparc64-tdep.h: Adjust comment.
1955 * vax-bsd-nat.c: Adjust include.
1956 * vax-nbsd-tdep.c: Rename to ...
1957 * vax-netbsd-tdep.c: ... this, adjust include.
1958
d7a78e5c
TT
19592020-10-12 Tom Tromey <tom@tromey.com>
1960
1961 * target.h (struct target_ops) <get_section_table>: Update.
1962 (target_get_section_table): Update.
1963 * target.c (target_get_section_table, target_section_by_addr)
1964 (memory_xfer_partial_1): Update.
1965 * target-section.h (target_section_table): Now an alias.
1966 * target-delegates.c: Rebuild.
1967 * target-debug.h (target_debug_print_target_section_table_p):
1968 Rename from target_debug_print_struct_target_section_table_p.
1969 * symfile.c (build_section_addr_info_from_section_table): Update.
1970 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1971 * solib-svr4.c (scan_dyntag): Update.
1972 * solib-dsbt.c (scan_dyntag): Update.
1973 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1974 Update.
1975 * record-full.c (record_full_core_target::xfer_partial): Update.
1976 * progspace.h (struct program_space) <target_sections>: Update.
1977 * exec.h (print_section_info): Update.
1978 * exec.c (exec_target::close, build_section_table)
1979 (add_target_sections, add_target_sections_of_objfile)
1980 (remove_target_sections, exec_on_vfork)
1981 (section_table_available_memory)
1982 (section_table_xfer_memory_partial)
1983 (exec_target::get_section_table, exec_target::xfer_partial)
1984 (print_section_info, set_section_command)
1985 (exec_set_section_address, exec_target::has_memory): Update.
1986 * corelow.c (core_target::build_file_mappings)
1987 (core_target::xfer_partial, core_target::info_proc_mappings)
1988 (core_target::info_proc_mappings): Update.
1989 * bfd-target.c (class target_bfd): Update
1990
eda214ce
TT
19912020-10-12 Tom Tromey <tom@tromey.com>
1992
1993 * progspace.c (program_space::~program_space): Don't call
1994 clear_section_table.
1995 * exec.h (clear_section_table): Don't declare.
1996 * exec.c (exec_target::close): Update.
1997 (clear_section_table): Remove.
1998
91840ee3
TT
19992020-10-12 Tom Tromey <tom@tromey.com>
2000
2001 * exec.c (add_target_sections_of_objfile): Simplify.
2002
2d128614
TT
20032020-10-12 Tom Tromey <tom@tromey.com>
2004
2005 * solib.c (solib_map_sections): Update.
2006 * record-full.c (record_full_core_open_1): Update.
2007 * exec.h (build_section_table): Return a target_section_table.
2008 * exec.c (exec_file_attach): Update.
2009 (build_section_table): Return a target_section_table.
2010 * corelow.c (core_target::core_target): Update.
2011 * bfd-target.c (target_bfd::target_bfd): Update.
2012
bb2a6777
TT
20132020-10-12 Tom Tromey <tom@tromey.com>
2014
2015 * target.c (target_section_by_addr, memory_xfer_partial_1):
2016 Update.
2017 * target-section.h (struct target_section_table): Use
2018 std::vector.
2019 * symfile.h (build_section_addr_info_from_section_table): Take a
2020 target_section_table.
2021 * symfile.c (build_section_addr_info_from_section_table): Take a
2022 target_section_table.
2023 * solist.h (struct so_list) <sections>: Change type.
2024 <sections_end>: Remove.
2025 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2026 (solib_contains_address_p): Update.
2027 * solib-svr4.c (scan_dyntag): Update.
2028 * solib-dsbt.c (scan_dyntag): Update.
2029 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2030 Update.
2031 * record-full.c (record_full_core_start, record_full_core_end):
2032 Remove.
2033 (record_full_core_sections): New global.
2034 (record_full_core_open_1, record_full_core_target::xfer_partial):
2035 Update.
2036 * exec.h (build_section_table, section_table_xfer_memory_partial)
2037 (add_target_sections): Take a target_section_table.
2038 * exec.c (exec_file_attach, clear_section_table): Update.
2039 (resize_section_table): Remove.
2040 (build_section_table, add_target_sections): Take a
2041 target_section_table.
2042 (add_target_sections_of_objfile, remove_target_sections)
2043 (exec_on_vfork): Update.
2044 (section_table_available_memory): Take a target_section_table.
2045 (section_table_read_available_memory): Update.
2046 (section_table_xfer_memory_partial): Take a target_section_table.
2047 (print_section_info, set_section_command)
2048 (exec_set_section_address, exec_target::has_memory): Update.
2049 * corelow.c (class core_target) <m_core_section_table,
2050 m_core_file_mappings>: Remove braces.
2051 <~core_target>: Remove.
2052 (core_target::core_target): Update.
2053 (core_target::~core_target): Remove.
2054 (core_target::build_file_mappings)
2055 (core_target::xfer_memory_via_mappings)
2056 (core_target::xfer_partial, core_target::info_proc_mappings):
2057 Update.
2058 * bfd-target.c (target_bfd::xfer_partial): Update.
2059 (target_bfd::target_bfd): Update.
2060 (target_bfd::~target_bfd): Remove.
2061
7b466b10
TT
20622020-10-12 Tom Tromey <tom@tromey.com>
2063
2064 * target.h (struct target_section, struct target_section_table):
2065 Move to target-section.h.
2066 * target-section.h: New file.
2067
87a37e5e
PA
20682020-10-12 Pedro Alves <pedro@palves.net>
2069
2070 PR exp/26602
2071 * valops.c (struct struct_field_searcher): New.
2072 (update_search_result): Rename to ...
2073 (struct_field_searcher::update_result): ... this. Simplify
2074 prototype. Record all found fields.
2075 (do_search_struct_field): Rename to ...
2076 (struct_field_searcher::search): ... this. Simplify prototype.
2077 Maintain stack of visited baseclass path. Call update_result for
2078 fields too. Keep searching fields in baseclasses instead of
2079 stopping at the first found field.
2080 (search_struct_field): Use struct_field_searcher. When looking
2081 for fields, report ambiguous access attempts.
2082
9370fd51
AB
20832020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2084
2085 * frame.c (inside_main_func): Check full symbols as well as
2086 minimal symbols.
2087
59c8a30b
JB
20882020-10-09 Joel Brobecker <brobecker@adacore.com>
2089
2090 * ada-lang.c (advance_wild_match): Rewrite the function's
2091 description. Change the type of target0, t0 and t1 to char.
2092
7c184d33
TT
20932020-10-09 Tom Tromey <tromey@adacore.com>
2094
2095 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2096
5c4258f4
TT
20972020-10-09 Tom Tromey <tromey@adacore.com>
2098
2099 * ada-lang.h (ada_encode): Return std::string.
2100 * ada-lang.c (ada_encode_1): Return std::string.
2101 (ada_encode): Likewise.
2102 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2103 Update.
2104 * ada-exp.y (block_lookup, write_var_or_type): Update.
2105
3d87245c
HD
21062020-10-09 Hannes Domani <ssbssa@yahoo.de>
2107
2108 PR exp/26714
2109 * printcmd.c (print_formatted): Handle void results as
2110 unformatted prints.
2111
bbb826f5
AB
21122020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2113
2114 * arch/aarch32.c (aarch32_create_target_description): Release the
2115 target_desc_up as late as possible.
2116 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2117 * arch/amd64.c (amd64_create_target_description): Likewise.
2118 * arch/arc.c (arc_create_target_description): Return a
2119 target_desc_up, don't release it.
2120 * arch/arc.h (arc_create_target_description): Update declaration.
2121 (arc_lookup_target_description): Move target_desc_up into the
2122 cache, and return a borrowed pointer.
2123 * arch/arm.c (arm_create_target_description): Release the
2124 target_desc_up as late as possible.
2125 * arch/i386.c (i386_create_target_description): Likewise.
2126 * arch/riscv.h (riscv_create_target_description): Update
2127 declaration to match definition.
2128 * arch/tic6x.c (tic6x_create_target_description): Release the
2129 target_desc_up as late as possible.
2130
361cb219
AB
21312020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2132
2133 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2134 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2135
f5c4b229
JV
21362020-10-09 Jan Vrany <jan.vrany@labware.com>
2137
2138 * source.c (directory_command): Notify observers that "directories"
2139 parameter has changed.
2140
b2701685
TT
21412020-10-08 Tom Tromey <tom@tromey.com>
2142
2143 * cli/cli-cmds.c (print_disassembly): Style function name and
2144 addresses. Add _() wrappers.
2145
ada508b6
SV
21462020-10-08 Shahab Vahedi <shahab@synopsys.com>
2147
2148 * NEWS: Mention ARC support in GDBserver.
2149
51a948fd
AB
21502020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2151
2152 * arch/aarch32.c (aarch32_create_target_description): Release
2153 unique_ptr returned from allocate_target_description.
2154 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2155 * arch/amd64.c (amd64_create_target_description): Likewise.
2156 * arch/arc.c (arc_create_target_description): Likewise.
2157 * arch/arm.c (arm_create_target_description): Likewise.
2158 * arch/i386.c (i386_create_target_description): Likewise.
2159 * arch/riscv.c (riscv_create_target_description): Update return
2160 type. Handle allocate_target_description returning a unique_ptr.
2161 (riscv_lookup_target_description): Update to handle unique_ptr.
2162 * arch/tic6x.c (tic6x_create_target_description): Release
2163 unique_ptr returned from allocate_target_description.
2164 * features/microblaze-with-stack-protect.c: Regenerate.
2165 * features/microblaze.c: Regenerate.
2166 * features/mips-dsp-linux.c: Regenerate.
2167 * features/mips-linux.c: Regenerate.
2168 * features/mips64-dsp-linux.c: Regenerate.
2169 * features/mips64-linux.c: Regenerate.
2170 * features/nds32.c: Regenerate.
2171 * features/nios2.c: Regenerate.
2172 * features/or1k.c: Regenerate.
2173 * features/rs6000/powerpc-32.c: Regenerate.
2174 * features/rs6000/powerpc-32l.c: Regenerate.
2175 * features/rs6000/powerpc-403.c: Regenerate.
2176 * features/rs6000/powerpc-403gc.c: Regenerate.
2177 * features/rs6000/powerpc-405.c: Regenerate.
2178 * features/rs6000/powerpc-505.c: Regenerate.
2179 * features/rs6000/powerpc-601.c: Regenerate.
2180 * features/rs6000/powerpc-602.c: Regenerate.
2181 * features/rs6000/powerpc-603.c: Regenerate.
2182 * features/rs6000/powerpc-604.c: Regenerate.
2183 * features/rs6000/powerpc-64.c: Regenerate.
2184 * features/rs6000/powerpc-64l.c: Regenerate.
2185 * features/rs6000/powerpc-7400.c: Regenerate.
2186 * features/rs6000/powerpc-750.c: Regenerate.
2187 * features/rs6000/powerpc-860.c: Regenerate.
2188 * features/rs6000/powerpc-altivec32.c: Regenerate.
2189 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2190 * features/rs6000/powerpc-altivec64.c: Regenerate.
2191 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2192 * features/rs6000/powerpc-e500.c: Regenerate.
2193 * features/rs6000/powerpc-e500l.c: Regenerate.
2194 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2195 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2196 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2197 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2198 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2199 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2200 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2201 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2202 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2203 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2204 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2205 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2206 * features/rs6000/powerpc-vsx32.c: Regenerate.
2207 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2208 * features/rs6000/powerpc-vsx64.c: Regenerate.
2209 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2210 * features/rs6000/rs6000.c: Regenerate.
2211 * features/rx.c: Regenerate.
2212 * features/s390-gs-linux64.c: Regenerate.
2213 * features/s390-linux32.c: Regenerate.
2214 * features/s390-linux32v1.c: Regenerate.
2215 * features/s390-linux32v2.c: Regenerate.
2216 * features/s390-linux64.c: Regenerate.
2217 * features/s390-linux64v1.c: Regenerate.
2218 * features/s390-linux64v2.c: Regenerate.
2219 * features/s390-te-linux64.c: Regenerate.
2220 * features/s390-tevx-linux64.c: Regenerate.
2221 * features/s390-vx-linux64.c: Regenerate.
2222 * features/s390x-gs-linux64.c: Regenerate.
2223 * features/s390x-linux64.c: Regenerate.
2224 * features/s390x-linux64v1.c: Regenerate.
2225 * features/s390x-linux64v2.c: Regenerate.
2226 * features/s390x-te-linux64.c: Regenerate.
2227 * features/s390x-tevx-linux64.c: Regenerate.
2228 * features/s390x-vx-linux64.c: Regenerate.
2229 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2230 from allocate_target_description.
2231 * target-descriptions.c (allocate_target_description): Update
2232 return type.
2233 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2234 allocate_target_description.
2235
485c47e5
TT
22362020-10-07 Tom Tromey <tromey@adacore.com>
2237
2238 * unittests/search-memory-selftests.c: New file.
2239 * Makefile.in (SELFTESTS_SRCS): Add
2240 unittests/search-memory-selftests.c.
2241
3a135a91
TT
22422020-10-07 Tom Tromey <tromey@adacore.com>
2243
2244 PR gdb/16930:
2245 * findcmd.c (_initialize_mem_search): Mention that the range is
2246 inclusive.
2247
4a72de73
TT
22482020-10-07 Tom Tromey <tromey@adacore.com>
2249
2250 * target.h (simple_search_memory): Don't declare.
2251 * target.c (simple_search_memory): Move to gdbsupport.
2252 (default_search_memory): Update.
2253 * remote.c (remote_target::search_memory): Update.
2254
a038ffd8
SM
22552020-10-07 Simon Marchi <simon.marchi@efficios.com>
2256
2257 * Makefile.in (COMPILE): Add CXXFLAGS.
2258 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2259 (check-headers): Add CXXFLAGS.
2260
cc463201
AK
22612020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2262
2263 * arc-linux-tdep.h: New file.
2264 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2265 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2266 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2267 arc_linux_gregset, arc_linux_v2_regset,
2268 arc_linux_iterate_over_regset_sections,
2269 arc_linux_core_read_description): Implement.
2270 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2271 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2272 (arc_gdbarch_features_create): Add.
2273 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2274
e4bd363f
SV
22752020-10-07 Shahab Vahedi <shahab@synopsys.com>
2276
2277 * arch/arc.h: Rename "arc_gdbarch_features" to
2278 "arc_arch_features".
2279 * arc-tdep.h: Likewise.
2280 * arc-tdep.c: Likewise.
2281
b68bef99
TBA
22822020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2283
2284 * infcmd.c (attach_command): Remove the redundant call to
2285 `clear_proceed_status`.
2286
4641551a
KR
22872020-10-07 Kamil Rytarowski <n54@gmx.com>
2288
2289 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2290
91e5e8db
KR
22912020-10-07 Kamil Rytarowski <n54@gmx.com>
2292
2293 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2294 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2295 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2296
64c03bdb
SM
22972020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2298
2299 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2300 (_initialize_break_catch_sig): Don't allocate array.
2301
31a8f60f
AB
23022020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 * symtab.c (find_pc_line): Return unmapped addresses when the
2305 requested address is also unmapped.
2306
9e6dbd8b
SM
23072020-10-05 Simon Marchi <simon.marchi@efficios.com>
2308
2309 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2310 tui/tui-out.h.
2311
a1d217e8
SM
23122020-10-05 Simon Marchi <simon.marchi@efficios.com>
2313
2314 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2315 type::is_vector instead of TYPE_VECTOR.
2316
7d144117
SM
23172020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2318
2319 * auto-load.c (auto_load_objfile_script_1): Don't use
2320 debugfile_holder as temporary variable when stripping drive
2321 letter.
2322
cd096ec8
HD
23232020-10-05 Hannes Domani <ssbssa@yahoo.de>
2324
2325 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2326 Add TYPE_CODE_COMPLEX.
2327 (amd64_windows_return_value): Fix types returned via XMM0.
2328
b58e7f72
AH
23292020-10-05 Alan Hayward <alan.hayward@arm.com>
2330
2331 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2332 AArch64/ARM maintainers.
2333
8d378f27
SM
23342020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2335
2336 * NEWS: Mention set/show debug event-loop.
2337
d5519913
TT
23382020-10-02 Tom Tromey <tromey@adacore.com>
2339
2340 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2341 REG_EXTENDED.
2342
18b67edc
SM
23432020-10-02 Simon Marchi <simon.marchi@efficios.com>
2344
2345 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2346 * procfs.c (procfs_inferior_created): Remove.
2347 (_initialize_procfs): Don't register procfs_inferior_created.
2348
6b01403b
SM
23492020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2350
2351 * async-event.c (invoke_async_signal_handlers): Add debug
2352 print.
2353 (check_async_event_handlers): Likewise.
2354 * event-top.c (show_debug_event_loop): New function.
2355 (_initialize_event_top): Register "set debug event-loop"
2356 setting.
2357
ba988419
SM
23582020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2359
2360 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2361 * debug.h: Remove.
2362 * infrun.c: Include gdbsupport/common-debug.h.
2363 * linux-nat.c: Likewise.
2364
db20ebdf
SM
23652020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2366
2367 * async-event.h (create_async_signal_handler): Add name
2368 parameter.
2369 (create_async_event_handler): Likewise.
2370 * async-event.c (struct async_signal_handler) <name>: New field.
2371 (struct async_event_handler) <name>: New field.
2372 (create_async_signal_handler): Assign name.
2373 (create_async_event_handler): Assign name.
2374 * event-top.c (async_init_signals): Pass name when creating
2375 handler.
2376 * infrun.c (_initialize_infrun): Likewise.
2377 * record-btrace.c (record_btrace_push_target): Likewise.
2378 * record-full.c (record_full_open): Likewise.
2379 * remote-notif.c (remote_notif_state_allocate): Likewise.
2380 * remote.c (remote_target::open_1): Likewise.
2381 * tui/tui-win.c (tui_initialize_win): Likewise.
2382
2554f6f5
SM
23832020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2384
2385 * async-event.c (initialize_async_signal_handlers): Pass name to
2386 add_file_handler
2387 * event-top.c (ui_register_input_event_handler): Likewise.
2388 * linux-nat.c (linux_nat_target::async): Likewise.
2389 * run-on-main-thread.c (_initialize_run_on_main_thread):
2390 Likewise
2391 * ser-base.c (reschedule): Likewise.
2392 (ser_base_async): Likewise.
2393 * tui/tui-io.c: Likewise.
2394 * top.h (struct ui) <num>: New field.
2395 * top.c (highest_ui_num): New variable.
2396 (ui::ui): Initialize num.
2397
a7aba266
SM
23982020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2399
2400 * observable.h <inferior_created>: Remove parameters. Update all
2401 listeners.
2402 * inferior.h (post_create_inferior): Remove target parameter.
2403 Update all callers.
2404
048fde1e 24052020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2406
2407 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2408 and DW_MACRO_undef_strx.
2409 (dwarf_decode_macros): Likewise
2410 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2411 which is the value of DW_AT_str_offsets_base.
2412 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2413 str_offsets_base.
2414
064280be
KR
24152020-10-01 Kamil Rytarowski <n54@gmx.com>
2416
2417 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2418
6ff33035
KR
24192020-10-01 Kamil Rytarowski <n54@gmx.com>
2420
2421 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2422 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2423
1eb6eb79
KR
24242020-10-01 Kamil Rytarowski <n54@gmx.com>
2425
2426 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2427
95eb9e54
TV
24282020-09-30 Tom de Vries <tdevries@suse.de>
2429
2430 PR symtab/26683
2431 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2432
cae21f8e
TT
24332020-09-30 Tom Tromey <tromey@adacore.com>
2434
2435 * dwarf2/read.c (handle_variant): Use constant_value.
2436
529908cb
TT
24372020-09-29 Tom Tromey <tom@tromey.com>
2438
2439 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2440 (read_file_scope, dwarf2_get_pc_bounds)
2441 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2442 (read_structure_type, handle_struct_member_die)
2443 (read_enumeration_type, read_array_type, read_set_type)
2444 (read_tag_pointer_type, read_tag_reference_type)
2445 (read_subroutine_type, read_base_type, read_subrange_type)
2446 (read_full_die_1, partial_die_info::read)
2447 (partial_die_info::read, by, new_symbol)
2448 (dwarf2_const_value_data, dwarf2_const_value_attr)
2449 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2450 (prepare_one_comp_unit): Update.
2451 * dwarf2/attribute.h (DW_UNSND): Remove.
2452
c45bc3f8
TT
24532020-09-29 Tom Tromey <tom@tromey.com>
2454
2455 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2456 (read_subroutine_type, partial_die_info::read)
2457 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2458 (dwarf2_add_member_fn): Update.
2459 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2460 * dwarf2/attribute.c (attribute::as_boolean): New method.
2461
23dca5c3
TT
24622020-09-29 Tom Tromey <tom@tromey.com>
2463
2464 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2465 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2466 method.
2467 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2468
52c14d11
TT
24692020-09-29 Tom Tromey <tom@tromey.com>
2470
2471 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2472 the attribute's form.
2473
e8e5c158
TT
24742020-09-29 Tom Tromey <tom@tromey.com>
2475
2476 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2477 (dwarf2_add_member_fn): Update.
2478 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2479 * dwarf2/attribute.c (attribute::defaulted): New method, from
2480 is_valid_DW_AT_defaulted.
2481
d4df075e
TT
24822020-09-29 Tom Tromey <tom@tromey.com>
2483
2484 * dwarf2/read.c (dw2_get_file_names_reader)
2485 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2486 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2487 (dwarf2_symbol_mark_computed): Use as_unsigned.
2488 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2489 method.
2490 <form_is_section_offset>: Update comment.
2491
bf23a268
TT
24922020-09-29 Tom Tromey <tom@tromey.com>
2493
2494 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2495 dwarf2_default_access_attribute. Look up attribute.
2496 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2497 Update.
2498
7a5f294d
TT
24992020-09-29 Tom Tromey <tom@tromey.com>
2500
2501 * dwarf2/read.c (skip_one_die): Update.
2502 (read_full_die_1): Change how reprocessing is done.
2503 (partial_die_info::read): Update.
2504 (read_attribute_value): Remove need_reprocess parameter.
2505 (read_attribute): Likewise.
2506 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2507 New method.
2508
36d378cf
TT
25092020-09-29 Tom Tromey <tom@tromey.com>
2510
2511 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2512 (dwarf2_const_value_attr, dump_die_shallow)
2513 (dwarf2_fetch_constant_bytes): Update.
2514 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2515 comment.
2516 <set_address>: New method.
2517 (DW_ADDR): Remove.
2518 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2519 (attribute::as_string, attribute::as_address): Add assert.
2520
fe56917a
TT
25212020-09-29 Tom Tromey <tom@tromey.com>
2522
2523 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2524 (read_attribute_reprocess, read_attribute_value): Update.
2525 (read_attribute): Clear requires_reprocessing.
2526 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2527 form_requires_reprocessing>: New methods.
2528 <string_init>: Clear requires_reprocessing.
2529 <set_unsigned_reprocess>: New method.
2530 <name>: Shrink by one bit.
2531 <requires_reprocessing>: New member.
2532 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2533 method.
2534
414ad644
TT
25352020-09-29 Tom Tromey <tom@tromey.com>
2536
2537 * dwarf2/read.c (read_attribute_value): Update.
2538 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2539 set_unsigned>: New methods.
2540 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2541
1bc397c5
TT
25422020-09-29 Tom Tromey <tom@tromey.com>
2543
2544 * dwarf2/read.c (get_alignment, read_array_order)
2545 (read_attribute_value, dwarf2_const_value_attr)
2546 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2547 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2548 New methods.
2549 (DW_SND): Remove.
2550
630ed6b9
TT
25512020-09-29 Tom Tromey <tom@tromey.com>
2552
2553 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2554 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2555 Update.
2556 * dwarf2/attribute.h (struct attribute) <as_signature,
2557 set_signature>: New methods.
2558 (DW_SIGNATURE): Remove.
2559
9d2246fc
TT
25602020-09-29 Tom Tromey <tom@tromey.com>
2561
2562 * dwarf2/read.c (read_call_site_scope)
2563 (handle_data_member_location, dwarf2_add_member_fn)
2564 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2565 (partial_die_info::read, read_attribute_value)
2566 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2567 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2568 (dwarf2_symbol_mark_computed): Update.
2569 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2570 methods.
2571 (DW_BLOCK): Remove.
2572 * dwarf2/attribute.c (attribute::form_is_block): Add
2573 DW_FORM_data16.
2574
c6481205
TT
25752020-09-29 Tom Tromey <tom@tromey.com>
2576
2577 * dwarf2/read.c (read_cutu_die_from_dwo)
2578 (read_attribute_reprocess, read_attribute_value, read_attribute)
2579 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2580 (dwarf2_fetch_constant_bytes): Update.
2581 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2582 <set_string_noncanonical, set_string_canonical>: New methods.
2583 <string_is_canonical>: Update comment.
2584 <canonical_string_p>: Add assert.
2585 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2586 * dwarf2/attribute.c (attribute::form_is_string): New method.
2587 (attribute::string): Use it.
2588
3b64bf15
TT
25892020-09-29 Tom Tromey <tom@tromey.com>
2590
2591 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2592 (dump_die_shallow): Use canonical_string_p.
2593 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2594 method.
2595
2c830f54
TT
25962020-09-29 Tom Tromey <tom@tromey.com>
2597
2598 * dwarf2/read.c (partial_die_info::read)
2599 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2600 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2601 attribute::as_string.
2602
6c412691
TT
26032020-09-29 Tom Tromey <tom@tromey.com>
2604
2605 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2606 DW_ADDR.
2607 (attribute::string): Don't use DW_STRING.
2608 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2609 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2610
95f982e5
TT
26112020-09-29 Tom Tromey <tom@tromey.com>
2612
2613 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2614 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2615 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2616 * dwarf2/attribute.h (struct attribute): Rename methods.
2617 * dwarf2/attribute.c (attribute::as_address): Rename from
2618 value_as_address.
2619 (attribute::as_string): Rename from value_as_string.
2620
f800b00e
TT
26212020-09-29 Tom Tromey <tom@tromey.com>
2622
2623 * dwarf2/read.c (partial_die_info::read) <case
2624 DW_AT_linkage_name>: Use value_as_string.
2625 (dwarf2_string_attr): Use value_as_string.
2626 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2627 method.
2628 * dwarf2/attribute.c (attribute::value_as_string): New method.
2629
de38d64a
PA
26302020-09-29 Pedro Alves <pedro@palves.net>
2631
2632 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2633 defined before using '#pragma GCC diagnostic' instead of checking
2634 __clang__.
2635
9aed480c
TT
26362020-09-28 Tom Tromey <tom@tromey.com>
2637
2638 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2639 (handle_signal_stop): Update.
2640 * procfs.c (procfs_target::insert_watchpoint): Update.
2641 * target.h (target_have_steppable_watchpoint): Now a function.
2642
8a3ecb79
TT
26432020-09-28 Tom Tromey <tom@tromey.com>
2644
2645 * infrun.c (set_schedlock_func): Update.
2646 * target.h (target_can_lock_scheduler): Now a function.
2647
55f6301a
TT
26482020-09-28 Tom Tromey <tom@tromey.com>
2649
2650 * inferior.h (class inferior) <has_execution>: Update.
2651 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2652 * valops.c (find_function_in_inferior)
2653 (value_allocate_space_in_inferior): Update.
2654 * top.c (kill_or_detach): Update.
2655 * target.c (target_preopen, set_target_permissions): Update.
2656 (target_has_execution_current): Remove.
2657 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2658 Update.
2659 * solib.c (update_solib_list, reload_shared_libraries): Update.
2660 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2661 * solib-dsbt.c (enable_break): Update.
2662 * score-tdep.c (score7_fetch_inst): Update.
2663 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2664 Update.
2665 * remote.c (remote_target::start_remote)
2666 (remote_target::remote_check_symbols, remote_target::open_1)
2667 (remote_target::remote_detach_1, remote_target::verify_memory)
2668 (remote_target::xfer_partial, remote_target::read_description)
2669 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2670 * record-full.c (record_full_open_1): Update.
2671 * record-btrace.c (record_btrace_target_open): Update.
2672 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2673 (value_nsstring): Update.
2674 * linux-thread-db.c (add_thread_db_info)
2675 (thread_db_find_new_threads_silently, check_thread_db_callback)
2676 (try_thread_db_load_1, record_thread): Update.
2677 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2678 Update.
2679 * linux-fork.c (checkpoint_command): Update.
2680 * infrun.c (set_non_stop, set_observer_mode)
2681 (check_multi_target_resumption, for_each_just_stopped_thread)
2682 (maybe_remove_breakpoints, normal_stop)
2683 (class infcall_suspend_state): Update.
2684 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2685 (info_program_command, attach_command): Update.
2686 * infcall.c (call_function_by_hand_dummy): Update.
2687 * inf-loop.c (inferior_event_handler): Update.
2688 * gcore.c (gcore_command, derive_heap_segment): Update.
2689 * exec.c (exec_file_command): Update.
2690 * eval.c (evaluate_subexp): Update.
2691 * compile/compile.c (compile_to_object): Update.
2692 * cli/cli-dump.c (restore_command): Update.
2693 * breakpoint.c (update_watchpoint)
2694 (update_inserted_breakpoint_locations)
2695 (insert_breakpoint_locations, get_bpstat_thread): Update.
2696 * target.h (target_has_execution): Remove macro.
2697 (target_has_execution_current): Don't declare.
2698 (target_has_execution): Rename from target_has_execution_1. Add
2699 argument default.
2700
05374cfd
TT
27012020-09-28 Tom Tromey <tom@tromey.com>
2702
2703 * mi/mi-main.c (exec_reverse_continue)
2704 (mi_cmd_list_target_features): Update.
2705 * infrun.c (set_exec_direction_func): Update.
2706 * target.c (default_execution_direction): Update.
2707 * reverse.c (exec_reverse_once): Update.
2708 * target.h (target_can_execute_reverse): Now a function.
2709
9dccd06e
TT
27102020-09-28 Tom Tromey <tom@tromey.com>
2711
2712 * tui/tui-regs.c (tui_get_register)
2713 (tui_data_window::show_registers): Update.
2714 * thread.c (scoped_restore_current_thread::restore)
2715 (scoped_restore_current_thread::scoped_restore_current_thread):
2716 Update.
2717 * regcache-dump.c (regcache_print): Update.
2718 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2719 Update.
2720 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2721 * mep-tdep.c (current_me_module, current_options): Update.
2722 * linux-thread-db.c (thread_db_load): Update.
2723 * infcmd.c (registers_info, info_vector_command)
2724 (info_float_command): Update.
2725 * ia64-tdep.c (ia64_frame_prev_register)
2726 (ia64_sigtramp_frame_prev_register): Update.
2727 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2728 * gcore.c (derive_stack_segment): Update.
2729 * frame.c (get_current_frame, has_stack_frames): Update.
2730 * findvar.c (language_defn::read_var_value): Update.
2731 * arm-tdep.c (arm_pc_is_thumb): Update.
2732 * target.c (target_has_registers): Rename from
2733 target_has_registers_1.
2734 * target.h (target_has_registers): Remove macro.
2735 (target_has_registers): Rename from target_has_registers_1.
2736
841de120
TT
27372020-09-28 Tom Tromey <tom@tromey.com>
2738
2739 * windows-tdep.c (tlb_make_value): Update.
2740 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2741 * thread.c (scoped_restore_current_thread::restore)
2742 (scoped_restore_current_thread::scoped_restore_current_thread)
2743 (thread_command): Update.
2744 * stack.c (backtrace_command_1, frame_apply_level_command)
2745 (frame_apply_all_command, frame_apply_command): Update.
2746 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2747 Update.
2748 * gcore.c (derive_stack_segment): Update.
2749 * frame.c (get_current_frame, has_stack_frames): Update.
2750 * auxv.c (info_auxv_command): Update.
2751 * ada-tasks.c (ada_build_task_list): Update.
2752 * target.c (target_has_stack): Rename from target_has_stack_1.
2753 * target.h (target_has_stack): Remove macro.
2754 (target_has_stack): Rename from target_has_stack_1.
2755
a739972c
TT
27562020-09-28 Tom Tromey <tom@tromey.com>
2757
2758 * target.c (target_has_memory): Rename from target_has_memory_1.
2759 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2760 * thread.c (scoped_restore_current_thread::restore)
2761 (scoped_restore_current_thread::scoped_restore_current_thread):
2762 Update.
2763 * frame.c (get_current_frame, has_stack_frames): Update.
2764 * target.h (target_has_memory): Remove macro.
2765 (target_has_memory): Rename from target_has_memory_1.
2766
5b8a4776
TT
27672020-09-28 Tom Tromey <tom@tromey.com>
2768
2769 * target.c (target_has_all_memory_1): Remove.
2770 * target.h (target_has_all_memory): Remove define.
2771 (target_has_all_memory_1): Don't declare.
2772
bd356ec6
SM
27732020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2774
2775 * ser-base.c: Adjust comments formatting.
2776
2c72d5e5
TT
27772020-09-27 Tom Tromey <tom@tromey.com>
2778
2779 PR tui/25342:
2780 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2781
35a98237
TT
27822020-09-27 Tom Tromey <tom@tromey.com>
2783
2784 PR tui/25342:
2785 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2786
9e820dec
TT
27872020-09-27 Tom Tromey <tom@tromey.com>
2788
2789 * unittests/tui-selftests.c: Update.
2790 * tui/tui-winsource.h (struct tui_source_window_base)
2791 <extra_margin, show_line_number, refresh_pad>: New methods.
2792 <m_max_length, m_pad>: New members.
2793 (tui_copy_source_line): Update.
2794 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2795 first_col, line_width, ndigits parameters. Add length.
2796 (tui_source_window_base::show_source_line): Write to pad. Line
2797 number now 0-based.
2798 (tui_source_window_base::refresh_pad): New method.
2799 (tui_source_window_base::show_source_content): Write to pad. Call
2800 refresh_pad.
2801 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2802 not refill.
2803 (tui_source_window_base::update_exec_info): Call
2804 show_line_number.
2805 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2806 method.
2807 <m_digits>: New member.
2808 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2809 and m_max_length.
2810 (tui_source_window::show_line_number): New method.
2811 * tui/tui-io.h (tui_puts): Fix comment.
2812 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2813 m_max_length.
2814
c15c15c8
TT
28152020-09-27 Tom Tromey <tom@tromey.com>
2816
2817 * tui/tui-winsource.c
2818 (tui_source_window_base::set_is_exec_point_at): Don't call
2819 show_source_line.
2820
149830c1
TT
28212020-09-27 Tom Tromey <tom@tromey.com>
2822
2823 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2824 method.
2825 <erase>: Update.
2826 <cursor_x, cursor_y>: Remove.
2827 <m_inner_window>: New member.
2828 (tui_py_window::rerender): Create inner window.
2829 (tui_py_window::output): Write to inner window.
2830
8f9929bb
GR
28312020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2832
2833 PR python/26586
2834 * cli/cli-script.c (execute_control_commands): don't set
2835 instream to nullptr here as this breaks the from_tty argument
2836 to gdb.execute in Python.
2837 (execute_user_command): set instream to nullptr here instead.
2838
956bdb59
SM
28392020-09-25 Simon Marchi <simon.marchi@efficios.com>
2840
2841 * infrun.h (infrun_debug_printf): Fix formatting.
2842 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2843
3b93626b
SJ
28442020-09-25 Saagar Jha <saagar@saagarjha.com>
2845
2846 * compile/compile-object-load.h (struct munmap_list): Add
2847 explicitly-defined move constructor.
2848
b551a89f
TT
28492020-09-24 Tom Tromey <tromey@adacore.com>
2850
2851 PR tui/26638:
2852 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2853 method.
2854 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2855 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2856 (tui_prev_win): Rewrite.
2857
99bb393f
HD
28582020-09-23 Hannes Domani <ssbssa@yahoo.de>
2859
2860 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2861 in WOW64 processes as SIGINT.
2862 * nat/windows-nat.h: Make wow64_process a shared variable.
2863 * windows-nat.c: Remove static wow64_process variable.
2864
20a5fcbd
TT
28652020-09-23 Tom Tromey <tom@tromey.com>
2866
2867 PR symtab/25470:
2868 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2869 offset and bit size.
2870 * printcmd.c (print_scalar_formatted): Handle zero-length
2871 integer.
2872 (print_scalar_formatted): Use bit_size_differs_p.
2873 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2874 constant.
2875 (union type_specific): <int_stuff>: New member.
2876 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2877 methods.
2878 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2879 TYPE_SPECIFIC_FIELD.
2880 (recursive_dump_type, copy_type_recursive): Update.
2881 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2882 DW_AT_data_bit_offset.
2883
bac51ab7
TT
28842020-09-23 Tom Tromey <tom@tromey.com>
2885
2886 * utils.h (class gdb_argv): Add move operators.
2887 <append>: New methods.
2888 * compile/compile.c (build_argc_argv): Remove.
2889 (compile_args_argc): Remove.
2890 (compile_args_argv): Change type.
2891 (set_compile_args): Simplify.
2892 (append_args): Remove.
2893 (filter_args): Remove argcp parameter.
2894 (get_args): Return gdb_argv. Simplify.
2895 (compile_to_object): Update.
2896
92677124
TT
28972020-09-23 Tom Tromey <tom@tromey.com>
2898
2899 * compile/compile-object-run.c (do_module_cleanup)
2900 <~do_module_cleanup> :Remove.
2901 (do_module_cleanup): Update.
2902 * compile/compile-object-load.h (struct munmap_list): Add move
2903 assignment operator.
2904 <source_file>: Now a std::string.
2905 <munmap_list>: Rename. No longer a pointer.
2906 * compile/compile-object-load.c (struct setup_sections_data): Add
2907 constructor.
2908 <setup_one_section>: Declare.
2909 <munmap_list>: Move earlier.
2910 <m_bfd>: New member.
2911 <m_last_size, m_last_section_first, m_last_prot,
2912 m_last_max_alignment>: Rename, add initializers where needed.
2913 (setup_sections_data::setup_one_section): Rename from
2914 setup_sections. Update.
2915 (compile_object_load): Update. Don't use bfd_map_over_sections.
2916
e616f60a
TT
29172020-09-23 Tom Tromey <tom@tromey.com>
2918
2919 * compile/compile-object-run.c (struct do_module_cleanup): Add
2920 parameters to constructor. Update destructor.
2921 <source_file, scope, scope_data, out_value_type, out_value_addr,
2922 munmap_list_head, objfile_name_string>: Remove.
2923 <module>: New member.
2924 (do_module_cleanup): Update.
2925 (compile_object_run): Update.
2926
e947a848
TT
29272020-09-23 Tom Tromey <tom@tromey.com>
2928
2929 * compile/compile.c (eval_compile_command): Update.
2930 * compile/compile-object-run.h (compile_object_run): Take a
2931 compile_module_up.
2932 * compile/compile-object-run.c (compile_object_run): Take a
2933 compile_module_up.
2934 * compile/compile-object-load.h (struct compile_module): Add
2935 constructor, destructor.
2936 (compile_module_up): New typedef.
2937 (compile_object_load): Return compile_object_up.
2938 * compile/compile-object-load.c (compile_object_load): Return
2939 compile_module_up.
2940
0dbf6ee6
TT
29412020-09-23 Tom Tromey <tom@tromey.com>
2942
2943 * compile/compile-object-run.c (struct do_module_cleanup): Add
2944 constructor, destructor.
2945 <objfile_name_string>: Don't use struct hack.
2946 (do_module_cleanup): Use delete.
2947 (compile_object_run): Use new.
2948
ebe824f5
TT
29492020-09-23 Tom Tromey <tom@tromey.com>
2950
2951 * compile/compile-cplus-types.c
2952 (compile_cplus_convert_struct_or_union): Use std::vector.
2953 (compile_cplus_convert_func): Likewise.
2954 * compile/compile-c-types.c (convert_func): Use std::vector.
2955
5dd918d9
TT
29562020-09-21 Tom Tromey <tromey@adacore.com>
2957
2958 * sparc-tdep.c (sparc32_skip_prologue): Use
2959 skip_prologue_using_sal.
2960
5486c517
TT
29612020-09-19 Tom Tromey <tom@tromey.com>
2962
2963 * symfile.c (add_section_size_callback): Remove.
2964 (load_one_section): Rename from load_section_callback. Change
2965 parameters.
2966 (generic_load): Use foreach.
2967
8a6bb1d1
TT
29682020-09-19 Tom Tromey <tom@tromey.com>
2969
2970 * exec.c (add_to_section_table): Remove.
2971 (build_section_table): Use foreach.
2972
08f93a1a
TT
29732020-09-19 Tom Tromey <tom@tromey.com>
2974
2975 * elfread.c (elf_locate_sections): Change parameters.
2976 (elf_symfile_read): Use foreach.
2977
03cd72b8
TT
29782020-09-19 Tom Tromey <tom@tromey.com>
2979
2980 * cli/cli-dump.c (struct callback_data): Remove.
2981 (restore_one_section): Rename from restore_section_callback.
2982 Change parameters.
2983 (restore_binary_file): Change parameters.
2984 (restore_command): Use foreach.
2985
f4f2b85f
TT
29862020-09-19 Tom Tromey <tom@tromey.com>
2987
2988 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2989 (gcore_copy_callback): Likewise.
2990 (gcore_memory_sections): Use foreach.
2991
b35c1d1c
TT
29922020-09-19 Tom Tromey <tom@tromey.com>
2993
2994 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2995 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2996 parameters.
2997 (generic_elf_osabi_sniffer): Use foreach.
2998 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2999 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3000
5bb6e9dd
TT
30012020-09-19 Tom Tromey <tom@tromey.com>
3002
3003 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3004 (dwarf2_get_dwz_file): Use foreach.
3005 (dwarf2_locate_dwo_sections): Change parameters.
3006 (open_and_init_dwo_file): Use foreach.
3007 (dwarf2_locate_common_dwp_sections): Change parameters.
3008 (open_and_init_dwp_file): Use foreach.
3009
ad7277da
TT
30102020-09-19 Tom Tromey <tom@tromey.com>
3011
3012 * symfile.h: (find_lowest_section): Don't declare.
3013 * symfile.c (find_lowest_section): Now static. Change
3014 parameters.
3015 (struct place_section_arg): Remove.
3016 (place_section): Change parameters.
3017 (addr_info_make_relative): Use foreach.
3018 (symfile_dummy_outputs): Remove.
3019 (default_symfile_relocate): Use foreach.
3020
cb814f2e
TT
30212020-09-19 Tom Tromey <tom@tromey.com>
3022
3023 * objfiles.c (add_to_objfile_sections): Rename from
3024 add_to_objfile_sections_full.
3025 (add_to_objfile_sections): Remove.
3026 (build_objfile_section_table): Use foreach.
3027
3cabfd26
TT
30282020-09-19 Tom Tromey <tom@tromey.com>
3029
3030 * stap-probe.c (get_stap_base_address_1): Remove.
3031 (get_stap_base_address): Use foreach.
3032
1ce51eb5
TT
30332020-09-19 Tom Tromey <tom@tromey.com>
3034
3035 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3036 parameters.
3037 (gdb_bfd_close_or_warn): Use foreach.
3038
a190fabb
TT
30392020-09-19 Tom Tromey <tom@tromey.com>
3040
3041 * corelow.c (add_to_thread_list): Change parameters.
3042 (core_target_open): Use foreach.
3043
cafb0d81
TT
30442020-09-19 Tom Tromey <tom@tromey.com>
3045
3046 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3047 existing function.
3048
c8d5abea
AB
30492020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3050
3051 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3052 for arrays.
3053
6d816919
AB
30542020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3055
3056 * eval.c: Remove 'f-lang.h' include.
3057 (value_f90_subarray): Moved to f-lang.c.
3058 (eval_call): Renamed to...
3059 (evaluate_subexp_do_call): ...this, is no longer static, header
3060 comment moved into header file.
3061 (evaluate_funcall): Update call to eval_call.
3062 (skip_undetermined_arglist): Moved to f-lang.c.
3063 (fortran_value_subarray): Likewise.
3064 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3065 moved to evaluate_subexp_f.
3066 (calc_f77_array_dims): Moved to f-lang.c
3067 * expprint.c (print_subexp_funcall): New function.
3068 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3069 moved to print_subexp_f, OP_FUNCALL uses new function.
3070 (dump_subexp_body_funcall): New function.
3071 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3072 moved to dump_subexp_f, OP_FUNCALL uses new function.
3073 * expression.h (evaluate_subexp_do_call): Declare.
3074 * f-lang.c (value_f90_subarray): Moved from eval.c.
3075 (skip_undetermined_arglist): Likewise.
3076 (calc_f77_array_dims): Likewise.
3077 (fortran_value_subarray): Likewise.
3078 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3079 (operator_length_f): Likewise.
3080 (print_subexp_f): Likewise.
3081 (dump_subexp_body_f): Likewise.
3082 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3083 declaration of this operation to here.
3084 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3085 support moved to operator_length_f.
3086 * parser-defs.h (dump_subexp_body_funcall): Declare.
3087 (print_subexp_funcall): Declare.
3088 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3089 fortran-operator.def.
3090
8c37706a
AB
30912020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3092
3093 * eval.c (fortran_value_subarray): New function, content is taken
3094 from...
3095 (evaluate_subexp_standard): ...here, in two places. Now arrays
3096 and strings both call the new function.
3097 (calc_f77_array_dims): Add header comment, handle strings.
3098
14f9473c
VC
30992020-09-18 Victor Collod <vcollod@nvidia.com>
3100
3101 PR gdb/26635
3102 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3103 (i386_analyze_prologue): Call i386_skip_endbr.
3104
b60cea74
TT
31052020-09-18 Tom Tromey <tromey@adacore.com>
3106
3107 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3108 (windows_nat_target::wait): Update.
3109 * target/wait.h (enum target_wait_flag): New. Use
3110 DEF_ENUM_FLAGS_TYPE.
3111 * target/target.h (target_wait): Change type of options.
3112 * target.h (target_options_to_string, default_target_wait):
3113 Update.
3114 (struct target_ops) <wait>: Change type of options.
3115 * target.c (target_wait, default_target_wait, do_option): Change
3116 type of "options".
3117 (target_options_to_string): Likewise.
3118 * target-delegates.c: Rebuild.
3119 * target-debug.h (target_debug_print_target_wait_flags): Rename
3120 from target_debug_print_options.
3121 * sol-thread.c (class sol_thread_target) <wait>: Update.
3122 (sol_thread_target::wait): Update.
3123 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3124 (rs6000_nat_target::wait): Update.
3125 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3126 Update.
3127 (remote_target::wait_ns, remote_target::wait_as): Change type of
3128 "options".
3129 (remote_target::wait): Update.
3130 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3131 (gdbsim_target::wait): Update.
3132 * record-full.c (class record_full_base_target) <wait>: Update.
3133 (record_full_wait_1): Change type of "options".
3134 (record_full_base_target::wait): Update.
3135 * record-btrace.c (class record_btrace_target) <wait>: Update.
3136 (record_btrace_target::wait): Update.
3137 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3138 Update.
3139 (ravenscar_thread_target::wait): Update.
3140 * procfs.c (class procfs_target) <wait>: Update.
3141 (procfs_target::wait): Update.
3142 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3143 * obsd-nat.c (obsd_nat_target::wait): Update.
3144 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3145 (nto_procfs_target::wait): Update.
3146 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3147 * nbsd-nat.c (nbsd_wait): Change type of "options".
3148 (nbsd_nat_target::wait): Update.
3149 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3150 (thread_db_target::wait): Update.
3151 * linux-nat.h (class linux_nat_target) <wait>: Update.
3152 * linux-nat.c (linux_nat_target::wait): Update.
3153 (linux_nat_wait_1): Update.
3154 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3155 "options".
3156 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3157 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3158 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3159 (go32_nat_target::wait): Update.
3160 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3161 * gnu-nat.c (gnu_nat_target::wait): Update.
3162 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3163 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3164 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3165 * darwin-nat.c (darwin_nat_target::wait): Update.
3166 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3167 (bsd_uthread_target::wait): Update.
3168 * aix-thread.c (class aix_thread_target) <wait>: Update.
3169 (aix_thread_target::wait): Update.
3170
0295dde6
AB
31712020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3172
3173 * compile/compile-object-run.c (create_copied_type_recursive): New
3174 function.
3175 (compile_object_run): Use new function.
3176
d3483b43
JT
31772020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3178
3179 * NEWS: Mention x86_64 Cygwin core file support.
3180
e7d612ad
JT
31812020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3182
3183 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3184 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3185
aff9d387
JT
31862020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3187
62a5151b
JT
3188 * windows-tdep.h: Add prototypes.
3189 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3190 (i386_windows_core_pid_to_str): Move and rename ...
3191 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3192 (windows_core_pid_to_str): ... and here.
3193 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3194
31952020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3196 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3197 (amd64_windows_init_abi_common): ... and register.
3198
7d155da3
JT
31992020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3200
3201 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3202 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3203
e8ef12b9
PA
32042020-09-18 Pedro Alves <pedro@palves.net>
3205
3206 PR gdb/26631
3207 * thread.c (thread_find_command): Switch inferior before calling
3208 target methods.
3209
c1e1314d
TT
32102020-09-17 Tom Tromey <tromey@adacore.com>
3211
3212 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3213 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3214 (tdesc_arch_data_up): New typedef.
3215 (tdesc_use_registers, tdesc_data_alloc): Update.
3216 (tdesc_data_cleanup): Don't declare.
3217 * target-descriptions.c (tdesc_data_alloc): Return a
3218 tdesc_arch_data_up.
3219 (tdesc_arch_data_deleter::operator()): Rename from
3220 tdesc_data_cleanup. Change argument type.
3221 (tdesc_use_registers): Change early_data to an rvalue reference.
3222 (tdesc_use_registers): Don't use delete.
3223 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3224 * s390-tdep.c (s390_gdbarch_init): Update.
3225 * rx-tdep.c (rx_gdbarch_init): Update.
3226 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3227 * riscv-tdep.c (riscv_gdbarch_init): Update.
3228 * or1k-tdep.c (or1k_gdbarch_init): Update.
3229 * nios2-tdep.c (nios2_gdbarch_init): Update.
3230 * nds32-tdep.c (nds32_gdbarch_init): Update.
3231 * mips-tdep.c (mips_gdbarch_init): Update.
3232 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3233 * m68k-tdep.c (m68k_gdbarch_init): Update.
3234 * i386-tdep.c (i386_gdbarch_init): Update.
3235 * arm-tdep.c (arm_gdbarch_init): Update.
3236 * arc-tdep.c (arc_tdesc_init): Update.
3237 (arc_gdbarch_init): Update.
3238 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3239
0363df3d
HD
32402020-09-17 Hannes Domani <ssbssa@yahoo.de>
3241
3242 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3243 for WOW64 processes.
3244
280a9412
TT
32452020-09-17 Tom Tromey <tom@tromey.com>
3246
3247 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3248
6108fd18
TT
32492020-09-17 Tom Tromey <tom@tromey.com>
3250
3251 * value.c (preserve_values): Update.
3252 * python/py-type.c (save_objfile_types): Update.
3253 * guile/scm-type.c (save_objfile_types): Update.
3254 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3255 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3256 * compile/compile-object-run.c (compile_object_run): Update.
3257
fa9b1164
TT
32582020-09-17 Tom Tromey <tom@tromey.com>
3259
3260 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3261 Remove.
3262 <m_table>: Now htab_up.
3263 * typeprint.c (typedef_hash_table::recursively_update)
3264 (typedef_hash_table::add_template_parameters)
3265 (typedef_hash_table::typedef_hash_table): Update.
3266 (typedef_hash_table::~typedef_hash_table): Remove.
3267 (typedef_hash_table::typedef_hash_table)
3268 (typedef_hash_table::find_global_typedef)
3269 (typedef_hash_table::find_typedef): Update.
3270
eb53f105
TT
32712020-09-17 Tom Tromey <tom@tromey.com>
3272
3273 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3274
7a8a5d47
TT
32752020-09-17 Tom Tromey <tom@tromey.com>
3276
3277 * linespec.c (class decode_compound_collector)
3278 <~decode_compound_collector>: Remove.
3279 <m_unique_syms>: Now htab_up.
3280 (decode_compound_collector::operator ()): Update.
3281 (class symtab_collector) <~symtab_collector>: Remove.
3282 <m_symtab_table>: Now htab_up.
3283 (symtab_collector::operator ()): Update.
3284
99032cfc
TT
32852020-09-17 Tom Tromey <tom@tromey.com>
3286
3287 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3288 (filename_seen_cache::clear): Update.
3289 (~filename_seen_cache): Remove.
3290 (filename_seen_cache::seen): Update.
3291 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3292 htab_up.
3293 <~filename_seen_cache>: Remove.
3294 <traverse>: Update.
3295
32580f6d
TT
32962020-09-17 Tom Tromey <tom@tromey.com>
3297
3298 * completer.c (completion_tracker::discard_completions)
3299 (completion_tracker::~completion_tracker)
3300 (completion_tracker::maybe_add_completion)
3301 (completion_tracker::remove_completion)
3302 (completion_tracker::recompute_lowest_common_denominator)
3303 (completion_tracker::build_completion_result): Update.
3304 * completer.h (class completion_tracker) <have_completions>:
3305 Update.
3306 <m_entries_hash>: Now htab_up.
3307
c1fb9836
TT
33082020-09-17 Tom Tromey <tom@tromey.com>
3309
3310 * breakpoint.c (ambiguous_names_p): Use htab_up.
3311
88f07206
TT
33122020-09-17 Tom Tromey <tom@tromey.com>
3313
3314 * auto-load.c (struct auto_load_pspace_info)
3315 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3316 <loaded_script_files, loaded_script_texts>: Change type to
3317 htab_up.
3318 (~auto_load_pspace_info) Remove.
3319 (init_loaded_scripts_info, maybe_add_script_file)
3320 (maybe_add_script_text, auto_load_info_scripts): Update.
3321
9519b2ee
TT
33222020-09-17 Tom Tromey <tromey@adacore.com>
3323
3324 * c-exp.y (name_obstack): Now static.
3325
d2cd4113
CC
33262020-09-17 Chungyi Chi <demonic@csie.io>
3327
3328 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3329
b650a282
SM
33302020-09-16 Simon Marchi <simon.marchi@efficios.com>
3331
3332 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3333 (add_solib_catchpoint): Likewise.
3334 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3335 to bool.
3336 (add_solib_catchpoint): Change int parameter/variable to bool.
3337 (catch_load_or_unload): Likewise.
3338 (init_catchpoint): Likewise.
3339 (create_fork_vfork_event_catchpoint): Likewise.
3340 (catch_fork_command_1): Likewise.
3341 (catch_exec_command_1): Likewise.
3342
4d0bcfcf
SM
33432020-09-16 Simon Marchi <simon.marchi@efficios.com>
3344
3345 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3346 Change instance_flags to m_instance_flags.
3347
fe830662
TT
33482020-09-16 Tom Tromey <tromey@adacore.com>
3349
3350 PR gdb/26598:
3351 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3352
fe5ddfc3
JB
33532020-09-16 John Baldwin <jhb@FreeBSD.org>
3354
3355 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3356 PL_FLAG_EXEC.
3357 (fbsd_nat_target::insert_exec_catchpoint)
3358 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3359 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3360 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3361
e911c666
JB
33622020-09-16 John Baldwin <jhb@FreeBSD.org>
3363
3364 * configure.ac: Remove check for kinfo_getvmmap().
3365 * configure, config.in: Regenerate.
3366 * fbsd-nat.c (fbsd_read_mapping): Remove
3367 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3368 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3369 kinfo_get_vmmap() are always present.
3370
1f17d372
JB
33712020-09-16 John Baldwin <jhb@FreeBSD.org>
3372
3373 * fbsd-nat.c: Always include support for
3374 TARGET_OBJECT_SIGNAL_INFO.
3375
bcb1da7f
JB
33762020-09-16 John Baldwin <jhb@FreeBSD.org>
3377
3378 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3379 sysctl and remove procfs fallback.
3380
5515f729
JB
33812020-09-16 John Baldwin <jhb@FreeBSD.org>
3382
3383 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3384 * fbsd-nat.h: Likewise.
3385
da1df1db
TBA
33862020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3387
3388 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3389 argument.
3390
0e25e767
AB
33912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3392
3393 * ada-lang.c (ada_language_data): Delete.
3394 (ada_language): Remove references to ada_language_data.
3395 * c-lang.c (c_language_data): Delete.
3396 (c_language): Remove references to c_language_data.
3397 (cplus_language_data): Delete.
3398 (cplus_language): Remove references to cplus_language_data.
3399 (asm_language_data): Delete.
3400 (asm_language): Remove references to asm_language_data.
3401 (minimal_language_data): Delete.
3402 (minimal_language): Remove references to minimal_language_data.
3403 * d-lang.c (d_language_data): Delete.
3404 (d_language): Remove references to d_language_data.
3405 * f-lang.c (f_language_data): Delete.
3406 (f_language): Remove references to f_language_data.
3407 * go-lang.c (go_language_data): Delete.
3408 (go_language): Remove references to go_language_data.
3409 * language.c (unknown_language_data): Delete.
3410 (unknown_language): Remove references to unknown_language_data.
3411 (auto_language_data): Delete.
3412 (auto_language): Remove references to auto_language_data.
3413 * language.h (language_data): Delete struct.
3414 (language_defn): No longer inherit from language_data.
3415 * m2-lang.c (m2_language_data): Delete.
3416 (m2_language): Remove references to m2_language_data.
3417 * objc-lang.c (objc_language_data): Delete.
3418 (objc_language): Remove references to objc_language_data.
3419 * opencl-lang.c (opencl_language_data): Delete.
3420 (opencl_language): Remove references to opencl_language_data.
3421 * p-lang.c (pascal_language_data): Delete.
3422 (pascal_language): Remove references to pascal_language_data.
3423 * rust-lang.c (rust_language_data): Delete.
3424 (rust_language): Remove references to rust_language_data.
3425
b7c6e27d
AB
34262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3427
3428 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3429 initializer.
3430 (ada_language::opcode_print_table): New member function.
3431 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3432 (c_language::opcode_print_table): New member function.
3433 (cplus_language_data): Remove la_op_print_tab initializer.
3434 (cplus_language::opcode_print_table): New member function.
3435 (asm_language_data): Remove la_op_print_tab initializer.
3436 (asm_language::opcode_print_table): New member function.
3437 (minimal_language_data): Remove la_op_print_tab initializer.
3438 (minimal_language::opcode_print_table): New member function.
3439 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3440 (d_language::opcode_print_table): New member function.
3441 * expprint.c (print_subexp_standard): Update call to
3442 opcode_print_table.
3443 (op_string): Likewise.
3444 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3445 (f_language::opcode_print_table): New member function.
3446 * go-lang.c (go_language_data): Remove la_op_print_tab
3447 initializer.
3448 (go_language::opcode_print_table): New member function.
3449 * language.c (unknown_language_data): Remove la_op_print_tab
3450 initializer.
3451 (unknown_language::opcode_print_table): New member function.
3452 (auto_language_data): Remove la_op_print_tab initializer.
3453 (auto_language::opcode_print_table): New member function.
3454 * language.h (language_data): Remove la_op_print_tab field.
3455 (language_defn::opcode_print_table): Declare new member function.
3456 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3457 initializer.
3458 (m2_language::opcode_print_table): New member function.
3459 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3460 initializer.
3461 (objc_language::opcode_print_table): New member function.
3462 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3463 initializer.
3464 (opencl_language::opcode_print_table): New member function.
3465 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3466 initializer.
3467 (pascal_language::opcode_print_table): New member function.
3468 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3469 initializer.
3470 (rust_language::opcode_print_table): New member function.
3471
5aba6ebe
AB
34722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3475 (ada_language::expression_ops): New member function.
3476 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3477 (c_language::expression_ops): New member function.
3478 (cplus_language_data): Remove la_exp_desc initializer.
3479 (cplus_language::expression_ops): New member function.
3480 (asm_language_data): Remove la_exp_desc initializer.
3481 (asm_language::expression_ops): New member function.
3482 (minimal_language_data): Remove la_exp_desc initializer.
3483 (minimal_language::expression_ops): New member function.
3484 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3485 (d_language::expression_ops): New member function.
3486 * eval.c (evaluate_subexp): Update call to expression_ops.
3487 * expprint.c (print_subexp): Likewise.
3488 (op_name): Likewise.
3489 (dump_subexp_body): Likewise.
3490 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3491 (f_language::expression_ops): New member function.
3492 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3493 (go_language::expression_ops): New member function.
3494 * language.c (language_defn::expression_ops): New function.
3495 (unknown_language_data): Remove la_exp_desc initializer.
3496 (auto_language_data): Likewise.
3497 * language.h (language_data): Remove la_exp_desc field.
3498 (language_defn::expression_ops): Declare new member function.
3499 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3500 (m2_language::expression_ops): New member function.
3501 * objc-lang.c (objc_language_data): Remove la_exp_desc
3502 initializer.
3503 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3504 initializer.
3505 (opencl_language::expression_ops): New member function.
3506 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3507 * parse.c (operator_length): Update call to expression_ops.
3508 (exp_iterate): Likewise.
3509 * rust-lang.c (rust_language_data): Remove la_exp_desc
3510 initializer.
3511 (ruse_language::expression_ops): New member function.
3512
b63a3f3f
AB
35132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3514
3515 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3516 initializer.
3517 (ada_language::varobj_ops): New member function.
3518 * c-lang.c (c_language_data): Remove la_varobj_ops
3519 initializer.
3520 (cplus_language_data): Likewise.
3521 (cplus_language::varobj_ops): New member function.
3522 (asm_language_data): Remove la_varobj_ops initializer.
3523 (minimal_language_data): Likewise.
3524 * d-lang.c (d_language_data): Likewise.
3525 * f-lang.c (f_language_data): Likewise.
3526 * go-lang.c (go_language_data): Likewise.
3527 * language.c (language_defn::varobj_ops): New function.
3528 (unknown_language_data): Remove la_varobj_ops
3529 initializer.
3530 (auto_language_data): Likewise.
3531 * language.h (language_data): Remove la_varobj_ops field.
3532 (language_defn::varobj_ops): Declare new member function.
3533 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3534 * objc-lang.c (objc_language_data): Likewise.
3535 * opencl-lang.c (opencl_language_data): Likewise.
3536 * p-lang.c (pascal_language_data): Likewise.
3537 * rust-lang.c (rust_language_data): Likewise.
3538 * varobj.c (varobj_create): Update call to varobj_ops.
3539 * varobj.h (default_varobj_ops): Delete define.
3540
1ac14a04
AB
35412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3542
3543 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3544 initializer.
3545 * c-lang.c (c_language_data): Likewise.
3546 (c_language::macro_expansion): New member function.
3547 (cplus_language_data): Likewise.
3548 (cplus_language::macro_expansion): New member function.
3549 (asm_language_data): Likewise.
3550 (asm_language::macro_expansion): New member function.
3551 (minimal_language_data): Likewise.
3552 (minimal_language::macro_expansion): New member function.
3553 * d-lang.c (d_language_data): Remove la_macro_expansion
3554 initializer.
3555 * f-lang.c (f_language_data): Likewise.
3556 * go-lang.c (go_language_data): Likewise.
3557 * language.c (unknown_language_data): Likewise.
3558 (auto_language_data): Likewise.
3559 * language.h (language_data): Remove la_macro_expansion field.
3560 (language_defn::macro_expansion): New member function.
3561 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3562 initializer.
3563 * objc-lang.c (objc_language_data): Likewise.
3564 (objc_language::macro_expansion): New member function.
3565 * opencl-lang.c (opencl_language_data): Likewise.
3566 (opencl_language::macro_expansion): New member function.
3567 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3568 initializer.
3569 * rust-lang.c (rust_language_data): Likewise.
3570 * symtab.c (default_collect_symbol_completion_matches_break_on):
3571 Update call to macro_expansion.
3572
3a3440fb
AB
35732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3574
3575 * ada-lang.c (ada_language_data): Remove la_array_ordering
3576 initializer.
3577 * c-lang.c (c_language_data): Likewise.
3578 (cplus_language_data): Likewise.
3579 (asm_language_data): Likewise.
3580 (minimal_language_data): Likewise.
3581 * d-lang.c (d_language_data): Likewise.
3582 * dwarf2/read.c (read_array_order): Update for call to
3583 array_ordering.
3584 * f-lang.c (f_language_data): Remove la_array_ordering
3585 initializer.
3586 (f_language::array_ordering): New member function.
3587 * go-lang.c (go_language_data): Remove la_array_ordering
3588 initializer.
3589 * language.c (unknown_language_data): Likewise.
3590 (auto_language_data): Likewise.
3591 * language.h (language_data): Delete la_array_ordering field.
3592 (language_defn::array_ordering): New member function.
3593 * m2-lang.c (m2_language_data): Remove la_array_ordering
3594 initializer.
3595 * objc-lang.c (objc_language_data): Likewise.
3596 * opencl-lang.c (opencl_language_data): Likewise.
3597 * p-lang.c (pascal_language_data): Likewise.
3598 * rust-lang.c (rust_language_data): Likewise.
3599
0d201fa4
AB
36002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3601
3602 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3603 initializer.
3604 * c-lang.c (c_language_data): Likewise.
3605 (cplus_language_data): Likewise.
3606 (asm_language_data): Likewise.
3607 (minimal_language_data): Likewise.
3608 * d-lang.c (d_language_data): Likewise.
3609 * f-lang.c (f_language_data): Likewise.
3610 (f_language::case_sensitivity): New member function.
3611 * go-lang.c (go_language_data): Remove la_case_sensitivity
3612 initializer.
3613 * language.c (enum case_mode): Moved here from language.h.
3614 (case_mode): Make static.
3615 (show_case_command): Update for case_sensitivity being a method.
3616 (set_case_command): Likewise.
3617 (set_range_case): Likewise.
3618 (unknown_language_data): Remove la_case_sensitivity initializer.
3619 (auto_language_data): Likewise.
3620 * language.h (case_mode): Delete, move enum declaration to
3621 language.c.
3622 (language_data): Delete la_case_sensitivity field.
3623 (language_defn::case_sensitivity): New member function.
3624 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3625 initializer.
3626 * objc-lang.c (objc_language_data): Likewise.
3627 * opencl-lang.c (opencl_language_data): Likewise.
3628 * p-lang.c (pascal_language_data): Likewise.
3629 * rust-lang.c (rust_language_data): Likewise.
3630
efdf6a73
AB
36312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3632
3633 * ada-lang.c (ada_language_data): Remove la_range_check
3634 initializer.
3635 * c-lang.c (c_language_data): Likewise.
3636 (cplus_language_data): Likewise.
3637 (asm_language_data): Likewise.
3638 (minimal_language_data): Likewise.
3639 * d-lang.c (d_language_data): Likewise.
3640 * f-lang.c (f_language_data): Likewise.
3641 (f_language::range_checking_on_by_default): New member function.
3642 * go-lang.c (go_language_data): Remove la_range_check initializer.
3643 * language.c (enum range_mode): Moved here from language.h.
3644 (range_mode): Made static.
3645 (show_range_command): Update to use
3646 range_checking_on_by_default.
3647 (set_range_command): Likewise.
3648 (set_range_case): Likewise.
3649 (unknown_language_data): Remove la_range_check initializer.
3650 (auto_language_data): Likewise.
3651 * language.h (range_mode): Delete. Enum definition moved to
3652 language.c.
3653 (language_data): Remove la_range_check field.
3654 (language_defn::range_checking_on_by_default): New member
3655 function.
3656 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3657 (m2_language::range_checking_on_by_default): New member function.
3658 * objc-lang.c (objc_language_data): Remove la_range_check
3659 initializer.
3660 * opencl-lang.c (opencl_language_data): Likewise.
3661 * p-lang.c (pascal_language_data): Likewise.
3662 (pascal_language::range_checking_on_by_default): New member
3663 function.
3664 * rust-lang.c (rust_language_data): Remove la_range_check
3665 initializer.
3666 (rust_language::range_checking_on_by_default): New member
3667 function.
3668
bf92aec5
AB
36692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3670
3671 * dwarf2/read.c (dwarf2_physname): Remove special case for
3672 language_go.
3673 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3674 member function.
3675
d3355e4d
AB
36762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3677
3678 * ada-lang.c (ada_language_data): Remove
3679 la_store_sym_names_in_linkage_form_p initializer.
3680 (ada_language::store_sym_names_in_linkage_form_p): New member
3681 function.
3682 * c-lang.c (c_language_data): Remove
3683 la_store_sym_names_in_linkage_form_p initializer.
3684 (c_language::store_sym_names_in_linkage_form_p): New member
3685 function.
3686 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3687 initializer.
3688 (asm_language_data): Likewise.
3689 (asm_language::store_sym_names_in_linkage_form_p): New member
3690 function.
3691 (minimal_language_data): Remove
3692 la_store_sym_names_in_linkage_form_p initializer.
3693 (minimal_language::store_sym_names_in_linkage_form_p): New member
3694 function.
3695 * d-lang.c (d_language_data): Remove
3696 la_store_sym_names_in_linkage_form_p initializer.
3697 * dwarf2/read.c (dwarf2_physname): Update call to
3698 store_sym_names_in_linkage_form_p.
3699 * f-lang.c (f_language_data): Remove
3700 la_store_sym_names_in_linkage_form_p initializer.
3701 * go-lang.c (go_language_data): Remove
3702 la_store_sym_names_in_linkage_form_p initializer.
3703 * language.c (unknown_language_data): Remove
3704 la_store_sym_names_in_linkage_form_p initializer.
3705 (unknown_language::store_sym_names_in_linkage_form_p): New member
3706 function.
3707 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3708 initializer.
3709 (auto_language::store_sym_names_in_linkage_form_p): New member
3710 function.
3711 * language.h (language_data): Remove
3712 la_store_sym_names_in_linkage_form_p member variable.
3713 (language_defn::store_sym_names_in_linkage_form_p): New member
3714 function.
3715 * m2-lang.c (m2_language_data): Remove
3716 la_store_sym_names_in_linkage_form_p initializer.
3717 * objc-lang.c (objc_language_data): Likewise.
3718 * opencl-lang.c (opencl_language_data): Likewise.
3719 * p-lang.c (pascal_language_data): Likewise.
3720 * rust-lang.c (rust_language_data): Likewise.
3721
22c12a6c
AB
37222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3723
3724 * ada-lang.c (ada_language_data): Remove string_lower_bound
3725 initializer.
3726 * c-lang.c (c_language_data): Likewise.
3727 (cplus_language_data): Likewise.
3728 (asm_language_data): Likewise.
3729 (minimal_language_data): Likewise.
3730 * d-lang.c (d_language_data): Likewise.
3731 * f-lang.c (f_language_data): Likewise.
3732 * go-lang.c (go_language_data): Likewise.
3733 * language.c (unknown_language_data): Likewise.
3734 (auto_language_data): Likewise.
3735 * language.h (language_data): Remove string_lower_bound field.
3736 (language_defn::string_lower_bound): New member function.
3737 * m2-lang.c (m2_language_data): Remove string_lower_bound
3738 initializer.
3739 (m2_language::string_lower_bound): New member function.
3740 * objc-lang.c (objc_language_data): Remove string_lower_bound
3741 initializer.
3742 * opencl-lang.c (opencl_language_data): Likewise.
3743 * p-lang.c (pascal_language_data): Likewise.
3744 * rust-lang.c (rust_language_data): Likewise.
3745 * valops.c (value_cstring): Update call to string_lower_bound.
3746 (value_string): Likewise.
3747 * value.c (allocate_repeated_value): Likewise.
3748
1c236ddd
AB
37492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3750
3751 * valops.c (value_repeat): Fix incorrect argument name in comment.
3752
67bd3fd5
AB
37532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3754
3755 * ada-lang.c (ada_language_data): Remove c_style_arrays
3756 initializer.
3757 (ada_language::c_style_arrays_p): New member fuction.
3758 * c-lang.c (c_language_data): Remove c_style_arrays
3759 initializer.
3760 (cplus_language_data): Likewise.
3761 (asm_language_data): Likewise.
3762 (minimal_language_data): Likewise.
3763 * d-lang.c (d_language_data): Likewise.
3764 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3765 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3766 (f_language::c_style_arrays_p): New member function.
3767 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3768 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3769 * language.c (unknown_language_data): Remove c_style_arrays
3770 initializer.
3771 (auto_language_data): Likewise.
3772 * language.h (language_data): Remove c_style_arrays field.
3773 (language_defn::c_style_arrays_p): New member function.
3774 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3775 (m2_language::c_style_arrays_p): New member function.
3776 * objc-lang.c (objc_language_data): Remove c_style_arrays
3777 initializer.
3778 * opencl-lang.c (opencl_language_data): Likewise.
3779 * p-lang.c (pascal_language_data): Likewise.
3780 * rust-lang.c (rust_language_data): Likewise.
3781 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3782 and update local variable to a bool.
3783 * valops.c (value_cast): Update call to c_style_arrays_p.
3784 (value_array): Likewise.
3785 * value.c (coerce_array): Likewise.
3786
85967615
AB
37872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3788
3789 * ada-lang.c (ada_language_data): Remove la_language initializer.
3790 * c-lang.c (c_language_data): Likewise.
3791 (cplus_language_data): Likewise.
3792 (asm_language_data): Likewise.
3793 (minimal_language_data): Likewise.
3794 * d-lang.c (d_language_data): Likewise.
3795 * f-lang.c (f_language_data): Likewise.
3796 * go-lang.c (go_language_data): Likewise.
3797 * language.c (unknown_language_data): Likewise.
3798 (auto_language_data): Likewise.
3799 * language.h (language_data): Remove la_language field.
3800 (language_defn::language_defn): Initialise la_language field.
3801 (language_defn::la_language): New member variable.
3802 * m2-lang.c (m2_language_data): Remove la_language field.
3803 * objc-lang.c (objc_language_data): Likewise.
3804 * opencl-lang.c (opencl_language_data): Likewise.
3805 * p-lang.c (pascal_language_data): Likewise.
3806 * rust-lang.c (rust_language_data): Likewise.
3807
e171d6f1
AB
38082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3809
3810 * ada-lang.c (ada_extensions): Delete, moved into
3811 ada_language::filename_extensions.
3812 (ada_language_data): Remove la_filename_extensions initializer.
3813 (ada_language::filename_extensions): New member function.
3814 * c-lang.c (c_extensions): Delete, moved into
3815 c_language::filename_extensions.
3816 (c_language_data): Remove la_filename_extensions initializer.
3817 (c_language::filename_extensions): New member function.
3818 (cplus_extensions): Delete, moved into
3819 cplus_language::filename_extensions.
3820 (cplus_language_data): Remove la_filename_extensions initializer.
3821 (cplus_language::filename_extensions): New member function.
3822 (asm_extensions): Delete, moved into
3823 asm_language::filename_extensions.
3824 (asm_language_data): Remove la_filename_extensions initializer.
3825 (asm_language::filename_extensions): New member function.
3826 (minimal_language_data): Remove la_filename_extensions
3827 initializer.
3828 * d-lang.c (d_extensions): Delete, moved into
3829 d_language::filename_extensions.
3830 (d_language_data): Remove la_filename_extensions initializer.
3831 (d_language::filename_extensions): New member function.
3832 * f-lang.c (f_extensions): Delete, moved into
3833 f_language::filename_extensions.
3834 (f_language_data): Remove la_filename_extensions initializer.
3835 (f_language::filename_extensions): New member function.
3836 * go-lang.c (go_language_data): Remove la_filename_extensions
3837 initializer.
3838 * language.c (add_set_language_command): Update now that
3839 filename_extensions returns a vector.
3840 (unknown_language_data): Remove la_filename_extensions
3841 initializer.
3842 (auto_language_data): Likewise.
3843 * language.h (language_data): Remove la_filename_extensions field.
3844 (language_defn::filename_extensions): New member function.
3845 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3846 initializer.
3847 * objc-lang.c (objc_extensions): Delete, moved into
3848 objc_language::filename_extensions.
3849 (objc_language_data): Remove la_filename_extensions initializer.
3850 (objc_language::filename_extensions): New member function.
3851 * opencl-lang.c (opencl_language_data): Remove
3852 la_filename_extensions initializer.
3853 * p-lang.c (pascal_extensions): Delete, moved into
3854 pascal_language::filename_extensions.
3855 (pascal_language_data): Remove la_filename_extensions initializer.
3856 (pascal_language::filename_extensions): New member function.
3857 * rust-lang.c (rust_extensions): Delete, moved into
3858 rust_language::filename_extensions.
3859 (rust_language_data): Remove la_filename_extensions initializer.
3860 (rust_language::filename_extensions): New member function.
3861 * symfile.c (add_filename_language): Add new assert.
3862
6f7664a9
AB
38632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3864
3865 * ada-lang.c (ada_language_data): Remove la_name and
3866 la_natural_name initializers.
3867 (ada_language::name): New member function.
3868 (ada_language::natural_name): New member function.
3869 * c-lang.c (c_language_data): Remove la_name and
3870 la_natural_name initializers.
3871 (c_language::name): New member function.
3872 (c_language::natural_name): New member function.
3873 (cplus_language_data): Remove la_name and
3874 la_natural_name initializers.
3875 (cplus_language::name): New member function.
3876 (cplus_language::natural_name): New member function.
3877 (asm_language_data): Remove la_name and
3878 la_natural_name initializers.
3879 (asm_language::name): New member function.
3880 (asm_language::natural_name): New member function.
3881 (minimal_language_data): Remove la_name and
3882 la_natural_name initializers.
3883 (minimal_language::name): New member function.
3884 (minimal_language::natural_name): New member function.
3885 * compile/compile.c (compile_to_object): Update call to
3886 lanugage_defn::name.
3887 * d-lang.c (d_language_data): Remove la_name and
3888 la_natural_name initializers.
3889 (d_language::name): New member function.
3890 (d_language::natural_name): New member function.
3891 * expprint.c (print_subexp_standard): Update call to
3892 language_defn::name.
3893 (dump_raw_expression): Likewise
3894 (dump_prefix_expression): Likewise.
3895 * f-lang.c (f_language_data): Remove la_name and
3896 la_natural_name initializers.
3897 (f_language::name): New member function.
3898 (f_language::natural_name): New member function.
3899 * go-lang.c (go_language_data): Remove la_name and
3900 la_natural_name initializers.
3901 (go_language::name): New member function.
3902 (go_language::natural_name): New member function.
3903 * language.c (show_language_command): Update call to
3904 language_defn::name.
3905 (set_language_command): Likewise.
3906 (language_enum): Likewise.
3907 (language_str): Likewise.
3908 (add_set_language_command): Likewise, use
3909 language_defn::natural_name in the doc string.
3910 (unknown_language_data): Remove la_name and
3911 la_natural_name initializers.
3912 (unknown_language::name): New member function.
3913 (unknown_language::natural_name): New member function.
3914 (auto_language_data): Remove la_name and
3915 la_natural_name initializers.
3916 (auto_language::name): New member function.
3917 (auto_language::natural_name): New member function.
3918 (language_lookup_primitive_type_as_symbol): Update call to
3919 language_defn::name.
3920 * language.h (language_data): Remove la_name and la_natural_name
3921 member variables.
3922 (language_defn::name): New member function.
3923 (language_defn::natural_name): New member function.
3924 * m2-lang.c (m2_language_data): Remove la_name and
3925 la_natural_name initializers.
3926 (m2_language::name): New member function.
3927 (m2_language::natural_name): New member function.
3928 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3929 language_defn::natural_name.
3930 * objc-lang.c (objc_language_data): Remove la_name and
3931 la_natural_name initializers.
3932 (objc_language::name): New member function.
3933 (objc_language::natural_name): New member function.
3934 * opencl-lang.c (opencl_language_data): Remove la_name and
3935 la_natural_name initializers.
3936 (opencl_language::name): New member function.
3937 (opencl_language::natural_name): New member function.
3938 * p-lang.c (pascal_language_data): Remove la_name and
3939 la_natural_name initializers.
3940 (pascal_language::name): New member function.
3941 (pascal_language::natural_name): New member function.
3942 * rust-lang.c (rust_language_data): Remove la_name and
3943 la_natural_name initializers.
3944 (rust_language::name): New member function.
3945 (rust_language::natural_name): New member function.
3946 * symtab.c (lookup_language_this): Update call to
3947 language_defn::name.
3948
5bae7c4e
AB
39492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * ada-lang.c (ada_language_data): Remove la_name_of_this
3952 initializer.
3953 * ax-gdb.c (gen_expr): Update call to name_of_this.
3954 * c-exp.y (classify_name): Likewise.
3955 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3956 (cplus_language_data): Likewise.
3957 (cplus_language::name_of_this): New member function.
3958 (asm_language_data): Remove la_name_of_this initializer.
3959 (minimal_language_data): Likewise.
3960 * d-lang.c (d_language_data): Likewise.
3961 (d_language::name_of_this): New member function.
3962 * expprint.c (print_subexp_standard): Update call to name_of_this.
3963 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3964 * go-lang.c (go_language_data): Likewise.
3965 * language.c (unknown_language_data): Likewise.
3966 (unknown_language::name_of_this): New member function.
3967 (auto_language_data): Remove la_name_of_this initializer.
3968 (auto_language::name_of_this): New member function.
3969 * language.h (language_data): Delete la_name_of_this member
3970 variable.
3971 (language_defn::name_of_this): New member function.
3972 * m2-lang.c (m2_language_data): Remove la_name_of_this
3973 initializer.
3974 * objc-lang.c (objc_language_data): Likewise.
3975 (objc_language::name_of_this): New member function.
3976 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3977 initializer.
3978 * p-lang.c (pascal_language_data): Likewise.
3979 (pascal_language::name_of_this): New member function.
3980 * rust-lang.c (rust_language_data): Remove la_name_of_this
3981 initializer.
3982 * symtab.c (lookup_language_this): Update call to name_of_this.
3983 (lookup_symbol_aux): Likewise.
3984 * valops.c (value_of_this): Likewise.
3985
22e3f3ed
AB
39862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3987
3988 * ada-lang.c (ada_language_data): Remove
3989 la_struct_too_deep_ellipsis initializer.
3990 (ada_language::struct_too_deep_ellipsis): New member function.
3991 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3992 initializer.
3993 (cplus_language_data): Likewise.
3994 (asm_language_data): Likewise.
3995 (minimal_language_data): Likewise.
3996 * cp-valprint.c (cp_print_value): Update call to
3997 struct_too_deep_ellipsis.
3998 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3999 initializer.
4000 * f-lang.c (f_language_data): Likewise.
4001 (f_language::struct_too_deep_ellipsis): New member function.
4002 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4003 initializer.
4004 * language.c (unknown_language_data): Likewise.
4005 (auto_language_data): Likewise.
4006 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4007 member variable.
4008 (language_defn::struct_too_deep_ellipsis): New member function.
4009 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4010 initializer.Q
4011 * objc-lang.c (objc_language_data): Likewise.
4012 * opencl-lang.c (opencl_language_data): Likewise.
4013 * p-lang.c (pascal_language_data): Likewise.
4014 * rust-lang.c (rust_language_data): Likewise.
4015 * valprint.c (val_print_check_max_depth): Update call to
4016 struct_too_deep_ellipsis.
4017
ed29e1c7
FW
40182020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4019
4020 * MAINTAINERS (Write After Approval): Add myself.
4021
12d8f940
TT
40222020-09-15 Tom Tromey <tom@tromey.com>
4023
4024 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4025 Remove.
4026
6b5a7bc7
TT
40272020-09-15 Tom Tromey <tom@tromey.com>
4028
4029 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4030 and TYPE_CODE_METHODPTR cases.
4031 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4032 (c_value_print_inner): Update.
4033 * valprint.c (generic_value_print_memberptr): New function, from
4034 c_value_print_memberptr.
4035 (generic_value_print): Use it. Call cplus_print_method_ptr.
4036
47f0e2ff
TT
40372020-09-15 Tom Tromey <tromey@adacore.com>
4038
4039 * python/python-internal.h (PyInt_FromLong): Remove define.
4040 * python/py-value.c (convert_value_from_python): Use
4041 gdb_py_object_from_longest.
4042 * python/py-type.c (typy_get_code): Use
4043 gdb_py_object_from_longest.
4044 * python/py-symtab.c (salpy_get_line): Use
4045 gdb_py_object_from_longest.
4046 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4047 gdb_py_object_from_longest.
4048 * python/py-record.c (recpy_gap_reason_code): Use
4049 gdb_py_object_from_longest.
4050 * python/py-record-btrace.c (recpy_bt_insn_size)
4051 (recpy_bt_func_level, btpy_list_count): Use
4052 gdb_py_object_from_longest.
4053 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4054 gdb_py_object_from_longest. Fix error handling.
4055 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4056 gdb_py_object_from_longest.
4057 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4058 gdb_py_object_from_longest.
4059 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4060 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4061 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4062
512116ce
TT
40632020-09-15 Tom Tromey <tromey@adacore.com>
4064
4065 * python/python.c (gdbpy_parameter_value): Use
4066 gdb_py_object_from_ulongest.
4067
4ab1029c
TT
40682020-09-15 Tom Tromey <tromey@adacore.com>
4069
4070 * python/py-infevents.c (create_register_changed_event_object):
4071 Use gdb_py_object_from_longest.
4072 * python/py-exitedevent.c (create_exited_event_object): Use
4073 gdb_py_object_from_longest.
4074
062534d4
TT
40752020-09-15 Tom Tromey <tromey@adacore.com>
4076
4077 * python/python.c (gdbpy_parameter_value): Use
4078 gdb_py_object_from_longest.
4079 * python/py-type.c (convert_field, typy_range): Use
4080 gdb_py_object_from_longest.
4081 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4082 gdb_py_object_from_longest.
4083 * python/py-lazy-string.c (stpy_get_length): Use
4084 gdb_py_object_from_longest.
4085 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4086 gdb_py_object_from_longest.
4087 * python/py-infevents.c (create_memory_changed_event_object): Use
4088 gdb_py_object_from_longest.
4089 * python/py-inferior.c (infpy_get_num): Use
4090 gdb_py_object_from_longest.
4091 (infpy_get_pid): Likewise.
4092
d1cab987
TT
40932020-09-15 Tom Tromey <tromey@adacore.com>
4094
4095 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4096 defines.
4097 * python/py-value.c (valpy_long): Use
4098 gdb_py_object_from_ulongest.
4099 * python/py-symtab.c (salpy_get_pc): Use
4100 gdb_py_object_from_ulongest.
4101 (salpy_get_last): Likewise.
4102 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4103 gdb_py_object_from_ulongest.
4104 * python/py-lazy-string.c (stpy_get_address): Use
4105 gdb_py_object_from_ulongest.
4106 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4107 * python/py-arch.c (archpy_disassemble): Use
4108 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4109 error handling.
4110
4bde49dc
TT
41112020-09-15 Tom Tromey <tromey@adacore.com>
4112
4113 * python/python-internal.h (gdb_py_long_from_longest): Remove
4114 defines.
4115 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4116 * python/py-type.c (convert_field, typy_get_sizeof): Use
4117 gdb_py_object_from_longest.
4118 * python/py-record-btrace.c (btpy_list_index): Use
4119 gdb_py_object_from_longest.
4120
37431074
TT
41212020-09-15 Tom Tromey <tromey@adacore.com>
4122
4123 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4124 * python/py-record.c (recpy_element_number): Use
4125 gdb_py_object_from_longest.
4126 (recpy_gap_number): Likewise.
4127
cbe25684
TT
41282020-09-15 Tom Tromey <tromey@adacore.com>
4129
4130 * top.c (ui::ui): Update.
4131 (highest_ui_num): Remove.
4132 * top.h (struct ui) <num>: Remove.
4133
db92ac45
TT
41342020-09-15 Tom Tromey <tromey@adacore.com>
4135
4136 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4137 * ui-style.c (ansi_regex_text): Now array.
4138 * rust-exp.y (number_regex_text): Now array.
4139 * linespec.c (linespec_quote_characters): Now array.
4140 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4141 Now arrays.
4142
d2b31b67
SM
41432020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4144
4145 * debuginfod-support.c (debuginfod_client_deleter): New.
4146 (debuginfod_client_up): New.
4147 (debuginfod_init): Return debuginfod_client_up.
4148 (debuginfod_source_query): Adjust.
4149 (debuginfod_debuginfo_query): Adjust.
4150
3246bd8e
SM
41512020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4152
4153 * debuginfod-support.c (debuginfod_source_query): Use
4154 make_unique_xstrdup.
4155
10242f36
SM
41562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4159 with `type::instance_flags`.
4160
e1044e6a
MM
41612020-09-14 Michael Mullin <masmullin@gmail.com>
4162
4163 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4164 Remove baton parameter.
4165
04902b09
PA
41662020-09-14 Pedro Alves <pedro@palves.net>
4167
4168 * Makefile.in (SELFTESTS_SRCS): Add
4169 unittests/enum-flags-selftests.c.
4170 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4171 btrace_function_flags instead of enum btrace_function_flag.
4172 * compile/compile-c-types.c (convert_qualified): Use
4173 enum_flags::raw.
4174 * compile/compile-cplus-symbols.c (convert_one_symbol)
4175 (convert_symbol_bmsym):
4176 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4177 (compile_cplus_convert_struct_or_union_methods)
4178 (compile_cplus_instance::convert_qualified_base):
4179 * go-exp.y (parse_string_or_char): Add cast to int.
4180 * unittests/enum-flags-selftests.c: New file.
4181 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4182 type to btrace_thread_flags from btrace_thread_flag.
4183 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4184 local's type to btrace_thread_flags from btrace_thread_flag. Add
4185 cast in DEBUG call.
4186
69896a2c
PA
41872020-09-14 Pedro Alves <pedro@palves.net>
4188
4189 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4190 * gdbtypes.c (address_space_name_to_int): Rename to ...
4191 (address_space_name_to_type_instance_flags): ... this.
4192 (address_space_int_to_name): Rename to ...
4193 (address_space_type_instance_flags_to_name): ... this.
4194 * gdbtypes.h (address_space_name_to_int): Rename to ...
4195 (address_space_name_to_type_instance_flags): ... this.
4196 (address_space_int_to_name): Rename to ...
4197 (address_space_type_instance_flags_to_name): ... this.
4198 * type-stack.c (type_stack::insert): Adjust to rename.
4199 * type-stack.h (type_stack::insert): Likewise.
4200
314ad88d
PA
42012020-09-14 Pedro Alves <pedro@palves.net>
4202 Andrew Burgess <andrew.burgess@embecosm.com>
4203
4204 * avr-tdep.c (avr_address_class_type_flags): Return
4205 type_instance_flags.
4206 (avr_address_class_type_flags_to_name): Take a
4207 type_instance_flags.
4208 (avr_address_class_name_to_type_flags): Return bool and take a
4209 type_instance_flags.
4210 * d-lang.c (build_d_types): Use type::set_instance_flags.
4211 * ft32-tdep.c (ft32_address_class_type_flags): Return
4212 type_instance_flags.
4213 (ft32_address_class_type_flags_to_name): Take a
4214 type_instance_flags.
4215 (ft32_address_class_name_to_type_flags): Return bool and take a
4216 type_instance_flags.
4217 (ft32_gdbarch_init): Use type::set_instance_flags.
4218 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4219 * gdbarch.h, gdbarch.c: Regenerate.
4220 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4221 (address_class_name_to_type_flags): Use type_instance_flags and
4222 bool.
4223 * gdbtypes.c (address_space_name_to_int)
4224 (address_space_int_to_name, make_qualified_type): Use
4225 type_instance_flags.
4226 (make_qualified_type): Use type_instance_flags and
4227 type::set_instance_flags.
4228 (make_type_with_address_space, make_cv_type, make_vector_type)
4229 (check_typedef): Use type_instance_flags.
4230 (recursive_dump_type): Cast type_instance_flags to unsigned for
4231 printing.
4232 (copy_type_recursive): Use type::set_instance_flags.
4233 (gdbtypes_post_init): Use type::set_instance_flags.
4234 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4235 <m_instance_flags>: ... this.
4236 <instance_flags, set_instance_flags>: New methods.
4237 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4238 (SET_TYPE_INSTANCE_FLAGS): New.
4239 (address_space_name_to_int, address_space_int_to_name)
4240 (make_type_with_address_space): Pass flags using
4241 type_instance_flags instead of int.
4242 * stabsread.c (cleanup_undefined_types_noname): Use
4243 type::set_instance_flags.
4244 * s390-tdep.c (s390_address_class_type_flags): Return
4245 type_instance_flags.
4246 (s390_address_class_type_flags_to_name): Take a
4247 type_instance_flags.
4248 (s390_address_class_name_to_type_flags): Return bool and take a
4249 type_instance_flags.
4250 * type-stack.c (type_stack::follow_types): Use
4251 type_instance_flags.
4252 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4253
27087b7f
TT
42542020-09-14 Tom Tromey <tromey@adacore.com>
4255
4256 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4257 * x86-tdep.c (x86_is_thunk_register_name)
4258 (x86_in_indirect_branch_thunk): Update.
4259 * sparc64-tdep.c (sparc64_fpu_register_names)
4260 (sparc64_cp0_register_names, sparc64_register_names)
4261 (sparc64_pseudo_register_names): Now const.
4262 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4263 cp0_registers_num>: Now const.
4264 * sparc-tdep.c (sparc_core_register_names)
4265 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4266 (sparc32_pseudo_register_names): Now const.
4267 (validate_tdesc_registers): Update.
4268 * rust-lang.c (rust_extensions): Now const.
4269 * p-lang.c (p_extensions): Now const.
4270 * objc-lang.c (objc_extensions): Now const.
4271 * nto-tdep.c (nto_thread_state_str): Now const.
4272 * moxie-tdep.c (moxie_register_names): Now const.
4273 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4274 Now const.
4275 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4276 (mips_linux_reg_names): Now const.
4277 (mips_gdbarch_init): Update.
4278 * microblaze-tdep.c (microblaze_register_names): Now const.
4279 * m68k-tdep.c (m68k_register_names): Now const.
4280 * m32r-tdep.c (m32r_register_names): Now const.
4281 * ia64-tdep.c (ia64_register_names): Now const.
4282 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4283 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4284 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4285 ymm_avx512_register_names, pkeys_register_names>: Now const.
4286 * i386-tdep.c (i386_register_names, i386_zmm_names)
4287 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4288 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4289 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4290 * f-lang.c (f_extensions): Now const.
4291 * d-lang.c (d_extensions): Now const.
4292 * csky-tdep.c (csky_register_names): Now const.
4293 * charset.c (default_charset_names, charset_enum): Now const.
4294 (_initialize_charset): Update.
4295 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4296 const.
4297 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4298 (bsd_uthread_solib_loaded): Update.
4299 (bsd_uthread_state): Now const.
4300 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4301 (amd64_ymm_avx512_names, amd64_ymmh_names)
4302 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4303 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4304 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4305 (amd64_dword_names): Now const.
4306 * agent.c (can_use_agent_enum): Now const.
4307 * ada-tasks.c (task_states, long_task_states): Now const.
4308 * ada-lang.c (known_runtime_file_name_patterns)
4309 (known_auxiliary_function_name_patterns, attribute_names)
4310 (standard_exc, ada_extensions): Now const.
4311
89806626
SM
43122020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4313
4314 * bcache.h (struct bcache) <bcache>: Remove constructor.
4315 <m_hash_function, m_compare_function>: Remove.
4316 <~bcache>: Make virtual.
4317 <compare>: Remove static method, introduce virtual method.
4318 <default_hash>: Remove.
4319 <hash>: New virtual method.
4320 * bcache.c (bcache::expand_hash_table): Update.
4321 (bcache::insert): Update.
4322 (bcache::hash): New.
4323 (bcache::compare): Update comment and parameter names.
4324 * gdbtypes.c (types_deeply_equal): Update.
4325 * psymtab.h (struct psymbol_bcache): New struct.
4326 (class psymtab_storage) <psymtab_storage>: Make default.
4327 <psymbol_cache>: Change type to psymbol_bcache.
4328 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4329 (psymbol_hash): Change to...
4330 (psymbol_bcache::hash): ... this.
4331 (psymbol_compare): Change to...
4332 (psymbol_bcache::compare): ... this.
4333
677c92fe
SM
43342020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4335
4336 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4337 checking for initial lwp.
4338
3eba3a01
TT
43392020-09-14 Tom Tromey <tromey@adacore.com>
4340
4341 * m68k-tdep.c (m68k_extract_return_value): Use
4342 pointer_result_regnum.
4343 (m68k_store_return_value): Likewise.
4344 (m68k_reg_struct_return_p): Handle vectors and arrays.
4345 (m68k_return_value): Handle arrays.
4346 (m68k_svr4_return_value): Fix single-element aggregate handling.
4347 Handle long double. Adjust for embedded ABI.
4348 (m68k_svr4_init_abi): Set pointer_result_regnum.
4349 (m68k_embedded_init_abi): New function.
4350 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4351 (m68k_osabi_sniffer): New function.
4352 (_initialize_m68k_tdep): Register osabi sniffer.
4353 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4354 member.
4355
33f4dd48
SM
43562020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4357
4358 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4359 with gdb::unique_xmalloc_ptr<char>.
4360
8400a90d
SM
43612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4362
4363 * xml-support.h (xml_fetch_another): Change type to be a
4364 function_view.
4365 (xml_process_xincludes): Remove baton parameter.
4366 (xml_fetch_content_from_file): Change baton parameter to
4367 dirname.
4368 * xml-support.c (struct xinclude_parsing_data)
4369 <xinclude_parsing_data>: Remove baton parameter.
4370 <fetcher_baton>: Remove.
4371 (xinclude_start_include): Adjust.
4372 (xml_process_xincludes): Adjust.
4373 (xml_fetch_content_from_file): Replace baton parameter with
4374 dirname.
4375 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4376 (xml_init_syscalls_info): Use a lambda.
4377 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4378 (file_read_description_xml): Use a lambda.
4379 (fetch_available_features_from_target): Change baton parameter
4380 to target_ops.
4381 (target_read_description_xml): Use a lambda.
4382 (target_fetch_description_xml): Use a lambda.
4383 (string_read_description_xml): Update.
4384
04f5bab2
SM
43852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4386
4387 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4388 uses with type::endianity_is_not_default.
4389
db558e34
SM
43902020-09-14 Simon Marchi <simon.marchi@efficios.com>
4391
4392 * gdbtypes.h (struct type) <endianity_is_not_default,
4393 set_endianity_is_not_default>: New methods.
4394 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4395 type::endianity_is_not_default, change all write call sites to
4396 use type::set_endianity_is_not_default.
4397
22c4c60c
SM
43982020-09-14 Simon Marchi <simon.marchi@efficios.com>
4399
4400 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4401 uses with type::is_fixed_instance.
4402
9cdd0d12
SM
44032020-09-14 Simon Marchi <simon.marchi@efficios.com>
4404
4405 * gdbtypes.h (struct type) <is_fixed_instance,
4406 set_is_fixed_instance>: New methods.
4407 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4408 write call sites to use type::set_is_fixed_instance.
4409
0becda7a
SM
44102020-09-14 Simon Marchi <simon.marchi@efficios.com>
4411
4412 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4413 uses with type::is_gnu_ifunc.
4414
03cc7249
SM
44152020-09-14 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4418 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4419 use type::set_is_gnu_ifunc.
4420
3f46044c
SM
44212020-09-14 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4424 uses with type::stub_is_supported.
4425
9baccff6
SM
44262020-09-14 Simon Marchi <simon.marchi@efficios.com>
4427
4428 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4429 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4430 use type::set_stub_is_supported.
4431
bd63c870
SM
44322020-09-14 Simon Marchi <simon.marchi@efficios.com>
4433
4434 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4435 uses with type::is_vector.
4436
2062087b
SM
44372020-09-14 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4440 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4441 use type::set_is_vector.
4442
a409645d
SM
44432020-09-14 Simon Marchi <simon.marchi@efficios.com>
4444
4445 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4446 uses with type::has_varargs.
4447
1d6286ed
SM
44482020-09-14 Simon Marchi <simon.marchi@efficios.com>
4449
4450 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4451 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4452 use type::set_has_varargs.
4453
7f9f399b
SM
44542020-09-14 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4457 uses with type::is_prototyped.
4458
27e69b7a
SM
44592020-09-14 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4462 New methods.
4463 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4464 call sites to use type::set_is_prototyped.
4465
d2183968
SM
44662020-09-14 Simon Marchi <simon.marchi@efficios.com>
4467
4468 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4469 uses with type::target_is_stub.
4470
8f53807e
SM
44712020-09-14 Simon Marchi <simon.marchi@efficios.com>
4472
4473 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4474 New methods.
4475 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4476 sites to use type::set_target_is_stub.
4477
e46d3488
SM
44782020-09-14 Simon Marchi <simon.marchi@efficios.com>
4479
4480 * gdbtypes.h (TYPE_STUB): Remove, replace all
4481 uses with type::is_stub.
4482
b4b73759
SM
44832020-09-14 Simon Marchi <simon.marchi@efficios.com>
4484
4485 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4486 (TYPE_STUB): Use type::is_stub, change all write call sites to
4487 use type::set_is_stub.
4488
20ce4123
SM
44892020-09-14 Simon Marchi <simon.marchi@efficios.com>
4490
4491 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4492 type::has_no_signedness.
4493
15152a54
SM
44942020-09-14 Simon Marchi <simon.marchi@efficios.com>
4495
4496 * gdbtypes.h (struct type) <has_no_signedness,
4497 set_has_no_signedness>: New methods.
4498 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4499 call sites to use type::set_has_no_signedness.
4500
c6d940a9
SM
45012020-09-14 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4504 type::is_unsigned.
4505
653223d3
SM
45062020-09-14 Simon Marchi <simon.marchi@efficios.com>
4507
4508 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4509 methods.
4510 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4511 sites to use type::set_is_unsigned.
4512
55ea94da 45132020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4514 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4515
e851246a
SM
4516 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4517 pointer and stack frame offset when unwinding.
55ea94da 4518
6791b117
PA
45192020-09-13 Pedro Alves <pedro@palves.net>
4520
4521 * NEWS: Document "-break-insert --qualified".
4522 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4523
77f2120b
PA
45242020-09-13 Pedro Alves <pedro@palves.net>
4525
4526 * linespec.c (classify_mtype, compare_msyms): Delete.
4527 (search_minsyms_for_name): Remove classification logic. Instead
4528 filter out trampoline symbols if we also found an external
4529 function of the same name.
4530
ed6a896c
JB
45312020-09-13 Joel Brobecker <brobecker@adacore.com>
4532
4533 * NEWS: Create a new section for the next release branch.
4534 Rename the section of the current branch, now that it has
4535 been cut.
4536
32aea73e
JB
45372020-09-13 Joel Brobecker <brobecker@adacore.com>
4538
4539 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4540 * version.in: Bump version to 11.0.50.DATE-git.
4541
8087c3fa
JB
45422020-09-12 Joel Brobecker <brobecker@adacore.com>
4543
4544 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4545
2a67f09d
FW
45462020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4547 Felix Willgerodt <Felix.Willgerodt@intel.com>
4548
4549 * gdbarch.sh: Added bfloat16 type.
4550 * gdbarch.c: Regenerated.
4551 * gdbarch.h: Regenerated.
4552 * gdbtypes.c (floatformats_bfloat16): New struct.
4553 (gdbtypes_post_init): Add builtin_bfloat16.
4554 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4555 (floatformats_bfloat16): New struct.
4556 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4557 (i386_ymm_type): Add field "v16_bfloat16"
4558 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4559 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4560 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4561 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4562 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4563 * features/i386/64bit-avx512.c: Regenerated.
4564 * features/i386/64bit-sse.xml: Add bfloat16 type.
4565 * features/i386/64bit-sse.c: Regenerated.
4566
1347d111
FW
45672020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4568
4569 * i386-tdep.c (i386_zmm_type): Fix field names.
4570 (i386_ymm_type): Fix field names.
4571
7a4e8e7d
TBA
45722020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4573
4574 * breakpoint.c: Fix typo in the help message of the
4575 "set breakpoint condition-evaluation" command.
4576
cf4ac4be
KR
45772020-09-10 Kamil Rytarowski <n54@gmx.com>
4578
4579 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4580 * (nbsd_nat_target::pid_to_exec_file)
4581 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4582 (nbsd_nat_target::post_startup_inferior)
4583 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4584 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4585 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4586 * (nbsd_thread_lister): Remove.
4587
f404573e
KR
45882020-09-10 Kamil Rytarowski <n54@gmx.com>
4589
4590 * fork-inferior.c (startup_inferior): Avoid double free.
4591
1ccb2c17
KR
45922020-09-10 Kamil Rytarowski <n54@gmx.com>
4593
4594 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4595 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4596
feedfcc7
KR
45972020-09-10 Kamil Rytarowski <n54@gmx.com>
4598
4599 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4600 * netbsd-nat.c: Include <sys/ptrace.h>.
4601 * (netbsd_nat::enable_proc_events): Add.
4602
c489f8c6
KR
46032020-09-10 Kamil Rytarowski <n54@gmx.com>
4604
4605 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4606 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4607 (netbsd_nat::for_each_thread): Add.
4608 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4609 "gdbsupport/common-debug.h".
4610 * (netbsd_nat::netbsd_thread_lister)
4611 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4612 (netbsd_nat::for_each_thread): Add.
4613
330662f6
KR
46142020-09-10 Kamil Rytarowski <n54@gmx.com>
4615
4616 * netbsd-nat.h: Include <unistd.h>.
4617 * (netbsd_nat::pid_to_exec_file): Add.
4618 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4619 * (netbsd_nat::pid_to_exec_file) Add.
4620
70b67307
KR
46212020-09-10 Kamil Rytarowski <n54@gmx.com>
4622
4623 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4624
99cf6da6
KR
46252020-09-10 Kamil Rytarowski <n54@gmx.com>
4626
4627 * netbsd-nat.h: New file.
4628 * netbsd-nat.c: Likewise.
4629
1b788fb6
TT
46302020-09-09 Tom Tromey <tromey@adacore.com>
4631
4632 * ada-lang.c (remove_extra_symbols): Do not increment when
4633 removing an element
4634
03b0a45f
TT
46352020-09-08 Tom Tromey <tromey@adacore.com>
4636
4637 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4638
3cae4447
TT
46392020-09-08 Tom Tromey <tromey@adacore.com>
4640
4641 PR win32/25302:
4642 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4643 (gdb_bfd_init_data): New function.
4644 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4645
7f08fd51
TBA
46462020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4647
4648 * infrun.c (fetch_inferior_event): Use
4649 `switch_to_target_no_thread` to switch the target.
4650
3e6ff933
TT
46512020-09-06 Tom Tromey <tom@tromey.com>
4652
4653 * symfile.h (dwarf2_free_objfile): Don't declare.
4654
e56798df
AKS
46552020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4656
4657 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4658 to match 16 byte real/complex type generated by Flang compiler.
4659
8f5c6526
TV
46602020-09-03 Tom de Vries <tdevries@suse.de>
4661
4662 PR breakpoint/26546
4663 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4664 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4665
c5065df0
SM
46662020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4667
4668 * maint.c (index_digits): New function.
4669 (struct maint_print_section_data): Remove.
4670 (print_bfd_section_info): Remove print_data parameter, add arg
4671 and index_digits.
4672 (print_objfile_section_info): Likewise.
4673 (print_bfd_section_info_maybe_relocated): Likewise (plus
4674 objfile).
4675 (maintenance_info_sections): Adjust calls.
4676
02c6f3f1
TT
46772020-09-02 Tom Tromey <tromey@adacore.com>
4678
4679 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4680 for null pointers.
4681 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4682
ef5e5b0b
SM
46832020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4684
4685 * bcache.h (struct bcache) <insert>: Change type of `added` to
4686 pointer to bool.
4687 * bcache.c (bcache::insert): Likewise.
4688 * gdbtypes.c (check_types_worklist): Adjust.
4689 * psymtab.c (add_psymbol_to_bcache): Adjust.
4690
973695d6
KB
46912020-08-31 Kevin Buettner <kevinb@redhat.com>
4692
4693 * corelow.c (unordered_set): Include.
4694 (class core_target): Add field 'm_core_unavailable_mappings'.
4695 (core_target::build_file_mappings): Print only one warning
4696 per inaccessible file. Add unavailable/broken mappings
4697 to m_core_unavailable_mappings.
4698 (core_target::xfer_partial): Call...
4699 (core_target::xfer_memory_via_mappings): New method.
4700
264fc0e2
SM
47012020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4702
4703 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4704 type to bool.
4705
2de01bdb
SM
47062020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4707
4708 * dwarf2/read.c (struct field_info): Fix indentation.
4709
f3bd50f1
SM
47102020-08-31 Simon Marchi <simon.marchi@efficios.com>
4711
4712 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4713 ordering in comment.
4714 * frame.c (frame_id_eq): Fix indentation.
4715
22b9b4b0
SL
47162020-08-31 Scott Linder <scott@scottlinder.com>
4717 Simon Marchi <simon.marchi@efficios.com>
4718
4719 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4720 inline frame ids in outer frame.
4721
84154d16
SM
47222020-08-31 Simon Marchi <simon.marchi@efficios.com>
4723
4724 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4725 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4726 (outer_frame_id): Use FID_STACK_OUTER instead of
4727 FID_STACK_INVALID.
4728 (frame_id_p): Don't check for outer_frame_id.
4729
8efaf6b3
SM
47302020-08-31 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4733 regnum/frame in value. Call allocate_value_lazy.
4734 * frame.c (frame_unwind_register_value): Use
4735 val_print_not_saved.
4736
fe1fe7ea
SM
47372020-08-31 Simon Marchi <simon.marchi@efficios.com>
4738
4739 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4740
f7c7700d
PA
47412020-08-29 Pedro Alves <pedro@palves.net>
4742
4743 * progspace.c (print_program_space): Use all_inferiors. Switch to
4744 the inferior before calling target_pid_to_str.
4745
e0814aae
TT
47462020-08-28 Tom Tromey <tom@tromey.com>
4747
4748 * xcoffread.c (xcoff_end_psymtab): Update comment.
4749 * dbxread.c (dbx_end_psymtab): Update comment.
4750
626d2320
TV
47512020-08-28 Tom de Vries <tdevries@suse.de>
4752
4753 PR breakpoint/26544
4754 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4755 event_location.
4756 (create_breakpoint): Same.
4757 (base_breakpoint_decode_location): Same.
4758 (bkpt_create_sals_from_location): Same.
4759 (bkpt_decode_location): Same.
4760 (bkpt_probe_create_sals_from_location): Same.
4761 (bkpt_probe_decode_location): Same.
4762 (tracepoint_create_sals_from_location): Same.
4763 (tracepoint_decode_location): Same.
4764 (tracepoint_probe_decode_location): Same.
4765 (strace_marker_create_sals_from_location): Same.
4766 (strace_marker_decode_location): Same.
4767 (create_sals_from_location_default): Same.
4768 (decode_location_default): Same.
4769 * breakpoint.h (struct breakpoint_ops): Same.
4770 (create_breakpoint): Same.
4771 * linespec.h (decode_line_full): Same.
4772 * linespec.c (decode_line_full): Same. Throw error if
4773 result.size () == 0.
4774
df631783
PA
47752020-08-27 Pedro Alves <pedro@palves.net>
4776
4777 PR gdb/26524
4778 * breakpoint.c (until_break_fsm) <location_breakpoint,
4779 caller_breakpoint>: Delete fields.
4780 <breakpoints>: New field.
4781 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4782 two individual breakpoints.
4783 (until_break_fsm::should_stop): Loop over breakpoints in the
4784 breakpoint vector.
4785 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4786 vector.
4787 (until_break_command): Handle location expanding into multiple
4788 sals.
4789
b2b38aa4
PA
47902020-08-27 Pedro Alves <pedro@palves.net>
4791
4792 PR gdb/26523
4793 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4794 bp_until breakpoints user-specified locations. Update intro
4795 comment.
4796
b886559f
SM
47972020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4798
4799 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4800 gdb_bfd_sections): New.
4801 * maint.c (print_bfd_section_info): Change param type to
4802 maint_print_section_data.
4803 (print_objfile_section_info): Likewise.
4804 (print_bfd_section_info_maybe_relocated): Likewise.
4805 (maintenance_info_sections): Use gdb_bfd_sections.
4806
4c6e63bf
SV
48072020-08-25 Shahab Vahedi <shahab@synopsys.com>
4808
4809 * MAINTAINERS: Add ARC target and maintainer.
4810
8d7f0635
AK
48112020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4812
4813 * configure.tgt: ARC support for GNU/Linux.
4814 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4815 * arc-linux-tdep.c: New file.
4816 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4817 * arc-tdep.c (arc_write_pc): Use it.
4818
fdd8731b
SV
48192020-08-25 Shahab Vahedi <shahab@synopsys.com>
4820
4821 * arc-tdep.c (arc_check_for_hardware_loop): New.
4822 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4823
22459524
SV
48242020-08-25 Shahab Vahedi <shahab@synopsys.com>
4825
4826 * arc-tdep.h: Include "gdbarch.h".
4827
995d3a19
SV
48282020-08-25 Shahab Vahedi <shahab@synopsys.com>
4829
4830 * arch/arc.h
4831 (arc_gdbarch_features): New class to stir the selection of target XML.
4832 (arc_create_target_description): Use FEATURES to choose XML target.
4833 (arc_lookup_target_description): Use arc_create_target_description
4834 to create _new_ target descriptions or return the already created
4835 ones if the FEATURES is the same.
4836 * arch/arc.c: Implementation of prototypes described above.
4837 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4838 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4839 * arc-tdep.c (*_feature_name): Make feature names consistent.
4840 (arc_register_feature): A new struct to hold information about
4841 registers of a particular target/feature.
4842 (arc_check_tdesc_feature): Check if XML provides registers in
4843 compliance with ARC_REGISTER_FEATURE structs.
4844 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4845 (determine_*_reg_feature_set): Which feature name to look for.
4846 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4847 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4848 to expected ISA enums to be used in arc_gdbarch_features structs.
4849 * features/Makefile (FEATURE_XMLFILES): Add new files.
4850 * gdb/features/arc/v1-aux.c: New file.
4851 * gdb/features/arc/v1-aux.xml: Likewise.
4852 * gdb/features/arc/v1-core.c: Likewise.
4853 * gdb/features/arc/v1-core.xml: Likewise.
4854 * gdb/features/arc/v2-aux.c: Likewise.
4855 * gdb/features/arc/v2-aux.xml: Likewise.
4856 * gdb/features/arc/v2-core.c: Likewise.
4857 * gdb/features/arc/v2-core.xml: Likewise.
4858 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4859
3945d2d7
GM
48602020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4861 Andrew Burgess <andrew.burgess@embecosm.com>
4862
4863 PR m2/26372
fc5d6901 4864 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4865 an assert. Remove single element array indexing pattern as the
4866 MULTI_SUBSCRIPT support will handle this case too.
4867
2677f2d3
SM
48682020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4869
4870 * value.h (valprint_check_validity): Move declaration from
4871 here...
4872 * valprint.h (valprint_check_validity): ... to here.
4873
c426fddb
SM
48742020-08-24 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * debug.h: New file.
4877 * debug.c (debug_prefixed_vprintf): New function.
4878 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4879 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4880
1eb8556f
SM
48812020-08-24 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * infrun.h (infrun_debug_printf_1): New function declaration.
4884 (infrun_debug_printf): New macro.
4885 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4886 throughout.
4887 (infrun_debug_printf): New function.
4888 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4889 (handle_jit_event): Likewise.
4890
b8fff44e
MW
48912020-08-21 Mark Wielaard <mark@klomp.org>
4892
4893 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4894
d19c3068
SM
48952020-08-22 Simon Marchi <simon.marchi@efficios.com>
4896
4897 * frame.c (enum class frame_id_status): New.
4898 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4899 (fprintf_frame): Update.
4900 (compute_frame_id): Set frame id status to "computing" on entry.
4901 Set it back to "not_computed" on failure and to "computed" on
4902 success.
4903 (get_frame_id): Assert the frame id is not being computed.
4904 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4905 (create_new_frame): Likewise.
4906 (frame_cleanup_after_sniffer): Update assert.
4907
b70e516e
SM
49082020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4909
4910 * regcache.c (pid_ptid_regcache_map): New type.
4911 (target_ptid_regcache_map): Remove.
4912 (target_pid_ptid_regcache_map): New type.
4913 (regcaches): Change type to target_pid_ptid_regcache_map.
4914 (get_thread_arch_aspace_regcache): Update.
4915 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4916 case.
4917 (regcaches_size): Update.
4918 (regcache_count): Update.
4919 (registers_changed_ptid_target_pid_test): New.
4920 (_initialize_regcache): Register new test.
4921
cdd9148a
SM
49222020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4923
4924 * regcache.c (regcache_count): New.
4925 (struct regcache_test_data): New.
4926 (regcache_test_data_up): New.
4927 (populate_regcaches_for_test): New.
4928 (regcaches_test): Remove.
4929 (get_thread_arch_aspace_regcache_test): New.
4930 (registers_changed_ptid_all_test): New.
4931 (registers_changed_ptid_target_test): New.
4932 (registers_changed_ptid_target_ptid_test): New.
4933 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4934 (_initialize_regcache): Register new tests.
4935
dd125343
SM
49362020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4937
4938 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4939 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4940 gdbarch and aspace parameter. Use current inferior's aspace.
4941 Validate regcache's arch value.
4942 (regcaches_test): Update.
4943
3ee93972
SM
49442020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4945
4946 * regcache.c (regcaches_test): Call registers_changed.
4947
33bf4c5c
TBA
49482020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4949
4950 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4951
c2fd7fae
AKS
49522020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4953
4954 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4955 to find the end of prologue for flang compiled binaries.
4956 * arm-tdep.c (arm_skip_prologue): Likewise.
4957 * i386-tdep.c (i386_skip_prologue): Likewise.
4958 * producer.c (producer_is_llvm): New function.
4959 (producer_parsing_tests): Added new tests for clang/flang.
4960 * producer.h (producer_is_llvm): New declaration.
4961
9327494e
SM
49622020-08-18 Simon Marchi <simon.marchi@efficios.com>
4963
4964 * linux-nat.c (linux_nat_debug_printf): New function.
4965 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4966
d138725a
AM
49672020-08-18 Aaron Merey <amerey@redhat.com>
4968
4969 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4970 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4971 (CLIBS): Add DEBUGINFOD_LIBS.
4972
f9b11e6b
ST
49732020-08-17 Sergei Trofimovich <siarheit@google.com>
4974
4975 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4976 'gdbarch_num_regs'.
4977
3ae7ab99
TT
49782020-08-17 Tom Tromey <tromey@adacore.com>
4979
4980 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4981 ada_get_decoded_value returns NULL.
4982
b017825f
TT
49832020-08-17 Tom Tromey <tromey@adacore.com>
4984
4985 * python/py-inferior.c (infpy_search_memory): Use
4986 gdb_py_object_from_ulongest.
4987 * python/py-infevents.c (create_inferior_call_event_object)
4988 (create_memory_changed_event_object): Use
4989 gdb_py_object_from_ulongest.
4990 * python/py-linetable.c (ltpy_entry_get_pc): Use
4991 gdb_py_object_from_ulongest.
4992
7635cf79
SM
49932020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4994
4995 * loc.c (class symbol_needs_eval_context): Fix indentation.
4996
f54be24b
SM
49972020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4998
4999 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5000 bool.
5001
53d5a2a5
TV
50022020-08-17 Tom de Vries <tdevries@suse.de>
5003
5004 PR gdb/26393
5005 * gdbtypes.c (dump_dynamic_prop): New function.
5006 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5007
547ce8f0
TV
50082020-08-15 Tom de Vries <tdevries@suse.de>
5009
5010 PR backtrace/26390
5011 * stack.c (print_frame_args): Temporarily set the selected
5012 frame to FRAME while printing the frame's arguments.
5013
6ea815e7
PFC
50142020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5015
5016 PR breakpoints/26385
5017 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5018 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5019
6e562fa3
PFC
50202020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5021
5022 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5023 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5024 and >= to check return value instead of == -1 and != -1.
5025
d369b608
SM
50262020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5027
5028 * utils.h (class gdb_argv) <as_array_view>: New method.
5029 * utils.c (gdb_argv_as_array_view_test): New.
5030 (_initialize_utils): Register selftest.
5031 * maint.c (maintenance_selftest): Use the new method.
5032
b31488a3
KR
50332020-08-13 Kamil Rytarowski <n54@gmx.com>
5034
5035 * target.h (supports_dumpcore, dumpcore): New
5036 function declarations.
5037 * target.c (supports_dumpcore, dumpcore): New
5038 functions.
5039 * target-delegates.c: Rebuild.
5040 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5041 and target_dumpcore ().
5042
002a3166
AM
50432020-08-13 Aaron Merey <amerey@redhat.com>
5044
5045 * debuginfod-support.c: Replace global variables with user_data.
5046
ece5bc8a
SM
50472020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5048
5049 * maint.c (maintenance_selftest): Split args and pass array_view
5050 to run_tests.
5051
6d8a0a5e
LM
50522020-08-12 Luis Machado <luis.machado@linaro.org>
5053
5054 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5055 type's length.
5056 Use %s and pulongest to print the length.
5057
7cf663a9
PA
50582020-08-12 Pedro Alves <palves@redhat.com>
5059
5060 * NEWS: Move "Multi-target debugging support" item to the
5061 "Changes since GDB 9" section.
5062
27c7b875
PA
50632020-08-12 Pedro Alves <palves@redhat.com>
5064
5065 PR gdb/26336
5066 * progspace.c (program_space::remove_objfile): Invalidate the
5067 frame cache.
5068
1796a2a1
TV
50692020-08-11 Tom de Vries <tdevries@suse.de>
5070
5071 * MAINTAINERS: Mark ms1 as deleted.
5072
f8e3fe0d
LM
50732020-08-10 Luis Machado <luis.machado@linaro.org>
5074
5075 PR gdb/26310
5076
5077 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5078 act accordingly.
5079 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5080 movz/str/stur/stp skipping behavior.
5081
cc308722
LM
50822020-08-10 Luis Machado <luis.machado@linaro.org>
5083
5084 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5085 struct user_sve_header instead of struct sve_context.
5086
041d9819
SM
50872020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5088
5089 * read.h (dwarf2_fetch_die_loc_sect_off,
5090 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5091 `void *` parameter with function_view.
5092 * read.c (dwarf2_fetch_die_loc_sect_off,
5093 dwarf2_fetch_die_loc_cu_off): Likewise.
5094 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5095 (per_cu_dwarf_call): Adjust.
5096 (get_frame_address_in_block_wrapper): Remove.
5097 (indirect_synthetic_pointer): Adjust.
5098 (get_ax_pc): Remove.
5099 (dwarf2_compile_expr_to_ax): Adjust.
5100
38f8aa06
TV
51012020-08-08 Tom de Vries <tdevries@suse.de>
5102
5103 PR build/26344
5104 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5105 constructor.
5106 * regcache.c (get_thread_arch_aspace_regcache): Same.
5107
a52b3ae2
TT
51082020-08-07 Tom Tromey <tromey@adacore.com>
5109
5110 * ravenscar-thread.c
5111 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5112 New method.
5113 (ravenscar_thread_target::wait): Check
5114 runtime_initialized.
5115 (ravenscar_thread_target::prepare_to_store)
5116 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5117 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5118 (ravenscar_thread_target::stopped_by_watchpoint)
5119 (ravenscar_thread_target::stopped_data_address)
5120 (ravenscar_thread_target::core_of_thread): Use
5121 scoped_restore_current_thread and
5122 set_base_thread_from_ravenscar_task.
5123
0e29517d
TT
51242020-08-07 Tom Tromey <tromey@adacore.com>
5125
5126 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5127
592f9bd7
TT
51282020-08-07 Tom Tromey <tromey@adacore.com>
5129
5130 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5131 update_inferior_ptid before update_thread_list.
5132 (temporarily_change_regcache_ptid): New class.
5133 (ravenscar_thread_target::fetch_registers)
5134 (ravenscar_thread_target::store_registers)
5135 (ravenscar_thread_target::prepare_to_store): Use base thread when
5136 forwarding operation.
5137
39e2018a
TT
51382020-08-07 Tom Tromey <tromey@adacore.com>
5139
5140 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5141 "is_pid" case.
5142
2080266b
TT
51432020-08-07 Tom Tromey <tromey@adacore.com>
5144
5145 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5146 New methods.
5147 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5148 first.
5149 (ravenscar_thread_target::add_thread): Rename from
5150 ravenscar_add_thread.
5151 (ravenscar_thread_target::update_thread_list): Use a lambda.
5152 (ravenscar_thread_target::xfer_partial): New method.
5153
78c02f21
TT
51542020-08-07 Tom Tromey <tromey@adacore.com>
5155
5156 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5157 gdb::function_view.
5158 (iterate_over_live_ada_tasks): Change type of argument.
5159 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5160 of argument.
5161
d5d833af
TT
51622020-08-07 Tom Tromey <tromey@adacore.com>
5163
5164 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5165 Remove.
5166 (ravenscar_thread_target::extra_thread_info): Remove.
5167 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5168 defer to target beneath for non-Ravenscar threads.
5169
a8ac85bb
TT
51702020-08-07 Tom Tromey <tromey@adacore.com>
5171
5172 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5173 get_base_thread_from_ravenscar_task>: Now methods.
5174 <m_cpu_map>: New member.
5175 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5176 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5177 (ravenscar_thread_target::task_is_currently_active): Update.
5178 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5179 Now a method.
5180 (ravenscar_thread_target::add_active_thread): Put initial thread
5181 into the m_cpu_map.
5182
550ab58d
TT
51832020-08-07 Tom Tromey <tromey@adacore.com>
5184
5185 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5186 event_ptid.
5187
e9546579
TT
51882020-08-07 Tom Tromey <tromey@adacore.com>
5189
5190 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5191 runtime_initialized.
5192
3d4470e5
TT
51932020-08-07 Tom Tromey <tromey@adacore.com>
5194
5195 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5196 add_active_thread.
5197 (ravenscar_thread_target::add_active_thread): Now public.
5198 (ravenscar_inferior_created): Call add_active_thread after pushing
5199 the target.
5200
888bdb2b
SM
52012020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5202
5203 * regcache.c (ptid_regcache_map): New type.
5204 (target_ptid_regcache_map): New type.
5205 (regcaches): Change type to target_ptid_regcache_map.
5206 (get_thread_arch_aspace_regcache): Update to regcaches' new
5207 type.
5208 (regcache_thread_ptid_changed): Likewise.
5209 (registers_changed_ptid): Likewise.
5210 (regcaches_size): Likewise.
5211 (regcaches_test): Update.
5212 (regcache_thread_ptid_changed): Update.
5213 * regcache.h (regcache_up): New type.
5214 * gdbsupport/ptid.h (hash_ptid): New struct.
5215
b161a60d
SM
52162020-08-07 Simon Marchi <simon.marchi@efficios.com>
5217
5218 * observable.h (thread_ptid_changed): Add parameter
5219 `process_stratum_target *`.
5220 * infrun.c (infrun_thread_ptid_changed): Add parameter
5221 `process_stratum_target *` and use it.
5222 (selftests): New namespace.
5223 (infrun_thread_ptid_changed): New function.
5224 (_initialize_infrun): Register selftest.
5225 * regcache.c (regcache_thread_ptid_changed): Add parameter
5226 `process_stratum_target *` and use it.
5227 (regcache_thread_ptid_changed): New function.
5228 (_initialize_regcache): Register selftest.
5229 * thread.c (thread_change_ptid): Pass target to
5230 thread_ptid_changed observable.
5231
d2854d8d
CT
52322020-08-06 Caroline Tice <cmtice@google.com>
5233
fe4c3d43
SM
5234 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5235 (struct dwp_sections): Update field comments. Add loclists and
5236 rnglists fields.
5237 (struct virtual_v2_dwo_sections): Rename struct to
5238 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5239 size & offset fields for loclists and rnglists.
5240 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5241 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5242 skipping dummy type units.
5243 (create_dwp_hash_table): Update the large comment above the function to
5244 discuss Version 5 DWP files as well, with references. Update all the
5245 version checks in the function to check for version 5 as well. Add new
5246 section at the end to create dwp hash table for version 5.
5247 (create_dwp_v2_section): Rename function to
5248 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5249 Add V5 to error message text.
5250 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5251 into calls to create_dwp_v2_or_v5_section.
5252 (create_dwo_unit_in_dwp_v5): New function.
5253 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5254 check for version2; add else clause to handle version 5.
5255 (open_and_init_dwo_file): Add code to check dwarf version & only call
5256 create_debug_types_hash_table (with sections.types) if version is not 5;
5257 else call create_debug_type_hash_table, with sections.info.
5258 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5259 version 5.
5260 (dwarf2_locate_v5_dwp_sections): New function.
5261 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5262 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5263
159ed7d9
SM
52642020-08-06 Simon Marchi <simon.marchi@efficios.com>
5265
5266 * regcache.h (class regcache): Remove friend
5267 registers_changed_ptid.
5268 <regcache_thread_ptid_changed>: Remove.
5269 <regcaches>: Remove.
5270 * regcache.c (regcache::regcaches): Rename to...
5271 (regcaches): ... this. Make static.
5272 (get_thread_arch_aspace_regcache): Update.
5273 (regcache::regcache_thread_ptid_changed): Rename to...
5274 (regcache_thread_ptid_changed): ... this. Update.
5275 (class regcache_access): Remove.
5276 (regcaches_test): Update.
5277 (_initialize_regcache): Update.
5278 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5279 <forward_list>.
5280
174981ae
SM
52812020-08-06 Simon Marchi <simon.marchi@efficios.com>
5282
5283 * regcache.h (class regcache) <current_regcache>: Rename to...
5284 <regcaches>: ... this. Move doc here.
5285 * regcache.c (regcache::current_regcache) Rename to...
5286 (regcache::regcaches): ... this. Move doc to header.
5287 (get_thread_arch_aspace_regcache): Update.
5288 (regcache::regcache_thread_ptid_changed): Update.
5289 (registers_changed_ptid): Update.
5290 (class regcache_access) <current_regcache_size>: Rename to...
5291 <regcaches_size>: ... this.
5292 (current_regcache_test): Rename to...
5293 (regcaches_test): ... this.
5294 (_initialize_regcache): Update.
5295
ed908db6
VC
52962020-08-06 Victor Collod <vcollod@nvidia.com>
5297
5298 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5299
b5582ab7
KB
53002020-08-05 Kevin Buettner <kevinb@redhat.com>
5301
5302 * corelow.c (core_target::build_file_mappings): Don't output
5303 null pathname in warning.
5304
ea946b86
SM
53052020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5306
5307 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5308 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5309 gdb.dwarf2/dw2-single-line-discriminators.exp,
5310 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5311
57d02173
TT
53122020-08-05 Tom Tromey <tromey@adacore.com>
5313
5314 PR rust/26197:
5315 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5316 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5317 Fix off-by-one and type size errors in ordinary case.
5318
5555c86d
TV
53192020-08-05 Tom de Vries <tdevries@suse.de>
5320
5321 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5322 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5323
97916bfe
SM
53242020-08-04 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * frame.h (frame_id_p): Return bool.
5327 (frame_id_artificial_p): Return bool.
5328 (frame_id_eq): Return bool.
5329 (has_stack_frames): Return bool.
5330 (get_selected_frame): Fix typo in comment.
5331 (get_frame_pc_if_available): Return bool.
5332 (get_frame_address_in_block_if_available): Return bool.
5333 (get_frame_func_if_available): Return bool.
5334 (read_frame_register_unsigned): Return bool.
5335 (get_frame_register_bytes): Return bool.
5336 (safe_frame_unwind_memory): Return bool.
5337 (deprecated_frame_register_read): Return bool.
5338 (frame_unwinder_is): Return bool.
5339 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5340 bool.
5341 <this_id::p>: Likewise.
5342 <prev_p>: Likewise.
5343 (frame_stash_add): Return bool.
5344 (get_frame_id): Use bool.
5345 (frame_id_build_special) Use bool.
5346 (frame_id_build_unavailable_stack): Use bool.
5347 (frame_id_build): Use bool.
5348 (frame_id_p): Return bool, use true/false instead of 1/0.
5349 (frame_id_artificial_p): Likewise.
5350 (frame_id_eq): Likewise.
5351 (frame_id_inner): Likewise.
5352 (get_frame_func_if_available): Likewise.
5353 (read_frame_register_unsigned): Likewise.
5354 (deprecated_frame_register_read): Likewise.
5355 (get_frame_register_bytes): Likewise.
5356 (has_stack_frames): Likewise.
5357 (inside_main_func): Likewise.
5358 (inside_entry_func): Likewise.
5359 (get_frame_pc_if_available): Likewise.
5360 (get_frame_address_in_block_if_available): Likewise.
5361 (frame_unwinder_is): Likewise.
5362 (safe_frame_unwind_memory): Likewise.
5363 (frame_unwind_arch): Likewise.
5364
fedfee88
SM
53652020-08-04 Simon Marchi <simon.marchi@efficios.com>
5366
5367 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5368 type to cached_copy_status.
5369 (fprintf_frame): Adjust.
5370 (get_frame_func_if_available): Adjust.
5371 (frame_cleanup_after_sniffer): Adjust.
5372
6cfa9b59
MW
53732020-08-04 Mark Wielaard <mark@klomp.org>
5374
5375 * MAINTAINERS (Write After Approval): Update email address.
5376
66d6346b
SM
53772020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5378
5379 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5380 dynamic_prop::const_val.
5381
8a6d5e35
SM
53822020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5383
5384 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5385 dynamic_prop::kind.
5386
51d6067d
SM
53872020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5388
5389 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5390
b26e2ae7
JM
53912020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5392
5393 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5394
39791af2
JM
53952020-08-04 Weimin Pan <weimin.pan@oracle.com>
5396 Jose E. Marchesi <jose.marchesi@oracle.com>
5397
5398 * configure.tgt: Add entry for bpf-*-*.
5399 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5400 (ALLDEPFILES): Add bpf-tdep.c.
5401 * bpf-tdep.c: New file.
5402 * MAINTAINERS: Add bpf target and maintainer.
5403 * NEWS: Mention the support for the new target.
5404
521894aa
TV
54052020-08-04 Tom de Vries <tdevries@suse.de>
5406
5407 PR symtab/23270
5408 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5409 Error.
5410
5d6356e9
JB
54112020-08-03 John Baldwin <jhb@FreeBSD.org>
5412
5413 * syscalls/freebsd.xml: Regenerate.
5414
0cf82b81
JB
54152020-08-03 John Baldwin <jhb@FreeBSD.org>
5416
5417 * syscalls/update-freebsd.sh: Fix usage and year range.
5418
8f34b746
TV
54192020-08-03 Tom de Vries <tdevries@suse.de>
5420
5421 PR symtab/26333
5422 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5423 DW_LNE_lo_user/DW_LNE_hi_user range.
5424
5e500d33
SM
54252020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5426
5427 PR ada/26318
5428 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5429 kind.
5430
78319c15
TBA
54312020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5432
5433 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5434
4c55e970
TBA
54352020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5436
5437 * breakpoint.c (set_breakpoint_condition): Update the condition
5438 expressions after checking that the input condition string parses
5439 successfully and does not contain junk at the end.
5440
1e620590
TBA
54412020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5442
5443 * breakpoint.c (set_breakpoint_condition): Update the
5444 condition string after parsing the new condition successfully.
5445
c8693053
RO
54462020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5447
5448 * proc-api.c (_STRUCTURED_PROC): Don't define.
5449 * proc-events.c: Likewise.
5450 * proc-flags.c: Likewise.
5451 * proc-why.c: Likewise.
5452 * procfs.c: Likewise.
5453
5454 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5455 * configure, config.in: Regenerate.
5456
5a99adb8
TV
54572020-07-30 Tom de Vries <tdevries@suse.de>
5458
5459 PR build/26320
5460 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5461 m_red/m_green/m_blue in a union.
5462
8ba83e91
TV
54632020-07-29 Tom de Vries <tdevries@suse.de>
5464
5465 PR tdep/26280
5466 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5467
f75a0693
AB
54682020-07-28 Tom Tromey <tromey@adacore.com>
5469
5470 PR symtab/26270:
5471 * symtab.h (find_pc_partial_function_sym): Declare.
5472 * cli/cli-cmds.c (disassemble_command): Use
5473 find_pc_partial_function_sym. Check asm_demangle.
5474 * blockframe.c (cache_pc_function_sym): New global.
5475 (cache_pc_function_name): Remove.
5476 (clear_pc_function_cache): Update.
5477 (find_pc_partial_function_sym): New function, from
5478 find_pc_partial_function.
5479 (find_pc_partial_function): Rewrite using
5480 find_pc_partial_function_sym.
5481
16f3242c
TT
54822020-07-28 Tom Tromey <tromey@adacore.com>
5483
5484 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5485 help. Add usage.
5486
4888741a
TT
54872020-07-28 Tom Tromey <tromey@adacore.com>
5488
5489 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5490 <DW_OP_GNU_variable_value>: Cast to address type.
5491
4d46f402
KR
54922020-07-28 Kamil Rytarowski <n54@gmx.com>
5493
5494 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5495 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5496 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5497 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5498 (nbsd_get_siginfo_type): New.
5499 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5500 (_initialize_nbsd_tdep): New.
5501
d70f978b
L
55022020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5503
5504 PR binutils/26301
5505 * configure: Regenerated.
5506
377170fa
L
55072020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5508
5509 PR binutils/26301
5510 * configure: Regenerated.
5511
43d5901d
AB
55122020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5513
5514 * python/py-frame.c: Remove 'user-regs.h' include.
5515 (frapy_read_register): Rewrite to make use of
5516 gdbpy_parse_register_id.
5517 * python/py-registers.c (gdbpy_parse_register_id): New function,
5518 moved here from python/py-unwind.c. Updated the return type, and
5519 also accepts register descriptor objects.
5520 * python/py-unwind.c: Remove 'user-regs.h' include.
5521 (pyuw_parse_register_id): Moved to python/py-registers.c.
5522 (unwind_infopy_add_saved_register): Update to use
5523 gdbpy_parse_register_id.
5524 (pending_framepy_read_register): Likewise.
5525 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5526
14fa8fb3
AB
55272020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5528
5529 * python/py-registers.c: Add 'user-regs.h' include.
5530 (register_descriptor_iter_find): New function.
5531 (register_descriptor_iterator_object_methods): New static global
5532 methods array.
5533 (register_descriptor_iterator_object_type): Add pointer to methods
5534 array.
5535
ddce1758
JB
55362020-07-27 John Baldwin <jhb@FreeBSD.org>
5537
5538 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5539 for all architectures on FreeBSD 11.3 and later.
5540
a4089f52
TT
55412020-07-27 Tom Tromey <tromey@adacore.com>
5542
5543 * gcore.h (load_corefile): Don't declare.
5544
95420d30
TV
55452020-07-27 Tom de Vries <tdevries@suse.de>
5546
5547 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5548 * config.in: Regenerate.
5549 * configure: Regenerate.
5550
05a6b8c2
EZ
55512020-07-26 Eli Zaretskii <eliz@gnu.org>
5552
5553 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5554 ws2tcpip.h. When checking whether socklen_t type is defined, use
5555 ws2tcpip.h if it is available and sys/socket.h isn't.
5556 * configure: Regenerate.
5557 * config.in: Regenerate.
5558
e79eb02f
AB
55592020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5560
5561 PR fortran/23051
5562 PR fortran/26139
5563 * valops.c (value_ind): Pass address to
5564 readjust_indirect_value_type.
5565 * value.c (readjust_indirect_value_type): Make parameter
5566 non-const, and add extra address parameter. Resolve original type
5567 before using it.
5568 * value.h (readjust_indirect_value_type): Update function
5569 signature and comment.
5570
876518dd
TV
55712020-07-25 Tom de Vries <tdevries@suse.de>
5572
5573 PR symtab/26243
5574 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5575 entries.
5576
f6720b1c
AM
55772020-07-24 Aaron Merey <amerey@redhat.com>
5578
5579 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5580 * configure: Rebuild.
5581
513487e1
KB
55822020-07-23 Kevin Buettner <kevinb@redhat.com>
5583
5584 PR corefiles/26294
5585 * corelow.c (_initialize_corelow): Add period to help text
5586 for "maintenance print core-file-backed-mappings".
5587
e7bc9db8
PA
55882020-07-23 Pedro Alves <pedro@palves.net>
5589
5590 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5591 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5592 meanwhile.
5593 * frame.c (frame_cache_generation, get_frame_cache_generation):
5594 New.
5595 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5596 (get_prev_frame_if_no_cycle): On exception, don't touch
5597 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5598 * frame.h (get_frame_cache_generation): Declare.
5599
90fcc466
TV
56002020-07-23 Tom de Vries <tdevries@suse.de>
5601
5602 PR tui/26282
5603 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5604 New default constructor.
5605
78344df7
AB
56062020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5607
5608 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5609 exclude non-statement entries.
5610
b089853a
KB
56112020-07-22 Kevin Buettner <kevinb@redhat.com>
5612
5613 * NEWS (New commands): Mention new command
5614 "maintenance print core-file-backed-mappings".
5615
09c2f5d4
KB
56162020-07-22 Kevin Buettner <kevinb@redhat.com>
5617
5618 * corelow.c (gdbcmd.h): Include.
5619 (core_target::info_proc_mappings): New method.
5620 (get_current_core_target): New function.
5621 (maintenance_print_core_file_backed_mappings): New function.
5622 (_initialize_corelow): Add core-file-backed-mappings to
5623 "maint print" commands.
5624
9c5ec5c2 56252020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5626
9c5ec5c2
KB
5627 * linux-tdep.c (dump_note_entry_p): New function.
5628 (linux_dump_mapping_p_ftype): New typedef.
5629 (linux_find_memory_regions_full): Add new parameter,
5630 should_dump_mapping_p.
5631 (linux_find_memory_regions): Adjust call to
5632 linux_find_memory_regions_full.
5633 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5634 call to linux_find_memory_regions_full.
5635
db082f59
KB
56362020-07-22 Kevin Buettner <kevinb@redhat.com>
5637
5638 * corelow.c (solist.h, unordered_map): Include.
5639 (class core_target): Add field m_core_file_mappings and
5640 method build_file_mappings.
5641 (core_target::core_target): Call build_file_mappings.
5642 (core_target::~core_target): Free memory associated with
5643 m_core_file_mappings.
5644 (core_target::build_file_mappings): New method.
5645 (core_target::xfer_partial): Use m_core_file_mappings
5646 for memory transfers.
5647 * linux-tdep.c (linux_read_core_file_mappings): New
5648 function.
5649 (linux_core_info_proc_mappings): Rewrite to use
5650 linux_read_core_file_mappings.
5651 (linux_init_abi): Register linux_read_core_file_mappings.
5652
7e183d27
KB
56532020-07-22 Kevin Buettner <kevinb@redhat.com>
5654
5655 * arch-utils.c (default_read_core_file_mappings): New function.
5656 * arch-utils.c (default_read_core_file_mappings): Declare.
5657 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5658 * gdbarch.h, gdbarch.c: Regenerate.
5659
2735d421
KB
56602020-07-22 Kevin Buettner <kevinb@redhat.com>
5661
5662 PR corefiles/25631
5663 * corelow.c (core_target:xfer_partial): Revise
5664 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5665 case after first checking the stratum beneath the core
5666 target.
5667 (has_all_memory): Return true.
5668 * target.c (raw_memory_xfer_partial): Revise comment
5669 regarding use of has_all_memory.
5670
e56cb451
KB
56712020-07-22 Kevin Buettner <kevinb@redhat.com>
5672
5673 * exec.h (section_table_xfer_memory): Revise declaration,
5674 replacing section name parameter with an optional callback
5675 predicate.
5676 * exec.c (section_table_xfer_memory): Likewise.
5677 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5678 of section_table_xfer_memory.
5679
32fa152e
TT
56802020-07-22 Tom Tromey <tromey@adacore.com>
5681
5682 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5683 lookup_symbol_search_name.
5684
a67a1c41
AB
56852020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5686
5687 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5688 redundant local variable.
5689 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5690 reference, not pointer, update code accordingly.
5691
a7b4ff4f
SM
56922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5693 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5694
5695 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5696 * jit.c (jit_breakpoint_re_set_internal): Use the
5697 `skip_jit_symbol_lookup` field.
5698
2340e834
SM
56992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5700 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5701
5702 * jit.c (jit_read_descriptor): Define the descriptor address once,
5703 use twice.
5704 (jit_breakpoint_deleted): Move the declaration of the loop variable
5705 `iter` into the loop header.
5706 (jit_breakpoint_re_set_internal): Move the declaration of the local
5707 variable `objf_data` to the first point of definition.
5708 (jit_event_handler): Move the declaration of local variables
5709 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5710 Rename `objf` to `jited`.
5711
c1072906
SM
57122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5713
5714 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5715 Remove.
5716 * jit.c (get_jiter_objfile_data): Update.
5717
c8474dc3
TBA
57182020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5719 Simon Marchi <simon.marchi@polymtl.ca>
5720
5721 * jit.c (struct jit_program_space_data): Remove.
5722 (jit_program_space_key): Remove.
5723 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5724 stuff.
5725 (get_jit_program_space_data): Remove.
5726 (jit_breakpoint_deleted): Iterate on all of the program space's
5727 objfiles.
5728 (jit_inferior_init): Likewise.
5729 (jit_breakpoint_re_set_internal): Likewise. Also change return
5730 type to void.
5731 (jit_breakpoint_re_set): Pass current_program_space to
5732 jit_breakpoint_re_set_internal.
5733
77208eb7
SM
57342020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5735
5736 * jit.h (struct jiter_objfile_data) <cached_code_address,
5737 jit_breakpoint>: Move to here from ...
5738 * jit.c (jit_program_space_data): ... here.
5739 (jiter_objfile_data::~jiter_objfile_data): Update.
5740 (jit_breakpoint_deleted): Update.
5741 (jit_breakpoint_re_set_internal): Update.
5742
8c1c720f
SM
57432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5744
5745 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5746 checks.
5747 (jit_read_descriptor): Remove NULL check.
5748 (jit_event_handler): Add an assertion.
5749
0e74a041
SM
57502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5751
5752 * jit.h (struct jit_objfile_data): Split into...
5753 (struct jiter_objfile_data): ... this ...
5754 (struct jited_objfile_data): ... and this.
5755 * objfiles.h (struct objfile) <jit_data>: Remove.
5756 <jiter_data, jited_data>: New fields.
5757 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5758 (jiter_objfile_data::~jiter_objfile_data): ... this.
5759 (get_jit_objfile_data): Rename to ...
5760 (get_jiter_objfile_data): ... this.
5761 (add_objfile_entry): Update.
5762 (jit_read_descriptor): Use get_jiter_objfile_data.
5763 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5764 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5765 (jit_inferior_exit_hook): Use objfile's jited_data field.
5766
238b5c9f
SM
57672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5768
5769 * jit.h: Forward-declare `struct minimal_symbol`.
5770 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5771 constructor, destructor, and an objfile* field.
5772 * jit.c (jit_objfile_data): Remove.
5773 (struct jit_objfile_data): Migrate from here to jit.h.
5774 (jit_objfile_data::~jit_objfile_data): New destructor
5775 implementation with code moved from free_objfile_data.
5776 (free_objfile_data): Delete.
5777 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5778 (jit_find_objf_with_entry_addr): Ditto.
5779 (jit_inferior_exit_hook): Ditto.
5780 (_initialize_jit): Remove the call to
5781 register_objfile_data_with_cleanup.
5782 * objfiles.h (struct objfile) <jit_data>: New field.
5783
fe053b9e
TBA
57842020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5785
5786 * jit.h: Forward-declare `struct objfile`.
5787 (jit_event_handler): Add a second parameter, the JITer objfile.
5788 * jit.c (jit_read_descriptor): Change the signature to take the
5789 JITer objfile as an argument instead of the jit_program_space_data.
5790 (jit_inferior_init): Update the call to jit_read_descriptor.
5791 (jit_event_handler): Use the new JITer objfile argument when calling
5792 jit_read_descriptor.
5793 * breakpoint.c (handle_jit_event): Update the call to
5794 jit_event_handler to pass the JITer objfile.
5795
4cec0c66
JB
57962020-07-21 John Baldwin <jhb@FreeBSD.org>
5797
5798 * gdbarch.c: Regenerate.
5799 * gdbarch.h: Regenerate.
5800 * gdbarch.sh (handle_segmentation_fault): Remove method.
5801 * infrun.c (handle_segmentation_fault): Remove.
5802 (print_signal_received_reason): Remove call to
5803 handle_segmentation_fault.
5804
0e42f66a
JB
58052020-07-21 John Baldwin <jhb@FreeBSD.org>
5806
5807 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5808 Rename to sparc64_linux_report_signal_info and add siggnal
5809 argument.
5810 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5811 instead of sparc64_linux_handle_segmentation_fault.
5812
77bdfeb2
JB
58132020-07-21 John Baldwin <jhb@FreeBSD.org>
5814
5815 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5816 i386_linux_report_signal_info instead of
5817 i386_linux_handle_segmentation_fault.
5818 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5819 to i386_linux_report_signal_info and add siggnal argument.
5820 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5821 of i386_linux_handle_segmentation_fault.
5822 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5823 to i386_linux_report_signal_info and add siggnal argument.
5824
ad97bfc5
JB
58252020-07-21 John Baldwin <jhb@FreeBSD.org>
5826
5827 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5828 hook if present.
5829
272bb05c
JB
58302020-07-21 John Baldwin <jhb@FreeBSD.org>
5831
5832 * gdbarch.c: Regenerate.
5833 * gdbarch.h: Regenerate.
5834 * gdbarch.sh (report_signal_info): New method.
5835 * infrun.c (print_signal_received_reason): Invoke gdbarch
5836 report_signal_info hook if present.
5837
baf8791e
AB
58382020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5839
5840 * python/py-registers.c : Add 'unordered_map' include.
5841 (gdbpy_new_reggroup): Renamed to...
5842 (gdbpy_get_reggroup): ...this. Update to only create register
5843 group descriptors when needed.
5844 (gdbpy_reggroup_iter_next): Update.
5845
f7306dac
AB
58462020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5847
5848 * python/py-registers.c (gdbpy_register_object_data): New static
5849 global.
5850 (gdbpy_register_object_data_init): New function.
5851 (gdbpy_new_register_descriptor): Renamed to...
5852 (gdbpy_get_register_descriptor): ...this, and update to reuse
5853 existing register descriptors where possible.
5854 (gdbpy_register_descriptor_iter_next): Update.
5855 (gdbpy_initialize_registers): Register new gdbarch data.
5856
05c309a8
SM
58572020-07-21 Simon Marchi <simon.marchi@efficios.com>
5858
5859 * linux-nat.c (stopped_pids): Make static.
5860
d1fd641e
SM
58612020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5862
5863 PR ada/26235
5864 * gdbtypes.c (ada_discrete_type_low_bound,
5865 ada_discrete_type_high_bound): Handle undefined bounds.
5866
1de14d77
KR
58672020-07-21 Kamil Rytarowski <n54@gmx.com>
5868
5869 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5870 declaration.
5871 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5872 function.
5873
ed810cc7
JB
58742020-07-20 John Baldwin <jhb@FreeBSD.org>
5875
5876 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5877 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5878 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5879 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5880 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5881 method.
5882
ae5369e7
LC
58832020-07-20 Ludovic Courtès <ludo@gnu.org>
5884
5885 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5886 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5887 which are deprecated in Guile 3.0.
5888 * configure.ac (try_guile_versions): Add "guile-3.0".
5889 * configure (try_guile_versions): Regenerate.
5890 * NEWS: Update entry.
5891
68cf161c
LC
58922020-07-20 Ludovic Courtès <ludo@gnu.org>
5893 Doug Evans <dje@google.com>
5894
5895 PR gdb/21104
5896 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5897 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5898 USING_GUILE_BEFORE_2_2.
5899 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5900 Change type to 'scm_t_port_type *'.
5901 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5902 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5903 parameter and honor it. Update callers.
5904 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5905 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5906 functions.
5907 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5908 USING_GUILE_BEFORE_2_2.
5909 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5910 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5911 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5912 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5913 and 'SCM_PORT_TYPE'.
5914 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5915 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5916 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5917 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5918 [!USING_GUILE_BEFORE_2_2]: New functions.
5919 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5920 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5921 'gdbscm_memory_port_read'.
5922 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5923 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5924 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5925 function.
5926 (ioscm_init_memory_port): Remove.
5927 (ioscm_init_memory_port_stream): New function
5928 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5929 function.
5930 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5931 Return scm_from_uint (0).
5932 (gdbscm_set_memory_port_read_buffer_size_x)
5933 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5934 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5935 Return scm_from_uint (0).
5936 (gdbscm_set_memory_port_write_buffer_size_x)
5937 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5938 * configure.ac (try_guile_versions): Add "guile-2.2".
5939 * configure: Regenerate.
5940 * NEWS: Add entry.
5941
aee91db3
TT
59422020-07-18 Tom Tromey <tom@tromey.com>
5943
5944 * linux-nat.c (linux_multi_process): Remove.
5945 (linux_nat_target::supports_multi_process): Return true.
5946
0e267416
AB
59472020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5948
5949 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5950 (riscv_lookup_target_description): Return pointer out of
5951 unique_ptr.
5952 * target-descriptions.c (allocate_target_description): Add
5953 comment.
5954 (target_desc_deleter::operator()): Likewise.
5955 * target-descriptions.h (struct target_desc_deleter): Moved to
5956 gdbsupport/tdesc.h.
5957 (target_desc_up): Likewise.
5958
f80c8ec4
TT
59592020-07-17 Tom Tromey <tromey@adacore.com>
5960
5961 * linux-nat.c (linux_nat_target::supports_non_stop)
5962 (linux_nat_target::always_non_stop_p): Use "true".
5963 (linux_nat_target::supports_disable_randomization): Use "true" and
5964 "false".
5965
d0ce17d8
CT
59662020-07-16 Caroline Tice <cmtice@google.com>
5967
5968 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5969 (RNGLIST_HEADER_SIZE64): New constant definition.
5970 (struct dwop_section_names): Add rnglists_dwo.
5971 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5972 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5973 (struct dwo_sections): Add rnglists field.
5974 (read_attribut_reprocess): Add tag parameter.
5975 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5976 (cu_debug_rnglists_section): New function (decl & definition).
5977 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5978 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5979 die whose range is being checked; get rnglist section from
5980 cu_debug_rnglists_section, to get from either objfile or dwo file as
5981 appropriate. Add cases for DW_RLE_base_addressx,
5982 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5983 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5984 test inside if-condition and updating complaint message.
5985 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5986 dwarf2_rnglists_process.
5987 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5988 dwarf2_ranges_process.
5989 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5990 need_ranges_base and update comment appropriately. Also pass die tag
5991 to dwarf2_ranges_read.
5992 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5993 need_ranges_base and update comment appropriately. Also pass die tag
5994 to dwarf2_ranges_process.
5995 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5996 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5997 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5998 need_ranges_base and update comment appropriately. Also pass die tag
5999 to read_attribute_reprocess and dwarf2_ranges_read.
6000 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6001 and update function comment appropriately.
6002 (read_loclist_index): Call read_loclists_rnglists_header instead of
6003 read_loclist_header.
6004 (read_rnglist_index): New function.
6005 (read_attribute_reprocess): Add tag parameter. Add code for
6006 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6007 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6008
3dcc261c
AB
60092020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6010
6011 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6012 being resolved.
6013
ccb9eba6
AB
60142020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6015
6016 * arch-utils.c (show_architecture): Update formatting of messages.
6017
cf88be68
SM
60182020-07-12 Simon Marchi <simon.marchi@efficios.com>
6019
6020 * gdbtypes.h (struct type) <bounds>: Handle array and string
6021 types.
6022 * ada-lang.c (assign_aggregate): Use type::bounds on
6023 array/string type.
6024 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6025 * c-varobj.c (c_number_of_children): Likewise.
6026 (c_describe_child): Likewise.
6027 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6028 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6029 (f_type_print_base): Likewise.
6030 * f-valprint.c (f77_array_offset_tbl): Likewise.
6031 (f77_get_upperbound): Likewise.
6032 (f77_print_array_1): Likewise.
6033 * guile/scm-type.c (gdbscm_type_range): Likewise.
6034 * m2-typeprint.c (m2_array): Likewise.
6035 (m2_is_long_set_of_type): Likewise.
6036 * m2-valprint.c (get_long_set_bounds): Likewise.
6037 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6038 * python/py-type.c (typy_range): Likewise.
6039 * rust-lang.c (rust_internal_print_type): Likewise.
6040 * type-stack.c (type_stack::follow_types): Likewise.
6041 * valarith.c (value_subscripted_rvalue): Likewise.
6042 * valops.c (value_cast): Likewise.
6043
509971ae
SM
60442020-07-12 Simon Marchi <simon.marchi@efficios.com>
6045
6046 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6047 callers to use the equivalent accessor methods.
6048
107406b7
SM
60492020-07-12 Simon Marchi <simon.marchi@efficios.com>
6050
6051 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6052 (struct type) <bit_stride>: New method.
6053 (TYPE_BIT_STRIDE): Remove.
6054 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6055
bb789949
SM
60562020-07-12 Simon Marchi <simon.marchi@efficios.com>
6057
6058 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6059 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6060 callers to use the equivalent accessor methods instead.
6061
39498edb
SM
60622020-07-12 Simon Marchi <simon.marchi@efficios.com>
6063
6064 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6065 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6066 callers to use the equivalent accessor methods instead.
6067
3b606f38
SM
60682020-07-12 Simon Marchi <simon.marchi@efficios.com>
6069
6070 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6071 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6072 to use dynamic_prop::kind.
6073
064d9cb9
SM
60742020-07-12 Simon Marchi <simon.marchi@efficios.com>
6075
6076 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6077 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6078 to get the bound property's kind and check against
6079 PROP_UNDEFINED.
6080
5537ddd0
SM
60812020-07-12 Simon Marchi <simon.marchi@efficios.com>
6082
6083 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6084 all callers to use type::range_bounds followed by
6085 dynamic_prop::{low,high}.
6086
8c2e4e06
SM
60872020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6088
6089 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6090 const_val, set_const_val, baton, set_locexpr, set_loclist,
6091 set_addr_offset, variant_parts, set_variant_parts,
6092 original_type, set_original_type>: New methods.
6093 <kind>: Rename to...
6094 <m_kind>: ... this. Update all users to use the new methods
6095 instead.
6096 <data>: Rename to...
6097 <m_data>: ... this. Update all users to use the new methods
6098 instead.
6099
7c6f2712
SM
61002020-07-12 Simon Marchi <simon.marchi@efficios.com>
6101
6102 * gdbtypes.c (get_discrete_bounds): Return failure if
6103 the range type's bounds are not both defined and constant
6104 values.
6105 (get_array_bounds): Update comment. Remove undefined bound check.
6106
599088e3
SM
61072020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6108
6109 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6110 the type::bounds method directly.
6111
c4dfcb36
SM
61122020-07-12 Simon Marchi <simon.marchi@efficios.com>
6113
6114 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6115 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6116 are used to set the range type's bounds to use set_bounds.
6117
0a278aa7
PW
61182020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6119
6120 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6121
cce20f10
PA
61222020-07-10 Pedro Alves <pedro@palves.net>
6123
6124 * gdbthread.h (inferior_ref): Define.
6125 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6126 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6127 * thread.c
6128 (scoped_restore_current_thread::restore):
6129 Adjust to gdb::ref_ptr.
6130 (scoped_restore_current_thread::~scoped_restore_current_thread):
6131 Remove manual decref handling.
6132 (scoped_restore_current_thread::scoped_restore_current_thread):
6133 Adjust to use
6134 inferior_ref::new_reference/thread_info_ref::new_reference.
6135 Incref the thread before calling get_frame_id instead of after.
6136 Let TARGET_CLOSE_ERROR propagate.
6137
6d7aa592
PA
61382020-07-10 Pedro Alves <pedro@palves.net>
6139
6140 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6141 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6142 NOT_AVAILABLE_ERROR.
6143 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6144 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6145
b3e3a4c1
SM
61462020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6147 Pedro Alves <pedro@palves.net>
6148
6149 PR gdb/26199
6150 * infrun.c (threads_are_resumed_pending_p): Delete.
6151 (do_target_wait): Remove threads_are_executing and
6152 threads_are_resumed_pending_p checks from the inferior_matches
6153 lambda. Update comments.
6154
d6cc5d98
PA
61552020-07-10 Pedro Alves <pedro@palves.net>
6156
6157 PR gdb/26199
6158 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6159 executing threads.
6160
7d3badc6
PA
61612020-07-10 Pedro Alves <pedro@palves.net>
6162
6163 PR gdb/26199
6164 * infrun.c (handle_no_resumed): Handle multiple targets.
6165
42bd97a6
PA
61662020-07-10 Pedro Alves <pedro@palves.net>
6167
6168 PR gdb/26199
6169 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6170 target_is_async_p.
6171
43667cc6
PA
61722020-07-10 Pedro Alves <pedro@palves.net>
6173
6174 PR gdb/26199
6175 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6176 threads, not all threads.
6177
96118d11
PA
61782020-07-10 Pedro Alves <pedro@palves.net>
6179
6180 PR gdb/26199
6181 * remote.c (remote_target::open_1): Pass remote target pointer as
6182 data to create_async_event_handler.
6183 (remote_async_inferior_event_handler): Mark async event handler
6184 before returning if the remote target still has either pending
6185 events or unacknowledged notifications.
6186
54904d81
JB
61872020-07-10 John Baldwin <jhb@FreeBSD.org>
6188
6189 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6190 declaration.
6191 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6192 function.
6193
f37e5866
JB
61942020-07-09 John Baldwin <jhb@FreeBSD.org>
6195
6196 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6197 inferior_ptid.
6198
fc238d4a
JB
61992020-07-09 John Baldwin <jhb@FreeBSD.org>
6200
6201 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6202 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6203 AT_FREEBSD_PS_STRINGS.
6204
6e2469ff
HD
62052020-07-08 Hannes Domani <ssbssa@yahoo.de>
6206
6207 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6208 of debugfile path on Windows.
6209
d1076c41
JB
62102020-07-08 John Baldwin <jhb@FreeBSD.org>
6211
6212 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6213 argument to 'data'.
6214
15f3b077
TT
62152020-07-08 Tom Tromey <tromey@adacore.com>
6216
6217 * ada-lang.c (ada_exception_message_1): Use read_memory.
6218
9fc501fd
AB
62192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6220
6221 PR python/22748
6222 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6223 special handling for inline frames.
6224 * findvar.c (value_of_register_lazy): Skip inline frames when
6225 creating lazy register values.
6226 * frame.c (frame_id_computed_p): Delete definition.
6227 * frame.h (frame_id_computed_p): Delete declaration.
6228
64cb3757
AB
62292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6230
6231 * NEWS: Mention additions to Python API.
6232 * python/py-arch.c (archpy_register_groups): New function.
6233 (arch_object_methods): Add 'register_groups' method.
6234 * python/py-registers.c (reggroup_iterator_object): New struct.
6235 (reggroup_object): New struct.
6236 (gdbpy_new_reggroup): New function.
6237 (gdbpy_reggroup_to_string): New function.
6238 (gdbpy_reggroup_name): New function.
6239 (gdbpy_reggroup_iter): New function.
6240 (gdbpy_reggroup_iter_next): New function.
6241 (gdbpy_new_reggroup_iterator): New function
6242 (gdbpy_initialize_registers): Register new types.
6243 (reggroup_iterator_object_type): Define new Python type.
6244 (gdbpy_reggroup_getset): New static global.
6245 (reggroup_object_type): Define new Python type.
6246 * python/python-internal.h
6247
0f767f94
AB
62482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6249
6250 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6251 * python/py-arch.c (archpy_registers): New function.
6252 (arch_object_methods): Add 'registers' method.
6253 * python/py-registers.c: New file.
6254 * python/python-internal.h
6255 (gdbpy_new_register_descriptor_iterator): Declare.
6256 (gdbpy_initialize_registers): Declare.
6257 * python/python.c (do_start_initialization): Call
6258 gdbpy_initialize_registers.
6259 * NEWS: Mention additions to the Python API.
6260
87dbc774
AB
62612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 * NEWS: Mention new Python API method.
6264 * python/py-unwind.c (pending_framepy_architecture): New function.
6265 (pending_frame_object_methods): Add architecture method.
6266
3bc98c0c
AB
62672020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6268
6269 * gdbarch.c: Regenerate.
6270 * gdbarch.h: Regenerate.
6271 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6272 (gdbarch_data): Use internal_error for the case where
6273 deprecated_set_gdbarch_data was originally needed.
6274 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6275 and use passed in obstack.
6276 (libunwind_frame_set_descr): Should no longer get back NULL from
6277 gdbarch_data.
6278 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6279 type.
6280 * user-regs.c (user_regs_init): Update parameters, and use passed
6281 in obstack.
6282 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6283 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6284
d8cc8af6
TV
62852020-07-06 Tom de Vries <tdevries@suse.de>
6286
6287 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6288 End-Of-Sequence in lte_is_less_than.
6289 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6290 "gdb: Don't reorder line table entries too much when sorting".
6291
947f7597
TV
62922020-07-06 Tom de Vries <tdevries@suse.de>
6293
6294 PR tui/26205
6295 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6296
1e7c1b22
TV
62972020-07-05 Tom de Vries <tdevries@suse.de>
6298
6299 PR build/26187
6300 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6301 std::uncaught_exceptions instead of deprecated
6302 std::uncaught_exception.
6303
a36158ec
SM
63042020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6305
6306 * macroexp.h (macro_stringify): Return
6307 gdb::unique_xmalloc_ptr<char>.
6308 * macroexp.c (macro_stringify): Likewise.
6309 * macrotab.c (fixup_definition): Update.
6310
14d960c8
SM
63112020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6312
6313 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6314 (lex_one_token): Update.
6315 * macroexp.c (struct macro_buffer) <release>: Return
6316 gdb::unique_xmalloc_ptr<char>.
6317 (macro_stringify): Update.
6318 (macro_expand): Update.
6319 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6320 * macroexp.h (macro_expand_next): Likewise.
6321
211d5b1c
SM
63222020-07-02 Simon Marchi <simon.marchi@efficios.com>
6323
6324 * macroexp.h (macro_lookup_ftype): Remove.
6325 (macro_expand, macro_expand_once, macro_expand_next): Remove
6326 lookup function parameters, add scope parameter.
6327 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6328 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6329 * macroscope.h (standard_macro_lookup): Change parameter type
6330 to macro_scope.
6331 * macroscope.c (standard_macro_lookup): Likewise.
6332 * c-exp.y (lex_one_token): Update.
6333 * macrocmd.c (macro_expand_command): Likewise.
6334 (macro_expand_once_command): Likewise.
6335
b1a35af2
SM
63362020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6337
6338 * inf-loop.c (inferior_event_handler): Remove client_data param.
6339 * inf-loop.h (inferior_event_handler): Likewise.
6340 * infcmd.c (step_1): Adjust.
6341 * infrun.c (proceed): Adjust.
6342 (fetch_inferior_event): Remove client_data param.
6343 (infrun_async_inferior_event_handler): Adjust.
6344 * infrun.h (fetch_inferior_event): Remove `void *` param.
6345 * linux-nat.c (handle_target_event): Adjust.
6346 * record-btrace.c (record_btrace_handle_async_inferior_event):
6347 Adjust.
6348 * record-full.c (record_full_async_inferior_event_handler):
6349 Adjust.
6350 * remote.c (remote_async_inferior_event_handler): Adjust.
6351
1cdf9e33
TT
63522020-07-01 Tom Tromey <tom@tromey.com>
6353
6354 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6355 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6356
32c1e210
TT
63572020-07-01 Tom Tromey <tom@tromey.com>
6358
6359 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6360 tui_gen_win_info.
6361 (tui_win_info::make_window): Merge with
6362 tui_gen_win_info::make_window.
6363 (tui_win_info::make_visible): Move from tui_gen_win_info.
6364 * tui/tui-win.c (tui_win_info::max_width): Move from
6365 tui_gen_win_info.
6366 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6367 type.
6368 <window_factory>: Likewise.
6369 * tui/tui-layout.c (tui_win_info::resize): Move from
6370 tui_gen_win_info.
6371 (make_standard_window): Change return type.
6372 (get_locator_window, tui_get_window_by_name): Likewise.
6373 (tui_layout_window::apply): Remove a cast.
6374 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6375 (struct tui_win_info): Merge with tui_gen_win_info.
6376 (struct tui_gen_win_info): Remove.
6377
a30cb6da
TT
63782020-07-01 Tom Tromey <tom@tromey.com>
6379
6380 * tui/tui-stack.h (struct tui_locator_window): Derive from
6381 tui_win_info.
6382 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6383 <can_box>: New method.
6384
1eb2161f
TT
63852020-07-01 Tom Tromey <tom@tromey.com>
6386
6387 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6388
7134f2eb
TT
63892020-07-01 Tom Tromey <tom@tromey.com>
6390
6391 * tui/tui-regs.c (tui_data_window::display_registers_from)
6392 (tui_data_window::display_registers_from)
6393 (tui_data_window::first_data_item_displayed)
6394 (tui_data_window::delete_data_content_windows): Update.
6395 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6396 Remove.
6397 (tui_data_window::check_register_values): Update.
6398 (tui_data_item_window::rerender): Add parameters. Update.
6399 (tui_data_item_window::refresh_window): Remove.
6400 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6401 virtual.
6402 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6403 tui_gen_win_info.
6404 <refresh_window, max_height, min_height>: Remove.
6405 <rerender>: Add parameters.
6406 <x, y, visible>: New members.
6407 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6408 <m_item_width>: New member.
6409
22b7b041
TT
64102020-07-01 Tom Tromey <tom@tromey.com>
6411
6412 * tui/tui-regs.c (tui_data_window::show_register_group)
6413 (tui_data_window::check_register_values): Update.
6414 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6415 from item_no.
6416
c9753adb
TT
64172020-07-01 Tom Tromey <tom@tromey.com>
6418
6419 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6420 useless "if".
6421
9ab26b4a
TT
64222020-07-01 Tom Tromey <tom@tromey.com>
6423
6424 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6425 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6426
e555083f
TT
64272020-07-01 Tom Tromey <tom@tromey.com>
6428
6429 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6430 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6431 (struct tui_line_or_address): Move from tui-data.h.
6432 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6433 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6434 (tui_cmd_window, tui_source_window_base, tui_source_window)
6435 (tui_disasm_window): Don't declare.
6436 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6437 to tui-winsource.h.
6438 (SINGLE_KEY): Move to tui-stack.c.
6439
7a02bab7
TT
64402020-07-01 Tom Tromey <tom@tromey.com>
6441
6442 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6443 std::string.
6444 * tui/tui-regs.c (class tab_expansion_file): New.
6445 (tab_expansion_file::write): New method.
6446 (tui_register_format): Change return type. Use
6447 tab_expansion_file.
6448 (tui_get_register, tui_data_window::display_registers_from)
6449 (tui_data_item_window::rerender): Update.
6450 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6451 * tui/tui-io.c (tui_expand_tabs): Remove.
6452
ea68593b
TT
64532020-07-01 Tom Tromey <tom@tromey.com>
6454
6455 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6456
a8caed5d
FS
64572020-07-01 Fangrui Song <maskray@google.com>
6458
6459 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6460
9cdf9820
AKS
64612020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6462
6463 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6464 forms for DW_AT_associated and DW_AT_allocated attributes,
6465 which is already checked in function attr_to_dynamic_prop.
6466
a1520ad8
TT
64672020-06-30 Tom Tromey <tromey@adacore.com>
6468
6469 * dwarf2/read.c (quirk_rust_enum): Correctly call
6470 alloc_rust_variant for default-less enum.
6471
5ac58899
TT
64722020-06-30 Tom Tromey <tromey@adacore.com>
6473
6474 PR build/26183:
6475 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6476 gdb::to_string.
6477
19b187a9
SM
64782020-06-29 Simon Marchi <simon.marchi@efficios.com>
6479
6480 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6481 * gdbarch.h: Re-generate.
6482
cd4c4c07
TT
64832020-06-28 Tom Tromey <tom@tromey.com>
6484
6485 * command.h (cmd_types): Remove.
6486 (cmd_type): Don't declare.
6487 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6488 typedef.
6489 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6490 * cli/cli-decode.c (cmd_type): Remove.
6491
05779d57
PA
64922020-06-27 Pedro Alves <palves@redhat.com>
6493
6494 * fork-child.c (prefork_hook): Adjust.
6495 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6496 Delete.
6497 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6498 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6499 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6500 Remove declarations.
6501 (struct inferior) <set_tty, tty>: New methods.
6502 (struct inferior) <terminal>: Rename to ...
6503 (struct inferior) <m_terminal>: ... this and make private.
6504 * main.c (captured_main_1): Adjust.
6505 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6506 (mi_cmd_inferior_tty_show): Adjust.
6507 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6508 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6509
1776e3e5
NA
65102020-06-26 Nick Alcock <nick.alcock@oracle.com>
6511
6512 * configure.ac: Add --enable-libctf: handle --disable-static
6513 properly.
6514 * acinclude.m4: sinclude ../config/enable.m4.
6515 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6516 (LIBCTF): Substitute in.
6517 (CTF_DEPS): New, likewise.
6518 (CLIBS): libctf needs symbols from libbfd: move earlier.
6519 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6520 flags.
6521 * ctfread.c: Surround in ENABLE_LIBCTF.
6522 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6523 * configure: Regenerate.
6524 * config.in: Likewise.
6525
58373b80
SM
65262020-06-25 Simon Marchi <simon.marchi@efficios.com>
6527
6528 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6529
277474ee
SM
65302020-06-25 Simon Marchi <simon.marchi@efficios.com>
6531
6532 * inferior.h (struct inferior) <terminal>: Change type to
6533 gdb::unique_xmalloc_ptr<char>.
6534 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6535 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6536 field, adjust to unique pointer.
6537 (get_inferior_io_terminal): Adjust to unique pointer.
6538
6d74da72
AB
65392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6540
6541 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6542 registers, not just the known core set of registers.
6543
2e52d038
AB
65442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6545
6546 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6547 fflags, frm, and fcsr registers.
6548 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6549 restore groups.
6550 (riscv_tdesc_unknown_reg): New function.
6551 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6552 tdesc_use_registers.
6553 * riscv-tdep.h (struct gdbarch_tdep): Add
6554 unknown_csrs_first_regnum, unknown_csrs_count,
6555 duplicate_fflags_regnum, duplicate_frm_regnum, and
6556 duplicate_fcsr_regnum fields.
6557
be64fd07
AB
65582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6559
6560 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6561 callback, use the callback (when not null) to help number unknown
6562 registers.
6563 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6564 (tdesc_use_registers): Add extra parameter to declaration.
6565
3b9fce96
AB
65662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6567
6568 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6569 in the file.
6570 (class riscv_pending_register_alias): Likewise.
6571 (riscv_register_feature::register_info): Change 'required_p' field
6572 to 'required', and change its type. Add 'check' member function.
6573 (riscv_register_feature::register_info::check): Define new member
6574 function.
6575 (riscv_xreg_feature): Change initialisation of 'required' field.
6576 (riscv_freg_feature): Likewise.
6577 (riscv_virtual_feature): Likewise.
6578 (riscv_csr_feature): Likewise.
6579 (riscv_check_tdesc_feature): Take extra parameter, the csr
6580 tdesc_feature, rewrite the function to use the new
6581 riscv_register_feature::register_info::check function.
6582 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6583
865bad26
AB
65842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6585
6586 * features/Makefile: Remove all references to the deleted files
6587 below.
6588 * features/riscv/32bit-csr.c: Deleted.
6589 * features/riscv/32bit-csr.xml: Deleted.
6590 * features/riscv/64bit-csr.c: Deleted.
6591 * features/riscv/64bit-csr.xml: Deleted.
6592 * features/riscv/rebuild-csr-xml.sh: Deleted.
6593
ed69cbc8
AB
65942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6595
6596 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6597 whitespace error for declaration of names member variable.
6598 (struct riscv_register_feature): Add new prefer_first_name member
6599 variable, and fix whitespace error in declaration of registers.
6600 (riscv_xreg_feature): Initialize prefer_first_name field.
6601 (riscv_freg_feature): Likewise.
6602 (riscv_virtual_feature): Likewise.
6603 (riscv_csr_feature): Likewise.
6604 (riscv_register_name): Expand on comments. Remove register name
6605 modifications for CSR and virtual registers.
6606
4445e8f5
AB
66072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6608
6609 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6610 errors.
6611
767a879e
AB
66122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6613
6614 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6615 riscv-opc.h.
6616 (class riscv_pending_register_alias): New class.
6617 (riscv_check_tdesc_feature): Take vector of pending aliases and
6618 populate it as appropriate.
6619 (riscv_setup_register_aliases): Delete.
6620 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6621 to riscv_check_tdesc_feature in all cases. Use the vector to
6622 create the register aliases.
6623
bb6e55f3
RO
66242020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6625
6626 * sol2-tdep.c (sol2_static_transform_name): Remove.
6627 (sol2_init_abi): Don't register it.
6628 * gdbarch.sh (static_transform_name): Remove.
6629 * gdbarch.c, gdbarch.h: Regenerate.
6630
6631 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6632 gdbarch_static_transform_name.
6633 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6634 * stabsread.c (define_symbol) <'X'>: Remove.
6635 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6636 handling.
6637 <'V'>: Likewise.
6638 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6639 <'S'>: Remove call to gdbarch_static_transform_name.
6640
c6d36836
RO
66412020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6642
6643 * procfs.c (procfs_pre_trace): New function.
6644 (procfs_target::create_inferior): Pass it to fork_inferior.
6645
a7e6196b
RO
66462020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6647
6648 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6649 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6650 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6651 sol2-tdep.o, sparc-sol2-tdep.o.
6652 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6653 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6654 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6655 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6656
d412e696
RO
66572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6658
6659 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6660 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6661 Call sol2_init_abi.
6662 Remove calls to set_gdbarch_skip_solib_resolver,
6663 set_gdbarch_core_pid_to_str.
6664 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6665 (i386_sol2_static_transform_name): Remove.
6666 (i386_sol2_init_abi): Call sol2_init_abi.
6667 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6668 set_gdbarch_static_transform_name,
6669 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6670 Use sol2_sigtramp_p.
6671 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6672 (sol2_sigtramp_p): New function.
6673 (sol2_static_transform_name): New function.
6674 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6675 (sol2_init_abi): New function.
6676 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6677 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6678 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6679 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6680 (sparc_sol2_static_transform_name): Remove.
6681 (sparc32_sol2_init_abi): Call sol2_init_abi.
6682 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6683 set_gdbarch_static_transform_name,
6684 set_gdbarch_skip_solib_resolver,
6685 set_gdbarch_core_pid_to_str.
6686 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6687 (sparc_sol2_static_transform_name): Remove
6688 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6689 call sol2_sigtramp_p.
6690 (sparc64_sol2_init_abi): Call sol2_init_abi.
6691 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6692 set_gdbarch_static_transform_name,
6693 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6694
a8654e7d
PW
66952020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6696
6697 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6698 * exec.c (validate_exec_file): If from_tty, set both
6699 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6700 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6701 and from_tty, unconditionally ask a confirmation.
6702
caa7fd04
AB
67032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6704
6705 * target-descriptions.c (tdesc_architecture_name): Protect against
6706 NULL pointer dereference.
6707 (maint_print_xml_tdesc_cmd): New function.
6708 (_initialize_target_descriptions): Register new 'maint print
6709 xml-tdesc' command and give it the filename completer.
6710 * NEWS: Mention new 'maint print xml-tdesc' command.
6711
fbf42f4e
AB
67122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6713
6714 * target-descriptions.c (class tdesc_compatible_info): New class.
6715 (struct target_desc): Change type of compatible vector.
6716 (tdesc_compatible_p): Update for change in type of
6717 target_desc::compatible.
6718 (tdesc_compatible_info_list): New function.
6719 (tdesc_compatible_info_arch_name): New function.
6720 (tdesc_add_compatible): Update for change in type of
6721 target_desc::compatible.
6722 (print_c_tdesc::visit_pre): Likewise.
6723
20821f4e
AB
67242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6725
6726 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6727 whitespace to underscore.
6728 (maint_print_c_tdesc_cmd): Use fake filename for target
6729 descriptions that came from the target.
6730 (_initialize_target_descriptions): Add filename command completion
6731 for 'maint print c-tdesc'.
6732
1fb5ee62
SM
67332020-06-23 Simon Marchi <simon.marchi@efficios.com>
6734
6735 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6736 lines.
6737
fc3ecb3e
SM
67382020-06-23 Simon Marchi <simon.marchi@efficios.com>
6739
6740 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6741 lines.
6742 (dwarf2_find_location_expression): Likewise.
6743 (call_site_parameter_matches): Likewise.
6744 (dwarf2_compile_expr_to_ax): Likewise.
6745 (disassemble_dwarf_expression): Likewise.
6746 (loclist_describe_location): Likewise.
6747
236ef034
PA
67482020-06-23 Pedro Alves <palves@redhat.com>
6749
6750 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6751 progspace-and-thread.h. Include scoped-mock-context.h instead.
6752 (register_to_value_test): Use scoped_mock_context.
6753 * regcache.c: Include "scoped-mock-context.h".
6754 (cooked_read_test): Don't error out if a target is already pushed.
6755 Use scoped_mock_context. Adjust.
6756 * scoped-mock-context.h: New file.
6757
39e7ecca
AB
67582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6759
6760 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6761 initializer.
6762 (ada_language::is_string_type_p): New member function.
6763 * c-lang.c (c_language_data): Delete la_is_string_type_p
6764 initializer.
6765 (cplus_language_data): Likewise.
6766 (asm_language_data): Likewise.
6767 (minimal_language_data): Likewise.
6768 * d-lang.c (d_language_data): Likewise.
6769 * f-lang.c (f_is_string_type_p): Delete function, implementation
6770 moved to f_language::is_string_type_p.
6771 (f_language_data): Delete la_is_string_type_p initializer.
6772 (f_language::is_string_type_p): New member function,
6773 implementation from f_is_string_type_p.
6774 * go-lang.c (go_is_string_type_p): Delete function, implementation
6775 moved to go_language::is_string_type_p.
6776 (go_language_data): Delete la_is_string_type_p initializer.
6777 (go_language::is_string_type_p): New member function,
6778 implementation from go_is_string_type_p.
6779 * language.c (language_defn::is_string_type_p): Define new member
6780 function.
6781 (default_is_string_type_p): Make static, add comment copied from
6782 header file.
6783 (unknown_language_data): Delete la_is_string_type_p initializer.
6784 (unknown_language::is_string_type_p): New member function.
6785 (auto_language_data): Delete la_is_string_type_p initializer.
6786 (auto_language::is_string_type_p): New member function.
6787 * language.h (language_data): Delete la_is_string_type_p field.
6788 (language_defn::is_string_type_p): Declare new function.
6789 (default_is_string_type_p): Delete desclaration, move comment to
6790 definition.
6791 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6792 moved to m2_language::is_string_type_p.
6793 (m2_language_data): Delete la_is_string_type_p initializer.
6794 (m2_language::is_string_type_p): New member function,
6795 implementation from m2_is_string_type_p.
6796 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6797 initializer.
6798 * opencl-lang.c (opencl_language_data): Likewise.
6799 * p-lang.c (pascal_is_string_type_p): Delete function,
6800 implementation moved to pascal_language::is_string_type_p.
6801 (pascal_language_data): Delete la_is_string_type_p initializer.
6802 (pascal_language::is_string_type_p): New member function,
6803 implementation from pascal_is_string_type_p.
6804 * rust-lang.c (rust_is_string_type_p): Delete function,
6805 implementation moved to rust_language::is_string_type_p.
6806 (rust_language_data): Delete la_is_string_type_p initializer.
6807 (rust_language::is_string_type_p): New member function,
6808 implementation from rust_is_string_type_p.
6809 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6810 is_string_type_p.
6811
4ffc13fb
AB
68122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6813
6814 * ada-lang.c (ada_language_data): Delete la_print_typedef
6815 initializer.
6816 (ada_language::print_typedef): New member function.
6817 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6818 (cplus_language_data): Likewise.
6819 (asm_language_data): Likewise.
6820 (minimal_language_data): Likewise.
6821 * d-lang.c (d_language_data): Likewise.
6822 * f-lang.c (f_language_data): Likewise.
6823 (f_language::print_typedef): New member function.
6824 * go-lang.c (go_language_data): Delete la_print_typedef
6825 initializer.
6826 * language.c (language_defn::print_typedef): Define member
6827 function.
6828 (unknown_language_data): Delete la_print_typedef initializer.
6829 (unknown_language::print_typedef): New member function.
6830 (auto_language_data): Delete la_print_typedef initializer.
6831 (auto_language::print_typedef): New member function.
6832 * language.h (language_data): Delete la_print_typedef field.
6833 (language_defn::print_typedef): Declare new member function.
6834 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6835 (default_print_typedef): Delete declaration.
6836 * m2-lang.c (m2_language_data): Delete la_print_typedef
6837 initializer.
6838 (m2_language::print_typedef): New member function.
6839 * objc-lang.c (objc_language_data): Delete la_print_typedef
6840 initializer.
6841 * opencl-lang.c (opencl_language_data): Likewise.
6842 * p-lang.c (pascal_language_data): Likewise.
6843 (pascal_language::print_typedef): New member function.
6844 * rust-lang.c (rust_print_typedef): Delete function,
6845 implementation moved to rust_language::print_typedef.
6846 (rust_language): Delete la_print_typedef initializer.
6847 (rust_language::print_typedef): New member function,
6848 implementation from rust_print_typedef.
6849 * typeprint.c (default_print_typedef): Delete.
6850
d711ee67
AB
68512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6852
6853 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6854 (ada_language::printstr): New member function.
6855 * c-lang.c (c_language_data): Delete la_printstr initializer.
6856 (cplus_language_data): Likewise.
6857 (asm_language_data): Likewise.
6858 (minimal_language_data): Likewise.
6859 * d-lang.c (d_language_data): Likewise.
6860 * f-lang.c (f_printstr): Rename to f_language::printstr.
6861 (f_language_data): Delete la_printstr initializer.
6862 (f_language::printstr): New member function, implementation from
6863 f_printstr.
6864 * go-lang.c (go_language_data): Delete la_printstr initializer.
6865 * language.c (language_defn::printstr): Define new member
6866 function.
6867 (unk_lang_printstr): Delete.
6868 (unknown_language_data): Delete la_printstr initializer.
6869 (unknown_language::printstr): New member function.
6870 (auto_language_data): Delete la_printstr initializer.
6871 (auto_language::printstr): New member function.
6872 * language.h (language_data): Delete la_printstr field.
6873 (language_defn::printstr): Declare new member function.
6874 (LA_PRINT_STRING): Update call to printstr.
6875 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6876 (m2_language_data): Delete la_printstr initializer.
6877 (m2_language::printstr): New member function, implementation from
6878 m2_printstr.
6879 * objc-lang.c (objc_language_data): Delete la_printstr
6880 initializer.
6881 * opencl-lang.c (opencl_language_data): Likewise.
6882 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6883 (pascal_language_data): Delete la_printstr initializer.
6884 (pascal_language::printstr): New member function, implementation
6885 from pascal_printstr.
6886 * p-lang.h (pascal_printstr): Delete declaration.
6887 * rust-lang.c (rust_printstr): Update header comment.
6888 (rust_language_data): Delete la_printstr initializer.
6889 (rust_language::printstr): New member function.
6890
52b50f2c
AB
68912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6892
6893 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6894 (ada_language::printchar): New member function.
6895 * c-lang.c (c_language_data): Delete la_printchar initializer.
6896 (cplus_language_data): Likewise.
6897 (asm_language_data): Likewise.
6898 (minimal_language_data): Likewise.
6899 * d-lang.c (d_language_data): Likewise.
6900 * f-lang.c (f_printchar): Rename to f_language::printchar.
6901 (f_language_data): Delete la_printchar initializer.
6902 (f_language::printchar): New member function, implementation from
6903 f_printchar.
6904 * go-lang.c (go_language_data): Delete la_printchar initializer.
6905 * language.c (unk_lang_printchar): Delete.
6906 (language_defn::printchar): Define new member function.
6907 (unknown_language_data): Delete la_printchar initializer.
6908 (unknown_language::printchar): New member function.
6909 (auto_language_data): Delete la_printchar initializer.
6910 (auto_language::printchar): New member function.
6911 * language.h (language_data): Delete la_printchar field.
6912 (language_defn::printchar): Declare new member function.
6913 (LA_PRINT_CHAR): Update call to printchar.
6914 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6915 (m2_language::printchar): New member function.
6916 * objc-lang.c (objc_language_data): Delete la_printchar
6917 initializer.
6918 * opencl-lang.c (opencl_language_data): Likewise.
6919 * p-lang.c (pascal_language_data): Delete la_printchar
6920 initializer.
6921 (pascal_language::printchar): New member function.
6922 * rust-lang.c (rust_printchar): Rename to
6923 rust_language::printchar.
6924 (rust_language_data): Delete la_printchar initializer.
6925 (rust_language::printchar): New member function, implementation
6926 from rust_printchar.
6927
ec8cec5b
AB
69282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6929
6930 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6931 (ada_language_data): Delete la_emitchar initializer.
6932 (ada_language::emitchar): New member function, implementation from
6933 emit_char.
6934 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6935 (cplus_language_data): Likewise.
6936 (asm_language_data): Likewise.
6937 (minimal_language_data): Likewise.
6938 * d-lang.c (d_language_data): Likewise.
6939 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6940 (f_language_data): Delete la_emitchar initializer.
6941 (f_language::emitchar): New member function, implementation from
6942 f_emit_char.
6943 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6944 * language.c (unk_lang_emit_char): Delete.
6945 (language_defn::emitchar): New member function definition.
6946 (unknown_language_data): Delete la_emitchar initializer.
6947 (unknown_language::emitchar): New member function.
6948 (auto_language_data): Delete la_emitchar initializer.
6949 (auto_language::emitchar): New member function.
6950 * language.h (language_data): Delete la_emitchar field.
6951 (language_defn::emitchar): New member field declaration.
6952 (LA_EMIT_CHAR): Update call to emitchar.
6953 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6954 (m2_language_data): Delete la_emitchar initializer.
6955 (m2_language::emitchar): New member function, implementation from
6956 m2_emit_char.
6957 * objc-lang.c (objc_language_data): Delete la_emitchar
6958 initializer.
6959 * opencl-lang.c (opencl_language_data): Likewise.
6960 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6961 (pascal_language_data): Delete la_emitchar initializer.
6962 (pascal_language::emitchar): New member function, implementation
6963 from pascal_emit_char.
6964 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6965 (rust_language_data): Delete la_emitchar initializer.
6966 (rust_language::emitchar): New member function, implementation
6967 from rust_emitchar.
6968
1bf9c363
AB
69692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6970
6971 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6972 (ada_language_data): Delete la_post_parser initializer.
6973 (ada_language::post_parser): New member function.
6974 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6975 (cplus_language_data): Likewise.
6976 (asm_language_data): Likewise.
6977 (minimal_language_data): Likewise.
6978 * d-lang.c (d_language_data): Likewise.
6979 * f-lang.c (f_language_data): Likewise.
6980 * go-lang.c (go_language_data): Likewise.
6981 * language.c (unknown_language_data): Likewise.
6982 (auto_language_data): Likewise.
6983 * language.h (language_data): Delete la_post_parser field.
6984 (language_defn::post_parser): New member function.
6985 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6986 * objc-lang.c (objc_language_data): Likewise.
6987 * opencl-lang.c (opencl_language_data): Likewise.
6988 * p-lang.c (pascal_language_data): Likewise.
6989 * parse.c (parse_exp_in_context): Update call to post_parser.
6990 (null_post_parser): Delete definition.
6991 * parser-defs.h (null_post_parser): Delete declaration.
6992 * rust-lang.c (rust_language_data): Delete la_post_parser
6993 initializer.
6994
87afa652
AB
69952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6996
6997 * ada-lang.c (parse): Rename to ada_language::parser.
6998 (ada_language_data): Delete la_parser initializer.
6999 (ada_language::parser): New member function, implementation from
7000 parse.
7001 * c-lang.c (c_language_data): Delete la_parser initializer.
7002 (cplus_language_data): Likewise.
7003 (asm_language_data): Likewise.
7004 (minimal_language_data): Likewise.
7005 * d-lang.c (d_language_data): Likewise.
7006 (d_language::parser): New member function.
7007 * f-lang.c (f_language_data): Delete la_parser initializer.
7008 (f_language::parser): New member function.
7009 * go-lang.c (go_language_data): Delete la_parser initializer.
7010 (go_language::parser): New member function.
7011 * language.c (unk_lang_parser): Delete.
7012 (language_defn::parser): Define new member function.
7013 (unknown_language_data): Delete la_parser initializer.
7014 (unknown_language::parser): New member function.
7015 (auto_language_data): Delete la_parser initializer.
7016 (auto_language::parser): New member function.
7017 * language.h (language_data): Delete la_parser field.
7018 (language_defn::parser): Declare new member function.
7019 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7020 (m2_language::parser): New member function.
7021 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7022 * opencl-lang.c (opencl_language_data): Likewise.
7023 * p-lang.c (pascal_language_data): Likewise.
7024 (pascal_language::parser): New member function.
7025 * parse.c (parse_exp_in_context): Update call to parser.
7026 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7027 (rust_language::parser): New member function.
7028
37825800
AB
70292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7030
7031 * top.c (print_gdb_configuration): Print --with-python-libdir
7032 configuration value.
7033
5b860c93
PW
70342020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7035
7036 * NEWS: Mention change to the alias command.
7037
cf00cd6f
PW
70382020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7039
7040 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7041 (alias_command_completer)
7042 (make_alias_options_def_group): New functions.
7043 (alias_opts, alias_option_defs): New struct and array.
7044 (alias_usage_error): Update usage.
7045 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7046 Use option framework.
7047 (_initialize_cli_cmds): Update alias command help.
7048 Update aliases command help.
7049 (show_user):
7050 Add NULL for new default_args lookup_cmd argument.
7051 (valid_command_p): Rename to validate_aliased_command.
7052 Add NULL for new default_args lookup_cmd argument. Verify that the
7053 aliased_command has no default args.
7054 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7055 (lookup_cmd_1, lookup_cmd): New argument default_args.
7056 (add_alias_cmd):
7057 Add NULL for new default_args lookup_cmd argument.
7058 (print_help_for_command): Show default args under the layout
7059 alias some_alias = some_aliased_cmd some_alias_default_arg.
7060 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7061 xfree default_args in destructor.
7062 * cli/cli-script.c (process_next_line, do_define_command):
7063 Add NULL for new default_args lookup_cmd argument.
7064 * command.h: Declare new default_args argument in lookup_cmd
7065 and lookup_cmd_1.
7066 * completer.c (complete_line_internal_1):
7067 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7068 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7069 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7070 Likewise.
7071 * infcmd.c (_initialize_infcmd): Likewise.
7072 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7073 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7074 * python/py-param.c (add_setshow_generic): Likewise.
7075 * remote.c (_initialize_remote): Likewise.
7076 * top.c (execute_command): Prepend default_args if command has some.
7077 (set_verbose):
7078 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7079 * tracepoint.c (validate_actionline, encode_actions_1):
7080 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7081
bd920864
TBA
70822020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7083
7084 * jit.c (jit_read_descriptor): Use bool as the return type.
7085 (jit_breakpoint_re_set_internal): Use bool as the return type.
7086 Invert the return value logic; return true if the jit breakpoint
7087 has been successfully initialized.
7088 (jit_inferior_init): Update the call to
7089 jit_breakpoint_re_set_internal.
7090
f8098322
PA
70912020-06-22 Pedro Alves <palves@redhat.com>
7092
7093 PR gdb/25939
7094 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7095 Use the current inferior instead. Don't return
7096 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7097 wait again.
7098 * sol-thread.c (sol_thread_target::wait): Don't reference
7099 inferior_ptid.
7100 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7101 (sol_update_thread_list_callback): Use the current inferior's pid
7102 instead of inferior_ptid.
7103
196535a6
RO
71042020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7105
7106 * procfs.c: Cleanup many comments.
7107
7108 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7109 (AFTER_WATCHFLAG): Replace by value.
7110
7111 (MAIN_PROC_NAME_FORMAT): Inline ...
7112 (create_procinfo): ... here.
7113
7114 (procfs_debug_inferior): Remove SYS_exec handling.
7115 (syscall_is_exec): Likewise.
7116 (procfs_set_exec_trap): Likewise.
7117
7118 (syscall_is_lwp_exit): Inline in callers.
7119 (syscall_is_exit): Likewise.
7120 (syscall_is_exec): Likewise.
7121 (syscall_is_lwp_create): Likewise.
7122
7123 (invalidate_cache): Remove #if 0 code.
7124
7125 (make_signal_thread_runnable): Remove.
7126 (procfs_target::resume): Remove #if 0 code.
7127
cf6f3e86
RO
71282020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7129
7130 PR gdb/25939
7131 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7132 call ...
7133 (procfs_target::create_inferior): ... here.
7134
48e9cc84
PW
71352020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7136
7137 * exec.c (validate_exec_file): Ensure the build-id is up to
7138 date by calling reopen_exec_file (that checks file timestamp
7139 to decide to re-read the file).
7140
3922b302
PA
71412020-06-18 Pedro Alves <palves@redhat.com>
7142
7143 PR gdb/25412
7144 * gdbthread.h (delete_thread, delete_thread_silent)
7145 (find_thread_ptid): Update comments.
7146 * thread.c (current_thread_): New global.
7147 (is_current_thread): Move higher, and reimplement.
7148 (inferior_thread): Reimplement.
7149 (set_thread_exited): Use bool. Add assertions.
7150 (add_thread_silent): Simplify thread-reuse handling by always
7151 calling delete_thread.
7152 (delete_thread): Remove intro comment.
7153 (find_thread_ptid): Skip exited threads.
7154 (switch_to_thread_no_regs): Write to current_thread_.
7155 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7156 INFERIOR_PTID. Clear current_thread_.
7157
6dbdab44
PA
71582020-06-18 Pedro Alves <palves@redhat.com>
7159
7160 * aix-thread.c (pd_update): Use switch_to_thread.
7161
2da4b788
PA
71622020-06-18 Pedro Alves <palves@redhat.com>
7163
7164 * ravenscar-thread.c (ravenscar_thread_target): Update.
7165 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7166 (ravenscar_thread_target::add_active_thread): ... this. Don't
7167 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7168 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7169
50838d1b
PA
71702020-06-18 Pedro Alves <palves@redhat.com>
7171
7172 * nat/windows-nat.c (current_windows_thread): Remove.
7173 * nat/windows-nat.h (current_windows_thread): Remove.
7174 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7175 Adjust.
7176 (display_selectors): Adjust to fetch the current
7177 windows_thread_info based on inferior_ptid.
7178 (fake_create_process): No longer write to current_windows_thread.
7179 (windows_nat_target::get_windows_debug_event):
7180 Don't set inferior_ptid or current_windows_thread.
7181 (windows_nat_target::wait): Adjust to not rely on
7182 current_windows_thread.
7183 (do_initial_windows_stuff): Now a method of windows_nat_target.
7184 Switch to the last_ptid thread.
7185 (windows_nat_target::attach): Adjust.
7186 (windows_nat_target::detach): Use switch_to_no_thread instead of
7187 writing to inferior_ptid directly.
7188 (windows_nat_target::create_inferior): Adjust.
7189
31ce04e9
PA
71902020-06-18 Pedro Alves <palves@redhat.com>
7191
7192 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7193
1ee1a363
PA
71942020-06-18 Pedro Alves <palves@redhat.com>
7195
7196 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7197 after creating it, instead of writing to inferior_ptid. Don't
7198 write to inferior_ptid.
7199
6d350754
PA
72002020-06-18 Pedro Alves <palves@redhat.com>
7201
7202 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7203
5d971d48
PA
72042020-06-18 Pedro Alves <palves@redhat.com>
7205
7206 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7207 it, instead of writing to inferior_ptid.
7208
86e57d1b
PA
72092020-06-18 Pedro Alves <palves@redhat.com>
7210
7211 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7212 to inferior_ptid.
7213
f2e1c129
PA
72142020-06-18 Pedro Alves <palves@redhat.com>
7215
7216 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7217 instead of writing to inferior_ptid directly.
7218
60db1b85
PA
72192020-06-18 Pedro Alves <palves@redhat.com>
7220
7221 * corelow.c (core_target::close): Use switch_to_no_thread instead
7222 of writing to inferior_ptid directly.
7223 (add_to_thread_list, core_target_open): Use switch_to_thread
7224 instead of writing to inferior_ptid directly.
7225
fe7d6a8d
PA
72262020-06-18 Pedro Alves <palves@redhat.com>
7227
7228 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7229 inferior_ptid.
7230 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7231 inferior_ptid.
7232 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7233 inferior_ptid directly.
7234 (darwin_nat_target::init_thread_list): Switch to thread, instead
7235 of writing to inferior_ptid.
7236 (darwin_nat_target::attach): Don't write to inferior_ptid.
7237 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7238
975f8708
PA
72392020-06-18 Pedro Alves <palves@redhat.com>
7240
7241 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7242 thread.
7243 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7244 Instead use switch_to_thread.
7245 (gnu_nat_target::detach): Use switch_to_no_thread
7246 instead of writing to inferior_ptid directly. Used passed-in
7247 inferior instead of looking up the inferior by pid.
7248
1a204730
PA
72492020-06-18 Pedro Alves <palves@redhat.com>
7250
7251 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7252 inferior_ptid.
7253
ebe84f23
PA
72542020-06-18 Pedro Alves <palves@redhat.com>
7255
7256 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7257 inferior_ptid.
7258 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7259 thread.
7260 (nto_procfs_target::detach): Avoid referencing
7261 inferior_ptid. Use switch_to_no_thread instead of writing to
7262 inferior_ptid directly.
7263 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7264 instead of writing to inferior_ptid directly.
7265 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7266 to thread.
7267
191f02e5
PA
72682020-06-18 Pedro Alves <palves@redhat.com>
7269
7270 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7271 after creating it, instead of writing to inferior_ptid.
7272 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7273 to inferior_ptid directly.
7274 (gdbsim_target::wait): Don't write to inferior_ptid.
7275
0ac55310
PA
72762020-06-18 Pedro Alves <palves@redhat.com>
7277
7278 * remote.c (remote_target::remote_notice_new_inferior): Use
7279 switch_to_thread instead of writing to inferior_ptid directly.
7280 (remote_target::add_current_inferior_and_thread): Use
7281 switch_to_no_thread instead of writing to inferior_ptid directly.
7282 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7283 and switch_to_thread instead of using set_current_inferior or
7284 writing to inferior_ptid directly.
7285
5233f39b
PA
72862020-06-18 Pedro Alves <palves@redhat.com>
7287
7288 * tracectf.c (ctf_target_open): Switch to added thread instead of
7289 writing to inferior_ptid directly.
7290 (ctf_target::close): Use switch_to_no_thread instead of writing to
7291 inferior_ptid directly.
7292
087e161b
PA
72932020-06-18 Pedro Alves <palves@redhat.com>
7294
7295 * tracefile-tfile.c (tfile_target_open): Don't write to
7296 inferior_ptid directly, instead switch to added thread.
7297 (tfile_target::close): Use switch_to_no_thread instead of writing
7298 to inferior_ptid directly.
7299
7fb43e53
PA
73002020-06-18 Pedro Alves <palves@redhat.com>
7301
7302 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7303 (procfs_target::detach): Use switch_to_no_thread
7304 instead of writing to inferior_ptid directly.
7305 (do_attach): Change return type to void. Switch to the added
7306 thread.
7307 (procfs_target::create_inferior): Switch to the added thread.
7308 (procfs_do_thread_registers): Don't write to inferior_ptid.
7309
18493a00
PA
73102020-06-18 Pedro Alves <palves@redhat.com>
7311
7312 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7313 of writing to inferior_ptid.
7314 (scoped_restore_exited_inferior): Delete.
7315 (handle_vfork_child_exec_or_exit): Simplify using
7316 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7317 instead of writing to inferior_ptid.
7318 (THREAD_STOPPED_BY): Delete.
7319 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7320 (thread_stopped_by_hw_breakpoint): Delete.
7321 (save_waitstatus): Use
7322 scoped_restore_current_thread+switch_to_thread, and call
7323 target_stopped_by_watchpoint instead of
7324 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7325 instead of thread_stopped_by_sw_breakpoint, and
7326 target_stopped_by_hw_breakpoint instead of
7327 thread_stopped_by_hw_breakpoint.
7328 (handle_inferior_event)
7329 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7330 inferior_ptid directly, nor
7331 set_current_inferior/set_current_program_space. Use
7332 switch_to_thread / switch_to_inferior_no_thread instead.
7333
a0776b13
PA
73342020-06-18 Pedro Alves <palves@redhat.com>
7335
7336 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7337 instead of writing to inferior_ptid.
7338
6155c136
PA
73392020-06-18 Pedro Alves <palves@redhat.com>
7340
7341 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7342 added thread.
7343 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7344 to the added thread.
7345 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7346 instead of writing to inferior_ptid.
7347
c5316fc6
PA
73482020-06-18 Pedro Alves <palves@redhat.com>
7349
7350 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7351 (register_to_value_test): Mock a program_space too. Heap-allocate
7352 the address space. Don't write to inferior_ptid. Use
7353 switch_to_thread instead.
7354
8df01799
PA
73552020-06-18 Pedro Alves <palves@redhat.com>
7356
7357 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7358 Delete.
7359 (find_signalled_thread()): New, factored out from
7360 linux_make_corefile_notes and adjusted to handle exited threads.
7361 (linux_make_corefile_notes): Adjust to use the new
7362 find_signalled_thread.
7363
41792d68
PA
73642020-06-18 Pedro Alves <palves@redhat.com>
7365
7366 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7367 of saving/restoring inferior_ptid.
7368
612f258a
TT
73692020-06-17 Tom Tromey <tom@tromey.com>
7370
7371 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7372 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7373 declare.
7374 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7375
efb763a5
SM
73762020-06-15 Simon Marchi <simon.marchi@efficios.com>
7377
7378 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7379 of partial symtabs.
7380
2951f6c0
SM
73812020-06-17 Simon Marchi <simon.marchi@efficios.com>
7382
7383 * regformats/reg-arm.dat: Remove.
7384 * regformats/reg-bfin.dat: Remove.
7385 * regformats/reg-cris.dat: Remove.
7386 * regformats/reg-crisv32.dat: Remove.
7387 * regformats/reg-m32r.dat: Remove.
7388 * regformats/reg-tilegx.dat: Remove.
7389 * regformats/reg-tilegx32.dat: Remove.
7390
7d458ea5
SM
73912020-06-17 Simon Marchi <simon.marchi@efficios.com>
7392
7393 * features/Makefile (WHICH): Remove arm files.
7394 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7395 * regformats/arm/arm-with-neon.dat: Remove.
7396 * regformats/arm/arm-with-vfpv2.dat: Remove.
7397 * regformats/arm/arm-with-vfpv3.dat: Remove.
7398
3af96c0d
SM
73992020-06-17 Simon Marchi <simon.marchi@efficios.com>
7400
7401 * features/Makefile (XMLTOC): Remove rx.xml.
7402
b25e22fd
PA
74032020-06-17 Pedro Alves <palves@redhat.com>
7404
7405 * gdbthread.h (thread_control_state) <trap_expected> Update
7406 comments.
7407
a78a19b1
AB
74082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7409
7410 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7411 ada_language::lookup_symbol_nonlocal.
7412 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7413 (ada_language::lookup_symbol_nonlocal): New member function,
7414 implementation from ada_lookup_symbol_nonlocal.
7415 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7416 initializer.
7417 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7418 initializer.
7419 (cplus_language::lookup_symbol_nonlocal): New member function.
7420 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7421 (minimal_language_data) Likewise.
7422 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7423 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7424 initializer.
7425 (d_language::lookup_symbol_nonlocal): New member function.
7426 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7427 initializer.
7428 (f_language::lookup_symbol_nonlocal): New member function.
7429 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7430 initializer.
7431 * language.c (unknown_language_data): Likewise.
7432 (auto_language_data): Likewise.
7433 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7434 field.
7435 (language_defn::lookup_symbol_nonlocal): New member function.
7436 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7437 initializer.
7438 * objc-lang.c (objc_language_data): Likewise.
7439 * opencl-lang.c (opencl_language_data): Likewise.
7440 * p-lang.c (pascal_language_data): Likewise.
7441 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7442 rust_language::lookup_symbol_nonlocal.
7443 (rust_language_data): Delete la_lookup_symbol_nonlocal
7444 initializer.
7445 (rust_language::lookup_symbol_nonlocal): New member function,
7446 implementation from rust_lookup_symbol_nonlocal.
7447 * symtab.c (lookup_symbol_aux): Update call to
7448 lookup_symbol_nonlocal.
7449 (basic_lookup_symbol_nonlocal): Rename to...
7450 (language_defn::lookup_symbol_nonlocal): ...this, and update
7451 header comment. Remove language_defn parameter, and replace with
7452 uses of `this'.
7453 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7454
ebe2334e
AB
74552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7456
7457 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7458 initializer.
7459 (ada_language::value_print_inner): New member function.
7460 * c-lang.c (c_language_data): Delete la_value_print_inner
7461 initializer.
7462 (cplus_language_data): Likewise.
7463 (asm_language_data): Likewise.
7464 (minimal_language_data): Likewise.
7465 * d-lang.c (d_language_data): Likewise.
7466 (d_language::value_print_inner): New member function.
7467 * f-lang.c (f_language_data): Delete la_value_print_inner
7468 initializer.
7469 (f_language::value_print_inner): New member function.
7470 * f-lang.h (f_value_print_innner): Rename to...
7471 (f_value_print_inner): ...this (note spelling of 'inner').
7472 * f-valprint.c (f_value_print_innner): Rename to...
7473 (f_value_print_inner): ...this (note spelling of 'inner').
7474 * go-lang.c (go_language_data): Delete la_value_print_inner
7475 initializer.
7476 (go_language::value_print_inner): New member function.
7477 * language.c (language_defn::value_print_inner): Define new member
7478 function.
7479 (unk_lang_value_print_inner): Delete.
7480 (unknown_language_data): Delete la_value_print_inner initializer.
7481 (unknown_language::value_print_inner): New member function.
7482 (auto_language_data): Delete la_value_print_inner initializer.
7483 (auto_language::value_print_inner): New member function.
7484 * language.h (language_data): Delete la_value_print_inner field.
7485 (language_defn::value_print_inner): Delcare new member function.
7486 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7487 initializer.
7488 (m2_language::value_print_inner): New member function.
7489 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7490 initializer.
7491 * opencl-lang.c (opencl_language_data): Likewise.
7492 * p-lang.c (pascal_language_data): Likewise.
7493 (pascal_language::value_print_inner): New member function.
7494 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7495 initializer.
7496 (rust_language::value_print_inner): New member function.
7497 * valprint.c (do_val_print): Update call to value_print_inner.
7498
a1d1fa3e
AB
74992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7500
7501 * ada-lang.c (ada_language_data): Delete la_value_print
7502 initializer.
7503 (ada_language::value_print): New member function.
7504 * c-lang.c (c_language_data): Delete la_value_print initializer.
7505 (cplus_language_data): Likewise.
7506 (asm_language_data): Likewise.
7507 (minimal_language_data): Likewise.
7508 * d-lang.c (d_language_data): Likewise.
7509 * f-lang.c (f_language_data): Likewise.
7510 * go-lang.c (go_language_data): Likewise.
7511 * language.c (unk_lang_value_print): Delete.
7512 (language_defn::value_print): Define new member function.
7513 (unknown_language_data): Delete la_value_print initializer.
7514 (unknown_language::value_print): New member function.
7515 (auto_language_data): Delete la_value_print initializer.
7516 (auto_language::value_print): New member function.
7517 * language.h (language_data): Delete la_value_print field.
7518 (language_defn::value_print): Declare new member function.
7519 (LA_VALUE_PRINT): Update call to value_print.
7520 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7521 * objc-lang.c (objc_language_data): Likewise.
7522 * opencl-lang.c (opencl_language_data): Likewise.
7523 * p-lang.c (pascal_language_data): Likewise.
7524 (pascal_language::value_print): New member function.
7525 * rust-lang.c (rust_language_data): Delete la_value_print
7526 initializer.
7527
f16a9f57
AB
75282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7529
7530 * ada-lang.c (ada_watch_location_expression): Rename to
7531 ada_language::watch_location_expression.
7532 (ada_language_data): Delete la_watch_location_expression
7533 initializer.
7534 (ada_language::watch_location_expression): New member function,
7535 implementation from ada_watch_location_expression.
7536 * breakpoint.c (watch_command_1): Update call to
7537 watch_location_expression.
7538 * c-lang.c (c_watch_location_expression): Rename to
7539 language_defn::watch_location_expression.
7540 (c_language_data): Delete la_watch_location_expression
7541 initializer.
7542 (cplus_language_data): Likewise.
7543 (asm_language_data): Likewise.
7544 (minimal_language_data): Likewise.
7545 * c-lang.h (c_watch_location_expression): Delete declaration.
7546 * d-lang.c (d_language_data): Delete la_watch_location_expression
7547 initializer.
7548 * f-lang.c (f_language_data): Likewise.
7549 * go-lang.c (go_language_data): Likewise.
7550 * language.c (language_defn::watch_location_expression): Member
7551 function implementation from c_watch_location_expression.
7552 (unknown_language_data): Delete la_watch_location_expression
7553 initializer.
7554 (auto_language_data): Likewise.
7555 * language.h (language_data): Delete la_watch_location_expression
7556 field.
7557 (language_defn::watch_location_expression): Declare new member
7558 function.
7559 * m2-lang.c (m2_language_data): Delete
7560 la_watch_location_expression initializer.
7561 * objc-lang.c (objc_language_data): Likewise.
7562 * opencl-lang.c (opencl_language_data): Likewise.
7563 * p-lang.c (pascal_language_data): Likewise.
7564 * rust-lang.c (rust_watch_location_expression): Rename to
7565 rust_language::watch_location_expression.
7566 (rust_language_data): Delete la_watch_location_expression
7567 initializer.
7568 (rust_language::watch_location_expression): New member function,
7569 implementation from rust_watch_location_expression.
7570
7e56227d
AB
75712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7572
7573 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7574 ada_language::collect_symbol_completion_matches.
7575 (ada_language_data): Delete la_collect_symbol_completion_matches
7576 initializer.
7577 (ada_language::collect_symbol_completion_matches): New member
7578 function, implementation from
7579 ada_collect_symbol_completion_matches.
7580 * c-lang.c (c_language_data): Delete
7581 la_collect_symbol_completion_matches initializer.
7582 (cplus_language_data): Likewise.
7583 (asm_language_data): Likewise.
7584 (minimal_language_data): Likewise.
7585 * d-lang.c (d_language_data): Likewise.
7586 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7587 f_language::collect_symbol_completion_matches.
7588 (f_language_data): Delete la_collect_symbol_completion_matches
7589 initializer.
7590 (f_language::collect_symbol_completion_matches) New member
7591 function, implementation from f_collect_symbol_completion_matches.
7592 * go-lang.c (go_language_data): Delete
7593 la_collect_symbol_completion_matches initializer.
7594 * language.c (unknown_language_data): Likewise.
7595 (auto_language_data): Likewise.
7596 * language.h (language_data): Delete
7597 la_collect_symbol_completion_matches field.
7598 (language_defn::collect_symbol_completion_matches): New member
7599 function.
7600 * m2-lang.c (m2_language_data): Delete
7601 la_collect_symbol_completion_matches initializer.
7602 * objc-lang.c (objc_language_data): Likewise.
7603 * opencl-lang.c (opencl_language_data): Likewise.
7604 * p-lang.c (pascal_language_data): Likewise.
7605 * rust-lang.c (rust_language_data): Likewise.
7606 * symtab.c (default_collect_symbol_completion_matches): Delete.
7607 (collect_symbol_completion_matches): Update call to
7608 collect_symbol_completion_matches.
7609 (collect_symbol_completion_matches_type): Likewise.
7610 * symtab.h (default_collect_symbol_completion_matches): Delete
7611 declaration.
7612
53fc67f8
AB
76132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7614
7615 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7616 (ada_language_data): Delete la_word_break_characters initializer.
7617 (ada_language::word_break_characters): New member function.
7618 * c-lang.c (c_language_data): Delete la_word_break_characters
7619 initializer.
7620 (cplus_language_data): Likewise.
7621 (asm_language_data): Likewise.
7622 (minimal_language_data): Likewise.
7623 * completer.c: Update global comment.
7624 (advance_to_expression_complete_word_point): Update call to
7625 word_break_characters.
7626 (complete_files_symbols): Likewise.
7627 (complete_line_internal_1): Likewise.
7628 (default_completer_handle_brkchars): Likewise.
7629 (skip_quoted_chars): Likewise.
7630 * d-lang.c (d_language_data): Delete la_word_break_characters
7631 initializer.
7632 * f-lang.c (f_word_break_characters): Delete.
7633 (f_language_data): Delete la_word_break_characters initializer.
7634 (f_language::word_break_characters): New member function.
7635 * go-lang.c (go_language_data): Delete la_word_break_characters
7636 initializer.
7637 * language.c (unknown_language_data): Likewise.
7638 (auto_language_data): Likewise.
7639 * language.h (default_word_break_characters): Move declaration to
7640 earlier in the file.
7641 (language_data): Delete la_word_break_characters field.
7642 (language_defn::word_break_characters): New member function.
7643 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7644 initializer.
7645 * objc-lang.c (objc_language_data): Likewise.
7646 * opencl-lang.c (opencl_language_data): Likewise.
7647 * p-lang.c (pascal_language_data): Likewise.
7648 * rust-lang.c (rust_language_data): Likewise.
7649
c9debfb9
AB
76502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7651
7652 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7653 (ada_language_data): Delete la_get_symbol_name_matcher
7654 initializer.
7655 (language_defn::get_symbol_name_matcher_inner): New member
7656 function.
7657 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7658 initializer.
7659 (cplus_language_data): Likewise.
7660 (cplus_language::get_symbol_name_matcher_inner): New member
7661 function.
7662 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7663 (minimal_language_data): Likewise.
7664 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7665 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7666 initializer.
7667 * dictionary.c (iter_match_first_hashed): Update call to
7668 get_symbol_name_matcher.
7669 (iter_match_next_hashed): Likewise.
7670 (iter_match_next_linear): Likewise.
7671 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7672 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7673 initializer.
7674 (f_language::get_symbol_name_matcher_inner): New member function.
7675 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7676 initializer.
7677 * language.c (default_symbol_name_matcher): Update header comment,
7678 make static.
7679 (language_defn::get_symbol_name_matcher): New definition.
7680 (language_defn::get_symbol_name_matcher_inner): Likewise.
7681 (get_symbol_name_matcher): Delete.
7682 (unknown_language_data): Delete la_get_symbol_name_matcher
7683 initializer.
7684 (auto_language_data): Likewise.
7685 * language.h (language_data): Delete la_get_symbol_name_matcher
7686 field.
7687 (language_defn::get_symbol_name_matcher): New member function.
7688 (language_defn::get_symbol_name_matcher_inner): Likewise.
7689 (default_symbol_name_matcher): Delete declaration.
7690 * linespec.c (find_methods): Update call to
7691 get_symbol_name_matcher.
7692 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7693 initializer.
7694 * minsyms.c (lookup_minimal_symbol): Update call to
7695 get_symbol_name_matcher.
7696 (iterate_over_minimal_symbols): Likewise.
7697 * objc-lang.c (objc_language_data): Delete
7698 la_get_symbol_name_matcher initializer.
7699 * opencl-lang.c (opencl_language_data): Likewise.
7700 * p-lang.c (pascal_language_data): Likewise.
7701 * psymtab.c (psymbol_name_matches): Update call to
7702 get_symbol_name_matcher.
7703 * rust-lang.c (rust_language_data): Delete
7704 la_get_symbol_name_matcher initializer.
7705 * symtab.c (symbol_matches_search_name): Update call to
7706 get_symbol_name_matcher.
7707 (compare_symbol_name): Likewise.
7708
9a49ad8c
AB
77092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7710
7711 * ada-lang.c (ada_language_data): Delete la_compute_program
7712 initializer.
7713 * c-lang.c (c_language_data): Likewise.
7714 (c_language::compute_program): New member function.
7715 (cplus_language_data): Delete la_compute_program initializer.
7716 (cplus_language::compute_program): New member function.
7717 (asm_language_data): Delete la_compute_program initializer.
7718 (minimal_language_data): Likewise.
7719 * c-lang.h (c_compute_program): Update comment.
7720 (cplus_compute_program): Likewise.
7721 * compile/compile-c-support.c (c_compute_program): Likewise.
7722 (cplus_compute_program): Likewise.
7723 * compile/compile.c (compile_to_object): Update call to
7724 la_compute_program.
7725 * d-lang.c (d_language_data): Delete la_compute_program
7726 initializer.
7727 * f-lang.c (f_language_data): Likewise.
7728 * go-lang.c (go_language_data): Likewise.
7729 * language.c (unknown_language_data): Likewise.
7730 (auto_language_data): Likewise.
7731 * language.h (language_data): Delete la_compute_program field.
7732 (language_defn::compute_program): New member function.
7733 * m2-lang.c (m2_language_data): Delete la_compute_program
7734 initializer.
7735 * objc-lang.c (objc_language_data): Likewise.
7736 * opencl-lang.c (opencl_language_data): Likewise.
7737 * p-lang.c (pascal_language_data): Likewise.
7738 * rust-lang.c (rust_language_data): Likewise.
7739
eff93b4d
AB
77402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7741
7742 * ada-lang.c (ada_language_data) Delete
7743 la_class_name_from_physname initializer.
7744 * c-lang.c (c_language_data): Likewise.
7745 (cplus_language_data): Likewise.
7746 (cplus_language::class_name_from_physname): New member function.
7747 (asm_language_data): Delete la_class_name_from_physname
7748 initializer.
7749 (minimal_language_data): Likewise.
7750 * d-lang.c (d_language_data): Likewise.
7751 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7752 method on language_defn class.
7753 (guess_full_die_structure_name): Likewise.
7754 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7755 initializer.
7756 * go-lang.c (go_language_data): Likewise.
7757 * language.c (language_class_name_from_physname): Delete.
7758 (unk_lang_class_name): Delete.
7759 (unknown_language_data): Delete la_class_name_from_physname
7760 initializer.
7761 (auto_language_data): Likewise.
7762 * language.h (language_data): Delete la_class_name_from_physname
7763 field.
7764 (language_defn::class_name_from_physname): New function.
7765 (language_class_name_from_physname): Delete declaration.
7766 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7767 initializer.
7768 * objc-lang.c (objc_language_data): Likewise.
7769 * opencl-lang.c (opencl_language_data): Likewise.
7770 * p-lang.c (pascal_language_data): Likewise.
7771 * rust-lang.c (rust_language_data): Likewise.
7772
de543742
TT
77732020-06-16 Tom Tromey <tom@tromey.com>
7774
7775 * tui/tui-data.h (STATUS_NAME): New macro.
7776 * tui/tui-layout.c (tui_remove_some_windows)
7777 (initialize_known_windows, tui_register_window)
7778 (tui_layout_split::remove_windows, initialize_layouts)
7779 (tui_new_layout_command): Don't use hard-coded window names.
7780
a350efd4
TT
77812020-06-16 Tom Tromey <tom@tromey.com>
7782
7783 PR tui/25348:
7784 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7785 tui_initialize_readline. Only run once. Call rl_initialize.
7786 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7787 tui_initialize_readline.
7788 * tui/tui-io.c (tui_setup_io): Call
7789 tui_ensure_readline_initialized.
7790 * tui/tui-interp.c (tui_interp::init): Update.
7791
39ec0490
TT
77922020-06-16 Tom Tromey <tom@tromey.com>
7793
7794 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7795 Also preserve the status window.
7796
d2d1ea20
TT
77972020-06-16 Tom Tromey <tom@tromey.com>
7798
7799 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7800 where m_window==nullptr.
7801
66920317
TT
78022020-06-15 Tom Tromey <tromey@adacore.com>
7803
7804 * windows-nat.c (windows_nat::handle_output_debug_string):
7805 Update.
7806 (windows_nat::handle_ms_vc_exception): Update.
7807 * target.h (target_read_string): Change API.
7808 * target.c (target_read_string): Change API.
7809 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7810 Update.
7811 * solib-frv.c (frv_current_sos): Update.
7812 * solib-dsbt.c (dsbt_current_sos): Update.
7813 * solib-darwin.c (darwin_current_sos): Update.
7814 * linux-thread-db.c (inferior_has_bug): Update.
7815 * expprint.c (print_subexp_standard): Update.
7816 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7817 (ada_exception_message_1): Update.
7818
a5d871dd
TT
78192020-06-15 Tom Tromey <tromey@adacore.com>
7820
7821 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7822
670e35fa
TT
78232020-06-15 Tom Tromey <tromey@adacore.com>
7824
7825 * valprint.c (read_string): Update comment.
7826 * target.c (MIN): Remove.
7827 (target_read_string): Rewrite.
7828
f5272a3b
TT
78292020-06-15 Tom Tromey <tromey@adacore.com>
7830
7831 * corefile.c (read_memory_string): Remove.
7832 * ada-valprint.c (ada_value_print_ptr): Update.
7833 * ada-lang.h (ada_tag_name): Change return type.
7834 * ada-lang.c (type_from_tag): Update.
7835 (ada_tag_name_from_tsd): Change return type. Use
7836 target_read_string.
7837 (ada_tag_name): Likewise.
7838 * gdbcore.h (read_memory_string): Don't declare.
7839
2c074f49
HD
78402020-06-14 Hannes Domani <ssbssa@yahoo.de>
7841
7842 * symtab.c (rbreak_command): Ignore Windows drive colon.
7843
6a17d503
SM
78442020-06-12 Simon Marchi <simon.marchi@efficios.com>
7845
7846 * NEWS: Mention removed GDBserver host support.
7847
453c733f
NC
78482020-06-12 Nelson Chu <nelson.chu@sifive.com>
7849
7850 * features/riscv/rebuild-csr-xml.sh: Updated.
7851
2b4e6a3f
TT
78522020-06-11 Tom Tromey <tom@tromey.com>
7853
7854 PR gdb/18318:
7855 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7856
4412332f
JG
78572020-06-09 Jonny Grant <jg@jguk.org>
78582020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7859
7860 * main.c (captured_main_1): Don't print new line after help.
7861 (print_gdb_help): add mailing list and IRC channel information
7862 to --help. Add new lines between items in the footer. Remove
7863 quotes around bug url.
7864
2f33032a
KS
78652020-06-11 Keith Seitz <keiths@redhat.com>
7866
7867 PR gdb/21356
7868 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7869 Resolve typedefs for type length calculations.
7870
7ab96794
TV
78712020-06-10 Tom de Vries <tdevries@suse.de>
7872
7873 PR ada/24713
7874 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7875 (write_psymbols): Enable .gdb_index for ada.
7876 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7877 ada.
7878
e5f3ece2
TV
78792020-06-10 Tom de Vries <tdevries@suse.de>
7880
7881 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7882 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7883 namei" instead of "const char *name" argument.
7884 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7885 dw2_symtab_iter_init.
7886
940da03e
SM
78872020-06-08 Simon Marchi <simon.marchi@efficios.com>
7888
7889 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7890 to use type::field and field::type instead.
7891
b6cdac4b
SM
78922020-06-08 Simon Marchi <simon.marchi@efficios.com>
7893
7894 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7895 to use field::type instead.
7896
5d14b6e5
SM
78972020-06-08 Simon Marchi <simon.marchi@efficios.com>
7898
7899 * gdbtypes.h (struct field) <type, set_type>: New methods.
7900 Rename `type` field to...
7901 <m_type>: ... this. Change references throughout to use type or
7902 set_type methods.
7903 (FIELD_TYPE): Use field::type. Change call sites that modify
7904 the field's type to use field::set_type instead.
7905
3d967001
SM
79062020-06-08 Simon Marchi <simon.marchi@efficios.com>
7907
7908 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7909 to use type::index_type instead.
7910
262abc0d
SM
79112020-06-08 Simon Marchi <simon.marchi@efficios.com>
7912
7913 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7914 methods.
7915 (TYPE_INDEX_TYPE): Use type::index_type.
7916 * gdbtypes.c (create_array_type_with_stride): Likewise.
7917
82836c92
TT
79182020-06-07 Tom Tromey <tom@tromey.com>
7919
7920 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7921 parameter.
7922 (generic_value_print): Update.
7923
940dace9
AB
79242020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7925
7926 Revert commit 982a38f60b0.
7927 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7928
982a38f6
AB
79292020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7930
7931 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7932 avoid use after free.
7933
82f06518
TV
79342020-06-05 Tom de Vries <tdevries@suse.de>
7935
7936 * NEWS: Fix typos.
7937
f8c41851
SM
79382020-06-04 Simon Marchi <simon.marchi@efficios.com>
7939
7940 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7941 the per_bfd object.
7942 (dwarf2_read_debug_names): Likewise.
7943 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7944 object when re-using a per_bfd object with an index.
7945
f9b5d5ea
TV
79462020-06-03 Tom de Vries <tdevries@suse.de>
7947
7948 PR symtab/26046
7949 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7950 children for C++.
7951 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7952 DW_TAG_subprogram.
7953
f6eee2d0
AB
79542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7955
7956 * ada-lang.c (ada_language_data): Delete skip_trampoline
7957 initializer.
7958 * c-lang.c (c_language_data): Likewise.
7959 (cplus_language_data): Likewise.
7960 (cplus_language::skip_trampoline): New member function.
7961 (asm_language_data): Delete skip_trampoline initializer.
7962 (minimal_language_data): Likewise.
7963 * d-lang.c (d_language_data): Likewise.
7964 * f-lang.c (f_language_data): Likewise.
7965 * go-lang.c (go_language_data): Likewise.
7966 * language.c (unk_lang_trampoline): Delete function.
7967 (skip_language_trampoline): Update.
7968 (unknown_language_data): Delete skip_trampoline initializer.
7969 (auto_language_data): Likewise.
7970 * language.h (language_data): Delete skip_trampoline field.
7971 (language_defn::skip_trampoline): New function.
7972 * m2-lang.c (m2_language_data): Delete skip_trampoline
7973 initializer.
7974 * objc-lang.c (objc_skip_trampoline): Delete function, move
7975 implementation to objc_language::skip_trampoline.
7976 (objc_language_data): Delete skip_trampoline initializer.
7977 (objc_language::skip_trampoline): New member function with
7978 implementation from objc_skip_trampoline.
7979 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7980 initializer.
7981 * p-lang.c (pascal_language_data): Likewise.
7982 * rust-lang.c (rust_language_data): Likewise.
7983
0a50df5d
AB
79842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7985
7986 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7987 (ada_language::demangle): New member function.
7988 * c-lang.c (c_language_data): Delete la_demangle initializer.
7989 (cplus_language_data): Delete la_demangle initializer.
7990 (cplus_language::demangle): New member function.
7991 (asm_language_data): Delete la_demangle initializer.
7992 (minimal_language_data): Delete la_demangle initializer.
7993 * d-lang.c (d_language_data): Delete la_demangle initializer.
7994 (d_language::demangle): New member function.
7995 * f-lang.c (f_language_data): Delete la_demangle initializer.
7996 (f_language::demangle): New member function.
7997 * go-lang.c (go_language_data): Delete la_demangle initializer.
7998 (go_language::demangle): New member function.
7999 * language.c (language_demangle): Update.
8000 (unk_lang_demangle): Delete.
8001 (unknown_language_data): Delete la_demangle initializer.
8002 (unknown_language::demangle): New member function.
8003 (auto_language_data): Delete la_demangle initializer.
8004 (auto_language::demangle): New member function.
8005 * language.h (language_data): Delete la_demangle field.
8006 (language_defn::demangle): New function.
8007 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8008 * objc-lang.c (objc_language_data): Delete la_demangle
8009 initializer.
8010 (objc_language::demangle): New member function.
8011 * opencl-lang.c (opencl_language_data): Delete la_demangle
8012 initializer.
8013 * p-lang.c (pascal_language_data): Likewise.
8014 * rust-lang.c (rust_language_data): Likewise.
8015 (rust_language::demangle): New member function.
8016
fbfb0a46
AB
80172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8018
8019 * ada-lang.c (ada_language_data): Delete la_print_type
8020 initializer.
8021 (ada_language::print_type): New member function.
8022 * c-lang.c (c_language_data): Delete la_print_type initializer.
8023 (c_language::print_type): New member function.
8024 (cplus_language_data): Delete la_print_type initializer.
8025 (cplus_language::print_type): New member function.
8026 (asm_language_data): Delete la_print_type initializer.
8027 (asm_language::print_type): New member function.
8028 (minimal_language_data): Delete la_print_type initializer.
8029 (minimal_language::print_type): New member function.
8030 * d-lang.c (d_language_data): Delete la_print_type initializer.
8031 (d_language::print_type): New member function.
8032 * f-lang.c (f_language_data): Delete la_print_type initializer.
8033 (f_language::print_type): New member function.
8034 * go-lang.c (go_language_data): Delete la_print_type initializer.
8035 (go_language::print_type): New member function.
8036 * language.c (unk_lang_print_type): Delete.
8037 (unknown_language_data): Delete la_print_type initializer.
8038 (unknown_language::print_type): New member function.
8039 (auto_language_data): Delete la_print_type initializer.
8040 (auto_language::print_type): New member function.
8041 * language.h (language_data): Delete la_print_type field.
8042 (language_defn::print_type): New function.
8043 (LA_PRINT_TYPE): Update.
8044 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8045 (m2_language::print_type): New member function.
8046 * objc-lang.c (objc_language_data): Delete la_print_type
8047 initializer.
8048 (objc_language::print_type): New member function.
8049 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8050 to opencl_language::print_type.
8051 (opencl_language_data): Delete la_print_type initializer.
8052 (opencl_language::print_type): New member function, implementation
8053 from opencl_print_type.
8054 * p-lang.c (pascal_language_data): Delete la_print_type
8055 initializer.
8056 (pascal_language::print_type): New member function.
8057 * rust-lang.c (rust_print_type): Delete, implementation moved to
8058 rust_language::print_type.
8059 (rust_language_data): Delete la_print_type initializer.
8060 (rust_language::print_type): New member function, implementation
8061 from rust_print_type.
8062
6f827019
AB
80632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8064
8065 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8066 implementation moves to...
8067 (ada_language::sniff_from_mangled_name): ...here. Update return
8068 type.
8069 (ada_language_data): Delete la_sniff_from_mangled_name
8070 initializer.
8071 * c-lang.c (c_language_data): Likewise.
8072 (cplus_language_data): Likewise.
8073 (cplus_language::sniff_from_mangled_name): New member function,
8074 implementation taken from gdb_sniff_from_mangled_name.
8075 (asm_language_data): Delete la_sniff_from_mangled_name
8076 initializer.
8077 (minimal_language_data): Likewise.
8078 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8079 implementation moves to cplus_language::sniff_from_mangled_name.
8080 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8081 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8082 moves to...
8083 (d_language::sniff_from_mangled_name): ...here.
8084 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8085 * f-lang.c (f_language_data): Likewise.
8086 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8087 moves to...
8088 (go_language::sniff_from_mangled_name): ...here.
8089 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8090 * language.c (language_sniff_from_mangled_name): Delete.
8091 (unknown_language_data): Delete la_sniff_from_mangled_name
8092 initializer.
8093 (auto_language_data): Likewise.
8094 * language.h (language_data): Delete la_sniff_from_mangled_name
8095 field.
8096 (language_defn::sniff_from_mangled_name): New function.
8097 (language_sniff_from_mangled_name): Delete declaration.
8098 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8099 field.
8100 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8101 implementation moves to...
8102 (objc_language::sniff_from_mangled_name): ...here.
8103 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8104 * opencl-lang.c (opencl_language_data): Likewise.
8105 * p-lang.c (pascal_language_data): Likewise.
8106 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8107 implementation moves to...
8108 (rust_language::sniff_from_mangled_name): ...here.
8109 (rust_language_data): Delete la_sniff_from_mangled_name
8110 initializer.
8111 * symtab.c (symbol_find_demangled_name): Call
8112 sniff_from_mangled_name member function.
8113
fb8006fd
AB
81142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8115
8116 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8117 initializer.
8118 * c-lang.c (c_language_data): Likewise.
8119 (cplus_language_data): Likewise.
8120 (cplus_language::search_name_hash): New member function.
8121 (asm_language_data): Delete la_search_name_hash initializer.
8122 (minimal_language_data): Likewise.
8123 * d-lang.c (d_language_data): Likewise.
8124 * dictionary.c (default_search_name_hash): Rename to...
8125 (language_defn::search_name_hash): ...this.
8126 * f-lang.c (f_language_data): Likewise.
8127 (f_language::search_name_hash): New member function.
8128 * go-lang.c (go_language_data): Delete la_search_name_hash
8129 initializer.
8130 * language.c (unknown_language_data): Likewise.
8131 (auto_language_data): Likewise.
8132 * language.h (struct language_data): Delete la_search_name_hash
8133 field.
8134 (language_defn::search_name_hash): Declare new member function.
8135 (default_search_name_hash): Delete declaration.
8136 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8137 initializer.
8138 * objc-lang.c (objc_language_data): Likewise.
8139 * opencl-lang.c (opencl_language_data): Likewise.
8140 * p-lang.c (pascal_language_data): Likewise.
8141 * rust-lang.c (rust_language_data): Likewise.
8142 * symtab.c (search_name_hash): Update call.
8143
8e25bafe
AB
81442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8145
8146 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8147 initializer.
8148 * c-lang.c (class compile_instance): Declare.
8149 (c_language_data): Delete la_get_compile_instance initializer.
8150 (c_language::get_compile_instance): New member function.
8151 (cplus_language_data): Delete la_get_compile_instance initializer.
8152 (cplus_language::get_compile_instance): New member function.
8153 (asm_language_data): Delete la_get_compile_instance initializer.
8154 (minimal_language_data): Likewise.
8155 * c-lang.h (c_get_compile_context): Update comment.
8156 (cplus_get_compile_context): Update comment.
8157 * compile/compile.c (compile_to_object): Update calls, don't rely
8158 on function pointer being NULL.
8159 * d-lang.c (d_language_data): Delete la_get_compile_instance
8160 initializer.
8161 * f-lang.c (f_language_data): Likewise.
8162 * go-lang.c (go_language_data): Likewise.
8163 * language.c (unknown_language_data): Likewise.
8164 (auto_language_data): Likewise.
8165 * language.h (language_data): Delete la_get_compile_instance field.
8166 (language_defn::get_compile_instance): New member function.
8167 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8168 initializer.
8169 * objc-lang.c (objc_language_data): Likewise.
8170 * opencl-lang.c (opencl_language_data): Likewise.
8171 * p-lang.c (pascal_language_data): Likewise.
8172 * rust-lang.c (rust_language_data): Likewise.
8173
4009ee92
AB
81742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8175
8176 * ada-lang.c (ada_add_all_symbols): Update comment.
8177 (ada_iterate_over_symbols): Delete, move implementation to...
8178 (ada_language::iterate_over_symbols): ...here, a new member
8179 function, rewrite to use range based for loop.
8180 (ada_language_data): Delete la_iterate_over_symbols initializer.
8181 * c-lang.c (c_language_data): Likewise.
8182 (cplus_language_data): Likewise.
8183 (asm_language_data): Likewise.
8184 (minimal_language_data): Likewise.
8185 * d-lang.c (d_language_data): Likewise.
8186 * f-lang.c (f_language_data): Likewise.
8187 * go-lang.c (go_language_data): Likewise.
8188 * language.c (unknown_language_data): Likewise.
8189 (auto_language_data): Likewise.
8190 * language.h (language_data): Delete la_iterate_over_symbols field.
8191 (language_defn::iterate_over_symbols): New member function.
8192 (LA_ITERATE_OVER_SYMBOLS): Update.
8193 * linespec.c (iterate_over_all_matching_symtabs): Update.
8194 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8195 initializer.
8196 * objc-lang.c (objc_language_data): Likewise.
8197 * opencl-lang.c (opencl_language_data): Likewise.
8198 * p-lang.c (pascal_language_data): Likewise.
8199 * rust-lang.c (rust_language_data): Likewise.
8200
54f4ca46
AB
82012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8202
8203 * ada-lang.c (ada_language_data): Delete
8204 la_lookup_transparent_type initializer.
8205 * c-lang.c (c_language_data): Likewise.
8206 (cplus_language_data): Likewise.
8207 (cplus_language::lookup_transparent_type): New member function.
8208 (asm_language_data): Delete la_lookup_transparent_type
8209 initializer.
8210 (minimal_language_data): Likewise.
8211 * d-lang.c (d_language_data): Likewise.
8212 * f-lang.c (f_language_data): Likewise.
8213 * go-lang.c (go_language_data): Likewise.
8214 * language.c (unknown_language_data): Likewise.
8215 (auto_language_data): Likewise.
8216 * language.h (struct language_data): Delete
8217 la_lookup_transparent_type field.
8218 (language_defn::lookup_transparent_type): New member function.
8219 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8220 initializer.
8221 * objc-lang.c (objc_language_data): Likewise.
8222 * opencl-lang.c (opencl_language_data): Likewise.
8223 * p-lang.c (pascal_language_data): Likewise.
8224 * rust-lang.c (rust_language_data): Likewise.
8225 * symtab.c (symbol_matches_domain): Update call.
8226
1fb314aa
AB
82272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8228
8229 * ada-lang.c (ada_language_arch_info): Delete function, move
8230 implementation to...
8231 (ada_language::language_arch_info): ...here, a new member
8232 function.
8233 (ada_language_data): Delete la_language_arch_info.
8234 * c-lang.c (c_language_data): Likewise.
8235 (c_language::language_arch_info): New member function.
8236 (cplus_language_arch_info): Delete function, move
8237 implementation to...
8238 (cplus_language::language_arch_info): ...here, a new member
8239 function.
8240 (cplus_language_data): Delete la_language_arch_info.
8241 (asm_language_data): Likewise.
8242 (asm_language::language_arch_info): New member function.
8243 (minimal_language_data): Delete la_language_arch_info.
8244 (minimal_language::language_arch_info): New member function.
8245 * d-lang.c (d_language_arch_info): Delete function, move
8246 implementation to...
8247 (d_language::language_arch_info): ...here, a new member
8248 function.
8249 (d_language_data): Delete la_language_arch_info.
8250 * f-lang.c (f_language_arch_info): Delete function, move
8251 implementation to...
8252 (f_language::language_arch_info): ...here, a new member
8253 function.
8254 (f_language_data): Delete la_language_arch_info.
8255 * go-lang.c (go_language_arch_info): Delete function, move
8256 implementation to...
8257 (go_language::language_arch_info): ...here, a new member
8258 function.
8259 (go_language_data): Delete la_language_arch_info.
8260 * language.c (unknown_language_data): Likewise.
8261 (unknown_language::language_arch_info): New member function.
8262 (auto_language_data): Delete la_language_arch_info.
8263 (auto_language::language_arch_info): New member function.
8264 (language_gdbarch_post_init): Update call to
8265 la_language_arch_info.
8266 * language.h (language_data): Delete la_language_arch_info
8267 function pointer.
8268 (language_defn::language_arch_info): New function.
8269 * m2-lang.c (m2_language_arch_info): Delete function, move
8270 implementation to...
8271 (m2_language::language_arch_info): ...here, a new member
8272 function.
8273 (m2_language_data): Delete la_language_arch_info.
8274 * objc-lang.c (objc_language_arch_info): Delete function, move
8275 implementation to...
8276 (objc_language::language_arch_info): ...here, a new member
8277 function.
8278 (objc_language_data): Delete la_language_arch_info.
8279 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8280 implementation to...
8281 (opencl_language::language_arch_info): ...here, a new member
8282 function.
8283 (opencl_language_data): Delete la_language_arch_info.
8284 * p-lang.c (pascal_language_arch_info): Delete function, move
8285 implementation to...
8286 (pascal_language::language_arch_info): ...here, a new member
8287 function.
8288 (pascal_language_data): Delete la_language_arch_info.
8289 * rust-lang.c (rust_language_arch_info): Delete function, move
8290 implementation to...
8291 (rust_language::language_arch_info): ...here, a new member
8292 function.
8293 (rust_language_data): Delete la_language_arch_info.
8294
48448202
AB
82952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8296
8297 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8298 initializer.
8299 * c-lang.c (c_language_data): Likewise.
8300 (cplus_language_data): Likewise.
8301 (cplus_language::pass_by_reference_info): New method.
8302 (asm_language_data): Delete la_pass_by_reference initializer.
8303 (minimal_language_data): Likewise.
8304 * cp-abi.c (cp_pass_by_reference): Remove use of
8305 default_pass_by_reference.
8306 * d-lang.c (d_language_data): Likewise.
8307 * f-lang.c (f_language_data): Likewise.
8308 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8309 default_pass_by_reference.
8310 * go-lang.c (go_language_data): Likewise.
8311 * language.c (language_pass_by_reference): Update.
8312 (default_pass_by_reference): Delete.
8313 (unknown_language_data): Delete la_pass_by_reference
8314 initializer.
8315 (auto_language_data): Likewise.
8316 * language.h (struct language_data): Delete la_pass_by_reference
8317 field.
8318 (language_defn::pass_by_reference_info): New member function.
8319 (default_pass_by_reference): Delete declaration.
8320 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8321 initializer.
8322 * objc-lang.c (objc_language_data): Likewise.
8323 * opencl-lang.c (opencl_language_data): Likewise.
8324 * p-lang.c (pascal_language_data): Likewise.
8325 * rust-lang.c (rust_language_data): Likewise.
8326
15e5fd35
AB
83272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8328
8329 * ada-lang.c (ada_read_var_value): Delete function, move
8330 implementation to...
8331 (ada_language::read_var_value): ...here.
8332 (ada_language_data): Delete la_read_var_value initializer.
8333 * c-lang.c (c_language_data): Likewise.
8334 (cplus_language_data): Likewise.
8335 (minimal_language_data): Likewise.
8336 * d-lang.c (d_language_data): Likewise.
8337 * f-lang.c (f_language_data): Likewise.
8338 * findvar.c (default_read_var_value): Rename to...
8339 (language_defn::read_var_value): ...this.
8340 * findvar.c (read_var_value): Update header comment, and change to
8341 call member function instead of function pointer.
8342 * go-lang.c (go_language_data): Likewise.
8343 * language.c (unknown_language_data): Delete la_read_var_value
8344 initializer.
8345 (auto_language_data): Likewise.
8346 * language.h (struct language_data): Delete la_read_var_value
8347 field.
8348 (language_defn::read_var_value): New member function.
8349 (default_read_var_value): Delete declaration.
8350 * m2-lang.c (m2_language_data): Delete la_read_var_value
8351 initializer.
8352 * objc-lang.c (objc_language_data): Likewise.
8353 * opencl-lang.c (opencl_language_data): Likewise.
8354 * p-lang.c (pascal_language_data): Likewise.
8355 * rust-lang.c (rust_language_data): Likewise.
8356 * value.h (default_read_var_value): Delete declaration.
8357
5bd40f2a
AB
83582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8359
8360 * ada-lang.c (ada_print_array_index): Delete function, move
8361 implementation to...
8362 (ada_language::print_array_index): ...here.
8363 (ada_language_data): Delete la_print_array_index initializer.
8364 * c-lang.c (c_language_data): Likewise.
8365 (cplus_language_data): Likewise.
8366 (minimal_language_data): Likewise.
8367 * d-lang.c (d_language_data): Likewise.
8368 * f-lang.c (f_language_data): Likewise.
8369 * go-lang.c (go_language_data): Likewise.
8370 * language.c (default_print_array_index): Delete function, move
8371 implementation to...
8372 (language_defn::print_array_index): ...here.
8373 (unknown_language_data): Delete la_print_array_index initializer.
8374 (auto_language_data): Likewise.
8375 * language.h (struct language_data): Delete la_print_array_index
8376 field.
8377 (language_defn::print_array_index): New member function.
8378 (LA_PRINT_ARRAY_INDEX): Update.
8379 (default_print_array_index): Delete declaration.
8380 * m2-lang.c (m2_language_data): Delete la_print_array_index
8381 initializer.
8382 * objc-lang.c (objc_language_data): Likewise.
8383 * opencl-lang.c (opencl_language_data): Likewise.
8384 * p-lang.c (pascal_language_data): Likewise.
8385 * rust-lang.c (rust_language_data): Likewise.
8386
0874fd07
AB
83872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8388
8389 * gdb/ada-lang.c (ada_language_defn): Convert to...
8390 (ada_language_data): ...this.
8391 (class ada_language): New class.
8392 (ada_language_defn): New static global.
8393 * gdb/c-lang.c (c_language_defn): Convert to...
8394 (c_language_data): ...this.
8395 (class c_language): New class.
8396 (c_language_defn): New static global.
8397 (cplus_language_defn): Convert to...
8398 (cplus_language_data): ...this.
8399 (class cplus_language): New class.
8400 (cplus_language_defn): New static global.
8401 (asm_language_defn): Convert to...
8402 (asm_language_data): ...this.
8403 (class asm_language): New class.
8404 (asm_language_defn): New static global.
8405 (minimal_language_defn): Convert to...
8406 (minimal_language_data): ...this.
8407 (class minimal_language): New class.
8408 (minimal_language_defn): New static global.
8409 * gdb/d-lang.c (d_language_defn): Convert to...
8410 (d_language_data): ...this.
8411 (class d_language): New class.
8412 (d_language_defn): New static global.
8413 * gdb/f-lang.c (f_language_defn): Convert to...
8414 (f_language_data): ...this.
8415 (class f_language): New class.
8416 (f_language_defn): New static global.
8417 * gdb/go-lang.c (go_language_defn): Convert to...
8418 (go_language_data): ...this.
8419 (class go_language): New class.
8420 (go_language_defn): New static global.
8421 * gdb/language.c (unknown_language_defn): Remove declaration.
8422 (current_language): Initialize to nullptr, real initialization is
8423 moved to _initialize_language.
8424 (languages): Delete global.
8425 (language_defn::languages): Define.
8426 (set_language_command): Use language_defn::languages.
8427 (set_language): Likewise.
8428 (range_error): Likewise.
8429 (language_enum): Likewise.
8430 (language_def): Likewise.
8431 (add_set_language_command): Use language_def::languages for the
8432 language list, and language_def to lookup language pointers.
8433 (skip_language_trampoline): Use language_defn::languages.
8434 (unknown_language_defn): Convert to...
8435 (unknown_language_data): ...this.
8436 (class unknown_language): New class.
8437 (unknown_language_defn): New static global.
8438 (auto_language_defn): Convert to...
8439 (auto_language_data): ...this.
8440 (class auto_language): New class.
8441 (auto_language_defn): New static global.
8442 (language_gdbarch_post_init): Use language_defn::languages.
8443 (_initialize_language): Initialize current_language.
8444 * gdb/language.h (struct language_defn): Rename to...
8445 (struct language_data): ...this.
8446 (struct language_defn): New.
8447 (auto_language_defn): Delete.
8448 (unknown_language_defn): Delete.
8449 (minimal_language_defn): Delete.
8450 (ada_language_defn): Delete.
8451 (asm_language_defn): Delete.
8452 (c_language_defn): Delete.
8453 (cplus_language_defn): Delete.
8454 (d_language_defn): Delete.
8455 (f_language_defn): Delete.
8456 (go_language_defn): Delete.
8457 (m2_language_defn): Delete.
8458 (objc_language_defn): Delete.
8459 (opencl_language_defn): Delete.
8460 (pascal_language_defn): Delete.
8461 (rust_language_defn): Delete.
8462 * gdb/m2-lang.c (m2_language_defn): Convert to...
8463 (m2_language_data): ...this.
8464 (class m2_language): New class.
8465 (m2_language_defn): New static global.
8466 * gdb/objc-lang.c (objc_language_defn): Convert to...
8467 (objc_language_data): ...this.
8468 (class objc_language): New class.
8469 (objc_language_defn): New static global.
8470 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8471 (opencl_language_data): ...this.
8472 (class opencl_language): New class.
8473 (opencl_language_defn): New static global.
8474 * gdb/p-lang.c (pascal_language_defn): Convert to...
8475 (pascal_language_data): ...this.
8476 (class pascal_language): New class.
8477 (pascal_language_defn): New static global.
8478 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8479 language pointer, update comment format.
8480 * gdb/rust-lang.c (rust_language_defn): Convert to...
8481 (rust_language_data): ...this.
8482 (class rust_language): New class.
8483 (rust_language_defn): New static global.
8484
1313c56e
AB
84852020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8486
8487 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8488 member variable.
8489 <m_stmt_at_address>: New member variable.
8490 (lnp_state_machine::record_line): Don't record some lines, update
8491 tracking of is_stmt at the same address.
8492 (lnp_state_machine::lnp_state_machine): Initialise new member
8493 variables.
8494
b7ed9f3d
ST
84952020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8496
8497 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8498 "-include gnu-nat-mig.h".
8499 * gnu-nat-mig.h: New file.
8500 * gnu-nat.c: Include "gnu-nat-mig.h".
8501 (exc_server, msg_reply_server, notify_server,
8502 process_reply_server): Remove declarations.
8503
14a8ad62
ST
85042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8505
8506 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8507 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8508 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8509 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8510 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8511 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8512 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8513 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8514 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8515 to gnu_nat_target class.
8516 * gnu-nat.c: Likewise.
8517 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8518 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8519 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8520 object.
8521 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8522 instead of `gnu_target'.
8523
0af5e106
ST
85242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8525
8526 * i386-gnu-tdep.c: Include "gdbcore.h"
8527 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8528 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8529 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8530 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8531 i386_gnu_sigcontext_addr): New functions
8532 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8533 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8534 tdep.
8535
078f2fc9
ST
85362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8537
8538 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8539 before fork_inferior call. Avoid calling it if target_is_pushed returns
8540 true.
8541
53dff92c
ST
85422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8543
8544 * gnu-nat.h (gnu_target): New variable declaration.
8545 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8546 gnu_target.
8547 * gnu-nat.c (gnu_target): New variable.
8548 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8549 add_thread_silent, and add_thread calls.
8550 (gnu_nat_target::create_inferior): Pass gnu_target to
8551 add_thread_silent, thread_change_ptid call.
8552 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8553 call.
8554
5a8b8627
ST
85552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8556
8557 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8558 (gnu_nat_target::find_memory_regions): Remove unused
8559 `old_address' variable.
8560
366f550a
ST
85612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8562
8563 * gnu-nat.c: Include "gdbarch.h".
8564
f14871bf
ST
85652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8566
8567 * reply_mig_hack.awk (Error return): Cast function through
8568 void *, to bypass compiler function call check.
8569
c6887cfb
ST
85702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8571
8572 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8573 $(srcdir)/reply_mig_hack.awk.
8574
6930bffe
ST
85752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8576
8577 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8578
112c22ed
JG
85792020-05-30 Jonny Grant <jg@jguk.org>
8580
8581 * configure.ac (ACX_BUGURL): change bug URL to https.
8582
f68f85b5
PA
85832020-05-30 Pedro Alves <palves@redhat.com>
8584
8585 * cp-support.c (replace_typedefs_template): New.
8586 (replace_typedefs_qualified_name): Handle
8587 DEMANGLE_COMPONENT_TEMPLATE.
8588
976ca316
SM
85892020-05-29 Simon Marchi <simon.marchi@efficios.com>
8590
8591 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8592 dwarf2/index-cache.h, dwarf2/index-write.c,
8593 dwarf2/index-write.h, dwarf2/line-header.c,
8594 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8595 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8596 variables and fields from `dwarf2_per_objfile` to just
8597 `per_objfile` throughout.
8598
989ade05
SM
85992020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8600
8601 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8602 <push_dwarf_reg_entry_value>: Add comment.
8603
c47bae85
KB
86042020-05-28 Kevin Buettner <kevinb@redhat.com>
8605 Keith Seitz <keiths@redhat.com>
8606
8607 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8608 instead of PyEval_ReleaseLock.
8609 (class gdbpy_gil): Move to earlier in file.
8610 (finalize_python): Set gdb_python_initialized.
8611 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8612 when not initialized.
8613
44486dcf
SM
86142020-05-28 Simon Marchi <simon.marchi@efficios.com>
8615
8616 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8617 <push_dwarf_reg_entry_value>: Remove assert. Override
8618 per_objfile with caller_per_objfile.
8619
f030440d
TV
86202020-05-28 Tom de Vries <tdevries@suse.de>
8621
8622 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8623 PR gold/15646 workaround to symbol kind "type".
8624
f0fbb768
TT
86252020-05-27 Tom Tromey <tromey@adacore.com>
8626
8627 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8628
af0b2a3e
TT
86292020-05-27 Tom Tromey <tromey@adacore.com>
8630
8631 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8632 Use htab_find_with_hash.
8633 <add_abbrev>: Remove "abbrev_number" parameter.
8634 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8635 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8636 (hash_abbrev): Add comment.
8637 (abbrev_table::lookup_abbrev): Move to header file.
8638 (abbrev_table::read): Update.
8639
7d00ffec
TT
86402020-05-27 Tom Tromey <tromey@adacore.com>
8641
8642 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8643 method.
8644 <canonical_name>: New member.
8645 <raw_name>: Rename from "name".
8646 (partial_die_info): Initialize canonical_name.
8647 (scan_partial_symbols): Check raw_name.
8648 (partial_die_parent_scope, partial_die_full_name)
8649 (add_partial_symbol, add_partial_subprogram)
8650 (add_partial_enumeration, load_partial_dies): Use "name" method.
8651 (partial_die_info::name): New method.
8652 (partial_die_info::read, guess_partial_die_structure_name)
8653 (partial_die_info::fixup): Update.
8654
697bba18
TT
86552020-05-27 Tom Tromey <tromey@adacore.com>
8656
8657 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8658 <get_ref_die_offset>: Inline.
8659 <get_ref_die_offset_complaint>: New method.
8660 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8661 (attribute::get_ref_die_offset_complaint): Rename from
8662 get_ref_die_offset. Just issue complaint.
8663
c17ace43
HD
86642020-05-27 Hannes Domani <ssbssa@yahoo.de>
8665
8666 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8667
96445f0b
HD
86682020-05-27 Hannes Domani <ssbssa@yahoo.de>
8669
8670 * exec.c (exec_file_attach): Use errno value of first openp failure.
8671
ac637ec3
HD
86722020-05-27 Hannes Domani <ssbssa@yahoo.de>
8673
8674 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8675 Don't close thread handle.
8676
17ee85fc
TT
86772020-05-27 Tom Tromey <tom@tromey.com>
8678 Simon Marchi <simon.marchi@efficios.com>
8679
8680 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8681 shared_ptr.
8682 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8683 member.
8684 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8685 dwarf2_per_bfd_objfile_data_key>: New globals.
8686 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8687 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8688 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8689 shared.
8690 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8691 short-circuit when sharing.
8692 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8693 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8694
39b16f87
SM
86952020-05-27 Simon Marchi <simon.marchi@efficios.com>
8696
8697 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8698 to...
8699 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8700 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8701
fcf23d5b
SM
87022020-05-27 Simon Marchi <simon.marchi@efficios.com>
8703
8704 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8705 build_name_components, find_name_components_bounds>:
8706 Add per_objfile parameter.
8707 (struct mapped_index) <symbol_name_at>: Likewise.
8708 (struct mapped_debug_names): Remove constructor.
8709 <dwarf2_per_objfile>: Remove field.
8710 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8711 (mapped_index_base::find_name_components_bounds,
8712 mapped_index_base::build_name_components,
8713 dw2_expand_symtabs_matching_symbol): Likewise.
8714 (class mock_mapped_index) <symbol_name_at>: Likewise.
8715 (check_match): Likewise.
8716 (check_find_bounds_finds): Likewise.
8717 (test_mapped_index_find_name_component_bounds): Update.
8718 (CHECK_MATCH): Update.
8719 (dw2_expand_symtabs_matching): Update.
8720 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8721 per_objfile parameter.
8722 <find_vec_in_debug_names>: Likewise.
8723 <m_per_objfile>: New field.
8724 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8725 parameter.
8726 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8727 (dw2_debug_names_iterator::next): Update.
8728 (dw2_debug_names_lookup_symbol): Update.
8729 (dw2_debug_names_expand_symtabs_for_function): Update.
8730 (dw2_debug_names_map_matching_symbols): Update.
8731 (dw2_debug_names_expand_symtabs_matching): Update.
8732 (dwarf2_read_debug_names): Update.
8733
7188ed02
SM
87342020-05-27 Simon Marchi <simon.marchi@efficios.com>
8735
8736 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8737 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8738 move to dwarf2_per_objfile.
8739 <read_in_chain>: Remove.
8740 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8741 remove_all_cus, age_comp_units>: New methods.
8742 <m_dwarf2_cus>: New member.
8743 (struct dwarf2_per_cu_data) <cu>: Remove.
8744 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8745 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8746 moved to methods of dwarf2_per_objfile.
8747 (dwarf2_clear_marks): Remove.
8748 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8749 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8750 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8751 (dwarf2_per_objfile::remove_all_cus): New.
8752 (class free_cached_comp_units) <~free_cached_comp_units>:
8753 Update.
8754 (load_cu): Update.
8755 (dw2_do_instantiate_symtab): Adjust.
8756 (fill_in_sig_entry_from_dwo_entry): Adjust.
8757 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8758 (cutu_reader::cutu_reader): Likewise.
8759 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8760 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8761 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8762 and dwarf2_per_objfile::age_comp_units.
8763 (load_partial_comp_unit): Update.
8764 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8765 (process_queue): Likewise.
8766 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8767 backlink.
8768 (dwarf2_read_addr_index): Likewise.
8769 (follow_die_offset): Likewise.
8770 (dwarf2_fetch_die_loc_sect_off): Likewise.
8771 (dwarf2_fetch_constant_bytes): Likewise.
8772 (dwarf2_fetch_die_type_sect_off): Likewise.
8773 (follow_die_sig_1): Likewise.
8774 (load_full_type_unit): Likewise.
8775 (read_signatured_type): Likewise.
8776 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8777 (dwarf2_cu::~dwarf2_cu): Remove.
8778 (dwarf2_per_objfile::get_cu): New.
8779 (dwarf2_per_objfile::set_cu): New.
8780 (age_cached_comp_units): Rename to...
8781 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8782 to std::unordered_map.
8783 (free_one_cached_comp_unit): Rename to...
8784 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8785 to std::unordered_map.
8786 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8787 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8788 a dwarf2_per_objfile in data.
8789 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8790 (dwarf2_clear_marks): Remove.
8791
2e671100
SM
87922020-05-27 Simon Marchi <simon.marchi@efficios.com>
8793
8794 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8795 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8796 (init_tu_and_read_dwo_dies): Likewise.
8797 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8798 (cutu_reader::cutu_reader): Likewise.
8799 (load_partial_comp_unit): Likewise.
8800 (process_psymtab_comp_unit): Update.
8801 (build_type_psymtabs_1): Update.
8802 (process_skeletonless_type_unit): Update.
8803 (load_full_comp_unit): Update.
8804 (find_partial_die): Update.
8805 (dwarf2_read_addr_index): Update.
8806 (read_signatured_type): Update.
8807
2e6a9f79
SM
88082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8809
8810 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8811 m_header_read_in>: New fields.
8812 <get_header>: New method.
8813 * dwarf2/read.c (per_cu_header_read_in): Remove.
8814 (dwarf2_per_cu_data::get_header): New.
8815 (dwarf2_per_cu_data::addr_size): Update.
8816 (dwarf2_per_cu_data::offset_size): Update.
8817 (dwarf2_per_cu_data::ref_addr_size): Update.
8818
1b555f17
SM
88192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8820
8821 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8822 (dw2_do_instantiate_symtab): Update.
8823 (queue_and_load_all_dwo_tus): Change parameter from
8824 dwarf2_per_cu_data to dwarf2_cu.
8825 (dwarf2_fetch_die_loc_sect_off): Update.
8826 (dwarf2_fetch_constant_bytes): Update.
8827 (dwarf2_fetch_die_type_sect_off): Update.
8828
8fc0b21d
SM
88292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8830
8831 * dwarf2/read.c (process_full_comp_unit,
8832 process_full_type_unit): Remove per_cu, per_objfile paramters.
8833 Add dwarf2_cu parameter.
8834 (process_queue): Update.
8835
168c9250
SM
88362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8837
8838 * dwarf2/read.c (create_cu_from_index_list): Replace
8839 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8840 (create_cus_from_index_list): Likewise.
8841 (create_cus_from_index): Likewise.
8842 (create_signatured_type_table_from_index): Likewise.
8843 (create_cus_from_debug_names_list): Likewise.
8844 (create_cus_from_debug_names): Likewise.
8845 (dwarf2_read_gdb_index): Update.
8846 (dwarf2_read_debug_names): Update.
8847
e286671b
TT
88482020-05-27 Tom Tromey <tom@tromey.com>
8849 Simon Marchi <simon.marchi@efficios.com>
8850
8851 * dwarf2/read.h (struct dwarf2_per_objfile)
8852 <get_type_for_signatured_type, set_type_for_signatured_type>:
8853 New methods.
8854 <m_type_map>: New member.
8855 (struct signatured_type) <type>: Remove.
8856 * dwarf2/read.c
8857 (dwarf2_per_objfile::get_type_for_signatured_type,
8858 dwarf2_per_objfile::set_type_for_signatured_type): New.
8859 (get_signatured_type): Use new methods.
8860
8adb8487
TT
88612020-05-27 Tom Tromey <tom@tromey.com>
8862 Simon Marchi <simon.marchi@efficios.com>
8863
8864 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8865 (struct dwarf2_per_objfile) <type_units>: New member.
8866 <get_type_unit_group_unshareable>: New method.
8867 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8868 num_symtabs, symtabs>: Remove; move to
8869 type_unit_group_unshareable.
8870 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8871 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8872 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8873
127bbf4b
SM
88742020-05-27 Simon Marchi <simon.marchi@efficios.com>
8875
8876 * dwarf2/read.h (struct dwarf2_per_cu_data):
8877 <dwarf2_per_objfile>: Remove.
8878 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8879 dwarf2_per_objfile.
8880 (create_signatured_type_table_from_index): Likewise.
8881 (create_signatured_type_table_from_debug_names): Likewise.
8882 (create_debug_type_hash_table): Likewise.
8883 (fill_in_sig_entry_from_dwo_entry): Likewise.
8884 (create_type_unit_group): Likewise.
8885 (read_comp_units_from_section): Likewise.
8886 (create_cus_hash_table): Likewise.
8887
f6e649dd
SM
88882020-05-27 Simon Marchi <simon.marchi@efficios.com>
8889
8890 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8891 dwarf2_per_cu_data::dwarf2_per_objfile.
8892 (compute_compunit_symtab_includes): Likewise.
8893 (dwarf2_cu::start_symtab): Likewise.
8894
aa66c379
SM
88952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8896
8897 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8898 parameter.
8899 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8900 (read_namespace_alias): Update.
8901 (lookup_die_type): Update.
8902 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8903 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8904 Update.
8905 (disassemble_dwarf_expression): Update.
8906
120ce1b5
SM
89072020-05-27 Simon Marchi <simon.marchi@efficios.com>
8908
8909 * dwarf2/read.h (struct dwarf2_queue_item): Add
8910 dwarf2_per_objfile parameter, assign new parameter.
8911 <per_objfile>: New field.
8912 * dwarf2/read.c (free_one_cached_comp_unit): Add
8913 dwarf2_per_objfile parameter.
8914 (queue_comp_unit): Likewise.
8915 (dw2_do_instantiate_symtab): Update.
8916 (process_psymtab_comp_unit): Update.
8917 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8918 (process_imported_unit_die): Update.
8919 (queue_and_load_dwo_tu): Update.
8920 (follow_die_offset): Update.
8921 (follow_die_sig_1): Update.
8922
9f47c707
SM
89232020-05-27 Simon Marchi <simon.marchi@efficios.com>
8924
8925 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8926 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8927 (read_call_site_scope): Assign per_objfile.
8928 (dwarf2_per_cu_data::objfile): Remove.
8929 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8930 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8931 dwarf2_per_objfile parameter.
8932 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8933 dwarf2_per_objfile parameter.
8934 (dwarf_expr_reg_to_entry_parameter): Add output
8935 dwarf2_per_objfile parameter.
8936 (locexpr_get_frame_base): Update.
8937 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8938 <push_dwarf_reg_entry_value>: Update.
8939 <call_site_to_target_addr>: Update.
8940 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8941 parameter.
8942 (value_of_dwarf_reg_entry): Update.
8943 (rw_pieced_value): Update.
8944 (indirect_synthetic_pointer): Update.
8945 (dwarf2_evaluate_property): Update.
8946 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8947 parameter.
8948 (locexpr_read_variable): Update.
8949 (locexpr_get_symbol_read_needs): Update.
8950 (loclist_read_variable): Update.
8951
14095eb3
SM
89522020-05-27 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8955 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8956 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8957 parameter.
8958 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8959 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8960 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8961 parameter.
8962 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8963 sect_variable_value): Add dwarf2_per_objfile parameter.
8964 (class dwarf_evaluate_loc_desc) <dwarf_call,
8965 dwarf_variable_value>: Update.
8966 (fetch_const_value_from_synthetic_pointer): Add
8967 dwarf2_per_objfile parameter.
8968 (fetch_const_value_from_synthetic_pointer): Update.
8969 (coerced_pieced_ref): Update.
8970 (class symbol_needs_eval_context) <dwarf_call,
8971 dwarf_variable_value>: Update.
8972 (dwarf2_compile_expr_to_ax): Update.
8973
3c3cd3d4
SM
89742020-05-27 Simon Marchi <simon.marchi@efficios.com>
8975
8976 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8977 parameter.
8978 (dwarf2_evaluate_loc_desc_full): Update.
8979
82ca3f51
SM
89802020-05-27 Simon Marchi <simon.marchi@efficios.com>
8981
8982 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8983 parameter.
8984 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8985 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8986 dwarf2_per_objfile parameter.
8987 (decode_debug_loc_dwo_addresses): Likewise.
8988 (dwarf2_find_location_expression): Update.
8989 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8990 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8991 parameter.
8992 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8993 parameter.
8994 (locexpr_describe_location_1): Likewise.
8995 (locexpr_describe_location): Update.
8996
4b167ea1
SM
89972020-05-27 Simon Marchi <simon.marchi@efficios.com>
8998
8999 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9000 Remove.
9001 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9002 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9003 (dwarf2_compile_property_to_c): Update.
9004 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9005 use text offset from objfile.
9006 (locexpr_tracepoint_var_ref): Update.
9007 (locexpr_generate_c_location): Update.
9008 (loclist_describe_location): Update.
9009 (loclist_tracepoint_var_ref): Update.
9010 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9011 dwarf2_per_objfile parameter.
9012 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9013 use text offset from objfile.
9014 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9015
89b07335
SM
90162020-05-27 Simon Marchi <simon.marchi@efficios.com>
9017
9018 * dwarf2/expr.h (struct dwarf_expr_context)
9019 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9020 <offset>: Remove.
9021 <per_objfile>: New member.
9022 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9023 dwarf2_per_objfile parameter. Don't set offset, set
9024 per_objfile.
9025 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9026 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9027 a dwarf2_per_objfile object instead of an offset.
9028 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9029 constructor.
9030 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9031 to dwarf2_expr_executor constructor. Don't set offset.
9032 (dwarf2_fetch_cfa_info): Update.
9033 (struct dwarf2_frame_cache) <text_offset>: Remove.
9034 <per_objfile>: New field.
9035 (dwarf2_frame_cache): Update.
9036 (dwarf2_frame_prev_register): Update.
9037 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9038 <dwarf_evaluate_loc_desc>: Add constructor.
9039 (dwarf2_evaluate_loc_desc_full): Update.
9040 (dwarf2_locexpr_baton_eval): Update.
9041 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9042 Add constructor.
9043 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9044
293e7e51
SM
90452020-05-27 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9048 addr_sized_int_type>: Move to dwarf2_cu.
9049 <int_type>: Move to dwarf2_per_objfile.
9050 (struct dwarf2_per_objfile) <int_type>: Move here.
9051 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9052 addr_sized_int_type>: Move here.
9053 (read_func_scope): Update.
9054 (read_array_type): Update.
9055 (read_tag_string_type): Update.
9056 (attr_to_dynamic_prop): Update.
9057 (dwarf2_per_cu_data::int_type): Rename to...
9058 (dwarf2_per_objfile::int_type): ... this.
9059 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9060 (dwarf2_cu::addr_sized_int_type): ... this.
9061 (read_subrange_type): Update.
9062 (dwarf2_per_cu_data::addr_type): Rename to...
9063 (dwarf2_cu::addr_type): ... this.
9064 (set_die_type): Update.
9065
64874a40
SM
90662020-05-27 Simon Marchi <simon.marchi@efficios.com>
9067
9068 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9069 data through per_cu->cu.
9070
4ab09049
SM
90712020-05-27 Simon Marchi <simon.marchi@efficios.com>
9072
9073 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9074 dwarf2_per_cu_data parameter fo dwarf2_cu.
9075 (lookup_dwo_type_unit): Likewise.
9076 (read_cutu_die_from_dwo): Likewise.
9077 (lookup_dwo_unit): Likewise.
9078 (open_and_init_dwo_file): Likewise.
9079 (lookup_dwo_cutu): Likewise.
9080 (lookup_dwo_comp_unit): Likewise.
9081 (lookup_dwo_type_unit): Likewise.
9082 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9083 (cutu_reader::cutu_reader): Update.
9084
47b14e86
SM
90852020-05-27 Simon Marchi <simon.marchi@efficios.com>
9086
9087 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9088 parameter.
9089 (process_full_type_unit): Likewise.
9090 (process_queue): Update.
9091
43182c09
SM
90922020-05-27 Simon Marchi <simon.marchi@efficios.com>
9093
9094 * dwarf2/read.c (recursively_compute_inclusions): Add
9095 dwarf2_per_objfile parameter.
9096 (compute_compunit_symtab_includes): Likewise.
9097 (process_cu_includes): Update.
9098
7aa104c4
SM
90992020-05-27 Simon Marchi <simon.marchi@efficios.com>
9100
9101 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9102 parameter.
9103 (create_type_unit_group): Update.
9104 (process_psymtab_comp_unit_reader): Update.
9105 (build_type_psymtabs_reader): Update.
9106
e3beb21d
SM
91072020-05-27 Simon Marchi <simon.marchi@efficios.com>
9108
9109 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9110 object through m_this_cu->cu.
9111
d460f660
SM
91122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9113
9114 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9115 the info parameter.
9116 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9117
ab432490
SM
91182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9119
9120 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9121 per_objfile parameter.
9122 (load_full_type_unit): Add per_objfile parameter.
9123 (read_signatured_type): Likewise.
9124 (load_full_comp_unit): Likewise.
9125 (load_cu): Likewise.
9126 (dw2_do_instantiate_symtab): Likewise.
9127 (dw2_get_file_names): Likewise.
9128 (dw2_map_symtabs_matching_filename): Update.
9129 (dw_expand_symtabs_matching_file_matcher): Update.
9130 (dw2_map_symbol_filenames): Update.
9131 (process_psymtab_comp_unit): Add per_objfile parameter.
9132 (build_type_psymtabs_1): Update.
9133 (process_skeletonless_type_unit): Update.
9134 (dwarf2_build_psymtabs_hard): Update.
9135 (load_partial_comp_unit): Add per_objfile parameter.
9136 (scan_partial_symbols): Update.
9137 (load_full_comp_unit): Add per_objfile parameter.
9138 (process_imported_unit_die): Update.
9139 (create_cus_hash_table): Update.
9140 (find_partial_die): Update.
9141 (dwarf2_read_addr_index): Update.
9142 (follow_die_offset): Update.
9143 (dwarf2_fetch_die_loc_sect_off): Update.
9144 (dwarf2_fetch_constant_bytes): Update.
9145 (dwarf2_fetch_die_type_sect_off): Update.
9146 (follow_die_sig_1): Update.
9147 (load_full_type_unit): Add per_objfile parameter.
9148 (read_signatured_type): Likewise.
9149
313bad1b
SM
91502020-05-27 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9153 of objfile_name.
9154
c3699833
SM
91552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9156
9157 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9158 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9159 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9160 field.
9161 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9162 (create_cus_from_index): Update.
9163 (dwarf2_read_gdb_index): Update.
9164 (create_cus_from_debug_names): Update.
9165 (dwarf2_read_debug_names): Update.
9166 (get_abbrev_section_for_cu): Update.
9167 (create_all_comp_units): Update.
9168 (read_attribute_value): Update.
9169 (get_debug_line_section): Update.
9170 * dwarf2/index-cache.c (index_cache::store): Update.
9171 * dwarf2/index-write.c (save_gdb_index_command): Update.
9172 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9173
1859c670
SM
91742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9175
9176 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9177 member.
9178 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9179 dwarf2_per_cu_data::per_bfd.
9180 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9181 (create_type_unit_group): Likewise.
9182 (queue_comp_unit): Remove reference to
9183 per_cu->dwarf2_per_objfile.
9184 (maybe_queue_comp_unit): Likewise.
9185 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9186 (create_cus_hash_table): Assign new field.
9187
5e22e966
SM
91882020-05-27 Simon Marchi <simon.marchi@efficios.com>
9189
9190 * dwarf2/read.c: Replace
9191 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9192 dwarf2_cu->per_objfile throughout.
9193
97a1449a
SM
91942020-05-27 Simon Marchi <simon.marchi@efficios.com>
9195
9196 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9197 parameter, don't use per_cu->dwarf2_per_objfile.
9198 (dw2_instantiate_symtab): Likewise.
9199 (dw2_find_last_source_symtab): Update.
9200 (dw2_map_expand_apply): Update.
9201 (dw2_lookup_symbol): Update.
9202 (dw2_expand_symtabs_for_function): Update.
9203 (dw2_expand_all_symtabs): Update.
9204 (dw2_expand_symtabs_with_fullname): Update.
9205 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9206 don't use per_cu->dwarf2_per_objfile.
9207 (dw2_expand_marked_cus): Update.
9208 (dw2_find_pc_sect_compunit_symtab): Update.
9209 (dw2_debug_names_lookup_symbol): Update.
9210 (dw2_debug_names_expand_symtabs_for_function): Update.
9211 (dw2_debug_names_map_matching_symbols): Update.
9212 (dwarf2_psymtab::expand_psymtab): Update.
9213
9e021579
SM
92142020-05-27 Simon Marchi <simon.marchi@efficios.com>
9215
9216 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9217 <per_objfile>: New member.
9218 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9219 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9220 call to dwarf2_cu.
9221 (cutu_reader::cutu_reader): Update.
9222 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9223
ae090bdb
SM
92242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9225
9226 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9227 struct dwarf2_per_objfile.
9228 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9229 dwarf2_per_bfd.
9230 * dwarf2/read.c (set_die_type): Update.
9231 (get_die_type_at_offset): Update.
9232
af758d11
SM
92332020-05-27 Tom Tromey <tom@tromey.com>
9234 Simon Marchi <simon.marchi@efficios.com>
9235
9236 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9237 method.
9238 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9239 get_symtab, set_symtab>: New methods.
9240 <m_symtabs>: New field.
9241 (struct dwarf2_psymtab): Derive from partial_symtab.
9242 <readin_p, get_compunit_symtab>: Declare methods.
9243 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9244 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9245 New methods.
9246 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9247 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9248 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9249 (dw2_symtab_iter_next, dw2_print_stats)
9250 (dw2_expand_symtabs_with_fullname)
9251 (dw2_expand_symtabs_matching_one)
9252 (dw_expand_symtabs_matching_file_matcher)
9253 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9254 (dw2_debug_names_iterator::next)
9255 (dw2_debug_names_map_matching_symbols)
9256 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9257 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9258 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9259 New methods.
9260 (get_compunit_symtab, process_full_comp_unit)
9261 (process_full_type_unit): Update.
9262 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9263
5989a64e
SM
92642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9265
9266 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9267 then introduce a new dwarf2_per_objfile type.
9268 <read_line_string>: Move to the new dwarf2_per_objfile type.
9269 <objfile>: Likewise.
9270 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9271 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9272 dwarf2_per_objfile->per_bfd.
9273 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9274 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9275 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9276 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9277 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9278 (dwarf2_per_objfile::locate_sections): Rename to...
9279 (dwarf2_per_bfd::locate_sections): ... this.
9280 (dwarf2_per_objfile::get_cutu): Rename to...
9281 (dwarf2_per_bfd::get_cutu): ... this.
9282 (dwarf2_per_objfile::get_cu): Rename to...
9283 (dwarf2_per_bfd::get_cu): ... this.
9284 (dwarf2_per_objfile::get_tu): Rename to...
9285 (dwarf2_per_bfd::get_tu): ... this.
9286 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9287 (dwarf2_per_bfd::allocate_per_cu): ... this.
9288 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9289 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9290 (get_gdb_index_contents_ftype): Change parameter from
9291 dwarf2_per_objfile to dwarf2_per_bfd.
9292 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9293 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9294
a50264ba
TT
92952020-05-27 Tom Tromey <tom@tromey.com>
9296 Simon Marchi <simon.marchi@efficios.com>
9297
9298 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9299 (allocate_piece_closure): Set "per_objfile" member.
9300 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9301 (locexpr_describe_location, loclist_describe_location): Use new
9302 member.
9303 * dwarf2/read.c (read_call_site_scope)
9304 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9305 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9306 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9307 handle_data_member_location): Set per_objfile member.
9308 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9309 member.
9310 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9311
d3473f0c
TT
93122020-05-27 Tom Tromey <tom@tromey.com>
9313
9314 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9315 allocate_signatured_type>: Declare new methods.
9316 <m_num_psymtabs>: New member.
9317 (struct dwarf2_per_cu_data) <index>: New member.
9318 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9319 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9320 (create_cu_from_index_list): Use allocate_per_cu.
9321 (create_signatured_type_table_from_index)
9322 (create_signatured_type_table_from_debug_names)
9323 (create_debug_type_hash_table, add_type_unit)
9324 (read_comp_units_from_section): Use allocate_signatured_type.
9325
5717c425
TT
93262020-05-27 Tom Tromey <tom@tromey.com>
9327
9328 * psymtab.c (partial_map_expand_apply)
9329 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9330 (psym_lookup_global_symbol_language)
9331 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9332 (psym_print_stats, psym_expand_symtabs_for_function)
9333 (psym_map_symbol_filenames, psym_map_matching_symbols)
9334 (psym_expand_symtabs_matching)
9335 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9336 (maintenance_check_psymtabs): Update.
9337 * psympriv.h (struct partial_symtab) <readin_p,
9338 get_compunit_symtab>: Add objfile parameter.
9339 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9340 Likewise.
9341 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9342 get_compunit_symtab>: Likewise.
9343 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9344
45940949
TT
93452020-05-27 Tom Tromey <tom@tromey.com>
9346
9347 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9348 member.
9349 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9350 (create_cu_from_index_list)
9351 (create_signatured_type_table_from_index)
9352 (create_signatured_type_table_from_debug_names)
9353 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9354 (dwarf2_create_include_psymtab)
9355 (create_debug_type_hash_table, add_type_unit)
9356 (create_type_unit_group, read_comp_units_from_section)
9357 (dwarf2_compute_name, create_cus_hash_table)
9358 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9359 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9360 obstack.
9361 (dw2_get_real_path): Likewise. Change argument to
9362 dwarf2_per_objfile.
9363
f8c6d152
LM
93642020-05-27 Luis Machado <luis.machado@linaro.org>
9365
9366 PR tdep/26000
9367 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9368 for ldrd (immediate).
9369
e98d2e6d
PW
93702020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9371
9372 * command.h: Add comment giving the name of class_tui.
9373 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9374 create the fake command for the help for class_tui.
9375
53a47a3e
TT
93762020-05-26 Tom Tromey <tromey@adacore.com>
9377
9378 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9379 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9380 (val_atr): New function.
9381 (value_val_atr): Use it.
9382 * ada-valprint.c (print_optional_low_bound): Change low bound
9383 handling for enums.
9384 (val_print_packed_array_elements): Don't call discrete_position.
9385 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9386 discrete_position for enum types.
9387 * language.c (default_print_array_index): Change type.
9388 * language.h (struct language_defn) <la_print_array_index>: Add
9389 index_type parameter, change type of index_value.
9390 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9391 (default_print_array_index): Update.
9392 * valprint.c (maybe_print_array_index): Don't call
9393 value_from_longest. Update.
9394 (value_print_array_elements): Don't call discrete_position.
9395
0bc2354b
TT
93962020-05-26 Tom Tromey <tromey@adacore.com>
9397
9398 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9399 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9400
1218a4bf
CDA
94012020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9402
9403 PR gdb/13519
9404 * avr-tdep.c (avr_integer_to_address): Return data or code
9405 address accordingly to the second 'type' argument of the
9406 function.
9407
92651b1d
MW
94082020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9409
9410 * infcmd.c, inferior.h: (construct_inferior_arguments):
9411 Moved function from here to gdbsupport/common-inferior.{h,cc}
9412
0a4f5f8c
TT
94132020-05-23 Tom Tromey <tom@tromey.com>
9414
9415 Revert commit eca1f90c:
9416 * NEWS: Remove entry for completion styling.
9417 * completer.c (_rl_completion_prefix_display_length): Move
9418 declaration later.
9419 (gdb_fnprint): Revert.
9420 (gdb_display_match_list_1): Likewise.
9421 * cli/cli-style.c (completion_prefix_style)
9422 (completion_difference_style, completion_suffix_style): Remove.
9423 (_initialize_cli_style): Revert.
9424 * cli/cli-style.h (completion_prefix_style)
9425 (completion_difference_style, completion_suffix_style): Don't
9426 declare.
9427
e08bd6c5
PA
94282020-05-24 Pedro Alves <palves@redhat.com>
9429
9430 * symtab.c (completion_list_add_name): Return boolean indication
9431 of whether the symbol matched.
9432 (completion_list_add_symbol): Don't try to remove C++ aliases if
9433 the symbol didn't match in the first place.
9434 * symtab.h (completion_list_add_name): Return bool.
9435
ceacbf6e
SM
94362020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9437
9438 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9439 type::field.
9440
26f16254
JB
94412020-05-23 Joel Brobecker <brobecker@adacore.com>
9442
9443 GDB 9.2 released.
9444
eca1f90c
TT
94452020-05-23 Tom Tromey <tom@tromey.com>
9446
9447 * NEWS: Add entry for completion styling.
9448 * completer.c (_rl_completion_prefix_display_length): Move
9449 declaration earlier.
9450 (gdb_fnprint): Use completion_style.
9451 (gdb_display_match_list_1): Likewise.
9452 * cli/cli-style.c (completion_prefix_style)
9453 (completion_difference_style, completion_suffix_style): New
9454 globals.
9455 (_initialize_cli_style): Register new globals.
9456 * cli/cli-style.h (completion_prefix_style)
9457 (completion_difference_style, completion_suffix_style): Declare.
9458
51e2cfa2
PA
94592020-05-23 Pedro Alves <palves@redhat.com>
9460
9461 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9462 (parse_escape): Use ISDIGIT instead of isdigit.
9463 (puts_debug): Use gdb_isprint instead of isprint.
9464 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9465 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9466 ISSPACE instead of isspace.
9467 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9468 instead of isspace.
9469 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9470 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9471 instead of isxdigit and ISDIGIT instead of isdigit.
9472
80fc5e77
SM
94732020-05-22 Simon Marchi <simon.marchi@efficios.com>
9474
9475 * gdbtypes.h (struct type) <field>: New method.
9476 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9477 or type::field.
9478
3cabb6b0
SM
94792020-05-22 Simon Marchi <simon.marchi@efficios.com>
9480
9481 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9482 (TYPE_FIELDS): Use type::fields. Change all call sites that
9483 modify the propery to use type::set_fields instead.
9484
1f704f76
SM
94852020-05-22 Simon Marchi <simon.marchi@efficios.com>
9486
9487 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9488 type::num_fields instead.
9489
5e33d5f4
SM
94902020-05-22 Simon Marchi <simon.marchi@efficios.com>
9491
9492 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9493 methods.
9494 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9495 that modify the number of fields to use type::set_num_fields
9496 instead.
9497
9392ebb3
TT
94982020-05-22 Tom Tromey <tromey@adacore.com>
9499
9500 * compile/compile-object-load.h (munmap_list_free): Don't
9501 declare.
9502
7c13f4e8
AB
95032020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9504
9505 * annotate.c (annotate_source_line): Update return type, add call
9506 to update current symtab and line.
9507 * annotate.h (annotate_source_line): Update return type, and
9508 extend header comment.
9509 * source.c (info_line_command): Check annotation_level before
9510 calling annotate_source_line.
9511 * stack.c (print_frame_info): If calling annotate_source_line
9512 returns true, then don't print any other source line information.
9513
aa370940
SM
95142020-05-21 Simon Marchi <simon.marchi@efficios.com>
9515
9516 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9517
84d53fa9
SM
95182020-05-21 Simon Marchi <simon.marchi@efficios.com>
9519
9520 * coffread.c (patch_type): Remove NULL check before xfree.
9521 * corefile.c (set_gnutarget): Likewise.
9522 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9523 * exec.c (build_section_table): Likewise.
9524 * remote.c (remote_target::pass_signals): Likewise.
9525 * utils.c (n_spaces): Likewise.
9526 * cli/cli-script.c (document_command): Likewise.
9527 * i386-windows-tdep.c (core_process_module_section): Likewise.
9528 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9529
9d428aae
SM
95302020-05-20 Simon Marchi <simon.marchi@efficios.com>
9531
9532 * symfile.c (reread_symbols): Clear objfile's section_offsets
9533 vector and section indices, re-compute them by calling
9534 sym_offsets.
9535
250106a7
TT
95362020-05-20 Tom Tromey <tromey@adacore.com>
9537
9538 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9539 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9540
9a0bacfb
TV
95412020-05-20 Tom de Vries <tdevries@suse.de>
9542
9543 PR symtab/25833
9544 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9545
7b958a48
AM
95462020-05-20 Alan Modra <amodra@gmail.com>
9547
9548 PR 25993
9549 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9550 bfd_set_filename.
9551 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9552 passed to bfd_set_filename.
9553 * symfile-mem.c (add_vsyscall_page): Likewise for string
9554 passed to symbol_file_add_from_memory.
9555 (symbol_file_add_from_memory): Make name param a const char* and
9556 don't strdup.
9557
c7e97679
AM
95582020-05-20 Alan Modra <amodra@gmail.com>
9559
9560 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9561 rather than accessing bfd->filename directly.
9562 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9563 and use bfd_section_name.
9564 * dwarf2/frame.c (decode_frame_entry): Likewise.
9565 * exec.c (exec_set_section_address): Likewise.
9566 * solib-aix.c (solib_aix_bfd_open): Likewise.
9567 * stap-probe.c (get_stap_base_address): Likewise.
9568 * symfile.c (reread_symbols): Likewise.
9569
563c591b
TT
95702020-05-19 Tom Tromey <tromey@adacore.com>
9571
9572 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9573
f408d82c
SM
95742020-05-19 Simon Marchi <simon.marchi@efficios.com>
9575
9576 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9577
98c59b52
PA
95782020-05-19 Pedro Alves <palves@redhat.com>
9579
9580 * NEWS (set exec-file-mismatch): Adjust entry.
9581 * exec.c: Include "build-id.h".
9582 (validate_exec_file): Try to match build IDs instead of filenames.
9583 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9584 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9585 and pass down 'warn_if_slow'.
9586 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9587 gdb_bfd_open_closure to pass it down.
9588 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9589
4111f652
PA
95902020-05-19 Pedro Alves <palves@redhat.com>
9591
9592 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9593 * target.c (target_fileio_open_1): Rename to target_fileio_open
9594 and make extern. Use bool.
9595 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9596 (target_fileio_read_alloc_1): Adjust.
9597 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9598 (target_fileio_open_warn_if_slow): Delete declaration.
9599
ad80db5b
PA
96002020-05-19 Pedro Alves <palves@redhat.com>
9601
9602 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9603 Adjust all callers.
9604
1d6ce4d3
YS
96052020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9606
9607 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9608 whether disp is negative.
9609
9005fbbb
SM
96102020-05-19 Simon Marchi <simon.marchi@efficios.com>
9611
9612 * symfile.h (struct symfile_segment_data)
9613 <~symfile_segment_data>: Remove.
9614 <segment_info>: Change to std::vector.
9615 * symfile.c (default_symfile_segments): Update.
9616 * elfread.c (elf_symfile_segments): Update.
9617
68b888ff
SM
96182020-05-19 Simon Marchi <simon.marchi@efficios.com>
9619
9620 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9621 <segments>: New.
9622 <segment_bases, segment_sizes>: Remove.
9623 * symfile.c (default_symfile_segments): Update.
9624 * elfread.c (elf_symfile_segments): Update.
9625 * remote.c (remote_target::get_offsets): Update.
9626 * solib-target.c (solib_target_relocate_section_addresses):
9627 Update.
9628
62982abd
SM
96292020-05-19 Simon Marchi <simon.marchi@efficios.com>
9630
9631 * symfile.h (struct symfile_segment_data): Initialize fields.
9632 <~symfile_segment_data>: Add.
9633 (symfile_segment_data_up): New.
9634 (struct sym_fns) <sym_segments>: Return a
9635 symfile_segment_data_up.
9636 (default_symfile_segments): Return a symfile_segment_data_up.
9637 (free_symfile_segment_data): Remove.
9638 (get_symfile_segment_data): Return a symfile_segment_data_up.
9639 * symfile.c (default_symfile_segments): Likewise.
9640 (get_symfile_segment_data): Likewise.
9641 (free_symfile_segment_data): Remove.
9642 (symfile_find_segment_sections): Update.
9643 * elfread.c (elf_symfile_segments): Return a
9644 symfile_segment_data_up.
9645 * remote.c (remote_target::get_offsets): Update.
9646 * solib-target.c (solib_target_relocate_section_addresses):
9647 Update.
9648 * symfile-debug.c (debug_sym_segments): Return a
9649 symfile_segment_data_up.
9650
7f204339
RO
96512020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9652
e52a0f1b
RO
9653 PR build/25981
9654 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9655 Hardcode register numbers.
9656
7f204339
RO
9657 PR build/25981
9658 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9659 procfs_find_LDT_entry): Remove.
9660 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9661 procfs_find_LDT_entry): Remove.
9662 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9663 Remove.
9664
7f32a4d5
PA
96652020-05-17 Pedro Alves <palves@redhat.com>
9666 Andrew Burgess <andrew.burgess@embecosm.com>
9667 Keno Fischer <keno@juliacomputing.com>
9668
9669 PR gdb/25741
9670 * breakpoint.c (build_target_condition_list): Update comments.
9671 (build_target_command_list): Update comments and skip matching
9672 locations.
9673 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9674 a separate function. Simplify "set breakpoint auto-hw off"
9675 handling.
9676 (insert_breakpoints): Update comment.
9677 (tracepoint_locations_match): New parameter. For breakpoints,
9678 compare location types too, if the caller wants to.
9679 (handle_automatic_hardware_breakpoints): New functions.
9680 (bp_location_is_less_than): Also sort by location type and
9681 hardware breakpoint length.
9682 (update_global_location_list): Handle "set breakpoint auto-hw on"
9683 here.
9684 (update_breakpoint_locations): Ask breakpoint_locations_match to
9685 ignore location types.
9686
7d93a1e0
SM
96872020-05-16 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9690 type::name instead.
9691
d0e39ea2
SM
96922020-05-16 Simon Marchi <simon.marchi@efficios.com>
9693
9694 * gdbtypes.h (struct type) <name, set_name>: New methods.
9695 (TYPE_CODE): Use type::name. Change all call sites used to set
9696 the name to use type::set_name instead.
9697
2dab0c7b
TT
96982020-05-16 Tom Tromey <tom@tromey.com>
9699
9700 * top.c (quit_force): Update.
9701 * infrun.c (handle_no_resumed): Update.
9702 * top.h (all_uis): New function.
9703 (ALL_UIS): Remove.
9704
59f7bd8d
SM
97052020-05-16 Simon Marchi <simon.marchi@efficios.com>
9706
9707 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9708
9bf058f0
PA
97092020-05-16 Pedro Alves <palves@redhat.com>
9710
9711 * ia64-linux-nat.c
9712 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9713 Declare method.
9714 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9715
8f86ae1a
SM
97162020-05-15 Simon Marchi <simon.marchi@efficios.com>
9717
9718 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9719 (sparc64_adi_info): Likewise.
9720
d6bc0792
TT
97212020-05-15 Tom Tromey <tom@tromey.com>
9722
9723 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9724 block_objfile.
9725 (lookup_objfile_from_block): Remove.
9726 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9727 (lookup_global_symbol): Use block_objfile.
9728 * symtab.h (lookup_objfile_from_block): Don't declare.
9729 * printcmd.c (clear_dangling_display_expressions): Use
9730 block_objfile.
9731 * parse.c (operator_check_standard): Use block_objfile.
9732
8c14c3a3
TT
97332020-05-15 Tom Tromey <tom@tromey.com>
9734
9735 * language.c (language_alloc_type_symbol): Set
9736 SYMBOL_SECTION.
9737 * symtab.c (initialize_objfile_symbol): Remove.
9738 (allocate_symbol): Remove.
9739 (allocate_template_symbol): Remove.
9740 * dwarf2/read.c (fixup_go_packaging): Use "new".
9741 (new_symbol): Use "new".
9742 (read_variable): Don't call initialize_objfile_symbol. Use
9743 "new".
9744 (read_func_scope): Use "new".
9745 * xcoffread.c (process_xcoff_symbol): Don't call
9746 initialize_objfile_symbol.
9747 (SYMBOL_DUP): Remove.
9748 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9749 "new".
9750 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9751 (allocate_template_symbol): Don't declare.
9752 (struct symbol): Add copy constructor. Change defaults.
9753 * jit.c (finalize_symtab): Use "new".
9754 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9755 Use "new".
9756 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9757 (common_block_end): Use "new".
9758 * mdebugread.c (parse_symbol): Use "new".
9759 (new_symbol): Likewise.
9760
5b4a1a8d
PW
97612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9762
9763 * NEWS: Mention changes to help and apropos.
9764
57b4f16e
PW
97652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9766
9767 * command.h (enum command_class): Improve comments, document
9768 that class_alias is for user-defined aliases, give the class
9769 name for each class, remove unused class_xdb.
9770 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9771 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9772 by a precise class.
9773 * infcmd.c (_initialize_infcmd): Likewise.
9774 * reverse.c (_initialize_reverse): Likewise.
9775 * stack.c (_initialize_stack): Likewise.
9776 * symfile.c (_initialize_symfile): Likewise.
9777 * tracepoint.c (_initialize_tracepoint): Likewise.
9778
7c05caf7
PW
97792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9780
9781 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9782 when their aliased command is traversed.
9783 (help_cmd): Add fput_command_names_styled call to
9784 output command name and aliases when command has an alias.
9785
3b3aaacb
PW
97862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9787
9788 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9789 * cli/cli-decode.c (help_cmd_list): Declare as static,
9790 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9791 a command together with the command.
9792 (fput_command_name_styled, fput_command_names_styled): New functions.
9793 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9794 fput_command_name_styled.
9795 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9796 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9797
7aa1b46f
PW
97982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9799
9800 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9801 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9802 * command.h (cmd_show_list): Likewise.
9803 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9804 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9805
89bcba74
PW
98062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9807
9808 * unittests/command-def-selftests.c (traverse_command_structure):
9809 Verify all commands of a list have the same prefix command and
9810 that only the top cmdlist commands have a null prefix.
9811
3f4d92eb
PW
98122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9813
9814 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9815 as prefix, not one of its aliases.
9816 (set_cmd_prefix): Remove.
9817 (do_add_cmd): Centralize the setting of the prefix of a command, when
9818 command is defined after its full chain of prefix commands.
9819 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9820 (add_setshow_cmd_full): Likewise.
9821 (update_prefix_field_of_prefixed_commands): New function.
9822 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9823 update_prefix_field_of_prefixed_commands.
9824 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9825 addresses of remote_set_cmdlist and remote_show_cmdlist given
9826 as argument, not the address of an argument.
9827 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9828 * gdb/remote.c (_initialize_remote): Likewise.
9829
0605465f
PW
98302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9831
9832 * cli/cli-cmds.c (alias_command): Check for an existing alias
9833 using lookup_cmd_composition, as valid_command_p is too strict
9834 and forbids aliases that are the prefix of an existing alias
9835 or command.
9836 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9837 command is properly recognised as a valid command.
9838
58e6ac70
PW
98392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9840
9841 * unittests/help-doc-selftests.c: Rename to
9842 unittests/command-def-selftests.c
9843 * unittests/command-def-selftests.c (help_doc_tests): Update some
9844 comments.
9845 (command_structure_tests, traverse_command_structure): New namespace
9846 and function.
9847 (command_structure_invariants_tests): New function.
9848 (_initialize_command_def_selftests) Renamed from
9849 _initialize_help_doc_selftests, register command_structure_invariants
9850 selftest.
9851
a7b9ceb8
PW
98522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9853
9854 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9855 an alias of 'show'.
9856
b2188a06
JB
98572020-05-15 Joel Brobecker <brobecker@adacore.com>
9858
9859 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9860 ada_is_fixed_point_type. Update all callers.
9861 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9862 all callers.
9863 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9864 Update all callers.
9865 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9866 print_fixed_point_type. Update all callers.
9867 * ada-valprint.c (ada_value_print_num): Replace call to
9868 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9869
a51951c2
KB
98702020-05-14 Kevin Buettner <kevinb@redhat.com>
9871
9872 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9873 processors.
9874 (cpu_supports_bts): Add CV_AMD case.
9875
29d6859f
LM
98762020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9877 Simon Marchi <simon.marchi@efficios.com>
9878
9879 * infrun.c (stop_all_threads): Collect multiple wait events at
9880 each pass.
9881
78134374
SM
98822020-05-14 Simon Marchi <simon.marchi@efficios.com>
9883
9884 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9885 type::code instead.
9886
67607e24
SM
98872020-05-14 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * gdbtypes.h (struct type) <code, set_code>: New methods.
9890 (TYPE_CODE): Use type::code. Change all call sites used to set
9891 the code to use type::set_code instead.
9892
a05575d3
TBA
98932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9894 Tom de Vries <tdevries@suse.de>
9895 Pedro Alves <palves@redhat.com>
9896
9897 PR threads/25478
9898 * infrun.c (stop_all_threads): Do NOT ignore
9899 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9900 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9901 received.
9902 (handle_no_resumed): Remove code handling a live inferior with no
9903 threads.
9904 * remote.c (has_single_non_exited_thread): New.
9905 (remote_target::update_thread_list): Do not delete a thread if is
9906 the last thread of the process.
9907 * thread.c (thread_select): Call delete_exited_threads instead of
9908 prune_threads.
9909
6ad82919
TBA
99102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9911
9912 * infrun.c (stop_all_threads): Enable/disable thread events of all
9913 targets. Move a debug message denoting the end of the function
9914 into the SCOPED_EXIT block.
9915
d890404b
TBA
99162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9917
9918 * process-stratum-target.h: Include <set>.
9919 (all_non_exited_process_targets, switch_to_target_no_thread): New
9920 function declarations.
9921 * process-stratum-target.c (all_non_exited_process_targets)
9922 (switch_to_target_no_thread): New function implementations.
9923
293b3ebc
TBA
99242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9925
9926 * infrun.c (handle_inferior_event): Extract out a piece of code
9927 into...
9928 (mark_non_executing_threads): ...this new function.
9929
7ca9b62a
TBA
99302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9931
9932 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9933 use.
9934
fc75c28b
TBA
99352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9936
9937 * regcache.c (regcache_read_pc_protected): New function
9938 implementation that returns 0 if the PC cannot read via
9939 'regcache_read_pc'.
9940 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9941 instead of 'regcache_read_pc'.
9942 (keep_going_pass_signal): Ditto.
9943
a89febbd
TT
99442020-05-13 Tom Tromey <tromey@adacore.com>
9945
9946 * ada-lang.c (align_value): Remove.
9947 (ada_template_to_fixed_record_type_1): Use align_up.
9948
f7e23710
TBA
99492020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9950
9951 * async-event.c: Update the copyright year.
9952 * async-event.h: Update the copyright year.
9953
02ff80c2
SM
99542020-05-12 Simon Marchi <simon.marchi@efficios.com>
9955
9956 * objfiles.h (is_addr_in_objfile,
9957 shared_objfile_contains_address_p): Return bool.
9958 * objfile.c (is_addr_in_objfile,
9959 shared_objfile_contains_address_p): Return bool.
9960
4fd6c7e8
TT
99612020-05-11 Tom Tromey <tromey@adacore.com>
9962
9963 * cli/cli-cmds.c (info_command): Restore.
9964 (_initialize_cli_cmds): Use add_prefix_command for "info".
9965 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9966
5eb68a39
TT
99672020-05-11 Tom Tromey <tromey@adacore.com>
9968
9969 * ada-lang.c (ada_value_primitive_field): Now public.
9970 * ada-lang.h (ada_value_primitive_field): Declare.
9971 * ada-valprint.c (print_field_values): Use
9972 ada_value_primitive_field for wrapper fields.
9973
7666722f
TV
99742020-05-11 Tom de Vries <tdevries@suse.de>
9975
9976 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9977 MODULE_DOMAIN.
9978
3ee6bb11
TV
99792020-05-11 Tom de Vries <tdevries@suse.de>
9980
9981 PR symtab/25941
9982 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9983 with length 0, if not gdb-produced.
9984 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9985
43434996
TV
99862020-05-09 Tom de Vries <tdevries@suse.de>
9987
9988 PR gdb/25955
9989 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9990 calculation.
9991
2f78cffc
TT
99922020-05-09 Tom Tromey <tom@tromey.com>
9993
9994 * top.c (server_command): Now bool.
9995 * top.h (server_command): Now bool.
9996
4f7bc5ed
TT
99972020-05-08 Tom Tromey <tromey@adacore.com>
9998
9999 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10000 already being processed.
10001
8be4b118
TT
100022020-05-08 Tom Tromey <tom@tromey.com>
10003
10004 * printcmd.c (struct display) <next>: Remove.
10005 <display>: New constructor.
10006 <exp_string>: Now a std::string.
10007 <enabled_p>: Now a bool.
10008 (display_number): Move definition earlier.
10009 (displays): Rename from display_chain. Now a std::vector.
10010 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10011 (display_command): Update.
10012 (do_one_display, disable_display)
10013 (enable_disable_display_command, do_enable_disable_display):
10014 Update.
10015 (free_display): Remove.
10016 (clear_displays): Rewrite.
10017 (delete_display): Update.
10018 (map_display_numbers): Use function_view. Remove "data"
10019 parameter. Update.
10020 (do_delete_display): Remove.
10021 (undisplay_command): Update.
10022 (do_one_display, do_displays, disable_display)
10023 (info_display_command): Update.
10024 (do_enable_disable_display): Remove.
10025 (enable_disable_display_command)
10026 (clear_dangling_display_expressions): Update.
10027
94c93c35
TT
100282020-05-08 Tom Tromey <tom@tromey.com>
10029
10030 * symtab.c (set_symbol_cache_size)
10031 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10032 (maintenance_print_symbol_cache_statistics): Update.
10033 * symmisc.c (print_symbol_bcache_statistics)
10034 (print_objfile_statistics, maintenance_print_objfiles)
10035 (maintenance_info_symtabs, maintenance_check_symtabs)
10036 (maintenance_expand_symtabs, maintenance_info_line_tables):
10037 Update.
10038 * symfile-debug.c (set_debug_symfile): Update.
10039 * source.c (forget_cached_source_info): Update.
10040 * python/python.c (gdbpy_progspaces): Update.
10041 * psymtab.c (maintenance_info_psymtabs): Update.
10042 * probe.c (parse_probes): Update.
10043 * linespec.c (iterate_over_all_matching_symtabs)
10044 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10045 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10046 * exec.c (exec_target::close): Update.
10047 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10048 * breakpoint.c (print_one_breakpoint_location)
10049 (create_longjmp_master_breakpoint)
10050 (create_std_terminate_master_breakpoint): Update.
10051 * progspace.c (program_spaces): Now a std::vector.
10052 (maybe_new_address_space): Update.
10053 (add_program_space): Remove.
10054 (program_space::program_space): Update.
10055 (remove_program_space): Update.
10056 (number_of_program_spaces): Remove.
10057 (print_program_space, update_address_spaces): Update.
10058 * progspace.h (program_spaces): Change type.
10059 (ALL_PSPACES): Remove.
10060 (number_of_program_spaces): Don't declare.
10061 (struct program_space) <next>: Remove.
10062
a1fd1ac9
TT
100632020-05-08 Tom Tromey <tom@tromey.com>
10064
10065 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10066 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10067 (enable_break): Update.
10068 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10069 (frv_fdpic_find_canonical_descriptor): Update.
10070 (frv_fetch_objfile_link_map): Update.
10071 * progspace.c (program_space::free_all_objfiles): Update.
10072 (program_space::solibs): New method.
10073 * progspace.h (struct program_space) <solibs>: New method.
10074 * solist.h (master_so_list): Don't declare.
10075 (ALL_SO_LIBS): Remove.
10076 * solib.h (so_list_head): Remove.
10077 (update_solib_list): Update comment.
10078 * solib.c (master_so_list): Remove.
10079 (solib_used, update_solib_list, solib_add)
10080 (info_sharedlibrary_command, clear_solib)
10081 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10082
38eae084
TT
100832020-05-08 Tom Tromey <tom@tromey.com>
10084
10085 * extension.c (extension_languages): Now a std::array.
10086 (ALL_EXTENSION_LANGUAGES): Remove.
10087 (get_ext_lang_defn, get_ext_lang_of_file)
10088 (eval_ext_lang_from_control_command): Update.
10089 (finish_ext_lang_initialization)
10090 (auto_load_ext_lang_scripts_for_objfile)
10091 (ext_lang_type_printers::ext_lang_type_printers)
10092 (apply_ext_lang_type_printers)
10093 (ext_lang_type_printers::~ext_lang_type_printers)
10094 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10095 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10096 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10097 (get_matching_xmethod_workers, ext_lang_colorize)
10098 (ext_lang_before_prompt): Update.
10099 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10100
596dc4ad
TT
101012020-05-08 Tom Tromey <tom@tromey.com>
10102
10103 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10104 overload.
10105 <swap_string, m_string>: Remove.
10106 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10107 Update.
10108 * stabsread.c (define_symbol, read_type): Update.
10109 * linespec.c (find_linespec_symbols): Update.
10110 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10111 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10112 * dbxread.c (read_dbx_symtab): Update.
10113 * cp-support.h (cp_canonicalize_string_full)
10114 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10115 Return unique_xmalloc_ptr.
10116 * cp-support.c (inspect_type): Update.
10117 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10118 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10119 Likewise.
10120 * c-typeprint.c (print_name_maybe_canonical): Update.
10121 * break-catch-throw.c (check_status_exception_catchpoint):
10122 Update.
10123
bf4cb9be
TV
101242020-05-08 Tom de Vries <tdevries@suse.de>
10125
10126 * infrun.c (follow_fork): Copy current_line and current_symtab to
10127 child thread.
10128
a1b68f28
SM
101292020-05-07 Simon Marchi <simon.marchi@efficios.com>
10130
10131 * async-event.c (struct async_signal_handler, struct
10132 async_event_handler): Reformat, remove typedef.
10133
98d48915
SM
101342020-05-07 Simon Marchi <simon.marchi@efficios.com>
10135
10136 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10137 access thistype->main_type->dyn_prop_list directly.
10138
7aa91313
SM
101392020-05-07 Simon Marchi <simon.marchi@efficios.com>
10140
10141 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10142 (remove_dyn_prop): Remove. Update all users to use
10143 type::remove_dyn_prop.
10144 * gdbtypes.c (remove_dyn_prop): Rename to...
10145 (type::remove_dyn_prop): ... this.
10146
5c54719c
SM
101472020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10148
10149 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10150 (add_dyn_prop): Remove. Update all users to use
10151 type::add_dyn_prop.
10152 * gdbtypes.c (add_dyn_prop): Rename to...
10153 (type::add_dyn_prop): ... this.
10154
24e99c6c
SM
101552020-05-07 Simon Marchi <simon.marchi@efficios.com>
10156
10157 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10158 (get_dyn_prop): Remove. Update all users to use
10159 type::dyn_prop.
10160 * gdbtypes.c (get_dyn_prop): Rename to...
10161 (type::dyn_prop): ... this.
10162
0d4bf016
SM
101632020-05-06 Simon Marchi <simon.marchi@efficios.com>
10164
10165 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10166
ac4a4f1c
SM
101672020-05-06 Simon Marchi <simon.marchi@efficios.com>
10168
10169 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10170 instruction, skip it if it's there.
10171
a3bbacc1
SM
101722020-05-05 Simon Marchi <simon.marchi@efficios.com>
10173
10174 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10175
c3236f84
SM
101762020-05-04 Simon Marchi <simon.marchi@efficios.com>
10177
10178 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10179 * gdbtypes.c (recursive_dump_type): Remove use of
10180 TYPE_INCOMPLETE.
10181
3b6acaee
TT
101822020-05-03 Tom Tromey <tom@tromey.com>
10183
10184 * breakpoint.c (catch_command, tcatch_command): Remove.
10185 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10186 add_show_prefix_cmd.
10187 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10188 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10189 Remove.
10190 (add_internal_problem_command): Use add_basic_prefix_cmd,
10191 add_show_prefix_cmd.
10192 * mips-tdep.c (set_mipsfpu_command): Remove.
10193 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10194 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10195 (_initialize_index_cache): Use add_basic_prefix_cmd.
10196 * memattr.c (dummy_cmd): Remove.
10197 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10198 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10199 (_initialize_tui_win): Use add_basic_prefix_cmd,
10200 add_show_prefix_cmd.
10201 * cli/cli-logging.c (set_logging_command): Remove.
10202 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10203 add_show_prefix_cmd.
10204 (show_logging_command): Remove.
10205 * target.c (target_command): Remove.
10206 (add_target): Use add_basic_prefix_cmd.
10207
a51119cd
HD
102082020-05-02 Hannes Domani <ssbssa@yahoo.de>
10209
10210 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10211
652fc23a 102122020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10213
652fc23a
PW
10214 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10215 info_command.
10216
117539e6
KR
102172020-04-30 Kamil Rytarowski <n54@gmx.com>
10218
10219 * nbsd-nat.c (nbsd_enable_proc_events)
10220 (nbsd_nat_target::post_startup_inferior): Add.
10221 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10222 (nbsd_nat_target::update_thread_list): Rewrite.
10223 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10224 "PTRACE_LWP_CREATE".
10225 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10226
102e38eb 102272020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10228
102e38eb
PW
10229 * stack.c (_initialize_stack): Remove duplicated creation
10230 of "frame" command and "f" alias.
10231
ee9d1e5f
HD
102322020-04-30 Hannes Domani <ssbssa@yahoo.de>
10233
10234 PR gdb/18706
10235 * gdbtypes.c (check_typedef): Calculate size of array of
10236 stubbed type.
10237
627c7fb8
HD
102382020-04-30 Hannes Domani <ssbssa@yahoo.de>
10239
10240 PR gdb/15559
10241 * i386-tdep.c (i386_push_dummy_call): Call
10242 i386_thiscall_push_dummy_call.
10243 (i386_thiscall_push_dummy_call): New function.
10244 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10245 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10246 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10247
ffc2844e
SM
102482020-04-29 Simon Marchi <simon.marchi@efficios.com>
10249
10250 * gdbarch.sh (do_read): Add shellcheck disable directive for
10251 warning SC2162.
10252
1207375d
SM
102532020-04-29 Simon Marchi <simon.marchi@efficios.com>
10254
10255 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10256 "referenced but not assigned" warning.
10257
9fdb2916
SM
102582020-04-29 Simon Marchi <simon.marchi@efficios.com>
10259
10260 * gdbarch.sh: Remove code that sets fallbackdefault.
10261
759cea5e
SM
102622020-04-29 Simon Marchi <simon.marchi@efficios.com>
10263
10264 * gdbarch.sh: Use shell operators && and || instead of
10265 -a and -o.
10266
cb02ab24
SM
102672020-04-29 Simon Marchi <simon.marchi@efficios.com>
10268
10269 * gdbarch.sh: Use $(...) instead of `...`.
10270
a6fc5ffc
SM
102712020-04-29 Simon Marchi <simon.marchi@efficios.com>
10272
10273 * gdbarch.sh: Use double quotes around variables.
10274
8d113d13
SM
102752020-04-29 Simon Marchi <simon.marchi@efficios.com>
10276
10277 * gdbarch.sh: Use %s with printf, instead of variables in the
10278 format string.
10279
ed6acedd
TT
102802020-04-29 Tom Tromey <tromey@adacore.com>
10281
10282 PR ada/25875:
10283 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10284 type fields here.
10285 (read_enumeration_type): Call
10286 update_enumeration_type_from_children later. Update comments.
10287 (process_enumeration_scope): Don't create type fields.
10288
b68b1b58
KR
102892020-04-29 Kamil Rytarowski <n54@gmx.com>
10290
10291 * nbsd-tdep.c: Include "xml-syscall.h".
10292 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10293
f94b2e03
KR
102942020-04-29 Kamil Rytarowski <n54@gmx.com>
10295
10296 * nbsd-nat.c: Include "sys/wait.h".
10297 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10298 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10299 (nbsd_nat_target::remove_exec_catchpoint)
10300 (nbsd_nat_target::set_syscall_catchpoint): Add.
10301 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10302 (nbsd_nat_target::insert_exec_catchpoint)
10303 (nbsd_nat_target::remove_exec_catchpoint)
10304 (nbsd_nat_target::set_syscall_catchpoint): Add.
10305 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10306 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10307 `nbsd_get_syscall_number'.
10308
fc49bc72
TT
103092020-04-29 Tom Tromey <tom@tromey.com>
10310
10311 * stack.c (print_block_frame_labels): Remove.
10312
d642b692
HD
103132020-04-29 Hannes Domani <ssbssa@yahoo.de>
10314
10315 PR gdb/17320
10316 * ada-valprint.c (val_print_packed_array_elements): Move array
10317 end bracket to new line.
10318 (ada_val_print_string): Remove extra spaces before first array
10319 element.
10320 * c-valprint.c (c_value_print_array): Likewise.
10321 * m2-valprint.c (m2_print_array_contents): Likewise.
10322 (m2_value_print_inner): Likewise.
10323 * p-valprint.c (pascal_value_print_inner): Likewise.
10324 * valprint.c (generic_val_print_array): Likewise.
10325 (value_print_array_elements): Move first array element and array
10326 end bracket to new line.
10327
ea90f227
TV
103282020-04-29 Tom de Vries <tdevries@suse.de>
10329
10330 PR symtab/25889
10331 * linespec.c (find_method): Fix ix calculation.
10332
4498ef4f
KR
103332020-04-28 Kamil Rytarowski <n54@gmx.com>
10334
10335 * syscalls/update-netbsd.sh: New file.
10336 * syscalls/netbsd.xml: Regenerate.
10337 * data-directory/Makefile.in: Register `netbsd.xml' in
10338 `SYSCALLS_FILES'.
10339
a55e30b5
SM
103402020-04-28 Simon Marchi <simon.marchi@efficios.com>
10341
10342 * syscalls/update-freebsd.sh: Add double quotes.
10343
2b2fbab8
TT
103442020-04-28 Tom Tromey <tom@tromey.com>
10345
10346 * NEWS: Update.
10347 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10348 (cmdpy_init): Allow class_tui.
10349
a65189c9
TV
103502020-04-28 Mark Williams <mark@myosotissp.com>
10351
10352 PR gdb/24480
10353 * dwarf2read.c: Add missing assingments to list_in_scope when
10354 start_symtab was already called.
10355
1b95cdb7
SM
103562020-04-28 Simon Marchi <simon.marchi@efficios.com>
10357
10358 PR gdb/25881
10359 * dwarf2/read.c (offset_map_type): Use
10360 gdb:hash_enum<sect_offset> as hash function.
10361
15cd93d0
TV
103622020-04-28 Tom de Vries <tdevries@suse.de>
10363
10364 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10365 with DW_AT_signature.
10366
1eb39914
SM
103672020-04-27 Simon Marchi <simon.marchi@efficios.com>
10368
10369 * configure.ac: Remove check for fs_base/gs_base in
10370 user_regs_struct.
10371 * configure: Re-generate.
10372 * config.in: Re-generate.
10373 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10374 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10375 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10376
991a3e2e
LM
103772020-04-27 Luis Machado <luis.machado@linaro.org>
10378
10379 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10380 problematic inline frame unwinding situation.
10381 * frame.c (frame_id_computed_p): New function.
10382 * frame.h (frame_id_computed_p): New prototype.
10383
361ba0e8
TT
103842020-04-26 Tom Tromey <tom@tromey.com>
10385
10386 * command.h (enum command_class) <class_pseudo>: Remove.
10387
bc3609fd
PW
103882020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10389
10390 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10391 and whitespace.
10392
b9771db7
KR
103932020-04-25 Kamil Rytarowski <n54@gmx.com>
10394
ec16513e
SM
10395 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10396 `PT_GET_PROCESS_STATE' block.
b9771db7 10397
7151c1af
TT
103982020-04-24 Tom Tromey <tom@tromey.com>
10399
10400 * symtab.h (symbol_get_demangled_name): Don't declare.
10401 * symtab.c (symbol_get_demangled_name): Remove.
10402 (general_symbol_info::natural_name)
10403 (general_symbol_info::demangled_name): Update.
10404
906bb4c5
TT
104052020-04-24 Tom Tromey <tom@tromey.com>
10406
10407 PR rust/25025:
10408 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10409
bcfe6157
TT
104102020-04-24 Tom Tromey <tom@tromey.com>
10411
10412 PR symtab/12707:
10413 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10414 exists.
10415 (new_symbol): Likewise.
10416 * compile/compile-object-load.c (get_out_value_type): Use
10417 symbol_matches_search_name.
10418
f049a313
TT
104192020-04-24 Tom Tromey <tom@tromey.com>
10420
10421 * dwarf2/read.c (add_partial_symbol): Do not call
10422 compute_and_set_names.
10423
76e288d1
TT
104242020-04-24 Tom Tromey <tom@tromey.com>
10425
10426 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10427 overload.
10428
2467f4f6
TT
104292020-04-24 Tom Tromey <tom@tromey.com>
10430
10431 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10432 (add_psymbol_to_list): New overload. Make old overload call new
10433 one.
10434 * psympriv.h (add_psymbol_to_list): New overload.
10435
e61108c9
TT
104362020-04-24 Tom Tromey <tom@tromey.com>
10437
10438 * dwarf2/read.c (partial_die_info::read) <case
10439 DW_AT_linkage_name>: Use value_as_string.
10440 (dwarf2_string_attr): Use value_as_string.
10441 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10442 method.
10443 * dwarf2/attribute.c (attribute::value_as_string): New method.
10444
8c87a452
TT
104452020-04-24 Tom Tromey <tom@tromey.com>
10446
10447 * symtab.c (general_symbol_info::natural_name)
10448 (general_symbol_info::demangled_name): Check for language_rust.
10449
787de330
TT
104502020-04-24 Tom Tromey <tom@tromey.com>
10451
10452 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10453 (dwarf2_physname): ... from here.
10454 (partial_die_info::read): Add Rust "{" hack.
10455
ff985671
TT
104562020-04-24 Tom Tromey <tom@tromey.com>
10457
10458 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10459 method.
10460 (symbol_set_demangled_name): Don't declare.
10461 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10462 symbol_set_demangled_name.
10463 (general_symbol_info::set_language)
10464 (general_symbol_info::compute_and_set_names): Update.
10465 * minsyms.c (minimal_symbol_reader::install): Update.
10466 * dwarf2/read.c (new_symbol): Update.
10467
1acda803
TT
104682020-04-24 Tom Tromey <tromey@adacore.com>
10469
10470 PR python/23662:
10471 * python/py-type.c (convert_field): Handle
10472 FIELD_LOC_KIND_DWARF_BLOCK.
10473 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10474 (typy_get_dynamic): Nw function.
10475 (type_object_getset): Add "dynamic".
10476 * NEWS: Add entry.
10477
d656f129
TT
104782020-04-24 Tom Tromey <tromey@adacore.com>
10479
10480 * ada-typeprint.c (print_choices, print_variant_part)
10481 (print_record_field_types_dynamic): New functions.
10482 (print_record_field_types): Use print_record_field_types_dynamic.
10483
7d79de9a
TT
104842020-04-24 Tom Tromey <tromey@adacore.com>
10485
10486 * dwarf2/read.c (handle_data_member_location): New overload.
10487 (dwarf2_add_field): Use it.
10488 (decode_locdesc): Add "computed" parameter. Update comment.
10489 * gdbtypes.c (is_dynamic_type_internal): Also look for
10490 FIELD_LOC_KIND_DWARF_BLOCK.
10491 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10492 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10493 virtual base classes.
10494 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10495 FIELD_LOC_KIND_DWARF_BLOCK.
10496
f8e89861
TT
104972020-04-24 Tom Tromey <tromey@adacore.com>
10498
10499 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10500 * gdbtypes.c (is_dynamic_type_internal): Check
10501 TYPE_HAS_DYNAMIC_LENGTH.
10502 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10503 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10504 New macros.
10505 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10506 constant.
10507
9c6a1327
TT
105082020-04-24 Tom Tromey <tromey@adacore.com>
10509
10510 * dwarf2/read.c (struct variant_field): Rewrite.
10511 (struct variant_part_builder): New.
10512 (struct nextfield): Remove "variant" field. Add "offset".
10513 (struct field_info): Add "current_variant_part" and
10514 "variant_parts".
10515 (alloc_discriminant_info): Remove.
10516 (alloc_rust_variant): New function.
10517 (quirk_rust_enum): Update.
10518 (dwarf2_add_field): Set "offset" member. Don't handle
10519 DW_TAG_variant_part.
10520 (offset_map_type): New typedef.
10521 (convert_variant_range, create_one_variant)
10522 (create_one_variant_part, create_variant_parts)
10523 (add_variant_property): New functions.
10524 (dwarf2_attach_fields_to_type): Call add_variant_property.
10525 (read_structure_type): Don't handle DW_TAG_variant_part.
10526 (handle_variant_part, handle_variant): New functions.
10527 (handle_struct_member_die): Use them.
10528 (process_structure_scope): Don't handle variant parts.
10529 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10530 (struct discriminant_info): Remove.
10531 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10532 (struct main_type) <flag_discriminated_union>: Remove.
10533 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10534 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10535 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10536 Update.
10537 * valops.c (value_union_variant): Remove.
10538 * value.h (value_union_variant): Don't declare.
10539
b249d2c2
TT
105402020-04-24 Tom Tromey <tromey@adacore.com>
10541
10542 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10543 (ada_value_primitive_packed_val): Update.
10544 * ada-valprint.c (ada_value_print_1): Update.
10545 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10546 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10547 just an address. Use evaluate_for_locexpr_baton.
10548 (dwarf2_evaluate_property): Update.
10549 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10550 array_view.
10551 * findvar.c (default_read_var_value): Update.
10552 * gdbtypes.c (compute_variant_fields_inner)
10553 (resolve_dynamic_type_internal): Update.
10554 (resolve_dynamic_type): Change type of valaddr parameter.
10555 * gdbtypes.h (resolve_dynamic_type): Update.
10556 * valarith.c (value_subscripted_rvalue): Update.
10557 * value.c (value_from_contents_and_address): Update.
10558
61122aa9
TT
105592020-04-24 Tom Tromey <tromey@adacore.com>
10560
10561 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10562 "push_initial_value" parameter.
10563 (dwarf2_evaluate_property): Likewise.
10564 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10565
ef83a141
TT
105662020-04-24 Tom Tromey <tromey@adacore.com>
10567
10568 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10569 (variant::matches, compute_variant_fields_recurse)
10570 (compute_variant_fields_inner, compute_variant_fields): New
10571 functions.
10572 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10573 Use resolved_type after type is made.
10574 (operator==): Add new cases.
10575 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10576 (struct discriminant_range, struct variant, struct variant_part):
10577 New.
10578 (union dynamic_prop_data) <variant_parts, original_type>: New
10579 members.
10580 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10581 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10582 constants.
10583 * value.c (unpack_bits_as_long): Now public.
10584 * value.h (unpack_bits_as_long): Declare.
10585
675127ec
TT
105862020-04-24 Tom Tromey <tromey@adacore.com>
10587
10588 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10589 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10590
9852ceef
HD
105912020-04-24 Hannes Domani <ssbssa@yahoo.de>
10592
10593 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10594
7632c6ce
KR
105952020-04-24 Kamil Rytarowski <n54@gmx.com>
10596
10597 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10598 (remove_fork_catchpoint, post_startup_inferior)
10599 (post_attach): Move...
10600 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10601 (remove_fork_catchpoint, post_startup_inferior)
10602 (post_attach): ...here.
10603 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10604 (remove_fork_catchpoint, post_startup_inferior)
10605 (post_attach): Move...
10606 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10607 (remove_fork_catchpoint, post_startup_inferior)
10608 (post_attach): ...here.
10609
7be2bb4f
TT
106102020-04-24 Tom Tromey <tromey@adacore.com>
10611
10612 * nat/windows-nat.h (struct windows_thread_info)
10613 <pc_adjusted>: New member.
10614 * windows-nat.c (windows_fetch_one_register): Check
10615 pc_adjusted.
10616 (windows_nat_target::get_windows_debug_event)
10617 (windows_nat_target::wait): Set pc_adjusted.
10618
f80cb3b4
TV
106192020-04-24 Tom de Vries <tdevries@suse.de>
10620
10621 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10622 Run gdb-add-index inside temp dir.
10623
29514b87
TT
106242020-04-23 Tom Tromey <tromey@adacore.com>
10625
10626 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10627 in loop.
10628
5939967b
LM
106292020-04-23 Luis Machado <luis.machado@linaro.org>
10630
10631 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10632 get_frame_register instead of gdbarch_unwind_pc.
10633
70bc38f5
TV
106342020-04-23 Tom de Vries <tdevries@suse.de>
10635
10636 * symtab.c (lookup_global_symbol): Prefer def over decl.
10637
de82891c
TV
106382020-04-23 Tom de Vries <tdevries@suse.de>
10639
10640 PR symtab/25807
10641 * block.c (best_symbol, better_symbol): Promote to external.
10642 * block.h (best_symbol, better_symbol): Declare.
10643 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10644 decl.
10645
ecc6c606
TT
106462020-04-23 Tom Tromey <tromey@adacore.com>
10647
10648 PR ada/25837:
10649 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10650 "const char *", not a "const std::string &".
10651 <name_and_matcher::operator==>: Update.
10652 * unittests/lookup_name_info-selftests.c: Change type of
10653 "result".
10654
740480b8
TT
106552020-04-23 Tom Tromey <tom@tromey.com>
10656
10657 * inferior.h (iterate_over_inferiors): Don't declare.
10658 * inferior.c (iterate_over_inferiors): Remove.
10659 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10660 Remove.
10661 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10662 use iterate_over_inferiors.
10663 (darwin_resume_inferior_it)
10664 (struct resume_inferior_threads_param)
10665 (darwin_resume_inferior_threads_it): Remove.
10666 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10667
ae3ab1f0
TV
106682020-04-23 Tom de Vries <tdevries@suse.de>
10669
10670 * blockframe.c (find_pc_partial_function): Use
10671 find_pc_sect_compunit_symtab rather than
10672 objfile->sf->qf->find_pc_sect_compunit_symtab.
10673
317d2668
TV
106742020-04-22 Tom de Vries <tdevries@suse.de>
10675
10676 PR symtab/25764
10677 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10678 in psymtabs.
10679
eea9e357
TV
106802020-04-22 Tom de Vries <tdevries@suse.de>
10681
10682 PR symtab/25801
10683 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10684 symtabs.
10685
3d5afab3
TV
106862020-04-22 Tom de Vries <tdevries@suse.de>
10687
10688 PR symtab/25700
10689 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10690 CU if already created.
10691
d43b7a2d
TBA
106922020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10693
10694 * infrun.c (displaced_step_fixup): Switch to the event_thread
10695 before calling displaced_step_restore, not after.
10696
d89edf9b
MM
106972020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10698
10699 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10700 its inferior is not recorded by us.
10701 (record_btrace_target_open): Replace call to
10702 all_non_exited_threads () with call to current_inferior
10703 ()->non_exited_threads ().
10704 (record_btrace_target::stop_recording): Likewise.
10705 (record_btrace_target::close): Likewise.
10706 (record_btrace_target::wait): Likewise.
10707 (record_btrace_target::record_stop_replaying): Likewise.
10708
5897fd49
MM
107092020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10710
10711 * btrace.c (btrace_enable): Throw an error on double enables and
10712 when enabling recording fails.
10713 (btrace_disable): Throw an error if the thread is not recorded.
10714
1a476b6d
MM
107152020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10716
10717 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10718 request if we do not have a thread_info.
10719
4778a5f8
TV
107202020-04-21 Tom de Vries <tdevries@suse.de>
10721
10722 PR gdb/25471
10723 * thread.c
10724 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10725 exception in get_frame_id.
10726
0fa7617d
TT
107272020-04-20 Tom Tromey <tromey@adacore.com>
10728
10729 * python/python.c (struct gdbpy_event): Mark move constructor as
10730 noexcept.
10731 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10732 constructor as noexcept.
10733 * completer.h (struct completion_result): Mark move constructor as
10734 noexcept.
10735 * completer.c (completion_result::completion_result): Use
10736 initialization style. Don't call reset_match_list.
10737
ad23bda0
MS
107382020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10739
10740 * MAINTAINERS (Write After Approval): Add myself.
10741
45e1f031
TT
107422020-04-18 Tom Tromey <tom@tromey.com>
10743
10744 * windows-tdep.c (init_w32_command_list)
10745 (w32_prefix_command_valid): Restore.
10746 (_initialize_windows_tdep): Call init_w32_command_list.
10747
08feed99
TT
107482020-04-18 Tom Tromey <tom@tromey.com>
10749
10750 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10751 * value.c (value_fn_field): Update.
10752 * valops.c (find_function_in_inferior)
10753 (value_allocate_space_in_inferior): Update.
10754 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10755 Update.
10756 * tui/tui-source.c (tui_source_window::set_contents): Update.
10757 * symtab.c (lookup_global_or_static_symbol)
10758 (find_function_start_sal_1, skip_prologue_sal)
10759 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10760 * symmisc.c (dump_msymbols, dump_symtab_1)
10761 (maintenance_print_one_line_table): Update.
10762 * symfile.c (init_entry_point_info, section_is_mapped)
10763 (list_overlays_command, simple_read_overlay_table)
10764 (simple_overlay_update_1): Update.
10765 * stap-probe.c (handle_stap_probe): Update.
10766 * stabsread.c (dbx_init_float_type, define_symbol)
10767 (read_one_struct_field, read_enum_type, read_range_type): Update.
10768 * source.c (info_line_command): Update.
10769 * python/python.c (gdbpy_source_objfile_script)
10770 (gdbpy_execute_objfile_script): Update.
10771 * python/py-type.c (save_objfile_types): Update.
10772 * python/py-objfile.c (py_free_objfile): Update.
10773 * python/py-inferior.c (python_new_objfile): Update.
10774 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10775 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10776 (maintenance_check_psymtabs): Update.
10777 * printcmd.c (info_address_command): Update.
10778 * objfiles.h (struct objfile) <arch>: New method, from
10779 get_objfile_arch.
10780 (get_objfile_arch): Don't declare.
10781 * objfiles.c (get_objfile_arch): Remove.
10782 (filter_overlapping_sections): Update.
10783 * minsyms.c (msymbol_is_function): Update.
10784 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10785 (output_nondebug_symbol): Update.
10786 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10787 (mdebug_expand_psymtab): Update.
10788 * machoread.c (macho_add_oso_symfile): Update.
10789 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10790 Update.
10791 * linux-fork.c (checkpoint_command): Update.
10792 * linespec.c (convert_linespec_to_sals): Update.
10793 * jit.c (finalize_symtab): Update.
10794 * infrun.c (insert_exception_resume_from_probe): Update.
10795 * ia64-tdep.c (ia64_find_unwind_table): Update.
10796 * hppa-tdep.c (internalize_unwinds): Update.
10797 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10798 Update.
10799 * gcore.c (call_target_sbrk): Update.
10800 * elfread.c (record_minimal_symbol, elf_symtab_read)
10801 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10802 (elf_gnu_ifunc_resolve_by_got): Update.
10803 * dwarf2/read.c (create_addrmap_from_index)
10804 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10805 (read_debug_names_from_section)
10806 (process_psymtab_comp_unit_reader, add_partial_symbol)
10807 (add_partial_subprogram, process_full_comp_unit)
10808 (read_file_scope, read_func_scope, read_lexical_block_scope)
10809 (read_call_site_scope, dwarf2_ranges_read)
10810 (dwarf2_record_block_ranges, dwarf2_add_field)
10811 (mark_common_block_symbol_computed, read_tag_pointer_type)
10812 (read_tag_string_type, dwarf2_init_float_type)
10813 (dwarf2_init_complex_target_type, read_base_type)
10814 (partial_die_info::read, partial_die_info::read)
10815 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10816 (dwarf2_fetch_die_loc_sect_off): Update.
10817 * dwarf2/loc.c (dwarf2_find_location_expression)
10818 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10819 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10820 (dwarf2_loc_desc_get_symbol_read_needs)
10821 (locexpr_describe_location_piece, locexpr_describe_location_1)
10822 (loclist_describe_location): Update.
10823 * dwarf2/index-write.c (write_debug_names): Update.
10824 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10825 * dtrace-probe.c (dtrace_process_dof): Update.
10826 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10827 (process_one_symbol): Update.
10828 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10829 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10830 (coff_read_enum_type): Update.
10831 * cli/cli-cmds.c (edit_command, list_command): Update.
10832 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10833 * breakpoint.c (create_overlay_event_breakpoint)
10834 (create_longjmp_master_breakpoint)
10835 (create_std_terminate_master_breakpoint)
10836 (create_exception_master_breakpoint, get_sal_arch): Update.
10837 * block.c (block_gdbarch): Update.
10838 * annotate.c (annotate_source_line): Update.
10839
0743fc83
TT
108402020-04-17 Tom Tromey <tromey@adacore.com>
10841
10842 * auto-load.c (show_auto_load_cmd): Remove.
10843 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10844 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10845 (maintenance_print_arc_command): Remove.
10846 * tui/tui-win.c (tui_command): Remove.
10847 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10848 * tui/tui-layout.c (tui_layout_command): Remove.
10849 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10850 * python/python.c (user_set_python, user_show_python): Remove.
10851 (_initialize_python): Use add_basic_prefix_cmd,
10852 add_show_prefix_cmd.
10853 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10854 (install_gdb_commands): Use add_basic_prefix_cmd,
10855 add_show_prefix_cmd.
10856 (info_guile_command): Remove.
10857 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10858 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10859 add_show_prefix_cmd.
10860 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10861 Remove do_set and do_show parameters.
10862 * cli/cli-style.c (set_style, show_style): Remove.
10863 (_initialize_cli_style): Use add_basic_prefix_cmd,
10864 add_show_prefix_cmd.
10865 (cli_style_option::add_setshow_commands): Remove do_set and
10866 do_show parameters.
10867 (cli_style_option::add_setshow_commands): Use
10868 add_basic_prefix_cmd, add_show_prefix_cmd.
10869 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10870 (set_style_name): Remove.
10871 * cli/cli-dump.c (dump_command, append_command): Remove.
10872 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10873 (tekhex_dump_command, binary_dump_command)
10874 (binary_append_command): Remove.
10875 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10876 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10877 (init_w32_command_list): Remove; move into ...
10878 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10879 * valprint.c (set_print, show_print, set_print_raw)
10880 (show_print_raw): Remove.
10881 (_initialize_valprint): Use add_basic_prefix_cmd,
10882 add_show_prefix_cmd.
10883 * typeprint.c (set_print_type, show_print_type): Remove.
10884 (_initialize_typeprint): Use add_basic_prefix_cmd,
10885 add_show_prefix_cmd.
10886 * record.c (set_record_command, show_record_command): Remove.
10887 (_initialize_record): Use add_basic_prefix_cmd,
10888 add_show_prefix_cmd.
10889 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10890 add_show_prefix_cmd.
10891 (info_command, show_command, set_debug, show_debug): Remove.
10892 * top.h (set_history, show_history): Don't declare.
10893 * top.c (set_history, show_history): Remove.
10894 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10895 (unset_tdesc_cmd): Remove.
10896 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10897 add_show_prefix_cmd.
10898 * symtab.c (info_module_command): Remove.
10899 (_initialize_symtab): Use add_basic_prefix_cmd.
10900 * symfile.c (overlay_command): Remove.
10901 (_initialize_symfile): Use add_basic_prefix_cmd.
10902 * sparc64-tdep.c (info_adi_command): Remove.
10903 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10904 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10905 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10906 add_show_prefix_cmd.
10907 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10908 (_initialize_serial): Use add_basic_prefix_cmd,
10909 add_show_prefix_cmd.
10910 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10911 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10912 add_show_prefix_cmd.
10913 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10914 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10915 add_show_prefix_cmd.
10916 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10917 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10918 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10919 add_show_prefix_cmd.
10920 * remote.c (remote_command, set_remote_cmd): Remove.
10921 (_initialize_remote): Use add_basic_prefix_cmd.
10922 * record-full.c (set_record_full_command)
10923 (show_record_full_command): Remove.
10924 (_initialize_record_full): Use add_basic_prefix_cmd,
10925 add_show_prefix_cmd.
10926 * record-btrace.c (cmd_set_record_btrace)
10927 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10928 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10929 (cmd_show_record_btrace_pt): Remove.
10930 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10931 add_show_prefix_cmd.
10932 * ravenscar-thread.c (set_ravenscar_command)
10933 (show_ravenscar_command): Remove.
10934 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10935 add_show_prefix_cmd.
10936 * mips-tdep.c (show_mips_command, set_mips_command)
10937 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10938 add_show_prefix_cmd.
10939 * maint.c (maintenance_command, maintenance_info_command)
10940 (maintenance_check_command, maintenance_print_command)
10941 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10942 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10943 add_show_prefix_cmd.
10944 (show_per_command_cmd): Remove.
10945 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10946 Remove.
10947 (maintenance_show_test_settings_cmd): Remove.
10948 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10949 add_show_prefix_cmd.
10950 * maint-test-options.c (maintenance_test_options_command):
10951 Remove.
10952 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10953 * macrocmd.c (macro_command): Remove
10954 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10955 * language.c (set_check, show_check): Remove.
10956 (_initialize_language): Use add_basic_prefix_cmd,
10957 add_show_prefix_cmd.
10958 * infcmd.c (unset_command): Remove.
10959 (_initialize_infcmd): Use add_basic_prefix_cmd.
10960 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10961 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10962 add_show_prefix_cmd.
10963 * go32-nat.c (go32_info_dos_command): Remove.
10964 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10965 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10966 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10967 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10968 (_initialize_frame): Use add_basic_prefix_cmd,
10969 add_show_prefix_cmd.
10970 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10971 (_initialize_dcache): Use add_basic_prefix_cmd,
10972 add_show_prefix_cmd.
10973 * cp-support.c (maint_cplus_command): Remove.
10974 (_initialize_cp_support): Use add_basic_prefix_cmd.
10975 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10976 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10977 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10978 add_basic_prefix_cmd, add_show_prefix_cmd.
10979 * breakpoint.c (save_command): Remove.
10980 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10981 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10982 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10983 add_show_prefix_cmd.
10984 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10985 (set_ada_command, show_ada_command): Remove.
10986 (_initialize_ada_language): Use add_basic_prefix_cmd,
10987 add_show_prefix_cmd.
10988 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10989
3557f442
KR
109902020-04-16 Kamil Rytarowski <n54@gmx.com>
10991
10992 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10993 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10994
16197208
SM
109952020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10996
10997 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10998 warning messages.
10999
00ac85d3
SM
110002020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11001
11002 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11003 import table is not at beginning of .idata section.
11004
381ce63f
PA
110052020-04-16 Pedro Alves <palves@redhat.com>
11006
11007 * inferior.c (delete_inferior): Use delete operator directly
11008 instead of delete_program_space.
11009 * progspace.c (add_program_space): New, factored out from
11010 program_space::program_space.
11011 (remove_program_space): New, factored out from
11012 delete_program_space.
11013 (program_space::program_space): Remove intro comment. Rewrite.
11014 (program_space::~program_space): Remove intro comment. Call
11015 remove_program_space.
11016 (delete_program_space): Delete.
11017 * progspace.h (program_space::program_space): Make explicit. Move
11018 intro comment here, adjusted.
11019 (program_space::~program_space): Move intro comment here,
11020 adjusted.
11021 (delete_program_space): Remove.
11022
a010605f
TT
110232020-04-16 Tom Tromey <tromey@adacore.com>
11024
11025 * windows-nat.c (windows_nat::handle_access_violation): New
11026 function.
11027 * nat/windows-nat.h (handle_access_violation): Declare.
11028 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11029 windows-nat.c. Call handle_access_violation.
11030
efba5c23
TV
110312020-04-16 Tom de Vries <tdevries@suse.de>
11032
11033 PR symtab/25791
11034 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11035 CUs without psymtab.
11036
97ed802d
KB
110372020-04-16 Kevin Buettner <kevinb@redhat.com>
11038
11039 * python/python.c (do_start_initialization): Don't call
11040 PyEval_InitThreads for Python 3.9 and beyond.
11041
c7d64809
KR
110422020-04-15 Kamil Rytarowski <n54@gmx.com>
11043
11044 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11045 thread functions.
11046 (obsd_nat_target::wait): Likewise.
11047
ce127a96
TT
110482020-04-15 Tom Tromey <tromey@adacore.com>
11049
11050 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11051 (DEBUG_EXCEPT): Use debug_printf.
11052
99f1bc6a
AB
110532020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11054
11055 * completer.c (class completion_tracker::completion_hash_entry)
11056 <hash_name>: New member function.
11057 (completion_tracker::discard_completions): New callback to hash a
11058 completion_hash_entry, pass this to htab_create_alloc.
11059
a0e9b532
JT
110602016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11061
11062 * windows-nat.c (windows_make_so): Warn rather than stopping with
11063 an error if realpath() fails.
11064
06ca5dd4
KR
110652020-04-14 Kamil Rytarowski <n54@gmx.com>
11066
11067 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11068 (nbsd_nat_target::info_proc): Add do_status.
11069
194d088f
TV
110702020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11071 Tom de Vries <tdevries@suse.de>
11072
11073 PR symtab/25718
11074 * psympriv.h (struct partial_symtab::read_symtab)
11075 (struct partial_symtab::expand_psymtab)
11076 (struct partial_symtab::read_dependencies): Update comments.
11077 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11078 read_symtab for includer.
11079 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11080 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11081 (struct dwarf2_include_psymtab::m_readin): Remove.
11082 (struct dwarf2_include_psymtab::includer): New member function.
11083 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11084
c1a66c06
TV
110852020-04-14 Tom de Vries <tdevries@suse.de>
11086
11087 PR symtab/25720
11088 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11089 with NULL symbol_matcher and lookup_name.
11090 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11091 and lookup_name.
11092 * dwarf2/read.c (dw2_expand_symtabs_matching)
11093 (dw2_debug_names_expand_symtabs_matching): Same.
11094 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11095 Make lookup_name a pointer. Update comment.
11096 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11097 lookup_name being a pointer.
11098 * symfile.c (expand_symtabs_matching): Same.
11099 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11100 * linespec.c (iterate_over_all_matching_symtabs): Same.
11101
400b5eca
TT
111022020-04-13 Tom Tromey <tom@tromey.com>
11103
11104 * run-on-main-thread.c: Update include.
11105 * unittests/main-thread-selftests.c: Update include.
11106 * tui/tui-win.c: Update include.
11107 * tui/tui-io.c: Update include.
11108 * tui/tui-interp.c: Update include.
11109 * tui/tui-hooks.c: Update include.
11110 * top.h: Update include.
11111 * top.c: Update include.
11112 * ser-base.c: Update include.
11113 * remote.c: Update include.
11114 * remote-notif.c: Update include.
11115 * remote-fileio.c: Update include.
11116 * record-full.c: Update include.
11117 * record-btrace.c: Update include.
11118 * python/python.c: Update include.
11119 * posix-hdep.c: Update include.
11120 * mingw-hdep.c: Update include.
11121 * mi/mi-main.c: Update include.
11122 * mi/mi-interp.c: Update include.
11123 * main.c: Update include.
11124 * linux-nat.c: Update include.
11125 * interps.c: Update include.
11126 * infrun.c: Update include.
11127 * inf-loop.c: Update include.
11128 * event-top.c: Update include.
11129 * event-loop.c: Move to ../gdbsupport/.
11130 * event-loop.h: Move to ../gdbsupport/.
11131 * async-event.h: Update include.
11132 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11133
93b54c8e
TT
111342020-04-13 Tom Tromey <tom@tromey.com>
11135
11136 * tui/tui-win.c: Include async-event.h.
11137 * remote.c: Include async-event.h.
11138 * remote-notif.c: Include async-event.h.
11139 * record-full.c: Include async-event.h.
11140 * record-btrace.c: Include async-event.h.
11141 * infrun.c: Include async-event.h.
11142 * event-top.c: Include async-event.h.
11143 * event-loop.h: Move some declarations to async-event.h.
11144 * event-loop.c: Don't include ser-event.h or top.h. Move some
11145 code to async-event.c.
11146 * async-event.h: New file.
11147 * async-event.c: New file.
11148 * Makefile.in (COMMON_SFILES): Add async-event.c.
11149 (HFILES_NO_SRCDIR): Add async-event.h.
11150
c1cd3163
TT
111512020-04-13 Tom Tromey <tom@tromey.com>
11152
11153 * utils.c (flush_streams): New function.
11154 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11155
29f2bf4f
TT
111562020-04-13 Tom Tromey <tom@tromey.com>
11157
11158 * event-loop.c (handle_file_event): Use warning, not
11159 printf_unfiltered.
11160
98029d02
TT
111612020-04-13 Tom Tromey <tom@tromey.com>
11162
11163 * event-loop.c: Include <chrono>.
11164
06cc9596
TT
111652020-04-13 Tom Tromey <tom@tromey.com>
11166
11167 * gdb_select.h: Move to ../gdbsupport/.
11168 * event-loop.c: Update include path.
11169 * top.c: Update include path.
11170 * ser-base.c: Update include path.
11171 * ui-file.c: Update include path.
11172 * ser-tcp.c: Update include path.
11173 * guile/scm-ports.c: Update include path.
11174 * posix-hdep.c: Update include path.
11175 * ser-unix.c: Update include path.
11176 * gdb_usleep.c: Update include path.
11177 * mingw-hdep.c: Update include path.
11178 * inflow.c: Update include path.
11179 * infrun.c: Update include path.
11180 * event-top.c: Update include path.
11181
8ae8e197
TT
111822020-04-13 Tom Tromey <tom@tromey.com>
11183
11184 * configure: Rebuild.
11185 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11186
58cf28e8
TT
111872020-04-13 Tom Tromey <tom@tromey.com>
11188
11189 * event-loop.h (start_event_loop): Don't declare.
11190 * event-loop.c (start_event_loop): Move...
11191 * main.c (start_event_loop): ...here. Now static.
11192
b7f999ae
SDJ
111932020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11194
11195 * MAINTAINERS: Update my email address.
11196
1085dfd4
KR
111972020-04-12 Kamil Rytarowski <n54@gmx.com>
11198
11199 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11200 IP_ALL.
11201
49d1d1f5
KR
112022020-04-12 Kamil Rytarowski <n54@gmx.com>
11203
11204 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11205 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11206
b4848d2a
KR
112072020-04-12 Kamil Rytarowski <n54@gmx.com>
11208
11209 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11210 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11211
51c133d5
KR
112122020-04-12 Kamil Rytarowski <n54@gmx.com>
11213
11214 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11215
54b8cbd0
KR
112162020-04-11 Kamil Rytarowski <n54@gmx.com>
11217
11218 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11219 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11220 (nbsd_nat_target::info_proc): New functions.
11221 * nbsd-nat.c (kinfo_get_vmmap): New function.
11222 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11223 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11224 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11225 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11226 functions.
11227 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11228 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11229 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11230 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11231 (KINFO_VME_FLAG_GROWS_DOWN): New.
11232
cf83625d
AS
112332020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11234
11235 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11236 bit shift.
11237
0c4311ab
TT
112382020-04-10 Tom Tromey <tromey@adacore.com>
11239
11240 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11241
3e65b3e9
TT
112422020-04-10 Tom Tromey <tromey@adacore.com>
11243
11244 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11245 separate debug files.
11246
13302e95
HD
112472020-04-10 Hannes Domani <ssbssa@yahoo.de>
11248
11249 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11250 Move to...
11251 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11252 ... here.
11253 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11254 Check for STATUS_WX86_BREAKPOINT.
11255 (windows_nat_target::wait): Same.
11256
bdfc1e8a
TV
112572020-04-10 Tom de Vries <tdevries@suse.de>
11258
11259 PR cli/25808
11260 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11261
f4460aec
SM
112622020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11263
11264 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11265 (Write After Approval): Remove Tom de Vries.
11266
a25198bb
BE
112672020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11268
11269 revert partially:
11270 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11271
aac66a4c
SM
11272 * buildsym.c (record_line): Fix undefined behavior and preserve
11273 lines at eof.
a25198bb 11274
206c98a6
KR
112752020-04-09 Kamil Rytarowski <n54@gmx.com>
11276
11277 * auxv.h (svr4_auxv_parse): New.
11278 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11279 and generic_auxv_parse.
11280 (svr4_auxv_parse): Add.
11281 * obsd-tdep.c: Include "auxv.h".
11282 (obsd_auxv_parse): Remove.
11283 (obsd_init_abi): Remove comment.
11284 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11285 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11286 * nbsd-tdep.c: Include "auxv.h".
11287 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11288
71fbdbaf
TT
112892020-04-08 Tom Tromey <tromey@adacore.com>
11290
11291 * nat/windows-nat.h (last_wait_event): Don't declare.
11292 (wait_for_debug_event): Update comment.
11293 * nat/windows-nat.c (last_wait_event): Now static.
11294
2c1d95e8
TT
112952020-04-08 Tom Tromey <tromey@adacore.com>
11296
11297 * windows-nat.c (wait_for_debug_event): Move to
11298 nat/windows-nat.c.
11299 * nat/windows-nat.h (wait_for_debug_event): Declare.
11300 * nat/windows-nat.c (wait_for_debug_event): Move from
11301 windows-nat.c. No longer static.
11302
d2977bc4
TT
113032020-04-08 Tom Tromey <tromey@adacore.com>
11304
11305 * windows-nat.c (get_windows_debug_event): Use
11306 fetch_pending_stop.
11307 * nat/windows-nat.h (fetch_pending_stop): Declare.
11308 * nat/windows-nat.c (fetch_pending_stop): New function.
11309
e758e19c
TT
113102020-04-08 Tom Tromey <tromey@adacore.com>
11311
11312 * windows-nat.c (windows_continue): Use matching_pending_stop and
11313 continue_last_debug_event.
11314 * nat/windows-nat.h (matching_pending_stop)
11315 (continue_last_debug_event): Declare.
11316 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11317 (matching_pending_stop, continue_last_debug_event): New
11318 functions.
11319
8d30e395
TT
113202020-04-08 Tom Tromey <tromey@adacore.com>
11321
11322 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11323 (handle_exception_result): Move to nat/windows-nat.h.
11324 (DEBUG_EXCEPTION_SIMPLE): Remove.
11325 (windows_nat::handle_ms_vc_exception): New function.
11326 (handle_exception): Move to nat/windows-nat.c.
11327 (get_windows_debug_event): Update.
11328 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11329 nat/windows-nat.c.
11330 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11331 (handle_exception_result): Move from windows-nat.c.
11332 (handle_exception): Declare.
11333 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11334 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11335 windows-nat.c.
11336
29de418d
TT
113372020-04-08 Tom Tromey <tromey@adacore.com>
11338
11339 * windows-nat.c (exception_count, event_count): Remove.
11340 (handle_exception, get_windows_debug_event)
11341 (do_initial_windows_stuff): Update.
11342
a816ba18
TT
113432020-04-08 Tom Tromey <tromey@adacore.com>
11344
11345 * windows-nat.c (windows_nat::handle_load_dll)
11346 (windows_nat::handle_unload_dll): Rename. No longer static.
11347 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11348 Declare.
11349
a00caa12
TT
113502020-04-08 Tom Tromey <tromey@adacore.com>
11351
11352 * complaints.h (stop_whining): Declare at top-level.
11353 (complaint): Don't declare stop_whining.
11354
d41b524f
TT
113552020-04-08 Tom Tromey <tromey@adacore.com>
11356
11357 * windows-nat.c (windows_nat::handle_output_debug_string):
11358 Rename. No longer static.
11359 * nat/windows-nat.h (handle_output_debug_string): Declare.
11360
3c76026d
TT
113612020-04-08 Tom Tromey <tromey@adacore.com>
11362
11363 * windows-nat.c (current_process_handle, current_process_id)
11364 (main_thread_id, last_sig, current_event, last_wait_event)
11365 (current_windows_thread, desired_stop_thread_id, pending_stops)
11366 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11367 (display_selectors, fake_create_process)
11368 (get_windows_debug_event): Update.
11369 * nat/windows-nat.h (current_process_handle, current_process_id)
11370 (main_thread_id, last_sig, current_event, last_wait_event)
11371 (current_windows_thread, desired_stop_thread_id, pending_stops)
11372 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11373 * nat/windows-nat.c (current_process_handle, current_process_id)
11374 (main_thread_id, last_sig, current_event, last_wait_event)
11375 (current_windows_thread, desired_stop_thread_id, pending_stops)
11376 (siginfo_er): New globals. Move from windows-nat.c.
11377
9d8679cc
TT
113782020-04-08 Tom Tromey <tromey@adacore.com>
11379
11380 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11381 (handle_load_dll): Update.
11382 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11383
28688adf
TT
113842020-04-08 Tom Tromey <tromey@adacore.com>
11385
11386 * windows-nat.c (enum thread_disposition_type): Move to
11387 nat/windows-nat.h.
11388 (windows_nat::thread_rec): Rename from thread_rec. No longer
11389 static.
11390 (windows_add_thread, windows_nat_target::fetch_registers)
11391 (windows_nat_target::store_registers, handle_exception)
11392 (windows_nat_target::resume, get_windows_debug_event)
11393 (windows_nat_target::get_tib_address)
11394 (windows_nat_target::thread_name)
11395 (windows_nat_target::thread_alive): Update.
11396 * nat/windows-nat.h (enum thread_disposition_type): Move from
11397 windows-nat.c.
11398 (thread_rec): Declare.
11399
4834dad0
TT
114002020-04-08 Tom Tromey <tromey@adacore.com>
11401
11402 * windows-nat.c: Add "using namespace".
11403 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11404 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11405
65bafd5b
TT
114062020-04-08 Tom Tromey <tromey@adacore.com>
11407
11408 * nat/windows-nat.h (struct windows_thread_info): Declare
11409 destructor.
11410 * nat/windows-nat.c (~windows_thread_info): New.
11411
0a4afda3
TT
114122020-04-08 Tom Tromey <tromey@adacore.com>
11413
11414 PR gdb/22992
11415 * windows-nat.c (current_event): Update comment.
11416 (last_wait_event, desired_stop_thread_id): New globals.
11417 (struct pending_stop): New.
11418 (pending_stops): New global.
11419 (windows_nat_target) <stopped_by_sw_breakpoint>
11420 <supports_stopped_by_sw_breakpoint>: New methods.
11421 (windows_fetch_one_register): Add assertions. Adjust PC.
11422 (windows_continue): Handle pending stops. Suspend other threads
11423 when stepping. Use last_wait_event
11424 (wait_for_debug_event): New function.
11425 (get_windows_debug_event): Use wait_for_debug_event. Handle
11426 pending stops. Queue spurious stops.
11427 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11428 (windows_nat_target::kill): Use wait_for_debug_event.
11429 * nat/windows-nat.h (struct windows_thread_info)
11430 <stopped_at_software_breakpoint>: New field.
11431 * nat/windows-nat.c (windows_thread_info::resume): Clear
11432 stopped_at_software_breakpoint.
11433
8e61ebec
TT
114342020-04-08 Tom Tromey <tromey@adacore.com>
11435
11436 * windows-nat.c (enum thread_disposition_type): New.
11437 (thread_rec): Replace "get_context" parameter with "disposition";
11438 change type.
11439 (windows_add_thread, windows_nat_target::fetch_registers)
11440 (windows_nat_target::store_registers, handle_exception)
11441 (windows_nat_target::resume, get_windows_debug_event)
11442 (windows_nat_target::get_tib_address)
11443 (windows_nat_target::thread_name)
11444 (windows_nat_target::thread_alive): Update.
11445
98a03287
TT
114462020-04-08 Tom Tromey <tromey@adacore.com>
11447
11448 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11449 (windows_continue): Use windows_continue::resume.
11450 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11451 resume>: Declare new methods.
11452 * nat/windows-nat.c: New file.
11453 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11454
7c7411bc
TT
114552020-04-08 Tom Tromey <tromey@adacore.com>
11456
11457 * windows-nat.c (windows_add_thread, windows_delete_thread)
11458 (windows_nat_target::fetch_registers)
11459 (windows_nat_target::store_registers, fake_create_process)
11460 (windows_nat_target::resume, windows_nat_target::resume)
11461 (get_windows_debug_event, windows_nat_target::wait)
11462 (windows_nat_target::pid_to_str)
11463 (windows_nat_target::get_tib_address)
11464 (windows_nat_target::get_ada_task_ptid)
11465 (windows_nat_target::thread_name)
11466 (windows_nat_target::thread_alive): Use lwp, not tid.
11467
2950fdf7
TT
114682020-04-08 Tom Tromey <tromey@adacore.com>
11469
11470 * windows-nat.c (handle_exception)
11471 (windows_nat_target::thread_name): Update.
11472 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11473 <name>: Now unique_xmalloc_ptr.
11474
62fe396b
TT
114752020-04-08 Tom Tromey <tromey@adacore.com>
11476
11477 * windows-nat.c (thread_rec)
11478 (windows_nat_target::fetch_registers): Update.
11479 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11480 Update comment.
11481 <debug_registers_changed, reload_context>: Now bool.
11482
e9534bd2
TT
114832020-04-08 Tom Tromey <tromey@adacore.com>
11484
11485 * windows-nat.c (windows_add_thread): Use new.
11486 (windows_init_thread_list, windows_delete_thread): Use delete.
11487 (get_windows_debug_event): Update.
11488 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11489 destructor, and initializers.
11490
ae1f8880
TT
114912020-04-08 Tom Tromey <tromey@adacore.com>
11492
11493 * windows-nat.c (struct windows_thread_info): Remove.
11494 * nat/windows-nat.h: New file.
11495
55a1e039
TT
114962020-04-08 Tom Tromey <tromey@adacore.com>
11497
11498 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11499 (thread_rec, windows_add_thread, windows_delete_thread)
11500 (windows_continue): Update.
11501
93366324
TT
115022020-04-08 Tom Tromey <tromey@adacore.com>
11503
11504 * windows-nat.c (struct windows_thread_info): Remove typedef.
11505 (thread_head): Remove.
11506 (thread_list): New global.
11507 (thread_rec, windows_add_thread, windows_init_thread_list)
11508 (windows_delete_thread, windows_continue): Update.
11509
0f2265e2
SM
115102020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11511
11512 * windows-tdep.h (windows_init_abi): Add comment.
11513 (cygwin_init_abi): New declaration.
11514 * windows-tdep.c: Split signal enumeration in two, one for
11515 Windows and one for Cygwin.
11516 (windows_gdb_signal_to_target): Only deal with signal of the
11517 Windows OS ABI.
11518 (cygwin_gdb_signal_to_target): New function.
11519 (windows_init_abi): Rename to windows_init_abi_common, don't set
11520 gdb_signal_to_target gdbarch method. Add new new function with
11521 this name.
11522 (cygwin_init_abi): New function.
11523 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11524 comment. Don't call windows_init_abi.
11525 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11526 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11527 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11528 i386_windows_init_abi_common, don't call windows_init_abi. Add
11529 a new function of this name.
11530 (i386_cygwin_init_abi): New function.
11531 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11532 OS ABI Cygwin.
11533
3810f182
SM
115342020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11535
11536 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11537 parameter.c.
11538 (dwarf2_read_gdb_index): Update.
11539
063f8e80
KR
115402020-04-07 Kamil Rytarowski <n54@gmx.com>
11541
11542 * nbsd-tdep.c: Include "objfiles.h".
11543 (nbsd_skip_solib_resolver): New.
11544 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11545
85a9510c 115462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11547
11548 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11549 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11550 with DW_LLE_base_addressx are being emitted in DWARFv5.
11551 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11552 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11553 unsigned integer.
11554
9fc3eaae 115552020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11556
11557 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11558 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11559 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11560 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11561 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11562 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11563 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11564
11565
41144253 115662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11567
11568 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11569 (read_loclist_index): New function definition.
11570 (lookup_loclist_base): New function definition.
11571 (read_loclist_header): New function definition.
11572 (dwarf2_cu): Add loclist_base and loclist_header field.
11573 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11574 (read_full_die_1): Read the value of DW_AT_loclists_base.
11575 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11576 (read_attribute_value): Handle DW_FORM_loclistx.
11577 (skip_one_die): Handle DW_FORM_loclistx.
11578 (loclist_header): New structure declaration.
11579 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11580
9f4e76a4
SM
115812020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11582
11583 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11584 constructor. Remove `addr` parameter from other constructor and
11585 add `per_cu` parameter.
11586 * dwarf2/read.c (create_partial_symtab): Update.
11587
25c11aca
TV
115882020-04-07 Tom de Vries <tdevries@suse.de>
11589
11590 PR symtab/25796
11591 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11592 (partial_die_info::fixup): Inherit has_const_value.
11593
5707e24b
TV
115942020-04-07 Tom de Vries <tdevries@suse.de>
11595
11596 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11597 symbols without address.
11598
05f00e22
KR
115992020-04-06 Kamil Rytarowski <n54@gmx.com>
11600
11601 * nbsd-nat.h (struct thread_info): Add forward declaration.
11602 (nbsd_nat_target::thread_alive): Add.
11603 (nbsd_nat_target::thread_name): Likewise.
11604 (nbsd_nat_target::update_thread_list): Likewise.
11605 (update_thread_list::post_attach): Likewise.
11606 (post_attach::pid_to_str): Likewise.
11607 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11608 (nbsd_thread_lister): Add.
11609 (nbsd_nat_target::thread_alive): Likewise.
11610 (nbsd_nat_target::thread_name): Likewise.
11611 (nbsd_add_threads): Likewise.
11612 (update_thread_list::post_attach): Likewise.
11613 (nbsd_nat_target::update_thread_list): Likewise.
11614 (post_attach::pid_to_str): Likewise.
11615
6ee448cc
TT
116162020-04-06 Tom Tromey <tromey@adacore.com>
11617
11618 * ada-valprint.c (print_variant_part): Extract the variant field.
11619 (print_field_values): Use the field as the outer value when
11620 recursing.
11621
dea34e8c
TT
116222020-04-06 Tom Tromey <tromey@adacore.com>
11623
11624 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11625 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11626 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11627 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11628 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11629
93689ce9
TT
116302020-04-06 Tom Tromey <tromey@adacore.com>
11631
11632 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11633 TYPE_CODE_ERROR.
11634
79743962
KR
116352020-04-06 Kamil Rytarowski <n54@gmx.com>
11636
11637 * nbsd-tdep.c: Include "gdbarch.h".
11638 Define enum with NetBSD signal numbers.
11639 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11640 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11641 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11642 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11643 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11644 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11645 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11646 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11647 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11648 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11649 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11650 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11651
9e7c9a03
HD
116522020-04-03 Hannes Domani <ssbssa@yahoo.de>
11653
11654 PR gdb/25325
11655 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11656
d9e49b61
TT
116572020-04-03 Tom Tromey <tromey@adacore.com>
11658
11659 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11660 Read constant block.
11661
e0fc5c3f
SM
116622020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11663
11664 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11665 (gdb_bfd_get_full_section_contents): New declaration.
11666 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11667 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11668 gdb_bfd_get_full_section_contents.
11669
e2ff18a0
SM
116702020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11671
11672 * exec.c (build_section_table): Replace internal_error with
11673 gdb_assert.
11674 (section_table_xfer_memory_partial): Likewise.
11675 * mdebugread.c (parse_partial_symbols): Likewise.
11676 * psymtab.c (lookup_partial_symbol): Likewise.
11677 * utils.c (wrap_here): Likewise.
11678
0830d301
TT
116792020-04-02 Tom Tromey <tromey@adacore.com>
11680
11681 * f-lang.c (build_fortran_types): Use arch_type to initialize
11682 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11683
e7da7f8f
TT
116842020-04-02 Tom Tromey <tromey@adacore.com>
11685
11686 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11687 of attributes.
11688
c90d28ac
AB
116892020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11690 Bernd Edlinger <bernd.edlinger@hotmail.de>
11691 Tom Tromey <tromey@adacore.com>
11692
11693 * buildsym.c (buildsym_compunit::record_line): Remove
11694 deduplication code.
11695
1aa98955
TV
116962020-04-02 Tom de Vries <tdevries@suse.de>
11697
11698 PR ada/24671
11699 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11700
d3214198
TV
117012020-04-02 Tom de Vries <tdevries@suse.de>
11702
11703 * dwarf2/read.c (dwarf2_gdb_index_functions,
11704 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11705 NULL.
11706 * psymtab.c (psym_lookup_global_symbol_language): New function.
11707 (psym_functions): Init psym_lookup_global_symbol_language with
11708 psym_lookup_global_symbol_language.
11709 * symfile-debug.c (debug_sym_quick_functions): Init
11710 lookup_global_symbol_language with NULL.
11711 * symfile.c (set_initial_language): Remove fixme comment.
11712 * symfile.h (struct quick_symbol_functions): Add
11713 lookup_global_symbol_language.
11714 * symtab.c (find_quick_global_symbol_language): New function.
11715 (find_main_name): Use find_quick_global_symbol_language.
11716
2836752f
SM
117172020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11718
11719 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11720
64dc2d4b
BE
117212020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11722
11723 * buildsym.c (record_line): Fix undefined behavior and preserve
11724 lines at eof.
11725
bbe3dc41
BE
117262020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11727
11728 * buildsym.c (record_line): Fix the resizing condition.
11729
6b4a335b
TT
117302020-04-01 Tom Tromey <tom@tromey.com>
11731
11732 * value.h (value_literal_complex): Add comment.
11733 * valops.c (value_literal_complex): Refer to value.h.
11734
3638a098
TT
117352020-04-01 Tom Tromey <tom@tromey.com>
11736
11737 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11738 (scalar_type): New rule, from typebase.
11739 (typebase): Use scalar_type. Recognize complex types.
11740 (field_name): Handle FLOAT_KEYWORD.
11741 (ident_tokens): Add _Complex and __complex__.
11742
c34e8714
TT
117432020-04-01 Tom Tromey <tom@tromey.com>
11744
11745 PR exp/25299:
11746 * valarith.c (promotion_type, complex_binop): New functions.
11747 (scalar_binop): Handle complex numbers. Use promotion_type.
11748 (value_pos, value_neg, value_complement): Handle complex numbers.
11749
fa649bb7
TT
117502020-04-01 Tom Tromey <tom@tromey.com>
11751
11752 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11753 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11754 (parse_number): Handle complex numbers.
11755
981c08ce
TT
117562020-04-01 Tom Tromey <tom@tromey.com>
11757
11758 * c-valprint.c (c_decorations): Change complex suffix to "i".
11759
4c99290d
TT
117602020-04-01 Tom Tromey <tom@tromey.com>
11761
11762 * valprint.c (generic_value_print_complex): Use accessors.
11763 * value.h (value_real_part, value_imaginary_part): Declare.
11764 * valops.c (value_real_part, value_imaginary_part): New
11765 functions.
11766 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11767
5b930b45
TT
117682020-04-01 Tom Tromey <tom@tromey.com>
11769
11770 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11771 (read_range_type): Update.
11772 * mdebugread.c (basic_type): Update.
11773 * go-lang.c (build_go_types): Use init_complex_type.
11774 * gdbtypes.h (struct main_type) <complex_type>: New member.
11775 (init_complex_type): Update.
11776 (arch_complex_type): Don't declare.
11777 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11778 Make name if none given. Use alloc_type_copy. Look for cached
11779 complex type.
11780 (arch_complex_type): Remove.
11781 (gdbtypes_post_init): Use init_complex_type.
11782 * f-lang.c (build_fortran_types): Use init_complex_type.
11783 * dwarf2/read.c (read_base_type): Update.
11784 * d-lang.c (build_d_types): Use init_complex_type.
11785 * ctfread.c (read_base_type): Update.
11786
53cccef1
TBA
117872020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11788
11789 * infrun.c (stop_all_threads): Update assertion, plus when
11790 stopping threads, take into account that we might be trying
11791 to stop an all-stop target.
11792 (stop_waiting): Call 'stop_all_threads' if there exists a
11793 non-stop target.
11794
a0714d30
TBA
117952020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11796
11797 * target.h (exists_non_stop_target): New function declaration.
11798 * target.c (exists_non_stop_target): New function.
11799
60e22c1e
HD
118002020-04-01 Hannes Domani <ssbssa@yahoo.de>
11801
11802 PR gdb/24789
11803 * eval.c (is_integral_or_integral_reference): New function.
11804 (evaluate_subexp_standard): Allow integer references in
11805 pointer arithmetic.
11806
e139a727
TBA
118072020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11808
11809 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11810 check for no ptid in the stop reply when the target is non-stop.
11811
e0802d59
TT
118122020-04-01 Tom Tromey <tromey@adacore.com>
11813
11814 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11815 "name" parameter to rvalue reference. Initialize m_name_holder.
11816 <lookup_name_info>: New overloads.
11817 <name>: Return gdb::string_view.
11818 <c_str>: New method.
11819 <make_ignore_params>: Update.
11820 <search_name_hash>: Update.
11821 <language_lookup_name>: Return const char *.
11822 <m_name>: Change type.
11823 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11824 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11825 (lookup_name_info::match_any): Update.
11826 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11827 Update.
11828 * minsyms.c (linkage_name_str): Update.
11829 * language.c (default_symbol_name_matcher): Update.
11830 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11831 Update.
11832 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11833 (ada_lookup_name_info::ada_lookup_name_info): Update.
11834 (literal_symbol_name_matcher): Update.
11835
8c072cb6
TT
118362020-04-01 Tom Tromey <tromey@adacore.com>
11837
11838 * psymtab.c (psymtab_search_name): Remove function.
11839 (psym_lookup_symbol): Create search name and lookup name here.
11840 (lookup_partial_symbol): Remove "name" parameter; add
11841 lookup_name.
11842 (psym_expand_symtabs_for_function): Update.
11843
6f29a534
TT
118442020-03-31 Joel Jones <joelkevinjones@gmail.com>
11845
11846 PR tui/25597:
11847 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11848
af62665e
TT
118492020-03-31 Tom Tromey <tromey@adacore.com>
11850
11851 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11852 memcpy.
11853
d1a89da5
NC
118542020-03-30 Nelson Chu <nelson.chu@sifive.com>
11855
11856 * features/riscv/32bit-csr.xml: Regenerated.
11857 * features/riscv/64bit-csr.xml: Regenerated.
11858
d8af9068
TT
118592020-03-30 Tom Tromey <tromey@adacore.com>
11860
11861 * ada-valprint.c (print_variant_part): Update.
11862 * ada-lang.h (ada_which_variant_applies): Update.
11863 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11864 outer_valaddr parameters; replace with "outer" value parameter.
11865 (to_fixed_variant_branch_type): Update.
11866
227c0bf4
PFC
118672020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11868
11869 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11870 <list>. Remove inclusion of observable.h.
11871 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11872 (struct arch_lwp_info): New struct.
11873 (class ppc_linux_dreg_interface): New class.
11874 (struct ppc_linux_process_info): New struct.
11875 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11876 <low_new_clone, low_forget_process, low_prepare_to_resume>
11877 <copy_thread_dreg_state, mark_thread_stale>
11878 <mark_debug_registers_changed, register_hw_breakpoint>
11879 <clear_hw_breakpoint, register_wp, clear_wp>
11880 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11881 <num_memory_accesses, get_trigger_type>
11882 <create_watchpoint_request, hwdebug_point_cmp>
11883 <init_arch_lwp_info, get_arch_lwp_info>
11884 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11885 methods.
11886 <struct ptid_hash>: New inner struct.
11887 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11888 members.
11889 (saved_dabr_value, hwdebug_info, max_slots_number)
11890 (struct hw_break_tuple, struct thread_points, ppc_threads)
11891 (have_ptrace_hwdebug_interface)
11892 (hwdebug_find_thread_points_by_tid)
11893 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11894 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11895 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11896 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11897 use m_dreg_interface.
11898 (hwdebug_point_cmp): Change to...
11899 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11900 reference arguments instead of pointers.
11901 (ppc_linux_nat_target::ranged_break_num_registers): Use
11902 m_dreg_interface.
11903 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11904 m_dreg_interface. Call register_hw_breakpoint.
11905 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11906 m_dreg_interface. Call clear_hw_breakpoint.
11907 (get_trigger_type): Change to...
11908 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11909 comment.
11910 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11911 use m_dreg_interface. Call register_hw_breakpoint.
11912 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11913 use m_dreg_interface. Call clear_hw_breakpoint.
11914 (can_use_watchpoint_cond_accel): Change to...
11915 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11916 method. Update comment, use m_dreg_interface and
11917 m_process_info.
11918 (calculate_dvc): Change to...
11919 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11920 m_dreg_interface.
11921 (num_memory_accesses): Change to...
11922 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11923 (check_condition): Change to...
11924 (ppc_linux_nat_target::check_condition): ...this method.
11925 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11926 comment, use m_dreg_interface.
11927 (create_watchpoint_request): Change to...
11928 (ppc_linux_nat_target::create_watchpoint_request): ...this
11929 method. Use m_dreg_interface.
11930 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11931 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11932 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11933 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11934 (ppc_linux_nat_target::low_forget_process)
11935 (ppc_linux_nat_target::low_new_fork)
11936 (ppc_linux_nat_target::low_new_clone)
11937 (ppc_linux_nat_target::low_delete_thread)
11938 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11939 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11940 only call mark_thread_stale.
11941 (ppc_linux_thread_exit): Remove.
11942 (ppc_linux_nat_target::stopped_data_address): Change to...
11943 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11944 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11945 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11946 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11947 comment. Call low_stopped_data_address.
11948 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11949 m_dreg_interface.
11950 (ppc_linux_nat_target::masked_watch_num_registers): Use
11951 m_dreg_interface.
11952 (ppc_linux_nat_target::copy_thread_dreg_state)
11953 (ppc_linux_nat_target::mark_thread_stale)
11954 (ppc_linux_nat_target::mark_debug_registers_changed)
11955 (ppc_linux_nat_target::register_hw_breakpoint)
11956 (ppc_linux_nat_target::clear_hw_breakpoint)
11957 (ppc_linux_nat_target::register_wp)
11958 (ppc_linux_nat_target::clear_wp)
11959 (ppc_linux_nat_target::init_arch_lwp_info)
11960 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11961 (_initialize_ppc_linux_nat): Remove observer callback.
11962
4db10d8f
PFC
119632020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11964
11965 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11966 (ppc_linux_nat_target::auxv_parse)
11967 (ppc_linux_nat_target::read_description)
11968 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11969 Move up.
11970
1310c1b0
PFC
119712020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11972
11973 * linux-nat.h (low_new_clone): New method.
11974 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11975
69b037c3
SM
119762020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11977
11978 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11979 (dbx_expand_psymtab): ... this.
11980 (start_psymtab): Update.
11981 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11982 (mdebug_expand_psymtab): ... this.
11983 (parse_partial_symbols): Update.
11984 (new_psymtab): Update.
11985 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11986 (xcoff_expand_psymtab): ... this.
11987 (xcoff_start_psymtab): Update.
11988
48993951
SM
119892020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11990
11991 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11992 <expand_dependencies>: ... this.
11993 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11994 (partial_symtab::expand_dependencies): ... this.
11995 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11996 Update.
11997 (dwarf2_psymtab::expand_psymtab): Update.
11998 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11999 * mdebugread.c (psymtab_to_symtab_1): Update.
12000 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12001
3ad83046
SM
120022020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12003
12004 * psympriv.h (discard_psymtab): Remove.
12005 * dbxread.c (dbx_end_psymtab): Update.
12006 * xcoffread.c (xcoff_end_psymtab): Update.
12007
4d1b9ab6
TT
120082020-03-28 Tom Tromey <tom@tromey.com>
12009
12010 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12011 comment.
12012
f1749218
TT
120132020-03-28 Tom Tromey <tom@tromey.com>
12014
12015 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12016
ebea7626
HD
120172020-03-27 Hannes Domani <ssbssa@yahoo.de>
12018
12019 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12020
a879b4d5
JB
120212020-03-26 John Baldwin <jhb@FreeBSD.org>
12022
12023 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12024
0826b30a
TT
120252020-03-26 Tom Tromey <tom@tromey.com>
12026
12027 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12028 (mark_common_block_symbol_computed, read_tag_string_type)
12029 (attr_to_dynamic_prop, read_subrange_type): Update.
12030 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12031 to be methods on struct attribute.
12032 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12033 (read_call_site_scope, partial_die_info::read)
12034 (partial_die_info::read, lookup_die_type, follow_die_ref):
12035 Update.
12036 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12037 from dwarf2_get_ref_die_offset.
12038 (attribute::constant_value): New method, from
12039 dwarf2_get_attr_constant_value.
12040 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12041 Declare method.
12042 <constant_value>: New method.
12043
2b2558bf
TT
120442020-03-26 Tom Tromey <tom@tromey.com>
12045
12046 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12047 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12048 (dwarf_type_encoding_name): Move to stringify.c.
12049 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12050 * dwarf2/stringify.c: New file.
12051 * dwarf2/stringify.h: New file.
12052
eeb64781
TT
120532020-03-26 Tom Tromey <tom@tromey.com>
12054
12055 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12056 Rewrite.
12057
a39fdb41
TT
120582020-03-26 Tom Tromey <tom@tromey.com>
12059
12060 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12061 methods.
12062 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12063 (lookup_ranges_base): Likewise.
12064 (read_cutu_die_from_dwo, read_full_die_1): Update.
12065
436c571c
TT
120662020-03-26 Tom Tromey <tom@tromey.com>
12067
12068 * dwarf2/read.c (read_import_statement, read_file_scope)
12069 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12070 (read_lexical_block_scope, read_call_site_scope)
12071 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12072 (handle_struct_member_die, process_structure_scope)
12073 (update_enumeration_type_from_children)
12074 (process_enumeration_scope, read_array_type, read_common_block)
12075 (read_namespace, read_module, read_subroutine_type): Update.
12076 (sibling_die): Remove.
12077
052c8bb8
TT
120782020-03-26 Tom Tromey <tom@tromey.com>
12079
12080 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12081 (build_type_psymtabs_reader, read_structure_type)
12082 (read_enumeration_type, read_full_die_1): Update.
12083 (dwarf2_attr_no_follow): Move to die.h.
12084 * dwarf2/die.h (struct die_info) <attr>: New method.
12085
2b24b6e4
TT
120862020-03-26 Tom Tromey <tom@tromey.com>
12087
12088 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12089 <base_address>: Now an optional.
12090 (dwarf2_find_base_address, dwarf2_rnglists_process)
12091 (dwarf2_ranges_process, fill_in_loclist_baton)
12092 (dwarf2_symbol_mark_computed): Update.
12093
c2d50fd0
TT
120942020-03-26 Tom Tromey <tom@tromey.com>
12095
12096 * dwarf2/read.c (struct die_info): Move to die.h.
12097 * dwarf2/die.h: New file.
12098
0df7ad3a
TT
120992020-03-26 Tom Tromey <tom@tromey.com>
12100
12101 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12102 * dwarf2/read.c
12103 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12104 Move to line-header.c.
12105 (read_checked_initial_length_and_offset, read_formatted_entries):
12106 Likewise.
12107 (dwarf_decode_line_header): Split into two.
12108 * dwarf2/line-header.c
12109 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12110 Move from read.c.
12111 (read_checked_initial_length_and_offset, read_formatted_entries):
12112 Likewise.
12113 (dwarf_decode_line_header): New function, split from read.c.
12114
86c0bb4c
TT
121152020-03-26 Tom Tromey <tom@tromey.com>
12116
12117 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12118 Declare method.
12119 * dwarf2/read.c (read_attribute_value): Update.
12120 (dwarf2_per_objfile::read_line_string): Rename from
12121 read_indirect_line_string.
12122 (read_formatted_entries): Update.
12123
2ef46c2f
TT
121242020-03-26 Tom Tromey <tom@tromey.com>
12125
12126 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12127 variable.
12128
4f9c1eda
TT
121292020-03-26 Tom Tromey <tom@tromey.com>
12130
12131 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12132 const.
12133 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12134 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12135 parameter const.
12136
5a0e026f
TT
121372020-03-26 Tom Tromey <tom@tromey.com>
12138
12139 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12140 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12141 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12142 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12143
8844c11b
TT
121442020-03-26 Tom Tromey <tom@tromey.com>
12145
12146 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12147 file_names_size, file_full_name, file_file_name>: Use const.
12148 <file_name_at, file_names>: Add const overload.
12149 * dwarf2/line-header.c (line_header::file_file_name)
12150 (line_header::file_full_name): Update.
12151
c90ec28a
TT
121522020-03-26 Tom Tromey <tom@tromey.com>
12153
12154 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12155 (macro_start_file, consume_improper_spaces)
12156 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12157 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12158 (dwarf_decode_macros): Move to macro.c.
12159 * dwarf2/macro.c: New file.
12160 * dwarf2/macro.h: New file.
12161 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12162
4f44ae6c
TT
121632020-03-26 Tom Tromey <tom@tromey.com>
12164
12165 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12166 method.
12167 * dwarf2/section.c: New method. From
12168 read_indirect_string_at_offset_from.
12169 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12170 (read_indirect_string_at_offset_from): Move to section.c.
12171 (read_indirect_string_at_offset): Rewrite.
12172 (read_indirect_line_string_at_offset): Remove.
12173 (read_indirect_string, read_indirect_line_string)
12174 (dwarf_decode_macro_bytes): Update.
12175
a0194fa8
TT
121762020-03-26 Tom Tromey <tom@tromey.com>
12177
12178 * dwarf2/section.h (struct dwarf2_section_info)
12179 <overload_complaint>: Declare.
12180 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12181 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12182 Rename from dwarf2_section_buffer_overflow_complaint.
12183 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12184 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12185
3d27bbdb
TT
121862020-03-26 Tom Tromey <tom@tromey.com>
12187
12188 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12189 Declare.
12190 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12191 Move from read.c.
12192 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12193 to section.c.
12194
9eac9650
TT
121952020-03-26 Tom Tromey <tom@tromey.com>
12196
12197 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12198
bf80d710
TT
121992020-03-26 Tom Tromey <tom@tromey.com>
12200
12201 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12202 "builder".
12203 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12204 parameter.
12205 (dwarf_decode_macros): Update.
12206
0314b390
TT
122072020-03-26 Tom Tromey <tom@tromey.com>
12208
12209 * dwarf2/read.c (read_attribute_value): Update.
12210 (read_indirect_string_from_dwz): Move to dwz.c; change into
12211 method.
12212 (dwarf_decode_macro_bytes): Update.
12213 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12214 * dwarf2/dwz.c: New file.
12215 * Makefile.in (COMMON_SFILES): Add dwz.c.
12216
9fda78b6
TT
122172020-03-26 Tom Tromey <tom@tromey.com>
12218
12219 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12220 * dwarf2/read.c: Add include.
12221 * dwarf2/index-write.c: Add include.
12222 * dwarf2/index-cache.c: Add include.
12223 * dwarf2/dwz.h: New file.
12224
33aa3c10
TT
122252020-03-25 Tom Tromey <tom@tromey.com>
12226
12227 * compile/compile-object-load.c (get_out_value_type): Mention
12228 correct symbol name in error message.
12229
d503b685
HD
122302020-03-25 Hannes Domani <ssbssa@yahoo.de>
12231
12232 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12233
7b1eff95
TV
122342020-03-25 Tom de Vries <tdevries@suse.de>
12235
12236 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12237 * symmisc.c (dump_symtab_1): Print user and includes fields.
12238 (maintenance_info_symtabs): Same.
12239
dd895392
AB
122402020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12241
12242 PR gdb/25534
12243 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12244 (riscv_regcache_cooked_write): New function.
12245 (riscv_push_dummy_call): Use new function.
12246 (riscv_return_value): Likewise.
12247
5ab2fbf1
SM
122482020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12249
12250 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12251 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12252 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12253 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12254 * infrun.c (follow_fork): Likewise.
12255 (follow_fork_inferior): Likewise.
12256 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12257 * linux-nat.h (class linux_nat_target): Likewise.
12258 * remote.c (class remote_target) <follow_fork>: Likewise.
12259 (remote_target::follow_fork): Likewise.
12260 * target-delegates.c: Re-generate.
12261 * target.c (default_follow_fork): Likewise.
12262 (target_follow_fork): Likewise.
12263 * target.h (struct target_ops) <follow_fork>: Likewise.
12264 (target_follow_fork): Likewise.
12265
a64fafb5
TV
122662020-03-24 Tom de Vries <tdevries@suse.de>
12267
12268 * psymtab.c (maintenance_info_psymtabs): Print user field.
12269
fe26d3a3
TT
122702020-03-20 Tom Tromey <tromey@adacore.com>
12271
12272 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12273 const.
12274 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12275 const.
12276
c884cc46
SM
122772020-03-20 Simon Marchi <simon.marchi@efficios.com>
12278
12279 * ptrace.m4: Don't check for ptrace declaration.
12280 * config.in: Re-generate.
12281 * configure: Re-generate.
12282 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12283 not defined.
12284
1ff700c2
KR
122852020-03-20 Kamil Rytarowski <n54@gmx.com>
12286
12287 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12288 `PTRACE_TYPE_RET'.
12289 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12290 * sparc-nat.c (gdb_ptrace): Likewise.
12291 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12292
f7d4f0b1
TT
122932020-03-20 Tom Tromey <tromey@adacore.com>
12294
12295 * c-exp.y (lex_one_token): Fix assert.
12296
f67210ff
TT
122972020-03-20 Tom Tromey <tromey@adacore.com>
12298
12299 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12300 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12301 strncpy call.
12302
1773be9e
TT
123032020-03-20 Tom Tromey <tromey@adacore.com>
12304
12305 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12306
70304be9
TT
123072020-03-20 Tom Tromey <tromey@adacore.com>
12308
12309 * ada-valprint.c (print_variant_part): Remove parameters; switch
12310 to value-based API.
12311 (print_field_values): Likewise.
12312 (ada_val_print_struct_union): Likewise.
12313 (ada_value_print_1): Update.
12314
9faa006d
KR
123152020-03-20 Kamil Rytarowski <n54@gmx.com>
12316
12317 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12318 nbsd_nat_target instead of inf_ptrace_target.
12319 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12320 nbsd_nat_target.
12321
4a90f062
KR
123222020-03-20 Kamil Rytarowski <n54@gmx.com>
12323
12324 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12325 it to the ptrace call.
12326 * (store_registers): Likewise.
12327
123282020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12329
12330 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12331 it to the ptrace call.
12332 * (store_registers): Likewise.
12333
2d07da27
LM
123342020-03-19 Luis Machado <luis.machado@linaro.org>
12335
12336 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12337 valid, fetch vg value from ptrace.
12338
f09db380
KR
123392020-03-19 Kamil Rytarowski <n54@gmx.com>
12340 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12341 * inf-ptrace.c: Likewise.
12342 * (gdb_ptrace): Add.
12343 * (inf_ptrace_target::resume): Update.
12344 * (inf_ptrace_target::xfer_partial): Likewise.
12345 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12346 * (inf_ptrace_peek_poke): Update.
12347
fcc7376e
KR
123482020-03-19 Kamil Rytarowski <n54@gmx.com>
12349
12350 * x86-bsd-nat.c (gdb_ptrace): New.
12351 * (x86bsd_dr_set): Add new argument `ptid'.
12352 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12353 x86bsd_dr_set_addr): Update.
12354
cada5fc9
AB
123552020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12356
12357 * remote.c (remote_target::process_stop_reply): Handle events for
12358 all threads differently.
12359
19a2740f
AB
123602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12361
12362 * completer.c (completion_tracker::remove_completion): Define new
12363 function.
12364 * completer.h (completion_tracker::remove_completion): Declare new
12365 function.
12366 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12367 when adding a C++ function symbol.
12368
724fd9ba
AB
123692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12370
12371 * completer.c (completion_tracker::completion_hash_entry): Define
12372 new class.
12373 (advance_to_filename_complete_word_point): Call
12374 recompute_lowest_common_denominator.
12375 (completion_tracker::completion_tracker): Call discard_completions
12376 to setup the hash table.
12377 (completion_tracker::discard_completions): Allow for being called
12378 from the constructor, pass new equal function, and element deleter
12379 when constructing the hash table. Initialise new class member
12380 variables.
12381 (completion_tracker::maybe_add_completion): Remove use of
12382 m_entries_vec, and store more information into m_entries_hash.
12383 (completion_tracker::recompute_lcd_visitor): New function, most
12384 content taken from...
12385 (completion_tracker::recompute_lowest_common_denominator):
12386 ...here, this now just visits each item in the hash calling the
12387 above visitor.
12388 (completion_tracker::build_completion_result): Remove use of
12389 m_entries_vec, call recompute_lowest_common_denominator.
12390 * completer.h (completion_tracker::have_completions): Remove use
12391 of m_entries_vec.
12392 (completion_tracker::completion_hash_entry): Declare new class.
12393 (completion_tracker::recompute_lowest_common_denominator): Change
12394 function signature.
12395 (completion_tracker::recompute_lcd_visitor): Declare new function.
12396 (completion_tracker::m_entries_vec): Delete.
12397 (completion_tracker::m_entries_hash): Initialize to NULL.
12398 (completion_tracker::m_lowest_common_denominator_valid): New
12399 member variable.
12400 (completion_tracker::m_lowest_common_denominator_max_length): New
12401 member variable.
12402
5a82b8a1
KR
124032020-03-17 Kamil Rytarowski <n54@gmx.com>
12404
12405 * regformats/regdef.h: Put reg in gdb namespace.
12406
fb516a69
KR
124072020-03-17 Kamil Rytarowski <n54@gmx.com>
12408
12409 * i386-bsd-nat.c (gdb_ptrace): New.
12410 * (i386bsd_fetch_inferior_registers,
12411 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12412 * (i386bsd_fetch_inferior_registers,
12413 i386bsd_store_inferior_registers) Use gdb_ptrace.
12414
1c0aa1fb
KR
124152020-03-17 Kamil Rytarowski <n54@gmx.com>
12416
12417 * amd64-bsd-nat.c (gdb_ptrace): New.
12418 * (amd64bsd_fetch_inferior_registers,
12419 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12420 * (amd64bsd_fetch_inferior_registers,
12421 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12422
5ccd2fb7
KR
124232020-03-17 Kamil Rytarowski <n54@gmx.com>
12424
12425 * user-regs.c (user_reg::read): Rename to...
12426 (user_reg::xread): ...this.
12427 * (append_user_reg): Rename argument `read' to `xread'.
12428 * (user_reg_add_builtin): Likewise.
12429 * (user_reg_add): Likewise.
12430 * (value_of_user_reg): Likewise.
12431
2108a63a
KR
124322020-03-17 Kamil Rytarowski <n54@gmx.com>
12433
12434 * sparc-nat.c (gdb_ptrace): New.
12435 * sparc-nat.c (sparc_fetch_inferior_registers)
12436 (sparc_store_inferior_registers) Remove obsolete comment.
12437 * sparc-nat.c (sparc_fetch_inferior_registers)
12438 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12439 * sparc-nat.c (sparc_fetch_inferior_registers)
12440 (sparc_store_inferior_registers) Use gdb_ptrace.
12441
a225c9a8
KR
124422020-03-17 Kamil Rytarowski <n54@gmx.com>
12443
12444 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12445 it to the ptrace call.
12446 * sh-nbsd-nat.c (store_registers): Likewise.
12447
98097623
KR
124482020-03-17 Kamil Rytarowski <n54@gmx.com>
12449
12450 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12451 nbsd_nat_target instead of inf_ptrace_target.
12452 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12453 nbsd_nat_target.
12454
9e38d619
KR
124552020-03-17 Kamil Rytarowski <n54@gmx.com>
12456
12457 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12458
a2ecbe9f
KR
124592020-03-17 Kamil Rytarowski <n54@gmx.com>
12460
12461 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12462 <sys/sysctl.h>.
12463 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12464
58990295
TV
124652020-03-17 Tom de Vries <tdevries@suse.de>
12466
12467 PR gdb/23710
12468 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12469 fields.
12470 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12471 fields.
12472 (process_imported_unit_die): Skip import of c++ CUs.
12473
771dd3a8
TT
124742020-03-16 Tom Tromey <tom@tromey.com>
12475
12476 * p-valprint.c (pascal_object_print_value): Initialize
12477 base_value.
12478
817a7585
AK
124792020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12480 Shahab Vahedi <shahab@synopsys.com>
12481
12482 * Makefile.in: Add arch/arc.o
12483 * configure.tgt: Likewise.
12484 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12485 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12486 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12487 * arc-tdep.h (arc_read_description): Add proto type.
12488 * arch/arc.c: New file.
12489 * arch/arc.h: Likewise.
12490 * features/Makefile: Replace old target descriptions with new.
12491 * features/arc-arcompact.c: Remove.
12492 * features/arc-arcompact.xml: Likewise.
12493 * features/arc-v2.c: Likewise
12494 * features/arc-v2.xml: Likewise
12495 * features/arc/aux-arcompact.xml: New file.
12496 * features/arc/aux-v2.xml: Likewise.
12497 * features/arc/core-arcompact.xml: Likewise.
12498 * features/arc/core-v2.xml: Likewise.
12499 * features/arc/aux-arcompact.c: Generate.
12500 * features/arc/aux-v2.c: Likewise.
12501 * features/arc/core-arcompact.c: Likewise.
12502 * features/arc/core-v2.c: Likewise.
12503 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12504
67430cd0
TT
125052020-03-16 Tom Tromey <tromey@adacore.com>
12506
12507 PR gdb/25663:
12508 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12509 putting value into bcache.
12510
30efb6c7
SM
125112020-03-16 Simon Marchi <simon.marchi@efficios.com>
12512
12513 PR gdb/21500
12514 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12515 to...
12516 (amd64_windows_init_abi_common): ... this. Don't set size of
12517 long type.
12518 (amd64_windows_init_abi): New function.
12519 (amd64_cygwin_init_abi): New function.
12520 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12521 the Cygwin OS ABI.
12522 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12523 comment.
12524
8db52437
SM
125252020-03-16 Simon Marchi <simon.marchi@efficios.com>
12526
12527 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12528 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12529 (pe_import_directory_entry): New struct type.
12530 (is_linked_with_cygwin_dll): New function.
12531 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12532 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12533 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12534
5982a56a
SM
125352020-03-16 Simon Marchi <simon.marchi@efficios.com>
12536
12537 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12538 i386_cygwin_core_osabi_sniffer.
12539
7a1998df
SM
125402020-03-16 Simon Marchi <simon.marchi@efficios.com>
12541
12542 * i386-cygwin-tdep.c: Rename to...
12543 * i386-windows-tdep.c: ... this.
12544 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12545 i386-windows-tdep.c.
12546 * configure.tgt: Likewise.
12547
053205cc
SM
125482020-03-16 Simon Marchi <simon.marchi@efficios.com>
12549
12550 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12551 * osabi.c (gdb_osabi_names): Add "Windows".
12552 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12553 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12554 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12555 i386_cygwin_osabi_sniffer.
12556 (_initialize_i386_cygwin_tdep): Register OS ABI
12557 GDB_OSABI_WINDOWS for i386.
12558 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12559 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12560 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12561 for x86-64.
12562 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12563 when the target matches '*-*-mingw*'.
12564
fe4b2ee6
SM
125652020-03-16 Simon Marchi <simon.marchi@efficios.com>
12566
12567 * defs.h (enum gdb_osabi): Move to...
12568 * osabi.h (enum gdb_osabi): ... here.
12569 * gdbarch.sh: Include osabi.h in gdbarch.h.
12570 * gdbarch.h: Re-generate.
12571
cb9b645d
SM
125722020-03-16 Simon Marchi <simon.marchi@efficios.com>
12573
12574 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12575 function.
12576 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12577
3293bbaf
TT
125782020-03-14 Tom Tromey <tom@tromey.com>
12579
12580 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12581 for C++.
12582 (c_type_print_modifier): Likewise. Add "language" parameter.
12583 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12584 (c_type_print_base_1): Update.
12585 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12586 constants.
12587 * type-stack.c (type_stack::insert): Handle tp_atomic and
12588 tp_restrict.
12589 (type_stack::follow_type_instance_flags): Likewise.
12590 (type_stack::follow_types): Likewise. Merge type-following code.
12591 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12592 (space_identifier, cv_with_space_id)
12593 (const_or_volatile_or_space_identifier_noopt)
12594 (const_or_volatile_or_space_identifier): Remove.
12595 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12596 rules.
12597 (ptr_operator, typebase): Update.
12598 (enum token_flag) <FLAG_C>: New constant.
12599 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12600 "_Atomic".
12601 (lex_one_token): Handle FLAG_C.
12602
154151a6
KR
126032020-03-14 Kamil Rytarowski <n54@gmx.com>
12604
12605 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12606 it to the ptrace call.
12607 * m68k-bsd-nat.c (store_registers): Likewise.
12608
bc107784
KR
126092020-03-14 Kamil Rytarowski <n54@gmx.com>
12610
12611 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12612 gdb_byte *.
12613 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12614 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12615 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12616
01a80117
KR
126172020-03-14 Kamil Rytarowski <n54@gmx.com>
12618
12619 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12620 nbsd_nat_target instead of inf_ptrace_target.
12621 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12622 nbsd_nat_target.
12623
f90280ca
KR
126242020-03-14 Kamil Rytarowski <n54@gmx.com>
12625
12626 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12627 register_t.
12628
6def66f1
KR
126292020-03-14 Kamil Rytarowski <n54@gmx.com>
12630
12631 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12632 it to the ptrace call.
12633 * alpha-bsd-nat.c (store_registers): Likewise.
12634
66eaca97
KR
126352020-03-14 Kamil Rytarowski <n54@gmx.com>
12636
12637 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12638 includes.
12639 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12640 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12641 fill_fpregset): Likewise.
12642
4fed520b
KR
126432020-03-14 Kamil Rytarowski <n54@gmx.com>
12644
12645 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12646 nbsd_nat_target instead of inf_ptrace_target.
12647 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12648 nbsd_nat_target.
12649
2190cf06
KR
126502020-03-14 Kamil Rytarowski <n54@gmx.com>
12651
12652 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12653 register_t.
12654
75c56d3d
KR
126552020-03-14 Kamil Rytarowski <n54@gmx.com>
12656
12657 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12658 it to the ptrace call.
12659 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12660 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12661 * arm-nbsd-nat.c (store_register): Likewise.
12662 * arm-nbsd-nat.c (store_regs): Likewise.
12663 * arm-nbsd-nat.c (store_fp_register): Likewise.
12664 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12665
6018d381
KR
126662020-03-14 Kamil Rytarowski <n54@gmx.com>
12667
12668 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12669 nbsd_nat_target instead of inf_ptrace_target.
12670 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12671 nbsd_nat_target.
12672
013f99f0
KR
126732020-03-14 Kamil Rytarowski <n54@gmx.com>
12674
12675 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12676 it to the ptrace call.
12677 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12678
12753073
KR
126792020-03-14 Kamil Rytarowski <n54@gmx.com>
12680
6227b330
KR
12681 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12682 it to the ptrace call.
12683 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12684
126852020-03-14 Kamil Rytarowski <n54@gmx.com>
12686
12687 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12688 gdb_byte *.
12753073
KR
12689 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12690
d5be5fa4
KR
126912020-03-14 Kamil Rytarowski <n54@gmx.com>
12692
12693 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12694 instead of inf_ptrace_target.
12695 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12696 nbsd_nat_target.
12697
8110f842
KR
126982020-03-14 Kamil Rytarowski <n54@gmx.com>
12699
12700 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12701 register_t.
12702
52feded7
KR
127032020-03-14 Kamil Rytarowski <n54@gmx.com>
12704
12705 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12706 register_t.
12707
25567eee
KR
127082020-03-14 Kamil Rytarowski <n54@gmx.com>
12709
12710 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12711 register_t.
12712
426a9c18
TT
127132020-03-13 Tom Tromey <tom@tromey.com>
12714
12715 * value.h (val_print): Don't declare.
12716 * valprint.h (val_print_array_elements)
12717 (val_print_scalar_formatted, generic_val_print): Don't declare.
12718 * valprint.c (generic_val_print_array): Take a struct value.
12719 (generic_val_print_ptr, generic_val_print_memberptr)
12720 (generic_val_print_bool, generic_val_print_int)
12721 (generic_val_print_char, generic_val_print_complex)
12722 (generic_val_print): Remove.
12723 (generic_value_print): Update.
12724 (do_val_print): Remove unused parameters. Don't call
12725 la_val_print.
12726 (val_print): Remove.
12727 (common_val_print): Update. Don't call value_check_printable.
12728 (val_print_scalar_formatted, val_print_array_elements): Remove.
12729 * rust-lang.c (rust_val_print): Remove.
12730 (rust_language_defn): Update.
12731 * p-valprint.c (pascal_val_print): Remove.
12732 (pascal_value_print_inner): Update.
12733 (pascal_object_print_val_fields, pascal_object_print_val):
12734 Remove.
12735 (pascal_object_print_static_field): Update.
12736 * p-lang.h (pascal_val_print): Don't declare.
12737 * p-lang.c (pascal_language_defn): Update.
12738 * opencl-lang.c (opencl_language_defn): Update.
12739 * objc-lang.c (objc_language_defn): Update.
12740 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12741 * m2-lang.h (m2_val_print): Don't declare.
12742 * m2-lang.c (m2_language_defn): Update.
12743 * language.h (struct language_defn) <la_val_print>: Remove.
12744 * language.c (unk_lang_value_print_inner): Rename. Change
12745 argument types.
12746 (unknown_language_defn, auto_language_defn): Update.
12747 * go-valprint.c (go_val_print): Remove.
12748 * go-lang.h (go_val_print): Don't declare.
12749 * go-lang.c (go_language_defn): Update.
12750 * f-valprint.c (f_val_print): Remove.
12751 * f-lang.h (f_value_print): Don't declare.
12752 * f-lang.c (f_language_defn): Update.
12753 * d-valprint.c (d_val_print): Remove.
12754 * d-lang.h (d_value_print): Don't declare.
12755 * d-lang.c (d_language_defn): Update.
12756 * cp-valprint.c (cp_print_value_fields)
12757 (cp_print_value_fields_rtti, cp_print_value): Remove.
12758 (cp_print_static_field): Update.
12759 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12760 (c_val_print_struct, c_val_print_union, c_val_print_int)
12761 (c_val_print_memberptr, c_val_print): Remove.
12762 * c-lang.h (c_val_print_array, cp_print_value_fields)
12763 (cp_print_value_fields_rtti): Don't declare.
12764 * c-lang.c (c_language_defn, cplus_language_defn)
12765 (asm_language_defn, minimal_language_defn): Update.
12766 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12767 (ada_val_print_enum): Take a struct value.
12768 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12769 (ada_val_print): Remove.
12770 (ada_value_print_1): Update.
12771 (printable_val_type): Remove.
12772 * ada-lang.h (ada_val_print): Don't declare.
12773 * ada-lang.c (ada_language_defn): Update.
12774
42331a1e
TT
127752020-03-13 Tom Tromey <tom@tromey.com>
12776
12777 * valprint.c (do_val_print): Update.
12778 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12779 a struct value.
12780 (value_to_value_object_no_release): Declare.
12781 * python/py-value.c (value_to_value_object_no_release): New
12782 function.
12783 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12784 struct value.
12785 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12786 function.
12787 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12788 a struct value.
12789 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12790 Declare.
12791 (gdbscm_apply_val_pretty_printer): Take a struct value.
12792 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12793 value.
12794 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12795 value.
12796 * extension-priv.h (struct extension_language_ops)
12797 <apply_val_pretty_printer>: Take a struct value.
12798 * cp-valprint.c (cp_print_value): Create a struct value.
12799 (cp_print_value): Update.
12800
3a916a97
TT
128012020-03-13 Tom Tromey <tom@tromey.com>
12802
12803 * ada-valprint.c (print_field_values): Call common_val_print.
12804
b59eac37
TT
128052020-03-13 Tom Tromey <tom@tromey.com>
12806
12807 * ada-valprint.c (val_print_packed_array_elements): Remove
12808 bitoffset and val parameters. Call common_val_print.
12809 (ada_val_print_string): Remove offset, address, and original_value
12810 parameters.
12811 (ada_val_print_array): Update.
12812 (ada_value_print_array): New function.
12813 (ada_value_print_1): Call it.
12814
03371129
TT
128152020-03-13 Tom Tromey <tom@tromey.com>
12816
12817 * ada-valprint.c (ada_value_print): Use common_val_print.
12818
2e088f8b
TT
128192020-03-13 Tom Tromey <tom@tromey.com>
12820
12821 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12822
39ef85a8
TT
128232020-03-13 Tom Tromey <tom@tromey.com>
12824
12825 * ada-valprint.c (ada_value_print_num): New function.
12826 (ada_value_print_1): Use it.
12827
b9fa6e07
TT
128282020-03-13 Tom Tromey <tom@tromey.com>
12829
12830 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12831
416595d6
TT
128322020-03-13 Tom Tromey <tom@tromey.com>
12833
12834 * ada-valprint.c (ada_value_print_ptr): New function.
12835 (ada_value_print_1): Use it.
12836
5b5e15ec
TT
128372020-03-13 Tom Tromey <tom@tromey.com>
12838
12839 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12840 call common_val_print.
12841 (ada_val_print_1): Update.
12842 (ada_value_print_1): New function.
12843 (ada_value_print_inner): Rewrite.
12844
fbf54e75
TT
128452020-03-13 Tom Tromey <tom@tromey.com>
12846
12847 * cp-valprint.c (cp_print_value_fields): Update.
12848 (cp_print_value): New function.
12849
64b653ca
TT
128502020-03-13 Tom Tromey <tom@tromey.com>
12851
12852 * m2-valprint.c (m2_value_print_inner): Use
12853 cp_print_value_fields.
12854 * cp-valprint.c (cp_print_value_fields): New function.
12855 * c-valprint.c (c_value_print_struct): New function.
12856 (c_value_print_inner): Use c_value_print_struct.
12857 * c-lang.h (cp_print_value_fields): Declare.
12858
6999f067
TT
128592020-03-13 Tom Tromey <tom@tromey.com>
12860
12861 * c-valprint.c (c_value_print_array): New function.
12862 (c_value_print_inner): Use it.
12863
ce80b8bd
TT
128642020-03-13 Tom Tromey <tom@tromey.com>
12865
12866 * c-valprint.c (c_value_print_memberptr): New function.
12867 (c_value_print_inner): Use it.
12868
2faac269
TT
128692020-03-13 Tom Tromey <tom@tromey.com>
12870
12871 * c-valprint.c (c_value_print_int): New function.
12872 (c_value_print_inner): Use it.
12873
da3e2c29
TT
128742020-03-13 Tom Tromey <tom@tromey.com>
12875
12876 * c-valprint.c (c_value_print_ptr): New function.
12877 (c_value_print_inner): Use it.
12878
50836231
TT
128792020-03-13 Tom Tromey <tom@tromey.com>
12880
12881 * c-valprint.c (c_value_print_inner): Rewrite.
12882
4f412b6e
TT
128832020-03-13 Tom Tromey <tom@tromey.com>
12884
12885 * valprint.c (generic_value_print_complex): New function.
12886 (generic_value_print): Use it.
12887
f5354008
TT
128882020-03-13 Tom Tromey <tom@tromey.com>
12889
12890 * valprint.c (generic_val_print_float): Don't call
12891 val_print_scalar_formatted.
12892 (generic_val_print, generic_value_print): Update.
12893
3eec3b05
TT
128942020-03-13 Tom Tromey <tom@tromey.com>
12895
12896 * valprint.c (generic_value_print_char): New function
12897 (generic_value_print): Use it.
12898
fdddfccb
TT
128992020-03-13 Tom Tromey <tom@tromey.com>
12900
12901 * valprint.c (generic_value_print_int): New function.
12902 (generic_value_print): Use it.
12903
6dde7521
TT
129042020-03-13 Tom Tromey <tom@tromey.com>
12905
12906 * valprint.c (generic_value_print_bool): New function.
12907 (generic_value_print): Use it.
12908
4112d2e6
TT
129092020-03-13 Tom Tromey <tom@tromey.com>
12910
12911 * valprint.c (generic_val_print_func): Simplify.
12912 (generic_val_print, generic_value_print): Update.
12913
65786af6
TT
129142020-03-13 Tom Tromey <tom@tromey.com>
12915
12916 * valprint.c (generic_val_print_flags): Remove.
12917 (generic_val_print, generic_value_print): Update.
12918 (val_print_type_code_flags): Add original_value parameter.
12919
40f3ce18
TT
129202020-03-13 Tom Tromey <tom@tromey.com>
12921
12922 * valprint.c (generic_val_print): Update.
12923 (generic_value_print): Update.
12924 * valprint.c (generic_val_print_enum): Don't call
12925 val_print_scalar_formatted.
12926
2a5b130b
TT
129272020-03-13 Tom Tromey <tom@tromey.com>
12928
12929 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12930 * valprint.c (generic_value_print_ptr): New function.
12931
abc66ce9
TT
129322020-03-13 Tom Tromey <tom@tromey.com>
12933
12934 * valprint.c (generic_value_print): Rewrite.
12935
07a32858
TT
129362020-03-13 Tom Tromey <tom@tromey.com>
12937
12938 * p-valprint.c (pascal_object_print_value_fields)
12939 (pascal_object_print_value): New functions.
12940
64d64d3a
TT
129412020-03-13 Tom Tromey <tom@tromey.com>
12942
12943 * p-valprint.c (pascal_value_print_inner): Rewrite.
12944
6a95a1f5
TT
129452020-03-13 Tom Tromey <tom@tromey.com>
12946
12947 * f-valprint.c (f_value_print_innner): Rewrite.
12948
59fcdac6
TT
129492020-03-13 Tom Tromey <tom@tromey.com>
12950
12951 * m2-valprint.c (m2_print_unbounded_array): New overload.
12952 (m2_print_unbounded_array): Update.
12953 (m2_print_array_contents): Take a struct value.
12954 (m2_value_print_inner): Rewrite.
12955
d133c3e1
TT
129562020-03-13 Tom Tromey <tom@tromey.com>
12957
12958 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12959 (d_value_print_inner): New function.
12960 * d-lang.h (d_value_print_inner): Declare.
12961 * d-lang.c (d_language_defn): Use d_value_print_inner.
12962
23b0f06b
TT
129632020-03-13 Tom Tromey <tom@tromey.com>
12964
12965 * go-valprint.c (go_value_print_inner): New function.
12966 * go-lang.h (go_value_print_inner): Declare.
12967 * go-lang.c (go_language_defn): Use go_value_print_inner.
12968
5f56f7cb
TT
129692020-03-13 Tom Tromey <tom@tromey.com>
12970
12971 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12972 API.
12973 (rust_val_print): Rewrite.
12974 (rust_value_print_inner): New function, from rust_val_print.
12975 (rust_language_defn): Use rust_value_print_inner.
12976
26792ee0
TT
129772020-03-13 Tom Tromey <tom@tromey.com>
12978
12979 * ada-valprint.c (ada_value_print_inner): New function.
12980 * ada-lang.h (ada_value_print_inner): Declare.
12981 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12982
24051bbe
TT
129832020-03-13 Tom Tromey <tom@tromey.com>
12984
12985 * f-valprint.c (f_value_print_innner): New function.
12986 * f-lang.h (f_value_print_innner): Declare.
12987 * f-lang.c (f_language_defn): Use f_value_print_innner.
12988
c0941be6
TT
129892020-03-13 Tom Tromey <tom@tromey.com>
12990
12991 * p-valprint.c (pascal_value_print_inner): New function.
12992 * p-lang.h (pascal_value_print_inner): Declare.
12993 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12994
62c4663d
TT
129952020-03-13 Tom Tromey <tom@tromey.com>
12996
12997 * m2-valprint.c (m2_value_print_inner): New function.
12998 * m2-lang.h (m2_value_print_inner): Declare.
12999 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13000
62182190
TT
130012020-03-13 Tom Tromey <tom@tromey.com>
13002
13003 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13004 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13005 * c-valprint.c (c_value_print_inner): New function.
13006 * c-lang.h (c_value_print_inner): Declare.
13007 * c-lang.c (c_language_defn, cplus_language_defn)
13008 (asm_language_defn, minimal_language_defn): Use
13009 c_value_print_inner.
13010
1e592a8a
TT
130112020-03-13 Tom Tromey <tom@tromey.com>
13012
13013 * p-valprint.c (pascal_object_print_value_fields): Now static.
13014 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13015
7fe471e9
TT
130162020-03-13 Tom Tromey <tom@tromey.com>
13017
13018 * c-valprint.c (c_val_print_array): Simplify.
13019
d121c6ce
TT
130202020-03-13 Tom Tromey <tom@tromey.com>
13021
13022 * valprint.c (value_print_array_elements): New function.
13023 * valprint.h (value_print_array_elements): Declare.
13024
4dba70ee
TT
130252020-03-13 Tom Tromey <tom@tromey.com>
13026
13027 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13028 * mips-tdep.c (mips_print_register): Use
13029 value_print_scalar_formatted.
13030
4f9ae810
TT
130312020-03-13 Tom Tromey <tom@tromey.com>
13032
13033 * valprint.h (value_print_scalar_formatted): Declare.
13034 * valprint.c (value_print_scalar_formatted): New function.
13035
156bfec9
TT
130362020-03-13 Tom Tromey <tom@tromey.com>
13037
13038 * valprint.h (generic_value_print): Declare.
13039 * valprint.c (generic_value_print): New function.
13040
2b4e573d
TT
130412020-03-13 Tom Tromey <tom@tromey.com>
13042
13043 * valprint.c (do_val_print): Call la_value_print_inner, if
13044 available.
13045 * rust-lang.c (rust_language_defn): Update.
13046 * p-lang.c (pascal_language_defn): Update.
13047 * opencl-lang.c (opencl_language_defn): Update.
13048 * objc-lang.c (objc_language_defn): Update.
13049 * m2-lang.c (m2_language_defn): Update.
13050 * language.h (struct language_defn) <la_value_print_inner>: New
13051 member.
13052 * language.c (unknown_language_defn, auto_language_defn): Update.
13053 * go-lang.c (go_language_defn): Update.
13054 * f-lang.c (f_language_defn): Update.
13055 * d-lang.c (d_language_defn): Update.
13056 * c-lang.c (c_language_defn, cplus_language_defn)
13057 (asm_language_defn, minimal_language_defn): Update.
13058 * ada-lang.c (ada_language_defn): Update.
13059
a1f6a07c
TT
130602020-03-13 Tom Tromey <tom@tromey.com>
13061
13062 * c-valprint.c (c_value_print): Use common_val_print.
13063
410cf315
TT
130642020-03-13 Tom Tromey <tom@tromey.com>
13065
13066 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13067
72a45c93
TT
130682020-03-13 Tom Tromey <tom@tromey.com>
13069
13070 * f-valprint.c (f77_print_array_1, f_val_print): Use
13071 common_val_print.
13072
040f66bd
TT
130732020-03-13 Tom Tromey <tom@tromey.com>
13074
13075 * riscv-tdep.c (riscv_print_one_register_info): Use
13076 common_val_print.
13077
a6e05a6c
TT
130782020-03-13 Tom Tromey <tom@tromey.com>
13079
13080 * mi/mi-main.c (output_register): Use common_val_print.
13081
3444c526
TT
130822020-03-13 Tom Tromey <tom@tromey.com>
13083
13084 * infcmd.c (default_print_one_register_info): Use
13085 common_val_print.
13086
c2a44efe
TT
130872020-03-13 Tom Tromey <tom@tromey.com>
13088
13089 * valprint.h (common_val_print_checked): Declare.
13090 * valprint.c (common_val_print_checked): New function.
13091 * stack.c (print_frame_arg): Use common_val_print_checked.
13092
b0c26e99
TT
130932020-03-13 Tom Tromey <tom@tromey.com>
13094
13095 * valprint.c (do_val_print): New function, from val_print.
13096 (val_print): Use do_val_print.
13097 (common_val_print): Use do_val_print.
13098
ce3acbe9
TT
130992020-03-13 Tom Tromey <tom@tromey.com>
13100
13101 * valprint.c (value_print): Use scoped_value_mark.
13102
96c7f873
TV
131032020-03-13 Tom de Vries <tdevries@suse.de>
13104
13105 PR symtab/25646
13106 * psymtab.c (partial_symtab::partial_symtab): Don't set
13107 globals_offset and statics_offset. Push element onto
13108 current_global_psymbols and current_static_psymbols stacks.
13109 (concat): New function.
13110 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13111 element from current_global_psymbols and current_static_psymbols
13112 stacks. Concat popped elements to global_psymbols and
13113 static_symbols.
13114 (add_psymbol_to_list): Use current_global_psymbols and
13115 current_static_psymbols stacks.
13116 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13117 current_static_psymbols fields.
13118
6ba0a321
CB
131192020-03-12 Christian Biesinger <cbiesinger@google.com>
13120
13121 * corelow.c (sniff_core_bfd): Remove.
13122 (class core_target) <m_core_vec>: Remove.
13123 (core_target::core_target): Update.
13124 (core_file_fns): Remove.
13125 (deprecated_add_core_fns): Remove.
13126 (default_core_sniffer): Remove.
13127 (sniff_core_bfd): Remove.
13128 (default_check_format): Remove.
13129 (gdb_check_format): Remove.
13130 (core_target_open): Update.
13131 (core_target::get_core_register_section): Update.
13132 (get_core_registers_cb): Update.
13133 (core_target::fetch_registers): Update.
13134 * gdbcore.h (struct core_fns): Remove.
13135 (deprecated_add_core_fns): Remove.
13136 (default_core_sniffer): Remove.
13137 (default_check_format): Remove.
13138
227031b2
TT
131392020-03-12 Tom Tromey <tom@tromey.com>
13140
13141 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13142 CORE_ADDR.
13143 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13144
53807e9f
TT
131452020-03-12 Tom Tromey <tom@tromey.com>
13146
13147 * remote.c (remote_target::download_tracepoint)
13148 (remote_target::enable_tracepoint)
13149 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13150 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13151 sprintf_vma.
13152
64f25102
TT
131532020-03-12 Tom Tromey <tom@tromey.com>
13154
13155 * symfile-mem.c: Update CORE_ADDR size assert.
13156
272cd5a3
SM
131572020-03-12 Simon Marchi <simon.marchi@efficios.com>
13158
13159 * selftest.m4: Move to gdbsupport/.
13160 * acinclude.m4: Update path to selftest.m4.
13161
74cd3f9d
SM
131622020-03-12 Simon Marchi <simon.marchi@efficios.com>
13163
13164 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13165 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13166 gdbarch-selfselftests.c and selftest-arch.c.
13167 (SUBDIR_UNITTESTS_OBS): Rename to...
13168 (SELFTESTS_OBS): ... this.
13169 (COMMON_SFILES): Remove disasm-selftests.c and
13170 gdbarch-selftests.c.
13171 * configure.ac: Don't add selftest-arch.{c,o} to
13172 CONFIG_{SRCS,OBS}.
13173 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13174 preprocessor conditions.
13175
db6878ac
SM
131762020-03-12 Simon Marchi <simon.marchi@efficios.com>
13177
13178 * configure.ac: Don't source bfd/development.sh.
13179 * selftest.m4: Modify comment.
13180 * configure: Re-generate.
13181
4d696a5c
SM
131822020-03-12 Simon Marchi <simon.marchi@efficios.com>
13183
13184 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13185 not "true" or "false".
13186 * configure: Re-generate.
13187
8dd8e1c7
CB
131882020-03-12 Christian Biesinger <cbiesinger@google.com>
13189
13190 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13191 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13192 renamed to arm_nbsd_supply_gregset.
13193 (fetch_register): Update to call arm_nbsd_supply_gregset.
13194 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13195 (arm_netbsd_nat_target::fetch_registers): Update.
13196 (fetch_elfcore_registers): Removed.
13197 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13198 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13199 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13200 not require NetBSD system headers.
13201 (arm_nbsd_regset): New struct.
13202 (arm_nbsd_iterate_over_regset_sections): New function.
13203 (arm_netbsd_init_abi_common): Updated to call
13204 set_gdbarch_iterate_over_regset_sections.
13205 * arm-nbsd-tdep.h: New file.
13206
dd69bf7a
KB
132072020-03-11 Kevin Buettner <kevinb@redhat.com>
13208
13209 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13210 recursion.
13211
a0761e34
SM
132122020-03-11 Simon Marchi <simon.marchi@efficios.com>
13213
13214 * configure: Re-generate.
13215
e7a82140
TT
132162020-03-11 Tom Tromey <tromey@adacore.com>
13217
13218 * ada-typeprint.c (print_choices): Fix comment.
13219
dcc050c8
AB
132202020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13221
13222 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13223 previous item in the list, when the list has no items.
13224
1c33af77
TV
132252020-03-11 Tom de Vries <tdevries@suse.de>
13226
13227 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13228 PROP_LOCLIST handling code.
13229
8c95582d
AB
132302020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13231
13232 * buildsym-legacy.c (record_line): Pass extra parameter to
13233 record_line.
13234 * buildsym.c (buildsym_compunit::record_line): Take an extra
13235 parameter, reduce duplication in the line table, and record the
13236 is_stmt flag in the line table.
13237 * buildsym.h (buildsym_compunit::record_line): Add extra
13238 parameter.
13239 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13240 non-statement lines.
13241 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13242 this to the symtab builder.
13243 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13244 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13245 through to dwarf_record_line_1.
13246 * infrun.c (process_event_stop_test): When stepping, don't stop at
13247 a non-statement instruction, and only refresh the step info when
13248 we land in the middle of a line's range. Also add an extra
13249 comment.
13250 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13251 field.
13252 * record-btrace.c (btrace_find_line_range): Only record lines
13253 marked as is-statement.
13254 * stack.c (frame_show_address): Show the frame address if we are
13255 in a non-statement sal.
13256 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13257 (maintenance_print_one_line_table): Print a header for the is_stmt
13258 column, and include is_stmt information in the output.
13259 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13260 preference to non-statements.
13261 (find_pcs_for_symtab_line): Prefer is-statement entries.
13262 (find_line_common): Likewise.
13263 * symtab.h (struct linetable_entry): Add is_stmt field.
13264 (struct symtab_and_line): Likewise.
13265 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13266 arranging the line table.
13267
e4003a34
TV
132682020-03-07 Tom de Vries <tdevries@suse.de>
13269
13270 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13271 DIE.
13272
e8932576
TT
132732020-03-07 Tom Tromey <tom@tromey.com>
13274
13275 * valops.c (value_literal_complex): Remove obsolete comment.
13276 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13277 comment.
13278
29734269
SM
132792020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13280
13281 * infrun.h: Forward-declare thread_info.
13282 (set_step_info): Add thread_info parameter, add doc.
13283 * infrun.c (set_step_info): Add thread_info parameter, move doc
13284 to header.
13285 * infrun.c (process_event_stop_test): Pass thread to
13286 set_step_info call.
13287 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13288 set_step_info.
13289 (prepare_one_step): Add thread_info parameter, pass it to
13290 set_step_frame and prepare_one_step (recursive) call.
13291 (step_1): Pass thread to prepare_one_step call.
13292 (step_command_fsm::should_stop): Pass thread to
13293 prepare_one_step.
13294 (until_next_fsm): Pass thread to set_step_frame call.
13295 (finish_command): Pass thread to set_step_info call.
13296
b7d64b29
HD
132972020-03-06 Hannes Domani <ssbssa@yahoo.de>
13298
13299 * windows-tdep.c (windows_solib_create_inferior_hook):
13300 Check if inferior is running.
13301
09f2921c
TV
133022020-03-06 Tom de Vries <tdevries@suse.de>
13303
13304 * NEWS: Fix "the the".
13305 * ctfread.c: Same.
13306
fd760e79
TV
133072020-03-06 Tom de Vries <tdevries@suse.de>
13308
13309 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13310
20ea4a60
AB
133112020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13312
13313 * .dir-locals.el: Add a comment referencing the other copies of
13314 this file.
13315
0afbabf0
JB
133162020-03-05 John Baldwin <jhb@FreeBSD.org>
13317
13318 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13319 psargs.
13320
842806cb
TBA
133212020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13322
13323 * .gitattributes: New file.
13324
be1e3d3e
TT
133252020-03-04 Tom Tromey <tom@tromey.com>
13326
13327 * symmisc.c (print_symbol_bcache_statistics)
13328 (print_objfile_statistics): Update.
13329 * symfile.c (allocate_symtab): Use intern.
13330 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13331 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13332 macro_cache>: Remove.
13333 <string_cache>: New member.
13334 (struct objfile) <intern>: New methods.
13335 * elfread.c (elf_symtab_read): Use intern.
13336 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13337 (dwarf2_compute_name, dwarf2_physname)
13338 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13339 names.
13340 (guess_partial_die_structure_name): Update.
13341 (partial_die_info::fixup): Intern name.
13342 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13343 name.
13344 (dwarf2_name): Intern name. Update.
13345 * buildsym.c (buildsym_compunit::get_macro_table): Use
13346 string_cache.
13347
4e7625fd
TT
133482020-03-04 Tom Tromey <tom@tromey.com>
13349
13350 * jit.c (bfd_open_from_target_memory): Make "target" const.
13351 * corefile.c (gnutarget): Now const.
13352 * gdbcore.h (gnutarget): Now const.
13353
46f9f931
HD
133542020-03-04 Hannes Domani <ssbssa@yahoo.de>
13355
13356 * NEWS: Mention support for WOW64 processes.
13357 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13358 (amd64_windows_segment_register_p): Remove static.
13359 (_initialize_amd64_windows_nat): Update.
13360 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13361 * i386-windows-nat.c (context_offset): Update.
13362 (i386_mappings): Rename and remove static.
13363 (i386_windows_segment_register_p): Remove static.
13364 (_initialize_i386_windows_nat): Update.
13365 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13366 (STATUS_WX86_SINGLE_STEP): New macro.
13367 (EnumProcessModulesEx): New macro.
13368 (Wow64SuspendThread): New macro.
13369 (Wow64GetThreadContext): New macro.
13370 (Wow64SetThreadContext): New macro.
13371 (Wow64GetThreadSelectorEntry): New macro.
13372 (windows_set_context_register_offsets): Add static.
13373 (windows_set_segment_register_p): Likewise.
13374 (windows_add_thread): Adapt for WOW64 processes.
13375 (windows_fetch_one_register): Likewise.
13376 (windows_nat_target::fetch_registers): Likewise.
13377 (windows_store_one_register): Likewise.
13378 (display_selector): Likewise.
13379 (display_selectors): Likewise.
13380 (handle_exception): Likewise.
13381 (windows_continue): Likewise.
13382 (windows_nat_target::resume): Likewise.
13383 (windows_add_all_dlls): Likewise.
13384 (do_initial_windows_stuff): Likewise.
13385 (windows_nat_target::attach): Likewise.
13386 (windows_get_exec_module_filename): Likewise.
13387 (windows_nat_target::create_inferior): Likewise.
13388 (windows_xfer_siginfo): Likewise.
13389 (_initialize_loadable): Initialize Wow64SuspendThread,
13390 Wow64GetThreadContext, Wow64SetThreadContext,
13391 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13392 * windows-nat.h (windows_set_context_register_offsets):
13393 Remove declaration.
13394 (windows_set_segment_register_p): Likewise.
13395 (i386_windows_segment_register_p): Add declaration.
13396 (amd64_windows_segment_register_p): Likewise.
13397
440cf44e
LM
133982020-03-04 Luis Machado <luis.machado@linaro.org>
13399
13400 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13401 in "info registers" for AArch64/ARM.
13402
13403 The change caused "info registers" to not print GPR's.
13404
13405 gdb/ChangeLog:
13406
13407 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13408
13409 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13410 when reg->group is empty and reggroup is not.
13411
1009d92f
TT
134122020-03-03 Tom Tromey <tromey@adacore.com>
13413
13414 * dwarf2/frame.c (struct dwarf2_frame_cache)
13415 <checked_tailcall_bottom, entry_cfa_sp_offset,
13416 entry_cfa_sp_offset_p>: Remove members.
13417 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13418 (dwarf2_frame_prev_register): Don't call
13419 dwarf2_tailcall_sniffer_first.
13420 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13421 * frame-unwind.c (add_unwinder): New fuction.
13422 (frame_unwind_init): Use it. Add tailcall unwinder.
13423
5e5d66b6
AB
134242020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13425 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13426
13427 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13428 value should be printed as true.
13429
584cf46d
HD
134302020-03-03 Hannes Domani <ssbssa@yahoo.de>
13431
13432 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13433 (windows_init_abi): Set and use windows_so_ops.
13434
7b973adc
SDJ
134352020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13436
13437 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13438 when verifying if dealing with a convenience variable.
13439
bb7b70ab
LM
134402020-03-03 Luis Machado <luis.machado@linaro.org>
13441
13442 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13443
9822cb57
SM
134442020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13445
13446 * infrun.c (gdbarch_supports_displaced_stepping): New.
13447 (use_displaced_stepping): Break up conditions in smaller pieces.
13448 Use gdbarch_supports_displaced_stepping.
13449 (displaced_step_prepare_throw): Use
13450 gdbarch_supports_displaced_stepping.
13451
63e163f2
AB
134522020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13453
13454 * NEWS: Mention new behaviour of the history filename.
13455 * top.c (write_history_p): Add comment.
13456 (show_write_history_p): Add header comment, give a different
13457 message when history writing is on, but the history filename is
13458 empty.
13459 (history_filename): Add comment.
13460 (history_filename_empty): New function.
13461 (show_history_filename): Add header comment, give a different
13462 message when the filename is empty.
13463 (init_history): Compare history_filename against nullptr, and only
13464 read history if the filename is not empty.
13465 (set_history_filename): Add header comment, and only make
13466 non-empty filenames absolute.
13467 (init_main): Make the filename argument to 'set history filename'
13468 optional.
13469
81b86b97
CB
134702020-03-02 Christian Biesinger <cbiesinger@google.com>
13471
13472 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13473 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13474 (fetch_fp_register): Update.
13475 (fetch_fp_regs): Update.
13476 (store_fp_register): Update.
13477 (store_fp_regs): Update.
13478 (arm_netbsd_nat_target::read_description): New function.
13479 (fetch_elfcore_registers): Update.
13480
24ed6739
AB
134812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13482
13483 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13484 general_thread if the stop reply is missing a thread-id.
13485 (remote_target::process_stop_reply): Use the first non-exited
13486 thread if the target didn't pass a thread-id.
13487 * infrun.c (do_target_wait): Move call to
13488 switch_to_inferior_no_thread to ....
13489 (do_target_wait_1): ... here.
13490
a84bb2a0
JT
134912020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13492
13493 * debuginfod-support.c: Include defs.h first.
13494
658dadf0
TV
134952020-02-28 Tom de Vries <tdevries@suse.de>
13496
13497 * symfile.c (set_initial_language): Use default language for lookup.
13498
4ebe4877
SM
134992020-02-28 Simon Marchi <simon.marchi@efficios.com>
13500
13501 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13502 reader variable, pass `this` to read_cutu_die_from_dwo.
13503
e5da1139
AM
135042020-02-27 Aaron Merey <amerey@redhat.com>
13505
13506 * source.c (open_source_file): Check for nullptr when computing
13507 srcpath.
13508
317f7127
TT
135092020-02-27 Tom Tromey <tromey@adacore.com>
13510
13511 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13512 member.
13513 (dwarf2_add_field): Don't update nfields.
13514 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13515
3104d9ee
AB
135162020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13517
13518 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13519 abs.
13520
b83470bf
TT
135212020-02-26 Tom Tromey <tom@tromey.com>
13522
13523 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13524 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13525 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13526 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13527 per_cu_data.
13528
edfe0a0c
TT
135292020-02-26 Tom Tromey <tom@tromey.com>
13530
13531 * dwarf2/index-write.c (psym_index_map): Change type.
13532 (add_address_entry_worker, write_one_signatured_type)
13533 (recursively_count_psymbols, recursively_write_psymbols)
13534 (class debug_names, psyms_seen_size, write_gdbindex)
13535 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13536
0d79cdc4
AM
135372020-02-26 Aaron Merey <amerey@redhat.com>
13538
13539 * Makefile.in: Handle optional debuginfod support.
13540 * NEWS: Update.
13541 * README: Add --with-debuginfod summary.
13542 * config.in: Regenerate.
13543 * configure: Regenerate.
13544 * configure.ac: Handle optional debuginfod support.
13545 * debuginfod-support.c: debuginfod helper functions.
13546 * debuginfod-support.h: Ditto.
13547 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13548 summary.
13549 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13550 when a dwz file cannot be found.
13551 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13552 debuginfo file cannot be found.
13553 * source.c (open_source_file): Query debuginfod servers when a
13554 source file cannot be found.
13555 * top.c (print_gdb_configuration): Include
13556 --{with,without}-debuginfod in the output.
13557
b65ce565
JG
135582020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13559
13560 * thread.c (thr_try_catch_cmd): Print thread name.
13561
d4c9a4f8
SM
135622020-02-26 Simon Marchi <simon.marchi@efficios.com>
13563
13564 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13565 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13566 dwarf2_fetch_die_type_sect_off): Move to...
13567 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13568 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13569 dwarf2_fetch_die_type_sect_off): ... here.
13570 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13571 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13572 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13573
0dce4280
TV
135742020-02-26 Tom de Vries <tdevries@suse.de>
13575
13576 PR gdb/25603
13577 * symfile.c (set_initial_language): Exit-early if
13578 language_mode == language_mode_manual.
13579
450a1bfc
SM
135802020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13581
13582 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13583 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13584 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13585
9e80cfa1
AB
135862020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13587
13588 * gdbtypes.c (create_array_type_with_stride): Handle negative
13589 array strides.
13590 * valarith.c (value_subscripted_rvalue): Likewise.
13591
09624f1f
LM
135922020-02-25 Luis Machado <luis.machado@linaro.org>
13593
13594 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13595
8cb5117c
SM
135962020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13597
13598 * loc.h (dwarf2_get_die_type): Move to...
13599 * read.h (dwarf2_get_die_type): ... here.
13600 * read.c (dwarf2_get_die_type): Move doc to header.
13601
c325c44e
JB
136022020-02-25 Joel Brobecker <brobecker@adacore.com>
13603
13604 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13605 'gnulib/Makefile.in' to the list.
13606
4ac93832
TT
136072020-02-24 Tom Tromey <tom@tromey.com>
13608
13609 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13610 Remove.
13611 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13612 XOBNEWVEC.
13613
197400e8
TT
136142020-02-24 Tom Tromey <tom@tromey.com>
13615
13616 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13617 New method.
13618 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13619 (dw2_do_instantiate_symtab, dw2_get_file_names)
13620 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13621
76935768
TT
136222020-02-24 Tom Tromey <tom@tromey.com>
13623
13624 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13625 make_scoped_restore.
13626 (dwarf2_psymtab::read_symtab): Don't clear
13627 reading_partial_symbols.
13628
a88ef40d
TV
136292020-02-24 Tom de Vries <tdevries@suse.de>
13630
13631 PR gdb/25592
13632 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13633
c9af6521
TV
136342020-02-24 Tom de Vries <tdevries@suse.de>
13635
13636 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13637 commands layout next/prev/regs.
13638
5707a07a
TT
136392020-02-22 Tom Tromey <tom@tromey.com>
13640
13641 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13642 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13643
3b0fb49e
TT
136442020-02-22 Tom Tromey <tom@tromey.com>
13645
13646 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13647
283be8bf
TT
136482020-02-22 Tom Tromey <tom@tromey.com>
13649
13650 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13651 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13652 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13653 * tui/tui.c (_initialize_tui): Add usage text.
13654
ca793b96
TT
136552020-02-22 Tom Tromey <tom@tromey.com>
13656
13657 * tui/tui-win.c (tui_set_focus_command)
13658 (tui_set_win_height_command): Use error_no_arg.
13659 (_initialize_tui_win): Update help text.
13660 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13661
432b5c40
TT
136622020-02-22 Tom Tromey <tom@tromey.com>
13663
13664 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13665 * tui/tui-disasm.h (struct tui_disasm_window)
13666 <display_start_addr>: Declare.
13667 * tui/tui-source.h (struct tui_source_window)
13668 <display_start_addr>: Declare.
13669 * tui/tui-winsource.h (struct tui_source_window_base)
13670 <show_source_line, display_start_addr>: New methods.
13671 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13672 Rename and move to protected section.
13673 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13674 (tui_source_window_base::do_erase_source_content): Update.
13675 (tui_source_window_base::show_source_line): Now a method.
13676 (tui_source_window_base::show_source_content)
13677 (tui_source_window_base::tui_source_window_base)
13678 (tui_source_window_base::rerender)
13679 (tui_source_window_base::refill)
13680 (tui_source_window_base::do_scroll_horizontal)
13681 (tui_source_window_base::set_is_exec_point_at)
13682 (tui_source_window_base::update_breakpoint_info)
13683 (tui_source_window_base::update_exec_info): Update.
13684 * tui/tui-source.c (tui_source_window::set_contents)
13685 (tui_source_window::showing_source_p)
13686 (tui_source_window::do_scroll_vertical)
13687 (tui_source_window::location_matches_p)
13688 (tui_source_window::line_is_displayed): Update.
13689 (tui_source_window::display_start_addr): New method.
13690 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13691 (tui_disasm_window::do_scroll_vertical)
13692 (tui_disasm_window::location_matches_p): Update.
13693 (tui_disasm_window::display_start_addr): New method.
13694
01b1af32
TT
136952020-02-22 Tom Tromey <tom@tromey.com>
13696
13697 * NEWS: Add entry for gdb.register_window_type.
13698 * tui/tui-layout.h (window_factory): New typedef.
13699 (tui_register_window): Declare.
13700 * tui/tui-layout.c (saved_tui_windows): New global.
13701 (tui_apply_current_layout): Use it.
13702 (tui_register_window): New function.
13703 * python/python.c (do_start_initialization): Call
13704 gdbpy_initialize_tui.
13705 (python_GdbMethods): Add "register_window_type" function.
13706 * python/python-internal.h (gdbpy_register_tui_window)
13707 (gdbpy_initialize_tui): Declare.
13708 * python/py-tui.c: New file.
13709 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13710
fc96d20b
TT
137112020-02-22 Tom Tromey <tom@tromey.com>
13712
13713 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13714
935c78c0
TT
137152020-02-22 Tom Tromey <tom@tromey.com>
13716
13717 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13718 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13719 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13720 (tui_set_win_focus_to): Move from tui-win.c.
13721
0240c8f1
TT
137222020-02-22 Tom Tromey <tom@tromey.com>
13723
13724 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13725 functions.
13726 (known_window_types): New global.
13727 (tui_get_window_by_name): Reimplement.
13728 (initialize_known_windows): New function.
13729 (validate_window_name): Rewrite.
13730 (_initialize_tui_layout): Call initialize_known_windows.
13731
fdb01f0c
TT
137322020-02-22 Tom Tromey <tom@tromey.com>
13733
13734 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13735 Remove constants.
13736 * tui/tui-winsource.h (struct tui_source_window_base)
13737 <tui_source_window_base>: Remove parameter.
13738 * tui/tui-winsource.c
13739 (tui_source_window_base::tui_source_window_base): Remove
13740 parameter.
13741 (tui_source_window_base::refill): Update.
13742 * tui/tui-stack.h (struct tui_locator_window)
13743 <tui_locator_window>: Update.
13744 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13745 Default the constructor.
13746 * tui/tui-regs.h (struct tui_data_item_window)
13747 <tui_data_item_window>: Default the constructor.
13748 (struct tui_data_window) <tui_data_window>: Likewise.
13749 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13750 Default the constructor.
13751 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13752 Default the constructor.
13753 <type>: Remove.
13754 (struct tui_win_info) <tui_win_info>: Default the constructor.
13755 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13756 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13757 Default the constructor.
13758
865a5aec
TT
137592020-02-22 Tom Tromey <tom@tromey.com>
13760
13761 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13762 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13763 * tui/tui-win.c (tui_resize_all): Don't call
13764 tui_delete_invisible_windows.
13765 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13766 done.
13767 (tui_set_layout): Update.
13768 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13769 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13770 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13771
e098d18c
TT
137722020-02-22 Tom Tromey <tom@tromey.com>
13773
13774 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13775 correctly.
13776
eb9c8874
TT
137772020-02-22 Tom Tromey <tom@tromey.com>
13778
13779 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13780
7eed1a8e
TT
137812020-02-22 Tom Tromey <tom@tromey.com>
13782
13783 * tui/tui-winsource.h (struct tui_source_window_iterator)
13784 <inner_iterator>: New etytypedef.
13785 <tui_source_window_iterator>: Take "end" parameter.
13786 <tui_source_window_iterator>: Take iterator.
13787 <operator*, advance>: Update.
13788 <m_iter>: Change type.
13789 <m_end>: New field.
13790 (struct tui_source_windows) <begin, end>: Update.
13791 * tui/tui-layout.c (tui_windows): New global.
13792 (tui_apply_current_layout): Clear tui_windows.
13793 (tui_layout_window::apply): Update tui_windows.
13794 * tui/tui-data.h (tui_windows): Declare.
13795 (all_tui_windows): Now inline function.
13796 (class tui_window_iterator, struct all_tui_windows): Remove.
13797
7c043ba6
TT
137982020-02-22 Tom Tromey <tom@tromey.com>
13799
13800 PR tui/17850:
13801 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13802 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13803 "height" argument.
13804 (class tui_layout_window) <get_sizes>: Likewise.
13805 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13806 argument.
13807 <get_sizes>: Add "height" argument.
13808 <m_vertical>: New field.
13809 * tui/tui-layout.c (tui_layout_split::clone): Update.
13810 (tui_layout_split::get_sizes): Add "height" argument.
13811 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13812 (tui_new_layout_command): Parse "-horizontal".
13813 (_initialize_tui_layout): Update help string.
13814 (tui_layout_split::specification): Add "-horizontal" when needed.
13815 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13816 argument.
13817 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13818 New methods.
13819
6bc56648
TT
138202020-02-22 Tom Tromey <tom@tromey.com>
13821
13822 * tui/tui-layout.h (enum tui_adjust_result): New.
13823 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13824 (class tui_layout_window) <adjust_size>: Return
13825 tui_adjust_result. Rewrite.
13826 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13827 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13828
c22fef7e
TT
138292020-02-22 Tom Tromey <tom@tromey.com>
13830
13831 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13832 parameter and return types.
13833 (class tui_layout_base) <specification>: Add "depth".
13834 (class tui_layout_window) <specification>: Add "depth".
13835 (class tui_layout_split) <specification>: Add "depth".
13836 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13837 and return types.
13838 (tui_new_layout_command): Parse sub-layouts.
13839 (_initialize_tui_layout): Update help string.
13840 (tui_layout_window::specification): Add "depth".
13841 (add_layout_command): Update.
13842
ee325b61
TT
138432020-02-22 Tom Tromey <tom@tromey.com>
13844
13845 * NEWS: Add "tui new-layout" item.
13846 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13847 Add new-layout command to help text.
13848 (validate_window_name): New function.
13849 (tui_new_layout_command): New function.
13850 (_initialize_tui_layout): Register "new-layout".
13851 (tui_layout_window::specification): New method.
13852 (tui_layout_window::specification): New method.
13853 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13854 method.
13855 (class tui_layout_window) <specification>: New method.
13856 (class tui_layout_split) <specification>: New method.
13857
416eb92d
TT
138582020-02-22 Tom Tromey <tom@tromey.com>
13859
13860 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13861 * tui/tui-win.c (window_name_completer): Update comment.
13862 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13863 Declare method.
13864 (class tui_layout_window) <replace_window>: Likewise.
13865 (class tui_layout_split) <replace_window>: Likewise.
13866 (tui_set_layout): Don't declare.
13867 (tui_set_initial_layout): Declare function.
13868 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13869 (asm_regs_layout): New globals.
13870 (tui_current_layout, show_layout): Remove.
13871 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13872 (find_layout, tui_apply_layout): New function.
13873 (layout_completer): Remove.
13874 (tui_next_layout): Reimplement.
13875 (tui_next_layout_command): New function.
13876 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13877 (tui_regs_layout): Reimplement.
13878 (tui_regs_layout_command): New function.
13879 (extract_display_start_addr): Rewrite.
13880 (next_layout, prev_layout): Remove.
13881 (tui_layout_window::replace_window): New method.
13882 (tui_layout_split::replace_window): New method.
13883 (destroy_layout): New function.
13884 (layout_list): New global.
13885 (add_layout_command): New function.
13886 (initialize_layouts): Update.
13887 (tui_layout_command): New function.
13888 (_initialize_tui_layout): Install "layout" commands.
13889 * tui/tui-data.h (enum tui_layout_type): Remove.
13890 (tui_current_layout): Don't declare.
13891
0dbc2fc7
TT
138922020-02-22 Tom Tromey <tom@tromey.com>
13893
13894 * tui/tui-regs.c (tui_reg_layout): Remove.
13895 (tui_reg_command): Use tui_regs_layout.
13896 * tui/tui-layout.h (tui_reg_command): Declare.
13897 * tui/tui-layout.c (tui_reg_command): New function.
13898
5afe342e
TT
138992020-02-22 Tom Tromey <tom@tromey.com>
13900
13901 * tui/tui.c (tui_rl_delete_other_windows): Call
13902 tui_remove_some_windows.
13903 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13904 Declare method.
13905 (class tui_layout_window) <remove_windows>: New method.
13906 (class tui_layout_split) <remove_windows>: Declare.
13907 (tui_remove_some_windows): Declare.
13908 * tui/tui-layout.c (tui_remove_some_windows): New function.
13909 (tui_layout_split::remove_windows): New method.
13910
427326a8
TT
139112020-02-22 Tom Tromey <tom@tromey.com>
13912
13913 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13914 * tui/tui-layout.h (tui_next_layout): Declare.
13915 * tui/tui-layout.c (tui_next_layout): New function.
13916
3fe12b6d
TT
139172020-02-22 Tom Tromey <tom@tromey.com>
13918
13919 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13920 correct coordinates.
13921
59b8b5d2
TT
139222020-02-22 Tom Tromey <tom@tromey.com>
13923
13924 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13925 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13926 DATA_WIN case.
13927
2a3d458b
TT
139282020-02-22 Tom Tromey <tom@tromey.com>
13929
13930 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13931 TUI_DISASM_WIN, not tui_win_list.
13932
3f0cbb04
TT
139332020-02-22 Tom Tromey <tom@tromey.com>
13934
13935 * valprint.c (generic_val_print_enum_1)
13936 (val_print_type_code_flags): Style member names.
13937 * rust-lang.c (val_print_struct, rust_print_enum)
13938 (rust_print_struct_def, rust_internal_print_type): Style member
13939 names.
13940 * p-valprint.c (pascal_object_print_value_fields): Style member
13941 names. Only call fprintf_symbol_filtered for static members.
13942 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13943 * f-valprint.c (f_val_print): Style member names.
13944 * f-typeprint.c (f_type_print_base): Style member names.
13945 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13946 call fprintf_symbol_filtered for static members.
13947 (cp_print_class_member): Style member names.
13948 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13949 member names.
13950 * ada-valprint.c (ada_print_scalar): Style enum names.
13951 (ada_val_print_enum): Likewise.
13952 * ada-typeprint.c (print_enum_type): Style enum names.
13953
d4d947ae
TT
139542020-02-21 Tom Tromey <tom@tromey.com>
13955
13956 * psympriv.h (struct partial_symtab): Update comment.
13957
e94e944b
TT
139582020-02-21 Tom Tromey <tromey@adacore.com>
13959
13960 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13961 type is CORE_ADDR.
13962
1eb73179
TV
139632020-02-21 Tom de Vries <tdevries@suse.de>
13964
13965 PR gdb/25534
13966 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13967 if dependencies[i]->user != NULL.
13968
4f180d53
AT
139692020-02-21 Ali Tamur <tamur@google.com>
13970
13971 * dwarf2/read.c (dwarf2_name): Add null check.
13972
22b6cd70
TT
139732020-02-20 Tom Tromey <tom@tromey.com>
13974
13975 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13976 ">=", in binary search.
13977 (dwarf2_find_containing_comp_unit): New overload.
13978 (run_test): New self-test.
13979 (_initialize_dwarf2_read): Register new test.
13980
bd0cf5a6
NC
139812020-02-20 Nelson Chu <nelson.chu@sifive.com>
13982
13983 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13984 * riscv-tdep.h: Likewise.
13985 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13986 rv32-only CSR.
13987 * features/riscv/64bit-csr.xml: Regenerated.
13988
3f702acd
SDJ
139892020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13990 Tom Tromey <tom@tromey.com>
13991
13992 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13993 of 'fputc_unfiltered'.
13994 (putchar_unfiltered): Call 'fputc_unfiltered'.
13995 (fputc_unfiltered): Call 'fputs_unfiltered'.
13996
d13c7322
AB
139972020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13998
13999 * config.in: Regenerate.
14000 * configure: Regenerate.
14001 * configure.ac: Add --with-python-libdir option.
14002 * main.c: Use WITH_PYTHON_LIBDIR.
14003
869d8950
TT
140042020-02-19 Tom Tromey <tom@tromey.com>
14005
14006 * symtab.c (general_symbol_info::compute_and_set_names): Use
14007 obstack_strndup. Simplify call to symbol_set_demangled_name.
14008
298e9637
SM
140092020-02-19 Simon Marchi <simon.marchi@efficios.com>
14010
14011 * dwarf2/read.c (allocate_signatured_type_table,
14012 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14013 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14014 Remove objfile parameter, update all callers.
14015
08410482
DE
140162020-02-19 Doug Evans <dje@google.com>
14017
14018 PR rust/25535
14019 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14020 rust_enum_variant calculation.
14021
dfdeeca1
TT
140222020-02-19 Tom Tromey <tromey@adacore.com>
14023
14024 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14025
2ef5453b
TT
140262020-02-19 Tom Tromey <tromey@adacore.com>
14027
14028 * ada-lang.c (cache_symbol): Use obstack_strdup.
14029
9f1528a1
AB
140302020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14031
14032 * configure: Regenerate.
14033
d3c22fa8
TT
140342020-02-19 Tom Tromey <tromey@adacore.com>
14035
14036 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14037 NULL check.
14038
bf84f706
MR
140392020-02-19 Maciej W. Rozycki <macro@wdc.com>
14040
14041 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14042
d1c9b20f
AB
140432020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14044
14045 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14046 if GDBSERVER is not defined.
14047 (riscv_tdesc_cache): Likewise, also store const target_desc.
14048 (STATIC_IN_GDB): Define.
14049 (riscv_create_target_description): Update declaration with
14050 STATIC_IN_GDB.
14051 (riscv_lookup_target_description): New function, only define if
14052 GDBSERVER is not defined.
14053 * arch/riscv.h (riscv_create_target_description): Declare only
14054 when GDBSERVER is defined.
14055 (riscv_lookup_target_description): New declaration when GDBSERVER
14056 is not defined.
14057 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14058 (riscv_linux_read_features): ...this, and return
14059 riscv_gdbarch_features instead of target_desc.
14060 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14061 (riscv_linux_read_description): Rename to...
14062 (riscv_linux_read_features): ...this.
14063 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14064 Update to use riscv_gdbarch_features and
14065 riscv_lookup_target_description.
14066 * riscv-tdep.c (riscv_find_default_target_description): Use
14067 riscv_lookup_target_description instead of
14068 riscv_create_target_description.
14069
373d7ac0
SM
140702020-02-18 Simon Marchi <simon.marchi@efficios.com>
14071
14072 * valprint.c (generic_val_print_enum_1): When printing a flag
14073 enum with value 0 and there is no enumerator with value 0, print
14074 just "0" instead of "(unknown: 0x0)".
14075
b29a2df0
SM
140762020-02-18 Simon Marchi <simon.marchi@efficios.com>
14077
14078 * valprint.c (generic_val_print_enum_1): Print unknown part of
14079 flag enum in hex.
14080
6740f0cc
SM
140812020-02-18 Simon Marchi <simon.marchi@efficios.com>
14082
14083 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14084 flag enums to contain duplicate enumerators.
14085 * valprint.c (generic_val_print_enum_1): Update comment.
14086
edd45eb0
SM
140872020-02-18 Simon Marchi <simon.marchi@efficios.com>
14088
14089 * dwarf2/read.c: Include "count-one-bits.h".
14090 (update_enumeration_type_from_children): If an enumerator has
14091 multiple bits set, don't treat the enumeration as a "flag enum".
14092 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14093 of flag enums have 0 or 1 bit set.
14094
6d0cf446
BE
140952020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14096
14097 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14098 conversion.
14099 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14100 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14101 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14102 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14103 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14104
7001c1b7
SM
141052020-02-18 Simon Marchi <simon.marchi@efficios.com>
14106
14107 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14108
fdb61c6c
SM
141092020-02-14 Simon Marchi <simon.marchi@efficios.com>
14110
14111 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14112 displaced_step_closure_up.
14113 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14114 (struct displaced_step_closure_up):
14115 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14116 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14117 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14118 Likewise.
14119 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14120 * gdbarch.c, gdbarch.h: Re-generate.
14121 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14122 displaced_step_closure_up.
14123 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14124 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14125 * infrun.h (displaced_step_closure_up): New type alias.
14126 (struct displaced_step_inferior_state) <step_closure>: Change
14127 type to displaced_step_closure_up.
14128 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14129 displaced_step_closure_up.
14130 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14131
a4a38eb4
TT
141322020-02-14 Tom Tromey <tom@tromey.com>
14133
14134 * minidebug.c (gnu_debug_key): New global.
14135 (find_separate_debug_file_in_section): Use it.
14136
e8217e61
SM
141372020-02-14 Simon Marchi <simon.marchi@efficios.com>
14138
14139 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14140 std::unique_ptr.
14141 * gdbarch.c: Re-generate.
14142 * gdbarch.h: Re-generate.
14143 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14144 change.
14145 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14146 type to std::unique_ptr.
14147 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14148 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14149 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14150 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14151 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14152 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14153 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14154 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14155 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14156
d8d83535
SM
141572020-02-14 Simon Marchi <simon.marchi@efficios.com>
14158
14159 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14160 std::unique_ptr.
14161 (displaced_step_clear): Rename to...
14162 (displaced_step_reset): ... this. Just call displaced->reset ().
14163 (displaced_step_clear_cleanup): Rename to...
14164 (displaced_step_reset_cleanup): ... this.
14165 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14166 (displaced_step_fixup): Likewise.
14167 (resume_1): Likewise.
14168 (handle_inferior_event): Restore child's memory before calling
14169 displaced_step_fixup on the parent.
14170 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14171 to std::unique_ptr.
14172 <step_closure>: Change type to std::unique_ptr.
14173
5f661e03
SM
141742020-02-14 Simon Marchi <simon.marchi@efficios.com>
14175
14176 * arm-tdep.c: Include count-one-bits.h.
14177 (cleanup_block_store_pc): Use count_one_bits.
14178 (cleanup_block_load_pc): Use count_one_bits.
14179 (arm_copy_block_xfer): Use count_one_bits.
14180 (thumb2_copy_block_xfer): Use count_one_bits.
14181 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14182 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14183 (thumb_get_next_pcs_raw): Use count_one_bits.
14184 (arm_get_next_pcs_raw): Use count_one_bits_l.
14185 * arch/arm.c (bitcount): Remove.
14186 * arch/arm.h (bitcount): Remove.
14187
8084e579
TT
141882020-02-14 Tom Tromey <tromey@adacore.com>
14189
14190 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14191 Update.
14192 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14193 * dwarf2/loc.c (call_site_find_chain_1): Return
14194 unique_xmalloc_ptr.
14195 (call_site_find_chain): Likewise.
14196
258bf0ee
RB
141972020-02-14 Richard Biener <rguenther@suse.de>
14198
14199 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14200 on expression with division operators.
14201
f98a8458
AKS
142022020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14203
14204 * MAINTAINERS (Write After Approval): Adding myself.
14205
d1437c0e
TT
142062020-02-12 Tom Tromey <tom@tromey.com>
14207
14208 * event-loop.c (event_data, gdb_event, event_handler_func):
14209 Remove.
14210
3d4560f7
TT
142112020-02-12 Tom Tromey <tom@tromey.com>
14212
14213 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14214 (dwarf2_frame_objfile_data): Add comment.
14215 (find_comp_unit, set_comp_unit): New functions.
14216 (dwarf2_frame_find_fde): Use find_comp_unit.
14217 (dwarf2_build_frame_info): Use set_comp_unit.
14218
21982304
TT
142192020-02-12 Tom Tromey <tom@tromey.com>
14220
14221 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14222 (comp_unit): Don't initialize objfile.
14223 (execute_cfa_program): Add text_offset parameter.
14224 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14225 (dwarf2_frame_cache): Update.
14226 (dwarf2_build_frame_info): Don't set "objfile" member.
14227
4debb237
TT
142282020-02-12 Tom Tromey <tom@tromey.com>
14229
14230 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14231 (decode_frame_entry): Likewise.
14232 (dwarf2_build_frame_info): Update.
14233
0d404d44
TT
142342020-02-12 Tom Tromey <tom@tromey.com>
14235
14236 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14237 (decode_frame_entry_1): Use the comp_unit obstack.
14238
a7a3ae5c
TT
142392020-02-12 Tom Tromey <tom@tromey.com>
14240
14241 * dwarf2/frame.c (struct comp_unit): Add initializers and
14242 constructor.
14243 (dwarf2_frame_objfile_data): Store a comp_unit.
14244 (dwarf2_frame_find_fde): Update.
14245 (dwarf2_build_frame_info): Use "new".
14246
a9d65418
TT
142472020-02-12 Tom Tromey <tom@tromey.com>
14248
14249 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14250 (dwarf2_fde_table): Typedef for std::vector.
14251 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14252 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14253 (decode_frame_entry): Update.
14254 (dwarf2_build_frame_info): Use "new".
14255
7559c217
CB
142562020-02-12 Christian Biesinger <cbiesinger@google.com>
14257
14258 * arm-tdep.c (arm_gdbarch_init): Update.
14259 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14260 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14261 have_neon, is_m>: Change to bool.
14262
aeefc73c
CB
142632020-02-12 Christian Biesinger <cbiesinger@google.com>
14264
14265 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14266
d27b8e5f
TT
142672020-02-12 Tom Tromey <tom@tromey.com>
14268
14269 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14270
cd5900f3
HD
142712020-02-12 Hannes Domani <ssbssa@yahoo.de>
14272
14273 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14274 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14275
f056b22b
TT
142762020-02-11 Tom Tromey <tom@tromey.com>
14277
14278 * psymtab.h: Update comment.
14279
f92ff6b5
TT
142802020-02-11 Tom Tromey <tom@tromey.com>
14281
14282 * gdb_obstack.h (struct auto_obstack): Use
14283 DISABLE_COPY_AND_ASSIGN.
14284
3fd6912b
TT
142852020-02-11 Tom Tromey <tom@tromey.com>
14286
14287 * dwarf2/frame.h (struct objfile): Don't forward declare.
14288
69ed9b74
CB
142892020-02-11 Christian Biesinger <cbiesinger@google.com>
14290
14291 * cris-tdep.c (cris_supply_gregset): Change signature to match
14292 what struct regset expects.
14293 (cris_regset): New struct.
14294 (fetch_core_registers): Remove.
14295 (cris_iterate_over_regset_sections): New function.
14296 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14297 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14298
bda874f6
CB
142992020-02-11 Christian Biesinger <cbiesinger@google.com>
14300
14301 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14302 registers.
14303
754e1564
CB
143042020-02-11 Christian Biesinger <cbiesinger@google.com>
14305
14306 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14307
8ddd8e0e
SM
143082020-02-11 Simon Marchi <simon.marchi@efficios.com>
14309
14310 * configure: Re-generate.
14311
898e7f60
SM
143122020-02-11 Simon Marchi <simon.marchi@efficios.com>
14313
14314 * configure: Re-generate.
14315
58df732b
SM
143162020-02-11 Simon Marchi <simon.marchi@efficios.com>
14317
14318 * acinclude: Update warning.m4 path.
14319 * warning.m4: Move to gdbsupport.
14320
da5bd37e
TT
143212020-02-11 Tom Tromey <tromey@adacore.com>
14322
14323 * remote.c (remote_console_output): Update.
14324 * printcmd.c (printf_command): Update.
14325 * event-loop.c (gdb_wait_for_event): Update.
14326 * linux-nat.c (sigchld_handler): Update.
14327 * remote-sim.c (gdb_os_write_stdout): Update.
14328 (gdb_os_flush_stdout): Update.
14329 (gdb_os_flush_stderr): Update.
14330 (gdb_os_write_stderr): Update.
14331 * exceptions.c (print_exception): Update.
14332 * remote-fileio.c (remote_fileio_func_read): Update.
14333 (remote_fileio_func_write): Update.
14334 * tui/tui.c (tui_enable): Update.
14335 * tui/tui-interp.c (tui_interp::init): Update.
14336 * utils.c (init_page_info): Update.
14337 (putchar_unfiltered, fputc_unfiltered): Update.
14338 (gdb_flush): Update.
14339 (emit_style_escape): Update.
14340 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14341 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14342 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14343 (stderr_file::write): Update.
14344 (stderr_file::puts): Update.
14345 * ui-file.h (ui_file_isatty, ui_file_write)
14346 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14347 (ui_file_puts): Don't declare.
14348
85f0dd3c
TV
143492020-02-10 Tom de Vries <tdevries@suse.de>
14350
14351 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14352 sentinel to char *.
14353
2e927613
TV
143542020-02-09 Tom de Vries <tdevries@suse.de>
14355
14356 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14357 filename if it matches "<artificial>".
14358
6bafc845
HD
143592020-02-09 Hannes Domani <ssbssa@yahoo.de>
14360
14361 * windows-tdep.c (struct enum_value_name): New struct.
14362 (create_enum): New function.
14363 (windows_get_siginfo_type): Create and use enum types.
14364
7928d571
HD
143652020-02-09 Hannes Domani <ssbssa@yahoo.de>
14366
14367 * NEWS: Mention $_siginfo support for Windows.
14368 * windows-nat.c (handle_exception): Set siginfo_er.
14369 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14370 (windows_xfer_siginfo): New function.
14371 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14372 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14373 (init_windows_gdbarch_data): New function.
14374 (get_windows_gdbarch_data): New function.
14375 (windows_get_siginfo_type): New function.
14376 (windows_init_abi): Register windows_get_siginfo_type.
14377 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14378
6751ebae
TT
143792020-02-08 Tom Tromey <tom@tromey.com>
14380
14381 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14382 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14383 <keep>: Declare method.
14384 <m_keep>: Remove member.
14385 <~cutu_reader>: Remove.
14386 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14387 (cutu_reader::cutu_reader): Update.
14388 (cutu_reader::keep): Rename from ~cutu_reader.
14389 (process_psymtab_comp_unit, build_type_psymtabs_1)
14390 (process_skeletonless_type_unit, load_partial_comp_unit)
14391 (load_full_comp_unit, dwarf2_read_addr_index)
14392 (read_signatured_type): Update.
14393
135f5437
TT
143942020-02-08 Tom Tromey <tom@tromey.com>
14395
14396 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14397 "want_partial_unit" parameter.
14398 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14399 Inline check for DW_TAG_partial_unit.
14400 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14401
9f66ff1c
TT
144022020-02-08 Tom Tromey <tom@tromey.com>
14403
14404 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14405 read.c.
14406 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14407 read.c.
14408
c8a7a66f
TT
144092020-02-08 Tom Tromey <tom@tromey.com>
14410
14411 * dwarf2/read.c (read_address): Move to comp-unit.c.
14412 (dwarf2_rnglists_process, dwarf2_ranges_process)
14413 (read_attribute_value, dwarf_decode_lines_1)
14414 (var_decode_location, decode_locdesc): Update.
14415 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14416 read.c. Remove "cu" parameter.
14417 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14418 method.
14419
8266302d
TT
144202020-02-08 Tom Tromey <tom@tromey.com>
14421
14422 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14423 (read_indirect_line_string): Update.
14424 * dwarf2/comp-unit.c (read_offset): Remove.
14425 (read_comp_unit_head): Update.
14426 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14427 method.
14428 (read_offset): Don't declare.
14429
4057dfde
TT
144302020-02-08 Tom Tromey <tom@tromey.com>
14431
14432 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14433 * dwarf2/read.c (struct comp_unit_head): Move to
14434 dwarf2/comp-unit.h.
14435 (enum class rcuh_kind): Move to comp-unit.h.
14436 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14437 (read_comp_unit_head, error_check_comp_unit_head)
14438 (read_and_check_comp_unit_head): Move to comp-unit.c.
14439 (read_offset, dwarf_unit_type_name): Likewise.
14440 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14441 (cutu_reader::cutu_reader, read_call_site_scope)
14442 (find_partial_die, follow_die_offset): Update.
14443 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14444
24aa364d
TT
144452020-02-08 Tom Tromey <tom@tromey.com>
14446
14447 * dwarf2/read.c (read_offset_1): Move to leb.c.
14448 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14449 (dwarf_decode_macro_bytes): Update.
14450 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14451 * dwarf2/leb.h (read_offset): Declare.
14452
2c7d5afc
TT
144532020-02-08 Tom Tromey <tom@tromey.com>
14454
14455 * dwarf2/read.c (dwarf2_section_size): Remove.
14456 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14457 Update.
14458 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14459
4075cb26
TT
144602020-02-08 Tom Tromey <tom@tromey.com>
14461
14462 * dwarf2/read.c (read_initial_length): Move to leb.c.
14463 * dwarf2/leb.h (read_initial_length): Declare.
14464 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14465 handle_nonstd parameter.
14466 * dwarf2/frame.c (read_initial_length): Remove.
14467 (decode_frame_entry_1): Update.
14468
09ba997f
TT
144692020-02-08 Tom Tromey <tom@tromey.com>
14470
14471 * dwarf2/loc.c (dwarf2_find_location_expression)
14472 (dwarf_evaluate_loc_desc::get_tls_address)
14473 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14474 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14475 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14476 (dwarf2_compile_property_to_c)
14477 (dwarf2_loc_desc_get_symbol_read_needs)
14478 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14479 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14480 (loclist_describe_location, loclist_tracepoint_var_ref)
14481 (loclist_generate_c_location): Update.
14482 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14483 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14484 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14485 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14486 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14487 (dwarf2_per_cu_data::addr_size)
14488 (dwarf2_per_cu_data::ref_addr_size)
14489 (dwarf2_per_cu_data::text_offset)
14490 (dwarf2_per_cu_data::addr_type): Now methods.
14491 (per_cu_header_read_in): Make per_cu "const".
14492 (dwarf2_version): Remove.
14493 (dwarf2_per_cu_data::int_type): Now a method.
14494 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14495 (set_die_type, read_array_type, read_subrange_index_type)
14496 (read_tag_string_type, read_subrange_type): Update.
14497 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14498 offset_size, ref_addr_size, text_offset, addr_type, version,
14499 objfile, int_type, addr_sized_int_type>: Declare methods.
14500
96c738c0
TT
145012020-02-08 Tom Tromey <tom@tromey.com>
14502
14503 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14504 Move earlier.
14505
8fdd972c
TT
145062020-02-08 Tom Tromey <tom@tromey.com>
14507
14508 * dwarf2/read.h (dwarf_line_debug): Declare.
14509 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14510 * dwarf2/read.c: Move line_header code to new files.
14511 (dwarf_line_debug): No longer static.
14512 * dwarf2/line-header.c: New file.
14513 * dwarf2/line-header.h: New file.
14514
03075812
TT
145152020-02-08 Tom Tromey <tom@tromey.com>
14516
14517 * dwarf2/read.c (struct line_header) <file_full_name,
14518 file_file_name>: Return unique_xmalloc_ptr.
14519 (line_header::file_file_name): Update.
14520 (line_header::file_full_name): Update.
14521 (dw2_get_file_names_reader): Update.
14522 (macro_start_file): Update.
14523
bb822404
TT
145242020-02-08 Tom Tromey <tom@tromey.com>
14525
14526 * dwarf2/read.c (struct line_header) <file_full_name,
14527 file_file_name>: Declare methods.
14528 (dw2_get_file_names_reader): Update.
14529 (file_file_name): Now a method.
14530 (file_full_name): Likewise.
14531 (macro_start_file): Update.
14532
009b64fc
TT
145332020-02-08 Tom Tromey <tom@tromey.com>
14534
14535 * dwarf2/read.c (dwarf_always_disassemble)
14536 (show_dwarf_always_disassemble): Move to loc.c.
14537 (_initialize_dwarf2_read): Move "always-disassemble" registration
14538 to loc.c.
14539 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14540 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14541 static.
14542 (show_dwarf_always_disassemble): Move from read.c.
14543 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14544
5895093f
TT
145452020-02-08 Tom Tromey <tom@tromey.com>
14546
14547 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14548 (create_quick_file_names_table): Return htab_up.
14549 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14550 Update.
14551 * dwarf2/read.h (struct dwarf2_per_objfile)
14552 <quick_file_names_table>: Now htab_up.
14553
b3b32279
TT
145542020-02-08 Tom Tromey <tom@tromey.com>
14555
14556 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14557
1d33d811
TT
145582020-02-08 Tom Tromey <tom@tromey.com>
14559
14560 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14561 Rewrite.
14562 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14563 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14564 (abbrev_table::abbrev_table): No longer inline.
14565 (ABBREV_HASH_SIZE): Remove.
14566 (abbrev_table::m_abbrevs): Now an htab_up.
14567
86de1d91
TT
145682020-02-08 Tom Tromey <tom@tromey.com>
14569
14570 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14571 (cutu_reader): Update.
14572 (build_type_psymtabs_1): Update.
14573 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14574 (abbrev_table::alloc_abbrev): Update.
14575 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14576 (abbrev_table::read): New static method, renamed from
14577 abbrev_table_read_table.
14578 (abbrev_table::alloc_abbrev)
14579 (abbrev_table::add_abbrev): Now private.
14580 (abbrev_table::abbrev_table): Now private.
14581 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14582
0335378b
TT
145832020-02-08 Tom Tromey <tom@tromey.com>
14584
14585 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14586 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14587 htab_up.
14588
48b490f2
TT
145892020-02-08 Tom Tromey <tom@tromey.com>
14590
14591 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14592 htab_up.
14593 (lookup_dwo_unit_in_dwp): Update.
14594 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14595 on obstack.
14596
bc68fb19
TT
145972020-02-08 Tom Tromey <tom@tromey.com>
14598
14599 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14600 obstack.
14601
d15acc42
TT
146022020-02-08 Tom Tromey <tom@tromey.com>
14603
14604 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14605 line_header_hash.
14606 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14607 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14608 Change type to htab_up.
14609
eaa5fa8b
TT
146102020-02-08 Tom Tromey <tom@tromey.com>
14611
14612 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14613 htab_up. Don't allocate on obstack.
14614 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14615 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14616 Change type to htab_up.
14617
b0b6a987
TT
146182020-02-08 Tom Tromey <tom@tromey.com>
14619
14620 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14621 Change type to htab_up.
14622 * dwarf2/read.c (create_signatured_type_table_from_index)
14623 (create_signatured_type_table_from_debug_names)
14624 (create_all_type_units, add_type_unit)
14625 (lookup_dwo_signatured_type, lookup_signatured_type)
14626 (process_skeletonless_type_unit): Update.
14627 (create_debug_type_hash_table, create_debug_types_hash_table):
14628 Change type of types_htab.
14629 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14630 htab_up. Don't allocate on obstack.
14631 (create_cus_hash_table): Change type of cus_htab parameter.
14632 (struct dwo_file) <cus, tus>: Now htab_up.
14633 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14634 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14635 (queue_and_load_all_dwo_tus): Update.
14636 * dwarf2/index-write.c (write_gdbindex): Update.
14637 (write_debug_names): Update.
14638
39856def
TT
146392020-02-08 Tom Tromey <tom@tromey.com>
14640
14641 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14642 dwarf2/read.c. Remove "next" member. Add constructor ntad
14643 destructor.
14644 (struct dwarf2_per_objfile) <queue>: New member.
14645 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14646 dwarf2/read.h.
14647 (dwarf2_queue, dwarf2_queue_tail): Remove.
14648 (class dwarf2_queue_guard): Add parameter to constructor. Use
14649 DISABLE_COPY_AND_ASSIGN.
14650 <m_per_objfile>: New member.
14651 <~dwarf2_queue_guard>: Rewrite.
14652 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14653 Update.
14654 (~dwarf2_queue_item): New.
14655
3e225074
TT
146562020-02-08 Tom Tromey <tom@tromey.com>
14657
14658 * dwarf2/read.c (struct die_info) <has_children>: New member.
14659 (dw2_get_file_names_reader): Remove has_children.
14660 (dw2_get_file_names): Update.
14661 (read_cutu_die_from_dwo): Remove has_children.
14662 (cutu_reader::init_tu_and_read_dwo_dies)
14663 (cutu_reader::cutu_reader): Update.
14664 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14665 Remove has_children.
14666 (build_type_psymtabs_1, process_skeletonless_type_unit)
14667 (load_partial_comp_unit, load_full_comp_unit): Update.
14668 (create_dwo_cu_reader): Remove has_children.
14669 (create_cus_hash_table, read_die_and_children): Update.
14670 (read_full_die_1,read_full_die): Remove has_children.
14671 (read_signatured_type): Update.
14672 (class cutu_reader) <has_children>: Remove.
14673
82ca8957
TT
146742020-02-08 Tom Tromey <tom@tromey.com>
14675
14676 * dwarf2/expr.c: Rename from dwarf2expr.c.
14677 * dwarf2/expr.h: Rename from dwarf2expr.h.
14678 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14679 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14680 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14681 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14682 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14683 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14684 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14685 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14686 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14687 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14688 * dwarf2/loc.c: Rename from dwarf2loc.c.
14689 * dwarf2/loc.h: Rename from dwarf2loc.h.
14690 * dwarf2/read.c: Rename from dwarf2read.c.
14691 * dwarf2/read.h: Rename from dwarf2read.h.
14692 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14693 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14694 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14695 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14696 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14697 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14698 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14699 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14700 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14701 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14702 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14703 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14704 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14705 Update.
14706 * Makefile.in (COMMON_SFILES): Update.
14707 (HFILES_NO_SRCDIR): Update.
14708
9e35d499
TT
147092020-02-08 Tom Tromey <tom@tromey.com>
14710
14711 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14712 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14713
1eba2311
TT
147142020-02-08 Tom Tromey <tom@tromey.com>
14715
14716 * dwarf2read.h (struct die_info): Don't declare.
14717
e41c2da2
TT
147182020-02-08 Tom Tromey <tom@tromey.com>
14719
14720 * dwarf2read.h (die_info_ptr): Remove typedef.
14721
4fc6c0d5
TT
147222020-02-08 Tom Tromey <tom@tromey.com>
14723
14724 * dwarf2read.c (read_call_site_scope)
14725 (handle_data_member_location, dwarf2_add_member_fn)
14726 (mark_common_block_symbol_computed, read_common_block)
14727 (attr_to_dynamic_prop, partial_die_info::read)
14728 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14729 (dwarf2_symbol_mark_computed, set_die_type): Update.
14730 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14731 method.
14732 (attr_form_is_block): Don't declare.
14733 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14734
cd6c91b4
TT
147352020-02-08 Tom Tromey <tom@tromey.com>
14736
14737 * dwarf2read.c (dwarf2_find_base_address, )
14738 (read_call_site_scope, rust_containing_type)
14739 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14740 (handle_data_member_location, dwarf2_add_member_fn)
14741 (get_alignment, read_structure_type, process_structure_scope)
14742 (mark_common_block_symbol_computed, read_common_block)
14743 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14744 (partial_die_info::read, read_attribute_value, new_symbol)
14745 (lookup_die_type, dwarf2_get_ref_die_offset)
14746 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14747 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14748 (dwarf2_symbol_mark_computed): Update.
14749 * dwarf2/attribute.h (struct attribute) <value_as_address,
14750 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14751 methods.
14752 (value_as_address, attr_form_is_section_offset)
14753 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14754 * dwarf2/attribute.c (attribute::value_as_address)
14755 (attribute::form_is_section_offset, attribute::form_is_constant)
14756 (attribute::form_is_ref): Now methods.
14757
162dce55
TT
147582020-02-08 Tom Tromey <tom@tromey.com>
14759
14760 * dwarf2read.c (struct attribute, DW_STRING)
14761 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14762 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14763 (attr_form_is_block, attr_form_is_section_offset)
14764 (attr_form_is_constant, attr_form_is_ref): Move.
14765 * dwarf2/attribute.h: New file.
14766 * dwarf2/attribute.c: New file, from dwarf2read.c.
14767 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14768
3054dd54
TT
147692020-02-08 Tom Tromey <tom@tromey.com>
14770
14771 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14772 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14773 Move.
14774 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14775 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14776 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14777 abbrev.c.
14778 * dwarf2/abbrev.h: New file.
14779 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14780 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14781
96b79293
TT
147822020-02-08 Tom Tromey <tom@tromey.com>
14783
14784 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14785 (dwarf2_section_size, dwarf2_get_section_info)
14786 (create_signatured_type_table_from_debug_names)
14787 (create_addrmap_from_aranges, read_debug_names_from_section)
14788 (get_gdb_index_contents_from_section, read_comp_unit_head)
14789 (error_check_comp_unit_head, read_abbrev_offset)
14790 (create_debug_type_hash_table, init_cu_die_reader)
14791 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14792 (read_comp_units_from_section, create_cus_hash_table)
14793 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14794 (create_dwp_v2_section, dwarf2_rnglists_process)
14795 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14796 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14797 (read_indirect_string_from_dwz, read_addr_index_1)
14798 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14799 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14800 (fill_in_loclist_baton): Update.
14801 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14802 get_containing_section, get_bfd_owner, get_bfd_section,
14803 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14804 (dwarf2_read_section, get_section_name, get_section_file_name)
14805 (get_containing_section, get_section_bfd_owner)
14806 (get_section_bfd_section, get_section_name, get_section_file_name)
14807 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14808 declare.
14809 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14810 (dwarf2_section_info::get_bfd_owner)
14811 (dwarf2_section_info::get_bfd_section)
14812 (dwarf2_section_info::get_name)
14813 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14814 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14815 (dwarf2_section_info::read): Now methods.
14816 * dwarf-index-write.c (class debug_names): Update.
14817
2c86cff9
TT
148182020-02-08 Tom Tromey <tom@tromey.com>
14819
14820 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14821 Move to dwarf2/section.h.
14822 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14823 (get_section_bfd_section, get_section_name)
14824 (get_section_file_name, get_section_id, get_section_flags)
14825 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14826 dwarf2/section.c.
14827 * dwarf2/section.h: New file.
14828 * dwarf2/section.c: New file, from dwarf2read.c.
14829 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14830
f4382c45
TT
148312020-02-08 Tom Tromey <tom@tromey.com>
14832
14833 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14834 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14835 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14836 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14837 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14838 * dwarf2/leb.h: New file, from dwarf2read.c.
14839 * dwarf2/leb.c: New file, from dwarf2read.c.
14840 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14841 Remove.
14842 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14843 (COMMON_SFILES): Add dwarf2/leb.c.
14844
01840b7a
JB
148452020-02-08 Joel Brobecker <brobecker@adacore.com>
14846
14847 GDB 9.1 released.
14848
dfcb27e4
IB
148492020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14850
14851 PR gdb/25190:
aac66a4c
SM
14852 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14853 * gdb/remote.c (remote_console_output): Update.
14854 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14855 (ui_file_puts): ...this.
14856 * gdb/ui-file.h (ui_file_puts): Add declaration.
14857 * gdb/utils.c (emit_style_escape): Update.
14858 (flush_wrap_buffer): Update.
14859 (fputs_maybe_filtered): Update.
14860 (fputs_unfiltered): Add function.
dfcb27e4 14861
faa17681
IB
148622020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14863
aac66a4c
SM
14864 * gdb/event-loop.c (gdb_wait_for_event): Update.
14865 * gdb/printcmd.c (printf_command): Update.
14866 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14867 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14868 (gdb_os_flush_stderr): Update.
14869 * gdb/remote.c (remote_console_output): Update.
14870 * gdb/ui-file.c (gdb_flush): Rename to...
14871 (ui_file_flush): ...this.
14872 (stderr_file::write): Update.
14873 (stderr_file::puts): Update.
14874 * gdb/ui-file.h (gdb_flush): Rename to...
14875 (ui_file_flush): ...this.
14876 * gdb/utils.c (gdb_flush): Add function.
14877 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14878
5abbbe1d
TT
148792020-02-07 Tom Tromey <tromey@adacore.com>
14880
14881 PR breakpoints/24915:
14882 * source.c (find_and_open_source): Do not check basenames_may_differ.
14883
919adfe8
TT
148842020-02-07 Tom Tromey <tom@tromey.com>
14885
14886 * README: Update gdbserver documentation.
14887 * gdbserver: Move to top level.
14888 * configure.tgt (build_gdbserver): Remove.
14889 * configure.ac: Remove --enable-gdbserver.
14890 * configure: Rebuild.
14891 * Makefile.in (distclean): Don't mention gdbserver.
14892
1d5d29e7
SV
148932020-02-06 Shahab Vahedi <shahab@synopsys.com>
14894
14895 * source-cache.c (source_cache::ensure): Surround
14896 get_plain_source_lines with a try/catch.
14897 (source_cache::get_line_charpos): Get rid of try/catch
14898 and only check for the return value of "ensure".
14899 * tui/tui-source.c (tui_source_window::set_contents):
14900 Simplify "nlines" calculation.
14901
6eb1129c
SV
149022020-02-06 Shahab Vahedi <shahab@synopsys.com>
14903
14904 * MAINTAINERS (Write After Approval): Add myself.
14905
c6a42d11
CB
149062020-02-05 Christian Biesinger <cbiesinger@google.com>
14907
14908 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14909 function call.
14910
c8ecdda6
CB
149112020-02-05 Christian Biesinger <cbiesinger@google.com>
14912
14913 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14914
f6480e70
MR
149152020-02-05 Maciej W. Rozycki <macro@wdc.com>
14916
14917 * nat/riscv-linux-tdesc.h: New file.
14918 * nat/riscv-linux-tdesc.c: New file, taking code from...
14919 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14920 ... here.
14921 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14922 NATDEPFILES.
14923
dcc9fbc6
AB
149242020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14925
14926 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14927 we don't set the fake simulator ptid to the null_ptid.
14928
719546c4
SM
149292020-02-03 Simon Marchi <simon.marchi@efficios.com>
14930
14931 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14932 * gdbthread.h (class thread_info) <resumed>: Likewise.
14933 * infrun.c (resume_1): Likewise.
14934 (proceed): Likewise.
14935 (infrun_thread_stop_requested): Likewise.
14936 (stop_all_threads): Likewise.
14937 (handle_inferior_event): Likewise.
14938 (restart_threads): Likewise.
14939 (finish_step_over): Likewise.
14940 (keep_going_stepped_thread): Likewise.
14941 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14942 (linux_handle_extended_wait): Likewise.
14943 * record-btrace.c (get_thread_current_frame_id): Likewise.
14944 * record-full.c (record_full_wait_1): Likewise.
14945 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14946 * target.c (target_resume): Likewise.
14947 * thread.c (set_running_thread): Likewise.
14948
e409c542
AKS
149492020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14950
14951 * f-valprint.c (f77_print_array_1): Changed datatype of index
14952 variable to LONGEST from int to enable it to contain bound
14953 values correctly.
14954
ee98c0da
MR
149552020-02-03 Maciej W. Rozycki <macro@wdc.com>
14956
14957 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14958 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14959 offsets according to FLEN determined.
14960 (riscv_linux_nat_target::read_description): Determine FLEN
14961 dynamically.
14962 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14963 according to FLEN determined.
14964 (riscv_linux_nat_target::store_registers): Likewise.
14965
aa66aac4
SV
149662020-02-01 Shahab Vahedi <shahab@synopsys.com>
14967
14968 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14969 when reg->group is empty and reggroup is not.
14970
fd9faca8
TT
149712020-01-31 Tom Tromey <tromey@adacore.com>
14972
14973 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14974 Call beneath target's mourn_inferior after unpushing.
14975
42330a68
AB
149762020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14977
14978 PR tui/9765
14979 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14980 have enough lines to fill the screen, still return the lowest
14981 address we found.
14982
7a27a45b
AB
149832020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14984
14985 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14986 '-', '<', and '>' commands.
14987
c47f70e2
PA
149882020-01-29 Pedro Alves <palves@redhat.com>
14989 Sergio Durigan Junior <sergiodj@redhat.com>
14990
14991 * infcmd.c (construct_inferior_arguments): Assert that
14992 'argc' is greater than 0.
14993
5133a315
LM
149942020-01-29 Luis Machado <luis.machado@linaro.org>
14995
14996 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14997 (BRK_INSN_MASK): Define to 0xd4200000.
14998 (aarch64_program_breakpoint_here_p): New function.
14999 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15000 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15001 breakpoint.c.
15002 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15003 breakpoint.h
15004 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15005 call gdbarch_program_breakpoint_here_p.
15006 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15007 default_program_breakpoint_here_p, changed return type to bool and
15008 simplified.
15009 * breakpoint.h (program_breakpoint_here): Moved prototype to
15010 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15011 return type to bool.
15012 * gdbarch.c: Regenerate.
15013 * gdbarch.h: Regenerate.
15014 * gdbarch.sh (program_breakpoint_here_p): New method.
15015 * infrun.c (handle_signal_stop): Call
15016 gdbarch_program_breakpoint_here_p.
15017
168f8c6b
TT
150182020-01-26 Tom Tromey <tom@tromey.com>
15019
15020 * ctfread.c (struct ctf_fp_info): Reindent.
15021 (_initialize_ctfread): Remove.
15022
128a391f
TT
150232020-01-26 Tom Tromey <tom@tromey.com>
15024
15025 * psymtab.c (partial_map_expand_apply)
15026 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15027 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15028 (psym_print_stats, psym_expand_symtabs_for_function)
15029 (psym_map_symbol_filenames, psym_map_matching_symbols)
15030 (psym_expand_symtabs_matching)
15031 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15032 (maintenance_check_psymtabs): Use new methods.
15033 * psympriv.h (struct partial_symtab) <readin_p,
15034 get_compunit_symtab>: New methods.
15035 <readin, compunit_symtab>: Remove members.
15036 (struct standard_psymtab): New.
15037 (struct legacy_psymtab): Derive from standard_psymtab.
15038 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15039 standard_psymtab.
15040 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15041
0494dbec
TT
150422020-01-26 Tom Tromey <tom@tromey.com>
15043
15044 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15045 read_dependencies. Add assert.
15046 * psymtab.c (partial_symtab::read_dependencies): New method.
15047 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15048 method.
15049 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15050 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15051 read_dependencies.
15052 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15053 Add assert.
15054
8566b89b
TT
150552020-01-26 Tom Tromey <tom@tromey.com>
15056
15057 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15058 Call expand_psymtab.
15059 (xcoff_read_symtab): Call expand_psymtab.
15060 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15061 legacy_expand_psymtab.
15062 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15063 method.
15064 (struct legacy_psymtab) <expand_psymtab>: Implement.
15065 <legacy_expand_psymtab>: New member.
15066 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15067 (parse_partial_symbols): Set legacy_expand_psymtab.
15068 (psymtab_to_symtab_1): Change argument order. Call
15069 expand_psymtab.
15070 (new_psymtab): Set legacy_expand_psymtab.
15071 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15072 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15073 expand_psymtab.
15074 (dwarf2_psymtab::expand_psymtab): Rename from
15075 psymtab_to_symtab_1. Call expand_psymtab.
15076 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15077 (dbx_end_psymtab): Likewise.
15078 (dbx_psymtab_to_symtab_1): Change argument order. Call
15079 expand_psymtab.
15080 (dbx_read_symtab): Call expand_psymtab.
15081 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15082 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15083 (ctf_psymtab::read_symtab): Call expand_psymtab.
15084
077cbab2
TT
150852020-01-26 Tom Tromey <tom@tromey.com>
15086
15087 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15088 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15089 messages.
15090 * mdebugread.c (mdebug_read_symtab): Remove prints.
15091 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15092 assert.
15093 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15094
891813be
TT
150952020-01-26 Tom Tromey <tom@tromey.com>
15096
15097 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15098 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15099 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15100 legacy_symtab.
15101 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15102 * psymtab.c (psymtab_to_symtab): Call method.
15103 (dump_psymtab): Update.
15104 * psympriv.h (struct partial_symtab): Add virtual destructor.
15105 <read_symtab>: New method.
15106 (struct legacy_symtab): New.
15107 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15108 (struct pst_map) <pst>: Now a legacy_psymtab.
15109 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15110 (new_psymtab): Use legacy_psymtab.
15111 * dwarf2read.h (struct dwarf2_psymtab): New.
15112 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15113 * dwarf2read.c (dwarf2_create_include_psymtab)
15114 (dwarf2_build_include_psymtabs, create_type_unit_group)
15115 (create_partial_symtab, process_psymtab_comp_unit_reader)
15116 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15117 (set_partial_user): Use dwarf2_psymtab.
15118 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15119 (psymtab_to_symtab_1, process_full_comp_unit)
15120 (process_full_type_unit, dwarf2_ranges_read)
15121 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15122 (dwarf_decode_lines): Use dwarf2_psymtab.
15123 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15124 (add_address_entry_worker, write_one_signatured_type)
15125 (recursively_count_psymbols, recursively_write_psymbols)
15126 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15127 (write_debug_names): Likewise.
15128 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15129 <pst>: Now a legacy_psymtab.
15130 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15131 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15132 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15133 * ctfread.c (struct ctf_psymtab): New.
15134 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15135 ctf_psymtab.
15136 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15137 (create_partial_symtab): Return a ctf_psymtab.
15138 (scan_partial_symbols): Update.
15139
c3693a1d
TT
151402020-01-26 Tom Tromey <tom@tromey.com>
15141
15142 * xcoffread.c (xcoff_start_psymtab): Use new.
15143 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15144 renamed from start_psymtab_common.
15145 * psympriv.h (struct partial_symtab): Add new constructor.
15146 (start_psymtab_common): Don't declare.
15147 * mdebugread.c (parse_partial_symbols): Use new.
15148 * dwarf2read.c (create_partial_symtab): Use new.
15149 * dbxread.c (start_psymtab): Use new.
15150 * ctfread.c (create_partial_symtab): Use new.
15151
32caafd0
TT
151522020-01-26 Tom Tromey <tom@tromey.com>
15153
15154 * xcoffread.c (xcoff_end_psymtab): Use new.
15155 * psymtab.c (start_psymtab_common): Use new.
15156 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15157 Update.
15158 * psympriv.h (struct partial_symtab): Add parameters to
15159 constructor. Don't inline.
15160 (allocate_psymtab): Don't declare.
15161 * mdebugread.c (new_psymtab): Use new.
15162 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15163 * dbxread.c (dbx_end_psymtab): Use new.
15164
abaa2f23
TT
151652020-01-26 Tom Tromey <tom@tromey.com>
15166
15167 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15168 allocate_psymtab. Update documentation.
15169 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15170 allocate_psymtab. Do not use new.
15171 (allocate_psymtab): Use new. Update.
15172
6d94535f
TT
151732020-01-26 Tom Tromey <tom@tromey.com>
15174
15175 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15176 * psymtab.c (psym_print_stats): Update.
15177 * psympriv.h (struct partial_symtab) <readin,
15178 psymtabs_addrmap_supported, anonymous>: Now bool.
15179 * mdebugread.c (psymtab_to_symtab_1): Update.
15180 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15181 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15182 (process_full_comp_unit, process_full_type_unit): Update.
15183 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15184 * ctfread.c (psymtab_to_symtab): Update.
15185
6f17252b
TT
151862020-01-26 Tom Tromey <tom@tromey.com>
15187
15188 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15189 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15190 * psymtab.c (psymtab_storage): Delete psymtabs.
15191 (psymtab_storage::allocate_psymtab): Use new.
15192 (psymtab_storage::discard_psymtab): Use delete.
15193 * psympriv.h (struct partial_symtab): Add constructor and
15194 initializers.
15195
f6f1cebc
TT
151962020-01-26 Tom Tromey <tom@tromey.com>
15197
15198 * machoread.c: Do not include psympriv.h.
15199
e47e48f6
PW
152002020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15201
15202 * NEWS: Mention the new option and the set/show commands.
15203
a2fedca9
PW
152042020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15205
15206 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15207 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15208 (validate_exec_file): New variables, enums, functions.
15209 (exec_file_locate_attach, print_section_info): Style the filenames.
15210 (_initialize_exec): Install show_exec_file_mismatch_command and
15211 set_exec_file_mismatch_command.
15212 * gdbcore.h (validate_exec_file): Declare.
15213 * infcmd.c (attach_command): Call validate_exec_file.
15214 * remote.c ( remote_target::remote_add_inferior): Likewise.
15215
7ffa82e1
AB
152162020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15217
15218 * frame.c (find_frame_sal): Move call to get_next_frame into more
15219 inner scope.
15220 * inline-frame.c (inilne_state) <inline_state>: Update argument
15221 types.
15222 (inilne_state) <skipped_symbol>: Rename to...
15223 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15224 (skip_inline_frames): Build vector of skipped symbols and use this
15225 to reate the inline_state.
15226 (inline_skipped_symbol): Add a comment and some assertions, fetch
15227 skipped symbol from the list.
15228
3d92a3e3
AB
152292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15230
15231 * buildsym.c (lte_is_less_than): Delete.
15232 (buildsym_compunit::end_symtab_with_blockvector): Create local
15233 lambda function to sort line table entries, and use
15234 std::stable_sort instead of std::sort.
15235 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15236 markers when looking for a previous line.
15237
94a72be7
AB
152382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15239
15240 * dwarf2read.c (lnp_state_machine::record_line): Include
15241 end_sequence parameter in debug print out. Record the line if we
15242 are at an end_sequence marker even if it's not the start of a
15243 statement.
15244 * symmisc.c (maintenance_print_one_line_table): Print end of
15245 sequence markers with 'END' not '0'.
15246
53af73bf
PA
152472020-01-24 Pedro Alves <palves@redhat.com>
15248
15249 PR gdb/25410
15250 * thread.c (scoped_restore_current_thread::restore): Use
15251 switch_to_inferior_no_thread.
15252 * exec.c: Include "progspace-and-thread.h".
15253 (add_target_sections, remove_target_sections):
15254 scoped_restore_current_pspace_and_thread instead of
15255 scoped_restore_current_thread.
15256 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15257 and aspace to the inferior before calling clone_program_space.
15258 Remove stale comment.
15259
3050c6f4
CB
152602020-01-24 Christian Biesinger <cbiesinger@google.com>
15261
15262 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15263 (arm_netbsd_nat_target::fetch_registers): ...this.
15264 (arm_nbsd_nat_target::store_registers): Rename to...
15265 (arm_netbsd_nat_target::store_registers): ...this.
15266
73685c7e
CB
152672020-01-24 Christian Biesinger <cbiesinger@google.com>
15268
15269 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15270 register_t.
15271
89203d40
CB
152722020-01-24 Christian Biesinger <cbiesinger@google.com>
15273
15274 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15275 Update comment.
15276 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15277 Likewise.
15278 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15279 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15280 the correct replacement (iterate_over_regset_sections).
15281 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15282 Update comment.
15283
1ba1ac88
AB
152842020-01-24 Graham Markall <graham.markall@embecosm.com>
15285
15286 PR gdb/23718
15287 * gdb/python/python.c (execute_gdb_command): Call
15288 async_enable_stdin in catch block.
15289
f3364a6d
AB
152902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15291
15292 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15293 SWITCH_THRU_ALL_UIS.
15294
733d0a67
AB
152952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15296
15297 PR tui/9765
15298 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15299 comment, add extra parameter, and update to store previous symbol
15300 when appropriate.
15301 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15302 add extra parameter.
15303 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15304 remove unneeded parameter, add try/catch around gdb_print_insn,
15305 rewrite to add items to asm_lines vector.
15306 (tui_find_backward_disassembly_start_address): New function.
15307 (tui_find_disassembly_address): Updated throughout.
15308 (tui_disasm_window::set_contents): Update for changes to
15309 tui_disassemble.
15310 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15311 number of lines to scroll.
15312
b3b3bada
SM
153132020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15314
15315 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15316 (SECT_OFF_DATA): Likewise.
15317 (SECT_OFF_RODATA): Likewise.
15318 (SECT_OFF_TEXT): Likewise.
15319 (SECT_OFF_BSS): Likewise.
15320 (struct objfile) <text_section_offset, data_section_offset>: New
15321 methods.
15322 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15323 objfile::text_section_offset.
15324 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15325 * coffread.c (coff_symtab_read): Likewise.
15326 (enter_linenos): Likewise.
15327 (process_coff_symbol): Likewise.
15328 * ctfread.c (get_objfile_text_range): Likewise.
15329 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15330 Use objfile::data_section_offset.
15331 * dwarf2-frame.c (execute_cfa_program): Use
15332 objfile::text_section_offset.
15333 (dwarf2_frame_find_fde): Likewise.
15334 * dwarf2read.c (create_addrmap_from_index): Likewise.
15335 (create_addrmap_from_aranges): Likewise.
15336 (dw2_find_pc_sect_compunit_symtab): Likewise.
15337 (process_psymtab_comp_unit_reader): Likewise.
15338 (add_partial_symbol): Likewise.
15339 (add_partial_subprogram): Likewise.
15340 (process_full_comp_unit): Likewise.
15341 (read_file_scope): Likewise.
15342 (read_func_scope): Likewise.
15343 (read_lexical_block_scope): Likewise.
15344 (read_call_site_scope): Likewise.
15345 (dwarf2_rnglists_process): Likewise.
15346 (dwarf2_ranges_process): Likewise.
15347 (dwarf2_ranges_read): Likewise.
15348 (dwarf_decode_lines_1): Likewise.
15349 (new_symbol): Likewise.
15350 (dwarf2_fetch_die_loc_sect_off): Likewise.
15351 (dwarf2_per_cu_text_offset): Likewise.
15352 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15353 * hppa-tdep.c (read_unwind_info): Likewise.
15354 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15355 * psympriv.h (struct partial_symtab): Likewise.
15356 * psymtab.c (find_pc_sect_psymtab): Likewise.
15357 * solib-svr4.c (enable_break): Likewise.
15358 * stap-probe.c (relocate_address): Use
15359 objfile::data_section_offset.
15360 * xcoffread.c (enter_line_range): Use
15361 objfile::text_section_offset.
15362 (read_xcoff_symtab): Likewise.
15363
ab53f382
SM
153642020-01-23 Simon Marchi <simon.marchi@efficios.com>
15365
15366 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15367 declaration to narrower scopes.
15368
e7eee665
SM
153692020-01-23 Simon Marchi <simon.marchi@efficios.com>
15370
15371 * darwin-nat.h (struct darwin_exception_msg, enum
15372 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15373 Move up.
15374 (class darwin_nat_target) <wait_1, check_new_threads,
15375 decode_exception_message, decode_message, stop_inferior,
15376 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15377 * darwin-nat.c (darwin_check_new_threads): Rename to...
15378 (darwin_nat_target::check_new_threads): ... this.
15379 (darwin_suspend_inferior_it): Remove.
15380 (darwin_decode_exception_message): Rename to...
15381 (darwin_nat_target::decode_exception_message): ... this.
15382 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15383 (darwin_decode_message): Rename to...
15384 (darwin_nat_target::decode_message): ... this.
15385 (cancel_breakpoint): Rename to...
15386 (darwin_nat_target::cancel_breakpoint): ... this.
15387 (darwin_wait): Rename to...
15388 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15389 instead of iterate_over_inferiors.
15390 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15391 (darwin_stop_inferior): Rename to...
15392 (darwin_nat_target::stop_inferior): ... this.
15393 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15394 (darwin_init_thread_list): Rename to...
15395 (darwin_nat_target::init_thread_list): ... this.
15396 (darwin_ptrace_him): Rename to...
15397 (darwin_nat_target::ptrace_him): ... this.
15398 (darwin_nat_target::create_inferior): Pass lambda function to
15399 fork_inferior.
15400 (darwin_nat_target::detach): Call stop_inferior instead of
15401 darwin_stop_inferior.
15402 * fork-inferior.h (fork_inferior): Change init_trace_fun
15403 parameter to gdb::function_view.
15404 * fork-inferior.c (fork_inferior): Likewise.
15405
c162ed3e
HD
154062020-01-23 Hannes Domani <ssbssa@yahoo.de>
15407
15408 * i386-cygwin-tdep.c (core_process_module_section): Update.
15409 * windows-nat.c (struct lm_info_windows): Add text_offset.
15410 (windows_xfer_shared_libraries): Update.
15411 * windows-tdep.c (windows_xfer_shared_library):
15412 Add text_offset_cached argument.
15413 * windows-tdep.h (windows_xfer_shared_library): Update.
15414
a1237872
SM
154152020-01-21 Simon Marchi <simon.marchi@efficios.com>
15416
15417 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15418
b3ee6dd9
SM
154192020-01-21 Simon Marchi <simon.marchi@efficios.com>
15420
15421 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15422 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15423 replace with range-based for.
15424 (gdbsim_interrupt_inferior): Remove.
15425 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15426 with a range-based for. Inline code from
15427 gdbsim_interrupt_inferior.
15428
f9fac3c8
SM
154292020-01-21 Simon Marchi <simon.marchi@efficios.com>
15430
15431 * infrun.c (proceed): Fix indentation.
15432
f6474de9
TT
154332020-01-21 Tom Tromey <tromey@adacore.com>
15434
15435 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15436 * python/python.c (python_extension_ops): Update.
15437 (gdbpy_colorize): New function.
15438 * python/lib/gdb/__init__.py (colorize): New function.
15439 * extension.h (ext_lang_colorize): Declare.
15440 * extension.c (ext_lang_colorize): New function.
15441 * extension-priv.h (struct extension_language_ops) <colorize>: New
15442 member.
15443 * cli/cli-style.c (_initialize_cli_style): Update help text.
15444
f0c702d4
LM
154452020-01-21 Luis Machado <luis.machado@linaro.org>
15446
15447 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15448 <cond>: Change type to bool.
15449 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15450 (aarch64_displaced_step_cb): Likewise.
15451 (aarch64_displaced_step_tb): Likewise.
15452
1ab139e5
LM
154532020-01-21 Luis Machado <luis.machado@linaro.org>
15454
15455 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15456 output.
15457
0c271889
LM
154582020-01-21 Luis Machado <luis.machado@linaro.org>
15459
15460 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15461 <pc_adjust>: Adjust the documentation.
15462 (aarch64_displaced_step_fixup): Check if PC really moved before
15463 adjusting it.
15464
4d89c1c7
TT
154652020-01-19 Tom Tromey <tom@tromey.com>
15466
15467 * disasm.c (~gdb_disassembler): New destructor.
15468 (gdb_buffered_insn_length): Call disassemble_free_target.
15469 * disasm.h (class gdb_disassembler): Declare destructor. Use
15470 DISABLE_COPY_AND_ASSIGN.
15471
c0ab21c2
TT
154722020-01-19 Tom Tromey <tom@tromey.com>
15473
15474 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15475 (die_reader_func_ftype): Remove.
15476 (cutu_reader): New class.
15477 (dw2_get_file_names_reader): Remove "data" parameter.
15478 (dw2_get_file_names): Use cutu_reader.
15479 (create_debug_type_hash_table): Update.
15480 (read_cutu_die_from_dwo): Update comment.
15481 (lookup_dwo_unit): Add dwo_name parameter.
15482 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15483 die_reader_func_ftype and data parameters.
15484 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15485 Remove die_reader_func_ftype and data parameters.
15486 (~cutu_reader): New; from init_cutu_and_read_dies.
15487 (cutu_reader::cutu_reader): Rename from
15488 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15489 and data parameters.
15490 (init_cutu_and_read_dies_simple): Remove.
15491 (struct process_psymtab_comp_unit_data): Remove.
15492 (process_psymtab_comp_unit_reader): Remove data parameter; add
15493 want_partial_unit and pretend_language parameters.
15494 (process_psymtab_comp_unit): Use cutu_reader.
15495 (build_type_psymtabs_reader): Remove data parameter.
15496 (build_type_psymtabs_1): Use cutu_reader.
15497 (process_skeletonless_type_unit): Likewise.
15498 (load_partial_comp_unit_reader): Remove.
15499 (load_partial_comp_unit): Use cutu_reader.
15500 (load_full_comp_unit_reader): Remove.
15501 (load_full_comp_unit): Use cutu_reader.
15502 (struct create_dwo_cu_data): Remove.
15503 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15504 dwo_unit parameters.
15505 (create_cus_hash_table): Use cutu_reader.
15506 (struct dwarf2_read_addr_index_data): Remove.
15507 (dwarf2_read_addr_index_reader): Remove.
15508 (dwarf2_read_addr_index): Use cutu_reader.
15509 (read_signatured_type_reader): Remove.
15510 (read_signatured_type): Use cutu_reader.
15511
45bbae5c
TT
155122020-01-19 Tom Tromey <tom@tromey.com>
15513
15514 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15515 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15516 (tui_wrefresh): Declare.
15517 * tui/tui-wingeneral.c (suppress_output): New global.
15518 (tui_suppress_output, ~tui_suppress_output): New constructor and
15519 destructor.
15520 (tui_wrefresh): New function.
15521 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15522 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15523 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15524 method.
15525 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15526 tui_wrefresh.
15527 (tui_data_window::no_refresh): New method.
15528 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15529 (tui_reg_command): Use tui_suppress_output
15530 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15531 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15532 method.
15533 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15534
4f13c1c0
TT
155352020-01-19 Tom Tromey <tom@tromey.com>
15536
15537 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15538 Handle case where symtab is null.
15539
fa47e446
SM
155402020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15541
15542 * linux-fork.c (one_fork_p): Simplify.
15543
26f42329
SM
155442020-01-17 Simon Marchi <simon.marchi@efficios.com>
15545
15546 * top.c (struct qt_args): Remove.
15547 (kill_or_detach): Change return type to void, replace `void *`
15548 parameter with a proper one.
15549 (print_inferior_quit_action): Likewise.
15550 (quit_confirm): Use range-based for loop to iterate over inferiors.
15551 (quit_force): Likewise.
15552
a9ac81b1
SM
155532020-01-17 Simon Marchi <simon.marchi@efficios.com>
15554
15555 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15556 `void *` parameter with proper parameters.
15557 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15558 (print_one_inferior): Change return type to void, replace `void *`
15559 parameter with proper parameters.
15560 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15561 inferiors.
15562 (get_other_inferior): Remove.
15563 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15564 inferiors.
15565
788eca49
SM
155662020-01-17 Simon Marchi <simon.marchi@efficios.com>
15567
15568 * mi/mi-interp.c (report_initial_inferior): Remove.
15569 (mi_interp::init): Use range-based for to iterate over inferiors.
15570
d9bc85b6
SM
155712020-01-17 Simon Marchi <simon.marchi@efficios.com>
15572
15573 * python/py-inferior.c (build_inferior_list): Remove.
15574 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15575
40c94099
CB
155762020-01-16 Christian Biesinger <cbiesinger@google.com>
15577
15578 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15579 (btrace_stitch_trace): Likewise.
15580 * charset.c (intermediate_encoding): Likewise (vaild).
15581 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15582 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15583 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15584
e0cdfe3c
HD
155852020-01-16 Hannes Domani <ssbssa@yahoo.de>
15586
15587 * windows-tdep.c (windows_get_tlb_type):
15588 Add rtl_user_process_parameters type.
15589
790f1718 155902020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15591 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15592
15593 PR build/24805
15594 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15595 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15596 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15597 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15598 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15599 (ps_plog): Redeclare exported functions with default visibility.
15600
3112ed97
NA
156012020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15602
15603 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15604 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15605
8dc3273e
SM
156062020-01-15 Simon Marchi <simon.marchi@efficios.com>
15607
15608 * infcmd.c (post_create_inferior): Use get_thread_regcache
15609 instead of get_current_regcache.
15610
ff47f4f0
TT
156112020-01-14 Tom Tromey <tom@tromey.com>
15612
15613 PR symtab/12535:
15614 * python/python.c (gdbpy_decode_line): Treat empty string the same
15615 as no argument.
15616
975f45b7
TT
156172020-01-14 Tom Tromey <tom@tromey.com>
15618
15619 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15620
25e57356
TT
156212020-01-14 Tom Tromey <tom@tromey.com>
15622
15623 * nat/linux-btrace.c: Don't include <config.h>.
15624 * nat/linux-ptrace.c: Don't include <config.h>.
15625 * nat/x86-linux-dregs.c: Don't include <config.h>.
15626
05ea2a05
TT
156272020-01-14 Tom Tromey <tom@tromey.com>
15628
15629 * configure: Rebuild.
15630 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15631
01027315
TT
156322020-01-14 Tom Tromey <tom@tromey.com>
15633
15634 * nat/x86-linux-dregs.c: Include configh.h.
15635 * nat/linux-ptrace.c: Include configh.h.
15636 * nat/linux-btrace.c: Include configh.h.
15637 * defs.h: Include config.h, bfd.h.
15638 * configure.ac: Don't source common.host.
15639 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15640 * configure: Rebuild.
15641 * acinclude.m4: Update path.
15642 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15643 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15644 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15645 (CLIBS): Add LIBSUPPORT.
15646 (CDEPS): Likewise.
15647 (COMMON_SFILES): Remove gdbsupport files.
15648 (HFILES_NO_SRCDIR): Likewise.
15649 (stamp-version): Update path to create-version.sh.
15650 (ALLDEPFILES): Remove gdbsupport files.
15651
b2ceabe8
TT
156522020-01-14 Tom Tromey <tom@tromey.com>
15653
15654 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15655 USE_WIN32API when needed.
15656 * configure.ac (USE_WIN32API): Don't define.
15657 (WIN32LIBS): Use WIN32APILIBS.
15658 * configure: Rebuild.
15659
25c51f71
TT
156602020-01-14 Tom Tromey <tom@tromey.com>
15661
15662 * configure: Rebuild.
15663 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15664
717c684d
BE
156652020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15666
15667 * skip.c (skip_function_command): Make skip w/o arguments use the
15668 name of the inlined function if pc is inside any inlined function.
15669
7da6a5b9
LM
156702020-01-14 Luis Machado <luis.machado@linaro.org>
15671
15672 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15673 * infrun.c (resume_1): Likewise.
15674 (handle_inferior_event): Remove stale comment.
15675 * linux-nat.c (linux_nat_target::resume): Update comments.
15676 (save_stop_reason): Likewise.
15677 (linux_nat_filter_event): Likewise.
15678 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15679
44e4c775
AB
156802020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15681
15682 * elfread.c (record_minimal_symbol): Set section index to 0 for
15683 non-allocatable sections.
15684
18a8505e
AT
15685
156862020-01-13 Ali Tamur <tamur@google.com>
15687
15688 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15689 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15690 to gdb::optional. Update comments.
15691 (dwo_file): Update comments.
15692 (read_attribute): Update API to take an additional out parameter,
15693 need_reprocess. This is used to mark attributes that need other
15694 attributes (e.g. str_offsets_base) for correct computation which may not
15695 have been read yet.
15696 (read_attribute_reprocess): New function declaration.
15697 (read_addr_index): Likewise.
15698 (read_dwo_str_index): Likewise.
15699 (read_stub_str_index): Likewise.
15700 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15701 (lookup_addr_base): New function definition.
15702 (lookup_ranges_base): Likewise.
15703 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15704 lookup_ranges_base.
15705 (init_cutu_and_read_dies): Update comments.
15706 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15707 unit. This is used to inherit parent's str_offsets_base and addr_base.
15708 Update comments.
15709 (init_cutu_and_read_dies_simple): Reflect API changes.
15710 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15711 (create_cus_hash_table): Change API to take parent compile unit.
15712 Reflect API changes.
15713 (open_and_init_dwo_file): Reflect API changes.
15714 (dwarf2_get_pc_bounds): Update comments.
15715 (dwarf2_record_block_ranges): Likewise.
15716 (read_full_die_1): Change implementation to reprocess attributes that
15717 need str_offsets_base and addr_base.
15718 (partial_die_info::read): Likewise.
15719 (read_attribute_reprocess): New function definition.
15720 (read_attribute_value): Change API to take an additional out parameter,
15721 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15722 when a non-dwo compile unit has index based attributes.
15723 (read_attribute): Reflect API changes.
15724 (read_addr_index_1): Reflect API changes. Update comments.
15725 (dwarf2_read_addr_index_data): Reflect API changes.
15726 (dwarf2_read_addr_index): Likewise.
15727 (read_str_index): Change API and implementation. This becomes a helper
15728 to be used by the new string index related methods. Update error
15729 message and comments.
15730 (read_dwo_str_index): New function definition.
15731 (read_stub_str_index): Likewise.
15732 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15733 * symfile.h (dwarf2_debug_sections): Likewise.
15734 * xcoffread.c (dwarf2_debug_sections): Likewise.
15735
0cac9354
SM
157362020-01-13 Simon Marchi <simon.marchi@efficios.com>
15737
15738 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15739 core_reg_sect type to gdb_byte *.
15740 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15741 * cris-tdep.c (fetch_core_registers): Likewise.
15742 * corelow.c (core_target::get_core_register_section): Change
15743 type of `contents` to gdb::byte_vector.
15744
9a6d629c
AB
157452020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15746
15747 * tui/tui-wingeneral.c (box_win): Position the title in the center
15748 of the border.
15749
d8b2f9e3
SM
157502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15751
15752 * corelow.c (core_target::get_core_register_section): Use
15753 std::vector instead of alloca.
15754
bb564c58
SM
157552020-01-13 Simon Marchi <simon.marchi@efficios.com>
15756
15757 * warning.m4: Add -Wmissing-declarations to build_warnings.
15758 * configure: Re-generate.
15759
6b366111
SM
157602020-01-13 Simon Marchi <simon.marchi@efficios.com>
15761
15762 * python/python.c (init__gdb_module): Add declaration.
15763
6c265988
SM
157642020-01-13 Simon Marchi <simon.marchi@efficios.com>
15765
15766 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15767 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15768 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15769 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15770 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15771 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15772 * ada-exp.y (_initialize_ada_exp): Add declaration.
15773 * ada-lang.c (_initialize_ada_language): Add declaration.
15774 * ada-tasks.c (_initialize_tasks): Add declaration.
15775 * agent.c (_initialize_agent): Add declaration.
15776 * aix-thread.c (_initialize_aix_thread): Add declaration.
15777 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15778 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15779 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15780 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15781 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15782 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15783 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15784 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15785 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15786 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15787 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15788 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15789 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15790 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15791 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15792 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15793 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15794 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15795 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15796 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15797 * annotate.c (_initialize_annotate): Add declaration.
15798 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15799 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15800 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15801 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15802 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15803 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15804 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15805 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15806 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15807 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15808 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15809 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15810 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15811 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15812 * auto-load.c (_initialize_auto_load): Add declaration.
15813 * auxv.c (_initialize_auxv): Add declaration.
15814 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15815 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15816 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15817 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15818 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15819 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15820 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15821 * breakpoint.c (_initialize_breakpoint): Add declaration.
15822 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15823 * btrace.c (_initialize_btrace): Add declaration.
15824 * charset.c (_initialize_charset): Add declaration.
15825 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15826 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15827 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15828 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15829 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15830 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15831 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15832 * coffread.c (_initialize_coffread): Add declaration.
15833 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15834 * compile/compile.c (_initialize_compile): Add declaration.
15835 * complaints.c (_initialize_complaints): Add declaration.
15836 * completer.c (_initialize_completer): Add declaration.
15837 * copying.c (_initialize_copying): Add declaration.
15838 * corefile.c (_initialize_core): Add declaration.
15839 * corelow.c (_initialize_corelow): Add declaration.
15840 * cp-abi.c (_initialize_cp_abi): Add declaration.
15841 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15842 * cp-support.c (_initialize_cp_support): Add declaration.
15843 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15844 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15845 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15846 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15847 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15848 * ctfread.c (_initialize_ctfread): Add declaration.
15849 * d-lang.c (_initialize_d_language): Add declaration.
15850 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15851 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15852 * dbxread.c (_initialize_dbxread): Add declaration.
15853 * dcache.c (_initialize_dcache): Add declaration.
15854 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15855 * disasm.c (_initialize_disasm): Add declaration.
15856 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15857 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15858 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15859 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15860 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15861 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15862 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15863 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15864 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15865 * elfread.c (_initialize_elfread): Add declaration.
15866 * exec.c (_initialize_exec): Add declaration.
15867 * extension.c (_initialize_extension): Add declaration.
15868 * f-lang.c (_initialize_f_language): Add declaration.
15869 * f-valprint.c (_initialize_f_valprint): Add declaration.
15870 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15871 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15872 * filesystem.c (_initialize_filesystem): Add declaration.
15873 * findcmd.c (_initialize_mem_search): Add declaration.
15874 * findvar.c (_initialize_findvar): Add declaration.
15875 * fork-child.c (_initialize_fork_child): Add declaration.
15876 * frame-base.c (_initialize_frame_base): Add declaration.
15877 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15878 * frame.c (_initialize_frame): Add declaration.
15879 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15880 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15881 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15882 * gcore.c (_initialize_gcore): Add declaration.
15883 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15884 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15885 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15886 * gdbarch.c (_initialize_gdbarch): Add declaration.
15887 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15888 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15889 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15890 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15891 * go-lang.c (_initialize_go_language): Add declaration.
15892 * go32-nat.c (_initialize_go32_nat): Add declaration.
15893 * guile/guile.c (_initialize_guile): Add declaration.
15894 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15895 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15896 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15897 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15898 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15899 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15900 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15901 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15902 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15903 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15904 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15905 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15906 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15907 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15908 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15909 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15910 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15911 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15912 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15913 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15914 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15915 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15916 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15917 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15918 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15919 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15920 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15921 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15922 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15923 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15924 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15925 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15926 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15927 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15928 * infcall.c (_initialize_infcall): Add declaration.
15929 * infcmd.c (_initialize_infcmd): Add declaration.
15930 * inflow.c (_initialize_inflow): Add declaration.
15931 * infrun.c (_initialize_infrun): Add declaration.
15932 * interps.c (_initialize_interpreter): Add declaration.
15933 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15934 * jit.c (_initialize_jit): Add declaration.
15935 * language.c (_initialize_language): Add declaration.
15936 * linux-fork.c (_initialize_linux_fork): Add declaration.
15937 * linux-nat.c (_initialize_linux_nat): Add declaration.
15938 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15939 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15940 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15941 * m2-lang.c (_initialize_m2_language): Add declaration.
15942 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15943 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15944 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15945 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15946 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15947 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15948 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15949 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15950 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15951 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15952 * machoread.c (_initialize_machoread): Add declaration.
15953 * macrocmd.c (_initialize_macrocmd): Add declaration.
15954 * macroscope.c (_initialize_macroscope): Add declaration.
15955 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15956 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15957 * maint.c (_initialize_maint_cmds): Add declaration.
15958 * mdebugread.c (_initialize_mdebugread): Add declaration.
15959 * memattr.c (_initialize_mem): Add declaration.
15960 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15961 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15962 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15963 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15964 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15965 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15966 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15967 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15968 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15969 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15970 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15971 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15972 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15973 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15974 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15975 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15976 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15977 * mipsread.c (_initialize_mipsread): Add declaration.
15978 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15979 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15980 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15981 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15982 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15983 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15984 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15985 * nto-procfs.c (_initialize_procfs): Add declaration.
15986 * objc-lang.c (_initialize_objc_language): Add declaration.
15987 * observable.c (_initialize_observer): Add declaration.
15988 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15989 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15990 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15991 * osabi.c (_initialize_gdb_osabi): Add declaration.
15992 * osdata.c (_initialize_osdata): Add declaration.
15993 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15994 * parse.c (_initialize_parse): Add declaration.
15995 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15996 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15997 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15998 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15999 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16000 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16001 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16002 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16003 * printcmd.c (_initialize_printcmd): Add declaration.
16004 * probe.c (_initialize_probe): Add declaration.
16005 * proc-api.c (_initialize_proc_api): Add declaration.
16006 * proc-events.c (_initialize_proc_events): Add declaration.
16007 * proc-service.c (_initialize_proc_service): Add declaration.
16008 * procfs.c (_initialize_procfs): Add declaration.
16009 * producer.c (_initialize_producer): Add declaration.
16010 * psymtab.c (_initialize_psymtab): Add declaration.
16011 * python/python.c (_initialize_python): Add declaration.
16012 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16013 * record-btrace.c (_initialize_record_btrace): Add declaration.
16014 * record-full.c (_initialize_record_full): Add declaration.
16015 * record.c (_initialize_record): Add declaration.
16016 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16017 * regcache.c (_initialize_regcache): Add declaration.
16018 * reggroups.c (_initialize_reggroup): Add declaration.
16019 * remote-notif.c (_initialize_notif): Add declaration.
16020 * remote-sim.c (_initialize_remote_sim): Add declaration.
16021 * remote.c (_initialize_remote): Add declaration.
16022 * reverse.c (_initialize_reverse): Add declaration.
16023 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16024 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16025 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16026 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16027 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16028 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16029 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16030 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16031 Add declaration.
16032 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16033 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16034 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16035 * rust-exp.y (_initialize_rust_exp): Add declaration.
16036 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16037 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16038 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16039 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16040 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16041 * score-tdep.c (_initialize_score_tdep): Add declaration.
16042 * ser-go32.c (_initialize_ser_dos): Add declaration.
16043 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16044 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16045 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16046 * ser-uds.c (_initialize_ser_socket): Add declaration.
16047 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16048 * serial.c (_initialize_serial): Add declaration.
16049 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16050 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16051 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16052 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16053 * skip.c (_initialize_step_skip): Add declaration.
16054 * sol-thread.c (_initialize_sol_thread): Add declaration.
16055 * solib-aix.c (_initialize_solib_aix): Add declaration.
16056 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16057 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16058 * solib-frv.c (_initialize_frv_solib): Add declaration.
16059 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16060 * solib-target.c (_initialize_solib_target): Add declaration.
16061 * solib.c (_initialize_solib): Add declaration.
16062 * source-cache.c (_initialize_source_cache): Add declaration.
16063 * source.c (_initialize_source): Add declaration.
16064 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16065 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16066 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16067 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16068 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16069 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16070 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16071 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16072 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16073 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16074 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16075 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16076 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16077 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16078 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16079 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16080 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16081 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16082 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16083 * stabsread.c (_initialize_stabsread): Add declaration.
16084 * stack.c (_initialize_stack): Add declaration.
16085 * stap-probe.c (_initialize_stap_probe): Add declaration.
16086 * std-regs.c (_initialize_frame_reg): Add declaration.
16087 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16088 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16089 * symfile.c (_initialize_symfile): Add declaration.
16090 * symmisc.c (_initialize_symmisc): Add declaration.
16091 * symtab.c (_initialize_symtab): Add declaration.
16092 * target.c (_initialize_target): Add declaration.
16093 * target-connection.c (_initialize_target_connection): Add
16094 declaration.
16095 * target-dcache.c (_initialize_target_dcache): Add declaration.
16096 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16097 * thread.c (_initialize_thread): Add declaration.
16098 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16099 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16100 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16101 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16102 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16103 * tracectf.c (_initialize_ctf): Add declaration.
16104 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16105 * tracefile.c (_initialize_tracefile): Add declaration.
16106 * tracepoint.c (_initialize_tracepoint): Add declaration.
16107 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16108 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16109 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16110 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16111 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16112 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16113 * tui/tui.c (_initialize_tui): Add declaration.
16114 * typeprint.c (_initialize_typeprint): Add declaration.
16115 * ui-style.c (_initialize_ui_style): Add declaration.
16116 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16117 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16118 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16119 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16120 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16121 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16122 * unittests/filtered_iterator-selftests.c
16123 (_initialize_filtered_iterator_selftests): Add declaration.
16124 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16125 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16126 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16127 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16128 * unittests/main-thread-selftests.c
16129 (_initialize_main_thread_selftests): Add declaration.
16130 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16131 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16132 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16133 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16134 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16135 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16136 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16137 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16138 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16139 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16140 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16141 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16142 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16143 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16144 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16145 declaration.
16146 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16147 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16148 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16149 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16150 * user-regs.c (_initialize_user_regs): Add declaration.
16151 * utils.c (_initialize_utils): Add declaration.
16152 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16153 * valops.c (_initialize_valops): Add declaration.
16154 * valprint.c (_initialize_valprint): Add declaration.
16155 * value.c (_initialize_values): Add declaration.
16156 * varobj.c (_initialize_varobj): Add declaration.
16157 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16158 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16159 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16160 * windows-nat.c (_initialize_windows_nat): Add declaration.
16161 (_initialize_check_for_gdb_ini): Add declaration.
16162 (_initialize_loadable): Add declaration.
16163 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16164 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16165 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16166 * xcoffread.c (_initialize_xcoffread): Add declaration.
16167 * xml-support.c (_initialize_xml_support): Add declaration.
16168 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16169 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16170 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16171 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16172
e2de1eec
SM
161732020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16174
16175 * regformats/regdat.sh: Generate declaration for init function.
16176
e0037b4c
SM
161772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16178
16179 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16180 up.
16181 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16182 close_one_inferior>: New methods.
16183 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16184 pass down target to find_inferior_pid.
16185 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16186 Pass down target to find_inferior_ptid.
16187 (gdbsim_target::create_inferior): Pass down target to
16188 add_thread_silent.
16189 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16190 target down to find_inferior_ptid and switch_to_thread.
16191 (gdbsim_target::close): Update to call close_one_inferior.
16192 (struct resume_data): Remove.
16193 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16194 directly, rather than through a void pointer.
16195 (gdbsim_target::resume): Update to call resume_one_inferior.
16196
58920b5b
SM
161972020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16198
16199 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16200
4ec89149
PA
162012020-01-12 Pedro Alves <palves@redhat.com>
16202
16203 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16204 directly for the current inferior instead of
16205 discard_all_inferiors.
16206 (discard_all_inferiors): Delete.
16207
7c392d1d
TT
162082020-01-11 Tom Tromey <tom@tromey.com>
16209
16210 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16211 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16212 deprecated_safe_get_selected_frame.
16213
d9ebdab7
TBA
162142020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16215
16216 * inferior.c (print_inferior): Switch inferior before printing it.
16217
f3c469b9
PA
162182020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16219 Pedro Alves <palves@redhat.com>
16220
16221 * progspace-and-thread.c (switch_to_program_space_and_thread):
16222 Assert there's an inferior for PSPACE. Use
16223 switch_to_inferior_no_thread to switch the inferior too.
16224 * progspace.c (program_space::~program_space): Call
16225 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16226 (program_space::free_all_objfiles): Don't call clear_symtab_users
16227 here.
16228 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16229
65c574f6
PA
162302020-01-10 Pedro Alves <palves@redhat.com>
16231
16232 * NEWS: Mention multi-target debugging, "info connections", and
16233 "add-inferior -no-connection".
16234
2f4fcf00
PA
162352020-01-10 Pedro Alves <palves@redhat.com>
16236
16237 * infrun.c: Include "target-connection.h".
16238 (check_multi_target_resumption): New.
16239 (proceed): Call it.
16240 * target-connection.c (make_target_connection_string): Make
16241 extern.
16242 * target-connection.h (make_target_connection_string): Declare.
16243
121b3efd
PA
162442020-01-10 Pedro Alves <palves@redhat.com>
16245
16246 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16247 * inferior.c (uiout_field_connection): New function.
16248 (print_inferior): Add new "connection-id" column.
16249 (add_inferior_command): Show connection number/string of added
16250 inferior.
16251 * process-stratum-target.h
16252 (process_stratum_target::connection_string): New virtual method.
16253 (process_stratum_target::connection_number): New field.
16254 * remote.c (remote_target::connection_string): New override.
16255 * target-connection.c: New file.
16256 * target-connection.h: New file.
16257 * target.c (decref_target): Remove process_stratum targets from
16258 the connection list.
16259 (target_stack::push): Add process_stratum targets to the
16260 connection list.
16261
4f837581
PA
162622020-01-10 Pedro Alves <palves@redhat.com>
16263
16264 Revert:
16265 2016-04-12 Pedro Alves <palves@redhat.com>
16266 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16267 Remove references to name.
16268 * serial.h (struct serial) <name>: Delete.
16269
f4ec508e
PA
162702020-01-10 Pedro Alves <palves@redhat.com>
16271
16272 * gdbarch-selftests.c (register_to_value_test): Remove "target
16273 already pushed" check.
16274
5b6d1e4f
PA
162752020-01-10 Pedro Alves <palves@redhat.com>
16276 John Baldwin <jhb@FreeBSD.org>
16277
16278 * aarch64-linux-nat.c
16279 (aarch64_linux_nat_target::thread_architecture): Adjust.
16280 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16281 (task_command_1): Likewise.
16282 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16283 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16284 (aix_thread_target::store_registers)
16285 (aix_thread_target::thread_alive): Adjust.
16286 * amd64-fbsd-tdep.c: Include "inferior.h".
16287 (amd64fbsd_get_thread_local_address): Pass down target.
16288 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16289 thread's gdbarch instead of target_gdbarch.
16290 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16291 get_last_target_status.
16292 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16293 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16294 inferiors.
16295 (update_inserted_breakpoint_locations): Skip if inferiors with no
16296 execution.
16297 (update_global_location_list): When handling moribund locations,
16298 find representative inferior for location's pspace, and use thread
16299 count of its process_stratum target.
16300 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16301 * bsd-uthread.c (bsd_uthread_target::wait): Use
16302 as_process_stratum_target and adjust thread_change_ptid and
16303 add_thread calls.
16304 (bsd_uthread_target::update_thread_list): Use
16305 as_process_stratum_target and adjust find_thread_ptid,
16306 thread_change_ptid and add_thread calls.
16307 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16308 find_thread_ptid call.
16309 * corelow.c (add_to_thread_list): Adjust add_thread call.
16310 (core_target_open): Adjust add_thread_silent and thread_count
16311 calls.
16312 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16313 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16314 * event-top.c (async_disconnect): Pop targets from all inferiors.
16315 * exec.c (add_target_sections): Push exec target on all inferiors
16316 sharing the program space.
16317 (remove_target_sections): Remove the exec target from all
16318 inferiors sharing the program space.
16319 (exec_on_vfork): New.
16320 * exec.h (exec_on_vfork): Declare.
16321 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16322 Pass it down.
16323 (fbsd_nat_target::update_thread_list): Adjust.
16324 (fbsd_nat_target::resume): Adjust.
16325 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16326 down.
16327 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16328 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16329 get_thread_arch_regcache call.
16330 * fork-child.c (gdb_startup_inferior): Pass target down to
16331 startup_inferior and set_executing.
16332 * gdbthread.h (struct process_stratum_target): Forward declare.
16333 (add_thread, add_thread_silent, add_thread_with_info)
16334 (in_thread_list): Add process_stratum_target parameter.
16335 (find_thread_ptid(inferior*, ptid_t)): New overload.
16336 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16337 parameter.
16338 (all_threads()): Delete overload.
16339 (all_threads, all_non_exited_threads): Add process_stratum_target
16340 parameter.
16341 (all_threads_safe): Use brace initialization.
16342 (thread_count): Add process_stratum_target parameter.
16343 (set_resumed, set_running, set_stop_requested, set_executing)
16344 (threads_are_executing, finish_thread_state): Add
16345 process_stratum_target parameter.
16346 (switch_to_thread): Use is_current_thread.
16347 * i386-fbsd-tdep.c: Include "inferior.h".
16348 (i386fbsd_get_thread_local_address): Pass down target.
16349 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16350 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16351 have_inferiors check.
16352 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16353 (inf_ptrace_target::attach): Adjust.
16354 * infcall.c (run_inferior_call): Adjust.
16355 * infcmd.c (run_command_1): Pass target to
16356 scoped_finish_thread_state.
16357 (proceed_thread_callback): Skip inferiors with no execution.
16358 (continue_command): Rename 'all_threads' local to avoid hiding
16359 'all_threads' function. Adjust get_last_target_status call.
16360 (prepare_one_step): Adjust set_running call.
16361 (signal_command): Use user_visible_resume_target. Compare thread
16362 pointers instead of inferior_ptid.
16363 (info_program_command): Adjust to pass down target.
16364 (attach_command): Mark target's 'thread_executing' flag.
16365 (stop_current_target_threads_ns): New, factored out from ...
16366 (interrupt_target_1): ... this. Switch inferior before making
16367 target calls.
16368 * inferior-iter.h
16369 (struct all_inferiors_iterator, struct all_inferiors_range)
16370 (struct all_inferiors_safe_range)
16371 (struct all_non_exited_inferiors_range): Filter on
16372 process_stratum_target too. Remove explicit.
16373 * inferior.c (inferior::inferior): Push dummy target on target
16374 stack.
16375 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16376 Add process_stratum_target parameter, and pass it down.
16377 (have_live_inferiors): Adjust.
16378 (switch_to_inferior_and_push_target): New.
16379 (add_inferior_command, clone_inferior_command): Handle
16380 "-no-connection" parameter. Use
16381 switch_to_inferior_and_push_target.
16382 (_initialize_inferior): Mention "-no-connection" option in
16383 the help of "add-inferior" and "clone-inferior" commands.
16384 * inferior.h: Include "process-stratum-target.h".
16385 (interrupt_target_1): Use bool.
16386 (struct inferior) <push_target, unpush_target, target_is_pushed,
16387 find_target_beneath, top_target, process_target, target_at,
16388 m_stack>: New.
16389 (discard_all_inferiors): Delete.
16390 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16391 (all_inferiors, all_non_exited_inferiors): Add
16392 process_stratum_target parameter.
16393 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16394 (target_last_proc_target): New global.
16395 (follow_fork_inferior): Push target on new inferior. Pass target
16396 to add_thread_silent. Call exec_on_vfork. Handle target's
16397 reference count.
16398 (follow_fork): Adjust get_last_target_status call. Also consider
16399 target.
16400 (follow_exec): Push target on new inferior.
16401 (struct execution_control_state) <target>: New field.
16402 (user_visible_resume_target): New.
16403 (do_target_resume): Call target_async.
16404 (resume_1): Set target's threads_executing flag. Consider resume
16405 target.
16406 (commit_resume_all_targets): New.
16407 (proceed): Also consider resume target. Skip threads of inferiors
16408 with no execution. Commit resumtion in all targets.
16409 (start_remote): Pass current inferior to wait_for_inferior.
16410 (infrun_thread_stop_requested): Consider target as well. Pass
16411 thread_info pointer to clear_inline_frame_state instead of ptid.
16412 (infrun_thread_thread_exit): Consider target as well.
16413 (random_pending_event_thread): New inferior parameter. Use it.
16414 (do_target_wait): Rename to ...
16415 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16416 down.
16417 (threads_are_resumed_pending_p, do_target_wait): New.
16418 (prepare_for_detach): Adjust calls.
16419 (wait_for_inferior): New inferior parameter. Handle it. Use
16420 do_target_wait_1 instead of do_target_wait.
16421 (fetch_inferior_event): Adjust. Switch to representative
16422 inferior. Pass target down.
16423 (set_last_target_status): Add process_stratum_target parameter.
16424 Save target in global.
16425 (get_last_target_status): Add process_stratum_target parameter and
16426 handle it.
16427 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16428 (context_switch): Check inferior_ptid == null_ptid before calling
16429 inferior_thread().
16430 (get_inferior_stop_soon): Pass down target.
16431 (wait_one): Rename to ...
16432 (poll_one_curr_target): ... this.
16433 (struct wait_one_event): New.
16434 (wait_one): New.
16435 (stop_all_threads): Adjust.
16436 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16437 event's target.
16438 (switch_back_to_stepped_thread): Also consider target.
16439 (print_stop_event): Update.
16440 (normal_stop): Update. Also consider the resume target.
16441 * infrun.h (wait_for_inferior): Remove declaration.
16442 (user_visible_resume_target): New declaration.
16443 (get_last_target_status, set_last_target_status): New
16444 process_stratum_target parameter.
16445 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16446 process_stratum_target parameter, and use it.
16447 (clear_inline_frame_state (thread_info*)): New.
16448 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16449 process_stratum_target parameter.
16450 (clear_inline_frame_state (thread_info*)): Declare.
16451 * linux-fork.c (delete_checkpoint_command): Pass target down to
16452 find_thread_ptid.
16453 (checkpoint_command): Adjust.
16454 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16455 instead of just tweaking inferior_ptid.
16456 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16457 (exit_lwp): Pass target down to find_thread_ptid.
16458 (attach_proc_task_lwp_callback): Pass target down to
16459 add_thread/set_running/set_executing.
16460 (linux_nat_target::attach): Pass target down to
16461 thread_change_ptid.
16462 (get_detach_signal): Pass target down to find_thread_ptid.
16463 Consider last target status's target.
16464 (linux_resume_one_lwp_throw, resume_lwp)
16465 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16466 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16467 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16468 (linux_nat_target::async_wait_fd): New.
16469 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16470 target down.
16471 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16472 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16473 * linux-thread-db.c (struct thread_db_info::process_target): New
16474 field.
16475 (add_thread_db_info): Save target.
16476 (get_thread_db_info): New process_stratum_target parameter. Also
16477 match target.
16478 (delete_thread_db_info): New process_stratum_target parameter.
16479 Also match target.
16480 (thread_from_lwp): Adjust to pass down target.
16481 (thread_db_notice_clone): Pass down target.
16482 (check_thread_db_callback): Pass down target.
16483 (try_thread_db_load_1): Always push the thread_db target.
16484 (try_thread_db_load, record_thread): Pass target down.
16485 (thread_db_target::detach): Pass target down. Always unpush the
16486 thread_db target.
16487 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16488 target down. Always unpush the thread_db target.
16489 (find_new_threads_callback, thread_db_find_new_threads_2)
16490 (thread_db_target::update_thread_list): Pass target down.
16491 (thread_db_target::pid_to_str): Pass current inferior down.
16492 (thread_db_target::get_thread_local_address): Pass target down.
16493 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16494 target down.
16495 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16496 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16497 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16498 (procfs_init_inferior): Rename to ...
16499 (procfs_target::procfs_init_inferior): ... this and adjust.
16500 (procfs_target::create_inferior, procfs_notice_thread)
16501 (procfs_do_thread_registers): Adjust.
16502 * ppc-fbsd-tdep.c: Include "inferior.h".
16503 (ppcfbsd_get_thread_local_address): Pass down target.
16504 * proc-service.c (ps_xfer_memory): Switch current inferior and
16505 program space as well.
16506 (get_ps_regcache): Pass target down.
16507 * process-stratum-target.c
16508 (process_stratum_target::thread_address_space)
16509 (process_stratum_target::thread_architecture): Pass target down.
16510 * process-stratum-target.h
16511 (process_stratum_target::threads_executing): New field.
16512 (as_process_stratum_target): New.
16513 * ravenscar-thread.c
16514 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16515 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16516 down.
16517 * record-btrace.c (record_btrace_target::info_record): Adjust.
16518 (record_btrace_target::record_method)
16519 (record_btrace_target::record_is_replaying)
16520 (record_btrace_target::fetch_registers)
16521 (get_thread_current_frame_id, record_btrace_target::resume)
16522 (record_btrace_target::wait, record_btrace_target::stop): Pass
16523 target down.
16524 * record-full.c (record_full_wait_1): Switch to event thread.
16525 Pass target down.
16526 * regcache.c (regcache::regcache)
16527 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16528 process_stratum_target parameter and handle it.
16529 (current_thread_target): New global.
16530 (get_thread_regcache): Add process_stratum_target parameter and
16531 handle it. Switch inferior before calling target method.
16532 (get_thread_regcache): Pass target down.
16533 (get_thread_regcache_for_ptid): Pass target down.
16534 (registers_changed_ptid): Add process_stratum_target parameter and
16535 handle it.
16536 (registers_changed_thread, registers_changed): Pass target down.
16537 (test_get_thread_arch_aspace_regcache): New.
16538 (current_regcache_test): Define a couple local test_target_ops
16539 instances and use them for testing.
16540 (readwrite_regcache): Pass process_stratum_target parameter.
16541 (cooked_read_test, cooked_write_test): Pass mock_target down.
16542 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16543 (get_thread_arch_aspace_regcache): Add process_stratum_target
16544 parameter.
16545 (regcache::target): New method.
16546 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16547 (regcache::registers_changed_ptid): Add process_stratum_target
16548 parameter.
16549 (regcache::m_target): New field.
16550 (registers_changed_ptid): Add process_stratum_target parameter.
16551 * remote.c (remote_state::supports_vCont_probed): New field.
16552 (remote_target::async_wait_fd): New method.
16553 (remote_unpush_and_throw): Add remote_target parameter.
16554 (get_current_remote_target): Adjust.
16555 (remote_target::remote_add_inferior): Push target.
16556 (remote_target::remote_add_thread)
16557 (remote_target::remote_notice_new_inferior)
16558 (get_remote_thread_info): Pass target down.
16559 (remote_target::update_thread_list): Skip threads of inferiors
16560 bound to other targets. (remote_target::close): Don't discard
16561 inferiors. (remote_target::add_current_inferior_and_thread)
16562 (remote_target::process_initial_stop_replies)
16563 (remote_target::start_remote)
16564 (remote_target::remote_serial_quit_handler): Pass down target.
16565 (remote_target::remote_unpush_target): New remote_target
16566 parameter. Unpush the target from all inferiors.
16567 (remote_target::remote_unpush_and_throw): New remote_target
16568 parameter. Pass it down.
16569 (remote_target::open_1): Check whether the current inferior has
16570 execution instead of checking whether any inferior is live. Pass
16571 target down.
16572 (remote_target::remote_detach_1): Pass down target. Use
16573 remote_unpush_target.
16574 (extended_remote_target::attach): Pass down target.
16575 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16576 (remote_target::append_resumption): Pass down target.
16577 (remote_target::append_pending_thread_resumptions)
16578 (remote_target::remote_resume_with_hc, remote_target::resume)
16579 (remote_target::commit_resume): Pass down target.
16580 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16581 (remote_target::interrupt_query)
16582 (remote_target::remove_new_fork_children)
16583 (remote_target::check_pending_events_prevent_wildcard_vcont)
16584 (remote_target::remote_parse_stop_reply)
16585 (remote_target::process_stop_reply): Pass down target.
16586 (first_remote_resumed_thread): New remote_target parameter. Pass
16587 it down.
16588 (remote_target::wait_as): Pass down target.
16589 (unpush_and_perror): New remote_target parameter. Pass it down.
16590 (remote_target::readchar, remote_target::remote_serial_write)
16591 (remote_target::getpkt_or_notif_sane_1)
16592 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16593 down target.
16594 (remote_target::mourn_inferior): Pass down target. Use
16595 remote_unpush_target.
16596 (remote_target::core_of_thread)
16597 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16598 (remote_target::pid_to_exec_file)
16599 (remote_target::thread_handle_to_thread_info): Pass down target.
16600 (remote_target::async_wait_fd): New.
16601 * riscv-fbsd-tdep.c: Include "inferior.h".
16602 (riscv_fbsd_get_thread_local_address): Pass down target.
16603 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16604 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16605 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16606 Adjust.
16607 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16608 * solib-svr4.c (enable_break): Pass down target.
16609 * spu-multiarch.c (parse_spufs_run): Pass down target.
16610 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16611 * target-delegates.c: Regenerate.
16612 * target.c (g_target_stack): Delete.
16613 (current_top_target): Return the current inferior's top target.
16614 (target_has_execution_1): Refer to the passed-in inferior's top
16615 target.
16616 (target_supports_terminal_ours): Check whether the initial
16617 inferior was already created.
16618 (decref_target): New.
16619 (target_stack::push): Incref/decref the target.
16620 (push_target, push_target, unpush_target): Adjust.
16621 (target_stack::unpush): Defref target.
16622 (target_is_pushed): Return bool. Adjust to refer to the current
16623 inferior's target stack.
16624 (dispose_inferior): Delete, and inline parts ...
16625 (target_preopen): ... here. Only dispose of the current inferior.
16626 (target_detach): Hold strong target reference while detaching.
16627 Pass target down.
16628 (target_thread_name): Add assertion.
16629 (target_resume): Pass down target.
16630 (target_ops::beneath, find_target_at): Adjust to refer to the
16631 current inferior's target stack.
16632 (get_dummy_target): New.
16633 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16634 has a thread running.
16635 (initialize_targets): Rename to ...
16636 (_initialize_target): ... this.
16637 * target.h: Include "gdbsupport/refcounted-object.h".
16638 (struct target_ops): Inherit refcounted_object.
16639 (target_ops::shortname, target_ops::longname): Make const.
16640 (target_ops::async_wait_fd): New method.
16641 (decref_target): Declare.
16642 (struct target_ops_ref_policy): New.
16643 (target_ops_ref): New typedef.
16644 (get_dummy_target): Declare function.
16645 (target_is_pushed): Return bool.
16646 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16647 (all_matching_threads_iterator::all_matching_threads_iterator):
16648 Handle filter target.
16649 * thread-iter.h (struct all_matching_threads_iterator, struct
16650 all_matching_threads_range, class all_non_exited_threads_range):
16651 Filter by target too. Remove explicit.
16652 * thread.c (threads_executing): Delete.
16653 (inferior_thread): Pass down current inferior.
16654 (clear_thread_inferior_resources): Pass down thread pointer
16655 instead of ptid_t.
16656 (add_thread_silent, add_thread_with_info, add_thread): Add
16657 process_stratum_target parameter. Use it for thread and inferior
16658 searches.
16659 (is_current_thread): New.
16660 (thread_info::deletable): Use it.
16661 (find_thread_ptid, thread_count, in_thread_list)
16662 (thread_change_ptid, set_resumed, set_running): New
16663 process_stratum_target parameter. Pass it down.
16664 (set_executing): New process_stratum_target parameter. Pass it
16665 down. Adjust reference to 'threads_executing'.
16666 (threads_are_executing): New process_stratum_target parameter.
16667 Adjust reference to 'threads_executing'.
16668 (set_stop_requested, finish_thread_state): New
16669 process_stratum_target parameter. Pass it down.
16670 (switch_to_thread): Also match inferior.
16671 (switch_to_thread): New process_stratum_target parameter. Pass it
16672 down.
16673 (update_threads_executing): Reimplement.
16674 * top.c (quit_force): Pop targets from all inferior.
16675 (gdb_init): Don't call initialize_targets.
16676 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16677 Declare.
16678 (windows_add_thread, windows_delete_thread): Adjust.
16679 (get_windows_debug_event): Rename to ...
16680 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16681 * tracefile-tfile.c (tfile_target_open): Pass down target.
16682 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16683 Forward declare.
16684 (switch_to_thread): Add process_stratum_target parameter.
16685 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16686 parameter. Use it.
16687 (mi_on_resume): Pass target down.
16688 * nat/fork-inferior.c (startup_inferior): Add
16689 process_stratum_target parameter. Pass it down.
16690 * nat/fork-inferior.h (startup_inferior): Add
16691 process_stratum_target parameter.
16692 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16693
75c6c844
PA
166942020-01-10 Pedro Alves <palves@redhat.com>
16695
16696 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16697 directly. Instead find the first thread in the thread list and
16698 use switch_to_thread.
16699
78f2c40a
PA
167002020-01-10 Pedro Alves <palves@redhat.com>
16701
16702 * remote.c (remote_target::remote_add_inferior): Don't bind a
16703 process to the current inferior if the current inferior is already
16704 bound to a process.
16705
e7af6c70
TBA
167062020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16707 Pedro Alves <palves@redhat.com>
16708
16709 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16710 If no process is specified, return null_ptid instead of
16711 inferior_ptid.
16712 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16713 TARGET_WAITKIND_SIGNALLED with no pid.
16714
31ba933e
PA
167152020-01-10 Pedro Alves <palves@redhat.com>
16716
16717 * remote.c (first_remote_resumed_thread): New.
16718 (remote_target::wait_as): Use it as default event_ptid instead of
16719 inferior_ptid.
16720
735fc2ca
PA
167212020-01-10 Pedro Alves <palves@redhat.com>
16722
16723 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16724
c17e02e1
PA
167252020-01-10 Pedro Alves <palves@redhat.com>
16726
16727 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16728 not -1.
16729
ab1ddbcf
PA
167302020-01-10 Pedro Alves <palves@redhat.com>
16731
16732 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16733 ptid to get_last_target_status.
16734 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16735 ptid to get_last_target_status.
16736 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16737 get_last_target_status.
16738 (info_program_command): Don't pass a target_waitstatus to
16739 get_last_target_status.
16740 * infrun.c (init_wait_for_inferior): Use
16741 nullify_last_target_wait_ptid.
16742 (get_last_target_status): Handle nullptr arguments.
16743 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16744 (print_stop_event): Don't pass a ptid to get_last_target_status.
16745 (normal_stop): Don't pass a ptid to get_last_target_status.
16746 * infrun.h (get_last_target_status, set_last_target_status): Move
16747 comments here and update.
16748 (nullify_last_target_wait_ptid): Declare.
16749 * linux-fork.c (fork_load_infrun_state): Remove local extern
16750 declaration of nullify_last_target_wait_ptid.
16751 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16752 to get_last_target_status.
16753
f3f8ece4
PA
167542020-01-10 Pedro Alves <palves@redhat.com>
16755
16756 * gdbthread.h (scoped_restore_current_thread)
16757 <dont_restore, restore, m_dont_restore>: Declare.
16758 * thread.c (thread_alive): Add assertion. Return bool.
16759 (switch_to_thread_if_alive): New.
16760 (prune_threads): Switch inferior/thread.
16761 (print_thread_info_1): Switch thread before calling target methods.
16762 (scoped_restore_current_thread::restore): New, factored out from
16763 ...
16764 (scoped_restore_current_thread::~scoped_restore_current_thread):
16765 ... this.
16766 (scoped_restore_current_thread::scoped_restore_current_thread):
16767 Add assertion.
16768 (thread_apply_all_command, thread_select): Use
16769 switch_to_thread_if_alive.
16770 * infrun.c (proceed, restart_threads, handle_signal_stop)
16771 (switch_back_to_stepped_thread): Switch current thread before
16772 calling target methods.
16773
db2d40f7
PA
167742020-01-10 Pedro Alves <palves@redhat.com>
16775
16776 * inferior.c (switch_to_inferior_no_thread): New function,
16777 factored out from ...
16778 (inferior_command): ... here.
16779 * inferior.h (switch_to_inferior_no_thread): Declare.
16780 * mi/mi-main.c (run_one_inferior): Use
16781 switch_to_inferior_no_thread.
16782
bd420a2d
PA
167832020-01-10 Pedro Alves <palves@redhat.com>
16784
16785 * infcmd.c (kill_command): Remove dead code.
16786
ddf5db90
PA
167872020-01-10 Pedro Alves <palves@redhat.com>
16788
16789 * remote.c (remote_target::mourn_inferior): No longer check
16790 whether the target is running.
16791
5018ce90
PA
167922020-01-10 Pedro Alves <palves@redhat.com>
16793
16794 * corelow.c (core_target::has_execution): Change parameter type to
16795 inferior pointer.
16796 * inferior.c (number_of_live_inferiors): Use
16797 inferior::has_execution instead of target_has_execution_1.
16798 * inferior.h (inferior::has_execution): New.
16799 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16800 inferior::has_execution instead of target_has_execution_1.
16801 * process-stratum-target.c
16802 (process_stratum_target::has_execution): Change parameter type to
16803 inferior pointer. Check the inferior's PID instead of
16804 inferior_ptid.
16805 * process-stratum-target.h
16806 (process_stratum_target::has_execution): Change parameter type to
16807 inferior pointer.
16808 * record-full.c (record_full_core_target::has_execution): Change
16809 parameter type to inferior pointer.
16810 * target.c (target_has_execution_1): Change parameter type to
16811 inferior pointer.
16812 (target_has_execution_current): Adjust.
16813 * target.h (target_ops::has_execution): Change parameter type to
16814 inferior pointer.
16815 (target_has_execution_1): Change parameter type to inferior
16816 pointer. Change return type to bool.
16817 * tracefile.h (tracefile_target::has_execution): Change parameter
16818 type to inferior pointer.
16819
74375d18
PA
168202020-01-10 Pedro Alves <palves@redhat.com>
16821
16822 * exceptions.c (print_flush): Remove current_top_target() check.
16823
acdf84a6
PA
168242020-01-10 Pedro Alves <palves@redhat.com>
16825
16826 * remote.c (show_remote_exec_file): Show the current inferior's
16827 exec-file instead of the command variable's value.
16828
ec506636
PA
168292020-01-10 Pedro Alves <palves@redhat.com>
16830
16831 * record-full.c (record_full_resume_ptid): New global.
16832 (record_full_target::resume): Set it.
16833 (record_full_wait_1): Use record_full_resume_ptid instead of
16834 inferior_ptid.
16835
873657b9
PA
168362020-01-10 Pedro Alves <palves@redhat.com>
16837
16838 * gdbthread.h (scoped_restore_current_thread)
16839 <dont_restore, restore, m_dont_restore>: Declare.
16840 * thread.c (thread_alive): Add assertion. Return bool.
16841 (switch_to_thread_if_alive): New.
16842 (prune_threads): Switch inferior/thread.
16843 (print_thread_info_1): Switch thread before calling target methods.
16844 (scoped_restore_current_thread::restore): New, factored out from
16845 ...
16846 (scoped_restore_current_thread::~scoped_restore_current_thread):
16847 ... this.
16848 (scoped_restore_current_thread::scoped_restore_current_thread):
16849 Add assertion.
16850 (thread_apply_all_command, thread_select): Use
16851 switch_to_thread_if_alive.
16852
7f0ae84c
GB
168532020-01-10 George Barrett <bob@bob131.so>
16854
16855 * stap-probe.c (stap_modify_semaphore): Don't check for null
16856 semaphores.
16857 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16858 for null semaphores.
16859
f5a7c406
AB
168602020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16861
16862 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16863 all source windows, and maintain horizontal scroll status while
16864 doing so.
16865
9ae6bf64
TT
168662020-01-09 Tom Tromey <tom@tromey.com>
16867
16868 PR tui/18932:
16869 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16870 update_source_window, not print_source_lines.
16871
b2efe70c
AB
168722020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16873
16874 * tui/tui.c (tui_enable): Register tui hooks after calling
16875 tui_display_main.
16876
5f23a082
CB
168772020-01-09 Christian Biesinger <cbiesinger@google.com>
16878
16879 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16880
3061113b
SM
168812020-01-08 Simon Marchi <simon.marchi@efficios.com>
16882
16883 * thread.c (print_thread_info_1): Fix indentation.
16884
57d75002
CB
168852020-01-09 Christian Biesinger <cbiesinger@google.com>
16886
16887 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16888 unique_xmalloc_ptr outside the if to always free the demangled name.
16889
6a053cb1
TT
168902020-01-08 Tom Tromey <tromey@adacore.com>
16891
16892 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16893 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16894 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16895 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16896 Remove.
16897 (section_offsets): New typedef.
16898 * symtab.c (fixup_section, get_msymbol_address): Update.
16899 * symmisc.c (dump_msymbols): Update.
16900 * symfile.h (relative_addr_info_to_section_offsets)
16901 (symfile_map_offsets_to_segments): Update.
16902 * symfile.c (build_section_addr_info_from_objfile)
16903 (init_objfile_sect_indices): Update.
16904 (struct place_section_arg): Change type of "offsets".
16905 (place_section): Update.
16906 (relative_addr_info_to_section_offsets): Change type of
16907 "section_offsets". Remove "num_sections" parameter.
16908 (default_symfile_offsets, syms_from_objfile_1)
16909 (set_objfile_default_section_offset): Update.
16910 (reread_symbols): No need to preserve section offsets by hand.
16911 (symfile_map_offsets_to_segments): Change type of "offsets".
16912 * stap-probe.c (relocate_address): Update.
16913 * stabsread.h (process_one_symbol): Update.
16914 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16915 (solib_target_relocate_section_addresses): Update.
16916 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16917 Update.
16918 * solib-frv.c (frv_relocate_main_executable): Update.
16919 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16920 * solib-aix.c (solib_aix_get_section_offsets): Change return
16921 type.
16922 (solib_aix_solib_create_inferior_hook): Update.
16923 * remote.c (remote_target::get_offsets): Update.
16924 * psymtab.c (find_pc_sect_psymtab): Update.
16925 * psympriv.h (struct partial_symbol) <address, text_low,
16926 text_high>: Update.
16927 * objfiles.h (obj_section_offset): Update.
16928 (struct objfile) <section_offsets>: Change type.
16929 <num_sections>: Remove.
16930 (objfile_relocate): Update.
16931 * objfiles.c (entry_point_address_query): Update
16932 (relocate_one_symbol): Change type of "section_offsets".
16933 (objfile_relocate1, objfile_relocate1): Change type of
16934 "new_offsets".
16935 (objfile_rebase1): Update.
16936 * mipsread.c (mipscoff_symfile_read): Update.
16937 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16938 parameter.
16939 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16940 (parse_external, psymtab_to_symtab_1): Update.
16941 * machoread.c (macho_symfile_offsets): Update.
16942 * ia64-tdep.c (ia64_find_unwind_table): Update.
16943 * hppa-tdep.c (read_unwind_info): Update.
16944 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16945 * dwarf2read.c (create_addrmap_from_index)
16946 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16947 (process_psymtab_comp_unit_reader, add_partial_symbol)
16948 (add_partial_subprogram, process_full_comp_unit)
16949 (read_file_scope, read_func_scope, read_lexical_block_scope)
16950 (read_call_site_scope, dwarf2_rnglists_process)
16951 (dwarf2_ranges_process, dwarf2_ranges_read)
16952 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16953 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16954 Update.
16955 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16956 Update.
16957 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16958 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16959 (process_one_symbol): Change type of "section_offsets".
16960 * ctfread.c (get_objfile_text_range): Update.
16961 * coffread.c (coff_symtab_read, enter_linenos)
16962 (process_coff_symbol): Update.
16963 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16964 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16965
456e800a
TT
169662020-01-08 Tom Tromey <tromey@adacore.com>
16967
16968 * dwarf2read.c (parse_macro_definition): Use std::string.
16969 (parse_macro_definition): Likewise.
16970
6dfa2fc2
TT
169712020-01-08 Tom Tromey <tromey@adacore.com>
16972
16973 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16974 (ATTR_ALLOC_CHUNK): Remove.
16975
421d1616
TT
169762020-01-08 Tom Tromey <tromey@adacore.com>
16977
16978 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16979
43816ebc
TT
169802020-01-08 Tom Tromey <tromey@adacore.com>
16981
16982 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16983 (dwarf2_compute_name, open_dwo_file): Likewise.
16984 (process_enumeration_scope): Use std::vector.
16985 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16986 (partial_die_info::fixup, dwarf2_start_subfile)
16987 (guess_full_die_structure_name, dwarf2_name): Likewise.
16988 (determine_prefix): Update.
16989 (guess_full_die_structure_name): Make return type const.
16990 (partial_die_full_name): Return unique_xmalloc_ptr.
16991 (DW_FIELD_ALLOC_CHUNK): Remove.
16992
4212d509
TT
169932020-01-07 Tom Tromey <tromey@adacore.com>
16994
16995 PR build/24937:
16996 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16997
06a6207a
JT
169982020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16999
17000 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17001
153d79c4
AB
170022020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17003
17004 * stack.c (print_frame_info): Move disassemble_next_line code
17005 inside source_print block.
17006
66182876
EZ
170072020-01-06 Eli Zaretskii <eliz@gnu.org>
17008
17009 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17010 gdb/signals.h, as we are now using native signal symbols.
17011
cbfa8581
SV
170122020-01-06 Shahab Vahedi <shahab@synopsys.com>
17013
17014 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17015 overflow by an early check of content vs threshold.
aac66a4c 17016 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17017 Likewise.
17018
3f602821
EZ
170192020-01-06 Eli Zaretskii <eliz@gnu.org>
17020
17021 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17022
a08c904d
JT
170232020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17024
17025 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17026 export table if no section contains it's RVA.
17027
89a65580
EZ
170282020-01-06 Eli Zaretskii <eliz@gnu.org>
17029
17030 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17031
8b7fcda2
HD
170322020-01-06 Hannes Domani <ssbssa@yahoo.de>
17033
17034 * source.c (print_source_lines_base): Set last_line_listed.
17035
a61b4f69
SV
170362020-01-06 Shahab Vahedi <shahab@synopsys.com>
17037
17038 * tui/tui-disasm.c: Remove trailing spaces.
17039
559e7e50
EZ
170402020-01-06 Eli Zaretskii <eliz@gnu.org>
17041 Pedro Alves <palves@redhat.com>
17042
17043 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17044 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17045 (windows_gdb_signal_to_target): New function, uses the above
17046 enumeration to convert GDB internal signal codes to equivalent
17047 Windows codes.
17048 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17049 * windows-nat.c: Include "gdb_wait.h".
17050 (get_windows_debug_event): Extract the fatal exception from the
17051 exit status and convert to the equivalent Posix signal number.
17052 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17053 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17054 * gdbsupport/gdb_wait.c: New file, implements
17055 windows_status_to_termsig.
17056 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17057 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17058
f2302a34
AB
170592020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17060
17061 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17062 show_layout.
17063
6a5206eb
LM
170642020-01-05 Luis Machado <luis.machado@linaro.org>
17065
17066 * aarch64-linux-nat.c
17067 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17068 and bfd_mach_aarch64.
17069
6ec1d75e
PW
170702020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17071
17072 * ui-file.c (stdio_file::can_emit_style_escape)
17073 (tee_file::can_emit_style_escape): Ensure style is used also on
17074 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17075 to gdb_stdout.
17076 * main.c (set_gdb_data_directory): Use file style to output the
17077 warning that the given pathname is not a directory.
17078 * top.c (show_history_filename, gdb_safe_append_history)
17079 (show_gdb_datadir): Use file style.
17080
44f81a76
HD
170812020-01-03 Hannes Domani <ssbssa@yahoo.de>
17082
17083 * solib-target.c (struct lm_info_target):
17084 Change offsets to be a unique_xmalloc_ptr.
17085 (solib_target_relocate_section_addresses): Update.
17086
25057eb0
HD
170872020-01-03 Hannes Domani <ssbssa@yahoo.de>
17088
17089 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17090
6e2118f5
BE
170912020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17092
17093 * MAINTAINERS (Write After Approval): Add myself.
17094
8133c7dc
LM
170952020-01-02 Luis Machado <luis.machado@linaro.org>
17096
17097 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17098 Cell BE architecture.
17099 * target.h (struct target_ops) <thread_architecture>: Likewise.
17100
48189bec
HD
171012020-01-01 Hannes Domani <ssbssa@yahoo.de>
17102
17103 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17104
ead1063b
HD
171052020-01-01 Hannes Domani <ssbssa@yahoo.de>
17106
17107 * MAINTAINERS (Write After Approval): Add myself.
17108
e5d78223
JB
171092020-01-01 Joel Brobecker <brobecker@adacore.com>
17110
17111 * gdbarch.sh: Update copyright year range of generated files.
17112
b811d2c2
JB
171132020-01-01 Joel Brobecker <brobecker@adacore.com>
17114
17115 Update copyright year range in all GDB files.
17116
5f4def5c
JB
171172020-01-01 Joel Brobecker <brobecker@adacore.com>
17118
17119 * copyright.py: Convert to Python 3.
17120
51fd4002
JB
171212020-01-01 Joel Brobecker <brobecker@adacore.com>
17122
17123 * copyright.py: Adapt after move of gnulib directory from gdb
17124 directory to toplevel directory.
17125
5fb651f2
JB
171262020-01-01 Joel Brobecker <brobecker@adacore.com>
17127
17128 * copyright.py (main): Exit if run from the wrong directory.
17129
5dd8bf88
JB
171302020-01-01 Joel Brobecker <brobecker@adacore.com>
17131
17132 * top.c (print_gdb_version): Change copyright year to 2020.
17133
9f71dacb 171342020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17135
9f71dacb 17136 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17137
9f71dacb 17138For older changes see ChangeLog-2019.
c906108c
SS
17139\f
17140Local Variables:
17141mode: change-log
17142left-margin: 8
17143fill-column: 74
17144version-control: never
57da7796 17145coding: utf-8
c906108c 17146End: