Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5b7d45d3
KS
12020-11-18 Keith Seitz <keiths@redhat.com>
2
3 * linux-tdep.c (dump_note_entry_p): Return true instead of
4 checking `filename'.
5
c44191f8
TV
62020-11-18 Tom de Vries <tdevries@suse.de>
7
8 * debuginfod-support.c (debuginfod_source_query)
9 (debuginfod_debuginfo_query): Also do early exit if
10 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
11
5d8254e1
TV
122020-11-18 Tom de Vries <tdevries@suse.de>
13
14 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
15 warning.
16
584903d3
SM
172020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
18
19 * gdbtypes.h (get_array_bounds): Return bool, adjust some
20 callers. Move doc here.
21 * gdbtypes.c (get_array_bounds): Return bool
22
6f2643db
AB
232020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
24
25 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
26 assert.
27 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
28 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
29 case to the default.
30
037d7135
AB
312020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
32
33 * printcmd.c: Include 'safe-ctype.c'.
34 (skip_over_slash_fmt): New function.
35 (print_command_completer): Call skip_over_slash_fmt.
36 (display_and_x_command_completer): New function.
37 (_initialize_printcmd): Add command completion for 'x' and
38 'display'.
39
2b3cb400
PA
402020-11-16 Pedro Alves <pedro@palves.net>
41
42 * frame.c (get_prev_frame): Move get_frame_id call from here ...
43 (get_prev_frame_always_1): ... to here.
44 * inline-frame.c (inline_frame_this_id): Mention
45 get_prev_frame_always_1 in comment.
46
b74dbc20
JB
472020-11-15 Joel Brobecker <brobecker@adacore.com>
48
49 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
50 handling.
51 (value_less): Add fixed-point handling.
52
0a12719e
JB
532020-11-15 Joel Brobecker <brobecker@adacore.com>
54
55 * eval.c (binop_promote): Add fixed-point type handling.
56 * valarith.c (fixed_point_binop): New function.
57 (scalar_binop): Add fixed-point type handling.
58 (value_neg): Add fixed-point type handling.
59 * valops.c (value_cast_to_fixed_point): New function.
60 (value_cast): Add fixed-point type handling.
61
0c9150e4
JB
622020-11-15 Joel Brobecker <brobecker@adacore.com>
63
64 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
65 range types.
66 * c-typeprint.c (c_type_print_varspec_prefix)
67 (c_type_print_varspec_suffix, c_type_print_base_1): Add
68 TYPE_CODE_FIXED_POINT handling.
69 * p-typeprint.c (pascal_type_print_varspec_prefix)
70 (pascal_type_print_varspec_suffix): Likewise.
71 * typeprint.c (print_type_fixed_point): New function.
72 * typeprint.h (print_type_fixed_point): Add declaration.
73
b26daff9
JB
742020-11-15 Joel Brobecker <brobecker@adacore.com>
75
76 * printcmd.c (print_scalar_formatted): Add fixed-point type
77 handling when options->format is set.
78
09584414
JB
792020-11-15 Joel Brobecker <brobecker@adacore.com>
80
81 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
82 * dwarf2/read.c (get_dwarf2_rational_constant)
83 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
84 (has_zero_over_zero_small_attribute): New functions.
85 read_base_type, set_die_type): Add fixed-point type handling.
86 * gdb-gdb.py.in: Add fixed-point type handling.
87 * gdbtypes.c: #include "gmp-utils.h".
88 (create_range_type, set_type_code): Add fixed-point type handling.
89 (init_fixed_point_type): New function.
90 (is_integral_type, is_scalar_type): Add fixed-point type handling.
91 (print_fixed_point_type_info): New function.
92 (recursive_dump_type, copy_type_recursive): Add fixed-point type
93 handling.
94 (fixed_point_type_storage): New typedef.
95 (fixed_point_objfile_key): New static global.
96 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
97 (fixed_point_type_base_type, fixed_point_scaling_factor): New
98 functions.
99 * gdbtypes.h: #include "gmp-utils.h".
100 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
101 (union type_specific) <fixed_point_info>: New field.
102 (struct fixed_point_type_info): New struct.
103 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
104 (init_fixed_point_type, is_fixed_point_type)
105 (fixed_point_type_base_type, fixed_point_scaling_factor)
106 (allocate_fixed_point_type_info): Add declarations.
107 * valprint.c (generic_val_print_fixed_point): New function.
108 (generic_value_print): Add fixed-point type handling.
109 * value.c (value_as_address, unpack_long): Add fixed-point type
110 handling.
111
e55c6530
JB
1122020-11-15 Joel Brobecker <brobecker@adacore.com>
113
114 * utils.h (uinteger_pow): Add declaration.
115 * utils.c (uinteger_pow): Moved here (without changes)...
116 * valarith.c (uinteger_pow): ... from here.
117
b34c74ab
JB
1182020-11-15 Joel Brobecker <brobecker@adacore.com>
119
40d9d2fd 120 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
121 * unittests/gmp-utils-selftests.c: New file.
122 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
123 unittests/gmp-utils-selftests.c.
124 (COMMON_SFILES) Add gmp-utils.c.
125 (HFILES_NO_SRCDIR): Add gmp-utils.h.
126
1b4ac058
JB
1272020-11-15 Joel Brobecker <brobecker@adacore.com>
128
129 * configure.ac: Generate an error if a usable GMP library
130 could not be found.
131 * configure: Regenerate.
132
2c947d9b
JB
1332020-11-15 Joel Brobecker <brobecker@adacore.com>
134
135 * configure.ac: Add support for --with-libgmp-prefix.
136 * Makefile.in (LIBGMP): New variable.
137 (CLIBS): Include $(LIBGMP).
138 * configure, config.in: Regenerate
139
9dd02fc0
AB
1402020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 PR cli/26879
143 * f-exp.y (COMPLETE): New token.
144 (exp): Two new rules for tab-completion.
145 (saw_name_at_eof): New static global.
146 (last_was_structop): Likewise.
147 (yylex): Set new variables, and return COMPLETE token at the end
148 of the input stream in some cases.
149
758cb810
TT
1502020-11-14 Tom Tromey <tom@tromey.com>
151
152 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
153
749065b7
TT
1542020-11-14 Tom Tromey <tom@tromey.com>
155
156 * opencl-lang.c (opencl_component_ref): Make "comps" const.
157
2c5b1849
SM
1582020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
159
160 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
161
e8b2f0d9
TT
1622020-11-13 Tom Tromey <tom@tromey.com>
163
164 * c-lang.c (convert_ucn, convert_octal, convert_hex)
165 (convert_escape, parse_one_string): Constify.
166
25f4c262
KS
1672020-11-13 Keith Seitz <keiths@redhat.com>
168
169 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
170 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
171 outside of ELF segments" warning for debugin
172
9d3ab915
KS
1732020-11-13 Keith Seitz <keiths@redhat.com>
174
175 PR gdb/23034
176 * elfread.c (elf_symfile_segments): Output a BFD file name
177 for the "Loadable section ... outside of ELF segments" warning.
178
9ecab40c
SM
1792020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
180
181 PR gdb/26835
182 * arm-tdep.c (class arm_instruction_reader): New.
183 (target_arm_instruction_reader): New.
184 (arm_analyze_prologue): Add instruction reader parameter and use
185 it. Use arm_expand_immediate.
186 (class target_arm_instruction_reader): Adjust.
187 (arm_skip_prologue): Adjust.
188 (arm_expand_immediate): New.
189 (arm_scan_prologue): Adjust.
190 (arm_analyze_prologue_test): New.
191 (class test_arm_instruction_reader): New.
192
5a7cf527
AB
1932020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
194
195 * f-lang.c (fortran_argument_convert): Add declaration. Add
196 header comment, taken from f-lang.h. Make static.
197 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
198 (fortran_argument_convert): Delete declaration.
199
7bea47f0
AB
2002020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
201
202 * ada-exp.y (find_primitive_type): Make parameter const.
203 * ada-lang.c (enum ada_primitive_types): Delete.
204 (ada_language::language_arch_info): Update.
205 * c-lang.c (enum c_primitive_types): Delete.
206 (c_language_arch_info): Update.
207 (enum cplus_primitive_types): Delete.
208 (cplus_language::language_arch_info): Update.
209 * d-lang.c (enum d_primitive_types): Delete.
210 (d_language::language_arch_info): Update.
211 * f-lang.c (enum f_primitive_types): Delete.
212 (f_language::language_arch_info): Update.
213 * go-lang.c (enum go_primitive_types): Delete.
214 (go_language::language_arch_info): Update.
215 * language.c (auto_or_unknown_language::language_arch_info):
216 Update.
217 (language_gdbarch_post_init): Use obstack_new, use array indexing.
218 (language_string_char_type): Add header comment, call function in
219 language_arch_info.
220 (language_bool_type): Likewise
221 (language_arch_info::bool_type): Define.
222 (language_lookup_primitive_type_1): Delete.
223 (language_lookup_primitive_type): Rewrite as a templated function
224 to call function in language_arch_info, then instantiate twice.
225 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
226 (language_arch_info::lookup_primitive_type_and_symbol): Define.
227 (language_arch_info::lookup_primitive_type): Define twice with
228 different signatures.
229 (language_arch_info::lookup_primitive_type_as_symbol): Define.
230 (language_lookup_primitive_type_as_symbol): Rewrite to call a
231 member function in language_arch_info.
232 * language.h (language_arch_info): Complete rewrite.
233 (language_lookup_primitive_type): Make templated.
234 * m2-lang.c (enum m2_primitive_types): Delete.
235 (m2_language::language_arch_info): Update.
236 * opencl-lang.c (OCL_P_TYPE): Delete.
237 (enum opencl_primitive_types): Delete.
238 (opencl_type_data): Delete.
239 (builtin_opencl_type): Delete.
240 (lookup_opencl_vector_type): Update.
241 (opencl_language::language_arch_info): Update, lots of content
242 moved from...
243 (build_opencl_types): ...here. This function is now deleted.
244 (_initialize_opencl_language): Delete.
245 * p-lang.c (enum pascal_primitive_types): Delete.
246 (pascal_language::language_arch_info): Update.
247 * rust-lang.c (enum rust_primitive_types): Delete.
248 (rust_language::language_arch_info): Update.
249
bf6e5d01
SM
2502020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
253 dwarf2_queue_guard.
254
1350c3b4
SM
2552020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
256
257 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
258 comment.
259
6f738b01
SM
2602020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * dwarf2/read.c (dwarf_read_debug_printf,
263 dwarf_read_debug_printf_v): New macros, use throughout the file.
264
10c19fad
SV
2652020-11-12 Shahab Vahedi <shahab@synopsys.com>
266
267 * arc-linux-tdep.c (collect_register): Populate "eret" by
268 "pc" value from the regcache when asked for "pc" value.
269
1f2624a3
TT
2702020-11-12 Tom Tromey <tom@tromey.com>
271
272 PR rust/26799:
273 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
274 exist.
275
ab33b152
AB
2762020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
277
278 * features/Makefile (XMLTOC): Add rx.xml.
279 (FEATURE_XMLFILES): Remove rx.xml.
280 (FEATURE_CFILES rule): Pass '-single-feature' flag.
281 * features/rx.c: Regenerate.
282 * features/rx.xml: Wrap in `target` tags, and reindent.
283 * target-descriptions.c (struct maint_print_c_tdesc_options): New
284 structure.
285 (maint_print_c_tdesc_opt_def): New typedef.
286 (maint_print_c_tdesc_opt_defs): New static global.
287 (make_maint_print_c_tdesc_options_def_group): New function.
288 (maint_print_c_tdesc_cmd): Make use of command line flags, only
289 print single feature C file for target descriptions containing a
290 single feature.
291 (maint_print_c_tdesc_cmd_completer): New function.
292 (_initialize_target_descriptions): Update call to register command
293 completer, and include command line flag in help text.
294
550820e1
AB
2952020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
296
297 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
298 numbers.
299 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
300 enum values.
301
baf20f76
TT
3022020-11-10 Tom Tromey <tom@tromey.com>
303
304 * value.h (internalvar_name): Update.
305 * value.c (internalvar_name): Make return type const.
306
caaece0e
TT
3072020-11-10 Tom Tromey <tom@tromey.com>
308
309 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
310 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
311 const.
312
8e20b4be
TT
3132020-11-10 Tom Tromey <tom@tromey.com>
314
315 * objc-lang.h (value_nsstring): Update.
316 * objc-lang.c (value_nsstring): Make "ptr" const.
317
86775fab
AB
3182020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
319
320 * expprint.c (print_subexp_funcall): Increment expression position
321 after reading argument count.
322 * f-lang.c (print_subexp_f): Skip over opcode before calling
323 common function.
324 (dump_subexp_body_f): Likewise.
325
3fed4c0b
RG
3262020-11-06 Romain Geissler <romain.geissler@amadeus.com>
327
328 PR python/26832
329 * configure: Regenerate.
330 * configure.ac: Check for python modules ctypes instead of
331 itertools.
332
ac3d4064
PA
3332020-11-06 Pedro Alves <pedro@palves.net>
334
335 * macroexp.c (struct macro_buffer): Split in two classes. Add
336 uses adjusted.
337 (struct shared_macro_buffer): New, factored out from struct
338 macro_buffer.
339 (struct growable_macro_buffer): New, factored out from struct
340 macro_buffer.
341 (set_token, get_comment, get_identifier, get_pp_number)
342 (get_character_constant, get_string_literal, get_punctuator)
343 (get_next_token_for_substitution): Constify parameters.
344 (substitute_args): Constify locals.
345
606decb2
TT
3462020-11-05 Tom Tromey <tom@tromey.com>
347
348 * dwarf2/read.c (read_cutu_die_from_dwo)
349 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
350 (build_type_psymtabs_1): Update.
351 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
352 parameter.
353 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
354 Don't read section. Add assert.
355
9c91c725
TT
3562020-11-04 Tom Tromey <tromey@adacore.com>
357
358 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
359
8d9fd3a1
TT
3602020-11-04 Tom Tromey <tromey@adacore.com>
361
362 * ada-typeprint.c (ada_print_type): Handle __T types.
363
d8f62e84
TT
3642020-11-04 Tom Tromey <tromey@adacore.com>
365
366 * dwarf2/read.c (add_partial_symbol, process_die):
367 Handle DW_TAG_array_type.
368 (is_type_tag_for_partial): Add "lang" parameter.
369 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
370
7ff5b937
TT
3712020-11-04 Tom Tromey <tromey@adacore.com>
372
373 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
374
10f6a3ad
TT
3752020-11-04 Tom Tromey <tromey@adacore.com>
376
377 * dwarf2/read.c (read_array_type): Only apply stride to innermost
378 array.
379
b72795a8
TT
3802020-11-04 Tom Tromey <tromey@adacore.com>
381
382 * gdbtypes.c (update_static_array_size): Handle bit stride.
383
24aa1b02
TT
3842020-11-04 Tom Tromey <tromey@adacore.com>
385
386 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
387
c9a28cbe
TT
3882020-11-04 Tom Tromey <tromey@adacore.com>
389
390 * ada-lang.c (ada_is_any_packed_array_type): New function.
391 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
392
57567375
TT
3932020-11-04 Tom Tromey <tromey@adacore.com>
394
395 * dwarf2/read.c (recognize_bound_expression)
396 (quirk_ada_thick_pointer): New functions.
397 (read_array_type): Call quirk_ada_thick_pointer.
398 (set_die_type): Add "skip_data_location" parameter.
399 (quirk_ada_thick_pointer): New function.
400 (process_structure_scope): Call quirk_ada_thick_pointer.
401 * ada-lang.c (ada_is_unconstrained_packed_array_type)
402 (decode_packed_array_bitsize): Handle thick pointers without
403 parallel types.
404 (ada_is_gnat_encoded_packed_array_type): Rename from
405 ada_is_packed_array_type.
406 (ada_is_constrained_packed_array_type): Update.
407 * ada-valprint.c (ada_val_print_gnat_array): Remove.
408 (ada_value_print_1): Use ada_get_decoded_value.
409
a7400e44
TT
4102020-11-04 Tom Tromey <tromey@adacore.com>
411
412 * ada-lang.c (recursively_update_array_bitsize): New function.
413 (decode_constrained_packed_array_type): Call it.
414
75fd6a26
TT
4152020-11-04 Tom Tromey <tromey@adacore.com>
416
417 * ada-lang.c (to_fixed_array_type): Error if
418 decode_constrained_packed_array_type returns NULL.
419
93f9561e
TT
4202020-11-04 Tom Tromey <tromey@adacore.com>
421
422 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
423
257e02d8
TT
4242020-11-02 Tom Tromey <tromey@adacore.com>
425
426 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
427 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
428 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
429 * amd64-ravenscar-thread.c: New file.
430 * amd64-ravenscar-thread.h: New file.
431 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
432 * configure.tgt (amd64_tobjs): Add ravenscar objects.
433
74d877e5
AB
4342020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
435
436 * main.c (execute_cmdargs): New function.
437 (captured_main_1): Make use of execute_cmdargs.
438
64aaad63
AB
4392020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
440
441 * NEWS: Mention changes to config file search path.
442 * main.c
443
5b3d3560
TT
4442020-11-02 Tom Tromey <tromey@adacore.com>
445
446 * python/python.c: Consolidate two HAVE_PYTHON blocks.
447 (python_GdbModuleDef): Move earlier. Now static.
448 (do_start_initialization): Consolidate some IS_PY3K blocks.
449
dda83cd7
SM
4502020-11-02 Simon Marchi <simon.marchi@efficios.com>
451
452 * aarch64-linux-tdep.c: Fix indentation.
453 * aarch64-ravenscar-thread.c: Fix indentation.
454 * aarch64-tdep.c: Fix indentation.
455 * aarch64-tdep.h: Fix indentation.
456 * ada-lang.c: Fix indentation.
457 * ada-lang.h: Fix indentation.
458 * ada-tasks.c: Fix indentation.
459 * ada-typeprint.c: Fix indentation.
460 * ada-valprint.c: Fix indentation.
461 * ada-varobj.c: Fix indentation.
462 * addrmap.c: Fix indentation.
463 * addrmap.h: Fix indentation.
464 * agent.c: Fix indentation.
465 * aix-thread.c: Fix indentation.
466 * alpha-bsd-nat.c: Fix indentation.
467 * alpha-linux-tdep.c: Fix indentation.
468 * alpha-mdebug-tdep.c: Fix indentation.
469 * alpha-nbsd-tdep.c: Fix indentation.
470 * alpha-obsd-tdep.c: Fix indentation.
471 * alpha-tdep.c: Fix indentation.
472 * amd64-bsd-nat.c: Fix indentation.
473 * amd64-darwin-tdep.c: Fix indentation.
474 * amd64-linux-nat.c: Fix indentation.
475 * amd64-linux-tdep.c: Fix indentation.
476 * amd64-nat.c: Fix indentation.
477 * amd64-obsd-tdep.c: Fix indentation.
478 * amd64-tdep.c: Fix indentation.
479 * amd64-windows-tdep.c: Fix indentation.
480 * annotate.c: Fix indentation.
481 * arc-tdep.c: Fix indentation.
482 * arch-utils.c: Fix indentation.
483 * arch/arm-get-next-pcs.c: Fix indentation.
484 * arch/arm.c: Fix indentation.
485 * arm-linux-nat.c: Fix indentation.
486 * arm-linux-tdep.c: Fix indentation.
487 * arm-nbsd-tdep.c: Fix indentation.
488 * arm-pikeos-tdep.c: Fix indentation.
489 * arm-tdep.c: Fix indentation.
490 * arm-tdep.h: Fix indentation.
491 * arm-wince-tdep.c: Fix indentation.
492 * auto-load.c: Fix indentation.
493 * auxv.c: Fix indentation.
494 * avr-tdep.c: Fix indentation.
495 * ax-gdb.c: Fix indentation.
496 * ax-general.c: Fix indentation.
497 * bfin-linux-tdep.c: Fix indentation.
498 * block.c: Fix indentation.
499 * block.h: Fix indentation.
500 * blockframe.c: Fix indentation.
501 * bpf-tdep.c: Fix indentation.
502 * break-catch-sig.c: Fix indentation.
503 * break-catch-syscall.c: Fix indentation.
504 * break-catch-throw.c: Fix indentation.
505 * breakpoint.c: Fix indentation.
506 * breakpoint.h: Fix indentation.
507 * bsd-uthread.c: Fix indentation.
508 * btrace.c: Fix indentation.
509 * build-id.c: Fix indentation.
510 * buildsym-legacy.h: Fix indentation.
511 * buildsym.c: Fix indentation.
512 * c-typeprint.c: Fix indentation.
513 * c-valprint.c: Fix indentation.
514 * c-varobj.c: Fix indentation.
515 * charset.c: Fix indentation.
516 * cli/cli-cmds.c: Fix indentation.
517 * cli/cli-decode.c: Fix indentation.
518 * cli/cli-decode.h: Fix indentation.
519 * cli/cli-script.c: Fix indentation.
520 * cli/cli-setshow.c: Fix indentation.
521 * coff-pe-read.c: Fix indentation.
522 * coffread.c: Fix indentation.
523 * compile/compile-cplus-types.c: Fix indentation.
524 * compile/compile-object-load.c: Fix indentation.
525 * compile/compile-object-run.c: Fix indentation.
526 * completer.c: Fix indentation.
527 * corefile.c: Fix indentation.
528 * corelow.c: Fix indentation.
529 * cp-abi.h: Fix indentation.
530 * cp-namespace.c: Fix indentation.
531 * cp-support.c: Fix indentation.
532 * cp-valprint.c: Fix indentation.
533 * cris-linux-tdep.c: Fix indentation.
534 * cris-tdep.c: Fix indentation.
535 * darwin-nat-info.c: Fix indentation.
536 * darwin-nat.c: Fix indentation.
537 * darwin-nat.h: Fix indentation.
538 * dbxread.c: Fix indentation.
539 * dcache.c: Fix indentation.
540 * disasm.c: Fix indentation.
541 * dtrace-probe.c: Fix indentation.
542 * dwarf2/abbrev.c: Fix indentation.
543 * dwarf2/attribute.c: Fix indentation.
544 * dwarf2/expr.c: Fix indentation.
545 * dwarf2/frame.c: Fix indentation.
546 * dwarf2/index-cache.c: Fix indentation.
547 * dwarf2/index-write.c: Fix indentation.
548 * dwarf2/line-header.c: Fix indentation.
549 * dwarf2/loc.c: Fix indentation.
550 * dwarf2/macro.c: Fix indentation.
551 * dwarf2/read.c: Fix indentation.
552 * dwarf2/read.h: Fix indentation.
553 * elfread.c: Fix indentation.
554 * eval.c: Fix indentation.
555 * event-top.c: Fix indentation.
556 * exec.c: Fix indentation.
557 * exec.h: Fix indentation.
558 * expprint.c: Fix indentation.
559 * f-lang.c: Fix indentation.
560 * f-typeprint.c: Fix indentation.
561 * f-valprint.c: Fix indentation.
562 * fbsd-nat.c: Fix indentation.
563 * fbsd-tdep.c: Fix indentation.
564 * findvar.c: Fix indentation.
565 * fork-child.c: Fix indentation.
566 * frame-unwind.c: Fix indentation.
567 * frame-unwind.h: Fix indentation.
568 * frame.c: Fix indentation.
569 * frv-linux-tdep.c: Fix indentation.
570 * frv-tdep.c: Fix indentation.
571 * frv-tdep.h: Fix indentation.
572 * ft32-tdep.c: Fix indentation.
573 * gcore.c: Fix indentation.
574 * gdb_bfd.c: Fix indentation.
575 * gdbarch.sh: Fix indentation.
576 * gdbarch.c: Re-generate
577 * gdbarch.h: Re-generate.
578 * gdbcore.h: Fix indentation.
579 * gdbthread.h: Fix indentation.
580 * gdbtypes.c: Fix indentation.
581 * gdbtypes.h: Fix indentation.
582 * glibc-tdep.c: Fix indentation.
583 * gnu-nat.c: Fix indentation.
584 * gnu-nat.h: Fix indentation.
585 * gnu-v2-abi.c: Fix indentation.
586 * gnu-v3-abi.c: Fix indentation.
587 * go32-nat.c: Fix indentation.
588 * guile/guile-internal.h: Fix indentation.
589 * guile/scm-cmd.c: Fix indentation.
590 * guile/scm-frame.c: Fix indentation.
591 * guile/scm-iterator.c: Fix indentation.
592 * guile/scm-math.c: Fix indentation.
593 * guile/scm-ports.c: Fix indentation.
594 * guile/scm-pretty-print.c: Fix indentation.
595 * guile/scm-value.c: Fix indentation.
596 * h8300-tdep.c: Fix indentation.
597 * hppa-linux-nat.c: Fix indentation.
598 * hppa-linux-tdep.c: Fix indentation.
599 * hppa-nbsd-nat.c: Fix indentation.
600 * hppa-nbsd-tdep.c: Fix indentation.
601 * hppa-obsd-nat.c: Fix indentation.
602 * hppa-tdep.c: Fix indentation.
603 * hppa-tdep.h: Fix indentation.
604 * i386-bsd-nat.c: Fix indentation.
605 * i386-darwin-nat.c: Fix indentation.
606 * i386-darwin-tdep.c: Fix indentation.
607 * i386-dicos-tdep.c: Fix indentation.
608 * i386-gnu-nat.c: Fix indentation.
609 * i386-linux-nat.c: Fix indentation.
610 * i386-linux-tdep.c: Fix indentation.
611 * i386-nto-tdep.c: Fix indentation.
612 * i386-obsd-tdep.c: Fix indentation.
613 * i386-sol2-nat.c: Fix indentation.
614 * i386-tdep.c: Fix indentation.
615 * i386-tdep.h: Fix indentation.
616 * i386-windows-tdep.c: Fix indentation.
617 * i387-tdep.c: Fix indentation.
618 * i387-tdep.h: Fix indentation.
619 * ia64-libunwind-tdep.c: Fix indentation.
620 * ia64-libunwind-tdep.h: Fix indentation.
621 * ia64-linux-nat.c: Fix indentation.
622 * ia64-linux-tdep.c: Fix indentation.
623 * ia64-tdep.c: Fix indentation.
624 * ia64-tdep.h: Fix indentation.
625 * ia64-vms-tdep.c: Fix indentation.
626 * infcall.c: Fix indentation.
627 * infcmd.c: Fix indentation.
628 * inferior.c: Fix indentation.
629 * infrun.c: Fix indentation.
630 * iq2000-tdep.c: Fix indentation.
631 * language.c: Fix indentation.
632 * linespec.c: Fix indentation.
633 * linux-fork.c: Fix indentation.
634 * linux-nat.c: Fix indentation.
635 * linux-tdep.c: Fix indentation.
636 * linux-thread-db.c: Fix indentation.
637 * lm32-tdep.c: Fix indentation.
638 * m2-lang.c: Fix indentation.
639 * m2-typeprint.c: Fix indentation.
640 * m2-valprint.c: Fix indentation.
641 * m32c-tdep.c: Fix indentation.
642 * m32r-linux-tdep.c: Fix indentation.
643 * m32r-tdep.c: Fix indentation.
644 * m68hc11-tdep.c: Fix indentation.
645 * m68k-bsd-nat.c: Fix indentation.
646 * m68k-linux-nat.c: Fix indentation.
647 * m68k-linux-tdep.c: Fix indentation.
648 * m68k-tdep.c: Fix indentation.
649 * machoread.c: Fix indentation.
650 * macrocmd.c: Fix indentation.
651 * macroexp.c: Fix indentation.
652 * macroscope.c: Fix indentation.
653 * macrotab.c: Fix indentation.
654 * macrotab.h: Fix indentation.
655 * main.c: Fix indentation.
656 * mdebugread.c: Fix indentation.
657 * mep-tdep.c: Fix indentation.
658 * mi/mi-cmd-catch.c: Fix indentation.
659 * mi/mi-cmd-disas.c: Fix indentation.
660 * mi/mi-cmd-env.c: Fix indentation.
661 * mi/mi-cmd-stack.c: Fix indentation.
662 * mi/mi-cmd-var.c: Fix indentation.
663 * mi/mi-cmds.c: Fix indentation.
664 * mi/mi-main.c: Fix indentation.
665 * mi/mi-parse.c: Fix indentation.
666 * microblaze-tdep.c: Fix indentation.
667 * minidebug.c: Fix indentation.
668 * minsyms.c: Fix indentation.
669 * mips-linux-nat.c: Fix indentation.
670 * mips-linux-tdep.c: Fix indentation.
671 * mips-nbsd-tdep.c: Fix indentation.
672 * mips-tdep.c: Fix indentation.
673 * mn10300-linux-tdep.c: Fix indentation.
674 * mn10300-tdep.c: Fix indentation.
675 * moxie-tdep.c: Fix indentation.
676 * msp430-tdep.c: Fix indentation.
677 * namespace.h: Fix indentation.
678 * nat/fork-inferior.c: Fix indentation.
679 * nat/gdb_ptrace.h: Fix indentation.
680 * nat/linux-namespaces.c: Fix indentation.
681 * nat/linux-osdata.c: Fix indentation.
682 * nat/netbsd-nat.c: Fix indentation.
683 * nat/x86-dregs.c: Fix indentation.
684 * nbsd-nat.c: Fix indentation.
685 * nbsd-tdep.c: Fix indentation.
686 * nios2-linux-tdep.c: Fix indentation.
687 * nios2-tdep.c: Fix indentation.
688 * nto-procfs.c: Fix indentation.
689 * nto-tdep.c: Fix indentation.
690 * objfiles.c: Fix indentation.
691 * objfiles.h: Fix indentation.
692 * opencl-lang.c: Fix indentation.
693 * or1k-tdep.c: Fix indentation.
694 * osabi.c: Fix indentation.
695 * osabi.h: Fix indentation.
696 * osdata.c: Fix indentation.
697 * p-lang.c: Fix indentation.
698 * p-typeprint.c: Fix indentation.
699 * p-valprint.c: Fix indentation.
700 * parse.c: Fix indentation.
701 * ppc-linux-nat.c: Fix indentation.
702 * ppc-linux-tdep.c: Fix indentation.
703 * ppc-nbsd-nat.c: Fix indentation.
704 * ppc-nbsd-tdep.c: Fix indentation.
705 * ppc-obsd-nat.c: Fix indentation.
706 * ppc-ravenscar-thread.c: Fix indentation.
707 * ppc-sysv-tdep.c: Fix indentation.
708 * ppc64-tdep.c: Fix indentation.
709 * printcmd.c: Fix indentation.
710 * proc-api.c: Fix indentation.
711 * producer.c: Fix indentation.
712 * producer.h: Fix indentation.
713 * prologue-value.c: Fix indentation.
714 * prologue-value.h: Fix indentation.
715 * psymtab.c: Fix indentation.
716 * python/py-arch.c: Fix indentation.
717 * python/py-bpevent.c: Fix indentation.
718 * python/py-event.c: Fix indentation.
719 * python/py-event.h: Fix indentation.
720 * python/py-finishbreakpoint.c: Fix indentation.
721 * python/py-frame.c: Fix indentation.
722 * python/py-framefilter.c: Fix indentation.
723 * python/py-inferior.c: Fix indentation.
724 * python/py-infthread.c: Fix indentation.
725 * python/py-objfile.c: Fix indentation.
726 * python/py-prettyprint.c: Fix indentation.
727 * python/py-registers.c: Fix indentation.
728 * python/py-signalevent.c: Fix indentation.
729 * python/py-stopevent.c: Fix indentation.
730 * python/py-stopevent.h: Fix indentation.
731 * python/py-threadevent.c: Fix indentation.
732 * python/py-tui.c: Fix indentation.
733 * python/py-unwind.c: Fix indentation.
734 * python/py-value.c: Fix indentation.
735 * python/py-xmethods.c: Fix indentation.
736 * python/python-internal.h: Fix indentation.
737 * python/python.c: Fix indentation.
738 * ravenscar-thread.c: Fix indentation.
739 * record-btrace.c: Fix indentation.
740 * record-full.c: Fix indentation.
741 * record.c: Fix indentation.
742 * reggroups.c: Fix indentation.
743 * regset.h: Fix indentation.
744 * remote-fileio.c: Fix indentation.
745 * remote.c: Fix indentation.
746 * reverse.c: Fix indentation.
747 * riscv-linux-tdep.c: Fix indentation.
748 * riscv-ravenscar-thread.c: Fix indentation.
749 * riscv-tdep.c: Fix indentation.
750 * rl78-tdep.c: Fix indentation.
751 * rs6000-aix-tdep.c: Fix indentation.
752 * rs6000-lynx178-tdep.c: Fix indentation.
753 * rs6000-nat.c: Fix indentation.
754 * rs6000-tdep.c: Fix indentation.
755 * rust-lang.c: Fix indentation.
756 * rx-tdep.c: Fix indentation.
757 * s12z-tdep.c: Fix indentation.
758 * s390-linux-tdep.c: Fix indentation.
759 * score-tdep.c: Fix indentation.
760 * ser-base.c: Fix indentation.
761 * ser-mingw.c: Fix indentation.
762 * ser-uds.c: Fix indentation.
763 * ser-unix.c: Fix indentation.
764 * serial.c: Fix indentation.
765 * sh-linux-tdep.c: Fix indentation.
766 * sh-nbsd-tdep.c: Fix indentation.
767 * sh-tdep.c: Fix indentation.
768 * skip.c: Fix indentation.
769 * sol-thread.c: Fix indentation.
770 * solib-aix.c: Fix indentation.
771 * solib-darwin.c: Fix indentation.
772 * solib-frv.c: Fix indentation.
773 * solib-svr4.c: Fix indentation.
774 * solib.c: Fix indentation.
775 * source.c: Fix indentation.
776 * sparc-linux-tdep.c: Fix indentation.
777 * sparc-nbsd-tdep.c: Fix indentation.
778 * sparc-obsd-tdep.c: Fix indentation.
779 * sparc-ravenscar-thread.c: Fix indentation.
780 * sparc-tdep.c: Fix indentation.
781 * sparc64-linux-tdep.c: Fix indentation.
782 * sparc64-nbsd-tdep.c: Fix indentation.
783 * sparc64-obsd-tdep.c: Fix indentation.
784 * sparc64-tdep.c: Fix indentation.
785 * stabsread.c: Fix indentation.
786 * stack.c: Fix indentation.
787 * stap-probe.c: Fix indentation.
788 * stubs/ia64vms-stub.c: Fix indentation.
789 * stubs/m32r-stub.c: Fix indentation.
790 * stubs/m68k-stub.c: Fix indentation.
791 * stubs/sh-stub.c: Fix indentation.
792 * stubs/sparc-stub.c: Fix indentation.
793 * symfile-mem.c: Fix indentation.
794 * symfile.c: Fix indentation.
795 * symfile.h: Fix indentation.
796 * symmisc.c: Fix indentation.
797 * symtab.c: Fix indentation.
798 * symtab.h: Fix indentation.
799 * target-float.c: Fix indentation.
800 * target.c: Fix indentation.
801 * target.h: Fix indentation.
802 * tic6x-tdep.c: Fix indentation.
803 * tilegx-linux-tdep.c: Fix indentation.
804 * tilegx-tdep.c: Fix indentation.
805 * top.c: Fix indentation.
806 * tracefile-tfile.c: Fix indentation.
807 * tracepoint.c: Fix indentation.
808 * tui/tui-disasm.c: Fix indentation.
809 * tui/tui-io.c: Fix indentation.
810 * tui/tui-regs.c: Fix indentation.
811 * tui/tui-stack.c: Fix indentation.
812 * tui/tui-win.c: Fix indentation.
813 * tui/tui-winsource.c: Fix indentation.
814 * tui/tui.c: Fix indentation.
815 * typeprint.c: Fix indentation.
816 * ui-out.h: Fix indentation.
817 * unittests/copy_bitwise-selftests.c: Fix indentation.
818 * unittests/memory-map-selftests.c: Fix indentation.
819 * utils.c: Fix indentation.
820 * v850-tdep.c: Fix indentation.
821 * valarith.c: Fix indentation.
822 * valops.c: Fix indentation.
823 * valprint.c: Fix indentation.
824 * valprint.h: Fix indentation.
825 * value.c: Fix indentation.
826 * value.h: Fix indentation.
827 * varobj.c: Fix indentation.
828 * vax-tdep.c: Fix indentation.
829 * windows-nat.c: Fix indentation.
830 * windows-tdep.c: Fix indentation.
831 * xcoffread.c: Fix indentation.
832 * xml-syscall.c: Fix indentation.
833 * xml-tdesc.c: Fix indentation.
834 * xstormy16-tdep.c: Fix indentation.
835 * xtensa-config.c: Fix indentation.
836 * xtensa-linux-nat.c: Fix indentation.
837 * xtensa-linux-tdep.c: Fix indentation.
838 * xtensa-tdep.c: Fix indentation.
839
e1f57067
AB
8402020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
841 Craig Blackmore <craig.blackmore@embecosm.com>
842
843 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
844 as an unsigned value.
845
ae7754b2
TT
8462020-11-01 Tom Tromey <tom@tromey.com>
847
848 * dbxread.c (dbx_end_psymtab): Update.
849 * dwarf2/read.c (process_psymtab_comp_unit_reader)
850 (build_type_psymtabs_reader): Update.
851 * xcoffread.c (xcoff_end_psymtab): Update.
852 * ctfread.c (scan_partial_symbols): Update.
853 * psymtab.c (sort_pst_symbols): Remove.
854 (partial_symtab::end): Rename from end_psymtab_common. Inline
855 sort_pst_symbols.
856 * psympriv.h (struct partial_symtab) <end>: New method.
857 (end_psymtab_common): Don't declare.
858
0684bb51
TT
8592020-11-01 Tom Tromey <tom@tromey.com>
860
861 * symmisc.c (count_psyms): New function.
862 (print_objfile_statistics): Use it.
863 * psymtab.c (append_psymbol_to_list): Remove.
864 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
865 * objfiles.h (struct objstats) <n_psyms>: Remove.
866
089002bb
TT
8672020-11-01 Tom Tromey <tom@tromey.com>
868
869 * dbxread.c (dbx_end_psymtab): Update.
870 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
871 (build_type_psymtabs_reader): Update.
872 * xcoffread.c (xcoff_end_psymtab): Update.
873 * ctfread.c (scan_partial_symbols): Update.
874 * psympriv.h (end_psymtab_common): Update.
875 * psymtab.c (end_psymtab_common): Remove objfile parameter.
876 (sort_pst_symbols): Likewise.
877
525454d6
TT
8782020-11-01 Tom Tromey <tom@tromey.com>
879
880 * dbxread.c (dbx_symfile_read): Update.
881 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
882 * xcoffread.c (xcoff_initial_scan): Update.
883 * psympriv.h (init_psymbol_list): Don't declare.
884 * psymtab.c (init_psymbol_list): Remove.
885
60bd1d53
JB
8862020-11-01 Joel Brobecker <brobecker@adacore.com>
887
888 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
889 gnat_encoded_fixed_type_info. Update all callers.
890
db99d0d0
JB
8912020-11-01 Joel Brobecker <brobecker@adacore.com>
892
893 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
894 line too long.
895
75f24e86
JB
8962020-11-01 Joel Brobecker <brobecker@adacore.com>
897
898 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
899 cast_from_fixed. Update all callers.
900 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
901 Update all callers.
902 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
903 Update all callers.
904 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
905 ada_scaling_factor.
906 * ada-typeprint.c: Replace call to ada_scaling_factor by call
907 to print_gnat_encoded_fixed_point_type.
908 * ada-valprint.c: Likewise.
909
4f0469cd
AB
9102020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
911
912 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
913 (debug_prefixed_printf): Add check of debug_displaced flag.
914 * linux-nat.c (linux_nat_debug_printf): Add check of
915 debug_linux_nat flag.
916
17417fb0
SM
9172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
918
919 * infrun.c (infrun_debug_printf_1): Remove.
920 (displaced_debug_printf_1): Remove.
921 (stop_all_threads): Use debug_prefixed_printf.
922 * infrun.h (infrun_debug_printf_1): Remove.
923 (infrun_debug_printf): Use debug_prefixed_printf.
924 (displaced_debug_printf_1): Remove.
925 (displaced_debug_printf): Use debug_prefixed_printf.
926 * linux-nat.c (linux_nat_debug_printf_1): Remove.
927 (linux_nat_debug_printf): Use debug_prefixed_printf.
928
ad6dba1c
SM
9292020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
930
931 * configure: Re-generate.
932 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
933 AC_LANG_PROGRAM.
934
b6fb30ed
SM
9352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
936
937 * configure: Re-generate.
938
5164c117
SM
9392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
940
941 * configure: Re-generate.
942
864ca435
SM
9432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
944
945 * configure: Re-generate.
946
b9442ec1
SM
9472020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
948
949 * configure: Re-generate.
950
294f2697
SM
9512020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
952
953 * acinclude.m4: Modernize.
954 * configure: Re-generate.
955
5593a99a
SM
9562020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
957
958 * configure.ac: Modernize.
959 * configure: Re-generate.
960
e41fda1d
SM
9612020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
962
963 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
964 * configure: Re-generate.
965 * configure.ac: Remove AM_PROG_CC_STDC.
966
91e1a0ed
SM
9672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
968
969 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
970 AC_CANONICAL_SYSTEM.
971 * configure: Re-generate.
972
136821d9
SM
9732020-10-30 Simon Marchi <simon.marchi@efficios.com>
974
975 * infrun.h (displaced_debug_printf): New macro. Replace
976 displaced debug prints throughout to use it.
977 (displaced_debug_printf_1): New declaration.
978 (displaced_step_dump_bytes): Return string, remove ui_file
979 parameter, update all callers.
980 * infrun.c (displaced_debug_printf_1): New function.
981 (displaced_step_dump_bytes): Return string, remove ui_file
982 parameter
983
aa2045e7
SM
9842020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
985
986 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
987
b1ec2735
TT
9882020-10-30 Tom Tromey <tromey@adacore.com>
989
990 * Makefile.in (stamp-init): Depend on config.status.
991
b78b3a29
TBA
9922020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
993
994 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
995
d70bdd3c
PA
9962020-10-30 Pedro Alves <pedro@palves.net>
997
998 * thread.c (lookup_selected_frame): Move ...
999 * frame.c (lookup_selected_frame): ... here.
1000
79952e69
PA
10012020-10-30 Pedro Alves <pedro@palves.net>
1002
1003 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1004 * frame.c
1005 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1006 Use save_selected_frame. Save language as well.
1007 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1008 Use restore_selected_frame, and restore language as well.
1009 (selected_frame_id, selected_frame_level): New.
1010 (selected_frame): Update comments.
1011 (save_selected_frame, restore_selected_frame): New.
1012 (get_selected_frame): Use lookup_selected_frame.
1013 (get_selected_frame_if_set): Delete.
1014 (select_frame): Record selected_frame_level and selected_frame_id.
1015 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1016 fields.
1017 (get_selected_frame): Make 'message' parameter optional.
1018 (get_selected_frame_if_set): Delete declaration.
1019 (select_frame): Update comments.
1020 (save_selected_frame, restore_selected_frame)
1021 (lookup_selected_frame): Declare.
1022 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1023 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1024 New field.
1025 (save_infcall_control_state): Use save_selected_frame.
1026 (restore_selected_frame): Delete.
1027 (restore_infcall_control_state): Use restore_selected_frame.
1028 * stack.c (select_frame_command_core, frame_command_core): Use
1029 get_selected_frame.
1030 * thread.c (restore_selected_frame): Rename to ...
1031 (lookup_selected_frame): ... this and make extern. Select the
1032 current frame if the frame level is -1.
1033 (scoped_restore_current_thread::restore): Also restore the
1034 language.
1035 (scoped_restore_current_thread::~scoped_restore_current_thread):
1036 Don't try/catch.
1037 (scoped_restore_current_thread::scoped_restore_current_thread):
1038 Save the language as well. Use save_selected_frame.
1039
58103c33
SM
10402020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1041
1042 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1043 documentation.
1044 * gdbarch.h: Re-generate.
1045
40a53766
SM
10462020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1047
1048 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1049 parameter.
1050 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1051 Likewise.
1052 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1053 Likewise.
1054 * arch-utils.c (default_displaced_step_hw_singlestep):
1055 Likewise.
1056 * arch-utils.h (default_displaced_step_hw_singlestep):
1057 Likewise.
1058 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1059 Likewise.
1060 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1061 Likewise.
1062 * gdbarch.c: Re-generate.
1063 * gdbarch.h: Re-generate.
1064 * infrun.c (resume_1): Adjust.
1065
8407f91b
TT
10662020-10-29 Tom Tromey <tom@tromey.com>
1067
1068 * progspace.c (program_space::~program_space): Don't call
1069 exec_close.
1070
5008b3b2
TT
10712020-10-29 Tom Tromey <tom@tromey.com>
1072
1073 * exec.c (exec_target::close): Don't change current program
1074 space.
1075
d9eebde0
TT
10762020-10-29 Tom Tromey <tom@tromey.com>
1077
1078 * symfile.c (add_symbol_file_command): Update.
1079 * exec.c (program_space::add_target_sections): Rename.
1080 * symfile-mem.c (symbol_file_add_from_memory): Update.
1081 * progspace.h (struct program_space) <add_target_sections>:
1082 Declare new overload.
1083 * exec.h (add_target_sections_of_objfile): Don't declare.
1084
3769e227
TT
10852020-10-29 Tom Tromey <tom@tromey.com>
1086
1087 * solib.c (solib_map_sections): Update.
1088 * exec.c (program_space::add_target_sections): Now a method.
1089 (exec_file_attach): Update.
1090 * exec.h (add_target_sections): Don't declare.
1091 * progspace.h (struct program_space) <add_target_sections>:
1092 Declare.
1093
2a3f84af
TT
10942020-10-29 Tom Tromey <tom@tromey.com>
1095
1096 * progspace.h (struct program_space) <remove_target_sections>:
1097 Declare.
1098 * exec.c (program_space::remove_target_sections): Now a method.
1099 * exec.h (remove_target_sections): Don't declare.
1100
004eecfd
TT
11012020-10-29 Tom Tromey <tom@tromey.com>
1102
1103 * inferior.c (delete_inferior): Update.
1104 * progspace.c (program_space::empty): Rename from
1105 program_space_empty_p. Return bool.
1106 * progspace.h (struct program_space) <empty>: New method.
1107 (program_space_empty_p): Don't declare.
1108
e39fb971
TT
11092020-10-29 Tom Tromey <tom@tromey.com>
1110
1111 * progspace.c (program_space::~program_space): Don't call
1112 clear_program_space_solib_cache.
1113 (program_space::clear_solib_cache): Rename from
1114 clear_solib_cache.
1115 * solib.c (handle_solib_event): Update.
1116 * progspace.h (struct program_space) <clear_solib_cache>: New
1117 method.
1118 (clear_program_space_solib_cache): Don't declare.
1119
a42d7dd8
TT
11202020-10-29 Tom Tromey <tom@tromey.com>
1121
1122 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1123 * target.c (info_target_command): Update.
1124 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1125 (symbol_file_clear, reread_symbols): Update.
1126 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1127 * stabsread.c (scan_file_globals): Update.
1128 * solib.c (update_solib_list): Update.
1129 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1130 (svr4_fetch_objfile_link_map, enable_break)
1131 (svr4_relocate_main_executable)
1132 (svr4_iterate_over_objfiles_in_search_order): Update.
1133 * solib-frv.c (lm_base, enable_break)
1134 (frv_relocate_main_executable): Update.
1135 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1136 (frv_fetch_objfile_link_map): Update.
1137 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1138 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1139 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1140 * remote.c (remote_target::get_offsets): Update.
1141 (remote_target::start_remote)
1142 (extended_remote_target::post_attach): Update.
1143 * objfiles.c (entry_point_address_query): Update.
1144 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1145 * minsyms.c (get_symbol_leading_char): Update.
1146 * frame.c (inside_main_func): Update.
1147 * progspace.h (symfile_objfile): Remove macro.
1148
19f6550e
TT
11492020-10-29 Tom Tromey <tom@tromey.com>
1150
1151 * exec.c (exec_file_attach): Update.
1152 * progspace.c (program_space::exec_close): Update.
1153 * progspace.h (struct program_space) <ebfd>: Now a
1154 gdb_bfd_ref_ptr.
1155 <set_exec_bfd>: Change argument type.
1156 <exec_bfd>: Update.
1157
7e10abd1
TT
11582020-10-29 Tom Tromey <tom@tromey.com>
1159
1160 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1161 * symfile.c (reread_symbols): Update.
1162 * symfile-mem.c (add_symbol_file_from_memory_command)
1163 (add_vsyscall_page): Update.
1164 * source-cache.c (source_cache::get_plain_source_lines): Update.
1165 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1166 (svr4_current_sos_direct, svr4_exec_displacement)
1167 (svr4_relocate_main_executable): Update.
1168 (svr4_iterate_over_objfiles_in_search_order): Update.
1169 * solib-frv.c (enable_break2, enable_break): Update.
1170 * solib-dsbt.c (lm_base, enable_break): Update.
1171 * solib-darwin.c (find_program_interpreter)
1172 (darwin_solib_create_inferior_hook): Update.
1173 * sol-thread.c (rw_common, ps_pdmodel): Update.
1174 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1175 * remote.c (compare_sections_command)
1176 (remote_target::trace_set_readonly_regions): Update.
1177 * remote-sim.c (get_sim_inferior_data)
1178 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1179 (gdbsim_target_open, gdbsim_target::files_info): Update.
1180 * exec.h (exec_bfd): Remove macro.
1181 * progspace.c (initialize_progspace): Update.
1182 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1183 Update.
1184 * nto-procfs.c (nto_procfs_target::post_attach)
1185 (nto_procfs_target::create_inferior): Update.
1186 * maint.c (maintenance_info_sections): Update.
1187 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1188 Update.
1189 * infcmd.c (post_create_inferior): Update.
1190 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1191 (objfile_find_memory_regions): Update.
1192 * exec.c (validate_exec_file, exec_file_attach)
1193 (exec_read_partial_read_only, print_section_info): Update.
1194 * corelow.c (core_target_open): Update.
1195 * corefile.c (reopen_exec_file, validate_files): Update.
1196 * arm-tdep.c (gdb_print_insn_arm): Update.
1197 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1198 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1199 methods.
1200
b55221ab
TT
12012020-10-29 Tom Tromey <tom@tromey.com>
1202
1203 * progspace.h (current_target_sections): Remove macro.
1204 * solib-svr4.c (scan_dyntag): Update.
1205 * solib-dsbt.c (scan_dyntag): Update.
1206 * exec.c (exec_target::close): Update.
1207 (add_target_sections, add_target_sections_of_objfile)
1208 (remove_target_sections, exec_target::get_section_table)
1209 (exec_target::files_info, set_section_command)
1210 (exec_set_section_address, exec_target::has_memory)
1211 (exec_target::has_memory): Update.
1212
5a36e715
TT
12132020-10-29 Tom Tromey <tom@tromey.com>
1214
1215 * source-cache.c (source_cache::get_plain_source_lines): Use
1216 current_program_space.
1217 * corefile.c (reopen_exec_file): Use current_program_space.
1218 * exec.c (exec_file_attach): Use current_program_space.
1219 * exec.h (exec_bfd_mtime): Remove.
1220
784c8592
TT
12212020-10-29 Tom Tromey <tom@tromey.com>
1222
1223 * gcore.c (default_gcore_mach): Remove.
1224 (create_gcore_bfd): Update.
1225
8a4f1402
TT
12262020-10-29 Tom Tromey <tom@tromey.com>
1227
1228 * progspace.c (program_space::exec_close): New method, from
1229 exec_close in exec.c.
1230 * exec.c (exec_close): Move to progspace.c.
1231 (exec_target::close, exec_file_attach): Update.
1232 * progspace.h (struct program_space) <exec_close>: Declare
1233 method.
1234
c20cb686
TT
12352020-10-29 Tom Tromey <tom@tromey.com>
1236
1237 * progspace.h (struct program_space) <exec_filename>: Rename from
1238 pspace_exec_filename. Now a unique_xmalloc_ptr.
1239 * inferior.c (print_selected_inferior): Update.
1240 (print_inferior): Update.
1241 * mi/mi-main.c (print_one_inferior): Update.
1242 * exec.h (exec_filename): Remove macro.
1243 * corefile.c (get_exec_file): Update.
1244 * exec.c (exec_close): Update.
1245 (exec_file_attach): Update.
1246 * progspace.c (clone_program_space): Update.
1247 (print_program_space): Update.
1248
6be2a9ab
TT
12492020-10-29 Tom Tromey <tom@tromey.com>
1250
1251 * target-section.h (struct target_section): Add constructor.
1252 * exec.c (build_section_table, add_target_sections_of_objfile):
1253 Update.
1254 * corelow.c (core_target::build_file_mappings): Update.
1255
cfaa8f76
TBA
12562020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1257
1258 PR gdb/19318
1259 * inferior.c (detach_inferior_command): Restore the current thread.
1260 (kill_inferior_command): Ditto.
1261
1b00ef06
TV
12622020-10-28 Tom de Vries <tdevries@suse.de>
1263
1264 PR symtab/26772
1265 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1266 map, check it in the "best match" loop.
1267
7f40ce1a
SM
12682020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1269
1270 * m32c-tdep.c: Remove unused includes.
1271
5eb9e3f5
SM
12722020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1273
1274 * xtensa-tdep.c: Remove includes.
1275
b1d4d8d1
TBA
12762020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1277
1278 * breakpoint.c (struct condition_command_opts): New struct.
1279 (condition_command_option_defs): New static global.
1280 (make_condition_command_options_def_group): New function.
1281 (condition_completer): Update to consider the '-force' flag.
1282 (condition_command): Use gdb::option for the '-force' flag.
1283
bd24c5d6
TV
12842020-10-27 Tom de Vries <tdevries@suse.de>
1285
1286 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1287 symbols in section check.
1288
61eb46a4
TV
12892020-10-27 Tom de Vries <tdevries@suse.de>
1290
1291 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1292
733d554a
TBA
12932020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1294
1295 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1296 * breakpoint.c: Update the help text of the 'condition' and 'break'
1297 commands.
1298 (set_breakpoint_condition): Take a new bool parameter
1299 to control whether condition definition should be forced even when
1300 the condition expression is invalid in all of the current locations.
1301 (condition_command): Update the call to 'set_breakpoint_condition'.
1302 (find_condition_and_thread): Take the "-force-condition" flag into
1303 account.
1304 * linespec.c (linespec_keywords): Add "-force-condition" as an
1305 element.
1306 (FORCE_KEYWORD_INDEX): New #define.
1307 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1308 as a keyword.
1309 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1310 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1311 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1312 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1313
b5fa468f
TBA
13142020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1315
1316 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1317 * breakpoint.c (set_breakpoint_location_condition): New function.
1318 (set_breakpoint_condition): Disable a breakpoint location if parsing
1319 the condition string gives an error.
1320 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1321 (build_target_condition_list): Ditto.
1322 (build_target_command_list): Ditto.
1323 (build_bpstat_chain): Ditto.
1324 (print_one_breakpoint_location): Ditto.
1325 (print_one_breakpoint): Ditto.
1326 (breakpoint_1): Ditto.
1327 (bp_location::bp_location): Ditto.
1328 (locations_are_equal): Ditto.
1329 (update_breakpoint_locations): Ditto.
1330 (enable_disable_bp_num_loc): Ditto.
1331 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1332 (find_condition_and_thread_for_sals): New static function.
1333 (create_breakpoint): Call find_condition_and_thread_for_sals.
1334 (location_to_sals): Call find_condition_and_thread_for_sals instead
1335 of find_condition_and_thread.
1336
1c47ec3e
TV
13372020-10-26 Tom de Vries <tdevries@suse.de>
1338
1339 * dwarf2/read.c (process_full_comp_unit): Call
1340 dwarf2_find_base_address.
1341
6390859c
TT
13422020-10-26 Tom Tromey <tromey@adacore.com>
1343
1344 * gdbtypes.c (create_range_type): Revert previous patch. Add
1345 comment.
1346
d744f0f9
PA
13472020-10-26 Pedro Alves <pedro@palves.net>
1348
1349 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1350 (my_waitpid): Use gdb::handle_eintr.
1351
006811bc
SM
13522020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1353
1354 * acinclude.m4: Update ptrace.m4 path.
1355 * ptrace.m4: Moved to gdbsupport.
1356
c75e31a1
SM
13572020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1360 instead of target_gdbarch.
1361
32495661
SM
13622020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1363
1364 * jit.c (jit_reader_load_command): Pass current inferior.
1365 (jit_inferior_init): Change parameter type to inferior, use it.
1366 (jit_inferior_created): Remove.
1367 (jit_inferior_created_hook): Pass inferior parameter down.
1368 (_initialize_jit): Use jit_inferior_created_hook instead of
1369 jit_inferior_created.
1370 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1371 * infrun.c (follow_exec): Pass inferior to
1372 jit_inferior_created_hook.
1373
3f66685e
SM
13742020-10-24 Simon Marchi <simon.marchi@efficios.com>
1375
1376 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1377 parameter and use it.
1378 (thread_db_inferior_created): Pass inferior argument.
1379
a0ff652f
SM
13802020-10-24 Simon Marchi <simon.marchi@efficios.com>
1381
1382 * aix-thread.c (aix_thread_inferior_created): Add inferior
1383 parameter.
1384 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1385 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1386 * jit.c (jit_inferior_created): Likewise.
1387 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1388 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1389 * observable.h (inferior_created): Likewise.
1390 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1391 * symfile-mem.c (add_vsyscall_page): Likewise.
1392 * infcmd.c (post_create_inferior): Pass inferior argument.
1393
3c67532c
JB
13942020-10-24 Joel Brobecker <brobecker@adacore.com>
1395
1396 GDB 10.1 released.
1397
8747316e
JB
13982020-10-23 Joel Brobecker <brobecker@adacore.com>
1399
1400 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1401 to ada_check_typedef.
1402
1a0ea399
AB
14032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1404
1405 * f-exp.y (f_parse): Rename to...
1406 (f_language::parser): ...this.
1407 * f-lang.c (f_get_encoding): Rename to...
1408 (f_language::get_encoding): ...this.
1409 (f_op_print_tab): Rename to...
1410 (f_language::op_print_tab): ...this.
1411 (exp_descriptor_f): Rename to...
1412 (f_language::exp_descriptor_tab): ...this.
1413 (class f_language): Moved to f-lang.h.
1414 (f_language::language_arch_info): New function, moved out of class
1415 declaration.
1416 (f_language::search_name_hash): Likewise.
1417 (f_language::lookup_symbol_nonlocal): Likewise.
1418 (f_language::get_symbol_name_matcher_inner): Likewise.
1419 * f-lang.h: Add 'valprint.h' include.
1420 (class f_language): Moved here from f-lang.c.
1421 * f-typeprint.c (f_type_print_args): Delete commented out
1422 declaration.
1423 (f_print_typedef): Rename to...
1424 (f_language::print_typedef): ...this.
1425 (f_print_type): Rename to...
1426 (f_language::print_type): ...this.
1427 (f_type_print_varspec_prefix): Delete declaration and rename to...
1428 (f_language::f_type_print_varspec_prefix): ...this.
1429 (f_type_print_varspec_suffix): Delete declaration and rename to...
1430 (f_language::f_type_print_varspec_suffix): ...this.
1431 (f_type_print_base): Delete declaration and rename to...
1432 (f_language::f_type_print_base): ...this.
1433 * f-valprint.c (f_value_print_inner): Rename to...
1434 (f_language::value_print_inner): ...this.
1435 * parse.c: Delete 'f-lang.h' include.
1436
88cefd9b
AB
14372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1438
1439 * language.h (language_defn::print_type): Add variable names in
1440 declaration, and update header comment.
1441
5399db93
AB
14422020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * ada-lang.c (ada_language::demangle): Rename to...
1445 (ada_language::demangle_symbol): ...this.
1446 * c-lang.c (cplus_language::demangle): Rename to...
1447 (cplus_language::demangle_symbol): ...this.
1448 * d-lang.c (d_language::demangle): Rename to...
1449 (d_language::demangle_symbol): ...this.
1450 * f-lang.c (f_language::demangle): Rename to...
1451 (f_language::demangle_symbol): ...this.
1452 * go-lang.c (go_language::demangle): Rename to...
1453 (go_language::demangle_symbol): ...this.
1454 * language.c (language_demangle): Update call to demangle_symbol.
1455 (auto_or_unknown_language::demangle): Rename to...
1456 (auto_or_unknown_language::demangle_symbol): ...this.
1457 * language.h (language_defn::demangle): Rename to...
1458 (language_defn::demangle_symbol): ...this.
1459 * objc-lang.c (objc_language::demangle): Rename to...
1460 (objc_language::demangle_symbol): ...this.
1461 * rust-lang.c (rust_language::demangle): Rename to...
1462 (rust_language::demangle_symbol): ...this.
1463
4b2f86ef
AB
14642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1465
1466 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1467 (iterate_over_file_blocks): Replace use of macro with the macros
1468 definition.
1469
e74b39de
AB
14702020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1471
1472 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1473 * valprint.c (maybe_print_array_index): Replace use of macro with
1474 the macros definition.
1475
00c696a6
AB
14762020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1477
1478 * ada-lang.c (ada_language::print_array_index): Call value_print
1479 directly.
1480 * language.c (language_defn::print_array_index): Likewise.
1481 * language.h (LA_VALUE_PRINT): Delete.
1482 * valprint.c (value_print): Call value_print on the
1483 current_language directly.
1484
d3b67c56
AB
14852020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 * language.h (LA_PRINT_TYPEDEF): Delete.
1488 * typeprint.c (typedef_print): Call print_typedef directly on the
1489 current_language object.
1490
790e2a12
AB
14912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1492
1493 * m2-exp.y (m2_parse): Rename to...
1494 (m2_language::parser): ...this. Update function signature.
1495 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1496 (m2_op_print): Rename to...
1497 (m2_language::op_print_tab): ...this, and make const.
1498 (exp_descriptor_modula2): Rename to...
1499 (m2_language::exp_descriptor_modula2): ...this.
1500 (class m2_language): Move to m2-lang.h.
1501 (m2_language::language_arch_info): New function, moved out of
1502 class declaration.
1503 (m2_language::printchar): New function, body from m2_printchar.
1504 (m2_language::printstr): New function, moved out of class
1505 declaration.
1506 (m2_language::emitchar): Likewise.
1507 * m2-lang.h (m2_parse): Delete declaration.
1508 (m2_print_typedef): Delete declaration.
1509 (m2_value_print_inner): Delete declaration.
1510 (class m2_language): Class declaration moved from m2-lang.c,
1511 larger functions are left in m2-lang.c.
1512 * m2-typeprint.c (m2_print_typedef): Rename to...
1513 (m2_language::print_typedef): ...this, and update function
1514 signature.
1515 * m2-valprint.c (m2_value_print_inner): Rename to...
1516 (m2_language::value_print_inner): ...this, replace use of
1517 LA_PRINT_STRING with a direct call to printstr member function,
1518 and update recursive call.
1519
b01175fc
AB
15202020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1521
1522 * language.c (default_is_string_type_p): Delete, implementation
1523 moved into auto_or_unknown_language::is_string_type_p.
1524 (unk_op_print_tab): Moved into
1525 auto_or_unknown_language::opcode_print_table.
1526 (unknown_language_arch_info): Delete, implementation moved into
1527 auto_or_unknown_language::language_arch_info.
1528 (class auto_or_unknown_language): New class, member functions
1529 copied from unknown_language class, with some updates.
1530 (class unknown_language): Most member functions moved into
1531 auto_or_unknown_language class. Inherit from
1532 auto_or_unknown_language class.
1533 (class auto_language): Inherit from auto_or_unknown_language.
1534 Delete most member functions.
1535
1a97fe8c
HD
15362020-10-22 Hannes Domani <ssbssa@yahoo.de>
1537
1538 * stabsread.c (read_member_functions): Remove gdb_assert.
1539
6b9d0dfd
HD
15402020-10-22 Hannes Domani <ssbssa@yahoo.de>
1541
1542 * gdbtypes.c (init_complex_type): Check target type name.
1543
4b4bb603
SM
15442020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1545
1546 * target-debug.h (target_debug_print_struct_target_ops_p):
1547 Remove.
1548 (target_debug_print_async_callback_ftype_p): Remove.
1549 (target_debug_print_struct_trace_state_variable_p): Remove.
1550 (target_debug_print_struct_traceframe_info_p): Remove.
1551 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1552 (target_debug_print_enum_btrace_format): Remove.
1553 (target_debug_print_enum_info_proc_what): Remove.
1554 (target_debug_print_thread_info_pp): Remove.
1555
24f5300a
SM
15562020-10-22 Simon Marchi <simon.marchi@efficios.com>
1557
1558 * target.h (struct target_ops) <make_corefile_notes>:
1559 Change return type to unique pointer.
1560 * target.c (dummy_make_corefile_notes): Likewise.
1561 * exec.c (struct exec_target) <make_corefile_notes>:
1562 Likewise.
1563 (exec_target::make_corefile_notes): Likewise.
1564 * procfs.c (class procfs_target) <make_corefile_notes>:
1565 Likewise.
1566 (procfs_do_thread_registers): Adjust to unique pointer.
1567 (struct procfs_corefile_thread_data): Add constructor.
1568 <note_data>: Change type to unique pointer.
1569 (procfs_corefile_thread_callback): Adjust to unique pointer.
1570 (procfs_target::make_corefile_notes): Change return type to
1571 unique pointer.
1572 * target-delegates.c: Re-generate.
1573 * gcore.c (write_gcore_file_1): Adjust.
1574 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1575 New.
1576
5fb4027f
TV
15772020-10-22 Tom de Vries <tdevries@suse.de>
1578
1579 * block.c (find_block_in_blockvector): Make sure the returned block
1580 contains pc.
1581
4a636814
SM
15822020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1583
1584 PR gdb/26693
1585 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1586 parameter.
1587 (load_cu): Pass existing CU.
1588 (process_imported_unit_die): Likewise.
1589 (follow_die_offset): Likewise.
1590
1bd57575
LM
15912020-10-22 Luis Machado <luis.machado@linaro.org>
1592
1593 * corelow.c (core_target::xfer_partial): Also check for an empty
1594 m_core_unavailable_mappings vector.
1595
6b4c676c
AB
15962020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1597
1598 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1599 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1600 * f-exp.y (arglist): Allow for a series of subranges.
1601 (subrange): Add cases for subranges with strides.
1602 * f-lang.c (value_f90_subarray): Catch use of array strides and
1603 throw an error.
1604 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1605
f2d8e4c5
AB
16062020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1607
1608 * expprint.c (print_subexp_standard): Change enum range_type to
1609 range_flag and rename variables to match.
1610 (dump_subexp_body_standard): Likewise.
1611 * expression.h (enum range_type): Rename to...
1612 (enum range_flag): ...this.
1613 (range_types): Rename to...
1614 (range_flags): ...this.
1615 * f-lang.c (value_f90_subarray): Change enum range_type to
1616 range_flag and rename variables to match.
1617 * parse.c (operator_length_standard): Likewise.
1618 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1619 range_type to range_flag.
1620 * rust-lang.c (rust_evaluate_funcall): Likewise.
1621 (rust_range): Likewise.
1622 (rust_compute_range): Likewise.
1623 (rust_subscript): Likewise.
1624
2f1b18db
AB
16252020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1626
1627 * expprint.c (print_subexp_standard): Update to reflect changes to
1628 enum range_type.
1629 (dump_subexp_body_standard): Likewise.
1630 * expression.h (enum range_type): Convert to a bit field enum, and
1631 make the enum unsigned.
1632 * f-exp.y (subrange): Update to reflect changes to enum
1633 range_type.
1634 * f-lang.c (value_f90_subarray): Likewise.
1635 * parse.c (operator_length_standard): Likewise.
1636 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1637 * rust-lang.c (rust_range): Likewise.
1638 (rust_compute_range): Likewise.
1639 (rust_subscript): Likewise.
1640
a46d1843
SM
16412020-10-21 Simon Marchi <simon.marchi@efficios.com>
1642
1643 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1644 (displaced_step_in_progress): Fix comment.
1645
c21f37a8
SM
16462020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1647
1648 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1649 * gdbarch.c: Re-generate.
1650 * gdbarch.h: Re-generate.
1651 * gcore.c (write_gcore_file_1): Adjust.
1652 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1653 constructor.
1654 <note_data>: Change type to unique pointer.
1655 <abort_iteration>: Change type to bool.
1656 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1657 (fbsd_collect_thread_registers): Return void, adjust.
1658 (struct fbsd_corefile_thread_data): Add construtor.
1659 <note_data>: Change type to unique pointer.
1660 (fbsd_corefile_thread): Adjust.
1661 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1662 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1663 to unique pointer, adjust.
1664 (struct linux_collect_regset_section_cb_data): Add constructor.
1665 <note_data>: Change type to unique pointer.
1666 <abort_iteration>: Change type to bool.
1667 (linux_collect_thread_registers): Return void, adjust.
1668 (struct linux_corefile_thread_data): Add constructor.
1669 <note_data>: Change type to unique pointer.
1670 (linux_corefile_thread): Adjust.
1671 (linux_make_corefile_notes): Return unique pointer, adjust.
1672
07fbbd01
SM
16732020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1674
1675 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1676 * gdbarch.c: Re-generate.
1677 * gdbarch.h: Re-generate.
1678 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1679 bool.
1680 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1681 Likewise.
1682 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1683 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1684 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1685 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1686
39535193
SM
16872020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1688
1689 * gdbarch.sh: Make generated predicates return bool.
1690 * gdbarch.c: Re-generate.
1691 * gdbarch.h: Re-generate.
1692
ad523d01
TT
16932020-10-20 Tom Tromey <tom@tromey.com>
1694
1695 * varobj-iter.h (struct varobj_item): Remove typedef.
1696
c4464ade
SM
16972020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1698
1699 * infrun.c (currently_stepping): Change int to bool
1700 (maybe_software_singlestep): Likewise.
1701 (show_stop_on_solib_events): Likewise.
1702 (stepping_past_nonsteppable_watchpoint): Likewise.
1703 (displaced_step_in_progress_any_inferior): Likewise.
1704 (displaced_step_in_progress_thread): Likewise.
1705 (keep_going_stepped_thread): Likewise.
1706 (thread_still_needs_step_over): Likewise.
1707 (start_step_over): Likewise.
1708 (do_target_resume): Likewise.
1709 (resume_1): Likewise.
1710 (clear_proceed_status): Likewise.
1711 (thread_still_needs_step_over_bp): Likewise.
1712 (proceed): Likewise.
1713 (switch_back_to_stepped_thread): Likewise.
1714 (adjust_pc_after_break): Likewise.
1715 (stepped_in_from): Likewise.
1716 (handle_stop_requested): Likewise.
1717 (handle_syscall_event): Likewise.
1718 (handle_no_resumed): Likewise.
1719 (handle_inferior_event): Likewise.
1720 (finish_step_over): Likewise.
1721 (handle_signal_stop): Likewise.
1722 (process_event_stop_test): Likewise.
1723
2eb20436
SM
17242020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1725
1726 * infrun.c (get_displaced_stepping_state): Fix comment.
1727
e0c45ded
AS
17282020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1729
1730 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1731
22cc388e
TT
17322020-10-19 Tom Tromey <tromey@adacore.com>
1733
1734 PR tui/26719
1735 * tui/tui-winsource.h (struct tui_source_window_base)
1736 <refresh_window>: Rename from refresh_pad.
1737 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1738 Rename from refresh_pad.
1739 (tui_source_window_base::show_source_content)
1740 (tui_source_window_base::do_scroll_horizontal): Update.
1741
3c6eb4d4
TBA
17422020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1743
1744 * thread.c (_initialize_thread): Fine-tune the help text of
1745 'info threads'.
1746
26703721
TBA
17472020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1748
1749 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1750
61c26be8
MS
17512020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1752
1753 * breakpoint.c (handle_jit_event): Add an argument, change how
1754 `jit_event_handler` is called.
1755
932539d7
TT
17562020-10-17 Tom Tromey <tom@tromey.com>
1757
1758 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1759 (scan_xcoff_symtab): Update.
1760 * psymtab.h (class psymtab_storage) <global_psymbols,
1761 static_psymbols, current_global_psymbols,
1762 current_static_psymbols>: Remove.
1763 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1764 (match_partial_symbol, lookup_partial_symbol): Update.
1765 (print_partial_symbols): Change parameters.
1766 (dump_psymtab, recursively_search_psymtabs)
1767 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1768 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1769 (concat): Remove.
1770 (end_psymtab_common): Simplify.
1771 (append_psymbol_to_list): Change parameters.
1772 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1773 (init_psymbol_list): Simplify.
1774 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1775 * psympriv.h (struct partial_symtab) <empty>: New method.
1776 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1777 Remove.
1778 <global_psymbols, static_psymbols>: New members.
1779 <add_psymbol>: New methods.
1780 (add_psymbol_to_list): Don't declare.
1781 (psymbol_placement): Move earlier.
1782 * mdebugread.c (parse_partial_symbols): Update.
1783 (handle_psymbol_enumerators): Change parameters.
1784 (mdebug_expand_psymtab): Update.
1785 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1786 (add_partial_symbol): Update.
1787 * dwarf2/index-write.c (write_psymbols): Change parameters.
1788 (write_one_signatured_type): Update.
1789 (recursively_count_psymbols): Update.
1790 (recursively_write_psymbols): Update.
1791 (class debug_names) <recursively_write_psymbols>: Update.
1792 <write_psymbols>: Change parameters.
1793 <write_one_signatured_type>: Update.
1794 * dbxread.c (read_dbx_symtab): Update.
1795 (dbx_end_psymtab): Use partial_symtab::empty.
1796 * ctfread.c (struct ctf_context) <pst>: New member.
1797 (create_partial_symtab): Set it.
1798 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1799 (scan_partial_symbols): Use the psymtab's context. Update.
1800
cfabbd35
TT
18012020-10-17 Tom Tromey <tom@tromey.com>
1802
1803 * valprint.c (generic_value_print): Remove comment.
1804 * m2-valprint.c (m2_value_print_inner): Remove comment.
1805 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1806 type.
1807
520596f2
TV
18082020-10-17 Tom de Vries <tdevries@suse.de>
1809
1810 PR symtab/26317
1811 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1812 symbol main.
1813
76547ab3
TV
18142020-10-14 Tom de Vries <tdevries@suse.de>
1815
1816 PR gdb/26733
1817 * solib.c (solib_contains_address_p): Handle
1818 'solib->sections == nullptr'.
1819
d3a07122
SM
18202020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1821
1822 PR gdb/26642
1823 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1824 target can't do async.
1825 * target.c (target_wait): Assert that we don't pass
1826 TARGET_WNOHANG to a target that can't async.
1827
1b71cfcf
KR
18282020-10-13 Kamil Rytarowski <n54@gmx.com>
1829
1830 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1831 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1832 * alpha-bsd-nat.c: Adjust include.
1833 * alpha-bsd-tdep.h: Adjust comment.
1834 * alpha-nbsd-tdep.c: Rename to ...
1835 * alpha-netbsd-tdep.c: ... this, adjust include.
1836 * amd64-nbsd-nat.c: Rename to ...
1837 * amd64-netbsd-nat.c: ... this, adjust include.
1838 * amd64-nbsd-tdep.c: Rename to ...
1839 * amd64-netbsd-tdep.c: ... this, adjust include.
1840 * amd64-tdep.h: Adjust include.
1841 * arm-nbsd-nat.c: Rename to ...
1842 * arm-netbsd-nat.c: ... this, adjust include.
1843 * arm-nbsd-tdep.c: Rename to ...
1844 * arm-netbsd-tdep.c: ... this, adjust include.
1845 * arm-nbsd-tdep.h: Rename to ...
1846 * arm-netbsd-tdep.h: ... this, adjust include.
1847 * configure.nat: Adjust file lists.
1848 * configure.tgt: Likewise.
1849 * hppa-nbsd-nat.c: Rename to ...
1850 * hppa-netbsd-nat.c: ... this, adjust include.
1851 * hppa-nbsd-tdep.c: Rename to ...
1852 * hppa-netbsd-tdep.c: ... this, adjust include.
1853 * i386-nbsd-nat.c: Rename to ...
1854 * i386-netbsd-nat.c: ... this, adjust include.
1855 * i386-nbsd-tdep.c: Rename to ...
1856 * i386-netbsd-tdep.c: ... this, adjust include.
1857 * m68k-bsd-nat.c: Adjust include.
1858 * mips-nbsd-nat.c: Rename to ...
1859 * mips-netbsd-nat.c: ... this, adjust include.
1860 * mips-nbsd-tdep.c: Rename to ...
1861 * mips-netbsd-tdep.c: ... this, adjust include.
1862 * mips-nbsd-tdep.h: Rename to ...
1863 * mips-netbsd-tdep.h: ... this.
1864 * nbsd-nat.c: Rename to ...
1865 * netbsd-nat.c: ... this, adjust include.
1866 * nbsd-nat.h: Rename to ...
1867 * netbsd-nat.h: ... this, adjust include.
1868 * nbsd-tdep.c: Rename to ...
1869 * netbsd-tdep.c: ... this, adjust include.
1870 * nbsd-tdep.h: Rename to ...
1871 * netbsd-tdep.h: ... this.
1872 * ppc-nbsd-nat.c: Rename to ...
1873 * ppc-netbsd-nat.c: ... this, adjust include.
1874 * ppc-nbsd-tdep.c: Rename to ...
1875 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1876 * ppc-nbsd-tdep.h: Rename to ...
1877 * ppc-netbsd-tdep.h: ... this.
1878 * sh-nbsd-nat.c: Rename to ...
1879 * sh-netbsd-nat.c: ... this, adjust include.
1880 * sh-nbsd-tdep.c: Rename to ...
1881 * sh-netbsd-tdep.c: ... this, adjust include.
1882 * sparc-nbsd-nat.c: Rename to ...
1883 * sparc-netbsd-nat.c: ... this.
1884 * sparc-nbsd-tdep.c: Rename to ...
1885 * sparc-netbsd-tdep.c: ... this, adjust include.
1886 * sparc64-nbsd-nat.c: Rename to ...
1887 * sparc64-netbsd-nat.c: ... this.
1888 * sparc64-nbsd-tdep.c: Rename to ...
1889 * sparc64-netbsd-tdep.c: ... this, adjust include.
1890 * sparc64-tdep.h: Adjust comment.
1891 * vax-bsd-nat.c: Adjust include.
1892 * vax-nbsd-tdep.c: Rename to ...
1893 * vax-netbsd-tdep.c: ... this, adjust include.
1894
d7a78e5c
TT
18952020-10-12 Tom Tromey <tom@tromey.com>
1896
1897 * target.h (struct target_ops) <get_section_table>: Update.
1898 (target_get_section_table): Update.
1899 * target.c (target_get_section_table, target_section_by_addr)
1900 (memory_xfer_partial_1): Update.
1901 * target-section.h (target_section_table): Now an alias.
1902 * target-delegates.c: Rebuild.
1903 * target-debug.h (target_debug_print_target_section_table_p):
1904 Rename from target_debug_print_struct_target_section_table_p.
1905 * symfile.c (build_section_addr_info_from_section_table): Update.
1906 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1907 * solib-svr4.c (scan_dyntag): Update.
1908 * solib-dsbt.c (scan_dyntag): Update.
1909 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1910 Update.
1911 * record-full.c (record_full_core_target::xfer_partial): Update.
1912 * progspace.h (struct program_space) <target_sections>: Update.
1913 * exec.h (print_section_info): Update.
1914 * exec.c (exec_target::close, build_section_table)
1915 (add_target_sections, add_target_sections_of_objfile)
1916 (remove_target_sections, exec_on_vfork)
1917 (section_table_available_memory)
1918 (section_table_xfer_memory_partial)
1919 (exec_target::get_section_table, exec_target::xfer_partial)
1920 (print_section_info, set_section_command)
1921 (exec_set_section_address, exec_target::has_memory): Update.
1922 * corelow.c (core_target::build_file_mappings)
1923 (core_target::xfer_partial, core_target::info_proc_mappings)
1924 (core_target::info_proc_mappings): Update.
1925 * bfd-target.c (class target_bfd): Update
1926
eda214ce
TT
19272020-10-12 Tom Tromey <tom@tromey.com>
1928
1929 * progspace.c (program_space::~program_space): Don't call
1930 clear_section_table.
1931 * exec.h (clear_section_table): Don't declare.
1932 * exec.c (exec_target::close): Update.
1933 (clear_section_table): Remove.
1934
91840ee3
TT
19352020-10-12 Tom Tromey <tom@tromey.com>
1936
1937 * exec.c (add_target_sections_of_objfile): Simplify.
1938
2d128614
TT
19392020-10-12 Tom Tromey <tom@tromey.com>
1940
1941 * solib.c (solib_map_sections): Update.
1942 * record-full.c (record_full_core_open_1): Update.
1943 * exec.h (build_section_table): Return a target_section_table.
1944 * exec.c (exec_file_attach): Update.
1945 (build_section_table): Return a target_section_table.
1946 * corelow.c (core_target::core_target): Update.
1947 * bfd-target.c (target_bfd::target_bfd): Update.
1948
bb2a6777
TT
19492020-10-12 Tom Tromey <tom@tromey.com>
1950
1951 * target.c (target_section_by_addr, memory_xfer_partial_1):
1952 Update.
1953 * target-section.h (struct target_section_table): Use
1954 std::vector.
1955 * symfile.h (build_section_addr_info_from_section_table): Take a
1956 target_section_table.
1957 * symfile.c (build_section_addr_info_from_section_table): Take a
1958 target_section_table.
1959 * solist.h (struct so_list) <sections>: Change type.
1960 <sections_end>: Remove.
1961 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1962 (solib_contains_address_p): Update.
1963 * solib-svr4.c (scan_dyntag): Update.
1964 * solib-dsbt.c (scan_dyntag): Update.
1965 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1966 Update.
1967 * record-full.c (record_full_core_start, record_full_core_end):
1968 Remove.
1969 (record_full_core_sections): New global.
1970 (record_full_core_open_1, record_full_core_target::xfer_partial):
1971 Update.
1972 * exec.h (build_section_table, section_table_xfer_memory_partial)
1973 (add_target_sections): Take a target_section_table.
1974 * exec.c (exec_file_attach, clear_section_table): Update.
1975 (resize_section_table): Remove.
1976 (build_section_table, add_target_sections): Take a
1977 target_section_table.
1978 (add_target_sections_of_objfile, remove_target_sections)
1979 (exec_on_vfork): Update.
1980 (section_table_available_memory): Take a target_section_table.
1981 (section_table_read_available_memory): Update.
1982 (section_table_xfer_memory_partial): Take a target_section_table.
1983 (print_section_info, set_section_command)
1984 (exec_set_section_address, exec_target::has_memory): Update.
1985 * corelow.c (class core_target) <m_core_section_table,
1986 m_core_file_mappings>: Remove braces.
1987 <~core_target>: Remove.
1988 (core_target::core_target): Update.
1989 (core_target::~core_target): Remove.
1990 (core_target::build_file_mappings)
1991 (core_target::xfer_memory_via_mappings)
1992 (core_target::xfer_partial, core_target::info_proc_mappings):
1993 Update.
1994 * bfd-target.c (target_bfd::xfer_partial): Update.
1995 (target_bfd::target_bfd): Update.
1996 (target_bfd::~target_bfd): Remove.
1997
7b466b10
TT
19982020-10-12 Tom Tromey <tom@tromey.com>
1999
2000 * target.h (struct target_section, struct target_section_table):
2001 Move to target-section.h.
2002 * target-section.h: New file.
2003
87a37e5e
PA
20042020-10-12 Pedro Alves <pedro@palves.net>
2005
2006 PR exp/26602
2007 * valops.c (struct struct_field_searcher): New.
2008 (update_search_result): Rename to ...
2009 (struct_field_searcher::update_result): ... this. Simplify
2010 prototype. Record all found fields.
2011 (do_search_struct_field): Rename to ...
2012 (struct_field_searcher::search): ... this. Simplify prototype.
2013 Maintain stack of visited baseclass path. Call update_result for
2014 fields too. Keep searching fields in baseclasses instead of
2015 stopping at the first found field.
2016 (search_struct_field): Use struct_field_searcher. When looking
2017 for fields, report ambiguous access attempts.
2018
9370fd51
AB
20192020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2020
2021 * frame.c (inside_main_func): Check full symbols as well as
2022 minimal symbols.
2023
59c8a30b
JB
20242020-10-09 Joel Brobecker <brobecker@adacore.com>
2025
2026 * ada-lang.c (advance_wild_match): Rewrite the function's
2027 description. Change the type of target0, t0 and t1 to char.
2028
7c184d33
TT
20292020-10-09 Tom Tromey <tromey@adacore.com>
2030
2031 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2032
5c4258f4
TT
20332020-10-09 Tom Tromey <tromey@adacore.com>
2034
2035 * ada-lang.h (ada_encode): Return std::string.
2036 * ada-lang.c (ada_encode_1): Return std::string.
2037 (ada_encode): Likewise.
2038 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2039 Update.
2040 * ada-exp.y (block_lookup, write_var_or_type): Update.
2041
3d87245c
HD
20422020-10-09 Hannes Domani <ssbssa@yahoo.de>
2043
2044 PR exp/26714
2045 * printcmd.c (print_formatted): Handle void results as
2046 unformatted prints.
2047
bbb826f5
AB
20482020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2049
2050 * arch/aarch32.c (aarch32_create_target_description): Release the
2051 target_desc_up as late as possible.
2052 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2053 * arch/amd64.c (amd64_create_target_description): Likewise.
2054 * arch/arc.c (arc_create_target_description): Return a
2055 target_desc_up, don't release it.
2056 * arch/arc.h (arc_create_target_description): Update declaration.
2057 (arc_lookup_target_description): Move target_desc_up into the
2058 cache, and return a borrowed pointer.
2059 * arch/arm.c (arm_create_target_description): Release the
2060 target_desc_up as late as possible.
2061 * arch/i386.c (i386_create_target_description): Likewise.
2062 * arch/riscv.h (riscv_create_target_description): Update
2063 declaration to match definition.
2064 * arch/tic6x.c (tic6x_create_target_description): Release the
2065 target_desc_up as late as possible.
2066
361cb219
AB
20672020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2070 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2071
f5c4b229
JV
20722020-10-09 Jan Vrany <jan.vrany@labware.com>
2073
2074 * source.c (directory_command): Notify observers that "directories"
2075 parameter has changed.
2076
b2701685
TT
20772020-10-08 Tom Tromey <tom@tromey.com>
2078
2079 * cli/cli-cmds.c (print_disassembly): Style function name and
2080 addresses. Add _() wrappers.
2081
ada508b6
SV
20822020-10-08 Shahab Vahedi <shahab@synopsys.com>
2083
2084 * NEWS: Mention ARC support in GDBserver.
2085
51a948fd
AB
20862020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2087
2088 * arch/aarch32.c (aarch32_create_target_description): Release
2089 unique_ptr returned from allocate_target_description.
2090 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2091 * arch/amd64.c (amd64_create_target_description): Likewise.
2092 * arch/arc.c (arc_create_target_description): Likewise.
2093 * arch/arm.c (arm_create_target_description): Likewise.
2094 * arch/i386.c (i386_create_target_description): Likewise.
2095 * arch/riscv.c (riscv_create_target_description): Update return
2096 type. Handle allocate_target_description returning a unique_ptr.
2097 (riscv_lookup_target_description): Update to handle unique_ptr.
2098 * arch/tic6x.c (tic6x_create_target_description): Release
2099 unique_ptr returned from allocate_target_description.
2100 * features/microblaze-with-stack-protect.c: Regenerate.
2101 * features/microblaze.c: Regenerate.
2102 * features/mips-dsp-linux.c: Regenerate.
2103 * features/mips-linux.c: Regenerate.
2104 * features/mips64-dsp-linux.c: Regenerate.
2105 * features/mips64-linux.c: Regenerate.
2106 * features/nds32.c: Regenerate.
2107 * features/nios2.c: Regenerate.
2108 * features/or1k.c: Regenerate.
2109 * features/rs6000/powerpc-32.c: Regenerate.
2110 * features/rs6000/powerpc-32l.c: Regenerate.
2111 * features/rs6000/powerpc-403.c: Regenerate.
2112 * features/rs6000/powerpc-403gc.c: Regenerate.
2113 * features/rs6000/powerpc-405.c: Regenerate.
2114 * features/rs6000/powerpc-505.c: Regenerate.
2115 * features/rs6000/powerpc-601.c: Regenerate.
2116 * features/rs6000/powerpc-602.c: Regenerate.
2117 * features/rs6000/powerpc-603.c: Regenerate.
2118 * features/rs6000/powerpc-604.c: Regenerate.
2119 * features/rs6000/powerpc-64.c: Regenerate.
2120 * features/rs6000/powerpc-64l.c: Regenerate.
2121 * features/rs6000/powerpc-7400.c: Regenerate.
2122 * features/rs6000/powerpc-750.c: Regenerate.
2123 * features/rs6000/powerpc-860.c: Regenerate.
2124 * features/rs6000/powerpc-altivec32.c: Regenerate.
2125 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2126 * features/rs6000/powerpc-altivec64.c: Regenerate.
2127 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2128 * features/rs6000/powerpc-e500.c: Regenerate.
2129 * features/rs6000/powerpc-e500l.c: Regenerate.
2130 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2131 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2132 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2133 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2134 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2135 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2136 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2137 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2138 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2139 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2140 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2141 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2142 * features/rs6000/powerpc-vsx32.c: Regenerate.
2143 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2144 * features/rs6000/powerpc-vsx64.c: Regenerate.
2145 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2146 * features/rs6000/rs6000.c: Regenerate.
2147 * features/rx.c: Regenerate.
2148 * features/s390-gs-linux64.c: Regenerate.
2149 * features/s390-linux32.c: Regenerate.
2150 * features/s390-linux32v1.c: Regenerate.
2151 * features/s390-linux32v2.c: Regenerate.
2152 * features/s390-linux64.c: Regenerate.
2153 * features/s390-linux64v1.c: Regenerate.
2154 * features/s390-linux64v2.c: Regenerate.
2155 * features/s390-te-linux64.c: Regenerate.
2156 * features/s390-tevx-linux64.c: Regenerate.
2157 * features/s390-vx-linux64.c: Regenerate.
2158 * features/s390x-gs-linux64.c: Regenerate.
2159 * features/s390x-linux64.c: Regenerate.
2160 * features/s390x-linux64v1.c: Regenerate.
2161 * features/s390x-linux64v2.c: Regenerate.
2162 * features/s390x-te-linux64.c: Regenerate.
2163 * features/s390x-tevx-linux64.c: Regenerate.
2164 * features/s390x-vx-linux64.c: Regenerate.
2165 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2166 from allocate_target_description.
2167 * target-descriptions.c (allocate_target_description): Update
2168 return type.
2169 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2170 allocate_target_description.
2171
485c47e5
TT
21722020-10-07 Tom Tromey <tromey@adacore.com>
2173
2174 * unittests/search-memory-selftests.c: New file.
2175 * Makefile.in (SELFTESTS_SRCS): Add
2176 unittests/search-memory-selftests.c.
2177
3a135a91
TT
21782020-10-07 Tom Tromey <tromey@adacore.com>
2179
2180 PR gdb/16930:
2181 * findcmd.c (_initialize_mem_search): Mention that the range is
2182 inclusive.
2183
4a72de73
TT
21842020-10-07 Tom Tromey <tromey@adacore.com>
2185
2186 * target.h (simple_search_memory): Don't declare.
2187 * target.c (simple_search_memory): Move to gdbsupport.
2188 (default_search_memory): Update.
2189 * remote.c (remote_target::search_memory): Update.
2190
a038ffd8
SM
21912020-10-07 Simon Marchi <simon.marchi@efficios.com>
2192
2193 * Makefile.in (COMPILE): Add CXXFLAGS.
2194 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2195 (check-headers): Add CXXFLAGS.
2196
cc463201
AK
21972020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2198
2199 * arc-linux-tdep.h: New file.
2200 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2201 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2202 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2203 arc_linux_gregset, arc_linux_v2_regset,
2204 arc_linux_iterate_over_regset_sections,
2205 arc_linux_core_read_description): Implement.
2206 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2207 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2208 (arc_gdbarch_features_create): Add.
2209 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2210
e4bd363f
SV
22112020-10-07 Shahab Vahedi <shahab@synopsys.com>
2212
2213 * arch/arc.h: Rename "arc_gdbarch_features" to
2214 "arc_arch_features".
2215 * arc-tdep.h: Likewise.
2216 * arc-tdep.c: Likewise.
2217
b68bef99
TBA
22182020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2219
2220 * infcmd.c (attach_command): Remove the redundant call to
2221 `clear_proceed_status`.
2222
4641551a
KR
22232020-10-07 Kamil Rytarowski <n54@gmx.com>
2224
2225 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2226
91e5e8db
KR
22272020-10-07 Kamil Rytarowski <n54@gmx.com>
2228
2229 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2230 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2231 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2232
64c03bdb
SM
22332020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2234
2235 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2236 (_initialize_break_catch_sig): Don't allocate array.
2237
31a8f60f
AB
22382020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2239
2240 * symtab.c (find_pc_line): Return unmapped addresses when the
2241 requested address is also unmapped.
2242
9e6dbd8b
SM
22432020-10-05 Simon Marchi <simon.marchi@efficios.com>
2244
2245 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2246 tui/tui-out.h.
2247
a1d217e8
SM
22482020-10-05 Simon Marchi <simon.marchi@efficios.com>
2249
2250 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2251 type::is_vector instead of TYPE_VECTOR.
2252
7d144117
SM
22532020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2254
2255 * auto-load.c (auto_load_objfile_script_1): Don't use
2256 debugfile_holder as temporary variable when stripping drive
2257 letter.
2258
cd096ec8
HD
22592020-10-05 Hannes Domani <ssbssa@yahoo.de>
2260
2261 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2262 Add TYPE_CODE_COMPLEX.
2263 (amd64_windows_return_value): Fix types returned via XMM0.
2264
b58e7f72
AH
22652020-10-05 Alan Hayward <alan.hayward@arm.com>
2266
2267 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2268 AArch64/ARM maintainers.
2269
8d378f27
SM
22702020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2271
2272 * NEWS: Mention set/show debug event-loop.
2273
d5519913
TT
22742020-10-02 Tom Tromey <tromey@adacore.com>
2275
2276 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2277 REG_EXTENDED.
2278
18b67edc
SM
22792020-10-02 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2282 * procfs.c (procfs_inferior_created): Remove.
2283 (_initialize_procfs): Don't register procfs_inferior_created.
2284
6b01403b
SM
22852020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2286
2287 * async-event.c (invoke_async_signal_handlers): Add debug
2288 print.
2289 (check_async_event_handlers): Likewise.
2290 * event-top.c (show_debug_event_loop): New function.
2291 (_initialize_event_top): Register "set debug event-loop"
2292 setting.
2293
ba988419
SM
22942020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2295
2296 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2297 * debug.h: Remove.
2298 * infrun.c: Include gdbsupport/common-debug.h.
2299 * linux-nat.c: Likewise.
2300
db20ebdf
SM
23012020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2302
2303 * async-event.h (create_async_signal_handler): Add name
2304 parameter.
2305 (create_async_event_handler): Likewise.
2306 * async-event.c (struct async_signal_handler) <name>: New field.
2307 (struct async_event_handler) <name>: New field.
2308 (create_async_signal_handler): Assign name.
2309 (create_async_event_handler): Assign name.
2310 * event-top.c (async_init_signals): Pass name when creating
2311 handler.
2312 * infrun.c (_initialize_infrun): Likewise.
2313 * record-btrace.c (record_btrace_push_target): Likewise.
2314 * record-full.c (record_full_open): Likewise.
2315 * remote-notif.c (remote_notif_state_allocate): Likewise.
2316 * remote.c (remote_target::open_1): Likewise.
2317 * tui/tui-win.c (tui_initialize_win): Likewise.
2318
2554f6f5
SM
23192020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2320
2321 * async-event.c (initialize_async_signal_handlers): Pass name to
2322 add_file_handler
2323 * event-top.c (ui_register_input_event_handler): Likewise.
2324 * linux-nat.c (linux_nat_target::async): Likewise.
2325 * run-on-main-thread.c (_initialize_run_on_main_thread):
2326 Likewise
2327 * ser-base.c (reschedule): Likewise.
2328 (ser_base_async): Likewise.
2329 * tui/tui-io.c: Likewise.
2330 * top.h (struct ui) <num>: New field.
2331 * top.c (highest_ui_num): New variable.
2332 (ui::ui): Initialize num.
2333
a7aba266
SM
23342020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2335
2336 * observable.h <inferior_created>: Remove parameters. Update all
2337 listeners.
2338 * inferior.h (post_create_inferior): Remove target parameter.
2339 Update all callers.
2340
048fde1e 23412020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2342
2343 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2344 and DW_MACRO_undef_strx.
2345 (dwarf_decode_macros): Likewise
2346 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2347 which is the value of DW_AT_str_offsets_base.
2348 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2349 str_offsets_base.
2350
064280be
KR
23512020-10-01 Kamil Rytarowski <n54@gmx.com>
2352
2353 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2354
6ff33035
KR
23552020-10-01 Kamil Rytarowski <n54@gmx.com>
2356
2357 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2358 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2359
1eb6eb79
KR
23602020-10-01 Kamil Rytarowski <n54@gmx.com>
2361
2362 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2363
95eb9e54
TV
23642020-09-30 Tom de Vries <tdevries@suse.de>
2365
2366 PR symtab/26683
2367 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2368
cae21f8e
TT
23692020-09-30 Tom Tromey <tromey@adacore.com>
2370
2371 * dwarf2/read.c (handle_variant): Use constant_value.
2372
529908cb
TT
23732020-09-29 Tom Tromey <tom@tromey.com>
2374
2375 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2376 (read_file_scope, dwarf2_get_pc_bounds)
2377 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2378 (read_structure_type, handle_struct_member_die)
2379 (read_enumeration_type, read_array_type, read_set_type)
2380 (read_tag_pointer_type, read_tag_reference_type)
2381 (read_subroutine_type, read_base_type, read_subrange_type)
2382 (read_full_die_1, partial_die_info::read)
2383 (partial_die_info::read, by, new_symbol)
2384 (dwarf2_const_value_data, dwarf2_const_value_attr)
2385 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2386 (prepare_one_comp_unit): Update.
2387 * dwarf2/attribute.h (DW_UNSND): Remove.
2388
c45bc3f8
TT
23892020-09-29 Tom Tromey <tom@tromey.com>
2390
2391 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2392 (read_subroutine_type, partial_die_info::read)
2393 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2394 (dwarf2_add_member_fn): Update.
2395 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2396 * dwarf2/attribute.c (attribute::as_boolean): New method.
2397
23dca5c3
TT
23982020-09-29 Tom Tromey <tom@tromey.com>
2399
2400 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2401 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2402 method.
2403 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2404
52c14d11
TT
24052020-09-29 Tom Tromey <tom@tromey.com>
2406
2407 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2408 the attribute's form.
2409
e8e5c158
TT
24102020-09-29 Tom Tromey <tom@tromey.com>
2411
2412 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2413 (dwarf2_add_member_fn): Update.
2414 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2415 * dwarf2/attribute.c (attribute::defaulted): New method, from
2416 is_valid_DW_AT_defaulted.
2417
d4df075e
TT
24182020-09-29 Tom Tromey <tom@tromey.com>
2419
2420 * dwarf2/read.c (dw2_get_file_names_reader)
2421 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2422 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2423 (dwarf2_symbol_mark_computed): Use as_unsigned.
2424 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2425 method.
2426 <form_is_section_offset>: Update comment.
2427
bf23a268
TT
24282020-09-29 Tom Tromey <tom@tromey.com>
2429
2430 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2431 dwarf2_default_access_attribute. Look up attribute.
2432 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2433 Update.
2434
7a5f294d
TT
24352020-09-29 Tom Tromey <tom@tromey.com>
2436
2437 * dwarf2/read.c (skip_one_die): Update.
2438 (read_full_die_1): Change how reprocessing is done.
2439 (partial_die_info::read): Update.
2440 (read_attribute_value): Remove need_reprocess parameter.
2441 (read_attribute): Likewise.
2442 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2443 New method.
2444
36d378cf
TT
24452020-09-29 Tom Tromey <tom@tromey.com>
2446
2447 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2448 (dwarf2_const_value_attr, dump_die_shallow)
2449 (dwarf2_fetch_constant_bytes): Update.
2450 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2451 comment.
2452 <set_address>: New method.
2453 (DW_ADDR): Remove.
2454 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2455 (attribute::as_string, attribute::as_address): Add assert.
2456
fe56917a
TT
24572020-09-29 Tom Tromey <tom@tromey.com>
2458
2459 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2460 (read_attribute_reprocess, read_attribute_value): Update.
2461 (read_attribute): Clear requires_reprocessing.
2462 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2463 form_requires_reprocessing>: New methods.
2464 <string_init>: Clear requires_reprocessing.
2465 <set_unsigned_reprocess>: New method.
2466 <name>: Shrink by one bit.
2467 <requires_reprocessing>: New member.
2468 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2469 method.
2470
414ad644
TT
24712020-09-29 Tom Tromey <tom@tromey.com>
2472
2473 * dwarf2/read.c (read_attribute_value): Update.
2474 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2475 set_unsigned>: New methods.
2476 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2477
1bc397c5
TT
24782020-09-29 Tom Tromey <tom@tromey.com>
2479
2480 * dwarf2/read.c (get_alignment, read_array_order)
2481 (read_attribute_value, dwarf2_const_value_attr)
2482 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2483 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2484 New methods.
2485 (DW_SND): Remove.
2486
630ed6b9
TT
24872020-09-29 Tom Tromey <tom@tromey.com>
2488
2489 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2490 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2491 Update.
2492 * dwarf2/attribute.h (struct attribute) <as_signature,
2493 set_signature>: New methods.
2494 (DW_SIGNATURE): Remove.
2495
9d2246fc
TT
24962020-09-29 Tom Tromey <tom@tromey.com>
2497
2498 * dwarf2/read.c (read_call_site_scope)
2499 (handle_data_member_location, dwarf2_add_member_fn)
2500 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2501 (partial_die_info::read, read_attribute_value)
2502 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2503 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2504 (dwarf2_symbol_mark_computed): Update.
2505 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2506 methods.
2507 (DW_BLOCK): Remove.
2508 * dwarf2/attribute.c (attribute::form_is_block): Add
2509 DW_FORM_data16.
2510
c6481205
TT
25112020-09-29 Tom Tromey <tom@tromey.com>
2512
2513 * dwarf2/read.c (read_cutu_die_from_dwo)
2514 (read_attribute_reprocess, read_attribute_value, read_attribute)
2515 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2516 (dwarf2_fetch_constant_bytes): Update.
2517 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2518 <set_string_noncanonical, set_string_canonical>: New methods.
2519 <string_is_canonical>: Update comment.
2520 <canonical_string_p>: Add assert.
2521 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2522 * dwarf2/attribute.c (attribute::form_is_string): New method.
2523 (attribute::string): Use it.
2524
3b64bf15
TT
25252020-09-29 Tom Tromey <tom@tromey.com>
2526
2527 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2528 (dump_die_shallow): Use canonical_string_p.
2529 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2530 method.
2531
2c830f54
TT
25322020-09-29 Tom Tromey <tom@tromey.com>
2533
2534 * dwarf2/read.c (partial_die_info::read)
2535 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2536 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2537 attribute::as_string.
2538
6c412691
TT
25392020-09-29 Tom Tromey <tom@tromey.com>
2540
2541 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2542 DW_ADDR.
2543 (attribute::string): Don't use DW_STRING.
2544 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2545 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2546
95f982e5
TT
25472020-09-29 Tom Tromey <tom@tromey.com>
2548
2549 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2550 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2551 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2552 * dwarf2/attribute.h (struct attribute): Rename methods.
2553 * dwarf2/attribute.c (attribute::as_address): Rename from
2554 value_as_address.
2555 (attribute::as_string): Rename from value_as_string.
2556
f800b00e
TT
25572020-09-29 Tom Tromey <tom@tromey.com>
2558
2559 * dwarf2/read.c (partial_die_info::read) <case
2560 DW_AT_linkage_name>: Use value_as_string.
2561 (dwarf2_string_attr): Use value_as_string.
2562 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2563 method.
2564 * dwarf2/attribute.c (attribute::value_as_string): New method.
2565
de38d64a
PA
25662020-09-29 Pedro Alves <pedro@palves.net>
2567
2568 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2569 defined before using '#pragma GCC diagnostic' instead of checking
2570 __clang__.
2571
9aed480c
TT
25722020-09-28 Tom Tromey <tom@tromey.com>
2573
2574 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2575 (handle_signal_stop): Update.
2576 * procfs.c (procfs_target::insert_watchpoint): Update.
2577 * target.h (target_have_steppable_watchpoint): Now a function.
2578
8a3ecb79
TT
25792020-09-28 Tom Tromey <tom@tromey.com>
2580
2581 * infrun.c (set_schedlock_func): Update.
2582 * target.h (target_can_lock_scheduler): Now a function.
2583
55f6301a
TT
25842020-09-28 Tom Tromey <tom@tromey.com>
2585
2586 * inferior.h (class inferior) <has_execution>: Update.
2587 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2588 * valops.c (find_function_in_inferior)
2589 (value_allocate_space_in_inferior): Update.
2590 * top.c (kill_or_detach): Update.
2591 * target.c (target_preopen, set_target_permissions): Update.
2592 (target_has_execution_current): Remove.
2593 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2594 Update.
2595 * solib.c (update_solib_list, reload_shared_libraries): Update.
2596 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2597 * solib-dsbt.c (enable_break): Update.
2598 * score-tdep.c (score7_fetch_inst): Update.
2599 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2600 Update.
2601 * remote.c (remote_target::start_remote)
2602 (remote_target::remote_check_symbols, remote_target::open_1)
2603 (remote_target::remote_detach_1, remote_target::verify_memory)
2604 (remote_target::xfer_partial, remote_target::read_description)
2605 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2606 * record-full.c (record_full_open_1): Update.
2607 * record-btrace.c (record_btrace_target_open): Update.
2608 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2609 (value_nsstring): Update.
2610 * linux-thread-db.c (add_thread_db_info)
2611 (thread_db_find_new_threads_silently, check_thread_db_callback)
2612 (try_thread_db_load_1, record_thread): Update.
2613 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2614 Update.
2615 * linux-fork.c (checkpoint_command): Update.
2616 * infrun.c (set_non_stop, set_observer_mode)
2617 (check_multi_target_resumption, for_each_just_stopped_thread)
2618 (maybe_remove_breakpoints, normal_stop)
2619 (class infcall_suspend_state): Update.
2620 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2621 (info_program_command, attach_command): Update.
2622 * infcall.c (call_function_by_hand_dummy): Update.
2623 * inf-loop.c (inferior_event_handler): Update.
2624 * gcore.c (gcore_command, derive_heap_segment): Update.
2625 * exec.c (exec_file_command): Update.
2626 * eval.c (evaluate_subexp): Update.
2627 * compile/compile.c (compile_to_object): Update.
2628 * cli/cli-dump.c (restore_command): Update.
2629 * breakpoint.c (update_watchpoint)
2630 (update_inserted_breakpoint_locations)
2631 (insert_breakpoint_locations, get_bpstat_thread): Update.
2632 * target.h (target_has_execution): Remove macro.
2633 (target_has_execution_current): Don't declare.
2634 (target_has_execution): Rename from target_has_execution_1. Add
2635 argument default.
2636
05374cfd
TT
26372020-09-28 Tom Tromey <tom@tromey.com>
2638
2639 * mi/mi-main.c (exec_reverse_continue)
2640 (mi_cmd_list_target_features): Update.
2641 * infrun.c (set_exec_direction_func): Update.
2642 * target.c (default_execution_direction): Update.
2643 * reverse.c (exec_reverse_once): Update.
2644 * target.h (target_can_execute_reverse): Now a function.
2645
9dccd06e
TT
26462020-09-28 Tom Tromey <tom@tromey.com>
2647
2648 * tui/tui-regs.c (tui_get_register)
2649 (tui_data_window::show_registers): Update.
2650 * thread.c (scoped_restore_current_thread::restore)
2651 (scoped_restore_current_thread::scoped_restore_current_thread):
2652 Update.
2653 * regcache-dump.c (regcache_print): Update.
2654 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2655 Update.
2656 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2657 * mep-tdep.c (current_me_module, current_options): Update.
2658 * linux-thread-db.c (thread_db_load): Update.
2659 * infcmd.c (registers_info, info_vector_command)
2660 (info_float_command): Update.
2661 * ia64-tdep.c (ia64_frame_prev_register)
2662 (ia64_sigtramp_frame_prev_register): Update.
2663 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2664 * gcore.c (derive_stack_segment): Update.
2665 * frame.c (get_current_frame, has_stack_frames): Update.
2666 * findvar.c (language_defn::read_var_value): Update.
2667 * arm-tdep.c (arm_pc_is_thumb): Update.
2668 * target.c (target_has_registers): Rename from
2669 target_has_registers_1.
2670 * target.h (target_has_registers): Remove macro.
2671 (target_has_registers): Rename from target_has_registers_1.
2672
841de120
TT
26732020-09-28 Tom Tromey <tom@tromey.com>
2674
2675 * windows-tdep.c (tlb_make_value): Update.
2676 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2677 * thread.c (scoped_restore_current_thread::restore)
2678 (scoped_restore_current_thread::scoped_restore_current_thread)
2679 (thread_command): Update.
2680 * stack.c (backtrace_command_1, frame_apply_level_command)
2681 (frame_apply_all_command, frame_apply_command): Update.
2682 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2683 Update.
2684 * gcore.c (derive_stack_segment): Update.
2685 * frame.c (get_current_frame, has_stack_frames): Update.
2686 * auxv.c (info_auxv_command): Update.
2687 * ada-tasks.c (ada_build_task_list): Update.
2688 * target.c (target_has_stack): Rename from target_has_stack_1.
2689 * target.h (target_has_stack): Remove macro.
2690 (target_has_stack): Rename from target_has_stack_1.
2691
a739972c
TT
26922020-09-28 Tom Tromey <tom@tromey.com>
2693
2694 * target.c (target_has_memory): Rename from target_has_memory_1.
2695 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2696 * thread.c (scoped_restore_current_thread::restore)
2697 (scoped_restore_current_thread::scoped_restore_current_thread):
2698 Update.
2699 * frame.c (get_current_frame, has_stack_frames): Update.
2700 * target.h (target_has_memory): Remove macro.
2701 (target_has_memory): Rename from target_has_memory_1.
2702
5b8a4776
TT
27032020-09-28 Tom Tromey <tom@tromey.com>
2704
2705 * target.c (target_has_all_memory_1): Remove.
2706 * target.h (target_has_all_memory): Remove define.
2707 (target_has_all_memory_1): Don't declare.
2708
bd356ec6
SM
27092020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * ser-base.c: Adjust comments formatting.
2712
2c72d5e5
TT
27132020-09-27 Tom Tromey <tom@tromey.com>
2714
2715 PR tui/25342:
2716 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2717
35a98237
TT
27182020-09-27 Tom Tromey <tom@tromey.com>
2719
2720 PR tui/25342:
2721 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2722
9e820dec
TT
27232020-09-27 Tom Tromey <tom@tromey.com>
2724
2725 * unittests/tui-selftests.c: Update.
2726 * tui/tui-winsource.h (struct tui_source_window_base)
2727 <extra_margin, show_line_number, refresh_pad>: New methods.
2728 <m_max_length, m_pad>: New members.
2729 (tui_copy_source_line): Update.
2730 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2731 first_col, line_width, ndigits parameters. Add length.
2732 (tui_source_window_base::show_source_line): Write to pad. Line
2733 number now 0-based.
2734 (tui_source_window_base::refresh_pad): New method.
2735 (tui_source_window_base::show_source_content): Write to pad. Call
2736 refresh_pad.
2737 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2738 not refill.
2739 (tui_source_window_base::update_exec_info): Call
2740 show_line_number.
2741 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2742 method.
2743 <m_digits>: New member.
2744 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2745 and m_max_length.
2746 (tui_source_window::show_line_number): New method.
2747 * tui/tui-io.h (tui_puts): Fix comment.
2748 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2749 m_max_length.
2750
c15c15c8
TT
27512020-09-27 Tom Tromey <tom@tromey.com>
2752
2753 * tui/tui-winsource.c
2754 (tui_source_window_base::set_is_exec_point_at): Don't call
2755 show_source_line.
2756
149830c1
TT
27572020-09-27 Tom Tromey <tom@tromey.com>
2758
2759 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2760 method.
2761 <erase>: Update.
2762 <cursor_x, cursor_y>: Remove.
2763 <m_inner_window>: New member.
2764 (tui_py_window::rerender): Create inner window.
2765 (tui_py_window::output): Write to inner window.
2766
8f9929bb
GR
27672020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2768
2769 PR python/26586
2770 * cli/cli-script.c (execute_control_commands): don't set
2771 instream to nullptr here as this breaks the from_tty argument
2772 to gdb.execute in Python.
2773 (execute_user_command): set instream to nullptr here instead.
2774
956bdb59
SM
27752020-09-25 Simon Marchi <simon.marchi@efficios.com>
2776
2777 * infrun.h (infrun_debug_printf): Fix formatting.
2778 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2779
3b93626b
SJ
27802020-09-25 Saagar Jha <saagar@saagarjha.com>
2781
2782 * compile/compile-object-load.h (struct munmap_list): Add
2783 explicitly-defined move constructor.
2784
b551a89f
TT
27852020-09-24 Tom Tromey <tromey@adacore.com>
2786
2787 PR tui/26638:
2788 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2789 method.
2790 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2791 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2792 (tui_prev_win): Rewrite.
2793
99bb393f
HD
27942020-09-23 Hannes Domani <ssbssa@yahoo.de>
2795
2796 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2797 in WOW64 processes as SIGINT.
2798 * nat/windows-nat.h: Make wow64_process a shared variable.
2799 * windows-nat.c: Remove static wow64_process variable.
2800
20a5fcbd
TT
28012020-09-23 Tom Tromey <tom@tromey.com>
2802
2803 PR symtab/25470:
2804 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2805 offset and bit size.
2806 * printcmd.c (print_scalar_formatted): Handle zero-length
2807 integer.
2808 (print_scalar_formatted): Use bit_size_differs_p.
2809 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2810 constant.
2811 (union type_specific): <int_stuff>: New member.
2812 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2813 methods.
2814 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2815 TYPE_SPECIFIC_FIELD.
2816 (recursive_dump_type, copy_type_recursive): Update.
2817 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2818 DW_AT_data_bit_offset.
2819
bac51ab7
TT
28202020-09-23 Tom Tromey <tom@tromey.com>
2821
2822 * utils.h (class gdb_argv): Add move operators.
2823 <append>: New methods.
2824 * compile/compile.c (build_argc_argv): Remove.
2825 (compile_args_argc): Remove.
2826 (compile_args_argv): Change type.
2827 (set_compile_args): Simplify.
2828 (append_args): Remove.
2829 (filter_args): Remove argcp parameter.
2830 (get_args): Return gdb_argv. Simplify.
2831 (compile_to_object): Update.
2832
92677124
TT
28332020-09-23 Tom Tromey <tom@tromey.com>
2834
2835 * compile/compile-object-run.c (do_module_cleanup)
2836 <~do_module_cleanup> :Remove.
2837 (do_module_cleanup): Update.
2838 * compile/compile-object-load.h (struct munmap_list): Add move
2839 assignment operator.
2840 <source_file>: Now a std::string.
2841 <munmap_list>: Rename. No longer a pointer.
2842 * compile/compile-object-load.c (struct setup_sections_data): Add
2843 constructor.
2844 <setup_one_section>: Declare.
2845 <munmap_list>: Move earlier.
2846 <m_bfd>: New member.
2847 <m_last_size, m_last_section_first, m_last_prot,
2848 m_last_max_alignment>: Rename, add initializers where needed.
2849 (setup_sections_data::setup_one_section): Rename from
2850 setup_sections. Update.
2851 (compile_object_load): Update. Don't use bfd_map_over_sections.
2852
e616f60a
TT
28532020-09-23 Tom Tromey <tom@tromey.com>
2854
2855 * compile/compile-object-run.c (struct do_module_cleanup): Add
2856 parameters to constructor. Update destructor.
2857 <source_file, scope, scope_data, out_value_type, out_value_addr,
2858 munmap_list_head, objfile_name_string>: Remove.
2859 <module>: New member.
2860 (do_module_cleanup): Update.
2861 (compile_object_run): Update.
2862
e947a848
TT
28632020-09-23 Tom Tromey <tom@tromey.com>
2864
2865 * compile/compile.c (eval_compile_command): Update.
2866 * compile/compile-object-run.h (compile_object_run): Take a
2867 compile_module_up.
2868 * compile/compile-object-run.c (compile_object_run): Take a
2869 compile_module_up.
2870 * compile/compile-object-load.h (struct compile_module): Add
2871 constructor, destructor.
2872 (compile_module_up): New typedef.
2873 (compile_object_load): Return compile_object_up.
2874 * compile/compile-object-load.c (compile_object_load): Return
2875 compile_module_up.
2876
0dbf6ee6
TT
28772020-09-23 Tom Tromey <tom@tromey.com>
2878
2879 * compile/compile-object-run.c (struct do_module_cleanup): Add
2880 constructor, destructor.
2881 <objfile_name_string>: Don't use struct hack.
2882 (do_module_cleanup): Use delete.
2883 (compile_object_run): Use new.
2884
ebe824f5
TT
28852020-09-23 Tom Tromey <tom@tromey.com>
2886
2887 * compile/compile-cplus-types.c
2888 (compile_cplus_convert_struct_or_union): Use std::vector.
2889 (compile_cplus_convert_func): Likewise.
2890 * compile/compile-c-types.c (convert_func): Use std::vector.
2891
5dd918d9
TT
28922020-09-21 Tom Tromey <tromey@adacore.com>
2893
2894 * sparc-tdep.c (sparc32_skip_prologue): Use
2895 skip_prologue_using_sal.
2896
5486c517
TT
28972020-09-19 Tom Tromey <tom@tromey.com>
2898
2899 * symfile.c (add_section_size_callback): Remove.
2900 (load_one_section): Rename from load_section_callback. Change
2901 parameters.
2902 (generic_load): Use foreach.
2903
8a6bb1d1
TT
29042020-09-19 Tom Tromey <tom@tromey.com>
2905
2906 * exec.c (add_to_section_table): Remove.
2907 (build_section_table): Use foreach.
2908
08f93a1a
TT
29092020-09-19 Tom Tromey <tom@tromey.com>
2910
2911 * elfread.c (elf_locate_sections): Change parameters.
2912 (elf_symfile_read): Use foreach.
2913
03cd72b8
TT
29142020-09-19 Tom Tromey <tom@tromey.com>
2915
2916 * cli/cli-dump.c (struct callback_data): Remove.
2917 (restore_one_section): Rename from restore_section_callback.
2918 Change parameters.
2919 (restore_binary_file): Change parameters.
2920 (restore_command): Use foreach.
2921
f4f2b85f
TT
29222020-09-19 Tom Tromey <tom@tromey.com>
2923
2924 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2925 (gcore_copy_callback): Likewise.
2926 (gcore_memory_sections): Use foreach.
2927
b35c1d1c
TT
29282020-09-19 Tom Tromey <tom@tromey.com>
2929
2930 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2931 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2932 parameters.
2933 (generic_elf_osabi_sniffer): Use foreach.
2934 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2935 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2936
5bb6e9dd
TT
29372020-09-19 Tom Tromey <tom@tromey.com>
2938
2939 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2940 (dwarf2_get_dwz_file): Use foreach.
2941 (dwarf2_locate_dwo_sections): Change parameters.
2942 (open_and_init_dwo_file): Use foreach.
2943 (dwarf2_locate_common_dwp_sections): Change parameters.
2944 (open_and_init_dwp_file): Use foreach.
2945
ad7277da
TT
29462020-09-19 Tom Tromey <tom@tromey.com>
2947
2948 * symfile.h: (find_lowest_section): Don't declare.
2949 * symfile.c (find_lowest_section): Now static. Change
2950 parameters.
2951 (struct place_section_arg): Remove.
2952 (place_section): Change parameters.
2953 (addr_info_make_relative): Use foreach.
2954 (symfile_dummy_outputs): Remove.
2955 (default_symfile_relocate): Use foreach.
2956
cb814f2e
TT
29572020-09-19 Tom Tromey <tom@tromey.com>
2958
2959 * objfiles.c (add_to_objfile_sections): Rename from
2960 add_to_objfile_sections_full.
2961 (add_to_objfile_sections): Remove.
2962 (build_objfile_section_table): Use foreach.
2963
3cabfd26
TT
29642020-09-19 Tom Tromey <tom@tromey.com>
2965
2966 * stap-probe.c (get_stap_base_address_1): Remove.
2967 (get_stap_base_address): Use foreach.
2968
1ce51eb5
TT
29692020-09-19 Tom Tromey <tom@tromey.com>
2970
2971 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2972 parameters.
2973 (gdb_bfd_close_or_warn): Use foreach.
2974
a190fabb
TT
29752020-09-19 Tom Tromey <tom@tromey.com>
2976
2977 * corelow.c (add_to_thread_list): Change parameters.
2978 (core_target_open): Use foreach.
2979
cafb0d81
TT
29802020-09-19 Tom Tromey <tom@tromey.com>
2981
2982 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2983 existing function.
2984
c8d5abea
AB
29852020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2988 for arrays.
2989
6d816919
AB
29902020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * eval.c: Remove 'f-lang.h' include.
2993 (value_f90_subarray): Moved to f-lang.c.
2994 (eval_call): Renamed to...
2995 (evaluate_subexp_do_call): ...this, is no longer static, header
2996 comment moved into header file.
2997 (evaluate_funcall): Update call to eval_call.
2998 (skip_undetermined_arglist): Moved to f-lang.c.
2999 (fortran_value_subarray): Likewise.
3000 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3001 moved to evaluate_subexp_f.
3002 (calc_f77_array_dims): Moved to f-lang.c
3003 * expprint.c (print_subexp_funcall): New function.
3004 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3005 moved to print_subexp_f, OP_FUNCALL uses new function.
3006 (dump_subexp_body_funcall): New function.
3007 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3008 moved to dump_subexp_f, OP_FUNCALL uses new function.
3009 * expression.h (evaluate_subexp_do_call): Declare.
3010 * f-lang.c (value_f90_subarray): Moved from eval.c.
3011 (skip_undetermined_arglist): Likewise.
3012 (calc_f77_array_dims): Likewise.
3013 (fortran_value_subarray): Likewise.
3014 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3015 (operator_length_f): Likewise.
3016 (print_subexp_f): Likewise.
3017 (dump_subexp_body_f): Likewise.
3018 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3019 declaration of this operation to here.
3020 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3021 support moved to operator_length_f.
3022 * parser-defs.h (dump_subexp_body_funcall): Declare.
3023 (print_subexp_funcall): Declare.
3024 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3025 fortran-operator.def.
3026
8c37706a
AB
30272020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3028
3029 * eval.c (fortran_value_subarray): New function, content is taken
3030 from...
3031 (evaluate_subexp_standard): ...here, in two places. Now arrays
3032 and strings both call the new function.
3033 (calc_f77_array_dims): Add header comment, handle strings.
3034
14f9473c
VC
30352020-09-18 Victor Collod <vcollod@nvidia.com>
3036
3037 PR gdb/26635
3038 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3039 (i386_analyze_prologue): Call i386_skip_endbr.
3040
b60cea74
TT
30412020-09-18 Tom Tromey <tromey@adacore.com>
3042
3043 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3044 (windows_nat_target::wait): Update.
3045 * target/wait.h (enum target_wait_flag): New. Use
3046 DEF_ENUM_FLAGS_TYPE.
3047 * target/target.h (target_wait): Change type of options.
3048 * target.h (target_options_to_string, default_target_wait):
3049 Update.
3050 (struct target_ops) <wait>: Change type of options.
3051 * target.c (target_wait, default_target_wait, do_option): Change
3052 type of "options".
3053 (target_options_to_string): Likewise.
3054 * target-delegates.c: Rebuild.
3055 * target-debug.h (target_debug_print_target_wait_flags): Rename
3056 from target_debug_print_options.
3057 * sol-thread.c (class sol_thread_target) <wait>: Update.
3058 (sol_thread_target::wait): Update.
3059 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3060 (rs6000_nat_target::wait): Update.
3061 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3062 Update.
3063 (remote_target::wait_ns, remote_target::wait_as): Change type of
3064 "options".
3065 (remote_target::wait): Update.
3066 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3067 (gdbsim_target::wait): Update.
3068 * record-full.c (class record_full_base_target) <wait>: Update.
3069 (record_full_wait_1): Change type of "options".
3070 (record_full_base_target::wait): Update.
3071 * record-btrace.c (class record_btrace_target) <wait>: Update.
3072 (record_btrace_target::wait): Update.
3073 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3074 Update.
3075 (ravenscar_thread_target::wait): Update.
3076 * procfs.c (class procfs_target) <wait>: Update.
3077 (procfs_target::wait): Update.
3078 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3079 * obsd-nat.c (obsd_nat_target::wait): Update.
3080 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3081 (nto_procfs_target::wait): Update.
3082 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3083 * nbsd-nat.c (nbsd_wait): Change type of "options".
3084 (nbsd_nat_target::wait): Update.
3085 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3086 (thread_db_target::wait): Update.
3087 * linux-nat.h (class linux_nat_target) <wait>: Update.
3088 * linux-nat.c (linux_nat_target::wait): Update.
3089 (linux_nat_wait_1): Update.
3090 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3091 "options".
3092 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3093 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3094 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3095 (go32_nat_target::wait): Update.
3096 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3097 * gnu-nat.c (gnu_nat_target::wait): Update.
3098 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3099 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3100 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3101 * darwin-nat.c (darwin_nat_target::wait): Update.
3102 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3103 (bsd_uthread_target::wait): Update.
3104 * aix-thread.c (class aix_thread_target) <wait>: Update.
3105 (aix_thread_target::wait): Update.
3106
0295dde6
AB
31072020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3108
3109 * compile/compile-object-run.c (create_copied_type_recursive): New
3110 function.
3111 (compile_object_run): Use new function.
3112
d3483b43
JT
31132020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3114
3115 * NEWS: Mention x86_64 Cygwin core file support.
3116
e7d612ad
JT
31172020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3118
3119 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3120 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3121
aff9d387
JT
31222020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3123
62a5151b
JT
3124 * windows-tdep.h: Add prototypes.
3125 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3126 (i386_windows_core_pid_to_str): Move and rename ...
3127 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3128 (windows_core_pid_to_str): ... and here.
3129 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3130
31312020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3132 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3133 (amd64_windows_init_abi_common): ... and register.
3134
7d155da3
JT
31352020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3136
3137 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3138 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3139
e8ef12b9
PA
31402020-09-18 Pedro Alves <pedro@palves.net>
3141
3142 PR gdb/26631
3143 * thread.c (thread_find_command): Switch inferior before calling
3144 target methods.
3145
c1e1314d
TT
31462020-09-17 Tom Tromey <tromey@adacore.com>
3147
3148 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3149 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3150 (tdesc_arch_data_up): New typedef.
3151 (tdesc_use_registers, tdesc_data_alloc): Update.
3152 (tdesc_data_cleanup): Don't declare.
3153 * target-descriptions.c (tdesc_data_alloc): Return a
3154 tdesc_arch_data_up.
3155 (tdesc_arch_data_deleter::operator()): Rename from
3156 tdesc_data_cleanup. Change argument type.
3157 (tdesc_use_registers): Change early_data to an rvalue reference.
3158 (tdesc_use_registers): Don't use delete.
3159 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3160 * s390-tdep.c (s390_gdbarch_init): Update.
3161 * rx-tdep.c (rx_gdbarch_init): Update.
3162 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3163 * riscv-tdep.c (riscv_gdbarch_init): Update.
3164 * or1k-tdep.c (or1k_gdbarch_init): Update.
3165 * nios2-tdep.c (nios2_gdbarch_init): Update.
3166 * nds32-tdep.c (nds32_gdbarch_init): Update.
3167 * mips-tdep.c (mips_gdbarch_init): Update.
3168 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3169 * m68k-tdep.c (m68k_gdbarch_init): Update.
3170 * i386-tdep.c (i386_gdbarch_init): Update.
3171 * arm-tdep.c (arm_gdbarch_init): Update.
3172 * arc-tdep.c (arc_tdesc_init): Update.
3173 (arc_gdbarch_init): Update.
3174 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3175
0363df3d
HD
31762020-09-17 Hannes Domani <ssbssa@yahoo.de>
3177
3178 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3179 for WOW64 processes.
3180
280a9412
TT
31812020-09-17 Tom Tromey <tom@tromey.com>
3182
3183 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3184
6108fd18
TT
31852020-09-17 Tom Tromey <tom@tromey.com>
3186
3187 * value.c (preserve_values): Update.
3188 * python/py-type.c (save_objfile_types): Update.
3189 * guile/scm-type.c (save_objfile_types): Update.
3190 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3191 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3192 * compile/compile-object-run.c (compile_object_run): Update.
3193
fa9b1164
TT
31942020-09-17 Tom Tromey <tom@tromey.com>
3195
3196 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3197 Remove.
3198 <m_table>: Now htab_up.
3199 * typeprint.c (typedef_hash_table::recursively_update)
3200 (typedef_hash_table::add_template_parameters)
3201 (typedef_hash_table::typedef_hash_table): Update.
3202 (typedef_hash_table::~typedef_hash_table): Remove.
3203 (typedef_hash_table::typedef_hash_table)
3204 (typedef_hash_table::find_global_typedef)
3205 (typedef_hash_table::find_typedef): Update.
3206
eb53f105
TT
32072020-09-17 Tom Tromey <tom@tromey.com>
3208
3209 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3210
7a8a5d47
TT
32112020-09-17 Tom Tromey <tom@tromey.com>
3212
3213 * linespec.c (class decode_compound_collector)
3214 <~decode_compound_collector>: Remove.
3215 <m_unique_syms>: Now htab_up.
3216 (decode_compound_collector::operator ()): Update.
3217 (class symtab_collector) <~symtab_collector>: Remove.
3218 <m_symtab_table>: Now htab_up.
3219 (symtab_collector::operator ()): Update.
3220
99032cfc
TT
32212020-09-17 Tom Tromey <tom@tromey.com>
3222
3223 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3224 (filename_seen_cache::clear): Update.
3225 (~filename_seen_cache): Remove.
3226 (filename_seen_cache::seen): Update.
3227 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3228 htab_up.
3229 <~filename_seen_cache>: Remove.
3230 <traverse>: Update.
3231
32580f6d
TT
32322020-09-17 Tom Tromey <tom@tromey.com>
3233
3234 * completer.c (completion_tracker::discard_completions)
3235 (completion_tracker::~completion_tracker)
3236 (completion_tracker::maybe_add_completion)
3237 (completion_tracker::remove_completion)
3238 (completion_tracker::recompute_lowest_common_denominator)
3239 (completion_tracker::build_completion_result): Update.
3240 * completer.h (class completion_tracker) <have_completions>:
3241 Update.
3242 <m_entries_hash>: Now htab_up.
3243
c1fb9836
TT
32442020-09-17 Tom Tromey <tom@tromey.com>
3245
3246 * breakpoint.c (ambiguous_names_p): Use htab_up.
3247
88f07206
TT
32482020-09-17 Tom Tromey <tom@tromey.com>
3249
3250 * auto-load.c (struct auto_load_pspace_info)
3251 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3252 <loaded_script_files, loaded_script_texts>: Change type to
3253 htab_up.
3254 (~auto_load_pspace_info) Remove.
3255 (init_loaded_scripts_info, maybe_add_script_file)
3256 (maybe_add_script_text, auto_load_info_scripts): Update.
3257
9519b2ee
TT
32582020-09-17 Tom Tromey <tromey@adacore.com>
3259
3260 * c-exp.y (name_obstack): Now static.
3261
d2cd4113
CC
32622020-09-17 Chungyi Chi <demonic@csie.io>
3263
3264 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3265
b650a282
SM
32662020-09-16 Simon Marchi <simon.marchi@efficios.com>
3267
3268 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3269 (add_solib_catchpoint): Likewise.
3270 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3271 to bool.
3272 (add_solib_catchpoint): Change int parameter/variable to bool.
3273 (catch_load_or_unload): Likewise.
3274 (init_catchpoint): Likewise.
3275 (create_fork_vfork_event_catchpoint): Likewise.
3276 (catch_fork_command_1): Likewise.
3277 (catch_exec_command_1): Likewise.
3278
4d0bcfcf
SM
32792020-09-16 Simon Marchi <simon.marchi@efficios.com>
3280
3281 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3282 Change instance_flags to m_instance_flags.
3283
fe830662
TT
32842020-09-16 Tom Tromey <tromey@adacore.com>
3285
3286 PR gdb/26598:
3287 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3288
fe5ddfc3
JB
32892020-09-16 John Baldwin <jhb@FreeBSD.org>
3290
3291 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3292 PL_FLAG_EXEC.
3293 (fbsd_nat_target::insert_exec_catchpoint)
3294 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3295 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3296 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3297
e911c666
JB
32982020-09-16 John Baldwin <jhb@FreeBSD.org>
3299
3300 * configure.ac: Remove check for kinfo_getvmmap().
3301 * configure, config.in: Regenerate.
3302 * fbsd-nat.c (fbsd_read_mapping): Remove
3303 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3304 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3305 kinfo_get_vmmap() are always present.
3306
1f17d372
JB
33072020-09-16 John Baldwin <jhb@FreeBSD.org>
3308
3309 * fbsd-nat.c: Always include support for
3310 TARGET_OBJECT_SIGNAL_INFO.
3311
bcb1da7f
JB
33122020-09-16 John Baldwin <jhb@FreeBSD.org>
3313
3314 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3315 sysctl and remove procfs fallback.
3316
5515f729
JB
33172020-09-16 John Baldwin <jhb@FreeBSD.org>
3318
3319 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3320 * fbsd-nat.h: Likewise.
3321
da1df1db
TBA
33222020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3323
3324 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3325 argument.
3326
0e25e767
AB
33272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * ada-lang.c (ada_language_data): Delete.
3330 (ada_language): Remove references to ada_language_data.
3331 * c-lang.c (c_language_data): Delete.
3332 (c_language): Remove references to c_language_data.
3333 (cplus_language_data): Delete.
3334 (cplus_language): Remove references to cplus_language_data.
3335 (asm_language_data): Delete.
3336 (asm_language): Remove references to asm_language_data.
3337 (minimal_language_data): Delete.
3338 (minimal_language): Remove references to minimal_language_data.
3339 * d-lang.c (d_language_data): Delete.
3340 (d_language): Remove references to d_language_data.
3341 * f-lang.c (f_language_data): Delete.
3342 (f_language): Remove references to f_language_data.
3343 * go-lang.c (go_language_data): Delete.
3344 (go_language): Remove references to go_language_data.
3345 * language.c (unknown_language_data): Delete.
3346 (unknown_language): Remove references to unknown_language_data.
3347 (auto_language_data): Delete.
3348 (auto_language): Remove references to auto_language_data.
3349 * language.h (language_data): Delete struct.
3350 (language_defn): No longer inherit from language_data.
3351 * m2-lang.c (m2_language_data): Delete.
3352 (m2_language): Remove references to m2_language_data.
3353 * objc-lang.c (objc_language_data): Delete.
3354 (objc_language): Remove references to objc_language_data.
3355 * opencl-lang.c (opencl_language_data): Delete.
3356 (opencl_language): Remove references to opencl_language_data.
3357 * p-lang.c (pascal_language_data): Delete.
3358 (pascal_language): Remove references to pascal_language_data.
3359 * rust-lang.c (rust_language_data): Delete.
3360 (rust_language): Remove references to rust_language_data.
3361
b7c6e27d
AB
33622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3363
3364 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3365 initializer.
3366 (ada_language::opcode_print_table): New member function.
3367 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3368 (c_language::opcode_print_table): New member function.
3369 (cplus_language_data): Remove la_op_print_tab initializer.
3370 (cplus_language::opcode_print_table): New member function.
3371 (asm_language_data): Remove la_op_print_tab initializer.
3372 (asm_language::opcode_print_table): New member function.
3373 (minimal_language_data): Remove la_op_print_tab initializer.
3374 (minimal_language::opcode_print_table): New member function.
3375 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3376 (d_language::opcode_print_table): New member function.
3377 * expprint.c (print_subexp_standard): Update call to
3378 opcode_print_table.
3379 (op_string): Likewise.
3380 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3381 (f_language::opcode_print_table): New member function.
3382 * go-lang.c (go_language_data): Remove la_op_print_tab
3383 initializer.
3384 (go_language::opcode_print_table): New member function.
3385 * language.c (unknown_language_data): Remove la_op_print_tab
3386 initializer.
3387 (unknown_language::opcode_print_table): New member function.
3388 (auto_language_data): Remove la_op_print_tab initializer.
3389 (auto_language::opcode_print_table): New member function.
3390 * language.h (language_data): Remove la_op_print_tab field.
3391 (language_defn::opcode_print_table): Declare new member function.
3392 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3393 initializer.
3394 (m2_language::opcode_print_table): New member function.
3395 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3396 initializer.
3397 (objc_language::opcode_print_table): New member function.
3398 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3399 initializer.
3400 (opencl_language::opcode_print_table): New member function.
3401 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3402 initializer.
3403 (pascal_language::opcode_print_table): New member function.
3404 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3405 initializer.
3406 (rust_language::opcode_print_table): New member function.
3407
5aba6ebe
AB
34082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3409
3410 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3411 (ada_language::expression_ops): New member function.
3412 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3413 (c_language::expression_ops): New member function.
3414 (cplus_language_data): Remove la_exp_desc initializer.
3415 (cplus_language::expression_ops): New member function.
3416 (asm_language_data): Remove la_exp_desc initializer.
3417 (asm_language::expression_ops): New member function.
3418 (minimal_language_data): Remove la_exp_desc initializer.
3419 (minimal_language::expression_ops): New member function.
3420 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3421 (d_language::expression_ops): New member function.
3422 * eval.c (evaluate_subexp): Update call to expression_ops.
3423 * expprint.c (print_subexp): Likewise.
3424 (op_name): Likewise.
3425 (dump_subexp_body): Likewise.
3426 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3427 (f_language::expression_ops): New member function.
3428 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3429 (go_language::expression_ops): New member function.
3430 * language.c (language_defn::expression_ops): New function.
3431 (unknown_language_data): Remove la_exp_desc initializer.
3432 (auto_language_data): Likewise.
3433 * language.h (language_data): Remove la_exp_desc field.
3434 (language_defn::expression_ops): Declare new member function.
3435 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3436 (m2_language::expression_ops): New member function.
3437 * objc-lang.c (objc_language_data): Remove la_exp_desc
3438 initializer.
3439 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3440 initializer.
3441 (opencl_language::expression_ops): New member function.
3442 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3443 * parse.c (operator_length): Update call to expression_ops.
3444 (exp_iterate): Likewise.
3445 * rust-lang.c (rust_language_data): Remove la_exp_desc
3446 initializer.
3447 (ruse_language::expression_ops): New member function.
3448
b63a3f3f
AB
34492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3450
3451 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3452 initializer.
3453 (ada_language::varobj_ops): New member function.
3454 * c-lang.c (c_language_data): Remove la_varobj_ops
3455 initializer.
3456 (cplus_language_data): Likewise.
3457 (cplus_language::varobj_ops): New member function.
3458 (asm_language_data): Remove la_varobj_ops initializer.
3459 (minimal_language_data): Likewise.
3460 * d-lang.c (d_language_data): Likewise.
3461 * f-lang.c (f_language_data): Likewise.
3462 * go-lang.c (go_language_data): Likewise.
3463 * language.c (language_defn::varobj_ops): New function.
3464 (unknown_language_data): Remove la_varobj_ops
3465 initializer.
3466 (auto_language_data): Likewise.
3467 * language.h (language_data): Remove la_varobj_ops field.
3468 (language_defn::varobj_ops): Declare new member function.
3469 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3470 * objc-lang.c (objc_language_data): Likewise.
3471 * opencl-lang.c (opencl_language_data): Likewise.
3472 * p-lang.c (pascal_language_data): Likewise.
3473 * rust-lang.c (rust_language_data): Likewise.
3474 * varobj.c (varobj_create): Update call to varobj_ops.
3475 * varobj.h (default_varobj_ops): Delete define.
3476
1ac14a04
AB
34772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3478
3479 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3480 initializer.
3481 * c-lang.c (c_language_data): Likewise.
3482 (c_language::macro_expansion): New member function.
3483 (cplus_language_data): Likewise.
3484 (cplus_language::macro_expansion): New member function.
3485 (asm_language_data): Likewise.
3486 (asm_language::macro_expansion): New member function.
3487 (minimal_language_data): Likewise.
3488 (minimal_language::macro_expansion): New member function.
3489 * d-lang.c (d_language_data): Remove la_macro_expansion
3490 initializer.
3491 * f-lang.c (f_language_data): Likewise.
3492 * go-lang.c (go_language_data): Likewise.
3493 * language.c (unknown_language_data): Likewise.
3494 (auto_language_data): Likewise.
3495 * language.h (language_data): Remove la_macro_expansion field.
3496 (language_defn::macro_expansion): New member function.
3497 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3498 initializer.
3499 * objc-lang.c (objc_language_data): Likewise.
3500 (objc_language::macro_expansion): New member function.
3501 * opencl-lang.c (opencl_language_data): Likewise.
3502 (opencl_language::macro_expansion): New member function.
3503 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3504 initializer.
3505 * rust-lang.c (rust_language_data): Likewise.
3506 * symtab.c (default_collect_symbol_completion_matches_break_on):
3507 Update call to macro_expansion.
3508
3a3440fb
AB
35092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3510
3511 * ada-lang.c (ada_language_data): Remove la_array_ordering
3512 initializer.
3513 * c-lang.c (c_language_data): Likewise.
3514 (cplus_language_data): Likewise.
3515 (asm_language_data): Likewise.
3516 (minimal_language_data): Likewise.
3517 * d-lang.c (d_language_data): Likewise.
3518 * dwarf2/read.c (read_array_order): Update for call to
3519 array_ordering.
3520 * f-lang.c (f_language_data): Remove la_array_ordering
3521 initializer.
3522 (f_language::array_ordering): New member function.
3523 * go-lang.c (go_language_data): Remove la_array_ordering
3524 initializer.
3525 * language.c (unknown_language_data): Likewise.
3526 (auto_language_data): Likewise.
3527 * language.h (language_data): Delete la_array_ordering field.
3528 (language_defn::array_ordering): New member function.
3529 * m2-lang.c (m2_language_data): Remove la_array_ordering
3530 initializer.
3531 * objc-lang.c (objc_language_data): Likewise.
3532 * opencl-lang.c (opencl_language_data): Likewise.
3533 * p-lang.c (pascal_language_data): Likewise.
3534 * rust-lang.c (rust_language_data): Likewise.
3535
0d201fa4
AB
35362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3537
3538 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3539 initializer.
3540 * c-lang.c (c_language_data): Likewise.
3541 (cplus_language_data): Likewise.
3542 (asm_language_data): Likewise.
3543 (minimal_language_data): Likewise.
3544 * d-lang.c (d_language_data): Likewise.
3545 * f-lang.c (f_language_data): Likewise.
3546 (f_language::case_sensitivity): New member function.
3547 * go-lang.c (go_language_data): Remove la_case_sensitivity
3548 initializer.
3549 * language.c (enum case_mode): Moved here from language.h.
3550 (case_mode): Make static.
3551 (show_case_command): Update for case_sensitivity being a method.
3552 (set_case_command): Likewise.
3553 (set_range_case): Likewise.
3554 (unknown_language_data): Remove la_case_sensitivity initializer.
3555 (auto_language_data): Likewise.
3556 * language.h (case_mode): Delete, move enum declaration to
3557 language.c.
3558 (language_data): Delete la_case_sensitivity field.
3559 (language_defn::case_sensitivity): New member function.
3560 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3561 initializer.
3562 * objc-lang.c (objc_language_data): Likewise.
3563 * opencl-lang.c (opencl_language_data): Likewise.
3564 * p-lang.c (pascal_language_data): Likewise.
3565 * rust-lang.c (rust_language_data): Likewise.
3566
efdf6a73
AB
35672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * ada-lang.c (ada_language_data): Remove la_range_check
3570 initializer.
3571 * c-lang.c (c_language_data): Likewise.
3572 (cplus_language_data): Likewise.
3573 (asm_language_data): Likewise.
3574 (minimal_language_data): Likewise.
3575 * d-lang.c (d_language_data): Likewise.
3576 * f-lang.c (f_language_data): Likewise.
3577 (f_language::range_checking_on_by_default): New member function.
3578 * go-lang.c (go_language_data): Remove la_range_check initializer.
3579 * language.c (enum range_mode): Moved here from language.h.
3580 (range_mode): Made static.
3581 (show_range_command): Update to use
3582 range_checking_on_by_default.
3583 (set_range_command): Likewise.
3584 (set_range_case): Likewise.
3585 (unknown_language_data): Remove la_range_check initializer.
3586 (auto_language_data): Likewise.
3587 * language.h (range_mode): Delete. Enum definition moved to
3588 language.c.
3589 (language_data): Remove la_range_check field.
3590 (language_defn::range_checking_on_by_default): New member
3591 function.
3592 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3593 (m2_language::range_checking_on_by_default): New member function.
3594 * objc-lang.c (objc_language_data): Remove la_range_check
3595 initializer.
3596 * opencl-lang.c (opencl_language_data): Likewise.
3597 * p-lang.c (pascal_language_data): Likewise.
3598 (pascal_language::range_checking_on_by_default): New member
3599 function.
3600 * rust-lang.c (rust_language_data): Remove la_range_check
3601 initializer.
3602 (rust_language::range_checking_on_by_default): New member
3603 function.
3604
bf92aec5
AB
36052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3606
3607 * dwarf2/read.c (dwarf2_physname): Remove special case for
3608 language_go.
3609 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3610 member function.
3611
d3355e4d
AB
36122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3613
3614 * ada-lang.c (ada_language_data): Remove
3615 la_store_sym_names_in_linkage_form_p initializer.
3616 (ada_language::store_sym_names_in_linkage_form_p): New member
3617 function.
3618 * c-lang.c (c_language_data): Remove
3619 la_store_sym_names_in_linkage_form_p initializer.
3620 (c_language::store_sym_names_in_linkage_form_p): New member
3621 function.
3622 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3623 initializer.
3624 (asm_language_data): Likewise.
3625 (asm_language::store_sym_names_in_linkage_form_p): New member
3626 function.
3627 (minimal_language_data): Remove
3628 la_store_sym_names_in_linkage_form_p initializer.
3629 (minimal_language::store_sym_names_in_linkage_form_p): New member
3630 function.
3631 * d-lang.c (d_language_data): Remove
3632 la_store_sym_names_in_linkage_form_p initializer.
3633 * dwarf2/read.c (dwarf2_physname): Update call to
3634 store_sym_names_in_linkage_form_p.
3635 * f-lang.c (f_language_data): Remove
3636 la_store_sym_names_in_linkage_form_p initializer.
3637 * go-lang.c (go_language_data): Remove
3638 la_store_sym_names_in_linkage_form_p initializer.
3639 * language.c (unknown_language_data): Remove
3640 la_store_sym_names_in_linkage_form_p initializer.
3641 (unknown_language::store_sym_names_in_linkage_form_p): New member
3642 function.
3643 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3644 initializer.
3645 (auto_language::store_sym_names_in_linkage_form_p): New member
3646 function.
3647 * language.h (language_data): Remove
3648 la_store_sym_names_in_linkage_form_p member variable.
3649 (language_defn::store_sym_names_in_linkage_form_p): New member
3650 function.
3651 * m2-lang.c (m2_language_data): Remove
3652 la_store_sym_names_in_linkage_form_p initializer.
3653 * objc-lang.c (objc_language_data): Likewise.
3654 * opencl-lang.c (opencl_language_data): Likewise.
3655 * p-lang.c (pascal_language_data): Likewise.
3656 * rust-lang.c (rust_language_data): Likewise.
3657
22c12a6c
AB
36582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3659
3660 * ada-lang.c (ada_language_data): Remove string_lower_bound
3661 initializer.
3662 * c-lang.c (c_language_data): Likewise.
3663 (cplus_language_data): Likewise.
3664 (asm_language_data): Likewise.
3665 (minimal_language_data): Likewise.
3666 * d-lang.c (d_language_data): Likewise.
3667 * f-lang.c (f_language_data): Likewise.
3668 * go-lang.c (go_language_data): Likewise.
3669 * language.c (unknown_language_data): Likewise.
3670 (auto_language_data): Likewise.
3671 * language.h (language_data): Remove string_lower_bound field.
3672 (language_defn::string_lower_bound): New member function.
3673 * m2-lang.c (m2_language_data): Remove string_lower_bound
3674 initializer.
3675 (m2_language::string_lower_bound): New member function.
3676 * objc-lang.c (objc_language_data): Remove string_lower_bound
3677 initializer.
3678 * opencl-lang.c (opencl_language_data): Likewise.
3679 * p-lang.c (pascal_language_data): Likewise.
3680 * rust-lang.c (rust_language_data): Likewise.
3681 * valops.c (value_cstring): Update call to string_lower_bound.
3682 (value_string): Likewise.
3683 * value.c (allocate_repeated_value): Likewise.
3684
1c236ddd
AB
36852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3686
3687 * valops.c (value_repeat): Fix incorrect argument name in comment.
3688
67bd3fd5
AB
36892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * ada-lang.c (ada_language_data): Remove c_style_arrays
3692 initializer.
3693 (ada_language::c_style_arrays_p): New member fuction.
3694 * c-lang.c (c_language_data): Remove c_style_arrays
3695 initializer.
3696 (cplus_language_data): Likewise.
3697 (asm_language_data): Likewise.
3698 (minimal_language_data): Likewise.
3699 * d-lang.c (d_language_data): Likewise.
3700 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3701 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3702 (f_language::c_style_arrays_p): New member function.
3703 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3704 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3705 * language.c (unknown_language_data): Remove c_style_arrays
3706 initializer.
3707 (auto_language_data): Likewise.
3708 * language.h (language_data): Remove c_style_arrays field.
3709 (language_defn::c_style_arrays_p): New member function.
3710 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3711 (m2_language::c_style_arrays_p): New member function.
3712 * objc-lang.c (objc_language_data): Remove c_style_arrays
3713 initializer.
3714 * opencl-lang.c (opencl_language_data): Likewise.
3715 * p-lang.c (pascal_language_data): Likewise.
3716 * rust-lang.c (rust_language_data): Likewise.
3717 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3718 and update local variable to a bool.
3719 * valops.c (value_cast): Update call to c_style_arrays_p.
3720 (value_array): Likewise.
3721 * value.c (coerce_array): Likewise.
3722
85967615
AB
37232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3724
3725 * ada-lang.c (ada_language_data): Remove la_language initializer.
3726 * c-lang.c (c_language_data): Likewise.
3727 (cplus_language_data): Likewise.
3728 (asm_language_data): Likewise.
3729 (minimal_language_data): Likewise.
3730 * d-lang.c (d_language_data): Likewise.
3731 * f-lang.c (f_language_data): Likewise.
3732 * go-lang.c (go_language_data): Likewise.
3733 * language.c (unknown_language_data): Likewise.
3734 (auto_language_data): Likewise.
3735 * language.h (language_data): Remove la_language field.
3736 (language_defn::language_defn): Initialise la_language field.
3737 (language_defn::la_language): New member variable.
3738 * m2-lang.c (m2_language_data): Remove la_language field.
3739 * objc-lang.c (objc_language_data): Likewise.
3740 * opencl-lang.c (opencl_language_data): Likewise.
3741 * p-lang.c (pascal_language_data): Likewise.
3742 * rust-lang.c (rust_language_data): Likewise.
3743
e171d6f1
AB
37442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3745
3746 * ada-lang.c (ada_extensions): Delete, moved into
3747 ada_language::filename_extensions.
3748 (ada_language_data): Remove la_filename_extensions initializer.
3749 (ada_language::filename_extensions): New member function.
3750 * c-lang.c (c_extensions): Delete, moved into
3751 c_language::filename_extensions.
3752 (c_language_data): Remove la_filename_extensions initializer.
3753 (c_language::filename_extensions): New member function.
3754 (cplus_extensions): Delete, moved into
3755 cplus_language::filename_extensions.
3756 (cplus_language_data): Remove la_filename_extensions initializer.
3757 (cplus_language::filename_extensions): New member function.
3758 (asm_extensions): Delete, moved into
3759 asm_language::filename_extensions.
3760 (asm_language_data): Remove la_filename_extensions initializer.
3761 (asm_language::filename_extensions): New member function.
3762 (minimal_language_data): Remove la_filename_extensions
3763 initializer.
3764 * d-lang.c (d_extensions): Delete, moved into
3765 d_language::filename_extensions.
3766 (d_language_data): Remove la_filename_extensions initializer.
3767 (d_language::filename_extensions): New member function.
3768 * f-lang.c (f_extensions): Delete, moved into
3769 f_language::filename_extensions.
3770 (f_language_data): Remove la_filename_extensions initializer.
3771 (f_language::filename_extensions): New member function.
3772 * go-lang.c (go_language_data): Remove la_filename_extensions
3773 initializer.
3774 * language.c (add_set_language_command): Update now that
3775 filename_extensions returns a vector.
3776 (unknown_language_data): Remove la_filename_extensions
3777 initializer.
3778 (auto_language_data): Likewise.
3779 * language.h (language_data): Remove la_filename_extensions field.
3780 (language_defn::filename_extensions): New member function.
3781 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3782 initializer.
3783 * objc-lang.c (objc_extensions): Delete, moved into
3784 objc_language::filename_extensions.
3785 (objc_language_data): Remove la_filename_extensions initializer.
3786 (objc_language::filename_extensions): New member function.
3787 * opencl-lang.c (opencl_language_data): Remove
3788 la_filename_extensions initializer.
3789 * p-lang.c (pascal_extensions): Delete, moved into
3790 pascal_language::filename_extensions.
3791 (pascal_language_data): Remove la_filename_extensions initializer.
3792 (pascal_language::filename_extensions): New member function.
3793 * rust-lang.c (rust_extensions): Delete, moved into
3794 rust_language::filename_extensions.
3795 (rust_language_data): Remove la_filename_extensions initializer.
3796 (rust_language::filename_extensions): New member function.
3797 * symfile.c (add_filename_language): Add new assert.
3798
6f7664a9
AB
37992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3800
3801 * ada-lang.c (ada_language_data): Remove la_name and
3802 la_natural_name initializers.
3803 (ada_language::name): New member function.
3804 (ada_language::natural_name): New member function.
3805 * c-lang.c (c_language_data): Remove la_name and
3806 la_natural_name initializers.
3807 (c_language::name): New member function.
3808 (c_language::natural_name): New member function.
3809 (cplus_language_data): Remove la_name and
3810 la_natural_name initializers.
3811 (cplus_language::name): New member function.
3812 (cplus_language::natural_name): New member function.
3813 (asm_language_data): Remove la_name and
3814 la_natural_name initializers.
3815 (asm_language::name): New member function.
3816 (asm_language::natural_name): New member function.
3817 (minimal_language_data): Remove la_name and
3818 la_natural_name initializers.
3819 (minimal_language::name): New member function.
3820 (minimal_language::natural_name): New member function.
3821 * compile/compile.c (compile_to_object): Update call to
3822 lanugage_defn::name.
3823 * d-lang.c (d_language_data): Remove la_name and
3824 la_natural_name initializers.
3825 (d_language::name): New member function.
3826 (d_language::natural_name): New member function.
3827 * expprint.c (print_subexp_standard): Update call to
3828 language_defn::name.
3829 (dump_raw_expression): Likewise
3830 (dump_prefix_expression): Likewise.
3831 * f-lang.c (f_language_data): Remove la_name and
3832 la_natural_name initializers.
3833 (f_language::name): New member function.
3834 (f_language::natural_name): New member function.
3835 * go-lang.c (go_language_data): Remove la_name and
3836 la_natural_name initializers.
3837 (go_language::name): New member function.
3838 (go_language::natural_name): New member function.
3839 * language.c (show_language_command): Update call to
3840 language_defn::name.
3841 (set_language_command): Likewise.
3842 (language_enum): Likewise.
3843 (language_str): Likewise.
3844 (add_set_language_command): Likewise, use
3845 language_defn::natural_name in the doc string.
3846 (unknown_language_data): Remove la_name and
3847 la_natural_name initializers.
3848 (unknown_language::name): New member function.
3849 (unknown_language::natural_name): New member function.
3850 (auto_language_data): Remove la_name and
3851 la_natural_name initializers.
3852 (auto_language::name): New member function.
3853 (auto_language::natural_name): New member function.
3854 (language_lookup_primitive_type_as_symbol): Update call to
3855 language_defn::name.
3856 * language.h (language_data): Remove la_name and la_natural_name
3857 member variables.
3858 (language_defn::name): New member function.
3859 (language_defn::natural_name): New member function.
3860 * m2-lang.c (m2_language_data): Remove la_name and
3861 la_natural_name initializers.
3862 (m2_language::name): New member function.
3863 (m2_language::natural_name): New member function.
3864 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3865 language_defn::natural_name.
3866 * objc-lang.c (objc_language_data): Remove la_name and
3867 la_natural_name initializers.
3868 (objc_language::name): New member function.
3869 (objc_language::natural_name): New member function.
3870 * opencl-lang.c (opencl_language_data): Remove la_name and
3871 la_natural_name initializers.
3872 (opencl_language::name): New member function.
3873 (opencl_language::natural_name): New member function.
3874 * p-lang.c (pascal_language_data): Remove la_name and
3875 la_natural_name initializers.
3876 (pascal_language::name): New member function.
3877 (pascal_language::natural_name): New member function.
3878 * rust-lang.c (rust_language_data): Remove la_name and
3879 la_natural_name initializers.
3880 (rust_language::name): New member function.
3881 (rust_language::natural_name): New member function.
3882 * symtab.c (lookup_language_this): Update call to
3883 language_defn::name.
3884
5bae7c4e
AB
38852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3886
3887 * ada-lang.c (ada_language_data): Remove la_name_of_this
3888 initializer.
3889 * ax-gdb.c (gen_expr): Update call to name_of_this.
3890 * c-exp.y (classify_name): Likewise.
3891 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3892 (cplus_language_data): Likewise.
3893 (cplus_language::name_of_this): New member function.
3894 (asm_language_data): Remove la_name_of_this initializer.
3895 (minimal_language_data): Likewise.
3896 * d-lang.c (d_language_data): Likewise.
3897 (d_language::name_of_this): New member function.
3898 * expprint.c (print_subexp_standard): Update call to name_of_this.
3899 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3900 * go-lang.c (go_language_data): Likewise.
3901 * language.c (unknown_language_data): Likewise.
3902 (unknown_language::name_of_this): New member function.
3903 (auto_language_data): Remove la_name_of_this initializer.
3904 (auto_language::name_of_this): New member function.
3905 * language.h (language_data): Delete la_name_of_this member
3906 variable.
3907 (language_defn::name_of_this): New member function.
3908 * m2-lang.c (m2_language_data): Remove la_name_of_this
3909 initializer.
3910 * objc-lang.c (objc_language_data): Likewise.
3911 (objc_language::name_of_this): New member function.
3912 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3913 initializer.
3914 * p-lang.c (pascal_language_data): Likewise.
3915 (pascal_language::name_of_this): New member function.
3916 * rust-lang.c (rust_language_data): Remove la_name_of_this
3917 initializer.
3918 * symtab.c (lookup_language_this): Update call to name_of_this.
3919 (lookup_symbol_aux): Likewise.
3920 * valops.c (value_of_this): Likewise.
3921
22e3f3ed
AB
39222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3923
3924 * ada-lang.c (ada_language_data): Remove
3925 la_struct_too_deep_ellipsis initializer.
3926 (ada_language::struct_too_deep_ellipsis): New member function.
3927 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3928 initializer.
3929 (cplus_language_data): Likewise.
3930 (asm_language_data): Likewise.
3931 (minimal_language_data): Likewise.
3932 * cp-valprint.c (cp_print_value): Update call to
3933 struct_too_deep_ellipsis.
3934 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3935 initializer.
3936 * f-lang.c (f_language_data): Likewise.
3937 (f_language::struct_too_deep_ellipsis): New member function.
3938 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3939 initializer.
3940 * language.c (unknown_language_data): Likewise.
3941 (auto_language_data): Likewise.
3942 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3943 member variable.
3944 (language_defn::struct_too_deep_ellipsis): New member function.
3945 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3946 initializer.Q
3947 * objc-lang.c (objc_language_data): Likewise.
3948 * opencl-lang.c (opencl_language_data): Likewise.
3949 * p-lang.c (pascal_language_data): Likewise.
3950 * rust-lang.c (rust_language_data): Likewise.
3951 * valprint.c (val_print_check_max_depth): Update call to
3952 struct_too_deep_ellipsis.
3953
ed29e1c7
FW
39542020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3955
3956 * MAINTAINERS (Write After Approval): Add myself.
3957
12d8f940
TT
39582020-09-15 Tom Tromey <tom@tromey.com>
3959
3960 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3961 Remove.
3962
6b5a7bc7
TT
39632020-09-15 Tom Tromey <tom@tromey.com>
3964
3965 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3966 and TYPE_CODE_METHODPTR cases.
3967 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3968 (c_value_print_inner): Update.
3969 * valprint.c (generic_value_print_memberptr): New function, from
3970 c_value_print_memberptr.
3971 (generic_value_print): Use it. Call cplus_print_method_ptr.
3972
47f0e2ff
TT
39732020-09-15 Tom Tromey <tromey@adacore.com>
3974
3975 * python/python-internal.h (PyInt_FromLong): Remove define.
3976 * python/py-value.c (convert_value_from_python): Use
3977 gdb_py_object_from_longest.
3978 * python/py-type.c (typy_get_code): Use
3979 gdb_py_object_from_longest.
3980 * python/py-symtab.c (salpy_get_line): Use
3981 gdb_py_object_from_longest.
3982 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3983 gdb_py_object_from_longest.
3984 * python/py-record.c (recpy_gap_reason_code): Use
3985 gdb_py_object_from_longest.
3986 * python/py-record-btrace.c (recpy_bt_insn_size)
3987 (recpy_bt_func_level, btpy_list_count): Use
3988 gdb_py_object_from_longest.
3989 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3990 gdb_py_object_from_longest. Fix error handling.
3991 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3992 gdb_py_object_from_longest.
3993 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3994 gdb_py_object_from_longest.
3995 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3996 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3997 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3998
512116ce
TT
39992020-09-15 Tom Tromey <tromey@adacore.com>
4000
4001 * python/python.c (gdbpy_parameter_value): Use
4002 gdb_py_object_from_ulongest.
4003
4ab1029c
TT
40042020-09-15 Tom Tromey <tromey@adacore.com>
4005
4006 * python/py-infevents.c (create_register_changed_event_object):
4007 Use gdb_py_object_from_longest.
4008 * python/py-exitedevent.c (create_exited_event_object): Use
4009 gdb_py_object_from_longest.
4010
062534d4
TT
40112020-09-15 Tom Tromey <tromey@adacore.com>
4012
4013 * python/python.c (gdbpy_parameter_value): Use
4014 gdb_py_object_from_longest.
4015 * python/py-type.c (convert_field, typy_range): Use
4016 gdb_py_object_from_longest.
4017 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4018 gdb_py_object_from_longest.
4019 * python/py-lazy-string.c (stpy_get_length): Use
4020 gdb_py_object_from_longest.
4021 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4022 gdb_py_object_from_longest.
4023 * python/py-infevents.c (create_memory_changed_event_object): Use
4024 gdb_py_object_from_longest.
4025 * python/py-inferior.c (infpy_get_num): Use
4026 gdb_py_object_from_longest.
4027 (infpy_get_pid): Likewise.
4028
d1cab987
TT
40292020-09-15 Tom Tromey <tromey@adacore.com>
4030
4031 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4032 defines.
4033 * python/py-value.c (valpy_long): Use
4034 gdb_py_object_from_ulongest.
4035 * python/py-symtab.c (salpy_get_pc): Use
4036 gdb_py_object_from_ulongest.
4037 (salpy_get_last): Likewise.
4038 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4039 gdb_py_object_from_ulongest.
4040 * python/py-lazy-string.c (stpy_get_address): Use
4041 gdb_py_object_from_ulongest.
4042 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4043 * python/py-arch.c (archpy_disassemble): Use
4044 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4045 error handling.
4046
4bde49dc
TT
40472020-09-15 Tom Tromey <tromey@adacore.com>
4048
4049 * python/python-internal.h (gdb_py_long_from_longest): Remove
4050 defines.
4051 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4052 * python/py-type.c (convert_field, typy_get_sizeof): Use
4053 gdb_py_object_from_longest.
4054 * python/py-record-btrace.c (btpy_list_index): Use
4055 gdb_py_object_from_longest.
4056
37431074
TT
40572020-09-15 Tom Tromey <tromey@adacore.com>
4058
4059 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4060 * python/py-record.c (recpy_element_number): Use
4061 gdb_py_object_from_longest.
4062 (recpy_gap_number): Likewise.
4063
cbe25684
TT
40642020-09-15 Tom Tromey <tromey@adacore.com>
4065
4066 * top.c (ui::ui): Update.
4067 (highest_ui_num): Remove.
4068 * top.h (struct ui) <num>: Remove.
4069
db92ac45
TT
40702020-09-15 Tom Tromey <tromey@adacore.com>
4071
4072 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4073 * ui-style.c (ansi_regex_text): Now array.
4074 * rust-exp.y (number_regex_text): Now array.
4075 * linespec.c (linespec_quote_characters): Now array.
4076 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4077 Now arrays.
4078
d2b31b67
SM
40792020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4080
4081 * debuginfod-support.c (debuginfod_client_deleter): New.
4082 (debuginfod_client_up): New.
4083 (debuginfod_init): Return debuginfod_client_up.
4084 (debuginfod_source_query): Adjust.
4085 (debuginfod_debuginfo_query): Adjust.
4086
3246bd8e
SM
40872020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4088
4089 * debuginfod-support.c (debuginfod_source_query): Use
4090 make_unique_xstrdup.
4091
10242f36
SM
40922020-09-14 Simon Marchi <simon.marchi@efficios.com>
4093
4094 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4095 with `type::instance_flags`.
4096
e1044e6a
MM
40972020-09-14 Michael Mullin <masmullin@gmail.com>
4098
4099 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4100 Remove baton parameter.
4101
04902b09
PA
41022020-09-14 Pedro Alves <pedro@palves.net>
4103
4104 * Makefile.in (SELFTESTS_SRCS): Add
4105 unittests/enum-flags-selftests.c.
4106 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4107 btrace_function_flags instead of enum btrace_function_flag.
4108 * compile/compile-c-types.c (convert_qualified): Use
4109 enum_flags::raw.
4110 * compile/compile-cplus-symbols.c (convert_one_symbol)
4111 (convert_symbol_bmsym):
4112 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4113 (compile_cplus_convert_struct_or_union_methods)
4114 (compile_cplus_instance::convert_qualified_base):
4115 * go-exp.y (parse_string_or_char): Add cast to int.
4116 * unittests/enum-flags-selftests.c: New file.
4117 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4118 type to btrace_thread_flags from btrace_thread_flag.
4119 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4120 local's type to btrace_thread_flags from btrace_thread_flag. Add
4121 cast in DEBUG call.
4122
69896a2c
PA
41232020-09-14 Pedro Alves <pedro@palves.net>
4124
4125 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4126 * gdbtypes.c (address_space_name_to_int): Rename to ...
4127 (address_space_name_to_type_instance_flags): ... this.
4128 (address_space_int_to_name): Rename to ...
4129 (address_space_type_instance_flags_to_name): ... this.
4130 * gdbtypes.h (address_space_name_to_int): Rename to ...
4131 (address_space_name_to_type_instance_flags): ... this.
4132 (address_space_int_to_name): Rename to ...
4133 (address_space_type_instance_flags_to_name): ... this.
4134 * type-stack.c (type_stack::insert): Adjust to rename.
4135 * type-stack.h (type_stack::insert): Likewise.
4136
314ad88d
PA
41372020-09-14 Pedro Alves <pedro@palves.net>
4138 Andrew Burgess <andrew.burgess@embecosm.com>
4139
4140 * avr-tdep.c (avr_address_class_type_flags): Return
4141 type_instance_flags.
4142 (avr_address_class_type_flags_to_name): Take a
4143 type_instance_flags.
4144 (avr_address_class_name_to_type_flags): Return bool and take a
4145 type_instance_flags.
4146 * d-lang.c (build_d_types): Use type::set_instance_flags.
4147 * ft32-tdep.c (ft32_address_class_type_flags): Return
4148 type_instance_flags.
4149 (ft32_address_class_type_flags_to_name): Take a
4150 type_instance_flags.
4151 (ft32_address_class_name_to_type_flags): Return bool and take a
4152 type_instance_flags.
4153 (ft32_gdbarch_init): Use type::set_instance_flags.
4154 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4155 * gdbarch.h, gdbarch.c: Regenerate.
4156 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4157 (address_class_name_to_type_flags): Use type_instance_flags and
4158 bool.
4159 * gdbtypes.c (address_space_name_to_int)
4160 (address_space_int_to_name, make_qualified_type): Use
4161 type_instance_flags.
4162 (make_qualified_type): Use type_instance_flags and
4163 type::set_instance_flags.
4164 (make_type_with_address_space, make_cv_type, make_vector_type)
4165 (check_typedef): Use type_instance_flags.
4166 (recursive_dump_type): Cast type_instance_flags to unsigned for
4167 printing.
4168 (copy_type_recursive): Use type::set_instance_flags.
4169 (gdbtypes_post_init): Use type::set_instance_flags.
4170 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4171 <m_instance_flags>: ... this.
4172 <instance_flags, set_instance_flags>: New methods.
4173 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4174 (SET_TYPE_INSTANCE_FLAGS): New.
4175 (address_space_name_to_int, address_space_int_to_name)
4176 (make_type_with_address_space): Pass flags using
4177 type_instance_flags instead of int.
4178 * stabsread.c (cleanup_undefined_types_noname): Use
4179 type::set_instance_flags.
4180 * s390-tdep.c (s390_address_class_type_flags): Return
4181 type_instance_flags.
4182 (s390_address_class_type_flags_to_name): Take a
4183 type_instance_flags.
4184 (s390_address_class_name_to_type_flags): Return bool and take a
4185 type_instance_flags.
4186 * type-stack.c (type_stack::follow_types): Use
4187 type_instance_flags.
4188 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4189
27087b7f
TT
41902020-09-14 Tom Tromey <tromey@adacore.com>
4191
4192 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4193 * x86-tdep.c (x86_is_thunk_register_name)
4194 (x86_in_indirect_branch_thunk): Update.
4195 * sparc64-tdep.c (sparc64_fpu_register_names)
4196 (sparc64_cp0_register_names, sparc64_register_names)
4197 (sparc64_pseudo_register_names): Now const.
4198 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4199 cp0_registers_num>: Now const.
4200 * sparc-tdep.c (sparc_core_register_names)
4201 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4202 (sparc32_pseudo_register_names): Now const.
4203 (validate_tdesc_registers): Update.
4204 * rust-lang.c (rust_extensions): Now const.
4205 * p-lang.c (p_extensions): Now const.
4206 * objc-lang.c (objc_extensions): Now const.
4207 * nto-tdep.c (nto_thread_state_str): Now const.
4208 * moxie-tdep.c (moxie_register_names): Now const.
4209 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4210 Now const.
4211 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4212 (mips_linux_reg_names): Now const.
4213 (mips_gdbarch_init): Update.
4214 * microblaze-tdep.c (microblaze_register_names): Now const.
4215 * m68k-tdep.c (m68k_register_names): Now const.
4216 * m32r-tdep.c (m32r_register_names): Now const.
4217 * ia64-tdep.c (ia64_register_names): Now const.
4218 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4219 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4220 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4221 ymm_avx512_register_names, pkeys_register_names>: Now const.
4222 * i386-tdep.c (i386_register_names, i386_zmm_names)
4223 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4224 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4225 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4226 * f-lang.c (f_extensions): Now const.
4227 * d-lang.c (d_extensions): Now const.
4228 * csky-tdep.c (csky_register_names): Now const.
4229 * charset.c (default_charset_names, charset_enum): Now const.
4230 (_initialize_charset): Update.
4231 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4232 const.
4233 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4234 (bsd_uthread_solib_loaded): Update.
4235 (bsd_uthread_state): Now const.
4236 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4237 (amd64_ymm_avx512_names, amd64_ymmh_names)
4238 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4239 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4240 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4241 (amd64_dword_names): Now const.
4242 * agent.c (can_use_agent_enum): Now const.
4243 * ada-tasks.c (task_states, long_task_states): Now const.
4244 * ada-lang.c (known_runtime_file_name_patterns)
4245 (known_auxiliary_function_name_patterns, attribute_names)
4246 (standard_exc, ada_extensions): Now const.
4247
89806626
SM
42482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4249
4250 * bcache.h (struct bcache) <bcache>: Remove constructor.
4251 <m_hash_function, m_compare_function>: Remove.
4252 <~bcache>: Make virtual.
4253 <compare>: Remove static method, introduce virtual method.
4254 <default_hash>: Remove.
4255 <hash>: New virtual method.
4256 * bcache.c (bcache::expand_hash_table): Update.
4257 (bcache::insert): Update.
4258 (bcache::hash): New.
4259 (bcache::compare): Update comment and parameter names.
4260 * gdbtypes.c (types_deeply_equal): Update.
4261 * psymtab.h (struct psymbol_bcache): New struct.
4262 (class psymtab_storage) <psymtab_storage>: Make default.
4263 <psymbol_cache>: Change type to psymbol_bcache.
4264 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4265 (psymbol_hash): Change to...
4266 (psymbol_bcache::hash): ... this.
4267 (psymbol_compare): Change to...
4268 (psymbol_bcache::compare): ... this.
4269
677c92fe
SM
42702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4271
4272 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4273 checking for initial lwp.
4274
3eba3a01
TT
42752020-09-14 Tom Tromey <tromey@adacore.com>
4276
4277 * m68k-tdep.c (m68k_extract_return_value): Use
4278 pointer_result_regnum.
4279 (m68k_store_return_value): Likewise.
4280 (m68k_reg_struct_return_p): Handle vectors and arrays.
4281 (m68k_return_value): Handle arrays.
4282 (m68k_svr4_return_value): Fix single-element aggregate handling.
4283 Handle long double. Adjust for embedded ABI.
4284 (m68k_svr4_init_abi): Set pointer_result_regnum.
4285 (m68k_embedded_init_abi): New function.
4286 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4287 (m68k_osabi_sniffer): New function.
4288 (_initialize_m68k_tdep): Register osabi sniffer.
4289 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4290 member.
4291
33f4dd48
SM
42922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4293
4294 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4295 with gdb::unique_xmalloc_ptr<char>.
4296
8400a90d
SM
42972020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4298
4299 * xml-support.h (xml_fetch_another): Change type to be a
4300 function_view.
4301 (xml_process_xincludes): Remove baton parameter.
4302 (xml_fetch_content_from_file): Change baton parameter to
4303 dirname.
4304 * xml-support.c (struct xinclude_parsing_data)
4305 <xinclude_parsing_data>: Remove baton parameter.
4306 <fetcher_baton>: Remove.
4307 (xinclude_start_include): Adjust.
4308 (xml_process_xincludes): Adjust.
4309 (xml_fetch_content_from_file): Replace baton parameter with
4310 dirname.
4311 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4312 (xml_init_syscalls_info): Use a lambda.
4313 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4314 (file_read_description_xml): Use a lambda.
4315 (fetch_available_features_from_target): Change baton parameter
4316 to target_ops.
4317 (target_read_description_xml): Use a lambda.
4318 (target_fetch_description_xml): Use a lambda.
4319 (string_read_description_xml): Update.
4320
04f5bab2
SM
43212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4322
4323 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4324 uses with type::endianity_is_not_default.
4325
db558e34
SM
43262020-09-14 Simon Marchi <simon.marchi@efficios.com>
4327
4328 * gdbtypes.h (struct type) <endianity_is_not_default,
4329 set_endianity_is_not_default>: New methods.
4330 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4331 type::endianity_is_not_default, change all write call sites to
4332 use type::set_endianity_is_not_default.
4333
22c4c60c
SM
43342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4335
4336 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4337 uses with type::is_fixed_instance.
4338
9cdd0d12
SM
43392020-09-14 Simon Marchi <simon.marchi@efficios.com>
4340
4341 * gdbtypes.h (struct type) <is_fixed_instance,
4342 set_is_fixed_instance>: New methods.
4343 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4344 write call sites to use type::set_is_fixed_instance.
4345
0becda7a
SM
43462020-09-14 Simon Marchi <simon.marchi@efficios.com>
4347
4348 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4349 uses with type::is_gnu_ifunc.
4350
03cc7249
SM
43512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4352
4353 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4354 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4355 use type::set_is_gnu_ifunc.
4356
3f46044c
SM
43572020-09-14 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4360 uses with type::stub_is_supported.
4361
9baccff6
SM
43622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4365 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4366 use type::set_stub_is_supported.
4367
bd63c870
SM
43682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4369
4370 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4371 uses with type::is_vector.
4372
2062087b
SM
43732020-09-14 Simon Marchi <simon.marchi@efficios.com>
4374
4375 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4376 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4377 use type::set_is_vector.
4378
a409645d
SM
43792020-09-14 Simon Marchi <simon.marchi@efficios.com>
4380
4381 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4382 uses with type::has_varargs.
4383
1d6286ed
SM
43842020-09-14 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4387 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4388 use type::set_has_varargs.
4389
7f9f399b
SM
43902020-09-14 Simon Marchi <simon.marchi@efficios.com>
4391
4392 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4393 uses with type::is_prototyped.
4394
27e69b7a
SM
43952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4396
4397 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4398 New methods.
4399 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4400 call sites to use type::set_is_prototyped.
4401
d2183968
SM
44022020-09-14 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4405 uses with type::target_is_stub.
4406
8f53807e
SM
44072020-09-14 Simon Marchi <simon.marchi@efficios.com>
4408
4409 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4410 New methods.
4411 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4412 sites to use type::set_target_is_stub.
4413
e46d3488
SM
44142020-09-14 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * gdbtypes.h (TYPE_STUB): Remove, replace all
4417 uses with type::is_stub.
4418
b4b73759
SM
44192020-09-14 Simon Marchi <simon.marchi@efficios.com>
4420
4421 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4422 (TYPE_STUB): Use type::is_stub, change all write call sites to
4423 use type::set_is_stub.
4424
20ce4123
SM
44252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4426
4427 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4428 type::has_no_signedness.
4429
15152a54
SM
44302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4431
4432 * gdbtypes.h (struct type) <has_no_signedness,
4433 set_has_no_signedness>: New methods.
4434 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4435 call sites to use type::set_has_no_signedness.
4436
c6d940a9
SM
44372020-09-14 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4440 type::is_unsigned.
4441
653223d3
SM
44422020-09-14 Simon Marchi <simon.marchi@efficios.com>
4443
4444 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4445 methods.
4446 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4447 sites to use type::set_is_unsigned.
4448
55ea94da 44492020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4450 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4451
e851246a
SM
4452 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4453 pointer and stack frame offset when unwinding.
55ea94da 4454
6791b117
PA
44552020-09-13 Pedro Alves <pedro@palves.net>
4456
4457 * NEWS: Document "-break-insert --qualified".
4458 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4459
77f2120b
PA
44602020-09-13 Pedro Alves <pedro@palves.net>
4461
4462 * linespec.c (classify_mtype, compare_msyms): Delete.
4463 (search_minsyms_for_name): Remove classification logic. Instead
4464 filter out trampoline symbols if we also found an external
4465 function of the same name.
4466
ed6a896c
JB
44672020-09-13 Joel Brobecker <brobecker@adacore.com>
4468
4469 * NEWS: Create a new section for the next release branch.
4470 Rename the section of the current branch, now that it has
4471 been cut.
4472
32aea73e
JB
44732020-09-13 Joel Brobecker <brobecker@adacore.com>
4474
4475 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4476 * version.in: Bump version to 11.0.50.DATE-git.
4477
8087c3fa
JB
44782020-09-12 Joel Brobecker <brobecker@adacore.com>
4479
4480 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4481
2a67f09d
FW
44822020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4483 Felix Willgerodt <Felix.Willgerodt@intel.com>
4484
4485 * gdbarch.sh: Added bfloat16 type.
4486 * gdbarch.c: Regenerated.
4487 * gdbarch.h: Regenerated.
4488 * gdbtypes.c (floatformats_bfloat16): New struct.
4489 (gdbtypes_post_init): Add builtin_bfloat16.
4490 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4491 (floatformats_bfloat16): New struct.
4492 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4493 (i386_ymm_type): Add field "v16_bfloat16"
4494 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4495 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4496 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4497 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4498 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4499 * features/i386/64bit-avx512.c: Regenerated.
4500 * features/i386/64bit-sse.xml: Add bfloat16 type.
4501 * features/i386/64bit-sse.c: Regenerated.
4502
1347d111
FW
45032020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4504
4505 * i386-tdep.c (i386_zmm_type): Fix field names.
4506 (i386_ymm_type): Fix field names.
4507
7a4e8e7d
TBA
45082020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4509
4510 * breakpoint.c: Fix typo in the help message of the
4511 "set breakpoint condition-evaluation" command.
4512
cf4ac4be
KR
45132020-09-10 Kamil Rytarowski <n54@gmx.com>
4514
4515 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4516 * (nbsd_nat_target::pid_to_exec_file)
4517 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4518 (nbsd_nat_target::post_startup_inferior)
4519 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4520 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4521 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4522 * (nbsd_thread_lister): Remove.
4523
f404573e
KR
45242020-09-10 Kamil Rytarowski <n54@gmx.com>
4525
4526 * fork-inferior.c (startup_inferior): Avoid double free.
4527
1ccb2c17
KR
45282020-09-10 Kamil Rytarowski <n54@gmx.com>
4529
4530 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4531 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4532
feedfcc7
KR
45332020-09-10 Kamil Rytarowski <n54@gmx.com>
4534
4535 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4536 * netbsd-nat.c: Include <sys/ptrace.h>.
4537 * (netbsd_nat::enable_proc_events): Add.
4538
c489f8c6
KR
45392020-09-10 Kamil Rytarowski <n54@gmx.com>
4540
4541 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4542 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4543 (netbsd_nat::for_each_thread): Add.
4544 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4545 "gdbsupport/common-debug.h".
4546 * (netbsd_nat::netbsd_thread_lister)
4547 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4548 (netbsd_nat::for_each_thread): Add.
4549
330662f6
KR
45502020-09-10 Kamil Rytarowski <n54@gmx.com>
4551
4552 * netbsd-nat.h: Include <unistd.h>.
4553 * (netbsd_nat::pid_to_exec_file): Add.
4554 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4555 * (netbsd_nat::pid_to_exec_file) Add.
4556
70b67307
KR
45572020-09-10 Kamil Rytarowski <n54@gmx.com>
4558
4559 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4560
99cf6da6
KR
45612020-09-10 Kamil Rytarowski <n54@gmx.com>
4562
4563 * netbsd-nat.h: New file.
4564 * netbsd-nat.c: Likewise.
4565
1b788fb6
TT
45662020-09-09 Tom Tromey <tromey@adacore.com>
4567
4568 * ada-lang.c (remove_extra_symbols): Do not increment when
4569 removing an element
4570
03b0a45f
TT
45712020-09-08 Tom Tromey <tromey@adacore.com>
4572
4573 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4574
3cae4447
TT
45752020-09-08 Tom Tromey <tromey@adacore.com>
4576
4577 PR win32/25302:
4578 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4579 (gdb_bfd_init_data): New function.
4580 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4581
7f08fd51
TBA
45822020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4583
4584 * infrun.c (fetch_inferior_event): Use
4585 `switch_to_target_no_thread` to switch the target.
4586
3e6ff933
TT
45872020-09-06 Tom Tromey <tom@tromey.com>
4588
4589 * symfile.h (dwarf2_free_objfile): Don't declare.
4590
e56798df
AKS
45912020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4592
4593 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4594 to match 16 byte real/complex type generated by Flang compiler.
4595
8f5c6526
TV
45962020-09-03 Tom de Vries <tdevries@suse.de>
4597
4598 PR breakpoint/26546
4599 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4600 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4601
c5065df0
SM
46022020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4603
4604 * maint.c (index_digits): New function.
4605 (struct maint_print_section_data): Remove.
4606 (print_bfd_section_info): Remove print_data parameter, add arg
4607 and index_digits.
4608 (print_objfile_section_info): Likewise.
4609 (print_bfd_section_info_maybe_relocated): Likewise (plus
4610 objfile).
4611 (maintenance_info_sections): Adjust calls.
4612
02c6f3f1
TT
46132020-09-02 Tom Tromey <tromey@adacore.com>
4614
4615 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4616 for null pointers.
4617 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4618
ef5e5b0b
SM
46192020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4620
4621 * bcache.h (struct bcache) <insert>: Change type of `added` to
4622 pointer to bool.
4623 * bcache.c (bcache::insert): Likewise.
4624 * gdbtypes.c (check_types_worklist): Adjust.
4625 * psymtab.c (add_psymbol_to_bcache): Adjust.
4626
973695d6
KB
46272020-08-31 Kevin Buettner <kevinb@redhat.com>
4628
4629 * corelow.c (unordered_set): Include.
4630 (class core_target): Add field 'm_core_unavailable_mappings'.
4631 (core_target::build_file_mappings): Print only one warning
4632 per inaccessible file. Add unavailable/broken mappings
4633 to m_core_unavailable_mappings.
4634 (core_target::xfer_partial): Call...
4635 (core_target::xfer_memory_via_mappings): New method.
4636
264fc0e2
SM
46372020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4638
4639 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4640 type to bool.
4641
2de01bdb
SM
46422020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4643
4644 * dwarf2/read.c (struct field_info): Fix indentation.
4645
f3bd50f1
SM
46462020-08-31 Simon Marchi <simon.marchi@efficios.com>
4647
4648 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4649 ordering in comment.
4650 * frame.c (frame_id_eq): Fix indentation.
4651
22b9b4b0
SL
46522020-08-31 Scott Linder <scott@scottlinder.com>
4653 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4656 inline frame ids in outer frame.
4657
84154d16
SM
46582020-08-31 Simon Marchi <simon.marchi@efficios.com>
4659
4660 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4661 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4662 (outer_frame_id): Use FID_STACK_OUTER instead of
4663 FID_STACK_INVALID.
4664 (frame_id_p): Don't check for outer_frame_id.
4665
8efaf6b3
SM
46662020-08-31 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4669 regnum/frame in value. Call allocate_value_lazy.
4670 * frame.c (frame_unwind_register_value): Use
4671 val_print_not_saved.
4672
fe1fe7ea
SM
46732020-08-31 Simon Marchi <simon.marchi@efficios.com>
4674
4675 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4676
f7c7700d
PA
46772020-08-29 Pedro Alves <pedro@palves.net>
4678
4679 * progspace.c (print_program_space): Use all_inferiors. Switch to
4680 the inferior before calling target_pid_to_str.
4681
e0814aae
TT
46822020-08-28 Tom Tromey <tom@tromey.com>
4683
4684 * xcoffread.c (xcoff_end_psymtab): Update comment.
4685 * dbxread.c (dbx_end_psymtab): Update comment.
4686
626d2320
TV
46872020-08-28 Tom de Vries <tdevries@suse.de>
4688
4689 PR breakpoint/26544
4690 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4691 event_location.
4692 (create_breakpoint): Same.
4693 (base_breakpoint_decode_location): Same.
4694 (bkpt_create_sals_from_location): Same.
4695 (bkpt_decode_location): Same.
4696 (bkpt_probe_create_sals_from_location): Same.
4697 (bkpt_probe_decode_location): Same.
4698 (tracepoint_create_sals_from_location): Same.
4699 (tracepoint_decode_location): Same.
4700 (tracepoint_probe_decode_location): Same.
4701 (strace_marker_create_sals_from_location): Same.
4702 (strace_marker_decode_location): Same.
4703 (create_sals_from_location_default): Same.
4704 (decode_location_default): Same.
4705 * breakpoint.h (struct breakpoint_ops): Same.
4706 (create_breakpoint): Same.
4707 * linespec.h (decode_line_full): Same.
4708 * linespec.c (decode_line_full): Same. Throw error if
4709 result.size () == 0.
4710
df631783
PA
47112020-08-27 Pedro Alves <pedro@palves.net>
4712
4713 PR gdb/26524
4714 * breakpoint.c (until_break_fsm) <location_breakpoint,
4715 caller_breakpoint>: Delete fields.
4716 <breakpoints>: New field.
4717 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4718 two individual breakpoints.
4719 (until_break_fsm::should_stop): Loop over breakpoints in the
4720 breakpoint vector.
4721 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4722 vector.
4723 (until_break_command): Handle location expanding into multiple
4724 sals.
4725
b2b38aa4
PA
47262020-08-27 Pedro Alves <pedro@palves.net>
4727
4728 PR gdb/26523
4729 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4730 bp_until breakpoints user-specified locations. Update intro
4731 comment.
4732
b886559f
SM
47332020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4734
4735 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4736 gdb_bfd_sections): New.
4737 * maint.c (print_bfd_section_info): Change param type to
4738 maint_print_section_data.
4739 (print_objfile_section_info): Likewise.
4740 (print_bfd_section_info_maybe_relocated): Likewise.
4741 (maintenance_info_sections): Use gdb_bfd_sections.
4742
4c6e63bf
SV
47432020-08-25 Shahab Vahedi <shahab@synopsys.com>
4744
4745 * MAINTAINERS: Add ARC target and maintainer.
4746
8d7f0635
AK
47472020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4748
4749 * configure.tgt: ARC support for GNU/Linux.
4750 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4751 * arc-linux-tdep.c: New file.
4752 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4753 * arc-tdep.c (arc_write_pc): Use it.
4754
fdd8731b
SV
47552020-08-25 Shahab Vahedi <shahab@synopsys.com>
4756
4757 * arc-tdep.c (arc_check_for_hardware_loop): New.
4758 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4759
22459524
SV
47602020-08-25 Shahab Vahedi <shahab@synopsys.com>
4761
4762 * arc-tdep.h: Include "gdbarch.h".
4763
995d3a19
SV
47642020-08-25 Shahab Vahedi <shahab@synopsys.com>
4765
4766 * arch/arc.h
4767 (arc_gdbarch_features): New class to stir the selection of target XML.
4768 (arc_create_target_description): Use FEATURES to choose XML target.
4769 (arc_lookup_target_description): Use arc_create_target_description
4770 to create _new_ target descriptions or return the already created
4771 ones if the FEATURES is the same.
4772 * arch/arc.c: Implementation of prototypes described above.
4773 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4774 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4775 * arc-tdep.c (*_feature_name): Make feature names consistent.
4776 (arc_register_feature): A new struct to hold information about
4777 registers of a particular target/feature.
4778 (arc_check_tdesc_feature): Check if XML provides registers in
4779 compliance with ARC_REGISTER_FEATURE structs.
4780 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4781 (determine_*_reg_feature_set): Which feature name to look for.
4782 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4783 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4784 to expected ISA enums to be used in arc_gdbarch_features structs.
4785 * features/Makefile (FEATURE_XMLFILES): Add new files.
4786 * gdb/features/arc/v1-aux.c: New file.
4787 * gdb/features/arc/v1-aux.xml: Likewise.
4788 * gdb/features/arc/v1-core.c: Likewise.
4789 * gdb/features/arc/v1-core.xml: Likewise.
4790 * gdb/features/arc/v2-aux.c: Likewise.
4791 * gdb/features/arc/v2-aux.xml: Likewise.
4792 * gdb/features/arc/v2-core.c: Likewise.
4793 * gdb/features/arc/v2-core.xml: Likewise.
4794 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4795
3945d2d7
GM
47962020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4797 Andrew Burgess <andrew.burgess@embecosm.com>
4798
4799 PR m2/26372
fc5d6901 4800 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4801 an assert. Remove single element array indexing pattern as the
4802 MULTI_SUBSCRIPT support will handle this case too.
4803
2677f2d3
SM
48042020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4805
4806 * value.h (valprint_check_validity): Move declaration from
4807 here...
4808 * valprint.h (valprint_check_validity): ... to here.
4809
c426fddb
SM
48102020-08-24 Simon Marchi <simon.marchi@efficios.com>
4811
4812 * debug.h: New file.
4813 * debug.c (debug_prefixed_vprintf): New function.
4814 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4815 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4816
1eb8556f
SM
48172020-08-24 Simon Marchi <simon.marchi@efficios.com>
4818
4819 * infrun.h (infrun_debug_printf_1): New function declaration.
4820 (infrun_debug_printf): New macro.
4821 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4822 throughout.
4823 (infrun_debug_printf): New function.
4824 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4825 (handle_jit_event): Likewise.
4826
b8fff44e
MW
48272020-08-21 Mark Wielaard <mark@klomp.org>
4828
4829 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4830
d19c3068
SM
48312020-08-22 Simon Marchi <simon.marchi@efficios.com>
4832
4833 * frame.c (enum class frame_id_status): New.
4834 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4835 (fprintf_frame): Update.
4836 (compute_frame_id): Set frame id status to "computing" on entry.
4837 Set it back to "not_computed" on failure and to "computed" on
4838 success.
4839 (get_frame_id): Assert the frame id is not being computed.
4840 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4841 (create_new_frame): Likewise.
4842 (frame_cleanup_after_sniffer): Update assert.
4843
b70e516e
SM
48442020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4845
4846 * regcache.c (pid_ptid_regcache_map): New type.
4847 (target_ptid_regcache_map): Remove.
4848 (target_pid_ptid_regcache_map): New type.
4849 (regcaches): Change type to target_pid_ptid_regcache_map.
4850 (get_thread_arch_aspace_regcache): Update.
4851 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4852 case.
4853 (regcaches_size): Update.
4854 (regcache_count): Update.
4855 (registers_changed_ptid_target_pid_test): New.
4856 (_initialize_regcache): Register new test.
4857
cdd9148a
SM
48582020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4859
4860 * regcache.c (regcache_count): New.
4861 (struct regcache_test_data): New.
4862 (regcache_test_data_up): New.
4863 (populate_regcaches_for_test): New.
4864 (regcaches_test): Remove.
4865 (get_thread_arch_aspace_regcache_test): New.
4866 (registers_changed_ptid_all_test): New.
4867 (registers_changed_ptid_target_test): New.
4868 (registers_changed_ptid_target_ptid_test): New.
4869 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4870 (_initialize_regcache): Register new tests.
4871
dd125343
SM
48722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4873
4874 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4875 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4876 gdbarch and aspace parameter. Use current inferior's aspace.
4877 Validate regcache's arch value.
4878 (regcaches_test): Update.
4879
3ee93972
SM
48802020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4881
4882 * regcache.c (regcaches_test): Call registers_changed.
4883
33bf4c5c
TBA
48842020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4885
4886 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4887
c2fd7fae
AKS
48882020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4889
4890 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4891 to find the end of prologue for flang compiled binaries.
4892 * arm-tdep.c (arm_skip_prologue): Likewise.
4893 * i386-tdep.c (i386_skip_prologue): Likewise.
4894 * producer.c (producer_is_llvm): New function.
4895 (producer_parsing_tests): Added new tests for clang/flang.
4896 * producer.h (producer_is_llvm): New declaration.
4897
9327494e
SM
48982020-08-18 Simon Marchi <simon.marchi@efficios.com>
4899
4900 * linux-nat.c (linux_nat_debug_printf): New function.
4901 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4902
d138725a
AM
49032020-08-18 Aaron Merey <amerey@redhat.com>
4904
4905 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4906 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4907 (CLIBS): Add DEBUGINFOD_LIBS.
4908
f9b11e6b
ST
49092020-08-17 Sergei Trofimovich <siarheit@google.com>
4910
4911 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4912 'gdbarch_num_regs'.
4913
3ae7ab99
TT
49142020-08-17 Tom Tromey <tromey@adacore.com>
4915
4916 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4917 ada_get_decoded_value returns NULL.
4918
b017825f
TT
49192020-08-17 Tom Tromey <tromey@adacore.com>
4920
4921 * python/py-inferior.c (infpy_search_memory): Use
4922 gdb_py_object_from_ulongest.
4923 * python/py-infevents.c (create_inferior_call_event_object)
4924 (create_memory_changed_event_object): Use
4925 gdb_py_object_from_ulongest.
4926 * python/py-linetable.c (ltpy_entry_get_pc): Use
4927 gdb_py_object_from_ulongest.
4928
7635cf79
SM
49292020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4930
4931 * loc.c (class symbol_needs_eval_context): Fix indentation.
4932
f54be24b
SM
49332020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4934
4935 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4936 bool.
4937
53d5a2a5
TV
49382020-08-17 Tom de Vries <tdevries@suse.de>
4939
4940 PR gdb/26393
4941 * gdbtypes.c (dump_dynamic_prop): New function.
4942 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4943
547ce8f0
TV
49442020-08-15 Tom de Vries <tdevries@suse.de>
4945
4946 PR backtrace/26390
4947 * stack.c (print_frame_args): Temporarily set the selected
4948 frame to FRAME while printing the frame's arguments.
4949
6ea815e7
PFC
49502020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4951
4952 PR breakpoints/26385
4953 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4954 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4955
6e562fa3
PFC
49562020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4957
4958 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4959 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4960 and >= to check return value instead of == -1 and != -1.
4961
d369b608
SM
49622020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4963
4964 * utils.h (class gdb_argv) <as_array_view>: New method.
4965 * utils.c (gdb_argv_as_array_view_test): New.
4966 (_initialize_utils): Register selftest.
4967 * maint.c (maintenance_selftest): Use the new method.
4968
b31488a3
KR
49692020-08-13 Kamil Rytarowski <n54@gmx.com>
4970
4971 * target.h (supports_dumpcore, dumpcore): New
4972 function declarations.
4973 * target.c (supports_dumpcore, dumpcore): New
4974 functions.
4975 * target-delegates.c: Rebuild.
4976 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4977 and target_dumpcore ().
4978
002a3166
AM
49792020-08-13 Aaron Merey <amerey@redhat.com>
4980
4981 * debuginfod-support.c: Replace global variables with user_data.
4982
ece5bc8a
SM
49832020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4984
4985 * maint.c (maintenance_selftest): Split args and pass array_view
4986 to run_tests.
4987
6d8a0a5e
LM
49882020-08-12 Luis Machado <luis.machado@linaro.org>
4989
4990 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4991 type's length.
4992 Use %s and pulongest to print the length.
4993
7cf663a9
PA
49942020-08-12 Pedro Alves <palves@redhat.com>
4995
4996 * NEWS: Move "Multi-target debugging support" item to the
4997 "Changes since GDB 9" section.
4998
27c7b875
PA
49992020-08-12 Pedro Alves <palves@redhat.com>
5000
5001 PR gdb/26336
5002 * progspace.c (program_space::remove_objfile): Invalidate the
5003 frame cache.
5004
1796a2a1
TV
50052020-08-11 Tom de Vries <tdevries@suse.de>
5006
5007 * MAINTAINERS: Mark ms1 as deleted.
5008
f8e3fe0d
LM
50092020-08-10 Luis Machado <luis.machado@linaro.org>
5010
5011 PR gdb/26310
5012
5013 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5014 act accordingly.
5015 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5016 movz/str/stur/stp skipping behavior.
5017
cc308722
LM
50182020-08-10 Luis Machado <luis.machado@linaro.org>
5019
5020 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5021 struct user_sve_header instead of struct sve_context.
5022
041d9819
SM
50232020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5024
5025 * read.h (dwarf2_fetch_die_loc_sect_off,
5026 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5027 `void *` parameter with function_view.
5028 * read.c (dwarf2_fetch_die_loc_sect_off,
5029 dwarf2_fetch_die_loc_cu_off): Likewise.
5030 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5031 (per_cu_dwarf_call): Adjust.
5032 (get_frame_address_in_block_wrapper): Remove.
5033 (indirect_synthetic_pointer): Adjust.
5034 (get_ax_pc): Remove.
5035 (dwarf2_compile_expr_to_ax): Adjust.
5036
38f8aa06
TV
50372020-08-08 Tom de Vries <tdevries@suse.de>
5038
5039 PR build/26344
5040 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5041 constructor.
5042 * regcache.c (get_thread_arch_aspace_regcache): Same.
5043
a52b3ae2
TT
50442020-08-07 Tom Tromey <tromey@adacore.com>
5045
5046 * ravenscar-thread.c
5047 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5048 New method.
5049 (ravenscar_thread_target::wait): Check
5050 runtime_initialized.
5051 (ravenscar_thread_target::prepare_to_store)
5052 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5053 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5054 (ravenscar_thread_target::stopped_by_watchpoint)
5055 (ravenscar_thread_target::stopped_data_address)
5056 (ravenscar_thread_target::core_of_thread): Use
5057 scoped_restore_current_thread and
5058 set_base_thread_from_ravenscar_task.
5059
0e29517d
TT
50602020-08-07 Tom Tromey <tromey@adacore.com>
5061
5062 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5063
592f9bd7
TT
50642020-08-07 Tom Tromey <tromey@adacore.com>
5065
5066 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5067 update_inferior_ptid before update_thread_list.
5068 (temporarily_change_regcache_ptid): New class.
5069 (ravenscar_thread_target::fetch_registers)
5070 (ravenscar_thread_target::store_registers)
5071 (ravenscar_thread_target::prepare_to_store): Use base thread when
5072 forwarding operation.
5073
39e2018a
TT
50742020-08-07 Tom Tromey <tromey@adacore.com>
5075
5076 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5077 "is_pid" case.
5078
2080266b
TT
50792020-08-07 Tom Tromey <tromey@adacore.com>
5080
5081 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5082 New methods.
5083 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5084 first.
5085 (ravenscar_thread_target::add_thread): Rename from
5086 ravenscar_add_thread.
5087 (ravenscar_thread_target::update_thread_list): Use a lambda.
5088 (ravenscar_thread_target::xfer_partial): New method.
5089
78c02f21
TT
50902020-08-07 Tom Tromey <tromey@adacore.com>
5091
5092 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5093 gdb::function_view.
5094 (iterate_over_live_ada_tasks): Change type of argument.
5095 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5096 of argument.
5097
d5d833af
TT
50982020-08-07 Tom Tromey <tromey@adacore.com>
5099
5100 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5101 Remove.
5102 (ravenscar_thread_target::extra_thread_info): Remove.
5103 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5104 defer to target beneath for non-Ravenscar threads.
5105
a8ac85bb
TT
51062020-08-07 Tom Tromey <tromey@adacore.com>
5107
5108 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5109 get_base_thread_from_ravenscar_task>: Now methods.
5110 <m_cpu_map>: New member.
5111 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5112 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5113 (ravenscar_thread_target::task_is_currently_active): Update.
5114 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5115 Now a method.
5116 (ravenscar_thread_target::add_active_thread): Put initial thread
5117 into the m_cpu_map.
5118
550ab58d
TT
51192020-08-07 Tom Tromey <tromey@adacore.com>
5120
5121 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5122 event_ptid.
5123
e9546579
TT
51242020-08-07 Tom Tromey <tromey@adacore.com>
5125
5126 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5127 runtime_initialized.
5128
3d4470e5
TT
51292020-08-07 Tom Tromey <tromey@adacore.com>
5130
5131 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5132 add_active_thread.
5133 (ravenscar_thread_target::add_active_thread): Now public.
5134 (ravenscar_inferior_created): Call add_active_thread after pushing
5135 the target.
5136
888bdb2b
SM
51372020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5138
5139 * regcache.c (ptid_regcache_map): New type.
5140 (target_ptid_regcache_map): New type.
5141 (regcaches): Change type to target_ptid_regcache_map.
5142 (get_thread_arch_aspace_regcache): Update to regcaches' new
5143 type.
5144 (regcache_thread_ptid_changed): Likewise.
5145 (registers_changed_ptid): Likewise.
5146 (regcaches_size): Likewise.
5147 (regcaches_test): Update.
5148 (regcache_thread_ptid_changed): Update.
5149 * regcache.h (regcache_up): New type.
5150 * gdbsupport/ptid.h (hash_ptid): New struct.
5151
b161a60d
SM
51522020-08-07 Simon Marchi <simon.marchi@efficios.com>
5153
5154 * observable.h (thread_ptid_changed): Add parameter
5155 `process_stratum_target *`.
5156 * infrun.c (infrun_thread_ptid_changed): Add parameter
5157 `process_stratum_target *` and use it.
5158 (selftests): New namespace.
5159 (infrun_thread_ptid_changed): New function.
5160 (_initialize_infrun): Register selftest.
5161 * regcache.c (regcache_thread_ptid_changed): Add parameter
5162 `process_stratum_target *` and use it.
5163 (regcache_thread_ptid_changed): New function.
5164 (_initialize_regcache): Register selftest.
5165 * thread.c (thread_change_ptid): Pass target to
5166 thread_ptid_changed observable.
5167
d2854d8d
CT
51682020-08-06 Caroline Tice <cmtice@google.com>
5169
fe4c3d43
SM
5170 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5171 (struct dwp_sections): Update field comments. Add loclists and
5172 rnglists fields.
5173 (struct virtual_v2_dwo_sections): Rename struct to
5174 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5175 size & offset fields for loclists and rnglists.
5176 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5177 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5178 skipping dummy type units.
5179 (create_dwp_hash_table): Update the large comment above the function to
5180 discuss Version 5 DWP files as well, with references. Update all the
5181 version checks in the function to check for version 5 as well. Add new
5182 section at the end to create dwp hash table for version 5.
5183 (create_dwp_v2_section): Rename function to
5184 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5185 Add V5 to error message text.
5186 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5187 into calls to create_dwp_v2_or_v5_section.
5188 (create_dwo_unit_in_dwp_v5): New function.
5189 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5190 check for version2; add else clause to handle version 5.
5191 (open_and_init_dwo_file): Add code to check dwarf version & only call
5192 create_debug_types_hash_table (with sections.types) if version is not 5;
5193 else call create_debug_type_hash_table, with sections.info.
5194 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5195 version 5.
5196 (dwarf2_locate_v5_dwp_sections): New function.
5197 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5198 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5199
159ed7d9
SM
52002020-08-06 Simon Marchi <simon.marchi@efficios.com>
5201
5202 * regcache.h (class regcache): Remove friend
5203 registers_changed_ptid.
5204 <regcache_thread_ptid_changed>: Remove.
5205 <regcaches>: Remove.
5206 * regcache.c (regcache::regcaches): Rename to...
5207 (regcaches): ... this. Make static.
5208 (get_thread_arch_aspace_regcache): Update.
5209 (regcache::regcache_thread_ptid_changed): Rename to...
5210 (regcache_thread_ptid_changed): ... this. Update.
5211 (class regcache_access): Remove.
5212 (regcaches_test): Update.
5213 (_initialize_regcache): Update.
5214 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5215 <forward_list>.
5216
174981ae
SM
52172020-08-06 Simon Marchi <simon.marchi@efficios.com>
5218
5219 * regcache.h (class regcache) <current_regcache>: Rename to...
5220 <regcaches>: ... this. Move doc here.
5221 * regcache.c (regcache::current_regcache) Rename to...
5222 (regcache::regcaches): ... this. Move doc to header.
5223 (get_thread_arch_aspace_regcache): Update.
5224 (regcache::regcache_thread_ptid_changed): Update.
5225 (registers_changed_ptid): Update.
5226 (class regcache_access) <current_regcache_size>: Rename to...
5227 <regcaches_size>: ... this.
5228 (current_regcache_test): Rename to...
5229 (regcaches_test): ... this.
5230 (_initialize_regcache): Update.
5231
ed908db6
VC
52322020-08-06 Victor Collod <vcollod@nvidia.com>
5233
5234 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5235
b5582ab7
KB
52362020-08-05 Kevin Buettner <kevinb@redhat.com>
5237
5238 * corelow.c (core_target::build_file_mappings): Don't output
5239 null pathname in warning.
5240
ea946b86
SM
52412020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5242
5243 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5244 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5245 gdb.dwarf2/dw2-single-line-discriminators.exp,
5246 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5247
57d02173
TT
52482020-08-05 Tom Tromey <tromey@adacore.com>
5249
5250 PR rust/26197:
5251 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5252 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5253 Fix off-by-one and type size errors in ordinary case.
5254
5555c86d
TV
52552020-08-05 Tom de Vries <tdevries@suse.de>
5256
5257 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5258 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5259
97916bfe
SM
52602020-08-04 Simon Marchi <simon.marchi@efficios.com>
5261
5262 * frame.h (frame_id_p): Return bool.
5263 (frame_id_artificial_p): Return bool.
5264 (frame_id_eq): Return bool.
5265 (has_stack_frames): Return bool.
5266 (get_selected_frame): Fix typo in comment.
5267 (get_frame_pc_if_available): Return bool.
5268 (get_frame_address_in_block_if_available): Return bool.
5269 (get_frame_func_if_available): Return bool.
5270 (read_frame_register_unsigned): Return bool.
5271 (get_frame_register_bytes): Return bool.
5272 (safe_frame_unwind_memory): Return bool.
5273 (deprecated_frame_register_read): Return bool.
5274 (frame_unwinder_is): Return bool.
5275 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5276 bool.
5277 <this_id::p>: Likewise.
5278 <prev_p>: Likewise.
5279 (frame_stash_add): Return bool.
5280 (get_frame_id): Use bool.
5281 (frame_id_build_special) Use bool.
5282 (frame_id_build_unavailable_stack): Use bool.
5283 (frame_id_build): Use bool.
5284 (frame_id_p): Return bool, use true/false instead of 1/0.
5285 (frame_id_artificial_p): Likewise.
5286 (frame_id_eq): Likewise.
5287 (frame_id_inner): Likewise.
5288 (get_frame_func_if_available): Likewise.
5289 (read_frame_register_unsigned): Likewise.
5290 (deprecated_frame_register_read): Likewise.
5291 (get_frame_register_bytes): Likewise.
5292 (has_stack_frames): Likewise.
5293 (inside_main_func): Likewise.
5294 (inside_entry_func): Likewise.
5295 (get_frame_pc_if_available): Likewise.
5296 (get_frame_address_in_block_if_available): Likewise.
5297 (frame_unwinder_is): Likewise.
5298 (safe_frame_unwind_memory): Likewise.
5299 (frame_unwind_arch): Likewise.
5300
fedfee88
SM
53012020-08-04 Simon Marchi <simon.marchi@efficios.com>
5302
5303 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5304 type to cached_copy_status.
5305 (fprintf_frame): Adjust.
5306 (get_frame_func_if_available): Adjust.
5307 (frame_cleanup_after_sniffer): Adjust.
5308
6cfa9b59
MW
53092020-08-04 Mark Wielaard <mark@klomp.org>
5310
5311 * MAINTAINERS (Write After Approval): Update email address.
5312
66d6346b
SM
53132020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5314
5315 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5316 dynamic_prop::const_val.
5317
8a6d5e35
SM
53182020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5319
5320 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5321 dynamic_prop::kind.
5322
51d6067d
SM
53232020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5324
5325 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5326
b26e2ae7
JM
53272020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5328
5329 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5330
39791af2
JM
53312020-08-04 Weimin Pan <weimin.pan@oracle.com>
5332 Jose E. Marchesi <jose.marchesi@oracle.com>
5333
5334 * configure.tgt: Add entry for bpf-*-*.
5335 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5336 (ALLDEPFILES): Add bpf-tdep.c.
5337 * bpf-tdep.c: New file.
5338 * MAINTAINERS: Add bpf target and maintainer.
5339 * NEWS: Mention the support for the new target.
5340
521894aa
TV
53412020-08-04 Tom de Vries <tdevries@suse.de>
5342
5343 PR symtab/23270
5344 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5345 Error.
5346
5d6356e9
JB
53472020-08-03 John Baldwin <jhb@FreeBSD.org>
5348
5349 * syscalls/freebsd.xml: Regenerate.
5350
0cf82b81
JB
53512020-08-03 John Baldwin <jhb@FreeBSD.org>
5352
5353 * syscalls/update-freebsd.sh: Fix usage and year range.
5354
8f34b746
TV
53552020-08-03 Tom de Vries <tdevries@suse.de>
5356
5357 PR symtab/26333
5358 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5359 DW_LNE_lo_user/DW_LNE_hi_user range.
5360
5e500d33
SM
53612020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5362
5363 PR ada/26318
5364 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5365 kind.
5366
78319c15
TBA
53672020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5368
5369 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5370
4c55e970
TBA
53712020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5372
5373 * breakpoint.c (set_breakpoint_condition): Update the condition
5374 expressions after checking that the input condition string parses
5375 successfully and does not contain junk at the end.
5376
1e620590
TBA
53772020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5378
5379 * breakpoint.c (set_breakpoint_condition): Update the
5380 condition string after parsing the new condition successfully.
5381
c8693053
RO
53822020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5383
5384 * proc-api.c (_STRUCTURED_PROC): Don't define.
5385 * proc-events.c: Likewise.
5386 * proc-flags.c: Likewise.
5387 * proc-why.c: Likewise.
5388 * procfs.c: Likewise.
5389
5390 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5391 * configure, config.in: Regenerate.
5392
5a99adb8
TV
53932020-07-30 Tom de Vries <tdevries@suse.de>
5394
5395 PR build/26320
5396 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5397 m_red/m_green/m_blue in a union.
5398
8ba83e91
TV
53992020-07-29 Tom de Vries <tdevries@suse.de>
5400
5401 PR tdep/26280
5402 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5403
f75a0693
AB
54042020-07-28 Tom Tromey <tromey@adacore.com>
5405
5406 PR symtab/26270:
5407 * symtab.h (find_pc_partial_function_sym): Declare.
5408 * cli/cli-cmds.c (disassemble_command): Use
5409 find_pc_partial_function_sym. Check asm_demangle.
5410 * blockframe.c (cache_pc_function_sym): New global.
5411 (cache_pc_function_name): Remove.
5412 (clear_pc_function_cache): Update.
5413 (find_pc_partial_function_sym): New function, from
5414 find_pc_partial_function.
5415 (find_pc_partial_function): Rewrite using
5416 find_pc_partial_function_sym.
5417
16f3242c
TT
54182020-07-28 Tom Tromey <tromey@adacore.com>
5419
5420 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5421 help. Add usage.
5422
4888741a
TT
54232020-07-28 Tom Tromey <tromey@adacore.com>
5424
5425 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5426 <DW_OP_GNU_variable_value>: Cast to address type.
5427
4d46f402
KR
54282020-07-28 Kamil Rytarowski <n54@gmx.com>
5429
5430 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5431 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5432 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5433 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5434 (nbsd_get_siginfo_type): New.
5435 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5436 (_initialize_nbsd_tdep): New.
5437
d70f978b
L
54382020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5439
5440 PR binutils/26301
5441 * configure: Regenerated.
5442
377170fa
L
54432020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5444
5445 PR binutils/26301
5446 * configure: Regenerated.
5447
43d5901d
AB
54482020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5449
5450 * python/py-frame.c: Remove 'user-regs.h' include.
5451 (frapy_read_register): Rewrite to make use of
5452 gdbpy_parse_register_id.
5453 * python/py-registers.c (gdbpy_parse_register_id): New function,
5454 moved here from python/py-unwind.c. Updated the return type, and
5455 also accepts register descriptor objects.
5456 * python/py-unwind.c: Remove 'user-regs.h' include.
5457 (pyuw_parse_register_id): Moved to python/py-registers.c.
5458 (unwind_infopy_add_saved_register): Update to use
5459 gdbpy_parse_register_id.
5460 (pending_framepy_read_register): Likewise.
5461 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5462
14fa8fb3
AB
54632020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5464
5465 * python/py-registers.c: Add 'user-regs.h' include.
5466 (register_descriptor_iter_find): New function.
5467 (register_descriptor_iterator_object_methods): New static global
5468 methods array.
5469 (register_descriptor_iterator_object_type): Add pointer to methods
5470 array.
5471
ddce1758
JB
54722020-07-27 John Baldwin <jhb@FreeBSD.org>
5473
5474 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5475 for all architectures on FreeBSD 11.3 and later.
5476
a4089f52
TT
54772020-07-27 Tom Tromey <tromey@adacore.com>
5478
5479 * gcore.h (load_corefile): Don't declare.
5480
95420d30
TV
54812020-07-27 Tom de Vries <tdevries@suse.de>
5482
5483 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5484 * config.in: Regenerate.
5485 * configure: Regenerate.
5486
05a6b8c2
EZ
54872020-07-26 Eli Zaretskii <eliz@gnu.org>
5488
5489 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5490 ws2tcpip.h. When checking whether socklen_t type is defined, use
5491 ws2tcpip.h if it is available and sys/socket.h isn't.
5492 * configure: Regenerate.
5493 * config.in: Regenerate.
5494
e79eb02f
AB
54952020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5496
5497 PR fortran/23051
5498 PR fortran/26139
5499 * valops.c (value_ind): Pass address to
5500 readjust_indirect_value_type.
5501 * value.c (readjust_indirect_value_type): Make parameter
5502 non-const, and add extra address parameter. Resolve original type
5503 before using it.
5504 * value.h (readjust_indirect_value_type): Update function
5505 signature and comment.
5506
876518dd
TV
55072020-07-25 Tom de Vries <tdevries@suse.de>
5508
5509 PR symtab/26243
5510 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5511 entries.
5512
f6720b1c
AM
55132020-07-24 Aaron Merey <amerey@redhat.com>
5514
5515 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5516 * configure: Rebuild.
5517
513487e1
KB
55182020-07-23 Kevin Buettner <kevinb@redhat.com>
5519
5520 PR corefiles/26294
5521 * corelow.c (_initialize_corelow): Add period to help text
5522 for "maintenance print core-file-backed-mappings".
5523
e7bc9db8
PA
55242020-07-23 Pedro Alves <pedro@palves.net>
5525
5526 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5527 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5528 meanwhile.
5529 * frame.c (frame_cache_generation, get_frame_cache_generation):
5530 New.
5531 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5532 (get_prev_frame_if_no_cycle): On exception, don't touch
5533 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5534 * frame.h (get_frame_cache_generation): Declare.
5535
90fcc466
TV
55362020-07-23 Tom de Vries <tdevries@suse.de>
5537
5538 PR tui/26282
5539 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5540 New default constructor.
5541
78344df7
AB
55422020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5543
5544 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5545 exclude non-statement entries.
5546
b089853a
KB
55472020-07-22 Kevin Buettner <kevinb@redhat.com>
5548
5549 * NEWS (New commands): Mention new command
5550 "maintenance print core-file-backed-mappings".
5551
09c2f5d4
KB
55522020-07-22 Kevin Buettner <kevinb@redhat.com>
5553
5554 * corelow.c (gdbcmd.h): Include.
5555 (core_target::info_proc_mappings): New method.
5556 (get_current_core_target): New function.
5557 (maintenance_print_core_file_backed_mappings): New function.
5558 (_initialize_corelow): Add core-file-backed-mappings to
5559 "maint print" commands.
5560
9c5ec5c2 55612020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5562
9c5ec5c2
KB
5563 * linux-tdep.c (dump_note_entry_p): New function.
5564 (linux_dump_mapping_p_ftype): New typedef.
5565 (linux_find_memory_regions_full): Add new parameter,
5566 should_dump_mapping_p.
5567 (linux_find_memory_regions): Adjust call to
5568 linux_find_memory_regions_full.
5569 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5570 call to linux_find_memory_regions_full.
5571
db082f59
KB
55722020-07-22 Kevin Buettner <kevinb@redhat.com>
5573
5574 * corelow.c (solist.h, unordered_map): Include.
5575 (class core_target): Add field m_core_file_mappings and
5576 method build_file_mappings.
5577 (core_target::core_target): Call build_file_mappings.
5578 (core_target::~core_target): Free memory associated with
5579 m_core_file_mappings.
5580 (core_target::build_file_mappings): New method.
5581 (core_target::xfer_partial): Use m_core_file_mappings
5582 for memory transfers.
5583 * linux-tdep.c (linux_read_core_file_mappings): New
5584 function.
5585 (linux_core_info_proc_mappings): Rewrite to use
5586 linux_read_core_file_mappings.
5587 (linux_init_abi): Register linux_read_core_file_mappings.
5588
7e183d27
KB
55892020-07-22 Kevin Buettner <kevinb@redhat.com>
5590
5591 * arch-utils.c (default_read_core_file_mappings): New function.
5592 * arch-utils.c (default_read_core_file_mappings): Declare.
5593 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5594 * gdbarch.h, gdbarch.c: Regenerate.
5595
2735d421
KB
55962020-07-22 Kevin Buettner <kevinb@redhat.com>
5597
5598 PR corefiles/25631
5599 * corelow.c (core_target:xfer_partial): Revise
5600 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5601 case after first checking the stratum beneath the core
5602 target.
5603 (has_all_memory): Return true.
5604 * target.c (raw_memory_xfer_partial): Revise comment
5605 regarding use of has_all_memory.
5606
e56cb451
KB
56072020-07-22 Kevin Buettner <kevinb@redhat.com>
5608
5609 * exec.h (section_table_xfer_memory): Revise declaration,
5610 replacing section name parameter with an optional callback
5611 predicate.
5612 * exec.c (section_table_xfer_memory): Likewise.
5613 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5614 of section_table_xfer_memory.
5615
32fa152e
TT
56162020-07-22 Tom Tromey <tromey@adacore.com>
5617
5618 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5619 lookup_symbol_search_name.
5620
a67a1c41
AB
56212020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5622
5623 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5624 redundant local variable.
5625 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5626 reference, not pointer, update code accordingly.
5627
a7b4ff4f
SM
56282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5629 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5630
5631 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5632 * jit.c (jit_breakpoint_re_set_internal): Use the
5633 `skip_jit_symbol_lookup` field.
5634
2340e834
SM
56352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5636 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5637
5638 * jit.c (jit_read_descriptor): Define the descriptor address once,
5639 use twice.
5640 (jit_breakpoint_deleted): Move the declaration of the loop variable
5641 `iter` into the loop header.
5642 (jit_breakpoint_re_set_internal): Move the declaration of the local
5643 variable `objf_data` to the first point of definition.
5644 (jit_event_handler): Move the declaration of local variables
5645 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5646 Rename `objf` to `jited`.
5647
c1072906
SM
56482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5649
5650 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5651 Remove.
5652 * jit.c (get_jiter_objfile_data): Update.
5653
c8474dc3
TBA
56542020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5655 Simon Marchi <simon.marchi@polymtl.ca>
5656
5657 * jit.c (struct jit_program_space_data): Remove.
5658 (jit_program_space_key): Remove.
5659 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5660 stuff.
5661 (get_jit_program_space_data): Remove.
5662 (jit_breakpoint_deleted): Iterate on all of the program space's
5663 objfiles.
5664 (jit_inferior_init): Likewise.
5665 (jit_breakpoint_re_set_internal): Likewise. Also change return
5666 type to void.
5667 (jit_breakpoint_re_set): Pass current_program_space to
5668 jit_breakpoint_re_set_internal.
5669
77208eb7
SM
56702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5671
5672 * jit.h (struct jiter_objfile_data) <cached_code_address,
5673 jit_breakpoint>: Move to here from ...
5674 * jit.c (jit_program_space_data): ... here.
5675 (jiter_objfile_data::~jiter_objfile_data): Update.
5676 (jit_breakpoint_deleted): Update.
5677 (jit_breakpoint_re_set_internal): Update.
5678
8c1c720f
SM
56792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5680
5681 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5682 checks.
5683 (jit_read_descriptor): Remove NULL check.
5684 (jit_event_handler): Add an assertion.
5685
0e74a041
SM
56862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5687
5688 * jit.h (struct jit_objfile_data): Split into...
5689 (struct jiter_objfile_data): ... this ...
5690 (struct jited_objfile_data): ... and this.
5691 * objfiles.h (struct objfile) <jit_data>: Remove.
5692 <jiter_data, jited_data>: New fields.
5693 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5694 (jiter_objfile_data::~jiter_objfile_data): ... this.
5695 (get_jit_objfile_data): Rename to ...
5696 (get_jiter_objfile_data): ... this.
5697 (add_objfile_entry): Update.
5698 (jit_read_descriptor): Use get_jiter_objfile_data.
5699 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5700 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5701 (jit_inferior_exit_hook): Use objfile's jited_data field.
5702
238b5c9f
SM
57032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5704
5705 * jit.h: Forward-declare `struct minimal_symbol`.
5706 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5707 constructor, destructor, and an objfile* field.
5708 * jit.c (jit_objfile_data): Remove.
5709 (struct jit_objfile_data): Migrate from here to jit.h.
5710 (jit_objfile_data::~jit_objfile_data): New destructor
5711 implementation with code moved from free_objfile_data.
5712 (free_objfile_data): Delete.
5713 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5714 (jit_find_objf_with_entry_addr): Ditto.
5715 (jit_inferior_exit_hook): Ditto.
5716 (_initialize_jit): Remove the call to
5717 register_objfile_data_with_cleanup.
5718 * objfiles.h (struct objfile) <jit_data>: New field.
5719
fe053b9e
TBA
57202020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5721
5722 * jit.h: Forward-declare `struct objfile`.
5723 (jit_event_handler): Add a second parameter, the JITer objfile.
5724 * jit.c (jit_read_descriptor): Change the signature to take the
5725 JITer objfile as an argument instead of the jit_program_space_data.
5726 (jit_inferior_init): Update the call to jit_read_descriptor.
5727 (jit_event_handler): Use the new JITer objfile argument when calling
5728 jit_read_descriptor.
5729 * breakpoint.c (handle_jit_event): Update the call to
5730 jit_event_handler to pass the JITer objfile.
5731
4cec0c66
JB
57322020-07-21 John Baldwin <jhb@FreeBSD.org>
5733
5734 * gdbarch.c: Regenerate.
5735 * gdbarch.h: Regenerate.
5736 * gdbarch.sh (handle_segmentation_fault): Remove method.
5737 * infrun.c (handle_segmentation_fault): Remove.
5738 (print_signal_received_reason): Remove call to
5739 handle_segmentation_fault.
5740
0e42f66a
JB
57412020-07-21 John Baldwin <jhb@FreeBSD.org>
5742
5743 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5744 Rename to sparc64_linux_report_signal_info and add siggnal
5745 argument.
5746 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5747 instead of sparc64_linux_handle_segmentation_fault.
5748
77bdfeb2
JB
57492020-07-21 John Baldwin <jhb@FreeBSD.org>
5750
5751 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5752 i386_linux_report_signal_info instead of
5753 i386_linux_handle_segmentation_fault.
5754 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5755 to i386_linux_report_signal_info and add siggnal argument.
5756 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5757 of i386_linux_handle_segmentation_fault.
5758 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5759 to i386_linux_report_signal_info and add siggnal argument.
5760
ad97bfc5
JB
57612020-07-21 John Baldwin <jhb@FreeBSD.org>
5762
5763 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5764 hook if present.
5765
272bb05c
JB
57662020-07-21 John Baldwin <jhb@FreeBSD.org>
5767
5768 * gdbarch.c: Regenerate.
5769 * gdbarch.h: Regenerate.
5770 * gdbarch.sh (report_signal_info): New method.
5771 * infrun.c (print_signal_received_reason): Invoke gdbarch
5772 report_signal_info hook if present.
5773
baf8791e
AB
57742020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5775
5776 * python/py-registers.c : Add 'unordered_map' include.
5777 (gdbpy_new_reggroup): Renamed to...
5778 (gdbpy_get_reggroup): ...this. Update to only create register
5779 group descriptors when needed.
5780 (gdbpy_reggroup_iter_next): Update.
5781
f7306dac
AB
57822020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5783
5784 * python/py-registers.c (gdbpy_register_object_data): New static
5785 global.
5786 (gdbpy_register_object_data_init): New function.
5787 (gdbpy_new_register_descriptor): Renamed to...
5788 (gdbpy_get_register_descriptor): ...this, and update to reuse
5789 existing register descriptors where possible.
5790 (gdbpy_register_descriptor_iter_next): Update.
5791 (gdbpy_initialize_registers): Register new gdbarch data.
5792
05c309a8
SM
57932020-07-21 Simon Marchi <simon.marchi@efficios.com>
5794
5795 * linux-nat.c (stopped_pids): Make static.
5796
d1fd641e
SM
57972020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5798
5799 PR ada/26235
5800 * gdbtypes.c (ada_discrete_type_low_bound,
5801 ada_discrete_type_high_bound): Handle undefined bounds.
5802
1de14d77
KR
58032020-07-21 Kamil Rytarowski <n54@gmx.com>
5804
5805 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5806 declaration.
5807 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5808 function.
5809
ed810cc7
JB
58102020-07-20 John Baldwin <jhb@FreeBSD.org>
5811
5812 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5813 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5814 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5815 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5816 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5817 method.
5818
ae5369e7
LC
58192020-07-20 Ludovic Courtès <ludo@gnu.org>
5820
5821 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5822 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5823 which are deprecated in Guile 3.0.
5824 * configure.ac (try_guile_versions): Add "guile-3.0".
5825 * configure (try_guile_versions): Regenerate.
5826 * NEWS: Update entry.
5827
68cf161c
LC
58282020-07-20 Ludovic Courtès <ludo@gnu.org>
5829 Doug Evans <dje@google.com>
5830
5831 PR gdb/21104
5832 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5833 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5834 USING_GUILE_BEFORE_2_2.
5835 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5836 Change type to 'scm_t_port_type *'.
5837 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5838 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5839 parameter and honor it. Update callers.
5840 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5841 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5842 functions.
5843 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5844 USING_GUILE_BEFORE_2_2.
5845 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5846 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5847 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5848 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5849 and 'SCM_PORT_TYPE'.
5850 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5851 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5852 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5853 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5854 [!USING_GUILE_BEFORE_2_2]: New functions.
5855 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5856 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5857 'gdbscm_memory_port_read'.
5858 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5859 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5860 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5861 function.
5862 (ioscm_init_memory_port): Remove.
5863 (ioscm_init_memory_port_stream): New function
5864 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5865 function.
5866 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5867 Return scm_from_uint (0).
5868 (gdbscm_set_memory_port_read_buffer_size_x)
5869 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5870 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5871 Return scm_from_uint (0).
5872 (gdbscm_set_memory_port_write_buffer_size_x)
5873 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5874 * configure.ac (try_guile_versions): Add "guile-2.2".
5875 * configure: Regenerate.
5876 * NEWS: Add entry.
5877
aee91db3
TT
58782020-07-18 Tom Tromey <tom@tromey.com>
5879
5880 * linux-nat.c (linux_multi_process): Remove.
5881 (linux_nat_target::supports_multi_process): Return true.
5882
0e267416
AB
58832020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5884
5885 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5886 (riscv_lookup_target_description): Return pointer out of
5887 unique_ptr.
5888 * target-descriptions.c (allocate_target_description): Add
5889 comment.
5890 (target_desc_deleter::operator()): Likewise.
5891 * target-descriptions.h (struct target_desc_deleter): Moved to
5892 gdbsupport/tdesc.h.
5893 (target_desc_up): Likewise.
5894
f80c8ec4
TT
58952020-07-17 Tom Tromey <tromey@adacore.com>
5896
5897 * linux-nat.c (linux_nat_target::supports_non_stop)
5898 (linux_nat_target::always_non_stop_p): Use "true".
5899 (linux_nat_target::supports_disable_randomization): Use "true" and
5900 "false".
5901
d0ce17d8
CT
59022020-07-16 Caroline Tice <cmtice@google.com>
5903
5904 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5905 (RNGLIST_HEADER_SIZE64): New constant definition.
5906 (struct dwop_section_names): Add rnglists_dwo.
5907 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5908 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5909 (struct dwo_sections): Add rnglists field.
5910 (read_attribut_reprocess): Add tag parameter.
5911 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5912 (cu_debug_rnglists_section): New function (decl & definition).
5913 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5914 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5915 die whose range is being checked; get rnglist section from
5916 cu_debug_rnglists_section, to get from either objfile or dwo file as
5917 appropriate. Add cases for DW_RLE_base_addressx,
5918 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5919 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5920 test inside if-condition and updating complaint message.
5921 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5922 dwarf2_rnglists_process.
5923 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5924 dwarf2_ranges_process.
5925 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5926 need_ranges_base and update comment appropriately. Also pass die tag
5927 to dwarf2_ranges_read.
5928 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5929 need_ranges_base and update comment appropriately. Also pass die tag
5930 to dwarf2_ranges_process.
5931 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5932 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5933 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5934 need_ranges_base and update comment appropriately. Also pass die tag
5935 to read_attribute_reprocess and dwarf2_ranges_read.
5936 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5937 and update function comment appropriately.
5938 (read_loclist_index): Call read_loclists_rnglists_header instead of
5939 read_loclist_header.
5940 (read_rnglist_index): New function.
5941 (read_attribute_reprocess): Add tag parameter. Add code for
5942 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5943 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5944
3dcc261c
AB
59452020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5946
5947 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5948 being resolved.
5949
ccb9eba6
AB
59502020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5951
5952 * arch-utils.c (show_architecture): Update formatting of messages.
5953
cf88be68
SM
59542020-07-12 Simon Marchi <simon.marchi@efficios.com>
5955
5956 * gdbtypes.h (struct type) <bounds>: Handle array and string
5957 types.
5958 * ada-lang.c (assign_aggregate): Use type::bounds on
5959 array/string type.
5960 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5961 * c-varobj.c (c_number_of_children): Likewise.
5962 (c_describe_child): Likewise.
5963 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5964 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5965 (f_type_print_base): Likewise.
5966 * f-valprint.c (f77_array_offset_tbl): Likewise.
5967 (f77_get_upperbound): Likewise.
5968 (f77_print_array_1): Likewise.
5969 * guile/scm-type.c (gdbscm_type_range): Likewise.
5970 * m2-typeprint.c (m2_array): Likewise.
5971 (m2_is_long_set_of_type): Likewise.
5972 * m2-valprint.c (get_long_set_bounds): Likewise.
5973 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5974 * python/py-type.c (typy_range): Likewise.
5975 * rust-lang.c (rust_internal_print_type): Likewise.
5976 * type-stack.c (type_stack::follow_types): Likewise.
5977 * valarith.c (value_subscripted_rvalue): Likewise.
5978 * valops.c (value_cast): Likewise.
5979
509971ae
SM
59802020-07-12 Simon Marchi <simon.marchi@efficios.com>
5981
5982 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5983 callers to use the equivalent accessor methods.
5984
107406b7
SM
59852020-07-12 Simon Marchi <simon.marchi@efficios.com>
5986
5987 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5988 (struct type) <bit_stride>: New method.
5989 (TYPE_BIT_STRIDE): Remove.
5990 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5991
bb789949
SM
59922020-07-12 Simon Marchi <simon.marchi@efficios.com>
5993
5994 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5995 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5996 callers to use the equivalent accessor methods instead.
5997
39498edb
SM
59982020-07-12 Simon Marchi <simon.marchi@efficios.com>
5999
6000 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6001 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6002 callers to use the equivalent accessor methods instead.
6003
3b606f38
SM
60042020-07-12 Simon Marchi <simon.marchi@efficios.com>
6005
6006 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6007 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6008 to use dynamic_prop::kind.
6009
064d9cb9
SM
60102020-07-12 Simon Marchi <simon.marchi@efficios.com>
6011
6012 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6013 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6014 to get the bound property's kind and check against
6015 PROP_UNDEFINED.
6016
5537ddd0
SM
60172020-07-12 Simon Marchi <simon.marchi@efficios.com>
6018
6019 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6020 all callers to use type::range_bounds followed by
6021 dynamic_prop::{low,high}.
6022
8c2e4e06
SM
60232020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6024
6025 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6026 const_val, set_const_val, baton, set_locexpr, set_loclist,
6027 set_addr_offset, variant_parts, set_variant_parts,
6028 original_type, set_original_type>: New methods.
6029 <kind>: Rename to...
6030 <m_kind>: ... this. Update all users to use the new methods
6031 instead.
6032 <data>: Rename to...
6033 <m_data>: ... this. Update all users to use the new methods
6034 instead.
6035
7c6f2712
SM
60362020-07-12 Simon Marchi <simon.marchi@efficios.com>
6037
6038 * gdbtypes.c (get_discrete_bounds): Return failure if
6039 the range type's bounds are not both defined and constant
6040 values.
6041 (get_array_bounds): Update comment. Remove undefined bound check.
6042
599088e3
SM
60432020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6044
6045 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6046 the type::bounds method directly.
6047
c4dfcb36
SM
60482020-07-12 Simon Marchi <simon.marchi@efficios.com>
6049
6050 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6051 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6052 are used to set the range type's bounds to use set_bounds.
6053
0a278aa7
PW
60542020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6055
6056 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6057
cce20f10
PA
60582020-07-10 Pedro Alves <pedro@palves.net>
6059
6060 * gdbthread.h (inferior_ref): Define.
6061 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6062 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6063 * thread.c
6064 (scoped_restore_current_thread::restore):
6065 Adjust to gdb::ref_ptr.
6066 (scoped_restore_current_thread::~scoped_restore_current_thread):
6067 Remove manual decref handling.
6068 (scoped_restore_current_thread::scoped_restore_current_thread):
6069 Adjust to use
6070 inferior_ref::new_reference/thread_info_ref::new_reference.
6071 Incref the thread before calling get_frame_id instead of after.
6072 Let TARGET_CLOSE_ERROR propagate.
6073
6d7aa592
PA
60742020-07-10 Pedro Alves <pedro@palves.net>
6075
6076 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6077 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6078 NOT_AVAILABLE_ERROR.
6079 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6080 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6081
b3e3a4c1
SM
60822020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6083 Pedro Alves <pedro@palves.net>
6084
6085 PR gdb/26199
6086 * infrun.c (threads_are_resumed_pending_p): Delete.
6087 (do_target_wait): Remove threads_are_executing and
6088 threads_are_resumed_pending_p checks from the inferior_matches
6089 lambda. Update comments.
6090
d6cc5d98
PA
60912020-07-10 Pedro Alves <pedro@palves.net>
6092
6093 PR gdb/26199
6094 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6095 executing threads.
6096
7d3badc6
PA
60972020-07-10 Pedro Alves <pedro@palves.net>
6098
6099 PR gdb/26199
6100 * infrun.c (handle_no_resumed): Handle multiple targets.
6101
42bd97a6
PA
61022020-07-10 Pedro Alves <pedro@palves.net>
6103
6104 PR gdb/26199
6105 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6106 target_is_async_p.
6107
43667cc6
PA
61082020-07-10 Pedro Alves <pedro@palves.net>
6109
6110 PR gdb/26199
6111 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6112 threads, not all threads.
6113
96118d11
PA
61142020-07-10 Pedro Alves <pedro@palves.net>
6115
6116 PR gdb/26199
6117 * remote.c (remote_target::open_1): Pass remote target pointer as
6118 data to create_async_event_handler.
6119 (remote_async_inferior_event_handler): Mark async event handler
6120 before returning if the remote target still has either pending
6121 events or unacknowledged notifications.
6122
54904d81
JB
61232020-07-10 John Baldwin <jhb@FreeBSD.org>
6124
6125 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6126 declaration.
6127 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6128 function.
6129
f37e5866
JB
61302020-07-09 John Baldwin <jhb@FreeBSD.org>
6131
6132 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6133 inferior_ptid.
6134
fc238d4a
JB
61352020-07-09 John Baldwin <jhb@FreeBSD.org>
6136
6137 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6138 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6139 AT_FREEBSD_PS_STRINGS.
6140
6e2469ff
HD
61412020-07-08 Hannes Domani <ssbssa@yahoo.de>
6142
6143 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6144 of debugfile path on Windows.
6145
d1076c41
JB
61462020-07-08 John Baldwin <jhb@FreeBSD.org>
6147
6148 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6149 argument to 'data'.
6150
15f3b077
TT
61512020-07-08 Tom Tromey <tromey@adacore.com>
6152
6153 * ada-lang.c (ada_exception_message_1): Use read_memory.
6154
9fc501fd
AB
61552020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6156
6157 PR python/22748
6158 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6159 special handling for inline frames.
6160 * findvar.c (value_of_register_lazy): Skip inline frames when
6161 creating lazy register values.
6162 * frame.c (frame_id_computed_p): Delete definition.
6163 * frame.h (frame_id_computed_p): Delete declaration.
6164
64cb3757
AB
61652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6166
6167 * NEWS: Mention additions to Python API.
6168 * python/py-arch.c (archpy_register_groups): New function.
6169 (arch_object_methods): Add 'register_groups' method.
6170 * python/py-registers.c (reggroup_iterator_object): New struct.
6171 (reggroup_object): New struct.
6172 (gdbpy_new_reggroup): New function.
6173 (gdbpy_reggroup_to_string): New function.
6174 (gdbpy_reggroup_name): New function.
6175 (gdbpy_reggroup_iter): New function.
6176 (gdbpy_reggroup_iter_next): New function.
6177 (gdbpy_new_reggroup_iterator): New function
6178 (gdbpy_initialize_registers): Register new types.
6179 (reggroup_iterator_object_type): Define new Python type.
6180 (gdbpy_reggroup_getset): New static global.
6181 (reggroup_object_type): Define new Python type.
6182 * python/python-internal.h
6183
0f767f94
AB
61842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6185
6186 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6187 * python/py-arch.c (archpy_registers): New function.
6188 (arch_object_methods): Add 'registers' method.
6189 * python/py-registers.c: New file.
6190 * python/python-internal.h
6191 (gdbpy_new_register_descriptor_iterator): Declare.
6192 (gdbpy_initialize_registers): Declare.
6193 * python/python.c (do_start_initialization): Call
6194 gdbpy_initialize_registers.
6195 * NEWS: Mention additions to the Python API.
6196
87dbc774
AB
61972020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6198
6199 * NEWS: Mention new Python API method.
6200 * python/py-unwind.c (pending_framepy_architecture): New function.
6201 (pending_frame_object_methods): Add architecture method.
6202
3bc98c0c
AB
62032020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6204
6205 * gdbarch.c: Regenerate.
6206 * gdbarch.h: Regenerate.
6207 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6208 (gdbarch_data): Use internal_error for the case where
6209 deprecated_set_gdbarch_data was originally needed.
6210 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6211 and use passed in obstack.
6212 (libunwind_frame_set_descr): Should no longer get back NULL from
6213 gdbarch_data.
6214 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6215 type.
6216 * user-regs.c (user_regs_init): Update parameters, and use passed
6217 in obstack.
6218 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6219 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6220
d8cc8af6
TV
62212020-07-06 Tom de Vries <tdevries@suse.de>
6222
6223 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6224 End-Of-Sequence in lte_is_less_than.
6225 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6226 "gdb: Don't reorder line table entries too much when sorting".
6227
947f7597
TV
62282020-07-06 Tom de Vries <tdevries@suse.de>
6229
6230 PR tui/26205
6231 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6232
1e7c1b22
TV
62332020-07-05 Tom de Vries <tdevries@suse.de>
6234
6235 PR build/26187
6236 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6237 std::uncaught_exceptions instead of deprecated
6238 std::uncaught_exception.
6239
a36158ec
SM
62402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6241
6242 * macroexp.h (macro_stringify): Return
6243 gdb::unique_xmalloc_ptr<char>.
6244 * macroexp.c (macro_stringify): Likewise.
6245 * macrotab.c (fixup_definition): Update.
6246
14d960c8
SM
62472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6248
6249 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6250 (lex_one_token): Update.
6251 * macroexp.c (struct macro_buffer) <release>: Return
6252 gdb::unique_xmalloc_ptr<char>.
6253 (macro_stringify): Update.
6254 (macro_expand): Update.
6255 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6256 * macroexp.h (macro_expand_next): Likewise.
6257
211d5b1c
SM
62582020-07-02 Simon Marchi <simon.marchi@efficios.com>
6259
6260 * macroexp.h (macro_lookup_ftype): Remove.
6261 (macro_expand, macro_expand_once, macro_expand_next): Remove
6262 lookup function parameters, add scope parameter.
6263 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6264 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6265 * macroscope.h (standard_macro_lookup): Change parameter type
6266 to macro_scope.
6267 * macroscope.c (standard_macro_lookup): Likewise.
6268 * c-exp.y (lex_one_token): Update.
6269 * macrocmd.c (macro_expand_command): Likewise.
6270 (macro_expand_once_command): Likewise.
6271
b1a35af2
SM
62722020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 * inf-loop.c (inferior_event_handler): Remove client_data param.
6275 * inf-loop.h (inferior_event_handler): Likewise.
6276 * infcmd.c (step_1): Adjust.
6277 * infrun.c (proceed): Adjust.
6278 (fetch_inferior_event): Remove client_data param.
6279 (infrun_async_inferior_event_handler): Adjust.
6280 * infrun.h (fetch_inferior_event): Remove `void *` param.
6281 * linux-nat.c (handle_target_event): Adjust.
6282 * record-btrace.c (record_btrace_handle_async_inferior_event):
6283 Adjust.
6284 * record-full.c (record_full_async_inferior_event_handler):
6285 Adjust.
6286 * remote.c (remote_async_inferior_event_handler): Adjust.
6287
1cdf9e33
TT
62882020-07-01 Tom Tromey <tom@tromey.com>
6289
6290 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6291 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6292
32c1e210
TT
62932020-07-01 Tom Tromey <tom@tromey.com>
6294
6295 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6296 tui_gen_win_info.
6297 (tui_win_info::make_window): Merge with
6298 tui_gen_win_info::make_window.
6299 (tui_win_info::make_visible): Move from tui_gen_win_info.
6300 * tui/tui-win.c (tui_win_info::max_width): Move from
6301 tui_gen_win_info.
6302 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6303 type.
6304 <window_factory>: Likewise.
6305 * tui/tui-layout.c (tui_win_info::resize): Move from
6306 tui_gen_win_info.
6307 (make_standard_window): Change return type.
6308 (get_locator_window, tui_get_window_by_name): Likewise.
6309 (tui_layout_window::apply): Remove a cast.
6310 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6311 (struct tui_win_info): Merge with tui_gen_win_info.
6312 (struct tui_gen_win_info): Remove.
6313
a30cb6da
TT
63142020-07-01 Tom Tromey <tom@tromey.com>
6315
6316 * tui/tui-stack.h (struct tui_locator_window): Derive from
6317 tui_win_info.
6318 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6319 <can_box>: New method.
6320
1eb2161f
TT
63212020-07-01 Tom Tromey <tom@tromey.com>
6322
6323 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6324
7134f2eb
TT
63252020-07-01 Tom Tromey <tom@tromey.com>
6326
6327 * tui/tui-regs.c (tui_data_window::display_registers_from)
6328 (tui_data_window::display_registers_from)
6329 (tui_data_window::first_data_item_displayed)
6330 (tui_data_window::delete_data_content_windows): Update.
6331 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6332 Remove.
6333 (tui_data_window::check_register_values): Update.
6334 (tui_data_item_window::rerender): Add parameters. Update.
6335 (tui_data_item_window::refresh_window): Remove.
6336 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6337 virtual.
6338 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6339 tui_gen_win_info.
6340 <refresh_window, max_height, min_height>: Remove.
6341 <rerender>: Add parameters.
6342 <x, y, visible>: New members.
6343 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6344 <m_item_width>: New member.
6345
22b7b041
TT
63462020-07-01 Tom Tromey <tom@tromey.com>
6347
6348 * tui/tui-regs.c (tui_data_window::show_register_group)
6349 (tui_data_window::check_register_values): Update.
6350 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6351 from item_no.
6352
c9753adb
TT
63532020-07-01 Tom Tromey <tom@tromey.com>
6354
6355 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6356 useless "if".
6357
9ab26b4a
TT
63582020-07-01 Tom Tromey <tom@tromey.com>
6359
6360 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6361 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6362
e555083f
TT
63632020-07-01 Tom Tromey <tom@tromey.com>
6364
6365 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6366 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6367 (struct tui_line_or_address): Move from tui-data.h.
6368 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6369 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6370 (tui_cmd_window, tui_source_window_base, tui_source_window)
6371 (tui_disasm_window): Don't declare.
6372 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6373 to tui-winsource.h.
6374 (SINGLE_KEY): Move to tui-stack.c.
6375
7a02bab7
TT
63762020-07-01 Tom Tromey <tom@tromey.com>
6377
6378 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6379 std::string.
6380 * tui/tui-regs.c (class tab_expansion_file): New.
6381 (tab_expansion_file::write): New method.
6382 (tui_register_format): Change return type. Use
6383 tab_expansion_file.
6384 (tui_get_register, tui_data_window::display_registers_from)
6385 (tui_data_item_window::rerender): Update.
6386 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6387 * tui/tui-io.c (tui_expand_tabs): Remove.
6388
ea68593b
TT
63892020-07-01 Tom Tromey <tom@tromey.com>
6390
6391 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6392
a8caed5d
FS
63932020-07-01 Fangrui Song <maskray@google.com>
6394
6395 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6396
9cdf9820
AKS
63972020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6398
6399 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6400 forms for DW_AT_associated and DW_AT_allocated attributes,
6401 which is already checked in function attr_to_dynamic_prop.
6402
a1520ad8
TT
64032020-06-30 Tom Tromey <tromey@adacore.com>
6404
6405 * dwarf2/read.c (quirk_rust_enum): Correctly call
6406 alloc_rust_variant for default-less enum.
6407
5ac58899
TT
64082020-06-30 Tom Tromey <tromey@adacore.com>
6409
6410 PR build/26183:
6411 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6412 gdb::to_string.
6413
19b187a9
SM
64142020-06-29 Simon Marchi <simon.marchi@efficios.com>
6415
6416 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6417 * gdbarch.h: Re-generate.
6418
cd4c4c07
TT
64192020-06-28 Tom Tromey <tom@tromey.com>
6420
6421 * command.h (cmd_types): Remove.
6422 (cmd_type): Don't declare.
6423 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6424 typedef.
6425 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6426 * cli/cli-decode.c (cmd_type): Remove.
6427
05779d57
PA
64282020-06-27 Pedro Alves <palves@redhat.com>
6429
6430 * fork-child.c (prefork_hook): Adjust.
6431 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6432 Delete.
6433 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6434 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6435 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6436 Remove declarations.
6437 (struct inferior) <set_tty, tty>: New methods.
6438 (struct inferior) <terminal>: Rename to ...
6439 (struct inferior) <m_terminal>: ... this and make private.
6440 * main.c (captured_main_1): Adjust.
6441 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6442 (mi_cmd_inferior_tty_show): Adjust.
6443 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6444 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6445
1776e3e5
NA
64462020-06-26 Nick Alcock <nick.alcock@oracle.com>
6447
6448 * configure.ac: Add --enable-libctf: handle --disable-static
6449 properly.
6450 * acinclude.m4: sinclude ../config/enable.m4.
6451 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6452 (LIBCTF): Substitute in.
6453 (CTF_DEPS): New, likewise.
6454 (CLIBS): libctf needs symbols from libbfd: move earlier.
6455 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6456 flags.
6457 * ctfread.c: Surround in ENABLE_LIBCTF.
6458 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6459 * configure: Regenerate.
6460 * config.in: Likewise.
6461
58373b80
SM
64622020-06-25 Simon Marchi <simon.marchi@efficios.com>
6463
6464 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6465
277474ee
SM
64662020-06-25 Simon Marchi <simon.marchi@efficios.com>
6467
6468 * inferior.h (struct inferior) <terminal>: Change type to
6469 gdb::unique_xmalloc_ptr<char>.
6470 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6471 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6472 field, adjust to unique pointer.
6473 (get_inferior_io_terminal): Adjust to unique pointer.
6474
6d74da72
AB
64752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6476
6477 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6478 registers, not just the known core set of registers.
6479
2e52d038
AB
64802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6481
6482 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6483 fflags, frm, and fcsr registers.
6484 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6485 restore groups.
6486 (riscv_tdesc_unknown_reg): New function.
6487 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6488 tdesc_use_registers.
6489 * riscv-tdep.h (struct gdbarch_tdep): Add
6490 unknown_csrs_first_regnum, unknown_csrs_count,
6491 duplicate_fflags_regnum, duplicate_frm_regnum, and
6492 duplicate_fcsr_regnum fields.
6493
be64fd07
AB
64942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6495
6496 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6497 callback, use the callback (when not null) to help number unknown
6498 registers.
6499 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6500 (tdesc_use_registers): Add extra parameter to declaration.
6501
3b9fce96
AB
65022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6503
6504 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6505 in the file.
6506 (class riscv_pending_register_alias): Likewise.
6507 (riscv_register_feature::register_info): Change 'required_p' field
6508 to 'required', and change its type. Add 'check' member function.
6509 (riscv_register_feature::register_info::check): Define new member
6510 function.
6511 (riscv_xreg_feature): Change initialisation of 'required' field.
6512 (riscv_freg_feature): Likewise.
6513 (riscv_virtual_feature): Likewise.
6514 (riscv_csr_feature): Likewise.
6515 (riscv_check_tdesc_feature): Take extra parameter, the csr
6516 tdesc_feature, rewrite the function to use the new
6517 riscv_register_feature::register_info::check function.
6518 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6519
865bad26
AB
65202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6521
6522 * features/Makefile: Remove all references to the deleted files
6523 below.
6524 * features/riscv/32bit-csr.c: Deleted.
6525 * features/riscv/32bit-csr.xml: Deleted.
6526 * features/riscv/64bit-csr.c: Deleted.
6527 * features/riscv/64bit-csr.xml: Deleted.
6528 * features/riscv/rebuild-csr-xml.sh: Deleted.
6529
ed69cbc8
AB
65302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6531
6532 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6533 whitespace error for declaration of names member variable.
6534 (struct riscv_register_feature): Add new prefer_first_name member
6535 variable, and fix whitespace error in declaration of registers.
6536 (riscv_xreg_feature): Initialize prefer_first_name field.
6537 (riscv_freg_feature): Likewise.
6538 (riscv_virtual_feature): Likewise.
6539 (riscv_csr_feature): Likewise.
6540 (riscv_register_name): Expand on comments. Remove register name
6541 modifications for CSR and virtual registers.
6542
4445e8f5
AB
65432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6544
6545 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6546 errors.
6547
767a879e
AB
65482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6549
6550 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6551 riscv-opc.h.
6552 (class riscv_pending_register_alias): New class.
6553 (riscv_check_tdesc_feature): Take vector of pending aliases and
6554 populate it as appropriate.
6555 (riscv_setup_register_aliases): Delete.
6556 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6557 to riscv_check_tdesc_feature in all cases. Use the vector to
6558 create the register aliases.
6559
bb6e55f3
RO
65602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6561
6562 * sol2-tdep.c (sol2_static_transform_name): Remove.
6563 (sol2_init_abi): Don't register it.
6564 * gdbarch.sh (static_transform_name): Remove.
6565 * gdbarch.c, gdbarch.h: Regenerate.
6566
6567 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6568 gdbarch_static_transform_name.
6569 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6570 * stabsread.c (define_symbol) <'X'>: Remove.
6571 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6572 handling.
6573 <'V'>: Likewise.
6574 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6575 <'S'>: Remove call to gdbarch_static_transform_name.
6576
c6d36836
RO
65772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6578
6579 * procfs.c (procfs_pre_trace): New function.
6580 (procfs_target::create_inferior): Pass it to fork_inferior.
6581
a7e6196b
RO
65822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6583
6584 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6585 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6586 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6587 sol2-tdep.o, sparc-sol2-tdep.o.
6588 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6589 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6590 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6591 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6592
d412e696
RO
65932020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6594
6595 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6596 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6597 Call sol2_init_abi.
6598 Remove calls to set_gdbarch_skip_solib_resolver,
6599 set_gdbarch_core_pid_to_str.
6600 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6601 (i386_sol2_static_transform_name): Remove.
6602 (i386_sol2_init_abi): Call sol2_init_abi.
6603 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6604 set_gdbarch_static_transform_name,
6605 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6606 Use sol2_sigtramp_p.
6607 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6608 (sol2_sigtramp_p): New function.
6609 (sol2_static_transform_name): New function.
6610 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6611 (sol2_init_abi): New function.
6612 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6613 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6614 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6615 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6616 (sparc_sol2_static_transform_name): Remove.
6617 (sparc32_sol2_init_abi): Call sol2_init_abi.
6618 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6619 set_gdbarch_static_transform_name,
6620 set_gdbarch_skip_solib_resolver,
6621 set_gdbarch_core_pid_to_str.
6622 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6623 (sparc_sol2_static_transform_name): Remove
6624 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6625 call sol2_sigtramp_p.
6626 (sparc64_sol2_init_abi): Call sol2_init_abi.
6627 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6628 set_gdbarch_static_transform_name,
6629 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6630
a8654e7d
PW
66312020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6632
6633 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6634 * exec.c (validate_exec_file): If from_tty, set both
6635 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6636 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6637 and from_tty, unconditionally ask a confirmation.
6638
caa7fd04
AB
66392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6640
6641 * target-descriptions.c (tdesc_architecture_name): Protect against
6642 NULL pointer dereference.
6643 (maint_print_xml_tdesc_cmd): New function.
6644 (_initialize_target_descriptions): Register new 'maint print
6645 xml-tdesc' command and give it the filename completer.
6646 * NEWS: Mention new 'maint print xml-tdesc' command.
6647
fbf42f4e
AB
66482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6649
6650 * target-descriptions.c (class tdesc_compatible_info): New class.
6651 (struct target_desc): Change type of compatible vector.
6652 (tdesc_compatible_p): Update for change in type of
6653 target_desc::compatible.
6654 (tdesc_compatible_info_list): New function.
6655 (tdesc_compatible_info_arch_name): New function.
6656 (tdesc_add_compatible): Update for change in type of
6657 target_desc::compatible.
6658 (print_c_tdesc::visit_pre): Likewise.
6659
20821f4e
AB
66602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6661
6662 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6663 whitespace to underscore.
6664 (maint_print_c_tdesc_cmd): Use fake filename for target
6665 descriptions that came from the target.
6666 (_initialize_target_descriptions): Add filename command completion
6667 for 'maint print c-tdesc'.
6668
1fb5ee62
SM
66692020-06-23 Simon Marchi <simon.marchi@efficios.com>
6670
6671 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6672 lines.
6673
fc3ecb3e
SM
66742020-06-23 Simon Marchi <simon.marchi@efficios.com>
6675
6676 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6677 lines.
6678 (dwarf2_find_location_expression): Likewise.
6679 (call_site_parameter_matches): Likewise.
6680 (dwarf2_compile_expr_to_ax): Likewise.
6681 (disassemble_dwarf_expression): Likewise.
6682 (loclist_describe_location): Likewise.
6683
236ef034
PA
66842020-06-23 Pedro Alves <palves@redhat.com>
6685
6686 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6687 progspace-and-thread.h. Include scoped-mock-context.h instead.
6688 (register_to_value_test): Use scoped_mock_context.
6689 * regcache.c: Include "scoped-mock-context.h".
6690 (cooked_read_test): Don't error out if a target is already pushed.
6691 Use scoped_mock_context. Adjust.
6692 * scoped-mock-context.h: New file.
6693
39e7ecca
AB
66942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6695
6696 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6697 initializer.
6698 (ada_language::is_string_type_p): New member function.
6699 * c-lang.c (c_language_data): Delete la_is_string_type_p
6700 initializer.
6701 (cplus_language_data): Likewise.
6702 (asm_language_data): Likewise.
6703 (minimal_language_data): Likewise.
6704 * d-lang.c (d_language_data): Likewise.
6705 * f-lang.c (f_is_string_type_p): Delete function, implementation
6706 moved to f_language::is_string_type_p.
6707 (f_language_data): Delete la_is_string_type_p initializer.
6708 (f_language::is_string_type_p): New member function,
6709 implementation from f_is_string_type_p.
6710 * go-lang.c (go_is_string_type_p): Delete function, implementation
6711 moved to go_language::is_string_type_p.
6712 (go_language_data): Delete la_is_string_type_p initializer.
6713 (go_language::is_string_type_p): New member function,
6714 implementation from go_is_string_type_p.
6715 * language.c (language_defn::is_string_type_p): Define new member
6716 function.
6717 (default_is_string_type_p): Make static, add comment copied from
6718 header file.
6719 (unknown_language_data): Delete la_is_string_type_p initializer.
6720 (unknown_language::is_string_type_p): New member function.
6721 (auto_language_data): Delete la_is_string_type_p initializer.
6722 (auto_language::is_string_type_p): New member function.
6723 * language.h (language_data): Delete la_is_string_type_p field.
6724 (language_defn::is_string_type_p): Declare new function.
6725 (default_is_string_type_p): Delete desclaration, move comment to
6726 definition.
6727 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6728 moved to m2_language::is_string_type_p.
6729 (m2_language_data): Delete la_is_string_type_p initializer.
6730 (m2_language::is_string_type_p): New member function,
6731 implementation from m2_is_string_type_p.
6732 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6733 initializer.
6734 * opencl-lang.c (opencl_language_data): Likewise.
6735 * p-lang.c (pascal_is_string_type_p): Delete function,
6736 implementation moved to pascal_language::is_string_type_p.
6737 (pascal_language_data): Delete la_is_string_type_p initializer.
6738 (pascal_language::is_string_type_p): New member function,
6739 implementation from pascal_is_string_type_p.
6740 * rust-lang.c (rust_is_string_type_p): Delete function,
6741 implementation moved to rust_language::is_string_type_p.
6742 (rust_language_data): Delete la_is_string_type_p initializer.
6743 (rust_language::is_string_type_p): New member function,
6744 implementation from rust_is_string_type_p.
6745 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6746 is_string_type_p.
6747
4ffc13fb
AB
67482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6749
6750 * ada-lang.c (ada_language_data): Delete la_print_typedef
6751 initializer.
6752 (ada_language::print_typedef): New member function.
6753 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6754 (cplus_language_data): Likewise.
6755 (asm_language_data): Likewise.
6756 (minimal_language_data): Likewise.
6757 * d-lang.c (d_language_data): Likewise.
6758 * f-lang.c (f_language_data): Likewise.
6759 (f_language::print_typedef): New member function.
6760 * go-lang.c (go_language_data): Delete la_print_typedef
6761 initializer.
6762 * language.c (language_defn::print_typedef): Define member
6763 function.
6764 (unknown_language_data): Delete la_print_typedef initializer.
6765 (unknown_language::print_typedef): New member function.
6766 (auto_language_data): Delete la_print_typedef initializer.
6767 (auto_language::print_typedef): New member function.
6768 * language.h (language_data): Delete la_print_typedef field.
6769 (language_defn::print_typedef): Declare new member function.
6770 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6771 (default_print_typedef): Delete declaration.
6772 * m2-lang.c (m2_language_data): Delete la_print_typedef
6773 initializer.
6774 (m2_language::print_typedef): New member function.
6775 * objc-lang.c (objc_language_data): Delete la_print_typedef
6776 initializer.
6777 * opencl-lang.c (opencl_language_data): Likewise.
6778 * p-lang.c (pascal_language_data): Likewise.
6779 (pascal_language::print_typedef): New member function.
6780 * rust-lang.c (rust_print_typedef): Delete function,
6781 implementation moved to rust_language::print_typedef.
6782 (rust_language): Delete la_print_typedef initializer.
6783 (rust_language::print_typedef): New member function,
6784 implementation from rust_print_typedef.
6785 * typeprint.c (default_print_typedef): Delete.
6786
d711ee67
AB
67872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6788
6789 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6790 (ada_language::printstr): New member function.
6791 * c-lang.c (c_language_data): Delete la_printstr initializer.
6792 (cplus_language_data): Likewise.
6793 (asm_language_data): Likewise.
6794 (minimal_language_data): Likewise.
6795 * d-lang.c (d_language_data): Likewise.
6796 * f-lang.c (f_printstr): Rename to f_language::printstr.
6797 (f_language_data): Delete la_printstr initializer.
6798 (f_language::printstr): New member function, implementation from
6799 f_printstr.
6800 * go-lang.c (go_language_data): Delete la_printstr initializer.
6801 * language.c (language_defn::printstr): Define new member
6802 function.
6803 (unk_lang_printstr): Delete.
6804 (unknown_language_data): Delete la_printstr initializer.
6805 (unknown_language::printstr): New member function.
6806 (auto_language_data): Delete la_printstr initializer.
6807 (auto_language::printstr): New member function.
6808 * language.h (language_data): Delete la_printstr field.
6809 (language_defn::printstr): Declare new member function.
6810 (LA_PRINT_STRING): Update call to printstr.
6811 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6812 (m2_language_data): Delete la_printstr initializer.
6813 (m2_language::printstr): New member function, implementation from
6814 m2_printstr.
6815 * objc-lang.c (objc_language_data): Delete la_printstr
6816 initializer.
6817 * opencl-lang.c (opencl_language_data): Likewise.
6818 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6819 (pascal_language_data): Delete la_printstr initializer.
6820 (pascal_language::printstr): New member function, implementation
6821 from pascal_printstr.
6822 * p-lang.h (pascal_printstr): Delete declaration.
6823 * rust-lang.c (rust_printstr): Update header comment.
6824 (rust_language_data): Delete la_printstr initializer.
6825 (rust_language::printstr): New member function.
6826
52b50f2c
AB
68272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6828
6829 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6830 (ada_language::printchar): New member function.
6831 * c-lang.c (c_language_data): Delete la_printchar initializer.
6832 (cplus_language_data): Likewise.
6833 (asm_language_data): Likewise.
6834 (minimal_language_data): Likewise.
6835 * d-lang.c (d_language_data): Likewise.
6836 * f-lang.c (f_printchar): Rename to f_language::printchar.
6837 (f_language_data): Delete la_printchar initializer.
6838 (f_language::printchar): New member function, implementation from
6839 f_printchar.
6840 * go-lang.c (go_language_data): Delete la_printchar initializer.
6841 * language.c (unk_lang_printchar): Delete.
6842 (language_defn::printchar): Define new member function.
6843 (unknown_language_data): Delete la_printchar initializer.
6844 (unknown_language::printchar): New member function.
6845 (auto_language_data): Delete la_printchar initializer.
6846 (auto_language::printchar): New member function.
6847 * language.h (language_data): Delete la_printchar field.
6848 (language_defn::printchar): Declare new member function.
6849 (LA_PRINT_CHAR): Update call to printchar.
6850 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6851 (m2_language::printchar): New member function.
6852 * objc-lang.c (objc_language_data): Delete la_printchar
6853 initializer.
6854 * opencl-lang.c (opencl_language_data): Likewise.
6855 * p-lang.c (pascal_language_data): Delete la_printchar
6856 initializer.
6857 (pascal_language::printchar): New member function.
6858 * rust-lang.c (rust_printchar): Rename to
6859 rust_language::printchar.
6860 (rust_language_data): Delete la_printchar initializer.
6861 (rust_language::printchar): New member function, implementation
6862 from rust_printchar.
6863
ec8cec5b
AB
68642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6865
6866 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6867 (ada_language_data): Delete la_emitchar initializer.
6868 (ada_language::emitchar): New member function, implementation from
6869 emit_char.
6870 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6871 (cplus_language_data): Likewise.
6872 (asm_language_data): Likewise.
6873 (minimal_language_data): Likewise.
6874 * d-lang.c (d_language_data): Likewise.
6875 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6876 (f_language_data): Delete la_emitchar initializer.
6877 (f_language::emitchar): New member function, implementation from
6878 f_emit_char.
6879 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6880 * language.c (unk_lang_emit_char): Delete.
6881 (language_defn::emitchar): New member function definition.
6882 (unknown_language_data): Delete la_emitchar initializer.
6883 (unknown_language::emitchar): New member function.
6884 (auto_language_data): Delete la_emitchar initializer.
6885 (auto_language::emitchar): New member function.
6886 * language.h (language_data): Delete la_emitchar field.
6887 (language_defn::emitchar): New member field declaration.
6888 (LA_EMIT_CHAR): Update call to emitchar.
6889 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6890 (m2_language_data): Delete la_emitchar initializer.
6891 (m2_language::emitchar): New member function, implementation from
6892 m2_emit_char.
6893 * objc-lang.c (objc_language_data): Delete la_emitchar
6894 initializer.
6895 * opencl-lang.c (opencl_language_data): Likewise.
6896 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6897 (pascal_language_data): Delete la_emitchar initializer.
6898 (pascal_language::emitchar): New member function, implementation
6899 from pascal_emit_char.
6900 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6901 (rust_language_data): Delete la_emitchar initializer.
6902 (rust_language::emitchar): New member function, implementation
6903 from rust_emitchar.
6904
1bf9c363
AB
69052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6906
6907 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6908 (ada_language_data): Delete la_post_parser initializer.
6909 (ada_language::post_parser): New member function.
6910 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6911 (cplus_language_data): Likewise.
6912 (asm_language_data): Likewise.
6913 (minimal_language_data): Likewise.
6914 * d-lang.c (d_language_data): Likewise.
6915 * f-lang.c (f_language_data): Likewise.
6916 * go-lang.c (go_language_data): Likewise.
6917 * language.c (unknown_language_data): Likewise.
6918 (auto_language_data): Likewise.
6919 * language.h (language_data): Delete la_post_parser field.
6920 (language_defn::post_parser): New member function.
6921 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6922 * objc-lang.c (objc_language_data): Likewise.
6923 * opencl-lang.c (opencl_language_data): Likewise.
6924 * p-lang.c (pascal_language_data): Likewise.
6925 * parse.c (parse_exp_in_context): Update call to post_parser.
6926 (null_post_parser): Delete definition.
6927 * parser-defs.h (null_post_parser): Delete declaration.
6928 * rust-lang.c (rust_language_data): Delete la_post_parser
6929 initializer.
6930
87afa652
AB
69312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6932
6933 * ada-lang.c (parse): Rename to ada_language::parser.
6934 (ada_language_data): Delete la_parser initializer.
6935 (ada_language::parser): New member function, implementation from
6936 parse.
6937 * c-lang.c (c_language_data): Delete la_parser initializer.
6938 (cplus_language_data): Likewise.
6939 (asm_language_data): Likewise.
6940 (minimal_language_data): Likewise.
6941 * d-lang.c (d_language_data): Likewise.
6942 (d_language::parser): New member function.
6943 * f-lang.c (f_language_data): Delete la_parser initializer.
6944 (f_language::parser): New member function.
6945 * go-lang.c (go_language_data): Delete la_parser initializer.
6946 (go_language::parser): New member function.
6947 * language.c (unk_lang_parser): Delete.
6948 (language_defn::parser): Define new member function.
6949 (unknown_language_data): Delete la_parser initializer.
6950 (unknown_language::parser): New member function.
6951 (auto_language_data): Delete la_parser initializer.
6952 (auto_language::parser): New member function.
6953 * language.h (language_data): Delete la_parser field.
6954 (language_defn::parser): Declare new member function.
6955 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6956 (m2_language::parser): New member function.
6957 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6958 * opencl-lang.c (opencl_language_data): Likewise.
6959 * p-lang.c (pascal_language_data): Likewise.
6960 (pascal_language::parser): New member function.
6961 * parse.c (parse_exp_in_context): Update call to parser.
6962 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6963 (rust_language::parser): New member function.
6964
37825800
AB
69652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6966
6967 * top.c (print_gdb_configuration): Print --with-python-libdir
6968 configuration value.
6969
5b860c93
PW
69702020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6971
6972 * NEWS: Mention change to the alias command.
6973
cf00cd6f
PW
69742020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6975
6976 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6977 (alias_command_completer)
6978 (make_alias_options_def_group): New functions.
6979 (alias_opts, alias_option_defs): New struct and array.
6980 (alias_usage_error): Update usage.
6981 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6982 Use option framework.
6983 (_initialize_cli_cmds): Update alias command help.
6984 Update aliases command help.
6985 (show_user):
6986 Add NULL for new default_args lookup_cmd argument.
6987 (valid_command_p): Rename to validate_aliased_command.
6988 Add NULL for new default_args lookup_cmd argument. Verify that the
6989 aliased_command has no default args.
6990 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6991 (lookup_cmd_1, lookup_cmd): New argument default_args.
6992 (add_alias_cmd):
6993 Add NULL for new default_args lookup_cmd argument.
6994 (print_help_for_command): Show default args under the layout
6995 alias some_alias = some_aliased_cmd some_alias_default_arg.
6996 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6997 xfree default_args in destructor.
6998 * cli/cli-script.c (process_next_line, do_define_command):
6999 Add NULL for new default_args lookup_cmd argument.
7000 * command.h: Declare new default_args argument in lookup_cmd
7001 and lookup_cmd_1.
7002 * completer.c (complete_line_internal_1):
7003 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7004 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7005 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7006 Likewise.
7007 * infcmd.c (_initialize_infcmd): Likewise.
7008 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7009 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7010 * python/py-param.c (add_setshow_generic): Likewise.
7011 * remote.c (_initialize_remote): Likewise.
7012 * top.c (execute_command): Prepend default_args if command has some.
7013 (set_verbose):
7014 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7015 * tracepoint.c (validate_actionline, encode_actions_1):
7016 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7017
bd920864
TBA
70182020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7019
7020 * jit.c (jit_read_descriptor): Use bool as the return type.
7021 (jit_breakpoint_re_set_internal): Use bool as the return type.
7022 Invert the return value logic; return true if the jit breakpoint
7023 has been successfully initialized.
7024 (jit_inferior_init): Update the call to
7025 jit_breakpoint_re_set_internal.
7026
f8098322
PA
70272020-06-22 Pedro Alves <palves@redhat.com>
7028
7029 PR gdb/25939
7030 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7031 Use the current inferior instead. Don't return
7032 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7033 wait again.
7034 * sol-thread.c (sol_thread_target::wait): Don't reference
7035 inferior_ptid.
7036 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7037 (sol_update_thread_list_callback): Use the current inferior's pid
7038 instead of inferior_ptid.
7039
196535a6
RO
70402020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7041
7042 * procfs.c: Cleanup many comments.
7043
7044 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7045 (AFTER_WATCHFLAG): Replace by value.
7046
7047 (MAIN_PROC_NAME_FORMAT): Inline ...
7048 (create_procinfo): ... here.
7049
7050 (procfs_debug_inferior): Remove SYS_exec handling.
7051 (syscall_is_exec): Likewise.
7052 (procfs_set_exec_trap): Likewise.
7053
7054 (syscall_is_lwp_exit): Inline in callers.
7055 (syscall_is_exit): Likewise.
7056 (syscall_is_exec): Likewise.
7057 (syscall_is_lwp_create): Likewise.
7058
7059 (invalidate_cache): Remove #if 0 code.
7060
7061 (make_signal_thread_runnable): Remove.
7062 (procfs_target::resume): Remove #if 0 code.
7063
cf6f3e86
RO
70642020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7065
7066 PR gdb/25939
7067 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7068 call ...
7069 (procfs_target::create_inferior): ... here.
7070
48e9cc84
PW
70712020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7072
7073 * exec.c (validate_exec_file): Ensure the build-id is up to
7074 date by calling reopen_exec_file (that checks file timestamp
7075 to decide to re-read the file).
7076
3922b302
PA
70772020-06-18 Pedro Alves <palves@redhat.com>
7078
7079 PR gdb/25412
7080 * gdbthread.h (delete_thread, delete_thread_silent)
7081 (find_thread_ptid): Update comments.
7082 * thread.c (current_thread_): New global.
7083 (is_current_thread): Move higher, and reimplement.
7084 (inferior_thread): Reimplement.
7085 (set_thread_exited): Use bool. Add assertions.
7086 (add_thread_silent): Simplify thread-reuse handling by always
7087 calling delete_thread.
7088 (delete_thread): Remove intro comment.
7089 (find_thread_ptid): Skip exited threads.
7090 (switch_to_thread_no_regs): Write to current_thread_.
7091 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7092 INFERIOR_PTID. Clear current_thread_.
7093
6dbdab44
PA
70942020-06-18 Pedro Alves <palves@redhat.com>
7095
7096 * aix-thread.c (pd_update): Use switch_to_thread.
7097
2da4b788
PA
70982020-06-18 Pedro Alves <palves@redhat.com>
7099
7100 * ravenscar-thread.c (ravenscar_thread_target): Update.
7101 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7102 (ravenscar_thread_target::add_active_thread): ... this. Don't
7103 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7104 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7105
50838d1b
PA
71062020-06-18 Pedro Alves <palves@redhat.com>
7107
7108 * nat/windows-nat.c (current_windows_thread): Remove.
7109 * nat/windows-nat.h (current_windows_thread): Remove.
7110 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7111 Adjust.
7112 (display_selectors): Adjust to fetch the current
7113 windows_thread_info based on inferior_ptid.
7114 (fake_create_process): No longer write to current_windows_thread.
7115 (windows_nat_target::get_windows_debug_event):
7116 Don't set inferior_ptid or current_windows_thread.
7117 (windows_nat_target::wait): Adjust to not rely on
7118 current_windows_thread.
7119 (do_initial_windows_stuff): Now a method of windows_nat_target.
7120 Switch to the last_ptid thread.
7121 (windows_nat_target::attach): Adjust.
7122 (windows_nat_target::detach): Use switch_to_no_thread instead of
7123 writing to inferior_ptid directly.
7124 (windows_nat_target::create_inferior): Adjust.
7125
31ce04e9
PA
71262020-06-18 Pedro Alves <palves@redhat.com>
7127
7128 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7129
1ee1a363
PA
71302020-06-18 Pedro Alves <palves@redhat.com>
7131
7132 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7133 after creating it, instead of writing to inferior_ptid. Don't
7134 write to inferior_ptid.
7135
6d350754
PA
71362020-06-18 Pedro Alves <palves@redhat.com>
7137
7138 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7139
5d971d48
PA
71402020-06-18 Pedro Alves <palves@redhat.com>
7141
7142 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7143 it, instead of writing to inferior_ptid.
7144
86e57d1b
PA
71452020-06-18 Pedro Alves <palves@redhat.com>
7146
7147 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7148 to inferior_ptid.
7149
f2e1c129
PA
71502020-06-18 Pedro Alves <palves@redhat.com>
7151
7152 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7153 instead of writing to inferior_ptid directly.
7154
60db1b85
PA
71552020-06-18 Pedro Alves <palves@redhat.com>
7156
7157 * corelow.c (core_target::close): Use switch_to_no_thread instead
7158 of writing to inferior_ptid directly.
7159 (add_to_thread_list, core_target_open): Use switch_to_thread
7160 instead of writing to inferior_ptid directly.
7161
fe7d6a8d
PA
71622020-06-18 Pedro Alves <palves@redhat.com>
7163
7164 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7165 inferior_ptid.
7166 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7167 inferior_ptid.
7168 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7169 inferior_ptid directly.
7170 (darwin_nat_target::init_thread_list): Switch to thread, instead
7171 of writing to inferior_ptid.
7172 (darwin_nat_target::attach): Don't write to inferior_ptid.
7173 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7174
975f8708
PA
71752020-06-18 Pedro Alves <palves@redhat.com>
7176
7177 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7178 thread.
7179 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7180 Instead use switch_to_thread.
7181 (gnu_nat_target::detach): Use switch_to_no_thread
7182 instead of writing to inferior_ptid directly. Used passed-in
7183 inferior instead of looking up the inferior by pid.
7184
1a204730
PA
71852020-06-18 Pedro Alves <palves@redhat.com>
7186
7187 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7188 inferior_ptid.
7189
ebe84f23
PA
71902020-06-18 Pedro Alves <palves@redhat.com>
7191
7192 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7193 inferior_ptid.
7194 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7195 thread.
7196 (nto_procfs_target::detach): Avoid referencing
7197 inferior_ptid. Use switch_to_no_thread instead of writing to
7198 inferior_ptid directly.
7199 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7200 instead of writing to inferior_ptid directly.
7201 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7202 to thread.
7203
191f02e5
PA
72042020-06-18 Pedro Alves <palves@redhat.com>
7205
7206 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7207 after creating it, instead of writing to inferior_ptid.
7208 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7209 to inferior_ptid directly.
7210 (gdbsim_target::wait): Don't write to inferior_ptid.
7211
0ac55310
PA
72122020-06-18 Pedro Alves <palves@redhat.com>
7213
7214 * remote.c (remote_target::remote_notice_new_inferior): Use
7215 switch_to_thread instead of writing to inferior_ptid directly.
7216 (remote_target::add_current_inferior_and_thread): Use
7217 switch_to_no_thread instead of writing to inferior_ptid directly.
7218 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7219 and switch_to_thread instead of using set_current_inferior or
7220 writing to inferior_ptid directly.
7221
5233f39b
PA
72222020-06-18 Pedro Alves <palves@redhat.com>
7223
7224 * tracectf.c (ctf_target_open): Switch to added thread instead of
7225 writing to inferior_ptid directly.
7226 (ctf_target::close): Use switch_to_no_thread instead of writing to
7227 inferior_ptid directly.
7228
087e161b
PA
72292020-06-18 Pedro Alves <palves@redhat.com>
7230
7231 * tracefile-tfile.c (tfile_target_open): Don't write to
7232 inferior_ptid directly, instead switch to added thread.
7233 (tfile_target::close): Use switch_to_no_thread instead of writing
7234 to inferior_ptid directly.
7235
7fb43e53
PA
72362020-06-18 Pedro Alves <palves@redhat.com>
7237
7238 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7239 (procfs_target::detach): Use switch_to_no_thread
7240 instead of writing to inferior_ptid directly.
7241 (do_attach): Change return type to void. Switch to the added
7242 thread.
7243 (procfs_target::create_inferior): Switch to the added thread.
7244 (procfs_do_thread_registers): Don't write to inferior_ptid.
7245
18493a00
PA
72462020-06-18 Pedro Alves <palves@redhat.com>
7247
7248 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7249 of writing to inferior_ptid.
7250 (scoped_restore_exited_inferior): Delete.
7251 (handle_vfork_child_exec_or_exit): Simplify using
7252 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7253 instead of writing to inferior_ptid.
7254 (THREAD_STOPPED_BY): Delete.
7255 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7256 (thread_stopped_by_hw_breakpoint): Delete.
7257 (save_waitstatus): Use
7258 scoped_restore_current_thread+switch_to_thread, and call
7259 target_stopped_by_watchpoint instead of
7260 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7261 instead of thread_stopped_by_sw_breakpoint, and
7262 target_stopped_by_hw_breakpoint instead of
7263 thread_stopped_by_hw_breakpoint.
7264 (handle_inferior_event)
7265 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7266 inferior_ptid directly, nor
7267 set_current_inferior/set_current_program_space. Use
7268 switch_to_thread / switch_to_inferior_no_thread instead.
7269
a0776b13
PA
72702020-06-18 Pedro Alves <palves@redhat.com>
7271
7272 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7273 instead of writing to inferior_ptid.
7274
6155c136
PA
72752020-06-18 Pedro Alves <palves@redhat.com>
7276
7277 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7278 added thread.
7279 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7280 to the added thread.
7281 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7282 instead of writing to inferior_ptid.
7283
c5316fc6
PA
72842020-06-18 Pedro Alves <palves@redhat.com>
7285
7286 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7287 (register_to_value_test): Mock a program_space too. Heap-allocate
7288 the address space. Don't write to inferior_ptid. Use
7289 switch_to_thread instead.
7290
8df01799
PA
72912020-06-18 Pedro Alves <palves@redhat.com>
7292
7293 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7294 Delete.
7295 (find_signalled_thread()): New, factored out from
7296 linux_make_corefile_notes and adjusted to handle exited threads.
7297 (linux_make_corefile_notes): Adjust to use the new
7298 find_signalled_thread.
7299
41792d68
PA
73002020-06-18 Pedro Alves <palves@redhat.com>
7301
7302 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7303 of saving/restoring inferior_ptid.
7304
612f258a
TT
73052020-06-17 Tom Tromey <tom@tromey.com>
7306
7307 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7308 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7309 declare.
7310 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7311
efb763a5
SM
73122020-06-15 Simon Marchi <simon.marchi@efficios.com>
7313
7314 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7315 of partial symtabs.
7316
2951f6c0
SM
73172020-06-17 Simon Marchi <simon.marchi@efficios.com>
7318
7319 * regformats/reg-arm.dat: Remove.
7320 * regformats/reg-bfin.dat: Remove.
7321 * regformats/reg-cris.dat: Remove.
7322 * regformats/reg-crisv32.dat: Remove.
7323 * regformats/reg-m32r.dat: Remove.
7324 * regformats/reg-tilegx.dat: Remove.
7325 * regformats/reg-tilegx32.dat: Remove.
7326
7d458ea5
SM
73272020-06-17 Simon Marchi <simon.marchi@efficios.com>
7328
7329 * features/Makefile (WHICH): Remove arm files.
7330 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7331 * regformats/arm/arm-with-neon.dat: Remove.
7332 * regformats/arm/arm-with-vfpv2.dat: Remove.
7333 * regformats/arm/arm-with-vfpv3.dat: Remove.
7334
3af96c0d
SM
73352020-06-17 Simon Marchi <simon.marchi@efficios.com>
7336
7337 * features/Makefile (XMLTOC): Remove rx.xml.
7338
b25e22fd
PA
73392020-06-17 Pedro Alves <palves@redhat.com>
7340
7341 * gdbthread.h (thread_control_state) <trap_expected> Update
7342 comments.
7343
a78a19b1
AB
73442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7345
7346 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7347 ada_language::lookup_symbol_nonlocal.
7348 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7349 (ada_language::lookup_symbol_nonlocal): New member function,
7350 implementation from ada_lookup_symbol_nonlocal.
7351 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7352 initializer.
7353 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7354 initializer.
7355 (cplus_language::lookup_symbol_nonlocal): New member function.
7356 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7357 (minimal_language_data) Likewise.
7358 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7359 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7360 initializer.
7361 (d_language::lookup_symbol_nonlocal): New member function.
7362 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7363 initializer.
7364 (f_language::lookup_symbol_nonlocal): New member function.
7365 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7366 initializer.
7367 * language.c (unknown_language_data): Likewise.
7368 (auto_language_data): Likewise.
7369 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7370 field.
7371 (language_defn::lookup_symbol_nonlocal): New member function.
7372 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7373 initializer.
7374 * objc-lang.c (objc_language_data): Likewise.
7375 * opencl-lang.c (opencl_language_data): Likewise.
7376 * p-lang.c (pascal_language_data): Likewise.
7377 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7378 rust_language::lookup_symbol_nonlocal.
7379 (rust_language_data): Delete la_lookup_symbol_nonlocal
7380 initializer.
7381 (rust_language::lookup_symbol_nonlocal): New member function,
7382 implementation from rust_lookup_symbol_nonlocal.
7383 * symtab.c (lookup_symbol_aux): Update call to
7384 lookup_symbol_nonlocal.
7385 (basic_lookup_symbol_nonlocal): Rename to...
7386 (language_defn::lookup_symbol_nonlocal): ...this, and update
7387 header comment. Remove language_defn parameter, and replace with
7388 uses of `this'.
7389 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7390
ebe2334e
AB
73912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7392
7393 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7394 initializer.
7395 (ada_language::value_print_inner): New member function.
7396 * c-lang.c (c_language_data): Delete la_value_print_inner
7397 initializer.
7398 (cplus_language_data): Likewise.
7399 (asm_language_data): Likewise.
7400 (minimal_language_data): Likewise.
7401 * d-lang.c (d_language_data): Likewise.
7402 (d_language::value_print_inner): New member function.
7403 * f-lang.c (f_language_data): Delete la_value_print_inner
7404 initializer.
7405 (f_language::value_print_inner): New member function.
7406 * f-lang.h (f_value_print_innner): Rename to...
7407 (f_value_print_inner): ...this (note spelling of 'inner').
7408 * f-valprint.c (f_value_print_innner): Rename to...
7409 (f_value_print_inner): ...this (note spelling of 'inner').
7410 * go-lang.c (go_language_data): Delete la_value_print_inner
7411 initializer.
7412 (go_language::value_print_inner): New member function.
7413 * language.c (language_defn::value_print_inner): Define new member
7414 function.
7415 (unk_lang_value_print_inner): Delete.
7416 (unknown_language_data): Delete la_value_print_inner initializer.
7417 (unknown_language::value_print_inner): New member function.
7418 (auto_language_data): Delete la_value_print_inner initializer.
7419 (auto_language::value_print_inner): New member function.
7420 * language.h (language_data): Delete la_value_print_inner field.
7421 (language_defn::value_print_inner): Delcare new member function.
7422 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7423 initializer.
7424 (m2_language::value_print_inner): New member function.
7425 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7426 initializer.
7427 * opencl-lang.c (opencl_language_data): Likewise.
7428 * p-lang.c (pascal_language_data): Likewise.
7429 (pascal_language::value_print_inner): New member function.
7430 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7431 initializer.
7432 (rust_language::value_print_inner): New member function.
7433 * valprint.c (do_val_print): Update call to value_print_inner.
7434
a1d1fa3e
AB
74352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7436
7437 * ada-lang.c (ada_language_data): Delete la_value_print
7438 initializer.
7439 (ada_language::value_print): New member function.
7440 * c-lang.c (c_language_data): Delete la_value_print initializer.
7441 (cplus_language_data): Likewise.
7442 (asm_language_data): Likewise.
7443 (minimal_language_data): Likewise.
7444 * d-lang.c (d_language_data): Likewise.
7445 * f-lang.c (f_language_data): Likewise.
7446 * go-lang.c (go_language_data): Likewise.
7447 * language.c (unk_lang_value_print): Delete.
7448 (language_defn::value_print): Define new member function.
7449 (unknown_language_data): Delete la_value_print initializer.
7450 (unknown_language::value_print): New member function.
7451 (auto_language_data): Delete la_value_print initializer.
7452 (auto_language::value_print): New member function.
7453 * language.h (language_data): Delete la_value_print field.
7454 (language_defn::value_print): Declare new member function.
7455 (LA_VALUE_PRINT): Update call to value_print.
7456 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7457 * objc-lang.c (objc_language_data): Likewise.
7458 * opencl-lang.c (opencl_language_data): Likewise.
7459 * p-lang.c (pascal_language_data): Likewise.
7460 (pascal_language::value_print): New member function.
7461 * rust-lang.c (rust_language_data): Delete la_value_print
7462 initializer.
7463
f16a9f57
AB
74642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7465
7466 * ada-lang.c (ada_watch_location_expression): Rename to
7467 ada_language::watch_location_expression.
7468 (ada_language_data): Delete la_watch_location_expression
7469 initializer.
7470 (ada_language::watch_location_expression): New member function,
7471 implementation from ada_watch_location_expression.
7472 * breakpoint.c (watch_command_1): Update call to
7473 watch_location_expression.
7474 * c-lang.c (c_watch_location_expression): Rename to
7475 language_defn::watch_location_expression.
7476 (c_language_data): Delete la_watch_location_expression
7477 initializer.
7478 (cplus_language_data): Likewise.
7479 (asm_language_data): Likewise.
7480 (minimal_language_data): Likewise.
7481 * c-lang.h (c_watch_location_expression): Delete declaration.
7482 * d-lang.c (d_language_data): Delete la_watch_location_expression
7483 initializer.
7484 * f-lang.c (f_language_data): Likewise.
7485 * go-lang.c (go_language_data): Likewise.
7486 * language.c (language_defn::watch_location_expression): Member
7487 function implementation from c_watch_location_expression.
7488 (unknown_language_data): Delete la_watch_location_expression
7489 initializer.
7490 (auto_language_data): Likewise.
7491 * language.h (language_data): Delete la_watch_location_expression
7492 field.
7493 (language_defn::watch_location_expression): Declare new member
7494 function.
7495 * m2-lang.c (m2_language_data): Delete
7496 la_watch_location_expression initializer.
7497 * objc-lang.c (objc_language_data): Likewise.
7498 * opencl-lang.c (opencl_language_data): Likewise.
7499 * p-lang.c (pascal_language_data): Likewise.
7500 * rust-lang.c (rust_watch_location_expression): Rename to
7501 rust_language::watch_location_expression.
7502 (rust_language_data): Delete la_watch_location_expression
7503 initializer.
7504 (rust_language::watch_location_expression): New member function,
7505 implementation from rust_watch_location_expression.
7506
7e56227d
AB
75072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7508
7509 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7510 ada_language::collect_symbol_completion_matches.
7511 (ada_language_data): Delete la_collect_symbol_completion_matches
7512 initializer.
7513 (ada_language::collect_symbol_completion_matches): New member
7514 function, implementation from
7515 ada_collect_symbol_completion_matches.
7516 * c-lang.c (c_language_data): Delete
7517 la_collect_symbol_completion_matches initializer.
7518 (cplus_language_data): Likewise.
7519 (asm_language_data): Likewise.
7520 (minimal_language_data): Likewise.
7521 * d-lang.c (d_language_data): Likewise.
7522 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7523 f_language::collect_symbol_completion_matches.
7524 (f_language_data): Delete la_collect_symbol_completion_matches
7525 initializer.
7526 (f_language::collect_symbol_completion_matches) New member
7527 function, implementation from f_collect_symbol_completion_matches.
7528 * go-lang.c (go_language_data): Delete
7529 la_collect_symbol_completion_matches initializer.
7530 * language.c (unknown_language_data): Likewise.
7531 (auto_language_data): Likewise.
7532 * language.h (language_data): Delete
7533 la_collect_symbol_completion_matches field.
7534 (language_defn::collect_symbol_completion_matches): New member
7535 function.
7536 * m2-lang.c (m2_language_data): Delete
7537 la_collect_symbol_completion_matches initializer.
7538 * objc-lang.c (objc_language_data): Likewise.
7539 * opencl-lang.c (opencl_language_data): Likewise.
7540 * p-lang.c (pascal_language_data): Likewise.
7541 * rust-lang.c (rust_language_data): Likewise.
7542 * symtab.c (default_collect_symbol_completion_matches): Delete.
7543 (collect_symbol_completion_matches): Update call to
7544 collect_symbol_completion_matches.
7545 (collect_symbol_completion_matches_type): Likewise.
7546 * symtab.h (default_collect_symbol_completion_matches): Delete
7547 declaration.
7548
53fc67f8
AB
75492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7550
7551 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7552 (ada_language_data): Delete la_word_break_characters initializer.
7553 (ada_language::word_break_characters): New member function.
7554 * c-lang.c (c_language_data): Delete la_word_break_characters
7555 initializer.
7556 (cplus_language_data): Likewise.
7557 (asm_language_data): Likewise.
7558 (minimal_language_data): Likewise.
7559 * completer.c: Update global comment.
7560 (advance_to_expression_complete_word_point): Update call to
7561 word_break_characters.
7562 (complete_files_symbols): Likewise.
7563 (complete_line_internal_1): Likewise.
7564 (default_completer_handle_brkchars): Likewise.
7565 (skip_quoted_chars): Likewise.
7566 * d-lang.c (d_language_data): Delete la_word_break_characters
7567 initializer.
7568 * f-lang.c (f_word_break_characters): Delete.
7569 (f_language_data): Delete la_word_break_characters initializer.
7570 (f_language::word_break_characters): New member function.
7571 * go-lang.c (go_language_data): Delete la_word_break_characters
7572 initializer.
7573 * language.c (unknown_language_data): Likewise.
7574 (auto_language_data): Likewise.
7575 * language.h (default_word_break_characters): Move declaration to
7576 earlier in the file.
7577 (language_data): Delete la_word_break_characters field.
7578 (language_defn::word_break_characters): New member function.
7579 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7580 initializer.
7581 * objc-lang.c (objc_language_data): Likewise.
7582 * opencl-lang.c (opencl_language_data): Likewise.
7583 * p-lang.c (pascal_language_data): Likewise.
7584 * rust-lang.c (rust_language_data): Likewise.
7585
c9debfb9
AB
75862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7587
7588 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7589 (ada_language_data): Delete la_get_symbol_name_matcher
7590 initializer.
7591 (language_defn::get_symbol_name_matcher_inner): New member
7592 function.
7593 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7594 initializer.
7595 (cplus_language_data): Likewise.
7596 (cplus_language::get_symbol_name_matcher_inner): New member
7597 function.
7598 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7599 (minimal_language_data): Likewise.
7600 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7601 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7602 initializer.
7603 * dictionary.c (iter_match_first_hashed): Update call to
7604 get_symbol_name_matcher.
7605 (iter_match_next_hashed): Likewise.
7606 (iter_match_next_linear): Likewise.
7607 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7608 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7609 initializer.
7610 (f_language::get_symbol_name_matcher_inner): New member function.
7611 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7612 initializer.
7613 * language.c (default_symbol_name_matcher): Update header comment,
7614 make static.
7615 (language_defn::get_symbol_name_matcher): New definition.
7616 (language_defn::get_symbol_name_matcher_inner): Likewise.
7617 (get_symbol_name_matcher): Delete.
7618 (unknown_language_data): Delete la_get_symbol_name_matcher
7619 initializer.
7620 (auto_language_data): Likewise.
7621 * language.h (language_data): Delete la_get_symbol_name_matcher
7622 field.
7623 (language_defn::get_symbol_name_matcher): New member function.
7624 (language_defn::get_symbol_name_matcher_inner): Likewise.
7625 (default_symbol_name_matcher): Delete declaration.
7626 * linespec.c (find_methods): Update call to
7627 get_symbol_name_matcher.
7628 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7629 initializer.
7630 * minsyms.c (lookup_minimal_symbol): Update call to
7631 get_symbol_name_matcher.
7632 (iterate_over_minimal_symbols): Likewise.
7633 * objc-lang.c (objc_language_data): Delete
7634 la_get_symbol_name_matcher initializer.
7635 * opencl-lang.c (opencl_language_data): Likewise.
7636 * p-lang.c (pascal_language_data): Likewise.
7637 * psymtab.c (psymbol_name_matches): Update call to
7638 get_symbol_name_matcher.
7639 * rust-lang.c (rust_language_data): Delete
7640 la_get_symbol_name_matcher initializer.
7641 * symtab.c (symbol_matches_search_name): Update call to
7642 get_symbol_name_matcher.
7643 (compare_symbol_name): Likewise.
7644
9a49ad8c
AB
76452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7646
7647 * ada-lang.c (ada_language_data): Delete la_compute_program
7648 initializer.
7649 * c-lang.c (c_language_data): Likewise.
7650 (c_language::compute_program): New member function.
7651 (cplus_language_data): Delete la_compute_program initializer.
7652 (cplus_language::compute_program): New member function.
7653 (asm_language_data): Delete la_compute_program initializer.
7654 (minimal_language_data): Likewise.
7655 * c-lang.h (c_compute_program): Update comment.
7656 (cplus_compute_program): Likewise.
7657 * compile/compile-c-support.c (c_compute_program): Likewise.
7658 (cplus_compute_program): Likewise.
7659 * compile/compile.c (compile_to_object): Update call to
7660 la_compute_program.
7661 * d-lang.c (d_language_data): Delete la_compute_program
7662 initializer.
7663 * f-lang.c (f_language_data): Likewise.
7664 * go-lang.c (go_language_data): Likewise.
7665 * language.c (unknown_language_data): Likewise.
7666 (auto_language_data): Likewise.
7667 * language.h (language_data): Delete la_compute_program field.
7668 (language_defn::compute_program): New member function.
7669 * m2-lang.c (m2_language_data): Delete la_compute_program
7670 initializer.
7671 * objc-lang.c (objc_language_data): Likewise.
7672 * opencl-lang.c (opencl_language_data): Likewise.
7673 * p-lang.c (pascal_language_data): Likewise.
7674 * rust-lang.c (rust_language_data): Likewise.
7675
eff93b4d
AB
76762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7677
7678 * ada-lang.c (ada_language_data) Delete
7679 la_class_name_from_physname initializer.
7680 * c-lang.c (c_language_data): Likewise.
7681 (cplus_language_data): Likewise.
7682 (cplus_language::class_name_from_physname): New member function.
7683 (asm_language_data): Delete la_class_name_from_physname
7684 initializer.
7685 (minimal_language_data): Likewise.
7686 * d-lang.c (d_language_data): Likewise.
7687 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7688 method on language_defn class.
7689 (guess_full_die_structure_name): Likewise.
7690 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7691 initializer.
7692 * go-lang.c (go_language_data): Likewise.
7693 * language.c (language_class_name_from_physname): Delete.
7694 (unk_lang_class_name): Delete.
7695 (unknown_language_data): Delete la_class_name_from_physname
7696 initializer.
7697 (auto_language_data): Likewise.
7698 * language.h (language_data): Delete la_class_name_from_physname
7699 field.
7700 (language_defn::class_name_from_physname): New function.
7701 (language_class_name_from_physname): Delete declaration.
7702 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7703 initializer.
7704 * objc-lang.c (objc_language_data): Likewise.
7705 * opencl-lang.c (opencl_language_data): Likewise.
7706 * p-lang.c (pascal_language_data): Likewise.
7707 * rust-lang.c (rust_language_data): Likewise.
7708
de543742
TT
77092020-06-16 Tom Tromey <tom@tromey.com>
7710
7711 * tui/tui-data.h (STATUS_NAME): New macro.
7712 * tui/tui-layout.c (tui_remove_some_windows)
7713 (initialize_known_windows, tui_register_window)
7714 (tui_layout_split::remove_windows, initialize_layouts)
7715 (tui_new_layout_command): Don't use hard-coded window names.
7716
a350efd4
TT
77172020-06-16 Tom Tromey <tom@tromey.com>
7718
7719 PR tui/25348:
7720 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7721 tui_initialize_readline. Only run once. Call rl_initialize.
7722 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7723 tui_initialize_readline.
7724 * tui/tui-io.c (tui_setup_io): Call
7725 tui_ensure_readline_initialized.
7726 * tui/tui-interp.c (tui_interp::init): Update.
7727
39ec0490
TT
77282020-06-16 Tom Tromey <tom@tromey.com>
7729
7730 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7731 Also preserve the status window.
7732
d2d1ea20
TT
77332020-06-16 Tom Tromey <tom@tromey.com>
7734
7735 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7736 where m_window==nullptr.
7737
66920317
TT
77382020-06-15 Tom Tromey <tromey@adacore.com>
7739
7740 * windows-nat.c (windows_nat::handle_output_debug_string):
7741 Update.
7742 (windows_nat::handle_ms_vc_exception): Update.
7743 * target.h (target_read_string): Change API.
7744 * target.c (target_read_string): Change API.
7745 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7746 Update.
7747 * solib-frv.c (frv_current_sos): Update.
7748 * solib-dsbt.c (dsbt_current_sos): Update.
7749 * solib-darwin.c (darwin_current_sos): Update.
7750 * linux-thread-db.c (inferior_has_bug): Update.
7751 * expprint.c (print_subexp_standard): Update.
7752 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7753 (ada_exception_message_1): Update.
7754
a5d871dd
TT
77552020-06-15 Tom Tromey <tromey@adacore.com>
7756
7757 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7758
670e35fa
TT
77592020-06-15 Tom Tromey <tromey@adacore.com>
7760
7761 * valprint.c (read_string): Update comment.
7762 * target.c (MIN): Remove.
7763 (target_read_string): Rewrite.
7764
f5272a3b
TT
77652020-06-15 Tom Tromey <tromey@adacore.com>
7766
7767 * corefile.c (read_memory_string): Remove.
7768 * ada-valprint.c (ada_value_print_ptr): Update.
7769 * ada-lang.h (ada_tag_name): Change return type.
7770 * ada-lang.c (type_from_tag): Update.
7771 (ada_tag_name_from_tsd): Change return type. Use
7772 target_read_string.
7773 (ada_tag_name): Likewise.
7774 * gdbcore.h (read_memory_string): Don't declare.
7775
2c074f49
HD
77762020-06-14 Hannes Domani <ssbssa@yahoo.de>
7777
7778 * symtab.c (rbreak_command): Ignore Windows drive colon.
7779
6a17d503
SM
77802020-06-12 Simon Marchi <simon.marchi@efficios.com>
7781
7782 * NEWS: Mention removed GDBserver host support.
7783
453c733f
NC
77842020-06-12 Nelson Chu <nelson.chu@sifive.com>
7785
7786 * features/riscv/rebuild-csr-xml.sh: Updated.
7787
2b4e6a3f
TT
77882020-06-11 Tom Tromey <tom@tromey.com>
7789
7790 PR gdb/18318:
7791 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7792
4412332f
JG
77932020-06-09 Jonny Grant <jg@jguk.org>
77942020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7795
7796 * main.c (captured_main_1): Don't print new line after help.
7797 (print_gdb_help): add mailing list and IRC channel information
7798 to --help. Add new lines between items in the footer. Remove
7799 quotes around bug url.
7800
2f33032a
KS
78012020-06-11 Keith Seitz <keiths@redhat.com>
7802
7803 PR gdb/21356
7804 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7805 Resolve typedefs for type length calculations.
7806
7ab96794
TV
78072020-06-10 Tom de Vries <tdevries@suse.de>
7808
7809 PR ada/24713
7810 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7811 (write_psymbols): Enable .gdb_index for ada.
7812 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7813 ada.
7814
e5f3ece2
TV
78152020-06-10 Tom de Vries <tdevries@suse.de>
7816
7817 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7818 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7819 namei" instead of "const char *name" argument.
7820 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7821 dw2_symtab_iter_init.
7822
940da03e
SM
78232020-06-08 Simon Marchi <simon.marchi@efficios.com>
7824
7825 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7826 to use type::field and field::type instead.
7827
b6cdac4b
SM
78282020-06-08 Simon Marchi <simon.marchi@efficios.com>
7829
7830 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7831 to use field::type instead.
7832
5d14b6e5
SM
78332020-06-08 Simon Marchi <simon.marchi@efficios.com>
7834
7835 * gdbtypes.h (struct field) <type, set_type>: New methods.
7836 Rename `type` field to...
7837 <m_type>: ... this. Change references throughout to use type or
7838 set_type methods.
7839 (FIELD_TYPE): Use field::type. Change call sites that modify
7840 the field's type to use field::set_type instead.
7841
3d967001
SM
78422020-06-08 Simon Marchi <simon.marchi@efficios.com>
7843
7844 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7845 to use type::index_type instead.
7846
262abc0d
SM
78472020-06-08 Simon Marchi <simon.marchi@efficios.com>
7848
7849 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7850 methods.
7851 (TYPE_INDEX_TYPE): Use type::index_type.
7852 * gdbtypes.c (create_array_type_with_stride): Likewise.
7853
82836c92
TT
78542020-06-07 Tom Tromey <tom@tromey.com>
7855
7856 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7857 parameter.
7858 (generic_value_print): Update.
7859
940dace9
AB
78602020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7861
7862 Revert commit 982a38f60b0.
7863 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7864
982a38f6
AB
78652020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7866
7867 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7868 avoid use after free.
7869
82f06518
TV
78702020-06-05 Tom de Vries <tdevries@suse.de>
7871
7872 * NEWS: Fix typos.
7873
f8c41851
SM
78742020-06-04 Simon Marchi <simon.marchi@efficios.com>
7875
7876 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7877 the per_bfd object.
7878 (dwarf2_read_debug_names): Likewise.
7879 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7880 object when re-using a per_bfd object with an index.
7881
f9b5d5ea
TV
78822020-06-03 Tom de Vries <tdevries@suse.de>
7883
7884 PR symtab/26046
7885 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7886 children for C++.
7887 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7888 DW_TAG_subprogram.
7889
f6eee2d0
AB
78902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7891
7892 * ada-lang.c (ada_language_data): Delete skip_trampoline
7893 initializer.
7894 * c-lang.c (c_language_data): Likewise.
7895 (cplus_language_data): Likewise.
7896 (cplus_language::skip_trampoline): New member function.
7897 (asm_language_data): Delete skip_trampoline initializer.
7898 (minimal_language_data): Likewise.
7899 * d-lang.c (d_language_data): Likewise.
7900 * f-lang.c (f_language_data): Likewise.
7901 * go-lang.c (go_language_data): Likewise.
7902 * language.c (unk_lang_trampoline): Delete function.
7903 (skip_language_trampoline): Update.
7904 (unknown_language_data): Delete skip_trampoline initializer.
7905 (auto_language_data): Likewise.
7906 * language.h (language_data): Delete skip_trampoline field.
7907 (language_defn::skip_trampoline): New function.
7908 * m2-lang.c (m2_language_data): Delete skip_trampoline
7909 initializer.
7910 * objc-lang.c (objc_skip_trampoline): Delete function, move
7911 implementation to objc_language::skip_trampoline.
7912 (objc_language_data): Delete skip_trampoline initializer.
7913 (objc_language::skip_trampoline): New member function with
7914 implementation from objc_skip_trampoline.
7915 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7916 initializer.
7917 * p-lang.c (pascal_language_data): Likewise.
7918 * rust-lang.c (rust_language_data): Likewise.
7919
0a50df5d
AB
79202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7921
7922 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7923 (ada_language::demangle): New member function.
7924 * c-lang.c (c_language_data): Delete la_demangle initializer.
7925 (cplus_language_data): Delete la_demangle initializer.
7926 (cplus_language::demangle): New member function.
7927 (asm_language_data): Delete la_demangle initializer.
7928 (minimal_language_data): Delete la_demangle initializer.
7929 * d-lang.c (d_language_data): Delete la_demangle initializer.
7930 (d_language::demangle): New member function.
7931 * f-lang.c (f_language_data): Delete la_demangle initializer.
7932 (f_language::demangle): New member function.
7933 * go-lang.c (go_language_data): Delete la_demangle initializer.
7934 (go_language::demangle): New member function.
7935 * language.c (language_demangle): Update.
7936 (unk_lang_demangle): Delete.
7937 (unknown_language_data): Delete la_demangle initializer.
7938 (unknown_language::demangle): New member function.
7939 (auto_language_data): Delete la_demangle initializer.
7940 (auto_language::demangle): New member function.
7941 * language.h (language_data): Delete la_demangle field.
7942 (language_defn::demangle): New function.
7943 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7944 * objc-lang.c (objc_language_data): Delete la_demangle
7945 initializer.
7946 (objc_language::demangle): New member function.
7947 * opencl-lang.c (opencl_language_data): Delete la_demangle
7948 initializer.
7949 * p-lang.c (pascal_language_data): Likewise.
7950 * rust-lang.c (rust_language_data): Likewise.
7951 (rust_language::demangle): New member function.
7952
fbfb0a46
AB
79532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7954
7955 * ada-lang.c (ada_language_data): Delete la_print_type
7956 initializer.
7957 (ada_language::print_type): New member function.
7958 * c-lang.c (c_language_data): Delete la_print_type initializer.
7959 (c_language::print_type): New member function.
7960 (cplus_language_data): Delete la_print_type initializer.
7961 (cplus_language::print_type): New member function.
7962 (asm_language_data): Delete la_print_type initializer.
7963 (asm_language::print_type): New member function.
7964 (minimal_language_data): Delete la_print_type initializer.
7965 (minimal_language::print_type): New member function.
7966 * d-lang.c (d_language_data): Delete la_print_type initializer.
7967 (d_language::print_type): New member function.
7968 * f-lang.c (f_language_data): Delete la_print_type initializer.
7969 (f_language::print_type): New member function.
7970 * go-lang.c (go_language_data): Delete la_print_type initializer.
7971 (go_language::print_type): New member function.
7972 * language.c (unk_lang_print_type): Delete.
7973 (unknown_language_data): Delete la_print_type initializer.
7974 (unknown_language::print_type): New member function.
7975 (auto_language_data): Delete la_print_type initializer.
7976 (auto_language::print_type): New member function.
7977 * language.h (language_data): Delete la_print_type field.
7978 (language_defn::print_type): New function.
7979 (LA_PRINT_TYPE): Update.
7980 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7981 (m2_language::print_type): New member function.
7982 * objc-lang.c (objc_language_data): Delete la_print_type
7983 initializer.
7984 (objc_language::print_type): New member function.
7985 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7986 to opencl_language::print_type.
7987 (opencl_language_data): Delete la_print_type initializer.
7988 (opencl_language::print_type): New member function, implementation
7989 from opencl_print_type.
7990 * p-lang.c (pascal_language_data): Delete la_print_type
7991 initializer.
7992 (pascal_language::print_type): New member function.
7993 * rust-lang.c (rust_print_type): Delete, implementation moved to
7994 rust_language::print_type.
7995 (rust_language_data): Delete la_print_type initializer.
7996 (rust_language::print_type): New member function, implementation
7997 from rust_print_type.
7998
6f827019
AB
79992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8000
8001 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8002 implementation moves to...
8003 (ada_language::sniff_from_mangled_name): ...here. Update return
8004 type.
8005 (ada_language_data): Delete la_sniff_from_mangled_name
8006 initializer.
8007 * c-lang.c (c_language_data): Likewise.
8008 (cplus_language_data): Likewise.
8009 (cplus_language::sniff_from_mangled_name): New member function,
8010 implementation taken from gdb_sniff_from_mangled_name.
8011 (asm_language_data): Delete la_sniff_from_mangled_name
8012 initializer.
8013 (minimal_language_data): Likewise.
8014 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8015 implementation moves to cplus_language::sniff_from_mangled_name.
8016 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8017 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8018 moves to...
8019 (d_language::sniff_from_mangled_name): ...here.
8020 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8021 * f-lang.c (f_language_data): Likewise.
8022 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8023 moves to...
8024 (go_language::sniff_from_mangled_name): ...here.
8025 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8026 * language.c (language_sniff_from_mangled_name): Delete.
8027 (unknown_language_data): Delete la_sniff_from_mangled_name
8028 initializer.
8029 (auto_language_data): Likewise.
8030 * language.h (language_data): Delete la_sniff_from_mangled_name
8031 field.
8032 (language_defn::sniff_from_mangled_name): New function.
8033 (language_sniff_from_mangled_name): Delete declaration.
8034 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8035 field.
8036 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8037 implementation moves to...
8038 (objc_language::sniff_from_mangled_name): ...here.
8039 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8040 * opencl-lang.c (opencl_language_data): Likewise.
8041 * p-lang.c (pascal_language_data): Likewise.
8042 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8043 implementation moves to...
8044 (rust_language::sniff_from_mangled_name): ...here.
8045 (rust_language_data): Delete la_sniff_from_mangled_name
8046 initializer.
8047 * symtab.c (symbol_find_demangled_name): Call
8048 sniff_from_mangled_name member function.
8049
fb8006fd
AB
80502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8051
8052 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8053 initializer.
8054 * c-lang.c (c_language_data): Likewise.
8055 (cplus_language_data): Likewise.
8056 (cplus_language::search_name_hash): New member function.
8057 (asm_language_data): Delete la_search_name_hash initializer.
8058 (minimal_language_data): Likewise.
8059 * d-lang.c (d_language_data): Likewise.
8060 * dictionary.c (default_search_name_hash): Rename to...
8061 (language_defn::search_name_hash): ...this.
8062 * f-lang.c (f_language_data): Likewise.
8063 (f_language::search_name_hash): New member function.
8064 * go-lang.c (go_language_data): Delete la_search_name_hash
8065 initializer.
8066 * language.c (unknown_language_data): Likewise.
8067 (auto_language_data): Likewise.
8068 * language.h (struct language_data): Delete la_search_name_hash
8069 field.
8070 (language_defn::search_name_hash): Declare new member function.
8071 (default_search_name_hash): Delete declaration.
8072 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8073 initializer.
8074 * objc-lang.c (objc_language_data): Likewise.
8075 * opencl-lang.c (opencl_language_data): Likewise.
8076 * p-lang.c (pascal_language_data): Likewise.
8077 * rust-lang.c (rust_language_data): Likewise.
8078 * symtab.c (search_name_hash): Update call.
8079
8e25bafe
AB
80802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8081
8082 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8083 initializer.
8084 * c-lang.c (class compile_instance): Declare.
8085 (c_language_data): Delete la_get_compile_instance initializer.
8086 (c_language::get_compile_instance): New member function.
8087 (cplus_language_data): Delete la_get_compile_instance initializer.
8088 (cplus_language::get_compile_instance): New member function.
8089 (asm_language_data): Delete la_get_compile_instance initializer.
8090 (minimal_language_data): Likewise.
8091 * c-lang.h (c_get_compile_context): Update comment.
8092 (cplus_get_compile_context): Update comment.
8093 * compile/compile.c (compile_to_object): Update calls, don't rely
8094 on function pointer being NULL.
8095 * d-lang.c (d_language_data): Delete la_get_compile_instance
8096 initializer.
8097 * f-lang.c (f_language_data): Likewise.
8098 * go-lang.c (go_language_data): Likewise.
8099 * language.c (unknown_language_data): Likewise.
8100 (auto_language_data): Likewise.
8101 * language.h (language_data): Delete la_get_compile_instance field.
8102 (language_defn::get_compile_instance): New member function.
8103 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8104 initializer.
8105 * objc-lang.c (objc_language_data): Likewise.
8106 * opencl-lang.c (opencl_language_data): Likewise.
8107 * p-lang.c (pascal_language_data): Likewise.
8108 * rust-lang.c (rust_language_data): Likewise.
8109
4009ee92
AB
81102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8111
8112 * ada-lang.c (ada_add_all_symbols): Update comment.
8113 (ada_iterate_over_symbols): Delete, move implementation to...
8114 (ada_language::iterate_over_symbols): ...here, a new member
8115 function, rewrite to use range based for loop.
8116 (ada_language_data): Delete la_iterate_over_symbols initializer.
8117 * c-lang.c (c_language_data): Likewise.
8118 (cplus_language_data): Likewise.
8119 (asm_language_data): Likewise.
8120 (minimal_language_data): Likewise.
8121 * d-lang.c (d_language_data): Likewise.
8122 * f-lang.c (f_language_data): Likewise.
8123 * go-lang.c (go_language_data): Likewise.
8124 * language.c (unknown_language_data): Likewise.
8125 (auto_language_data): Likewise.
8126 * language.h (language_data): Delete la_iterate_over_symbols field.
8127 (language_defn::iterate_over_symbols): New member function.
8128 (LA_ITERATE_OVER_SYMBOLS): Update.
8129 * linespec.c (iterate_over_all_matching_symtabs): Update.
8130 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8131 initializer.
8132 * objc-lang.c (objc_language_data): Likewise.
8133 * opencl-lang.c (opencl_language_data): Likewise.
8134 * p-lang.c (pascal_language_data): Likewise.
8135 * rust-lang.c (rust_language_data): Likewise.
8136
54f4ca46
AB
81372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8138
8139 * ada-lang.c (ada_language_data): Delete
8140 la_lookup_transparent_type initializer.
8141 * c-lang.c (c_language_data): Likewise.
8142 (cplus_language_data): Likewise.
8143 (cplus_language::lookup_transparent_type): New member function.
8144 (asm_language_data): Delete la_lookup_transparent_type
8145 initializer.
8146 (minimal_language_data): Likewise.
8147 * d-lang.c (d_language_data): Likewise.
8148 * f-lang.c (f_language_data): Likewise.
8149 * go-lang.c (go_language_data): Likewise.
8150 * language.c (unknown_language_data): Likewise.
8151 (auto_language_data): Likewise.
8152 * language.h (struct language_data): Delete
8153 la_lookup_transparent_type field.
8154 (language_defn::lookup_transparent_type): New member function.
8155 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8156 initializer.
8157 * objc-lang.c (objc_language_data): Likewise.
8158 * opencl-lang.c (opencl_language_data): Likewise.
8159 * p-lang.c (pascal_language_data): Likewise.
8160 * rust-lang.c (rust_language_data): Likewise.
8161 * symtab.c (symbol_matches_domain): Update call.
8162
1fb314aa
AB
81632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8164
8165 * ada-lang.c (ada_language_arch_info): Delete function, move
8166 implementation to...
8167 (ada_language::language_arch_info): ...here, a new member
8168 function.
8169 (ada_language_data): Delete la_language_arch_info.
8170 * c-lang.c (c_language_data): Likewise.
8171 (c_language::language_arch_info): New member function.
8172 (cplus_language_arch_info): Delete function, move
8173 implementation to...
8174 (cplus_language::language_arch_info): ...here, a new member
8175 function.
8176 (cplus_language_data): Delete la_language_arch_info.
8177 (asm_language_data): Likewise.
8178 (asm_language::language_arch_info): New member function.
8179 (minimal_language_data): Delete la_language_arch_info.
8180 (minimal_language::language_arch_info): New member function.
8181 * d-lang.c (d_language_arch_info): Delete function, move
8182 implementation to...
8183 (d_language::language_arch_info): ...here, a new member
8184 function.
8185 (d_language_data): Delete la_language_arch_info.
8186 * f-lang.c (f_language_arch_info): Delete function, move
8187 implementation to...
8188 (f_language::language_arch_info): ...here, a new member
8189 function.
8190 (f_language_data): Delete la_language_arch_info.
8191 * go-lang.c (go_language_arch_info): Delete function, move
8192 implementation to...
8193 (go_language::language_arch_info): ...here, a new member
8194 function.
8195 (go_language_data): Delete la_language_arch_info.
8196 * language.c (unknown_language_data): Likewise.
8197 (unknown_language::language_arch_info): New member function.
8198 (auto_language_data): Delete la_language_arch_info.
8199 (auto_language::language_arch_info): New member function.
8200 (language_gdbarch_post_init): Update call to
8201 la_language_arch_info.
8202 * language.h (language_data): Delete la_language_arch_info
8203 function pointer.
8204 (language_defn::language_arch_info): New function.
8205 * m2-lang.c (m2_language_arch_info): Delete function, move
8206 implementation to...
8207 (m2_language::language_arch_info): ...here, a new member
8208 function.
8209 (m2_language_data): Delete la_language_arch_info.
8210 * objc-lang.c (objc_language_arch_info): Delete function, move
8211 implementation to...
8212 (objc_language::language_arch_info): ...here, a new member
8213 function.
8214 (objc_language_data): Delete la_language_arch_info.
8215 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8216 implementation to...
8217 (opencl_language::language_arch_info): ...here, a new member
8218 function.
8219 (opencl_language_data): Delete la_language_arch_info.
8220 * p-lang.c (pascal_language_arch_info): Delete function, move
8221 implementation to...
8222 (pascal_language::language_arch_info): ...here, a new member
8223 function.
8224 (pascal_language_data): Delete la_language_arch_info.
8225 * rust-lang.c (rust_language_arch_info): Delete function, move
8226 implementation to...
8227 (rust_language::language_arch_info): ...here, a new member
8228 function.
8229 (rust_language_data): Delete la_language_arch_info.
8230
48448202
AB
82312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8232
8233 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8234 initializer.
8235 * c-lang.c (c_language_data): Likewise.
8236 (cplus_language_data): Likewise.
8237 (cplus_language::pass_by_reference_info): New method.
8238 (asm_language_data): Delete la_pass_by_reference initializer.
8239 (minimal_language_data): Likewise.
8240 * cp-abi.c (cp_pass_by_reference): Remove use of
8241 default_pass_by_reference.
8242 * d-lang.c (d_language_data): Likewise.
8243 * f-lang.c (f_language_data): Likewise.
8244 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8245 default_pass_by_reference.
8246 * go-lang.c (go_language_data): Likewise.
8247 * language.c (language_pass_by_reference): Update.
8248 (default_pass_by_reference): Delete.
8249 (unknown_language_data): Delete la_pass_by_reference
8250 initializer.
8251 (auto_language_data): Likewise.
8252 * language.h (struct language_data): Delete la_pass_by_reference
8253 field.
8254 (language_defn::pass_by_reference_info): New member function.
8255 (default_pass_by_reference): Delete declaration.
8256 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8257 initializer.
8258 * objc-lang.c (objc_language_data): Likewise.
8259 * opencl-lang.c (opencl_language_data): Likewise.
8260 * p-lang.c (pascal_language_data): Likewise.
8261 * rust-lang.c (rust_language_data): Likewise.
8262
15e5fd35
AB
82632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8264
8265 * ada-lang.c (ada_read_var_value): Delete function, move
8266 implementation to...
8267 (ada_language::read_var_value): ...here.
8268 (ada_language_data): Delete la_read_var_value initializer.
8269 * c-lang.c (c_language_data): Likewise.
8270 (cplus_language_data): Likewise.
8271 (minimal_language_data): Likewise.
8272 * d-lang.c (d_language_data): Likewise.
8273 * f-lang.c (f_language_data): Likewise.
8274 * findvar.c (default_read_var_value): Rename to...
8275 (language_defn::read_var_value): ...this.
8276 * findvar.c (read_var_value): Update header comment, and change to
8277 call member function instead of function pointer.
8278 * go-lang.c (go_language_data): Likewise.
8279 * language.c (unknown_language_data): Delete la_read_var_value
8280 initializer.
8281 (auto_language_data): Likewise.
8282 * language.h (struct language_data): Delete la_read_var_value
8283 field.
8284 (language_defn::read_var_value): New member function.
8285 (default_read_var_value): Delete declaration.
8286 * m2-lang.c (m2_language_data): Delete la_read_var_value
8287 initializer.
8288 * objc-lang.c (objc_language_data): Likewise.
8289 * opencl-lang.c (opencl_language_data): Likewise.
8290 * p-lang.c (pascal_language_data): Likewise.
8291 * rust-lang.c (rust_language_data): Likewise.
8292 * value.h (default_read_var_value): Delete declaration.
8293
5bd40f2a
AB
82942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8295
8296 * ada-lang.c (ada_print_array_index): Delete function, move
8297 implementation to...
8298 (ada_language::print_array_index): ...here.
8299 (ada_language_data): Delete la_print_array_index initializer.
8300 * c-lang.c (c_language_data): Likewise.
8301 (cplus_language_data): Likewise.
8302 (minimal_language_data): Likewise.
8303 * d-lang.c (d_language_data): Likewise.
8304 * f-lang.c (f_language_data): Likewise.
8305 * go-lang.c (go_language_data): Likewise.
8306 * language.c (default_print_array_index): Delete function, move
8307 implementation to...
8308 (language_defn::print_array_index): ...here.
8309 (unknown_language_data): Delete la_print_array_index initializer.
8310 (auto_language_data): Likewise.
8311 * language.h (struct language_data): Delete la_print_array_index
8312 field.
8313 (language_defn::print_array_index): New member function.
8314 (LA_PRINT_ARRAY_INDEX): Update.
8315 (default_print_array_index): Delete declaration.
8316 * m2-lang.c (m2_language_data): Delete la_print_array_index
8317 initializer.
8318 * objc-lang.c (objc_language_data): Likewise.
8319 * opencl-lang.c (opencl_language_data): Likewise.
8320 * p-lang.c (pascal_language_data): Likewise.
8321 * rust-lang.c (rust_language_data): Likewise.
8322
0874fd07
AB
83232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8324
8325 * gdb/ada-lang.c (ada_language_defn): Convert to...
8326 (ada_language_data): ...this.
8327 (class ada_language): New class.
8328 (ada_language_defn): New static global.
8329 * gdb/c-lang.c (c_language_defn): Convert to...
8330 (c_language_data): ...this.
8331 (class c_language): New class.
8332 (c_language_defn): New static global.
8333 (cplus_language_defn): Convert to...
8334 (cplus_language_data): ...this.
8335 (class cplus_language): New class.
8336 (cplus_language_defn): New static global.
8337 (asm_language_defn): Convert to...
8338 (asm_language_data): ...this.
8339 (class asm_language): New class.
8340 (asm_language_defn): New static global.
8341 (minimal_language_defn): Convert to...
8342 (minimal_language_data): ...this.
8343 (class minimal_language): New class.
8344 (minimal_language_defn): New static global.
8345 * gdb/d-lang.c (d_language_defn): Convert to...
8346 (d_language_data): ...this.
8347 (class d_language): New class.
8348 (d_language_defn): New static global.
8349 * gdb/f-lang.c (f_language_defn): Convert to...
8350 (f_language_data): ...this.
8351 (class f_language): New class.
8352 (f_language_defn): New static global.
8353 * gdb/go-lang.c (go_language_defn): Convert to...
8354 (go_language_data): ...this.
8355 (class go_language): New class.
8356 (go_language_defn): New static global.
8357 * gdb/language.c (unknown_language_defn): Remove declaration.
8358 (current_language): Initialize to nullptr, real initialization is
8359 moved to _initialize_language.
8360 (languages): Delete global.
8361 (language_defn::languages): Define.
8362 (set_language_command): Use language_defn::languages.
8363 (set_language): Likewise.
8364 (range_error): Likewise.
8365 (language_enum): Likewise.
8366 (language_def): Likewise.
8367 (add_set_language_command): Use language_def::languages for the
8368 language list, and language_def to lookup language pointers.
8369 (skip_language_trampoline): Use language_defn::languages.
8370 (unknown_language_defn): Convert to...
8371 (unknown_language_data): ...this.
8372 (class unknown_language): New class.
8373 (unknown_language_defn): New static global.
8374 (auto_language_defn): Convert to...
8375 (auto_language_data): ...this.
8376 (class auto_language): New class.
8377 (auto_language_defn): New static global.
8378 (language_gdbarch_post_init): Use language_defn::languages.
8379 (_initialize_language): Initialize current_language.
8380 * gdb/language.h (struct language_defn): Rename to...
8381 (struct language_data): ...this.
8382 (struct language_defn): New.
8383 (auto_language_defn): Delete.
8384 (unknown_language_defn): Delete.
8385 (minimal_language_defn): Delete.
8386 (ada_language_defn): Delete.
8387 (asm_language_defn): Delete.
8388 (c_language_defn): Delete.
8389 (cplus_language_defn): Delete.
8390 (d_language_defn): Delete.
8391 (f_language_defn): Delete.
8392 (go_language_defn): Delete.
8393 (m2_language_defn): Delete.
8394 (objc_language_defn): Delete.
8395 (opencl_language_defn): Delete.
8396 (pascal_language_defn): Delete.
8397 (rust_language_defn): Delete.
8398 * gdb/m2-lang.c (m2_language_defn): Convert to...
8399 (m2_language_data): ...this.
8400 (class m2_language): New class.
8401 (m2_language_defn): New static global.
8402 * gdb/objc-lang.c (objc_language_defn): Convert to...
8403 (objc_language_data): ...this.
8404 (class objc_language): New class.
8405 (objc_language_defn): New static global.
8406 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8407 (opencl_language_data): ...this.
8408 (class opencl_language): New class.
8409 (opencl_language_defn): New static global.
8410 * gdb/p-lang.c (pascal_language_defn): Convert to...
8411 (pascal_language_data): ...this.
8412 (class pascal_language): New class.
8413 (pascal_language_defn): New static global.
8414 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8415 language pointer, update comment format.
8416 * gdb/rust-lang.c (rust_language_defn): Convert to...
8417 (rust_language_data): ...this.
8418 (class rust_language): New class.
8419 (rust_language_defn): New static global.
8420
1313c56e
AB
84212020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8422
8423 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8424 member variable.
8425 <m_stmt_at_address>: New member variable.
8426 (lnp_state_machine::record_line): Don't record some lines, update
8427 tracking of is_stmt at the same address.
8428 (lnp_state_machine::lnp_state_machine): Initialise new member
8429 variables.
8430
b7ed9f3d
ST
84312020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8432
8433 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8434 "-include gnu-nat-mig.h".
8435 * gnu-nat-mig.h: New file.
8436 * gnu-nat.c: Include "gnu-nat-mig.h".
8437 (exc_server, msg_reply_server, notify_server,
8438 process_reply_server): Remove declarations.
8439
14a8ad62
ST
84402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8441
8442 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8443 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8444 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8445 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8446 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8447 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8448 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8449 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8450 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8451 to gnu_nat_target class.
8452 * gnu-nat.c: Likewise.
8453 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8454 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8455 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8456 object.
8457 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8458 instead of `gnu_target'.
8459
0af5e106
ST
84602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8461
8462 * i386-gnu-tdep.c: Include "gdbcore.h"
8463 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8464 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8465 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8466 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8467 i386_gnu_sigcontext_addr): New functions
8468 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8469 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8470 tdep.
8471
078f2fc9
ST
84722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8473
8474 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8475 before fork_inferior call. Avoid calling it if target_is_pushed returns
8476 true.
8477
53dff92c
ST
84782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8479
8480 * gnu-nat.h (gnu_target): New variable declaration.
8481 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8482 gnu_target.
8483 * gnu-nat.c (gnu_target): New variable.
8484 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8485 add_thread_silent, and add_thread calls.
8486 (gnu_nat_target::create_inferior): Pass gnu_target to
8487 add_thread_silent, thread_change_ptid call.
8488 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8489 call.
8490
5a8b8627
ST
84912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8492
8493 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8494 (gnu_nat_target::find_memory_regions): Remove unused
8495 `old_address' variable.
8496
366f550a
ST
84972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8498
8499 * gnu-nat.c: Include "gdbarch.h".
8500
f14871bf
ST
85012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8502
8503 * reply_mig_hack.awk (Error return): Cast function through
8504 void *, to bypass compiler function call check.
8505
c6887cfb
ST
85062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8507
8508 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8509 $(srcdir)/reply_mig_hack.awk.
8510
6930bffe
ST
85112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8512
8513 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8514
112c22ed
JG
85152020-05-30 Jonny Grant <jg@jguk.org>
8516
8517 * configure.ac (ACX_BUGURL): change bug URL to https.
8518
f68f85b5
PA
85192020-05-30 Pedro Alves <palves@redhat.com>
8520
8521 * cp-support.c (replace_typedefs_template): New.
8522 (replace_typedefs_qualified_name): Handle
8523 DEMANGLE_COMPONENT_TEMPLATE.
8524
976ca316
SM
85252020-05-29 Simon Marchi <simon.marchi@efficios.com>
8526
8527 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8528 dwarf2/index-cache.h, dwarf2/index-write.c,
8529 dwarf2/index-write.h, dwarf2/line-header.c,
8530 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8531 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8532 variables and fields from `dwarf2_per_objfile` to just
8533 `per_objfile` throughout.
8534
989ade05
SM
85352020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8536
8537 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8538 <push_dwarf_reg_entry_value>: Add comment.
8539
c47bae85
KB
85402020-05-28 Kevin Buettner <kevinb@redhat.com>
8541 Keith Seitz <keiths@redhat.com>
8542
8543 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8544 instead of PyEval_ReleaseLock.
8545 (class gdbpy_gil): Move to earlier in file.
8546 (finalize_python): Set gdb_python_initialized.
8547 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8548 when not initialized.
8549
44486dcf
SM
85502020-05-28 Simon Marchi <simon.marchi@efficios.com>
8551
8552 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8553 <push_dwarf_reg_entry_value>: Remove assert. Override
8554 per_objfile with caller_per_objfile.
8555
f030440d
TV
85562020-05-28 Tom de Vries <tdevries@suse.de>
8557
8558 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8559 PR gold/15646 workaround to symbol kind "type".
8560
f0fbb768
TT
85612020-05-27 Tom Tromey <tromey@adacore.com>
8562
8563 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8564
af0b2a3e
TT
85652020-05-27 Tom Tromey <tromey@adacore.com>
8566
8567 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8568 Use htab_find_with_hash.
8569 <add_abbrev>: Remove "abbrev_number" parameter.
8570 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8571 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8572 (hash_abbrev): Add comment.
8573 (abbrev_table::lookup_abbrev): Move to header file.
8574 (abbrev_table::read): Update.
8575
7d00ffec
TT
85762020-05-27 Tom Tromey <tromey@adacore.com>
8577
8578 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8579 method.
8580 <canonical_name>: New member.
8581 <raw_name>: Rename from "name".
8582 (partial_die_info): Initialize canonical_name.
8583 (scan_partial_symbols): Check raw_name.
8584 (partial_die_parent_scope, partial_die_full_name)
8585 (add_partial_symbol, add_partial_subprogram)
8586 (add_partial_enumeration, load_partial_dies): Use "name" method.
8587 (partial_die_info::name): New method.
8588 (partial_die_info::read, guess_partial_die_structure_name)
8589 (partial_die_info::fixup): Update.
8590
697bba18
TT
85912020-05-27 Tom Tromey <tromey@adacore.com>
8592
8593 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8594 <get_ref_die_offset>: Inline.
8595 <get_ref_die_offset_complaint>: New method.
8596 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8597 (attribute::get_ref_die_offset_complaint): Rename from
8598 get_ref_die_offset. Just issue complaint.
8599
c17ace43
HD
86002020-05-27 Hannes Domani <ssbssa@yahoo.de>
8601
8602 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8603
96445f0b
HD
86042020-05-27 Hannes Domani <ssbssa@yahoo.de>
8605
8606 * exec.c (exec_file_attach): Use errno value of first openp failure.
8607
ac637ec3
HD
86082020-05-27 Hannes Domani <ssbssa@yahoo.de>
8609
8610 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8611 Don't close thread handle.
8612
17ee85fc
TT
86132020-05-27 Tom Tromey <tom@tromey.com>
8614 Simon Marchi <simon.marchi@efficios.com>
8615
8616 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8617 shared_ptr.
8618 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8619 member.
8620 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8621 dwarf2_per_bfd_objfile_data_key>: New globals.
8622 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8623 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8624 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8625 shared.
8626 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8627 short-circuit when sharing.
8628 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8629 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8630
39b16f87
SM
86312020-05-27 Simon Marchi <simon.marchi@efficios.com>
8632
8633 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8634 to...
8635 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8636 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8637
fcf23d5b
SM
86382020-05-27 Simon Marchi <simon.marchi@efficios.com>
8639
8640 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8641 build_name_components, find_name_components_bounds>:
8642 Add per_objfile parameter.
8643 (struct mapped_index) <symbol_name_at>: Likewise.
8644 (struct mapped_debug_names): Remove constructor.
8645 <dwarf2_per_objfile>: Remove field.
8646 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8647 (mapped_index_base::find_name_components_bounds,
8648 mapped_index_base::build_name_components,
8649 dw2_expand_symtabs_matching_symbol): Likewise.
8650 (class mock_mapped_index) <symbol_name_at>: Likewise.
8651 (check_match): Likewise.
8652 (check_find_bounds_finds): Likewise.
8653 (test_mapped_index_find_name_component_bounds): Update.
8654 (CHECK_MATCH): Update.
8655 (dw2_expand_symtabs_matching): Update.
8656 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8657 per_objfile parameter.
8658 <find_vec_in_debug_names>: Likewise.
8659 <m_per_objfile>: New field.
8660 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8661 parameter.
8662 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8663 (dw2_debug_names_iterator::next): Update.
8664 (dw2_debug_names_lookup_symbol): Update.
8665 (dw2_debug_names_expand_symtabs_for_function): Update.
8666 (dw2_debug_names_map_matching_symbols): Update.
8667 (dw2_debug_names_expand_symtabs_matching): Update.
8668 (dwarf2_read_debug_names): Update.
8669
7188ed02
SM
86702020-05-27 Simon Marchi <simon.marchi@efficios.com>
8671
8672 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8673 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8674 move to dwarf2_per_objfile.
8675 <read_in_chain>: Remove.
8676 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8677 remove_all_cus, age_comp_units>: New methods.
8678 <m_dwarf2_cus>: New member.
8679 (struct dwarf2_per_cu_data) <cu>: Remove.
8680 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8681 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8682 moved to methods of dwarf2_per_objfile.
8683 (dwarf2_clear_marks): Remove.
8684 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8685 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8686 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8687 (dwarf2_per_objfile::remove_all_cus): New.
8688 (class free_cached_comp_units) <~free_cached_comp_units>:
8689 Update.
8690 (load_cu): Update.
8691 (dw2_do_instantiate_symtab): Adjust.
8692 (fill_in_sig_entry_from_dwo_entry): Adjust.
8693 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8694 (cutu_reader::cutu_reader): Likewise.
8695 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8696 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8697 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8698 and dwarf2_per_objfile::age_comp_units.
8699 (load_partial_comp_unit): Update.
8700 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8701 (process_queue): Likewise.
8702 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8703 backlink.
8704 (dwarf2_read_addr_index): Likewise.
8705 (follow_die_offset): Likewise.
8706 (dwarf2_fetch_die_loc_sect_off): Likewise.
8707 (dwarf2_fetch_constant_bytes): Likewise.
8708 (dwarf2_fetch_die_type_sect_off): Likewise.
8709 (follow_die_sig_1): Likewise.
8710 (load_full_type_unit): Likewise.
8711 (read_signatured_type): Likewise.
8712 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8713 (dwarf2_cu::~dwarf2_cu): Remove.
8714 (dwarf2_per_objfile::get_cu): New.
8715 (dwarf2_per_objfile::set_cu): New.
8716 (age_cached_comp_units): Rename to...
8717 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8718 to std::unordered_map.
8719 (free_one_cached_comp_unit): Rename to...
8720 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8721 to std::unordered_map.
8722 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8723 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8724 a dwarf2_per_objfile in data.
8725 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8726 (dwarf2_clear_marks): Remove.
8727
2e671100
SM
87282020-05-27 Simon Marchi <simon.marchi@efficios.com>
8729
8730 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8731 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8732 (init_tu_and_read_dwo_dies): Likewise.
8733 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8734 (cutu_reader::cutu_reader): Likewise.
8735 (load_partial_comp_unit): Likewise.
8736 (process_psymtab_comp_unit): Update.
8737 (build_type_psymtabs_1): Update.
8738 (process_skeletonless_type_unit): Update.
8739 (load_full_comp_unit): Update.
8740 (find_partial_die): Update.
8741 (dwarf2_read_addr_index): Update.
8742 (read_signatured_type): Update.
8743
2e6a9f79
SM
87442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8745
8746 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8747 m_header_read_in>: New fields.
8748 <get_header>: New method.
8749 * dwarf2/read.c (per_cu_header_read_in): Remove.
8750 (dwarf2_per_cu_data::get_header): New.
8751 (dwarf2_per_cu_data::addr_size): Update.
8752 (dwarf2_per_cu_data::offset_size): Update.
8753 (dwarf2_per_cu_data::ref_addr_size): Update.
8754
1b555f17
SM
87552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8756
8757 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8758 (dw2_do_instantiate_symtab): Update.
8759 (queue_and_load_all_dwo_tus): Change parameter from
8760 dwarf2_per_cu_data to dwarf2_cu.
8761 (dwarf2_fetch_die_loc_sect_off): Update.
8762 (dwarf2_fetch_constant_bytes): Update.
8763 (dwarf2_fetch_die_type_sect_off): Update.
8764
8fc0b21d
SM
87652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8766
8767 * dwarf2/read.c (process_full_comp_unit,
8768 process_full_type_unit): Remove per_cu, per_objfile paramters.
8769 Add dwarf2_cu parameter.
8770 (process_queue): Update.
8771
168c9250
SM
87722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8773
8774 * dwarf2/read.c (create_cu_from_index_list): Replace
8775 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8776 (create_cus_from_index_list): Likewise.
8777 (create_cus_from_index): Likewise.
8778 (create_signatured_type_table_from_index): Likewise.
8779 (create_cus_from_debug_names_list): Likewise.
8780 (create_cus_from_debug_names): Likewise.
8781 (dwarf2_read_gdb_index): Update.
8782 (dwarf2_read_debug_names): Update.
8783
e286671b
TT
87842020-05-27 Tom Tromey <tom@tromey.com>
8785 Simon Marchi <simon.marchi@efficios.com>
8786
8787 * dwarf2/read.h (struct dwarf2_per_objfile)
8788 <get_type_for_signatured_type, set_type_for_signatured_type>:
8789 New methods.
8790 <m_type_map>: New member.
8791 (struct signatured_type) <type>: Remove.
8792 * dwarf2/read.c
8793 (dwarf2_per_objfile::get_type_for_signatured_type,
8794 dwarf2_per_objfile::set_type_for_signatured_type): New.
8795 (get_signatured_type): Use new methods.
8796
8adb8487
TT
87972020-05-27 Tom Tromey <tom@tromey.com>
8798 Simon Marchi <simon.marchi@efficios.com>
8799
8800 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8801 (struct dwarf2_per_objfile) <type_units>: New member.
8802 <get_type_unit_group_unshareable>: New method.
8803 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8804 num_symtabs, symtabs>: Remove; move to
8805 type_unit_group_unshareable.
8806 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8807 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8808 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8809
127bbf4b
SM
88102020-05-27 Simon Marchi <simon.marchi@efficios.com>
8811
8812 * dwarf2/read.h (struct dwarf2_per_cu_data):
8813 <dwarf2_per_objfile>: Remove.
8814 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8815 dwarf2_per_objfile.
8816 (create_signatured_type_table_from_index): Likewise.
8817 (create_signatured_type_table_from_debug_names): Likewise.
8818 (create_debug_type_hash_table): Likewise.
8819 (fill_in_sig_entry_from_dwo_entry): Likewise.
8820 (create_type_unit_group): Likewise.
8821 (read_comp_units_from_section): Likewise.
8822 (create_cus_hash_table): Likewise.
8823
f6e649dd
SM
88242020-05-27 Simon Marchi <simon.marchi@efficios.com>
8825
8826 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8827 dwarf2_per_cu_data::dwarf2_per_objfile.
8828 (compute_compunit_symtab_includes): Likewise.
8829 (dwarf2_cu::start_symtab): Likewise.
8830
aa66c379
SM
88312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8832
8833 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8834 parameter.
8835 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8836 (read_namespace_alias): Update.
8837 (lookup_die_type): Update.
8838 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8839 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8840 Update.
8841 (disassemble_dwarf_expression): Update.
8842
120ce1b5
SM
88432020-05-27 Simon Marchi <simon.marchi@efficios.com>
8844
8845 * dwarf2/read.h (struct dwarf2_queue_item): Add
8846 dwarf2_per_objfile parameter, assign new parameter.
8847 <per_objfile>: New field.
8848 * dwarf2/read.c (free_one_cached_comp_unit): Add
8849 dwarf2_per_objfile parameter.
8850 (queue_comp_unit): Likewise.
8851 (dw2_do_instantiate_symtab): Update.
8852 (process_psymtab_comp_unit): Update.
8853 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8854 (process_imported_unit_die): Update.
8855 (queue_and_load_dwo_tu): Update.
8856 (follow_die_offset): Update.
8857 (follow_die_sig_1): Update.
8858
9f47c707
SM
88592020-05-27 Simon Marchi <simon.marchi@efficios.com>
8860
8861 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8862 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8863 (read_call_site_scope): Assign per_objfile.
8864 (dwarf2_per_cu_data::objfile): Remove.
8865 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8866 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8867 dwarf2_per_objfile parameter.
8868 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8869 dwarf2_per_objfile parameter.
8870 (dwarf_expr_reg_to_entry_parameter): Add output
8871 dwarf2_per_objfile parameter.
8872 (locexpr_get_frame_base): Update.
8873 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8874 <push_dwarf_reg_entry_value>: Update.
8875 <call_site_to_target_addr>: Update.
8876 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8877 parameter.
8878 (value_of_dwarf_reg_entry): Update.
8879 (rw_pieced_value): Update.
8880 (indirect_synthetic_pointer): Update.
8881 (dwarf2_evaluate_property): Update.
8882 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8883 parameter.
8884 (locexpr_read_variable): Update.
8885 (locexpr_get_symbol_read_needs): Update.
8886 (loclist_read_variable): Update.
8887
14095eb3
SM
88882020-05-27 Simon Marchi <simon.marchi@efficios.com>
8889
8890 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8891 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8892 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8893 parameter.
8894 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8895 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8896 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8897 parameter.
8898 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8899 sect_variable_value): Add dwarf2_per_objfile parameter.
8900 (class dwarf_evaluate_loc_desc) <dwarf_call,
8901 dwarf_variable_value>: Update.
8902 (fetch_const_value_from_synthetic_pointer): Add
8903 dwarf2_per_objfile parameter.
8904 (fetch_const_value_from_synthetic_pointer): Update.
8905 (coerced_pieced_ref): Update.
8906 (class symbol_needs_eval_context) <dwarf_call,
8907 dwarf_variable_value>: Update.
8908 (dwarf2_compile_expr_to_ax): Update.
8909
3c3cd3d4
SM
89102020-05-27 Simon Marchi <simon.marchi@efficios.com>
8911
8912 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8913 parameter.
8914 (dwarf2_evaluate_loc_desc_full): Update.
8915
82ca3f51
SM
89162020-05-27 Simon Marchi <simon.marchi@efficios.com>
8917
8918 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8919 parameter.
8920 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8921 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8922 dwarf2_per_objfile parameter.
8923 (decode_debug_loc_dwo_addresses): Likewise.
8924 (dwarf2_find_location_expression): Update.
8925 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8926 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8927 parameter.
8928 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8929 parameter.
8930 (locexpr_describe_location_1): Likewise.
8931 (locexpr_describe_location): Update.
8932
4b167ea1
SM
89332020-05-27 Simon Marchi <simon.marchi@efficios.com>
8934
8935 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8936 Remove.
8937 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8938 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8939 (dwarf2_compile_property_to_c): Update.
8940 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8941 use text offset from objfile.
8942 (locexpr_tracepoint_var_ref): Update.
8943 (locexpr_generate_c_location): Update.
8944 (loclist_describe_location): Update.
8945 (loclist_tracepoint_var_ref): Update.
8946 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8947 dwarf2_per_objfile parameter.
8948 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8949 use text offset from objfile.
8950 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8951
89b07335
SM
89522020-05-27 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * dwarf2/expr.h (struct dwarf_expr_context)
8955 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8956 <offset>: Remove.
8957 <per_objfile>: New member.
8958 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8959 dwarf2_per_objfile parameter. Don't set offset, set
8960 per_objfile.
8961 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8962 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8963 a dwarf2_per_objfile object instead of an offset.
8964 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8965 constructor.
8966 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8967 to dwarf2_expr_executor constructor. Don't set offset.
8968 (dwarf2_fetch_cfa_info): Update.
8969 (struct dwarf2_frame_cache) <text_offset>: Remove.
8970 <per_objfile>: New field.
8971 (dwarf2_frame_cache): Update.
8972 (dwarf2_frame_prev_register): Update.
8973 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8974 <dwarf_evaluate_loc_desc>: Add constructor.
8975 (dwarf2_evaluate_loc_desc_full): Update.
8976 (dwarf2_locexpr_baton_eval): Update.
8977 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8978 Add constructor.
8979 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8980
293e7e51
SM
89812020-05-27 Simon Marchi <simon.marchi@efficios.com>
8982
8983 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8984 addr_sized_int_type>: Move to dwarf2_cu.
8985 <int_type>: Move to dwarf2_per_objfile.
8986 (struct dwarf2_per_objfile) <int_type>: Move here.
8987 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8988 addr_sized_int_type>: Move here.
8989 (read_func_scope): Update.
8990 (read_array_type): Update.
8991 (read_tag_string_type): Update.
8992 (attr_to_dynamic_prop): Update.
8993 (dwarf2_per_cu_data::int_type): Rename to...
8994 (dwarf2_per_objfile::int_type): ... this.
8995 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8996 (dwarf2_cu::addr_sized_int_type): ... this.
8997 (read_subrange_type): Update.
8998 (dwarf2_per_cu_data::addr_type): Rename to...
8999 (dwarf2_cu::addr_type): ... this.
9000 (set_die_type): Update.
9001
64874a40
SM
90022020-05-27 Simon Marchi <simon.marchi@efficios.com>
9003
9004 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9005 data through per_cu->cu.
9006
4ab09049
SM
90072020-05-27 Simon Marchi <simon.marchi@efficios.com>
9008
9009 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9010 dwarf2_per_cu_data parameter fo dwarf2_cu.
9011 (lookup_dwo_type_unit): Likewise.
9012 (read_cutu_die_from_dwo): Likewise.
9013 (lookup_dwo_unit): Likewise.
9014 (open_and_init_dwo_file): Likewise.
9015 (lookup_dwo_cutu): Likewise.
9016 (lookup_dwo_comp_unit): Likewise.
9017 (lookup_dwo_type_unit): Likewise.
9018 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9019 (cutu_reader::cutu_reader): Update.
9020
47b14e86
SM
90212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9022
9023 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9024 parameter.
9025 (process_full_type_unit): Likewise.
9026 (process_queue): Update.
9027
43182c09
SM
90282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9029
9030 * dwarf2/read.c (recursively_compute_inclusions): Add
9031 dwarf2_per_objfile parameter.
9032 (compute_compunit_symtab_includes): Likewise.
9033 (process_cu_includes): Update.
9034
7aa104c4
SM
90352020-05-27 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9038 parameter.
9039 (create_type_unit_group): Update.
9040 (process_psymtab_comp_unit_reader): Update.
9041 (build_type_psymtabs_reader): Update.
9042
e3beb21d
SM
90432020-05-27 Simon Marchi <simon.marchi@efficios.com>
9044
9045 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9046 object through m_this_cu->cu.
9047
d460f660
SM
90482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9049
9050 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9051 the info parameter.
9052 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9053
ab432490
SM
90542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9055
9056 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9057 per_objfile parameter.
9058 (load_full_type_unit): Add per_objfile parameter.
9059 (read_signatured_type): Likewise.
9060 (load_full_comp_unit): Likewise.
9061 (load_cu): Likewise.
9062 (dw2_do_instantiate_symtab): Likewise.
9063 (dw2_get_file_names): Likewise.
9064 (dw2_map_symtabs_matching_filename): Update.
9065 (dw_expand_symtabs_matching_file_matcher): Update.
9066 (dw2_map_symbol_filenames): Update.
9067 (process_psymtab_comp_unit): Add per_objfile parameter.
9068 (build_type_psymtabs_1): Update.
9069 (process_skeletonless_type_unit): Update.
9070 (dwarf2_build_psymtabs_hard): Update.
9071 (load_partial_comp_unit): Add per_objfile parameter.
9072 (scan_partial_symbols): Update.
9073 (load_full_comp_unit): Add per_objfile parameter.
9074 (process_imported_unit_die): Update.
9075 (create_cus_hash_table): Update.
9076 (find_partial_die): Update.
9077 (dwarf2_read_addr_index): Update.
9078 (follow_die_offset): Update.
9079 (dwarf2_fetch_die_loc_sect_off): Update.
9080 (dwarf2_fetch_constant_bytes): Update.
9081 (dwarf2_fetch_die_type_sect_off): Update.
9082 (follow_die_sig_1): Update.
9083 (load_full_type_unit): Add per_objfile parameter.
9084 (read_signatured_type): Likewise.
9085
313bad1b
SM
90862020-05-27 Simon Marchi <simon.marchi@efficios.com>
9087
9088 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9089 of objfile_name.
9090
c3699833
SM
90912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9092
9093 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9094 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9095 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9096 field.
9097 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9098 (create_cus_from_index): Update.
9099 (dwarf2_read_gdb_index): Update.
9100 (create_cus_from_debug_names): Update.
9101 (dwarf2_read_debug_names): Update.
9102 (get_abbrev_section_for_cu): Update.
9103 (create_all_comp_units): Update.
9104 (read_attribute_value): Update.
9105 (get_debug_line_section): Update.
9106 * dwarf2/index-cache.c (index_cache::store): Update.
9107 * dwarf2/index-write.c (save_gdb_index_command): Update.
9108 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9109
1859c670
SM
91102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9111
9112 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9113 member.
9114 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9115 dwarf2_per_cu_data::per_bfd.
9116 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9117 (create_type_unit_group): Likewise.
9118 (queue_comp_unit): Remove reference to
9119 per_cu->dwarf2_per_objfile.
9120 (maybe_queue_comp_unit): Likewise.
9121 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9122 (create_cus_hash_table): Assign new field.
9123
5e22e966
SM
91242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9125
9126 * dwarf2/read.c: Replace
9127 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9128 dwarf2_cu->per_objfile throughout.
9129
97a1449a
SM
91302020-05-27 Simon Marchi <simon.marchi@efficios.com>
9131
9132 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9133 parameter, don't use per_cu->dwarf2_per_objfile.
9134 (dw2_instantiate_symtab): Likewise.
9135 (dw2_find_last_source_symtab): Update.
9136 (dw2_map_expand_apply): Update.
9137 (dw2_lookup_symbol): Update.
9138 (dw2_expand_symtabs_for_function): Update.
9139 (dw2_expand_all_symtabs): Update.
9140 (dw2_expand_symtabs_with_fullname): Update.
9141 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9142 don't use per_cu->dwarf2_per_objfile.
9143 (dw2_expand_marked_cus): Update.
9144 (dw2_find_pc_sect_compunit_symtab): Update.
9145 (dw2_debug_names_lookup_symbol): Update.
9146 (dw2_debug_names_expand_symtabs_for_function): Update.
9147 (dw2_debug_names_map_matching_symbols): Update.
9148 (dwarf2_psymtab::expand_psymtab): Update.
9149
9e021579
SM
91502020-05-27 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9153 <per_objfile>: New member.
9154 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9155 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9156 call to dwarf2_cu.
9157 (cutu_reader::cutu_reader): Update.
9158 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9159
ae090bdb
SM
91602020-05-27 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9163 struct dwarf2_per_objfile.
9164 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9165 dwarf2_per_bfd.
9166 * dwarf2/read.c (set_die_type): Update.
9167 (get_die_type_at_offset): Update.
9168
af758d11
SM
91692020-05-27 Tom Tromey <tom@tromey.com>
9170 Simon Marchi <simon.marchi@efficios.com>
9171
9172 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9173 method.
9174 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9175 get_symtab, set_symtab>: New methods.
9176 <m_symtabs>: New field.
9177 (struct dwarf2_psymtab): Derive from partial_symtab.
9178 <readin_p, get_compunit_symtab>: Declare methods.
9179 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9180 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9181 New methods.
9182 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9183 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9184 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9185 (dw2_symtab_iter_next, dw2_print_stats)
9186 (dw2_expand_symtabs_with_fullname)
9187 (dw2_expand_symtabs_matching_one)
9188 (dw_expand_symtabs_matching_file_matcher)
9189 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9190 (dw2_debug_names_iterator::next)
9191 (dw2_debug_names_map_matching_symbols)
9192 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9193 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9194 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9195 New methods.
9196 (get_compunit_symtab, process_full_comp_unit)
9197 (process_full_type_unit): Update.
9198 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9199
5989a64e
SM
92002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9201
9202 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9203 then introduce a new dwarf2_per_objfile type.
9204 <read_line_string>: Move to the new dwarf2_per_objfile type.
9205 <objfile>: Likewise.
9206 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9207 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9208 dwarf2_per_objfile->per_bfd.
9209 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9210 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9211 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9212 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9213 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9214 (dwarf2_per_objfile::locate_sections): Rename to...
9215 (dwarf2_per_bfd::locate_sections): ... this.
9216 (dwarf2_per_objfile::get_cutu): Rename to...
9217 (dwarf2_per_bfd::get_cutu): ... this.
9218 (dwarf2_per_objfile::get_cu): Rename to...
9219 (dwarf2_per_bfd::get_cu): ... this.
9220 (dwarf2_per_objfile::get_tu): Rename to...
9221 (dwarf2_per_bfd::get_tu): ... this.
9222 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9223 (dwarf2_per_bfd::allocate_per_cu): ... this.
9224 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9225 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9226 (get_gdb_index_contents_ftype): Change parameter from
9227 dwarf2_per_objfile to dwarf2_per_bfd.
9228 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9229 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9230
a50264ba
TT
92312020-05-27 Tom Tromey <tom@tromey.com>
9232 Simon Marchi <simon.marchi@efficios.com>
9233
9234 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9235 (allocate_piece_closure): Set "per_objfile" member.
9236 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9237 (locexpr_describe_location, loclist_describe_location): Use new
9238 member.
9239 * dwarf2/read.c (read_call_site_scope)
9240 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9241 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9242 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9243 handle_data_member_location): Set per_objfile member.
9244 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9245 member.
9246 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9247
d3473f0c
TT
92482020-05-27 Tom Tromey <tom@tromey.com>
9249
9250 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9251 allocate_signatured_type>: Declare new methods.
9252 <m_num_psymtabs>: New member.
9253 (struct dwarf2_per_cu_data) <index>: New member.
9254 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9255 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9256 (create_cu_from_index_list): Use allocate_per_cu.
9257 (create_signatured_type_table_from_index)
9258 (create_signatured_type_table_from_debug_names)
9259 (create_debug_type_hash_table, add_type_unit)
9260 (read_comp_units_from_section): Use allocate_signatured_type.
9261
5717c425
TT
92622020-05-27 Tom Tromey <tom@tromey.com>
9263
9264 * psymtab.c (partial_map_expand_apply)
9265 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9266 (psym_lookup_global_symbol_language)
9267 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9268 (psym_print_stats, psym_expand_symtabs_for_function)
9269 (psym_map_symbol_filenames, psym_map_matching_symbols)
9270 (psym_expand_symtabs_matching)
9271 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9272 (maintenance_check_psymtabs): Update.
9273 * psympriv.h (struct partial_symtab) <readin_p,
9274 get_compunit_symtab>: Add objfile parameter.
9275 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9276 Likewise.
9277 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9278 get_compunit_symtab>: Likewise.
9279 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9280
45940949
TT
92812020-05-27 Tom Tromey <tom@tromey.com>
9282
9283 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9284 member.
9285 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9286 (create_cu_from_index_list)
9287 (create_signatured_type_table_from_index)
9288 (create_signatured_type_table_from_debug_names)
9289 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9290 (dwarf2_create_include_psymtab)
9291 (create_debug_type_hash_table, add_type_unit)
9292 (create_type_unit_group, read_comp_units_from_section)
9293 (dwarf2_compute_name, create_cus_hash_table)
9294 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9295 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9296 obstack.
9297 (dw2_get_real_path): Likewise. Change argument to
9298 dwarf2_per_objfile.
9299
f8c6d152
LM
93002020-05-27 Luis Machado <luis.machado@linaro.org>
9301
9302 PR tdep/26000
9303 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9304 for ldrd (immediate).
9305
e98d2e6d
PW
93062020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9307
9308 * command.h: Add comment giving the name of class_tui.
9309 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9310 create the fake command for the help for class_tui.
9311
53a47a3e
TT
93122020-05-26 Tom Tromey <tromey@adacore.com>
9313
9314 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9315 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9316 (val_atr): New function.
9317 (value_val_atr): Use it.
9318 * ada-valprint.c (print_optional_low_bound): Change low bound
9319 handling for enums.
9320 (val_print_packed_array_elements): Don't call discrete_position.
9321 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9322 discrete_position for enum types.
9323 * language.c (default_print_array_index): Change type.
9324 * language.h (struct language_defn) <la_print_array_index>: Add
9325 index_type parameter, change type of index_value.
9326 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9327 (default_print_array_index): Update.
9328 * valprint.c (maybe_print_array_index): Don't call
9329 value_from_longest. Update.
9330 (value_print_array_elements): Don't call discrete_position.
9331
0bc2354b
TT
93322020-05-26 Tom Tromey <tromey@adacore.com>
9333
9334 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9335 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9336
1218a4bf
CDA
93372020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9338
9339 PR gdb/13519
9340 * avr-tdep.c (avr_integer_to_address): Return data or code
9341 address accordingly to the second 'type' argument of the
9342 function.
9343
92651b1d
MW
93442020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9345
9346 * infcmd.c, inferior.h: (construct_inferior_arguments):
9347 Moved function from here to gdbsupport/common-inferior.{h,cc}
9348
0a4f5f8c
TT
93492020-05-23 Tom Tromey <tom@tromey.com>
9350
9351 Revert commit eca1f90c:
9352 * NEWS: Remove entry for completion styling.
9353 * completer.c (_rl_completion_prefix_display_length): Move
9354 declaration later.
9355 (gdb_fnprint): Revert.
9356 (gdb_display_match_list_1): Likewise.
9357 * cli/cli-style.c (completion_prefix_style)
9358 (completion_difference_style, completion_suffix_style): Remove.
9359 (_initialize_cli_style): Revert.
9360 * cli/cli-style.h (completion_prefix_style)
9361 (completion_difference_style, completion_suffix_style): Don't
9362 declare.
9363
e08bd6c5
PA
93642020-05-24 Pedro Alves <palves@redhat.com>
9365
9366 * symtab.c (completion_list_add_name): Return boolean indication
9367 of whether the symbol matched.
9368 (completion_list_add_symbol): Don't try to remove C++ aliases if
9369 the symbol didn't match in the first place.
9370 * symtab.h (completion_list_add_name): Return bool.
9371
ceacbf6e
SM
93722020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9373
9374 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9375 type::field.
9376
26f16254
JB
93772020-05-23 Joel Brobecker <brobecker@adacore.com>
9378
9379 GDB 9.2 released.
9380
eca1f90c
TT
93812020-05-23 Tom Tromey <tom@tromey.com>
9382
9383 * NEWS: Add entry for completion styling.
9384 * completer.c (_rl_completion_prefix_display_length): Move
9385 declaration earlier.
9386 (gdb_fnprint): Use completion_style.
9387 (gdb_display_match_list_1): Likewise.
9388 * cli/cli-style.c (completion_prefix_style)
9389 (completion_difference_style, completion_suffix_style): New
9390 globals.
9391 (_initialize_cli_style): Register new globals.
9392 * cli/cli-style.h (completion_prefix_style)
9393 (completion_difference_style, completion_suffix_style): Declare.
9394
51e2cfa2
PA
93952020-05-23 Pedro Alves <palves@redhat.com>
9396
9397 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9398 (parse_escape): Use ISDIGIT instead of isdigit.
9399 (puts_debug): Use gdb_isprint instead of isprint.
9400 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9401 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9402 ISSPACE instead of isspace.
9403 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9404 instead of isspace.
9405 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9406 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9407 instead of isxdigit and ISDIGIT instead of isdigit.
9408
80fc5e77
SM
94092020-05-22 Simon Marchi <simon.marchi@efficios.com>
9410
9411 * gdbtypes.h (struct type) <field>: New method.
9412 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9413 or type::field.
9414
3cabb6b0
SM
94152020-05-22 Simon Marchi <simon.marchi@efficios.com>
9416
9417 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9418 (TYPE_FIELDS): Use type::fields. Change all call sites that
9419 modify the propery to use type::set_fields instead.
9420
1f704f76
SM
94212020-05-22 Simon Marchi <simon.marchi@efficios.com>
9422
9423 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9424 type::num_fields instead.
9425
5e33d5f4
SM
94262020-05-22 Simon Marchi <simon.marchi@efficios.com>
9427
9428 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9429 methods.
9430 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9431 that modify the number of fields to use type::set_num_fields
9432 instead.
9433
9392ebb3
TT
94342020-05-22 Tom Tromey <tromey@adacore.com>
9435
9436 * compile/compile-object-load.h (munmap_list_free): Don't
9437 declare.
9438
7c13f4e8
AB
94392020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9440
9441 * annotate.c (annotate_source_line): Update return type, add call
9442 to update current symtab and line.
9443 * annotate.h (annotate_source_line): Update return type, and
9444 extend header comment.
9445 * source.c (info_line_command): Check annotation_level before
9446 calling annotate_source_line.
9447 * stack.c (print_frame_info): If calling annotate_source_line
9448 returns true, then don't print any other source line information.
9449
aa370940
SM
94502020-05-21 Simon Marchi <simon.marchi@efficios.com>
9451
9452 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9453
84d53fa9
SM
94542020-05-21 Simon Marchi <simon.marchi@efficios.com>
9455
9456 * coffread.c (patch_type): Remove NULL check before xfree.
9457 * corefile.c (set_gnutarget): Likewise.
9458 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9459 * exec.c (build_section_table): Likewise.
9460 * remote.c (remote_target::pass_signals): Likewise.
9461 * utils.c (n_spaces): Likewise.
9462 * cli/cli-script.c (document_command): Likewise.
9463 * i386-windows-tdep.c (core_process_module_section): Likewise.
9464 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9465
9d428aae
SM
94662020-05-20 Simon Marchi <simon.marchi@efficios.com>
9467
9468 * symfile.c (reread_symbols): Clear objfile's section_offsets
9469 vector and section indices, re-compute them by calling
9470 sym_offsets.
9471
250106a7
TT
94722020-05-20 Tom Tromey <tromey@adacore.com>
9473
9474 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9475 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9476
9a0bacfb
TV
94772020-05-20 Tom de Vries <tdevries@suse.de>
9478
9479 PR symtab/25833
9480 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9481
7b958a48
AM
94822020-05-20 Alan Modra <amodra@gmail.com>
9483
9484 PR 25993
9485 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9486 bfd_set_filename.
9487 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9488 passed to bfd_set_filename.
9489 * symfile-mem.c (add_vsyscall_page): Likewise for string
9490 passed to symbol_file_add_from_memory.
9491 (symbol_file_add_from_memory): Make name param a const char* and
9492 don't strdup.
9493
c7e97679
AM
94942020-05-20 Alan Modra <amodra@gmail.com>
9495
9496 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9497 rather than accessing bfd->filename directly.
9498 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9499 and use bfd_section_name.
9500 * dwarf2/frame.c (decode_frame_entry): Likewise.
9501 * exec.c (exec_set_section_address): Likewise.
9502 * solib-aix.c (solib_aix_bfd_open): Likewise.
9503 * stap-probe.c (get_stap_base_address): Likewise.
9504 * symfile.c (reread_symbols): Likewise.
9505
563c591b
TT
95062020-05-19 Tom Tromey <tromey@adacore.com>
9507
9508 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9509
f408d82c
SM
95102020-05-19 Simon Marchi <simon.marchi@efficios.com>
9511
9512 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9513
98c59b52
PA
95142020-05-19 Pedro Alves <palves@redhat.com>
9515
9516 * NEWS (set exec-file-mismatch): Adjust entry.
9517 * exec.c: Include "build-id.h".
9518 (validate_exec_file): Try to match build IDs instead of filenames.
9519 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9520 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9521 and pass down 'warn_if_slow'.
9522 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9523 gdb_bfd_open_closure to pass it down.
9524 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9525
4111f652
PA
95262020-05-19 Pedro Alves <palves@redhat.com>
9527
9528 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9529 * target.c (target_fileio_open_1): Rename to target_fileio_open
9530 and make extern. Use bool.
9531 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9532 (target_fileio_read_alloc_1): Adjust.
9533 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9534 (target_fileio_open_warn_if_slow): Delete declaration.
9535
ad80db5b
PA
95362020-05-19 Pedro Alves <palves@redhat.com>
9537
9538 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9539 Adjust all callers.
9540
1d6ce4d3
YS
95412020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9542
9543 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9544 whether disp is negative.
9545
9005fbbb
SM
95462020-05-19 Simon Marchi <simon.marchi@efficios.com>
9547
9548 * symfile.h (struct symfile_segment_data)
9549 <~symfile_segment_data>: Remove.
9550 <segment_info>: Change to std::vector.
9551 * symfile.c (default_symfile_segments): Update.
9552 * elfread.c (elf_symfile_segments): Update.
9553
68b888ff
SM
95542020-05-19 Simon Marchi <simon.marchi@efficios.com>
9555
9556 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9557 <segments>: New.
9558 <segment_bases, segment_sizes>: Remove.
9559 * symfile.c (default_symfile_segments): Update.
9560 * elfread.c (elf_symfile_segments): Update.
9561 * remote.c (remote_target::get_offsets): Update.
9562 * solib-target.c (solib_target_relocate_section_addresses):
9563 Update.
9564
62982abd
SM
95652020-05-19 Simon Marchi <simon.marchi@efficios.com>
9566
9567 * symfile.h (struct symfile_segment_data): Initialize fields.
9568 <~symfile_segment_data>: Add.
9569 (symfile_segment_data_up): New.
9570 (struct sym_fns) <sym_segments>: Return a
9571 symfile_segment_data_up.
9572 (default_symfile_segments): Return a symfile_segment_data_up.
9573 (free_symfile_segment_data): Remove.
9574 (get_symfile_segment_data): Return a symfile_segment_data_up.
9575 * symfile.c (default_symfile_segments): Likewise.
9576 (get_symfile_segment_data): Likewise.
9577 (free_symfile_segment_data): Remove.
9578 (symfile_find_segment_sections): Update.
9579 * elfread.c (elf_symfile_segments): Return a
9580 symfile_segment_data_up.
9581 * remote.c (remote_target::get_offsets): Update.
9582 * solib-target.c (solib_target_relocate_section_addresses):
9583 Update.
9584 * symfile-debug.c (debug_sym_segments): Return a
9585 symfile_segment_data_up.
9586
7f204339
RO
95872020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9588
e52a0f1b
RO
9589 PR build/25981
9590 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9591 Hardcode register numbers.
9592
7f204339
RO
9593 PR build/25981
9594 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9595 procfs_find_LDT_entry): Remove.
9596 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9597 procfs_find_LDT_entry): Remove.
9598 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9599 Remove.
9600
7f32a4d5
PA
96012020-05-17 Pedro Alves <palves@redhat.com>
9602 Andrew Burgess <andrew.burgess@embecosm.com>
9603 Keno Fischer <keno@juliacomputing.com>
9604
9605 PR gdb/25741
9606 * breakpoint.c (build_target_condition_list): Update comments.
9607 (build_target_command_list): Update comments and skip matching
9608 locations.
9609 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9610 a separate function. Simplify "set breakpoint auto-hw off"
9611 handling.
9612 (insert_breakpoints): Update comment.
9613 (tracepoint_locations_match): New parameter. For breakpoints,
9614 compare location types too, if the caller wants to.
9615 (handle_automatic_hardware_breakpoints): New functions.
9616 (bp_location_is_less_than): Also sort by location type and
9617 hardware breakpoint length.
9618 (update_global_location_list): Handle "set breakpoint auto-hw on"
9619 here.
9620 (update_breakpoint_locations): Ask breakpoint_locations_match to
9621 ignore location types.
9622
7d93a1e0
SM
96232020-05-16 Simon Marchi <simon.marchi@efficios.com>
9624
9625 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9626 type::name instead.
9627
d0e39ea2
SM
96282020-05-16 Simon Marchi <simon.marchi@efficios.com>
9629
9630 * gdbtypes.h (struct type) <name, set_name>: New methods.
9631 (TYPE_CODE): Use type::name. Change all call sites used to set
9632 the name to use type::set_name instead.
9633
2dab0c7b
TT
96342020-05-16 Tom Tromey <tom@tromey.com>
9635
9636 * top.c (quit_force): Update.
9637 * infrun.c (handle_no_resumed): Update.
9638 * top.h (all_uis): New function.
9639 (ALL_UIS): Remove.
9640
59f7bd8d
SM
96412020-05-16 Simon Marchi <simon.marchi@efficios.com>
9642
9643 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9644
9bf058f0
PA
96452020-05-16 Pedro Alves <palves@redhat.com>
9646
9647 * ia64-linux-nat.c
9648 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9649 Declare method.
9650 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9651
8f86ae1a
SM
96522020-05-15 Simon Marchi <simon.marchi@efficios.com>
9653
9654 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9655 (sparc64_adi_info): Likewise.
9656
d6bc0792
TT
96572020-05-15 Tom Tromey <tom@tromey.com>
9658
9659 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9660 block_objfile.
9661 (lookup_objfile_from_block): Remove.
9662 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9663 (lookup_global_symbol): Use block_objfile.
9664 * symtab.h (lookup_objfile_from_block): Don't declare.
9665 * printcmd.c (clear_dangling_display_expressions): Use
9666 block_objfile.
9667 * parse.c (operator_check_standard): Use block_objfile.
9668
8c14c3a3
TT
96692020-05-15 Tom Tromey <tom@tromey.com>
9670
9671 * language.c (language_alloc_type_symbol): Set
9672 SYMBOL_SECTION.
9673 * symtab.c (initialize_objfile_symbol): Remove.
9674 (allocate_symbol): Remove.
9675 (allocate_template_symbol): Remove.
9676 * dwarf2/read.c (fixup_go_packaging): Use "new".
9677 (new_symbol): Use "new".
9678 (read_variable): Don't call initialize_objfile_symbol. Use
9679 "new".
9680 (read_func_scope): Use "new".
9681 * xcoffread.c (process_xcoff_symbol): Don't call
9682 initialize_objfile_symbol.
9683 (SYMBOL_DUP): Remove.
9684 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9685 "new".
9686 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9687 (allocate_template_symbol): Don't declare.
9688 (struct symbol): Add copy constructor. Change defaults.
9689 * jit.c (finalize_symtab): Use "new".
9690 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9691 Use "new".
9692 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9693 (common_block_end): Use "new".
9694 * mdebugread.c (parse_symbol): Use "new".
9695 (new_symbol): Likewise.
9696
5b4a1a8d
PW
96972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9698
9699 * NEWS: Mention changes to help and apropos.
9700
57b4f16e
PW
97012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9702
9703 * command.h (enum command_class): Improve comments, document
9704 that class_alias is for user-defined aliases, give the class
9705 name for each class, remove unused class_xdb.
9706 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9707 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9708 by a precise class.
9709 * infcmd.c (_initialize_infcmd): Likewise.
9710 * reverse.c (_initialize_reverse): Likewise.
9711 * stack.c (_initialize_stack): Likewise.
9712 * symfile.c (_initialize_symfile): Likewise.
9713 * tracepoint.c (_initialize_tracepoint): Likewise.
9714
7c05caf7
PW
97152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9716
9717 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9718 when their aliased command is traversed.
9719 (help_cmd): Add fput_command_names_styled call to
9720 output command name and aliases when command has an alias.
9721
3b3aaacb
PW
97222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9723
9724 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9725 * cli/cli-decode.c (help_cmd_list): Declare as static,
9726 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9727 a command together with the command.
9728 (fput_command_name_styled, fput_command_names_styled): New functions.
9729 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9730 fput_command_name_styled.
9731 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9732 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9733
7aa1b46f
PW
97342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9735
9736 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9737 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9738 * command.h (cmd_show_list): Likewise.
9739 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9740 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9741
89bcba74
PW
97422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9743
9744 * unittests/command-def-selftests.c (traverse_command_structure):
9745 Verify all commands of a list have the same prefix command and
9746 that only the top cmdlist commands have a null prefix.
9747
3f4d92eb
PW
97482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9749
9750 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9751 as prefix, not one of its aliases.
9752 (set_cmd_prefix): Remove.
9753 (do_add_cmd): Centralize the setting of the prefix of a command, when
9754 command is defined after its full chain of prefix commands.
9755 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9756 (add_setshow_cmd_full): Likewise.
9757 (update_prefix_field_of_prefixed_commands): New function.
9758 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9759 update_prefix_field_of_prefixed_commands.
9760 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9761 addresses of remote_set_cmdlist and remote_show_cmdlist given
9762 as argument, not the address of an argument.
9763 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9764 * gdb/remote.c (_initialize_remote): Likewise.
9765
0605465f
PW
97662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9767
9768 * cli/cli-cmds.c (alias_command): Check for an existing alias
9769 using lookup_cmd_composition, as valid_command_p is too strict
9770 and forbids aliases that are the prefix of an existing alias
9771 or command.
9772 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9773 command is properly recognised as a valid command.
9774
58e6ac70
PW
97752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9776
9777 * unittests/help-doc-selftests.c: Rename to
9778 unittests/command-def-selftests.c
9779 * unittests/command-def-selftests.c (help_doc_tests): Update some
9780 comments.
9781 (command_structure_tests, traverse_command_structure): New namespace
9782 and function.
9783 (command_structure_invariants_tests): New function.
9784 (_initialize_command_def_selftests) Renamed from
9785 _initialize_help_doc_selftests, register command_structure_invariants
9786 selftest.
9787
a7b9ceb8
PW
97882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9789
9790 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9791 an alias of 'show'.
9792
b2188a06
JB
97932020-05-15 Joel Brobecker <brobecker@adacore.com>
9794
9795 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9796 ada_is_fixed_point_type. Update all callers.
9797 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9798 all callers.
9799 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9800 Update all callers.
9801 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9802 print_fixed_point_type. Update all callers.
9803 * ada-valprint.c (ada_value_print_num): Replace call to
9804 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9805
a51951c2
KB
98062020-05-14 Kevin Buettner <kevinb@redhat.com>
9807
9808 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9809 processors.
9810 (cpu_supports_bts): Add CV_AMD case.
9811
29d6859f
LM
98122020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9813 Simon Marchi <simon.marchi@efficios.com>
9814
9815 * infrun.c (stop_all_threads): Collect multiple wait events at
9816 each pass.
9817
78134374
SM
98182020-05-14 Simon Marchi <simon.marchi@efficios.com>
9819
9820 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9821 type::code instead.
9822
67607e24
SM
98232020-05-14 Simon Marchi <simon.marchi@efficios.com>
9824
9825 * gdbtypes.h (struct type) <code, set_code>: New methods.
9826 (TYPE_CODE): Use type::code. Change all call sites used to set
9827 the code to use type::set_code instead.
9828
a05575d3
TBA
98292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9830 Tom de Vries <tdevries@suse.de>
9831 Pedro Alves <palves@redhat.com>
9832
9833 PR threads/25478
9834 * infrun.c (stop_all_threads): Do NOT ignore
9835 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9836 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9837 received.
9838 (handle_no_resumed): Remove code handling a live inferior with no
9839 threads.
9840 * remote.c (has_single_non_exited_thread): New.
9841 (remote_target::update_thread_list): Do not delete a thread if is
9842 the last thread of the process.
9843 * thread.c (thread_select): Call delete_exited_threads instead of
9844 prune_threads.
9845
6ad82919
TBA
98462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9847
9848 * infrun.c (stop_all_threads): Enable/disable thread events of all
9849 targets. Move a debug message denoting the end of the function
9850 into the SCOPED_EXIT block.
9851
d890404b
TBA
98522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9853
9854 * process-stratum-target.h: Include <set>.
9855 (all_non_exited_process_targets, switch_to_target_no_thread): New
9856 function declarations.
9857 * process-stratum-target.c (all_non_exited_process_targets)
9858 (switch_to_target_no_thread): New function implementations.
9859
293b3ebc
TBA
98602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9861
9862 * infrun.c (handle_inferior_event): Extract out a piece of code
9863 into...
9864 (mark_non_executing_threads): ...this new function.
9865
7ca9b62a
TBA
98662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9867
9868 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9869 use.
9870
fc75c28b
TBA
98712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9872
9873 * regcache.c (regcache_read_pc_protected): New function
9874 implementation that returns 0 if the PC cannot read via
9875 'regcache_read_pc'.
9876 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9877 instead of 'regcache_read_pc'.
9878 (keep_going_pass_signal): Ditto.
9879
a89febbd
TT
98802020-05-13 Tom Tromey <tromey@adacore.com>
9881
9882 * ada-lang.c (align_value): Remove.
9883 (ada_template_to_fixed_record_type_1): Use align_up.
9884
f7e23710
TBA
98852020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9886
9887 * async-event.c: Update the copyright year.
9888 * async-event.h: Update the copyright year.
9889
02ff80c2
SM
98902020-05-12 Simon Marchi <simon.marchi@efficios.com>
9891
9892 * objfiles.h (is_addr_in_objfile,
9893 shared_objfile_contains_address_p): Return bool.
9894 * objfile.c (is_addr_in_objfile,
9895 shared_objfile_contains_address_p): Return bool.
9896
4fd6c7e8
TT
98972020-05-11 Tom Tromey <tromey@adacore.com>
9898
9899 * cli/cli-cmds.c (info_command): Restore.
9900 (_initialize_cli_cmds): Use add_prefix_command for "info".
9901 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9902
5eb68a39
TT
99032020-05-11 Tom Tromey <tromey@adacore.com>
9904
9905 * ada-lang.c (ada_value_primitive_field): Now public.
9906 * ada-lang.h (ada_value_primitive_field): Declare.
9907 * ada-valprint.c (print_field_values): Use
9908 ada_value_primitive_field for wrapper fields.
9909
7666722f
TV
99102020-05-11 Tom de Vries <tdevries@suse.de>
9911
9912 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9913 MODULE_DOMAIN.
9914
3ee6bb11
TV
99152020-05-11 Tom de Vries <tdevries@suse.de>
9916
9917 PR symtab/25941
9918 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9919 with length 0, if not gdb-produced.
9920 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9921
43434996
TV
99222020-05-09 Tom de Vries <tdevries@suse.de>
9923
9924 PR gdb/25955
9925 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9926 calculation.
9927
2f78cffc
TT
99282020-05-09 Tom Tromey <tom@tromey.com>
9929
9930 * top.c (server_command): Now bool.
9931 * top.h (server_command): Now bool.
9932
4f7bc5ed
TT
99332020-05-08 Tom Tromey <tromey@adacore.com>
9934
9935 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9936 already being processed.
9937
8be4b118
TT
99382020-05-08 Tom Tromey <tom@tromey.com>
9939
9940 * printcmd.c (struct display) <next>: Remove.
9941 <display>: New constructor.
9942 <exp_string>: Now a std::string.
9943 <enabled_p>: Now a bool.
9944 (display_number): Move definition earlier.
9945 (displays): Rename from display_chain. Now a std::vector.
9946 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9947 (display_command): Update.
9948 (do_one_display, disable_display)
9949 (enable_disable_display_command, do_enable_disable_display):
9950 Update.
9951 (free_display): Remove.
9952 (clear_displays): Rewrite.
9953 (delete_display): Update.
9954 (map_display_numbers): Use function_view. Remove "data"
9955 parameter. Update.
9956 (do_delete_display): Remove.
9957 (undisplay_command): Update.
9958 (do_one_display, do_displays, disable_display)
9959 (info_display_command): Update.
9960 (do_enable_disable_display): Remove.
9961 (enable_disable_display_command)
9962 (clear_dangling_display_expressions): Update.
9963
94c93c35
TT
99642020-05-08 Tom Tromey <tom@tromey.com>
9965
9966 * symtab.c (set_symbol_cache_size)
9967 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9968 (maintenance_print_symbol_cache_statistics): Update.
9969 * symmisc.c (print_symbol_bcache_statistics)
9970 (print_objfile_statistics, maintenance_print_objfiles)
9971 (maintenance_info_symtabs, maintenance_check_symtabs)
9972 (maintenance_expand_symtabs, maintenance_info_line_tables):
9973 Update.
9974 * symfile-debug.c (set_debug_symfile): Update.
9975 * source.c (forget_cached_source_info): Update.
9976 * python/python.c (gdbpy_progspaces): Update.
9977 * psymtab.c (maintenance_info_psymtabs): Update.
9978 * probe.c (parse_probes): Update.
9979 * linespec.c (iterate_over_all_matching_symtabs)
9980 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9981 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9982 * exec.c (exec_target::close): Update.
9983 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9984 * breakpoint.c (print_one_breakpoint_location)
9985 (create_longjmp_master_breakpoint)
9986 (create_std_terminate_master_breakpoint): Update.
9987 * progspace.c (program_spaces): Now a std::vector.
9988 (maybe_new_address_space): Update.
9989 (add_program_space): Remove.
9990 (program_space::program_space): Update.
9991 (remove_program_space): Update.
9992 (number_of_program_spaces): Remove.
9993 (print_program_space, update_address_spaces): Update.
9994 * progspace.h (program_spaces): Change type.
9995 (ALL_PSPACES): Remove.
9996 (number_of_program_spaces): Don't declare.
9997 (struct program_space) <next>: Remove.
9998
a1fd1ac9
TT
99992020-05-08 Tom Tromey <tom@tromey.com>
10000
10001 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10002 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10003 (enable_break): Update.
10004 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10005 (frv_fdpic_find_canonical_descriptor): Update.
10006 (frv_fetch_objfile_link_map): Update.
10007 * progspace.c (program_space::free_all_objfiles): Update.
10008 (program_space::solibs): New method.
10009 * progspace.h (struct program_space) <solibs>: New method.
10010 * solist.h (master_so_list): Don't declare.
10011 (ALL_SO_LIBS): Remove.
10012 * solib.h (so_list_head): Remove.
10013 (update_solib_list): Update comment.
10014 * solib.c (master_so_list): Remove.
10015 (solib_used, update_solib_list, solib_add)
10016 (info_sharedlibrary_command, clear_solib)
10017 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10018
38eae084
TT
100192020-05-08 Tom Tromey <tom@tromey.com>
10020
10021 * extension.c (extension_languages): Now a std::array.
10022 (ALL_EXTENSION_LANGUAGES): Remove.
10023 (get_ext_lang_defn, get_ext_lang_of_file)
10024 (eval_ext_lang_from_control_command): Update.
10025 (finish_ext_lang_initialization)
10026 (auto_load_ext_lang_scripts_for_objfile)
10027 (ext_lang_type_printers::ext_lang_type_printers)
10028 (apply_ext_lang_type_printers)
10029 (ext_lang_type_printers::~ext_lang_type_printers)
10030 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10031 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10032 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10033 (get_matching_xmethod_workers, ext_lang_colorize)
10034 (ext_lang_before_prompt): Update.
10035 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10036
596dc4ad
TT
100372020-05-08 Tom Tromey <tom@tromey.com>
10038
10039 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10040 overload.
10041 <swap_string, m_string>: Remove.
10042 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10043 Update.
10044 * stabsread.c (define_symbol, read_type): Update.
10045 * linespec.c (find_linespec_symbols): Update.
10046 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10047 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10048 * dbxread.c (read_dbx_symtab): Update.
10049 * cp-support.h (cp_canonicalize_string_full)
10050 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10051 Return unique_xmalloc_ptr.
10052 * cp-support.c (inspect_type): Update.
10053 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10054 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10055 Likewise.
10056 * c-typeprint.c (print_name_maybe_canonical): Update.
10057 * break-catch-throw.c (check_status_exception_catchpoint):
10058 Update.
10059
bf4cb9be
TV
100602020-05-08 Tom de Vries <tdevries@suse.de>
10061
10062 * infrun.c (follow_fork): Copy current_line and current_symtab to
10063 child thread.
10064
a1b68f28
SM
100652020-05-07 Simon Marchi <simon.marchi@efficios.com>
10066
10067 * async-event.c (struct async_signal_handler, struct
10068 async_event_handler): Reformat, remove typedef.
10069
98d48915
SM
100702020-05-07 Simon Marchi <simon.marchi@efficios.com>
10071
10072 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10073 access thistype->main_type->dyn_prop_list directly.
10074
7aa91313
SM
100752020-05-07 Simon Marchi <simon.marchi@efficios.com>
10076
10077 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10078 (remove_dyn_prop): Remove. Update all users to use
10079 type::remove_dyn_prop.
10080 * gdbtypes.c (remove_dyn_prop): Rename to...
10081 (type::remove_dyn_prop): ... this.
10082
5c54719c
SM
100832020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10084
10085 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10086 (add_dyn_prop): Remove. Update all users to use
10087 type::add_dyn_prop.
10088 * gdbtypes.c (add_dyn_prop): Rename to...
10089 (type::add_dyn_prop): ... this.
10090
24e99c6c
SM
100912020-05-07 Simon Marchi <simon.marchi@efficios.com>
10092
10093 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10094 (get_dyn_prop): Remove. Update all users to use
10095 type::dyn_prop.
10096 * gdbtypes.c (get_dyn_prop): Rename to...
10097 (type::dyn_prop): ... this.
10098
0d4bf016
SM
100992020-05-06 Simon Marchi <simon.marchi@efficios.com>
10100
10101 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10102
ac4a4f1c
SM
101032020-05-06 Simon Marchi <simon.marchi@efficios.com>
10104
10105 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10106 instruction, skip it if it's there.
10107
a3bbacc1
SM
101082020-05-05 Simon Marchi <simon.marchi@efficios.com>
10109
10110 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10111
c3236f84
SM
101122020-05-04 Simon Marchi <simon.marchi@efficios.com>
10113
10114 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10115 * gdbtypes.c (recursive_dump_type): Remove use of
10116 TYPE_INCOMPLETE.
10117
3b6acaee
TT
101182020-05-03 Tom Tromey <tom@tromey.com>
10119
10120 * breakpoint.c (catch_command, tcatch_command): Remove.
10121 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10122 add_show_prefix_cmd.
10123 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10124 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10125 Remove.
10126 (add_internal_problem_command): Use add_basic_prefix_cmd,
10127 add_show_prefix_cmd.
10128 * mips-tdep.c (set_mipsfpu_command): Remove.
10129 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10130 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10131 (_initialize_index_cache): Use add_basic_prefix_cmd.
10132 * memattr.c (dummy_cmd): Remove.
10133 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10134 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10135 (_initialize_tui_win): Use add_basic_prefix_cmd,
10136 add_show_prefix_cmd.
10137 * cli/cli-logging.c (set_logging_command): Remove.
10138 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10139 add_show_prefix_cmd.
10140 (show_logging_command): Remove.
10141 * target.c (target_command): Remove.
10142 (add_target): Use add_basic_prefix_cmd.
10143
a51119cd
HD
101442020-05-02 Hannes Domani <ssbssa@yahoo.de>
10145
10146 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10147
652fc23a 101482020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10149
652fc23a
PW
10150 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10151 info_command.
10152
117539e6
KR
101532020-04-30 Kamil Rytarowski <n54@gmx.com>
10154
10155 * nbsd-nat.c (nbsd_enable_proc_events)
10156 (nbsd_nat_target::post_startup_inferior): Add.
10157 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10158 (nbsd_nat_target::update_thread_list): Rewrite.
10159 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10160 "PTRACE_LWP_CREATE".
10161 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10162
102e38eb 101632020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10164
102e38eb
PW
10165 * stack.c (_initialize_stack): Remove duplicated creation
10166 of "frame" command and "f" alias.
10167
ee9d1e5f
HD
101682020-04-30 Hannes Domani <ssbssa@yahoo.de>
10169
10170 PR gdb/18706
10171 * gdbtypes.c (check_typedef): Calculate size of array of
10172 stubbed type.
10173
627c7fb8
HD
101742020-04-30 Hannes Domani <ssbssa@yahoo.de>
10175
10176 PR gdb/15559
10177 * i386-tdep.c (i386_push_dummy_call): Call
10178 i386_thiscall_push_dummy_call.
10179 (i386_thiscall_push_dummy_call): New function.
10180 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10181 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10182 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10183
ffc2844e
SM
101842020-04-29 Simon Marchi <simon.marchi@efficios.com>
10185
10186 * gdbarch.sh (do_read): Add shellcheck disable directive for
10187 warning SC2162.
10188
1207375d
SM
101892020-04-29 Simon Marchi <simon.marchi@efficios.com>
10190
10191 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10192 "referenced but not assigned" warning.
10193
9fdb2916
SM
101942020-04-29 Simon Marchi <simon.marchi@efficios.com>
10195
10196 * gdbarch.sh: Remove code that sets fallbackdefault.
10197
759cea5e
SM
101982020-04-29 Simon Marchi <simon.marchi@efficios.com>
10199
10200 * gdbarch.sh: Use shell operators && and || instead of
10201 -a and -o.
10202
cb02ab24
SM
102032020-04-29 Simon Marchi <simon.marchi@efficios.com>
10204
10205 * gdbarch.sh: Use $(...) instead of `...`.
10206
a6fc5ffc
SM
102072020-04-29 Simon Marchi <simon.marchi@efficios.com>
10208
10209 * gdbarch.sh: Use double quotes around variables.
10210
8d113d13
SM
102112020-04-29 Simon Marchi <simon.marchi@efficios.com>
10212
10213 * gdbarch.sh: Use %s with printf, instead of variables in the
10214 format string.
10215
ed6acedd
TT
102162020-04-29 Tom Tromey <tromey@adacore.com>
10217
10218 PR ada/25875:
10219 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10220 type fields here.
10221 (read_enumeration_type): Call
10222 update_enumeration_type_from_children later. Update comments.
10223 (process_enumeration_scope): Don't create type fields.
10224
b68b1b58
KR
102252020-04-29 Kamil Rytarowski <n54@gmx.com>
10226
10227 * nbsd-tdep.c: Include "xml-syscall.h".
10228 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10229
f94b2e03
KR
102302020-04-29 Kamil Rytarowski <n54@gmx.com>
10231
10232 * nbsd-nat.c: Include "sys/wait.h".
10233 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10234 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10235 (nbsd_nat_target::remove_exec_catchpoint)
10236 (nbsd_nat_target::set_syscall_catchpoint): Add.
10237 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10238 (nbsd_nat_target::insert_exec_catchpoint)
10239 (nbsd_nat_target::remove_exec_catchpoint)
10240 (nbsd_nat_target::set_syscall_catchpoint): Add.
10241 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10242 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10243 `nbsd_get_syscall_number'.
10244
fc49bc72
TT
102452020-04-29 Tom Tromey <tom@tromey.com>
10246
10247 * stack.c (print_block_frame_labels): Remove.
10248
d642b692
HD
102492020-04-29 Hannes Domani <ssbssa@yahoo.de>
10250
10251 PR gdb/17320
10252 * ada-valprint.c (val_print_packed_array_elements): Move array
10253 end bracket to new line.
10254 (ada_val_print_string): Remove extra spaces before first array
10255 element.
10256 * c-valprint.c (c_value_print_array): Likewise.
10257 * m2-valprint.c (m2_print_array_contents): Likewise.
10258 (m2_value_print_inner): Likewise.
10259 * p-valprint.c (pascal_value_print_inner): Likewise.
10260 * valprint.c (generic_val_print_array): Likewise.
10261 (value_print_array_elements): Move first array element and array
10262 end bracket to new line.
10263
ea90f227
TV
102642020-04-29 Tom de Vries <tdevries@suse.de>
10265
10266 PR symtab/25889
10267 * linespec.c (find_method): Fix ix calculation.
10268
4498ef4f
KR
102692020-04-28 Kamil Rytarowski <n54@gmx.com>
10270
10271 * syscalls/update-netbsd.sh: New file.
10272 * syscalls/netbsd.xml: Regenerate.
10273 * data-directory/Makefile.in: Register `netbsd.xml' in
10274 `SYSCALLS_FILES'.
10275
a55e30b5
SM
102762020-04-28 Simon Marchi <simon.marchi@efficios.com>
10277
10278 * syscalls/update-freebsd.sh: Add double quotes.
10279
2b2fbab8
TT
102802020-04-28 Tom Tromey <tom@tromey.com>
10281
10282 * NEWS: Update.
10283 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10284 (cmdpy_init): Allow class_tui.
10285
a65189c9
TV
102862020-04-28 Mark Williams <mark@myosotissp.com>
10287
10288 PR gdb/24480
10289 * dwarf2read.c: Add missing assingments to list_in_scope when
10290 start_symtab was already called.
10291
1b95cdb7
SM
102922020-04-28 Simon Marchi <simon.marchi@efficios.com>
10293
10294 PR gdb/25881
10295 * dwarf2/read.c (offset_map_type): Use
10296 gdb:hash_enum<sect_offset> as hash function.
10297
15cd93d0
TV
102982020-04-28 Tom de Vries <tdevries@suse.de>
10299
10300 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10301 with DW_AT_signature.
10302
1eb39914
SM
103032020-04-27 Simon Marchi <simon.marchi@efficios.com>
10304
10305 * configure.ac: Remove check for fs_base/gs_base in
10306 user_regs_struct.
10307 * configure: Re-generate.
10308 * config.in: Re-generate.
10309 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10310 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10311 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10312
991a3e2e
LM
103132020-04-27 Luis Machado <luis.machado@linaro.org>
10314
10315 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10316 problematic inline frame unwinding situation.
10317 * frame.c (frame_id_computed_p): New function.
10318 * frame.h (frame_id_computed_p): New prototype.
10319
361ba0e8
TT
103202020-04-26 Tom Tromey <tom@tromey.com>
10321
10322 * command.h (enum command_class) <class_pseudo>: Remove.
10323
bc3609fd
PW
103242020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10325
10326 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10327 and whitespace.
10328
b9771db7
KR
103292020-04-25 Kamil Rytarowski <n54@gmx.com>
10330
ec16513e
SM
10331 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10332 `PT_GET_PROCESS_STATE' block.
b9771db7 10333
7151c1af
TT
103342020-04-24 Tom Tromey <tom@tromey.com>
10335
10336 * symtab.h (symbol_get_demangled_name): Don't declare.
10337 * symtab.c (symbol_get_demangled_name): Remove.
10338 (general_symbol_info::natural_name)
10339 (general_symbol_info::demangled_name): Update.
10340
906bb4c5
TT
103412020-04-24 Tom Tromey <tom@tromey.com>
10342
10343 PR rust/25025:
10344 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10345
bcfe6157
TT
103462020-04-24 Tom Tromey <tom@tromey.com>
10347
10348 PR symtab/12707:
10349 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10350 exists.
10351 (new_symbol): Likewise.
10352 * compile/compile-object-load.c (get_out_value_type): Use
10353 symbol_matches_search_name.
10354
f049a313
TT
103552020-04-24 Tom Tromey <tom@tromey.com>
10356
10357 * dwarf2/read.c (add_partial_symbol): Do not call
10358 compute_and_set_names.
10359
76e288d1
TT
103602020-04-24 Tom Tromey <tom@tromey.com>
10361
10362 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10363 overload.
10364
2467f4f6
TT
103652020-04-24 Tom Tromey <tom@tromey.com>
10366
10367 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10368 (add_psymbol_to_list): New overload. Make old overload call new
10369 one.
10370 * psympriv.h (add_psymbol_to_list): New overload.
10371
e61108c9
TT
103722020-04-24 Tom Tromey <tom@tromey.com>
10373
10374 * dwarf2/read.c (partial_die_info::read) <case
10375 DW_AT_linkage_name>: Use value_as_string.
10376 (dwarf2_string_attr): Use value_as_string.
10377 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10378 method.
10379 * dwarf2/attribute.c (attribute::value_as_string): New method.
10380
8c87a452
TT
103812020-04-24 Tom Tromey <tom@tromey.com>
10382
10383 * symtab.c (general_symbol_info::natural_name)
10384 (general_symbol_info::demangled_name): Check for language_rust.
10385
787de330
TT
103862020-04-24 Tom Tromey <tom@tromey.com>
10387
10388 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10389 (dwarf2_physname): ... from here.
10390 (partial_die_info::read): Add Rust "{" hack.
10391
ff985671
TT
103922020-04-24 Tom Tromey <tom@tromey.com>
10393
10394 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10395 method.
10396 (symbol_set_demangled_name): Don't declare.
10397 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10398 symbol_set_demangled_name.
10399 (general_symbol_info::set_language)
10400 (general_symbol_info::compute_and_set_names): Update.
10401 * minsyms.c (minimal_symbol_reader::install): Update.
10402 * dwarf2/read.c (new_symbol): Update.
10403
1acda803
TT
104042020-04-24 Tom Tromey <tromey@adacore.com>
10405
10406 PR python/23662:
10407 * python/py-type.c (convert_field): Handle
10408 FIELD_LOC_KIND_DWARF_BLOCK.
10409 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10410 (typy_get_dynamic): Nw function.
10411 (type_object_getset): Add "dynamic".
10412 * NEWS: Add entry.
10413
d656f129
TT
104142020-04-24 Tom Tromey <tromey@adacore.com>
10415
10416 * ada-typeprint.c (print_choices, print_variant_part)
10417 (print_record_field_types_dynamic): New functions.
10418 (print_record_field_types): Use print_record_field_types_dynamic.
10419
7d79de9a
TT
104202020-04-24 Tom Tromey <tromey@adacore.com>
10421
10422 * dwarf2/read.c (handle_data_member_location): New overload.
10423 (dwarf2_add_field): Use it.
10424 (decode_locdesc): Add "computed" parameter. Update comment.
10425 * gdbtypes.c (is_dynamic_type_internal): Also look for
10426 FIELD_LOC_KIND_DWARF_BLOCK.
10427 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10428 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10429 virtual base classes.
10430 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10431 FIELD_LOC_KIND_DWARF_BLOCK.
10432
f8e89861
TT
104332020-04-24 Tom Tromey <tromey@adacore.com>
10434
10435 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10436 * gdbtypes.c (is_dynamic_type_internal): Check
10437 TYPE_HAS_DYNAMIC_LENGTH.
10438 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10439 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10440 New macros.
10441 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10442 constant.
10443
9c6a1327
TT
104442020-04-24 Tom Tromey <tromey@adacore.com>
10445
10446 * dwarf2/read.c (struct variant_field): Rewrite.
10447 (struct variant_part_builder): New.
10448 (struct nextfield): Remove "variant" field. Add "offset".
10449 (struct field_info): Add "current_variant_part" and
10450 "variant_parts".
10451 (alloc_discriminant_info): Remove.
10452 (alloc_rust_variant): New function.
10453 (quirk_rust_enum): Update.
10454 (dwarf2_add_field): Set "offset" member. Don't handle
10455 DW_TAG_variant_part.
10456 (offset_map_type): New typedef.
10457 (convert_variant_range, create_one_variant)
10458 (create_one_variant_part, create_variant_parts)
10459 (add_variant_property): New functions.
10460 (dwarf2_attach_fields_to_type): Call add_variant_property.
10461 (read_structure_type): Don't handle DW_TAG_variant_part.
10462 (handle_variant_part, handle_variant): New functions.
10463 (handle_struct_member_die): Use them.
10464 (process_structure_scope): Don't handle variant parts.
10465 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10466 (struct discriminant_info): Remove.
10467 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10468 (struct main_type) <flag_discriminated_union>: Remove.
10469 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10470 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10471 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10472 Update.
10473 * valops.c (value_union_variant): Remove.
10474 * value.h (value_union_variant): Don't declare.
10475
b249d2c2
TT
104762020-04-24 Tom Tromey <tromey@adacore.com>
10477
10478 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10479 (ada_value_primitive_packed_val): Update.
10480 * ada-valprint.c (ada_value_print_1): Update.
10481 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10482 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10483 just an address. Use evaluate_for_locexpr_baton.
10484 (dwarf2_evaluate_property): Update.
10485 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10486 array_view.
10487 * findvar.c (default_read_var_value): Update.
10488 * gdbtypes.c (compute_variant_fields_inner)
10489 (resolve_dynamic_type_internal): Update.
10490 (resolve_dynamic_type): Change type of valaddr parameter.
10491 * gdbtypes.h (resolve_dynamic_type): Update.
10492 * valarith.c (value_subscripted_rvalue): Update.
10493 * value.c (value_from_contents_and_address): Update.
10494
61122aa9
TT
104952020-04-24 Tom Tromey <tromey@adacore.com>
10496
10497 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10498 "push_initial_value" parameter.
10499 (dwarf2_evaluate_property): Likewise.
10500 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10501
ef83a141
TT
105022020-04-24 Tom Tromey <tromey@adacore.com>
10503
10504 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10505 (variant::matches, compute_variant_fields_recurse)
10506 (compute_variant_fields_inner, compute_variant_fields): New
10507 functions.
10508 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10509 Use resolved_type after type is made.
10510 (operator==): Add new cases.
10511 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10512 (struct discriminant_range, struct variant, struct variant_part):
10513 New.
10514 (union dynamic_prop_data) <variant_parts, original_type>: New
10515 members.
10516 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10517 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10518 constants.
10519 * value.c (unpack_bits_as_long): Now public.
10520 * value.h (unpack_bits_as_long): Declare.
10521
675127ec
TT
105222020-04-24 Tom Tromey <tromey@adacore.com>
10523
10524 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10525 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10526
9852ceef
HD
105272020-04-24 Hannes Domani <ssbssa@yahoo.de>
10528
10529 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10530
7632c6ce
KR
105312020-04-24 Kamil Rytarowski <n54@gmx.com>
10532
10533 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10534 (remove_fork_catchpoint, post_startup_inferior)
10535 (post_attach): Move...
10536 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10537 (remove_fork_catchpoint, post_startup_inferior)
10538 (post_attach): ...here.
10539 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10540 (remove_fork_catchpoint, post_startup_inferior)
10541 (post_attach): Move...
10542 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10543 (remove_fork_catchpoint, post_startup_inferior)
10544 (post_attach): ...here.
10545
7be2bb4f
TT
105462020-04-24 Tom Tromey <tromey@adacore.com>
10547
10548 * nat/windows-nat.h (struct windows_thread_info)
10549 <pc_adjusted>: New member.
10550 * windows-nat.c (windows_fetch_one_register): Check
10551 pc_adjusted.
10552 (windows_nat_target::get_windows_debug_event)
10553 (windows_nat_target::wait): Set pc_adjusted.
10554
f80cb3b4
TV
105552020-04-24 Tom de Vries <tdevries@suse.de>
10556
10557 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10558 Run gdb-add-index inside temp dir.
10559
29514b87
TT
105602020-04-23 Tom Tromey <tromey@adacore.com>
10561
10562 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10563 in loop.
10564
5939967b
LM
105652020-04-23 Luis Machado <luis.machado@linaro.org>
10566
10567 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10568 get_frame_register instead of gdbarch_unwind_pc.
10569
70bc38f5
TV
105702020-04-23 Tom de Vries <tdevries@suse.de>
10571
10572 * symtab.c (lookup_global_symbol): Prefer def over decl.
10573
de82891c
TV
105742020-04-23 Tom de Vries <tdevries@suse.de>
10575
10576 PR symtab/25807
10577 * block.c (best_symbol, better_symbol): Promote to external.
10578 * block.h (best_symbol, better_symbol): Declare.
10579 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10580 decl.
10581
ecc6c606
TT
105822020-04-23 Tom Tromey <tromey@adacore.com>
10583
10584 PR ada/25837:
10585 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10586 "const char *", not a "const std::string &".
10587 <name_and_matcher::operator==>: Update.
10588 * unittests/lookup_name_info-selftests.c: Change type of
10589 "result".
10590
740480b8
TT
105912020-04-23 Tom Tromey <tom@tromey.com>
10592
10593 * inferior.h (iterate_over_inferiors): Don't declare.
10594 * inferior.c (iterate_over_inferiors): Remove.
10595 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10596 Remove.
10597 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10598 use iterate_over_inferiors.
10599 (darwin_resume_inferior_it)
10600 (struct resume_inferior_threads_param)
10601 (darwin_resume_inferior_threads_it): Remove.
10602 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10603
ae3ab1f0
TV
106042020-04-23 Tom de Vries <tdevries@suse.de>
10605
10606 * blockframe.c (find_pc_partial_function): Use
10607 find_pc_sect_compunit_symtab rather than
10608 objfile->sf->qf->find_pc_sect_compunit_symtab.
10609
317d2668
TV
106102020-04-22 Tom de Vries <tdevries@suse.de>
10611
10612 PR symtab/25764
10613 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10614 in psymtabs.
10615
eea9e357
TV
106162020-04-22 Tom de Vries <tdevries@suse.de>
10617
10618 PR symtab/25801
10619 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10620 symtabs.
10621
3d5afab3
TV
106222020-04-22 Tom de Vries <tdevries@suse.de>
10623
10624 PR symtab/25700
10625 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10626 CU if already created.
10627
d43b7a2d
TBA
106282020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10629
10630 * infrun.c (displaced_step_fixup): Switch to the event_thread
10631 before calling displaced_step_restore, not after.
10632
d89edf9b
MM
106332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10634
10635 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10636 its inferior is not recorded by us.
10637 (record_btrace_target_open): Replace call to
10638 all_non_exited_threads () with call to current_inferior
10639 ()->non_exited_threads ().
10640 (record_btrace_target::stop_recording): Likewise.
10641 (record_btrace_target::close): Likewise.
10642 (record_btrace_target::wait): Likewise.
10643 (record_btrace_target::record_stop_replaying): Likewise.
10644
5897fd49
MM
106452020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10646
10647 * btrace.c (btrace_enable): Throw an error on double enables and
10648 when enabling recording fails.
10649 (btrace_disable): Throw an error if the thread is not recorded.
10650
1a476b6d
MM
106512020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10652
10653 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10654 request if we do not have a thread_info.
10655
4778a5f8
TV
106562020-04-21 Tom de Vries <tdevries@suse.de>
10657
10658 PR gdb/25471
10659 * thread.c
10660 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10661 exception in get_frame_id.
10662
0fa7617d
TT
106632020-04-20 Tom Tromey <tromey@adacore.com>
10664
10665 * python/python.c (struct gdbpy_event): Mark move constructor as
10666 noexcept.
10667 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10668 constructor as noexcept.
10669 * completer.h (struct completion_result): Mark move constructor as
10670 noexcept.
10671 * completer.c (completion_result::completion_result): Use
10672 initialization style. Don't call reset_match_list.
10673
ad23bda0
MS
106742020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10675
10676 * MAINTAINERS (Write After Approval): Add myself.
10677
45e1f031
TT
106782020-04-18 Tom Tromey <tom@tromey.com>
10679
10680 * windows-tdep.c (init_w32_command_list)
10681 (w32_prefix_command_valid): Restore.
10682 (_initialize_windows_tdep): Call init_w32_command_list.
10683
08feed99
TT
106842020-04-18 Tom Tromey <tom@tromey.com>
10685
10686 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10687 * value.c (value_fn_field): Update.
10688 * valops.c (find_function_in_inferior)
10689 (value_allocate_space_in_inferior): Update.
10690 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10691 Update.
10692 * tui/tui-source.c (tui_source_window::set_contents): Update.
10693 * symtab.c (lookup_global_or_static_symbol)
10694 (find_function_start_sal_1, skip_prologue_sal)
10695 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10696 * symmisc.c (dump_msymbols, dump_symtab_1)
10697 (maintenance_print_one_line_table): Update.
10698 * symfile.c (init_entry_point_info, section_is_mapped)
10699 (list_overlays_command, simple_read_overlay_table)
10700 (simple_overlay_update_1): Update.
10701 * stap-probe.c (handle_stap_probe): Update.
10702 * stabsread.c (dbx_init_float_type, define_symbol)
10703 (read_one_struct_field, read_enum_type, read_range_type): Update.
10704 * source.c (info_line_command): Update.
10705 * python/python.c (gdbpy_source_objfile_script)
10706 (gdbpy_execute_objfile_script): Update.
10707 * python/py-type.c (save_objfile_types): Update.
10708 * python/py-objfile.c (py_free_objfile): Update.
10709 * python/py-inferior.c (python_new_objfile): Update.
10710 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10711 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10712 (maintenance_check_psymtabs): Update.
10713 * printcmd.c (info_address_command): Update.
10714 * objfiles.h (struct objfile) <arch>: New method, from
10715 get_objfile_arch.
10716 (get_objfile_arch): Don't declare.
10717 * objfiles.c (get_objfile_arch): Remove.
10718 (filter_overlapping_sections): Update.
10719 * minsyms.c (msymbol_is_function): Update.
10720 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10721 (output_nondebug_symbol): Update.
10722 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10723 (mdebug_expand_psymtab): Update.
10724 * machoread.c (macho_add_oso_symfile): Update.
10725 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10726 Update.
10727 * linux-fork.c (checkpoint_command): Update.
10728 * linespec.c (convert_linespec_to_sals): Update.
10729 * jit.c (finalize_symtab): Update.
10730 * infrun.c (insert_exception_resume_from_probe): Update.
10731 * ia64-tdep.c (ia64_find_unwind_table): Update.
10732 * hppa-tdep.c (internalize_unwinds): Update.
10733 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10734 Update.
10735 * gcore.c (call_target_sbrk): Update.
10736 * elfread.c (record_minimal_symbol, elf_symtab_read)
10737 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10738 (elf_gnu_ifunc_resolve_by_got): Update.
10739 * dwarf2/read.c (create_addrmap_from_index)
10740 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10741 (read_debug_names_from_section)
10742 (process_psymtab_comp_unit_reader, add_partial_symbol)
10743 (add_partial_subprogram, process_full_comp_unit)
10744 (read_file_scope, read_func_scope, read_lexical_block_scope)
10745 (read_call_site_scope, dwarf2_ranges_read)
10746 (dwarf2_record_block_ranges, dwarf2_add_field)
10747 (mark_common_block_symbol_computed, read_tag_pointer_type)
10748 (read_tag_string_type, dwarf2_init_float_type)
10749 (dwarf2_init_complex_target_type, read_base_type)
10750 (partial_die_info::read, partial_die_info::read)
10751 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10752 (dwarf2_fetch_die_loc_sect_off): Update.
10753 * dwarf2/loc.c (dwarf2_find_location_expression)
10754 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10755 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10756 (dwarf2_loc_desc_get_symbol_read_needs)
10757 (locexpr_describe_location_piece, locexpr_describe_location_1)
10758 (loclist_describe_location): Update.
10759 * dwarf2/index-write.c (write_debug_names): Update.
10760 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10761 * dtrace-probe.c (dtrace_process_dof): Update.
10762 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10763 (process_one_symbol): Update.
10764 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10765 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10766 (coff_read_enum_type): Update.
10767 * cli/cli-cmds.c (edit_command, list_command): Update.
10768 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10769 * breakpoint.c (create_overlay_event_breakpoint)
10770 (create_longjmp_master_breakpoint)
10771 (create_std_terminate_master_breakpoint)
10772 (create_exception_master_breakpoint, get_sal_arch): Update.
10773 * block.c (block_gdbarch): Update.
10774 * annotate.c (annotate_source_line): Update.
10775
0743fc83
TT
107762020-04-17 Tom Tromey <tromey@adacore.com>
10777
10778 * auto-load.c (show_auto_load_cmd): Remove.
10779 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10780 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10781 (maintenance_print_arc_command): Remove.
10782 * tui/tui-win.c (tui_command): Remove.
10783 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10784 * tui/tui-layout.c (tui_layout_command): Remove.
10785 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10786 * python/python.c (user_set_python, user_show_python): Remove.
10787 (_initialize_python): Use add_basic_prefix_cmd,
10788 add_show_prefix_cmd.
10789 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10790 (install_gdb_commands): Use add_basic_prefix_cmd,
10791 add_show_prefix_cmd.
10792 (info_guile_command): Remove.
10793 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10794 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10795 add_show_prefix_cmd.
10796 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10797 Remove do_set and do_show parameters.
10798 * cli/cli-style.c (set_style, show_style): Remove.
10799 (_initialize_cli_style): Use add_basic_prefix_cmd,
10800 add_show_prefix_cmd.
10801 (cli_style_option::add_setshow_commands): Remove do_set and
10802 do_show parameters.
10803 (cli_style_option::add_setshow_commands): Use
10804 add_basic_prefix_cmd, add_show_prefix_cmd.
10805 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10806 (set_style_name): Remove.
10807 * cli/cli-dump.c (dump_command, append_command): Remove.
10808 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10809 (tekhex_dump_command, binary_dump_command)
10810 (binary_append_command): Remove.
10811 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10812 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10813 (init_w32_command_list): Remove; move into ...
10814 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10815 * valprint.c (set_print, show_print, set_print_raw)
10816 (show_print_raw): Remove.
10817 (_initialize_valprint): Use add_basic_prefix_cmd,
10818 add_show_prefix_cmd.
10819 * typeprint.c (set_print_type, show_print_type): Remove.
10820 (_initialize_typeprint): Use add_basic_prefix_cmd,
10821 add_show_prefix_cmd.
10822 * record.c (set_record_command, show_record_command): Remove.
10823 (_initialize_record): Use add_basic_prefix_cmd,
10824 add_show_prefix_cmd.
10825 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10826 add_show_prefix_cmd.
10827 (info_command, show_command, set_debug, show_debug): Remove.
10828 * top.h (set_history, show_history): Don't declare.
10829 * top.c (set_history, show_history): Remove.
10830 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10831 (unset_tdesc_cmd): Remove.
10832 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10833 add_show_prefix_cmd.
10834 * symtab.c (info_module_command): Remove.
10835 (_initialize_symtab): Use add_basic_prefix_cmd.
10836 * symfile.c (overlay_command): Remove.
10837 (_initialize_symfile): Use add_basic_prefix_cmd.
10838 * sparc64-tdep.c (info_adi_command): Remove.
10839 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10840 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10841 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10842 add_show_prefix_cmd.
10843 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10844 (_initialize_serial): Use add_basic_prefix_cmd,
10845 add_show_prefix_cmd.
10846 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10847 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10848 add_show_prefix_cmd.
10849 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10850 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10851 add_show_prefix_cmd.
10852 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10853 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10854 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10855 add_show_prefix_cmd.
10856 * remote.c (remote_command, set_remote_cmd): Remove.
10857 (_initialize_remote): Use add_basic_prefix_cmd.
10858 * record-full.c (set_record_full_command)
10859 (show_record_full_command): Remove.
10860 (_initialize_record_full): Use add_basic_prefix_cmd,
10861 add_show_prefix_cmd.
10862 * record-btrace.c (cmd_set_record_btrace)
10863 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10864 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10865 (cmd_show_record_btrace_pt): Remove.
10866 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10867 add_show_prefix_cmd.
10868 * ravenscar-thread.c (set_ravenscar_command)
10869 (show_ravenscar_command): Remove.
10870 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10871 add_show_prefix_cmd.
10872 * mips-tdep.c (show_mips_command, set_mips_command)
10873 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10874 add_show_prefix_cmd.
10875 * maint.c (maintenance_command, maintenance_info_command)
10876 (maintenance_check_command, maintenance_print_command)
10877 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10878 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10879 add_show_prefix_cmd.
10880 (show_per_command_cmd): Remove.
10881 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10882 Remove.
10883 (maintenance_show_test_settings_cmd): Remove.
10884 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10885 add_show_prefix_cmd.
10886 * maint-test-options.c (maintenance_test_options_command):
10887 Remove.
10888 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10889 * macrocmd.c (macro_command): Remove
10890 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10891 * language.c (set_check, show_check): Remove.
10892 (_initialize_language): Use add_basic_prefix_cmd,
10893 add_show_prefix_cmd.
10894 * infcmd.c (unset_command): Remove.
10895 (_initialize_infcmd): Use add_basic_prefix_cmd.
10896 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10897 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10898 add_show_prefix_cmd.
10899 * go32-nat.c (go32_info_dos_command): Remove.
10900 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10901 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10902 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10903 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10904 (_initialize_frame): Use add_basic_prefix_cmd,
10905 add_show_prefix_cmd.
10906 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10907 (_initialize_dcache): Use add_basic_prefix_cmd,
10908 add_show_prefix_cmd.
10909 * cp-support.c (maint_cplus_command): Remove.
10910 (_initialize_cp_support): Use add_basic_prefix_cmd.
10911 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10912 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10913 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10914 add_basic_prefix_cmd, add_show_prefix_cmd.
10915 * breakpoint.c (save_command): Remove.
10916 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10917 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10918 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10919 add_show_prefix_cmd.
10920 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10921 (set_ada_command, show_ada_command): Remove.
10922 (_initialize_ada_language): Use add_basic_prefix_cmd,
10923 add_show_prefix_cmd.
10924 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10925
3557f442
KR
109262020-04-16 Kamil Rytarowski <n54@gmx.com>
10927
10928 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10929 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10930
16197208
SM
109312020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10932
10933 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10934 warning messages.
10935
00ac85d3
SM
109362020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10937
10938 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10939 import table is not at beginning of .idata section.
10940
381ce63f
PA
109412020-04-16 Pedro Alves <palves@redhat.com>
10942
10943 * inferior.c (delete_inferior): Use delete operator directly
10944 instead of delete_program_space.
10945 * progspace.c (add_program_space): New, factored out from
10946 program_space::program_space.
10947 (remove_program_space): New, factored out from
10948 delete_program_space.
10949 (program_space::program_space): Remove intro comment. Rewrite.
10950 (program_space::~program_space): Remove intro comment. Call
10951 remove_program_space.
10952 (delete_program_space): Delete.
10953 * progspace.h (program_space::program_space): Make explicit. Move
10954 intro comment here, adjusted.
10955 (program_space::~program_space): Move intro comment here,
10956 adjusted.
10957 (delete_program_space): Remove.
10958
a010605f
TT
109592020-04-16 Tom Tromey <tromey@adacore.com>
10960
10961 * windows-nat.c (windows_nat::handle_access_violation): New
10962 function.
10963 * nat/windows-nat.h (handle_access_violation): Declare.
10964 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10965 windows-nat.c. Call handle_access_violation.
10966
efba5c23
TV
109672020-04-16 Tom de Vries <tdevries@suse.de>
10968
10969 PR symtab/25791
10970 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10971 CUs without psymtab.
10972
97ed802d
KB
109732020-04-16 Kevin Buettner <kevinb@redhat.com>
10974
10975 * python/python.c (do_start_initialization): Don't call
10976 PyEval_InitThreads for Python 3.9 and beyond.
10977
c7d64809
KR
109782020-04-15 Kamil Rytarowski <n54@gmx.com>
10979
10980 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10981 thread functions.
10982 (obsd_nat_target::wait): Likewise.
10983
ce127a96
TT
109842020-04-15 Tom Tromey <tromey@adacore.com>
10985
10986 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10987 (DEBUG_EXCEPT): Use debug_printf.
10988
99f1bc6a
AB
109892020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10990
10991 * completer.c (class completion_tracker::completion_hash_entry)
10992 <hash_name>: New member function.
10993 (completion_tracker::discard_completions): New callback to hash a
10994 completion_hash_entry, pass this to htab_create_alloc.
10995
a0e9b532
JT
109962016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10997
10998 * windows-nat.c (windows_make_so): Warn rather than stopping with
10999 an error if realpath() fails.
11000
06ca5dd4
KR
110012020-04-14 Kamil Rytarowski <n54@gmx.com>
11002
11003 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11004 (nbsd_nat_target::info_proc): Add do_status.
11005
194d088f
TV
110062020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11007 Tom de Vries <tdevries@suse.de>
11008
11009 PR symtab/25718
11010 * psympriv.h (struct partial_symtab::read_symtab)
11011 (struct partial_symtab::expand_psymtab)
11012 (struct partial_symtab::read_dependencies): Update comments.
11013 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11014 read_symtab for includer.
11015 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11016 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11017 (struct dwarf2_include_psymtab::m_readin): Remove.
11018 (struct dwarf2_include_psymtab::includer): New member function.
11019 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11020
c1a66c06
TV
110212020-04-14 Tom de Vries <tdevries@suse.de>
11022
11023 PR symtab/25720
11024 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11025 with NULL symbol_matcher and lookup_name.
11026 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11027 and lookup_name.
11028 * dwarf2/read.c (dw2_expand_symtabs_matching)
11029 (dw2_debug_names_expand_symtabs_matching): Same.
11030 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11031 Make lookup_name a pointer. Update comment.
11032 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11033 lookup_name being a pointer.
11034 * symfile.c (expand_symtabs_matching): Same.
11035 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11036 * linespec.c (iterate_over_all_matching_symtabs): Same.
11037
400b5eca
TT
110382020-04-13 Tom Tromey <tom@tromey.com>
11039
11040 * run-on-main-thread.c: Update include.
11041 * unittests/main-thread-selftests.c: Update include.
11042 * tui/tui-win.c: Update include.
11043 * tui/tui-io.c: Update include.
11044 * tui/tui-interp.c: Update include.
11045 * tui/tui-hooks.c: Update include.
11046 * top.h: Update include.
11047 * top.c: Update include.
11048 * ser-base.c: Update include.
11049 * remote.c: Update include.
11050 * remote-notif.c: Update include.
11051 * remote-fileio.c: Update include.
11052 * record-full.c: Update include.
11053 * record-btrace.c: Update include.
11054 * python/python.c: Update include.
11055 * posix-hdep.c: Update include.
11056 * mingw-hdep.c: Update include.
11057 * mi/mi-main.c: Update include.
11058 * mi/mi-interp.c: Update include.
11059 * main.c: Update include.
11060 * linux-nat.c: Update include.
11061 * interps.c: Update include.
11062 * infrun.c: Update include.
11063 * inf-loop.c: Update include.
11064 * event-top.c: Update include.
11065 * event-loop.c: Move to ../gdbsupport/.
11066 * event-loop.h: Move to ../gdbsupport/.
11067 * async-event.h: Update include.
11068 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11069
93b54c8e
TT
110702020-04-13 Tom Tromey <tom@tromey.com>
11071
11072 * tui/tui-win.c: Include async-event.h.
11073 * remote.c: Include async-event.h.
11074 * remote-notif.c: Include async-event.h.
11075 * record-full.c: Include async-event.h.
11076 * record-btrace.c: Include async-event.h.
11077 * infrun.c: Include async-event.h.
11078 * event-top.c: Include async-event.h.
11079 * event-loop.h: Move some declarations to async-event.h.
11080 * event-loop.c: Don't include ser-event.h or top.h. Move some
11081 code to async-event.c.
11082 * async-event.h: New file.
11083 * async-event.c: New file.
11084 * Makefile.in (COMMON_SFILES): Add async-event.c.
11085 (HFILES_NO_SRCDIR): Add async-event.h.
11086
c1cd3163
TT
110872020-04-13 Tom Tromey <tom@tromey.com>
11088
11089 * utils.c (flush_streams): New function.
11090 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11091
29f2bf4f
TT
110922020-04-13 Tom Tromey <tom@tromey.com>
11093
11094 * event-loop.c (handle_file_event): Use warning, not
11095 printf_unfiltered.
11096
98029d02
TT
110972020-04-13 Tom Tromey <tom@tromey.com>
11098
11099 * event-loop.c: Include <chrono>.
11100
06cc9596
TT
111012020-04-13 Tom Tromey <tom@tromey.com>
11102
11103 * gdb_select.h: Move to ../gdbsupport/.
11104 * event-loop.c: Update include path.
11105 * top.c: Update include path.
11106 * ser-base.c: Update include path.
11107 * ui-file.c: Update include path.
11108 * ser-tcp.c: Update include path.
11109 * guile/scm-ports.c: Update include path.
11110 * posix-hdep.c: Update include path.
11111 * ser-unix.c: Update include path.
11112 * gdb_usleep.c: Update include path.
11113 * mingw-hdep.c: Update include path.
11114 * inflow.c: Update include path.
11115 * infrun.c: Update include path.
11116 * event-top.c: Update include path.
11117
8ae8e197
TT
111182020-04-13 Tom Tromey <tom@tromey.com>
11119
11120 * configure: Rebuild.
11121 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11122
58cf28e8
TT
111232020-04-13 Tom Tromey <tom@tromey.com>
11124
11125 * event-loop.h (start_event_loop): Don't declare.
11126 * event-loop.c (start_event_loop): Move...
11127 * main.c (start_event_loop): ...here. Now static.
11128
b7f999ae
SDJ
111292020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11130
11131 * MAINTAINERS: Update my email address.
11132
1085dfd4
KR
111332020-04-12 Kamil Rytarowski <n54@gmx.com>
11134
11135 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11136 IP_ALL.
11137
49d1d1f5
KR
111382020-04-12 Kamil Rytarowski <n54@gmx.com>
11139
11140 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11141 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11142
b4848d2a
KR
111432020-04-12 Kamil Rytarowski <n54@gmx.com>
11144
11145 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11146 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11147
51c133d5
KR
111482020-04-12 Kamil Rytarowski <n54@gmx.com>
11149
11150 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11151
54b8cbd0
KR
111522020-04-11 Kamil Rytarowski <n54@gmx.com>
11153
11154 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11155 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11156 (nbsd_nat_target::info_proc): New functions.
11157 * nbsd-nat.c (kinfo_get_vmmap): New function.
11158 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11159 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11160 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11161 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11162 functions.
11163 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11164 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11165 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11166 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11167 (KINFO_VME_FLAG_GROWS_DOWN): New.
11168
cf83625d
AS
111692020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11170
11171 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11172 bit shift.
11173
0c4311ab
TT
111742020-04-10 Tom Tromey <tromey@adacore.com>
11175
11176 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11177
3e65b3e9
TT
111782020-04-10 Tom Tromey <tromey@adacore.com>
11179
11180 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11181 separate debug files.
11182
13302e95
HD
111832020-04-10 Hannes Domani <ssbssa@yahoo.de>
11184
11185 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11186 Move to...
11187 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11188 ... here.
11189 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11190 Check for STATUS_WX86_BREAKPOINT.
11191 (windows_nat_target::wait): Same.
11192
bdfc1e8a
TV
111932020-04-10 Tom de Vries <tdevries@suse.de>
11194
11195 PR cli/25808
11196 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11197
f4460aec
SM
111982020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11199
11200 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11201 (Write After Approval): Remove Tom de Vries.
11202
a25198bb
BE
112032020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11204
11205 revert partially:
11206 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11207
aac66a4c
SM
11208 * buildsym.c (record_line): Fix undefined behavior and preserve
11209 lines at eof.
a25198bb 11210
206c98a6
KR
112112020-04-09 Kamil Rytarowski <n54@gmx.com>
11212
11213 * auxv.h (svr4_auxv_parse): New.
11214 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11215 and generic_auxv_parse.
11216 (svr4_auxv_parse): Add.
11217 * obsd-tdep.c: Include "auxv.h".
11218 (obsd_auxv_parse): Remove.
11219 (obsd_init_abi): Remove comment.
11220 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11221 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11222 * nbsd-tdep.c: Include "auxv.h".
11223 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11224
71fbdbaf
TT
112252020-04-08 Tom Tromey <tromey@adacore.com>
11226
11227 * nat/windows-nat.h (last_wait_event): Don't declare.
11228 (wait_for_debug_event): Update comment.
11229 * nat/windows-nat.c (last_wait_event): Now static.
11230
2c1d95e8
TT
112312020-04-08 Tom Tromey <tromey@adacore.com>
11232
11233 * windows-nat.c (wait_for_debug_event): Move to
11234 nat/windows-nat.c.
11235 * nat/windows-nat.h (wait_for_debug_event): Declare.
11236 * nat/windows-nat.c (wait_for_debug_event): Move from
11237 windows-nat.c. No longer static.
11238
d2977bc4
TT
112392020-04-08 Tom Tromey <tromey@adacore.com>
11240
11241 * windows-nat.c (get_windows_debug_event): Use
11242 fetch_pending_stop.
11243 * nat/windows-nat.h (fetch_pending_stop): Declare.
11244 * nat/windows-nat.c (fetch_pending_stop): New function.
11245
e758e19c
TT
112462020-04-08 Tom Tromey <tromey@adacore.com>
11247
11248 * windows-nat.c (windows_continue): Use matching_pending_stop and
11249 continue_last_debug_event.
11250 * nat/windows-nat.h (matching_pending_stop)
11251 (continue_last_debug_event): Declare.
11252 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11253 (matching_pending_stop, continue_last_debug_event): New
11254 functions.
11255
8d30e395
TT
112562020-04-08 Tom Tromey <tromey@adacore.com>
11257
11258 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11259 (handle_exception_result): Move to nat/windows-nat.h.
11260 (DEBUG_EXCEPTION_SIMPLE): Remove.
11261 (windows_nat::handle_ms_vc_exception): New function.
11262 (handle_exception): Move to nat/windows-nat.c.
11263 (get_windows_debug_event): Update.
11264 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11265 nat/windows-nat.c.
11266 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11267 (handle_exception_result): Move from windows-nat.c.
11268 (handle_exception): Declare.
11269 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11270 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11271 windows-nat.c.
11272
29de418d
TT
112732020-04-08 Tom Tromey <tromey@adacore.com>
11274
11275 * windows-nat.c (exception_count, event_count): Remove.
11276 (handle_exception, get_windows_debug_event)
11277 (do_initial_windows_stuff): Update.
11278
a816ba18
TT
112792020-04-08 Tom Tromey <tromey@adacore.com>
11280
11281 * windows-nat.c (windows_nat::handle_load_dll)
11282 (windows_nat::handle_unload_dll): Rename. No longer static.
11283 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11284 Declare.
11285
a00caa12
TT
112862020-04-08 Tom Tromey <tromey@adacore.com>
11287
11288 * complaints.h (stop_whining): Declare at top-level.
11289 (complaint): Don't declare stop_whining.
11290
d41b524f
TT
112912020-04-08 Tom Tromey <tromey@adacore.com>
11292
11293 * windows-nat.c (windows_nat::handle_output_debug_string):
11294 Rename. No longer static.
11295 * nat/windows-nat.h (handle_output_debug_string): Declare.
11296
3c76026d
TT
112972020-04-08 Tom Tromey <tromey@adacore.com>
11298
11299 * windows-nat.c (current_process_handle, current_process_id)
11300 (main_thread_id, last_sig, current_event, last_wait_event)
11301 (current_windows_thread, desired_stop_thread_id, pending_stops)
11302 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11303 (display_selectors, fake_create_process)
11304 (get_windows_debug_event): Update.
11305 * nat/windows-nat.h (current_process_handle, current_process_id)
11306 (main_thread_id, last_sig, current_event, last_wait_event)
11307 (current_windows_thread, desired_stop_thread_id, pending_stops)
11308 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11309 * nat/windows-nat.c (current_process_handle, current_process_id)
11310 (main_thread_id, last_sig, current_event, last_wait_event)
11311 (current_windows_thread, desired_stop_thread_id, pending_stops)
11312 (siginfo_er): New globals. Move from windows-nat.c.
11313
9d8679cc
TT
113142020-04-08 Tom Tromey <tromey@adacore.com>
11315
11316 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11317 (handle_load_dll): Update.
11318 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11319
28688adf
TT
113202020-04-08 Tom Tromey <tromey@adacore.com>
11321
11322 * windows-nat.c (enum thread_disposition_type): Move to
11323 nat/windows-nat.h.
11324 (windows_nat::thread_rec): Rename from thread_rec. No longer
11325 static.
11326 (windows_add_thread, windows_nat_target::fetch_registers)
11327 (windows_nat_target::store_registers, handle_exception)
11328 (windows_nat_target::resume, get_windows_debug_event)
11329 (windows_nat_target::get_tib_address)
11330 (windows_nat_target::thread_name)
11331 (windows_nat_target::thread_alive): Update.
11332 * nat/windows-nat.h (enum thread_disposition_type): Move from
11333 windows-nat.c.
11334 (thread_rec): Declare.
11335
4834dad0
TT
113362020-04-08 Tom Tromey <tromey@adacore.com>
11337
11338 * windows-nat.c: Add "using namespace".
11339 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11340 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11341
65bafd5b
TT
113422020-04-08 Tom Tromey <tromey@adacore.com>
11343
11344 * nat/windows-nat.h (struct windows_thread_info): Declare
11345 destructor.
11346 * nat/windows-nat.c (~windows_thread_info): New.
11347
0a4afda3
TT
113482020-04-08 Tom Tromey <tromey@adacore.com>
11349
11350 PR gdb/22992
11351 * windows-nat.c (current_event): Update comment.
11352 (last_wait_event, desired_stop_thread_id): New globals.
11353 (struct pending_stop): New.
11354 (pending_stops): New global.
11355 (windows_nat_target) <stopped_by_sw_breakpoint>
11356 <supports_stopped_by_sw_breakpoint>: New methods.
11357 (windows_fetch_one_register): Add assertions. Adjust PC.
11358 (windows_continue): Handle pending stops. Suspend other threads
11359 when stepping. Use last_wait_event
11360 (wait_for_debug_event): New function.
11361 (get_windows_debug_event): Use wait_for_debug_event. Handle
11362 pending stops. Queue spurious stops.
11363 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11364 (windows_nat_target::kill): Use wait_for_debug_event.
11365 * nat/windows-nat.h (struct windows_thread_info)
11366 <stopped_at_software_breakpoint>: New field.
11367 * nat/windows-nat.c (windows_thread_info::resume): Clear
11368 stopped_at_software_breakpoint.
11369
8e61ebec
TT
113702020-04-08 Tom Tromey <tromey@adacore.com>
11371
11372 * windows-nat.c (enum thread_disposition_type): New.
11373 (thread_rec): Replace "get_context" parameter with "disposition";
11374 change type.
11375 (windows_add_thread, windows_nat_target::fetch_registers)
11376 (windows_nat_target::store_registers, handle_exception)
11377 (windows_nat_target::resume, get_windows_debug_event)
11378 (windows_nat_target::get_tib_address)
11379 (windows_nat_target::thread_name)
11380 (windows_nat_target::thread_alive): Update.
11381
98a03287
TT
113822020-04-08 Tom Tromey <tromey@adacore.com>
11383
11384 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11385 (windows_continue): Use windows_continue::resume.
11386 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11387 resume>: Declare new methods.
11388 * nat/windows-nat.c: New file.
11389 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11390
7c7411bc
TT
113912020-04-08 Tom Tromey <tromey@adacore.com>
11392
11393 * windows-nat.c (windows_add_thread, windows_delete_thread)
11394 (windows_nat_target::fetch_registers)
11395 (windows_nat_target::store_registers, fake_create_process)
11396 (windows_nat_target::resume, windows_nat_target::resume)
11397 (get_windows_debug_event, windows_nat_target::wait)
11398 (windows_nat_target::pid_to_str)
11399 (windows_nat_target::get_tib_address)
11400 (windows_nat_target::get_ada_task_ptid)
11401 (windows_nat_target::thread_name)
11402 (windows_nat_target::thread_alive): Use lwp, not tid.
11403
2950fdf7
TT
114042020-04-08 Tom Tromey <tromey@adacore.com>
11405
11406 * windows-nat.c (handle_exception)
11407 (windows_nat_target::thread_name): Update.
11408 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11409 <name>: Now unique_xmalloc_ptr.
11410
62fe396b
TT
114112020-04-08 Tom Tromey <tromey@adacore.com>
11412
11413 * windows-nat.c (thread_rec)
11414 (windows_nat_target::fetch_registers): Update.
11415 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11416 Update comment.
11417 <debug_registers_changed, reload_context>: Now bool.
11418
e9534bd2
TT
114192020-04-08 Tom Tromey <tromey@adacore.com>
11420
11421 * windows-nat.c (windows_add_thread): Use new.
11422 (windows_init_thread_list, windows_delete_thread): Use delete.
11423 (get_windows_debug_event): Update.
11424 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11425 destructor, and initializers.
11426
ae1f8880
TT
114272020-04-08 Tom Tromey <tromey@adacore.com>
11428
11429 * windows-nat.c (struct windows_thread_info): Remove.
11430 * nat/windows-nat.h: New file.
11431
55a1e039
TT
114322020-04-08 Tom Tromey <tromey@adacore.com>
11433
11434 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11435 (thread_rec, windows_add_thread, windows_delete_thread)
11436 (windows_continue): Update.
11437
93366324
TT
114382020-04-08 Tom Tromey <tromey@adacore.com>
11439
11440 * windows-nat.c (struct windows_thread_info): Remove typedef.
11441 (thread_head): Remove.
11442 (thread_list): New global.
11443 (thread_rec, windows_add_thread, windows_init_thread_list)
11444 (windows_delete_thread, windows_continue): Update.
11445
0f2265e2
SM
114462020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11447
11448 * windows-tdep.h (windows_init_abi): Add comment.
11449 (cygwin_init_abi): New declaration.
11450 * windows-tdep.c: Split signal enumeration in two, one for
11451 Windows and one for Cygwin.
11452 (windows_gdb_signal_to_target): Only deal with signal of the
11453 Windows OS ABI.
11454 (cygwin_gdb_signal_to_target): New function.
11455 (windows_init_abi): Rename to windows_init_abi_common, don't set
11456 gdb_signal_to_target gdbarch method. Add new new function with
11457 this name.
11458 (cygwin_init_abi): New function.
11459 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11460 comment. Don't call windows_init_abi.
11461 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11462 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11463 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11464 i386_windows_init_abi_common, don't call windows_init_abi. Add
11465 a new function of this name.
11466 (i386_cygwin_init_abi): New function.
11467 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11468 OS ABI Cygwin.
11469
3810f182
SM
114702020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11471
11472 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11473 parameter.c.
11474 (dwarf2_read_gdb_index): Update.
11475
063f8e80
KR
114762020-04-07 Kamil Rytarowski <n54@gmx.com>
11477
11478 * nbsd-tdep.c: Include "objfiles.h".
11479 (nbsd_skip_solib_resolver): New.
11480 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11481
85a9510c 114822020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11483
11484 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11485 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11486 with DW_LLE_base_addressx are being emitted in DWARFv5.
11487 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11488 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11489 unsigned integer.
11490
9fc3eaae 114912020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11492
11493 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11494 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11495 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11496 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11497 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11498 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11499 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11500
11501
41144253 115022020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11503
11504 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11505 (read_loclist_index): New function definition.
11506 (lookup_loclist_base): New function definition.
11507 (read_loclist_header): New function definition.
11508 (dwarf2_cu): Add loclist_base and loclist_header field.
11509 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11510 (read_full_die_1): Read the value of DW_AT_loclists_base.
11511 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11512 (read_attribute_value): Handle DW_FORM_loclistx.
11513 (skip_one_die): Handle DW_FORM_loclistx.
11514 (loclist_header): New structure declaration.
11515 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11516
9f4e76a4
SM
115172020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11518
11519 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11520 constructor. Remove `addr` parameter from other constructor and
11521 add `per_cu` parameter.
11522 * dwarf2/read.c (create_partial_symtab): Update.
11523
25c11aca
TV
115242020-04-07 Tom de Vries <tdevries@suse.de>
11525
11526 PR symtab/25796
11527 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11528 (partial_die_info::fixup): Inherit has_const_value.
11529
5707e24b
TV
115302020-04-07 Tom de Vries <tdevries@suse.de>
11531
11532 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11533 symbols without address.
11534
05f00e22
KR
115352020-04-06 Kamil Rytarowski <n54@gmx.com>
11536
11537 * nbsd-nat.h (struct thread_info): Add forward declaration.
11538 (nbsd_nat_target::thread_alive): Add.
11539 (nbsd_nat_target::thread_name): Likewise.
11540 (nbsd_nat_target::update_thread_list): Likewise.
11541 (update_thread_list::post_attach): Likewise.
11542 (post_attach::pid_to_str): Likewise.
11543 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11544 (nbsd_thread_lister): Add.
11545 (nbsd_nat_target::thread_alive): Likewise.
11546 (nbsd_nat_target::thread_name): Likewise.
11547 (nbsd_add_threads): Likewise.
11548 (update_thread_list::post_attach): Likewise.
11549 (nbsd_nat_target::update_thread_list): Likewise.
11550 (post_attach::pid_to_str): Likewise.
11551
6ee448cc
TT
115522020-04-06 Tom Tromey <tromey@adacore.com>
11553
11554 * ada-valprint.c (print_variant_part): Extract the variant field.
11555 (print_field_values): Use the field as the outer value when
11556 recursing.
11557
dea34e8c
TT
115582020-04-06 Tom Tromey <tromey@adacore.com>
11559
11560 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11561 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11562 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11563 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11564 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11565
93689ce9
TT
115662020-04-06 Tom Tromey <tromey@adacore.com>
11567
11568 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11569 TYPE_CODE_ERROR.
11570
79743962
KR
115712020-04-06 Kamil Rytarowski <n54@gmx.com>
11572
11573 * nbsd-tdep.c: Include "gdbarch.h".
11574 Define enum with NetBSD signal numbers.
11575 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11576 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11577 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11578 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11579 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11580 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11581 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11582 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11583 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11584 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11585 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11586 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11587
9e7c9a03
HD
115882020-04-03 Hannes Domani <ssbssa@yahoo.de>
11589
11590 PR gdb/25325
11591 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11592
d9e49b61
TT
115932020-04-03 Tom Tromey <tromey@adacore.com>
11594
11595 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11596 Read constant block.
11597
e0fc5c3f
SM
115982020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11599
11600 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11601 (gdb_bfd_get_full_section_contents): New declaration.
11602 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11603 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11604 gdb_bfd_get_full_section_contents.
11605
e2ff18a0
SM
116062020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11607
11608 * exec.c (build_section_table): Replace internal_error with
11609 gdb_assert.
11610 (section_table_xfer_memory_partial): Likewise.
11611 * mdebugread.c (parse_partial_symbols): Likewise.
11612 * psymtab.c (lookup_partial_symbol): Likewise.
11613 * utils.c (wrap_here): Likewise.
11614
0830d301
TT
116152020-04-02 Tom Tromey <tromey@adacore.com>
11616
11617 * f-lang.c (build_fortran_types): Use arch_type to initialize
11618 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11619
e7da7f8f
TT
116202020-04-02 Tom Tromey <tromey@adacore.com>
11621
11622 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11623 of attributes.
11624
c90d28ac
AB
116252020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11626 Bernd Edlinger <bernd.edlinger@hotmail.de>
11627 Tom Tromey <tromey@adacore.com>
11628
11629 * buildsym.c (buildsym_compunit::record_line): Remove
11630 deduplication code.
11631
1aa98955
TV
116322020-04-02 Tom de Vries <tdevries@suse.de>
11633
11634 PR ada/24671
11635 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11636
d3214198
TV
116372020-04-02 Tom de Vries <tdevries@suse.de>
11638
11639 * dwarf2/read.c (dwarf2_gdb_index_functions,
11640 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11641 NULL.
11642 * psymtab.c (psym_lookup_global_symbol_language): New function.
11643 (psym_functions): Init psym_lookup_global_symbol_language with
11644 psym_lookup_global_symbol_language.
11645 * symfile-debug.c (debug_sym_quick_functions): Init
11646 lookup_global_symbol_language with NULL.
11647 * symfile.c (set_initial_language): Remove fixme comment.
11648 * symfile.h (struct quick_symbol_functions): Add
11649 lookup_global_symbol_language.
11650 * symtab.c (find_quick_global_symbol_language): New function.
11651 (find_main_name): Use find_quick_global_symbol_language.
11652
2836752f
SM
116532020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11654
11655 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11656
64dc2d4b
BE
116572020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11658
11659 * buildsym.c (record_line): Fix undefined behavior and preserve
11660 lines at eof.
11661
bbe3dc41
BE
116622020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11663
11664 * buildsym.c (record_line): Fix the resizing condition.
11665
6b4a335b
TT
116662020-04-01 Tom Tromey <tom@tromey.com>
11667
11668 * value.h (value_literal_complex): Add comment.
11669 * valops.c (value_literal_complex): Refer to value.h.
11670
3638a098
TT
116712020-04-01 Tom Tromey <tom@tromey.com>
11672
11673 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11674 (scalar_type): New rule, from typebase.
11675 (typebase): Use scalar_type. Recognize complex types.
11676 (field_name): Handle FLOAT_KEYWORD.
11677 (ident_tokens): Add _Complex and __complex__.
11678
c34e8714
TT
116792020-04-01 Tom Tromey <tom@tromey.com>
11680
11681 PR exp/25299:
11682 * valarith.c (promotion_type, complex_binop): New functions.
11683 (scalar_binop): Handle complex numbers. Use promotion_type.
11684 (value_pos, value_neg, value_complement): Handle complex numbers.
11685
fa649bb7
TT
116862020-04-01 Tom Tromey <tom@tromey.com>
11687
11688 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11689 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11690 (parse_number): Handle complex numbers.
11691
981c08ce
TT
116922020-04-01 Tom Tromey <tom@tromey.com>
11693
11694 * c-valprint.c (c_decorations): Change complex suffix to "i".
11695
4c99290d
TT
116962020-04-01 Tom Tromey <tom@tromey.com>
11697
11698 * valprint.c (generic_value_print_complex): Use accessors.
11699 * value.h (value_real_part, value_imaginary_part): Declare.
11700 * valops.c (value_real_part, value_imaginary_part): New
11701 functions.
11702 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11703
5b930b45
TT
117042020-04-01 Tom Tromey <tom@tromey.com>
11705
11706 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11707 (read_range_type): Update.
11708 * mdebugread.c (basic_type): Update.
11709 * go-lang.c (build_go_types): Use init_complex_type.
11710 * gdbtypes.h (struct main_type) <complex_type>: New member.
11711 (init_complex_type): Update.
11712 (arch_complex_type): Don't declare.
11713 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11714 Make name if none given. Use alloc_type_copy. Look for cached
11715 complex type.
11716 (arch_complex_type): Remove.
11717 (gdbtypes_post_init): Use init_complex_type.
11718 * f-lang.c (build_fortran_types): Use init_complex_type.
11719 * dwarf2/read.c (read_base_type): Update.
11720 * d-lang.c (build_d_types): Use init_complex_type.
11721 * ctfread.c (read_base_type): Update.
11722
53cccef1
TBA
117232020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11724
11725 * infrun.c (stop_all_threads): Update assertion, plus when
11726 stopping threads, take into account that we might be trying
11727 to stop an all-stop target.
11728 (stop_waiting): Call 'stop_all_threads' if there exists a
11729 non-stop target.
11730
a0714d30
TBA
117312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11732
11733 * target.h (exists_non_stop_target): New function declaration.
11734 * target.c (exists_non_stop_target): New function.
11735
60e22c1e
HD
117362020-04-01 Hannes Domani <ssbssa@yahoo.de>
11737
11738 PR gdb/24789
11739 * eval.c (is_integral_or_integral_reference): New function.
11740 (evaluate_subexp_standard): Allow integer references in
11741 pointer arithmetic.
11742
e139a727
TBA
117432020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11744
11745 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11746 check for no ptid in the stop reply when the target is non-stop.
11747
e0802d59
TT
117482020-04-01 Tom Tromey <tromey@adacore.com>
11749
11750 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11751 "name" parameter to rvalue reference. Initialize m_name_holder.
11752 <lookup_name_info>: New overloads.
11753 <name>: Return gdb::string_view.
11754 <c_str>: New method.
11755 <make_ignore_params>: Update.
11756 <search_name_hash>: Update.
11757 <language_lookup_name>: Return const char *.
11758 <m_name>: Change type.
11759 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11760 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11761 (lookup_name_info::match_any): Update.
11762 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11763 Update.
11764 * minsyms.c (linkage_name_str): Update.
11765 * language.c (default_symbol_name_matcher): Update.
11766 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11767 Update.
11768 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11769 (ada_lookup_name_info::ada_lookup_name_info): Update.
11770 (literal_symbol_name_matcher): Update.
11771
8c072cb6
TT
117722020-04-01 Tom Tromey <tromey@adacore.com>
11773
11774 * psymtab.c (psymtab_search_name): Remove function.
11775 (psym_lookup_symbol): Create search name and lookup name here.
11776 (lookup_partial_symbol): Remove "name" parameter; add
11777 lookup_name.
11778 (psym_expand_symtabs_for_function): Update.
11779
6f29a534
TT
117802020-03-31 Joel Jones <joelkevinjones@gmail.com>
11781
11782 PR tui/25597:
11783 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11784
af62665e
TT
117852020-03-31 Tom Tromey <tromey@adacore.com>
11786
11787 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11788 memcpy.
11789
d1a89da5
NC
117902020-03-30 Nelson Chu <nelson.chu@sifive.com>
11791
11792 * features/riscv/32bit-csr.xml: Regenerated.
11793 * features/riscv/64bit-csr.xml: Regenerated.
11794
d8af9068
TT
117952020-03-30 Tom Tromey <tromey@adacore.com>
11796
11797 * ada-valprint.c (print_variant_part): Update.
11798 * ada-lang.h (ada_which_variant_applies): Update.
11799 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11800 outer_valaddr parameters; replace with "outer" value parameter.
11801 (to_fixed_variant_branch_type): Update.
11802
227c0bf4
PFC
118032020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11804
11805 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11806 <list>. Remove inclusion of observable.h.
11807 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11808 (struct arch_lwp_info): New struct.
11809 (class ppc_linux_dreg_interface): New class.
11810 (struct ppc_linux_process_info): New struct.
11811 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11812 <low_new_clone, low_forget_process, low_prepare_to_resume>
11813 <copy_thread_dreg_state, mark_thread_stale>
11814 <mark_debug_registers_changed, register_hw_breakpoint>
11815 <clear_hw_breakpoint, register_wp, clear_wp>
11816 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11817 <num_memory_accesses, get_trigger_type>
11818 <create_watchpoint_request, hwdebug_point_cmp>
11819 <init_arch_lwp_info, get_arch_lwp_info>
11820 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11821 methods.
11822 <struct ptid_hash>: New inner struct.
11823 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11824 members.
11825 (saved_dabr_value, hwdebug_info, max_slots_number)
11826 (struct hw_break_tuple, struct thread_points, ppc_threads)
11827 (have_ptrace_hwdebug_interface)
11828 (hwdebug_find_thread_points_by_tid)
11829 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11830 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11831 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11832 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11833 use m_dreg_interface.
11834 (hwdebug_point_cmp): Change to...
11835 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11836 reference arguments instead of pointers.
11837 (ppc_linux_nat_target::ranged_break_num_registers): Use
11838 m_dreg_interface.
11839 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11840 m_dreg_interface. Call register_hw_breakpoint.
11841 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11842 m_dreg_interface. Call clear_hw_breakpoint.
11843 (get_trigger_type): Change to...
11844 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11845 comment.
11846 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11847 use m_dreg_interface. Call register_hw_breakpoint.
11848 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11849 use m_dreg_interface. Call clear_hw_breakpoint.
11850 (can_use_watchpoint_cond_accel): Change to...
11851 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11852 method. Update comment, use m_dreg_interface and
11853 m_process_info.
11854 (calculate_dvc): Change to...
11855 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11856 m_dreg_interface.
11857 (num_memory_accesses): Change to...
11858 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11859 (check_condition): Change to...
11860 (ppc_linux_nat_target::check_condition): ...this method.
11861 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11862 comment, use m_dreg_interface.
11863 (create_watchpoint_request): Change to...
11864 (ppc_linux_nat_target::create_watchpoint_request): ...this
11865 method. Use m_dreg_interface.
11866 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11867 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11868 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11869 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11870 (ppc_linux_nat_target::low_forget_process)
11871 (ppc_linux_nat_target::low_new_fork)
11872 (ppc_linux_nat_target::low_new_clone)
11873 (ppc_linux_nat_target::low_delete_thread)
11874 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11875 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11876 only call mark_thread_stale.
11877 (ppc_linux_thread_exit): Remove.
11878 (ppc_linux_nat_target::stopped_data_address): Change to...
11879 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11880 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11881 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11882 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11883 comment. Call low_stopped_data_address.
11884 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11885 m_dreg_interface.
11886 (ppc_linux_nat_target::masked_watch_num_registers): Use
11887 m_dreg_interface.
11888 (ppc_linux_nat_target::copy_thread_dreg_state)
11889 (ppc_linux_nat_target::mark_thread_stale)
11890 (ppc_linux_nat_target::mark_debug_registers_changed)
11891 (ppc_linux_nat_target::register_hw_breakpoint)
11892 (ppc_linux_nat_target::clear_hw_breakpoint)
11893 (ppc_linux_nat_target::register_wp)
11894 (ppc_linux_nat_target::clear_wp)
11895 (ppc_linux_nat_target::init_arch_lwp_info)
11896 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11897 (_initialize_ppc_linux_nat): Remove observer callback.
11898
4db10d8f
PFC
118992020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11900
11901 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11902 (ppc_linux_nat_target::auxv_parse)
11903 (ppc_linux_nat_target::read_description)
11904 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11905 Move up.
11906
1310c1b0
PFC
119072020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11908
11909 * linux-nat.h (low_new_clone): New method.
11910 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11911
69b037c3
SM
119122020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11913
11914 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11915 (dbx_expand_psymtab): ... this.
11916 (start_psymtab): Update.
11917 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11918 (mdebug_expand_psymtab): ... this.
11919 (parse_partial_symbols): Update.
11920 (new_psymtab): Update.
11921 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11922 (xcoff_expand_psymtab): ... this.
11923 (xcoff_start_psymtab): Update.
11924
48993951
SM
119252020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11926
11927 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11928 <expand_dependencies>: ... this.
11929 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11930 (partial_symtab::expand_dependencies): ... this.
11931 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11932 Update.
11933 (dwarf2_psymtab::expand_psymtab): Update.
11934 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11935 * mdebugread.c (psymtab_to_symtab_1): Update.
11936 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11937
3ad83046
SM
119382020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11939
11940 * psympriv.h (discard_psymtab): Remove.
11941 * dbxread.c (dbx_end_psymtab): Update.
11942 * xcoffread.c (xcoff_end_psymtab): Update.
11943
4d1b9ab6
TT
119442020-03-28 Tom Tromey <tom@tromey.com>
11945
11946 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11947 comment.
11948
f1749218
TT
119492020-03-28 Tom Tromey <tom@tromey.com>
11950
11951 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11952
ebea7626
HD
119532020-03-27 Hannes Domani <ssbssa@yahoo.de>
11954
11955 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11956
a879b4d5
JB
119572020-03-26 John Baldwin <jhb@FreeBSD.org>
11958
11959 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11960
0826b30a
TT
119612020-03-26 Tom Tromey <tom@tromey.com>
11962
11963 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11964 (mark_common_block_symbol_computed, read_tag_string_type)
11965 (attr_to_dynamic_prop, read_subrange_type): Update.
11966 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11967 to be methods on struct attribute.
11968 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11969 (read_call_site_scope, partial_die_info::read)
11970 (partial_die_info::read, lookup_die_type, follow_die_ref):
11971 Update.
11972 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11973 from dwarf2_get_ref_die_offset.
11974 (attribute::constant_value): New method, from
11975 dwarf2_get_attr_constant_value.
11976 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11977 Declare method.
11978 <constant_value>: New method.
11979
2b2558bf
TT
119802020-03-26 Tom Tromey <tom@tromey.com>
11981
11982 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11983 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11984 (dwarf_type_encoding_name): Move to stringify.c.
11985 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11986 * dwarf2/stringify.c: New file.
11987 * dwarf2/stringify.h: New file.
11988
eeb64781
TT
119892020-03-26 Tom Tromey <tom@tromey.com>
11990
11991 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11992 Rewrite.
11993
a39fdb41
TT
119942020-03-26 Tom Tromey <tom@tromey.com>
11995
11996 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11997 methods.
11998 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11999 (lookup_ranges_base): Likewise.
12000 (read_cutu_die_from_dwo, read_full_die_1): Update.
12001
436c571c
TT
120022020-03-26 Tom Tromey <tom@tromey.com>
12003
12004 * dwarf2/read.c (read_import_statement, read_file_scope)
12005 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12006 (read_lexical_block_scope, read_call_site_scope)
12007 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12008 (handle_struct_member_die, process_structure_scope)
12009 (update_enumeration_type_from_children)
12010 (process_enumeration_scope, read_array_type, read_common_block)
12011 (read_namespace, read_module, read_subroutine_type): Update.
12012 (sibling_die): Remove.
12013
052c8bb8
TT
120142020-03-26 Tom Tromey <tom@tromey.com>
12015
12016 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12017 (build_type_psymtabs_reader, read_structure_type)
12018 (read_enumeration_type, read_full_die_1): Update.
12019 (dwarf2_attr_no_follow): Move to die.h.
12020 * dwarf2/die.h (struct die_info) <attr>: New method.
12021
2b24b6e4
TT
120222020-03-26 Tom Tromey <tom@tromey.com>
12023
12024 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12025 <base_address>: Now an optional.
12026 (dwarf2_find_base_address, dwarf2_rnglists_process)
12027 (dwarf2_ranges_process, fill_in_loclist_baton)
12028 (dwarf2_symbol_mark_computed): Update.
12029
c2d50fd0
TT
120302020-03-26 Tom Tromey <tom@tromey.com>
12031
12032 * dwarf2/read.c (struct die_info): Move to die.h.
12033 * dwarf2/die.h: New file.
12034
0df7ad3a
TT
120352020-03-26 Tom Tromey <tom@tromey.com>
12036
12037 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12038 * dwarf2/read.c
12039 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12040 Move to line-header.c.
12041 (read_checked_initial_length_and_offset, read_formatted_entries):
12042 Likewise.
12043 (dwarf_decode_line_header): Split into two.
12044 * dwarf2/line-header.c
12045 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12046 Move from read.c.
12047 (read_checked_initial_length_and_offset, read_formatted_entries):
12048 Likewise.
12049 (dwarf_decode_line_header): New function, split from read.c.
12050
86c0bb4c
TT
120512020-03-26 Tom Tromey <tom@tromey.com>
12052
12053 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12054 Declare method.
12055 * dwarf2/read.c (read_attribute_value): Update.
12056 (dwarf2_per_objfile::read_line_string): Rename from
12057 read_indirect_line_string.
12058 (read_formatted_entries): Update.
12059
2ef46c2f
TT
120602020-03-26 Tom Tromey <tom@tromey.com>
12061
12062 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12063 variable.
12064
4f9c1eda
TT
120652020-03-26 Tom Tromey <tom@tromey.com>
12066
12067 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12068 const.
12069 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12070 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12071 parameter const.
12072
5a0e026f
TT
120732020-03-26 Tom Tromey <tom@tromey.com>
12074
12075 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12076 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12077 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12078 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12079
8844c11b
TT
120802020-03-26 Tom Tromey <tom@tromey.com>
12081
12082 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12083 file_names_size, file_full_name, file_file_name>: Use const.
12084 <file_name_at, file_names>: Add const overload.
12085 * dwarf2/line-header.c (line_header::file_file_name)
12086 (line_header::file_full_name): Update.
12087
c90ec28a
TT
120882020-03-26 Tom Tromey <tom@tromey.com>
12089
12090 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12091 (macro_start_file, consume_improper_spaces)
12092 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12093 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12094 (dwarf_decode_macros): Move to macro.c.
12095 * dwarf2/macro.c: New file.
12096 * dwarf2/macro.h: New file.
12097 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12098
4f44ae6c
TT
120992020-03-26 Tom Tromey <tom@tromey.com>
12100
12101 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12102 method.
12103 * dwarf2/section.c: New method. From
12104 read_indirect_string_at_offset_from.
12105 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12106 (read_indirect_string_at_offset_from): Move to section.c.
12107 (read_indirect_string_at_offset): Rewrite.
12108 (read_indirect_line_string_at_offset): Remove.
12109 (read_indirect_string, read_indirect_line_string)
12110 (dwarf_decode_macro_bytes): Update.
12111
a0194fa8
TT
121122020-03-26 Tom Tromey <tom@tromey.com>
12113
12114 * dwarf2/section.h (struct dwarf2_section_info)
12115 <overload_complaint>: Declare.
12116 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12117 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12118 Rename from dwarf2_section_buffer_overflow_complaint.
12119 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12120 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12121
3d27bbdb
TT
121222020-03-26 Tom Tromey <tom@tromey.com>
12123
12124 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12125 Declare.
12126 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12127 Move from read.c.
12128 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12129 to section.c.
12130
9eac9650
TT
121312020-03-26 Tom Tromey <tom@tromey.com>
12132
12133 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12134
bf80d710
TT
121352020-03-26 Tom Tromey <tom@tromey.com>
12136
12137 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12138 "builder".
12139 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12140 parameter.
12141 (dwarf_decode_macros): Update.
12142
0314b390
TT
121432020-03-26 Tom Tromey <tom@tromey.com>
12144
12145 * dwarf2/read.c (read_attribute_value): Update.
12146 (read_indirect_string_from_dwz): Move to dwz.c; change into
12147 method.
12148 (dwarf_decode_macro_bytes): Update.
12149 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12150 * dwarf2/dwz.c: New file.
12151 * Makefile.in (COMMON_SFILES): Add dwz.c.
12152
9fda78b6
TT
121532020-03-26 Tom Tromey <tom@tromey.com>
12154
12155 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12156 * dwarf2/read.c: Add include.
12157 * dwarf2/index-write.c: Add include.
12158 * dwarf2/index-cache.c: Add include.
12159 * dwarf2/dwz.h: New file.
12160
33aa3c10
TT
121612020-03-25 Tom Tromey <tom@tromey.com>
12162
12163 * compile/compile-object-load.c (get_out_value_type): Mention
12164 correct symbol name in error message.
12165
d503b685
HD
121662020-03-25 Hannes Domani <ssbssa@yahoo.de>
12167
12168 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12169
7b1eff95
TV
121702020-03-25 Tom de Vries <tdevries@suse.de>
12171
12172 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12173 * symmisc.c (dump_symtab_1): Print user and includes fields.
12174 (maintenance_info_symtabs): Same.
12175
dd895392
AB
121762020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12177
12178 PR gdb/25534
12179 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12180 (riscv_regcache_cooked_write): New function.
12181 (riscv_push_dummy_call): Use new function.
12182 (riscv_return_value): Likewise.
12183
5ab2fbf1
SM
121842020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12185
12186 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12187 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12188 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12189 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12190 * infrun.c (follow_fork): Likewise.
12191 (follow_fork_inferior): Likewise.
12192 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12193 * linux-nat.h (class linux_nat_target): Likewise.
12194 * remote.c (class remote_target) <follow_fork>: Likewise.
12195 (remote_target::follow_fork): Likewise.
12196 * target-delegates.c: Re-generate.
12197 * target.c (default_follow_fork): Likewise.
12198 (target_follow_fork): Likewise.
12199 * target.h (struct target_ops) <follow_fork>: Likewise.
12200 (target_follow_fork): Likewise.
12201
a64fafb5
TV
122022020-03-24 Tom de Vries <tdevries@suse.de>
12203
12204 * psymtab.c (maintenance_info_psymtabs): Print user field.
12205
fe26d3a3
TT
122062020-03-20 Tom Tromey <tromey@adacore.com>
12207
12208 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12209 const.
12210 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12211 const.
12212
c884cc46
SM
122132020-03-20 Simon Marchi <simon.marchi@efficios.com>
12214
12215 * ptrace.m4: Don't check for ptrace declaration.
12216 * config.in: Re-generate.
12217 * configure: Re-generate.
12218 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12219 not defined.
12220
1ff700c2
KR
122212020-03-20 Kamil Rytarowski <n54@gmx.com>
12222
12223 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12224 `PTRACE_TYPE_RET'.
12225 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12226 * sparc-nat.c (gdb_ptrace): Likewise.
12227 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12228
f7d4f0b1
TT
122292020-03-20 Tom Tromey <tromey@adacore.com>
12230
12231 * c-exp.y (lex_one_token): Fix assert.
12232
f67210ff
TT
122332020-03-20 Tom Tromey <tromey@adacore.com>
12234
12235 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12236 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12237 strncpy call.
12238
1773be9e
TT
122392020-03-20 Tom Tromey <tromey@adacore.com>
12240
12241 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12242
70304be9
TT
122432020-03-20 Tom Tromey <tromey@adacore.com>
12244
12245 * ada-valprint.c (print_variant_part): Remove parameters; switch
12246 to value-based API.
12247 (print_field_values): Likewise.
12248 (ada_val_print_struct_union): Likewise.
12249 (ada_value_print_1): Update.
12250
9faa006d
KR
122512020-03-20 Kamil Rytarowski <n54@gmx.com>
12252
12253 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12254 nbsd_nat_target instead of inf_ptrace_target.
12255 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12256 nbsd_nat_target.
12257
4a90f062
KR
122582020-03-20 Kamil Rytarowski <n54@gmx.com>
12259
12260 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12261 it to the ptrace call.
12262 * (store_registers): Likewise.
12263
122642020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12265
12266 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12267 it to the ptrace call.
12268 * (store_registers): Likewise.
12269
2d07da27
LM
122702020-03-19 Luis Machado <luis.machado@linaro.org>
12271
12272 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12273 valid, fetch vg value from ptrace.
12274
f09db380
KR
122752020-03-19 Kamil Rytarowski <n54@gmx.com>
12276 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12277 * inf-ptrace.c: Likewise.
12278 * (gdb_ptrace): Add.
12279 * (inf_ptrace_target::resume): Update.
12280 * (inf_ptrace_target::xfer_partial): Likewise.
12281 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12282 * (inf_ptrace_peek_poke): Update.
12283
fcc7376e
KR
122842020-03-19 Kamil Rytarowski <n54@gmx.com>
12285
12286 * x86-bsd-nat.c (gdb_ptrace): New.
12287 * (x86bsd_dr_set): Add new argument `ptid'.
12288 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12289 x86bsd_dr_set_addr): Update.
12290
cada5fc9
AB
122912020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12292
12293 * remote.c (remote_target::process_stop_reply): Handle events for
12294 all threads differently.
12295
19a2740f
AB
122962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12297
12298 * completer.c (completion_tracker::remove_completion): Define new
12299 function.
12300 * completer.h (completion_tracker::remove_completion): Declare new
12301 function.
12302 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12303 when adding a C++ function symbol.
12304
724fd9ba
AB
123052020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12306
12307 * completer.c (completion_tracker::completion_hash_entry): Define
12308 new class.
12309 (advance_to_filename_complete_word_point): Call
12310 recompute_lowest_common_denominator.
12311 (completion_tracker::completion_tracker): Call discard_completions
12312 to setup the hash table.
12313 (completion_tracker::discard_completions): Allow for being called
12314 from the constructor, pass new equal function, and element deleter
12315 when constructing the hash table. Initialise new class member
12316 variables.
12317 (completion_tracker::maybe_add_completion): Remove use of
12318 m_entries_vec, and store more information into m_entries_hash.
12319 (completion_tracker::recompute_lcd_visitor): New function, most
12320 content taken from...
12321 (completion_tracker::recompute_lowest_common_denominator):
12322 ...here, this now just visits each item in the hash calling the
12323 above visitor.
12324 (completion_tracker::build_completion_result): Remove use of
12325 m_entries_vec, call recompute_lowest_common_denominator.
12326 * completer.h (completion_tracker::have_completions): Remove use
12327 of m_entries_vec.
12328 (completion_tracker::completion_hash_entry): Declare new class.
12329 (completion_tracker::recompute_lowest_common_denominator): Change
12330 function signature.
12331 (completion_tracker::recompute_lcd_visitor): Declare new function.
12332 (completion_tracker::m_entries_vec): Delete.
12333 (completion_tracker::m_entries_hash): Initialize to NULL.
12334 (completion_tracker::m_lowest_common_denominator_valid): New
12335 member variable.
12336 (completion_tracker::m_lowest_common_denominator_max_length): New
12337 member variable.
12338
5a82b8a1
KR
123392020-03-17 Kamil Rytarowski <n54@gmx.com>
12340
12341 * regformats/regdef.h: Put reg in gdb namespace.
12342
fb516a69
KR
123432020-03-17 Kamil Rytarowski <n54@gmx.com>
12344
12345 * i386-bsd-nat.c (gdb_ptrace): New.
12346 * (i386bsd_fetch_inferior_registers,
12347 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12348 * (i386bsd_fetch_inferior_registers,
12349 i386bsd_store_inferior_registers) Use gdb_ptrace.
12350
1c0aa1fb
KR
123512020-03-17 Kamil Rytarowski <n54@gmx.com>
12352
12353 * amd64-bsd-nat.c (gdb_ptrace): New.
12354 * (amd64bsd_fetch_inferior_registers,
12355 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12356 * (amd64bsd_fetch_inferior_registers,
12357 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12358
5ccd2fb7
KR
123592020-03-17 Kamil Rytarowski <n54@gmx.com>
12360
12361 * user-regs.c (user_reg::read): Rename to...
12362 (user_reg::xread): ...this.
12363 * (append_user_reg): Rename argument `read' to `xread'.
12364 * (user_reg_add_builtin): Likewise.
12365 * (user_reg_add): Likewise.
12366 * (value_of_user_reg): Likewise.
12367
2108a63a
KR
123682020-03-17 Kamil Rytarowski <n54@gmx.com>
12369
12370 * sparc-nat.c (gdb_ptrace): New.
12371 * sparc-nat.c (sparc_fetch_inferior_registers)
12372 (sparc_store_inferior_registers) Remove obsolete comment.
12373 * sparc-nat.c (sparc_fetch_inferior_registers)
12374 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12375 * sparc-nat.c (sparc_fetch_inferior_registers)
12376 (sparc_store_inferior_registers) Use gdb_ptrace.
12377
a225c9a8
KR
123782020-03-17 Kamil Rytarowski <n54@gmx.com>
12379
12380 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12381 it to the ptrace call.
12382 * sh-nbsd-nat.c (store_registers): Likewise.
12383
98097623
KR
123842020-03-17 Kamil Rytarowski <n54@gmx.com>
12385
12386 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12387 nbsd_nat_target instead of inf_ptrace_target.
12388 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12389 nbsd_nat_target.
12390
9e38d619
KR
123912020-03-17 Kamil Rytarowski <n54@gmx.com>
12392
12393 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12394
a2ecbe9f
KR
123952020-03-17 Kamil Rytarowski <n54@gmx.com>
12396
12397 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12398 <sys/sysctl.h>.
12399 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12400
58990295
TV
124012020-03-17 Tom de Vries <tdevries@suse.de>
12402
12403 PR gdb/23710
12404 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12405 fields.
12406 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12407 fields.
12408 (process_imported_unit_die): Skip import of c++ CUs.
12409
771dd3a8
TT
124102020-03-16 Tom Tromey <tom@tromey.com>
12411
12412 * p-valprint.c (pascal_object_print_value): Initialize
12413 base_value.
12414
817a7585
AK
124152020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12416 Shahab Vahedi <shahab@synopsys.com>
12417
12418 * Makefile.in: Add arch/arc.o
12419 * configure.tgt: Likewise.
12420 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12421 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12422 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12423 * arc-tdep.h (arc_read_description): Add proto type.
12424 * arch/arc.c: New file.
12425 * arch/arc.h: Likewise.
12426 * features/Makefile: Replace old target descriptions with new.
12427 * features/arc-arcompact.c: Remove.
12428 * features/arc-arcompact.xml: Likewise.
12429 * features/arc-v2.c: Likewise
12430 * features/arc-v2.xml: Likewise
12431 * features/arc/aux-arcompact.xml: New file.
12432 * features/arc/aux-v2.xml: Likewise.
12433 * features/arc/core-arcompact.xml: Likewise.
12434 * features/arc/core-v2.xml: Likewise.
12435 * features/arc/aux-arcompact.c: Generate.
12436 * features/arc/aux-v2.c: Likewise.
12437 * features/arc/core-arcompact.c: Likewise.
12438 * features/arc/core-v2.c: Likewise.
12439 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12440
67430cd0
TT
124412020-03-16 Tom Tromey <tromey@adacore.com>
12442
12443 PR gdb/25663:
12444 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12445 putting value into bcache.
12446
30efb6c7
SM
124472020-03-16 Simon Marchi <simon.marchi@efficios.com>
12448
12449 PR gdb/21500
12450 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12451 to...
12452 (amd64_windows_init_abi_common): ... this. Don't set size of
12453 long type.
12454 (amd64_windows_init_abi): New function.
12455 (amd64_cygwin_init_abi): New function.
12456 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12457 the Cygwin OS ABI.
12458 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12459 comment.
12460
8db52437
SM
124612020-03-16 Simon Marchi <simon.marchi@efficios.com>
12462
12463 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12464 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12465 (pe_import_directory_entry): New struct type.
12466 (is_linked_with_cygwin_dll): New function.
12467 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12468 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12469 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12470
5982a56a
SM
124712020-03-16 Simon Marchi <simon.marchi@efficios.com>
12472
12473 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12474 i386_cygwin_core_osabi_sniffer.
12475
7a1998df
SM
124762020-03-16 Simon Marchi <simon.marchi@efficios.com>
12477
12478 * i386-cygwin-tdep.c: Rename to...
12479 * i386-windows-tdep.c: ... this.
12480 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12481 i386-windows-tdep.c.
12482 * configure.tgt: Likewise.
12483
053205cc
SM
124842020-03-16 Simon Marchi <simon.marchi@efficios.com>
12485
12486 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12487 * osabi.c (gdb_osabi_names): Add "Windows".
12488 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12489 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12490 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12491 i386_cygwin_osabi_sniffer.
12492 (_initialize_i386_cygwin_tdep): Register OS ABI
12493 GDB_OSABI_WINDOWS for i386.
12494 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12495 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12496 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12497 for x86-64.
12498 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12499 when the target matches '*-*-mingw*'.
12500
fe4b2ee6
SM
125012020-03-16 Simon Marchi <simon.marchi@efficios.com>
12502
12503 * defs.h (enum gdb_osabi): Move to...
12504 * osabi.h (enum gdb_osabi): ... here.
12505 * gdbarch.sh: Include osabi.h in gdbarch.h.
12506 * gdbarch.h: Re-generate.
12507
cb9b645d
SM
125082020-03-16 Simon Marchi <simon.marchi@efficios.com>
12509
12510 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12511 function.
12512 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12513
3293bbaf
TT
125142020-03-14 Tom Tromey <tom@tromey.com>
12515
12516 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12517 for C++.
12518 (c_type_print_modifier): Likewise. Add "language" parameter.
12519 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12520 (c_type_print_base_1): Update.
12521 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12522 constants.
12523 * type-stack.c (type_stack::insert): Handle tp_atomic and
12524 tp_restrict.
12525 (type_stack::follow_type_instance_flags): Likewise.
12526 (type_stack::follow_types): Likewise. Merge type-following code.
12527 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12528 (space_identifier, cv_with_space_id)
12529 (const_or_volatile_or_space_identifier_noopt)
12530 (const_or_volatile_or_space_identifier): Remove.
12531 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12532 rules.
12533 (ptr_operator, typebase): Update.
12534 (enum token_flag) <FLAG_C>: New constant.
12535 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12536 "_Atomic".
12537 (lex_one_token): Handle FLAG_C.
12538
154151a6
KR
125392020-03-14 Kamil Rytarowski <n54@gmx.com>
12540
12541 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12542 it to the ptrace call.
12543 * m68k-bsd-nat.c (store_registers): Likewise.
12544
bc107784
KR
125452020-03-14 Kamil Rytarowski <n54@gmx.com>
12546
12547 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12548 gdb_byte *.
12549 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12550 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12551 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12552
01a80117
KR
125532020-03-14 Kamil Rytarowski <n54@gmx.com>
12554
12555 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12556 nbsd_nat_target instead of inf_ptrace_target.
12557 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12558 nbsd_nat_target.
12559
f90280ca
KR
125602020-03-14 Kamil Rytarowski <n54@gmx.com>
12561
12562 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12563 register_t.
12564
6def66f1
KR
125652020-03-14 Kamil Rytarowski <n54@gmx.com>
12566
12567 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12568 it to the ptrace call.
12569 * alpha-bsd-nat.c (store_registers): Likewise.
12570
66eaca97
KR
125712020-03-14 Kamil Rytarowski <n54@gmx.com>
12572
12573 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12574 includes.
12575 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12576 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12577 fill_fpregset): Likewise.
12578
4fed520b
KR
125792020-03-14 Kamil Rytarowski <n54@gmx.com>
12580
12581 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12582 nbsd_nat_target instead of inf_ptrace_target.
12583 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12584 nbsd_nat_target.
12585
2190cf06
KR
125862020-03-14 Kamil Rytarowski <n54@gmx.com>
12587
12588 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12589 register_t.
12590
75c56d3d
KR
125912020-03-14 Kamil Rytarowski <n54@gmx.com>
12592
12593 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12594 it to the ptrace call.
12595 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12596 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12597 * arm-nbsd-nat.c (store_register): Likewise.
12598 * arm-nbsd-nat.c (store_regs): Likewise.
12599 * arm-nbsd-nat.c (store_fp_register): Likewise.
12600 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12601
6018d381
KR
126022020-03-14 Kamil Rytarowski <n54@gmx.com>
12603
12604 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12605 nbsd_nat_target instead of inf_ptrace_target.
12606 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12607 nbsd_nat_target.
12608
013f99f0
KR
126092020-03-14 Kamil Rytarowski <n54@gmx.com>
12610
12611 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12612 it to the ptrace call.
12613 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12614
12753073
KR
126152020-03-14 Kamil Rytarowski <n54@gmx.com>
12616
6227b330
KR
12617 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12618 it to the ptrace call.
12619 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12620
126212020-03-14 Kamil Rytarowski <n54@gmx.com>
12622
12623 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12624 gdb_byte *.
12753073
KR
12625 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12626
d5be5fa4
KR
126272020-03-14 Kamil Rytarowski <n54@gmx.com>
12628
12629 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12630 instead of inf_ptrace_target.
12631 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12632 nbsd_nat_target.
12633
8110f842
KR
126342020-03-14 Kamil Rytarowski <n54@gmx.com>
12635
12636 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12637 register_t.
12638
52feded7
KR
126392020-03-14 Kamil Rytarowski <n54@gmx.com>
12640
12641 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12642 register_t.
12643
25567eee
KR
126442020-03-14 Kamil Rytarowski <n54@gmx.com>
12645
12646 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12647 register_t.
12648
426a9c18
TT
126492020-03-13 Tom Tromey <tom@tromey.com>
12650
12651 * value.h (val_print): Don't declare.
12652 * valprint.h (val_print_array_elements)
12653 (val_print_scalar_formatted, generic_val_print): Don't declare.
12654 * valprint.c (generic_val_print_array): Take a struct value.
12655 (generic_val_print_ptr, generic_val_print_memberptr)
12656 (generic_val_print_bool, generic_val_print_int)
12657 (generic_val_print_char, generic_val_print_complex)
12658 (generic_val_print): Remove.
12659 (generic_value_print): Update.
12660 (do_val_print): Remove unused parameters. Don't call
12661 la_val_print.
12662 (val_print): Remove.
12663 (common_val_print): Update. Don't call value_check_printable.
12664 (val_print_scalar_formatted, val_print_array_elements): Remove.
12665 * rust-lang.c (rust_val_print): Remove.
12666 (rust_language_defn): Update.
12667 * p-valprint.c (pascal_val_print): Remove.
12668 (pascal_value_print_inner): Update.
12669 (pascal_object_print_val_fields, pascal_object_print_val):
12670 Remove.
12671 (pascal_object_print_static_field): Update.
12672 * p-lang.h (pascal_val_print): Don't declare.
12673 * p-lang.c (pascal_language_defn): Update.
12674 * opencl-lang.c (opencl_language_defn): Update.
12675 * objc-lang.c (objc_language_defn): Update.
12676 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12677 * m2-lang.h (m2_val_print): Don't declare.
12678 * m2-lang.c (m2_language_defn): Update.
12679 * language.h (struct language_defn) <la_val_print>: Remove.
12680 * language.c (unk_lang_value_print_inner): Rename. Change
12681 argument types.
12682 (unknown_language_defn, auto_language_defn): Update.
12683 * go-valprint.c (go_val_print): Remove.
12684 * go-lang.h (go_val_print): Don't declare.
12685 * go-lang.c (go_language_defn): Update.
12686 * f-valprint.c (f_val_print): Remove.
12687 * f-lang.h (f_value_print): Don't declare.
12688 * f-lang.c (f_language_defn): Update.
12689 * d-valprint.c (d_val_print): Remove.
12690 * d-lang.h (d_value_print): Don't declare.
12691 * d-lang.c (d_language_defn): Update.
12692 * cp-valprint.c (cp_print_value_fields)
12693 (cp_print_value_fields_rtti, cp_print_value): Remove.
12694 (cp_print_static_field): Update.
12695 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12696 (c_val_print_struct, c_val_print_union, c_val_print_int)
12697 (c_val_print_memberptr, c_val_print): Remove.
12698 * c-lang.h (c_val_print_array, cp_print_value_fields)
12699 (cp_print_value_fields_rtti): Don't declare.
12700 * c-lang.c (c_language_defn, cplus_language_defn)
12701 (asm_language_defn, minimal_language_defn): Update.
12702 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12703 (ada_val_print_enum): Take a struct value.
12704 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12705 (ada_val_print): Remove.
12706 (ada_value_print_1): Update.
12707 (printable_val_type): Remove.
12708 * ada-lang.h (ada_val_print): Don't declare.
12709 * ada-lang.c (ada_language_defn): Update.
12710
42331a1e
TT
127112020-03-13 Tom Tromey <tom@tromey.com>
12712
12713 * valprint.c (do_val_print): Update.
12714 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12715 a struct value.
12716 (value_to_value_object_no_release): Declare.
12717 * python/py-value.c (value_to_value_object_no_release): New
12718 function.
12719 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12720 struct value.
12721 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12722 function.
12723 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12724 a struct value.
12725 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12726 Declare.
12727 (gdbscm_apply_val_pretty_printer): Take a struct value.
12728 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12729 value.
12730 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12731 value.
12732 * extension-priv.h (struct extension_language_ops)
12733 <apply_val_pretty_printer>: Take a struct value.
12734 * cp-valprint.c (cp_print_value): Create a struct value.
12735 (cp_print_value): Update.
12736
3a916a97
TT
127372020-03-13 Tom Tromey <tom@tromey.com>
12738
12739 * ada-valprint.c (print_field_values): Call common_val_print.
12740
b59eac37
TT
127412020-03-13 Tom Tromey <tom@tromey.com>
12742
12743 * ada-valprint.c (val_print_packed_array_elements): Remove
12744 bitoffset and val parameters. Call common_val_print.
12745 (ada_val_print_string): Remove offset, address, and original_value
12746 parameters.
12747 (ada_val_print_array): Update.
12748 (ada_value_print_array): New function.
12749 (ada_value_print_1): Call it.
12750
03371129
TT
127512020-03-13 Tom Tromey <tom@tromey.com>
12752
12753 * ada-valprint.c (ada_value_print): Use common_val_print.
12754
2e088f8b
TT
127552020-03-13 Tom Tromey <tom@tromey.com>
12756
12757 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12758
39ef85a8
TT
127592020-03-13 Tom Tromey <tom@tromey.com>
12760
12761 * ada-valprint.c (ada_value_print_num): New function.
12762 (ada_value_print_1): Use it.
12763
b9fa6e07
TT
127642020-03-13 Tom Tromey <tom@tromey.com>
12765
12766 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12767
416595d6
TT
127682020-03-13 Tom Tromey <tom@tromey.com>
12769
12770 * ada-valprint.c (ada_value_print_ptr): New function.
12771 (ada_value_print_1): Use it.
12772
5b5e15ec
TT
127732020-03-13 Tom Tromey <tom@tromey.com>
12774
12775 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12776 call common_val_print.
12777 (ada_val_print_1): Update.
12778 (ada_value_print_1): New function.
12779 (ada_value_print_inner): Rewrite.
12780
fbf54e75
TT
127812020-03-13 Tom Tromey <tom@tromey.com>
12782
12783 * cp-valprint.c (cp_print_value_fields): Update.
12784 (cp_print_value): New function.
12785
64b653ca
TT
127862020-03-13 Tom Tromey <tom@tromey.com>
12787
12788 * m2-valprint.c (m2_value_print_inner): Use
12789 cp_print_value_fields.
12790 * cp-valprint.c (cp_print_value_fields): New function.
12791 * c-valprint.c (c_value_print_struct): New function.
12792 (c_value_print_inner): Use c_value_print_struct.
12793 * c-lang.h (cp_print_value_fields): Declare.
12794
6999f067
TT
127952020-03-13 Tom Tromey <tom@tromey.com>
12796
12797 * c-valprint.c (c_value_print_array): New function.
12798 (c_value_print_inner): Use it.
12799
ce80b8bd
TT
128002020-03-13 Tom Tromey <tom@tromey.com>
12801
12802 * c-valprint.c (c_value_print_memberptr): New function.
12803 (c_value_print_inner): Use it.
12804
2faac269
TT
128052020-03-13 Tom Tromey <tom@tromey.com>
12806
12807 * c-valprint.c (c_value_print_int): New function.
12808 (c_value_print_inner): Use it.
12809
da3e2c29
TT
128102020-03-13 Tom Tromey <tom@tromey.com>
12811
12812 * c-valprint.c (c_value_print_ptr): New function.
12813 (c_value_print_inner): Use it.
12814
50836231
TT
128152020-03-13 Tom Tromey <tom@tromey.com>
12816
12817 * c-valprint.c (c_value_print_inner): Rewrite.
12818
4f412b6e
TT
128192020-03-13 Tom Tromey <tom@tromey.com>
12820
12821 * valprint.c (generic_value_print_complex): New function.
12822 (generic_value_print): Use it.
12823
f5354008
TT
128242020-03-13 Tom Tromey <tom@tromey.com>
12825
12826 * valprint.c (generic_val_print_float): Don't call
12827 val_print_scalar_formatted.
12828 (generic_val_print, generic_value_print): Update.
12829
3eec3b05
TT
128302020-03-13 Tom Tromey <tom@tromey.com>
12831
12832 * valprint.c (generic_value_print_char): New function
12833 (generic_value_print): Use it.
12834
fdddfccb
TT
128352020-03-13 Tom Tromey <tom@tromey.com>
12836
12837 * valprint.c (generic_value_print_int): New function.
12838 (generic_value_print): Use it.
12839
6dde7521
TT
128402020-03-13 Tom Tromey <tom@tromey.com>
12841
12842 * valprint.c (generic_value_print_bool): New function.
12843 (generic_value_print): Use it.
12844
4112d2e6
TT
128452020-03-13 Tom Tromey <tom@tromey.com>
12846
12847 * valprint.c (generic_val_print_func): Simplify.
12848 (generic_val_print, generic_value_print): Update.
12849
65786af6
TT
128502020-03-13 Tom Tromey <tom@tromey.com>
12851
12852 * valprint.c (generic_val_print_flags): Remove.
12853 (generic_val_print, generic_value_print): Update.
12854 (val_print_type_code_flags): Add original_value parameter.
12855
40f3ce18
TT
128562020-03-13 Tom Tromey <tom@tromey.com>
12857
12858 * valprint.c (generic_val_print): Update.
12859 (generic_value_print): Update.
12860 * valprint.c (generic_val_print_enum): Don't call
12861 val_print_scalar_formatted.
12862
2a5b130b
TT
128632020-03-13 Tom Tromey <tom@tromey.com>
12864
12865 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12866 * valprint.c (generic_value_print_ptr): New function.
12867
abc66ce9
TT
128682020-03-13 Tom Tromey <tom@tromey.com>
12869
12870 * valprint.c (generic_value_print): Rewrite.
12871
07a32858
TT
128722020-03-13 Tom Tromey <tom@tromey.com>
12873
12874 * p-valprint.c (pascal_object_print_value_fields)
12875 (pascal_object_print_value): New functions.
12876
64d64d3a
TT
128772020-03-13 Tom Tromey <tom@tromey.com>
12878
12879 * p-valprint.c (pascal_value_print_inner): Rewrite.
12880
6a95a1f5
TT
128812020-03-13 Tom Tromey <tom@tromey.com>
12882
12883 * f-valprint.c (f_value_print_innner): Rewrite.
12884
59fcdac6
TT
128852020-03-13 Tom Tromey <tom@tromey.com>
12886
12887 * m2-valprint.c (m2_print_unbounded_array): New overload.
12888 (m2_print_unbounded_array): Update.
12889 (m2_print_array_contents): Take a struct value.
12890 (m2_value_print_inner): Rewrite.
12891
d133c3e1
TT
128922020-03-13 Tom Tromey <tom@tromey.com>
12893
12894 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12895 (d_value_print_inner): New function.
12896 * d-lang.h (d_value_print_inner): Declare.
12897 * d-lang.c (d_language_defn): Use d_value_print_inner.
12898
23b0f06b
TT
128992020-03-13 Tom Tromey <tom@tromey.com>
12900
12901 * go-valprint.c (go_value_print_inner): New function.
12902 * go-lang.h (go_value_print_inner): Declare.
12903 * go-lang.c (go_language_defn): Use go_value_print_inner.
12904
5f56f7cb
TT
129052020-03-13 Tom Tromey <tom@tromey.com>
12906
12907 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12908 API.
12909 (rust_val_print): Rewrite.
12910 (rust_value_print_inner): New function, from rust_val_print.
12911 (rust_language_defn): Use rust_value_print_inner.
12912
26792ee0
TT
129132020-03-13 Tom Tromey <tom@tromey.com>
12914
12915 * ada-valprint.c (ada_value_print_inner): New function.
12916 * ada-lang.h (ada_value_print_inner): Declare.
12917 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12918
24051bbe
TT
129192020-03-13 Tom Tromey <tom@tromey.com>
12920
12921 * f-valprint.c (f_value_print_innner): New function.
12922 * f-lang.h (f_value_print_innner): Declare.
12923 * f-lang.c (f_language_defn): Use f_value_print_innner.
12924
c0941be6
TT
129252020-03-13 Tom Tromey <tom@tromey.com>
12926
12927 * p-valprint.c (pascal_value_print_inner): New function.
12928 * p-lang.h (pascal_value_print_inner): Declare.
12929 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12930
62c4663d
TT
129312020-03-13 Tom Tromey <tom@tromey.com>
12932
12933 * m2-valprint.c (m2_value_print_inner): New function.
12934 * m2-lang.h (m2_value_print_inner): Declare.
12935 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12936
62182190
TT
129372020-03-13 Tom Tromey <tom@tromey.com>
12938
12939 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12940 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12941 * c-valprint.c (c_value_print_inner): New function.
12942 * c-lang.h (c_value_print_inner): Declare.
12943 * c-lang.c (c_language_defn, cplus_language_defn)
12944 (asm_language_defn, minimal_language_defn): Use
12945 c_value_print_inner.
12946
1e592a8a
TT
129472020-03-13 Tom Tromey <tom@tromey.com>
12948
12949 * p-valprint.c (pascal_object_print_value_fields): Now static.
12950 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12951
7fe471e9
TT
129522020-03-13 Tom Tromey <tom@tromey.com>
12953
12954 * c-valprint.c (c_val_print_array): Simplify.
12955
d121c6ce
TT
129562020-03-13 Tom Tromey <tom@tromey.com>
12957
12958 * valprint.c (value_print_array_elements): New function.
12959 * valprint.h (value_print_array_elements): Declare.
12960
4dba70ee
TT
129612020-03-13 Tom Tromey <tom@tromey.com>
12962
12963 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12964 * mips-tdep.c (mips_print_register): Use
12965 value_print_scalar_formatted.
12966
4f9ae810
TT
129672020-03-13 Tom Tromey <tom@tromey.com>
12968
12969 * valprint.h (value_print_scalar_formatted): Declare.
12970 * valprint.c (value_print_scalar_formatted): New function.
12971
156bfec9
TT
129722020-03-13 Tom Tromey <tom@tromey.com>
12973
12974 * valprint.h (generic_value_print): Declare.
12975 * valprint.c (generic_value_print): New function.
12976
2b4e573d
TT
129772020-03-13 Tom Tromey <tom@tromey.com>
12978
12979 * valprint.c (do_val_print): Call la_value_print_inner, if
12980 available.
12981 * rust-lang.c (rust_language_defn): Update.
12982 * p-lang.c (pascal_language_defn): Update.
12983 * opencl-lang.c (opencl_language_defn): Update.
12984 * objc-lang.c (objc_language_defn): Update.
12985 * m2-lang.c (m2_language_defn): Update.
12986 * language.h (struct language_defn) <la_value_print_inner>: New
12987 member.
12988 * language.c (unknown_language_defn, auto_language_defn): Update.
12989 * go-lang.c (go_language_defn): Update.
12990 * f-lang.c (f_language_defn): Update.
12991 * d-lang.c (d_language_defn): Update.
12992 * c-lang.c (c_language_defn, cplus_language_defn)
12993 (asm_language_defn, minimal_language_defn): Update.
12994 * ada-lang.c (ada_language_defn): Update.
12995
a1f6a07c
TT
129962020-03-13 Tom Tromey <tom@tromey.com>
12997
12998 * c-valprint.c (c_value_print): Use common_val_print.
12999
410cf315
TT
130002020-03-13 Tom Tromey <tom@tromey.com>
13001
13002 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13003
72a45c93
TT
130042020-03-13 Tom Tromey <tom@tromey.com>
13005
13006 * f-valprint.c (f77_print_array_1, f_val_print): Use
13007 common_val_print.
13008
040f66bd
TT
130092020-03-13 Tom Tromey <tom@tromey.com>
13010
13011 * riscv-tdep.c (riscv_print_one_register_info): Use
13012 common_val_print.
13013
a6e05a6c
TT
130142020-03-13 Tom Tromey <tom@tromey.com>
13015
13016 * mi/mi-main.c (output_register): Use common_val_print.
13017
3444c526
TT
130182020-03-13 Tom Tromey <tom@tromey.com>
13019
13020 * infcmd.c (default_print_one_register_info): Use
13021 common_val_print.
13022
c2a44efe
TT
130232020-03-13 Tom Tromey <tom@tromey.com>
13024
13025 * valprint.h (common_val_print_checked): Declare.
13026 * valprint.c (common_val_print_checked): New function.
13027 * stack.c (print_frame_arg): Use common_val_print_checked.
13028
b0c26e99
TT
130292020-03-13 Tom Tromey <tom@tromey.com>
13030
13031 * valprint.c (do_val_print): New function, from val_print.
13032 (val_print): Use do_val_print.
13033 (common_val_print): Use do_val_print.
13034
ce3acbe9
TT
130352020-03-13 Tom Tromey <tom@tromey.com>
13036
13037 * valprint.c (value_print): Use scoped_value_mark.
13038
96c7f873
TV
130392020-03-13 Tom de Vries <tdevries@suse.de>
13040
13041 PR symtab/25646
13042 * psymtab.c (partial_symtab::partial_symtab): Don't set
13043 globals_offset and statics_offset. Push element onto
13044 current_global_psymbols and current_static_psymbols stacks.
13045 (concat): New function.
13046 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13047 element from current_global_psymbols and current_static_psymbols
13048 stacks. Concat popped elements to global_psymbols and
13049 static_symbols.
13050 (add_psymbol_to_list): Use current_global_psymbols and
13051 current_static_psymbols stacks.
13052 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13053 current_static_psymbols fields.
13054
6ba0a321
CB
130552020-03-12 Christian Biesinger <cbiesinger@google.com>
13056
13057 * corelow.c (sniff_core_bfd): Remove.
13058 (class core_target) <m_core_vec>: Remove.
13059 (core_target::core_target): Update.
13060 (core_file_fns): Remove.
13061 (deprecated_add_core_fns): Remove.
13062 (default_core_sniffer): Remove.
13063 (sniff_core_bfd): Remove.
13064 (default_check_format): Remove.
13065 (gdb_check_format): Remove.
13066 (core_target_open): Update.
13067 (core_target::get_core_register_section): Update.
13068 (get_core_registers_cb): Update.
13069 (core_target::fetch_registers): Update.
13070 * gdbcore.h (struct core_fns): Remove.
13071 (deprecated_add_core_fns): Remove.
13072 (default_core_sniffer): Remove.
13073 (default_check_format): Remove.
13074
227031b2
TT
130752020-03-12 Tom Tromey <tom@tromey.com>
13076
13077 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13078 CORE_ADDR.
13079 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13080
53807e9f
TT
130812020-03-12 Tom Tromey <tom@tromey.com>
13082
13083 * remote.c (remote_target::download_tracepoint)
13084 (remote_target::enable_tracepoint)
13085 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13086 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13087 sprintf_vma.
13088
64f25102
TT
130892020-03-12 Tom Tromey <tom@tromey.com>
13090
13091 * symfile-mem.c: Update CORE_ADDR size assert.
13092
272cd5a3
SM
130932020-03-12 Simon Marchi <simon.marchi@efficios.com>
13094
13095 * selftest.m4: Move to gdbsupport/.
13096 * acinclude.m4: Update path to selftest.m4.
13097
74cd3f9d
SM
130982020-03-12 Simon Marchi <simon.marchi@efficios.com>
13099
13100 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13101 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13102 gdbarch-selfselftests.c and selftest-arch.c.
13103 (SUBDIR_UNITTESTS_OBS): Rename to...
13104 (SELFTESTS_OBS): ... this.
13105 (COMMON_SFILES): Remove disasm-selftests.c and
13106 gdbarch-selftests.c.
13107 * configure.ac: Don't add selftest-arch.{c,o} to
13108 CONFIG_{SRCS,OBS}.
13109 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13110 preprocessor conditions.
13111
db6878ac
SM
131122020-03-12 Simon Marchi <simon.marchi@efficios.com>
13113
13114 * configure.ac: Don't source bfd/development.sh.
13115 * selftest.m4: Modify comment.
13116 * configure: Re-generate.
13117
4d696a5c
SM
131182020-03-12 Simon Marchi <simon.marchi@efficios.com>
13119
13120 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13121 not "true" or "false".
13122 * configure: Re-generate.
13123
8dd8e1c7
CB
131242020-03-12 Christian Biesinger <cbiesinger@google.com>
13125
13126 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13127 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13128 renamed to arm_nbsd_supply_gregset.
13129 (fetch_register): Update to call arm_nbsd_supply_gregset.
13130 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13131 (arm_netbsd_nat_target::fetch_registers): Update.
13132 (fetch_elfcore_registers): Removed.
13133 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13134 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13135 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13136 not require NetBSD system headers.
13137 (arm_nbsd_regset): New struct.
13138 (arm_nbsd_iterate_over_regset_sections): New function.
13139 (arm_netbsd_init_abi_common): Updated to call
13140 set_gdbarch_iterate_over_regset_sections.
13141 * arm-nbsd-tdep.h: New file.
13142
dd69bf7a
KB
131432020-03-11 Kevin Buettner <kevinb@redhat.com>
13144
13145 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13146 recursion.
13147
a0761e34
SM
131482020-03-11 Simon Marchi <simon.marchi@efficios.com>
13149
13150 * configure: Re-generate.
13151
e7a82140
TT
131522020-03-11 Tom Tromey <tromey@adacore.com>
13153
13154 * ada-typeprint.c (print_choices): Fix comment.
13155
dcc050c8
AB
131562020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13157
13158 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13159 previous item in the list, when the list has no items.
13160
1c33af77
TV
131612020-03-11 Tom de Vries <tdevries@suse.de>
13162
13163 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13164 PROP_LOCLIST handling code.
13165
8c95582d
AB
131662020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13167
13168 * buildsym-legacy.c (record_line): Pass extra parameter to
13169 record_line.
13170 * buildsym.c (buildsym_compunit::record_line): Take an extra
13171 parameter, reduce duplication in the line table, and record the
13172 is_stmt flag in the line table.
13173 * buildsym.h (buildsym_compunit::record_line): Add extra
13174 parameter.
13175 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13176 non-statement lines.
13177 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13178 this to the symtab builder.
13179 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13180 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13181 through to dwarf_record_line_1.
13182 * infrun.c (process_event_stop_test): When stepping, don't stop at
13183 a non-statement instruction, and only refresh the step info when
13184 we land in the middle of a line's range. Also add an extra
13185 comment.
13186 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13187 field.
13188 * record-btrace.c (btrace_find_line_range): Only record lines
13189 marked as is-statement.
13190 * stack.c (frame_show_address): Show the frame address if we are
13191 in a non-statement sal.
13192 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13193 (maintenance_print_one_line_table): Print a header for the is_stmt
13194 column, and include is_stmt information in the output.
13195 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13196 preference to non-statements.
13197 (find_pcs_for_symtab_line): Prefer is-statement entries.
13198 (find_line_common): Likewise.
13199 * symtab.h (struct linetable_entry): Add is_stmt field.
13200 (struct symtab_and_line): Likewise.
13201 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13202 arranging the line table.
13203
e4003a34
TV
132042020-03-07 Tom de Vries <tdevries@suse.de>
13205
13206 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13207 DIE.
13208
e8932576
TT
132092020-03-07 Tom Tromey <tom@tromey.com>
13210
13211 * valops.c (value_literal_complex): Remove obsolete comment.
13212 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13213 comment.
13214
29734269
SM
132152020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13216
13217 * infrun.h: Forward-declare thread_info.
13218 (set_step_info): Add thread_info parameter, add doc.
13219 * infrun.c (set_step_info): Add thread_info parameter, move doc
13220 to header.
13221 * infrun.c (process_event_stop_test): Pass thread to
13222 set_step_info call.
13223 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13224 set_step_info.
13225 (prepare_one_step): Add thread_info parameter, pass it to
13226 set_step_frame and prepare_one_step (recursive) call.
13227 (step_1): Pass thread to prepare_one_step call.
13228 (step_command_fsm::should_stop): Pass thread to
13229 prepare_one_step.
13230 (until_next_fsm): Pass thread to set_step_frame call.
13231 (finish_command): Pass thread to set_step_info call.
13232
b7d64b29
HD
132332020-03-06 Hannes Domani <ssbssa@yahoo.de>
13234
13235 * windows-tdep.c (windows_solib_create_inferior_hook):
13236 Check if inferior is running.
13237
09f2921c
TV
132382020-03-06 Tom de Vries <tdevries@suse.de>
13239
13240 * NEWS: Fix "the the".
13241 * ctfread.c: Same.
13242
fd760e79
TV
132432020-03-06 Tom de Vries <tdevries@suse.de>
13244
13245 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13246
20ea4a60
AB
132472020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13248
13249 * .dir-locals.el: Add a comment referencing the other copies of
13250 this file.
13251
0afbabf0
JB
132522020-03-05 John Baldwin <jhb@FreeBSD.org>
13253
13254 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13255 psargs.
13256
842806cb
TBA
132572020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13258
13259 * .gitattributes: New file.
13260
be1e3d3e
TT
132612020-03-04 Tom Tromey <tom@tromey.com>
13262
13263 * symmisc.c (print_symbol_bcache_statistics)
13264 (print_objfile_statistics): Update.
13265 * symfile.c (allocate_symtab): Use intern.
13266 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13267 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13268 macro_cache>: Remove.
13269 <string_cache>: New member.
13270 (struct objfile) <intern>: New methods.
13271 * elfread.c (elf_symtab_read): Use intern.
13272 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13273 (dwarf2_compute_name, dwarf2_physname)
13274 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13275 names.
13276 (guess_partial_die_structure_name): Update.
13277 (partial_die_info::fixup): Intern name.
13278 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13279 name.
13280 (dwarf2_name): Intern name. Update.
13281 * buildsym.c (buildsym_compunit::get_macro_table): Use
13282 string_cache.
13283
4e7625fd
TT
132842020-03-04 Tom Tromey <tom@tromey.com>
13285
13286 * jit.c (bfd_open_from_target_memory): Make "target" const.
13287 * corefile.c (gnutarget): Now const.
13288 * gdbcore.h (gnutarget): Now const.
13289
46f9f931
HD
132902020-03-04 Hannes Domani <ssbssa@yahoo.de>
13291
13292 * NEWS: Mention support for WOW64 processes.
13293 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13294 (amd64_windows_segment_register_p): Remove static.
13295 (_initialize_amd64_windows_nat): Update.
13296 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13297 * i386-windows-nat.c (context_offset): Update.
13298 (i386_mappings): Rename and remove static.
13299 (i386_windows_segment_register_p): Remove static.
13300 (_initialize_i386_windows_nat): Update.
13301 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13302 (STATUS_WX86_SINGLE_STEP): New macro.
13303 (EnumProcessModulesEx): New macro.
13304 (Wow64SuspendThread): New macro.
13305 (Wow64GetThreadContext): New macro.
13306 (Wow64SetThreadContext): New macro.
13307 (Wow64GetThreadSelectorEntry): New macro.
13308 (windows_set_context_register_offsets): Add static.
13309 (windows_set_segment_register_p): Likewise.
13310 (windows_add_thread): Adapt for WOW64 processes.
13311 (windows_fetch_one_register): Likewise.
13312 (windows_nat_target::fetch_registers): Likewise.
13313 (windows_store_one_register): Likewise.
13314 (display_selector): Likewise.
13315 (display_selectors): Likewise.
13316 (handle_exception): Likewise.
13317 (windows_continue): Likewise.
13318 (windows_nat_target::resume): Likewise.
13319 (windows_add_all_dlls): Likewise.
13320 (do_initial_windows_stuff): Likewise.
13321 (windows_nat_target::attach): Likewise.
13322 (windows_get_exec_module_filename): Likewise.
13323 (windows_nat_target::create_inferior): Likewise.
13324 (windows_xfer_siginfo): Likewise.
13325 (_initialize_loadable): Initialize Wow64SuspendThread,
13326 Wow64GetThreadContext, Wow64SetThreadContext,
13327 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13328 * windows-nat.h (windows_set_context_register_offsets):
13329 Remove declaration.
13330 (windows_set_segment_register_p): Likewise.
13331 (i386_windows_segment_register_p): Add declaration.
13332 (amd64_windows_segment_register_p): Likewise.
13333
440cf44e
LM
133342020-03-04 Luis Machado <luis.machado@linaro.org>
13335
13336 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13337 in "info registers" for AArch64/ARM.
13338
13339 The change caused "info registers" to not print GPR's.
13340
13341 gdb/ChangeLog:
13342
13343 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13344
13345 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13346 when reg->group is empty and reggroup is not.
13347
1009d92f
TT
133482020-03-03 Tom Tromey <tromey@adacore.com>
13349
13350 * dwarf2/frame.c (struct dwarf2_frame_cache)
13351 <checked_tailcall_bottom, entry_cfa_sp_offset,
13352 entry_cfa_sp_offset_p>: Remove members.
13353 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13354 (dwarf2_frame_prev_register): Don't call
13355 dwarf2_tailcall_sniffer_first.
13356 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13357 * frame-unwind.c (add_unwinder): New fuction.
13358 (frame_unwind_init): Use it. Add tailcall unwinder.
13359
5e5d66b6
AB
133602020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13361 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13362
13363 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13364 value should be printed as true.
13365
584cf46d
HD
133662020-03-03 Hannes Domani <ssbssa@yahoo.de>
13367
13368 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13369 (windows_init_abi): Set and use windows_so_ops.
13370
7b973adc
SDJ
133712020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13372
13373 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13374 when verifying if dealing with a convenience variable.
13375
bb7b70ab
LM
133762020-03-03 Luis Machado <luis.machado@linaro.org>
13377
13378 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13379
9822cb57
SM
133802020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13381
13382 * infrun.c (gdbarch_supports_displaced_stepping): New.
13383 (use_displaced_stepping): Break up conditions in smaller pieces.
13384 Use gdbarch_supports_displaced_stepping.
13385 (displaced_step_prepare_throw): Use
13386 gdbarch_supports_displaced_stepping.
13387
63e163f2
AB
133882020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13389
13390 * NEWS: Mention new behaviour of the history filename.
13391 * top.c (write_history_p): Add comment.
13392 (show_write_history_p): Add header comment, give a different
13393 message when history writing is on, but the history filename is
13394 empty.
13395 (history_filename): Add comment.
13396 (history_filename_empty): New function.
13397 (show_history_filename): Add header comment, give a different
13398 message when the filename is empty.
13399 (init_history): Compare history_filename against nullptr, and only
13400 read history if the filename is not empty.
13401 (set_history_filename): Add header comment, and only make
13402 non-empty filenames absolute.
13403 (init_main): Make the filename argument to 'set history filename'
13404 optional.
13405
81b86b97
CB
134062020-03-02 Christian Biesinger <cbiesinger@google.com>
13407
13408 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13409 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13410 (fetch_fp_register): Update.
13411 (fetch_fp_regs): Update.
13412 (store_fp_register): Update.
13413 (store_fp_regs): Update.
13414 (arm_netbsd_nat_target::read_description): New function.
13415 (fetch_elfcore_registers): Update.
13416
24ed6739
AB
134172020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13418
13419 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13420 general_thread if the stop reply is missing a thread-id.
13421 (remote_target::process_stop_reply): Use the first non-exited
13422 thread if the target didn't pass a thread-id.
13423 * infrun.c (do_target_wait): Move call to
13424 switch_to_inferior_no_thread to ....
13425 (do_target_wait_1): ... here.
13426
a84bb2a0
JT
134272020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13428
13429 * debuginfod-support.c: Include defs.h first.
13430
658dadf0
TV
134312020-02-28 Tom de Vries <tdevries@suse.de>
13432
13433 * symfile.c (set_initial_language): Use default language for lookup.
13434
4ebe4877
SM
134352020-02-28 Simon Marchi <simon.marchi@efficios.com>
13436
13437 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13438 reader variable, pass `this` to read_cutu_die_from_dwo.
13439
e5da1139
AM
134402020-02-27 Aaron Merey <amerey@redhat.com>
13441
13442 * source.c (open_source_file): Check for nullptr when computing
13443 srcpath.
13444
317f7127
TT
134452020-02-27 Tom Tromey <tromey@adacore.com>
13446
13447 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13448 member.
13449 (dwarf2_add_field): Don't update nfields.
13450 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13451
3104d9ee
AB
134522020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13453
13454 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13455 abs.
13456
b83470bf
TT
134572020-02-26 Tom Tromey <tom@tromey.com>
13458
13459 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13460 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13461 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13462 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13463 per_cu_data.
13464
edfe0a0c
TT
134652020-02-26 Tom Tromey <tom@tromey.com>
13466
13467 * dwarf2/index-write.c (psym_index_map): Change type.
13468 (add_address_entry_worker, write_one_signatured_type)
13469 (recursively_count_psymbols, recursively_write_psymbols)
13470 (class debug_names, psyms_seen_size, write_gdbindex)
13471 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13472
0d79cdc4
AM
134732020-02-26 Aaron Merey <amerey@redhat.com>
13474
13475 * Makefile.in: Handle optional debuginfod support.
13476 * NEWS: Update.
13477 * README: Add --with-debuginfod summary.
13478 * config.in: Regenerate.
13479 * configure: Regenerate.
13480 * configure.ac: Handle optional debuginfod support.
13481 * debuginfod-support.c: debuginfod helper functions.
13482 * debuginfod-support.h: Ditto.
13483 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13484 summary.
13485 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13486 when a dwz file cannot be found.
13487 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13488 debuginfo file cannot be found.
13489 * source.c (open_source_file): Query debuginfod servers when a
13490 source file cannot be found.
13491 * top.c (print_gdb_configuration): Include
13492 --{with,without}-debuginfod in the output.
13493
b65ce565
JG
134942020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13495
13496 * thread.c (thr_try_catch_cmd): Print thread name.
13497
d4c9a4f8
SM
134982020-02-26 Simon Marchi <simon.marchi@efficios.com>
13499
13500 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13501 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13502 dwarf2_fetch_die_type_sect_off): Move to...
13503 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13504 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13505 dwarf2_fetch_die_type_sect_off): ... here.
13506 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13507 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13508 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13509
0dce4280
TV
135102020-02-26 Tom de Vries <tdevries@suse.de>
13511
13512 PR gdb/25603
13513 * symfile.c (set_initial_language): Exit-early if
13514 language_mode == language_mode_manual.
13515
450a1bfc
SM
135162020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13517
13518 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13519 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13520 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13521
9e80cfa1
AB
135222020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13523
13524 * gdbtypes.c (create_array_type_with_stride): Handle negative
13525 array strides.
13526 * valarith.c (value_subscripted_rvalue): Likewise.
13527
09624f1f
LM
135282020-02-25 Luis Machado <luis.machado@linaro.org>
13529
13530 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13531
8cb5117c
SM
135322020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13533
13534 * loc.h (dwarf2_get_die_type): Move to...
13535 * read.h (dwarf2_get_die_type): ... here.
13536 * read.c (dwarf2_get_die_type): Move doc to header.
13537
c325c44e
JB
135382020-02-25 Joel Brobecker <brobecker@adacore.com>
13539
13540 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13541 'gnulib/Makefile.in' to the list.
13542
4ac93832
TT
135432020-02-24 Tom Tromey <tom@tromey.com>
13544
13545 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13546 Remove.
13547 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13548 XOBNEWVEC.
13549
197400e8
TT
135502020-02-24 Tom Tromey <tom@tromey.com>
13551
13552 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13553 New method.
13554 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13555 (dw2_do_instantiate_symtab, dw2_get_file_names)
13556 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13557
76935768
TT
135582020-02-24 Tom Tromey <tom@tromey.com>
13559
13560 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13561 make_scoped_restore.
13562 (dwarf2_psymtab::read_symtab): Don't clear
13563 reading_partial_symbols.
13564
a88ef40d
TV
135652020-02-24 Tom de Vries <tdevries@suse.de>
13566
13567 PR gdb/25592
13568 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13569
c9af6521
TV
135702020-02-24 Tom de Vries <tdevries@suse.de>
13571
13572 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13573 commands layout next/prev/regs.
13574
5707a07a
TT
135752020-02-22 Tom Tromey <tom@tromey.com>
13576
13577 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13578 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13579
3b0fb49e
TT
135802020-02-22 Tom Tromey <tom@tromey.com>
13581
13582 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13583
283be8bf
TT
135842020-02-22 Tom Tromey <tom@tromey.com>
13585
13586 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13587 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13588 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13589 * tui/tui.c (_initialize_tui): Add usage text.
13590
ca793b96
TT
135912020-02-22 Tom Tromey <tom@tromey.com>
13592
13593 * tui/tui-win.c (tui_set_focus_command)
13594 (tui_set_win_height_command): Use error_no_arg.
13595 (_initialize_tui_win): Update help text.
13596 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13597
432b5c40
TT
135982020-02-22 Tom Tromey <tom@tromey.com>
13599
13600 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13601 * tui/tui-disasm.h (struct tui_disasm_window)
13602 <display_start_addr>: Declare.
13603 * tui/tui-source.h (struct tui_source_window)
13604 <display_start_addr>: Declare.
13605 * tui/tui-winsource.h (struct tui_source_window_base)
13606 <show_source_line, display_start_addr>: New methods.
13607 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13608 Rename and move to protected section.
13609 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13610 (tui_source_window_base::do_erase_source_content): Update.
13611 (tui_source_window_base::show_source_line): Now a method.
13612 (tui_source_window_base::show_source_content)
13613 (tui_source_window_base::tui_source_window_base)
13614 (tui_source_window_base::rerender)
13615 (tui_source_window_base::refill)
13616 (tui_source_window_base::do_scroll_horizontal)
13617 (tui_source_window_base::set_is_exec_point_at)
13618 (tui_source_window_base::update_breakpoint_info)
13619 (tui_source_window_base::update_exec_info): Update.
13620 * tui/tui-source.c (tui_source_window::set_contents)
13621 (tui_source_window::showing_source_p)
13622 (tui_source_window::do_scroll_vertical)
13623 (tui_source_window::location_matches_p)
13624 (tui_source_window::line_is_displayed): Update.
13625 (tui_source_window::display_start_addr): New method.
13626 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13627 (tui_disasm_window::do_scroll_vertical)
13628 (tui_disasm_window::location_matches_p): Update.
13629 (tui_disasm_window::display_start_addr): New method.
13630
01b1af32
TT
136312020-02-22 Tom Tromey <tom@tromey.com>
13632
13633 * NEWS: Add entry for gdb.register_window_type.
13634 * tui/tui-layout.h (window_factory): New typedef.
13635 (tui_register_window): Declare.
13636 * tui/tui-layout.c (saved_tui_windows): New global.
13637 (tui_apply_current_layout): Use it.
13638 (tui_register_window): New function.
13639 * python/python.c (do_start_initialization): Call
13640 gdbpy_initialize_tui.
13641 (python_GdbMethods): Add "register_window_type" function.
13642 * python/python-internal.h (gdbpy_register_tui_window)
13643 (gdbpy_initialize_tui): Declare.
13644 * python/py-tui.c: New file.
13645 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13646
fc96d20b
TT
136472020-02-22 Tom Tromey <tom@tromey.com>
13648
13649 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13650
935c78c0
TT
136512020-02-22 Tom Tromey <tom@tromey.com>
13652
13653 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13654 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13655 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13656 (tui_set_win_focus_to): Move from tui-win.c.
13657
0240c8f1
TT
136582020-02-22 Tom Tromey <tom@tromey.com>
13659
13660 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13661 functions.
13662 (known_window_types): New global.
13663 (tui_get_window_by_name): Reimplement.
13664 (initialize_known_windows): New function.
13665 (validate_window_name): Rewrite.
13666 (_initialize_tui_layout): Call initialize_known_windows.
13667
fdb01f0c
TT
136682020-02-22 Tom Tromey <tom@tromey.com>
13669
13670 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13671 Remove constants.
13672 * tui/tui-winsource.h (struct tui_source_window_base)
13673 <tui_source_window_base>: Remove parameter.
13674 * tui/tui-winsource.c
13675 (tui_source_window_base::tui_source_window_base): Remove
13676 parameter.
13677 (tui_source_window_base::refill): Update.
13678 * tui/tui-stack.h (struct tui_locator_window)
13679 <tui_locator_window>: Update.
13680 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13681 Default the constructor.
13682 * tui/tui-regs.h (struct tui_data_item_window)
13683 <tui_data_item_window>: Default the constructor.
13684 (struct tui_data_window) <tui_data_window>: Likewise.
13685 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13686 Default the constructor.
13687 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13688 Default the constructor.
13689 <type>: Remove.
13690 (struct tui_win_info) <tui_win_info>: Default the constructor.
13691 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13692 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13693 Default the constructor.
13694
865a5aec
TT
136952020-02-22 Tom Tromey <tom@tromey.com>
13696
13697 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13698 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13699 * tui/tui-win.c (tui_resize_all): Don't call
13700 tui_delete_invisible_windows.
13701 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13702 done.
13703 (tui_set_layout): Update.
13704 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13705 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13706 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13707
e098d18c
TT
137082020-02-22 Tom Tromey <tom@tromey.com>
13709
13710 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13711 correctly.
13712
eb9c8874
TT
137132020-02-22 Tom Tromey <tom@tromey.com>
13714
13715 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13716
7eed1a8e
TT
137172020-02-22 Tom Tromey <tom@tromey.com>
13718
13719 * tui/tui-winsource.h (struct tui_source_window_iterator)
13720 <inner_iterator>: New etytypedef.
13721 <tui_source_window_iterator>: Take "end" parameter.
13722 <tui_source_window_iterator>: Take iterator.
13723 <operator*, advance>: Update.
13724 <m_iter>: Change type.
13725 <m_end>: New field.
13726 (struct tui_source_windows) <begin, end>: Update.
13727 * tui/tui-layout.c (tui_windows): New global.
13728 (tui_apply_current_layout): Clear tui_windows.
13729 (tui_layout_window::apply): Update tui_windows.
13730 * tui/tui-data.h (tui_windows): Declare.
13731 (all_tui_windows): Now inline function.
13732 (class tui_window_iterator, struct all_tui_windows): Remove.
13733
7c043ba6
TT
137342020-02-22 Tom Tromey <tom@tromey.com>
13735
13736 PR tui/17850:
13737 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13738 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13739 "height" argument.
13740 (class tui_layout_window) <get_sizes>: Likewise.
13741 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13742 argument.
13743 <get_sizes>: Add "height" argument.
13744 <m_vertical>: New field.
13745 * tui/tui-layout.c (tui_layout_split::clone): Update.
13746 (tui_layout_split::get_sizes): Add "height" argument.
13747 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13748 (tui_new_layout_command): Parse "-horizontal".
13749 (_initialize_tui_layout): Update help string.
13750 (tui_layout_split::specification): Add "-horizontal" when needed.
13751 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13752 argument.
13753 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13754 New methods.
13755
6bc56648
TT
137562020-02-22 Tom Tromey <tom@tromey.com>
13757
13758 * tui/tui-layout.h (enum tui_adjust_result): New.
13759 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13760 (class tui_layout_window) <adjust_size>: Return
13761 tui_adjust_result. Rewrite.
13762 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13763 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13764
c22fef7e
TT
137652020-02-22 Tom Tromey <tom@tromey.com>
13766
13767 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13768 parameter and return types.
13769 (class tui_layout_base) <specification>: Add "depth".
13770 (class tui_layout_window) <specification>: Add "depth".
13771 (class tui_layout_split) <specification>: Add "depth".
13772 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13773 and return types.
13774 (tui_new_layout_command): Parse sub-layouts.
13775 (_initialize_tui_layout): Update help string.
13776 (tui_layout_window::specification): Add "depth".
13777 (add_layout_command): Update.
13778
ee325b61
TT
137792020-02-22 Tom Tromey <tom@tromey.com>
13780
13781 * NEWS: Add "tui new-layout" item.
13782 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13783 Add new-layout command to help text.
13784 (validate_window_name): New function.
13785 (tui_new_layout_command): New function.
13786 (_initialize_tui_layout): Register "new-layout".
13787 (tui_layout_window::specification): New method.
13788 (tui_layout_window::specification): New method.
13789 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13790 method.
13791 (class tui_layout_window) <specification>: New method.
13792 (class tui_layout_split) <specification>: New method.
13793
416eb92d
TT
137942020-02-22 Tom Tromey <tom@tromey.com>
13795
13796 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13797 * tui/tui-win.c (window_name_completer): Update comment.
13798 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13799 Declare method.
13800 (class tui_layout_window) <replace_window>: Likewise.
13801 (class tui_layout_split) <replace_window>: Likewise.
13802 (tui_set_layout): Don't declare.
13803 (tui_set_initial_layout): Declare function.
13804 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13805 (asm_regs_layout): New globals.
13806 (tui_current_layout, show_layout): Remove.
13807 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13808 (find_layout, tui_apply_layout): New function.
13809 (layout_completer): Remove.
13810 (tui_next_layout): Reimplement.
13811 (tui_next_layout_command): New function.
13812 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13813 (tui_regs_layout): Reimplement.
13814 (tui_regs_layout_command): New function.
13815 (extract_display_start_addr): Rewrite.
13816 (next_layout, prev_layout): Remove.
13817 (tui_layout_window::replace_window): New method.
13818 (tui_layout_split::replace_window): New method.
13819 (destroy_layout): New function.
13820 (layout_list): New global.
13821 (add_layout_command): New function.
13822 (initialize_layouts): Update.
13823 (tui_layout_command): New function.
13824 (_initialize_tui_layout): Install "layout" commands.
13825 * tui/tui-data.h (enum tui_layout_type): Remove.
13826 (tui_current_layout): Don't declare.
13827
0dbc2fc7
TT
138282020-02-22 Tom Tromey <tom@tromey.com>
13829
13830 * tui/tui-regs.c (tui_reg_layout): Remove.
13831 (tui_reg_command): Use tui_regs_layout.
13832 * tui/tui-layout.h (tui_reg_command): Declare.
13833 * tui/tui-layout.c (tui_reg_command): New function.
13834
5afe342e
TT
138352020-02-22 Tom Tromey <tom@tromey.com>
13836
13837 * tui/tui.c (tui_rl_delete_other_windows): Call
13838 tui_remove_some_windows.
13839 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13840 Declare method.
13841 (class tui_layout_window) <remove_windows>: New method.
13842 (class tui_layout_split) <remove_windows>: Declare.
13843 (tui_remove_some_windows): Declare.
13844 * tui/tui-layout.c (tui_remove_some_windows): New function.
13845 (tui_layout_split::remove_windows): New method.
13846
427326a8
TT
138472020-02-22 Tom Tromey <tom@tromey.com>
13848
13849 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13850 * tui/tui-layout.h (tui_next_layout): Declare.
13851 * tui/tui-layout.c (tui_next_layout): New function.
13852
3fe12b6d
TT
138532020-02-22 Tom Tromey <tom@tromey.com>
13854
13855 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13856 correct coordinates.
13857
59b8b5d2
TT
138582020-02-22 Tom Tromey <tom@tromey.com>
13859
13860 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13861 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13862 DATA_WIN case.
13863
2a3d458b
TT
138642020-02-22 Tom Tromey <tom@tromey.com>
13865
13866 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13867 TUI_DISASM_WIN, not tui_win_list.
13868
3f0cbb04
TT
138692020-02-22 Tom Tromey <tom@tromey.com>
13870
13871 * valprint.c (generic_val_print_enum_1)
13872 (val_print_type_code_flags): Style member names.
13873 * rust-lang.c (val_print_struct, rust_print_enum)
13874 (rust_print_struct_def, rust_internal_print_type): Style member
13875 names.
13876 * p-valprint.c (pascal_object_print_value_fields): Style member
13877 names. Only call fprintf_symbol_filtered for static members.
13878 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13879 * f-valprint.c (f_val_print): Style member names.
13880 * f-typeprint.c (f_type_print_base): Style member names.
13881 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13882 call fprintf_symbol_filtered for static members.
13883 (cp_print_class_member): Style member names.
13884 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13885 member names.
13886 * ada-valprint.c (ada_print_scalar): Style enum names.
13887 (ada_val_print_enum): Likewise.
13888 * ada-typeprint.c (print_enum_type): Style enum names.
13889
d4d947ae
TT
138902020-02-21 Tom Tromey <tom@tromey.com>
13891
13892 * psympriv.h (struct partial_symtab): Update comment.
13893
e94e944b
TT
138942020-02-21 Tom Tromey <tromey@adacore.com>
13895
13896 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13897 type is CORE_ADDR.
13898
1eb73179
TV
138992020-02-21 Tom de Vries <tdevries@suse.de>
13900
13901 PR gdb/25534
13902 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13903 if dependencies[i]->user != NULL.
13904
4f180d53
AT
139052020-02-21 Ali Tamur <tamur@google.com>
13906
13907 * dwarf2/read.c (dwarf2_name): Add null check.
13908
22b6cd70
TT
139092020-02-20 Tom Tromey <tom@tromey.com>
13910
13911 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13912 ">=", in binary search.
13913 (dwarf2_find_containing_comp_unit): New overload.
13914 (run_test): New self-test.
13915 (_initialize_dwarf2_read): Register new test.
13916
bd0cf5a6
NC
139172020-02-20 Nelson Chu <nelson.chu@sifive.com>
13918
13919 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13920 * riscv-tdep.h: Likewise.
13921 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13922 rv32-only CSR.
13923 * features/riscv/64bit-csr.xml: Regenerated.
13924
3f702acd
SDJ
139252020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13926 Tom Tromey <tom@tromey.com>
13927
13928 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13929 of 'fputc_unfiltered'.
13930 (putchar_unfiltered): Call 'fputc_unfiltered'.
13931 (fputc_unfiltered): Call 'fputs_unfiltered'.
13932
d13c7322
AB
139332020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13934
13935 * config.in: Regenerate.
13936 * configure: Regenerate.
13937 * configure.ac: Add --with-python-libdir option.
13938 * main.c: Use WITH_PYTHON_LIBDIR.
13939
869d8950
TT
139402020-02-19 Tom Tromey <tom@tromey.com>
13941
13942 * symtab.c (general_symbol_info::compute_and_set_names): Use
13943 obstack_strndup. Simplify call to symbol_set_demangled_name.
13944
298e9637
SM
139452020-02-19 Simon Marchi <simon.marchi@efficios.com>
13946
13947 * dwarf2/read.c (allocate_signatured_type_table,
13948 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13949 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13950 Remove objfile parameter, update all callers.
13951
08410482
DE
139522020-02-19 Doug Evans <dje@google.com>
13953
13954 PR rust/25535
13955 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13956 rust_enum_variant calculation.
13957
dfdeeca1
TT
139582020-02-19 Tom Tromey <tromey@adacore.com>
13959
13960 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13961
2ef5453b
TT
139622020-02-19 Tom Tromey <tromey@adacore.com>
13963
13964 * ada-lang.c (cache_symbol): Use obstack_strdup.
13965
9f1528a1
AB
139662020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13967
13968 * configure: Regenerate.
13969
d3c22fa8
TT
139702020-02-19 Tom Tromey <tromey@adacore.com>
13971
13972 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13973 NULL check.
13974
bf84f706
MR
139752020-02-19 Maciej W. Rozycki <macro@wdc.com>
13976
13977 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13978
d1c9b20f
AB
139792020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13980
13981 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13982 if GDBSERVER is not defined.
13983 (riscv_tdesc_cache): Likewise, also store const target_desc.
13984 (STATIC_IN_GDB): Define.
13985 (riscv_create_target_description): Update declaration with
13986 STATIC_IN_GDB.
13987 (riscv_lookup_target_description): New function, only define if
13988 GDBSERVER is not defined.
13989 * arch/riscv.h (riscv_create_target_description): Declare only
13990 when GDBSERVER is defined.
13991 (riscv_lookup_target_description): New declaration when GDBSERVER
13992 is not defined.
13993 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13994 (riscv_linux_read_features): ...this, and return
13995 riscv_gdbarch_features instead of target_desc.
13996 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13997 (riscv_linux_read_description): Rename to...
13998 (riscv_linux_read_features): ...this.
13999 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14000 Update to use riscv_gdbarch_features and
14001 riscv_lookup_target_description.
14002 * riscv-tdep.c (riscv_find_default_target_description): Use
14003 riscv_lookup_target_description instead of
14004 riscv_create_target_description.
14005
373d7ac0
SM
140062020-02-18 Simon Marchi <simon.marchi@efficios.com>
14007
14008 * valprint.c (generic_val_print_enum_1): When printing a flag
14009 enum with value 0 and there is no enumerator with value 0, print
14010 just "0" instead of "(unknown: 0x0)".
14011
b29a2df0
SM
140122020-02-18 Simon Marchi <simon.marchi@efficios.com>
14013
14014 * valprint.c (generic_val_print_enum_1): Print unknown part of
14015 flag enum in hex.
14016
6740f0cc
SM
140172020-02-18 Simon Marchi <simon.marchi@efficios.com>
14018
14019 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14020 flag enums to contain duplicate enumerators.
14021 * valprint.c (generic_val_print_enum_1): Update comment.
14022
edd45eb0
SM
140232020-02-18 Simon Marchi <simon.marchi@efficios.com>
14024
14025 * dwarf2/read.c: Include "count-one-bits.h".
14026 (update_enumeration_type_from_children): If an enumerator has
14027 multiple bits set, don't treat the enumeration as a "flag enum".
14028 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14029 of flag enums have 0 or 1 bit set.
14030
6d0cf446
BE
140312020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14032
14033 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14034 conversion.
14035 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14036 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14037 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14038 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14039 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14040
7001c1b7
SM
140412020-02-18 Simon Marchi <simon.marchi@efficios.com>
14042
14043 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14044
fdb61c6c
SM
140452020-02-14 Simon Marchi <simon.marchi@efficios.com>
14046
14047 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14048 displaced_step_closure_up.
14049 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14050 (struct displaced_step_closure_up):
14051 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14052 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14053 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14054 Likewise.
14055 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14056 * gdbarch.c, gdbarch.h: Re-generate.
14057 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14058 displaced_step_closure_up.
14059 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14060 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14061 * infrun.h (displaced_step_closure_up): New type alias.
14062 (struct displaced_step_inferior_state) <step_closure>: Change
14063 type to displaced_step_closure_up.
14064 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14065 displaced_step_closure_up.
14066 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14067
a4a38eb4
TT
140682020-02-14 Tom Tromey <tom@tromey.com>
14069
14070 * minidebug.c (gnu_debug_key): New global.
14071 (find_separate_debug_file_in_section): Use it.
14072
e8217e61
SM
140732020-02-14 Simon Marchi <simon.marchi@efficios.com>
14074
14075 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14076 std::unique_ptr.
14077 * gdbarch.c: Re-generate.
14078 * gdbarch.h: Re-generate.
14079 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14080 change.
14081 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14082 type to std::unique_ptr.
14083 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14084 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14085 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14086 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14087 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14088 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14089 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14090 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14091 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14092
d8d83535
SM
140932020-02-14 Simon Marchi <simon.marchi@efficios.com>
14094
14095 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14096 std::unique_ptr.
14097 (displaced_step_clear): Rename to...
14098 (displaced_step_reset): ... this. Just call displaced->reset ().
14099 (displaced_step_clear_cleanup): Rename to...
14100 (displaced_step_reset_cleanup): ... this.
14101 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14102 (displaced_step_fixup): Likewise.
14103 (resume_1): Likewise.
14104 (handle_inferior_event): Restore child's memory before calling
14105 displaced_step_fixup on the parent.
14106 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14107 to std::unique_ptr.
14108 <step_closure>: Change type to std::unique_ptr.
14109
5f661e03
SM
141102020-02-14 Simon Marchi <simon.marchi@efficios.com>
14111
14112 * arm-tdep.c: Include count-one-bits.h.
14113 (cleanup_block_store_pc): Use count_one_bits.
14114 (cleanup_block_load_pc): Use count_one_bits.
14115 (arm_copy_block_xfer): Use count_one_bits.
14116 (thumb2_copy_block_xfer): Use count_one_bits.
14117 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14118 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14119 (thumb_get_next_pcs_raw): Use count_one_bits.
14120 (arm_get_next_pcs_raw): Use count_one_bits_l.
14121 * arch/arm.c (bitcount): Remove.
14122 * arch/arm.h (bitcount): Remove.
14123
8084e579
TT
141242020-02-14 Tom Tromey <tromey@adacore.com>
14125
14126 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14127 Update.
14128 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14129 * dwarf2/loc.c (call_site_find_chain_1): Return
14130 unique_xmalloc_ptr.
14131 (call_site_find_chain): Likewise.
14132
258bf0ee
RB
141332020-02-14 Richard Biener <rguenther@suse.de>
14134
14135 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14136 on expression with division operators.
14137
f98a8458
AKS
141382020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14139
14140 * MAINTAINERS (Write After Approval): Adding myself.
14141
d1437c0e
TT
141422020-02-12 Tom Tromey <tom@tromey.com>
14143
14144 * event-loop.c (event_data, gdb_event, event_handler_func):
14145 Remove.
14146
3d4560f7
TT
141472020-02-12 Tom Tromey <tom@tromey.com>
14148
14149 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14150 (dwarf2_frame_objfile_data): Add comment.
14151 (find_comp_unit, set_comp_unit): New functions.
14152 (dwarf2_frame_find_fde): Use find_comp_unit.
14153 (dwarf2_build_frame_info): Use set_comp_unit.
14154
21982304
TT
141552020-02-12 Tom Tromey <tom@tromey.com>
14156
14157 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14158 (comp_unit): Don't initialize objfile.
14159 (execute_cfa_program): Add text_offset parameter.
14160 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14161 (dwarf2_frame_cache): Update.
14162 (dwarf2_build_frame_info): Don't set "objfile" member.
14163
4debb237
TT
141642020-02-12 Tom Tromey <tom@tromey.com>
14165
14166 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14167 (decode_frame_entry): Likewise.
14168 (dwarf2_build_frame_info): Update.
14169
0d404d44
TT
141702020-02-12 Tom Tromey <tom@tromey.com>
14171
14172 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14173 (decode_frame_entry_1): Use the comp_unit obstack.
14174
a7a3ae5c
TT
141752020-02-12 Tom Tromey <tom@tromey.com>
14176
14177 * dwarf2/frame.c (struct comp_unit): Add initializers and
14178 constructor.
14179 (dwarf2_frame_objfile_data): Store a comp_unit.
14180 (dwarf2_frame_find_fde): Update.
14181 (dwarf2_build_frame_info): Use "new".
14182
a9d65418
TT
141832020-02-12 Tom Tromey <tom@tromey.com>
14184
14185 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14186 (dwarf2_fde_table): Typedef for std::vector.
14187 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14188 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14189 (decode_frame_entry): Update.
14190 (dwarf2_build_frame_info): Use "new".
14191
7559c217
CB
141922020-02-12 Christian Biesinger <cbiesinger@google.com>
14193
14194 * arm-tdep.c (arm_gdbarch_init): Update.
14195 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14196 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14197 have_neon, is_m>: Change to bool.
14198
aeefc73c
CB
141992020-02-12 Christian Biesinger <cbiesinger@google.com>
14200
14201 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14202
d27b8e5f
TT
142032020-02-12 Tom Tromey <tom@tromey.com>
14204
14205 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14206
cd5900f3
HD
142072020-02-12 Hannes Domani <ssbssa@yahoo.de>
14208
14209 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14210 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14211
f056b22b
TT
142122020-02-11 Tom Tromey <tom@tromey.com>
14213
14214 * psymtab.h: Update comment.
14215
f92ff6b5
TT
142162020-02-11 Tom Tromey <tom@tromey.com>
14217
14218 * gdb_obstack.h (struct auto_obstack): Use
14219 DISABLE_COPY_AND_ASSIGN.
14220
3fd6912b
TT
142212020-02-11 Tom Tromey <tom@tromey.com>
14222
14223 * dwarf2/frame.h (struct objfile): Don't forward declare.
14224
69ed9b74
CB
142252020-02-11 Christian Biesinger <cbiesinger@google.com>
14226
14227 * cris-tdep.c (cris_supply_gregset): Change signature to match
14228 what struct regset expects.
14229 (cris_regset): New struct.
14230 (fetch_core_registers): Remove.
14231 (cris_iterate_over_regset_sections): New function.
14232 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14233 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14234
bda874f6
CB
142352020-02-11 Christian Biesinger <cbiesinger@google.com>
14236
14237 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14238 registers.
14239
754e1564
CB
142402020-02-11 Christian Biesinger <cbiesinger@google.com>
14241
14242 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14243
8ddd8e0e
SM
142442020-02-11 Simon Marchi <simon.marchi@efficios.com>
14245
14246 * configure: Re-generate.
14247
898e7f60
SM
142482020-02-11 Simon Marchi <simon.marchi@efficios.com>
14249
14250 * configure: Re-generate.
14251
58df732b
SM
142522020-02-11 Simon Marchi <simon.marchi@efficios.com>
14253
14254 * acinclude: Update warning.m4 path.
14255 * warning.m4: Move to gdbsupport.
14256
da5bd37e
TT
142572020-02-11 Tom Tromey <tromey@adacore.com>
14258
14259 * remote.c (remote_console_output): Update.
14260 * printcmd.c (printf_command): Update.
14261 * event-loop.c (gdb_wait_for_event): Update.
14262 * linux-nat.c (sigchld_handler): Update.
14263 * remote-sim.c (gdb_os_write_stdout): Update.
14264 (gdb_os_flush_stdout): Update.
14265 (gdb_os_flush_stderr): Update.
14266 (gdb_os_write_stderr): Update.
14267 * exceptions.c (print_exception): Update.
14268 * remote-fileio.c (remote_fileio_func_read): Update.
14269 (remote_fileio_func_write): Update.
14270 * tui/tui.c (tui_enable): Update.
14271 * tui/tui-interp.c (tui_interp::init): Update.
14272 * utils.c (init_page_info): Update.
14273 (putchar_unfiltered, fputc_unfiltered): Update.
14274 (gdb_flush): Update.
14275 (emit_style_escape): Update.
14276 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14277 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14278 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14279 (stderr_file::write): Update.
14280 (stderr_file::puts): Update.
14281 * ui-file.h (ui_file_isatty, ui_file_write)
14282 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14283 (ui_file_puts): Don't declare.
14284
85f0dd3c
TV
142852020-02-10 Tom de Vries <tdevries@suse.de>
14286
14287 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14288 sentinel to char *.
14289
2e927613
TV
142902020-02-09 Tom de Vries <tdevries@suse.de>
14291
14292 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14293 filename if it matches "<artificial>".
14294
6bafc845
HD
142952020-02-09 Hannes Domani <ssbssa@yahoo.de>
14296
14297 * windows-tdep.c (struct enum_value_name): New struct.
14298 (create_enum): New function.
14299 (windows_get_siginfo_type): Create and use enum types.
14300
7928d571
HD
143012020-02-09 Hannes Domani <ssbssa@yahoo.de>
14302
14303 * NEWS: Mention $_siginfo support for Windows.
14304 * windows-nat.c (handle_exception): Set siginfo_er.
14305 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14306 (windows_xfer_siginfo): New function.
14307 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14308 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14309 (init_windows_gdbarch_data): New function.
14310 (get_windows_gdbarch_data): New function.
14311 (windows_get_siginfo_type): New function.
14312 (windows_init_abi): Register windows_get_siginfo_type.
14313 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14314
6751ebae
TT
143152020-02-08 Tom Tromey <tom@tromey.com>
14316
14317 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14318 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14319 <keep>: Declare method.
14320 <m_keep>: Remove member.
14321 <~cutu_reader>: Remove.
14322 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14323 (cutu_reader::cutu_reader): Update.
14324 (cutu_reader::keep): Rename from ~cutu_reader.
14325 (process_psymtab_comp_unit, build_type_psymtabs_1)
14326 (process_skeletonless_type_unit, load_partial_comp_unit)
14327 (load_full_comp_unit, dwarf2_read_addr_index)
14328 (read_signatured_type): Update.
14329
135f5437
TT
143302020-02-08 Tom Tromey <tom@tromey.com>
14331
14332 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14333 "want_partial_unit" parameter.
14334 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14335 Inline check for DW_TAG_partial_unit.
14336 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14337
9f66ff1c
TT
143382020-02-08 Tom Tromey <tom@tromey.com>
14339
14340 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14341 read.c.
14342 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14343 read.c.
14344
c8a7a66f
TT
143452020-02-08 Tom Tromey <tom@tromey.com>
14346
14347 * dwarf2/read.c (read_address): Move to comp-unit.c.
14348 (dwarf2_rnglists_process, dwarf2_ranges_process)
14349 (read_attribute_value, dwarf_decode_lines_1)
14350 (var_decode_location, decode_locdesc): Update.
14351 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14352 read.c. Remove "cu" parameter.
14353 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14354 method.
14355
8266302d
TT
143562020-02-08 Tom Tromey <tom@tromey.com>
14357
14358 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14359 (read_indirect_line_string): Update.
14360 * dwarf2/comp-unit.c (read_offset): Remove.
14361 (read_comp_unit_head): Update.
14362 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14363 method.
14364 (read_offset): Don't declare.
14365
4057dfde
TT
143662020-02-08 Tom Tromey <tom@tromey.com>
14367
14368 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14369 * dwarf2/read.c (struct comp_unit_head): Move to
14370 dwarf2/comp-unit.h.
14371 (enum class rcuh_kind): Move to comp-unit.h.
14372 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14373 (read_comp_unit_head, error_check_comp_unit_head)
14374 (read_and_check_comp_unit_head): Move to comp-unit.c.
14375 (read_offset, dwarf_unit_type_name): Likewise.
14376 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14377 (cutu_reader::cutu_reader, read_call_site_scope)
14378 (find_partial_die, follow_die_offset): Update.
14379 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14380
24aa364d
TT
143812020-02-08 Tom Tromey <tom@tromey.com>
14382
14383 * dwarf2/read.c (read_offset_1): Move to leb.c.
14384 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14385 (dwarf_decode_macro_bytes): Update.
14386 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14387 * dwarf2/leb.h (read_offset): Declare.
14388
2c7d5afc
TT
143892020-02-08 Tom Tromey <tom@tromey.com>
14390
14391 * dwarf2/read.c (dwarf2_section_size): Remove.
14392 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14393 Update.
14394 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14395
4075cb26
TT
143962020-02-08 Tom Tromey <tom@tromey.com>
14397
14398 * dwarf2/read.c (read_initial_length): Move to leb.c.
14399 * dwarf2/leb.h (read_initial_length): Declare.
14400 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14401 handle_nonstd parameter.
14402 * dwarf2/frame.c (read_initial_length): Remove.
14403 (decode_frame_entry_1): Update.
14404
09ba997f
TT
144052020-02-08 Tom Tromey <tom@tromey.com>
14406
14407 * dwarf2/loc.c (dwarf2_find_location_expression)
14408 (dwarf_evaluate_loc_desc::get_tls_address)
14409 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14410 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14411 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14412 (dwarf2_compile_property_to_c)
14413 (dwarf2_loc_desc_get_symbol_read_needs)
14414 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14415 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14416 (loclist_describe_location, loclist_tracepoint_var_ref)
14417 (loclist_generate_c_location): Update.
14418 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14419 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14420 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14421 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14422 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14423 (dwarf2_per_cu_data::addr_size)
14424 (dwarf2_per_cu_data::ref_addr_size)
14425 (dwarf2_per_cu_data::text_offset)
14426 (dwarf2_per_cu_data::addr_type): Now methods.
14427 (per_cu_header_read_in): Make per_cu "const".
14428 (dwarf2_version): Remove.
14429 (dwarf2_per_cu_data::int_type): Now a method.
14430 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14431 (set_die_type, read_array_type, read_subrange_index_type)
14432 (read_tag_string_type, read_subrange_type): Update.
14433 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14434 offset_size, ref_addr_size, text_offset, addr_type, version,
14435 objfile, int_type, addr_sized_int_type>: Declare methods.
14436
96c738c0
TT
144372020-02-08 Tom Tromey <tom@tromey.com>
14438
14439 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14440 Move earlier.
14441
8fdd972c
TT
144422020-02-08 Tom Tromey <tom@tromey.com>
14443
14444 * dwarf2/read.h (dwarf_line_debug): Declare.
14445 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14446 * dwarf2/read.c: Move line_header code to new files.
14447 (dwarf_line_debug): No longer static.
14448 * dwarf2/line-header.c: New file.
14449 * dwarf2/line-header.h: New file.
14450
03075812
TT
144512020-02-08 Tom Tromey <tom@tromey.com>
14452
14453 * dwarf2/read.c (struct line_header) <file_full_name,
14454 file_file_name>: Return unique_xmalloc_ptr.
14455 (line_header::file_file_name): Update.
14456 (line_header::file_full_name): Update.
14457 (dw2_get_file_names_reader): Update.
14458 (macro_start_file): Update.
14459
bb822404
TT
144602020-02-08 Tom Tromey <tom@tromey.com>
14461
14462 * dwarf2/read.c (struct line_header) <file_full_name,
14463 file_file_name>: Declare methods.
14464 (dw2_get_file_names_reader): Update.
14465 (file_file_name): Now a method.
14466 (file_full_name): Likewise.
14467 (macro_start_file): Update.
14468
009b64fc
TT
144692020-02-08 Tom Tromey <tom@tromey.com>
14470
14471 * dwarf2/read.c (dwarf_always_disassemble)
14472 (show_dwarf_always_disassemble): Move to loc.c.
14473 (_initialize_dwarf2_read): Move "always-disassemble" registration
14474 to loc.c.
14475 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14476 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14477 static.
14478 (show_dwarf_always_disassemble): Move from read.c.
14479 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14480
5895093f
TT
144812020-02-08 Tom Tromey <tom@tromey.com>
14482
14483 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14484 (create_quick_file_names_table): Return htab_up.
14485 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14486 Update.
14487 * dwarf2/read.h (struct dwarf2_per_objfile)
14488 <quick_file_names_table>: Now htab_up.
14489
b3b32279
TT
144902020-02-08 Tom Tromey <tom@tromey.com>
14491
14492 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14493
1d33d811
TT
144942020-02-08 Tom Tromey <tom@tromey.com>
14495
14496 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14497 Rewrite.
14498 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14499 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14500 (abbrev_table::abbrev_table): No longer inline.
14501 (ABBREV_HASH_SIZE): Remove.
14502 (abbrev_table::m_abbrevs): Now an htab_up.
14503
86de1d91
TT
145042020-02-08 Tom Tromey <tom@tromey.com>
14505
14506 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14507 (cutu_reader): Update.
14508 (build_type_psymtabs_1): Update.
14509 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14510 (abbrev_table::alloc_abbrev): Update.
14511 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14512 (abbrev_table::read): New static method, renamed from
14513 abbrev_table_read_table.
14514 (abbrev_table::alloc_abbrev)
14515 (abbrev_table::add_abbrev): Now private.
14516 (abbrev_table::abbrev_table): Now private.
14517 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14518
0335378b
TT
145192020-02-08 Tom Tromey <tom@tromey.com>
14520
14521 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14522 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14523 htab_up.
14524
48b490f2
TT
145252020-02-08 Tom Tromey <tom@tromey.com>
14526
14527 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14528 htab_up.
14529 (lookup_dwo_unit_in_dwp): Update.
14530 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14531 on obstack.
14532
bc68fb19
TT
145332020-02-08 Tom Tromey <tom@tromey.com>
14534
14535 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14536 obstack.
14537
d15acc42
TT
145382020-02-08 Tom Tromey <tom@tromey.com>
14539
14540 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14541 line_header_hash.
14542 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14543 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14544 Change type to htab_up.
14545
eaa5fa8b
TT
145462020-02-08 Tom Tromey <tom@tromey.com>
14547
14548 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14549 htab_up. Don't allocate on obstack.
14550 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14551 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14552 Change type to htab_up.
14553
b0b6a987
TT
145542020-02-08 Tom Tromey <tom@tromey.com>
14555
14556 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14557 Change type to htab_up.
14558 * dwarf2/read.c (create_signatured_type_table_from_index)
14559 (create_signatured_type_table_from_debug_names)
14560 (create_all_type_units, add_type_unit)
14561 (lookup_dwo_signatured_type, lookup_signatured_type)
14562 (process_skeletonless_type_unit): Update.
14563 (create_debug_type_hash_table, create_debug_types_hash_table):
14564 Change type of types_htab.
14565 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14566 htab_up. Don't allocate on obstack.
14567 (create_cus_hash_table): Change type of cus_htab parameter.
14568 (struct dwo_file) <cus, tus>: Now htab_up.
14569 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14570 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14571 (queue_and_load_all_dwo_tus): Update.
14572 * dwarf2/index-write.c (write_gdbindex): Update.
14573 (write_debug_names): Update.
14574
39856def
TT
145752020-02-08 Tom Tromey <tom@tromey.com>
14576
14577 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14578 dwarf2/read.c. Remove "next" member. Add constructor ntad
14579 destructor.
14580 (struct dwarf2_per_objfile) <queue>: New member.
14581 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14582 dwarf2/read.h.
14583 (dwarf2_queue, dwarf2_queue_tail): Remove.
14584 (class dwarf2_queue_guard): Add parameter to constructor. Use
14585 DISABLE_COPY_AND_ASSIGN.
14586 <m_per_objfile>: New member.
14587 <~dwarf2_queue_guard>: Rewrite.
14588 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14589 Update.
14590 (~dwarf2_queue_item): New.
14591
3e225074
TT
145922020-02-08 Tom Tromey <tom@tromey.com>
14593
14594 * dwarf2/read.c (struct die_info) <has_children>: New member.
14595 (dw2_get_file_names_reader): Remove has_children.
14596 (dw2_get_file_names): Update.
14597 (read_cutu_die_from_dwo): Remove has_children.
14598 (cutu_reader::init_tu_and_read_dwo_dies)
14599 (cutu_reader::cutu_reader): Update.
14600 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14601 Remove has_children.
14602 (build_type_psymtabs_1, process_skeletonless_type_unit)
14603 (load_partial_comp_unit, load_full_comp_unit): Update.
14604 (create_dwo_cu_reader): Remove has_children.
14605 (create_cus_hash_table, read_die_and_children): Update.
14606 (read_full_die_1,read_full_die): Remove has_children.
14607 (read_signatured_type): Update.
14608 (class cutu_reader) <has_children>: Remove.
14609
82ca8957
TT
146102020-02-08 Tom Tromey <tom@tromey.com>
14611
14612 * dwarf2/expr.c: Rename from dwarf2expr.c.
14613 * dwarf2/expr.h: Rename from dwarf2expr.h.
14614 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14615 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14616 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14617 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14618 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14619 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14620 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14621 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14622 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14623 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14624 * dwarf2/loc.c: Rename from dwarf2loc.c.
14625 * dwarf2/loc.h: Rename from dwarf2loc.h.
14626 * dwarf2/read.c: Rename from dwarf2read.c.
14627 * dwarf2/read.h: Rename from dwarf2read.h.
14628 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14629 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14630 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14631 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14632 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14633 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14634 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14635 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14636 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14637 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14638 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14639 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14640 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14641 Update.
14642 * Makefile.in (COMMON_SFILES): Update.
14643 (HFILES_NO_SRCDIR): Update.
14644
9e35d499
TT
146452020-02-08 Tom Tromey <tom@tromey.com>
14646
14647 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14648 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14649
1eba2311
TT
146502020-02-08 Tom Tromey <tom@tromey.com>
14651
14652 * dwarf2read.h (struct die_info): Don't declare.
14653
e41c2da2
TT
146542020-02-08 Tom Tromey <tom@tromey.com>
14655
14656 * dwarf2read.h (die_info_ptr): Remove typedef.
14657
4fc6c0d5
TT
146582020-02-08 Tom Tromey <tom@tromey.com>
14659
14660 * dwarf2read.c (read_call_site_scope)
14661 (handle_data_member_location, dwarf2_add_member_fn)
14662 (mark_common_block_symbol_computed, read_common_block)
14663 (attr_to_dynamic_prop, partial_die_info::read)
14664 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14665 (dwarf2_symbol_mark_computed, set_die_type): Update.
14666 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14667 method.
14668 (attr_form_is_block): Don't declare.
14669 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14670
cd6c91b4
TT
146712020-02-08 Tom Tromey <tom@tromey.com>
14672
14673 * dwarf2read.c (dwarf2_find_base_address, )
14674 (read_call_site_scope, rust_containing_type)
14675 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14676 (handle_data_member_location, dwarf2_add_member_fn)
14677 (get_alignment, read_structure_type, process_structure_scope)
14678 (mark_common_block_symbol_computed, read_common_block)
14679 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14680 (partial_die_info::read, read_attribute_value, new_symbol)
14681 (lookup_die_type, dwarf2_get_ref_die_offset)
14682 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14683 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14684 (dwarf2_symbol_mark_computed): Update.
14685 * dwarf2/attribute.h (struct attribute) <value_as_address,
14686 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14687 methods.
14688 (value_as_address, attr_form_is_section_offset)
14689 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14690 * dwarf2/attribute.c (attribute::value_as_address)
14691 (attribute::form_is_section_offset, attribute::form_is_constant)
14692 (attribute::form_is_ref): Now methods.
14693
162dce55
TT
146942020-02-08 Tom Tromey <tom@tromey.com>
14695
14696 * dwarf2read.c (struct attribute, DW_STRING)
14697 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14698 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14699 (attr_form_is_block, attr_form_is_section_offset)
14700 (attr_form_is_constant, attr_form_is_ref): Move.
14701 * dwarf2/attribute.h: New file.
14702 * dwarf2/attribute.c: New file, from dwarf2read.c.
14703 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14704
3054dd54
TT
147052020-02-08 Tom Tromey <tom@tromey.com>
14706
14707 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14708 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14709 Move.
14710 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14711 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14712 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14713 abbrev.c.
14714 * dwarf2/abbrev.h: New file.
14715 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14716 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14717
96b79293
TT
147182020-02-08 Tom Tromey <tom@tromey.com>
14719
14720 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14721 (dwarf2_section_size, dwarf2_get_section_info)
14722 (create_signatured_type_table_from_debug_names)
14723 (create_addrmap_from_aranges, read_debug_names_from_section)
14724 (get_gdb_index_contents_from_section, read_comp_unit_head)
14725 (error_check_comp_unit_head, read_abbrev_offset)
14726 (create_debug_type_hash_table, init_cu_die_reader)
14727 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14728 (read_comp_units_from_section, create_cus_hash_table)
14729 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14730 (create_dwp_v2_section, dwarf2_rnglists_process)
14731 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14732 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14733 (read_indirect_string_from_dwz, read_addr_index_1)
14734 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14735 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14736 (fill_in_loclist_baton): Update.
14737 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14738 get_containing_section, get_bfd_owner, get_bfd_section,
14739 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14740 (dwarf2_read_section, get_section_name, get_section_file_name)
14741 (get_containing_section, get_section_bfd_owner)
14742 (get_section_bfd_section, get_section_name, get_section_file_name)
14743 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14744 declare.
14745 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14746 (dwarf2_section_info::get_bfd_owner)
14747 (dwarf2_section_info::get_bfd_section)
14748 (dwarf2_section_info::get_name)
14749 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14750 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14751 (dwarf2_section_info::read): Now methods.
14752 * dwarf-index-write.c (class debug_names): Update.
14753
2c86cff9
TT
147542020-02-08 Tom Tromey <tom@tromey.com>
14755
14756 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14757 Move to dwarf2/section.h.
14758 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14759 (get_section_bfd_section, get_section_name)
14760 (get_section_file_name, get_section_id, get_section_flags)
14761 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14762 dwarf2/section.c.
14763 * dwarf2/section.h: New file.
14764 * dwarf2/section.c: New file, from dwarf2read.c.
14765 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14766
f4382c45
TT
147672020-02-08 Tom Tromey <tom@tromey.com>
14768
14769 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14770 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14771 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14772 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14773 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14774 * dwarf2/leb.h: New file, from dwarf2read.c.
14775 * dwarf2/leb.c: New file, from dwarf2read.c.
14776 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14777 Remove.
14778 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14779 (COMMON_SFILES): Add dwarf2/leb.c.
14780
01840b7a
JB
147812020-02-08 Joel Brobecker <brobecker@adacore.com>
14782
14783 GDB 9.1 released.
14784
dfcb27e4
IB
147852020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14786
14787 PR gdb/25190:
aac66a4c
SM
14788 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14789 * gdb/remote.c (remote_console_output): Update.
14790 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14791 (ui_file_puts): ...this.
14792 * gdb/ui-file.h (ui_file_puts): Add declaration.
14793 * gdb/utils.c (emit_style_escape): Update.
14794 (flush_wrap_buffer): Update.
14795 (fputs_maybe_filtered): Update.
14796 (fputs_unfiltered): Add function.
dfcb27e4 14797
faa17681
IB
147982020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14799
aac66a4c
SM
14800 * gdb/event-loop.c (gdb_wait_for_event): Update.
14801 * gdb/printcmd.c (printf_command): Update.
14802 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14803 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14804 (gdb_os_flush_stderr): Update.
14805 * gdb/remote.c (remote_console_output): Update.
14806 * gdb/ui-file.c (gdb_flush): Rename to...
14807 (ui_file_flush): ...this.
14808 (stderr_file::write): Update.
14809 (stderr_file::puts): Update.
14810 * gdb/ui-file.h (gdb_flush): Rename to...
14811 (ui_file_flush): ...this.
14812 * gdb/utils.c (gdb_flush): Add function.
14813 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14814
5abbbe1d
TT
148152020-02-07 Tom Tromey <tromey@adacore.com>
14816
14817 PR breakpoints/24915:
14818 * source.c (find_and_open_source): Do not check basenames_may_differ.
14819
919adfe8
TT
148202020-02-07 Tom Tromey <tom@tromey.com>
14821
14822 * README: Update gdbserver documentation.
14823 * gdbserver: Move to top level.
14824 * configure.tgt (build_gdbserver): Remove.
14825 * configure.ac: Remove --enable-gdbserver.
14826 * configure: Rebuild.
14827 * Makefile.in (distclean): Don't mention gdbserver.
14828
1d5d29e7
SV
148292020-02-06 Shahab Vahedi <shahab@synopsys.com>
14830
14831 * source-cache.c (source_cache::ensure): Surround
14832 get_plain_source_lines with a try/catch.
14833 (source_cache::get_line_charpos): Get rid of try/catch
14834 and only check for the return value of "ensure".
14835 * tui/tui-source.c (tui_source_window::set_contents):
14836 Simplify "nlines" calculation.
14837
6eb1129c
SV
148382020-02-06 Shahab Vahedi <shahab@synopsys.com>
14839
14840 * MAINTAINERS (Write After Approval): Add myself.
14841
c6a42d11
CB
148422020-02-05 Christian Biesinger <cbiesinger@google.com>
14843
14844 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14845 function call.
14846
c8ecdda6
CB
148472020-02-05 Christian Biesinger <cbiesinger@google.com>
14848
14849 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14850
f6480e70
MR
148512020-02-05 Maciej W. Rozycki <macro@wdc.com>
14852
14853 * nat/riscv-linux-tdesc.h: New file.
14854 * nat/riscv-linux-tdesc.c: New file, taking code from...
14855 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14856 ... here.
14857 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14858 NATDEPFILES.
14859
dcc9fbc6
AB
148602020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14861
14862 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14863 we don't set the fake simulator ptid to the null_ptid.
14864
719546c4
SM
148652020-02-03 Simon Marchi <simon.marchi@efficios.com>
14866
14867 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14868 * gdbthread.h (class thread_info) <resumed>: Likewise.
14869 * infrun.c (resume_1): Likewise.
14870 (proceed): Likewise.
14871 (infrun_thread_stop_requested): Likewise.
14872 (stop_all_threads): Likewise.
14873 (handle_inferior_event): Likewise.
14874 (restart_threads): Likewise.
14875 (finish_step_over): Likewise.
14876 (keep_going_stepped_thread): Likewise.
14877 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14878 (linux_handle_extended_wait): Likewise.
14879 * record-btrace.c (get_thread_current_frame_id): Likewise.
14880 * record-full.c (record_full_wait_1): Likewise.
14881 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14882 * target.c (target_resume): Likewise.
14883 * thread.c (set_running_thread): Likewise.
14884
e409c542
AKS
148852020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14886
14887 * f-valprint.c (f77_print_array_1): Changed datatype of index
14888 variable to LONGEST from int to enable it to contain bound
14889 values correctly.
14890
ee98c0da
MR
148912020-02-03 Maciej W. Rozycki <macro@wdc.com>
14892
14893 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14894 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14895 offsets according to FLEN determined.
14896 (riscv_linux_nat_target::read_description): Determine FLEN
14897 dynamically.
14898 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14899 according to FLEN determined.
14900 (riscv_linux_nat_target::store_registers): Likewise.
14901
aa66aac4
SV
149022020-02-01 Shahab Vahedi <shahab@synopsys.com>
14903
14904 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14905 when reg->group is empty and reggroup is not.
14906
fd9faca8
TT
149072020-01-31 Tom Tromey <tromey@adacore.com>
14908
14909 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14910 Call beneath target's mourn_inferior after unpushing.
14911
42330a68
AB
149122020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14913
14914 PR tui/9765
14915 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14916 have enough lines to fill the screen, still return the lowest
14917 address we found.
14918
7a27a45b
AB
149192020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14920
14921 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14922 '-', '<', and '>' commands.
14923
c47f70e2
PA
149242020-01-29 Pedro Alves <palves@redhat.com>
14925 Sergio Durigan Junior <sergiodj@redhat.com>
14926
14927 * infcmd.c (construct_inferior_arguments): Assert that
14928 'argc' is greater than 0.
14929
5133a315
LM
149302020-01-29 Luis Machado <luis.machado@linaro.org>
14931
14932 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14933 (BRK_INSN_MASK): Define to 0xd4200000.
14934 (aarch64_program_breakpoint_here_p): New function.
14935 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14936 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14937 breakpoint.c.
14938 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14939 breakpoint.h
14940 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14941 call gdbarch_program_breakpoint_here_p.
14942 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14943 default_program_breakpoint_here_p, changed return type to bool and
14944 simplified.
14945 * breakpoint.h (program_breakpoint_here): Moved prototype to
14946 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14947 return type to bool.
14948 * gdbarch.c: Regenerate.
14949 * gdbarch.h: Regenerate.
14950 * gdbarch.sh (program_breakpoint_here_p): New method.
14951 * infrun.c (handle_signal_stop): Call
14952 gdbarch_program_breakpoint_here_p.
14953
168f8c6b
TT
149542020-01-26 Tom Tromey <tom@tromey.com>
14955
14956 * ctfread.c (struct ctf_fp_info): Reindent.
14957 (_initialize_ctfread): Remove.
14958
128a391f
TT
149592020-01-26 Tom Tromey <tom@tromey.com>
14960
14961 * psymtab.c (partial_map_expand_apply)
14962 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14963 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14964 (psym_print_stats, psym_expand_symtabs_for_function)
14965 (psym_map_symbol_filenames, psym_map_matching_symbols)
14966 (psym_expand_symtabs_matching)
14967 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14968 (maintenance_check_psymtabs): Use new methods.
14969 * psympriv.h (struct partial_symtab) <readin_p,
14970 get_compunit_symtab>: New methods.
14971 <readin, compunit_symtab>: Remove members.
14972 (struct standard_psymtab): New.
14973 (struct legacy_psymtab): Derive from standard_psymtab.
14974 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14975 standard_psymtab.
14976 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14977
0494dbec
TT
149782020-01-26 Tom Tromey <tom@tromey.com>
14979
14980 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14981 read_dependencies. Add assert.
14982 * psymtab.c (partial_symtab::read_dependencies): New method.
14983 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14984 method.
14985 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14986 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14987 read_dependencies.
14988 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14989 Add assert.
14990
8566b89b
TT
149912020-01-26 Tom Tromey <tom@tromey.com>
14992
14993 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14994 Call expand_psymtab.
14995 (xcoff_read_symtab): Call expand_psymtab.
14996 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14997 legacy_expand_psymtab.
14998 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14999 method.
15000 (struct legacy_psymtab) <expand_psymtab>: Implement.
15001 <legacy_expand_psymtab>: New member.
15002 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15003 (parse_partial_symbols): Set legacy_expand_psymtab.
15004 (psymtab_to_symtab_1): Change argument order. Call
15005 expand_psymtab.
15006 (new_psymtab): Set legacy_expand_psymtab.
15007 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15008 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15009 expand_psymtab.
15010 (dwarf2_psymtab::expand_psymtab): Rename from
15011 psymtab_to_symtab_1. Call expand_psymtab.
15012 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15013 (dbx_end_psymtab): Likewise.
15014 (dbx_psymtab_to_symtab_1): Change argument order. Call
15015 expand_psymtab.
15016 (dbx_read_symtab): Call expand_psymtab.
15017 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15018 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15019 (ctf_psymtab::read_symtab): Call expand_psymtab.
15020
077cbab2
TT
150212020-01-26 Tom Tromey <tom@tromey.com>
15022
15023 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15024 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15025 messages.
15026 * mdebugread.c (mdebug_read_symtab): Remove prints.
15027 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15028 assert.
15029 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15030
891813be
TT
150312020-01-26 Tom Tromey <tom@tromey.com>
15032
15033 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15034 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15035 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15036 legacy_symtab.
15037 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15038 * psymtab.c (psymtab_to_symtab): Call method.
15039 (dump_psymtab): Update.
15040 * psympriv.h (struct partial_symtab): Add virtual destructor.
15041 <read_symtab>: New method.
15042 (struct legacy_symtab): New.
15043 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15044 (struct pst_map) <pst>: Now a legacy_psymtab.
15045 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15046 (new_psymtab): Use legacy_psymtab.
15047 * dwarf2read.h (struct dwarf2_psymtab): New.
15048 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15049 * dwarf2read.c (dwarf2_create_include_psymtab)
15050 (dwarf2_build_include_psymtabs, create_type_unit_group)
15051 (create_partial_symtab, process_psymtab_comp_unit_reader)
15052 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15053 (set_partial_user): Use dwarf2_psymtab.
15054 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15055 (psymtab_to_symtab_1, process_full_comp_unit)
15056 (process_full_type_unit, dwarf2_ranges_read)
15057 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15058 (dwarf_decode_lines): Use dwarf2_psymtab.
15059 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15060 (add_address_entry_worker, write_one_signatured_type)
15061 (recursively_count_psymbols, recursively_write_psymbols)
15062 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15063 (write_debug_names): Likewise.
15064 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15065 <pst>: Now a legacy_psymtab.
15066 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15067 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15068 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15069 * ctfread.c (struct ctf_psymtab): New.
15070 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15071 ctf_psymtab.
15072 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15073 (create_partial_symtab): Return a ctf_psymtab.
15074 (scan_partial_symbols): Update.
15075
c3693a1d
TT
150762020-01-26 Tom Tromey <tom@tromey.com>
15077
15078 * xcoffread.c (xcoff_start_psymtab): Use new.
15079 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15080 renamed from start_psymtab_common.
15081 * psympriv.h (struct partial_symtab): Add new constructor.
15082 (start_psymtab_common): Don't declare.
15083 * mdebugread.c (parse_partial_symbols): Use new.
15084 * dwarf2read.c (create_partial_symtab): Use new.
15085 * dbxread.c (start_psymtab): Use new.
15086 * ctfread.c (create_partial_symtab): Use new.
15087
32caafd0
TT
150882020-01-26 Tom Tromey <tom@tromey.com>
15089
15090 * xcoffread.c (xcoff_end_psymtab): Use new.
15091 * psymtab.c (start_psymtab_common): Use new.
15092 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15093 Update.
15094 * psympriv.h (struct partial_symtab): Add parameters to
15095 constructor. Don't inline.
15096 (allocate_psymtab): Don't declare.
15097 * mdebugread.c (new_psymtab): Use new.
15098 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15099 * dbxread.c (dbx_end_psymtab): Use new.
15100
abaa2f23
TT
151012020-01-26 Tom Tromey <tom@tromey.com>
15102
15103 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15104 allocate_psymtab. Update documentation.
15105 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15106 allocate_psymtab. Do not use new.
15107 (allocate_psymtab): Use new. Update.
15108
6d94535f
TT
151092020-01-26 Tom Tromey <tom@tromey.com>
15110
15111 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15112 * psymtab.c (psym_print_stats): Update.
15113 * psympriv.h (struct partial_symtab) <readin,
15114 psymtabs_addrmap_supported, anonymous>: Now bool.
15115 * mdebugread.c (psymtab_to_symtab_1): Update.
15116 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15117 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15118 (process_full_comp_unit, process_full_type_unit): Update.
15119 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15120 * ctfread.c (psymtab_to_symtab): Update.
15121
6f17252b
TT
151222020-01-26 Tom Tromey <tom@tromey.com>
15123
15124 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15125 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15126 * psymtab.c (psymtab_storage): Delete psymtabs.
15127 (psymtab_storage::allocate_psymtab): Use new.
15128 (psymtab_storage::discard_psymtab): Use delete.
15129 * psympriv.h (struct partial_symtab): Add constructor and
15130 initializers.
15131
f6f1cebc
TT
151322020-01-26 Tom Tromey <tom@tromey.com>
15133
15134 * machoread.c: Do not include psympriv.h.
15135
e47e48f6
PW
151362020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15137
15138 * NEWS: Mention the new option and the set/show commands.
15139
a2fedca9
PW
151402020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15141
15142 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15143 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15144 (validate_exec_file): New variables, enums, functions.
15145 (exec_file_locate_attach, print_section_info): Style the filenames.
15146 (_initialize_exec): Install show_exec_file_mismatch_command and
15147 set_exec_file_mismatch_command.
15148 * gdbcore.h (validate_exec_file): Declare.
15149 * infcmd.c (attach_command): Call validate_exec_file.
15150 * remote.c ( remote_target::remote_add_inferior): Likewise.
15151
7ffa82e1
AB
151522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15153
15154 * frame.c (find_frame_sal): Move call to get_next_frame into more
15155 inner scope.
15156 * inline-frame.c (inilne_state) <inline_state>: Update argument
15157 types.
15158 (inilne_state) <skipped_symbol>: Rename to...
15159 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15160 (skip_inline_frames): Build vector of skipped symbols and use this
15161 to reate the inline_state.
15162 (inline_skipped_symbol): Add a comment and some assertions, fetch
15163 skipped symbol from the list.
15164
3d92a3e3
AB
151652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15166
15167 * buildsym.c (lte_is_less_than): Delete.
15168 (buildsym_compunit::end_symtab_with_blockvector): Create local
15169 lambda function to sort line table entries, and use
15170 std::stable_sort instead of std::sort.
15171 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15172 markers when looking for a previous line.
15173
94a72be7
AB
151742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15175
15176 * dwarf2read.c (lnp_state_machine::record_line): Include
15177 end_sequence parameter in debug print out. Record the line if we
15178 are at an end_sequence marker even if it's not the start of a
15179 statement.
15180 * symmisc.c (maintenance_print_one_line_table): Print end of
15181 sequence markers with 'END' not '0'.
15182
53af73bf
PA
151832020-01-24 Pedro Alves <palves@redhat.com>
15184
15185 PR gdb/25410
15186 * thread.c (scoped_restore_current_thread::restore): Use
15187 switch_to_inferior_no_thread.
15188 * exec.c: Include "progspace-and-thread.h".
15189 (add_target_sections, remove_target_sections):
15190 scoped_restore_current_pspace_and_thread instead of
15191 scoped_restore_current_thread.
15192 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15193 and aspace to the inferior before calling clone_program_space.
15194 Remove stale comment.
15195
3050c6f4
CB
151962020-01-24 Christian Biesinger <cbiesinger@google.com>
15197
15198 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15199 (arm_netbsd_nat_target::fetch_registers): ...this.
15200 (arm_nbsd_nat_target::store_registers): Rename to...
15201 (arm_netbsd_nat_target::store_registers): ...this.
15202
73685c7e
CB
152032020-01-24 Christian Biesinger <cbiesinger@google.com>
15204
15205 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15206 register_t.
15207
89203d40
CB
152082020-01-24 Christian Biesinger <cbiesinger@google.com>
15209
15210 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15211 Update comment.
15212 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15213 Likewise.
15214 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15215 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15216 the correct replacement (iterate_over_regset_sections).
15217 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15218 Update comment.
15219
1ba1ac88
AB
152202020-01-24 Graham Markall <graham.markall@embecosm.com>
15221
15222 PR gdb/23718
15223 * gdb/python/python.c (execute_gdb_command): Call
15224 async_enable_stdin in catch block.
15225
f3364a6d
AB
152262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15227
15228 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15229 SWITCH_THRU_ALL_UIS.
15230
733d0a67
AB
152312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15232
15233 PR tui/9765
15234 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15235 comment, add extra parameter, and update to store previous symbol
15236 when appropriate.
15237 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15238 add extra parameter.
15239 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15240 remove unneeded parameter, add try/catch around gdb_print_insn,
15241 rewrite to add items to asm_lines vector.
15242 (tui_find_backward_disassembly_start_address): New function.
15243 (tui_find_disassembly_address): Updated throughout.
15244 (tui_disasm_window::set_contents): Update for changes to
15245 tui_disassemble.
15246 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15247 number of lines to scroll.
15248
b3b3bada
SM
152492020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15250
15251 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15252 (SECT_OFF_DATA): Likewise.
15253 (SECT_OFF_RODATA): Likewise.
15254 (SECT_OFF_TEXT): Likewise.
15255 (SECT_OFF_BSS): Likewise.
15256 (struct objfile) <text_section_offset, data_section_offset>: New
15257 methods.
15258 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15259 objfile::text_section_offset.
15260 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15261 * coffread.c (coff_symtab_read): Likewise.
15262 (enter_linenos): Likewise.
15263 (process_coff_symbol): Likewise.
15264 * ctfread.c (get_objfile_text_range): Likewise.
15265 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15266 Use objfile::data_section_offset.
15267 * dwarf2-frame.c (execute_cfa_program): Use
15268 objfile::text_section_offset.
15269 (dwarf2_frame_find_fde): Likewise.
15270 * dwarf2read.c (create_addrmap_from_index): Likewise.
15271 (create_addrmap_from_aranges): Likewise.
15272 (dw2_find_pc_sect_compunit_symtab): Likewise.
15273 (process_psymtab_comp_unit_reader): Likewise.
15274 (add_partial_symbol): Likewise.
15275 (add_partial_subprogram): Likewise.
15276 (process_full_comp_unit): Likewise.
15277 (read_file_scope): Likewise.
15278 (read_func_scope): Likewise.
15279 (read_lexical_block_scope): Likewise.
15280 (read_call_site_scope): Likewise.
15281 (dwarf2_rnglists_process): Likewise.
15282 (dwarf2_ranges_process): Likewise.
15283 (dwarf2_ranges_read): Likewise.
15284 (dwarf_decode_lines_1): Likewise.
15285 (new_symbol): Likewise.
15286 (dwarf2_fetch_die_loc_sect_off): Likewise.
15287 (dwarf2_per_cu_text_offset): Likewise.
15288 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15289 * hppa-tdep.c (read_unwind_info): Likewise.
15290 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15291 * psympriv.h (struct partial_symtab): Likewise.
15292 * psymtab.c (find_pc_sect_psymtab): Likewise.
15293 * solib-svr4.c (enable_break): Likewise.
15294 * stap-probe.c (relocate_address): Use
15295 objfile::data_section_offset.
15296 * xcoffread.c (enter_line_range): Use
15297 objfile::text_section_offset.
15298 (read_xcoff_symtab): Likewise.
15299
ab53f382
SM
153002020-01-23 Simon Marchi <simon.marchi@efficios.com>
15301
15302 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15303 declaration to narrower scopes.
15304
e7eee665
SM
153052020-01-23 Simon Marchi <simon.marchi@efficios.com>
15306
15307 * darwin-nat.h (struct darwin_exception_msg, enum
15308 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15309 Move up.
15310 (class darwin_nat_target) <wait_1, check_new_threads,
15311 decode_exception_message, decode_message, stop_inferior,
15312 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15313 * darwin-nat.c (darwin_check_new_threads): Rename to...
15314 (darwin_nat_target::check_new_threads): ... this.
15315 (darwin_suspend_inferior_it): Remove.
15316 (darwin_decode_exception_message): Rename to...
15317 (darwin_nat_target::decode_exception_message): ... this.
15318 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15319 (darwin_decode_message): Rename to...
15320 (darwin_nat_target::decode_message): ... this.
15321 (cancel_breakpoint): Rename to...
15322 (darwin_nat_target::cancel_breakpoint): ... this.
15323 (darwin_wait): Rename to...
15324 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15325 instead of iterate_over_inferiors.
15326 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15327 (darwin_stop_inferior): Rename to...
15328 (darwin_nat_target::stop_inferior): ... this.
15329 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15330 (darwin_init_thread_list): Rename to...
15331 (darwin_nat_target::init_thread_list): ... this.
15332 (darwin_ptrace_him): Rename to...
15333 (darwin_nat_target::ptrace_him): ... this.
15334 (darwin_nat_target::create_inferior): Pass lambda function to
15335 fork_inferior.
15336 (darwin_nat_target::detach): Call stop_inferior instead of
15337 darwin_stop_inferior.
15338 * fork-inferior.h (fork_inferior): Change init_trace_fun
15339 parameter to gdb::function_view.
15340 * fork-inferior.c (fork_inferior): Likewise.
15341
c162ed3e
HD
153422020-01-23 Hannes Domani <ssbssa@yahoo.de>
15343
15344 * i386-cygwin-tdep.c (core_process_module_section): Update.
15345 * windows-nat.c (struct lm_info_windows): Add text_offset.
15346 (windows_xfer_shared_libraries): Update.
15347 * windows-tdep.c (windows_xfer_shared_library):
15348 Add text_offset_cached argument.
15349 * windows-tdep.h (windows_xfer_shared_library): Update.
15350
a1237872
SM
153512020-01-21 Simon Marchi <simon.marchi@efficios.com>
15352
15353 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15354
b3ee6dd9
SM
153552020-01-21 Simon Marchi <simon.marchi@efficios.com>
15356
15357 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15358 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15359 replace with range-based for.
15360 (gdbsim_interrupt_inferior): Remove.
15361 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15362 with a range-based for. Inline code from
15363 gdbsim_interrupt_inferior.
15364
f9fac3c8
SM
153652020-01-21 Simon Marchi <simon.marchi@efficios.com>
15366
15367 * infrun.c (proceed): Fix indentation.
15368
f6474de9
TT
153692020-01-21 Tom Tromey <tromey@adacore.com>
15370
15371 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15372 * python/python.c (python_extension_ops): Update.
15373 (gdbpy_colorize): New function.
15374 * python/lib/gdb/__init__.py (colorize): New function.
15375 * extension.h (ext_lang_colorize): Declare.
15376 * extension.c (ext_lang_colorize): New function.
15377 * extension-priv.h (struct extension_language_ops) <colorize>: New
15378 member.
15379 * cli/cli-style.c (_initialize_cli_style): Update help text.
15380
f0c702d4
LM
153812020-01-21 Luis Machado <luis.machado@linaro.org>
15382
15383 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15384 <cond>: Change type to bool.
15385 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15386 (aarch64_displaced_step_cb): Likewise.
15387 (aarch64_displaced_step_tb): Likewise.
15388
1ab139e5
LM
153892020-01-21 Luis Machado <luis.machado@linaro.org>
15390
15391 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15392 output.
15393
0c271889
LM
153942020-01-21 Luis Machado <luis.machado@linaro.org>
15395
15396 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15397 <pc_adjust>: Adjust the documentation.
15398 (aarch64_displaced_step_fixup): Check if PC really moved before
15399 adjusting it.
15400
4d89c1c7
TT
154012020-01-19 Tom Tromey <tom@tromey.com>
15402
15403 * disasm.c (~gdb_disassembler): New destructor.
15404 (gdb_buffered_insn_length): Call disassemble_free_target.
15405 * disasm.h (class gdb_disassembler): Declare destructor. Use
15406 DISABLE_COPY_AND_ASSIGN.
15407
c0ab21c2
TT
154082020-01-19 Tom Tromey <tom@tromey.com>
15409
15410 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15411 (die_reader_func_ftype): Remove.
15412 (cutu_reader): New class.
15413 (dw2_get_file_names_reader): Remove "data" parameter.
15414 (dw2_get_file_names): Use cutu_reader.
15415 (create_debug_type_hash_table): Update.
15416 (read_cutu_die_from_dwo): Update comment.
15417 (lookup_dwo_unit): Add dwo_name parameter.
15418 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15419 die_reader_func_ftype and data parameters.
15420 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15421 Remove die_reader_func_ftype and data parameters.
15422 (~cutu_reader): New; from init_cutu_and_read_dies.
15423 (cutu_reader::cutu_reader): Rename from
15424 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15425 and data parameters.
15426 (init_cutu_and_read_dies_simple): Remove.
15427 (struct process_psymtab_comp_unit_data): Remove.
15428 (process_psymtab_comp_unit_reader): Remove data parameter; add
15429 want_partial_unit and pretend_language parameters.
15430 (process_psymtab_comp_unit): Use cutu_reader.
15431 (build_type_psymtabs_reader): Remove data parameter.
15432 (build_type_psymtabs_1): Use cutu_reader.
15433 (process_skeletonless_type_unit): Likewise.
15434 (load_partial_comp_unit_reader): Remove.
15435 (load_partial_comp_unit): Use cutu_reader.
15436 (load_full_comp_unit_reader): Remove.
15437 (load_full_comp_unit): Use cutu_reader.
15438 (struct create_dwo_cu_data): Remove.
15439 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15440 dwo_unit parameters.
15441 (create_cus_hash_table): Use cutu_reader.
15442 (struct dwarf2_read_addr_index_data): Remove.
15443 (dwarf2_read_addr_index_reader): Remove.
15444 (dwarf2_read_addr_index): Use cutu_reader.
15445 (read_signatured_type_reader): Remove.
15446 (read_signatured_type): Use cutu_reader.
15447
45bbae5c
TT
154482020-01-19 Tom Tromey <tom@tromey.com>
15449
15450 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15451 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15452 (tui_wrefresh): Declare.
15453 * tui/tui-wingeneral.c (suppress_output): New global.
15454 (tui_suppress_output, ~tui_suppress_output): New constructor and
15455 destructor.
15456 (tui_wrefresh): New function.
15457 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15458 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15459 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15460 method.
15461 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15462 tui_wrefresh.
15463 (tui_data_window::no_refresh): New method.
15464 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15465 (tui_reg_command): Use tui_suppress_output
15466 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15467 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15468 method.
15469 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15470
4f13c1c0
TT
154712020-01-19 Tom Tromey <tom@tromey.com>
15472
15473 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15474 Handle case where symtab is null.
15475
fa47e446
SM
154762020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15477
15478 * linux-fork.c (one_fork_p): Simplify.
15479
26f42329
SM
154802020-01-17 Simon Marchi <simon.marchi@efficios.com>
15481
15482 * top.c (struct qt_args): Remove.
15483 (kill_or_detach): Change return type to void, replace `void *`
15484 parameter with a proper one.
15485 (print_inferior_quit_action): Likewise.
15486 (quit_confirm): Use range-based for loop to iterate over inferiors.
15487 (quit_force): Likewise.
15488
a9ac81b1
SM
154892020-01-17 Simon Marchi <simon.marchi@efficios.com>
15490
15491 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15492 `void *` parameter with proper parameters.
15493 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15494 (print_one_inferior): Change return type to void, replace `void *`
15495 parameter with proper parameters.
15496 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15497 inferiors.
15498 (get_other_inferior): Remove.
15499 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15500 inferiors.
15501
788eca49
SM
155022020-01-17 Simon Marchi <simon.marchi@efficios.com>
15503
15504 * mi/mi-interp.c (report_initial_inferior): Remove.
15505 (mi_interp::init): Use range-based for to iterate over inferiors.
15506
d9bc85b6
SM
155072020-01-17 Simon Marchi <simon.marchi@efficios.com>
15508
15509 * python/py-inferior.c (build_inferior_list): Remove.
15510 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15511
40c94099
CB
155122020-01-16 Christian Biesinger <cbiesinger@google.com>
15513
15514 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15515 (btrace_stitch_trace): Likewise.
15516 * charset.c (intermediate_encoding): Likewise (vaild).
15517 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15518 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15519 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15520
e0cdfe3c
HD
155212020-01-16 Hannes Domani <ssbssa@yahoo.de>
15522
15523 * windows-tdep.c (windows_get_tlb_type):
15524 Add rtl_user_process_parameters type.
15525
790f1718 155262020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15527 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15528
15529 PR build/24805
15530 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15531 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15532 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15533 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15534 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15535 (ps_plog): Redeclare exported functions with default visibility.
15536
3112ed97
NA
155372020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15538
15539 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15540 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15541
8dc3273e
SM
155422020-01-15 Simon Marchi <simon.marchi@efficios.com>
15543
15544 * infcmd.c (post_create_inferior): Use get_thread_regcache
15545 instead of get_current_regcache.
15546
ff47f4f0
TT
155472020-01-14 Tom Tromey <tom@tromey.com>
15548
15549 PR symtab/12535:
15550 * python/python.c (gdbpy_decode_line): Treat empty string the same
15551 as no argument.
15552
975f45b7
TT
155532020-01-14 Tom Tromey <tom@tromey.com>
15554
15555 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15556
25e57356
TT
155572020-01-14 Tom Tromey <tom@tromey.com>
15558
15559 * nat/linux-btrace.c: Don't include <config.h>.
15560 * nat/linux-ptrace.c: Don't include <config.h>.
15561 * nat/x86-linux-dregs.c: Don't include <config.h>.
15562
05ea2a05
TT
155632020-01-14 Tom Tromey <tom@tromey.com>
15564
15565 * configure: Rebuild.
15566 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15567
01027315
TT
155682020-01-14 Tom Tromey <tom@tromey.com>
15569
15570 * nat/x86-linux-dregs.c: Include configh.h.
15571 * nat/linux-ptrace.c: Include configh.h.
15572 * nat/linux-btrace.c: Include configh.h.
15573 * defs.h: Include config.h, bfd.h.
15574 * configure.ac: Don't source common.host.
15575 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15576 * configure: Rebuild.
15577 * acinclude.m4: Update path.
15578 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15579 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15580 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15581 (CLIBS): Add LIBSUPPORT.
15582 (CDEPS): Likewise.
15583 (COMMON_SFILES): Remove gdbsupport files.
15584 (HFILES_NO_SRCDIR): Likewise.
15585 (stamp-version): Update path to create-version.sh.
15586 (ALLDEPFILES): Remove gdbsupport files.
15587
b2ceabe8
TT
155882020-01-14 Tom Tromey <tom@tromey.com>
15589
15590 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15591 USE_WIN32API when needed.
15592 * configure.ac (USE_WIN32API): Don't define.
15593 (WIN32LIBS): Use WIN32APILIBS.
15594 * configure: Rebuild.
15595
25c51f71
TT
155962020-01-14 Tom Tromey <tom@tromey.com>
15597
15598 * configure: Rebuild.
15599 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15600
717c684d
BE
156012020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15602
15603 * skip.c (skip_function_command): Make skip w/o arguments use the
15604 name of the inlined function if pc is inside any inlined function.
15605
7da6a5b9
LM
156062020-01-14 Luis Machado <luis.machado@linaro.org>
15607
15608 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15609 * infrun.c (resume_1): Likewise.
15610 (handle_inferior_event): Remove stale comment.
15611 * linux-nat.c (linux_nat_target::resume): Update comments.
15612 (save_stop_reason): Likewise.
15613 (linux_nat_filter_event): Likewise.
15614 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15615
44e4c775
AB
156162020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15617
15618 * elfread.c (record_minimal_symbol): Set section index to 0 for
15619 non-allocatable sections.
15620
18a8505e
AT
15621
156222020-01-13 Ali Tamur <tamur@google.com>
15623
15624 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15625 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15626 to gdb::optional. Update comments.
15627 (dwo_file): Update comments.
15628 (read_attribute): Update API to take an additional out parameter,
15629 need_reprocess. This is used to mark attributes that need other
15630 attributes (e.g. str_offsets_base) for correct computation which may not
15631 have been read yet.
15632 (read_attribute_reprocess): New function declaration.
15633 (read_addr_index): Likewise.
15634 (read_dwo_str_index): Likewise.
15635 (read_stub_str_index): Likewise.
15636 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15637 (lookup_addr_base): New function definition.
15638 (lookup_ranges_base): Likewise.
15639 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15640 lookup_ranges_base.
15641 (init_cutu_and_read_dies): Update comments.
15642 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15643 unit. This is used to inherit parent's str_offsets_base and addr_base.
15644 Update comments.
15645 (init_cutu_and_read_dies_simple): Reflect API changes.
15646 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15647 (create_cus_hash_table): Change API to take parent compile unit.
15648 Reflect API changes.
15649 (open_and_init_dwo_file): Reflect API changes.
15650 (dwarf2_get_pc_bounds): Update comments.
15651 (dwarf2_record_block_ranges): Likewise.
15652 (read_full_die_1): Change implementation to reprocess attributes that
15653 need str_offsets_base and addr_base.
15654 (partial_die_info::read): Likewise.
15655 (read_attribute_reprocess): New function definition.
15656 (read_attribute_value): Change API to take an additional out parameter,
15657 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15658 when a non-dwo compile unit has index based attributes.
15659 (read_attribute): Reflect API changes.
15660 (read_addr_index_1): Reflect API changes. Update comments.
15661 (dwarf2_read_addr_index_data): Reflect API changes.
15662 (dwarf2_read_addr_index): Likewise.
15663 (read_str_index): Change API and implementation. This becomes a helper
15664 to be used by the new string index related methods. Update error
15665 message and comments.
15666 (read_dwo_str_index): New function definition.
15667 (read_stub_str_index): Likewise.
15668 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15669 * symfile.h (dwarf2_debug_sections): Likewise.
15670 * xcoffread.c (dwarf2_debug_sections): Likewise.
15671
0cac9354
SM
156722020-01-13 Simon Marchi <simon.marchi@efficios.com>
15673
15674 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15675 core_reg_sect type to gdb_byte *.
15676 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15677 * cris-tdep.c (fetch_core_registers): Likewise.
15678 * corelow.c (core_target::get_core_register_section): Change
15679 type of `contents` to gdb::byte_vector.
15680
9a6d629c
AB
156812020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15682
15683 * tui/tui-wingeneral.c (box_win): Position the title in the center
15684 of the border.
15685
d8b2f9e3
SM
156862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15687
15688 * corelow.c (core_target::get_core_register_section): Use
15689 std::vector instead of alloca.
15690
bb564c58
SM
156912020-01-13 Simon Marchi <simon.marchi@efficios.com>
15692
15693 * warning.m4: Add -Wmissing-declarations to build_warnings.
15694 * configure: Re-generate.
15695
6b366111
SM
156962020-01-13 Simon Marchi <simon.marchi@efficios.com>
15697
15698 * python/python.c (init__gdb_module): Add declaration.
15699
6c265988
SM
157002020-01-13 Simon Marchi <simon.marchi@efficios.com>
15701
15702 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15703 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15704 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15705 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15706 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15707 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15708 * ada-exp.y (_initialize_ada_exp): Add declaration.
15709 * ada-lang.c (_initialize_ada_language): Add declaration.
15710 * ada-tasks.c (_initialize_tasks): Add declaration.
15711 * agent.c (_initialize_agent): Add declaration.
15712 * aix-thread.c (_initialize_aix_thread): Add declaration.
15713 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15714 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15715 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15716 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15717 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15718 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15719 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15720 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15721 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15722 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15723 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15724 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15725 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15726 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15727 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15728 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15729 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15730 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15731 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15732 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15733 * annotate.c (_initialize_annotate): Add declaration.
15734 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15735 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15736 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15737 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15738 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15739 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15740 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15741 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15742 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15743 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15744 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15745 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15746 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15747 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15748 * auto-load.c (_initialize_auto_load): Add declaration.
15749 * auxv.c (_initialize_auxv): Add declaration.
15750 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15751 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15752 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15753 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15754 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15755 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15756 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15757 * breakpoint.c (_initialize_breakpoint): Add declaration.
15758 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15759 * btrace.c (_initialize_btrace): Add declaration.
15760 * charset.c (_initialize_charset): Add declaration.
15761 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15762 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15763 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15764 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15765 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15766 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15767 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15768 * coffread.c (_initialize_coffread): Add declaration.
15769 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15770 * compile/compile.c (_initialize_compile): Add declaration.
15771 * complaints.c (_initialize_complaints): Add declaration.
15772 * completer.c (_initialize_completer): Add declaration.
15773 * copying.c (_initialize_copying): Add declaration.
15774 * corefile.c (_initialize_core): Add declaration.
15775 * corelow.c (_initialize_corelow): Add declaration.
15776 * cp-abi.c (_initialize_cp_abi): Add declaration.
15777 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15778 * cp-support.c (_initialize_cp_support): Add declaration.
15779 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15780 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15781 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15782 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15783 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15784 * ctfread.c (_initialize_ctfread): Add declaration.
15785 * d-lang.c (_initialize_d_language): Add declaration.
15786 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15787 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15788 * dbxread.c (_initialize_dbxread): Add declaration.
15789 * dcache.c (_initialize_dcache): Add declaration.
15790 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15791 * disasm.c (_initialize_disasm): Add declaration.
15792 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15793 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15794 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15795 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15796 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15797 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15798 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15799 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15800 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15801 * elfread.c (_initialize_elfread): Add declaration.
15802 * exec.c (_initialize_exec): Add declaration.
15803 * extension.c (_initialize_extension): Add declaration.
15804 * f-lang.c (_initialize_f_language): Add declaration.
15805 * f-valprint.c (_initialize_f_valprint): Add declaration.
15806 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15807 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15808 * filesystem.c (_initialize_filesystem): Add declaration.
15809 * findcmd.c (_initialize_mem_search): Add declaration.
15810 * findvar.c (_initialize_findvar): Add declaration.
15811 * fork-child.c (_initialize_fork_child): Add declaration.
15812 * frame-base.c (_initialize_frame_base): Add declaration.
15813 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15814 * frame.c (_initialize_frame): Add declaration.
15815 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15816 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15817 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15818 * gcore.c (_initialize_gcore): Add declaration.
15819 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15820 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15821 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15822 * gdbarch.c (_initialize_gdbarch): Add declaration.
15823 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15824 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15825 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15826 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15827 * go-lang.c (_initialize_go_language): Add declaration.
15828 * go32-nat.c (_initialize_go32_nat): Add declaration.
15829 * guile/guile.c (_initialize_guile): Add declaration.
15830 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15831 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15832 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15833 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15834 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15835 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15836 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15837 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15838 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15839 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15840 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15841 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15842 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15843 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15844 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15845 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15846 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15847 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15848 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15849 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15850 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15851 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15852 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15853 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15854 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15855 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15856 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15857 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15858 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15859 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15860 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15861 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15862 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15863 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15864 * infcall.c (_initialize_infcall): Add declaration.
15865 * infcmd.c (_initialize_infcmd): Add declaration.
15866 * inflow.c (_initialize_inflow): Add declaration.
15867 * infrun.c (_initialize_infrun): Add declaration.
15868 * interps.c (_initialize_interpreter): Add declaration.
15869 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15870 * jit.c (_initialize_jit): Add declaration.
15871 * language.c (_initialize_language): Add declaration.
15872 * linux-fork.c (_initialize_linux_fork): Add declaration.
15873 * linux-nat.c (_initialize_linux_nat): Add declaration.
15874 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15875 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15876 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15877 * m2-lang.c (_initialize_m2_language): Add declaration.
15878 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15879 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15880 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15881 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15882 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15883 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15884 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15885 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15886 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15887 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15888 * machoread.c (_initialize_machoread): Add declaration.
15889 * macrocmd.c (_initialize_macrocmd): Add declaration.
15890 * macroscope.c (_initialize_macroscope): Add declaration.
15891 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15892 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15893 * maint.c (_initialize_maint_cmds): Add declaration.
15894 * mdebugread.c (_initialize_mdebugread): Add declaration.
15895 * memattr.c (_initialize_mem): Add declaration.
15896 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15897 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15898 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15899 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15900 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15901 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15902 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15903 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15904 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15905 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15906 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15907 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15908 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15909 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15910 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15911 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15912 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15913 * mipsread.c (_initialize_mipsread): Add declaration.
15914 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15915 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15916 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15917 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15918 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15919 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15920 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15921 * nto-procfs.c (_initialize_procfs): Add declaration.
15922 * objc-lang.c (_initialize_objc_language): Add declaration.
15923 * observable.c (_initialize_observer): Add declaration.
15924 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15925 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15926 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15927 * osabi.c (_initialize_gdb_osabi): Add declaration.
15928 * osdata.c (_initialize_osdata): Add declaration.
15929 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15930 * parse.c (_initialize_parse): Add declaration.
15931 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15932 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15933 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15934 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15935 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15936 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15937 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15938 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15939 * printcmd.c (_initialize_printcmd): Add declaration.
15940 * probe.c (_initialize_probe): Add declaration.
15941 * proc-api.c (_initialize_proc_api): Add declaration.
15942 * proc-events.c (_initialize_proc_events): Add declaration.
15943 * proc-service.c (_initialize_proc_service): Add declaration.
15944 * procfs.c (_initialize_procfs): Add declaration.
15945 * producer.c (_initialize_producer): Add declaration.
15946 * psymtab.c (_initialize_psymtab): Add declaration.
15947 * python/python.c (_initialize_python): Add declaration.
15948 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15949 * record-btrace.c (_initialize_record_btrace): Add declaration.
15950 * record-full.c (_initialize_record_full): Add declaration.
15951 * record.c (_initialize_record): Add declaration.
15952 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15953 * regcache.c (_initialize_regcache): Add declaration.
15954 * reggroups.c (_initialize_reggroup): Add declaration.
15955 * remote-notif.c (_initialize_notif): Add declaration.
15956 * remote-sim.c (_initialize_remote_sim): Add declaration.
15957 * remote.c (_initialize_remote): Add declaration.
15958 * reverse.c (_initialize_reverse): Add declaration.
15959 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15960 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15961 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15962 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15963 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15964 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15965 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15966 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15967 Add declaration.
15968 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15969 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15970 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15971 * rust-exp.y (_initialize_rust_exp): Add declaration.
15972 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15973 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15974 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15975 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15976 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15977 * score-tdep.c (_initialize_score_tdep): Add declaration.
15978 * ser-go32.c (_initialize_ser_dos): Add declaration.
15979 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15980 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15981 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15982 * ser-uds.c (_initialize_ser_socket): Add declaration.
15983 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15984 * serial.c (_initialize_serial): Add declaration.
15985 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15986 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15987 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15988 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15989 * skip.c (_initialize_step_skip): Add declaration.
15990 * sol-thread.c (_initialize_sol_thread): Add declaration.
15991 * solib-aix.c (_initialize_solib_aix): Add declaration.
15992 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15993 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15994 * solib-frv.c (_initialize_frv_solib): Add declaration.
15995 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15996 * solib-target.c (_initialize_solib_target): Add declaration.
15997 * solib.c (_initialize_solib): Add declaration.
15998 * source-cache.c (_initialize_source_cache): Add declaration.
15999 * source.c (_initialize_source): Add declaration.
16000 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16001 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16002 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16003 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16004 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16005 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16006 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16007 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16008 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16009 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16010 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16011 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16012 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16013 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16014 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16015 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16016 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16017 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16018 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16019 * stabsread.c (_initialize_stabsread): Add declaration.
16020 * stack.c (_initialize_stack): Add declaration.
16021 * stap-probe.c (_initialize_stap_probe): Add declaration.
16022 * std-regs.c (_initialize_frame_reg): Add declaration.
16023 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16024 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16025 * symfile.c (_initialize_symfile): Add declaration.
16026 * symmisc.c (_initialize_symmisc): Add declaration.
16027 * symtab.c (_initialize_symtab): Add declaration.
16028 * target.c (_initialize_target): Add declaration.
16029 * target-connection.c (_initialize_target_connection): Add
16030 declaration.
16031 * target-dcache.c (_initialize_target_dcache): Add declaration.
16032 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16033 * thread.c (_initialize_thread): Add declaration.
16034 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16035 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16036 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16037 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16038 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16039 * tracectf.c (_initialize_ctf): Add declaration.
16040 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16041 * tracefile.c (_initialize_tracefile): Add declaration.
16042 * tracepoint.c (_initialize_tracepoint): Add declaration.
16043 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16044 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16045 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16046 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16047 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16048 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16049 * tui/tui.c (_initialize_tui): Add declaration.
16050 * typeprint.c (_initialize_typeprint): Add declaration.
16051 * ui-style.c (_initialize_ui_style): Add declaration.
16052 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16053 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16054 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16055 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16056 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16057 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16058 * unittests/filtered_iterator-selftests.c
16059 (_initialize_filtered_iterator_selftests): Add declaration.
16060 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16061 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16062 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16063 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16064 * unittests/main-thread-selftests.c
16065 (_initialize_main_thread_selftests): Add declaration.
16066 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16067 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16068 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16069 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16070 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16071 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16072 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16073 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16074 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16075 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16076 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16077 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16078 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16079 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16080 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16081 declaration.
16082 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16083 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16084 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16085 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16086 * user-regs.c (_initialize_user_regs): Add declaration.
16087 * utils.c (_initialize_utils): Add declaration.
16088 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16089 * valops.c (_initialize_valops): Add declaration.
16090 * valprint.c (_initialize_valprint): Add declaration.
16091 * value.c (_initialize_values): Add declaration.
16092 * varobj.c (_initialize_varobj): Add declaration.
16093 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16094 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16095 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16096 * windows-nat.c (_initialize_windows_nat): Add declaration.
16097 (_initialize_check_for_gdb_ini): Add declaration.
16098 (_initialize_loadable): Add declaration.
16099 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16100 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16101 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16102 * xcoffread.c (_initialize_xcoffread): Add declaration.
16103 * xml-support.c (_initialize_xml_support): Add declaration.
16104 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16105 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16106 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16107 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16108
e2de1eec
SM
161092020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16110
16111 * regformats/regdat.sh: Generate declaration for init function.
16112
e0037b4c
SM
161132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16114
16115 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16116 up.
16117 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16118 close_one_inferior>: New methods.
16119 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16120 pass down target to find_inferior_pid.
16121 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16122 Pass down target to find_inferior_ptid.
16123 (gdbsim_target::create_inferior): Pass down target to
16124 add_thread_silent.
16125 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16126 target down to find_inferior_ptid and switch_to_thread.
16127 (gdbsim_target::close): Update to call close_one_inferior.
16128 (struct resume_data): Remove.
16129 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16130 directly, rather than through a void pointer.
16131 (gdbsim_target::resume): Update to call resume_one_inferior.
16132
58920b5b
SM
161332020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16134
16135 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16136
4ec89149
PA
161372020-01-12 Pedro Alves <palves@redhat.com>
16138
16139 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16140 directly for the current inferior instead of
16141 discard_all_inferiors.
16142 (discard_all_inferiors): Delete.
16143
7c392d1d
TT
161442020-01-11 Tom Tromey <tom@tromey.com>
16145
16146 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16147 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16148 deprecated_safe_get_selected_frame.
16149
d9ebdab7
TBA
161502020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16151
16152 * inferior.c (print_inferior): Switch inferior before printing it.
16153
f3c469b9
PA
161542020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16155 Pedro Alves <palves@redhat.com>
16156
16157 * progspace-and-thread.c (switch_to_program_space_and_thread):
16158 Assert there's an inferior for PSPACE. Use
16159 switch_to_inferior_no_thread to switch the inferior too.
16160 * progspace.c (program_space::~program_space): Call
16161 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16162 (program_space::free_all_objfiles): Don't call clear_symtab_users
16163 here.
16164 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16165
65c574f6
PA
161662020-01-10 Pedro Alves <palves@redhat.com>
16167
16168 * NEWS: Mention multi-target debugging, "info connections", and
16169 "add-inferior -no-connection".
16170
2f4fcf00
PA
161712020-01-10 Pedro Alves <palves@redhat.com>
16172
16173 * infrun.c: Include "target-connection.h".
16174 (check_multi_target_resumption): New.
16175 (proceed): Call it.
16176 * target-connection.c (make_target_connection_string): Make
16177 extern.
16178 * target-connection.h (make_target_connection_string): Declare.
16179
121b3efd
PA
161802020-01-10 Pedro Alves <palves@redhat.com>
16181
16182 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16183 * inferior.c (uiout_field_connection): New function.
16184 (print_inferior): Add new "connection-id" column.
16185 (add_inferior_command): Show connection number/string of added
16186 inferior.
16187 * process-stratum-target.h
16188 (process_stratum_target::connection_string): New virtual method.
16189 (process_stratum_target::connection_number): New field.
16190 * remote.c (remote_target::connection_string): New override.
16191 * target-connection.c: New file.
16192 * target-connection.h: New file.
16193 * target.c (decref_target): Remove process_stratum targets from
16194 the connection list.
16195 (target_stack::push): Add process_stratum targets to the
16196 connection list.
16197
4f837581
PA
161982020-01-10 Pedro Alves <palves@redhat.com>
16199
16200 Revert:
16201 2016-04-12 Pedro Alves <palves@redhat.com>
16202 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16203 Remove references to name.
16204 * serial.h (struct serial) <name>: Delete.
16205
f4ec508e
PA
162062020-01-10 Pedro Alves <palves@redhat.com>
16207
16208 * gdbarch-selftests.c (register_to_value_test): Remove "target
16209 already pushed" check.
16210
5b6d1e4f
PA
162112020-01-10 Pedro Alves <palves@redhat.com>
16212 John Baldwin <jhb@FreeBSD.org>
16213
16214 * aarch64-linux-nat.c
16215 (aarch64_linux_nat_target::thread_architecture): Adjust.
16216 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16217 (task_command_1): Likewise.
16218 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16219 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16220 (aix_thread_target::store_registers)
16221 (aix_thread_target::thread_alive): Adjust.
16222 * amd64-fbsd-tdep.c: Include "inferior.h".
16223 (amd64fbsd_get_thread_local_address): Pass down target.
16224 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16225 thread's gdbarch instead of target_gdbarch.
16226 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16227 get_last_target_status.
16228 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16229 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16230 inferiors.
16231 (update_inserted_breakpoint_locations): Skip if inferiors with no
16232 execution.
16233 (update_global_location_list): When handling moribund locations,
16234 find representative inferior for location's pspace, and use thread
16235 count of its process_stratum target.
16236 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16237 * bsd-uthread.c (bsd_uthread_target::wait): Use
16238 as_process_stratum_target and adjust thread_change_ptid and
16239 add_thread calls.
16240 (bsd_uthread_target::update_thread_list): Use
16241 as_process_stratum_target and adjust find_thread_ptid,
16242 thread_change_ptid and add_thread calls.
16243 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16244 find_thread_ptid call.
16245 * corelow.c (add_to_thread_list): Adjust add_thread call.
16246 (core_target_open): Adjust add_thread_silent and thread_count
16247 calls.
16248 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16249 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16250 * event-top.c (async_disconnect): Pop targets from all inferiors.
16251 * exec.c (add_target_sections): Push exec target on all inferiors
16252 sharing the program space.
16253 (remove_target_sections): Remove the exec target from all
16254 inferiors sharing the program space.
16255 (exec_on_vfork): New.
16256 * exec.h (exec_on_vfork): Declare.
16257 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16258 Pass it down.
16259 (fbsd_nat_target::update_thread_list): Adjust.
16260 (fbsd_nat_target::resume): Adjust.
16261 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16262 down.
16263 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16264 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16265 get_thread_arch_regcache call.
16266 * fork-child.c (gdb_startup_inferior): Pass target down to
16267 startup_inferior and set_executing.
16268 * gdbthread.h (struct process_stratum_target): Forward declare.
16269 (add_thread, add_thread_silent, add_thread_with_info)
16270 (in_thread_list): Add process_stratum_target parameter.
16271 (find_thread_ptid(inferior*, ptid_t)): New overload.
16272 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16273 parameter.
16274 (all_threads()): Delete overload.
16275 (all_threads, all_non_exited_threads): Add process_stratum_target
16276 parameter.
16277 (all_threads_safe): Use brace initialization.
16278 (thread_count): Add process_stratum_target parameter.
16279 (set_resumed, set_running, set_stop_requested, set_executing)
16280 (threads_are_executing, finish_thread_state): Add
16281 process_stratum_target parameter.
16282 (switch_to_thread): Use is_current_thread.
16283 * i386-fbsd-tdep.c: Include "inferior.h".
16284 (i386fbsd_get_thread_local_address): Pass down target.
16285 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16286 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16287 have_inferiors check.
16288 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16289 (inf_ptrace_target::attach): Adjust.
16290 * infcall.c (run_inferior_call): Adjust.
16291 * infcmd.c (run_command_1): Pass target to
16292 scoped_finish_thread_state.
16293 (proceed_thread_callback): Skip inferiors with no execution.
16294 (continue_command): Rename 'all_threads' local to avoid hiding
16295 'all_threads' function. Adjust get_last_target_status call.
16296 (prepare_one_step): Adjust set_running call.
16297 (signal_command): Use user_visible_resume_target. Compare thread
16298 pointers instead of inferior_ptid.
16299 (info_program_command): Adjust to pass down target.
16300 (attach_command): Mark target's 'thread_executing' flag.
16301 (stop_current_target_threads_ns): New, factored out from ...
16302 (interrupt_target_1): ... this. Switch inferior before making
16303 target calls.
16304 * inferior-iter.h
16305 (struct all_inferiors_iterator, struct all_inferiors_range)
16306 (struct all_inferiors_safe_range)
16307 (struct all_non_exited_inferiors_range): Filter on
16308 process_stratum_target too. Remove explicit.
16309 * inferior.c (inferior::inferior): Push dummy target on target
16310 stack.
16311 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16312 Add process_stratum_target parameter, and pass it down.
16313 (have_live_inferiors): Adjust.
16314 (switch_to_inferior_and_push_target): New.
16315 (add_inferior_command, clone_inferior_command): Handle
16316 "-no-connection" parameter. Use
16317 switch_to_inferior_and_push_target.
16318 (_initialize_inferior): Mention "-no-connection" option in
16319 the help of "add-inferior" and "clone-inferior" commands.
16320 * inferior.h: Include "process-stratum-target.h".
16321 (interrupt_target_1): Use bool.
16322 (struct inferior) <push_target, unpush_target, target_is_pushed,
16323 find_target_beneath, top_target, process_target, target_at,
16324 m_stack>: New.
16325 (discard_all_inferiors): Delete.
16326 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16327 (all_inferiors, all_non_exited_inferiors): Add
16328 process_stratum_target parameter.
16329 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16330 (target_last_proc_target): New global.
16331 (follow_fork_inferior): Push target on new inferior. Pass target
16332 to add_thread_silent. Call exec_on_vfork. Handle target's
16333 reference count.
16334 (follow_fork): Adjust get_last_target_status call. Also consider
16335 target.
16336 (follow_exec): Push target on new inferior.
16337 (struct execution_control_state) <target>: New field.
16338 (user_visible_resume_target): New.
16339 (do_target_resume): Call target_async.
16340 (resume_1): Set target's threads_executing flag. Consider resume
16341 target.
16342 (commit_resume_all_targets): New.
16343 (proceed): Also consider resume target. Skip threads of inferiors
16344 with no execution. Commit resumtion in all targets.
16345 (start_remote): Pass current inferior to wait_for_inferior.
16346 (infrun_thread_stop_requested): Consider target as well. Pass
16347 thread_info pointer to clear_inline_frame_state instead of ptid.
16348 (infrun_thread_thread_exit): Consider target as well.
16349 (random_pending_event_thread): New inferior parameter. Use it.
16350 (do_target_wait): Rename to ...
16351 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16352 down.
16353 (threads_are_resumed_pending_p, do_target_wait): New.
16354 (prepare_for_detach): Adjust calls.
16355 (wait_for_inferior): New inferior parameter. Handle it. Use
16356 do_target_wait_1 instead of do_target_wait.
16357 (fetch_inferior_event): Adjust. Switch to representative
16358 inferior. Pass target down.
16359 (set_last_target_status): Add process_stratum_target parameter.
16360 Save target in global.
16361 (get_last_target_status): Add process_stratum_target parameter and
16362 handle it.
16363 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16364 (context_switch): Check inferior_ptid == null_ptid before calling
16365 inferior_thread().
16366 (get_inferior_stop_soon): Pass down target.
16367 (wait_one): Rename to ...
16368 (poll_one_curr_target): ... this.
16369 (struct wait_one_event): New.
16370 (wait_one): New.
16371 (stop_all_threads): Adjust.
16372 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16373 event's target.
16374 (switch_back_to_stepped_thread): Also consider target.
16375 (print_stop_event): Update.
16376 (normal_stop): Update. Also consider the resume target.
16377 * infrun.h (wait_for_inferior): Remove declaration.
16378 (user_visible_resume_target): New declaration.
16379 (get_last_target_status, set_last_target_status): New
16380 process_stratum_target parameter.
16381 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16382 process_stratum_target parameter, and use it.
16383 (clear_inline_frame_state (thread_info*)): New.
16384 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16385 process_stratum_target parameter.
16386 (clear_inline_frame_state (thread_info*)): Declare.
16387 * linux-fork.c (delete_checkpoint_command): Pass target down to
16388 find_thread_ptid.
16389 (checkpoint_command): Adjust.
16390 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16391 instead of just tweaking inferior_ptid.
16392 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16393 (exit_lwp): Pass target down to find_thread_ptid.
16394 (attach_proc_task_lwp_callback): Pass target down to
16395 add_thread/set_running/set_executing.
16396 (linux_nat_target::attach): Pass target down to
16397 thread_change_ptid.
16398 (get_detach_signal): Pass target down to find_thread_ptid.
16399 Consider last target status's target.
16400 (linux_resume_one_lwp_throw, resume_lwp)
16401 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16402 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16403 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16404 (linux_nat_target::async_wait_fd): New.
16405 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16406 target down.
16407 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16408 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16409 * linux-thread-db.c (struct thread_db_info::process_target): New
16410 field.
16411 (add_thread_db_info): Save target.
16412 (get_thread_db_info): New process_stratum_target parameter. Also
16413 match target.
16414 (delete_thread_db_info): New process_stratum_target parameter.
16415 Also match target.
16416 (thread_from_lwp): Adjust to pass down target.
16417 (thread_db_notice_clone): Pass down target.
16418 (check_thread_db_callback): Pass down target.
16419 (try_thread_db_load_1): Always push the thread_db target.
16420 (try_thread_db_load, record_thread): Pass target down.
16421 (thread_db_target::detach): Pass target down. Always unpush the
16422 thread_db target.
16423 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16424 target down. Always unpush the thread_db target.
16425 (find_new_threads_callback, thread_db_find_new_threads_2)
16426 (thread_db_target::update_thread_list): Pass target down.
16427 (thread_db_target::pid_to_str): Pass current inferior down.
16428 (thread_db_target::get_thread_local_address): Pass target down.
16429 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16430 target down.
16431 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16432 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16433 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16434 (procfs_init_inferior): Rename to ...
16435 (procfs_target::procfs_init_inferior): ... this and adjust.
16436 (procfs_target::create_inferior, procfs_notice_thread)
16437 (procfs_do_thread_registers): Adjust.
16438 * ppc-fbsd-tdep.c: Include "inferior.h".
16439 (ppcfbsd_get_thread_local_address): Pass down target.
16440 * proc-service.c (ps_xfer_memory): Switch current inferior and
16441 program space as well.
16442 (get_ps_regcache): Pass target down.
16443 * process-stratum-target.c
16444 (process_stratum_target::thread_address_space)
16445 (process_stratum_target::thread_architecture): Pass target down.
16446 * process-stratum-target.h
16447 (process_stratum_target::threads_executing): New field.
16448 (as_process_stratum_target): New.
16449 * ravenscar-thread.c
16450 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16451 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16452 down.
16453 * record-btrace.c (record_btrace_target::info_record): Adjust.
16454 (record_btrace_target::record_method)
16455 (record_btrace_target::record_is_replaying)
16456 (record_btrace_target::fetch_registers)
16457 (get_thread_current_frame_id, record_btrace_target::resume)
16458 (record_btrace_target::wait, record_btrace_target::stop): Pass
16459 target down.
16460 * record-full.c (record_full_wait_1): Switch to event thread.
16461 Pass target down.
16462 * regcache.c (regcache::regcache)
16463 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16464 process_stratum_target parameter and handle it.
16465 (current_thread_target): New global.
16466 (get_thread_regcache): Add process_stratum_target parameter and
16467 handle it. Switch inferior before calling target method.
16468 (get_thread_regcache): Pass target down.
16469 (get_thread_regcache_for_ptid): Pass target down.
16470 (registers_changed_ptid): Add process_stratum_target parameter and
16471 handle it.
16472 (registers_changed_thread, registers_changed): Pass target down.
16473 (test_get_thread_arch_aspace_regcache): New.
16474 (current_regcache_test): Define a couple local test_target_ops
16475 instances and use them for testing.
16476 (readwrite_regcache): Pass process_stratum_target parameter.
16477 (cooked_read_test, cooked_write_test): Pass mock_target down.
16478 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16479 (get_thread_arch_aspace_regcache): Add process_stratum_target
16480 parameter.
16481 (regcache::target): New method.
16482 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16483 (regcache::registers_changed_ptid): Add process_stratum_target
16484 parameter.
16485 (regcache::m_target): New field.
16486 (registers_changed_ptid): Add process_stratum_target parameter.
16487 * remote.c (remote_state::supports_vCont_probed): New field.
16488 (remote_target::async_wait_fd): New method.
16489 (remote_unpush_and_throw): Add remote_target parameter.
16490 (get_current_remote_target): Adjust.
16491 (remote_target::remote_add_inferior): Push target.
16492 (remote_target::remote_add_thread)
16493 (remote_target::remote_notice_new_inferior)
16494 (get_remote_thread_info): Pass target down.
16495 (remote_target::update_thread_list): Skip threads of inferiors
16496 bound to other targets. (remote_target::close): Don't discard
16497 inferiors. (remote_target::add_current_inferior_and_thread)
16498 (remote_target::process_initial_stop_replies)
16499 (remote_target::start_remote)
16500 (remote_target::remote_serial_quit_handler): Pass down target.
16501 (remote_target::remote_unpush_target): New remote_target
16502 parameter. Unpush the target from all inferiors.
16503 (remote_target::remote_unpush_and_throw): New remote_target
16504 parameter. Pass it down.
16505 (remote_target::open_1): Check whether the current inferior has
16506 execution instead of checking whether any inferior is live. Pass
16507 target down.
16508 (remote_target::remote_detach_1): Pass down target. Use
16509 remote_unpush_target.
16510 (extended_remote_target::attach): Pass down target.
16511 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16512 (remote_target::append_resumption): Pass down target.
16513 (remote_target::append_pending_thread_resumptions)
16514 (remote_target::remote_resume_with_hc, remote_target::resume)
16515 (remote_target::commit_resume): Pass down target.
16516 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16517 (remote_target::interrupt_query)
16518 (remote_target::remove_new_fork_children)
16519 (remote_target::check_pending_events_prevent_wildcard_vcont)
16520 (remote_target::remote_parse_stop_reply)
16521 (remote_target::process_stop_reply): Pass down target.
16522 (first_remote_resumed_thread): New remote_target parameter. Pass
16523 it down.
16524 (remote_target::wait_as): Pass down target.
16525 (unpush_and_perror): New remote_target parameter. Pass it down.
16526 (remote_target::readchar, remote_target::remote_serial_write)
16527 (remote_target::getpkt_or_notif_sane_1)
16528 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16529 down target.
16530 (remote_target::mourn_inferior): Pass down target. Use
16531 remote_unpush_target.
16532 (remote_target::core_of_thread)
16533 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16534 (remote_target::pid_to_exec_file)
16535 (remote_target::thread_handle_to_thread_info): Pass down target.
16536 (remote_target::async_wait_fd): New.
16537 * riscv-fbsd-tdep.c: Include "inferior.h".
16538 (riscv_fbsd_get_thread_local_address): Pass down target.
16539 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16540 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16541 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16542 Adjust.
16543 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16544 * solib-svr4.c (enable_break): Pass down target.
16545 * spu-multiarch.c (parse_spufs_run): Pass down target.
16546 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16547 * target-delegates.c: Regenerate.
16548 * target.c (g_target_stack): Delete.
16549 (current_top_target): Return the current inferior's top target.
16550 (target_has_execution_1): Refer to the passed-in inferior's top
16551 target.
16552 (target_supports_terminal_ours): Check whether the initial
16553 inferior was already created.
16554 (decref_target): New.
16555 (target_stack::push): Incref/decref the target.
16556 (push_target, push_target, unpush_target): Adjust.
16557 (target_stack::unpush): Defref target.
16558 (target_is_pushed): Return bool. Adjust to refer to the current
16559 inferior's target stack.
16560 (dispose_inferior): Delete, and inline parts ...
16561 (target_preopen): ... here. Only dispose of the current inferior.
16562 (target_detach): Hold strong target reference while detaching.
16563 Pass target down.
16564 (target_thread_name): Add assertion.
16565 (target_resume): Pass down target.
16566 (target_ops::beneath, find_target_at): Adjust to refer to the
16567 current inferior's target stack.
16568 (get_dummy_target): New.
16569 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16570 has a thread running.
16571 (initialize_targets): Rename to ...
16572 (_initialize_target): ... this.
16573 * target.h: Include "gdbsupport/refcounted-object.h".
16574 (struct target_ops): Inherit refcounted_object.
16575 (target_ops::shortname, target_ops::longname): Make const.
16576 (target_ops::async_wait_fd): New method.
16577 (decref_target): Declare.
16578 (struct target_ops_ref_policy): New.
16579 (target_ops_ref): New typedef.
16580 (get_dummy_target): Declare function.
16581 (target_is_pushed): Return bool.
16582 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16583 (all_matching_threads_iterator::all_matching_threads_iterator):
16584 Handle filter target.
16585 * thread-iter.h (struct all_matching_threads_iterator, struct
16586 all_matching_threads_range, class all_non_exited_threads_range):
16587 Filter by target too. Remove explicit.
16588 * thread.c (threads_executing): Delete.
16589 (inferior_thread): Pass down current inferior.
16590 (clear_thread_inferior_resources): Pass down thread pointer
16591 instead of ptid_t.
16592 (add_thread_silent, add_thread_with_info, add_thread): Add
16593 process_stratum_target parameter. Use it for thread and inferior
16594 searches.
16595 (is_current_thread): New.
16596 (thread_info::deletable): Use it.
16597 (find_thread_ptid, thread_count, in_thread_list)
16598 (thread_change_ptid, set_resumed, set_running): New
16599 process_stratum_target parameter. Pass it down.
16600 (set_executing): New process_stratum_target parameter. Pass it
16601 down. Adjust reference to 'threads_executing'.
16602 (threads_are_executing): New process_stratum_target parameter.
16603 Adjust reference to 'threads_executing'.
16604 (set_stop_requested, finish_thread_state): New
16605 process_stratum_target parameter. Pass it down.
16606 (switch_to_thread): Also match inferior.
16607 (switch_to_thread): New process_stratum_target parameter. Pass it
16608 down.
16609 (update_threads_executing): Reimplement.
16610 * top.c (quit_force): Pop targets from all inferior.
16611 (gdb_init): Don't call initialize_targets.
16612 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16613 Declare.
16614 (windows_add_thread, windows_delete_thread): Adjust.
16615 (get_windows_debug_event): Rename to ...
16616 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16617 * tracefile-tfile.c (tfile_target_open): Pass down target.
16618 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16619 Forward declare.
16620 (switch_to_thread): Add process_stratum_target parameter.
16621 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16622 parameter. Use it.
16623 (mi_on_resume): Pass target down.
16624 * nat/fork-inferior.c (startup_inferior): Add
16625 process_stratum_target parameter. Pass it down.
16626 * nat/fork-inferior.h (startup_inferior): Add
16627 process_stratum_target parameter.
16628 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16629
75c6c844
PA
166302020-01-10 Pedro Alves <palves@redhat.com>
16631
16632 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16633 directly. Instead find the first thread in the thread list and
16634 use switch_to_thread.
16635
78f2c40a
PA
166362020-01-10 Pedro Alves <palves@redhat.com>
16637
16638 * remote.c (remote_target::remote_add_inferior): Don't bind a
16639 process to the current inferior if the current inferior is already
16640 bound to a process.
16641
e7af6c70
TBA
166422020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16643 Pedro Alves <palves@redhat.com>
16644
16645 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16646 If no process is specified, return null_ptid instead of
16647 inferior_ptid.
16648 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16649 TARGET_WAITKIND_SIGNALLED with no pid.
16650
31ba933e
PA
166512020-01-10 Pedro Alves <palves@redhat.com>
16652
16653 * remote.c (first_remote_resumed_thread): New.
16654 (remote_target::wait_as): Use it as default event_ptid instead of
16655 inferior_ptid.
16656
735fc2ca
PA
166572020-01-10 Pedro Alves <palves@redhat.com>
16658
16659 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16660
c17e02e1
PA
166612020-01-10 Pedro Alves <palves@redhat.com>
16662
16663 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16664 not -1.
16665
ab1ddbcf
PA
166662020-01-10 Pedro Alves <palves@redhat.com>
16667
16668 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16669 ptid to get_last_target_status.
16670 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16671 ptid to get_last_target_status.
16672 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16673 get_last_target_status.
16674 (info_program_command): Don't pass a target_waitstatus to
16675 get_last_target_status.
16676 * infrun.c (init_wait_for_inferior): Use
16677 nullify_last_target_wait_ptid.
16678 (get_last_target_status): Handle nullptr arguments.
16679 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16680 (print_stop_event): Don't pass a ptid to get_last_target_status.
16681 (normal_stop): Don't pass a ptid to get_last_target_status.
16682 * infrun.h (get_last_target_status, set_last_target_status): Move
16683 comments here and update.
16684 (nullify_last_target_wait_ptid): Declare.
16685 * linux-fork.c (fork_load_infrun_state): Remove local extern
16686 declaration of nullify_last_target_wait_ptid.
16687 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16688 to get_last_target_status.
16689
f3f8ece4
PA
166902020-01-10 Pedro Alves <palves@redhat.com>
16691
16692 * gdbthread.h (scoped_restore_current_thread)
16693 <dont_restore, restore, m_dont_restore>: Declare.
16694 * thread.c (thread_alive): Add assertion. Return bool.
16695 (switch_to_thread_if_alive): New.
16696 (prune_threads): Switch inferior/thread.
16697 (print_thread_info_1): Switch thread before calling target methods.
16698 (scoped_restore_current_thread::restore): New, factored out from
16699 ...
16700 (scoped_restore_current_thread::~scoped_restore_current_thread):
16701 ... this.
16702 (scoped_restore_current_thread::scoped_restore_current_thread):
16703 Add assertion.
16704 (thread_apply_all_command, thread_select): Use
16705 switch_to_thread_if_alive.
16706 * infrun.c (proceed, restart_threads, handle_signal_stop)
16707 (switch_back_to_stepped_thread): Switch current thread before
16708 calling target methods.
16709
db2d40f7
PA
167102020-01-10 Pedro Alves <palves@redhat.com>
16711
16712 * inferior.c (switch_to_inferior_no_thread): New function,
16713 factored out from ...
16714 (inferior_command): ... here.
16715 * inferior.h (switch_to_inferior_no_thread): Declare.
16716 * mi/mi-main.c (run_one_inferior): Use
16717 switch_to_inferior_no_thread.
16718
bd420a2d
PA
167192020-01-10 Pedro Alves <palves@redhat.com>
16720
16721 * infcmd.c (kill_command): Remove dead code.
16722
ddf5db90
PA
167232020-01-10 Pedro Alves <palves@redhat.com>
16724
16725 * remote.c (remote_target::mourn_inferior): No longer check
16726 whether the target is running.
16727
5018ce90
PA
167282020-01-10 Pedro Alves <palves@redhat.com>
16729
16730 * corelow.c (core_target::has_execution): Change parameter type to
16731 inferior pointer.
16732 * inferior.c (number_of_live_inferiors): Use
16733 inferior::has_execution instead of target_has_execution_1.
16734 * inferior.h (inferior::has_execution): New.
16735 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16736 inferior::has_execution instead of target_has_execution_1.
16737 * process-stratum-target.c
16738 (process_stratum_target::has_execution): Change parameter type to
16739 inferior pointer. Check the inferior's PID instead of
16740 inferior_ptid.
16741 * process-stratum-target.h
16742 (process_stratum_target::has_execution): Change parameter type to
16743 inferior pointer.
16744 * record-full.c (record_full_core_target::has_execution): Change
16745 parameter type to inferior pointer.
16746 * target.c (target_has_execution_1): Change parameter type to
16747 inferior pointer.
16748 (target_has_execution_current): Adjust.
16749 * target.h (target_ops::has_execution): Change parameter type to
16750 inferior pointer.
16751 (target_has_execution_1): Change parameter type to inferior
16752 pointer. Change return type to bool.
16753 * tracefile.h (tracefile_target::has_execution): Change parameter
16754 type to inferior pointer.
16755
74375d18
PA
167562020-01-10 Pedro Alves <palves@redhat.com>
16757
16758 * exceptions.c (print_flush): Remove current_top_target() check.
16759
acdf84a6
PA
167602020-01-10 Pedro Alves <palves@redhat.com>
16761
16762 * remote.c (show_remote_exec_file): Show the current inferior's
16763 exec-file instead of the command variable's value.
16764
ec506636
PA
167652020-01-10 Pedro Alves <palves@redhat.com>
16766
16767 * record-full.c (record_full_resume_ptid): New global.
16768 (record_full_target::resume): Set it.
16769 (record_full_wait_1): Use record_full_resume_ptid instead of
16770 inferior_ptid.
16771
873657b9
PA
167722020-01-10 Pedro Alves <palves@redhat.com>
16773
16774 * gdbthread.h (scoped_restore_current_thread)
16775 <dont_restore, restore, m_dont_restore>: Declare.
16776 * thread.c (thread_alive): Add assertion. Return bool.
16777 (switch_to_thread_if_alive): New.
16778 (prune_threads): Switch inferior/thread.
16779 (print_thread_info_1): Switch thread before calling target methods.
16780 (scoped_restore_current_thread::restore): New, factored out from
16781 ...
16782 (scoped_restore_current_thread::~scoped_restore_current_thread):
16783 ... this.
16784 (scoped_restore_current_thread::scoped_restore_current_thread):
16785 Add assertion.
16786 (thread_apply_all_command, thread_select): Use
16787 switch_to_thread_if_alive.
16788
7f0ae84c
GB
167892020-01-10 George Barrett <bob@bob131.so>
16790
16791 * stap-probe.c (stap_modify_semaphore): Don't check for null
16792 semaphores.
16793 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16794 for null semaphores.
16795
f5a7c406
AB
167962020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16797
16798 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16799 all source windows, and maintain horizontal scroll status while
16800 doing so.
16801
9ae6bf64
TT
168022020-01-09 Tom Tromey <tom@tromey.com>
16803
16804 PR tui/18932:
16805 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16806 update_source_window, not print_source_lines.
16807
b2efe70c
AB
168082020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16809
16810 * tui/tui.c (tui_enable): Register tui hooks after calling
16811 tui_display_main.
16812
5f23a082
CB
168132020-01-09 Christian Biesinger <cbiesinger@google.com>
16814
16815 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16816
3061113b
SM
168172020-01-08 Simon Marchi <simon.marchi@efficios.com>
16818
16819 * thread.c (print_thread_info_1): Fix indentation.
16820
57d75002
CB
168212020-01-09 Christian Biesinger <cbiesinger@google.com>
16822
16823 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16824 unique_xmalloc_ptr outside the if to always free the demangled name.
16825
6a053cb1
TT
168262020-01-08 Tom Tromey <tromey@adacore.com>
16827
16828 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16829 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16830 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16831 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16832 Remove.
16833 (section_offsets): New typedef.
16834 * symtab.c (fixup_section, get_msymbol_address): Update.
16835 * symmisc.c (dump_msymbols): Update.
16836 * symfile.h (relative_addr_info_to_section_offsets)
16837 (symfile_map_offsets_to_segments): Update.
16838 * symfile.c (build_section_addr_info_from_objfile)
16839 (init_objfile_sect_indices): Update.
16840 (struct place_section_arg): Change type of "offsets".
16841 (place_section): Update.
16842 (relative_addr_info_to_section_offsets): Change type of
16843 "section_offsets". Remove "num_sections" parameter.
16844 (default_symfile_offsets, syms_from_objfile_1)
16845 (set_objfile_default_section_offset): Update.
16846 (reread_symbols): No need to preserve section offsets by hand.
16847 (symfile_map_offsets_to_segments): Change type of "offsets".
16848 * stap-probe.c (relocate_address): Update.
16849 * stabsread.h (process_one_symbol): Update.
16850 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16851 (solib_target_relocate_section_addresses): Update.
16852 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16853 Update.
16854 * solib-frv.c (frv_relocate_main_executable): Update.
16855 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16856 * solib-aix.c (solib_aix_get_section_offsets): Change return
16857 type.
16858 (solib_aix_solib_create_inferior_hook): Update.
16859 * remote.c (remote_target::get_offsets): Update.
16860 * psymtab.c (find_pc_sect_psymtab): Update.
16861 * psympriv.h (struct partial_symbol) <address, text_low,
16862 text_high>: Update.
16863 * objfiles.h (obj_section_offset): Update.
16864 (struct objfile) <section_offsets>: Change type.
16865 <num_sections>: Remove.
16866 (objfile_relocate): Update.
16867 * objfiles.c (entry_point_address_query): Update
16868 (relocate_one_symbol): Change type of "section_offsets".
16869 (objfile_relocate1, objfile_relocate1): Change type of
16870 "new_offsets".
16871 (objfile_rebase1): Update.
16872 * mipsread.c (mipscoff_symfile_read): Update.
16873 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16874 parameter.
16875 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16876 (parse_external, psymtab_to_symtab_1): Update.
16877 * machoread.c (macho_symfile_offsets): Update.
16878 * ia64-tdep.c (ia64_find_unwind_table): Update.
16879 * hppa-tdep.c (read_unwind_info): Update.
16880 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16881 * dwarf2read.c (create_addrmap_from_index)
16882 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16883 (process_psymtab_comp_unit_reader, add_partial_symbol)
16884 (add_partial_subprogram, process_full_comp_unit)
16885 (read_file_scope, read_func_scope, read_lexical_block_scope)
16886 (read_call_site_scope, dwarf2_rnglists_process)
16887 (dwarf2_ranges_process, dwarf2_ranges_read)
16888 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16889 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16890 Update.
16891 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16892 Update.
16893 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16894 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16895 (process_one_symbol): Change type of "section_offsets".
16896 * ctfread.c (get_objfile_text_range): Update.
16897 * coffread.c (coff_symtab_read, enter_linenos)
16898 (process_coff_symbol): Update.
16899 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16900 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16901
456e800a
TT
169022020-01-08 Tom Tromey <tromey@adacore.com>
16903
16904 * dwarf2read.c (parse_macro_definition): Use std::string.
16905 (parse_macro_definition): Likewise.
16906
6dfa2fc2
TT
169072020-01-08 Tom Tromey <tromey@adacore.com>
16908
16909 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16910 (ATTR_ALLOC_CHUNK): Remove.
16911
421d1616
TT
169122020-01-08 Tom Tromey <tromey@adacore.com>
16913
16914 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16915
43816ebc
TT
169162020-01-08 Tom Tromey <tromey@adacore.com>
16917
16918 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16919 (dwarf2_compute_name, open_dwo_file): Likewise.
16920 (process_enumeration_scope): Use std::vector.
16921 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16922 (partial_die_info::fixup, dwarf2_start_subfile)
16923 (guess_full_die_structure_name, dwarf2_name): Likewise.
16924 (determine_prefix): Update.
16925 (guess_full_die_structure_name): Make return type const.
16926 (partial_die_full_name): Return unique_xmalloc_ptr.
16927 (DW_FIELD_ALLOC_CHUNK): Remove.
16928
4212d509
TT
169292020-01-07 Tom Tromey <tromey@adacore.com>
16930
16931 PR build/24937:
16932 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16933
06a6207a
JT
169342020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16935
16936 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16937
153d79c4
AB
169382020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16939
16940 * stack.c (print_frame_info): Move disassemble_next_line code
16941 inside source_print block.
16942
66182876
EZ
169432020-01-06 Eli Zaretskii <eliz@gnu.org>
16944
16945 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16946 gdb/signals.h, as we are now using native signal symbols.
16947
cbfa8581
SV
169482020-01-06 Shahab Vahedi <shahab@synopsys.com>
16949
16950 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16951 overflow by an early check of content vs threshold.
aac66a4c 16952 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16953 Likewise.
16954
3f602821
EZ
169552020-01-06 Eli Zaretskii <eliz@gnu.org>
16956
16957 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16958
a08c904d
JT
169592020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16960
16961 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16962 export table if no section contains it's RVA.
16963
89a65580
EZ
169642020-01-06 Eli Zaretskii <eliz@gnu.org>
16965
16966 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16967
8b7fcda2
HD
169682020-01-06 Hannes Domani <ssbssa@yahoo.de>
16969
16970 * source.c (print_source_lines_base): Set last_line_listed.
16971
a61b4f69
SV
169722020-01-06 Shahab Vahedi <shahab@synopsys.com>
16973
16974 * tui/tui-disasm.c: Remove trailing spaces.
16975
559e7e50
EZ
169762020-01-06 Eli Zaretskii <eliz@gnu.org>
16977 Pedro Alves <palves@redhat.com>
16978
16979 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16980 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16981 (windows_gdb_signal_to_target): New function, uses the above
16982 enumeration to convert GDB internal signal codes to equivalent
16983 Windows codes.
16984 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16985 * windows-nat.c: Include "gdb_wait.h".
16986 (get_windows_debug_event): Extract the fatal exception from the
16987 exit status and convert to the equivalent Posix signal number.
16988 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16989 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16990 * gdbsupport/gdb_wait.c: New file, implements
16991 windows_status_to_termsig.
16992 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16993 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16994
f2302a34
AB
169952020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16996
16997 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16998 show_layout.
16999
6a5206eb
LM
170002020-01-05 Luis Machado <luis.machado@linaro.org>
17001
17002 * aarch64-linux-nat.c
17003 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17004 and bfd_mach_aarch64.
17005
6ec1d75e
PW
170062020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17007
17008 * ui-file.c (stdio_file::can_emit_style_escape)
17009 (tee_file::can_emit_style_escape): Ensure style is used also on
17010 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17011 to gdb_stdout.
17012 * main.c (set_gdb_data_directory): Use file style to output the
17013 warning that the given pathname is not a directory.
17014 * top.c (show_history_filename, gdb_safe_append_history)
17015 (show_gdb_datadir): Use file style.
17016
44f81a76
HD
170172020-01-03 Hannes Domani <ssbssa@yahoo.de>
17018
17019 * solib-target.c (struct lm_info_target):
17020 Change offsets to be a unique_xmalloc_ptr.
17021 (solib_target_relocate_section_addresses): Update.
17022
25057eb0
HD
170232020-01-03 Hannes Domani <ssbssa@yahoo.de>
17024
17025 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17026
6e2118f5
BE
170272020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17028
17029 * MAINTAINERS (Write After Approval): Add myself.
17030
8133c7dc
LM
170312020-01-02 Luis Machado <luis.machado@linaro.org>
17032
17033 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17034 Cell BE architecture.
17035 * target.h (struct target_ops) <thread_architecture>: Likewise.
17036
48189bec
HD
170372020-01-01 Hannes Domani <ssbssa@yahoo.de>
17038
17039 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17040
ead1063b
HD
170412020-01-01 Hannes Domani <ssbssa@yahoo.de>
17042
17043 * MAINTAINERS (Write After Approval): Add myself.
17044
e5d78223
JB
170452020-01-01 Joel Brobecker <brobecker@adacore.com>
17046
17047 * gdbarch.sh: Update copyright year range of generated files.
17048
b811d2c2
JB
170492020-01-01 Joel Brobecker <brobecker@adacore.com>
17050
17051 Update copyright year range in all GDB files.
17052
5f4def5c
JB
170532020-01-01 Joel Brobecker <brobecker@adacore.com>
17054
17055 * copyright.py: Convert to Python 3.
17056
51fd4002
JB
170572020-01-01 Joel Brobecker <brobecker@adacore.com>
17058
17059 * copyright.py: Adapt after move of gnulib directory from gdb
17060 directory to toplevel directory.
17061
5fb651f2
JB
170622020-01-01 Joel Brobecker <brobecker@adacore.com>
17063
17064 * copyright.py (main): Exit if run from the wrong directory.
17065
5dd8bf88
JB
170662020-01-01 Joel Brobecker <brobecker@adacore.com>
17067
17068 * top.c (print_gdb_version): Change copyright year to 2020.
17069
9f71dacb 170702020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17071
9f71dacb 17072 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17073
9f71dacb 17074For older changes see ChangeLog-2019.
c906108c
SS
17075\f
17076Local Variables:
17077mode: change-log
17078left-margin: 8
17079fill-column: 74
17080version-control: never
57da7796 17081coding: utf-8
c906108c 17082End:
This page took 3.232674 seconds and 4 git commands to generate.