]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix a bug in the s390x linker when discarding all inpuit files.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a5adb8f3
SM
12020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
4
70125a45
SM
52020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
8 in `loop_cb` parameter.
9 * gdbarch.c: Re-generate.
10 * gdbarch.h: Re-generate.
11 * arch-utils.c (default_read_core_file_mappings): Remove `other`
12 parameter.
13 * arch-utils.h (default_read_core_file_mappings): Likewise.
14 * corelow.c (core_target::build_file_mappings): Likewise.
15 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
16 (linux_core_info_proc_mappings): Likewise.
17
a5c641b5
AB
182020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
19
20 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
21 * NEWS: Mention new options.
22 * f-array-walker.h: New file.
23 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
24 (repack_array_slices): New static global.
25 (show_repack_array_slices): New function.
26 (fortran_array_slicing_debug): New static global.
27 (show_fortran_array_slicing_debug): New function.
28 (value_f90_subarray): Delete.
29 (skip_undetermined_arglist): Delete.
30 (class fortran_array_repacker_base_impl): New class.
31 (class fortran_lazy_array_repacker_impl): New class.
32 (class fortran_array_repacker_impl): New class.
33 (fortran_value_subarray): Complete rewrite.
34 (set_fortran_list): New static global.
35 (show_fortran_list): Likewise.
36 (_initialize_f_language): Register new commands.
37 (fortran_adjust_dynamic_array_base_address_hack): New function.
38 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
39 Declare.
40 * f-valprint.c: Include 'f-array-walker.h'.
41 (class fortran_array_printer_impl): New class.
42 (f77_print_array_1): Delete.
43 (f77_print_array): Delete.
44 (fortran_print_array): New.
45 (f_value_print_inner): Update to call fortran_print_array.
46 * gdbtypes.c: Include 'f-lang.h'.
47 (resolve_dynamic_type_internal): Call
48 fortran_adjust_dynamic_array_base_address_hack.
49
a15a5258
AB
502020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
51
52 * breakpoint.c (struct watch_options): New struct.
53 (watch_option_defs): New static global.
54 (make_watch_options_def_group): New function.
55 (watch_maybe_just_location): Convert option parsing.
56 (watch_command_completer): New function.
57 (_initialize_breakpoint): Build help text using options mechanism.
58
2e362716
AB
592020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
60
61 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
62 (watch_command_1): Update parameter types. Convert locals to
63 bool.
64 (watch_command_wrapper): Change parameter type.
65 (watch_maybe_just_location): Change locals to bool.
66 (rwatch_command_wrapper): Update parameter type.
67 (awatch_command_wrapper): Update parameter type.
68 * breakpoint.h (watch_command_wrapper): Change parameter type.
69 (rwatch_command_wrapper): Update parameter type.
70 (awatch_command_wrapper): Update parameter type.
71 * eval.c (fetch_subexp_value): Change parameter type.
72 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
73 'false' not '0'.
74 * value.h (fetch_subexp_value): Change parameter type in
75 declaration.
76
b3ff61f8
AB
772020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
78
79 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
80 skip_spaces.
81
5b7d45d3
KS
822020-11-18 Keith Seitz <keiths@redhat.com>
83
84 * linux-tdep.c (dump_note_entry_p): Return true instead of
85 checking `filename'.
86
c44191f8
TV
872020-11-18 Tom de Vries <tdevries@suse.de>
88
89 * debuginfod-support.c (debuginfod_source_query)
90 (debuginfod_debuginfo_query): Also do early exit if
91 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
92
5d8254e1
TV
932020-11-18 Tom de Vries <tdevries@suse.de>
94
95 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
96 warning.
97
584903d3
SM
982020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
99
100 * gdbtypes.h (get_array_bounds): Return bool, adjust some
101 callers. Move doc here.
102 * gdbtypes.c (get_array_bounds): Return bool
103
6f2643db
AB
1042020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
105
106 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
107 assert.
108 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
109 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
110 case to the default.
111
037d7135
AB
1122020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
113
114 * printcmd.c: Include 'safe-ctype.c'.
115 (skip_over_slash_fmt): New function.
116 (print_command_completer): Call skip_over_slash_fmt.
117 (display_and_x_command_completer): New function.
118 (_initialize_printcmd): Add command completion for 'x' and
119 'display'.
120
2b3cb400
PA
1212020-11-16 Pedro Alves <pedro@palves.net>
122
123 * frame.c (get_prev_frame): Move get_frame_id call from here ...
124 (get_prev_frame_always_1): ... to here.
125 * inline-frame.c (inline_frame_this_id): Mention
126 get_prev_frame_always_1 in comment.
127
b74dbc20
JB
1282020-11-15 Joel Brobecker <brobecker@adacore.com>
129
130 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
131 handling.
132 (value_less): Add fixed-point handling.
133
0a12719e
JB
1342020-11-15 Joel Brobecker <brobecker@adacore.com>
135
136 * eval.c (binop_promote): Add fixed-point type handling.
137 * valarith.c (fixed_point_binop): New function.
138 (scalar_binop): Add fixed-point type handling.
139 (value_neg): Add fixed-point type handling.
140 * valops.c (value_cast_to_fixed_point): New function.
141 (value_cast): Add fixed-point type handling.
142
0c9150e4
JB
1432020-11-15 Joel Brobecker <brobecker@adacore.com>
144
145 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
146 range types.
147 * c-typeprint.c (c_type_print_varspec_prefix)
148 (c_type_print_varspec_suffix, c_type_print_base_1): Add
149 TYPE_CODE_FIXED_POINT handling.
150 * p-typeprint.c (pascal_type_print_varspec_prefix)
151 (pascal_type_print_varspec_suffix): Likewise.
152 * typeprint.c (print_type_fixed_point): New function.
153 * typeprint.h (print_type_fixed_point): Add declaration.
154
b26daff9
JB
1552020-11-15 Joel Brobecker <brobecker@adacore.com>
156
157 * printcmd.c (print_scalar_formatted): Add fixed-point type
158 handling when options->format is set.
159
09584414
JB
1602020-11-15 Joel Brobecker <brobecker@adacore.com>
161
162 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
163 * dwarf2/read.c (get_dwarf2_rational_constant)
164 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
165 (has_zero_over_zero_small_attribute): New functions.
166 read_base_type, set_die_type): Add fixed-point type handling.
167 * gdb-gdb.py.in: Add fixed-point type handling.
168 * gdbtypes.c: #include "gmp-utils.h".
169 (create_range_type, set_type_code): Add fixed-point type handling.
170 (init_fixed_point_type): New function.
171 (is_integral_type, is_scalar_type): Add fixed-point type handling.
172 (print_fixed_point_type_info): New function.
173 (recursive_dump_type, copy_type_recursive): Add fixed-point type
174 handling.
175 (fixed_point_type_storage): New typedef.
176 (fixed_point_objfile_key): New static global.
177 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
178 (fixed_point_type_base_type, fixed_point_scaling_factor): New
179 functions.
180 * gdbtypes.h: #include "gmp-utils.h".
181 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
182 (union type_specific) <fixed_point_info>: New field.
183 (struct fixed_point_type_info): New struct.
184 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
185 (init_fixed_point_type, is_fixed_point_type)
186 (fixed_point_type_base_type, fixed_point_scaling_factor)
187 (allocate_fixed_point_type_info): Add declarations.
188 * valprint.c (generic_val_print_fixed_point): New function.
189 (generic_value_print): Add fixed-point type handling.
190 * value.c (value_as_address, unpack_long): Add fixed-point type
191 handling.
192
e55c6530
JB
1932020-11-15 Joel Brobecker <brobecker@adacore.com>
194
195 * utils.h (uinteger_pow): Add declaration.
196 * utils.c (uinteger_pow): Moved here (without changes)...
197 * valarith.c (uinteger_pow): ... from here.
198
b34c74ab
JB
1992020-11-15 Joel Brobecker <brobecker@adacore.com>
200
40d9d2fd 201 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
202 * unittests/gmp-utils-selftests.c: New file.
203 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
204 unittests/gmp-utils-selftests.c.
205 (COMMON_SFILES) Add gmp-utils.c.
206 (HFILES_NO_SRCDIR): Add gmp-utils.h.
207
1b4ac058
JB
2082020-11-15 Joel Brobecker <brobecker@adacore.com>
209
210 * configure.ac: Generate an error if a usable GMP library
211 could not be found.
212 * configure: Regenerate.
213
2c947d9b
JB
2142020-11-15 Joel Brobecker <brobecker@adacore.com>
215
216 * configure.ac: Add support for --with-libgmp-prefix.
217 * Makefile.in (LIBGMP): New variable.
218 (CLIBS): Include $(LIBGMP).
219 * configure, config.in: Regenerate
220
9dd02fc0
AB
2212020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
222
223 PR cli/26879
224 * f-exp.y (COMPLETE): New token.
225 (exp): Two new rules for tab-completion.
226 (saw_name_at_eof): New static global.
227 (last_was_structop): Likewise.
228 (yylex): Set new variables, and return COMPLETE token at the end
229 of the input stream in some cases.
230
758cb810
TT
2312020-11-14 Tom Tromey <tom@tromey.com>
232
233 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
234
749065b7
TT
2352020-11-14 Tom Tromey <tom@tromey.com>
236
237 * opencl-lang.c (opencl_component_ref): Make "comps" const.
238
2c5b1849
SM
2392020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
240
241 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
242
e8b2f0d9
TT
2432020-11-13 Tom Tromey <tom@tromey.com>
244
245 * c-lang.c (convert_ucn, convert_octal, convert_hex)
246 (convert_escape, parse_one_string): Constify.
247
25f4c262
KS
2482020-11-13 Keith Seitz <keiths@redhat.com>
249
250 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
251 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
252 outside of ELF segments" warning for debugin
253
9d3ab915
KS
2542020-11-13 Keith Seitz <keiths@redhat.com>
255
256 PR gdb/23034
257 * elfread.c (elf_symfile_segments): Output a BFD file name
258 for the "Loadable section ... outside of ELF segments" warning.
259
9ecab40c
SM
2602020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
261
262 PR gdb/26835
263 * arm-tdep.c (class arm_instruction_reader): New.
264 (target_arm_instruction_reader): New.
265 (arm_analyze_prologue): Add instruction reader parameter and use
266 it. Use arm_expand_immediate.
267 (class target_arm_instruction_reader): Adjust.
268 (arm_skip_prologue): Adjust.
269 (arm_expand_immediate): New.
270 (arm_scan_prologue): Adjust.
271 (arm_analyze_prologue_test): New.
272 (class test_arm_instruction_reader): New.
273
5a7cf527
AB
2742020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
275
276 * f-lang.c (fortran_argument_convert): Add declaration. Add
277 header comment, taken from f-lang.h. Make static.
278 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
279 (fortran_argument_convert): Delete declaration.
280
7bea47f0
AB
2812020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
282
283 * ada-exp.y (find_primitive_type): Make parameter const.
284 * ada-lang.c (enum ada_primitive_types): Delete.
285 (ada_language::language_arch_info): Update.
286 * c-lang.c (enum c_primitive_types): Delete.
287 (c_language_arch_info): Update.
288 (enum cplus_primitive_types): Delete.
289 (cplus_language::language_arch_info): Update.
290 * d-lang.c (enum d_primitive_types): Delete.
291 (d_language::language_arch_info): Update.
292 * f-lang.c (enum f_primitive_types): Delete.
293 (f_language::language_arch_info): Update.
294 * go-lang.c (enum go_primitive_types): Delete.
295 (go_language::language_arch_info): Update.
296 * language.c (auto_or_unknown_language::language_arch_info):
297 Update.
298 (language_gdbarch_post_init): Use obstack_new, use array indexing.
299 (language_string_char_type): Add header comment, call function in
300 language_arch_info.
301 (language_bool_type): Likewise
302 (language_arch_info::bool_type): Define.
303 (language_lookup_primitive_type_1): Delete.
304 (language_lookup_primitive_type): Rewrite as a templated function
305 to call function in language_arch_info, then instantiate twice.
306 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
307 (language_arch_info::lookup_primitive_type_and_symbol): Define.
308 (language_arch_info::lookup_primitive_type): Define twice with
309 different signatures.
310 (language_arch_info::lookup_primitive_type_as_symbol): Define.
311 (language_lookup_primitive_type_as_symbol): Rewrite to call a
312 member function in language_arch_info.
313 * language.h (language_arch_info): Complete rewrite.
314 (language_lookup_primitive_type): Make templated.
315 * m2-lang.c (enum m2_primitive_types): Delete.
316 (m2_language::language_arch_info): Update.
317 * opencl-lang.c (OCL_P_TYPE): Delete.
318 (enum opencl_primitive_types): Delete.
319 (opencl_type_data): Delete.
320 (builtin_opencl_type): Delete.
321 (lookup_opencl_vector_type): Update.
322 (opencl_language::language_arch_info): Update, lots of content
323 moved from...
324 (build_opencl_types): ...here. This function is now deleted.
325 (_initialize_opencl_language): Delete.
326 * p-lang.c (enum pascal_primitive_types): Delete.
327 (pascal_language::language_arch_info): Update.
328 * rust-lang.c (enum rust_primitive_types): Delete.
329 (rust_language::language_arch_info): Update.
330
bf6e5d01
SM
3312020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
332
333 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
334 dwarf2_queue_guard.
335
1350c3b4
SM
3362020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
339 comment.
340
6f738b01
SM
3412020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
342
343 * dwarf2/read.c (dwarf_read_debug_printf,
344 dwarf_read_debug_printf_v): New macros, use throughout the file.
345
10c19fad
SV
3462020-11-12 Shahab Vahedi <shahab@synopsys.com>
347
348 * arc-linux-tdep.c (collect_register): Populate "eret" by
349 "pc" value from the regcache when asked for "pc" value.
350
1f2624a3
TT
3512020-11-12 Tom Tromey <tom@tromey.com>
352
353 PR rust/26799:
354 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
355 exist.
356
ab33b152
AB
3572020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
358
359 * features/Makefile (XMLTOC): Add rx.xml.
360 (FEATURE_XMLFILES): Remove rx.xml.
361 (FEATURE_CFILES rule): Pass '-single-feature' flag.
362 * features/rx.c: Regenerate.
363 * features/rx.xml: Wrap in `target` tags, and reindent.
364 * target-descriptions.c (struct maint_print_c_tdesc_options): New
365 structure.
366 (maint_print_c_tdesc_opt_def): New typedef.
367 (maint_print_c_tdesc_opt_defs): New static global.
368 (make_maint_print_c_tdesc_options_def_group): New function.
369 (maint_print_c_tdesc_cmd): Make use of command line flags, only
370 print single feature C file for target descriptions containing a
371 single feature.
372 (maint_print_c_tdesc_cmd_completer): New function.
373 (_initialize_target_descriptions): Update call to register command
374 completer, and include command line flag in help text.
375
550820e1
AB
3762020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
377
378 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
379 numbers.
380 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
381 enum values.
382
baf20f76
TT
3832020-11-10 Tom Tromey <tom@tromey.com>
384
385 * value.h (internalvar_name): Update.
386 * value.c (internalvar_name): Make return type const.
387
caaece0e
TT
3882020-11-10 Tom Tromey <tom@tromey.com>
389
390 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
391 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
392 const.
393
8e20b4be
TT
3942020-11-10 Tom Tromey <tom@tromey.com>
395
396 * objc-lang.h (value_nsstring): Update.
397 * objc-lang.c (value_nsstring): Make "ptr" const.
398
86775fab
AB
3992020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
400
401 * expprint.c (print_subexp_funcall): Increment expression position
402 after reading argument count.
403 * f-lang.c (print_subexp_f): Skip over opcode before calling
404 common function.
405 (dump_subexp_body_f): Likewise.
406
3fed4c0b
RG
4072020-11-06 Romain Geissler <romain.geissler@amadeus.com>
408
409 PR python/26832
410 * configure: Regenerate.
411 * configure.ac: Check for python modules ctypes instead of
412 itertools.
413
ac3d4064
PA
4142020-11-06 Pedro Alves <pedro@palves.net>
415
416 * macroexp.c (struct macro_buffer): Split in two classes. Add
417 uses adjusted.
418 (struct shared_macro_buffer): New, factored out from struct
419 macro_buffer.
420 (struct growable_macro_buffer): New, factored out from struct
421 macro_buffer.
422 (set_token, get_comment, get_identifier, get_pp_number)
423 (get_character_constant, get_string_literal, get_punctuator)
424 (get_next_token_for_substitution): Constify parameters.
425 (substitute_args): Constify locals.
426
606decb2
TT
4272020-11-05 Tom Tromey <tom@tromey.com>
428
429 * dwarf2/read.c (read_cutu_die_from_dwo)
430 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
431 (build_type_psymtabs_1): Update.
432 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
433 parameter.
434 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
435 Don't read section. Add assert.
436
9c91c725
TT
4372020-11-04 Tom Tromey <tromey@adacore.com>
438
439 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
440
8d9fd3a1
TT
4412020-11-04 Tom Tromey <tromey@adacore.com>
442
443 * ada-typeprint.c (ada_print_type): Handle __T types.
444
d8f62e84
TT
4452020-11-04 Tom Tromey <tromey@adacore.com>
446
447 * dwarf2/read.c (add_partial_symbol, process_die):
448 Handle DW_TAG_array_type.
449 (is_type_tag_for_partial): Add "lang" parameter.
450 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
451
7ff5b937
TT
4522020-11-04 Tom Tromey <tromey@adacore.com>
453
454 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
455
10f6a3ad
TT
4562020-11-04 Tom Tromey <tromey@adacore.com>
457
458 * dwarf2/read.c (read_array_type): Only apply stride to innermost
459 array.
460
b72795a8
TT
4612020-11-04 Tom Tromey <tromey@adacore.com>
462
463 * gdbtypes.c (update_static_array_size): Handle bit stride.
464
24aa1b02
TT
4652020-11-04 Tom Tromey <tromey@adacore.com>
466
467 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
468
c9a28cbe
TT
4692020-11-04 Tom Tromey <tromey@adacore.com>
470
471 * ada-lang.c (ada_is_any_packed_array_type): New function.
472 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
473
57567375
TT
4742020-11-04 Tom Tromey <tromey@adacore.com>
475
476 * dwarf2/read.c (recognize_bound_expression)
477 (quirk_ada_thick_pointer): New functions.
478 (read_array_type): Call quirk_ada_thick_pointer.
479 (set_die_type): Add "skip_data_location" parameter.
480 (quirk_ada_thick_pointer): New function.
481 (process_structure_scope): Call quirk_ada_thick_pointer.
482 * ada-lang.c (ada_is_unconstrained_packed_array_type)
483 (decode_packed_array_bitsize): Handle thick pointers without
484 parallel types.
485 (ada_is_gnat_encoded_packed_array_type): Rename from
486 ada_is_packed_array_type.
487 (ada_is_constrained_packed_array_type): Update.
488 * ada-valprint.c (ada_val_print_gnat_array): Remove.
489 (ada_value_print_1): Use ada_get_decoded_value.
490
a7400e44
TT
4912020-11-04 Tom Tromey <tromey@adacore.com>
492
493 * ada-lang.c (recursively_update_array_bitsize): New function.
494 (decode_constrained_packed_array_type): Call it.
495
75fd6a26
TT
4962020-11-04 Tom Tromey <tromey@adacore.com>
497
498 * ada-lang.c (to_fixed_array_type): Error if
499 decode_constrained_packed_array_type returns NULL.
500
93f9561e
TT
5012020-11-04 Tom Tromey <tromey@adacore.com>
502
503 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
504
257e02d8
TT
5052020-11-02 Tom Tromey <tromey@adacore.com>
506
507 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
508 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
509 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
510 * amd64-ravenscar-thread.c: New file.
511 * amd64-ravenscar-thread.h: New file.
512 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
513 * configure.tgt (amd64_tobjs): Add ravenscar objects.
514
74d877e5
AB
5152020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
516
517 * main.c (execute_cmdargs): New function.
518 (captured_main_1): Make use of execute_cmdargs.
519
64aaad63
AB
5202020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
521
522 * NEWS: Mention changes to config file search path.
523 * main.c
524
5b3d3560
TT
5252020-11-02 Tom Tromey <tromey@adacore.com>
526
527 * python/python.c: Consolidate two HAVE_PYTHON blocks.
528 (python_GdbModuleDef): Move earlier. Now static.
529 (do_start_initialization): Consolidate some IS_PY3K blocks.
530
dda83cd7
SM
5312020-11-02 Simon Marchi <simon.marchi@efficios.com>
532
533 * aarch64-linux-tdep.c: Fix indentation.
534 * aarch64-ravenscar-thread.c: Fix indentation.
535 * aarch64-tdep.c: Fix indentation.
536 * aarch64-tdep.h: Fix indentation.
537 * ada-lang.c: Fix indentation.
538 * ada-lang.h: Fix indentation.
539 * ada-tasks.c: Fix indentation.
540 * ada-typeprint.c: Fix indentation.
541 * ada-valprint.c: Fix indentation.
542 * ada-varobj.c: Fix indentation.
543 * addrmap.c: Fix indentation.
544 * addrmap.h: Fix indentation.
545 * agent.c: Fix indentation.
546 * aix-thread.c: Fix indentation.
547 * alpha-bsd-nat.c: Fix indentation.
548 * alpha-linux-tdep.c: Fix indentation.
549 * alpha-mdebug-tdep.c: Fix indentation.
550 * alpha-nbsd-tdep.c: Fix indentation.
551 * alpha-obsd-tdep.c: Fix indentation.
552 * alpha-tdep.c: Fix indentation.
553 * amd64-bsd-nat.c: Fix indentation.
554 * amd64-darwin-tdep.c: Fix indentation.
555 * amd64-linux-nat.c: Fix indentation.
556 * amd64-linux-tdep.c: Fix indentation.
557 * amd64-nat.c: Fix indentation.
558 * amd64-obsd-tdep.c: Fix indentation.
559 * amd64-tdep.c: Fix indentation.
560 * amd64-windows-tdep.c: Fix indentation.
561 * annotate.c: Fix indentation.
562 * arc-tdep.c: Fix indentation.
563 * arch-utils.c: Fix indentation.
564 * arch/arm-get-next-pcs.c: Fix indentation.
565 * arch/arm.c: Fix indentation.
566 * arm-linux-nat.c: Fix indentation.
567 * arm-linux-tdep.c: Fix indentation.
568 * arm-nbsd-tdep.c: Fix indentation.
569 * arm-pikeos-tdep.c: Fix indentation.
570 * arm-tdep.c: Fix indentation.
571 * arm-tdep.h: Fix indentation.
572 * arm-wince-tdep.c: Fix indentation.
573 * auto-load.c: Fix indentation.
574 * auxv.c: Fix indentation.
575 * avr-tdep.c: Fix indentation.
576 * ax-gdb.c: Fix indentation.
577 * ax-general.c: Fix indentation.
578 * bfin-linux-tdep.c: Fix indentation.
579 * block.c: Fix indentation.
580 * block.h: Fix indentation.
581 * blockframe.c: Fix indentation.
582 * bpf-tdep.c: Fix indentation.
583 * break-catch-sig.c: Fix indentation.
584 * break-catch-syscall.c: Fix indentation.
585 * break-catch-throw.c: Fix indentation.
586 * breakpoint.c: Fix indentation.
587 * breakpoint.h: Fix indentation.
588 * bsd-uthread.c: Fix indentation.
589 * btrace.c: Fix indentation.
590 * build-id.c: Fix indentation.
591 * buildsym-legacy.h: Fix indentation.
592 * buildsym.c: Fix indentation.
593 * c-typeprint.c: Fix indentation.
594 * c-valprint.c: Fix indentation.
595 * c-varobj.c: Fix indentation.
596 * charset.c: Fix indentation.
597 * cli/cli-cmds.c: Fix indentation.
598 * cli/cli-decode.c: Fix indentation.
599 * cli/cli-decode.h: Fix indentation.
600 * cli/cli-script.c: Fix indentation.
601 * cli/cli-setshow.c: Fix indentation.
602 * coff-pe-read.c: Fix indentation.
603 * coffread.c: Fix indentation.
604 * compile/compile-cplus-types.c: Fix indentation.
605 * compile/compile-object-load.c: Fix indentation.
606 * compile/compile-object-run.c: Fix indentation.
607 * completer.c: Fix indentation.
608 * corefile.c: Fix indentation.
609 * corelow.c: Fix indentation.
610 * cp-abi.h: Fix indentation.
611 * cp-namespace.c: Fix indentation.
612 * cp-support.c: Fix indentation.
613 * cp-valprint.c: Fix indentation.
614 * cris-linux-tdep.c: Fix indentation.
615 * cris-tdep.c: Fix indentation.
616 * darwin-nat-info.c: Fix indentation.
617 * darwin-nat.c: Fix indentation.
618 * darwin-nat.h: Fix indentation.
619 * dbxread.c: Fix indentation.
620 * dcache.c: Fix indentation.
621 * disasm.c: Fix indentation.
622 * dtrace-probe.c: Fix indentation.
623 * dwarf2/abbrev.c: Fix indentation.
624 * dwarf2/attribute.c: Fix indentation.
625 * dwarf2/expr.c: Fix indentation.
626 * dwarf2/frame.c: Fix indentation.
627 * dwarf2/index-cache.c: Fix indentation.
628 * dwarf2/index-write.c: Fix indentation.
629 * dwarf2/line-header.c: Fix indentation.
630 * dwarf2/loc.c: Fix indentation.
631 * dwarf2/macro.c: Fix indentation.
632 * dwarf2/read.c: Fix indentation.
633 * dwarf2/read.h: Fix indentation.
634 * elfread.c: Fix indentation.
635 * eval.c: Fix indentation.
636 * event-top.c: Fix indentation.
637 * exec.c: Fix indentation.
638 * exec.h: Fix indentation.
639 * expprint.c: Fix indentation.
640 * f-lang.c: Fix indentation.
641 * f-typeprint.c: Fix indentation.
642 * f-valprint.c: Fix indentation.
643 * fbsd-nat.c: Fix indentation.
644 * fbsd-tdep.c: Fix indentation.
645 * findvar.c: Fix indentation.
646 * fork-child.c: Fix indentation.
647 * frame-unwind.c: Fix indentation.
648 * frame-unwind.h: Fix indentation.
649 * frame.c: Fix indentation.
650 * frv-linux-tdep.c: Fix indentation.
651 * frv-tdep.c: Fix indentation.
652 * frv-tdep.h: Fix indentation.
653 * ft32-tdep.c: Fix indentation.
654 * gcore.c: Fix indentation.
655 * gdb_bfd.c: Fix indentation.
656 * gdbarch.sh: Fix indentation.
657 * gdbarch.c: Re-generate
658 * gdbarch.h: Re-generate.
659 * gdbcore.h: Fix indentation.
660 * gdbthread.h: Fix indentation.
661 * gdbtypes.c: Fix indentation.
662 * gdbtypes.h: Fix indentation.
663 * glibc-tdep.c: Fix indentation.
664 * gnu-nat.c: Fix indentation.
665 * gnu-nat.h: Fix indentation.
666 * gnu-v2-abi.c: Fix indentation.
667 * gnu-v3-abi.c: Fix indentation.
668 * go32-nat.c: Fix indentation.
669 * guile/guile-internal.h: Fix indentation.
670 * guile/scm-cmd.c: Fix indentation.
671 * guile/scm-frame.c: Fix indentation.
672 * guile/scm-iterator.c: Fix indentation.
673 * guile/scm-math.c: Fix indentation.
674 * guile/scm-ports.c: Fix indentation.
675 * guile/scm-pretty-print.c: Fix indentation.
676 * guile/scm-value.c: Fix indentation.
677 * h8300-tdep.c: Fix indentation.
678 * hppa-linux-nat.c: Fix indentation.
679 * hppa-linux-tdep.c: Fix indentation.
680 * hppa-nbsd-nat.c: Fix indentation.
681 * hppa-nbsd-tdep.c: Fix indentation.
682 * hppa-obsd-nat.c: Fix indentation.
683 * hppa-tdep.c: Fix indentation.
684 * hppa-tdep.h: Fix indentation.
685 * i386-bsd-nat.c: Fix indentation.
686 * i386-darwin-nat.c: Fix indentation.
687 * i386-darwin-tdep.c: Fix indentation.
688 * i386-dicos-tdep.c: Fix indentation.
689 * i386-gnu-nat.c: Fix indentation.
690 * i386-linux-nat.c: Fix indentation.
691 * i386-linux-tdep.c: Fix indentation.
692 * i386-nto-tdep.c: Fix indentation.
693 * i386-obsd-tdep.c: Fix indentation.
694 * i386-sol2-nat.c: Fix indentation.
695 * i386-tdep.c: Fix indentation.
696 * i386-tdep.h: Fix indentation.
697 * i386-windows-tdep.c: Fix indentation.
698 * i387-tdep.c: Fix indentation.
699 * i387-tdep.h: Fix indentation.
700 * ia64-libunwind-tdep.c: Fix indentation.
701 * ia64-libunwind-tdep.h: Fix indentation.
702 * ia64-linux-nat.c: Fix indentation.
703 * ia64-linux-tdep.c: Fix indentation.
704 * ia64-tdep.c: Fix indentation.
705 * ia64-tdep.h: Fix indentation.
706 * ia64-vms-tdep.c: Fix indentation.
707 * infcall.c: Fix indentation.
708 * infcmd.c: Fix indentation.
709 * inferior.c: Fix indentation.
710 * infrun.c: Fix indentation.
711 * iq2000-tdep.c: Fix indentation.
712 * language.c: Fix indentation.
713 * linespec.c: Fix indentation.
714 * linux-fork.c: Fix indentation.
715 * linux-nat.c: Fix indentation.
716 * linux-tdep.c: Fix indentation.
717 * linux-thread-db.c: Fix indentation.
718 * lm32-tdep.c: Fix indentation.
719 * m2-lang.c: Fix indentation.
720 * m2-typeprint.c: Fix indentation.
721 * m2-valprint.c: Fix indentation.
722 * m32c-tdep.c: Fix indentation.
723 * m32r-linux-tdep.c: Fix indentation.
724 * m32r-tdep.c: Fix indentation.
725 * m68hc11-tdep.c: Fix indentation.
726 * m68k-bsd-nat.c: Fix indentation.
727 * m68k-linux-nat.c: Fix indentation.
728 * m68k-linux-tdep.c: Fix indentation.
729 * m68k-tdep.c: Fix indentation.
730 * machoread.c: Fix indentation.
731 * macrocmd.c: Fix indentation.
732 * macroexp.c: Fix indentation.
733 * macroscope.c: Fix indentation.
734 * macrotab.c: Fix indentation.
735 * macrotab.h: Fix indentation.
736 * main.c: Fix indentation.
737 * mdebugread.c: Fix indentation.
738 * mep-tdep.c: Fix indentation.
739 * mi/mi-cmd-catch.c: Fix indentation.
740 * mi/mi-cmd-disas.c: Fix indentation.
741 * mi/mi-cmd-env.c: Fix indentation.
742 * mi/mi-cmd-stack.c: Fix indentation.
743 * mi/mi-cmd-var.c: Fix indentation.
744 * mi/mi-cmds.c: Fix indentation.
745 * mi/mi-main.c: Fix indentation.
746 * mi/mi-parse.c: Fix indentation.
747 * microblaze-tdep.c: Fix indentation.
748 * minidebug.c: Fix indentation.
749 * minsyms.c: Fix indentation.
750 * mips-linux-nat.c: Fix indentation.
751 * mips-linux-tdep.c: Fix indentation.
752 * mips-nbsd-tdep.c: Fix indentation.
753 * mips-tdep.c: Fix indentation.
754 * mn10300-linux-tdep.c: Fix indentation.
755 * mn10300-tdep.c: Fix indentation.
756 * moxie-tdep.c: Fix indentation.
757 * msp430-tdep.c: Fix indentation.
758 * namespace.h: Fix indentation.
759 * nat/fork-inferior.c: Fix indentation.
760 * nat/gdb_ptrace.h: Fix indentation.
761 * nat/linux-namespaces.c: Fix indentation.
762 * nat/linux-osdata.c: Fix indentation.
763 * nat/netbsd-nat.c: Fix indentation.
764 * nat/x86-dregs.c: Fix indentation.
765 * nbsd-nat.c: Fix indentation.
766 * nbsd-tdep.c: Fix indentation.
767 * nios2-linux-tdep.c: Fix indentation.
768 * nios2-tdep.c: Fix indentation.
769 * nto-procfs.c: Fix indentation.
770 * nto-tdep.c: Fix indentation.
771 * objfiles.c: Fix indentation.
772 * objfiles.h: Fix indentation.
773 * opencl-lang.c: Fix indentation.
774 * or1k-tdep.c: Fix indentation.
775 * osabi.c: Fix indentation.
776 * osabi.h: Fix indentation.
777 * osdata.c: Fix indentation.
778 * p-lang.c: Fix indentation.
779 * p-typeprint.c: Fix indentation.
780 * p-valprint.c: Fix indentation.
781 * parse.c: Fix indentation.
782 * ppc-linux-nat.c: Fix indentation.
783 * ppc-linux-tdep.c: Fix indentation.
784 * ppc-nbsd-nat.c: Fix indentation.
785 * ppc-nbsd-tdep.c: Fix indentation.
786 * ppc-obsd-nat.c: Fix indentation.
787 * ppc-ravenscar-thread.c: Fix indentation.
788 * ppc-sysv-tdep.c: Fix indentation.
789 * ppc64-tdep.c: Fix indentation.
790 * printcmd.c: Fix indentation.
791 * proc-api.c: Fix indentation.
792 * producer.c: Fix indentation.
793 * producer.h: Fix indentation.
794 * prologue-value.c: Fix indentation.
795 * prologue-value.h: Fix indentation.
796 * psymtab.c: Fix indentation.
797 * python/py-arch.c: Fix indentation.
798 * python/py-bpevent.c: Fix indentation.
799 * python/py-event.c: Fix indentation.
800 * python/py-event.h: Fix indentation.
801 * python/py-finishbreakpoint.c: Fix indentation.
802 * python/py-frame.c: Fix indentation.
803 * python/py-framefilter.c: Fix indentation.
804 * python/py-inferior.c: Fix indentation.
805 * python/py-infthread.c: Fix indentation.
806 * python/py-objfile.c: Fix indentation.
807 * python/py-prettyprint.c: Fix indentation.
808 * python/py-registers.c: Fix indentation.
809 * python/py-signalevent.c: Fix indentation.
810 * python/py-stopevent.c: Fix indentation.
811 * python/py-stopevent.h: Fix indentation.
812 * python/py-threadevent.c: Fix indentation.
813 * python/py-tui.c: Fix indentation.
814 * python/py-unwind.c: Fix indentation.
815 * python/py-value.c: Fix indentation.
816 * python/py-xmethods.c: Fix indentation.
817 * python/python-internal.h: Fix indentation.
818 * python/python.c: Fix indentation.
819 * ravenscar-thread.c: Fix indentation.
820 * record-btrace.c: Fix indentation.
821 * record-full.c: Fix indentation.
822 * record.c: Fix indentation.
823 * reggroups.c: Fix indentation.
824 * regset.h: Fix indentation.
825 * remote-fileio.c: Fix indentation.
826 * remote.c: Fix indentation.
827 * reverse.c: Fix indentation.
828 * riscv-linux-tdep.c: Fix indentation.
829 * riscv-ravenscar-thread.c: Fix indentation.
830 * riscv-tdep.c: Fix indentation.
831 * rl78-tdep.c: Fix indentation.
832 * rs6000-aix-tdep.c: Fix indentation.
833 * rs6000-lynx178-tdep.c: Fix indentation.
834 * rs6000-nat.c: Fix indentation.
835 * rs6000-tdep.c: Fix indentation.
836 * rust-lang.c: Fix indentation.
837 * rx-tdep.c: Fix indentation.
838 * s12z-tdep.c: Fix indentation.
839 * s390-linux-tdep.c: Fix indentation.
840 * score-tdep.c: Fix indentation.
841 * ser-base.c: Fix indentation.
842 * ser-mingw.c: Fix indentation.
843 * ser-uds.c: Fix indentation.
844 * ser-unix.c: Fix indentation.
845 * serial.c: Fix indentation.
846 * sh-linux-tdep.c: Fix indentation.
847 * sh-nbsd-tdep.c: Fix indentation.
848 * sh-tdep.c: Fix indentation.
849 * skip.c: Fix indentation.
850 * sol-thread.c: Fix indentation.
851 * solib-aix.c: Fix indentation.
852 * solib-darwin.c: Fix indentation.
853 * solib-frv.c: Fix indentation.
854 * solib-svr4.c: Fix indentation.
855 * solib.c: Fix indentation.
856 * source.c: Fix indentation.
857 * sparc-linux-tdep.c: Fix indentation.
858 * sparc-nbsd-tdep.c: Fix indentation.
859 * sparc-obsd-tdep.c: Fix indentation.
860 * sparc-ravenscar-thread.c: Fix indentation.
861 * sparc-tdep.c: Fix indentation.
862 * sparc64-linux-tdep.c: Fix indentation.
863 * sparc64-nbsd-tdep.c: Fix indentation.
864 * sparc64-obsd-tdep.c: Fix indentation.
865 * sparc64-tdep.c: Fix indentation.
866 * stabsread.c: Fix indentation.
867 * stack.c: Fix indentation.
868 * stap-probe.c: Fix indentation.
869 * stubs/ia64vms-stub.c: Fix indentation.
870 * stubs/m32r-stub.c: Fix indentation.
871 * stubs/m68k-stub.c: Fix indentation.
872 * stubs/sh-stub.c: Fix indentation.
873 * stubs/sparc-stub.c: Fix indentation.
874 * symfile-mem.c: Fix indentation.
875 * symfile.c: Fix indentation.
876 * symfile.h: Fix indentation.
877 * symmisc.c: Fix indentation.
878 * symtab.c: Fix indentation.
879 * symtab.h: Fix indentation.
880 * target-float.c: Fix indentation.
881 * target.c: Fix indentation.
882 * target.h: Fix indentation.
883 * tic6x-tdep.c: Fix indentation.
884 * tilegx-linux-tdep.c: Fix indentation.
885 * tilegx-tdep.c: Fix indentation.
886 * top.c: Fix indentation.
887 * tracefile-tfile.c: Fix indentation.
888 * tracepoint.c: Fix indentation.
889 * tui/tui-disasm.c: Fix indentation.
890 * tui/tui-io.c: Fix indentation.
891 * tui/tui-regs.c: Fix indentation.
892 * tui/tui-stack.c: Fix indentation.
893 * tui/tui-win.c: Fix indentation.
894 * tui/tui-winsource.c: Fix indentation.
895 * tui/tui.c: Fix indentation.
896 * typeprint.c: Fix indentation.
897 * ui-out.h: Fix indentation.
898 * unittests/copy_bitwise-selftests.c: Fix indentation.
899 * unittests/memory-map-selftests.c: Fix indentation.
900 * utils.c: Fix indentation.
901 * v850-tdep.c: Fix indentation.
902 * valarith.c: Fix indentation.
903 * valops.c: Fix indentation.
904 * valprint.c: Fix indentation.
905 * valprint.h: Fix indentation.
906 * value.c: Fix indentation.
907 * value.h: Fix indentation.
908 * varobj.c: Fix indentation.
909 * vax-tdep.c: Fix indentation.
910 * windows-nat.c: Fix indentation.
911 * windows-tdep.c: Fix indentation.
912 * xcoffread.c: Fix indentation.
913 * xml-syscall.c: Fix indentation.
914 * xml-tdesc.c: Fix indentation.
915 * xstormy16-tdep.c: Fix indentation.
916 * xtensa-config.c: Fix indentation.
917 * xtensa-linux-nat.c: Fix indentation.
918 * xtensa-linux-tdep.c: Fix indentation.
919 * xtensa-tdep.c: Fix indentation.
920
e1f57067
AB
9212020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
922 Craig Blackmore <craig.blackmore@embecosm.com>
923
924 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
925 as an unsigned value.
926
ae7754b2
TT
9272020-11-01 Tom Tromey <tom@tromey.com>
928
929 * dbxread.c (dbx_end_psymtab): Update.
930 * dwarf2/read.c (process_psymtab_comp_unit_reader)
931 (build_type_psymtabs_reader): Update.
932 * xcoffread.c (xcoff_end_psymtab): Update.
933 * ctfread.c (scan_partial_symbols): Update.
934 * psymtab.c (sort_pst_symbols): Remove.
935 (partial_symtab::end): Rename from end_psymtab_common. Inline
936 sort_pst_symbols.
937 * psympriv.h (struct partial_symtab) <end>: New method.
938 (end_psymtab_common): Don't declare.
939
0684bb51
TT
9402020-11-01 Tom Tromey <tom@tromey.com>
941
942 * symmisc.c (count_psyms): New function.
943 (print_objfile_statistics): Use it.
944 * psymtab.c (append_psymbol_to_list): Remove.
945 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
946 * objfiles.h (struct objstats) <n_psyms>: Remove.
947
089002bb
TT
9482020-11-01 Tom Tromey <tom@tromey.com>
949
950 * dbxread.c (dbx_end_psymtab): Update.
951 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
952 (build_type_psymtabs_reader): Update.
953 * xcoffread.c (xcoff_end_psymtab): Update.
954 * ctfread.c (scan_partial_symbols): Update.
955 * psympriv.h (end_psymtab_common): Update.
956 * psymtab.c (end_psymtab_common): Remove objfile parameter.
957 (sort_pst_symbols): Likewise.
958
525454d6
TT
9592020-11-01 Tom Tromey <tom@tromey.com>
960
961 * dbxread.c (dbx_symfile_read): Update.
962 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
963 * xcoffread.c (xcoff_initial_scan): Update.
964 * psympriv.h (init_psymbol_list): Don't declare.
965 * psymtab.c (init_psymbol_list): Remove.
966
60bd1d53
JB
9672020-11-01 Joel Brobecker <brobecker@adacore.com>
968
969 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
970 gnat_encoded_fixed_type_info. Update all callers.
971
db99d0d0
JB
9722020-11-01 Joel Brobecker <brobecker@adacore.com>
973
974 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
975 line too long.
976
75f24e86
JB
9772020-11-01 Joel Brobecker <brobecker@adacore.com>
978
979 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
980 cast_from_fixed. Update all callers.
981 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
982 Update all callers.
983 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
984 Update all callers.
985 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
986 ada_scaling_factor.
987 * ada-typeprint.c: Replace call to ada_scaling_factor by call
988 to print_gnat_encoded_fixed_point_type.
989 * ada-valprint.c: Likewise.
990
4f0469cd
AB
9912020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
992
993 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
994 (debug_prefixed_printf): Add check of debug_displaced flag.
995 * linux-nat.c (linux_nat_debug_printf): Add check of
996 debug_linux_nat flag.
997
17417fb0
SM
9982020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
999
1000 * infrun.c (infrun_debug_printf_1): Remove.
1001 (displaced_debug_printf_1): Remove.
1002 (stop_all_threads): Use debug_prefixed_printf.
1003 * infrun.h (infrun_debug_printf_1): Remove.
1004 (infrun_debug_printf): Use debug_prefixed_printf.
1005 (displaced_debug_printf_1): Remove.
1006 (displaced_debug_printf): Use debug_prefixed_printf.
1007 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1008 (linux_nat_debug_printf): Use debug_prefixed_printf.
1009
ad6dba1c
SM
10102020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1011
1012 * configure: Re-generate.
1013 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1014 AC_LANG_PROGRAM.
1015
b6fb30ed
SM
10162020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1017
1018 * configure: Re-generate.
1019
5164c117
SM
10202020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1021
1022 * configure: Re-generate.
1023
864ca435
SM
10242020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1025
1026 * configure: Re-generate.
1027
b9442ec1
SM
10282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1029
1030 * configure: Re-generate.
1031
294f2697
SM
10322020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1033
1034 * acinclude.m4: Modernize.
1035 * configure: Re-generate.
1036
5593a99a
SM
10372020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1038
1039 * configure.ac: Modernize.
1040 * configure: Re-generate.
1041
e41fda1d
SM
10422020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1043
1044 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1045 * configure: Re-generate.
1046 * configure.ac: Remove AM_PROG_CC_STDC.
1047
91e1a0ed
SM
10482020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1049
1050 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1051 AC_CANONICAL_SYSTEM.
1052 * configure: Re-generate.
1053
136821d9
SM
10542020-10-30 Simon Marchi <simon.marchi@efficios.com>
1055
1056 * infrun.h (displaced_debug_printf): New macro. Replace
1057 displaced debug prints throughout to use it.
1058 (displaced_debug_printf_1): New declaration.
1059 (displaced_step_dump_bytes): Return string, remove ui_file
1060 parameter, update all callers.
1061 * infrun.c (displaced_debug_printf_1): New function.
1062 (displaced_step_dump_bytes): Return string, remove ui_file
1063 parameter
1064
aa2045e7
SM
10652020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1066
1067 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1068
b1ec2735
TT
10692020-10-30 Tom Tromey <tromey@adacore.com>
1070
1071 * Makefile.in (stamp-init): Depend on config.status.
1072
b78b3a29
TBA
10732020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1074
1075 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1076
d70bdd3c
PA
10772020-10-30 Pedro Alves <pedro@palves.net>
1078
1079 * thread.c (lookup_selected_frame): Move ...
1080 * frame.c (lookup_selected_frame): ... here.
1081
79952e69
PA
10822020-10-30 Pedro Alves <pedro@palves.net>
1083
1084 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1085 * frame.c
1086 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1087 Use save_selected_frame. Save language as well.
1088 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1089 Use restore_selected_frame, and restore language as well.
1090 (selected_frame_id, selected_frame_level): New.
1091 (selected_frame): Update comments.
1092 (save_selected_frame, restore_selected_frame): New.
1093 (get_selected_frame): Use lookup_selected_frame.
1094 (get_selected_frame_if_set): Delete.
1095 (select_frame): Record selected_frame_level and selected_frame_id.
1096 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1097 fields.
1098 (get_selected_frame): Make 'message' parameter optional.
1099 (get_selected_frame_if_set): Delete declaration.
1100 (select_frame): Update comments.
1101 (save_selected_frame, restore_selected_frame)
1102 (lookup_selected_frame): Declare.
1103 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1104 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1105 New field.
1106 (save_infcall_control_state): Use save_selected_frame.
1107 (restore_selected_frame): Delete.
1108 (restore_infcall_control_state): Use restore_selected_frame.
1109 * stack.c (select_frame_command_core, frame_command_core): Use
1110 get_selected_frame.
1111 * thread.c (restore_selected_frame): Rename to ...
1112 (lookup_selected_frame): ... this and make extern. Select the
1113 current frame if the frame level is -1.
1114 (scoped_restore_current_thread::restore): Also restore the
1115 language.
1116 (scoped_restore_current_thread::~scoped_restore_current_thread):
1117 Don't try/catch.
1118 (scoped_restore_current_thread::scoped_restore_current_thread):
1119 Save the language as well. Use save_selected_frame.
1120
58103c33
SM
11212020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1124 documentation.
1125 * gdbarch.h: Re-generate.
1126
40a53766
SM
11272020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1128
1129 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1130 parameter.
1131 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1132 Likewise.
1133 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1134 Likewise.
1135 * arch-utils.c (default_displaced_step_hw_singlestep):
1136 Likewise.
1137 * arch-utils.h (default_displaced_step_hw_singlestep):
1138 Likewise.
1139 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1140 Likewise.
1141 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1142 Likewise.
1143 * gdbarch.c: Re-generate.
1144 * gdbarch.h: Re-generate.
1145 * infrun.c (resume_1): Adjust.
1146
8407f91b
TT
11472020-10-29 Tom Tromey <tom@tromey.com>
1148
1149 * progspace.c (program_space::~program_space): Don't call
1150 exec_close.
1151
5008b3b2
TT
11522020-10-29 Tom Tromey <tom@tromey.com>
1153
1154 * exec.c (exec_target::close): Don't change current program
1155 space.
1156
d9eebde0
TT
11572020-10-29 Tom Tromey <tom@tromey.com>
1158
1159 * symfile.c (add_symbol_file_command): Update.
1160 * exec.c (program_space::add_target_sections): Rename.
1161 * symfile-mem.c (symbol_file_add_from_memory): Update.
1162 * progspace.h (struct program_space) <add_target_sections>:
1163 Declare new overload.
1164 * exec.h (add_target_sections_of_objfile): Don't declare.
1165
3769e227
TT
11662020-10-29 Tom Tromey <tom@tromey.com>
1167
1168 * solib.c (solib_map_sections): Update.
1169 * exec.c (program_space::add_target_sections): Now a method.
1170 (exec_file_attach): Update.
1171 * exec.h (add_target_sections): Don't declare.
1172 * progspace.h (struct program_space) <add_target_sections>:
1173 Declare.
1174
2a3f84af
TT
11752020-10-29 Tom Tromey <tom@tromey.com>
1176
1177 * progspace.h (struct program_space) <remove_target_sections>:
1178 Declare.
1179 * exec.c (program_space::remove_target_sections): Now a method.
1180 * exec.h (remove_target_sections): Don't declare.
1181
004eecfd
TT
11822020-10-29 Tom Tromey <tom@tromey.com>
1183
1184 * inferior.c (delete_inferior): Update.
1185 * progspace.c (program_space::empty): Rename from
1186 program_space_empty_p. Return bool.
1187 * progspace.h (struct program_space) <empty>: New method.
1188 (program_space_empty_p): Don't declare.
1189
e39fb971
TT
11902020-10-29 Tom Tromey <tom@tromey.com>
1191
1192 * progspace.c (program_space::~program_space): Don't call
1193 clear_program_space_solib_cache.
1194 (program_space::clear_solib_cache): Rename from
1195 clear_solib_cache.
1196 * solib.c (handle_solib_event): Update.
1197 * progspace.h (struct program_space) <clear_solib_cache>: New
1198 method.
1199 (clear_program_space_solib_cache): Don't declare.
1200
a42d7dd8
TT
12012020-10-29 Tom Tromey <tom@tromey.com>
1202
1203 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1204 * target.c (info_target_command): Update.
1205 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1206 (symbol_file_clear, reread_symbols): Update.
1207 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1208 * stabsread.c (scan_file_globals): Update.
1209 * solib.c (update_solib_list): Update.
1210 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1211 (svr4_fetch_objfile_link_map, enable_break)
1212 (svr4_relocate_main_executable)
1213 (svr4_iterate_over_objfiles_in_search_order): Update.
1214 * solib-frv.c (lm_base, enable_break)
1215 (frv_relocate_main_executable): Update.
1216 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1217 (frv_fetch_objfile_link_map): Update.
1218 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1219 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1220 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1221 * remote.c (remote_target::get_offsets): Update.
1222 (remote_target::start_remote)
1223 (extended_remote_target::post_attach): Update.
1224 * objfiles.c (entry_point_address_query): Update.
1225 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1226 * minsyms.c (get_symbol_leading_char): Update.
1227 * frame.c (inside_main_func): Update.
1228 * progspace.h (symfile_objfile): Remove macro.
1229
19f6550e
TT
12302020-10-29 Tom Tromey <tom@tromey.com>
1231
1232 * exec.c (exec_file_attach): Update.
1233 * progspace.c (program_space::exec_close): Update.
1234 * progspace.h (struct program_space) <ebfd>: Now a
1235 gdb_bfd_ref_ptr.
1236 <set_exec_bfd>: Change argument type.
1237 <exec_bfd>: Update.
1238
7e10abd1
TT
12392020-10-29 Tom Tromey <tom@tromey.com>
1240
1241 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1242 * symfile.c (reread_symbols): Update.
1243 * symfile-mem.c (add_symbol_file_from_memory_command)
1244 (add_vsyscall_page): Update.
1245 * source-cache.c (source_cache::get_plain_source_lines): Update.
1246 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1247 (svr4_current_sos_direct, svr4_exec_displacement)
1248 (svr4_relocate_main_executable): Update.
1249 (svr4_iterate_over_objfiles_in_search_order): Update.
1250 * solib-frv.c (enable_break2, enable_break): Update.
1251 * solib-dsbt.c (lm_base, enable_break): Update.
1252 * solib-darwin.c (find_program_interpreter)
1253 (darwin_solib_create_inferior_hook): Update.
1254 * sol-thread.c (rw_common, ps_pdmodel): Update.
1255 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1256 * remote.c (compare_sections_command)
1257 (remote_target::trace_set_readonly_regions): Update.
1258 * remote-sim.c (get_sim_inferior_data)
1259 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1260 (gdbsim_target_open, gdbsim_target::files_info): Update.
1261 * exec.h (exec_bfd): Remove macro.
1262 * progspace.c (initialize_progspace): Update.
1263 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1264 Update.
1265 * nto-procfs.c (nto_procfs_target::post_attach)
1266 (nto_procfs_target::create_inferior): Update.
1267 * maint.c (maintenance_info_sections): Update.
1268 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1269 Update.
1270 * infcmd.c (post_create_inferior): Update.
1271 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1272 (objfile_find_memory_regions): Update.
1273 * exec.c (validate_exec_file, exec_file_attach)
1274 (exec_read_partial_read_only, print_section_info): Update.
1275 * corelow.c (core_target_open): Update.
1276 * corefile.c (reopen_exec_file, validate_files): Update.
1277 * arm-tdep.c (gdb_print_insn_arm): Update.
1278 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1279 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1280 methods.
1281
b55221ab
TT
12822020-10-29 Tom Tromey <tom@tromey.com>
1283
1284 * progspace.h (current_target_sections): Remove macro.
1285 * solib-svr4.c (scan_dyntag): Update.
1286 * solib-dsbt.c (scan_dyntag): Update.
1287 * exec.c (exec_target::close): Update.
1288 (add_target_sections, add_target_sections_of_objfile)
1289 (remove_target_sections, exec_target::get_section_table)
1290 (exec_target::files_info, set_section_command)
1291 (exec_set_section_address, exec_target::has_memory)
1292 (exec_target::has_memory): Update.
1293
5a36e715
TT
12942020-10-29 Tom Tromey <tom@tromey.com>
1295
1296 * source-cache.c (source_cache::get_plain_source_lines): Use
1297 current_program_space.
1298 * corefile.c (reopen_exec_file): Use current_program_space.
1299 * exec.c (exec_file_attach): Use current_program_space.
1300 * exec.h (exec_bfd_mtime): Remove.
1301
784c8592
TT
13022020-10-29 Tom Tromey <tom@tromey.com>
1303
1304 * gcore.c (default_gcore_mach): Remove.
1305 (create_gcore_bfd): Update.
1306
8a4f1402
TT
13072020-10-29 Tom Tromey <tom@tromey.com>
1308
1309 * progspace.c (program_space::exec_close): New method, from
1310 exec_close in exec.c.
1311 * exec.c (exec_close): Move to progspace.c.
1312 (exec_target::close, exec_file_attach): Update.
1313 * progspace.h (struct program_space) <exec_close>: Declare
1314 method.
1315
c20cb686
TT
13162020-10-29 Tom Tromey <tom@tromey.com>
1317
1318 * progspace.h (struct program_space) <exec_filename>: Rename from
1319 pspace_exec_filename. Now a unique_xmalloc_ptr.
1320 * inferior.c (print_selected_inferior): Update.
1321 (print_inferior): Update.
1322 * mi/mi-main.c (print_one_inferior): Update.
1323 * exec.h (exec_filename): Remove macro.
1324 * corefile.c (get_exec_file): Update.
1325 * exec.c (exec_close): Update.
1326 (exec_file_attach): Update.
1327 * progspace.c (clone_program_space): Update.
1328 (print_program_space): Update.
1329
6be2a9ab
TT
13302020-10-29 Tom Tromey <tom@tromey.com>
1331
1332 * target-section.h (struct target_section): Add constructor.
1333 * exec.c (build_section_table, add_target_sections_of_objfile):
1334 Update.
1335 * corelow.c (core_target::build_file_mappings): Update.
1336
cfaa8f76
TBA
13372020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1338
1339 PR gdb/19318
1340 * inferior.c (detach_inferior_command): Restore the current thread.
1341 (kill_inferior_command): Ditto.
1342
1b00ef06
TV
13432020-10-28 Tom de Vries <tdevries@suse.de>
1344
1345 PR symtab/26772
1346 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1347 map, check it in the "best match" loop.
1348
7f40ce1a
SM
13492020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1350
1351 * m32c-tdep.c: Remove unused includes.
1352
5eb9e3f5
SM
13532020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1354
1355 * xtensa-tdep.c: Remove includes.
1356
b1d4d8d1
TBA
13572020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1358
1359 * breakpoint.c (struct condition_command_opts): New struct.
1360 (condition_command_option_defs): New static global.
1361 (make_condition_command_options_def_group): New function.
1362 (condition_completer): Update to consider the '-force' flag.
1363 (condition_command): Use gdb::option for the '-force' flag.
1364
bd24c5d6
TV
13652020-10-27 Tom de Vries <tdevries@suse.de>
1366
1367 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1368 symbols in section check.
1369
61eb46a4
TV
13702020-10-27 Tom de Vries <tdevries@suse.de>
1371
1372 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1373
733d554a
TBA
13742020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1375
1376 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1377 * breakpoint.c: Update the help text of the 'condition' and 'break'
1378 commands.
1379 (set_breakpoint_condition): Take a new bool parameter
1380 to control whether condition definition should be forced even when
1381 the condition expression is invalid in all of the current locations.
1382 (condition_command): Update the call to 'set_breakpoint_condition'.
1383 (find_condition_and_thread): Take the "-force-condition" flag into
1384 account.
1385 * linespec.c (linespec_keywords): Add "-force-condition" as an
1386 element.
1387 (FORCE_KEYWORD_INDEX): New #define.
1388 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1389 as a keyword.
1390 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1391 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1392 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1393 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1394
b5fa468f
TBA
13952020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1396
1397 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1398 * breakpoint.c (set_breakpoint_location_condition): New function.
1399 (set_breakpoint_condition): Disable a breakpoint location if parsing
1400 the condition string gives an error.
1401 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1402 (build_target_condition_list): Ditto.
1403 (build_target_command_list): Ditto.
1404 (build_bpstat_chain): Ditto.
1405 (print_one_breakpoint_location): Ditto.
1406 (print_one_breakpoint): Ditto.
1407 (breakpoint_1): Ditto.
1408 (bp_location::bp_location): Ditto.
1409 (locations_are_equal): Ditto.
1410 (update_breakpoint_locations): Ditto.
1411 (enable_disable_bp_num_loc): Ditto.
1412 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1413 (find_condition_and_thread_for_sals): New static function.
1414 (create_breakpoint): Call find_condition_and_thread_for_sals.
1415 (location_to_sals): Call find_condition_and_thread_for_sals instead
1416 of find_condition_and_thread.
1417
1c47ec3e
TV
14182020-10-26 Tom de Vries <tdevries@suse.de>
1419
1420 * dwarf2/read.c (process_full_comp_unit): Call
1421 dwarf2_find_base_address.
1422
6390859c
TT
14232020-10-26 Tom Tromey <tromey@adacore.com>
1424
1425 * gdbtypes.c (create_range_type): Revert previous patch. Add
1426 comment.
1427
d744f0f9
PA
14282020-10-26 Pedro Alves <pedro@palves.net>
1429
1430 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1431 (my_waitpid): Use gdb::handle_eintr.
1432
006811bc
SM
14332020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1434
1435 * acinclude.m4: Update ptrace.m4 path.
1436 * ptrace.m4: Moved to gdbsupport.
1437
c75e31a1
SM
14382020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1439
1440 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1441 instead of target_gdbarch.
1442
32495661
SM
14432020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1444
1445 * jit.c (jit_reader_load_command): Pass current inferior.
1446 (jit_inferior_init): Change parameter type to inferior, use it.
1447 (jit_inferior_created): Remove.
1448 (jit_inferior_created_hook): Pass inferior parameter down.
1449 (_initialize_jit): Use jit_inferior_created_hook instead of
1450 jit_inferior_created.
1451 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1452 * infrun.c (follow_exec): Pass inferior to
1453 jit_inferior_created_hook.
1454
3f66685e
SM
14552020-10-24 Simon Marchi <simon.marchi@efficios.com>
1456
1457 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1458 parameter and use it.
1459 (thread_db_inferior_created): Pass inferior argument.
1460
a0ff652f
SM
14612020-10-24 Simon Marchi <simon.marchi@efficios.com>
1462
1463 * aix-thread.c (aix_thread_inferior_created): Add inferior
1464 parameter.
1465 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1466 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1467 * jit.c (jit_inferior_created): Likewise.
1468 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1469 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1470 * observable.h (inferior_created): Likewise.
1471 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1472 * symfile-mem.c (add_vsyscall_page): Likewise.
1473 * infcmd.c (post_create_inferior): Pass inferior argument.
1474
3c67532c
JB
14752020-10-24 Joel Brobecker <brobecker@adacore.com>
1476
1477 GDB 10.1 released.
1478
8747316e
JB
14792020-10-23 Joel Brobecker <brobecker@adacore.com>
1480
1481 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1482 to ada_check_typedef.
1483
1a0ea399
AB
14842020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1485
1486 * f-exp.y (f_parse): Rename to...
1487 (f_language::parser): ...this.
1488 * f-lang.c (f_get_encoding): Rename to...
1489 (f_language::get_encoding): ...this.
1490 (f_op_print_tab): Rename to...
1491 (f_language::op_print_tab): ...this.
1492 (exp_descriptor_f): Rename to...
1493 (f_language::exp_descriptor_tab): ...this.
1494 (class f_language): Moved to f-lang.h.
1495 (f_language::language_arch_info): New function, moved out of class
1496 declaration.
1497 (f_language::search_name_hash): Likewise.
1498 (f_language::lookup_symbol_nonlocal): Likewise.
1499 (f_language::get_symbol_name_matcher_inner): Likewise.
1500 * f-lang.h: Add 'valprint.h' include.
1501 (class f_language): Moved here from f-lang.c.
1502 * f-typeprint.c (f_type_print_args): Delete commented out
1503 declaration.
1504 (f_print_typedef): Rename to...
1505 (f_language::print_typedef): ...this.
1506 (f_print_type): Rename to...
1507 (f_language::print_type): ...this.
1508 (f_type_print_varspec_prefix): Delete declaration and rename to...
1509 (f_language::f_type_print_varspec_prefix): ...this.
1510 (f_type_print_varspec_suffix): Delete declaration and rename to...
1511 (f_language::f_type_print_varspec_suffix): ...this.
1512 (f_type_print_base): Delete declaration and rename to...
1513 (f_language::f_type_print_base): ...this.
1514 * f-valprint.c (f_value_print_inner): Rename to...
1515 (f_language::value_print_inner): ...this.
1516 * parse.c: Delete 'f-lang.h' include.
1517
88cefd9b
AB
15182020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1519
1520 * language.h (language_defn::print_type): Add variable names in
1521 declaration, and update header comment.
1522
5399db93
AB
15232020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1524
1525 * ada-lang.c (ada_language::demangle): Rename to...
1526 (ada_language::demangle_symbol): ...this.
1527 * c-lang.c (cplus_language::demangle): Rename to...
1528 (cplus_language::demangle_symbol): ...this.
1529 * d-lang.c (d_language::demangle): Rename to...
1530 (d_language::demangle_symbol): ...this.
1531 * f-lang.c (f_language::demangle): Rename to...
1532 (f_language::demangle_symbol): ...this.
1533 * go-lang.c (go_language::demangle): Rename to...
1534 (go_language::demangle_symbol): ...this.
1535 * language.c (language_demangle): Update call to demangle_symbol.
1536 (auto_or_unknown_language::demangle): Rename to...
1537 (auto_or_unknown_language::demangle_symbol): ...this.
1538 * language.h (language_defn::demangle): Rename to...
1539 (language_defn::demangle_symbol): ...this.
1540 * objc-lang.c (objc_language::demangle): Rename to...
1541 (objc_language::demangle_symbol): ...this.
1542 * rust-lang.c (rust_language::demangle): Rename to...
1543 (rust_language::demangle_symbol): ...this.
1544
4b2f86ef
AB
15452020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1546
1547 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1548 (iterate_over_file_blocks): Replace use of macro with the macros
1549 definition.
1550
e74b39de
AB
15512020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1552
1553 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1554 * valprint.c (maybe_print_array_index): Replace use of macro with
1555 the macros definition.
1556
00c696a6
AB
15572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1558
1559 * ada-lang.c (ada_language::print_array_index): Call value_print
1560 directly.
1561 * language.c (language_defn::print_array_index): Likewise.
1562 * language.h (LA_VALUE_PRINT): Delete.
1563 * valprint.c (value_print): Call value_print on the
1564 current_language directly.
1565
d3b67c56
AB
15662020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1567
1568 * language.h (LA_PRINT_TYPEDEF): Delete.
1569 * typeprint.c (typedef_print): Call print_typedef directly on the
1570 current_language object.
1571
790e2a12
AB
15722020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1573
1574 * m2-exp.y (m2_parse): Rename to...
1575 (m2_language::parser): ...this. Update function signature.
1576 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1577 (m2_op_print): Rename to...
1578 (m2_language::op_print_tab): ...this, and make const.
1579 (exp_descriptor_modula2): Rename to...
1580 (m2_language::exp_descriptor_modula2): ...this.
1581 (class m2_language): Move to m2-lang.h.
1582 (m2_language::language_arch_info): New function, moved out of
1583 class declaration.
1584 (m2_language::printchar): New function, body from m2_printchar.
1585 (m2_language::printstr): New function, moved out of class
1586 declaration.
1587 (m2_language::emitchar): Likewise.
1588 * m2-lang.h (m2_parse): Delete declaration.
1589 (m2_print_typedef): Delete declaration.
1590 (m2_value_print_inner): Delete declaration.
1591 (class m2_language): Class declaration moved from m2-lang.c,
1592 larger functions are left in m2-lang.c.
1593 * m2-typeprint.c (m2_print_typedef): Rename to...
1594 (m2_language::print_typedef): ...this, and update function
1595 signature.
1596 * m2-valprint.c (m2_value_print_inner): Rename to...
1597 (m2_language::value_print_inner): ...this, replace use of
1598 LA_PRINT_STRING with a direct call to printstr member function,
1599 and update recursive call.
1600
b01175fc
AB
16012020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1602
1603 * language.c (default_is_string_type_p): Delete, implementation
1604 moved into auto_or_unknown_language::is_string_type_p.
1605 (unk_op_print_tab): Moved into
1606 auto_or_unknown_language::opcode_print_table.
1607 (unknown_language_arch_info): Delete, implementation moved into
1608 auto_or_unknown_language::language_arch_info.
1609 (class auto_or_unknown_language): New class, member functions
1610 copied from unknown_language class, with some updates.
1611 (class unknown_language): Most member functions moved into
1612 auto_or_unknown_language class. Inherit from
1613 auto_or_unknown_language class.
1614 (class auto_language): Inherit from auto_or_unknown_language.
1615 Delete most member functions.
1616
1a97fe8c
HD
16172020-10-22 Hannes Domani <ssbssa@yahoo.de>
1618
1619 * stabsread.c (read_member_functions): Remove gdb_assert.
1620
6b9d0dfd
HD
16212020-10-22 Hannes Domani <ssbssa@yahoo.de>
1622
1623 * gdbtypes.c (init_complex_type): Check target type name.
1624
4b4bb603
SM
16252020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1626
1627 * target-debug.h (target_debug_print_struct_target_ops_p):
1628 Remove.
1629 (target_debug_print_async_callback_ftype_p): Remove.
1630 (target_debug_print_struct_trace_state_variable_p): Remove.
1631 (target_debug_print_struct_traceframe_info_p): Remove.
1632 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1633 (target_debug_print_enum_btrace_format): Remove.
1634 (target_debug_print_enum_info_proc_what): Remove.
1635 (target_debug_print_thread_info_pp): Remove.
1636
24f5300a
SM
16372020-10-22 Simon Marchi <simon.marchi@efficios.com>
1638
1639 * target.h (struct target_ops) <make_corefile_notes>:
1640 Change return type to unique pointer.
1641 * target.c (dummy_make_corefile_notes): Likewise.
1642 * exec.c (struct exec_target) <make_corefile_notes>:
1643 Likewise.
1644 (exec_target::make_corefile_notes): Likewise.
1645 * procfs.c (class procfs_target) <make_corefile_notes>:
1646 Likewise.
1647 (procfs_do_thread_registers): Adjust to unique pointer.
1648 (struct procfs_corefile_thread_data): Add constructor.
1649 <note_data>: Change type to unique pointer.
1650 (procfs_corefile_thread_callback): Adjust to unique pointer.
1651 (procfs_target::make_corefile_notes): Change return type to
1652 unique pointer.
1653 * target-delegates.c: Re-generate.
1654 * gcore.c (write_gcore_file_1): Adjust.
1655 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1656 New.
1657
5fb4027f
TV
16582020-10-22 Tom de Vries <tdevries@suse.de>
1659
1660 * block.c (find_block_in_blockvector): Make sure the returned block
1661 contains pc.
1662
4a636814
SM
16632020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1664
1665 PR gdb/26693
1666 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1667 parameter.
1668 (load_cu): Pass existing CU.
1669 (process_imported_unit_die): Likewise.
1670 (follow_die_offset): Likewise.
1671
1bd57575
LM
16722020-10-22 Luis Machado <luis.machado@linaro.org>
1673
1674 * corelow.c (core_target::xfer_partial): Also check for an empty
1675 m_core_unavailable_mappings vector.
1676
6b4c676c
AB
16772020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1680 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1681 * f-exp.y (arglist): Allow for a series of subranges.
1682 (subrange): Add cases for subranges with strides.
1683 * f-lang.c (value_f90_subarray): Catch use of array strides and
1684 throw an error.
1685 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1686
f2d8e4c5
AB
16872020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1688
1689 * expprint.c (print_subexp_standard): Change enum range_type to
1690 range_flag and rename variables to match.
1691 (dump_subexp_body_standard): Likewise.
1692 * expression.h (enum range_type): Rename to...
1693 (enum range_flag): ...this.
1694 (range_types): Rename to...
1695 (range_flags): ...this.
1696 * f-lang.c (value_f90_subarray): Change enum range_type to
1697 range_flag and rename variables to match.
1698 * parse.c (operator_length_standard): Likewise.
1699 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1700 range_type to range_flag.
1701 * rust-lang.c (rust_evaluate_funcall): Likewise.
1702 (rust_range): Likewise.
1703 (rust_compute_range): Likewise.
1704 (rust_subscript): Likewise.
1705
2f1b18db
AB
17062020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1707
1708 * expprint.c (print_subexp_standard): Update to reflect changes to
1709 enum range_type.
1710 (dump_subexp_body_standard): Likewise.
1711 * expression.h (enum range_type): Convert to a bit field enum, and
1712 make the enum unsigned.
1713 * f-exp.y (subrange): Update to reflect changes to enum
1714 range_type.
1715 * f-lang.c (value_f90_subarray): Likewise.
1716 * parse.c (operator_length_standard): Likewise.
1717 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1718 * rust-lang.c (rust_range): Likewise.
1719 (rust_compute_range): Likewise.
1720 (rust_subscript): Likewise.
1721
a46d1843
SM
17222020-10-21 Simon Marchi <simon.marchi@efficios.com>
1723
1724 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1725 (displaced_step_in_progress): Fix comment.
1726
c21f37a8
SM
17272020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1728
1729 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1730 * gdbarch.c: Re-generate.
1731 * gdbarch.h: Re-generate.
1732 * gcore.c (write_gcore_file_1): Adjust.
1733 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1734 constructor.
1735 <note_data>: Change type to unique pointer.
1736 <abort_iteration>: Change type to bool.
1737 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1738 (fbsd_collect_thread_registers): Return void, adjust.
1739 (struct fbsd_corefile_thread_data): Add construtor.
1740 <note_data>: Change type to unique pointer.
1741 (fbsd_corefile_thread): Adjust.
1742 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1743 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1744 to unique pointer, adjust.
1745 (struct linux_collect_regset_section_cb_data): Add constructor.
1746 <note_data>: Change type to unique pointer.
1747 <abort_iteration>: Change type to bool.
1748 (linux_collect_thread_registers): Return void, adjust.
1749 (struct linux_corefile_thread_data): Add constructor.
1750 <note_data>: Change type to unique pointer.
1751 (linux_corefile_thread): Adjust.
1752 (linux_make_corefile_notes): Return unique pointer, adjust.
1753
07fbbd01
SM
17542020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1755
1756 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1757 * gdbarch.c: Re-generate.
1758 * gdbarch.h: Re-generate.
1759 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1760 bool.
1761 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1762 Likewise.
1763 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1764 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1765 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1766 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1767
39535193
SM
17682020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1769
1770 * gdbarch.sh: Make generated predicates return bool.
1771 * gdbarch.c: Re-generate.
1772 * gdbarch.h: Re-generate.
1773
ad523d01
TT
17742020-10-20 Tom Tromey <tom@tromey.com>
1775
1776 * varobj-iter.h (struct varobj_item): Remove typedef.
1777
c4464ade
SM
17782020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1779
1780 * infrun.c (currently_stepping): Change int to bool
1781 (maybe_software_singlestep): Likewise.
1782 (show_stop_on_solib_events): Likewise.
1783 (stepping_past_nonsteppable_watchpoint): Likewise.
1784 (displaced_step_in_progress_any_inferior): Likewise.
1785 (displaced_step_in_progress_thread): Likewise.
1786 (keep_going_stepped_thread): Likewise.
1787 (thread_still_needs_step_over): Likewise.
1788 (start_step_over): Likewise.
1789 (do_target_resume): Likewise.
1790 (resume_1): Likewise.
1791 (clear_proceed_status): Likewise.
1792 (thread_still_needs_step_over_bp): Likewise.
1793 (proceed): Likewise.
1794 (switch_back_to_stepped_thread): Likewise.
1795 (adjust_pc_after_break): Likewise.
1796 (stepped_in_from): Likewise.
1797 (handle_stop_requested): Likewise.
1798 (handle_syscall_event): Likewise.
1799 (handle_no_resumed): Likewise.
1800 (handle_inferior_event): Likewise.
1801 (finish_step_over): Likewise.
1802 (handle_signal_stop): Likewise.
1803 (process_event_stop_test): Likewise.
1804
2eb20436
SM
18052020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1806
1807 * infrun.c (get_displaced_stepping_state): Fix comment.
1808
e0c45ded
AS
18092020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1810
1811 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1812
22cc388e
TT
18132020-10-19 Tom Tromey <tromey@adacore.com>
1814
1815 PR tui/26719
1816 * tui/tui-winsource.h (struct tui_source_window_base)
1817 <refresh_window>: Rename from refresh_pad.
1818 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1819 Rename from refresh_pad.
1820 (tui_source_window_base::show_source_content)
1821 (tui_source_window_base::do_scroll_horizontal): Update.
1822
3c6eb4d4
TBA
18232020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1824
1825 * thread.c (_initialize_thread): Fine-tune the help text of
1826 'info threads'.
1827
26703721
TBA
18282020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1829
1830 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1831
61c26be8
MS
18322020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1833
1834 * breakpoint.c (handle_jit_event): Add an argument, change how
1835 `jit_event_handler` is called.
1836
932539d7
TT
18372020-10-17 Tom Tromey <tom@tromey.com>
1838
1839 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1840 (scan_xcoff_symtab): Update.
1841 * psymtab.h (class psymtab_storage) <global_psymbols,
1842 static_psymbols, current_global_psymbols,
1843 current_static_psymbols>: Remove.
1844 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1845 (match_partial_symbol, lookup_partial_symbol): Update.
1846 (print_partial_symbols): Change parameters.
1847 (dump_psymtab, recursively_search_psymtabs)
1848 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1849 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1850 (concat): Remove.
1851 (end_psymtab_common): Simplify.
1852 (append_psymbol_to_list): Change parameters.
1853 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1854 (init_psymbol_list): Simplify.
1855 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1856 * psympriv.h (struct partial_symtab) <empty>: New method.
1857 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1858 Remove.
1859 <global_psymbols, static_psymbols>: New members.
1860 <add_psymbol>: New methods.
1861 (add_psymbol_to_list): Don't declare.
1862 (psymbol_placement): Move earlier.
1863 * mdebugread.c (parse_partial_symbols): Update.
1864 (handle_psymbol_enumerators): Change parameters.
1865 (mdebug_expand_psymtab): Update.
1866 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1867 (add_partial_symbol): Update.
1868 * dwarf2/index-write.c (write_psymbols): Change parameters.
1869 (write_one_signatured_type): Update.
1870 (recursively_count_psymbols): Update.
1871 (recursively_write_psymbols): Update.
1872 (class debug_names) <recursively_write_psymbols>: Update.
1873 <write_psymbols>: Change parameters.
1874 <write_one_signatured_type>: Update.
1875 * dbxread.c (read_dbx_symtab): Update.
1876 (dbx_end_psymtab): Use partial_symtab::empty.
1877 * ctfread.c (struct ctf_context) <pst>: New member.
1878 (create_partial_symtab): Set it.
1879 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1880 (scan_partial_symbols): Use the psymtab's context. Update.
1881
cfabbd35
TT
18822020-10-17 Tom Tromey <tom@tromey.com>
1883
1884 * valprint.c (generic_value_print): Remove comment.
1885 * m2-valprint.c (m2_value_print_inner): Remove comment.
1886 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1887 type.
1888
520596f2
TV
18892020-10-17 Tom de Vries <tdevries@suse.de>
1890
1891 PR symtab/26317
1892 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1893 symbol main.
1894
76547ab3
TV
18952020-10-14 Tom de Vries <tdevries@suse.de>
1896
1897 PR gdb/26733
1898 * solib.c (solib_contains_address_p): Handle
1899 'solib->sections == nullptr'.
1900
d3a07122
SM
19012020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1902
1903 PR gdb/26642
1904 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1905 target can't do async.
1906 * target.c (target_wait): Assert that we don't pass
1907 TARGET_WNOHANG to a target that can't async.
1908
1b71cfcf
KR
19092020-10-13 Kamil Rytarowski <n54@gmx.com>
1910
1911 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1912 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1913 * alpha-bsd-nat.c: Adjust include.
1914 * alpha-bsd-tdep.h: Adjust comment.
1915 * alpha-nbsd-tdep.c: Rename to ...
1916 * alpha-netbsd-tdep.c: ... this, adjust include.
1917 * amd64-nbsd-nat.c: Rename to ...
1918 * amd64-netbsd-nat.c: ... this, adjust include.
1919 * amd64-nbsd-tdep.c: Rename to ...
1920 * amd64-netbsd-tdep.c: ... this, adjust include.
1921 * amd64-tdep.h: Adjust include.
1922 * arm-nbsd-nat.c: Rename to ...
1923 * arm-netbsd-nat.c: ... this, adjust include.
1924 * arm-nbsd-tdep.c: Rename to ...
1925 * arm-netbsd-tdep.c: ... this, adjust include.
1926 * arm-nbsd-tdep.h: Rename to ...
1927 * arm-netbsd-tdep.h: ... this, adjust include.
1928 * configure.nat: Adjust file lists.
1929 * configure.tgt: Likewise.
1930 * hppa-nbsd-nat.c: Rename to ...
1931 * hppa-netbsd-nat.c: ... this, adjust include.
1932 * hppa-nbsd-tdep.c: Rename to ...
1933 * hppa-netbsd-tdep.c: ... this, adjust include.
1934 * i386-nbsd-nat.c: Rename to ...
1935 * i386-netbsd-nat.c: ... this, adjust include.
1936 * i386-nbsd-tdep.c: Rename to ...
1937 * i386-netbsd-tdep.c: ... this, adjust include.
1938 * m68k-bsd-nat.c: Adjust include.
1939 * mips-nbsd-nat.c: Rename to ...
1940 * mips-netbsd-nat.c: ... this, adjust include.
1941 * mips-nbsd-tdep.c: Rename to ...
1942 * mips-netbsd-tdep.c: ... this, adjust include.
1943 * mips-nbsd-tdep.h: Rename to ...
1944 * mips-netbsd-tdep.h: ... this.
1945 * nbsd-nat.c: Rename to ...
1946 * netbsd-nat.c: ... this, adjust include.
1947 * nbsd-nat.h: Rename to ...
1948 * netbsd-nat.h: ... this, adjust include.
1949 * nbsd-tdep.c: Rename to ...
1950 * netbsd-tdep.c: ... this, adjust include.
1951 * nbsd-tdep.h: Rename to ...
1952 * netbsd-tdep.h: ... this.
1953 * ppc-nbsd-nat.c: Rename to ...
1954 * ppc-netbsd-nat.c: ... this, adjust include.
1955 * ppc-nbsd-tdep.c: Rename to ...
1956 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1957 * ppc-nbsd-tdep.h: Rename to ...
1958 * ppc-netbsd-tdep.h: ... this.
1959 * sh-nbsd-nat.c: Rename to ...
1960 * sh-netbsd-nat.c: ... this, adjust include.
1961 * sh-nbsd-tdep.c: Rename to ...
1962 * sh-netbsd-tdep.c: ... this, adjust include.
1963 * sparc-nbsd-nat.c: Rename to ...
1964 * sparc-netbsd-nat.c: ... this.
1965 * sparc-nbsd-tdep.c: Rename to ...
1966 * sparc-netbsd-tdep.c: ... this, adjust include.
1967 * sparc64-nbsd-nat.c: Rename to ...
1968 * sparc64-netbsd-nat.c: ... this.
1969 * sparc64-nbsd-tdep.c: Rename to ...
1970 * sparc64-netbsd-tdep.c: ... this, adjust include.
1971 * sparc64-tdep.h: Adjust comment.
1972 * vax-bsd-nat.c: Adjust include.
1973 * vax-nbsd-tdep.c: Rename to ...
1974 * vax-netbsd-tdep.c: ... this, adjust include.
1975
d7a78e5c
TT
19762020-10-12 Tom Tromey <tom@tromey.com>
1977
1978 * target.h (struct target_ops) <get_section_table>: Update.
1979 (target_get_section_table): Update.
1980 * target.c (target_get_section_table, target_section_by_addr)
1981 (memory_xfer_partial_1): Update.
1982 * target-section.h (target_section_table): Now an alias.
1983 * target-delegates.c: Rebuild.
1984 * target-debug.h (target_debug_print_target_section_table_p):
1985 Rename from target_debug_print_struct_target_section_table_p.
1986 * symfile.c (build_section_addr_info_from_section_table): Update.
1987 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1988 * solib-svr4.c (scan_dyntag): Update.
1989 * solib-dsbt.c (scan_dyntag): Update.
1990 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1991 Update.
1992 * record-full.c (record_full_core_target::xfer_partial): Update.
1993 * progspace.h (struct program_space) <target_sections>: Update.
1994 * exec.h (print_section_info): Update.
1995 * exec.c (exec_target::close, build_section_table)
1996 (add_target_sections, add_target_sections_of_objfile)
1997 (remove_target_sections, exec_on_vfork)
1998 (section_table_available_memory)
1999 (section_table_xfer_memory_partial)
2000 (exec_target::get_section_table, exec_target::xfer_partial)
2001 (print_section_info, set_section_command)
2002 (exec_set_section_address, exec_target::has_memory): Update.
2003 * corelow.c (core_target::build_file_mappings)
2004 (core_target::xfer_partial, core_target::info_proc_mappings)
2005 (core_target::info_proc_mappings): Update.
2006 * bfd-target.c (class target_bfd): Update
2007
eda214ce
TT
20082020-10-12 Tom Tromey <tom@tromey.com>
2009
2010 * progspace.c (program_space::~program_space): Don't call
2011 clear_section_table.
2012 * exec.h (clear_section_table): Don't declare.
2013 * exec.c (exec_target::close): Update.
2014 (clear_section_table): Remove.
2015
91840ee3
TT
20162020-10-12 Tom Tromey <tom@tromey.com>
2017
2018 * exec.c (add_target_sections_of_objfile): Simplify.
2019
2d128614
TT
20202020-10-12 Tom Tromey <tom@tromey.com>
2021
2022 * solib.c (solib_map_sections): Update.
2023 * record-full.c (record_full_core_open_1): Update.
2024 * exec.h (build_section_table): Return a target_section_table.
2025 * exec.c (exec_file_attach): Update.
2026 (build_section_table): Return a target_section_table.
2027 * corelow.c (core_target::core_target): Update.
2028 * bfd-target.c (target_bfd::target_bfd): Update.
2029
bb2a6777
TT
20302020-10-12 Tom Tromey <tom@tromey.com>
2031
2032 * target.c (target_section_by_addr, memory_xfer_partial_1):
2033 Update.
2034 * target-section.h (struct target_section_table): Use
2035 std::vector.
2036 * symfile.h (build_section_addr_info_from_section_table): Take a
2037 target_section_table.
2038 * symfile.c (build_section_addr_info_from_section_table): Take a
2039 target_section_table.
2040 * solist.h (struct so_list) <sections>: Change type.
2041 <sections_end>: Remove.
2042 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2043 (solib_contains_address_p): Update.
2044 * solib-svr4.c (scan_dyntag): Update.
2045 * solib-dsbt.c (scan_dyntag): Update.
2046 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2047 Update.
2048 * record-full.c (record_full_core_start, record_full_core_end):
2049 Remove.
2050 (record_full_core_sections): New global.
2051 (record_full_core_open_1, record_full_core_target::xfer_partial):
2052 Update.
2053 * exec.h (build_section_table, section_table_xfer_memory_partial)
2054 (add_target_sections): Take a target_section_table.
2055 * exec.c (exec_file_attach, clear_section_table): Update.
2056 (resize_section_table): Remove.
2057 (build_section_table, add_target_sections): Take a
2058 target_section_table.
2059 (add_target_sections_of_objfile, remove_target_sections)
2060 (exec_on_vfork): Update.
2061 (section_table_available_memory): Take a target_section_table.
2062 (section_table_read_available_memory): Update.
2063 (section_table_xfer_memory_partial): Take a target_section_table.
2064 (print_section_info, set_section_command)
2065 (exec_set_section_address, exec_target::has_memory): Update.
2066 * corelow.c (class core_target) <m_core_section_table,
2067 m_core_file_mappings>: Remove braces.
2068 <~core_target>: Remove.
2069 (core_target::core_target): Update.
2070 (core_target::~core_target): Remove.
2071 (core_target::build_file_mappings)
2072 (core_target::xfer_memory_via_mappings)
2073 (core_target::xfer_partial, core_target::info_proc_mappings):
2074 Update.
2075 * bfd-target.c (target_bfd::xfer_partial): Update.
2076 (target_bfd::target_bfd): Update.
2077 (target_bfd::~target_bfd): Remove.
2078
7b466b10
TT
20792020-10-12 Tom Tromey <tom@tromey.com>
2080
2081 * target.h (struct target_section, struct target_section_table):
2082 Move to target-section.h.
2083 * target-section.h: New file.
2084
87a37e5e
PA
20852020-10-12 Pedro Alves <pedro@palves.net>
2086
2087 PR exp/26602
2088 * valops.c (struct struct_field_searcher): New.
2089 (update_search_result): Rename to ...
2090 (struct_field_searcher::update_result): ... this. Simplify
2091 prototype. Record all found fields.
2092 (do_search_struct_field): Rename to ...
2093 (struct_field_searcher::search): ... this. Simplify prototype.
2094 Maintain stack of visited baseclass path. Call update_result for
2095 fields too. Keep searching fields in baseclasses instead of
2096 stopping at the first found field.
2097 (search_struct_field): Use struct_field_searcher. When looking
2098 for fields, report ambiguous access attempts.
2099
9370fd51
AB
21002020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2101
2102 * frame.c (inside_main_func): Check full symbols as well as
2103 minimal symbols.
2104
59c8a30b
JB
21052020-10-09 Joel Brobecker <brobecker@adacore.com>
2106
2107 * ada-lang.c (advance_wild_match): Rewrite the function's
2108 description. Change the type of target0, t0 and t1 to char.
2109
7c184d33
TT
21102020-10-09 Tom Tromey <tromey@adacore.com>
2111
2112 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2113
5c4258f4
TT
21142020-10-09 Tom Tromey <tromey@adacore.com>
2115
2116 * ada-lang.h (ada_encode): Return std::string.
2117 * ada-lang.c (ada_encode_1): Return std::string.
2118 (ada_encode): Likewise.
2119 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2120 Update.
2121 * ada-exp.y (block_lookup, write_var_or_type): Update.
2122
3d87245c
HD
21232020-10-09 Hannes Domani <ssbssa@yahoo.de>
2124
2125 PR exp/26714
2126 * printcmd.c (print_formatted): Handle void results as
2127 unformatted prints.
2128
bbb826f5
AB
21292020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2130
2131 * arch/aarch32.c (aarch32_create_target_description): Release the
2132 target_desc_up as late as possible.
2133 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2134 * arch/amd64.c (amd64_create_target_description): Likewise.
2135 * arch/arc.c (arc_create_target_description): Return a
2136 target_desc_up, don't release it.
2137 * arch/arc.h (arc_create_target_description): Update declaration.
2138 (arc_lookup_target_description): Move target_desc_up into the
2139 cache, and return a borrowed pointer.
2140 * arch/arm.c (arm_create_target_description): Release the
2141 target_desc_up as late as possible.
2142 * arch/i386.c (i386_create_target_description): Likewise.
2143 * arch/riscv.h (riscv_create_target_description): Update
2144 declaration to match definition.
2145 * arch/tic6x.c (tic6x_create_target_description): Release the
2146 target_desc_up as late as possible.
2147
361cb219
AB
21482020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2149
2150 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2151 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2152
f5c4b229
JV
21532020-10-09 Jan Vrany <jan.vrany@labware.com>
2154
2155 * source.c (directory_command): Notify observers that "directories"
2156 parameter has changed.
2157
b2701685
TT
21582020-10-08 Tom Tromey <tom@tromey.com>
2159
2160 * cli/cli-cmds.c (print_disassembly): Style function name and
2161 addresses. Add _() wrappers.
2162
ada508b6
SV
21632020-10-08 Shahab Vahedi <shahab@synopsys.com>
2164
2165 * NEWS: Mention ARC support in GDBserver.
2166
51a948fd
AB
21672020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * arch/aarch32.c (aarch32_create_target_description): Release
2170 unique_ptr returned from allocate_target_description.
2171 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2172 * arch/amd64.c (amd64_create_target_description): Likewise.
2173 * arch/arc.c (arc_create_target_description): Likewise.
2174 * arch/arm.c (arm_create_target_description): Likewise.
2175 * arch/i386.c (i386_create_target_description): Likewise.
2176 * arch/riscv.c (riscv_create_target_description): Update return
2177 type. Handle allocate_target_description returning a unique_ptr.
2178 (riscv_lookup_target_description): Update to handle unique_ptr.
2179 * arch/tic6x.c (tic6x_create_target_description): Release
2180 unique_ptr returned from allocate_target_description.
2181 * features/microblaze-with-stack-protect.c: Regenerate.
2182 * features/microblaze.c: Regenerate.
2183 * features/mips-dsp-linux.c: Regenerate.
2184 * features/mips-linux.c: Regenerate.
2185 * features/mips64-dsp-linux.c: Regenerate.
2186 * features/mips64-linux.c: Regenerate.
2187 * features/nds32.c: Regenerate.
2188 * features/nios2.c: Regenerate.
2189 * features/or1k.c: Regenerate.
2190 * features/rs6000/powerpc-32.c: Regenerate.
2191 * features/rs6000/powerpc-32l.c: Regenerate.
2192 * features/rs6000/powerpc-403.c: Regenerate.
2193 * features/rs6000/powerpc-403gc.c: Regenerate.
2194 * features/rs6000/powerpc-405.c: Regenerate.
2195 * features/rs6000/powerpc-505.c: Regenerate.
2196 * features/rs6000/powerpc-601.c: Regenerate.
2197 * features/rs6000/powerpc-602.c: Regenerate.
2198 * features/rs6000/powerpc-603.c: Regenerate.
2199 * features/rs6000/powerpc-604.c: Regenerate.
2200 * features/rs6000/powerpc-64.c: Regenerate.
2201 * features/rs6000/powerpc-64l.c: Regenerate.
2202 * features/rs6000/powerpc-7400.c: Regenerate.
2203 * features/rs6000/powerpc-750.c: Regenerate.
2204 * features/rs6000/powerpc-860.c: Regenerate.
2205 * features/rs6000/powerpc-altivec32.c: Regenerate.
2206 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2207 * features/rs6000/powerpc-altivec64.c: Regenerate.
2208 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2209 * features/rs6000/powerpc-e500.c: Regenerate.
2210 * features/rs6000/powerpc-e500l.c: Regenerate.
2211 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2212 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2213 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2214 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2215 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2216 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2217 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2218 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2219 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2220 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2221 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2222 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2223 * features/rs6000/powerpc-vsx32.c: Regenerate.
2224 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2225 * features/rs6000/powerpc-vsx64.c: Regenerate.
2226 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2227 * features/rs6000/rs6000.c: Regenerate.
2228 * features/rx.c: Regenerate.
2229 * features/s390-gs-linux64.c: Regenerate.
2230 * features/s390-linux32.c: Regenerate.
2231 * features/s390-linux32v1.c: Regenerate.
2232 * features/s390-linux32v2.c: Regenerate.
2233 * features/s390-linux64.c: Regenerate.
2234 * features/s390-linux64v1.c: Regenerate.
2235 * features/s390-linux64v2.c: Regenerate.
2236 * features/s390-te-linux64.c: Regenerate.
2237 * features/s390-tevx-linux64.c: Regenerate.
2238 * features/s390-vx-linux64.c: Regenerate.
2239 * features/s390x-gs-linux64.c: Regenerate.
2240 * features/s390x-linux64.c: Regenerate.
2241 * features/s390x-linux64v1.c: Regenerate.
2242 * features/s390x-linux64v2.c: Regenerate.
2243 * features/s390x-te-linux64.c: Regenerate.
2244 * features/s390x-tevx-linux64.c: Regenerate.
2245 * features/s390x-vx-linux64.c: Regenerate.
2246 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2247 from allocate_target_description.
2248 * target-descriptions.c (allocate_target_description): Update
2249 return type.
2250 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2251 allocate_target_description.
2252
485c47e5
TT
22532020-10-07 Tom Tromey <tromey@adacore.com>
2254
2255 * unittests/search-memory-selftests.c: New file.
2256 * Makefile.in (SELFTESTS_SRCS): Add
2257 unittests/search-memory-selftests.c.
2258
3a135a91
TT
22592020-10-07 Tom Tromey <tromey@adacore.com>
2260
2261 PR gdb/16930:
2262 * findcmd.c (_initialize_mem_search): Mention that the range is
2263 inclusive.
2264
4a72de73
TT
22652020-10-07 Tom Tromey <tromey@adacore.com>
2266
2267 * target.h (simple_search_memory): Don't declare.
2268 * target.c (simple_search_memory): Move to gdbsupport.
2269 (default_search_memory): Update.
2270 * remote.c (remote_target::search_memory): Update.
2271
a038ffd8
SM
22722020-10-07 Simon Marchi <simon.marchi@efficios.com>
2273
2274 * Makefile.in (COMPILE): Add CXXFLAGS.
2275 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2276 (check-headers): Add CXXFLAGS.
2277
cc463201
AK
22782020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2279
2280 * arc-linux-tdep.h: New file.
2281 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2282 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2283 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2284 arc_linux_gregset, arc_linux_v2_regset,
2285 arc_linux_iterate_over_regset_sections,
2286 arc_linux_core_read_description): Implement.
2287 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2288 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2289 (arc_gdbarch_features_create): Add.
2290 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2291
e4bd363f
SV
22922020-10-07 Shahab Vahedi <shahab@synopsys.com>
2293
2294 * arch/arc.h: Rename "arc_gdbarch_features" to
2295 "arc_arch_features".
2296 * arc-tdep.h: Likewise.
2297 * arc-tdep.c: Likewise.
2298
b68bef99
TBA
22992020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2300
2301 * infcmd.c (attach_command): Remove the redundant call to
2302 `clear_proceed_status`.
2303
4641551a
KR
23042020-10-07 Kamil Rytarowski <n54@gmx.com>
2305
2306 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2307
91e5e8db
KR
23082020-10-07 Kamil Rytarowski <n54@gmx.com>
2309
2310 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2311 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2312 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2313
64c03bdb
SM
23142020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2315
2316 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2317 (_initialize_break_catch_sig): Don't allocate array.
2318
31a8f60f
AB
23192020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * symtab.c (find_pc_line): Return unmapped addresses when the
2322 requested address is also unmapped.
2323
9e6dbd8b
SM
23242020-10-05 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2327 tui/tui-out.h.
2328
a1d217e8
SM
23292020-10-05 Simon Marchi <simon.marchi@efficios.com>
2330
2331 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2332 type::is_vector instead of TYPE_VECTOR.
2333
7d144117
SM
23342020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2335
2336 * auto-load.c (auto_load_objfile_script_1): Don't use
2337 debugfile_holder as temporary variable when stripping drive
2338 letter.
2339
cd096ec8
HD
23402020-10-05 Hannes Domani <ssbssa@yahoo.de>
2341
2342 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2343 Add TYPE_CODE_COMPLEX.
2344 (amd64_windows_return_value): Fix types returned via XMM0.
2345
b58e7f72
AH
23462020-10-05 Alan Hayward <alan.hayward@arm.com>
2347
2348 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2349 AArch64/ARM maintainers.
2350
8d378f27
SM
23512020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2352
2353 * NEWS: Mention set/show debug event-loop.
2354
d5519913
TT
23552020-10-02 Tom Tromey <tromey@adacore.com>
2356
2357 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2358 REG_EXTENDED.
2359
18b67edc
SM
23602020-10-02 Simon Marchi <simon.marchi@efficios.com>
2361
2362 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2363 * procfs.c (procfs_inferior_created): Remove.
2364 (_initialize_procfs): Don't register procfs_inferior_created.
2365
6b01403b
SM
23662020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2367
2368 * async-event.c (invoke_async_signal_handlers): Add debug
2369 print.
2370 (check_async_event_handlers): Likewise.
2371 * event-top.c (show_debug_event_loop): New function.
2372 (_initialize_event_top): Register "set debug event-loop"
2373 setting.
2374
ba988419
SM
23752020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2376
2377 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2378 * debug.h: Remove.
2379 * infrun.c: Include gdbsupport/common-debug.h.
2380 * linux-nat.c: Likewise.
2381
db20ebdf
SM
23822020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2383
2384 * async-event.h (create_async_signal_handler): Add name
2385 parameter.
2386 (create_async_event_handler): Likewise.
2387 * async-event.c (struct async_signal_handler) <name>: New field.
2388 (struct async_event_handler) <name>: New field.
2389 (create_async_signal_handler): Assign name.
2390 (create_async_event_handler): Assign name.
2391 * event-top.c (async_init_signals): Pass name when creating
2392 handler.
2393 * infrun.c (_initialize_infrun): Likewise.
2394 * record-btrace.c (record_btrace_push_target): Likewise.
2395 * record-full.c (record_full_open): Likewise.
2396 * remote-notif.c (remote_notif_state_allocate): Likewise.
2397 * remote.c (remote_target::open_1): Likewise.
2398 * tui/tui-win.c (tui_initialize_win): Likewise.
2399
2554f6f5
SM
24002020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2401
2402 * async-event.c (initialize_async_signal_handlers): Pass name to
2403 add_file_handler
2404 * event-top.c (ui_register_input_event_handler): Likewise.
2405 * linux-nat.c (linux_nat_target::async): Likewise.
2406 * run-on-main-thread.c (_initialize_run_on_main_thread):
2407 Likewise
2408 * ser-base.c (reschedule): Likewise.
2409 (ser_base_async): Likewise.
2410 * tui/tui-io.c: Likewise.
2411 * top.h (struct ui) <num>: New field.
2412 * top.c (highest_ui_num): New variable.
2413 (ui::ui): Initialize num.
2414
a7aba266
SM
24152020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2416
2417 * observable.h <inferior_created>: Remove parameters. Update all
2418 listeners.
2419 * inferior.h (post_create_inferior): Remove target parameter.
2420 Update all callers.
2421
048fde1e 24222020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2423
2424 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2425 and DW_MACRO_undef_strx.
2426 (dwarf_decode_macros): Likewise
2427 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2428 which is the value of DW_AT_str_offsets_base.
2429 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2430 str_offsets_base.
2431
064280be
KR
24322020-10-01 Kamil Rytarowski <n54@gmx.com>
2433
2434 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2435
6ff33035
KR
24362020-10-01 Kamil Rytarowski <n54@gmx.com>
2437
2438 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2439 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2440
1eb6eb79
KR
24412020-10-01 Kamil Rytarowski <n54@gmx.com>
2442
2443 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2444
95eb9e54
TV
24452020-09-30 Tom de Vries <tdevries@suse.de>
2446
2447 PR symtab/26683
2448 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2449
cae21f8e
TT
24502020-09-30 Tom Tromey <tromey@adacore.com>
2451
2452 * dwarf2/read.c (handle_variant): Use constant_value.
2453
529908cb
TT
24542020-09-29 Tom Tromey <tom@tromey.com>
2455
2456 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2457 (read_file_scope, dwarf2_get_pc_bounds)
2458 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2459 (read_structure_type, handle_struct_member_die)
2460 (read_enumeration_type, read_array_type, read_set_type)
2461 (read_tag_pointer_type, read_tag_reference_type)
2462 (read_subroutine_type, read_base_type, read_subrange_type)
2463 (read_full_die_1, partial_die_info::read)
2464 (partial_die_info::read, by, new_symbol)
2465 (dwarf2_const_value_data, dwarf2_const_value_attr)
2466 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2467 (prepare_one_comp_unit): Update.
2468 * dwarf2/attribute.h (DW_UNSND): Remove.
2469
c45bc3f8
TT
24702020-09-29 Tom Tromey <tom@tromey.com>
2471
2472 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2473 (read_subroutine_type, partial_die_info::read)
2474 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2475 (dwarf2_add_member_fn): Update.
2476 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2477 * dwarf2/attribute.c (attribute::as_boolean): New method.
2478
23dca5c3
TT
24792020-09-29 Tom Tromey <tom@tromey.com>
2480
2481 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2482 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2483 method.
2484 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2485
52c14d11
TT
24862020-09-29 Tom Tromey <tom@tromey.com>
2487
2488 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2489 the attribute's form.
2490
e8e5c158
TT
24912020-09-29 Tom Tromey <tom@tromey.com>
2492
2493 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2494 (dwarf2_add_member_fn): Update.
2495 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2496 * dwarf2/attribute.c (attribute::defaulted): New method, from
2497 is_valid_DW_AT_defaulted.
2498
d4df075e
TT
24992020-09-29 Tom Tromey <tom@tromey.com>
2500
2501 * dwarf2/read.c (dw2_get_file_names_reader)
2502 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2503 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2504 (dwarf2_symbol_mark_computed): Use as_unsigned.
2505 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2506 method.
2507 <form_is_section_offset>: Update comment.
2508
bf23a268
TT
25092020-09-29 Tom Tromey <tom@tromey.com>
2510
2511 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2512 dwarf2_default_access_attribute. Look up attribute.
2513 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2514 Update.
2515
7a5f294d
TT
25162020-09-29 Tom Tromey <tom@tromey.com>
2517
2518 * dwarf2/read.c (skip_one_die): Update.
2519 (read_full_die_1): Change how reprocessing is done.
2520 (partial_die_info::read): Update.
2521 (read_attribute_value): Remove need_reprocess parameter.
2522 (read_attribute): Likewise.
2523 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2524 New method.
2525
36d378cf
TT
25262020-09-29 Tom Tromey <tom@tromey.com>
2527
2528 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2529 (dwarf2_const_value_attr, dump_die_shallow)
2530 (dwarf2_fetch_constant_bytes): Update.
2531 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2532 comment.
2533 <set_address>: New method.
2534 (DW_ADDR): Remove.
2535 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2536 (attribute::as_string, attribute::as_address): Add assert.
2537
fe56917a
TT
25382020-09-29 Tom Tromey <tom@tromey.com>
2539
2540 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2541 (read_attribute_reprocess, read_attribute_value): Update.
2542 (read_attribute): Clear requires_reprocessing.
2543 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2544 form_requires_reprocessing>: New methods.
2545 <string_init>: Clear requires_reprocessing.
2546 <set_unsigned_reprocess>: New method.
2547 <name>: Shrink by one bit.
2548 <requires_reprocessing>: New member.
2549 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2550 method.
2551
414ad644
TT
25522020-09-29 Tom Tromey <tom@tromey.com>
2553
2554 * dwarf2/read.c (read_attribute_value): Update.
2555 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2556 set_unsigned>: New methods.
2557 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2558
1bc397c5
TT
25592020-09-29 Tom Tromey <tom@tromey.com>
2560
2561 * dwarf2/read.c (get_alignment, read_array_order)
2562 (read_attribute_value, dwarf2_const_value_attr)
2563 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2564 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2565 New methods.
2566 (DW_SND): Remove.
2567
630ed6b9
TT
25682020-09-29 Tom Tromey <tom@tromey.com>
2569
2570 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2571 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2572 Update.
2573 * dwarf2/attribute.h (struct attribute) <as_signature,
2574 set_signature>: New methods.
2575 (DW_SIGNATURE): Remove.
2576
9d2246fc
TT
25772020-09-29 Tom Tromey <tom@tromey.com>
2578
2579 * dwarf2/read.c (read_call_site_scope)
2580 (handle_data_member_location, dwarf2_add_member_fn)
2581 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2582 (partial_die_info::read, read_attribute_value)
2583 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2584 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2585 (dwarf2_symbol_mark_computed): Update.
2586 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2587 methods.
2588 (DW_BLOCK): Remove.
2589 * dwarf2/attribute.c (attribute::form_is_block): Add
2590 DW_FORM_data16.
2591
c6481205
TT
25922020-09-29 Tom Tromey <tom@tromey.com>
2593
2594 * dwarf2/read.c (read_cutu_die_from_dwo)
2595 (read_attribute_reprocess, read_attribute_value, read_attribute)
2596 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2597 (dwarf2_fetch_constant_bytes): Update.
2598 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2599 <set_string_noncanonical, set_string_canonical>: New methods.
2600 <string_is_canonical>: Update comment.
2601 <canonical_string_p>: Add assert.
2602 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2603 * dwarf2/attribute.c (attribute::form_is_string): New method.
2604 (attribute::string): Use it.
2605
3b64bf15
TT
26062020-09-29 Tom Tromey <tom@tromey.com>
2607
2608 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2609 (dump_die_shallow): Use canonical_string_p.
2610 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2611 method.
2612
2c830f54
TT
26132020-09-29 Tom Tromey <tom@tromey.com>
2614
2615 * dwarf2/read.c (partial_die_info::read)
2616 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2617 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2618 attribute::as_string.
2619
6c412691
TT
26202020-09-29 Tom Tromey <tom@tromey.com>
2621
2622 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2623 DW_ADDR.
2624 (attribute::string): Don't use DW_STRING.
2625 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2626 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2627
95f982e5
TT
26282020-09-29 Tom Tromey <tom@tromey.com>
2629
2630 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2631 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2632 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2633 * dwarf2/attribute.h (struct attribute): Rename methods.
2634 * dwarf2/attribute.c (attribute::as_address): Rename from
2635 value_as_address.
2636 (attribute::as_string): Rename from value_as_string.
2637
f800b00e
TT
26382020-09-29 Tom Tromey <tom@tromey.com>
2639
2640 * dwarf2/read.c (partial_die_info::read) <case
2641 DW_AT_linkage_name>: Use value_as_string.
2642 (dwarf2_string_attr): Use value_as_string.
2643 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2644 method.
2645 * dwarf2/attribute.c (attribute::value_as_string): New method.
2646
de38d64a
PA
26472020-09-29 Pedro Alves <pedro@palves.net>
2648
2649 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2650 defined before using '#pragma GCC diagnostic' instead of checking
2651 __clang__.
2652
9aed480c
TT
26532020-09-28 Tom Tromey <tom@tromey.com>
2654
2655 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2656 (handle_signal_stop): Update.
2657 * procfs.c (procfs_target::insert_watchpoint): Update.
2658 * target.h (target_have_steppable_watchpoint): Now a function.
2659
8a3ecb79
TT
26602020-09-28 Tom Tromey <tom@tromey.com>
2661
2662 * infrun.c (set_schedlock_func): Update.
2663 * target.h (target_can_lock_scheduler): Now a function.
2664
55f6301a
TT
26652020-09-28 Tom Tromey <tom@tromey.com>
2666
2667 * inferior.h (class inferior) <has_execution>: Update.
2668 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2669 * valops.c (find_function_in_inferior)
2670 (value_allocate_space_in_inferior): Update.
2671 * top.c (kill_or_detach): Update.
2672 * target.c (target_preopen, set_target_permissions): Update.
2673 (target_has_execution_current): Remove.
2674 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2675 Update.
2676 * solib.c (update_solib_list, reload_shared_libraries): Update.
2677 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2678 * solib-dsbt.c (enable_break): Update.
2679 * score-tdep.c (score7_fetch_inst): Update.
2680 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2681 Update.
2682 * remote.c (remote_target::start_remote)
2683 (remote_target::remote_check_symbols, remote_target::open_1)
2684 (remote_target::remote_detach_1, remote_target::verify_memory)
2685 (remote_target::xfer_partial, remote_target::read_description)
2686 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2687 * record-full.c (record_full_open_1): Update.
2688 * record-btrace.c (record_btrace_target_open): Update.
2689 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2690 (value_nsstring): Update.
2691 * linux-thread-db.c (add_thread_db_info)
2692 (thread_db_find_new_threads_silently, check_thread_db_callback)
2693 (try_thread_db_load_1, record_thread): Update.
2694 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2695 Update.
2696 * linux-fork.c (checkpoint_command): Update.
2697 * infrun.c (set_non_stop, set_observer_mode)
2698 (check_multi_target_resumption, for_each_just_stopped_thread)
2699 (maybe_remove_breakpoints, normal_stop)
2700 (class infcall_suspend_state): Update.
2701 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2702 (info_program_command, attach_command): Update.
2703 * infcall.c (call_function_by_hand_dummy): Update.
2704 * inf-loop.c (inferior_event_handler): Update.
2705 * gcore.c (gcore_command, derive_heap_segment): Update.
2706 * exec.c (exec_file_command): Update.
2707 * eval.c (evaluate_subexp): Update.
2708 * compile/compile.c (compile_to_object): Update.
2709 * cli/cli-dump.c (restore_command): Update.
2710 * breakpoint.c (update_watchpoint)
2711 (update_inserted_breakpoint_locations)
2712 (insert_breakpoint_locations, get_bpstat_thread): Update.
2713 * target.h (target_has_execution): Remove macro.
2714 (target_has_execution_current): Don't declare.
2715 (target_has_execution): Rename from target_has_execution_1. Add
2716 argument default.
2717
05374cfd
TT
27182020-09-28 Tom Tromey <tom@tromey.com>
2719
2720 * mi/mi-main.c (exec_reverse_continue)
2721 (mi_cmd_list_target_features): Update.
2722 * infrun.c (set_exec_direction_func): Update.
2723 * target.c (default_execution_direction): Update.
2724 * reverse.c (exec_reverse_once): Update.
2725 * target.h (target_can_execute_reverse): Now a function.
2726
9dccd06e
TT
27272020-09-28 Tom Tromey <tom@tromey.com>
2728
2729 * tui/tui-regs.c (tui_get_register)
2730 (tui_data_window::show_registers): Update.
2731 * thread.c (scoped_restore_current_thread::restore)
2732 (scoped_restore_current_thread::scoped_restore_current_thread):
2733 Update.
2734 * regcache-dump.c (regcache_print): Update.
2735 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2736 Update.
2737 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2738 * mep-tdep.c (current_me_module, current_options): Update.
2739 * linux-thread-db.c (thread_db_load): Update.
2740 * infcmd.c (registers_info, info_vector_command)
2741 (info_float_command): Update.
2742 * ia64-tdep.c (ia64_frame_prev_register)
2743 (ia64_sigtramp_frame_prev_register): Update.
2744 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2745 * gcore.c (derive_stack_segment): Update.
2746 * frame.c (get_current_frame, has_stack_frames): Update.
2747 * findvar.c (language_defn::read_var_value): Update.
2748 * arm-tdep.c (arm_pc_is_thumb): Update.
2749 * target.c (target_has_registers): Rename from
2750 target_has_registers_1.
2751 * target.h (target_has_registers): Remove macro.
2752 (target_has_registers): Rename from target_has_registers_1.
2753
841de120
TT
27542020-09-28 Tom Tromey <tom@tromey.com>
2755
2756 * windows-tdep.c (tlb_make_value): Update.
2757 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2758 * thread.c (scoped_restore_current_thread::restore)
2759 (scoped_restore_current_thread::scoped_restore_current_thread)
2760 (thread_command): Update.
2761 * stack.c (backtrace_command_1, frame_apply_level_command)
2762 (frame_apply_all_command, frame_apply_command): Update.
2763 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2764 Update.
2765 * gcore.c (derive_stack_segment): Update.
2766 * frame.c (get_current_frame, has_stack_frames): Update.
2767 * auxv.c (info_auxv_command): Update.
2768 * ada-tasks.c (ada_build_task_list): Update.
2769 * target.c (target_has_stack): Rename from target_has_stack_1.
2770 * target.h (target_has_stack): Remove macro.
2771 (target_has_stack): Rename from target_has_stack_1.
2772
a739972c
TT
27732020-09-28 Tom Tromey <tom@tromey.com>
2774
2775 * target.c (target_has_memory): Rename from target_has_memory_1.
2776 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2777 * thread.c (scoped_restore_current_thread::restore)
2778 (scoped_restore_current_thread::scoped_restore_current_thread):
2779 Update.
2780 * frame.c (get_current_frame, has_stack_frames): Update.
2781 * target.h (target_has_memory): Remove macro.
2782 (target_has_memory): Rename from target_has_memory_1.
2783
5b8a4776
TT
27842020-09-28 Tom Tromey <tom@tromey.com>
2785
2786 * target.c (target_has_all_memory_1): Remove.
2787 * target.h (target_has_all_memory): Remove define.
2788 (target_has_all_memory_1): Don't declare.
2789
bd356ec6
SM
27902020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2791
2792 * ser-base.c: Adjust comments formatting.
2793
2c72d5e5
TT
27942020-09-27 Tom Tromey <tom@tromey.com>
2795
2796 PR tui/25342:
2797 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2798
35a98237
TT
27992020-09-27 Tom Tromey <tom@tromey.com>
2800
2801 PR tui/25342:
2802 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2803
9e820dec
TT
28042020-09-27 Tom Tromey <tom@tromey.com>
2805
2806 * unittests/tui-selftests.c: Update.
2807 * tui/tui-winsource.h (struct tui_source_window_base)
2808 <extra_margin, show_line_number, refresh_pad>: New methods.
2809 <m_max_length, m_pad>: New members.
2810 (tui_copy_source_line): Update.
2811 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2812 first_col, line_width, ndigits parameters. Add length.
2813 (tui_source_window_base::show_source_line): Write to pad. Line
2814 number now 0-based.
2815 (tui_source_window_base::refresh_pad): New method.
2816 (tui_source_window_base::show_source_content): Write to pad. Call
2817 refresh_pad.
2818 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2819 not refill.
2820 (tui_source_window_base::update_exec_info): Call
2821 show_line_number.
2822 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2823 method.
2824 <m_digits>: New member.
2825 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2826 and m_max_length.
2827 (tui_source_window::show_line_number): New method.
2828 * tui/tui-io.h (tui_puts): Fix comment.
2829 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2830 m_max_length.
2831
c15c15c8
TT
28322020-09-27 Tom Tromey <tom@tromey.com>
2833
2834 * tui/tui-winsource.c
2835 (tui_source_window_base::set_is_exec_point_at): Don't call
2836 show_source_line.
2837
149830c1
TT
28382020-09-27 Tom Tromey <tom@tromey.com>
2839
2840 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2841 method.
2842 <erase>: Update.
2843 <cursor_x, cursor_y>: Remove.
2844 <m_inner_window>: New member.
2845 (tui_py_window::rerender): Create inner window.
2846 (tui_py_window::output): Write to inner window.
2847
8f9929bb
GR
28482020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2849
2850 PR python/26586
2851 * cli/cli-script.c (execute_control_commands): don't set
2852 instream to nullptr here as this breaks the from_tty argument
2853 to gdb.execute in Python.
2854 (execute_user_command): set instream to nullptr here instead.
2855
956bdb59
SM
28562020-09-25 Simon Marchi <simon.marchi@efficios.com>
2857
2858 * infrun.h (infrun_debug_printf): Fix formatting.
2859 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2860
3b93626b
SJ
28612020-09-25 Saagar Jha <saagar@saagarjha.com>
2862
2863 * compile/compile-object-load.h (struct munmap_list): Add
2864 explicitly-defined move constructor.
2865
b551a89f
TT
28662020-09-24 Tom Tromey <tromey@adacore.com>
2867
2868 PR tui/26638:
2869 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2870 method.
2871 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2872 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2873 (tui_prev_win): Rewrite.
2874
99bb393f
HD
28752020-09-23 Hannes Domani <ssbssa@yahoo.de>
2876
2877 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2878 in WOW64 processes as SIGINT.
2879 * nat/windows-nat.h: Make wow64_process a shared variable.
2880 * windows-nat.c: Remove static wow64_process variable.
2881
20a5fcbd
TT
28822020-09-23 Tom Tromey <tom@tromey.com>
2883
2884 PR symtab/25470:
2885 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2886 offset and bit size.
2887 * printcmd.c (print_scalar_formatted): Handle zero-length
2888 integer.
2889 (print_scalar_formatted): Use bit_size_differs_p.
2890 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2891 constant.
2892 (union type_specific): <int_stuff>: New member.
2893 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2894 methods.
2895 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2896 TYPE_SPECIFIC_FIELD.
2897 (recursive_dump_type, copy_type_recursive): Update.
2898 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2899 DW_AT_data_bit_offset.
2900
bac51ab7
TT
29012020-09-23 Tom Tromey <tom@tromey.com>
2902
2903 * utils.h (class gdb_argv): Add move operators.
2904 <append>: New methods.
2905 * compile/compile.c (build_argc_argv): Remove.
2906 (compile_args_argc): Remove.
2907 (compile_args_argv): Change type.
2908 (set_compile_args): Simplify.
2909 (append_args): Remove.
2910 (filter_args): Remove argcp parameter.
2911 (get_args): Return gdb_argv. Simplify.
2912 (compile_to_object): Update.
2913
92677124
TT
29142020-09-23 Tom Tromey <tom@tromey.com>
2915
2916 * compile/compile-object-run.c (do_module_cleanup)
2917 <~do_module_cleanup> :Remove.
2918 (do_module_cleanup): Update.
2919 * compile/compile-object-load.h (struct munmap_list): Add move
2920 assignment operator.
2921 <source_file>: Now a std::string.
2922 <munmap_list>: Rename. No longer a pointer.
2923 * compile/compile-object-load.c (struct setup_sections_data): Add
2924 constructor.
2925 <setup_one_section>: Declare.
2926 <munmap_list>: Move earlier.
2927 <m_bfd>: New member.
2928 <m_last_size, m_last_section_first, m_last_prot,
2929 m_last_max_alignment>: Rename, add initializers where needed.
2930 (setup_sections_data::setup_one_section): Rename from
2931 setup_sections. Update.
2932 (compile_object_load): Update. Don't use bfd_map_over_sections.
2933
e616f60a
TT
29342020-09-23 Tom Tromey <tom@tromey.com>
2935
2936 * compile/compile-object-run.c (struct do_module_cleanup): Add
2937 parameters to constructor. Update destructor.
2938 <source_file, scope, scope_data, out_value_type, out_value_addr,
2939 munmap_list_head, objfile_name_string>: Remove.
2940 <module>: New member.
2941 (do_module_cleanup): Update.
2942 (compile_object_run): Update.
2943
e947a848
TT
29442020-09-23 Tom Tromey <tom@tromey.com>
2945
2946 * compile/compile.c (eval_compile_command): Update.
2947 * compile/compile-object-run.h (compile_object_run): Take a
2948 compile_module_up.
2949 * compile/compile-object-run.c (compile_object_run): Take a
2950 compile_module_up.
2951 * compile/compile-object-load.h (struct compile_module): Add
2952 constructor, destructor.
2953 (compile_module_up): New typedef.
2954 (compile_object_load): Return compile_object_up.
2955 * compile/compile-object-load.c (compile_object_load): Return
2956 compile_module_up.
2957
0dbf6ee6
TT
29582020-09-23 Tom Tromey <tom@tromey.com>
2959
2960 * compile/compile-object-run.c (struct do_module_cleanup): Add
2961 constructor, destructor.
2962 <objfile_name_string>: Don't use struct hack.
2963 (do_module_cleanup): Use delete.
2964 (compile_object_run): Use new.
2965
ebe824f5
TT
29662020-09-23 Tom Tromey <tom@tromey.com>
2967
2968 * compile/compile-cplus-types.c
2969 (compile_cplus_convert_struct_or_union): Use std::vector.
2970 (compile_cplus_convert_func): Likewise.
2971 * compile/compile-c-types.c (convert_func): Use std::vector.
2972
5dd918d9
TT
29732020-09-21 Tom Tromey <tromey@adacore.com>
2974
2975 * sparc-tdep.c (sparc32_skip_prologue): Use
2976 skip_prologue_using_sal.
2977
5486c517
TT
29782020-09-19 Tom Tromey <tom@tromey.com>
2979
2980 * symfile.c (add_section_size_callback): Remove.
2981 (load_one_section): Rename from load_section_callback. Change
2982 parameters.
2983 (generic_load): Use foreach.
2984
8a6bb1d1
TT
29852020-09-19 Tom Tromey <tom@tromey.com>
2986
2987 * exec.c (add_to_section_table): Remove.
2988 (build_section_table): Use foreach.
2989
08f93a1a
TT
29902020-09-19 Tom Tromey <tom@tromey.com>
2991
2992 * elfread.c (elf_locate_sections): Change parameters.
2993 (elf_symfile_read): Use foreach.
2994
03cd72b8
TT
29952020-09-19 Tom Tromey <tom@tromey.com>
2996
2997 * cli/cli-dump.c (struct callback_data): Remove.
2998 (restore_one_section): Rename from restore_section_callback.
2999 Change parameters.
3000 (restore_binary_file): Change parameters.
3001 (restore_command): Use foreach.
3002
f4f2b85f
TT
30032020-09-19 Tom Tromey <tom@tromey.com>
3004
3005 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3006 (gcore_copy_callback): Likewise.
3007 (gcore_memory_sections): Use foreach.
3008
b35c1d1c
TT
30092020-09-19 Tom Tromey <tom@tromey.com>
3010
3011 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3012 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3013 parameters.
3014 (generic_elf_osabi_sniffer): Use foreach.
3015 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3016 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3017
5bb6e9dd
TT
30182020-09-19 Tom Tromey <tom@tromey.com>
3019
3020 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3021 (dwarf2_get_dwz_file): Use foreach.
3022 (dwarf2_locate_dwo_sections): Change parameters.
3023 (open_and_init_dwo_file): Use foreach.
3024 (dwarf2_locate_common_dwp_sections): Change parameters.
3025 (open_and_init_dwp_file): Use foreach.
3026
ad7277da
TT
30272020-09-19 Tom Tromey <tom@tromey.com>
3028
3029 * symfile.h: (find_lowest_section): Don't declare.
3030 * symfile.c (find_lowest_section): Now static. Change
3031 parameters.
3032 (struct place_section_arg): Remove.
3033 (place_section): Change parameters.
3034 (addr_info_make_relative): Use foreach.
3035 (symfile_dummy_outputs): Remove.
3036 (default_symfile_relocate): Use foreach.
3037
cb814f2e
TT
30382020-09-19 Tom Tromey <tom@tromey.com>
3039
3040 * objfiles.c (add_to_objfile_sections): Rename from
3041 add_to_objfile_sections_full.
3042 (add_to_objfile_sections): Remove.
3043 (build_objfile_section_table): Use foreach.
3044
3cabfd26
TT
30452020-09-19 Tom Tromey <tom@tromey.com>
3046
3047 * stap-probe.c (get_stap_base_address_1): Remove.
3048 (get_stap_base_address): Use foreach.
3049
1ce51eb5
TT
30502020-09-19 Tom Tromey <tom@tromey.com>
3051
3052 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3053 parameters.
3054 (gdb_bfd_close_or_warn): Use foreach.
3055
a190fabb
TT
30562020-09-19 Tom Tromey <tom@tromey.com>
3057
3058 * corelow.c (add_to_thread_list): Change parameters.
3059 (core_target_open): Use foreach.
3060
cafb0d81
TT
30612020-09-19 Tom Tromey <tom@tromey.com>
3062
3063 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3064 existing function.
3065
c8d5abea
AB
30662020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3069 for arrays.
3070
6d816919
AB
30712020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3072
3073 * eval.c: Remove 'f-lang.h' include.
3074 (value_f90_subarray): Moved to f-lang.c.
3075 (eval_call): Renamed to...
3076 (evaluate_subexp_do_call): ...this, is no longer static, header
3077 comment moved into header file.
3078 (evaluate_funcall): Update call to eval_call.
3079 (skip_undetermined_arglist): Moved to f-lang.c.
3080 (fortran_value_subarray): Likewise.
3081 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3082 moved to evaluate_subexp_f.
3083 (calc_f77_array_dims): Moved to f-lang.c
3084 * expprint.c (print_subexp_funcall): New function.
3085 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3086 moved to print_subexp_f, OP_FUNCALL uses new function.
3087 (dump_subexp_body_funcall): New function.
3088 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3089 moved to dump_subexp_f, OP_FUNCALL uses new function.
3090 * expression.h (evaluate_subexp_do_call): Declare.
3091 * f-lang.c (value_f90_subarray): Moved from eval.c.
3092 (skip_undetermined_arglist): Likewise.
3093 (calc_f77_array_dims): Likewise.
3094 (fortran_value_subarray): Likewise.
3095 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3096 (operator_length_f): Likewise.
3097 (print_subexp_f): Likewise.
3098 (dump_subexp_body_f): Likewise.
3099 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3100 declaration of this operation to here.
3101 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3102 support moved to operator_length_f.
3103 * parser-defs.h (dump_subexp_body_funcall): Declare.
3104 (print_subexp_funcall): Declare.
3105 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3106 fortran-operator.def.
3107
8c37706a
AB
31082020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3109
3110 * eval.c (fortran_value_subarray): New function, content is taken
3111 from...
3112 (evaluate_subexp_standard): ...here, in two places. Now arrays
3113 and strings both call the new function.
3114 (calc_f77_array_dims): Add header comment, handle strings.
3115
14f9473c
VC
31162020-09-18 Victor Collod <vcollod@nvidia.com>
3117
3118 PR gdb/26635
3119 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3120 (i386_analyze_prologue): Call i386_skip_endbr.
3121
b60cea74
TT
31222020-09-18 Tom Tromey <tromey@adacore.com>
3123
3124 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3125 (windows_nat_target::wait): Update.
3126 * target/wait.h (enum target_wait_flag): New. Use
3127 DEF_ENUM_FLAGS_TYPE.
3128 * target/target.h (target_wait): Change type of options.
3129 * target.h (target_options_to_string, default_target_wait):
3130 Update.
3131 (struct target_ops) <wait>: Change type of options.
3132 * target.c (target_wait, default_target_wait, do_option): Change
3133 type of "options".
3134 (target_options_to_string): Likewise.
3135 * target-delegates.c: Rebuild.
3136 * target-debug.h (target_debug_print_target_wait_flags): Rename
3137 from target_debug_print_options.
3138 * sol-thread.c (class sol_thread_target) <wait>: Update.
3139 (sol_thread_target::wait): Update.
3140 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3141 (rs6000_nat_target::wait): Update.
3142 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3143 Update.
3144 (remote_target::wait_ns, remote_target::wait_as): Change type of
3145 "options".
3146 (remote_target::wait): Update.
3147 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3148 (gdbsim_target::wait): Update.
3149 * record-full.c (class record_full_base_target) <wait>: Update.
3150 (record_full_wait_1): Change type of "options".
3151 (record_full_base_target::wait): Update.
3152 * record-btrace.c (class record_btrace_target) <wait>: Update.
3153 (record_btrace_target::wait): Update.
3154 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3155 Update.
3156 (ravenscar_thread_target::wait): Update.
3157 * procfs.c (class procfs_target) <wait>: Update.
3158 (procfs_target::wait): Update.
3159 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3160 * obsd-nat.c (obsd_nat_target::wait): Update.
3161 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3162 (nto_procfs_target::wait): Update.
3163 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3164 * nbsd-nat.c (nbsd_wait): Change type of "options".
3165 (nbsd_nat_target::wait): Update.
3166 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3167 (thread_db_target::wait): Update.
3168 * linux-nat.h (class linux_nat_target) <wait>: Update.
3169 * linux-nat.c (linux_nat_target::wait): Update.
3170 (linux_nat_wait_1): Update.
3171 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3172 "options".
3173 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3174 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3175 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3176 (go32_nat_target::wait): Update.
3177 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3178 * gnu-nat.c (gnu_nat_target::wait): Update.
3179 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3180 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3181 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3182 * darwin-nat.c (darwin_nat_target::wait): Update.
3183 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3184 (bsd_uthread_target::wait): Update.
3185 * aix-thread.c (class aix_thread_target) <wait>: Update.
3186 (aix_thread_target::wait): Update.
3187
0295dde6
AB
31882020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3189
3190 * compile/compile-object-run.c (create_copied_type_recursive): New
3191 function.
3192 (compile_object_run): Use new function.
3193
d3483b43
JT
31942020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3195
3196 * NEWS: Mention x86_64 Cygwin core file support.
3197
e7d612ad
JT
31982020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3199
3200 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3201 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3202
aff9d387
JT
32032020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3204
62a5151b
JT
3205 * windows-tdep.h: Add prototypes.
3206 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3207 (i386_windows_core_pid_to_str): Move and rename ...
3208 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3209 (windows_core_pid_to_str): ... and here.
3210 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3211
32122020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3213 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3214 (amd64_windows_init_abi_common): ... and register.
3215
7d155da3
JT
32162020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3217
3218 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3219 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3220
e8ef12b9
PA
32212020-09-18 Pedro Alves <pedro@palves.net>
3222
3223 PR gdb/26631
3224 * thread.c (thread_find_command): Switch inferior before calling
3225 target methods.
3226
c1e1314d
TT
32272020-09-17 Tom Tromey <tromey@adacore.com>
3228
3229 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3230 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3231 (tdesc_arch_data_up): New typedef.
3232 (tdesc_use_registers, tdesc_data_alloc): Update.
3233 (tdesc_data_cleanup): Don't declare.
3234 * target-descriptions.c (tdesc_data_alloc): Return a
3235 tdesc_arch_data_up.
3236 (tdesc_arch_data_deleter::operator()): Rename from
3237 tdesc_data_cleanup. Change argument type.
3238 (tdesc_use_registers): Change early_data to an rvalue reference.
3239 (tdesc_use_registers): Don't use delete.
3240 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3241 * s390-tdep.c (s390_gdbarch_init): Update.
3242 * rx-tdep.c (rx_gdbarch_init): Update.
3243 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3244 * riscv-tdep.c (riscv_gdbarch_init): Update.
3245 * or1k-tdep.c (or1k_gdbarch_init): Update.
3246 * nios2-tdep.c (nios2_gdbarch_init): Update.
3247 * nds32-tdep.c (nds32_gdbarch_init): Update.
3248 * mips-tdep.c (mips_gdbarch_init): Update.
3249 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3250 * m68k-tdep.c (m68k_gdbarch_init): Update.
3251 * i386-tdep.c (i386_gdbarch_init): Update.
3252 * arm-tdep.c (arm_gdbarch_init): Update.
3253 * arc-tdep.c (arc_tdesc_init): Update.
3254 (arc_gdbarch_init): Update.
3255 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3256
0363df3d
HD
32572020-09-17 Hannes Domani <ssbssa@yahoo.de>
3258
3259 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3260 for WOW64 processes.
3261
280a9412
TT
32622020-09-17 Tom Tromey <tom@tromey.com>
3263
3264 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3265
6108fd18
TT
32662020-09-17 Tom Tromey <tom@tromey.com>
3267
3268 * value.c (preserve_values): Update.
3269 * python/py-type.c (save_objfile_types): Update.
3270 * guile/scm-type.c (save_objfile_types): Update.
3271 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3272 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3273 * compile/compile-object-run.c (compile_object_run): Update.
3274
fa9b1164
TT
32752020-09-17 Tom Tromey <tom@tromey.com>
3276
3277 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3278 Remove.
3279 <m_table>: Now htab_up.
3280 * typeprint.c (typedef_hash_table::recursively_update)
3281 (typedef_hash_table::add_template_parameters)
3282 (typedef_hash_table::typedef_hash_table): Update.
3283 (typedef_hash_table::~typedef_hash_table): Remove.
3284 (typedef_hash_table::typedef_hash_table)
3285 (typedef_hash_table::find_global_typedef)
3286 (typedef_hash_table::find_typedef): Update.
3287
eb53f105
TT
32882020-09-17 Tom Tromey <tom@tromey.com>
3289
3290 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3291
7a8a5d47
TT
32922020-09-17 Tom Tromey <tom@tromey.com>
3293
3294 * linespec.c (class decode_compound_collector)
3295 <~decode_compound_collector>: Remove.
3296 <m_unique_syms>: Now htab_up.
3297 (decode_compound_collector::operator ()): Update.
3298 (class symtab_collector) <~symtab_collector>: Remove.
3299 <m_symtab_table>: Now htab_up.
3300 (symtab_collector::operator ()): Update.
3301
99032cfc
TT
33022020-09-17 Tom Tromey <tom@tromey.com>
3303
3304 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3305 (filename_seen_cache::clear): Update.
3306 (~filename_seen_cache): Remove.
3307 (filename_seen_cache::seen): Update.
3308 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3309 htab_up.
3310 <~filename_seen_cache>: Remove.
3311 <traverse>: Update.
3312
32580f6d
TT
33132020-09-17 Tom Tromey <tom@tromey.com>
3314
3315 * completer.c (completion_tracker::discard_completions)
3316 (completion_tracker::~completion_tracker)
3317 (completion_tracker::maybe_add_completion)
3318 (completion_tracker::remove_completion)
3319 (completion_tracker::recompute_lowest_common_denominator)
3320 (completion_tracker::build_completion_result): Update.
3321 * completer.h (class completion_tracker) <have_completions>:
3322 Update.
3323 <m_entries_hash>: Now htab_up.
3324
c1fb9836
TT
33252020-09-17 Tom Tromey <tom@tromey.com>
3326
3327 * breakpoint.c (ambiguous_names_p): Use htab_up.
3328
88f07206
TT
33292020-09-17 Tom Tromey <tom@tromey.com>
3330
3331 * auto-load.c (struct auto_load_pspace_info)
3332 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3333 <loaded_script_files, loaded_script_texts>: Change type to
3334 htab_up.
3335 (~auto_load_pspace_info) Remove.
3336 (init_loaded_scripts_info, maybe_add_script_file)
3337 (maybe_add_script_text, auto_load_info_scripts): Update.
3338
9519b2ee
TT
33392020-09-17 Tom Tromey <tromey@adacore.com>
3340
3341 * c-exp.y (name_obstack): Now static.
3342
d2cd4113
CC
33432020-09-17 Chungyi Chi <demonic@csie.io>
3344
3345 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3346
b650a282
SM
33472020-09-16 Simon Marchi <simon.marchi@efficios.com>
3348
3349 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3350 (add_solib_catchpoint): Likewise.
3351 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3352 to bool.
3353 (add_solib_catchpoint): Change int parameter/variable to bool.
3354 (catch_load_or_unload): Likewise.
3355 (init_catchpoint): Likewise.
3356 (create_fork_vfork_event_catchpoint): Likewise.
3357 (catch_fork_command_1): Likewise.
3358 (catch_exec_command_1): Likewise.
3359
4d0bcfcf
SM
33602020-09-16 Simon Marchi <simon.marchi@efficios.com>
3361
3362 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3363 Change instance_flags to m_instance_flags.
3364
fe830662
TT
33652020-09-16 Tom Tromey <tromey@adacore.com>
3366
3367 PR gdb/26598:
3368 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3369
fe5ddfc3
JB
33702020-09-16 John Baldwin <jhb@FreeBSD.org>
3371
3372 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3373 PL_FLAG_EXEC.
3374 (fbsd_nat_target::insert_exec_catchpoint)
3375 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3376 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3377 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3378
e911c666
JB
33792020-09-16 John Baldwin <jhb@FreeBSD.org>
3380
3381 * configure.ac: Remove check for kinfo_getvmmap().
3382 * configure, config.in: Regenerate.
3383 * fbsd-nat.c (fbsd_read_mapping): Remove
3384 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3385 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3386 kinfo_get_vmmap() are always present.
3387
1f17d372
JB
33882020-09-16 John Baldwin <jhb@FreeBSD.org>
3389
3390 * fbsd-nat.c: Always include support for
3391 TARGET_OBJECT_SIGNAL_INFO.
3392
bcb1da7f
JB
33932020-09-16 John Baldwin <jhb@FreeBSD.org>
3394
3395 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3396 sysctl and remove procfs fallback.
3397
5515f729
JB
33982020-09-16 John Baldwin <jhb@FreeBSD.org>
3399
3400 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3401 * fbsd-nat.h: Likewise.
3402
da1df1db
TBA
34032020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3404
3405 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3406 argument.
3407
0e25e767
AB
34082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3409
3410 * ada-lang.c (ada_language_data): Delete.
3411 (ada_language): Remove references to ada_language_data.
3412 * c-lang.c (c_language_data): Delete.
3413 (c_language): Remove references to c_language_data.
3414 (cplus_language_data): Delete.
3415 (cplus_language): Remove references to cplus_language_data.
3416 (asm_language_data): Delete.
3417 (asm_language): Remove references to asm_language_data.
3418 (minimal_language_data): Delete.
3419 (minimal_language): Remove references to minimal_language_data.
3420 * d-lang.c (d_language_data): Delete.
3421 (d_language): Remove references to d_language_data.
3422 * f-lang.c (f_language_data): Delete.
3423 (f_language): Remove references to f_language_data.
3424 * go-lang.c (go_language_data): Delete.
3425 (go_language): Remove references to go_language_data.
3426 * language.c (unknown_language_data): Delete.
3427 (unknown_language): Remove references to unknown_language_data.
3428 (auto_language_data): Delete.
3429 (auto_language): Remove references to auto_language_data.
3430 * language.h (language_data): Delete struct.
3431 (language_defn): No longer inherit from language_data.
3432 * m2-lang.c (m2_language_data): Delete.
3433 (m2_language): Remove references to m2_language_data.
3434 * objc-lang.c (objc_language_data): Delete.
3435 (objc_language): Remove references to objc_language_data.
3436 * opencl-lang.c (opencl_language_data): Delete.
3437 (opencl_language): Remove references to opencl_language_data.
3438 * p-lang.c (pascal_language_data): Delete.
3439 (pascal_language): Remove references to pascal_language_data.
3440 * rust-lang.c (rust_language_data): Delete.
3441 (rust_language): Remove references to rust_language_data.
3442
b7c6e27d
AB
34432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3444
3445 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3446 initializer.
3447 (ada_language::opcode_print_table): New member function.
3448 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3449 (c_language::opcode_print_table): New member function.
3450 (cplus_language_data): Remove la_op_print_tab initializer.
3451 (cplus_language::opcode_print_table): New member function.
3452 (asm_language_data): Remove la_op_print_tab initializer.
3453 (asm_language::opcode_print_table): New member function.
3454 (minimal_language_data): Remove la_op_print_tab initializer.
3455 (minimal_language::opcode_print_table): New member function.
3456 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3457 (d_language::opcode_print_table): New member function.
3458 * expprint.c (print_subexp_standard): Update call to
3459 opcode_print_table.
3460 (op_string): Likewise.
3461 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3462 (f_language::opcode_print_table): New member function.
3463 * go-lang.c (go_language_data): Remove la_op_print_tab
3464 initializer.
3465 (go_language::opcode_print_table): New member function.
3466 * language.c (unknown_language_data): Remove la_op_print_tab
3467 initializer.
3468 (unknown_language::opcode_print_table): New member function.
3469 (auto_language_data): Remove la_op_print_tab initializer.
3470 (auto_language::opcode_print_table): New member function.
3471 * language.h (language_data): Remove la_op_print_tab field.
3472 (language_defn::opcode_print_table): Declare new member function.
3473 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3474 initializer.
3475 (m2_language::opcode_print_table): New member function.
3476 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3477 initializer.
3478 (objc_language::opcode_print_table): New member function.
3479 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3480 initializer.
3481 (opencl_language::opcode_print_table): New member function.
3482 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3483 initializer.
3484 (pascal_language::opcode_print_table): New member function.
3485 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3486 initializer.
3487 (rust_language::opcode_print_table): New member function.
3488
5aba6ebe
AB
34892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3490
3491 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3492 (ada_language::expression_ops): New member function.
3493 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3494 (c_language::expression_ops): New member function.
3495 (cplus_language_data): Remove la_exp_desc initializer.
3496 (cplus_language::expression_ops): New member function.
3497 (asm_language_data): Remove la_exp_desc initializer.
3498 (asm_language::expression_ops): New member function.
3499 (minimal_language_data): Remove la_exp_desc initializer.
3500 (minimal_language::expression_ops): New member function.
3501 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3502 (d_language::expression_ops): New member function.
3503 * eval.c (evaluate_subexp): Update call to expression_ops.
3504 * expprint.c (print_subexp): Likewise.
3505 (op_name): Likewise.
3506 (dump_subexp_body): Likewise.
3507 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3508 (f_language::expression_ops): New member function.
3509 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3510 (go_language::expression_ops): New member function.
3511 * language.c (language_defn::expression_ops): New function.
3512 (unknown_language_data): Remove la_exp_desc initializer.
3513 (auto_language_data): Likewise.
3514 * language.h (language_data): Remove la_exp_desc field.
3515 (language_defn::expression_ops): Declare new member function.
3516 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3517 (m2_language::expression_ops): New member function.
3518 * objc-lang.c (objc_language_data): Remove la_exp_desc
3519 initializer.
3520 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3521 initializer.
3522 (opencl_language::expression_ops): New member function.
3523 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3524 * parse.c (operator_length): Update call to expression_ops.
3525 (exp_iterate): Likewise.
3526 * rust-lang.c (rust_language_data): Remove la_exp_desc
3527 initializer.
3528 (ruse_language::expression_ops): New member function.
3529
b63a3f3f
AB
35302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3531
3532 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3533 initializer.
3534 (ada_language::varobj_ops): New member function.
3535 * c-lang.c (c_language_data): Remove la_varobj_ops
3536 initializer.
3537 (cplus_language_data): Likewise.
3538 (cplus_language::varobj_ops): New member function.
3539 (asm_language_data): Remove la_varobj_ops initializer.
3540 (minimal_language_data): Likewise.
3541 * d-lang.c (d_language_data): Likewise.
3542 * f-lang.c (f_language_data): Likewise.
3543 * go-lang.c (go_language_data): Likewise.
3544 * language.c (language_defn::varobj_ops): New function.
3545 (unknown_language_data): Remove la_varobj_ops
3546 initializer.
3547 (auto_language_data): Likewise.
3548 * language.h (language_data): Remove la_varobj_ops field.
3549 (language_defn::varobj_ops): Declare new member function.
3550 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3551 * objc-lang.c (objc_language_data): Likewise.
3552 * opencl-lang.c (opencl_language_data): Likewise.
3553 * p-lang.c (pascal_language_data): Likewise.
3554 * rust-lang.c (rust_language_data): Likewise.
3555 * varobj.c (varobj_create): Update call to varobj_ops.
3556 * varobj.h (default_varobj_ops): Delete define.
3557
1ac14a04
AB
35582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3559
3560 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3561 initializer.
3562 * c-lang.c (c_language_data): Likewise.
3563 (c_language::macro_expansion): New member function.
3564 (cplus_language_data): Likewise.
3565 (cplus_language::macro_expansion): New member function.
3566 (asm_language_data): Likewise.
3567 (asm_language::macro_expansion): New member function.
3568 (minimal_language_data): Likewise.
3569 (minimal_language::macro_expansion): New member function.
3570 * d-lang.c (d_language_data): Remove la_macro_expansion
3571 initializer.
3572 * f-lang.c (f_language_data): Likewise.
3573 * go-lang.c (go_language_data): Likewise.
3574 * language.c (unknown_language_data): Likewise.
3575 (auto_language_data): Likewise.
3576 * language.h (language_data): Remove la_macro_expansion field.
3577 (language_defn::macro_expansion): New member function.
3578 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3579 initializer.
3580 * objc-lang.c (objc_language_data): Likewise.
3581 (objc_language::macro_expansion): New member function.
3582 * opencl-lang.c (opencl_language_data): Likewise.
3583 (opencl_language::macro_expansion): New member function.
3584 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3585 initializer.
3586 * rust-lang.c (rust_language_data): Likewise.
3587 * symtab.c (default_collect_symbol_completion_matches_break_on):
3588 Update call to macro_expansion.
3589
3a3440fb
AB
35902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3591
3592 * ada-lang.c (ada_language_data): Remove la_array_ordering
3593 initializer.
3594 * c-lang.c (c_language_data): Likewise.
3595 (cplus_language_data): Likewise.
3596 (asm_language_data): Likewise.
3597 (minimal_language_data): Likewise.
3598 * d-lang.c (d_language_data): Likewise.
3599 * dwarf2/read.c (read_array_order): Update for call to
3600 array_ordering.
3601 * f-lang.c (f_language_data): Remove la_array_ordering
3602 initializer.
3603 (f_language::array_ordering): New member function.
3604 * go-lang.c (go_language_data): Remove la_array_ordering
3605 initializer.
3606 * language.c (unknown_language_data): Likewise.
3607 (auto_language_data): Likewise.
3608 * language.h (language_data): Delete la_array_ordering field.
3609 (language_defn::array_ordering): New member function.
3610 * m2-lang.c (m2_language_data): Remove la_array_ordering
3611 initializer.
3612 * objc-lang.c (objc_language_data): Likewise.
3613 * opencl-lang.c (opencl_language_data): Likewise.
3614 * p-lang.c (pascal_language_data): Likewise.
3615 * rust-lang.c (rust_language_data): Likewise.
3616
0d201fa4
AB
36172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3618
3619 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3620 initializer.
3621 * c-lang.c (c_language_data): Likewise.
3622 (cplus_language_data): Likewise.
3623 (asm_language_data): Likewise.
3624 (minimal_language_data): Likewise.
3625 * d-lang.c (d_language_data): Likewise.
3626 * f-lang.c (f_language_data): Likewise.
3627 (f_language::case_sensitivity): New member function.
3628 * go-lang.c (go_language_data): Remove la_case_sensitivity
3629 initializer.
3630 * language.c (enum case_mode): Moved here from language.h.
3631 (case_mode): Make static.
3632 (show_case_command): Update for case_sensitivity being a method.
3633 (set_case_command): Likewise.
3634 (set_range_case): Likewise.
3635 (unknown_language_data): Remove la_case_sensitivity initializer.
3636 (auto_language_data): Likewise.
3637 * language.h (case_mode): Delete, move enum declaration to
3638 language.c.
3639 (language_data): Delete la_case_sensitivity field.
3640 (language_defn::case_sensitivity): New member function.
3641 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3642 initializer.
3643 * objc-lang.c (objc_language_data): Likewise.
3644 * opencl-lang.c (opencl_language_data): Likewise.
3645 * p-lang.c (pascal_language_data): Likewise.
3646 * rust-lang.c (rust_language_data): Likewise.
3647
efdf6a73
AB
36482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3649
3650 * ada-lang.c (ada_language_data): Remove la_range_check
3651 initializer.
3652 * c-lang.c (c_language_data): Likewise.
3653 (cplus_language_data): Likewise.
3654 (asm_language_data): Likewise.
3655 (minimal_language_data): Likewise.
3656 * d-lang.c (d_language_data): Likewise.
3657 * f-lang.c (f_language_data): Likewise.
3658 (f_language::range_checking_on_by_default): New member function.
3659 * go-lang.c (go_language_data): Remove la_range_check initializer.
3660 * language.c (enum range_mode): Moved here from language.h.
3661 (range_mode): Made static.
3662 (show_range_command): Update to use
3663 range_checking_on_by_default.
3664 (set_range_command): Likewise.
3665 (set_range_case): Likewise.
3666 (unknown_language_data): Remove la_range_check initializer.
3667 (auto_language_data): Likewise.
3668 * language.h (range_mode): Delete. Enum definition moved to
3669 language.c.
3670 (language_data): Remove la_range_check field.
3671 (language_defn::range_checking_on_by_default): New member
3672 function.
3673 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3674 (m2_language::range_checking_on_by_default): New member function.
3675 * objc-lang.c (objc_language_data): Remove la_range_check
3676 initializer.
3677 * opencl-lang.c (opencl_language_data): Likewise.
3678 * p-lang.c (pascal_language_data): Likewise.
3679 (pascal_language::range_checking_on_by_default): New member
3680 function.
3681 * rust-lang.c (rust_language_data): Remove la_range_check
3682 initializer.
3683 (rust_language::range_checking_on_by_default): New member
3684 function.
3685
bf92aec5
AB
36862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3687
3688 * dwarf2/read.c (dwarf2_physname): Remove special case for
3689 language_go.
3690 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3691 member function.
3692
d3355e4d
AB
36932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3694
3695 * ada-lang.c (ada_language_data): Remove
3696 la_store_sym_names_in_linkage_form_p initializer.
3697 (ada_language::store_sym_names_in_linkage_form_p): New member
3698 function.
3699 * c-lang.c (c_language_data): Remove
3700 la_store_sym_names_in_linkage_form_p initializer.
3701 (c_language::store_sym_names_in_linkage_form_p): New member
3702 function.
3703 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3704 initializer.
3705 (asm_language_data): Likewise.
3706 (asm_language::store_sym_names_in_linkage_form_p): New member
3707 function.
3708 (minimal_language_data): Remove
3709 la_store_sym_names_in_linkage_form_p initializer.
3710 (minimal_language::store_sym_names_in_linkage_form_p): New member
3711 function.
3712 * d-lang.c (d_language_data): Remove
3713 la_store_sym_names_in_linkage_form_p initializer.
3714 * dwarf2/read.c (dwarf2_physname): Update call to
3715 store_sym_names_in_linkage_form_p.
3716 * f-lang.c (f_language_data): Remove
3717 la_store_sym_names_in_linkage_form_p initializer.
3718 * go-lang.c (go_language_data): Remove
3719 la_store_sym_names_in_linkage_form_p initializer.
3720 * language.c (unknown_language_data): Remove
3721 la_store_sym_names_in_linkage_form_p initializer.
3722 (unknown_language::store_sym_names_in_linkage_form_p): New member
3723 function.
3724 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3725 initializer.
3726 (auto_language::store_sym_names_in_linkage_form_p): New member
3727 function.
3728 * language.h (language_data): Remove
3729 la_store_sym_names_in_linkage_form_p member variable.
3730 (language_defn::store_sym_names_in_linkage_form_p): New member
3731 function.
3732 * m2-lang.c (m2_language_data): Remove
3733 la_store_sym_names_in_linkage_form_p initializer.
3734 * objc-lang.c (objc_language_data): Likewise.
3735 * opencl-lang.c (opencl_language_data): Likewise.
3736 * p-lang.c (pascal_language_data): Likewise.
3737 * rust-lang.c (rust_language_data): Likewise.
3738
22c12a6c
AB
37392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3740
3741 * ada-lang.c (ada_language_data): Remove string_lower_bound
3742 initializer.
3743 * c-lang.c (c_language_data): Likewise.
3744 (cplus_language_data): Likewise.
3745 (asm_language_data): Likewise.
3746 (minimal_language_data): Likewise.
3747 * d-lang.c (d_language_data): Likewise.
3748 * f-lang.c (f_language_data): Likewise.
3749 * go-lang.c (go_language_data): Likewise.
3750 * language.c (unknown_language_data): Likewise.
3751 (auto_language_data): Likewise.
3752 * language.h (language_data): Remove string_lower_bound field.
3753 (language_defn::string_lower_bound): New member function.
3754 * m2-lang.c (m2_language_data): Remove string_lower_bound
3755 initializer.
3756 (m2_language::string_lower_bound): New member function.
3757 * objc-lang.c (objc_language_data): Remove string_lower_bound
3758 initializer.
3759 * opencl-lang.c (opencl_language_data): Likewise.
3760 * p-lang.c (pascal_language_data): Likewise.
3761 * rust-lang.c (rust_language_data): Likewise.
3762 * valops.c (value_cstring): Update call to string_lower_bound.
3763 (value_string): Likewise.
3764 * value.c (allocate_repeated_value): Likewise.
3765
1c236ddd
AB
37662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3767
3768 * valops.c (value_repeat): Fix incorrect argument name in comment.
3769
67bd3fd5
AB
37702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3771
3772 * ada-lang.c (ada_language_data): Remove c_style_arrays
3773 initializer.
3774 (ada_language::c_style_arrays_p): New member fuction.
3775 * c-lang.c (c_language_data): Remove c_style_arrays
3776 initializer.
3777 (cplus_language_data): Likewise.
3778 (asm_language_data): Likewise.
3779 (minimal_language_data): Likewise.
3780 * d-lang.c (d_language_data): Likewise.
3781 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3782 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3783 (f_language::c_style_arrays_p): New member function.
3784 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3785 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3786 * language.c (unknown_language_data): Remove c_style_arrays
3787 initializer.
3788 (auto_language_data): Likewise.
3789 * language.h (language_data): Remove c_style_arrays field.
3790 (language_defn::c_style_arrays_p): New member function.
3791 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3792 (m2_language::c_style_arrays_p): New member function.
3793 * objc-lang.c (objc_language_data): Remove c_style_arrays
3794 initializer.
3795 * opencl-lang.c (opencl_language_data): Likewise.
3796 * p-lang.c (pascal_language_data): Likewise.
3797 * rust-lang.c (rust_language_data): Likewise.
3798 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3799 and update local variable to a bool.
3800 * valops.c (value_cast): Update call to c_style_arrays_p.
3801 (value_array): Likewise.
3802 * value.c (coerce_array): Likewise.
3803
85967615
AB
38042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3805
3806 * ada-lang.c (ada_language_data): Remove la_language initializer.
3807 * c-lang.c (c_language_data): Likewise.
3808 (cplus_language_data): Likewise.
3809 (asm_language_data): Likewise.
3810 (minimal_language_data): Likewise.
3811 * d-lang.c (d_language_data): Likewise.
3812 * f-lang.c (f_language_data): Likewise.
3813 * go-lang.c (go_language_data): Likewise.
3814 * language.c (unknown_language_data): Likewise.
3815 (auto_language_data): Likewise.
3816 * language.h (language_data): Remove la_language field.
3817 (language_defn::language_defn): Initialise la_language field.
3818 (language_defn::la_language): New member variable.
3819 * m2-lang.c (m2_language_data): Remove la_language field.
3820 * objc-lang.c (objc_language_data): Likewise.
3821 * opencl-lang.c (opencl_language_data): Likewise.
3822 * p-lang.c (pascal_language_data): Likewise.
3823 * rust-lang.c (rust_language_data): Likewise.
3824
e171d6f1
AB
38252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 * ada-lang.c (ada_extensions): Delete, moved into
3828 ada_language::filename_extensions.
3829 (ada_language_data): Remove la_filename_extensions initializer.
3830 (ada_language::filename_extensions): New member function.
3831 * c-lang.c (c_extensions): Delete, moved into
3832 c_language::filename_extensions.
3833 (c_language_data): Remove la_filename_extensions initializer.
3834 (c_language::filename_extensions): New member function.
3835 (cplus_extensions): Delete, moved into
3836 cplus_language::filename_extensions.
3837 (cplus_language_data): Remove la_filename_extensions initializer.
3838 (cplus_language::filename_extensions): New member function.
3839 (asm_extensions): Delete, moved into
3840 asm_language::filename_extensions.
3841 (asm_language_data): Remove la_filename_extensions initializer.
3842 (asm_language::filename_extensions): New member function.
3843 (minimal_language_data): Remove la_filename_extensions
3844 initializer.
3845 * d-lang.c (d_extensions): Delete, moved into
3846 d_language::filename_extensions.
3847 (d_language_data): Remove la_filename_extensions initializer.
3848 (d_language::filename_extensions): New member function.
3849 * f-lang.c (f_extensions): Delete, moved into
3850 f_language::filename_extensions.
3851 (f_language_data): Remove la_filename_extensions initializer.
3852 (f_language::filename_extensions): New member function.
3853 * go-lang.c (go_language_data): Remove la_filename_extensions
3854 initializer.
3855 * language.c (add_set_language_command): Update now that
3856 filename_extensions returns a vector.
3857 (unknown_language_data): Remove la_filename_extensions
3858 initializer.
3859 (auto_language_data): Likewise.
3860 * language.h (language_data): Remove la_filename_extensions field.
3861 (language_defn::filename_extensions): New member function.
3862 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3863 initializer.
3864 * objc-lang.c (objc_extensions): Delete, moved into
3865 objc_language::filename_extensions.
3866 (objc_language_data): Remove la_filename_extensions initializer.
3867 (objc_language::filename_extensions): New member function.
3868 * opencl-lang.c (opencl_language_data): Remove
3869 la_filename_extensions initializer.
3870 * p-lang.c (pascal_extensions): Delete, moved into
3871 pascal_language::filename_extensions.
3872 (pascal_language_data): Remove la_filename_extensions initializer.
3873 (pascal_language::filename_extensions): New member function.
3874 * rust-lang.c (rust_extensions): Delete, moved into
3875 rust_language::filename_extensions.
3876 (rust_language_data): Remove la_filename_extensions initializer.
3877 (rust_language::filename_extensions): New member function.
3878 * symfile.c (add_filename_language): Add new assert.
3879
6f7664a9
AB
38802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3881
3882 * ada-lang.c (ada_language_data): Remove la_name and
3883 la_natural_name initializers.
3884 (ada_language::name): New member function.
3885 (ada_language::natural_name): New member function.
3886 * c-lang.c (c_language_data): Remove la_name and
3887 la_natural_name initializers.
3888 (c_language::name): New member function.
3889 (c_language::natural_name): New member function.
3890 (cplus_language_data): Remove la_name and
3891 la_natural_name initializers.
3892 (cplus_language::name): New member function.
3893 (cplus_language::natural_name): New member function.
3894 (asm_language_data): Remove la_name and
3895 la_natural_name initializers.
3896 (asm_language::name): New member function.
3897 (asm_language::natural_name): New member function.
3898 (minimal_language_data): Remove la_name and
3899 la_natural_name initializers.
3900 (minimal_language::name): New member function.
3901 (minimal_language::natural_name): New member function.
3902 * compile/compile.c (compile_to_object): Update call to
3903 lanugage_defn::name.
3904 * d-lang.c (d_language_data): Remove la_name and
3905 la_natural_name initializers.
3906 (d_language::name): New member function.
3907 (d_language::natural_name): New member function.
3908 * expprint.c (print_subexp_standard): Update call to
3909 language_defn::name.
3910 (dump_raw_expression): Likewise
3911 (dump_prefix_expression): Likewise.
3912 * f-lang.c (f_language_data): Remove la_name and
3913 la_natural_name initializers.
3914 (f_language::name): New member function.
3915 (f_language::natural_name): New member function.
3916 * go-lang.c (go_language_data): Remove la_name and
3917 la_natural_name initializers.
3918 (go_language::name): New member function.
3919 (go_language::natural_name): New member function.
3920 * language.c (show_language_command): Update call to
3921 language_defn::name.
3922 (set_language_command): Likewise.
3923 (language_enum): Likewise.
3924 (language_str): Likewise.
3925 (add_set_language_command): Likewise, use
3926 language_defn::natural_name in the doc string.
3927 (unknown_language_data): Remove la_name and
3928 la_natural_name initializers.
3929 (unknown_language::name): New member function.
3930 (unknown_language::natural_name): New member function.
3931 (auto_language_data): Remove la_name and
3932 la_natural_name initializers.
3933 (auto_language::name): New member function.
3934 (auto_language::natural_name): New member function.
3935 (language_lookup_primitive_type_as_symbol): Update call to
3936 language_defn::name.
3937 * language.h (language_data): Remove la_name and la_natural_name
3938 member variables.
3939 (language_defn::name): New member function.
3940 (language_defn::natural_name): New member function.
3941 * m2-lang.c (m2_language_data): Remove la_name and
3942 la_natural_name initializers.
3943 (m2_language::name): New member function.
3944 (m2_language::natural_name): New member function.
3945 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3946 language_defn::natural_name.
3947 * objc-lang.c (objc_language_data): Remove la_name and
3948 la_natural_name initializers.
3949 (objc_language::name): New member function.
3950 (objc_language::natural_name): New member function.
3951 * opencl-lang.c (opencl_language_data): Remove la_name and
3952 la_natural_name initializers.
3953 (opencl_language::name): New member function.
3954 (opencl_language::natural_name): New member function.
3955 * p-lang.c (pascal_language_data): Remove la_name and
3956 la_natural_name initializers.
3957 (pascal_language::name): New member function.
3958 (pascal_language::natural_name): New member function.
3959 * rust-lang.c (rust_language_data): Remove la_name and
3960 la_natural_name initializers.
3961 (rust_language::name): New member function.
3962 (rust_language::natural_name): New member function.
3963 * symtab.c (lookup_language_this): Update call to
3964 language_defn::name.
3965
5bae7c4e
AB
39662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3967
3968 * ada-lang.c (ada_language_data): Remove la_name_of_this
3969 initializer.
3970 * ax-gdb.c (gen_expr): Update call to name_of_this.
3971 * c-exp.y (classify_name): Likewise.
3972 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3973 (cplus_language_data): Likewise.
3974 (cplus_language::name_of_this): New member function.
3975 (asm_language_data): Remove la_name_of_this initializer.
3976 (minimal_language_data): Likewise.
3977 * d-lang.c (d_language_data): Likewise.
3978 (d_language::name_of_this): New member function.
3979 * expprint.c (print_subexp_standard): Update call to name_of_this.
3980 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3981 * go-lang.c (go_language_data): Likewise.
3982 * language.c (unknown_language_data): Likewise.
3983 (unknown_language::name_of_this): New member function.
3984 (auto_language_data): Remove la_name_of_this initializer.
3985 (auto_language::name_of_this): New member function.
3986 * language.h (language_data): Delete la_name_of_this member
3987 variable.
3988 (language_defn::name_of_this): New member function.
3989 * m2-lang.c (m2_language_data): Remove la_name_of_this
3990 initializer.
3991 * objc-lang.c (objc_language_data): Likewise.
3992 (objc_language::name_of_this): New member function.
3993 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3994 initializer.
3995 * p-lang.c (pascal_language_data): Likewise.
3996 (pascal_language::name_of_this): New member function.
3997 * rust-lang.c (rust_language_data): Remove la_name_of_this
3998 initializer.
3999 * symtab.c (lookup_language_this): Update call to name_of_this.
4000 (lookup_symbol_aux): Likewise.
4001 * valops.c (value_of_this): Likewise.
4002
22e3f3ed
AB
40032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4004
4005 * ada-lang.c (ada_language_data): Remove
4006 la_struct_too_deep_ellipsis initializer.
4007 (ada_language::struct_too_deep_ellipsis): New member function.
4008 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4009 initializer.
4010 (cplus_language_data): Likewise.
4011 (asm_language_data): Likewise.
4012 (minimal_language_data): Likewise.
4013 * cp-valprint.c (cp_print_value): Update call to
4014 struct_too_deep_ellipsis.
4015 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4016 initializer.
4017 * f-lang.c (f_language_data): Likewise.
4018 (f_language::struct_too_deep_ellipsis): New member function.
4019 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4020 initializer.
4021 * language.c (unknown_language_data): Likewise.
4022 (auto_language_data): Likewise.
4023 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4024 member variable.
4025 (language_defn::struct_too_deep_ellipsis): New member function.
4026 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4027 initializer.Q
4028 * objc-lang.c (objc_language_data): Likewise.
4029 * opencl-lang.c (opencl_language_data): Likewise.
4030 * p-lang.c (pascal_language_data): Likewise.
4031 * rust-lang.c (rust_language_data): Likewise.
4032 * valprint.c (val_print_check_max_depth): Update call to
4033 struct_too_deep_ellipsis.
4034
ed29e1c7
FW
40352020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4036
4037 * MAINTAINERS (Write After Approval): Add myself.
4038
12d8f940
TT
40392020-09-15 Tom Tromey <tom@tromey.com>
4040
4041 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4042 Remove.
4043
6b5a7bc7
TT
40442020-09-15 Tom Tromey <tom@tromey.com>
4045
4046 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4047 and TYPE_CODE_METHODPTR cases.
4048 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4049 (c_value_print_inner): Update.
4050 * valprint.c (generic_value_print_memberptr): New function, from
4051 c_value_print_memberptr.
4052 (generic_value_print): Use it. Call cplus_print_method_ptr.
4053
47f0e2ff
TT
40542020-09-15 Tom Tromey <tromey@adacore.com>
4055
4056 * python/python-internal.h (PyInt_FromLong): Remove define.
4057 * python/py-value.c (convert_value_from_python): Use
4058 gdb_py_object_from_longest.
4059 * python/py-type.c (typy_get_code): Use
4060 gdb_py_object_from_longest.
4061 * python/py-symtab.c (salpy_get_line): Use
4062 gdb_py_object_from_longest.
4063 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4064 gdb_py_object_from_longest.
4065 * python/py-record.c (recpy_gap_reason_code): Use
4066 gdb_py_object_from_longest.
4067 * python/py-record-btrace.c (recpy_bt_insn_size)
4068 (recpy_bt_func_level, btpy_list_count): Use
4069 gdb_py_object_from_longest.
4070 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4071 gdb_py_object_from_longest. Fix error handling.
4072 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4073 gdb_py_object_from_longest.
4074 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4075 gdb_py_object_from_longest.
4076 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4077 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4078 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4079
512116ce
TT
40802020-09-15 Tom Tromey <tromey@adacore.com>
4081
4082 * python/python.c (gdbpy_parameter_value): Use
4083 gdb_py_object_from_ulongest.
4084
4ab1029c
TT
40852020-09-15 Tom Tromey <tromey@adacore.com>
4086
4087 * python/py-infevents.c (create_register_changed_event_object):
4088 Use gdb_py_object_from_longest.
4089 * python/py-exitedevent.c (create_exited_event_object): Use
4090 gdb_py_object_from_longest.
4091
062534d4
TT
40922020-09-15 Tom Tromey <tromey@adacore.com>
4093
4094 * python/python.c (gdbpy_parameter_value): Use
4095 gdb_py_object_from_longest.
4096 * python/py-type.c (convert_field, typy_range): Use
4097 gdb_py_object_from_longest.
4098 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4099 gdb_py_object_from_longest.
4100 * python/py-lazy-string.c (stpy_get_length): Use
4101 gdb_py_object_from_longest.
4102 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4103 gdb_py_object_from_longest.
4104 * python/py-infevents.c (create_memory_changed_event_object): Use
4105 gdb_py_object_from_longest.
4106 * python/py-inferior.c (infpy_get_num): Use
4107 gdb_py_object_from_longest.
4108 (infpy_get_pid): Likewise.
4109
d1cab987
TT
41102020-09-15 Tom Tromey <tromey@adacore.com>
4111
4112 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4113 defines.
4114 * python/py-value.c (valpy_long): Use
4115 gdb_py_object_from_ulongest.
4116 * python/py-symtab.c (salpy_get_pc): Use
4117 gdb_py_object_from_ulongest.
4118 (salpy_get_last): Likewise.
4119 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4120 gdb_py_object_from_ulongest.
4121 * python/py-lazy-string.c (stpy_get_address): Use
4122 gdb_py_object_from_ulongest.
4123 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4124 * python/py-arch.c (archpy_disassemble): Use
4125 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4126 error handling.
4127
4bde49dc
TT
41282020-09-15 Tom Tromey <tromey@adacore.com>
4129
4130 * python/python-internal.h (gdb_py_long_from_longest): Remove
4131 defines.
4132 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4133 * python/py-type.c (convert_field, typy_get_sizeof): Use
4134 gdb_py_object_from_longest.
4135 * python/py-record-btrace.c (btpy_list_index): Use
4136 gdb_py_object_from_longest.
4137
37431074
TT
41382020-09-15 Tom Tromey <tromey@adacore.com>
4139
4140 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4141 * python/py-record.c (recpy_element_number): Use
4142 gdb_py_object_from_longest.
4143 (recpy_gap_number): Likewise.
4144
cbe25684
TT
41452020-09-15 Tom Tromey <tromey@adacore.com>
4146
4147 * top.c (ui::ui): Update.
4148 (highest_ui_num): Remove.
4149 * top.h (struct ui) <num>: Remove.
4150
db92ac45
TT
41512020-09-15 Tom Tromey <tromey@adacore.com>
4152
4153 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4154 * ui-style.c (ansi_regex_text): Now array.
4155 * rust-exp.y (number_regex_text): Now array.
4156 * linespec.c (linespec_quote_characters): Now array.
4157 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4158 Now arrays.
4159
d2b31b67
SM
41602020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4161
4162 * debuginfod-support.c (debuginfod_client_deleter): New.
4163 (debuginfod_client_up): New.
4164 (debuginfod_init): Return debuginfod_client_up.
4165 (debuginfod_source_query): Adjust.
4166 (debuginfod_debuginfo_query): Adjust.
4167
3246bd8e
SM
41682020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4169
4170 * debuginfod-support.c (debuginfod_source_query): Use
4171 make_unique_xstrdup.
4172
10242f36
SM
41732020-09-14 Simon Marchi <simon.marchi@efficios.com>
4174
4175 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4176 with `type::instance_flags`.
4177
e1044e6a
MM
41782020-09-14 Michael Mullin <masmullin@gmail.com>
4179
4180 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4181 Remove baton parameter.
4182
04902b09
PA
41832020-09-14 Pedro Alves <pedro@palves.net>
4184
4185 * Makefile.in (SELFTESTS_SRCS): Add
4186 unittests/enum-flags-selftests.c.
4187 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4188 btrace_function_flags instead of enum btrace_function_flag.
4189 * compile/compile-c-types.c (convert_qualified): Use
4190 enum_flags::raw.
4191 * compile/compile-cplus-symbols.c (convert_one_symbol)
4192 (convert_symbol_bmsym):
4193 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4194 (compile_cplus_convert_struct_or_union_methods)
4195 (compile_cplus_instance::convert_qualified_base):
4196 * go-exp.y (parse_string_or_char): Add cast to int.
4197 * unittests/enum-flags-selftests.c: New file.
4198 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4199 type to btrace_thread_flags from btrace_thread_flag.
4200 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4201 local's type to btrace_thread_flags from btrace_thread_flag. Add
4202 cast in DEBUG call.
4203
69896a2c
PA
42042020-09-14 Pedro Alves <pedro@palves.net>
4205
4206 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4207 * gdbtypes.c (address_space_name_to_int): Rename to ...
4208 (address_space_name_to_type_instance_flags): ... this.
4209 (address_space_int_to_name): Rename to ...
4210 (address_space_type_instance_flags_to_name): ... this.
4211 * gdbtypes.h (address_space_name_to_int): Rename to ...
4212 (address_space_name_to_type_instance_flags): ... this.
4213 (address_space_int_to_name): Rename to ...
4214 (address_space_type_instance_flags_to_name): ... this.
4215 * type-stack.c (type_stack::insert): Adjust to rename.
4216 * type-stack.h (type_stack::insert): Likewise.
4217
314ad88d
PA
42182020-09-14 Pedro Alves <pedro@palves.net>
4219 Andrew Burgess <andrew.burgess@embecosm.com>
4220
4221 * avr-tdep.c (avr_address_class_type_flags): Return
4222 type_instance_flags.
4223 (avr_address_class_type_flags_to_name): Take a
4224 type_instance_flags.
4225 (avr_address_class_name_to_type_flags): Return bool and take a
4226 type_instance_flags.
4227 * d-lang.c (build_d_types): Use type::set_instance_flags.
4228 * ft32-tdep.c (ft32_address_class_type_flags): Return
4229 type_instance_flags.
4230 (ft32_address_class_type_flags_to_name): Take a
4231 type_instance_flags.
4232 (ft32_address_class_name_to_type_flags): Return bool and take a
4233 type_instance_flags.
4234 (ft32_gdbarch_init): Use type::set_instance_flags.
4235 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4236 * gdbarch.h, gdbarch.c: Regenerate.
4237 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4238 (address_class_name_to_type_flags): Use type_instance_flags and
4239 bool.
4240 * gdbtypes.c (address_space_name_to_int)
4241 (address_space_int_to_name, make_qualified_type): Use
4242 type_instance_flags.
4243 (make_qualified_type): Use type_instance_flags and
4244 type::set_instance_flags.
4245 (make_type_with_address_space, make_cv_type, make_vector_type)
4246 (check_typedef): Use type_instance_flags.
4247 (recursive_dump_type): Cast type_instance_flags to unsigned for
4248 printing.
4249 (copy_type_recursive): Use type::set_instance_flags.
4250 (gdbtypes_post_init): Use type::set_instance_flags.
4251 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4252 <m_instance_flags>: ... this.
4253 <instance_flags, set_instance_flags>: New methods.
4254 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4255 (SET_TYPE_INSTANCE_FLAGS): New.
4256 (address_space_name_to_int, address_space_int_to_name)
4257 (make_type_with_address_space): Pass flags using
4258 type_instance_flags instead of int.
4259 * stabsread.c (cleanup_undefined_types_noname): Use
4260 type::set_instance_flags.
4261 * s390-tdep.c (s390_address_class_type_flags): Return
4262 type_instance_flags.
4263 (s390_address_class_type_flags_to_name): Take a
4264 type_instance_flags.
4265 (s390_address_class_name_to_type_flags): Return bool and take a
4266 type_instance_flags.
4267 * type-stack.c (type_stack::follow_types): Use
4268 type_instance_flags.
4269 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4270
27087b7f
TT
42712020-09-14 Tom Tromey <tromey@adacore.com>
4272
4273 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4274 * x86-tdep.c (x86_is_thunk_register_name)
4275 (x86_in_indirect_branch_thunk): Update.
4276 * sparc64-tdep.c (sparc64_fpu_register_names)
4277 (sparc64_cp0_register_names, sparc64_register_names)
4278 (sparc64_pseudo_register_names): Now const.
4279 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4280 cp0_registers_num>: Now const.
4281 * sparc-tdep.c (sparc_core_register_names)
4282 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4283 (sparc32_pseudo_register_names): Now const.
4284 (validate_tdesc_registers): Update.
4285 * rust-lang.c (rust_extensions): Now const.
4286 * p-lang.c (p_extensions): Now const.
4287 * objc-lang.c (objc_extensions): Now const.
4288 * nto-tdep.c (nto_thread_state_str): Now const.
4289 * moxie-tdep.c (moxie_register_names): Now const.
4290 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4291 Now const.
4292 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4293 (mips_linux_reg_names): Now const.
4294 (mips_gdbarch_init): Update.
4295 * microblaze-tdep.c (microblaze_register_names): Now const.
4296 * m68k-tdep.c (m68k_register_names): Now const.
4297 * m32r-tdep.c (m32r_register_names): Now const.
4298 * ia64-tdep.c (ia64_register_names): Now const.
4299 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4300 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4301 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4302 ymm_avx512_register_names, pkeys_register_names>: Now const.
4303 * i386-tdep.c (i386_register_names, i386_zmm_names)
4304 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4305 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4306 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4307 * f-lang.c (f_extensions): Now const.
4308 * d-lang.c (d_extensions): Now const.
4309 * csky-tdep.c (csky_register_names): Now const.
4310 * charset.c (default_charset_names, charset_enum): Now const.
4311 (_initialize_charset): Update.
4312 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4313 const.
4314 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4315 (bsd_uthread_solib_loaded): Update.
4316 (bsd_uthread_state): Now const.
4317 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4318 (amd64_ymm_avx512_names, amd64_ymmh_names)
4319 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4320 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4321 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4322 (amd64_dword_names): Now const.
4323 * agent.c (can_use_agent_enum): Now const.
4324 * ada-tasks.c (task_states, long_task_states): Now const.
4325 * ada-lang.c (known_runtime_file_name_patterns)
4326 (known_auxiliary_function_name_patterns, attribute_names)
4327 (standard_exc, ada_extensions): Now const.
4328
89806626
SM
43292020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4330
4331 * bcache.h (struct bcache) <bcache>: Remove constructor.
4332 <m_hash_function, m_compare_function>: Remove.
4333 <~bcache>: Make virtual.
4334 <compare>: Remove static method, introduce virtual method.
4335 <default_hash>: Remove.
4336 <hash>: New virtual method.
4337 * bcache.c (bcache::expand_hash_table): Update.
4338 (bcache::insert): Update.
4339 (bcache::hash): New.
4340 (bcache::compare): Update comment and parameter names.
4341 * gdbtypes.c (types_deeply_equal): Update.
4342 * psymtab.h (struct psymbol_bcache): New struct.
4343 (class psymtab_storage) <psymtab_storage>: Make default.
4344 <psymbol_cache>: Change type to psymbol_bcache.
4345 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4346 (psymbol_hash): Change to...
4347 (psymbol_bcache::hash): ... this.
4348 (psymbol_compare): Change to...
4349 (psymbol_bcache::compare): ... this.
4350
677c92fe
SM
43512020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4352
4353 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4354 checking for initial lwp.
4355
3eba3a01
TT
43562020-09-14 Tom Tromey <tromey@adacore.com>
4357
4358 * m68k-tdep.c (m68k_extract_return_value): Use
4359 pointer_result_regnum.
4360 (m68k_store_return_value): Likewise.
4361 (m68k_reg_struct_return_p): Handle vectors and arrays.
4362 (m68k_return_value): Handle arrays.
4363 (m68k_svr4_return_value): Fix single-element aggregate handling.
4364 Handle long double. Adjust for embedded ABI.
4365 (m68k_svr4_init_abi): Set pointer_result_regnum.
4366 (m68k_embedded_init_abi): New function.
4367 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4368 (m68k_osabi_sniffer): New function.
4369 (_initialize_m68k_tdep): Register osabi sniffer.
4370 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4371 member.
4372
33f4dd48
SM
43732020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4374
4375 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4376 with gdb::unique_xmalloc_ptr<char>.
4377
8400a90d
SM
43782020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4379
4380 * xml-support.h (xml_fetch_another): Change type to be a
4381 function_view.
4382 (xml_process_xincludes): Remove baton parameter.
4383 (xml_fetch_content_from_file): Change baton parameter to
4384 dirname.
4385 * xml-support.c (struct xinclude_parsing_data)
4386 <xinclude_parsing_data>: Remove baton parameter.
4387 <fetcher_baton>: Remove.
4388 (xinclude_start_include): Adjust.
4389 (xml_process_xincludes): Adjust.
4390 (xml_fetch_content_from_file): Replace baton parameter with
4391 dirname.
4392 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4393 (xml_init_syscalls_info): Use a lambda.
4394 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4395 (file_read_description_xml): Use a lambda.
4396 (fetch_available_features_from_target): Change baton parameter
4397 to target_ops.
4398 (target_read_description_xml): Use a lambda.
4399 (target_fetch_description_xml): Use a lambda.
4400 (string_read_description_xml): Update.
4401
04f5bab2
SM
44022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4403
4404 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4405 uses with type::endianity_is_not_default.
4406
db558e34
SM
44072020-09-14 Simon Marchi <simon.marchi@efficios.com>
4408
4409 * gdbtypes.h (struct type) <endianity_is_not_default,
4410 set_endianity_is_not_default>: New methods.
4411 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4412 type::endianity_is_not_default, change all write call sites to
4413 use type::set_endianity_is_not_default.
4414
22c4c60c
SM
44152020-09-14 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4418 uses with type::is_fixed_instance.
4419
9cdd0d12
SM
44202020-09-14 Simon Marchi <simon.marchi@efficios.com>
4421
4422 * gdbtypes.h (struct type) <is_fixed_instance,
4423 set_is_fixed_instance>: New methods.
4424 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4425 write call sites to use type::set_is_fixed_instance.
4426
0becda7a
SM
44272020-09-14 Simon Marchi <simon.marchi@efficios.com>
4428
4429 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4430 uses with type::is_gnu_ifunc.
4431
03cc7249
SM
44322020-09-14 Simon Marchi <simon.marchi@efficios.com>
4433
4434 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4435 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4436 use type::set_is_gnu_ifunc.
4437
3f46044c
SM
44382020-09-14 Simon Marchi <simon.marchi@efficios.com>
4439
4440 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4441 uses with type::stub_is_supported.
4442
9baccff6
SM
44432020-09-14 Simon Marchi <simon.marchi@efficios.com>
4444
4445 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4446 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4447 use type::set_stub_is_supported.
4448
bd63c870
SM
44492020-09-14 Simon Marchi <simon.marchi@efficios.com>
4450
4451 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4452 uses with type::is_vector.
4453
2062087b
SM
44542020-09-14 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4457 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4458 use type::set_is_vector.
4459
a409645d
SM
44602020-09-14 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4463 uses with type::has_varargs.
4464
1d6286ed
SM
44652020-09-14 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4468 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4469 use type::set_has_varargs.
4470
7f9f399b
SM
44712020-09-14 Simon Marchi <simon.marchi@efficios.com>
4472
4473 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4474 uses with type::is_prototyped.
4475
27e69b7a
SM
44762020-09-14 Simon Marchi <simon.marchi@efficios.com>
4477
4478 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4479 New methods.
4480 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4481 call sites to use type::set_is_prototyped.
4482
d2183968
SM
44832020-09-14 Simon Marchi <simon.marchi@efficios.com>
4484
4485 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4486 uses with type::target_is_stub.
4487
8f53807e
SM
44882020-09-14 Simon Marchi <simon.marchi@efficios.com>
4489
4490 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4491 New methods.
4492 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4493 sites to use type::set_target_is_stub.
4494
e46d3488
SM
44952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4496
4497 * gdbtypes.h (TYPE_STUB): Remove, replace all
4498 uses with type::is_stub.
4499
b4b73759
SM
45002020-09-14 Simon Marchi <simon.marchi@efficios.com>
4501
4502 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4503 (TYPE_STUB): Use type::is_stub, change all write call sites to
4504 use type::set_is_stub.
4505
20ce4123
SM
45062020-09-14 Simon Marchi <simon.marchi@efficios.com>
4507
4508 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4509 type::has_no_signedness.
4510
15152a54
SM
45112020-09-14 Simon Marchi <simon.marchi@efficios.com>
4512
4513 * gdbtypes.h (struct type) <has_no_signedness,
4514 set_has_no_signedness>: New methods.
4515 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4516 call sites to use type::set_has_no_signedness.
4517
c6d940a9
SM
45182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4519
4520 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4521 type::is_unsigned.
4522
653223d3
SM
45232020-09-14 Simon Marchi <simon.marchi@efficios.com>
4524
4525 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4526 methods.
4527 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4528 sites to use type::set_is_unsigned.
4529
55ea94da 45302020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4531 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4532
e851246a
SM
4533 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4534 pointer and stack frame offset when unwinding.
55ea94da 4535
6791b117
PA
45362020-09-13 Pedro Alves <pedro@palves.net>
4537
4538 * NEWS: Document "-break-insert --qualified".
4539 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4540
77f2120b
PA
45412020-09-13 Pedro Alves <pedro@palves.net>
4542
4543 * linespec.c (classify_mtype, compare_msyms): Delete.
4544 (search_minsyms_for_name): Remove classification logic. Instead
4545 filter out trampoline symbols if we also found an external
4546 function of the same name.
4547
ed6a896c
JB
45482020-09-13 Joel Brobecker <brobecker@adacore.com>
4549
4550 * NEWS: Create a new section for the next release branch.
4551 Rename the section of the current branch, now that it has
4552 been cut.
4553
32aea73e
JB
45542020-09-13 Joel Brobecker <brobecker@adacore.com>
4555
4556 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4557 * version.in: Bump version to 11.0.50.DATE-git.
4558
8087c3fa
JB
45592020-09-12 Joel Brobecker <brobecker@adacore.com>
4560
4561 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4562
2a67f09d
FW
45632020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4564 Felix Willgerodt <Felix.Willgerodt@intel.com>
4565
4566 * gdbarch.sh: Added bfloat16 type.
4567 * gdbarch.c: Regenerated.
4568 * gdbarch.h: Regenerated.
4569 * gdbtypes.c (floatformats_bfloat16): New struct.
4570 (gdbtypes_post_init): Add builtin_bfloat16.
4571 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4572 (floatformats_bfloat16): New struct.
4573 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4574 (i386_ymm_type): Add field "v16_bfloat16"
4575 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4576 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4577 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4578 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4579 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4580 * features/i386/64bit-avx512.c: Regenerated.
4581 * features/i386/64bit-sse.xml: Add bfloat16 type.
4582 * features/i386/64bit-sse.c: Regenerated.
4583
1347d111
FW
45842020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4585
4586 * i386-tdep.c (i386_zmm_type): Fix field names.
4587 (i386_ymm_type): Fix field names.
4588
7a4e8e7d
TBA
45892020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4590
4591 * breakpoint.c: Fix typo in the help message of the
4592 "set breakpoint condition-evaluation" command.
4593
cf4ac4be
KR
45942020-09-10 Kamil Rytarowski <n54@gmx.com>
4595
4596 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4597 * (nbsd_nat_target::pid_to_exec_file)
4598 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4599 (nbsd_nat_target::post_startup_inferior)
4600 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4601 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4602 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4603 * (nbsd_thread_lister): Remove.
4604
f404573e
KR
46052020-09-10 Kamil Rytarowski <n54@gmx.com>
4606
4607 * fork-inferior.c (startup_inferior): Avoid double free.
4608
1ccb2c17
KR
46092020-09-10 Kamil Rytarowski <n54@gmx.com>
4610
4611 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4612 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4613
feedfcc7
KR
46142020-09-10 Kamil Rytarowski <n54@gmx.com>
4615
4616 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4617 * netbsd-nat.c: Include <sys/ptrace.h>.
4618 * (netbsd_nat::enable_proc_events): Add.
4619
c489f8c6
KR
46202020-09-10 Kamil Rytarowski <n54@gmx.com>
4621
4622 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4623 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4624 (netbsd_nat::for_each_thread): Add.
4625 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4626 "gdbsupport/common-debug.h".
4627 * (netbsd_nat::netbsd_thread_lister)
4628 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4629 (netbsd_nat::for_each_thread): Add.
4630
330662f6
KR
46312020-09-10 Kamil Rytarowski <n54@gmx.com>
4632
4633 * netbsd-nat.h: Include <unistd.h>.
4634 * (netbsd_nat::pid_to_exec_file): Add.
4635 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4636 * (netbsd_nat::pid_to_exec_file) Add.
4637
70b67307
KR
46382020-09-10 Kamil Rytarowski <n54@gmx.com>
4639
4640 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4641
99cf6da6
KR
46422020-09-10 Kamil Rytarowski <n54@gmx.com>
4643
4644 * netbsd-nat.h: New file.
4645 * netbsd-nat.c: Likewise.
4646
1b788fb6
TT
46472020-09-09 Tom Tromey <tromey@adacore.com>
4648
4649 * ada-lang.c (remove_extra_symbols): Do not increment when
4650 removing an element
4651
03b0a45f
TT
46522020-09-08 Tom Tromey <tromey@adacore.com>
4653
4654 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4655
3cae4447
TT
46562020-09-08 Tom Tromey <tromey@adacore.com>
4657
4658 PR win32/25302:
4659 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4660 (gdb_bfd_init_data): New function.
4661 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4662
7f08fd51
TBA
46632020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4664
4665 * infrun.c (fetch_inferior_event): Use
4666 `switch_to_target_no_thread` to switch the target.
4667
3e6ff933
TT
46682020-09-06 Tom Tromey <tom@tromey.com>
4669
4670 * symfile.h (dwarf2_free_objfile): Don't declare.
4671
e56798df
AKS
46722020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4673
4674 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4675 to match 16 byte real/complex type generated by Flang compiler.
4676
8f5c6526
TV
46772020-09-03 Tom de Vries <tdevries@suse.de>
4678
4679 PR breakpoint/26546
4680 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4681 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4682
c5065df0
SM
46832020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4684
4685 * maint.c (index_digits): New function.
4686 (struct maint_print_section_data): Remove.
4687 (print_bfd_section_info): Remove print_data parameter, add arg
4688 and index_digits.
4689 (print_objfile_section_info): Likewise.
4690 (print_bfd_section_info_maybe_relocated): Likewise (plus
4691 objfile).
4692 (maintenance_info_sections): Adjust calls.
4693
02c6f3f1
TT
46942020-09-02 Tom Tromey <tromey@adacore.com>
4695
4696 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4697 for null pointers.
4698 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4699
ef5e5b0b
SM
47002020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4701
4702 * bcache.h (struct bcache) <insert>: Change type of `added` to
4703 pointer to bool.
4704 * bcache.c (bcache::insert): Likewise.
4705 * gdbtypes.c (check_types_worklist): Adjust.
4706 * psymtab.c (add_psymbol_to_bcache): Adjust.
4707
973695d6
KB
47082020-08-31 Kevin Buettner <kevinb@redhat.com>
4709
4710 * corelow.c (unordered_set): Include.
4711 (class core_target): Add field 'm_core_unavailable_mappings'.
4712 (core_target::build_file_mappings): Print only one warning
4713 per inaccessible file. Add unavailable/broken mappings
4714 to m_core_unavailable_mappings.
4715 (core_target::xfer_partial): Call...
4716 (core_target::xfer_memory_via_mappings): New method.
4717
264fc0e2
SM
47182020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4719
4720 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4721 type to bool.
4722
2de01bdb
SM
47232020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4724
4725 * dwarf2/read.c (struct field_info): Fix indentation.
4726
f3bd50f1
SM
47272020-08-31 Simon Marchi <simon.marchi@efficios.com>
4728
4729 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4730 ordering in comment.
4731 * frame.c (frame_id_eq): Fix indentation.
4732
22b9b4b0
SL
47332020-08-31 Scott Linder <scott@scottlinder.com>
4734 Simon Marchi <simon.marchi@efficios.com>
4735
4736 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4737 inline frame ids in outer frame.
4738
84154d16
SM
47392020-08-31 Simon Marchi <simon.marchi@efficios.com>
4740
4741 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4742 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4743 (outer_frame_id): Use FID_STACK_OUTER instead of
4744 FID_STACK_INVALID.
4745 (frame_id_p): Don't check for outer_frame_id.
4746
8efaf6b3
SM
47472020-08-31 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4750 regnum/frame in value. Call allocate_value_lazy.
4751 * frame.c (frame_unwind_register_value): Use
4752 val_print_not_saved.
4753
fe1fe7ea
SM
47542020-08-31 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4757
f7c7700d
PA
47582020-08-29 Pedro Alves <pedro@palves.net>
4759
4760 * progspace.c (print_program_space): Use all_inferiors. Switch to
4761 the inferior before calling target_pid_to_str.
4762
e0814aae
TT
47632020-08-28 Tom Tromey <tom@tromey.com>
4764
4765 * xcoffread.c (xcoff_end_psymtab): Update comment.
4766 * dbxread.c (dbx_end_psymtab): Update comment.
4767
626d2320
TV
47682020-08-28 Tom de Vries <tdevries@suse.de>
4769
4770 PR breakpoint/26544
4771 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4772 event_location.
4773 (create_breakpoint): Same.
4774 (base_breakpoint_decode_location): Same.
4775 (bkpt_create_sals_from_location): Same.
4776 (bkpt_decode_location): Same.
4777 (bkpt_probe_create_sals_from_location): Same.
4778 (bkpt_probe_decode_location): Same.
4779 (tracepoint_create_sals_from_location): Same.
4780 (tracepoint_decode_location): Same.
4781 (tracepoint_probe_decode_location): Same.
4782 (strace_marker_create_sals_from_location): Same.
4783 (strace_marker_decode_location): Same.
4784 (create_sals_from_location_default): Same.
4785 (decode_location_default): Same.
4786 * breakpoint.h (struct breakpoint_ops): Same.
4787 (create_breakpoint): Same.
4788 * linespec.h (decode_line_full): Same.
4789 * linespec.c (decode_line_full): Same. Throw error if
4790 result.size () == 0.
4791
df631783
PA
47922020-08-27 Pedro Alves <pedro@palves.net>
4793
4794 PR gdb/26524
4795 * breakpoint.c (until_break_fsm) <location_breakpoint,
4796 caller_breakpoint>: Delete fields.
4797 <breakpoints>: New field.
4798 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4799 two individual breakpoints.
4800 (until_break_fsm::should_stop): Loop over breakpoints in the
4801 breakpoint vector.
4802 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4803 vector.
4804 (until_break_command): Handle location expanding into multiple
4805 sals.
4806
b2b38aa4
PA
48072020-08-27 Pedro Alves <pedro@palves.net>
4808
4809 PR gdb/26523
4810 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4811 bp_until breakpoints user-specified locations. Update intro
4812 comment.
4813
b886559f
SM
48142020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4815
4816 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4817 gdb_bfd_sections): New.
4818 * maint.c (print_bfd_section_info): Change param type to
4819 maint_print_section_data.
4820 (print_objfile_section_info): Likewise.
4821 (print_bfd_section_info_maybe_relocated): Likewise.
4822 (maintenance_info_sections): Use gdb_bfd_sections.
4823
4c6e63bf
SV
48242020-08-25 Shahab Vahedi <shahab@synopsys.com>
4825
4826 * MAINTAINERS: Add ARC target and maintainer.
4827
8d7f0635
AK
48282020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4829
4830 * configure.tgt: ARC support for GNU/Linux.
4831 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4832 * arc-linux-tdep.c: New file.
4833 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4834 * arc-tdep.c (arc_write_pc): Use it.
4835
fdd8731b
SV
48362020-08-25 Shahab Vahedi <shahab@synopsys.com>
4837
4838 * arc-tdep.c (arc_check_for_hardware_loop): New.
4839 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4840
22459524
SV
48412020-08-25 Shahab Vahedi <shahab@synopsys.com>
4842
4843 * arc-tdep.h: Include "gdbarch.h".
4844
995d3a19
SV
48452020-08-25 Shahab Vahedi <shahab@synopsys.com>
4846
4847 * arch/arc.h
4848 (arc_gdbarch_features): New class to stir the selection of target XML.
4849 (arc_create_target_description): Use FEATURES to choose XML target.
4850 (arc_lookup_target_description): Use arc_create_target_description
4851 to create _new_ target descriptions or return the already created
4852 ones if the FEATURES is the same.
4853 * arch/arc.c: Implementation of prototypes described above.
4854 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4855 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4856 * arc-tdep.c (*_feature_name): Make feature names consistent.
4857 (arc_register_feature): A new struct to hold information about
4858 registers of a particular target/feature.
4859 (arc_check_tdesc_feature): Check if XML provides registers in
4860 compliance with ARC_REGISTER_FEATURE structs.
4861 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4862 (determine_*_reg_feature_set): Which feature name to look for.
4863 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4864 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4865 to expected ISA enums to be used in arc_gdbarch_features structs.
4866 * features/Makefile (FEATURE_XMLFILES): Add new files.
4867 * gdb/features/arc/v1-aux.c: New file.
4868 * gdb/features/arc/v1-aux.xml: Likewise.
4869 * gdb/features/arc/v1-core.c: Likewise.
4870 * gdb/features/arc/v1-core.xml: Likewise.
4871 * gdb/features/arc/v2-aux.c: Likewise.
4872 * gdb/features/arc/v2-aux.xml: Likewise.
4873 * gdb/features/arc/v2-core.c: Likewise.
4874 * gdb/features/arc/v2-core.xml: Likewise.
4875 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4876
3945d2d7
GM
48772020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4878 Andrew Burgess <andrew.burgess@embecosm.com>
4879
4880 PR m2/26372
fc5d6901 4881 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4882 an assert. Remove single element array indexing pattern as the
4883 MULTI_SUBSCRIPT support will handle this case too.
4884
2677f2d3
SM
48852020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4886
4887 * value.h (valprint_check_validity): Move declaration from
4888 here...
4889 * valprint.h (valprint_check_validity): ... to here.
4890
c426fddb
SM
48912020-08-24 Simon Marchi <simon.marchi@efficios.com>
4892
4893 * debug.h: New file.
4894 * debug.c (debug_prefixed_vprintf): New function.
4895 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4896 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4897
1eb8556f
SM
48982020-08-24 Simon Marchi <simon.marchi@efficios.com>
4899
4900 * infrun.h (infrun_debug_printf_1): New function declaration.
4901 (infrun_debug_printf): New macro.
4902 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4903 throughout.
4904 (infrun_debug_printf): New function.
4905 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4906 (handle_jit_event): Likewise.
4907
b8fff44e
MW
49082020-08-21 Mark Wielaard <mark@klomp.org>
4909
4910 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4911
d19c3068
SM
49122020-08-22 Simon Marchi <simon.marchi@efficios.com>
4913
4914 * frame.c (enum class frame_id_status): New.
4915 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4916 (fprintf_frame): Update.
4917 (compute_frame_id): Set frame id status to "computing" on entry.
4918 Set it back to "not_computed" on failure and to "computed" on
4919 success.
4920 (get_frame_id): Assert the frame id is not being computed.
4921 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4922 (create_new_frame): Likewise.
4923 (frame_cleanup_after_sniffer): Update assert.
4924
b70e516e
SM
49252020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4926
4927 * regcache.c (pid_ptid_regcache_map): New type.
4928 (target_ptid_regcache_map): Remove.
4929 (target_pid_ptid_regcache_map): New type.
4930 (regcaches): Change type to target_pid_ptid_regcache_map.
4931 (get_thread_arch_aspace_regcache): Update.
4932 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4933 case.
4934 (regcaches_size): Update.
4935 (regcache_count): Update.
4936 (registers_changed_ptid_target_pid_test): New.
4937 (_initialize_regcache): Register new test.
4938
cdd9148a
SM
49392020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4940
4941 * regcache.c (regcache_count): New.
4942 (struct regcache_test_data): New.
4943 (regcache_test_data_up): New.
4944 (populate_regcaches_for_test): New.
4945 (regcaches_test): Remove.
4946 (get_thread_arch_aspace_regcache_test): New.
4947 (registers_changed_ptid_all_test): New.
4948 (registers_changed_ptid_target_test): New.
4949 (registers_changed_ptid_target_ptid_test): New.
4950 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4951 (_initialize_regcache): Register new tests.
4952
dd125343
SM
49532020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4954
4955 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4956 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4957 gdbarch and aspace parameter. Use current inferior's aspace.
4958 Validate regcache's arch value.
4959 (regcaches_test): Update.
4960
3ee93972
SM
49612020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4962
4963 * regcache.c (regcaches_test): Call registers_changed.
4964
33bf4c5c
TBA
49652020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4966
4967 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4968
c2fd7fae
AKS
49692020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4970
4971 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4972 to find the end of prologue for flang compiled binaries.
4973 * arm-tdep.c (arm_skip_prologue): Likewise.
4974 * i386-tdep.c (i386_skip_prologue): Likewise.
4975 * producer.c (producer_is_llvm): New function.
4976 (producer_parsing_tests): Added new tests for clang/flang.
4977 * producer.h (producer_is_llvm): New declaration.
4978
9327494e
SM
49792020-08-18 Simon Marchi <simon.marchi@efficios.com>
4980
4981 * linux-nat.c (linux_nat_debug_printf): New function.
4982 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4983
d138725a
AM
49842020-08-18 Aaron Merey <amerey@redhat.com>
4985
4986 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4987 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4988 (CLIBS): Add DEBUGINFOD_LIBS.
4989
f9b11e6b
ST
49902020-08-17 Sergei Trofimovich <siarheit@google.com>
4991
4992 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4993 'gdbarch_num_regs'.
4994
3ae7ab99
TT
49952020-08-17 Tom Tromey <tromey@adacore.com>
4996
4997 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4998 ada_get_decoded_value returns NULL.
4999
b017825f
TT
50002020-08-17 Tom Tromey <tromey@adacore.com>
5001
5002 * python/py-inferior.c (infpy_search_memory): Use
5003 gdb_py_object_from_ulongest.
5004 * python/py-infevents.c (create_inferior_call_event_object)
5005 (create_memory_changed_event_object): Use
5006 gdb_py_object_from_ulongest.
5007 * python/py-linetable.c (ltpy_entry_get_pc): Use
5008 gdb_py_object_from_ulongest.
5009
7635cf79
SM
50102020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5011
5012 * loc.c (class symbol_needs_eval_context): Fix indentation.
5013
f54be24b
SM
50142020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5015
5016 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5017 bool.
5018
53d5a2a5
TV
50192020-08-17 Tom de Vries <tdevries@suse.de>
5020
5021 PR gdb/26393
5022 * gdbtypes.c (dump_dynamic_prop): New function.
5023 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5024
547ce8f0
TV
50252020-08-15 Tom de Vries <tdevries@suse.de>
5026
5027 PR backtrace/26390
5028 * stack.c (print_frame_args): Temporarily set the selected
5029 frame to FRAME while printing the frame's arguments.
5030
6ea815e7
PFC
50312020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5032
5033 PR breakpoints/26385
5034 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5035 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5036
6e562fa3
PFC
50372020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5038
5039 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5040 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5041 and >= to check return value instead of == -1 and != -1.
5042
d369b608
SM
50432020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5044
5045 * utils.h (class gdb_argv) <as_array_view>: New method.
5046 * utils.c (gdb_argv_as_array_view_test): New.
5047 (_initialize_utils): Register selftest.
5048 * maint.c (maintenance_selftest): Use the new method.
5049
b31488a3
KR
50502020-08-13 Kamil Rytarowski <n54@gmx.com>
5051
5052 * target.h (supports_dumpcore, dumpcore): New
5053 function declarations.
5054 * target.c (supports_dumpcore, dumpcore): New
5055 functions.
5056 * target-delegates.c: Rebuild.
5057 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5058 and target_dumpcore ().
5059
002a3166
AM
50602020-08-13 Aaron Merey <amerey@redhat.com>
5061
5062 * debuginfod-support.c: Replace global variables with user_data.
5063
ece5bc8a
SM
50642020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5065
5066 * maint.c (maintenance_selftest): Split args and pass array_view
5067 to run_tests.
5068
6d8a0a5e
LM
50692020-08-12 Luis Machado <luis.machado@linaro.org>
5070
5071 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5072 type's length.
5073 Use %s and pulongest to print the length.
5074
7cf663a9
PA
50752020-08-12 Pedro Alves <palves@redhat.com>
5076
5077 * NEWS: Move "Multi-target debugging support" item to the
5078 "Changes since GDB 9" section.
5079
27c7b875
PA
50802020-08-12 Pedro Alves <palves@redhat.com>
5081
5082 PR gdb/26336
5083 * progspace.c (program_space::remove_objfile): Invalidate the
5084 frame cache.
5085
1796a2a1
TV
50862020-08-11 Tom de Vries <tdevries@suse.de>
5087
5088 * MAINTAINERS: Mark ms1 as deleted.
5089
f8e3fe0d
LM
50902020-08-10 Luis Machado <luis.machado@linaro.org>
5091
5092 PR gdb/26310
5093
5094 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5095 act accordingly.
5096 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5097 movz/str/stur/stp skipping behavior.
5098
cc308722
LM
50992020-08-10 Luis Machado <luis.machado@linaro.org>
5100
5101 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5102 struct user_sve_header instead of struct sve_context.
5103
041d9819
SM
51042020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5105
5106 * read.h (dwarf2_fetch_die_loc_sect_off,
5107 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5108 `void *` parameter with function_view.
5109 * read.c (dwarf2_fetch_die_loc_sect_off,
5110 dwarf2_fetch_die_loc_cu_off): Likewise.
5111 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5112 (per_cu_dwarf_call): Adjust.
5113 (get_frame_address_in_block_wrapper): Remove.
5114 (indirect_synthetic_pointer): Adjust.
5115 (get_ax_pc): Remove.
5116 (dwarf2_compile_expr_to_ax): Adjust.
5117
38f8aa06
TV
51182020-08-08 Tom de Vries <tdevries@suse.de>
5119
5120 PR build/26344
5121 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5122 constructor.
5123 * regcache.c (get_thread_arch_aspace_regcache): Same.
5124
a52b3ae2
TT
51252020-08-07 Tom Tromey <tromey@adacore.com>
5126
5127 * ravenscar-thread.c
5128 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5129 New method.
5130 (ravenscar_thread_target::wait): Check
5131 runtime_initialized.
5132 (ravenscar_thread_target::prepare_to_store)
5133 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5134 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5135 (ravenscar_thread_target::stopped_by_watchpoint)
5136 (ravenscar_thread_target::stopped_data_address)
5137 (ravenscar_thread_target::core_of_thread): Use
5138 scoped_restore_current_thread and
5139 set_base_thread_from_ravenscar_task.
5140
0e29517d
TT
51412020-08-07 Tom Tromey <tromey@adacore.com>
5142
5143 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5144
592f9bd7
TT
51452020-08-07 Tom Tromey <tromey@adacore.com>
5146
5147 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5148 update_inferior_ptid before update_thread_list.
5149 (temporarily_change_regcache_ptid): New class.
5150 (ravenscar_thread_target::fetch_registers)
5151 (ravenscar_thread_target::store_registers)
5152 (ravenscar_thread_target::prepare_to_store): Use base thread when
5153 forwarding operation.
5154
39e2018a
TT
51552020-08-07 Tom Tromey <tromey@adacore.com>
5156
5157 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5158 "is_pid" case.
5159
2080266b
TT
51602020-08-07 Tom Tromey <tromey@adacore.com>
5161
5162 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5163 New methods.
5164 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5165 first.
5166 (ravenscar_thread_target::add_thread): Rename from
5167 ravenscar_add_thread.
5168 (ravenscar_thread_target::update_thread_list): Use a lambda.
5169 (ravenscar_thread_target::xfer_partial): New method.
5170
78c02f21
TT
51712020-08-07 Tom Tromey <tromey@adacore.com>
5172
5173 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5174 gdb::function_view.
5175 (iterate_over_live_ada_tasks): Change type of argument.
5176 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5177 of argument.
5178
d5d833af
TT
51792020-08-07 Tom Tromey <tromey@adacore.com>
5180
5181 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5182 Remove.
5183 (ravenscar_thread_target::extra_thread_info): Remove.
5184 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5185 defer to target beneath for non-Ravenscar threads.
5186
a8ac85bb
TT
51872020-08-07 Tom Tromey <tromey@adacore.com>
5188
5189 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5190 get_base_thread_from_ravenscar_task>: Now methods.
5191 <m_cpu_map>: New member.
5192 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5193 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5194 (ravenscar_thread_target::task_is_currently_active): Update.
5195 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5196 Now a method.
5197 (ravenscar_thread_target::add_active_thread): Put initial thread
5198 into the m_cpu_map.
5199
550ab58d
TT
52002020-08-07 Tom Tromey <tromey@adacore.com>
5201
5202 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5203 event_ptid.
5204
e9546579
TT
52052020-08-07 Tom Tromey <tromey@adacore.com>
5206
5207 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5208 runtime_initialized.
5209
3d4470e5
TT
52102020-08-07 Tom Tromey <tromey@adacore.com>
5211
5212 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5213 add_active_thread.
5214 (ravenscar_thread_target::add_active_thread): Now public.
5215 (ravenscar_inferior_created): Call add_active_thread after pushing
5216 the target.
5217
888bdb2b
SM
52182020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5219
5220 * regcache.c (ptid_regcache_map): New type.
5221 (target_ptid_regcache_map): New type.
5222 (regcaches): Change type to target_ptid_regcache_map.
5223 (get_thread_arch_aspace_regcache): Update to regcaches' new
5224 type.
5225 (regcache_thread_ptid_changed): Likewise.
5226 (registers_changed_ptid): Likewise.
5227 (regcaches_size): Likewise.
5228 (regcaches_test): Update.
5229 (regcache_thread_ptid_changed): Update.
5230 * regcache.h (regcache_up): New type.
5231 * gdbsupport/ptid.h (hash_ptid): New struct.
5232
b161a60d
SM
52332020-08-07 Simon Marchi <simon.marchi@efficios.com>
5234
5235 * observable.h (thread_ptid_changed): Add parameter
5236 `process_stratum_target *`.
5237 * infrun.c (infrun_thread_ptid_changed): Add parameter
5238 `process_stratum_target *` and use it.
5239 (selftests): New namespace.
5240 (infrun_thread_ptid_changed): New function.
5241 (_initialize_infrun): Register selftest.
5242 * regcache.c (regcache_thread_ptid_changed): Add parameter
5243 `process_stratum_target *` and use it.
5244 (regcache_thread_ptid_changed): New function.
5245 (_initialize_regcache): Register selftest.
5246 * thread.c (thread_change_ptid): Pass target to
5247 thread_ptid_changed observable.
5248
d2854d8d
CT
52492020-08-06 Caroline Tice <cmtice@google.com>
5250
fe4c3d43
SM
5251 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5252 (struct dwp_sections): Update field comments. Add loclists and
5253 rnglists fields.
5254 (struct virtual_v2_dwo_sections): Rename struct to
5255 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5256 size & offset fields for loclists and rnglists.
5257 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5258 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5259 skipping dummy type units.
5260 (create_dwp_hash_table): Update the large comment above the function to
5261 discuss Version 5 DWP files as well, with references. Update all the
5262 version checks in the function to check for version 5 as well. Add new
5263 section at the end to create dwp hash table for version 5.
5264 (create_dwp_v2_section): Rename function to
5265 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5266 Add V5 to error message text.
5267 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5268 into calls to create_dwp_v2_or_v5_section.
5269 (create_dwo_unit_in_dwp_v5): New function.
5270 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5271 check for version2; add else clause to handle version 5.
5272 (open_and_init_dwo_file): Add code to check dwarf version & only call
5273 create_debug_types_hash_table (with sections.types) if version is not 5;
5274 else call create_debug_type_hash_table, with sections.info.
5275 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5276 version 5.
5277 (dwarf2_locate_v5_dwp_sections): New function.
5278 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5279 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5280
159ed7d9
SM
52812020-08-06 Simon Marchi <simon.marchi@efficios.com>
5282
5283 * regcache.h (class regcache): Remove friend
5284 registers_changed_ptid.
5285 <regcache_thread_ptid_changed>: Remove.
5286 <regcaches>: Remove.
5287 * regcache.c (regcache::regcaches): Rename to...
5288 (regcaches): ... this. Make static.
5289 (get_thread_arch_aspace_regcache): Update.
5290 (regcache::regcache_thread_ptid_changed): Rename to...
5291 (regcache_thread_ptid_changed): ... this. Update.
5292 (class regcache_access): Remove.
5293 (regcaches_test): Update.
5294 (_initialize_regcache): Update.
5295 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5296 <forward_list>.
5297
174981ae
SM
52982020-08-06 Simon Marchi <simon.marchi@efficios.com>
5299
5300 * regcache.h (class regcache) <current_regcache>: Rename to...
5301 <regcaches>: ... this. Move doc here.
5302 * regcache.c (regcache::current_regcache) Rename to...
5303 (regcache::regcaches): ... this. Move doc to header.
5304 (get_thread_arch_aspace_regcache): Update.
5305 (regcache::regcache_thread_ptid_changed): Update.
5306 (registers_changed_ptid): Update.
5307 (class regcache_access) <current_regcache_size>: Rename to...
5308 <regcaches_size>: ... this.
5309 (current_regcache_test): Rename to...
5310 (regcaches_test): ... this.
5311 (_initialize_regcache): Update.
5312
ed908db6
VC
53132020-08-06 Victor Collod <vcollod@nvidia.com>
5314
5315 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5316
b5582ab7
KB
53172020-08-05 Kevin Buettner <kevinb@redhat.com>
5318
5319 * corelow.c (core_target::build_file_mappings): Don't output
5320 null pathname in warning.
5321
ea946b86
SM
53222020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5323
5324 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5325 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5326 gdb.dwarf2/dw2-single-line-discriminators.exp,
5327 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5328
57d02173
TT
53292020-08-05 Tom Tromey <tromey@adacore.com>
5330
5331 PR rust/26197:
5332 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5333 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5334 Fix off-by-one and type size errors in ordinary case.
5335
5555c86d
TV
53362020-08-05 Tom de Vries <tdevries@suse.de>
5337
5338 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5339 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5340
97916bfe
SM
53412020-08-04 Simon Marchi <simon.marchi@efficios.com>
5342
5343 * frame.h (frame_id_p): Return bool.
5344 (frame_id_artificial_p): Return bool.
5345 (frame_id_eq): Return bool.
5346 (has_stack_frames): Return bool.
5347 (get_selected_frame): Fix typo in comment.
5348 (get_frame_pc_if_available): Return bool.
5349 (get_frame_address_in_block_if_available): Return bool.
5350 (get_frame_func_if_available): Return bool.
5351 (read_frame_register_unsigned): Return bool.
5352 (get_frame_register_bytes): Return bool.
5353 (safe_frame_unwind_memory): Return bool.
5354 (deprecated_frame_register_read): Return bool.
5355 (frame_unwinder_is): Return bool.
5356 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5357 bool.
5358 <this_id::p>: Likewise.
5359 <prev_p>: Likewise.
5360 (frame_stash_add): Return bool.
5361 (get_frame_id): Use bool.
5362 (frame_id_build_special) Use bool.
5363 (frame_id_build_unavailable_stack): Use bool.
5364 (frame_id_build): Use bool.
5365 (frame_id_p): Return bool, use true/false instead of 1/0.
5366 (frame_id_artificial_p): Likewise.
5367 (frame_id_eq): Likewise.
5368 (frame_id_inner): Likewise.
5369 (get_frame_func_if_available): Likewise.
5370 (read_frame_register_unsigned): Likewise.
5371 (deprecated_frame_register_read): Likewise.
5372 (get_frame_register_bytes): Likewise.
5373 (has_stack_frames): Likewise.
5374 (inside_main_func): Likewise.
5375 (inside_entry_func): Likewise.
5376 (get_frame_pc_if_available): Likewise.
5377 (get_frame_address_in_block_if_available): Likewise.
5378 (frame_unwinder_is): Likewise.
5379 (safe_frame_unwind_memory): Likewise.
5380 (frame_unwind_arch): Likewise.
5381
fedfee88
SM
53822020-08-04 Simon Marchi <simon.marchi@efficios.com>
5383
5384 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5385 type to cached_copy_status.
5386 (fprintf_frame): Adjust.
5387 (get_frame_func_if_available): Adjust.
5388 (frame_cleanup_after_sniffer): Adjust.
5389
6cfa9b59
MW
53902020-08-04 Mark Wielaard <mark@klomp.org>
5391
5392 * MAINTAINERS (Write After Approval): Update email address.
5393
66d6346b
SM
53942020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5395
5396 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5397 dynamic_prop::const_val.
5398
8a6d5e35
SM
53992020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5400
5401 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5402 dynamic_prop::kind.
5403
51d6067d
SM
54042020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5405
5406 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5407
b26e2ae7
JM
54082020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5409
5410 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5411
39791af2
JM
54122020-08-04 Weimin Pan <weimin.pan@oracle.com>
5413 Jose E. Marchesi <jose.marchesi@oracle.com>
5414
5415 * configure.tgt: Add entry for bpf-*-*.
5416 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5417 (ALLDEPFILES): Add bpf-tdep.c.
5418 * bpf-tdep.c: New file.
5419 * MAINTAINERS: Add bpf target and maintainer.
5420 * NEWS: Mention the support for the new target.
5421
521894aa
TV
54222020-08-04 Tom de Vries <tdevries@suse.de>
5423
5424 PR symtab/23270
5425 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5426 Error.
5427
5d6356e9
JB
54282020-08-03 John Baldwin <jhb@FreeBSD.org>
5429
5430 * syscalls/freebsd.xml: Regenerate.
5431
0cf82b81
JB
54322020-08-03 John Baldwin <jhb@FreeBSD.org>
5433
5434 * syscalls/update-freebsd.sh: Fix usage and year range.
5435
8f34b746
TV
54362020-08-03 Tom de Vries <tdevries@suse.de>
5437
5438 PR symtab/26333
5439 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5440 DW_LNE_lo_user/DW_LNE_hi_user range.
5441
5e500d33
SM
54422020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5443
5444 PR ada/26318
5445 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5446 kind.
5447
78319c15
TBA
54482020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5449
5450 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5451
4c55e970
TBA
54522020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5453
5454 * breakpoint.c (set_breakpoint_condition): Update the condition
5455 expressions after checking that the input condition string parses
5456 successfully and does not contain junk at the end.
5457
1e620590
TBA
54582020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5459
5460 * breakpoint.c (set_breakpoint_condition): Update the
5461 condition string after parsing the new condition successfully.
5462
c8693053
RO
54632020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5464
5465 * proc-api.c (_STRUCTURED_PROC): Don't define.
5466 * proc-events.c: Likewise.
5467 * proc-flags.c: Likewise.
5468 * proc-why.c: Likewise.
5469 * procfs.c: Likewise.
5470
5471 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5472 * configure, config.in: Regenerate.
5473
5a99adb8
TV
54742020-07-30 Tom de Vries <tdevries@suse.de>
5475
5476 PR build/26320
5477 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5478 m_red/m_green/m_blue in a union.
5479
8ba83e91
TV
54802020-07-29 Tom de Vries <tdevries@suse.de>
5481
5482 PR tdep/26280
5483 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5484
f75a0693
AB
54852020-07-28 Tom Tromey <tromey@adacore.com>
5486
5487 PR symtab/26270:
5488 * symtab.h (find_pc_partial_function_sym): Declare.
5489 * cli/cli-cmds.c (disassemble_command): Use
5490 find_pc_partial_function_sym. Check asm_demangle.
5491 * blockframe.c (cache_pc_function_sym): New global.
5492 (cache_pc_function_name): Remove.
5493 (clear_pc_function_cache): Update.
5494 (find_pc_partial_function_sym): New function, from
5495 find_pc_partial_function.
5496 (find_pc_partial_function): Rewrite using
5497 find_pc_partial_function_sym.
5498
16f3242c
TT
54992020-07-28 Tom Tromey <tromey@adacore.com>
5500
5501 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5502 help. Add usage.
5503
4888741a
TT
55042020-07-28 Tom Tromey <tromey@adacore.com>
5505
5506 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5507 <DW_OP_GNU_variable_value>: Cast to address type.
5508
4d46f402
KR
55092020-07-28 Kamil Rytarowski <n54@gmx.com>
5510
5511 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5512 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5513 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5514 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5515 (nbsd_get_siginfo_type): New.
5516 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5517 (_initialize_nbsd_tdep): New.
5518
d70f978b
L
55192020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5520
5521 PR binutils/26301
5522 * configure: Regenerated.
5523
377170fa
L
55242020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5525
5526 PR binutils/26301
5527 * configure: Regenerated.
5528
43d5901d
AB
55292020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5530
5531 * python/py-frame.c: Remove 'user-regs.h' include.
5532 (frapy_read_register): Rewrite to make use of
5533 gdbpy_parse_register_id.
5534 * python/py-registers.c (gdbpy_parse_register_id): New function,
5535 moved here from python/py-unwind.c. Updated the return type, and
5536 also accepts register descriptor objects.
5537 * python/py-unwind.c: Remove 'user-regs.h' include.
5538 (pyuw_parse_register_id): Moved to python/py-registers.c.
5539 (unwind_infopy_add_saved_register): Update to use
5540 gdbpy_parse_register_id.
5541 (pending_framepy_read_register): Likewise.
5542 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5543
14fa8fb3
AB
55442020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5545
5546 * python/py-registers.c: Add 'user-regs.h' include.
5547 (register_descriptor_iter_find): New function.
5548 (register_descriptor_iterator_object_methods): New static global
5549 methods array.
5550 (register_descriptor_iterator_object_type): Add pointer to methods
5551 array.
5552
ddce1758
JB
55532020-07-27 John Baldwin <jhb@FreeBSD.org>
5554
5555 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5556 for all architectures on FreeBSD 11.3 and later.
5557
a4089f52
TT
55582020-07-27 Tom Tromey <tromey@adacore.com>
5559
5560 * gcore.h (load_corefile): Don't declare.
5561
95420d30
TV
55622020-07-27 Tom de Vries <tdevries@suse.de>
5563
5564 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5565 * config.in: Regenerate.
5566 * configure: Regenerate.
5567
05a6b8c2
EZ
55682020-07-26 Eli Zaretskii <eliz@gnu.org>
5569
5570 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5571 ws2tcpip.h. When checking whether socklen_t type is defined, use
5572 ws2tcpip.h if it is available and sys/socket.h isn't.
5573 * configure: Regenerate.
5574 * config.in: Regenerate.
5575
e79eb02f
AB
55762020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5577
5578 PR fortran/23051
5579 PR fortran/26139
5580 * valops.c (value_ind): Pass address to
5581 readjust_indirect_value_type.
5582 * value.c (readjust_indirect_value_type): Make parameter
5583 non-const, and add extra address parameter. Resolve original type
5584 before using it.
5585 * value.h (readjust_indirect_value_type): Update function
5586 signature and comment.
5587
876518dd
TV
55882020-07-25 Tom de Vries <tdevries@suse.de>
5589
5590 PR symtab/26243
5591 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5592 entries.
5593
f6720b1c
AM
55942020-07-24 Aaron Merey <amerey@redhat.com>
5595
5596 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5597 * configure: Rebuild.
5598
513487e1
KB
55992020-07-23 Kevin Buettner <kevinb@redhat.com>
5600
5601 PR corefiles/26294
5602 * corelow.c (_initialize_corelow): Add period to help text
5603 for "maintenance print core-file-backed-mappings".
5604
e7bc9db8
PA
56052020-07-23 Pedro Alves <pedro@palves.net>
5606
5607 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5608 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5609 meanwhile.
5610 * frame.c (frame_cache_generation, get_frame_cache_generation):
5611 New.
5612 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5613 (get_prev_frame_if_no_cycle): On exception, don't touch
5614 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5615 * frame.h (get_frame_cache_generation): Declare.
5616
90fcc466
TV
56172020-07-23 Tom de Vries <tdevries@suse.de>
5618
5619 PR tui/26282
5620 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5621 New default constructor.
5622
78344df7
AB
56232020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5624
5625 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5626 exclude non-statement entries.
5627
b089853a
KB
56282020-07-22 Kevin Buettner <kevinb@redhat.com>
5629
5630 * NEWS (New commands): Mention new command
5631 "maintenance print core-file-backed-mappings".
5632
09c2f5d4
KB
56332020-07-22 Kevin Buettner <kevinb@redhat.com>
5634
5635 * corelow.c (gdbcmd.h): Include.
5636 (core_target::info_proc_mappings): New method.
5637 (get_current_core_target): New function.
5638 (maintenance_print_core_file_backed_mappings): New function.
5639 (_initialize_corelow): Add core-file-backed-mappings to
5640 "maint print" commands.
5641
9c5ec5c2 56422020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5643
9c5ec5c2
KB
5644 * linux-tdep.c (dump_note_entry_p): New function.
5645 (linux_dump_mapping_p_ftype): New typedef.
5646 (linux_find_memory_regions_full): Add new parameter,
5647 should_dump_mapping_p.
5648 (linux_find_memory_regions): Adjust call to
5649 linux_find_memory_regions_full.
5650 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5651 call to linux_find_memory_regions_full.
5652
db082f59
KB
56532020-07-22 Kevin Buettner <kevinb@redhat.com>
5654
5655 * corelow.c (solist.h, unordered_map): Include.
5656 (class core_target): Add field m_core_file_mappings and
5657 method build_file_mappings.
5658 (core_target::core_target): Call build_file_mappings.
5659 (core_target::~core_target): Free memory associated with
5660 m_core_file_mappings.
5661 (core_target::build_file_mappings): New method.
5662 (core_target::xfer_partial): Use m_core_file_mappings
5663 for memory transfers.
5664 * linux-tdep.c (linux_read_core_file_mappings): New
5665 function.
5666 (linux_core_info_proc_mappings): Rewrite to use
5667 linux_read_core_file_mappings.
5668 (linux_init_abi): Register linux_read_core_file_mappings.
5669
7e183d27
KB
56702020-07-22 Kevin Buettner <kevinb@redhat.com>
5671
5672 * arch-utils.c (default_read_core_file_mappings): New function.
5673 * arch-utils.c (default_read_core_file_mappings): Declare.
5674 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5675 * gdbarch.h, gdbarch.c: Regenerate.
5676
2735d421
KB
56772020-07-22 Kevin Buettner <kevinb@redhat.com>
5678
5679 PR corefiles/25631
5680 * corelow.c (core_target:xfer_partial): Revise
5681 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5682 case after first checking the stratum beneath the core
5683 target.
5684 (has_all_memory): Return true.
5685 * target.c (raw_memory_xfer_partial): Revise comment
5686 regarding use of has_all_memory.
5687
e56cb451
KB
56882020-07-22 Kevin Buettner <kevinb@redhat.com>
5689
5690 * exec.h (section_table_xfer_memory): Revise declaration,
5691 replacing section name parameter with an optional callback
5692 predicate.
5693 * exec.c (section_table_xfer_memory): Likewise.
5694 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5695 of section_table_xfer_memory.
5696
32fa152e
TT
56972020-07-22 Tom Tromey <tromey@adacore.com>
5698
5699 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5700 lookup_symbol_search_name.
5701
a67a1c41
AB
57022020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5703
5704 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5705 redundant local variable.
5706 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5707 reference, not pointer, update code accordingly.
5708
a7b4ff4f
SM
57092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5710 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5711
5712 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5713 * jit.c (jit_breakpoint_re_set_internal): Use the
5714 `skip_jit_symbol_lookup` field.
5715
2340e834
SM
57162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5717 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5718
5719 * jit.c (jit_read_descriptor): Define the descriptor address once,
5720 use twice.
5721 (jit_breakpoint_deleted): Move the declaration of the loop variable
5722 `iter` into the loop header.
5723 (jit_breakpoint_re_set_internal): Move the declaration of the local
5724 variable `objf_data` to the first point of definition.
5725 (jit_event_handler): Move the declaration of local variables
5726 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5727 Rename `objf` to `jited`.
5728
c1072906
SM
57292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5732 Remove.
5733 * jit.c (get_jiter_objfile_data): Update.
5734
c8474dc3
TBA
57352020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5736 Simon Marchi <simon.marchi@polymtl.ca>
5737
5738 * jit.c (struct jit_program_space_data): Remove.
5739 (jit_program_space_key): Remove.
5740 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5741 stuff.
5742 (get_jit_program_space_data): Remove.
5743 (jit_breakpoint_deleted): Iterate on all of the program space's
5744 objfiles.
5745 (jit_inferior_init): Likewise.
5746 (jit_breakpoint_re_set_internal): Likewise. Also change return
5747 type to void.
5748 (jit_breakpoint_re_set): Pass current_program_space to
5749 jit_breakpoint_re_set_internal.
5750
77208eb7
SM
57512020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5752
5753 * jit.h (struct jiter_objfile_data) <cached_code_address,
5754 jit_breakpoint>: Move to here from ...
5755 * jit.c (jit_program_space_data): ... here.
5756 (jiter_objfile_data::~jiter_objfile_data): Update.
5757 (jit_breakpoint_deleted): Update.
5758 (jit_breakpoint_re_set_internal): Update.
5759
8c1c720f
SM
57602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5761
5762 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5763 checks.
5764 (jit_read_descriptor): Remove NULL check.
5765 (jit_event_handler): Add an assertion.
5766
0e74a041
SM
57672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5768
5769 * jit.h (struct jit_objfile_data): Split into...
5770 (struct jiter_objfile_data): ... this ...
5771 (struct jited_objfile_data): ... and this.
5772 * objfiles.h (struct objfile) <jit_data>: Remove.
5773 <jiter_data, jited_data>: New fields.
5774 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5775 (jiter_objfile_data::~jiter_objfile_data): ... this.
5776 (get_jit_objfile_data): Rename to ...
5777 (get_jiter_objfile_data): ... this.
5778 (add_objfile_entry): Update.
5779 (jit_read_descriptor): Use get_jiter_objfile_data.
5780 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5781 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5782 (jit_inferior_exit_hook): Use objfile's jited_data field.
5783
238b5c9f
SM
57842020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5785
5786 * jit.h: Forward-declare `struct minimal_symbol`.
5787 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5788 constructor, destructor, and an objfile* field.
5789 * jit.c (jit_objfile_data): Remove.
5790 (struct jit_objfile_data): Migrate from here to jit.h.
5791 (jit_objfile_data::~jit_objfile_data): New destructor
5792 implementation with code moved from free_objfile_data.
5793 (free_objfile_data): Delete.
5794 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5795 (jit_find_objf_with_entry_addr): Ditto.
5796 (jit_inferior_exit_hook): Ditto.
5797 (_initialize_jit): Remove the call to
5798 register_objfile_data_with_cleanup.
5799 * objfiles.h (struct objfile) <jit_data>: New field.
5800
fe053b9e
TBA
58012020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5802
5803 * jit.h: Forward-declare `struct objfile`.
5804 (jit_event_handler): Add a second parameter, the JITer objfile.
5805 * jit.c (jit_read_descriptor): Change the signature to take the
5806 JITer objfile as an argument instead of the jit_program_space_data.
5807 (jit_inferior_init): Update the call to jit_read_descriptor.
5808 (jit_event_handler): Use the new JITer objfile argument when calling
5809 jit_read_descriptor.
5810 * breakpoint.c (handle_jit_event): Update the call to
5811 jit_event_handler to pass the JITer objfile.
5812
4cec0c66
JB
58132020-07-21 John Baldwin <jhb@FreeBSD.org>
5814
5815 * gdbarch.c: Regenerate.
5816 * gdbarch.h: Regenerate.
5817 * gdbarch.sh (handle_segmentation_fault): Remove method.
5818 * infrun.c (handle_segmentation_fault): Remove.
5819 (print_signal_received_reason): Remove call to
5820 handle_segmentation_fault.
5821
0e42f66a
JB
58222020-07-21 John Baldwin <jhb@FreeBSD.org>
5823
5824 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5825 Rename to sparc64_linux_report_signal_info and add siggnal
5826 argument.
5827 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5828 instead of sparc64_linux_handle_segmentation_fault.
5829
77bdfeb2
JB
58302020-07-21 John Baldwin <jhb@FreeBSD.org>
5831
5832 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5833 i386_linux_report_signal_info instead of
5834 i386_linux_handle_segmentation_fault.
5835 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5836 to i386_linux_report_signal_info and add siggnal argument.
5837 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5838 of i386_linux_handle_segmentation_fault.
5839 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5840 to i386_linux_report_signal_info and add siggnal argument.
5841
ad97bfc5
JB
58422020-07-21 John Baldwin <jhb@FreeBSD.org>
5843
5844 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5845 hook if present.
5846
272bb05c
JB
58472020-07-21 John Baldwin <jhb@FreeBSD.org>
5848
5849 * gdbarch.c: Regenerate.
5850 * gdbarch.h: Regenerate.
5851 * gdbarch.sh (report_signal_info): New method.
5852 * infrun.c (print_signal_received_reason): Invoke gdbarch
5853 report_signal_info hook if present.
5854
baf8791e
AB
58552020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5856
5857 * python/py-registers.c : Add 'unordered_map' include.
5858 (gdbpy_new_reggroup): Renamed to...
5859 (gdbpy_get_reggroup): ...this. Update to only create register
5860 group descriptors when needed.
5861 (gdbpy_reggroup_iter_next): Update.
5862
f7306dac
AB
58632020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5864
5865 * python/py-registers.c (gdbpy_register_object_data): New static
5866 global.
5867 (gdbpy_register_object_data_init): New function.
5868 (gdbpy_new_register_descriptor): Renamed to...
5869 (gdbpy_get_register_descriptor): ...this, and update to reuse
5870 existing register descriptors where possible.
5871 (gdbpy_register_descriptor_iter_next): Update.
5872 (gdbpy_initialize_registers): Register new gdbarch data.
5873
05c309a8
SM
58742020-07-21 Simon Marchi <simon.marchi@efficios.com>
5875
5876 * linux-nat.c (stopped_pids): Make static.
5877
d1fd641e
SM
58782020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5879
5880 PR ada/26235
5881 * gdbtypes.c (ada_discrete_type_low_bound,
5882 ada_discrete_type_high_bound): Handle undefined bounds.
5883
1de14d77
KR
58842020-07-21 Kamil Rytarowski <n54@gmx.com>
5885
5886 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5887 declaration.
5888 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5889 function.
5890
ed810cc7
JB
58912020-07-20 John Baldwin <jhb@FreeBSD.org>
5892
5893 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5894 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5895 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5896 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5897 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5898 method.
5899
ae5369e7
LC
59002020-07-20 Ludovic Courtès <ludo@gnu.org>
5901
5902 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5903 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5904 which are deprecated in Guile 3.0.
5905 * configure.ac (try_guile_versions): Add "guile-3.0".
5906 * configure (try_guile_versions): Regenerate.
5907 * NEWS: Update entry.
5908
68cf161c
LC
59092020-07-20 Ludovic Courtès <ludo@gnu.org>
5910 Doug Evans <dje@google.com>
5911
5912 PR gdb/21104
5913 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5914 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5915 USING_GUILE_BEFORE_2_2.
5916 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5917 Change type to 'scm_t_port_type *'.
5918 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5919 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5920 parameter and honor it. Update callers.
5921 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5922 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5923 functions.
5924 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5925 USING_GUILE_BEFORE_2_2.
5926 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5927 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5928 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5929 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5930 and 'SCM_PORT_TYPE'.
5931 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5932 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5933 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5934 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5935 [!USING_GUILE_BEFORE_2_2]: New functions.
5936 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5937 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5938 'gdbscm_memory_port_read'.
5939 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5940 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5941 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5942 function.
5943 (ioscm_init_memory_port): Remove.
5944 (ioscm_init_memory_port_stream): New function
5945 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5946 function.
5947 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5948 Return scm_from_uint (0).
5949 (gdbscm_set_memory_port_read_buffer_size_x)
5950 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5951 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5952 Return scm_from_uint (0).
5953 (gdbscm_set_memory_port_write_buffer_size_x)
5954 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5955 * configure.ac (try_guile_versions): Add "guile-2.2".
5956 * configure: Regenerate.
5957 * NEWS: Add entry.
5958
aee91db3
TT
59592020-07-18 Tom Tromey <tom@tromey.com>
5960
5961 * linux-nat.c (linux_multi_process): Remove.
5962 (linux_nat_target::supports_multi_process): Return true.
5963
0e267416
AB
59642020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5965
5966 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5967 (riscv_lookup_target_description): Return pointer out of
5968 unique_ptr.
5969 * target-descriptions.c (allocate_target_description): Add
5970 comment.
5971 (target_desc_deleter::operator()): Likewise.
5972 * target-descriptions.h (struct target_desc_deleter): Moved to
5973 gdbsupport/tdesc.h.
5974 (target_desc_up): Likewise.
5975
f80c8ec4
TT
59762020-07-17 Tom Tromey <tromey@adacore.com>
5977
5978 * linux-nat.c (linux_nat_target::supports_non_stop)
5979 (linux_nat_target::always_non_stop_p): Use "true".
5980 (linux_nat_target::supports_disable_randomization): Use "true" and
5981 "false".
5982
d0ce17d8
CT
59832020-07-16 Caroline Tice <cmtice@google.com>
5984
5985 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5986 (RNGLIST_HEADER_SIZE64): New constant definition.
5987 (struct dwop_section_names): Add rnglists_dwo.
5988 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5989 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5990 (struct dwo_sections): Add rnglists field.
5991 (read_attribut_reprocess): Add tag parameter.
5992 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5993 (cu_debug_rnglists_section): New function (decl & definition).
5994 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5995 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5996 die whose range is being checked; get rnglist section from
5997 cu_debug_rnglists_section, to get from either objfile or dwo file as
5998 appropriate. Add cases for DW_RLE_base_addressx,
5999 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6000 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6001 test inside if-condition and updating complaint message.
6002 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6003 dwarf2_rnglists_process.
6004 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6005 dwarf2_ranges_process.
6006 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6007 need_ranges_base and update comment appropriately. Also pass die tag
6008 to dwarf2_ranges_read.
6009 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6010 need_ranges_base and update comment appropriately. Also pass die tag
6011 to dwarf2_ranges_process.
6012 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6013 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6014 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6015 need_ranges_base and update comment appropriately. Also pass die tag
6016 to read_attribute_reprocess and dwarf2_ranges_read.
6017 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6018 and update function comment appropriately.
6019 (read_loclist_index): Call read_loclists_rnglists_header instead of
6020 read_loclist_header.
6021 (read_rnglist_index): New function.
6022 (read_attribute_reprocess): Add tag parameter. Add code for
6023 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6024 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6025
3dcc261c
AB
60262020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6027
6028 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6029 being resolved.
6030
ccb9eba6
AB
60312020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6032
6033 * arch-utils.c (show_architecture): Update formatting of messages.
6034
cf88be68
SM
60352020-07-12 Simon Marchi <simon.marchi@efficios.com>
6036
6037 * gdbtypes.h (struct type) <bounds>: Handle array and string
6038 types.
6039 * ada-lang.c (assign_aggregate): Use type::bounds on
6040 array/string type.
6041 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6042 * c-varobj.c (c_number_of_children): Likewise.
6043 (c_describe_child): Likewise.
6044 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6045 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6046 (f_type_print_base): Likewise.
6047 * f-valprint.c (f77_array_offset_tbl): Likewise.
6048 (f77_get_upperbound): Likewise.
6049 (f77_print_array_1): Likewise.
6050 * guile/scm-type.c (gdbscm_type_range): Likewise.
6051 * m2-typeprint.c (m2_array): Likewise.
6052 (m2_is_long_set_of_type): Likewise.
6053 * m2-valprint.c (get_long_set_bounds): Likewise.
6054 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6055 * python/py-type.c (typy_range): Likewise.
6056 * rust-lang.c (rust_internal_print_type): Likewise.
6057 * type-stack.c (type_stack::follow_types): Likewise.
6058 * valarith.c (value_subscripted_rvalue): Likewise.
6059 * valops.c (value_cast): Likewise.
6060
509971ae
SM
60612020-07-12 Simon Marchi <simon.marchi@efficios.com>
6062
6063 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6064 callers to use the equivalent accessor methods.
6065
107406b7
SM
60662020-07-12 Simon Marchi <simon.marchi@efficios.com>
6067
6068 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6069 (struct type) <bit_stride>: New method.
6070 (TYPE_BIT_STRIDE): Remove.
6071 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6072
bb789949
SM
60732020-07-12 Simon Marchi <simon.marchi@efficios.com>
6074
6075 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6076 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6077 callers to use the equivalent accessor methods instead.
6078
39498edb
SM
60792020-07-12 Simon Marchi <simon.marchi@efficios.com>
6080
6081 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6082 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6083 callers to use the equivalent accessor methods instead.
6084
3b606f38
SM
60852020-07-12 Simon Marchi <simon.marchi@efficios.com>
6086
6087 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6088 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6089 to use dynamic_prop::kind.
6090
064d9cb9
SM
60912020-07-12 Simon Marchi <simon.marchi@efficios.com>
6092
6093 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6094 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6095 to get the bound property's kind and check against
6096 PROP_UNDEFINED.
6097
5537ddd0
SM
60982020-07-12 Simon Marchi <simon.marchi@efficios.com>
6099
6100 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6101 all callers to use type::range_bounds followed by
6102 dynamic_prop::{low,high}.
6103
8c2e4e06
SM
61042020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6105
6106 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6107 const_val, set_const_val, baton, set_locexpr, set_loclist,
6108 set_addr_offset, variant_parts, set_variant_parts,
6109 original_type, set_original_type>: New methods.
6110 <kind>: Rename to...
6111 <m_kind>: ... this. Update all users to use the new methods
6112 instead.
6113 <data>: Rename to...
6114 <m_data>: ... this. Update all users to use the new methods
6115 instead.
6116
7c6f2712
SM
61172020-07-12 Simon Marchi <simon.marchi@efficios.com>
6118
6119 * gdbtypes.c (get_discrete_bounds): Return failure if
6120 the range type's bounds are not both defined and constant
6121 values.
6122 (get_array_bounds): Update comment. Remove undefined bound check.
6123
599088e3
SM
61242020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6125
6126 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6127 the type::bounds method directly.
6128
c4dfcb36
SM
61292020-07-12 Simon Marchi <simon.marchi@efficios.com>
6130
6131 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6132 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6133 are used to set the range type's bounds to use set_bounds.
6134
0a278aa7
PW
61352020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6136
6137 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6138
cce20f10
PA
61392020-07-10 Pedro Alves <pedro@palves.net>
6140
6141 * gdbthread.h (inferior_ref): Define.
6142 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6143 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6144 * thread.c
6145 (scoped_restore_current_thread::restore):
6146 Adjust to gdb::ref_ptr.
6147 (scoped_restore_current_thread::~scoped_restore_current_thread):
6148 Remove manual decref handling.
6149 (scoped_restore_current_thread::scoped_restore_current_thread):
6150 Adjust to use
6151 inferior_ref::new_reference/thread_info_ref::new_reference.
6152 Incref the thread before calling get_frame_id instead of after.
6153 Let TARGET_CLOSE_ERROR propagate.
6154
6d7aa592
PA
61552020-07-10 Pedro Alves <pedro@palves.net>
6156
6157 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6158 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6159 NOT_AVAILABLE_ERROR.
6160 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6161 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6162
b3e3a4c1
SM
61632020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6164 Pedro Alves <pedro@palves.net>
6165
6166 PR gdb/26199
6167 * infrun.c (threads_are_resumed_pending_p): Delete.
6168 (do_target_wait): Remove threads_are_executing and
6169 threads_are_resumed_pending_p checks from the inferior_matches
6170 lambda. Update comments.
6171
d6cc5d98
PA
61722020-07-10 Pedro Alves <pedro@palves.net>
6173
6174 PR gdb/26199
6175 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6176 executing threads.
6177
7d3badc6
PA
61782020-07-10 Pedro Alves <pedro@palves.net>
6179
6180 PR gdb/26199
6181 * infrun.c (handle_no_resumed): Handle multiple targets.
6182
42bd97a6
PA
61832020-07-10 Pedro Alves <pedro@palves.net>
6184
6185 PR gdb/26199
6186 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6187 target_is_async_p.
6188
43667cc6
PA
61892020-07-10 Pedro Alves <pedro@palves.net>
6190
6191 PR gdb/26199
6192 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6193 threads, not all threads.
6194
96118d11
PA
61952020-07-10 Pedro Alves <pedro@palves.net>
6196
6197 PR gdb/26199
6198 * remote.c (remote_target::open_1): Pass remote target pointer as
6199 data to create_async_event_handler.
6200 (remote_async_inferior_event_handler): Mark async event handler
6201 before returning if the remote target still has either pending
6202 events or unacknowledged notifications.
6203
54904d81
JB
62042020-07-10 John Baldwin <jhb@FreeBSD.org>
6205
6206 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6207 declaration.
6208 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6209 function.
6210
f37e5866
JB
62112020-07-09 John Baldwin <jhb@FreeBSD.org>
6212
6213 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6214 inferior_ptid.
6215
fc238d4a
JB
62162020-07-09 John Baldwin <jhb@FreeBSD.org>
6217
6218 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6219 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6220 AT_FREEBSD_PS_STRINGS.
6221
6e2469ff
HD
62222020-07-08 Hannes Domani <ssbssa@yahoo.de>
6223
6224 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6225 of debugfile path on Windows.
6226
d1076c41
JB
62272020-07-08 John Baldwin <jhb@FreeBSD.org>
6228
6229 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6230 argument to 'data'.
6231
15f3b077
TT
62322020-07-08 Tom Tromey <tromey@adacore.com>
6233
6234 * ada-lang.c (ada_exception_message_1): Use read_memory.
6235
9fc501fd
AB
62362020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6237
6238 PR python/22748
6239 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6240 special handling for inline frames.
6241 * findvar.c (value_of_register_lazy): Skip inline frames when
6242 creating lazy register values.
6243 * frame.c (frame_id_computed_p): Delete definition.
6244 * frame.h (frame_id_computed_p): Delete declaration.
6245
64cb3757
AB
62462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6247
6248 * NEWS: Mention additions to Python API.
6249 * python/py-arch.c (archpy_register_groups): New function.
6250 (arch_object_methods): Add 'register_groups' method.
6251 * python/py-registers.c (reggroup_iterator_object): New struct.
6252 (reggroup_object): New struct.
6253 (gdbpy_new_reggroup): New function.
6254 (gdbpy_reggroup_to_string): New function.
6255 (gdbpy_reggroup_name): New function.
6256 (gdbpy_reggroup_iter): New function.
6257 (gdbpy_reggroup_iter_next): New function.
6258 (gdbpy_new_reggroup_iterator): New function
6259 (gdbpy_initialize_registers): Register new types.
6260 (reggroup_iterator_object_type): Define new Python type.
6261 (gdbpy_reggroup_getset): New static global.
6262 (reggroup_object_type): Define new Python type.
6263 * python/python-internal.h
6264
0f767f94
AB
62652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6266
6267 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6268 * python/py-arch.c (archpy_registers): New function.
6269 (arch_object_methods): Add 'registers' method.
6270 * python/py-registers.c: New file.
6271 * python/python-internal.h
6272 (gdbpy_new_register_descriptor_iterator): Declare.
6273 (gdbpy_initialize_registers): Declare.
6274 * python/python.c (do_start_initialization): Call
6275 gdbpy_initialize_registers.
6276 * NEWS: Mention additions to the Python API.
6277
87dbc774
AB
62782020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6279
6280 * NEWS: Mention new Python API method.
6281 * python/py-unwind.c (pending_framepy_architecture): New function.
6282 (pending_frame_object_methods): Add architecture method.
6283
3bc98c0c
AB
62842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6285
6286 * gdbarch.c: Regenerate.
6287 * gdbarch.h: Regenerate.
6288 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6289 (gdbarch_data): Use internal_error for the case where
6290 deprecated_set_gdbarch_data was originally needed.
6291 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6292 and use passed in obstack.
6293 (libunwind_frame_set_descr): Should no longer get back NULL from
6294 gdbarch_data.
6295 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6296 type.
6297 * user-regs.c (user_regs_init): Update parameters, and use passed
6298 in obstack.
6299 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6300 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6301
d8cc8af6
TV
63022020-07-06 Tom de Vries <tdevries@suse.de>
6303
6304 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6305 End-Of-Sequence in lte_is_less_than.
6306 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6307 "gdb: Don't reorder line table entries too much when sorting".
6308
947f7597
TV
63092020-07-06 Tom de Vries <tdevries@suse.de>
6310
6311 PR tui/26205
6312 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6313
1e7c1b22
TV
63142020-07-05 Tom de Vries <tdevries@suse.de>
6315
6316 PR build/26187
6317 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6318 std::uncaught_exceptions instead of deprecated
6319 std::uncaught_exception.
6320
a36158ec
SM
63212020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6322
6323 * macroexp.h (macro_stringify): Return
6324 gdb::unique_xmalloc_ptr<char>.
6325 * macroexp.c (macro_stringify): Likewise.
6326 * macrotab.c (fixup_definition): Update.
6327
14d960c8
SM
63282020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6329
6330 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6331 (lex_one_token): Update.
6332 * macroexp.c (struct macro_buffer) <release>: Return
6333 gdb::unique_xmalloc_ptr<char>.
6334 (macro_stringify): Update.
6335 (macro_expand): Update.
6336 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6337 * macroexp.h (macro_expand_next): Likewise.
6338
211d5b1c
SM
63392020-07-02 Simon Marchi <simon.marchi@efficios.com>
6340
6341 * macroexp.h (macro_lookup_ftype): Remove.
6342 (macro_expand, macro_expand_once, macro_expand_next): Remove
6343 lookup function parameters, add scope parameter.
6344 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6345 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6346 * macroscope.h (standard_macro_lookup): Change parameter type
6347 to macro_scope.
6348 * macroscope.c (standard_macro_lookup): Likewise.
6349 * c-exp.y (lex_one_token): Update.
6350 * macrocmd.c (macro_expand_command): Likewise.
6351 (macro_expand_once_command): Likewise.
6352
b1a35af2
SM
63532020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6354
6355 * inf-loop.c (inferior_event_handler): Remove client_data param.
6356 * inf-loop.h (inferior_event_handler): Likewise.
6357 * infcmd.c (step_1): Adjust.
6358 * infrun.c (proceed): Adjust.
6359 (fetch_inferior_event): Remove client_data param.
6360 (infrun_async_inferior_event_handler): Adjust.
6361 * infrun.h (fetch_inferior_event): Remove `void *` param.
6362 * linux-nat.c (handle_target_event): Adjust.
6363 * record-btrace.c (record_btrace_handle_async_inferior_event):
6364 Adjust.
6365 * record-full.c (record_full_async_inferior_event_handler):
6366 Adjust.
6367 * remote.c (remote_async_inferior_event_handler): Adjust.
6368
1cdf9e33
TT
63692020-07-01 Tom Tromey <tom@tromey.com>
6370
6371 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6372 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6373
32c1e210
TT
63742020-07-01 Tom Tromey <tom@tromey.com>
6375
6376 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6377 tui_gen_win_info.
6378 (tui_win_info::make_window): Merge with
6379 tui_gen_win_info::make_window.
6380 (tui_win_info::make_visible): Move from tui_gen_win_info.
6381 * tui/tui-win.c (tui_win_info::max_width): Move from
6382 tui_gen_win_info.
6383 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6384 type.
6385 <window_factory>: Likewise.
6386 * tui/tui-layout.c (tui_win_info::resize): Move from
6387 tui_gen_win_info.
6388 (make_standard_window): Change return type.
6389 (get_locator_window, tui_get_window_by_name): Likewise.
6390 (tui_layout_window::apply): Remove a cast.
6391 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6392 (struct tui_win_info): Merge with tui_gen_win_info.
6393 (struct tui_gen_win_info): Remove.
6394
a30cb6da
TT
63952020-07-01 Tom Tromey <tom@tromey.com>
6396
6397 * tui/tui-stack.h (struct tui_locator_window): Derive from
6398 tui_win_info.
6399 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6400 <can_box>: New method.
6401
1eb2161f
TT
64022020-07-01 Tom Tromey <tom@tromey.com>
6403
6404 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6405
7134f2eb
TT
64062020-07-01 Tom Tromey <tom@tromey.com>
6407
6408 * tui/tui-regs.c (tui_data_window::display_registers_from)
6409 (tui_data_window::display_registers_from)
6410 (tui_data_window::first_data_item_displayed)
6411 (tui_data_window::delete_data_content_windows): Update.
6412 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6413 Remove.
6414 (tui_data_window::check_register_values): Update.
6415 (tui_data_item_window::rerender): Add parameters. Update.
6416 (tui_data_item_window::refresh_window): Remove.
6417 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6418 virtual.
6419 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6420 tui_gen_win_info.
6421 <refresh_window, max_height, min_height>: Remove.
6422 <rerender>: Add parameters.
6423 <x, y, visible>: New members.
6424 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6425 <m_item_width>: New member.
6426
22b7b041
TT
64272020-07-01 Tom Tromey <tom@tromey.com>
6428
6429 * tui/tui-regs.c (tui_data_window::show_register_group)
6430 (tui_data_window::check_register_values): Update.
6431 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6432 from item_no.
6433
c9753adb
TT
64342020-07-01 Tom Tromey <tom@tromey.com>
6435
6436 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6437 useless "if".
6438
9ab26b4a
TT
64392020-07-01 Tom Tromey <tom@tromey.com>
6440
6441 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6442 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6443
e555083f
TT
64442020-07-01 Tom Tromey <tom@tromey.com>
6445
6446 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6447 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6448 (struct tui_line_or_address): Move from tui-data.h.
6449 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6450 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6451 (tui_cmd_window, tui_source_window_base, tui_source_window)
6452 (tui_disasm_window): Don't declare.
6453 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6454 to tui-winsource.h.
6455 (SINGLE_KEY): Move to tui-stack.c.
6456
7a02bab7
TT
64572020-07-01 Tom Tromey <tom@tromey.com>
6458
6459 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6460 std::string.
6461 * tui/tui-regs.c (class tab_expansion_file): New.
6462 (tab_expansion_file::write): New method.
6463 (tui_register_format): Change return type. Use
6464 tab_expansion_file.
6465 (tui_get_register, tui_data_window::display_registers_from)
6466 (tui_data_item_window::rerender): Update.
6467 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6468 * tui/tui-io.c (tui_expand_tabs): Remove.
6469
ea68593b
TT
64702020-07-01 Tom Tromey <tom@tromey.com>
6471
6472 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6473
a8caed5d
FS
64742020-07-01 Fangrui Song <maskray@google.com>
6475
6476 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6477
9cdf9820
AKS
64782020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6479
6480 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6481 forms for DW_AT_associated and DW_AT_allocated attributes,
6482 which is already checked in function attr_to_dynamic_prop.
6483
a1520ad8
TT
64842020-06-30 Tom Tromey <tromey@adacore.com>
6485
6486 * dwarf2/read.c (quirk_rust_enum): Correctly call
6487 alloc_rust_variant for default-less enum.
6488
5ac58899
TT
64892020-06-30 Tom Tromey <tromey@adacore.com>
6490
6491 PR build/26183:
6492 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6493 gdb::to_string.
6494
19b187a9
SM
64952020-06-29 Simon Marchi <simon.marchi@efficios.com>
6496
6497 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6498 * gdbarch.h: Re-generate.
6499
cd4c4c07
TT
65002020-06-28 Tom Tromey <tom@tromey.com>
6501
6502 * command.h (cmd_types): Remove.
6503 (cmd_type): Don't declare.
6504 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6505 typedef.
6506 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6507 * cli/cli-decode.c (cmd_type): Remove.
6508
05779d57
PA
65092020-06-27 Pedro Alves <palves@redhat.com>
6510
6511 * fork-child.c (prefork_hook): Adjust.
6512 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6513 Delete.
6514 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6515 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6516 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6517 Remove declarations.
6518 (struct inferior) <set_tty, tty>: New methods.
6519 (struct inferior) <terminal>: Rename to ...
6520 (struct inferior) <m_terminal>: ... this and make private.
6521 * main.c (captured_main_1): Adjust.
6522 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6523 (mi_cmd_inferior_tty_show): Adjust.
6524 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6525 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6526
1776e3e5
NA
65272020-06-26 Nick Alcock <nick.alcock@oracle.com>
6528
6529 * configure.ac: Add --enable-libctf: handle --disable-static
6530 properly.
6531 * acinclude.m4: sinclude ../config/enable.m4.
6532 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6533 (LIBCTF): Substitute in.
6534 (CTF_DEPS): New, likewise.
6535 (CLIBS): libctf needs symbols from libbfd: move earlier.
6536 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6537 flags.
6538 * ctfread.c: Surround in ENABLE_LIBCTF.
6539 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6540 * configure: Regenerate.
6541 * config.in: Likewise.
6542
58373b80
SM
65432020-06-25 Simon Marchi <simon.marchi@efficios.com>
6544
6545 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6546
277474ee
SM
65472020-06-25 Simon Marchi <simon.marchi@efficios.com>
6548
6549 * inferior.h (struct inferior) <terminal>: Change type to
6550 gdb::unique_xmalloc_ptr<char>.
6551 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6552 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6553 field, adjust to unique pointer.
6554 (get_inferior_io_terminal): Adjust to unique pointer.
6555
6d74da72
AB
65562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6557
6558 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6559 registers, not just the known core set of registers.
6560
2e52d038
AB
65612020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6562
6563 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6564 fflags, frm, and fcsr registers.
6565 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6566 restore groups.
6567 (riscv_tdesc_unknown_reg): New function.
6568 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6569 tdesc_use_registers.
6570 * riscv-tdep.h (struct gdbarch_tdep): Add
6571 unknown_csrs_first_regnum, unknown_csrs_count,
6572 duplicate_fflags_regnum, duplicate_frm_regnum, and
6573 duplicate_fcsr_regnum fields.
6574
be64fd07
AB
65752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6576
6577 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6578 callback, use the callback (when not null) to help number unknown
6579 registers.
6580 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6581 (tdesc_use_registers): Add extra parameter to declaration.
6582
3b9fce96
AB
65832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6584
6585 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6586 in the file.
6587 (class riscv_pending_register_alias): Likewise.
6588 (riscv_register_feature::register_info): Change 'required_p' field
6589 to 'required', and change its type. Add 'check' member function.
6590 (riscv_register_feature::register_info::check): Define new member
6591 function.
6592 (riscv_xreg_feature): Change initialisation of 'required' field.
6593 (riscv_freg_feature): Likewise.
6594 (riscv_virtual_feature): Likewise.
6595 (riscv_csr_feature): Likewise.
6596 (riscv_check_tdesc_feature): Take extra parameter, the csr
6597 tdesc_feature, rewrite the function to use the new
6598 riscv_register_feature::register_info::check function.
6599 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6600
865bad26
AB
66012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6602
6603 * features/Makefile: Remove all references to the deleted files
6604 below.
6605 * features/riscv/32bit-csr.c: Deleted.
6606 * features/riscv/32bit-csr.xml: Deleted.
6607 * features/riscv/64bit-csr.c: Deleted.
6608 * features/riscv/64bit-csr.xml: Deleted.
6609 * features/riscv/rebuild-csr-xml.sh: Deleted.
6610
ed69cbc8
AB
66112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6612
6613 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6614 whitespace error for declaration of names member variable.
6615 (struct riscv_register_feature): Add new prefer_first_name member
6616 variable, and fix whitespace error in declaration of registers.
6617 (riscv_xreg_feature): Initialize prefer_first_name field.
6618 (riscv_freg_feature): Likewise.
6619 (riscv_virtual_feature): Likewise.
6620 (riscv_csr_feature): Likewise.
6621 (riscv_register_name): Expand on comments. Remove register name
6622 modifications for CSR and virtual registers.
6623
4445e8f5
AB
66242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6625
6626 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6627 errors.
6628
767a879e
AB
66292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6630
6631 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6632 riscv-opc.h.
6633 (class riscv_pending_register_alias): New class.
6634 (riscv_check_tdesc_feature): Take vector of pending aliases and
6635 populate it as appropriate.
6636 (riscv_setup_register_aliases): Delete.
6637 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6638 to riscv_check_tdesc_feature in all cases. Use the vector to
6639 create the register aliases.
6640
bb6e55f3
RO
66412020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6642
6643 * sol2-tdep.c (sol2_static_transform_name): Remove.
6644 (sol2_init_abi): Don't register it.
6645 * gdbarch.sh (static_transform_name): Remove.
6646 * gdbarch.c, gdbarch.h: Regenerate.
6647
6648 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6649 gdbarch_static_transform_name.
6650 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6651 * stabsread.c (define_symbol) <'X'>: Remove.
6652 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6653 handling.
6654 <'V'>: Likewise.
6655 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6656 <'S'>: Remove call to gdbarch_static_transform_name.
6657
c6d36836
RO
66582020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6659
6660 * procfs.c (procfs_pre_trace): New function.
6661 (procfs_target::create_inferior): Pass it to fork_inferior.
6662
a7e6196b
RO
66632020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6664
6665 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6666 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6667 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6668 sol2-tdep.o, sparc-sol2-tdep.o.
6669 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6670 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6671 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6672 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6673
d412e696
RO
66742020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6675
6676 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6677 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6678 Call sol2_init_abi.
6679 Remove calls to set_gdbarch_skip_solib_resolver,
6680 set_gdbarch_core_pid_to_str.
6681 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6682 (i386_sol2_static_transform_name): Remove.
6683 (i386_sol2_init_abi): Call sol2_init_abi.
6684 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6685 set_gdbarch_static_transform_name,
6686 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6687 Use sol2_sigtramp_p.
6688 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6689 (sol2_sigtramp_p): New function.
6690 (sol2_static_transform_name): New function.
6691 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6692 (sol2_init_abi): New function.
6693 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6694 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6695 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6696 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6697 (sparc_sol2_static_transform_name): Remove.
6698 (sparc32_sol2_init_abi): Call sol2_init_abi.
6699 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6700 set_gdbarch_static_transform_name,
6701 set_gdbarch_skip_solib_resolver,
6702 set_gdbarch_core_pid_to_str.
6703 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6704 (sparc_sol2_static_transform_name): Remove
6705 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6706 call sol2_sigtramp_p.
6707 (sparc64_sol2_init_abi): Call sol2_init_abi.
6708 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6709 set_gdbarch_static_transform_name,
6710 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6711
a8654e7d
PW
67122020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6713
6714 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6715 * exec.c (validate_exec_file): If from_tty, set both
6716 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6717 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6718 and from_tty, unconditionally ask a confirmation.
6719
caa7fd04
AB
67202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6721
6722 * target-descriptions.c (tdesc_architecture_name): Protect against
6723 NULL pointer dereference.
6724 (maint_print_xml_tdesc_cmd): New function.
6725 (_initialize_target_descriptions): Register new 'maint print
6726 xml-tdesc' command and give it the filename completer.
6727 * NEWS: Mention new 'maint print xml-tdesc' command.
6728
fbf42f4e
AB
67292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6730
6731 * target-descriptions.c (class tdesc_compatible_info): New class.
6732 (struct target_desc): Change type of compatible vector.
6733 (tdesc_compatible_p): Update for change in type of
6734 target_desc::compatible.
6735 (tdesc_compatible_info_list): New function.
6736 (tdesc_compatible_info_arch_name): New function.
6737 (tdesc_add_compatible): Update for change in type of
6738 target_desc::compatible.
6739 (print_c_tdesc::visit_pre): Likewise.
6740
20821f4e
AB
67412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6742
6743 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6744 whitespace to underscore.
6745 (maint_print_c_tdesc_cmd): Use fake filename for target
6746 descriptions that came from the target.
6747 (_initialize_target_descriptions): Add filename command completion
6748 for 'maint print c-tdesc'.
6749
1fb5ee62
SM
67502020-06-23 Simon Marchi <simon.marchi@efficios.com>
6751
6752 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6753 lines.
6754
fc3ecb3e
SM
67552020-06-23 Simon Marchi <simon.marchi@efficios.com>
6756
6757 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6758 lines.
6759 (dwarf2_find_location_expression): Likewise.
6760 (call_site_parameter_matches): Likewise.
6761 (dwarf2_compile_expr_to_ax): Likewise.
6762 (disassemble_dwarf_expression): Likewise.
6763 (loclist_describe_location): Likewise.
6764
236ef034
PA
67652020-06-23 Pedro Alves <palves@redhat.com>
6766
6767 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6768 progspace-and-thread.h. Include scoped-mock-context.h instead.
6769 (register_to_value_test): Use scoped_mock_context.
6770 * regcache.c: Include "scoped-mock-context.h".
6771 (cooked_read_test): Don't error out if a target is already pushed.
6772 Use scoped_mock_context. Adjust.
6773 * scoped-mock-context.h: New file.
6774
39e7ecca
AB
67752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6776
6777 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6778 initializer.
6779 (ada_language::is_string_type_p): New member function.
6780 * c-lang.c (c_language_data): Delete la_is_string_type_p
6781 initializer.
6782 (cplus_language_data): Likewise.
6783 (asm_language_data): Likewise.
6784 (minimal_language_data): Likewise.
6785 * d-lang.c (d_language_data): Likewise.
6786 * f-lang.c (f_is_string_type_p): Delete function, implementation
6787 moved to f_language::is_string_type_p.
6788 (f_language_data): Delete la_is_string_type_p initializer.
6789 (f_language::is_string_type_p): New member function,
6790 implementation from f_is_string_type_p.
6791 * go-lang.c (go_is_string_type_p): Delete function, implementation
6792 moved to go_language::is_string_type_p.
6793 (go_language_data): Delete la_is_string_type_p initializer.
6794 (go_language::is_string_type_p): New member function,
6795 implementation from go_is_string_type_p.
6796 * language.c (language_defn::is_string_type_p): Define new member
6797 function.
6798 (default_is_string_type_p): Make static, add comment copied from
6799 header file.
6800 (unknown_language_data): Delete la_is_string_type_p initializer.
6801 (unknown_language::is_string_type_p): New member function.
6802 (auto_language_data): Delete la_is_string_type_p initializer.
6803 (auto_language::is_string_type_p): New member function.
6804 * language.h (language_data): Delete la_is_string_type_p field.
6805 (language_defn::is_string_type_p): Declare new function.
6806 (default_is_string_type_p): Delete desclaration, move comment to
6807 definition.
6808 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6809 moved to m2_language::is_string_type_p.
6810 (m2_language_data): Delete la_is_string_type_p initializer.
6811 (m2_language::is_string_type_p): New member function,
6812 implementation from m2_is_string_type_p.
6813 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6814 initializer.
6815 * opencl-lang.c (opencl_language_data): Likewise.
6816 * p-lang.c (pascal_is_string_type_p): Delete function,
6817 implementation moved to pascal_language::is_string_type_p.
6818 (pascal_language_data): Delete la_is_string_type_p initializer.
6819 (pascal_language::is_string_type_p): New member function,
6820 implementation from pascal_is_string_type_p.
6821 * rust-lang.c (rust_is_string_type_p): Delete function,
6822 implementation moved to rust_language::is_string_type_p.
6823 (rust_language_data): Delete la_is_string_type_p initializer.
6824 (rust_language::is_string_type_p): New member function,
6825 implementation from rust_is_string_type_p.
6826 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6827 is_string_type_p.
6828
4ffc13fb
AB
68292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6830
6831 * ada-lang.c (ada_language_data): Delete la_print_typedef
6832 initializer.
6833 (ada_language::print_typedef): New member function.
6834 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6835 (cplus_language_data): Likewise.
6836 (asm_language_data): Likewise.
6837 (minimal_language_data): Likewise.
6838 * d-lang.c (d_language_data): Likewise.
6839 * f-lang.c (f_language_data): Likewise.
6840 (f_language::print_typedef): New member function.
6841 * go-lang.c (go_language_data): Delete la_print_typedef
6842 initializer.
6843 * language.c (language_defn::print_typedef): Define member
6844 function.
6845 (unknown_language_data): Delete la_print_typedef initializer.
6846 (unknown_language::print_typedef): New member function.
6847 (auto_language_data): Delete la_print_typedef initializer.
6848 (auto_language::print_typedef): New member function.
6849 * language.h (language_data): Delete la_print_typedef field.
6850 (language_defn::print_typedef): Declare new member function.
6851 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6852 (default_print_typedef): Delete declaration.
6853 * m2-lang.c (m2_language_data): Delete la_print_typedef
6854 initializer.
6855 (m2_language::print_typedef): New member function.
6856 * objc-lang.c (objc_language_data): Delete la_print_typedef
6857 initializer.
6858 * opencl-lang.c (opencl_language_data): Likewise.
6859 * p-lang.c (pascal_language_data): Likewise.
6860 (pascal_language::print_typedef): New member function.
6861 * rust-lang.c (rust_print_typedef): Delete function,
6862 implementation moved to rust_language::print_typedef.
6863 (rust_language): Delete la_print_typedef initializer.
6864 (rust_language::print_typedef): New member function,
6865 implementation from rust_print_typedef.
6866 * typeprint.c (default_print_typedef): Delete.
6867
d711ee67
AB
68682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6869
6870 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6871 (ada_language::printstr): New member function.
6872 * c-lang.c (c_language_data): Delete la_printstr initializer.
6873 (cplus_language_data): Likewise.
6874 (asm_language_data): Likewise.
6875 (minimal_language_data): Likewise.
6876 * d-lang.c (d_language_data): Likewise.
6877 * f-lang.c (f_printstr): Rename to f_language::printstr.
6878 (f_language_data): Delete la_printstr initializer.
6879 (f_language::printstr): New member function, implementation from
6880 f_printstr.
6881 * go-lang.c (go_language_data): Delete la_printstr initializer.
6882 * language.c (language_defn::printstr): Define new member
6883 function.
6884 (unk_lang_printstr): Delete.
6885 (unknown_language_data): Delete la_printstr initializer.
6886 (unknown_language::printstr): New member function.
6887 (auto_language_data): Delete la_printstr initializer.
6888 (auto_language::printstr): New member function.
6889 * language.h (language_data): Delete la_printstr field.
6890 (language_defn::printstr): Declare new member function.
6891 (LA_PRINT_STRING): Update call to printstr.
6892 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6893 (m2_language_data): Delete la_printstr initializer.
6894 (m2_language::printstr): New member function, implementation from
6895 m2_printstr.
6896 * objc-lang.c (objc_language_data): Delete la_printstr
6897 initializer.
6898 * opencl-lang.c (opencl_language_data): Likewise.
6899 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6900 (pascal_language_data): Delete la_printstr initializer.
6901 (pascal_language::printstr): New member function, implementation
6902 from pascal_printstr.
6903 * p-lang.h (pascal_printstr): Delete declaration.
6904 * rust-lang.c (rust_printstr): Update header comment.
6905 (rust_language_data): Delete la_printstr initializer.
6906 (rust_language::printstr): New member function.
6907
52b50f2c
AB
69082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6909
6910 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6911 (ada_language::printchar): New member function.
6912 * c-lang.c (c_language_data): Delete la_printchar initializer.
6913 (cplus_language_data): Likewise.
6914 (asm_language_data): Likewise.
6915 (minimal_language_data): Likewise.
6916 * d-lang.c (d_language_data): Likewise.
6917 * f-lang.c (f_printchar): Rename to f_language::printchar.
6918 (f_language_data): Delete la_printchar initializer.
6919 (f_language::printchar): New member function, implementation from
6920 f_printchar.
6921 * go-lang.c (go_language_data): Delete la_printchar initializer.
6922 * language.c (unk_lang_printchar): Delete.
6923 (language_defn::printchar): Define new member function.
6924 (unknown_language_data): Delete la_printchar initializer.
6925 (unknown_language::printchar): New member function.
6926 (auto_language_data): Delete la_printchar initializer.
6927 (auto_language::printchar): New member function.
6928 * language.h (language_data): Delete la_printchar field.
6929 (language_defn::printchar): Declare new member function.
6930 (LA_PRINT_CHAR): Update call to printchar.
6931 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6932 (m2_language::printchar): New member function.
6933 * objc-lang.c (objc_language_data): Delete la_printchar
6934 initializer.
6935 * opencl-lang.c (opencl_language_data): Likewise.
6936 * p-lang.c (pascal_language_data): Delete la_printchar
6937 initializer.
6938 (pascal_language::printchar): New member function.
6939 * rust-lang.c (rust_printchar): Rename to
6940 rust_language::printchar.
6941 (rust_language_data): Delete la_printchar initializer.
6942 (rust_language::printchar): New member function, implementation
6943 from rust_printchar.
6944
ec8cec5b
AB
69452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6946
6947 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6948 (ada_language_data): Delete la_emitchar initializer.
6949 (ada_language::emitchar): New member function, implementation from
6950 emit_char.
6951 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6952 (cplus_language_data): Likewise.
6953 (asm_language_data): Likewise.
6954 (minimal_language_data): Likewise.
6955 * d-lang.c (d_language_data): Likewise.
6956 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6957 (f_language_data): Delete la_emitchar initializer.
6958 (f_language::emitchar): New member function, implementation from
6959 f_emit_char.
6960 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6961 * language.c (unk_lang_emit_char): Delete.
6962 (language_defn::emitchar): New member function definition.
6963 (unknown_language_data): Delete la_emitchar initializer.
6964 (unknown_language::emitchar): New member function.
6965 (auto_language_data): Delete la_emitchar initializer.
6966 (auto_language::emitchar): New member function.
6967 * language.h (language_data): Delete la_emitchar field.
6968 (language_defn::emitchar): New member field declaration.
6969 (LA_EMIT_CHAR): Update call to emitchar.
6970 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6971 (m2_language_data): Delete la_emitchar initializer.
6972 (m2_language::emitchar): New member function, implementation from
6973 m2_emit_char.
6974 * objc-lang.c (objc_language_data): Delete la_emitchar
6975 initializer.
6976 * opencl-lang.c (opencl_language_data): Likewise.
6977 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6978 (pascal_language_data): Delete la_emitchar initializer.
6979 (pascal_language::emitchar): New member function, implementation
6980 from pascal_emit_char.
6981 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6982 (rust_language_data): Delete la_emitchar initializer.
6983 (rust_language::emitchar): New member function, implementation
6984 from rust_emitchar.
6985
1bf9c363
AB
69862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6987
6988 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6989 (ada_language_data): Delete la_post_parser initializer.
6990 (ada_language::post_parser): New member function.
6991 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6992 (cplus_language_data): Likewise.
6993 (asm_language_data): Likewise.
6994 (minimal_language_data): Likewise.
6995 * d-lang.c (d_language_data): Likewise.
6996 * f-lang.c (f_language_data): Likewise.
6997 * go-lang.c (go_language_data): Likewise.
6998 * language.c (unknown_language_data): Likewise.
6999 (auto_language_data): Likewise.
7000 * language.h (language_data): Delete la_post_parser field.
7001 (language_defn::post_parser): New member function.
7002 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7003 * objc-lang.c (objc_language_data): Likewise.
7004 * opencl-lang.c (opencl_language_data): Likewise.
7005 * p-lang.c (pascal_language_data): Likewise.
7006 * parse.c (parse_exp_in_context): Update call to post_parser.
7007 (null_post_parser): Delete definition.
7008 * parser-defs.h (null_post_parser): Delete declaration.
7009 * rust-lang.c (rust_language_data): Delete la_post_parser
7010 initializer.
7011
87afa652
AB
70122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7013
7014 * ada-lang.c (parse): Rename to ada_language::parser.
7015 (ada_language_data): Delete la_parser initializer.
7016 (ada_language::parser): New member function, implementation from
7017 parse.
7018 * c-lang.c (c_language_data): Delete la_parser initializer.
7019 (cplus_language_data): Likewise.
7020 (asm_language_data): Likewise.
7021 (minimal_language_data): Likewise.
7022 * d-lang.c (d_language_data): Likewise.
7023 (d_language::parser): New member function.
7024 * f-lang.c (f_language_data): Delete la_parser initializer.
7025 (f_language::parser): New member function.
7026 * go-lang.c (go_language_data): Delete la_parser initializer.
7027 (go_language::parser): New member function.
7028 * language.c (unk_lang_parser): Delete.
7029 (language_defn::parser): Define new member function.
7030 (unknown_language_data): Delete la_parser initializer.
7031 (unknown_language::parser): New member function.
7032 (auto_language_data): Delete la_parser initializer.
7033 (auto_language::parser): New member function.
7034 * language.h (language_data): Delete la_parser field.
7035 (language_defn::parser): Declare new member function.
7036 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7037 (m2_language::parser): New member function.
7038 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7039 * opencl-lang.c (opencl_language_data): Likewise.
7040 * p-lang.c (pascal_language_data): Likewise.
7041 (pascal_language::parser): New member function.
7042 * parse.c (parse_exp_in_context): Update call to parser.
7043 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7044 (rust_language::parser): New member function.
7045
37825800
AB
70462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7047
7048 * top.c (print_gdb_configuration): Print --with-python-libdir
7049 configuration value.
7050
5b860c93
PW
70512020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7052
7053 * NEWS: Mention change to the alias command.
7054
cf00cd6f
PW
70552020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7056
7057 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7058 (alias_command_completer)
7059 (make_alias_options_def_group): New functions.
7060 (alias_opts, alias_option_defs): New struct and array.
7061 (alias_usage_error): Update usage.
7062 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7063 Use option framework.
7064 (_initialize_cli_cmds): Update alias command help.
7065 Update aliases command help.
7066 (show_user):
7067 Add NULL for new default_args lookup_cmd argument.
7068 (valid_command_p): Rename to validate_aliased_command.
7069 Add NULL for new default_args lookup_cmd argument. Verify that the
7070 aliased_command has no default args.
7071 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7072 (lookup_cmd_1, lookup_cmd): New argument default_args.
7073 (add_alias_cmd):
7074 Add NULL for new default_args lookup_cmd argument.
7075 (print_help_for_command): Show default args under the layout
7076 alias some_alias = some_aliased_cmd some_alias_default_arg.
7077 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7078 xfree default_args in destructor.
7079 * cli/cli-script.c (process_next_line, do_define_command):
7080 Add NULL for new default_args lookup_cmd argument.
7081 * command.h: Declare new default_args argument in lookup_cmd
7082 and lookup_cmd_1.
7083 * completer.c (complete_line_internal_1):
7084 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7085 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7086 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7087 Likewise.
7088 * infcmd.c (_initialize_infcmd): Likewise.
7089 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7090 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7091 * python/py-param.c (add_setshow_generic): Likewise.
7092 * remote.c (_initialize_remote): Likewise.
7093 * top.c (execute_command): Prepend default_args if command has some.
7094 (set_verbose):
7095 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7096 * tracepoint.c (validate_actionline, encode_actions_1):
7097 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7098
bd920864
TBA
70992020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7100
7101 * jit.c (jit_read_descriptor): Use bool as the return type.
7102 (jit_breakpoint_re_set_internal): Use bool as the return type.
7103 Invert the return value logic; return true if the jit breakpoint
7104 has been successfully initialized.
7105 (jit_inferior_init): Update the call to
7106 jit_breakpoint_re_set_internal.
7107
f8098322
PA
71082020-06-22 Pedro Alves <palves@redhat.com>
7109
7110 PR gdb/25939
7111 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7112 Use the current inferior instead. Don't return
7113 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7114 wait again.
7115 * sol-thread.c (sol_thread_target::wait): Don't reference
7116 inferior_ptid.
7117 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7118 (sol_update_thread_list_callback): Use the current inferior's pid
7119 instead of inferior_ptid.
7120
196535a6
RO
71212020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7122
7123 * procfs.c: Cleanup many comments.
7124
7125 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7126 (AFTER_WATCHFLAG): Replace by value.
7127
7128 (MAIN_PROC_NAME_FORMAT): Inline ...
7129 (create_procinfo): ... here.
7130
7131 (procfs_debug_inferior): Remove SYS_exec handling.
7132 (syscall_is_exec): Likewise.
7133 (procfs_set_exec_trap): Likewise.
7134
7135 (syscall_is_lwp_exit): Inline in callers.
7136 (syscall_is_exit): Likewise.
7137 (syscall_is_exec): Likewise.
7138 (syscall_is_lwp_create): Likewise.
7139
7140 (invalidate_cache): Remove #if 0 code.
7141
7142 (make_signal_thread_runnable): Remove.
7143 (procfs_target::resume): Remove #if 0 code.
7144
cf6f3e86
RO
71452020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7146
7147 PR gdb/25939
7148 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7149 call ...
7150 (procfs_target::create_inferior): ... here.
7151
48e9cc84
PW
71522020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7153
7154 * exec.c (validate_exec_file): Ensure the build-id is up to
7155 date by calling reopen_exec_file (that checks file timestamp
7156 to decide to re-read the file).
7157
3922b302
PA
71582020-06-18 Pedro Alves <palves@redhat.com>
7159
7160 PR gdb/25412
7161 * gdbthread.h (delete_thread, delete_thread_silent)
7162 (find_thread_ptid): Update comments.
7163 * thread.c (current_thread_): New global.
7164 (is_current_thread): Move higher, and reimplement.
7165 (inferior_thread): Reimplement.
7166 (set_thread_exited): Use bool. Add assertions.
7167 (add_thread_silent): Simplify thread-reuse handling by always
7168 calling delete_thread.
7169 (delete_thread): Remove intro comment.
7170 (find_thread_ptid): Skip exited threads.
7171 (switch_to_thread_no_regs): Write to current_thread_.
7172 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7173 INFERIOR_PTID. Clear current_thread_.
7174
6dbdab44
PA
71752020-06-18 Pedro Alves <palves@redhat.com>
7176
7177 * aix-thread.c (pd_update): Use switch_to_thread.
7178
2da4b788
PA
71792020-06-18 Pedro Alves <palves@redhat.com>
7180
7181 * ravenscar-thread.c (ravenscar_thread_target): Update.
7182 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7183 (ravenscar_thread_target::add_active_thread): ... this. Don't
7184 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7185 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7186
50838d1b
PA
71872020-06-18 Pedro Alves <palves@redhat.com>
7188
7189 * nat/windows-nat.c (current_windows_thread): Remove.
7190 * nat/windows-nat.h (current_windows_thread): Remove.
7191 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7192 Adjust.
7193 (display_selectors): Adjust to fetch the current
7194 windows_thread_info based on inferior_ptid.
7195 (fake_create_process): No longer write to current_windows_thread.
7196 (windows_nat_target::get_windows_debug_event):
7197 Don't set inferior_ptid or current_windows_thread.
7198 (windows_nat_target::wait): Adjust to not rely on
7199 current_windows_thread.
7200 (do_initial_windows_stuff): Now a method of windows_nat_target.
7201 Switch to the last_ptid thread.
7202 (windows_nat_target::attach): Adjust.
7203 (windows_nat_target::detach): Use switch_to_no_thread instead of
7204 writing to inferior_ptid directly.
7205 (windows_nat_target::create_inferior): Adjust.
7206
31ce04e9
PA
72072020-06-18 Pedro Alves <palves@redhat.com>
7208
7209 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7210
1ee1a363
PA
72112020-06-18 Pedro Alves <palves@redhat.com>
7212
7213 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7214 after creating it, instead of writing to inferior_ptid. Don't
7215 write to inferior_ptid.
7216
6d350754
PA
72172020-06-18 Pedro Alves <palves@redhat.com>
7218
7219 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7220
5d971d48
PA
72212020-06-18 Pedro Alves <palves@redhat.com>
7222
7223 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7224 it, instead of writing to inferior_ptid.
7225
86e57d1b
PA
72262020-06-18 Pedro Alves <palves@redhat.com>
7227
7228 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7229 to inferior_ptid.
7230
f2e1c129
PA
72312020-06-18 Pedro Alves <palves@redhat.com>
7232
7233 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7234 instead of writing to inferior_ptid directly.
7235
60db1b85
PA
72362020-06-18 Pedro Alves <palves@redhat.com>
7237
7238 * corelow.c (core_target::close): Use switch_to_no_thread instead
7239 of writing to inferior_ptid directly.
7240 (add_to_thread_list, core_target_open): Use switch_to_thread
7241 instead of writing to inferior_ptid directly.
7242
fe7d6a8d
PA
72432020-06-18 Pedro Alves <palves@redhat.com>
7244
7245 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7246 inferior_ptid.
7247 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7248 inferior_ptid.
7249 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7250 inferior_ptid directly.
7251 (darwin_nat_target::init_thread_list): Switch to thread, instead
7252 of writing to inferior_ptid.
7253 (darwin_nat_target::attach): Don't write to inferior_ptid.
7254 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7255
975f8708
PA
72562020-06-18 Pedro Alves <palves@redhat.com>
7257
7258 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7259 thread.
7260 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7261 Instead use switch_to_thread.
7262 (gnu_nat_target::detach): Use switch_to_no_thread
7263 instead of writing to inferior_ptid directly. Used passed-in
7264 inferior instead of looking up the inferior by pid.
7265
1a204730
PA
72662020-06-18 Pedro Alves <palves@redhat.com>
7267
7268 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7269 inferior_ptid.
7270
ebe84f23
PA
72712020-06-18 Pedro Alves <palves@redhat.com>
7272
7273 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7274 inferior_ptid.
7275 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7276 thread.
7277 (nto_procfs_target::detach): Avoid referencing
7278 inferior_ptid. Use switch_to_no_thread instead of writing to
7279 inferior_ptid directly.
7280 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7281 instead of writing to inferior_ptid directly.
7282 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7283 to thread.
7284
191f02e5
PA
72852020-06-18 Pedro Alves <palves@redhat.com>
7286
7287 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7288 after creating it, instead of writing to inferior_ptid.
7289 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7290 to inferior_ptid directly.
7291 (gdbsim_target::wait): Don't write to inferior_ptid.
7292
0ac55310
PA
72932020-06-18 Pedro Alves <palves@redhat.com>
7294
7295 * remote.c (remote_target::remote_notice_new_inferior): Use
7296 switch_to_thread instead of writing to inferior_ptid directly.
7297 (remote_target::add_current_inferior_and_thread): Use
7298 switch_to_no_thread instead of writing to inferior_ptid directly.
7299 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7300 and switch_to_thread instead of using set_current_inferior or
7301 writing to inferior_ptid directly.
7302
5233f39b
PA
73032020-06-18 Pedro Alves <palves@redhat.com>
7304
7305 * tracectf.c (ctf_target_open): Switch to added thread instead of
7306 writing to inferior_ptid directly.
7307 (ctf_target::close): Use switch_to_no_thread instead of writing to
7308 inferior_ptid directly.
7309
087e161b
PA
73102020-06-18 Pedro Alves <palves@redhat.com>
7311
7312 * tracefile-tfile.c (tfile_target_open): Don't write to
7313 inferior_ptid directly, instead switch to added thread.
7314 (tfile_target::close): Use switch_to_no_thread instead of writing
7315 to inferior_ptid directly.
7316
7fb43e53
PA
73172020-06-18 Pedro Alves <palves@redhat.com>
7318
7319 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7320 (procfs_target::detach): Use switch_to_no_thread
7321 instead of writing to inferior_ptid directly.
7322 (do_attach): Change return type to void. Switch to the added
7323 thread.
7324 (procfs_target::create_inferior): Switch to the added thread.
7325 (procfs_do_thread_registers): Don't write to inferior_ptid.
7326
18493a00
PA
73272020-06-18 Pedro Alves <palves@redhat.com>
7328
7329 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7330 of writing to inferior_ptid.
7331 (scoped_restore_exited_inferior): Delete.
7332 (handle_vfork_child_exec_or_exit): Simplify using
7333 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7334 instead of writing to inferior_ptid.
7335 (THREAD_STOPPED_BY): Delete.
7336 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7337 (thread_stopped_by_hw_breakpoint): Delete.
7338 (save_waitstatus): Use
7339 scoped_restore_current_thread+switch_to_thread, and call
7340 target_stopped_by_watchpoint instead of
7341 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7342 instead of thread_stopped_by_sw_breakpoint, and
7343 target_stopped_by_hw_breakpoint instead of
7344 thread_stopped_by_hw_breakpoint.
7345 (handle_inferior_event)
7346 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7347 inferior_ptid directly, nor
7348 set_current_inferior/set_current_program_space. Use
7349 switch_to_thread / switch_to_inferior_no_thread instead.
7350
a0776b13
PA
73512020-06-18 Pedro Alves <palves@redhat.com>
7352
7353 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7354 instead of writing to inferior_ptid.
7355
6155c136
PA
73562020-06-18 Pedro Alves <palves@redhat.com>
7357
7358 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7359 added thread.
7360 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7361 to the added thread.
7362 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7363 instead of writing to inferior_ptid.
7364
c5316fc6
PA
73652020-06-18 Pedro Alves <palves@redhat.com>
7366
7367 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7368 (register_to_value_test): Mock a program_space too. Heap-allocate
7369 the address space. Don't write to inferior_ptid. Use
7370 switch_to_thread instead.
7371
8df01799
PA
73722020-06-18 Pedro Alves <palves@redhat.com>
7373
7374 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7375 Delete.
7376 (find_signalled_thread()): New, factored out from
7377 linux_make_corefile_notes and adjusted to handle exited threads.
7378 (linux_make_corefile_notes): Adjust to use the new
7379 find_signalled_thread.
7380
41792d68
PA
73812020-06-18 Pedro Alves <palves@redhat.com>
7382
7383 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7384 of saving/restoring inferior_ptid.
7385
612f258a
TT
73862020-06-17 Tom Tromey <tom@tromey.com>
7387
7388 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7389 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7390 declare.
7391 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7392
efb763a5
SM
73932020-06-15 Simon Marchi <simon.marchi@efficios.com>
7394
7395 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7396 of partial symtabs.
7397
2951f6c0
SM
73982020-06-17 Simon Marchi <simon.marchi@efficios.com>
7399
7400 * regformats/reg-arm.dat: Remove.
7401 * regformats/reg-bfin.dat: Remove.
7402 * regformats/reg-cris.dat: Remove.
7403 * regformats/reg-crisv32.dat: Remove.
7404 * regformats/reg-m32r.dat: Remove.
7405 * regformats/reg-tilegx.dat: Remove.
7406 * regformats/reg-tilegx32.dat: Remove.
7407
7d458ea5
SM
74082020-06-17 Simon Marchi <simon.marchi@efficios.com>
7409
7410 * features/Makefile (WHICH): Remove arm files.
7411 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7412 * regformats/arm/arm-with-neon.dat: Remove.
7413 * regformats/arm/arm-with-vfpv2.dat: Remove.
7414 * regformats/arm/arm-with-vfpv3.dat: Remove.
7415
3af96c0d
SM
74162020-06-17 Simon Marchi <simon.marchi@efficios.com>
7417
7418 * features/Makefile (XMLTOC): Remove rx.xml.
7419
b25e22fd
PA
74202020-06-17 Pedro Alves <palves@redhat.com>
7421
7422 * gdbthread.h (thread_control_state) <trap_expected> Update
7423 comments.
7424
a78a19b1
AB
74252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7426
7427 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7428 ada_language::lookup_symbol_nonlocal.
7429 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7430 (ada_language::lookup_symbol_nonlocal): New member function,
7431 implementation from ada_lookup_symbol_nonlocal.
7432 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7433 initializer.
7434 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7435 initializer.
7436 (cplus_language::lookup_symbol_nonlocal): New member function.
7437 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7438 (minimal_language_data) Likewise.
7439 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7440 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7441 initializer.
7442 (d_language::lookup_symbol_nonlocal): New member function.
7443 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7444 initializer.
7445 (f_language::lookup_symbol_nonlocal): New member function.
7446 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7447 initializer.
7448 * language.c (unknown_language_data): Likewise.
7449 (auto_language_data): Likewise.
7450 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7451 field.
7452 (language_defn::lookup_symbol_nonlocal): New member function.
7453 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7454 initializer.
7455 * objc-lang.c (objc_language_data): Likewise.
7456 * opencl-lang.c (opencl_language_data): Likewise.
7457 * p-lang.c (pascal_language_data): Likewise.
7458 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7459 rust_language::lookup_symbol_nonlocal.
7460 (rust_language_data): Delete la_lookup_symbol_nonlocal
7461 initializer.
7462 (rust_language::lookup_symbol_nonlocal): New member function,
7463 implementation from rust_lookup_symbol_nonlocal.
7464 * symtab.c (lookup_symbol_aux): Update call to
7465 lookup_symbol_nonlocal.
7466 (basic_lookup_symbol_nonlocal): Rename to...
7467 (language_defn::lookup_symbol_nonlocal): ...this, and update
7468 header comment. Remove language_defn parameter, and replace with
7469 uses of `this'.
7470 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7471
ebe2334e
AB
74722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7473
7474 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7475 initializer.
7476 (ada_language::value_print_inner): New member function.
7477 * c-lang.c (c_language_data): Delete la_value_print_inner
7478 initializer.
7479 (cplus_language_data): Likewise.
7480 (asm_language_data): Likewise.
7481 (minimal_language_data): Likewise.
7482 * d-lang.c (d_language_data): Likewise.
7483 (d_language::value_print_inner): New member function.
7484 * f-lang.c (f_language_data): Delete la_value_print_inner
7485 initializer.
7486 (f_language::value_print_inner): New member function.
7487 * f-lang.h (f_value_print_innner): Rename to...
7488 (f_value_print_inner): ...this (note spelling of 'inner').
7489 * f-valprint.c (f_value_print_innner): Rename to...
7490 (f_value_print_inner): ...this (note spelling of 'inner').
7491 * go-lang.c (go_language_data): Delete la_value_print_inner
7492 initializer.
7493 (go_language::value_print_inner): New member function.
7494 * language.c (language_defn::value_print_inner): Define new member
7495 function.
7496 (unk_lang_value_print_inner): Delete.
7497 (unknown_language_data): Delete la_value_print_inner initializer.
7498 (unknown_language::value_print_inner): New member function.
7499 (auto_language_data): Delete la_value_print_inner initializer.
7500 (auto_language::value_print_inner): New member function.
7501 * language.h (language_data): Delete la_value_print_inner field.
7502 (language_defn::value_print_inner): Delcare new member function.
7503 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7504 initializer.
7505 (m2_language::value_print_inner): New member function.
7506 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7507 initializer.
7508 * opencl-lang.c (opencl_language_data): Likewise.
7509 * p-lang.c (pascal_language_data): Likewise.
7510 (pascal_language::value_print_inner): New member function.
7511 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7512 initializer.
7513 (rust_language::value_print_inner): New member function.
7514 * valprint.c (do_val_print): Update call to value_print_inner.
7515
a1d1fa3e
AB
75162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7517
7518 * ada-lang.c (ada_language_data): Delete la_value_print
7519 initializer.
7520 (ada_language::value_print): New member function.
7521 * c-lang.c (c_language_data): Delete la_value_print initializer.
7522 (cplus_language_data): Likewise.
7523 (asm_language_data): Likewise.
7524 (minimal_language_data): Likewise.
7525 * d-lang.c (d_language_data): Likewise.
7526 * f-lang.c (f_language_data): Likewise.
7527 * go-lang.c (go_language_data): Likewise.
7528 * language.c (unk_lang_value_print): Delete.
7529 (language_defn::value_print): Define new member function.
7530 (unknown_language_data): Delete la_value_print initializer.
7531 (unknown_language::value_print): New member function.
7532 (auto_language_data): Delete la_value_print initializer.
7533 (auto_language::value_print): New member function.
7534 * language.h (language_data): Delete la_value_print field.
7535 (language_defn::value_print): Declare new member function.
7536 (LA_VALUE_PRINT): Update call to value_print.
7537 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7538 * objc-lang.c (objc_language_data): Likewise.
7539 * opencl-lang.c (opencl_language_data): Likewise.
7540 * p-lang.c (pascal_language_data): Likewise.
7541 (pascal_language::value_print): New member function.
7542 * rust-lang.c (rust_language_data): Delete la_value_print
7543 initializer.
7544
f16a9f57
AB
75452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7546
7547 * ada-lang.c (ada_watch_location_expression): Rename to
7548 ada_language::watch_location_expression.
7549 (ada_language_data): Delete la_watch_location_expression
7550 initializer.
7551 (ada_language::watch_location_expression): New member function,
7552 implementation from ada_watch_location_expression.
7553 * breakpoint.c (watch_command_1): Update call to
7554 watch_location_expression.
7555 * c-lang.c (c_watch_location_expression): Rename to
7556 language_defn::watch_location_expression.
7557 (c_language_data): Delete la_watch_location_expression
7558 initializer.
7559 (cplus_language_data): Likewise.
7560 (asm_language_data): Likewise.
7561 (minimal_language_data): Likewise.
7562 * c-lang.h (c_watch_location_expression): Delete declaration.
7563 * d-lang.c (d_language_data): Delete la_watch_location_expression
7564 initializer.
7565 * f-lang.c (f_language_data): Likewise.
7566 * go-lang.c (go_language_data): Likewise.
7567 * language.c (language_defn::watch_location_expression): Member
7568 function implementation from c_watch_location_expression.
7569 (unknown_language_data): Delete la_watch_location_expression
7570 initializer.
7571 (auto_language_data): Likewise.
7572 * language.h (language_data): Delete la_watch_location_expression
7573 field.
7574 (language_defn::watch_location_expression): Declare new member
7575 function.
7576 * m2-lang.c (m2_language_data): Delete
7577 la_watch_location_expression initializer.
7578 * objc-lang.c (objc_language_data): Likewise.
7579 * opencl-lang.c (opencl_language_data): Likewise.
7580 * p-lang.c (pascal_language_data): Likewise.
7581 * rust-lang.c (rust_watch_location_expression): Rename to
7582 rust_language::watch_location_expression.
7583 (rust_language_data): Delete la_watch_location_expression
7584 initializer.
7585 (rust_language::watch_location_expression): New member function,
7586 implementation from rust_watch_location_expression.
7587
7e56227d
AB
75882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7589
7590 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7591 ada_language::collect_symbol_completion_matches.
7592 (ada_language_data): Delete la_collect_symbol_completion_matches
7593 initializer.
7594 (ada_language::collect_symbol_completion_matches): New member
7595 function, implementation from
7596 ada_collect_symbol_completion_matches.
7597 * c-lang.c (c_language_data): Delete
7598 la_collect_symbol_completion_matches initializer.
7599 (cplus_language_data): Likewise.
7600 (asm_language_data): Likewise.
7601 (minimal_language_data): Likewise.
7602 * d-lang.c (d_language_data): Likewise.
7603 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7604 f_language::collect_symbol_completion_matches.
7605 (f_language_data): Delete la_collect_symbol_completion_matches
7606 initializer.
7607 (f_language::collect_symbol_completion_matches) New member
7608 function, implementation from f_collect_symbol_completion_matches.
7609 * go-lang.c (go_language_data): Delete
7610 la_collect_symbol_completion_matches initializer.
7611 * language.c (unknown_language_data): Likewise.
7612 (auto_language_data): Likewise.
7613 * language.h (language_data): Delete
7614 la_collect_symbol_completion_matches field.
7615 (language_defn::collect_symbol_completion_matches): New member
7616 function.
7617 * m2-lang.c (m2_language_data): Delete
7618 la_collect_symbol_completion_matches initializer.
7619 * objc-lang.c (objc_language_data): Likewise.
7620 * opencl-lang.c (opencl_language_data): Likewise.
7621 * p-lang.c (pascal_language_data): Likewise.
7622 * rust-lang.c (rust_language_data): Likewise.
7623 * symtab.c (default_collect_symbol_completion_matches): Delete.
7624 (collect_symbol_completion_matches): Update call to
7625 collect_symbol_completion_matches.
7626 (collect_symbol_completion_matches_type): Likewise.
7627 * symtab.h (default_collect_symbol_completion_matches): Delete
7628 declaration.
7629
53fc67f8
AB
76302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7631
7632 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7633 (ada_language_data): Delete la_word_break_characters initializer.
7634 (ada_language::word_break_characters): New member function.
7635 * c-lang.c (c_language_data): Delete la_word_break_characters
7636 initializer.
7637 (cplus_language_data): Likewise.
7638 (asm_language_data): Likewise.
7639 (minimal_language_data): Likewise.
7640 * completer.c: Update global comment.
7641 (advance_to_expression_complete_word_point): Update call to
7642 word_break_characters.
7643 (complete_files_symbols): Likewise.
7644 (complete_line_internal_1): Likewise.
7645 (default_completer_handle_brkchars): Likewise.
7646 (skip_quoted_chars): Likewise.
7647 * d-lang.c (d_language_data): Delete la_word_break_characters
7648 initializer.
7649 * f-lang.c (f_word_break_characters): Delete.
7650 (f_language_data): Delete la_word_break_characters initializer.
7651 (f_language::word_break_characters): New member function.
7652 * go-lang.c (go_language_data): Delete la_word_break_characters
7653 initializer.
7654 * language.c (unknown_language_data): Likewise.
7655 (auto_language_data): Likewise.
7656 * language.h (default_word_break_characters): Move declaration to
7657 earlier in the file.
7658 (language_data): Delete la_word_break_characters field.
7659 (language_defn::word_break_characters): New member function.
7660 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7661 initializer.
7662 * objc-lang.c (objc_language_data): Likewise.
7663 * opencl-lang.c (opencl_language_data): Likewise.
7664 * p-lang.c (pascal_language_data): Likewise.
7665 * rust-lang.c (rust_language_data): Likewise.
7666
c9debfb9
AB
76672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7668
7669 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7670 (ada_language_data): Delete la_get_symbol_name_matcher
7671 initializer.
7672 (language_defn::get_symbol_name_matcher_inner): New member
7673 function.
7674 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7675 initializer.
7676 (cplus_language_data): Likewise.
7677 (cplus_language::get_symbol_name_matcher_inner): New member
7678 function.
7679 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7680 (minimal_language_data): Likewise.
7681 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7682 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7683 initializer.
7684 * dictionary.c (iter_match_first_hashed): Update call to
7685 get_symbol_name_matcher.
7686 (iter_match_next_hashed): Likewise.
7687 (iter_match_next_linear): Likewise.
7688 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7689 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7690 initializer.
7691 (f_language::get_symbol_name_matcher_inner): New member function.
7692 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7693 initializer.
7694 * language.c (default_symbol_name_matcher): Update header comment,
7695 make static.
7696 (language_defn::get_symbol_name_matcher): New definition.
7697 (language_defn::get_symbol_name_matcher_inner): Likewise.
7698 (get_symbol_name_matcher): Delete.
7699 (unknown_language_data): Delete la_get_symbol_name_matcher
7700 initializer.
7701 (auto_language_data): Likewise.
7702 * language.h (language_data): Delete la_get_symbol_name_matcher
7703 field.
7704 (language_defn::get_symbol_name_matcher): New member function.
7705 (language_defn::get_symbol_name_matcher_inner): Likewise.
7706 (default_symbol_name_matcher): Delete declaration.
7707 * linespec.c (find_methods): Update call to
7708 get_symbol_name_matcher.
7709 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7710 initializer.
7711 * minsyms.c (lookup_minimal_symbol): Update call to
7712 get_symbol_name_matcher.
7713 (iterate_over_minimal_symbols): Likewise.
7714 * objc-lang.c (objc_language_data): Delete
7715 la_get_symbol_name_matcher initializer.
7716 * opencl-lang.c (opencl_language_data): Likewise.
7717 * p-lang.c (pascal_language_data): Likewise.
7718 * psymtab.c (psymbol_name_matches): Update call to
7719 get_symbol_name_matcher.
7720 * rust-lang.c (rust_language_data): Delete
7721 la_get_symbol_name_matcher initializer.
7722 * symtab.c (symbol_matches_search_name): Update call to
7723 get_symbol_name_matcher.
7724 (compare_symbol_name): Likewise.
7725
9a49ad8c
AB
77262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7727
7728 * ada-lang.c (ada_language_data): Delete la_compute_program
7729 initializer.
7730 * c-lang.c (c_language_data): Likewise.
7731 (c_language::compute_program): New member function.
7732 (cplus_language_data): Delete la_compute_program initializer.
7733 (cplus_language::compute_program): New member function.
7734 (asm_language_data): Delete la_compute_program initializer.
7735 (minimal_language_data): Likewise.
7736 * c-lang.h (c_compute_program): Update comment.
7737 (cplus_compute_program): Likewise.
7738 * compile/compile-c-support.c (c_compute_program): Likewise.
7739 (cplus_compute_program): Likewise.
7740 * compile/compile.c (compile_to_object): Update call to
7741 la_compute_program.
7742 * d-lang.c (d_language_data): Delete la_compute_program
7743 initializer.
7744 * f-lang.c (f_language_data): Likewise.
7745 * go-lang.c (go_language_data): Likewise.
7746 * language.c (unknown_language_data): Likewise.
7747 (auto_language_data): Likewise.
7748 * language.h (language_data): Delete la_compute_program field.
7749 (language_defn::compute_program): New member function.
7750 * m2-lang.c (m2_language_data): Delete la_compute_program
7751 initializer.
7752 * objc-lang.c (objc_language_data): Likewise.
7753 * opencl-lang.c (opencl_language_data): Likewise.
7754 * p-lang.c (pascal_language_data): Likewise.
7755 * rust-lang.c (rust_language_data): Likewise.
7756
eff93b4d
AB
77572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7758
7759 * ada-lang.c (ada_language_data) Delete
7760 la_class_name_from_physname initializer.
7761 * c-lang.c (c_language_data): Likewise.
7762 (cplus_language_data): Likewise.
7763 (cplus_language::class_name_from_physname): New member function.
7764 (asm_language_data): Delete la_class_name_from_physname
7765 initializer.
7766 (minimal_language_data): Likewise.
7767 * d-lang.c (d_language_data): Likewise.
7768 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7769 method on language_defn class.
7770 (guess_full_die_structure_name): Likewise.
7771 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7772 initializer.
7773 * go-lang.c (go_language_data): Likewise.
7774 * language.c (language_class_name_from_physname): Delete.
7775 (unk_lang_class_name): Delete.
7776 (unknown_language_data): Delete la_class_name_from_physname
7777 initializer.
7778 (auto_language_data): Likewise.
7779 * language.h (language_data): Delete la_class_name_from_physname
7780 field.
7781 (language_defn::class_name_from_physname): New function.
7782 (language_class_name_from_physname): Delete declaration.
7783 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7784 initializer.
7785 * objc-lang.c (objc_language_data): Likewise.
7786 * opencl-lang.c (opencl_language_data): Likewise.
7787 * p-lang.c (pascal_language_data): Likewise.
7788 * rust-lang.c (rust_language_data): Likewise.
7789
de543742
TT
77902020-06-16 Tom Tromey <tom@tromey.com>
7791
7792 * tui/tui-data.h (STATUS_NAME): New macro.
7793 * tui/tui-layout.c (tui_remove_some_windows)
7794 (initialize_known_windows, tui_register_window)
7795 (tui_layout_split::remove_windows, initialize_layouts)
7796 (tui_new_layout_command): Don't use hard-coded window names.
7797
a350efd4
TT
77982020-06-16 Tom Tromey <tom@tromey.com>
7799
7800 PR tui/25348:
7801 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7802 tui_initialize_readline. Only run once. Call rl_initialize.
7803 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7804 tui_initialize_readline.
7805 * tui/tui-io.c (tui_setup_io): Call
7806 tui_ensure_readline_initialized.
7807 * tui/tui-interp.c (tui_interp::init): Update.
7808
39ec0490
TT
78092020-06-16 Tom Tromey <tom@tromey.com>
7810
7811 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7812 Also preserve the status window.
7813
d2d1ea20
TT
78142020-06-16 Tom Tromey <tom@tromey.com>
7815
7816 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7817 where m_window==nullptr.
7818
66920317
TT
78192020-06-15 Tom Tromey <tromey@adacore.com>
7820
7821 * windows-nat.c (windows_nat::handle_output_debug_string):
7822 Update.
7823 (windows_nat::handle_ms_vc_exception): Update.
7824 * target.h (target_read_string): Change API.
7825 * target.c (target_read_string): Change API.
7826 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7827 Update.
7828 * solib-frv.c (frv_current_sos): Update.
7829 * solib-dsbt.c (dsbt_current_sos): Update.
7830 * solib-darwin.c (darwin_current_sos): Update.
7831 * linux-thread-db.c (inferior_has_bug): Update.
7832 * expprint.c (print_subexp_standard): Update.
7833 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7834 (ada_exception_message_1): Update.
7835
a5d871dd
TT
78362020-06-15 Tom Tromey <tromey@adacore.com>
7837
7838 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7839
670e35fa
TT
78402020-06-15 Tom Tromey <tromey@adacore.com>
7841
7842 * valprint.c (read_string): Update comment.
7843 * target.c (MIN): Remove.
7844 (target_read_string): Rewrite.
7845
f5272a3b
TT
78462020-06-15 Tom Tromey <tromey@adacore.com>
7847
7848 * corefile.c (read_memory_string): Remove.
7849 * ada-valprint.c (ada_value_print_ptr): Update.
7850 * ada-lang.h (ada_tag_name): Change return type.
7851 * ada-lang.c (type_from_tag): Update.
7852 (ada_tag_name_from_tsd): Change return type. Use
7853 target_read_string.
7854 (ada_tag_name): Likewise.
7855 * gdbcore.h (read_memory_string): Don't declare.
7856
2c074f49
HD
78572020-06-14 Hannes Domani <ssbssa@yahoo.de>
7858
7859 * symtab.c (rbreak_command): Ignore Windows drive colon.
7860
6a17d503
SM
78612020-06-12 Simon Marchi <simon.marchi@efficios.com>
7862
7863 * NEWS: Mention removed GDBserver host support.
7864
453c733f
NC
78652020-06-12 Nelson Chu <nelson.chu@sifive.com>
7866
7867 * features/riscv/rebuild-csr-xml.sh: Updated.
7868
2b4e6a3f
TT
78692020-06-11 Tom Tromey <tom@tromey.com>
7870
7871 PR gdb/18318:
7872 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7873
4412332f
JG
78742020-06-09 Jonny Grant <jg@jguk.org>
78752020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7876
7877 * main.c (captured_main_1): Don't print new line after help.
7878 (print_gdb_help): add mailing list and IRC channel information
7879 to --help. Add new lines between items in the footer. Remove
7880 quotes around bug url.
7881
2f33032a
KS
78822020-06-11 Keith Seitz <keiths@redhat.com>
7883
7884 PR gdb/21356
7885 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7886 Resolve typedefs for type length calculations.
7887
7ab96794
TV
78882020-06-10 Tom de Vries <tdevries@suse.de>
7889
7890 PR ada/24713
7891 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7892 (write_psymbols): Enable .gdb_index for ada.
7893 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7894 ada.
7895
e5f3ece2
TV
78962020-06-10 Tom de Vries <tdevries@suse.de>
7897
7898 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7899 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7900 namei" instead of "const char *name" argument.
7901 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7902 dw2_symtab_iter_init.
7903
940da03e
SM
79042020-06-08 Simon Marchi <simon.marchi@efficios.com>
7905
7906 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7907 to use type::field and field::type instead.
7908
b6cdac4b
SM
79092020-06-08 Simon Marchi <simon.marchi@efficios.com>
7910
7911 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7912 to use field::type instead.
7913
5d14b6e5
SM
79142020-06-08 Simon Marchi <simon.marchi@efficios.com>
7915
7916 * gdbtypes.h (struct field) <type, set_type>: New methods.
7917 Rename `type` field to...
7918 <m_type>: ... this. Change references throughout to use type or
7919 set_type methods.
7920 (FIELD_TYPE): Use field::type. Change call sites that modify
7921 the field's type to use field::set_type instead.
7922
3d967001
SM
79232020-06-08 Simon Marchi <simon.marchi@efficios.com>
7924
7925 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7926 to use type::index_type instead.
7927
262abc0d
SM
79282020-06-08 Simon Marchi <simon.marchi@efficios.com>
7929
7930 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7931 methods.
7932 (TYPE_INDEX_TYPE): Use type::index_type.
7933 * gdbtypes.c (create_array_type_with_stride): Likewise.
7934
82836c92
TT
79352020-06-07 Tom Tromey <tom@tromey.com>
7936
7937 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7938 parameter.
7939 (generic_value_print): Update.
7940
940dace9
AB
79412020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7942
7943 Revert commit 982a38f60b0.
7944 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7945
982a38f6
AB
79462020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7947
7948 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7949 avoid use after free.
7950
82f06518
TV
79512020-06-05 Tom de Vries <tdevries@suse.de>
7952
7953 * NEWS: Fix typos.
7954
f8c41851
SM
79552020-06-04 Simon Marchi <simon.marchi@efficios.com>
7956
7957 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7958 the per_bfd object.
7959 (dwarf2_read_debug_names): Likewise.
7960 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7961 object when re-using a per_bfd object with an index.
7962
f9b5d5ea
TV
79632020-06-03 Tom de Vries <tdevries@suse.de>
7964
7965 PR symtab/26046
7966 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7967 children for C++.
7968 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7969 DW_TAG_subprogram.
7970
f6eee2d0
AB
79712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7972
7973 * ada-lang.c (ada_language_data): Delete skip_trampoline
7974 initializer.
7975 * c-lang.c (c_language_data): Likewise.
7976 (cplus_language_data): Likewise.
7977 (cplus_language::skip_trampoline): New member function.
7978 (asm_language_data): Delete skip_trampoline initializer.
7979 (minimal_language_data): Likewise.
7980 * d-lang.c (d_language_data): Likewise.
7981 * f-lang.c (f_language_data): Likewise.
7982 * go-lang.c (go_language_data): Likewise.
7983 * language.c (unk_lang_trampoline): Delete function.
7984 (skip_language_trampoline): Update.
7985 (unknown_language_data): Delete skip_trampoline initializer.
7986 (auto_language_data): Likewise.
7987 * language.h (language_data): Delete skip_trampoline field.
7988 (language_defn::skip_trampoline): New function.
7989 * m2-lang.c (m2_language_data): Delete skip_trampoline
7990 initializer.
7991 * objc-lang.c (objc_skip_trampoline): Delete function, move
7992 implementation to objc_language::skip_trampoline.
7993 (objc_language_data): Delete skip_trampoline initializer.
7994 (objc_language::skip_trampoline): New member function with
7995 implementation from objc_skip_trampoline.
7996 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7997 initializer.
7998 * p-lang.c (pascal_language_data): Likewise.
7999 * rust-lang.c (rust_language_data): Likewise.
8000
0a50df5d
AB
80012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8002
8003 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8004 (ada_language::demangle): New member function.
8005 * c-lang.c (c_language_data): Delete la_demangle initializer.
8006 (cplus_language_data): Delete la_demangle initializer.
8007 (cplus_language::demangle): New member function.
8008 (asm_language_data): Delete la_demangle initializer.
8009 (minimal_language_data): Delete la_demangle initializer.
8010 * d-lang.c (d_language_data): Delete la_demangle initializer.
8011 (d_language::demangle): New member function.
8012 * f-lang.c (f_language_data): Delete la_demangle initializer.
8013 (f_language::demangle): New member function.
8014 * go-lang.c (go_language_data): Delete la_demangle initializer.
8015 (go_language::demangle): New member function.
8016 * language.c (language_demangle): Update.
8017 (unk_lang_demangle): Delete.
8018 (unknown_language_data): Delete la_demangle initializer.
8019 (unknown_language::demangle): New member function.
8020 (auto_language_data): Delete la_demangle initializer.
8021 (auto_language::demangle): New member function.
8022 * language.h (language_data): Delete la_demangle field.
8023 (language_defn::demangle): New function.
8024 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8025 * objc-lang.c (objc_language_data): Delete la_demangle
8026 initializer.
8027 (objc_language::demangle): New member function.
8028 * opencl-lang.c (opencl_language_data): Delete la_demangle
8029 initializer.
8030 * p-lang.c (pascal_language_data): Likewise.
8031 * rust-lang.c (rust_language_data): Likewise.
8032 (rust_language::demangle): New member function.
8033
fbfb0a46
AB
80342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8035
8036 * ada-lang.c (ada_language_data): Delete la_print_type
8037 initializer.
8038 (ada_language::print_type): New member function.
8039 * c-lang.c (c_language_data): Delete la_print_type initializer.
8040 (c_language::print_type): New member function.
8041 (cplus_language_data): Delete la_print_type initializer.
8042 (cplus_language::print_type): New member function.
8043 (asm_language_data): Delete la_print_type initializer.
8044 (asm_language::print_type): New member function.
8045 (minimal_language_data): Delete la_print_type initializer.
8046 (minimal_language::print_type): New member function.
8047 * d-lang.c (d_language_data): Delete la_print_type initializer.
8048 (d_language::print_type): New member function.
8049 * f-lang.c (f_language_data): Delete la_print_type initializer.
8050 (f_language::print_type): New member function.
8051 * go-lang.c (go_language_data): Delete la_print_type initializer.
8052 (go_language::print_type): New member function.
8053 * language.c (unk_lang_print_type): Delete.
8054 (unknown_language_data): Delete la_print_type initializer.
8055 (unknown_language::print_type): New member function.
8056 (auto_language_data): Delete la_print_type initializer.
8057 (auto_language::print_type): New member function.
8058 * language.h (language_data): Delete la_print_type field.
8059 (language_defn::print_type): New function.
8060 (LA_PRINT_TYPE): Update.
8061 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8062 (m2_language::print_type): New member function.
8063 * objc-lang.c (objc_language_data): Delete la_print_type
8064 initializer.
8065 (objc_language::print_type): New member function.
8066 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8067 to opencl_language::print_type.
8068 (opencl_language_data): Delete la_print_type initializer.
8069 (opencl_language::print_type): New member function, implementation
8070 from opencl_print_type.
8071 * p-lang.c (pascal_language_data): Delete la_print_type
8072 initializer.
8073 (pascal_language::print_type): New member function.
8074 * rust-lang.c (rust_print_type): Delete, implementation moved to
8075 rust_language::print_type.
8076 (rust_language_data): Delete la_print_type initializer.
8077 (rust_language::print_type): New member function, implementation
8078 from rust_print_type.
8079
6f827019
AB
80802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8081
8082 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8083 implementation moves to...
8084 (ada_language::sniff_from_mangled_name): ...here. Update return
8085 type.
8086 (ada_language_data): Delete la_sniff_from_mangled_name
8087 initializer.
8088 * c-lang.c (c_language_data): Likewise.
8089 (cplus_language_data): Likewise.
8090 (cplus_language::sniff_from_mangled_name): New member function,
8091 implementation taken from gdb_sniff_from_mangled_name.
8092 (asm_language_data): Delete la_sniff_from_mangled_name
8093 initializer.
8094 (minimal_language_data): Likewise.
8095 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8096 implementation moves to cplus_language::sniff_from_mangled_name.
8097 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8098 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8099 moves to...
8100 (d_language::sniff_from_mangled_name): ...here.
8101 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8102 * f-lang.c (f_language_data): Likewise.
8103 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8104 moves to...
8105 (go_language::sniff_from_mangled_name): ...here.
8106 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8107 * language.c (language_sniff_from_mangled_name): Delete.
8108 (unknown_language_data): Delete la_sniff_from_mangled_name
8109 initializer.
8110 (auto_language_data): Likewise.
8111 * language.h (language_data): Delete la_sniff_from_mangled_name
8112 field.
8113 (language_defn::sniff_from_mangled_name): New function.
8114 (language_sniff_from_mangled_name): Delete declaration.
8115 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8116 field.
8117 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8118 implementation moves to...
8119 (objc_language::sniff_from_mangled_name): ...here.
8120 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8121 * opencl-lang.c (opencl_language_data): Likewise.
8122 * p-lang.c (pascal_language_data): Likewise.
8123 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8124 implementation moves to...
8125 (rust_language::sniff_from_mangled_name): ...here.
8126 (rust_language_data): Delete la_sniff_from_mangled_name
8127 initializer.
8128 * symtab.c (symbol_find_demangled_name): Call
8129 sniff_from_mangled_name member function.
8130
fb8006fd
AB
81312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8132
8133 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8134 initializer.
8135 * c-lang.c (c_language_data): Likewise.
8136 (cplus_language_data): Likewise.
8137 (cplus_language::search_name_hash): New member function.
8138 (asm_language_data): Delete la_search_name_hash initializer.
8139 (minimal_language_data): Likewise.
8140 * d-lang.c (d_language_data): Likewise.
8141 * dictionary.c (default_search_name_hash): Rename to...
8142 (language_defn::search_name_hash): ...this.
8143 * f-lang.c (f_language_data): Likewise.
8144 (f_language::search_name_hash): New member function.
8145 * go-lang.c (go_language_data): Delete la_search_name_hash
8146 initializer.
8147 * language.c (unknown_language_data): Likewise.
8148 (auto_language_data): Likewise.
8149 * language.h (struct language_data): Delete la_search_name_hash
8150 field.
8151 (language_defn::search_name_hash): Declare new member function.
8152 (default_search_name_hash): Delete declaration.
8153 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8154 initializer.
8155 * objc-lang.c (objc_language_data): Likewise.
8156 * opencl-lang.c (opencl_language_data): Likewise.
8157 * p-lang.c (pascal_language_data): Likewise.
8158 * rust-lang.c (rust_language_data): Likewise.
8159 * symtab.c (search_name_hash): Update call.
8160
8e25bafe
AB
81612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8162
8163 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8164 initializer.
8165 * c-lang.c (class compile_instance): Declare.
8166 (c_language_data): Delete la_get_compile_instance initializer.
8167 (c_language::get_compile_instance): New member function.
8168 (cplus_language_data): Delete la_get_compile_instance initializer.
8169 (cplus_language::get_compile_instance): New member function.
8170 (asm_language_data): Delete la_get_compile_instance initializer.
8171 (minimal_language_data): Likewise.
8172 * c-lang.h (c_get_compile_context): Update comment.
8173 (cplus_get_compile_context): Update comment.
8174 * compile/compile.c (compile_to_object): Update calls, don't rely
8175 on function pointer being NULL.
8176 * d-lang.c (d_language_data): Delete la_get_compile_instance
8177 initializer.
8178 * f-lang.c (f_language_data): Likewise.
8179 * go-lang.c (go_language_data): Likewise.
8180 * language.c (unknown_language_data): Likewise.
8181 (auto_language_data): Likewise.
8182 * language.h (language_data): Delete la_get_compile_instance field.
8183 (language_defn::get_compile_instance): New member function.
8184 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8185 initializer.
8186 * objc-lang.c (objc_language_data): Likewise.
8187 * opencl-lang.c (opencl_language_data): Likewise.
8188 * p-lang.c (pascal_language_data): Likewise.
8189 * rust-lang.c (rust_language_data): Likewise.
8190
4009ee92
AB
81912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8192
8193 * ada-lang.c (ada_add_all_symbols): Update comment.
8194 (ada_iterate_over_symbols): Delete, move implementation to...
8195 (ada_language::iterate_over_symbols): ...here, a new member
8196 function, rewrite to use range based for loop.
8197 (ada_language_data): Delete la_iterate_over_symbols initializer.
8198 * c-lang.c (c_language_data): Likewise.
8199 (cplus_language_data): Likewise.
8200 (asm_language_data): Likewise.
8201 (minimal_language_data): Likewise.
8202 * d-lang.c (d_language_data): Likewise.
8203 * f-lang.c (f_language_data): Likewise.
8204 * go-lang.c (go_language_data): Likewise.
8205 * language.c (unknown_language_data): Likewise.
8206 (auto_language_data): Likewise.
8207 * language.h (language_data): Delete la_iterate_over_symbols field.
8208 (language_defn::iterate_over_symbols): New member function.
8209 (LA_ITERATE_OVER_SYMBOLS): Update.
8210 * linespec.c (iterate_over_all_matching_symtabs): Update.
8211 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8212 initializer.
8213 * objc-lang.c (objc_language_data): Likewise.
8214 * opencl-lang.c (opencl_language_data): Likewise.
8215 * p-lang.c (pascal_language_data): Likewise.
8216 * rust-lang.c (rust_language_data): Likewise.
8217
54f4ca46
AB
82182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8219
8220 * ada-lang.c (ada_language_data): Delete
8221 la_lookup_transparent_type initializer.
8222 * c-lang.c (c_language_data): Likewise.
8223 (cplus_language_data): Likewise.
8224 (cplus_language::lookup_transparent_type): New member function.
8225 (asm_language_data): Delete la_lookup_transparent_type
8226 initializer.
8227 (minimal_language_data): Likewise.
8228 * d-lang.c (d_language_data): Likewise.
8229 * f-lang.c (f_language_data): Likewise.
8230 * go-lang.c (go_language_data): Likewise.
8231 * language.c (unknown_language_data): Likewise.
8232 (auto_language_data): Likewise.
8233 * language.h (struct language_data): Delete
8234 la_lookup_transparent_type field.
8235 (language_defn::lookup_transparent_type): New member function.
8236 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8237 initializer.
8238 * objc-lang.c (objc_language_data): Likewise.
8239 * opencl-lang.c (opencl_language_data): Likewise.
8240 * p-lang.c (pascal_language_data): Likewise.
8241 * rust-lang.c (rust_language_data): Likewise.
8242 * symtab.c (symbol_matches_domain): Update call.
8243
1fb314aa
AB
82442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8245
8246 * ada-lang.c (ada_language_arch_info): Delete function, move
8247 implementation to...
8248 (ada_language::language_arch_info): ...here, a new member
8249 function.
8250 (ada_language_data): Delete la_language_arch_info.
8251 * c-lang.c (c_language_data): Likewise.
8252 (c_language::language_arch_info): New member function.
8253 (cplus_language_arch_info): Delete function, move
8254 implementation to...
8255 (cplus_language::language_arch_info): ...here, a new member
8256 function.
8257 (cplus_language_data): Delete la_language_arch_info.
8258 (asm_language_data): Likewise.
8259 (asm_language::language_arch_info): New member function.
8260 (minimal_language_data): Delete la_language_arch_info.
8261 (minimal_language::language_arch_info): New member function.
8262 * d-lang.c (d_language_arch_info): Delete function, move
8263 implementation to...
8264 (d_language::language_arch_info): ...here, a new member
8265 function.
8266 (d_language_data): Delete la_language_arch_info.
8267 * f-lang.c (f_language_arch_info): Delete function, move
8268 implementation to...
8269 (f_language::language_arch_info): ...here, a new member
8270 function.
8271 (f_language_data): Delete la_language_arch_info.
8272 * go-lang.c (go_language_arch_info): Delete function, move
8273 implementation to...
8274 (go_language::language_arch_info): ...here, a new member
8275 function.
8276 (go_language_data): Delete la_language_arch_info.
8277 * language.c (unknown_language_data): Likewise.
8278 (unknown_language::language_arch_info): New member function.
8279 (auto_language_data): Delete la_language_arch_info.
8280 (auto_language::language_arch_info): New member function.
8281 (language_gdbarch_post_init): Update call to
8282 la_language_arch_info.
8283 * language.h (language_data): Delete la_language_arch_info
8284 function pointer.
8285 (language_defn::language_arch_info): New function.
8286 * m2-lang.c (m2_language_arch_info): Delete function, move
8287 implementation to...
8288 (m2_language::language_arch_info): ...here, a new member
8289 function.
8290 (m2_language_data): Delete la_language_arch_info.
8291 * objc-lang.c (objc_language_arch_info): Delete function, move
8292 implementation to...
8293 (objc_language::language_arch_info): ...here, a new member
8294 function.
8295 (objc_language_data): Delete la_language_arch_info.
8296 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8297 implementation to...
8298 (opencl_language::language_arch_info): ...here, a new member
8299 function.
8300 (opencl_language_data): Delete la_language_arch_info.
8301 * p-lang.c (pascal_language_arch_info): Delete function, move
8302 implementation to...
8303 (pascal_language::language_arch_info): ...here, a new member
8304 function.
8305 (pascal_language_data): Delete la_language_arch_info.
8306 * rust-lang.c (rust_language_arch_info): Delete function, move
8307 implementation to...
8308 (rust_language::language_arch_info): ...here, a new member
8309 function.
8310 (rust_language_data): Delete la_language_arch_info.
8311
48448202
AB
83122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8313
8314 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8315 initializer.
8316 * c-lang.c (c_language_data): Likewise.
8317 (cplus_language_data): Likewise.
8318 (cplus_language::pass_by_reference_info): New method.
8319 (asm_language_data): Delete la_pass_by_reference initializer.
8320 (minimal_language_data): Likewise.
8321 * cp-abi.c (cp_pass_by_reference): Remove use of
8322 default_pass_by_reference.
8323 * d-lang.c (d_language_data): Likewise.
8324 * f-lang.c (f_language_data): Likewise.
8325 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8326 default_pass_by_reference.
8327 * go-lang.c (go_language_data): Likewise.
8328 * language.c (language_pass_by_reference): Update.
8329 (default_pass_by_reference): Delete.
8330 (unknown_language_data): Delete la_pass_by_reference
8331 initializer.
8332 (auto_language_data): Likewise.
8333 * language.h (struct language_data): Delete la_pass_by_reference
8334 field.
8335 (language_defn::pass_by_reference_info): New member function.
8336 (default_pass_by_reference): Delete declaration.
8337 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8338 initializer.
8339 * objc-lang.c (objc_language_data): Likewise.
8340 * opencl-lang.c (opencl_language_data): Likewise.
8341 * p-lang.c (pascal_language_data): Likewise.
8342 * rust-lang.c (rust_language_data): Likewise.
8343
15e5fd35
AB
83442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8345
8346 * ada-lang.c (ada_read_var_value): Delete function, move
8347 implementation to...
8348 (ada_language::read_var_value): ...here.
8349 (ada_language_data): Delete la_read_var_value initializer.
8350 * c-lang.c (c_language_data): Likewise.
8351 (cplus_language_data): Likewise.
8352 (minimal_language_data): Likewise.
8353 * d-lang.c (d_language_data): Likewise.
8354 * f-lang.c (f_language_data): Likewise.
8355 * findvar.c (default_read_var_value): Rename to...
8356 (language_defn::read_var_value): ...this.
8357 * findvar.c (read_var_value): Update header comment, and change to
8358 call member function instead of function pointer.
8359 * go-lang.c (go_language_data): Likewise.
8360 * language.c (unknown_language_data): Delete la_read_var_value
8361 initializer.
8362 (auto_language_data): Likewise.
8363 * language.h (struct language_data): Delete la_read_var_value
8364 field.
8365 (language_defn::read_var_value): New member function.
8366 (default_read_var_value): Delete declaration.
8367 * m2-lang.c (m2_language_data): Delete la_read_var_value
8368 initializer.
8369 * objc-lang.c (objc_language_data): Likewise.
8370 * opencl-lang.c (opencl_language_data): Likewise.
8371 * p-lang.c (pascal_language_data): Likewise.
8372 * rust-lang.c (rust_language_data): Likewise.
8373 * value.h (default_read_var_value): Delete declaration.
8374
5bd40f2a
AB
83752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8376
8377 * ada-lang.c (ada_print_array_index): Delete function, move
8378 implementation to...
8379 (ada_language::print_array_index): ...here.
8380 (ada_language_data): Delete la_print_array_index initializer.
8381 * c-lang.c (c_language_data): Likewise.
8382 (cplus_language_data): Likewise.
8383 (minimal_language_data): Likewise.
8384 * d-lang.c (d_language_data): Likewise.
8385 * f-lang.c (f_language_data): Likewise.
8386 * go-lang.c (go_language_data): Likewise.
8387 * language.c (default_print_array_index): Delete function, move
8388 implementation to...
8389 (language_defn::print_array_index): ...here.
8390 (unknown_language_data): Delete la_print_array_index initializer.
8391 (auto_language_data): Likewise.
8392 * language.h (struct language_data): Delete la_print_array_index
8393 field.
8394 (language_defn::print_array_index): New member function.
8395 (LA_PRINT_ARRAY_INDEX): Update.
8396 (default_print_array_index): Delete declaration.
8397 * m2-lang.c (m2_language_data): Delete la_print_array_index
8398 initializer.
8399 * objc-lang.c (objc_language_data): Likewise.
8400 * opencl-lang.c (opencl_language_data): Likewise.
8401 * p-lang.c (pascal_language_data): Likewise.
8402 * rust-lang.c (rust_language_data): Likewise.
8403
0874fd07
AB
84042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8405
8406 * gdb/ada-lang.c (ada_language_defn): Convert to...
8407 (ada_language_data): ...this.
8408 (class ada_language): New class.
8409 (ada_language_defn): New static global.
8410 * gdb/c-lang.c (c_language_defn): Convert to...
8411 (c_language_data): ...this.
8412 (class c_language): New class.
8413 (c_language_defn): New static global.
8414 (cplus_language_defn): Convert to...
8415 (cplus_language_data): ...this.
8416 (class cplus_language): New class.
8417 (cplus_language_defn): New static global.
8418 (asm_language_defn): Convert to...
8419 (asm_language_data): ...this.
8420 (class asm_language): New class.
8421 (asm_language_defn): New static global.
8422 (minimal_language_defn): Convert to...
8423 (minimal_language_data): ...this.
8424 (class minimal_language): New class.
8425 (minimal_language_defn): New static global.
8426 * gdb/d-lang.c (d_language_defn): Convert to...
8427 (d_language_data): ...this.
8428 (class d_language): New class.
8429 (d_language_defn): New static global.
8430 * gdb/f-lang.c (f_language_defn): Convert to...
8431 (f_language_data): ...this.
8432 (class f_language): New class.
8433 (f_language_defn): New static global.
8434 * gdb/go-lang.c (go_language_defn): Convert to...
8435 (go_language_data): ...this.
8436 (class go_language): New class.
8437 (go_language_defn): New static global.
8438 * gdb/language.c (unknown_language_defn): Remove declaration.
8439 (current_language): Initialize to nullptr, real initialization is
8440 moved to _initialize_language.
8441 (languages): Delete global.
8442 (language_defn::languages): Define.
8443 (set_language_command): Use language_defn::languages.
8444 (set_language): Likewise.
8445 (range_error): Likewise.
8446 (language_enum): Likewise.
8447 (language_def): Likewise.
8448 (add_set_language_command): Use language_def::languages for the
8449 language list, and language_def to lookup language pointers.
8450 (skip_language_trampoline): Use language_defn::languages.
8451 (unknown_language_defn): Convert to...
8452 (unknown_language_data): ...this.
8453 (class unknown_language): New class.
8454 (unknown_language_defn): New static global.
8455 (auto_language_defn): Convert to...
8456 (auto_language_data): ...this.
8457 (class auto_language): New class.
8458 (auto_language_defn): New static global.
8459 (language_gdbarch_post_init): Use language_defn::languages.
8460 (_initialize_language): Initialize current_language.
8461 * gdb/language.h (struct language_defn): Rename to...
8462 (struct language_data): ...this.
8463 (struct language_defn): New.
8464 (auto_language_defn): Delete.
8465 (unknown_language_defn): Delete.
8466 (minimal_language_defn): Delete.
8467 (ada_language_defn): Delete.
8468 (asm_language_defn): Delete.
8469 (c_language_defn): Delete.
8470 (cplus_language_defn): Delete.
8471 (d_language_defn): Delete.
8472 (f_language_defn): Delete.
8473 (go_language_defn): Delete.
8474 (m2_language_defn): Delete.
8475 (objc_language_defn): Delete.
8476 (opencl_language_defn): Delete.
8477 (pascal_language_defn): Delete.
8478 (rust_language_defn): Delete.
8479 * gdb/m2-lang.c (m2_language_defn): Convert to...
8480 (m2_language_data): ...this.
8481 (class m2_language): New class.
8482 (m2_language_defn): New static global.
8483 * gdb/objc-lang.c (objc_language_defn): Convert to...
8484 (objc_language_data): ...this.
8485 (class objc_language): New class.
8486 (objc_language_defn): New static global.
8487 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8488 (opencl_language_data): ...this.
8489 (class opencl_language): New class.
8490 (opencl_language_defn): New static global.
8491 * gdb/p-lang.c (pascal_language_defn): Convert to...
8492 (pascal_language_data): ...this.
8493 (class pascal_language): New class.
8494 (pascal_language_defn): New static global.
8495 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8496 language pointer, update comment format.
8497 * gdb/rust-lang.c (rust_language_defn): Convert to...
8498 (rust_language_data): ...this.
8499 (class rust_language): New class.
8500 (rust_language_defn): New static global.
8501
1313c56e
AB
85022020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8503
8504 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8505 member variable.
8506 <m_stmt_at_address>: New member variable.
8507 (lnp_state_machine::record_line): Don't record some lines, update
8508 tracking of is_stmt at the same address.
8509 (lnp_state_machine::lnp_state_machine): Initialise new member
8510 variables.
8511
b7ed9f3d
ST
85122020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8513
8514 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8515 "-include gnu-nat-mig.h".
8516 * gnu-nat-mig.h: New file.
8517 * gnu-nat.c: Include "gnu-nat-mig.h".
8518 (exc_server, msg_reply_server, notify_server,
8519 process_reply_server): Remove declarations.
8520
14a8ad62
ST
85212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8522
8523 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8524 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8525 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8526 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8527 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8528 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8529 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8530 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8531 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8532 to gnu_nat_target class.
8533 * gnu-nat.c: Likewise.
8534 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8535 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8536 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8537 object.
8538 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8539 instead of `gnu_target'.
8540
0af5e106
ST
85412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8542
8543 * i386-gnu-tdep.c: Include "gdbcore.h"
8544 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8545 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8546 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8547 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8548 i386_gnu_sigcontext_addr): New functions
8549 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8550 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8551 tdep.
8552
078f2fc9
ST
85532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8554
8555 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8556 before fork_inferior call. Avoid calling it if target_is_pushed returns
8557 true.
8558
53dff92c
ST
85592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8560
8561 * gnu-nat.h (gnu_target): New variable declaration.
8562 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8563 gnu_target.
8564 * gnu-nat.c (gnu_target): New variable.
8565 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8566 add_thread_silent, and add_thread calls.
8567 (gnu_nat_target::create_inferior): Pass gnu_target to
8568 add_thread_silent, thread_change_ptid call.
8569 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8570 call.
8571
5a8b8627
ST
85722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8573
8574 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8575 (gnu_nat_target::find_memory_regions): Remove unused
8576 `old_address' variable.
8577
366f550a
ST
85782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8579
8580 * gnu-nat.c: Include "gdbarch.h".
8581
f14871bf
ST
85822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8583
8584 * reply_mig_hack.awk (Error return): Cast function through
8585 void *, to bypass compiler function call check.
8586
c6887cfb
ST
85872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8588
8589 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8590 $(srcdir)/reply_mig_hack.awk.
8591
6930bffe
ST
85922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8593
8594 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8595
112c22ed
JG
85962020-05-30 Jonny Grant <jg@jguk.org>
8597
8598 * configure.ac (ACX_BUGURL): change bug URL to https.
8599
f68f85b5
PA
86002020-05-30 Pedro Alves <palves@redhat.com>
8601
8602 * cp-support.c (replace_typedefs_template): New.
8603 (replace_typedefs_qualified_name): Handle
8604 DEMANGLE_COMPONENT_TEMPLATE.
8605
976ca316
SM
86062020-05-29 Simon Marchi <simon.marchi@efficios.com>
8607
8608 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8609 dwarf2/index-cache.h, dwarf2/index-write.c,
8610 dwarf2/index-write.h, dwarf2/line-header.c,
8611 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8612 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8613 variables and fields from `dwarf2_per_objfile` to just
8614 `per_objfile` throughout.
8615
989ade05
SM
86162020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8617
8618 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8619 <push_dwarf_reg_entry_value>: Add comment.
8620
c47bae85
KB
86212020-05-28 Kevin Buettner <kevinb@redhat.com>
8622 Keith Seitz <keiths@redhat.com>
8623
8624 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8625 instead of PyEval_ReleaseLock.
8626 (class gdbpy_gil): Move to earlier in file.
8627 (finalize_python): Set gdb_python_initialized.
8628 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8629 when not initialized.
8630
44486dcf
SM
86312020-05-28 Simon Marchi <simon.marchi@efficios.com>
8632
8633 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8634 <push_dwarf_reg_entry_value>: Remove assert. Override
8635 per_objfile with caller_per_objfile.
8636
f030440d
TV
86372020-05-28 Tom de Vries <tdevries@suse.de>
8638
8639 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8640 PR gold/15646 workaround to symbol kind "type".
8641
f0fbb768
TT
86422020-05-27 Tom Tromey <tromey@adacore.com>
8643
8644 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8645
af0b2a3e
TT
86462020-05-27 Tom Tromey <tromey@adacore.com>
8647
8648 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8649 Use htab_find_with_hash.
8650 <add_abbrev>: Remove "abbrev_number" parameter.
8651 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8652 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8653 (hash_abbrev): Add comment.
8654 (abbrev_table::lookup_abbrev): Move to header file.
8655 (abbrev_table::read): Update.
8656
7d00ffec
TT
86572020-05-27 Tom Tromey <tromey@adacore.com>
8658
8659 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8660 method.
8661 <canonical_name>: New member.
8662 <raw_name>: Rename from "name".
8663 (partial_die_info): Initialize canonical_name.
8664 (scan_partial_symbols): Check raw_name.
8665 (partial_die_parent_scope, partial_die_full_name)
8666 (add_partial_symbol, add_partial_subprogram)
8667 (add_partial_enumeration, load_partial_dies): Use "name" method.
8668 (partial_die_info::name): New method.
8669 (partial_die_info::read, guess_partial_die_structure_name)
8670 (partial_die_info::fixup): Update.
8671
697bba18
TT
86722020-05-27 Tom Tromey <tromey@adacore.com>
8673
8674 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8675 <get_ref_die_offset>: Inline.
8676 <get_ref_die_offset_complaint>: New method.
8677 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8678 (attribute::get_ref_die_offset_complaint): Rename from
8679 get_ref_die_offset. Just issue complaint.
8680
c17ace43
HD
86812020-05-27 Hannes Domani <ssbssa@yahoo.de>
8682
8683 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8684
96445f0b
HD
86852020-05-27 Hannes Domani <ssbssa@yahoo.de>
8686
8687 * exec.c (exec_file_attach): Use errno value of first openp failure.
8688
ac637ec3
HD
86892020-05-27 Hannes Domani <ssbssa@yahoo.de>
8690
8691 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8692 Don't close thread handle.
8693
17ee85fc
TT
86942020-05-27 Tom Tromey <tom@tromey.com>
8695 Simon Marchi <simon.marchi@efficios.com>
8696
8697 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8698 shared_ptr.
8699 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8700 member.
8701 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8702 dwarf2_per_bfd_objfile_data_key>: New globals.
8703 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8704 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8705 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8706 shared.
8707 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8708 short-circuit when sharing.
8709 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8710 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8711
39b16f87
SM
87122020-05-27 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8715 to...
8716 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8717 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8718
fcf23d5b
SM
87192020-05-27 Simon Marchi <simon.marchi@efficios.com>
8720
8721 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8722 build_name_components, find_name_components_bounds>:
8723 Add per_objfile parameter.
8724 (struct mapped_index) <symbol_name_at>: Likewise.
8725 (struct mapped_debug_names): Remove constructor.
8726 <dwarf2_per_objfile>: Remove field.
8727 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8728 (mapped_index_base::find_name_components_bounds,
8729 mapped_index_base::build_name_components,
8730 dw2_expand_symtabs_matching_symbol): Likewise.
8731 (class mock_mapped_index) <symbol_name_at>: Likewise.
8732 (check_match): Likewise.
8733 (check_find_bounds_finds): Likewise.
8734 (test_mapped_index_find_name_component_bounds): Update.
8735 (CHECK_MATCH): Update.
8736 (dw2_expand_symtabs_matching): Update.
8737 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8738 per_objfile parameter.
8739 <find_vec_in_debug_names>: Likewise.
8740 <m_per_objfile>: New field.
8741 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8742 parameter.
8743 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8744 (dw2_debug_names_iterator::next): Update.
8745 (dw2_debug_names_lookup_symbol): Update.
8746 (dw2_debug_names_expand_symtabs_for_function): Update.
8747 (dw2_debug_names_map_matching_symbols): Update.
8748 (dw2_debug_names_expand_symtabs_matching): Update.
8749 (dwarf2_read_debug_names): Update.
8750
7188ed02
SM
87512020-05-27 Simon Marchi <simon.marchi@efficios.com>
8752
8753 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8754 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8755 move to dwarf2_per_objfile.
8756 <read_in_chain>: Remove.
8757 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8758 remove_all_cus, age_comp_units>: New methods.
8759 <m_dwarf2_cus>: New member.
8760 (struct dwarf2_per_cu_data) <cu>: Remove.
8761 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8762 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8763 moved to methods of dwarf2_per_objfile.
8764 (dwarf2_clear_marks): Remove.
8765 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8766 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8767 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8768 (dwarf2_per_objfile::remove_all_cus): New.
8769 (class free_cached_comp_units) <~free_cached_comp_units>:
8770 Update.
8771 (load_cu): Update.
8772 (dw2_do_instantiate_symtab): Adjust.
8773 (fill_in_sig_entry_from_dwo_entry): Adjust.
8774 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8775 (cutu_reader::cutu_reader): Likewise.
8776 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8777 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8778 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8779 and dwarf2_per_objfile::age_comp_units.
8780 (load_partial_comp_unit): Update.
8781 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8782 (process_queue): Likewise.
8783 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8784 backlink.
8785 (dwarf2_read_addr_index): Likewise.
8786 (follow_die_offset): Likewise.
8787 (dwarf2_fetch_die_loc_sect_off): Likewise.
8788 (dwarf2_fetch_constant_bytes): Likewise.
8789 (dwarf2_fetch_die_type_sect_off): Likewise.
8790 (follow_die_sig_1): Likewise.
8791 (load_full_type_unit): Likewise.
8792 (read_signatured_type): Likewise.
8793 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8794 (dwarf2_cu::~dwarf2_cu): Remove.
8795 (dwarf2_per_objfile::get_cu): New.
8796 (dwarf2_per_objfile::set_cu): New.
8797 (age_cached_comp_units): Rename to...
8798 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8799 to std::unordered_map.
8800 (free_one_cached_comp_unit): Rename to...
8801 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8802 to std::unordered_map.
8803 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8804 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8805 a dwarf2_per_objfile in data.
8806 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8807 (dwarf2_clear_marks): Remove.
8808
2e671100
SM
88092020-05-27 Simon Marchi <simon.marchi@efficios.com>
8810
8811 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8812 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8813 (init_tu_and_read_dwo_dies): Likewise.
8814 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8815 (cutu_reader::cutu_reader): Likewise.
8816 (load_partial_comp_unit): Likewise.
8817 (process_psymtab_comp_unit): Update.
8818 (build_type_psymtabs_1): Update.
8819 (process_skeletonless_type_unit): Update.
8820 (load_full_comp_unit): Update.
8821 (find_partial_die): Update.
8822 (dwarf2_read_addr_index): Update.
8823 (read_signatured_type): Update.
8824
2e6a9f79
SM
88252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8826
8827 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8828 m_header_read_in>: New fields.
8829 <get_header>: New method.
8830 * dwarf2/read.c (per_cu_header_read_in): Remove.
8831 (dwarf2_per_cu_data::get_header): New.
8832 (dwarf2_per_cu_data::addr_size): Update.
8833 (dwarf2_per_cu_data::offset_size): Update.
8834 (dwarf2_per_cu_data::ref_addr_size): Update.
8835
1b555f17
SM
88362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8837
8838 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8839 (dw2_do_instantiate_symtab): Update.
8840 (queue_and_load_all_dwo_tus): Change parameter from
8841 dwarf2_per_cu_data to dwarf2_cu.
8842 (dwarf2_fetch_die_loc_sect_off): Update.
8843 (dwarf2_fetch_constant_bytes): Update.
8844 (dwarf2_fetch_die_type_sect_off): Update.
8845
8fc0b21d
SM
88462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8847
8848 * dwarf2/read.c (process_full_comp_unit,
8849 process_full_type_unit): Remove per_cu, per_objfile paramters.
8850 Add dwarf2_cu parameter.
8851 (process_queue): Update.
8852
168c9250
SM
88532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8854
8855 * dwarf2/read.c (create_cu_from_index_list): Replace
8856 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8857 (create_cus_from_index_list): Likewise.
8858 (create_cus_from_index): Likewise.
8859 (create_signatured_type_table_from_index): Likewise.
8860 (create_cus_from_debug_names_list): Likewise.
8861 (create_cus_from_debug_names): Likewise.
8862 (dwarf2_read_gdb_index): Update.
8863 (dwarf2_read_debug_names): Update.
8864
e286671b
TT
88652020-05-27 Tom Tromey <tom@tromey.com>
8866 Simon Marchi <simon.marchi@efficios.com>
8867
8868 * dwarf2/read.h (struct dwarf2_per_objfile)
8869 <get_type_for_signatured_type, set_type_for_signatured_type>:
8870 New methods.
8871 <m_type_map>: New member.
8872 (struct signatured_type) <type>: Remove.
8873 * dwarf2/read.c
8874 (dwarf2_per_objfile::get_type_for_signatured_type,
8875 dwarf2_per_objfile::set_type_for_signatured_type): New.
8876 (get_signatured_type): Use new methods.
8877
8adb8487
TT
88782020-05-27 Tom Tromey <tom@tromey.com>
8879 Simon Marchi <simon.marchi@efficios.com>
8880
8881 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8882 (struct dwarf2_per_objfile) <type_units>: New member.
8883 <get_type_unit_group_unshareable>: New method.
8884 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8885 num_symtabs, symtabs>: Remove; move to
8886 type_unit_group_unshareable.
8887 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8888 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8889 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8890
127bbf4b
SM
88912020-05-27 Simon Marchi <simon.marchi@efficios.com>
8892
8893 * dwarf2/read.h (struct dwarf2_per_cu_data):
8894 <dwarf2_per_objfile>: Remove.
8895 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8896 dwarf2_per_objfile.
8897 (create_signatured_type_table_from_index): Likewise.
8898 (create_signatured_type_table_from_debug_names): Likewise.
8899 (create_debug_type_hash_table): Likewise.
8900 (fill_in_sig_entry_from_dwo_entry): Likewise.
8901 (create_type_unit_group): Likewise.
8902 (read_comp_units_from_section): Likewise.
8903 (create_cus_hash_table): Likewise.
8904
f6e649dd
SM
89052020-05-27 Simon Marchi <simon.marchi@efficios.com>
8906
8907 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8908 dwarf2_per_cu_data::dwarf2_per_objfile.
8909 (compute_compunit_symtab_includes): Likewise.
8910 (dwarf2_cu::start_symtab): Likewise.
8911
aa66c379
SM
89122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8913
8914 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8915 parameter.
8916 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8917 (read_namespace_alias): Update.
8918 (lookup_die_type): Update.
8919 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8920 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8921 Update.
8922 (disassemble_dwarf_expression): Update.
8923
120ce1b5
SM
89242020-05-27 Simon Marchi <simon.marchi@efficios.com>
8925
8926 * dwarf2/read.h (struct dwarf2_queue_item): Add
8927 dwarf2_per_objfile parameter, assign new parameter.
8928 <per_objfile>: New field.
8929 * dwarf2/read.c (free_one_cached_comp_unit): Add
8930 dwarf2_per_objfile parameter.
8931 (queue_comp_unit): Likewise.
8932 (dw2_do_instantiate_symtab): Update.
8933 (process_psymtab_comp_unit): Update.
8934 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8935 (process_imported_unit_die): Update.
8936 (queue_and_load_dwo_tu): Update.
8937 (follow_die_offset): Update.
8938 (follow_die_sig_1): Update.
8939
9f47c707
SM
89402020-05-27 Simon Marchi <simon.marchi@efficios.com>
8941
8942 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8943 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8944 (read_call_site_scope): Assign per_objfile.
8945 (dwarf2_per_cu_data::objfile): Remove.
8946 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8947 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8948 dwarf2_per_objfile parameter.
8949 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8950 dwarf2_per_objfile parameter.
8951 (dwarf_expr_reg_to_entry_parameter): Add output
8952 dwarf2_per_objfile parameter.
8953 (locexpr_get_frame_base): Update.
8954 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8955 <push_dwarf_reg_entry_value>: Update.
8956 <call_site_to_target_addr>: Update.
8957 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8958 parameter.
8959 (value_of_dwarf_reg_entry): Update.
8960 (rw_pieced_value): Update.
8961 (indirect_synthetic_pointer): Update.
8962 (dwarf2_evaluate_property): Update.
8963 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8964 parameter.
8965 (locexpr_read_variable): Update.
8966 (locexpr_get_symbol_read_needs): Update.
8967 (loclist_read_variable): Update.
8968
14095eb3
SM
89692020-05-27 Simon Marchi <simon.marchi@efficios.com>
8970
8971 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8972 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8973 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8974 parameter.
8975 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8976 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8977 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8978 parameter.
8979 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8980 sect_variable_value): Add dwarf2_per_objfile parameter.
8981 (class dwarf_evaluate_loc_desc) <dwarf_call,
8982 dwarf_variable_value>: Update.
8983 (fetch_const_value_from_synthetic_pointer): Add
8984 dwarf2_per_objfile parameter.
8985 (fetch_const_value_from_synthetic_pointer): Update.
8986 (coerced_pieced_ref): Update.
8987 (class symbol_needs_eval_context) <dwarf_call,
8988 dwarf_variable_value>: Update.
8989 (dwarf2_compile_expr_to_ax): Update.
8990
3c3cd3d4
SM
89912020-05-27 Simon Marchi <simon.marchi@efficios.com>
8992
8993 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8994 parameter.
8995 (dwarf2_evaluate_loc_desc_full): Update.
8996
82ca3f51
SM
89972020-05-27 Simon Marchi <simon.marchi@efficios.com>
8998
8999 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9000 parameter.
9001 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9002 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9003 dwarf2_per_objfile parameter.
9004 (decode_debug_loc_dwo_addresses): Likewise.
9005 (dwarf2_find_location_expression): Update.
9006 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9007 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9008 parameter.
9009 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9010 parameter.
9011 (locexpr_describe_location_1): Likewise.
9012 (locexpr_describe_location): Update.
9013
4b167ea1
SM
90142020-05-27 Simon Marchi <simon.marchi@efficios.com>
9015
9016 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9017 Remove.
9018 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9019 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9020 (dwarf2_compile_property_to_c): Update.
9021 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9022 use text offset from objfile.
9023 (locexpr_tracepoint_var_ref): Update.
9024 (locexpr_generate_c_location): Update.
9025 (loclist_describe_location): Update.
9026 (loclist_tracepoint_var_ref): Update.
9027 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9028 dwarf2_per_objfile parameter.
9029 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9030 use text offset from objfile.
9031 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9032
89b07335
SM
90332020-05-27 Simon Marchi <simon.marchi@efficios.com>
9034
9035 * dwarf2/expr.h (struct dwarf_expr_context)
9036 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9037 <offset>: Remove.
9038 <per_objfile>: New member.
9039 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9040 dwarf2_per_objfile parameter. Don't set offset, set
9041 per_objfile.
9042 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9043 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9044 a dwarf2_per_objfile object instead of an offset.
9045 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9046 constructor.
9047 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9048 to dwarf2_expr_executor constructor. Don't set offset.
9049 (dwarf2_fetch_cfa_info): Update.
9050 (struct dwarf2_frame_cache) <text_offset>: Remove.
9051 <per_objfile>: New field.
9052 (dwarf2_frame_cache): Update.
9053 (dwarf2_frame_prev_register): Update.
9054 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9055 <dwarf_evaluate_loc_desc>: Add constructor.
9056 (dwarf2_evaluate_loc_desc_full): Update.
9057 (dwarf2_locexpr_baton_eval): Update.
9058 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9059 Add constructor.
9060 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9061
293e7e51
SM
90622020-05-27 Simon Marchi <simon.marchi@efficios.com>
9063
9064 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9065 addr_sized_int_type>: Move to dwarf2_cu.
9066 <int_type>: Move to dwarf2_per_objfile.
9067 (struct dwarf2_per_objfile) <int_type>: Move here.
9068 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9069 addr_sized_int_type>: Move here.
9070 (read_func_scope): Update.
9071 (read_array_type): Update.
9072 (read_tag_string_type): Update.
9073 (attr_to_dynamic_prop): Update.
9074 (dwarf2_per_cu_data::int_type): Rename to...
9075 (dwarf2_per_objfile::int_type): ... this.
9076 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9077 (dwarf2_cu::addr_sized_int_type): ... this.
9078 (read_subrange_type): Update.
9079 (dwarf2_per_cu_data::addr_type): Rename to...
9080 (dwarf2_cu::addr_type): ... this.
9081 (set_die_type): Update.
9082
64874a40
SM
90832020-05-27 Simon Marchi <simon.marchi@efficios.com>
9084
9085 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9086 data through per_cu->cu.
9087
4ab09049
SM
90882020-05-27 Simon Marchi <simon.marchi@efficios.com>
9089
9090 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9091 dwarf2_per_cu_data parameter fo dwarf2_cu.
9092 (lookup_dwo_type_unit): Likewise.
9093 (read_cutu_die_from_dwo): Likewise.
9094 (lookup_dwo_unit): Likewise.
9095 (open_and_init_dwo_file): Likewise.
9096 (lookup_dwo_cutu): Likewise.
9097 (lookup_dwo_comp_unit): Likewise.
9098 (lookup_dwo_type_unit): Likewise.
9099 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9100 (cutu_reader::cutu_reader): Update.
9101
47b14e86
SM
91022020-05-27 Simon Marchi <simon.marchi@efficios.com>
9103
9104 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9105 parameter.
9106 (process_full_type_unit): Likewise.
9107 (process_queue): Update.
9108
43182c09
SM
91092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9110
9111 * dwarf2/read.c (recursively_compute_inclusions): Add
9112 dwarf2_per_objfile parameter.
9113 (compute_compunit_symtab_includes): Likewise.
9114 (process_cu_includes): Update.
9115
7aa104c4
SM
91162020-05-27 Simon Marchi <simon.marchi@efficios.com>
9117
9118 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9119 parameter.
9120 (create_type_unit_group): Update.
9121 (process_psymtab_comp_unit_reader): Update.
9122 (build_type_psymtabs_reader): Update.
9123
e3beb21d
SM
91242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9125
9126 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9127 object through m_this_cu->cu.
9128
d460f660
SM
91292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9130
9131 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9132 the info parameter.
9133 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9134
ab432490
SM
91352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9136
9137 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9138 per_objfile parameter.
9139 (load_full_type_unit): Add per_objfile parameter.
9140 (read_signatured_type): Likewise.
9141 (load_full_comp_unit): Likewise.
9142 (load_cu): Likewise.
9143 (dw2_do_instantiate_symtab): Likewise.
9144 (dw2_get_file_names): Likewise.
9145 (dw2_map_symtabs_matching_filename): Update.
9146 (dw_expand_symtabs_matching_file_matcher): Update.
9147 (dw2_map_symbol_filenames): Update.
9148 (process_psymtab_comp_unit): Add per_objfile parameter.
9149 (build_type_psymtabs_1): Update.
9150 (process_skeletonless_type_unit): Update.
9151 (dwarf2_build_psymtabs_hard): Update.
9152 (load_partial_comp_unit): Add per_objfile parameter.
9153 (scan_partial_symbols): Update.
9154 (load_full_comp_unit): Add per_objfile parameter.
9155 (process_imported_unit_die): Update.
9156 (create_cus_hash_table): Update.
9157 (find_partial_die): Update.
9158 (dwarf2_read_addr_index): Update.
9159 (follow_die_offset): Update.
9160 (dwarf2_fetch_die_loc_sect_off): Update.
9161 (dwarf2_fetch_constant_bytes): Update.
9162 (dwarf2_fetch_die_type_sect_off): Update.
9163 (follow_die_sig_1): Update.
9164 (load_full_type_unit): Add per_objfile parameter.
9165 (read_signatured_type): Likewise.
9166
313bad1b
SM
91672020-05-27 Simon Marchi <simon.marchi@efficios.com>
9168
9169 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9170 of objfile_name.
9171
c3699833
SM
91722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9173
9174 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9175 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9176 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9177 field.
9178 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9179 (create_cus_from_index): Update.
9180 (dwarf2_read_gdb_index): Update.
9181 (create_cus_from_debug_names): Update.
9182 (dwarf2_read_debug_names): Update.
9183 (get_abbrev_section_for_cu): Update.
9184 (create_all_comp_units): Update.
9185 (read_attribute_value): Update.
9186 (get_debug_line_section): Update.
9187 * dwarf2/index-cache.c (index_cache::store): Update.
9188 * dwarf2/index-write.c (save_gdb_index_command): Update.
9189 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9190
1859c670
SM
91912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9192
9193 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9194 member.
9195 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9196 dwarf2_per_cu_data::per_bfd.
9197 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9198 (create_type_unit_group): Likewise.
9199 (queue_comp_unit): Remove reference to
9200 per_cu->dwarf2_per_objfile.
9201 (maybe_queue_comp_unit): Likewise.
9202 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9203 (create_cus_hash_table): Assign new field.
9204
5e22e966
SM
92052020-05-27 Simon Marchi <simon.marchi@efficios.com>
9206
9207 * dwarf2/read.c: Replace
9208 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9209 dwarf2_cu->per_objfile throughout.
9210
97a1449a
SM
92112020-05-27 Simon Marchi <simon.marchi@efficios.com>
9212
9213 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9214 parameter, don't use per_cu->dwarf2_per_objfile.
9215 (dw2_instantiate_symtab): Likewise.
9216 (dw2_find_last_source_symtab): Update.
9217 (dw2_map_expand_apply): Update.
9218 (dw2_lookup_symbol): Update.
9219 (dw2_expand_symtabs_for_function): Update.
9220 (dw2_expand_all_symtabs): Update.
9221 (dw2_expand_symtabs_with_fullname): Update.
9222 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9223 don't use per_cu->dwarf2_per_objfile.
9224 (dw2_expand_marked_cus): Update.
9225 (dw2_find_pc_sect_compunit_symtab): Update.
9226 (dw2_debug_names_lookup_symbol): Update.
9227 (dw2_debug_names_expand_symtabs_for_function): Update.
9228 (dw2_debug_names_map_matching_symbols): Update.
9229 (dwarf2_psymtab::expand_psymtab): Update.
9230
9e021579
SM
92312020-05-27 Simon Marchi <simon.marchi@efficios.com>
9232
9233 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9234 <per_objfile>: New member.
9235 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9236 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9237 call to dwarf2_cu.
9238 (cutu_reader::cutu_reader): Update.
9239 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9240
ae090bdb
SM
92412020-05-27 Simon Marchi <simon.marchi@efficios.com>
9242
9243 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9244 struct dwarf2_per_objfile.
9245 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9246 dwarf2_per_bfd.
9247 * dwarf2/read.c (set_die_type): Update.
9248 (get_die_type_at_offset): Update.
9249
af758d11
SM
92502020-05-27 Tom Tromey <tom@tromey.com>
9251 Simon Marchi <simon.marchi@efficios.com>
9252
9253 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9254 method.
9255 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9256 get_symtab, set_symtab>: New methods.
9257 <m_symtabs>: New field.
9258 (struct dwarf2_psymtab): Derive from partial_symtab.
9259 <readin_p, get_compunit_symtab>: Declare methods.
9260 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9261 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9262 New methods.
9263 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9264 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9265 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9266 (dw2_symtab_iter_next, dw2_print_stats)
9267 (dw2_expand_symtabs_with_fullname)
9268 (dw2_expand_symtabs_matching_one)
9269 (dw_expand_symtabs_matching_file_matcher)
9270 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9271 (dw2_debug_names_iterator::next)
9272 (dw2_debug_names_map_matching_symbols)
9273 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9274 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9275 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9276 New methods.
9277 (get_compunit_symtab, process_full_comp_unit)
9278 (process_full_type_unit): Update.
9279 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9280
5989a64e
SM
92812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9282
9283 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9284 then introduce a new dwarf2_per_objfile type.
9285 <read_line_string>: Move to the new dwarf2_per_objfile type.
9286 <objfile>: Likewise.
9287 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9288 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9289 dwarf2_per_objfile->per_bfd.
9290 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9291 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9292 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9293 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9294 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9295 (dwarf2_per_objfile::locate_sections): Rename to...
9296 (dwarf2_per_bfd::locate_sections): ... this.
9297 (dwarf2_per_objfile::get_cutu): Rename to...
9298 (dwarf2_per_bfd::get_cutu): ... this.
9299 (dwarf2_per_objfile::get_cu): Rename to...
9300 (dwarf2_per_bfd::get_cu): ... this.
9301 (dwarf2_per_objfile::get_tu): Rename to...
9302 (dwarf2_per_bfd::get_tu): ... this.
9303 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9304 (dwarf2_per_bfd::allocate_per_cu): ... this.
9305 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9306 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9307 (get_gdb_index_contents_ftype): Change parameter from
9308 dwarf2_per_objfile to dwarf2_per_bfd.
9309 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9310 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9311
a50264ba
TT
93122020-05-27 Tom Tromey <tom@tromey.com>
9313 Simon Marchi <simon.marchi@efficios.com>
9314
9315 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9316 (allocate_piece_closure): Set "per_objfile" member.
9317 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9318 (locexpr_describe_location, loclist_describe_location): Use new
9319 member.
9320 * dwarf2/read.c (read_call_site_scope)
9321 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9322 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9323 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9324 handle_data_member_location): Set per_objfile member.
9325 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9326 member.
9327 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9328
d3473f0c
TT
93292020-05-27 Tom Tromey <tom@tromey.com>
9330
9331 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9332 allocate_signatured_type>: Declare new methods.
9333 <m_num_psymtabs>: New member.
9334 (struct dwarf2_per_cu_data) <index>: New member.
9335 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9336 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9337 (create_cu_from_index_list): Use allocate_per_cu.
9338 (create_signatured_type_table_from_index)
9339 (create_signatured_type_table_from_debug_names)
9340 (create_debug_type_hash_table, add_type_unit)
9341 (read_comp_units_from_section): Use allocate_signatured_type.
9342
5717c425
TT
93432020-05-27 Tom Tromey <tom@tromey.com>
9344
9345 * psymtab.c (partial_map_expand_apply)
9346 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9347 (psym_lookup_global_symbol_language)
9348 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9349 (psym_print_stats, psym_expand_symtabs_for_function)
9350 (psym_map_symbol_filenames, psym_map_matching_symbols)
9351 (psym_expand_symtabs_matching)
9352 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9353 (maintenance_check_psymtabs): Update.
9354 * psympriv.h (struct partial_symtab) <readin_p,
9355 get_compunit_symtab>: Add objfile parameter.
9356 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9357 Likewise.
9358 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9359 get_compunit_symtab>: Likewise.
9360 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9361
45940949
TT
93622020-05-27 Tom Tromey <tom@tromey.com>
9363
9364 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9365 member.
9366 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9367 (create_cu_from_index_list)
9368 (create_signatured_type_table_from_index)
9369 (create_signatured_type_table_from_debug_names)
9370 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9371 (dwarf2_create_include_psymtab)
9372 (create_debug_type_hash_table, add_type_unit)
9373 (create_type_unit_group, read_comp_units_from_section)
9374 (dwarf2_compute_name, create_cus_hash_table)
9375 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9376 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9377 obstack.
9378 (dw2_get_real_path): Likewise. Change argument to
9379 dwarf2_per_objfile.
9380
f8c6d152
LM
93812020-05-27 Luis Machado <luis.machado@linaro.org>
9382
9383 PR tdep/26000
9384 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9385 for ldrd (immediate).
9386
e98d2e6d
PW
93872020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9388
9389 * command.h: Add comment giving the name of class_tui.
9390 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9391 create the fake command for the help for class_tui.
9392
53a47a3e
TT
93932020-05-26 Tom Tromey <tromey@adacore.com>
9394
9395 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9396 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9397 (val_atr): New function.
9398 (value_val_atr): Use it.
9399 * ada-valprint.c (print_optional_low_bound): Change low bound
9400 handling for enums.
9401 (val_print_packed_array_elements): Don't call discrete_position.
9402 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9403 discrete_position for enum types.
9404 * language.c (default_print_array_index): Change type.
9405 * language.h (struct language_defn) <la_print_array_index>: Add
9406 index_type parameter, change type of index_value.
9407 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9408 (default_print_array_index): Update.
9409 * valprint.c (maybe_print_array_index): Don't call
9410 value_from_longest. Update.
9411 (value_print_array_elements): Don't call discrete_position.
9412
0bc2354b
TT
94132020-05-26 Tom Tromey <tromey@adacore.com>
9414
9415 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9416 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9417
1218a4bf
CDA
94182020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9419
9420 PR gdb/13519
9421 * avr-tdep.c (avr_integer_to_address): Return data or code
9422 address accordingly to the second 'type' argument of the
9423 function.
9424
92651b1d
MW
94252020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9426
9427 * infcmd.c, inferior.h: (construct_inferior_arguments):
9428 Moved function from here to gdbsupport/common-inferior.{h,cc}
9429
0a4f5f8c
TT
94302020-05-23 Tom Tromey <tom@tromey.com>
9431
9432 Revert commit eca1f90c:
9433 * NEWS: Remove entry for completion styling.
9434 * completer.c (_rl_completion_prefix_display_length): Move
9435 declaration later.
9436 (gdb_fnprint): Revert.
9437 (gdb_display_match_list_1): Likewise.
9438 * cli/cli-style.c (completion_prefix_style)
9439 (completion_difference_style, completion_suffix_style): Remove.
9440 (_initialize_cli_style): Revert.
9441 * cli/cli-style.h (completion_prefix_style)
9442 (completion_difference_style, completion_suffix_style): Don't
9443 declare.
9444
e08bd6c5
PA
94452020-05-24 Pedro Alves <palves@redhat.com>
9446
9447 * symtab.c (completion_list_add_name): Return boolean indication
9448 of whether the symbol matched.
9449 (completion_list_add_symbol): Don't try to remove C++ aliases if
9450 the symbol didn't match in the first place.
9451 * symtab.h (completion_list_add_name): Return bool.
9452
ceacbf6e
SM
94532020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9454
9455 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9456 type::field.
9457
26f16254
JB
94582020-05-23 Joel Brobecker <brobecker@adacore.com>
9459
9460 GDB 9.2 released.
9461
eca1f90c
TT
94622020-05-23 Tom Tromey <tom@tromey.com>
9463
9464 * NEWS: Add entry for completion styling.
9465 * completer.c (_rl_completion_prefix_display_length): Move
9466 declaration earlier.
9467 (gdb_fnprint): Use completion_style.
9468 (gdb_display_match_list_1): Likewise.
9469 * cli/cli-style.c (completion_prefix_style)
9470 (completion_difference_style, completion_suffix_style): New
9471 globals.
9472 (_initialize_cli_style): Register new globals.
9473 * cli/cli-style.h (completion_prefix_style)
9474 (completion_difference_style, completion_suffix_style): Declare.
9475
51e2cfa2
PA
94762020-05-23 Pedro Alves <palves@redhat.com>
9477
9478 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9479 (parse_escape): Use ISDIGIT instead of isdigit.
9480 (puts_debug): Use gdb_isprint instead of isprint.
9481 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9482 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9483 ISSPACE instead of isspace.
9484 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9485 instead of isspace.
9486 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9487 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9488 instead of isxdigit and ISDIGIT instead of isdigit.
9489
80fc5e77
SM
94902020-05-22 Simon Marchi <simon.marchi@efficios.com>
9491
9492 * gdbtypes.h (struct type) <field>: New method.
9493 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9494 or type::field.
9495
3cabb6b0
SM
94962020-05-22 Simon Marchi <simon.marchi@efficios.com>
9497
9498 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9499 (TYPE_FIELDS): Use type::fields. Change all call sites that
9500 modify the propery to use type::set_fields instead.
9501
1f704f76
SM
95022020-05-22 Simon Marchi <simon.marchi@efficios.com>
9503
9504 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9505 type::num_fields instead.
9506
5e33d5f4
SM
95072020-05-22 Simon Marchi <simon.marchi@efficios.com>
9508
9509 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9510 methods.
9511 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9512 that modify the number of fields to use type::set_num_fields
9513 instead.
9514
9392ebb3
TT
95152020-05-22 Tom Tromey <tromey@adacore.com>
9516
9517 * compile/compile-object-load.h (munmap_list_free): Don't
9518 declare.
9519
7c13f4e8
AB
95202020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9521
9522 * annotate.c (annotate_source_line): Update return type, add call
9523 to update current symtab and line.
9524 * annotate.h (annotate_source_line): Update return type, and
9525 extend header comment.
9526 * source.c (info_line_command): Check annotation_level before
9527 calling annotate_source_line.
9528 * stack.c (print_frame_info): If calling annotate_source_line
9529 returns true, then don't print any other source line information.
9530
aa370940
SM
95312020-05-21 Simon Marchi <simon.marchi@efficios.com>
9532
9533 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9534
84d53fa9
SM
95352020-05-21 Simon Marchi <simon.marchi@efficios.com>
9536
9537 * coffread.c (patch_type): Remove NULL check before xfree.
9538 * corefile.c (set_gnutarget): Likewise.
9539 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9540 * exec.c (build_section_table): Likewise.
9541 * remote.c (remote_target::pass_signals): Likewise.
9542 * utils.c (n_spaces): Likewise.
9543 * cli/cli-script.c (document_command): Likewise.
9544 * i386-windows-tdep.c (core_process_module_section): Likewise.
9545 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9546
9d428aae
SM
95472020-05-20 Simon Marchi <simon.marchi@efficios.com>
9548
9549 * symfile.c (reread_symbols): Clear objfile's section_offsets
9550 vector and section indices, re-compute them by calling
9551 sym_offsets.
9552
250106a7
TT
95532020-05-20 Tom Tromey <tromey@adacore.com>
9554
9555 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9556 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9557
9a0bacfb
TV
95582020-05-20 Tom de Vries <tdevries@suse.de>
9559
9560 PR symtab/25833
9561 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9562
7b958a48
AM
95632020-05-20 Alan Modra <amodra@gmail.com>
9564
9565 PR 25993
9566 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9567 bfd_set_filename.
9568 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9569 passed to bfd_set_filename.
9570 * symfile-mem.c (add_vsyscall_page): Likewise for string
9571 passed to symbol_file_add_from_memory.
9572 (symbol_file_add_from_memory): Make name param a const char* and
9573 don't strdup.
9574
c7e97679
AM
95752020-05-20 Alan Modra <amodra@gmail.com>
9576
9577 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9578 rather than accessing bfd->filename directly.
9579 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9580 and use bfd_section_name.
9581 * dwarf2/frame.c (decode_frame_entry): Likewise.
9582 * exec.c (exec_set_section_address): Likewise.
9583 * solib-aix.c (solib_aix_bfd_open): Likewise.
9584 * stap-probe.c (get_stap_base_address): Likewise.
9585 * symfile.c (reread_symbols): Likewise.
9586
563c591b
TT
95872020-05-19 Tom Tromey <tromey@adacore.com>
9588
9589 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9590
f408d82c
SM
95912020-05-19 Simon Marchi <simon.marchi@efficios.com>
9592
9593 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9594
98c59b52
PA
95952020-05-19 Pedro Alves <palves@redhat.com>
9596
9597 * NEWS (set exec-file-mismatch): Adjust entry.
9598 * exec.c: Include "build-id.h".
9599 (validate_exec_file): Try to match build IDs instead of filenames.
9600 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9601 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9602 and pass down 'warn_if_slow'.
9603 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9604 gdb_bfd_open_closure to pass it down.
9605 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9606
4111f652
PA
96072020-05-19 Pedro Alves <palves@redhat.com>
9608
9609 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9610 * target.c (target_fileio_open_1): Rename to target_fileio_open
9611 and make extern. Use bool.
9612 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9613 (target_fileio_read_alloc_1): Adjust.
9614 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9615 (target_fileio_open_warn_if_slow): Delete declaration.
9616
ad80db5b
PA
96172020-05-19 Pedro Alves <palves@redhat.com>
9618
9619 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9620 Adjust all callers.
9621
1d6ce4d3
YS
96222020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9623
9624 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9625 whether disp is negative.
9626
9005fbbb
SM
96272020-05-19 Simon Marchi <simon.marchi@efficios.com>
9628
9629 * symfile.h (struct symfile_segment_data)
9630 <~symfile_segment_data>: Remove.
9631 <segment_info>: Change to std::vector.
9632 * symfile.c (default_symfile_segments): Update.
9633 * elfread.c (elf_symfile_segments): Update.
9634
68b888ff
SM
96352020-05-19 Simon Marchi <simon.marchi@efficios.com>
9636
9637 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9638 <segments>: New.
9639 <segment_bases, segment_sizes>: Remove.
9640 * symfile.c (default_symfile_segments): Update.
9641 * elfread.c (elf_symfile_segments): Update.
9642 * remote.c (remote_target::get_offsets): Update.
9643 * solib-target.c (solib_target_relocate_section_addresses):
9644 Update.
9645
62982abd
SM
96462020-05-19 Simon Marchi <simon.marchi@efficios.com>
9647
9648 * symfile.h (struct symfile_segment_data): Initialize fields.
9649 <~symfile_segment_data>: Add.
9650 (symfile_segment_data_up): New.
9651 (struct sym_fns) <sym_segments>: Return a
9652 symfile_segment_data_up.
9653 (default_symfile_segments): Return a symfile_segment_data_up.
9654 (free_symfile_segment_data): Remove.
9655 (get_symfile_segment_data): Return a symfile_segment_data_up.
9656 * symfile.c (default_symfile_segments): Likewise.
9657 (get_symfile_segment_data): Likewise.
9658 (free_symfile_segment_data): Remove.
9659 (symfile_find_segment_sections): Update.
9660 * elfread.c (elf_symfile_segments): Return a
9661 symfile_segment_data_up.
9662 * remote.c (remote_target::get_offsets): Update.
9663 * solib-target.c (solib_target_relocate_section_addresses):
9664 Update.
9665 * symfile-debug.c (debug_sym_segments): Return a
9666 symfile_segment_data_up.
9667
7f204339
RO
96682020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9669
e52a0f1b
RO
9670 PR build/25981
9671 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9672 Hardcode register numbers.
9673
7f204339
RO
9674 PR build/25981
9675 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9676 procfs_find_LDT_entry): Remove.
9677 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9678 procfs_find_LDT_entry): Remove.
9679 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9680 Remove.
9681
7f32a4d5
PA
96822020-05-17 Pedro Alves <palves@redhat.com>
9683 Andrew Burgess <andrew.burgess@embecosm.com>
9684 Keno Fischer <keno@juliacomputing.com>
9685
9686 PR gdb/25741
9687 * breakpoint.c (build_target_condition_list): Update comments.
9688 (build_target_command_list): Update comments and skip matching
9689 locations.
9690 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9691 a separate function. Simplify "set breakpoint auto-hw off"
9692 handling.
9693 (insert_breakpoints): Update comment.
9694 (tracepoint_locations_match): New parameter. For breakpoints,
9695 compare location types too, if the caller wants to.
9696 (handle_automatic_hardware_breakpoints): New functions.
9697 (bp_location_is_less_than): Also sort by location type and
9698 hardware breakpoint length.
9699 (update_global_location_list): Handle "set breakpoint auto-hw on"
9700 here.
9701 (update_breakpoint_locations): Ask breakpoint_locations_match to
9702 ignore location types.
9703
7d93a1e0
SM
97042020-05-16 Simon Marchi <simon.marchi@efficios.com>
9705
9706 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9707 type::name instead.
9708
d0e39ea2
SM
97092020-05-16 Simon Marchi <simon.marchi@efficios.com>
9710
9711 * gdbtypes.h (struct type) <name, set_name>: New methods.
9712 (TYPE_CODE): Use type::name. Change all call sites used to set
9713 the name to use type::set_name instead.
9714
2dab0c7b
TT
97152020-05-16 Tom Tromey <tom@tromey.com>
9716
9717 * top.c (quit_force): Update.
9718 * infrun.c (handle_no_resumed): Update.
9719 * top.h (all_uis): New function.
9720 (ALL_UIS): Remove.
9721
59f7bd8d
SM
97222020-05-16 Simon Marchi <simon.marchi@efficios.com>
9723
9724 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9725
9bf058f0
PA
97262020-05-16 Pedro Alves <palves@redhat.com>
9727
9728 * ia64-linux-nat.c
9729 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9730 Declare method.
9731 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9732
8f86ae1a
SM
97332020-05-15 Simon Marchi <simon.marchi@efficios.com>
9734
9735 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9736 (sparc64_adi_info): Likewise.
9737
d6bc0792
TT
97382020-05-15 Tom Tromey <tom@tromey.com>
9739
9740 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9741 block_objfile.
9742 (lookup_objfile_from_block): Remove.
9743 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9744 (lookup_global_symbol): Use block_objfile.
9745 * symtab.h (lookup_objfile_from_block): Don't declare.
9746 * printcmd.c (clear_dangling_display_expressions): Use
9747 block_objfile.
9748 * parse.c (operator_check_standard): Use block_objfile.
9749
8c14c3a3
TT
97502020-05-15 Tom Tromey <tom@tromey.com>
9751
9752 * language.c (language_alloc_type_symbol): Set
9753 SYMBOL_SECTION.
9754 * symtab.c (initialize_objfile_symbol): Remove.
9755 (allocate_symbol): Remove.
9756 (allocate_template_symbol): Remove.
9757 * dwarf2/read.c (fixup_go_packaging): Use "new".
9758 (new_symbol): Use "new".
9759 (read_variable): Don't call initialize_objfile_symbol. Use
9760 "new".
9761 (read_func_scope): Use "new".
9762 * xcoffread.c (process_xcoff_symbol): Don't call
9763 initialize_objfile_symbol.
9764 (SYMBOL_DUP): Remove.
9765 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9766 "new".
9767 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9768 (allocate_template_symbol): Don't declare.
9769 (struct symbol): Add copy constructor. Change defaults.
9770 * jit.c (finalize_symtab): Use "new".
9771 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9772 Use "new".
9773 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9774 (common_block_end): Use "new".
9775 * mdebugread.c (parse_symbol): Use "new".
9776 (new_symbol): Likewise.
9777
5b4a1a8d
PW
97782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9779
9780 * NEWS: Mention changes to help and apropos.
9781
57b4f16e
PW
97822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9783
9784 * command.h (enum command_class): Improve comments, document
9785 that class_alias is for user-defined aliases, give the class
9786 name for each class, remove unused class_xdb.
9787 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9788 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9789 by a precise class.
9790 * infcmd.c (_initialize_infcmd): Likewise.
9791 * reverse.c (_initialize_reverse): Likewise.
9792 * stack.c (_initialize_stack): Likewise.
9793 * symfile.c (_initialize_symfile): Likewise.
9794 * tracepoint.c (_initialize_tracepoint): Likewise.
9795
7c05caf7
PW
97962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9797
9798 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9799 when their aliased command is traversed.
9800 (help_cmd): Add fput_command_names_styled call to
9801 output command name and aliases when command has an alias.
9802
3b3aaacb
PW
98032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9804
9805 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9806 * cli/cli-decode.c (help_cmd_list): Declare as static,
9807 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9808 a command together with the command.
9809 (fput_command_name_styled, fput_command_names_styled): New functions.
9810 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9811 fput_command_name_styled.
9812 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9813 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9814
7aa1b46f
PW
98152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9816
9817 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9818 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9819 * command.h (cmd_show_list): Likewise.
9820 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9821 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9822
89bcba74
PW
98232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9824
9825 * unittests/command-def-selftests.c (traverse_command_structure):
9826 Verify all commands of a list have the same prefix command and
9827 that only the top cmdlist commands have a null prefix.
9828
3f4d92eb
PW
98292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9830
9831 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9832 as prefix, not one of its aliases.
9833 (set_cmd_prefix): Remove.
9834 (do_add_cmd): Centralize the setting of the prefix of a command, when
9835 command is defined after its full chain of prefix commands.
9836 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9837 (add_setshow_cmd_full): Likewise.
9838 (update_prefix_field_of_prefixed_commands): New function.
9839 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9840 update_prefix_field_of_prefixed_commands.
9841 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9842 addresses of remote_set_cmdlist and remote_show_cmdlist given
9843 as argument, not the address of an argument.
9844 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9845 * gdb/remote.c (_initialize_remote): Likewise.
9846
0605465f
PW
98472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9848
9849 * cli/cli-cmds.c (alias_command): Check for an existing alias
9850 using lookup_cmd_composition, as valid_command_p is too strict
9851 and forbids aliases that are the prefix of an existing alias
9852 or command.
9853 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9854 command is properly recognised as a valid command.
9855
58e6ac70
PW
98562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9857
9858 * unittests/help-doc-selftests.c: Rename to
9859 unittests/command-def-selftests.c
9860 * unittests/command-def-selftests.c (help_doc_tests): Update some
9861 comments.
9862 (command_structure_tests, traverse_command_structure): New namespace
9863 and function.
9864 (command_structure_invariants_tests): New function.
9865 (_initialize_command_def_selftests) Renamed from
9866 _initialize_help_doc_selftests, register command_structure_invariants
9867 selftest.
9868
a7b9ceb8
PW
98692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9870
9871 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9872 an alias of 'show'.
9873
b2188a06
JB
98742020-05-15 Joel Brobecker <brobecker@adacore.com>
9875
9876 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9877 ada_is_fixed_point_type. Update all callers.
9878 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9879 all callers.
9880 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9881 Update all callers.
9882 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9883 print_fixed_point_type. Update all callers.
9884 * ada-valprint.c (ada_value_print_num): Replace call to
9885 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9886
a51951c2
KB
98872020-05-14 Kevin Buettner <kevinb@redhat.com>
9888
9889 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9890 processors.
9891 (cpu_supports_bts): Add CV_AMD case.
9892
29d6859f
LM
98932020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9894 Simon Marchi <simon.marchi@efficios.com>
9895
9896 * infrun.c (stop_all_threads): Collect multiple wait events at
9897 each pass.
9898
78134374
SM
98992020-05-14 Simon Marchi <simon.marchi@efficios.com>
9900
9901 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9902 type::code instead.
9903
67607e24
SM
99042020-05-14 Simon Marchi <simon.marchi@efficios.com>
9905
9906 * gdbtypes.h (struct type) <code, set_code>: New methods.
9907 (TYPE_CODE): Use type::code. Change all call sites used to set
9908 the code to use type::set_code instead.
9909
a05575d3
TBA
99102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9911 Tom de Vries <tdevries@suse.de>
9912 Pedro Alves <palves@redhat.com>
9913
9914 PR threads/25478
9915 * infrun.c (stop_all_threads): Do NOT ignore
9916 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9917 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9918 received.
9919 (handle_no_resumed): Remove code handling a live inferior with no
9920 threads.
9921 * remote.c (has_single_non_exited_thread): New.
9922 (remote_target::update_thread_list): Do not delete a thread if is
9923 the last thread of the process.
9924 * thread.c (thread_select): Call delete_exited_threads instead of
9925 prune_threads.
9926
6ad82919
TBA
99272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9928
9929 * infrun.c (stop_all_threads): Enable/disable thread events of all
9930 targets. Move a debug message denoting the end of the function
9931 into the SCOPED_EXIT block.
9932
d890404b
TBA
99332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9934
9935 * process-stratum-target.h: Include <set>.
9936 (all_non_exited_process_targets, switch_to_target_no_thread): New
9937 function declarations.
9938 * process-stratum-target.c (all_non_exited_process_targets)
9939 (switch_to_target_no_thread): New function implementations.
9940
293b3ebc
TBA
99412020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9942
9943 * infrun.c (handle_inferior_event): Extract out a piece of code
9944 into...
9945 (mark_non_executing_threads): ...this new function.
9946
7ca9b62a
TBA
99472020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9948
9949 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9950 use.
9951
fc75c28b
TBA
99522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9953
9954 * regcache.c (regcache_read_pc_protected): New function
9955 implementation that returns 0 if the PC cannot read via
9956 'regcache_read_pc'.
9957 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9958 instead of 'regcache_read_pc'.
9959 (keep_going_pass_signal): Ditto.
9960
a89febbd
TT
99612020-05-13 Tom Tromey <tromey@adacore.com>
9962
9963 * ada-lang.c (align_value): Remove.
9964 (ada_template_to_fixed_record_type_1): Use align_up.
9965
f7e23710
TBA
99662020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9967
9968 * async-event.c: Update the copyright year.
9969 * async-event.h: Update the copyright year.
9970
02ff80c2
SM
99712020-05-12 Simon Marchi <simon.marchi@efficios.com>
9972
9973 * objfiles.h (is_addr_in_objfile,
9974 shared_objfile_contains_address_p): Return bool.
9975 * objfile.c (is_addr_in_objfile,
9976 shared_objfile_contains_address_p): Return bool.
9977
4fd6c7e8
TT
99782020-05-11 Tom Tromey <tromey@adacore.com>
9979
9980 * cli/cli-cmds.c (info_command): Restore.
9981 (_initialize_cli_cmds): Use add_prefix_command for "info".
9982 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9983
5eb68a39
TT
99842020-05-11 Tom Tromey <tromey@adacore.com>
9985
9986 * ada-lang.c (ada_value_primitive_field): Now public.
9987 * ada-lang.h (ada_value_primitive_field): Declare.
9988 * ada-valprint.c (print_field_values): Use
9989 ada_value_primitive_field for wrapper fields.
9990
7666722f
TV
99912020-05-11 Tom de Vries <tdevries@suse.de>
9992
9993 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9994 MODULE_DOMAIN.
9995
3ee6bb11
TV
99962020-05-11 Tom de Vries <tdevries@suse.de>
9997
9998 PR symtab/25941
9999 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10000 with length 0, if not gdb-produced.
10001 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10002
43434996
TV
100032020-05-09 Tom de Vries <tdevries@suse.de>
10004
10005 PR gdb/25955
10006 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10007 calculation.
10008
2f78cffc
TT
100092020-05-09 Tom Tromey <tom@tromey.com>
10010
10011 * top.c (server_command): Now bool.
10012 * top.h (server_command): Now bool.
10013
4f7bc5ed
TT
100142020-05-08 Tom Tromey <tromey@adacore.com>
10015
10016 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10017 already being processed.
10018
8be4b118
TT
100192020-05-08 Tom Tromey <tom@tromey.com>
10020
10021 * printcmd.c (struct display) <next>: Remove.
10022 <display>: New constructor.
10023 <exp_string>: Now a std::string.
10024 <enabled_p>: Now a bool.
10025 (display_number): Move definition earlier.
10026 (displays): Rename from display_chain. Now a std::vector.
10027 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10028 (display_command): Update.
10029 (do_one_display, disable_display)
10030 (enable_disable_display_command, do_enable_disable_display):
10031 Update.
10032 (free_display): Remove.
10033 (clear_displays): Rewrite.
10034 (delete_display): Update.
10035 (map_display_numbers): Use function_view. Remove "data"
10036 parameter. Update.
10037 (do_delete_display): Remove.
10038 (undisplay_command): Update.
10039 (do_one_display, do_displays, disable_display)
10040 (info_display_command): Update.
10041 (do_enable_disable_display): Remove.
10042 (enable_disable_display_command)
10043 (clear_dangling_display_expressions): Update.
10044
94c93c35
TT
100452020-05-08 Tom Tromey <tom@tromey.com>
10046
10047 * symtab.c (set_symbol_cache_size)
10048 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10049 (maintenance_print_symbol_cache_statistics): Update.
10050 * symmisc.c (print_symbol_bcache_statistics)
10051 (print_objfile_statistics, maintenance_print_objfiles)
10052 (maintenance_info_symtabs, maintenance_check_symtabs)
10053 (maintenance_expand_symtabs, maintenance_info_line_tables):
10054 Update.
10055 * symfile-debug.c (set_debug_symfile): Update.
10056 * source.c (forget_cached_source_info): Update.
10057 * python/python.c (gdbpy_progspaces): Update.
10058 * psymtab.c (maintenance_info_psymtabs): Update.
10059 * probe.c (parse_probes): Update.
10060 * linespec.c (iterate_over_all_matching_symtabs)
10061 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10062 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10063 * exec.c (exec_target::close): Update.
10064 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10065 * breakpoint.c (print_one_breakpoint_location)
10066 (create_longjmp_master_breakpoint)
10067 (create_std_terminate_master_breakpoint): Update.
10068 * progspace.c (program_spaces): Now a std::vector.
10069 (maybe_new_address_space): Update.
10070 (add_program_space): Remove.
10071 (program_space::program_space): Update.
10072 (remove_program_space): Update.
10073 (number_of_program_spaces): Remove.
10074 (print_program_space, update_address_spaces): Update.
10075 * progspace.h (program_spaces): Change type.
10076 (ALL_PSPACES): Remove.
10077 (number_of_program_spaces): Don't declare.
10078 (struct program_space) <next>: Remove.
10079
a1fd1ac9
TT
100802020-05-08 Tom Tromey <tom@tromey.com>
10081
10082 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10083 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10084 (enable_break): Update.
10085 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10086 (frv_fdpic_find_canonical_descriptor): Update.
10087 (frv_fetch_objfile_link_map): Update.
10088 * progspace.c (program_space::free_all_objfiles): Update.
10089 (program_space::solibs): New method.
10090 * progspace.h (struct program_space) <solibs>: New method.
10091 * solist.h (master_so_list): Don't declare.
10092 (ALL_SO_LIBS): Remove.
10093 * solib.h (so_list_head): Remove.
10094 (update_solib_list): Update comment.
10095 * solib.c (master_so_list): Remove.
10096 (solib_used, update_solib_list, solib_add)
10097 (info_sharedlibrary_command, clear_solib)
10098 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10099
38eae084
TT
101002020-05-08 Tom Tromey <tom@tromey.com>
10101
10102 * extension.c (extension_languages): Now a std::array.
10103 (ALL_EXTENSION_LANGUAGES): Remove.
10104 (get_ext_lang_defn, get_ext_lang_of_file)
10105 (eval_ext_lang_from_control_command): Update.
10106 (finish_ext_lang_initialization)
10107 (auto_load_ext_lang_scripts_for_objfile)
10108 (ext_lang_type_printers::ext_lang_type_printers)
10109 (apply_ext_lang_type_printers)
10110 (ext_lang_type_printers::~ext_lang_type_printers)
10111 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10112 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10113 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10114 (get_matching_xmethod_workers, ext_lang_colorize)
10115 (ext_lang_before_prompt): Update.
10116 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10117
596dc4ad
TT
101182020-05-08 Tom Tromey <tom@tromey.com>
10119
10120 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10121 overload.
10122 <swap_string, m_string>: Remove.
10123 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10124 Update.
10125 * stabsread.c (define_symbol, read_type): Update.
10126 * linespec.c (find_linespec_symbols): Update.
10127 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10128 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10129 * dbxread.c (read_dbx_symtab): Update.
10130 * cp-support.h (cp_canonicalize_string_full)
10131 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10132 Return unique_xmalloc_ptr.
10133 * cp-support.c (inspect_type): Update.
10134 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10135 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10136 Likewise.
10137 * c-typeprint.c (print_name_maybe_canonical): Update.
10138 * break-catch-throw.c (check_status_exception_catchpoint):
10139 Update.
10140
bf4cb9be
TV
101412020-05-08 Tom de Vries <tdevries@suse.de>
10142
10143 * infrun.c (follow_fork): Copy current_line and current_symtab to
10144 child thread.
10145
a1b68f28
SM
101462020-05-07 Simon Marchi <simon.marchi@efficios.com>
10147
10148 * async-event.c (struct async_signal_handler, struct
10149 async_event_handler): Reformat, remove typedef.
10150
98d48915
SM
101512020-05-07 Simon Marchi <simon.marchi@efficios.com>
10152
10153 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10154 access thistype->main_type->dyn_prop_list directly.
10155
7aa91313
SM
101562020-05-07 Simon Marchi <simon.marchi@efficios.com>
10157
10158 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10159 (remove_dyn_prop): Remove. Update all users to use
10160 type::remove_dyn_prop.
10161 * gdbtypes.c (remove_dyn_prop): Rename to...
10162 (type::remove_dyn_prop): ... this.
10163
5c54719c
SM
101642020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10165
10166 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10167 (add_dyn_prop): Remove. Update all users to use
10168 type::add_dyn_prop.
10169 * gdbtypes.c (add_dyn_prop): Rename to...
10170 (type::add_dyn_prop): ... this.
10171
24e99c6c
SM
101722020-05-07 Simon Marchi <simon.marchi@efficios.com>
10173
10174 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10175 (get_dyn_prop): Remove. Update all users to use
10176 type::dyn_prop.
10177 * gdbtypes.c (get_dyn_prop): Rename to...
10178 (type::dyn_prop): ... this.
10179
0d4bf016
SM
101802020-05-06 Simon Marchi <simon.marchi@efficios.com>
10181
10182 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10183
ac4a4f1c
SM
101842020-05-06 Simon Marchi <simon.marchi@efficios.com>
10185
10186 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10187 instruction, skip it if it's there.
10188
a3bbacc1
SM
101892020-05-05 Simon Marchi <simon.marchi@efficios.com>
10190
10191 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10192
c3236f84
SM
101932020-05-04 Simon Marchi <simon.marchi@efficios.com>
10194
10195 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10196 * gdbtypes.c (recursive_dump_type): Remove use of
10197 TYPE_INCOMPLETE.
10198
3b6acaee
TT
101992020-05-03 Tom Tromey <tom@tromey.com>
10200
10201 * breakpoint.c (catch_command, tcatch_command): Remove.
10202 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10203 add_show_prefix_cmd.
10204 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10205 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10206 Remove.
10207 (add_internal_problem_command): Use add_basic_prefix_cmd,
10208 add_show_prefix_cmd.
10209 * mips-tdep.c (set_mipsfpu_command): Remove.
10210 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10211 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10212 (_initialize_index_cache): Use add_basic_prefix_cmd.
10213 * memattr.c (dummy_cmd): Remove.
10214 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10215 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10216 (_initialize_tui_win): Use add_basic_prefix_cmd,
10217 add_show_prefix_cmd.
10218 * cli/cli-logging.c (set_logging_command): Remove.
10219 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10220 add_show_prefix_cmd.
10221 (show_logging_command): Remove.
10222 * target.c (target_command): Remove.
10223 (add_target): Use add_basic_prefix_cmd.
10224
a51119cd
HD
102252020-05-02 Hannes Domani <ssbssa@yahoo.de>
10226
10227 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10228
652fc23a 102292020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10230
652fc23a
PW
10231 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10232 info_command.
10233
117539e6
KR
102342020-04-30 Kamil Rytarowski <n54@gmx.com>
10235
10236 * nbsd-nat.c (nbsd_enable_proc_events)
10237 (nbsd_nat_target::post_startup_inferior): Add.
10238 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10239 (nbsd_nat_target::update_thread_list): Rewrite.
10240 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10241 "PTRACE_LWP_CREATE".
10242 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10243
102e38eb 102442020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10245
102e38eb
PW
10246 * stack.c (_initialize_stack): Remove duplicated creation
10247 of "frame" command and "f" alias.
10248
ee9d1e5f
HD
102492020-04-30 Hannes Domani <ssbssa@yahoo.de>
10250
10251 PR gdb/18706
10252 * gdbtypes.c (check_typedef): Calculate size of array of
10253 stubbed type.
10254
627c7fb8
HD
102552020-04-30 Hannes Domani <ssbssa@yahoo.de>
10256
10257 PR gdb/15559
10258 * i386-tdep.c (i386_push_dummy_call): Call
10259 i386_thiscall_push_dummy_call.
10260 (i386_thiscall_push_dummy_call): New function.
10261 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10262 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10263 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10264
ffc2844e
SM
102652020-04-29 Simon Marchi <simon.marchi@efficios.com>
10266
10267 * gdbarch.sh (do_read): Add shellcheck disable directive for
10268 warning SC2162.
10269
1207375d
SM
102702020-04-29 Simon Marchi <simon.marchi@efficios.com>
10271
10272 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10273 "referenced but not assigned" warning.
10274
9fdb2916
SM
102752020-04-29 Simon Marchi <simon.marchi@efficios.com>
10276
10277 * gdbarch.sh: Remove code that sets fallbackdefault.
10278
759cea5e
SM
102792020-04-29 Simon Marchi <simon.marchi@efficios.com>
10280
10281 * gdbarch.sh: Use shell operators && and || instead of
10282 -a and -o.
10283
cb02ab24
SM
102842020-04-29 Simon Marchi <simon.marchi@efficios.com>
10285
10286 * gdbarch.sh: Use $(...) instead of `...`.
10287
a6fc5ffc
SM
102882020-04-29 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * gdbarch.sh: Use double quotes around variables.
10291
8d113d13
SM
102922020-04-29 Simon Marchi <simon.marchi@efficios.com>
10293
10294 * gdbarch.sh: Use %s with printf, instead of variables in the
10295 format string.
10296
ed6acedd
TT
102972020-04-29 Tom Tromey <tromey@adacore.com>
10298
10299 PR ada/25875:
10300 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10301 type fields here.
10302 (read_enumeration_type): Call
10303 update_enumeration_type_from_children later. Update comments.
10304 (process_enumeration_scope): Don't create type fields.
10305
b68b1b58
KR
103062020-04-29 Kamil Rytarowski <n54@gmx.com>
10307
10308 * nbsd-tdep.c: Include "xml-syscall.h".
10309 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10310
f94b2e03
KR
103112020-04-29 Kamil Rytarowski <n54@gmx.com>
10312
10313 * nbsd-nat.c: Include "sys/wait.h".
10314 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10315 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10316 (nbsd_nat_target::remove_exec_catchpoint)
10317 (nbsd_nat_target::set_syscall_catchpoint): Add.
10318 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10319 (nbsd_nat_target::insert_exec_catchpoint)
10320 (nbsd_nat_target::remove_exec_catchpoint)
10321 (nbsd_nat_target::set_syscall_catchpoint): Add.
10322 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10323 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10324 `nbsd_get_syscall_number'.
10325
fc49bc72
TT
103262020-04-29 Tom Tromey <tom@tromey.com>
10327
10328 * stack.c (print_block_frame_labels): Remove.
10329
d642b692
HD
103302020-04-29 Hannes Domani <ssbssa@yahoo.de>
10331
10332 PR gdb/17320
10333 * ada-valprint.c (val_print_packed_array_elements): Move array
10334 end bracket to new line.
10335 (ada_val_print_string): Remove extra spaces before first array
10336 element.
10337 * c-valprint.c (c_value_print_array): Likewise.
10338 * m2-valprint.c (m2_print_array_contents): Likewise.
10339 (m2_value_print_inner): Likewise.
10340 * p-valprint.c (pascal_value_print_inner): Likewise.
10341 * valprint.c (generic_val_print_array): Likewise.
10342 (value_print_array_elements): Move first array element and array
10343 end bracket to new line.
10344
ea90f227
TV
103452020-04-29 Tom de Vries <tdevries@suse.de>
10346
10347 PR symtab/25889
10348 * linespec.c (find_method): Fix ix calculation.
10349
4498ef4f
KR
103502020-04-28 Kamil Rytarowski <n54@gmx.com>
10351
10352 * syscalls/update-netbsd.sh: New file.
10353 * syscalls/netbsd.xml: Regenerate.
10354 * data-directory/Makefile.in: Register `netbsd.xml' in
10355 `SYSCALLS_FILES'.
10356
a55e30b5
SM
103572020-04-28 Simon Marchi <simon.marchi@efficios.com>
10358
10359 * syscalls/update-freebsd.sh: Add double quotes.
10360
2b2fbab8
TT
103612020-04-28 Tom Tromey <tom@tromey.com>
10362
10363 * NEWS: Update.
10364 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10365 (cmdpy_init): Allow class_tui.
10366
a65189c9
TV
103672020-04-28 Mark Williams <mark@myosotissp.com>
10368
10369 PR gdb/24480
10370 * dwarf2read.c: Add missing assingments to list_in_scope when
10371 start_symtab was already called.
10372
1b95cdb7
SM
103732020-04-28 Simon Marchi <simon.marchi@efficios.com>
10374
10375 PR gdb/25881
10376 * dwarf2/read.c (offset_map_type): Use
10377 gdb:hash_enum<sect_offset> as hash function.
10378
15cd93d0
TV
103792020-04-28 Tom de Vries <tdevries@suse.de>
10380
10381 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10382 with DW_AT_signature.
10383
1eb39914
SM
103842020-04-27 Simon Marchi <simon.marchi@efficios.com>
10385
10386 * configure.ac: Remove check for fs_base/gs_base in
10387 user_regs_struct.
10388 * configure: Re-generate.
10389 * config.in: Re-generate.
10390 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10391 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10392 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10393
991a3e2e
LM
103942020-04-27 Luis Machado <luis.machado@linaro.org>
10395
10396 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10397 problematic inline frame unwinding situation.
10398 * frame.c (frame_id_computed_p): New function.
10399 * frame.h (frame_id_computed_p): New prototype.
10400
361ba0e8
TT
104012020-04-26 Tom Tromey <tom@tromey.com>
10402
10403 * command.h (enum command_class) <class_pseudo>: Remove.
10404
bc3609fd
PW
104052020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10406
10407 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10408 and whitespace.
10409
b9771db7
KR
104102020-04-25 Kamil Rytarowski <n54@gmx.com>
10411
ec16513e
SM
10412 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10413 `PT_GET_PROCESS_STATE' block.
b9771db7 10414
7151c1af
TT
104152020-04-24 Tom Tromey <tom@tromey.com>
10416
10417 * symtab.h (symbol_get_demangled_name): Don't declare.
10418 * symtab.c (symbol_get_demangled_name): Remove.
10419 (general_symbol_info::natural_name)
10420 (general_symbol_info::demangled_name): Update.
10421
906bb4c5
TT
104222020-04-24 Tom Tromey <tom@tromey.com>
10423
10424 PR rust/25025:
10425 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10426
bcfe6157
TT
104272020-04-24 Tom Tromey <tom@tromey.com>
10428
10429 PR symtab/12707:
10430 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10431 exists.
10432 (new_symbol): Likewise.
10433 * compile/compile-object-load.c (get_out_value_type): Use
10434 symbol_matches_search_name.
10435
f049a313
TT
104362020-04-24 Tom Tromey <tom@tromey.com>
10437
10438 * dwarf2/read.c (add_partial_symbol): Do not call
10439 compute_and_set_names.
10440
76e288d1
TT
104412020-04-24 Tom Tromey <tom@tromey.com>
10442
10443 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10444 overload.
10445
2467f4f6
TT
104462020-04-24 Tom Tromey <tom@tromey.com>
10447
10448 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10449 (add_psymbol_to_list): New overload. Make old overload call new
10450 one.
10451 * psympriv.h (add_psymbol_to_list): New overload.
10452
e61108c9
TT
104532020-04-24 Tom Tromey <tom@tromey.com>
10454
10455 * dwarf2/read.c (partial_die_info::read) <case
10456 DW_AT_linkage_name>: Use value_as_string.
10457 (dwarf2_string_attr): Use value_as_string.
10458 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10459 method.
10460 * dwarf2/attribute.c (attribute::value_as_string): New method.
10461
8c87a452
TT
104622020-04-24 Tom Tromey <tom@tromey.com>
10463
10464 * symtab.c (general_symbol_info::natural_name)
10465 (general_symbol_info::demangled_name): Check for language_rust.
10466
787de330
TT
104672020-04-24 Tom Tromey <tom@tromey.com>
10468
10469 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10470 (dwarf2_physname): ... from here.
10471 (partial_die_info::read): Add Rust "{" hack.
10472
ff985671
TT
104732020-04-24 Tom Tromey <tom@tromey.com>
10474
10475 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10476 method.
10477 (symbol_set_demangled_name): Don't declare.
10478 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10479 symbol_set_demangled_name.
10480 (general_symbol_info::set_language)
10481 (general_symbol_info::compute_and_set_names): Update.
10482 * minsyms.c (minimal_symbol_reader::install): Update.
10483 * dwarf2/read.c (new_symbol): Update.
10484
1acda803
TT
104852020-04-24 Tom Tromey <tromey@adacore.com>
10486
10487 PR python/23662:
10488 * python/py-type.c (convert_field): Handle
10489 FIELD_LOC_KIND_DWARF_BLOCK.
10490 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10491 (typy_get_dynamic): Nw function.
10492 (type_object_getset): Add "dynamic".
10493 * NEWS: Add entry.
10494
d656f129
TT
104952020-04-24 Tom Tromey <tromey@adacore.com>
10496
10497 * ada-typeprint.c (print_choices, print_variant_part)
10498 (print_record_field_types_dynamic): New functions.
10499 (print_record_field_types): Use print_record_field_types_dynamic.
10500
7d79de9a
TT
105012020-04-24 Tom Tromey <tromey@adacore.com>
10502
10503 * dwarf2/read.c (handle_data_member_location): New overload.
10504 (dwarf2_add_field): Use it.
10505 (decode_locdesc): Add "computed" parameter. Update comment.
10506 * gdbtypes.c (is_dynamic_type_internal): Also look for
10507 FIELD_LOC_KIND_DWARF_BLOCK.
10508 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10509 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10510 virtual base classes.
10511 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10512 FIELD_LOC_KIND_DWARF_BLOCK.
10513
f8e89861
TT
105142020-04-24 Tom Tromey <tromey@adacore.com>
10515
10516 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10517 * gdbtypes.c (is_dynamic_type_internal): Check
10518 TYPE_HAS_DYNAMIC_LENGTH.
10519 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10520 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10521 New macros.
10522 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10523 constant.
10524
9c6a1327
TT
105252020-04-24 Tom Tromey <tromey@adacore.com>
10526
10527 * dwarf2/read.c (struct variant_field): Rewrite.
10528 (struct variant_part_builder): New.
10529 (struct nextfield): Remove "variant" field. Add "offset".
10530 (struct field_info): Add "current_variant_part" and
10531 "variant_parts".
10532 (alloc_discriminant_info): Remove.
10533 (alloc_rust_variant): New function.
10534 (quirk_rust_enum): Update.
10535 (dwarf2_add_field): Set "offset" member. Don't handle
10536 DW_TAG_variant_part.
10537 (offset_map_type): New typedef.
10538 (convert_variant_range, create_one_variant)
10539 (create_one_variant_part, create_variant_parts)
10540 (add_variant_property): New functions.
10541 (dwarf2_attach_fields_to_type): Call add_variant_property.
10542 (read_structure_type): Don't handle DW_TAG_variant_part.
10543 (handle_variant_part, handle_variant): New functions.
10544 (handle_struct_member_die): Use them.
10545 (process_structure_scope): Don't handle variant parts.
10546 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10547 (struct discriminant_info): Remove.
10548 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10549 (struct main_type) <flag_discriminated_union>: Remove.
10550 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10551 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10552 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10553 Update.
10554 * valops.c (value_union_variant): Remove.
10555 * value.h (value_union_variant): Don't declare.
10556
b249d2c2
TT
105572020-04-24 Tom Tromey <tromey@adacore.com>
10558
10559 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10560 (ada_value_primitive_packed_val): Update.
10561 * ada-valprint.c (ada_value_print_1): Update.
10562 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10563 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10564 just an address. Use evaluate_for_locexpr_baton.
10565 (dwarf2_evaluate_property): Update.
10566 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10567 array_view.
10568 * findvar.c (default_read_var_value): Update.
10569 * gdbtypes.c (compute_variant_fields_inner)
10570 (resolve_dynamic_type_internal): Update.
10571 (resolve_dynamic_type): Change type of valaddr parameter.
10572 * gdbtypes.h (resolve_dynamic_type): Update.
10573 * valarith.c (value_subscripted_rvalue): Update.
10574 * value.c (value_from_contents_and_address): Update.
10575
61122aa9
TT
105762020-04-24 Tom Tromey <tromey@adacore.com>
10577
10578 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10579 "push_initial_value" parameter.
10580 (dwarf2_evaluate_property): Likewise.
10581 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10582
ef83a141
TT
105832020-04-24 Tom Tromey <tromey@adacore.com>
10584
10585 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10586 (variant::matches, compute_variant_fields_recurse)
10587 (compute_variant_fields_inner, compute_variant_fields): New
10588 functions.
10589 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10590 Use resolved_type after type is made.
10591 (operator==): Add new cases.
10592 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10593 (struct discriminant_range, struct variant, struct variant_part):
10594 New.
10595 (union dynamic_prop_data) <variant_parts, original_type>: New
10596 members.
10597 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10598 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10599 constants.
10600 * value.c (unpack_bits_as_long): Now public.
10601 * value.h (unpack_bits_as_long): Declare.
10602
675127ec
TT
106032020-04-24 Tom Tromey <tromey@adacore.com>
10604
10605 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10606 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10607
9852ceef
HD
106082020-04-24 Hannes Domani <ssbssa@yahoo.de>
10609
10610 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10611
7632c6ce
KR
106122020-04-24 Kamil Rytarowski <n54@gmx.com>
10613
10614 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10615 (remove_fork_catchpoint, post_startup_inferior)
10616 (post_attach): Move...
10617 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10618 (remove_fork_catchpoint, post_startup_inferior)
10619 (post_attach): ...here.
10620 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10621 (remove_fork_catchpoint, post_startup_inferior)
10622 (post_attach): Move...
10623 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10624 (remove_fork_catchpoint, post_startup_inferior)
10625 (post_attach): ...here.
10626
7be2bb4f
TT
106272020-04-24 Tom Tromey <tromey@adacore.com>
10628
10629 * nat/windows-nat.h (struct windows_thread_info)
10630 <pc_adjusted>: New member.
10631 * windows-nat.c (windows_fetch_one_register): Check
10632 pc_adjusted.
10633 (windows_nat_target::get_windows_debug_event)
10634 (windows_nat_target::wait): Set pc_adjusted.
10635
f80cb3b4
TV
106362020-04-24 Tom de Vries <tdevries@suse.de>
10637
10638 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10639 Run gdb-add-index inside temp dir.
10640
29514b87
TT
106412020-04-23 Tom Tromey <tromey@adacore.com>
10642
10643 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10644 in loop.
10645
5939967b
LM
106462020-04-23 Luis Machado <luis.machado@linaro.org>
10647
10648 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10649 get_frame_register instead of gdbarch_unwind_pc.
10650
70bc38f5
TV
106512020-04-23 Tom de Vries <tdevries@suse.de>
10652
10653 * symtab.c (lookup_global_symbol): Prefer def over decl.
10654
de82891c
TV
106552020-04-23 Tom de Vries <tdevries@suse.de>
10656
10657 PR symtab/25807
10658 * block.c (best_symbol, better_symbol): Promote to external.
10659 * block.h (best_symbol, better_symbol): Declare.
10660 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10661 decl.
10662
ecc6c606
TT
106632020-04-23 Tom Tromey <tromey@adacore.com>
10664
10665 PR ada/25837:
10666 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10667 "const char *", not a "const std::string &".
10668 <name_and_matcher::operator==>: Update.
10669 * unittests/lookup_name_info-selftests.c: Change type of
10670 "result".
10671
740480b8
TT
106722020-04-23 Tom Tromey <tom@tromey.com>
10673
10674 * inferior.h (iterate_over_inferiors): Don't declare.
10675 * inferior.c (iterate_over_inferiors): Remove.
10676 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10677 Remove.
10678 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10679 use iterate_over_inferiors.
10680 (darwin_resume_inferior_it)
10681 (struct resume_inferior_threads_param)
10682 (darwin_resume_inferior_threads_it): Remove.
10683 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10684
ae3ab1f0
TV
106852020-04-23 Tom de Vries <tdevries@suse.de>
10686
10687 * blockframe.c (find_pc_partial_function): Use
10688 find_pc_sect_compunit_symtab rather than
10689 objfile->sf->qf->find_pc_sect_compunit_symtab.
10690
317d2668
TV
106912020-04-22 Tom de Vries <tdevries@suse.de>
10692
10693 PR symtab/25764
10694 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10695 in psymtabs.
10696
eea9e357
TV
106972020-04-22 Tom de Vries <tdevries@suse.de>
10698
10699 PR symtab/25801
10700 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10701 symtabs.
10702
3d5afab3
TV
107032020-04-22 Tom de Vries <tdevries@suse.de>
10704
10705 PR symtab/25700
10706 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10707 CU if already created.
10708
d43b7a2d
TBA
107092020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10710
10711 * infrun.c (displaced_step_fixup): Switch to the event_thread
10712 before calling displaced_step_restore, not after.
10713
d89edf9b
MM
107142020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10715
10716 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10717 its inferior is not recorded by us.
10718 (record_btrace_target_open): Replace call to
10719 all_non_exited_threads () with call to current_inferior
10720 ()->non_exited_threads ().
10721 (record_btrace_target::stop_recording): Likewise.
10722 (record_btrace_target::close): Likewise.
10723 (record_btrace_target::wait): Likewise.
10724 (record_btrace_target::record_stop_replaying): Likewise.
10725
5897fd49
MM
107262020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10727
10728 * btrace.c (btrace_enable): Throw an error on double enables and
10729 when enabling recording fails.
10730 (btrace_disable): Throw an error if the thread is not recorded.
10731
1a476b6d
MM
107322020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10733
10734 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10735 request if we do not have a thread_info.
10736
4778a5f8
TV
107372020-04-21 Tom de Vries <tdevries@suse.de>
10738
10739 PR gdb/25471
10740 * thread.c
10741 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10742 exception in get_frame_id.
10743
0fa7617d
TT
107442020-04-20 Tom Tromey <tromey@adacore.com>
10745
10746 * python/python.c (struct gdbpy_event): Mark move constructor as
10747 noexcept.
10748 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10749 constructor as noexcept.
10750 * completer.h (struct completion_result): Mark move constructor as
10751 noexcept.
10752 * completer.c (completion_result::completion_result): Use
10753 initialization style. Don't call reset_match_list.
10754
ad23bda0
MS
107552020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10756
10757 * MAINTAINERS (Write After Approval): Add myself.
10758
45e1f031
TT
107592020-04-18 Tom Tromey <tom@tromey.com>
10760
10761 * windows-tdep.c (init_w32_command_list)
10762 (w32_prefix_command_valid): Restore.
10763 (_initialize_windows_tdep): Call init_w32_command_list.
10764
08feed99
TT
107652020-04-18 Tom Tromey <tom@tromey.com>
10766
10767 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10768 * value.c (value_fn_field): Update.
10769 * valops.c (find_function_in_inferior)
10770 (value_allocate_space_in_inferior): Update.
10771 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10772 Update.
10773 * tui/tui-source.c (tui_source_window::set_contents): Update.
10774 * symtab.c (lookup_global_or_static_symbol)
10775 (find_function_start_sal_1, skip_prologue_sal)
10776 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10777 * symmisc.c (dump_msymbols, dump_symtab_1)
10778 (maintenance_print_one_line_table): Update.
10779 * symfile.c (init_entry_point_info, section_is_mapped)
10780 (list_overlays_command, simple_read_overlay_table)
10781 (simple_overlay_update_1): Update.
10782 * stap-probe.c (handle_stap_probe): Update.
10783 * stabsread.c (dbx_init_float_type, define_symbol)
10784 (read_one_struct_field, read_enum_type, read_range_type): Update.
10785 * source.c (info_line_command): Update.
10786 * python/python.c (gdbpy_source_objfile_script)
10787 (gdbpy_execute_objfile_script): Update.
10788 * python/py-type.c (save_objfile_types): Update.
10789 * python/py-objfile.c (py_free_objfile): Update.
10790 * python/py-inferior.c (python_new_objfile): Update.
10791 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10792 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10793 (maintenance_check_psymtabs): Update.
10794 * printcmd.c (info_address_command): Update.
10795 * objfiles.h (struct objfile) <arch>: New method, from
10796 get_objfile_arch.
10797 (get_objfile_arch): Don't declare.
10798 * objfiles.c (get_objfile_arch): Remove.
10799 (filter_overlapping_sections): Update.
10800 * minsyms.c (msymbol_is_function): Update.
10801 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10802 (output_nondebug_symbol): Update.
10803 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10804 (mdebug_expand_psymtab): Update.
10805 * machoread.c (macho_add_oso_symfile): Update.
10806 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10807 Update.
10808 * linux-fork.c (checkpoint_command): Update.
10809 * linespec.c (convert_linespec_to_sals): Update.
10810 * jit.c (finalize_symtab): Update.
10811 * infrun.c (insert_exception_resume_from_probe): Update.
10812 * ia64-tdep.c (ia64_find_unwind_table): Update.
10813 * hppa-tdep.c (internalize_unwinds): Update.
10814 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10815 Update.
10816 * gcore.c (call_target_sbrk): Update.
10817 * elfread.c (record_minimal_symbol, elf_symtab_read)
10818 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10819 (elf_gnu_ifunc_resolve_by_got): Update.
10820 * dwarf2/read.c (create_addrmap_from_index)
10821 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10822 (read_debug_names_from_section)
10823 (process_psymtab_comp_unit_reader, add_partial_symbol)
10824 (add_partial_subprogram, process_full_comp_unit)
10825 (read_file_scope, read_func_scope, read_lexical_block_scope)
10826 (read_call_site_scope, dwarf2_ranges_read)
10827 (dwarf2_record_block_ranges, dwarf2_add_field)
10828 (mark_common_block_symbol_computed, read_tag_pointer_type)
10829 (read_tag_string_type, dwarf2_init_float_type)
10830 (dwarf2_init_complex_target_type, read_base_type)
10831 (partial_die_info::read, partial_die_info::read)
10832 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10833 (dwarf2_fetch_die_loc_sect_off): Update.
10834 * dwarf2/loc.c (dwarf2_find_location_expression)
10835 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10836 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10837 (dwarf2_loc_desc_get_symbol_read_needs)
10838 (locexpr_describe_location_piece, locexpr_describe_location_1)
10839 (loclist_describe_location): Update.
10840 * dwarf2/index-write.c (write_debug_names): Update.
10841 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10842 * dtrace-probe.c (dtrace_process_dof): Update.
10843 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10844 (process_one_symbol): Update.
10845 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10846 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10847 (coff_read_enum_type): Update.
10848 * cli/cli-cmds.c (edit_command, list_command): Update.
10849 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10850 * breakpoint.c (create_overlay_event_breakpoint)
10851 (create_longjmp_master_breakpoint)
10852 (create_std_terminate_master_breakpoint)
10853 (create_exception_master_breakpoint, get_sal_arch): Update.
10854 * block.c (block_gdbarch): Update.
10855 * annotate.c (annotate_source_line): Update.
10856
0743fc83
TT
108572020-04-17 Tom Tromey <tromey@adacore.com>
10858
10859 * auto-load.c (show_auto_load_cmd): Remove.
10860 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10861 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10862 (maintenance_print_arc_command): Remove.
10863 * tui/tui-win.c (tui_command): Remove.
10864 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10865 * tui/tui-layout.c (tui_layout_command): Remove.
10866 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10867 * python/python.c (user_set_python, user_show_python): Remove.
10868 (_initialize_python): Use add_basic_prefix_cmd,
10869 add_show_prefix_cmd.
10870 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10871 (install_gdb_commands): Use add_basic_prefix_cmd,
10872 add_show_prefix_cmd.
10873 (info_guile_command): Remove.
10874 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10875 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10876 add_show_prefix_cmd.
10877 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10878 Remove do_set and do_show parameters.
10879 * cli/cli-style.c (set_style, show_style): Remove.
10880 (_initialize_cli_style): Use add_basic_prefix_cmd,
10881 add_show_prefix_cmd.
10882 (cli_style_option::add_setshow_commands): Remove do_set and
10883 do_show parameters.
10884 (cli_style_option::add_setshow_commands): Use
10885 add_basic_prefix_cmd, add_show_prefix_cmd.
10886 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10887 (set_style_name): Remove.
10888 * cli/cli-dump.c (dump_command, append_command): Remove.
10889 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10890 (tekhex_dump_command, binary_dump_command)
10891 (binary_append_command): Remove.
10892 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10893 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10894 (init_w32_command_list): Remove; move into ...
10895 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10896 * valprint.c (set_print, show_print, set_print_raw)
10897 (show_print_raw): Remove.
10898 (_initialize_valprint): Use add_basic_prefix_cmd,
10899 add_show_prefix_cmd.
10900 * typeprint.c (set_print_type, show_print_type): Remove.
10901 (_initialize_typeprint): Use add_basic_prefix_cmd,
10902 add_show_prefix_cmd.
10903 * record.c (set_record_command, show_record_command): Remove.
10904 (_initialize_record): Use add_basic_prefix_cmd,
10905 add_show_prefix_cmd.
10906 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10907 add_show_prefix_cmd.
10908 (info_command, show_command, set_debug, show_debug): Remove.
10909 * top.h (set_history, show_history): Don't declare.
10910 * top.c (set_history, show_history): Remove.
10911 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10912 (unset_tdesc_cmd): Remove.
10913 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10914 add_show_prefix_cmd.
10915 * symtab.c (info_module_command): Remove.
10916 (_initialize_symtab): Use add_basic_prefix_cmd.
10917 * symfile.c (overlay_command): Remove.
10918 (_initialize_symfile): Use add_basic_prefix_cmd.
10919 * sparc64-tdep.c (info_adi_command): Remove.
10920 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10921 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10922 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10923 add_show_prefix_cmd.
10924 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10925 (_initialize_serial): Use add_basic_prefix_cmd,
10926 add_show_prefix_cmd.
10927 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10928 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10929 add_show_prefix_cmd.
10930 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10931 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10932 add_show_prefix_cmd.
10933 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10934 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10935 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10936 add_show_prefix_cmd.
10937 * remote.c (remote_command, set_remote_cmd): Remove.
10938 (_initialize_remote): Use add_basic_prefix_cmd.
10939 * record-full.c (set_record_full_command)
10940 (show_record_full_command): Remove.
10941 (_initialize_record_full): Use add_basic_prefix_cmd,
10942 add_show_prefix_cmd.
10943 * record-btrace.c (cmd_set_record_btrace)
10944 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10945 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10946 (cmd_show_record_btrace_pt): Remove.
10947 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10948 add_show_prefix_cmd.
10949 * ravenscar-thread.c (set_ravenscar_command)
10950 (show_ravenscar_command): Remove.
10951 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10952 add_show_prefix_cmd.
10953 * mips-tdep.c (show_mips_command, set_mips_command)
10954 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10955 add_show_prefix_cmd.
10956 * maint.c (maintenance_command, maintenance_info_command)
10957 (maintenance_check_command, maintenance_print_command)
10958 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10959 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10960 add_show_prefix_cmd.
10961 (show_per_command_cmd): Remove.
10962 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10963 Remove.
10964 (maintenance_show_test_settings_cmd): Remove.
10965 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10966 add_show_prefix_cmd.
10967 * maint-test-options.c (maintenance_test_options_command):
10968 Remove.
10969 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10970 * macrocmd.c (macro_command): Remove
10971 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10972 * language.c (set_check, show_check): Remove.
10973 (_initialize_language): Use add_basic_prefix_cmd,
10974 add_show_prefix_cmd.
10975 * infcmd.c (unset_command): Remove.
10976 (_initialize_infcmd): Use add_basic_prefix_cmd.
10977 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10978 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10979 add_show_prefix_cmd.
10980 * go32-nat.c (go32_info_dos_command): Remove.
10981 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10982 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10983 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10984 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10985 (_initialize_frame): Use add_basic_prefix_cmd,
10986 add_show_prefix_cmd.
10987 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10988 (_initialize_dcache): Use add_basic_prefix_cmd,
10989 add_show_prefix_cmd.
10990 * cp-support.c (maint_cplus_command): Remove.
10991 (_initialize_cp_support): Use add_basic_prefix_cmd.
10992 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10993 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10994 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10995 add_basic_prefix_cmd, add_show_prefix_cmd.
10996 * breakpoint.c (save_command): Remove.
10997 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10998 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10999 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11000 add_show_prefix_cmd.
11001 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11002 (set_ada_command, show_ada_command): Remove.
11003 (_initialize_ada_language): Use add_basic_prefix_cmd,
11004 add_show_prefix_cmd.
11005 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11006
3557f442
KR
110072020-04-16 Kamil Rytarowski <n54@gmx.com>
11008
11009 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11010 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11011
16197208
SM
110122020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11013
11014 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11015 warning messages.
11016
00ac85d3
SM
110172020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11018
11019 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11020 import table is not at beginning of .idata section.
11021
381ce63f
PA
110222020-04-16 Pedro Alves <palves@redhat.com>
11023
11024 * inferior.c (delete_inferior): Use delete operator directly
11025 instead of delete_program_space.
11026 * progspace.c (add_program_space): New, factored out from
11027 program_space::program_space.
11028 (remove_program_space): New, factored out from
11029 delete_program_space.
11030 (program_space::program_space): Remove intro comment. Rewrite.
11031 (program_space::~program_space): Remove intro comment. Call
11032 remove_program_space.
11033 (delete_program_space): Delete.
11034 * progspace.h (program_space::program_space): Make explicit. Move
11035 intro comment here, adjusted.
11036 (program_space::~program_space): Move intro comment here,
11037 adjusted.
11038 (delete_program_space): Remove.
11039
a010605f
TT
110402020-04-16 Tom Tromey <tromey@adacore.com>
11041
11042 * windows-nat.c (windows_nat::handle_access_violation): New
11043 function.
11044 * nat/windows-nat.h (handle_access_violation): Declare.
11045 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11046 windows-nat.c. Call handle_access_violation.
11047
efba5c23
TV
110482020-04-16 Tom de Vries <tdevries@suse.de>
11049
11050 PR symtab/25791
11051 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11052 CUs without psymtab.
11053
97ed802d
KB
110542020-04-16 Kevin Buettner <kevinb@redhat.com>
11055
11056 * python/python.c (do_start_initialization): Don't call
11057 PyEval_InitThreads for Python 3.9 and beyond.
11058
c7d64809
KR
110592020-04-15 Kamil Rytarowski <n54@gmx.com>
11060
11061 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11062 thread functions.
11063 (obsd_nat_target::wait): Likewise.
11064
ce127a96
TT
110652020-04-15 Tom Tromey <tromey@adacore.com>
11066
11067 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11068 (DEBUG_EXCEPT): Use debug_printf.
11069
99f1bc6a
AB
110702020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11071
11072 * completer.c (class completion_tracker::completion_hash_entry)
11073 <hash_name>: New member function.
11074 (completion_tracker::discard_completions): New callback to hash a
11075 completion_hash_entry, pass this to htab_create_alloc.
11076
a0e9b532
JT
110772016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11078
11079 * windows-nat.c (windows_make_so): Warn rather than stopping with
11080 an error if realpath() fails.
11081
06ca5dd4
KR
110822020-04-14 Kamil Rytarowski <n54@gmx.com>
11083
11084 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11085 (nbsd_nat_target::info_proc): Add do_status.
11086
194d088f
TV
110872020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11088 Tom de Vries <tdevries@suse.de>
11089
11090 PR symtab/25718
11091 * psympriv.h (struct partial_symtab::read_symtab)
11092 (struct partial_symtab::expand_psymtab)
11093 (struct partial_symtab::read_dependencies): Update comments.
11094 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11095 read_symtab for includer.
11096 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11097 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11098 (struct dwarf2_include_psymtab::m_readin): Remove.
11099 (struct dwarf2_include_psymtab::includer): New member function.
11100 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11101
c1a66c06
TV
111022020-04-14 Tom de Vries <tdevries@suse.de>
11103
11104 PR symtab/25720
11105 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11106 with NULL symbol_matcher and lookup_name.
11107 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11108 and lookup_name.
11109 * dwarf2/read.c (dw2_expand_symtabs_matching)
11110 (dw2_debug_names_expand_symtabs_matching): Same.
11111 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11112 Make lookup_name a pointer. Update comment.
11113 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11114 lookup_name being a pointer.
11115 * symfile.c (expand_symtabs_matching): Same.
11116 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11117 * linespec.c (iterate_over_all_matching_symtabs): Same.
11118
400b5eca
TT
111192020-04-13 Tom Tromey <tom@tromey.com>
11120
11121 * run-on-main-thread.c: Update include.
11122 * unittests/main-thread-selftests.c: Update include.
11123 * tui/tui-win.c: Update include.
11124 * tui/tui-io.c: Update include.
11125 * tui/tui-interp.c: Update include.
11126 * tui/tui-hooks.c: Update include.
11127 * top.h: Update include.
11128 * top.c: Update include.
11129 * ser-base.c: Update include.
11130 * remote.c: Update include.
11131 * remote-notif.c: Update include.
11132 * remote-fileio.c: Update include.
11133 * record-full.c: Update include.
11134 * record-btrace.c: Update include.
11135 * python/python.c: Update include.
11136 * posix-hdep.c: Update include.
11137 * mingw-hdep.c: Update include.
11138 * mi/mi-main.c: Update include.
11139 * mi/mi-interp.c: Update include.
11140 * main.c: Update include.
11141 * linux-nat.c: Update include.
11142 * interps.c: Update include.
11143 * infrun.c: Update include.
11144 * inf-loop.c: Update include.
11145 * event-top.c: Update include.
11146 * event-loop.c: Move to ../gdbsupport/.
11147 * event-loop.h: Move to ../gdbsupport/.
11148 * async-event.h: Update include.
11149 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11150
93b54c8e
TT
111512020-04-13 Tom Tromey <tom@tromey.com>
11152
11153 * tui/tui-win.c: Include async-event.h.
11154 * remote.c: Include async-event.h.
11155 * remote-notif.c: Include async-event.h.
11156 * record-full.c: Include async-event.h.
11157 * record-btrace.c: Include async-event.h.
11158 * infrun.c: Include async-event.h.
11159 * event-top.c: Include async-event.h.
11160 * event-loop.h: Move some declarations to async-event.h.
11161 * event-loop.c: Don't include ser-event.h or top.h. Move some
11162 code to async-event.c.
11163 * async-event.h: New file.
11164 * async-event.c: New file.
11165 * Makefile.in (COMMON_SFILES): Add async-event.c.
11166 (HFILES_NO_SRCDIR): Add async-event.h.
11167
c1cd3163
TT
111682020-04-13 Tom Tromey <tom@tromey.com>
11169
11170 * utils.c (flush_streams): New function.
11171 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11172
29f2bf4f
TT
111732020-04-13 Tom Tromey <tom@tromey.com>
11174
11175 * event-loop.c (handle_file_event): Use warning, not
11176 printf_unfiltered.
11177
98029d02
TT
111782020-04-13 Tom Tromey <tom@tromey.com>
11179
11180 * event-loop.c: Include <chrono>.
11181
06cc9596
TT
111822020-04-13 Tom Tromey <tom@tromey.com>
11183
11184 * gdb_select.h: Move to ../gdbsupport/.
11185 * event-loop.c: Update include path.
11186 * top.c: Update include path.
11187 * ser-base.c: Update include path.
11188 * ui-file.c: Update include path.
11189 * ser-tcp.c: Update include path.
11190 * guile/scm-ports.c: Update include path.
11191 * posix-hdep.c: Update include path.
11192 * ser-unix.c: Update include path.
11193 * gdb_usleep.c: Update include path.
11194 * mingw-hdep.c: Update include path.
11195 * inflow.c: Update include path.
11196 * infrun.c: Update include path.
11197 * event-top.c: Update include path.
11198
8ae8e197
TT
111992020-04-13 Tom Tromey <tom@tromey.com>
11200
11201 * configure: Rebuild.
11202 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11203
58cf28e8
TT
112042020-04-13 Tom Tromey <tom@tromey.com>
11205
11206 * event-loop.h (start_event_loop): Don't declare.
11207 * event-loop.c (start_event_loop): Move...
11208 * main.c (start_event_loop): ...here. Now static.
11209
b7f999ae
SDJ
112102020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11211
11212 * MAINTAINERS: Update my email address.
11213
1085dfd4
KR
112142020-04-12 Kamil Rytarowski <n54@gmx.com>
11215
11216 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11217 IP_ALL.
11218
49d1d1f5
KR
112192020-04-12 Kamil Rytarowski <n54@gmx.com>
11220
11221 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11222 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11223
b4848d2a
KR
112242020-04-12 Kamil Rytarowski <n54@gmx.com>
11225
11226 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11227 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11228
51c133d5
KR
112292020-04-12 Kamil Rytarowski <n54@gmx.com>
11230
11231 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11232
54b8cbd0
KR
112332020-04-11 Kamil Rytarowski <n54@gmx.com>
11234
11235 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11236 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11237 (nbsd_nat_target::info_proc): New functions.
11238 * nbsd-nat.c (kinfo_get_vmmap): New function.
11239 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11240 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11241 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11242 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11243 functions.
11244 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11245 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11246 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11247 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11248 (KINFO_VME_FLAG_GROWS_DOWN): New.
11249
cf83625d
AS
112502020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11251
11252 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11253 bit shift.
11254
0c4311ab
TT
112552020-04-10 Tom Tromey <tromey@adacore.com>
11256
11257 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11258
3e65b3e9
TT
112592020-04-10 Tom Tromey <tromey@adacore.com>
11260
11261 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11262 separate debug files.
11263
13302e95
HD
112642020-04-10 Hannes Domani <ssbssa@yahoo.de>
11265
11266 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11267 Move to...
11268 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11269 ... here.
11270 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11271 Check for STATUS_WX86_BREAKPOINT.
11272 (windows_nat_target::wait): Same.
11273
bdfc1e8a
TV
112742020-04-10 Tom de Vries <tdevries@suse.de>
11275
11276 PR cli/25808
11277 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11278
f4460aec
SM
112792020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11280
11281 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11282 (Write After Approval): Remove Tom de Vries.
11283
a25198bb
BE
112842020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11285
11286 revert partially:
11287 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11288
aac66a4c
SM
11289 * buildsym.c (record_line): Fix undefined behavior and preserve
11290 lines at eof.
a25198bb 11291
206c98a6
KR
112922020-04-09 Kamil Rytarowski <n54@gmx.com>
11293
11294 * auxv.h (svr4_auxv_parse): New.
11295 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11296 and generic_auxv_parse.
11297 (svr4_auxv_parse): Add.
11298 * obsd-tdep.c: Include "auxv.h".
11299 (obsd_auxv_parse): Remove.
11300 (obsd_init_abi): Remove comment.
11301 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11302 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11303 * nbsd-tdep.c: Include "auxv.h".
11304 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11305
71fbdbaf
TT
113062020-04-08 Tom Tromey <tromey@adacore.com>
11307
11308 * nat/windows-nat.h (last_wait_event): Don't declare.
11309 (wait_for_debug_event): Update comment.
11310 * nat/windows-nat.c (last_wait_event): Now static.
11311
2c1d95e8
TT
113122020-04-08 Tom Tromey <tromey@adacore.com>
11313
11314 * windows-nat.c (wait_for_debug_event): Move to
11315 nat/windows-nat.c.
11316 * nat/windows-nat.h (wait_for_debug_event): Declare.
11317 * nat/windows-nat.c (wait_for_debug_event): Move from
11318 windows-nat.c. No longer static.
11319
d2977bc4
TT
113202020-04-08 Tom Tromey <tromey@adacore.com>
11321
11322 * windows-nat.c (get_windows_debug_event): Use
11323 fetch_pending_stop.
11324 * nat/windows-nat.h (fetch_pending_stop): Declare.
11325 * nat/windows-nat.c (fetch_pending_stop): New function.
11326
e758e19c
TT
113272020-04-08 Tom Tromey <tromey@adacore.com>
11328
11329 * windows-nat.c (windows_continue): Use matching_pending_stop and
11330 continue_last_debug_event.
11331 * nat/windows-nat.h (matching_pending_stop)
11332 (continue_last_debug_event): Declare.
11333 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11334 (matching_pending_stop, continue_last_debug_event): New
11335 functions.
11336
8d30e395
TT
113372020-04-08 Tom Tromey <tromey@adacore.com>
11338
11339 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11340 (handle_exception_result): Move to nat/windows-nat.h.
11341 (DEBUG_EXCEPTION_SIMPLE): Remove.
11342 (windows_nat::handle_ms_vc_exception): New function.
11343 (handle_exception): Move to nat/windows-nat.c.
11344 (get_windows_debug_event): Update.
11345 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11346 nat/windows-nat.c.
11347 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11348 (handle_exception_result): Move from windows-nat.c.
11349 (handle_exception): Declare.
11350 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11351 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11352 windows-nat.c.
11353
29de418d
TT
113542020-04-08 Tom Tromey <tromey@adacore.com>
11355
11356 * windows-nat.c (exception_count, event_count): Remove.
11357 (handle_exception, get_windows_debug_event)
11358 (do_initial_windows_stuff): Update.
11359
a816ba18
TT
113602020-04-08 Tom Tromey <tromey@adacore.com>
11361
11362 * windows-nat.c (windows_nat::handle_load_dll)
11363 (windows_nat::handle_unload_dll): Rename. No longer static.
11364 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11365 Declare.
11366
a00caa12
TT
113672020-04-08 Tom Tromey <tromey@adacore.com>
11368
11369 * complaints.h (stop_whining): Declare at top-level.
11370 (complaint): Don't declare stop_whining.
11371
d41b524f
TT
113722020-04-08 Tom Tromey <tromey@adacore.com>
11373
11374 * windows-nat.c (windows_nat::handle_output_debug_string):
11375 Rename. No longer static.
11376 * nat/windows-nat.h (handle_output_debug_string): Declare.
11377
3c76026d
TT
113782020-04-08 Tom Tromey <tromey@adacore.com>
11379
11380 * windows-nat.c (current_process_handle, current_process_id)
11381 (main_thread_id, last_sig, current_event, last_wait_event)
11382 (current_windows_thread, desired_stop_thread_id, pending_stops)
11383 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11384 (display_selectors, fake_create_process)
11385 (get_windows_debug_event): Update.
11386 * nat/windows-nat.h (current_process_handle, current_process_id)
11387 (main_thread_id, last_sig, current_event, last_wait_event)
11388 (current_windows_thread, desired_stop_thread_id, pending_stops)
11389 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11390 * nat/windows-nat.c (current_process_handle, current_process_id)
11391 (main_thread_id, last_sig, current_event, last_wait_event)
11392 (current_windows_thread, desired_stop_thread_id, pending_stops)
11393 (siginfo_er): New globals. Move from windows-nat.c.
11394
9d8679cc
TT
113952020-04-08 Tom Tromey <tromey@adacore.com>
11396
11397 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11398 (handle_load_dll): Update.
11399 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11400
28688adf
TT
114012020-04-08 Tom Tromey <tromey@adacore.com>
11402
11403 * windows-nat.c (enum thread_disposition_type): Move to
11404 nat/windows-nat.h.
11405 (windows_nat::thread_rec): Rename from thread_rec. No longer
11406 static.
11407 (windows_add_thread, windows_nat_target::fetch_registers)
11408 (windows_nat_target::store_registers, handle_exception)
11409 (windows_nat_target::resume, get_windows_debug_event)
11410 (windows_nat_target::get_tib_address)
11411 (windows_nat_target::thread_name)
11412 (windows_nat_target::thread_alive): Update.
11413 * nat/windows-nat.h (enum thread_disposition_type): Move from
11414 windows-nat.c.
11415 (thread_rec): Declare.
11416
4834dad0
TT
114172020-04-08 Tom Tromey <tromey@adacore.com>
11418
11419 * windows-nat.c: Add "using namespace".
11420 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11421 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11422
65bafd5b
TT
114232020-04-08 Tom Tromey <tromey@adacore.com>
11424
11425 * nat/windows-nat.h (struct windows_thread_info): Declare
11426 destructor.
11427 * nat/windows-nat.c (~windows_thread_info): New.
11428
0a4afda3
TT
114292020-04-08 Tom Tromey <tromey@adacore.com>
11430
11431 PR gdb/22992
11432 * windows-nat.c (current_event): Update comment.
11433 (last_wait_event, desired_stop_thread_id): New globals.
11434 (struct pending_stop): New.
11435 (pending_stops): New global.
11436 (windows_nat_target) <stopped_by_sw_breakpoint>
11437 <supports_stopped_by_sw_breakpoint>: New methods.
11438 (windows_fetch_one_register): Add assertions. Adjust PC.
11439 (windows_continue): Handle pending stops. Suspend other threads
11440 when stepping. Use last_wait_event
11441 (wait_for_debug_event): New function.
11442 (get_windows_debug_event): Use wait_for_debug_event. Handle
11443 pending stops. Queue spurious stops.
11444 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11445 (windows_nat_target::kill): Use wait_for_debug_event.
11446 * nat/windows-nat.h (struct windows_thread_info)
11447 <stopped_at_software_breakpoint>: New field.
11448 * nat/windows-nat.c (windows_thread_info::resume): Clear
11449 stopped_at_software_breakpoint.
11450
8e61ebec
TT
114512020-04-08 Tom Tromey <tromey@adacore.com>
11452
11453 * windows-nat.c (enum thread_disposition_type): New.
11454 (thread_rec): Replace "get_context" parameter with "disposition";
11455 change type.
11456 (windows_add_thread, windows_nat_target::fetch_registers)
11457 (windows_nat_target::store_registers, handle_exception)
11458 (windows_nat_target::resume, get_windows_debug_event)
11459 (windows_nat_target::get_tib_address)
11460 (windows_nat_target::thread_name)
11461 (windows_nat_target::thread_alive): Update.
11462
98a03287
TT
114632020-04-08 Tom Tromey <tromey@adacore.com>
11464
11465 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11466 (windows_continue): Use windows_continue::resume.
11467 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11468 resume>: Declare new methods.
11469 * nat/windows-nat.c: New file.
11470 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11471
7c7411bc
TT
114722020-04-08 Tom Tromey <tromey@adacore.com>
11473
11474 * windows-nat.c (windows_add_thread, windows_delete_thread)
11475 (windows_nat_target::fetch_registers)
11476 (windows_nat_target::store_registers, fake_create_process)
11477 (windows_nat_target::resume, windows_nat_target::resume)
11478 (get_windows_debug_event, windows_nat_target::wait)
11479 (windows_nat_target::pid_to_str)
11480 (windows_nat_target::get_tib_address)
11481 (windows_nat_target::get_ada_task_ptid)
11482 (windows_nat_target::thread_name)
11483 (windows_nat_target::thread_alive): Use lwp, not tid.
11484
2950fdf7
TT
114852020-04-08 Tom Tromey <tromey@adacore.com>
11486
11487 * windows-nat.c (handle_exception)
11488 (windows_nat_target::thread_name): Update.
11489 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11490 <name>: Now unique_xmalloc_ptr.
11491
62fe396b
TT
114922020-04-08 Tom Tromey <tromey@adacore.com>
11493
11494 * windows-nat.c (thread_rec)
11495 (windows_nat_target::fetch_registers): Update.
11496 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11497 Update comment.
11498 <debug_registers_changed, reload_context>: Now bool.
11499
e9534bd2
TT
115002020-04-08 Tom Tromey <tromey@adacore.com>
11501
11502 * windows-nat.c (windows_add_thread): Use new.
11503 (windows_init_thread_list, windows_delete_thread): Use delete.
11504 (get_windows_debug_event): Update.
11505 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11506 destructor, and initializers.
11507
ae1f8880
TT
115082020-04-08 Tom Tromey <tromey@adacore.com>
11509
11510 * windows-nat.c (struct windows_thread_info): Remove.
11511 * nat/windows-nat.h: New file.
11512
55a1e039
TT
115132020-04-08 Tom Tromey <tromey@adacore.com>
11514
11515 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11516 (thread_rec, windows_add_thread, windows_delete_thread)
11517 (windows_continue): Update.
11518
93366324
TT
115192020-04-08 Tom Tromey <tromey@adacore.com>
11520
11521 * windows-nat.c (struct windows_thread_info): Remove typedef.
11522 (thread_head): Remove.
11523 (thread_list): New global.
11524 (thread_rec, windows_add_thread, windows_init_thread_list)
11525 (windows_delete_thread, windows_continue): Update.
11526
0f2265e2
SM
115272020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11528
11529 * windows-tdep.h (windows_init_abi): Add comment.
11530 (cygwin_init_abi): New declaration.
11531 * windows-tdep.c: Split signal enumeration in two, one for
11532 Windows and one for Cygwin.
11533 (windows_gdb_signal_to_target): Only deal with signal of the
11534 Windows OS ABI.
11535 (cygwin_gdb_signal_to_target): New function.
11536 (windows_init_abi): Rename to windows_init_abi_common, don't set
11537 gdb_signal_to_target gdbarch method. Add new new function with
11538 this name.
11539 (cygwin_init_abi): New function.
11540 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11541 comment. Don't call windows_init_abi.
11542 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11543 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11544 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11545 i386_windows_init_abi_common, don't call windows_init_abi. Add
11546 a new function of this name.
11547 (i386_cygwin_init_abi): New function.
11548 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11549 OS ABI Cygwin.
11550
3810f182
SM
115512020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11552
11553 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11554 parameter.c.
11555 (dwarf2_read_gdb_index): Update.
11556
063f8e80
KR
115572020-04-07 Kamil Rytarowski <n54@gmx.com>
11558
11559 * nbsd-tdep.c: Include "objfiles.h".
11560 (nbsd_skip_solib_resolver): New.
11561 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11562
85a9510c 115632020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11564
11565 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11566 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11567 with DW_LLE_base_addressx are being emitted in DWARFv5.
11568 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11569 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11570 unsigned integer.
11571
9fc3eaae 115722020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11573
11574 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11575 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11576 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11577 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11578 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11579 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11580 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11581
11582
41144253 115832020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11584
11585 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11586 (read_loclist_index): New function definition.
11587 (lookup_loclist_base): New function definition.
11588 (read_loclist_header): New function definition.
11589 (dwarf2_cu): Add loclist_base and loclist_header field.
11590 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11591 (read_full_die_1): Read the value of DW_AT_loclists_base.
11592 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11593 (read_attribute_value): Handle DW_FORM_loclistx.
11594 (skip_one_die): Handle DW_FORM_loclistx.
11595 (loclist_header): New structure declaration.
11596 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11597
9f4e76a4
SM
115982020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11599
11600 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11601 constructor. Remove `addr` parameter from other constructor and
11602 add `per_cu` parameter.
11603 * dwarf2/read.c (create_partial_symtab): Update.
11604
25c11aca
TV
116052020-04-07 Tom de Vries <tdevries@suse.de>
11606
11607 PR symtab/25796
11608 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11609 (partial_die_info::fixup): Inherit has_const_value.
11610
5707e24b
TV
116112020-04-07 Tom de Vries <tdevries@suse.de>
11612
11613 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11614 symbols without address.
11615
05f00e22
KR
116162020-04-06 Kamil Rytarowski <n54@gmx.com>
11617
11618 * nbsd-nat.h (struct thread_info): Add forward declaration.
11619 (nbsd_nat_target::thread_alive): Add.
11620 (nbsd_nat_target::thread_name): Likewise.
11621 (nbsd_nat_target::update_thread_list): Likewise.
11622 (update_thread_list::post_attach): Likewise.
11623 (post_attach::pid_to_str): Likewise.
11624 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11625 (nbsd_thread_lister): Add.
11626 (nbsd_nat_target::thread_alive): Likewise.
11627 (nbsd_nat_target::thread_name): Likewise.
11628 (nbsd_add_threads): Likewise.
11629 (update_thread_list::post_attach): Likewise.
11630 (nbsd_nat_target::update_thread_list): Likewise.
11631 (post_attach::pid_to_str): Likewise.
11632
6ee448cc
TT
116332020-04-06 Tom Tromey <tromey@adacore.com>
11634
11635 * ada-valprint.c (print_variant_part): Extract the variant field.
11636 (print_field_values): Use the field as the outer value when
11637 recursing.
11638
dea34e8c
TT
116392020-04-06 Tom Tromey <tromey@adacore.com>
11640
11641 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11642 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11643 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11644 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11645 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11646
93689ce9
TT
116472020-04-06 Tom Tromey <tromey@adacore.com>
11648
11649 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11650 TYPE_CODE_ERROR.
11651
79743962
KR
116522020-04-06 Kamil Rytarowski <n54@gmx.com>
11653
11654 * nbsd-tdep.c: Include "gdbarch.h".
11655 Define enum with NetBSD signal numbers.
11656 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11657 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11658 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11659 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11660 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11661 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11662 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11663 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11664 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11665 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11666 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11667 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11668
9e7c9a03
HD
116692020-04-03 Hannes Domani <ssbssa@yahoo.de>
11670
11671 PR gdb/25325
11672 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11673
d9e49b61
TT
116742020-04-03 Tom Tromey <tromey@adacore.com>
11675
11676 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11677 Read constant block.
11678
e0fc5c3f
SM
116792020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11680
11681 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11682 (gdb_bfd_get_full_section_contents): New declaration.
11683 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11684 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11685 gdb_bfd_get_full_section_contents.
11686
e2ff18a0
SM
116872020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11688
11689 * exec.c (build_section_table): Replace internal_error with
11690 gdb_assert.
11691 (section_table_xfer_memory_partial): Likewise.
11692 * mdebugread.c (parse_partial_symbols): Likewise.
11693 * psymtab.c (lookup_partial_symbol): Likewise.
11694 * utils.c (wrap_here): Likewise.
11695
0830d301
TT
116962020-04-02 Tom Tromey <tromey@adacore.com>
11697
11698 * f-lang.c (build_fortran_types): Use arch_type to initialize
11699 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11700
e7da7f8f
TT
117012020-04-02 Tom Tromey <tromey@adacore.com>
11702
11703 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11704 of attributes.
11705
c90d28ac
AB
117062020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11707 Bernd Edlinger <bernd.edlinger@hotmail.de>
11708 Tom Tromey <tromey@adacore.com>
11709
11710 * buildsym.c (buildsym_compunit::record_line): Remove
11711 deduplication code.
11712
1aa98955
TV
117132020-04-02 Tom de Vries <tdevries@suse.de>
11714
11715 PR ada/24671
11716 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11717
d3214198
TV
117182020-04-02 Tom de Vries <tdevries@suse.de>
11719
11720 * dwarf2/read.c (dwarf2_gdb_index_functions,
11721 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11722 NULL.
11723 * psymtab.c (psym_lookup_global_symbol_language): New function.
11724 (psym_functions): Init psym_lookup_global_symbol_language with
11725 psym_lookup_global_symbol_language.
11726 * symfile-debug.c (debug_sym_quick_functions): Init
11727 lookup_global_symbol_language with NULL.
11728 * symfile.c (set_initial_language): Remove fixme comment.
11729 * symfile.h (struct quick_symbol_functions): Add
11730 lookup_global_symbol_language.
11731 * symtab.c (find_quick_global_symbol_language): New function.
11732 (find_main_name): Use find_quick_global_symbol_language.
11733
2836752f
SM
117342020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11735
11736 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11737
64dc2d4b
BE
117382020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11739
11740 * buildsym.c (record_line): Fix undefined behavior and preserve
11741 lines at eof.
11742
bbe3dc41
BE
117432020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11744
11745 * buildsym.c (record_line): Fix the resizing condition.
11746
6b4a335b
TT
117472020-04-01 Tom Tromey <tom@tromey.com>
11748
11749 * value.h (value_literal_complex): Add comment.
11750 * valops.c (value_literal_complex): Refer to value.h.
11751
3638a098
TT
117522020-04-01 Tom Tromey <tom@tromey.com>
11753
11754 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11755 (scalar_type): New rule, from typebase.
11756 (typebase): Use scalar_type. Recognize complex types.
11757 (field_name): Handle FLOAT_KEYWORD.
11758 (ident_tokens): Add _Complex and __complex__.
11759
c34e8714
TT
117602020-04-01 Tom Tromey <tom@tromey.com>
11761
11762 PR exp/25299:
11763 * valarith.c (promotion_type, complex_binop): New functions.
11764 (scalar_binop): Handle complex numbers. Use promotion_type.
11765 (value_pos, value_neg, value_complement): Handle complex numbers.
11766
fa649bb7
TT
117672020-04-01 Tom Tromey <tom@tromey.com>
11768
11769 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11770 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11771 (parse_number): Handle complex numbers.
11772
981c08ce
TT
117732020-04-01 Tom Tromey <tom@tromey.com>
11774
11775 * c-valprint.c (c_decorations): Change complex suffix to "i".
11776
4c99290d
TT
117772020-04-01 Tom Tromey <tom@tromey.com>
11778
11779 * valprint.c (generic_value_print_complex): Use accessors.
11780 * value.h (value_real_part, value_imaginary_part): Declare.
11781 * valops.c (value_real_part, value_imaginary_part): New
11782 functions.
11783 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11784
5b930b45
TT
117852020-04-01 Tom Tromey <tom@tromey.com>
11786
11787 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11788 (read_range_type): Update.
11789 * mdebugread.c (basic_type): Update.
11790 * go-lang.c (build_go_types): Use init_complex_type.
11791 * gdbtypes.h (struct main_type) <complex_type>: New member.
11792 (init_complex_type): Update.
11793 (arch_complex_type): Don't declare.
11794 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11795 Make name if none given. Use alloc_type_copy. Look for cached
11796 complex type.
11797 (arch_complex_type): Remove.
11798 (gdbtypes_post_init): Use init_complex_type.
11799 * f-lang.c (build_fortran_types): Use init_complex_type.
11800 * dwarf2/read.c (read_base_type): Update.
11801 * d-lang.c (build_d_types): Use init_complex_type.
11802 * ctfread.c (read_base_type): Update.
11803
53cccef1
TBA
118042020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11805
11806 * infrun.c (stop_all_threads): Update assertion, plus when
11807 stopping threads, take into account that we might be trying
11808 to stop an all-stop target.
11809 (stop_waiting): Call 'stop_all_threads' if there exists a
11810 non-stop target.
11811
a0714d30
TBA
118122020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11813
11814 * target.h (exists_non_stop_target): New function declaration.
11815 * target.c (exists_non_stop_target): New function.
11816
60e22c1e
HD
118172020-04-01 Hannes Domani <ssbssa@yahoo.de>
11818
11819 PR gdb/24789
11820 * eval.c (is_integral_or_integral_reference): New function.
11821 (evaluate_subexp_standard): Allow integer references in
11822 pointer arithmetic.
11823
e139a727
TBA
118242020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11825
11826 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11827 check for no ptid in the stop reply when the target is non-stop.
11828
e0802d59
TT
118292020-04-01 Tom Tromey <tromey@adacore.com>
11830
11831 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11832 "name" parameter to rvalue reference. Initialize m_name_holder.
11833 <lookup_name_info>: New overloads.
11834 <name>: Return gdb::string_view.
11835 <c_str>: New method.
11836 <make_ignore_params>: Update.
11837 <search_name_hash>: Update.
11838 <language_lookup_name>: Return const char *.
11839 <m_name>: Change type.
11840 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11841 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11842 (lookup_name_info::match_any): Update.
11843 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11844 Update.
11845 * minsyms.c (linkage_name_str): Update.
11846 * language.c (default_symbol_name_matcher): Update.
11847 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11848 Update.
11849 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11850 (ada_lookup_name_info::ada_lookup_name_info): Update.
11851 (literal_symbol_name_matcher): Update.
11852
8c072cb6
TT
118532020-04-01 Tom Tromey <tromey@adacore.com>
11854
11855 * psymtab.c (psymtab_search_name): Remove function.
11856 (psym_lookup_symbol): Create search name and lookup name here.
11857 (lookup_partial_symbol): Remove "name" parameter; add
11858 lookup_name.
11859 (psym_expand_symtabs_for_function): Update.
11860
6f29a534
TT
118612020-03-31 Joel Jones <joelkevinjones@gmail.com>
11862
11863 PR tui/25597:
11864 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11865
af62665e
TT
118662020-03-31 Tom Tromey <tromey@adacore.com>
11867
11868 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11869 memcpy.
11870
d1a89da5
NC
118712020-03-30 Nelson Chu <nelson.chu@sifive.com>
11872
11873 * features/riscv/32bit-csr.xml: Regenerated.
11874 * features/riscv/64bit-csr.xml: Regenerated.
11875
d8af9068
TT
118762020-03-30 Tom Tromey <tromey@adacore.com>
11877
11878 * ada-valprint.c (print_variant_part): Update.
11879 * ada-lang.h (ada_which_variant_applies): Update.
11880 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11881 outer_valaddr parameters; replace with "outer" value parameter.
11882 (to_fixed_variant_branch_type): Update.
11883
227c0bf4
PFC
118842020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11885
11886 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11887 <list>. Remove inclusion of observable.h.
11888 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11889 (struct arch_lwp_info): New struct.
11890 (class ppc_linux_dreg_interface): New class.
11891 (struct ppc_linux_process_info): New struct.
11892 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11893 <low_new_clone, low_forget_process, low_prepare_to_resume>
11894 <copy_thread_dreg_state, mark_thread_stale>
11895 <mark_debug_registers_changed, register_hw_breakpoint>
11896 <clear_hw_breakpoint, register_wp, clear_wp>
11897 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11898 <num_memory_accesses, get_trigger_type>
11899 <create_watchpoint_request, hwdebug_point_cmp>
11900 <init_arch_lwp_info, get_arch_lwp_info>
11901 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11902 methods.
11903 <struct ptid_hash>: New inner struct.
11904 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11905 members.
11906 (saved_dabr_value, hwdebug_info, max_slots_number)
11907 (struct hw_break_tuple, struct thread_points, ppc_threads)
11908 (have_ptrace_hwdebug_interface)
11909 (hwdebug_find_thread_points_by_tid)
11910 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11911 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11912 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11913 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11914 use m_dreg_interface.
11915 (hwdebug_point_cmp): Change to...
11916 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11917 reference arguments instead of pointers.
11918 (ppc_linux_nat_target::ranged_break_num_registers): Use
11919 m_dreg_interface.
11920 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11921 m_dreg_interface. Call register_hw_breakpoint.
11922 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11923 m_dreg_interface. Call clear_hw_breakpoint.
11924 (get_trigger_type): Change to...
11925 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11926 comment.
11927 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11928 use m_dreg_interface. Call register_hw_breakpoint.
11929 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11930 use m_dreg_interface. Call clear_hw_breakpoint.
11931 (can_use_watchpoint_cond_accel): Change to...
11932 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11933 method. Update comment, use m_dreg_interface and
11934 m_process_info.
11935 (calculate_dvc): Change to...
11936 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11937 m_dreg_interface.
11938 (num_memory_accesses): Change to...
11939 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11940 (check_condition): Change to...
11941 (ppc_linux_nat_target::check_condition): ...this method.
11942 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11943 comment, use m_dreg_interface.
11944 (create_watchpoint_request): Change to...
11945 (ppc_linux_nat_target::create_watchpoint_request): ...this
11946 method. Use m_dreg_interface.
11947 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11948 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11949 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11950 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11951 (ppc_linux_nat_target::low_forget_process)
11952 (ppc_linux_nat_target::low_new_fork)
11953 (ppc_linux_nat_target::low_new_clone)
11954 (ppc_linux_nat_target::low_delete_thread)
11955 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11956 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11957 only call mark_thread_stale.
11958 (ppc_linux_thread_exit): Remove.
11959 (ppc_linux_nat_target::stopped_data_address): Change to...
11960 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11961 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11962 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11963 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11964 comment. Call low_stopped_data_address.
11965 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11966 m_dreg_interface.
11967 (ppc_linux_nat_target::masked_watch_num_registers): Use
11968 m_dreg_interface.
11969 (ppc_linux_nat_target::copy_thread_dreg_state)
11970 (ppc_linux_nat_target::mark_thread_stale)
11971 (ppc_linux_nat_target::mark_debug_registers_changed)
11972 (ppc_linux_nat_target::register_hw_breakpoint)
11973 (ppc_linux_nat_target::clear_hw_breakpoint)
11974 (ppc_linux_nat_target::register_wp)
11975 (ppc_linux_nat_target::clear_wp)
11976 (ppc_linux_nat_target::init_arch_lwp_info)
11977 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11978 (_initialize_ppc_linux_nat): Remove observer callback.
11979
4db10d8f
PFC
119802020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11981
11982 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11983 (ppc_linux_nat_target::auxv_parse)
11984 (ppc_linux_nat_target::read_description)
11985 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11986 Move up.
11987
1310c1b0
PFC
119882020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11989
11990 * linux-nat.h (low_new_clone): New method.
11991 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11992
69b037c3
SM
119932020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11994
11995 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11996 (dbx_expand_psymtab): ... this.
11997 (start_psymtab): Update.
11998 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11999 (mdebug_expand_psymtab): ... this.
12000 (parse_partial_symbols): Update.
12001 (new_psymtab): Update.
12002 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12003 (xcoff_expand_psymtab): ... this.
12004 (xcoff_start_psymtab): Update.
12005
48993951
SM
120062020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12007
12008 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12009 <expand_dependencies>: ... this.
12010 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12011 (partial_symtab::expand_dependencies): ... this.
12012 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12013 Update.
12014 (dwarf2_psymtab::expand_psymtab): Update.
12015 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12016 * mdebugread.c (psymtab_to_symtab_1): Update.
12017 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12018
3ad83046
SM
120192020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12020
12021 * psympriv.h (discard_psymtab): Remove.
12022 * dbxread.c (dbx_end_psymtab): Update.
12023 * xcoffread.c (xcoff_end_psymtab): Update.
12024
4d1b9ab6
TT
120252020-03-28 Tom Tromey <tom@tromey.com>
12026
12027 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12028 comment.
12029
f1749218
TT
120302020-03-28 Tom Tromey <tom@tromey.com>
12031
12032 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12033
ebea7626
HD
120342020-03-27 Hannes Domani <ssbssa@yahoo.de>
12035
12036 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12037
a879b4d5
JB
120382020-03-26 John Baldwin <jhb@FreeBSD.org>
12039
12040 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12041
0826b30a
TT
120422020-03-26 Tom Tromey <tom@tromey.com>
12043
12044 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12045 (mark_common_block_symbol_computed, read_tag_string_type)
12046 (attr_to_dynamic_prop, read_subrange_type): Update.
12047 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12048 to be methods on struct attribute.
12049 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12050 (read_call_site_scope, partial_die_info::read)
12051 (partial_die_info::read, lookup_die_type, follow_die_ref):
12052 Update.
12053 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12054 from dwarf2_get_ref_die_offset.
12055 (attribute::constant_value): New method, from
12056 dwarf2_get_attr_constant_value.
12057 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12058 Declare method.
12059 <constant_value>: New method.
12060
2b2558bf
TT
120612020-03-26 Tom Tromey <tom@tromey.com>
12062
12063 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12064 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12065 (dwarf_type_encoding_name): Move to stringify.c.
12066 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12067 * dwarf2/stringify.c: New file.
12068 * dwarf2/stringify.h: New file.
12069
eeb64781
TT
120702020-03-26 Tom Tromey <tom@tromey.com>
12071
12072 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12073 Rewrite.
12074
a39fdb41
TT
120752020-03-26 Tom Tromey <tom@tromey.com>
12076
12077 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12078 methods.
12079 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12080 (lookup_ranges_base): Likewise.
12081 (read_cutu_die_from_dwo, read_full_die_1): Update.
12082
436c571c
TT
120832020-03-26 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2/read.c (read_import_statement, read_file_scope)
12086 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12087 (read_lexical_block_scope, read_call_site_scope)
12088 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12089 (handle_struct_member_die, process_structure_scope)
12090 (update_enumeration_type_from_children)
12091 (process_enumeration_scope, read_array_type, read_common_block)
12092 (read_namespace, read_module, read_subroutine_type): Update.
12093 (sibling_die): Remove.
12094
052c8bb8
TT
120952020-03-26 Tom Tromey <tom@tromey.com>
12096
12097 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12098 (build_type_psymtabs_reader, read_structure_type)
12099 (read_enumeration_type, read_full_die_1): Update.
12100 (dwarf2_attr_no_follow): Move to die.h.
12101 * dwarf2/die.h (struct die_info) <attr>: New method.
12102
2b24b6e4
TT
121032020-03-26 Tom Tromey <tom@tromey.com>
12104
12105 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12106 <base_address>: Now an optional.
12107 (dwarf2_find_base_address, dwarf2_rnglists_process)
12108 (dwarf2_ranges_process, fill_in_loclist_baton)
12109 (dwarf2_symbol_mark_computed): Update.
12110
c2d50fd0
TT
121112020-03-26 Tom Tromey <tom@tromey.com>
12112
12113 * dwarf2/read.c (struct die_info): Move to die.h.
12114 * dwarf2/die.h: New file.
12115
0df7ad3a
TT
121162020-03-26 Tom Tromey <tom@tromey.com>
12117
12118 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12119 * dwarf2/read.c
12120 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12121 Move to line-header.c.
12122 (read_checked_initial_length_and_offset, read_formatted_entries):
12123 Likewise.
12124 (dwarf_decode_line_header): Split into two.
12125 * dwarf2/line-header.c
12126 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12127 Move from read.c.
12128 (read_checked_initial_length_and_offset, read_formatted_entries):
12129 Likewise.
12130 (dwarf_decode_line_header): New function, split from read.c.
12131
86c0bb4c
TT
121322020-03-26 Tom Tromey <tom@tromey.com>
12133
12134 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12135 Declare method.
12136 * dwarf2/read.c (read_attribute_value): Update.
12137 (dwarf2_per_objfile::read_line_string): Rename from
12138 read_indirect_line_string.
12139 (read_formatted_entries): Update.
12140
2ef46c2f
TT
121412020-03-26 Tom Tromey <tom@tromey.com>
12142
12143 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12144 variable.
12145
4f9c1eda
TT
121462020-03-26 Tom Tromey <tom@tromey.com>
12147
12148 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12149 const.
12150 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12151 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12152 parameter const.
12153
5a0e026f
TT
121542020-03-26 Tom Tromey <tom@tromey.com>
12155
12156 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12157 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12158 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12159 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12160
8844c11b
TT
121612020-03-26 Tom Tromey <tom@tromey.com>
12162
12163 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12164 file_names_size, file_full_name, file_file_name>: Use const.
12165 <file_name_at, file_names>: Add const overload.
12166 * dwarf2/line-header.c (line_header::file_file_name)
12167 (line_header::file_full_name): Update.
12168
c90ec28a
TT
121692020-03-26 Tom Tromey <tom@tromey.com>
12170
12171 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12172 (macro_start_file, consume_improper_spaces)
12173 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12174 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12175 (dwarf_decode_macros): Move to macro.c.
12176 * dwarf2/macro.c: New file.
12177 * dwarf2/macro.h: New file.
12178 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12179
4f44ae6c
TT
121802020-03-26 Tom Tromey <tom@tromey.com>
12181
12182 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12183 method.
12184 * dwarf2/section.c: New method. From
12185 read_indirect_string_at_offset_from.
12186 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12187 (read_indirect_string_at_offset_from): Move to section.c.
12188 (read_indirect_string_at_offset): Rewrite.
12189 (read_indirect_line_string_at_offset): Remove.
12190 (read_indirect_string, read_indirect_line_string)
12191 (dwarf_decode_macro_bytes): Update.
12192
a0194fa8
TT
121932020-03-26 Tom Tromey <tom@tromey.com>
12194
12195 * dwarf2/section.h (struct dwarf2_section_info)
12196 <overload_complaint>: Declare.
12197 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12198 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12199 Rename from dwarf2_section_buffer_overflow_complaint.
12200 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12201 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12202
3d27bbdb
TT
122032020-03-26 Tom Tromey <tom@tromey.com>
12204
12205 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12206 Declare.
12207 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12208 Move from read.c.
12209 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12210 to section.c.
12211
9eac9650
TT
122122020-03-26 Tom Tromey <tom@tromey.com>
12213
12214 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12215
bf80d710
TT
122162020-03-26 Tom Tromey <tom@tromey.com>
12217
12218 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12219 "builder".
12220 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12221 parameter.
12222 (dwarf_decode_macros): Update.
12223
0314b390
TT
122242020-03-26 Tom Tromey <tom@tromey.com>
12225
12226 * dwarf2/read.c (read_attribute_value): Update.
12227 (read_indirect_string_from_dwz): Move to dwz.c; change into
12228 method.
12229 (dwarf_decode_macro_bytes): Update.
12230 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12231 * dwarf2/dwz.c: New file.
12232 * Makefile.in (COMMON_SFILES): Add dwz.c.
12233
9fda78b6
TT
122342020-03-26 Tom Tromey <tom@tromey.com>
12235
12236 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12237 * dwarf2/read.c: Add include.
12238 * dwarf2/index-write.c: Add include.
12239 * dwarf2/index-cache.c: Add include.
12240 * dwarf2/dwz.h: New file.
12241
33aa3c10
TT
122422020-03-25 Tom Tromey <tom@tromey.com>
12243
12244 * compile/compile-object-load.c (get_out_value_type): Mention
12245 correct symbol name in error message.
12246
d503b685
HD
122472020-03-25 Hannes Domani <ssbssa@yahoo.de>
12248
12249 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12250
7b1eff95
TV
122512020-03-25 Tom de Vries <tdevries@suse.de>
12252
12253 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12254 * symmisc.c (dump_symtab_1): Print user and includes fields.
12255 (maintenance_info_symtabs): Same.
12256
dd895392
AB
122572020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12258
12259 PR gdb/25534
12260 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12261 (riscv_regcache_cooked_write): New function.
12262 (riscv_push_dummy_call): Use new function.
12263 (riscv_return_value): Likewise.
12264
5ab2fbf1
SM
122652020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12266
12267 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12268 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12269 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12270 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12271 * infrun.c (follow_fork): Likewise.
12272 (follow_fork_inferior): Likewise.
12273 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12274 * linux-nat.h (class linux_nat_target): Likewise.
12275 * remote.c (class remote_target) <follow_fork>: Likewise.
12276 (remote_target::follow_fork): Likewise.
12277 * target-delegates.c: Re-generate.
12278 * target.c (default_follow_fork): Likewise.
12279 (target_follow_fork): Likewise.
12280 * target.h (struct target_ops) <follow_fork>: Likewise.
12281 (target_follow_fork): Likewise.
12282
a64fafb5
TV
122832020-03-24 Tom de Vries <tdevries@suse.de>
12284
12285 * psymtab.c (maintenance_info_psymtabs): Print user field.
12286
fe26d3a3
TT
122872020-03-20 Tom Tromey <tromey@adacore.com>
12288
12289 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12290 const.
12291 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12292 const.
12293
c884cc46
SM
122942020-03-20 Simon Marchi <simon.marchi@efficios.com>
12295
12296 * ptrace.m4: Don't check for ptrace declaration.
12297 * config.in: Re-generate.
12298 * configure: Re-generate.
12299 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12300 not defined.
12301
1ff700c2
KR
123022020-03-20 Kamil Rytarowski <n54@gmx.com>
12303
12304 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12305 `PTRACE_TYPE_RET'.
12306 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12307 * sparc-nat.c (gdb_ptrace): Likewise.
12308 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12309
f7d4f0b1
TT
123102020-03-20 Tom Tromey <tromey@adacore.com>
12311
12312 * c-exp.y (lex_one_token): Fix assert.
12313
f67210ff
TT
123142020-03-20 Tom Tromey <tromey@adacore.com>
12315
12316 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12317 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12318 strncpy call.
12319
1773be9e
TT
123202020-03-20 Tom Tromey <tromey@adacore.com>
12321
12322 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12323
70304be9
TT
123242020-03-20 Tom Tromey <tromey@adacore.com>
12325
12326 * ada-valprint.c (print_variant_part): Remove parameters; switch
12327 to value-based API.
12328 (print_field_values): Likewise.
12329 (ada_val_print_struct_union): Likewise.
12330 (ada_value_print_1): Update.
12331
9faa006d
KR
123322020-03-20 Kamil Rytarowski <n54@gmx.com>
12333
12334 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12335 nbsd_nat_target instead of inf_ptrace_target.
12336 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12337 nbsd_nat_target.
12338
4a90f062
KR
123392020-03-20 Kamil Rytarowski <n54@gmx.com>
12340
12341 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12342 it to the ptrace call.
12343 * (store_registers): Likewise.
12344
123452020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12346
12347 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12348 it to the ptrace call.
12349 * (store_registers): Likewise.
12350
2d07da27
LM
123512020-03-19 Luis Machado <luis.machado@linaro.org>
12352
12353 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12354 valid, fetch vg value from ptrace.
12355
f09db380
KR
123562020-03-19 Kamil Rytarowski <n54@gmx.com>
12357 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12358 * inf-ptrace.c: Likewise.
12359 * (gdb_ptrace): Add.
12360 * (inf_ptrace_target::resume): Update.
12361 * (inf_ptrace_target::xfer_partial): Likewise.
12362 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12363 * (inf_ptrace_peek_poke): Update.
12364
fcc7376e
KR
123652020-03-19 Kamil Rytarowski <n54@gmx.com>
12366
12367 * x86-bsd-nat.c (gdb_ptrace): New.
12368 * (x86bsd_dr_set): Add new argument `ptid'.
12369 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12370 x86bsd_dr_set_addr): Update.
12371
cada5fc9
AB
123722020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12373
12374 * remote.c (remote_target::process_stop_reply): Handle events for
12375 all threads differently.
12376
19a2740f
AB
123772020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12378
12379 * completer.c (completion_tracker::remove_completion): Define new
12380 function.
12381 * completer.h (completion_tracker::remove_completion): Declare new
12382 function.
12383 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12384 when adding a C++ function symbol.
12385
724fd9ba
AB
123862020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12387
12388 * completer.c (completion_tracker::completion_hash_entry): Define
12389 new class.
12390 (advance_to_filename_complete_word_point): Call
12391 recompute_lowest_common_denominator.
12392 (completion_tracker::completion_tracker): Call discard_completions
12393 to setup the hash table.
12394 (completion_tracker::discard_completions): Allow for being called
12395 from the constructor, pass new equal function, and element deleter
12396 when constructing the hash table. Initialise new class member
12397 variables.
12398 (completion_tracker::maybe_add_completion): Remove use of
12399 m_entries_vec, and store more information into m_entries_hash.
12400 (completion_tracker::recompute_lcd_visitor): New function, most
12401 content taken from...
12402 (completion_tracker::recompute_lowest_common_denominator):
12403 ...here, this now just visits each item in the hash calling the
12404 above visitor.
12405 (completion_tracker::build_completion_result): Remove use of
12406 m_entries_vec, call recompute_lowest_common_denominator.
12407 * completer.h (completion_tracker::have_completions): Remove use
12408 of m_entries_vec.
12409 (completion_tracker::completion_hash_entry): Declare new class.
12410 (completion_tracker::recompute_lowest_common_denominator): Change
12411 function signature.
12412 (completion_tracker::recompute_lcd_visitor): Declare new function.
12413 (completion_tracker::m_entries_vec): Delete.
12414 (completion_tracker::m_entries_hash): Initialize to NULL.
12415 (completion_tracker::m_lowest_common_denominator_valid): New
12416 member variable.
12417 (completion_tracker::m_lowest_common_denominator_max_length): New
12418 member variable.
12419
5a82b8a1
KR
124202020-03-17 Kamil Rytarowski <n54@gmx.com>
12421
12422 * regformats/regdef.h: Put reg in gdb namespace.
12423
fb516a69
KR
124242020-03-17 Kamil Rytarowski <n54@gmx.com>
12425
12426 * i386-bsd-nat.c (gdb_ptrace): New.
12427 * (i386bsd_fetch_inferior_registers,
12428 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12429 * (i386bsd_fetch_inferior_registers,
12430 i386bsd_store_inferior_registers) Use gdb_ptrace.
12431
1c0aa1fb
KR
124322020-03-17 Kamil Rytarowski <n54@gmx.com>
12433
12434 * amd64-bsd-nat.c (gdb_ptrace): New.
12435 * (amd64bsd_fetch_inferior_registers,
12436 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12437 * (amd64bsd_fetch_inferior_registers,
12438 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12439
5ccd2fb7
KR
124402020-03-17 Kamil Rytarowski <n54@gmx.com>
12441
12442 * user-regs.c (user_reg::read): Rename to...
12443 (user_reg::xread): ...this.
12444 * (append_user_reg): Rename argument `read' to `xread'.
12445 * (user_reg_add_builtin): Likewise.
12446 * (user_reg_add): Likewise.
12447 * (value_of_user_reg): Likewise.
12448
2108a63a
KR
124492020-03-17 Kamil Rytarowski <n54@gmx.com>
12450
12451 * sparc-nat.c (gdb_ptrace): New.
12452 * sparc-nat.c (sparc_fetch_inferior_registers)
12453 (sparc_store_inferior_registers) Remove obsolete comment.
12454 * sparc-nat.c (sparc_fetch_inferior_registers)
12455 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12456 * sparc-nat.c (sparc_fetch_inferior_registers)
12457 (sparc_store_inferior_registers) Use gdb_ptrace.
12458
a225c9a8
KR
124592020-03-17 Kamil Rytarowski <n54@gmx.com>
12460
12461 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12462 it to the ptrace call.
12463 * sh-nbsd-nat.c (store_registers): Likewise.
12464
98097623
KR
124652020-03-17 Kamil Rytarowski <n54@gmx.com>
12466
12467 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12468 nbsd_nat_target instead of inf_ptrace_target.
12469 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12470 nbsd_nat_target.
12471
9e38d619
KR
124722020-03-17 Kamil Rytarowski <n54@gmx.com>
12473
12474 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12475
a2ecbe9f
KR
124762020-03-17 Kamil Rytarowski <n54@gmx.com>
12477
12478 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12479 <sys/sysctl.h>.
12480 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12481
58990295
TV
124822020-03-17 Tom de Vries <tdevries@suse.de>
12483
12484 PR gdb/23710
12485 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12486 fields.
12487 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12488 fields.
12489 (process_imported_unit_die): Skip import of c++ CUs.
12490
771dd3a8
TT
124912020-03-16 Tom Tromey <tom@tromey.com>
12492
12493 * p-valprint.c (pascal_object_print_value): Initialize
12494 base_value.
12495
817a7585
AK
124962020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12497 Shahab Vahedi <shahab@synopsys.com>
12498
12499 * Makefile.in: Add arch/arc.o
12500 * configure.tgt: Likewise.
12501 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12502 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12503 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12504 * arc-tdep.h (arc_read_description): Add proto type.
12505 * arch/arc.c: New file.
12506 * arch/arc.h: Likewise.
12507 * features/Makefile: Replace old target descriptions with new.
12508 * features/arc-arcompact.c: Remove.
12509 * features/arc-arcompact.xml: Likewise.
12510 * features/arc-v2.c: Likewise
12511 * features/arc-v2.xml: Likewise
12512 * features/arc/aux-arcompact.xml: New file.
12513 * features/arc/aux-v2.xml: Likewise.
12514 * features/arc/core-arcompact.xml: Likewise.
12515 * features/arc/core-v2.xml: Likewise.
12516 * features/arc/aux-arcompact.c: Generate.
12517 * features/arc/aux-v2.c: Likewise.
12518 * features/arc/core-arcompact.c: Likewise.
12519 * features/arc/core-v2.c: Likewise.
12520 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12521
67430cd0
TT
125222020-03-16 Tom Tromey <tromey@adacore.com>
12523
12524 PR gdb/25663:
12525 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12526 putting value into bcache.
12527
30efb6c7
SM
125282020-03-16 Simon Marchi <simon.marchi@efficios.com>
12529
12530 PR gdb/21500
12531 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12532 to...
12533 (amd64_windows_init_abi_common): ... this. Don't set size of
12534 long type.
12535 (amd64_windows_init_abi): New function.
12536 (amd64_cygwin_init_abi): New function.
12537 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12538 the Cygwin OS ABI.
12539 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12540 comment.
12541
8db52437
SM
125422020-03-16 Simon Marchi <simon.marchi@efficios.com>
12543
12544 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12545 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12546 (pe_import_directory_entry): New struct type.
12547 (is_linked_with_cygwin_dll): New function.
12548 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12549 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12550 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12551
5982a56a
SM
125522020-03-16 Simon Marchi <simon.marchi@efficios.com>
12553
12554 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12555 i386_cygwin_core_osabi_sniffer.
12556
7a1998df
SM
125572020-03-16 Simon Marchi <simon.marchi@efficios.com>
12558
12559 * i386-cygwin-tdep.c: Rename to...
12560 * i386-windows-tdep.c: ... this.
12561 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12562 i386-windows-tdep.c.
12563 * configure.tgt: Likewise.
12564
053205cc
SM
125652020-03-16 Simon Marchi <simon.marchi@efficios.com>
12566
12567 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12568 * osabi.c (gdb_osabi_names): Add "Windows".
12569 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12570 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12571 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12572 i386_cygwin_osabi_sniffer.
12573 (_initialize_i386_cygwin_tdep): Register OS ABI
12574 GDB_OSABI_WINDOWS for i386.
12575 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12576 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12577 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12578 for x86-64.
12579 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12580 when the target matches '*-*-mingw*'.
12581
fe4b2ee6
SM
125822020-03-16 Simon Marchi <simon.marchi@efficios.com>
12583
12584 * defs.h (enum gdb_osabi): Move to...
12585 * osabi.h (enum gdb_osabi): ... here.
12586 * gdbarch.sh: Include osabi.h in gdbarch.h.
12587 * gdbarch.h: Re-generate.
12588
cb9b645d
SM
125892020-03-16 Simon Marchi <simon.marchi@efficios.com>
12590
12591 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12592 function.
12593 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12594
3293bbaf
TT
125952020-03-14 Tom Tromey <tom@tromey.com>
12596
12597 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12598 for C++.
12599 (c_type_print_modifier): Likewise. Add "language" parameter.
12600 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12601 (c_type_print_base_1): Update.
12602 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12603 constants.
12604 * type-stack.c (type_stack::insert): Handle tp_atomic and
12605 tp_restrict.
12606 (type_stack::follow_type_instance_flags): Likewise.
12607 (type_stack::follow_types): Likewise. Merge type-following code.
12608 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12609 (space_identifier, cv_with_space_id)
12610 (const_or_volatile_or_space_identifier_noopt)
12611 (const_or_volatile_or_space_identifier): Remove.
12612 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12613 rules.
12614 (ptr_operator, typebase): Update.
12615 (enum token_flag) <FLAG_C>: New constant.
12616 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12617 "_Atomic".
12618 (lex_one_token): Handle FLAG_C.
12619
154151a6
KR
126202020-03-14 Kamil Rytarowski <n54@gmx.com>
12621
12622 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12623 it to the ptrace call.
12624 * m68k-bsd-nat.c (store_registers): Likewise.
12625
bc107784
KR
126262020-03-14 Kamil Rytarowski <n54@gmx.com>
12627
12628 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12629 gdb_byte *.
12630 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12631 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12632 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12633
01a80117
KR
126342020-03-14 Kamil Rytarowski <n54@gmx.com>
12635
12636 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12637 nbsd_nat_target instead of inf_ptrace_target.
12638 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12639 nbsd_nat_target.
12640
f90280ca
KR
126412020-03-14 Kamil Rytarowski <n54@gmx.com>
12642
12643 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12644 register_t.
12645
6def66f1
KR
126462020-03-14 Kamil Rytarowski <n54@gmx.com>
12647
12648 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12649 it to the ptrace call.
12650 * alpha-bsd-nat.c (store_registers): Likewise.
12651
66eaca97
KR
126522020-03-14 Kamil Rytarowski <n54@gmx.com>
12653
12654 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12655 includes.
12656 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12657 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12658 fill_fpregset): Likewise.
12659
4fed520b
KR
126602020-03-14 Kamil Rytarowski <n54@gmx.com>
12661
12662 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12663 nbsd_nat_target instead of inf_ptrace_target.
12664 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12665 nbsd_nat_target.
12666
2190cf06
KR
126672020-03-14 Kamil Rytarowski <n54@gmx.com>
12668
12669 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12670 register_t.
12671
75c56d3d
KR
126722020-03-14 Kamil Rytarowski <n54@gmx.com>
12673
12674 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12675 it to the ptrace call.
12676 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12677 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12678 * arm-nbsd-nat.c (store_register): Likewise.
12679 * arm-nbsd-nat.c (store_regs): Likewise.
12680 * arm-nbsd-nat.c (store_fp_register): Likewise.
12681 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12682
6018d381
KR
126832020-03-14 Kamil Rytarowski <n54@gmx.com>
12684
12685 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12686 nbsd_nat_target instead of inf_ptrace_target.
12687 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12688 nbsd_nat_target.
12689
013f99f0
KR
126902020-03-14 Kamil Rytarowski <n54@gmx.com>
12691
12692 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12693 it to the ptrace call.
12694 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12695
12753073
KR
126962020-03-14 Kamil Rytarowski <n54@gmx.com>
12697
6227b330
KR
12698 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12699 it to the ptrace call.
12700 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12701
127022020-03-14 Kamil Rytarowski <n54@gmx.com>
12703
12704 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12705 gdb_byte *.
12753073
KR
12706 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12707
d5be5fa4
KR
127082020-03-14 Kamil Rytarowski <n54@gmx.com>
12709
12710 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12711 instead of inf_ptrace_target.
12712 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12713 nbsd_nat_target.
12714
8110f842
KR
127152020-03-14 Kamil Rytarowski <n54@gmx.com>
12716
12717 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12718 register_t.
12719
52feded7
KR
127202020-03-14 Kamil Rytarowski <n54@gmx.com>
12721
12722 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12723 register_t.
12724
25567eee
KR
127252020-03-14 Kamil Rytarowski <n54@gmx.com>
12726
12727 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12728 register_t.
12729
426a9c18
TT
127302020-03-13 Tom Tromey <tom@tromey.com>
12731
12732 * value.h (val_print): Don't declare.
12733 * valprint.h (val_print_array_elements)
12734 (val_print_scalar_formatted, generic_val_print): Don't declare.
12735 * valprint.c (generic_val_print_array): Take a struct value.
12736 (generic_val_print_ptr, generic_val_print_memberptr)
12737 (generic_val_print_bool, generic_val_print_int)
12738 (generic_val_print_char, generic_val_print_complex)
12739 (generic_val_print): Remove.
12740 (generic_value_print): Update.
12741 (do_val_print): Remove unused parameters. Don't call
12742 la_val_print.
12743 (val_print): Remove.
12744 (common_val_print): Update. Don't call value_check_printable.
12745 (val_print_scalar_formatted, val_print_array_elements): Remove.
12746 * rust-lang.c (rust_val_print): Remove.
12747 (rust_language_defn): Update.
12748 * p-valprint.c (pascal_val_print): Remove.
12749 (pascal_value_print_inner): Update.
12750 (pascal_object_print_val_fields, pascal_object_print_val):
12751 Remove.
12752 (pascal_object_print_static_field): Update.
12753 * p-lang.h (pascal_val_print): Don't declare.
12754 * p-lang.c (pascal_language_defn): Update.
12755 * opencl-lang.c (opencl_language_defn): Update.
12756 * objc-lang.c (objc_language_defn): Update.
12757 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12758 * m2-lang.h (m2_val_print): Don't declare.
12759 * m2-lang.c (m2_language_defn): Update.
12760 * language.h (struct language_defn) <la_val_print>: Remove.
12761 * language.c (unk_lang_value_print_inner): Rename. Change
12762 argument types.
12763 (unknown_language_defn, auto_language_defn): Update.
12764 * go-valprint.c (go_val_print): Remove.
12765 * go-lang.h (go_val_print): Don't declare.
12766 * go-lang.c (go_language_defn): Update.
12767 * f-valprint.c (f_val_print): Remove.
12768 * f-lang.h (f_value_print): Don't declare.
12769 * f-lang.c (f_language_defn): Update.
12770 * d-valprint.c (d_val_print): Remove.
12771 * d-lang.h (d_value_print): Don't declare.
12772 * d-lang.c (d_language_defn): Update.
12773 * cp-valprint.c (cp_print_value_fields)
12774 (cp_print_value_fields_rtti, cp_print_value): Remove.
12775 (cp_print_static_field): Update.
12776 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12777 (c_val_print_struct, c_val_print_union, c_val_print_int)
12778 (c_val_print_memberptr, c_val_print): Remove.
12779 * c-lang.h (c_val_print_array, cp_print_value_fields)
12780 (cp_print_value_fields_rtti): Don't declare.
12781 * c-lang.c (c_language_defn, cplus_language_defn)
12782 (asm_language_defn, minimal_language_defn): Update.
12783 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12784 (ada_val_print_enum): Take a struct value.
12785 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12786 (ada_val_print): Remove.
12787 (ada_value_print_1): Update.
12788 (printable_val_type): Remove.
12789 * ada-lang.h (ada_val_print): Don't declare.
12790 * ada-lang.c (ada_language_defn): Update.
12791
42331a1e
TT
127922020-03-13 Tom Tromey <tom@tromey.com>
12793
12794 * valprint.c (do_val_print): Update.
12795 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12796 a struct value.
12797 (value_to_value_object_no_release): Declare.
12798 * python/py-value.c (value_to_value_object_no_release): New
12799 function.
12800 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12801 struct value.
12802 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12803 function.
12804 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12805 a struct value.
12806 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12807 Declare.
12808 (gdbscm_apply_val_pretty_printer): Take a struct value.
12809 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12810 value.
12811 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12812 value.
12813 * extension-priv.h (struct extension_language_ops)
12814 <apply_val_pretty_printer>: Take a struct value.
12815 * cp-valprint.c (cp_print_value): Create a struct value.
12816 (cp_print_value): Update.
12817
3a916a97
TT
128182020-03-13 Tom Tromey <tom@tromey.com>
12819
12820 * ada-valprint.c (print_field_values): Call common_val_print.
12821
b59eac37
TT
128222020-03-13 Tom Tromey <tom@tromey.com>
12823
12824 * ada-valprint.c (val_print_packed_array_elements): Remove
12825 bitoffset and val parameters. Call common_val_print.
12826 (ada_val_print_string): Remove offset, address, and original_value
12827 parameters.
12828 (ada_val_print_array): Update.
12829 (ada_value_print_array): New function.
12830 (ada_value_print_1): Call it.
12831
03371129
TT
128322020-03-13 Tom Tromey <tom@tromey.com>
12833
12834 * ada-valprint.c (ada_value_print): Use common_val_print.
12835
2e088f8b
TT
128362020-03-13 Tom Tromey <tom@tromey.com>
12837
12838 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12839
39ef85a8
TT
128402020-03-13 Tom Tromey <tom@tromey.com>
12841
12842 * ada-valprint.c (ada_value_print_num): New function.
12843 (ada_value_print_1): Use it.
12844
b9fa6e07
TT
128452020-03-13 Tom Tromey <tom@tromey.com>
12846
12847 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12848
416595d6
TT
128492020-03-13 Tom Tromey <tom@tromey.com>
12850
12851 * ada-valprint.c (ada_value_print_ptr): New function.
12852 (ada_value_print_1): Use it.
12853
5b5e15ec
TT
128542020-03-13 Tom Tromey <tom@tromey.com>
12855
12856 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12857 call common_val_print.
12858 (ada_val_print_1): Update.
12859 (ada_value_print_1): New function.
12860 (ada_value_print_inner): Rewrite.
12861
fbf54e75
TT
128622020-03-13 Tom Tromey <tom@tromey.com>
12863
12864 * cp-valprint.c (cp_print_value_fields): Update.
12865 (cp_print_value): New function.
12866
64b653ca
TT
128672020-03-13 Tom Tromey <tom@tromey.com>
12868
12869 * m2-valprint.c (m2_value_print_inner): Use
12870 cp_print_value_fields.
12871 * cp-valprint.c (cp_print_value_fields): New function.
12872 * c-valprint.c (c_value_print_struct): New function.
12873 (c_value_print_inner): Use c_value_print_struct.
12874 * c-lang.h (cp_print_value_fields): Declare.
12875
6999f067
TT
128762020-03-13 Tom Tromey <tom@tromey.com>
12877
12878 * c-valprint.c (c_value_print_array): New function.
12879 (c_value_print_inner): Use it.
12880
ce80b8bd
TT
128812020-03-13 Tom Tromey <tom@tromey.com>
12882
12883 * c-valprint.c (c_value_print_memberptr): New function.
12884 (c_value_print_inner): Use it.
12885
2faac269
TT
128862020-03-13 Tom Tromey <tom@tromey.com>
12887
12888 * c-valprint.c (c_value_print_int): New function.
12889 (c_value_print_inner): Use it.
12890
da3e2c29
TT
128912020-03-13 Tom Tromey <tom@tromey.com>
12892
12893 * c-valprint.c (c_value_print_ptr): New function.
12894 (c_value_print_inner): Use it.
12895
50836231
TT
128962020-03-13 Tom Tromey <tom@tromey.com>
12897
12898 * c-valprint.c (c_value_print_inner): Rewrite.
12899
4f412b6e
TT
129002020-03-13 Tom Tromey <tom@tromey.com>
12901
12902 * valprint.c (generic_value_print_complex): New function.
12903 (generic_value_print): Use it.
12904
f5354008
TT
129052020-03-13 Tom Tromey <tom@tromey.com>
12906
12907 * valprint.c (generic_val_print_float): Don't call
12908 val_print_scalar_formatted.
12909 (generic_val_print, generic_value_print): Update.
12910
3eec3b05
TT
129112020-03-13 Tom Tromey <tom@tromey.com>
12912
12913 * valprint.c (generic_value_print_char): New function
12914 (generic_value_print): Use it.
12915
fdddfccb
TT
129162020-03-13 Tom Tromey <tom@tromey.com>
12917
12918 * valprint.c (generic_value_print_int): New function.
12919 (generic_value_print): Use it.
12920
6dde7521
TT
129212020-03-13 Tom Tromey <tom@tromey.com>
12922
12923 * valprint.c (generic_value_print_bool): New function.
12924 (generic_value_print): Use it.
12925
4112d2e6
TT
129262020-03-13 Tom Tromey <tom@tromey.com>
12927
12928 * valprint.c (generic_val_print_func): Simplify.
12929 (generic_val_print, generic_value_print): Update.
12930
65786af6
TT
129312020-03-13 Tom Tromey <tom@tromey.com>
12932
12933 * valprint.c (generic_val_print_flags): Remove.
12934 (generic_val_print, generic_value_print): Update.
12935 (val_print_type_code_flags): Add original_value parameter.
12936
40f3ce18
TT
129372020-03-13 Tom Tromey <tom@tromey.com>
12938
12939 * valprint.c (generic_val_print): Update.
12940 (generic_value_print): Update.
12941 * valprint.c (generic_val_print_enum): Don't call
12942 val_print_scalar_formatted.
12943
2a5b130b
TT
129442020-03-13 Tom Tromey <tom@tromey.com>
12945
12946 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12947 * valprint.c (generic_value_print_ptr): New function.
12948
abc66ce9
TT
129492020-03-13 Tom Tromey <tom@tromey.com>
12950
12951 * valprint.c (generic_value_print): Rewrite.
12952
07a32858
TT
129532020-03-13 Tom Tromey <tom@tromey.com>
12954
12955 * p-valprint.c (pascal_object_print_value_fields)
12956 (pascal_object_print_value): New functions.
12957
64d64d3a
TT
129582020-03-13 Tom Tromey <tom@tromey.com>
12959
12960 * p-valprint.c (pascal_value_print_inner): Rewrite.
12961
6a95a1f5
TT
129622020-03-13 Tom Tromey <tom@tromey.com>
12963
12964 * f-valprint.c (f_value_print_innner): Rewrite.
12965
59fcdac6
TT
129662020-03-13 Tom Tromey <tom@tromey.com>
12967
12968 * m2-valprint.c (m2_print_unbounded_array): New overload.
12969 (m2_print_unbounded_array): Update.
12970 (m2_print_array_contents): Take a struct value.
12971 (m2_value_print_inner): Rewrite.
12972
d133c3e1
TT
129732020-03-13 Tom Tromey <tom@tromey.com>
12974
12975 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12976 (d_value_print_inner): New function.
12977 * d-lang.h (d_value_print_inner): Declare.
12978 * d-lang.c (d_language_defn): Use d_value_print_inner.
12979
23b0f06b
TT
129802020-03-13 Tom Tromey <tom@tromey.com>
12981
12982 * go-valprint.c (go_value_print_inner): New function.
12983 * go-lang.h (go_value_print_inner): Declare.
12984 * go-lang.c (go_language_defn): Use go_value_print_inner.
12985
5f56f7cb
TT
129862020-03-13 Tom Tromey <tom@tromey.com>
12987
12988 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12989 API.
12990 (rust_val_print): Rewrite.
12991 (rust_value_print_inner): New function, from rust_val_print.
12992 (rust_language_defn): Use rust_value_print_inner.
12993
26792ee0
TT
129942020-03-13 Tom Tromey <tom@tromey.com>
12995
12996 * ada-valprint.c (ada_value_print_inner): New function.
12997 * ada-lang.h (ada_value_print_inner): Declare.
12998 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12999
24051bbe
TT
130002020-03-13 Tom Tromey <tom@tromey.com>
13001
13002 * f-valprint.c (f_value_print_innner): New function.
13003 * f-lang.h (f_value_print_innner): Declare.
13004 * f-lang.c (f_language_defn): Use f_value_print_innner.
13005
c0941be6
TT
130062020-03-13 Tom Tromey <tom@tromey.com>
13007
13008 * p-valprint.c (pascal_value_print_inner): New function.
13009 * p-lang.h (pascal_value_print_inner): Declare.
13010 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13011
62c4663d
TT
130122020-03-13 Tom Tromey <tom@tromey.com>
13013
13014 * m2-valprint.c (m2_value_print_inner): New function.
13015 * m2-lang.h (m2_value_print_inner): Declare.
13016 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13017
62182190
TT
130182020-03-13 Tom Tromey <tom@tromey.com>
13019
13020 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13021 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13022 * c-valprint.c (c_value_print_inner): New function.
13023 * c-lang.h (c_value_print_inner): Declare.
13024 * c-lang.c (c_language_defn, cplus_language_defn)
13025 (asm_language_defn, minimal_language_defn): Use
13026 c_value_print_inner.
13027
1e592a8a
TT
130282020-03-13 Tom Tromey <tom@tromey.com>
13029
13030 * p-valprint.c (pascal_object_print_value_fields): Now static.
13031 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13032
7fe471e9
TT
130332020-03-13 Tom Tromey <tom@tromey.com>
13034
13035 * c-valprint.c (c_val_print_array): Simplify.
13036
d121c6ce
TT
130372020-03-13 Tom Tromey <tom@tromey.com>
13038
13039 * valprint.c (value_print_array_elements): New function.
13040 * valprint.h (value_print_array_elements): Declare.
13041
4dba70ee
TT
130422020-03-13 Tom Tromey <tom@tromey.com>
13043
13044 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13045 * mips-tdep.c (mips_print_register): Use
13046 value_print_scalar_formatted.
13047
4f9ae810
TT
130482020-03-13 Tom Tromey <tom@tromey.com>
13049
13050 * valprint.h (value_print_scalar_formatted): Declare.
13051 * valprint.c (value_print_scalar_formatted): New function.
13052
156bfec9
TT
130532020-03-13 Tom Tromey <tom@tromey.com>
13054
13055 * valprint.h (generic_value_print): Declare.
13056 * valprint.c (generic_value_print): New function.
13057
2b4e573d
TT
130582020-03-13 Tom Tromey <tom@tromey.com>
13059
13060 * valprint.c (do_val_print): Call la_value_print_inner, if
13061 available.
13062 * rust-lang.c (rust_language_defn): Update.
13063 * p-lang.c (pascal_language_defn): Update.
13064 * opencl-lang.c (opencl_language_defn): Update.
13065 * objc-lang.c (objc_language_defn): Update.
13066 * m2-lang.c (m2_language_defn): Update.
13067 * language.h (struct language_defn) <la_value_print_inner>: New
13068 member.
13069 * language.c (unknown_language_defn, auto_language_defn): Update.
13070 * go-lang.c (go_language_defn): Update.
13071 * f-lang.c (f_language_defn): Update.
13072 * d-lang.c (d_language_defn): Update.
13073 * c-lang.c (c_language_defn, cplus_language_defn)
13074 (asm_language_defn, minimal_language_defn): Update.
13075 * ada-lang.c (ada_language_defn): Update.
13076
a1f6a07c
TT
130772020-03-13 Tom Tromey <tom@tromey.com>
13078
13079 * c-valprint.c (c_value_print): Use common_val_print.
13080
410cf315
TT
130812020-03-13 Tom Tromey <tom@tromey.com>
13082
13083 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13084
72a45c93
TT
130852020-03-13 Tom Tromey <tom@tromey.com>
13086
13087 * f-valprint.c (f77_print_array_1, f_val_print): Use
13088 common_val_print.
13089
040f66bd
TT
130902020-03-13 Tom Tromey <tom@tromey.com>
13091
13092 * riscv-tdep.c (riscv_print_one_register_info): Use
13093 common_val_print.
13094
a6e05a6c
TT
130952020-03-13 Tom Tromey <tom@tromey.com>
13096
13097 * mi/mi-main.c (output_register): Use common_val_print.
13098
3444c526
TT
130992020-03-13 Tom Tromey <tom@tromey.com>
13100
13101 * infcmd.c (default_print_one_register_info): Use
13102 common_val_print.
13103
c2a44efe
TT
131042020-03-13 Tom Tromey <tom@tromey.com>
13105
13106 * valprint.h (common_val_print_checked): Declare.
13107 * valprint.c (common_val_print_checked): New function.
13108 * stack.c (print_frame_arg): Use common_val_print_checked.
13109
b0c26e99
TT
131102020-03-13 Tom Tromey <tom@tromey.com>
13111
13112 * valprint.c (do_val_print): New function, from val_print.
13113 (val_print): Use do_val_print.
13114 (common_val_print): Use do_val_print.
13115
ce3acbe9
TT
131162020-03-13 Tom Tromey <tom@tromey.com>
13117
13118 * valprint.c (value_print): Use scoped_value_mark.
13119
96c7f873
TV
131202020-03-13 Tom de Vries <tdevries@suse.de>
13121
13122 PR symtab/25646
13123 * psymtab.c (partial_symtab::partial_symtab): Don't set
13124 globals_offset and statics_offset. Push element onto
13125 current_global_psymbols and current_static_psymbols stacks.
13126 (concat): New function.
13127 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13128 element from current_global_psymbols and current_static_psymbols
13129 stacks. Concat popped elements to global_psymbols and
13130 static_symbols.
13131 (add_psymbol_to_list): Use current_global_psymbols and
13132 current_static_psymbols stacks.
13133 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13134 current_static_psymbols fields.
13135
6ba0a321
CB
131362020-03-12 Christian Biesinger <cbiesinger@google.com>
13137
13138 * corelow.c (sniff_core_bfd): Remove.
13139 (class core_target) <m_core_vec>: Remove.
13140 (core_target::core_target): Update.
13141 (core_file_fns): Remove.
13142 (deprecated_add_core_fns): Remove.
13143 (default_core_sniffer): Remove.
13144 (sniff_core_bfd): Remove.
13145 (default_check_format): Remove.
13146 (gdb_check_format): Remove.
13147 (core_target_open): Update.
13148 (core_target::get_core_register_section): Update.
13149 (get_core_registers_cb): Update.
13150 (core_target::fetch_registers): Update.
13151 * gdbcore.h (struct core_fns): Remove.
13152 (deprecated_add_core_fns): Remove.
13153 (default_core_sniffer): Remove.
13154 (default_check_format): Remove.
13155
227031b2
TT
131562020-03-12 Tom Tromey <tom@tromey.com>
13157
13158 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13159 CORE_ADDR.
13160 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13161
53807e9f
TT
131622020-03-12 Tom Tromey <tom@tromey.com>
13163
13164 * remote.c (remote_target::download_tracepoint)
13165 (remote_target::enable_tracepoint)
13166 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13167 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13168 sprintf_vma.
13169
64f25102
TT
131702020-03-12 Tom Tromey <tom@tromey.com>
13171
13172 * symfile-mem.c: Update CORE_ADDR size assert.
13173
272cd5a3
SM
131742020-03-12 Simon Marchi <simon.marchi@efficios.com>
13175
13176 * selftest.m4: Move to gdbsupport/.
13177 * acinclude.m4: Update path to selftest.m4.
13178
74cd3f9d
SM
131792020-03-12 Simon Marchi <simon.marchi@efficios.com>
13180
13181 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13182 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13183 gdbarch-selfselftests.c and selftest-arch.c.
13184 (SUBDIR_UNITTESTS_OBS): Rename to...
13185 (SELFTESTS_OBS): ... this.
13186 (COMMON_SFILES): Remove disasm-selftests.c and
13187 gdbarch-selftests.c.
13188 * configure.ac: Don't add selftest-arch.{c,o} to
13189 CONFIG_{SRCS,OBS}.
13190 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13191 preprocessor conditions.
13192
db6878ac
SM
131932020-03-12 Simon Marchi <simon.marchi@efficios.com>
13194
13195 * configure.ac: Don't source bfd/development.sh.
13196 * selftest.m4: Modify comment.
13197 * configure: Re-generate.
13198
4d696a5c
SM
131992020-03-12 Simon Marchi <simon.marchi@efficios.com>
13200
13201 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13202 not "true" or "false".
13203 * configure: Re-generate.
13204
8dd8e1c7
CB
132052020-03-12 Christian Biesinger <cbiesinger@google.com>
13206
13207 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13208 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13209 renamed to arm_nbsd_supply_gregset.
13210 (fetch_register): Update to call arm_nbsd_supply_gregset.
13211 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13212 (arm_netbsd_nat_target::fetch_registers): Update.
13213 (fetch_elfcore_registers): Removed.
13214 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13215 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13216 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13217 not require NetBSD system headers.
13218 (arm_nbsd_regset): New struct.
13219 (arm_nbsd_iterate_over_regset_sections): New function.
13220 (arm_netbsd_init_abi_common): Updated to call
13221 set_gdbarch_iterate_over_regset_sections.
13222 * arm-nbsd-tdep.h: New file.
13223
dd69bf7a
KB
132242020-03-11 Kevin Buettner <kevinb@redhat.com>
13225
13226 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13227 recursion.
13228
a0761e34
SM
132292020-03-11 Simon Marchi <simon.marchi@efficios.com>
13230
13231 * configure: Re-generate.
13232
e7a82140
TT
132332020-03-11 Tom Tromey <tromey@adacore.com>
13234
13235 * ada-typeprint.c (print_choices): Fix comment.
13236
dcc050c8
AB
132372020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13238
13239 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13240 previous item in the list, when the list has no items.
13241
1c33af77
TV
132422020-03-11 Tom de Vries <tdevries@suse.de>
13243
13244 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13245 PROP_LOCLIST handling code.
13246
8c95582d
AB
132472020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13248
13249 * buildsym-legacy.c (record_line): Pass extra parameter to
13250 record_line.
13251 * buildsym.c (buildsym_compunit::record_line): Take an extra
13252 parameter, reduce duplication in the line table, and record the
13253 is_stmt flag in the line table.
13254 * buildsym.h (buildsym_compunit::record_line): Add extra
13255 parameter.
13256 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13257 non-statement lines.
13258 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13259 this to the symtab builder.
13260 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13261 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13262 through to dwarf_record_line_1.
13263 * infrun.c (process_event_stop_test): When stepping, don't stop at
13264 a non-statement instruction, and only refresh the step info when
13265 we land in the middle of a line's range. Also add an extra
13266 comment.
13267 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13268 field.
13269 * record-btrace.c (btrace_find_line_range): Only record lines
13270 marked as is-statement.
13271 * stack.c (frame_show_address): Show the frame address if we are
13272 in a non-statement sal.
13273 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13274 (maintenance_print_one_line_table): Print a header for the is_stmt
13275 column, and include is_stmt information in the output.
13276 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13277 preference to non-statements.
13278 (find_pcs_for_symtab_line): Prefer is-statement entries.
13279 (find_line_common): Likewise.
13280 * symtab.h (struct linetable_entry): Add is_stmt field.
13281 (struct symtab_and_line): Likewise.
13282 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13283 arranging the line table.
13284
e4003a34
TV
132852020-03-07 Tom de Vries <tdevries@suse.de>
13286
13287 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13288 DIE.
13289
e8932576
TT
132902020-03-07 Tom Tromey <tom@tromey.com>
13291
13292 * valops.c (value_literal_complex): Remove obsolete comment.
13293 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13294 comment.
13295
29734269
SM
132962020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13297
13298 * infrun.h: Forward-declare thread_info.
13299 (set_step_info): Add thread_info parameter, add doc.
13300 * infrun.c (set_step_info): Add thread_info parameter, move doc
13301 to header.
13302 * infrun.c (process_event_stop_test): Pass thread to
13303 set_step_info call.
13304 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13305 set_step_info.
13306 (prepare_one_step): Add thread_info parameter, pass it to
13307 set_step_frame and prepare_one_step (recursive) call.
13308 (step_1): Pass thread to prepare_one_step call.
13309 (step_command_fsm::should_stop): Pass thread to
13310 prepare_one_step.
13311 (until_next_fsm): Pass thread to set_step_frame call.
13312 (finish_command): Pass thread to set_step_info call.
13313
b7d64b29
HD
133142020-03-06 Hannes Domani <ssbssa@yahoo.de>
13315
13316 * windows-tdep.c (windows_solib_create_inferior_hook):
13317 Check if inferior is running.
13318
09f2921c
TV
133192020-03-06 Tom de Vries <tdevries@suse.de>
13320
13321 * NEWS: Fix "the the".
13322 * ctfread.c: Same.
13323
fd760e79
TV
133242020-03-06 Tom de Vries <tdevries@suse.de>
13325
13326 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13327
20ea4a60
AB
133282020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13329
13330 * .dir-locals.el: Add a comment referencing the other copies of
13331 this file.
13332
0afbabf0
JB
133332020-03-05 John Baldwin <jhb@FreeBSD.org>
13334
13335 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13336 psargs.
13337
842806cb
TBA
133382020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13339
13340 * .gitattributes: New file.
13341
be1e3d3e
TT
133422020-03-04 Tom Tromey <tom@tromey.com>
13343
13344 * symmisc.c (print_symbol_bcache_statistics)
13345 (print_objfile_statistics): Update.
13346 * symfile.c (allocate_symtab): Use intern.
13347 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13348 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13349 macro_cache>: Remove.
13350 <string_cache>: New member.
13351 (struct objfile) <intern>: New methods.
13352 * elfread.c (elf_symtab_read): Use intern.
13353 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13354 (dwarf2_compute_name, dwarf2_physname)
13355 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13356 names.
13357 (guess_partial_die_structure_name): Update.
13358 (partial_die_info::fixup): Intern name.
13359 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13360 name.
13361 (dwarf2_name): Intern name. Update.
13362 * buildsym.c (buildsym_compunit::get_macro_table): Use
13363 string_cache.
13364
4e7625fd
TT
133652020-03-04 Tom Tromey <tom@tromey.com>
13366
13367 * jit.c (bfd_open_from_target_memory): Make "target" const.
13368 * corefile.c (gnutarget): Now const.
13369 * gdbcore.h (gnutarget): Now const.
13370
46f9f931
HD
133712020-03-04 Hannes Domani <ssbssa@yahoo.de>
13372
13373 * NEWS: Mention support for WOW64 processes.
13374 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13375 (amd64_windows_segment_register_p): Remove static.
13376 (_initialize_amd64_windows_nat): Update.
13377 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13378 * i386-windows-nat.c (context_offset): Update.
13379 (i386_mappings): Rename and remove static.
13380 (i386_windows_segment_register_p): Remove static.
13381 (_initialize_i386_windows_nat): Update.
13382 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13383 (STATUS_WX86_SINGLE_STEP): New macro.
13384 (EnumProcessModulesEx): New macro.
13385 (Wow64SuspendThread): New macro.
13386 (Wow64GetThreadContext): New macro.
13387 (Wow64SetThreadContext): New macro.
13388 (Wow64GetThreadSelectorEntry): New macro.
13389 (windows_set_context_register_offsets): Add static.
13390 (windows_set_segment_register_p): Likewise.
13391 (windows_add_thread): Adapt for WOW64 processes.
13392 (windows_fetch_one_register): Likewise.
13393 (windows_nat_target::fetch_registers): Likewise.
13394 (windows_store_one_register): Likewise.
13395 (display_selector): Likewise.
13396 (display_selectors): Likewise.
13397 (handle_exception): Likewise.
13398 (windows_continue): Likewise.
13399 (windows_nat_target::resume): Likewise.
13400 (windows_add_all_dlls): Likewise.
13401 (do_initial_windows_stuff): Likewise.
13402 (windows_nat_target::attach): Likewise.
13403 (windows_get_exec_module_filename): Likewise.
13404 (windows_nat_target::create_inferior): Likewise.
13405 (windows_xfer_siginfo): Likewise.
13406 (_initialize_loadable): Initialize Wow64SuspendThread,
13407 Wow64GetThreadContext, Wow64SetThreadContext,
13408 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13409 * windows-nat.h (windows_set_context_register_offsets):
13410 Remove declaration.
13411 (windows_set_segment_register_p): Likewise.
13412 (i386_windows_segment_register_p): Add declaration.
13413 (amd64_windows_segment_register_p): Likewise.
13414
440cf44e
LM
134152020-03-04 Luis Machado <luis.machado@linaro.org>
13416
13417 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13418 in "info registers" for AArch64/ARM.
13419
13420 The change caused "info registers" to not print GPR's.
13421
13422 gdb/ChangeLog:
13423
13424 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13425
13426 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13427 when reg->group is empty and reggroup is not.
13428
1009d92f
TT
134292020-03-03 Tom Tromey <tromey@adacore.com>
13430
13431 * dwarf2/frame.c (struct dwarf2_frame_cache)
13432 <checked_tailcall_bottom, entry_cfa_sp_offset,
13433 entry_cfa_sp_offset_p>: Remove members.
13434 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13435 (dwarf2_frame_prev_register): Don't call
13436 dwarf2_tailcall_sniffer_first.
13437 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13438 * frame-unwind.c (add_unwinder): New fuction.
13439 (frame_unwind_init): Use it. Add tailcall unwinder.
13440
5e5d66b6
AB
134412020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13442 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13443
13444 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13445 value should be printed as true.
13446
584cf46d
HD
134472020-03-03 Hannes Domani <ssbssa@yahoo.de>
13448
13449 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13450 (windows_init_abi): Set and use windows_so_ops.
13451
7b973adc
SDJ
134522020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13453
13454 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13455 when verifying if dealing with a convenience variable.
13456
bb7b70ab
LM
134572020-03-03 Luis Machado <luis.machado@linaro.org>
13458
13459 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13460
9822cb57
SM
134612020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13462
13463 * infrun.c (gdbarch_supports_displaced_stepping): New.
13464 (use_displaced_stepping): Break up conditions in smaller pieces.
13465 Use gdbarch_supports_displaced_stepping.
13466 (displaced_step_prepare_throw): Use
13467 gdbarch_supports_displaced_stepping.
13468
63e163f2
AB
134692020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13470
13471 * NEWS: Mention new behaviour of the history filename.
13472 * top.c (write_history_p): Add comment.
13473 (show_write_history_p): Add header comment, give a different
13474 message when history writing is on, but the history filename is
13475 empty.
13476 (history_filename): Add comment.
13477 (history_filename_empty): New function.
13478 (show_history_filename): Add header comment, give a different
13479 message when the filename is empty.
13480 (init_history): Compare history_filename against nullptr, and only
13481 read history if the filename is not empty.
13482 (set_history_filename): Add header comment, and only make
13483 non-empty filenames absolute.
13484 (init_main): Make the filename argument to 'set history filename'
13485 optional.
13486
81b86b97
CB
134872020-03-02 Christian Biesinger <cbiesinger@google.com>
13488
13489 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13490 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13491 (fetch_fp_register): Update.
13492 (fetch_fp_regs): Update.
13493 (store_fp_register): Update.
13494 (store_fp_regs): Update.
13495 (arm_netbsd_nat_target::read_description): New function.
13496 (fetch_elfcore_registers): Update.
13497
24ed6739
AB
134982020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13499
13500 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13501 general_thread if the stop reply is missing a thread-id.
13502 (remote_target::process_stop_reply): Use the first non-exited
13503 thread if the target didn't pass a thread-id.
13504 * infrun.c (do_target_wait): Move call to
13505 switch_to_inferior_no_thread to ....
13506 (do_target_wait_1): ... here.
13507
a84bb2a0
JT
135082020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13509
13510 * debuginfod-support.c: Include defs.h first.
13511
658dadf0
TV
135122020-02-28 Tom de Vries <tdevries@suse.de>
13513
13514 * symfile.c (set_initial_language): Use default language for lookup.
13515
4ebe4877
SM
135162020-02-28 Simon Marchi <simon.marchi@efficios.com>
13517
13518 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13519 reader variable, pass `this` to read_cutu_die_from_dwo.
13520
e5da1139
AM
135212020-02-27 Aaron Merey <amerey@redhat.com>
13522
13523 * source.c (open_source_file): Check for nullptr when computing
13524 srcpath.
13525
317f7127
TT
135262020-02-27 Tom Tromey <tromey@adacore.com>
13527
13528 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13529 member.
13530 (dwarf2_add_field): Don't update nfields.
13531 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13532
3104d9ee
AB
135332020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13534
13535 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13536 abs.
13537
b83470bf
TT
135382020-02-26 Tom Tromey <tom@tromey.com>
13539
13540 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13541 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13542 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13543 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13544 per_cu_data.
13545
edfe0a0c
TT
135462020-02-26 Tom Tromey <tom@tromey.com>
13547
13548 * dwarf2/index-write.c (psym_index_map): Change type.
13549 (add_address_entry_worker, write_one_signatured_type)
13550 (recursively_count_psymbols, recursively_write_psymbols)
13551 (class debug_names, psyms_seen_size, write_gdbindex)
13552 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13553
0d79cdc4
AM
135542020-02-26 Aaron Merey <amerey@redhat.com>
13555
13556 * Makefile.in: Handle optional debuginfod support.
13557 * NEWS: Update.
13558 * README: Add --with-debuginfod summary.
13559 * config.in: Regenerate.
13560 * configure: Regenerate.
13561 * configure.ac: Handle optional debuginfod support.
13562 * debuginfod-support.c: debuginfod helper functions.
13563 * debuginfod-support.h: Ditto.
13564 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13565 summary.
13566 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13567 when a dwz file cannot be found.
13568 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13569 debuginfo file cannot be found.
13570 * source.c (open_source_file): Query debuginfod servers when a
13571 source file cannot be found.
13572 * top.c (print_gdb_configuration): Include
13573 --{with,without}-debuginfod in the output.
13574
b65ce565
JG
135752020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13576
13577 * thread.c (thr_try_catch_cmd): Print thread name.
13578
d4c9a4f8
SM
135792020-02-26 Simon Marchi <simon.marchi@efficios.com>
13580
13581 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13582 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13583 dwarf2_fetch_die_type_sect_off): Move to...
13584 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13585 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13586 dwarf2_fetch_die_type_sect_off): ... here.
13587 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13588 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13589 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13590
0dce4280
TV
135912020-02-26 Tom de Vries <tdevries@suse.de>
13592
13593 PR gdb/25603
13594 * symfile.c (set_initial_language): Exit-early if
13595 language_mode == language_mode_manual.
13596
450a1bfc
SM
135972020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13598
13599 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13600 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13601 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13602
9e80cfa1
AB
136032020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13604
13605 * gdbtypes.c (create_array_type_with_stride): Handle negative
13606 array strides.
13607 * valarith.c (value_subscripted_rvalue): Likewise.
13608
09624f1f
LM
136092020-02-25 Luis Machado <luis.machado@linaro.org>
13610
13611 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13612
8cb5117c
SM
136132020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13614
13615 * loc.h (dwarf2_get_die_type): Move to...
13616 * read.h (dwarf2_get_die_type): ... here.
13617 * read.c (dwarf2_get_die_type): Move doc to header.
13618
c325c44e
JB
136192020-02-25 Joel Brobecker <brobecker@adacore.com>
13620
13621 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13622 'gnulib/Makefile.in' to the list.
13623
4ac93832
TT
136242020-02-24 Tom Tromey <tom@tromey.com>
13625
13626 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13627 Remove.
13628 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13629 XOBNEWVEC.
13630
197400e8
TT
136312020-02-24 Tom Tromey <tom@tromey.com>
13632
13633 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13634 New method.
13635 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13636 (dw2_do_instantiate_symtab, dw2_get_file_names)
13637 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13638
76935768
TT
136392020-02-24 Tom Tromey <tom@tromey.com>
13640
13641 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13642 make_scoped_restore.
13643 (dwarf2_psymtab::read_symtab): Don't clear
13644 reading_partial_symbols.
13645
a88ef40d
TV
136462020-02-24 Tom de Vries <tdevries@suse.de>
13647
13648 PR gdb/25592
13649 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13650
c9af6521
TV
136512020-02-24 Tom de Vries <tdevries@suse.de>
13652
13653 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13654 commands layout next/prev/regs.
13655
5707a07a
TT
136562020-02-22 Tom Tromey <tom@tromey.com>
13657
13658 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13659 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13660
3b0fb49e
TT
136612020-02-22 Tom Tromey <tom@tromey.com>
13662
13663 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13664
283be8bf
TT
136652020-02-22 Tom Tromey <tom@tromey.com>
13666
13667 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13668 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13669 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13670 * tui/tui.c (_initialize_tui): Add usage text.
13671
ca793b96
TT
136722020-02-22 Tom Tromey <tom@tromey.com>
13673
13674 * tui/tui-win.c (tui_set_focus_command)
13675 (tui_set_win_height_command): Use error_no_arg.
13676 (_initialize_tui_win): Update help text.
13677 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13678
432b5c40
TT
136792020-02-22 Tom Tromey <tom@tromey.com>
13680
13681 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13682 * tui/tui-disasm.h (struct tui_disasm_window)
13683 <display_start_addr>: Declare.
13684 * tui/tui-source.h (struct tui_source_window)
13685 <display_start_addr>: Declare.
13686 * tui/tui-winsource.h (struct tui_source_window_base)
13687 <show_source_line, display_start_addr>: New methods.
13688 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13689 Rename and move to protected section.
13690 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13691 (tui_source_window_base::do_erase_source_content): Update.
13692 (tui_source_window_base::show_source_line): Now a method.
13693 (tui_source_window_base::show_source_content)
13694 (tui_source_window_base::tui_source_window_base)
13695 (tui_source_window_base::rerender)
13696 (tui_source_window_base::refill)
13697 (tui_source_window_base::do_scroll_horizontal)
13698 (tui_source_window_base::set_is_exec_point_at)
13699 (tui_source_window_base::update_breakpoint_info)
13700 (tui_source_window_base::update_exec_info): Update.
13701 * tui/tui-source.c (tui_source_window::set_contents)
13702 (tui_source_window::showing_source_p)
13703 (tui_source_window::do_scroll_vertical)
13704 (tui_source_window::location_matches_p)
13705 (tui_source_window::line_is_displayed): Update.
13706 (tui_source_window::display_start_addr): New method.
13707 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13708 (tui_disasm_window::do_scroll_vertical)
13709 (tui_disasm_window::location_matches_p): Update.
13710 (tui_disasm_window::display_start_addr): New method.
13711
01b1af32
TT
137122020-02-22 Tom Tromey <tom@tromey.com>
13713
13714 * NEWS: Add entry for gdb.register_window_type.
13715 * tui/tui-layout.h (window_factory): New typedef.
13716 (tui_register_window): Declare.
13717 * tui/tui-layout.c (saved_tui_windows): New global.
13718 (tui_apply_current_layout): Use it.
13719 (tui_register_window): New function.
13720 * python/python.c (do_start_initialization): Call
13721 gdbpy_initialize_tui.
13722 (python_GdbMethods): Add "register_window_type" function.
13723 * python/python-internal.h (gdbpy_register_tui_window)
13724 (gdbpy_initialize_tui): Declare.
13725 * python/py-tui.c: New file.
13726 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13727
fc96d20b
TT
137282020-02-22 Tom Tromey <tom@tromey.com>
13729
13730 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13731
935c78c0
TT
137322020-02-22 Tom Tromey <tom@tromey.com>
13733
13734 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13735 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13736 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13737 (tui_set_win_focus_to): Move from tui-win.c.
13738
0240c8f1
TT
137392020-02-22 Tom Tromey <tom@tromey.com>
13740
13741 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13742 functions.
13743 (known_window_types): New global.
13744 (tui_get_window_by_name): Reimplement.
13745 (initialize_known_windows): New function.
13746 (validate_window_name): Rewrite.
13747 (_initialize_tui_layout): Call initialize_known_windows.
13748
fdb01f0c
TT
137492020-02-22 Tom Tromey <tom@tromey.com>
13750
13751 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13752 Remove constants.
13753 * tui/tui-winsource.h (struct tui_source_window_base)
13754 <tui_source_window_base>: Remove parameter.
13755 * tui/tui-winsource.c
13756 (tui_source_window_base::tui_source_window_base): Remove
13757 parameter.
13758 (tui_source_window_base::refill): Update.
13759 * tui/tui-stack.h (struct tui_locator_window)
13760 <tui_locator_window>: Update.
13761 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13762 Default the constructor.
13763 * tui/tui-regs.h (struct tui_data_item_window)
13764 <tui_data_item_window>: Default the constructor.
13765 (struct tui_data_window) <tui_data_window>: Likewise.
13766 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13767 Default the constructor.
13768 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13769 Default the constructor.
13770 <type>: Remove.
13771 (struct tui_win_info) <tui_win_info>: Default the constructor.
13772 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13773 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13774 Default the constructor.
13775
865a5aec
TT
137762020-02-22 Tom Tromey <tom@tromey.com>
13777
13778 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13779 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13780 * tui/tui-win.c (tui_resize_all): Don't call
13781 tui_delete_invisible_windows.
13782 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13783 done.
13784 (tui_set_layout): Update.
13785 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13786 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13787 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13788
e098d18c
TT
137892020-02-22 Tom Tromey <tom@tromey.com>
13790
13791 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13792 correctly.
13793
eb9c8874
TT
137942020-02-22 Tom Tromey <tom@tromey.com>
13795
13796 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13797
7eed1a8e
TT
137982020-02-22 Tom Tromey <tom@tromey.com>
13799
13800 * tui/tui-winsource.h (struct tui_source_window_iterator)
13801 <inner_iterator>: New etytypedef.
13802 <tui_source_window_iterator>: Take "end" parameter.
13803 <tui_source_window_iterator>: Take iterator.
13804 <operator*, advance>: Update.
13805 <m_iter>: Change type.
13806 <m_end>: New field.
13807 (struct tui_source_windows) <begin, end>: Update.
13808 * tui/tui-layout.c (tui_windows): New global.
13809 (tui_apply_current_layout): Clear tui_windows.
13810 (tui_layout_window::apply): Update tui_windows.
13811 * tui/tui-data.h (tui_windows): Declare.
13812 (all_tui_windows): Now inline function.
13813 (class tui_window_iterator, struct all_tui_windows): Remove.
13814
7c043ba6
TT
138152020-02-22 Tom Tromey <tom@tromey.com>
13816
13817 PR tui/17850:
13818 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13819 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13820 "height" argument.
13821 (class tui_layout_window) <get_sizes>: Likewise.
13822 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13823 argument.
13824 <get_sizes>: Add "height" argument.
13825 <m_vertical>: New field.
13826 * tui/tui-layout.c (tui_layout_split::clone): Update.
13827 (tui_layout_split::get_sizes): Add "height" argument.
13828 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13829 (tui_new_layout_command): Parse "-horizontal".
13830 (_initialize_tui_layout): Update help string.
13831 (tui_layout_split::specification): Add "-horizontal" when needed.
13832 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13833 argument.
13834 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13835 New methods.
13836
6bc56648
TT
138372020-02-22 Tom Tromey <tom@tromey.com>
13838
13839 * tui/tui-layout.h (enum tui_adjust_result): New.
13840 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13841 (class tui_layout_window) <adjust_size>: Return
13842 tui_adjust_result. Rewrite.
13843 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13844 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13845
c22fef7e
TT
138462020-02-22 Tom Tromey <tom@tromey.com>
13847
13848 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13849 parameter and return types.
13850 (class tui_layout_base) <specification>: Add "depth".
13851 (class tui_layout_window) <specification>: Add "depth".
13852 (class tui_layout_split) <specification>: Add "depth".
13853 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13854 and return types.
13855 (tui_new_layout_command): Parse sub-layouts.
13856 (_initialize_tui_layout): Update help string.
13857 (tui_layout_window::specification): Add "depth".
13858 (add_layout_command): Update.
13859
ee325b61
TT
138602020-02-22 Tom Tromey <tom@tromey.com>
13861
13862 * NEWS: Add "tui new-layout" item.
13863 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13864 Add new-layout command to help text.
13865 (validate_window_name): New function.
13866 (tui_new_layout_command): New function.
13867 (_initialize_tui_layout): Register "new-layout".
13868 (tui_layout_window::specification): New method.
13869 (tui_layout_window::specification): New method.
13870 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13871 method.
13872 (class tui_layout_window) <specification>: New method.
13873 (class tui_layout_split) <specification>: New method.
13874
416eb92d
TT
138752020-02-22 Tom Tromey <tom@tromey.com>
13876
13877 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13878 * tui/tui-win.c (window_name_completer): Update comment.
13879 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13880 Declare method.
13881 (class tui_layout_window) <replace_window>: Likewise.
13882 (class tui_layout_split) <replace_window>: Likewise.
13883 (tui_set_layout): Don't declare.
13884 (tui_set_initial_layout): Declare function.
13885 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13886 (asm_regs_layout): New globals.
13887 (tui_current_layout, show_layout): Remove.
13888 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13889 (find_layout, tui_apply_layout): New function.
13890 (layout_completer): Remove.
13891 (tui_next_layout): Reimplement.
13892 (tui_next_layout_command): New function.
13893 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13894 (tui_regs_layout): Reimplement.
13895 (tui_regs_layout_command): New function.
13896 (extract_display_start_addr): Rewrite.
13897 (next_layout, prev_layout): Remove.
13898 (tui_layout_window::replace_window): New method.
13899 (tui_layout_split::replace_window): New method.
13900 (destroy_layout): New function.
13901 (layout_list): New global.
13902 (add_layout_command): New function.
13903 (initialize_layouts): Update.
13904 (tui_layout_command): New function.
13905 (_initialize_tui_layout): Install "layout" commands.
13906 * tui/tui-data.h (enum tui_layout_type): Remove.
13907 (tui_current_layout): Don't declare.
13908
0dbc2fc7
TT
139092020-02-22 Tom Tromey <tom@tromey.com>
13910
13911 * tui/tui-regs.c (tui_reg_layout): Remove.
13912 (tui_reg_command): Use tui_regs_layout.
13913 * tui/tui-layout.h (tui_reg_command): Declare.
13914 * tui/tui-layout.c (tui_reg_command): New function.
13915
5afe342e
TT
139162020-02-22 Tom Tromey <tom@tromey.com>
13917
13918 * tui/tui.c (tui_rl_delete_other_windows): Call
13919 tui_remove_some_windows.
13920 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13921 Declare method.
13922 (class tui_layout_window) <remove_windows>: New method.
13923 (class tui_layout_split) <remove_windows>: Declare.
13924 (tui_remove_some_windows): Declare.
13925 * tui/tui-layout.c (tui_remove_some_windows): New function.
13926 (tui_layout_split::remove_windows): New method.
13927
427326a8
TT
139282020-02-22 Tom Tromey <tom@tromey.com>
13929
13930 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13931 * tui/tui-layout.h (tui_next_layout): Declare.
13932 * tui/tui-layout.c (tui_next_layout): New function.
13933
3fe12b6d
TT
139342020-02-22 Tom Tromey <tom@tromey.com>
13935
13936 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13937 correct coordinates.
13938
59b8b5d2
TT
139392020-02-22 Tom Tromey <tom@tromey.com>
13940
13941 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13942 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13943 DATA_WIN case.
13944
2a3d458b
TT
139452020-02-22 Tom Tromey <tom@tromey.com>
13946
13947 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13948 TUI_DISASM_WIN, not tui_win_list.
13949
3f0cbb04
TT
139502020-02-22 Tom Tromey <tom@tromey.com>
13951
13952 * valprint.c (generic_val_print_enum_1)
13953 (val_print_type_code_flags): Style member names.
13954 * rust-lang.c (val_print_struct, rust_print_enum)
13955 (rust_print_struct_def, rust_internal_print_type): Style member
13956 names.
13957 * p-valprint.c (pascal_object_print_value_fields): Style member
13958 names. Only call fprintf_symbol_filtered for static members.
13959 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13960 * f-valprint.c (f_val_print): Style member names.
13961 * f-typeprint.c (f_type_print_base): Style member names.
13962 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13963 call fprintf_symbol_filtered for static members.
13964 (cp_print_class_member): Style member names.
13965 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13966 member names.
13967 * ada-valprint.c (ada_print_scalar): Style enum names.
13968 (ada_val_print_enum): Likewise.
13969 * ada-typeprint.c (print_enum_type): Style enum names.
13970
d4d947ae
TT
139712020-02-21 Tom Tromey <tom@tromey.com>
13972
13973 * psympriv.h (struct partial_symtab): Update comment.
13974
e94e944b
TT
139752020-02-21 Tom Tromey <tromey@adacore.com>
13976
13977 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13978 type is CORE_ADDR.
13979
1eb73179
TV
139802020-02-21 Tom de Vries <tdevries@suse.de>
13981
13982 PR gdb/25534
13983 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13984 if dependencies[i]->user != NULL.
13985
4f180d53
AT
139862020-02-21 Ali Tamur <tamur@google.com>
13987
13988 * dwarf2/read.c (dwarf2_name): Add null check.
13989
22b6cd70
TT
139902020-02-20 Tom Tromey <tom@tromey.com>
13991
13992 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13993 ">=", in binary search.
13994 (dwarf2_find_containing_comp_unit): New overload.
13995 (run_test): New self-test.
13996 (_initialize_dwarf2_read): Register new test.
13997
bd0cf5a6
NC
139982020-02-20 Nelson Chu <nelson.chu@sifive.com>
13999
14000 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14001 * riscv-tdep.h: Likewise.
14002 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14003 rv32-only CSR.
14004 * features/riscv/64bit-csr.xml: Regenerated.
14005
3f702acd
SDJ
140062020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14007 Tom Tromey <tom@tromey.com>
14008
14009 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14010 of 'fputc_unfiltered'.
14011 (putchar_unfiltered): Call 'fputc_unfiltered'.
14012 (fputc_unfiltered): Call 'fputs_unfiltered'.
14013
d13c7322
AB
140142020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14015
14016 * config.in: Regenerate.
14017 * configure: Regenerate.
14018 * configure.ac: Add --with-python-libdir option.
14019 * main.c: Use WITH_PYTHON_LIBDIR.
14020
869d8950
TT
140212020-02-19 Tom Tromey <tom@tromey.com>
14022
14023 * symtab.c (general_symbol_info::compute_and_set_names): Use
14024 obstack_strndup. Simplify call to symbol_set_demangled_name.
14025
298e9637
SM
140262020-02-19 Simon Marchi <simon.marchi@efficios.com>
14027
14028 * dwarf2/read.c (allocate_signatured_type_table,
14029 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14030 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14031 Remove objfile parameter, update all callers.
14032
08410482
DE
140332020-02-19 Doug Evans <dje@google.com>
14034
14035 PR rust/25535
14036 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14037 rust_enum_variant calculation.
14038
dfdeeca1
TT
140392020-02-19 Tom Tromey <tromey@adacore.com>
14040
14041 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14042
2ef5453b
TT
140432020-02-19 Tom Tromey <tromey@adacore.com>
14044
14045 * ada-lang.c (cache_symbol): Use obstack_strdup.
14046
9f1528a1
AB
140472020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14048
14049 * configure: Regenerate.
14050
d3c22fa8
TT
140512020-02-19 Tom Tromey <tromey@adacore.com>
14052
14053 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14054 NULL check.
14055
bf84f706
MR
140562020-02-19 Maciej W. Rozycki <macro@wdc.com>
14057
14058 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14059
d1c9b20f
AB
140602020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14061
14062 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14063 if GDBSERVER is not defined.
14064 (riscv_tdesc_cache): Likewise, also store const target_desc.
14065 (STATIC_IN_GDB): Define.
14066 (riscv_create_target_description): Update declaration with
14067 STATIC_IN_GDB.
14068 (riscv_lookup_target_description): New function, only define if
14069 GDBSERVER is not defined.
14070 * arch/riscv.h (riscv_create_target_description): Declare only
14071 when GDBSERVER is defined.
14072 (riscv_lookup_target_description): New declaration when GDBSERVER
14073 is not defined.
14074 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14075 (riscv_linux_read_features): ...this, and return
14076 riscv_gdbarch_features instead of target_desc.
14077 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14078 (riscv_linux_read_description): Rename to...
14079 (riscv_linux_read_features): ...this.
14080 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14081 Update to use riscv_gdbarch_features and
14082 riscv_lookup_target_description.
14083 * riscv-tdep.c (riscv_find_default_target_description): Use
14084 riscv_lookup_target_description instead of
14085 riscv_create_target_description.
14086
373d7ac0
SM
140872020-02-18 Simon Marchi <simon.marchi@efficios.com>
14088
14089 * valprint.c (generic_val_print_enum_1): When printing a flag
14090 enum with value 0 and there is no enumerator with value 0, print
14091 just "0" instead of "(unknown: 0x0)".
14092
b29a2df0
SM
140932020-02-18 Simon Marchi <simon.marchi@efficios.com>
14094
14095 * valprint.c (generic_val_print_enum_1): Print unknown part of
14096 flag enum in hex.
14097
6740f0cc
SM
140982020-02-18 Simon Marchi <simon.marchi@efficios.com>
14099
14100 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14101 flag enums to contain duplicate enumerators.
14102 * valprint.c (generic_val_print_enum_1): Update comment.
14103
edd45eb0
SM
141042020-02-18 Simon Marchi <simon.marchi@efficios.com>
14105
14106 * dwarf2/read.c: Include "count-one-bits.h".
14107 (update_enumeration_type_from_children): If an enumerator has
14108 multiple bits set, don't treat the enumeration as a "flag enum".
14109 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14110 of flag enums have 0 or 1 bit set.
14111
6d0cf446
BE
141122020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14113
14114 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14115 conversion.
14116 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14117 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14118 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14119 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14120 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14121
7001c1b7
SM
141222020-02-18 Simon Marchi <simon.marchi@efficios.com>
14123
14124 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14125
fdb61c6c
SM
141262020-02-14 Simon Marchi <simon.marchi@efficios.com>
14127
14128 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14129 displaced_step_closure_up.
14130 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14131 (struct displaced_step_closure_up):
14132 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14133 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14134 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14135 Likewise.
14136 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14137 * gdbarch.c, gdbarch.h: Re-generate.
14138 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14139 displaced_step_closure_up.
14140 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14141 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14142 * infrun.h (displaced_step_closure_up): New type alias.
14143 (struct displaced_step_inferior_state) <step_closure>: Change
14144 type to displaced_step_closure_up.
14145 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14146 displaced_step_closure_up.
14147 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14148
a4a38eb4
TT
141492020-02-14 Tom Tromey <tom@tromey.com>
14150
14151 * minidebug.c (gnu_debug_key): New global.
14152 (find_separate_debug_file_in_section): Use it.
14153
e8217e61
SM
141542020-02-14 Simon Marchi <simon.marchi@efficios.com>
14155
14156 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14157 std::unique_ptr.
14158 * gdbarch.c: Re-generate.
14159 * gdbarch.h: Re-generate.
14160 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14161 change.
14162 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14163 type to std::unique_ptr.
14164 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14165 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14166 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14167 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14168 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14169 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14170 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14171 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14172 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14173
d8d83535
SM
141742020-02-14 Simon Marchi <simon.marchi@efficios.com>
14175
14176 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14177 std::unique_ptr.
14178 (displaced_step_clear): Rename to...
14179 (displaced_step_reset): ... this. Just call displaced->reset ().
14180 (displaced_step_clear_cleanup): Rename to...
14181 (displaced_step_reset_cleanup): ... this.
14182 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14183 (displaced_step_fixup): Likewise.
14184 (resume_1): Likewise.
14185 (handle_inferior_event): Restore child's memory before calling
14186 displaced_step_fixup on the parent.
14187 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14188 to std::unique_ptr.
14189 <step_closure>: Change type to std::unique_ptr.
14190
5f661e03
SM
141912020-02-14 Simon Marchi <simon.marchi@efficios.com>
14192
14193 * arm-tdep.c: Include count-one-bits.h.
14194 (cleanup_block_store_pc): Use count_one_bits.
14195 (cleanup_block_load_pc): Use count_one_bits.
14196 (arm_copy_block_xfer): Use count_one_bits.
14197 (thumb2_copy_block_xfer): Use count_one_bits.
14198 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14199 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14200 (thumb_get_next_pcs_raw): Use count_one_bits.
14201 (arm_get_next_pcs_raw): Use count_one_bits_l.
14202 * arch/arm.c (bitcount): Remove.
14203 * arch/arm.h (bitcount): Remove.
14204
8084e579
TT
142052020-02-14 Tom Tromey <tromey@adacore.com>
14206
14207 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14208 Update.
14209 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14210 * dwarf2/loc.c (call_site_find_chain_1): Return
14211 unique_xmalloc_ptr.
14212 (call_site_find_chain): Likewise.
14213
258bf0ee
RB
142142020-02-14 Richard Biener <rguenther@suse.de>
14215
14216 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14217 on expression with division operators.
14218
f98a8458
AKS
142192020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14220
14221 * MAINTAINERS (Write After Approval): Adding myself.
14222
d1437c0e
TT
142232020-02-12 Tom Tromey <tom@tromey.com>
14224
14225 * event-loop.c (event_data, gdb_event, event_handler_func):
14226 Remove.
14227
3d4560f7
TT
142282020-02-12 Tom Tromey <tom@tromey.com>
14229
14230 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14231 (dwarf2_frame_objfile_data): Add comment.
14232 (find_comp_unit, set_comp_unit): New functions.
14233 (dwarf2_frame_find_fde): Use find_comp_unit.
14234 (dwarf2_build_frame_info): Use set_comp_unit.
14235
21982304
TT
142362020-02-12 Tom Tromey <tom@tromey.com>
14237
14238 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14239 (comp_unit): Don't initialize objfile.
14240 (execute_cfa_program): Add text_offset parameter.
14241 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14242 (dwarf2_frame_cache): Update.
14243 (dwarf2_build_frame_info): Don't set "objfile" member.
14244
4debb237
TT
142452020-02-12 Tom Tromey <tom@tromey.com>
14246
14247 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14248 (decode_frame_entry): Likewise.
14249 (dwarf2_build_frame_info): Update.
14250
0d404d44
TT
142512020-02-12 Tom Tromey <tom@tromey.com>
14252
14253 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14254 (decode_frame_entry_1): Use the comp_unit obstack.
14255
a7a3ae5c
TT
142562020-02-12 Tom Tromey <tom@tromey.com>
14257
14258 * dwarf2/frame.c (struct comp_unit): Add initializers and
14259 constructor.
14260 (dwarf2_frame_objfile_data): Store a comp_unit.
14261 (dwarf2_frame_find_fde): Update.
14262 (dwarf2_build_frame_info): Use "new".
14263
a9d65418
TT
142642020-02-12 Tom Tromey <tom@tromey.com>
14265
14266 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14267 (dwarf2_fde_table): Typedef for std::vector.
14268 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14269 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14270 (decode_frame_entry): Update.
14271 (dwarf2_build_frame_info): Use "new".
14272
7559c217
CB
142732020-02-12 Christian Biesinger <cbiesinger@google.com>
14274
14275 * arm-tdep.c (arm_gdbarch_init): Update.
14276 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14277 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14278 have_neon, is_m>: Change to bool.
14279
aeefc73c
CB
142802020-02-12 Christian Biesinger <cbiesinger@google.com>
14281
14282 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14283
d27b8e5f
TT
142842020-02-12 Tom Tromey <tom@tromey.com>
14285
14286 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14287
cd5900f3
HD
142882020-02-12 Hannes Domani <ssbssa@yahoo.de>
14289
14290 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14291 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14292
f056b22b
TT
142932020-02-11 Tom Tromey <tom@tromey.com>
14294
14295 * psymtab.h: Update comment.
14296
f92ff6b5
TT
142972020-02-11 Tom Tromey <tom@tromey.com>
14298
14299 * gdb_obstack.h (struct auto_obstack): Use
14300 DISABLE_COPY_AND_ASSIGN.
14301
3fd6912b
TT
143022020-02-11 Tom Tromey <tom@tromey.com>
14303
14304 * dwarf2/frame.h (struct objfile): Don't forward declare.
14305
69ed9b74
CB
143062020-02-11 Christian Biesinger <cbiesinger@google.com>
14307
14308 * cris-tdep.c (cris_supply_gregset): Change signature to match
14309 what struct regset expects.
14310 (cris_regset): New struct.
14311 (fetch_core_registers): Remove.
14312 (cris_iterate_over_regset_sections): New function.
14313 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14314 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14315
bda874f6
CB
143162020-02-11 Christian Biesinger <cbiesinger@google.com>
14317
14318 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14319 registers.
14320
754e1564
CB
143212020-02-11 Christian Biesinger <cbiesinger@google.com>
14322
14323 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14324
8ddd8e0e
SM
143252020-02-11 Simon Marchi <simon.marchi@efficios.com>
14326
14327 * configure: Re-generate.
14328
898e7f60
SM
143292020-02-11 Simon Marchi <simon.marchi@efficios.com>
14330
14331 * configure: Re-generate.
14332
58df732b
SM
143332020-02-11 Simon Marchi <simon.marchi@efficios.com>
14334
14335 * acinclude: Update warning.m4 path.
14336 * warning.m4: Move to gdbsupport.
14337
da5bd37e
TT
143382020-02-11 Tom Tromey <tromey@adacore.com>
14339
14340 * remote.c (remote_console_output): Update.
14341 * printcmd.c (printf_command): Update.
14342 * event-loop.c (gdb_wait_for_event): Update.
14343 * linux-nat.c (sigchld_handler): Update.
14344 * remote-sim.c (gdb_os_write_stdout): Update.
14345 (gdb_os_flush_stdout): Update.
14346 (gdb_os_flush_stderr): Update.
14347 (gdb_os_write_stderr): Update.
14348 * exceptions.c (print_exception): Update.
14349 * remote-fileio.c (remote_fileio_func_read): Update.
14350 (remote_fileio_func_write): Update.
14351 * tui/tui.c (tui_enable): Update.
14352 * tui/tui-interp.c (tui_interp::init): Update.
14353 * utils.c (init_page_info): Update.
14354 (putchar_unfiltered, fputc_unfiltered): Update.
14355 (gdb_flush): Update.
14356 (emit_style_escape): Update.
14357 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14358 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14359 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14360 (stderr_file::write): Update.
14361 (stderr_file::puts): Update.
14362 * ui-file.h (ui_file_isatty, ui_file_write)
14363 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14364 (ui_file_puts): Don't declare.
14365
85f0dd3c
TV
143662020-02-10 Tom de Vries <tdevries@suse.de>
14367
14368 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14369 sentinel to char *.
14370
2e927613
TV
143712020-02-09 Tom de Vries <tdevries@suse.de>
14372
14373 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14374 filename if it matches "<artificial>".
14375
6bafc845
HD
143762020-02-09 Hannes Domani <ssbssa@yahoo.de>
14377
14378 * windows-tdep.c (struct enum_value_name): New struct.
14379 (create_enum): New function.
14380 (windows_get_siginfo_type): Create and use enum types.
14381
7928d571
HD
143822020-02-09 Hannes Domani <ssbssa@yahoo.de>
14383
14384 * NEWS: Mention $_siginfo support for Windows.
14385 * windows-nat.c (handle_exception): Set siginfo_er.
14386 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14387 (windows_xfer_siginfo): New function.
14388 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14389 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14390 (init_windows_gdbarch_data): New function.
14391 (get_windows_gdbarch_data): New function.
14392 (windows_get_siginfo_type): New function.
14393 (windows_init_abi): Register windows_get_siginfo_type.
14394 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14395
6751ebae
TT
143962020-02-08 Tom Tromey <tom@tromey.com>
14397
14398 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14399 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14400 <keep>: Declare method.
14401 <m_keep>: Remove member.
14402 <~cutu_reader>: Remove.
14403 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14404 (cutu_reader::cutu_reader): Update.
14405 (cutu_reader::keep): Rename from ~cutu_reader.
14406 (process_psymtab_comp_unit, build_type_psymtabs_1)
14407 (process_skeletonless_type_unit, load_partial_comp_unit)
14408 (load_full_comp_unit, dwarf2_read_addr_index)
14409 (read_signatured_type): Update.
14410
135f5437
TT
144112020-02-08 Tom Tromey <tom@tromey.com>
14412
14413 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14414 "want_partial_unit" parameter.
14415 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14416 Inline check for DW_TAG_partial_unit.
14417 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14418
9f66ff1c
TT
144192020-02-08 Tom Tromey <tom@tromey.com>
14420
14421 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14422 read.c.
14423 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14424 read.c.
14425
c8a7a66f
TT
144262020-02-08 Tom Tromey <tom@tromey.com>
14427
14428 * dwarf2/read.c (read_address): Move to comp-unit.c.
14429 (dwarf2_rnglists_process, dwarf2_ranges_process)
14430 (read_attribute_value, dwarf_decode_lines_1)
14431 (var_decode_location, decode_locdesc): Update.
14432 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14433 read.c. Remove "cu" parameter.
14434 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14435 method.
14436
8266302d
TT
144372020-02-08 Tom Tromey <tom@tromey.com>
14438
14439 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14440 (read_indirect_line_string): Update.
14441 * dwarf2/comp-unit.c (read_offset): Remove.
14442 (read_comp_unit_head): Update.
14443 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14444 method.
14445 (read_offset): Don't declare.
14446
4057dfde
TT
144472020-02-08 Tom Tromey <tom@tromey.com>
14448
14449 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14450 * dwarf2/read.c (struct comp_unit_head): Move to
14451 dwarf2/comp-unit.h.
14452 (enum class rcuh_kind): Move to comp-unit.h.
14453 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14454 (read_comp_unit_head, error_check_comp_unit_head)
14455 (read_and_check_comp_unit_head): Move to comp-unit.c.
14456 (read_offset, dwarf_unit_type_name): Likewise.
14457 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14458 (cutu_reader::cutu_reader, read_call_site_scope)
14459 (find_partial_die, follow_die_offset): Update.
14460 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14461
24aa364d
TT
144622020-02-08 Tom Tromey <tom@tromey.com>
14463
14464 * dwarf2/read.c (read_offset_1): Move to leb.c.
14465 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14466 (dwarf_decode_macro_bytes): Update.
14467 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14468 * dwarf2/leb.h (read_offset): Declare.
14469
2c7d5afc
TT
144702020-02-08 Tom Tromey <tom@tromey.com>
14471
14472 * dwarf2/read.c (dwarf2_section_size): Remove.
14473 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14474 Update.
14475 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14476
4075cb26
TT
144772020-02-08 Tom Tromey <tom@tromey.com>
14478
14479 * dwarf2/read.c (read_initial_length): Move to leb.c.
14480 * dwarf2/leb.h (read_initial_length): Declare.
14481 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14482 handle_nonstd parameter.
14483 * dwarf2/frame.c (read_initial_length): Remove.
14484 (decode_frame_entry_1): Update.
14485
09ba997f
TT
144862020-02-08 Tom Tromey <tom@tromey.com>
14487
14488 * dwarf2/loc.c (dwarf2_find_location_expression)
14489 (dwarf_evaluate_loc_desc::get_tls_address)
14490 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14491 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14492 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14493 (dwarf2_compile_property_to_c)
14494 (dwarf2_loc_desc_get_symbol_read_needs)
14495 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14496 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14497 (loclist_describe_location, loclist_tracepoint_var_ref)
14498 (loclist_generate_c_location): Update.
14499 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14500 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14501 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14502 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14503 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14504 (dwarf2_per_cu_data::addr_size)
14505 (dwarf2_per_cu_data::ref_addr_size)
14506 (dwarf2_per_cu_data::text_offset)
14507 (dwarf2_per_cu_data::addr_type): Now methods.
14508 (per_cu_header_read_in): Make per_cu "const".
14509 (dwarf2_version): Remove.
14510 (dwarf2_per_cu_data::int_type): Now a method.
14511 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14512 (set_die_type, read_array_type, read_subrange_index_type)
14513 (read_tag_string_type, read_subrange_type): Update.
14514 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14515 offset_size, ref_addr_size, text_offset, addr_type, version,
14516 objfile, int_type, addr_sized_int_type>: Declare methods.
14517
96c738c0
TT
145182020-02-08 Tom Tromey <tom@tromey.com>
14519
14520 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14521 Move earlier.
14522
8fdd972c
TT
145232020-02-08 Tom Tromey <tom@tromey.com>
14524
14525 * dwarf2/read.h (dwarf_line_debug): Declare.
14526 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14527 * dwarf2/read.c: Move line_header code to new files.
14528 (dwarf_line_debug): No longer static.
14529 * dwarf2/line-header.c: New file.
14530 * dwarf2/line-header.h: New file.
14531
03075812
TT
145322020-02-08 Tom Tromey <tom@tromey.com>
14533
14534 * dwarf2/read.c (struct line_header) <file_full_name,
14535 file_file_name>: Return unique_xmalloc_ptr.
14536 (line_header::file_file_name): Update.
14537 (line_header::file_full_name): Update.
14538 (dw2_get_file_names_reader): Update.
14539 (macro_start_file): Update.
14540
bb822404
TT
145412020-02-08 Tom Tromey <tom@tromey.com>
14542
14543 * dwarf2/read.c (struct line_header) <file_full_name,
14544 file_file_name>: Declare methods.
14545 (dw2_get_file_names_reader): Update.
14546 (file_file_name): Now a method.
14547 (file_full_name): Likewise.
14548 (macro_start_file): Update.
14549
009b64fc
TT
145502020-02-08 Tom Tromey <tom@tromey.com>
14551
14552 * dwarf2/read.c (dwarf_always_disassemble)
14553 (show_dwarf_always_disassemble): Move to loc.c.
14554 (_initialize_dwarf2_read): Move "always-disassemble" registration
14555 to loc.c.
14556 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14557 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14558 static.
14559 (show_dwarf_always_disassemble): Move from read.c.
14560 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14561
5895093f
TT
145622020-02-08 Tom Tromey <tom@tromey.com>
14563
14564 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14565 (create_quick_file_names_table): Return htab_up.
14566 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14567 Update.
14568 * dwarf2/read.h (struct dwarf2_per_objfile)
14569 <quick_file_names_table>: Now htab_up.
14570
b3b32279
TT
145712020-02-08 Tom Tromey <tom@tromey.com>
14572
14573 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14574
1d33d811
TT
145752020-02-08 Tom Tromey <tom@tromey.com>
14576
14577 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14578 Rewrite.
14579 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14580 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14581 (abbrev_table::abbrev_table): No longer inline.
14582 (ABBREV_HASH_SIZE): Remove.
14583 (abbrev_table::m_abbrevs): Now an htab_up.
14584
86de1d91
TT
145852020-02-08 Tom Tromey <tom@tromey.com>
14586
14587 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14588 (cutu_reader): Update.
14589 (build_type_psymtabs_1): Update.
14590 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14591 (abbrev_table::alloc_abbrev): Update.
14592 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14593 (abbrev_table::read): New static method, renamed from
14594 abbrev_table_read_table.
14595 (abbrev_table::alloc_abbrev)
14596 (abbrev_table::add_abbrev): Now private.
14597 (abbrev_table::abbrev_table): Now private.
14598 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14599
0335378b
TT
146002020-02-08 Tom Tromey <tom@tromey.com>
14601
14602 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14603 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14604 htab_up.
14605
48b490f2
TT
146062020-02-08 Tom Tromey <tom@tromey.com>
14607
14608 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14609 htab_up.
14610 (lookup_dwo_unit_in_dwp): Update.
14611 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14612 on obstack.
14613
bc68fb19
TT
146142020-02-08 Tom Tromey <tom@tromey.com>
14615
14616 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14617 obstack.
14618
d15acc42
TT
146192020-02-08 Tom Tromey <tom@tromey.com>
14620
14621 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14622 line_header_hash.
14623 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14624 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14625 Change type to htab_up.
14626
eaa5fa8b
TT
146272020-02-08 Tom Tromey <tom@tromey.com>
14628
14629 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14630 htab_up. Don't allocate on obstack.
14631 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14632 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14633 Change type to htab_up.
14634
b0b6a987
TT
146352020-02-08 Tom Tromey <tom@tromey.com>
14636
14637 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14638 Change type to htab_up.
14639 * dwarf2/read.c (create_signatured_type_table_from_index)
14640 (create_signatured_type_table_from_debug_names)
14641 (create_all_type_units, add_type_unit)
14642 (lookup_dwo_signatured_type, lookup_signatured_type)
14643 (process_skeletonless_type_unit): Update.
14644 (create_debug_type_hash_table, create_debug_types_hash_table):
14645 Change type of types_htab.
14646 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14647 htab_up. Don't allocate on obstack.
14648 (create_cus_hash_table): Change type of cus_htab parameter.
14649 (struct dwo_file) <cus, tus>: Now htab_up.
14650 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14651 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14652 (queue_and_load_all_dwo_tus): Update.
14653 * dwarf2/index-write.c (write_gdbindex): Update.
14654 (write_debug_names): Update.
14655
39856def
TT
146562020-02-08 Tom Tromey <tom@tromey.com>
14657
14658 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14659 dwarf2/read.c. Remove "next" member. Add constructor ntad
14660 destructor.
14661 (struct dwarf2_per_objfile) <queue>: New member.
14662 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14663 dwarf2/read.h.
14664 (dwarf2_queue, dwarf2_queue_tail): Remove.
14665 (class dwarf2_queue_guard): Add parameter to constructor. Use
14666 DISABLE_COPY_AND_ASSIGN.
14667 <m_per_objfile>: New member.
14668 <~dwarf2_queue_guard>: Rewrite.
14669 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14670 Update.
14671 (~dwarf2_queue_item): New.
14672
3e225074
TT
146732020-02-08 Tom Tromey <tom@tromey.com>
14674
14675 * dwarf2/read.c (struct die_info) <has_children>: New member.
14676 (dw2_get_file_names_reader): Remove has_children.
14677 (dw2_get_file_names): Update.
14678 (read_cutu_die_from_dwo): Remove has_children.
14679 (cutu_reader::init_tu_and_read_dwo_dies)
14680 (cutu_reader::cutu_reader): Update.
14681 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14682 Remove has_children.
14683 (build_type_psymtabs_1, process_skeletonless_type_unit)
14684 (load_partial_comp_unit, load_full_comp_unit): Update.
14685 (create_dwo_cu_reader): Remove has_children.
14686 (create_cus_hash_table, read_die_and_children): Update.
14687 (read_full_die_1,read_full_die): Remove has_children.
14688 (read_signatured_type): Update.
14689 (class cutu_reader) <has_children>: Remove.
14690
82ca8957
TT
146912020-02-08 Tom Tromey <tom@tromey.com>
14692
14693 * dwarf2/expr.c: Rename from dwarf2expr.c.
14694 * dwarf2/expr.h: Rename from dwarf2expr.h.
14695 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14696 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14697 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14698 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14699 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14700 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14701 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14702 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14703 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14704 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14705 * dwarf2/loc.c: Rename from dwarf2loc.c.
14706 * dwarf2/loc.h: Rename from dwarf2loc.h.
14707 * dwarf2/read.c: Rename from dwarf2read.c.
14708 * dwarf2/read.h: Rename from dwarf2read.h.
14709 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14710 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14711 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14712 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14713 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14714 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14715 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14716 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14717 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14718 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14719 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14720 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14721 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14722 Update.
14723 * Makefile.in (COMMON_SFILES): Update.
14724 (HFILES_NO_SRCDIR): Update.
14725
9e35d499
TT
147262020-02-08 Tom Tromey <tom@tromey.com>
14727
14728 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14729 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14730
1eba2311
TT
147312020-02-08 Tom Tromey <tom@tromey.com>
14732
14733 * dwarf2read.h (struct die_info): Don't declare.
14734
e41c2da2
TT
147352020-02-08 Tom Tromey <tom@tromey.com>
14736
14737 * dwarf2read.h (die_info_ptr): Remove typedef.
14738
4fc6c0d5
TT
147392020-02-08 Tom Tromey <tom@tromey.com>
14740
14741 * dwarf2read.c (read_call_site_scope)
14742 (handle_data_member_location, dwarf2_add_member_fn)
14743 (mark_common_block_symbol_computed, read_common_block)
14744 (attr_to_dynamic_prop, partial_die_info::read)
14745 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14746 (dwarf2_symbol_mark_computed, set_die_type): Update.
14747 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14748 method.
14749 (attr_form_is_block): Don't declare.
14750 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14751
cd6c91b4
TT
147522020-02-08 Tom Tromey <tom@tromey.com>
14753
14754 * dwarf2read.c (dwarf2_find_base_address, )
14755 (read_call_site_scope, rust_containing_type)
14756 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14757 (handle_data_member_location, dwarf2_add_member_fn)
14758 (get_alignment, read_structure_type, process_structure_scope)
14759 (mark_common_block_symbol_computed, read_common_block)
14760 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14761 (partial_die_info::read, read_attribute_value, new_symbol)
14762 (lookup_die_type, dwarf2_get_ref_die_offset)
14763 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14764 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14765 (dwarf2_symbol_mark_computed): Update.
14766 * dwarf2/attribute.h (struct attribute) <value_as_address,
14767 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14768 methods.
14769 (value_as_address, attr_form_is_section_offset)
14770 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14771 * dwarf2/attribute.c (attribute::value_as_address)
14772 (attribute::form_is_section_offset, attribute::form_is_constant)
14773 (attribute::form_is_ref): Now methods.
14774
162dce55
TT
147752020-02-08 Tom Tromey <tom@tromey.com>
14776
14777 * dwarf2read.c (struct attribute, DW_STRING)
14778 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14779 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14780 (attr_form_is_block, attr_form_is_section_offset)
14781 (attr_form_is_constant, attr_form_is_ref): Move.
14782 * dwarf2/attribute.h: New file.
14783 * dwarf2/attribute.c: New file, from dwarf2read.c.
14784 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14785
3054dd54
TT
147862020-02-08 Tom Tromey <tom@tromey.com>
14787
14788 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14789 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14790 Move.
14791 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14792 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14793 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14794 abbrev.c.
14795 * dwarf2/abbrev.h: New file.
14796 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14797 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14798
96b79293
TT
147992020-02-08 Tom Tromey <tom@tromey.com>
14800
14801 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14802 (dwarf2_section_size, dwarf2_get_section_info)
14803 (create_signatured_type_table_from_debug_names)
14804 (create_addrmap_from_aranges, read_debug_names_from_section)
14805 (get_gdb_index_contents_from_section, read_comp_unit_head)
14806 (error_check_comp_unit_head, read_abbrev_offset)
14807 (create_debug_type_hash_table, init_cu_die_reader)
14808 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14809 (read_comp_units_from_section, create_cus_hash_table)
14810 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14811 (create_dwp_v2_section, dwarf2_rnglists_process)
14812 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14813 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14814 (read_indirect_string_from_dwz, read_addr_index_1)
14815 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14816 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14817 (fill_in_loclist_baton): Update.
14818 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14819 get_containing_section, get_bfd_owner, get_bfd_section,
14820 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14821 (dwarf2_read_section, get_section_name, get_section_file_name)
14822 (get_containing_section, get_section_bfd_owner)
14823 (get_section_bfd_section, get_section_name, get_section_file_name)
14824 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14825 declare.
14826 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14827 (dwarf2_section_info::get_bfd_owner)
14828 (dwarf2_section_info::get_bfd_section)
14829 (dwarf2_section_info::get_name)
14830 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14831 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14832 (dwarf2_section_info::read): Now methods.
14833 * dwarf-index-write.c (class debug_names): Update.
14834
2c86cff9
TT
148352020-02-08 Tom Tromey <tom@tromey.com>
14836
14837 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14838 Move to dwarf2/section.h.
14839 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14840 (get_section_bfd_section, get_section_name)
14841 (get_section_file_name, get_section_id, get_section_flags)
14842 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14843 dwarf2/section.c.
14844 * dwarf2/section.h: New file.
14845 * dwarf2/section.c: New file, from dwarf2read.c.
14846 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14847
f4382c45
TT
148482020-02-08 Tom Tromey <tom@tromey.com>
14849
14850 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14851 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14852 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14853 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14854 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14855 * dwarf2/leb.h: New file, from dwarf2read.c.
14856 * dwarf2/leb.c: New file, from dwarf2read.c.
14857 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14858 Remove.
14859 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14860 (COMMON_SFILES): Add dwarf2/leb.c.
14861
01840b7a
JB
148622020-02-08 Joel Brobecker <brobecker@adacore.com>
14863
14864 GDB 9.1 released.
14865
dfcb27e4
IB
148662020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14867
14868 PR gdb/25190:
aac66a4c
SM
14869 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14870 * gdb/remote.c (remote_console_output): Update.
14871 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14872 (ui_file_puts): ...this.
14873 * gdb/ui-file.h (ui_file_puts): Add declaration.
14874 * gdb/utils.c (emit_style_escape): Update.
14875 (flush_wrap_buffer): Update.
14876 (fputs_maybe_filtered): Update.
14877 (fputs_unfiltered): Add function.
dfcb27e4 14878
faa17681
IB
148792020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14880
aac66a4c
SM
14881 * gdb/event-loop.c (gdb_wait_for_event): Update.
14882 * gdb/printcmd.c (printf_command): Update.
14883 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14884 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14885 (gdb_os_flush_stderr): Update.
14886 * gdb/remote.c (remote_console_output): Update.
14887 * gdb/ui-file.c (gdb_flush): Rename to...
14888 (ui_file_flush): ...this.
14889 (stderr_file::write): Update.
14890 (stderr_file::puts): Update.
14891 * gdb/ui-file.h (gdb_flush): Rename to...
14892 (ui_file_flush): ...this.
14893 * gdb/utils.c (gdb_flush): Add function.
14894 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14895
5abbbe1d
TT
148962020-02-07 Tom Tromey <tromey@adacore.com>
14897
14898 PR breakpoints/24915:
14899 * source.c (find_and_open_source): Do not check basenames_may_differ.
14900
919adfe8
TT
149012020-02-07 Tom Tromey <tom@tromey.com>
14902
14903 * README: Update gdbserver documentation.
14904 * gdbserver: Move to top level.
14905 * configure.tgt (build_gdbserver): Remove.
14906 * configure.ac: Remove --enable-gdbserver.
14907 * configure: Rebuild.
14908 * Makefile.in (distclean): Don't mention gdbserver.
14909
1d5d29e7
SV
149102020-02-06 Shahab Vahedi <shahab@synopsys.com>
14911
14912 * source-cache.c (source_cache::ensure): Surround
14913 get_plain_source_lines with a try/catch.
14914 (source_cache::get_line_charpos): Get rid of try/catch
14915 and only check for the return value of "ensure".
14916 * tui/tui-source.c (tui_source_window::set_contents):
14917 Simplify "nlines" calculation.
14918
6eb1129c
SV
149192020-02-06 Shahab Vahedi <shahab@synopsys.com>
14920
14921 * MAINTAINERS (Write After Approval): Add myself.
14922
c6a42d11
CB
149232020-02-05 Christian Biesinger <cbiesinger@google.com>
14924
14925 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14926 function call.
14927
c8ecdda6
CB
149282020-02-05 Christian Biesinger <cbiesinger@google.com>
14929
14930 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14931
f6480e70
MR
149322020-02-05 Maciej W. Rozycki <macro@wdc.com>
14933
14934 * nat/riscv-linux-tdesc.h: New file.
14935 * nat/riscv-linux-tdesc.c: New file, taking code from...
14936 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14937 ... here.
14938 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14939 NATDEPFILES.
14940
dcc9fbc6
AB
149412020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14942
14943 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14944 we don't set the fake simulator ptid to the null_ptid.
14945
719546c4
SM
149462020-02-03 Simon Marchi <simon.marchi@efficios.com>
14947
14948 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14949 * gdbthread.h (class thread_info) <resumed>: Likewise.
14950 * infrun.c (resume_1): Likewise.
14951 (proceed): Likewise.
14952 (infrun_thread_stop_requested): Likewise.
14953 (stop_all_threads): Likewise.
14954 (handle_inferior_event): Likewise.
14955 (restart_threads): Likewise.
14956 (finish_step_over): Likewise.
14957 (keep_going_stepped_thread): Likewise.
14958 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14959 (linux_handle_extended_wait): Likewise.
14960 * record-btrace.c (get_thread_current_frame_id): Likewise.
14961 * record-full.c (record_full_wait_1): Likewise.
14962 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14963 * target.c (target_resume): Likewise.
14964 * thread.c (set_running_thread): Likewise.
14965
e409c542
AKS
149662020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14967
14968 * f-valprint.c (f77_print_array_1): Changed datatype of index
14969 variable to LONGEST from int to enable it to contain bound
14970 values correctly.
14971
ee98c0da
MR
149722020-02-03 Maciej W. Rozycki <macro@wdc.com>
14973
14974 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14975 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14976 offsets according to FLEN determined.
14977 (riscv_linux_nat_target::read_description): Determine FLEN
14978 dynamically.
14979 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14980 according to FLEN determined.
14981 (riscv_linux_nat_target::store_registers): Likewise.
14982
aa66aac4
SV
149832020-02-01 Shahab Vahedi <shahab@synopsys.com>
14984
14985 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14986 when reg->group is empty and reggroup is not.
14987
fd9faca8
TT
149882020-01-31 Tom Tromey <tromey@adacore.com>
14989
14990 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14991 Call beneath target's mourn_inferior after unpushing.
14992
42330a68
AB
149932020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14994
14995 PR tui/9765
14996 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14997 have enough lines to fill the screen, still return the lowest
14998 address we found.
14999
7a27a45b
AB
150002020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15001
15002 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15003 '-', '<', and '>' commands.
15004
c47f70e2
PA
150052020-01-29 Pedro Alves <palves@redhat.com>
15006 Sergio Durigan Junior <sergiodj@redhat.com>
15007
15008 * infcmd.c (construct_inferior_arguments): Assert that
15009 'argc' is greater than 0.
15010
5133a315
LM
150112020-01-29 Luis Machado <luis.machado@linaro.org>
15012
15013 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15014 (BRK_INSN_MASK): Define to 0xd4200000.
15015 (aarch64_program_breakpoint_here_p): New function.
15016 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15017 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15018 breakpoint.c.
15019 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15020 breakpoint.h
15021 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15022 call gdbarch_program_breakpoint_here_p.
15023 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15024 default_program_breakpoint_here_p, changed return type to bool and
15025 simplified.
15026 * breakpoint.h (program_breakpoint_here): Moved prototype to
15027 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15028 return type to bool.
15029 * gdbarch.c: Regenerate.
15030 * gdbarch.h: Regenerate.
15031 * gdbarch.sh (program_breakpoint_here_p): New method.
15032 * infrun.c (handle_signal_stop): Call
15033 gdbarch_program_breakpoint_here_p.
15034
168f8c6b
TT
150352020-01-26 Tom Tromey <tom@tromey.com>
15036
15037 * ctfread.c (struct ctf_fp_info): Reindent.
15038 (_initialize_ctfread): Remove.
15039
128a391f
TT
150402020-01-26 Tom Tromey <tom@tromey.com>
15041
15042 * psymtab.c (partial_map_expand_apply)
15043 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15044 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15045 (psym_print_stats, psym_expand_symtabs_for_function)
15046 (psym_map_symbol_filenames, psym_map_matching_symbols)
15047 (psym_expand_symtabs_matching)
15048 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15049 (maintenance_check_psymtabs): Use new methods.
15050 * psympriv.h (struct partial_symtab) <readin_p,
15051 get_compunit_symtab>: New methods.
15052 <readin, compunit_symtab>: Remove members.
15053 (struct standard_psymtab): New.
15054 (struct legacy_psymtab): Derive from standard_psymtab.
15055 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15056 standard_psymtab.
15057 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15058
0494dbec
TT
150592020-01-26 Tom Tromey <tom@tromey.com>
15060
15061 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15062 read_dependencies. Add assert.
15063 * psymtab.c (partial_symtab::read_dependencies): New method.
15064 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15065 method.
15066 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15067 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15068 read_dependencies.
15069 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15070 Add assert.
15071
8566b89b
TT
150722020-01-26 Tom Tromey <tom@tromey.com>
15073
15074 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15075 Call expand_psymtab.
15076 (xcoff_read_symtab): Call expand_psymtab.
15077 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15078 legacy_expand_psymtab.
15079 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15080 method.
15081 (struct legacy_psymtab) <expand_psymtab>: Implement.
15082 <legacy_expand_psymtab>: New member.
15083 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15084 (parse_partial_symbols): Set legacy_expand_psymtab.
15085 (psymtab_to_symtab_1): Change argument order. Call
15086 expand_psymtab.
15087 (new_psymtab): Set legacy_expand_psymtab.
15088 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15089 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15090 expand_psymtab.
15091 (dwarf2_psymtab::expand_psymtab): Rename from
15092 psymtab_to_symtab_1. Call expand_psymtab.
15093 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15094 (dbx_end_psymtab): Likewise.
15095 (dbx_psymtab_to_symtab_1): Change argument order. Call
15096 expand_psymtab.
15097 (dbx_read_symtab): Call expand_psymtab.
15098 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15099 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15100 (ctf_psymtab::read_symtab): Call expand_psymtab.
15101
077cbab2
TT
151022020-01-26 Tom Tromey <tom@tromey.com>
15103
15104 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15105 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15106 messages.
15107 * mdebugread.c (mdebug_read_symtab): Remove prints.
15108 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15109 assert.
15110 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15111
891813be
TT
151122020-01-26 Tom Tromey <tom@tromey.com>
15113
15114 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15115 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15116 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15117 legacy_symtab.
15118 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15119 * psymtab.c (psymtab_to_symtab): Call method.
15120 (dump_psymtab): Update.
15121 * psympriv.h (struct partial_symtab): Add virtual destructor.
15122 <read_symtab>: New method.
15123 (struct legacy_symtab): New.
15124 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15125 (struct pst_map) <pst>: Now a legacy_psymtab.
15126 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15127 (new_psymtab): Use legacy_psymtab.
15128 * dwarf2read.h (struct dwarf2_psymtab): New.
15129 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15130 * dwarf2read.c (dwarf2_create_include_psymtab)
15131 (dwarf2_build_include_psymtabs, create_type_unit_group)
15132 (create_partial_symtab, process_psymtab_comp_unit_reader)
15133 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15134 (set_partial_user): Use dwarf2_psymtab.
15135 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15136 (psymtab_to_symtab_1, process_full_comp_unit)
15137 (process_full_type_unit, dwarf2_ranges_read)
15138 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15139 (dwarf_decode_lines): Use dwarf2_psymtab.
15140 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15141 (add_address_entry_worker, write_one_signatured_type)
15142 (recursively_count_psymbols, recursively_write_psymbols)
15143 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15144 (write_debug_names): Likewise.
15145 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15146 <pst>: Now a legacy_psymtab.
15147 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15148 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15149 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15150 * ctfread.c (struct ctf_psymtab): New.
15151 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15152 ctf_psymtab.
15153 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15154 (create_partial_symtab): Return a ctf_psymtab.
15155 (scan_partial_symbols): Update.
15156
c3693a1d
TT
151572020-01-26 Tom Tromey <tom@tromey.com>
15158
15159 * xcoffread.c (xcoff_start_psymtab): Use new.
15160 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15161 renamed from start_psymtab_common.
15162 * psympriv.h (struct partial_symtab): Add new constructor.
15163 (start_psymtab_common): Don't declare.
15164 * mdebugread.c (parse_partial_symbols): Use new.
15165 * dwarf2read.c (create_partial_symtab): Use new.
15166 * dbxread.c (start_psymtab): Use new.
15167 * ctfread.c (create_partial_symtab): Use new.
15168
32caafd0
TT
151692020-01-26 Tom Tromey <tom@tromey.com>
15170
15171 * xcoffread.c (xcoff_end_psymtab): Use new.
15172 * psymtab.c (start_psymtab_common): Use new.
15173 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15174 Update.
15175 * psympriv.h (struct partial_symtab): Add parameters to
15176 constructor. Don't inline.
15177 (allocate_psymtab): Don't declare.
15178 * mdebugread.c (new_psymtab): Use new.
15179 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15180 * dbxread.c (dbx_end_psymtab): Use new.
15181
abaa2f23
TT
151822020-01-26 Tom Tromey <tom@tromey.com>
15183
15184 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15185 allocate_psymtab. Update documentation.
15186 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15187 allocate_psymtab. Do not use new.
15188 (allocate_psymtab): Use new. Update.
15189
6d94535f
TT
151902020-01-26 Tom Tromey <tom@tromey.com>
15191
15192 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15193 * psymtab.c (psym_print_stats): Update.
15194 * psympriv.h (struct partial_symtab) <readin,
15195 psymtabs_addrmap_supported, anonymous>: Now bool.
15196 * mdebugread.c (psymtab_to_symtab_1): Update.
15197 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15198 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15199 (process_full_comp_unit, process_full_type_unit): Update.
15200 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15201 * ctfread.c (psymtab_to_symtab): Update.
15202
6f17252b
TT
152032020-01-26 Tom Tromey <tom@tromey.com>
15204
15205 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15206 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15207 * psymtab.c (psymtab_storage): Delete psymtabs.
15208 (psymtab_storage::allocate_psymtab): Use new.
15209 (psymtab_storage::discard_psymtab): Use delete.
15210 * psympriv.h (struct partial_symtab): Add constructor and
15211 initializers.
15212
f6f1cebc
TT
152132020-01-26 Tom Tromey <tom@tromey.com>
15214
15215 * machoread.c: Do not include psympriv.h.
15216
e47e48f6
PW
152172020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15218
15219 * NEWS: Mention the new option and the set/show commands.
15220
a2fedca9
PW
152212020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15222
15223 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15224 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15225 (validate_exec_file): New variables, enums, functions.
15226 (exec_file_locate_attach, print_section_info): Style the filenames.
15227 (_initialize_exec): Install show_exec_file_mismatch_command and
15228 set_exec_file_mismatch_command.
15229 * gdbcore.h (validate_exec_file): Declare.
15230 * infcmd.c (attach_command): Call validate_exec_file.
15231 * remote.c ( remote_target::remote_add_inferior): Likewise.
15232
7ffa82e1
AB
152332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15234
15235 * frame.c (find_frame_sal): Move call to get_next_frame into more
15236 inner scope.
15237 * inline-frame.c (inilne_state) <inline_state>: Update argument
15238 types.
15239 (inilne_state) <skipped_symbol>: Rename to...
15240 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15241 (skip_inline_frames): Build vector of skipped symbols and use this
15242 to reate the inline_state.
15243 (inline_skipped_symbol): Add a comment and some assertions, fetch
15244 skipped symbol from the list.
15245
3d92a3e3
AB
152462020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15247
15248 * buildsym.c (lte_is_less_than): Delete.
15249 (buildsym_compunit::end_symtab_with_blockvector): Create local
15250 lambda function to sort line table entries, and use
15251 std::stable_sort instead of std::sort.
15252 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15253 markers when looking for a previous line.
15254
94a72be7
AB
152552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15256
15257 * dwarf2read.c (lnp_state_machine::record_line): Include
15258 end_sequence parameter in debug print out. Record the line if we
15259 are at an end_sequence marker even if it's not the start of a
15260 statement.
15261 * symmisc.c (maintenance_print_one_line_table): Print end of
15262 sequence markers with 'END' not '0'.
15263
53af73bf
PA
152642020-01-24 Pedro Alves <palves@redhat.com>
15265
15266 PR gdb/25410
15267 * thread.c (scoped_restore_current_thread::restore): Use
15268 switch_to_inferior_no_thread.
15269 * exec.c: Include "progspace-and-thread.h".
15270 (add_target_sections, remove_target_sections):
15271 scoped_restore_current_pspace_and_thread instead of
15272 scoped_restore_current_thread.
15273 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15274 and aspace to the inferior before calling clone_program_space.
15275 Remove stale comment.
15276
3050c6f4
CB
152772020-01-24 Christian Biesinger <cbiesinger@google.com>
15278
15279 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15280 (arm_netbsd_nat_target::fetch_registers): ...this.
15281 (arm_nbsd_nat_target::store_registers): Rename to...
15282 (arm_netbsd_nat_target::store_registers): ...this.
15283
73685c7e
CB
152842020-01-24 Christian Biesinger <cbiesinger@google.com>
15285
15286 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15287 register_t.
15288
89203d40
CB
152892020-01-24 Christian Biesinger <cbiesinger@google.com>
15290
15291 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15292 Update comment.
15293 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15294 Likewise.
15295 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15296 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15297 the correct replacement (iterate_over_regset_sections).
15298 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15299 Update comment.
15300
1ba1ac88
AB
153012020-01-24 Graham Markall <graham.markall@embecosm.com>
15302
15303 PR gdb/23718
15304 * gdb/python/python.c (execute_gdb_command): Call
15305 async_enable_stdin in catch block.
15306
f3364a6d
AB
153072020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15308
15309 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15310 SWITCH_THRU_ALL_UIS.
15311
733d0a67
AB
153122020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15313
15314 PR tui/9765
15315 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15316 comment, add extra parameter, and update to store previous symbol
15317 when appropriate.
15318 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15319 add extra parameter.
15320 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15321 remove unneeded parameter, add try/catch around gdb_print_insn,
15322 rewrite to add items to asm_lines vector.
15323 (tui_find_backward_disassembly_start_address): New function.
15324 (tui_find_disassembly_address): Updated throughout.
15325 (tui_disasm_window::set_contents): Update for changes to
15326 tui_disassemble.
15327 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15328 number of lines to scroll.
15329
b3b3bada
SM
153302020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15331
15332 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15333 (SECT_OFF_DATA): Likewise.
15334 (SECT_OFF_RODATA): Likewise.
15335 (SECT_OFF_TEXT): Likewise.
15336 (SECT_OFF_BSS): Likewise.
15337 (struct objfile) <text_section_offset, data_section_offset>: New
15338 methods.
15339 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15340 objfile::text_section_offset.
15341 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15342 * coffread.c (coff_symtab_read): Likewise.
15343 (enter_linenos): Likewise.
15344 (process_coff_symbol): Likewise.
15345 * ctfread.c (get_objfile_text_range): Likewise.
15346 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15347 Use objfile::data_section_offset.
15348 * dwarf2-frame.c (execute_cfa_program): Use
15349 objfile::text_section_offset.
15350 (dwarf2_frame_find_fde): Likewise.
15351 * dwarf2read.c (create_addrmap_from_index): Likewise.
15352 (create_addrmap_from_aranges): Likewise.
15353 (dw2_find_pc_sect_compunit_symtab): Likewise.
15354 (process_psymtab_comp_unit_reader): Likewise.
15355 (add_partial_symbol): Likewise.
15356 (add_partial_subprogram): Likewise.
15357 (process_full_comp_unit): Likewise.
15358 (read_file_scope): Likewise.
15359 (read_func_scope): Likewise.
15360 (read_lexical_block_scope): Likewise.
15361 (read_call_site_scope): Likewise.
15362 (dwarf2_rnglists_process): Likewise.
15363 (dwarf2_ranges_process): Likewise.
15364 (dwarf2_ranges_read): Likewise.
15365 (dwarf_decode_lines_1): Likewise.
15366 (new_symbol): Likewise.
15367 (dwarf2_fetch_die_loc_sect_off): Likewise.
15368 (dwarf2_per_cu_text_offset): Likewise.
15369 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15370 * hppa-tdep.c (read_unwind_info): Likewise.
15371 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15372 * psympriv.h (struct partial_symtab): Likewise.
15373 * psymtab.c (find_pc_sect_psymtab): Likewise.
15374 * solib-svr4.c (enable_break): Likewise.
15375 * stap-probe.c (relocate_address): Use
15376 objfile::data_section_offset.
15377 * xcoffread.c (enter_line_range): Use
15378 objfile::text_section_offset.
15379 (read_xcoff_symtab): Likewise.
15380
ab53f382
SM
153812020-01-23 Simon Marchi <simon.marchi@efficios.com>
15382
15383 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15384 declaration to narrower scopes.
15385
e7eee665
SM
153862020-01-23 Simon Marchi <simon.marchi@efficios.com>
15387
15388 * darwin-nat.h (struct darwin_exception_msg, enum
15389 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15390 Move up.
15391 (class darwin_nat_target) <wait_1, check_new_threads,
15392 decode_exception_message, decode_message, stop_inferior,
15393 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15394 * darwin-nat.c (darwin_check_new_threads): Rename to...
15395 (darwin_nat_target::check_new_threads): ... this.
15396 (darwin_suspend_inferior_it): Remove.
15397 (darwin_decode_exception_message): Rename to...
15398 (darwin_nat_target::decode_exception_message): ... this.
15399 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15400 (darwin_decode_message): Rename to...
15401 (darwin_nat_target::decode_message): ... this.
15402 (cancel_breakpoint): Rename to...
15403 (darwin_nat_target::cancel_breakpoint): ... this.
15404 (darwin_wait): Rename to...
15405 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15406 instead of iterate_over_inferiors.
15407 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15408 (darwin_stop_inferior): Rename to...
15409 (darwin_nat_target::stop_inferior): ... this.
15410 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15411 (darwin_init_thread_list): Rename to...
15412 (darwin_nat_target::init_thread_list): ... this.
15413 (darwin_ptrace_him): Rename to...
15414 (darwin_nat_target::ptrace_him): ... this.
15415 (darwin_nat_target::create_inferior): Pass lambda function to
15416 fork_inferior.
15417 (darwin_nat_target::detach): Call stop_inferior instead of
15418 darwin_stop_inferior.
15419 * fork-inferior.h (fork_inferior): Change init_trace_fun
15420 parameter to gdb::function_view.
15421 * fork-inferior.c (fork_inferior): Likewise.
15422
c162ed3e
HD
154232020-01-23 Hannes Domani <ssbssa@yahoo.de>
15424
15425 * i386-cygwin-tdep.c (core_process_module_section): Update.
15426 * windows-nat.c (struct lm_info_windows): Add text_offset.
15427 (windows_xfer_shared_libraries): Update.
15428 * windows-tdep.c (windows_xfer_shared_library):
15429 Add text_offset_cached argument.
15430 * windows-tdep.h (windows_xfer_shared_library): Update.
15431
a1237872
SM
154322020-01-21 Simon Marchi <simon.marchi@efficios.com>
15433
15434 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15435
b3ee6dd9
SM
154362020-01-21 Simon Marchi <simon.marchi@efficios.com>
15437
15438 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15439 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15440 replace with range-based for.
15441 (gdbsim_interrupt_inferior): Remove.
15442 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15443 with a range-based for. Inline code from
15444 gdbsim_interrupt_inferior.
15445
f9fac3c8
SM
154462020-01-21 Simon Marchi <simon.marchi@efficios.com>
15447
15448 * infrun.c (proceed): Fix indentation.
15449
f6474de9
TT
154502020-01-21 Tom Tromey <tromey@adacore.com>
15451
15452 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15453 * python/python.c (python_extension_ops): Update.
15454 (gdbpy_colorize): New function.
15455 * python/lib/gdb/__init__.py (colorize): New function.
15456 * extension.h (ext_lang_colorize): Declare.
15457 * extension.c (ext_lang_colorize): New function.
15458 * extension-priv.h (struct extension_language_ops) <colorize>: New
15459 member.
15460 * cli/cli-style.c (_initialize_cli_style): Update help text.
15461
f0c702d4
LM
154622020-01-21 Luis Machado <luis.machado@linaro.org>
15463
15464 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15465 <cond>: Change type to bool.
15466 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15467 (aarch64_displaced_step_cb): Likewise.
15468 (aarch64_displaced_step_tb): Likewise.
15469
1ab139e5
LM
154702020-01-21 Luis Machado <luis.machado@linaro.org>
15471
15472 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15473 output.
15474
0c271889
LM
154752020-01-21 Luis Machado <luis.machado@linaro.org>
15476
15477 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15478 <pc_adjust>: Adjust the documentation.
15479 (aarch64_displaced_step_fixup): Check if PC really moved before
15480 adjusting it.
15481
4d89c1c7
TT
154822020-01-19 Tom Tromey <tom@tromey.com>
15483
15484 * disasm.c (~gdb_disassembler): New destructor.
15485 (gdb_buffered_insn_length): Call disassemble_free_target.
15486 * disasm.h (class gdb_disassembler): Declare destructor. Use
15487 DISABLE_COPY_AND_ASSIGN.
15488
c0ab21c2
TT
154892020-01-19 Tom Tromey <tom@tromey.com>
15490
15491 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15492 (die_reader_func_ftype): Remove.
15493 (cutu_reader): New class.
15494 (dw2_get_file_names_reader): Remove "data" parameter.
15495 (dw2_get_file_names): Use cutu_reader.
15496 (create_debug_type_hash_table): Update.
15497 (read_cutu_die_from_dwo): Update comment.
15498 (lookup_dwo_unit): Add dwo_name parameter.
15499 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15500 die_reader_func_ftype and data parameters.
15501 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15502 Remove die_reader_func_ftype and data parameters.
15503 (~cutu_reader): New; from init_cutu_and_read_dies.
15504 (cutu_reader::cutu_reader): Rename from
15505 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15506 and data parameters.
15507 (init_cutu_and_read_dies_simple): Remove.
15508 (struct process_psymtab_comp_unit_data): Remove.
15509 (process_psymtab_comp_unit_reader): Remove data parameter; add
15510 want_partial_unit and pretend_language parameters.
15511 (process_psymtab_comp_unit): Use cutu_reader.
15512 (build_type_psymtabs_reader): Remove data parameter.
15513 (build_type_psymtabs_1): Use cutu_reader.
15514 (process_skeletonless_type_unit): Likewise.
15515 (load_partial_comp_unit_reader): Remove.
15516 (load_partial_comp_unit): Use cutu_reader.
15517 (load_full_comp_unit_reader): Remove.
15518 (load_full_comp_unit): Use cutu_reader.
15519 (struct create_dwo_cu_data): Remove.
15520 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15521 dwo_unit parameters.
15522 (create_cus_hash_table): Use cutu_reader.
15523 (struct dwarf2_read_addr_index_data): Remove.
15524 (dwarf2_read_addr_index_reader): Remove.
15525 (dwarf2_read_addr_index): Use cutu_reader.
15526 (read_signatured_type_reader): Remove.
15527 (read_signatured_type): Use cutu_reader.
15528
45bbae5c
TT
155292020-01-19 Tom Tromey <tom@tromey.com>
15530
15531 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15532 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15533 (tui_wrefresh): Declare.
15534 * tui/tui-wingeneral.c (suppress_output): New global.
15535 (tui_suppress_output, ~tui_suppress_output): New constructor and
15536 destructor.
15537 (tui_wrefresh): New function.
15538 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15539 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15540 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15541 method.
15542 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15543 tui_wrefresh.
15544 (tui_data_window::no_refresh): New method.
15545 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15546 (tui_reg_command): Use tui_suppress_output
15547 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15548 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15549 method.
15550 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15551
4f13c1c0
TT
155522020-01-19 Tom Tromey <tom@tromey.com>
15553
15554 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15555 Handle case where symtab is null.
15556
fa47e446
SM
155572020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15558
15559 * linux-fork.c (one_fork_p): Simplify.
15560
26f42329
SM
155612020-01-17 Simon Marchi <simon.marchi@efficios.com>
15562
15563 * top.c (struct qt_args): Remove.
15564 (kill_or_detach): Change return type to void, replace `void *`
15565 parameter with a proper one.
15566 (print_inferior_quit_action): Likewise.
15567 (quit_confirm): Use range-based for loop to iterate over inferiors.
15568 (quit_force): Likewise.
15569
a9ac81b1
SM
155702020-01-17 Simon Marchi <simon.marchi@efficios.com>
15571
15572 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15573 `void *` parameter with proper parameters.
15574 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15575 (print_one_inferior): Change return type to void, replace `void *`
15576 parameter with proper parameters.
15577 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15578 inferiors.
15579 (get_other_inferior): Remove.
15580 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15581 inferiors.
15582
788eca49
SM
155832020-01-17 Simon Marchi <simon.marchi@efficios.com>
15584
15585 * mi/mi-interp.c (report_initial_inferior): Remove.
15586 (mi_interp::init): Use range-based for to iterate over inferiors.
15587
d9bc85b6
SM
155882020-01-17 Simon Marchi <simon.marchi@efficios.com>
15589
15590 * python/py-inferior.c (build_inferior_list): Remove.
15591 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15592
40c94099
CB
155932020-01-16 Christian Biesinger <cbiesinger@google.com>
15594
15595 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15596 (btrace_stitch_trace): Likewise.
15597 * charset.c (intermediate_encoding): Likewise (vaild).
15598 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15599 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15600 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15601
e0cdfe3c
HD
156022020-01-16 Hannes Domani <ssbssa@yahoo.de>
15603
15604 * windows-tdep.c (windows_get_tlb_type):
15605 Add rtl_user_process_parameters type.
15606
790f1718 156072020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15608 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15609
15610 PR build/24805
15611 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15612 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15613 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15614 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15615 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15616 (ps_plog): Redeclare exported functions with default visibility.
15617
3112ed97
NA
156182020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15619
15620 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15621 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15622
8dc3273e
SM
156232020-01-15 Simon Marchi <simon.marchi@efficios.com>
15624
15625 * infcmd.c (post_create_inferior): Use get_thread_regcache
15626 instead of get_current_regcache.
15627
ff47f4f0
TT
156282020-01-14 Tom Tromey <tom@tromey.com>
15629
15630 PR symtab/12535:
15631 * python/python.c (gdbpy_decode_line): Treat empty string the same
15632 as no argument.
15633
975f45b7
TT
156342020-01-14 Tom Tromey <tom@tromey.com>
15635
15636 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15637
25e57356
TT
156382020-01-14 Tom Tromey <tom@tromey.com>
15639
15640 * nat/linux-btrace.c: Don't include <config.h>.
15641 * nat/linux-ptrace.c: Don't include <config.h>.
15642 * nat/x86-linux-dregs.c: Don't include <config.h>.
15643
05ea2a05
TT
156442020-01-14 Tom Tromey <tom@tromey.com>
15645
15646 * configure: Rebuild.
15647 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15648
01027315
TT
156492020-01-14 Tom Tromey <tom@tromey.com>
15650
15651 * nat/x86-linux-dregs.c: Include configh.h.
15652 * nat/linux-ptrace.c: Include configh.h.
15653 * nat/linux-btrace.c: Include configh.h.
15654 * defs.h: Include config.h, bfd.h.
15655 * configure.ac: Don't source common.host.
15656 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15657 * configure: Rebuild.
15658 * acinclude.m4: Update path.
15659 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15660 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15661 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15662 (CLIBS): Add LIBSUPPORT.
15663 (CDEPS): Likewise.
15664 (COMMON_SFILES): Remove gdbsupport files.
15665 (HFILES_NO_SRCDIR): Likewise.
15666 (stamp-version): Update path to create-version.sh.
15667 (ALLDEPFILES): Remove gdbsupport files.
15668
b2ceabe8
TT
156692020-01-14 Tom Tromey <tom@tromey.com>
15670
15671 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15672 USE_WIN32API when needed.
15673 * configure.ac (USE_WIN32API): Don't define.
15674 (WIN32LIBS): Use WIN32APILIBS.
15675 * configure: Rebuild.
15676
25c51f71
TT
156772020-01-14 Tom Tromey <tom@tromey.com>
15678
15679 * configure: Rebuild.
15680 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15681
717c684d
BE
156822020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15683
15684 * skip.c (skip_function_command): Make skip w/o arguments use the
15685 name of the inlined function if pc is inside any inlined function.
15686
7da6a5b9
LM
156872020-01-14 Luis Machado <luis.machado@linaro.org>
15688
15689 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15690 * infrun.c (resume_1): Likewise.
15691 (handle_inferior_event): Remove stale comment.
15692 * linux-nat.c (linux_nat_target::resume): Update comments.
15693 (save_stop_reason): Likewise.
15694 (linux_nat_filter_event): Likewise.
15695 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15696
44e4c775
AB
156972020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15698
15699 * elfread.c (record_minimal_symbol): Set section index to 0 for
15700 non-allocatable sections.
15701
18a8505e
AT
15702
157032020-01-13 Ali Tamur <tamur@google.com>
15704
15705 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15706 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15707 to gdb::optional. Update comments.
15708 (dwo_file): Update comments.
15709 (read_attribute): Update API to take an additional out parameter,
15710 need_reprocess. This is used to mark attributes that need other
15711 attributes (e.g. str_offsets_base) for correct computation which may not
15712 have been read yet.
15713 (read_attribute_reprocess): New function declaration.
15714 (read_addr_index): Likewise.
15715 (read_dwo_str_index): Likewise.
15716 (read_stub_str_index): Likewise.
15717 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15718 (lookup_addr_base): New function definition.
15719 (lookup_ranges_base): Likewise.
15720 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15721 lookup_ranges_base.
15722 (init_cutu_and_read_dies): Update comments.
15723 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15724 unit. This is used to inherit parent's str_offsets_base and addr_base.
15725 Update comments.
15726 (init_cutu_and_read_dies_simple): Reflect API changes.
15727 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15728 (create_cus_hash_table): Change API to take parent compile unit.
15729 Reflect API changes.
15730 (open_and_init_dwo_file): Reflect API changes.
15731 (dwarf2_get_pc_bounds): Update comments.
15732 (dwarf2_record_block_ranges): Likewise.
15733 (read_full_die_1): Change implementation to reprocess attributes that
15734 need str_offsets_base and addr_base.
15735 (partial_die_info::read): Likewise.
15736 (read_attribute_reprocess): New function definition.
15737 (read_attribute_value): Change API to take an additional out parameter,
15738 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15739 when a non-dwo compile unit has index based attributes.
15740 (read_attribute): Reflect API changes.
15741 (read_addr_index_1): Reflect API changes. Update comments.
15742 (dwarf2_read_addr_index_data): Reflect API changes.
15743 (dwarf2_read_addr_index): Likewise.
15744 (read_str_index): Change API and implementation. This becomes a helper
15745 to be used by the new string index related methods. Update error
15746 message and comments.
15747 (read_dwo_str_index): New function definition.
15748 (read_stub_str_index): Likewise.
15749 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15750 * symfile.h (dwarf2_debug_sections): Likewise.
15751 * xcoffread.c (dwarf2_debug_sections): Likewise.
15752
0cac9354
SM
157532020-01-13 Simon Marchi <simon.marchi@efficios.com>
15754
15755 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15756 core_reg_sect type to gdb_byte *.
15757 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15758 * cris-tdep.c (fetch_core_registers): Likewise.
15759 * corelow.c (core_target::get_core_register_section): Change
15760 type of `contents` to gdb::byte_vector.
15761
9a6d629c
AB
157622020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15763
15764 * tui/tui-wingeneral.c (box_win): Position the title in the center
15765 of the border.
15766
d8b2f9e3
SM
157672020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15768
15769 * corelow.c (core_target::get_core_register_section): Use
15770 std::vector instead of alloca.
15771
bb564c58
SM
157722020-01-13 Simon Marchi <simon.marchi@efficios.com>
15773
15774 * warning.m4: Add -Wmissing-declarations to build_warnings.
15775 * configure: Re-generate.
15776
6b366111
SM
157772020-01-13 Simon Marchi <simon.marchi@efficios.com>
15778
15779 * python/python.c (init__gdb_module): Add declaration.
15780
6c265988
SM
157812020-01-13 Simon Marchi <simon.marchi@efficios.com>
15782
15783 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15784 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15785 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15786 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15787 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15788 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15789 * ada-exp.y (_initialize_ada_exp): Add declaration.
15790 * ada-lang.c (_initialize_ada_language): Add declaration.
15791 * ada-tasks.c (_initialize_tasks): Add declaration.
15792 * agent.c (_initialize_agent): Add declaration.
15793 * aix-thread.c (_initialize_aix_thread): Add declaration.
15794 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15795 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15796 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15797 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15798 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15799 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15800 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15801 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15802 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15803 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15804 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15805 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15806 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15807 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15808 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15809 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15810 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15811 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15812 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15813 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15814 * annotate.c (_initialize_annotate): Add declaration.
15815 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15816 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15817 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15818 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15819 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15820 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15821 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15822 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15823 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15824 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15825 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15826 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15827 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15828 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15829 * auto-load.c (_initialize_auto_load): Add declaration.
15830 * auxv.c (_initialize_auxv): Add declaration.
15831 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15832 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15833 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15834 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15835 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15836 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15837 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15838 * breakpoint.c (_initialize_breakpoint): Add declaration.
15839 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15840 * btrace.c (_initialize_btrace): Add declaration.
15841 * charset.c (_initialize_charset): Add declaration.
15842 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15843 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15844 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15845 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15846 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15847 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15848 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15849 * coffread.c (_initialize_coffread): Add declaration.
15850 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15851 * compile/compile.c (_initialize_compile): Add declaration.
15852 * complaints.c (_initialize_complaints): Add declaration.
15853 * completer.c (_initialize_completer): Add declaration.
15854 * copying.c (_initialize_copying): Add declaration.
15855 * corefile.c (_initialize_core): Add declaration.
15856 * corelow.c (_initialize_corelow): Add declaration.
15857 * cp-abi.c (_initialize_cp_abi): Add declaration.
15858 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15859 * cp-support.c (_initialize_cp_support): Add declaration.
15860 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15861 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15862 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15863 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15864 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15865 * ctfread.c (_initialize_ctfread): Add declaration.
15866 * d-lang.c (_initialize_d_language): Add declaration.
15867 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15868 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15869 * dbxread.c (_initialize_dbxread): Add declaration.
15870 * dcache.c (_initialize_dcache): Add declaration.
15871 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15872 * disasm.c (_initialize_disasm): Add declaration.
15873 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15874 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15875 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15876 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15877 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15878 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15879 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15880 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15881 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15882 * elfread.c (_initialize_elfread): Add declaration.
15883 * exec.c (_initialize_exec): Add declaration.
15884 * extension.c (_initialize_extension): Add declaration.
15885 * f-lang.c (_initialize_f_language): Add declaration.
15886 * f-valprint.c (_initialize_f_valprint): Add declaration.
15887 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15888 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15889 * filesystem.c (_initialize_filesystem): Add declaration.
15890 * findcmd.c (_initialize_mem_search): Add declaration.
15891 * findvar.c (_initialize_findvar): Add declaration.
15892 * fork-child.c (_initialize_fork_child): Add declaration.
15893 * frame-base.c (_initialize_frame_base): Add declaration.
15894 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15895 * frame.c (_initialize_frame): Add declaration.
15896 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15897 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15898 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15899 * gcore.c (_initialize_gcore): Add declaration.
15900 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15901 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15902 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15903 * gdbarch.c (_initialize_gdbarch): Add declaration.
15904 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15905 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15906 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15907 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15908 * go-lang.c (_initialize_go_language): Add declaration.
15909 * go32-nat.c (_initialize_go32_nat): Add declaration.
15910 * guile/guile.c (_initialize_guile): Add declaration.
15911 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15912 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15913 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15914 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15915 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15916 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15917 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15918 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15919 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15920 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15921 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15922 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15923 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15924 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15925 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15926 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15927 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15928 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15929 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15930 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15931 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15932 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15933 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15934 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15935 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15936 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15937 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15938 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15939 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15940 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15941 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15942 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15943 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15944 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15945 * infcall.c (_initialize_infcall): Add declaration.
15946 * infcmd.c (_initialize_infcmd): Add declaration.
15947 * inflow.c (_initialize_inflow): Add declaration.
15948 * infrun.c (_initialize_infrun): Add declaration.
15949 * interps.c (_initialize_interpreter): Add declaration.
15950 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15951 * jit.c (_initialize_jit): Add declaration.
15952 * language.c (_initialize_language): Add declaration.
15953 * linux-fork.c (_initialize_linux_fork): Add declaration.
15954 * linux-nat.c (_initialize_linux_nat): Add declaration.
15955 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15956 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15957 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15958 * m2-lang.c (_initialize_m2_language): Add declaration.
15959 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15960 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15961 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15962 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15963 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15964 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15965 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15966 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15967 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15968 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15969 * machoread.c (_initialize_machoread): Add declaration.
15970 * macrocmd.c (_initialize_macrocmd): Add declaration.
15971 * macroscope.c (_initialize_macroscope): Add declaration.
15972 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15973 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15974 * maint.c (_initialize_maint_cmds): Add declaration.
15975 * mdebugread.c (_initialize_mdebugread): Add declaration.
15976 * memattr.c (_initialize_mem): Add declaration.
15977 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15978 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15979 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15980 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15981 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15982 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15983 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15984 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15985 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15986 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15987 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15988 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15989 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15990 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15991 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15992 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15993 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15994 * mipsread.c (_initialize_mipsread): Add declaration.
15995 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15996 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15997 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15998 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15999 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16000 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16001 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16002 * nto-procfs.c (_initialize_procfs): Add declaration.
16003 * objc-lang.c (_initialize_objc_language): Add declaration.
16004 * observable.c (_initialize_observer): Add declaration.
16005 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16006 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16007 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16008 * osabi.c (_initialize_gdb_osabi): Add declaration.
16009 * osdata.c (_initialize_osdata): Add declaration.
16010 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16011 * parse.c (_initialize_parse): Add declaration.
16012 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16013 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16014 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16015 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16016 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16017 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16018 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16019 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16020 * printcmd.c (_initialize_printcmd): Add declaration.
16021 * probe.c (_initialize_probe): Add declaration.
16022 * proc-api.c (_initialize_proc_api): Add declaration.
16023 * proc-events.c (_initialize_proc_events): Add declaration.
16024 * proc-service.c (_initialize_proc_service): Add declaration.
16025 * procfs.c (_initialize_procfs): Add declaration.
16026 * producer.c (_initialize_producer): Add declaration.
16027 * psymtab.c (_initialize_psymtab): Add declaration.
16028 * python/python.c (_initialize_python): Add declaration.
16029 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16030 * record-btrace.c (_initialize_record_btrace): Add declaration.
16031 * record-full.c (_initialize_record_full): Add declaration.
16032 * record.c (_initialize_record): Add declaration.
16033 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16034 * regcache.c (_initialize_regcache): Add declaration.
16035 * reggroups.c (_initialize_reggroup): Add declaration.
16036 * remote-notif.c (_initialize_notif): Add declaration.
16037 * remote-sim.c (_initialize_remote_sim): Add declaration.
16038 * remote.c (_initialize_remote): Add declaration.
16039 * reverse.c (_initialize_reverse): Add declaration.
16040 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16041 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16042 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16043 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16044 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16045 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16046 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16047 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16048 Add declaration.
16049 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16050 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16051 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16052 * rust-exp.y (_initialize_rust_exp): Add declaration.
16053 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16054 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16055 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16056 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16057 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16058 * score-tdep.c (_initialize_score_tdep): Add declaration.
16059 * ser-go32.c (_initialize_ser_dos): Add declaration.
16060 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16061 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16062 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16063 * ser-uds.c (_initialize_ser_socket): Add declaration.
16064 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16065 * serial.c (_initialize_serial): Add declaration.
16066 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16067 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16068 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16069 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16070 * skip.c (_initialize_step_skip): Add declaration.
16071 * sol-thread.c (_initialize_sol_thread): Add declaration.
16072 * solib-aix.c (_initialize_solib_aix): Add declaration.
16073 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16074 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16075 * solib-frv.c (_initialize_frv_solib): Add declaration.
16076 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16077 * solib-target.c (_initialize_solib_target): Add declaration.
16078 * solib.c (_initialize_solib): Add declaration.
16079 * source-cache.c (_initialize_source_cache): Add declaration.
16080 * source.c (_initialize_source): Add declaration.
16081 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16082 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16083 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16084 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16085 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16086 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16087 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16088 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16089 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16090 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16091 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16092 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16093 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16094 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16095 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16096 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16097 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16098 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16099 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16100 * stabsread.c (_initialize_stabsread): Add declaration.
16101 * stack.c (_initialize_stack): Add declaration.
16102 * stap-probe.c (_initialize_stap_probe): Add declaration.
16103 * std-regs.c (_initialize_frame_reg): Add declaration.
16104 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16105 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16106 * symfile.c (_initialize_symfile): Add declaration.
16107 * symmisc.c (_initialize_symmisc): Add declaration.
16108 * symtab.c (_initialize_symtab): Add declaration.
16109 * target.c (_initialize_target): Add declaration.
16110 * target-connection.c (_initialize_target_connection): Add
16111 declaration.
16112 * target-dcache.c (_initialize_target_dcache): Add declaration.
16113 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16114 * thread.c (_initialize_thread): Add declaration.
16115 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16116 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16117 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16118 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16119 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16120 * tracectf.c (_initialize_ctf): Add declaration.
16121 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16122 * tracefile.c (_initialize_tracefile): Add declaration.
16123 * tracepoint.c (_initialize_tracepoint): Add declaration.
16124 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16125 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16126 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16127 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16128 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16129 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16130 * tui/tui.c (_initialize_tui): Add declaration.
16131 * typeprint.c (_initialize_typeprint): Add declaration.
16132 * ui-style.c (_initialize_ui_style): Add declaration.
16133 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16134 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16135 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16136 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16137 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16138 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16139 * unittests/filtered_iterator-selftests.c
16140 (_initialize_filtered_iterator_selftests): Add declaration.
16141 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16142 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16143 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16144 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16145 * unittests/main-thread-selftests.c
16146 (_initialize_main_thread_selftests): Add declaration.
16147 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16148 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16149 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16150 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16151 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16152 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16153 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16154 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16155 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16156 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16157 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16158 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16159 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16160 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16161 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16162 declaration.
16163 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16164 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16165 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16166 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16167 * user-regs.c (_initialize_user_regs): Add declaration.
16168 * utils.c (_initialize_utils): Add declaration.
16169 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16170 * valops.c (_initialize_valops): Add declaration.
16171 * valprint.c (_initialize_valprint): Add declaration.
16172 * value.c (_initialize_values): Add declaration.
16173 * varobj.c (_initialize_varobj): Add declaration.
16174 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16175 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16176 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16177 * windows-nat.c (_initialize_windows_nat): Add declaration.
16178 (_initialize_check_for_gdb_ini): Add declaration.
16179 (_initialize_loadable): Add declaration.
16180 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16181 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16182 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16183 * xcoffread.c (_initialize_xcoffread): Add declaration.
16184 * xml-support.c (_initialize_xml_support): Add declaration.
16185 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16186 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16187 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16188 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16189
e2de1eec
SM
161902020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16191
16192 * regformats/regdat.sh: Generate declaration for init function.
16193
e0037b4c
SM
161942020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16195
16196 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16197 up.
16198 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16199 close_one_inferior>: New methods.
16200 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16201 pass down target to find_inferior_pid.
16202 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16203 Pass down target to find_inferior_ptid.
16204 (gdbsim_target::create_inferior): Pass down target to
16205 add_thread_silent.
16206 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16207 target down to find_inferior_ptid and switch_to_thread.
16208 (gdbsim_target::close): Update to call close_one_inferior.
16209 (struct resume_data): Remove.
16210 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16211 directly, rather than through a void pointer.
16212 (gdbsim_target::resume): Update to call resume_one_inferior.
16213
58920b5b
SM
162142020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16215
16216 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16217
4ec89149
PA
162182020-01-12 Pedro Alves <palves@redhat.com>
16219
16220 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16221 directly for the current inferior instead of
16222 discard_all_inferiors.
16223 (discard_all_inferiors): Delete.
16224
7c392d1d
TT
162252020-01-11 Tom Tromey <tom@tromey.com>
16226
16227 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16228 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16229 deprecated_safe_get_selected_frame.
16230
d9ebdab7
TBA
162312020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16232
16233 * inferior.c (print_inferior): Switch inferior before printing it.
16234
f3c469b9
PA
162352020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16236 Pedro Alves <palves@redhat.com>
16237
16238 * progspace-and-thread.c (switch_to_program_space_and_thread):
16239 Assert there's an inferior for PSPACE. Use
16240 switch_to_inferior_no_thread to switch the inferior too.
16241 * progspace.c (program_space::~program_space): Call
16242 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16243 (program_space::free_all_objfiles): Don't call clear_symtab_users
16244 here.
16245 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16246
65c574f6
PA
162472020-01-10 Pedro Alves <palves@redhat.com>
16248
16249 * NEWS: Mention multi-target debugging, "info connections", and
16250 "add-inferior -no-connection".
16251
2f4fcf00
PA
162522020-01-10 Pedro Alves <palves@redhat.com>
16253
16254 * infrun.c: Include "target-connection.h".
16255 (check_multi_target_resumption): New.
16256 (proceed): Call it.
16257 * target-connection.c (make_target_connection_string): Make
16258 extern.
16259 * target-connection.h (make_target_connection_string): Declare.
16260
121b3efd
PA
162612020-01-10 Pedro Alves <palves@redhat.com>
16262
16263 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16264 * inferior.c (uiout_field_connection): New function.
16265 (print_inferior): Add new "connection-id" column.
16266 (add_inferior_command): Show connection number/string of added
16267 inferior.
16268 * process-stratum-target.h
16269 (process_stratum_target::connection_string): New virtual method.
16270 (process_stratum_target::connection_number): New field.
16271 * remote.c (remote_target::connection_string): New override.
16272 * target-connection.c: New file.
16273 * target-connection.h: New file.
16274 * target.c (decref_target): Remove process_stratum targets from
16275 the connection list.
16276 (target_stack::push): Add process_stratum targets to the
16277 connection list.
16278
4f837581
PA
162792020-01-10 Pedro Alves <palves@redhat.com>
16280
16281 Revert:
16282 2016-04-12 Pedro Alves <palves@redhat.com>
16283 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16284 Remove references to name.
16285 * serial.h (struct serial) <name>: Delete.
16286
f4ec508e
PA
162872020-01-10 Pedro Alves <palves@redhat.com>
16288
16289 * gdbarch-selftests.c (register_to_value_test): Remove "target
16290 already pushed" check.
16291
5b6d1e4f
PA
162922020-01-10 Pedro Alves <palves@redhat.com>
16293 John Baldwin <jhb@FreeBSD.org>
16294
16295 * aarch64-linux-nat.c
16296 (aarch64_linux_nat_target::thread_architecture): Adjust.
16297 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16298 (task_command_1): Likewise.
16299 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16300 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16301 (aix_thread_target::store_registers)
16302 (aix_thread_target::thread_alive): Adjust.
16303 * amd64-fbsd-tdep.c: Include "inferior.h".
16304 (amd64fbsd_get_thread_local_address): Pass down target.
16305 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16306 thread's gdbarch instead of target_gdbarch.
16307 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16308 get_last_target_status.
16309 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16310 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16311 inferiors.
16312 (update_inserted_breakpoint_locations): Skip if inferiors with no
16313 execution.
16314 (update_global_location_list): When handling moribund locations,
16315 find representative inferior for location's pspace, and use thread
16316 count of its process_stratum target.
16317 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16318 * bsd-uthread.c (bsd_uthread_target::wait): Use
16319 as_process_stratum_target and adjust thread_change_ptid and
16320 add_thread calls.
16321 (bsd_uthread_target::update_thread_list): Use
16322 as_process_stratum_target and adjust find_thread_ptid,
16323 thread_change_ptid and add_thread calls.
16324 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16325 find_thread_ptid call.
16326 * corelow.c (add_to_thread_list): Adjust add_thread call.
16327 (core_target_open): Adjust add_thread_silent and thread_count
16328 calls.
16329 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16330 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16331 * event-top.c (async_disconnect): Pop targets from all inferiors.
16332 * exec.c (add_target_sections): Push exec target on all inferiors
16333 sharing the program space.
16334 (remove_target_sections): Remove the exec target from all
16335 inferiors sharing the program space.
16336 (exec_on_vfork): New.
16337 * exec.h (exec_on_vfork): Declare.
16338 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16339 Pass it down.
16340 (fbsd_nat_target::update_thread_list): Adjust.
16341 (fbsd_nat_target::resume): Adjust.
16342 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16343 down.
16344 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16345 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16346 get_thread_arch_regcache call.
16347 * fork-child.c (gdb_startup_inferior): Pass target down to
16348 startup_inferior and set_executing.
16349 * gdbthread.h (struct process_stratum_target): Forward declare.
16350 (add_thread, add_thread_silent, add_thread_with_info)
16351 (in_thread_list): Add process_stratum_target parameter.
16352 (find_thread_ptid(inferior*, ptid_t)): New overload.
16353 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16354 parameter.
16355 (all_threads()): Delete overload.
16356 (all_threads, all_non_exited_threads): Add process_stratum_target
16357 parameter.
16358 (all_threads_safe): Use brace initialization.
16359 (thread_count): Add process_stratum_target parameter.
16360 (set_resumed, set_running, set_stop_requested, set_executing)
16361 (threads_are_executing, finish_thread_state): Add
16362 process_stratum_target parameter.
16363 (switch_to_thread): Use is_current_thread.
16364 * i386-fbsd-tdep.c: Include "inferior.h".
16365 (i386fbsd_get_thread_local_address): Pass down target.
16366 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16367 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16368 have_inferiors check.
16369 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16370 (inf_ptrace_target::attach): Adjust.
16371 * infcall.c (run_inferior_call): Adjust.
16372 * infcmd.c (run_command_1): Pass target to
16373 scoped_finish_thread_state.
16374 (proceed_thread_callback): Skip inferiors with no execution.
16375 (continue_command): Rename 'all_threads' local to avoid hiding
16376 'all_threads' function. Adjust get_last_target_status call.
16377 (prepare_one_step): Adjust set_running call.
16378 (signal_command): Use user_visible_resume_target. Compare thread
16379 pointers instead of inferior_ptid.
16380 (info_program_command): Adjust to pass down target.
16381 (attach_command): Mark target's 'thread_executing' flag.
16382 (stop_current_target_threads_ns): New, factored out from ...
16383 (interrupt_target_1): ... this. Switch inferior before making
16384 target calls.
16385 * inferior-iter.h
16386 (struct all_inferiors_iterator, struct all_inferiors_range)
16387 (struct all_inferiors_safe_range)
16388 (struct all_non_exited_inferiors_range): Filter on
16389 process_stratum_target too. Remove explicit.
16390 * inferior.c (inferior::inferior): Push dummy target on target
16391 stack.
16392 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16393 Add process_stratum_target parameter, and pass it down.
16394 (have_live_inferiors): Adjust.
16395 (switch_to_inferior_and_push_target): New.
16396 (add_inferior_command, clone_inferior_command): Handle
16397 "-no-connection" parameter. Use
16398 switch_to_inferior_and_push_target.
16399 (_initialize_inferior): Mention "-no-connection" option in
16400 the help of "add-inferior" and "clone-inferior" commands.
16401 * inferior.h: Include "process-stratum-target.h".
16402 (interrupt_target_1): Use bool.
16403 (struct inferior) <push_target, unpush_target, target_is_pushed,
16404 find_target_beneath, top_target, process_target, target_at,
16405 m_stack>: New.
16406 (discard_all_inferiors): Delete.
16407 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16408 (all_inferiors, all_non_exited_inferiors): Add
16409 process_stratum_target parameter.
16410 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16411 (target_last_proc_target): New global.
16412 (follow_fork_inferior): Push target on new inferior. Pass target
16413 to add_thread_silent. Call exec_on_vfork. Handle target's
16414 reference count.
16415 (follow_fork): Adjust get_last_target_status call. Also consider
16416 target.
16417 (follow_exec): Push target on new inferior.
16418 (struct execution_control_state) <target>: New field.
16419 (user_visible_resume_target): New.
16420 (do_target_resume): Call target_async.
16421 (resume_1): Set target's threads_executing flag. Consider resume
16422 target.
16423 (commit_resume_all_targets): New.
16424 (proceed): Also consider resume target. Skip threads of inferiors
16425 with no execution. Commit resumtion in all targets.
16426 (start_remote): Pass current inferior to wait_for_inferior.
16427 (infrun_thread_stop_requested): Consider target as well. Pass
16428 thread_info pointer to clear_inline_frame_state instead of ptid.
16429 (infrun_thread_thread_exit): Consider target as well.
16430 (random_pending_event_thread): New inferior parameter. Use it.
16431 (do_target_wait): Rename to ...
16432 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16433 down.
16434 (threads_are_resumed_pending_p, do_target_wait): New.
16435 (prepare_for_detach): Adjust calls.
16436 (wait_for_inferior): New inferior parameter. Handle it. Use
16437 do_target_wait_1 instead of do_target_wait.
16438 (fetch_inferior_event): Adjust. Switch to representative
16439 inferior. Pass target down.
16440 (set_last_target_status): Add process_stratum_target parameter.
16441 Save target in global.
16442 (get_last_target_status): Add process_stratum_target parameter and
16443 handle it.
16444 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16445 (context_switch): Check inferior_ptid == null_ptid before calling
16446 inferior_thread().
16447 (get_inferior_stop_soon): Pass down target.
16448 (wait_one): Rename to ...
16449 (poll_one_curr_target): ... this.
16450 (struct wait_one_event): New.
16451 (wait_one): New.
16452 (stop_all_threads): Adjust.
16453 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16454 event's target.
16455 (switch_back_to_stepped_thread): Also consider target.
16456 (print_stop_event): Update.
16457 (normal_stop): Update. Also consider the resume target.
16458 * infrun.h (wait_for_inferior): Remove declaration.
16459 (user_visible_resume_target): New declaration.
16460 (get_last_target_status, set_last_target_status): New
16461 process_stratum_target parameter.
16462 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16463 process_stratum_target parameter, and use it.
16464 (clear_inline_frame_state (thread_info*)): New.
16465 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16466 process_stratum_target parameter.
16467 (clear_inline_frame_state (thread_info*)): Declare.
16468 * linux-fork.c (delete_checkpoint_command): Pass target down to
16469 find_thread_ptid.
16470 (checkpoint_command): Adjust.
16471 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16472 instead of just tweaking inferior_ptid.
16473 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16474 (exit_lwp): Pass target down to find_thread_ptid.
16475 (attach_proc_task_lwp_callback): Pass target down to
16476 add_thread/set_running/set_executing.
16477 (linux_nat_target::attach): Pass target down to
16478 thread_change_ptid.
16479 (get_detach_signal): Pass target down to find_thread_ptid.
16480 Consider last target status's target.
16481 (linux_resume_one_lwp_throw, resume_lwp)
16482 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16483 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16484 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16485 (linux_nat_target::async_wait_fd): New.
16486 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16487 target down.
16488 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16489 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16490 * linux-thread-db.c (struct thread_db_info::process_target): New
16491 field.
16492 (add_thread_db_info): Save target.
16493 (get_thread_db_info): New process_stratum_target parameter. Also
16494 match target.
16495 (delete_thread_db_info): New process_stratum_target parameter.
16496 Also match target.
16497 (thread_from_lwp): Adjust to pass down target.
16498 (thread_db_notice_clone): Pass down target.
16499 (check_thread_db_callback): Pass down target.
16500 (try_thread_db_load_1): Always push the thread_db target.
16501 (try_thread_db_load, record_thread): Pass target down.
16502 (thread_db_target::detach): Pass target down. Always unpush the
16503 thread_db target.
16504 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16505 target down. Always unpush the thread_db target.
16506 (find_new_threads_callback, thread_db_find_new_threads_2)
16507 (thread_db_target::update_thread_list): Pass target down.
16508 (thread_db_target::pid_to_str): Pass current inferior down.
16509 (thread_db_target::get_thread_local_address): Pass target down.
16510 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16511 target down.
16512 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16513 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16514 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16515 (procfs_init_inferior): Rename to ...
16516 (procfs_target::procfs_init_inferior): ... this and adjust.
16517 (procfs_target::create_inferior, procfs_notice_thread)
16518 (procfs_do_thread_registers): Adjust.
16519 * ppc-fbsd-tdep.c: Include "inferior.h".
16520 (ppcfbsd_get_thread_local_address): Pass down target.
16521 * proc-service.c (ps_xfer_memory): Switch current inferior and
16522 program space as well.
16523 (get_ps_regcache): Pass target down.
16524 * process-stratum-target.c
16525 (process_stratum_target::thread_address_space)
16526 (process_stratum_target::thread_architecture): Pass target down.
16527 * process-stratum-target.h
16528 (process_stratum_target::threads_executing): New field.
16529 (as_process_stratum_target): New.
16530 * ravenscar-thread.c
16531 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16532 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16533 down.
16534 * record-btrace.c (record_btrace_target::info_record): Adjust.
16535 (record_btrace_target::record_method)
16536 (record_btrace_target::record_is_replaying)
16537 (record_btrace_target::fetch_registers)
16538 (get_thread_current_frame_id, record_btrace_target::resume)
16539 (record_btrace_target::wait, record_btrace_target::stop): Pass
16540 target down.
16541 * record-full.c (record_full_wait_1): Switch to event thread.
16542 Pass target down.
16543 * regcache.c (regcache::regcache)
16544 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16545 process_stratum_target parameter and handle it.
16546 (current_thread_target): New global.
16547 (get_thread_regcache): Add process_stratum_target parameter and
16548 handle it. Switch inferior before calling target method.
16549 (get_thread_regcache): Pass target down.
16550 (get_thread_regcache_for_ptid): Pass target down.
16551 (registers_changed_ptid): Add process_stratum_target parameter and
16552 handle it.
16553 (registers_changed_thread, registers_changed): Pass target down.
16554 (test_get_thread_arch_aspace_regcache): New.
16555 (current_regcache_test): Define a couple local test_target_ops
16556 instances and use them for testing.
16557 (readwrite_regcache): Pass process_stratum_target parameter.
16558 (cooked_read_test, cooked_write_test): Pass mock_target down.
16559 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16560 (get_thread_arch_aspace_regcache): Add process_stratum_target
16561 parameter.
16562 (regcache::target): New method.
16563 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16564 (regcache::registers_changed_ptid): Add process_stratum_target
16565 parameter.
16566 (regcache::m_target): New field.
16567 (registers_changed_ptid): Add process_stratum_target parameter.
16568 * remote.c (remote_state::supports_vCont_probed): New field.
16569 (remote_target::async_wait_fd): New method.
16570 (remote_unpush_and_throw): Add remote_target parameter.
16571 (get_current_remote_target): Adjust.
16572 (remote_target::remote_add_inferior): Push target.
16573 (remote_target::remote_add_thread)
16574 (remote_target::remote_notice_new_inferior)
16575 (get_remote_thread_info): Pass target down.
16576 (remote_target::update_thread_list): Skip threads of inferiors
16577 bound to other targets. (remote_target::close): Don't discard
16578 inferiors. (remote_target::add_current_inferior_and_thread)
16579 (remote_target::process_initial_stop_replies)
16580 (remote_target::start_remote)
16581 (remote_target::remote_serial_quit_handler): Pass down target.
16582 (remote_target::remote_unpush_target): New remote_target
16583 parameter. Unpush the target from all inferiors.
16584 (remote_target::remote_unpush_and_throw): New remote_target
16585 parameter. Pass it down.
16586 (remote_target::open_1): Check whether the current inferior has
16587 execution instead of checking whether any inferior is live. Pass
16588 target down.
16589 (remote_target::remote_detach_1): Pass down target. Use
16590 remote_unpush_target.
16591 (extended_remote_target::attach): Pass down target.
16592 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16593 (remote_target::append_resumption): Pass down target.
16594 (remote_target::append_pending_thread_resumptions)
16595 (remote_target::remote_resume_with_hc, remote_target::resume)
16596 (remote_target::commit_resume): Pass down target.
16597 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16598 (remote_target::interrupt_query)
16599 (remote_target::remove_new_fork_children)
16600 (remote_target::check_pending_events_prevent_wildcard_vcont)
16601 (remote_target::remote_parse_stop_reply)
16602 (remote_target::process_stop_reply): Pass down target.
16603 (first_remote_resumed_thread): New remote_target parameter. Pass
16604 it down.
16605 (remote_target::wait_as): Pass down target.
16606 (unpush_and_perror): New remote_target parameter. Pass it down.
16607 (remote_target::readchar, remote_target::remote_serial_write)
16608 (remote_target::getpkt_or_notif_sane_1)
16609 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16610 down target.
16611 (remote_target::mourn_inferior): Pass down target. Use
16612 remote_unpush_target.
16613 (remote_target::core_of_thread)
16614 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16615 (remote_target::pid_to_exec_file)
16616 (remote_target::thread_handle_to_thread_info): Pass down target.
16617 (remote_target::async_wait_fd): New.
16618 * riscv-fbsd-tdep.c: Include "inferior.h".
16619 (riscv_fbsd_get_thread_local_address): Pass down target.
16620 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16621 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16622 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16623 Adjust.
16624 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16625 * solib-svr4.c (enable_break): Pass down target.
16626 * spu-multiarch.c (parse_spufs_run): Pass down target.
16627 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16628 * target-delegates.c: Regenerate.
16629 * target.c (g_target_stack): Delete.
16630 (current_top_target): Return the current inferior's top target.
16631 (target_has_execution_1): Refer to the passed-in inferior's top
16632 target.
16633 (target_supports_terminal_ours): Check whether the initial
16634 inferior was already created.
16635 (decref_target): New.
16636 (target_stack::push): Incref/decref the target.
16637 (push_target, push_target, unpush_target): Adjust.
16638 (target_stack::unpush): Defref target.
16639 (target_is_pushed): Return bool. Adjust to refer to the current
16640 inferior's target stack.
16641 (dispose_inferior): Delete, and inline parts ...
16642 (target_preopen): ... here. Only dispose of the current inferior.
16643 (target_detach): Hold strong target reference while detaching.
16644 Pass target down.
16645 (target_thread_name): Add assertion.
16646 (target_resume): Pass down target.
16647 (target_ops::beneath, find_target_at): Adjust to refer to the
16648 current inferior's target stack.
16649 (get_dummy_target): New.
16650 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16651 has a thread running.
16652 (initialize_targets): Rename to ...
16653 (_initialize_target): ... this.
16654 * target.h: Include "gdbsupport/refcounted-object.h".
16655 (struct target_ops): Inherit refcounted_object.
16656 (target_ops::shortname, target_ops::longname): Make const.
16657 (target_ops::async_wait_fd): New method.
16658 (decref_target): Declare.
16659 (struct target_ops_ref_policy): New.
16660 (target_ops_ref): New typedef.
16661 (get_dummy_target): Declare function.
16662 (target_is_pushed): Return bool.
16663 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16664 (all_matching_threads_iterator::all_matching_threads_iterator):
16665 Handle filter target.
16666 * thread-iter.h (struct all_matching_threads_iterator, struct
16667 all_matching_threads_range, class all_non_exited_threads_range):
16668 Filter by target too. Remove explicit.
16669 * thread.c (threads_executing): Delete.
16670 (inferior_thread): Pass down current inferior.
16671 (clear_thread_inferior_resources): Pass down thread pointer
16672 instead of ptid_t.
16673 (add_thread_silent, add_thread_with_info, add_thread): Add
16674 process_stratum_target parameter. Use it for thread and inferior
16675 searches.
16676 (is_current_thread): New.
16677 (thread_info::deletable): Use it.
16678 (find_thread_ptid, thread_count, in_thread_list)
16679 (thread_change_ptid, set_resumed, set_running): New
16680 process_stratum_target parameter. Pass it down.
16681 (set_executing): New process_stratum_target parameter. Pass it
16682 down. Adjust reference to 'threads_executing'.
16683 (threads_are_executing): New process_stratum_target parameter.
16684 Adjust reference to 'threads_executing'.
16685 (set_stop_requested, finish_thread_state): New
16686 process_stratum_target parameter. Pass it down.
16687 (switch_to_thread): Also match inferior.
16688 (switch_to_thread): New process_stratum_target parameter. Pass it
16689 down.
16690 (update_threads_executing): Reimplement.
16691 * top.c (quit_force): Pop targets from all inferior.
16692 (gdb_init): Don't call initialize_targets.
16693 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16694 Declare.
16695 (windows_add_thread, windows_delete_thread): Adjust.
16696 (get_windows_debug_event): Rename to ...
16697 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16698 * tracefile-tfile.c (tfile_target_open): Pass down target.
16699 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16700 Forward declare.
16701 (switch_to_thread): Add process_stratum_target parameter.
16702 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16703 parameter. Use it.
16704 (mi_on_resume): Pass target down.
16705 * nat/fork-inferior.c (startup_inferior): Add
16706 process_stratum_target parameter. Pass it down.
16707 * nat/fork-inferior.h (startup_inferior): Add
16708 process_stratum_target parameter.
16709 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16710
75c6c844
PA
167112020-01-10 Pedro Alves <palves@redhat.com>
16712
16713 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16714 directly. Instead find the first thread in the thread list and
16715 use switch_to_thread.
16716
78f2c40a
PA
167172020-01-10 Pedro Alves <palves@redhat.com>
16718
16719 * remote.c (remote_target::remote_add_inferior): Don't bind a
16720 process to the current inferior if the current inferior is already
16721 bound to a process.
16722
e7af6c70
TBA
167232020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16724 Pedro Alves <palves@redhat.com>
16725
16726 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16727 If no process is specified, return null_ptid instead of
16728 inferior_ptid.
16729 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16730 TARGET_WAITKIND_SIGNALLED with no pid.
16731
31ba933e
PA
167322020-01-10 Pedro Alves <palves@redhat.com>
16733
16734 * remote.c (first_remote_resumed_thread): New.
16735 (remote_target::wait_as): Use it as default event_ptid instead of
16736 inferior_ptid.
16737
735fc2ca
PA
167382020-01-10 Pedro Alves <palves@redhat.com>
16739
16740 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16741
c17e02e1
PA
167422020-01-10 Pedro Alves <palves@redhat.com>
16743
16744 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16745 not -1.
16746
ab1ddbcf
PA
167472020-01-10 Pedro Alves <palves@redhat.com>
16748
16749 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16750 ptid to get_last_target_status.
16751 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16752 ptid to get_last_target_status.
16753 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16754 get_last_target_status.
16755 (info_program_command): Don't pass a target_waitstatus to
16756 get_last_target_status.
16757 * infrun.c (init_wait_for_inferior): Use
16758 nullify_last_target_wait_ptid.
16759 (get_last_target_status): Handle nullptr arguments.
16760 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16761 (print_stop_event): Don't pass a ptid to get_last_target_status.
16762 (normal_stop): Don't pass a ptid to get_last_target_status.
16763 * infrun.h (get_last_target_status, set_last_target_status): Move
16764 comments here and update.
16765 (nullify_last_target_wait_ptid): Declare.
16766 * linux-fork.c (fork_load_infrun_state): Remove local extern
16767 declaration of nullify_last_target_wait_ptid.
16768 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16769 to get_last_target_status.
16770
f3f8ece4
PA
167712020-01-10 Pedro Alves <palves@redhat.com>
16772
16773 * gdbthread.h (scoped_restore_current_thread)
16774 <dont_restore, restore, m_dont_restore>: Declare.
16775 * thread.c (thread_alive): Add assertion. Return bool.
16776 (switch_to_thread_if_alive): New.
16777 (prune_threads): Switch inferior/thread.
16778 (print_thread_info_1): Switch thread before calling target methods.
16779 (scoped_restore_current_thread::restore): New, factored out from
16780 ...
16781 (scoped_restore_current_thread::~scoped_restore_current_thread):
16782 ... this.
16783 (scoped_restore_current_thread::scoped_restore_current_thread):
16784 Add assertion.
16785 (thread_apply_all_command, thread_select): Use
16786 switch_to_thread_if_alive.
16787 * infrun.c (proceed, restart_threads, handle_signal_stop)
16788 (switch_back_to_stepped_thread): Switch current thread before
16789 calling target methods.
16790
db2d40f7
PA
167912020-01-10 Pedro Alves <palves@redhat.com>
16792
16793 * inferior.c (switch_to_inferior_no_thread): New function,
16794 factored out from ...
16795 (inferior_command): ... here.
16796 * inferior.h (switch_to_inferior_no_thread): Declare.
16797 * mi/mi-main.c (run_one_inferior): Use
16798 switch_to_inferior_no_thread.
16799
bd420a2d
PA
168002020-01-10 Pedro Alves <palves@redhat.com>
16801
16802 * infcmd.c (kill_command): Remove dead code.
16803
ddf5db90
PA
168042020-01-10 Pedro Alves <palves@redhat.com>
16805
16806 * remote.c (remote_target::mourn_inferior): No longer check
16807 whether the target is running.
16808
5018ce90
PA
168092020-01-10 Pedro Alves <palves@redhat.com>
16810
16811 * corelow.c (core_target::has_execution): Change parameter type to
16812 inferior pointer.
16813 * inferior.c (number_of_live_inferiors): Use
16814 inferior::has_execution instead of target_has_execution_1.
16815 * inferior.h (inferior::has_execution): New.
16816 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16817 inferior::has_execution instead of target_has_execution_1.
16818 * process-stratum-target.c
16819 (process_stratum_target::has_execution): Change parameter type to
16820 inferior pointer. Check the inferior's PID instead of
16821 inferior_ptid.
16822 * process-stratum-target.h
16823 (process_stratum_target::has_execution): Change parameter type to
16824 inferior pointer.
16825 * record-full.c (record_full_core_target::has_execution): Change
16826 parameter type to inferior pointer.
16827 * target.c (target_has_execution_1): Change parameter type to
16828 inferior pointer.
16829 (target_has_execution_current): Adjust.
16830 * target.h (target_ops::has_execution): Change parameter type to
16831 inferior pointer.
16832 (target_has_execution_1): Change parameter type to inferior
16833 pointer. Change return type to bool.
16834 * tracefile.h (tracefile_target::has_execution): Change parameter
16835 type to inferior pointer.
16836
74375d18
PA
168372020-01-10 Pedro Alves <palves@redhat.com>
16838
16839 * exceptions.c (print_flush): Remove current_top_target() check.
16840
acdf84a6
PA
168412020-01-10 Pedro Alves <palves@redhat.com>
16842
16843 * remote.c (show_remote_exec_file): Show the current inferior's
16844 exec-file instead of the command variable's value.
16845
ec506636
PA
168462020-01-10 Pedro Alves <palves@redhat.com>
16847
16848 * record-full.c (record_full_resume_ptid): New global.
16849 (record_full_target::resume): Set it.
16850 (record_full_wait_1): Use record_full_resume_ptid instead of
16851 inferior_ptid.
16852
873657b9
PA
168532020-01-10 Pedro Alves <palves@redhat.com>
16854
16855 * gdbthread.h (scoped_restore_current_thread)
16856 <dont_restore, restore, m_dont_restore>: Declare.
16857 * thread.c (thread_alive): Add assertion. Return bool.
16858 (switch_to_thread_if_alive): New.
16859 (prune_threads): Switch inferior/thread.
16860 (print_thread_info_1): Switch thread before calling target methods.
16861 (scoped_restore_current_thread::restore): New, factored out from
16862 ...
16863 (scoped_restore_current_thread::~scoped_restore_current_thread):
16864 ... this.
16865 (scoped_restore_current_thread::scoped_restore_current_thread):
16866 Add assertion.
16867 (thread_apply_all_command, thread_select): Use
16868 switch_to_thread_if_alive.
16869
7f0ae84c
GB
168702020-01-10 George Barrett <bob@bob131.so>
16871
16872 * stap-probe.c (stap_modify_semaphore): Don't check for null
16873 semaphores.
16874 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16875 for null semaphores.
16876
f5a7c406
AB
168772020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16878
16879 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16880 all source windows, and maintain horizontal scroll status while
16881 doing so.
16882
9ae6bf64
TT
168832020-01-09 Tom Tromey <tom@tromey.com>
16884
16885 PR tui/18932:
16886 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16887 update_source_window, not print_source_lines.
16888
b2efe70c
AB
168892020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16890
16891 * tui/tui.c (tui_enable): Register tui hooks after calling
16892 tui_display_main.
16893
5f23a082
CB
168942020-01-09 Christian Biesinger <cbiesinger@google.com>
16895
16896 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16897
3061113b
SM
168982020-01-08 Simon Marchi <simon.marchi@efficios.com>
16899
16900 * thread.c (print_thread_info_1): Fix indentation.
16901
57d75002
CB
169022020-01-09 Christian Biesinger <cbiesinger@google.com>
16903
16904 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16905 unique_xmalloc_ptr outside the if to always free the demangled name.
16906
6a053cb1
TT
169072020-01-08 Tom Tromey <tromey@adacore.com>
16908
16909 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16910 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16911 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16912 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16913 Remove.
16914 (section_offsets): New typedef.
16915 * symtab.c (fixup_section, get_msymbol_address): Update.
16916 * symmisc.c (dump_msymbols): Update.
16917 * symfile.h (relative_addr_info_to_section_offsets)
16918 (symfile_map_offsets_to_segments): Update.
16919 * symfile.c (build_section_addr_info_from_objfile)
16920 (init_objfile_sect_indices): Update.
16921 (struct place_section_arg): Change type of "offsets".
16922 (place_section): Update.
16923 (relative_addr_info_to_section_offsets): Change type of
16924 "section_offsets". Remove "num_sections" parameter.
16925 (default_symfile_offsets, syms_from_objfile_1)
16926 (set_objfile_default_section_offset): Update.
16927 (reread_symbols): No need to preserve section offsets by hand.
16928 (symfile_map_offsets_to_segments): Change type of "offsets".
16929 * stap-probe.c (relocate_address): Update.
16930 * stabsread.h (process_one_symbol): Update.
16931 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16932 (solib_target_relocate_section_addresses): Update.
16933 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16934 Update.
16935 * solib-frv.c (frv_relocate_main_executable): Update.
16936 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16937 * solib-aix.c (solib_aix_get_section_offsets): Change return
16938 type.
16939 (solib_aix_solib_create_inferior_hook): Update.
16940 * remote.c (remote_target::get_offsets): Update.
16941 * psymtab.c (find_pc_sect_psymtab): Update.
16942 * psympriv.h (struct partial_symbol) <address, text_low,
16943 text_high>: Update.
16944 * objfiles.h (obj_section_offset): Update.
16945 (struct objfile) <section_offsets>: Change type.
16946 <num_sections>: Remove.
16947 (objfile_relocate): Update.
16948 * objfiles.c (entry_point_address_query): Update
16949 (relocate_one_symbol): Change type of "section_offsets".
16950 (objfile_relocate1, objfile_relocate1): Change type of
16951 "new_offsets".
16952 (objfile_rebase1): Update.
16953 * mipsread.c (mipscoff_symfile_read): Update.
16954 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16955 parameter.
16956 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16957 (parse_external, psymtab_to_symtab_1): Update.
16958 * machoread.c (macho_symfile_offsets): Update.
16959 * ia64-tdep.c (ia64_find_unwind_table): Update.
16960 * hppa-tdep.c (read_unwind_info): Update.
16961 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16962 * dwarf2read.c (create_addrmap_from_index)
16963 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16964 (process_psymtab_comp_unit_reader, add_partial_symbol)
16965 (add_partial_subprogram, process_full_comp_unit)
16966 (read_file_scope, read_func_scope, read_lexical_block_scope)
16967 (read_call_site_scope, dwarf2_rnglists_process)
16968 (dwarf2_ranges_process, dwarf2_ranges_read)
16969 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16970 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16971 Update.
16972 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16973 Update.
16974 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16975 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16976 (process_one_symbol): Change type of "section_offsets".
16977 * ctfread.c (get_objfile_text_range): Update.
16978 * coffread.c (coff_symtab_read, enter_linenos)
16979 (process_coff_symbol): Update.
16980 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16981 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16982
456e800a
TT
169832020-01-08 Tom Tromey <tromey@adacore.com>
16984
16985 * dwarf2read.c (parse_macro_definition): Use std::string.
16986 (parse_macro_definition): Likewise.
16987
6dfa2fc2
TT
169882020-01-08 Tom Tromey <tromey@adacore.com>
16989
16990 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16991 (ATTR_ALLOC_CHUNK): Remove.
16992
421d1616
TT
169932020-01-08 Tom Tromey <tromey@adacore.com>
16994
16995 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16996
43816ebc
TT
169972020-01-08 Tom Tromey <tromey@adacore.com>
16998
16999 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17000 (dwarf2_compute_name, open_dwo_file): Likewise.
17001 (process_enumeration_scope): Use std::vector.
17002 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17003 (partial_die_info::fixup, dwarf2_start_subfile)
17004 (guess_full_die_structure_name, dwarf2_name): Likewise.
17005 (determine_prefix): Update.
17006 (guess_full_die_structure_name): Make return type const.
17007 (partial_die_full_name): Return unique_xmalloc_ptr.
17008 (DW_FIELD_ALLOC_CHUNK): Remove.
17009
4212d509
TT
170102020-01-07 Tom Tromey <tromey@adacore.com>
17011
17012 PR build/24937:
17013 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17014
06a6207a
JT
170152020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17016
17017 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17018
153d79c4
AB
170192020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17020
17021 * stack.c (print_frame_info): Move disassemble_next_line code
17022 inside source_print block.
17023
66182876
EZ
170242020-01-06 Eli Zaretskii <eliz@gnu.org>
17025
17026 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17027 gdb/signals.h, as we are now using native signal symbols.
17028
cbfa8581
SV
170292020-01-06 Shahab Vahedi <shahab@synopsys.com>
17030
17031 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17032 overflow by an early check of content vs threshold.
aac66a4c 17033 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17034 Likewise.
17035
3f602821
EZ
170362020-01-06 Eli Zaretskii <eliz@gnu.org>
17037
17038 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17039
a08c904d
JT
170402020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17041
17042 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17043 export table if no section contains it's RVA.
17044
89a65580
EZ
170452020-01-06 Eli Zaretskii <eliz@gnu.org>
17046
17047 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17048
8b7fcda2
HD
170492020-01-06 Hannes Domani <ssbssa@yahoo.de>
17050
17051 * source.c (print_source_lines_base): Set last_line_listed.
17052
a61b4f69
SV
170532020-01-06 Shahab Vahedi <shahab@synopsys.com>
17054
17055 * tui/tui-disasm.c: Remove trailing spaces.
17056
559e7e50
EZ
170572020-01-06 Eli Zaretskii <eliz@gnu.org>
17058 Pedro Alves <palves@redhat.com>
17059
17060 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17061 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17062 (windows_gdb_signal_to_target): New function, uses the above
17063 enumeration to convert GDB internal signal codes to equivalent
17064 Windows codes.
17065 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17066 * windows-nat.c: Include "gdb_wait.h".
17067 (get_windows_debug_event): Extract the fatal exception from the
17068 exit status and convert to the equivalent Posix signal number.
17069 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17070 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17071 * gdbsupport/gdb_wait.c: New file, implements
17072 windows_status_to_termsig.
17073 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17074 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17075
f2302a34
AB
170762020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17077
17078 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17079 show_layout.
17080
6a5206eb
LM
170812020-01-05 Luis Machado <luis.machado@linaro.org>
17082
17083 * aarch64-linux-nat.c
17084 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17085 and bfd_mach_aarch64.
17086
6ec1d75e
PW
170872020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17088
17089 * ui-file.c (stdio_file::can_emit_style_escape)
17090 (tee_file::can_emit_style_escape): Ensure style is used also on
17091 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17092 to gdb_stdout.
17093 * main.c (set_gdb_data_directory): Use file style to output the
17094 warning that the given pathname is not a directory.
17095 * top.c (show_history_filename, gdb_safe_append_history)
17096 (show_gdb_datadir): Use file style.
17097
44f81a76
HD
170982020-01-03 Hannes Domani <ssbssa@yahoo.de>
17099
17100 * solib-target.c (struct lm_info_target):
17101 Change offsets to be a unique_xmalloc_ptr.
17102 (solib_target_relocate_section_addresses): Update.
17103
25057eb0
HD
171042020-01-03 Hannes Domani <ssbssa@yahoo.de>
17105
17106 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17107
6e2118f5
BE
171082020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17109
17110 * MAINTAINERS (Write After Approval): Add myself.
17111
8133c7dc
LM
171122020-01-02 Luis Machado <luis.machado@linaro.org>
17113
17114 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17115 Cell BE architecture.
17116 * target.h (struct target_ops) <thread_architecture>: Likewise.
17117
48189bec
HD
171182020-01-01 Hannes Domani <ssbssa@yahoo.de>
17119
17120 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17121
ead1063b
HD
171222020-01-01 Hannes Domani <ssbssa@yahoo.de>
17123
17124 * MAINTAINERS (Write After Approval): Add myself.
17125
e5d78223
JB
171262020-01-01 Joel Brobecker <brobecker@adacore.com>
17127
17128 * gdbarch.sh: Update copyright year range of generated files.
17129
b811d2c2
JB
171302020-01-01 Joel Brobecker <brobecker@adacore.com>
17131
17132 Update copyright year range in all GDB files.
17133
5f4def5c
JB
171342020-01-01 Joel Brobecker <brobecker@adacore.com>
17135
17136 * copyright.py: Convert to Python 3.
17137
51fd4002
JB
171382020-01-01 Joel Brobecker <brobecker@adacore.com>
17139
17140 * copyright.py: Adapt after move of gnulib directory from gdb
17141 directory to toplevel directory.
17142
5fb651f2
JB
171432020-01-01 Joel Brobecker <brobecker@adacore.com>
17144
17145 * copyright.py (main): Exit if run from the wrong directory.
17146
5dd8bf88
JB
171472020-01-01 Joel Brobecker <brobecker@adacore.com>
17148
17149 * top.c (print_gdb_version): Change copyright year to 2020.
17150
9f71dacb 171512020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17152
9f71dacb 17153 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17154
9f71dacb 17155For older changes see ChangeLog-2019.
c906108c
SS
17156\f
17157Local Variables:
17158mode: change-log
17159left-margin: 8
17160fill-column: 74
17161version-control: never
57da7796 17162coding: utf-8
c906108c 17163End: