gdb: update command completion for watch, awatch, and rwatch
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a15a5258
AB
12020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * breakpoint.c (struct watch_options): New struct.
4 (watch_option_defs): New static global.
5 (make_watch_options_def_group): New function.
6 (watch_maybe_just_location): Convert option parsing.
7 (watch_command_completer): New function.
8 (_initialize_breakpoint): Build help text using options mechanism.
9
2e362716
AB
102020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
13 (watch_command_1): Update parameter types. Convert locals to
14 bool.
15 (watch_command_wrapper): Change parameter type.
16 (watch_maybe_just_location): Change locals to bool.
17 (rwatch_command_wrapper): Update parameter type.
18 (awatch_command_wrapper): Update parameter type.
19 * breakpoint.h (watch_command_wrapper): Change parameter type.
20 (rwatch_command_wrapper): Update parameter type.
21 (awatch_command_wrapper): Update parameter type.
22 * eval.c (fetch_subexp_value): Change parameter type.
23 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
24 'false' not '0'.
25 * value.h (fetch_subexp_value): Change parameter type in
26 declaration.
27
b3ff61f8
AB
282020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
31 skip_spaces.
32
5b7d45d3
KS
332020-11-18 Keith Seitz <keiths@redhat.com>
34
35 * linux-tdep.c (dump_note_entry_p): Return true instead of
36 checking `filename'.
37
c44191f8
TV
382020-11-18 Tom de Vries <tdevries@suse.de>
39
40 * debuginfod-support.c (debuginfod_source_query)
41 (debuginfod_debuginfo_query): Also do early exit if
42 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
43
5d8254e1
TV
442020-11-18 Tom de Vries <tdevries@suse.de>
45
46 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
47 warning.
48
584903d3
SM
492020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * gdbtypes.h (get_array_bounds): Return bool, adjust some
52 callers. Move doc here.
53 * gdbtypes.c (get_array_bounds): Return bool
54
6f2643db
AB
552020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
56
57 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
58 assert.
59 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
60 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
61 case to the default.
62
037d7135
AB
632020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
64
65 * printcmd.c: Include 'safe-ctype.c'.
66 (skip_over_slash_fmt): New function.
67 (print_command_completer): Call skip_over_slash_fmt.
68 (display_and_x_command_completer): New function.
69 (_initialize_printcmd): Add command completion for 'x' and
70 'display'.
71
2b3cb400
PA
722020-11-16 Pedro Alves <pedro@palves.net>
73
74 * frame.c (get_prev_frame): Move get_frame_id call from here ...
75 (get_prev_frame_always_1): ... to here.
76 * inline-frame.c (inline_frame_this_id): Mention
77 get_prev_frame_always_1 in comment.
78
b74dbc20
JB
792020-11-15 Joel Brobecker <brobecker@adacore.com>
80
81 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
82 handling.
83 (value_less): Add fixed-point handling.
84
0a12719e
JB
852020-11-15 Joel Brobecker <brobecker@adacore.com>
86
87 * eval.c (binop_promote): Add fixed-point type handling.
88 * valarith.c (fixed_point_binop): New function.
89 (scalar_binop): Add fixed-point type handling.
90 (value_neg): Add fixed-point type handling.
91 * valops.c (value_cast_to_fixed_point): New function.
92 (value_cast): Add fixed-point type handling.
93
0c9150e4
JB
942020-11-15 Joel Brobecker <brobecker@adacore.com>
95
96 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
97 range types.
98 * c-typeprint.c (c_type_print_varspec_prefix)
99 (c_type_print_varspec_suffix, c_type_print_base_1): Add
100 TYPE_CODE_FIXED_POINT handling.
101 * p-typeprint.c (pascal_type_print_varspec_prefix)
102 (pascal_type_print_varspec_suffix): Likewise.
103 * typeprint.c (print_type_fixed_point): New function.
104 * typeprint.h (print_type_fixed_point): Add declaration.
105
b26daff9
JB
1062020-11-15 Joel Brobecker <brobecker@adacore.com>
107
108 * printcmd.c (print_scalar_formatted): Add fixed-point type
109 handling when options->format is set.
110
09584414
JB
1112020-11-15 Joel Brobecker <brobecker@adacore.com>
112
113 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
114 * dwarf2/read.c (get_dwarf2_rational_constant)
115 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
116 (has_zero_over_zero_small_attribute): New functions.
117 read_base_type, set_die_type): Add fixed-point type handling.
118 * gdb-gdb.py.in: Add fixed-point type handling.
119 * gdbtypes.c: #include "gmp-utils.h".
120 (create_range_type, set_type_code): Add fixed-point type handling.
121 (init_fixed_point_type): New function.
122 (is_integral_type, is_scalar_type): Add fixed-point type handling.
123 (print_fixed_point_type_info): New function.
124 (recursive_dump_type, copy_type_recursive): Add fixed-point type
125 handling.
126 (fixed_point_type_storage): New typedef.
127 (fixed_point_objfile_key): New static global.
128 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
129 (fixed_point_type_base_type, fixed_point_scaling_factor): New
130 functions.
131 * gdbtypes.h: #include "gmp-utils.h".
132 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
133 (union type_specific) <fixed_point_info>: New field.
134 (struct fixed_point_type_info): New struct.
135 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
136 (init_fixed_point_type, is_fixed_point_type)
137 (fixed_point_type_base_type, fixed_point_scaling_factor)
138 (allocate_fixed_point_type_info): Add declarations.
139 * valprint.c (generic_val_print_fixed_point): New function.
140 (generic_value_print): Add fixed-point type handling.
141 * value.c (value_as_address, unpack_long): Add fixed-point type
142 handling.
143
e55c6530
JB
1442020-11-15 Joel Brobecker <brobecker@adacore.com>
145
146 * utils.h (uinteger_pow): Add declaration.
147 * utils.c (uinteger_pow): Moved here (without changes)...
148 * valarith.c (uinteger_pow): ... from here.
149
b34c74ab
JB
1502020-11-15 Joel Brobecker <brobecker@adacore.com>
151
40d9d2fd 152 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
153 * unittests/gmp-utils-selftests.c: New file.
154 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
155 unittests/gmp-utils-selftests.c.
156 (COMMON_SFILES) Add gmp-utils.c.
157 (HFILES_NO_SRCDIR): Add gmp-utils.h.
158
1b4ac058
JB
1592020-11-15 Joel Brobecker <brobecker@adacore.com>
160
161 * configure.ac: Generate an error if a usable GMP library
162 could not be found.
163 * configure: Regenerate.
164
2c947d9b
JB
1652020-11-15 Joel Brobecker <brobecker@adacore.com>
166
167 * configure.ac: Add support for --with-libgmp-prefix.
168 * Makefile.in (LIBGMP): New variable.
169 (CLIBS): Include $(LIBGMP).
170 * configure, config.in: Regenerate
171
9dd02fc0
AB
1722020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
173
174 PR cli/26879
175 * f-exp.y (COMPLETE): New token.
176 (exp): Two new rules for tab-completion.
177 (saw_name_at_eof): New static global.
178 (last_was_structop): Likewise.
179 (yylex): Set new variables, and return COMPLETE token at the end
180 of the input stream in some cases.
181
758cb810
TT
1822020-11-14 Tom Tromey <tom@tromey.com>
183
184 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
185
749065b7
TT
1862020-11-14 Tom Tromey <tom@tromey.com>
187
188 * opencl-lang.c (opencl_component_ref): Make "comps" const.
189
2c5b1849
SM
1902020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
191
192 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
193
e8b2f0d9
TT
1942020-11-13 Tom Tromey <tom@tromey.com>
195
196 * c-lang.c (convert_ucn, convert_octal, convert_hex)
197 (convert_escape, parse_one_string): Constify.
198
25f4c262
KS
1992020-11-13 Keith Seitz <keiths@redhat.com>
200
201 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
202 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
203 outside of ELF segments" warning for debugin
204
9d3ab915
KS
2052020-11-13 Keith Seitz <keiths@redhat.com>
206
207 PR gdb/23034
208 * elfread.c (elf_symfile_segments): Output a BFD file name
209 for the "Loadable section ... outside of ELF segments" warning.
210
9ecab40c
SM
2112020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
212
213 PR gdb/26835
214 * arm-tdep.c (class arm_instruction_reader): New.
215 (target_arm_instruction_reader): New.
216 (arm_analyze_prologue): Add instruction reader parameter and use
217 it. Use arm_expand_immediate.
218 (class target_arm_instruction_reader): Adjust.
219 (arm_skip_prologue): Adjust.
220 (arm_expand_immediate): New.
221 (arm_scan_prologue): Adjust.
222 (arm_analyze_prologue_test): New.
223 (class test_arm_instruction_reader): New.
224
5a7cf527
AB
2252020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
226
227 * f-lang.c (fortran_argument_convert): Add declaration. Add
228 header comment, taken from f-lang.h. Make static.
229 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
230 (fortran_argument_convert): Delete declaration.
231
7bea47f0
AB
2322020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
233
234 * ada-exp.y (find_primitive_type): Make parameter const.
235 * ada-lang.c (enum ada_primitive_types): Delete.
236 (ada_language::language_arch_info): Update.
237 * c-lang.c (enum c_primitive_types): Delete.
238 (c_language_arch_info): Update.
239 (enum cplus_primitive_types): Delete.
240 (cplus_language::language_arch_info): Update.
241 * d-lang.c (enum d_primitive_types): Delete.
242 (d_language::language_arch_info): Update.
243 * f-lang.c (enum f_primitive_types): Delete.
244 (f_language::language_arch_info): Update.
245 * go-lang.c (enum go_primitive_types): Delete.
246 (go_language::language_arch_info): Update.
247 * language.c (auto_or_unknown_language::language_arch_info):
248 Update.
249 (language_gdbarch_post_init): Use obstack_new, use array indexing.
250 (language_string_char_type): Add header comment, call function in
251 language_arch_info.
252 (language_bool_type): Likewise
253 (language_arch_info::bool_type): Define.
254 (language_lookup_primitive_type_1): Delete.
255 (language_lookup_primitive_type): Rewrite as a templated function
256 to call function in language_arch_info, then instantiate twice.
257 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
258 (language_arch_info::lookup_primitive_type_and_symbol): Define.
259 (language_arch_info::lookup_primitive_type): Define twice with
260 different signatures.
261 (language_arch_info::lookup_primitive_type_as_symbol): Define.
262 (language_lookup_primitive_type_as_symbol): Rewrite to call a
263 member function in language_arch_info.
264 * language.h (language_arch_info): Complete rewrite.
265 (language_lookup_primitive_type): Make templated.
266 * m2-lang.c (enum m2_primitive_types): Delete.
267 (m2_language::language_arch_info): Update.
268 * opencl-lang.c (OCL_P_TYPE): Delete.
269 (enum opencl_primitive_types): Delete.
270 (opencl_type_data): Delete.
271 (builtin_opencl_type): Delete.
272 (lookup_opencl_vector_type): Update.
273 (opencl_language::language_arch_info): Update, lots of content
274 moved from...
275 (build_opencl_types): ...here. This function is now deleted.
276 (_initialize_opencl_language): Delete.
277 * p-lang.c (enum pascal_primitive_types): Delete.
278 (pascal_language::language_arch_info): Update.
279 * rust-lang.c (enum rust_primitive_types): Delete.
280 (rust_language::language_arch_info): Update.
281
bf6e5d01
SM
2822020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
283
284 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
285 dwarf2_queue_guard.
286
1350c3b4
SM
2872020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
288
289 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
290 comment.
291
6f738b01
SM
2922020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
293
294 * dwarf2/read.c (dwarf_read_debug_printf,
295 dwarf_read_debug_printf_v): New macros, use throughout the file.
296
10c19fad
SV
2972020-11-12 Shahab Vahedi <shahab@synopsys.com>
298
299 * arc-linux-tdep.c (collect_register): Populate "eret" by
300 "pc" value from the regcache when asked for "pc" value.
301
1f2624a3
TT
3022020-11-12 Tom Tromey <tom@tromey.com>
303
304 PR rust/26799:
305 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
306 exist.
307
ab33b152
AB
3082020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
309
310 * features/Makefile (XMLTOC): Add rx.xml.
311 (FEATURE_XMLFILES): Remove rx.xml.
312 (FEATURE_CFILES rule): Pass '-single-feature' flag.
313 * features/rx.c: Regenerate.
314 * features/rx.xml: Wrap in `target` tags, and reindent.
315 * target-descriptions.c (struct maint_print_c_tdesc_options): New
316 structure.
317 (maint_print_c_tdesc_opt_def): New typedef.
318 (maint_print_c_tdesc_opt_defs): New static global.
319 (make_maint_print_c_tdesc_options_def_group): New function.
320 (maint_print_c_tdesc_cmd): Make use of command line flags, only
321 print single feature C file for target descriptions containing a
322 single feature.
323 (maint_print_c_tdesc_cmd_completer): New function.
324 (_initialize_target_descriptions): Update call to register command
325 completer, and include command line flag in help text.
326
550820e1
AB
3272020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
328
329 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
330 numbers.
331 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
332 enum values.
333
baf20f76
TT
3342020-11-10 Tom Tromey <tom@tromey.com>
335
336 * value.h (internalvar_name): Update.
337 * value.c (internalvar_name): Make return type const.
338
caaece0e
TT
3392020-11-10 Tom Tromey <tom@tromey.com>
340
341 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
342 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
343 const.
344
8e20b4be
TT
3452020-11-10 Tom Tromey <tom@tromey.com>
346
347 * objc-lang.h (value_nsstring): Update.
348 * objc-lang.c (value_nsstring): Make "ptr" const.
349
86775fab
AB
3502020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
351
352 * expprint.c (print_subexp_funcall): Increment expression position
353 after reading argument count.
354 * f-lang.c (print_subexp_f): Skip over opcode before calling
355 common function.
356 (dump_subexp_body_f): Likewise.
357
3fed4c0b
RG
3582020-11-06 Romain Geissler <romain.geissler@amadeus.com>
359
360 PR python/26832
361 * configure: Regenerate.
362 * configure.ac: Check for python modules ctypes instead of
363 itertools.
364
ac3d4064
PA
3652020-11-06 Pedro Alves <pedro@palves.net>
366
367 * macroexp.c (struct macro_buffer): Split in two classes. Add
368 uses adjusted.
369 (struct shared_macro_buffer): New, factored out from struct
370 macro_buffer.
371 (struct growable_macro_buffer): New, factored out from struct
372 macro_buffer.
373 (set_token, get_comment, get_identifier, get_pp_number)
374 (get_character_constant, get_string_literal, get_punctuator)
375 (get_next_token_for_substitution): Constify parameters.
376 (substitute_args): Constify locals.
377
606decb2
TT
3782020-11-05 Tom Tromey <tom@tromey.com>
379
380 * dwarf2/read.c (read_cutu_die_from_dwo)
381 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
382 (build_type_psymtabs_1): Update.
383 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
384 parameter.
385 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
386 Don't read section. Add assert.
387
9c91c725
TT
3882020-11-04 Tom Tromey <tromey@adacore.com>
389
390 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
391
8d9fd3a1
TT
3922020-11-04 Tom Tromey <tromey@adacore.com>
393
394 * ada-typeprint.c (ada_print_type): Handle __T types.
395
d8f62e84
TT
3962020-11-04 Tom Tromey <tromey@adacore.com>
397
398 * dwarf2/read.c (add_partial_symbol, process_die):
399 Handle DW_TAG_array_type.
400 (is_type_tag_for_partial): Add "lang" parameter.
401 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
402
7ff5b937
TT
4032020-11-04 Tom Tromey <tromey@adacore.com>
404
405 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
406
10f6a3ad
TT
4072020-11-04 Tom Tromey <tromey@adacore.com>
408
409 * dwarf2/read.c (read_array_type): Only apply stride to innermost
410 array.
411
b72795a8
TT
4122020-11-04 Tom Tromey <tromey@adacore.com>
413
414 * gdbtypes.c (update_static_array_size): Handle bit stride.
415
24aa1b02
TT
4162020-11-04 Tom Tromey <tromey@adacore.com>
417
418 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
419
c9a28cbe
TT
4202020-11-04 Tom Tromey <tromey@adacore.com>
421
422 * ada-lang.c (ada_is_any_packed_array_type): New function.
423 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
424
57567375
TT
4252020-11-04 Tom Tromey <tromey@adacore.com>
426
427 * dwarf2/read.c (recognize_bound_expression)
428 (quirk_ada_thick_pointer): New functions.
429 (read_array_type): Call quirk_ada_thick_pointer.
430 (set_die_type): Add "skip_data_location" parameter.
431 (quirk_ada_thick_pointer): New function.
432 (process_structure_scope): Call quirk_ada_thick_pointer.
433 * ada-lang.c (ada_is_unconstrained_packed_array_type)
434 (decode_packed_array_bitsize): Handle thick pointers without
435 parallel types.
436 (ada_is_gnat_encoded_packed_array_type): Rename from
437 ada_is_packed_array_type.
438 (ada_is_constrained_packed_array_type): Update.
439 * ada-valprint.c (ada_val_print_gnat_array): Remove.
440 (ada_value_print_1): Use ada_get_decoded_value.
441
a7400e44
TT
4422020-11-04 Tom Tromey <tromey@adacore.com>
443
444 * ada-lang.c (recursively_update_array_bitsize): New function.
445 (decode_constrained_packed_array_type): Call it.
446
75fd6a26
TT
4472020-11-04 Tom Tromey <tromey@adacore.com>
448
449 * ada-lang.c (to_fixed_array_type): Error if
450 decode_constrained_packed_array_type returns NULL.
451
93f9561e
TT
4522020-11-04 Tom Tromey <tromey@adacore.com>
453
454 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
455
257e02d8
TT
4562020-11-02 Tom Tromey <tromey@adacore.com>
457
458 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
459 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
460 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
461 * amd64-ravenscar-thread.c: New file.
462 * amd64-ravenscar-thread.h: New file.
463 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
464 * configure.tgt (amd64_tobjs): Add ravenscar objects.
465
74d877e5
AB
4662020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
467
468 * main.c (execute_cmdargs): New function.
469 (captured_main_1): Make use of execute_cmdargs.
470
64aaad63
AB
4712020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
472
473 * NEWS: Mention changes to config file search path.
474 * main.c
475
5b3d3560
TT
4762020-11-02 Tom Tromey <tromey@adacore.com>
477
478 * python/python.c: Consolidate two HAVE_PYTHON blocks.
479 (python_GdbModuleDef): Move earlier. Now static.
480 (do_start_initialization): Consolidate some IS_PY3K blocks.
481
dda83cd7
SM
4822020-11-02 Simon Marchi <simon.marchi@efficios.com>
483
484 * aarch64-linux-tdep.c: Fix indentation.
485 * aarch64-ravenscar-thread.c: Fix indentation.
486 * aarch64-tdep.c: Fix indentation.
487 * aarch64-tdep.h: Fix indentation.
488 * ada-lang.c: Fix indentation.
489 * ada-lang.h: Fix indentation.
490 * ada-tasks.c: Fix indentation.
491 * ada-typeprint.c: Fix indentation.
492 * ada-valprint.c: Fix indentation.
493 * ada-varobj.c: Fix indentation.
494 * addrmap.c: Fix indentation.
495 * addrmap.h: Fix indentation.
496 * agent.c: Fix indentation.
497 * aix-thread.c: Fix indentation.
498 * alpha-bsd-nat.c: Fix indentation.
499 * alpha-linux-tdep.c: Fix indentation.
500 * alpha-mdebug-tdep.c: Fix indentation.
501 * alpha-nbsd-tdep.c: Fix indentation.
502 * alpha-obsd-tdep.c: Fix indentation.
503 * alpha-tdep.c: Fix indentation.
504 * amd64-bsd-nat.c: Fix indentation.
505 * amd64-darwin-tdep.c: Fix indentation.
506 * amd64-linux-nat.c: Fix indentation.
507 * amd64-linux-tdep.c: Fix indentation.
508 * amd64-nat.c: Fix indentation.
509 * amd64-obsd-tdep.c: Fix indentation.
510 * amd64-tdep.c: Fix indentation.
511 * amd64-windows-tdep.c: Fix indentation.
512 * annotate.c: Fix indentation.
513 * arc-tdep.c: Fix indentation.
514 * arch-utils.c: Fix indentation.
515 * arch/arm-get-next-pcs.c: Fix indentation.
516 * arch/arm.c: Fix indentation.
517 * arm-linux-nat.c: Fix indentation.
518 * arm-linux-tdep.c: Fix indentation.
519 * arm-nbsd-tdep.c: Fix indentation.
520 * arm-pikeos-tdep.c: Fix indentation.
521 * arm-tdep.c: Fix indentation.
522 * arm-tdep.h: Fix indentation.
523 * arm-wince-tdep.c: Fix indentation.
524 * auto-load.c: Fix indentation.
525 * auxv.c: Fix indentation.
526 * avr-tdep.c: Fix indentation.
527 * ax-gdb.c: Fix indentation.
528 * ax-general.c: Fix indentation.
529 * bfin-linux-tdep.c: Fix indentation.
530 * block.c: Fix indentation.
531 * block.h: Fix indentation.
532 * blockframe.c: Fix indentation.
533 * bpf-tdep.c: Fix indentation.
534 * break-catch-sig.c: Fix indentation.
535 * break-catch-syscall.c: Fix indentation.
536 * break-catch-throw.c: Fix indentation.
537 * breakpoint.c: Fix indentation.
538 * breakpoint.h: Fix indentation.
539 * bsd-uthread.c: Fix indentation.
540 * btrace.c: Fix indentation.
541 * build-id.c: Fix indentation.
542 * buildsym-legacy.h: Fix indentation.
543 * buildsym.c: Fix indentation.
544 * c-typeprint.c: Fix indentation.
545 * c-valprint.c: Fix indentation.
546 * c-varobj.c: Fix indentation.
547 * charset.c: Fix indentation.
548 * cli/cli-cmds.c: Fix indentation.
549 * cli/cli-decode.c: Fix indentation.
550 * cli/cli-decode.h: Fix indentation.
551 * cli/cli-script.c: Fix indentation.
552 * cli/cli-setshow.c: Fix indentation.
553 * coff-pe-read.c: Fix indentation.
554 * coffread.c: Fix indentation.
555 * compile/compile-cplus-types.c: Fix indentation.
556 * compile/compile-object-load.c: Fix indentation.
557 * compile/compile-object-run.c: Fix indentation.
558 * completer.c: Fix indentation.
559 * corefile.c: Fix indentation.
560 * corelow.c: Fix indentation.
561 * cp-abi.h: Fix indentation.
562 * cp-namespace.c: Fix indentation.
563 * cp-support.c: Fix indentation.
564 * cp-valprint.c: Fix indentation.
565 * cris-linux-tdep.c: Fix indentation.
566 * cris-tdep.c: Fix indentation.
567 * darwin-nat-info.c: Fix indentation.
568 * darwin-nat.c: Fix indentation.
569 * darwin-nat.h: Fix indentation.
570 * dbxread.c: Fix indentation.
571 * dcache.c: Fix indentation.
572 * disasm.c: Fix indentation.
573 * dtrace-probe.c: Fix indentation.
574 * dwarf2/abbrev.c: Fix indentation.
575 * dwarf2/attribute.c: Fix indentation.
576 * dwarf2/expr.c: Fix indentation.
577 * dwarf2/frame.c: Fix indentation.
578 * dwarf2/index-cache.c: Fix indentation.
579 * dwarf2/index-write.c: Fix indentation.
580 * dwarf2/line-header.c: Fix indentation.
581 * dwarf2/loc.c: Fix indentation.
582 * dwarf2/macro.c: Fix indentation.
583 * dwarf2/read.c: Fix indentation.
584 * dwarf2/read.h: Fix indentation.
585 * elfread.c: Fix indentation.
586 * eval.c: Fix indentation.
587 * event-top.c: Fix indentation.
588 * exec.c: Fix indentation.
589 * exec.h: Fix indentation.
590 * expprint.c: Fix indentation.
591 * f-lang.c: Fix indentation.
592 * f-typeprint.c: Fix indentation.
593 * f-valprint.c: Fix indentation.
594 * fbsd-nat.c: Fix indentation.
595 * fbsd-tdep.c: Fix indentation.
596 * findvar.c: Fix indentation.
597 * fork-child.c: Fix indentation.
598 * frame-unwind.c: Fix indentation.
599 * frame-unwind.h: Fix indentation.
600 * frame.c: Fix indentation.
601 * frv-linux-tdep.c: Fix indentation.
602 * frv-tdep.c: Fix indentation.
603 * frv-tdep.h: Fix indentation.
604 * ft32-tdep.c: Fix indentation.
605 * gcore.c: Fix indentation.
606 * gdb_bfd.c: Fix indentation.
607 * gdbarch.sh: Fix indentation.
608 * gdbarch.c: Re-generate
609 * gdbarch.h: Re-generate.
610 * gdbcore.h: Fix indentation.
611 * gdbthread.h: Fix indentation.
612 * gdbtypes.c: Fix indentation.
613 * gdbtypes.h: Fix indentation.
614 * glibc-tdep.c: Fix indentation.
615 * gnu-nat.c: Fix indentation.
616 * gnu-nat.h: Fix indentation.
617 * gnu-v2-abi.c: Fix indentation.
618 * gnu-v3-abi.c: Fix indentation.
619 * go32-nat.c: Fix indentation.
620 * guile/guile-internal.h: Fix indentation.
621 * guile/scm-cmd.c: Fix indentation.
622 * guile/scm-frame.c: Fix indentation.
623 * guile/scm-iterator.c: Fix indentation.
624 * guile/scm-math.c: Fix indentation.
625 * guile/scm-ports.c: Fix indentation.
626 * guile/scm-pretty-print.c: Fix indentation.
627 * guile/scm-value.c: Fix indentation.
628 * h8300-tdep.c: Fix indentation.
629 * hppa-linux-nat.c: Fix indentation.
630 * hppa-linux-tdep.c: Fix indentation.
631 * hppa-nbsd-nat.c: Fix indentation.
632 * hppa-nbsd-tdep.c: Fix indentation.
633 * hppa-obsd-nat.c: Fix indentation.
634 * hppa-tdep.c: Fix indentation.
635 * hppa-tdep.h: Fix indentation.
636 * i386-bsd-nat.c: Fix indentation.
637 * i386-darwin-nat.c: Fix indentation.
638 * i386-darwin-tdep.c: Fix indentation.
639 * i386-dicos-tdep.c: Fix indentation.
640 * i386-gnu-nat.c: Fix indentation.
641 * i386-linux-nat.c: Fix indentation.
642 * i386-linux-tdep.c: Fix indentation.
643 * i386-nto-tdep.c: Fix indentation.
644 * i386-obsd-tdep.c: Fix indentation.
645 * i386-sol2-nat.c: Fix indentation.
646 * i386-tdep.c: Fix indentation.
647 * i386-tdep.h: Fix indentation.
648 * i386-windows-tdep.c: Fix indentation.
649 * i387-tdep.c: Fix indentation.
650 * i387-tdep.h: Fix indentation.
651 * ia64-libunwind-tdep.c: Fix indentation.
652 * ia64-libunwind-tdep.h: Fix indentation.
653 * ia64-linux-nat.c: Fix indentation.
654 * ia64-linux-tdep.c: Fix indentation.
655 * ia64-tdep.c: Fix indentation.
656 * ia64-tdep.h: Fix indentation.
657 * ia64-vms-tdep.c: Fix indentation.
658 * infcall.c: Fix indentation.
659 * infcmd.c: Fix indentation.
660 * inferior.c: Fix indentation.
661 * infrun.c: Fix indentation.
662 * iq2000-tdep.c: Fix indentation.
663 * language.c: Fix indentation.
664 * linespec.c: Fix indentation.
665 * linux-fork.c: Fix indentation.
666 * linux-nat.c: Fix indentation.
667 * linux-tdep.c: Fix indentation.
668 * linux-thread-db.c: Fix indentation.
669 * lm32-tdep.c: Fix indentation.
670 * m2-lang.c: Fix indentation.
671 * m2-typeprint.c: Fix indentation.
672 * m2-valprint.c: Fix indentation.
673 * m32c-tdep.c: Fix indentation.
674 * m32r-linux-tdep.c: Fix indentation.
675 * m32r-tdep.c: Fix indentation.
676 * m68hc11-tdep.c: Fix indentation.
677 * m68k-bsd-nat.c: Fix indentation.
678 * m68k-linux-nat.c: Fix indentation.
679 * m68k-linux-tdep.c: Fix indentation.
680 * m68k-tdep.c: Fix indentation.
681 * machoread.c: Fix indentation.
682 * macrocmd.c: Fix indentation.
683 * macroexp.c: Fix indentation.
684 * macroscope.c: Fix indentation.
685 * macrotab.c: Fix indentation.
686 * macrotab.h: Fix indentation.
687 * main.c: Fix indentation.
688 * mdebugread.c: Fix indentation.
689 * mep-tdep.c: Fix indentation.
690 * mi/mi-cmd-catch.c: Fix indentation.
691 * mi/mi-cmd-disas.c: Fix indentation.
692 * mi/mi-cmd-env.c: Fix indentation.
693 * mi/mi-cmd-stack.c: Fix indentation.
694 * mi/mi-cmd-var.c: Fix indentation.
695 * mi/mi-cmds.c: Fix indentation.
696 * mi/mi-main.c: Fix indentation.
697 * mi/mi-parse.c: Fix indentation.
698 * microblaze-tdep.c: Fix indentation.
699 * minidebug.c: Fix indentation.
700 * minsyms.c: Fix indentation.
701 * mips-linux-nat.c: Fix indentation.
702 * mips-linux-tdep.c: Fix indentation.
703 * mips-nbsd-tdep.c: Fix indentation.
704 * mips-tdep.c: Fix indentation.
705 * mn10300-linux-tdep.c: Fix indentation.
706 * mn10300-tdep.c: Fix indentation.
707 * moxie-tdep.c: Fix indentation.
708 * msp430-tdep.c: Fix indentation.
709 * namespace.h: Fix indentation.
710 * nat/fork-inferior.c: Fix indentation.
711 * nat/gdb_ptrace.h: Fix indentation.
712 * nat/linux-namespaces.c: Fix indentation.
713 * nat/linux-osdata.c: Fix indentation.
714 * nat/netbsd-nat.c: Fix indentation.
715 * nat/x86-dregs.c: Fix indentation.
716 * nbsd-nat.c: Fix indentation.
717 * nbsd-tdep.c: Fix indentation.
718 * nios2-linux-tdep.c: Fix indentation.
719 * nios2-tdep.c: Fix indentation.
720 * nto-procfs.c: Fix indentation.
721 * nto-tdep.c: Fix indentation.
722 * objfiles.c: Fix indentation.
723 * objfiles.h: Fix indentation.
724 * opencl-lang.c: Fix indentation.
725 * or1k-tdep.c: Fix indentation.
726 * osabi.c: Fix indentation.
727 * osabi.h: Fix indentation.
728 * osdata.c: Fix indentation.
729 * p-lang.c: Fix indentation.
730 * p-typeprint.c: Fix indentation.
731 * p-valprint.c: Fix indentation.
732 * parse.c: Fix indentation.
733 * ppc-linux-nat.c: Fix indentation.
734 * ppc-linux-tdep.c: Fix indentation.
735 * ppc-nbsd-nat.c: Fix indentation.
736 * ppc-nbsd-tdep.c: Fix indentation.
737 * ppc-obsd-nat.c: Fix indentation.
738 * ppc-ravenscar-thread.c: Fix indentation.
739 * ppc-sysv-tdep.c: Fix indentation.
740 * ppc64-tdep.c: Fix indentation.
741 * printcmd.c: Fix indentation.
742 * proc-api.c: Fix indentation.
743 * producer.c: Fix indentation.
744 * producer.h: Fix indentation.
745 * prologue-value.c: Fix indentation.
746 * prologue-value.h: Fix indentation.
747 * psymtab.c: Fix indentation.
748 * python/py-arch.c: Fix indentation.
749 * python/py-bpevent.c: Fix indentation.
750 * python/py-event.c: Fix indentation.
751 * python/py-event.h: Fix indentation.
752 * python/py-finishbreakpoint.c: Fix indentation.
753 * python/py-frame.c: Fix indentation.
754 * python/py-framefilter.c: Fix indentation.
755 * python/py-inferior.c: Fix indentation.
756 * python/py-infthread.c: Fix indentation.
757 * python/py-objfile.c: Fix indentation.
758 * python/py-prettyprint.c: Fix indentation.
759 * python/py-registers.c: Fix indentation.
760 * python/py-signalevent.c: Fix indentation.
761 * python/py-stopevent.c: Fix indentation.
762 * python/py-stopevent.h: Fix indentation.
763 * python/py-threadevent.c: Fix indentation.
764 * python/py-tui.c: Fix indentation.
765 * python/py-unwind.c: Fix indentation.
766 * python/py-value.c: Fix indentation.
767 * python/py-xmethods.c: Fix indentation.
768 * python/python-internal.h: Fix indentation.
769 * python/python.c: Fix indentation.
770 * ravenscar-thread.c: Fix indentation.
771 * record-btrace.c: Fix indentation.
772 * record-full.c: Fix indentation.
773 * record.c: Fix indentation.
774 * reggroups.c: Fix indentation.
775 * regset.h: Fix indentation.
776 * remote-fileio.c: Fix indentation.
777 * remote.c: Fix indentation.
778 * reverse.c: Fix indentation.
779 * riscv-linux-tdep.c: Fix indentation.
780 * riscv-ravenscar-thread.c: Fix indentation.
781 * riscv-tdep.c: Fix indentation.
782 * rl78-tdep.c: Fix indentation.
783 * rs6000-aix-tdep.c: Fix indentation.
784 * rs6000-lynx178-tdep.c: Fix indentation.
785 * rs6000-nat.c: Fix indentation.
786 * rs6000-tdep.c: Fix indentation.
787 * rust-lang.c: Fix indentation.
788 * rx-tdep.c: Fix indentation.
789 * s12z-tdep.c: Fix indentation.
790 * s390-linux-tdep.c: Fix indentation.
791 * score-tdep.c: Fix indentation.
792 * ser-base.c: Fix indentation.
793 * ser-mingw.c: Fix indentation.
794 * ser-uds.c: Fix indentation.
795 * ser-unix.c: Fix indentation.
796 * serial.c: Fix indentation.
797 * sh-linux-tdep.c: Fix indentation.
798 * sh-nbsd-tdep.c: Fix indentation.
799 * sh-tdep.c: Fix indentation.
800 * skip.c: Fix indentation.
801 * sol-thread.c: Fix indentation.
802 * solib-aix.c: Fix indentation.
803 * solib-darwin.c: Fix indentation.
804 * solib-frv.c: Fix indentation.
805 * solib-svr4.c: Fix indentation.
806 * solib.c: Fix indentation.
807 * source.c: Fix indentation.
808 * sparc-linux-tdep.c: Fix indentation.
809 * sparc-nbsd-tdep.c: Fix indentation.
810 * sparc-obsd-tdep.c: Fix indentation.
811 * sparc-ravenscar-thread.c: Fix indentation.
812 * sparc-tdep.c: Fix indentation.
813 * sparc64-linux-tdep.c: Fix indentation.
814 * sparc64-nbsd-tdep.c: Fix indentation.
815 * sparc64-obsd-tdep.c: Fix indentation.
816 * sparc64-tdep.c: Fix indentation.
817 * stabsread.c: Fix indentation.
818 * stack.c: Fix indentation.
819 * stap-probe.c: Fix indentation.
820 * stubs/ia64vms-stub.c: Fix indentation.
821 * stubs/m32r-stub.c: Fix indentation.
822 * stubs/m68k-stub.c: Fix indentation.
823 * stubs/sh-stub.c: Fix indentation.
824 * stubs/sparc-stub.c: Fix indentation.
825 * symfile-mem.c: Fix indentation.
826 * symfile.c: Fix indentation.
827 * symfile.h: Fix indentation.
828 * symmisc.c: Fix indentation.
829 * symtab.c: Fix indentation.
830 * symtab.h: Fix indentation.
831 * target-float.c: Fix indentation.
832 * target.c: Fix indentation.
833 * target.h: Fix indentation.
834 * tic6x-tdep.c: Fix indentation.
835 * tilegx-linux-tdep.c: Fix indentation.
836 * tilegx-tdep.c: Fix indentation.
837 * top.c: Fix indentation.
838 * tracefile-tfile.c: Fix indentation.
839 * tracepoint.c: Fix indentation.
840 * tui/tui-disasm.c: Fix indentation.
841 * tui/tui-io.c: Fix indentation.
842 * tui/tui-regs.c: Fix indentation.
843 * tui/tui-stack.c: Fix indentation.
844 * tui/tui-win.c: Fix indentation.
845 * tui/tui-winsource.c: Fix indentation.
846 * tui/tui.c: Fix indentation.
847 * typeprint.c: Fix indentation.
848 * ui-out.h: Fix indentation.
849 * unittests/copy_bitwise-selftests.c: Fix indentation.
850 * unittests/memory-map-selftests.c: Fix indentation.
851 * utils.c: Fix indentation.
852 * v850-tdep.c: Fix indentation.
853 * valarith.c: Fix indentation.
854 * valops.c: Fix indentation.
855 * valprint.c: Fix indentation.
856 * valprint.h: Fix indentation.
857 * value.c: Fix indentation.
858 * value.h: Fix indentation.
859 * varobj.c: Fix indentation.
860 * vax-tdep.c: Fix indentation.
861 * windows-nat.c: Fix indentation.
862 * windows-tdep.c: Fix indentation.
863 * xcoffread.c: Fix indentation.
864 * xml-syscall.c: Fix indentation.
865 * xml-tdesc.c: Fix indentation.
866 * xstormy16-tdep.c: Fix indentation.
867 * xtensa-config.c: Fix indentation.
868 * xtensa-linux-nat.c: Fix indentation.
869 * xtensa-linux-tdep.c: Fix indentation.
870 * xtensa-tdep.c: Fix indentation.
871
e1f57067
AB
8722020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
873 Craig Blackmore <craig.blackmore@embecosm.com>
874
875 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
876 as an unsigned value.
877
ae7754b2
TT
8782020-11-01 Tom Tromey <tom@tromey.com>
879
880 * dbxread.c (dbx_end_psymtab): Update.
881 * dwarf2/read.c (process_psymtab_comp_unit_reader)
882 (build_type_psymtabs_reader): Update.
883 * xcoffread.c (xcoff_end_psymtab): Update.
884 * ctfread.c (scan_partial_symbols): Update.
885 * psymtab.c (sort_pst_symbols): Remove.
886 (partial_symtab::end): Rename from end_psymtab_common. Inline
887 sort_pst_symbols.
888 * psympriv.h (struct partial_symtab) <end>: New method.
889 (end_psymtab_common): Don't declare.
890
0684bb51
TT
8912020-11-01 Tom Tromey <tom@tromey.com>
892
893 * symmisc.c (count_psyms): New function.
894 (print_objfile_statistics): Use it.
895 * psymtab.c (append_psymbol_to_list): Remove.
896 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
897 * objfiles.h (struct objstats) <n_psyms>: Remove.
898
089002bb
TT
8992020-11-01 Tom Tromey <tom@tromey.com>
900
901 * dbxread.c (dbx_end_psymtab): Update.
902 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
903 (build_type_psymtabs_reader): Update.
904 * xcoffread.c (xcoff_end_psymtab): Update.
905 * ctfread.c (scan_partial_symbols): Update.
906 * psympriv.h (end_psymtab_common): Update.
907 * psymtab.c (end_psymtab_common): Remove objfile parameter.
908 (sort_pst_symbols): Likewise.
909
525454d6
TT
9102020-11-01 Tom Tromey <tom@tromey.com>
911
912 * dbxread.c (dbx_symfile_read): Update.
913 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
914 * xcoffread.c (xcoff_initial_scan): Update.
915 * psympriv.h (init_psymbol_list): Don't declare.
916 * psymtab.c (init_psymbol_list): Remove.
917
60bd1d53
JB
9182020-11-01 Joel Brobecker <brobecker@adacore.com>
919
920 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
921 gnat_encoded_fixed_type_info. Update all callers.
922
db99d0d0
JB
9232020-11-01 Joel Brobecker <brobecker@adacore.com>
924
925 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
926 line too long.
927
75f24e86
JB
9282020-11-01 Joel Brobecker <brobecker@adacore.com>
929
930 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
931 cast_from_fixed. Update all callers.
932 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
933 Update all callers.
934 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
935 Update all callers.
936 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
937 ada_scaling_factor.
938 * ada-typeprint.c: Replace call to ada_scaling_factor by call
939 to print_gnat_encoded_fixed_point_type.
940 * ada-valprint.c: Likewise.
941
4f0469cd
AB
9422020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
943
944 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
945 (debug_prefixed_printf): Add check of debug_displaced flag.
946 * linux-nat.c (linux_nat_debug_printf): Add check of
947 debug_linux_nat flag.
948
17417fb0
SM
9492020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
950
951 * infrun.c (infrun_debug_printf_1): Remove.
952 (displaced_debug_printf_1): Remove.
953 (stop_all_threads): Use debug_prefixed_printf.
954 * infrun.h (infrun_debug_printf_1): Remove.
955 (infrun_debug_printf): Use debug_prefixed_printf.
956 (displaced_debug_printf_1): Remove.
957 (displaced_debug_printf): Use debug_prefixed_printf.
958 * linux-nat.c (linux_nat_debug_printf_1): Remove.
959 (linux_nat_debug_printf): Use debug_prefixed_printf.
960
ad6dba1c
SM
9612020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
962
963 * configure: Re-generate.
964 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
965 AC_LANG_PROGRAM.
966
b6fb30ed
SM
9672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
968
969 * configure: Re-generate.
970
5164c117
SM
9712020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
972
973 * configure: Re-generate.
974
864ca435
SM
9752020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
976
977 * configure: Re-generate.
978
b9442ec1
SM
9792020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
980
981 * configure: Re-generate.
982
294f2697
SM
9832020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
984
985 * acinclude.m4: Modernize.
986 * configure: Re-generate.
987
5593a99a
SM
9882020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
989
990 * configure.ac: Modernize.
991 * configure: Re-generate.
992
e41fda1d
SM
9932020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
994
995 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
996 * configure: Re-generate.
997 * configure.ac: Remove AM_PROG_CC_STDC.
998
91e1a0ed
SM
9992020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1000
1001 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1002 AC_CANONICAL_SYSTEM.
1003 * configure: Re-generate.
1004
136821d9
SM
10052020-10-30 Simon Marchi <simon.marchi@efficios.com>
1006
1007 * infrun.h (displaced_debug_printf): New macro. Replace
1008 displaced debug prints throughout to use it.
1009 (displaced_debug_printf_1): New declaration.
1010 (displaced_step_dump_bytes): Return string, remove ui_file
1011 parameter, update all callers.
1012 * infrun.c (displaced_debug_printf_1): New function.
1013 (displaced_step_dump_bytes): Return string, remove ui_file
1014 parameter
1015
aa2045e7
SM
10162020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1017
1018 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1019
b1ec2735
TT
10202020-10-30 Tom Tromey <tromey@adacore.com>
1021
1022 * Makefile.in (stamp-init): Depend on config.status.
1023
b78b3a29
TBA
10242020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1025
1026 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1027
d70bdd3c
PA
10282020-10-30 Pedro Alves <pedro@palves.net>
1029
1030 * thread.c (lookup_selected_frame): Move ...
1031 * frame.c (lookup_selected_frame): ... here.
1032
79952e69
PA
10332020-10-30 Pedro Alves <pedro@palves.net>
1034
1035 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1036 * frame.c
1037 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1038 Use save_selected_frame. Save language as well.
1039 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1040 Use restore_selected_frame, and restore language as well.
1041 (selected_frame_id, selected_frame_level): New.
1042 (selected_frame): Update comments.
1043 (save_selected_frame, restore_selected_frame): New.
1044 (get_selected_frame): Use lookup_selected_frame.
1045 (get_selected_frame_if_set): Delete.
1046 (select_frame): Record selected_frame_level and selected_frame_id.
1047 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1048 fields.
1049 (get_selected_frame): Make 'message' parameter optional.
1050 (get_selected_frame_if_set): Delete declaration.
1051 (select_frame): Update comments.
1052 (save_selected_frame, restore_selected_frame)
1053 (lookup_selected_frame): Declare.
1054 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1055 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1056 New field.
1057 (save_infcall_control_state): Use save_selected_frame.
1058 (restore_selected_frame): Delete.
1059 (restore_infcall_control_state): Use restore_selected_frame.
1060 * stack.c (select_frame_command_core, frame_command_core): Use
1061 get_selected_frame.
1062 * thread.c (restore_selected_frame): Rename to ...
1063 (lookup_selected_frame): ... this and make extern. Select the
1064 current frame if the frame level is -1.
1065 (scoped_restore_current_thread::restore): Also restore the
1066 language.
1067 (scoped_restore_current_thread::~scoped_restore_current_thread):
1068 Don't try/catch.
1069 (scoped_restore_current_thread::scoped_restore_current_thread):
1070 Save the language as well. Use save_selected_frame.
1071
58103c33
SM
10722020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1073
1074 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1075 documentation.
1076 * gdbarch.h: Re-generate.
1077
40a53766
SM
10782020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1079
1080 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1081 parameter.
1082 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1083 Likewise.
1084 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1085 Likewise.
1086 * arch-utils.c (default_displaced_step_hw_singlestep):
1087 Likewise.
1088 * arch-utils.h (default_displaced_step_hw_singlestep):
1089 Likewise.
1090 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1091 Likewise.
1092 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1093 Likewise.
1094 * gdbarch.c: Re-generate.
1095 * gdbarch.h: Re-generate.
1096 * infrun.c (resume_1): Adjust.
1097
8407f91b
TT
10982020-10-29 Tom Tromey <tom@tromey.com>
1099
1100 * progspace.c (program_space::~program_space): Don't call
1101 exec_close.
1102
5008b3b2
TT
11032020-10-29 Tom Tromey <tom@tromey.com>
1104
1105 * exec.c (exec_target::close): Don't change current program
1106 space.
1107
d9eebde0
TT
11082020-10-29 Tom Tromey <tom@tromey.com>
1109
1110 * symfile.c (add_symbol_file_command): Update.
1111 * exec.c (program_space::add_target_sections): Rename.
1112 * symfile-mem.c (symbol_file_add_from_memory): Update.
1113 * progspace.h (struct program_space) <add_target_sections>:
1114 Declare new overload.
1115 * exec.h (add_target_sections_of_objfile): Don't declare.
1116
3769e227
TT
11172020-10-29 Tom Tromey <tom@tromey.com>
1118
1119 * solib.c (solib_map_sections): Update.
1120 * exec.c (program_space::add_target_sections): Now a method.
1121 (exec_file_attach): Update.
1122 * exec.h (add_target_sections): Don't declare.
1123 * progspace.h (struct program_space) <add_target_sections>:
1124 Declare.
1125
2a3f84af
TT
11262020-10-29 Tom Tromey <tom@tromey.com>
1127
1128 * progspace.h (struct program_space) <remove_target_sections>:
1129 Declare.
1130 * exec.c (program_space::remove_target_sections): Now a method.
1131 * exec.h (remove_target_sections): Don't declare.
1132
004eecfd
TT
11332020-10-29 Tom Tromey <tom@tromey.com>
1134
1135 * inferior.c (delete_inferior): Update.
1136 * progspace.c (program_space::empty): Rename from
1137 program_space_empty_p. Return bool.
1138 * progspace.h (struct program_space) <empty>: New method.
1139 (program_space_empty_p): Don't declare.
1140
e39fb971
TT
11412020-10-29 Tom Tromey <tom@tromey.com>
1142
1143 * progspace.c (program_space::~program_space): Don't call
1144 clear_program_space_solib_cache.
1145 (program_space::clear_solib_cache): Rename from
1146 clear_solib_cache.
1147 * solib.c (handle_solib_event): Update.
1148 * progspace.h (struct program_space) <clear_solib_cache>: New
1149 method.
1150 (clear_program_space_solib_cache): Don't declare.
1151
a42d7dd8
TT
11522020-10-29 Tom Tromey <tom@tromey.com>
1153
1154 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1155 * target.c (info_target_command): Update.
1156 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1157 (symbol_file_clear, reread_symbols): Update.
1158 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1159 * stabsread.c (scan_file_globals): Update.
1160 * solib.c (update_solib_list): Update.
1161 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1162 (svr4_fetch_objfile_link_map, enable_break)
1163 (svr4_relocate_main_executable)
1164 (svr4_iterate_over_objfiles_in_search_order): Update.
1165 * solib-frv.c (lm_base, enable_break)
1166 (frv_relocate_main_executable): Update.
1167 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1168 (frv_fetch_objfile_link_map): Update.
1169 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1170 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1171 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1172 * remote.c (remote_target::get_offsets): Update.
1173 (remote_target::start_remote)
1174 (extended_remote_target::post_attach): Update.
1175 * objfiles.c (entry_point_address_query): Update.
1176 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1177 * minsyms.c (get_symbol_leading_char): Update.
1178 * frame.c (inside_main_func): Update.
1179 * progspace.h (symfile_objfile): Remove macro.
1180
19f6550e
TT
11812020-10-29 Tom Tromey <tom@tromey.com>
1182
1183 * exec.c (exec_file_attach): Update.
1184 * progspace.c (program_space::exec_close): Update.
1185 * progspace.h (struct program_space) <ebfd>: Now a
1186 gdb_bfd_ref_ptr.
1187 <set_exec_bfd>: Change argument type.
1188 <exec_bfd>: Update.
1189
7e10abd1
TT
11902020-10-29 Tom Tromey <tom@tromey.com>
1191
1192 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1193 * symfile.c (reread_symbols): Update.
1194 * symfile-mem.c (add_symbol_file_from_memory_command)
1195 (add_vsyscall_page): Update.
1196 * source-cache.c (source_cache::get_plain_source_lines): Update.
1197 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1198 (svr4_current_sos_direct, svr4_exec_displacement)
1199 (svr4_relocate_main_executable): Update.
1200 (svr4_iterate_over_objfiles_in_search_order): Update.
1201 * solib-frv.c (enable_break2, enable_break): Update.
1202 * solib-dsbt.c (lm_base, enable_break): Update.
1203 * solib-darwin.c (find_program_interpreter)
1204 (darwin_solib_create_inferior_hook): Update.
1205 * sol-thread.c (rw_common, ps_pdmodel): Update.
1206 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1207 * remote.c (compare_sections_command)
1208 (remote_target::trace_set_readonly_regions): Update.
1209 * remote-sim.c (get_sim_inferior_data)
1210 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1211 (gdbsim_target_open, gdbsim_target::files_info): Update.
1212 * exec.h (exec_bfd): Remove macro.
1213 * progspace.c (initialize_progspace): Update.
1214 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1215 Update.
1216 * nto-procfs.c (nto_procfs_target::post_attach)
1217 (nto_procfs_target::create_inferior): Update.
1218 * maint.c (maintenance_info_sections): Update.
1219 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1220 Update.
1221 * infcmd.c (post_create_inferior): Update.
1222 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1223 (objfile_find_memory_regions): Update.
1224 * exec.c (validate_exec_file, exec_file_attach)
1225 (exec_read_partial_read_only, print_section_info): Update.
1226 * corelow.c (core_target_open): Update.
1227 * corefile.c (reopen_exec_file, validate_files): Update.
1228 * arm-tdep.c (gdb_print_insn_arm): Update.
1229 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1230 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1231 methods.
1232
b55221ab
TT
12332020-10-29 Tom Tromey <tom@tromey.com>
1234
1235 * progspace.h (current_target_sections): Remove macro.
1236 * solib-svr4.c (scan_dyntag): Update.
1237 * solib-dsbt.c (scan_dyntag): Update.
1238 * exec.c (exec_target::close): Update.
1239 (add_target_sections, add_target_sections_of_objfile)
1240 (remove_target_sections, exec_target::get_section_table)
1241 (exec_target::files_info, set_section_command)
1242 (exec_set_section_address, exec_target::has_memory)
1243 (exec_target::has_memory): Update.
1244
5a36e715
TT
12452020-10-29 Tom Tromey <tom@tromey.com>
1246
1247 * source-cache.c (source_cache::get_plain_source_lines): Use
1248 current_program_space.
1249 * corefile.c (reopen_exec_file): Use current_program_space.
1250 * exec.c (exec_file_attach): Use current_program_space.
1251 * exec.h (exec_bfd_mtime): Remove.
1252
784c8592
TT
12532020-10-29 Tom Tromey <tom@tromey.com>
1254
1255 * gcore.c (default_gcore_mach): Remove.
1256 (create_gcore_bfd): Update.
1257
8a4f1402
TT
12582020-10-29 Tom Tromey <tom@tromey.com>
1259
1260 * progspace.c (program_space::exec_close): New method, from
1261 exec_close in exec.c.
1262 * exec.c (exec_close): Move to progspace.c.
1263 (exec_target::close, exec_file_attach): Update.
1264 * progspace.h (struct program_space) <exec_close>: Declare
1265 method.
1266
c20cb686
TT
12672020-10-29 Tom Tromey <tom@tromey.com>
1268
1269 * progspace.h (struct program_space) <exec_filename>: Rename from
1270 pspace_exec_filename. Now a unique_xmalloc_ptr.
1271 * inferior.c (print_selected_inferior): Update.
1272 (print_inferior): Update.
1273 * mi/mi-main.c (print_one_inferior): Update.
1274 * exec.h (exec_filename): Remove macro.
1275 * corefile.c (get_exec_file): Update.
1276 * exec.c (exec_close): Update.
1277 (exec_file_attach): Update.
1278 * progspace.c (clone_program_space): Update.
1279 (print_program_space): Update.
1280
6be2a9ab
TT
12812020-10-29 Tom Tromey <tom@tromey.com>
1282
1283 * target-section.h (struct target_section): Add constructor.
1284 * exec.c (build_section_table, add_target_sections_of_objfile):
1285 Update.
1286 * corelow.c (core_target::build_file_mappings): Update.
1287
cfaa8f76
TBA
12882020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1289
1290 PR gdb/19318
1291 * inferior.c (detach_inferior_command): Restore the current thread.
1292 (kill_inferior_command): Ditto.
1293
1b00ef06
TV
12942020-10-28 Tom de Vries <tdevries@suse.de>
1295
1296 PR symtab/26772
1297 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1298 map, check it in the "best match" loop.
1299
7f40ce1a
SM
13002020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1301
1302 * m32c-tdep.c: Remove unused includes.
1303
5eb9e3f5
SM
13042020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1305
1306 * xtensa-tdep.c: Remove includes.
1307
b1d4d8d1
TBA
13082020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1309
1310 * breakpoint.c (struct condition_command_opts): New struct.
1311 (condition_command_option_defs): New static global.
1312 (make_condition_command_options_def_group): New function.
1313 (condition_completer): Update to consider the '-force' flag.
1314 (condition_command): Use gdb::option for the '-force' flag.
1315
bd24c5d6
TV
13162020-10-27 Tom de Vries <tdevries@suse.de>
1317
1318 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1319 symbols in section check.
1320
61eb46a4
TV
13212020-10-27 Tom de Vries <tdevries@suse.de>
1322
1323 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1324
733d554a
TBA
13252020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1326
1327 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1328 * breakpoint.c: Update the help text of the 'condition' and 'break'
1329 commands.
1330 (set_breakpoint_condition): Take a new bool parameter
1331 to control whether condition definition should be forced even when
1332 the condition expression is invalid in all of the current locations.
1333 (condition_command): Update the call to 'set_breakpoint_condition'.
1334 (find_condition_and_thread): Take the "-force-condition" flag into
1335 account.
1336 * linespec.c (linespec_keywords): Add "-force-condition" as an
1337 element.
1338 (FORCE_KEYWORD_INDEX): New #define.
1339 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1340 as a keyword.
1341 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1342 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1343 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1344 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1345
b5fa468f
TBA
13462020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1347
1348 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1349 * breakpoint.c (set_breakpoint_location_condition): New function.
1350 (set_breakpoint_condition): Disable a breakpoint location if parsing
1351 the condition string gives an error.
1352 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1353 (build_target_condition_list): Ditto.
1354 (build_target_command_list): Ditto.
1355 (build_bpstat_chain): Ditto.
1356 (print_one_breakpoint_location): Ditto.
1357 (print_one_breakpoint): Ditto.
1358 (breakpoint_1): Ditto.
1359 (bp_location::bp_location): Ditto.
1360 (locations_are_equal): Ditto.
1361 (update_breakpoint_locations): Ditto.
1362 (enable_disable_bp_num_loc): Ditto.
1363 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1364 (find_condition_and_thread_for_sals): New static function.
1365 (create_breakpoint): Call find_condition_and_thread_for_sals.
1366 (location_to_sals): Call find_condition_and_thread_for_sals instead
1367 of find_condition_and_thread.
1368
1c47ec3e
TV
13692020-10-26 Tom de Vries <tdevries@suse.de>
1370
1371 * dwarf2/read.c (process_full_comp_unit): Call
1372 dwarf2_find_base_address.
1373
6390859c
TT
13742020-10-26 Tom Tromey <tromey@adacore.com>
1375
1376 * gdbtypes.c (create_range_type): Revert previous patch. Add
1377 comment.
1378
d744f0f9
PA
13792020-10-26 Pedro Alves <pedro@palves.net>
1380
1381 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1382 (my_waitpid): Use gdb::handle_eintr.
1383
006811bc
SM
13842020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1385
1386 * acinclude.m4: Update ptrace.m4 path.
1387 * ptrace.m4: Moved to gdbsupport.
1388
c75e31a1
SM
13892020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1390
1391 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1392 instead of target_gdbarch.
1393
32495661
SM
13942020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1395
1396 * jit.c (jit_reader_load_command): Pass current inferior.
1397 (jit_inferior_init): Change parameter type to inferior, use it.
1398 (jit_inferior_created): Remove.
1399 (jit_inferior_created_hook): Pass inferior parameter down.
1400 (_initialize_jit): Use jit_inferior_created_hook instead of
1401 jit_inferior_created.
1402 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1403 * infrun.c (follow_exec): Pass inferior to
1404 jit_inferior_created_hook.
1405
3f66685e
SM
14062020-10-24 Simon Marchi <simon.marchi@efficios.com>
1407
1408 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1409 parameter and use it.
1410 (thread_db_inferior_created): Pass inferior argument.
1411
a0ff652f
SM
14122020-10-24 Simon Marchi <simon.marchi@efficios.com>
1413
1414 * aix-thread.c (aix_thread_inferior_created): Add inferior
1415 parameter.
1416 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1417 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1418 * jit.c (jit_inferior_created): Likewise.
1419 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1420 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1421 * observable.h (inferior_created): Likewise.
1422 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1423 * symfile-mem.c (add_vsyscall_page): Likewise.
1424 * infcmd.c (post_create_inferior): Pass inferior argument.
1425
3c67532c
JB
14262020-10-24 Joel Brobecker <brobecker@adacore.com>
1427
1428 GDB 10.1 released.
1429
8747316e
JB
14302020-10-23 Joel Brobecker <brobecker@adacore.com>
1431
1432 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1433 to ada_check_typedef.
1434
1a0ea399
AB
14352020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1436
1437 * f-exp.y (f_parse): Rename to...
1438 (f_language::parser): ...this.
1439 * f-lang.c (f_get_encoding): Rename to...
1440 (f_language::get_encoding): ...this.
1441 (f_op_print_tab): Rename to...
1442 (f_language::op_print_tab): ...this.
1443 (exp_descriptor_f): Rename to...
1444 (f_language::exp_descriptor_tab): ...this.
1445 (class f_language): Moved to f-lang.h.
1446 (f_language::language_arch_info): New function, moved out of class
1447 declaration.
1448 (f_language::search_name_hash): Likewise.
1449 (f_language::lookup_symbol_nonlocal): Likewise.
1450 (f_language::get_symbol_name_matcher_inner): Likewise.
1451 * f-lang.h: Add 'valprint.h' include.
1452 (class f_language): Moved here from f-lang.c.
1453 * f-typeprint.c (f_type_print_args): Delete commented out
1454 declaration.
1455 (f_print_typedef): Rename to...
1456 (f_language::print_typedef): ...this.
1457 (f_print_type): Rename to...
1458 (f_language::print_type): ...this.
1459 (f_type_print_varspec_prefix): Delete declaration and rename to...
1460 (f_language::f_type_print_varspec_prefix): ...this.
1461 (f_type_print_varspec_suffix): Delete declaration and rename to...
1462 (f_language::f_type_print_varspec_suffix): ...this.
1463 (f_type_print_base): Delete declaration and rename to...
1464 (f_language::f_type_print_base): ...this.
1465 * f-valprint.c (f_value_print_inner): Rename to...
1466 (f_language::value_print_inner): ...this.
1467 * parse.c: Delete 'f-lang.h' include.
1468
88cefd9b
AB
14692020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1470
1471 * language.h (language_defn::print_type): Add variable names in
1472 declaration, and update header comment.
1473
5399db93
AB
14742020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1475
1476 * ada-lang.c (ada_language::demangle): Rename to...
1477 (ada_language::demangle_symbol): ...this.
1478 * c-lang.c (cplus_language::demangle): Rename to...
1479 (cplus_language::demangle_symbol): ...this.
1480 * d-lang.c (d_language::demangle): Rename to...
1481 (d_language::demangle_symbol): ...this.
1482 * f-lang.c (f_language::demangle): Rename to...
1483 (f_language::demangle_symbol): ...this.
1484 * go-lang.c (go_language::demangle): Rename to...
1485 (go_language::demangle_symbol): ...this.
1486 * language.c (language_demangle): Update call to demangle_symbol.
1487 (auto_or_unknown_language::demangle): Rename to...
1488 (auto_or_unknown_language::demangle_symbol): ...this.
1489 * language.h (language_defn::demangle): Rename to...
1490 (language_defn::demangle_symbol): ...this.
1491 * objc-lang.c (objc_language::demangle): Rename to...
1492 (objc_language::demangle_symbol): ...this.
1493 * rust-lang.c (rust_language::demangle): Rename to...
1494 (rust_language::demangle_symbol): ...this.
1495
4b2f86ef
AB
14962020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1497
1498 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1499 (iterate_over_file_blocks): Replace use of macro with the macros
1500 definition.
1501
e74b39de
AB
15022020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1503
1504 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1505 * valprint.c (maybe_print_array_index): Replace use of macro with
1506 the macros definition.
1507
00c696a6
AB
15082020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * ada-lang.c (ada_language::print_array_index): Call value_print
1511 directly.
1512 * language.c (language_defn::print_array_index): Likewise.
1513 * language.h (LA_VALUE_PRINT): Delete.
1514 * valprint.c (value_print): Call value_print on the
1515 current_language directly.
1516
d3b67c56
AB
15172020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1518
1519 * language.h (LA_PRINT_TYPEDEF): Delete.
1520 * typeprint.c (typedef_print): Call print_typedef directly on the
1521 current_language object.
1522
790e2a12
AB
15232020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1524
1525 * m2-exp.y (m2_parse): Rename to...
1526 (m2_language::parser): ...this. Update function signature.
1527 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1528 (m2_op_print): Rename to...
1529 (m2_language::op_print_tab): ...this, and make const.
1530 (exp_descriptor_modula2): Rename to...
1531 (m2_language::exp_descriptor_modula2): ...this.
1532 (class m2_language): Move to m2-lang.h.
1533 (m2_language::language_arch_info): New function, moved out of
1534 class declaration.
1535 (m2_language::printchar): New function, body from m2_printchar.
1536 (m2_language::printstr): New function, moved out of class
1537 declaration.
1538 (m2_language::emitchar): Likewise.
1539 * m2-lang.h (m2_parse): Delete declaration.
1540 (m2_print_typedef): Delete declaration.
1541 (m2_value_print_inner): Delete declaration.
1542 (class m2_language): Class declaration moved from m2-lang.c,
1543 larger functions are left in m2-lang.c.
1544 * m2-typeprint.c (m2_print_typedef): Rename to...
1545 (m2_language::print_typedef): ...this, and update function
1546 signature.
1547 * m2-valprint.c (m2_value_print_inner): Rename to...
1548 (m2_language::value_print_inner): ...this, replace use of
1549 LA_PRINT_STRING with a direct call to printstr member function,
1550 and update recursive call.
1551
b01175fc
AB
15522020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * language.c (default_is_string_type_p): Delete, implementation
1555 moved into auto_or_unknown_language::is_string_type_p.
1556 (unk_op_print_tab): Moved into
1557 auto_or_unknown_language::opcode_print_table.
1558 (unknown_language_arch_info): Delete, implementation moved into
1559 auto_or_unknown_language::language_arch_info.
1560 (class auto_or_unknown_language): New class, member functions
1561 copied from unknown_language class, with some updates.
1562 (class unknown_language): Most member functions moved into
1563 auto_or_unknown_language class. Inherit from
1564 auto_or_unknown_language class.
1565 (class auto_language): Inherit from auto_or_unknown_language.
1566 Delete most member functions.
1567
1a97fe8c
HD
15682020-10-22 Hannes Domani <ssbssa@yahoo.de>
1569
1570 * stabsread.c (read_member_functions): Remove gdb_assert.
1571
6b9d0dfd
HD
15722020-10-22 Hannes Domani <ssbssa@yahoo.de>
1573
1574 * gdbtypes.c (init_complex_type): Check target type name.
1575
4b4bb603
SM
15762020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1577
1578 * target-debug.h (target_debug_print_struct_target_ops_p):
1579 Remove.
1580 (target_debug_print_async_callback_ftype_p): Remove.
1581 (target_debug_print_struct_trace_state_variable_p): Remove.
1582 (target_debug_print_struct_traceframe_info_p): Remove.
1583 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1584 (target_debug_print_enum_btrace_format): Remove.
1585 (target_debug_print_enum_info_proc_what): Remove.
1586 (target_debug_print_thread_info_pp): Remove.
1587
24f5300a
SM
15882020-10-22 Simon Marchi <simon.marchi@efficios.com>
1589
1590 * target.h (struct target_ops) <make_corefile_notes>:
1591 Change return type to unique pointer.
1592 * target.c (dummy_make_corefile_notes): Likewise.
1593 * exec.c (struct exec_target) <make_corefile_notes>:
1594 Likewise.
1595 (exec_target::make_corefile_notes): Likewise.
1596 * procfs.c (class procfs_target) <make_corefile_notes>:
1597 Likewise.
1598 (procfs_do_thread_registers): Adjust to unique pointer.
1599 (struct procfs_corefile_thread_data): Add constructor.
1600 <note_data>: Change type to unique pointer.
1601 (procfs_corefile_thread_callback): Adjust to unique pointer.
1602 (procfs_target::make_corefile_notes): Change return type to
1603 unique pointer.
1604 * target-delegates.c: Re-generate.
1605 * gcore.c (write_gcore_file_1): Adjust.
1606 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1607 New.
1608
5fb4027f
TV
16092020-10-22 Tom de Vries <tdevries@suse.de>
1610
1611 * block.c (find_block_in_blockvector): Make sure the returned block
1612 contains pc.
1613
4a636814
SM
16142020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1615
1616 PR gdb/26693
1617 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1618 parameter.
1619 (load_cu): Pass existing CU.
1620 (process_imported_unit_die): Likewise.
1621 (follow_die_offset): Likewise.
1622
1bd57575
LM
16232020-10-22 Luis Machado <luis.machado@linaro.org>
1624
1625 * corelow.c (core_target::xfer_partial): Also check for an empty
1626 m_core_unavailable_mappings vector.
1627
6b4c676c
AB
16282020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1629
1630 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1631 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1632 * f-exp.y (arglist): Allow for a series of subranges.
1633 (subrange): Add cases for subranges with strides.
1634 * f-lang.c (value_f90_subarray): Catch use of array strides and
1635 throw an error.
1636 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1637
f2d8e4c5
AB
16382020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * expprint.c (print_subexp_standard): Change enum range_type to
1641 range_flag and rename variables to match.
1642 (dump_subexp_body_standard): Likewise.
1643 * expression.h (enum range_type): Rename to...
1644 (enum range_flag): ...this.
1645 (range_types): Rename to...
1646 (range_flags): ...this.
1647 * f-lang.c (value_f90_subarray): Change enum range_type to
1648 range_flag and rename variables to match.
1649 * parse.c (operator_length_standard): Likewise.
1650 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1651 range_type to range_flag.
1652 * rust-lang.c (rust_evaluate_funcall): Likewise.
1653 (rust_range): Likewise.
1654 (rust_compute_range): Likewise.
1655 (rust_subscript): Likewise.
1656
2f1b18db
AB
16572020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1658
1659 * expprint.c (print_subexp_standard): Update to reflect changes to
1660 enum range_type.
1661 (dump_subexp_body_standard): Likewise.
1662 * expression.h (enum range_type): Convert to a bit field enum, and
1663 make the enum unsigned.
1664 * f-exp.y (subrange): Update to reflect changes to enum
1665 range_type.
1666 * f-lang.c (value_f90_subarray): Likewise.
1667 * parse.c (operator_length_standard): Likewise.
1668 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1669 * rust-lang.c (rust_range): Likewise.
1670 (rust_compute_range): Likewise.
1671 (rust_subscript): Likewise.
1672
a46d1843
SM
16732020-10-21 Simon Marchi <simon.marchi@efficios.com>
1674
1675 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1676 (displaced_step_in_progress): Fix comment.
1677
c21f37a8
SM
16782020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1679
1680 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1681 * gdbarch.c: Re-generate.
1682 * gdbarch.h: Re-generate.
1683 * gcore.c (write_gcore_file_1): Adjust.
1684 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1685 constructor.
1686 <note_data>: Change type to unique pointer.
1687 <abort_iteration>: Change type to bool.
1688 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1689 (fbsd_collect_thread_registers): Return void, adjust.
1690 (struct fbsd_corefile_thread_data): Add construtor.
1691 <note_data>: Change type to unique pointer.
1692 (fbsd_corefile_thread): Adjust.
1693 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1694 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1695 to unique pointer, adjust.
1696 (struct linux_collect_regset_section_cb_data): Add constructor.
1697 <note_data>: Change type to unique pointer.
1698 <abort_iteration>: Change type to bool.
1699 (linux_collect_thread_registers): Return void, adjust.
1700 (struct linux_corefile_thread_data): Add constructor.
1701 <note_data>: Change type to unique pointer.
1702 (linux_corefile_thread): Adjust.
1703 (linux_make_corefile_notes): Return unique pointer, adjust.
1704
07fbbd01
SM
17052020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1706
1707 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1708 * gdbarch.c: Re-generate.
1709 * gdbarch.h: Re-generate.
1710 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1711 bool.
1712 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1713 Likewise.
1714 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1715 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1716 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1717 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1718
39535193
SM
17192020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1720
1721 * gdbarch.sh: Make generated predicates return bool.
1722 * gdbarch.c: Re-generate.
1723 * gdbarch.h: Re-generate.
1724
ad523d01
TT
17252020-10-20 Tom Tromey <tom@tromey.com>
1726
1727 * varobj-iter.h (struct varobj_item): Remove typedef.
1728
c4464ade
SM
17292020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1730
1731 * infrun.c (currently_stepping): Change int to bool
1732 (maybe_software_singlestep): Likewise.
1733 (show_stop_on_solib_events): Likewise.
1734 (stepping_past_nonsteppable_watchpoint): Likewise.
1735 (displaced_step_in_progress_any_inferior): Likewise.
1736 (displaced_step_in_progress_thread): Likewise.
1737 (keep_going_stepped_thread): Likewise.
1738 (thread_still_needs_step_over): Likewise.
1739 (start_step_over): Likewise.
1740 (do_target_resume): Likewise.
1741 (resume_1): Likewise.
1742 (clear_proceed_status): Likewise.
1743 (thread_still_needs_step_over_bp): Likewise.
1744 (proceed): Likewise.
1745 (switch_back_to_stepped_thread): Likewise.
1746 (adjust_pc_after_break): Likewise.
1747 (stepped_in_from): Likewise.
1748 (handle_stop_requested): Likewise.
1749 (handle_syscall_event): Likewise.
1750 (handle_no_resumed): Likewise.
1751 (handle_inferior_event): Likewise.
1752 (finish_step_over): Likewise.
1753 (handle_signal_stop): Likewise.
1754 (process_event_stop_test): Likewise.
1755
2eb20436
SM
17562020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1757
1758 * infrun.c (get_displaced_stepping_state): Fix comment.
1759
e0c45ded
AS
17602020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1761
1762 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1763
22cc388e
TT
17642020-10-19 Tom Tromey <tromey@adacore.com>
1765
1766 PR tui/26719
1767 * tui/tui-winsource.h (struct tui_source_window_base)
1768 <refresh_window>: Rename from refresh_pad.
1769 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1770 Rename from refresh_pad.
1771 (tui_source_window_base::show_source_content)
1772 (tui_source_window_base::do_scroll_horizontal): Update.
1773
3c6eb4d4
TBA
17742020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1775
1776 * thread.c (_initialize_thread): Fine-tune the help text of
1777 'info threads'.
1778
26703721
TBA
17792020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1780
1781 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1782
61c26be8
MS
17832020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1784
1785 * breakpoint.c (handle_jit_event): Add an argument, change how
1786 `jit_event_handler` is called.
1787
932539d7
TT
17882020-10-17 Tom Tromey <tom@tromey.com>
1789
1790 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1791 (scan_xcoff_symtab): Update.
1792 * psymtab.h (class psymtab_storage) <global_psymbols,
1793 static_psymbols, current_global_psymbols,
1794 current_static_psymbols>: Remove.
1795 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1796 (match_partial_symbol, lookup_partial_symbol): Update.
1797 (print_partial_symbols): Change parameters.
1798 (dump_psymtab, recursively_search_psymtabs)
1799 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1800 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1801 (concat): Remove.
1802 (end_psymtab_common): Simplify.
1803 (append_psymbol_to_list): Change parameters.
1804 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1805 (init_psymbol_list): Simplify.
1806 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1807 * psympriv.h (struct partial_symtab) <empty>: New method.
1808 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1809 Remove.
1810 <global_psymbols, static_psymbols>: New members.
1811 <add_psymbol>: New methods.
1812 (add_psymbol_to_list): Don't declare.
1813 (psymbol_placement): Move earlier.
1814 * mdebugread.c (parse_partial_symbols): Update.
1815 (handle_psymbol_enumerators): Change parameters.
1816 (mdebug_expand_psymtab): Update.
1817 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1818 (add_partial_symbol): Update.
1819 * dwarf2/index-write.c (write_psymbols): Change parameters.
1820 (write_one_signatured_type): Update.
1821 (recursively_count_psymbols): Update.
1822 (recursively_write_psymbols): Update.
1823 (class debug_names) <recursively_write_psymbols>: Update.
1824 <write_psymbols>: Change parameters.
1825 <write_one_signatured_type>: Update.
1826 * dbxread.c (read_dbx_symtab): Update.
1827 (dbx_end_psymtab): Use partial_symtab::empty.
1828 * ctfread.c (struct ctf_context) <pst>: New member.
1829 (create_partial_symtab): Set it.
1830 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1831 (scan_partial_symbols): Use the psymtab's context. Update.
1832
cfabbd35
TT
18332020-10-17 Tom Tromey <tom@tromey.com>
1834
1835 * valprint.c (generic_value_print): Remove comment.
1836 * m2-valprint.c (m2_value_print_inner): Remove comment.
1837 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1838 type.
1839
520596f2
TV
18402020-10-17 Tom de Vries <tdevries@suse.de>
1841
1842 PR symtab/26317
1843 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1844 symbol main.
1845
76547ab3
TV
18462020-10-14 Tom de Vries <tdevries@suse.de>
1847
1848 PR gdb/26733
1849 * solib.c (solib_contains_address_p): Handle
1850 'solib->sections == nullptr'.
1851
d3a07122
SM
18522020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1853
1854 PR gdb/26642
1855 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1856 target can't do async.
1857 * target.c (target_wait): Assert that we don't pass
1858 TARGET_WNOHANG to a target that can't async.
1859
1b71cfcf
KR
18602020-10-13 Kamil Rytarowski <n54@gmx.com>
1861
1862 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1863 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1864 * alpha-bsd-nat.c: Adjust include.
1865 * alpha-bsd-tdep.h: Adjust comment.
1866 * alpha-nbsd-tdep.c: Rename to ...
1867 * alpha-netbsd-tdep.c: ... this, adjust include.
1868 * amd64-nbsd-nat.c: Rename to ...
1869 * amd64-netbsd-nat.c: ... this, adjust include.
1870 * amd64-nbsd-tdep.c: Rename to ...
1871 * amd64-netbsd-tdep.c: ... this, adjust include.
1872 * amd64-tdep.h: Adjust include.
1873 * arm-nbsd-nat.c: Rename to ...
1874 * arm-netbsd-nat.c: ... this, adjust include.
1875 * arm-nbsd-tdep.c: Rename to ...
1876 * arm-netbsd-tdep.c: ... this, adjust include.
1877 * arm-nbsd-tdep.h: Rename to ...
1878 * arm-netbsd-tdep.h: ... this, adjust include.
1879 * configure.nat: Adjust file lists.
1880 * configure.tgt: Likewise.
1881 * hppa-nbsd-nat.c: Rename to ...
1882 * hppa-netbsd-nat.c: ... this, adjust include.
1883 * hppa-nbsd-tdep.c: Rename to ...
1884 * hppa-netbsd-tdep.c: ... this, adjust include.
1885 * i386-nbsd-nat.c: Rename to ...
1886 * i386-netbsd-nat.c: ... this, adjust include.
1887 * i386-nbsd-tdep.c: Rename to ...
1888 * i386-netbsd-tdep.c: ... this, adjust include.
1889 * m68k-bsd-nat.c: Adjust include.
1890 * mips-nbsd-nat.c: Rename to ...
1891 * mips-netbsd-nat.c: ... this, adjust include.
1892 * mips-nbsd-tdep.c: Rename to ...
1893 * mips-netbsd-tdep.c: ... this, adjust include.
1894 * mips-nbsd-tdep.h: Rename to ...
1895 * mips-netbsd-tdep.h: ... this.
1896 * nbsd-nat.c: Rename to ...
1897 * netbsd-nat.c: ... this, adjust include.
1898 * nbsd-nat.h: Rename to ...
1899 * netbsd-nat.h: ... this, adjust include.
1900 * nbsd-tdep.c: Rename to ...
1901 * netbsd-tdep.c: ... this, adjust include.
1902 * nbsd-tdep.h: Rename to ...
1903 * netbsd-tdep.h: ... this.
1904 * ppc-nbsd-nat.c: Rename to ...
1905 * ppc-netbsd-nat.c: ... this, adjust include.
1906 * ppc-nbsd-tdep.c: Rename to ...
1907 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1908 * ppc-nbsd-tdep.h: Rename to ...
1909 * ppc-netbsd-tdep.h: ... this.
1910 * sh-nbsd-nat.c: Rename to ...
1911 * sh-netbsd-nat.c: ... this, adjust include.
1912 * sh-nbsd-tdep.c: Rename to ...
1913 * sh-netbsd-tdep.c: ... this, adjust include.
1914 * sparc-nbsd-nat.c: Rename to ...
1915 * sparc-netbsd-nat.c: ... this.
1916 * sparc-nbsd-tdep.c: Rename to ...
1917 * sparc-netbsd-tdep.c: ... this, adjust include.
1918 * sparc64-nbsd-nat.c: Rename to ...
1919 * sparc64-netbsd-nat.c: ... this.
1920 * sparc64-nbsd-tdep.c: Rename to ...
1921 * sparc64-netbsd-tdep.c: ... this, adjust include.
1922 * sparc64-tdep.h: Adjust comment.
1923 * vax-bsd-nat.c: Adjust include.
1924 * vax-nbsd-tdep.c: Rename to ...
1925 * vax-netbsd-tdep.c: ... this, adjust include.
1926
d7a78e5c
TT
19272020-10-12 Tom Tromey <tom@tromey.com>
1928
1929 * target.h (struct target_ops) <get_section_table>: Update.
1930 (target_get_section_table): Update.
1931 * target.c (target_get_section_table, target_section_by_addr)
1932 (memory_xfer_partial_1): Update.
1933 * target-section.h (target_section_table): Now an alias.
1934 * target-delegates.c: Rebuild.
1935 * target-debug.h (target_debug_print_target_section_table_p):
1936 Rename from target_debug_print_struct_target_section_table_p.
1937 * symfile.c (build_section_addr_info_from_section_table): Update.
1938 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1939 * solib-svr4.c (scan_dyntag): Update.
1940 * solib-dsbt.c (scan_dyntag): Update.
1941 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1942 Update.
1943 * record-full.c (record_full_core_target::xfer_partial): Update.
1944 * progspace.h (struct program_space) <target_sections>: Update.
1945 * exec.h (print_section_info): Update.
1946 * exec.c (exec_target::close, build_section_table)
1947 (add_target_sections, add_target_sections_of_objfile)
1948 (remove_target_sections, exec_on_vfork)
1949 (section_table_available_memory)
1950 (section_table_xfer_memory_partial)
1951 (exec_target::get_section_table, exec_target::xfer_partial)
1952 (print_section_info, set_section_command)
1953 (exec_set_section_address, exec_target::has_memory): Update.
1954 * corelow.c (core_target::build_file_mappings)
1955 (core_target::xfer_partial, core_target::info_proc_mappings)
1956 (core_target::info_proc_mappings): Update.
1957 * bfd-target.c (class target_bfd): Update
1958
eda214ce
TT
19592020-10-12 Tom Tromey <tom@tromey.com>
1960
1961 * progspace.c (program_space::~program_space): Don't call
1962 clear_section_table.
1963 * exec.h (clear_section_table): Don't declare.
1964 * exec.c (exec_target::close): Update.
1965 (clear_section_table): Remove.
1966
91840ee3
TT
19672020-10-12 Tom Tromey <tom@tromey.com>
1968
1969 * exec.c (add_target_sections_of_objfile): Simplify.
1970
2d128614
TT
19712020-10-12 Tom Tromey <tom@tromey.com>
1972
1973 * solib.c (solib_map_sections): Update.
1974 * record-full.c (record_full_core_open_1): Update.
1975 * exec.h (build_section_table): Return a target_section_table.
1976 * exec.c (exec_file_attach): Update.
1977 (build_section_table): Return a target_section_table.
1978 * corelow.c (core_target::core_target): Update.
1979 * bfd-target.c (target_bfd::target_bfd): Update.
1980
bb2a6777
TT
19812020-10-12 Tom Tromey <tom@tromey.com>
1982
1983 * target.c (target_section_by_addr, memory_xfer_partial_1):
1984 Update.
1985 * target-section.h (struct target_section_table): Use
1986 std::vector.
1987 * symfile.h (build_section_addr_info_from_section_table): Take a
1988 target_section_table.
1989 * symfile.c (build_section_addr_info_from_section_table): Take a
1990 target_section_table.
1991 * solist.h (struct so_list) <sections>: Change type.
1992 <sections_end>: Remove.
1993 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1994 (solib_contains_address_p): Update.
1995 * solib-svr4.c (scan_dyntag): Update.
1996 * solib-dsbt.c (scan_dyntag): Update.
1997 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1998 Update.
1999 * record-full.c (record_full_core_start, record_full_core_end):
2000 Remove.
2001 (record_full_core_sections): New global.
2002 (record_full_core_open_1, record_full_core_target::xfer_partial):
2003 Update.
2004 * exec.h (build_section_table, section_table_xfer_memory_partial)
2005 (add_target_sections): Take a target_section_table.
2006 * exec.c (exec_file_attach, clear_section_table): Update.
2007 (resize_section_table): Remove.
2008 (build_section_table, add_target_sections): Take a
2009 target_section_table.
2010 (add_target_sections_of_objfile, remove_target_sections)
2011 (exec_on_vfork): Update.
2012 (section_table_available_memory): Take a target_section_table.
2013 (section_table_read_available_memory): Update.
2014 (section_table_xfer_memory_partial): Take a target_section_table.
2015 (print_section_info, set_section_command)
2016 (exec_set_section_address, exec_target::has_memory): Update.
2017 * corelow.c (class core_target) <m_core_section_table,
2018 m_core_file_mappings>: Remove braces.
2019 <~core_target>: Remove.
2020 (core_target::core_target): Update.
2021 (core_target::~core_target): Remove.
2022 (core_target::build_file_mappings)
2023 (core_target::xfer_memory_via_mappings)
2024 (core_target::xfer_partial, core_target::info_proc_mappings):
2025 Update.
2026 * bfd-target.c (target_bfd::xfer_partial): Update.
2027 (target_bfd::target_bfd): Update.
2028 (target_bfd::~target_bfd): Remove.
2029
7b466b10
TT
20302020-10-12 Tom Tromey <tom@tromey.com>
2031
2032 * target.h (struct target_section, struct target_section_table):
2033 Move to target-section.h.
2034 * target-section.h: New file.
2035
87a37e5e
PA
20362020-10-12 Pedro Alves <pedro@palves.net>
2037
2038 PR exp/26602
2039 * valops.c (struct struct_field_searcher): New.
2040 (update_search_result): Rename to ...
2041 (struct_field_searcher::update_result): ... this. Simplify
2042 prototype. Record all found fields.
2043 (do_search_struct_field): Rename to ...
2044 (struct_field_searcher::search): ... this. Simplify prototype.
2045 Maintain stack of visited baseclass path. Call update_result for
2046 fields too. Keep searching fields in baseclasses instead of
2047 stopping at the first found field.
2048 (search_struct_field): Use struct_field_searcher. When looking
2049 for fields, report ambiguous access attempts.
2050
9370fd51
AB
20512020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2052
2053 * frame.c (inside_main_func): Check full symbols as well as
2054 minimal symbols.
2055
59c8a30b
JB
20562020-10-09 Joel Brobecker <brobecker@adacore.com>
2057
2058 * ada-lang.c (advance_wild_match): Rewrite the function's
2059 description. Change the type of target0, t0 and t1 to char.
2060
7c184d33
TT
20612020-10-09 Tom Tromey <tromey@adacore.com>
2062
2063 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2064
5c4258f4
TT
20652020-10-09 Tom Tromey <tromey@adacore.com>
2066
2067 * ada-lang.h (ada_encode): Return std::string.
2068 * ada-lang.c (ada_encode_1): Return std::string.
2069 (ada_encode): Likewise.
2070 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2071 Update.
2072 * ada-exp.y (block_lookup, write_var_or_type): Update.
2073
3d87245c
HD
20742020-10-09 Hannes Domani <ssbssa@yahoo.de>
2075
2076 PR exp/26714
2077 * printcmd.c (print_formatted): Handle void results as
2078 unformatted prints.
2079
bbb826f5
AB
20802020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2081
2082 * arch/aarch32.c (aarch32_create_target_description): Release the
2083 target_desc_up as late as possible.
2084 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2085 * arch/amd64.c (amd64_create_target_description): Likewise.
2086 * arch/arc.c (arc_create_target_description): Return a
2087 target_desc_up, don't release it.
2088 * arch/arc.h (arc_create_target_description): Update declaration.
2089 (arc_lookup_target_description): Move target_desc_up into the
2090 cache, and return a borrowed pointer.
2091 * arch/arm.c (arm_create_target_description): Release the
2092 target_desc_up as late as possible.
2093 * arch/i386.c (i386_create_target_description): Likewise.
2094 * arch/riscv.h (riscv_create_target_description): Update
2095 declaration to match definition.
2096 * arch/tic6x.c (tic6x_create_target_description): Release the
2097 target_desc_up as late as possible.
2098
361cb219
AB
20992020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2100
2101 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2102 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2103
f5c4b229
JV
21042020-10-09 Jan Vrany <jan.vrany@labware.com>
2105
2106 * source.c (directory_command): Notify observers that "directories"
2107 parameter has changed.
2108
b2701685
TT
21092020-10-08 Tom Tromey <tom@tromey.com>
2110
2111 * cli/cli-cmds.c (print_disassembly): Style function name and
2112 addresses. Add _() wrappers.
2113
ada508b6
SV
21142020-10-08 Shahab Vahedi <shahab@synopsys.com>
2115
2116 * NEWS: Mention ARC support in GDBserver.
2117
51a948fd
AB
21182020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2119
2120 * arch/aarch32.c (aarch32_create_target_description): Release
2121 unique_ptr returned from allocate_target_description.
2122 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2123 * arch/amd64.c (amd64_create_target_description): Likewise.
2124 * arch/arc.c (arc_create_target_description): Likewise.
2125 * arch/arm.c (arm_create_target_description): Likewise.
2126 * arch/i386.c (i386_create_target_description): Likewise.
2127 * arch/riscv.c (riscv_create_target_description): Update return
2128 type. Handle allocate_target_description returning a unique_ptr.
2129 (riscv_lookup_target_description): Update to handle unique_ptr.
2130 * arch/tic6x.c (tic6x_create_target_description): Release
2131 unique_ptr returned from allocate_target_description.
2132 * features/microblaze-with-stack-protect.c: Regenerate.
2133 * features/microblaze.c: Regenerate.
2134 * features/mips-dsp-linux.c: Regenerate.
2135 * features/mips-linux.c: Regenerate.
2136 * features/mips64-dsp-linux.c: Regenerate.
2137 * features/mips64-linux.c: Regenerate.
2138 * features/nds32.c: Regenerate.
2139 * features/nios2.c: Regenerate.
2140 * features/or1k.c: Regenerate.
2141 * features/rs6000/powerpc-32.c: Regenerate.
2142 * features/rs6000/powerpc-32l.c: Regenerate.
2143 * features/rs6000/powerpc-403.c: Regenerate.
2144 * features/rs6000/powerpc-403gc.c: Regenerate.
2145 * features/rs6000/powerpc-405.c: Regenerate.
2146 * features/rs6000/powerpc-505.c: Regenerate.
2147 * features/rs6000/powerpc-601.c: Regenerate.
2148 * features/rs6000/powerpc-602.c: Regenerate.
2149 * features/rs6000/powerpc-603.c: Regenerate.
2150 * features/rs6000/powerpc-604.c: Regenerate.
2151 * features/rs6000/powerpc-64.c: Regenerate.
2152 * features/rs6000/powerpc-64l.c: Regenerate.
2153 * features/rs6000/powerpc-7400.c: Regenerate.
2154 * features/rs6000/powerpc-750.c: Regenerate.
2155 * features/rs6000/powerpc-860.c: Regenerate.
2156 * features/rs6000/powerpc-altivec32.c: Regenerate.
2157 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2158 * features/rs6000/powerpc-altivec64.c: Regenerate.
2159 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2160 * features/rs6000/powerpc-e500.c: Regenerate.
2161 * features/rs6000/powerpc-e500l.c: Regenerate.
2162 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2163 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2164 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2165 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2166 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2167 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2168 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2169 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2170 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2171 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2172 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2173 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2174 * features/rs6000/powerpc-vsx32.c: Regenerate.
2175 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2176 * features/rs6000/powerpc-vsx64.c: Regenerate.
2177 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2178 * features/rs6000/rs6000.c: Regenerate.
2179 * features/rx.c: Regenerate.
2180 * features/s390-gs-linux64.c: Regenerate.
2181 * features/s390-linux32.c: Regenerate.
2182 * features/s390-linux32v1.c: Regenerate.
2183 * features/s390-linux32v2.c: Regenerate.
2184 * features/s390-linux64.c: Regenerate.
2185 * features/s390-linux64v1.c: Regenerate.
2186 * features/s390-linux64v2.c: Regenerate.
2187 * features/s390-te-linux64.c: Regenerate.
2188 * features/s390-tevx-linux64.c: Regenerate.
2189 * features/s390-vx-linux64.c: Regenerate.
2190 * features/s390x-gs-linux64.c: Regenerate.
2191 * features/s390x-linux64.c: Regenerate.
2192 * features/s390x-linux64v1.c: Regenerate.
2193 * features/s390x-linux64v2.c: Regenerate.
2194 * features/s390x-te-linux64.c: Regenerate.
2195 * features/s390x-tevx-linux64.c: Regenerate.
2196 * features/s390x-vx-linux64.c: Regenerate.
2197 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2198 from allocate_target_description.
2199 * target-descriptions.c (allocate_target_description): Update
2200 return type.
2201 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2202 allocate_target_description.
2203
485c47e5
TT
22042020-10-07 Tom Tromey <tromey@adacore.com>
2205
2206 * unittests/search-memory-selftests.c: New file.
2207 * Makefile.in (SELFTESTS_SRCS): Add
2208 unittests/search-memory-selftests.c.
2209
3a135a91
TT
22102020-10-07 Tom Tromey <tromey@adacore.com>
2211
2212 PR gdb/16930:
2213 * findcmd.c (_initialize_mem_search): Mention that the range is
2214 inclusive.
2215
4a72de73
TT
22162020-10-07 Tom Tromey <tromey@adacore.com>
2217
2218 * target.h (simple_search_memory): Don't declare.
2219 * target.c (simple_search_memory): Move to gdbsupport.
2220 (default_search_memory): Update.
2221 * remote.c (remote_target::search_memory): Update.
2222
a038ffd8
SM
22232020-10-07 Simon Marchi <simon.marchi@efficios.com>
2224
2225 * Makefile.in (COMPILE): Add CXXFLAGS.
2226 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2227 (check-headers): Add CXXFLAGS.
2228
cc463201
AK
22292020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2230
2231 * arc-linux-tdep.h: New file.
2232 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2233 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2234 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2235 arc_linux_gregset, arc_linux_v2_regset,
2236 arc_linux_iterate_over_regset_sections,
2237 arc_linux_core_read_description): Implement.
2238 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2239 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2240 (arc_gdbarch_features_create): Add.
2241 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2242
e4bd363f
SV
22432020-10-07 Shahab Vahedi <shahab@synopsys.com>
2244
2245 * arch/arc.h: Rename "arc_gdbarch_features" to
2246 "arc_arch_features".
2247 * arc-tdep.h: Likewise.
2248 * arc-tdep.c: Likewise.
2249
b68bef99
TBA
22502020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2251
2252 * infcmd.c (attach_command): Remove the redundant call to
2253 `clear_proceed_status`.
2254
4641551a
KR
22552020-10-07 Kamil Rytarowski <n54@gmx.com>
2256
2257 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2258
91e5e8db
KR
22592020-10-07 Kamil Rytarowski <n54@gmx.com>
2260
2261 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2262 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2263 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2264
64c03bdb
SM
22652020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2266
2267 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2268 (_initialize_break_catch_sig): Don't allocate array.
2269
31a8f60f
AB
22702020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2271
2272 * symtab.c (find_pc_line): Return unmapped addresses when the
2273 requested address is also unmapped.
2274
9e6dbd8b
SM
22752020-10-05 Simon Marchi <simon.marchi@efficios.com>
2276
2277 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2278 tui/tui-out.h.
2279
a1d217e8
SM
22802020-10-05 Simon Marchi <simon.marchi@efficios.com>
2281
2282 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2283 type::is_vector instead of TYPE_VECTOR.
2284
7d144117
SM
22852020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2286
2287 * auto-load.c (auto_load_objfile_script_1): Don't use
2288 debugfile_holder as temporary variable when stripping drive
2289 letter.
2290
cd096ec8
HD
22912020-10-05 Hannes Domani <ssbssa@yahoo.de>
2292
2293 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2294 Add TYPE_CODE_COMPLEX.
2295 (amd64_windows_return_value): Fix types returned via XMM0.
2296
b58e7f72
AH
22972020-10-05 Alan Hayward <alan.hayward@arm.com>
2298
2299 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2300 AArch64/ARM maintainers.
2301
8d378f27
SM
23022020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2303
2304 * NEWS: Mention set/show debug event-loop.
2305
d5519913
TT
23062020-10-02 Tom Tromey <tromey@adacore.com>
2307
2308 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2309 REG_EXTENDED.
2310
18b67edc
SM
23112020-10-02 Simon Marchi <simon.marchi@efficios.com>
2312
2313 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2314 * procfs.c (procfs_inferior_created): Remove.
2315 (_initialize_procfs): Don't register procfs_inferior_created.
2316
6b01403b
SM
23172020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2318
2319 * async-event.c (invoke_async_signal_handlers): Add debug
2320 print.
2321 (check_async_event_handlers): Likewise.
2322 * event-top.c (show_debug_event_loop): New function.
2323 (_initialize_event_top): Register "set debug event-loop"
2324 setting.
2325
ba988419
SM
23262020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2327
2328 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2329 * debug.h: Remove.
2330 * infrun.c: Include gdbsupport/common-debug.h.
2331 * linux-nat.c: Likewise.
2332
db20ebdf
SM
23332020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2334
2335 * async-event.h (create_async_signal_handler): Add name
2336 parameter.
2337 (create_async_event_handler): Likewise.
2338 * async-event.c (struct async_signal_handler) <name>: New field.
2339 (struct async_event_handler) <name>: New field.
2340 (create_async_signal_handler): Assign name.
2341 (create_async_event_handler): Assign name.
2342 * event-top.c (async_init_signals): Pass name when creating
2343 handler.
2344 * infrun.c (_initialize_infrun): Likewise.
2345 * record-btrace.c (record_btrace_push_target): Likewise.
2346 * record-full.c (record_full_open): Likewise.
2347 * remote-notif.c (remote_notif_state_allocate): Likewise.
2348 * remote.c (remote_target::open_1): Likewise.
2349 * tui/tui-win.c (tui_initialize_win): Likewise.
2350
2554f6f5
SM
23512020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2352
2353 * async-event.c (initialize_async_signal_handlers): Pass name to
2354 add_file_handler
2355 * event-top.c (ui_register_input_event_handler): Likewise.
2356 * linux-nat.c (linux_nat_target::async): Likewise.
2357 * run-on-main-thread.c (_initialize_run_on_main_thread):
2358 Likewise
2359 * ser-base.c (reschedule): Likewise.
2360 (ser_base_async): Likewise.
2361 * tui/tui-io.c: Likewise.
2362 * top.h (struct ui) <num>: New field.
2363 * top.c (highest_ui_num): New variable.
2364 (ui::ui): Initialize num.
2365
a7aba266
SM
23662020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2367
2368 * observable.h <inferior_created>: Remove parameters. Update all
2369 listeners.
2370 * inferior.h (post_create_inferior): Remove target parameter.
2371 Update all callers.
2372
048fde1e 23732020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2374
2375 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2376 and DW_MACRO_undef_strx.
2377 (dwarf_decode_macros): Likewise
2378 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2379 which is the value of DW_AT_str_offsets_base.
2380 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2381 str_offsets_base.
2382
064280be
KR
23832020-10-01 Kamil Rytarowski <n54@gmx.com>
2384
2385 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2386
6ff33035
KR
23872020-10-01 Kamil Rytarowski <n54@gmx.com>
2388
2389 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2390 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2391
1eb6eb79
KR
23922020-10-01 Kamil Rytarowski <n54@gmx.com>
2393
2394 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2395
95eb9e54
TV
23962020-09-30 Tom de Vries <tdevries@suse.de>
2397
2398 PR symtab/26683
2399 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2400
cae21f8e
TT
24012020-09-30 Tom Tromey <tromey@adacore.com>
2402
2403 * dwarf2/read.c (handle_variant): Use constant_value.
2404
529908cb
TT
24052020-09-29 Tom Tromey <tom@tromey.com>
2406
2407 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2408 (read_file_scope, dwarf2_get_pc_bounds)
2409 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2410 (read_structure_type, handle_struct_member_die)
2411 (read_enumeration_type, read_array_type, read_set_type)
2412 (read_tag_pointer_type, read_tag_reference_type)
2413 (read_subroutine_type, read_base_type, read_subrange_type)
2414 (read_full_die_1, partial_die_info::read)
2415 (partial_die_info::read, by, new_symbol)
2416 (dwarf2_const_value_data, dwarf2_const_value_attr)
2417 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2418 (prepare_one_comp_unit): Update.
2419 * dwarf2/attribute.h (DW_UNSND): Remove.
2420
c45bc3f8
TT
24212020-09-29 Tom Tromey <tom@tromey.com>
2422
2423 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2424 (read_subroutine_type, partial_die_info::read)
2425 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2426 (dwarf2_add_member_fn): Update.
2427 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2428 * dwarf2/attribute.c (attribute::as_boolean): New method.
2429
23dca5c3
TT
24302020-09-29 Tom Tromey <tom@tromey.com>
2431
2432 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2433 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2434 method.
2435 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2436
52c14d11
TT
24372020-09-29 Tom Tromey <tom@tromey.com>
2438
2439 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2440 the attribute's form.
2441
e8e5c158
TT
24422020-09-29 Tom Tromey <tom@tromey.com>
2443
2444 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2445 (dwarf2_add_member_fn): Update.
2446 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2447 * dwarf2/attribute.c (attribute::defaulted): New method, from
2448 is_valid_DW_AT_defaulted.
2449
d4df075e
TT
24502020-09-29 Tom Tromey <tom@tromey.com>
2451
2452 * dwarf2/read.c (dw2_get_file_names_reader)
2453 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2454 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2455 (dwarf2_symbol_mark_computed): Use as_unsigned.
2456 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2457 method.
2458 <form_is_section_offset>: Update comment.
2459
bf23a268
TT
24602020-09-29 Tom Tromey <tom@tromey.com>
2461
2462 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2463 dwarf2_default_access_attribute. Look up attribute.
2464 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2465 Update.
2466
7a5f294d
TT
24672020-09-29 Tom Tromey <tom@tromey.com>
2468
2469 * dwarf2/read.c (skip_one_die): Update.
2470 (read_full_die_1): Change how reprocessing is done.
2471 (partial_die_info::read): Update.
2472 (read_attribute_value): Remove need_reprocess parameter.
2473 (read_attribute): Likewise.
2474 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2475 New method.
2476
36d378cf
TT
24772020-09-29 Tom Tromey <tom@tromey.com>
2478
2479 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2480 (dwarf2_const_value_attr, dump_die_shallow)
2481 (dwarf2_fetch_constant_bytes): Update.
2482 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2483 comment.
2484 <set_address>: New method.
2485 (DW_ADDR): Remove.
2486 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2487 (attribute::as_string, attribute::as_address): Add assert.
2488
fe56917a
TT
24892020-09-29 Tom Tromey <tom@tromey.com>
2490
2491 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2492 (read_attribute_reprocess, read_attribute_value): Update.
2493 (read_attribute): Clear requires_reprocessing.
2494 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2495 form_requires_reprocessing>: New methods.
2496 <string_init>: Clear requires_reprocessing.
2497 <set_unsigned_reprocess>: New method.
2498 <name>: Shrink by one bit.
2499 <requires_reprocessing>: New member.
2500 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2501 method.
2502
414ad644
TT
25032020-09-29 Tom Tromey <tom@tromey.com>
2504
2505 * dwarf2/read.c (read_attribute_value): Update.
2506 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2507 set_unsigned>: New methods.
2508 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2509
1bc397c5
TT
25102020-09-29 Tom Tromey <tom@tromey.com>
2511
2512 * dwarf2/read.c (get_alignment, read_array_order)
2513 (read_attribute_value, dwarf2_const_value_attr)
2514 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2515 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2516 New methods.
2517 (DW_SND): Remove.
2518
630ed6b9
TT
25192020-09-29 Tom Tromey <tom@tromey.com>
2520
2521 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2522 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2523 Update.
2524 * dwarf2/attribute.h (struct attribute) <as_signature,
2525 set_signature>: New methods.
2526 (DW_SIGNATURE): Remove.
2527
9d2246fc
TT
25282020-09-29 Tom Tromey <tom@tromey.com>
2529
2530 * dwarf2/read.c (read_call_site_scope)
2531 (handle_data_member_location, dwarf2_add_member_fn)
2532 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2533 (partial_die_info::read, read_attribute_value)
2534 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2535 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2536 (dwarf2_symbol_mark_computed): Update.
2537 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2538 methods.
2539 (DW_BLOCK): Remove.
2540 * dwarf2/attribute.c (attribute::form_is_block): Add
2541 DW_FORM_data16.
2542
c6481205
TT
25432020-09-29 Tom Tromey <tom@tromey.com>
2544
2545 * dwarf2/read.c (read_cutu_die_from_dwo)
2546 (read_attribute_reprocess, read_attribute_value, read_attribute)
2547 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2548 (dwarf2_fetch_constant_bytes): Update.
2549 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2550 <set_string_noncanonical, set_string_canonical>: New methods.
2551 <string_is_canonical>: Update comment.
2552 <canonical_string_p>: Add assert.
2553 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2554 * dwarf2/attribute.c (attribute::form_is_string): New method.
2555 (attribute::string): Use it.
2556
3b64bf15
TT
25572020-09-29 Tom Tromey <tom@tromey.com>
2558
2559 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2560 (dump_die_shallow): Use canonical_string_p.
2561 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2562 method.
2563
2c830f54
TT
25642020-09-29 Tom Tromey <tom@tromey.com>
2565
2566 * dwarf2/read.c (partial_die_info::read)
2567 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2568 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2569 attribute::as_string.
2570
6c412691
TT
25712020-09-29 Tom Tromey <tom@tromey.com>
2572
2573 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2574 DW_ADDR.
2575 (attribute::string): Don't use DW_STRING.
2576 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2577 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2578
95f982e5
TT
25792020-09-29 Tom Tromey <tom@tromey.com>
2580
2581 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2582 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2583 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2584 * dwarf2/attribute.h (struct attribute): Rename methods.
2585 * dwarf2/attribute.c (attribute::as_address): Rename from
2586 value_as_address.
2587 (attribute::as_string): Rename from value_as_string.
2588
f800b00e
TT
25892020-09-29 Tom Tromey <tom@tromey.com>
2590
2591 * dwarf2/read.c (partial_die_info::read) <case
2592 DW_AT_linkage_name>: Use value_as_string.
2593 (dwarf2_string_attr): Use value_as_string.
2594 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2595 method.
2596 * dwarf2/attribute.c (attribute::value_as_string): New method.
2597
de38d64a
PA
25982020-09-29 Pedro Alves <pedro@palves.net>
2599
2600 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2601 defined before using '#pragma GCC diagnostic' instead of checking
2602 __clang__.
2603
9aed480c
TT
26042020-09-28 Tom Tromey <tom@tromey.com>
2605
2606 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2607 (handle_signal_stop): Update.
2608 * procfs.c (procfs_target::insert_watchpoint): Update.
2609 * target.h (target_have_steppable_watchpoint): Now a function.
2610
8a3ecb79
TT
26112020-09-28 Tom Tromey <tom@tromey.com>
2612
2613 * infrun.c (set_schedlock_func): Update.
2614 * target.h (target_can_lock_scheduler): Now a function.
2615
55f6301a
TT
26162020-09-28 Tom Tromey <tom@tromey.com>
2617
2618 * inferior.h (class inferior) <has_execution>: Update.
2619 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2620 * valops.c (find_function_in_inferior)
2621 (value_allocate_space_in_inferior): Update.
2622 * top.c (kill_or_detach): Update.
2623 * target.c (target_preopen, set_target_permissions): Update.
2624 (target_has_execution_current): Remove.
2625 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2626 Update.
2627 * solib.c (update_solib_list, reload_shared_libraries): Update.
2628 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2629 * solib-dsbt.c (enable_break): Update.
2630 * score-tdep.c (score7_fetch_inst): Update.
2631 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2632 Update.
2633 * remote.c (remote_target::start_remote)
2634 (remote_target::remote_check_symbols, remote_target::open_1)
2635 (remote_target::remote_detach_1, remote_target::verify_memory)
2636 (remote_target::xfer_partial, remote_target::read_description)
2637 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2638 * record-full.c (record_full_open_1): Update.
2639 * record-btrace.c (record_btrace_target_open): Update.
2640 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2641 (value_nsstring): Update.
2642 * linux-thread-db.c (add_thread_db_info)
2643 (thread_db_find_new_threads_silently, check_thread_db_callback)
2644 (try_thread_db_load_1, record_thread): Update.
2645 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2646 Update.
2647 * linux-fork.c (checkpoint_command): Update.
2648 * infrun.c (set_non_stop, set_observer_mode)
2649 (check_multi_target_resumption, for_each_just_stopped_thread)
2650 (maybe_remove_breakpoints, normal_stop)
2651 (class infcall_suspend_state): Update.
2652 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2653 (info_program_command, attach_command): Update.
2654 * infcall.c (call_function_by_hand_dummy): Update.
2655 * inf-loop.c (inferior_event_handler): Update.
2656 * gcore.c (gcore_command, derive_heap_segment): Update.
2657 * exec.c (exec_file_command): Update.
2658 * eval.c (evaluate_subexp): Update.
2659 * compile/compile.c (compile_to_object): Update.
2660 * cli/cli-dump.c (restore_command): Update.
2661 * breakpoint.c (update_watchpoint)
2662 (update_inserted_breakpoint_locations)
2663 (insert_breakpoint_locations, get_bpstat_thread): Update.
2664 * target.h (target_has_execution): Remove macro.
2665 (target_has_execution_current): Don't declare.
2666 (target_has_execution): Rename from target_has_execution_1. Add
2667 argument default.
2668
05374cfd
TT
26692020-09-28 Tom Tromey <tom@tromey.com>
2670
2671 * mi/mi-main.c (exec_reverse_continue)
2672 (mi_cmd_list_target_features): Update.
2673 * infrun.c (set_exec_direction_func): Update.
2674 * target.c (default_execution_direction): Update.
2675 * reverse.c (exec_reverse_once): Update.
2676 * target.h (target_can_execute_reverse): Now a function.
2677
9dccd06e
TT
26782020-09-28 Tom Tromey <tom@tromey.com>
2679
2680 * tui/tui-regs.c (tui_get_register)
2681 (tui_data_window::show_registers): Update.
2682 * thread.c (scoped_restore_current_thread::restore)
2683 (scoped_restore_current_thread::scoped_restore_current_thread):
2684 Update.
2685 * regcache-dump.c (regcache_print): Update.
2686 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2687 Update.
2688 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2689 * mep-tdep.c (current_me_module, current_options): Update.
2690 * linux-thread-db.c (thread_db_load): Update.
2691 * infcmd.c (registers_info, info_vector_command)
2692 (info_float_command): Update.
2693 * ia64-tdep.c (ia64_frame_prev_register)
2694 (ia64_sigtramp_frame_prev_register): Update.
2695 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2696 * gcore.c (derive_stack_segment): Update.
2697 * frame.c (get_current_frame, has_stack_frames): Update.
2698 * findvar.c (language_defn::read_var_value): Update.
2699 * arm-tdep.c (arm_pc_is_thumb): Update.
2700 * target.c (target_has_registers): Rename from
2701 target_has_registers_1.
2702 * target.h (target_has_registers): Remove macro.
2703 (target_has_registers): Rename from target_has_registers_1.
2704
841de120
TT
27052020-09-28 Tom Tromey <tom@tromey.com>
2706
2707 * windows-tdep.c (tlb_make_value): Update.
2708 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2709 * thread.c (scoped_restore_current_thread::restore)
2710 (scoped_restore_current_thread::scoped_restore_current_thread)
2711 (thread_command): Update.
2712 * stack.c (backtrace_command_1, frame_apply_level_command)
2713 (frame_apply_all_command, frame_apply_command): Update.
2714 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2715 Update.
2716 * gcore.c (derive_stack_segment): Update.
2717 * frame.c (get_current_frame, has_stack_frames): Update.
2718 * auxv.c (info_auxv_command): Update.
2719 * ada-tasks.c (ada_build_task_list): Update.
2720 * target.c (target_has_stack): Rename from target_has_stack_1.
2721 * target.h (target_has_stack): Remove macro.
2722 (target_has_stack): Rename from target_has_stack_1.
2723
a739972c
TT
27242020-09-28 Tom Tromey <tom@tromey.com>
2725
2726 * target.c (target_has_memory): Rename from target_has_memory_1.
2727 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2728 * thread.c (scoped_restore_current_thread::restore)
2729 (scoped_restore_current_thread::scoped_restore_current_thread):
2730 Update.
2731 * frame.c (get_current_frame, has_stack_frames): Update.
2732 * target.h (target_has_memory): Remove macro.
2733 (target_has_memory): Rename from target_has_memory_1.
2734
5b8a4776
TT
27352020-09-28 Tom Tromey <tom@tromey.com>
2736
2737 * target.c (target_has_all_memory_1): Remove.
2738 * target.h (target_has_all_memory): Remove define.
2739 (target_has_all_memory_1): Don't declare.
2740
bd356ec6
SM
27412020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2742
2743 * ser-base.c: Adjust comments formatting.
2744
2c72d5e5
TT
27452020-09-27 Tom Tromey <tom@tromey.com>
2746
2747 PR tui/25342:
2748 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2749
35a98237
TT
27502020-09-27 Tom Tromey <tom@tromey.com>
2751
2752 PR tui/25342:
2753 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2754
9e820dec
TT
27552020-09-27 Tom Tromey <tom@tromey.com>
2756
2757 * unittests/tui-selftests.c: Update.
2758 * tui/tui-winsource.h (struct tui_source_window_base)
2759 <extra_margin, show_line_number, refresh_pad>: New methods.
2760 <m_max_length, m_pad>: New members.
2761 (tui_copy_source_line): Update.
2762 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2763 first_col, line_width, ndigits parameters. Add length.
2764 (tui_source_window_base::show_source_line): Write to pad. Line
2765 number now 0-based.
2766 (tui_source_window_base::refresh_pad): New method.
2767 (tui_source_window_base::show_source_content): Write to pad. Call
2768 refresh_pad.
2769 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2770 not refill.
2771 (tui_source_window_base::update_exec_info): Call
2772 show_line_number.
2773 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2774 method.
2775 <m_digits>: New member.
2776 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2777 and m_max_length.
2778 (tui_source_window::show_line_number): New method.
2779 * tui/tui-io.h (tui_puts): Fix comment.
2780 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2781 m_max_length.
2782
c15c15c8
TT
27832020-09-27 Tom Tromey <tom@tromey.com>
2784
2785 * tui/tui-winsource.c
2786 (tui_source_window_base::set_is_exec_point_at): Don't call
2787 show_source_line.
2788
149830c1
TT
27892020-09-27 Tom Tromey <tom@tromey.com>
2790
2791 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2792 method.
2793 <erase>: Update.
2794 <cursor_x, cursor_y>: Remove.
2795 <m_inner_window>: New member.
2796 (tui_py_window::rerender): Create inner window.
2797 (tui_py_window::output): Write to inner window.
2798
8f9929bb
GR
27992020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2800
2801 PR python/26586
2802 * cli/cli-script.c (execute_control_commands): don't set
2803 instream to nullptr here as this breaks the from_tty argument
2804 to gdb.execute in Python.
2805 (execute_user_command): set instream to nullptr here instead.
2806
956bdb59
SM
28072020-09-25 Simon Marchi <simon.marchi@efficios.com>
2808
2809 * infrun.h (infrun_debug_printf): Fix formatting.
2810 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2811
3b93626b
SJ
28122020-09-25 Saagar Jha <saagar@saagarjha.com>
2813
2814 * compile/compile-object-load.h (struct munmap_list): Add
2815 explicitly-defined move constructor.
2816
b551a89f
TT
28172020-09-24 Tom Tromey <tromey@adacore.com>
2818
2819 PR tui/26638:
2820 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2821 method.
2822 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2823 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2824 (tui_prev_win): Rewrite.
2825
99bb393f
HD
28262020-09-23 Hannes Domani <ssbssa@yahoo.de>
2827
2828 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2829 in WOW64 processes as SIGINT.
2830 * nat/windows-nat.h: Make wow64_process a shared variable.
2831 * windows-nat.c: Remove static wow64_process variable.
2832
20a5fcbd
TT
28332020-09-23 Tom Tromey <tom@tromey.com>
2834
2835 PR symtab/25470:
2836 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2837 offset and bit size.
2838 * printcmd.c (print_scalar_formatted): Handle zero-length
2839 integer.
2840 (print_scalar_formatted): Use bit_size_differs_p.
2841 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2842 constant.
2843 (union type_specific): <int_stuff>: New member.
2844 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2845 methods.
2846 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2847 TYPE_SPECIFIC_FIELD.
2848 (recursive_dump_type, copy_type_recursive): Update.
2849 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2850 DW_AT_data_bit_offset.
2851
bac51ab7
TT
28522020-09-23 Tom Tromey <tom@tromey.com>
2853
2854 * utils.h (class gdb_argv): Add move operators.
2855 <append>: New methods.
2856 * compile/compile.c (build_argc_argv): Remove.
2857 (compile_args_argc): Remove.
2858 (compile_args_argv): Change type.
2859 (set_compile_args): Simplify.
2860 (append_args): Remove.
2861 (filter_args): Remove argcp parameter.
2862 (get_args): Return gdb_argv. Simplify.
2863 (compile_to_object): Update.
2864
92677124
TT
28652020-09-23 Tom Tromey <tom@tromey.com>
2866
2867 * compile/compile-object-run.c (do_module_cleanup)
2868 <~do_module_cleanup> :Remove.
2869 (do_module_cleanup): Update.
2870 * compile/compile-object-load.h (struct munmap_list): Add move
2871 assignment operator.
2872 <source_file>: Now a std::string.
2873 <munmap_list>: Rename. No longer a pointer.
2874 * compile/compile-object-load.c (struct setup_sections_data): Add
2875 constructor.
2876 <setup_one_section>: Declare.
2877 <munmap_list>: Move earlier.
2878 <m_bfd>: New member.
2879 <m_last_size, m_last_section_first, m_last_prot,
2880 m_last_max_alignment>: Rename, add initializers where needed.
2881 (setup_sections_data::setup_one_section): Rename from
2882 setup_sections. Update.
2883 (compile_object_load): Update. Don't use bfd_map_over_sections.
2884
e616f60a
TT
28852020-09-23 Tom Tromey <tom@tromey.com>
2886
2887 * compile/compile-object-run.c (struct do_module_cleanup): Add
2888 parameters to constructor. Update destructor.
2889 <source_file, scope, scope_data, out_value_type, out_value_addr,
2890 munmap_list_head, objfile_name_string>: Remove.
2891 <module>: New member.
2892 (do_module_cleanup): Update.
2893 (compile_object_run): Update.
2894
e947a848
TT
28952020-09-23 Tom Tromey <tom@tromey.com>
2896
2897 * compile/compile.c (eval_compile_command): Update.
2898 * compile/compile-object-run.h (compile_object_run): Take a
2899 compile_module_up.
2900 * compile/compile-object-run.c (compile_object_run): Take a
2901 compile_module_up.
2902 * compile/compile-object-load.h (struct compile_module): Add
2903 constructor, destructor.
2904 (compile_module_up): New typedef.
2905 (compile_object_load): Return compile_object_up.
2906 * compile/compile-object-load.c (compile_object_load): Return
2907 compile_module_up.
2908
0dbf6ee6
TT
29092020-09-23 Tom Tromey <tom@tromey.com>
2910
2911 * compile/compile-object-run.c (struct do_module_cleanup): Add
2912 constructor, destructor.
2913 <objfile_name_string>: Don't use struct hack.
2914 (do_module_cleanup): Use delete.
2915 (compile_object_run): Use new.
2916
ebe824f5
TT
29172020-09-23 Tom Tromey <tom@tromey.com>
2918
2919 * compile/compile-cplus-types.c
2920 (compile_cplus_convert_struct_or_union): Use std::vector.
2921 (compile_cplus_convert_func): Likewise.
2922 * compile/compile-c-types.c (convert_func): Use std::vector.
2923
5dd918d9
TT
29242020-09-21 Tom Tromey <tromey@adacore.com>
2925
2926 * sparc-tdep.c (sparc32_skip_prologue): Use
2927 skip_prologue_using_sal.
2928
5486c517
TT
29292020-09-19 Tom Tromey <tom@tromey.com>
2930
2931 * symfile.c (add_section_size_callback): Remove.
2932 (load_one_section): Rename from load_section_callback. Change
2933 parameters.
2934 (generic_load): Use foreach.
2935
8a6bb1d1
TT
29362020-09-19 Tom Tromey <tom@tromey.com>
2937
2938 * exec.c (add_to_section_table): Remove.
2939 (build_section_table): Use foreach.
2940
08f93a1a
TT
29412020-09-19 Tom Tromey <tom@tromey.com>
2942
2943 * elfread.c (elf_locate_sections): Change parameters.
2944 (elf_symfile_read): Use foreach.
2945
03cd72b8
TT
29462020-09-19 Tom Tromey <tom@tromey.com>
2947
2948 * cli/cli-dump.c (struct callback_data): Remove.
2949 (restore_one_section): Rename from restore_section_callback.
2950 Change parameters.
2951 (restore_binary_file): Change parameters.
2952 (restore_command): Use foreach.
2953
f4f2b85f
TT
29542020-09-19 Tom Tromey <tom@tromey.com>
2955
2956 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2957 (gcore_copy_callback): Likewise.
2958 (gcore_memory_sections): Use foreach.
2959
b35c1d1c
TT
29602020-09-19 Tom Tromey <tom@tromey.com>
2961
2962 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2963 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2964 parameters.
2965 (generic_elf_osabi_sniffer): Use foreach.
2966 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2967 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2968
5bb6e9dd
TT
29692020-09-19 Tom Tromey <tom@tromey.com>
2970
2971 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2972 (dwarf2_get_dwz_file): Use foreach.
2973 (dwarf2_locate_dwo_sections): Change parameters.
2974 (open_and_init_dwo_file): Use foreach.
2975 (dwarf2_locate_common_dwp_sections): Change parameters.
2976 (open_and_init_dwp_file): Use foreach.
2977
ad7277da
TT
29782020-09-19 Tom Tromey <tom@tromey.com>
2979
2980 * symfile.h: (find_lowest_section): Don't declare.
2981 * symfile.c (find_lowest_section): Now static. Change
2982 parameters.
2983 (struct place_section_arg): Remove.
2984 (place_section): Change parameters.
2985 (addr_info_make_relative): Use foreach.
2986 (symfile_dummy_outputs): Remove.
2987 (default_symfile_relocate): Use foreach.
2988
cb814f2e
TT
29892020-09-19 Tom Tromey <tom@tromey.com>
2990
2991 * objfiles.c (add_to_objfile_sections): Rename from
2992 add_to_objfile_sections_full.
2993 (add_to_objfile_sections): Remove.
2994 (build_objfile_section_table): Use foreach.
2995
3cabfd26
TT
29962020-09-19 Tom Tromey <tom@tromey.com>
2997
2998 * stap-probe.c (get_stap_base_address_1): Remove.
2999 (get_stap_base_address): Use foreach.
3000
1ce51eb5
TT
30012020-09-19 Tom Tromey <tom@tromey.com>
3002
3003 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3004 parameters.
3005 (gdb_bfd_close_or_warn): Use foreach.
3006
a190fabb
TT
30072020-09-19 Tom Tromey <tom@tromey.com>
3008
3009 * corelow.c (add_to_thread_list): Change parameters.
3010 (core_target_open): Use foreach.
3011
cafb0d81
TT
30122020-09-19 Tom Tromey <tom@tromey.com>
3013
3014 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3015 existing function.
3016
c8d5abea
AB
30172020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3018
3019 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3020 for arrays.
3021
6d816919
AB
30222020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3023
3024 * eval.c: Remove 'f-lang.h' include.
3025 (value_f90_subarray): Moved to f-lang.c.
3026 (eval_call): Renamed to...
3027 (evaluate_subexp_do_call): ...this, is no longer static, header
3028 comment moved into header file.
3029 (evaluate_funcall): Update call to eval_call.
3030 (skip_undetermined_arglist): Moved to f-lang.c.
3031 (fortran_value_subarray): Likewise.
3032 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3033 moved to evaluate_subexp_f.
3034 (calc_f77_array_dims): Moved to f-lang.c
3035 * expprint.c (print_subexp_funcall): New function.
3036 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3037 moved to print_subexp_f, OP_FUNCALL uses new function.
3038 (dump_subexp_body_funcall): New function.
3039 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3040 moved to dump_subexp_f, OP_FUNCALL uses new function.
3041 * expression.h (evaluate_subexp_do_call): Declare.
3042 * f-lang.c (value_f90_subarray): Moved from eval.c.
3043 (skip_undetermined_arglist): Likewise.
3044 (calc_f77_array_dims): Likewise.
3045 (fortran_value_subarray): Likewise.
3046 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3047 (operator_length_f): Likewise.
3048 (print_subexp_f): Likewise.
3049 (dump_subexp_body_f): Likewise.
3050 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3051 declaration of this operation to here.
3052 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3053 support moved to operator_length_f.
3054 * parser-defs.h (dump_subexp_body_funcall): Declare.
3055 (print_subexp_funcall): Declare.
3056 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3057 fortran-operator.def.
3058
8c37706a
AB
30592020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3060
3061 * eval.c (fortran_value_subarray): New function, content is taken
3062 from...
3063 (evaluate_subexp_standard): ...here, in two places. Now arrays
3064 and strings both call the new function.
3065 (calc_f77_array_dims): Add header comment, handle strings.
3066
14f9473c
VC
30672020-09-18 Victor Collod <vcollod@nvidia.com>
3068
3069 PR gdb/26635
3070 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3071 (i386_analyze_prologue): Call i386_skip_endbr.
3072
b60cea74
TT
30732020-09-18 Tom Tromey <tromey@adacore.com>
3074
3075 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3076 (windows_nat_target::wait): Update.
3077 * target/wait.h (enum target_wait_flag): New. Use
3078 DEF_ENUM_FLAGS_TYPE.
3079 * target/target.h (target_wait): Change type of options.
3080 * target.h (target_options_to_string, default_target_wait):
3081 Update.
3082 (struct target_ops) <wait>: Change type of options.
3083 * target.c (target_wait, default_target_wait, do_option): Change
3084 type of "options".
3085 (target_options_to_string): Likewise.
3086 * target-delegates.c: Rebuild.
3087 * target-debug.h (target_debug_print_target_wait_flags): Rename
3088 from target_debug_print_options.
3089 * sol-thread.c (class sol_thread_target) <wait>: Update.
3090 (sol_thread_target::wait): Update.
3091 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3092 (rs6000_nat_target::wait): Update.
3093 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3094 Update.
3095 (remote_target::wait_ns, remote_target::wait_as): Change type of
3096 "options".
3097 (remote_target::wait): Update.
3098 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3099 (gdbsim_target::wait): Update.
3100 * record-full.c (class record_full_base_target) <wait>: Update.
3101 (record_full_wait_1): Change type of "options".
3102 (record_full_base_target::wait): Update.
3103 * record-btrace.c (class record_btrace_target) <wait>: Update.
3104 (record_btrace_target::wait): Update.
3105 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3106 Update.
3107 (ravenscar_thread_target::wait): Update.
3108 * procfs.c (class procfs_target) <wait>: Update.
3109 (procfs_target::wait): Update.
3110 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3111 * obsd-nat.c (obsd_nat_target::wait): Update.
3112 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3113 (nto_procfs_target::wait): Update.
3114 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3115 * nbsd-nat.c (nbsd_wait): Change type of "options".
3116 (nbsd_nat_target::wait): Update.
3117 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3118 (thread_db_target::wait): Update.
3119 * linux-nat.h (class linux_nat_target) <wait>: Update.
3120 * linux-nat.c (linux_nat_target::wait): Update.
3121 (linux_nat_wait_1): Update.
3122 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3123 "options".
3124 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3125 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3126 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3127 (go32_nat_target::wait): Update.
3128 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3129 * gnu-nat.c (gnu_nat_target::wait): Update.
3130 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3131 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3132 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3133 * darwin-nat.c (darwin_nat_target::wait): Update.
3134 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3135 (bsd_uthread_target::wait): Update.
3136 * aix-thread.c (class aix_thread_target) <wait>: Update.
3137 (aix_thread_target::wait): Update.
3138
0295dde6
AB
31392020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3140
3141 * compile/compile-object-run.c (create_copied_type_recursive): New
3142 function.
3143 (compile_object_run): Use new function.
3144
d3483b43
JT
31452020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3146
3147 * NEWS: Mention x86_64 Cygwin core file support.
3148
e7d612ad
JT
31492020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3150
3151 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3152 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3153
aff9d387
JT
31542020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3155
62a5151b
JT
3156 * windows-tdep.h: Add prototypes.
3157 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3158 (i386_windows_core_pid_to_str): Move and rename ...
3159 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3160 (windows_core_pid_to_str): ... and here.
3161 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3162
31632020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3164 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3165 (amd64_windows_init_abi_common): ... and register.
3166
7d155da3
JT
31672020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3168
3169 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3170 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3171
e8ef12b9
PA
31722020-09-18 Pedro Alves <pedro@palves.net>
3173
3174 PR gdb/26631
3175 * thread.c (thread_find_command): Switch inferior before calling
3176 target methods.
3177
c1e1314d
TT
31782020-09-17 Tom Tromey <tromey@adacore.com>
3179
3180 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3181 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3182 (tdesc_arch_data_up): New typedef.
3183 (tdesc_use_registers, tdesc_data_alloc): Update.
3184 (tdesc_data_cleanup): Don't declare.
3185 * target-descriptions.c (tdesc_data_alloc): Return a
3186 tdesc_arch_data_up.
3187 (tdesc_arch_data_deleter::operator()): Rename from
3188 tdesc_data_cleanup. Change argument type.
3189 (tdesc_use_registers): Change early_data to an rvalue reference.
3190 (tdesc_use_registers): Don't use delete.
3191 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3192 * s390-tdep.c (s390_gdbarch_init): Update.
3193 * rx-tdep.c (rx_gdbarch_init): Update.
3194 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3195 * riscv-tdep.c (riscv_gdbarch_init): Update.
3196 * or1k-tdep.c (or1k_gdbarch_init): Update.
3197 * nios2-tdep.c (nios2_gdbarch_init): Update.
3198 * nds32-tdep.c (nds32_gdbarch_init): Update.
3199 * mips-tdep.c (mips_gdbarch_init): Update.
3200 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3201 * m68k-tdep.c (m68k_gdbarch_init): Update.
3202 * i386-tdep.c (i386_gdbarch_init): Update.
3203 * arm-tdep.c (arm_gdbarch_init): Update.
3204 * arc-tdep.c (arc_tdesc_init): Update.
3205 (arc_gdbarch_init): Update.
3206 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3207
0363df3d
HD
32082020-09-17 Hannes Domani <ssbssa@yahoo.de>
3209
3210 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3211 for WOW64 processes.
3212
280a9412
TT
32132020-09-17 Tom Tromey <tom@tromey.com>
3214
3215 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3216
6108fd18
TT
32172020-09-17 Tom Tromey <tom@tromey.com>
3218
3219 * value.c (preserve_values): Update.
3220 * python/py-type.c (save_objfile_types): Update.
3221 * guile/scm-type.c (save_objfile_types): Update.
3222 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3223 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3224 * compile/compile-object-run.c (compile_object_run): Update.
3225
fa9b1164
TT
32262020-09-17 Tom Tromey <tom@tromey.com>
3227
3228 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3229 Remove.
3230 <m_table>: Now htab_up.
3231 * typeprint.c (typedef_hash_table::recursively_update)
3232 (typedef_hash_table::add_template_parameters)
3233 (typedef_hash_table::typedef_hash_table): Update.
3234 (typedef_hash_table::~typedef_hash_table): Remove.
3235 (typedef_hash_table::typedef_hash_table)
3236 (typedef_hash_table::find_global_typedef)
3237 (typedef_hash_table::find_typedef): Update.
3238
eb53f105
TT
32392020-09-17 Tom Tromey <tom@tromey.com>
3240
3241 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3242
7a8a5d47
TT
32432020-09-17 Tom Tromey <tom@tromey.com>
3244
3245 * linespec.c (class decode_compound_collector)
3246 <~decode_compound_collector>: Remove.
3247 <m_unique_syms>: Now htab_up.
3248 (decode_compound_collector::operator ()): Update.
3249 (class symtab_collector) <~symtab_collector>: Remove.
3250 <m_symtab_table>: Now htab_up.
3251 (symtab_collector::operator ()): Update.
3252
99032cfc
TT
32532020-09-17 Tom Tromey <tom@tromey.com>
3254
3255 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3256 (filename_seen_cache::clear): Update.
3257 (~filename_seen_cache): Remove.
3258 (filename_seen_cache::seen): Update.
3259 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3260 htab_up.
3261 <~filename_seen_cache>: Remove.
3262 <traverse>: Update.
3263
32580f6d
TT
32642020-09-17 Tom Tromey <tom@tromey.com>
3265
3266 * completer.c (completion_tracker::discard_completions)
3267 (completion_tracker::~completion_tracker)
3268 (completion_tracker::maybe_add_completion)
3269 (completion_tracker::remove_completion)
3270 (completion_tracker::recompute_lowest_common_denominator)
3271 (completion_tracker::build_completion_result): Update.
3272 * completer.h (class completion_tracker) <have_completions>:
3273 Update.
3274 <m_entries_hash>: Now htab_up.
3275
c1fb9836
TT
32762020-09-17 Tom Tromey <tom@tromey.com>
3277
3278 * breakpoint.c (ambiguous_names_p): Use htab_up.
3279
88f07206
TT
32802020-09-17 Tom Tromey <tom@tromey.com>
3281
3282 * auto-load.c (struct auto_load_pspace_info)
3283 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3284 <loaded_script_files, loaded_script_texts>: Change type to
3285 htab_up.
3286 (~auto_load_pspace_info) Remove.
3287 (init_loaded_scripts_info, maybe_add_script_file)
3288 (maybe_add_script_text, auto_load_info_scripts): Update.
3289
9519b2ee
TT
32902020-09-17 Tom Tromey <tromey@adacore.com>
3291
3292 * c-exp.y (name_obstack): Now static.
3293
d2cd4113
CC
32942020-09-17 Chungyi Chi <demonic@csie.io>
3295
3296 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3297
b650a282
SM
32982020-09-16 Simon Marchi <simon.marchi@efficios.com>
3299
3300 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3301 (add_solib_catchpoint): Likewise.
3302 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3303 to bool.
3304 (add_solib_catchpoint): Change int parameter/variable to bool.
3305 (catch_load_or_unload): Likewise.
3306 (init_catchpoint): Likewise.
3307 (create_fork_vfork_event_catchpoint): Likewise.
3308 (catch_fork_command_1): Likewise.
3309 (catch_exec_command_1): Likewise.
3310
4d0bcfcf
SM
33112020-09-16 Simon Marchi <simon.marchi@efficios.com>
3312
3313 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3314 Change instance_flags to m_instance_flags.
3315
fe830662
TT
33162020-09-16 Tom Tromey <tromey@adacore.com>
3317
3318 PR gdb/26598:
3319 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3320
fe5ddfc3
JB
33212020-09-16 John Baldwin <jhb@FreeBSD.org>
3322
3323 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3324 PL_FLAG_EXEC.
3325 (fbsd_nat_target::insert_exec_catchpoint)
3326 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3327 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3328 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3329
e911c666
JB
33302020-09-16 John Baldwin <jhb@FreeBSD.org>
3331
3332 * configure.ac: Remove check for kinfo_getvmmap().
3333 * configure, config.in: Regenerate.
3334 * fbsd-nat.c (fbsd_read_mapping): Remove
3335 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3336 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3337 kinfo_get_vmmap() are always present.
3338
1f17d372
JB
33392020-09-16 John Baldwin <jhb@FreeBSD.org>
3340
3341 * fbsd-nat.c: Always include support for
3342 TARGET_OBJECT_SIGNAL_INFO.
3343
bcb1da7f
JB
33442020-09-16 John Baldwin <jhb@FreeBSD.org>
3345
3346 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3347 sysctl and remove procfs fallback.
3348
5515f729
JB
33492020-09-16 John Baldwin <jhb@FreeBSD.org>
3350
3351 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3352 * fbsd-nat.h: Likewise.
3353
da1df1db
TBA
33542020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3355
3356 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3357 argument.
3358
0e25e767
AB
33592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3360
3361 * ada-lang.c (ada_language_data): Delete.
3362 (ada_language): Remove references to ada_language_data.
3363 * c-lang.c (c_language_data): Delete.
3364 (c_language): Remove references to c_language_data.
3365 (cplus_language_data): Delete.
3366 (cplus_language): Remove references to cplus_language_data.
3367 (asm_language_data): Delete.
3368 (asm_language): Remove references to asm_language_data.
3369 (minimal_language_data): Delete.
3370 (minimal_language): Remove references to minimal_language_data.
3371 * d-lang.c (d_language_data): Delete.
3372 (d_language): Remove references to d_language_data.
3373 * f-lang.c (f_language_data): Delete.
3374 (f_language): Remove references to f_language_data.
3375 * go-lang.c (go_language_data): Delete.
3376 (go_language): Remove references to go_language_data.
3377 * language.c (unknown_language_data): Delete.
3378 (unknown_language): Remove references to unknown_language_data.
3379 (auto_language_data): Delete.
3380 (auto_language): Remove references to auto_language_data.
3381 * language.h (language_data): Delete struct.
3382 (language_defn): No longer inherit from language_data.
3383 * m2-lang.c (m2_language_data): Delete.
3384 (m2_language): Remove references to m2_language_data.
3385 * objc-lang.c (objc_language_data): Delete.
3386 (objc_language): Remove references to objc_language_data.
3387 * opencl-lang.c (opencl_language_data): Delete.
3388 (opencl_language): Remove references to opencl_language_data.
3389 * p-lang.c (pascal_language_data): Delete.
3390 (pascal_language): Remove references to pascal_language_data.
3391 * rust-lang.c (rust_language_data): Delete.
3392 (rust_language): Remove references to rust_language_data.
3393
b7c6e27d
AB
33942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3395
3396 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3397 initializer.
3398 (ada_language::opcode_print_table): New member function.
3399 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3400 (c_language::opcode_print_table): New member function.
3401 (cplus_language_data): Remove la_op_print_tab initializer.
3402 (cplus_language::opcode_print_table): New member function.
3403 (asm_language_data): Remove la_op_print_tab initializer.
3404 (asm_language::opcode_print_table): New member function.
3405 (minimal_language_data): Remove la_op_print_tab initializer.
3406 (minimal_language::opcode_print_table): New member function.
3407 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3408 (d_language::opcode_print_table): New member function.
3409 * expprint.c (print_subexp_standard): Update call to
3410 opcode_print_table.
3411 (op_string): Likewise.
3412 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3413 (f_language::opcode_print_table): New member function.
3414 * go-lang.c (go_language_data): Remove la_op_print_tab
3415 initializer.
3416 (go_language::opcode_print_table): New member function.
3417 * language.c (unknown_language_data): Remove la_op_print_tab
3418 initializer.
3419 (unknown_language::opcode_print_table): New member function.
3420 (auto_language_data): Remove la_op_print_tab initializer.
3421 (auto_language::opcode_print_table): New member function.
3422 * language.h (language_data): Remove la_op_print_tab field.
3423 (language_defn::opcode_print_table): Declare new member function.
3424 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3425 initializer.
3426 (m2_language::opcode_print_table): New member function.
3427 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3428 initializer.
3429 (objc_language::opcode_print_table): New member function.
3430 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3431 initializer.
3432 (opencl_language::opcode_print_table): New member function.
3433 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3434 initializer.
3435 (pascal_language::opcode_print_table): New member function.
3436 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3437 initializer.
3438 (rust_language::opcode_print_table): New member function.
3439
5aba6ebe
AB
34402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3441
3442 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3443 (ada_language::expression_ops): New member function.
3444 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3445 (c_language::expression_ops): New member function.
3446 (cplus_language_data): Remove la_exp_desc initializer.
3447 (cplus_language::expression_ops): New member function.
3448 (asm_language_data): Remove la_exp_desc initializer.
3449 (asm_language::expression_ops): New member function.
3450 (minimal_language_data): Remove la_exp_desc initializer.
3451 (minimal_language::expression_ops): New member function.
3452 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3453 (d_language::expression_ops): New member function.
3454 * eval.c (evaluate_subexp): Update call to expression_ops.
3455 * expprint.c (print_subexp): Likewise.
3456 (op_name): Likewise.
3457 (dump_subexp_body): Likewise.
3458 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3459 (f_language::expression_ops): New member function.
3460 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3461 (go_language::expression_ops): New member function.
3462 * language.c (language_defn::expression_ops): New function.
3463 (unknown_language_data): Remove la_exp_desc initializer.
3464 (auto_language_data): Likewise.
3465 * language.h (language_data): Remove la_exp_desc field.
3466 (language_defn::expression_ops): Declare new member function.
3467 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3468 (m2_language::expression_ops): New member function.
3469 * objc-lang.c (objc_language_data): Remove la_exp_desc
3470 initializer.
3471 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3472 initializer.
3473 (opencl_language::expression_ops): New member function.
3474 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3475 * parse.c (operator_length): Update call to expression_ops.
3476 (exp_iterate): Likewise.
3477 * rust-lang.c (rust_language_data): Remove la_exp_desc
3478 initializer.
3479 (ruse_language::expression_ops): New member function.
3480
b63a3f3f
AB
34812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3482
3483 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3484 initializer.
3485 (ada_language::varobj_ops): New member function.
3486 * c-lang.c (c_language_data): Remove la_varobj_ops
3487 initializer.
3488 (cplus_language_data): Likewise.
3489 (cplus_language::varobj_ops): New member function.
3490 (asm_language_data): Remove la_varobj_ops initializer.
3491 (minimal_language_data): Likewise.
3492 * d-lang.c (d_language_data): Likewise.
3493 * f-lang.c (f_language_data): Likewise.
3494 * go-lang.c (go_language_data): Likewise.
3495 * language.c (language_defn::varobj_ops): New function.
3496 (unknown_language_data): Remove la_varobj_ops
3497 initializer.
3498 (auto_language_data): Likewise.
3499 * language.h (language_data): Remove la_varobj_ops field.
3500 (language_defn::varobj_ops): Declare new member function.
3501 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3502 * objc-lang.c (objc_language_data): Likewise.
3503 * opencl-lang.c (opencl_language_data): Likewise.
3504 * p-lang.c (pascal_language_data): Likewise.
3505 * rust-lang.c (rust_language_data): Likewise.
3506 * varobj.c (varobj_create): Update call to varobj_ops.
3507 * varobj.h (default_varobj_ops): Delete define.
3508
1ac14a04
AB
35092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3510
3511 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3512 initializer.
3513 * c-lang.c (c_language_data): Likewise.
3514 (c_language::macro_expansion): New member function.
3515 (cplus_language_data): Likewise.
3516 (cplus_language::macro_expansion): New member function.
3517 (asm_language_data): Likewise.
3518 (asm_language::macro_expansion): New member function.
3519 (minimal_language_data): Likewise.
3520 (minimal_language::macro_expansion): New member function.
3521 * d-lang.c (d_language_data): Remove la_macro_expansion
3522 initializer.
3523 * f-lang.c (f_language_data): Likewise.
3524 * go-lang.c (go_language_data): Likewise.
3525 * language.c (unknown_language_data): Likewise.
3526 (auto_language_data): Likewise.
3527 * language.h (language_data): Remove la_macro_expansion field.
3528 (language_defn::macro_expansion): New member function.
3529 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3530 initializer.
3531 * objc-lang.c (objc_language_data): Likewise.
3532 (objc_language::macro_expansion): New member function.
3533 * opencl-lang.c (opencl_language_data): Likewise.
3534 (opencl_language::macro_expansion): New member function.
3535 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3536 initializer.
3537 * rust-lang.c (rust_language_data): Likewise.
3538 * symtab.c (default_collect_symbol_completion_matches_break_on):
3539 Update call to macro_expansion.
3540
3a3440fb
AB
35412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3542
3543 * ada-lang.c (ada_language_data): Remove la_array_ordering
3544 initializer.
3545 * c-lang.c (c_language_data): Likewise.
3546 (cplus_language_data): Likewise.
3547 (asm_language_data): Likewise.
3548 (minimal_language_data): Likewise.
3549 * d-lang.c (d_language_data): Likewise.
3550 * dwarf2/read.c (read_array_order): Update for call to
3551 array_ordering.
3552 * f-lang.c (f_language_data): Remove la_array_ordering
3553 initializer.
3554 (f_language::array_ordering): New member function.
3555 * go-lang.c (go_language_data): Remove la_array_ordering
3556 initializer.
3557 * language.c (unknown_language_data): Likewise.
3558 (auto_language_data): Likewise.
3559 * language.h (language_data): Delete la_array_ordering field.
3560 (language_defn::array_ordering): New member function.
3561 * m2-lang.c (m2_language_data): Remove la_array_ordering
3562 initializer.
3563 * objc-lang.c (objc_language_data): Likewise.
3564 * opencl-lang.c (opencl_language_data): Likewise.
3565 * p-lang.c (pascal_language_data): Likewise.
3566 * rust-lang.c (rust_language_data): Likewise.
3567
0d201fa4
AB
35682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3569
3570 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3571 initializer.
3572 * c-lang.c (c_language_data): Likewise.
3573 (cplus_language_data): Likewise.
3574 (asm_language_data): Likewise.
3575 (minimal_language_data): Likewise.
3576 * d-lang.c (d_language_data): Likewise.
3577 * f-lang.c (f_language_data): Likewise.
3578 (f_language::case_sensitivity): New member function.
3579 * go-lang.c (go_language_data): Remove la_case_sensitivity
3580 initializer.
3581 * language.c (enum case_mode): Moved here from language.h.
3582 (case_mode): Make static.
3583 (show_case_command): Update for case_sensitivity being a method.
3584 (set_case_command): Likewise.
3585 (set_range_case): Likewise.
3586 (unknown_language_data): Remove la_case_sensitivity initializer.
3587 (auto_language_data): Likewise.
3588 * language.h (case_mode): Delete, move enum declaration to
3589 language.c.
3590 (language_data): Delete la_case_sensitivity field.
3591 (language_defn::case_sensitivity): New member function.
3592 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3593 initializer.
3594 * objc-lang.c (objc_language_data): Likewise.
3595 * opencl-lang.c (opencl_language_data): Likewise.
3596 * p-lang.c (pascal_language_data): Likewise.
3597 * rust-lang.c (rust_language_data): Likewise.
3598
efdf6a73
AB
35992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3600
3601 * ada-lang.c (ada_language_data): Remove la_range_check
3602 initializer.
3603 * c-lang.c (c_language_data): Likewise.
3604 (cplus_language_data): Likewise.
3605 (asm_language_data): Likewise.
3606 (minimal_language_data): Likewise.
3607 * d-lang.c (d_language_data): Likewise.
3608 * f-lang.c (f_language_data): Likewise.
3609 (f_language::range_checking_on_by_default): New member function.
3610 * go-lang.c (go_language_data): Remove la_range_check initializer.
3611 * language.c (enum range_mode): Moved here from language.h.
3612 (range_mode): Made static.
3613 (show_range_command): Update to use
3614 range_checking_on_by_default.
3615 (set_range_command): Likewise.
3616 (set_range_case): Likewise.
3617 (unknown_language_data): Remove la_range_check initializer.
3618 (auto_language_data): Likewise.
3619 * language.h (range_mode): Delete. Enum definition moved to
3620 language.c.
3621 (language_data): Remove la_range_check field.
3622 (language_defn::range_checking_on_by_default): New member
3623 function.
3624 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3625 (m2_language::range_checking_on_by_default): New member function.
3626 * objc-lang.c (objc_language_data): Remove la_range_check
3627 initializer.
3628 * opencl-lang.c (opencl_language_data): Likewise.
3629 * p-lang.c (pascal_language_data): Likewise.
3630 (pascal_language::range_checking_on_by_default): New member
3631 function.
3632 * rust-lang.c (rust_language_data): Remove la_range_check
3633 initializer.
3634 (rust_language::range_checking_on_by_default): New member
3635 function.
3636
bf92aec5
AB
36372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3638
3639 * dwarf2/read.c (dwarf2_physname): Remove special case for
3640 language_go.
3641 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3642 member function.
3643
d3355e4d
AB
36442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3645
3646 * ada-lang.c (ada_language_data): Remove
3647 la_store_sym_names_in_linkage_form_p initializer.
3648 (ada_language::store_sym_names_in_linkage_form_p): New member
3649 function.
3650 * c-lang.c (c_language_data): Remove
3651 la_store_sym_names_in_linkage_form_p initializer.
3652 (c_language::store_sym_names_in_linkage_form_p): New member
3653 function.
3654 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3655 initializer.
3656 (asm_language_data): Likewise.
3657 (asm_language::store_sym_names_in_linkage_form_p): New member
3658 function.
3659 (minimal_language_data): Remove
3660 la_store_sym_names_in_linkage_form_p initializer.
3661 (minimal_language::store_sym_names_in_linkage_form_p): New member
3662 function.
3663 * d-lang.c (d_language_data): Remove
3664 la_store_sym_names_in_linkage_form_p initializer.
3665 * dwarf2/read.c (dwarf2_physname): Update call to
3666 store_sym_names_in_linkage_form_p.
3667 * f-lang.c (f_language_data): Remove
3668 la_store_sym_names_in_linkage_form_p initializer.
3669 * go-lang.c (go_language_data): Remove
3670 la_store_sym_names_in_linkage_form_p initializer.
3671 * language.c (unknown_language_data): Remove
3672 la_store_sym_names_in_linkage_form_p initializer.
3673 (unknown_language::store_sym_names_in_linkage_form_p): New member
3674 function.
3675 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3676 initializer.
3677 (auto_language::store_sym_names_in_linkage_form_p): New member
3678 function.
3679 * language.h (language_data): Remove
3680 la_store_sym_names_in_linkage_form_p member variable.
3681 (language_defn::store_sym_names_in_linkage_form_p): New member
3682 function.
3683 * m2-lang.c (m2_language_data): Remove
3684 la_store_sym_names_in_linkage_form_p initializer.
3685 * objc-lang.c (objc_language_data): Likewise.
3686 * opencl-lang.c (opencl_language_data): Likewise.
3687 * p-lang.c (pascal_language_data): Likewise.
3688 * rust-lang.c (rust_language_data): Likewise.
3689
22c12a6c
AB
36902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3691
3692 * ada-lang.c (ada_language_data): Remove string_lower_bound
3693 initializer.
3694 * c-lang.c (c_language_data): Likewise.
3695 (cplus_language_data): Likewise.
3696 (asm_language_data): Likewise.
3697 (minimal_language_data): Likewise.
3698 * d-lang.c (d_language_data): Likewise.
3699 * f-lang.c (f_language_data): Likewise.
3700 * go-lang.c (go_language_data): Likewise.
3701 * language.c (unknown_language_data): Likewise.
3702 (auto_language_data): Likewise.
3703 * language.h (language_data): Remove string_lower_bound field.
3704 (language_defn::string_lower_bound): New member function.
3705 * m2-lang.c (m2_language_data): Remove string_lower_bound
3706 initializer.
3707 (m2_language::string_lower_bound): New member function.
3708 * objc-lang.c (objc_language_data): Remove string_lower_bound
3709 initializer.
3710 * opencl-lang.c (opencl_language_data): Likewise.
3711 * p-lang.c (pascal_language_data): Likewise.
3712 * rust-lang.c (rust_language_data): Likewise.
3713 * valops.c (value_cstring): Update call to string_lower_bound.
3714 (value_string): Likewise.
3715 * value.c (allocate_repeated_value): Likewise.
3716
1c236ddd
AB
37172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3718
3719 * valops.c (value_repeat): Fix incorrect argument name in comment.
3720
67bd3fd5
AB
37212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3722
3723 * ada-lang.c (ada_language_data): Remove c_style_arrays
3724 initializer.
3725 (ada_language::c_style_arrays_p): New member fuction.
3726 * c-lang.c (c_language_data): Remove c_style_arrays
3727 initializer.
3728 (cplus_language_data): Likewise.
3729 (asm_language_data): Likewise.
3730 (minimal_language_data): Likewise.
3731 * d-lang.c (d_language_data): Likewise.
3732 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3733 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3734 (f_language::c_style_arrays_p): New member function.
3735 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3736 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3737 * language.c (unknown_language_data): Remove c_style_arrays
3738 initializer.
3739 (auto_language_data): Likewise.
3740 * language.h (language_data): Remove c_style_arrays field.
3741 (language_defn::c_style_arrays_p): New member function.
3742 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3743 (m2_language::c_style_arrays_p): New member function.
3744 * objc-lang.c (objc_language_data): Remove c_style_arrays
3745 initializer.
3746 * opencl-lang.c (opencl_language_data): Likewise.
3747 * p-lang.c (pascal_language_data): Likewise.
3748 * rust-lang.c (rust_language_data): Likewise.
3749 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3750 and update local variable to a bool.
3751 * valops.c (value_cast): Update call to c_style_arrays_p.
3752 (value_array): Likewise.
3753 * value.c (coerce_array): Likewise.
3754
85967615
AB
37552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3756
3757 * ada-lang.c (ada_language_data): Remove la_language initializer.
3758 * c-lang.c (c_language_data): Likewise.
3759 (cplus_language_data): Likewise.
3760 (asm_language_data): Likewise.
3761 (minimal_language_data): Likewise.
3762 * d-lang.c (d_language_data): Likewise.
3763 * f-lang.c (f_language_data): Likewise.
3764 * go-lang.c (go_language_data): Likewise.
3765 * language.c (unknown_language_data): Likewise.
3766 (auto_language_data): Likewise.
3767 * language.h (language_data): Remove la_language field.
3768 (language_defn::language_defn): Initialise la_language field.
3769 (language_defn::la_language): New member variable.
3770 * m2-lang.c (m2_language_data): Remove la_language field.
3771 * objc-lang.c (objc_language_data): Likewise.
3772 * opencl-lang.c (opencl_language_data): Likewise.
3773 * p-lang.c (pascal_language_data): Likewise.
3774 * rust-lang.c (rust_language_data): Likewise.
3775
e171d6f1
AB
37762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3777
3778 * ada-lang.c (ada_extensions): Delete, moved into
3779 ada_language::filename_extensions.
3780 (ada_language_data): Remove la_filename_extensions initializer.
3781 (ada_language::filename_extensions): New member function.
3782 * c-lang.c (c_extensions): Delete, moved into
3783 c_language::filename_extensions.
3784 (c_language_data): Remove la_filename_extensions initializer.
3785 (c_language::filename_extensions): New member function.
3786 (cplus_extensions): Delete, moved into
3787 cplus_language::filename_extensions.
3788 (cplus_language_data): Remove la_filename_extensions initializer.
3789 (cplus_language::filename_extensions): New member function.
3790 (asm_extensions): Delete, moved into
3791 asm_language::filename_extensions.
3792 (asm_language_data): Remove la_filename_extensions initializer.
3793 (asm_language::filename_extensions): New member function.
3794 (minimal_language_data): Remove la_filename_extensions
3795 initializer.
3796 * d-lang.c (d_extensions): Delete, moved into
3797 d_language::filename_extensions.
3798 (d_language_data): Remove la_filename_extensions initializer.
3799 (d_language::filename_extensions): New member function.
3800 * f-lang.c (f_extensions): Delete, moved into
3801 f_language::filename_extensions.
3802 (f_language_data): Remove la_filename_extensions initializer.
3803 (f_language::filename_extensions): New member function.
3804 * go-lang.c (go_language_data): Remove la_filename_extensions
3805 initializer.
3806 * language.c (add_set_language_command): Update now that
3807 filename_extensions returns a vector.
3808 (unknown_language_data): Remove la_filename_extensions
3809 initializer.
3810 (auto_language_data): Likewise.
3811 * language.h (language_data): Remove la_filename_extensions field.
3812 (language_defn::filename_extensions): New member function.
3813 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3814 initializer.
3815 * objc-lang.c (objc_extensions): Delete, moved into
3816 objc_language::filename_extensions.
3817 (objc_language_data): Remove la_filename_extensions initializer.
3818 (objc_language::filename_extensions): New member function.
3819 * opencl-lang.c (opencl_language_data): Remove
3820 la_filename_extensions initializer.
3821 * p-lang.c (pascal_extensions): Delete, moved into
3822 pascal_language::filename_extensions.
3823 (pascal_language_data): Remove la_filename_extensions initializer.
3824 (pascal_language::filename_extensions): New member function.
3825 * rust-lang.c (rust_extensions): Delete, moved into
3826 rust_language::filename_extensions.
3827 (rust_language_data): Remove la_filename_extensions initializer.
3828 (rust_language::filename_extensions): New member function.
3829 * symfile.c (add_filename_language): Add new assert.
3830
6f7664a9
AB
38312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3832
3833 * ada-lang.c (ada_language_data): Remove la_name and
3834 la_natural_name initializers.
3835 (ada_language::name): New member function.
3836 (ada_language::natural_name): New member function.
3837 * c-lang.c (c_language_data): Remove la_name and
3838 la_natural_name initializers.
3839 (c_language::name): New member function.
3840 (c_language::natural_name): New member function.
3841 (cplus_language_data): Remove la_name and
3842 la_natural_name initializers.
3843 (cplus_language::name): New member function.
3844 (cplus_language::natural_name): New member function.
3845 (asm_language_data): Remove la_name and
3846 la_natural_name initializers.
3847 (asm_language::name): New member function.
3848 (asm_language::natural_name): New member function.
3849 (minimal_language_data): Remove la_name and
3850 la_natural_name initializers.
3851 (minimal_language::name): New member function.
3852 (minimal_language::natural_name): New member function.
3853 * compile/compile.c (compile_to_object): Update call to
3854 lanugage_defn::name.
3855 * d-lang.c (d_language_data): Remove la_name and
3856 la_natural_name initializers.
3857 (d_language::name): New member function.
3858 (d_language::natural_name): New member function.
3859 * expprint.c (print_subexp_standard): Update call to
3860 language_defn::name.
3861 (dump_raw_expression): Likewise
3862 (dump_prefix_expression): Likewise.
3863 * f-lang.c (f_language_data): Remove la_name and
3864 la_natural_name initializers.
3865 (f_language::name): New member function.
3866 (f_language::natural_name): New member function.
3867 * go-lang.c (go_language_data): Remove la_name and
3868 la_natural_name initializers.
3869 (go_language::name): New member function.
3870 (go_language::natural_name): New member function.
3871 * language.c (show_language_command): Update call to
3872 language_defn::name.
3873 (set_language_command): Likewise.
3874 (language_enum): Likewise.
3875 (language_str): Likewise.
3876 (add_set_language_command): Likewise, use
3877 language_defn::natural_name in the doc string.
3878 (unknown_language_data): Remove la_name and
3879 la_natural_name initializers.
3880 (unknown_language::name): New member function.
3881 (unknown_language::natural_name): New member function.
3882 (auto_language_data): Remove la_name and
3883 la_natural_name initializers.
3884 (auto_language::name): New member function.
3885 (auto_language::natural_name): New member function.
3886 (language_lookup_primitive_type_as_symbol): Update call to
3887 language_defn::name.
3888 * language.h (language_data): Remove la_name and la_natural_name
3889 member variables.
3890 (language_defn::name): New member function.
3891 (language_defn::natural_name): New member function.
3892 * m2-lang.c (m2_language_data): Remove la_name and
3893 la_natural_name initializers.
3894 (m2_language::name): New member function.
3895 (m2_language::natural_name): New member function.
3896 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3897 language_defn::natural_name.
3898 * objc-lang.c (objc_language_data): Remove la_name and
3899 la_natural_name initializers.
3900 (objc_language::name): New member function.
3901 (objc_language::natural_name): New member function.
3902 * opencl-lang.c (opencl_language_data): Remove la_name and
3903 la_natural_name initializers.
3904 (opencl_language::name): New member function.
3905 (opencl_language::natural_name): New member function.
3906 * p-lang.c (pascal_language_data): Remove la_name and
3907 la_natural_name initializers.
3908 (pascal_language::name): New member function.
3909 (pascal_language::natural_name): New member function.
3910 * rust-lang.c (rust_language_data): Remove la_name and
3911 la_natural_name initializers.
3912 (rust_language::name): New member function.
3913 (rust_language::natural_name): New member function.
3914 * symtab.c (lookup_language_this): Update call to
3915 language_defn::name.
3916
5bae7c4e
AB
39172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3918
3919 * ada-lang.c (ada_language_data): Remove la_name_of_this
3920 initializer.
3921 * ax-gdb.c (gen_expr): Update call to name_of_this.
3922 * c-exp.y (classify_name): Likewise.
3923 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3924 (cplus_language_data): Likewise.
3925 (cplus_language::name_of_this): New member function.
3926 (asm_language_data): Remove la_name_of_this initializer.
3927 (minimal_language_data): Likewise.
3928 * d-lang.c (d_language_data): Likewise.
3929 (d_language::name_of_this): New member function.
3930 * expprint.c (print_subexp_standard): Update call to name_of_this.
3931 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3932 * go-lang.c (go_language_data): Likewise.
3933 * language.c (unknown_language_data): Likewise.
3934 (unknown_language::name_of_this): New member function.
3935 (auto_language_data): Remove la_name_of_this initializer.
3936 (auto_language::name_of_this): New member function.
3937 * language.h (language_data): Delete la_name_of_this member
3938 variable.
3939 (language_defn::name_of_this): New member function.
3940 * m2-lang.c (m2_language_data): Remove la_name_of_this
3941 initializer.
3942 * objc-lang.c (objc_language_data): Likewise.
3943 (objc_language::name_of_this): New member function.
3944 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3945 initializer.
3946 * p-lang.c (pascal_language_data): Likewise.
3947 (pascal_language::name_of_this): New member function.
3948 * rust-lang.c (rust_language_data): Remove la_name_of_this
3949 initializer.
3950 * symtab.c (lookup_language_this): Update call to name_of_this.
3951 (lookup_symbol_aux): Likewise.
3952 * valops.c (value_of_this): Likewise.
3953
22e3f3ed
AB
39542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3955
3956 * ada-lang.c (ada_language_data): Remove
3957 la_struct_too_deep_ellipsis initializer.
3958 (ada_language::struct_too_deep_ellipsis): New member function.
3959 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3960 initializer.
3961 (cplus_language_data): Likewise.
3962 (asm_language_data): Likewise.
3963 (minimal_language_data): Likewise.
3964 * cp-valprint.c (cp_print_value): Update call to
3965 struct_too_deep_ellipsis.
3966 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3967 initializer.
3968 * f-lang.c (f_language_data): Likewise.
3969 (f_language::struct_too_deep_ellipsis): New member function.
3970 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3971 initializer.
3972 * language.c (unknown_language_data): Likewise.
3973 (auto_language_data): Likewise.
3974 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3975 member variable.
3976 (language_defn::struct_too_deep_ellipsis): New member function.
3977 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3978 initializer.Q
3979 * objc-lang.c (objc_language_data): Likewise.
3980 * opencl-lang.c (opencl_language_data): Likewise.
3981 * p-lang.c (pascal_language_data): Likewise.
3982 * rust-lang.c (rust_language_data): Likewise.
3983 * valprint.c (val_print_check_max_depth): Update call to
3984 struct_too_deep_ellipsis.
3985
ed29e1c7
FW
39862020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3987
3988 * MAINTAINERS (Write After Approval): Add myself.
3989
12d8f940
TT
39902020-09-15 Tom Tromey <tom@tromey.com>
3991
3992 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3993 Remove.
3994
6b5a7bc7
TT
39952020-09-15 Tom Tromey <tom@tromey.com>
3996
3997 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3998 and TYPE_CODE_METHODPTR cases.
3999 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4000 (c_value_print_inner): Update.
4001 * valprint.c (generic_value_print_memberptr): New function, from
4002 c_value_print_memberptr.
4003 (generic_value_print): Use it. Call cplus_print_method_ptr.
4004
47f0e2ff
TT
40052020-09-15 Tom Tromey <tromey@adacore.com>
4006
4007 * python/python-internal.h (PyInt_FromLong): Remove define.
4008 * python/py-value.c (convert_value_from_python): Use
4009 gdb_py_object_from_longest.
4010 * python/py-type.c (typy_get_code): Use
4011 gdb_py_object_from_longest.
4012 * python/py-symtab.c (salpy_get_line): Use
4013 gdb_py_object_from_longest.
4014 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4015 gdb_py_object_from_longest.
4016 * python/py-record.c (recpy_gap_reason_code): Use
4017 gdb_py_object_from_longest.
4018 * python/py-record-btrace.c (recpy_bt_insn_size)
4019 (recpy_bt_func_level, btpy_list_count): Use
4020 gdb_py_object_from_longest.
4021 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4022 gdb_py_object_from_longest. Fix error handling.
4023 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4024 gdb_py_object_from_longest.
4025 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4026 gdb_py_object_from_longest.
4027 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4028 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4029 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4030
512116ce
TT
40312020-09-15 Tom Tromey <tromey@adacore.com>
4032
4033 * python/python.c (gdbpy_parameter_value): Use
4034 gdb_py_object_from_ulongest.
4035
4ab1029c
TT
40362020-09-15 Tom Tromey <tromey@adacore.com>
4037
4038 * python/py-infevents.c (create_register_changed_event_object):
4039 Use gdb_py_object_from_longest.
4040 * python/py-exitedevent.c (create_exited_event_object): Use
4041 gdb_py_object_from_longest.
4042
062534d4
TT
40432020-09-15 Tom Tromey <tromey@adacore.com>
4044
4045 * python/python.c (gdbpy_parameter_value): Use
4046 gdb_py_object_from_longest.
4047 * python/py-type.c (convert_field, typy_range): Use
4048 gdb_py_object_from_longest.
4049 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4050 gdb_py_object_from_longest.
4051 * python/py-lazy-string.c (stpy_get_length): Use
4052 gdb_py_object_from_longest.
4053 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4054 gdb_py_object_from_longest.
4055 * python/py-infevents.c (create_memory_changed_event_object): Use
4056 gdb_py_object_from_longest.
4057 * python/py-inferior.c (infpy_get_num): Use
4058 gdb_py_object_from_longest.
4059 (infpy_get_pid): Likewise.
4060
d1cab987
TT
40612020-09-15 Tom Tromey <tromey@adacore.com>
4062
4063 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4064 defines.
4065 * python/py-value.c (valpy_long): Use
4066 gdb_py_object_from_ulongest.
4067 * python/py-symtab.c (salpy_get_pc): Use
4068 gdb_py_object_from_ulongest.
4069 (salpy_get_last): Likewise.
4070 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4071 gdb_py_object_from_ulongest.
4072 * python/py-lazy-string.c (stpy_get_address): Use
4073 gdb_py_object_from_ulongest.
4074 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4075 * python/py-arch.c (archpy_disassemble): Use
4076 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4077 error handling.
4078
4bde49dc
TT
40792020-09-15 Tom Tromey <tromey@adacore.com>
4080
4081 * python/python-internal.h (gdb_py_long_from_longest): Remove
4082 defines.
4083 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4084 * python/py-type.c (convert_field, typy_get_sizeof): Use
4085 gdb_py_object_from_longest.
4086 * python/py-record-btrace.c (btpy_list_index): Use
4087 gdb_py_object_from_longest.
4088
37431074
TT
40892020-09-15 Tom Tromey <tromey@adacore.com>
4090
4091 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4092 * python/py-record.c (recpy_element_number): Use
4093 gdb_py_object_from_longest.
4094 (recpy_gap_number): Likewise.
4095
cbe25684
TT
40962020-09-15 Tom Tromey <tromey@adacore.com>
4097
4098 * top.c (ui::ui): Update.
4099 (highest_ui_num): Remove.
4100 * top.h (struct ui) <num>: Remove.
4101
db92ac45
TT
41022020-09-15 Tom Tromey <tromey@adacore.com>
4103
4104 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4105 * ui-style.c (ansi_regex_text): Now array.
4106 * rust-exp.y (number_regex_text): Now array.
4107 * linespec.c (linespec_quote_characters): Now array.
4108 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4109 Now arrays.
4110
d2b31b67
SM
41112020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4112
4113 * debuginfod-support.c (debuginfod_client_deleter): New.
4114 (debuginfod_client_up): New.
4115 (debuginfod_init): Return debuginfod_client_up.
4116 (debuginfod_source_query): Adjust.
4117 (debuginfod_debuginfo_query): Adjust.
4118
3246bd8e
SM
41192020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4120
4121 * debuginfod-support.c (debuginfod_source_query): Use
4122 make_unique_xstrdup.
4123
10242f36
SM
41242020-09-14 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4127 with `type::instance_flags`.
4128
e1044e6a
MM
41292020-09-14 Michael Mullin <masmullin@gmail.com>
4130
4131 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4132 Remove baton parameter.
4133
04902b09
PA
41342020-09-14 Pedro Alves <pedro@palves.net>
4135
4136 * Makefile.in (SELFTESTS_SRCS): Add
4137 unittests/enum-flags-selftests.c.
4138 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4139 btrace_function_flags instead of enum btrace_function_flag.
4140 * compile/compile-c-types.c (convert_qualified): Use
4141 enum_flags::raw.
4142 * compile/compile-cplus-symbols.c (convert_one_symbol)
4143 (convert_symbol_bmsym):
4144 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4145 (compile_cplus_convert_struct_or_union_methods)
4146 (compile_cplus_instance::convert_qualified_base):
4147 * go-exp.y (parse_string_or_char): Add cast to int.
4148 * unittests/enum-flags-selftests.c: New file.
4149 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4150 type to btrace_thread_flags from btrace_thread_flag.
4151 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4152 local's type to btrace_thread_flags from btrace_thread_flag. Add
4153 cast in DEBUG call.
4154
69896a2c
PA
41552020-09-14 Pedro Alves <pedro@palves.net>
4156
4157 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4158 * gdbtypes.c (address_space_name_to_int): Rename to ...
4159 (address_space_name_to_type_instance_flags): ... this.
4160 (address_space_int_to_name): Rename to ...
4161 (address_space_type_instance_flags_to_name): ... this.
4162 * gdbtypes.h (address_space_name_to_int): Rename to ...
4163 (address_space_name_to_type_instance_flags): ... this.
4164 (address_space_int_to_name): Rename to ...
4165 (address_space_type_instance_flags_to_name): ... this.
4166 * type-stack.c (type_stack::insert): Adjust to rename.
4167 * type-stack.h (type_stack::insert): Likewise.
4168
314ad88d
PA
41692020-09-14 Pedro Alves <pedro@palves.net>
4170 Andrew Burgess <andrew.burgess@embecosm.com>
4171
4172 * avr-tdep.c (avr_address_class_type_flags): Return
4173 type_instance_flags.
4174 (avr_address_class_type_flags_to_name): Take a
4175 type_instance_flags.
4176 (avr_address_class_name_to_type_flags): Return bool and take a
4177 type_instance_flags.
4178 * d-lang.c (build_d_types): Use type::set_instance_flags.
4179 * ft32-tdep.c (ft32_address_class_type_flags): Return
4180 type_instance_flags.
4181 (ft32_address_class_type_flags_to_name): Take a
4182 type_instance_flags.
4183 (ft32_address_class_name_to_type_flags): Return bool and take a
4184 type_instance_flags.
4185 (ft32_gdbarch_init): Use type::set_instance_flags.
4186 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4187 * gdbarch.h, gdbarch.c: Regenerate.
4188 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4189 (address_class_name_to_type_flags): Use type_instance_flags and
4190 bool.
4191 * gdbtypes.c (address_space_name_to_int)
4192 (address_space_int_to_name, make_qualified_type): Use
4193 type_instance_flags.
4194 (make_qualified_type): Use type_instance_flags and
4195 type::set_instance_flags.
4196 (make_type_with_address_space, make_cv_type, make_vector_type)
4197 (check_typedef): Use type_instance_flags.
4198 (recursive_dump_type): Cast type_instance_flags to unsigned for
4199 printing.
4200 (copy_type_recursive): Use type::set_instance_flags.
4201 (gdbtypes_post_init): Use type::set_instance_flags.
4202 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4203 <m_instance_flags>: ... this.
4204 <instance_flags, set_instance_flags>: New methods.
4205 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4206 (SET_TYPE_INSTANCE_FLAGS): New.
4207 (address_space_name_to_int, address_space_int_to_name)
4208 (make_type_with_address_space): Pass flags using
4209 type_instance_flags instead of int.
4210 * stabsread.c (cleanup_undefined_types_noname): Use
4211 type::set_instance_flags.
4212 * s390-tdep.c (s390_address_class_type_flags): Return
4213 type_instance_flags.
4214 (s390_address_class_type_flags_to_name): Take a
4215 type_instance_flags.
4216 (s390_address_class_name_to_type_flags): Return bool and take a
4217 type_instance_flags.
4218 * type-stack.c (type_stack::follow_types): Use
4219 type_instance_flags.
4220 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4221
27087b7f
TT
42222020-09-14 Tom Tromey <tromey@adacore.com>
4223
4224 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4225 * x86-tdep.c (x86_is_thunk_register_name)
4226 (x86_in_indirect_branch_thunk): Update.
4227 * sparc64-tdep.c (sparc64_fpu_register_names)
4228 (sparc64_cp0_register_names, sparc64_register_names)
4229 (sparc64_pseudo_register_names): Now const.
4230 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4231 cp0_registers_num>: Now const.
4232 * sparc-tdep.c (sparc_core_register_names)
4233 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4234 (sparc32_pseudo_register_names): Now const.
4235 (validate_tdesc_registers): Update.
4236 * rust-lang.c (rust_extensions): Now const.
4237 * p-lang.c (p_extensions): Now const.
4238 * objc-lang.c (objc_extensions): Now const.
4239 * nto-tdep.c (nto_thread_state_str): Now const.
4240 * moxie-tdep.c (moxie_register_names): Now const.
4241 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4242 Now const.
4243 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4244 (mips_linux_reg_names): Now const.
4245 (mips_gdbarch_init): Update.
4246 * microblaze-tdep.c (microblaze_register_names): Now const.
4247 * m68k-tdep.c (m68k_register_names): Now const.
4248 * m32r-tdep.c (m32r_register_names): Now const.
4249 * ia64-tdep.c (ia64_register_names): Now const.
4250 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4251 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4252 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4253 ymm_avx512_register_names, pkeys_register_names>: Now const.
4254 * i386-tdep.c (i386_register_names, i386_zmm_names)
4255 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4256 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4257 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4258 * f-lang.c (f_extensions): Now const.
4259 * d-lang.c (d_extensions): Now const.
4260 * csky-tdep.c (csky_register_names): Now const.
4261 * charset.c (default_charset_names, charset_enum): Now const.
4262 (_initialize_charset): Update.
4263 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4264 const.
4265 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4266 (bsd_uthread_solib_loaded): Update.
4267 (bsd_uthread_state): Now const.
4268 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4269 (amd64_ymm_avx512_names, amd64_ymmh_names)
4270 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4271 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4272 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4273 (amd64_dword_names): Now const.
4274 * agent.c (can_use_agent_enum): Now const.
4275 * ada-tasks.c (task_states, long_task_states): Now const.
4276 * ada-lang.c (known_runtime_file_name_patterns)
4277 (known_auxiliary_function_name_patterns, attribute_names)
4278 (standard_exc, ada_extensions): Now const.
4279
89806626
SM
42802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4281
4282 * bcache.h (struct bcache) <bcache>: Remove constructor.
4283 <m_hash_function, m_compare_function>: Remove.
4284 <~bcache>: Make virtual.
4285 <compare>: Remove static method, introduce virtual method.
4286 <default_hash>: Remove.
4287 <hash>: New virtual method.
4288 * bcache.c (bcache::expand_hash_table): Update.
4289 (bcache::insert): Update.
4290 (bcache::hash): New.
4291 (bcache::compare): Update comment and parameter names.
4292 * gdbtypes.c (types_deeply_equal): Update.
4293 * psymtab.h (struct psymbol_bcache): New struct.
4294 (class psymtab_storage) <psymtab_storage>: Make default.
4295 <psymbol_cache>: Change type to psymbol_bcache.
4296 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4297 (psymbol_hash): Change to...
4298 (psymbol_bcache::hash): ... this.
4299 (psymbol_compare): Change to...
4300 (psymbol_bcache::compare): ... this.
4301
677c92fe
SM
43022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4303
4304 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4305 checking for initial lwp.
4306
3eba3a01
TT
43072020-09-14 Tom Tromey <tromey@adacore.com>
4308
4309 * m68k-tdep.c (m68k_extract_return_value): Use
4310 pointer_result_regnum.
4311 (m68k_store_return_value): Likewise.
4312 (m68k_reg_struct_return_p): Handle vectors and arrays.
4313 (m68k_return_value): Handle arrays.
4314 (m68k_svr4_return_value): Fix single-element aggregate handling.
4315 Handle long double. Adjust for embedded ABI.
4316 (m68k_svr4_init_abi): Set pointer_result_regnum.
4317 (m68k_embedded_init_abi): New function.
4318 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4319 (m68k_osabi_sniffer): New function.
4320 (_initialize_m68k_tdep): Register osabi sniffer.
4321 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4322 member.
4323
33f4dd48
SM
43242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4325
4326 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4327 with gdb::unique_xmalloc_ptr<char>.
4328
8400a90d
SM
43292020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4330
4331 * xml-support.h (xml_fetch_another): Change type to be a
4332 function_view.
4333 (xml_process_xincludes): Remove baton parameter.
4334 (xml_fetch_content_from_file): Change baton parameter to
4335 dirname.
4336 * xml-support.c (struct xinclude_parsing_data)
4337 <xinclude_parsing_data>: Remove baton parameter.
4338 <fetcher_baton>: Remove.
4339 (xinclude_start_include): Adjust.
4340 (xml_process_xincludes): Adjust.
4341 (xml_fetch_content_from_file): Replace baton parameter with
4342 dirname.
4343 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4344 (xml_init_syscalls_info): Use a lambda.
4345 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4346 (file_read_description_xml): Use a lambda.
4347 (fetch_available_features_from_target): Change baton parameter
4348 to target_ops.
4349 (target_read_description_xml): Use a lambda.
4350 (target_fetch_description_xml): Use a lambda.
4351 (string_read_description_xml): Update.
4352
04f5bab2
SM
43532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4354
4355 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4356 uses with type::endianity_is_not_default.
4357
db558e34
SM
43582020-09-14 Simon Marchi <simon.marchi@efficios.com>
4359
4360 * gdbtypes.h (struct type) <endianity_is_not_default,
4361 set_endianity_is_not_default>: New methods.
4362 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4363 type::endianity_is_not_default, change all write call sites to
4364 use type::set_endianity_is_not_default.
4365
22c4c60c
SM
43662020-09-14 Simon Marchi <simon.marchi@efficios.com>
4367
4368 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4369 uses with type::is_fixed_instance.
4370
9cdd0d12
SM
43712020-09-14 Simon Marchi <simon.marchi@efficios.com>
4372
4373 * gdbtypes.h (struct type) <is_fixed_instance,
4374 set_is_fixed_instance>: New methods.
4375 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4376 write call sites to use type::set_is_fixed_instance.
4377
0becda7a
SM
43782020-09-14 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4381 uses with type::is_gnu_ifunc.
4382
03cc7249
SM
43832020-09-14 Simon Marchi <simon.marchi@efficios.com>
4384
4385 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4386 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4387 use type::set_is_gnu_ifunc.
4388
3f46044c
SM
43892020-09-14 Simon Marchi <simon.marchi@efficios.com>
4390
4391 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4392 uses with type::stub_is_supported.
4393
9baccff6
SM
43942020-09-14 Simon Marchi <simon.marchi@efficios.com>
4395
4396 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4397 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4398 use type::set_stub_is_supported.
4399
bd63c870
SM
44002020-09-14 Simon Marchi <simon.marchi@efficios.com>
4401
4402 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4403 uses with type::is_vector.
4404
2062087b
SM
44052020-09-14 Simon Marchi <simon.marchi@efficios.com>
4406
4407 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4408 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4409 use type::set_is_vector.
4410
a409645d
SM
44112020-09-14 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4414 uses with type::has_varargs.
4415
1d6286ed
SM
44162020-09-14 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4419 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4420 use type::set_has_varargs.
4421
7f9f399b
SM
44222020-09-14 Simon Marchi <simon.marchi@efficios.com>
4423
4424 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4425 uses with type::is_prototyped.
4426
27e69b7a
SM
44272020-09-14 Simon Marchi <simon.marchi@efficios.com>
4428
4429 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4430 New methods.
4431 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4432 call sites to use type::set_is_prototyped.
4433
d2183968
SM
44342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4435
4436 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4437 uses with type::target_is_stub.
4438
8f53807e
SM
44392020-09-14 Simon Marchi <simon.marchi@efficios.com>
4440
4441 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4442 New methods.
4443 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4444 sites to use type::set_target_is_stub.
4445
e46d3488
SM
44462020-09-14 Simon Marchi <simon.marchi@efficios.com>
4447
4448 * gdbtypes.h (TYPE_STUB): Remove, replace all
4449 uses with type::is_stub.
4450
b4b73759
SM
44512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4452
4453 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4454 (TYPE_STUB): Use type::is_stub, change all write call sites to
4455 use type::set_is_stub.
4456
20ce4123
SM
44572020-09-14 Simon Marchi <simon.marchi@efficios.com>
4458
4459 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4460 type::has_no_signedness.
4461
15152a54
SM
44622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4463
4464 * gdbtypes.h (struct type) <has_no_signedness,
4465 set_has_no_signedness>: New methods.
4466 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4467 call sites to use type::set_has_no_signedness.
4468
c6d940a9
SM
44692020-09-14 Simon Marchi <simon.marchi@efficios.com>
4470
4471 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4472 type::is_unsigned.
4473
653223d3
SM
44742020-09-14 Simon Marchi <simon.marchi@efficios.com>
4475
4476 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4477 methods.
4478 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4479 sites to use type::set_is_unsigned.
4480
55ea94da 44812020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4482 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4483
e851246a
SM
4484 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4485 pointer and stack frame offset when unwinding.
55ea94da 4486
6791b117
PA
44872020-09-13 Pedro Alves <pedro@palves.net>
4488
4489 * NEWS: Document "-break-insert --qualified".
4490 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4491
77f2120b
PA
44922020-09-13 Pedro Alves <pedro@palves.net>
4493
4494 * linespec.c (classify_mtype, compare_msyms): Delete.
4495 (search_minsyms_for_name): Remove classification logic. Instead
4496 filter out trampoline symbols if we also found an external
4497 function of the same name.
4498
ed6a896c
JB
44992020-09-13 Joel Brobecker <brobecker@adacore.com>
4500
4501 * NEWS: Create a new section for the next release branch.
4502 Rename the section of the current branch, now that it has
4503 been cut.
4504
32aea73e
JB
45052020-09-13 Joel Brobecker <brobecker@adacore.com>
4506
4507 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4508 * version.in: Bump version to 11.0.50.DATE-git.
4509
8087c3fa
JB
45102020-09-12 Joel Brobecker <brobecker@adacore.com>
4511
4512 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4513
2a67f09d
FW
45142020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4515 Felix Willgerodt <Felix.Willgerodt@intel.com>
4516
4517 * gdbarch.sh: Added bfloat16 type.
4518 * gdbarch.c: Regenerated.
4519 * gdbarch.h: Regenerated.
4520 * gdbtypes.c (floatformats_bfloat16): New struct.
4521 (gdbtypes_post_init): Add builtin_bfloat16.
4522 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4523 (floatformats_bfloat16): New struct.
4524 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4525 (i386_ymm_type): Add field "v16_bfloat16"
4526 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4527 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4528 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4529 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4530 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4531 * features/i386/64bit-avx512.c: Regenerated.
4532 * features/i386/64bit-sse.xml: Add bfloat16 type.
4533 * features/i386/64bit-sse.c: Regenerated.
4534
1347d111
FW
45352020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4536
4537 * i386-tdep.c (i386_zmm_type): Fix field names.
4538 (i386_ymm_type): Fix field names.
4539
7a4e8e7d
TBA
45402020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4541
4542 * breakpoint.c: Fix typo in the help message of the
4543 "set breakpoint condition-evaluation" command.
4544
cf4ac4be
KR
45452020-09-10 Kamil Rytarowski <n54@gmx.com>
4546
4547 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4548 * (nbsd_nat_target::pid_to_exec_file)
4549 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4550 (nbsd_nat_target::post_startup_inferior)
4551 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4552 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4553 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4554 * (nbsd_thread_lister): Remove.
4555
f404573e
KR
45562020-09-10 Kamil Rytarowski <n54@gmx.com>
4557
4558 * fork-inferior.c (startup_inferior): Avoid double free.
4559
1ccb2c17
KR
45602020-09-10 Kamil Rytarowski <n54@gmx.com>
4561
4562 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4563 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4564
feedfcc7
KR
45652020-09-10 Kamil Rytarowski <n54@gmx.com>
4566
4567 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4568 * netbsd-nat.c: Include <sys/ptrace.h>.
4569 * (netbsd_nat::enable_proc_events): Add.
4570
c489f8c6
KR
45712020-09-10 Kamil Rytarowski <n54@gmx.com>
4572
4573 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4574 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4575 (netbsd_nat::for_each_thread): Add.
4576 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4577 "gdbsupport/common-debug.h".
4578 * (netbsd_nat::netbsd_thread_lister)
4579 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4580 (netbsd_nat::for_each_thread): Add.
4581
330662f6
KR
45822020-09-10 Kamil Rytarowski <n54@gmx.com>
4583
4584 * netbsd-nat.h: Include <unistd.h>.
4585 * (netbsd_nat::pid_to_exec_file): Add.
4586 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4587 * (netbsd_nat::pid_to_exec_file) Add.
4588
70b67307
KR
45892020-09-10 Kamil Rytarowski <n54@gmx.com>
4590
4591 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4592
99cf6da6
KR
45932020-09-10 Kamil Rytarowski <n54@gmx.com>
4594
4595 * netbsd-nat.h: New file.
4596 * netbsd-nat.c: Likewise.
4597
1b788fb6
TT
45982020-09-09 Tom Tromey <tromey@adacore.com>
4599
4600 * ada-lang.c (remove_extra_symbols): Do not increment when
4601 removing an element
4602
03b0a45f
TT
46032020-09-08 Tom Tromey <tromey@adacore.com>
4604
4605 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4606
3cae4447
TT
46072020-09-08 Tom Tromey <tromey@adacore.com>
4608
4609 PR win32/25302:
4610 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4611 (gdb_bfd_init_data): New function.
4612 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4613
7f08fd51
TBA
46142020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4615
4616 * infrun.c (fetch_inferior_event): Use
4617 `switch_to_target_no_thread` to switch the target.
4618
3e6ff933
TT
46192020-09-06 Tom Tromey <tom@tromey.com>
4620
4621 * symfile.h (dwarf2_free_objfile): Don't declare.
4622
e56798df
AKS
46232020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4624
4625 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4626 to match 16 byte real/complex type generated by Flang compiler.
4627
8f5c6526
TV
46282020-09-03 Tom de Vries <tdevries@suse.de>
4629
4630 PR breakpoint/26546
4631 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4632 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4633
c5065df0
SM
46342020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4635
4636 * maint.c (index_digits): New function.
4637 (struct maint_print_section_data): Remove.
4638 (print_bfd_section_info): Remove print_data parameter, add arg
4639 and index_digits.
4640 (print_objfile_section_info): Likewise.
4641 (print_bfd_section_info_maybe_relocated): Likewise (plus
4642 objfile).
4643 (maintenance_info_sections): Adjust calls.
4644
02c6f3f1
TT
46452020-09-02 Tom Tromey <tromey@adacore.com>
4646
4647 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4648 for null pointers.
4649 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4650
ef5e5b0b
SM
46512020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4652
4653 * bcache.h (struct bcache) <insert>: Change type of `added` to
4654 pointer to bool.
4655 * bcache.c (bcache::insert): Likewise.
4656 * gdbtypes.c (check_types_worklist): Adjust.
4657 * psymtab.c (add_psymbol_to_bcache): Adjust.
4658
973695d6
KB
46592020-08-31 Kevin Buettner <kevinb@redhat.com>
4660
4661 * corelow.c (unordered_set): Include.
4662 (class core_target): Add field 'm_core_unavailable_mappings'.
4663 (core_target::build_file_mappings): Print only one warning
4664 per inaccessible file. Add unavailable/broken mappings
4665 to m_core_unavailable_mappings.
4666 (core_target::xfer_partial): Call...
4667 (core_target::xfer_memory_via_mappings): New method.
4668
264fc0e2
SM
46692020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4670
4671 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4672 type to bool.
4673
2de01bdb
SM
46742020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4675
4676 * dwarf2/read.c (struct field_info): Fix indentation.
4677
f3bd50f1
SM
46782020-08-31 Simon Marchi <simon.marchi@efficios.com>
4679
4680 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4681 ordering in comment.
4682 * frame.c (frame_id_eq): Fix indentation.
4683
22b9b4b0
SL
46842020-08-31 Scott Linder <scott@scottlinder.com>
4685 Simon Marchi <simon.marchi@efficios.com>
4686
4687 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4688 inline frame ids in outer frame.
4689
84154d16
SM
46902020-08-31 Simon Marchi <simon.marchi@efficios.com>
4691
4692 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4693 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4694 (outer_frame_id): Use FID_STACK_OUTER instead of
4695 FID_STACK_INVALID.
4696 (frame_id_p): Don't check for outer_frame_id.
4697
8efaf6b3
SM
46982020-08-31 Simon Marchi <simon.marchi@efficios.com>
4699
4700 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4701 regnum/frame in value. Call allocate_value_lazy.
4702 * frame.c (frame_unwind_register_value): Use
4703 val_print_not_saved.
4704
fe1fe7ea
SM
47052020-08-31 Simon Marchi <simon.marchi@efficios.com>
4706
4707 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4708
f7c7700d
PA
47092020-08-29 Pedro Alves <pedro@palves.net>
4710
4711 * progspace.c (print_program_space): Use all_inferiors. Switch to
4712 the inferior before calling target_pid_to_str.
4713
e0814aae
TT
47142020-08-28 Tom Tromey <tom@tromey.com>
4715
4716 * xcoffread.c (xcoff_end_psymtab): Update comment.
4717 * dbxread.c (dbx_end_psymtab): Update comment.
4718
626d2320
TV
47192020-08-28 Tom de Vries <tdevries@suse.de>
4720
4721 PR breakpoint/26544
4722 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4723 event_location.
4724 (create_breakpoint): Same.
4725 (base_breakpoint_decode_location): Same.
4726 (bkpt_create_sals_from_location): Same.
4727 (bkpt_decode_location): Same.
4728 (bkpt_probe_create_sals_from_location): Same.
4729 (bkpt_probe_decode_location): Same.
4730 (tracepoint_create_sals_from_location): Same.
4731 (tracepoint_decode_location): Same.
4732 (tracepoint_probe_decode_location): Same.
4733 (strace_marker_create_sals_from_location): Same.
4734 (strace_marker_decode_location): Same.
4735 (create_sals_from_location_default): Same.
4736 (decode_location_default): Same.
4737 * breakpoint.h (struct breakpoint_ops): Same.
4738 (create_breakpoint): Same.
4739 * linespec.h (decode_line_full): Same.
4740 * linespec.c (decode_line_full): Same. Throw error if
4741 result.size () == 0.
4742
df631783
PA
47432020-08-27 Pedro Alves <pedro@palves.net>
4744
4745 PR gdb/26524
4746 * breakpoint.c (until_break_fsm) <location_breakpoint,
4747 caller_breakpoint>: Delete fields.
4748 <breakpoints>: New field.
4749 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4750 two individual breakpoints.
4751 (until_break_fsm::should_stop): Loop over breakpoints in the
4752 breakpoint vector.
4753 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4754 vector.
4755 (until_break_command): Handle location expanding into multiple
4756 sals.
4757
b2b38aa4
PA
47582020-08-27 Pedro Alves <pedro@palves.net>
4759
4760 PR gdb/26523
4761 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4762 bp_until breakpoints user-specified locations. Update intro
4763 comment.
4764
b886559f
SM
47652020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4766
4767 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4768 gdb_bfd_sections): New.
4769 * maint.c (print_bfd_section_info): Change param type to
4770 maint_print_section_data.
4771 (print_objfile_section_info): Likewise.
4772 (print_bfd_section_info_maybe_relocated): Likewise.
4773 (maintenance_info_sections): Use gdb_bfd_sections.
4774
4c6e63bf
SV
47752020-08-25 Shahab Vahedi <shahab@synopsys.com>
4776
4777 * MAINTAINERS: Add ARC target and maintainer.
4778
8d7f0635
AK
47792020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4780
4781 * configure.tgt: ARC support for GNU/Linux.
4782 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4783 * arc-linux-tdep.c: New file.
4784 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4785 * arc-tdep.c (arc_write_pc): Use it.
4786
fdd8731b
SV
47872020-08-25 Shahab Vahedi <shahab@synopsys.com>
4788
4789 * arc-tdep.c (arc_check_for_hardware_loop): New.
4790 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4791
22459524
SV
47922020-08-25 Shahab Vahedi <shahab@synopsys.com>
4793
4794 * arc-tdep.h: Include "gdbarch.h".
4795
995d3a19
SV
47962020-08-25 Shahab Vahedi <shahab@synopsys.com>
4797
4798 * arch/arc.h
4799 (arc_gdbarch_features): New class to stir the selection of target XML.
4800 (arc_create_target_description): Use FEATURES to choose XML target.
4801 (arc_lookup_target_description): Use arc_create_target_description
4802 to create _new_ target descriptions or return the already created
4803 ones if the FEATURES is the same.
4804 * arch/arc.c: Implementation of prototypes described above.
4805 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4806 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4807 * arc-tdep.c (*_feature_name): Make feature names consistent.
4808 (arc_register_feature): A new struct to hold information about
4809 registers of a particular target/feature.
4810 (arc_check_tdesc_feature): Check if XML provides registers in
4811 compliance with ARC_REGISTER_FEATURE structs.
4812 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4813 (determine_*_reg_feature_set): Which feature name to look for.
4814 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4815 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4816 to expected ISA enums to be used in arc_gdbarch_features structs.
4817 * features/Makefile (FEATURE_XMLFILES): Add new files.
4818 * gdb/features/arc/v1-aux.c: New file.
4819 * gdb/features/arc/v1-aux.xml: Likewise.
4820 * gdb/features/arc/v1-core.c: Likewise.
4821 * gdb/features/arc/v1-core.xml: Likewise.
4822 * gdb/features/arc/v2-aux.c: Likewise.
4823 * gdb/features/arc/v2-aux.xml: Likewise.
4824 * gdb/features/arc/v2-core.c: Likewise.
4825 * gdb/features/arc/v2-core.xml: Likewise.
4826 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4827
3945d2d7
GM
48282020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4829 Andrew Burgess <andrew.burgess@embecosm.com>
4830
4831 PR m2/26372
fc5d6901 4832 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4833 an assert. Remove single element array indexing pattern as the
4834 MULTI_SUBSCRIPT support will handle this case too.
4835
2677f2d3
SM
48362020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4837
4838 * value.h (valprint_check_validity): Move declaration from
4839 here...
4840 * valprint.h (valprint_check_validity): ... to here.
4841
c426fddb
SM
48422020-08-24 Simon Marchi <simon.marchi@efficios.com>
4843
4844 * debug.h: New file.
4845 * debug.c (debug_prefixed_vprintf): New function.
4846 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4847 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4848
1eb8556f
SM
48492020-08-24 Simon Marchi <simon.marchi@efficios.com>
4850
4851 * infrun.h (infrun_debug_printf_1): New function declaration.
4852 (infrun_debug_printf): New macro.
4853 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4854 throughout.
4855 (infrun_debug_printf): New function.
4856 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4857 (handle_jit_event): Likewise.
4858
b8fff44e
MW
48592020-08-21 Mark Wielaard <mark@klomp.org>
4860
4861 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4862
d19c3068
SM
48632020-08-22 Simon Marchi <simon.marchi@efficios.com>
4864
4865 * frame.c (enum class frame_id_status): New.
4866 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4867 (fprintf_frame): Update.
4868 (compute_frame_id): Set frame id status to "computing" on entry.
4869 Set it back to "not_computed" on failure and to "computed" on
4870 success.
4871 (get_frame_id): Assert the frame id is not being computed.
4872 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4873 (create_new_frame): Likewise.
4874 (frame_cleanup_after_sniffer): Update assert.
4875
b70e516e
SM
48762020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4877
4878 * regcache.c (pid_ptid_regcache_map): New type.
4879 (target_ptid_regcache_map): Remove.
4880 (target_pid_ptid_regcache_map): New type.
4881 (regcaches): Change type to target_pid_ptid_regcache_map.
4882 (get_thread_arch_aspace_regcache): Update.
4883 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4884 case.
4885 (regcaches_size): Update.
4886 (regcache_count): Update.
4887 (registers_changed_ptid_target_pid_test): New.
4888 (_initialize_regcache): Register new test.
4889
cdd9148a
SM
48902020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4891
4892 * regcache.c (regcache_count): New.
4893 (struct regcache_test_data): New.
4894 (regcache_test_data_up): New.
4895 (populate_regcaches_for_test): New.
4896 (regcaches_test): Remove.
4897 (get_thread_arch_aspace_regcache_test): New.
4898 (registers_changed_ptid_all_test): New.
4899 (registers_changed_ptid_target_test): New.
4900 (registers_changed_ptid_target_ptid_test): New.
4901 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4902 (_initialize_regcache): Register new tests.
4903
dd125343
SM
49042020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4905
4906 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4907 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4908 gdbarch and aspace parameter. Use current inferior's aspace.
4909 Validate regcache's arch value.
4910 (regcaches_test): Update.
4911
3ee93972
SM
49122020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4913
4914 * regcache.c (regcaches_test): Call registers_changed.
4915
33bf4c5c
TBA
49162020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4917
4918 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4919
c2fd7fae
AKS
49202020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4921
4922 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4923 to find the end of prologue for flang compiled binaries.
4924 * arm-tdep.c (arm_skip_prologue): Likewise.
4925 * i386-tdep.c (i386_skip_prologue): Likewise.
4926 * producer.c (producer_is_llvm): New function.
4927 (producer_parsing_tests): Added new tests for clang/flang.
4928 * producer.h (producer_is_llvm): New declaration.
4929
9327494e
SM
49302020-08-18 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * linux-nat.c (linux_nat_debug_printf): New function.
4933 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4934
d138725a
AM
49352020-08-18 Aaron Merey <amerey@redhat.com>
4936
4937 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4938 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4939 (CLIBS): Add DEBUGINFOD_LIBS.
4940
f9b11e6b
ST
49412020-08-17 Sergei Trofimovich <siarheit@google.com>
4942
4943 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4944 'gdbarch_num_regs'.
4945
3ae7ab99
TT
49462020-08-17 Tom Tromey <tromey@adacore.com>
4947
4948 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4949 ada_get_decoded_value returns NULL.
4950
b017825f
TT
49512020-08-17 Tom Tromey <tromey@adacore.com>
4952
4953 * python/py-inferior.c (infpy_search_memory): Use
4954 gdb_py_object_from_ulongest.
4955 * python/py-infevents.c (create_inferior_call_event_object)
4956 (create_memory_changed_event_object): Use
4957 gdb_py_object_from_ulongest.
4958 * python/py-linetable.c (ltpy_entry_get_pc): Use
4959 gdb_py_object_from_ulongest.
4960
7635cf79
SM
49612020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4962
4963 * loc.c (class symbol_needs_eval_context): Fix indentation.
4964
f54be24b
SM
49652020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4966
4967 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4968 bool.
4969
53d5a2a5
TV
49702020-08-17 Tom de Vries <tdevries@suse.de>
4971
4972 PR gdb/26393
4973 * gdbtypes.c (dump_dynamic_prop): New function.
4974 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4975
547ce8f0
TV
49762020-08-15 Tom de Vries <tdevries@suse.de>
4977
4978 PR backtrace/26390
4979 * stack.c (print_frame_args): Temporarily set the selected
4980 frame to FRAME while printing the frame's arguments.
4981
6ea815e7
PFC
49822020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4983
4984 PR breakpoints/26385
4985 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4986 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4987
6e562fa3
PFC
49882020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4989
4990 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4991 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4992 and >= to check return value instead of == -1 and != -1.
4993
d369b608
SM
49942020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4995
4996 * utils.h (class gdb_argv) <as_array_view>: New method.
4997 * utils.c (gdb_argv_as_array_view_test): New.
4998 (_initialize_utils): Register selftest.
4999 * maint.c (maintenance_selftest): Use the new method.
5000
b31488a3
KR
50012020-08-13 Kamil Rytarowski <n54@gmx.com>
5002
5003 * target.h (supports_dumpcore, dumpcore): New
5004 function declarations.
5005 * target.c (supports_dumpcore, dumpcore): New
5006 functions.
5007 * target-delegates.c: Rebuild.
5008 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5009 and target_dumpcore ().
5010
002a3166
AM
50112020-08-13 Aaron Merey <amerey@redhat.com>
5012
5013 * debuginfod-support.c: Replace global variables with user_data.
5014
ece5bc8a
SM
50152020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5016
5017 * maint.c (maintenance_selftest): Split args and pass array_view
5018 to run_tests.
5019
6d8a0a5e
LM
50202020-08-12 Luis Machado <luis.machado@linaro.org>
5021
5022 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5023 type's length.
5024 Use %s and pulongest to print the length.
5025
7cf663a9
PA
50262020-08-12 Pedro Alves <palves@redhat.com>
5027
5028 * NEWS: Move "Multi-target debugging support" item to the
5029 "Changes since GDB 9" section.
5030
27c7b875
PA
50312020-08-12 Pedro Alves <palves@redhat.com>
5032
5033 PR gdb/26336
5034 * progspace.c (program_space::remove_objfile): Invalidate the
5035 frame cache.
5036
1796a2a1
TV
50372020-08-11 Tom de Vries <tdevries@suse.de>
5038
5039 * MAINTAINERS: Mark ms1 as deleted.
5040
f8e3fe0d
LM
50412020-08-10 Luis Machado <luis.machado@linaro.org>
5042
5043 PR gdb/26310
5044
5045 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5046 act accordingly.
5047 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5048 movz/str/stur/stp skipping behavior.
5049
cc308722
LM
50502020-08-10 Luis Machado <luis.machado@linaro.org>
5051
5052 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5053 struct user_sve_header instead of struct sve_context.
5054
041d9819
SM
50552020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5056
5057 * read.h (dwarf2_fetch_die_loc_sect_off,
5058 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5059 `void *` parameter with function_view.
5060 * read.c (dwarf2_fetch_die_loc_sect_off,
5061 dwarf2_fetch_die_loc_cu_off): Likewise.
5062 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5063 (per_cu_dwarf_call): Adjust.
5064 (get_frame_address_in_block_wrapper): Remove.
5065 (indirect_synthetic_pointer): Adjust.
5066 (get_ax_pc): Remove.
5067 (dwarf2_compile_expr_to_ax): Adjust.
5068
38f8aa06
TV
50692020-08-08 Tom de Vries <tdevries@suse.de>
5070
5071 PR build/26344
5072 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5073 constructor.
5074 * regcache.c (get_thread_arch_aspace_regcache): Same.
5075
a52b3ae2
TT
50762020-08-07 Tom Tromey <tromey@adacore.com>
5077
5078 * ravenscar-thread.c
5079 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5080 New method.
5081 (ravenscar_thread_target::wait): Check
5082 runtime_initialized.
5083 (ravenscar_thread_target::prepare_to_store)
5084 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5085 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5086 (ravenscar_thread_target::stopped_by_watchpoint)
5087 (ravenscar_thread_target::stopped_data_address)
5088 (ravenscar_thread_target::core_of_thread): Use
5089 scoped_restore_current_thread and
5090 set_base_thread_from_ravenscar_task.
5091
0e29517d
TT
50922020-08-07 Tom Tromey <tromey@adacore.com>
5093
5094 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5095
592f9bd7
TT
50962020-08-07 Tom Tromey <tromey@adacore.com>
5097
5098 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5099 update_inferior_ptid before update_thread_list.
5100 (temporarily_change_regcache_ptid): New class.
5101 (ravenscar_thread_target::fetch_registers)
5102 (ravenscar_thread_target::store_registers)
5103 (ravenscar_thread_target::prepare_to_store): Use base thread when
5104 forwarding operation.
5105
39e2018a
TT
51062020-08-07 Tom Tromey <tromey@adacore.com>
5107
5108 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5109 "is_pid" case.
5110
2080266b
TT
51112020-08-07 Tom Tromey <tromey@adacore.com>
5112
5113 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5114 New methods.
5115 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5116 first.
5117 (ravenscar_thread_target::add_thread): Rename from
5118 ravenscar_add_thread.
5119 (ravenscar_thread_target::update_thread_list): Use a lambda.
5120 (ravenscar_thread_target::xfer_partial): New method.
5121
78c02f21
TT
51222020-08-07 Tom Tromey <tromey@adacore.com>
5123
5124 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5125 gdb::function_view.
5126 (iterate_over_live_ada_tasks): Change type of argument.
5127 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5128 of argument.
5129
d5d833af
TT
51302020-08-07 Tom Tromey <tromey@adacore.com>
5131
5132 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5133 Remove.
5134 (ravenscar_thread_target::extra_thread_info): Remove.
5135 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5136 defer to target beneath for non-Ravenscar threads.
5137
a8ac85bb
TT
51382020-08-07 Tom Tromey <tromey@adacore.com>
5139
5140 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5141 get_base_thread_from_ravenscar_task>: Now methods.
5142 <m_cpu_map>: New member.
5143 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5144 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5145 (ravenscar_thread_target::task_is_currently_active): Update.
5146 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5147 Now a method.
5148 (ravenscar_thread_target::add_active_thread): Put initial thread
5149 into the m_cpu_map.
5150
550ab58d
TT
51512020-08-07 Tom Tromey <tromey@adacore.com>
5152
5153 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5154 event_ptid.
5155
e9546579
TT
51562020-08-07 Tom Tromey <tromey@adacore.com>
5157
5158 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5159 runtime_initialized.
5160
3d4470e5
TT
51612020-08-07 Tom Tromey <tromey@adacore.com>
5162
5163 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5164 add_active_thread.
5165 (ravenscar_thread_target::add_active_thread): Now public.
5166 (ravenscar_inferior_created): Call add_active_thread after pushing
5167 the target.
5168
888bdb2b
SM
51692020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5170
5171 * regcache.c (ptid_regcache_map): New type.
5172 (target_ptid_regcache_map): New type.
5173 (regcaches): Change type to target_ptid_regcache_map.
5174 (get_thread_arch_aspace_regcache): Update to regcaches' new
5175 type.
5176 (regcache_thread_ptid_changed): Likewise.
5177 (registers_changed_ptid): Likewise.
5178 (regcaches_size): Likewise.
5179 (regcaches_test): Update.
5180 (regcache_thread_ptid_changed): Update.
5181 * regcache.h (regcache_up): New type.
5182 * gdbsupport/ptid.h (hash_ptid): New struct.
5183
b161a60d
SM
51842020-08-07 Simon Marchi <simon.marchi@efficios.com>
5185
5186 * observable.h (thread_ptid_changed): Add parameter
5187 `process_stratum_target *`.
5188 * infrun.c (infrun_thread_ptid_changed): Add parameter
5189 `process_stratum_target *` and use it.
5190 (selftests): New namespace.
5191 (infrun_thread_ptid_changed): New function.
5192 (_initialize_infrun): Register selftest.
5193 * regcache.c (regcache_thread_ptid_changed): Add parameter
5194 `process_stratum_target *` and use it.
5195 (regcache_thread_ptid_changed): New function.
5196 (_initialize_regcache): Register selftest.
5197 * thread.c (thread_change_ptid): Pass target to
5198 thread_ptid_changed observable.
5199
d2854d8d
CT
52002020-08-06 Caroline Tice <cmtice@google.com>
5201
fe4c3d43
SM
5202 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5203 (struct dwp_sections): Update field comments. Add loclists and
5204 rnglists fields.
5205 (struct virtual_v2_dwo_sections): Rename struct to
5206 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5207 size & offset fields for loclists and rnglists.
5208 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5209 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5210 skipping dummy type units.
5211 (create_dwp_hash_table): Update the large comment above the function to
5212 discuss Version 5 DWP files as well, with references. Update all the
5213 version checks in the function to check for version 5 as well. Add new
5214 section at the end to create dwp hash table for version 5.
5215 (create_dwp_v2_section): Rename function to
5216 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5217 Add V5 to error message text.
5218 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5219 into calls to create_dwp_v2_or_v5_section.
5220 (create_dwo_unit_in_dwp_v5): New function.
5221 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5222 check for version2; add else clause to handle version 5.
5223 (open_and_init_dwo_file): Add code to check dwarf version & only call
5224 create_debug_types_hash_table (with sections.types) if version is not 5;
5225 else call create_debug_type_hash_table, with sections.info.
5226 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5227 version 5.
5228 (dwarf2_locate_v5_dwp_sections): New function.
5229 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5230 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5231
159ed7d9
SM
52322020-08-06 Simon Marchi <simon.marchi@efficios.com>
5233
5234 * regcache.h (class regcache): Remove friend
5235 registers_changed_ptid.
5236 <regcache_thread_ptid_changed>: Remove.
5237 <regcaches>: Remove.
5238 * regcache.c (regcache::regcaches): Rename to...
5239 (regcaches): ... this. Make static.
5240 (get_thread_arch_aspace_regcache): Update.
5241 (regcache::regcache_thread_ptid_changed): Rename to...
5242 (regcache_thread_ptid_changed): ... this. Update.
5243 (class regcache_access): Remove.
5244 (regcaches_test): Update.
5245 (_initialize_regcache): Update.
5246 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5247 <forward_list>.
5248
174981ae
SM
52492020-08-06 Simon Marchi <simon.marchi@efficios.com>
5250
5251 * regcache.h (class regcache) <current_regcache>: Rename to...
5252 <regcaches>: ... this. Move doc here.
5253 * regcache.c (regcache::current_regcache) Rename to...
5254 (regcache::regcaches): ... this. Move doc to header.
5255 (get_thread_arch_aspace_regcache): Update.
5256 (regcache::regcache_thread_ptid_changed): Update.
5257 (registers_changed_ptid): Update.
5258 (class regcache_access) <current_regcache_size>: Rename to...
5259 <regcaches_size>: ... this.
5260 (current_regcache_test): Rename to...
5261 (regcaches_test): ... this.
5262 (_initialize_regcache): Update.
5263
ed908db6
VC
52642020-08-06 Victor Collod <vcollod@nvidia.com>
5265
5266 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5267
b5582ab7
KB
52682020-08-05 Kevin Buettner <kevinb@redhat.com>
5269
5270 * corelow.c (core_target::build_file_mappings): Don't output
5271 null pathname in warning.
5272
ea946b86
SM
52732020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5274
5275 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5276 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5277 gdb.dwarf2/dw2-single-line-discriminators.exp,
5278 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5279
57d02173
TT
52802020-08-05 Tom Tromey <tromey@adacore.com>
5281
5282 PR rust/26197:
5283 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5284 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5285 Fix off-by-one and type size errors in ordinary case.
5286
5555c86d
TV
52872020-08-05 Tom de Vries <tdevries@suse.de>
5288
5289 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5290 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5291
97916bfe
SM
52922020-08-04 Simon Marchi <simon.marchi@efficios.com>
5293
5294 * frame.h (frame_id_p): Return bool.
5295 (frame_id_artificial_p): Return bool.
5296 (frame_id_eq): Return bool.
5297 (has_stack_frames): Return bool.
5298 (get_selected_frame): Fix typo in comment.
5299 (get_frame_pc_if_available): Return bool.
5300 (get_frame_address_in_block_if_available): Return bool.
5301 (get_frame_func_if_available): Return bool.
5302 (read_frame_register_unsigned): Return bool.
5303 (get_frame_register_bytes): Return bool.
5304 (safe_frame_unwind_memory): Return bool.
5305 (deprecated_frame_register_read): Return bool.
5306 (frame_unwinder_is): Return bool.
5307 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5308 bool.
5309 <this_id::p>: Likewise.
5310 <prev_p>: Likewise.
5311 (frame_stash_add): Return bool.
5312 (get_frame_id): Use bool.
5313 (frame_id_build_special) Use bool.
5314 (frame_id_build_unavailable_stack): Use bool.
5315 (frame_id_build): Use bool.
5316 (frame_id_p): Return bool, use true/false instead of 1/0.
5317 (frame_id_artificial_p): Likewise.
5318 (frame_id_eq): Likewise.
5319 (frame_id_inner): Likewise.
5320 (get_frame_func_if_available): Likewise.
5321 (read_frame_register_unsigned): Likewise.
5322 (deprecated_frame_register_read): Likewise.
5323 (get_frame_register_bytes): Likewise.
5324 (has_stack_frames): Likewise.
5325 (inside_main_func): Likewise.
5326 (inside_entry_func): Likewise.
5327 (get_frame_pc_if_available): Likewise.
5328 (get_frame_address_in_block_if_available): Likewise.
5329 (frame_unwinder_is): Likewise.
5330 (safe_frame_unwind_memory): Likewise.
5331 (frame_unwind_arch): Likewise.
5332
fedfee88
SM
53332020-08-04 Simon Marchi <simon.marchi@efficios.com>
5334
5335 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5336 type to cached_copy_status.
5337 (fprintf_frame): Adjust.
5338 (get_frame_func_if_available): Adjust.
5339 (frame_cleanup_after_sniffer): Adjust.
5340
6cfa9b59
MW
53412020-08-04 Mark Wielaard <mark@klomp.org>
5342
5343 * MAINTAINERS (Write After Approval): Update email address.
5344
66d6346b
SM
53452020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5346
5347 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5348 dynamic_prop::const_val.
5349
8a6d5e35
SM
53502020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5351
5352 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5353 dynamic_prop::kind.
5354
51d6067d
SM
53552020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5356
5357 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5358
b26e2ae7
JM
53592020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5360
5361 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5362
39791af2
JM
53632020-08-04 Weimin Pan <weimin.pan@oracle.com>
5364 Jose E. Marchesi <jose.marchesi@oracle.com>
5365
5366 * configure.tgt: Add entry for bpf-*-*.
5367 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5368 (ALLDEPFILES): Add bpf-tdep.c.
5369 * bpf-tdep.c: New file.
5370 * MAINTAINERS: Add bpf target and maintainer.
5371 * NEWS: Mention the support for the new target.
5372
521894aa
TV
53732020-08-04 Tom de Vries <tdevries@suse.de>
5374
5375 PR symtab/23270
5376 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5377 Error.
5378
5d6356e9
JB
53792020-08-03 John Baldwin <jhb@FreeBSD.org>
5380
5381 * syscalls/freebsd.xml: Regenerate.
5382
0cf82b81
JB
53832020-08-03 John Baldwin <jhb@FreeBSD.org>
5384
5385 * syscalls/update-freebsd.sh: Fix usage and year range.
5386
8f34b746
TV
53872020-08-03 Tom de Vries <tdevries@suse.de>
5388
5389 PR symtab/26333
5390 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5391 DW_LNE_lo_user/DW_LNE_hi_user range.
5392
5e500d33
SM
53932020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5394
5395 PR ada/26318
5396 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5397 kind.
5398
78319c15
TBA
53992020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5400
5401 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5402
4c55e970
TBA
54032020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5404
5405 * breakpoint.c (set_breakpoint_condition): Update the condition
5406 expressions after checking that the input condition string parses
5407 successfully and does not contain junk at the end.
5408
1e620590
TBA
54092020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5410
5411 * breakpoint.c (set_breakpoint_condition): Update the
5412 condition string after parsing the new condition successfully.
5413
c8693053
RO
54142020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5415
5416 * proc-api.c (_STRUCTURED_PROC): Don't define.
5417 * proc-events.c: Likewise.
5418 * proc-flags.c: Likewise.
5419 * proc-why.c: Likewise.
5420 * procfs.c: Likewise.
5421
5422 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5423 * configure, config.in: Regenerate.
5424
5a99adb8
TV
54252020-07-30 Tom de Vries <tdevries@suse.de>
5426
5427 PR build/26320
5428 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5429 m_red/m_green/m_blue in a union.
5430
8ba83e91
TV
54312020-07-29 Tom de Vries <tdevries@suse.de>
5432
5433 PR tdep/26280
5434 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5435
f75a0693
AB
54362020-07-28 Tom Tromey <tromey@adacore.com>
5437
5438 PR symtab/26270:
5439 * symtab.h (find_pc_partial_function_sym): Declare.
5440 * cli/cli-cmds.c (disassemble_command): Use
5441 find_pc_partial_function_sym. Check asm_demangle.
5442 * blockframe.c (cache_pc_function_sym): New global.
5443 (cache_pc_function_name): Remove.
5444 (clear_pc_function_cache): Update.
5445 (find_pc_partial_function_sym): New function, from
5446 find_pc_partial_function.
5447 (find_pc_partial_function): Rewrite using
5448 find_pc_partial_function_sym.
5449
16f3242c
TT
54502020-07-28 Tom Tromey <tromey@adacore.com>
5451
5452 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5453 help. Add usage.
5454
4888741a
TT
54552020-07-28 Tom Tromey <tromey@adacore.com>
5456
5457 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5458 <DW_OP_GNU_variable_value>: Cast to address type.
5459
4d46f402
KR
54602020-07-28 Kamil Rytarowski <n54@gmx.com>
5461
5462 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5463 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5464 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5465 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5466 (nbsd_get_siginfo_type): New.
5467 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5468 (_initialize_nbsd_tdep): New.
5469
d70f978b
L
54702020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5471
5472 PR binutils/26301
5473 * configure: Regenerated.
5474
377170fa
L
54752020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5476
5477 PR binutils/26301
5478 * configure: Regenerated.
5479
43d5901d
AB
54802020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5481
5482 * python/py-frame.c: Remove 'user-regs.h' include.
5483 (frapy_read_register): Rewrite to make use of
5484 gdbpy_parse_register_id.
5485 * python/py-registers.c (gdbpy_parse_register_id): New function,
5486 moved here from python/py-unwind.c. Updated the return type, and
5487 also accepts register descriptor objects.
5488 * python/py-unwind.c: Remove 'user-regs.h' include.
5489 (pyuw_parse_register_id): Moved to python/py-registers.c.
5490 (unwind_infopy_add_saved_register): Update to use
5491 gdbpy_parse_register_id.
5492 (pending_framepy_read_register): Likewise.
5493 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5494
14fa8fb3
AB
54952020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5496
5497 * python/py-registers.c: Add 'user-regs.h' include.
5498 (register_descriptor_iter_find): New function.
5499 (register_descriptor_iterator_object_methods): New static global
5500 methods array.
5501 (register_descriptor_iterator_object_type): Add pointer to methods
5502 array.
5503
ddce1758
JB
55042020-07-27 John Baldwin <jhb@FreeBSD.org>
5505
5506 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5507 for all architectures on FreeBSD 11.3 and later.
5508
a4089f52
TT
55092020-07-27 Tom Tromey <tromey@adacore.com>
5510
5511 * gcore.h (load_corefile): Don't declare.
5512
95420d30
TV
55132020-07-27 Tom de Vries <tdevries@suse.de>
5514
5515 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5516 * config.in: Regenerate.
5517 * configure: Regenerate.
5518
05a6b8c2
EZ
55192020-07-26 Eli Zaretskii <eliz@gnu.org>
5520
5521 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5522 ws2tcpip.h. When checking whether socklen_t type is defined, use
5523 ws2tcpip.h if it is available and sys/socket.h isn't.
5524 * configure: Regenerate.
5525 * config.in: Regenerate.
5526
e79eb02f
AB
55272020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5528
5529 PR fortran/23051
5530 PR fortran/26139
5531 * valops.c (value_ind): Pass address to
5532 readjust_indirect_value_type.
5533 * value.c (readjust_indirect_value_type): Make parameter
5534 non-const, and add extra address parameter. Resolve original type
5535 before using it.
5536 * value.h (readjust_indirect_value_type): Update function
5537 signature and comment.
5538
876518dd
TV
55392020-07-25 Tom de Vries <tdevries@suse.de>
5540
5541 PR symtab/26243
5542 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5543 entries.
5544
f6720b1c
AM
55452020-07-24 Aaron Merey <amerey@redhat.com>
5546
5547 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5548 * configure: Rebuild.
5549
513487e1
KB
55502020-07-23 Kevin Buettner <kevinb@redhat.com>
5551
5552 PR corefiles/26294
5553 * corelow.c (_initialize_corelow): Add period to help text
5554 for "maintenance print core-file-backed-mappings".
5555
e7bc9db8
PA
55562020-07-23 Pedro Alves <pedro@palves.net>
5557
5558 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5559 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5560 meanwhile.
5561 * frame.c (frame_cache_generation, get_frame_cache_generation):
5562 New.
5563 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5564 (get_prev_frame_if_no_cycle): On exception, don't touch
5565 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5566 * frame.h (get_frame_cache_generation): Declare.
5567
90fcc466
TV
55682020-07-23 Tom de Vries <tdevries@suse.de>
5569
5570 PR tui/26282
5571 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5572 New default constructor.
5573
78344df7
AB
55742020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5575
5576 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5577 exclude non-statement entries.
5578
b089853a
KB
55792020-07-22 Kevin Buettner <kevinb@redhat.com>
5580
5581 * NEWS (New commands): Mention new command
5582 "maintenance print core-file-backed-mappings".
5583
09c2f5d4
KB
55842020-07-22 Kevin Buettner <kevinb@redhat.com>
5585
5586 * corelow.c (gdbcmd.h): Include.
5587 (core_target::info_proc_mappings): New method.
5588 (get_current_core_target): New function.
5589 (maintenance_print_core_file_backed_mappings): New function.
5590 (_initialize_corelow): Add core-file-backed-mappings to
5591 "maint print" commands.
5592
9c5ec5c2 55932020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5594
9c5ec5c2
KB
5595 * linux-tdep.c (dump_note_entry_p): New function.
5596 (linux_dump_mapping_p_ftype): New typedef.
5597 (linux_find_memory_regions_full): Add new parameter,
5598 should_dump_mapping_p.
5599 (linux_find_memory_regions): Adjust call to
5600 linux_find_memory_regions_full.
5601 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5602 call to linux_find_memory_regions_full.
5603
db082f59
KB
56042020-07-22 Kevin Buettner <kevinb@redhat.com>
5605
5606 * corelow.c (solist.h, unordered_map): Include.
5607 (class core_target): Add field m_core_file_mappings and
5608 method build_file_mappings.
5609 (core_target::core_target): Call build_file_mappings.
5610 (core_target::~core_target): Free memory associated with
5611 m_core_file_mappings.
5612 (core_target::build_file_mappings): New method.
5613 (core_target::xfer_partial): Use m_core_file_mappings
5614 for memory transfers.
5615 * linux-tdep.c (linux_read_core_file_mappings): New
5616 function.
5617 (linux_core_info_proc_mappings): Rewrite to use
5618 linux_read_core_file_mappings.
5619 (linux_init_abi): Register linux_read_core_file_mappings.
5620
7e183d27
KB
56212020-07-22 Kevin Buettner <kevinb@redhat.com>
5622
5623 * arch-utils.c (default_read_core_file_mappings): New function.
5624 * arch-utils.c (default_read_core_file_mappings): Declare.
5625 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5626 * gdbarch.h, gdbarch.c: Regenerate.
5627
2735d421
KB
56282020-07-22 Kevin Buettner <kevinb@redhat.com>
5629
5630 PR corefiles/25631
5631 * corelow.c (core_target:xfer_partial): Revise
5632 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5633 case after first checking the stratum beneath the core
5634 target.
5635 (has_all_memory): Return true.
5636 * target.c (raw_memory_xfer_partial): Revise comment
5637 regarding use of has_all_memory.
5638
e56cb451
KB
56392020-07-22 Kevin Buettner <kevinb@redhat.com>
5640
5641 * exec.h (section_table_xfer_memory): Revise declaration,
5642 replacing section name parameter with an optional callback
5643 predicate.
5644 * exec.c (section_table_xfer_memory): Likewise.
5645 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5646 of section_table_xfer_memory.
5647
32fa152e
TT
56482020-07-22 Tom Tromey <tromey@adacore.com>
5649
5650 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5651 lookup_symbol_search_name.
5652
a67a1c41
AB
56532020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5654
5655 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5656 redundant local variable.
5657 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5658 reference, not pointer, update code accordingly.
5659
a7b4ff4f
SM
56602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5661 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5662
5663 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5664 * jit.c (jit_breakpoint_re_set_internal): Use the
5665 `skip_jit_symbol_lookup` field.
5666
2340e834
SM
56672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5668 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5669
5670 * jit.c (jit_read_descriptor): Define the descriptor address once,
5671 use twice.
5672 (jit_breakpoint_deleted): Move the declaration of the loop variable
5673 `iter` into the loop header.
5674 (jit_breakpoint_re_set_internal): Move the declaration of the local
5675 variable `objf_data` to the first point of definition.
5676 (jit_event_handler): Move the declaration of local variables
5677 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5678 Rename `objf` to `jited`.
5679
c1072906
SM
56802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5681
5682 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5683 Remove.
5684 * jit.c (get_jiter_objfile_data): Update.
5685
c8474dc3
TBA
56862020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5687 Simon Marchi <simon.marchi@polymtl.ca>
5688
5689 * jit.c (struct jit_program_space_data): Remove.
5690 (jit_program_space_key): Remove.
5691 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5692 stuff.
5693 (get_jit_program_space_data): Remove.
5694 (jit_breakpoint_deleted): Iterate on all of the program space's
5695 objfiles.
5696 (jit_inferior_init): Likewise.
5697 (jit_breakpoint_re_set_internal): Likewise. Also change return
5698 type to void.
5699 (jit_breakpoint_re_set): Pass current_program_space to
5700 jit_breakpoint_re_set_internal.
5701
77208eb7
SM
57022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5703
5704 * jit.h (struct jiter_objfile_data) <cached_code_address,
5705 jit_breakpoint>: Move to here from ...
5706 * jit.c (jit_program_space_data): ... here.
5707 (jiter_objfile_data::~jiter_objfile_data): Update.
5708 (jit_breakpoint_deleted): Update.
5709 (jit_breakpoint_re_set_internal): Update.
5710
8c1c720f
SM
57112020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5712
5713 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5714 checks.
5715 (jit_read_descriptor): Remove NULL check.
5716 (jit_event_handler): Add an assertion.
5717
0e74a041
SM
57182020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5719
5720 * jit.h (struct jit_objfile_data): Split into...
5721 (struct jiter_objfile_data): ... this ...
5722 (struct jited_objfile_data): ... and this.
5723 * objfiles.h (struct objfile) <jit_data>: Remove.
5724 <jiter_data, jited_data>: New fields.
5725 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5726 (jiter_objfile_data::~jiter_objfile_data): ... this.
5727 (get_jit_objfile_data): Rename to ...
5728 (get_jiter_objfile_data): ... this.
5729 (add_objfile_entry): Update.
5730 (jit_read_descriptor): Use get_jiter_objfile_data.
5731 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5732 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5733 (jit_inferior_exit_hook): Use objfile's jited_data field.
5734
238b5c9f
SM
57352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5736
5737 * jit.h: Forward-declare `struct minimal_symbol`.
5738 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5739 constructor, destructor, and an objfile* field.
5740 * jit.c (jit_objfile_data): Remove.
5741 (struct jit_objfile_data): Migrate from here to jit.h.
5742 (jit_objfile_data::~jit_objfile_data): New destructor
5743 implementation with code moved from free_objfile_data.
5744 (free_objfile_data): Delete.
5745 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5746 (jit_find_objf_with_entry_addr): Ditto.
5747 (jit_inferior_exit_hook): Ditto.
5748 (_initialize_jit): Remove the call to
5749 register_objfile_data_with_cleanup.
5750 * objfiles.h (struct objfile) <jit_data>: New field.
5751
fe053b9e
TBA
57522020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5753
5754 * jit.h: Forward-declare `struct objfile`.
5755 (jit_event_handler): Add a second parameter, the JITer objfile.
5756 * jit.c (jit_read_descriptor): Change the signature to take the
5757 JITer objfile as an argument instead of the jit_program_space_data.
5758 (jit_inferior_init): Update the call to jit_read_descriptor.
5759 (jit_event_handler): Use the new JITer objfile argument when calling
5760 jit_read_descriptor.
5761 * breakpoint.c (handle_jit_event): Update the call to
5762 jit_event_handler to pass the JITer objfile.
5763
4cec0c66
JB
57642020-07-21 John Baldwin <jhb@FreeBSD.org>
5765
5766 * gdbarch.c: Regenerate.
5767 * gdbarch.h: Regenerate.
5768 * gdbarch.sh (handle_segmentation_fault): Remove method.
5769 * infrun.c (handle_segmentation_fault): Remove.
5770 (print_signal_received_reason): Remove call to
5771 handle_segmentation_fault.
5772
0e42f66a
JB
57732020-07-21 John Baldwin <jhb@FreeBSD.org>
5774
5775 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5776 Rename to sparc64_linux_report_signal_info and add siggnal
5777 argument.
5778 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5779 instead of sparc64_linux_handle_segmentation_fault.
5780
77bdfeb2
JB
57812020-07-21 John Baldwin <jhb@FreeBSD.org>
5782
5783 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5784 i386_linux_report_signal_info instead of
5785 i386_linux_handle_segmentation_fault.
5786 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5787 to i386_linux_report_signal_info and add siggnal argument.
5788 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5789 of i386_linux_handle_segmentation_fault.
5790 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5791 to i386_linux_report_signal_info and add siggnal argument.
5792
ad97bfc5
JB
57932020-07-21 John Baldwin <jhb@FreeBSD.org>
5794
5795 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5796 hook if present.
5797
272bb05c
JB
57982020-07-21 John Baldwin <jhb@FreeBSD.org>
5799
5800 * gdbarch.c: Regenerate.
5801 * gdbarch.h: Regenerate.
5802 * gdbarch.sh (report_signal_info): New method.
5803 * infrun.c (print_signal_received_reason): Invoke gdbarch
5804 report_signal_info hook if present.
5805
baf8791e
AB
58062020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5807
5808 * python/py-registers.c : Add 'unordered_map' include.
5809 (gdbpy_new_reggroup): Renamed to...
5810 (gdbpy_get_reggroup): ...this. Update to only create register
5811 group descriptors when needed.
5812 (gdbpy_reggroup_iter_next): Update.
5813
f7306dac
AB
58142020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5815
5816 * python/py-registers.c (gdbpy_register_object_data): New static
5817 global.
5818 (gdbpy_register_object_data_init): New function.
5819 (gdbpy_new_register_descriptor): Renamed to...
5820 (gdbpy_get_register_descriptor): ...this, and update to reuse
5821 existing register descriptors where possible.
5822 (gdbpy_register_descriptor_iter_next): Update.
5823 (gdbpy_initialize_registers): Register new gdbarch data.
5824
05c309a8
SM
58252020-07-21 Simon Marchi <simon.marchi@efficios.com>
5826
5827 * linux-nat.c (stopped_pids): Make static.
5828
d1fd641e
SM
58292020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5830
5831 PR ada/26235
5832 * gdbtypes.c (ada_discrete_type_low_bound,
5833 ada_discrete_type_high_bound): Handle undefined bounds.
5834
1de14d77
KR
58352020-07-21 Kamil Rytarowski <n54@gmx.com>
5836
5837 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5838 declaration.
5839 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5840 function.
5841
ed810cc7
JB
58422020-07-20 John Baldwin <jhb@FreeBSD.org>
5843
5844 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5845 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5846 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5847 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5848 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5849 method.
5850
ae5369e7
LC
58512020-07-20 Ludovic Courtès <ludo@gnu.org>
5852
5853 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5854 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5855 which are deprecated in Guile 3.0.
5856 * configure.ac (try_guile_versions): Add "guile-3.0".
5857 * configure (try_guile_versions): Regenerate.
5858 * NEWS: Update entry.
5859
68cf161c
LC
58602020-07-20 Ludovic Courtès <ludo@gnu.org>
5861 Doug Evans <dje@google.com>
5862
5863 PR gdb/21104
5864 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5865 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5866 USING_GUILE_BEFORE_2_2.
5867 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5868 Change type to 'scm_t_port_type *'.
5869 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5870 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5871 parameter and honor it. Update callers.
5872 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5873 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5874 functions.
5875 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5876 USING_GUILE_BEFORE_2_2.
5877 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5878 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5879 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5880 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5881 and 'SCM_PORT_TYPE'.
5882 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5883 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5884 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5885 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5886 [!USING_GUILE_BEFORE_2_2]: New functions.
5887 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5888 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5889 'gdbscm_memory_port_read'.
5890 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5891 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5892 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5893 function.
5894 (ioscm_init_memory_port): Remove.
5895 (ioscm_init_memory_port_stream): New function
5896 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5897 function.
5898 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5899 Return scm_from_uint (0).
5900 (gdbscm_set_memory_port_read_buffer_size_x)
5901 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5902 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5903 Return scm_from_uint (0).
5904 (gdbscm_set_memory_port_write_buffer_size_x)
5905 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5906 * configure.ac (try_guile_versions): Add "guile-2.2".
5907 * configure: Regenerate.
5908 * NEWS: Add entry.
5909
aee91db3
TT
59102020-07-18 Tom Tromey <tom@tromey.com>
5911
5912 * linux-nat.c (linux_multi_process): Remove.
5913 (linux_nat_target::supports_multi_process): Return true.
5914
0e267416
AB
59152020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5916
5917 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5918 (riscv_lookup_target_description): Return pointer out of
5919 unique_ptr.
5920 * target-descriptions.c (allocate_target_description): Add
5921 comment.
5922 (target_desc_deleter::operator()): Likewise.
5923 * target-descriptions.h (struct target_desc_deleter): Moved to
5924 gdbsupport/tdesc.h.
5925 (target_desc_up): Likewise.
5926
f80c8ec4
TT
59272020-07-17 Tom Tromey <tromey@adacore.com>
5928
5929 * linux-nat.c (linux_nat_target::supports_non_stop)
5930 (linux_nat_target::always_non_stop_p): Use "true".
5931 (linux_nat_target::supports_disable_randomization): Use "true" and
5932 "false".
5933
d0ce17d8
CT
59342020-07-16 Caroline Tice <cmtice@google.com>
5935
5936 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5937 (RNGLIST_HEADER_SIZE64): New constant definition.
5938 (struct dwop_section_names): Add rnglists_dwo.
5939 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5940 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5941 (struct dwo_sections): Add rnglists field.
5942 (read_attribut_reprocess): Add tag parameter.
5943 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5944 (cu_debug_rnglists_section): New function (decl & definition).
5945 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5946 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5947 die whose range is being checked; get rnglist section from
5948 cu_debug_rnglists_section, to get from either objfile or dwo file as
5949 appropriate. Add cases for DW_RLE_base_addressx,
5950 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5951 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5952 test inside if-condition and updating complaint message.
5953 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5954 dwarf2_rnglists_process.
5955 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5956 dwarf2_ranges_process.
5957 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5958 need_ranges_base and update comment appropriately. Also pass die tag
5959 to dwarf2_ranges_read.
5960 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5961 need_ranges_base and update comment appropriately. Also pass die tag
5962 to dwarf2_ranges_process.
5963 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5964 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5965 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5966 need_ranges_base and update comment appropriately. Also pass die tag
5967 to read_attribute_reprocess and dwarf2_ranges_read.
5968 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5969 and update function comment appropriately.
5970 (read_loclist_index): Call read_loclists_rnglists_header instead of
5971 read_loclist_header.
5972 (read_rnglist_index): New function.
5973 (read_attribute_reprocess): Add tag parameter. Add code for
5974 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5975 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5976
3dcc261c
AB
59772020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5978
5979 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5980 being resolved.
5981
ccb9eba6
AB
59822020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5983
5984 * arch-utils.c (show_architecture): Update formatting of messages.
5985
cf88be68
SM
59862020-07-12 Simon Marchi <simon.marchi@efficios.com>
5987
5988 * gdbtypes.h (struct type) <bounds>: Handle array and string
5989 types.
5990 * ada-lang.c (assign_aggregate): Use type::bounds on
5991 array/string type.
5992 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5993 * c-varobj.c (c_number_of_children): Likewise.
5994 (c_describe_child): Likewise.
5995 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5996 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5997 (f_type_print_base): Likewise.
5998 * f-valprint.c (f77_array_offset_tbl): Likewise.
5999 (f77_get_upperbound): Likewise.
6000 (f77_print_array_1): Likewise.
6001 * guile/scm-type.c (gdbscm_type_range): Likewise.
6002 * m2-typeprint.c (m2_array): Likewise.
6003 (m2_is_long_set_of_type): Likewise.
6004 * m2-valprint.c (get_long_set_bounds): Likewise.
6005 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6006 * python/py-type.c (typy_range): Likewise.
6007 * rust-lang.c (rust_internal_print_type): Likewise.
6008 * type-stack.c (type_stack::follow_types): Likewise.
6009 * valarith.c (value_subscripted_rvalue): Likewise.
6010 * valops.c (value_cast): Likewise.
6011
509971ae
SM
60122020-07-12 Simon Marchi <simon.marchi@efficios.com>
6013
6014 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6015 callers to use the equivalent accessor methods.
6016
107406b7
SM
60172020-07-12 Simon Marchi <simon.marchi@efficios.com>
6018
6019 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6020 (struct type) <bit_stride>: New method.
6021 (TYPE_BIT_STRIDE): Remove.
6022 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6023
bb789949
SM
60242020-07-12 Simon Marchi <simon.marchi@efficios.com>
6025
6026 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6027 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6028 callers to use the equivalent accessor methods instead.
6029
39498edb
SM
60302020-07-12 Simon Marchi <simon.marchi@efficios.com>
6031
6032 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6033 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6034 callers to use the equivalent accessor methods instead.
6035
3b606f38
SM
60362020-07-12 Simon Marchi <simon.marchi@efficios.com>
6037
6038 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6039 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6040 to use dynamic_prop::kind.
6041
064d9cb9
SM
60422020-07-12 Simon Marchi <simon.marchi@efficios.com>
6043
6044 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6045 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6046 to get the bound property's kind and check against
6047 PROP_UNDEFINED.
6048
5537ddd0
SM
60492020-07-12 Simon Marchi <simon.marchi@efficios.com>
6050
6051 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6052 all callers to use type::range_bounds followed by
6053 dynamic_prop::{low,high}.
6054
8c2e4e06
SM
60552020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6056
6057 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6058 const_val, set_const_val, baton, set_locexpr, set_loclist,
6059 set_addr_offset, variant_parts, set_variant_parts,
6060 original_type, set_original_type>: New methods.
6061 <kind>: Rename to...
6062 <m_kind>: ... this. Update all users to use the new methods
6063 instead.
6064 <data>: Rename to...
6065 <m_data>: ... this. Update all users to use the new methods
6066 instead.
6067
7c6f2712
SM
60682020-07-12 Simon Marchi <simon.marchi@efficios.com>
6069
6070 * gdbtypes.c (get_discrete_bounds): Return failure if
6071 the range type's bounds are not both defined and constant
6072 values.
6073 (get_array_bounds): Update comment. Remove undefined bound check.
6074
599088e3
SM
60752020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6076
6077 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6078 the type::bounds method directly.
6079
c4dfcb36
SM
60802020-07-12 Simon Marchi <simon.marchi@efficios.com>
6081
6082 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6083 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6084 are used to set the range type's bounds to use set_bounds.
6085
0a278aa7
PW
60862020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6087
6088 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6089
cce20f10
PA
60902020-07-10 Pedro Alves <pedro@palves.net>
6091
6092 * gdbthread.h (inferior_ref): Define.
6093 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6094 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6095 * thread.c
6096 (scoped_restore_current_thread::restore):
6097 Adjust to gdb::ref_ptr.
6098 (scoped_restore_current_thread::~scoped_restore_current_thread):
6099 Remove manual decref handling.
6100 (scoped_restore_current_thread::scoped_restore_current_thread):
6101 Adjust to use
6102 inferior_ref::new_reference/thread_info_ref::new_reference.
6103 Incref the thread before calling get_frame_id instead of after.
6104 Let TARGET_CLOSE_ERROR propagate.
6105
6d7aa592
PA
61062020-07-10 Pedro Alves <pedro@palves.net>
6107
6108 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6109 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6110 NOT_AVAILABLE_ERROR.
6111 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6112 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6113
b3e3a4c1
SM
61142020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6115 Pedro Alves <pedro@palves.net>
6116
6117 PR gdb/26199
6118 * infrun.c (threads_are_resumed_pending_p): Delete.
6119 (do_target_wait): Remove threads_are_executing and
6120 threads_are_resumed_pending_p checks from the inferior_matches
6121 lambda. Update comments.
6122
d6cc5d98
PA
61232020-07-10 Pedro Alves <pedro@palves.net>
6124
6125 PR gdb/26199
6126 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6127 executing threads.
6128
7d3badc6
PA
61292020-07-10 Pedro Alves <pedro@palves.net>
6130
6131 PR gdb/26199
6132 * infrun.c (handle_no_resumed): Handle multiple targets.
6133
42bd97a6
PA
61342020-07-10 Pedro Alves <pedro@palves.net>
6135
6136 PR gdb/26199
6137 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6138 target_is_async_p.
6139
43667cc6
PA
61402020-07-10 Pedro Alves <pedro@palves.net>
6141
6142 PR gdb/26199
6143 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6144 threads, not all threads.
6145
96118d11
PA
61462020-07-10 Pedro Alves <pedro@palves.net>
6147
6148 PR gdb/26199
6149 * remote.c (remote_target::open_1): Pass remote target pointer as
6150 data to create_async_event_handler.
6151 (remote_async_inferior_event_handler): Mark async event handler
6152 before returning if the remote target still has either pending
6153 events or unacknowledged notifications.
6154
54904d81
JB
61552020-07-10 John Baldwin <jhb@FreeBSD.org>
6156
6157 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6158 declaration.
6159 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6160 function.
6161
f37e5866
JB
61622020-07-09 John Baldwin <jhb@FreeBSD.org>
6163
6164 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6165 inferior_ptid.
6166
fc238d4a
JB
61672020-07-09 John Baldwin <jhb@FreeBSD.org>
6168
6169 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6170 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6171 AT_FREEBSD_PS_STRINGS.
6172
6e2469ff
HD
61732020-07-08 Hannes Domani <ssbssa@yahoo.de>
6174
6175 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6176 of debugfile path on Windows.
6177
d1076c41
JB
61782020-07-08 John Baldwin <jhb@FreeBSD.org>
6179
6180 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6181 argument to 'data'.
6182
15f3b077
TT
61832020-07-08 Tom Tromey <tromey@adacore.com>
6184
6185 * ada-lang.c (ada_exception_message_1): Use read_memory.
6186
9fc501fd
AB
61872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6188
6189 PR python/22748
6190 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6191 special handling for inline frames.
6192 * findvar.c (value_of_register_lazy): Skip inline frames when
6193 creating lazy register values.
6194 * frame.c (frame_id_computed_p): Delete definition.
6195 * frame.h (frame_id_computed_p): Delete declaration.
6196
64cb3757
AB
61972020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6198
6199 * NEWS: Mention additions to Python API.
6200 * python/py-arch.c (archpy_register_groups): New function.
6201 (arch_object_methods): Add 'register_groups' method.
6202 * python/py-registers.c (reggroup_iterator_object): New struct.
6203 (reggroup_object): New struct.
6204 (gdbpy_new_reggroup): New function.
6205 (gdbpy_reggroup_to_string): New function.
6206 (gdbpy_reggroup_name): New function.
6207 (gdbpy_reggroup_iter): New function.
6208 (gdbpy_reggroup_iter_next): New function.
6209 (gdbpy_new_reggroup_iterator): New function
6210 (gdbpy_initialize_registers): Register new types.
6211 (reggroup_iterator_object_type): Define new Python type.
6212 (gdbpy_reggroup_getset): New static global.
6213 (reggroup_object_type): Define new Python type.
6214 * python/python-internal.h
6215
0f767f94
AB
62162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6217
6218 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6219 * python/py-arch.c (archpy_registers): New function.
6220 (arch_object_methods): Add 'registers' method.
6221 * python/py-registers.c: New file.
6222 * python/python-internal.h
6223 (gdbpy_new_register_descriptor_iterator): Declare.
6224 (gdbpy_initialize_registers): Declare.
6225 * python/python.c (do_start_initialization): Call
6226 gdbpy_initialize_registers.
6227 * NEWS: Mention additions to the Python API.
6228
87dbc774
AB
62292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6230
6231 * NEWS: Mention new Python API method.
6232 * python/py-unwind.c (pending_framepy_architecture): New function.
6233 (pending_frame_object_methods): Add architecture method.
6234
3bc98c0c
AB
62352020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6236
6237 * gdbarch.c: Regenerate.
6238 * gdbarch.h: Regenerate.
6239 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6240 (gdbarch_data): Use internal_error for the case where
6241 deprecated_set_gdbarch_data was originally needed.
6242 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6243 and use passed in obstack.
6244 (libunwind_frame_set_descr): Should no longer get back NULL from
6245 gdbarch_data.
6246 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6247 type.
6248 * user-regs.c (user_regs_init): Update parameters, and use passed
6249 in obstack.
6250 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6251 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6252
d8cc8af6
TV
62532020-07-06 Tom de Vries <tdevries@suse.de>
6254
6255 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6256 End-Of-Sequence in lte_is_less_than.
6257 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6258 "gdb: Don't reorder line table entries too much when sorting".
6259
947f7597
TV
62602020-07-06 Tom de Vries <tdevries@suse.de>
6261
6262 PR tui/26205
6263 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6264
1e7c1b22
TV
62652020-07-05 Tom de Vries <tdevries@suse.de>
6266
6267 PR build/26187
6268 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6269 std::uncaught_exceptions instead of deprecated
6270 std::uncaught_exception.
6271
a36158ec
SM
62722020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 * macroexp.h (macro_stringify): Return
6275 gdb::unique_xmalloc_ptr<char>.
6276 * macroexp.c (macro_stringify): Likewise.
6277 * macrotab.c (fixup_definition): Update.
6278
14d960c8
SM
62792020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6280
6281 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6282 (lex_one_token): Update.
6283 * macroexp.c (struct macro_buffer) <release>: Return
6284 gdb::unique_xmalloc_ptr<char>.
6285 (macro_stringify): Update.
6286 (macro_expand): Update.
6287 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6288 * macroexp.h (macro_expand_next): Likewise.
6289
211d5b1c
SM
62902020-07-02 Simon Marchi <simon.marchi@efficios.com>
6291
6292 * macroexp.h (macro_lookup_ftype): Remove.
6293 (macro_expand, macro_expand_once, macro_expand_next): Remove
6294 lookup function parameters, add scope parameter.
6295 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6296 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6297 * macroscope.h (standard_macro_lookup): Change parameter type
6298 to macro_scope.
6299 * macroscope.c (standard_macro_lookup): Likewise.
6300 * c-exp.y (lex_one_token): Update.
6301 * macrocmd.c (macro_expand_command): Likewise.
6302 (macro_expand_once_command): Likewise.
6303
b1a35af2
SM
63042020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6305
6306 * inf-loop.c (inferior_event_handler): Remove client_data param.
6307 * inf-loop.h (inferior_event_handler): Likewise.
6308 * infcmd.c (step_1): Adjust.
6309 * infrun.c (proceed): Adjust.
6310 (fetch_inferior_event): Remove client_data param.
6311 (infrun_async_inferior_event_handler): Adjust.
6312 * infrun.h (fetch_inferior_event): Remove `void *` param.
6313 * linux-nat.c (handle_target_event): Adjust.
6314 * record-btrace.c (record_btrace_handle_async_inferior_event):
6315 Adjust.
6316 * record-full.c (record_full_async_inferior_event_handler):
6317 Adjust.
6318 * remote.c (remote_async_inferior_event_handler): Adjust.
6319
1cdf9e33
TT
63202020-07-01 Tom Tromey <tom@tromey.com>
6321
6322 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6323 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6324
32c1e210
TT
63252020-07-01 Tom Tromey <tom@tromey.com>
6326
6327 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6328 tui_gen_win_info.
6329 (tui_win_info::make_window): Merge with
6330 tui_gen_win_info::make_window.
6331 (tui_win_info::make_visible): Move from tui_gen_win_info.
6332 * tui/tui-win.c (tui_win_info::max_width): Move from
6333 tui_gen_win_info.
6334 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6335 type.
6336 <window_factory>: Likewise.
6337 * tui/tui-layout.c (tui_win_info::resize): Move from
6338 tui_gen_win_info.
6339 (make_standard_window): Change return type.
6340 (get_locator_window, tui_get_window_by_name): Likewise.
6341 (tui_layout_window::apply): Remove a cast.
6342 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6343 (struct tui_win_info): Merge with tui_gen_win_info.
6344 (struct tui_gen_win_info): Remove.
6345
a30cb6da
TT
63462020-07-01 Tom Tromey <tom@tromey.com>
6347
6348 * tui/tui-stack.h (struct tui_locator_window): Derive from
6349 tui_win_info.
6350 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6351 <can_box>: New method.
6352
1eb2161f
TT
63532020-07-01 Tom Tromey <tom@tromey.com>
6354
6355 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6356
7134f2eb
TT
63572020-07-01 Tom Tromey <tom@tromey.com>
6358
6359 * tui/tui-regs.c (tui_data_window::display_registers_from)
6360 (tui_data_window::display_registers_from)
6361 (tui_data_window::first_data_item_displayed)
6362 (tui_data_window::delete_data_content_windows): Update.
6363 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6364 Remove.
6365 (tui_data_window::check_register_values): Update.
6366 (tui_data_item_window::rerender): Add parameters. Update.
6367 (tui_data_item_window::refresh_window): Remove.
6368 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6369 virtual.
6370 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6371 tui_gen_win_info.
6372 <refresh_window, max_height, min_height>: Remove.
6373 <rerender>: Add parameters.
6374 <x, y, visible>: New members.
6375 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6376 <m_item_width>: New member.
6377
22b7b041
TT
63782020-07-01 Tom Tromey <tom@tromey.com>
6379
6380 * tui/tui-regs.c (tui_data_window::show_register_group)
6381 (tui_data_window::check_register_values): Update.
6382 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6383 from item_no.
6384
c9753adb
TT
63852020-07-01 Tom Tromey <tom@tromey.com>
6386
6387 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6388 useless "if".
6389
9ab26b4a
TT
63902020-07-01 Tom Tromey <tom@tromey.com>
6391
6392 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6393 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6394
e555083f
TT
63952020-07-01 Tom Tromey <tom@tromey.com>
6396
6397 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6398 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6399 (struct tui_line_or_address): Move from tui-data.h.
6400 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6401 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6402 (tui_cmd_window, tui_source_window_base, tui_source_window)
6403 (tui_disasm_window): Don't declare.
6404 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6405 to tui-winsource.h.
6406 (SINGLE_KEY): Move to tui-stack.c.
6407
7a02bab7
TT
64082020-07-01 Tom Tromey <tom@tromey.com>
6409
6410 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6411 std::string.
6412 * tui/tui-regs.c (class tab_expansion_file): New.
6413 (tab_expansion_file::write): New method.
6414 (tui_register_format): Change return type. Use
6415 tab_expansion_file.
6416 (tui_get_register, tui_data_window::display_registers_from)
6417 (tui_data_item_window::rerender): Update.
6418 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6419 * tui/tui-io.c (tui_expand_tabs): Remove.
6420
ea68593b
TT
64212020-07-01 Tom Tromey <tom@tromey.com>
6422
6423 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6424
a8caed5d
FS
64252020-07-01 Fangrui Song <maskray@google.com>
6426
6427 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6428
9cdf9820
AKS
64292020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6430
6431 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6432 forms for DW_AT_associated and DW_AT_allocated attributes,
6433 which is already checked in function attr_to_dynamic_prop.
6434
a1520ad8
TT
64352020-06-30 Tom Tromey <tromey@adacore.com>
6436
6437 * dwarf2/read.c (quirk_rust_enum): Correctly call
6438 alloc_rust_variant for default-less enum.
6439
5ac58899
TT
64402020-06-30 Tom Tromey <tromey@adacore.com>
6441
6442 PR build/26183:
6443 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6444 gdb::to_string.
6445
19b187a9
SM
64462020-06-29 Simon Marchi <simon.marchi@efficios.com>
6447
6448 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6449 * gdbarch.h: Re-generate.
6450
cd4c4c07
TT
64512020-06-28 Tom Tromey <tom@tromey.com>
6452
6453 * command.h (cmd_types): Remove.
6454 (cmd_type): Don't declare.
6455 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6456 typedef.
6457 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6458 * cli/cli-decode.c (cmd_type): Remove.
6459
05779d57
PA
64602020-06-27 Pedro Alves <palves@redhat.com>
6461
6462 * fork-child.c (prefork_hook): Adjust.
6463 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6464 Delete.
6465 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6466 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6467 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6468 Remove declarations.
6469 (struct inferior) <set_tty, tty>: New methods.
6470 (struct inferior) <terminal>: Rename to ...
6471 (struct inferior) <m_terminal>: ... this and make private.
6472 * main.c (captured_main_1): Adjust.
6473 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6474 (mi_cmd_inferior_tty_show): Adjust.
6475 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6476 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6477
1776e3e5
NA
64782020-06-26 Nick Alcock <nick.alcock@oracle.com>
6479
6480 * configure.ac: Add --enable-libctf: handle --disable-static
6481 properly.
6482 * acinclude.m4: sinclude ../config/enable.m4.
6483 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6484 (LIBCTF): Substitute in.
6485 (CTF_DEPS): New, likewise.
6486 (CLIBS): libctf needs symbols from libbfd: move earlier.
6487 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6488 flags.
6489 * ctfread.c: Surround in ENABLE_LIBCTF.
6490 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6491 * configure: Regenerate.
6492 * config.in: Likewise.
6493
58373b80
SM
64942020-06-25 Simon Marchi <simon.marchi@efficios.com>
6495
6496 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6497
277474ee
SM
64982020-06-25 Simon Marchi <simon.marchi@efficios.com>
6499
6500 * inferior.h (struct inferior) <terminal>: Change type to
6501 gdb::unique_xmalloc_ptr<char>.
6502 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6503 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6504 field, adjust to unique pointer.
6505 (get_inferior_io_terminal): Adjust to unique pointer.
6506
6d74da72
AB
65072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6508
6509 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6510 registers, not just the known core set of registers.
6511
2e52d038
AB
65122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6513
6514 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6515 fflags, frm, and fcsr registers.
6516 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6517 restore groups.
6518 (riscv_tdesc_unknown_reg): New function.
6519 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6520 tdesc_use_registers.
6521 * riscv-tdep.h (struct gdbarch_tdep): Add
6522 unknown_csrs_first_regnum, unknown_csrs_count,
6523 duplicate_fflags_regnum, duplicate_frm_regnum, and
6524 duplicate_fcsr_regnum fields.
6525
be64fd07
AB
65262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6527
6528 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6529 callback, use the callback (when not null) to help number unknown
6530 registers.
6531 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6532 (tdesc_use_registers): Add extra parameter to declaration.
6533
3b9fce96
AB
65342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6535
6536 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6537 in the file.
6538 (class riscv_pending_register_alias): Likewise.
6539 (riscv_register_feature::register_info): Change 'required_p' field
6540 to 'required', and change its type. Add 'check' member function.
6541 (riscv_register_feature::register_info::check): Define new member
6542 function.
6543 (riscv_xreg_feature): Change initialisation of 'required' field.
6544 (riscv_freg_feature): Likewise.
6545 (riscv_virtual_feature): Likewise.
6546 (riscv_csr_feature): Likewise.
6547 (riscv_check_tdesc_feature): Take extra parameter, the csr
6548 tdesc_feature, rewrite the function to use the new
6549 riscv_register_feature::register_info::check function.
6550 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6551
865bad26
AB
65522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6553
6554 * features/Makefile: Remove all references to the deleted files
6555 below.
6556 * features/riscv/32bit-csr.c: Deleted.
6557 * features/riscv/32bit-csr.xml: Deleted.
6558 * features/riscv/64bit-csr.c: Deleted.
6559 * features/riscv/64bit-csr.xml: Deleted.
6560 * features/riscv/rebuild-csr-xml.sh: Deleted.
6561
ed69cbc8
AB
65622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6563
6564 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6565 whitespace error for declaration of names member variable.
6566 (struct riscv_register_feature): Add new prefer_first_name member
6567 variable, and fix whitespace error in declaration of registers.
6568 (riscv_xreg_feature): Initialize prefer_first_name field.
6569 (riscv_freg_feature): Likewise.
6570 (riscv_virtual_feature): Likewise.
6571 (riscv_csr_feature): Likewise.
6572 (riscv_register_name): Expand on comments. Remove register name
6573 modifications for CSR and virtual registers.
6574
4445e8f5
AB
65752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6576
6577 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6578 errors.
6579
767a879e
AB
65802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6581
6582 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6583 riscv-opc.h.
6584 (class riscv_pending_register_alias): New class.
6585 (riscv_check_tdesc_feature): Take vector of pending aliases and
6586 populate it as appropriate.
6587 (riscv_setup_register_aliases): Delete.
6588 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6589 to riscv_check_tdesc_feature in all cases. Use the vector to
6590 create the register aliases.
6591
bb6e55f3
RO
65922020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6593
6594 * sol2-tdep.c (sol2_static_transform_name): Remove.
6595 (sol2_init_abi): Don't register it.
6596 * gdbarch.sh (static_transform_name): Remove.
6597 * gdbarch.c, gdbarch.h: Regenerate.
6598
6599 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6600 gdbarch_static_transform_name.
6601 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6602 * stabsread.c (define_symbol) <'X'>: Remove.
6603 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6604 handling.
6605 <'V'>: Likewise.
6606 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6607 <'S'>: Remove call to gdbarch_static_transform_name.
6608
c6d36836
RO
66092020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6610
6611 * procfs.c (procfs_pre_trace): New function.
6612 (procfs_target::create_inferior): Pass it to fork_inferior.
6613
a7e6196b
RO
66142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6615
6616 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6617 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6618 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6619 sol2-tdep.o, sparc-sol2-tdep.o.
6620 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6621 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6622 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6623 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6624
d412e696
RO
66252020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6626
6627 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6628 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6629 Call sol2_init_abi.
6630 Remove calls to set_gdbarch_skip_solib_resolver,
6631 set_gdbarch_core_pid_to_str.
6632 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6633 (i386_sol2_static_transform_name): Remove.
6634 (i386_sol2_init_abi): Call sol2_init_abi.
6635 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6636 set_gdbarch_static_transform_name,
6637 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6638 Use sol2_sigtramp_p.
6639 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6640 (sol2_sigtramp_p): New function.
6641 (sol2_static_transform_name): New function.
6642 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6643 (sol2_init_abi): New function.
6644 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6645 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6646 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6647 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6648 (sparc_sol2_static_transform_name): Remove.
6649 (sparc32_sol2_init_abi): Call sol2_init_abi.
6650 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6651 set_gdbarch_static_transform_name,
6652 set_gdbarch_skip_solib_resolver,
6653 set_gdbarch_core_pid_to_str.
6654 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6655 (sparc_sol2_static_transform_name): Remove
6656 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6657 call sol2_sigtramp_p.
6658 (sparc64_sol2_init_abi): Call sol2_init_abi.
6659 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6660 set_gdbarch_static_transform_name,
6661 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6662
a8654e7d
PW
66632020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6664
6665 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6666 * exec.c (validate_exec_file): If from_tty, set both
6667 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6668 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6669 and from_tty, unconditionally ask a confirmation.
6670
caa7fd04
AB
66712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6672
6673 * target-descriptions.c (tdesc_architecture_name): Protect against
6674 NULL pointer dereference.
6675 (maint_print_xml_tdesc_cmd): New function.
6676 (_initialize_target_descriptions): Register new 'maint print
6677 xml-tdesc' command and give it the filename completer.
6678 * NEWS: Mention new 'maint print xml-tdesc' command.
6679
fbf42f4e
AB
66802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6681
6682 * target-descriptions.c (class tdesc_compatible_info): New class.
6683 (struct target_desc): Change type of compatible vector.
6684 (tdesc_compatible_p): Update for change in type of
6685 target_desc::compatible.
6686 (tdesc_compatible_info_list): New function.
6687 (tdesc_compatible_info_arch_name): New function.
6688 (tdesc_add_compatible): Update for change in type of
6689 target_desc::compatible.
6690 (print_c_tdesc::visit_pre): Likewise.
6691
20821f4e
AB
66922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6693
6694 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6695 whitespace to underscore.
6696 (maint_print_c_tdesc_cmd): Use fake filename for target
6697 descriptions that came from the target.
6698 (_initialize_target_descriptions): Add filename command completion
6699 for 'maint print c-tdesc'.
6700
1fb5ee62
SM
67012020-06-23 Simon Marchi <simon.marchi@efficios.com>
6702
6703 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6704 lines.
6705
fc3ecb3e
SM
67062020-06-23 Simon Marchi <simon.marchi@efficios.com>
6707
6708 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6709 lines.
6710 (dwarf2_find_location_expression): Likewise.
6711 (call_site_parameter_matches): Likewise.
6712 (dwarf2_compile_expr_to_ax): Likewise.
6713 (disassemble_dwarf_expression): Likewise.
6714 (loclist_describe_location): Likewise.
6715
236ef034
PA
67162020-06-23 Pedro Alves <palves@redhat.com>
6717
6718 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6719 progspace-and-thread.h. Include scoped-mock-context.h instead.
6720 (register_to_value_test): Use scoped_mock_context.
6721 * regcache.c: Include "scoped-mock-context.h".
6722 (cooked_read_test): Don't error out if a target is already pushed.
6723 Use scoped_mock_context. Adjust.
6724 * scoped-mock-context.h: New file.
6725
39e7ecca
AB
67262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6727
6728 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6729 initializer.
6730 (ada_language::is_string_type_p): New member function.
6731 * c-lang.c (c_language_data): Delete la_is_string_type_p
6732 initializer.
6733 (cplus_language_data): Likewise.
6734 (asm_language_data): Likewise.
6735 (minimal_language_data): Likewise.
6736 * d-lang.c (d_language_data): Likewise.
6737 * f-lang.c (f_is_string_type_p): Delete function, implementation
6738 moved to f_language::is_string_type_p.
6739 (f_language_data): Delete la_is_string_type_p initializer.
6740 (f_language::is_string_type_p): New member function,
6741 implementation from f_is_string_type_p.
6742 * go-lang.c (go_is_string_type_p): Delete function, implementation
6743 moved to go_language::is_string_type_p.
6744 (go_language_data): Delete la_is_string_type_p initializer.
6745 (go_language::is_string_type_p): New member function,
6746 implementation from go_is_string_type_p.
6747 * language.c (language_defn::is_string_type_p): Define new member
6748 function.
6749 (default_is_string_type_p): Make static, add comment copied from
6750 header file.
6751 (unknown_language_data): Delete la_is_string_type_p initializer.
6752 (unknown_language::is_string_type_p): New member function.
6753 (auto_language_data): Delete la_is_string_type_p initializer.
6754 (auto_language::is_string_type_p): New member function.
6755 * language.h (language_data): Delete la_is_string_type_p field.
6756 (language_defn::is_string_type_p): Declare new function.
6757 (default_is_string_type_p): Delete desclaration, move comment to
6758 definition.
6759 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6760 moved to m2_language::is_string_type_p.
6761 (m2_language_data): Delete la_is_string_type_p initializer.
6762 (m2_language::is_string_type_p): New member function,
6763 implementation from m2_is_string_type_p.
6764 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6765 initializer.
6766 * opencl-lang.c (opencl_language_data): Likewise.
6767 * p-lang.c (pascal_is_string_type_p): Delete function,
6768 implementation moved to pascal_language::is_string_type_p.
6769 (pascal_language_data): Delete la_is_string_type_p initializer.
6770 (pascal_language::is_string_type_p): New member function,
6771 implementation from pascal_is_string_type_p.
6772 * rust-lang.c (rust_is_string_type_p): Delete function,
6773 implementation moved to rust_language::is_string_type_p.
6774 (rust_language_data): Delete la_is_string_type_p initializer.
6775 (rust_language::is_string_type_p): New member function,
6776 implementation from rust_is_string_type_p.
6777 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6778 is_string_type_p.
6779
4ffc13fb
AB
67802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6781
6782 * ada-lang.c (ada_language_data): Delete la_print_typedef
6783 initializer.
6784 (ada_language::print_typedef): New member function.
6785 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6786 (cplus_language_data): Likewise.
6787 (asm_language_data): Likewise.
6788 (minimal_language_data): Likewise.
6789 * d-lang.c (d_language_data): Likewise.
6790 * f-lang.c (f_language_data): Likewise.
6791 (f_language::print_typedef): New member function.
6792 * go-lang.c (go_language_data): Delete la_print_typedef
6793 initializer.
6794 * language.c (language_defn::print_typedef): Define member
6795 function.
6796 (unknown_language_data): Delete la_print_typedef initializer.
6797 (unknown_language::print_typedef): New member function.
6798 (auto_language_data): Delete la_print_typedef initializer.
6799 (auto_language::print_typedef): New member function.
6800 * language.h (language_data): Delete la_print_typedef field.
6801 (language_defn::print_typedef): Declare new member function.
6802 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6803 (default_print_typedef): Delete declaration.
6804 * m2-lang.c (m2_language_data): Delete la_print_typedef
6805 initializer.
6806 (m2_language::print_typedef): New member function.
6807 * objc-lang.c (objc_language_data): Delete la_print_typedef
6808 initializer.
6809 * opencl-lang.c (opencl_language_data): Likewise.
6810 * p-lang.c (pascal_language_data): Likewise.
6811 (pascal_language::print_typedef): New member function.
6812 * rust-lang.c (rust_print_typedef): Delete function,
6813 implementation moved to rust_language::print_typedef.
6814 (rust_language): Delete la_print_typedef initializer.
6815 (rust_language::print_typedef): New member function,
6816 implementation from rust_print_typedef.
6817 * typeprint.c (default_print_typedef): Delete.
6818
d711ee67
AB
68192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6820
6821 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6822 (ada_language::printstr): New member function.
6823 * c-lang.c (c_language_data): Delete la_printstr initializer.
6824 (cplus_language_data): Likewise.
6825 (asm_language_data): Likewise.
6826 (minimal_language_data): Likewise.
6827 * d-lang.c (d_language_data): Likewise.
6828 * f-lang.c (f_printstr): Rename to f_language::printstr.
6829 (f_language_data): Delete la_printstr initializer.
6830 (f_language::printstr): New member function, implementation from
6831 f_printstr.
6832 * go-lang.c (go_language_data): Delete la_printstr initializer.
6833 * language.c (language_defn::printstr): Define new member
6834 function.
6835 (unk_lang_printstr): Delete.
6836 (unknown_language_data): Delete la_printstr initializer.
6837 (unknown_language::printstr): New member function.
6838 (auto_language_data): Delete la_printstr initializer.
6839 (auto_language::printstr): New member function.
6840 * language.h (language_data): Delete la_printstr field.
6841 (language_defn::printstr): Declare new member function.
6842 (LA_PRINT_STRING): Update call to printstr.
6843 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6844 (m2_language_data): Delete la_printstr initializer.
6845 (m2_language::printstr): New member function, implementation from
6846 m2_printstr.
6847 * objc-lang.c (objc_language_data): Delete la_printstr
6848 initializer.
6849 * opencl-lang.c (opencl_language_data): Likewise.
6850 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6851 (pascal_language_data): Delete la_printstr initializer.
6852 (pascal_language::printstr): New member function, implementation
6853 from pascal_printstr.
6854 * p-lang.h (pascal_printstr): Delete declaration.
6855 * rust-lang.c (rust_printstr): Update header comment.
6856 (rust_language_data): Delete la_printstr initializer.
6857 (rust_language::printstr): New member function.
6858
52b50f2c
AB
68592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6860
6861 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6862 (ada_language::printchar): New member function.
6863 * c-lang.c (c_language_data): Delete la_printchar initializer.
6864 (cplus_language_data): Likewise.
6865 (asm_language_data): Likewise.
6866 (minimal_language_data): Likewise.
6867 * d-lang.c (d_language_data): Likewise.
6868 * f-lang.c (f_printchar): Rename to f_language::printchar.
6869 (f_language_data): Delete la_printchar initializer.
6870 (f_language::printchar): New member function, implementation from
6871 f_printchar.
6872 * go-lang.c (go_language_data): Delete la_printchar initializer.
6873 * language.c (unk_lang_printchar): Delete.
6874 (language_defn::printchar): Define new member function.
6875 (unknown_language_data): Delete la_printchar initializer.
6876 (unknown_language::printchar): New member function.
6877 (auto_language_data): Delete la_printchar initializer.
6878 (auto_language::printchar): New member function.
6879 * language.h (language_data): Delete la_printchar field.
6880 (language_defn::printchar): Declare new member function.
6881 (LA_PRINT_CHAR): Update call to printchar.
6882 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6883 (m2_language::printchar): New member function.
6884 * objc-lang.c (objc_language_data): Delete la_printchar
6885 initializer.
6886 * opencl-lang.c (opencl_language_data): Likewise.
6887 * p-lang.c (pascal_language_data): Delete la_printchar
6888 initializer.
6889 (pascal_language::printchar): New member function.
6890 * rust-lang.c (rust_printchar): Rename to
6891 rust_language::printchar.
6892 (rust_language_data): Delete la_printchar initializer.
6893 (rust_language::printchar): New member function, implementation
6894 from rust_printchar.
6895
ec8cec5b
AB
68962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6897
6898 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6899 (ada_language_data): Delete la_emitchar initializer.
6900 (ada_language::emitchar): New member function, implementation from
6901 emit_char.
6902 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6903 (cplus_language_data): Likewise.
6904 (asm_language_data): Likewise.
6905 (minimal_language_data): Likewise.
6906 * d-lang.c (d_language_data): Likewise.
6907 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6908 (f_language_data): Delete la_emitchar initializer.
6909 (f_language::emitchar): New member function, implementation from
6910 f_emit_char.
6911 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6912 * language.c (unk_lang_emit_char): Delete.
6913 (language_defn::emitchar): New member function definition.
6914 (unknown_language_data): Delete la_emitchar initializer.
6915 (unknown_language::emitchar): New member function.
6916 (auto_language_data): Delete la_emitchar initializer.
6917 (auto_language::emitchar): New member function.
6918 * language.h (language_data): Delete la_emitchar field.
6919 (language_defn::emitchar): New member field declaration.
6920 (LA_EMIT_CHAR): Update call to emitchar.
6921 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6922 (m2_language_data): Delete la_emitchar initializer.
6923 (m2_language::emitchar): New member function, implementation from
6924 m2_emit_char.
6925 * objc-lang.c (objc_language_data): Delete la_emitchar
6926 initializer.
6927 * opencl-lang.c (opencl_language_data): Likewise.
6928 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6929 (pascal_language_data): Delete la_emitchar initializer.
6930 (pascal_language::emitchar): New member function, implementation
6931 from pascal_emit_char.
6932 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6933 (rust_language_data): Delete la_emitchar initializer.
6934 (rust_language::emitchar): New member function, implementation
6935 from rust_emitchar.
6936
1bf9c363
AB
69372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6938
6939 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6940 (ada_language_data): Delete la_post_parser initializer.
6941 (ada_language::post_parser): New member function.
6942 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6943 (cplus_language_data): Likewise.
6944 (asm_language_data): Likewise.
6945 (minimal_language_data): Likewise.
6946 * d-lang.c (d_language_data): Likewise.
6947 * f-lang.c (f_language_data): Likewise.
6948 * go-lang.c (go_language_data): Likewise.
6949 * language.c (unknown_language_data): Likewise.
6950 (auto_language_data): Likewise.
6951 * language.h (language_data): Delete la_post_parser field.
6952 (language_defn::post_parser): New member function.
6953 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6954 * objc-lang.c (objc_language_data): Likewise.
6955 * opencl-lang.c (opencl_language_data): Likewise.
6956 * p-lang.c (pascal_language_data): Likewise.
6957 * parse.c (parse_exp_in_context): Update call to post_parser.
6958 (null_post_parser): Delete definition.
6959 * parser-defs.h (null_post_parser): Delete declaration.
6960 * rust-lang.c (rust_language_data): Delete la_post_parser
6961 initializer.
6962
87afa652
AB
69632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6964
6965 * ada-lang.c (parse): Rename to ada_language::parser.
6966 (ada_language_data): Delete la_parser initializer.
6967 (ada_language::parser): New member function, implementation from
6968 parse.
6969 * c-lang.c (c_language_data): Delete la_parser initializer.
6970 (cplus_language_data): Likewise.
6971 (asm_language_data): Likewise.
6972 (minimal_language_data): Likewise.
6973 * d-lang.c (d_language_data): Likewise.
6974 (d_language::parser): New member function.
6975 * f-lang.c (f_language_data): Delete la_parser initializer.
6976 (f_language::parser): New member function.
6977 * go-lang.c (go_language_data): Delete la_parser initializer.
6978 (go_language::parser): New member function.
6979 * language.c (unk_lang_parser): Delete.
6980 (language_defn::parser): Define new member function.
6981 (unknown_language_data): Delete la_parser initializer.
6982 (unknown_language::parser): New member function.
6983 (auto_language_data): Delete la_parser initializer.
6984 (auto_language::parser): New member function.
6985 * language.h (language_data): Delete la_parser field.
6986 (language_defn::parser): Declare new member function.
6987 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6988 (m2_language::parser): New member function.
6989 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6990 * opencl-lang.c (opencl_language_data): Likewise.
6991 * p-lang.c (pascal_language_data): Likewise.
6992 (pascal_language::parser): New member function.
6993 * parse.c (parse_exp_in_context): Update call to parser.
6994 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6995 (rust_language::parser): New member function.
6996
37825800
AB
69972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6998
6999 * top.c (print_gdb_configuration): Print --with-python-libdir
7000 configuration value.
7001
5b860c93
PW
70022020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7003
7004 * NEWS: Mention change to the alias command.
7005
cf00cd6f
PW
70062020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7007
7008 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7009 (alias_command_completer)
7010 (make_alias_options_def_group): New functions.
7011 (alias_opts, alias_option_defs): New struct and array.
7012 (alias_usage_error): Update usage.
7013 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7014 Use option framework.
7015 (_initialize_cli_cmds): Update alias command help.
7016 Update aliases command help.
7017 (show_user):
7018 Add NULL for new default_args lookup_cmd argument.
7019 (valid_command_p): Rename to validate_aliased_command.
7020 Add NULL for new default_args lookup_cmd argument. Verify that the
7021 aliased_command has no default args.
7022 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7023 (lookup_cmd_1, lookup_cmd): New argument default_args.
7024 (add_alias_cmd):
7025 Add NULL for new default_args lookup_cmd argument.
7026 (print_help_for_command): Show default args under the layout
7027 alias some_alias = some_aliased_cmd some_alias_default_arg.
7028 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7029 xfree default_args in destructor.
7030 * cli/cli-script.c (process_next_line, do_define_command):
7031 Add NULL for new default_args lookup_cmd argument.
7032 * command.h: Declare new default_args argument in lookup_cmd
7033 and lookup_cmd_1.
7034 * completer.c (complete_line_internal_1):
7035 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7036 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7037 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7038 Likewise.
7039 * infcmd.c (_initialize_infcmd): Likewise.
7040 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7041 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7042 * python/py-param.c (add_setshow_generic): Likewise.
7043 * remote.c (_initialize_remote): Likewise.
7044 * top.c (execute_command): Prepend default_args if command has some.
7045 (set_verbose):
7046 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7047 * tracepoint.c (validate_actionline, encode_actions_1):
7048 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7049
bd920864
TBA
70502020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7051
7052 * jit.c (jit_read_descriptor): Use bool as the return type.
7053 (jit_breakpoint_re_set_internal): Use bool as the return type.
7054 Invert the return value logic; return true if the jit breakpoint
7055 has been successfully initialized.
7056 (jit_inferior_init): Update the call to
7057 jit_breakpoint_re_set_internal.
7058
f8098322
PA
70592020-06-22 Pedro Alves <palves@redhat.com>
7060
7061 PR gdb/25939
7062 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7063 Use the current inferior instead. Don't return
7064 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7065 wait again.
7066 * sol-thread.c (sol_thread_target::wait): Don't reference
7067 inferior_ptid.
7068 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7069 (sol_update_thread_list_callback): Use the current inferior's pid
7070 instead of inferior_ptid.
7071
196535a6
RO
70722020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7073
7074 * procfs.c: Cleanup many comments.
7075
7076 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7077 (AFTER_WATCHFLAG): Replace by value.
7078
7079 (MAIN_PROC_NAME_FORMAT): Inline ...
7080 (create_procinfo): ... here.
7081
7082 (procfs_debug_inferior): Remove SYS_exec handling.
7083 (syscall_is_exec): Likewise.
7084 (procfs_set_exec_trap): Likewise.
7085
7086 (syscall_is_lwp_exit): Inline in callers.
7087 (syscall_is_exit): Likewise.
7088 (syscall_is_exec): Likewise.
7089 (syscall_is_lwp_create): Likewise.
7090
7091 (invalidate_cache): Remove #if 0 code.
7092
7093 (make_signal_thread_runnable): Remove.
7094 (procfs_target::resume): Remove #if 0 code.
7095
cf6f3e86
RO
70962020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7097
7098 PR gdb/25939
7099 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7100 call ...
7101 (procfs_target::create_inferior): ... here.
7102
48e9cc84
PW
71032020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7104
7105 * exec.c (validate_exec_file): Ensure the build-id is up to
7106 date by calling reopen_exec_file (that checks file timestamp
7107 to decide to re-read the file).
7108
3922b302
PA
71092020-06-18 Pedro Alves <palves@redhat.com>
7110
7111 PR gdb/25412
7112 * gdbthread.h (delete_thread, delete_thread_silent)
7113 (find_thread_ptid): Update comments.
7114 * thread.c (current_thread_): New global.
7115 (is_current_thread): Move higher, and reimplement.
7116 (inferior_thread): Reimplement.
7117 (set_thread_exited): Use bool. Add assertions.
7118 (add_thread_silent): Simplify thread-reuse handling by always
7119 calling delete_thread.
7120 (delete_thread): Remove intro comment.
7121 (find_thread_ptid): Skip exited threads.
7122 (switch_to_thread_no_regs): Write to current_thread_.
7123 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7124 INFERIOR_PTID. Clear current_thread_.
7125
6dbdab44
PA
71262020-06-18 Pedro Alves <palves@redhat.com>
7127
7128 * aix-thread.c (pd_update): Use switch_to_thread.
7129
2da4b788
PA
71302020-06-18 Pedro Alves <palves@redhat.com>
7131
7132 * ravenscar-thread.c (ravenscar_thread_target): Update.
7133 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7134 (ravenscar_thread_target::add_active_thread): ... this. Don't
7135 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7136 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7137
50838d1b
PA
71382020-06-18 Pedro Alves <palves@redhat.com>
7139
7140 * nat/windows-nat.c (current_windows_thread): Remove.
7141 * nat/windows-nat.h (current_windows_thread): Remove.
7142 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7143 Adjust.
7144 (display_selectors): Adjust to fetch the current
7145 windows_thread_info based on inferior_ptid.
7146 (fake_create_process): No longer write to current_windows_thread.
7147 (windows_nat_target::get_windows_debug_event):
7148 Don't set inferior_ptid or current_windows_thread.
7149 (windows_nat_target::wait): Adjust to not rely on
7150 current_windows_thread.
7151 (do_initial_windows_stuff): Now a method of windows_nat_target.
7152 Switch to the last_ptid thread.
7153 (windows_nat_target::attach): Adjust.
7154 (windows_nat_target::detach): Use switch_to_no_thread instead of
7155 writing to inferior_ptid directly.
7156 (windows_nat_target::create_inferior): Adjust.
7157
31ce04e9
PA
71582020-06-18 Pedro Alves <palves@redhat.com>
7159
7160 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7161
1ee1a363
PA
71622020-06-18 Pedro Alves <palves@redhat.com>
7163
7164 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7165 after creating it, instead of writing to inferior_ptid. Don't
7166 write to inferior_ptid.
7167
6d350754
PA
71682020-06-18 Pedro Alves <palves@redhat.com>
7169
7170 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7171
5d971d48
PA
71722020-06-18 Pedro Alves <palves@redhat.com>
7173
7174 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7175 it, instead of writing to inferior_ptid.
7176
86e57d1b
PA
71772020-06-18 Pedro Alves <palves@redhat.com>
7178
7179 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7180 to inferior_ptid.
7181
f2e1c129
PA
71822020-06-18 Pedro Alves <palves@redhat.com>
7183
7184 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7185 instead of writing to inferior_ptid directly.
7186
60db1b85
PA
71872020-06-18 Pedro Alves <palves@redhat.com>
7188
7189 * corelow.c (core_target::close): Use switch_to_no_thread instead
7190 of writing to inferior_ptid directly.
7191 (add_to_thread_list, core_target_open): Use switch_to_thread
7192 instead of writing to inferior_ptid directly.
7193
fe7d6a8d
PA
71942020-06-18 Pedro Alves <palves@redhat.com>
7195
7196 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7197 inferior_ptid.
7198 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7199 inferior_ptid.
7200 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7201 inferior_ptid directly.
7202 (darwin_nat_target::init_thread_list): Switch to thread, instead
7203 of writing to inferior_ptid.
7204 (darwin_nat_target::attach): Don't write to inferior_ptid.
7205 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7206
975f8708
PA
72072020-06-18 Pedro Alves <palves@redhat.com>
7208
7209 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7210 thread.
7211 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7212 Instead use switch_to_thread.
7213 (gnu_nat_target::detach): Use switch_to_no_thread
7214 instead of writing to inferior_ptid directly. Used passed-in
7215 inferior instead of looking up the inferior by pid.
7216
1a204730
PA
72172020-06-18 Pedro Alves <palves@redhat.com>
7218
7219 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7220 inferior_ptid.
7221
ebe84f23
PA
72222020-06-18 Pedro Alves <palves@redhat.com>
7223
7224 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7225 inferior_ptid.
7226 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7227 thread.
7228 (nto_procfs_target::detach): Avoid referencing
7229 inferior_ptid. Use switch_to_no_thread instead of writing to
7230 inferior_ptid directly.
7231 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7232 instead of writing to inferior_ptid directly.
7233 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7234 to thread.
7235
191f02e5
PA
72362020-06-18 Pedro Alves <palves@redhat.com>
7237
7238 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7239 after creating it, instead of writing to inferior_ptid.
7240 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7241 to inferior_ptid directly.
7242 (gdbsim_target::wait): Don't write to inferior_ptid.
7243
0ac55310
PA
72442020-06-18 Pedro Alves <palves@redhat.com>
7245
7246 * remote.c (remote_target::remote_notice_new_inferior): Use
7247 switch_to_thread instead of writing to inferior_ptid directly.
7248 (remote_target::add_current_inferior_and_thread): Use
7249 switch_to_no_thread instead of writing to inferior_ptid directly.
7250 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7251 and switch_to_thread instead of using set_current_inferior or
7252 writing to inferior_ptid directly.
7253
5233f39b
PA
72542020-06-18 Pedro Alves <palves@redhat.com>
7255
7256 * tracectf.c (ctf_target_open): Switch to added thread instead of
7257 writing to inferior_ptid directly.
7258 (ctf_target::close): Use switch_to_no_thread instead of writing to
7259 inferior_ptid directly.
7260
087e161b
PA
72612020-06-18 Pedro Alves <palves@redhat.com>
7262
7263 * tracefile-tfile.c (tfile_target_open): Don't write to
7264 inferior_ptid directly, instead switch to added thread.
7265 (tfile_target::close): Use switch_to_no_thread instead of writing
7266 to inferior_ptid directly.
7267
7fb43e53
PA
72682020-06-18 Pedro Alves <palves@redhat.com>
7269
7270 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7271 (procfs_target::detach): Use switch_to_no_thread
7272 instead of writing to inferior_ptid directly.
7273 (do_attach): Change return type to void. Switch to the added
7274 thread.
7275 (procfs_target::create_inferior): Switch to the added thread.
7276 (procfs_do_thread_registers): Don't write to inferior_ptid.
7277
18493a00
PA
72782020-06-18 Pedro Alves <palves@redhat.com>
7279
7280 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7281 of writing to inferior_ptid.
7282 (scoped_restore_exited_inferior): Delete.
7283 (handle_vfork_child_exec_or_exit): Simplify using
7284 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7285 instead of writing to inferior_ptid.
7286 (THREAD_STOPPED_BY): Delete.
7287 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7288 (thread_stopped_by_hw_breakpoint): Delete.
7289 (save_waitstatus): Use
7290 scoped_restore_current_thread+switch_to_thread, and call
7291 target_stopped_by_watchpoint instead of
7292 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7293 instead of thread_stopped_by_sw_breakpoint, and
7294 target_stopped_by_hw_breakpoint instead of
7295 thread_stopped_by_hw_breakpoint.
7296 (handle_inferior_event)
7297 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7298 inferior_ptid directly, nor
7299 set_current_inferior/set_current_program_space. Use
7300 switch_to_thread / switch_to_inferior_no_thread instead.
7301
a0776b13
PA
73022020-06-18 Pedro Alves <palves@redhat.com>
7303
7304 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7305 instead of writing to inferior_ptid.
7306
6155c136
PA
73072020-06-18 Pedro Alves <palves@redhat.com>
7308
7309 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7310 added thread.
7311 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7312 to the added thread.
7313 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7314 instead of writing to inferior_ptid.
7315
c5316fc6
PA
73162020-06-18 Pedro Alves <palves@redhat.com>
7317
7318 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7319 (register_to_value_test): Mock a program_space too. Heap-allocate
7320 the address space. Don't write to inferior_ptid. Use
7321 switch_to_thread instead.
7322
8df01799
PA
73232020-06-18 Pedro Alves <palves@redhat.com>
7324
7325 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7326 Delete.
7327 (find_signalled_thread()): New, factored out from
7328 linux_make_corefile_notes and adjusted to handle exited threads.
7329 (linux_make_corefile_notes): Adjust to use the new
7330 find_signalled_thread.
7331
41792d68
PA
73322020-06-18 Pedro Alves <palves@redhat.com>
7333
7334 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7335 of saving/restoring inferior_ptid.
7336
612f258a
TT
73372020-06-17 Tom Tromey <tom@tromey.com>
7338
7339 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7340 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7341 declare.
7342 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7343
efb763a5
SM
73442020-06-15 Simon Marchi <simon.marchi@efficios.com>
7345
7346 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7347 of partial symtabs.
7348
2951f6c0
SM
73492020-06-17 Simon Marchi <simon.marchi@efficios.com>
7350
7351 * regformats/reg-arm.dat: Remove.
7352 * regformats/reg-bfin.dat: Remove.
7353 * regformats/reg-cris.dat: Remove.
7354 * regformats/reg-crisv32.dat: Remove.
7355 * regformats/reg-m32r.dat: Remove.
7356 * regformats/reg-tilegx.dat: Remove.
7357 * regformats/reg-tilegx32.dat: Remove.
7358
7d458ea5
SM
73592020-06-17 Simon Marchi <simon.marchi@efficios.com>
7360
7361 * features/Makefile (WHICH): Remove arm files.
7362 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7363 * regformats/arm/arm-with-neon.dat: Remove.
7364 * regformats/arm/arm-with-vfpv2.dat: Remove.
7365 * regformats/arm/arm-with-vfpv3.dat: Remove.
7366
3af96c0d
SM
73672020-06-17 Simon Marchi <simon.marchi@efficios.com>
7368
7369 * features/Makefile (XMLTOC): Remove rx.xml.
7370
b25e22fd
PA
73712020-06-17 Pedro Alves <palves@redhat.com>
7372
7373 * gdbthread.h (thread_control_state) <trap_expected> Update
7374 comments.
7375
a78a19b1
AB
73762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7377
7378 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7379 ada_language::lookup_symbol_nonlocal.
7380 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7381 (ada_language::lookup_symbol_nonlocal): New member function,
7382 implementation from ada_lookup_symbol_nonlocal.
7383 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7384 initializer.
7385 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7386 initializer.
7387 (cplus_language::lookup_symbol_nonlocal): New member function.
7388 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7389 (minimal_language_data) Likewise.
7390 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7391 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7392 initializer.
7393 (d_language::lookup_symbol_nonlocal): New member function.
7394 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7395 initializer.
7396 (f_language::lookup_symbol_nonlocal): New member function.
7397 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7398 initializer.
7399 * language.c (unknown_language_data): Likewise.
7400 (auto_language_data): Likewise.
7401 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7402 field.
7403 (language_defn::lookup_symbol_nonlocal): New member function.
7404 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7405 initializer.
7406 * objc-lang.c (objc_language_data): Likewise.
7407 * opencl-lang.c (opencl_language_data): Likewise.
7408 * p-lang.c (pascal_language_data): Likewise.
7409 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7410 rust_language::lookup_symbol_nonlocal.
7411 (rust_language_data): Delete la_lookup_symbol_nonlocal
7412 initializer.
7413 (rust_language::lookup_symbol_nonlocal): New member function,
7414 implementation from rust_lookup_symbol_nonlocal.
7415 * symtab.c (lookup_symbol_aux): Update call to
7416 lookup_symbol_nonlocal.
7417 (basic_lookup_symbol_nonlocal): Rename to...
7418 (language_defn::lookup_symbol_nonlocal): ...this, and update
7419 header comment. Remove language_defn parameter, and replace with
7420 uses of `this'.
7421 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7422
ebe2334e
AB
74232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7424
7425 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7426 initializer.
7427 (ada_language::value_print_inner): New member function.
7428 * c-lang.c (c_language_data): Delete la_value_print_inner
7429 initializer.
7430 (cplus_language_data): Likewise.
7431 (asm_language_data): Likewise.
7432 (minimal_language_data): Likewise.
7433 * d-lang.c (d_language_data): Likewise.
7434 (d_language::value_print_inner): New member function.
7435 * f-lang.c (f_language_data): Delete la_value_print_inner
7436 initializer.
7437 (f_language::value_print_inner): New member function.
7438 * f-lang.h (f_value_print_innner): Rename to...
7439 (f_value_print_inner): ...this (note spelling of 'inner').
7440 * f-valprint.c (f_value_print_innner): Rename to...
7441 (f_value_print_inner): ...this (note spelling of 'inner').
7442 * go-lang.c (go_language_data): Delete la_value_print_inner
7443 initializer.
7444 (go_language::value_print_inner): New member function.
7445 * language.c (language_defn::value_print_inner): Define new member
7446 function.
7447 (unk_lang_value_print_inner): Delete.
7448 (unknown_language_data): Delete la_value_print_inner initializer.
7449 (unknown_language::value_print_inner): New member function.
7450 (auto_language_data): Delete la_value_print_inner initializer.
7451 (auto_language::value_print_inner): New member function.
7452 * language.h (language_data): Delete la_value_print_inner field.
7453 (language_defn::value_print_inner): Delcare new member function.
7454 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7455 initializer.
7456 (m2_language::value_print_inner): New member function.
7457 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7458 initializer.
7459 * opencl-lang.c (opencl_language_data): Likewise.
7460 * p-lang.c (pascal_language_data): Likewise.
7461 (pascal_language::value_print_inner): New member function.
7462 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7463 initializer.
7464 (rust_language::value_print_inner): New member function.
7465 * valprint.c (do_val_print): Update call to value_print_inner.
7466
a1d1fa3e
AB
74672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7468
7469 * ada-lang.c (ada_language_data): Delete la_value_print
7470 initializer.
7471 (ada_language::value_print): New member function.
7472 * c-lang.c (c_language_data): Delete la_value_print initializer.
7473 (cplus_language_data): Likewise.
7474 (asm_language_data): Likewise.
7475 (minimal_language_data): Likewise.
7476 * d-lang.c (d_language_data): Likewise.
7477 * f-lang.c (f_language_data): Likewise.
7478 * go-lang.c (go_language_data): Likewise.
7479 * language.c (unk_lang_value_print): Delete.
7480 (language_defn::value_print): Define new member function.
7481 (unknown_language_data): Delete la_value_print initializer.
7482 (unknown_language::value_print): New member function.
7483 (auto_language_data): Delete la_value_print initializer.
7484 (auto_language::value_print): New member function.
7485 * language.h (language_data): Delete la_value_print field.
7486 (language_defn::value_print): Declare new member function.
7487 (LA_VALUE_PRINT): Update call to value_print.
7488 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7489 * objc-lang.c (objc_language_data): Likewise.
7490 * opencl-lang.c (opencl_language_data): Likewise.
7491 * p-lang.c (pascal_language_data): Likewise.
7492 (pascal_language::value_print): New member function.
7493 * rust-lang.c (rust_language_data): Delete la_value_print
7494 initializer.
7495
f16a9f57
AB
74962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7497
7498 * ada-lang.c (ada_watch_location_expression): Rename to
7499 ada_language::watch_location_expression.
7500 (ada_language_data): Delete la_watch_location_expression
7501 initializer.
7502 (ada_language::watch_location_expression): New member function,
7503 implementation from ada_watch_location_expression.
7504 * breakpoint.c (watch_command_1): Update call to
7505 watch_location_expression.
7506 * c-lang.c (c_watch_location_expression): Rename to
7507 language_defn::watch_location_expression.
7508 (c_language_data): Delete la_watch_location_expression
7509 initializer.
7510 (cplus_language_data): Likewise.
7511 (asm_language_data): Likewise.
7512 (minimal_language_data): Likewise.
7513 * c-lang.h (c_watch_location_expression): Delete declaration.
7514 * d-lang.c (d_language_data): Delete la_watch_location_expression
7515 initializer.
7516 * f-lang.c (f_language_data): Likewise.
7517 * go-lang.c (go_language_data): Likewise.
7518 * language.c (language_defn::watch_location_expression): Member
7519 function implementation from c_watch_location_expression.
7520 (unknown_language_data): Delete la_watch_location_expression
7521 initializer.
7522 (auto_language_data): Likewise.
7523 * language.h (language_data): Delete la_watch_location_expression
7524 field.
7525 (language_defn::watch_location_expression): Declare new member
7526 function.
7527 * m2-lang.c (m2_language_data): Delete
7528 la_watch_location_expression initializer.
7529 * objc-lang.c (objc_language_data): Likewise.
7530 * opencl-lang.c (opencl_language_data): Likewise.
7531 * p-lang.c (pascal_language_data): Likewise.
7532 * rust-lang.c (rust_watch_location_expression): Rename to
7533 rust_language::watch_location_expression.
7534 (rust_language_data): Delete la_watch_location_expression
7535 initializer.
7536 (rust_language::watch_location_expression): New member function,
7537 implementation from rust_watch_location_expression.
7538
7e56227d
AB
75392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7540
7541 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7542 ada_language::collect_symbol_completion_matches.
7543 (ada_language_data): Delete la_collect_symbol_completion_matches
7544 initializer.
7545 (ada_language::collect_symbol_completion_matches): New member
7546 function, implementation from
7547 ada_collect_symbol_completion_matches.
7548 * c-lang.c (c_language_data): Delete
7549 la_collect_symbol_completion_matches initializer.
7550 (cplus_language_data): Likewise.
7551 (asm_language_data): Likewise.
7552 (minimal_language_data): Likewise.
7553 * d-lang.c (d_language_data): Likewise.
7554 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7555 f_language::collect_symbol_completion_matches.
7556 (f_language_data): Delete la_collect_symbol_completion_matches
7557 initializer.
7558 (f_language::collect_symbol_completion_matches) New member
7559 function, implementation from f_collect_symbol_completion_matches.
7560 * go-lang.c (go_language_data): Delete
7561 la_collect_symbol_completion_matches initializer.
7562 * language.c (unknown_language_data): Likewise.
7563 (auto_language_data): Likewise.
7564 * language.h (language_data): Delete
7565 la_collect_symbol_completion_matches field.
7566 (language_defn::collect_symbol_completion_matches): New member
7567 function.
7568 * m2-lang.c (m2_language_data): Delete
7569 la_collect_symbol_completion_matches initializer.
7570 * objc-lang.c (objc_language_data): Likewise.
7571 * opencl-lang.c (opencl_language_data): Likewise.
7572 * p-lang.c (pascal_language_data): Likewise.
7573 * rust-lang.c (rust_language_data): Likewise.
7574 * symtab.c (default_collect_symbol_completion_matches): Delete.
7575 (collect_symbol_completion_matches): Update call to
7576 collect_symbol_completion_matches.
7577 (collect_symbol_completion_matches_type): Likewise.
7578 * symtab.h (default_collect_symbol_completion_matches): Delete
7579 declaration.
7580
53fc67f8
AB
75812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7582
7583 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7584 (ada_language_data): Delete la_word_break_characters initializer.
7585 (ada_language::word_break_characters): New member function.
7586 * c-lang.c (c_language_data): Delete la_word_break_characters
7587 initializer.
7588 (cplus_language_data): Likewise.
7589 (asm_language_data): Likewise.
7590 (minimal_language_data): Likewise.
7591 * completer.c: Update global comment.
7592 (advance_to_expression_complete_word_point): Update call to
7593 word_break_characters.
7594 (complete_files_symbols): Likewise.
7595 (complete_line_internal_1): Likewise.
7596 (default_completer_handle_brkchars): Likewise.
7597 (skip_quoted_chars): Likewise.
7598 * d-lang.c (d_language_data): Delete la_word_break_characters
7599 initializer.
7600 * f-lang.c (f_word_break_characters): Delete.
7601 (f_language_data): Delete la_word_break_characters initializer.
7602 (f_language::word_break_characters): New member function.
7603 * go-lang.c (go_language_data): Delete la_word_break_characters
7604 initializer.
7605 * language.c (unknown_language_data): Likewise.
7606 (auto_language_data): Likewise.
7607 * language.h (default_word_break_characters): Move declaration to
7608 earlier in the file.
7609 (language_data): Delete la_word_break_characters field.
7610 (language_defn::word_break_characters): New member function.
7611 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7612 initializer.
7613 * objc-lang.c (objc_language_data): Likewise.
7614 * opencl-lang.c (opencl_language_data): Likewise.
7615 * p-lang.c (pascal_language_data): Likewise.
7616 * rust-lang.c (rust_language_data): Likewise.
7617
c9debfb9
AB
76182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7619
7620 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7621 (ada_language_data): Delete la_get_symbol_name_matcher
7622 initializer.
7623 (language_defn::get_symbol_name_matcher_inner): New member
7624 function.
7625 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7626 initializer.
7627 (cplus_language_data): Likewise.
7628 (cplus_language::get_symbol_name_matcher_inner): New member
7629 function.
7630 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7631 (minimal_language_data): Likewise.
7632 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7633 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7634 initializer.
7635 * dictionary.c (iter_match_first_hashed): Update call to
7636 get_symbol_name_matcher.
7637 (iter_match_next_hashed): Likewise.
7638 (iter_match_next_linear): Likewise.
7639 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7640 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7641 initializer.
7642 (f_language::get_symbol_name_matcher_inner): New member function.
7643 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7644 initializer.
7645 * language.c (default_symbol_name_matcher): Update header comment,
7646 make static.
7647 (language_defn::get_symbol_name_matcher): New definition.
7648 (language_defn::get_symbol_name_matcher_inner): Likewise.
7649 (get_symbol_name_matcher): Delete.
7650 (unknown_language_data): Delete la_get_symbol_name_matcher
7651 initializer.
7652 (auto_language_data): Likewise.
7653 * language.h (language_data): Delete la_get_symbol_name_matcher
7654 field.
7655 (language_defn::get_symbol_name_matcher): New member function.
7656 (language_defn::get_symbol_name_matcher_inner): Likewise.
7657 (default_symbol_name_matcher): Delete declaration.
7658 * linespec.c (find_methods): Update call to
7659 get_symbol_name_matcher.
7660 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7661 initializer.
7662 * minsyms.c (lookup_minimal_symbol): Update call to
7663 get_symbol_name_matcher.
7664 (iterate_over_minimal_symbols): Likewise.
7665 * objc-lang.c (objc_language_data): Delete
7666 la_get_symbol_name_matcher initializer.
7667 * opencl-lang.c (opencl_language_data): Likewise.
7668 * p-lang.c (pascal_language_data): Likewise.
7669 * psymtab.c (psymbol_name_matches): Update call to
7670 get_symbol_name_matcher.
7671 * rust-lang.c (rust_language_data): Delete
7672 la_get_symbol_name_matcher initializer.
7673 * symtab.c (symbol_matches_search_name): Update call to
7674 get_symbol_name_matcher.
7675 (compare_symbol_name): Likewise.
7676
9a49ad8c
AB
76772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7678
7679 * ada-lang.c (ada_language_data): Delete la_compute_program
7680 initializer.
7681 * c-lang.c (c_language_data): Likewise.
7682 (c_language::compute_program): New member function.
7683 (cplus_language_data): Delete la_compute_program initializer.
7684 (cplus_language::compute_program): New member function.
7685 (asm_language_data): Delete la_compute_program initializer.
7686 (minimal_language_data): Likewise.
7687 * c-lang.h (c_compute_program): Update comment.
7688 (cplus_compute_program): Likewise.
7689 * compile/compile-c-support.c (c_compute_program): Likewise.
7690 (cplus_compute_program): Likewise.
7691 * compile/compile.c (compile_to_object): Update call to
7692 la_compute_program.
7693 * d-lang.c (d_language_data): Delete la_compute_program
7694 initializer.
7695 * f-lang.c (f_language_data): Likewise.
7696 * go-lang.c (go_language_data): Likewise.
7697 * language.c (unknown_language_data): Likewise.
7698 (auto_language_data): Likewise.
7699 * language.h (language_data): Delete la_compute_program field.
7700 (language_defn::compute_program): New member function.
7701 * m2-lang.c (m2_language_data): Delete la_compute_program
7702 initializer.
7703 * objc-lang.c (objc_language_data): Likewise.
7704 * opencl-lang.c (opencl_language_data): Likewise.
7705 * p-lang.c (pascal_language_data): Likewise.
7706 * rust-lang.c (rust_language_data): Likewise.
7707
eff93b4d
AB
77082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7709
7710 * ada-lang.c (ada_language_data) Delete
7711 la_class_name_from_physname initializer.
7712 * c-lang.c (c_language_data): Likewise.
7713 (cplus_language_data): Likewise.
7714 (cplus_language::class_name_from_physname): New member function.
7715 (asm_language_data): Delete la_class_name_from_physname
7716 initializer.
7717 (minimal_language_data): Likewise.
7718 * d-lang.c (d_language_data): Likewise.
7719 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7720 method on language_defn class.
7721 (guess_full_die_structure_name): Likewise.
7722 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7723 initializer.
7724 * go-lang.c (go_language_data): Likewise.
7725 * language.c (language_class_name_from_physname): Delete.
7726 (unk_lang_class_name): Delete.
7727 (unknown_language_data): Delete la_class_name_from_physname
7728 initializer.
7729 (auto_language_data): Likewise.
7730 * language.h (language_data): Delete la_class_name_from_physname
7731 field.
7732 (language_defn::class_name_from_physname): New function.
7733 (language_class_name_from_physname): Delete declaration.
7734 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7735 initializer.
7736 * objc-lang.c (objc_language_data): Likewise.
7737 * opencl-lang.c (opencl_language_data): Likewise.
7738 * p-lang.c (pascal_language_data): Likewise.
7739 * rust-lang.c (rust_language_data): Likewise.
7740
de543742
TT
77412020-06-16 Tom Tromey <tom@tromey.com>
7742
7743 * tui/tui-data.h (STATUS_NAME): New macro.
7744 * tui/tui-layout.c (tui_remove_some_windows)
7745 (initialize_known_windows, tui_register_window)
7746 (tui_layout_split::remove_windows, initialize_layouts)
7747 (tui_new_layout_command): Don't use hard-coded window names.
7748
a350efd4
TT
77492020-06-16 Tom Tromey <tom@tromey.com>
7750
7751 PR tui/25348:
7752 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7753 tui_initialize_readline. Only run once. Call rl_initialize.
7754 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7755 tui_initialize_readline.
7756 * tui/tui-io.c (tui_setup_io): Call
7757 tui_ensure_readline_initialized.
7758 * tui/tui-interp.c (tui_interp::init): Update.
7759
39ec0490
TT
77602020-06-16 Tom Tromey <tom@tromey.com>
7761
7762 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7763 Also preserve the status window.
7764
d2d1ea20
TT
77652020-06-16 Tom Tromey <tom@tromey.com>
7766
7767 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7768 where m_window==nullptr.
7769
66920317
TT
77702020-06-15 Tom Tromey <tromey@adacore.com>
7771
7772 * windows-nat.c (windows_nat::handle_output_debug_string):
7773 Update.
7774 (windows_nat::handle_ms_vc_exception): Update.
7775 * target.h (target_read_string): Change API.
7776 * target.c (target_read_string): Change API.
7777 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7778 Update.
7779 * solib-frv.c (frv_current_sos): Update.
7780 * solib-dsbt.c (dsbt_current_sos): Update.
7781 * solib-darwin.c (darwin_current_sos): Update.
7782 * linux-thread-db.c (inferior_has_bug): Update.
7783 * expprint.c (print_subexp_standard): Update.
7784 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7785 (ada_exception_message_1): Update.
7786
a5d871dd
TT
77872020-06-15 Tom Tromey <tromey@adacore.com>
7788
7789 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7790
670e35fa
TT
77912020-06-15 Tom Tromey <tromey@adacore.com>
7792
7793 * valprint.c (read_string): Update comment.
7794 * target.c (MIN): Remove.
7795 (target_read_string): Rewrite.
7796
f5272a3b
TT
77972020-06-15 Tom Tromey <tromey@adacore.com>
7798
7799 * corefile.c (read_memory_string): Remove.
7800 * ada-valprint.c (ada_value_print_ptr): Update.
7801 * ada-lang.h (ada_tag_name): Change return type.
7802 * ada-lang.c (type_from_tag): Update.
7803 (ada_tag_name_from_tsd): Change return type. Use
7804 target_read_string.
7805 (ada_tag_name): Likewise.
7806 * gdbcore.h (read_memory_string): Don't declare.
7807
2c074f49
HD
78082020-06-14 Hannes Domani <ssbssa@yahoo.de>
7809
7810 * symtab.c (rbreak_command): Ignore Windows drive colon.
7811
6a17d503
SM
78122020-06-12 Simon Marchi <simon.marchi@efficios.com>
7813
7814 * NEWS: Mention removed GDBserver host support.
7815
453c733f
NC
78162020-06-12 Nelson Chu <nelson.chu@sifive.com>
7817
7818 * features/riscv/rebuild-csr-xml.sh: Updated.
7819
2b4e6a3f
TT
78202020-06-11 Tom Tromey <tom@tromey.com>
7821
7822 PR gdb/18318:
7823 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7824
4412332f
JG
78252020-06-09 Jonny Grant <jg@jguk.org>
78262020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7827
7828 * main.c (captured_main_1): Don't print new line after help.
7829 (print_gdb_help): add mailing list and IRC channel information
7830 to --help. Add new lines between items in the footer. Remove
7831 quotes around bug url.
7832
2f33032a
KS
78332020-06-11 Keith Seitz <keiths@redhat.com>
7834
7835 PR gdb/21356
7836 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7837 Resolve typedefs for type length calculations.
7838
7ab96794
TV
78392020-06-10 Tom de Vries <tdevries@suse.de>
7840
7841 PR ada/24713
7842 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7843 (write_psymbols): Enable .gdb_index for ada.
7844 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7845 ada.
7846
e5f3ece2
TV
78472020-06-10 Tom de Vries <tdevries@suse.de>
7848
7849 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7850 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7851 namei" instead of "const char *name" argument.
7852 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7853 dw2_symtab_iter_init.
7854
940da03e
SM
78552020-06-08 Simon Marchi <simon.marchi@efficios.com>
7856
7857 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7858 to use type::field and field::type instead.
7859
b6cdac4b
SM
78602020-06-08 Simon Marchi <simon.marchi@efficios.com>
7861
7862 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7863 to use field::type instead.
7864
5d14b6e5
SM
78652020-06-08 Simon Marchi <simon.marchi@efficios.com>
7866
7867 * gdbtypes.h (struct field) <type, set_type>: New methods.
7868 Rename `type` field to...
7869 <m_type>: ... this. Change references throughout to use type or
7870 set_type methods.
7871 (FIELD_TYPE): Use field::type. Change call sites that modify
7872 the field's type to use field::set_type instead.
7873
3d967001
SM
78742020-06-08 Simon Marchi <simon.marchi@efficios.com>
7875
7876 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7877 to use type::index_type instead.
7878
262abc0d
SM
78792020-06-08 Simon Marchi <simon.marchi@efficios.com>
7880
7881 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7882 methods.
7883 (TYPE_INDEX_TYPE): Use type::index_type.
7884 * gdbtypes.c (create_array_type_with_stride): Likewise.
7885
82836c92
TT
78862020-06-07 Tom Tromey <tom@tromey.com>
7887
7888 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7889 parameter.
7890 (generic_value_print): Update.
7891
940dace9
AB
78922020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7893
7894 Revert commit 982a38f60b0.
7895 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7896
982a38f6
AB
78972020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7898
7899 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7900 avoid use after free.
7901
82f06518
TV
79022020-06-05 Tom de Vries <tdevries@suse.de>
7903
7904 * NEWS: Fix typos.
7905
f8c41851
SM
79062020-06-04 Simon Marchi <simon.marchi@efficios.com>
7907
7908 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7909 the per_bfd object.
7910 (dwarf2_read_debug_names): Likewise.
7911 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7912 object when re-using a per_bfd object with an index.
7913
f9b5d5ea
TV
79142020-06-03 Tom de Vries <tdevries@suse.de>
7915
7916 PR symtab/26046
7917 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7918 children for C++.
7919 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7920 DW_TAG_subprogram.
7921
f6eee2d0
AB
79222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7923
7924 * ada-lang.c (ada_language_data): Delete skip_trampoline
7925 initializer.
7926 * c-lang.c (c_language_data): Likewise.
7927 (cplus_language_data): Likewise.
7928 (cplus_language::skip_trampoline): New member function.
7929 (asm_language_data): Delete skip_trampoline initializer.
7930 (minimal_language_data): Likewise.
7931 * d-lang.c (d_language_data): Likewise.
7932 * f-lang.c (f_language_data): Likewise.
7933 * go-lang.c (go_language_data): Likewise.
7934 * language.c (unk_lang_trampoline): Delete function.
7935 (skip_language_trampoline): Update.
7936 (unknown_language_data): Delete skip_trampoline initializer.
7937 (auto_language_data): Likewise.
7938 * language.h (language_data): Delete skip_trampoline field.
7939 (language_defn::skip_trampoline): New function.
7940 * m2-lang.c (m2_language_data): Delete skip_trampoline
7941 initializer.
7942 * objc-lang.c (objc_skip_trampoline): Delete function, move
7943 implementation to objc_language::skip_trampoline.
7944 (objc_language_data): Delete skip_trampoline initializer.
7945 (objc_language::skip_trampoline): New member function with
7946 implementation from objc_skip_trampoline.
7947 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7948 initializer.
7949 * p-lang.c (pascal_language_data): Likewise.
7950 * rust-lang.c (rust_language_data): Likewise.
7951
0a50df5d
AB
79522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7953
7954 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7955 (ada_language::demangle): New member function.
7956 * c-lang.c (c_language_data): Delete la_demangle initializer.
7957 (cplus_language_data): Delete la_demangle initializer.
7958 (cplus_language::demangle): New member function.
7959 (asm_language_data): Delete la_demangle initializer.
7960 (minimal_language_data): Delete la_demangle initializer.
7961 * d-lang.c (d_language_data): Delete la_demangle initializer.
7962 (d_language::demangle): New member function.
7963 * f-lang.c (f_language_data): Delete la_demangle initializer.
7964 (f_language::demangle): New member function.
7965 * go-lang.c (go_language_data): Delete la_demangle initializer.
7966 (go_language::demangle): New member function.
7967 * language.c (language_demangle): Update.
7968 (unk_lang_demangle): Delete.
7969 (unknown_language_data): Delete la_demangle initializer.
7970 (unknown_language::demangle): New member function.
7971 (auto_language_data): Delete la_demangle initializer.
7972 (auto_language::demangle): New member function.
7973 * language.h (language_data): Delete la_demangle field.
7974 (language_defn::demangle): New function.
7975 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7976 * objc-lang.c (objc_language_data): Delete la_demangle
7977 initializer.
7978 (objc_language::demangle): New member function.
7979 * opencl-lang.c (opencl_language_data): Delete la_demangle
7980 initializer.
7981 * p-lang.c (pascal_language_data): Likewise.
7982 * rust-lang.c (rust_language_data): Likewise.
7983 (rust_language::demangle): New member function.
7984
fbfb0a46
AB
79852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7986
7987 * ada-lang.c (ada_language_data): Delete la_print_type
7988 initializer.
7989 (ada_language::print_type): New member function.
7990 * c-lang.c (c_language_data): Delete la_print_type initializer.
7991 (c_language::print_type): New member function.
7992 (cplus_language_data): Delete la_print_type initializer.
7993 (cplus_language::print_type): New member function.
7994 (asm_language_data): Delete la_print_type initializer.
7995 (asm_language::print_type): New member function.
7996 (minimal_language_data): Delete la_print_type initializer.
7997 (minimal_language::print_type): New member function.
7998 * d-lang.c (d_language_data): Delete la_print_type initializer.
7999 (d_language::print_type): New member function.
8000 * f-lang.c (f_language_data): Delete la_print_type initializer.
8001 (f_language::print_type): New member function.
8002 * go-lang.c (go_language_data): Delete la_print_type initializer.
8003 (go_language::print_type): New member function.
8004 * language.c (unk_lang_print_type): Delete.
8005 (unknown_language_data): Delete la_print_type initializer.
8006 (unknown_language::print_type): New member function.
8007 (auto_language_data): Delete la_print_type initializer.
8008 (auto_language::print_type): New member function.
8009 * language.h (language_data): Delete la_print_type field.
8010 (language_defn::print_type): New function.
8011 (LA_PRINT_TYPE): Update.
8012 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8013 (m2_language::print_type): New member function.
8014 * objc-lang.c (objc_language_data): Delete la_print_type
8015 initializer.
8016 (objc_language::print_type): New member function.
8017 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8018 to opencl_language::print_type.
8019 (opencl_language_data): Delete la_print_type initializer.
8020 (opencl_language::print_type): New member function, implementation
8021 from opencl_print_type.
8022 * p-lang.c (pascal_language_data): Delete la_print_type
8023 initializer.
8024 (pascal_language::print_type): New member function.
8025 * rust-lang.c (rust_print_type): Delete, implementation moved to
8026 rust_language::print_type.
8027 (rust_language_data): Delete la_print_type initializer.
8028 (rust_language::print_type): New member function, implementation
8029 from rust_print_type.
8030
6f827019
AB
80312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8032
8033 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8034 implementation moves to...
8035 (ada_language::sniff_from_mangled_name): ...here. Update return
8036 type.
8037 (ada_language_data): Delete la_sniff_from_mangled_name
8038 initializer.
8039 * c-lang.c (c_language_data): Likewise.
8040 (cplus_language_data): Likewise.
8041 (cplus_language::sniff_from_mangled_name): New member function,
8042 implementation taken from gdb_sniff_from_mangled_name.
8043 (asm_language_data): Delete la_sniff_from_mangled_name
8044 initializer.
8045 (minimal_language_data): Likewise.
8046 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8047 implementation moves to cplus_language::sniff_from_mangled_name.
8048 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8049 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8050 moves to...
8051 (d_language::sniff_from_mangled_name): ...here.
8052 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8053 * f-lang.c (f_language_data): Likewise.
8054 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8055 moves to...
8056 (go_language::sniff_from_mangled_name): ...here.
8057 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8058 * language.c (language_sniff_from_mangled_name): Delete.
8059 (unknown_language_data): Delete la_sniff_from_mangled_name
8060 initializer.
8061 (auto_language_data): Likewise.
8062 * language.h (language_data): Delete la_sniff_from_mangled_name
8063 field.
8064 (language_defn::sniff_from_mangled_name): New function.
8065 (language_sniff_from_mangled_name): Delete declaration.
8066 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8067 field.
8068 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8069 implementation moves to...
8070 (objc_language::sniff_from_mangled_name): ...here.
8071 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8072 * opencl-lang.c (opencl_language_data): Likewise.
8073 * p-lang.c (pascal_language_data): Likewise.
8074 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8075 implementation moves to...
8076 (rust_language::sniff_from_mangled_name): ...here.
8077 (rust_language_data): Delete la_sniff_from_mangled_name
8078 initializer.
8079 * symtab.c (symbol_find_demangled_name): Call
8080 sniff_from_mangled_name member function.
8081
fb8006fd
AB
80822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8083
8084 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8085 initializer.
8086 * c-lang.c (c_language_data): Likewise.
8087 (cplus_language_data): Likewise.
8088 (cplus_language::search_name_hash): New member function.
8089 (asm_language_data): Delete la_search_name_hash initializer.
8090 (minimal_language_data): Likewise.
8091 * d-lang.c (d_language_data): Likewise.
8092 * dictionary.c (default_search_name_hash): Rename to...
8093 (language_defn::search_name_hash): ...this.
8094 * f-lang.c (f_language_data): Likewise.
8095 (f_language::search_name_hash): New member function.
8096 * go-lang.c (go_language_data): Delete la_search_name_hash
8097 initializer.
8098 * language.c (unknown_language_data): Likewise.
8099 (auto_language_data): Likewise.
8100 * language.h (struct language_data): Delete la_search_name_hash
8101 field.
8102 (language_defn::search_name_hash): Declare new member function.
8103 (default_search_name_hash): Delete declaration.
8104 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8105 initializer.
8106 * objc-lang.c (objc_language_data): Likewise.
8107 * opencl-lang.c (opencl_language_data): Likewise.
8108 * p-lang.c (pascal_language_data): Likewise.
8109 * rust-lang.c (rust_language_data): Likewise.
8110 * symtab.c (search_name_hash): Update call.
8111
8e25bafe
AB
81122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8113
8114 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8115 initializer.
8116 * c-lang.c (class compile_instance): Declare.
8117 (c_language_data): Delete la_get_compile_instance initializer.
8118 (c_language::get_compile_instance): New member function.
8119 (cplus_language_data): Delete la_get_compile_instance initializer.
8120 (cplus_language::get_compile_instance): New member function.
8121 (asm_language_data): Delete la_get_compile_instance initializer.
8122 (minimal_language_data): Likewise.
8123 * c-lang.h (c_get_compile_context): Update comment.
8124 (cplus_get_compile_context): Update comment.
8125 * compile/compile.c (compile_to_object): Update calls, don't rely
8126 on function pointer being NULL.
8127 * d-lang.c (d_language_data): Delete la_get_compile_instance
8128 initializer.
8129 * f-lang.c (f_language_data): Likewise.
8130 * go-lang.c (go_language_data): Likewise.
8131 * language.c (unknown_language_data): Likewise.
8132 (auto_language_data): Likewise.
8133 * language.h (language_data): Delete la_get_compile_instance field.
8134 (language_defn::get_compile_instance): New member function.
8135 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8136 initializer.
8137 * objc-lang.c (objc_language_data): Likewise.
8138 * opencl-lang.c (opencl_language_data): Likewise.
8139 * p-lang.c (pascal_language_data): Likewise.
8140 * rust-lang.c (rust_language_data): Likewise.
8141
4009ee92
AB
81422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8143
8144 * ada-lang.c (ada_add_all_symbols): Update comment.
8145 (ada_iterate_over_symbols): Delete, move implementation to...
8146 (ada_language::iterate_over_symbols): ...here, a new member
8147 function, rewrite to use range based for loop.
8148 (ada_language_data): Delete la_iterate_over_symbols initializer.
8149 * c-lang.c (c_language_data): Likewise.
8150 (cplus_language_data): Likewise.
8151 (asm_language_data): Likewise.
8152 (minimal_language_data): Likewise.
8153 * d-lang.c (d_language_data): Likewise.
8154 * f-lang.c (f_language_data): Likewise.
8155 * go-lang.c (go_language_data): Likewise.
8156 * language.c (unknown_language_data): Likewise.
8157 (auto_language_data): Likewise.
8158 * language.h (language_data): Delete la_iterate_over_symbols field.
8159 (language_defn::iterate_over_symbols): New member function.
8160 (LA_ITERATE_OVER_SYMBOLS): Update.
8161 * linespec.c (iterate_over_all_matching_symtabs): Update.
8162 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8163 initializer.
8164 * objc-lang.c (objc_language_data): Likewise.
8165 * opencl-lang.c (opencl_language_data): Likewise.
8166 * p-lang.c (pascal_language_data): Likewise.
8167 * rust-lang.c (rust_language_data): Likewise.
8168
54f4ca46
AB
81692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8170
8171 * ada-lang.c (ada_language_data): Delete
8172 la_lookup_transparent_type initializer.
8173 * c-lang.c (c_language_data): Likewise.
8174 (cplus_language_data): Likewise.
8175 (cplus_language::lookup_transparent_type): New member function.
8176 (asm_language_data): Delete la_lookup_transparent_type
8177 initializer.
8178 (minimal_language_data): Likewise.
8179 * d-lang.c (d_language_data): Likewise.
8180 * f-lang.c (f_language_data): Likewise.
8181 * go-lang.c (go_language_data): Likewise.
8182 * language.c (unknown_language_data): Likewise.
8183 (auto_language_data): Likewise.
8184 * language.h (struct language_data): Delete
8185 la_lookup_transparent_type field.
8186 (language_defn::lookup_transparent_type): New member function.
8187 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8188 initializer.
8189 * objc-lang.c (objc_language_data): Likewise.
8190 * opencl-lang.c (opencl_language_data): Likewise.
8191 * p-lang.c (pascal_language_data): Likewise.
8192 * rust-lang.c (rust_language_data): Likewise.
8193 * symtab.c (symbol_matches_domain): Update call.
8194
1fb314aa
AB
81952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8196
8197 * ada-lang.c (ada_language_arch_info): Delete function, move
8198 implementation to...
8199 (ada_language::language_arch_info): ...here, a new member
8200 function.
8201 (ada_language_data): Delete la_language_arch_info.
8202 * c-lang.c (c_language_data): Likewise.
8203 (c_language::language_arch_info): New member function.
8204 (cplus_language_arch_info): Delete function, move
8205 implementation to...
8206 (cplus_language::language_arch_info): ...here, a new member
8207 function.
8208 (cplus_language_data): Delete la_language_arch_info.
8209 (asm_language_data): Likewise.
8210 (asm_language::language_arch_info): New member function.
8211 (minimal_language_data): Delete la_language_arch_info.
8212 (minimal_language::language_arch_info): New member function.
8213 * d-lang.c (d_language_arch_info): Delete function, move
8214 implementation to...
8215 (d_language::language_arch_info): ...here, a new member
8216 function.
8217 (d_language_data): Delete la_language_arch_info.
8218 * f-lang.c (f_language_arch_info): Delete function, move
8219 implementation to...
8220 (f_language::language_arch_info): ...here, a new member
8221 function.
8222 (f_language_data): Delete la_language_arch_info.
8223 * go-lang.c (go_language_arch_info): Delete function, move
8224 implementation to...
8225 (go_language::language_arch_info): ...here, a new member
8226 function.
8227 (go_language_data): Delete la_language_arch_info.
8228 * language.c (unknown_language_data): Likewise.
8229 (unknown_language::language_arch_info): New member function.
8230 (auto_language_data): Delete la_language_arch_info.
8231 (auto_language::language_arch_info): New member function.
8232 (language_gdbarch_post_init): Update call to
8233 la_language_arch_info.
8234 * language.h (language_data): Delete la_language_arch_info
8235 function pointer.
8236 (language_defn::language_arch_info): New function.
8237 * m2-lang.c (m2_language_arch_info): Delete function, move
8238 implementation to...
8239 (m2_language::language_arch_info): ...here, a new member
8240 function.
8241 (m2_language_data): Delete la_language_arch_info.
8242 * objc-lang.c (objc_language_arch_info): Delete function, move
8243 implementation to...
8244 (objc_language::language_arch_info): ...here, a new member
8245 function.
8246 (objc_language_data): Delete la_language_arch_info.
8247 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8248 implementation to...
8249 (opencl_language::language_arch_info): ...here, a new member
8250 function.
8251 (opencl_language_data): Delete la_language_arch_info.
8252 * p-lang.c (pascal_language_arch_info): Delete function, move
8253 implementation to...
8254 (pascal_language::language_arch_info): ...here, a new member
8255 function.
8256 (pascal_language_data): Delete la_language_arch_info.
8257 * rust-lang.c (rust_language_arch_info): Delete function, move
8258 implementation to...
8259 (rust_language::language_arch_info): ...here, a new member
8260 function.
8261 (rust_language_data): Delete la_language_arch_info.
8262
48448202
AB
82632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8264
8265 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8266 initializer.
8267 * c-lang.c (c_language_data): Likewise.
8268 (cplus_language_data): Likewise.
8269 (cplus_language::pass_by_reference_info): New method.
8270 (asm_language_data): Delete la_pass_by_reference initializer.
8271 (minimal_language_data): Likewise.
8272 * cp-abi.c (cp_pass_by_reference): Remove use of
8273 default_pass_by_reference.
8274 * d-lang.c (d_language_data): Likewise.
8275 * f-lang.c (f_language_data): Likewise.
8276 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8277 default_pass_by_reference.
8278 * go-lang.c (go_language_data): Likewise.
8279 * language.c (language_pass_by_reference): Update.
8280 (default_pass_by_reference): Delete.
8281 (unknown_language_data): Delete la_pass_by_reference
8282 initializer.
8283 (auto_language_data): Likewise.
8284 * language.h (struct language_data): Delete la_pass_by_reference
8285 field.
8286 (language_defn::pass_by_reference_info): New member function.
8287 (default_pass_by_reference): Delete declaration.
8288 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8289 initializer.
8290 * objc-lang.c (objc_language_data): Likewise.
8291 * opencl-lang.c (opencl_language_data): Likewise.
8292 * p-lang.c (pascal_language_data): Likewise.
8293 * rust-lang.c (rust_language_data): Likewise.
8294
15e5fd35
AB
82952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8296
8297 * ada-lang.c (ada_read_var_value): Delete function, move
8298 implementation to...
8299 (ada_language::read_var_value): ...here.
8300 (ada_language_data): Delete la_read_var_value initializer.
8301 * c-lang.c (c_language_data): Likewise.
8302 (cplus_language_data): Likewise.
8303 (minimal_language_data): Likewise.
8304 * d-lang.c (d_language_data): Likewise.
8305 * f-lang.c (f_language_data): Likewise.
8306 * findvar.c (default_read_var_value): Rename to...
8307 (language_defn::read_var_value): ...this.
8308 * findvar.c (read_var_value): Update header comment, and change to
8309 call member function instead of function pointer.
8310 * go-lang.c (go_language_data): Likewise.
8311 * language.c (unknown_language_data): Delete la_read_var_value
8312 initializer.
8313 (auto_language_data): Likewise.
8314 * language.h (struct language_data): Delete la_read_var_value
8315 field.
8316 (language_defn::read_var_value): New member function.
8317 (default_read_var_value): Delete declaration.
8318 * m2-lang.c (m2_language_data): Delete la_read_var_value
8319 initializer.
8320 * objc-lang.c (objc_language_data): Likewise.
8321 * opencl-lang.c (opencl_language_data): Likewise.
8322 * p-lang.c (pascal_language_data): Likewise.
8323 * rust-lang.c (rust_language_data): Likewise.
8324 * value.h (default_read_var_value): Delete declaration.
8325
5bd40f2a
AB
83262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8327
8328 * ada-lang.c (ada_print_array_index): Delete function, move
8329 implementation to...
8330 (ada_language::print_array_index): ...here.
8331 (ada_language_data): Delete la_print_array_index initializer.
8332 * c-lang.c (c_language_data): Likewise.
8333 (cplus_language_data): Likewise.
8334 (minimal_language_data): Likewise.
8335 * d-lang.c (d_language_data): Likewise.
8336 * f-lang.c (f_language_data): Likewise.
8337 * go-lang.c (go_language_data): Likewise.
8338 * language.c (default_print_array_index): Delete function, move
8339 implementation to...
8340 (language_defn::print_array_index): ...here.
8341 (unknown_language_data): Delete la_print_array_index initializer.
8342 (auto_language_data): Likewise.
8343 * language.h (struct language_data): Delete la_print_array_index
8344 field.
8345 (language_defn::print_array_index): New member function.
8346 (LA_PRINT_ARRAY_INDEX): Update.
8347 (default_print_array_index): Delete declaration.
8348 * m2-lang.c (m2_language_data): Delete la_print_array_index
8349 initializer.
8350 * objc-lang.c (objc_language_data): Likewise.
8351 * opencl-lang.c (opencl_language_data): Likewise.
8352 * p-lang.c (pascal_language_data): Likewise.
8353 * rust-lang.c (rust_language_data): Likewise.
8354
0874fd07
AB
83552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8356
8357 * gdb/ada-lang.c (ada_language_defn): Convert to...
8358 (ada_language_data): ...this.
8359 (class ada_language): New class.
8360 (ada_language_defn): New static global.
8361 * gdb/c-lang.c (c_language_defn): Convert to...
8362 (c_language_data): ...this.
8363 (class c_language): New class.
8364 (c_language_defn): New static global.
8365 (cplus_language_defn): Convert to...
8366 (cplus_language_data): ...this.
8367 (class cplus_language): New class.
8368 (cplus_language_defn): New static global.
8369 (asm_language_defn): Convert to...
8370 (asm_language_data): ...this.
8371 (class asm_language): New class.
8372 (asm_language_defn): New static global.
8373 (minimal_language_defn): Convert to...
8374 (minimal_language_data): ...this.
8375 (class minimal_language): New class.
8376 (minimal_language_defn): New static global.
8377 * gdb/d-lang.c (d_language_defn): Convert to...
8378 (d_language_data): ...this.
8379 (class d_language): New class.
8380 (d_language_defn): New static global.
8381 * gdb/f-lang.c (f_language_defn): Convert to...
8382 (f_language_data): ...this.
8383 (class f_language): New class.
8384 (f_language_defn): New static global.
8385 * gdb/go-lang.c (go_language_defn): Convert to...
8386 (go_language_data): ...this.
8387 (class go_language): New class.
8388 (go_language_defn): New static global.
8389 * gdb/language.c (unknown_language_defn): Remove declaration.
8390 (current_language): Initialize to nullptr, real initialization is
8391 moved to _initialize_language.
8392 (languages): Delete global.
8393 (language_defn::languages): Define.
8394 (set_language_command): Use language_defn::languages.
8395 (set_language): Likewise.
8396 (range_error): Likewise.
8397 (language_enum): Likewise.
8398 (language_def): Likewise.
8399 (add_set_language_command): Use language_def::languages for the
8400 language list, and language_def to lookup language pointers.
8401 (skip_language_trampoline): Use language_defn::languages.
8402 (unknown_language_defn): Convert to...
8403 (unknown_language_data): ...this.
8404 (class unknown_language): New class.
8405 (unknown_language_defn): New static global.
8406 (auto_language_defn): Convert to...
8407 (auto_language_data): ...this.
8408 (class auto_language): New class.
8409 (auto_language_defn): New static global.
8410 (language_gdbarch_post_init): Use language_defn::languages.
8411 (_initialize_language): Initialize current_language.
8412 * gdb/language.h (struct language_defn): Rename to...
8413 (struct language_data): ...this.
8414 (struct language_defn): New.
8415 (auto_language_defn): Delete.
8416 (unknown_language_defn): Delete.
8417 (minimal_language_defn): Delete.
8418 (ada_language_defn): Delete.
8419 (asm_language_defn): Delete.
8420 (c_language_defn): Delete.
8421 (cplus_language_defn): Delete.
8422 (d_language_defn): Delete.
8423 (f_language_defn): Delete.
8424 (go_language_defn): Delete.
8425 (m2_language_defn): Delete.
8426 (objc_language_defn): Delete.
8427 (opencl_language_defn): Delete.
8428 (pascal_language_defn): Delete.
8429 (rust_language_defn): Delete.
8430 * gdb/m2-lang.c (m2_language_defn): Convert to...
8431 (m2_language_data): ...this.
8432 (class m2_language): New class.
8433 (m2_language_defn): New static global.
8434 * gdb/objc-lang.c (objc_language_defn): Convert to...
8435 (objc_language_data): ...this.
8436 (class objc_language): New class.
8437 (objc_language_defn): New static global.
8438 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8439 (opencl_language_data): ...this.
8440 (class opencl_language): New class.
8441 (opencl_language_defn): New static global.
8442 * gdb/p-lang.c (pascal_language_defn): Convert to...
8443 (pascal_language_data): ...this.
8444 (class pascal_language): New class.
8445 (pascal_language_defn): New static global.
8446 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8447 language pointer, update comment format.
8448 * gdb/rust-lang.c (rust_language_defn): Convert to...
8449 (rust_language_data): ...this.
8450 (class rust_language): New class.
8451 (rust_language_defn): New static global.
8452
1313c56e
AB
84532020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8454
8455 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8456 member variable.
8457 <m_stmt_at_address>: New member variable.
8458 (lnp_state_machine::record_line): Don't record some lines, update
8459 tracking of is_stmt at the same address.
8460 (lnp_state_machine::lnp_state_machine): Initialise new member
8461 variables.
8462
b7ed9f3d
ST
84632020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8464
8465 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8466 "-include gnu-nat-mig.h".
8467 * gnu-nat-mig.h: New file.
8468 * gnu-nat.c: Include "gnu-nat-mig.h".
8469 (exc_server, msg_reply_server, notify_server,
8470 process_reply_server): Remove declarations.
8471
14a8ad62
ST
84722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8473
8474 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8475 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8476 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8477 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8478 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8479 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8480 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8481 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8482 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8483 to gnu_nat_target class.
8484 * gnu-nat.c: Likewise.
8485 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8486 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8487 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8488 object.
8489 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8490 instead of `gnu_target'.
8491
0af5e106
ST
84922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8493
8494 * i386-gnu-tdep.c: Include "gdbcore.h"
8495 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8496 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8497 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8498 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8499 i386_gnu_sigcontext_addr): New functions
8500 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8501 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8502 tdep.
8503
078f2fc9
ST
85042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8505
8506 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8507 before fork_inferior call. Avoid calling it if target_is_pushed returns
8508 true.
8509
53dff92c
ST
85102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8511
8512 * gnu-nat.h (gnu_target): New variable declaration.
8513 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8514 gnu_target.
8515 * gnu-nat.c (gnu_target): New variable.
8516 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8517 add_thread_silent, and add_thread calls.
8518 (gnu_nat_target::create_inferior): Pass gnu_target to
8519 add_thread_silent, thread_change_ptid call.
8520 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8521 call.
8522
5a8b8627
ST
85232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8524
8525 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8526 (gnu_nat_target::find_memory_regions): Remove unused
8527 `old_address' variable.
8528
366f550a
ST
85292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8530
8531 * gnu-nat.c: Include "gdbarch.h".
8532
f14871bf
ST
85332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8534
8535 * reply_mig_hack.awk (Error return): Cast function through
8536 void *, to bypass compiler function call check.
8537
c6887cfb
ST
85382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8539
8540 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8541 $(srcdir)/reply_mig_hack.awk.
8542
6930bffe
ST
85432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8544
8545 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8546
112c22ed
JG
85472020-05-30 Jonny Grant <jg@jguk.org>
8548
8549 * configure.ac (ACX_BUGURL): change bug URL to https.
8550
f68f85b5
PA
85512020-05-30 Pedro Alves <palves@redhat.com>
8552
8553 * cp-support.c (replace_typedefs_template): New.
8554 (replace_typedefs_qualified_name): Handle
8555 DEMANGLE_COMPONENT_TEMPLATE.
8556
976ca316
SM
85572020-05-29 Simon Marchi <simon.marchi@efficios.com>
8558
8559 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8560 dwarf2/index-cache.h, dwarf2/index-write.c,
8561 dwarf2/index-write.h, dwarf2/line-header.c,
8562 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8563 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8564 variables and fields from `dwarf2_per_objfile` to just
8565 `per_objfile` throughout.
8566
989ade05
SM
85672020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8568
8569 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8570 <push_dwarf_reg_entry_value>: Add comment.
8571
c47bae85
KB
85722020-05-28 Kevin Buettner <kevinb@redhat.com>
8573 Keith Seitz <keiths@redhat.com>
8574
8575 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8576 instead of PyEval_ReleaseLock.
8577 (class gdbpy_gil): Move to earlier in file.
8578 (finalize_python): Set gdb_python_initialized.
8579 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8580 when not initialized.
8581
44486dcf
SM
85822020-05-28 Simon Marchi <simon.marchi@efficios.com>
8583
8584 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8585 <push_dwarf_reg_entry_value>: Remove assert. Override
8586 per_objfile with caller_per_objfile.
8587
f030440d
TV
85882020-05-28 Tom de Vries <tdevries@suse.de>
8589
8590 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8591 PR gold/15646 workaround to symbol kind "type".
8592
f0fbb768
TT
85932020-05-27 Tom Tromey <tromey@adacore.com>
8594
8595 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8596
af0b2a3e
TT
85972020-05-27 Tom Tromey <tromey@adacore.com>
8598
8599 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8600 Use htab_find_with_hash.
8601 <add_abbrev>: Remove "abbrev_number" parameter.
8602 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8603 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8604 (hash_abbrev): Add comment.
8605 (abbrev_table::lookup_abbrev): Move to header file.
8606 (abbrev_table::read): Update.
8607
7d00ffec
TT
86082020-05-27 Tom Tromey <tromey@adacore.com>
8609
8610 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8611 method.
8612 <canonical_name>: New member.
8613 <raw_name>: Rename from "name".
8614 (partial_die_info): Initialize canonical_name.
8615 (scan_partial_symbols): Check raw_name.
8616 (partial_die_parent_scope, partial_die_full_name)
8617 (add_partial_symbol, add_partial_subprogram)
8618 (add_partial_enumeration, load_partial_dies): Use "name" method.
8619 (partial_die_info::name): New method.
8620 (partial_die_info::read, guess_partial_die_structure_name)
8621 (partial_die_info::fixup): Update.
8622
697bba18
TT
86232020-05-27 Tom Tromey <tromey@adacore.com>
8624
8625 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8626 <get_ref_die_offset>: Inline.
8627 <get_ref_die_offset_complaint>: New method.
8628 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8629 (attribute::get_ref_die_offset_complaint): Rename from
8630 get_ref_die_offset. Just issue complaint.
8631
c17ace43
HD
86322020-05-27 Hannes Domani <ssbssa@yahoo.de>
8633
8634 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8635
96445f0b
HD
86362020-05-27 Hannes Domani <ssbssa@yahoo.de>
8637
8638 * exec.c (exec_file_attach): Use errno value of first openp failure.
8639
ac637ec3
HD
86402020-05-27 Hannes Domani <ssbssa@yahoo.de>
8641
8642 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8643 Don't close thread handle.
8644
17ee85fc
TT
86452020-05-27 Tom Tromey <tom@tromey.com>
8646 Simon Marchi <simon.marchi@efficios.com>
8647
8648 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8649 shared_ptr.
8650 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8651 member.
8652 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8653 dwarf2_per_bfd_objfile_data_key>: New globals.
8654 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8655 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8656 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8657 shared.
8658 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8659 short-circuit when sharing.
8660 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8661 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8662
39b16f87
SM
86632020-05-27 Simon Marchi <simon.marchi@efficios.com>
8664
8665 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8666 to...
8667 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8668 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8669
fcf23d5b
SM
86702020-05-27 Simon Marchi <simon.marchi@efficios.com>
8671
8672 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8673 build_name_components, find_name_components_bounds>:
8674 Add per_objfile parameter.
8675 (struct mapped_index) <symbol_name_at>: Likewise.
8676 (struct mapped_debug_names): Remove constructor.
8677 <dwarf2_per_objfile>: Remove field.
8678 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8679 (mapped_index_base::find_name_components_bounds,
8680 mapped_index_base::build_name_components,
8681 dw2_expand_symtabs_matching_symbol): Likewise.
8682 (class mock_mapped_index) <symbol_name_at>: Likewise.
8683 (check_match): Likewise.
8684 (check_find_bounds_finds): Likewise.
8685 (test_mapped_index_find_name_component_bounds): Update.
8686 (CHECK_MATCH): Update.
8687 (dw2_expand_symtabs_matching): Update.
8688 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8689 per_objfile parameter.
8690 <find_vec_in_debug_names>: Likewise.
8691 <m_per_objfile>: New field.
8692 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8693 parameter.
8694 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8695 (dw2_debug_names_iterator::next): Update.
8696 (dw2_debug_names_lookup_symbol): Update.
8697 (dw2_debug_names_expand_symtabs_for_function): Update.
8698 (dw2_debug_names_map_matching_symbols): Update.
8699 (dw2_debug_names_expand_symtabs_matching): Update.
8700 (dwarf2_read_debug_names): Update.
8701
7188ed02
SM
87022020-05-27 Simon Marchi <simon.marchi@efficios.com>
8703
8704 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8705 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8706 move to dwarf2_per_objfile.
8707 <read_in_chain>: Remove.
8708 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8709 remove_all_cus, age_comp_units>: New methods.
8710 <m_dwarf2_cus>: New member.
8711 (struct dwarf2_per_cu_data) <cu>: Remove.
8712 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8713 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8714 moved to methods of dwarf2_per_objfile.
8715 (dwarf2_clear_marks): Remove.
8716 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8717 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8718 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8719 (dwarf2_per_objfile::remove_all_cus): New.
8720 (class free_cached_comp_units) <~free_cached_comp_units>:
8721 Update.
8722 (load_cu): Update.
8723 (dw2_do_instantiate_symtab): Adjust.
8724 (fill_in_sig_entry_from_dwo_entry): Adjust.
8725 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8726 (cutu_reader::cutu_reader): Likewise.
8727 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8728 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8729 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8730 and dwarf2_per_objfile::age_comp_units.
8731 (load_partial_comp_unit): Update.
8732 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8733 (process_queue): Likewise.
8734 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8735 backlink.
8736 (dwarf2_read_addr_index): Likewise.
8737 (follow_die_offset): Likewise.
8738 (dwarf2_fetch_die_loc_sect_off): Likewise.
8739 (dwarf2_fetch_constant_bytes): Likewise.
8740 (dwarf2_fetch_die_type_sect_off): Likewise.
8741 (follow_die_sig_1): Likewise.
8742 (load_full_type_unit): Likewise.
8743 (read_signatured_type): Likewise.
8744 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8745 (dwarf2_cu::~dwarf2_cu): Remove.
8746 (dwarf2_per_objfile::get_cu): New.
8747 (dwarf2_per_objfile::set_cu): New.
8748 (age_cached_comp_units): Rename to...
8749 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8750 to std::unordered_map.
8751 (free_one_cached_comp_unit): Rename to...
8752 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8753 to std::unordered_map.
8754 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8755 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8756 a dwarf2_per_objfile in data.
8757 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8758 (dwarf2_clear_marks): Remove.
8759
2e671100
SM
87602020-05-27 Simon Marchi <simon.marchi@efficios.com>
8761
8762 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8763 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8764 (init_tu_and_read_dwo_dies): Likewise.
8765 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8766 (cutu_reader::cutu_reader): Likewise.
8767 (load_partial_comp_unit): Likewise.
8768 (process_psymtab_comp_unit): Update.
8769 (build_type_psymtabs_1): Update.
8770 (process_skeletonless_type_unit): Update.
8771 (load_full_comp_unit): Update.
8772 (find_partial_die): Update.
8773 (dwarf2_read_addr_index): Update.
8774 (read_signatured_type): Update.
8775
2e6a9f79
SM
87762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8777
8778 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8779 m_header_read_in>: New fields.
8780 <get_header>: New method.
8781 * dwarf2/read.c (per_cu_header_read_in): Remove.
8782 (dwarf2_per_cu_data::get_header): New.
8783 (dwarf2_per_cu_data::addr_size): Update.
8784 (dwarf2_per_cu_data::offset_size): Update.
8785 (dwarf2_per_cu_data::ref_addr_size): Update.
8786
1b555f17
SM
87872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8788
8789 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8790 (dw2_do_instantiate_symtab): Update.
8791 (queue_and_load_all_dwo_tus): Change parameter from
8792 dwarf2_per_cu_data to dwarf2_cu.
8793 (dwarf2_fetch_die_loc_sect_off): Update.
8794 (dwarf2_fetch_constant_bytes): Update.
8795 (dwarf2_fetch_die_type_sect_off): Update.
8796
8fc0b21d
SM
87972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8798
8799 * dwarf2/read.c (process_full_comp_unit,
8800 process_full_type_unit): Remove per_cu, per_objfile paramters.
8801 Add dwarf2_cu parameter.
8802 (process_queue): Update.
8803
168c9250
SM
88042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8805
8806 * dwarf2/read.c (create_cu_from_index_list): Replace
8807 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8808 (create_cus_from_index_list): Likewise.
8809 (create_cus_from_index): Likewise.
8810 (create_signatured_type_table_from_index): Likewise.
8811 (create_cus_from_debug_names_list): Likewise.
8812 (create_cus_from_debug_names): Likewise.
8813 (dwarf2_read_gdb_index): Update.
8814 (dwarf2_read_debug_names): Update.
8815
e286671b
TT
88162020-05-27 Tom Tromey <tom@tromey.com>
8817 Simon Marchi <simon.marchi@efficios.com>
8818
8819 * dwarf2/read.h (struct dwarf2_per_objfile)
8820 <get_type_for_signatured_type, set_type_for_signatured_type>:
8821 New methods.
8822 <m_type_map>: New member.
8823 (struct signatured_type) <type>: Remove.
8824 * dwarf2/read.c
8825 (dwarf2_per_objfile::get_type_for_signatured_type,
8826 dwarf2_per_objfile::set_type_for_signatured_type): New.
8827 (get_signatured_type): Use new methods.
8828
8adb8487
TT
88292020-05-27 Tom Tromey <tom@tromey.com>
8830 Simon Marchi <simon.marchi@efficios.com>
8831
8832 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8833 (struct dwarf2_per_objfile) <type_units>: New member.
8834 <get_type_unit_group_unshareable>: New method.
8835 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8836 num_symtabs, symtabs>: Remove; move to
8837 type_unit_group_unshareable.
8838 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8839 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8840 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8841
127bbf4b
SM
88422020-05-27 Simon Marchi <simon.marchi@efficios.com>
8843
8844 * dwarf2/read.h (struct dwarf2_per_cu_data):
8845 <dwarf2_per_objfile>: Remove.
8846 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8847 dwarf2_per_objfile.
8848 (create_signatured_type_table_from_index): Likewise.
8849 (create_signatured_type_table_from_debug_names): Likewise.
8850 (create_debug_type_hash_table): Likewise.
8851 (fill_in_sig_entry_from_dwo_entry): Likewise.
8852 (create_type_unit_group): Likewise.
8853 (read_comp_units_from_section): Likewise.
8854 (create_cus_hash_table): Likewise.
8855
f6e649dd
SM
88562020-05-27 Simon Marchi <simon.marchi@efficios.com>
8857
8858 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8859 dwarf2_per_cu_data::dwarf2_per_objfile.
8860 (compute_compunit_symtab_includes): Likewise.
8861 (dwarf2_cu::start_symtab): Likewise.
8862
aa66c379
SM
88632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8864
8865 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8866 parameter.
8867 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8868 (read_namespace_alias): Update.
8869 (lookup_die_type): Update.
8870 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8871 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8872 Update.
8873 (disassemble_dwarf_expression): Update.
8874
120ce1b5
SM
88752020-05-27 Simon Marchi <simon.marchi@efficios.com>
8876
8877 * dwarf2/read.h (struct dwarf2_queue_item): Add
8878 dwarf2_per_objfile parameter, assign new parameter.
8879 <per_objfile>: New field.
8880 * dwarf2/read.c (free_one_cached_comp_unit): Add
8881 dwarf2_per_objfile parameter.
8882 (queue_comp_unit): Likewise.
8883 (dw2_do_instantiate_symtab): Update.
8884 (process_psymtab_comp_unit): Update.
8885 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8886 (process_imported_unit_die): Update.
8887 (queue_and_load_dwo_tu): Update.
8888 (follow_die_offset): Update.
8889 (follow_die_sig_1): Update.
8890
9f47c707
SM
88912020-05-27 Simon Marchi <simon.marchi@efficios.com>
8892
8893 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8894 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8895 (read_call_site_scope): Assign per_objfile.
8896 (dwarf2_per_cu_data::objfile): Remove.
8897 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8898 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8899 dwarf2_per_objfile parameter.
8900 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8901 dwarf2_per_objfile parameter.
8902 (dwarf_expr_reg_to_entry_parameter): Add output
8903 dwarf2_per_objfile parameter.
8904 (locexpr_get_frame_base): Update.
8905 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8906 <push_dwarf_reg_entry_value>: Update.
8907 <call_site_to_target_addr>: Update.
8908 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8909 parameter.
8910 (value_of_dwarf_reg_entry): Update.
8911 (rw_pieced_value): Update.
8912 (indirect_synthetic_pointer): Update.
8913 (dwarf2_evaluate_property): Update.
8914 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8915 parameter.
8916 (locexpr_read_variable): Update.
8917 (locexpr_get_symbol_read_needs): Update.
8918 (loclist_read_variable): Update.
8919
14095eb3
SM
89202020-05-27 Simon Marchi <simon.marchi@efficios.com>
8921
8922 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8923 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8924 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8925 parameter.
8926 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8927 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8928 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8929 parameter.
8930 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8931 sect_variable_value): Add dwarf2_per_objfile parameter.
8932 (class dwarf_evaluate_loc_desc) <dwarf_call,
8933 dwarf_variable_value>: Update.
8934 (fetch_const_value_from_synthetic_pointer): Add
8935 dwarf2_per_objfile parameter.
8936 (fetch_const_value_from_synthetic_pointer): Update.
8937 (coerced_pieced_ref): Update.
8938 (class symbol_needs_eval_context) <dwarf_call,
8939 dwarf_variable_value>: Update.
8940 (dwarf2_compile_expr_to_ax): Update.
8941
3c3cd3d4
SM
89422020-05-27 Simon Marchi <simon.marchi@efficios.com>
8943
8944 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8945 parameter.
8946 (dwarf2_evaluate_loc_desc_full): Update.
8947
82ca3f51
SM
89482020-05-27 Simon Marchi <simon.marchi@efficios.com>
8949
8950 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8951 parameter.
8952 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8953 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8954 dwarf2_per_objfile parameter.
8955 (decode_debug_loc_dwo_addresses): Likewise.
8956 (dwarf2_find_location_expression): Update.
8957 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8958 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8959 parameter.
8960 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8961 parameter.
8962 (locexpr_describe_location_1): Likewise.
8963 (locexpr_describe_location): Update.
8964
4b167ea1
SM
89652020-05-27 Simon Marchi <simon.marchi@efficios.com>
8966
8967 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8968 Remove.
8969 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8970 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8971 (dwarf2_compile_property_to_c): Update.
8972 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8973 use text offset from objfile.
8974 (locexpr_tracepoint_var_ref): Update.
8975 (locexpr_generate_c_location): Update.
8976 (loclist_describe_location): Update.
8977 (loclist_tracepoint_var_ref): Update.
8978 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8979 dwarf2_per_objfile parameter.
8980 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8981 use text offset from objfile.
8982 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8983
89b07335
SM
89842020-05-27 Simon Marchi <simon.marchi@efficios.com>
8985
8986 * dwarf2/expr.h (struct dwarf_expr_context)
8987 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8988 <offset>: Remove.
8989 <per_objfile>: New member.
8990 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8991 dwarf2_per_objfile parameter. Don't set offset, set
8992 per_objfile.
8993 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8994 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8995 a dwarf2_per_objfile object instead of an offset.
8996 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8997 constructor.
8998 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8999 to dwarf2_expr_executor constructor. Don't set offset.
9000 (dwarf2_fetch_cfa_info): Update.
9001 (struct dwarf2_frame_cache) <text_offset>: Remove.
9002 <per_objfile>: New field.
9003 (dwarf2_frame_cache): Update.
9004 (dwarf2_frame_prev_register): Update.
9005 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9006 <dwarf_evaluate_loc_desc>: Add constructor.
9007 (dwarf2_evaluate_loc_desc_full): Update.
9008 (dwarf2_locexpr_baton_eval): Update.
9009 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9010 Add constructor.
9011 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9012
293e7e51
SM
90132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9014
9015 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9016 addr_sized_int_type>: Move to dwarf2_cu.
9017 <int_type>: Move to dwarf2_per_objfile.
9018 (struct dwarf2_per_objfile) <int_type>: Move here.
9019 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9020 addr_sized_int_type>: Move here.
9021 (read_func_scope): Update.
9022 (read_array_type): Update.
9023 (read_tag_string_type): Update.
9024 (attr_to_dynamic_prop): Update.
9025 (dwarf2_per_cu_data::int_type): Rename to...
9026 (dwarf2_per_objfile::int_type): ... this.
9027 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9028 (dwarf2_cu::addr_sized_int_type): ... this.
9029 (read_subrange_type): Update.
9030 (dwarf2_per_cu_data::addr_type): Rename to...
9031 (dwarf2_cu::addr_type): ... this.
9032 (set_die_type): Update.
9033
64874a40
SM
90342020-05-27 Simon Marchi <simon.marchi@efficios.com>
9035
9036 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9037 data through per_cu->cu.
9038
4ab09049
SM
90392020-05-27 Simon Marchi <simon.marchi@efficios.com>
9040
9041 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9042 dwarf2_per_cu_data parameter fo dwarf2_cu.
9043 (lookup_dwo_type_unit): Likewise.
9044 (read_cutu_die_from_dwo): Likewise.
9045 (lookup_dwo_unit): Likewise.
9046 (open_and_init_dwo_file): Likewise.
9047 (lookup_dwo_cutu): Likewise.
9048 (lookup_dwo_comp_unit): Likewise.
9049 (lookup_dwo_type_unit): Likewise.
9050 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9051 (cutu_reader::cutu_reader): Update.
9052
47b14e86
SM
90532020-05-27 Simon Marchi <simon.marchi@efficios.com>
9054
9055 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9056 parameter.
9057 (process_full_type_unit): Likewise.
9058 (process_queue): Update.
9059
43182c09
SM
90602020-05-27 Simon Marchi <simon.marchi@efficios.com>
9061
9062 * dwarf2/read.c (recursively_compute_inclusions): Add
9063 dwarf2_per_objfile parameter.
9064 (compute_compunit_symtab_includes): Likewise.
9065 (process_cu_includes): Update.
9066
7aa104c4
SM
90672020-05-27 Simon Marchi <simon.marchi@efficios.com>
9068
9069 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9070 parameter.
9071 (create_type_unit_group): Update.
9072 (process_psymtab_comp_unit_reader): Update.
9073 (build_type_psymtabs_reader): Update.
9074
e3beb21d
SM
90752020-05-27 Simon Marchi <simon.marchi@efficios.com>
9076
9077 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9078 object through m_this_cu->cu.
9079
d460f660
SM
90802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9081
9082 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9083 the info parameter.
9084 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9085
ab432490
SM
90862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9087
9088 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9089 per_objfile parameter.
9090 (load_full_type_unit): Add per_objfile parameter.
9091 (read_signatured_type): Likewise.
9092 (load_full_comp_unit): Likewise.
9093 (load_cu): Likewise.
9094 (dw2_do_instantiate_symtab): Likewise.
9095 (dw2_get_file_names): Likewise.
9096 (dw2_map_symtabs_matching_filename): Update.
9097 (dw_expand_symtabs_matching_file_matcher): Update.
9098 (dw2_map_symbol_filenames): Update.
9099 (process_psymtab_comp_unit): Add per_objfile parameter.
9100 (build_type_psymtabs_1): Update.
9101 (process_skeletonless_type_unit): Update.
9102 (dwarf2_build_psymtabs_hard): Update.
9103 (load_partial_comp_unit): Add per_objfile parameter.
9104 (scan_partial_symbols): Update.
9105 (load_full_comp_unit): Add per_objfile parameter.
9106 (process_imported_unit_die): Update.
9107 (create_cus_hash_table): Update.
9108 (find_partial_die): Update.
9109 (dwarf2_read_addr_index): Update.
9110 (follow_die_offset): Update.
9111 (dwarf2_fetch_die_loc_sect_off): Update.
9112 (dwarf2_fetch_constant_bytes): Update.
9113 (dwarf2_fetch_die_type_sect_off): Update.
9114 (follow_die_sig_1): Update.
9115 (load_full_type_unit): Add per_objfile parameter.
9116 (read_signatured_type): Likewise.
9117
313bad1b
SM
91182020-05-27 Simon Marchi <simon.marchi@efficios.com>
9119
9120 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9121 of objfile_name.
9122
c3699833
SM
91232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9124
9125 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9126 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9127 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9128 field.
9129 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9130 (create_cus_from_index): Update.
9131 (dwarf2_read_gdb_index): Update.
9132 (create_cus_from_debug_names): Update.
9133 (dwarf2_read_debug_names): Update.
9134 (get_abbrev_section_for_cu): Update.
9135 (create_all_comp_units): Update.
9136 (read_attribute_value): Update.
9137 (get_debug_line_section): Update.
9138 * dwarf2/index-cache.c (index_cache::store): Update.
9139 * dwarf2/index-write.c (save_gdb_index_command): Update.
9140 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9141
1859c670
SM
91422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9143
9144 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9145 member.
9146 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9147 dwarf2_per_cu_data::per_bfd.
9148 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9149 (create_type_unit_group): Likewise.
9150 (queue_comp_unit): Remove reference to
9151 per_cu->dwarf2_per_objfile.
9152 (maybe_queue_comp_unit): Likewise.
9153 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9154 (create_cus_hash_table): Assign new field.
9155
5e22e966
SM
91562020-05-27 Simon Marchi <simon.marchi@efficios.com>
9157
9158 * dwarf2/read.c: Replace
9159 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9160 dwarf2_cu->per_objfile throughout.
9161
97a1449a
SM
91622020-05-27 Simon Marchi <simon.marchi@efficios.com>
9163
9164 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9165 parameter, don't use per_cu->dwarf2_per_objfile.
9166 (dw2_instantiate_symtab): Likewise.
9167 (dw2_find_last_source_symtab): Update.
9168 (dw2_map_expand_apply): Update.
9169 (dw2_lookup_symbol): Update.
9170 (dw2_expand_symtabs_for_function): Update.
9171 (dw2_expand_all_symtabs): Update.
9172 (dw2_expand_symtabs_with_fullname): Update.
9173 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9174 don't use per_cu->dwarf2_per_objfile.
9175 (dw2_expand_marked_cus): Update.
9176 (dw2_find_pc_sect_compunit_symtab): Update.
9177 (dw2_debug_names_lookup_symbol): Update.
9178 (dw2_debug_names_expand_symtabs_for_function): Update.
9179 (dw2_debug_names_map_matching_symbols): Update.
9180 (dwarf2_psymtab::expand_psymtab): Update.
9181
9e021579
SM
91822020-05-27 Simon Marchi <simon.marchi@efficios.com>
9183
9184 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9185 <per_objfile>: New member.
9186 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9187 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9188 call to dwarf2_cu.
9189 (cutu_reader::cutu_reader): Update.
9190 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9191
ae090bdb
SM
91922020-05-27 Simon Marchi <simon.marchi@efficios.com>
9193
9194 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9195 struct dwarf2_per_objfile.
9196 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9197 dwarf2_per_bfd.
9198 * dwarf2/read.c (set_die_type): Update.
9199 (get_die_type_at_offset): Update.
9200
af758d11
SM
92012020-05-27 Tom Tromey <tom@tromey.com>
9202 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9205 method.
9206 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9207 get_symtab, set_symtab>: New methods.
9208 <m_symtabs>: New field.
9209 (struct dwarf2_psymtab): Derive from partial_symtab.
9210 <readin_p, get_compunit_symtab>: Declare methods.
9211 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9212 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9213 New methods.
9214 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9215 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9216 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9217 (dw2_symtab_iter_next, dw2_print_stats)
9218 (dw2_expand_symtabs_with_fullname)
9219 (dw2_expand_symtabs_matching_one)
9220 (dw_expand_symtabs_matching_file_matcher)
9221 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9222 (dw2_debug_names_iterator::next)
9223 (dw2_debug_names_map_matching_symbols)
9224 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9225 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9226 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9227 New methods.
9228 (get_compunit_symtab, process_full_comp_unit)
9229 (process_full_type_unit): Update.
9230 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9231
5989a64e
SM
92322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9233
9234 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9235 then introduce a new dwarf2_per_objfile type.
9236 <read_line_string>: Move to the new dwarf2_per_objfile type.
9237 <objfile>: Likewise.
9238 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9239 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9240 dwarf2_per_objfile->per_bfd.
9241 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9242 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9243 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9244 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9245 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9246 (dwarf2_per_objfile::locate_sections): Rename to...
9247 (dwarf2_per_bfd::locate_sections): ... this.
9248 (dwarf2_per_objfile::get_cutu): Rename to...
9249 (dwarf2_per_bfd::get_cutu): ... this.
9250 (dwarf2_per_objfile::get_cu): Rename to...
9251 (dwarf2_per_bfd::get_cu): ... this.
9252 (dwarf2_per_objfile::get_tu): Rename to...
9253 (dwarf2_per_bfd::get_tu): ... this.
9254 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9255 (dwarf2_per_bfd::allocate_per_cu): ... this.
9256 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9257 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9258 (get_gdb_index_contents_ftype): Change parameter from
9259 dwarf2_per_objfile to dwarf2_per_bfd.
9260 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9261 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9262
a50264ba
TT
92632020-05-27 Tom Tromey <tom@tromey.com>
9264 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9267 (allocate_piece_closure): Set "per_objfile" member.
9268 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9269 (locexpr_describe_location, loclist_describe_location): Use new
9270 member.
9271 * dwarf2/read.c (read_call_site_scope)
9272 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9273 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9274 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9275 handle_data_member_location): Set per_objfile member.
9276 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9277 member.
9278 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9279
d3473f0c
TT
92802020-05-27 Tom Tromey <tom@tromey.com>
9281
9282 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9283 allocate_signatured_type>: Declare new methods.
9284 <m_num_psymtabs>: New member.
9285 (struct dwarf2_per_cu_data) <index>: New member.
9286 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9287 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9288 (create_cu_from_index_list): Use allocate_per_cu.
9289 (create_signatured_type_table_from_index)
9290 (create_signatured_type_table_from_debug_names)
9291 (create_debug_type_hash_table, add_type_unit)
9292 (read_comp_units_from_section): Use allocate_signatured_type.
9293
5717c425
TT
92942020-05-27 Tom Tromey <tom@tromey.com>
9295
9296 * psymtab.c (partial_map_expand_apply)
9297 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9298 (psym_lookup_global_symbol_language)
9299 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9300 (psym_print_stats, psym_expand_symtabs_for_function)
9301 (psym_map_symbol_filenames, psym_map_matching_symbols)
9302 (psym_expand_symtabs_matching)
9303 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9304 (maintenance_check_psymtabs): Update.
9305 * psympriv.h (struct partial_symtab) <readin_p,
9306 get_compunit_symtab>: Add objfile parameter.
9307 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9308 Likewise.
9309 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9310 get_compunit_symtab>: Likewise.
9311 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9312
45940949
TT
93132020-05-27 Tom Tromey <tom@tromey.com>
9314
9315 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9316 member.
9317 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9318 (create_cu_from_index_list)
9319 (create_signatured_type_table_from_index)
9320 (create_signatured_type_table_from_debug_names)
9321 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9322 (dwarf2_create_include_psymtab)
9323 (create_debug_type_hash_table, add_type_unit)
9324 (create_type_unit_group, read_comp_units_from_section)
9325 (dwarf2_compute_name, create_cus_hash_table)
9326 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9327 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9328 obstack.
9329 (dw2_get_real_path): Likewise. Change argument to
9330 dwarf2_per_objfile.
9331
f8c6d152
LM
93322020-05-27 Luis Machado <luis.machado@linaro.org>
9333
9334 PR tdep/26000
9335 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9336 for ldrd (immediate).
9337
e98d2e6d
PW
93382020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9339
9340 * command.h: Add comment giving the name of class_tui.
9341 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9342 create the fake command for the help for class_tui.
9343
53a47a3e
TT
93442020-05-26 Tom Tromey <tromey@adacore.com>
9345
9346 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9347 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9348 (val_atr): New function.
9349 (value_val_atr): Use it.
9350 * ada-valprint.c (print_optional_low_bound): Change low bound
9351 handling for enums.
9352 (val_print_packed_array_elements): Don't call discrete_position.
9353 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9354 discrete_position for enum types.
9355 * language.c (default_print_array_index): Change type.
9356 * language.h (struct language_defn) <la_print_array_index>: Add
9357 index_type parameter, change type of index_value.
9358 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9359 (default_print_array_index): Update.
9360 * valprint.c (maybe_print_array_index): Don't call
9361 value_from_longest. Update.
9362 (value_print_array_elements): Don't call discrete_position.
9363
0bc2354b
TT
93642020-05-26 Tom Tromey <tromey@adacore.com>
9365
9366 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9367 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9368
1218a4bf
CDA
93692020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9370
9371 PR gdb/13519
9372 * avr-tdep.c (avr_integer_to_address): Return data or code
9373 address accordingly to the second 'type' argument of the
9374 function.
9375
92651b1d
MW
93762020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9377
9378 * infcmd.c, inferior.h: (construct_inferior_arguments):
9379 Moved function from here to gdbsupport/common-inferior.{h,cc}
9380
0a4f5f8c
TT
93812020-05-23 Tom Tromey <tom@tromey.com>
9382
9383 Revert commit eca1f90c:
9384 * NEWS: Remove entry for completion styling.
9385 * completer.c (_rl_completion_prefix_display_length): Move
9386 declaration later.
9387 (gdb_fnprint): Revert.
9388 (gdb_display_match_list_1): Likewise.
9389 * cli/cli-style.c (completion_prefix_style)
9390 (completion_difference_style, completion_suffix_style): Remove.
9391 (_initialize_cli_style): Revert.
9392 * cli/cli-style.h (completion_prefix_style)
9393 (completion_difference_style, completion_suffix_style): Don't
9394 declare.
9395
e08bd6c5
PA
93962020-05-24 Pedro Alves <palves@redhat.com>
9397
9398 * symtab.c (completion_list_add_name): Return boolean indication
9399 of whether the symbol matched.
9400 (completion_list_add_symbol): Don't try to remove C++ aliases if
9401 the symbol didn't match in the first place.
9402 * symtab.h (completion_list_add_name): Return bool.
9403
ceacbf6e
SM
94042020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9405
9406 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9407 type::field.
9408
26f16254
JB
94092020-05-23 Joel Brobecker <brobecker@adacore.com>
9410
9411 GDB 9.2 released.
9412
eca1f90c
TT
94132020-05-23 Tom Tromey <tom@tromey.com>
9414
9415 * NEWS: Add entry for completion styling.
9416 * completer.c (_rl_completion_prefix_display_length): Move
9417 declaration earlier.
9418 (gdb_fnprint): Use completion_style.
9419 (gdb_display_match_list_1): Likewise.
9420 * cli/cli-style.c (completion_prefix_style)
9421 (completion_difference_style, completion_suffix_style): New
9422 globals.
9423 (_initialize_cli_style): Register new globals.
9424 * cli/cli-style.h (completion_prefix_style)
9425 (completion_difference_style, completion_suffix_style): Declare.
9426
51e2cfa2
PA
94272020-05-23 Pedro Alves <palves@redhat.com>
9428
9429 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9430 (parse_escape): Use ISDIGIT instead of isdigit.
9431 (puts_debug): Use gdb_isprint instead of isprint.
9432 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9433 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9434 ISSPACE instead of isspace.
9435 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9436 instead of isspace.
9437 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9438 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9439 instead of isxdigit and ISDIGIT instead of isdigit.
9440
80fc5e77
SM
94412020-05-22 Simon Marchi <simon.marchi@efficios.com>
9442
9443 * gdbtypes.h (struct type) <field>: New method.
9444 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9445 or type::field.
9446
3cabb6b0
SM
94472020-05-22 Simon Marchi <simon.marchi@efficios.com>
9448
9449 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9450 (TYPE_FIELDS): Use type::fields. Change all call sites that
9451 modify the propery to use type::set_fields instead.
9452
1f704f76
SM
94532020-05-22 Simon Marchi <simon.marchi@efficios.com>
9454
9455 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9456 type::num_fields instead.
9457
5e33d5f4
SM
94582020-05-22 Simon Marchi <simon.marchi@efficios.com>
9459
9460 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9461 methods.
9462 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9463 that modify the number of fields to use type::set_num_fields
9464 instead.
9465
9392ebb3
TT
94662020-05-22 Tom Tromey <tromey@adacore.com>
9467
9468 * compile/compile-object-load.h (munmap_list_free): Don't
9469 declare.
9470
7c13f4e8
AB
94712020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9472
9473 * annotate.c (annotate_source_line): Update return type, add call
9474 to update current symtab and line.
9475 * annotate.h (annotate_source_line): Update return type, and
9476 extend header comment.
9477 * source.c (info_line_command): Check annotation_level before
9478 calling annotate_source_line.
9479 * stack.c (print_frame_info): If calling annotate_source_line
9480 returns true, then don't print any other source line information.
9481
aa370940
SM
94822020-05-21 Simon Marchi <simon.marchi@efficios.com>
9483
9484 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9485
84d53fa9
SM
94862020-05-21 Simon Marchi <simon.marchi@efficios.com>
9487
9488 * coffread.c (patch_type): Remove NULL check before xfree.
9489 * corefile.c (set_gnutarget): Likewise.
9490 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9491 * exec.c (build_section_table): Likewise.
9492 * remote.c (remote_target::pass_signals): Likewise.
9493 * utils.c (n_spaces): Likewise.
9494 * cli/cli-script.c (document_command): Likewise.
9495 * i386-windows-tdep.c (core_process_module_section): Likewise.
9496 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9497
9d428aae
SM
94982020-05-20 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * symfile.c (reread_symbols): Clear objfile's section_offsets
9501 vector and section indices, re-compute them by calling
9502 sym_offsets.
9503
250106a7
TT
95042020-05-20 Tom Tromey <tromey@adacore.com>
9505
9506 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9507 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9508
9a0bacfb
TV
95092020-05-20 Tom de Vries <tdevries@suse.de>
9510
9511 PR symtab/25833
9512 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9513
7b958a48
AM
95142020-05-20 Alan Modra <amodra@gmail.com>
9515
9516 PR 25993
9517 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9518 bfd_set_filename.
9519 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9520 passed to bfd_set_filename.
9521 * symfile-mem.c (add_vsyscall_page): Likewise for string
9522 passed to symbol_file_add_from_memory.
9523 (symbol_file_add_from_memory): Make name param a const char* and
9524 don't strdup.
9525
c7e97679
AM
95262020-05-20 Alan Modra <amodra@gmail.com>
9527
9528 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9529 rather than accessing bfd->filename directly.
9530 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9531 and use bfd_section_name.
9532 * dwarf2/frame.c (decode_frame_entry): Likewise.
9533 * exec.c (exec_set_section_address): Likewise.
9534 * solib-aix.c (solib_aix_bfd_open): Likewise.
9535 * stap-probe.c (get_stap_base_address): Likewise.
9536 * symfile.c (reread_symbols): Likewise.
9537
563c591b
TT
95382020-05-19 Tom Tromey <tromey@adacore.com>
9539
9540 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9541
f408d82c
SM
95422020-05-19 Simon Marchi <simon.marchi@efficios.com>
9543
9544 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9545
98c59b52
PA
95462020-05-19 Pedro Alves <palves@redhat.com>
9547
9548 * NEWS (set exec-file-mismatch): Adjust entry.
9549 * exec.c: Include "build-id.h".
9550 (validate_exec_file): Try to match build IDs instead of filenames.
9551 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9552 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9553 and pass down 'warn_if_slow'.
9554 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9555 gdb_bfd_open_closure to pass it down.
9556 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9557
4111f652
PA
95582020-05-19 Pedro Alves <palves@redhat.com>
9559
9560 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9561 * target.c (target_fileio_open_1): Rename to target_fileio_open
9562 and make extern. Use bool.
9563 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9564 (target_fileio_read_alloc_1): Adjust.
9565 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9566 (target_fileio_open_warn_if_slow): Delete declaration.
9567
ad80db5b
PA
95682020-05-19 Pedro Alves <palves@redhat.com>
9569
9570 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9571 Adjust all callers.
9572
1d6ce4d3
YS
95732020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9574
9575 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9576 whether disp is negative.
9577
9005fbbb
SM
95782020-05-19 Simon Marchi <simon.marchi@efficios.com>
9579
9580 * symfile.h (struct symfile_segment_data)
9581 <~symfile_segment_data>: Remove.
9582 <segment_info>: Change to std::vector.
9583 * symfile.c (default_symfile_segments): Update.
9584 * elfread.c (elf_symfile_segments): Update.
9585
68b888ff
SM
95862020-05-19 Simon Marchi <simon.marchi@efficios.com>
9587
9588 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9589 <segments>: New.
9590 <segment_bases, segment_sizes>: Remove.
9591 * symfile.c (default_symfile_segments): Update.
9592 * elfread.c (elf_symfile_segments): Update.
9593 * remote.c (remote_target::get_offsets): Update.
9594 * solib-target.c (solib_target_relocate_section_addresses):
9595 Update.
9596
62982abd
SM
95972020-05-19 Simon Marchi <simon.marchi@efficios.com>
9598
9599 * symfile.h (struct symfile_segment_data): Initialize fields.
9600 <~symfile_segment_data>: Add.
9601 (symfile_segment_data_up): New.
9602 (struct sym_fns) <sym_segments>: Return a
9603 symfile_segment_data_up.
9604 (default_symfile_segments): Return a symfile_segment_data_up.
9605 (free_symfile_segment_data): Remove.
9606 (get_symfile_segment_data): Return a symfile_segment_data_up.
9607 * symfile.c (default_symfile_segments): Likewise.
9608 (get_symfile_segment_data): Likewise.
9609 (free_symfile_segment_data): Remove.
9610 (symfile_find_segment_sections): Update.
9611 * elfread.c (elf_symfile_segments): Return a
9612 symfile_segment_data_up.
9613 * remote.c (remote_target::get_offsets): Update.
9614 * solib-target.c (solib_target_relocate_section_addresses):
9615 Update.
9616 * symfile-debug.c (debug_sym_segments): Return a
9617 symfile_segment_data_up.
9618
7f204339
RO
96192020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9620
e52a0f1b
RO
9621 PR build/25981
9622 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9623 Hardcode register numbers.
9624
7f204339
RO
9625 PR build/25981
9626 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9627 procfs_find_LDT_entry): Remove.
9628 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9629 procfs_find_LDT_entry): Remove.
9630 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9631 Remove.
9632
7f32a4d5
PA
96332020-05-17 Pedro Alves <palves@redhat.com>
9634 Andrew Burgess <andrew.burgess@embecosm.com>
9635 Keno Fischer <keno@juliacomputing.com>
9636
9637 PR gdb/25741
9638 * breakpoint.c (build_target_condition_list): Update comments.
9639 (build_target_command_list): Update comments and skip matching
9640 locations.
9641 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9642 a separate function. Simplify "set breakpoint auto-hw off"
9643 handling.
9644 (insert_breakpoints): Update comment.
9645 (tracepoint_locations_match): New parameter. For breakpoints,
9646 compare location types too, if the caller wants to.
9647 (handle_automatic_hardware_breakpoints): New functions.
9648 (bp_location_is_less_than): Also sort by location type and
9649 hardware breakpoint length.
9650 (update_global_location_list): Handle "set breakpoint auto-hw on"
9651 here.
9652 (update_breakpoint_locations): Ask breakpoint_locations_match to
9653 ignore location types.
9654
7d93a1e0
SM
96552020-05-16 Simon Marchi <simon.marchi@efficios.com>
9656
9657 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9658 type::name instead.
9659
d0e39ea2
SM
96602020-05-16 Simon Marchi <simon.marchi@efficios.com>
9661
9662 * gdbtypes.h (struct type) <name, set_name>: New methods.
9663 (TYPE_CODE): Use type::name. Change all call sites used to set
9664 the name to use type::set_name instead.
9665
2dab0c7b
TT
96662020-05-16 Tom Tromey <tom@tromey.com>
9667
9668 * top.c (quit_force): Update.
9669 * infrun.c (handle_no_resumed): Update.
9670 * top.h (all_uis): New function.
9671 (ALL_UIS): Remove.
9672
59f7bd8d
SM
96732020-05-16 Simon Marchi <simon.marchi@efficios.com>
9674
9675 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9676
9bf058f0
PA
96772020-05-16 Pedro Alves <palves@redhat.com>
9678
9679 * ia64-linux-nat.c
9680 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9681 Declare method.
9682 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9683
8f86ae1a
SM
96842020-05-15 Simon Marchi <simon.marchi@efficios.com>
9685
9686 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9687 (sparc64_adi_info): Likewise.
9688
d6bc0792
TT
96892020-05-15 Tom Tromey <tom@tromey.com>
9690
9691 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9692 block_objfile.
9693 (lookup_objfile_from_block): Remove.
9694 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9695 (lookup_global_symbol): Use block_objfile.
9696 * symtab.h (lookup_objfile_from_block): Don't declare.
9697 * printcmd.c (clear_dangling_display_expressions): Use
9698 block_objfile.
9699 * parse.c (operator_check_standard): Use block_objfile.
9700
8c14c3a3
TT
97012020-05-15 Tom Tromey <tom@tromey.com>
9702
9703 * language.c (language_alloc_type_symbol): Set
9704 SYMBOL_SECTION.
9705 * symtab.c (initialize_objfile_symbol): Remove.
9706 (allocate_symbol): Remove.
9707 (allocate_template_symbol): Remove.
9708 * dwarf2/read.c (fixup_go_packaging): Use "new".
9709 (new_symbol): Use "new".
9710 (read_variable): Don't call initialize_objfile_symbol. Use
9711 "new".
9712 (read_func_scope): Use "new".
9713 * xcoffread.c (process_xcoff_symbol): Don't call
9714 initialize_objfile_symbol.
9715 (SYMBOL_DUP): Remove.
9716 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9717 "new".
9718 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9719 (allocate_template_symbol): Don't declare.
9720 (struct symbol): Add copy constructor. Change defaults.
9721 * jit.c (finalize_symtab): Use "new".
9722 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9723 Use "new".
9724 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9725 (common_block_end): Use "new".
9726 * mdebugread.c (parse_symbol): Use "new".
9727 (new_symbol): Likewise.
9728
5b4a1a8d
PW
97292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9730
9731 * NEWS: Mention changes to help and apropos.
9732
57b4f16e
PW
97332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9734
9735 * command.h (enum command_class): Improve comments, document
9736 that class_alias is for user-defined aliases, give the class
9737 name for each class, remove unused class_xdb.
9738 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9739 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9740 by a precise class.
9741 * infcmd.c (_initialize_infcmd): Likewise.
9742 * reverse.c (_initialize_reverse): Likewise.
9743 * stack.c (_initialize_stack): Likewise.
9744 * symfile.c (_initialize_symfile): Likewise.
9745 * tracepoint.c (_initialize_tracepoint): Likewise.
9746
7c05caf7
PW
97472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9748
9749 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9750 when their aliased command is traversed.
9751 (help_cmd): Add fput_command_names_styled call to
9752 output command name and aliases when command has an alias.
9753
3b3aaacb
PW
97542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9755
9756 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9757 * cli/cli-decode.c (help_cmd_list): Declare as static,
9758 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9759 a command together with the command.
9760 (fput_command_name_styled, fput_command_names_styled): New functions.
9761 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9762 fput_command_name_styled.
9763 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9764 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9765
7aa1b46f
PW
97662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9767
9768 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9769 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9770 * command.h (cmd_show_list): Likewise.
9771 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9772 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9773
89bcba74
PW
97742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9775
9776 * unittests/command-def-selftests.c (traverse_command_structure):
9777 Verify all commands of a list have the same prefix command and
9778 that only the top cmdlist commands have a null prefix.
9779
3f4d92eb
PW
97802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9781
9782 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9783 as prefix, not one of its aliases.
9784 (set_cmd_prefix): Remove.
9785 (do_add_cmd): Centralize the setting of the prefix of a command, when
9786 command is defined after its full chain of prefix commands.
9787 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9788 (add_setshow_cmd_full): Likewise.
9789 (update_prefix_field_of_prefixed_commands): New function.
9790 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9791 update_prefix_field_of_prefixed_commands.
9792 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9793 addresses of remote_set_cmdlist and remote_show_cmdlist given
9794 as argument, not the address of an argument.
9795 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9796 * gdb/remote.c (_initialize_remote): Likewise.
9797
0605465f
PW
97982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9799
9800 * cli/cli-cmds.c (alias_command): Check for an existing alias
9801 using lookup_cmd_composition, as valid_command_p is too strict
9802 and forbids aliases that are the prefix of an existing alias
9803 or command.
9804 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9805 command is properly recognised as a valid command.
9806
58e6ac70
PW
98072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9808
9809 * unittests/help-doc-selftests.c: Rename to
9810 unittests/command-def-selftests.c
9811 * unittests/command-def-selftests.c (help_doc_tests): Update some
9812 comments.
9813 (command_structure_tests, traverse_command_structure): New namespace
9814 and function.
9815 (command_structure_invariants_tests): New function.
9816 (_initialize_command_def_selftests) Renamed from
9817 _initialize_help_doc_selftests, register command_structure_invariants
9818 selftest.
9819
a7b9ceb8
PW
98202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9821
9822 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9823 an alias of 'show'.
9824
b2188a06
JB
98252020-05-15 Joel Brobecker <brobecker@adacore.com>
9826
9827 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9828 ada_is_fixed_point_type. Update all callers.
9829 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9830 all callers.
9831 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9832 Update all callers.
9833 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9834 print_fixed_point_type. Update all callers.
9835 * ada-valprint.c (ada_value_print_num): Replace call to
9836 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9837
a51951c2
KB
98382020-05-14 Kevin Buettner <kevinb@redhat.com>
9839
9840 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9841 processors.
9842 (cpu_supports_bts): Add CV_AMD case.
9843
29d6859f
LM
98442020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9845 Simon Marchi <simon.marchi@efficios.com>
9846
9847 * infrun.c (stop_all_threads): Collect multiple wait events at
9848 each pass.
9849
78134374
SM
98502020-05-14 Simon Marchi <simon.marchi@efficios.com>
9851
9852 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9853 type::code instead.
9854
67607e24
SM
98552020-05-14 Simon Marchi <simon.marchi@efficios.com>
9856
9857 * gdbtypes.h (struct type) <code, set_code>: New methods.
9858 (TYPE_CODE): Use type::code. Change all call sites used to set
9859 the code to use type::set_code instead.
9860
a05575d3
TBA
98612020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9862 Tom de Vries <tdevries@suse.de>
9863 Pedro Alves <palves@redhat.com>
9864
9865 PR threads/25478
9866 * infrun.c (stop_all_threads): Do NOT ignore
9867 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9868 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9869 received.
9870 (handle_no_resumed): Remove code handling a live inferior with no
9871 threads.
9872 * remote.c (has_single_non_exited_thread): New.
9873 (remote_target::update_thread_list): Do not delete a thread if is
9874 the last thread of the process.
9875 * thread.c (thread_select): Call delete_exited_threads instead of
9876 prune_threads.
9877
6ad82919
TBA
98782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9879
9880 * infrun.c (stop_all_threads): Enable/disable thread events of all
9881 targets. Move a debug message denoting the end of the function
9882 into the SCOPED_EXIT block.
9883
d890404b
TBA
98842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9885
9886 * process-stratum-target.h: Include <set>.
9887 (all_non_exited_process_targets, switch_to_target_no_thread): New
9888 function declarations.
9889 * process-stratum-target.c (all_non_exited_process_targets)
9890 (switch_to_target_no_thread): New function implementations.
9891
293b3ebc
TBA
98922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9893
9894 * infrun.c (handle_inferior_event): Extract out a piece of code
9895 into...
9896 (mark_non_executing_threads): ...this new function.
9897
7ca9b62a
TBA
98982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9899
9900 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9901 use.
9902
fc75c28b
TBA
99032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9904
9905 * regcache.c (regcache_read_pc_protected): New function
9906 implementation that returns 0 if the PC cannot read via
9907 'regcache_read_pc'.
9908 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9909 instead of 'regcache_read_pc'.
9910 (keep_going_pass_signal): Ditto.
9911
a89febbd
TT
99122020-05-13 Tom Tromey <tromey@adacore.com>
9913
9914 * ada-lang.c (align_value): Remove.
9915 (ada_template_to_fixed_record_type_1): Use align_up.
9916
f7e23710
TBA
99172020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9918
9919 * async-event.c: Update the copyright year.
9920 * async-event.h: Update the copyright year.
9921
02ff80c2
SM
99222020-05-12 Simon Marchi <simon.marchi@efficios.com>
9923
9924 * objfiles.h (is_addr_in_objfile,
9925 shared_objfile_contains_address_p): Return bool.
9926 * objfile.c (is_addr_in_objfile,
9927 shared_objfile_contains_address_p): Return bool.
9928
4fd6c7e8
TT
99292020-05-11 Tom Tromey <tromey@adacore.com>
9930
9931 * cli/cli-cmds.c (info_command): Restore.
9932 (_initialize_cli_cmds): Use add_prefix_command for "info".
9933 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9934
5eb68a39
TT
99352020-05-11 Tom Tromey <tromey@adacore.com>
9936
9937 * ada-lang.c (ada_value_primitive_field): Now public.
9938 * ada-lang.h (ada_value_primitive_field): Declare.
9939 * ada-valprint.c (print_field_values): Use
9940 ada_value_primitive_field for wrapper fields.
9941
7666722f
TV
99422020-05-11 Tom de Vries <tdevries@suse.de>
9943
9944 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9945 MODULE_DOMAIN.
9946
3ee6bb11
TV
99472020-05-11 Tom de Vries <tdevries@suse.de>
9948
9949 PR symtab/25941
9950 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9951 with length 0, if not gdb-produced.
9952 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9953
43434996
TV
99542020-05-09 Tom de Vries <tdevries@suse.de>
9955
9956 PR gdb/25955
9957 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9958 calculation.
9959
2f78cffc
TT
99602020-05-09 Tom Tromey <tom@tromey.com>
9961
9962 * top.c (server_command): Now bool.
9963 * top.h (server_command): Now bool.
9964
4f7bc5ed
TT
99652020-05-08 Tom Tromey <tromey@adacore.com>
9966
9967 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9968 already being processed.
9969
8be4b118
TT
99702020-05-08 Tom Tromey <tom@tromey.com>
9971
9972 * printcmd.c (struct display) <next>: Remove.
9973 <display>: New constructor.
9974 <exp_string>: Now a std::string.
9975 <enabled_p>: Now a bool.
9976 (display_number): Move definition earlier.
9977 (displays): Rename from display_chain. Now a std::vector.
9978 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9979 (display_command): Update.
9980 (do_one_display, disable_display)
9981 (enable_disable_display_command, do_enable_disable_display):
9982 Update.
9983 (free_display): Remove.
9984 (clear_displays): Rewrite.
9985 (delete_display): Update.
9986 (map_display_numbers): Use function_view. Remove "data"
9987 parameter. Update.
9988 (do_delete_display): Remove.
9989 (undisplay_command): Update.
9990 (do_one_display, do_displays, disable_display)
9991 (info_display_command): Update.
9992 (do_enable_disable_display): Remove.
9993 (enable_disable_display_command)
9994 (clear_dangling_display_expressions): Update.
9995
94c93c35
TT
99962020-05-08 Tom Tromey <tom@tromey.com>
9997
9998 * symtab.c (set_symbol_cache_size)
9999 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10000 (maintenance_print_symbol_cache_statistics): Update.
10001 * symmisc.c (print_symbol_bcache_statistics)
10002 (print_objfile_statistics, maintenance_print_objfiles)
10003 (maintenance_info_symtabs, maintenance_check_symtabs)
10004 (maintenance_expand_symtabs, maintenance_info_line_tables):
10005 Update.
10006 * symfile-debug.c (set_debug_symfile): Update.
10007 * source.c (forget_cached_source_info): Update.
10008 * python/python.c (gdbpy_progspaces): Update.
10009 * psymtab.c (maintenance_info_psymtabs): Update.
10010 * probe.c (parse_probes): Update.
10011 * linespec.c (iterate_over_all_matching_symtabs)
10012 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10013 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10014 * exec.c (exec_target::close): Update.
10015 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10016 * breakpoint.c (print_one_breakpoint_location)
10017 (create_longjmp_master_breakpoint)
10018 (create_std_terminate_master_breakpoint): Update.
10019 * progspace.c (program_spaces): Now a std::vector.
10020 (maybe_new_address_space): Update.
10021 (add_program_space): Remove.
10022 (program_space::program_space): Update.
10023 (remove_program_space): Update.
10024 (number_of_program_spaces): Remove.
10025 (print_program_space, update_address_spaces): Update.
10026 * progspace.h (program_spaces): Change type.
10027 (ALL_PSPACES): Remove.
10028 (number_of_program_spaces): Don't declare.
10029 (struct program_space) <next>: Remove.
10030
a1fd1ac9
TT
100312020-05-08 Tom Tromey <tom@tromey.com>
10032
10033 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10034 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10035 (enable_break): Update.
10036 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10037 (frv_fdpic_find_canonical_descriptor): Update.
10038 (frv_fetch_objfile_link_map): Update.
10039 * progspace.c (program_space::free_all_objfiles): Update.
10040 (program_space::solibs): New method.
10041 * progspace.h (struct program_space) <solibs>: New method.
10042 * solist.h (master_so_list): Don't declare.
10043 (ALL_SO_LIBS): Remove.
10044 * solib.h (so_list_head): Remove.
10045 (update_solib_list): Update comment.
10046 * solib.c (master_so_list): Remove.
10047 (solib_used, update_solib_list, solib_add)
10048 (info_sharedlibrary_command, clear_solib)
10049 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10050
38eae084
TT
100512020-05-08 Tom Tromey <tom@tromey.com>
10052
10053 * extension.c (extension_languages): Now a std::array.
10054 (ALL_EXTENSION_LANGUAGES): Remove.
10055 (get_ext_lang_defn, get_ext_lang_of_file)
10056 (eval_ext_lang_from_control_command): Update.
10057 (finish_ext_lang_initialization)
10058 (auto_load_ext_lang_scripts_for_objfile)
10059 (ext_lang_type_printers::ext_lang_type_printers)
10060 (apply_ext_lang_type_printers)
10061 (ext_lang_type_printers::~ext_lang_type_printers)
10062 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10063 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10064 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10065 (get_matching_xmethod_workers, ext_lang_colorize)
10066 (ext_lang_before_prompt): Update.
10067 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10068
596dc4ad
TT
100692020-05-08 Tom Tromey <tom@tromey.com>
10070
10071 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10072 overload.
10073 <swap_string, m_string>: Remove.
10074 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10075 Update.
10076 * stabsread.c (define_symbol, read_type): Update.
10077 * linespec.c (find_linespec_symbols): Update.
10078 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10079 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10080 * dbxread.c (read_dbx_symtab): Update.
10081 * cp-support.h (cp_canonicalize_string_full)
10082 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10083 Return unique_xmalloc_ptr.
10084 * cp-support.c (inspect_type): Update.
10085 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10086 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10087 Likewise.
10088 * c-typeprint.c (print_name_maybe_canonical): Update.
10089 * break-catch-throw.c (check_status_exception_catchpoint):
10090 Update.
10091
bf4cb9be
TV
100922020-05-08 Tom de Vries <tdevries@suse.de>
10093
10094 * infrun.c (follow_fork): Copy current_line and current_symtab to
10095 child thread.
10096
a1b68f28
SM
100972020-05-07 Simon Marchi <simon.marchi@efficios.com>
10098
10099 * async-event.c (struct async_signal_handler, struct
10100 async_event_handler): Reformat, remove typedef.
10101
98d48915
SM
101022020-05-07 Simon Marchi <simon.marchi@efficios.com>
10103
10104 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10105 access thistype->main_type->dyn_prop_list directly.
10106
7aa91313
SM
101072020-05-07 Simon Marchi <simon.marchi@efficios.com>
10108
10109 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10110 (remove_dyn_prop): Remove. Update all users to use
10111 type::remove_dyn_prop.
10112 * gdbtypes.c (remove_dyn_prop): Rename to...
10113 (type::remove_dyn_prop): ... this.
10114
5c54719c
SM
101152020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10116
10117 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10118 (add_dyn_prop): Remove. Update all users to use
10119 type::add_dyn_prop.
10120 * gdbtypes.c (add_dyn_prop): Rename to...
10121 (type::add_dyn_prop): ... this.
10122
24e99c6c
SM
101232020-05-07 Simon Marchi <simon.marchi@efficios.com>
10124
10125 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10126 (get_dyn_prop): Remove. Update all users to use
10127 type::dyn_prop.
10128 * gdbtypes.c (get_dyn_prop): Rename to...
10129 (type::dyn_prop): ... this.
10130
0d4bf016
SM
101312020-05-06 Simon Marchi <simon.marchi@efficios.com>
10132
10133 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10134
ac4a4f1c
SM
101352020-05-06 Simon Marchi <simon.marchi@efficios.com>
10136
10137 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10138 instruction, skip it if it's there.
10139
a3bbacc1
SM
101402020-05-05 Simon Marchi <simon.marchi@efficios.com>
10141
10142 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10143
c3236f84
SM
101442020-05-04 Simon Marchi <simon.marchi@efficios.com>
10145
10146 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10147 * gdbtypes.c (recursive_dump_type): Remove use of
10148 TYPE_INCOMPLETE.
10149
3b6acaee
TT
101502020-05-03 Tom Tromey <tom@tromey.com>
10151
10152 * breakpoint.c (catch_command, tcatch_command): Remove.
10153 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10154 add_show_prefix_cmd.
10155 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10156 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10157 Remove.
10158 (add_internal_problem_command): Use add_basic_prefix_cmd,
10159 add_show_prefix_cmd.
10160 * mips-tdep.c (set_mipsfpu_command): Remove.
10161 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10162 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10163 (_initialize_index_cache): Use add_basic_prefix_cmd.
10164 * memattr.c (dummy_cmd): Remove.
10165 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10166 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10167 (_initialize_tui_win): Use add_basic_prefix_cmd,
10168 add_show_prefix_cmd.
10169 * cli/cli-logging.c (set_logging_command): Remove.
10170 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10171 add_show_prefix_cmd.
10172 (show_logging_command): Remove.
10173 * target.c (target_command): Remove.
10174 (add_target): Use add_basic_prefix_cmd.
10175
a51119cd
HD
101762020-05-02 Hannes Domani <ssbssa@yahoo.de>
10177
10178 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10179
652fc23a 101802020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10181
652fc23a
PW
10182 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10183 info_command.
10184
117539e6
KR
101852020-04-30 Kamil Rytarowski <n54@gmx.com>
10186
10187 * nbsd-nat.c (nbsd_enable_proc_events)
10188 (nbsd_nat_target::post_startup_inferior): Add.
10189 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10190 (nbsd_nat_target::update_thread_list): Rewrite.
10191 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10192 "PTRACE_LWP_CREATE".
10193 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10194
102e38eb 101952020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10196
102e38eb
PW
10197 * stack.c (_initialize_stack): Remove duplicated creation
10198 of "frame" command and "f" alias.
10199
ee9d1e5f
HD
102002020-04-30 Hannes Domani <ssbssa@yahoo.de>
10201
10202 PR gdb/18706
10203 * gdbtypes.c (check_typedef): Calculate size of array of
10204 stubbed type.
10205
627c7fb8
HD
102062020-04-30 Hannes Domani <ssbssa@yahoo.de>
10207
10208 PR gdb/15559
10209 * i386-tdep.c (i386_push_dummy_call): Call
10210 i386_thiscall_push_dummy_call.
10211 (i386_thiscall_push_dummy_call): New function.
10212 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10213 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10214 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10215
ffc2844e
SM
102162020-04-29 Simon Marchi <simon.marchi@efficios.com>
10217
10218 * gdbarch.sh (do_read): Add shellcheck disable directive for
10219 warning SC2162.
10220
1207375d
SM
102212020-04-29 Simon Marchi <simon.marchi@efficios.com>
10222
10223 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10224 "referenced but not assigned" warning.
10225
9fdb2916
SM
102262020-04-29 Simon Marchi <simon.marchi@efficios.com>
10227
10228 * gdbarch.sh: Remove code that sets fallbackdefault.
10229
759cea5e
SM
102302020-04-29 Simon Marchi <simon.marchi@efficios.com>
10231
10232 * gdbarch.sh: Use shell operators && and || instead of
10233 -a and -o.
10234
cb02ab24
SM
102352020-04-29 Simon Marchi <simon.marchi@efficios.com>
10236
10237 * gdbarch.sh: Use $(...) instead of `...`.
10238
a6fc5ffc
SM
102392020-04-29 Simon Marchi <simon.marchi@efficios.com>
10240
10241 * gdbarch.sh: Use double quotes around variables.
10242
8d113d13
SM
102432020-04-29 Simon Marchi <simon.marchi@efficios.com>
10244
10245 * gdbarch.sh: Use %s with printf, instead of variables in the
10246 format string.
10247
ed6acedd
TT
102482020-04-29 Tom Tromey <tromey@adacore.com>
10249
10250 PR ada/25875:
10251 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10252 type fields here.
10253 (read_enumeration_type): Call
10254 update_enumeration_type_from_children later. Update comments.
10255 (process_enumeration_scope): Don't create type fields.
10256
b68b1b58
KR
102572020-04-29 Kamil Rytarowski <n54@gmx.com>
10258
10259 * nbsd-tdep.c: Include "xml-syscall.h".
10260 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10261
f94b2e03
KR
102622020-04-29 Kamil Rytarowski <n54@gmx.com>
10263
10264 * nbsd-nat.c: Include "sys/wait.h".
10265 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10266 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10267 (nbsd_nat_target::remove_exec_catchpoint)
10268 (nbsd_nat_target::set_syscall_catchpoint): Add.
10269 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10270 (nbsd_nat_target::insert_exec_catchpoint)
10271 (nbsd_nat_target::remove_exec_catchpoint)
10272 (nbsd_nat_target::set_syscall_catchpoint): Add.
10273 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10274 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10275 `nbsd_get_syscall_number'.
10276
fc49bc72
TT
102772020-04-29 Tom Tromey <tom@tromey.com>
10278
10279 * stack.c (print_block_frame_labels): Remove.
10280
d642b692
HD
102812020-04-29 Hannes Domani <ssbssa@yahoo.de>
10282
10283 PR gdb/17320
10284 * ada-valprint.c (val_print_packed_array_elements): Move array
10285 end bracket to new line.
10286 (ada_val_print_string): Remove extra spaces before first array
10287 element.
10288 * c-valprint.c (c_value_print_array): Likewise.
10289 * m2-valprint.c (m2_print_array_contents): Likewise.
10290 (m2_value_print_inner): Likewise.
10291 * p-valprint.c (pascal_value_print_inner): Likewise.
10292 * valprint.c (generic_val_print_array): Likewise.
10293 (value_print_array_elements): Move first array element and array
10294 end bracket to new line.
10295
ea90f227
TV
102962020-04-29 Tom de Vries <tdevries@suse.de>
10297
10298 PR symtab/25889
10299 * linespec.c (find_method): Fix ix calculation.
10300
4498ef4f
KR
103012020-04-28 Kamil Rytarowski <n54@gmx.com>
10302
10303 * syscalls/update-netbsd.sh: New file.
10304 * syscalls/netbsd.xml: Regenerate.
10305 * data-directory/Makefile.in: Register `netbsd.xml' in
10306 `SYSCALLS_FILES'.
10307
a55e30b5
SM
103082020-04-28 Simon Marchi <simon.marchi@efficios.com>
10309
10310 * syscalls/update-freebsd.sh: Add double quotes.
10311
2b2fbab8
TT
103122020-04-28 Tom Tromey <tom@tromey.com>
10313
10314 * NEWS: Update.
10315 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10316 (cmdpy_init): Allow class_tui.
10317
a65189c9
TV
103182020-04-28 Mark Williams <mark@myosotissp.com>
10319
10320 PR gdb/24480
10321 * dwarf2read.c: Add missing assingments to list_in_scope when
10322 start_symtab was already called.
10323
1b95cdb7
SM
103242020-04-28 Simon Marchi <simon.marchi@efficios.com>
10325
10326 PR gdb/25881
10327 * dwarf2/read.c (offset_map_type): Use
10328 gdb:hash_enum<sect_offset> as hash function.
10329
15cd93d0
TV
103302020-04-28 Tom de Vries <tdevries@suse.de>
10331
10332 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10333 with DW_AT_signature.
10334
1eb39914
SM
103352020-04-27 Simon Marchi <simon.marchi@efficios.com>
10336
10337 * configure.ac: Remove check for fs_base/gs_base in
10338 user_regs_struct.
10339 * configure: Re-generate.
10340 * config.in: Re-generate.
10341 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10342 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10343 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10344
991a3e2e
LM
103452020-04-27 Luis Machado <luis.machado@linaro.org>
10346
10347 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10348 problematic inline frame unwinding situation.
10349 * frame.c (frame_id_computed_p): New function.
10350 * frame.h (frame_id_computed_p): New prototype.
10351
361ba0e8
TT
103522020-04-26 Tom Tromey <tom@tromey.com>
10353
10354 * command.h (enum command_class) <class_pseudo>: Remove.
10355
bc3609fd
PW
103562020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10357
10358 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10359 and whitespace.
10360
b9771db7
KR
103612020-04-25 Kamil Rytarowski <n54@gmx.com>
10362
ec16513e
SM
10363 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10364 `PT_GET_PROCESS_STATE' block.
b9771db7 10365
7151c1af
TT
103662020-04-24 Tom Tromey <tom@tromey.com>
10367
10368 * symtab.h (symbol_get_demangled_name): Don't declare.
10369 * symtab.c (symbol_get_demangled_name): Remove.
10370 (general_symbol_info::natural_name)
10371 (general_symbol_info::demangled_name): Update.
10372
906bb4c5
TT
103732020-04-24 Tom Tromey <tom@tromey.com>
10374
10375 PR rust/25025:
10376 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10377
bcfe6157
TT
103782020-04-24 Tom Tromey <tom@tromey.com>
10379
10380 PR symtab/12707:
10381 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10382 exists.
10383 (new_symbol): Likewise.
10384 * compile/compile-object-load.c (get_out_value_type): Use
10385 symbol_matches_search_name.
10386
f049a313
TT
103872020-04-24 Tom Tromey <tom@tromey.com>
10388
10389 * dwarf2/read.c (add_partial_symbol): Do not call
10390 compute_and_set_names.
10391
76e288d1
TT
103922020-04-24 Tom Tromey <tom@tromey.com>
10393
10394 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10395 overload.
10396
2467f4f6
TT
103972020-04-24 Tom Tromey <tom@tromey.com>
10398
10399 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10400 (add_psymbol_to_list): New overload. Make old overload call new
10401 one.
10402 * psympriv.h (add_psymbol_to_list): New overload.
10403
e61108c9
TT
104042020-04-24 Tom Tromey <tom@tromey.com>
10405
10406 * dwarf2/read.c (partial_die_info::read) <case
10407 DW_AT_linkage_name>: Use value_as_string.
10408 (dwarf2_string_attr): Use value_as_string.
10409 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10410 method.
10411 * dwarf2/attribute.c (attribute::value_as_string): New method.
10412
8c87a452
TT
104132020-04-24 Tom Tromey <tom@tromey.com>
10414
10415 * symtab.c (general_symbol_info::natural_name)
10416 (general_symbol_info::demangled_name): Check for language_rust.
10417
787de330
TT
104182020-04-24 Tom Tromey <tom@tromey.com>
10419
10420 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10421 (dwarf2_physname): ... from here.
10422 (partial_die_info::read): Add Rust "{" hack.
10423
ff985671
TT
104242020-04-24 Tom Tromey <tom@tromey.com>
10425
10426 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10427 method.
10428 (symbol_set_demangled_name): Don't declare.
10429 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10430 symbol_set_demangled_name.
10431 (general_symbol_info::set_language)
10432 (general_symbol_info::compute_and_set_names): Update.
10433 * minsyms.c (minimal_symbol_reader::install): Update.
10434 * dwarf2/read.c (new_symbol): Update.
10435
1acda803
TT
104362020-04-24 Tom Tromey <tromey@adacore.com>
10437
10438 PR python/23662:
10439 * python/py-type.c (convert_field): Handle
10440 FIELD_LOC_KIND_DWARF_BLOCK.
10441 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10442 (typy_get_dynamic): Nw function.
10443 (type_object_getset): Add "dynamic".
10444 * NEWS: Add entry.
10445
d656f129
TT
104462020-04-24 Tom Tromey <tromey@adacore.com>
10447
10448 * ada-typeprint.c (print_choices, print_variant_part)
10449 (print_record_field_types_dynamic): New functions.
10450 (print_record_field_types): Use print_record_field_types_dynamic.
10451
7d79de9a
TT
104522020-04-24 Tom Tromey <tromey@adacore.com>
10453
10454 * dwarf2/read.c (handle_data_member_location): New overload.
10455 (dwarf2_add_field): Use it.
10456 (decode_locdesc): Add "computed" parameter. Update comment.
10457 * gdbtypes.c (is_dynamic_type_internal): Also look for
10458 FIELD_LOC_KIND_DWARF_BLOCK.
10459 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10460 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10461 virtual base classes.
10462 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10463 FIELD_LOC_KIND_DWARF_BLOCK.
10464
f8e89861
TT
104652020-04-24 Tom Tromey <tromey@adacore.com>
10466
10467 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10468 * gdbtypes.c (is_dynamic_type_internal): Check
10469 TYPE_HAS_DYNAMIC_LENGTH.
10470 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10471 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10472 New macros.
10473 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10474 constant.
10475
9c6a1327
TT
104762020-04-24 Tom Tromey <tromey@adacore.com>
10477
10478 * dwarf2/read.c (struct variant_field): Rewrite.
10479 (struct variant_part_builder): New.
10480 (struct nextfield): Remove "variant" field. Add "offset".
10481 (struct field_info): Add "current_variant_part" and
10482 "variant_parts".
10483 (alloc_discriminant_info): Remove.
10484 (alloc_rust_variant): New function.
10485 (quirk_rust_enum): Update.
10486 (dwarf2_add_field): Set "offset" member. Don't handle
10487 DW_TAG_variant_part.
10488 (offset_map_type): New typedef.
10489 (convert_variant_range, create_one_variant)
10490 (create_one_variant_part, create_variant_parts)
10491 (add_variant_property): New functions.
10492 (dwarf2_attach_fields_to_type): Call add_variant_property.
10493 (read_structure_type): Don't handle DW_TAG_variant_part.
10494 (handle_variant_part, handle_variant): New functions.
10495 (handle_struct_member_die): Use them.
10496 (process_structure_scope): Don't handle variant parts.
10497 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10498 (struct discriminant_info): Remove.
10499 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10500 (struct main_type) <flag_discriminated_union>: Remove.
10501 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10502 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10503 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10504 Update.
10505 * valops.c (value_union_variant): Remove.
10506 * value.h (value_union_variant): Don't declare.
10507
b249d2c2
TT
105082020-04-24 Tom Tromey <tromey@adacore.com>
10509
10510 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10511 (ada_value_primitive_packed_val): Update.
10512 * ada-valprint.c (ada_value_print_1): Update.
10513 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10514 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10515 just an address. Use evaluate_for_locexpr_baton.
10516 (dwarf2_evaluate_property): Update.
10517 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10518 array_view.
10519 * findvar.c (default_read_var_value): Update.
10520 * gdbtypes.c (compute_variant_fields_inner)
10521 (resolve_dynamic_type_internal): Update.
10522 (resolve_dynamic_type): Change type of valaddr parameter.
10523 * gdbtypes.h (resolve_dynamic_type): Update.
10524 * valarith.c (value_subscripted_rvalue): Update.
10525 * value.c (value_from_contents_and_address): Update.
10526
61122aa9
TT
105272020-04-24 Tom Tromey <tromey@adacore.com>
10528
10529 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10530 "push_initial_value" parameter.
10531 (dwarf2_evaluate_property): Likewise.
10532 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10533
ef83a141
TT
105342020-04-24 Tom Tromey <tromey@adacore.com>
10535
10536 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10537 (variant::matches, compute_variant_fields_recurse)
10538 (compute_variant_fields_inner, compute_variant_fields): New
10539 functions.
10540 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10541 Use resolved_type after type is made.
10542 (operator==): Add new cases.
10543 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10544 (struct discriminant_range, struct variant, struct variant_part):
10545 New.
10546 (union dynamic_prop_data) <variant_parts, original_type>: New
10547 members.
10548 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10549 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10550 constants.
10551 * value.c (unpack_bits_as_long): Now public.
10552 * value.h (unpack_bits_as_long): Declare.
10553
675127ec
TT
105542020-04-24 Tom Tromey <tromey@adacore.com>
10555
10556 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10557 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10558
9852ceef
HD
105592020-04-24 Hannes Domani <ssbssa@yahoo.de>
10560
10561 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10562
7632c6ce
KR
105632020-04-24 Kamil Rytarowski <n54@gmx.com>
10564
10565 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10566 (remove_fork_catchpoint, post_startup_inferior)
10567 (post_attach): Move...
10568 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10569 (remove_fork_catchpoint, post_startup_inferior)
10570 (post_attach): ...here.
10571 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10572 (remove_fork_catchpoint, post_startup_inferior)
10573 (post_attach): Move...
10574 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10575 (remove_fork_catchpoint, post_startup_inferior)
10576 (post_attach): ...here.
10577
7be2bb4f
TT
105782020-04-24 Tom Tromey <tromey@adacore.com>
10579
10580 * nat/windows-nat.h (struct windows_thread_info)
10581 <pc_adjusted>: New member.
10582 * windows-nat.c (windows_fetch_one_register): Check
10583 pc_adjusted.
10584 (windows_nat_target::get_windows_debug_event)
10585 (windows_nat_target::wait): Set pc_adjusted.
10586
f80cb3b4
TV
105872020-04-24 Tom de Vries <tdevries@suse.de>
10588
10589 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10590 Run gdb-add-index inside temp dir.
10591
29514b87
TT
105922020-04-23 Tom Tromey <tromey@adacore.com>
10593
10594 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10595 in loop.
10596
5939967b
LM
105972020-04-23 Luis Machado <luis.machado@linaro.org>
10598
10599 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10600 get_frame_register instead of gdbarch_unwind_pc.
10601
70bc38f5
TV
106022020-04-23 Tom de Vries <tdevries@suse.de>
10603
10604 * symtab.c (lookup_global_symbol): Prefer def over decl.
10605
de82891c
TV
106062020-04-23 Tom de Vries <tdevries@suse.de>
10607
10608 PR symtab/25807
10609 * block.c (best_symbol, better_symbol): Promote to external.
10610 * block.h (best_symbol, better_symbol): Declare.
10611 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10612 decl.
10613
ecc6c606
TT
106142020-04-23 Tom Tromey <tromey@adacore.com>
10615
10616 PR ada/25837:
10617 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10618 "const char *", not a "const std::string &".
10619 <name_and_matcher::operator==>: Update.
10620 * unittests/lookup_name_info-selftests.c: Change type of
10621 "result".
10622
740480b8
TT
106232020-04-23 Tom Tromey <tom@tromey.com>
10624
10625 * inferior.h (iterate_over_inferiors): Don't declare.
10626 * inferior.c (iterate_over_inferiors): Remove.
10627 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10628 Remove.
10629 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10630 use iterate_over_inferiors.
10631 (darwin_resume_inferior_it)
10632 (struct resume_inferior_threads_param)
10633 (darwin_resume_inferior_threads_it): Remove.
10634 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10635
ae3ab1f0
TV
106362020-04-23 Tom de Vries <tdevries@suse.de>
10637
10638 * blockframe.c (find_pc_partial_function): Use
10639 find_pc_sect_compunit_symtab rather than
10640 objfile->sf->qf->find_pc_sect_compunit_symtab.
10641
317d2668
TV
106422020-04-22 Tom de Vries <tdevries@suse.de>
10643
10644 PR symtab/25764
10645 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10646 in psymtabs.
10647
eea9e357
TV
106482020-04-22 Tom de Vries <tdevries@suse.de>
10649
10650 PR symtab/25801
10651 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10652 symtabs.
10653
3d5afab3
TV
106542020-04-22 Tom de Vries <tdevries@suse.de>
10655
10656 PR symtab/25700
10657 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10658 CU if already created.
10659
d43b7a2d
TBA
106602020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10661
10662 * infrun.c (displaced_step_fixup): Switch to the event_thread
10663 before calling displaced_step_restore, not after.
10664
d89edf9b
MM
106652020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10666
10667 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10668 its inferior is not recorded by us.
10669 (record_btrace_target_open): Replace call to
10670 all_non_exited_threads () with call to current_inferior
10671 ()->non_exited_threads ().
10672 (record_btrace_target::stop_recording): Likewise.
10673 (record_btrace_target::close): Likewise.
10674 (record_btrace_target::wait): Likewise.
10675 (record_btrace_target::record_stop_replaying): Likewise.
10676
5897fd49
MM
106772020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10678
10679 * btrace.c (btrace_enable): Throw an error on double enables and
10680 when enabling recording fails.
10681 (btrace_disable): Throw an error if the thread is not recorded.
10682
1a476b6d
MM
106832020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10684
10685 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10686 request if we do not have a thread_info.
10687
4778a5f8
TV
106882020-04-21 Tom de Vries <tdevries@suse.de>
10689
10690 PR gdb/25471
10691 * thread.c
10692 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10693 exception in get_frame_id.
10694
0fa7617d
TT
106952020-04-20 Tom Tromey <tromey@adacore.com>
10696
10697 * python/python.c (struct gdbpy_event): Mark move constructor as
10698 noexcept.
10699 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10700 constructor as noexcept.
10701 * completer.h (struct completion_result): Mark move constructor as
10702 noexcept.
10703 * completer.c (completion_result::completion_result): Use
10704 initialization style. Don't call reset_match_list.
10705
ad23bda0
MS
107062020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10707
10708 * MAINTAINERS (Write After Approval): Add myself.
10709
45e1f031
TT
107102020-04-18 Tom Tromey <tom@tromey.com>
10711
10712 * windows-tdep.c (init_w32_command_list)
10713 (w32_prefix_command_valid): Restore.
10714 (_initialize_windows_tdep): Call init_w32_command_list.
10715
08feed99
TT
107162020-04-18 Tom Tromey <tom@tromey.com>
10717
10718 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10719 * value.c (value_fn_field): Update.
10720 * valops.c (find_function_in_inferior)
10721 (value_allocate_space_in_inferior): Update.
10722 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10723 Update.
10724 * tui/tui-source.c (tui_source_window::set_contents): Update.
10725 * symtab.c (lookup_global_or_static_symbol)
10726 (find_function_start_sal_1, skip_prologue_sal)
10727 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10728 * symmisc.c (dump_msymbols, dump_symtab_1)
10729 (maintenance_print_one_line_table): Update.
10730 * symfile.c (init_entry_point_info, section_is_mapped)
10731 (list_overlays_command, simple_read_overlay_table)
10732 (simple_overlay_update_1): Update.
10733 * stap-probe.c (handle_stap_probe): Update.
10734 * stabsread.c (dbx_init_float_type, define_symbol)
10735 (read_one_struct_field, read_enum_type, read_range_type): Update.
10736 * source.c (info_line_command): Update.
10737 * python/python.c (gdbpy_source_objfile_script)
10738 (gdbpy_execute_objfile_script): Update.
10739 * python/py-type.c (save_objfile_types): Update.
10740 * python/py-objfile.c (py_free_objfile): Update.
10741 * python/py-inferior.c (python_new_objfile): Update.
10742 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10743 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10744 (maintenance_check_psymtabs): Update.
10745 * printcmd.c (info_address_command): Update.
10746 * objfiles.h (struct objfile) <arch>: New method, from
10747 get_objfile_arch.
10748 (get_objfile_arch): Don't declare.
10749 * objfiles.c (get_objfile_arch): Remove.
10750 (filter_overlapping_sections): Update.
10751 * minsyms.c (msymbol_is_function): Update.
10752 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10753 (output_nondebug_symbol): Update.
10754 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10755 (mdebug_expand_psymtab): Update.
10756 * machoread.c (macho_add_oso_symfile): Update.
10757 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10758 Update.
10759 * linux-fork.c (checkpoint_command): Update.
10760 * linespec.c (convert_linespec_to_sals): Update.
10761 * jit.c (finalize_symtab): Update.
10762 * infrun.c (insert_exception_resume_from_probe): Update.
10763 * ia64-tdep.c (ia64_find_unwind_table): Update.
10764 * hppa-tdep.c (internalize_unwinds): Update.
10765 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10766 Update.
10767 * gcore.c (call_target_sbrk): Update.
10768 * elfread.c (record_minimal_symbol, elf_symtab_read)
10769 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10770 (elf_gnu_ifunc_resolve_by_got): Update.
10771 * dwarf2/read.c (create_addrmap_from_index)
10772 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10773 (read_debug_names_from_section)
10774 (process_psymtab_comp_unit_reader, add_partial_symbol)
10775 (add_partial_subprogram, process_full_comp_unit)
10776 (read_file_scope, read_func_scope, read_lexical_block_scope)
10777 (read_call_site_scope, dwarf2_ranges_read)
10778 (dwarf2_record_block_ranges, dwarf2_add_field)
10779 (mark_common_block_symbol_computed, read_tag_pointer_type)
10780 (read_tag_string_type, dwarf2_init_float_type)
10781 (dwarf2_init_complex_target_type, read_base_type)
10782 (partial_die_info::read, partial_die_info::read)
10783 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10784 (dwarf2_fetch_die_loc_sect_off): Update.
10785 * dwarf2/loc.c (dwarf2_find_location_expression)
10786 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10787 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10788 (dwarf2_loc_desc_get_symbol_read_needs)
10789 (locexpr_describe_location_piece, locexpr_describe_location_1)
10790 (loclist_describe_location): Update.
10791 * dwarf2/index-write.c (write_debug_names): Update.
10792 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10793 * dtrace-probe.c (dtrace_process_dof): Update.
10794 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10795 (process_one_symbol): Update.
10796 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10797 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10798 (coff_read_enum_type): Update.
10799 * cli/cli-cmds.c (edit_command, list_command): Update.
10800 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10801 * breakpoint.c (create_overlay_event_breakpoint)
10802 (create_longjmp_master_breakpoint)
10803 (create_std_terminate_master_breakpoint)
10804 (create_exception_master_breakpoint, get_sal_arch): Update.
10805 * block.c (block_gdbarch): Update.
10806 * annotate.c (annotate_source_line): Update.
10807
0743fc83
TT
108082020-04-17 Tom Tromey <tromey@adacore.com>
10809
10810 * auto-load.c (show_auto_load_cmd): Remove.
10811 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10812 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10813 (maintenance_print_arc_command): Remove.
10814 * tui/tui-win.c (tui_command): Remove.
10815 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10816 * tui/tui-layout.c (tui_layout_command): Remove.
10817 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10818 * python/python.c (user_set_python, user_show_python): Remove.
10819 (_initialize_python): Use add_basic_prefix_cmd,
10820 add_show_prefix_cmd.
10821 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10822 (install_gdb_commands): Use add_basic_prefix_cmd,
10823 add_show_prefix_cmd.
10824 (info_guile_command): Remove.
10825 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10826 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10827 add_show_prefix_cmd.
10828 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10829 Remove do_set and do_show parameters.
10830 * cli/cli-style.c (set_style, show_style): Remove.
10831 (_initialize_cli_style): Use add_basic_prefix_cmd,
10832 add_show_prefix_cmd.
10833 (cli_style_option::add_setshow_commands): Remove do_set and
10834 do_show parameters.
10835 (cli_style_option::add_setshow_commands): Use
10836 add_basic_prefix_cmd, add_show_prefix_cmd.
10837 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10838 (set_style_name): Remove.
10839 * cli/cli-dump.c (dump_command, append_command): Remove.
10840 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10841 (tekhex_dump_command, binary_dump_command)
10842 (binary_append_command): Remove.
10843 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10844 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10845 (init_w32_command_list): Remove; move into ...
10846 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10847 * valprint.c (set_print, show_print, set_print_raw)
10848 (show_print_raw): Remove.
10849 (_initialize_valprint): Use add_basic_prefix_cmd,
10850 add_show_prefix_cmd.
10851 * typeprint.c (set_print_type, show_print_type): Remove.
10852 (_initialize_typeprint): Use add_basic_prefix_cmd,
10853 add_show_prefix_cmd.
10854 * record.c (set_record_command, show_record_command): Remove.
10855 (_initialize_record): Use add_basic_prefix_cmd,
10856 add_show_prefix_cmd.
10857 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10858 add_show_prefix_cmd.
10859 (info_command, show_command, set_debug, show_debug): Remove.
10860 * top.h (set_history, show_history): Don't declare.
10861 * top.c (set_history, show_history): Remove.
10862 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10863 (unset_tdesc_cmd): Remove.
10864 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10865 add_show_prefix_cmd.
10866 * symtab.c (info_module_command): Remove.
10867 (_initialize_symtab): Use add_basic_prefix_cmd.
10868 * symfile.c (overlay_command): Remove.
10869 (_initialize_symfile): Use add_basic_prefix_cmd.
10870 * sparc64-tdep.c (info_adi_command): Remove.
10871 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10872 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10873 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10874 add_show_prefix_cmd.
10875 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10876 (_initialize_serial): Use add_basic_prefix_cmd,
10877 add_show_prefix_cmd.
10878 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10879 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10880 add_show_prefix_cmd.
10881 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10882 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10883 add_show_prefix_cmd.
10884 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10885 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10886 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10887 add_show_prefix_cmd.
10888 * remote.c (remote_command, set_remote_cmd): Remove.
10889 (_initialize_remote): Use add_basic_prefix_cmd.
10890 * record-full.c (set_record_full_command)
10891 (show_record_full_command): Remove.
10892 (_initialize_record_full): Use add_basic_prefix_cmd,
10893 add_show_prefix_cmd.
10894 * record-btrace.c (cmd_set_record_btrace)
10895 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10896 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10897 (cmd_show_record_btrace_pt): Remove.
10898 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10899 add_show_prefix_cmd.
10900 * ravenscar-thread.c (set_ravenscar_command)
10901 (show_ravenscar_command): Remove.
10902 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10903 add_show_prefix_cmd.
10904 * mips-tdep.c (show_mips_command, set_mips_command)
10905 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10906 add_show_prefix_cmd.
10907 * maint.c (maintenance_command, maintenance_info_command)
10908 (maintenance_check_command, maintenance_print_command)
10909 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10910 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10911 add_show_prefix_cmd.
10912 (show_per_command_cmd): Remove.
10913 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10914 Remove.
10915 (maintenance_show_test_settings_cmd): Remove.
10916 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10917 add_show_prefix_cmd.
10918 * maint-test-options.c (maintenance_test_options_command):
10919 Remove.
10920 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10921 * macrocmd.c (macro_command): Remove
10922 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10923 * language.c (set_check, show_check): Remove.
10924 (_initialize_language): Use add_basic_prefix_cmd,
10925 add_show_prefix_cmd.
10926 * infcmd.c (unset_command): Remove.
10927 (_initialize_infcmd): Use add_basic_prefix_cmd.
10928 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10929 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10930 add_show_prefix_cmd.
10931 * go32-nat.c (go32_info_dos_command): Remove.
10932 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10933 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10934 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10935 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10936 (_initialize_frame): Use add_basic_prefix_cmd,
10937 add_show_prefix_cmd.
10938 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10939 (_initialize_dcache): Use add_basic_prefix_cmd,
10940 add_show_prefix_cmd.
10941 * cp-support.c (maint_cplus_command): Remove.
10942 (_initialize_cp_support): Use add_basic_prefix_cmd.
10943 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10944 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10945 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10946 add_basic_prefix_cmd, add_show_prefix_cmd.
10947 * breakpoint.c (save_command): Remove.
10948 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10949 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10950 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10951 add_show_prefix_cmd.
10952 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10953 (set_ada_command, show_ada_command): Remove.
10954 (_initialize_ada_language): Use add_basic_prefix_cmd,
10955 add_show_prefix_cmd.
10956 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10957
3557f442
KR
109582020-04-16 Kamil Rytarowski <n54@gmx.com>
10959
10960 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10961 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10962
16197208
SM
109632020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10964
10965 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10966 warning messages.
10967
00ac85d3
SM
109682020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10969
10970 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10971 import table is not at beginning of .idata section.
10972
381ce63f
PA
109732020-04-16 Pedro Alves <palves@redhat.com>
10974
10975 * inferior.c (delete_inferior): Use delete operator directly
10976 instead of delete_program_space.
10977 * progspace.c (add_program_space): New, factored out from
10978 program_space::program_space.
10979 (remove_program_space): New, factored out from
10980 delete_program_space.
10981 (program_space::program_space): Remove intro comment. Rewrite.
10982 (program_space::~program_space): Remove intro comment. Call
10983 remove_program_space.
10984 (delete_program_space): Delete.
10985 * progspace.h (program_space::program_space): Make explicit. Move
10986 intro comment here, adjusted.
10987 (program_space::~program_space): Move intro comment here,
10988 adjusted.
10989 (delete_program_space): Remove.
10990
a010605f
TT
109912020-04-16 Tom Tromey <tromey@adacore.com>
10992
10993 * windows-nat.c (windows_nat::handle_access_violation): New
10994 function.
10995 * nat/windows-nat.h (handle_access_violation): Declare.
10996 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10997 windows-nat.c. Call handle_access_violation.
10998
efba5c23
TV
109992020-04-16 Tom de Vries <tdevries@suse.de>
11000
11001 PR symtab/25791
11002 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11003 CUs without psymtab.
11004
97ed802d
KB
110052020-04-16 Kevin Buettner <kevinb@redhat.com>
11006
11007 * python/python.c (do_start_initialization): Don't call
11008 PyEval_InitThreads for Python 3.9 and beyond.
11009
c7d64809
KR
110102020-04-15 Kamil Rytarowski <n54@gmx.com>
11011
11012 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11013 thread functions.
11014 (obsd_nat_target::wait): Likewise.
11015
ce127a96
TT
110162020-04-15 Tom Tromey <tromey@adacore.com>
11017
11018 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11019 (DEBUG_EXCEPT): Use debug_printf.
11020
99f1bc6a
AB
110212020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11022
11023 * completer.c (class completion_tracker::completion_hash_entry)
11024 <hash_name>: New member function.
11025 (completion_tracker::discard_completions): New callback to hash a
11026 completion_hash_entry, pass this to htab_create_alloc.
11027
a0e9b532
JT
110282016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11029
11030 * windows-nat.c (windows_make_so): Warn rather than stopping with
11031 an error if realpath() fails.
11032
06ca5dd4
KR
110332020-04-14 Kamil Rytarowski <n54@gmx.com>
11034
11035 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11036 (nbsd_nat_target::info_proc): Add do_status.
11037
194d088f
TV
110382020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11039 Tom de Vries <tdevries@suse.de>
11040
11041 PR symtab/25718
11042 * psympriv.h (struct partial_symtab::read_symtab)
11043 (struct partial_symtab::expand_psymtab)
11044 (struct partial_symtab::read_dependencies): Update comments.
11045 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11046 read_symtab for includer.
11047 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11048 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11049 (struct dwarf2_include_psymtab::m_readin): Remove.
11050 (struct dwarf2_include_psymtab::includer): New member function.
11051 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11052
c1a66c06
TV
110532020-04-14 Tom de Vries <tdevries@suse.de>
11054
11055 PR symtab/25720
11056 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11057 with NULL symbol_matcher and lookup_name.
11058 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11059 and lookup_name.
11060 * dwarf2/read.c (dw2_expand_symtabs_matching)
11061 (dw2_debug_names_expand_symtabs_matching): Same.
11062 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11063 Make lookup_name a pointer. Update comment.
11064 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11065 lookup_name being a pointer.
11066 * symfile.c (expand_symtabs_matching): Same.
11067 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11068 * linespec.c (iterate_over_all_matching_symtabs): Same.
11069
400b5eca
TT
110702020-04-13 Tom Tromey <tom@tromey.com>
11071
11072 * run-on-main-thread.c: Update include.
11073 * unittests/main-thread-selftests.c: Update include.
11074 * tui/tui-win.c: Update include.
11075 * tui/tui-io.c: Update include.
11076 * tui/tui-interp.c: Update include.
11077 * tui/tui-hooks.c: Update include.
11078 * top.h: Update include.
11079 * top.c: Update include.
11080 * ser-base.c: Update include.
11081 * remote.c: Update include.
11082 * remote-notif.c: Update include.
11083 * remote-fileio.c: Update include.
11084 * record-full.c: Update include.
11085 * record-btrace.c: Update include.
11086 * python/python.c: Update include.
11087 * posix-hdep.c: Update include.
11088 * mingw-hdep.c: Update include.
11089 * mi/mi-main.c: Update include.
11090 * mi/mi-interp.c: Update include.
11091 * main.c: Update include.
11092 * linux-nat.c: Update include.
11093 * interps.c: Update include.
11094 * infrun.c: Update include.
11095 * inf-loop.c: Update include.
11096 * event-top.c: Update include.
11097 * event-loop.c: Move to ../gdbsupport/.
11098 * event-loop.h: Move to ../gdbsupport/.
11099 * async-event.h: Update include.
11100 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11101
93b54c8e
TT
111022020-04-13 Tom Tromey <tom@tromey.com>
11103
11104 * tui/tui-win.c: Include async-event.h.
11105 * remote.c: Include async-event.h.
11106 * remote-notif.c: Include async-event.h.
11107 * record-full.c: Include async-event.h.
11108 * record-btrace.c: Include async-event.h.
11109 * infrun.c: Include async-event.h.
11110 * event-top.c: Include async-event.h.
11111 * event-loop.h: Move some declarations to async-event.h.
11112 * event-loop.c: Don't include ser-event.h or top.h. Move some
11113 code to async-event.c.
11114 * async-event.h: New file.
11115 * async-event.c: New file.
11116 * Makefile.in (COMMON_SFILES): Add async-event.c.
11117 (HFILES_NO_SRCDIR): Add async-event.h.
11118
c1cd3163
TT
111192020-04-13 Tom Tromey <tom@tromey.com>
11120
11121 * utils.c (flush_streams): New function.
11122 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11123
29f2bf4f
TT
111242020-04-13 Tom Tromey <tom@tromey.com>
11125
11126 * event-loop.c (handle_file_event): Use warning, not
11127 printf_unfiltered.
11128
98029d02
TT
111292020-04-13 Tom Tromey <tom@tromey.com>
11130
11131 * event-loop.c: Include <chrono>.
11132
06cc9596
TT
111332020-04-13 Tom Tromey <tom@tromey.com>
11134
11135 * gdb_select.h: Move to ../gdbsupport/.
11136 * event-loop.c: Update include path.
11137 * top.c: Update include path.
11138 * ser-base.c: Update include path.
11139 * ui-file.c: Update include path.
11140 * ser-tcp.c: Update include path.
11141 * guile/scm-ports.c: Update include path.
11142 * posix-hdep.c: Update include path.
11143 * ser-unix.c: Update include path.
11144 * gdb_usleep.c: Update include path.
11145 * mingw-hdep.c: Update include path.
11146 * inflow.c: Update include path.
11147 * infrun.c: Update include path.
11148 * event-top.c: Update include path.
11149
8ae8e197
TT
111502020-04-13 Tom Tromey <tom@tromey.com>
11151
11152 * configure: Rebuild.
11153 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11154
58cf28e8
TT
111552020-04-13 Tom Tromey <tom@tromey.com>
11156
11157 * event-loop.h (start_event_loop): Don't declare.
11158 * event-loop.c (start_event_loop): Move...
11159 * main.c (start_event_loop): ...here. Now static.
11160
b7f999ae
SDJ
111612020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11162
11163 * MAINTAINERS: Update my email address.
11164
1085dfd4
KR
111652020-04-12 Kamil Rytarowski <n54@gmx.com>
11166
11167 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11168 IP_ALL.
11169
49d1d1f5
KR
111702020-04-12 Kamil Rytarowski <n54@gmx.com>
11171
11172 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11173 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11174
b4848d2a
KR
111752020-04-12 Kamil Rytarowski <n54@gmx.com>
11176
11177 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11178 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11179
51c133d5
KR
111802020-04-12 Kamil Rytarowski <n54@gmx.com>
11181
11182 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11183
54b8cbd0
KR
111842020-04-11 Kamil Rytarowski <n54@gmx.com>
11185
11186 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11187 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11188 (nbsd_nat_target::info_proc): New functions.
11189 * nbsd-nat.c (kinfo_get_vmmap): New function.
11190 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11191 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11192 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11193 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11194 functions.
11195 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11196 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11197 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11198 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11199 (KINFO_VME_FLAG_GROWS_DOWN): New.
11200
cf83625d
AS
112012020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11202
11203 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11204 bit shift.
11205
0c4311ab
TT
112062020-04-10 Tom Tromey <tromey@adacore.com>
11207
11208 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11209
3e65b3e9
TT
112102020-04-10 Tom Tromey <tromey@adacore.com>
11211
11212 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11213 separate debug files.
11214
13302e95
HD
112152020-04-10 Hannes Domani <ssbssa@yahoo.de>
11216
11217 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11218 Move to...
11219 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11220 ... here.
11221 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11222 Check for STATUS_WX86_BREAKPOINT.
11223 (windows_nat_target::wait): Same.
11224
bdfc1e8a
TV
112252020-04-10 Tom de Vries <tdevries@suse.de>
11226
11227 PR cli/25808
11228 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11229
f4460aec
SM
112302020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11231
11232 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11233 (Write After Approval): Remove Tom de Vries.
11234
a25198bb
BE
112352020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11236
11237 revert partially:
11238 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11239
aac66a4c
SM
11240 * buildsym.c (record_line): Fix undefined behavior and preserve
11241 lines at eof.
a25198bb 11242
206c98a6
KR
112432020-04-09 Kamil Rytarowski <n54@gmx.com>
11244
11245 * auxv.h (svr4_auxv_parse): New.
11246 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11247 and generic_auxv_parse.
11248 (svr4_auxv_parse): Add.
11249 * obsd-tdep.c: Include "auxv.h".
11250 (obsd_auxv_parse): Remove.
11251 (obsd_init_abi): Remove comment.
11252 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11253 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11254 * nbsd-tdep.c: Include "auxv.h".
11255 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11256
71fbdbaf
TT
112572020-04-08 Tom Tromey <tromey@adacore.com>
11258
11259 * nat/windows-nat.h (last_wait_event): Don't declare.
11260 (wait_for_debug_event): Update comment.
11261 * nat/windows-nat.c (last_wait_event): Now static.
11262
2c1d95e8
TT
112632020-04-08 Tom Tromey <tromey@adacore.com>
11264
11265 * windows-nat.c (wait_for_debug_event): Move to
11266 nat/windows-nat.c.
11267 * nat/windows-nat.h (wait_for_debug_event): Declare.
11268 * nat/windows-nat.c (wait_for_debug_event): Move from
11269 windows-nat.c. No longer static.
11270
d2977bc4
TT
112712020-04-08 Tom Tromey <tromey@adacore.com>
11272
11273 * windows-nat.c (get_windows_debug_event): Use
11274 fetch_pending_stop.
11275 * nat/windows-nat.h (fetch_pending_stop): Declare.
11276 * nat/windows-nat.c (fetch_pending_stop): New function.
11277
e758e19c
TT
112782020-04-08 Tom Tromey <tromey@adacore.com>
11279
11280 * windows-nat.c (windows_continue): Use matching_pending_stop and
11281 continue_last_debug_event.
11282 * nat/windows-nat.h (matching_pending_stop)
11283 (continue_last_debug_event): Declare.
11284 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11285 (matching_pending_stop, continue_last_debug_event): New
11286 functions.
11287
8d30e395
TT
112882020-04-08 Tom Tromey <tromey@adacore.com>
11289
11290 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11291 (handle_exception_result): Move to nat/windows-nat.h.
11292 (DEBUG_EXCEPTION_SIMPLE): Remove.
11293 (windows_nat::handle_ms_vc_exception): New function.
11294 (handle_exception): Move to nat/windows-nat.c.
11295 (get_windows_debug_event): Update.
11296 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11297 nat/windows-nat.c.
11298 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11299 (handle_exception_result): Move from windows-nat.c.
11300 (handle_exception): Declare.
11301 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11302 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11303 windows-nat.c.
11304
29de418d
TT
113052020-04-08 Tom Tromey <tromey@adacore.com>
11306
11307 * windows-nat.c (exception_count, event_count): Remove.
11308 (handle_exception, get_windows_debug_event)
11309 (do_initial_windows_stuff): Update.
11310
a816ba18
TT
113112020-04-08 Tom Tromey <tromey@adacore.com>
11312
11313 * windows-nat.c (windows_nat::handle_load_dll)
11314 (windows_nat::handle_unload_dll): Rename. No longer static.
11315 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11316 Declare.
11317
a00caa12
TT
113182020-04-08 Tom Tromey <tromey@adacore.com>
11319
11320 * complaints.h (stop_whining): Declare at top-level.
11321 (complaint): Don't declare stop_whining.
11322
d41b524f
TT
113232020-04-08 Tom Tromey <tromey@adacore.com>
11324
11325 * windows-nat.c (windows_nat::handle_output_debug_string):
11326 Rename. No longer static.
11327 * nat/windows-nat.h (handle_output_debug_string): Declare.
11328
3c76026d
TT
113292020-04-08 Tom Tromey <tromey@adacore.com>
11330
11331 * windows-nat.c (current_process_handle, current_process_id)
11332 (main_thread_id, last_sig, current_event, last_wait_event)
11333 (current_windows_thread, desired_stop_thread_id, pending_stops)
11334 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11335 (display_selectors, fake_create_process)
11336 (get_windows_debug_event): Update.
11337 * nat/windows-nat.h (current_process_handle, current_process_id)
11338 (main_thread_id, last_sig, current_event, last_wait_event)
11339 (current_windows_thread, desired_stop_thread_id, pending_stops)
11340 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11341 * nat/windows-nat.c (current_process_handle, current_process_id)
11342 (main_thread_id, last_sig, current_event, last_wait_event)
11343 (current_windows_thread, desired_stop_thread_id, pending_stops)
11344 (siginfo_er): New globals. Move from windows-nat.c.
11345
9d8679cc
TT
113462020-04-08 Tom Tromey <tromey@adacore.com>
11347
11348 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11349 (handle_load_dll): Update.
11350 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11351
28688adf
TT
113522020-04-08 Tom Tromey <tromey@adacore.com>
11353
11354 * windows-nat.c (enum thread_disposition_type): Move to
11355 nat/windows-nat.h.
11356 (windows_nat::thread_rec): Rename from thread_rec. No longer
11357 static.
11358 (windows_add_thread, windows_nat_target::fetch_registers)
11359 (windows_nat_target::store_registers, handle_exception)
11360 (windows_nat_target::resume, get_windows_debug_event)
11361 (windows_nat_target::get_tib_address)
11362 (windows_nat_target::thread_name)
11363 (windows_nat_target::thread_alive): Update.
11364 * nat/windows-nat.h (enum thread_disposition_type): Move from
11365 windows-nat.c.
11366 (thread_rec): Declare.
11367
4834dad0
TT
113682020-04-08 Tom Tromey <tromey@adacore.com>
11369
11370 * windows-nat.c: Add "using namespace".
11371 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11372 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11373
65bafd5b
TT
113742020-04-08 Tom Tromey <tromey@adacore.com>
11375
11376 * nat/windows-nat.h (struct windows_thread_info): Declare
11377 destructor.
11378 * nat/windows-nat.c (~windows_thread_info): New.
11379
0a4afda3
TT
113802020-04-08 Tom Tromey <tromey@adacore.com>
11381
11382 PR gdb/22992
11383 * windows-nat.c (current_event): Update comment.
11384 (last_wait_event, desired_stop_thread_id): New globals.
11385 (struct pending_stop): New.
11386 (pending_stops): New global.
11387 (windows_nat_target) <stopped_by_sw_breakpoint>
11388 <supports_stopped_by_sw_breakpoint>: New methods.
11389 (windows_fetch_one_register): Add assertions. Adjust PC.
11390 (windows_continue): Handle pending stops. Suspend other threads
11391 when stepping. Use last_wait_event
11392 (wait_for_debug_event): New function.
11393 (get_windows_debug_event): Use wait_for_debug_event. Handle
11394 pending stops. Queue spurious stops.
11395 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11396 (windows_nat_target::kill): Use wait_for_debug_event.
11397 * nat/windows-nat.h (struct windows_thread_info)
11398 <stopped_at_software_breakpoint>: New field.
11399 * nat/windows-nat.c (windows_thread_info::resume): Clear
11400 stopped_at_software_breakpoint.
11401
8e61ebec
TT
114022020-04-08 Tom Tromey <tromey@adacore.com>
11403
11404 * windows-nat.c (enum thread_disposition_type): New.
11405 (thread_rec): Replace "get_context" parameter with "disposition";
11406 change type.
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
98a03287
TT
114142020-04-08 Tom Tromey <tromey@adacore.com>
11415
11416 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11417 (windows_continue): Use windows_continue::resume.
11418 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11419 resume>: Declare new methods.
11420 * nat/windows-nat.c: New file.
11421 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11422
7c7411bc
TT
114232020-04-08 Tom Tromey <tromey@adacore.com>
11424
11425 * windows-nat.c (windows_add_thread, windows_delete_thread)
11426 (windows_nat_target::fetch_registers)
11427 (windows_nat_target::store_registers, fake_create_process)
11428 (windows_nat_target::resume, windows_nat_target::resume)
11429 (get_windows_debug_event, windows_nat_target::wait)
11430 (windows_nat_target::pid_to_str)
11431 (windows_nat_target::get_tib_address)
11432 (windows_nat_target::get_ada_task_ptid)
11433 (windows_nat_target::thread_name)
11434 (windows_nat_target::thread_alive): Use lwp, not tid.
11435
2950fdf7
TT
114362020-04-08 Tom Tromey <tromey@adacore.com>
11437
11438 * windows-nat.c (handle_exception)
11439 (windows_nat_target::thread_name): Update.
11440 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11441 <name>: Now unique_xmalloc_ptr.
11442
62fe396b
TT
114432020-04-08 Tom Tromey <tromey@adacore.com>
11444
11445 * windows-nat.c (thread_rec)
11446 (windows_nat_target::fetch_registers): Update.
11447 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11448 Update comment.
11449 <debug_registers_changed, reload_context>: Now bool.
11450
e9534bd2
TT
114512020-04-08 Tom Tromey <tromey@adacore.com>
11452
11453 * windows-nat.c (windows_add_thread): Use new.
11454 (windows_init_thread_list, windows_delete_thread): Use delete.
11455 (get_windows_debug_event): Update.
11456 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11457 destructor, and initializers.
11458
ae1f8880
TT
114592020-04-08 Tom Tromey <tromey@adacore.com>
11460
11461 * windows-nat.c (struct windows_thread_info): Remove.
11462 * nat/windows-nat.h: New file.
11463
55a1e039
TT
114642020-04-08 Tom Tromey <tromey@adacore.com>
11465
11466 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11467 (thread_rec, windows_add_thread, windows_delete_thread)
11468 (windows_continue): Update.
11469
93366324
TT
114702020-04-08 Tom Tromey <tromey@adacore.com>
11471
11472 * windows-nat.c (struct windows_thread_info): Remove typedef.
11473 (thread_head): Remove.
11474 (thread_list): New global.
11475 (thread_rec, windows_add_thread, windows_init_thread_list)
11476 (windows_delete_thread, windows_continue): Update.
11477
0f2265e2
SM
114782020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11479
11480 * windows-tdep.h (windows_init_abi): Add comment.
11481 (cygwin_init_abi): New declaration.
11482 * windows-tdep.c: Split signal enumeration in two, one for
11483 Windows and one for Cygwin.
11484 (windows_gdb_signal_to_target): Only deal with signal of the
11485 Windows OS ABI.
11486 (cygwin_gdb_signal_to_target): New function.
11487 (windows_init_abi): Rename to windows_init_abi_common, don't set
11488 gdb_signal_to_target gdbarch method. Add new new function with
11489 this name.
11490 (cygwin_init_abi): New function.
11491 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11492 comment. Don't call windows_init_abi.
11493 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11494 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11495 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11496 i386_windows_init_abi_common, don't call windows_init_abi. Add
11497 a new function of this name.
11498 (i386_cygwin_init_abi): New function.
11499 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11500 OS ABI Cygwin.
11501
3810f182
SM
115022020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11503
11504 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11505 parameter.c.
11506 (dwarf2_read_gdb_index): Update.
11507
063f8e80
KR
115082020-04-07 Kamil Rytarowski <n54@gmx.com>
11509
11510 * nbsd-tdep.c: Include "objfiles.h".
11511 (nbsd_skip_solib_resolver): New.
11512 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11513
85a9510c 115142020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11515
11516 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11517 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11518 with DW_LLE_base_addressx are being emitted in DWARFv5.
11519 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11520 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11521 unsigned integer.
11522
9fc3eaae 115232020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11524
11525 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11526 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11527 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11528 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11529 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11530 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11531 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11532
11533
41144253 115342020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11535
11536 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11537 (read_loclist_index): New function definition.
11538 (lookup_loclist_base): New function definition.
11539 (read_loclist_header): New function definition.
11540 (dwarf2_cu): Add loclist_base and loclist_header field.
11541 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11542 (read_full_die_1): Read the value of DW_AT_loclists_base.
11543 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11544 (read_attribute_value): Handle DW_FORM_loclistx.
11545 (skip_one_die): Handle DW_FORM_loclistx.
11546 (loclist_header): New structure declaration.
11547 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11548
9f4e76a4
SM
115492020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11550
11551 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11552 constructor. Remove `addr` parameter from other constructor and
11553 add `per_cu` parameter.
11554 * dwarf2/read.c (create_partial_symtab): Update.
11555
25c11aca
TV
115562020-04-07 Tom de Vries <tdevries@suse.de>
11557
11558 PR symtab/25796
11559 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11560 (partial_die_info::fixup): Inherit has_const_value.
11561
5707e24b
TV
115622020-04-07 Tom de Vries <tdevries@suse.de>
11563
11564 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11565 symbols without address.
11566
05f00e22
KR
115672020-04-06 Kamil Rytarowski <n54@gmx.com>
11568
11569 * nbsd-nat.h (struct thread_info): Add forward declaration.
11570 (nbsd_nat_target::thread_alive): Add.
11571 (nbsd_nat_target::thread_name): Likewise.
11572 (nbsd_nat_target::update_thread_list): Likewise.
11573 (update_thread_list::post_attach): Likewise.
11574 (post_attach::pid_to_str): Likewise.
11575 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11576 (nbsd_thread_lister): Add.
11577 (nbsd_nat_target::thread_alive): Likewise.
11578 (nbsd_nat_target::thread_name): Likewise.
11579 (nbsd_add_threads): Likewise.
11580 (update_thread_list::post_attach): Likewise.
11581 (nbsd_nat_target::update_thread_list): Likewise.
11582 (post_attach::pid_to_str): Likewise.
11583
6ee448cc
TT
115842020-04-06 Tom Tromey <tromey@adacore.com>
11585
11586 * ada-valprint.c (print_variant_part): Extract the variant field.
11587 (print_field_values): Use the field as the outer value when
11588 recursing.
11589
dea34e8c
TT
115902020-04-06 Tom Tromey <tromey@adacore.com>
11591
11592 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11593 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11594 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11595 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11596 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11597
93689ce9
TT
115982020-04-06 Tom Tromey <tromey@adacore.com>
11599
11600 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11601 TYPE_CODE_ERROR.
11602
79743962
KR
116032020-04-06 Kamil Rytarowski <n54@gmx.com>
11604
11605 * nbsd-tdep.c: Include "gdbarch.h".
11606 Define enum with NetBSD signal numbers.
11607 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11608 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11609 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11610 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11611 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11612 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11613 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11614 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11615 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11616 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11617 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11618 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11619
9e7c9a03
HD
116202020-04-03 Hannes Domani <ssbssa@yahoo.de>
11621
11622 PR gdb/25325
11623 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11624
d9e49b61
TT
116252020-04-03 Tom Tromey <tromey@adacore.com>
11626
11627 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11628 Read constant block.
11629
e0fc5c3f
SM
116302020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11631
11632 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11633 (gdb_bfd_get_full_section_contents): New declaration.
11634 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11635 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11636 gdb_bfd_get_full_section_contents.
11637
e2ff18a0
SM
116382020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11639
11640 * exec.c (build_section_table): Replace internal_error with
11641 gdb_assert.
11642 (section_table_xfer_memory_partial): Likewise.
11643 * mdebugread.c (parse_partial_symbols): Likewise.
11644 * psymtab.c (lookup_partial_symbol): Likewise.
11645 * utils.c (wrap_here): Likewise.
11646
0830d301
TT
116472020-04-02 Tom Tromey <tromey@adacore.com>
11648
11649 * f-lang.c (build_fortran_types): Use arch_type to initialize
11650 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11651
e7da7f8f
TT
116522020-04-02 Tom Tromey <tromey@adacore.com>
11653
11654 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11655 of attributes.
11656
c90d28ac
AB
116572020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11658 Bernd Edlinger <bernd.edlinger@hotmail.de>
11659 Tom Tromey <tromey@adacore.com>
11660
11661 * buildsym.c (buildsym_compunit::record_line): Remove
11662 deduplication code.
11663
1aa98955
TV
116642020-04-02 Tom de Vries <tdevries@suse.de>
11665
11666 PR ada/24671
11667 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11668
d3214198
TV
116692020-04-02 Tom de Vries <tdevries@suse.de>
11670
11671 * dwarf2/read.c (dwarf2_gdb_index_functions,
11672 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11673 NULL.
11674 * psymtab.c (psym_lookup_global_symbol_language): New function.
11675 (psym_functions): Init psym_lookup_global_symbol_language with
11676 psym_lookup_global_symbol_language.
11677 * symfile-debug.c (debug_sym_quick_functions): Init
11678 lookup_global_symbol_language with NULL.
11679 * symfile.c (set_initial_language): Remove fixme comment.
11680 * symfile.h (struct quick_symbol_functions): Add
11681 lookup_global_symbol_language.
11682 * symtab.c (find_quick_global_symbol_language): New function.
11683 (find_main_name): Use find_quick_global_symbol_language.
11684
2836752f
SM
116852020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11686
11687 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11688
64dc2d4b
BE
116892020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11690
11691 * buildsym.c (record_line): Fix undefined behavior and preserve
11692 lines at eof.
11693
bbe3dc41
BE
116942020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11695
11696 * buildsym.c (record_line): Fix the resizing condition.
11697
6b4a335b
TT
116982020-04-01 Tom Tromey <tom@tromey.com>
11699
11700 * value.h (value_literal_complex): Add comment.
11701 * valops.c (value_literal_complex): Refer to value.h.
11702
3638a098
TT
117032020-04-01 Tom Tromey <tom@tromey.com>
11704
11705 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11706 (scalar_type): New rule, from typebase.
11707 (typebase): Use scalar_type. Recognize complex types.
11708 (field_name): Handle FLOAT_KEYWORD.
11709 (ident_tokens): Add _Complex and __complex__.
11710
c34e8714
TT
117112020-04-01 Tom Tromey <tom@tromey.com>
11712
11713 PR exp/25299:
11714 * valarith.c (promotion_type, complex_binop): New functions.
11715 (scalar_binop): Handle complex numbers. Use promotion_type.
11716 (value_pos, value_neg, value_complement): Handle complex numbers.
11717
fa649bb7
TT
117182020-04-01 Tom Tromey <tom@tromey.com>
11719
11720 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11721 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11722 (parse_number): Handle complex numbers.
11723
981c08ce
TT
117242020-04-01 Tom Tromey <tom@tromey.com>
11725
11726 * c-valprint.c (c_decorations): Change complex suffix to "i".
11727
4c99290d
TT
117282020-04-01 Tom Tromey <tom@tromey.com>
11729
11730 * valprint.c (generic_value_print_complex): Use accessors.
11731 * value.h (value_real_part, value_imaginary_part): Declare.
11732 * valops.c (value_real_part, value_imaginary_part): New
11733 functions.
11734 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11735
5b930b45
TT
117362020-04-01 Tom Tromey <tom@tromey.com>
11737
11738 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11739 (read_range_type): Update.
11740 * mdebugread.c (basic_type): Update.
11741 * go-lang.c (build_go_types): Use init_complex_type.
11742 * gdbtypes.h (struct main_type) <complex_type>: New member.
11743 (init_complex_type): Update.
11744 (arch_complex_type): Don't declare.
11745 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11746 Make name if none given. Use alloc_type_copy. Look for cached
11747 complex type.
11748 (arch_complex_type): Remove.
11749 (gdbtypes_post_init): Use init_complex_type.
11750 * f-lang.c (build_fortran_types): Use init_complex_type.
11751 * dwarf2/read.c (read_base_type): Update.
11752 * d-lang.c (build_d_types): Use init_complex_type.
11753 * ctfread.c (read_base_type): Update.
11754
53cccef1
TBA
117552020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11756
11757 * infrun.c (stop_all_threads): Update assertion, plus when
11758 stopping threads, take into account that we might be trying
11759 to stop an all-stop target.
11760 (stop_waiting): Call 'stop_all_threads' if there exists a
11761 non-stop target.
11762
a0714d30
TBA
117632020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11764
11765 * target.h (exists_non_stop_target): New function declaration.
11766 * target.c (exists_non_stop_target): New function.
11767
60e22c1e
HD
117682020-04-01 Hannes Domani <ssbssa@yahoo.de>
11769
11770 PR gdb/24789
11771 * eval.c (is_integral_or_integral_reference): New function.
11772 (evaluate_subexp_standard): Allow integer references in
11773 pointer arithmetic.
11774
e139a727
TBA
117752020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11776
11777 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11778 check for no ptid in the stop reply when the target is non-stop.
11779
e0802d59
TT
117802020-04-01 Tom Tromey <tromey@adacore.com>
11781
11782 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11783 "name" parameter to rvalue reference. Initialize m_name_holder.
11784 <lookup_name_info>: New overloads.
11785 <name>: Return gdb::string_view.
11786 <c_str>: New method.
11787 <make_ignore_params>: Update.
11788 <search_name_hash>: Update.
11789 <language_lookup_name>: Return const char *.
11790 <m_name>: Change type.
11791 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11792 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11793 (lookup_name_info::match_any): Update.
11794 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11795 Update.
11796 * minsyms.c (linkage_name_str): Update.
11797 * language.c (default_symbol_name_matcher): Update.
11798 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11799 Update.
11800 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11801 (ada_lookup_name_info::ada_lookup_name_info): Update.
11802 (literal_symbol_name_matcher): Update.
11803
8c072cb6
TT
118042020-04-01 Tom Tromey <tromey@adacore.com>
11805
11806 * psymtab.c (psymtab_search_name): Remove function.
11807 (psym_lookup_symbol): Create search name and lookup name here.
11808 (lookup_partial_symbol): Remove "name" parameter; add
11809 lookup_name.
11810 (psym_expand_symtabs_for_function): Update.
11811
6f29a534
TT
118122020-03-31 Joel Jones <joelkevinjones@gmail.com>
11813
11814 PR tui/25597:
11815 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11816
af62665e
TT
118172020-03-31 Tom Tromey <tromey@adacore.com>
11818
11819 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11820 memcpy.
11821
d1a89da5
NC
118222020-03-30 Nelson Chu <nelson.chu@sifive.com>
11823
11824 * features/riscv/32bit-csr.xml: Regenerated.
11825 * features/riscv/64bit-csr.xml: Regenerated.
11826
d8af9068
TT
118272020-03-30 Tom Tromey <tromey@adacore.com>
11828
11829 * ada-valprint.c (print_variant_part): Update.
11830 * ada-lang.h (ada_which_variant_applies): Update.
11831 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11832 outer_valaddr parameters; replace with "outer" value parameter.
11833 (to_fixed_variant_branch_type): Update.
11834
227c0bf4
PFC
118352020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11836
11837 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11838 <list>. Remove inclusion of observable.h.
11839 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11840 (struct arch_lwp_info): New struct.
11841 (class ppc_linux_dreg_interface): New class.
11842 (struct ppc_linux_process_info): New struct.
11843 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11844 <low_new_clone, low_forget_process, low_prepare_to_resume>
11845 <copy_thread_dreg_state, mark_thread_stale>
11846 <mark_debug_registers_changed, register_hw_breakpoint>
11847 <clear_hw_breakpoint, register_wp, clear_wp>
11848 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11849 <num_memory_accesses, get_trigger_type>
11850 <create_watchpoint_request, hwdebug_point_cmp>
11851 <init_arch_lwp_info, get_arch_lwp_info>
11852 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11853 methods.
11854 <struct ptid_hash>: New inner struct.
11855 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11856 members.
11857 (saved_dabr_value, hwdebug_info, max_slots_number)
11858 (struct hw_break_tuple, struct thread_points, ppc_threads)
11859 (have_ptrace_hwdebug_interface)
11860 (hwdebug_find_thread_points_by_tid)
11861 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11862 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11863 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11864 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11865 use m_dreg_interface.
11866 (hwdebug_point_cmp): Change to...
11867 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11868 reference arguments instead of pointers.
11869 (ppc_linux_nat_target::ranged_break_num_registers): Use
11870 m_dreg_interface.
11871 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11872 m_dreg_interface. Call register_hw_breakpoint.
11873 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11874 m_dreg_interface. Call clear_hw_breakpoint.
11875 (get_trigger_type): Change to...
11876 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11877 comment.
11878 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11879 use m_dreg_interface. Call register_hw_breakpoint.
11880 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11881 use m_dreg_interface. Call clear_hw_breakpoint.
11882 (can_use_watchpoint_cond_accel): Change to...
11883 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11884 method. Update comment, use m_dreg_interface and
11885 m_process_info.
11886 (calculate_dvc): Change to...
11887 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11888 m_dreg_interface.
11889 (num_memory_accesses): Change to...
11890 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11891 (check_condition): Change to...
11892 (ppc_linux_nat_target::check_condition): ...this method.
11893 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11894 comment, use m_dreg_interface.
11895 (create_watchpoint_request): Change to...
11896 (ppc_linux_nat_target::create_watchpoint_request): ...this
11897 method. Use m_dreg_interface.
11898 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11899 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11900 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11901 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11902 (ppc_linux_nat_target::low_forget_process)
11903 (ppc_linux_nat_target::low_new_fork)
11904 (ppc_linux_nat_target::low_new_clone)
11905 (ppc_linux_nat_target::low_delete_thread)
11906 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11907 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11908 only call mark_thread_stale.
11909 (ppc_linux_thread_exit): Remove.
11910 (ppc_linux_nat_target::stopped_data_address): Change to...
11911 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11912 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11913 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11914 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11915 comment. Call low_stopped_data_address.
11916 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11917 m_dreg_interface.
11918 (ppc_linux_nat_target::masked_watch_num_registers): Use
11919 m_dreg_interface.
11920 (ppc_linux_nat_target::copy_thread_dreg_state)
11921 (ppc_linux_nat_target::mark_thread_stale)
11922 (ppc_linux_nat_target::mark_debug_registers_changed)
11923 (ppc_linux_nat_target::register_hw_breakpoint)
11924 (ppc_linux_nat_target::clear_hw_breakpoint)
11925 (ppc_linux_nat_target::register_wp)
11926 (ppc_linux_nat_target::clear_wp)
11927 (ppc_linux_nat_target::init_arch_lwp_info)
11928 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11929 (_initialize_ppc_linux_nat): Remove observer callback.
11930
4db10d8f
PFC
119312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11932
11933 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11934 (ppc_linux_nat_target::auxv_parse)
11935 (ppc_linux_nat_target::read_description)
11936 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11937 Move up.
11938
1310c1b0
PFC
119392020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11940
11941 * linux-nat.h (low_new_clone): New method.
11942 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11943
69b037c3
SM
119442020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11945
11946 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11947 (dbx_expand_psymtab): ... this.
11948 (start_psymtab): Update.
11949 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11950 (mdebug_expand_psymtab): ... this.
11951 (parse_partial_symbols): Update.
11952 (new_psymtab): Update.
11953 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11954 (xcoff_expand_psymtab): ... this.
11955 (xcoff_start_psymtab): Update.
11956
48993951
SM
119572020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11958
11959 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11960 <expand_dependencies>: ... this.
11961 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11962 (partial_symtab::expand_dependencies): ... this.
11963 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11964 Update.
11965 (dwarf2_psymtab::expand_psymtab): Update.
11966 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11967 * mdebugread.c (psymtab_to_symtab_1): Update.
11968 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11969
3ad83046
SM
119702020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11971
11972 * psympriv.h (discard_psymtab): Remove.
11973 * dbxread.c (dbx_end_psymtab): Update.
11974 * xcoffread.c (xcoff_end_psymtab): Update.
11975
4d1b9ab6
TT
119762020-03-28 Tom Tromey <tom@tromey.com>
11977
11978 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11979 comment.
11980
f1749218
TT
119812020-03-28 Tom Tromey <tom@tromey.com>
11982
11983 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11984
ebea7626
HD
119852020-03-27 Hannes Domani <ssbssa@yahoo.de>
11986
11987 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11988
a879b4d5
JB
119892020-03-26 John Baldwin <jhb@FreeBSD.org>
11990
11991 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11992
0826b30a
TT
119932020-03-26 Tom Tromey <tom@tromey.com>
11994
11995 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11996 (mark_common_block_symbol_computed, read_tag_string_type)
11997 (attr_to_dynamic_prop, read_subrange_type): Update.
11998 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11999 to be methods on struct attribute.
12000 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12001 (read_call_site_scope, partial_die_info::read)
12002 (partial_die_info::read, lookup_die_type, follow_die_ref):
12003 Update.
12004 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12005 from dwarf2_get_ref_die_offset.
12006 (attribute::constant_value): New method, from
12007 dwarf2_get_attr_constant_value.
12008 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12009 Declare method.
12010 <constant_value>: New method.
12011
2b2558bf
TT
120122020-03-26 Tom Tromey <tom@tromey.com>
12013
12014 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12015 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12016 (dwarf_type_encoding_name): Move to stringify.c.
12017 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12018 * dwarf2/stringify.c: New file.
12019 * dwarf2/stringify.h: New file.
12020
eeb64781
TT
120212020-03-26 Tom Tromey <tom@tromey.com>
12022
12023 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12024 Rewrite.
12025
a39fdb41
TT
120262020-03-26 Tom Tromey <tom@tromey.com>
12027
12028 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12029 methods.
12030 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12031 (lookup_ranges_base): Likewise.
12032 (read_cutu_die_from_dwo, read_full_die_1): Update.
12033
436c571c
TT
120342020-03-26 Tom Tromey <tom@tromey.com>
12035
12036 * dwarf2/read.c (read_import_statement, read_file_scope)
12037 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12038 (read_lexical_block_scope, read_call_site_scope)
12039 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12040 (handle_struct_member_die, process_structure_scope)
12041 (update_enumeration_type_from_children)
12042 (process_enumeration_scope, read_array_type, read_common_block)
12043 (read_namespace, read_module, read_subroutine_type): Update.
12044 (sibling_die): Remove.
12045
052c8bb8
TT
120462020-03-26 Tom Tromey <tom@tromey.com>
12047
12048 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12049 (build_type_psymtabs_reader, read_structure_type)
12050 (read_enumeration_type, read_full_die_1): Update.
12051 (dwarf2_attr_no_follow): Move to die.h.
12052 * dwarf2/die.h (struct die_info) <attr>: New method.
12053
2b24b6e4
TT
120542020-03-26 Tom Tromey <tom@tromey.com>
12055
12056 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12057 <base_address>: Now an optional.
12058 (dwarf2_find_base_address, dwarf2_rnglists_process)
12059 (dwarf2_ranges_process, fill_in_loclist_baton)
12060 (dwarf2_symbol_mark_computed): Update.
12061
c2d50fd0
TT
120622020-03-26 Tom Tromey <tom@tromey.com>
12063
12064 * dwarf2/read.c (struct die_info): Move to die.h.
12065 * dwarf2/die.h: New file.
12066
0df7ad3a
TT
120672020-03-26 Tom Tromey <tom@tromey.com>
12068
12069 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12070 * dwarf2/read.c
12071 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12072 Move to line-header.c.
12073 (read_checked_initial_length_and_offset, read_formatted_entries):
12074 Likewise.
12075 (dwarf_decode_line_header): Split into two.
12076 * dwarf2/line-header.c
12077 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12078 Move from read.c.
12079 (read_checked_initial_length_and_offset, read_formatted_entries):
12080 Likewise.
12081 (dwarf_decode_line_header): New function, split from read.c.
12082
86c0bb4c
TT
120832020-03-26 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12086 Declare method.
12087 * dwarf2/read.c (read_attribute_value): Update.
12088 (dwarf2_per_objfile::read_line_string): Rename from
12089 read_indirect_line_string.
12090 (read_formatted_entries): Update.
12091
2ef46c2f
TT
120922020-03-26 Tom Tromey <tom@tromey.com>
12093
12094 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12095 variable.
12096
4f9c1eda
TT
120972020-03-26 Tom Tromey <tom@tromey.com>
12098
12099 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12100 const.
12101 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12102 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12103 parameter const.
12104
5a0e026f
TT
121052020-03-26 Tom Tromey <tom@tromey.com>
12106
12107 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12108 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12109 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12110 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12111
8844c11b
TT
121122020-03-26 Tom Tromey <tom@tromey.com>
12113
12114 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12115 file_names_size, file_full_name, file_file_name>: Use const.
12116 <file_name_at, file_names>: Add const overload.
12117 * dwarf2/line-header.c (line_header::file_file_name)
12118 (line_header::file_full_name): Update.
12119
c90ec28a
TT
121202020-03-26 Tom Tromey <tom@tromey.com>
12121
12122 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12123 (macro_start_file, consume_improper_spaces)
12124 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12125 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12126 (dwarf_decode_macros): Move to macro.c.
12127 * dwarf2/macro.c: New file.
12128 * dwarf2/macro.h: New file.
12129 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12130
4f44ae6c
TT
121312020-03-26 Tom Tromey <tom@tromey.com>
12132
12133 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12134 method.
12135 * dwarf2/section.c: New method. From
12136 read_indirect_string_at_offset_from.
12137 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12138 (read_indirect_string_at_offset_from): Move to section.c.
12139 (read_indirect_string_at_offset): Rewrite.
12140 (read_indirect_line_string_at_offset): Remove.
12141 (read_indirect_string, read_indirect_line_string)
12142 (dwarf_decode_macro_bytes): Update.
12143
a0194fa8
TT
121442020-03-26 Tom Tromey <tom@tromey.com>
12145
12146 * dwarf2/section.h (struct dwarf2_section_info)
12147 <overload_complaint>: Declare.
12148 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12149 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12150 Rename from dwarf2_section_buffer_overflow_complaint.
12151 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12152 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12153
3d27bbdb
TT
121542020-03-26 Tom Tromey <tom@tromey.com>
12155
12156 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12157 Declare.
12158 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12159 Move from read.c.
12160 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12161 to section.c.
12162
9eac9650
TT
121632020-03-26 Tom Tromey <tom@tromey.com>
12164
12165 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12166
bf80d710
TT
121672020-03-26 Tom Tromey <tom@tromey.com>
12168
12169 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12170 "builder".
12171 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12172 parameter.
12173 (dwarf_decode_macros): Update.
12174
0314b390
TT
121752020-03-26 Tom Tromey <tom@tromey.com>
12176
12177 * dwarf2/read.c (read_attribute_value): Update.
12178 (read_indirect_string_from_dwz): Move to dwz.c; change into
12179 method.
12180 (dwarf_decode_macro_bytes): Update.
12181 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12182 * dwarf2/dwz.c: New file.
12183 * Makefile.in (COMMON_SFILES): Add dwz.c.
12184
9fda78b6
TT
121852020-03-26 Tom Tromey <tom@tromey.com>
12186
12187 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12188 * dwarf2/read.c: Add include.
12189 * dwarf2/index-write.c: Add include.
12190 * dwarf2/index-cache.c: Add include.
12191 * dwarf2/dwz.h: New file.
12192
33aa3c10
TT
121932020-03-25 Tom Tromey <tom@tromey.com>
12194
12195 * compile/compile-object-load.c (get_out_value_type): Mention
12196 correct symbol name in error message.
12197
d503b685
HD
121982020-03-25 Hannes Domani <ssbssa@yahoo.de>
12199
12200 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12201
7b1eff95
TV
122022020-03-25 Tom de Vries <tdevries@suse.de>
12203
12204 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12205 * symmisc.c (dump_symtab_1): Print user and includes fields.
12206 (maintenance_info_symtabs): Same.
12207
dd895392
AB
122082020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12209
12210 PR gdb/25534
12211 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12212 (riscv_regcache_cooked_write): New function.
12213 (riscv_push_dummy_call): Use new function.
12214 (riscv_return_value): Likewise.
12215
5ab2fbf1
SM
122162020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12217
12218 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12219 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12220 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12221 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12222 * infrun.c (follow_fork): Likewise.
12223 (follow_fork_inferior): Likewise.
12224 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12225 * linux-nat.h (class linux_nat_target): Likewise.
12226 * remote.c (class remote_target) <follow_fork>: Likewise.
12227 (remote_target::follow_fork): Likewise.
12228 * target-delegates.c: Re-generate.
12229 * target.c (default_follow_fork): Likewise.
12230 (target_follow_fork): Likewise.
12231 * target.h (struct target_ops) <follow_fork>: Likewise.
12232 (target_follow_fork): Likewise.
12233
a64fafb5
TV
122342020-03-24 Tom de Vries <tdevries@suse.de>
12235
12236 * psymtab.c (maintenance_info_psymtabs): Print user field.
12237
fe26d3a3
TT
122382020-03-20 Tom Tromey <tromey@adacore.com>
12239
12240 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12241 const.
12242 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12243 const.
12244
c884cc46
SM
122452020-03-20 Simon Marchi <simon.marchi@efficios.com>
12246
12247 * ptrace.m4: Don't check for ptrace declaration.
12248 * config.in: Re-generate.
12249 * configure: Re-generate.
12250 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12251 not defined.
12252
1ff700c2
KR
122532020-03-20 Kamil Rytarowski <n54@gmx.com>
12254
12255 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12256 `PTRACE_TYPE_RET'.
12257 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12258 * sparc-nat.c (gdb_ptrace): Likewise.
12259 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12260
f7d4f0b1
TT
122612020-03-20 Tom Tromey <tromey@adacore.com>
12262
12263 * c-exp.y (lex_one_token): Fix assert.
12264
f67210ff
TT
122652020-03-20 Tom Tromey <tromey@adacore.com>
12266
12267 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12268 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12269 strncpy call.
12270
1773be9e
TT
122712020-03-20 Tom Tromey <tromey@adacore.com>
12272
12273 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12274
70304be9
TT
122752020-03-20 Tom Tromey <tromey@adacore.com>
12276
12277 * ada-valprint.c (print_variant_part): Remove parameters; switch
12278 to value-based API.
12279 (print_field_values): Likewise.
12280 (ada_val_print_struct_union): Likewise.
12281 (ada_value_print_1): Update.
12282
9faa006d
KR
122832020-03-20 Kamil Rytarowski <n54@gmx.com>
12284
12285 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12286 nbsd_nat_target instead of inf_ptrace_target.
12287 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12288 nbsd_nat_target.
12289
4a90f062
KR
122902020-03-20 Kamil Rytarowski <n54@gmx.com>
12291
12292 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12293 it to the ptrace call.
12294 * (store_registers): Likewise.
12295
122962020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12297
12298 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12299 it to the ptrace call.
12300 * (store_registers): Likewise.
12301
2d07da27
LM
123022020-03-19 Luis Machado <luis.machado@linaro.org>
12303
12304 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12305 valid, fetch vg value from ptrace.
12306
f09db380
KR
123072020-03-19 Kamil Rytarowski <n54@gmx.com>
12308 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12309 * inf-ptrace.c: Likewise.
12310 * (gdb_ptrace): Add.
12311 * (inf_ptrace_target::resume): Update.
12312 * (inf_ptrace_target::xfer_partial): Likewise.
12313 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12314 * (inf_ptrace_peek_poke): Update.
12315
fcc7376e
KR
123162020-03-19 Kamil Rytarowski <n54@gmx.com>
12317
12318 * x86-bsd-nat.c (gdb_ptrace): New.
12319 * (x86bsd_dr_set): Add new argument `ptid'.
12320 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12321 x86bsd_dr_set_addr): Update.
12322
cada5fc9
AB
123232020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12324
12325 * remote.c (remote_target::process_stop_reply): Handle events for
12326 all threads differently.
12327
19a2740f
AB
123282020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12329
12330 * completer.c (completion_tracker::remove_completion): Define new
12331 function.
12332 * completer.h (completion_tracker::remove_completion): Declare new
12333 function.
12334 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12335 when adding a C++ function symbol.
12336
724fd9ba
AB
123372020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12338
12339 * completer.c (completion_tracker::completion_hash_entry): Define
12340 new class.
12341 (advance_to_filename_complete_word_point): Call
12342 recompute_lowest_common_denominator.
12343 (completion_tracker::completion_tracker): Call discard_completions
12344 to setup the hash table.
12345 (completion_tracker::discard_completions): Allow for being called
12346 from the constructor, pass new equal function, and element deleter
12347 when constructing the hash table. Initialise new class member
12348 variables.
12349 (completion_tracker::maybe_add_completion): Remove use of
12350 m_entries_vec, and store more information into m_entries_hash.
12351 (completion_tracker::recompute_lcd_visitor): New function, most
12352 content taken from...
12353 (completion_tracker::recompute_lowest_common_denominator):
12354 ...here, this now just visits each item in the hash calling the
12355 above visitor.
12356 (completion_tracker::build_completion_result): Remove use of
12357 m_entries_vec, call recompute_lowest_common_denominator.
12358 * completer.h (completion_tracker::have_completions): Remove use
12359 of m_entries_vec.
12360 (completion_tracker::completion_hash_entry): Declare new class.
12361 (completion_tracker::recompute_lowest_common_denominator): Change
12362 function signature.
12363 (completion_tracker::recompute_lcd_visitor): Declare new function.
12364 (completion_tracker::m_entries_vec): Delete.
12365 (completion_tracker::m_entries_hash): Initialize to NULL.
12366 (completion_tracker::m_lowest_common_denominator_valid): New
12367 member variable.
12368 (completion_tracker::m_lowest_common_denominator_max_length): New
12369 member variable.
12370
5a82b8a1
KR
123712020-03-17 Kamil Rytarowski <n54@gmx.com>
12372
12373 * regformats/regdef.h: Put reg in gdb namespace.
12374
fb516a69
KR
123752020-03-17 Kamil Rytarowski <n54@gmx.com>
12376
12377 * i386-bsd-nat.c (gdb_ptrace): New.
12378 * (i386bsd_fetch_inferior_registers,
12379 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12380 * (i386bsd_fetch_inferior_registers,
12381 i386bsd_store_inferior_registers) Use gdb_ptrace.
12382
1c0aa1fb
KR
123832020-03-17 Kamil Rytarowski <n54@gmx.com>
12384
12385 * amd64-bsd-nat.c (gdb_ptrace): New.
12386 * (amd64bsd_fetch_inferior_registers,
12387 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12388 * (amd64bsd_fetch_inferior_registers,
12389 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12390
5ccd2fb7
KR
123912020-03-17 Kamil Rytarowski <n54@gmx.com>
12392
12393 * user-regs.c (user_reg::read): Rename to...
12394 (user_reg::xread): ...this.
12395 * (append_user_reg): Rename argument `read' to `xread'.
12396 * (user_reg_add_builtin): Likewise.
12397 * (user_reg_add): Likewise.
12398 * (value_of_user_reg): Likewise.
12399
2108a63a
KR
124002020-03-17 Kamil Rytarowski <n54@gmx.com>
12401
12402 * sparc-nat.c (gdb_ptrace): New.
12403 * sparc-nat.c (sparc_fetch_inferior_registers)
12404 (sparc_store_inferior_registers) Remove obsolete comment.
12405 * sparc-nat.c (sparc_fetch_inferior_registers)
12406 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12407 * sparc-nat.c (sparc_fetch_inferior_registers)
12408 (sparc_store_inferior_registers) Use gdb_ptrace.
12409
a225c9a8
KR
124102020-03-17 Kamil Rytarowski <n54@gmx.com>
12411
12412 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12413 it to the ptrace call.
12414 * sh-nbsd-nat.c (store_registers): Likewise.
12415
98097623
KR
124162020-03-17 Kamil Rytarowski <n54@gmx.com>
12417
12418 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12419 nbsd_nat_target instead of inf_ptrace_target.
12420 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12421 nbsd_nat_target.
12422
9e38d619
KR
124232020-03-17 Kamil Rytarowski <n54@gmx.com>
12424
12425 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12426
a2ecbe9f
KR
124272020-03-17 Kamil Rytarowski <n54@gmx.com>
12428
12429 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12430 <sys/sysctl.h>.
12431 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12432
58990295
TV
124332020-03-17 Tom de Vries <tdevries@suse.de>
12434
12435 PR gdb/23710
12436 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12437 fields.
12438 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12439 fields.
12440 (process_imported_unit_die): Skip import of c++ CUs.
12441
771dd3a8
TT
124422020-03-16 Tom Tromey <tom@tromey.com>
12443
12444 * p-valprint.c (pascal_object_print_value): Initialize
12445 base_value.
12446
817a7585
AK
124472020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12448 Shahab Vahedi <shahab@synopsys.com>
12449
12450 * Makefile.in: Add arch/arc.o
12451 * configure.tgt: Likewise.
12452 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12453 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12454 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12455 * arc-tdep.h (arc_read_description): Add proto type.
12456 * arch/arc.c: New file.
12457 * arch/arc.h: Likewise.
12458 * features/Makefile: Replace old target descriptions with new.
12459 * features/arc-arcompact.c: Remove.
12460 * features/arc-arcompact.xml: Likewise.
12461 * features/arc-v2.c: Likewise
12462 * features/arc-v2.xml: Likewise
12463 * features/arc/aux-arcompact.xml: New file.
12464 * features/arc/aux-v2.xml: Likewise.
12465 * features/arc/core-arcompact.xml: Likewise.
12466 * features/arc/core-v2.xml: Likewise.
12467 * features/arc/aux-arcompact.c: Generate.
12468 * features/arc/aux-v2.c: Likewise.
12469 * features/arc/core-arcompact.c: Likewise.
12470 * features/arc/core-v2.c: Likewise.
12471 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12472
67430cd0
TT
124732020-03-16 Tom Tromey <tromey@adacore.com>
12474
12475 PR gdb/25663:
12476 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12477 putting value into bcache.
12478
30efb6c7
SM
124792020-03-16 Simon Marchi <simon.marchi@efficios.com>
12480
12481 PR gdb/21500
12482 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12483 to...
12484 (amd64_windows_init_abi_common): ... this. Don't set size of
12485 long type.
12486 (amd64_windows_init_abi): New function.
12487 (amd64_cygwin_init_abi): New function.
12488 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12489 the Cygwin OS ABI.
12490 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12491 comment.
12492
8db52437
SM
124932020-03-16 Simon Marchi <simon.marchi@efficios.com>
12494
12495 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12496 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12497 (pe_import_directory_entry): New struct type.
12498 (is_linked_with_cygwin_dll): New function.
12499 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12500 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12501 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12502
5982a56a
SM
125032020-03-16 Simon Marchi <simon.marchi@efficios.com>
12504
12505 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12506 i386_cygwin_core_osabi_sniffer.
12507
7a1998df
SM
125082020-03-16 Simon Marchi <simon.marchi@efficios.com>
12509
12510 * i386-cygwin-tdep.c: Rename to...
12511 * i386-windows-tdep.c: ... this.
12512 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12513 i386-windows-tdep.c.
12514 * configure.tgt: Likewise.
12515
053205cc
SM
125162020-03-16 Simon Marchi <simon.marchi@efficios.com>
12517
12518 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12519 * osabi.c (gdb_osabi_names): Add "Windows".
12520 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12521 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12522 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12523 i386_cygwin_osabi_sniffer.
12524 (_initialize_i386_cygwin_tdep): Register OS ABI
12525 GDB_OSABI_WINDOWS for i386.
12526 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12527 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12528 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12529 for x86-64.
12530 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12531 when the target matches '*-*-mingw*'.
12532
fe4b2ee6
SM
125332020-03-16 Simon Marchi <simon.marchi@efficios.com>
12534
12535 * defs.h (enum gdb_osabi): Move to...
12536 * osabi.h (enum gdb_osabi): ... here.
12537 * gdbarch.sh: Include osabi.h in gdbarch.h.
12538 * gdbarch.h: Re-generate.
12539
cb9b645d
SM
125402020-03-16 Simon Marchi <simon.marchi@efficios.com>
12541
12542 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12543 function.
12544 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12545
3293bbaf
TT
125462020-03-14 Tom Tromey <tom@tromey.com>
12547
12548 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12549 for C++.
12550 (c_type_print_modifier): Likewise. Add "language" parameter.
12551 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12552 (c_type_print_base_1): Update.
12553 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12554 constants.
12555 * type-stack.c (type_stack::insert): Handle tp_atomic and
12556 tp_restrict.
12557 (type_stack::follow_type_instance_flags): Likewise.
12558 (type_stack::follow_types): Likewise. Merge type-following code.
12559 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12560 (space_identifier, cv_with_space_id)
12561 (const_or_volatile_or_space_identifier_noopt)
12562 (const_or_volatile_or_space_identifier): Remove.
12563 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12564 rules.
12565 (ptr_operator, typebase): Update.
12566 (enum token_flag) <FLAG_C>: New constant.
12567 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12568 "_Atomic".
12569 (lex_one_token): Handle FLAG_C.
12570
154151a6
KR
125712020-03-14 Kamil Rytarowski <n54@gmx.com>
12572
12573 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12574 it to the ptrace call.
12575 * m68k-bsd-nat.c (store_registers): Likewise.
12576
bc107784
KR
125772020-03-14 Kamil Rytarowski <n54@gmx.com>
12578
12579 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12580 gdb_byte *.
12581 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12582 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12583 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12584
01a80117
KR
125852020-03-14 Kamil Rytarowski <n54@gmx.com>
12586
12587 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12588 nbsd_nat_target instead of inf_ptrace_target.
12589 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12590 nbsd_nat_target.
12591
f90280ca
KR
125922020-03-14 Kamil Rytarowski <n54@gmx.com>
12593
12594 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12595 register_t.
12596
6def66f1
KR
125972020-03-14 Kamil Rytarowski <n54@gmx.com>
12598
12599 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12600 it to the ptrace call.
12601 * alpha-bsd-nat.c (store_registers): Likewise.
12602
66eaca97
KR
126032020-03-14 Kamil Rytarowski <n54@gmx.com>
12604
12605 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12606 includes.
12607 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12608 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12609 fill_fpregset): Likewise.
12610
4fed520b
KR
126112020-03-14 Kamil Rytarowski <n54@gmx.com>
12612
12613 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12614 nbsd_nat_target instead of inf_ptrace_target.
12615 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12616 nbsd_nat_target.
12617
2190cf06
KR
126182020-03-14 Kamil Rytarowski <n54@gmx.com>
12619
12620 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12621 register_t.
12622
75c56d3d
KR
126232020-03-14 Kamil Rytarowski <n54@gmx.com>
12624
12625 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12626 it to the ptrace call.
12627 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12628 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12629 * arm-nbsd-nat.c (store_register): Likewise.
12630 * arm-nbsd-nat.c (store_regs): Likewise.
12631 * arm-nbsd-nat.c (store_fp_register): Likewise.
12632 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12633
6018d381
KR
126342020-03-14 Kamil Rytarowski <n54@gmx.com>
12635
12636 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12637 nbsd_nat_target instead of inf_ptrace_target.
12638 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12639 nbsd_nat_target.
12640
013f99f0
KR
126412020-03-14 Kamil Rytarowski <n54@gmx.com>
12642
12643 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12644 it to the ptrace call.
12645 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12646
12753073
KR
126472020-03-14 Kamil Rytarowski <n54@gmx.com>
12648
6227b330
KR
12649 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12650 it to the ptrace call.
12651 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12652
126532020-03-14 Kamil Rytarowski <n54@gmx.com>
12654
12655 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12656 gdb_byte *.
12753073
KR
12657 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12658
d5be5fa4
KR
126592020-03-14 Kamil Rytarowski <n54@gmx.com>
12660
12661 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12662 instead of inf_ptrace_target.
12663 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12664 nbsd_nat_target.
12665
8110f842
KR
126662020-03-14 Kamil Rytarowski <n54@gmx.com>
12667
12668 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12669 register_t.
12670
52feded7
KR
126712020-03-14 Kamil Rytarowski <n54@gmx.com>
12672
12673 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12674 register_t.
12675
25567eee
KR
126762020-03-14 Kamil Rytarowski <n54@gmx.com>
12677
12678 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12679 register_t.
12680
426a9c18
TT
126812020-03-13 Tom Tromey <tom@tromey.com>
12682
12683 * value.h (val_print): Don't declare.
12684 * valprint.h (val_print_array_elements)
12685 (val_print_scalar_formatted, generic_val_print): Don't declare.
12686 * valprint.c (generic_val_print_array): Take a struct value.
12687 (generic_val_print_ptr, generic_val_print_memberptr)
12688 (generic_val_print_bool, generic_val_print_int)
12689 (generic_val_print_char, generic_val_print_complex)
12690 (generic_val_print): Remove.
12691 (generic_value_print): Update.
12692 (do_val_print): Remove unused parameters. Don't call
12693 la_val_print.
12694 (val_print): Remove.
12695 (common_val_print): Update. Don't call value_check_printable.
12696 (val_print_scalar_formatted, val_print_array_elements): Remove.
12697 * rust-lang.c (rust_val_print): Remove.
12698 (rust_language_defn): Update.
12699 * p-valprint.c (pascal_val_print): Remove.
12700 (pascal_value_print_inner): Update.
12701 (pascal_object_print_val_fields, pascal_object_print_val):
12702 Remove.
12703 (pascal_object_print_static_field): Update.
12704 * p-lang.h (pascal_val_print): Don't declare.
12705 * p-lang.c (pascal_language_defn): Update.
12706 * opencl-lang.c (opencl_language_defn): Update.
12707 * objc-lang.c (objc_language_defn): Update.
12708 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12709 * m2-lang.h (m2_val_print): Don't declare.
12710 * m2-lang.c (m2_language_defn): Update.
12711 * language.h (struct language_defn) <la_val_print>: Remove.
12712 * language.c (unk_lang_value_print_inner): Rename. Change
12713 argument types.
12714 (unknown_language_defn, auto_language_defn): Update.
12715 * go-valprint.c (go_val_print): Remove.
12716 * go-lang.h (go_val_print): Don't declare.
12717 * go-lang.c (go_language_defn): Update.
12718 * f-valprint.c (f_val_print): Remove.
12719 * f-lang.h (f_value_print): Don't declare.
12720 * f-lang.c (f_language_defn): Update.
12721 * d-valprint.c (d_val_print): Remove.
12722 * d-lang.h (d_value_print): Don't declare.
12723 * d-lang.c (d_language_defn): Update.
12724 * cp-valprint.c (cp_print_value_fields)
12725 (cp_print_value_fields_rtti, cp_print_value): Remove.
12726 (cp_print_static_field): Update.
12727 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12728 (c_val_print_struct, c_val_print_union, c_val_print_int)
12729 (c_val_print_memberptr, c_val_print): Remove.
12730 * c-lang.h (c_val_print_array, cp_print_value_fields)
12731 (cp_print_value_fields_rtti): Don't declare.
12732 * c-lang.c (c_language_defn, cplus_language_defn)
12733 (asm_language_defn, minimal_language_defn): Update.
12734 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12735 (ada_val_print_enum): Take a struct value.
12736 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12737 (ada_val_print): Remove.
12738 (ada_value_print_1): Update.
12739 (printable_val_type): Remove.
12740 * ada-lang.h (ada_val_print): Don't declare.
12741 * ada-lang.c (ada_language_defn): Update.
12742
42331a1e
TT
127432020-03-13 Tom Tromey <tom@tromey.com>
12744
12745 * valprint.c (do_val_print): Update.
12746 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12747 a struct value.
12748 (value_to_value_object_no_release): Declare.
12749 * python/py-value.c (value_to_value_object_no_release): New
12750 function.
12751 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12752 struct value.
12753 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12754 function.
12755 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12756 a struct value.
12757 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12758 Declare.
12759 (gdbscm_apply_val_pretty_printer): Take a struct value.
12760 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12761 value.
12762 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12763 value.
12764 * extension-priv.h (struct extension_language_ops)
12765 <apply_val_pretty_printer>: Take a struct value.
12766 * cp-valprint.c (cp_print_value): Create a struct value.
12767 (cp_print_value): Update.
12768
3a916a97
TT
127692020-03-13 Tom Tromey <tom@tromey.com>
12770
12771 * ada-valprint.c (print_field_values): Call common_val_print.
12772
b59eac37
TT
127732020-03-13 Tom Tromey <tom@tromey.com>
12774
12775 * ada-valprint.c (val_print_packed_array_elements): Remove
12776 bitoffset and val parameters. Call common_val_print.
12777 (ada_val_print_string): Remove offset, address, and original_value
12778 parameters.
12779 (ada_val_print_array): Update.
12780 (ada_value_print_array): New function.
12781 (ada_value_print_1): Call it.
12782
03371129
TT
127832020-03-13 Tom Tromey <tom@tromey.com>
12784
12785 * ada-valprint.c (ada_value_print): Use common_val_print.
12786
2e088f8b
TT
127872020-03-13 Tom Tromey <tom@tromey.com>
12788
12789 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12790
39ef85a8
TT
127912020-03-13 Tom Tromey <tom@tromey.com>
12792
12793 * ada-valprint.c (ada_value_print_num): New function.
12794 (ada_value_print_1): Use it.
12795
b9fa6e07
TT
127962020-03-13 Tom Tromey <tom@tromey.com>
12797
12798 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12799
416595d6
TT
128002020-03-13 Tom Tromey <tom@tromey.com>
12801
12802 * ada-valprint.c (ada_value_print_ptr): New function.
12803 (ada_value_print_1): Use it.
12804
5b5e15ec
TT
128052020-03-13 Tom Tromey <tom@tromey.com>
12806
12807 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12808 call common_val_print.
12809 (ada_val_print_1): Update.
12810 (ada_value_print_1): New function.
12811 (ada_value_print_inner): Rewrite.
12812
fbf54e75
TT
128132020-03-13 Tom Tromey <tom@tromey.com>
12814
12815 * cp-valprint.c (cp_print_value_fields): Update.
12816 (cp_print_value): New function.
12817
64b653ca
TT
128182020-03-13 Tom Tromey <tom@tromey.com>
12819
12820 * m2-valprint.c (m2_value_print_inner): Use
12821 cp_print_value_fields.
12822 * cp-valprint.c (cp_print_value_fields): New function.
12823 * c-valprint.c (c_value_print_struct): New function.
12824 (c_value_print_inner): Use c_value_print_struct.
12825 * c-lang.h (cp_print_value_fields): Declare.
12826
6999f067
TT
128272020-03-13 Tom Tromey <tom@tromey.com>
12828
12829 * c-valprint.c (c_value_print_array): New function.
12830 (c_value_print_inner): Use it.
12831
ce80b8bd
TT
128322020-03-13 Tom Tromey <tom@tromey.com>
12833
12834 * c-valprint.c (c_value_print_memberptr): New function.
12835 (c_value_print_inner): Use it.
12836
2faac269
TT
128372020-03-13 Tom Tromey <tom@tromey.com>
12838
12839 * c-valprint.c (c_value_print_int): New function.
12840 (c_value_print_inner): Use it.
12841
da3e2c29
TT
128422020-03-13 Tom Tromey <tom@tromey.com>
12843
12844 * c-valprint.c (c_value_print_ptr): New function.
12845 (c_value_print_inner): Use it.
12846
50836231
TT
128472020-03-13 Tom Tromey <tom@tromey.com>
12848
12849 * c-valprint.c (c_value_print_inner): Rewrite.
12850
4f412b6e
TT
128512020-03-13 Tom Tromey <tom@tromey.com>
12852
12853 * valprint.c (generic_value_print_complex): New function.
12854 (generic_value_print): Use it.
12855
f5354008
TT
128562020-03-13 Tom Tromey <tom@tromey.com>
12857
12858 * valprint.c (generic_val_print_float): Don't call
12859 val_print_scalar_formatted.
12860 (generic_val_print, generic_value_print): Update.
12861
3eec3b05
TT
128622020-03-13 Tom Tromey <tom@tromey.com>
12863
12864 * valprint.c (generic_value_print_char): New function
12865 (generic_value_print): Use it.
12866
fdddfccb
TT
128672020-03-13 Tom Tromey <tom@tromey.com>
12868
12869 * valprint.c (generic_value_print_int): New function.
12870 (generic_value_print): Use it.
12871
6dde7521
TT
128722020-03-13 Tom Tromey <tom@tromey.com>
12873
12874 * valprint.c (generic_value_print_bool): New function.
12875 (generic_value_print): Use it.
12876
4112d2e6
TT
128772020-03-13 Tom Tromey <tom@tromey.com>
12878
12879 * valprint.c (generic_val_print_func): Simplify.
12880 (generic_val_print, generic_value_print): Update.
12881
65786af6
TT
128822020-03-13 Tom Tromey <tom@tromey.com>
12883
12884 * valprint.c (generic_val_print_flags): Remove.
12885 (generic_val_print, generic_value_print): Update.
12886 (val_print_type_code_flags): Add original_value parameter.
12887
40f3ce18
TT
128882020-03-13 Tom Tromey <tom@tromey.com>
12889
12890 * valprint.c (generic_val_print): Update.
12891 (generic_value_print): Update.
12892 * valprint.c (generic_val_print_enum): Don't call
12893 val_print_scalar_formatted.
12894
2a5b130b
TT
128952020-03-13 Tom Tromey <tom@tromey.com>
12896
12897 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12898 * valprint.c (generic_value_print_ptr): New function.
12899
abc66ce9
TT
129002020-03-13 Tom Tromey <tom@tromey.com>
12901
12902 * valprint.c (generic_value_print): Rewrite.
12903
07a32858
TT
129042020-03-13 Tom Tromey <tom@tromey.com>
12905
12906 * p-valprint.c (pascal_object_print_value_fields)
12907 (pascal_object_print_value): New functions.
12908
64d64d3a
TT
129092020-03-13 Tom Tromey <tom@tromey.com>
12910
12911 * p-valprint.c (pascal_value_print_inner): Rewrite.
12912
6a95a1f5
TT
129132020-03-13 Tom Tromey <tom@tromey.com>
12914
12915 * f-valprint.c (f_value_print_innner): Rewrite.
12916
59fcdac6
TT
129172020-03-13 Tom Tromey <tom@tromey.com>
12918
12919 * m2-valprint.c (m2_print_unbounded_array): New overload.
12920 (m2_print_unbounded_array): Update.
12921 (m2_print_array_contents): Take a struct value.
12922 (m2_value_print_inner): Rewrite.
12923
d133c3e1
TT
129242020-03-13 Tom Tromey <tom@tromey.com>
12925
12926 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12927 (d_value_print_inner): New function.
12928 * d-lang.h (d_value_print_inner): Declare.
12929 * d-lang.c (d_language_defn): Use d_value_print_inner.
12930
23b0f06b
TT
129312020-03-13 Tom Tromey <tom@tromey.com>
12932
12933 * go-valprint.c (go_value_print_inner): New function.
12934 * go-lang.h (go_value_print_inner): Declare.
12935 * go-lang.c (go_language_defn): Use go_value_print_inner.
12936
5f56f7cb
TT
129372020-03-13 Tom Tromey <tom@tromey.com>
12938
12939 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12940 API.
12941 (rust_val_print): Rewrite.
12942 (rust_value_print_inner): New function, from rust_val_print.
12943 (rust_language_defn): Use rust_value_print_inner.
12944
26792ee0
TT
129452020-03-13 Tom Tromey <tom@tromey.com>
12946
12947 * ada-valprint.c (ada_value_print_inner): New function.
12948 * ada-lang.h (ada_value_print_inner): Declare.
12949 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12950
24051bbe
TT
129512020-03-13 Tom Tromey <tom@tromey.com>
12952
12953 * f-valprint.c (f_value_print_innner): New function.
12954 * f-lang.h (f_value_print_innner): Declare.
12955 * f-lang.c (f_language_defn): Use f_value_print_innner.
12956
c0941be6
TT
129572020-03-13 Tom Tromey <tom@tromey.com>
12958
12959 * p-valprint.c (pascal_value_print_inner): New function.
12960 * p-lang.h (pascal_value_print_inner): Declare.
12961 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12962
62c4663d
TT
129632020-03-13 Tom Tromey <tom@tromey.com>
12964
12965 * m2-valprint.c (m2_value_print_inner): New function.
12966 * m2-lang.h (m2_value_print_inner): Declare.
12967 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12968
62182190
TT
129692020-03-13 Tom Tromey <tom@tromey.com>
12970
12971 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12972 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12973 * c-valprint.c (c_value_print_inner): New function.
12974 * c-lang.h (c_value_print_inner): Declare.
12975 * c-lang.c (c_language_defn, cplus_language_defn)
12976 (asm_language_defn, minimal_language_defn): Use
12977 c_value_print_inner.
12978
1e592a8a
TT
129792020-03-13 Tom Tromey <tom@tromey.com>
12980
12981 * p-valprint.c (pascal_object_print_value_fields): Now static.
12982 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12983
7fe471e9
TT
129842020-03-13 Tom Tromey <tom@tromey.com>
12985
12986 * c-valprint.c (c_val_print_array): Simplify.
12987
d121c6ce
TT
129882020-03-13 Tom Tromey <tom@tromey.com>
12989
12990 * valprint.c (value_print_array_elements): New function.
12991 * valprint.h (value_print_array_elements): Declare.
12992
4dba70ee
TT
129932020-03-13 Tom Tromey <tom@tromey.com>
12994
12995 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12996 * mips-tdep.c (mips_print_register): Use
12997 value_print_scalar_formatted.
12998
4f9ae810
TT
129992020-03-13 Tom Tromey <tom@tromey.com>
13000
13001 * valprint.h (value_print_scalar_formatted): Declare.
13002 * valprint.c (value_print_scalar_formatted): New function.
13003
156bfec9
TT
130042020-03-13 Tom Tromey <tom@tromey.com>
13005
13006 * valprint.h (generic_value_print): Declare.
13007 * valprint.c (generic_value_print): New function.
13008
2b4e573d
TT
130092020-03-13 Tom Tromey <tom@tromey.com>
13010
13011 * valprint.c (do_val_print): Call la_value_print_inner, if
13012 available.
13013 * rust-lang.c (rust_language_defn): Update.
13014 * p-lang.c (pascal_language_defn): Update.
13015 * opencl-lang.c (opencl_language_defn): Update.
13016 * objc-lang.c (objc_language_defn): Update.
13017 * m2-lang.c (m2_language_defn): Update.
13018 * language.h (struct language_defn) <la_value_print_inner>: New
13019 member.
13020 * language.c (unknown_language_defn, auto_language_defn): Update.
13021 * go-lang.c (go_language_defn): Update.
13022 * f-lang.c (f_language_defn): Update.
13023 * d-lang.c (d_language_defn): Update.
13024 * c-lang.c (c_language_defn, cplus_language_defn)
13025 (asm_language_defn, minimal_language_defn): Update.
13026 * ada-lang.c (ada_language_defn): Update.
13027
a1f6a07c
TT
130282020-03-13 Tom Tromey <tom@tromey.com>
13029
13030 * c-valprint.c (c_value_print): Use common_val_print.
13031
410cf315
TT
130322020-03-13 Tom Tromey <tom@tromey.com>
13033
13034 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13035
72a45c93
TT
130362020-03-13 Tom Tromey <tom@tromey.com>
13037
13038 * f-valprint.c (f77_print_array_1, f_val_print): Use
13039 common_val_print.
13040
040f66bd
TT
130412020-03-13 Tom Tromey <tom@tromey.com>
13042
13043 * riscv-tdep.c (riscv_print_one_register_info): Use
13044 common_val_print.
13045
a6e05a6c
TT
130462020-03-13 Tom Tromey <tom@tromey.com>
13047
13048 * mi/mi-main.c (output_register): Use common_val_print.
13049
3444c526
TT
130502020-03-13 Tom Tromey <tom@tromey.com>
13051
13052 * infcmd.c (default_print_one_register_info): Use
13053 common_val_print.
13054
c2a44efe
TT
130552020-03-13 Tom Tromey <tom@tromey.com>
13056
13057 * valprint.h (common_val_print_checked): Declare.
13058 * valprint.c (common_val_print_checked): New function.
13059 * stack.c (print_frame_arg): Use common_val_print_checked.
13060
b0c26e99
TT
130612020-03-13 Tom Tromey <tom@tromey.com>
13062
13063 * valprint.c (do_val_print): New function, from val_print.
13064 (val_print): Use do_val_print.
13065 (common_val_print): Use do_val_print.
13066
ce3acbe9
TT
130672020-03-13 Tom Tromey <tom@tromey.com>
13068
13069 * valprint.c (value_print): Use scoped_value_mark.
13070
96c7f873
TV
130712020-03-13 Tom de Vries <tdevries@suse.de>
13072
13073 PR symtab/25646
13074 * psymtab.c (partial_symtab::partial_symtab): Don't set
13075 globals_offset and statics_offset. Push element onto
13076 current_global_psymbols and current_static_psymbols stacks.
13077 (concat): New function.
13078 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13079 element from current_global_psymbols and current_static_psymbols
13080 stacks. Concat popped elements to global_psymbols and
13081 static_symbols.
13082 (add_psymbol_to_list): Use current_global_psymbols and
13083 current_static_psymbols stacks.
13084 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13085 current_static_psymbols fields.
13086
6ba0a321
CB
130872020-03-12 Christian Biesinger <cbiesinger@google.com>
13088
13089 * corelow.c (sniff_core_bfd): Remove.
13090 (class core_target) <m_core_vec>: Remove.
13091 (core_target::core_target): Update.
13092 (core_file_fns): Remove.
13093 (deprecated_add_core_fns): Remove.
13094 (default_core_sniffer): Remove.
13095 (sniff_core_bfd): Remove.
13096 (default_check_format): Remove.
13097 (gdb_check_format): Remove.
13098 (core_target_open): Update.
13099 (core_target::get_core_register_section): Update.
13100 (get_core_registers_cb): Update.
13101 (core_target::fetch_registers): Update.
13102 * gdbcore.h (struct core_fns): Remove.
13103 (deprecated_add_core_fns): Remove.
13104 (default_core_sniffer): Remove.
13105 (default_check_format): Remove.
13106
227031b2
TT
131072020-03-12 Tom Tromey <tom@tromey.com>
13108
13109 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13110 CORE_ADDR.
13111 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13112
53807e9f
TT
131132020-03-12 Tom Tromey <tom@tromey.com>
13114
13115 * remote.c (remote_target::download_tracepoint)
13116 (remote_target::enable_tracepoint)
13117 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13118 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13119 sprintf_vma.
13120
64f25102
TT
131212020-03-12 Tom Tromey <tom@tromey.com>
13122
13123 * symfile-mem.c: Update CORE_ADDR size assert.
13124
272cd5a3
SM
131252020-03-12 Simon Marchi <simon.marchi@efficios.com>
13126
13127 * selftest.m4: Move to gdbsupport/.
13128 * acinclude.m4: Update path to selftest.m4.
13129
74cd3f9d
SM
131302020-03-12 Simon Marchi <simon.marchi@efficios.com>
13131
13132 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13133 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13134 gdbarch-selfselftests.c and selftest-arch.c.
13135 (SUBDIR_UNITTESTS_OBS): Rename to...
13136 (SELFTESTS_OBS): ... this.
13137 (COMMON_SFILES): Remove disasm-selftests.c and
13138 gdbarch-selftests.c.
13139 * configure.ac: Don't add selftest-arch.{c,o} to
13140 CONFIG_{SRCS,OBS}.
13141 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13142 preprocessor conditions.
13143
db6878ac
SM
131442020-03-12 Simon Marchi <simon.marchi@efficios.com>
13145
13146 * configure.ac: Don't source bfd/development.sh.
13147 * selftest.m4: Modify comment.
13148 * configure: Re-generate.
13149
4d696a5c
SM
131502020-03-12 Simon Marchi <simon.marchi@efficios.com>
13151
13152 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13153 not "true" or "false".
13154 * configure: Re-generate.
13155
8dd8e1c7
CB
131562020-03-12 Christian Biesinger <cbiesinger@google.com>
13157
13158 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13159 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13160 renamed to arm_nbsd_supply_gregset.
13161 (fetch_register): Update to call arm_nbsd_supply_gregset.
13162 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13163 (arm_netbsd_nat_target::fetch_registers): Update.
13164 (fetch_elfcore_registers): Removed.
13165 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13166 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13167 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13168 not require NetBSD system headers.
13169 (arm_nbsd_regset): New struct.
13170 (arm_nbsd_iterate_over_regset_sections): New function.
13171 (arm_netbsd_init_abi_common): Updated to call
13172 set_gdbarch_iterate_over_regset_sections.
13173 * arm-nbsd-tdep.h: New file.
13174
dd69bf7a
KB
131752020-03-11 Kevin Buettner <kevinb@redhat.com>
13176
13177 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13178 recursion.
13179
a0761e34
SM
131802020-03-11 Simon Marchi <simon.marchi@efficios.com>
13181
13182 * configure: Re-generate.
13183
e7a82140
TT
131842020-03-11 Tom Tromey <tromey@adacore.com>
13185
13186 * ada-typeprint.c (print_choices): Fix comment.
13187
dcc050c8
AB
131882020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13189
13190 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13191 previous item in the list, when the list has no items.
13192
1c33af77
TV
131932020-03-11 Tom de Vries <tdevries@suse.de>
13194
13195 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13196 PROP_LOCLIST handling code.
13197
8c95582d
AB
131982020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13199
13200 * buildsym-legacy.c (record_line): Pass extra parameter to
13201 record_line.
13202 * buildsym.c (buildsym_compunit::record_line): Take an extra
13203 parameter, reduce duplication in the line table, and record the
13204 is_stmt flag in the line table.
13205 * buildsym.h (buildsym_compunit::record_line): Add extra
13206 parameter.
13207 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13208 non-statement lines.
13209 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13210 this to the symtab builder.
13211 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13212 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13213 through to dwarf_record_line_1.
13214 * infrun.c (process_event_stop_test): When stepping, don't stop at
13215 a non-statement instruction, and only refresh the step info when
13216 we land in the middle of a line's range. Also add an extra
13217 comment.
13218 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13219 field.
13220 * record-btrace.c (btrace_find_line_range): Only record lines
13221 marked as is-statement.
13222 * stack.c (frame_show_address): Show the frame address if we are
13223 in a non-statement sal.
13224 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13225 (maintenance_print_one_line_table): Print a header for the is_stmt
13226 column, and include is_stmt information in the output.
13227 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13228 preference to non-statements.
13229 (find_pcs_for_symtab_line): Prefer is-statement entries.
13230 (find_line_common): Likewise.
13231 * symtab.h (struct linetable_entry): Add is_stmt field.
13232 (struct symtab_and_line): Likewise.
13233 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13234 arranging the line table.
13235
e4003a34
TV
132362020-03-07 Tom de Vries <tdevries@suse.de>
13237
13238 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13239 DIE.
13240
e8932576
TT
132412020-03-07 Tom Tromey <tom@tromey.com>
13242
13243 * valops.c (value_literal_complex): Remove obsolete comment.
13244 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13245 comment.
13246
29734269
SM
132472020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13248
13249 * infrun.h: Forward-declare thread_info.
13250 (set_step_info): Add thread_info parameter, add doc.
13251 * infrun.c (set_step_info): Add thread_info parameter, move doc
13252 to header.
13253 * infrun.c (process_event_stop_test): Pass thread to
13254 set_step_info call.
13255 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13256 set_step_info.
13257 (prepare_one_step): Add thread_info parameter, pass it to
13258 set_step_frame and prepare_one_step (recursive) call.
13259 (step_1): Pass thread to prepare_one_step call.
13260 (step_command_fsm::should_stop): Pass thread to
13261 prepare_one_step.
13262 (until_next_fsm): Pass thread to set_step_frame call.
13263 (finish_command): Pass thread to set_step_info call.
13264
b7d64b29
HD
132652020-03-06 Hannes Domani <ssbssa@yahoo.de>
13266
13267 * windows-tdep.c (windows_solib_create_inferior_hook):
13268 Check if inferior is running.
13269
09f2921c
TV
132702020-03-06 Tom de Vries <tdevries@suse.de>
13271
13272 * NEWS: Fix "the the".
13273 * ctfread.c: Same.
13274
fd760e79
TV
132752020-03-06 Tom de Vries <tdevries@suse.de>
13276
13277 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13278
20ea4a60
AB
132792020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13280
13281 * .dir-locals.el: Add a comment referencing the other copies of
13282 this file.
13283
0afbabf0
JB
132842020-03-05 John Baldwin <jhb@FreeBSD.org>
13285
13286 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13287 psargs.
13288
842806cb
TBA
132892020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13290
13291 * .gitattributes: New file.
13292
be1e3d3e
TT
132932020-03-04 Tom Tromey <tom@tromey.com>
13294
13295 * symmisc.c (print_symbol_bcache_statistics)
13296 (print_objfile_statistics): Update.
13297 * symfile.c (allocate_symtab): Use intern.
13298 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13299 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13300 macro_cache>: Remove.
13301 <string_cache>: New member.
13302 (struct objfile) <intern>: New methods.
13303 * elfread.c (elf_symtab_read): Use intern.
13304 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13305 (dwarf2_compute_name, dwarf2_physname)
13306 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13307 names.
13308 (guess_partial_die_structure_name): Update.
13309 (partial_die_info::fixup): Intern name.
13310 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13311 name.
13312 (dwarf2_name): Intern name. Update.
13313 * buildsym.c (buildsym_compunit::get_macro_table): Use
13314 string_cache.
13315
4e7625fd
TT
133162020-03-04 Tom Tromey <tom@tromey.com>
13317
13318 * jit.c (bfd_open_from_target_memory): Make "target" const.
13319 * corefile.c (gnutarget): Now const.
13320 * gdbcore.h (gnutarget): Now const.
13321
46f9f931
HD
133222020-03-04 Hannes Domani <ssbssa@yahoo.de>
13323
13324 * NEWS: Mention support for WOW64 processes.
13325 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13326 (amd64_windows_segment_register_p): Remove static.
13327 (_initialize_amd64_windows_nat): Update.
13328 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13329 * i386-windows-nat.c (context_offset): Update.
13330 (i386_mappings): Rename and remove static.
13331 (i386_windows_segment_register_p): Remove static.
13332 (_initialize_i386_windows_nat): Update.
13333 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13334 (STATUS_WX86_SINGLE_STEP): New macro.
13335 (EnumProcessModulesEx): New macro.
13336 (Wow64SuspendThread): New macro.
13337 (Wow64GetThreadContext): New macro.
13338 (Wow64SetThreadContext): New macro.
13339 (Wow64GetThreadSelectorEntry): New macro.
13340 (windows_set_context_register_offsets): Add static.
13341 (windows_set_segment_register_p): Likewise.
13342 (windows_add_thread): Adapt for WOW64 processes.
13343 (windows_fetch_one_register): Likewise.
13344 (windows_nat_target::fetch_registers): Likewise.
13345 (windows_store_one_register): Likewise.
13346 (display_selector): Likewise.
13347 (display_selectors): Likewise.
13348 (handle_exception): Likewise.
13349 (windows_continue): Likewise.
13350 (windows_nat_target::resume): Likewise.
13351 (windows_add_all_dlls): Likewise.
13352 (do_initial_windows_stuff): Likewise.
13353 (windows_nat_target::attach): Likewise.
13354 (windows_get_exec_module_filename): Likewise.
13355 (windows_nat_target::create_inferior): Likewise.
13356 (windows_xfer_siginfo): Likewise.
13357 (_initialize_loadable): Initialize Wow64SuspendThread,
13358 Wow64GetThreadContext, Wow64SetThreadContext,
13359 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13360 * windows-nat.h (windows_set_context_register_offsets):
13361 Remove declaration.
13362 (windows_set_segment_register_p): Likewise.
13363 (i386_windows_segment_register_p): Add declaration.
13364 (amd64_windows_segment_register_p): Likewise.
13365
440cf44e
LM
133662020-03-04 Luis Machado <luis.machado@linaro.org>
13367
13368 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13369 in "info registers" for AArch64/ARM.
13370
13371 The change caused "info registers" to not print GPR's.
13372
13373 gdb/ChangeLog:
13374
13375 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13376
13377 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13378 when reg->group is empty and reggroup is not.
13379
1009d92f
TT
133802020-03-03 Tom Tromey <tromey@adacore.com>
13381
13382 * dwarf2/frame.c (struct dwarf2_frame_cache)
13383 <checked_tailcall_bottom, entry_cfa_sp_offset,
13384 entry_cfa_sp_offset_p>: Remove members.
13385 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13386 (dwarf2_frame_prev_register): Don't call
13387 dwarf2_tailcall_sniffer_first.
13388 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13389 * frame-unwind.c (add_unwinder): New fuction.
13390 (frame_unwind_init): Use it. Add tailcall unwinder.
13391
5e5d66b6
AB
133922020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13393 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13394
13395 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13396 value should be printed as true.
13397
584cf46d
HD
133982020-03-03 Hannes Domani <ssbssa@yahoo.de>
13399
13400 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13401 (windows_init_abi): Set and use windows_so_ops.
13402
7b973adc
SDJ
134032020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13404
13405 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13406 when verifying if dealing with a convenience variable.
13407
bb7b70ab
LM
134082020-03-03 Luis Machado <luis.machado@linaro.org>
13409
13410 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13411
9822cb57
SM
134122020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13413
13414 * infrun.c (gdbarch_supports_displaced_stepping): New.
13415 (use_displaced_stepping): Break up conditions in smaller pieces.
13416 Use gdbarch_supports_displaced_stepping.
13417 (displaced_step_prepare_throw): Use
13418 gdbarch_supports_displaced_stepping.
13419
63e163f2
AB
134202020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13421
13422 * NEWS: Mention new behaviour of the history filename.
13423 * top.c (write_history_p): Add comment.
13424 (show_write_history_p): Add header comment, give a different
13425 message when history writing is on, but the history filename is
13426 empty.
13427 (history_filename): Add comment.
13428 (history_filename_empty): New function.
13429 (show_history_filename): Add header comment, give a different
13430 message when the filename is empty.
13431 (init_history): Compare history_filename against nullptr, and only
13432 read history if the filename is not empty.
13433 (set_history_filename): Add header comment, and only make
13434 non-empty filenames absolute.
13435 (init_main): Make the filename argument to 'set history filename'
13436 optional.
13437
81b86b97
CB
134382020-03-02 Christian Biesinger <cbiesinger@google.com>
13439
13440 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13441 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13442 (fetch_fp_register): Update.
13443 (fetch_fp_regs): Update.
13444 (store_fp_register): Update.
13445 (store_fp_regs): Update.
13446 (arm_netbsd_nat_target::read_description): New function.
13447 (fetch_elfcore_registers): Update.
13448
24ed6739
AB
134492020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13450
13451 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13452 general_thread if the stop reply is missing a thread-id.
13453 (remote_target::process_stop_reply): Use the first non-exited
13454 thread if the target didn't pass a thread-id.
13455 * infrun.c (do_target_wait): Move call to
13456 switch_to_inferior_no_thread to ....
13457 (do_target_wait_1): ... here.
13458
a84bb2a0
JT
134592020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13460
13461 * debuginfod-support.c: Include defs.h first.
13462
658dadf0
TV
134632020-02-28 Tom de Vries <tdevries@suse.de>
13464
13465 * symfile.c (set_initial_language): Use default language for lookup.
13466
4ebe4877
SM
134672020-02-28 Simon Marchi <simon.marchi@efficios.com>
13468
13469 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13470 reader variable, pass `this` to read_cutu_die_from_dwo.
13471
e5da1139
AM
134722020-02-27 Aaron Merey <amerey@redhat.com>
13473
13474 * source.c (open_source_file): Check for nullptr when computing
13475 srcpath.
13476
317f7127
TT
134772020-02-27 Tom Tromey <tromey@adacore.com>
13478
13479 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13480 member.
13481 (dwarf2_add_field): Don't update nfields.
13482 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13483
3104d9ee
AB
134842020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13485
13486 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13487 abs.
13488
b83470bf
TT
134892020-02-26 Tom Tromey <tom@tromey.com>
13490
13491 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13492 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13493 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13494 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13495 per_cu_data.
13496
edfe0a0c
TT
134972020-02-26 Tom Tromey <tom@tromey.com>
13498
13499 * dwarf2/index-write.c (psym_index_map): Change type.
13500 (add_address_entry_worker, write_one_signatured_type)
13501 (recursively_count_psymbols, recursively_write_psymbols)
13502 (class debug_names, psyms_seen_size, write_gdbindex)
13503 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13504
0d79cdc4
AM
135052020-02-26 Aaron Merey <amerey@redhat.com>
13506
13507 * Makefile.in: Handle optional debuginfod support.
13508 * NEWS: Update.
13509 * README: Add --with-debuginfod summary.
13510 * config.in: Regenerate.
13511 * configure: Regenerate.
13512 * configure.ac: Handle optional debuginfod support.
13513 * debuginfod-support.c: debuginfod helper functions.
13514 * debuginfod-support.h: Ditto.
13515 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13516 summary.
13517 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13518 when a dwz file cannot be found.
13519 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13520 debuginfo file cannot be found.
13521 * source.c (open_source_file): Query debuginfod servers when a
13522 source file cannot be found.
13523 * top.c (print_gdb_configuration): Include
13524 --{with,without}-debuginfod in the output.
13525
b65ce565
JG
135262020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13527
13528 * thread.c (thr_try_catch_cmd): Print thread name.
13529
d4c9a4f8
SM
135302020-02-26 Simon Marchi <simon.marchi@efficios.com>
13531
13532 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13533 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13534 dwarf2_fetch_die_type_sect_off): Move to...
13535 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13536 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13537 dwarf2_fetch_die_type_sect_off): ... here.
13538 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13539 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13540 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13541
0dce4280
TV
135422020-02-26 Tom de Vries <tdevries@suse.de>
13543
13544 PR gdb/25603
13545 * symfile.c (set_initial_language): Exit-early if
13546 language_mode == language_mode_manual.
13547
450a1bfc
SM
135482020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13549
13550 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13551 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13552 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13553
9e80cfa1
AB
135542020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13555
13556 * gdbtypes.c (create_array_type_with_stride): Handle negative
13557 array strides.
13558 * valarith.c (value_subscripted_rvalue): Likewise.
13559
09624f1f
LM
135602020-02-25 Luis Machado <luis.machado@linaro.org>
13561
13562 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13563
8cb5117c
SM
135642020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13565
13566 * loc.h (dwarf2_get_die_type): Move to...
13567 * read.h (dwarf2_get_die_type): ... here.
13568 * read.c (dwarf2_get_die_type): Move doc to header.
13569
c325c44e
JB
135702020-02-25 Joel Brobecker <brobecker@adacore.com>
13571
13572 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13573 'gnulib/Makefile.in' to the list.
13574
4ac93832
TT
135752020-02-24 Tom Tromey <tom@tromey.com>
13576
13577 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13578 Remove.
13579 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13580 XOBNEWVEC.
13581
197400e8
TT
135822020-02-24 Tom Tromey <tom@tromey.com>
13583
13584 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13585 New method.
13586 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13587 (dw2_do_instantiate_symtab, dw2_get_file_names)
13588 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13589
76935768
TT
135902020-02-24 Tom Tromey <tom@tromey.com>
13591
13592 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13593 make_scoped_restore.
13594 (dwarf2_psymtab::read_symtab): Don't clear
13595 reading_partial_symbols.
13596
a88ef40d
TV
135972020-02-24 Tom de Vries <tdevries@suse.de>
13598
13599 PR gdb/25592
13600 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13601
c9af6521
TV
136022020-02-24 Tom de Vries <tdevries@suse.de>
13603
13604 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13605 commands layout next/prev/regs.
13606
5707a07a
TT
136072020-02-22 Tom Tromey <tom@tromey.com>
13608
13609 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13610 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13611
3b0fb49e
TT
136122020-02-22 Tom Tromey <tom@tromey.com>
13613
13614 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13615
283be8bf
TT
136162020-02-22 Tom Tromey <tom@tromey.com>
13617
13618 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13619 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13620 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13621 * tui/tui.c (_initialize_tui): Add usage text.
13622
ca793b96
TT
136232020-02-22 Tom Tromey <tom@tromey.com>
13624
13625 * tui/tui-win.c (tui_set_focus_command)
13626 (tui_set_win_height_command): Use error_no_arg.
13627 (_initialize_tui_win): Update help text.
13628 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13629
432b5c40
TT
136302020-02-22 Tom Tromey <tom@tromey.com>
13631
13632 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13633 * tui/tui-disasm.h (struct tui_disasm_window)
13634 <display_start_addr>: Declare.
13635 * tui/tui-source.h (struct tui_source_window)
13636 <display_start_addr>: Declare.
13637 * tui/tui-winsource.h (struct tui_source_window_base)
13638 <show_source_line, display_start_addr>: New methods.
13639 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13640 Rename and move to protected section.
13641 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13642 (tui_source_window_base::do_erase_source_content): Update.
13643 (tui_source_window_base::show_source_line): Now a method.
13644 (tui_source_window_base::show_source_content)
13645 (tui_source_window_base::tui_source_window_base)
13646 (tui_source_window_base::rerender)
13647 (tui_source_window_base::refill)
13648 (tui_source_window_base::do_scroll_horizontal)
13649 (tui_source_window_base::set_is_exec_point_at)
13650 (tui_source_window_base::update_breakpoint_info)
13651 (tui_source_window_base::update_exec_info): Update.
13652 * tui/tui-source.c (tui_source_window::set_contents)
13653 (tui_source_window::showing_source_p)
13654 (tui_source_window::do_scroll_vertical)
13655 (tui_source_window::location_matches_p)
13656 (tui_source_window::line_is_displayed): Update.
13657 (tui_source_window::display_start_addr): New method.
13658 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13659 (tui_disasm_window::do_scroll_vertical)
13660 (tui_disasm_window::location_matches_p): Update.
13661 (tui_disasm_window::display_start_addr): New method.
13662
01b1af32
TT
136632020-02-22 Tom Tromey <tom@tromey.com>
13664
13665 * NEWS: Add entry for gdb.register_window_type.
13666 * tui/tui-layout.h (window_factory): New typedef.
13667 (tui_register_window): Declare.
13668 * tui/tui-layout.c (saved_tui_windows): New global.
13669 (tui_apply_current_layout): Use it.
13670 (tui_register_window): New function.
13671 * python/python.c (do_start_initialization): Call
13672 gdbpy_initialize_tui.
13673 (python_GdbMethods): Add "register_window_type" function.
13674 * python/python-internal.h (gdbpy_register_tui_window)
13675 (gdbpy_initialize_tui): Declare.
13676 * python/py-tui.c: New file.
13677 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13678
fc96d20b
TT
136792020-02-22 Tom Tromey <tom@tromey.com>
13680
13681 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13682
935c78c0
TT
136832020-02-22 Tom Tromey <tom@tromey.com>
13684
13685 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13686 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13687 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13688 (tui_set_win_focus_to): Move from tui-win.c.
13689
0240c8f1
TT
136902020-02-22 Tom Tromey <tom@tromey.com>
13691
13692 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13693 functions.
13694 (known_window_types): New global.
13695 (tui_get_window_by_name): Reimplement.
13696 (initialize_known_windows): New function.
13697 (validate_window_name): Rewrite.
13698 (_initialize_tui_layout): Call initialize_known_windows.
13699
fdb01f0c
TT
137002020-02-22 Tom Tromey <tom@tromey.com>
13701
13702 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13703 Remove constants.
13704 * tui/tui-winsource.h (struct tui_source_window_base)
13705 <tui_source_window_base>: Remove parameter.
13706 * tui/tui-winsource.c
13707 (tui_source_window_base::tui_source_window_base): Remove
13708 parameter.
13709 (tui_source_window_base::refill): Update.
13710 * tui/tui-stack.h (struct tui_locator_window)
13711 <tui_locator_window>: Update.
13712 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13713 Default the constructor.
13714 * tui/tui-regs.h (struct tui_data_item_window)
13715 <tui_data_item_window>: Default the constructor.
13716 (struct tui_data_window) <tui_data_window>: Likewise.
13717 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13718 Default the constructor.
13719 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13720 Default the constructor.
13721 <type>: Remove.
13722 (struct tui_win_info) <tui_win_info>: Default the constructor.
13723 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13724 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13725 Default the constructor.
13726
865a5aec
TT
137272020-02-22 Tom Tromey <tom@tromey.com>
13728
13729 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13730 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13731 * tui/tui-win.c (tui_resize_all): Don't call
13732 tui_delete_invisible_windows.
13733 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13734 done.
13735 (tui_set_layout): Update.
13736 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13737 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13738 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13739
e098d18c
TT
137402020-02-22 Tom Tromey <tom@tromey.com>
13741
13742 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13743 correctly.
13744
eb9c8874
TT
137452020-02-22 Tom Tromey <tom@tromey.com>
13746
13747 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13748
7eed1a8e
TT
137492020-02-22 Tom Tromey <tom@tromey.com>
13750
13751 * tui/tui-winsource.h (struct tui_source_window_iterator)
13752 <inner_iterator>: New etytypedef.
13753 <tui_source_window_iterator>: Take "end" parameter.
13754 <tui_source_window_iterator>: Take iterator.
13755 <operator*, advance>: Update.
13756 <m_iter>: Change type.
13757 <m_end>: New field.
13758 (struct tui_source_windows) <begin, end>: Update.
13759 * tui/tui-layout.c (tui_windows): New global.
13760 (tui_apply_current_layout): Clear tui_windows.
13761 (tui_layout_window::apply): Update tui_windows.
13762 * tui/tui-data.h (tui_windows): Declare.
13763 (all_tui_windows): Now inline function.
13764 (class tui_window_iterator, struct all_tui_windows): Remove.
13765
7c043ba6
TT
137662020-02-22 Tom Tromey <tom@tromey.com>
13767
13768 PR tui/17850:
13769 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13770 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13771 "height" argument.
13772 (class tui_layout_window) <get_sizes>: Likewise.
13773 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13774 argument.
13775 <get_sizes>: Add "height" argument.
13776 <m_vertical>: New field.
13777 * tui/tui-layout.c (tui_layout_split::clone): Update.
13778 (tui_layout_split::get_sizes): Add "height" argument.
13779 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13780 (tui_new_layout_command): Parse "-horizontal".
13781 (_initialize_tui_layout): Update help string.
13782 (tui_layout_split::specification): Add "-horizontal" when needed.
13783 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13784 argument.
13785 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13786 New methods.
13787
6bc56648
TT
137882020-02-22 Tom Tromey <tom@tromey.com>
13789
13790 * tui/tui-layout.h (enum tui_adjust_result): New.
13791 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13792 (class tui_layout_window) <adjust_size>: Return
13793 tui_adjust_result. Rewrite.
13794 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13795 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13796
c22fef7e
TT
137972020-02-22 Tom Tromey <tom@tromey.com>
13798
13799 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13800 parameter and return types.
13801 (class tui_layout_base) <specification>: Add "depth".
13802 (class tui_layout_window) <specification>: Add "depth".
13803 (class tui_layout_split) <specification>: Add "depth".
13804 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13805 and return types.
13806 (tui_new_layout_command): Parse sub-layouts.
13807 (_initialize_tui_layout): Update help string.
13808 (tui_layout_window::specification): Add "depth".
13809 (add_layout_command): Update.
13810
ee325b61
TT
138112020-02-22 Tom Tromey <tom@tromey.com>
13812
13813 * NEWS: Add "tui new-layout" item.
13814 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13815 Add new-layout command to help text.
13816 (validate_window_name): New function.
13817 (tui_new_layout_command): New function.
13818 (_initialize_tui_layout): Register "new-layout".
13819 (tui_layout_window::specification): New method.
13820 (tui_layout_window::specification): New method.
13821 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13822 method.
13823 (class tui_layout_window) <specification>: New method.
13824 (class tui_layout_split) <specification>: New method.
13825
416eb92d
TT
138262020-02-22 Tom Tromey <tom@tromey.com>
13827
13828 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13829 * tui/tui-win.c (window_name_completer): Update comment.
13830 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13831 Declare method.
13832 (class tui_layout_window) <replace_window>: Likewise.
13833 (class tui_layout_split) <replace_window>: Likewise.
13834 (tui_set_layout): Don't declare.
13835 (tui_set_initial_layout): Declare function.
13836 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13837 (asm_regs_layout): New globals.
13838 (tui_current_layout, show_layout): Remove.
13839 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13840 (find_layout, tui_apply_layout): New function.
13841 (layout_completer): Remove.
13842 (tui_next_layout): Reimplement.
13843 (tui_next_layout_command): New function.
13844 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13845 (tui_regs_layout): Reimplement.
13846 (tui_regs_layout_command): New function.
13847 (extract_display_start_addr): Rewrite.
13848 (next_layout, prev_layout): Remove.
13849 (tui_layout_window::replace_window): New method.
13850 (tui_layout_split::replace_window): New method.
13851 (destroy_layout): New function.
13852 (layout_list): New global.
13853 (add_layout_command): New function.
13854 (initialize_layouts): Update.
13855 (tui_layout_command): New function.
13856 (_initialize_tui_layout): Install "layout" commands.
13857 * tui/tui-data.h (enum tui_layout_type): Remove.
13858 (tui_current_layout): Don't declare.
13859
0dbc2fc7
TT
138602020-02-22 Tom Tromey <tom@tromey.com>
13861
13862 * tui/tui-regs.c (tui_reg_layout): Remove.
13863 (tui_reg_command): Use tui_regs_layout.
13864 * tui/tui-layout.h (tui_reg_command): Declare.
13865 * tui/tui-layout.c (tui_reg_command): New function.
13866
5afe342e
TT
138672020-02-22 Tom Tromey <tom@tromey.com>
13868
13869 * tui/tui.c (tui_rl_delete_other_windows): Call
13870 tui_remove_some_windows.
13871 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13872 Declare method.
13873 (class tui_layout_window) <remove_windows>: New method.
13874 (class tui_layout_split) <remove_windows>: Declare.
13875 (tui_remove_some_windows): Declare.
13876 * tui/tui-layout.c (tui_remove_some_windows): New function.
13877 (tui_layout_split::remove_windows): New method.
13878
427326a8
TT
138792020-02-22 Tom Tromey <tom@tromey.com>
13880
13881 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13882 * tui/tui-layout.h (tui_next_layout): Declare.
13883 * tui/tui-layout.c (tui_next_layout): New function.
13884
3fe12b6d
TT
138852020-02-22 Tom Tromey <tom@tromey.com>
13886
13887 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13888 correct coordinates.
13889
59b8b5d2
TT
138902020-02-22 Tom Tromey <tom@tromey.com>
13891
13892 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13893 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13894 DATA_WIN case.
13895
2a3d458b
TT
138962020-02-22 Tom Tromey <tom@tromey.com>
13897
13898 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13899 TUI_DISASM_WIN, not tui_win_list.
13900
3f0cbb04
TT
139012020-02-22 Tom Tromey <tom@tromey.com>
13902
13903 * valprint.c (generic_val_print_enum_1)
13904 (val_print_type_code_flags): Style member names.
13905 * rust-lang.c (val_print_struct, rust_print_enum)
13906 (rust_print_struct_def, rust_internal_print_type): Style member
13907 names.
13908 * p-valprint.c (pascal_object_print_value_fields): Style member
13909 names. Only call fprintf_symbol_filtered for static members.
13910 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13911 * f-valprint.c (f_val_print): Style member names.
13912 * f-typeprint.c (f_type_print_base): Style member names.
13913 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13914 call fprintf_symbol_filtered for static members.
13915 (cp_print_class_member): Style member names.
13916 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13917 member names.
13918 * ada-valprint.c (ada_print_scalar): Style enum names.
13919 (ada_val_print_enum): Likewise.
13920 * ada-typeprint.c (print_enum_type): Style enum names.
13921
d4d947ae
TT
139222020-02-21 Tom Tromey <tom@tromey.com>
13923
13924 * psympriv.h (struct partial_symtab): Update comment.
13925
e94e944b
TT
139262020-02-21 Tom Tromey <tromey@adacore.com>
13927
13928 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13929 type is CORE_ADDR.
13930
1eb73179
TV
139312020-02-21 Tom de Vries <tdevries@suse.de>
13932
13933 PR gdb/25534
13934 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13935 if dependencies[i]->user != NULL.
13936
4f180d53
AT
139372020-02-21 Ali Tamur <tamur@google.com>
13938
13939 * dwarf2/read.c (dwarf2_name): Add null check.
13940
22b6cd70
TT
139412020-02-20 Tom Tromey <tom@tromey.com>
13942
13943 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13944 ">=", in binary search.
13945 (dwarf2_find_containing_comp_unit): New overload.
13946 (run_test): New self-test.
13947 (_initialize_dwarf2_read): Register new test.
13948
bd0cf5a6
NC
139492020-02-20 Nelson Chu <nelson.chu@sifive.com>
13950
13951 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13952 * riscv-tdep.h: Likewise.
13953 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13954 rv32-only CSR.
13955 * features/riscv/64bit-csr.xml: Regenerated.
13956
3f702acd
SDJ
139572020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13958 Tom Tromey <tom@tromey.com>
13959
13960 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13961 of 'fputc_unfiltered'.
13962 (putchar_unfiltered): Call 'fputc_unfiltered'.
13963 (fputc_unfiltered): Call 'fputs_unfiltered'.
13964
d13c7322
AB
139652020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13966
13967 * config.in: Regenerate.
13968 * configure: Regenerate.
13969 * configure.ac: Add --with-python-libdir option.
13970 * main.c: Use WITH_PYTHON_LIBDIR.
13971
869d8950
TT
139722020-02-19 Tom Tromey <tom@tromey.com>
13973
13974 * symtab.c (general_symbol_info::compute_and_set_names): Use
13975 obstack_strndup. Simplify call to symbol_set_demangled_name.
13976
298e9637
SM
139772020-02-19 Simon Marchi <simon.marchi@efficios.com>
13978
13979 * dwarf2/read.c (allocate_signatured_type_table,
13980 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13981 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13982 Remove objfile parameter, update all callers.
13983
08410482
DE
139842020-02-19 Doug Evans <dje@google.com>
13985
13986 PR rust/25535
13987 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13988 rust_enum_variant calculation.
13989
dfdeeca1
TT
139902020-02-19 Tom Tromey <tromey@adacore.com>
13991
13992 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13993
2ef5453b
TT
139942020-02-19 Tom Tromey <tromey@adacore.com>
13995
13996 * ada-lang.c (cache_symbol): Use obstack_strdup.
13997
9f1528a1
AB
139982020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13999
14000 * configure: Regenerate.
14001
d3c22fa8
TT
140022020-02-19 Tom Tromey <tromey@adacore.com>
14003
14004 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14005 NULL check.
14006
bf84f706
MR
140072020-02-19 Maciej W. Rozycki <macro@wdc.com>
14008
14009 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14010
d1c9b20f
AB
140112020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14012
14013 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14014 if GDBSERVER is not defined.
14015 (riscv_tdesc_cache): Likewise, also store const target_desc.
14016 (STATIC_IN_GDB): Define.
14017 (riscv_create_target_description): Update declaration with
14018 STATIC_IN_GDB.
14019 (riscv_lookup_target_description): New function, only define if
14020 GDBSERVER is not defined.
14021 * arch/riscv.h (riscv_create_target_description): Declare only
14022 when GDBSERVER is defined.
14023 (riscv_lookup_target_description): New declaration when GDBSERVER
14024 is not defined.
14025 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14026 (riscv_linux_read_features): ...this, and return
14027 riscv_gdbarch_features instead of target_desc.
14028 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14029 (riscv_linux_read_description): Rename to...
14030 (riscv_linux_read_features): ...this.
14031 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14032 Update to use riscv_gdbarch_features and
14033 riscv_lookup_target_description.
14034 * riscv-tdep.c (riscv_find_default_target_description): Use
14035 riscv_lookup_target_description instead of
14036 riscv_create_target_description.
14037
373d7ac0
SM
140382020-02-18 Simon Marchi <simon.marchi@efficios.com>
14039
14040 * valprint.c (generic_val_print_enum_1): When printing a flag
14041 enum with value 0 and there is no enumerator with value 0, print
14042 just "0" instead of "(unknown: 0x0)".
14043
b29a2df0
SM
140442020-02-18 Simon Marchi <simon.marchi@efficios.com>
14045
14046 * valprint.c (generic_val_print_enum_1): Print unknown part of
14047 flag enum in hex.
14048
6740f0cc
SM
140492020-02-18 Simon Marchi <simon.marchi@efficios.com>
14050
14051 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14052 flag enums to contain duplicate enumerators.
14053 * valprint.c (generic_val_print_enum_1): Update comment.
14054
edd45eb0
SM
140552020-02-18 Simon Marchi <simon.marchi@efficios.com>
14056
14057 * dwarf2/read.c: Include "count-one-bits.h".
14058 (update_enumeration_type_from_children): If an enumerator has
14059 multiple bits set, don't treat the enumeration as a "flag enum".
14060 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14061 of flag enums have 0 or 1 bit set.
14062
6d0cf446
BE
140632020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14064
14065 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14066 conversion.
14067 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14068 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14069 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14070 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14071 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14072
7001c1b7
SM
140732020-02-18 Simon Marchi <simon.marchi@efficios.com>
14074
14075 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14076
fdb61c6c
SM
140772020-02-14 Simon Marchi <simon.marchi@efficios.com>
14078
14079 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14080 displaced_step_closure_up.
14081 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14082 (struct displaced_step_closure_up):
14083 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14084 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14085 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14086 Likewise.
14087 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14088 * gdbarch.c, gdbarch.h: Re-generate.
14089 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14090 displaced_step_closure_up.
14091 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14092 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14093 * infrun.h (displaced_step_closure_up): New type alias.
14094 (struct displaced_step_inferior_state) <step_closure>: Change
14095 type to displaced_step_closure_up.
14096 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14097 displaced_step_closure_up.
14098 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14099
a4a38eb4
TT
141002020-02-14 Tom Tromey <tom@tromey.com>
14101
14102 * minidebug.c (gnu_debug_key): New global.
14103 (find_separate_debug_file_in_section): Use it.
14104
e8217e61
SM
141052020-02-14 Simon Marchi <simon.marchi@efficios.com>
14106
14107 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14108 std::unique_ptr.
14109 * gdbarch.c: Re-generate.
14110 * gdbarch.h: Re-generate.
14111 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14112 change.
14113 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14114 type to std::unique_ptr.
14115 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14116 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14117 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14118 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14119 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14120 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14121 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14122 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14123 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14124
d8d83535
SM
141252020-02-14 Simon Marchi <simon.marchi@efficios.com>
14126
14127 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14128 std::unique_ptr.
14129 (displaced_step_clear): Rename to...
14130 (displaced_step_reset): ... this. Just call displaced->reset ().
14131 (displaced_step_clear_cleanup): Rename to...
14132 (displaced_step_reset_cleanup): ... this.
14133 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14134 (displaced_step_fixup): Likewise.
14135 (resume_1): Likewise.
14136 (handle_inferior_event): Restore child's memory before calling
14137 displaced_step_fixup on the parent.
14138 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14139 to std::unique_ptr.
14140 <step_closure>: Change type to std::unique_ptr.
14141
5f661e03
SM
141422020-02-14 Simon Marchi <simon.marchi@efficios.com>
14143
14144 * arm-tdep.c: Include count-one-bits.h.
14145 (cleanup_block_store_pc): Use count_one_bits.
14146 (cleanup_block_load_pc): Use count_one_bits.
14147 (arm_copy_block_xfer): Use count_one_bits.
14148 (thumb2_copy_block_xfer): Use count_one_bits.
14149 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14150 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14151 (thumb_get_next_pcs_raw): Use count_one_bits.
14152 (arm_get_next_pcs_raw): Use count_one_bits_l.
14153 * arch/arm.c (bitcount): Remove.
14154 * arch/arm.h (bitcount): Remove.
14155
8084e579
TT
141562020-02-14 Tom Tromey <tromey@adacore.com>
14157
14158 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14159 Update.
14160 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14161 * dwarf2/loc.c (call_site_find_chain_1): Return
14162 unique_xmalloc_ptr.
14163 (call_site_find_chain): Likewise.
14164
258bf0ee
RB
141652020-02-14 Richard Biener <rguenther@suse.de>
14166
14167 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14168 on expression with division operators.
14169
f98a8458
AKS
141702020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14171
14172 * MAINTAINERS (Write After Approval): Adding myself.
14173
d1437c0e
TT
141742020-02-12 Tom Tromey <tom@tromey.com>
14175
14176 * event-loop.c (event_data, gdb_event, event_handler_func):
14177 Remove.
14178
3d4560f7
TT
141792020-02-12 Tom Tromey <tom@tromey.com>
14180
14181 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14182 (dwarf2_frame_objfile_data): Add comment.
14183 (find_comp_unit, set_comp_unit): New functions.
14184 (dwarf2_frame_find_fde): Use find_comp_unit.
14185 (dwarf2_build_frame_info): Use set_comp_unit.
14186
21982304
TT
141872020-02-12 Tom Tromey <tom@tromey.com>
14188
14189 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14190 (comp_unit): Don't initialize objfile.
14191 (execute_cfa_program): Add text_offset parameter.
14192 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14193 (dwarf2_frame_cache): Update.
14194 (dwarf2_build_frame_info): Don't set "objfile" member.
14195
4debb237
TT
141962020-02-12 Tom Tromey <tom@tromey.com>
14197
14198 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14199 (decode_frame_entry): Likewise.
14200 (dwarf2_build_frame_info): Update.
14201
0d404d44
TT
142022020-02-12 Tom Tromey <tom@tromey.com>
14203
14204 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14205 (decode_frame_entry_1): Use the comp_unit obstack.
14206
a7a3ae5c
TT
142072020-02-12 Tom Tromey <tom@tromey.com>
14208
14209 * dwarf2/frame.c (struct comp_unit): Add initializers and
14210 constructor.
14211 (dwarf2_frame_objfile_data): Store a comp_unit.
14212 (dwarf2_frame_find_fde): Update.
14213 (dwarf2_build_frame_info): Use "new".
14214
a9d65418
TT
142152020-02-12 Tom Tromey <tom@tromey.com>
14216
14217 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14218 (dwarf2_fde_table): Typedef for std::vector.
14219 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14220 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14221 (decode_frame_entry): Update.
14222 (dwarf2_build_frame_info): Use "new".
14223
7559c217
CB
142242020-02-12 Christian Biesinger <cbiesinger@google.com>
14225
14226 * arm-tdep.c (arm_gdbarch_init): Update.
14227 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14228 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14229 have_neon, is_m>: Change to bool.
14230
aeefc73c
CB
142312020-02-12 Christian Biesinger <cbiesinger@google.com>
14232
14233 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14234
d27b8e5f
TT
142352020-02-12 Tom Tromey <tom@tromey.com>
14236
14237 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14238
cd5900f3
HD
142392020-02-12 Hannes Domani <ssbssa@yahoo.de>
14240
14241 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14242 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14243
f056b22b
TT
142442020-02-11 Tom Tromey <tom@tromey.com>
14245
14246 * psymtab.h: Update comment.
14247
f92ff6b5
TT
142482020-02-11 Tom Tromey <tom@tromey.com>
14249
14250 * gdb_obstack.h (struct auto_obstack): Use
14251 DISABLE_COPY_AND_ASSIGN.
14252
3fd6912b
TT
142532020-02-11 Tom Tromey <tom@tromey.com>
14254
14255 * dwarf2/frame.h (struct objfile): Don't forward declare.
14256
69ed9b74
CB
142572020-02-11 Christian Biesinger <cbiesinger@google.com>
14258
14259 * cris-tdep.c (cris_supply_gregset): Change signature to match
14260 what struct regset expects.
14261 (cris_regset): New struct.
14262 (fetch_core_registers): Remove.
14263 (cris_iterate_over_regset_sections): New function.
14264 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14265 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14266
bda874f6
CB
142672020-02-11 Christian Biesinger <cbiesinger@google.com>
14268
14269 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14270 registers.
14271
754e1564
CB
142722020-02-11 Christian Biesinger <cbiesinger@google.com>
14273
14274 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14275
8ddd8e0e
SM
142762020-02-11 Simon Marchi <simon.marchi@efficios.com>
14277
14278 * configure: Re-generate.
14279
898e7f60
SM
142802020-02-11 Simon Marchi <simon.marchi@efficios.com>
14281
14282 * configure: Re-generate.
14283
58df732b
SM
142842020-02-11 Simon Marchi <simon.marchi@efficios.com>
14285
14286 * acinclude: Update warning.m4 path.
14287 * warning.m4: Move to gdbsupport.
14288
da5bd37e
TT
142892020-02-11 Tom Tromey <tromey@adacore.com>
14290
14291 * remote.c (remote_console_output): Update.
14292 * printcmd.c (printf_command): Update.
14293 * event-loop.c (gdb_wait_for_event): Update.
14294 * linux-nat.c (sigchld_handler): Update.
14295 * remote-sim.c (gdb_os_write_stdout): Update.
14296 (gdb_os_flush_stdout): Update.
14297 (gdb_os_flush_stderr): Update.
14298 (gdb_os_write_stderr): Update.
14299 * exceptions.c (print_exception): Update.
14300 * remote-fileio.c (remote_fileio_func_read): Update.
14301 (remote_fileio_func_write): Update.
14302 * tui/tui.c (tui_enable): Update.
14303 * tui/tui-interp.c (tui_interp::init): Update.
14304 * utils.c (init_page_info): Update.
14305 (putchar_unfiltered, fputc_unfiltered): Update.
14306 (gdb_flush): Update.
14307 (emit_style_escape): Update.
14308 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14309 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14310 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14311 (stderr_file::write): Update.
14312 (stderr_file::puts): Update.
14313 * ui-file.h (ui_file_isatty, ui_file_write)
14314 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14315 (ui_file_puts): Don't declare.
14316
85f0dd3c
TV
143172020-02-10 Tom de Vries <tdevries@suse.de>
14318
14319 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14320 sentinel to char *.
14321
2e927613
TV
143222020-02-09 Tom de Vries <tdevries@suse.de>
14323
14324 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14325 filename if it matches "<artificial>".
14326
6bafc845
HD
143272020-02-09 Hannes Domani <ssbssa@yahoo.de>
14328
14329 * windows-tdep.c (struct enum_value_name): New struct.
14330 (create_enum): New function.
14331 (windows_get_siginfo_type): Create and use enum types.
14332
7928d571
HD
143332020-02-09 Hannes Domani <ssbssa@yahoo.de>
14334
14335 * NEWS: Mention $_siginfo support for Windows.
14336 * windows-nat.c (handle_exception): Set siginfo_er.
14337 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14338 (windows_xfer_siginfo): New function.
14339 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14340 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14341 (init_windows_gdbarch_data): New function.
14342 (get_windows_gdbarch_data): New function.
14343 (windows_get_siginfo_type): New function.
14344 (windows_init_abi): Register windows_get_siginfo_type.
14345 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14346
6751ebae
TT
143472020-02-08 Tom Tromey <tom@tromey.com>
14348
14349 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14350 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14351 <keep>: Declare method.
14352 <m_keep>: Remove member.
14353 <~cutu_reader>: Remove.
14354 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14355 (cutu_reader::cutu_reader): Update.
14356 (cutu_reader::keep): Rename from ~cutu_reader.
14357 (process_psymtab_comp_unit, build_type_psymtabs_1)
14358 (process_skeletonless_type_unit, load_partial_comp_unit)
14359 (load_full_comp_unit, dwarf2_read_addr_index)
14360 (read_signatured_type): Update.
14361
135f5437
TT
143622020-02-08 Tom Tromey <tom@tromey.com>
14363
14364 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14365 "want_partial_unit" parameter.
14366 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14367 Inline check for DW_TAG_partial_unit.
14368 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14369
9f66ff1c
TT
143702020-02-08 Tom Tromey <tom@tromey.com>
14371
14372 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14373 read.c.
14374 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14375 read.c.
14376
c8a7a66f
TT
143772020-02-08 Tom Tromey <tom@tromey.com>
14378
14379 * dwarf2/read.c (read_address): Move to comp-unit.c.
14380 (dwarf2_rnglists_process, dwarf2_ranges_process)
14381 (read_attribute_value, dwarf_decode_lines_1)
14382 (var_decode_location, decode_locdesc): Update.
14383 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14384 read.c. Remove "cu" parameter.
14385 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14386 method.
14387
8266302d
TT
143882020-02-08 Tom Tromey <tom@tromey.com>
14389
14390 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14391 (read_indirect_line_string): Update.
14392 * dwarf2/comp-unit.c (read_offset): Remove.
14393 (read_comp_unit_head): Update.
14394 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14395 method.
14396 (read_offset): Don't declare.
14397
4057dfde
TT
143982020-02-08 Tom Tromey <tom@tromey.com>
14399
14400 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14401 * dwarf2/read.c (struct comp_unit_head): Move to
14402 dwarf2/comp-unit.h.
14403 (enum class rcuh_kind): Move to comp-unit.h.
14404 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14405 (read_comp_unit_head, error_check_comp_unit_head)
14406 (read_and_check_comp_unit_head): Move to comp-unit.c.
14407 (read_offset, dwarf_unit_type_name): Likewise.
14408 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14409 (cutu_reader::cutu_reader, read_call_site_scope)
14410 (find_partial_die, follow_die_offset): Update.
14411 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14412
24aa364d
TT
144132020-02-08 Tom Tromey <tom@tromey.com>
14414
14415 * dwarf2/read.c (read_offset_1): Move to leb.c.
14416 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14417 (dwarf_decode_macro_bytes): Update.
14418 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14419 * dwarf2/leb.h (read_offset): Declare.
14420
2c7d5afc
TT
144212020-02-08 Tom Tromey <tom@tromey.com>
14422
14423 * dwarf2/read.c (dwarf2_section_size): Remove.
14424 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14425 Update.
14426 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14427
4075cb26
TT
144282020-02-08 Tom Tromey <tom@tromey.com>
14429
14430 * dwarf2/read.c (read_initial_length): Move to leb.c.
14431 * dwarf2/leb.h (read_initial_length): Declare.
14432 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14433 handle_nonstd parameter.
14434 * dwarf2/frame.c (read_initial_length): Remove.
14435 (decode_frame_entry_1): Update.
14436
09ba997f
TT
144372020-02-08 Tom Tromey <tom@tromey.com>
14438
14439 * dwarf2/loc.c (dwarf2_find_location_expression)
14440 (dwarf_evaluate_loc_desc::get_tls_address)
14441 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14442 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14443 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14444 (dwarf2_compile_property_to_c)
14445 (dwarf2_loc_desc_get_symbol_read_needs)
14446 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14447 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14448 (loclist_describe_location, loclist_tracepoint_var_ref)
14449 (loclist_generate_c_location): Update.
14450 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14451 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14452 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14453 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14454 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14455 (dwarf2_per_cu_data::addr_size)
14456 (dwarf2_per_cu_data::ref_addr_size)
14457 (dwarf2_per_cu_data::text_offset)
14458 (dwarf2_per_cu_data::addr_type): Now methods.
14459 (per_cu_header_read_in): Make per_cu "const".
14460 (dwarf2_version): Remove.
14461 (dwarf2_per_cu_data::int_type): Now a method.
14462 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14463 (set_die_type, read_array_type, read_subrange_index_type)
14464 (read_tag_string_type, read_subrange_type): Update.
14465 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14466 offset_size, ref_addr_size, text_offset, addr_type, version,
14467 objfile, int_type, addr_sized_int_type>: Declare methods.
14468
96c738c0
TT
144692020-02-08 Tom Tromey <tom@tromey.com>
14470
14471 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14472 Move earlier.
14473
8fdd972c
TT
144742020-02-08 Tom Tromey <tom@tromey.com>
14475
14476 * dwarf2/read.h (dwarf_line_debug): Declare.
14477 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14478 * dwarf2/read.c: Move line_header code to new files.
14479 (dwarf_line_debug): No longer static.
14480 * dwarf2/line-header.c: New file.
14481 * dwarf2/line-header.h: New file.
14482
03075812
TT
144832020-02-08 Tom Tromey <tom@tromey.com>
14484
14485 * dwarf2/read.c (struct line_header) <file_full_name,
14486 file_file_name>: Return unique_xmalloc_ptr.
14487 (line_header::file_file_name): Update.
14488 (line_header::file_full_name): Update.
14489 (dw2_get_file_names_reader): Update.
14490 (macro_start_file): Update.
14491
bb822404
TT
144922020-02-08 Tom Tromey <tom@tromey.com>
14493
14494 * dwarf2/read.c (struct line_header) <file_full_name,
14495 file_file_name>: Declare methods.
14496 (dw2_get_file_names_reader): Update.
14497 (file_file_name): Now a method.
14498 (file_full_name): Likewise.
14499 (macro_start_file): Update.
14500
009b64fc
TT
145012020-02-08 Tom Tromey <tom@tromey.com>
14502
14503 * dwarf2/read.c (dwarf_always_disassemble)
14504 (show_dwarf_always_disassemble): Move to loc.c.
14505 (_initialize_dwarf2_read): Move "always-disassemble" registration
14506 to loc.c.
14507 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14508 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14509 static.
14510 (show_dwarf_always_disassemble): Move from read.c.
14511 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14512
5895093f
TT
145132020-02-08 Tom Tromey <tom@tromey.com>
14514
14515 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14516 (create_quick_file_names_table): Return htab_up.
14517 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14518 Update.
14519 * dwarf2/read.h (struct dwarf2_per_objfile)
14520 <quick_file_names_table>: Now htab_up.
14521
b3b32279
TT
145222020-02-08 Tom Tromey <tom@tromey.com>
14523
14524 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14525
1d33d811
TT
145262020-02-08 Tom Tromey <tom@tromey.com>
14527
14528 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14529 Rewrite.
14530 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14531 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14532 (abbrev_table::abbrev_table): No longer inline.
14533 (ABBREV_HASH_SIZE): Remove.
14534 (abbrev_table::m_abbrevs): Now an htab_up.
14535
86de1d91
TT
145362020-02-08 Tom Tromey <tom@tromey.com>
14537
14538 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14539 (cutu_reader): Update.
14540 (build_type_psymtabs_1): Update.
14541 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14542 (abbrev_table::alloc_abbrev): Update.
14543 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14544 (abbrev_table::read): New static method, renamed from
14545 abbrev_table_read_table.
14546 (abbrev_table::alloc_abbrev)
14547 (abbrev_table::add_abbrev): Now private.
14548 (abbrev_table::abbrev_table): Now private.
14549 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14550
0335378b
TT
145512020-02-08 Tom Tromey <tom@tromey.com>
14552
14553 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14554 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14555 htab_up.
14556
48b490f2
TT
145572020-02-08 Tom Tromey <tom@tromey.com>
14558
14559 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14560 htab_up.
14561 (lookup_dwo_unit_in_dwp): Update.
14562 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14563 on obstack.
14564
bc68fb19
TT
145652020-02-08 Tom Tromey <tom@tromey.com>
14566
14567 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14568 obstack.
14569
d15acc42
TT
145702020-02-08 Tom Tromey <tom@tromey.com>
14571
14572 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14573 line_header_hash.
14574 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14575 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14576 Change type to htab_up.
14577
eaa5fa8b
TT
145782020-02-08 Tom Tromey <tom@tromey.com>
14579
14580 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14581 htab_up. Don't allocate on obstack.
14582 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14583 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14584 Change type to htab_up.
14585
b0b6a987
TT
145862020-02-08 Tom Tromey <tom@tromey.com>
14587
14588 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14589 Change type to htab_up.
14590 * dwarf2/read.c (create_signatured_type_table_from_index)
14591 (create_signatured_type_table_from_debug_names)
14592 (create_all_type_units, add_type_unit)
14593 (lookup_dwo_signatured_type, lookup_signatured_type)
14594 (process_skeletonless_type_unit): Update.
14595 (create_debug_type_hash_table, create_debug_types_hash_table):
14596 Change type of types_htab.
14597 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14598 htab_up. Don't allocate on obstack.
14599 (create_cus_hash_table): Change type of cus_htab parameter.
14600 (struct dwo_file) <cus, tus>: Now htab_up.
14601 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14602 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14603 (queue_and_load_all_dwo_tus): Update.
14604 * dwarf2/index-write.c (write_gdbindex): Update.
14605 (write_debug_names): Update.
14606
39856def
TT
146072020-02-08 Tom Tromey <tom@tromey.com>
14608
14609 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14610 dwarf2/read.c. Remove "next" member. Add constructor ntad
14611 destructor.
14612 (struct dwarf2_per_objfile) <queue>: New member.
14613 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14614 dwarf2/read.h.
14615 (dwarf2_queue, dwarf2_queue_tail): Remove.
14616 (class dwarf2_queue_guard): Add parameter to constructor. Use
14617 DISABLE_COPY_AND_ASSIGN.
14618 <m_per_objfile>: New member.
14619 <~dwarf2_queue_guard>: Rewrite.
14620 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14621 Update.
14622 (~dwarf2_queue_item): New.
14623
3e225074
TT
146242020-02-08 Tom Tromey <tom@tromey.com>
14625
14626 * dwarf2/read.c (struct die_info) <has_children>: New member.
14627 (dw2_get_file_names_reader): Remove has_children.
14628 (dw2_get_file_names): Update.
14629 (read_cutu_die_from_dwo): Remove has_children.
14630 (cutu_reader::init_tu_and_read_dwo_dies)
14631 (cutu_reader::cutu_reader): Update.
14632 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14633 Remove has_children.
14634 (build_type_psymtabs_1, process_skeletonless_type_unit)
14635 (load_partial_comp_unit, load_full_comp_unit): Update.
14636 (create_dwo_cu_reader): Remove has_children.
14637 (create_cus_hash_table, read_die_and_children): Update.
14638 (read_full_die_1,read_full_die): Remove has_children.
14639 (read_signatured_type): Update.
14640 (class cutu_reader) <has_children>: Remove.
14641
82ca8957
TT
146422020-02-08 Tom Tromey <tom@tromey.com>
14643
14644 * dwarf2/expr.c: Rename from dwarf2expr.c.
14645 * dwarf2/expr.h: Rename from dwarf2expr.h.
14646 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14647 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14648 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14649 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14650 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14651 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14652 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14653 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14654 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14655 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14656 * dwarf2/loc.c: Rename from dwarf2loc.c.
14657 * dwarf2/loc.h: Rename from dwarf2loc.h.
14658 * dwarf2/read.c: Rename from dwarf2read.c.
14659 * dwarf2/read.h: Rename from dwarf2read.h.
14660 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14661 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14662 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14663 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14664 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14665 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14666 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14667 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14668 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14669 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14670 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14671 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14672 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14673 Update.
14674 * Makefile.in (COMMON_SFILES): Update.
14675 (HFILES_NO_SRCDIR): Update.
14676
9e35d499
TT
146772020-02-08 Tom Tromey <tom@tromey.com>
14678
14679 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14680 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14681
1eba2311
TT
146822020-02-08 Tom Tromey <tom@tromey.com>
14683
14684 * dwarf2read.h (struct die_info): Don't declare.
14685
e41c2da2
TT
146862020-02-08 Tom Tromey <tom@tromey.com>
14687
14688 * dwarf2read.h (die_info_ptr): Remove typedef.
14689
4fc6c0d5
TT
146902020-02-08 Tom Tromey <tom@tromey.com>
14691
14692 * dwarf2read.c (read_call_site_scope)
14693 (handle_data_member_location, dwarf2_add_member_fn)
14694 (mark_common_block_symbol_computed, read_common_block)
14695 (attr_to_dynamic_prop, partial_die_info::read)
14696 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14697 (dwarf2_symbol_mark_computed, set_die_type): Update.
14698 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14699 method.
14700 (attr_form_is_block): Don't declare.
14701 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14702
cd6c91b4
TT
147032020-02-08 Tom Tromey <tom@tromey.com>
14704
14705 * dwarf2read.c (dwarf2_find_base_address, )
14706 (read_call_site_scope, rust_containing_type)
14707 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14708 (handle_data_member_location, dwarf2_add_member_fn)
14709 (get_alignment, read_structure_type, process_structure_scope)
14710 (mark_common_block_symbol_computed, read_common_block)
14711 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14712 (partial_die_info::read, read_attribute_value, new_symbol)
14713 (lookup_die_type, dwarf2_get_ref_die_offset)
14714 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14715 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14716 (dwarf2_symbol_mark_computed): Update.
14717 * dwarf2/attribute.h (struct attribute) <value_as_address,
14718 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14719 methods.
14720 (value_as_address, attr_form_is_section_offset)
14721 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14722 * dwarf2/attribute.c (attribute::value_as_address)
14723 (attribute::form_is_section_offset, attribute::form_is_constant)
14724 (attribute::form_is_ref): Now methods.
14725
162dce55
TT
147262020-02-08 Tom Tromey <tom@tromey.com>
14727
14728 * dwarf2read.c (struct attribute, DW_STRING)
14729 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14730 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14731 (attr_form_is_block, attr_form_is_section_offset)
14732 (attr_form_is_constant, attr_form_is_ref): Move.
14733 * dwarf2/attribute.h: New file.
14734 * dwarf2/attribute.c: New file, from dwarf2read.c.
14735 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14736
3054dd54
TT
147372020-02-08 Tom Tromey <tom@tromey.com>
14738
14739 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14740 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14741 Move.
14742 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14743 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14744 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14745 abbrev.c.
14746 * dwarf2/abbrev.h: New file.
14747 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14748 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14749
96b79293
TT
147502020-02-08 Tom Tromey <tom@tromey.com>
14751
14752 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14753 (dwarf2_section_size, dwarf2_get_section_info)
14754 (create_signatured_type_table_from_debug_names)
14755 (create_addrmap_from_aranges, read_debug_names_from_section)
14756 (get_gdb_index_contents_from_section, read_comp_unit_head)
14757 (error_check_comp_unit_head, read_abbrev_offset)
14758 (create_debug_type_hash_table, init_cu_die_reader)
14759 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14760 (read_comp_units_from_section, create_cus_hash_table)
14761 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14762 (create_dwp_v2_section, dwarf2_rnglists_process)
14763 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14764 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14765 (read_indirect_string_from_dwz, read_addr_index_1)
14766 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14767 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14768 (fill_in_loclist_baton): Update.
14769 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14770 get_containing_section, get_bfd_owner, get_bfd_section,
14771 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14772 (dwarf2_read_section, get_section_name, get_section_file_name)
14773 (get_containing_section, get_section_bfd_owner)
14774 (get_section_bfd_section, get_section_name, get_section_file_name)
14775 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14776 declare.
14777 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14778 (dwarf2_section_info::get_bfd_owner)
14779 (dwarf2_section_info::get_bfd_section)
14780 (dwarf2_section_info::get_name)
14781 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14782 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14783 (dwarf2_section_info::read): Now methods.
14784 * dwarf-index-write.c (class debug_names): Update.
14785
2c86cff9
TT
147862020-02-08 Tom Tromey <tom@tromey.com>
14787
14788 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14789 Move to dwarf2/section.h.
14790 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14791 (get_section_bfd_section, get_section_name)
14792 (get_section_file_name, get_section_id, get_section_flags)
14793 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14794 dwarf2/section.c.
14795 * dwarf2/section.h: New file.
14796 * dwarf2/section.c: New file, from dwarf2read.c.
14797 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14798
f4382c45
TT
147992020-02-08 Tom Tromey <tom@tromey.com>
14800
14801 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14802 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14803 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14804 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14805 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14806 * dwarf2/leb.h: New file, from dwarf2read.c.
14807 * dwarf2/leb.c: New file, from dwarf2read.c.
14808 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14809 Remove.
14810 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14811 (COMMON_SFILES): Add dwarf2/leb.c.
14812
01840b7a
JB
148132020-02-08 Joel Brobecker <brobecker@adacore.com>
14814
14815 GDB 9.1 released.
14816
dfcb27e4
IB
148172020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14818
14819 PR gdb/25190:
aac66a4c
SM
14820 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14821 * gdb/remote.c (remote_console_output): Update.
14822 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14823 (ui_file_puts): ...this.
14824 * gdb/ui-file.h (ui_file_puts): Add declaration.
14825 * gdb/utils.c (emit_style_escape): Update.
14826 (flush_wrap_buffer): Update.
14827 (fputs_maybe_filtered): Update.
14828 (fputs_unfiltered): Add function.
dfcb27e4 14829
faa17681
IB
148302020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14831
aac66a4c
SM
14832 * gdb/event-loop.c (gdb_wait_for_event): Update.
14833 * gdb/printcmd.c (printf_command): Update.
14834 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14835 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14836 (gdb_os_flush_stderr): Update.
14837 * gdb/remote.c (remote_console_output): Update.
14838 * gdb/ui-file.c (gdb_flush): Rename to...
14839 (ui_file_flush): ...this.
14840 (stderr_file::write): Update.
14841 (stderr_file::puts): Update.
14842 * gdb/ui-file.h (gdb_flush): Rename to...
14843 (ui_file_flush): ...this.
14844 * gdb/utils.c (gdb_flush): Add function.
14845 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14846
5abbbe1d
TT
148472020-02-07 Tom Tromey <tromey@adacore.com>
14848
14849 PR breakpoints/24915:
14850 * source.c (find_and_open_source): Do not check basenames_may_differ.
14851
919adfe8
TT
148522020-02-07 Tom Tromey <tom@tromey.com>
14853
14854 * README: Update gdbserver documentation.
14855 * gdbserver: Move to top level.
14856 * configure.tgt (build_gdbserver): Remove.
14857 * configure.ac: Remove --enable-gdbserver.
14858 * configure: Rebuild.
14859 * Makefile.in (distclean): Don't mention gdbserver.
14860
1d5d29e7
SV
148612020-02-06 Shahab Vahedi <shahab@synopsys.com>
14862
14863 * source-cache.c (source_cache::ensure): Surround
14864 get_plain_source_lines with a try/catch.
14865 (source_cache::get_line_charpos): Get rid of try/catch
14866 and only check for the return value of "ensure".
14867 * tui/tui-source.c (tui_source_window::set_contents):
14868 Simplify "nlines" calculation.
14869
6eb1129c
SV
148702020-02-06 Shahab Vahedi <shahab@synopsys.com>
14871
14872 * MAINTAINERS (Write After Approval): Add myself.
14873
c6a42d11
CB
148742020-02-05 Christian Biesinger <cbiesinger@google.com>
14875
14876 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14877 function call.
14878
c8ecdda6
CB
148792020-02-05 Christian Biesinger <cbiesinger@google.com>
14880
14881 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14882
f6480e70
MR
148832020-02-05 Maciej W. Rozycki <macro@wdc.com>
14884
14885 * nat/riscv-linux-tdesc.h: New file.
14886 * nat/riscv-linux-tdesc.c: New file, taking code from...
14887 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14888 ... here.
14889 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14890 NATDEPFILES.
14891
dcc9fbc6
AB
148922020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14893
14894 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14895 we don't set the fake simulator ptid to the null_ptid.
14896
719546c4
SM
148972020-02-03 Simon Marchi <simon.marchi@efficios.com>
14898
14899 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14900 * gdbthread.h (class thread_info) <resumed>: Likewise.
14901 * infrun.c (resume_1): Likewise.
14902 (proceed): Likewise.
14903 (infrun_thread_stop_requested): Likewise.
14904 (stop_all_threads): Likewise.
14905 (handle_inferior_event): Likewise.
14906 (restart_threads): Likewise.
14907 (finish_step_over): Likewise.
14908 (keep_going_stepped_thread): Likewise.
14909 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14910 (linux_handle_extended_wait): Likewise.
14911 * record-btrace.c (get_thread_current_frame_id): Likewise.
14912 * record-full.c (record_full_wait_1): Likewise.
14913 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14914 * target.c (target_resume): Likewise.
14915 * thread.c (set_running_thread): Likewise.
14916
e409c542
AKS
149172020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14918
14919 * f-valprint.c (f77_print_array_1): Changed datatype of index
14920 variable to LONGEST from int to enable it to contain bound
14921 values correctly.
14922
ee98c0da
MR
149232020-02-03 Maciej W. Rozycki <macro@wdc.com>
14924
14925 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14926 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14927 offsets according to FLEN determined.
14928 (riscv_linux_nat_target::read_description): Determine FLEN
14929 dynamically.
14930 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14931 according to FLEN determined.
14932 (riscv_linux_nat_target::store_registers): Likewise.
14933
aa66aac4
SV
149342020-02-01 Shahab Vahedi <shahab@synopsys.com>
14935
14936 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14937 when reg->group is empty and reggroup is not.
14938
fd9faca8
TT
149392020-01-31 Tom Tromey <tromey@adacore.com>
14940
14941 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14942 Call beneath target's mourn_inferior after unpushing.
14943
42330a68
AB
149442020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14945
14946 PR tui/9765
14947 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14948 have enough lines to fill the screen, still return the lowest
14949 address we found.
14950
7a27a45b
AB
149512020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14952
14953 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14954 '-', '<', and '>' commands.
14955
c47f70e2
PA
149562020-01-29 Pedro Alves <palves@redhat.com>
14957 Sergio Durigan Junior <sergiodj@redhat.com>
14958
14959 * infcmd.c (construct_inferior_arguments): Assert that
14960 'argc' is greater than 0.
14961
5133a315
LM
149622020-01-29 Luis Machado <luis.machado@linaro.org>
14963
14964 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14965 (BRK_INSN_MASK): Define to 0xd4200000.
14966 (aarch64_program_breakpoint_here_p): New function.
14967 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14968 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14969 breakpoint.c.
14970 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14971 breakpoint.h
14972 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14973 call gdbarch_program_breakpoint_here_p.
14974 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14975 default_program_breakpoint_here_p, changed return type to bool and
14976 simplified.
14977 * breakpoint.h (program_breakpoint_here): Moved prototype to
14978 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14979 return type to bool.
14980 * gdbarch.c: Regenerate.
14981 * gdbarch.h: Regenerate.
14982 * gdbarch.sh (program_breakpoint_here_p): New method.
14983 * infrun.c (handle_signal_stop): Call
14984 gdbarch_program_breakpoint_here_p.
14985
168f8c6b
TT
149862020-01-26 Tom Tromey <tom@tromey.com>
14987
14988 * ctfread.c (struct ctf_fp_info): Reindent.
14989 (_initialize_ctfread): Remove.
14990
128a391f
TT
149912020-01-26 Tom Tromey <tom@tromey.com>
14992
14993 * psymtab.c (partial_map_expand_apply)
14994 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14995 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14996 (psym_print_stats, psym_expand_symtabs_for_function)
14997 (psym_map_symbol_filenames, psym_map_matching_symbols)
14998 (psym_expand_symtabs_matching)
14999 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15000 (maintenance_check_psymtabs): Use new methods.
15001 * psympriv.h (struct partial_symtab) <readin_p,
15002 get_compunit_symtab>: New methods.
15003 <readin, compunit_symtab>: Remove members.
15004 (struct standard_psymtab): New.
15005 (struct legacy_psymtab): Derive from standard_psymtab.
15006 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15007 standard_psymtab.
15008 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15009
0494dbec
TT
150102020-01-26 Tom Tromey <tom@tromey.com>
15011
15012 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15013 read_dependencies. Add assert.
15014 * psymtab.c (partial_symtab::read_dependencies): New method.
15015 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15016 method.
15017 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15018 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15019 read_dependencies.
15020 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15021 Add assert.
15022
8566b89b
TT
150232020-01-26 Tom Tromey <tom@tromey.com>
15024
15025 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15026 Call expand_psymtab.
15027 (xcoff_read_symtab): Call expand_psymtab.
15028 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15029 legacy_expand_psymtab.
15030 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15031 method.
15032 (struct legacy_psymtab) <expand_psymtab>: Implement.
15033 <legacy_expand_psymtab>: New member.
15034 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15035 (parse_partial_symbols): Set legacy_expand_psymtab.
15036 (psymtab_to_symtab_1): Change argument order. Call
15037 expand_psymtab.
15038 (new_psymtab): Set legacy_expand_psymtab.
15039 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15040 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15041 expand_psymtab.
15042 (dwarf2_psymtab::expand_psymtab): Rename from
15043 psymtab_to_symtab_1. Call expand_psymtab.
15044 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15045 (dbx_end_psymtab): Likewise.
15046 (dbx_psymtab_to_symtab_1): Change argument order. Call
15047 expand_psymtab.
15048 (dbx_read_symtab): Call expand_psymtab.
15049 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15050 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15051 (ctf_psymtab::read_symtab): Call expand_psymtab.
15052
077cbab2
TT
150532020-01-26 Tom Tromey <tom@tromey.com>
15054
15055 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15056 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15057 messages.
15058 * mdebugread.c (mdebug_read_symtab): Remove prints.
15059 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15060 assert.
15061 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15062
891813be
TT
150632020-01-26 Tom Tromey <tom@tromey.com>
15064
15065 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15066 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15067 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15068 legacy_symtab.
15069 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15070 * psymtab.c (psymtab_to_symtab): Call method.
15071 (dump_psymtab): Update.
15072 * psympriv.h (struct partial_symtab): Add virtual destructor.
15073 <read_symtab>: New method.
15074 (struct legacy_symtab): New.
15075 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15076 (struct pst_map) <pst>: Now a legacy_psymtab.
15077 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15078 (new_psymtab): Use legacy_psymtab.
15079 * dwarf2read.h (struct dwarf2_psymtab): New.
15080 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15081 * dwarf2read.c (dwarf2_create_include_psymtab)
15082 (dwarf2_build_include_psymtabs, create_type_unit_group)
15083 (create_partial_symtab, process_psymtab_comp_unit_reader)
15084 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15085 (set_partial_user): Use dwarf2_psymtab.
15086 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15087 (psymtab_to_symtab_1, process_full_comp_unit)
15088 (process_full_type_unit, dwarf2_ranges_read)
15089 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15090 (dwarf_decode_lines): Use dwarf2_psymtab.
15091 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15092 (add_address_entry_worker, write_one_signatured_type)
15093 (recursively_count_psymbols, recursively_write_psymbols)
15094 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15095 (write_debug_names): Likewise.
15096 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15097 <pst>: Now a legacy_psymtab.
15098 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15099 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15100 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15101 * ctfread.c (struct ctf_psymtab): New.
15102 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15103 ctf_psymtab.
15104 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15105 (create_partial_symtab): Return a ctf_psymtab.
15106 (scan_partial_symbols): Update.
15107
c3693a1d
TT
151082020-01-26 Tom Tromey <tom@tromey.com>
15109
15110 * xcoffread.c (xcoff_start_psymtab): Use new.
15111 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15112 renamed from start_psymtab_common.
15113 * psympriv.h (struct partial_symtab): Add new constructor.
15114 (start_psymtab_common): Don't declare.
15115 * mdebugread.c (parse_partial_symbols): Use new.
15116 * dwarf2read.c (create_partial_symtab): Use new.
15117 * dbxread.c (start_psymtab): Use new.
15118 * ctfread.c (create_partial_symtab): Use new.
15119
32caafd0
TT
151202020-01-26 Tom Tromey <tom@tromey.com>
15121
15122 * xcoffread.c (xcoff_end_psymtab): Use new.
15123 * psymtab.c (start_psymtab_common): Use new.
15124 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15125 Update.
15126 * psympriv.h (struct partial_symtab): Add parameters to
15127 constructor. Don't inline.
15128 (allocate_psymtab): Don't declare.
15129 * mdebugread.c (new_psymtab): Use new.
15130 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15131 * dbxread.c (dbx_end_psymtab): Use new.
15132
abaa2f23
TT
151332020-01-26 Tom Tromey <tom@tromey.com>
15134
15135 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15136 allocate_psymtab. Update documentation.
15137 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15138 allocate_psymtab. Do not use new.
15139 (allocate_psymtab): Use new. Update.
15140
6d94535f
TT
151412020-01-26 Tom Tromey <tom@tromey.com>
15142
15143 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15144 * psymtab.c (psym_print_stats): Update.
15145 * psympriv.h (struct partial_symtab) <readin,
15146 psymtabs_addrmap_supported, anonymous>: Now bool.
15147 * mdebugread.c (psymtab_to_symtab_1): Update.
15148 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15149 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15150 (process_full_comp_unit, process_full_type_unit): Update.
15151 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15152 * ctfread.c (psymtab_to_symtab): Update.
15153
6f17252b
TT
151542020-01-26 Tom Tromey <tom@tromey.com>
15155
15156 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15157 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15158 * psymtab.c (psymtab_storage): Delete psymtabs.
15159 (psymtab_storage::allocate_psymtab): Use new.
15160 (psymtab_storage::discard_psymtab): Use delete.
15161 * psympriv.h (struct partial_symtab): Add constructor and
15162 initializers.
15163
f6f1cebc
TT
151642020-01-26 Tom Tromey <tom@tromey.com>
15165
15166 * machoread.c: Do not include psympriv.h.
15167
e47e48f6
PW
151682020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15169
15170 * NEWS: Mention the new option and the set/show commands.
15171
a2fedca9
PW
151722020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15173
15174 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15175 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15176 (validate_exec_file): New variables, enums, functions.
15177 (exec_file_locate_attach, print_section_info): Style the filenames.
15178 (_initialize_exec): Install show_exec_file_mismatch_command and
15179 set_exec_file_mismatch_command.
15180 * gdbcore.h (validate_exec_file): Declare.
15181 * infcmd.c (attach_command): Call validate_exec_file.
15182 * remote.c ( remote_target::remote_add_inferior): Likewise.
15183
7ffa82e1
AB
151842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15185
15186 * frame.c (find_frame_sal): Move call to get_next_frame into more
15187 inner scope.
15188 * inline-frame.c (inilne_state) <inline_state>: Update argument
15189 types.
15190 (inilne_state) <skipped_symbol>: Rename to...
15191 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15192 (skip_inline_frames): Build vector of skipped symbols and use this
15193 to reate the inline_state.
15194 (inline_skipped_symbol): Add a comment and some assertions, fetch
15195 skipped symbol from the list.
15196
3d92a3e3
AB
151972020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15198
15199 * buildsym.c (lte_is_less_than): Delete.
15200 (buildsym_compunit::end_symtab_with_blockvector): Create local
15201 lambda function to sort line table entries, and use
15202 std::stable_sort instead of std::sort.
15203 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15204 markers when looking for a previous line.
15205
94a72be7
AB
152062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15207
15208 * dwarf2read.c (lnp_state_machine::record_line): Include
15209 end_sequence parameter in debug print out. Record the line if we
15210 are at an end_sequence marker even if it's not the start of a
15211 statement.
15212 * symmisc.c (maintenance_print_one_line_table): Print end of
15213 sequence markers with 'END' not '0'.
15214
53af73bf
PA
152152020-01-24 Pedro Alves <palves@redhat.com>
15216
15217 PR gdb/25410
15218 * thread.c (scoped_restore_current_thread::restore): Use
15219 switch_to_inferior_no_thread.
15220 * exec.c: Include "progspace-and-thread.h".
15221 (add_target_sections, remove_target_sections):
15222 scoped_restore_current_pspace_and_thread instead of
15223 scoped_restore_current_thread.
15224 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15225 and aspace to the inferior before calling clone_program_space.
15226 Remove stale comment.
15227
3050c6f4
CB
152282020-01-24 Christian Biesinger <cbiesinger@google.com>
15229
15230 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15231 (arm_netbsd_nat_target::fetch_registers): ...this.
15232 (arm_nbsd_nat_target::store_registers): Rename to...
15233 (arm_netbsd_nat_target::store_registers): ...this.
15234
73685c7e
CB
152352020-01-24 Christian Biesinger <cbiesinger@google.com>
15236
15237 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15238 register_t.
15239
89203d40
CB
152402020-01-24 Christian Biesinger <cbiesinger@google.com>
15241
15242 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15243 Update comment.
15244 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15245 Likewise.
15246 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15247 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15248 the correct replacement (iterate_over_regset_sections).
15249 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15250 Update comment.
15251
1ba1ac88
AB
152522020-01-24 Graham Markall <graham.markall@embecosm.com>
15253
15254 PR gdb/23718
15255 * gdb/python/python.c (execute_gdb_command): Call
15256 async_enable_stdin in catch block.
15257
f3364a6d
AB
152582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15259
15260 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15261 SWITCH_THRU_ALL_UIS.
15262
733d0a67
AB
152632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15264
15265 PR tui/9765
15266 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15267 comment, add extra parameter, and update to store previous symbol
15268 when appropriate.
15269 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15270 add extra parameter.
15271 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15272 remove unneeded parameter, add try/catch around gdb_print_insn,
15273 rewrite to add items to asm_lines vector.
15274 (tui_find_backward_disassembly_start_address): New function.
15275 (tui_find_disassembly_address): Updated throughout.
15276 (tui_disasm_window::set_contents): Update for changes to
15277 tui_disassemble.
15278 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15279 number of lines to scroll.
15280
b3b3bada
SM
152812020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15282
15283 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15284 (SECT_OFF_DATA): Likewise.
15285 (SECT_OFF_RODATA): Likewise.
15286 (SECT_OFF_TEXT): Likewise.
15287 (SECT_OFF_BSS): Likewise.
15288 (struct objfile) <text_section_offset, data_section_offset>: New
15289 methods.
15290 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15291 objfile::text_section_offset.
15292 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15293 * coffread.c (coff_symtab_read): Likewise.
15294 (enter_linenos): Likewise.
15295 (process_coff_symbol): Likewise.
15296 * ctfread.c (get_objfile_text_range): Likewise.
15297 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15298 Use objfile::data_section_offset.
15299 * dwarf2-frame.c (execute_cfa_program): Use
15300 objfile::text_section_offset.
15301 (dwarf2_frame_find_fde): Likewise.
15302 * dwarf2read.c (create_addrmap_from_index): Likewise.
15303 (create_addrmap_from_aranges): Likewise.
15304 (dw2_find_pc_sect_compunit_symtab): Likewise.
15305 (process_psymtab_comp_unit_reader): Likewise.
15306 (add_partial_symbol): Likewise.
15307 (add_partial_subprogram): Likewise.
15308 (process_full_comp_unit): Likewise.
15309 (read_file_scope): Likewise.
15310 (read_func_scope): Likewise.
15311 (read_lexical_block_scope): Likewise.
15312 (read_call_site_scope): Likewise.
15313 (dwarf2_rnglists_process): Likewise.
15314 (dwarf2_ranges_process): Likewise.
15315 (dwarf2_ranges_read): Likewise.
15316 (dwarf_decode_lines_1): Likewise.
15317 (new_symbol): Likewise.
15318 (dwarf2_fetch_die_loc_sect_off): Likewise.
15319 (dwarf2_per_cu_text_offset): Likewise.
15320 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15321 * hppa-tdep.c (read_unwind_info): Likewise.
15322 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15323 * psympriv.h (struct partial_symtab): Likewise.
15324 * psymtab.c (find_pc_sect_psymtab): Likewise.
15325 * solib-svr4.c (enable_break): Likewise.
15326 * stap-probe.c (relocate_address): Use
15327 objfile::data_section_offset.
15328 * xcoffread.c (enter_line_range): Use
15329 objfile::text_section_offset.
15330 (read_xcoff_symtab): Likewise.
15331
ab53f382
SM
153322020-01-23 Simon Marchi <simon.marchi@efficios.com>
15333
15334 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15335 declaration to narrower scopes.
15336
e7eee665
SM
153372020-01-23 Simon Marchi <simon.marchi@efficios.com>
15338
15339 * darwin-nat.h (struct darwin_exception_msg, enum
15340 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15341 Move up.
15342 (class darwin_nat_target) <wait_1, check_new_threads,
15343 decode_exception_message, decode_message, stop_inferior,
15344 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15345 * darwin-nat.c (darwin_check_new_threads): Rename to...
15346 (darwin_nat_target::check_new_threads): ... this.
15347 (darwin_suspend_inferior_it): Remove.
15348 (darwin_decode_exception_message): Rename to...
15349 (darwin_nat_target::decode_exception_message): ... this.
15350 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15351 (darwin_decode_message): Rename to...
15352 (darwin_nat_target::decode_message): ... this.
15353 (cancel_breakpoint): Rename to...
15354 (darwin_nat_target::cancel_breakpoint): ... this.
15355 (darwin_wait): Rename to...
15356 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15357 instead of iterate_over_inferiors.
15358 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15359 (darwin_stop_inferior): Rename to...
15360 (darwin_nat_target::stop_inferior): ... this.
15361 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15362 (darwin_init_thread_list): Rename to...
15363 (darwin_nat_target::init_thread_list): ... this.
15364 (darwin_ptrace_him): Rename to...
15365 (darwin_nat_target::ptrace_him): ... this.
15366 (darwin_nat_target::create_inferior): Pass lambda function to
15367 fork_inferior.
15368 (darwin_nat_target::detach): Call stop_inferior instead of
15369 darwin_stop_inferior.
15370 * fork-inferior.h (fork_inferior): Change init_trace_fun
15371 parameter to gdb::function_view.
15372 * fork-inferior.c (fork_inferior): Likewise.
15373
c162ed3e
HD
153742020-01-23 Hannes Domani <ssbssa@yahoo.de>
15375
15376 * i386-cygwin-tdep.c (core_process_module_section): Update.
15377 * windows-nat.c (struct lm_info_windows): Add text_offset.
15378 (windows_xfer_shared_libraries): Update.
15379 * windows-tdep.c (windows_xfer_shared_library):
15380 Add text_offset_cached argument.
15381 * windows-tdep.h (windows_xfer_shared_library): Update.
15382
a1237872
SM
153832020-01-21 Simon Marchi <simon.marchi@efficios.com>
15384
15385 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15386
b3ee6dd9
SM
153872020-01-21 Simon Marchi <simon.marchi@efficios.com>
15388
15389 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15390 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15391 replace with range-based for.
15392 (gdbsim_interrupt_inferior): Remove.
15393 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15394 with a range-based for. Inline code from
15395 gdbsim_interrupt_inferior.
15396
f9fac3c8
SM
153972020-01-21 Simon Marchi <simon.marchi@efficios.com>
15398
15399 * infrun.c (proceed): Fix indentation.
15400
f6474de9
TT
154012020-01-21 Tom Tromey <tromey@adacore.com>
15402
15403 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15404 * python/python.c (python_extension_ops): Update.
15405 (gdbpy_colorize): New function.
15406 * python/lib/gdb/__init__.py (colorize): New function.
15407 * extension.h (ext_lang_colorize): Declare.
15408 * extension.c (ext_lang_colorize): New function.
15409 * extension-priv.h (struct extension_language_ops) <colorize>: New
15410 member.
15411 * cli/cli-style.c (_initialize_cli_style): Update help text.
15412
f0c702d4
LM
154132020-01-21 Luis Machado <luis.machado@linaro.org>
15414
15415 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15416 <cond>: Change type to bool.
15417 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15418 (aarch64_displaced_step_cb): Likewise.
15419 (aarch64_displaced_step_tb): Likewise.
15420
1ab139e5
LM
154212020-01-21 Luis Machado <luis.machado@linaro.org>
15422
15423 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15424 output.
15425
0c271889
LM
154262020-01-21 Luis Machado <luis.machado@linaro.org>
15427
15428 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15429 <pc_adjust>: Adjust the documentation.
15430 (aarch64_displaced_step_fixup): Check if PC really moved before
15431 adjusting it.
15432
4d89c1c7
TT
154332020-01-19 Tom Tromey <tom@tromey.com>
15434
15435 * disasm.c (~gdb_disassembler): New destructor.
15436 (gdb_buffered_insn_length): Call disassemble_free_target.
15437 * disasm.h (class gdb_disassembler): Declare destructor. Use
15438 DISABLE_COPY_AND_ASSIGN.
15439
c0ab21c2
TT
154402020-01-19 Tom Tromey <tom@tromey.com>
15441
15442 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15443 (die_reader_func_ftype): Remove.
15444 (cutu_reader): New class.
15445 (dw2_get_file_names_reader): Remove "data" parameter.
15446 (dw2_get_file_names): Use cutu_reader.
15447 (create_debug_type_hash_table): Update.
15448 (read_cutu_die_from_dwo): Update comment.
15449 (lookup_dwo_unit): Add dwo_name parameter.
15450 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15451 die_reader_func_ftype and data parameters.
15452 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15453 Remove die_reader_func_ftype and data parameters.
15454 (~cutu_reader): New; from init_cutu_and_read_dies.
15455 (cutu_reader::cutu_reader): Rename from
15456 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15457 and data parameters.
15458 (init_cutu_and_read_dies_simple): Remove.
15459 (struct process_psymtab_comp_unit_data): Remove.
15460 (process_psymtab_comp_unit_reader): Remove data parameter; add
15461 want_partial_unit and pretend_language parameters.
15462 (process_psymtab_comp_unit): Use cutu_reader.
15463 (build_type_psymtabs_reader): Remove data parameter.
15464 (build_type_psymtabs_1): Use cutu_reader.
15465 (process_skeletonless_type_unit): Likewise.
15466 (load_partial_comp_unit_reader): Remove.
15467 (load_partial_comp_unit): Use cutu_reader.
15468 (load_full_comp_unit_reader): Remove.
15469 (load_full_comp_unit): Use cutu_reader.
15470 (struct create_dwo_cu_data): Remove.
15471 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15472 dwo_unit parameters.
15473 (create_cus_hash_table): Use cutu_reader.
15474 (struct dwarf2_read_addr_index_data): Remove.
15475 (dwarf2_read_addr_index_reader): Remove.
15476 (dwarf2_read_addr_index): Use cutu_reader.
15477 (read_signatured_type_reader): Remove.
15478 (read_signatured_type): Use cutu_reader.
15479
45bbae5c
TT
154802020-01-19 Tom Tromey <tom@tromey.com>
15481
15482 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15483 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15484 (tui_wrefresh): Declare.
15485 * tui/tui-wingeneral.c (suppress_output): New global.
15486 (tui_suppress_output, ~tui_suppress_output): New constructor and
15487 destructor.
15488 (tui_wrefresh): New function.
15489 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15490 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15491 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15492 method.
15493 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15494 tui_wrefresh.
15495 (tui_data_window::no_refresh): New method.
15496 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15497 (tui_reg_command): Use tui_suppress_output
15498 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15499 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15500 method.
15501 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15502
4f13c1c0
TT
155032020-01-19 Tom Tromey <tom@tromey.com>
15504
15505 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15506 Handle case where symtab is null.
15507
fa47e446
SM
155082020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15509
15510 * linux-fork.c (one_fork_p): Simplify.
15511
26f42329
SM
155122020-01-17 Simon Marchi <simon.marchi@efficios.com>
15513
15514 * top.c (struct qt_args): Remove.
15515 (kill_or_detach): Change return type to void, replace `void *`
15516 parameter with a proper one.
15517 (print_inferior_quit_action): Likewise.
15518 (quit_confirm): Use range-based for loop to iterate over inferiors.
15519 (quit_force): Likewise.
15520
a9ac81b1
SM
155212020-01-17 Simon Marchi <simon.marchi@efficios.com>
15522
15523 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15524 `void *` parameter with proper parameters.
15525 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15526 (print_one_inferior): Change return type to void, replace `void *`
15527 parameter with proper parameters.
15528 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15529 inferiors.
15530 (get_other_inferior): Remove.
15531 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15532 inferiors.
15533
788eca49
SM
155342020-01-17 Simon Marchi <simon.marchi@efficios.com>
15535
15536 * mi/mi-interp.c (report_initial_inferior): Remove.
15537 (mi_interp::init): Use range-based for to iterate over inferiors.
15538
d9bc85b6
SM
155392020-01-17 Simon Marchi <simon.marchi@efficios.com>
15540
15541 * python/py-inferior.c (build_inferior_list): Remove.
15542 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15543
40c94099
CB
155442020-01-16 Christian Biesinger <cbiesinger@google.com>
15545
15546 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15547 (btrace_stitch_trace): Likewise.
15548 * charset.c (intermediate_encoding): Likewise (vaild).
15549 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15550 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15551 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15552
e0cdfe3c
HD
155532020-01-16 Hannes Domani <ssbssa@yahoo.de>
15554
15555 * windows-tdep.c (windows_get_tlb_type):
15556 Add rtl_user_process_parameters type.
15557
790f1718 155582020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15559 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15560
15561 PR build/24805
15562 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15563 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15564 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15565 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15566 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15567 (ps_plog): Redeclare exported functions with default visibility.
15568
3112ed97
NA
155692020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15570
15571 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15572 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15573
8dc3273e
SM
155742020-01-15 Simon Marchi <simon.marchi@efficios.com>
15575
15576 * infcmd.c (post_create_inferior): Use get_thread_regcache
15577 instead of get_current_regcache.
15578
ff47f4f0
TT
155792020-01-14 Tom Tromey <tom@tromey.com>
15580
15581 PR symtab/12535:
15582 * python/python.c (gdbpy_decode_line): Treat empty string the same
15583 as no argument.
15584
975f45b7
TT
155852020-01-14 Tom Tromey <tom@tromey.com>
15586
15587 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15588
25e57356
TT
155892020-01-14 Tom Tromey <tom@tromey.com>
15590
15591 * nat/linux-btrace.c: Don't include <config.h>.
15592 * nat/linux-ptrace.c: Don't include <config.h>.
15593 * nat/x86-linux-dregs.c: Don't include <config.h>.
15594
05ea2a05
TT
155952020-01-14 Tom Tromey <tom@tromey.com>
15596
15597 * configure: Rebuild.
15598 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15599
01027315
TT
156002020-01-14 Tom Tromey <tom@tromey.com>
15601
15602 * nat/x86-linux-dregs.c: Include configh.h.
15603 * nat/linux-ptrace.c: Include configh.h.
15604 * nat/linux-btrace.c: Include configh.h.
15605 * defs.h: Include config.h, bfd.h.
15606 * configure.ac: Don't source common.host.
15607 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15608 * configure: Rebuild.
15609 * acinclude.m4: Update path.
15610 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15611 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15612 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15613 (CLIBS): Add LIBSUPPORT.
15614 (CDEPS): Likewise.
15615 (COMMON_SFILES): Remove gdbsupport files.
15616 (HFILES_NO_SRCDIR): Likewise.
15617 (stamp-version): Update path to create-version.sh.
15618 (ALLDEPFILES): Remove gdbsupport files.
15619
b2ceabe8
TT
156202020-01-14 Tom Tromey <tom@tromey.com>
15621
15622 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15623 USE_WIN32API when needed.
15624 * configure.ac (USE_WIN32API): Don't define.
15625 (WIN32LIBS): Use WIN32APILIBS.
15626 * configure: Rebuild.
15627
25c51f71
TT
156282020-01-14 Tom Tromey <tom@tromey.com>
15629
15630 * configure: Rebuild.
15631 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15632
717c684d
BE
156332020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15634
15635 * skip.c (skip_function_command): Make skip w/o arguments use the
15636 name of the inlined function if pc is inside any inlined function.
15637
7da6a5b9
LM
156382020-01-14 Luis Machado <luis.machado@linaro.org>
15639
15640 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15641 * infrun.c (resume_1): Likewise.
15642 (handle_inferior_event): Remove stale comment.
15643 * linux-nat.c (linux_nat_target::resume): Update comments.
15644 (save_stop_reason): Likewise.
15645 (linux_nat_filter_event): Likewise.
15646 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15647
44e4c775
AB
156482020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15649
15650 * elfread.c (record_minimal_symbol): Set section index to 0 for
15651 non-allocatable sections.
15652
18a8505e
AT
15653
156542020-01-13 Ali Tamur <tamur@google.com>
15655
15656 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15657 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15658 to gdb::optional. Update comments.
15659 (dwo_file): Update comments.
15660 (read_attribute): Update API to take an additional out parameter,
15661 need_reprocess. This is used to mark attributes that need other
15662 attributes (e.g. str_offsets_base) for correct computation which may not
15663 have been read yet.
15664 (read_attribute_reprocess): New function declaration.
15665 (read_addr_index): Likewise.
15666 (read_dwo_str_index): Likewise.
15667 (read_stub_str_index): Likewise.
15668 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15669 (lookup_addr_base): New function definition.
15670 (lookup_ranges_base): Likewise.
15671 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15672 lookup_ranges_base.
15673 (init_cutu_and_read_dies): Update comments.
15674 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15675 unit. This is used to inherit parent's str_offsets_base and addr_base.
15676 Update comments.
15677 (init_cutu_and_read_dies_simple): Reflect API changes.
15678 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15679 (create_cus_hash_table): Change API to take parent compile unit.
15680 Reflect API changes.
15681 (open_and_init_dwo_file): Reflect API changes.
15682 (dwarf2_get_pc_bounds): Update comments.
15683 (dwarf2_record_block_ranges): Likewise.
15684 (read_full_die_1): Change implementation to reprocess attributes that
15685 need str_offsets_base and addr_base.
15686 (partial_die_info::read): Likewise.
15687 (read_attribute_reprocess): New function definition.
15688 (read_attribute_value): Change API to take an additional out parameter,
15689 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15690 when a non-dwo compile unit has index based attributes.
15691 (read_attribute): Reflect API changes.
15692 (read_addr_index_1): Reflect API changes. Update comments.
15693 (dwarf2_read_addr_index_data): Reflect API changes.
15694 (dwarf2_read_addr_index): Likewise.
15695 (read_str_index): Change API and implementation. This becomes a helper
15696 to be used by the new string index related methods. Update error
15697 message and comments.
15698 (read_dwo_str_index): New function definition.
15699 (read_stub_str_index): Likewise.
15700 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15701 * symfile.h (dwarf2_debug_sections): Likewise.
15702 * xcoffread.c (dwarf2_debug_sections): Likewise.
15703
0cac9354
SM
157042020-01-13 Simon Marchi <simon.marchi@efficios.com>
15705
15706 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15707 core_reg_sect type to gdb_byte *.
15708 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15709 * cris-tdep.c (fetch_core_registers): Likewise.
15710 * corelow.c (core_target::get_core_register_section): Change
15711 type of `contents` to gdb::byte_vector.
15712
9a6d629c
AB
157132020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15714
15715 * tui/tui-wingeneral.c (box_win): Position the title in the center
15716 of the border.
15717
d8b2f9e3
SM
157182020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15719
15720 * corelow.c (core_target::get_core_register_section): Use
15721 std::vector instead of alloca.
15722
bb564c58
SM
157232020-01-13 Simon Marchi <simon.marchi@efficios.com>
15724
15725 * warning.m4: Add -Wmissing-declarations to build_warnings.
15726 * configure: Re-generate.
15727
6b366111
SM
157282020-01-13 Simon Marchi <simon.marchi@efficios.com>
15729
15730 * python/python.c (init__gdb_module): Add declaration.
15731
6c265988
SM
157322020-01-13 Simon Marchi <simon.marchi@efficios.com>
15733
15734 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15735 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15736 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15737 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15738 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15739 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15740 * ada-exp.y (_initialize_ada_exp): Add declaration.
15741 * ada-lang.c (_initialize_ada_language): Add declaration.
15742 * ada-tasks.c (_initialize_tasks): Add declaration.
15743 * agent.c (_initialize_agent): Add declaration.
15744 * aix-thread.c (_initialize_aix_thread): Add declaration.
15745 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15746 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15747 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15748 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15749 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15750 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15751 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15752 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15753 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15754 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15755 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15756 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15757 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15758 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15759 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15760 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15761 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15762 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15763 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15764 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15765 * annotate.c (_initialize_annotate): Add declaration.
15766 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15767 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15768 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15769 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15770 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15771 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15772 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15773 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15774 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15775 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15776 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15777 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15778 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15779 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15780 * auto-load.c (_initialize_auto_load): Add declaration.
15781 * auxv.c (_initialize_auxv): Add declaration.
15782 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15783 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15784 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15785 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15786 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15787 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15788 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15789 * breakpoint.c (_initialize_breakpoint): Add declaration.
15790 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15791 * btrace.c (_initialize_btrace): Add declaration.
15792 * charset.c (_initialize_charset): Add declaration.
15793 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15794 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15795 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15796 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15797 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15798 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15799 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15800 * coffread.c (_initialize_coffread): Add declaration.
15801 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15802 * compile/compile.c (_initialize_compile): Add declaration.
15803 * complaints.c (_initialize_complaints): Add declaration.
15804 * completer.c (_initialize_completer): Add declaration.
15805 * copying.c (_initialize_copying): Add declaration.
15806 * corefile.c (_initialize_core): Add declaration.
15807 * corelow.c (_initialize_corelow): Add declaration.
15808 * cp-abi.c (_initialize_cp_abi): Add declaration.
15809 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15810 * cp-support.c (_initialize_cp_support): Add declaration.
15811 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15812 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15813 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15814 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15815 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15816 * ctfread.c (_initialize_ctfread): Add declaration.
15817 * d-lang.c (_initialize_d_language): Add declaration.
15818 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15819 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15820 * dbxread.c (_initialize_dbxread): Add declaration.
15821 * dcache.c (_initialize_dcache): Add declaration.
15822 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15823 * disasm.c (_initialize_disasm): Add declaration.
15824 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15825 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15826 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15827 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15828 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15829 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15830 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15831 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15832 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15833 * elfread.c (_initialize_elfread): Add declaration.
15834 * exec.c (_initialize_exec): Add declaration.
15835 * extension.c (_initialize_extension): Add declaration.
15836 * f-lang.c (_initialize_f_language): Add declaration.
15837 * f-valprint.c (_initialize_f_valprint): Add declaration.
15838 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15839 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15840 * filesystem.c (_initialize_filesystem): Add declaration.
15841 * findcmd.c (_initialize_mem_search): Add declaration.
15842 * findvar.c (_initialize_findvar): Add declaration.
15843 * fork-child.c (_initialize_fork_child): Add declaration.
15844 * frame-base.c (_initialize_frame_base): Add declaration.
15845 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15846 * frame.c (_initialize_frame): Add declaration.
15847 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15848 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15849 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15850 * gcore.c (_initialize_gcore): Add declaration.
15851 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15852 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15853 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15854 * gdbarch.c (_initialize_gdbarch): Add declaration.
15855 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15856 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15857 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15858 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15859 * go-lang.c (_initialize_go_language): Add declaration.
15860 * go32-nat.c (_initialize_go32_nat): Add declaration.
15861 * guile/guile.c (_initialize_guile): Add declaration.
15862 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15863 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15864 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15865 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15866 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15867 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15868 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15869 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15870 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15871 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15872 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15873 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15874 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15875 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15876 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15877 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15878 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15879 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15880 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15881 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15882 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15883 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15884 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15885 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15886 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15887 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15888 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15889 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15890 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15891 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15892 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15893 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15894 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15895 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15896 * infcall.c (_initialize_infcall): Add declaration.
15897 * infcmd.c (_initialize_infcmd): Add declaration.
15898 * inflow.c (_initialize_inflow): Add declaration.
15899 * infrun.c (_initialize_infrun): Add declaration.
15900 * interps.c (_initialize_interpreter): Add declaration.
15901 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15902 * jit.c (_initialize_jit): Add declaration.
15903 * language.c (_initialize_language): Add declaration.
15904 * linux-fork.c (_initialize_linux_fork): Add declaration.
15905 * linux-nat.c (_initialize_linux_nat): Add declaration.
15906 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15907 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15908 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15909 * m2-lang.c (_initialize_m2_language): Add declaration.
15910 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15911 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15912 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15913 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15914 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15915 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15916 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15917 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15918 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15919 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15920 * machoread.c (_initialize_machoread): Add declaration.
15921 * macrocmd.c (_initialize_macrocmd): Add declaration.
15922 * macroscope.c (_initialize_macroscope): Add declaration.
15923 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15924 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15925 * maint.c (_initialize_maint_cmds): Add declaration.
15926 * mdebugread.c (_initialize_mdebugread): Add declaration.
15927 * memattr.c (_initialize_mem): Add declaration.
15928 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15929 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15930 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15931 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15932 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15933 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15934 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15935 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15936 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15937 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15938 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15939 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15940 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15941 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15942 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15943 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15944 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15945 * mipsread.c (_initialize_mipsread): Add declaration.
15946 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15947 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15948 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15949 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15950 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15951 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15952 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15953 * nto-procfs.c (_initialize_procfs): Add declaration.
15954 * objc-lang.c (_initialize_objc_language): Add declaration.
15955 * observable.c (_initialize_observer): Add declaration.
15956 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15957 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15958 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15959 * osabi.c (_initialize_gdb_osabi): Add declaration.
15960 * osdata.c (_initialize_osdata): Add declaration.
15961 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15962 * parse.c (_initialize_parse): Add declaration.
15963 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15964 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15965 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15966 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15967 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15968 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15969 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15970 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15971 * printcmd.c (_initialize_printcmd): Add declaration.
15972 * probe.c (_initialize_probe): Add declaration.
15973 * proc-api.c (_initialize_proc_api): Add declaration.
15974 * proc-events.c (_initialize_proc_events): Add declaration.
15975 * proc-service.c (_initialize_proc_service): Add declaration.
15976 * procfs.c (_initialize_procfs): Add declaration.
15977 * producer.c (_initialize_producer): Add declaration.
15978 * psymtab.c (_initialize_psymtab): Add declaration.
15979 * python/python.c (_initialize_python): Add declaration.
15980 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15981 * record-btrace.c (_initialize_record_btrace): Add declaration.
15982 * record-full.c (_initialize_record_full): Add declaration.
15983 * record.c (_initialize_record): Add declaration.
15984 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15985 * regcache.c (_initialize_regcache): Add declaration.
15986 * reggroups.c (_initialize_reggroup): Add declaration.
15987 * remote-notif.c (_initialize_notif): Add declaration.
15988 * remote-sim.c (_initialize_remote_sim): Add declaration.
15989 * remote.c (_initialize_remote): Add declaration.
15990 * reverse.c (_initialize_reverse): Add declaration.
15991 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15992 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15993 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15994 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15995 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15996 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15997 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15998 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15999 Add declaration.
16000 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16001 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16002 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16003 * rust-exp.y (_initialize_rust_exp): Add declaration.
16004 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16005 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16006 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16007 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16008 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16009 * score-tdep.c (_initialize_score_tdep): Add declaration.
16010 * ser-go32.c (_initialize_ser_dos): Add declaration.
16011 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16012 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16013 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16014 * ser-uds.c (_initialize_ser_socket): Add declaration.
16015 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16016 * serial.c (_initialize_serial): Add declaration.
16017 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16018 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16019 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16020 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16021 * skip.c (_initialize_step_skip): Add declaration.
16022 * sol-thread.c (_initialize_sol_thread): Add declaration.
16023 * solib-aix.c (_initialize_solib_aix): Add declaration.
16024 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16025 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16026 * solib-frv.c (_initialize_frv_solib): Add declaration.
16027 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16028 * solib-target.c (_initialize_solib_target): Add declaration.
16029 * solib.c (_initialize_solib): Add declaration.
16030 * source-cache.c (_initialize_source_cache): Add declaration.
16031 * source.c (_initialize_source): Add declaration.
16032 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16033 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16034 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16035 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16036 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16037 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16038 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16039 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16040 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16041 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16042 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16043 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16044 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16045 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16046 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16047 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16048 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16049 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16050 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16051 * stabsread.c (_initialize_stabsread): Add declaration.
16052 * stack.c (_initialize_stack): Add declaration.
16053 * stap-probe.c (_initialize_stap_probe): Add declaration.
16054 * std-regs.c (_initialize_frame_reg): Add declaration.
16055 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16056 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16057 * symfile.c (_initialize_symfile): Add declaration.
16058 * symmisc.c (_initialize_symmisc): Add declaration.
16059 * symtab.c (_initialize_symtab): Add declaration.
16060 * target.c (_initialize_target): Add declaration.
16061 * target-connection.c (_initialize_target_connection): Add
16062 declaration.
16063 * target-dcache.c (_initialize_target_dcache): Add declaration.
16064 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16065 * thread.c (_initialize_thread): Add declaration.
16066 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16067 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16068 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16069 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16070 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16071 * tracectf.c (_initialize_ctf): Add declaration.
16072 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16073 * tracefile.c (_initialize_tracefile): Add declaration.
16074 * tracepoint.c (_initialize_tracepoint): Add declaration.
16075 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16076 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16077 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16078 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16079 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16080 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16081 * tui/tui.c (_initialize_tui): Add declaration.
16082 * typeprint.c (_initialize_typeprint): Add declaration.
16083 * ui-style.c (_initialize_ui_style): Add declaration.
16084 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16085 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16086 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16087 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16088 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16089 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16090 * unittests/filtered_iterator-selftests.c
16091 (_initialize_filtered_iterator_selftests): Add declaration.
16092 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16093 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16094 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16095 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16096 * unittests/main-thread-selftests.c
16097 (_initialize_main_thread_selftests): Add declaration.
16098 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16099 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16100 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16101 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16102 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16103 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16104 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16105 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16106 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16107 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16108 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16109 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16110 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16111 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16112 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16113 declaration.
16114 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16115 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16116 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16117 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16118 * user-regs.c (_initialize_user_regs): Add declaration.
16119 * utils.c (_initialize_utils): Add declaration.
16120 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16121 * valops.c (_initialize_valops): Add declaration.
16122 * valprint.c (_initialize_valprint): Add declaration.
16123 * value.c (_initialize_values): Add declaration.
16124 * varobj.c (_initialize_varobj): Add declaration.
16125 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16126 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16127 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16128 * windows-nat.c (_initialize_windows_nat): Add declaration.
16129 (_initialize_check_for_gdb_ini): Add declaration.
16130 (_initialize_loadable): Add declaration.
16131 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16132 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16133 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16134 * xcoffread.c (_initialize_xcoffread): Add declaration.
16135 * xml-support.c (_initialize_xml_support): Add declaration.
16136 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16137 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16138 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16139 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16140
e2de1eec
SM
161412020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16142
16143 * regformats/regdat.sh: Generate declaration for init function.
16144
e0037b4c
SM
161452020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16146
16147 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16148 up.
16149 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16150 close_one_inferior>: New methods.
16151 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16152 pass down target to find_inferior_pid.
16153 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16154 Pass down target to find_inferior_ptid.
16155 (gdbsim_target::create_inferior): Pass down target to
16156 add_thread_silent.
16157 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16158 target down to find_inferior_ptid and switch_to_thread.
16159 (gdbsim_target::close): Update to call close_one_inferior.
16160 (struct resume_data): Remove.
16161 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16162 directly, rather than through a void pointer.
16163 (gdbsim_target::resume): Update to call resume_one_inferior.
16164
58920b5b
SM
161652020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16166
16167 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16168
4ec89149
PA
161692020-01-12 Pedro Alves <palves@redhat.com>
16170
16171 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16172 directly for the current inferior instead of
16173 discard_all_inferiors.
16174 (discard_all_inferiors): Delete.
16175
7c392d1d
TT
161762020-01-11 Tom Tromey <tom@tromey.com>
16177
16178 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16179 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16180 deprecated_safe_get_selected_frame.
16181
d9ebdab7
TBA
161822020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16183
16184 * inferior.c (print_inferior): Switch inferior before printing it.
16185
f3c469b9
PA
161862020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16187 Pedro Alves <palves@redhat.com>
16188
16189 * progspace-and-thread.c (switch_to_program_space_and_thread):
16190 Assert there's an inferior for PSPACE. Use
16191 switch_to_inferior_no_thread to switch the inferior too.
16192 * progspace.c (program_space::~program_space): Call
16193 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16194 (program_space::free_all_objfiles): Don't call clear_symtab_users
16195 here.
16196 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16197
65c574f6
PA
161982020-01-10 Pedro Alves <palves@redhat.com>
16199
16200 * NEWS: Mention multi-target debugging, "info connections", and
16201 "add-inferior -no-connection".
16202
2f4fcf00
PA
162032020-01-10 Pedro Alves <palves@redhat.com>
16204
16205 * infrun.c: Include "target-connection.h".
16206 (check_multi_target_resumption): New.
16207 (proceed): Call it.
16208 * target-connection.c (make_target_connection_string): Make
16209 extern.
16210 * target-connection.h (make_target_connection_string): Declare.
16211
121b3efd
PA
162122020-01-10 Pedro Alves <palves@redhat.com>
16213
16214 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16215 * inferior.c (uiout_field_connection): New function.
16216 (print_inferior): Add new "connection-id" column.
16217 (add_inferior_command): Show connection number/string of added
16218 inferior.
16219 * process-stratum-target.h
16220 (process_stratum_target::connection_string): New virtual method.
16221 (process_stratum_target::connection_number): New field.
16222 * remote.c (remote_target::connection_string): New override.
16223 * target-connection.c: New file.
16224 * target-connection.h: New file.
16225 * target.c (decref_target): Remove process_stratum targets from
16226 the connection list.
16227 (target_stack::push): Add process_stratum targets to the
16228 connection list.
16229
4f837581
PA
162302020-01-10 Pedro Alves <palves@redhat.com>
16231
16232 Revert:
16233 2016-04-12 Pedro Alves <palves@redhat.com>
16234 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16235 Remove references to name.
16236 * serial.h (struct serial) <name>: Delete.
16237
f4ec508e
PA
162382020-01-10 Pedro Alves <palves@redhat.com>
16239
16240 * gdbarch-selftests.c (register_to_value_test): Remove "target
16241 already pushed" check.
16242
5b6d1e4f
PA
162432020-01-10 Pedro Alves <palves@redhat.com>
16244 John Baldwin <jhb@FreeBSD.org>
16245
16246 * aarch64-linux-nat.c
16247 (aarch64_linux_nat_target::thread_architecture): Adjust.
16248 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16249 (task_command_1): Likewise.
16250 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16251 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16252 (aix_thread_target::store_registers)
16253 (aix_thread_target::thread_alive): Adjust.
16254 * amd64-fbsd-tdep.c: Include "inferior.h".
16255 (amd64fbsd_get_thread_local_address): Pass down target.
16256 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16257 thread's gdbarch instead of target_gdbarch.
16258 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16259 get_last_target_status.
16260 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16261 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16262 inferiors.
16263 (update_inserted_breakpoint_locations): Skip if inferiors with no
16264 execution.
16265 (update_global_location_list): When handling moribund locations,
16266 find representative inferior for location's pspace, and use thread
16267 count of its process_stratum target.
16268 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16269 * bsd-uthread.c (bsd_uthread_target::wait): Use
16270 as_process_stratum_target and adjust thread_change_ptid and
16271 add_thread calls.
16272 (bsd_uthread_target::update_thread_list): Use
16273 as_process_stratum_target and adjust find_thread_ptid,
16274 thread_change_ptid and add_thread calls.
16275 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16276 find_thread_ptid call.
16277 * corelow.c (add_to_thread_list): Adjust add_thread call.
16278 (core_target_open): Adjust add_thread_silent and thread_count
16279 calls.
16280 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16281 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16282 * event-top.c (async_disconnect): Pop targets from all inferiors.
16283 * exec.c (add_target_sections): Push exec target on all inferiors
16284 sharing the program space.
16285 (remove_target_sections): Remove the exec target from all
16286 inferiors sharing the program space.
16287 (exec_on_vfork): New.
16288 * exec.h (exec_on_vfork): Declare.
16289 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16290 Pass it down.
16291 (fbsd_nat_target::update_thread_list): Adjust.
16292 (fbsd_nat_target::resume): Adjust.
16293 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16294 down.
16295 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16296 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16297 get_thread_arch_regcache call.
16298 * fork-child.c (gdb_startup_inferior): Pass target down to
16299 startup_inferior and set_executing.
16300 * gdbthread.h (struct process_stratum_target): Forward declare.
16301 (add_thread, add_thread_silent, add_thread_with_info)
16302 (in_thread_list): Add process_stratum_target parameter.
16303 (find_thread_ptid(inferior*, ptid_t)): New overload.
16304 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16305 parameter.
16306 (all_threads()): Delete overload.
16307 (all_threads, all_non_exited_threads): Add process_stratum_target
16308 parameter.
16309 (all_threads_safe): Use brace initialization.
16310 (thread_count): Add process_stratum_target parameter.
16311 (set_resumed, set_running, set_stop_requested, set_executing)
16312 (threads_are_executing, finish_thread_state): Add
16313 process_stratum_target parameter.
16314 (switch_to_thread): Use is_current_thread.
16315 * i386-fbsd-tdep.c: Include "inferior.h".
16316 (i386fbsd_get_thread_local_address): Pass down target.
16317 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16318 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16319 have_inferiors check.
16320 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16321 (inf_ptrace_target::attach): Adjust.
16322 * infcall.c (run_inferior_call): Adjust.
16323 * infcmd.c (run_command_1): Pass target to
16324 scoped_finish_thread_state.
16325 (proceed_thread_callback): Skip inferiors with no execution.
16326 (continue_command): Rename 'all_threads' local to avoid hiding
16327 'all_threads' function. Adjust get_last_target_status call.
16328 (prepare_one_step): Adjust set_running call.
16329 (signal_command): Use user_visible_resume_target. Compare thread
16330 pointers instead of inferior_ptid.
16331 (info_program_command): Adjust to pass down target.
16332 (attach_command): Mark target's 'thread_executing' flag.
16333 (stop_current_target_threads_ns): New, factored out from ...
16334 (interrupt_target_1): ... this. Switch inferior before making
16335 target calls.
16336 * inferior-iter.h
16337 (struct all_inferiors_iterator, struct all_inferiors_range)
16338 (struct all_inferiors_safe_range)
16339 (struct all_non_exited_inferiors_range): Filter on
16340 process_stratum_target too. Remove explicit.
16341 * inferior.c (inferior::inferior): Push dummy target on target
16342 stack.
16343 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16344 Add process_stratum_target parameter, and pass it down.
16345 (have_live_inferiors): Adjust.
16346 (switch_to_inferior_and_push_target): New.
16347 (add_inferior_command, clone_inferior_command): Handle
16348 "-no-connection" parameter. Use
16349 switch_to_inferior_and_push_target.
16350 (_initialize_inferior): Mention "-no-connection" option in
16351 the help of "add-inferior" and "clone-inferior" commands.
16352 * inferior.h: Include "process-stratum-target.h".
16353 (interrupt_target_1): Use bool.
16354 (struct inferior) <push_target, unpush_target, target_is_pushed,
16355 find_target_beneath, top_target, process_target, target_at,
16356 m_stack>: New.
16357 (discard_all_inferiors): Delete.
16358 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16359 (all_inferiors, all_non_exited_inferiors): Add
16360 process_stratum_target parameter.
16361 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16362 (target_last_proc_target): New global.
16363 (follow_fork_inferior): Push target on new inferior. Pass target
16364 to add_thread_silent. Call exec_on_vfork. Handle target's
16365 reference count.
16366 (follow_fork): Adjust get_last_target_status call. Also consider
16367 target.
16368 (follow_exec): Push target on new inferior.
16369 (struct execution_control_state) <target>: New field.
16370 (user_visible_resume_target): New.
16371 (do_target_resume): Call target_async.
16372 (resume_1): Set target's threads_executing flag. Consider resume
16373 target.
16374 (commit_resume_all_targets): New.
16375 (proceed): Also consider resume target. Skip threads of inferiors
16376 with no execution. Commit resumtion in all targets.
16377 (start_remote): Pass current inferior to wait_for_inferior.
16378 (infrun_thread_stop_requested): Consider target as well. Pass
16379 thread_info pointer to clear_inline_frame_state instead of ptid.
16380 (infrun_thread_thread_exit): Consider target as well.
16381 (random_pending_event_thread): New inferior parameter. Use it.
16382 (do_target_wait): Rename to ...
16383 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16384 down.
16385 (threads_are_resumed_pending_p, do_target_wait): New.
16386 (prepare_for_detach): Adjust calls.
16387 (wait_for_inferior): New inferior parameter. Handle it. Use
16388 do_target_wait_1 instead of do_target_wait.
16389 (fetch_inferior_event): Adjust. Switch to representative
16390 inferior. Pass target down.
16391 (set_last_target_status): Add process_stratum_target parameter.
16392 Save target in global.
16393 (get_last_target_status): Add process_stratum_target parameter and
16394 handle it.
16395 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16396 (context_switch): Check inferior_ptid == null_ptid before calling
16397 inferior_thread().
16398 (get_inferior_stop_soon): Pass down target.
16399 (wait_one): Rename to ...
16400 (poll_one_curr_target): ... this.
16401 (struct wait_one_event): New.
16402 (wait_one): New.
16403 (stop_all_threads): Adjust.
16404 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16405 event's target.
16406 (switch_back_to_stepped_thread): Also consider target.
16407 (print_stop_event): Update.
16408 (normal_stop): Update. Also consider the resume target.
16409 * infrun.h (wait_for_inferior): Remove declaration.
16410 (user_visible_resume_target): New declaration.
16411 (get_last_target_status, set_last_target_status): New
16412 process_stratum_target parameter.
16413 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16414 process_stratum_target parameter, and use it.
16415 (clear_inline_frame_state (thread_info*)): New.
16416 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16417 process_stratum_target parameter.
16418 (clear_inline_frame_state (thread_info*)): Declare.
16419 * linux-fork.c (delete_checkpoint_command): Pass target down to
16420 find_thread_ptid.
16421 (checkpoint_command): Adjust.
16422 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16423 instead of just tweaking inferior_ptid.
16424 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16425 (exit_lwp): Pass target down to find_thread_ptid.
16426 (attach_proc_task_lwp_callback): Pass target down to
16427 add_thread/set_running/set_executing.
16428 (linux_nat_target::attach): Pass target down to
16429 thread_change_ptid.
16430 (get_detach_signal): Pass target down to find_thread_ptid.
16431 Consider last target status's target.
16432 (linux_resume_one_lwp_throw, resume_lwp)
16433 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16434 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16435 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16436 (linux_nat_target::async_wait_fd): New.
16437 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16438 target down.
16439 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16440 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16441 * linux-thread-db.c (struct thread_db_info::process_target): New
16442 field.
16443 (add_thread_db_info): Save target.
16444 (get_thread_db_info): New process_stratum_target parameter. Also
16445 match target.
16446 (delete_thread_db_info): New process_stratum_target parameter.
16447 Also match target.
16448 (thread_from_lwp): Adjust to pass down target.
16449 (thread_db_notice_clone): Pass down target.
16450 (check_thread_db_callback): Pass down target.
16451 (try_thread_db_load_1): Always push the thread_db target.
16452 (try_thread_db_load, record_thread): Pass target down.
16453 (thread_db_target::detach): Pass target down. Always unpush the
16454 thread_db target.
16455 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16456 target down. Always unpush the thread_db target.
16457 (find_new_threads_callback, thread_db_find_new_threads_2)
16458 (thread_db_target::update_thread_list): Pass target down.
16459 (thread_db_target::pid_to_str): Pass current inferior down.
16460 (thread_db_target::get_thread_local_address): Pass target down.
16461 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16462 target down.
16463 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16464 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16465 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16466 (procfs_init_inferior): Rename to ...
16467 (procfs_target::procfs_init_inferior): ... this and adjust.
16468 (procfs_target::create_inferior, procfs_notice_thread)
16469 (procfs_do_thread_registers): Adjust.
16470 * ppc-fbsd-tdep.c: Include "inferior.h".
16471 (ppcfbsd_get_thread_local_address): Pass down target.
16472 * proc-service.c (ps_xfer_memory): Switch current inferior and
16473 program space as well.
16474 (get_ps_regcache): Pass target down.
16475 * process-stratum-target.c
16476 (process_stratum_target::thread_address_space)
16477 (process_stratum_target::thread_architecture): Pass target down.
16478 * process-stratum-target.h
16479 (process_stratum_target::threads_executing): New field.
16480 (as_process_stratum_target): New.
16481 * ravenscar-thread.c
16482 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16483 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16484 down.
16485 * record-btrace.c (record_btrace_target::info_record): Adjust.
16486 (record_btrace_target::record_method)
16487 (record_btrace_target::record_is_replaying)
16488 (record_btrace_target::fetch_registers)
16489 (get_thread_current_frame_id, record_btrace_target::resume)
16490 (record_btrace_target::wait, record_btrace_target::stop): Pass
16491 target down.
16492 * record-full.c (record_full_wait_1): Switch to event thread.
16493 Pass target down.
16494 * regcache.c (regcache::regcache)
16495 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16496 process_stratum_target parameter and handle it.
16497 (current_thread_target): New global.
16498 (get_thread_regcache): Add process_stratum_target parameter and
16499 handle it. Switch inferior before calling target method.
16500 (get_thread_regcache): Pass target down.
16501 (get_thread_regcache_for_ptid): Pass target down.
16502 (registers_changed_ptid): Add process_stratum_target parameter and
16503 handle it.
16504 (registers_changed_thread, registers_changed): Pass target down.
16505 (test_get_thread_arch_aspace_regcache): New.
16506 (current_regcache_test): Define a couple local test_target_ops
16507 instances and use them for testing.
16508 (readwrite_regcache): Pass process_stratum_target parameter.
16509 (cooked_read_test, cooked_write_test): Pass mock_target down.
16510 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16511 (get_thread_arch_aspace_regcache): Add process_stratum_target
16512 parameter.
16513 (regcache::target): New method.
16514 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16515 (regcache::registers_changed_ptid): Add process_stratum_target
16516 parameter.
16517 (regcache::m_target): New field.
16518 (registers_changed_ptid): Add process_stratum_target parameter.
16519 * remote.c (remote_state::supports_vCont_probed): New field.
16520 (remote_target::async_wait_fd): New method.
16521 (remote_unpush_and_throw): Add remote_target parameter.
16522 (get_current_remote_target): Adjust.
16523 (remote_target::remote_add_inferior): Push target.
16524 (remote_target::remote_add_thread)
16525 (remote_target::remote_notice_new_inferior)
16526 (get_remote_thread_info): Pass target down.
16527 (remote_target::update_thread_list): Skip threads of inferiors
16528 bound to other targets. (remote_target::close): Don't discard
16529 inferiors. (remote_target::add_current_inferior_and_thread)
16530 (remote_target::process_initial_stop_replies)
16531 (remote_target::start_remote)
16532 (remote_target::remote_serial_quit_handler): Pass down target.
16533 (remote_target::remote_unpush_target): New remote_target
16534 parameter. Unpush the target from all inferiors.
16535 (remote_target::remote_unpush_and_throw): New remote_target
16536 parameter. Pass it down.
16537 (remote_target::open_1): Check whether the current inferior has
16538 execution instead of checking whether any inferior is live. Pass
16539 target down.
16540 (remote_target::remote_detach_1): Pass down target. Use
16541 remote_unpush_target.
16542 (extended_remote_target::attach): Pass down target.
16543 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16544 (remote_target::append_resumption): Pass down target.
16545 (remote_target::append_pending_thread_resumptions)
16546 (remote_target::remote_resume_with_hc, remote_target::resume)
16547 (remote_target::commit_resume): Pass down target.
16548 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16549 (remote_target::interrupt_query)
16550 (remote_target::remove_new_fork_children)
16551 (remote_target::check_pending_events_prevent_wildcard_vcont)
16552 (remote_target::remote_parse_stop_reply)
16553 (remote_target::process_stop_reply): Pass down target.
16554 (first_remote_resumed_thread): New remote_target parameter. Pass
16555 it down.
16556 (remote_target::wait_as): Pass down target.
16557 (unpush_and_perror): New remote_target parameter. Pass it down.
16558 (remote_target::readchar, remote_target::remote_serial_write)
16559 (remote_target::getpkt_or_notif_sane_1)
16560 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16561 down target.
16562 (remote_target::mourn_inferior): Pass down target. Use
16563 remote_unpush_target.
16564 (remote_target::core_of_thread)
16565 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16566 (remote_target::pid_to_exec_file)
16567 (remote_target::thread_handle_to_thread_info): Pass down target.
16568 (remote_target::async_wait_fd): New.
16569 * riscv-fbsd-tdep.c: Include "inferior.h".
16570 (riscv_fbsd_get_thread_local_address): Pass down target.
16571 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16572 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16573 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16574 Adjust.
16575 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16576 * solib-svr4.c (enable_break): Pass down target.
16577 * spu-multiarch.c (parse_spufs_run): Pass down target.
16578 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16579 * target-delegates.c: Regenerate.
16580 * target.c (g_target_stack): Delete.
16581 (current_top_target): Return the current inferior's top target.
16582 (target_has_execution_1): Refer to the passed-in inferior's top
16583 target.
16584 (target_supports_terminal_ours): Check whether the initial
16585 inferior was already created.
16586 (decref_target): New.
16587 (target_stack::push): Incref/decref the target.
16588 (push_target, push_target, unpush_target): Adjust.
16589 (target_stack::unpush): Defref target.
16590 (target_is_pushed): Return bool. Adjust to refer to the current
16591 inferior's target stack.
16592 (dispose_inferior): Delete, and inline parts ...
16593 (target_preopen): ... here. Only dispose of the current inferior.
16594 (target_detach): Hold strong target reference while detaching.
16595 Pass target down.
16596 (target_thread_name): Add assertion.
16597 (target_resume): Pass down target.
16598 (target_ops::beneath, find_target_at): Adjust to refer to the
16599 current inferior's target stack.
16600 (get_dummy_target): New.
16601 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16602 has a thread running.
16603 (initialize_targets): Rename to ...
16604 (_initialize_target): ... this.
16605 * target.h: Include "gdbsupport/refcounted-object.h".
16606 (struct target_ops): Inherit refcounted_object.
16607 (target_ops::shortname, target_ops::longname): Make const.
16608 (target_ops::async_wait_fd): New method.
16609 (decref_target): Declare.
16610 (struct target_ops_ref_policy): New.
16611 (target_ops_ref): New typedef.
16612 (get_dummy_target): Declare function.
16613 (target_is_pushed): Return bool.
16614 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16615 (all_matching_threads_iterator::all_matching_threads_iterator):
16616 Handle filter target.
16617 * thread-iter.h (struct all_matching_threads_iterator, struct
16618 all_matching_threads_range, class all_non_exited_threads_range):
16619 Filter by target too. Remove explicit.
16620 * thread.c (threads_executing): Delete.
16621 (inferior_thread): Pass down current inferior.
16622 (clear_thread_inferior_resources): Pass down thread pointer
16623 instead of ptid_t.
16624 (add_thread_silent, add_thread_with_info, add_thread): Add
16625 process_stratum_target parameter. Use it for thread and inferior
16626 searches.
16627 (is_current_thread): New.
16628 (thread_info::deletable): Use it.
16629 (find_thread_ptid, thread_count, in_thread_list)
16630 (thread_change_ptid, set_resumed, set_running): New
16631 process_stratum_target parameter. Pass it down.
16632 (set_executing): New process_stratum_target parameter. Pass it
16633 down. Adjust reference to 'threads_executing'.
16634 (threads_are_executing): New process_stratum_target parameter.
16635 Adjust reference to 'threads_executing'.
16636 (set_stop_requested, finish_thread_state): New
16637 process_stratum_target parameter. Pass it down.
16638 (switch_to_thread): Also match inferior.
16639 (switch_to_thread): New process_stratum_target parameter. Pass it
16640 down.
16641 (update_threads_executing): Reimplement.
16642 * top.c (quit_force): Pop targets from all inferior.
16643 (gdb_init): Don't call initialize_targets.
16644 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16645 Declare.
16646 (windows_add_thread, windows_delete_thread): Adjust.
16647 (get_windows_debug_event): Rename to ...
16648 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16649 * tracefile-tfile.c (tfile_target_open): Pass down target.
16650 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16651 Forward declare.
16652 (switch_to_thread): Add process_stratum_target parameter.
16653 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16654 parameter. Use it.
16655 (mi_on_resume): Pass target down.
16656 * nat/fork-inferior.c (startup_inferior): Add
16657 process_stratum_target parameter. Pass it down.
16658 * nat/fork-inferior.h (startup_inferior): Add
16659 process_stratum_target parameter.
16660 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16661
75c6c844
PA
166622020-01-10 Pedro Alves <palves@redhat.com>
16663
16664 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16665 directly. Instead find the first thread in the thread list and
16666 use switch_to_thread.
16667
78f2c40a
PA
166682020-01-10 Pedro Alves <palves@redhat.com>
16669
16670 * remote.c (remote_target::remote_add_inferior): Don't bind a
16671 process to the current inferior if the current inferior is already
16672 bound to a process.
16673
e7af6c70
TBA
166742020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16675 Pedro Alves <palves@redhat.com>
16676
16677 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16678 If no process is specified, return null_ptid instead of
16679 inferior_ptid.
16680 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16681 TARGET_WAITKIND_SIGNALLED with no pid.
16682
31ba933e
PA
166832020-01-10 Pedro Alves <palves@redhat.com>
16684
16685 * remote.c (first_remote_resumed_thread): New.
16686 (remote_target::wait_as): Use it as default event_ptid instead of
16687 inferior_ptid.
16688
735fc2ca
PA
166892020-01-10 Pedro Alves <palves@redhat.com>
16690
16691 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16692
c17e02e1
PA
166932020-01-10 Pedro Alves <palves@redhat.com>
16694
16695 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16696 not -1.
16697
ab1ddbcf
PA
166982020-01-10 Pedro Alves <palves@redhat.com>
16699
16700 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16701 ptid to get_last_target_status.
16702 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16703 ptid to get_last_target_status.
16704 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16705 get_last_target_status.
16706 (info_program_command): Don't pass a target_waitstatus to
16707 get_last_target_status.
16708 * infrun.c (init_wait_for_inferior): Use
16709 nullify_last_target_wait_ptid.
16710 (get_last_target_status): Handle nullptr arguments.
16711 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16712 (print_stop_event): Don't pass a ptid to get_last_target_status.
16713 (normal_stop): Don't pass a ptid to get_last_target_status.
16714 * infrun.h (get_last_target_status, set_last_target_status): Move
16715 comments here and update.
16716 (nullify_last_target_wait_ptid): Declare.
16717 * linux-fork.c (fork_load_infrun_state): Remove local extern
16718 declaration of nullify_last_target_wait_ptid.
16719 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16720 to get_last_target_status.
16721
f3f8ece4
PA
167222020-01-10 Pedro Alves <palves@redhat.com>
16723
16724 * gdbthread.h (scoped_restore_current_thread)
16725 <dont_restore, restore, m_dont_restore>: Declare.
16726 * thread.c (thread_alive): Add assertion. Return bool.
16727 (switch_to_thread_if_alive): New.
16728 (prune_threads): Switch inferior/thread.
16729 (print_thread_info_1): Switch thread before calling target methods.
16730 (scoped_restore_current_thread::restore): New, factored out from
16731 ...
16732 (scoped_restore_current_thread::~scoped_restore_current_thread):
16733 ... this.
16734 (scoped_restore_current_thread::scoped_restore_current_thread):
16735 Add assertion.
16736 (thread_apply_all_command, thread_select): Use
16737 switch_to_thread_if_alive.
16738 * infrun.c (proceed, restart_threads, handle_signal_stop)
16739 (switch_back_to_stepped_thread): Switch current thread before
16740 calling target methods.
16741
db2d40f7
PA
167422020-01-10 Pedro Alves <palves@redhat.com>
16743
16744 * inferior.c (switch_to_inferior_no_thread): New function,
16745 factored out from ...
16746 (inferior_command): ... here.
16747 * inferior.h (switch_to_inferior_no_thread): Declare.
16748 * mi/mi-main.c (run_one_inferior): Use
16749 switch_to_inferior_no_thread.
16750
bd420a2d
PA
167512020-01-10 Pedro Alves <palves@redhat.com>
16752
16753 * infcmd.c (kill_command): Remove dead code.
16754
ddf5db90
PA
167552020-01-10 Pedro Alves <palves@redhat.com>
16756
16757 * remote.c (remote_target::mourn_inferior): No longer check
16758 whether the target is running.
16759
5018ce90
PA
167602020-01-10 Pedro Alves <palves@redhat.com>
16761
16762 * corelow.c (core_target::has_execution): Change parameter type to
16763 inferior pointer.
16764 * inferior.c (number_of_live_inferiors): Use
16765 inferior::has_execution instead of target_has_execution_1.
16766 * inferior.h (inferior::has_execution): New.
16767 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16768 inferior::has_execution instead of target_has_execution_1.
16769 * process-stratum-target.c
16770 (process_stratum_target::has_execution): Change parameter type to
16771 inferior pointer. Check the inferior's PID instead of
16772 inferior_ptid.
16773 * process-stratum-target.h
16774 (process_stratum_target::has_execution): Change parameter type to
16775 inferior pointer.
16776 * record-full.c (record_full_core_target::has_execution): Change
16777 parameter type to inferior pointer.
16778 * target.c (target_has_execution_1): Change parameter type to
16779 inferior pointer.
16780 (target_has_execution_current): Adjust.
16781 * target.h (target_ops::has_execution): Change parameter type to
16782 inferior pointer.
16783 (target_has_execution_1): Change parameter type to inferior
16784 pointer. Change return type to bool.
16785 * tracefile.h (tracefile_target::has_execution): Change parameter
16786 type to inferior pointer.
16787
74375d18
PA
167882020-01-10 Pedro Alves <palves@redhat.com>
16789
16790 * exceptions.c (print_flush): Remove current_top_target() check.
16791
acdf84a6
PA
167922020-01-10 Pedro Alves <palves@redhat.com>
16793
16794 * remote.c (show_remote_exec_file): Show the current inferior's
16795 exec-file instead of the command variable's value.
16796
ec506636
PA
167972020-01-10 Pedro Alves <palves@redhat.com>
16798
16799 * record-full.c (record_full_resume_ptid): New global.
16800 (record_full_target::resume): Set it.
16801 (record_full_wait_1): Use record_full_resume_ptid instead of
16802 inferior_ptid.
16803
873657b9
PA
168042020-01-10 Pedro Alves <palves@redhat.com>
16805
16806 * gdbthread.h (scoped_restore_current_thread)
16807 <dont_restore, restore, m_dont_restore>: Declare.
16808 * thread.c (thread_alive): Add assertion. Return bool.
16809 (switch_to_thread_if_alive): New.
16810 (prune_threads): Switch inferior/thread.
16811 (print_thread_info_1): Switch thread before calling target methods.
16812 (scoped_restore_current_thread::restore): New, factored out from
16813 ...
16814 (scoped_restore_current_thread::~scoped_restore_current_thread):
16815 ... this.
16816 (scoped_restore_current_thread::scoped_restore_current_thread):
16817 Add assertion.
16818 (thread_apply_all_command, thread_select): Use
16819 switch_to_thread_if_alive.
16820
7f0ae84c
GB
168212020-01-10 George Barrett <bob@bob131.so>
16822
16823 * stap-probe.c (stap_modify_semaphore): Don't check for null
16824 semaphores.
16825 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16826 for null semaphores.
16827
f5a7c406
AB
168282020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16829
16830 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16831 all source windows, and maintain horizontal scroll status while
16832 doing so.
16833
9ae6bf64
TT
168342020-01-09 Tom Tromey <tom@tromey.com>
16835
16836 PR tui/18932:
16837 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16838 update_source_window, not print_source_lines.
16839
b2efe70c
AB
168402020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16841
16842 * tui/tui.c (tui_enable): Register tui hooks after calling
16843 tui_display_main.
16844
5f23a082
CB
168452020-01-09 Christian Biesinger <cbiesinger@google.com>
16846
16847 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16848
3061113b
SM
168492020-01-08 Simon Marchi <simon.marchi@efficios.com>
16850
16851 * thread.c (print_thread_info_1): Fix indentation.
16852
57d75002
CB
168532020-01-09 Christian Biesinger <cbiesinger@google.com>
16854
16855 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16856 unique_xmalloc_ptr outside the if to always free the demangled name.
16857
6a053cb1
TT
168582020-01-08 Tom Tromey <tromey@adacore.com>
16859
16860 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16861 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16862 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16863 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16864 Remove.
16865 (section_offsets): New typedef.
16866 * symtab.c (fixup_section, get_msymbol_address): Update.
16867 * symmisc.c (dump_msymbols): Update.
16868 * symfile.h (relative_addr_info_to_section_offsets)
16869 (symfile_map_offsets_to_segments): Update.
16870 * symfile.c (build_section_addr_info_from_objfile)
16871 (init_objfile_sect_indices): Update.
16872 (struct place_section_arg): Change type of "offsets".
16873 (place_section): Update.
16874 (relative_addr_info_to_section_offsets): Change type of
16875 "section_offsets". Remove "num_sections" parameter.
16876 (default_symfile_offsets, syms_from_objfile_1)
16877 (set_objfile_default_section_offset): Update.
16878 (reread_symbols): No need to preserve section offsets by hand.
16879 (symfile_map_offsets_to_segments): Change type of "offsets".
16880 * stap-probe.c (relocate_address): Update.
16881 * stabsread.h (process_one_symbol): Update.
16882 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16883 (solib_target_relocate_section_addresses): Update.
16884 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16885 Update.
16886 * solib-frv.c (frv_relocate_main_executable): Update.
16887 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16888 * solib-aix.c (solib_aix_get_section_offsets): Change return
16889 type.
16890 (solib_aix_solib_create_inferior_hook): Update.
16891 * remote.c (remote_target::get_offsets): Update.
16892 * psymtab.c (find_pc_sect_psymtab): Update.
16893 * psympriv.h (struct partial_symbol) <address, text_low,
16894 text_high>: Update.
16895 * objfiles.h (obj_section_offset): Update.
16896 (struct objfile) <section_offsets>: Change type.
16897 <num_sections>: Remove.
16898 (objfile_relocate): Update.
16899 * objfiles.c (entry_point_address_query): Update
16900 (relocate_one_symbol): Change type of "section_offsets".
16901 (objfile_relocate1, objfile_relocate1): Change type of
16902 "new_offsets".
16903 (objfile_rebase1): Update.
16904 * mipsread.c (mipscoff_symfile_read): Update.
16905 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16906 parameter.
16907 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16908 (parse_external, psymtab_to_symtab_1): Update.
16909 * machoread.c (macho_symfile_offsets): Update.
16910 * ia64-tdep.c (ia64_find_unwind_table): Update.
16911 * hppa-tdep.c (read_unwind_info): Update.
16912 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16913 * dwarf2read.c (create_addrmap_from_index)
16914 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16915 (process_psymtab_comp_unit_reader, add_partial_symbol)
16916 (add_partial_subprogram, process_full_comp_unit)
16917 (read_file_scope, read_func_scope, read_lexical_block_scope)
16918 (read_call_site_scope, dwarf2_rnglists_process)
16919 (dwarf2_ranges_process, dwarf2_ranges_read)
16920 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16921 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16922 Update.
16923 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16924 Update.
16925 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16926 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16927 (process_one_symbol): Change type of "section_offsets".
16928 * ctfread.c (get_objfile_text_range): Update.
16929 * coffread.c (coff_symtab_read, enter_linenos)
16930 (process_coff_symbol): Update.
16931 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16932 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16933
456e800a
TT
169342020-01-08 Tom Tromey <tromey@adacore.com>
16935
16936 * dwarf2read.c (parse_macro_definition): Use std::string.
16937 (parse_macro_definition): Likewise.
16938
6dfa2fc2
TT
169392020-01-08 Tom Tromey <tromey@adacore.com>
16940
16941 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16942 (ATTR_ALLOC_CHUNK): Remove.
16943
421d1616
TT
169442020-01-08 Tom Tromey <tromey@adacore.com>
16945
16946 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16947
43816ebc
TT
169482020-01-08 Tom Tromey <tromey@adacore.com>
16949
16950 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16951 (dwarf2_compute_name, open_dwo_file): Likewise.
16952 (process_enumeration_scope): Use std::vector.
16953 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16954 (partial_die_info::fixup, dwarf2_start_subfile)
16955 (guess_full_die_structure_name, dwarf2_name): Likewise.
16956 (determine_prefix): Update.
16957 (guess_full_die_structure_name): Make return type const.
16958 (partial_die_full_name): Return unique_xmalloc_ptr.
16959 (DW_FIELD_ALLOC_CHUNK): Remove.
16960
4212d509
TT
169612020-01-07 Tom Tromey <tromey@adacore.com>
16962
16963 PR build/24937:
16964 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16965
06a6207a
JT
169662020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16967
16968 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16969
153d79c4
AB
169702020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16971
16972 * stack.c (print_frame_info): Move disassemble_next_line code
16973 inside source_print block.
16974
66182876
EZ
169752020-01-06 Eli Zaretskii <eliz@gnu.org>
16976
16977 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16978 gdb/signals.h, as we are now using native signal symbols.
16979
cbfa8581
SV
169802020-01-06 Shahab Vahedi <shahab@synopsys.com>
16981
16982 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16983 overflow by an early check of content vs threshold.
aac66a4c 16984 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16985 Likewise.
16986
3f602821
EZ
169872020-01-06 Eli Zaretskii <eliz@gnu.org>
16988
16989 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16990
a08c904d
JT
169912020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16992
16993 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16994 export table if no section contains it's RVA.
16995
89a65580
EZ
169962020-01-06 Eli Zaretskii <eliz@gnu.org>
16997
16998 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16999
8b7fcda2
HD
170002020-01-06 Hannes Domani <ssbssa@yahoo.de>
17001
17002 * source.c (print_source_lines_base): Set last_line_listed.
17003
a61b4f69
SV
170042020-01-06 Shahab Vahedi <shahab@synopsys.com>
17005
17006 * tui/tui-disasm.c: Remove trailing spaces.
17007
559e7e50
EZ
170082020-01-06 Eli Zaretskii <eliz@gnu.org>
17009 Pedro Alves <palves@redhat.com>
17010
17011 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17012 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17013 (windows_gdb_signal_to_target): New function, uses the above
17014 enumeration to convert GDB internal signal codes to equivalent
17015 Windows codes.
17016 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17017 * windows-nat.c: Include "gdb_wait.h".
17018 (get_windows_debug_event): Extract the fatal exception from the
17019 exit status and convert to the equivalent Posix signal number.
17020 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17021 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17022 * gdbsupport/gdb_wait.c: New file, implements
17023 windows_status_to_termsig.
17024 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17025 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17026
f2302a34
AB
170272020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17028
17029 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17030 show_layout.
17031
6a5206eb
LM
170322020-01-05 Luis Machado <luis.machado@linaro.org>
17033
17034 * aarch64-linux-nat.c
17035 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17036 and bfd_mach_aarch64.
17037
6ec1d75e
PW
170382020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17039
17040 * ui-file.c (stdio_file::can_emit_style_escape)
17041 (tee_file::can_emit_style_escape): Ensure style is used also on
17042 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17043 to gdb_stdout.
17044 * main.c (set_gdb_data_directory): Use file style to output the
17045 warning that the given pathname is not a directory.
17046 * top.c (show_history_filename, gdb_safe_append_history)
17047 (show_gdb_datadir): Use file style.
17048
44f81a76
HD
170492020-01-03 Hannes Domani <ssbssa@yahoo.de>
17050
17051 * solib-target.c (struct lm_info_target):
17052 Change offsets to be a unique_xmalloc_ptr.
17053 (solib_target_relocate_section_addresses): Update.
17054
25057eb0
HD
170552020-01-03 Hannes Domani <ssbssa@yahoo.de>
17056
17057 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17058
6e2118f5
BE
170592020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17060
17061 * MAINTAINERS (Write After Approval): Add myself.
17062
8133c7dc
LM
170632020-01-02 Luis Machado <luis.machado@linaro.org>
17064
17065 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17066 Cell BE architecture.
17067 * target.h (struct target_ops) <thread_architecture>: Likewise.
17068
48189bec
HD
170692020-01-01 Hannes Domani <ssbssa@yahoo.de>
17070
17071 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17072
ead1063b
HD
170732020-01-01 Hannes Domani <ssbssa@yahoo.de>
17074
17075 * MAINTAINERS (Write After Approval): Add myself.
17076
e5d78223
JB
170772020-01-01 Joel Brobecker <brobecker@adacore.com>
17078
17079 * gdbarch.sh: Update copyright year range of generated files.
17080
b811d2c2
JB
170812020-01-01 Joel Brobecker <brobecker@adacore.com>
17082
17083 Update copyright year range in all GDB files.
17084
5f4def5c
JB
170852020-01-01 Joel Brobecker <brobecker@adacore.com>
17086
17087 * copyright.py: Convert to Python 3.
17088
51fd4002
JB
170892020-01-01 Joel Brobecker <brobecker@adacore.com>
17090
17091 * copyright.py: Adapt after move of gnulib directory from gdb
17092 directory to toplevel directory.
17093
5fb651f2
JB
170942020-01-01 Joel Brobecker <brobecker@adacore.com>
17095
17096 * copyright.py (main): Exit if run from the wrong directory.
17097
5dd8bf88
JB
170982020-01-01 Joel Brobecker <brobecker@adacore.com>
17099
17100 * top.c (print_gdb_version): Change copyright year to 2020.
17101
9f71dacb 171022020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17103
9f71dacb 17104 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17105
9f71dacb 17106For older changes see ChangeLog-2019.
c906108c
SS
17107\f
17108Local Variables:
17109mode: change-log
17110left-margin: 8
17111fill-column: 74
17112version-control: never
57da7796 17113coding: utf-8
c906108c 17114End:
This page took 3.312582 seconds and 4 git commands to generate.