]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: convert some function arguments from int to bool
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2e362716
AB
12020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
4 (watch_command_1): Update parameter types. Convert locals to
5 bool.
6 (watch_command_wrapper): Change parameter type.
7 (watch_maybe_just_location): Change locals to bool.
8 (rwatch_command_wrapper): Update parameter type.
9 (awatch_command_wrapper): Update parameter type.
10 * breakpoint.h (watch_command_wrapper): Change parameter type.
11 (rwatch_command_wrapper): Update parameter type.
12 (awatch_command_wrapper): Update parameter type.
13 * eval.c (fetch_subexp_value): Change parameter type.
14 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
15 'false' not '0'.
16 * value.h (fetch_subexp_value): Change parameter type in
17 declaration.
18
b3ff61f8
AB
192020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
20
21 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
22 skip_spaces.
23
5b7d45d3
KS
242020-11-18 Keith Seitz <keiths@redhat.com>
25
26 * linux-tdep.c (dump_note_entry_p): Return true instead of
27 checking `filename'.
28
c44191f8
TV
292020-11-18 Tom de Vries <tdevries@suse.de>
30
31 * debuginfod-support.c (debuginfod_source_query)
32 (debuginfod_debuginfo_query): Also do early exit if
33 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
34
5d8254e1
TV
352020-11-18 Tom de Vries <tdevries@suse.de>
36
37 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
38 warning.
39
584903d3
SM
402020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
41
42 * gdbtypes.h (get_array_bounds): Return bool, adjust some
43 callers. Move doc here.
44 * gdbtypes.c (get_array_bounds): Return bool
45
6f2643db
AB
462020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
47
48 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
49 assert.
50 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
51 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
52 case to the default.
53
037d7135
AB
542020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
55
56 * printcmd.c: Include 'safe-ctype.c'.
57 (skip_over_slash_fmt): New function.
58 (print_command_completer): Call skip_over_slash_fmt.
59 (display_and_x_command_completer): New function.
60 (_initialize_printcmd): Add command completion for 'x' and
61 'display'.
62
2b3cb400
PA
632020-11-16 Pedro Alves <pedro@palves.net>
64
65 * frame.c (get_prev_frame): Move get_frame_id call from here ...
66 (get_prev_frame_always_1): ... to here.
67 * inline-frame.c (inline_frame_this_id): Mention
68 get_prev_frame_always_1 in comment.
69
b74dbc20
JB
702020-11-15 Joel Brobecker <brobecker@adacore.com>
71
72 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
73 handling.
74 (value_less): Add fixed-point handling.
75
0a12719e
JB
762020-11-15 Joel Brobecker <brobecker@adacore.com>
77
78 * eval.c (binop_promote): Add fixed-point type handling.
79 * valarith.c (fixed_point_binop): New function.
80 (scalar_binop): Add fixed-point type handling.
81 (value_neg): Add fixed-point type handling.
82 * valops.c (value_cast_to_fixed_point): New function.
83 (value_cast): Add fixed-point type handling.
84
0c9150e4
JB
852020-11-15 Joel Brobecker <brobecker@adacore.com>
86
87 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
88 range types.
89 * c-typeprint.c (c_type_print_varspec_prefix)
90 (c_type_print_varspec_suffix, c_type_print_base_1): Add
91 TYPE_CODE_FIXED_POINT handling.
92 * p-typeprint.c (pascal_type_print_varspec_prefix)
93 (pascal_type_print_varspec_suffix): Likewise.
94 * typeprint.c (print_type_fixed_point): New function.
95 * typeprint.h (print_type_fixed_point): Add declaration.
96
b26daff9
JB
972020-11-15 Joel Brobecker <brobecker@adacore.com>
98
99 * printcmd.c (print_scalar_formatted): Add fixed-point type
100 handling when options->format is set.
101
09584414
JB
1022020-11-15 Joel Brobecker <brobecker@adacore.com>
103
104 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
105 * dwarf2/read.c (get_dwarf2_rational_constant)
106 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
107 (has_zero_over_zero_small_attribute): New functions.
108 read_base_type, set_die_type): Add fixed-point type handling.
109 * gdb-gdb.py.in: Add fixed-point type handling.
110 * gdbtypes.c: #include "gmp-utils.h".
111 (create_range_type, set_type_code): Add fixed-point type handling.
112 (init_fixed_point_type): New function.
113 (is_integral_type, is_scalar_type): Add fixed-point type handling.
114 (print_fixed_point_type_info): New function.
115 (recursive_dump_type, copy_type_recursive): Add fixed-point type
116 handling.
117 (fixed_point_type_storage): New typedef.
118 (fixed_point_objfile_key): New static global.
119 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
120 (fixed_point_type_base_type, fixed_point_scaling_factor): New
121 functions.
122 * gdbtypes.h: #include "gmp-utils.h".
123 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
124 (union type_specific) <fixed_point_info>: New field.
125 (struct fixed_point_type_info): New struct.
126 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
127 (init_fixed_point_type, is_fixed_point_type)
128 (fixed_point_type_base_type, fixed_point_scaling_factor)
129 (allocate_fixed_point_type_info): Add declarations.
130 * valprint.c (generic_val_print_fixed_point): New function.
131 (generic_value_print): Add fixed-point type handling.
132 * value.c (value_as_address, unpack_long): Add fixed-point type
133 handling.
134
e55c6530
JB
1352020-11-15 Joel Brobecker <brobecker@adacore.com>
136
137 * utils.h (uinteger_pow): Add declaration.
138 * utils.c (uinteger_pow): Moved here (without changes)...
139 * valarith.c (uinteger_pow): ... from here.
140
b34c74ab
JB
1412020-11-15 Joel Brobecker <brobecker@adacore.com>
142
40d9d2fd 143 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
144 * unittests/gmp-utils-selftests.c: New file.
145 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
146 unittests/gmp-utils-selftests.c.
147 (COMMON_SFILES) Add gmp-utils.c.
148 (HFILES_NO_SRCDIR): Add gmp-utils.h.
149
1b4ac058
JB
1502020-11-15 Joel Brobecker <brobecker@adacore.com>
151
152 * configure.ac: Generate an error if a usable GMP library
153 could not be found.
154 * configure: Regenerate.
155
2c947d9b
JB
1562020-11-15 Joel Brobecker <brobecker@adacore.com>
157
158 * configure.ac: Add support for --with-libgmp-prefix.
159 * Makefile.in (LIBGMP): New variable.
160 (CLIBS): Include $(LIBGMP).
161 * configure, config.in: Regenerate
162
9dd02fc0
AB
1632020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
164
165 PR cli/26879
166 * f-exp.y (COMPLETE): New token.
167 (exp): Two new rules for tab-completion.
168 (saw_name_at_eof): New static global.
169 (last_was_structop): Likewise.
170 (yylex): Set new variables, and return COMPLETE token at the end
171 of the input stream in some cases.
172
758cb810
TT
1732020-11-14 Tom Tromey <tom@tromey.com>
174
175 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
176
749065b7
TT
1772020-11-14 Tom Tromey <tom@tromey.com>
178
179 * opencl-lang.c (opencl_component_ref): Make "comps" const.
180
2c5b1849
SM
1812020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
182
183 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
184
e8b2f0d9
TT
1852020-11-13 Tom Tromey <tom@tromey.com>
186
187 * c-lang.c (convert_ucn, convert_octal, convert_hex)
188 (convert_escape, parse_one_string): Constify.
189
25f4c262
KS
1902020-11-13 Keith Seitz <keiths@redhat.com>
191
192 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
193 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
194 outside of ELF segments" warning for debugin
195
9d3ab915
KS
1962020-11-13 Keith Seitz <keiths@redhat.com>
197
198 PR gdb/23034
199 * elfread.c (elf_symfile_segments): Output a BFD file name
200 for the "Loadable section ... outside of ELF segments" warning.
201
9ecab40c
SM
2022020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
203
204 PR gdb/26835
205 * arm-tdep.c (class arm_instruction_reader): New.
206 (target_arm_instruction_reader): New.
207 (arm_analyze_prologue): Add instruction reader parameter and use
208 it. Use arm_expand_immediate.
209 (class target_arm_instruction_reader): Adjust.
210 (arm_skip_prologue): Adjust.
211 (arm_expand_immediate): New.
212 (arm_scan_prologue): Adjust.
213 (arm_analyze_prologue_test): New.
214 (class test_arm_instruction_reader): New.
215
5a7cf527
AB
2162020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
217
218 * f-lang.c (fortran_argument_convert): Add declaration. Add
219 header comment, taken from f-lang.h. Make static.
220 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
221 (fortran_argument_convert): Delete declaration.
222
7bea47f0
AB
2232020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
224
225 * ada-exp.y (find_primitive_type): Make parameter const.
226 * ada-lang.c (enum ada_primitive_types): Delete.
227 (ada_language::language_arch_info): Update.
228 * c-lang.c (enum c_primitive_types): Delete.
229 (c_language_arch_info): Update.
230 (enum cplus_primitive_types): Delete.
231 (cplus_language::language_arch_info): Update.
232 * d-lang.c (enum d_primitive_types): Delete.
233 (d_language::language_arch_info): Update.
234 * f-lang.c (enum f_primitive_types): Delete.
235 (f_language::language_arch_info): Update.
236 * go-lang.c (enum go_primitive_types): Delete.
237 (go_language::language_arch_info): Update.
238 * language.c (auto_or_unknown_language::language_arch_info):
239 Update.
240 (language_gdbarch_post_init): Use obstack_new, use array indexing.
241 (language_string_char_type): Add header comment, call function in
242 language_arch_info.
243 (language_bool_type): Likewise
244 (language_arch_info::bool_type): Define.
245 (language_lookup_primitive_type_1): Delete.
246 (language_lookup_primitive_type): Rewrite as a templated function
247 to call function in language_arch_info, then instantiate twice.
248 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
249 (language_arch_info::lookup_primitive_type_and_symbol): Define.
250 (language_arch_info::lookup_primitive_type): Define twice with
251 different signatures.
252 (language_arch_info::lookup_primitive_type_as_symbol): Define.
253 (language_lookup_primitive_type_as_symbol): Rewrite to call a
254 member function in language_arch_info.
255 * language.h (language_arch_info): Complete rewrite.
256 (language_lookup_primitive_type): Make templated.
257 * m2-lang.c (enum m2_primitive_types): Delete.
258 (m2_language::language_arch_info): Update.
259 * opencl-lang.c (OCL_P_TYPE): Delete.
260 (enum opencl_primitive_types): Delete.
261 (opencl_type_data): Delete.
262 (builtin_opencl_type): Delete.
263 (lookup_opencl_vector_type): Update.
264 (opencl_language::language_arch_info): Update, lots of content
265 moved from...
266 (build_opencl_types): ...here. This function is now deleted.
267 (_initialize_opencl_language): Delete.
268 * p-lang.c (enum pascal_primitive_types): Delete.
269 (pascal_language::language_arch_info): Update.
270 * rust-lang.c (enum rust_primitive_types): Delete.
271 (rust_language::language_arch_info): Update.
272
bf6e5d01
SM
2732020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
274
275 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
276 dwarf2_queue_guard.
277
1350c3b4
SM
2782020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
279
280 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
281 comment.
282
6f738b01
SM
2832020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * dwarf2/read.c (dwarf_read_debug_printf,
286 dwarf_read_debug_printf_v): New macros, use throughout the file.
287
10c19fad
SV
2882020-11-12 Shahab Vahedi <shahab@synopsys.com>
289
290 * arc-linux-tdep.c (collect_register): Populate "eret" by
291 "pc" value from the regcache when asked for "pc" value.
292
1f2624a3
TT
2932020-11-12 Tom Tromey <tom@tromey.com>
294
295 PR rust/26799:
296 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
297 exist.
298
ab33b152
AB
2992020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
300
301 * features/Makefile (XMLTOC): Add rx.xml.
302 (FEATURE_XMLFILES): Remove rx.xml.
303 (FEATURE_CFILES rule): Pass '-single-feature' flag.
304 * features/rx.c: Regenerate.
305 * features/rx.xml: Wrap in `target` tags, and reindent.
306 * target-descriptions.c (struct maint_print_c_tdesc_options): New
307 structure.
308 (maint_print_c_tdesc_opt_def): New typedef.
309 (maint_print_c_tdesc_opt_defs): New static global.
310 (make_maint_print_c_tdesc_options_def_group): New function.
311 (maint_print_c_tdesc_cmd): Make use of command line flags, only
312 print single feature C file for target descriptions containing a
313 single feature.
314 (maint_print_c_tdesc_cmd_completer): New function.
315 (_initialize_target_descriptions): Update call to register command
316 completer, and include command line flag in help text.
317
550820e1
AB
3182020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
319
320 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
321 numbers.
322 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
323 enum values.
324
baf20f76
TT
3252020-11-10 Tom Tromey <tom@tromey.com>
326
327 * value.h (internalvar_name): Update.
328 * value.c (internalvar_name): Make return type const.
329
caaece0e
TT
3302020-11-10 Tom Tromey <tom@tromey.com>
331
332 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
333 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
334 const.
335
8e20b4be
TT
3362020-11-10 Tom Tromey <tom@tromey.com>
337
338 * objc-lang.h (value_nsstring): Update.
339 * objc-lang.c (value_nsstring): Make "ptr" const.
340
86775fab
AB
3412020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
342
343 * expprint.c (print_subexp_funcall): Increment expression position
344 after reading argument count.
345 * f-lang.c (print_subexp_f): Skip over opcode before calling
346 common function.
347 (dump_subexp_body_f): Likewise.
348
3fed4c0b
RG
3492020-11-06 Romain Geissler <romain.geissler@amadeus.com>
350
351 PR python/26832
352 * configure: Regenerate.
353 * configure.ac: Check for python modules ctypes instead of
354 itertools.
355
ac3d4064
PA
3562020-11-06 Pedro Alves <pedro@palves.net>
357
358 * macroexp.c (struct macro_buffer): Split in two classes. Add
359 uses adjusted.
360 (struct shared_macro_buffer): New, factored out from struct
361 macro_buffer.
362 (struct growable_macro_buffer): New, factored out from struct
363 macro_buffer.
364 (set_token, get_comment, get_identifier, get_pp_number)
365 (get_character_constant, get_string_literal, get_punctuator)
366 (get_next_token_for_substitution): Constify parameters.
367 (substitute_args): Constify locals.
368
606decb2
TT
3692020-11-05 Tom Tromey <tom@tromey.com>
370
371 * dwarf2/read.c (read_cutu_die_from_dwo)
372 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
373 (build_type_psymtabs_1): Update.
374 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
375 parameter.
376 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
377 Don't read section. Add assert.
378
9c91c725
TT
3792020-11-04 Tom Tromey <tromey@adacore.com>
380
381 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
382
8d9fd3a1
TT
3832020-11-04 Tom Tromey <tromey@adacore.com>
384
385 * ada-typeprint.c (ada_print_type): Handle __T types.
386
d8f62e84
TT
3872020-11-04 Tom Tromey <tromey@adacore.com>
388
389 * dwarf2/read.c (add_partial_symbol, process_die):
390 Handle DW_TAG_array_type.
391 (is_type_tag_for_partial): Add "lang" parameter.
392 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
393
7ff5b937
TT
3942020-11-04 Tom Tromey <tromey@adacore.com>
395
396 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
397
10f6a3ad
TT
3982020-11-04 Tom Tromey <tromey@adacore.com>
399
400 * dwarf2/read.c (read_array_type): Only apply stride to innermost
401 array.
402
b72795a8
TT
4032020-11-04 Tom Tromey <tromey@adacore.com>
404
405 * gdbtypes.c (update_static_array_size): Handle bit stride.
406
24aa1b02
TT
4072020-11-04 Tom Tromey <tromey@adacore.com>
408
409 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
410
c9a28cbe
TT
4112020-11-04 Tom Tromey <tromey@adacore.com>
412
413 * ada-lang.c (ada_is_any_packed_array_type): New function.
414 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
415
57567375
TT
4162020-11-04 Tom Tromey <tromey@adacore.com>
417
418 * dwarf2/read.c (recognize_bound_expression)
419 (quirk_ada_thick_pointer): New functions.
420 (read_array_type): Call quirk_ada_thick_pointer.
421 (set_die_type): Add "skip_data_location" parameter.
422 (quirk_ada_thick_pointer): New function.
423 (process_structure_scope): Call quirk_ada_thick_pointer.
424 * ada-lang.c (ada_is_unconstrained_packed_array_type)
425 (decode_packed_array_bitsize): Handle thick pointers without
426 parallel types.
427 (ada_is_gnat_encoded_packed_array_type): Rename from
428 ada_is_packed_array_type.
429 (ada_is_constrained_packed_array_type): Update.
430 * ada-valprint.c (ada_val_print_gnat_array): Remove.
431 (ada_value_print_1): Use ada_get_decoded_value.
432
a7400e44
TT
4332020-11-04 Tom Tromey <tromey@adacore.com>
434
435 * ada-lang.c (recursively_update_array_bitsize): New function.
436 (decode_constrained_packed_array_type): Call it.
437
75fd6a26
TT
4382020-11-04 Tom Tromey <tromey@adacore.com>
439
440 * ada-lang.c (to_fixed_array_type): Error if
441 decode_constrained_packed_array_type returns NULL.
442
93f9561e
TT
4432020-11-04 Tom Tromey <tromey@adacore.com>
444
445 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
446
257e02d8
TT
4472020-11-02 Tom Tromey <tromey@adacore.com>
448
449 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
450 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
451 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
452 * amd64-ravenscar-thread.c: New file.
453 * amd64-ravenscar-thread.h: New file.
454 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
455 * configure.tgt (amd64_tobjs): Add ravenscar objects.
456
74d877e5
AB
4572020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
458
459 * main.c (execute_cmdargs): New function.
460 (captured_main_1): Make use of execute_cmdargs.
461
64aaad63
AB
4622020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
463
464 * NEWS: Mention changes to config file search path.
465 * main.c
466
5b3d3560
TT
4672020-11-02 Tom Tromey <tromey@adacore.com>
468
469 * python/python.c: Consolidate two HAVE_PYTHON blocks.
470 (python_GdbModuleDef): Move earlier. Now static.
471 (do_start_initialization): Consolidate some IS_PY3K blocks.
472
dda83cd7
SM
4732020-11-02 Simon Marchi <simon.marchi@efficios.com>
474
475 * aarch64-linux-tdep.c: Fix indentation.
476 * aarch64-ravenscar-thread.c: Fix indentation.
477 * aarch64-tdep.c: Fix indentation.
478 * aarch64-tdep.h: Fix indentation.
479 * ada-lang.c: Fix indentation.
480 * ada-lang.h: Fix indentation.
481 * ada-tasks.c: Fix indentation.
482 * ada-typeprint.c: Fix indentation.
483 * ada-valprint.c: Fix indentation.
484 * ada-varobj.c: Fix indentation.
485 * addrmap.c: Fix indentation.
486 * addrmap.h: Fix indentation.
487 * agent.c: Fix indentation.
488 * aix-thread.c: Fix indentation.
489 * alpha-bsd-nat.c: Fix indentation.
490 * alpha-linux-tdep.c: Fix indentation.
491 * alpha-mdebug-tdep.c: Fix indentation.
492 * alpha-nbsd-tdep.c: Fix indentation.
493 * alpha-obsd-tdep.c: Fix indentation.
494 * alpha-tdep.c: Fix indentation.
495 * amd64-bsd-nat.c: Fix indentation.
496 * amd64-darwin-tdep.c: Fix indentation.
497 * amd64-linux-nat.c: Fix indentation.
498 * amd64-linux-tdep.c: Fix indentation.
499 * amd64-nat.c: Fix indentation.
500 * amd64-obsd-tdep.c: Fix indentation.
501 * amd64-tdep.c: Fix indentation.
502 * amd64-windows-tdep.c: Fix indentation.
503 * annotate.c: Fix indentation.
504 * arc-tdep.c: Fix indentation.
505 * arch-utils.c: Fix indentation.
506 * arch/arm-get-next-pcs.c: Fix indentation.
507 * arch/arm.c: Fix indentation.
508 * arm-linux-nat.c: Fix indentation.
509 * arm-linux-tdep.c: Fix indentation.
510 * arm-nbsd-tdep.c: Fix indentation.
511 * arm-pikeos-tdep.c: Fix indentation.
512 * arm-tdep.c: Fix indentation.
513 * arm-tdep.h: Fix indentation.
514 * arm-wince-tdep.c: Fix indentation.
515 * auto-load.c: Fix indentation.
516 * auxv.c: Fix indentation.
517 * avr-tdep.c: Fix indentation.
518 * ax-gdb.c: Fix indentation.
519 * ax-general.c: Fix indentation.
520 * bfin-linux-tdep.c: Fix indentation.
521 * block.c: Fix indentation.
522 * block.h: Fix indentation.
523 * blockframe.c: Fix indentation.
524 * bpf-tdep.c: Fix indentation.
525 * break-catch-sig.c: Fix indentation.
526 * break-catch-syscall.c: Fix indentation.
527 * break-catch-throw.c: Fix indentation.
528 * breakpoint.c: Fix indentation.
529 * breakpoint.h: Fix indentation.
530 * bsd-uthread.c: Fix indentation.
531 * btrace.c: Fix indentation.
532 * build-id.c: Fix indentation.
533 * buildsym-legacy.h: Fix indentation.
534 * buildsym.c: Fix indentation.
535 * c-typeprint.c: Fix indentation.
536 * c-valprint.c: Fix indentation.
537 * c-varobj.c: Fix indentation.
538 * charset.c: Fix indentation.
539 * cli/cli-cmds.c: Fix indentation.
540 * cli/cli-decode.c: Fix indentation.
541 * cli/cli-decode.h: Fix indentation.
542 * cli/cli-script.c: Fix indentation.
543 * cli/cli-setshow.c: Fix indentation.
544 * coff-pe-read.c: Fix indentation.
545 * coffread.c: Fix indentation.
546 * compile/compile-cplus-types.c: Fix indentation.
547 * compile/compile-object-load.c: Fix indentation.
548 * compile/compile-object-run.c: Fix indentation.
549 * completer.c: Fix indentation.
550 * corefile.c: Fix indentation.
551 * corelow.c: Fix indentation.
552 * cp-abi.h: Fix indentation.
553 * cp-namespace.c: Fix indentation.
554 * cp-support.c: Fix indentation.
555 * cp-valprint.c: Fix indentation.
556 * cris-linux-tdep.c: Fix indentation.
557 * cris-tdep.c: Fix indentation.
558 * darwin-nat-info.c: Fix indentation.
559 * darwin-nat.c: Fix indentation.
560 * darwin-nat.h: Fix indentation.
561 * dbxread.c: Fix indentation.
562 * dcache.c: Fix indentation.
563 * disasm.c: Fix indentation.
564 * dtrace-probe.c: Fix indentation.
565 * dwarf2/abbrev.c: Fix indentation.
566 * dwarf2/attribute.c: Fix indentation.
567 * dwarf2/expr.c: Fix indentation.
568 * dwarf2/frame.c: Fix indentation.
569 * dwarf2/index-cache.c: Fix indentation.
570 * dwarf2/index-write.c: Fix indentation.
571 * dwarf2/line-header.c: Fix indentation.
572 * dwarf2/loc.c: Fix indentation.
573 * dwarf2/macro.c: Fix indentation.
574 * dwarf2/read.c: Fix indentation.
575 * dwarf2/read.h: Fix indentation.
576 * elfread.c: Fix indentation.
577 * eval.c: Fix indentation.
578 * event-top.c: Fix indentation.
579 * exec.c: Fix indentation.
580 * exec.h: Fix indentation.
581 * expprint.c: Fix indentation.
582 * f-lang.c: Fix indentation.
583 * f-typeprint.c: Fix indentation.
584 * f-valprint.c: Fix indentation.
585 * fbsd-nat.c: Fix indentation.
586 * fbsd-tdep.c: Fix indentation.
587 * findvar.c: Fix indentation.
588 * fork-child.c: Fix indentation.
589 * frame-unwind.c: Fix indentation.
590 * frame-unwind.h: Fix indentation.
591 * frame.c: Fix indentation.
592 * frv-linux-tdep.c: Fix indentation.
593 * frv-tdep.c: Fix indentation.
594 * frv-tdep.h: Fix indentation.
595 * ft32-tdep.c: Fix indentation.
596 * gcore.c: Fix indentation.
597 * gdb_bfd.c: Fix indentation.
598 * gdbarch.sh: Fix indentation.
599 * gdbarch.c: Re-generate
600 * gdbarch.h: Re-generate.
601 * gdbcore.h: Fix indentation.
602 * gdbthread.h: Fix indentation.
603 * gdbtypes.c: Fix indentation.
604 * gdbtypes.h: Fix indentation.
605 * glibc-tdep.c: Fix indentation.
606 * gnu-nat.c: Fix indentation.
607 * gnu-nat.h: Fix indentation.
608 * gnu-v2-abi.c: Fix indentation.
609 * gnu-v3-abi.c: Fix indentation.
610 * go32-nat.c: Fix indentation.
611 * guile/guile-internal.h: Fix indentation.
612 * guile/scm-cmd.c: Fix indentation.
613 * guile/scm-frame.c: Fix indentation.
614 * guile/scm-iterator.c: Fix indentation.
615 * guile/scm-math.c: Fix indentation.
616 * guile/scm-ports.c: Fix indentation.
617 * guile/scm-pretty-print.c: Fix indentation.
618 * guile/scm-value.c: Fix indentation.
619 * h8300-tdep.c: Fix indentation.
620 * hppa-linux-nat.c: Fix indentation.
621 * hppa-linux-tdep.c: Fix indentation.
622 * hppa-nbsd-nat.c: Fix indentation.
623 * hppa-nbsd-tdep.c: Fix indentation.
624 * hppa-obsd-nat.c: Fix indentation.
625 * hppa-tdep.c: Fix indentation.
626 * hppa-tdep.h: Fix indentation.
627 * i386-bsd-nat.c: Fix indentation.
628 * i386-darwin-nat.c: Fix indentation.
629 * i386-darwin-tdep.c: Fix indentation.
630 * i386-dicos-tdep.c: Fix indentation.
631 * i386-gnu-nat.c: Fix indentation.
632 * i386-linux-nat.c: Fix indentation.
633 * i386-linux-tdep.c: Fix indentation.
634 * i386-nto-tdep.c: Fix indentation.
635 * i386-obsd-tdep.c: Fix indentation.
636 * i386-sol2-nat.c: Fix indentation.
637 * i386-tdep.c: Fix indentation.
638 * i386-tdep.h: Fix indentation.
639 * i386-windows-tdep.c: Fix indentation.
640 * i387-tdep.c: Fix indentation.
641 * i387-tdep.h: Fix indentation.
642 * ia64-libunwind-tdep.c: Fix indentation.
643 * ia64-libunwind-tdep.h: Fix indentation.
644 * ia64-linux-nat.c: Fix indentation.
645 * ia64-linux-tdep.c: Fix indentation.
646 * ia64-tdep.c: Fix indentation.
647 * ia64-tdep.h: Fix indentation.
648 * ia64-vms-tdep.c: Fix indentation.
649 * infcall.c: Fix indentation.
650 * infcmd.c: Fix indentation.
651 * inferior.c: Fix indentation.
652 * infrun.c: Fix indentation.
653 * iq2000-tdep.c: Fix indentation.
654 * language.c: Fix indentation.
655 * linespec.c: Fix indentation.
656 * linux-fork.c: Fix indentation.
657 * linux-nat.c: Fix indentation.
658 * linux-tdep.c: Fix indentation.
659 * linux-thread-db.c: Fix indentation.
660 * lm32-tdep.c: Fix indentation.
661 * m2-lang.c: Fix indentation.
662 * m2-typeprint.c: Fix indentation.
663 * m2-valprint.c: Fix indentation.
664 * m32c-tdep.c: Fix indentation.
665 * m32r-linux-tdep.c: Fix indentation.
666 * m32r-tdep.c: Fix indentation.
667 * m68hc11-tdep.c: Fix indentation.
668 * m68k-bsd-nat.c: Fix indentation.
669 * m68k-linux-nat.c: Fix indentation.
670 * m68k-linux-tdep.c: Fix indentation.
671 * m68k-tdep.c: Fix indentation.
672 * machoread.c: Fix indentation.
673 * macrocmd.c: Fix indentation.
674 * macroexp.c: Fix indentation.
675 * macroscope.c: Fix indentation.
676 * macrotab.c: Fix indentation.
677 * macrotab.h: Fix indentation.
678 * main.c: Fix indentation.
679 * mdebugread.c: Fix indentation.
680 * mep-tdep.c: Fix indentation.
681 * mi/mi-cmd-catch.c: Fix indentation.
682 * mi/mi-cmd-disas.c: Fix indentation.
683 * mi/mi-cmd-env.c: Fix indentation.
684 * mi/mi-cmd-stack.c: Fix indentation.
685 * mi/mi-cmd-var.c: Fix indentation.
686 * mi/mi-cmds.c: Fix indentation.
687 * mi/mi-main.c: Fix indentation.
688 * mi/mi-parse.c: Fix indentation.
689 * microblaze-tdep.c: Fix indentation.
690 * minidebug.c: Fix indentation.
691 * minsyms.c: Fix indentation.
692 * mips-linux-nat.c: Fix indentation.
693 * mips-linux-tdep.c: Fix indentation.
694 * mips-nbsd-tdep.c: Fix indentation.
695 * mips-tdep.c: Fix indentation.
696 * mn10300-linux-tdep.c: Fix indentation.
697 * mn10300-tdep.c: Fix indentation.
698 * moxie-tdep.c: Fix indentation.
699 * msp430-tdep.c: Fix indentation.
700 * namespace.h: Fix indentation.
701 * nat/fork-inferior.c: Fix indentation.
702 * nat/gdb_ptrace.h: Fix indentation.
703 * nat/linux-namespaces.c: Fix indentation.
704 * nat/linux-osdata.c: Fix indentation.
705 * nat/netbsd-nat.c: Fix indentation.
706 * nat/x86-dregs.c: Fix indentation.
707 * nbsd-nat.c: Fix indentation.
708 * nbsd-tdep.c: Fix indentation.
709 * nios2-linux-tdep.c: Fix indentation.
710 * nios2-tdep.c: Fix indentation.
711 * nto-procfs.c: Fix indentation.
712 * nto-tdep.c: Fix indentation.
713 * objfiles.c: Fix indentation.
714 * objfiles.h: Fix indentation.
715 * opencl-lang.c: Fix indentation.
716 * or1k-tdep.c: Fix indentation.
717 * osabi.c: Fix indentation.
718 * osabi.h: Fix indentation.
719 * osdata.c: Fix indentation.
720 * p-lang.c: Fix indentation.
721 * p-typeprint.c: Fix indentation.
722 * p-valprint.c: Fix indentation.
723 * parse.c: Fix indentation.
724 * ppc-linux-nat.c: Fix indentation.
725 * ppc-linux-tdep.c: Fix indentation.
726 * ppc-nbsd-nat.c: Fix indentation.
727 * ppc-nbsd-tdep.c: Fix indentation.
728 * ppc-obsd-nat.c: Fix indentation.
729 * ppc-ravenscar-thread.c: Fix indentation.
730 * ppc-sysv-tdep.c: Fix indentation.
731 * ppc64-tdep.c: Fix indentation.
732 * printcmd.c: Fix indentation.
733 * proc-api.c: Fix indentation.
734 * producer.c: Fix indentation.
735 * producer.h: Fix indentation.
736 * prologue-value.c: Fix indentation.
737 * prologue-value.h: Fix indentation.
738 * psymtab.c: Fix indentation.
739 * python/py-arch.c: Fix indentation.
740 * python/py-bpevent.c: Fix indentation.
741 * python/py-event.c: Fix indentation.
742 * python/py-event.h: Fix indentation.
743 * python/py-finishbreakpoint.c: Fix indentation.
744 * python/py-frame.c: Fix indentation.
745 * python/py-framefilter.c: Fix indentation.
746 * python/py-inferior.c: Fix indentation.
747 * python/py-infthread.c: Fix indentation.
748 * python/py-objfile.c: Fix indentation.
749 * python/py-prettyprint.c: Fix indentation.
750 * python/py-registers.c: Fix indentation.
751 * python/py-signalevent.c: Fix indentation.
752 * python/py-stopevent.c: Fix indentation.
753 * python/py-stopevent.h: Fix indentation.
754 * python/py-threadevent.c: Fix indentation.
755 * python/py-tui.c: Fix indentation.
756 * python/py-unwind.c: Fix indentation.
757 * python/py-value.c: Fix indentation.
758 * python/py-xmethods.c: Fix indentation.
759 * python/python-internal.h: Fix indentation.
760 * python/python.c: Fix indentation.
761 * ravenscar-thread.c: Fix indentation.
762 * record-btrace.c: Fix indentation.
763 * record-full.c: Fix indentation.
764 * record.c: Fix indentation.
765 * reggroups.c: Fix indentation.
766 * regset.h: Fix indentation.
767 * remote-fileio.c: Fix indentation.
768 * remote.c: Fix indentation.
769 * reverse.c: Fix indentation.
770 * riscv-linux-tdep.c: Fix indentation.
771 * riscv-ravenscar-thread.c: Fix indentation.
772 * riscv-tdep.c: Fix indentation.
773 * rl78-tdep.c: Fix indentation.
774 * rs6000-aix-tdep.c: Fix indentation.
775 * rs6000-lynx178-tdep.c: Fix indentation.
776 * rs6000-nat.c: Fix indentation.
777 * rs6000-tdep.c: Fix indentation.
778 * rust-lang.c: Fix indentation.
779 * rx-tdep.c: Fix indentation.
780 * s12z-tdep.c: Fix indentation.
781 * s390-linux-tdep.c: Fix indentation.
782 * score-tdep.c: Fix indentation.
783 * ser-base.c: Fix indentation.
784 * ser-mingw.c: Fix indentation.
785 * ser-uds.c: Fix indentation.
786 * ser-unix.c: Fix indentation.
787 * serial.c: Fix indentation.
788 * sh-linux-tdep.c: Fix indentation.
789 * sh-nbsd-tdep.c: Fix indentation.
790 * sh-tdep.c: Fix indentation.
791 * skip.c: Fix indentation.
792 * sol-thread.c: Fix indentation.
793 * solib-aix.c: Fix indentation.
794 * solib-darwin.c: Fix indentation.
795 * solib-frv.c: Fix indentation.
796 * solib-svr4.c: Fix indentation.
797 * solib.c: Fix indentation.
798 * source.c: Fix indentation.
799 * sparc-linux-tdep.c: Fix indentation.
800 * sparc-nbsd-tdep.c: Fix indentation.
801 * sparc-obsd-tdep.c: Fix indentation.
802 * sparc-ravenscar-thread.c: Fix indentation.
803 * sparc-tdep.c: Fix indentation.
804 * sparc64-linux-tdep.c: Fix indentation.
805 * sparc64-nbsd-tdep.c: Fix indentation.
806 * sparc64-obsd-tdep.c: Fix indentation.
807 * sparc64-tdep.c: Fix indentation.
808 * stabsread.c: Fix indentation.
809 * stack.c: Fix indentation.
810 * stap-probe.c: Fix indentation.
811 * stubs/ia64vms-stub.c: Fix indentation.
812 * stubs/m32r-stub.c: Fix indentation.
813 * stubs/m68k-stub.c: Fix indentation.
814 * stubs/sh-stub.c: Fix indentation.
815 * stubs/sparc-stub.c: Fix indentation.
816 * symfile-mem.c: Fix indentation.
817 * symfile.c: Fix indentation.
818 * symfile.h: Fix indentation.
819 * symmisc.c: Fix indentation.
820 * symtab.c: Fix indentation.
821 * symtab.h: Fix indentation.
822 * target-float.c: Fix indentation.
823 * target.c: Fix indentation.
824 * target.h: Fix indentation.
825 * tic6x-tdep.c: Fix indentation.
826 * tilegx-linux-tdep.c: Fix indentation.
827 * tilegx-tdep.c: Fix indentation.
828 * top.c: Fix indentation.
829 * tracefile-tfile.c: Fix indentation.
830 * tracepoint.c: Fix indentation.
831 * tui/tui-disasm.c: Fix indentation.
832 * tui/tui-io.c: Fix indentation.
833 * tui/tui-regs.c: Fix indentation.
834 * tui/tui-stack.c: Fix indentation.
835 * tui/tui-win.c: Fix indentation.
836 * tui/tui-winsource.c: Fix indentation.
837 * tui/tui.c: Fix indentation.
838 * typeprint.c: Fix indentation.
839 * ui-out.h: Fix indentation.
840 * unittests/copy_bitwise-selftests.c: Fix indentation.
841 * unittests/memory-map-selftests.c: Fix indentation.
842 * utils.c: Fix indentation.
843 * v850-tdep.c: Fix indentation.
844 * valarith.c: Fix indentation.
845 * valops.c: Fix indentation.
846 * valprint.c: Fix indentation.
847 * valprint.h: Fix indentation.
848 * value.c: Fix indentation.
849 * value.h: Fix indentation.
850 * varobj.c: Fix indentation.
851 * vax-tdep.c: Fix indentation.
852 * windows-nat.c: Fix indentation.
853 * windows-tdep.c: Fix indentation.
854 * xcoffread.c: Fix indentation.
855 * xml-syscall.c: Fix indentation.
856 * xml-tdesc.c: Fix indentation.
857 * xstormy16-tdep.c: Fix indentation.
858 * xtensa-config.c: Fix indentation.
859 * xtensa-linux-nat.c: Fix indentation.
860 * xtensa-linux-tdep.c: Fix indentation.
861 * xtensa-tdep.c: Fix indentation.
862
e1f57067
AB
8632020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
864 Craig Blackmore <craig.blackmore@embecosm.com>
865
866 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
867 as an unsigned value.
868
ae7754b2
TT
8692020-11-01 Tom Tromey <tom@tromey.com>
870
871 * dbxread.c (dbx_end_psymtab): Update.
872 * dwarf2/read.c (process_psymtab_comp_unit_reader)
873 (build_type_psymtabs_reader): Update.
874 * xcoffread.c (xcoff_end_psymtab): Update.
875 * ctfread.c (scan_partial_symbols): Update.
876 * psymtab.c (sort_pst_symbols): Remove.
877 (partial_symtab::end): Rename from end_psymtab_common. Inline
878 sort_pst_symbols.
879 * psympriv.h (struct partial_symtab) <end>: New method.
880 (end_psymtab_common): Don't declare.
881
0684bb51
TT
8822020-11-01 Tom Tromey <tom@tromey.com>
883
884 * symmisc.c (count_psyms): New function.
885 (print_objfile_statistics): Use it.
886 * psymtab.c (append_psymbol_to_list): Remove.
887 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
888 * objfiles.h (struct objstats) <n_psyms>: Remove.
889
089002bb
TT
8902020-11-01 Tom Tromey <tom@tromey.com>
891
892 * dbxread.c (dbx_end_psymtab): Update.
893 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
894 (build_type_psymtabs_reader): Update.
895 * xcoffread.c (xcoff_end_psymtab): Update.
896 * ctfread.c (scan_partial_symbols): Update.
897 * psympriv.h (end_psymtab_common): Update.
898 * psymtab.c (end_psymtab_common): Remove objfile parameter.
899 (sort_pst_symbols): Likewise.
900
525454d6
TT
9012020-11-01 Tom Tromey <tom@tromey.com>
902
903 * dbxread.c (dbx_symfile_read): Update.
904 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
905 * xcoffread.c (xcoff_initial_scan): Update.
906 * psympriv.h (init_psymbol_list): Don't declare.
907 * psymtab.c (init_psymbol_list): Remove.
908
60bd1d53
JB
9092020-11-01 Joel Brobecker <brobecker@adacore.com>
910
911 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
912 gnat_encoded_fixed_type_info. Update all callers.
913
db99d0d0
JB
9142020-11-01 Joel Brobecker <brobecker@adacore.com>
915
916 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
917 line too long.
918
75f24e86
JB
9192020-11-01 Joel Brobecker <brobecker@adacore.com>
920
921 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
922 cast_from_fixed. Update all callers.
923 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
924 Update all callers.
925 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
926 Update all callers.
927 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
928 ada_scaling_factor.
929 * ada-typeprint.c: Replace call to ada_scaling_factor by call
930 to print_gnat_encoded_fixed_point_type.
931 * ada-valprint.c: Likewise.
932
4f0469cd
AB
9332020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
934
935 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
936 (debug_prefixed_printf): Add check of debug_displaced flag.
937 * linux-nat.c (linux_nat_debug_printf): Add check of
938 debug_linux_nat flag.
939
17417fb0
SM
9402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
941
942 * infrun.c (infrun_debug_printf_1): Remove.
943 (displaced_debug_printf_1): Remove.
944 (stop_all_threads): Use debug_prefixed_printf.
945 * infrun.h (infrun_debug_printf_1): Remove.
946 (infrun_debug_printf): Use debug_prefixed_printf.
947 (displaced_debug_printf_1): Remove.
948 (displaced_debug_printf): Use debug_prefixed_printf.
949 * linux-nat.c (linux_nat_debug_printf_1): Remove.
950 (linux_nat_debug_printf): Use debug_prefixed_printf.
951
ad6dba1c
SM
9522020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
953
954 * configure: Re-generate.
955 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
956 AC_LANG_PROGRAM.
957
b6fb30ed
SM
9582020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
959
960 * configure: Re-generate.
961
5164c117
SM
9622020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
963
964 * configure: Re-generate.
965
864ca435
SM
9662020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
967
968 * configure: Re-generate.
969
b9442ec1
SM
9702020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
971
972 * configure: Re-generate.
973
294f2697
SM
9742020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
975
976 * acinclude.m4: Modernize.
977 * configure: Re-generate.
978
5593a99a
SM
9792020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
980
981 * configure.ac: Modernize.
982 * configure: Re-generate.
983
e41fda1d
SM
9842020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
985
986 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
987 * configure: Re-generate.
988 * configure.ac: Remove AM_PROG_CC_STDC.
989
91e1a0ed
SM
9902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
991
992 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
993 AC_CANONICAL_SYSTEM.
994 * configure: Re-generate.
995
136821d9
SM
9962020-10-30 Simon Marchi <simon.marchi@efficios.com>
997
998 * infrun.h (displaced_debug_printf): New macro. Replace
999 displaced debug prints throughout to use it.
1000 (displaced_debug_printf_1): New declaration.
1001 (displaced_step_dump_bytes): Return string, remove ui_file
1002 parameter, update all callers.
1003 * infrun.c (displaced_debug_printf_1): New function.
1004 (displaced_step_dump_bytes): Return string, remove ui_file
1005 parameter
1006
aa2045e7
SM
10072020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1008
1009 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1010
b1ec2735
TT
10112020-10-30 Tom Tromey <tromey@adacore.com>
1012
1013 * Makefile.in (stamp-init): Depend on config.status.
1014
b78b3a29
TBA
10152020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1016
1017 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1018
d70bdd3c
PA
10192020-10-30 Pedro Alves <pedro@palves.net>
1020
1021 * thread.c (lookup_selected_frame): Move ...
1022 * frame.c (lookup_selected_frame): ... here.
1023
79952e69
PA
10242020-10-30 Pedro Alves <pedro@palves.net>
1025
1026 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1027 * frame.c
1028 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1029 Use save_selected_frame. Save language as well.
1030 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1031 Use restore_selected_frame, and restore language as well.
1032 (selected_frame_id, selected_frame_level): New.
1033 (selected_frame): Update comments.
1034 (save_selected_frame, restore_selected_frame): New.
1035 (get_selected_frame): Use lookup_selected_frame.
1036 (get_selected_frame_if_set): Delete.
1037 (select_frame): Record selected_frame_level and selected_frame_id.
1038 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1039 fields.
1040 (get_selected_frame): Make 'message' parameter optional.
1041 (get_selected_frame_if_set): Delete declaration.
1042 (select_frame): Update comments.
1043 (save_selected_frame, restore_selected_frame)
1044 (lookup_selected_frame): Declare.
1045 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1046 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1047 New field.
1048 (save_infcall_control_state): Use save_selected_frame.
1049 (restore_selected_frame): Delete.
1050 (restore_infcall_control_state): Use restore_selected_frame.
1051 * stack.c (select_frame_command_core, frame_command_core): Use
1052 get_selected_frame.
1053 * thread.c (restore_selected_frame): Rename to ...
1054 (lookup_selected_frame): ... this and make extern. Select the
1055 current frame if the frame level is -1.
1056 (scoped_restore_current_thread::restore): Also restore the
1057 language.
1058 (scoped_restore_current_thread::~scoped_restore_current_thread):
1059 Don't try/catch.
1060 (scoped_restore_current_thread::scoped_restore_current_thread):
1061 Save the language as well. Use save_selected_frame.
1062
58103c33
SM
10632020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1064
1065 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1066 documentation.
1067 * gdbarch.h: Re-generate.
1068
40a53766
SM
10692020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1070
1071 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1072 parameter.
1073 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1074 Likewise.
1075 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1076 Likewise.
1077 * arch-utils.c (default_displaced_step_hw_singlestep):
1078 Likewise.
1079 * arch-utils.h (default_displaced_step_hw_singlestep):
1080 Likewise.
1081 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1082 Likewise.
1083 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1084 Likewise.
1085 * gdbarch.c: Re-generate.
1086 * gdbarch.h: Re-generate.
1087 * infrun.c (resume_1): Adjust.
1088
8407f91b
TT
10892020-10-29 Tom Tromey <tom@tromey.com>
1090
1091 * progspace.c (program_space::~program_space): Don't call
1092 exec_close.
1093
5008b3b2
TT
10942020-10-29 Tom Tromey <tom@tromey.com>
1095
1096 * exec.c (exec_target::close): Don't change current program
1097 space.
1098
d9eebde0
TT
10992020-10-29 Tom Tromey <tom@tromey.com>
1100
1101 * symfile.c (add_symbol_file_command): Update.
1102 * exec.c (program_space::add_target_sections): Rename.
1103 * symfile-mem.c (symbol_file_add_from_memory): Update.
1104 * progspace.h (struct program_space) <add_target_sections>:
1105 Declare new overload.
1106 * exec.h (add_target_sections_of_objfile): Don't declare.
1107
3769e227
TT
11082020-10-29 Tom Tromey <tom@tromey.com>
1109
1110 * solib.c (solib_map_sections): Update.
1111 * exec.c (program_space::add_target_sections): Now a method.
1112 (exec_file_attach): Update.
1113 * exec.h (add_target_sections): Don't declare.
1114 * progspace.h (struct program_space) <add_target_sections>:
1115 Declare.
1116
2a3f84af
TT
11172020-10-29 Tom Tromey <tom@tromey.com>
1118
1119 * progspace.h (struct program_space) <remove_target_sections>:
1120 Declare.
1121 * exec.c (program_space::remove_target_sections): Now a method.
1122 * exec.h (remove_target_sections): Don't declare.
1123
004eecfd
TT
11242020-10-29 Tom Tromey <tom@tromey.com>
1125
1126 * inferior.c (delete_inferior): Update.
1127 * progspace.c (program_space::empty): Rename from
1128 program_space_empty_p. Return bool.
1129 * progspace.h (struct program_space) <empty>: New method.
1130 (program_space_empty_p): Don't declare.
1131
e39fb971
TT
11322020-10-29 Tom Tromey <tom@tromey.com>
1133
1134 * progspace.c (program_space::~program_space): Don't call
1135 clear_program_space_solib_cache.
1136 (program_space::clear_solib_cache): Rename from
1137 clear_solib_cache.
1138 * solib.c (handle_solib_event): Update.
1139 * progspace.h (struct program_space) <clear_solib_cache>: New
1140 method.
1141 (clear_program_space_solib_cache): Don't declare.
1142
a42d7dd8
TT
11432020-10-29 Tom Tromey <tom@tromey.com>
1144
1145 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1146 * target.c (info_target_command): Update.
1147 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1148 (symbol_file_clear, reread_symbols): Update.
1149 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1150 * stabsread.c (scan_file_globals): Update.
1151 * solib.c (update_solib_list): Update.
1152 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1153 (svr4_fetch_objfile_link_map, enable_break)
1154 (svr4_relocate_main_executable)
1155 (svr4_iterate_over_objfiles_in_search_order): Update.
1156 * solib-frv.c (lm_base, enable_break)
1157 (frv_relocate_main_executable): Update.
1158 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1159 (frv_fetch_objfile_link_map): Update.
1160 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1161 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1162 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1163 * remote.c (remote_target::get_offsets): Update.
1164 (remote_target::start_remote)
1165 (extended_remote_target::post_attach): Update.
1166 * objfiles.c (entry_point_address_query): Update.
1167 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1168 * minsyms.c (get_symbol_leading_char): Update.
1169 * frame.c (inside_main_func): Update.
1170 * progspace.h (symfile_objfile): Remove macro.
1171
19f6550e
TT
11722020-10-29 Tom Tromey <tom@tromey.com>
1173
1174 * exec.c (exec_file_attach): Update.
1175 * progspace.c (program_space::exec_close): Update.
1176 * progspace.h (struct program_space) <ebfd>: Now a
1177 gdb_bfd_ref_ptr.
1178 <set_exec_bfd>: Change argument type.
1179 <exec_bfd>: Update.
1180
7e10abd1
TT
11812020-10-29 Tom Tromey <tom@tromey.com>
1182
1183 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1184 * symfile.c (reread_symbols): Update.
1185 * symfile-mem.c (add_symbol_file_from_memory_command)
1186 (add_vsyscall_page): Update.
1187 * source-cache.c (source_cache::get_plain_source_lines): Update.
1188 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1189 (svr4_current_sos_direct, svr4_exec_displacement)
1190 (svr4_relocate_main_executable): Update.
1191 (svr4_iterate_over_objfiles_in_search_order): Update.
1192 * solib-frv.c (enable_break2, enable_break): Update.
1193 * solib-dsbt.c (lm_base, enable_break): Update.
1194 * solib-darwin.c (find_program_interpreter)
1195 (darwin_solib_create_inferior_hook): Update.
1196 * sol-thread.c (rw_common, ps_pdmodel): Update.
1197 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1198 * remote.c (compare_sections_command)
1199 (remote_target::trace_set_readonly_regions): Update.
1200 * remote-sim.c (get_sim_inferior_data)
1201 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1202 (gdbsim_target_open, gdbsim_target::files_info): Update.
1203 * exec.h (exec_bfd): Remove macro.
1204 * progspace.c (initialize_progspace): Update.
1205 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1206 Update.
1207 * nto-procfs.c (nto_procfs_target::post_attach)
1208 (nto_procfs_target::create_inferior): Update.
1209 * maint.c (maintenance_info_sections): Update.
1210 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1211 Update.
1212 * infcmd.c (post_create_inferior): Update.
1213 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1214 (objfile_find_memory_regions): Update.
1215 * exec.c (validate_exec_file, exec_file_attach)
1216 (exec_read_partial_read_only, print_section_info): Update.
1217 * corelow.c (core_target_open): Update.
1218 * corefile.c (reopen_exec_file, validate_files): Update.
1219 * arm-tdep.c (gdb_print_insn_arm): Update.
1220 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1221 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1222 methods.
1223
b55221ab
TT
12242020-10-29 Tom Tromey <tom@tromey.com>
1225
1226 * progspace.h (current_target_sections): Remove macro.
1227 * solib-svr4.c (scan_dyntag): Update.
1228 * solib-dsbt.c (scan_dyntag): Update.
1229 * exec.c (exec_target::close): Update.
1230 (add_target_sections, add_target_sections_of_objfile)
1231 (remove_target_sections, exec_target::get_section_table)
1232 (exec_target::files_info, set_section_command)
1233 (exec_set_section_address, exec_target::has_memory)
1234 (exec_target::has_memory): Update.
1235
5a36e715
TT
12362020-10-29 Tom Tromey <tom@tromey.com>
1237
1238 * source-cache.c (source_cache::get_plain_source_lines): Use
1239 current_program_space.
1240 * corefile.c (reopen_exec_file): Use current_program_space.
1241 * exec.c (exec_file_attach): Use current_program_space.
1242 * exec.h (exec_bfd_mtime): Remove.
1243
784c8592
TT
12442020-10-29 Tom Tromey <tom@tromey.com>
1245
1246 * gcore.c (default_gcore_mach): Remove.
1247 (create_gcore_bfd): Update.
1248
8a4f1402
TT
12492020-10-29 Tom Tromey <tom@tromey.com>
1250
1251 * progspace.c (program_space::exec_close): New method, from
1252 exec_close in exec.c.
1253 * exec.c (exec_close): Move to progspace.c.
1254 (exec_target::close, exec_file_attach): Update.
1255 * progspace.h (struct program_space) <exec_close>: Declare
1256 method.
1257
c20cb686
TT
12582020-10-29 Tom Tromey <tom@tromey.com>
1259
1260 * progspace.h (struct program_space) <exec_filename>: Rename from
1261 pspace_exec_filename. Now a unique_xmalloc_ptr.
1262 * inferior.c (print_selected_inferior): Update.
1263 (print_inferior): Update.
1264 * mi/mi-main.c (print_one_inferior): Update.
1265 * exec.h (exec_filename): Remove macro.
1266 * corefile.c (get_exec_file): Update.
1267 * exec.c (exec_close): Update.
1268 (exec_file_attach): Update.
1269 * progspace.c (clone_program_space): Update.
1270 (print_program_space): Update.
1271
6be2a9ab
TT
12722020-10-29 Tom Tromey <tom@tromey.com>
1273
1274 * target-section.h (struct target_section): Add constructor.
1275 * exec.c (build_section_table, add_target_sections_of_objfile):
1276 Update.
1277 * corelow.c (core_target::build_file_mappings): Update.
1278
cfaa8f76
TBA
12792020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1280
1281 PR gdb/19318
1282 * inferior.c (detach_inferior_command): Restore the current thread.
1283 (kill_inferior_command): Ditto.
1284
1b00ef06
TV
12852020-10-28 Tom de Vries <tdevries@suse.de>
1286
1287 PR symtab/26772
1288 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1289 map, check it in the "best match" loop.
1290
7f40ce1a
SM
12912020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1292
1293 * m32c-tdep.c: Remove unused includes.
1294
5eb9e3f5
SM
12952020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * xtensa-tdep.c: Remove includes.
1298
b1d4d8d1
TBA
12992020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1300
1301 * breakpoint.c (struct condition_command_opts): New struct.
1302 (condition_command_option_defs): New static global.
1303 (make_condition_command_options_def_group): New function.
1304 (condition_completer): Update to consider the '-force' flag.
1305 (condition_command): Use gdb::option for the '-force' flag.
1306
bd24c5d6
TV
13072020-10-27 Tom de Vries <tdevries@suse.de>
1308
1309 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1310 symbols in section check.
1311
61eb46a4
TV
13122020-10-27 Tom de Vries <tdevries@suse.de>
1313
1314 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1315
733d554a
TBA
13162020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1317
1318 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1319 * breakpoint.c: Update the help text of the 'condition' and 'break'
1320 commands.
1321 (set_breakpoint_condition): Take a new bool parameter
1322 to control whether condition definition should be forced even when
1323 the condition expression is invalid in all of the current locations.
1324 (condition_command): Update the call to 'set_breakpoint_condition'.
1325 (find_condition_and_thread): Take the "-force-condition" flag into
1326 account.
1327 * linespec.c (linespec_keywords): Add "-force-condition" as an
1328 element.
1329 (FORCE_KEYWORD_INDEX): New #define.
1330 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1331 as a keyword.
1332 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1333 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1334 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1335 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1336
b5fa468f
TBA
13372020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1338
1339 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1340 * breakpoint.c (set_breakpoint_location_condition): New function.
1341 (set_breakpoint_condition): Disable a breakpoint location if parsing
1342 the condition string gives an error.
1343 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1344 (build_target_condition_list): Ditto.
1345 (build_target_command_list): Ditto.
1346 (build_bpstat_chain): Ditto.
1347 (print_one_breakpoint_location): Ditto.
1348 (print_one_breakpoint): Ditto.
1349 (breakpoint_1): Ditto.
1350 (bp_location::bp_location): Ditto.
1351 (locations_are_equal): Ditto.
1352 (update_breakpoint_locations): Ditto.
1353 (enable_disable_bp_num_loc): Ditto.
1354 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1355 (find_condition_and_thread_for_sals): New static function.
1356 (create_breakpoint): Call find_condition_and_thread_for_sals.
1357 (location_to_sals): Call find_condition_and_thread_for_sals instead
1358 of find_condition_and_thread.
1359
1c47ec3e
TV
13602020-10-26 Tom de Vries <tdevries@suse.de>
1361
1362 * dwarf2/read.c (process_full_comp_unit): Call
1363 dwarf2_find_base_address.
1364
6390859c
TT
13652020-10-26 Tom Tromey <tromey@adacore.com>
1366
1367 * gdbtypes.c (create_range_type): Revert previous patch. Add
1368 comment.
1369
d744f0f9
PA
13702020-10-26 Pedro Alves <pedro@palves.net>
1371
1372 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1373 (my_waitpid): Use gdb::handle_eintr.
1374
006811bc
SM
13752020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1376
1377 * acinclude.m4: Update ptrace.m4 path.
1378 * ptrace.m4: Moved to gdbsupport.
1379
c75e31a1
SM
13802020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1381
1382 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1383 instead of target_gdbarch.
1384
32495661
SM
13852020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1386
1387 * jit.c (jit_reader_load_command): Pass current inferior.
1388 (jit_inferior_init): Change parameter type to inferior, use it.
1389 (jit_inferior_created): Remove.
1390 (jit_inferior_created_hook): Pass inferior parameter down.
1391 (_initialize_jit): Use jit_inferior_created_hook instead of
1392 jit_inferior_created.
1393 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1394 * infrun.c (follow_exec): Pass inferior to
1395 jit_inferior_created_hook.
1396
3f66685e
SM
13972020-10-24 Simon Marchi <simon.marchi@efficios.com>
1398
1399 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1400 parameter and use it.
1401 (thread_db_inferior_created): Pass inferior argument.
1402
a0ff652f
SM
14032020-10-24 Simon Marchi <simon.marchi@efficios.com>
1404
1405 * aix-thread.c (aix_thread_inferior_created): Add inferior
1406 parameter.
1407 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1408 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1409 * jit.c (jit_inferior_created): Likewise.
1410 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1411 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1412 * observable.h (inferior_created): Likewise.
1413 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1414 * symfile-mem.c (add_vsyscall_page): Likewise.
1415 * infcmd.c (post_create_inferior): Pass inferior argument.
1416
3c67532c
JB
14172020-10-24 Joel Brobecker <brobecker@adacore.com>
1418
1419 GDB 10.1 released.
1420
8747316e
JB
14212020-10-23 Joel Brobecker <brobecker@adacore.com>
1422
1423 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1424 to ada_check_typedef.
1425
1a0ea399
AB
14262020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1427
1428 * f-exp.y (f_parse): Rename to...
1429 (f_language::parser): ...this.
1430 * f-lang.c (f_get_encoding): Rename to...
1431 (f_language::get_encoding): ...this.
1432 (f_op_print_tab): Rename to...
1433 (f_language::op_print_tab): ...this.
1434 (exp_descriptor_f): Rename to...
1435 (f_language::exp_descriptor_tab): ...this.
1436 (class f_language): Moved to f-lang.h.
1437 (f_language::language_arch_info): New function, moved out of class
1438 declaration.
1439 (f_language::search_name_hash): Likewise.
1440 (f_language::lookup_symbol_nonlocal): Likewise.
1441 (f_language::get_symbol_name_matcher_inner): Likewise.
1442 * f-lang.h: Add 'valprint.h' include.
1443 (class f_language): Moved here from f-lang.c.
1444 * f-typeprint.c (f_type_print_args): Delete commented out
1445 declaration.
1446 (f_print_typedef): Rename to...
1447 (f_language::print_typedef): ...this.
1448 (f_print_type): Rename to...
1449 (f_language::print_type): ...this.
1450 (f_type_print_varspec_prefix): Delete declaration and rename to...
1451 (f_language::f_type_print_varspec_prefix): ...this.
1452 (f_type_print_varspec_suffix): Delete declaration and rename to...
1453 (f_language::f_type_print_varspec_suffix): ...this.
1454 (f_type_print_base): Delete declaration and rename to...
1455 (f_language::f_type_print_base): ...this.
1456 * f-valprint.c (f_value_print_inner): Rename to...
1457 (f_language::value_print_inner): ...this.
1458 * parse.c: Delete 'f-lang.h' include.
1459
88cefd9b
AB
14602020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1461
1462 * language.h (language_defn::print_type): Add variable names in
1463 declaration, and update header comment.
1464
5399db93
AB
14652020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1466
1467 * ada-lang.c (ada_language::demangle): Rename to...
1468 (ada_language::demangle_symbol): ...this.
1469 * c-lang.c (cplus_language::demangle): Rename to...
1470 (cplus_language::demangle_symbol): ...this.
1471 * d-lang.c (d_language::demangle): Rename to...
1472 (d_language::demangle_symbol): ...this.
1473 * f-lang.c (f_language::demangle): Rename to...
1474 (f_language::demangle_symbol): ...this.
1475 * go-lang.c (go_language::demangle): Rename to...
1476 (go_language::demangle_symbol): ...this.
1477 * language.c (language_demangle): Update call to demangle_symbol.
1478 (auto_or_unknown_language::demangle): Rename to...
1479 (auto_or_unknown_language::demangle_symbol): ...this.
1480 * language.h (language_defn::demangle): Rename to...
1481 (language_defn::demangle_symbol): ...this.
1482 * objc-lang.c (objc_language::demangle): Rename to...
1483 (objc_language::demangle_symbol): ...this.
1484 * rust-lang.c (rust_language::demangle): Rename to...
1485 (rust_language::demangle_symbol): ...this.
1486
4b2f86ef
AB
14872020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1490 (iterate_over_file_blocks): Replace use of macro with the macros
1491 definition.
1492
e74b39de
AB
14932020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1494
1495 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1496 * valprint.c (maybe_print_array_index): Replace use of macro with
1497 the macros definition.
1498
00c696a6
AB
14992020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1500
1501 * ada-lang.c (ada_language::print_array_index): Call value_print
1502 directly.
1503 * language.c (language_defn::print_array_index): Likewise.
1504 * language.h (LA_VALUE_PRINT): Delete.
1505 * valprint.c (value_print): Call value_print on the
1506 current_language directly.
1507
d3b67c56
AB
15082020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * language.h (LA_PRINT_TYPEDEF): Delete.
1511 * typeprint.c (typedef_print): Call print_typedef directly on the
1512 current_language object.
1513
790e2a12
AB
15142020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * m2-exp.y (m2_parse): Rename to...
1517 (m2_language::parser): ...this. Update function signature.
1518 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1519 (m2_op_print): Rename to...
1520 (m2_language::op_print_tab): ...this, and make const.
1521 (exp_descriptor_modula2): Rename to...
1522 (m2_language::exp_descriptor_modula2): ...this.
1523 (class m2_language): Move to m2-lang.h.
1524 (m2_language::language_arch_info): New function, moved out of
1525 class declaration.
1526 (m2_language::printchar): New function, body from m2_printchar.
1527 (m2_language::printstr): New function, moved out of class
1528 declaration.
1529 (m2_language::emitchar): Likewise.
1530 * m2-lang.h (m2_parse): Delete declaration.
1531 (m2_print_typedef): Delete declaration.
1532 (m2_value_print_inner): Delete declaration.
1533 (class m2_language): Class declaration moved from m2-lang.c,
1534 larger functions are left in m2-lang.c.
1535 * m2-typeprint.c (m2_print_typedef): Rename to...
1536 (m2_language::print_typedef): ...this, and update function
1537 signature.
1538 * m2-valprint.c (m2_value_print_inner): Rename to...
1539 (m2_language::value_print_inner): ...this, replace use of
1540 LA_PRINT_STRING with a direct call to printstr member function,
1541 and update recursive call.
1542
b01175fc
AB
15432020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1544
1545 * language.c (default_is_string_type_p): Delete, implementation
1546 moved into auto_or_unknown_language::is_string_type_p.
1547 (unk_op_print_tab): Moved into
1548 auto_or_unknown_language::opcode_print_table.
1549 (unknown_language_arch_info): Delete, implementation moved into
1550 auto_or_unknown_language::language_arch_info.
1551 (class auto_or_unknown_language): New class, member functions
1552 copied from unknown_language class, with some updates.
1553 (class unknown_language): Most member functions moved into
1554 auto_or_unknown_language class. Inherit from
1555 auto_or_unknown_language class.
1556 (class auto_language): Inherit from auto_or_unknown_language.
1557 Delete most member functions.
1558
1a97fe8c
HD
15592020-10-22 Hannes Domani <ssbssa@yahoo.de>
1560
1561 * stabsread.c (read_member_functions): Remove gdb_assert.
1562
6b9d0dfd
HD
15632020-10-22 Hannes Domani <ssbssa@yahoo.de>
1564
1565 * gdbtypes.c (init_complex_type): Check target type name.
1566
4b4bb603
SM
15672020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1568
1569 * target-debug.h (target_debug_print_struct_target_ops_p):
1570 Remove.
1571 (target_debug_print_async_callback_ftype_p): Remove.
1572 (target_debug_print_struct_trace_state_variable_p): Remove.
1573 (target_debug_print_struct_traceframe_info_p): Remove.
1574 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1575 (target_debug_print_enum_btrace_format): Remove.
1576 (target_debug_print_enum_info_proc_what): Remove.
1577 (target_debug_print_thread_info_pp): Remove.
1578
24f5300a
SM
15792020-10-22 Simon Marchi <simon.marchi@efficios.com>
1580
1581 * target.h (struct target_ops) <make_corefile_notes>:
1582 Change return type to unique pointer.
1583 * target.c (dummy_make_corefile_notes): Likewise.
1584 * exec.c (struct exec_target) <make_corefile_notes>:
1585 Likewise.
1586 (exec_target::make_corefile_notes): Likewise.
1587 * procfs.c (class procfs_target) <make_corefile_notes>:
1588 Likewise.
1589 (procfs_do_thread_registers): Adjust to unique pointer.
1590 (struct procfs_corefile_thread_data): Add constructor.
1591 <note_data>: Change type to unique pointer.
1592 (procfs_corefile_thread_callback): Adjust to unique pointer.
1593 (procfs_target::make_corefile_notes): Change return type to
1594 unique pointer.
1595 * target-delegates.c: Re-generate.
1596 * gcore.c (write_gcore_file_1): Adjust.
1597 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1598 New.
1599
5fb4027f
TV
16002020-10-22 Tom de Vries <tdevries@suse.de>
1601
1602 * block.c (find_block_in_blockvector): Make sure the returned block
1603 contains pc.
1604
4a636814
SM
16052020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1606
1607 PR gdb/26693
1608 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1609 parameter.
1610 (load_cu): Pass existing CU.
1611 (process_imported_unit_die): Likewise.
1612 (follow_die_offset): Likewise.
1613
1bd57575
LM
16142020-10-22 Luis Machado <luis.machado@linaro.org>
1615
1616 * corelow.c (core_target::xfer_partial): Also check for an empty
1617 m_core_unavailable_mappings vector.
1618
6b4c676c
AB
16192020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1622 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1623 * f-exp.y (arglist): Allow for a series of subranges.
1624 (subrange): Add cases for subranges with strides.
1625 * f-lang.c (value_f90_subarray): Catch use of array strides and
1626 throw an error.
1627 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1628
f2d8e4c5
AB
16292020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1630
1631 * expprint.c (print_subexp_standard): Change enum range_type to
1632 range_flag and rename variables to match.
1633 (dump_subexp_body_standard): Likewise.
1634 * expression.h (enum range_type): Rename to...
1635 (enum range_flag): ...this.
1636 (range_types): Rename to...
1637 (range_flags): ...this.
1638 * f-lang.c (value_f90_subarray): Change enum range_type to
1639 range_flag and rename variables to match.
1640 * parse.c (operator_length_standard): Likewise.
1641 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1642 range_type to range_flag.
1643 * rust-lang.c (rust_evaluate_funcall): Likewise.
1644 (rust_range): Likewise.
1645 (rust_compute_range): Likewise.
1646 (rust_subscript): Likewise.
1647
2f1b18db
AB
16482020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1649
1650 * expprint.c (print_subexp_standard): Update to reflect changes to
1651 enum range_type.
1652 (dump_subexp_body_standard): Likewise.
1653 * expression.h (enum range_type): Convert to a bit field enum, and
1654 make the enum unsigned.
1655 * f-exp.y (subrange): Update to reflect changes to enum
1656 range_type.
1657 * f-lang.c (value_f90_subarray): Likewise.
1658 * parse.c (operator_length_standard): Likewise.
1659 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1660 * rust-lang.c (rust_range): Likewise.
1661 (rust_compute_range): Likewise.
1662 (rust_subscript): Likewise.
1663
a46d1843
SM
16642020-10-21 Simon Marchi <simon.marchi@efficios.com>
1665
1666 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1667 (displaced_step_in_progress): Fix comment.
1668
c21f37a8
SM
16692020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1670
1671 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1672 * gdbarch.c: Re-generate.
1673 * gdbarch.h: Re-generate.
1674 * gcore.c (write_gcore_file_1): Adjust.
1675 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1676 constructor.
1677 <note_data>: Change type to unique pointer.
1678 <abort_iteration>: Change type to bool.
1679 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1680 (fbsd_collect_thread_registers): Return void, adjust.
1681 (struct fbsd_corefile_thread_data): Add construtor.
1682 <note_data>: Change type to unique pointer.
1683 (fbsd_corefile_thread): Adjust.
1684 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1685 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1686 to unique pointer, adjust.
1687 (struct linux_collect_regset_section_cb_data): Add constructor.
1688 <note_data>: Change type to unique pointer.
1689 <abort_iteration>: Change type to bool.
1690 (linux_collect_thread_registers): Return void, adjust.
1691 (struct linux_corefile_thread_data): Add constructor.
1692 <note_data>: Change type to unique pointer.
1693 (linux_corefile_thread): Adjust.
1694 (linux_make_corefile_notes): Return unique pointer, adjust.
1695
07fbbd01
SM
16962020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1697
1698 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1699 * gdbarch.c: Re-generate.
1700 * gdbarch.h: Re-generate.
1701 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1702 bool.
1703 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1704 Likewise.
1705 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1706 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1707 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1708 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1709
39535193
SM
17102020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1711
1712 * gdbarch.sh: Make generated predicates return bool.
1713 * gdbarch.c: Re-generate.
1714 * gdbarch.h: Re-generate.
1715
ad523d01
TT
17162020-10-20 Tom Tromey <tom@tromey.com>
1717
1718 * varobj-iter.h (struct varobj_item): Remove typedef.
1719
c4464ade
SM
17202020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1721
1722 * infrun.c (currently_stepping): Change int to bool
1723 (maybe_software_singlestep): Likewise.
1724 (show_stop_on_solib_events): Likewise.
1725 (stepping_past_nonsteppable_watchpoint): Likewise.
1726 (displaced_step_in_progress_any_inferior): Likewise.
1727 (displaced_step_in_progress_thread): Likewise.
1728 (keep_going_stepped_thread): Likewise.
1729 (thread_still_needs_step_over): Likewise.
1730 (start_step_over): Likewise.
1731 (do_target_resume): Likewise.
1732 (resume_1): Likewise.
1733 (clear_proceed_status): Likewise.
1734 (thread_still_needs_step_over_bp): Likewise.
1735 (proceed): Likewise.
1736 (switch_back_to_stepped_thread): Likewise.
1737 (adjust_pc_after_break): Likewise.
1738 (stepped_in_from): Likewise.
1739 (handle_stop_requested): Likewise.
1740 (handle_syscall_event): Likewise.
1741 (handle_no_resumed): Likewise.
1742 (handle_inferior_event): Likewise.
1743 (finish_step_over): Likewise.
1744 (handle_signal_stop): Likewise.
1745 (process_event_stop_test): Likewise.
1746
2eb20436
SM
17472020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1748
1749 * infrun.c (get_displaced_stepping_state): Fix comment.
1750
e0c45ded
AS
17512020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1752
1753 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1754
22cc388e
TT
17552020-10-19 Tom Tromey <tromey@adacore.com>
1756
1757 PR tui/26719
1758 * tui/tui-winsource.h (struct tui_source_window_base)
1759 <refresh_window>: Rename from refresh_pad.
1760 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1761 Rename from refresh_pad.
1762 (tui_source_window_base::show_source_content)
1763 (tui_source_window_base::do_scroll_horizontal): Update.
1764
3c6eb4d4
TBA
17652020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1766
1767 * thread.c (_initialize_thread): Fine-tune the help text of
1768 'info threads'.
1769
26703721
TBA
17702020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1771
1772 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1773
61c26be8
MS
17742020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1775
1776 * breakpoint.c (handle_jit_event): Add an argument, change how
1777 `jit_event_handler` is called.
1778
932539d7
TT
17792020-10-17 Tom Tromey <tom@tromey.com>
1780
1781 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1782 (scan_xcoff_symtab): Update.
1783 * psymtab.h (class psymtab_storage) <global_psymbols,
1784 static_psymbols, current_global_psymbols,
1785 current_static_psymbols>: Remove.
1786 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1787 (match_partial_symbol, lookup_partial_symbol): Update.
1788 (print_partial_symbols): Change parameters.
1789 (dump_psymtab, recursively_search_psymtabs)
1790 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1791 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1792 (concat): Remove.
1793 (end_psymtab_common): Simplify.
1794 (append_psymbol_to_list): Change parameters.
1795 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1796 (init_psymbol_list): Simplify.
1797 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1798 * psympriv.h (struct partial_symtab) <empty>: New method.
1799 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1800 Remove.
1801 <global_psymbols, static_psymbols>: New members.
1802 <add_psymbol>: New methods.
1803 (add_psymbol_to_list): Don't declare.
1804 (psymbol_placement): Move earlier.
1805 * mdebugread.c (parse_partial_symbols): Update.
1806 (handle_psymbol_enumerators): Change parameters.
1807 (mdebug_expand_psymtab): Update.
1808 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1809 (add_partial_symbol): Update.
1810 * dwarf2/index-write.c (write_psymbols): Change parameters.
1811 (write_one_signatured_type): Update.
1812 (recursively_count_psymbols): Update.
1813 (recursively_write_psymbols): Update.
1814 (class debug_names) <recursively_write_psymbols>: Update.
1815 <write_psymbols>: Change parameters.
1816 <write_one_signatured_type>: Update.
1817 * dbxread.c (read_dbx_symtab): Update.
1818 (dbx_end_psymtab): Use partial_symtab::empty.
1819 * ctfread.c (struct ctf_context) <pst>: New member.
1820 (create_partial_symtab): Set it.
1821 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1822 (scan_partial_symbols): Use the psymtab's context. Update.
1823
cfabbd35
TT
18242020-10-17 Tom Tromey <tom@tromey.com>
1825
1826 * valprint.c (generic_value_print): Remove comment.
1827 * m2-valprint.c (m2_value_print_inner): Remove comment.
1828 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1829 type.
1830
520596f2
TV
18312020-10-17 Tom de Vries <tdevries@suse.de>
1832
1833 PR symtab/26317
1834 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1835 symbol main.
1836
76547ab3
TV
18372020-10-14 Tom de Vries <tdevries@suse.de>
1838
1839 PR gdb/26733
1840 * solib.c (solib_contains_address_p): Handle
1841 'solib->sections == nullptr'.
1842
d3a07122
SM
18432020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1844
1845 PR gdb/26642
1846 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1847 target can't do async.
1848 * target.c (target_wait): Assert that we don't pass
1849 TARGET_WNOHANG to a target that can't async.
1850
1b71cfcf
KR
18512020-10-13 Kamil Rytarowski <n54@gmx.com>
1852
1853 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1854 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1855 * alpha-bsd-nat.c: Adjust include.
1856 * alpha-bsd-tdep.h: Adjust comment.
1857 * alpha-nbsd-tdep.c: Rename to ...
1858 * alpha-netbsd-tdep.c: ... this, adjust include.
1859 * amd64-nbsd-nat.c: Rename to ...
1860 * amd64-netbsd-nat.c: ... this, adjust include.
1861 * amd64-nbsd-tdep.c: Rename to ...
1862 * amd64-netbsd-tdep.c: ... this, adjust include.
1863 * amd64-tdep.h: Adjust include.
1864 * arm-nbsd-nat.c: Rename to ...
1865 * arm-netbsd-nat.c: ... this, adjust include.
1866 * arm-nbsd-tdep.c: Rename to ...
1867 * arm-netbsd-tdep.c: ... this, adjust include.
1868 * arm-nbsd-tdep.h: Rename to ...
1869 * arm-netbsd-tdep.h: ... this, adjust include.
1870 * configure.nat: Adjust file lists.
1871 * configure.tgt: Likewise.
1872 * hppa-nbsd-nat.c: Rename to ...
1873 * hppa-netbsd-nat.c: ... this, adjust include.
1874 * hppa-nbsd-tdep.c: Rename to ...
1875 * hppa-netbsd-tdep.c: ... this, adjust include.
1876 * i386-nbsd-nat.c: Rename to ...
1877 * i386-netbsd-nat.c: ... this, adjust include.
1878 * i386-nbsd-tdep.c: Rename to ...
1879 * i386-netbsd-tdep.c: ... this, adjust include.
1880 * m68k-bsd-nat.c: Adjust include.
1881 * mips-nbsd-nat.c: Rename to ...
1882 * mips-netbsd-nat.c: ... this, adjust include.
1883 * mips-nbsd-tdep.c: Rename to ...
1884 * mips-netbsd-tdep.c: ... this, adjust include.
1885 * mips-nbsd-tdep.h: Rename to ...
1886 * mips-netbsd-tdep.h: ... this.
1887 * nbsd-nat.c: Rename to ...
1888 * netbsd-nat.c: ... this, adjust include.
1889 * nbsd-nat.h: Rename to ...
1890 * netbsd-nat.h: ... this, adjust include.
1891 * nbsd-tdep.c: Rename to ...
1892 * netbsd-tdep.c: ... this, adjust include.
1893 * nbsd-tdep.h: Rename to ...
1894 * netbsd-tdep.h: ... this.
1895 * ppc-nbsd-nat.c: Rename to ...
1896 * ppc-netbsd-nat.c: ... this, adjust include.
1897 * ppc-nbsd-tdep.c: Rename to ...
1898 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1899 * ppc-nbsd-tdep.h: Rename to ...
1900 * ppc-netbsd-tdep.h: ... this.
1901 * sh-nbsd-nat.c: Rename to ...
1902 * sh-netbsd-nat.c: ... this, adjust include.
1903 * sh-nbsd-tdep.c: Rename to ...
1904 * sh-netbsd-tdep.c: ... this, adjust include.
1905 * sparc-nbsd-nat.c: Rename to ...
1906 * sparc-netbsd-nat.c: ... this.
1907 * sparc-nbsd-tdep.c: Rename to ...
1908 * sparc-netbsd-tdep.c: ... this, adjust include.
1909 * sparc64-nbsd-nat.c: Rename to ...
1910 * sparc64-netbsd-nat.c: ... this.
1911 * sparc64-nbsd-tdep.c: Rename to ...
1912 * sparc64-netbsd-tdep.c: ... this, adjust include.
1913 * sparc64-tdep.h: Adjust comment.
1914 * vax-bsd-nat.c: Adjust include.
1915 * vax-nbsd-tdep.c: Rename to ...
1916 * vax-netbsd-tdep.c: ... this, adjust include.
1917
d7a78e5c
TT
19182020-10-12 Tom Tromey <tom@tromey.com>
1919
1920 * target.h (struct target_ops) <get_section_table>: Update.
1921 (target_get_section_table): Update.
1922 * target.c (target_get_section_table, target_section_by_addr)
1923 (memory_xfer_partial_1): Update.
1924 * target-section.h (target_section_table): Now an alias.
1925 * target-delegates.c: Rebuild.
1926 * target-debug.h (target_debug_print_target_section_table_p):
1927 Rename from target_debug_print_struct_target_section_table_p.
1928 * symfile.c (build_section_addr_info_from_section_table): Update.
1929 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1930 * solib-svr4.c (scan_dyntag): Update.
1931 * solib-dsbt.c (scan_dyntag): Update.
1932 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1933 Update.
1934 * record-full.c (record_full_core_target::xfer_partial): Update.
1935 * progspace.h (struct program_space) <target_sections>: Update.
1936 * exec.h (print_section_info): Update.
1937 * exec.c (exec_target::close, build_section_table)
1938 (add_target_sections, add_target_sections_of_objfile)
1939 (remove_target_sections, exec_on_vfork)
1940 (section_table_available_memory)
1941 (section_table_xfer_memory_partial)
1942 (exec_target::get_section_table, exec_target::xfer_partial)
1943 (print_section_info, set_section_command)
1944 (exec_set_section_address, exec_target::has_memory): Update.
1945 * corelow.c (core_target::build_file_mappings)
1946 (core_target::xfer_partial, core_target::info_proc_mappings)
1947 (core_target::info_proc_mappings): Update.
1948 * bfd-target.c (class target_bfd): Update
1949
eda214ce
TT
19502020-10-12 Tom Tromey <tom@tromey.com>
1951
1952 * progspace.c (program_space::~program_space): Don't call
1953 clear_section_table.
1954 * exec.h (clear_section_table): Don't declare.
1955 * exec.c (exec_target::close): Update.
1956 (clear_section_table): Remove.
1957
91840ee3
TT
19582020-10-12 Tom Tromey <tom@tromey.com>
1959
1960 * exec.c (add_target_sections_of_objfile): Simplify.
1961
2d128614
TT
19622020-10-12 Tom Tromey <tom@tromey.com>
1963
1964 * solib.c (solib_map_sections): Update.
1965 * record-full.c (record_full_core_open_1): Update.
1966 * exec.h (build_section_table): Return a target_section_table.
1967 * exec.c (exec_file_attach): Update.
1968 (build_section_table): Return a target_section_table.
1969 * corelow.c (core_target::core_target): Update.
1970 * bfd-target.c (target_bfd::target_bfd): Update.
1971
bb2a6777
TT
19722020-10-12 Tom Tromey <tom@tromey.com>
1973
1974 * target.c (target_section_by_addr, memory_xfer_partial_1):
1975 Update.
1976 * target-section.h (struct target_section_table): Use
1977 std::vector.
1978 * symfile.h (build_section_addr_info_from_section_table): Take a
1979 target_section_table.
1980 * symfile.c (build_section_addr_info_from_section_table): Take a
1981 target_section_table.
1982 * solist.h (struct so_list) <sections>: Change type.
1983 <sections_end>: Remove.
1984 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1985 (solib_contains_address_p): Update.
1986 * solib-svr4.c (scan_dyntag): Update.
1987 * solib-dsbt.c (scan_dyntag): Update.
1988 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1989 Update.
1990 * record-full.c (record_full_core_start, record_full_core_end):
1991 Remove.
1992 (record_full_core_sections): New global.
1993 (record_full_core_open_1, record_full_core_target::xfer_partial):
1994 Update.
1995 * exec.h (build_section_table, section_table_xfer_memory_partial)
1996 (add_target_sections): Take a target_section_table.
1997 * exec.c (exec_file_attach, clear_section_table): Update.
1998 (resize_section_table): Remove.
1999 (build_section_table, add_target_sections): Take a
2000 target_section_table.
2001 (add_target_sections_of_objfile, remove_target_sections)
2002 (exec_on_vfork): Update.
2003 (section_table_available_memory): Take a target_section_table.
2004 (section_table_read_available_memory): Update.
2005 (section_table_xfer_memory_partial): Take a target_section_table.
2006 (print_section_info, set_section_command)
2007 (exec_set_section_address, exec_target::has_memory): Update.
2008 * corelow.c (class core_target) <m_core_section_table,
2009 m_core_file_mappings>: Remove braces.
2010 <~core_target>: Remove.
2011 (core_target::core_target): Update.
2012 (core_target::~core_target): Remove.
2013 (core_target::build_file_mappings)
2014 (core_target::xfer_memory_via_mappings)
2015 (core_target::xfer_partial, core_target::info_proc_mappings):
2016 Update.
2017 * bfd-target.c (target_bfd::xfer_partial): Update.
2018 (target_bfd::target_bfd): Update.
2019 (target_bfd::~target_bfd): Remove.
2020
7b466b10
TT
20212020-10-12 Tom Tromey <tom@tromey.com>
2022
2023 * target.h (struct target_section, struct target_section_table):
2024 Move to target-section.h.
2025 * target-section.h: New file.
2026
87a37e5e
PA
20272020-10-12 Pedro Alves <pedro@palves.net>
2028
2029 PR exp/26602
2030 * valops.c (struct struct_field_searcher): New.
2031 (update_search_result): Rename to ...
2032 (struct_field_searcher::update_result): ... this. Simplify
2033 prototype. Record all found fields.
2034 (do_search_struct_field): Rename to ...
2035 (struct_field_searcher::search): ... this. Simplify prototype.
2036 Maintain stack of visited baseclass path. Call update_result for
2037 fields too. Keep searching fields in baseclasses instead of
2038 stopping at the first found field.
2039 (search_struct_field): Use struct_field_searcher. When looking
2040 for fields, report ambiguous access attempts.
2041
9370fd51
AB
20422020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2043
2044 * frame.c (inside_main_func): Check full symbols as well as
2045 minimal symbols.
2046
59c8a30b
JB
20472020-10-09 Joel Brobecker <brobecker@adacore.com>
2048
2049 * ada-lang.c (advance_wild_match): Rewrite the function's
2050 description. Change the type of target0, t0 and t1 to char.
2051
7c184d33
TT
20522020-10-09 Tom Tromey <tromey@adacore.com>
2053
2054 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2055
5c4258f4
TT
20562020-10-09 Tom Tromey <tromey@adacore.com>
2057
2058 * ada-lang.h (ada_encode): Return std::string.
2059 * ada-lang.c (ada_encode_1): Return std::string.
2060 (ada_encode): Likewise.
2061 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2062 Update.
2063 * ada-exp.y (block_lookup, write_var_or_type): Update.
2064
3d87245c
HD
20652020-10-09 Hannes Domani <ssbssa@yahoo.de>
2066
2067 PR exp/26714
2068 * printcmd.c (print_formatted): Handle void results as
2069 unformatted prints.
2070
bbb826f5
AB
20712020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2072
2073 * arch/aarch32.c (aarch32_create_target_description): Release the
2074 target_desc_up as late as possible.
2075 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2076 * arch/amd64.c (amd64_create_target_description): Likewise.
2077 * arch/arc.c (arc_create_target_description): Return a
2078 target_desc_up, don't release it.
2079 * arch/arc.h (arc_create_target_description): Update declaration.
2080 (arc_lookup_target_description): Move target_desc_up into the
2081 cache, and return a borrowed pointer.
2082 * arch/arm.c (arm_create_target_description): Release the
2083 target_desc_up as late as possible.
2084 * arch/i386.c (i386_create_target_description): Likewise.
2085 * arch/riscv.h (riscv_create_target_description): Update
2086 declaration to match definition.
2087 * arch/tic6x.c (tic6x_create_target_description): Release the
2088 target_desc_up as late as possible.
2089
361cb219
AB
20902020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2091
2092 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2093 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2094
f5c4b229
JV
20952020-10-09 Jan Vrany <jan.vrany@labware.com>
2096
2097 * source.c (directory_command): Notify observers that "directories"
2098 parameter has changed.
2099
b2701685
TT
21002020-10-08 Tom Tromey <tom@tromey.com>
2101
2102 * cli/cli-cmds.c (print_disassembly): Style function name and
2103 addresses. Add _() wrappers.
2104
ada508b6
SV
21052020-10-08 Shahab Vahedi <shahab@synopsys.com>
2106
2107 * NEWS: Mention ARC support in GDBserver.
2108
51a948fd
AB
21092020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2110
2111 * arch/aarch32.c (aarch32_create_target_description): Release
2112 unique_ptr returned from allocate_target_description.
2113 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2114 * arch/amd64.c (amd64_create_target_description): Likewise.
2115 * arch/arc.c (arc_create_target_description): Likewise.
2116 * arch/arm.c (arm_create_target_description): Likewise.
2117 * arch/i386.c (i386_create_target_description): Likewise.
2118 * arch/riscv.c (riscv_create_target_description): Update return
2119 type. Handle allocate_target_description returning a unique_ptr.
2120 (riscv_lookup_target_description): Update to handle unique_ptr.
2121 * arch/tic6x.c (tic6x_create_target_description): Release
2122 unique_ptr returned from allocate_target_description.
2123 * features/microblaze-with-stack-protect.c: Regenerate.
2124 * features/microblaze.c: Regenerate.
2125 * features/mips-dsp-linux.c: Regenerate.
2126 * features/mips-linux.c: Regenerate.
2127 * features/mips64-dsp-linux.c: Regenerate.
2128 * features/mips64-linux.c: Regenerate.
2129 * features/nds32.c: Regenerate.
2130 * features/nios2.c: Regenerate.
2131 * features/or1k.c: Regenerate.
2132 * features/rs6000/powerpc-32.c: Regenerate.
2133 * features/rs6000/powerpc-32l.c: Regenerate.
2134 * features/rs6000/powerpc-403.c: Regenerate.
2135 * features/rs6000/powerpc-403gc.c: Regenerate.
2136 * features/rs6000/powerpc-405.c: Regenerate.
2137 * features/rs6000/powerpc-505.c: Regenerate.
2138 * features/rs6000/powerpc-601.c: Regenerate.
2139 * features/rs6000/powerpc-602.c: Regenerate.
2140 * features/rs6000/powerpc-603.c: Regenerate.
2141 * features/rs6000/powerpc-604.c: Regenerate.
2142 * features/rs6000/powerpc-64.c: Regenerate.
2143 * features/rs6000/powerpc-64l.c: Regenerate.
2144 * features/rs6000/powerpc-7400.c: Regenerate.
2145 * features/rs6000/powerpc-750.c: Regenerate.
2146 * features/rs6000/powerpc-860.c: Regenerate.
2147 * features/rs6000/powerpc-altivec32.c: Regenerate.
2148 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2149 * features/rs6000/powerpc-altivec64.c: Regenerate.
2150 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2151 * features/rs6000/powerpc-e500.c: Regenerate.
2152 * features/rs6000/powerpc-e500l.c: Regenerate.
2153 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2154 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2155 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2156 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2157 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2158 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2159 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2160 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2161 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2162 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2163 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2164 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2165 * features/rs6000/powerpc-vsx32.c: Regenerate.
2166 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2167 * features/rs6000/powerpc-vsx64.c: Regenerate.
2168 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2169 * features/rs6000/rs6000.c: Regenerate.
2170 * features/rx.c: Regenerate.
2171 * features/s390-gs-linux64.c: Regenerate.
2172 * features/s390-linux32.c: Regenerate.
2173 * features/s390-linux32v1.c: Regenerate.
2174 * features/s390-linux32v2.c: Regenerate.
2175 * features/s390-linux64.c: Regenerate.
2176 * features/s390-linux64v1.c: Regenerate.
2177 * features/s390-linux64v2.c: Regenerate.
2178 * features/s390-te-linux64.c: Regenerate.
2179 * features/s390-tevx-linux64.c: Regenerate.
2180 * features/s390-vx-linux64.c: Regenerate.
2181 * features/s390x-gs-linux64.c: Regenerate.
2182 * features/s390x-linux64.c: Regenerate.
2183 * features/s390x-linux64v1.c: Regenerate.
2184 * features/s390x-linux64v2.c: Regenerate.
2185 * features/s390x-te-linux64.c: Regenerate.
2186 * features/s390x-tevx-linux64.c: Regenerate.
2187 * features/s390x-vx-linux64.c: Regenerate.
2188 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2189 from allocate_target_description.
2190 * target-descriptions.c (allocate_target_description): Update
2191 return type.
2192 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2193 allocate_target_description.
2194
485c47e5
TT
21952020-10-07 Tom Tromey <tromey@adacore.com>
2196
2197 * unittests/search-memory-selftests.c: New file.
2198 * Makefile.in (SELFTESTS_SRCS): Add
2199 unittests/search-memory-selftests.c.
2200
3a135a91
TT
22012020-10-07 Tom Tromey <tromey@adacore.com>
2202
2203 PR gdb/16930:
2204 * findcmd.c (_initialize_mem_search): Mention that the range is
2205 inclusive.
2206
4a72de73
TT
22072020-10-07 Tom Tromey <tromey@adacore.com>
2208
2209 * target.h (simple_search_memory): Don't declare.
2210 * target.c (simple_search_memory): Move to gdbsupport.
2211 (default_search_memory): Update.
2212 * remote.c (remote_target::search_memory): Update.
2213
a038ffd8
SM
22142020-10-07 Simon Marchi <simon.marchi@efficios.com>
2215
2216 * Makefile.in (COMPILE): Add CXXFLAGS.
2217 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2218 (check-headers): Add CXXFLAGS.
2219
cc463201
AK
22202020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2221
2222 * arc-linux-tdep.h: New file.
2223 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2224 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2225 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2226 arc_linux_gregset, arc_linux_v2_regset,
2227 arc_linux_iterate_over_regset_sections,
2228 arc_linux_core_read_description): Implement.
2229 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2230 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2231 (arc_gdbarch_features_create): Add.
2232 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2233
e4bd363f
SV
22342020-10-07 Shahab Vahedi <shahab@synopsys.com>
2235
2236 * arch/arc.h: Rename "arc_gdbarch_features" to
2237 "arc_arch_features".
2238 * arc-tdep.h: Likewise.
2239 * arc-tdep.c: Likewise.
2240
b68bef99
TBA
22412020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2242
2243 * infcmd.c (attach_command): Remove the redundant call to
2244 `clear_proceed_status`.
2245
4641551a
KR
22462020-10-07 Kamil Rytarowski <n54@gmx.com>
2247
2248 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2249
91e5e8db
KR
22502020-10-07 Kamil Rytarowski <n54@gmx.com>
2251
2252 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2253 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2254 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2255
64c03bdb
SM
22562020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2257
2258 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2259 (_initialize_break_catch_sig): Don't allocate array.
2260
31a8f60f
AB
22612020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * symtab.c (find_pc_line): Return unmapped addresses when the
2264 requested address is also unmapped.
2265
9e6dbd8b
SM
22662020-10-05 Simon Marchi <simon.marchi@efficios.com>
2267
2268 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2269 tui/tui-out.h.
2270
a1d217e8
SM
22712020-10-05 Simon Marchi <simon.marchi@efficios.com>
2272
2273 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2274 type::is_vector instead of TYPE_VECTOR.
2275
7d144117
SM
22762020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2277
2278 * auto-load.c (auto_load_objfile_script_1): Don't use
2279 debugfile_holder as temporary variable when stripping drive
2280 letter.
2281
cd096ec8
HD
22822020-10-05 Hannes Domani <ssbssa@yahoo.de>
2283
2284 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2285 Add TYPE_CODE_COMPLEX.
2286 (amd64_windows_return_value): Fix types returned via XMM0.
2287
b58e7f72
AH
22882020-10-05 Alan Hayward <alan.hayward@arm.com>
2289
2290 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2291 AArch64/ARM maintainers.
2292
8d378f27
SM
22932020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2294
2295 * NEWS: Mention set/show debug event-loop.
2296
d5519913
TT
22972020-10-02 Tom Tromey <tromey@adacore.com>
2298
2299 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2300 REG_EXTENDED.
2301
18b67edc
SM
23022020-10-02 Simon Marchi <simon.marchi@efficios.com>
2303
2304 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2305 * procfs.c (procfs_inferior_created): Remove.
2306 (_initialize_procfs): Don't register procfs_inferior_created.
2307
6b01403b
SM
23082020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2309
2310 * async-event.c (invoke_async_signal_handlers): Add debug
2311 print.
2312 (check_async_event_handlers): Likewise.
2313 * event-top.c (show_debug_event_loop): New function.
2314 (_initialize_event_top): Register "set debug event-loop"
2315 setting.
2316
ba988419
SM
23172020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2318
2319 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2320 * debug.h: Remove.
2321 * infrun.c: Include gdbsupport/common-debug.h.
2322 * linux-nat.c: Likewise.
2323
db20ebdf
SM
23242020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2325
2326 * async-event.h (create_async_signal_handler): Add name
2327 parameter.
2328 (create_async_event_handler): Likewise.
2329 * async-event.c (struct async_signal_handler) <name>: New field.
2330 (struct async_event_handler) <name>: New field.
2331 (create_async_signal_handler): Assign name.
2332 (create_async_event_handler): Assign name.
2333 * event-top.c (async_init_signals): Pass name when creating
2334 handler.
2335 * infrun.c (_initialize_infrun): Likewise.
2336 * record-btrace.c (record_btrace_push_target): Likewise.
2337 * record-full.c (record_full_open): Likewise.
2338 * remote-notif.c (remote_notif_state_allocate): Likewise.
2339 * remote.c (remote_target::open_1): Likewise.
2340 * tui/tui-win.c (tui_initialize_win): Likewise.
2341
2554f6f5
SM
23422020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2343
2344 * async-event.c (initialize_async_signal_handlers): Pass name to
2345 add_file_handler
2346 * event-top.c (ui_register_input_event_handler): Likewise.
2347 * linux-nat.c (linux_nat_target::async): Likewise.
2348 * run-on-main-thread.c (_initialize_run_on_main_thread):
2349 Likewise
2350 * ser-base.c (reschedule): Likewise.
2351 (ser_base_async): Likewise.
2352 * tui/tui-io.c: Likewise.
2353 * top.h (struct ui) <num>: New field.
2354 * top.c (highest_ui_num): New variable.
2355 (ui::ui): Initialize num.
2356
a7aba266
SM
23572020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2358
2359 * observable.h <inferior_created>: Remove parameters. Update all
2360 listeners.
2361 * inferior.h (post_create_inferior): Remove target parameter.
2362 Update all callers.
2363
048fde1e 23642020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2365
2366 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2367 and DW_MACRO_undef_strx.
2368 (dwarf_decode_macros): Likewise
2369 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2370 which is the value of DW_AT_str_offsets_base.
2371 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2372 str_offsets_base.
2373
064280be
KR
23742020-10-01 Kamil Rytarowski <n54@gmx.com>
2375
2376 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2377
6ff33035
KR
23782020-10-01 Kamil Rytarowski <n54@gmx.com>
2379
2380 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2381 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2382
1eb6eb79
KR
23832020-10-01 Kamil Rytarowski <n54@gmx.com>
2384
2385 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2386
95eb9e54
TV
23872020-09-30 Tom de Vries <tdevries@suse.de>
2388
2389 PR symtab/26683
2390 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2391
cae21f8e
TT
23922020-09-30 Tom Tromey <tromey@adacore.com>
2393
2394 * dwarf2/read.c (handle_variant): Use constant_value.
2395
529908cb
TT
23962020-09-29 Tom Tromey <tom@tromey.com>
2397
2398 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2399 (read_file_scope, dwarf2_get_pc_bounds)
2400 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2401 (read_structure_type, handle_struct_member_die)
2402 (read_enumeration_type, read_array_type, read_set_type)
2403 (read_tag_pointer_type, read_tag_reference_type)
2404 (read_subroutine_type, read_base_type, read_subrange_type)
2405 (read_full_die_1, partial_die_info::read)
2406 (partial_die_info::read, by, new_symbol)
2407 (dwarf2_const_value_data, dwarf2_const_value_attr)
2408 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2409 (prepare_one_comp_unit): Update.
2410 * dwarf2/attribute.h (DW_UNSND): Remove.
2411
c45bc3f8
TT
24122020-09-29 Tom Tromey <tom@tromey.com>
2413
2414 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2415 (read_subroutine_type, partial_die_info::read)
2416 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2417 (dwarf2_add_member_fn): Update.
2418 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2419 * dwarf2/attribute.c (attribute::as_boolean): New method.
2420
23dca5c3
TT
24212020-09-29 Tom Tromey <tom@tromey.com>
2422
2423 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2424 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2425 method.
2426 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2427
52c14d11
TT
24282020-09-29 Tom Tromey <tom@tromey.com>
2429
2430 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2431 the attribute's form.
2432
e8e5c158
TT
24332020-09-29 Tom Tromey <tom@tromey.com>
2434
2435 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2436 (dwarf2_add_member_fn): Update.
2437 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2438 * dwarf2/attribute.c (attribute::defaulted): New method, from
2439 is_valid_DW_AT_defaulted.
2440
d4df075e
TT
24412020-09-29 Tom Tromey <tom@tromey.com>
2442
2443 * dwarf2/read.c (dw2_get_file_names_reader)
2444 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2445 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2446 (dwarf2_symbol_mark_computed): Use as_unsigned.
2447 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2448 method.
2449 <form_is_section_offset>: Update comment.
2450
bf23a268
TT
24512020-09-29 Tom Tromey <tom@tromey.com>
2452
2453 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2454 dwarf2_default_access_attribute. Look up attribute.
2455 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2456 Update.
2457
7a5f294d
TT
24582020-09-29 Tom Tromey <tom@tromey.com>
2459
2460 * dwarf2/read.c (skip_one_die): Update.
2461 (read_full_die_1): Change how reprocessing is done.
2462 (partial_die_info::read): Update.
2463 (read_attribute_value): Remove need_reprocess parameter.
2464 (read_attribute): Likewise.
2465 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2466 New method.
2467
36d378cf
TT
24682020-09-29 Tom Tromey <tom@tromey.com>
2469
2470 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2471 (dwarf2_const_value_attr, dump_die_shallow)
2472 (dwarf2_fetch_constant_bytes): Update.
2473 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2474 comment.
2475 <set_address>: New method.
2476 (DW_ADDR): Remove.
2477 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2478 (attribute::as_string, attribute::as_address): Add assert.
2479
fe56917a
TT
24802020-09-29 Tom Tromey <tom@tromey.com>
2481
2482 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2483 (read_attribute_reprocess, read_attribute_value): Update.
2484 (read_attribute): Clear requires_reprocessing.
2485 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2486 form_requires_reprocessing>: New methods.
2487 <string_init>: Clear requires_reprocessing.
2488 <set_unsigned_reprocess>: New method.
2489 <name>: Shrink by one bit.
2490 <requires_reprocessing>: New member.
2491 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2492 method.
2493
414ad644
TT
24942020-09-29 Tom Tromey <tom@tromey.com>
2495
2496 * dwarf2/read.c (read_attribute_value): Update.
2497 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2498 set_unsigned>: New methods.
2499 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2500
1bc397c5
TT
25012020-09-29 Tom Tromey <tom@tromey.com>
2502
2503 * dwarf2/read.c (get_alignment, read_array_order)
2504 (read_attribute_value, dwarf2_const_value_attr)
2505 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2506 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2507 New methods.
2508 (DW_SND): Remove.
2509
630ed6b9
TT
25102020-09-29 Tom Tromey <tom@tromey.com>
2511
2512 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2513 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2514 Update.
2515 * dwarf2/attribute.h (struct attribute) <as_signature,
2516 set_signature>: New methods.
2517 (DW_SIGNATURE): Remove.
2518
9d2246fc
TT
25192020-09-29 Tom Tromey <tom@tromey.com>
2520
2521 * dwarf2/read.c (read_call_site_scope)
2522 (handle_data_member_location, dwarf2_add_member_fn)
2523 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2524 (partial_die_info::read, read_attribute_value)
2525 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2526 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2527 (dwarf2_symbol_mark_computed): Update.
2528 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2529 methods.
2530 (DW_BLOCK): Remove.
2531 * dwarf2/attribute.c (attribute::form_is_block): Add
2532 DW_FORM_data16.
2533
c6481205
TT
25342020-09-29 Tom Tromey <tom@tromey.com>
2535
2536 * dwarf2/read.c (read_cutu_die_from_dwo)
2537 (read_attribute_reprocess, read_attribute_value, read_attribute)
2538 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2539 (dwarf2_fetch_constant_bytes): Update.
2540 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2541 <set_string_noncanonical, set_string_canonical>: New methods.
2542 <string_is_canonical>: Update comment.
2543 <canonical_string_p>: Add assert.
2544 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2545 * dwarf2/attribute.c (attribute::form_is_string): New method.
2546 (attribute::string): Use it.
2547
3b64bf15
TT
25482020-09-29 Tom Tromey <tom@tromey.com>
2549
2550 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2551 (dump_die_shallow): Use canonical_string_p.
2552 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2553 method.
2554
2c830f54
TT
25552020-09-29 Tom Tromey <tom@tromey.com>
2556
2557 * dwarf2/read.c (partial_die_info::read)
2558 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2559 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2560 attribute::as_string.
2561
6c412691
TT
25622020-09-29 Tom Tromey <tom@tromey.com>
2563
2564 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2565 DW_ADDR.
2566 (attribute::string): Don't use DW_STRING.
2567 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2568 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2569
95f982e5
TT
25702020-09-29 Tom Tromey <tom@tromey.com>
2571
2572 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2573 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2574 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2575 * dwarf2/attribute.h (struct attribute): Rename methods.
2576 * dwarf2/attribute.c (attribute::as_address): Rename from
2577 value_as_address.
2578 (attribute::as_string): Rename from value_as_string.
2579
f800b00e
TT
25802020-09-29 Tom Tromey <tom@tromey.com>
2581
2582 * dwarf2/read.c (partial_die_info::read) <case
2583 DW_AT_linkage_name>: Use value_as_string.
2584 (dwarf2_string_attr): Use value_as_string.
2585 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2586 method.
2587 * dwarf2/attribute.c (attribute::value_as_string): New method.
2588
de38d64a
PA
25892020-09-29 Pedro Alves <pedro@palves.net>
2590
2591 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2592 defined before using '#pragma GCC diagnostic' instead of checking
2593 __clang__.
2594
9aed480c
TT
25952020-09-28 Tom Tromey <tom@tromey.com>
2596
2597 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2598 (handle_signal_stop): Update.
2599 * procfs.c (procfs_target::insert_watchpoint): Update.
2600 * target.h (target_have_steppable_watchpoint): Now a function.
2601
8a3ecb79
TT
26022020-09-28 Tom Tromey <tom@tromey.com>
2603
2604 * infrun.c (set_schedlock_func): Update.
2605 * target.h (target_can_lock_scheduler): Now a function.
2606
55f6301a
TT
26072020-09-28 Tom Tromey <tom@tromey.com>
2608
2609 * inferior.h (class inferior) <has_execution>: Update.
2610 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2611 * valops.c (find_function_in_inferior)
2612 (value_allocate_space_in_inferior): Update.
2613 * top.c (kill_or_detach): Update.
2614 * target.c (target_preopen, set_target_permissions): Update.
2615 (target_has_execution_current): Remove.
2616 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2617 Update.
2618 * solib.c (update_solib_list, reload_shared_libraries): Update.
2619 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2620 * solib-dsbt.c (enable_break): Update.
2621 * score-tdep.c (score7_fetch_inst): Update.
2622 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2623 Update.
2624 * remote.c (remote_target::start_remote)
2625 (remote_target::remote_check_symbols, remote_target::open_1)
2626 (remote_target::remote_detach_1, remote_target::verify_memory)
2627 (remote_target::xfer_partial, remote_target::read_description)
2628 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2629 * record-full.c (record_full_open_1): Update.
2630 * record-btrace.c (record_btrace_target_open): Update.
2631 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2632 (value_nsstring): Update.
2633 * linux-thread-db.c (add_thread_db_info)
2634 (thread_db_find_new_threads_silently, check_thread_db_callback)
2635 (try_thread_db_load_1, record_thread): Update.
2636 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2637 Update.
2638 * linux-fork.c (checkpoint_command): Update.
2639 * infrun.c (set_non_stop, set_observer_mode)
2640 (check_multi_target_resumption, for_each_just_stopped_thread)
2641 (maybe_remove_breakpoints, normal_stop)
2642 (class infcall_suspend_state): Update.
2643 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2644 (info_program_command, attach_command): Update.
2645 * infcall.c (call_function_by_hand_dummy): Update.
2646 * inf-loop.c (inferior_event_handler): Update.
2647 * gcore.c (gcore_command, derive_heap_segment): Update.
2648 * exec.c (exec_file_command): Update.
2649 * eval.c (evaluate_subexp): Update.
2650 * compile/compile.c (compile_to_object): Update.
2651 * cli/cli-dump.c (restore_command): Update.
2652 * breakpoint.c (update_watchpoint)
2653 (update_inserted_breakpoint_locations)
2654 (insert_breakpoint_locations, get_bpstat_thread): Update.
2655 * target.h (target_has_execution): Remove macro.
2656 (target_has_execution_current): Don't declare.
2657 (target_has_execution): Rename from target_has_execution_1. Add
2658 argument default.
2659
05374cfd
TT
26602020-09-28 Tom Tromey <tom@tromey.com>
2661
2662 * mi/mi-main.c (exec_reverse_continue)
2663 (mi_cmd_list_target_features): Update.
2664 * infrun.c (set_exec_direction_func): Update.
2665 * target.c (default_execution_direction): Update.
2666 * reverse.c (exec_reverse_once): Update.
2667 * target.h (target_can_execute_reverse): Now a function.
2668
9dccd06e
TT
26692020-09-28 Tom Tromey <tom@tromey.com>
2670
2671 * tui/tui-regs.c (tui_get_register)
2672 (tui_data_window::show_registers): Update.
2673 * thread.c (scoped_restore_current_thread::restore)
2674 (scoped_restore_current_thread::scoped_restore_current_thread):
2675 Update.
2676 * regcache-dump.c (regcache_print): Update.
2677 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2678 Update.
2679 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2680 * mep-tdep.c (current_me_module, current_options): Update.
2681 * linux-thread-db.c (thread_db_load): Update.
2682 * infcmd.c (registers_info, info_vector_command)
2683 (info_float_command): Update.
2684 * ia64-tdep.c (ia64_frame_prev_register)
2685 (ia64_sigtramp_frame_prev_register): Update.
2686 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2687 * gcore.c (derive_stack_segment): Update.
2688 * frame.c (get_current_frame, has_stack_frames): Update.
2689 * findvar.c (language_defn::read_var_value): Update.
2690 * arm-tdep.c (arm_pc_is_thumb): Update.
2691 * target.c (target_has_registers): Rename from
2692 target_has_registers_1.
2693 * target.h (target_has_registers): Remove macro.
2694 (target_has_registers): Rename from target_has_registers_1.
2695
841de120
TT
26962020-09-28 Tom Tromey <tom@tromey.com>
2697
2698 * windows-tdep.c (tlb_make_value): Update.
2699 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2700 * thread.c (scoped_restore_current_thread::restore)
2701 (scoped_restore_current_thread::scoped_restore_current_thread)
2702 (thread_command): Update.
2703 * stack.c (backtrace_command_1, frame_apply_level_command)
2704 (frame_apply_all_command, frame_apply_command): Update.
2705 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2706 Update.
2707 * gcore.c (derive_stack_segment): Update.
2708 * frame.c (get_current_frame, has_stack_frames): Update.
2709 * auxv.c (info_auxv_command): Update.
2710 * ada-tasks.c (ada_build_task_list): Update.
2711 * target.c (target_has_stack): Rename from target_has_stack_1.
2712 * target.h (target_has_stack): Remove macro.
2713 (target_has_stack): Rename from target_has_stack_1.
2714
a739972c
TT
27152020-09-28 Tom Tromey <tom@tromey.com>
2716
2717 * target.c (target_has_memory): Rename from target_has_memory_1.
2718 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2719 * thread.c (scoped_restore_current_thread::restore)
2720 (scoped_restore_current_thread::scoped_restore_current_thread):
2721 Update.
2722 * frame.c (get_current_frame, has_stack_frames): Update.
2723 * target.h (target_has_memory): Remove macro.
2724 (target_has_memory): Rename from target_has_memory_1.
2725
5b8a4776
TT
27262020-09-28 Tom Tromey <tom@tromey.com>
2727
2728 * target.c (target_has_all_memory_1): Remove.
2729 * target.h (target_has_all_memory): Remove define.
2730 (target_has_all_memory_1): Don't declare.
2731
bd356ec6
SM
27322020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2733
2734 * ser-base.c: Adjust comments formatting.
2735
2c72d5e5
TT
27362020-09-27 Tom Tromey <tom@tromey.com>
2737
2738 PR tui/25342:
2739 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2740
35a98237
TT
27412020-09-27 Tom Tromey <tom@tromey.com>
2742
2743 PR tui/25342:
2744 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2745
9e820dec
TT
27462020-09-27 Tom Tromey <tom@tromey.com>
2747
2748 * unittests/tui-selftests.c: Update.
2749 * tui/tui-winsource.h (struct tui_source_window_base)
2750 <extra_margin, show_line_number, refresh_pad>: New methods.
2751 <m_max_length, m_pad>: New members.
2752 (tui_copy_source_line): Update.
2753 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2754 first_col, line_width, ndigits parameters. Add length.
2755 (tui_source_window_base::show_source_line): Write to pad. Line
2756 number now 0-based.
2757 (tui_source_window_base::refresh_pad): New method.
2758 (tui_source_window_base::show_source_content): Write to pad. Call
2759 refresh_pad.
2760 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2761 not refill.
2762 (tui_source_window_base::update_exec_info): Call
2763 show_line_number.
2764 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2765 method.
2766 <m_digits>: New member.
2767 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2768 and m_max_length.
2769 (tui_source_window::show_line_number): New method.
2770 * tui/tui-io.h (tui_puts): Fix comment.
2771 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2772 m_max_length.
2773
c15c15c8
TT
27742020-09-27 Tom Tromey <tom@tromey.com>
2775
2776 * tui/tui-winsource.c
2777 (tui_source_window_base::set_is_exec_point_at): Don't call
2778 show_source_line.
2779
149830c1
TT
27802020-09-27 Tom Tromey <tom@tromey.com>
2781
2782 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2783 method.
2784 <erase>: Update.
2785 <cursor_x, cursor_y>: Remove.
2786 <m_inner_window>: New member.
2787 (tui_py_window::rerender): Create inner window.
2788 (tui_py_window::output): Write to inner window.
2789
8f9929bb
GR
27902020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2791
2792 PR python/26586
2793 * cli/cli-script.c (execute_control_commands): don't set
2794 instream to nullptr here as this breaks the from_tty argument
2795 to gdb.execute in Python.
2796 (execute_user_command): set instream to nullptr here instead.
2797
956bdb59
SM
27982020-09-25 Simon Marchi <simon.marchi@efficios.com>
2799
2800 * infrun.h (infrun_debug_printf): Fix formatting.
2801 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2802
3b93626b
SJ
28032020-09-25 Saagar Jha <saagar@saagarjha.com>
2804
2805 * compile/compile-object-load.h (struct munmap_list): Add
2806 explicitly-defined move constructor.
2807
b551a89f
TT
28082020-09-24 Tom Tromey <tromey@adacore.com>
2809
2810 PR tui/26638:
2811 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2812 method.
2813 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2814 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2815 (tui_prev_win): Rewrite.
2816
99bb393f
HD
28172020-09-23 Hannes Domani <ssbssa@yahoo.de>
2818
2819 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2820 in WOW64 processes as SIGINT.
2821 * nat/windows-nat.h: Make wow64_process a shared variable.
2822 * windows-nat.c: Remove static wow64_process variable.
2823
20a5fcbd
TT
28242020-09-23 Tom Tromey <tom@tromey.com>
2825
2826 PR symtab/25470:
2827 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2828 offset and bit size.
2829 * printcmd.c (print_scalar_formatted): Handle zero-length
2830 integer.
2831 (print_scalar_formatted): Use bit_size_differs_p.
2832 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2833 constant.
2834 (union type_specific): <int_stuff>: New member.
2835 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2836 methods.
2837 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2838 TYPE_SPECIFIC_FIELD.
2839 (recursive_dump_type, copy_type_recursive): Update.
2840 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2841 DW_AT_data_bit_offset.
2842
bac51ab7
TT
28432020-09-23 Tom Tromey <tom@tromey.com>
2844
2845 * utils.h (class gdb_argv): Add move operators.
2846 <append>: New methods.
2847 * compile/compile.c (build_argc_argv): Remove.
2848 (compile_args_argc): Remove.
2849 (compile_args_argv): Change type.
2850 (set_compile_args): Simplify.
2851 (append_args): Remove.
2852 (filter_args): Remove argcp parameter.
2853 (get_args): Return gdb_argv. Simplify.
2854 (compile_to_object): Update.
2855
92677124
TT
28562020-09-23 Tom Tromey <tom@tromey.com>
2857
2858 * compile/compile-object-run.c (do_module_cleanup)
2859 <~do_module_cleanup> :Remove.
2860 (do_module_cleanup): Update.
2861 * compile/compile-object-load.h (struct munmap_list): Add move
2862 assignment operator.
2863 <source_file>: Now a std::string.
2864 <munmap_list>: Rename. No longer a pointer.
2865 * compile/compile-object-load.c (struct setup_sections_data): Add
2866 constructor.
2867 <setup_one_section>: Declare.
2868 <munmap_list>: Move earlier.
2869 <m_bfd>: New member.
2870 <m_last_size, m_last_section_first, m_last_prot,
2871 m_last_max_alignment>: Rename, add initializers where needed.
2872 (setup_sections_data::setup_one_section): Rename from
2873 setup_sections. Update.
2874 (compile_object_load): Update. Don't use bfd_map_over_sections.
2875
e616f60a
TT
28762020-09-23 Tom Tromey <tom@tromey.com>
2877
2878 * compile/compile-object-run.c (struct do_module_cleanup): Add
2879 parameters to constructor. Update destructor.
2880 <source_file, scope, scope_data, out_value_type, out_value_addr,
2881 munmap_list_head, objfile_name_string>: Remove.
2882 <module>: New member.
2883 (do_module_cleanup): Update.
2884 (compile_object_run): Update.
2885
e947a848
TT
28862020-09-23 Tom Tromey <tom@tromey.com>
2887
2888 * compile/compile.c (eval_compile_command): Update.
2889 * compile/compile-object-run.h (compile_object_run): Take a
2890 compile_module_up.
2891 * compile/compile-object-run.c (compile_object_run): Take a
2892 compile_module_up.
2893 * compile/compile-object-load.h (struct compile_module): Add
2894 constructor, destructor.
2895 (compile_module_up): New typedef.
2896 (compile_object_load): Return compile_object_up.
2897 * compile/compile-object-load.c (compile_object_load): Return
2898 compile_module_up.
2899
0dbf6ee6
TT
29002020-09-23 Tom Tromey <tom@tromey.com>
2901
2902 * compile/compile-object-run.c (struct do_module_cleanup): Add
2903 constructor, destructor.
2904 <objfile_name_string>: Don't use struct hack.
2905 (do_module_cleanup): Use delete.
2906 (compile_object_run): Use new.
2907
ebe824f5
TT
29082020-09-23 Tom Tromey <tom@tromey.com>
2909
2910 * compile/compile-cplus-types.c
2911 (compile_cplus_convert_struct_or_union): Use std::vector.
2912 (compile_cplus_convert_func): Likewise.
2913 * compile/compile-c-types.c (convert_func): Use std::vector.
2914
5dd918d9
TT
29152020-09-21 Tom Tromey <tromey@adacore.com>
2916
2917 * sparc-tdep.c (sparc32_skip_prologue): Use
2918 skip_prologue_using_sal.
2919
5486c517
TT
29202020-09-19 Tom Tromey <tom@tromey.com>
2921
2922 * symfile.c (add_section_size_callback): Remove.
2923 (load_one_section): Rename from load_section_callback. Change
2924 parameters.
2925 (generic_load): Use foreach.
2926
8a6bb1d1
TT
29272020-09-19 Tom Tromey <tom@tromey.com>
2928
2929 * exec.c (add_to_section_table): Remove.
2930 (build_section_table): Use foreach.
2931
08f93a1a
TT
29322020-09-19 Tom Tromey <tom@tromey.com>
2933
2934 * elfread.c (elf_locate_sections): Change parameters.
2935 (elf_symfile_read): Use foreach.
2936
03cd72b8
TT
29372020-09-19 Tom Tromey <tom@tromey.com>
2938
2939 * cli/cli-dump.c (struct callback_data): Remove.
2940 (restore_one_section): Rename from restore_section_callback.
2941 Change parameters.
2942 (restore_binary_file): Change parameters.
2943 (restore_command): Use foreach.
2944
f4f2b85f
TT
29452020-09-19 Tom Tromey <tom@tromey.com>
2946
2947 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2948 (gcore_copy_callback): Likewise.
2949 (gcore_memory_sections): Use foreach.
2950
b35c1d1c
TT
29512020-09-19 Tom Tromey <tom@tromey.com>
2952
2953 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2954 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2955 parameters.
2956 (generic_elf_osabi_sniffer): Use foreach.
2957 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2958 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2959
5bb6e9dd
TT
29602020-09-19 Tom Tromey <tom@tromey.com>
2961
2962 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2963 (dwarf2_get_dwz_file): Use foreach.
2964 (dwarf2_locate_dwo_sections): Change parameters.
2965 (open_and_init_dwo_file): Use foreach.
2966 (dwarf2_locate_common_dwp_sections): Change parameters.
2967 (open_and_init_dwp_file): Use foreach.
2968
ad7277da
TT
29692020-09-19 Tom Tromey <tom@tromey.com>
2970
2971 * symfile.h: (find_lowest_section): Don't declare.
2972 * symfile.c (find_lowest_section): Now static. Change
2973 parameters.
2974 (struct place_section_arg): Remove.
2975 (place_section): Change parameters.
2976 (addr_info_make_relative): Use foreach.
2977 (symfile_dummy_outputs): Remove.
2978 (default_symfile_relocate): Use foreach.
2979
cb814f2e
TT
29802020-09-19 Tom Tromey <tom@tromey.com>
2981
2982 * objfiles.c (add_to_objfile_sections): Rename from
2983 add_to_objfile_sections_full.
2984 (add_to_objfile_sections): Remove.
2985 (build_objfile_section_table): Use foreach.
2986
3cabfd26
TT
29872020-09-19 Tom Tromey <tom@tromey.com>
2988
2989 * stap-probe.c (get_stap_base_address_1): Remove.
2990 (get_stap_base_address): Use foreach.
2991
1ce51eb5
TT
29922020-09-19 Tom Tromey <tom@tromey.com>
2993
2994 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2995 parameters.
2996 (gdb_bfd_close_or_warn): Use foreach.
2997
a190fabb
TT
29982020-09-19 Tom Tromey <tom@tromey.com>
2999
3000 * corelow.c (add_to_thread_list): Change parameters.
3001 (core_target_open): Use foreach.
3002
cafb0d81
TT
30032020-09-19 Tom Tromey <tom@tromey.com>
3004
3005 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3006 existing function.
3007
c8d5abea
AB
30082020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3009
3010 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3011 for arrays.
3012
6d816919
AB
30132020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3014
3015 * eval.c: Remove 'f-lang.h' include.
3016 (value_f90_subarray): Moved to f-lang.c.
3017 (eval_call): Renamed to...
3018 (evaluate_subexp_do_call): ...this, is no longer static, header
3019 comment moved into header file.
3020 (evaluate_funcall): Update call to eval_call.
3021 (skip_undetermined_arglist): Moved to f-lang.c.
3022 (fortran_value_subarray): Likewise.
3023 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3024 moved to evaluate_subexp_f.
3025 (calc_f77_array_dims): Moved to f-lang.c
3026 * expprint.c (print_subexp_funcall): New function.
3027 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3028 moved to print_subexp_f, OP_FUNCALL uses new function.
3029 (dump_subexp_body_funcall): New function.
3030 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3031 moved to dump_subexp_f, OP_FUNCALL uses new function.
3032 * expression.h (evaluate_subexp_do_call): Declare.
3033 * f-lang.c (value_f90_subarray): Moved from eval.c.
3034 (skip_undetermined_arglist): Likewise.
3035 (calc_f77_array_dims): Likewise.
3036 (fortran_value_subarray): Likewise.
3037 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3038 (operator_length_f): Likewise.
3039 (print_subexp_f): Likewise.
3040 (dump_subexp_body_f): Likewise.
3041 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3042 declaration of this operation to here.
3043 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3044 support moved to operator_length_f.
3045 * parser-defs.h (dump_subexp_body_funcall): Declare.
3046 (print_subexp_funcall): Declare.
3047 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3048 fortran-operator.def.
3049
8c37706a
AB
30502020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3051
3052 * eval.c (fortran_value_subarray): New function, content is taken
3053 from...
3054 (evaluate_subexp_standard): ...here, in two places. Now arrays
3055 and strings both call the new function.
3056 (calc_f77_array_dims): Add header comment, handle strings.
3057
14f9473c
VC
30582020-09-18 Victor Collod <vcollod@nvidia.com>
3059
3060 PR gdb/26635
3061 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3062 (i386_analyze_prologue): Call i386_skip_endbr.
3063
b60cea74
TT
30642020-09-18 Tom Tromey <tromey@adacore.com>
3065
3066 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3067 (windows_nat_target::wait): Update.
3068 * target/wait.h (enum target_wait_flag): New. Use
3069 DEF_ENUM_FLAGS_TYPE.
3070 * target/target.h (target_wait): Change type of options.
3071 * target.h (target_options_to_string, default_target_wait):
3072 Update.
3073 (struct target_ops) <wait>: Change type of options.
3074 * target.c (target_wait, default_target_wait, do_option): Change
3075 type of "options".
3076 (target_options_to_string): Likewise.
3077 * target-delegates.c: Rebuild.
3078 * target-debug.h (target_debug_print_target_wait_flags): Rename
3079 from target_debug_print_options.
3080 * sol-thread.c (class sol_thread_target) <wait>: Update.
3081 (sol_thread_target::wait): Update.
3082 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3083 (rs6000_nat_target::wait): Update.
3084 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3085 Update.
3086 (remote_target::wait_ns, remote_target::wait_as): Change type of
3087 "options".
3088 (remote_target::wait): Update.
3089 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3090 (gdbsim_target::wait): Update.
3091 * record-full.c (class record_full_base_target) <wait>: Update.
3092 (record_full_wait_1): Change type of "options".
3093 (record_full_base_target::wait): Update.
3094 * record-btrace.c (class record_btrace_target) <wait>: Update.
3095 (record_btrace_target::wait): Update.
3096 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3097 Update.
3098 (ravenscar_thread_target::wait): Update.
3099 * procfs.c (class procfs_target) <wait>: Update.
3100 (procfs_target::wait): Update.
3101 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3102 * obsd-nat.c (obsd_nat_target::wait): Update.
3103 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3104 (nto_procfs_target::wait): Update.
3105 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3106 * nbsd-nat.c (nbsd_wait): Change type of "options".
3107 (nbsd_nat_target::wait): Update.
3108 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3109 (thread_db_target::wait): Update.
3110 * linux-nat.h (class linux_nat_target) <wait>: Update.
3111 * linux-nat.c (linux_nat_target::wait): Update.
3112 (linux_nat_wait_1): Update.
3113 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3114 "options".
3115 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3116 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3117 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3118 (go32_nat_target::wait): Update.
3119 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3120 * gnu-nat.c (gnu_nat_target::wait): Update.
3121 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3122 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3123 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3124 * darwin-nat.c (darwin_nat_target::wait): Update.
3125 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3126 (bsd_uthread_target::wait): Update.
3127 * aix-thread.c (class aix_thread_target) <wait>: Update.
3128 (aix_thread_target::wait): Update.
3129
0295dde6
AB
31302020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3131
3132 * compile/compile-object-run.c (create_copied_type_recursive): New
3133 function.
3134 (compile_object_run): Use new function.
3135
d3483b43
JT
31362020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3137
3138 * NEWS: Mention x86_64 Cygwin core file support.
3139
e7d612ad
JT
31402020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3141
3142 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3143 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3144
aff9d387
JT
31452020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3146
62a5151b
JT
3147 * windows-tdep.h: Add prototypes.
3148 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3149 (i386_windows_core_pid_to_str): Move and rename ...
3150 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3151 (windows_core_pid_to_str): ... and here.
3152 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3153
31542020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3155 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3156 (amd64_windows_init_abi_common): ... and register.
3157
7d155da3
JT
31582020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3159
3160 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3161 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3162
e8ef12b9
PA
31632020-09-18 Pedro Alves <pedro@palves.net>
3164
3165 PR gdb/26631
3166 * thread.c (thread_find_command): Switch inferior before calling
3167 target methods.
3168
c1e1314d
TT
31692020-09-17 Tom Tromey <tromey@adacore.com>
3170
3171 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3172 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3173 (tdesc_arch_data_up): New typedef.
3174 (tdesc_use_registers, tdesc_data_alloc): Update.
3175 (tdesc_data_cleanup): Don't declare.
3176 * target-descriptions.c (tdesc_data_alloc): Return a
3177 tdesc_arch_data_up.
3178 (tdesc_arch_data_deleter::operator()): Rename from
3179 tdesc_data_cleanup. Change argument type.
3180 (tdesc_use_registers): Change early_data to an rvalue reference.
3181 (tdesc_use_registers): Don't use delete.
3182 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3183 * s390-tdep.c (s390_gdbarch_init): Update.
3184 * rx-tdep.c (rx_gdbarch_init): Update.
3185 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3186 * riscv-tdep.c (riscv_gdbarch_init): Update.
3187 * or1k-tdep.c (or1k_gdbarch_init): Update.
3188 * nios2-tdep.c (nios2_gdbarch_init): Update.
3189 * nds32-tdep.c (nds32_gdbarch_init): Update.
3190 * mips-tdep.c (mips_gdbarch_init): Update.
3191 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3192 * m68k-tdep.c (m68k_gdbarch_init): Update.
3193 * i386-tdep.c (i386_gdbarch_init): Update.
3194 * arm-tdep.c (arm_gdbarch_init): Update.
3195 * arc-tdep.c (arc_tdesc_init): Update.
3196 (arc_gdbarch_init): Update.
3197 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3198
0363df3d
HD
31992020-09-17 Hannes Domani <ssbssa@yahoo.de>
3200
3201 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3202 for WOW64 processes.
3203
280a9412
TT
32042020-09-17 Tom Tromey <tom@tromey.com>
3205
3206 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3207
6108fd18
TT
32082020-09-17 Tom Tromey <tom@tromey.com>
3209
3210 * value.c (preserve_values): Update.
3211 * python/py-type.c (save_objfile_types): Update.
3212 * guile/scm-type.c (save_objfile_types): Update.
3213 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3214 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3215 * compile/compile-object-run.c (compile_object_run): Update.
3216
fa9b1164
TT
32172020-09-17 Tom Tromey <tom@tromey.com>
3218
3219 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3220 Remove.
3221 <m_table>: Now htab_up.
3222 * typeprint.c (typedef_hash_table::recursively_update)
3223 (typedef_hash_table::add_template_parameters)
3224 (typedef_hash_table::typedef_hash_table): Update.
3225 (typedef_hash_table::~typedef_hash_table): Remove.
3226 (typedef_hash_table::typedef_hash_table)
3227 (typedef_hash_table::find_global_typedef)
3228 (typedef_hash_table::find_typedef): Update.
3229
eb53f105
TT
32302020-09-17 Tom Tromey <tom@tromey.com>
3231
3232 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3233
7a8a5d47
TT
32342020-09-17 Tom Tromey <tom@tromey.com>
3235
3236 * linespec.c (class decode_compound_collector)
3237 <~decode_compound_collector>: Remove.
3238 <m_unique_syms>: Now htab_up.
3239 (decode_compound_collector::operator ()): Update.
3240 (class symtab_collector) <~symtab_collector>: Remove.
3241 <m_symtab_table>: Now htab_up.
3242 (symtab_collector::operator ()): Update.
3243
99032cfc
TT
32442020-09-17 Tom Tromey <tom@tromey.com>
3245
3246 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3247 (filename_seen_cache::clear): Update.
3248 (~filename_seen_cache): Remove.
3249 (filename_seen_cache::seen): Update.
3250 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3251 htab_up.
3252 <~filename_seen_cache>: Remove.
3253 <traverse>: Update.
3254
32580f6d
TT
32552020-09-17 Tom Tromey <tom@tromey.com>
3256
3257 * completer.c (completion_tracker::discard_completions)
3258 (completion_tracker::~completion_tracker)
3259 (completion_tracker::maybe_add_completion)
3260 (completion_tracker::remove_completion)
3261 (completion_tracker::recompute_lowest_common_denominator)
3262 (completion_tracker::build_completion_result): Update.
3263 * completer.h (class completion_tracker) <have_completions>:
3264 Update.
3265 <m_entries_hash>: Now htab_up.
3266
c1fb9836
TT
32672020-09-17 Tom Tromey <tom@tromey.com>
3268
3269 * breakpoint.c (ambiguous_names_p): Use htab_up.
3270
88f07206
TT
32712020-09-17 Tom Tromey <tom@tromey.com>
3272
3273 * auto-load.c (struct auto_load_pspace_info)
3274 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3275 <loaded_script_files, loaded_script_texts>: Change type to
3276 htab_up.
3277 (~auto_load_pspace_info) Remove.
3278 (init_loaded_scripts_info, maybe_add_script_file)
3279 (maybe_add_script_text, auto_load_info_scripts): Update.
3280
9519b2ee
TT
32812020-09-17 Tom Tromey <tromey@adacore.com>
3282
3283 * c-exp.y (name_obstack): Now static.
3284
d2cd4113
CC
32852020-09-17 Chungyi Chi <demonic@csie.io>
3286
3287 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3288
b650a282
SM
32892020-09-16 Simon Marchi <simon.marchi@efficios.com>
3290
3291 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3292 (add_solib_catchpoint): Likewise.
3293 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3294 to bool.
3295 (add_solib_catchpoint): Change int parameter/variable to bool.
3296 (catch_load_or_unload): Likewise.
3297 (init_catchpoint): Likewise.
3298 (create_fork_vfork_event_catchpoint): Likewise.
3299 (catch_fork_command_1): Likewise.
3300 (catch_exec_command_1): Likewise.
3301
4d0bcfcf
SM
33022020-09-16 Simon Marchi <simon.marchi@efficios.com>
3303
3304 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3305 Change instance_flags to m_instance_flags.
3306
fe830662
TT
33072020-09-16 Tom Tromey <tromey@adacore.com>
3308
3309 PR gdb/26598:
3310 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3311
fe5ddfc3
JB
33122020-09-16 John Baldwin <jhb@FreeBSD.org>
3313
3314 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3315 PL_FLAG_EXEC.
3316 (fbsd_nat_target::insert_exec_catchpoint)
3317 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3318 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3319 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3320
e911c666
JB
33212020-09-16 John Baldwin <jhb@FreeBSD.org>
3322
3323 * configure.ac: Remove check for kinfo_getvmmap().
3324 * configure, config.in: Regenerate.
3325 * fbsd-nat.c (fbsd_read_mapping): Remove
3326 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3327 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3328 kinfo_get_vmmap() are always present.
3329
1f17d372
JB
33302020-09-16 John Baldwin <jhb@FreeBSD.org>
3331
3332 * fbsd-nat.c: Always include support for
3333 TARGET_OBJECT_SIGNAL_INFO.
3334
bcb1da7f
JB
33352020-09-16 John Baldwin <jhb@FreeBSD.org>
3336
3337 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3338 sysctl and remove procfs fallback.
3339
5515f729
JB
33402020-09-16 John Baldwin <jhb@FreeBSD.org>
3341
3342 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3343 * fbsd-nat.h: Likewise.
3344
da1df1db
TBA
33452020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3346
3347 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3348 argument.
3349
0e25e767
AB
33502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3351
3352 * ada-lang.c (ada_language_data): Delete.
3353 (ada_language): Remove references to ada_language_data.
3354 * c-lang.c (c_language_data): Delete.
3355 (c_language): Remove references to c_language_data.
3356 (cplus_language_data): Delete.
3357 (cplus_language): Remove references to cplus_language_data.
3358 (asm_language_data): Delete.
3359 (asm_language): Remove references to asm_language_data.
3360 (minimal_language_data): Delete.
3361 (minimal_language): Remove references to minimal_language_data.
3362 * d-lang.c (d_language_data): Delete.
3363 (d_language): Remove references to d_language_data.
3364 * f-lang.c (f_language_data): Delete.
3365 (f_language): Remove references to f_language_data.
3366 * go-lang.c (go_language_data): Delete.
3367 (go_language): Remove references to go_language_data.
3368 * language.c (unknown_language_data): Delete.
3369 (unknown_language): Remove references to unknown_language_data.
3370 (auto_language_data): Delete.
3371 (auto_language): Remove references to auto_language_data.
3372 * language.h (language_data): Delete struct.
3373 (language_defn): No longer inherit from language_data.
3374 * m2-lang.c (m2_language_data): Delete.
3375 (m2_language): Remove references to m2_language_data.
3376 * objc-lang.c (objc_language_data): Delete.
3377 (objc_language): Remove references to objc_language_data.
3378 * opencl-lang.c (opencl_language_data): Delete.
3379 (opencl_language): Remove references to opencl_language_data.
3380 * p-lang.c (pascal_language_data): Delete.
3381 (pascal_language): Remove references to pascal_language_data.
3382 * rust-lang.c (rust_language_data): Delete.
3383 (rust_language): Remove references to rust_language_data.
3384
b7c6e27d
AB
33852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3386
3387 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3388 initializer.
3389 (ada_language::opcode_print_table): New member function.
3390 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3391 (c_language::opcode_print_table): New member function.
3392 (cplus_language_data): Remove la_op_print_tab initializer.
3393 (cplus_language::opcode_print_table): New member function.
3394 (asm_language_data): Remove la_op_print_tab initializer.
3395 (asm_language::opcode_print_table): New member function.
3396 (minimal_language_data): Remove la_op_print_tab initializer.
3397 (minimal_language::opcode_print_table): New member function.
3398 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3399 (d_language::opcode_print_table): New member function.
3400 * expprint.c (print_subexp_standard): Update call to
3401 opcode_print_table.
3402 (op_string): Likewise.
3403 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3404 (f_language::opcode_print_table): New member function.
3405 * go-lang.c (go_language_data): Remove la_op_print_tab
3406 initializer.
3407 (go_language::opcode_print_table): New member function.
3408 * language.c (unknown_language_data): Remove la_op_print_tab
3409 initializer.
3410 (unknown_language::opcode_print_table): New member function.
3411 (auto_language_data): Remove la_op_print_tab initializer.
3412 (auto_language::opcode_print_table): New member function.
3413 * language.h (language_data): Remove la_op_print_tab field.
3414 (language_defn::opcode_print_table): Declare new member function.
3415 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3416 initializer.
3417 (m2_language::opcode_print_table): New member function.
3418 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3419 initializer.
3420 (objc_language::opcode_print_table): New member function.
3421 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3422 initializer.
3423 (opencl_language::opcode_print_table): New member function.
3424 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3425 initializer.
3426 (pascal_language::opcode_print_table): New member function.
3427 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3428 initializer.
3429 (rust_language::opcode_print_table): New member function.
3430
5aba6ebe
AB
34312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3432
3433 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3434 (ada_language::expression_ops): New member function.
3435 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3436 (c_language::expression_ops): New member function.
3437 (cplus_language_data): Remove la_exp_desc initializer.
3438 (cplus_language::expression_ops): New member function.
3439 (asm_language_data): Remove la_exp_desc initializer.
3440 (asm_language::expression_ops): New member function.
3441 (minimal_language_data): Remove la_exp_desc initializer.
3442 (minimal_language::expression_ops): New member function.
3443 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3444 (d_language::expression_ops): New member function.
3445 * eval.c (evaluate_subexp): Update call to expression_ops.
3446 * expprint.c (print_subexp): Likewise.
3447 (op_name): Likewise.
3448 (dump_subexp_body): Likewise.
3449 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3450 (f_language::expression_ops): New member function.
3451 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3452 (go_language::expression_ops): New member function.
3453 * language.c (language_defn::expression_ops): New function.
3454 (unknown_language_data): Remove la_exp_desc initializer.
3455 (auto_language_data): Likewise.
3456 * language.h (language_data): Remove la_exp_desc field.
3457 (language_defn::expression_ops): Declare new member function.
3458 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3459 (m2_language::expression_ops): New member function.
3460 * objc-lang.c (objc_language_data): Remove la_exp_desc
3461 initializer.
3462 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3463 initializer.
3464 (opencl_language::expression_ops): New member function.
3465 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3466 * parse.c (operator_length): Update call to expression_ops.
3467 (exp_iterate): Likewise.
3468 * rust-lang.c (rust_language_data): Remove la_exp_desc
3469 initializer.
3470 (ruse_language::expression_ops): New member function.
3471
b63a3f3f
AB
34722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3475 initializer.
3476 (ada_language::varobj_ops): New member function.
3477 * c-lang.c (c_language_data): Remove la_varobj_ops
3478 initializer.
3479 (cplus_language_data): Likewise.
3480 (cplus_language::varobj_ops): New member function.
3481 (asm_language_data): Remove la_varobj_ops initializer.
3482 (minimal_language_data): Likewise.
3483 * d-lang.c (d_language_data): Likewise.
3484 * f-lang.c (f_language_data): Likewise.
3485 * go-lang.c (go_language_data): Likewise.
3486 * language.c (language_defn::varobj_ops): New function.
3487 (unknown_language_data): Remove la_varobj_ops
3488 initializer.
3489 (auto_language_data): Likewise.
3490 * language.h (language_data): Remove la_varobj_ops field.
3491 (language_defn::varobj_ops): Declare new member function.
3492 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3493 * objc-lang.c (objc_language_data): Likewise.
3494 * opencl-lang.c (opencl_language_data): Likewise.
3495 * p-lang.c (pascal_language_data): Likewise.
3496 * rust-lang.c (rust_language_data): Likewise.
3497 * varobj.c (varobj_create): Update call to varobj_ops.
3498 * varobj.h (default_varobj_ops): Delete define.
3499
1ac14a04
AB
35002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3501
3502 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3503 initializer.
3504 * c-lang.c (c_language_data): Likewise.
3505 (c_language::macro_expansion): New member function.
3506 (cplus_language_data): Likewise.
3507 (cplus_language::macro_expansion): New member function.
3508 (asm_language_data): Likewise.
3509 (asm_language::macro_expansion): New member function.
3510 (minimal_language_data): Likewise.
3511 (minimal_language::macro_expansion): New member function.
3512 * d-lang.c (d_language_data): Remove la_macro_expansion
3513 initializer.
3514 * f-lang.c (f_language_data): Likewise.
3515 * go-lang.c (go_language_data): Likewise.
3516 * language.c (unknown_language_data): Likewise.
3517 (auto_language_data): Likewise.
3518 * language.h (language_data): Remove la_macro_expansion field.
3519 (language_defn::macro_expansion): New member function.
3520 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3521 initializer.
3522 * objc-lang.c (objc_language_data): Likewise.
3523 (objc_language::macro_expansion): New member function.
3524 * opencl-lang.c (opencl_language_data): Likewise.
3525 (opencl_language::macro_expansion): New member function.
3526 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3527 initializer.
3528 * rust-lang.c (rust_language_data): Likewise.
3529 * symtab.c (default_collect_symbol_completion_matches_break_on):
3530 Update call to macro_expansion.
3531
3a3440fb
AB
35322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3533
3534 * ada-lang.c (ada_language_data): Remove la_array_ordering
3535 initializer.
3536 * c-lang.c (c_language_data): Likewise.
3537 (cplus_language_data): Likewise.
3538 (asm_language_data): Likewise.
3539 (minimal_language_data): Likewise.
3540 * d-lang.c (d_language_data): Likewise.
3541 * dwarf2/read.c (read_array_order): Update for call to
3542 array_ordering.
3543 * f-lang.c (f_language_data): Remove la_array_ordering
3544 initializer.
3545 (f_language::array_ordering): New member function.
3546 * go-lang.c (go_language_data): Remove la_array_ordering
3547 initializer.
3548 * language.c (unknown_language_data): Likewise.
3549 (auto_language_data): Likewise.
3550 * language.h (language_data): Delete la_array_ordering field.
3551 (language_defn::array_ordering): New member function.
3552 * m2-lang.c (m2_language_data): Remove la_array_ordering
3553 initializer.
3554 * objc-lang.c (objc_language_data): Likewise.
3555 * opencl-lang.c (opencl_language_data): Likewise.
3556 * p-lang.c (pascal_language_data): Likewise.
3557 * rust-lang.c (rust_language_data): Likewise.
3558
0d201fa4
AB
35592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3560
3561 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3562 initializer.
3563 * c-lang.c (c_language_data): Likewise.
3564 (cplus_language_data): Likewise.
3565 (asm_language_data): Likewise.
3566 (minimal_language_data): Likewise.
3567 * d-lang.c (d_language_data): Likewise.
3568 * f-lang.c (f_language_data): Likewise.
3569 (f_language::case_sensitivity): New member function.
3570 * go-lang.c (go_language_data): Remove la_case_sensitivity
3571 initializer.
3572 * language.c (enum case_mode): Moved here from language.h.
3573 (case_mode): Make static.
3574 (show_case_command): Update for case_sensitivity being a method.
3575 (set_case_command): Likewise.
3576 (set_range_case): Likewise.
3577 (unknown_language_data): Remove la_case_sensitivity initializer.
3578 (auto_language_data): Likewise.
3579 * language.h (case_mode): Delete, move enum declaration to
3580 language.c.
3581 (language_data): Delete la_case_sensitivity field.
3582 (language_defn::case_sensitivity): New member function.
3583 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3584 initializer.
3585 * objc-lang.c (objc_language_data): Likewise.
3586 * opencl-lang.c (opencl_language_data): Likewise.
3587 * p-lang.c (pascal_language_data): Likewise.
3588 * rust-lang.c (rust_language_data): Likewise.
3589
efdf6a73
AB
35902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3591
3592 * ada-lang.c (ada_language_data): Remove la_range_check
3593 initializer.
3594 * c-lang.c (c_language_data): Likewise.
3595 (cplus_language_data): Likewise.
3596 (asm_language_data): Likewise.
3597 (minimal_language_data): Likewise.
3598 * d-lang.c (d_language_data): Likewise.
3599 * f-lang.c (f_language_data): Likewise.
3600 (f_language::range_checking_on_by_default): New member function.
3601 * go-lang.c (go_language_data): Remove la_range_check initializer.
3602 * language.c (enum range_mode): Moved here from language.h.
3603 (range_mode): Made static.
3604 (show_range_command): Update to use
3605 range_checking_on_by_default.
3606 (set_range_command): Likewise.
3607 (set_range_case): Likewise.
3608 (unknown_language_data): Remove la_range_check initializer.
3609 (auto_language_data): Likewise.
3610 * language.h (range_mode): Delete. Enum definition moved to
3611 language.c.
3612 (language_data): Remove la_range_check field.
3613 (language_defn::range_checking_on_by_default): New member
3614 function.
3615 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3616 (m2_language::range_checking_on_by_default): New member function.
3617 * objc-lang.c (objc_language_data): Remove la_range_check
3618 initializer.
3619 * opencl-lang.c (opencl_language_data): Likewise.
3620 * p-lang.c (pascal_language_data): Likewise.
3621 (pascal_language::range_checking_on_by_default): New member
3622 function.
3623 * rust-lang.c (rust_language_data): Remove la_range_check
3624 initializer.
3625 (rust_language::range_checking_on_by_default): New member
3626 function.
3627
bf92aec5
AB
36282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3629
3630 * dwarf2/read.c (dwarf2_physname): Remove special case for
3631 language_go.
3632 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3633 member function.
3634
d3355e4d
AB
36352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3636
3637 * ada-lang.c (ada_language_data): Remove
3638 la_store_sym_names_in_linkage_form_p initializer.
3639 (ada_language::store_sym_names_in_linkage_form_p): New member
3640 function.
3641 * c-lang.c (c_language_data): Remove
3642 la_store_sym_names_in_linkage_form_p initializer.
3643 (c_language::store_sym_names_in_linkage_form_p): New member
3644 function.
3645 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3646 initializer.
3647 (asm_language_data): Likewise.
3648 (asm_language::store_sym_names_in_linkage_form_p): New member
3649 function.
3650 (minimal_language_data): Remove
3651 la_store_sym_names_in_linkage_form_p initializer.
3652 (minimal_language::store_sym_names_in_linkage_form_p): New member
3653 function.
3654 * d-lang.c (d_language_data): Remove
3655 la_store_sym_names_in_linkage_form_p initializer.
3656 * dwarf2/read.c (dwarf2_physname): Update call to
3657 store_sym_names_in_linkage_form_p.
3658 * f-lang.c (f_language_data): Remove
3659 la_store_sym_names_in_linkage_form_p initializer.
3660 * go-lang.c (go_language_data): Remove
3661 la_store_sym_names_in_linkage_form_p initializer.
3662 * language.c (unknown_language_data): Remove
3663 la_store_sym_names_in_linkage_form_p initializer.
3664 (unknown_language::store_sym_names_in_linkage_form_p): New member
3665 function.
3666 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3667 initializer.
3668 (auto_language::store_sym_names_in_linkage_form_p): New member
3669 function.
3670 * language.h (language_data): Remove
3671 la_store_sym_names_in_linkage_form_p member variable.
3672 (language_defn::store_sym_names_in_linkage_form_p): New member
3673 function.
3674 * m2-lang.c (m2_language_data): Remove
3675 la_store_sym_names_in_linkage_form_p initializer.
3676 * objc-lang.c (objc_language_data): Likewise.
3677 * opencl-lang.c (opencl_language_data): Likewise.
3678 * p-lang.c (pascal_language_data): Likewise.
3679 * rust-lang.c (rust_language_data): Likewise.
3680
22c12a6c
AB
36812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3682
3683 * ada-lang.c (ada_language_data): Remove string_lower_bound
3684 initializer.
3685 * c-lang.c (c_language_data): Likewise.
3686 (cplus_language_data): Likewise.
3687 (asm_language_data): Likewise.
3688 (minimal_language_data): Likewise.
3689 * d-lang.c (d_language_data): Likewise.
3690 * f-lang.c (f_language_data): Likewise.
3691 * go-lang.c (go_language_data): Likewise.
3692 * language.c (unknown_language_data): Likewise.
3693 (auto_language_data): Likewise.
3694 * language.h (language_data): Remove string_lower_bound field.
3695 (language_defn::string_lower_bound): New member function.
3696 * m2-lang.c (m2_language_data): Remove string_lower_bound
3697 initializer.
3698 (m2_language::string_lower_bound): New member function.
3699 * objc-lang.c (objc_language_data): Remove string_lower_bound
3700 initializer.
3701 * opencl-lang.c (opencl_language_data): Likewise.
3702 * p-lang.c (pascal_language_data): Likewise.
3703 * rust-lang.c (rust_language_data): Likewise.
3704 * valops.c (value_cstring): Update call to string_lower_bound.
3705 (value_string): Likewise.
3706 * value.c (allocate_repeated_value): Likewise.
3707
1c236ddd
AB
37082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3709
3710 * valops.c (value_repeat): Fix incorrect argument name in comment.
3711
67bd3fd5
AB
37122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3713
3714 * ada-lang.c (ada_language_data): Remove c_style_arrays
3715 initializer.
3716 (ada_language::c_style_arrays_p): New member fuction.
3717 * c-lang.c (c_language_data): Remove c_style_arrays
3718 initializer.
3719 (cplus_language_data): Likewise.
3720 (asm_language_data): Likewise.
3721 (minimal_language_data): Likewise.
3722 * d-lang.c (d_language_data): Likewise.
3723 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3724 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3725 (f_language::c_style_arrays_p): New member function.
3726 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3727 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3728 * language.c (unknown_language_data): Remove c_style_arrays
3729 initializer.
3730 (auto_language_data): Likewise.
3731 * language.h (language_data): Remove c_style_arrays field.
3732 (language_defn::c_style_arrays_p): New member function.
3733 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3734 (m2_language::c_style_arrays_p): New member function.
3735 * objc-lang.c (objc_language_data): Remove c_style_arrays
3736 initializer.
3737 * opencl-lang.c (opencl_language_data): Likewise.
3738 * p-lang.c (pascal_language_data): Likewise.
3739 * rust-lang.c (rust_language_data): Likewise.
3740 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3741 and update local variable to a bool.
3742 * valops.c (value_cast): Update call to c_style_arrays_p.
3743 (value_array): Likewise.
3744 * value.c (coerce_array): Likewise.
3745
85967615
AB
37462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3747
3748 * ada-lang.c (ada_language_data): Remove la_language initializer.
3749 * c-lang.c (c_language_data): Likewise.
3750 (cplus_language_data): Likewise.
3751 (asm_language_data): Likewise.
3752 (minimal_language_data): Likewise.
3753 * d-lang.c (d_language_data): Likewise.
3754 * f-lang.c (f_language_data): Likewise.
3755 * go-lang.c (go_language_data): Likewise.
3756 * language.c (unknown_language_data): Likewise.
3757 (auto_language_data): Likewise.
3758 * language.h (language_data): Remove la_language field.
3759 (language_defn::language_defn): Initialise la_language field.
3760 (language_defn::la_language): New member variable.
3761 * m2-lang.c (m2_language_data): Remove la_language field.
3762 * objc-lang.c (objc_language_data): Likewise.
3763 * opencl-lang.c (opencl_language_data): Likewise.
3764 * p-lang.c (pascal_language_data): Likewise.
3765 * rust-lang.c (rust_language_data): Likewise.
3766
e171d6f1
AB
37672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3768
3769 * ada-lang.c (ada_extensions): Delete, moved into
3770 ada_language::filename_extensions.
3771 (ada_language_data): Remove la_filename_extensions initializer.
3772 (ada_language::filename_extensions): New member function.
3773 * c-lang.c (c_extensions): Delete, moved into
3774 c_language::filename_extensions.
3775 (c_language_data): Remove la_filename_extensions initializer.
3776 (c_language::filename_extensions): New member function.
3777 (cplus_extensions): Delete, moved into
3778 cplus_language::filename_extensions.
3779 (cplus_language_data): Remove la_filename_extensions initializer.
3780 (cplus_language::filename_extensions): New member function.
3781 (asm_extensions): Delete, moved into
3782 asm_language::filename_extensions.
3783 (asm_language_data): Remove la_filename_extensions initializer.
3784 (asm_language::filename_extensions): New member function.
3785 (minimal_language_data): Remove la_filename_extensions
3786 initializer.
3787 * d-lang.c (d_extensions): Delete, moved into
3788 d_language::filename_extensions.
3789 (d_language_data): Remove la_filename_extensions initializer.
3790 (d_language::filename_extensions): New member function.
3791 * f-lang.c (f_extensions): Delete, moved into
3792 f_language::filename_extensions.
3793 (f_language_data): Remove la_filename_extensions initializer.
3794 (f_language::filename_extensions): New member function.
3795 * go-lang.c (go_language_data): Remove la_filename_extensions
3796 initializer.
3797 * language.c (add_set_language_command): Update now that
3798 filename_extensions returns a vector.
3799 (unknown_language_data): Remove la_filename_extensions
3800 initializer.
3801 (auto_language_data): Likewise.
3802 * language.h (language_data): Remove la_filename_extensions field.
3803 (language_defn::filename_extensions): New member function.
3804 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3805 initializer.
3806 * objc-lang.c (objc_extensions): Delete, moved into
3807 objc_language::filename_extensions.
3808 (objc_language_data): Remove la_filename_extensions initializer.
3809 (objc_language::filename_extensions): New member function.
3810 * opencl-lang.c (opencl_language_data): Remove
3811 la_filename_extensions initializer.
3812 * p-lang.c (pascal_extensions): Delete, moved into
3813 pascal_language::filename_extensions.
3814 (pascal_language_data): Remove la_filename_extensions initializer.
3815 (pascal_language::filename_extensions): New member function.
3816 * rust-lang.c (rust_extensions): Delete, moved into
3817 rust_language::filename_extensions.
3818 (rust_language_data): Remove la_filename_extensions initializer.
3819 (rust_language::filename_extensions): New member function.
3820 * symfile.c (add_filename_language): Add new assert.
3821
6f7664a9
AB
38222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3823
3824 * ada-lang.c (ada_language_data): Remove la_name and
3825 la_natural_name initializers.
3826 (ada_language::name): New member function.
3827 (ada_language::natural_name): New member function.
3828 * c-lang.c (c_language_data): Remove la_name and
3829 la_natural_name initializers.
3830 (c_language::name): New member function.
3831 (c_language::natural_name): New member function.
3832 (cplus_language_data): Remove la_name and
3833 la_natural_name initializers.
3834 (cplus_language::name): New member function.
3835 (cplus_language::natural_name): New member function.
3836 (asm_language_data): Remove la_name and
3837 la_natural_name initializers.
3838 (asm_language::name): New member function.
3839 (asm_language::natural_name): New member function.
3840 (minimal_language_data): Remove la_name and
3841 la_natural_name initializers.
3842 (minimal_language::name): New member function.
3843 (minimal_language::natural_name): New member function.
3844 * compile/compile.c (compile_to_object): Update call to
3845 lanugage_defn::name.
3846 * d-lang.c (d_language_data): Remove la_name and
3847 la_natural_name initializers.
3848 (d_language::name): New member function.
3849 (d_language::natural_name): New member function.
3850 * expprint.c (print_subexp_standard): Update call to
3851 language_defn::name.
3852 (dump_raw_expression): Likewise
3853 (dump_prefix_expression): Likewise.
3854 * f-lang.c (f_language_data): Remove la_name and
3855 la_natural_name initializers.
3856 (f_language::name): New member function.
3857 (f_language::natural_name): New member function.
3858 * go-lang.c (go_language_data): Remove la_name and
3859 la_natural_name initializers.
3860 (go_language::name): New member function.
3861 (go_language::natural_name): New member function.
3862 * language.c (show_language_command): Update call to
3863 language_defn::name.
3864 (set_language_command): Likewise.
3865 (language_enum): Likewise.
3866 (language_str): Likewise.
3867 (add_set_language_command): Likewise, use
3868 language_defn::natural_name in the doc string.
3869 (unknown_language_data): Remove la_name and
3870 la_natural_name initializers.
3871 (unknown_language::name): New member function.
3872 (unknown_language::natural_name): New member function.
3873 (auto_language_data): Remove la_name and
3874 la_natural_name initializers.
3875 (auto_language::name): New member function.
3876 (auto_language::natural_name): New member function.
3877 (language_lookup_primitive_type_as_symbol): Update call to
3878 language_defn::name.
3879 * language.h (language_data): Remove la_name and la_natural_name
3880 member variables.
3881 (language_defn::name): New member function.
3882 (language_defn::natural_name): New member function.
3883 * m2-lang.c (m2_language_data): Remove la_name and
3884 la_natural_name initializers.
3885 (m2_language::name): New member function.
3886 (m2_language::natural_name): New member function.
3887 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3888 language_defn::natural_name.
3889 * objc-lang.c (objc_language_data): Remove la_name and
3890 la_natural_name initializers.
3891 (objc_language::name): New member function.
3892 (objc_language::natural_name): New member function.
3893 * opencl-lang.c (opencl_language_data): Remove la_name and
3894 la_natural_name initializers.
3895 (opencl_language::name): New member function.
3896 (opencl_language::natural_name): New member function.
3897 * p-lang.c (pascal_language_data): Remove la_name and
3898 la_natural_name initializers.
3899 (pascal_language::name): New member function.
3900 (pascal_language::natural_name): New member function.
3901 * rust-lang.c (rust_language_data): Remove la_name and
3902 la_natural_name initializers.
3903 (rust_language::name): New member function.
3904 (rust_language::natural_name): New member function.
3905 * symtab.c (lookup_language_this): Update call to
3906 language_defn::name.
3907
5bae7c4e
AB
39082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3909
3910 * ada-lang.c (ada_language_data): Remove la_name_of_this
3911 initializer.
3912 * ax-gdb.c (gen_expr): Update call to name_of_this.
3913 * c-exp.y (classify_name): Likewise.
3914 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3915 (cplus_language_data): Likewise.
3916 (cplus_language::name_of_this): New member function.
3917 (asm_language_data): Remove la_name_of_this initializer.
3918 (minimal_language_data): Likewise.
3919 * d-lang.c (d_language_data): Likewise.
3920 (d_language::name_of_this): New member function.
3921 * expprint.c (print_subexp_standard): Update call to name_of_this.
3922 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3923 * go-lang.c (go_language_data): Likewise.
3924 * language.c (unknown_language_data): Likewise.
3925 (unknown_language::name_of_this): New member function.
3926 (auto_language_data): Remove la_name_of_this initializer.
3927 (auto_language::name_of_this): New member function.
3928 * language.h (language_data): Delete la_name_of_this member
3929 variable.
3930 (language_defn::name_of_this): New member function.
3931 * m2-lang.c (m2_language_data): Remove la_name_of_this
3932 initializer.
3933 * objc-lang.c (objc_language_data): Likewise.
3934 (objc_language::name_of_this): New member function.
3935 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3936 initializer.
3937 * p-lang.c (pascal_language_data): Likewise.
3938 (pascal_language::name_of_this): New member function.
3939 * rust-lang.c (rust_language_data): Remove la_name_of_this
3940 initializer.
3941 * symtab.c (lookup_language_this): Update call to name_of_this.
3942 (lookup_symbol_aux): Likewise.
3943 * valops.c (value_of_this): Likewise.
3944
22e3f3ed
AB
39452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3946
3947 * ada-lang.c (ada_language_data): Remove
3948 la_struct_too_deep_ellipsis initializer.
3949 (ada_language::struct_too_deep_ellipsis): New member function.
3950 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3951 initializer.
3952 (cplus_language_data): Likewise.
3953 (asm_language_data): Likewise.
3954 (minimal_language_data): Likewise.
3955 * cp-valprint.c (cp_print_value): Update call to
3956 struct_too_deep_ellipsis.
3957 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3958 initializer.
3959 * f-lang.c (f_language_data): Likewise.
3960 (f_language::struct_too_deep_ellipsis): New member function.
3961 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3962 initializer.
3963 * language.c (unknown_language_data): Likewise.
3964 (auto_language_data): Likewise.
3965 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3966 member variable.
3967 (language_defn::struct_too_deep_ellipsis): New member function.
3968 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3969 initializer.Q
3970 * objc-lang.c (objc_language_data): Likewise.
3971 * opencl-lang.c (opencl_language_data): Likewise.
3972 * p-lang.c (pascal_language_data): Likewise.
3973 * rust-lang.c (rust_language_data): Likewise.
3974 * valprint.c (val_print_check_max_depth): Update call to
3975 struct_too_deep_ellipsis.
3976
ed29e1c7
FW
39772020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3978
3979 * MAINTAINERS (Write After Approval): Add myself.
3980
12d8f940
TT
39812020-09-15 Tom Tromey <tom@tromey.com>
3982
3983 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3984 Remove.
3985
6b5a7bc7
TT
39862020-09-15 Tom Tromey <tom@tromey.com>
3987
3988 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3989 and TYPE_CODE_METHODPTR cases.
3990 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3991 (c_value_print_inner): Update.
3992 * valprint.c (generic_value_print_memberptr): New function, from
3993 c_value_print_memberptr.
3994 (generic_value_print): Use it. Call cplus_print_method_ptr.
3995
47f0e2ff
TT
39962020-09-15 Tom Tromey <tromey@adacore.com>
3997
3998 * python/python-internal.h (PyInt_FromLong): Remove define.
3999 * python/py-value.c (convert_value_from_python): Use
4000 gdb_py_object_from_longest.
4001 * python/py-type.c (typy_get_code): Use
4002 gdb_py_object_from_longest.
4003 * python/py-symtab.c (salpy_get_line): Use
4004 gdb_py_object_from_longest.
4005 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4006 gdb_py_object_from_longest.
4007 * python/py-record.c (recpy_gap_reason_code): Use
4008 gdb_py_object_from_longest.
4009 * python/py-record-btrace.c (recpy_bt_insn_size)
4010 (recpy_bt_func_level, btpy_list_count): Use
4011 gdb_py_object_from_longest.
4012 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4013 gdb_py_object_from_longest. Fix error handling.
4014 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4015 gdb_py_object_from_longest.
4016 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4017 gdb_py_object_from_longest.
4018 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4019 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4020 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4021
512116ce
TT
40222020-09-15 Tom Tromey <tromey@adacore.com>
4023
4024 * python/python.c (gdbpy_parameter_value): Use
4025 gdb_py_object_from_ulongest.
4026
4ab1029c
TT
40272020-09-15 Tom Tromey <tromey@adacore.com>
4028
4029 * python/py-infevents.c (create_register_changed_event_object):
4030 Use gdb_py_object_from_longest.
4031 * python/py-exitedevent.c (create_exited_event_object): Use
4032 gdb_py_object_from_longest.
4033
062534d4
TT
40342020-09-15 Tom Tromey <tromey@adacore.com>
4035
4036 * python/python.c (gdbpy_parameter_value): Use
4037 gdb_py_object_from_longest.
4038 * python/py-type.c (convert_field, typy_range): Use
4039 gdb_py_object_from_longest.
4040 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4041 gdb_py_object_from_longest.
4042 * python/py-lazy-string.c (stpy_get_length): Use
4043 gdb_py_object_from_longest.
4044 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4045 gdb_py_object_from_longest.
4046 * python/py-infevents.c (create_memory_changed_event_object): Use
4047 gdb_py_object_from_longest.
4048 * python/py-inferior.c (infpy_get_num): Use
4049 gdb_py_object_from_longest.
4050 (infpy_get_pid): Likewise.
4051
d1cab987
TT
40522020-09-15 Tom Tromey <tromey@adacore.com>
4053
4054 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4055 defines.
4056 * python/py-value.c (valpy_long): Use
4057 gdb_py_object_from_ulongest.
4058 * python/py-symtab.c (salpy_get_pc): Use
4059 gdb_py_object_from_ulongest.
4060 (salpy_get_last): Likewise.
4061 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4062 gdb_py_object_from_ulongest.
4063 * python/py-lazy-string.c (stpy_get_address): Use
4064 gdb_py_object_from_ulongest.
4065 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4066 * python/py-arch.c (archpy_disassemble): Use
4067 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4068 error handling.
4069
4bde49dc
TT
40702020-09-15 Tom Tromey <tromey@adacore.com>
4071
4072 * python/python-internal.h (gdb_py_long_from_longest): Remove
4073 defines.
4074 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4075 * python/py-type.c (convert_field, typy_get_sizeof): Use
4076 gdb_py_object_from_longest.
4077 * python/py-record-btrace.c (btpy_list_index): Use
4078 gdb_py_object_from_longest.
4079
37431074
TT
40802020-09-15 Tom Tromey <tromey@adacore.com>
4081
4082 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4083 * python/py-record.c (recpy_element_number): Use
4084 gdb_py_object_from_longest.
4085 (recpy_gap_number): Likewise.
4086
cbe25684
TT
40872020-09-15 Tom Tromey <tromey@adacore.com>
4088
4089 * top.c (ui::ui): Update.
4090 (highest_ui_num): Remove.
4091 * top.h (struct ui) <num>: Remove.
4092
db92ac45
TT
40932020-09-15 Tom Tromey <tromey@adacore.com>
4094
4095 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4096 * ui-style.c (ansi_regex_text): Now array.
4097 * rust-exp.y (number_regex_text): Now array.
4098 * linespec.c (linespec_quote_characters): Now array.
4099 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4100 Now arrays.
4101
d2b31b67
SM
41022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4103
4104 * debuginfod-support.c (debuginfod_client_deleter): New.
4105 (debuginfod_client_up): New.
4106 (debuginfod_init): Return debuginfod_client_up.
4107 (debuginfod_source_query): Adjust.
4108 (debuginfod_debuginfo_query): Adjust.
4109
3246bd8e
SM
41102020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4111
4112 * debuginfod-support.c (debuginfod_source_query): Use
4113 make_unique_xstrdup.
4114
10242f36
SM
41152020-09-14 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4118 with `type::instance_flags`.
4119
e1044e6a
MM
41202020-09-14 Michael Mullin <masmullin@gmail.com>
4121
4122 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4123 Remove baton parameter.
4124
04902b09
PA
41252020-09-14 Pedro Alves <pedro@palves.net>
4126
4127 * Makefile.in (SELFTESTS_SRCS): Add
4128 unittests/enum-flags-selftests.c.
4129 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4130 btrace_function_flags instead of enum btrace_function_flag.
4131 * compile/compile-c-types.c (convert_qualified): Use
4132 enum_flags::raw.
4133 * compile/compile-cplus-symbols.c (convert_one_symbol)
4134 (convert_symbol_bmsym):
4135 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4136 (compile_cplus_convert_struct_or_union_methods)
4137 (compile_cplus_instance::convert_qualified_base):
4138 * go-exp.y (parse_string_or_char): Add cast to int.
4139 * unittests/enum-flags-selftests.c: New file.
4140 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4141 type to btrace_thread_flags from btrace_thread_flag.
4142 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4143 local's type to btrace_thread_flags from btrace_thread_flag. Add
4144 cast in DEBUG call.
4145
69896a2c
PA
41462020-09-14 Pedro Alves <pedro@palves.net>
4147
4148 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4149 * gdbtypes.c (address_space_name_to_int): Rename to ...
4150 (address_space_name_to_type_instance_flags): ... this.
4151 (address_space_int_to_name): Rename to ...
4152 (address_space_type_instance_flags_to_name): ... this.
4153 * gdbtypes.h (address_space_name_to_int): Rename to ...
4154 (address_space_name_to_type_instance_flags): ... this.
4155 (address_space_int_to_name): Rename to ...
4156 (address_space_type_instance_flags_to_name): ... this.
4157 * type-stack.c (type_stack::insert): Adjust to rename.
4158 * type-stack.h (type_stack::insert): Likewise.
4159
314ad88d
PA
41602020-09-14 Pedro Alves <pedro@palves.net>
4161 Andrew Burgess <andrew.burgess@embecosm.com>
4162
4163 * avr-tdep.c (avr_address_class_type_flags): Return
4164 type_instance_flags.
4165 (avr_address_class_type_flags_to_name): Take a
4166 type_instance_flags.
4167 (avr_address_class_name_to_type_flags): Return bool and take a
4168 type_instance_flags.
4169 * d-lang.c (build_d_types): Use type::set_instance_flags.
4170 * ft32-tdep.c (ft32_address_class_type_flags): Return
4171 type_instance_flags.
4172 (ft32_address_class_type_flags_to_name): Take a
4173 type_instance_flags.
4174 (ft32_address_class_name_to_type_flags): Return bool and take a
4175 type_instance_flags.
4176 (ft32_gdbarch_init): Use type::set_instance_flags.
4177 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4178 * gdbarch.h, gdbarch.c: Regenerate.
4179 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4180 (address_class_name_to_type_flags): Use type_instance_flags and
4181 bool.
4182 * gdbtypes.c (address_space_name_to_int)
4183 (address_space_int_to_name, make_qualified_type): Use
4184 type_instance_flags.
4185 (make_qualified_type): Use type_instance_flags and
4186 type::set_instance_flags.
4187 (make_type_with_address_space, make_cv_type, make_vector_type)
4188 (check_typedef): Use type_instance_flags.
4189 (recursive_dump_type): Cast type_instance_flags to unsigned for
4190 printing.
4191 (copy_type_recursive): Use type::set_instance_flags.
4192 (gdbtypes_post_init): Use type::set_instance_flags.
4193 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4194 <m_instance_flags>: ... this.
4195 <instance_flags, set_instance_flags>: New methods.
4196 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4197 (SET_TYPE_INSTANCE_FLAGS): New.
4198 (address_space_name_to_int, address_space_int_to_name)
4199 (make_type_with_address_space): Pass flags using
4200 type_instance_flags instead of int.
4201 * stabsread.c (cleanup_undefined_types_noname): Use
4202 type::set_instance_flags.
4203 * s390-tdep.c (s390_address_class_type_flags): Return
4204 type_instance_flags.
4205 (s390_address_class_type_flags_to_name): Take a
4206 type_instance_flags.
4207 (s390_address_class_name_to_type_flags): Return bool and take a
4208 type_instance_flags.
4209 * type-stack.c (type_stack::follow_types): Use
4210 type_instance_flags.
4211 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4212
27087b7f
TT
42132020-09-14 Tom Tromey <tromey@adacore.com>
4214
4215 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4216 * x86-tdep.c (x86_is_thunk_register_name)
4217 (x86_in_indirect_branch_thunk): Update.
4218 * sparc64-tdep.c (sparc64_fpu_register_names)
4219 (sparc64_cp0_register_names, sparc64_register_names)
4220 (sparc64_pseudo_register_names): Now const.
4221 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4222 cp0_registers_num>: Now const.
4223 * sparc-tdep.c (sparc_core_register_names)
4224 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4225 (sparc32_pseudo_register_names): Now const.
4226 (validate_tdesc_registers): Update.
4227 * rust-lang.c (rust_extensions): Now const.
4228 * p-lang.c (p_extensions): Now const.
4229 * objc-lang.c (objc_extensions): Now const.
4230 * nto-tdep.c (nto_thread_state_str): Now const.
4231 * moxie-tdep.c (moxie_register_names): Now const.
4232 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4233 Now const.
4234 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4235 (mips_linux_reg_names): Now const.
4236 (mips_gdbarch_init): Update.
4237 * microblaze-tdep.c (microblaze_register_names): Now const.
4238 * m68k-tdep.c (m68k_register_names): Now const.
4239 * m32r-tdep.c (m32r_register_names): Now const.
4240 * ia64-tdep.c (ia64_register_names): Now const.
4241 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4242 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4243 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4244 ymm_avx512_register_names, pkeys_register_names>: Now const.
4245 * i386-tdep.c (i386_register_names, i386_zmm_names)
4246 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4247 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4248 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4249 * f-lang.c (f_extensions): Now const.
4250 * d-lang.c (d_extensions): Now const.
4251 * csky-tdep.c (csky_register_names): Now const.
4252 * charset.c (default_charset_names, charset_enum): Now const.
4253 (_initialize_charset): Update.
4254 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4255 const.
4256 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4257 (bsd_uthread_solib_loaded): Update.
4258 (bsd_uthread_state): Now const.
4259 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4260 (amd64_ymm_avx512_names, amd64_ymmh_names)
4261 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4262 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4263 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4264 (amd64_dword_names): Now const.
4265 * agent.c (can_use_agent_enum): Now const.
4266 * ada-tasks.c (task_states, long_task_states): Now const.
4267 * ada-lang.c (known_runtime_file_name_patterns)
4268 (known_auxiliary_function_name_patterns, attribute_names)
4269 (standard_exc, ada_extensions): Now const.
4270
89806626
SM
42712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4272
4273 * bcache.h (struct bcache) <bcache>: Remove constructor.
4274 <m_hash_function, m_compare_function>: Remove.
4275 <~bcache>: Make virtual.
4276 <compare>: Remove static method, introduce virtual method.
4277 <default_hash>: Remove.
4278 <hash>: New virtual method.
4279 * bcache.c (bcache::expand_hash_table): Update.
4280 (bcache::insert): Update.
4281 (bcache::hash): New.
4282 (bcache::compare): Update comment and parameter names.
4283 * gdbtypes.c (types_deeply_equal): Update.
4284 * psymtab.h (struct psymbol_bcache): New struct.
4285 (class psymtab_storage) <psymtab_storage>: Make default.
4286 <psymbol_cache>: Change type to psymbol_bcache.
4287 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4288 (psymbol_hash): Change to...
4289 (psymbol_bcache::hash): ... this.
4290 (psymbol_compare): Change to...
4291 (psymbol_bcache::compare): ... this.
4292
677c92fe
SM
42932020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4294
4295 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4296 checking for initial lwp.
4297
3eba3a01
TT
42982020-09-14 Tom Tromey <tromey@adacore.com>
4299
4300 * m68k-tdep.c (m68k_extract_return_value): Use
4301 pointer_result_regnum.
4302 (m68k_store_return_value): Likewise.
4303 (m68k_reg_struct_return_p): Handle vectors and arrays.
4304 (m68k_return_value): Handle arrays.
4305 (m68k_svr4_return_value): Fix single-element aggregate handling.
4306 Handle long double. Adjust for embedded ABI.
4307 (m68k_svr4_init_abi): Set pointer_result_regnum.
4308 (m68k_embedded_init_abi): New function.
4309 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4310 (m68k_osabi_sniffer): New function.
4311 (_initialize_m68k_tdep): Register osabi sniffer.
4312 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4313 member.
4314
33f4dd48
SM
43152020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4316
4317 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4318 with gdb::unique_xmalloc_ptr<char>.
4319
8400a90d
SM
43202020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4321
4322 * xml-support.h (xml_fetch_another): Change type to be a
4323 function_view.
4324 (xml_process_xincludes): Remove baton parameter.
4325 (xml_fetch_content_from_file): Change baton parameter to
4326 dirname.
4327 * xml-support.c (struct xinclude_parsing_data)
4328 <xinclude_parsing_data>: Remove baton parameter.
4329 <fetcher_baton>: Remove.
4330 (xinclude_start_include): Adjust.
4331 (xml_process_xincludes): Adjust.
4332 (xml_fetch_content_from_file): Replace baton parameter with
4333 dirname.
4334 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4335 (xml_init_syscalls_info): Use a lambda.
4336 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4337 (file_read_description_xml): Use a lambda.
4338 (fetch_available_features_from_target): Change baton parameter
4339 to target_ops.
4340 (target_read_description_xml): Use a lambda.
4341 (target_fetch_description_xml): Use a lambda.
4342 (string_read_description_xml): Update.
4343
04f5bab2
SM
43442020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4345
4346 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4347 uses with type::endianity_is_not_default.
4348
db558e34
SM
43492020-09-14 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * gdbtypes.h (struct type) <endianity_is_not_default,
4352 set_endianity_is_not_default>: New methods.
4353 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4354 type::endianity_is_not_default, change all write call sites to
4355 use type::set_endianity_is_not_default.
4356
22c4c60c
SM
43572020-09-14 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4360 uses with type::is_fixed_instance.
4361
9cdd0d12
SM
43622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * gdbtypes.h (struct type) <is_fixed_instance,
4365 set_is_fixed_instance>: New methods.
4366 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4367 write call sites to use type::set_is_fixed_instance.
4368
0becda7a
SM
43692020-09-14 Simon Marchi <simon.marchi@efficios.com>
4370
4371 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4372 uses with type::is_gnu_ifunc.
4373
03cc7249
SM
43742020-09-14 Simon Marchi <simon.marchi@efficios.com>
4375
4376 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4377 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4378 use type::set_is_gnu_ifunc.
4379
3f46044c
SM
43802020-09-14 Simon Marchi <simon.marchi@efficios.com>
4381
4382 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4383 uses with type::stub_is_supported.
4384
9baccff6
SM
43852020-09-14 Simon Marchi <simon.marchi@efficios.com>
4386
4387 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4388 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4389 use type::set_stub_is_supported.
4390
bd63c870
SM
43912020-09-14 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4394 uses with type::is_vector.
4395
2062087b
SM
43962020-09-14 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4399 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4400 use type::set_is_vector.
4401
a409645d
SM
44022020-09-14 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4405 uses with type::has_varargs.
4406
1d6286ed
SM
44072020-09-14 Simon Marchi <simon.marchi@efficios.com>
4408
4409 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4410 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4411 use type::set_has_varargs.
4412
7f9f399b
SM
44132020-09-14 Simon Marchi <simon.marchi@efficios.com>
4414
4415 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4416 uses with type::is_prototyped.
4417
27e69b7a
SM
44182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4419
4420 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4421 New methods.
4422 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4423 call sites to use type::set_is_prototyped.
4424
d2183968
SM
44252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4426
4427 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4428 uses with type::target_is_stub.
4429
8f53807e
SM
44302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4431
4432 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4433 New methods.
4434 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4435 sites to use type::set_target_is_stub.
4436
e46d3488
SM
44372020-09-14 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * gdbtypes.h (TYPE_STUB): Remove, replace all
4440 uses with type::is_stub.
4441
b4b73759
SM
44422020-09-14 Simon Marchi <simon.marchi@efficios.com>
4443
4444 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4445 (TYPE_STUB): Use type::is_stub, change all write call sites to
4446 use type::set_is_stub.
4447
20ce4123
SM
44482020-09-14 Simon Marchi <simon.marchi@efficios.com>
4449
4450 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4451 type::has_no_signedness.
4452
15152a54
SM
44532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4454
4455 * gdbtypes.h (struct type) <has_no_signedness,
4456 set_has_no_signedness>: New methods.
4457 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4458 call sites to use type::set_has_no_signedness.
4459
c6d940a9
SM
44602020-09-14 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4463 type::is_unsigned.
4464
653223d3
SM
44652020-09-14 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4468 methods.
4469 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4470 sites to use type::set_is_unsigned.
4471
55ea94da 44722020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4473 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4474
e851246a
SM
4475 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4476 pointer and stack frame offset when unwinding.
55ea94da 4477
6791b117
PA
44782020-09-13 Pedro Alves <pedro@palves.net>
4479
4480 * NEWS: Document "-break-insert --qualified".
4481 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4482
77f2120b
PA
44832020-09-13 Pedro Alves <pedro@palves.net>
4484
4485 * linespec.c (classify_mtype, compare_msyms): Delete.
4486 (search_minsyms_for_name): Remove classification logic. Instead
4487 filter out trampoline symbols if we also found an external
4488 function of the same name.
4489
ed6a896c
JB
44902020-09-13 Joel Brobecker <brobecker@adacore.com>
4491
4492 * NEWS: Create a new section for the next release branch.
4493 Rename the section of the current branch, now that it has
4494 been cut.
4495
32aea73e
JB
44962020-09-13 Joel Brobecker <brobecker@adacore.com>
4497
4498 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4499 * version.in: Bump version to 11.0.50.DATE-git.
4500
8087c3fa
JB
45012020-09-12 Joel Brobecker <brobecker@adacore.com>
4502
4503 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4504
2a67f09d
FW
45052020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4506 Felix Willgerodt <Felix.Willgerodt@intel.com>
4507
4508 * gdbarch.sh: Added bfloat16 type.
4509 * gdbarch.c: Regenerated.
4510 * gdbarch.h: Regenerated.
4511 * gdbtypes.c (floatformats_bfloat16): New struct.
4512 (gdbtypes_post_init): Add builtin_bfloat16.
4513 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4514 (floatformats_bfloat16): New struct.
4515 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4516 (i386_ymm_type): Add field "v16_bfloat16"
4517 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4518 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4519 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4520 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4521 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4522 * features/i386/64bit-avx512.c: Regenerated.
4523 * features/i386/64bit-sse.xml: Add bfloat16 type.
4524 * features/i386/64bit-sse.c: Regenerated.
4525
1347d111
FW
45262020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4527
4528 * i386-tdep.c (i386_zmm_type): Fix field names.
4529 (i386_ymm_type): Fix field names.
4530
7a4e8e7d
TBA
45312020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4532
4533 * breakpoint.c: Fix typo in the help message of the
4534 "set breakpoint condition-evaluation" command.
4535
cf4ac4be
KR
45362020-09-10 Kamil Rytarowski <n54@gmx.com>
4537
4538 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4539 * (nbsd_nat_target::pid_to_exec_file)
4540 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4541 (nbsd_nat_target::post_startup_inferior)
4542 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4543 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4544 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4545 * (nbsd_thread_lister): Remove.
4546
f404573e
KR
45472020-09-10 Kamil Rytarowski <n54@gmx.com>
4548
4549 * fork-inferior.c (startup_inferior): Avoid double free.
4550
1ccb2c17
KR
45512020-09-10 Kamil Rytarowski <n54@gmx.com>
4552
4553 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4554 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4555
feedfcc7
KR
45562020-09-10 Kamil Rytarowski <n54@gmx.com>
4557
4558 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4559 * netbsd-nat.c: Include <sys/ptrace.h>.
4560 * (netbsd_nat::enable_proc_events): Add.
4561
c489f8c6
KR
45622020-09-10 Kamil Rytarowski <n54@gmx.com>
4563
4564 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4565 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4566 (netbsd_nat::for_each_thread): Add.
4567 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4568 "gdbsupport/common-debug.h".
4569 * (netbsd_nat::netbsd_thread_lister)
4570 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4571 (netbsd_nat::for_each_thread): Add.
4572
330662f6
KR
45732020-09-10 Kamil Rytarowski <n54@gmx.com>
4574
4575 * netbsd-nat.h: Include <unistd.h>.
4576 * (netbsd_nat::pid_to_exec_file): Add.
4577 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4578 * (netbsd_nat::pid_to_exec_file) Add.
4579
70b67307
KR
45802020-09-10 Kamil Rytarowski <n54@gmx.com>
4581
4582 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4583
99cf6da6
KR
45842020-09-10 Kamil Rytarowski <n54@gmx.com>
4585
4586 * netbsd-nat.h: New file.
4587 * netbsd-nat.c: Likewise.
4588
1b788fb6
TT
45892020-09-09 Tom Tromey <tromey@adacore.com>
4590
4591 * ada-lang.c (remove_extra_symbols): Do not increment when
4592 removing an element
4593
03b0a45f
TT
45942020-09-08 Tom Tromey <tromey@adacore.com>
4595
4596 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4597
3cae4447
TT
45982020-09-08 Tom Tromey <tromey@adacore.com>
4599
4600 PR win32/25302:
4601 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4602 (gdb_bfd_init_data): New function.
4603 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4604
7f08fd51
TBA
46052020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4606
4607 * infrun.c (fetch_inferior_event): Use
4608 `switch_to_target_no_thread` to switch the target.
4609
3e6ff933
TT
46102020-09-06 Tom Tromey <tom@tromey.com>
4611
4612 * symfile.h (dwarf2_free_objfile): Don't declare.
4613
e56798df
AKS
46142020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4615
4616 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4617 to match 16 byte real/complex type generated by Flang compiler.
4618
8f5c6526
TV
46192020-09-03 Tom de Vries <tdevries@suse.de>
4620
4621 PR breakpoint/26546
4622 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4623 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4624
c5065df0
SM
46252020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4626
4627 * maint.c (index_digits): New function.
4628 (struct maint_print_section_data): Remove.
4629 (print_bfd_section_info): Remove print_data parameter, add arg
4630 and index_digits.
4631 (print_objfile_section_info): Likewise.
4632 (print_bfd_section_info_maybe_relocated): Likewise (plus
4633 objfile).
4634 (maintenance_info_sections): Adjust calls.
4635
02c6f3f1
TT
46362020-09-02 Tom Tromey <tromey@adacore.com>
4637
4638 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4639 for null pointers.
4640 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4641
ef5e5b0b
SM
46422020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4643
4644 * bcache.h (struct bcache) <insert>: Change type of `added` to
4645 pointer to bool.
4646 * bcache.c (bcache::insert): Likewise.
4647 * gdbtypes.c (check_types_worklist): Adjust.
4648 * psymtab.c (add_psymbol_to_bcache): Adjust.
4649
973695d6
KB
46502020-08-31 Kevin Buettner <kevinb@redhat.com>
4651
4652 * corelow.c (unordered_set): Include.
4653 (class core_target): Add field 'm_core_unavailable_mappings'.
4654 (core_target::build_file_mappings): Print only one warning
4655 per inaccessible file. Add unavailable/broken mappings
4656 to m_core_unavailable_mappings.
4657 (core_target::xfer_partial): Call...
4658 (core_target::xfer_memory_via_mappings): New method.
4659
264fc0e2
SM
46602020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4661
4662 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4663 type to bool.
4664
2de01bdb
SM
46652020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4666
4667 * dwarf2/read.c (struct field_info): Fix indentation.
4668
f3bd50f1
SM
46692020-08-31 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4672 ordering in comment.
4673 * frame.c (frame_id_eq): Fix indentation.
4674
22b9b4b0
SL
46752020-08-31 Scott Linder <scott@scottlinder.com>
4676 Simon Marchi <simon.marchi@efficios.com>
4677
4678 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4679 inline frame ids in outer frame.
4680
84154d16
SM
46812020-08-31 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4684 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4685 (outer_frame_id): Use FID_STACK_OUTER instead of
4686 FID_STACK_INVALID.
4687 (frame_id_p): Don't check for outer_frame_id.
4688
8efaf6b3
SM
46892020-08-31 Simon Marchi <simon.marchi@efficios.com>
4690
4691 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4692 regnum/frame in value. Call allocate_value_lazy.
4693 * frame.c (frame_unwind_register_value): Use
4694 val_print_not_saved.
4695
fe1fe7ea
SM
46962020-08-31 Simon Marchi <simon.marchi@efficios.com>
4697
4698 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4699
f7c7700d
PA
47002020-08-29 Pedro Alves <pedro@palves.net>
4701
4702 * progspace.c (print_program_space): Use all_inferiors. Switch to
4703 the inferior before calling target_pid_to_str.
4704
e0814aae
TT
47052020-08-28 Tom Tromey <tom@tromey.com>
4706
4707 * xcoffread.c (xcoff_end_psymtab): Update comment.
4708 * dbxread.c (dbx_end_psymtab): Update comment.
4709
626d2320
TV
47102020-08-28 Tom de Vries <tdevries@suse.de>
4711
4712 PR breakpoint/26544
4713 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4714 event_location.
4715 (create_breakpoint): Same.
4716 (base_breakpoint_decode_location): Same.
4717 (bkpt_create_sals_from_location): Same.
4718 (bkpt_decode_location): Same.
4719 (bkpt_probe_create_sals_from_location): Same.
4720 (bkpt_probe_decode_location): Same.
4721 (tracepoint_create_sals_from_location): Same.
4722 (tracepoint_decode_location): Same.
4723 (tracepoint_probe_decode_location): Same.
4724 (strace_marker_create_sals_from_location): Same.
4725 (strace_marker_decode_location): Same.
4726 (create_sals_from_location_default): Same.
4727 (decode_location_default): Same.
4728 * breakpoint.h (struct breakpoint_ops): Same.
4729 (create_breakpoint): Same.
4730 * linespec.h (decode_line_full): Same.
4731 * linespec.c (decode_line_full): Same. Throw error if
4732 result.size () == 0.
4733
df631783
PA
47342020-08-27 Pedro Alves <pedro@palves.net>
4735
4736 PR gdb/26524
4737 * breakpoint.c (until_break_fsm) <location_breakpoint,
4738 caller_breakpoint>: Delete fields.
4739 <breakpoints>: New field.
4740 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4741 two individual breakpoints.
4742 (until_break_fsm::should_stop): Loop over breakpoints in the
4743 breakpoint vector.
4744 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4745 vector.
4746 (until_break_command): Handle location expanding into multiple
4747 sals.
4748
b2b38aa4
PA
47492020-08-27 Pedro Alves <pedro@palves.net>
4750
4751 PR gdb/26523
4752 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4753 bp_until breakpoints user-specified locations. Update intro
4754 comment.
4755
b886559f
SM
47562020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4757
4758 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4759 gdb_bfd_sections): New.
4760 * maint.c (print_bfd_section_info): Change param type to
4761 maint_print_section_data.
4762 (print_objfile_section_info): Likewise.
4763 (print_bfd_section_info_maybe_relocated): Likewise.
4764 (maintenance_info_sections): Use gdb_bfd_sections.
4765
4c6e63bf
SV
47662020-08-25 Shahab Vahedi <shahab@synopsys.com>
4767
4768 * MAINTAINERS: Add ARC target and maintainer.
4769
8d7f0635
AK
47702020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4771
4772 * configure.tgt: ARC support for GNU/Linux.
4773 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4774 * arc-linux-tdep.c: New file.
4775 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4776 * arc-tdep.c (arc_write_pc): Use it.
4777
fdd8731b
SV
47782020-08-25 Shahab Vahedi <shahab@synopsys.com>
4779
4780 * arc-tdep.c (arc_check_for_hardware_loop): New.
4781 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4782
22459524
SV
47832020-08-25 Shahab Vahedi <shahab@synopsys.com>
4784
4785 * arc-tdep.h: Include "gdbarch.h".
4786
995d3a19
SV
47872020-08-25 Shahab Vahedi <shahab@synopsys.com>
4788
4789 * arch/arc.h
4790 (arc_gdbarch_features): New class to stir the selection of target XML.
4791 (arc_create_target_description): Use FEATURES to choose XML target.
4792 (arc_lookup_target_description): Use arc_create_target_description
4793 to create _new_ target descriptions or return the already created
4794 ones if the FEATURES is the same.
4795 * arch/arc.c: Implementation of prototypes described above.
4796 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4797 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4798 * arc-tdep.c (*_feature_name): Make feature names consistent.
4799 (arc_register_feature): A new struct to hold information about
4800 registers of a particular target/feature.
4801 (arc_check_tdesc_feature): Check if XML provides registers in
4802 compliance with ARC_REGISTER_FEATURE structs.
4803 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4804 (determine_*_reg_feature_set): Which feature name to look for.
4805 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4806 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4807 to expected ISA enums to be used in arc_gdbarch_features structs.
4808 * features/Makefile (FEATURE_XMLFILES): Add new files.
4809 * gdb/features/arc/v1-aux.c: New file.
4810 * gdb/features/arc/v1-aux.xml: Likewise.
4811 * gdb/features/arc/v1-core.c: Likewise.
4812 * gdb/features/arc/v1-core.xml: Likewise.
4813 * gdb/features/arc/v2-aux.c: Likewise.
4814 * gdb/features/arc/v2-aux.xml: Likewise.
4815 * gdb/features/arc/v2-core.c: Likewise.
4816 * gdb/features/arc/v2-core.xml: Likewise.
4817 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4818
3945d2d7
GM
48192020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4820 Andrew Burgess <andrew.burgess@embecosm.com>
4821
4822 PR m2/26372
fc5d6901 4823 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4824 an assert. Remove single element array indexing pattern as the
4825 MULTI_SUBSCRIPT support will handle this case too.
4826
2677f2d3
SM
48272020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4828
4829 * value.h (valprint_check_validity): Move declaration from
4830 here...
4831 * valprint.h (valprint_check_validity): ... to here.
4832
c426fddb
SM
48332020-08-24 Simon Marchi <simon.marchi@efficios.com>
4834
4835 * debug.h: New file.
4836 * debug.c (debug_prefixed_vprintf): New function.
4837 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4838 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4839
1eb8556f
SM
48402020-08-24 Simon Marchi <simon.marchi@efficios.com>
4841
4842 * infrun.h (infrun_debug_printf_1): New function declaration.
4843 (infrun_debug_printf): New macro.
4844 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4845 throughout.
4846 (infrun_debug_printf): New function.
4847 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4848 (handle_jit_event): Likewise.
4849
b8fff44e
MW
48502020-08-21 Mark Wielaard <mark@klomp.org>
4851
4852 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4853
d19c3068
SM
48542020-08-22 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * frame.c (enum class frame_id_status): New.
4857 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4858 (fprintf_frame): Update.
4859 (compute_frame_id): Set frame id status to "computing" on entry.
4860 Set it back to "not_computed" on failure and to "computed" on
4861 success.
4862 (get_frame_id): Assert the frame id is not being computed.
4863 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4864 (create_new_frame): Likewise.
4865 (frame_cleanup_after_sniffer): Update assert.
4866
b70e516e
SM
48672020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4868
4869 * regcache.c (pid_ptid_regcache_map): New type.
4870 (target_ptid_regcache_map): Remove.
4871 (target_pid_ptid_regcache_map): New type.
4872 (regcaches): Change type to target_pid_ptid_regcache_map.
4873 (get_thread_arch_aspace_regcache): Update.
4874 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4875 case.
4876 (regcaches_size): Update.
4877 (regcache_count): Update.
4878 (registers_changed_ptid_target_pid_test): New.
4879 (_initialize_regcache): Register new test.
4880
cdd9148a
SM
48812020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4882
4883 * regcache.c (regcache_count): New.
4884 (struct regcache_test_data): New.
4885 (regcache_test_data_up): New.
4886 (populate_regcaches_for_test): New.
4887 (regcaches_test): Remove.
4888 (get_thread_arch_aspace_regcache_test): New.
4889 (registers_changed_ptid_all_test): New.
4890 (registers_changed_ptid_target_test): New.
4891 (registers_changed_ptid_target_ptid_test): New.
4892 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4893 (_initialize_regcache): Register new tests.
4894
dd125343
SM
48952020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4896
4897 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4898 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4899 gdbarch and aspace parameter. Use current inferior's aspace.
4900 Validate regcache's arch value.
4901 (regcaches_test): Update.
4902
3ee93972
SM
49032020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4904
4905 * regcache.c (regcaches_test): Call registers_changed.
4906
33bf4c5c
TBA
49072020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4908
4909 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4910
c2fd7fae
AKS
49112020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4912
4913 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4914 to find the end of prologue for flang compiled binaries.
4915 * arm-tdep.c (arm_skip_prologue): Likewise.
4916 * i386-tdep.c (i386_skip_prologue): Likewise.
4917 * producer.c (producer_is_llvm): New function.
4918 (producer_parsing_tests): Added new tests for clang/flang.
4919 * producer.h (producer_is_llvm): New declaration.
4920
9327494e
SM
49212020-08-18 Simon Marchi <simon.marchi@efficios.com>
4922
4923 * linux-nat.c (linux_nat_debug_printf): New function.
4924 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4925
d138725a
AM
49262020-08-18 Aaron Merey <amerey@redhat.com>
4927
4928 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4929 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4930 (CLIBS): Add DEBUGINFOD_LIBS.
4931
f9b11e6b
ST
49322020-08-17 Sergei Trofimovich <siarheit@google.com>
4933
4934 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4935 'gdbarch_num_regs'.
4936
3ae7ab99
TT
49372020-08-17 Tom Tromey <tromey@adacore.com>
4938
4939 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4940 ada_get_decoded_value returns NULL.
4941
b017825f
TT
49422020-08-17 Tom Tromey <tromey@adacore.com>
4943
4944 * python/py-inferior.c (infpy_search_memory): Use
4945 gdb_py_object_from_ulongest.
4946 * python/py-infevents.c (create_inferior_call_event_object)
4947 (create_memory_changed_event_object): Use
4948 gdb_py_object_from_ulongest.
4949 * python/py-linetable.c (ltpy_entry_get_pc): Use
4950 gdb_py_object_from_ulongest.
4951
7635cf79
SM
49522020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4953
4954 * loc.c (class symbol_needs_eval_context): Fix indentation.
4955
f54be24b
SM
49562020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4957
4958 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4959 bool.
4960
53d5a2a5
TV
49612020-08-17 Tom de Vries <tdevries@suse.de>
4962
4963 PR gdb/26393
4964 * gdbtypes.c (dump_dynamic_prop): New function.
4965 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4966
547ce8f0
TV
49672020-08-15 Tom de Vries <tdevries@suse.de>
4968
4969 PR backtrace/26390
4970 * stack.c (print_frame_args): Temporarily set the selected
4971 frame to FRAME while printing the frame's arguments.
4972
6ea815e7
PFC
49732020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4974
4975 PR breakpoints/26385
4976 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4977 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4978
6e562fa3
PFC
49792020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4980
4981 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4982 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4983 and >= to check return value instead of == -1 and != -1.
4984
d369b608
SM
49852020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4986
4987 * utils.h (class gdb_argv) <as_array_view>: New method.
4988 * utils.c (gdb_argv_as_array_view_test): New.
4989 (_initialize_utils): Register selftest.
4990 * maint.c (maintenance_selftest): Use the new method.
4991
b31488a3
KR
49922020-08-13 Kamil Rytarowski <n54@gmx.com>
4993
4994 * target.h (supports_dumpcore, dumpcore): New
4995 function declarations.
4996 * target.c (supports_dumpcore, dumpcore): New
4997 functions.
4998 * target-delegates.c: Rebuild.
4999 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5000 and target_dumpcore ().
5001
002a3166
AM
50022020-08-13 Aaron Merey <amerey@redhat.com>
5003
5004 * debuginfod-support.c: Replace global variables with user_data.
5005
ece5bc8a
SM
50062020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5007
5008 * maint.c (maintenance_selftest): Split args and pass array_view
5009 to run_tests.
5010
6d8a0a5e
LM
50112020-08-12 Luis Machado <luis.machado@linaro.org>
5012
5013 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5014 type's length.
5015 Use %s and pulongest to print the length.
5016
7cf663a9
PA
50172020-08-12 Pedro Alves <palves@redhat.com>
5018
5019 * NEWS: Move "Multi-target debugging support" item to the
5020 "Changes since GDB 9" section.
5021
27c7b875
PA
50222020-08-12 Pedro Alves <palves@redhat.com>
5023
5024 PR gdb/26336
5025 * progspace.c (program_space::remove_objfile): Invalidate the
5026 frame cache.
5027
1796a2a1
TV
50282020-08-11 Tom de Vries <tdevries@suse.de>
5029
5030 * MAINTAINERS: Mark ms1 as deleted.
5031
f8e3fe0d
LM
50322020-08-10 Luis Machado <luis.machado@linaro.org>
5033
5034 PR gdb/26310
5035
5036 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5037 act accordingly.
5038 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5039 movz/str/stur/stp skipping behavior.
5040
cc308722
LM
50412020-08-10 Luis Machado <luis.machado@linaro.org>
5042
5043 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5044 struct user_sve_header instead of struct sve_context.
5045
041d9819
SM
50462020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5047
5048 * read.h (dwarf2_fetch_die_loc_sect_off,
5049 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5050 `void *` parameter with function_view.
5051 * read.c (dwarf2_fetch_die_loc_sect_off,
5052 dwarf2_fetch_die_loc_cu_off): Likewise.
5053 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5054 (per_cu_dwarf_call): Adjust.
5055 (get_frame_address_in_block_wrapper): Remove.
5056 (indirect_synthetic_pointer): Adjust.
5057 (get_ax_pc): Remove.
5058 (dwarf2_compile_expr_to_ax): Adjust.
5059
38f8aa06
TV
50602020-08-08 Tom de Vries <tdevries@suse.de>
5061
5062 PR build/26344
5063 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5064 constructor.
5065 * regcache.c (get_thread_arch_aspace_regcache): Same.
5066
a52b3ae2
TT
50672020-08-07 Tom Tromey <tromey@adacore.com>
5068
5069 * ravenscar-thread.c
5070 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5071 New method.
5072 (ravenscar_thread_target::wait): Check
5073 runtime_initialized.
5074 (ravenscar_thread_target::prepare_to_store)
5075 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5076 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5077 (ravenscar_thread_target::stopped_by_watchpoint)
5078 (ravenscar_thread_target::stopped_data_address)
5079 (ravenscar_thread_target::core_of_thread): Use
5080 scoped_restore_current_thread and
5081 set_base_thread_from_ravenscar_task.
5082
0e29517d
TT
50832020-08-07 Tom Tromey <tromey@adacore.com>
5084
5085 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5086
592f9bd7
TT
50872020-08-07 Tom Tromey <tromey@adacore.com>
5088
5089 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5090 update_inferior_ptid before update_thread_list.
5091 (temporarily_change_regcache_ptid): New class.
5092 (ravenscar_thread_target::fetch_registers)
5093 (ravenscar_thread_target::store_registers)
5094 (ravenscar_thread_target::prepare_to_store): Use base thread when
5095 forwarding operation.
5096
39e2018a
TT
50972020-08-07 Tom Tromey <tromey@adacore.com>
5098
5099 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5100 "is_pid" case.
5101
2080266b
TT
51022020-08-07 Tom Tromey <tromey@adacore.com>
5103
5104 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5105 New methods.
5106 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5107 first.
5108 (ravenscar_thread_target::add_thread): Rename from
5109 ravenscar_add_thread.
5110 (ravenscar_thread_target::update_thread_list): Use a lambda.
5111 (ravenscar_thread_target::xfer_partial): New method.
5112
78c02f21
TT
51132020-08-07 Tom Tromey <tromey@adacore.com>
5114
5115 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5116 gdb::function_view.
5117 (iterate_over_live_ada_tasks): Change type of argument.
5118 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5119 of argument.
5120
d5d833af
TT
51212020-08-07 Tom Tromey <tromey@adacore.com>
5122
5123 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5124 Remove.
5125 (ravenscar_thread_target::extra_thread_info): Remove.
5126 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5127 defer to target beneath for non-Ravenscar threads.
5128
a8ac85bb
TT
51292020-08-07 Tom Tromey <tromey@adacore.com>
5130
5131 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5132 get_base_thread_from_ravenscar_task>: Now methods.
5133 <m_cpu_map>: New member.
5134 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5135 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5136 (ravenscar_thread_target::task_is_currently_active): Update.
5137 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5138 Now a method.
5139 (ravenscar_thread_target::add_active_thread): Put initial thread
5140 into the m_cpu_map.
5141
550ab58d
TT
51422020-08-07 Tom Tromey <tromey@adacore.com>
5143
5144 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5145 event_ptid.
5146
e9546579
TT
51472020-08-07 Tom Tromey <tromey@adacore.com>
5148
5149 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5150 runtime_initialized.
5151
3d4470e5
TT
51522020-08-07 Tom Tromey <tromey@adacore.com>
5153
5154 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5155 add_active_thread.
5156 (ravenscar_thread_target::add_active_thread): Now public.
5157 (ravenscar_inferior_created): Call add_active_thread after pushing
5158 the target.
5159
888bdb2b
SM
51602020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5161
5162 * regcache.c (ptid_regcache_map): New type.
5163 (target_ptid_regcache_map): New type.
5164 (regcaches): Change type to target_ptid_regcache_map.
5165 (get_thread_arch_aspace_regcache): Update to regcaches' new
5166 type.
5167 (regcache_thread_ptid_changed): Likewise.
5168 (registers_changed_ptid): Likewise.
5169 (regcaches_size): Likewise.
5170 (regcaches_test): Update.
5171 (regcache_thread_ptid_changed): Update.
5172 * regcache.h (regcache_up): New type.
5173 * gdbsupport/ptid.h (hash_ptid): New struct.
5174
b161a60d
SM
51752020-08-07 Simon Marchi <simon.marchi@efficios.com>
5176
5177 * observable.h (thread_ptid_changed): Add parameter
5178 `process_stratum_target *`.
5179 * infrun.c (infrun_thread_ptid_changed): Add parameter
5180 `process_stratum_target *` and use it.
5181 (selftests): New namespace.
5182 (infrun_thread_ptid_changed): New function.
5183 (_initialize_infrun): Register selftest.
5184 * regcache.c (regcache_thread_ptid_changed): Add parameter
5185 `process_stratum_target *` and use it.
5186 (regcache_thread_ptid_changed): New function.
5187 (_initialize_regcache): Register selftest.
5188 * thread.c (thread_change_ptid): Pass target to
5189 thread_ptid_changed observable.
5190
d2854d8d
CT
51912020-08-06 Caroline Tice <cmtice@google.com>
5192
fe4c3d43
SM
5193 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5194 (struct dwp_sections): Update field comments. Add loclists and
5195 rnglists fields.
5196 (struct virtual_v2_dwo_sections): Rename struct to
5197 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5198 size & offset fields for loclists and rnglists.
5199 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5200 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5201 skipping dummy type units.
5202 (create_dwp_hash_table): Update the large comment above the function to
5203 discuss Version 5 DWP files as well, with references. Update all the
5204 version checks in the function to check for version 5 as well. Add new
5205 section at the end to create dwp hash table for version 5.
5206 (create_dwp_v2_section): Rename function to
5207 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5208 Add V5 to error message text.
5209 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5210 into calls to create_dwp_v2_or_v5_section.
5211 (create_dwo_unit_in_dwp_v5): New function.
5212 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5213 check for version2; add else clause to handle version 5.
5214 (open_and_init_dwo_file): Add code to check dwarf version & only call
5215 create_debug_types_hash_table (with sections.types) if version is not 5;
5216 else call create_debug_type_hash_table, with sections.info.
5217 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5218 version 5.
5219 (dwarf2_locate_v5_dwp_sections): New function.
5220 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5221 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5222
159ed7d9
SM
52232020-08-06 Simon Marchi <simon.marchi@efficios.com>
5224
5225 * regcache.h (class regcache): Remove friend
5226 registers_changed_ptid.
5227 <regcache_thread_ptid_changed>: Remove.
5228 <regcaches>: Remove.
5229 * regcache.c (regcache::regcaches): Rename to...
5230 (regcaches): ... this. Make static.
5231 (get_thread_arch_aspace_regcache): Update.
5232 (regcache::regcache_thread_ptid_changed): Rename to...
5233 (regcache_thread_ptid_changed): ... this. Update.
5234 (class regcache_access): Remove.
5235 (regcaches_test): Update.
5236 (_initialize_regcache): Update.
5237 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5238 <forward_list>.
5239
174981ae
SM
52402020-08-06 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * regcache.h (class regcache) <current_regcache>: Rename to...
5243 <regcaches>: ... this. Move doc here.
5244 * regcache.c (regcache::current_regcache) Rename to...
5245 (regcache::regcaches): ... this. Move doc to header.
5246 (get_thread_arch_aspace_regcache): Update.
5247 (regcache::regcache_thread_ptid_changed): Update.
5248 (registers_changed_ptid): Update.
5249 (class regcache_access) <current_regcache_size>: Rename to...
5250 <regcaches_size>: ... this.
5251 (current_regcache_test): Rename to...
5252 (regcaches_test): ... this.
5253 (_initialize_regcache): Update.
5254
ed908db6
VC
52552020-08-06 Victor Collod <vcollod@nvidia.com>
5256
5257 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5258
b5582ab7
KB
52592020-08-05 Kevin Buettner <kevinb@redhat.com>
5260
5261 * corelow.c (core_target::build_file_mappings): Don't output
5262 null pathname in warning.
5263
ea946b86
SM
52642020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5265
5266 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5267 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5268 gdb.dwarf2/dw2-single-line-discriminators.exp,
5269 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5270
57d02173
TT
52712020-08-05 Tom Tromey <tromey@adacore.com>
5272
5273 PR rust/26197:
5274 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5275 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5276 Fix off-by-one and type size errors in ordinary case.
5277
5555c86d
TV
52782020-08-05 Tom de Vries <tdevries@suse.de>
5279
5280 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5281 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5282
97916bfe
SM
52832020-08-04 Simon Marchi <simon.marchi@efficios.com>
5284
5285 * frame.h (frame_id_p): Return bool.
5286 (frame_id_artificial_p): Return bool.
5287 (frame_id_eq): Return bool.
5288 (has_stack_frames): Return bool.
5289 (get_selected_frame): Fix typo in comment.
5290 (get_frame_pc_if_available): Return bool.
5291 (get_frame_address_in_block_if_available): Return bool.
5292 (get_frame_func_if_available): Return bool.
5293 (read_frame_register_unsigned): Return bool.
5294 (get_frame_register_bytes): Return bool.
5295 (safe_frame_unwind_memory): Return bool.
5296 (deprecated_frame_register_read): Return bool.
5297 (frame_unwinder_is): Return bool.
5298 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5299 bool.
5300 <this_id::p>: Likewise.
5301 <prev_p>: Likewise.
5302 (frame_stash_add): Return bool.
5303 (get_frame_id): Use bool.
5304 (frame_id_build_special) Use bool.
5305 (frame_id_build_unavailable_stack): Use bool.
5306 (frame_id_build): Use bool.
5307 (frame_id_p): Return bool, use true/false instead of 1/0.
5308 (frame_id_artificial_p): Likewise.
5309 (frame_id_eq): Likewise.
5310 (frame_id_inner): Likewise.
5311 (get_frame_func_if_available): Likewise.
5312 (read_frame_register_unsigned): Likewise.
5313 (deprecated_frame_register_read): Likewise.
5314 (get_frame_register_bytes): Likewise.
5315 (has_stack_frames): Likewise.
5316 (inside_main_func): Likewise.
5317 (inside_entry_func): Likewise.
5318 (get_frame_pc_if_available): Likewise.
5319 (get_frame_address_in_block_if_available): Likewise.
5320 (frame_unwinder_is): Likewise.
5321 (safe_frame_unwind_memory): Likewise.
5322 (frame_unwind_arch): Likewise.
5323
fedfee88
SM
53242020-08-04 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5327 type to cached_copy_status.
5328 (fprintf_frame): Adjust.
5329 (get_frame_func_if_available): Adjust.
5330 (frame_cleanup_after_sniffer): Adjust.
5331
6cfa9b59
MW
53322020-08-04 Mark Wielaard <mark@klomp.org>
5333
5334 * MAINTAINERS (Write After Approval): Update email address.
5335
66d6346b
SM
53362020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5337
5338 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5339 dynamic_prop::const_val.
5340
8a6d5e35
SM
53412020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5342
5343 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5344 dynamic_prop::kind.
5345
51d6067d
SM
53462020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5347
5348 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5349
b26e2ae7
JM
53502020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5351
5352 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5353
39791af2
JM
53542020-08-04 Weimin Pan <weimin.pan@oracle.com>
5355 Jose E. Marchesi <jose.marchesi@oracle.com>
5356
5357 * configure.tgt: Add entry for bpf-*-*.
5358 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5359 (ALLDEPFILES): Add bpf-tdep.c.
5360 * bpf-tdep.c: New file.
5361 * MAINTAINERS: Add bpf target and maintainer.
5362 * NEWS: Mention the support for the new target.
5363
521894aa
TV
53642020-08-04 Tom de Vries <tdevries@suse.de>
5365
5366 PR symtab/23270
5367 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5368 Error.
5369
5d6356e9
JB
53702020-08-03 John Baldwin <jhb@FreeBSD.org>
5371
5372 * syscalls/freebsd.xml: Regenerate.
5373
0cf82b81
JB
53742020-08-03 John Baldwin <jhb@FreeBSD.org>
5375
5376 * syscalls/update-freebsd.sh: Fix usage and year range.
5377
8f34b746
TV
53782020-08-03 Tom de Vries <tdevries@suse.de>
5379
5380 PR symtab/26333
5381 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5382 DW_LNE_lo_user/DW_LNE_hi_user range.
5383
5e500d33
SM
53842020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5385
5386 PR ada/26318
5387 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5388 kind.
5389
78319c15
TBA
53902020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5391
5392 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5393
4c55e970
TBA
53942020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5395
5396 * breakpoint.c (set_breakpoint_condition): Update the condition
5397 expressions after checking that the input condition string parses
5398 successfully and does not contain junk at the end.
5399
1e620590
TBA
54002020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5401
5402 * breakpoint.c (set_breakpoint_condition): Update the
5403 condition string after parsing the new condition successfully.
5404
c8693053
RO
54052020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5406
5407 * proc-api.c (_STRUCTURED_PROC): Don't define.
5408 * proc-events.c: Likewise.
5409 * proc-flags.c: Likewise.
5410 * proc-why.c: Likewise.
5411 * procfs.c: Likewise.
5412
5413 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5414 * configure, config.in: Regenerate.
5415
5a99adb8
TV
54162020-07-30 Tom de Vries <tdevries@suse.de>
5417
5418 PR build/26320
5419 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5420 m_red/m_green/m_blue in a union.
5421
8ba83e91
TV
54222020-07-29 Tom de Vries <tdevries@suse.de>
5423
5424 PR tdep/26280
5425 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5426
f75a0693
AB
54272020-07-28 Tom Tromey <tromey@adacore.com>
5428
5429 PR symtab/26270:
5430 * symtab.h (find_pc_partial_function_sym): Declare.
5431 * cli/cli-cmds.c (disassemble_command): Use
5432 find_pc_partial_function_sym. Check asm_demangle.
5433 * blockframe.c (cache_pc_function_sym): New global.
5434 (cache_pc_function_name): Remove.
5435 (clear_pc_function_cache): Update.
5436 (find_pc_partial_function_sym): New function, from
5437 find_pc_partial_function.
5438 (find_pc_partial_function): Rewrite using
5439 find_pc_partial_function_sym.
5440
16f3242c
TT
54412020-07-28 Tom Tromey <tromey@adacore.com>
5442
5443 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5444 help. Add usage.
5445
4888741a
TT
54462020-07-28 Tom Tromey <tromey@adacore.com>
5447
5448 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5449 <DW_OP_GNU_variable_value>: Cast to address type.
5450
4d46f402
KR
54512020-07-28 Kamil Rytarowski <n54@gmx.com>
5452
5453 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5454 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5455 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5456 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5457 (nbsd_get_siginfo_type): New.
5458 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5459 (_initialize_nbsd_tdep): New.
5460
d70f978b
L
54612020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5462
5463 PR binutils/26301
5464 * configure: Regenerated.
5465
377170fa
L
54662020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5467
5468 PR binutils/26301
5469 * configure: Regenerated.
5470
43d5901d
AB
54712020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5472
5473 * python/py-frame.c: Remove 'user-regs.h' include.
5474 (frapy_read_register): Rewrite to make use of
5475 gdbpy_parse_register_id.
5476 * python/py-registers.c (gdbpy_parse_register_id): New function,
5477 moved here from python/py-unwind.c. Updated the return type, and
5478 also accepts register descriptor objects.
5479 * python/py-unwind.c: Remove 'user-regs.h' include.
5480 (pyuw_parse_register_id): Moved to python/py-registers.c.
5481 (unwind_infopy_add_saved_register): Update to use
5482 gdbpy_parse_register_id.
5483 (pending_framepy_read_register): Likewise.
5484 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5485
14fa8fb3
AB
54862020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5487
5488 * python/py-registers.c: Add 'user-regs.h' include.
5489 (register_descriptor_iter_find): New function.
5490 (register_descriptor_iterator_object_methods): New static global
5491 methods array.
5492 (register_descriptor_iterator_object_type): Add pointer to methods
5493 array.
5494
ddce1758
JB
54952020-07-27 John Baldwin <jhb@FreeBSD.org>
5496
5497 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5498 for all architectures on FreeBSD 11.3 and later.
5499
a4089f52
TT
55002020-07-27 Tom Tromey <tromey@adacore.com>
5501
5502 * gcore.h (load_corefile): Don't declare.
5503
95420d30
TV
55042020-07-27 Tom de Vries <tdevries@suse.de>
5505
5506 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5507 * config.in: Regenerate.
5508 * configure: Regenerate.
5509
05a6b8c2
EZ
55102020-07-26 Eli Zaretskii <eliz@gnu.org>
5511
5512 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5513 ws2tcpip.h. When checking whether socklen_t type is defined, use
5514 ws2tcpip.h if it is available and sys/socket.h isn't.
5515 * configure: Regenerate.
5516 * config.in: Regenerate.
5517
e79eb02f
AB
55182020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5519
5520 PR fortran/23051
5521 PR fortran/26139
5522 * valops.c (value_ind): Pass address to
5523 readjust_indirect_value_type.
5524 * value.c (readjust_indirect_value_type): Make parameter
5525 non-const, and add extra address parameter. Resolve original type
5526 before using it.
5527 * value.h (readjust_indirect_value_type): Update function
5528 signature and comment.
5529
876518dd
TV
55302020-07-25 Tom de Vries <tdevries@suse.de>
5531
5532 PR symtab/26243
5533 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5534 entries.
5535
f6720b1c
AM
55362020-07-24 Aaron Merey <amerey@redhat.com>
5537
5538 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5539 * configure: Rebuild.
5540
513487e1
KB
55412020-07-23 Kevin Buettner <kevinb@redhat.com>
5542
5543 PR corefiles/26294
5544 * corelow.c (_initialize_corelow): Add period to help text
5545 for "maintenance print core-file-backed-mappings".
5546
e7bc9db8
PA
55472020-07-23 Pedro Alves <pedro@palves.net>
5548
5549 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5550 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5551 meanwhile.
5552 * frame.c (frame_cache_generation, get_frame_cache_generation):
5553 New.
5554 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5555 (get_prev_frame_if_no_cycle): On exception, don't touch
5556 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5557 * frame.h (get_frame_cache_generation): Declare.
5558
90fcc466
TV
55592020-07-23 Tom de Vries <tdevries@suse.de>
5560
5561 PR tui/26282
5562 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5563 New default constructor.
5564
78344df7
AB
55652020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5566
5567 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5568 exclude non-statement entries.
5569
b089853a
KB
55702020-07-22 Kevin Buettner <kevinb@redhat.com>
5571
5572 * NEWS (New commands): Mention new command
5573 "maintenance print core-file-backed-mappings".
5574
09c2f5d4
KB
55752020-07-22 Kevin Buettner <kevinb@redhat.com>
5576
5577 * corelow.c (gdbcmd.h): Include.
5578 (core_target::info_proc_mappings): New method.
5579 (get_current_core_target): New function.
5580 (maintenance_print_core_file_backed_mappings): New function.
5581 (_initialize_corelow): Add core-file-backed-mappings to
5582 "maint print" commands.
5583
9c5ec5c2 55842020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5585
9c5ec5c2
KB
5586 * linux-tdep.c (dump_note_entry_p): New function.
5587 (linux_dump_mapping_p_ftype): New typedef.
5588 (linux_find_memory_regions_full): Add new parameter,
5589 should_dump_mapping_p.
5590 (linux_find_memory_regions): Adjust call to
5591 linux_find_memory_regions_full.
5592 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5593 call to linux_find_memory_regions_full.
5594
db082f59
KB
55952020-07-22 Kevin Buettner <kevinb@redhat.com>
5596
5597 * corelow.c (solist.h, unordered_map): Include.
5598 (class core_target): Add field m_core_file_mappings and
5599 method build_file_mappings.
5600 (core_target::core_target): Call build_file_mappings.
5601 (core_target::~core_target): Free memory associated with
5602 m_core_file_mappings.
5603 (core_target::build_file_mappings): New method.
5604 (core_target::xfer_partial): Use m_core_file_mappings
5605 for memory transfers.
5606 * linux-tdep.c (linux_read_core_file_mappings): New
5607 function.
5608 (linux_core_info_proc_mappings): Rewrite to use
5609 linux_read_core_file_mappings.
5610 (linux_init_abi): Register linux_read_core_file_mappings.
5611
7e183d27
KB
56122020-07-22 Kevin Buettner <kevinb@redhat.com>
5613
5614 * arch-utils.c (default_read_core_file_mappings): New function.
5615 * arch-utils.c (default_read_core_file_mappings): Declare.
5616 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5617 * gdbarch.h, gdbarch.c: Regenerate.
5618
2735d421
KB
56192020-07-22 Kevin Buettner <kevinb@redhat.com>
5620
5621 PR corefiles/25631
5622 * corelow.c (core_target:xfer_partial): Revise
5623 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5624 case after first checking the stratum beneath the core
5625 target.
5626 (has_all_memory): Return true.
5627 * target.c (raw_memory_xfer_partial): Revise comment
5628 regarding use of has_all_memory.
5629
e56cb451
KB
56302020-07-22 Kevin Buettner <kevinb@redhat.com>
5631
5632 * exec.h (section_table_xfer_memory): Revise declaration,
5633 replacing section name parameter with an optional callback
5634 predicate.
5635 * exec.c (section_table_xfer_memory): Likewise.
5636 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5637 of section_table_xfer_memory.
5638
32fa152e
TT
56392020-07-22 Tom Tromey <tromey@adacore.com>
5640
5641 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5642 lookup_symbol_search_name.
5643
a67a1c41
AB
56442020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5645
5646 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5647 redundant local variable.
5648 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5649 reference, not pointer, update code accordingly.
5650
a7b4ff4f
SM
56512020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5652 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5653
5654 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5655 * jit.c (jit_breakpoint_re_set_internal): Use the
5656 `skip_jit_symbol_lookup` field.
5657
2340e834
SM
56582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5659 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5660
5661 * jit.c (jit_read_descriptor): Define the descriptor address once,
5662 use twice.
5663 (jit_breakpoint_deleted): Move the declaration of the loop variable
5664 `iter` into the loop header.
5665 (jit_breakpoint_re_set_internal): Move the declaration of the local
5666 variable `objf_data` to the first point of definition.
5667 (jit_event_handler): Move the declaration of local variables
5668 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5669 Rename `objf` to `jited`.
5670
c1072906
SM
56712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5672
5673 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5674 Remove.
5675 * jit.c (get_jiter_objfile_data): Update.
5676
c8474dc3
TBA
56772020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5678 Simon Marchi <simon.marchi@polymtl.ca>
5679
5680 * jit.c (struct jit_program_space_data): Remove.
5681 (jit_program_space_key): Remove.
5682 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5683 stuff.
5684 (get_jit_program_space_data): Remove.
5685 (jit_breakpoint_deleted): Iterate on all of the program space's
5686 objfiles.
5687 (jit_inferior_init): Likewise.
5688 (jit_breakpoint_re_set_internal): Likewise. Also change return
5689 type to void.
5690 (jit_breakpoint_re_set): Pass current_program_space to
5691 jit_breakpoint_re_set_internal.
5692
77208eb7
SM
56932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5694
5695 * jit.h (struct jiter_objfile_data) <cached_code_address,
5696 jit_breakpoint>: Move to here from ...
5697 * jit.c (jit_program_space_data): ... here.
5698 (jiter_objfile_data::~jiter_objfile_data): Update.
5699 (jit_breakpoint_deleted): Update.
5700 (jit_breakpoint_re_set_internal): Update.
5701
8c1c720f
SM
57022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5703
5704 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5705 checks.
5706 (jit_read_descriptor): Remove NULL check.
5707 (jit_event_handler): Add an assertion.
5708
0e74a041
SM
57092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5710
5711 * jit.h (struct jit_objfile_data): Split into...
5712 (struct jiter_objfile_data): ... this ...
5713 (struct jited_objfile_data): ... and this.
5714 * objfiles.h (struct objfile) <jit_data>: Remove.
5715 <jiter_data, jited_data>: New fields.
5716 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5717 (jiter_objfile_data::~jiter_objfile_data): ... this.
5718 (get_jit_objfile_data): Rename to ...
5719 (get_jiter_objfile_data): ... this.
5720 (add_objfile_entry): Update.
5721 (jit_read_descriptor): Use get_jiter_objfile_data.
5722 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5723 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5724 (jit_inferior_exit_hook): Use objfile's jited_data field.
5725
238b5c9f
SM
57262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5727
5728 * jit.h: Forward-declare `struct minimal_symbol`.
5729 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5730 constructor, destructor, and an objfile* field.
5731 * jit.c (jit_objfile_data): Remove.
5732 (struct jit_objfile_data): Migrate from here to jit.h.
5733 (jit_objfile_data::~jit_objfile_data): New destructor
5734 implementation with code moved from free_objfile_data.
5735 (free_objfile_data): Delete.
5736 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5737 (jit_find_objf_with_entry_addr): Ditto.
5738 (jit_inferior_exit_hook): Ditto.
5739 (_initialize_jit): Remove the call to
5740 register_objfile_data_with_cleanup.
5741 * objfiles.h (struct objfile) <jit_data>: New field.
5742
fe053b9e
TBA
57432020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5744
5745 * jit.h: Forward-declare `struct objfile`.
5746 (jit_event_handler): Add a second parameter, the JITer objfile.
5747 * jit.c (jit_read_descriptor): Change the signature to take the
5748 JITer objfile as an argument instead of the jit_program_space_data.
5749 (jit_inferior_init): Update the call to jit_read_descriptor.
5750 (jit_event_handler): Use the new JITer objfile argument when calling
5751 jit_read_descriptor.
5752 * breakpoint.c (handle_jit_event): Update the call to
5753 jit_event_handler to pass the JITer objfile.
5754
4cec0c66
JB
57552020-07-21 John Baldwin <jhb@FreeBSD.org>
5756
5757 * gdbarch.c: Regenerate.
5758 * gdbarch.h: Regenerate.
5759 * gdbarch.sh (handle_segmentation_fault): Remove method.
5760 * infrun.c (handle_segmentation_fault): Remove.
5761 (print_signal_received_reason): Remove call to
5762 handle_segmentation_fault.
5763
0e42f66a
JB
57642020-07-21 John Baldwin <jhb@FreeBSD.org>
5765
5766 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5767 Rename to sparc64_linux_report_signal_info and add siggnal
5768 argument.
5769 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5770 instead of sparc64_linux_handle_segmentation_fault.
5771
77bdfeb2
JB
57722020-07-21 John Baldwin <jhb@FreeBSD.org>
5773
5774 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5775 i386_linux_report_signal_info instead of
5776 i386_linux_handle_segmentation_fault.
5777 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5778 to i386_linux_report_signal_info and add siggnal argument.
5779 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5780 of i386_linux_handle_segmentation_fault.
5781 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5782 to i386_linux_report_signal_info and add siggnal argument.
5783
ad97bfc5
JB
57842020-07-21 John Baldwin <jhb@FreeBSD.org>
5785
5786 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5787 hook if present.
5788
272bb05c
JB
57892020-07-21 John Baldwin <jhb@FreeBSD.org>
5790
5791 * gdbarch.c: Regenerate.
5792 * gdbarch.h: Regenerate.
5793 * gdbarch.sh (report_signal_info): New method.
5794 * infrun.c (print_signal_received_reason): Invoke gdbarch
5795 report_signal_info hook if present.
5796
baf8791e
AB
57972020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5798
5799 * python/py-registers.c : Add 'unordered_map' include.
5800 (gdbpy_new_reggroup): Renamed to...
5801 (gdbpy_get_reggroup): ...this. Update to only create register
5802 group descriptors when needed.
5803 (gdbpy_reggroup_iter_next): Update.
5804
f7306dac
AB
58052020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5806
5807 * python/py-registers.c (gdbpy_register_object_data): New static
5808 global.
5809 (gdbpy_register_object_data_init): New function.
5810 (gdbpy_new_register_descriptor): Renamed to...
5811 (gdbpy_get_register_descriptor): ...this, and update to reuse
5812 existing register descriptors where possible.
5813 (gdbpy_register_descriptor_iter_next): Update.
5814 (gdbpy_initialize_registers): Register new gdbarch data.
5815
05c309a8
SM
58162020-07-21 Simon Marchi <simon.marchi@efficios.com>
5817
5818 * linux-nat.c (stopped_pids): Make static.
5819
d1fd641e
SM
58202020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5821
5822 PR ada/26235
5823 * gdbtypes.c (ada_discrete_type_low_bound,
5824 ada_discrete_type_high_bound): Handle undefined bounds.
5825
1de14d77
KR
58262020-07-21 Kamil Rytarowski <n54@gmx.com>
5827
5828 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5829 declaration.
5830 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5831 function.
5832
ed810cc7
JB
58332020-07-20 John Baldwin <jhb@FreeBSD.org>
5834
5835 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5836 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5837 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5838 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5839 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5840 method.
5841
ae5369e7
LC
58422020-07-20 Ludovic Courtès <ludo@gnu.org>
5843
5844 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5845 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5846 which are deprecated in Guile 3.0.
5847 * configure.ac (try_guile_versions): Add "guile-3.0".
5848 * configure (try_guile_versions): Regenerate.
5849 * NEWS: Update entry.
5850
68cf161c
LC
58512020-07-20 Ludovic Courtès <ludo@gnu.org>
5852 Doug Evans <dje@google.com>
5853
5854 PR gdb/21104
5855 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5856 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5857 USING_GUILE_BEFORE_2_2.
5858 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5859 Change type to 'scm_t_port_type *'.
5860 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5861 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5862 parameter and honor it. Update callers.
5863 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5864 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5865 functions.
5866 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5867 USING_GUILE_BEFORE_2_2.
5868 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5869 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5870 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5871 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5872 and 'SCM_PORT_TYPE'.
5873 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5874 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5875 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5876 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5877 [!USING_GUILE_BEFORE_2_2]: New functions.
5878 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5879 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5880 'gdbscm_memory_port_read'.
5881 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5882 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5883 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5884 function.
5885 (ioscm_init_memory_port): Remove.
5886 (ioscm_init_memory_port_stream): New function
5887 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5888 function.
5889 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5890 Return scm_from_uint (0).
5891 (gdbscm_set_memory_port_read_buffer_size_x)
5892 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5893 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5894 Return scm_from_uint (0).
5895 (gdbscm_set_memory_port_write_buffer_size_x)
5896 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5897 * configure.ac (try_guile_versions): Add "guile-2.2".
5898 * configure: Regenerate.
5899 * NEWS: Add entry.
5900
aee91db3
TT
59012020-07-18 Tom Tromey <tom@tromey.com>
5902
5903 * linux-nat.c (linux_multi_process): Remove.
5904 (linux_nat_target::supports_multi_process): Return true.
5905
0e267416
AB
59062020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5907
5908 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5909 (riscv_lookup_target_description): Return pointer out of
5910 unique_ptr.
5911 * target-descriptions.c (allocate_target_description): Add
5912 comment.
5913 (target_desc_deleter::operator()): Likewise.
5914 * target-descriptions.h (struct target_desc_deleter): Moved to
5915 gdbsupport/tdesc.h.
5916 (target_desc_up): Likewise.
5917
f80c8ec4
TT
59182020-07-17 Tom Tromey <tromey@adacore.com>
5919
5920 * linux-nat.c (linux_nat_target::supports_non_stop)
5921 (linux_nat_target::always_non_stop_p): Use "true".
5922 (linux_nat_target::supports_disable_randomization): Use "true" and
5923 "false".
5924
d0ce17d8
CT
59252020-07-16 Caroline Tice <cmtice@google.com>
5926
5927 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5928 (RNGLIST_HEADER_SIZE64): New constant definition.
5929 (struct dwop_section_names): Add rnglists_dwo.
5930 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5931 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5932 (struct dwo_sections): Add rnglists field.
5933 (read_attribut_reprocess): Add tag parameter.
5934 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5935 (cu_debug_rnglists_section): New function (decl & definition).
5936 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5937 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5938 die whose range is being checked; get rnglist section from
5939 cu_debug_rnglists_section, to get from either objfile or dwo file as
5940 appropriate. Add cases for DW_RLE_base_addressx,
5941 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5942 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5943 test inside if-condition and updating complaint message.
5944 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5945 dwarf2_rnglists_process.
5946 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5947 dwarf2_ranges_process.
5948 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5949 need_ranges_base and update comment appropriately. Also pass die tag
5950 to dwarf2_ranges_read.
5951 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5952 need_ranges_base and update comment appropriately. Also pass die tag
5953 to dwarf2_ranges_process.
5954 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5955 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5956 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5957 need_ranges_base and update comment appropriately. Also pass die tag
5958 to read_attribute_reprocess and dwarf2_ranges_read.
5959 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5960 and update function comment appropriately.
5961 (read_loclist_index): Call read_loclists_rnglists_header instead of
5962 read_loclist_header.
5963 (read_rnglist_index): New function.
5964 (read_attribute_reprocess): Add tag parameter. Add code for
5965 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5966 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5967
3dcc261c
AB
59682020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5969
5970 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5971 being resolved.
5972
ccb9eba6
AB
59732020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5974
5975 * arch-utils.c (show_architecture): Update formatting of messages.
5976
cf88be68
SM
59772020-07-12 Simon Marchi <simon.marchi@efficios.com>
5978
5979 * gdbtypes.h (struct type) <bounds>: Handle array and string
5980 types.
5981 * ada-lang.c (assign_aggregate): Use type::bounds on
5982 array/string type.
5983 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5984 * c-varobj.c (c_number_of_children): Likewise.
5985 (c_describe_child): Likewise.
5986 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5987 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5988 (f_type_print_base): Likewise.
5989 * f-valprint.c (f77_array_offset_tbl): Likewise.
5990 (f77_get_upperbound): Likewise.
5991 (f77_print_array_1): Likewise.
5992 * guile/scm-type.c (gdbscm_type_range): Likewise.
5993 * m2-typeprint.c (m2_array): Likewise.
5994 (m2_is_long_set_of_type): Likewise.
5995 * m2-valprint.c (get_long_set_bounds): Likewise.
5996 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5997 * python/py-type.c (typy_range): Likewise.
5998 * rust-lang.c (rust_internal_print_type): Likewise.
5999 * type-stack.c (type_stack::follow_types): Likewise.
6000 * valarith.c (value_subscripted_rvalue): Likewise.
6001 * valops.c (value_cast): Likewise.
6002
509971ae
SM
60032020-07-12 Simon Marchi <simon.marchi@efficios.com>
6004
6005 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6006 callers to use the equivalent accessor methods.
6007
107406b7
SM
60082020-07-12 Simon Marchi <simon.marchi@efficios.com>
6009
6010 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6011 (struct type) <bit_stride>: New method.
6012 (TYPE_BIT_STRIDE): Remove.
6013 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6014
bb789949
SM
60152020-07-12 Simon Marchi <simon.marchi@efficios.com>
6016
6017 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6018 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6019 callers to use the equivalent accessor methods instead.
6020
39498edb
SM
60212020-07-12 Simon Marchi <simon.marchi@efficios.com>
6022
6023 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6024 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6025 callers to use the equivalent accessor methods instead.
6026
3b606f38
SM
60272020-07-12 Simon Marchi <simon.marchi@efficios.com>
6028
6029 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6030 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6031 to use dynamic_prop::kind.
6032
064d9cb9
SM
60332020-07-12 Simon Marchi <simon.marchi@efficios.com>
6034
6035 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6036 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6037 to get the bound property's kind and check against
6038 PROP_UNDEFINED.
6039
5537ddd0
SM
60402020-07-12 Simon Marchi <simon.marchi@efficios.com>
6041
6042 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6043 all callers to use type::range_bounds followed by
6044 dynamic_prop::{low,high}.
6045
8c2e4e06
SM
60462020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6047
6048 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6049 const_val, set_const_val, baton, set_locexpr, set_loclist,
6050 set_addr_offset, variant_parts, set_variant_parts,
6051 original_type, set_original_type>: New methods.
6052 <kind>: Rename to...
6053 <m_kind>: ... this. Update all users to use the new methods
6054 instead.
6055 <data>: Rename to...
6056 <m_data>: ... this. Update all users to use the new methods
6057 instead.
6058
7c6f2712
SM
60592020-07-12 Simon Marchi <simon.marchi@efficios.com>
6060
6061 * gdbtypes.c (get_discrete_bounds): Return failure if
6062 the range type's bounds are not both defined and constant
6063 values.
6064 (get_array_bounds): Update comment. Remove undefined bound check.
6065
599088e3
SM
60662020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6067
6068 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6069 the type::bounds method directly.
6070
c4dfcb36
SM
60712020-07-12 Simon Marchi <simon.marchi@efficios.com>
6072
6073 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6074 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6075 are used to set the range type's bounds to use set_bounds.
6076
0a278aa7
PW
60772020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6078
6079 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6080
cce20f10
PA
60812020-07-10 Pedro Alves <pedro@palves.net>
6082
6083 * gdbthread.h (inferior_ref): Define.
6084 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6085 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6086 * thread.c
6087 (scoped_restore_current_thread::restore):
6088 Adjust to gdb::ref_ptr.
6089 (scoped_restore_current_thread::~scoped_restore_current_thread):
6090 Remove manual decref handling.
6091 (scoped_restore_current_thread::scoped_restore_current_thread):
6092 Adjust to use
6093 inferior_ref::new_reference/thread_info_ref::new_reference.
6094 Incref the thread before calling get_frame_id instead of after.
6095 Let TARGET_CLOSE_ERROR propagate.
6096
6d7aa592
PA
60972020-07-10 Pedro Alves <pedro@palves.net>
6098
6099 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6100 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6101 NOT_AVAILABLE_ERROR.
6102 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6103 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6104
b3e3a4c1
SM
61052020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6106 Pedro Alves <pedro@palves.net>
6107
6108 PR gdb/26199
6109 * infrun.c (threads_are_resumed_pending_p): Delete.
6110 (do_target_wait): Remove threads_are_executing and
6111 threads_are_resumed_pending_p checks from the inferior_matches
6112 lambda. Update comments.
6113
d6cc5d98
PA
61142020-07-10 Pedro Alves <pedro@palves.net>
6115
6116 PR gdb/26199
6117 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6118 executing threads.
6119
7d3badc6
PA
61202020-07-10 Pedro Alves <pedro@palves.net>
6121
6122 PR gdb/26199
6123 * infrun.c (handle_no_resumed): Handle multiple targets.
6124
42bd97a6
PA
61252020-07-10 Pedro Alves <pedro@palves.net>
6126
6127 PR gdb/26199
6128 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6129 target_is_async_p.
6130
43667cc6
PA
61312020-07-10 Pedro Alves <pedro@palves.net>
6132
6133 PR gdb/26199
6134 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6135 threads, not all threads.
6136
96118d11
PA
61372020-07-10 Pedro Alves <pedro@palves.net>
6138
6139 PR gdb/26199
6140 * remote.c (remote_target::open_1): Pass remote target pointer as
6141 data to create_async_event_handler.
6142 (remote_async_inferior_event_handler): Mark async event handler
6143 before returning if the remote target still has either pending
6144 events or unacknowledged notifications.
6145
54904d81
JB
61462020-07-10 John Baldwin <jhb@FreeBSD.org>
6147
6148 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6149 declaration.
6150 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6151 function.
6152
f37e5866
JB
61532020-07-09 John Baldwin <jhb@FreeBSD.org>
6154
6155 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6156 inferior_ptid.
6157
fc238d4a
JB
61582020-07-09 John Baldwin <jhb@FreeBSD.org>
6159
6160 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6161 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6162 AT_FREEBSD_PS_STRINGS.
6163
6e2469ff
HD
61642020-07-08 Hannes Domani <ssbssa@yahoo.de>
6165
6166 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6167 of debugfile path on Windows.
6168
d1076c41
JB
61692020-07-08 John Baldwin <jhb@FreeBSD.org>
6170
6171 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6172 argument to 'data'.
6173
15f3b077
TT
61742020-07-08 Tom Tromey <tromey@adacore.com>
6175
6176 * ada-lang.c (ada_exception_message_1): Use read_memory.
6177
9fc501fd
AB
61782020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6179
6180 PR python/22748
6181 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6182 special handling for inline frames.
6183 * findvar.c (value_of_register_lazy): Skip inline frames when
6184 creating lazy register values.
6185 * frame.c (frame_id_computed_p): Delete definition.
6186 * frame.h (frame_id_computed_p): Delete declaration.
6187
64cb3757
AB
61882020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6189
6190 * NEWS: Mention additions to Python API.
6191 * python/py-arch.c (archpy_register_groups): New function.
6192 (arch_object_methods): Add 'register_groups' method.
6193 * python/py-registers.c (reggroup_iterator_object): New struct.
6194 (reggroup_object): New struct.
6195 (gdbpy_new_reggroup): New function.
6196 (gdbpy_reggroup_to_string): New function.
6197 (gdbpy_reggroup_name): New function.
6198 (gdbpy_reggroup_iter): New function.
6199 (gdbpy_reggroup_iter_next): New function.
6200 (gdbpy_new_reggroup_iterator): New function
6201 (gdbpy_initialize_registers): Register new types.
6202 (reggroup_iterator_object_type): Define new Python type.
6203 (gdbpy_reggroup_getset): New static global.
6204 (reggroup_object_type): Define new Python type.
6205 * python/python-internal.h
6206
0f767f94
AB
62072020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6208
6209 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6210 * python/py-arch.c (archpy_registers): New function.
6211 (arch_object_methods): Add 'registers' method.
6212 * python/py-registers.c: New file.
6213 * python/python-internal.h
6214 (gdbpy_new_register_descriptor_iterator): Declare.
6215 (gdbpy_initialize_registers): Declare.
6216 * python/python.c (do_start_initialization): Call
6217 gdbpy_initialize_registers.
6218 * NEWS: Mention additions to the Python API.
6219
87dbc774
AB
62202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6221
6222 * NEWS: Mention new Python API method.
6223 * python/py-unwind.c (pending_framepy_architecture): New function.
6224 (pending_frame_object_methods): Add architecture method.
6225
3bc98c0c
AB
62262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6227
6228 * gdbarch.c: Regenerate.
6229 * gdbarch.h: Regenerate.
6230 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6231 (gdbarch_data): Use internal_error for the case where
6232 deprecated_set_gdbarch_data was originally needed.
6233 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6234 and use passed in obstack.
6235 (libunwind_frame_set_descr): Should no longer get back NULL from
6236 gdbarch_data.
6237 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6238 type.
6239 * user-regs.c (user_regs_init): Update parameters, and use passed
6240 in obstack.
6241 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6242 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6243
d8cc8af6
TV
62442020-07-06 Tom de Vries <tdevries@suse.de>
6245
6246 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6247 End-Of-Sequence in lte_is_less_than.
6248 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6249 "gdb: Don't reorder line table entries too much when sorting".
6250
947f7597
TV
62512020-07-06 Tom de Vries <tdevries@suse.de>
6252
6253 PR tui/26205
6254 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6255
1e7c1b22
TV
62562020-07-05 Tom de Vries <tdevries@suse.de>
6257
6258 PR build/26187
6259 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6260 std::uncaught_exceptions instead of deprecated
6261 std::uncaught_exception.
6262
a36158ec
SM
62632020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * macroexp.h (macro_stringify): Return
6266 gdb::unique_xmalloc_ptr<char>.
6267 * macroexp.c (macro_stringify): Likewise.
6268 * macrotab.c (fixup_definition): Update.
6269
14d960c8
SM
62702020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6271
6272 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6273 (lex_one_token): Update.
6274 * macroexp.c (struct macro_buffer) <release>: Return
6275 gdb::unique_xmalloc_ptr<char>.
6276 (macro_stringify): Update.
6277 (macro_expand): Update.
6278 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6279 * macroexp.h (macro_expand_next): Likewise.
6280
211d5b1c
SM
62812020-07-02 Simon Marchi <simon.marchi@efficios.com>
6282
6283 * macroexp.h (macro_lookup_ftype): Remove.
6284 (macro_expand, macro_expand_once, macro_expand_next): Remove
6285 lookup function parameters, add scope parameter.
6286 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6287 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6288 * macroscope.h (standard_macro_lookup): Change parameter type
6289 to macro_scope.
6290 * macroscope.c (standard_macro_lookup): Likewise.
6291 * c-exp.y (lex_one_token): Update.
6292 * macrocmd.c (macro_expand_command): Likewise.
6293 (macro_expand_once_command): Likewise.
6294
b1a35af2
SM
62952020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * inf-loop.c (inferior_event_handler): Remove client_data param.
6298 * inf-loop.h (inferior_event_handler): Likewise.
6299 * infcmd.c (step_1): Adjust.
6300 * infrun.c (proceed): Adjust.
6301 (fetch_inferior_event): Remove client_data param.
6302 (infrun_async_inferior_event_handler): Adjust.
6303 * infrun.h (fetch_inferior_event): Remove `void *` param.
6304 * linux-nat.c (handle_target_event): Adjust.
6305 * record-btrace.c (record_btrace_handle_async_inferior_event):
6306 Adjust.
6307 * record-full.c (record_full_async_inferior_event_handler):
6308 Adjust.
6309 * remote.c (remote_async_inferior_event_handler): Adjust.
6310
1cdf9e33
TT
63112020-07-01 Tom Tromey <tom@tromey.com>
6312
6313 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6314 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6315
32c1e210
TT
63162020-07-01 Tom Tromey <tom@tromey.com>
6317
6318 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6319 tui_gen_win_info.
6320 (tui_win_info::make_window): Merge with
6321 tui_gen_win_info::make_window.
6322 (tui_win_info::make_visible): Move from tui_gen_win_info.
6323 * tui/tui-win.c (tui_win_info::max_width): Move from
6324 tui_gen_win_info.
6325 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6326 type.
6327 <window_factory>: Likewise.
6328 * tui/tui-layout.c (tui_win_info::resize): Move from
6329 tui_gen_win_info.
6330 (make_standard_window): Change return type.
6331 (get_locator_window, tui_get_window_by_name): Likewise.
6332 (tui_layout_window::apply): Remove a cast.
6333 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6334 (struct tui_win_info): Merge with tui_gen_win_info.
6335 (struct tui_gen_win_info): Remove.
6336
a30cb6da
TT
63372020-07-01 Tom Tromey <tom@tromey.com>
6338
6339 * tui/tui-stack.h (struct tui_locator_window): Derive from
6340 tui_win_info.
6341 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6342 <can_box>: New method.
6343
1eb2161f
TT
63442020-07-01 Tom Tromey <tom@tromey.com>
6345
6346 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6347
7134f2eb
TT
63482020-07-01 Tom Tromey <tom@tromey.com>
6349
6350 * tui/tui-regs.c (tui_data_window::display_registers_from)
6351 (tui_data_window::display_registers_from)
6352 (tui_data_window::first_data_item_displayed)
6353 (tui_data_window::delete_data_content_windows): Update.
6354 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6355 Remove.
6356 (tui_data_window::check_register_values): Update.
6357 (tui_data_item_window::rerender): Add parameters. Update.
6358 (tui_data_item_window::refresh_window): Remove.
6359 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6360 virtual.
6361 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6362 tui_gen_win_info.
6363 <refresh_window, max_height, min_height>: Remove.
6364 <rerender>: Add parameters.
6365 <x, y, visible>: New members.
6366 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6367 <m_item_width>: New member.
6368
22b7b041
TT
63692020-07-01 Tom Tromey <tom@tromey.com>
6370
6371 * tui/tui-regs.c (tui_data_window::show_register_group)
6372 (tui_data_window::check_register_values): Update.
6373 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6374 from item_no.
6375
c9753adb
TT
63762020-07-01 Tom Tromey <tom@tromey.com>
6377
6378 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6379 useless "if".
6380
9ab26b4a
TT
63812020-07-01 Tom Tromey <tom@tromey.com>
6382
6383 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6384 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6385
e555083f
TT
63862020-07-01 Tom Tromey <tom@tromey.com>
6387
6388 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6389 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6390 (struct tui_line_or_address): Move from tui-data.h.
6391 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6392 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6393 (tui_cmd_window, tui_source_window_base, tui_source_window)
6394 (tui_disasm_window): Don't declare.
6395 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6396 to tui-winsource.h.
6397 (SINGLE_KEY): Move to tui-stack.c.
6398
7a02bab7
TT
63992020-07-01 Tom Tromey <tom@tromey.com>
6400
6401 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6402 std::string.
6403 * tui/tui-regs.c (class tab_expansion_file): New.
6404 (tab_expansion_file::write): New method.
6405 (tui_register_format): Change return type. Use
6406 tab_expansion_file.
6407 (tui_get_register, tui_data_window::display_registers_from)
6408 (tui_data_item_window::rerender): Update.
6409 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6410 * tui/tui-io.c (tui_expand_tabs): Remove.
6411
ea68593b
TT
64122020-07-01 Tom Tromey <tom@tromey.com>
6413
6414 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6415
a8caed5d
FS
64162020-07-01 Fangrui Song <maskray@google.com>
6417
6418 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6419
9cdf9820
AKS
64202020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6421
6422 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6423 forms for DW_AT_associated and DW_AT_allocated attributes,
6424 which is already checked in function attr_to_dynamic_prop.
6425
a1520ad8
TT
64262020-06-30 Tom Tromey <tromey@adacore.com>
6427
6428 * dwarf2/read.c (quirk_rust_enum): Correctly call
6429 alloc_rust_variant for default-less enum.
6430
5ac58899
TT
64312020-06-30 Tom Tromey <tromey@adacore.com>
6432
6433 PR build/26183:
6434 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6435 gdb::to_string.
6436
19b187a9
SM
64372020-06-29 Simon Marchi <simon.marchi@efficios.com>
6438
6439 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6440 * gdbarch.h: Re-generate.
6441
cd4c4c07
TT
64422020-06-28 Tom Tromey <tom@tromey.com>
6443
6444 * command.h (cmd_types): Remove.
6445 (cmd_type): Don't declare.
6446 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6447 typedef.
6448 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6449 * cli/cli-decode.c (cmd_type): Remove.
6450
05779d57
PA
64512020-06-27 Pedro Alves <palves@redhat.com>
6452
6453 * fork-child.c (prefork_hook): Adjust.
6454 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6455 Delete.
6456 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6457 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6458 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6459 Remove declarations.
6460 (struct inferior) <set_tty, tty>: New methods.
6461 (struct inferior) <terminal>: Rename to ...
6462 (struct inferior) <m_terminal>: ... this and make private.
6463 * main.c (captured_main_1): Adjust.
6464 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6465 (mi_cmd_inferior_tty_show): Adjust.
6466 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6467 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6468
1776e3e5
NA
64692020-06-26 Nick Alcock <nick.alcock@oracle.com>
6470
6471 * configure.ac: Add --enable-libctf: handle --disable-static
6472 properly.
6473 * acinclude.m4: sinclude ../config/enable.m4.
6474 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6475 (LIBCTF): Substitute in.
6476 (CTF_DEPS): New, likewise.
6477 (CLIBS): libctf needs symbols from libbfd: move earlier.
6478 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6479 flags.
6480 * ctfread.c: Surround in ENABLE_LIBCTF.
6481 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6482 * configure: Regenerate.
6483 * config.in: Likewise.
6484
58373b80
SM
64852020-06-25 Simon Marchi <simon.marchi@efficios.com>
6486
6487 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6488
277474ee
SM
64892020-06-25 Simon Marchi <simon.marchi@efficios.com>
6490
6491 * inferior.h (struct inferior) <terminal>: Change type to
6492 gdb::unique_xmalloc_ptr<char>.
6493 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6494 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6495 field, adjust to unique pointer.
6496 (get_inferior_io_terminal): Adjust to unique pointer.
6497
6d74da72
AB
64982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6499
6500 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6501 registers, not just the known core set of registers.
6502
2e52d038
AB
65032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6504
6505 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6506 fflags, frm, and fcsr registers.
6507 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6508 restore groups.
6509 (riscv_tdesc_unknown_reg): New function.
6510 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6511 tdesc_use_registers.
6512 * riscv-tdep.h (struct gdbarch_tdep): Add
6513 unknown_csrs_first_regnum, unknown_csrs_count,
6514 duplicate_fflags_regnum, duplicate_frm_regnum, and
6515 duplicate_fcsr_regnum fields.
6516
be64fd07
AB
65172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6518
6519 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6520 callback, use the callback (when not null) to help number unknown
6521 registers.
6522 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6523 (tdesc_use_registers): Add extra parameter to declaration.
6524
3b9fce96
AB
65252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6526
6527 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6528 in the file.
6529 (class riscv_pending_register_alias): Likewise.
6530 (riscv_register_feature::register_info): Change 'required_p' field
6531 to 'required', and change its type. Add 'check' member function.
6532 (riscv_register_feature::register_info::check): Define new member
6533 function.
6534 (riscv_xreg_feature): Change initialisation of 'required' field.
6535 (riscv_freg_feature): Likewise.
6536 (riscv_virtual_feature): Likewise.
6537 (riscv_csr_feature): Likewise.
6538 (riscv_check_tdesc_feature): Take extra parameter, the csr
6539 tdesc_feature, rewrite the function to use the new
6540 riscv_register_feature::register_info::check function.
6541 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6542
865bad26
AB
65432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6544
6545 * features/Makefile: Remove all references to the deleted files
6546 below.
6547 * features/riscv/32bit-csr.c: Deleted.
6548 * features/riscv/32bit-csr.xml: Deleted.
6549 * features/riscv/64bit-csr.c: Deleted.
6550 * features/riscv/64bit-csr.xml: Deleted.
6551 * features/riscv/rebuild-csr-xml.sh: Deleted.
6552
ed69cbc8
AB
65532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6554
6555 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6556 whitespace error for declaration of names member variable.
6557 (struct riscv_register_feature): Add new prefer_first_name member
6558 variable, and fix whitespace error in declaration of registers.
6559 (riscv_xreg_feature): Initialize prefer_first_name field.
6560 (riscv_freg_feature): Likewise.
6561 (riscv_virtual_feature): Likewise.
6562 (riscv_csr_feature): Likewise.
6563 (riscv_register_name): Expand on comments. Remove register name
6564 modifications for CSR and virtual registers.
6565
4445e8f5
AB
65662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6567
6568 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6569 errors.
6570
767a879e
AB
65712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6572
6573 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6574 riscv-opc.h.
6575 (class riscv_pending_register_alias): New class.
6576 (riscv_check_tdesc_feature): Take vector of pending aliases and
6577 populate it as appropriate.
6578 (riscv_setup_register_aliases): Delete.
6579 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6580 to riscv_check_tdesc_feature in all cases. Use the vector to
6581 create the register aliases.
6582
bb6e55f3
RO
65832020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6584
6585 * sol2-tdep.c (sol2_static_transform_name): Remove.
6586 (sol2_init_abi): Don't register it.
6587 * gdbarch.sh (static_transform_name): Remove.
6588 * gdbarch.c, gdbarch.h: Regenerate.
6589
6590 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6591 gdbarch_static_transform_name.
6592 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6593 * stabsread.c (define_symbol) <'X'>: Remove.
6594 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6595 handling.
6596 <'V'>: Likewise.
6597 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6598 <'S'>: Remove call to gdbarch_static_transform_name.
6599
c6d36836
RO
66002020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6601
6602 * procfs.c (procfs_pre_trace): New function.
6603 (procfs_target::create_inferior): Pass it to fork_inferior.
6604
a7e6196b
RO
66052020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6606
6607 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6608 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6609 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6610 sol2-tdep.o, sparc-sol2-tdep.o.
6611 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6612 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6613 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6614 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6615
d412e696
RO
66162020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6617
6618 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6619 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6620 Call sol2_init_abi.
6621 Remove calls to set_gdbarch_skip_solib_resolver,
6622 set_gdbarch_core_pid_to_str.
6623 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6624 (i386_sol2_static_transform_name): Remove.
6625 (i386_sol2_init_abi): Call sol2_init_abi.
6626 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6627 set_gdbarch_static_transform_name,
6628 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6629 Use sol2_sigtramp_p.
6630 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6631 (sol2_sigtramp_p): New function.
6632 (sol2_static_transform_name): New function.
6633 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6634 (sol2_init_abi): New function.
6635 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6636 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6637 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6638 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6639 (sparc_sol2_static_transform_name): Remove.
6640 (sparc32_sol2_init_abi): Call sol2_init_abi.
6641 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6642 set_gdbarch_static_transform_name,
6643 set_gdbarch_skip_solib_resolver,
6644 set_gdbarch_core_pid_to_str.
6645 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6646 (sparc_sol2_static_transform_name): Remove
6647 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6648 call sol2_sigtramp_p.
6649 (sparc64_sol2_init_abi): Call sol2_init_abi.
6650 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6651 set_gdbarch_static_transform_name,
6652 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6653
a8654e7d
PW
66542020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6655
6656 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6657 * exec.c (validate_exec_file): If from_tty, set both
6658 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6659 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6660 and from_tty, unconditionally ask a confirmation.
6661
caa7fd04
AB
66622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6663
6664 * target-descriptions.c (tdesc_architecture_name): Protect against
6665 NULL pointer dereference.
6666 (maint_print_xml_tdesc_cmd): New function.
6667 (_initialize_target_descriptions): Register new 'maint print
6668 xml-tdesc' command and give it the filename completer.
6669 * NEWS: Mention new 'maint print xml-tdesc' command.
6670
fbf42f4e
AB
66712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6672
6673 * target-descriptions.c (class tdesc_compatible_info): New class.
6674 (struct target_desc): Change type of compatible vector.
6675 (tdesc_compatible_p): Update for change in type of
6676 target_desc::compatible.
6677 (tdesc_compatible_info_list): New function.
6678 (tdesc_compatible_info_arch_name): New function.
6679 (tdesc_add_compatible): Update for change in type of
6680 target_desc::compatible.
6681 (print_c_tdesc::visit_pre): Likewise.
6682
20821f4e
AB
66832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6684
6685 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6686 whitespace to underscore.
6687 (maint_print_c_tdesc_cmd): Use fake filename for target
6688 descriptions that came from the target.
6689 (_initialize_target_descriptions): Add filename command completion
6690 for 'maint print c-tdesc'.
6691
1fb5ee62
SM
66922020-06-23 Simon Marchi <simon.marchi@efficios.com>
6693
6694 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6695 lines.
6696
fc3ecb3e
SM
66972020-06-23 Simon Marchi <simon.marchi@efficios.com>
6698
6699 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6700 lines.
6701 (dwarf2_find_location_expression): Likewise.
6702 (call_site_parameter_matches): Likewise.
6703 (dwarf2_compile_expr_to_ax): Likewise.
6704 (disassemble_dwarf_expression): Likewise.
6705 (loclist_describe_location): Likewise.
6706
236ef034
PA
67072020-06-23 Pedro Alves <palves@redhat.com>
6708
6709 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6710 progspace-and-thread.h. Include scoped-mock-context.h instead.
6711 (register_to_value_test): Use scoped_mock_context.
6712 * regcache.c: Include "scoped-mock-context.h".
6713 (cooked_read_test): Don't error out if a target is already pushed.
6714 Use scoped_mock_context. Adjust.
6715 * scoped-mock-context.h: New file.
6716
39e7ecca
AB
67172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6720 initializer.
6721 (ada_language::is_string_type_p): New member function.
6722 * c-lang.c (c_language_data): Delete la_is_string_type_p
6723 initializer.
6724 (cplus_language_data): Likewise.
6725 (asm_language_data): Likewise.
6726 (minimal_language_data): Likewise.
6727 * d-lang.c (d_language_data): Likewise.
6728 * f-lang.c (f_is_string_type_p): Delete function, implementation
6729 moved to f_language::is_string_type_p.
6730 (f_language_data): Delete la_is_string_type_p initializer.
6731 (f_language::is_string_type_p): New member function,
6732 implementation from f_is_string_type_p.
6733 * go-lang.c (go_is_string_type_p): Delete function, implementation
6734 moved to go_language::is_string_type_p.
6735 (go_language_data): Delete la_is_string_type_p initializer.
6736 (go_language::is_string_type_p): New member function,
6737 implementation from go_is_string_type_p.
6738 * language.c (language_defn::is_string_type_p): Define new member
6739 function.
6740 (default_is_string_type_p): Make static, add comment copied from
6741 header file.
6742 (unknown_language_data): Delete la_is_string_type_p initializer.
6743 (unknown_language::is_string_type_p): New member function.
6744 (auto_language_data): Delete la_is_string_type_p initializer.
6745 (auto_language::is_string_type_p): New member function.
6746 * language.h (language_data): Delete la_is_string_type_p field.
6747 (language_defn::is_string_type_p): Declare new function.
6748 (default_is_string_type_p): Delete desclaration, move comment to
6749 definition.
6750 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6751 moved to m2_language::is_string_type_p.
6752 (m2_language_data): Delete la_is_string_type_p initializer.
6753 (m2_language::is_string_type_p): New member function,
6754 implementation from m2_is_string_type_p.
6755 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6756 initializer.
6757 * opencl-lang.c (opencl_language_data): Likewise.
6758 * p-lang.c (pascal_is_string_type_p): Delete function,
6759 implementation moved to pascal_language::is_string_type_p.
6760 (pascal_language_data): Delete la_is_string_type_p initializer.
6761 (pascal_language::is_string_type_p): New member function,
6762 implementation from pascal_is_string_type_p.
6763 * rust-lang.c (rust_is_string_type_p): Delete function,
6764 implementation moved to rust_language::is_string_type_p.
6765 (rust_language_data): Delete la_is_string_type_p initializer.
6766 (rust_language::is_string_type_p): New member function,
6767 implementation from rust_is_string_type_p.
6768 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6769 is_string_type_p.
6770
4ffc13fb
AB
67712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6772
6773 * ada-lang.c (ada_language_data): Delete la_print_typedef
6774 initializer.
6775 (ada_language::print_typedef): New member function.
6776 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6777 (cplus_language_data): Likewise.
6778 (asm_language_data): Likewise.
6779 (minimal_language_data): Likewise.
6780 * d-lang.c (d_language_data): Likewise.
6781 * f-lang.c (f_language_data): Likewise.
6782 (f_language::print_typedef): New member function.
6783 * go-lang.c (go_language_data): Delete la_print_typedef
6784 initializer.
6785 * language.c (language_defn::print_typedef): Define member
6786 function.
6787 (unknown_language_data): Delete la_print_typedef initializer.
6788 (unknown_language::print_typedef): New member function.
6789 (auto_language_data): Delete la_print_typedef initializer.
6790 (auto_language::print_typedef): New member function.
6791 * language.h (language_data): Delete la_print_typedef field.
6792 (language_defn::print_typedef): Declare new member function.
6793 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6794 (default_print_typedef): Delete declaration.
6795 * m2-lang.c (m2_language_data): Delete la_print_typedef
6796 initializer.
6797 (m2_language::print_typedef): New member function.
6798 * objc-lang.c (objc_language_data): Delete la_print_typedef
6799 initializer.
6800 * opencl-lang.c (opencl_language_data): Likewise.
6801 * p-lang.c (pascal_language_data): Likewise.
6802 (pascal_language::print_typedef): New member function.
6803 * rust-lang.c (rust_print_typedef): Delete function,
6804 implementation moved to rust_language::print_typedef.
6805 (rust_language): Delete la_print_typedef initializer.
6806 (rust_language::print_typedef): New member function,
6807 implementation from rust_print_typedef.
6808 * typeprint.c (default_print_typedef): Delete.
6809
d711ee67
AB
68102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6811
6812 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6813 (ada_language::printstr): New member function.
6814 * c-lang.c (c_language_data): Delete la_printstr initializer.
6815 (cplus_language_data): Likewise.
6816 (asm_language_data): Likewise.
6817 (minimal_language_data): Likewise.
6818 * d-lang.c (d_language_data): Likewise.
6819 * f-lang.c (f_printstr): Rename to f_language::printstr.
6820 (f_language_data): Delete la_printstr initializer.
6821 (f_language::printstr): New member function, implementation from
6822 f_printstr.
6823 * go-lang.c (go_language_data): Delete la_printstr initializer.
6824 * language.c (language_defn::printstr): Define new member
6825 function.
6826 (unk_lang_printstr): Delete.
6827 (unknown_language_data): Delete la_printstr initializer.
6828 (unknown_language::printstr): New member function.
6829 (auto_language_data): Delete la_printstr initializer.
6830 (auto_language::printstr): New member function.
6831 * language.h (language_data): Delete la_printstr field.
6832 (language_defn::printstr): Declare new member function.
6833 (LA_PRINT_STRING): Update call to printstr.
6834 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6835 (m2_language_data): Delete la_printstr initializer.
6836 (m2_language::printstr): New member function, implementation from
6837 m2_printstr.
6838 * objc-lang.c (objc_language_data): Delete la_printstr
6839 initializer.
6840 * opencl-lang.c (opencl_language_data): Likewise.
6841 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6842 (pascal_language_data): Delete la_printstr initializer.
6843 (pascal_language::printstr): New member function, implementation
6844 from pascal_printstr.
6845 * p-lang.h (pascal_printstr): Delete declaration.
6846 * rust-lang.c (rust_printstr): Update header comment.
6847 (rust_language_data): Delete la_printstr initializer.
6848 (rust_language::printstr): New member function.
6849
52b50f2c
AB
68502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6851
6852 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6853 (ada_language::printchar): New member function.
6854 * c-lang.c (c_language_data): Delete la_printchar initializer.
6855 (cplus_language_data): Likewise.
6856 (asm_language_data): Likewise.
6857 (minimal_language_data): Likewise.
6858 * d-lang.c (d_language_data): Likewise.
6859 * f-lang.c (f_printchar): Rename to f_language::printchar.
6860 (f_language_data): Delete la_printchar initializer.
6861 (f_language::printchar): New member function, implementation from
6862 f_printchar.
6863 * go-lang.c (go_language_data): Delete la_printchar initializer.
6864 * language.c (unk_lang_printchar): Delete.
6865 (language_defn::printchar): Define new member function.
6866 (unknown_language_data): Delete la_printchar initializer.
6867 (unknown_language::printchar): New member function.
6868 (auto_language_data): Delete la_printchar initializer.
6869 (auto_language::printchar): New member function.
6870 * language.h (language_data): Delete la_printchar field.
6871 (language_defn::printchar): Declare new member function.
6872 (LA_PRINT_CHAR): Update call to printchar.
6873 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6874 (m2_language::printchar): New member function.
6875 * objc-lang.c (objc_language_data): Delete la_printchar
6876 initializer.
6877 * opencl-lang.c (opencl_language_data): Likewise.
6878 * p-lang.c (pascal_language_data): Delete la_printchar
6879 initializer.
6880 (pascal_language::printchar): New member function.
6881 * rust-lang.c (rust_printchar): Rename to
6882 rust_language::printchar.
6883 (rust_language_data): Delete la_printchar initializer.
6884 (rust_language::printchar): New member function, implementation
6885 from rust_printchar.
6886
ec8cec5b
AB
68872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6888
6889 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6890 (ada_language_data): Delete la_emitchar initializer.
6891 (ada_language::emitchar): New member function, implementation from
6892 emit_char.
6893 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6894 (cplus_language_data): Likewise.
6895 (asm_language_data): Likewise.
6896 (minimal_language_data): Likewise.
6897 * d-lang.c (d_language_data): Likewise.
6898 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6899 (f_language_data): Delete la_emitchar initializer.
6900 (f_language::emitchar): New member function, implementation from
6901 f_emit_char.
6902 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6903 * language.c (unk_lang_emit_char): Delete.
6904 (language_defn::emitchar): New member function definition.
6905 (unknown_language_data): Delete la_emitchar initializer.
6906 (unknown_language::emitchar): New member function.
6907 (auto_language_data): Delete la_emitchar initializer.
6908 (auto_language::emitchar): New member function.
6909 * language.h (language_data): Delete la_emitchar field.
6910 (language_defn::emitchar): New member field declaration.
6911 (LA_EMIT_CHAR): Update call to emitchar.
6912 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6913 (m2_language_data): Delete la_emitchar initializer.
6914 (m2_language::emitchar): New member function, implementation from
6915 m2_emit_char.
6916 * objc-lang.c (objc_language_data): Delete la_emitchar
6917 initializer.
6918 * opencl-lang.c (opencl_language_data): Likewise.
6919 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6920 (pascal_language_data): Delete la_emitchar initializer.
6921 (pascal_language::emitchar): New member function, implementation
6922 from pascal_emit_char.
6923 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6924 (rust_language_data): Delete la_emitchar initializer.
6925 (rust_language::emitchar): New member function, implementation
6926 from rust_emitchar.
6927
1bf9c363
AB
69282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6929
6930 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6931 (ada_language_data): Delete la_post_parser initializer.
6932 (ada_language::post_parser): New member function.
6933 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6934 (cplus_language_data): Likewise.
6935 (asm_language_data): Likewise.
6936 (minimal_language_data): Likewise.
6937 * d-lang.c (d_language_data): Likewise.
6938 * f-lang.c (f_language_data): Likewise.
6939 * go-lang.c (go_language_data): Likewise.
6940 * language.c (unknown_language_data): Likewise.
6941 (auto_language_data): Likewise.
6942 * language.h (language_data): Delete la_post_parser field.
6943 (language_defn::post_parser): New member function.
6944 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6945 * objc-lang.c (objc_language_data): Likewise.
6946 * opencl-lang.c (opencl_language_data): Likewise.
6947 * p-lang.c (pascal_language_data): Likewise.
6948 * parse.c (parse_exp_in_context): Update call to post_parser.
6949 (null_post_parser): Delete definition.
6950 * parser-defs.h (null_post_parser): Delete declaration.
6951 * rust-lang.c (rust_language_data): Delete la_post_parser
6952 initializer.
6953
87afa652
AB
69542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6955
6956 * ada-lang.c (parse): Rename to ada_language::parser.
6957 (ada_language_data): Delete la_parser initializer.
6958 (ada_language::parser): New member function, implementation from
6959 parse.
6960 * c-lang.c (c_language_data): Delete la_parser initializer.
6961 (cplus_language_data): Likewise.
6962 (asm_language_data): Likewise.
6963 (minimal_language_data): Likewise.
6964 * d-lang.c (d_language_data): Likewise.
6965 (d_language::parser): New member function.
6966 * f-lang.c (f_language_data): Delete la_parser initializer.
6967 (f_language::parser): New member function.
6968 * go-lang.c (go_language_data): Delete la_parser initializer.
6969 (go_language::parser): New member function.
6970 * language.c (unk_lang_parser): Delete.
6971 (language_defn::parser): Define new member function.
6972 (unknown_language_data): Delete la_parser initializer.
6973 (unknown_language::parser): New member function.
6974 (auto_language_data): Delete la_parser initializer.
6975 (auto_language::parser): New member function.
6976 * language.h (language_data): Delete la_parser field.
6977 (language_defn::parser): Declare new member function.
6978 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6979 (m2_language::parser): New member function.
6980 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6981 * opencl-lang.c (opencl_language_data): Likewise.
6982 * p-lang.c (pascal_language_data): Likewise.
6983 (pascal_language::parser): New member function.
6984 * parse.c (parse_exp_in_context): Update call to parser.
6985 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6986 (rust_language::parser): New member function.
6987
37825800
AB
69882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6989
6990 * top.c (print_gdb_configuration): Print --with-python-libdir
6991 configuration value.
6992
5b860c93
PW
69932020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6994
6995 * NEWS: Mention change to the alias command.
6996
cf00cd6f
PW
69972020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6998
6999 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7000 (alias_command_completer)
7001 (make_alias_options_def_group): New functions.
7002 (alias_opts, alias_option_defs): New struct and array.
7003 (alias_usage_error): Update usage.
7004 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7005 Use option framework.
7006 (_initialize_cli_cmds): Update alias command help.
7007 Update aliases command help.
7008 (show_user):
7009 Add NULL for new default_args lookup_cmd argument.
7010 (valid_command_p): Rename to validate_aliased_command.
7011 Add NULL for new default_args lookup_cmd argument. Verify that the
7012 aliased_command has no default args.
7013 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7014 (lookup_cmd_1, lookup_cmd): New argument default_args.
7015 (add_alias_cmd):
7016 Add NULL for new default_args lookup_cmd argument.
7017 (print_help_for_command): Show default args under the layout
7018 alias some_alias = some_aliased_cmd some_alias_default_arg.
7019 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7020 xfree default_args in destructor.
7021 * cli/cli-script.c (process_next_line, do_define_command):
7022 Add NULL for new default_args lookup_cmd argument.
7023 * command.h: Declare new default_args argument in lookup_cmd
7024 and lookup_cmd_1.
7025 * completer.c (complete_line_internal_1):
7026 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7027 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7028 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7029 Likewise.
7030 * infcmd.c (_initialize_infcmd): Likewise.
7031 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7032 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7033 * python/py-param.c (add_setshow_generic): Likewise.
7034 * remote.c (_initialize_remote): Likewise.
7035 * top.c (execute_command): Prepend default_args if command has some.
7036 (set_verbose):
7037 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7038 * tracepoint.c (validate_actionline, encode_actions_1):
7039 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7040
bd920864
TBA
70412020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7042
7043 * jit.c (jit_read_descriptor): Use bool as the return type.
7044 (jit_breakpoint_re_set_internal): Use bool as the return type.
7045 Invert the return value logic; return true if the jit breakpoint
7046 has been successfully initialized.
7047 (jit_inferior_init): Update the call to
7048 jit_breakpoint_re_set_internal.
7049
f8098322
PA
70502020-06-22 Pedro Alves <palves@redhat.com>
7051
7052 PR gdb/25939
7053 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7054 Use the current inferior instead. Don't return
7055 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7056 wait again.
7057 * sol-thread.c (sol_thread_target::wait): Don't reference
7058 inferior_ptid.
7059 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7060 (sol_update_thread_list_callback): Use the current inferior's pid
7061 instead of inferior_ptid.
7062
196535a6
RO
70632020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7064
7065 * procfs.c: Cleanup many comments.
7066
7067 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7068 (AFTER_WATCHFLAG): Replace by value.
7069
7070 (MAIN_PROC_NAME_FORMAT): Inline ...
7071 (create_procinfo): ... here.
7072
7073 (procfs_debug_inferior): Remove SYS_exec handling.
7074 (syscall_is_exec): Likewise.
7075 (procfs_set_exec_trap): Likewise.
7076
7077 (syscall_is_lwp_exit): Inline in callers.
7078 (syscall_is_exit): Likewise.
7079 (syscall_is_exec): Likewise.
7080 (syscall_is_lwp_create): Likewise.
7081
7082 (invalidate_cache): Remove #if 0 code.
7083
7084 (make_signal_thread_runnable): Remove.
7085 (procfs_target::resume): Remove #if 0 code.
7086
cf6f3e86
RO
70872020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7088
7089 PR gdb/25939
7090 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7091 call ...
7092 (procfs_target::create_inferior): ... here.
7093
48e9cc84
PW
70942020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7095
7096 * exec.c (validate_exec_file): Ensure the build-id is up to
7097 date by calling reopen_exec_file (that checks file timestamp
7098 to decide to re-read the file).
7099
3922b302
PA
71002020-06-18 Pedro Alves <palves@redhat.com>
7101
7102 PR gdb/25412
7103 * gdbthread.h (delete_thread, delete_thread_silent)
7104 (find_thread_ptid): Update comments.
7105 * thread.c (current_thread_): New global.
7106 (is_current_thread): Move higher, and reimplement.
7107 (inferior_thread): Reimplement.
7108 (set_thread_exited): Use bool. Add assertions.
7109 (add_thread_silent): Simplify thread-reuse handling by always
7110 calling delete_thread.
7111 (delete_thread): Remove intro comment.
7112 (find_thread_ptid): Skip exited threads.
7113 (switch_to_thread_no_regs): Write to current_thread_.
7114 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7115 INFERIOR_PTID. Clear current_thread_.
7116
6dbdab44
PA
71172020-06-18 Pedro Alves <palves@redhat.com>
7118
7119 * aix-thread.c (pd_update): Use switch_to_thread.
7120
2da4b788
PA
71212020-06-18 Pedro Alves <palves@redhat.com>
7122
7123 * ravenscar-thread.c (ravenscar_thread_target): Update.
7124 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7125 (ravenscar_thread_target::add_active_thread): ... this. Don't
7126 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7127 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7128
50838d1b
PA
71292020-06-18 Pedro Alves <palves@redhat.com>
7130
7131 * nat/windows-nat.c (current_windows_thread): Remove.
7132 * nat/windows-nat.h (current_windows_thread): Remove.
7133 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7134 Adjust.
7135 (display_selectors): Adjust to fetch the current
7136 windows_thread_info based on inferior_ptid.
7137 (fake_create_process): No longer write to current_windows_thread.
7138 (windows_nat_target::get_windows_debug_event):
7139 Don't set inferior_ptid or current_windows_thread.
7140 (windows_nat_target::wait): Adjust to not rely on
7141 current_windows_thread.
7142 (do_initial_windows_stuff): Now a method of windows_nat_target.
7143 Switch to the last_ptid thread.
7144 (windows_nat_target::attach): Adjust.
7145 (windows_nat_target::detach): Use switch_to_no_thread instead of
7146 writing to inferior_ptid directly.
7147 (windows_nat_target::create_inferior): Adjust.
7148
31ce04e9
PA
71492020-06-18 Pedro Alves <palves@redhat.com>
7150
7151 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7152
1ee1a363
PA
71532020-06-18 Pedro Alves <palves@redhat.com>
7154
7155 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7156 after creating it, instead of writing to inferior_ptid. Don't
7157 write to inferior_ptid.
7158
6d350754
PA
71592020-06-18 Pedro Alves <palves@redhat.com>
7160
7161 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7162
5d971d48
PA
71632020-06-18 Pedro Alves <palves@redhat.com>
7164
7165 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7166 it, instead of writing to inferior_ptid.
7167
86e57d1b
PA
71682020-06-18 Pedro Alves <palves@redhat.com>
7169
7170 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7171 to inferior_ptid.
7172
f2e1c129
PA
71732020-06-18 Pedro Alves <palves@redhat.com>
7174
7175 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7176 instead of writing to inferior_ptid directly.
7177
60db1b85
PA
71782020-06-18 Pedro Alves <palves@redhat.com>
7179
7180 * corelow.c (core_target::close): Use switch_to_no_thread instead
7181 of writing to inferior_ptid directly.
7182 (add_to_thread_list, core_target_open): Use switch_to_thread
7183 instead of writing to inferior_ptid directly.
7184
fe7d6a8d
PA
71852020-06-18 Pedro Alves <palves@redhat.com>
7186
7187 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7188 inferior_ptid.
7189 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7190 inferior_ptid.
7191 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7192 inferior_ptid directly.
7193 (darwin_nat_target::init_thread_list): Switch to thread, instead
7194 of writing to inferior_ptid.
7195 (darwin_nat_target::attach): Don't write to inferior_ptid.
7196 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7197
975f8708
PA
71982020-06-18 Pedro Alves <palves@redhat.com>
7199
7200 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7201 thread.
7202 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7203 Instead use switch_to_thread.
7204 (gnu_nat_target::detach): Use switch_to_no_thread
7205 instead of writing to inferior_ptid directly. Used passed-in
7206 inferior instead of looking up the inferior by pid.
7207
1a204730
PA
72082020-06-18 Pedro Alves <palves@redhat.com>
7209
7210 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7211 inferior_ptid.
7212
ebe84f23
PA
72132020-06-18 Pedro Alves <palves@redhat.com>
7214
7215 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7216 inferior_ptid.
7217 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7218 thread.
7219 (nto_procfs_target::detach): Avoid referencing
7220 inferior_ptid. Use switch_to_no_thread instead of writing to
7221 inferior_ptid directly.
7222 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7223 instead of writing to inferior_ptid directly.
7224 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7225 to thread.
7226
191f02e5
PA
72272020-06-18 Pedro Alves <palves@redhat.com>
7228
7229 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7230 after creating it, instead of writing to inferior_ptid.
7231 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7232 to inferior_ptid directly.
7233 (gdbsim_target::wait): Don't write to inferior_ptid.
7234
0ac55310
PA
72352020-06-18 Pedro Alves <palves@redhat.com>
7236
7237 * remote.c (remote_target::remote_notice_new_inferior): Use
7238 switch_to_thread instead of writing to inferior_ptid directly.
7239 (remote_target::add_current_inferior_and_thread): Use
7240 switch_to_no_thread instead of writing to inferior_ptid directly.
7241 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7242 and switch_to_thread instead of using set_current_inferior or
7243 writing to inferior_ptid directly.
7244
5233f39b
PA
72452020-06-18 Pedro Alves <palves@redhat.com>
7246
7247 * tracectf.c (ctf_target_open): Switch to added thread instead of
7248 writing to inferior_ptid directly.
7249 (ctf_target::close): Use switch_to_no_thread instead of writing to
7250 inferior_ptid directly.
7251
087e161b
PA
72522020-06-18 Pedro Alves <palves@redhat.com>
7253
7254 * tracefile-tfile.c (tfile_target_open): Don't write to
7255 inferior_ptid directly, instead switch to added thread.
7256 (tfile_target::close): Use switch_to_no_thread instead of writing
7257 to inferior_ptid directly.
7258
7fb43e53
PA
72592020-06-18 Pedro Alves <palves@redhat.com>
7260
7261 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7262 (procfs_target::detach): Use switch_to_no_thread
7263 instead of writing to inferior_ptid directly.
7264 (do_attach): Change return type to void. Switch to the added
7265 thread.
7266 (procfs_target::create_inferior): Switch to the added thread.
7267 (procfs_do_thread_registers): Don't write to inferior_ptid.
7268
18493a00
PA
72692020-06-18 Pedro Alves <palves@redhat.com>
7270
7271 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7272 of writing to inferior_ptid.
7273 (scoped_restore_exited_inferior): Delete.
7274 (handle_vfork_child_exec_or_exit): Simplify using
7275 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7276 instead of writing to inferior_ptid.
7277 (THREAD_STOPPED_BY): Delete.
7278 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7279 (thread_stopped_by_hw_breakpoint): Delete.
7280 (save_waitstatus): Use
7281 scoped_restore_current_thread+switch_to_thread, and call
7282 target_stopped_by_watchpoint instead of
7283 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7284 instead of thread_stopped_by_sw_breakpoint, and
7285 target_stopped_by_hw_breakpoint instead of
7286 thread_stopped_by_hw_breakpoint.
7287 (handle_inferior_event)
7288 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7289 inferior_ptid directly, nor
7290 set_current_inferior/set_current_program_space. Use
7291 switch_to_thread / switch_to_inferior_no_thread instead.
7292
a0776b13
PA
72932020-06-18 Pedro Alves <palves@redhat.com>
7294
7295 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7296 instead of writing to inferior_ptid.
7297
6155c136
PA
72982020-06-18 Pedro Alves <palves@redhat.com>
7299
7300 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7301 added thread.
7302 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7303 to the added thread.
7304 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7305 instead of writing to inferior_ptid.
7306
c5316fc6
PA
73072020-06-18 Pedro Alves <palves@redhat.com>
7308
7309 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7310 (register_to_value_test): Mock a program_space too. Heap-allocate
7311 the address space. Don't write to inferior_ptid. Use
7312 switch_to_thread instead.
7313
8df01799
PA
73142020-06-18 Pedro Alves <palves@redhat.com>
7315
7316 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7317 Delete.
7318 (find_signalled_thread()): New, factored out from
7319 linux_make_corefile_notes and adjusted to handle exited threads.
7320 (linux_make_corefile_notes): Adjust to use the new
7321 find_signalled_thread.
7322
41792d68
PA
73232020-06-18 Pedro Alves <palves@redhat.com>
7324
7325 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7326 of saving/restoring inferior_ptid.
7327
612f258a
TT
73282020-06-17 Tom Tromey <tom@tromey.com>
7329
7330 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7331 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7332 declare.
7333 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7334
efb763a5
SM
73352020-06-15 Simon Marchi <simon.marchi@efficios.com>
7336
7337 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7338 of partial symtabs.
7339
2951f6c0
SM
73402020-06-17 Simon Marchi <simon.marchi@efficios.com>
7341
7342 * regformats/reg-arm.dat: Remove.
7343 * regformats/reg-bfin.dat: Remove.
7344 * regformats/reg-cris.dat: Remove.
7345 * regformats/reg-crisv32.dat: Remove.
7346 * regformats/reg-m32r.dat: Remove.
7347 * regformats/reg-tilegx.dat: Remove.
7348 * regformats/reg-tilegx32.dat: Remove.
7349
7d458ea5
SM
73502020-06-17 Simon Marchi <simon.marchi@efficios.com>
7351
7352 * features/Makefile (WHICH): Remove arm files.
7353 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7354 * regformats/arm/arm-with-neon.dat: Remove.
7355 * regformats/arm/arm-with-vfpv2.dat: Remove.
7356 * regformats/arm/arm-with-vfpv3.dat: Remove.
7357
3af96c0d
SM
73582020-06-17 Simon Marchi <simon.marchi@efficios.com>
7359
7360 * features/Makefile (XMLTOC): Remove rx.xml.
7361
b25e22fd
PA
73622020-06-17 Pedro Alves <palves@redhat.com>
7363
7364 * gdbthread.h (thread_control_state) <trap_expected> Update
7365 comments.
7366
a78a19b1
AB
73672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7368
7369 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7370 ada_language::lookup_symbol_nonlocal.
7371 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7372 (ada_language::lookup_symbol_nonlocal): New member function,
7373 implementation from ada_lookup_symbol_nonlocal.
7374 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7375 initializer.
7376 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7377 initializer.
7378 (cplus_language::lookup_symbol_nonlocal): New member function.
7379 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7380 (minimal_language_data) Likewise.
7381 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7382 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7383 initializer.
7384 (d_language::lookup_symbol_nonlocal): New member function.
7385 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7386 initializer.
7387 (f_language::lookup_symbol_nonlocal): New member function.
7388 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7389 initializer.
7390 * language.c (unknown_language_data): Likewise.
7391 (auto_language_data): Likewise.
7392 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7393 field.
7394 (language_defn::lookup_symbol_nonlocal): New member function.
7395 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7396 initializer.
7397 * objc-lang.c (objc_language_data): Likewise.
7398 * opencl-lang.c (opencl_language_data): Likewise.
7399 * p-lang.c (pascal_language_data): Likewise.
7400 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7401 rust_language::lookup_symbol_nonlocal.
7402 (rust_language_data): Delete la_lookup_symbol_nonlocal
7403 initializer.
7404 (rust_language::lookup_symbol_nonlocal): New member function,
7405 implementation from rust_lookup_symbol_nonlocal.
7406 * symtab.c (lookup_symbol_aux): Update call to
7407 lookup_symbol_nonlocal.
7408 (basic_lookup_symbol_nonlocal): Rename to...
7409 (language_defn::lookup_symbol_nonlocal): ...this, and update
7410 header comment. Remove language_defn parameter, and replace with
7411 uses of `this'.
7412 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7413
ebe2334e
AB
74142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7415
7416 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7417 initializer.
7418 (ada_language::value_print_inner): New member function.
7419 * c-lang.c (c_language_data): Delete la_value_print_inner
7420 initializer.
7421 (cplus_language_data): Likewise.
7422 (asm_language_data): Likewise.
7423 (minimal_language_data): Likewise.
7424 * d-lang.c (d_language_data): Likewise.
7425 (d_language::value_print_inner): New member function.
7426 * f-lang.c (f_language_data): Delete la_value_print_inner
7427 initializer.
7428 (f_language::value_print_inner): New member function.
7429 * f-lang.h (f_value_print_innner): Rename to...
7430 (f_value_print_inner): ...this (note spelling of 'inner').
7431 * f-valprint.c (f_value_print_innner): Rename to...
7432 (f_value_print_inner): ...this (note spelling of 'inner').
7433 * go-lang.c (go_language_data): Delete la_value_print_inner
7434 initializer.
7435 (go_language::value_print_inner): New member function.
7436 * language.c (language_defn::value_print_inner): Define new member
7437 function.
7438 (unk_lang_value_print_inner): Delete.
7439 (unknown_language_data): Delete la_value_print_inner initializer.
7440 (unknown_language::value_print_inner): New member function.
7441 (auto_language_data): Delete la_value_print_inner initializer.
7442 (auto_language::value_print_inner): New member function.
7443 * language.h (language_data): Delete la_value_print_inner field.
7444 (language_defn::value_print_inner): Delcare new member function.
7445 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7446 initializer.
7447 (m2_language::value_print_inner): New member function.
7448 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7449 initializer.
7450 * opencl-lang.c (opencl_language_data): Likewise.
7451 * p-lang.c (pascal_language_data): Likewise.
7452 (pascal_language::value_print_inner): New member function.
7453 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7454 initializer.
7455 (rust_language::value_print_inner): New member function.
7456 * valprint.c (do_val_print): Update call to value_print_inner.
7457
a1d1fa3e
AB
74582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7459
7460 * ada-lang.c (ada_language_data): Delete la_value_print
7461 initializer.
7462 (ada_language::value_print): New member function.
7463 * c-lang.c (c_language_data): Delete la_value_print initializer.
7464 (cplus_language_data): Likewise.
7465 (asm_language_data): Likewise.
7466 (minimal_language_data): Likewise.
7467 * d-lang.c (d_language_data): Likewise.
7468 * f-lang.c (f_language_data): Likewise.
7469 * go-lang.c (go_language_data): Likewise.
7470 * language.c (unk_lang_value_print): Delete.
7471 (language_defn::value_print): Define new member function.
7472 (unknown_language_data): Delete la_value_print initializer.
7473 (unknown_language::value_print): New member function.
7474 (auto_language_data): Delete la_value_print initializer.
7475 (auto_language::value_print): New member function.
7476 * language.h (language_data): Delete la_value_print field.
7477 (language_defn::value_print): Declare new member function.
7478 (LA_VALUE_PRINT): Update call to value_print.
7479 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7480 * objc-lang.c (objc_language_data): Likewise.
7481 * opencl-lang.c (opencl_language_data): Likewise.
7482 * p-lang.c (pascal_language_data): Likewise.
7483 (pascal_language::value_print): New member function.
7484 * rust-lang.c (rust_language_data): Delete la_value_print
7485 initializer.
7486
f16a9f57
AB
74872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7488
7489 * ada-lang.c (ada_watch_location_expression): Rename to
7490 ada_language::watch_location_expression.
7491 (ada_language_data): Delete la_watch_location_expression
7492 initializer.
7493 (ada_language::watch_location_expression): New member function,
7494 implementation from ada_watch_location_expression.
7495 * breakpoint.c (watch_command_1): Update call to
7496 watch_location_expression.
7497 * c-lang.c (c_watch_location_expression): Rename to
7498 language_defn::watch_location_expression.
7499 (c_language_data): Delete la_watch_location_expression
7500 initializer.
7501 (cplus_language_data): Likewise.
7502 (asm_language_data): Likewise.
7503 (minimal_language_data): Likewise.
7504 * c-lang.h (c_watch_location_expression): Delete declaration.
7505 * d-lang.c (d_language_data): Delete la_watch_location_expression
7506 initializer.
7507 * f-lang.c (f_language_data): Likewise.
7508 * go-lang.c (go_language_data): Likewise.
7509 * language.c (language_defn::watch_location_expression): Member
7510 function implementation from c_watch_location_expression.
7511 (unknown_language_data): Delete la_watch_location_expression
7512 initializer.
7513 (auto_language_data): Likewise.
7514 * language.h (language_data): Delete la_watch_location_expression
7515 field.
7516 (language_defn::watch_location_expression): Declare new member
7517 function.
7518 * m2-lang.c (m2_language_data): Delete
7519 la_watch_location_expression initializer.
7520 * objc-lang.c (objc_language_data): Likewise.
7521 * opencl-lang.c (opencl_language_data): Likewise.
7522 * p-lang.c (pascal_language_data): Likewise.
7523 * rust-lang.c (rust_watch_location_expression): Rename to
7524 rust_language::watch_location_expression.
7525 (rust_language_data): Delete la_watch_location_expression
7526 initializer.
7527 (rust_language::watch_location_expression): New member function,
7528 implementation from rust_watch_location_expression.
7529
7e56227d
AB
75302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7531
7532 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7533 ada_language::collect_symbol_completion_matches.
7534 (ada_language_data): Delete la_collect_symbol_completion_matches
7535 initializer.
7536 (ada_language::collect_symbol_completion_matches): New member
7537 function, implementation from
7538 ada_collect_symbol_completion_matches.
7539 * c-lang.c (c_language_data): Delete
7540 la_collect_symbol_completion_matches initializer.
7541 (cplus_language_data): Likewise.
7542 (asm_language_data): Likewise.
7543 (minimal_language_data): Likewise.
7544 * d-lang.c (d_language_data): Likewise.
7545 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7546 f_language::collect_symbol_completion_matches.
7547 (f_language_data): Delete la_collect_symbol_completion_matches
7548 initializer.
7549 (f_language::collect_symbol_completion_matches) New member
7550 function, implementation from f_collect_symbol_completion_matches.
7551 * go-lang.c (go_language_data): Delete
7552 la_collect_symbol_completion_matches initializer.
7553 * language.c (unknown_language_data): Likewise.
7554 (auto_language_data): Likewise.
7555 * language.h (language_data): Delete
7556 la_collect_symbol_completion_matches field.
7557 (language_defn::collect_symbol_completion_matches): New member
7558 function.
7559 * m2-lang.c (m2_language_data): Delete
7560 la_collect_symbol_completion_matches initializer.
7561 * objc-lang.c (objc_language_data): Likewise.
7562 * opencl-lang.c (opencl_language_data): Likewise.
7563 * p-lang.c (pascal_language_data): Likewise.
7564 * rust-lang.c (rust_language_data): Likewise.
7565 * symtab.c (default_collect_symbol_completion_matches): Delete.
7566 (collect_symbol_completion_matches): Update call to
7567 collect_symbol_completion_matches.
7568 (collect_symbol_completion_matches_type): Likewise.
7569 * symtab.h (default_collect_symbol_completion_matches): Delete
7570 declaration.
7571
53fc67f8
AB
75722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7573
7574 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7575 (ada_language_data): Delete la_word_break_characters initializer.
7576 (ada_language::word_break_characters): New member function.
7577 * c-lang.c (c_language_data): Delete la_word_break_characters
7578 initializer.
7579 (cplus_language_data): Likewise.
7580 (asm_language_data): Likewise.
7581 (minimal_language_data): Likewise.
7582 * completer.c: Update global comment.
7583 (advance_to_expression_complete_word_point): Update call to
7584 word_break_characters.
7585 (complete_files_symbols): Likewise.
7586 (complete_line_internal_1): Likewise.
7587 (default_completer_handle_brkchars): Likewise.
7588 (skip_quoted_chars): Likewise.
7589 * d-lang.c (d_language_data): Delete la_word_break_characters
7590 initializer.
7591 * f-lang.c (f_word_break_characters): Delete.
7592 (f_language_data): Delete la_word_break_characters initializer.
7593 (f_language::word_break_characters): New member function.
7594 * go-lang.c (go_language_data): Delete la_word_break_characters
7595 initializer.
7596 * language.c (unknown_language_data): Likewise.
7597 (auto_language_data): Likewise.
7598 * language.h (default_word_break_characters): Move declaration to
7599 earlier in the file.
7600 (language_data): Delete la_word_break_characters field.
7601 (language_defn::word_break_characters): New member function.
7602 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7603 initializer.
7604 * objc-lang.c (objc_language_data): Likewise.
7605 * opencl-lang.c (opencl_language_data): Likewise.
7606 * p-lang.c (pascal_language_data): Likewise.
7607 * rust-lang.c (rust_language_data): Likewise.
7608
c9debfb9
AB
76092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7610
7611 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7612 (ada_language_data): Delete la_get_symbol_name_matcher
7613 initializer.
7614 (language_defn::get_symbol_name_matcher_inner): New member
7615 function.
7616 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7617 initializer.
7618 (cplus_language_data): Likewise.
7619 (cplus_language::get_symbol_name_matcher_inner): New member
7620 function.
7621 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7622 (minimal_language_data): Likewise.
7623 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7624 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7625 initializer.
7626 * dictionary.c (iter_match_first_hashed): Update call to
7627 get_symbol_name_matcher.
7628 (iter_match_next_hashed): Likewise.
7629 (iter_match_next_linear): Likewise.
7630 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7631 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7632 initializer.
7633 (f_language::get_symbol_name_matcher_inner): New member function.
7634 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7635 initializer.
7636 * language.c (default_symbol_name_matcher): Update header comment,
7637 make static.
7638 (language_defn::get_symbol_name_matcher): New definition.
7639 (language_defn::get_symbol_name_matcher_inner): Likewise.
7640 (get_symbol_name_matcher): Delete.
7641 (unknown_language_data): Delete la_get_symbol_name_matcher
7642 initializer.
7643 (auto_language_data): Likewise.
7644 * language.h (language_data): Delete la_get_symbol_name_matcher
7645 field.
7646 (language_defn::get_symbol_name_matcher): New member function.
7647 (language_defn::get_symbol_name_matcher_inner): Likewise.
7648 (default_symbol_name_matcher): Delete declaration.
7649 * linespec.c (find_methods): Update call to
7650 get_symbol_name_matcher.
7651 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7652 initializer.
7653 * minsyms.c (lookup_minimal_symbol): Update call to
7654 get_symbol_name_matcher.
7655 (iterate_over_minimal_symbols): Likewise.
7656 * objc-lang.c (objc_language_data): Delete
7657 la_get_symbol_name_matcher initializer.
7658 * opencl-lang.c (opencl_language_data): Likewise.
7659 * p-lang.c (pascal_language_data): Likewise.
7660 * psymtab.c (psymbol_name_matches): Update call to
7661 get_symbol_name_matcher.
7662 * rust-lang.c (rust_language_data): Delete
7663 la_get_symbol_name_matcher initializer.
7664 * symtab.c (symbol_matches_search_name): Update call to
7665 get_symbol_name_matcher.
7666 (compare_symbol_name): Likewise.
7667
9a49ad8c
AB
76682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7669
7670 * ada-lang.c (ada_language_data): Delete la_compute_program
7671 initializer.
7672 * c-lang.c (c_language_data): Likewise.
7673 (c_language::compute_program): New member function.
7674 (cplus_language_data): Delete la_compute_program initializer.
7675 (cplus_language::compute_program): New member function.
7676 (asm_language_data): Delete la_compute_program initializer.
7677 (minimal_language_data): Likewise.
7678 * c-lang.h (c_compute_program): Update comment.
7679 (cplus_compute_program): Likewise.
7680 * compile/compile-c-support.c (c_compute_program): Likewise.
7681 (cplus_compute_program): Likewise.
7682 * compile/compile.c (compile_to_object): Update call to
7683 la_compute_program.
7684 * d-lang.c (d_language_data): Delete la_compute_program
7685 initializer.
7686 * f-lang.c (f_language_data): Likewise.
7687 * go-lang.c (go_language_data): Likewise.
7688 * language.c (unknown_language_data): Likewise.
7689 (auto_language_data): Likewise.
7690 * language.h (language_data): Delete la_compute_program field.
7691 (language_defn::compute_program): New member function.
7692 * m2-lang.c (m2_language_data): Delete la_compute_program
7693 initializer.
7694 * objc-lang.c (objc_language_data): Likewise.
7695 * opencl-lang.c (opencl_language_data): Likewise.
7696 * p-lang.c (pascal_language_data): Likewise.
7697 * rust-lang.c (rust_language_data): Likewise.
7698
eff93b4d
AB
76992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7700
7701 * ada-lang.c (ada_language_data) Delete
7702 la_class_name_from_physname initializer.
7703 * c-lang.c (c_language_data): Likewise.
7704 (cplus_language_data): Likewise.
7705 (cplus_language::class_name_from_physname): New member function.
7706 (asm_language_data): Delete la_class_name_from_physname
7707 initializer.
7708 (minimal_language_data): Likewise.
7709 * d-lang.c (d_language_data): Likewise.
7710 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7711 method on language_defn class.
7712 (guess_full_die_structure_name): Likewise.
7713 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7714 initializer.
7715 * go-lang.c (go_language_data): Likewise.
7716 * language.c (language_class_name_from_physname): Delete.
7717 (unk_lang_class_name): Delete.
7718 (unknown_language_data): Delete la_class_name_from_physname
7719 initializer.
7720 (auto_language_data): Likewise.
7721 * language.h (language_data): Delete la_class_name_from_physname
7722 field.
7723 (language_defn::class_name_from_physname): New function.
7724 (language_class_name_from_physname): Delete declaration.
7725 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7726 initializer.
7727 * objc-lang.c (objc_language_data): Likewise.
7728 * opencl-lang.c (opencl_language_data): Likewise.
7729 * p-lang.c (pascal_language_data): Likewise.
7730 * rust-lang.c (rust_language_data): Likewise.
7731
de543742
TT
77322020-06-16 Tom Tromey <tom@tromey.com>
7733
7734 * tui/tui-data.h (STATUS_NAME): New macro.
7735 * tui/tui-layout.c (tui_remove_some_windows)
7736 (initialize_known_windows, tui_register_window)
7737 (tui_layout_split::remove_windows, initialize_layouts)
7738 (tui_new_layout_command): Don't use hard-coded window names.
7739
a350efd4
TT
77402020-06-16 Tom Tromey <tom@tromey.com>
7741
7742 PR tui/25348:
7743 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7744 tui_initialize_readline. Only run once. Call rl_initialize.
7745 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7746 tui_initialize_readline.
7747 * tui/tui-io.c (tui_setup_io): Call
7748 tui_ensure_readline_initialized.
7749 * tui/tui-interp.c (tui_interp::init): Update.
7750
39ec0490
TT
77512020-06-16 Tom Tromey <tom@tromey.com>
7752
7753 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7754 Also preserve the status window.
7755
d2d1ea20
TT
77562020-06-16 Tom Tromey <tom@tromey.com>
7757
7758 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7759 where m_window==nullptr.
7760
66920317
TT
77612020-06-15 Tom Tromey <tromey@adacore.com>
7762
7763 * windows-nat.c (windows_nat::handle_output_debug_string):
7764 Update.
7765 (windows_nat::handle_ms_vc_exception): Update.
7766 * target.h (target_read_string): Change API.
7767 * target.c (target_read_string): Change API.
7768 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7769 Update.
7770 * solib-frv.c (frv_current_sos): Update.
7771 * solib-dsbt.c (dsbt_current_sos): Update.
7772 * solib-darwin.c (darwin_current_sos): Update.
7773 * linux-thread-db.c (inferior_has_bug): Update.
7774 * expprint.c (print_subexp_standard): Update.
7775 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7776 (ada_exception_message_1): Update.
7777
a5d871dd
TT
77782020-06-15 Tom Tromey <tromey@adacore.com>
7779
7780 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7781
670e35fa
TT
77822020-06-15 Tom Tromey <tromey@adacore.com>
7783
7784 * valprint.c (read_string): Update comment.
7785 * target.c (MIN): Remove.
7786 (target_read_string): Rewrite.
7787
f5272a3b
TT
77882020-06-15 Tom Tromey <tromey@adacore.com>
7789
7790 * corefile.c (read_memory_string): Remove.
7791 * ada-valprint.c (ada_value_print_ptr): Update.
7792 * ada-lang.h (ada_tag_name): Change return type.
7793 * ada-lang.c (type_from_tag): Update.
7794 (ada_tag_name_from_tsd): Change return type. Use
7795 target_read_string.
7796 (ada_tag_name): Likewise.
7797 * gdbcore.h (read_memory_string): Don't declare.
7798
2c074f49
HD
77992020-06-14 Hannes Domani <ssbssa@yahoo.de>
7800
7801 * symtab.c (rbreak_command): Ignore Windows drive colon.
7802
6a17d503
SM
78032020-06-12 Simon Marchi <simon.marchi@efficios.com>
7804
7805 * NEWS: Mention removed GDBserver host support.
7806
453c733f
NC
78072020-06-12 Nelson Chu <nelson.chu@sifive.com>
7808
7809 * features/riscv/rebuild-csr-xml.sh: Updated.
7810
2b4e6a3f
TT
78112020-06-11 Tom Tromey <tom@tromey.com>
7812
7813 PR gdb/18318:
7814 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7815
4412332f
JG
78162020-06-09 Jonny Grant <jg@jguk.org>
78172020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7818
7819 * main.c (captured_main_1): Don't print new line after help.
7820 (print_gdb_help): add mailing list and IRC channel information
7821 to --help. Add new lines between items in the footer. Remove
7822 quotes around bug url.
7823
2f33032a
KS
78242020-06-11 Keith Seitz <keiths@redhat.com>
7825
7826 PR gdb/21356
7827 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7828 Resolve typedefs for type length calculations.
7829
7ab96794
TV
78302020-06-10 Tom de Vries <tdevries@suse.de>
7831
7832 PR ada/24713
7833 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7834 (write_psymbols): Enable .gdb_index for ada.
7835 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7836 ada.
7837
e5f3ece2
TV
78382020-06-10 Tom de Vries <tdevries@suse.de>
7839
7840 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7841 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7842 namei" instead of "const char *name" argument.
7843 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7844 dw2_symtab_iter_init.
7845
940da03e
SM
78462020-06-08 Simon Marchi <simon.marchi@efficios.com>
7847
7848 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7849 to use type::field and field::type instead.
7850
b6cdac4b
SM
78512020-06-08 Simon Marchi <simon.marchi@efficios.com>
7852
7853 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7854 to use field::type instead.
7855
5d14b6e5
SM
78562020-06-08 Simon Marchi <simon.marchi@efficios.com>
7857
7858 * gdbtypes.h (struct field) <type, set_type>: New methods.
7859 Rename `type` field to...
7860 <m_type>: ... this. Change references throughout to use type or
7861 set_type methods.
7862 (FIELD_TYPE): Use field::type. Change call sites that modify
7863 the field's type to use field::set_type instead.
7864
3d967001
SM
78652020-06-08 Simon Marchi <simon.marchi@efficios.com>
7866
7867 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7868 to use type::index_type instead.
7869
262abc0d
SM
78702020-06-08 Simon Marchi <simon.marchi@efficios.com>
7871
7872 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7873 methods.
7874 (TYPE_INDEX_TYPE): Use type::index_type.
7875 * gdbtypes.c (create_array_type_with_stride): Likewise.
7876
82836c92
TT
78772020-06-07 Tom Tromey <tom@tromey.com>
7878
7879 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7880 parameter.
7881 (generic_value_print): Update.
7882
940dace9
AB
78832020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7884
7885 Revert commit 982a38f60b0.
7886 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7887
982a38f6
AB
78882020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7889
7890 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7891 avoid use after free.
7892
82f06518
TV
78932020-06-05 Tom de Vries <tdevries@suse.de>
7894
7895 * NEWS: Fix typos.
7896
f8c41851
SM
78972020-06-04 Simon Marchi <simon.marchi@efficios.com>
7898
7899 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7900 the per_bfd object.
7901 (dwarf2_read_debug_names): Likewise.
7902 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7903 object when re-using a per_bfd object with an index.
7904
f9b5d5ea
TV
79052020-06-03 Tom de Vries <tdevries@suse.de>
7906
7907 PR symtab/26046
7908 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7909 children for C++.
7910 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7911 DW_TAG_subprogram.
7912
f6eee2d0
AB
79132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7914
7915 * ada-lang.c (ada_language_data): Delete skip_trampoline
7916 initializer.
7917 * c-lang.c (c_language_data): Likewise.
7918 (cplus_language_data): Likewise.
7919 (cplus_language::skip_trampoline): New member function.
7920 (asm_language_data): Delete skip_trampoline initializer.
7921 (minimal_language_data): Likewise.
7922 * d-lang.c (d_language_data): Likewise.
7923 * f-lang.c (f_language_data): Likewise.
7924 * go-lang.c (go_language_data): Likewise.
7925 * language.c (unk_lang_trampoline): Delete function.
7926 (skip_language_trampoline): Update.
7927 (unknown_language_data): Delete skip_trampoline initializer.
7928 (auto_language_data): Likewise.
7929 * language.h (language_data): Delete skip_trampoline field.
7930 (language_defn::skip_trampoline): New function.
7931 * m2-lang.c (m2_language_data): Delete skip_trampoline
7932 initializer.
7933 * objc-lang.c (objc_skip_trampoline): Delete function, move
7934 implementation to objc_language::skip_trampoline.
7935 (objc_language_data): Delete skip_trampoline initializer.
7936 (objc_language::skip_trampoline): New member function with
7937 implementation from objc_skip_trampoline.
7938 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7939 initializer.
7940 * p-lang.c (pascal_language_data): Likewise.
7941 * rust-lang.c (rust_language_data): Likewise.
7942
0a50df5d
AB
79432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7944
7945 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7946 (ada_language::demangle): New member function.
7947 * c-lang.c (c_language_data): Delete la_demangle initializer.
7948 (cplus_language_data): Delete la_demangle initializer.
7949 (cplus_language::demangle): New member function.
7950 (asm_language_data): Delete la_demangle initializer.
7951 (minimal_language_data): Delete la_demangle initializer.
7952 * d-lang.c (d_language_data): Delete la_demangle initializer.
7953 (d_language::demangle): New member function.
7954 * f-lang.c (f_language_data): Delete la_demangle initializer.
7955 (f_language::demangle): New member function.
7956 * go-lang.c (go_language_data): Delete la_demangle initializer.
7957 (go_language::demangle): New member function.
7958 * language.c (language_demangle): Update.
7959 (unk_lang_demangle): Delete.
7960 (unknown_language_data): Delete la_demangle initializer.
7961 (unknown_language::demangle): New member function.
7962 (auto_language_data): Delete la_demangle initializer.
7963 (auto_language::demangle): New member function.
7964 * language.h (language_data): Delete la_demangle field.
7965 (language_defn::demangle): New function.
7966 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7967 * objc-lang.c (objc_language_data): Delete la_demangle
7968 initializer.
7969 (objc_language::demangle): New member function.
7970 * opencl-lang.c (opencl_language_data): Delete la_demangle
7971 initializer.
7972 * p-lang.c (pascal_language_data): Likewise.
7973 * rust-lang.c (rust_language_data): Likewise.
7974 (rust_language::demangle): New member function.
7975
fbfb0a46
AB
79762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7977
7978 * ada-lang.c (ada_language_data): Delete la_print_type
7979 initializer.
7980 (ada_language::print_type): New member function.
7981 * c-lang.c (c_language_data): Delete la_print_type initializer.
7982 (c_language::print_type): New member function.
7983 (cplus_language_data): Delete la_print_type initializer.
7984 (cplus_language::print_type): New member function.
7985 (asm_language_data): Delete la_print_type initializer.
7986 (asm_language::print_type): New member function.
7987 (minimal_language_data): Delete la_print_type initializer.
7988 (minimal_language::print_type): New member function.
7989 * d-lang.c (d_language_data): Delete la_print_type initializer.
7990 (d_language::print_type): New member function.
7991 * f-lang.c (f_language_data): Delete la_print_type initializer.
7992 (f_language::print_type): New member function.
7993 * go-lang.c (go_language_data): Delete la_print_type initializer.
7994 (go_language::print_type): New member function.
7995 * language.c (unk_lang_print_type): Delete.
7996 (unknown_language_data): Delete la_print_type initializer.
7997 (unknown_language::print_type): New member function.
7998 (auto_language_data): Delete la_print_type initializer.
7999 (auto_language::print_type): New member function.
8000 * language.h (language_data): Delete la_print_type field.
8001 (language_defn::print_type): New function.
8002 (LA_PRINT_TYPE): Update.
8003 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8004 (m2_language::print_type): New member function.
8005 * objc-lang.c (objc_language_data): Delete la_print_type
8006 initializer.
8007 (objc_language::print_type): New member function.
8008 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8009 to opencl_language::print_type.
8010 (opencl_language_data): Delete la_print_type initializer.
8011 (opencl_language::print_type): New member function, implementation
8012 from opencl_print_type.
8013 * p-lang.c (pascal_language_data): Delete la_print_type
8014 initializer.
8015 (pascal_language::print_type): New member function.
8016 * rust-lang.c (rust_print_type): Delete, implementation moved to
8017 rust_language::print_type.
8018 (rust_language_data): Delete la_print_type initializer.
8019 (rust_language::print_type): New member function, implementation
8020 from rust_print_type.
8021
6f827019
AB
80222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8023
8024 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8025 implementation moves to...
8026 (ada_language::sniff_from_mangled_name): ...here. Update return
8027 type.
8028 (ada_language_data): Delete la_sniff_from_mangled_name
8029 initializer.
8030 * c-lang.c (c_language_data): Likewise.
8031 (cplus_language_data): Likewise.
8032 (cplus_language::sniff_from_mangled_name): New member function,
8033 implementation taken from gdb_sniff_from_mangled_name.
8034 (asm_language_data): Delete la_sniff_from_mangled_name
8035 initializer.
8036 (minimal_language_data): Likewise.
8037 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8038 implementation moves to cplus_language::sniff_from_mangled_name.
8039 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8040 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8041 moves to...
8042 (d_language::sniff_from_mangled_name): ...here.
8043 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8044 * f-lang.c (f_language_data): Likewise.
8045 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8046 moves to...
8047 (go_language::sniff_from_mangled_name): ...here.
8048 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8049 * language.c (language_sniff_from_mangled_name): Delete.
8050 (unknown_language_data): Delete la_sniff_from_mangled_name
8051 initializer.
8052 (auto_language_data): Likewise.
8053 * language.h (language_data): Delete la_sniff_from_mangled_name
8054 field.
8055 (language_defn::sniff_from_mangled_name): New function.
8056 (language_sniff_from_mangled_name): Delete declaration.
8057 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8058 field.
8059 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8060 implementation moves to...
8061 (objc_language::sniff_from_mangled_name): ...here.
8062 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8063 * opencl-lang.c (opencl_language_data): Likewise.
8064 * p-lang.c (pascal_language_data): Likewise.
8065 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8066 implementation moves to...
8067 (rust_language::sniff_from_mangled_name): ...here.
8068 (rust_language_data): Delete la_sniff_from_mangled_name
8069 initializer.
8070 * symtab.c (symbol_find_demangled_name): Call
8071 sniff_from_mangled_name member function.
8072
fb8006fd
AB
80732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8074
8075 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8076 initializer.
8077 * c-lang.c (c_language_data): Likewise.
8078 (cplus_language_data): Likewise.
8079 (cplus_language::search_name_hash): New member function.
8080 (asm_language_data): Delete la_search_name_hash initializer.
8081 (minimal_language_data): Likewise.
8082 * d-lang.c (d_language_data): Likewise.
8083 * dictionary.c (default_search_name_hash): Rename to...
8084 (language_defn::search_name_hash): ...this.
8085 * f-lang.c (f_language_data): Likewise.
8086 (f_language::search_name_hash): New member function.
8087 * go-lang.c (go_language_data): Delete la_search_name_hash
8088 initializer.
8089 * language.c (unknown_language_data): Likewise.
8090 (auto_language_data): Likewise.
8091 * language.h (struct language_data): Delete la_search_name_hash
8092 field.
8093 (language_defn::search_name_hash): Declare new member function.
8094 (default_search_name_hash): Delete declaration.
8095 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8096 initializer.
8097 * objc-lang.c (objc_language_data): Likewise.
8098 * opencl-lang.c (opencl_language_data): Likewise.
8099 * p-lang.c (pascal_language_data): Likewise.
8100 * rust-lang.c (rust_language_data): Likewise.
8101 * symtab.c (search_name_hash): Update call.
8102
8e25bafe
AB
81032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8104
8105 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8106 initializer.
8107 * c-lang.c (class compile_instance): Declare.
8108 (c_language_data): Delete la_get_compile_instance initializer.
8109 (c_language::get_compile_instance): New member function.
8110 (cplus_language_data): Delete la_get_compile_instance initializer.
8111 (cplus_language::get_compile_instance): New member function.
8112 (asm_language_data): Delete la_get_compile_instance initializer.
8113 (minimal_language_data): Likewise.
8114 * c-lang.h (c_get_compile_context): Update comment.
8115 (cplus_get_compile_context): Update comment.
8116 * compile/compile.c (compile_to_object): Update calls, don't rely
8117 on function pointer being NULL.
8118 * d-lang.c (d_language_data): Delete la_get_compile_instance
8119 initializer.
8120 * f-lang.c (f_language_data): Likewise.
8121 * go-lang.c (go_language_data): Likewise.
8122 * language.c (unknown_language_data): Likewise.
8123 (auto_language_data): Likewise.
8124 * language.h (language_data): Delete la_get_compile_instance field.
8125 (language_defn::get_compile_instance): New member function.
8126 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8127 initializer.
8128 * objc-lang.c (objc_language_data): Likewise.
8129 * opencl-lang.c (opencl_language_data): Likewise.
8130 * p-lang.c (pascal_language_data): Likewise.
8131 * rust-lang.c (rust_language_data): Likewise.
8132
4009ee92
AB
81332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8134
8135 * ada-lang.c (ada_add_all_symbols): Update comment.
8136 (ada_iterate_over_symbols): Delete, move implementation to...
8137 (ada_language::iterate_over_symbols): ...here, a new member
8138 function, rewrite to use range based for loop.
8139 (ada_language_data): Delete la_iterate_over_symbols initializer.
8140 * c-lang.c (c_language_data): Likewise.
8141 (cplus_language_data): Likewise.
8142 (asm_language_data): Likewise.
8143 (minimal_language_data): Likewise.
8144 * d-lang.c (d_language_data): Likewise.
8145 * f-lang.c (f_language_data): Likewise.
8146 * go-lang.c (go_language_data): Likewise.
8147 * language.c (unknown_language_data): Likewise.
8148 (auto_language_data): Likewise.
8149 * language.h (language_data): Delete la_iterate_over_symbols field.
8150 (language_defn::iterate_over_symbols): New member function.
8151 (LA_ITERATE_OVER_SYMBOLS): Update.
8152 * linespec.c (iterate_over_all_matching_symtabs): Update.
8153 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8154 initializer.
8155 * objc-lang.c (objc_language_data): Likewise.
8156 * opencl-lang.c (opencl_language_data): Likewise.
8157 * p-lang.c (pascal_language_data): Likewise.
8158 * rust-lang.c (rust_language_data): Likewise.
8159
54f4ca46
AB
81602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8161
8162 * ada-lang.c (ada_language_data): Delete
8163 la_lookup_transparent_type initializer.
8164 * c-lang.c (c_language_data): Likewise.
8165 (cplus_language_data): Likewise.
8166 (cplus_language::lookup_transparent_type): New member function.
8167 (asm_language_data): Delete la_lookup_transparent_type
8168 initializer.
8169 (minimal_language_data): Likewise.
8170 * d-lang.c (d_language_data): Likewise.
8171 * f-lang.c (f_language_data): Likewise.
8172 * go-lang.c (go_language_data): Likewise.
8173 * language.c (unknown_language_data): Likewise.
8174 (auto_language_data): Likewise.
8175 * language.h (struct language_data): Delete
8176 la_lookup_transparent_type field.
8177 (language_defn::lookup_transparent_type): New member function.
8178 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8179 initializer.
8180 * objc-lang.c (objc_language_data): Likewise.
8181 * opencl-lang.c (opencl_language_data): Likewise.
8182 * p-lang.c (pascal_language_data): Likewise.
8183 * rust-lang.c (rust_language_data): Likewise.
8184 * symtab.c (symbol_matches_domain): Update call.
8185
1fb314aa
AB
81862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8187
8188 * ada-lang.c (ada_language_arch_info): Delete function, move
8189 implementation to...
8190 (ada_language::language_arch_info): ...here, a new member
8191 function.
8192 (ada_language_data): Delete la_language_arch_info.
8193 * c-lang.c (c_language_data): Likewise.
8194 (c_language::language_arch_info): New member function.
8195 (cplus_language_arch_info): Delete function, move
8196 implementation to...
8197 (cplus_language::language_arch_info): ...here, a new member
8198 function.
8199 (cplus_language_data): Delete la_language_arch_info.
8200 (asm_language_data): Likewise.
8201 (asm_language::language_arch_info): New member function.
8202 (minimal_language_data): Delete la_language_arch_info.
8203 (minimal_language::language_arch_info): New member function.
8204 * d-lang.c (d_language_arch_info): Delete function, move
8205 implementation to...
8206 (d_language::language_arch_info): ...here, a new member
8207 function.
8208 (d_language_data): Delete la_language_arch_info.
8209 * f-lang.c (f_language_arch_info): Delete function, move
8210 implementation to...
8211 (f_language::language_arch_info): ...here, a new member
8212 function.
8213 (f_language_data): Delete la_language_arch_info.
8214 * go-lang.c (go_language_arch_info): Delete function, move
8215 implementation to...
8216 (go_language::language_arch_info): ...here, a new member
8217 function.
8218 (go_language_data): Delete la_language_arch_info.
8219 * language.c (unknown_language_data): Likewise.
8220 (unknown_language::language_arch_info): New member function.
8221 (auto_language_data): Delete la_language_arch_info.
8222 (auto_language::language_arch_info): New member function.
8223 (language_gdbarch_post_init): Update call to
8224 la_language_arch_info.
8225 * language.h (language_data): Delete la_language_arch_info
8226 function pointer.
8227 (language_defn::language_arch_info): New function.
8228 * m2-lang.c (m2_language_arch_info): Delete function, move
8229 implementation to...
8230 (m2_language::language_arch_info): ...here, a new member
8231 function.
8232 (m2_language_data): Delete la_language_arch_info.
8233 * objc-lang.c (objc_language_arch_info): Delete function, move
8234 implementation to...
8235 (objc_language::language_arch_info): ...here, a new member
8236 function.
8237 (objc_language_data): Delete la_language_arch_info.
8238 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8239 implementation to...
8240 (opencl_language::language_arch_info): ...here, a new member
8241 function.
8242 (opencl_language_data): Delete la_language_arch_info.
8243 * p-lang.c (pascal_language_arch_info): Delete function, move
8244 implementation to...
8245 (pascal_language::language_arch_info): ...here, a new member
8246 function.
8247 (pascal_language_data): Delete la_language_arch_info.
8248 * rust-lang.c (rust_language_arch_info): Delete function, move
8249 implementation to...
8250 (rust_language::language_arch_info): ...here, a new member
8251 function.
8252 (rust_language_data): Delete la_language_arch_info.
8253
48448202
AB
82542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8255
8256 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8257 initializer.
8258 * c-lang.c (c_language_data): Likewise.
8259 (cplus_language_data): Likewise.
8260 (cplus_language::pass_by_reference_info): New method.
8261 (asm_language_data): Delete la_pass_by_reference initializer.
8262 (minimal_language_data): Likewise.
8263 * cp-abi.c (cp_pass_by_reference): Remove use of
8264 default_pass_by_reference.
8265 * d-lang.c (d_language_data): Likewise.
8266 * f-lang.c (f_language_data): Likewise.
8267 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8268 default_pass_by_reference.
8269 * go-lang.c (go_language_data): Likewise.
8270 * language.c (language_pass_by_reference): Update.
8271 (default_pass_by_reference): Delete.
8272 (unknown_language_data): Delete la_pass_by_reference
8273 initializer.
8274 (auto_language_data): Likewise.
8275 * language.h (struct language_data): Delete la_pass_by_reference
8276 field.
8277 (language_defn::pass_by_reference_info): New member function.
8278 (default_pass_by_reference): Delete declaration.
8279 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8280 initializer.
8281 * objc-lang.c (objc_language_data): Likewise.
8282 * opencl-lang.c (opencl_language_data): Likewise.
8283 * p-lang.c (pascal_language_data): Likewise.
8284 * rust-lang.c (rust_language_data): Likewise.
8285
15e5fd35
AB
82862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8287
8288 * ada-lang.c (ada_read_var_value): Delete function, move
8289 implementation to...
8290 (ada_language::read_var_value): ...here.
8291 (ada_language_data): Delete la_read_var_value initializer.
8292 * c-lang.c (c_language_data): Likewise.
8293 (cplus_language_data): Likewise.
8294 (minimal_language_data): Likewise.
8295 * d-lang.c (d_language_data): Likewise.
8296 * f-lang.c (f_language_data): Likewise.
8297 * findvar.c (default_read_var_value): Rename to...
8298 (language_defn::read_var_value): ...this.
8299 * findvar.c (read_var_value): Update header comment, and change to
8300 call member function instead of function pointer.
8301 * go-lang.c (go_language_data): Likewise.
8302 * language.c (unknown_language_data): Delete la_read_var_value
8303 initializer.
8304 (auto_language_data): Likewise.
8305 * language.h (struct language_data): Delete la_read_var_value
8306 field.
8307 (language_defn::read_var_value): New member function.
8308 (default_read_var_value): Delete declaration.
8309 * m2-lang.c (m2_language_data): Delete la_read_var_value
8310 initializer.
8311 * objc-lang.c (objc_language_data): Likewise.
8312 * opencl-lang.c (opencl_language_data): Likewise.
8313 * p-lang.c (pascal_language_data): Likewise.
8314 * rust-lang.c (rust_language_data): Likewise.
8315 * value.h (default_read_var_value): Delete declaration.
8316
5bd40f2a
AB
83172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8318
8319 * ada-lang.c (ada_print_array_index): Delete function, move
8320 implementation to...
8321 (ada_language::print_array_index): ...here.
8322 (ada_language_data): Delete la_print_array_index initializer.
8323 * c-lang.c (c_language_data): Likewise.
8324 (cplus_language_data): Likewise.
8325 (minimal_language_data): Likewise.
8326 * d-lang.c (d_language_data): Likewise.
8327 * f-lang.c (f_language_data): Likewise.
8328 * go-lang.c (go_language_data): Likewise.
8329 * language.c (default_print_array_index): Delete function, move
8330 implementation to...
8331 (language_defn::print_array_index): ...here.
8332 (unknown_language_data): Delete la_print_array_index initializer.
8333 (auto_language_data): Likewise.
8334 * language.h (struct language_data): Delete la_print_array_index
8335 field.
8336 (language_defn::print_array_index): New member function.
8337 (LA_PRINT_ARRAY_INDEX): Update.
8338 (default_print_array_index): Delete declaration.
8339 * m2-lang.c (m2_language_data): Delete la_print_array_index
8340 initializer.
8341 * objc-lang.c (objc_language_data): Likewise.
8342 * opencl-lang.c (opencl_language_data): Likewise.
8343 * p-lang.c (pascal_language_data): Likewise.
8344 * rust-lang.c (rust_language_data): Likewise.
8345
0874fd07
AB
83462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8347
8348 * gdb/ada-lang.c (ada_language_defn): Convert to...
8349 (ada_language_data): ...this.
8350 (class ada_language): New class.
8351 (ada_language_defn): New static global.
8352 * gdb/c-lang.c (c_language_defn): Convert to...
8353 (c_language_data): ...this.
8354 (class c_language): New class.
8355 (c_language_defn): New static global.
8356 (cplus_language_defn): Convert to...
8357 (cplus_language_data): ...this.
8358 (class cplus_language): New class.
8359 (cplus_language_defn): New static global.
8360 (asm_language_defn): Convert to...
8361 (asm_language_data): ...this.
8362 (class asm_language): New class.
8363 (asm_language_defn): New static global.
8364 (minimal_language_defn): Convert to...
8365 (minimal_language_data): ...this.
8366 (class minimal_language): New class.
8367 (minimal_language_defn): New static global.
8368 * gdb/d-lang.c (d_language_defn): Convert to...
8369 (d_language_data): ...this.
8370 (class d_language): New class.
8371 (d_language_defn): New static global.
8372 * gdb/f-lang.c (f_language_defn): Convert to...
8373 (f_language_data): ...this.
8374 (class f_language): New class.
8375 (f_language_defn): New static global.
8376 * gdb/go-lang.c (go_language_defn): Convert to...
8377 (go_language_data): ...this.
8378 (class go_language): New class.
8379 (go_language_defn): New static global.
8380 * gdb/language.c (unknown_language_defn): Remove declaration.
8381 (current_language): Initialize to nullptr, real initialization is
8382 moved to _initialize_language.
8383 (languages): Delete global.
8384 (language_defn::languages): Define.
8385 (set_language_command): Use language_defn::languages.
8386 (set_language): Likewise.
8387 (range_error): Likewise.
8388 (language_enum): Likewise.
8389 (language_def): Likewise.
8390 (add_set_language_command): Use language_def::languages for the
8391 language list, and language_def to lookup language pointers.
8392 (skip_language_trampoline): Use language_defn::languages.
8393 (unknown_language_defn): Convert to...
8394 (unknown_language_data): ...this.
8395 (class unknown_language): New class.
8396 (unknown_language_defn): New static global.
8397 (auto_language_defn): Convert to...
8398 (auto_language_data): ...this.
8399 (class auto_language): New class.
8400 (auto_language_defn): New static global.
8401 (language_gdbarch_post_init): Use language_defn::languages.
8402 (_initialize_language): Initialize current_language.
8403 * gdb/language.h (struct language_defn): Rename to...
8404 (struct language_data): ...this.
8405 (struct language_defn): New.
8406 (auto_language_defn): Delete.
8407 (unknown_language_defn): Delete.
8408 (minimal_language_defn): Delete.
8409 (ada_language_defn): Delete.
8410 (asm_language_defn): Delete.
8411 (c_language_defn): Delete.
8412 (cplus_language_defn): Delete.
8413 (d_language_defn): Delete.
8414 (f_language_defn): Delete.
8415 (go_language_defn): Delete.
8416 (m2_language_defn): Delete.
8417 (objc_language_defn): Delete.
8418 (opencl_language_defn): Delete.
8419 (pascal_language_defn): Delete.
8420 (rust_language_defn): Delete.
8421 * gdb/m2-lang.c (m2_language_defn): Convert to...
8422 (m2_language_data): ...this.
8423 (class m2_language): New class.
8424 (m2_language_defn): New static global.
8425 * gdb/objc-lang.c (objc_language_defn): Convert to...
8426 (objc_language_data): ...this.
8427 (class objc_language): New class.
8428 (objc_language_defn): New static global.
8429 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8430 (opencl_language_data): ...this.
8431 (class opencl_language): New class.
8432 (opencl_language_defn): New static global.
8433 * gdb/p-lang.c (pascal_language_defn): Convert to...
8434 (pascal_language_data): ...this.
8435 (class pascal_language): New class.
8436 (pascal_language_defn): New static global.
8437 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8438 language pointer, update comment format.
8439 * gdb/rust-lang.c (rust_language_defn): Convert to...
8440 (rust_language_data): ...this.
8441 (class rust_language): New class.
8442 (rust_language_defn): New static global.
8443
1313c56e
AB
84442020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8445
8446 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8447 member variable.
8448 <m_stmt_at_address>: New member variable.
8449 (lnp_state_machine::record_line): Don't record some lines, update
8450 tracking of is_stmt at the same address.
8451 (lnp_state_machine::lnp_state_machine): Initialise new member
8452 variables.
8453
b7ed9f3d
ST
84542020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8455
8456 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8457 "-include gnu-nat-mig.h".
8458 * gnu-nat-mig.h: New file.
8459 * gnu-nat.c: Include "gnu-nat-mig.h".
8460 (exc_server, msg_reply_server, notify_server,
8461 process_reply_server): Remove declarations.
8462
14a8ad62
ST
84632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8464
8465 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8466 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8467 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8468 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8469 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8470 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8471 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8472 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8473 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8474 to gnu_nat_target class.
8475 * gnu-nat.c: Likewise.
8476 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8477 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8478 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8479 object.
8480 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8481 instead of `gnu_target'.
8482
0af5e106
ST
84832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8484
8485 * i386-gnu-tdep.c: Include "gdbcore.h"
8486 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8487 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8488 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8489 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8490 i386_gnu_sigcontext_addr): New functions
8491 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8492 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8493 tdep.
8494
078f2fc9
ST
84952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8496
8497 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8498 before fork_inferior call. Avoid calling it if target_is_pushed returns
8499 true.
8500
53dff92c
ST
85012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8502
8503 * gnu-nat.h (gnu_target): New variable declaration.
8504 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8505 gnu_target.
8506 * gnu-nat.c (gnu_target): New variable.
8507 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8508 add_thread_silent, and add_thread calls.
8509 (gnu_nat_target::create_inferior): Pass gnu_target to
8510 add_thread_silent, thread_change_ptid call.
8511 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8512 call.
8513
5a8b8627
ST
85142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8515
8516 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8517 (gnu_nat_target::find_memory_regions): Remove unused
8518 `old_address' variable.
8519
366f550a
ST
85202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8521
8522 * gnu-nat.c: Include "gdbarch.h".
8523
f14871bf
ST
85242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8525
8526 * reply_mig_hack.awk (Error return): Cast function through
8527 void *, to bypass compiler function call check.
8528
c6887cfb
ST
85292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8530
8531 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8532 $(srcdir)/reply_mig_hack.awk.
8533
6930bffe
ST
85342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8535
8536 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8537
112c22ed
JG
85382020-05-30 Jonny Grant <jg@jguk.org>
8539
8540 * configure.ac (ACX_BUGURL): change bug URL to https.
8541
f68f85b5
PA
85422020-05-30 Pedro Alves <palves@redhat.com>
8543
8544 * cp-support.c (replace_typedefs_template): New.
8545 (replace_typedefs_qualified_name): Handle
8546 DEMANGLE_COMPONENT_TEMPLATE.
8547
976ca316
SM
85482020-05-29 Simon Marchi <simon.marchi@efficios.com>
8549
8550 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8551 dwarf2/index-cache.h, dwarf2/index-write.c,
8552 dwarf2/index-write.h, dwarf2/line-header.c,
8553 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8554 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8555 variables and fields from `dwarf2_per_objfile` to just
8556 `per_objfile` throughout.
8557
989ade05
SM
85582020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8559
8560 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8561 <push_dwarf_reg_entry_value>: Add comment.
8562
c47bae85
KB
85632020-05-28 Kevin Buettner <kevinb@redhat.com>
8564 Keith Seitz <keiths@redhat.com>
8565
8566 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8567 instead of PyEval_ReleaseLock.
8568 (class gdbpy_gil): Move to earlier in file.
8569 (finalize_python): Set gdb_python_initialized.
8570 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8571 when not initialized.
8572
44486dcf
SM
85732020-05-28 Simon Marchi <simon.marchi@efficios.com>
8574
8575 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8576 <push_dwarf_reg_entry_value>: Remove assert. Override
8577 per_objfile with caller_per_objfile.
8578
f030440d
TV
85792020-05-28 Tom de Vries <tdevries@suse.de>
8580
8581 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8582 PR gold/15646 workaround to symbol kind "type".
8583
f0fbb768
TT
85842020-05-27 Tom Tromey <tromey@adacore.com>
8585
8586 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8587
af0b2a3e
TT
85882020-05-27 Tom Tromey <tromey@adacore.com>
8589
8590 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8591 Use htab_find_with_hash.
8592 <add_abbrev>: Remove "abbrev_number" parameter.
8593 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8594 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8595 (hash_abbrev): Add comment.
8596 (abbrev_table::lookup_abbrev): Move to header file.
8597 (abbrev_table::read): Update.
8598
7d00ffec
TT
85992020-05-27 Tom Tromey <tromey@adacore.com>
8600
8601 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8602 method.
8603 <canonical_name>: New member.
8604 <raw_name>: Rename from "name".
8605 (partial_die_info): Initialize canonical_name.
8606 (scan_partial_symbols): Check raw_name.
8607 (partial_die_parent_scope, partial_die_full_name)
8608 (add_partial_symbol, add_partial_subprogram)
8609 (add_partial_enumeration, load_partial_dies): Use "name" method.
8610 (partial_die_info::name): New method.
8611 (partial_die_info::read, guess_partial_die_structure_name)
8612 (partial_die_info::fixup): Update.
8613
697bba18
TT
86142020-05-27 Tom Tromey <tromey@adacore.com>
8615
8616 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8617 <get_ref_die_offset>: Inline.
8618 <get_ref_die_offset_complaint>: New method.
8619 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8620 (attribute::get_ref_die_offset_complaint): Rename from
8621 get_ref_die_offset. Just issue complaint.
8622
c17ace43
HD
86232020-05-27 Hannes Domani <ssbssa@yahoo.de>
8624
8625 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8626
96445f0b
HD
86272020-05-27 Hannes Domani <ssbssa@yahoo.de>
8628
8629 * exec.c (exec_file_attach): Use errno value of first openp failure.
8630
ac637ec3
HD
86312020-05-27 Hannes Domani <ssbssa@yahoo.de>
8632
8633 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8634 Don't close thread handle.
8635
17ee85fc
TT
86362020-05-27 Tom Tromey <tom@tromey.com>
8637 Simon Marchi <simon.marchi@efficios.com>
8638
8639 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8640 shared_ptr.
8641 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8642 member.
8643 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8644 dwarf2_per_bfd_objfile_data_key>: New globals.
8645 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8646 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8647 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8648 shared.
8649 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8650 short-circuit when sharing.
8651 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8652 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8653
39b16f87
SM
86542020-05-27 Simon Marchi <simon.marchi@efficios.com>
8655
8656 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8657 to...
8658 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8659 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8660
fcf23d5b
SM
86612020-05-27 Simon Marchi <simon.marchi@efficios.com>
8662
8663 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8664 build_name_components, find_name_components_bounds>:
8665 Add per_objfile parameter.
8666 (struct mapped_index) <symbol_name_at>: Likewise.
8667 (struct mapped_debug_names): Remove constructor.
8668 <dwarf2_per_objfile>: Remove field.
8669 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8670 (mapped_index_base::find_name_components_bounds,
8671 mapped_index_base::build_name_components,
8672 dw2_expand_symtabs_matching_symbol): Likewise.
8673 (class mock_mapped_index) <symbol_name_at>: Likewise.
8674 (check_match): Likewise.
8675 (check_find_bounds_finds): Likewise.
8676 (test_mapped_index_find_name_component_bounds): Update.
8677 (CHECK_MATCH): Update.
8678 (dw2_expand_symtabs_matching): Update.
8679 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8680 per_objfile parameter.
8681 <find_vec_in_debug_names>: Likewise.
8682 <m_per_objfile>: New field.
8683 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8684 parameter.
8685 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8686 (dw2_debug_names_iterator::next): Update.
8687 (dw2_debug_names_lookup_symbol): Update.
8688 (dw2_debug_names_expand_symtabs_for_function): Update.
8689 (dw2_debug_names_map_matching_symbols): Update.
8690 (dw2_debug_names_expand_symtabs_matching): Update.
8691 (dwarf2_read_debug_names): Update.
8692
7188ed02
SM
86932020-05-27 Simon Marchi <simon.marchi@efficios.com>
8694
8695 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8696 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8697 move to dwarf2_per_objfile.
8698 <read_in_chain>: Remove.
8699 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8700 remove_all_cus, age_comp_units>: New methods.
8701 <m_dwarf2_cus>: New member.
8702 (struct dwarf2_per_cu_data) <cu>: Remove.
8703 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8704 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8705 moved to methods of dwarf2_per_objfile.
8706 (dwarf2_clear_marks): Remove.
8707 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8708 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8709 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8710 (dwarf2_per_objfile::remove_all_cus): New.
8711 (class free_cached_comp_units) <~free_cached_comp_units>:
8712 Update.
8713 (load_cu): Update.
8714 (dw2_do_instantiate_symtab): Adjust.
8715 (fill_in_sig_entry_from_dwo_entry): Adjust.
8716 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8717 (cutu_reader::cutu_reader): Likewise.
8718 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8719 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8720 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8721 and dwarf2_per_objfile::age_comp_units.
8722 (load_partial_comp_unit): Update.
8723 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8724 (process_queue): Likewise.
8725 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8726 backlink.
8727 (dwarf2_read_addr_index): Likewise.
8728 (follow_die_offset): Likewise.
8729 (dwarf2_fetch_die_loc_sect_off): Likewise.
8730 (dwarf2_fetch_constant_bytes): Likewise.
8731 (dwarf2_fetch_die_type_sect_off): Likewise.
8732 (follow_die_sig_1): Likewise.
8733 (load_full_type_unit): Likewise.
8734 (read_signatured_type): Likewise.
8735 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8736 (dwarf2_cu::~dwarf2_cu): Remove.
8737 (dwarf2_per_objfile::get_cu): New.
8738 (dwarf2_per_objfile::set_cu): New.
8739 (age_cached_comp_units): Rename to...
8740 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8741 to std::unordered_map.
8742 (free_one_cached_comp_unit): Rename to...
8743 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8744 to std::unordered_map.
8745 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8746 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8747 a dwarf2_per_objfile in data.
8748 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8749 (dwarf2_clear_marks): Remove.
8750
2e671100
SM
87512020-05-27 Simon Marchi <simon.marchi@efficios.com>
8752
8753 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8754 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8755 (init_tu_and_read_dwo_dies): Likewise.
8756 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8757 (cutu_reader::cutu_reader): Likewise.
8758 (load_partial_comp_unit): Likewise.
8759 (process_psymtab_comp_unit): Update.
8760 (build_type_psymtabs_1): Update.
8761 (process_skeletonless_type_unit): Update.
8762 (load_full_comp_unit): Update.
8763 (find_partial_die): Update.
8764 (dwarf2_read_addr_index): Update.
8765 (read_signatured_type): Update.
8766
2e6a9f79
SM
87672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8768
8769 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8770 m_header_read_in>: New fields.
8771 <get_header>: New method.
8772 * dwarf2/read.c (per_cu_header_read_in): Remove.
8773 (dwarf2_per_cu_data::get_header): New.
8774 (dwarf2_per_cu_data::addr_size): Update.
8775 (dwarf2_per_cu_data::offset_size): Update.
8776 (dwarf2_per_cu_data::ref_addr_size): Update.
8777
1b555f17
SM
87782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8779
8780 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8781 (dw2_do_instantiate_symtab): Update.
8782 (queue_and_load_all_dwo_tus): Change parameter from
8783 dwarf2_per_cu_data to dwarf2_cu.
8784 (dwarf2_fetch_die_loc_sect_off): Update.
8785 (dwarf2_fetch_constant_bytes): Update.
8786 (dwarf2_fetch_die_type_sect_off): Update.
8787
8fc0b21d
SM
87882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8789
8790 * dwarf2/read.c (process_full_comp_unit,
8791 process_full_type_unit): Remove per_cu, per_objfile paramters.
8792 Add dwarf2_cu parameter.
8793 (process_queue): Update.
8794
168c9250
SM
87952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8796
8797 * dwarf2/read.c (create_cu_from_index_list): Replace
8798 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8799 (create_cus_from_index_list): Likewise.
8800 (create_cus_from_index): Likewise.
8801 (create_signatured_type_table_from_index): Likewise.
8802 (create_cus_from_debug_names_list): Likewise.
8803 (create_cus_from_debug_names): Likewise.
8804 (dwarf2_read_gdb_index): Update.
8805 (dwarf2_read_debug_names): Update.
8806
e286671b
TT
88072020-05-27 Tom Tromey <tom@tromey.com>
8808 Simon Marchi <simon.marchi@efficios.com>
8809
8810 * dwarf2/read.h (struct dwarf2_per_objfile)
8811 <get_type_for_signatured_type, set_type_for_signatured_type>:
8812 New methods.
8813 <m_type_map>: New member.
8814 (struct signatured_type) <type>: Remove.
8815 * dwarf2/read.c
8816 (dwarf2_per_objfile::get_type_for_signatured_type,
8817 dwarf2_per_objfile::set_type_for_signatured_type): New.
8818 (get_signatured_type): Use new methods.
8819
8adb8487
TT
88202020-05-27 Tom Tromey <tom@tromey.com>
8821 Simon Marchi <simon.marchi@efficios.com>
8822
8823 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8824 (struct dwarf2_per_objfile) <type_units>: New member.
8825 <get_type_unit_group_unshareable>: New method.
8826 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8827 num_symtabs, symtabs>: Remove; move to
8828 type_unit_group_unshareable.
8829 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8830 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8831 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8832
127bbf4b
SM
88332020-05-27 Simon Marchi <simon.marchi@efficios.com>
8834
8835 * dwarf2/read.h (struct dwarf2_per_cu_data):
8836 <dwarf2_per_objfile>: Remove.
8837 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8838 dwarf2_per_objfile.
8839 (create_signatured_type_table_from_index): Likewise.
8840 (create_signatured_type_table_from_debug_names): Likewise.
8841 (create_debug_type_hash_table): Likewise.
8842 (fill_in_sig_entry_from_dwo_entry): Likewise.
8843 (create_type_unit_group): Likewise.
8844 (read_comp_units_from_section): Likewise.
8845 (create_cus_hash_table): Likewise.
8846
f6e649dd
SM
88472020-05-27 Simon Marchi <simon.marchi@efficios.com>
8848
8849 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8850 dwarf2_per_cu_data::dwarf2_per_objfile.
8851 (compute_compunit_symtab_includes): Likewise.
8852 (dwarf2_cu::start_symtab): Likewise.
8853
aa66c379
SM
88542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8855
8856 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8857 parameter.
8858 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8859 (read_namespace_alias): Update.
8860 (lookup_die_type): Update.
8861 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8862 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8863 Update.
8864 (disassemble_dwarf_expression): Update.
8865
120ce1b5
SM
88662020-05-27 Simon Marchi <simon.marchi@efficios.com>
8867
8868 * dwarf2/read.h (struct dwarf2_queue_item): Add
8869 dwarf2_per_objfile parameter, assign new parameter.
8870 <per_objfile>: New field.
8871 * dwarf2/read.c (free_one_cached_comp_unit): Add
8872 dwarf2_per_objfile parameter.
8873 (queue_comp_unit): Likewise.
8874 (dw2_do_instantiate_symtab): Update.
8875 (process_psymtab_comp_unit): Update.
8876 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8877 (process_imported_unit_die): Update.
8878 (queue_and_load_dwo_tu): Update.
8879 (follow_die_offset): Update.
8880 (follow_die_sig_1): Update.
8881
9f47c707
SM
88822020-05-27 Simon Marchi <simon.marchi@efficios.com>
8883
8884 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8885 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8886 (read_call_site_scope): Assign per_objfile.
8887 (dwarf2_per_cu_data::objfile): Remove.
8888 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8889 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8890 dwarf2_per_objfile parameter.
8891 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8892 dwarf2_per_objfile parameter.
8893 (dwarf_expr_reg_to_entry_parameter): Add output
8894 dwarf2_per_objfile parameter.
8895 (locexpr_get_frame_base): Update.
8896 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8897 <push_dwarf_reg_entry_value>: Update.
8898 <call_site_to_target_addr>: Update.
8899 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8900 parameter.
8901 (value_of_dwarf_reg_entry): Update.
8902 (rw_pieced_value): Update.
8903 (indirect_synthetic_pointer): Update.
8904 (dwarf2_evaluate_property): Update.
8905 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8906 parameter.
8907 (locexpr_read_variable): Update.
8908 (locexpr_get_symbol_read_needs): Update.
8909 (loclist_read_variable): Update.
8910
14095eb3
SM
89112020-05-27 Simon Marchi <simon.marchi@efficios.com>
8912
8913 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8914 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8915 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8916 parameter.
8917 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8918 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8919 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8920 parameter.
8921 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8922 sect_variable_value): Add dwarf2_per_objfile parameter.
8923 (class dwarf_evaluate_loc_desc) <dwarf_call,
8924 dwarf_variable_value>: Update.
8925 (fetch_const_value_from_synthetic_pointer): Add
8926 dwarf2_per_objfile parameter.
8927 (fetch_const_value_from_synthetic_pointer): Update.
8928 (coerced_pieced_ref): Update.
8929 (class symbol_needs_eval_context) <dwarf_call,
8930 dwarf_variable_value>: Update.
8931 (dwarf2_compile_expr_to_ax): Update.
8932
3c3cd3d4
SM
89332020-05-27 Simon Marchi <simon.marchi@efficios.com>
8934
8935 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8936 parameter.
8937 (dwarf2_evaluate_loc_desc_full): Update.
8938
82ca3f51
SM
89392020-05-27 Simon Marchi <simon.marchi@efficios.com>
8940
8941 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8942 parameter.
8943 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8944 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8945 dwarf2_per_objfile parameter.
8946 (decode_debug_loc_dwo_addresses): Likewise.
8947 (dwarf2_find_location_expression): Update.
8948 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8949 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8950 parameter.
8951 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8952 parameter.
8953 (locexpr_describe_location_1): Likewise.
8954 (locexpr_describe_location): Update.
8955
4b167ea1
SM
89562020-05-27 Simon Marchi <simon.marchi@efficios.com>
8957
8958 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8959 Remove.
8960 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8961 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8962 (dwarf2_compile_property_to_c): Update.
8963 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8964 use text offset from objfile.
8965 (locexpr_tracepoint_var_ref): Update.
8966 (locexpr_generate_c_location): Update.
8967 (loclist_describe_location): Update.
8968 (loclist_tracepoint_var_ref): Update.
8969 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8970 dwarf2_per_objfile parameter.
8971 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8972 use text offset from objfile.
8973 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8974
89b07335
SM
89752020-05-27 Simon Marchi <simon.marchi@efficios.com>
8976
8977 * dwarf2/expr.h (struct dwarf_expr_context)
8978 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8979 <offset>: Remove.
8980 <per_objfile>: New member.
8981 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8982 dwarf2_per_objfile parameter. Don't set offset, set
8983 per_objfile.
8984 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8985 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8986 a dwarf2_per_objfile object instead of an offset.
8987 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8988 constructor.
8989 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8990 to dwarf2_expr_executor constructor. Don't set offset.
8991 (dwarf2_fetch_cfa_info): Update.
8992 (struct dwarf2_frame_cache) <text_offset>: Remove.
8993 <per_objfile>: New field.
8994 (dwarf2_frame_cache): Update.
8995 (dwarf2_frame_prev_register): Update.
8996 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8997 <dwarf_evaluate_loc_desc>: Add constructor.
8998 (dwarf2_evaluate_loc_desc_full): Update.
8999 (dwarf2_locexpr_baton_eval): Update.
9000 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9001 Add constructor.
9002 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9003
293e7e51
SM
90042020-05-27 Simon Marchi <simon.marchi@efficios.com>
9005
9006 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9007 addr_sized_int_type>: Move to dwarf2_cu.
9008 <int_type>: Move to dwarf2_per_objfile.
9009 (struct dwarf2_per_objfile) <int_type>: Move here.
9010 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9011 addr_sized_int_type>: Move here.
9012 (read_func_scope): Update.
9013 (read_array_type): Update.
9014 (read_tag_string_type): Update.
9015 (attr_to_dynamic_prop): Update.
9016 (dwarf2_per_cu_data::int_type): Rename to...
9017 (dwarf2_per_objfile::int_type): ... this.
9018 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9019 (dwarf2_cu::addr_sized_int_type): ... this.
9020 (read_subrange_type): Update.
9021 (dwarf2_per_cu_data::addr_type): Rename to...
9022 (dwarf2_cu::addr_type): ... this.
9023 (set_die_type): Update.
9024
64874a40
SM
90252020-05-27 Simon Marchi <simon.marchi@efficios.com>
9026
9027 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9028 data through per_cu->cu.
9029
4ab09049
SM
90302020-05-27 Simon Marchi <simon.marchi@efficios.com>
9031
9032 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9033 dwarf2_per_cu_data parameter fo dwarf2_cu.
9034 (lookup_dwo_type_unit): Likewise.
9035 (read_cutu_die_from_dwo): Likewise.
9036 (lookup_dwo_unit): Likewise.
9037 (open_and_init_dwo_file): Likewise.
9038 (lookup_dwo_cutu): Likewise.
9039 (lookup_dwo_comp_unit): Likewise.
9040 (lookup_dwo_type_unit): Likewise.
9041 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9042 (cutu_reader::cutu_reader): Update.
9043
47b14e86
SM
90442020-05-27 Simon Marchi <simon.marchi@efficios.com>
9045
9046 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9047 parameter.
9048 (process_full_type_unit): Likewise.
9049 (process_queue): Update.
9050
43182c09
SM
90512020-05-27 Simon Marchi <simon.marchi@efficios.com>
9052
9053 * dwarf2/read.c (recursively_compute_inclusions): Add
9054 dwarf2_per_objfile parameter.
9055 (compute_compunit_symtab_includes): Likewise.
9056 (process_cu_includes): Update.
9057
7aa104c4
SM
90582020-05-27 Simon Marchi <simon.marchi@efficios.com>
9059
9060 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9061 parameter.
9062 (create_type_unit_group): Update.
9063 (process_psymtab_comp_unit_reader): Update.
9064 (build_type_psymtabs_reader): Update.
9065
e3beb21d
SM
90662020-05-27 Simon Marchi <simon.marchi@efficios.com>
9067
9068 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9069 object through m_this_cu->cu.
9070
d460f660
SM
90712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9072
9073 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9074 the info parameter.
9075 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9076
ab432490
SM
90772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9078
9079 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9080 per_objfile parameter.
9081 (load_full_type_unit): Add per_objfile parameter.
9082 (read_signatured_type): Likewise.
9083 (load_full_comp_unit): Likewise.
9084 (load_cu): Likewise.
9085 (dw2_do_instantiate_symtab): Likewise.
9086 (dw2_get_file_names): Likewise.
9087 (dw2_map_symtabs_matching_filename): Update.
9088 (dw_expand_symtabs_matching_file_matcher): Update.
9089 (dw2_map_symbol_filenames): Update.
9090 (process_psymtab_comp_unit): Add per_objfile parameter.
9091 (build_type_psymtabs_1): Update.
9092 (process_skeletonless_type_unit): Update.
9093 (dwarf2_build_psymtabs_hard): Update.
9094 (load_partial_comp_unit): Add per_objfile parameter.
9095 (scan_partial_symbols): Update.
9096 (load_full_comp_unit): Add per_objfile parameter.
9097 (process_imported_unit_die): Update.
9098 (create_cus_hash_table): Update.
9099 (find_partial_die): Update.
9100 (dwarf2_read_addr_index): Update.
9101 (follow_die_offset): Update.
9102 (dwarf2_fetch_die_loc_sect_off): Update.
9103 (dwarf2_fetch_constant_bytes): Update.
9104 (dwarf2_fetch_die_type_sect_off): Update.
9105 (follow_die_sig_1): Update.
9106 (load_full_type_unit): Add per_objfile parameter.
9107 (read_signatured_type): Likewise.
9108
313bad1b
SM
91092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9110
9111 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9112 of objfile_name.
9113
c3699833
SM
91142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9115
9116 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9117 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9118 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9119 field.
9120 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9121 (create_cus_from_index): Update.
9122 (dwarf2_read_gdb_index): Update.
9123 (create_cus_from_debug_names): Update.
9124 (dwarf2_read_debug_names): Update.
9125 (get_abbrev_section_for_cu): Update.
9126 (create_all_comp_units): Update.
9127 (read_attribute_value): Update.
9128 (get_debug_line_section): Update.
9129 * dwarf2/index-cache.c (index_cache::store): Update.
9130 * dwarf2/index-write.c (save_gdb_index_command): Update.
9131 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9132
1859c670
SM
91332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9134
9135 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9136 member.
9137 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9138 dwarf2_per_cu_data::per_bfd.
9139 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9140 (create_type_unit_group): Likewise.
9141 (queue_comp_unit): Remove reference to
9142 per_cu->dwarf2_per_objfile.
9143 (maybe_queue_comp_unit): Likewise.
9144 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9145 (create_cus_hash_table): Assign new field.
9146
5e22e966
SM
91472020-05-27 Simon Marchi <simon.marchi@efficios.com>
9148
9149 * dwarf2/read.c: Replace
9150 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9151 dwarf2_cu->per_objfile throughout.
9152
97a1449a
SM
91532020-05-27 Simon Marchi <simon.marchi@efficios.com>
9154
9155 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9156 parameter, don't use per_cu->dwarf2_per_objfile.
9157 (dw2_instantiate_symtab): Likewise.
9158 (dw2_find_last_source_symtab): Update.
9159 (dw2_map_expand_apply): Update.
9160 (dw2_lookup_symbol): Update.
9161 (dw2_expand_symtabs_for_function): Update.
9162 (dw2_expand_all_symtabs): Update.
9163 (dw2_expand_symtabs_with_fullname): Update.
9164 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9165 don't use per_cu->dwarf2_per_objfile.
9166 (dw2_expand_marked_cus): Update.
9167 (dw2_find_pc_sect_compunit_symtab): Update.
9168 (dw2_debug_names_lookup_symbol): Update.
9169 (dw2_debug_names_expand_symtabs_for_function): Update.
9170 (dw2_debug_names_map_matching_symbols): Update.
9171 (dwarf2_psymtab::expand_psymtab): Update.
9172
9e021579
SM
91732020-05-27 Simon Marchi <simon.marchi@efficios.com>
9174
9175 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9176 <per_objfile>: New member.
9177 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9178 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9179 call to dwarf2_cu.
9180 (cutu_reader::cutu_reader): Update.
9181 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9182
ae090bdb
SM
91832020-05-27 Simon Marchi <simon.marchi@efficios.com>
9184
9185 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9186 struct dwarf2_per_objfile.
9187 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9188 dwarf2_per_bfd.
9189 * dwarf2/read.c (set_die_type): Update.
9190 (get_die_type_at_offset): Update.
9191
af758d11
SM
91922020-05-27 Tom Tromey <tom@tromey.com>
9193 Simon Marchi <simon.marchi@efficios.com>
9194
9195 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9196 method.
9197 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9198 get_symtab, set_symtab>: New methods.
9199 <m_symtabs>: New field.
9200 (struct dwarf2_psymtab): Derive from partial_symtab.
9201 <readin_p, get_compunit_symtab>: Declare methods.
9202 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9203 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9204 New methods.
9205 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9206 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9207 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9208 (dw2_symtab_iter_next, dw2_print_stats)
9209 (dw2_expand_symtabs_with_fullname)
9210 (dw2_expand_symtabs_matching_one)
9211 (dw_expand_symtabs_matching_file_matcher)
9212 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9213 (dw2_debug_names_iterator::next)
9214 (dw2_debug_names_map_matching_symbols)
9215 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9216 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9217 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9218 New methods.
9219 (get_compunit_symtab, process_full_comp_unit)
9220 (process_full_type_unit): Update.
9221 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9222
5989a64e
SM
92232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9224
9225 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9226 then introduce a new dwarf2_per_objfile type.
9227 <read_line_string>: Move to the new dwarf2_per_objfile type.
9228 <objfile>: Likewise.
9229 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9230 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9231 dwarf2_per_objfile->per_bfd.
9232 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9233 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9234 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9235 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9236 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9237 (dwarf2_per_objfile::locate_sections): Rename to...
9238 (dwarf2_per_bfd::locate_sections): ... this.
9239 (dwarf2_per_objfile::get_cutu): Rename to...
9240 (dwarf2_per_bfd::get_cutu): ... this.
9241 (dwarf2_per_objfile::get_cu): Rename to...
9242 (dwarf2_per_bfd::get_cu): ... this.
9243 (dwarf2_per_objfile::get_tu): Rename to...
9244 (dwarf2_per_bfd::get_tu): ... this.
9245 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9246 (dwarf2_per_bfd::allocate_per_cu): ... this.
9247 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9248 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9249 (get_gdb_index_contents_ftype): Change parameter from
9250 dwarf2_per_objfile to dwarf2_per_bfd.
9251 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9252 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9253
a50264ba
TT
92542020-05-27 Tom Tromey <tom@tromey.com>
9255 Simon Marchi <simon.marchi@efficios.com>
9256
9257 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9258 (allocate_piece_closure): Set "per_objfile" member.
9259 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9260 (locexpr_describe_location, loclist_describe_location): Use new
9261 member.
9262 * dwarf2/read.c (read_call_site_scope)
9263 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9264 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9265 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9266 handle_data_member_location): Set per_objfile member.
9267 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9268 member.
9269 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9270
d3473f0c
TT
92712020-05-27 Tom Tromey <tom@tromey.com>
9272
9273 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9274 allocate_signatured_type>: Declare new methods.
9275 <m_num_psymtabs>: New member.
9276 (struct dwarf2_per_cu_data) <index>: New member.
9277 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9278 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9279 (create_cu_from_index_list): Use allocate_per_cu.
9280 (create_signatured_type_table_from_index)
9281 (create_signatured_type_table_from_debug_names)
9282 (create_debug_type_hash_table, add_type_unit)
9283 (read_comp_units_from_section): Use allocate_signatured_type.
9284
5717c425
TT
92852020-05-27 Tom Tromey <tom@tromey.com>
9286
9287 * psymtab.c (partial_map_expand_apply)
9288 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9289 (psym_lookup_global_symbol_language)
9290 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9291 (psym_print_stats, psym_expand_symtabs_for_function)
9292 (psym_map_symbol_filenames, psym_map_matching_symbols)
9293 (psym_expand_symtabs_matching)
9294 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9295 (maintenance_check_psymtabs): Update.
9296 * psympriv.h (struct partial_symtab) <readin_p,
9297 get_compunit_symtab>: Add objfile parameter.
9298 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9299 Likewise.
9300 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9301 get_compunit_symtab>: Likewise.
9302 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9303
45940949
TT
93042020-05-27 Tom Tromey <tom@tromey.com>
9305
9306 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9307 member.
9308 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9309 (create_cu_from_index_list)
9310 (create_signatured_type_table_from_index)
9311 (create_signatured_type_table_from_debug_names)
9312 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9313 (dwarf2_create_include_psymtab)
9314 (create_debug_type_hash_table, add_type_unit)
9315 (create_type_unit_group, read_comp_units_from_section)
9316 (dwarf2_compute_name, create_cus_hash_table)
9317 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9318 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9319 obstack.
9320 (dw2_get_real_path): Likewise. Change argument to
9321 dwarf2_per_objfile.
9322
f8c6d152
LM
93232020-05-27 Luis Machado <luis.machado@linaro.org>
9324
9325 PR tdep/26000
9326 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9327 for ldrd (immediate).
9328
e98d2e6d
PW
93292020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9330
9331 * command.h: Add comment giving the name of class_tui.
9332 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9333 create the fake command for the help for class_tui.
9334
53a47a3e
TT
93352020-05-26 Tom Tromey <tromey@adacore.com>
9336
9337 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9338 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9339 (val_atr): New function.
9340 (value_val_atr): Use it.
9341 * ada-valprint.c (print_optional_low_bound): Change low bound
9342 handling for enums.
9343 (val_print_packed_array_elements): Don't call discrete_position.
9344 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9345 discrete_position for enum types.
9346 * language.c (default_print_array_index): Change type.
9347 * language.h (struct language_defn) <la_print_array_index>: Add
9348 index_type parameter, change type of index_value.
9349 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9350 (default_print_array_index): Update.
9351 * valprint.c (maybe_print_array_index): Don't call
9352 value_from_longest. Update.
9353 (value_print_array_elements): Don't call discrete_position.
9354
0bc2354b
TT
93552020-05-26 Tom Tromey <tromey@adacore.com>
9356
9357 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9358 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9359
1218a4bf
CDA
93602020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9361
9362 PR gdb/13519
9363 * avr-tdep.c (avr_integer_to_address): Return data or code
9364 address accordingly to the second 'type' argument of the
9365 function.
9366
92651b1d
MW
93672020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9368
9369 * infcmd.c, inferior.h: (construct_inferior_arguments):
9370 Moved function from here to gdbsupport/common-inferior.{h,cc}
9371
0a4f5f8c
TT
93722020-05-23 Tom Tromey <tom@tromey.com>
9373
9374 Revert commit eca1f90c:
9375 * NEWS: Remove entry for completion styling.
9376 * completer.c (_rl_completion_prefix_display_length): Move
9377 declaration later.
9378 (gdb_fnprint): Revert.
9379 (gdb_display_match_list_1): Likewise.
9380 * cli/cli-style.c (completion_prefix_style)
9381 (completion_difference_style, completion_suffix_style): Remove.
9382 (_initialize_cli_style): Revert.
9383 * cli/cli-style.h (completion_prefix_style)
9384 (completion_difference_style, completion_suffix_style): Don't
9385 declare.
9386
e08bd6c5
PA
93872020-05-24 Pedro Alves <palves@redhat.com>
9388
9389 * symtab.c (completion_list_add_name): Return boolean indication
9390 of whether the symbol matched.
9391 (completion_list_add_symbol): Don't try to remove C++ aliases if
9392 the symbol didn't match in the first place.
9393 * symtab.h (completion_list_add_name): Return bool.
9394
ceacbf6e
SM
93952020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9396
9397 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9398 type::field.
9399
26f16254
JB
94002020-05-23 Joel Brobecker <brobecker@adacore.com>
9401
9402 GDB 9.2 released.
9403
eca1f90c
TT
94042020-05-23 Tom Tromey <tom@tromey.com>
9405
9406 * NEWS: Add entry for completion styling.
9407 * completer.c (_rl_completion_prefix_display_length): Move
9408 declaration earlier.
9409 (gdb_fnprint): Use completion_style.
9410 (gdb_display_match_list_1): Likewise.
9411 * cli/cli-style.c (completion_prefix_style)
9412 (completion_difference_style, completion_suffix_style): New
9413 globals.
9414 (_initialize_cli_style): Register new globals.
9415 * cli/cli-style.h (completion_prefix_style)
9416 (completion_difference_style, completion_suffix_style): Declare.
9417
51e2cfa2
PA
94182020-05-23 Pedro Alves <palves@redhat.com>
9419
9420 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9421 (parse_escape): Use ISDIGIT instead of isdigit.
9422 (puts_debug): Use gdb_isprint instead of isprint.
9423 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9424 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9425 ISSPACE instead of isspace.
9426 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9427 instead of isspace.
9428 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9429 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9430 instead of isxdigit and ISDIGIT instead of isdigit.
9431
80fc5e77
SM
94322020-05-22 Simon Marchi <simon.marchi@efficios.com>
9433
9434 * gdbtypes.h (struct type) <field>: New method.
9435 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9436 or type::field.
9437
3cabb6b0
SM
94382020-05-22 Simon Marchi <simon.marchi@efficios.com>
9439
9440 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9441 (TYPE_FIELDS): Use type::fields. Change all call sites that
9442 modify the propery to use type::set_fields instead.
9443
1f704f76
SM
94442020-05-22 Simon Marchi <simon.marchi@efficios.com>
9445
9446 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9447 type::num_fields instead.
9448
5e33d5f4
SM
94492020-05-22 Simon Marchi <simon.marchi@efficios.com>
9450
9451 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9452 methods.
9453 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9454 that modify the number of fields to use type::set_num_fields
9455 instead.
9456
9392ebb3
TT
94572020-05-22 Tom Tromey <tromey@adacore.com>
9458
9459 * compile/compile-object-load.h (munmap_list_free): Don't
9460 declare.
9461
7c13f4e8
AB
94622020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9463
9464 * annotate.c (annotate_source_line): Update return type, add call
9465 to update current symtab and line.
9466 * annotate.h (annotate_source_line): Update return type, and
9467 extend header comment.
9468 * source.c (info_line_command): Check annotation_level before
9469 calling annotate_source_line.
9470 * stack.c (print_frame_info): If calling annotate_source_line
9471 returns true, then don't print any other source line information.
9472
aa370940
SM
94732020-05-21 Simon Marchi <simon.marchi@efficios.com>
9474
9475 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9476
84d53fa9
SM
94772020-05-21 Simon Marchi <simon.marchi@efficios.com>
9478
9479 * coffread.c (patch_type): Remove NULL check before xfree.
9480 * corefile.c (set_gnutarget): Likewise.
9481 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9482 * exec.c (build_section_table): Likewise.
9483 * remote.c (remote_target::pass_signals): Likewise.
9484 * utils.c (n_spaces): Likewise.
9485 * cli/cli-script.c (document_command): Likewise.
9486 * i386-windows-tdep.c (core_process_module_section): Likewise.
9487 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9488
9d428aae
SM
94892020-05-20 Simon Marchi <simon.marchi@efficios.com>
9490
9491 * symfile.c (reread_symbols): Clear objfile's section_offsets
9492 vector and section indices, re-compute them by calling
9493 sym_offsets.
9494
250106a7
TT
94952020-05-20 Tom Tromey <tromey@adacore.com>
9496
9497 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9498 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9499
9a0bacfb
TV
95002020-05-20 Tom de Vries <tdevries@suse.de>
9501
9502 PR symtab/25833
9503 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9504
7b958a48
AM
95052020-05-20 Alan Modra <amodra@gmail.com>
9506
9507 PR 25993
9508 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9509 bfd_set_filename.
9510 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9511 passed to bfd_set_filename.
9512 * symfile-mem.c (add_vsyscall_page): Likewise for string
9513 passed to symbol_file_add_from_memory.
9514 (symbol_file_add_from_memory): Make name param a const char* and
9515 don't strdup.
9516
c7e97679
AM
95172020-05-20 Alan Modra <amodra@gmail.com>
9518
9519 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9520 rather than accessing bfd->filename directly.
9521 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9522 and use bfd_section_name.
9523 * dwarf2/frame.c (decode_frame_entry): Likewise.
9524 * exec.c (exec_set_section_address): Likewise.
9525 * solib-aix.c (solib_aix_bfd_open): Likewise.
9526 * stap-probe.c (get_stap_base_address): Likewise.
9527 * symfile.c (reread_symbols): Likewise.
9528
563c591b
TT
95292020-05-19 Tom Tromey <tromey@adacore.com>
9530
9531 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9532
f408d82c
SM
95332020-05-19 Simon Marchi <simon.marchi@efficios.com>
9534
9535 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9536
98c59b52
PA
95372020-05-19 Pedro Alves <palves@redhat.com>
9538
9539 * NEWS (set exec-file-mismatch): Adjust entry.
9540 * exec.c: Include "build-id.h".
9541 (validate_exec_file): Try to match build IDs instead of filenames.
9542 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9543 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9544 and pass down 'warn_if_slow'.
9545 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9546 gdb_bfd_open_closure to pass it down.
9547 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9548
4111f652
PA
95492020-05-19 Pedro Alves <palves@redhat.com>
9550
9551 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9552 * target.c (target_fileio_open_1): Rename to target_fileio_open
9553 and make extern. Use bool.
9554 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9555 (target_fileio_read_alloc_1): Adjust.
9556 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9557 (target_fileio_open_warn_if_slow): Delete declaration.
9558
ad80db5b
PA
95592020-05-19 Pedro Alves <palves@redhat.com>
9560
9561 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9562 Adjust all callers.
9563
1d6ce4d3
YS
95642020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9565
9566 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9567 whether disp is negative.
9568
9005fbbb
SM
95692020-05-19 Simon Marchi <simon.marchi@efficios.com>
9570
9571 * symfile.h (struct symfile_segment_data)
9572 <~symfile_segment_data>: Remove.
9573 <segment_info>: Change to std::vector.
9574 * symfile.c (default_symfile_segments): Update.
9575 * elfread.c (elf_symfile_segments): Update.
9576
68b888ff
SM
95772020-05-19 Simon Marchi <simon.marchi@efficios.com>
9578
9579 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9580 <segments>: New.
9581 <segment_bases, segment_sizes>: Remove.
9582 * symfile.c (default_symfile_segments): Update.
9583 * elfread.c (elf_symfile_segments): Update.
9584 * remote.c (remote_target::get_offsets): Update.
9585 * solib-target.c (solib_target_relocate_section_addresses):
9586 Update.
9587
62982abd
SM
95882020-05-19 Simon Marchi <simon.marchi@efficios.com>
9589
9590 * symfile.h (struct symfile_segment_data): Initialize fields.
9591 <~symfile_segment_data>: Add.
9592 (symfile_segment_data_up): New.
9593 (struct sym_fns) <sym_segments>: Return a
9594 symfile_segment_data_up.
9595 (default_symfile_segments): Return a symfile_segment_data_up.
9596 (free_symfile_segment_data): Remove.
9597 (get_symfile_segment_data): Return a symfile_segment_data_up.
9598 * symfile.c (default_symfile_segments): Likewise.
9599 (get_symfile_segment_data): Likewise.
9600 (free_symfile_segment_data): Remove.
9601 (symfile_find_segment_sections): Update.
9602 * elfread.c (elf_symfile_segments): Return a
9603 symfile_segment_data_up.
9604 * remote.c (remote_target::get_offsets): Update.
9605 * solib-target.c (solib_target_relocate_section_addresses):
9606 Update.
9607 * symfile-debug.c (debug_sym_segments): Return a
9608 symfile_segment_data_up.
9609
7f204339
RO
96102020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9611
e52a0f1b
RO
9612 PR build/25981
9613 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9614 Hardcode register numbers.
9615
7f204339
RO
9616 PR build/25981
9617 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9618 procfs_find_LDT_entry): Remove.
9619 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9620 procfs_find_LDT_entry): Remove.
9621 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9622 Remove.
9623
7f32a4d5
PA
96242020-05-17 Pedro Alves <palves@redhat.com>
9625 Andrew Burgess <andrew.burgess@embecosm.com>
9626 Keno Fischer <keno@juliacomputing.com>
9627
9628 PR gdb/25741
9629 * breakpoint.c (build_target_condition_list): Update comments.
9630 (build_target_command_list): Update comments and skip matching
9631 locations.
9632 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9633 a separate function. Simplify "set breakpoint auto-hw off"
9634 handling.
9635 (insert_breakpoints): Update comment.
9636 (tracepoint_locations_match): New parameter. For breakpoints,
9637 compare location types too, if the caller wants to.
9638 (handle_automatic_hardware_breakpoints): New functions.
9639 (bp_location_is_less_than): Also sort by location type and
9640 hardware breakpoint length.
9641 (update_global_location_list): Handle "set breakpoint auto-hw on"
9642 here.
9643 (update_breakpoint_locations): Ask breakpoint_locations_match to
9644 ignore location types.
9645
7d93a1e0
SM
96462020-05-16 Simon Marchi <simon.marchi@efficios.com>
9647
9648 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9649 type::name instead.
9650
d0e39ea2
SM
96512020-05-16 Simon Marchi <simon.marchi@efficios.com>
9652
9653 * gdbtypes.h (struct type) <name, set_name>: New methods.
9654 (TYPE_CODE): Use type::name. Change all call sites used to set
9655 the name to use type::set_name instead.
9656
2dab0c7b
TT
96572020-05-16 Tom Tromey <tom@tromey.com>
9658
9659 * top.c (quit_force): Update.
9660 * infrun.c (handle_no_resumed): Update.
9661 * top.h (all_uis): New function.
9662 (ALL_UIS): Remove.
9663
59f7bd8d
SM
96642020-05-16 Simon Marchi <simon.marchi@efficios.com>
9665
9666 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9667
9bf058f0
PA
96682020-05-16 Pedro Alves <palves@redhat.com>
9669
9670 * ia64-linux-nat.c
9671 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9672 Declare method.
9673 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9674
8f86ae1a
SM
96752020-05-15 Simon Marchi <simon.marchi@efficios.com>
9676
9677 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9678 (sparc64_adi_info): Likewise.
9679
d6bc0792
TT
96802020-05-15 Tom Tromey <tom@tromey.com>
9681
9682 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9683 block_objfile.
9684 (lookup_objfile_from_block): Remove.
9685 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9686 (lookup_global_symbol): Use block_objfile.
9687 * symtab.h (lookup_objfile_from_block): Don't declare.
9688 * printcmd.c (clear_dangling_display_expressions): Use
9689 block_objfile.
9690 * parse.c (operator_check_standard): Use block_objfile.
9691
8c14c3a3
TT
96922020-05-15 Tom Tromey <tom@tromey.com>
9693
9694 * language.c (language_alloc_type_symbol): Set
9695 SYMBOL_SECTION.
9696 * symtab.c (initialize_objfile_symbol): Remove.
9697 (allocate_symbol): Remove.
9698 (allocate_template_symbol): Remove.
9699 * dwarf2/read.c (fixup_go_packaging): Use "new".
9700 (new_symbol): Use "new".
9701 (read_variable): Don't call initialize_objfile_symbol. Use
9702 "new".
9703 (read_func_scope): Use "new".
9704 * xcoffread.c (process_xcoff_symbol): Don't call
9705 initialize_objfile_symbol.
9706 (SYMBOL_DUP): Remove.
9707 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9708 "new".
9709 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9710 (allocate_template_symbol): Don't declare.
9711 (struct symbol): Add copy constructor. Change defaults.
9712 * jit.c (finalize_symtab): Use "new".
9713 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9714 Use "new".
9715 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9716 (common_block_end): Use "new".
9717 * mdebugread.c (parse_symbol): Use "new".
9718 (new_symbol): Likewise.
9719
5b4a1a8d
PW
97202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9721
9722 * NEWS: Mention changes to help and apropos.
9723
57b4f16e
PW
97242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9725
9726 * command.h (enum command_class): Improve comments, document
9727 that class_alias is for user-defined aliases, give the class
9728 name for each class, remove unused class_xdb.
9729 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9730 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9731 by a precise class.
9732 * infcmd.c (_initialize_infcmd): Likewise.
9733 * reverse.c (_initialize_reverse): Likewise.
9734 * stack.c (_initialize_stack): Likewise.
9735 * symfile.c (_initialize_symfile): Likewise.
9736 * tracepoint.c (_initialize_tracepoint): Likewise.
9737
7c05caf7
PW
97382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9739
9740 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9741 when their aliased command is traversed.
9742 (help_cmd): Add fput_command_names_styled call to
9743 output command name and aliases when command has an alias.
9744
3b3aaacb
PW
97452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9746
9747 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9748 * cli/cli-decode.c (help_cmd_list): Declare as static,
9749 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9750 a command together with the command.
9751 (fput_command_name_styled, fput_command_names_styled): New functions.
9752 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9753 fput_command_name_styled.
9754 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9755 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9756
7aa1b46f
PW
97572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9758
9759 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9760 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9761 * command.h (cmd_show_list): Likewise.
9762 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9763 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9764
89bcba74
PW
97652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9766
9767 * unittests/command-def-selftests.c (traverse_command_structure):
9768 Verify all commands of a list have the same prefix command and
9769 that only the top cmdlist commands have a null prefix.
9770
3f4d92eb
PW
97712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9772
9773 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9774 as prefix, not one of its aliases.
9775 (set_cmd_prefix): Remove.
9776 (do_add_cmd): Centralize the setting of the prefix of a command, when
9777 command is defined after its full chain of prefix commands.
9778 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9779 (add_setshow_cmd_full): Likewise.
9780 (update_prefix_field_of_prefixed_commands): New function.
9781 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9782 update_prefix_field_of_prefixed_commands.
9783 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9784 addresses of remote_set_cmdlist and remote_show_cmdlist given
9785 as argument, not the address of an argument.
9786 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9787 * gdb/remote.c (_initialize_remote): Likewise.
9788
0605465f
PW
97892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9790
9791 * cli/cli-cmds.c (alias_command): Check for an existing alias
9792 using lookup_cmd_composition, as valid_command_p is too strict
9793 and forbids aliases that are the prefix of an existing alias
9794 or command.
9795 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9796 command is properly recognised as a valid command.
9797
58e6ac70
PW
97982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9799
9800 * unittests/help-doc-selftests.c: Rename to
9801 unittests/command-def-selftests.c
9802 * unittests/command-def-selftests.c (help_doc_tests): Update some
9803 comments.
9804 (command_structure_tests, traverse_command_structure): New namespace
9805 and function.
9806 (command_structure_invariants_tests): New function.
9807 (_initialize_command_def_selftests) Renamed from
9808 _initialize_help_doc_selftests, register command_structure_invariants
9809 selftest.
9810
a7b9ceb8
PW
98112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9812
9813 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9814 an alias of 'show'.
9815
b2188a06
JB
98162020-05-15 Joel Brobecker <brobecker@adacore.com>
9817
9818 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9819 ada_is_fixed_point_type. Update all callers.
9820 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9821 all callers.
9822 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9823 Update all callers.
9824 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9825 print_fixed_point_type. Update all callers.
9826 * ada-valprint.c (ada_value_print_num): Replace call to
9827 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9828
a51951c2
KB
98292020-05-14 Kevin Buettner <kevinb@redhat.com>
9830
9831 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9832 processors.
9833 (cpu_supports_bts): Add CV_AMD case.
9834
29d6859f
LM
98352020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9836 Simon Marchi <simon.marchi@efficios.com>
9837
9838 * infrun.c (stop_all_threads): Collect multiple wait events at
9839 each pass.
9840
78134374
SM
98412020-05-14 Simon Marchi <simon.marchi@efficios.com>
9842
9843 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9844 type::code instead.
9845
67607e24
SM
98462020-05-14 Simon Marchi <simon.marchi@efficios.com>
9847
9848 * gdbtypes.h (struct type) <code, set_code>: New methods.
9849 (TYPE_CODE): Use type::code. Change all call sites used to set
9850 the code to use type::set_code instead.
9851
a05575d3
TBA
98522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9853 Tom de Vries <tdevries@suse.de>
9854 Pedro Alves <palves@redhat.com>
9855
9856 PR threads/25478
9857 * infrun.c (stop_all_threads): Do NOT ignore
9858 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9859 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9860 received.
9861 (handle_no_resumed): Remove code handling a live inferior with no
9862 threads.
9863 * remote.c (has_single_non_exited_thread): New.
9864 (remote_target::update_thread_list): Do not delete a thread if is
9865 the last thread of the process.
9866 * thread.c (thread_select): Call delete_exited_threads instead of
9867 prune_threads.
9868
6ad82919
TBA
98692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9870
9871 * infrun.c (stop_all_threads): Enable/disable thread events of all
9872 targets. Move a debug message denoting the end of the function
9873 into the SCOPED_EXIT block.
9874
d890404b
TBA
98752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9876
9877 * process-stratum-target.h: Include <set>.
9878 (all_non_exited_process_targets, switch_to_target_no_thread): New
9879 function declarations.
9880 * process-stratum-target.c (all_non_exited_process_targets)
9881 (switch_to_target_no_thread): New function implementations.
9882
293b3ebc
TBA
98832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9884
9885 * infrun.c (handle_inferior_event): Extract out a piece of code
9886 into...
9887 (mark_non_executing_threads): ...this new function.
9888
7ca9b62a
TBA
98892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9890
9891 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9892 use.
9893
fc75c28b
TBA
98942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9895
9896 * regcache.c (regcache_read_pc_protected): New function
9897 implementation that returns 0 if the PC cannot read via
9898 'regcache_read_pc'.
9899 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9900 instead of 'regcache_read_pc'.
9901 (keep_going_pass_signal): Ditto.
9902
a89febbd
TT
99032020-05-13 Tom Tromey <tromey@adacore.com>
9904
9905 * ada-lang.c (align_value): Remove.
9906 (ada_template_to_fixed_record_type_1): Use align_up.
9907
f7e23710
TBA
99082020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9909
9910 * async-event.c: Update the copyright year.
9911 * async-event.h: Update the copyright year.
9912
02ff80c2
SM
99132020-05-12 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * objfiles.h (is_addr_in_objfile,
9916 shared_objfile_contains_address_p): Return bool.
9917 * objfile.c (is_addr_in_objfile,
9918 shared_objfile_contains_address_p): Return bool.
9919
4fd6c7e8
TT
99202020-05-11 Tom Tromey <tromey@adacore.com>
9921
9922 * cli/cli-cmds.c (info_command): Restore.
9923 (_initialize_cli_cmds): Use add_prefix_command for "info".
9924 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9925
5eb68a39
TT
99262020-05-11 Tom Tromey <tromey@adacore.com>
9927
9928 * ada-lang.c (ada_value_primitive_field): Now public.
9929 * ada-lang.h (ada_value_primitive_field): Declare.
9930 * ada-valprint.c (print_field_values): Use
9931 ada_value_primitive_field for wrapper fields.
9932
7666722f
TV
99332020-05-11 Tom de Vries <tdevries@suse.de>
9934
9935 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9936 MODULE_DOMAIN.
9937
3ee6bb11
TV
99382020-05-11 Tom de Vries <tdevries@suse.de>
9939
9940 PR symtab/25941
9941 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9942 with length 0, if not gdb-produced.
9943 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9944
43434996
TV
99452020-05-09 Tom de Vries <tdevries@suse.de>
9946
9947 PR gdb/25955
9948 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9949 calculation.
9950
2f78cffc
TT
99512020-05-09 Tom Tromey <tom@tromey.com>
9952
9953 * top.c (server_command): Now bool.
9954 * top.h (server_command): Now bool.
9955
4f7bc5ed
TT
99562020-05-08 Tom Tromey <tromey@adacore.com>
9957
9958 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9959 already being processed.
9960
8be4b118
TT
99612020-05-08 Tom Tromey <tom@tromey.com>
9962
9963 * printcmd.c (struct display) <next>: Remove.
9964 <display>: New constructor.
9965 <exp_string>: Now a std::string.
9966 <enabled_p>: Now a bool.
9967 (display_number): Move definition earlier.
9968 (displays): Rename from display_chain. Now a std::vector.
9969 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9970 (display_command): Update.
9971 (do_one_display, disable_display)
9972 (enable_disable_display_command, do_enable_disable_display):
9973 Update.
9974 (free_display): Remove.
9975 (clear_displays): Rewrite.
9976 (delete_display): Update.
9977 (map_display_numbers): Use function_view. Remove "data"
9978 parameter. Update.
9979 (do_delete_display): Remove.
9980 (undisplay_command): Update.
9981 (do_one_display, do_displays, disable_display)
9982 (info_display_command): Update.
9983 (do_enable_disable_display): Remove.
9984 (enable_disable_display_command)
9985 (clear_dangling_display_expressions): Update.
9986
94c93c35
TT
99872020-05-08 Tom Tromey <tom@tromey.com>
9988
9989 * symtab.c (set_symbol_cache_size)
9990 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9991 (maintenance_print_symbol_cache_statistics): Update.
9992 * symmisc.c (print_symbol_bcache_statistics)
9993 (print_objfile_statistics, maintenance_print_objfiles)
9994 (maintenance_info_symtabs, maintenance_check_symtabs)
9995 (maintenance_expand_symtabs, maintenance_info_line_tables):
9996 Update.
9997 * symfile-debug.c (set_debug_symfile): Update.
9998 * source.c (forget_cached_source_info): Update.
9999 * python/python.c (gdbpy_progspaces): Update.
10000 * psymtab.c (maintenance_info_psymtabs): Update.
10001 * probe.c (parse_probes): Update.
10002 * linespec.c (iterate_over_all_matching_symtabs)
10003 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10004 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10005 * exec.c (exec_target::close): Update.
10006 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10007 * breakpoint.c (print_one_breakpoint_location)
10008 (create_longjmp_master_breakpoint)
10009 (create_std_terminate_master_breakpoint): Update.
10010 * progspace.c (program_spaces): Now a std::vector.
10011 (maybe_new_address_space): Update.
10012 (add_program_space): Remove.
10013 (program_space::program_space): Update.
10014 (remove_program_space): Update.
10015 (number_of_program_spaces): Remove.
10016 (print_program_space, update_address_spaces): Update.
10017 * progspace.h (program_spaces): Change type.
10018 (ALL_PSPACES): Remove.
10019 (number_of_program_spaces): Don't declare.
10020 (struct program_space) <next>: Remove.
10021
a1fd1ac9
TT
100222020-05-08 Tom Tromey <tom@tromey.com>
10023
10024 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10025 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10026 (enable_break): Update.
10027 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10028 (frv_fdpic_find_canonical_descriptor): Update.
10029 (frv_fetch_objfile_link_map): Update.
10030 * progspace.c (program_space::free_all_objfiles): Update.
10031 (program_space::solibs): New method.
10032 * progspace.h (struct program_space) <solibs>: New method.
10033 * solist.h (master_so_list): Don't declare.
10034 (ALL_SO_LIBS): Remove.
10035 * solib.h (so_list_head): Remove.
10036 (update_solib_list): Update comment.
10037 * solib.c (master_so_list): Remove.
10038 (solib_used, update_solib_list, solib_add)
10039 (info_sharedlibrary_command, clear_solib)
10040 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10041
38eae084
TT
100422020-05-08 Tom Tromey <tom@tromey.com>
10043
10044 * extension.c (extension_languages): Now a std::array.
10045 (ALL_EXTENSION_LANGUAGES): Remove.
10046 (get_ext_lang_defn, get_ext_lang_of_file)
10047 (eval_ext_lang_from_control_command): Update.
10048 (finish_ext_lang_initialization)
10049 (auto_load_ext_lang_scripts_for_objfile)
10050 (ext_lang_type_printers::ext_lang_type_printers)
10051 (apply_ext_lang_type_printers)
10052 (ext_lang_type_printers::~ext_lang_type_printers)
10053 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10054 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10055 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10056 (get_matching_xmethod_workers, ext_lang_colorize)
10057 (ext_lang_before_prompt): Update.
10058 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10059
596dc4ad
TT
100602020-05-08 Tom Tromey <tom@tromey.com>
10061
10062 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10063 overload.
10064 <swap_string, m_string>: Remove.
10065 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10066 Update.
10067 * stabsread.c (define_symbol, read_type): Update.
10068 * linespec.c (find_linespec_symbols): Update.
10069 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10070 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10071 * dbxread.c (read_dbx_symtab): Update.
10072 * cp-support.h (cp_canonicalize_string_full)
10073 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10074 Return unique_xmalloc_ptr.
10075 * cp-support.c (inspect_type): Update.
10076 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10077 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10078 Likewise.
10079 * c-typeprint.c (print_name_maybe_canonical): Update.
10080 * break-catch-throw.c (check_status_exception_catchpoint):
10081 Update.
10082
bf4cb9be
TV
100832020-05-08 Tom de Vries <tdevries@suse.de>
10084
10085 * infrun.c (follow_fork): Copy current_line and current_symtab to
10086 child thread.
10087
a1b68f28
SM
100882020-05-07 Simon Marchi <simon.marchi@efficios.com>
10089
10090 * async-event.c (struct async_signal_handler, struct
10091 async_event_handler): Reformat, remove typedef.
10092
98d48915
SM
100932020-05-07 Simon Marchi <simon.marchi@efficios.com>
10094
10095 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10096 access thistype->main_type->dyn_prop_list directly.
10097
7aa91313
SM
100982020-05-07 Simon Marchi <simon.marchi@efficios.com>
10099
10100 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10101 (remove_dyn_prop): Remove. Update all users to use
10102 type::remove_dyn_prop.
10103 * gdbtypes.c (remove_dyn_prop): Rename to...
10104 (type::remove_dyn_prop): ... this.
10105
5c54719c
SM
101062020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10107
10108 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10109 (add_dyn_prop): Remove. Update all users to use
10110 type::add_dyn_prop.
10111 * gdbtypes.c (add_dyn_prop): Rename to...
10112 (type::add_dyn_prop): ... this.
10113
24e99c6c
SM
101142020-05-07 Simon Marchi <simon.marchi@efficios.com>
10115
10116 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10117 (get_dyn_prop): Remove. Update all users to use
10118 type::dyn_prop.
10119 * gdbtypes.c (get_dyn_prop): Rename to...
10120 (type::dyn_prop): ... this.
10121
0d4bf016
SM
101222020-05-06 Simon Marchi <simon.marchi@efficios.com>
10123
10124 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10125
ac4a4f1c
SM
101262020-05-06 Simon Marchi <simon.marchi@efficios.com>
10127
10128 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10129 instruction, skip it if it's there.
10130
a3bbacc1
SM
101312020-05-05 Simon Marchi <simon.marchi@efficios.com>
10132
10133 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10134
c3236f84
SM
101352020-05-04 Simon Marchi <simon.marchi@efficios.com>
10136
10137 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10138 * gdbtypes.c (recursive_dump_type): Remove use of
10139 TYPE_INCOMPLETE.
10140
3b6acaee
TT
101412020-05-03 Tom Tromey <tom@tromey.com>
10142
10143 * breakpoint.c (catch_command, tcatch_command): Remove.
10144 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10145 add_show_prefix_cmd.
10146 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10147 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10148 Remove.
10149 (add_internal_problem_command): Use add_basic_prefix_cmd,
10150 add_show_prefix_cmd.
10151 * mips-tdep.c (set_mipsfpu_command): Remove.
10152 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10153 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10154 (_initialize_index_cache): Use add_basic_prefix_cmd.
10155 * memattr.c (dummy_cmd): Remove.
10156 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10157 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10158 (_initialize_tui_win): Use add_basic_prefix_cmd,
10159 add_show_prefix_cmd.
10160 * cli/cli-logging.c (set_logging_command): Remove.
10161 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10162 add_show_prefix_cmd.
10163 (show_logging_command): Remove.
10164 * target.c (target_command): Remove.
10165 (add_target): Use add_basic_prefix_cmd.
10166
a51119cd
HD
101672020-05-02 Hannes Domani <ssbssa@yahoo.de>
10168
10169 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10170
652fc23a 101712020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10172
652fc23a
PW
10173 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10174 info_command.
10175
117539e6
KR
101762020-04-30 Kamil Rytarowski <n54@gmx.com>
10177
10178 * nbsd-nat.c (nbsd_enable_proc_events)
10179 (nbsd_nat_target::post_startup_inferior): Add.
10180 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10181 (nbsd_nat_target::update_thread_list): Rewrite.
10182 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10183 "PTRACE_LWP_CREATE".
10184 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10185
102e38eb 101862020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10187
102e38eb
PW
10188 * stack.c (_initialize_stack): Remove duplicated creation
10189 of "frame" command and "f" alias.
10190
ee9d1e5f
HD
101912020-04-30 Hannes Domani <ssbssa@yahoo.de>
10192
10193 PR gdb/18706
10194 * gdbtypes.c (check_typedef): Calculate size of array of
10195 stubbed type.
10196
627c7fb8
HD
101972020-04-30 Hannes Domani <ssbssa@yahoo.de>
10198
10199 PR gdb/15559
10200 * i386-tdep.c (i386_push_dummy_call): Call
10201 i386_thiscall_push_dummy_call.
10202 (i386_thiscall_push_dummy_call): New function.
10203 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10204 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10205 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10206
ffc2844e
SM
102072020-04-29 Simon Marchi <simon.marchi@efficios.com>
10208
10209 * gdbarch.sh (do_read): Add shellcheck disable directive for
10210 warning SC2162.
10211
1207375d
SM
102122020-04-29 Simon Marchi <simon.marchi@efficios.com>
10213
10214 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10215 "referenced but not assigned" warning.
10216
9fdb2916
SM
102172020-04-29 Simon Marchi <simon.marchi@efficios.com>
10218
10219 * gdbarch.sh: Remove code that sets fallbackdefault.
10220
759cea5e
SM
102212020-04-29 Simon Marchi <simon.marchi@efficios.com>
10222
10223 * gdbarch.sh: Use shell operators && and || instead of
10224 -a and -o.
10225
cb02ab24
SM
102262020-04-29 Simon Marchi <simon.marchi@efficios.com>
10227
10228 * gdbarch.sh: Use $(...) instead of `...`.
10229
a6fc5ffc
SM
102302020-04-29 Simon Marchi <simon.marchi@efficios.com>
10231
10232 * gdbarch.sh: Use double quotes around variables.
10233
8d113d13
SM
102342020-04-29 Simon Marchi <simon.marchi@efficios.com>
10235
10236 * gdbarch.sh: Use %s with printf, instead of variables in the
10237 format string.
10238
ed6acedd
TT
102392020-04-29 Tom Tromey <tromey@adacore.com>
10240
10241 PR ada/25875:
10242 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10243 type fields here.
10244 (read_enumeration_type): Call
10245 update_enumeration_type_from_children later. Update comments.
10246 (process_enumeration_scope): Don't create type fields.
10247
b68b1b58
KR
102482020-04-29 Kamil Rytarowski <n54@gmx.com>
10249
10250 * nbsd-tdep.c: Include "xml-syscall.h".
10251 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10252
f94b2e03
KR
102532020-04-29 Kamil Rytarowski <n54@gmx.com>
10254
10255 * nbsd-nat.c: Include "sys/wait.h".
10256 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10257 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10258 (nbsd_nat_target::remove_exec_catchpoint)
10259 (nbsd_nat_target::set_syscall_catchpoint): Add.
10260 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10261 (nbsd_nat_target::insert_exec_catchpoint)
10262 (nbsd_nat_target::remove_exec_catchpoint)
10263 (nbsd_nat_target::set_syscall_catchpoint): Add.
10264 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10265 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10266 `nbsd_get_syscall_number'.
10267
fc49bc72
TT
102682020-04-29 Tom Tromey <tom@tromey.com>
10269
10270 * stack.c (print_block_frame_labels): Remove.
10271
d642b692
HD
102722020-04-29 Hannes Domani <ssbssa@yahoo.de>
10273
10274 PR gdb/17320
10275 * ada-valprint.c (val_print_packed_array_elements): Move array
10276 end bracket to new line.
10277 (ada_val_print_string): Remove extra spaces before first array
10278 element.
10279 * c-valprint.c (c_value_print_array): Likewise.
10280 * m2-valprint.c (m2_print_array_contents): Likewise.
10281 (m2_value_print_inner): Likewise.
10282 * p-valprint.c (pascal_value_print_inner): Likewise.
10283 * valprint.c (generic_val_print_array): Likewise.
10284 (value_print_array_elements): Move first array element and array
10285 end bracket to new line.
10286
ea90f227
TV
102872020-04-29 Tom de Vries <tdevries@suse.de>
10288
10289 PR symtab/25889
10290 * linespec.c (find_method): Fix ix calculation.
10291
4498ef4f
KR
102922020-04-28 Kamil Rytarowski <n54@gmx.com>
10293
10294 * syscalls/update-netbsd.sh: New file.
10295 * syscalls/netbsd.xml: Regenerate.
10296 * data-directory/Makefile.in: Register `netbsd.xml' in
10297 `SYSCALLS_FILES'.
10298
a55e30b5
SM
102992020-04-28 Simon Marchi <simon.marchi@efficios.com>
10300
10301 * syscalls/update-freebsd.sh: Add double quotes.
10302
2b2fbab8
TT
103032020-04-28 Tom Tromey <tom@tromey.com>
10304
10305 * NEWS: Update.
10306 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10307 (cmdpy_init): Allow class_tui.
10308
a65189c9
TV
103092020-04-28 Mark Williams <mark@myosotissp.com>
10310
10311 PR gdb/24480
10312 * dwarf2read.c: Add missing assingments to list_in_scope when
10313 start_symtab was already called.
10314
1b95cdb7
SM
103152020-04-28 Simon Marchi <simon.marchi@efficios.com>
10316
10317 PR gdb/25881
10318 * dwarf2/read.c (offset_map_type): Use
10319 gdb:hash_enum<sect_offset> as hash function.
10320
15cd93d0
TV
103212020-04-28 Tom de Vries <tdevries@suse.de>
10322
10323 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10324 with DW_AT_signature.
10325
1eb39914
SM
103262020-04-27 Simon Marchi <simon.marchi@efficios.com>
10327
10328 * configure.ac: Remove check for fs_base/gs_base in
10329 user_regs_struct.
10330 * configure: Re-generate.
10331 * config.in: Re-generate.
10332 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10333 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10334 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10335
991a3e2e
LM
103362020-04-27 Luis Machado <luis.machado@linaro.org>
10337
10338 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10339 problematic inline frame unwinding situation.
10340 * frame.c (frame_id_computed_p): New function.
10341 * frame.h (frame_id_computed_p): New prototype.
10342
361ba0e8
TT
103432020-04-26 Tom Tromey <tom@tromey.com>
10344
10345 * command.h (enum command_class) <class_pseudo>: Remove.
10346
bc3609fd
PW
103472020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10348
10349 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10350 and whitespace.
10351
b9771db7
KR
103522020-04-25 Kamil Rytarowski <n54@gmx.com>
10353
ec16513e
SM
10354 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10355 `PT_GET_PROCESS_STATE' block.
b9771db7 10356
7151c1af
TT
103572020-04-24 Tom Tromey <tom@tromey.com>
10358
10359 * symtab.h (symbol_get_demangled_name): Don't declare.
10360 * symtab.c (symbol_get_demangled_name): Remove.
10361 (general_symbol_info::natural_name)
10362 (general_symbol_info::demangled_name): Update.
10363
906bb4c5
TT
103642020-04-24 Tom Tromey <tom@tromey.com>
10365
10366 PR rust/25025:
10367 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10368
bcfe6157
TT
103692020-04-24 Tom Tromey <tom@tromey.com>
10370
10371 PR symtab/12707:
10372 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10373 exists.
10374 (new_symbol): Likewise.
10375 * compile/compile-object-load.c (get_out_value_type): Use
10376 symbol_matches_search_name.
10377
f049a313
TT
103782020-04-24 Tom Tromey <tom@tromey.com>
10379
10380 * dwarf2/read.c (add_partial_symbol): Do not call
10381 compute_and_set_names.
10382
76e288d1
TT
103832020-04-24 Tom Tromey <tom@tromey.com>
10384
10385 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10386 overload.
10387
2467f4f6
TT
103882020-04-24 Tom Tromey <tom@tromey.com>
10389
10390 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10391 (add_psymbol_to_list): New overload. Make old overload call new
10392 one.
10393 * psympriv.h (add_psymbol_to_list): New overload.
10394
e61108c9
TT
103952020-04-24 Tom Tromey <tom@tromey.com>
10396
10397 * dwarf2/read.c (partial_die_info::read) <case
10398 DW_AT_linkage_name>: Use value_as_string.
10399 (dwarf2_string_attr): Use value_as_string.
10400 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10401 method.
10402 * dwarf2/attribute.c (attribute::value_as_string): New method.
10403
8c87a452
TT
104042020-04-24 Tom Tromey <tom@tromey.com>
10405
10406 * symtab.c (general_symbol_info::natural_name)
10407 (general_symbol_info::demangled_name): Check for language_rust.
10408
787de330
TT
104092020-04-24 Tom Tromey <tom@tromey.com>
10410
10411 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10412 (dwarf2_physname): ... from here.
10413 (partial_die_info::read): Add Rust "{" hack.
10414
ff985671
TT
104152020-04-24 Tom Tromey <tom@tromey.com>
10416
10417 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10418 method.
10419 (symbol_set_demangled_name): Don't declare.
10420 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10421 symbol_set_demangled_name.
10422 (general_symbol_info::set_language)
10423 (general_symbol_info::compute_and_set_names): Update.
10424 * minsyms.c (minimal_symbol_reader::install): Update.
10425 * dwarf2/read.c (new_symbol): Update.
10426
1acda803
TT
104272020-04-24 Tom Tromey <tromey@adacore.com>
10428
10429 PR python/23662:
10430 * python/py-type.c (convert_field): Handle
10431 FIELD_LOC_KIND_DWARF_BLOCK.
10432 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10433 (typy_get_dynamic): Nw function.
10434 (type_object_getset): Add "dynamic".
10435 * NEWS: Add entry.
10436
d656f129
TT
104372020-04-24 Tom Tromey <tromey@adacore.com>
10438
10439 * ada-typeprint.c (print_choices, print_variant_part)
10440 (print_record_field_types_dynamic): New functions.
10441 (print_record_field_types): Use print_record_field_types_dynamic.
10442
7d79de9a
TT
104432020-04-24 Tom Tromey <tromey@adacore.com>
10444
10445 * dwarf2/read.c (handle_data_member_location): New overload.
10446 (dwarf2_add_field): Use it.
10447 (decode_locdesc): Add "computed" parameter. Update comment.
10448 * gdbtypes.c (is_dynamic_type_internal): Also look for
10449 FIELD_LOC_KIND_DWARF_BLOCK.
10450 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10451 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10452 virtual base classes.
10453 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10454 FIELD_LOC_KIND_DWARF_BLOCK.
10455
f8e89861
TT
104562020-04-24 Tom Tromey <tromey@adacore.com>
10457
10458 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10459 * gdbtypes.c (is_dynamic_type_internal): Check
10460 TYPE_HAS_DYNAMIC_LENGTH.
10461 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10462 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10463 New macros.
10464 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10465 constant.
10466
9c6a1327
TT
104672020-04-24 Tom Tromey <tromey@adacore.com>
10468
10469 * dwarf2/read.c (struct variant_field): Rewrite.
10470 (struct variant_part_builder): New.
10471 (struct nextfield): Remove "variant" field. Add "offset".
10472 (struct field_info): Add "current_variant_part" and
10473 "variant_parts".
10474 (alloc_discriminant_info): Remove.
10475 (alloc_rust_variant): New function.
10476 (quirk_rust_enum): Update.
10477 (dwarf2_add_field): Set "offset" member. Don't handle
10478 DW_TAG_variant_part.
10479 (offset_map_type): New typedef.
10480 (convert_variant_range, create_one_variant)
10481 (create_one_variant_part, create_variant_parts)
10482 (add_variant_property): New functions.
10483 (dwarf2_attach_fields_to_type): Call add_variant_property.
10484 (read_structure_type): Don't handle DW_TAG_variant_part.
10485 (handle_variant_part, handle_variant): New functions.
10486 (handle_struct_member_die): Use them.
10487 (process_structure_scope): Don't handle variant parts.
10488 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10489 (struct discriminant_info): Remove.
10490 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10491 (struct main_type) <flag_discriminated_union>: Remove.
10492 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10493 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10494 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10495 Update.
10496 * valops.c (value_union_variant): Remove.
10497 * value.h (value_union_variant): Don't declare.
10498
b249d2c2
TT
104992020-04-24 Tom Tromey <tromey@adacore.com>
10500
10501 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10502 (ada_value_primitive_packed_val): Update.
10503 * ada-valprint.c (ada_value_print_1): Update.
10504 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10505 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10506 just an address. Use evaluate_for_locexpr_baton.
10507 (dwarf2_evaluate_property): Update.
10508 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10509 array_view.
10510 * findvar.c (default_read_var_value): Update.
10511 * gdbtypes.c (compute_variant_fields_inner)
10512 (resolve_dynamic_type_internal): Update.
10513 (resolve_dynamic_type): Change type of valaddr parameter.
10514 * gdbtypes.h (resolve_dynamic_type): Update.
10515 * valarith.c (value_subscripted_rvalue): Update.
10516 * value.c (value_from_contents_and_address): Update.
10517
61122aa9
TT
105182020-04-24 Tom Tromey <tromey@adacore.com>
10519
10520 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10521 "push_initial_value" parameter.
10522 (dwarf2_evaluate_property): Likewise.
10523 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10524
ef83a141
TT
105252020-04-24 Tom Tromey <tromey@adacore.com>
10526
10527 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10528 (variant::matches, compute_variant_fields_recurse)
10529 (compute_variant_fields_inner, compute_variant_fields): New
10530 functions.
10531 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10532 Use resolved_type after type is made.
10533 (operator==): Add new cases.
10534 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10535 (struct discriminant_range, struct variant, struct variant_part):
10536 New.
10537 (union dynamic_prop_data) <variant_parts, original_type>: New
10538 members.
10539 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10540 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10541 constants.
10542 * value.c (unpack_bits_as_long): Now public.
10543 * value.h (unpack_bits_as_long): Declare.
10544
675127ec
TT
105452020-04-24 Tom Tromey <tromey@adacore.com>
10546
10547 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10548 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10549
9852ceef
HD
105502020-04-24 Hannes Domani <ssbssa@yahoo.de>
10551
10552 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10553
7632c6ce
KR
105542020-04-24 Kamil Rytarowski <n54@gmx.com>
10555
10556 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10557 (remove_fork_catchpoint, post_startup_inferior)
10558 (post_attach): Move...
10559 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10560 (remove_fork_catchpoint, post_startup_inferior)
10561 (post_attach): ...here.
10562 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10563 (remove_fork_catchpoint, post_startup_inferior)
10564 (post_attach): Move...
10565 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10566 (remove_fork_catchpoint, post_startup_inferior)
10567 (post_attach): ...here.
10568
7be2bb4f
TT
105692020-04-24 Tom Tromey <tromey@adacore.com>
10570
10571 * nat/windows-nat.h (struct windows_thread_info)
10572 <pc_adjusted>: New member.
10573 * windows-nat.c (windows_fetch_one_register): Check
10574 pc_adjusted.
10575 (windows_nat_target::get_windows_debug_event)
10576 (windows_nat_target::wait): Set pc_adjusted.
10577
f80cb3b4
TV
105782020-04-24 Tom de Vries <tdevries@suse.de>
10579
10580 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10581 Run gdb-add-index inside temp dir.
10582
29514b87
TT
105832020-04-23 Tom Tromey <tromey@adacore.com>
10584
10585 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10586 in loop.
10587
5939967b
LM
105882020-04-23 Luis Machado <luis.machado@linaro.org>
10589
10590 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10591 get_frame_register instead of gdbarch_unwind_pc.
10592
70bc38f5
TV
105932020-04-23 Tom de Vries <tdevries@suse.de>
10594
10595 * symtab.c (lookup_global_symbol): Prefer def over decl.
10596
de82891c
TV
105972020-04-23 Tom de Vries <tdevries@suse.de>
10598
10599 PR symtab/25807
10600 * block.c (best_symbol, better_symbol): Promote to external.
10601 * block.h (best_symbol, better_symbol): Declare.
10602 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10603 decl.
10604
ecc6c606
TT
106052020-04-23 Tom Tromey <tromey@adacore.com>
10606
10607 PR ada/25837:
10608 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10609 "const char *", not a "const std::string &".
10610 <name_and_matcher::operator==>: Update.
10611 * unittests/lookup_name_info-selftests.c: Change type of
10612 "result".
10613
740480b8
TT
106142020-04-23 Tom Tromey <tom@tromey.com>
10615
10616 * inferior.h (iterate_over_inferiors): Don't declare.
10617 * inferior.c (iterate_over_inferiors): Remove.
10618 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10619 Remove.
10620 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10621 use iterate_over_inferiors.
10622 (darwin_resume_inferior_it)
10623 (struct resume_inferior_threads_param)
10624 (darwin_resume_inferior_threads_it): Remove.
10625 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10626
ae3ab1f0
TV
106272020-04-23 Tom de Vries <tdevries@suse.de>
10628
10629 * blockframe.c (find_pc_partial_function): Use
10630 find_pc_sect_compunit_symtab rather than
10631 objfile->sf->qf->find_pc_sect_compunit_symtab.
10632
317d2668
TV
106332020-04-22 Tom de Vries <tdevries@suse.de>
10634
10635 PR symtab/25764
10636 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10637 in psymtabs.
10638
eea9e357
TV
106392020-04-22 Tom de Vries <tdevries@suse.de>
10640
10641 PR symtab/25801
10642 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10643 symtabs.
10644
3d5afab3
TV
106452020-04-22 Tom de Vries <tdevries@suse.de>
10646
10647 PR symtab/25700
10648 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10649 CU if already created.
10650
d43b7a2d
TBA
106512020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10652
10653 * infrun.c (displaced_step_fixup): Switch to the event_thread
10654 before calling displaced_step_restore, not after.
10655
d89edf9b
MM
106562020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10657
10658 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10659 its inferior is not recorded by us.
10660 (record_btrace_target_open): Replace call to
10661 all_non_exited_threads () with call to current_inferior
10662 ()->non_exited_threads ().
10663 (record_btrace_target::stop_recording): Likewise.
10664 (record_btrace_target::close): Likewise.
10665 (record_btrace_target::wait): Likewise.
10666 (record_btrace_target::record_stop_replaying): Likewise.
10667
5897fd49
MM
106682020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10669
10670 * btrace.c (btrace_enable): Throw an error on double enables and
10671 when enabling recording fails.
10672 (btrace_disable): Throw an error if the thread is not recorded.
10673
1a476b6d
MM
106742020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10675
10676 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10677 request if we do not have a thread_info.
10678
4778a5f8
TV
106792020-04-21 Tom de Vries <tdevries@suse.de>
10680
10681 PR gdb/25471
10682 * thread.c
10683 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10684 exception in get_frame_id.
10685
0fa7617d
TT
106862020-04-20 Tom Tromey <tromey@adacore.com>
10687
10688 * python/python.c (struct gdbpy_event): Mark move constructor as
10689 noexcept.
10690 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10691 constructor as noexcept.
10692 * completer.h (struct completion_result): Mark move constructor as
10693 noexcept.
10694 * completer.c (completion_result::completion_result): Use
10695 initialization style. Don't call reset_match_list.
10696
ad23bda0
MS
106972020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10698
10699 * MAINTAINERS (Write After Approval): Add myself.
10700
45e1f031
TT
107012020-04-18 Tom Tromey <tom@tromey.com>
10702
10703 * windows-tdep.c (init_w32_command_list)
10704 (w32_prefix_command_valid): Restore.
10705 (_initialize_windows_tdep): Call init_w32_command_list.
10706
08feed99
TT
107072020-04-18 Tom Tromey <tom@tromey.com>
10708
10709 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10710 * value.c (value_fn_field): Update.
10711 * valops.c (find_function_in_inferior)
10712 (value_allocate_space_in_inferior): Update.
10713 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10714 Update.
10715 * tui/tui-source.c (tui_source_window::set_contents): Update.
10716 * symtab.c (lookup_global_or_static_symbol)
10717 (find_function_start_sal_1, skip_prologue_sal)
10718 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10719 * symmisc.c (dump_msymbols, dump_symtab_1)
10720 (maintenance_print_one_line_table): Update.
10721 * symfile.c (init_entry_point_info, section_is_mapped)
10722 (list_overlays_command, simple_read_overlay_table)
10723 (simple_overlay_update_1): Update.
10724 * stap-probe.c (handle_stap_probe): Update.
10725 * stabsread.c (dbx_init_float_type, define_symbol)
10726 (read_one_struct_field, read_enum_type, read_range_type): Update.
10727 * source.c (info_line_command): Update.
10728 * python/python.c (gdbpy_source_objfile_script)
10729 (gdbpy_execute_objfile_script): Update.
10730 * python/py-type.c (save_objfile_types): Update.
10731 * python/py-objfile.c (py_free_objfile): Update.
10732 * python/py-inferior.c (python_new_objfile): Update.
10733 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10734 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10735 (maintenance_check_psymtabs): Update.
10736 * printcmd.c (info_address_command): Update.
10737 * objfiles.h (struct objfile) <arch>: New method, from
10738 get_objfile_arch.
10739 (get_objfile_arch): Don't declare.
10740 * objfiles.c (get_objfile_arch): Remove.
10741 (filter_overlapping_sections): Update.
10742 * minsyms.c (msymbol_is_function): Update.
10743 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10744 (output_nondebug_symbol): Update.
10745 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10746 (mdebug_expand_psymtab): Update.
10747 * machoread.c (macho_add_oso_symfile): Update.
10748 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10749 Update.
10750 * linux-fork.c (checkpoint_command): Update.
10751 * linespec.c (convert_linespec_to_sals): Update.
10752 * jit.c (finalize_symtab): Update.
10753 * infrun.c (insert_exception_resume_from_probe): Update.
10754 * ia64-tdep.c (ia64_find_unwind_table): Update.
10755 * hppa-tdep.c (internalize_unwinds): Update.
10756 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10757 Update.
10758 * gcore.c (call_target_sbrk): Update.
10759 * elfread.c (record_minimal_symbol, elf_symtab_read)
10760 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10761 (elf_gnu_ifunc_resolve_by_got): Update.
10762 * dwarf2/read.c (create_addrmap_from_index)
10763 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10764 (read_debug_names_from_section)
10765 (process_psymtab_comp_unit_reader, add_partial_symbol)
10766 (add_partial_subprogram, process_full_comp_unit)
10767 (read_file_scope, read_func_scope, read_lexical_block_scope)
10768 (read_call_site_scope, dwarf2_ranges_read)
10769 (dwarf2_record_block_ranges, dwarf2_add_field)
10770 (mark_common_block_symbol_computed, read_tag_pointer_type)
10771 (read_tag_string_type, dwarf2_init_float_type)
10772 (dwarf2_init_complex_target_type, read_base_type)
10773 (partial_die_info::read, partial_die_info::read)
10774 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10775 (dwarf2_fetch_die_loc_sect_off): Update.
10776 * dwarf2/loc.c (dwarf2_find_location_expression)
10777 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10778 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10779 (dwarf2_loc_desc_get_symbol_read_needs)
10780 (locexpr_describe_location_piece, locexpr_describe_location_1)
10781 (loclist_describe_location): Update.
10782 * dwarf2/index-write.c (write_debug_names): Update.
10783 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10784 * dtrace-probe.c (dtrace_process_dof): Update.
10785 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10786 (process_one_symbol): Update.
10787 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10788 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10789 (coff_read_enum_type): Update.
10790 * cli/cli-cmds.c (edit_command, list_command): Update.
10791 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10792 * breakpoint.c (create_overlay_event_breakpoint)
10793 (create_longjmp_master_breakpoint)
10794 (create_std_terminate_master_breakpoint)
10795 (create_exception_master_breakpoint, get_sal_arch): Update.
10796 * block.c (block_gdbarch): Update.
10797 * annotate.c (annotate_source_line): Update.
10798
0743fc83
TT
107992020-04-17 Tom Tromey <tromey@adacore.com>
10800
10801 * auto-load.c (show_auto_load_cmd): Remove.
10802 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10803 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10804 (maintenance_print_arc_command): Remove.
10805 * tui/tui-win.c (tui_command): Remove.
10806 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10807 * tui/tui-layout.c (tui_layout_command): Remove.
10808 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10809 * python/python.c (user_set_python, user_show_python): Remove.
10810 (_initialize_python): Use add_basic_prefix_cmd,
10811 add_show_prefix_cmd.
10812 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10813 (install_gdb_commands): Use add_basic_prefix_cmd,
10814 add_show_prefix_cmd.
10815 (info_guile_command): Remove.
10816 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10817 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10818 add_show_prefix_cmd.
10819 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10820 Remove do_set and do_show parameters.
10821 * cli/cli-style.c (set_style, show_style): Remove.
10822 (_initialize_cli_style): Use add_basic_prefix_cmd,
10823 add_show_prefix_cmd.
10824 (cli_style_option::add_setshow_commands): Remove do_set and
10825 do_show parameters.
10826 (cli_style_option::add_setshow_commands): Use
10827 add_basic_prefix_cmd, add_show_prefix_cmd.
10828 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10829 (set_style_name): Remove.
10830 * cli/cli-dump.c (dump_command, append_command): Remove.
10831 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10832 (tekhex_dump_command, binary_dump_command)
10833 (binary_append_command): Remove.
10834 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10835 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10836 (init_w32_command_list): Remove; move into ...
10837 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10838 * valprint.c (set_print, show_print, set_print_raw)
10839 (show_print_raw): Remove.
10840 (_initialize_valprint): Use add_basic_prefix_cmd,
10841 add_show_prefix_cmd.
10842 * typeprint.c (set_print_type, show_print_type): Remove.
10843 (_initialize_typeprint): Use add_basic_prefix_cmd,
10844 add_show_prefix_cmd.
10845 * record.c (set_record_command, show_record_command): Remove.
10846 (_initialize_record): Use add_basic_prefix_cmd,
10847 add_show_prefix_cmd.
10848 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10849 add_show_prefix_cmd.
10850 (info_command, show_command, set_debug, show_debug): Remove.
10851 * top.h (set_history, show_history): Don't declare.
10852 * top.c (set_history, show_history): Remove.
10853 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10854 (unset_tdesc_cmd): Remove.
10855 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10856 add_show_prefix_cmd.
10857 * symtab.c (info_module_command): Remove.
10858 (_initialize_symtab): Use add_basic_prefix_cmd.
10859 * symfile.c (overlay_command): Remove.
10860 (_initialize_symfile): Use add_basic_prefix_cmd.
10861 * sparc64-tdep.c (info_adi_command): Remove.
10862 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10863 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10864 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10865 add_show_prefix_cmd.
10866 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10867 (_initialize_serial): Use add_basic_prefix_cmd,
10868 add_show_prefix_cmd.
10869 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10870 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10871 add_show_prefix_cmd.
10872 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10873 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10874 add_show_prefix_cmd.
10875 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10876 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10877 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10878 add_show_prefix_cmd.
10879 * remote.c (remote_command, set_remote_cmd): Remove.
10880 (_initialize_remote): Use add_basic_prefix_cmd.
10881 * record-full.c (set_record_full_command)
10882 (show_record_full_command): Remove.
10883 (_initialize_record_full): Use add_basic_prefix_cmd,
10884 add_show_prefix_cmd.
10885 * record-btrace.c (cmd_set_record_btrace)
10886 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10887 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10888 (cmd_show_record_btrace_pt): Remove.
10889 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10890 add_show_prefix_cmd.
10891 * ravenscar-thread.c (set_ravenscar_command)
10892 (show_ravenscar_command): Remove.
10893 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10894 add_show_prefix_cmd.
10895 * mips-tdep.c (show_mips_command, set_mips_command)
10896 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10897 add_show_prefix_cmd.
10898 * maint.c (maintenance_command, maintenance_info_command)
10899 (maintenance_check_command, maintenance_print_command)
10900 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10901 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10902 add_show_prefix_cmd.
10903 (show_per_command_cmd): Remove.
10904 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10905 Remove.
10906 (maintenance_show_test_settings_cmd): Remove.
10907 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10908 add_show_prefix_cmd.
10909 * maint-test-options.c (maintenance_test_options_command):
10910 Remove.
10911 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10912 * macrocmd.c (macro_command): Remove
10913 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10914 * language.c (set_check, show_check): Remove.
10915 (_initialize_language): Use add_basic_prefix_cmd,
10916 add_show_prefix_cmd.
10917 * infcmd.c (unset_command): Remove.
10918 (_initialize_infcmd): Use add_basic_prefix_cmd.
10919 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10920 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10921 add_show_prefix_cmd.
10922 * go32-nat.c (go32_info_dos_command): Remove.
10923 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10924 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10925 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10926 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10927 (_initialize_frame): Use add_basic_prefix_cmd,
10928 add_show_prefix_cmd.
10929 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10930 (_initialize_dcache): Use add_basic_prefix_cmd,
10931 add_show_prefix_cmd.
10932 * cp-support.c (maint_cplus_command): Remove.
10933 (_initialize_cp_support): Use add_basic_prefix_cmd.
10934 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10935 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10936 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10937 add_basic_prefix_cmd, add_show_prefix_cmd.
10938 * breakpoint.c (save_command): Remove.
10939 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10940 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10941 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10942 add_show_prefix_cmd.
10943 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10944 (set_ada_command, show_ada_command): Remove.
10945 (_initialize_ada_language): Use add_basic_prefix_cmd,
10946 add_show_prefix_cmd.
10947 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10948
3557f442
KR
109492020-04-16 Kamil Rytarowski <n54@gmx.com>
10950
10951 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10952 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10953
16197208
SM
109542020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10955
10956 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10957 warning messages.
10958
00ac85d3
SM
109592020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10960
10961 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10962 import table is not at beginning of .idata section.
10963
381ce63f
PA
109642020-04-16 Pedro Alves <palves@redhat.com>
10965
10966 * inferior.c (delete_inferior): Use delete operator directly
10967 instead of delete_program_space.
10968 * progspace.c (add_program_space): New, factored out from
10969 program_space::program_space.
10970 (remove_program_space): New, factored out from
10971 delete_program_space.
10972 (program_space::program_space): Remove intro comment. Rewrite.
10973 (program_space::~program_space): Remove intro comment. Call
10974 remove_program_space.
10975 (delete_program_space): Delete.
10976 * progspace.h (program_space::program_space): Make explicit. Move
10977 intro comment here, adjusted.
10978 (program_space::~program_space): Move intro comment here,
10979 adjusted.
10980 (delete_program_space): Remove.
10981
a010605f
TT
109822020-04-16 Tom Tromey <tromey@adacore.com>
10983
10984 * windows-nat.c (windows_nat::handle_access_violation): New
10985 function.
10986 * nat/windows-nat.h (handle_access_violation): Declare.
10987 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10988 windows-nat.c. Call handle_access_violation.
10989
efba5c23
TV
109902020-04-16 Tom de Vries <tdevries@suse.de>
10991
10992 PR symtab/25791
10993 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10994 CUs without psymtab.
10995
97ed802d
KB
109962020-04-16 Kevin Buettner <kevinb@redhat.com>
10997
10998 * python/python.c (do_start_initialization): Don't call
10999 PyEval_InitThreads for Python 3.9 and beyond.
11000
c7d64809
KR
110012020-04-15 Kamil Rytarowski <n54@gmx.com>
11002
11003 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11004 thread functions.
11005 (obsd_nat_target::wait): Likewise.
11006
ce127a96
TT
110072020-04-15 Tom Tromey <tromey@adacore.com>
11008
11009 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11010 (DEBUG_EXCEPT): Use debug_printf.
11011
99f1bc6a
AB
110122020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11013
11014 * completer.c (class completion_tracker::completion_hash_entry)
11015 <hash_name>: New member function.
11016 (completion_tracker::discard_completions): New callback to hash a
11017 completion_hash_entry, pass this to htab_create_alloc.
11018
a0e9b532
JT
110192016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11020
11021 * windows-nat.c (windows_make_so): Warn rather than stopping with
11022 an error if realpath() fails.
11023
06ca5dd4
KR
110242020-04-14 Kamil Rytarowski <n54@gmx.com>
11025
11026 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11027 (nbsd_nat_target::info_proc): Add do_status.
11028
194d088f
TV
110292020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11030 Tom de Vries <tdevries@suse.de>
11031
11032 PR symtab/25718
11033 * psympriv.h (struct partial_symtab::read_symtab)
11034 (struct partial_symtab::expand_psymtab)
11035 (struct partial_symtab::read_dependencies): Update comments.
11036 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11037 read_symtab for includer.
11038 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11039 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11040 (struct dwarf2_include_psymtab::m_readin): Remove.
11041 (struct dwarf2_include_psymtab::includer): New member function.
11042 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11043
c1a66c06
TV
110442020-04-14 Tom de Vries <tdevries@suse.de>
11045
11046 PR symtab/25720
11047 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11048 with NULL symbol_matcher and lookup_name.
11049 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11050 and lookup_name.
11051 * dwarf2/read.c (dw2_expand_symtabs_matching)
11052 (dw2_debug_names_expand_symtabs_matching): Same.
11053 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11054 Make lookup_name a pointer. Update comment.
11055 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11056 lookup_name being a pointer.
11057 * symfile.c (expand_symtabs_matching): Same.
11058 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11059 * linespec.c (iterate_over_all_matching_symtabs): Same.
11060
400b5eca
TT
110612020-04-13 Tom Tromey <tom@tromey.com>
11062
11063 * run-on-main-thread.c: Update include.
11064 * unittests/main-thread-selftests.c: Update include.
11065 * tui/tui-win.c: Update include.
11066 * tui/tui-io.c: Update include.
11067 * tui/tui-interp.c: Update include.
11068 * tui/tui-hooks.c: Update include.
11069 * top.h: Update include.
11070 * top.c: Update include.
11071 * ser-base.c: Update include.
11072 * remote.c: Update include.
11073 * remote-notif.c: Update include.
11074 * remote-fileio.c: Update include.
11075 * record-full.c: Update include.
11076 * record-btrace.c: Update include.
11077 * python/python.c: Update include.
11078 * posix-hdep.c: Update include.
11079 * mingw-hdep.c: Update include.
11080 * mi/mi-main.c: Update include.
11081 * mi/mi-interp.c: Update include.
11082 * main.c: Update include.
11083 * linux-nat.c: Update include.
11084 * interps.c: Update include.
11085 * infrun.c: Update include.
11086 * inf-loop.c: Update include.
11087 * event-top.c: Update include.
11088 * event-loop.c: Move to ../gdbsupport/.
11089 * event-loop.h: Move to ../gdbsupport/.
11090 * async-event.h: Update include.
11091 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11092
93b54c8e
TT
110932020-04-13 Tom Tromey <tom@tromey.com>
11094
11095 * tui/tui-win.c: Include async-event.h.
11096 * remote.c: Include async-event.h.
11097 * remote-notif.c: Include async-event.h.
11098 * record-full.c: Include async-event.h.
11099 * record-btrace.c: Include async-event.h.
11100 * infrun.c: Include async-event.h.
11101 * event-top.c: Include async-event.h.
11102 * event-loop.h: Move some declarations to async-event.h.
11103 * event-loop.c: Don't include ser-event.h or top.h. Move some
11104 code to async-event.c.
11105 * async-event.h: New file.
11106 * async-event.c: New file.
11107 * Makefile.in (COMMON_SFILES): Add async-event.c.
11108 (HFILES_NO_SRCDIR): Add async-event.h.
11109
c1cd3163
TT
111102020-04-13 Tom Tromey <tom@tromey.com>
11111
11112 * utils.c (flush_streams): New function.
11113 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11114
29f2bf4f
TT
111152020-04-13 Tom Tromey <tom@tromey.com>
11116
11117 * event-loop.c (handle_file_event): Use warning, not
11118 printf_unfiltered.
11119
98029d02
TT
111202020-04-13 Tom Tromey <tom@tromey.com>
11121
11122 * event-loop.c: Include <chrono>.
11123
06cc9596
TT
111242020-04-13 Tom Tromey <tom@tromey.com>
11125
11126 * gdb_select.h: Move to ../gdbsupport/.
11127 * event-loop.c: Update include path.
11128 * top.c: Update include path.
11129 * ser-base.c: Update include path.
11130 * ui-file.c: Update include path.
11131 * ser-tcp.c: Update include path.
11132 * guile/scm-ports.c: Update include path.
11133 * posix-hdep.c: Update include path.
11134 * ser-unix.c: Update include path.
11135 * gdb_usleep.c: Update include path.
11136 * mingw-hdep.c: Update include path.
11137 * inflow.c: Update include path.
11138 * infrun.c: Update include path.
11139 * event-top.c: Update include path.
11140
8ae8e197
TT
111412020-04-13 Tom Tromey <tom@tromey.com>
11142
11143 * configure: Rebuild.
11144 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11145
58cf28e8
TT
111462020-04-13 Tom Tromey <tom@tromey.com>
11147
11148 * event-loop.h (start_event_loop): Don't declare.
11149 * event-loop.c (start_event_loop): Move...
11150 * main.c (start_event_loop): ...here. Now static.
11151
b7f999ae
SDJ
111522020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11153
11154 * MAINTAINERS: Update my email address.
11155
1085dfd4
KR
111562020-04-12 Kamil Rytarowski <n54@gmx.com>
11157
11158 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11159 IP_ALL.
11160
49d1d1f5
KR
111612020-04-12 Kamil Rytarowski <n54@gmx.com>
11162
11163 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11164 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11165
b4848d2a
KR
111662020-04-12 Kamil Rytarowski <n54@gmx.com>
11167
11168 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11169 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11170
51c133d5
KR
111712020-04-12 Kamil Rytarowski <n54@gmx.com>
11172
11173 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11174
54b8cbd0
KR
111752020-04-11 Kamil Rytarowski <n54@gmx.com>
11176
11177 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11178 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11179 (nbsd_nat_target::info_proc): New functions.
11180 * nbsd-nat.c (kinfo_get_vmmap): New function.
11181 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11182 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11183 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11184 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11185 functions.
11186 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11187 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11188 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11189 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11190 (KINFO_VME_FLAG_GROWS_DOWN): New.
11191
cf83625d
AS
111922020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11193
11194 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11195 bit shift.
11196
0c4311ab
TT
111972020-04-10 Tom Tromey <tromey@adacore.com>
11198
11199 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11200
3e65b3e9
TT
112012020-04-10 Tom Tromey <tromey@adacore.com>
11202
11203 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11204 separate debug files.
11205
13302e95
HD
112062020-04-10 Hannes Domani <ssbssa@yahoo.de>
11207
11208 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11209 Move to...
11210 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11211 ... here.
11212 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11213 Check for STATUS_WX86_BREAKPOINT.
11214 (windows_nat_target::wait): Same.
11215
bdfc1e8a
TV
112162020-04-10 Tom de Vries <tdevries@suse.de>
11217
11218 PR cli/25808
11219 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11220
f4460aec
SM
112212020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11222
11223 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11224 (Write After Approval): Remove Tom de Vries.
11225
a25198bb
BE
112262020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11227
11228 revert partially:
11229 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11230
aac66a4c
SM
11231 * buildsym.c (record_line): Fix undefined behavior and preserve
11232 lines at eof.
a25198bb 11233
206c98a6
KR
112342020-04-09 Kamil Rytarowski <n54@gmx.com>
11235
11236 * auxv.h (svr4_auxv_parse): New.
11237 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11238 and generic_auxv_parse.
11239 (svr4_auxv_parse): Add.
11240 * obsd-tdep.c: Include "auxv.h".
11241 (obsd_auxv_parse): Remove.
11242 (obsd_init_abi): Remove comment.
11243 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11244 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11245 * nbsd-tdep.c: Include "auxv.h".
11246 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11247
71fbdbaf
TT
112482020-04-08 Tom Tromey <tromey@adacore.com>
11249
11250 * nat/windows-nat.h (last_wait_event): Don't declare.
11251 (wait_for_debug_event): Update comment.
11252 * nat/windows-nat.c (last_wait_event): Now static.
11253
2c1d95e8
TT
112542020-04-08 Tom Tromey <tromey@adacore.com>
11255
11256 * windows-nat.c (wait_for_debug_event): Move to
11257 nat/windows-nat.c.
11258 * nat/windows-nat.h (wait_for_debug_event): Declare.
11259 * nat/windows-nat.c (wait_for_debug_event): Move from
11260 windows-nat.c. No longer static.
11261
d2977bc4
TT
112622020-04-08 Tom Tromey <tromey@adacore.com>
11263
11264 * windows-nat.c (get_windows_debug_event): Use
11265 fetch_pending_stop.
11266 * nat/windows-nat.h (fetch_pending_stop): Declare.
11267 * nat/windows-nat.c (fetch_pending_stop): New function.
11268
e758e19c
TT
112692020-04-08 Tom Tromey <tromey@adacore.com>
11270
11271 * windows-nat.c (windows_continue): Use matching_pending_stop and
11272 continue_last_debug_event.
11273 * nat/windows-nat.h (matching_pending_stop)
11274 (continue_last_debug_event): Declare.
11275 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11276 (matching_pending_stop, continue_last_debug_event): New
11277 functions.
11278
8d30e395
TT
112792020-04-08 Tom Tromey <tromey@adacore.com>
11280
11281 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11282 (handle_exception_result): Move to nat/windows-nat.h.
11283 (DEBUG_EXCEPTION_SIMPLE): Remove.
11284 (windows_nat::handle_ms_vc_exception): New function.
11285 (handle_exception): Move to nat/windows-nat.c.
11286 (get_windows_debug_event): Update.
11287 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11288 nat/windows-nat.c.
11289 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11290 (handle_exception_result): Move from windows-nat.c.
11291 (handle_exception): Declare.
11292 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11293 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11294 windows-nat.c.
11295
29de418d
TT
112962020-04-08 Tom Tromey <tromey@adacore.com>
11297
11298 * windows-nat.c (exception_count, event_count): Remove.
11299 (handle_exception, get_windows_debug_event)
11300 (do_initial_windows_stuff): Update.
11301
a816ba18
TT
113022020-04-08 Tom Tromey <tromey@adacore.com>
11303
11304 * windows-nat.c (windows_nat::handle_load_dll)
11305 (windows_nat::handle_unload_dll): Rename. No longer static.
11306 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11307 Declare.
11308
a00caa12
TT
113092020-04-08 Tom Tromey <tromey@adacore.com>
11310
11311 * complaints.h (stop_whining): Declare at top-level.
11312 (complaint): Don't declare stop_whining.
11313
d41b524f
TT
113142020-04-08 Tom Tromey <tromey@adacore.com>
11315
11316 * windows-nat.c (windows_nat::handle_output_debug_string):
11317 Rename. No longer static.
11318 * nat/windows-nat.h (handle_output_debug_string): Declare.
11319
3c76026d
TT
113202020-04-08 Tom Tromey <tromey@adacore.com>
11321
11322 * windows-nat.c (current_process_handle, current_process_id)
11323 (main_thread_id, last_sig, current_event, last_wait_event)
11324 (current_windows_thread, desired_stop_thread_id, pending_stops)
11325 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11326 (display_selectors, fake_create_process)
11327 (get_windows_debug_event): Update.
11328 * nat/windows-nat.h (current_process_handle, current_process_id)
11329 (main_thread_id, last_sig, current_event, last_wait_event)
11330 (current_windows_thread, desired_stop_thread_id, pending_stops)
11331 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11332 * nat/windows-nat.c (current_process_handle, current_process_id)
11333 (main_thread_id, last_sig, current_event, last_wait_event)
11334 (current_windows_thread, desired_stop_thread_id, pending_stops)
11335 (siginfo_er): New globals. Move from windows-nat.c.
11336
9d8679cc
TT
113372020-04-08 Tom Tromey <tromey@adacore.com>
11338
11339 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11340 (handle_load_dll): Update.
11341 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11342
28688adf
TT
113432020-04-08 Tom Tromey <tromey@adacore.com>
11344
11345 * windows-nat.c (enum thread_disposition_type): Move to
11346 nat/windows-nat.h.
11347 (windows_nat::thread_rec): Rename from thread_rec. No longer
11348 static.
11349 (windows_add_thread, windows_nat_target::fetch_registers)
11350 (windows_nat_target::store_registers, handle_exception)
11351 (windows_nat_target::resume, get_windows_debug_event)
11352 (windows_nat_target::get_tib_address)
11353 (windows_nat_target::thread_name)
11354 (windows_nat_target::thread_alive): Update.
11355 * nat/windows-nat.h (enum thread_disposition_type): Move from
11356 windows-nat.c.
11357 (thread_rec): Declare.
11358
4834dad0
TT
113592020-04-08 Tom Tromey <tromey@adacore.com>
11360
11361 * windows-nat.c: Add "using namespace".
11362 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11363 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11364
65bafd5b
TT
113652020-04-08 Tom Tromey <tromey@adacore.com>
11366
11367 * nat/windows-nat.h (struct windows_thread_info): Declare
11368 destructor.
11369 * nat/windows-nat.c (~windows_thread_info): New.
11370
0a4afda3
TT
113712020-04-08 Tom Tromey <tromey@adacore.com>
11372
11373 PR gdb/22992
11374 * windows-nat.c (current_event): Update comment.
11375 (last_wait_event, desired_stop_thread_id): New globals.
11376 (struct pending_stop): New.
11377 (pending_stops): New global.
11378 (windows_nat_target) <stopped_by_sw_breakpoint>
11379 <supports_stopped_by_sw_breakpoint>: New methods.
11380 (windows_fetch_one_register): Add assertions. Adjust PC.
11381 (windows_continue): Handle pending stops. Suspend other threads
11382 when stepping. Use last_wait_event
11383 (wait_for_debug_event): New function.
11384 (get_windows_debug_event): Use wait_for_debug_event. Handle
11385 pending stops. Queue spurious stops.
11386 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11387 (windows_nat_target::kill): Use wait_for_debug_event.
11388 * nat/windows-nat.h (struct windows_thread_info)
11389 <stopped_at_software_breakpoint>: New field.
11390 * nat/windows-nat.c (windows_thread_info::resume): Clear
11391 stopped_at_software_breakpoint.
11392
8e61ebec
TT
113932020-04-08 Tom Tromey <tromey@adacore.com>
11394
11395 * windows-nat.c (enum thread_disposition_type): New.
11396 (thread_rec): Replace "get_context" parameter with "disposition";
11397 change type.
11398 (windows_add_thread, windows_nat_target::fetch_registers)
11399 (windows_nat_target::store_registers, handle_exception)
11400 (windows_nat_target::resume, get_windows_debug_event)
11401 (windows_nat_target::get_tib_address)
11402 (windows_nat_target::thread_name)
11403 (windows_nat_target::thread_alive): Update.
11404
98a03287
TT
114052020-04-08 Tom Tromey <tromey@adacore.com>
11406
11407 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11408 (windows_continue): Use windows_continue::resume.
11409 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11410 resume>: Declare new methods.
11411 * nat/windows-nat.c: New file.
11412 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11413
7c7411bc
TT
114142020-04-08 Tom Tromey <tromey@adacore.com>
11415
11416 * windows-nat.c (windows_add_thread, windows_delete_thread)
11417 (windows_nat_target::fetch_registers)
11418 (windows_nat_target::store_registers, fake_create_process)
11419 (windows_nat_target::resume, windows_nat_target::resume)
11420 (get_windows_debug_event, windows_nat_target::wait)
11421 (windows_nat_target::pid_to_str)
11422 (windows_nat_target::get_tib_address)
11423 (windows_nat_target::get_ada_task_ptid)
11424 (windows_nat_target::thread_name)
11425 (windows_nat_target::thread_alive): Use lwp, not tid.
11426
2950fdf7
TT
114272020-04-08 Tom Tromey <tromey@adacore.com>
11428
11429 * windows-nat.c (handle_exception)
11430 (windows_nat_target::thread_name): Update.
11431 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11432 <name>: Now unique_xmalloc_ptr.
11433
62fe396b
TT
114342020-04-08 Tom Tromey <tromey@adacore.com>
11435
11436 * windows-nat.c (thread_rec)
11437 (windows_nat_target::fetch_registers): Update.
11438 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11439 Update comment.
11440 <debug_registers_changed, reload_context>: Now bool.
11441
e9534bd2
TT
114422020-04-08 Tom Tromey <tromey@adacore.com>
11443
11444 * windows-nat.c (windows_add_thread): Use new.
11445 (windows_init_thread_list, windows_delete_thread): Use delete.
11446 (get_windows_debug_event): Update.
11447 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11448 destructor, and initializers.
11449
ae1f8880
TT
114502020-04-08 Tom Tromey <tromey@adacore.com>
11451
11452 * windows-nat.c (struct windows_thread_info): Remove.
11453 * nat/windows-nat.h: New file.
11454
55a1e039
TT
114552020-04-08 Tom Tromey <tromey@adacore.com>
11456
11457 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11458 (thread_rec, windows_add_thread, windows_delete_thread)
11459 (windows_continue): Update.
11460
93366324
TT
114612020-04-08 Tom Tromey <tromey@adacore.com>
11462
11463 * windows-nat.c (struct windows_thread_info): Remove typedef.
11464 (thread_head): Remove.
11465 (thread_list): New global.
11466 (thread_rec, windows_add_thread, windows_init_thread_list)
11467 (windows_delete_thread, windows_continue): Update.
11468
0f2265e2
SM
114692020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11470
11471 * windows-tdep.h (windows_init_abi): Add comment.
11472 (cygwin_init_abi): New declaration.
11473 * windows-tdep.c: Split signal enumeration in two, one for
11474 Windows and one for Cygwin.
11475 (windows_gdb_signal_to_target): Only deal with signal of the
11476 Windows OS ABI.
11477 (cygwin_gdb_signal_to_target): New function.
11478 (windows_init_abi): Rename to windows_init_abi_common, don't set
11479 gdb_signal_to_target gdbarch method. Add new new function with
11480 this name.
11481 (cygwin_init_abi): New function.
11482 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11483 comment. Don't call windows_init_abi.
11484 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11485 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11486 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11487 i386_windows_init_abi_common, don't call windows_init_abi. Add
11488 a new function of this name.
11489 (i386_cygwin_init_abi): New function.
11490 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11491 OS ABI Cygwin.
11492
3810f182
SM
114932020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11494
11495 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11496 parameter.c.
11497 (dwarf2_read_gdb_index): Update.
11498
063f8e80
KR
114992020-04-07 Kamil Rytarowski <n54@gmx.com>
11500
11501 * nbsd-tdep.c: Include "objfiles.h".
11502 (nbsd_skip_solib_resolver): New.
11503 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11504
85a9510c 115052020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11506
11507 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11508 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11509 with DW_LLE_base_addressx are being emitted in DWARFv5.
11510 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11511 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11512 unsigned integer.
11513
9fc3eaae 115142020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11515
11516 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11517 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11518 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11519 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11520 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11521 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11522 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11523
11524
41144253 115252020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11526
11527 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11528 (read_loclist_index): New function definition.
11529 (lookup_loclist_base): New function definition.
11530 (read_loclist_header): New function definition.
11531 (dwarf2_cu): Add loclist_base and loclist_header field.
11532 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11533 (read_full_die_1): Read the value of DW_AT_loclists_base.
11534 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11535 (read_attribute_value): Handle DW_FORM_loclistx.
11536 (skip_one_die): Handle DW_FORM_loclistx.
11537 (loclist_header): New structure declaration.
11538 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11539
9f4e76a4
SM
115402020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11541
11542 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11543 constructor. Remove `addr` parameter from other constructor and
11544 add `per_cu` parameter.
11545 * dwarf2/read.c (create_partial_symtab): Update.
11546
25c11aca
TV
115472020-04-07 Tom de Vries <tdevries@suse.de>
11548
11549 PR symtab/25796
11550 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11551 (partial_die_info::fixup): Inherit has_const_value.
11552
5707e24b
TV
115532020-04-07 Tom de Vries <tdevries@suse.de>
11554
11555 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11556 symbols without address.
11557
05f00e22
KR
115582020-04-06 Kamil Rytarowski <n54@gmx.com>
11559
11560 * nbsd-nat.h (struct thread_info): Add forward declaration.
11561 (nbsd_nat_target::thread_alive): Add.
11562 (nbsd_nat_target::thread_name): Likewise.
11563 (nbsd_nat_target::update_thread_list): Likewise.
11564 (update_thread_list::post_attach): Likewise.
11565 (post_attach::pid_to_str): Likewise.
11566 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11567 (nbsd_thread_lister): Add.
11568 (nbsd_nat_target::thread_alive): Likewise.
11569 (nbsd_nat_target::thread_name): Likewise.
11570 (nbsd_add_threads): Likewise.
11571 (update_thread_list::post_attach): Likewise.
11572 (nbsd_nat_target::update_thread_list): Likewise.
11573 (post_attach::pid_to_str): Likewise.
11574
6ee448cc
TT
115752020-04-06 Tom Tromey <tromey@adacore.com>
11576
11577 * ada-valprint.c (print_variant_part): Extract the variant field.
11578 (print_field_values): Use the field as the outer value when
11579 recursing.
11580
dea34e8c
TT
115812020-04-06 Tom Tromey <tromey@adacore.com>
11582
11583 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11584 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11585 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11586 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11587 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11588
93689ce9
TT
115892020-04-06 Tom Tromey <tromey@adacore.com>
11590
11591 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11592 TYPE_CODE_ERROR.
11593
79743962
KR
115942020-04-06 Kamil Rytarowski <n54@gmx.com>
11595
11596 * nbsd-tdep.c: Include "gdbarch.h".
11597 Define enum with NetBSD signal numbers.
11598 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11599 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11600 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11601 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11602 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11603 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11604 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11605 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11606 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11607 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11608 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11609 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11610
9e7c9a03
HD
116112020-04-03 Hannes Domani <ssbssa@yahoo.de>
11612
11613 PR gdb/25325
11614 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11615
d9e49b61
TT
116162020-04-03 Tom Tromey <tromey@adacore.com>
11617
11618 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11619 Read constant block.
11620
e0fc5c3f
SM
116212020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11622
11623 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11624 (gdb_bfd_get_full_section_contents): New declaration.
11625 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11626 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11627 gdb_bfd_get_full_section_contents.
11628
e2ff18a0
SM
116292020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11630
11631 * exec.c (build_section_table): Replace internal_error with
11632 gdb_assert.
11633 (section_table_xfer_memory_partial): Likewise.
11634 * mdebugread.c (parse_partial_symbols): Likewise.
11635 * psymtab.c (lookup_partial_symbol): Likewise.
11636 * utils.c (wrap_here): Likewise.
11637
0830d301
TT
116382020-04-02 Tom Tromey <tromey@adacore.com>
11639
11640 * f-lang.c (build_fortran_types): Use arch_type to initialize
11641 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11642
e7da7f8f
TT
116432020-04-02 Tom Tromey <tromey@adacore.com>
11644
11645 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11646 of attributes.
11647
c90d28ac
AB
116482020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11649 Bernd Edlinger <bernd.edlinger@hotmail.de>
11650 Tom Tromey <tromey@adacore.com>
11651
11652 * buildsym.c (buildsym_compunit::record_line): Remove
11653 deduplication code.
11654
1aa98955
TV
116552020-04-02 Tom de Vries <tdevries@suse.de>
11656
11657 PR ada/24671
11658 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11659
d3214198
TV
116602020-04-02 Tom de Vries <tdevries@suse.de>
11661
11662 * dwarf2/read.c (dwarf2_gdb_index_functions,
11663 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11664 NULL.
11665 * psymtab.c (psym_lookup_global_symbol_language): New function.
11666 (psym_functions): Init psym_lookup_global_symbol_language with
11667 psym_lookup_global_symbol_language.
11668 * symfile-debug.c (debug_sym_quick_functions): Init
11669 lookup_global_symbol_language with NULL.
11670 * symfile.c (set_initial_language): Remove fixme comment.
11671 * symfile.h (struct quick_symbol_functions): Add
11672 lookup_global_symbol_language.
11673 * symtab.c (find_quick_global_symbol_language): New function.
11674 (find_main_name): Use find_quick_global_symbol_language.
11675
2836752f
SM
116762020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11677
11678 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11679
64dc2d4b
BE
116802020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11681
11682 * buildsym.c (record_line): Fix undefined behavior and preserve
11683 lines at eof.
11684
bbe3dc41
BE
116852020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11686
11687 * buildsym.c (record_line): Fix the resizing condition.
11688
6b4a335b
TT
116892020-04-01 Tom Tromey <tom@tromey.com>
11690
11691 * value.h (value_literal_complex): Add comment.
11692 * valops.c (value_literal_complex): Refer to value.h.
11693
3638a098
TT
116942020-04-01 Tom Tromey <tom@tromey.com>
11695
11696 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11697 (scalar_type): New rule, from typebase.
11698 (typebase): Use scalar_type. Recognize complex types.
11699 (field_name): Handle FLOAT_KEYWORD.
11700 (ident_tokens): Add _Complex and __complex__.
11701
c34e8714
TT
117022020-04-01 Tom Tromey <tom@tromey.com>
11703
11704 PR exp/25299:
11705 * valarith.c (promotion_type, complex_binop): New functions.
11706 (scalar_binop): Handle complex numbers. Use promotion_type.
11707 (value_pos, value_neg, value_complement): Handle complex numbers.
11708
fa649bb7
TT
117092020-04-01 Tom Tromey <tom@tromey.com>
11710
11711 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11712 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11713 (parse_number): Handle complex numbers.
11714
981c08ce
TT
117152020-04-01 Tom Tromey <tom@tromey.com>
11716
11717 * c-valprint.c (c_decorations): Change complex suffix to "i".
11718
4c99290d
TT
117192020-04-01 Tom Tromey <tom@tromey.com>
11720
11721 * valprint.c (generic_value_print_complex): Use accessors.
11722 * value.h (value_real_part, value_imaginary_part): Declare.
11723 * valops.c (value_real_part, value_imaginary_part): New
11724 functions.
11725 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11726
5b930b45
TT
117272020-04-01 Tom Tromey <tom@tromey.com>
11728
11729 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11730 (read_range_type): Update.
11731 * mdebugread.c (basic_type): Update.
11732 * go-lang.c (build_go_types): Use init_complex_type.
11733 * gdbtypes.h (struct main_type) <complex_type>: New member.
11734 (init_complex_type): Update.
11735 (arch_complex_type): Don't declare.
11736 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11737 Make name if none given. Use alloc_type_copy. Look for cached
11738 complex type.
11739 (arch_complex_type): Remove.
11740 (gdbtypes_post_init): Use init_complex_type.
11741 * f-lang.c (build_fortran_types): Use init_complex_type.
11742 * dwarf2/read.c (read_base_type): Update.
11743 * d-lang.c (build_d_types): Use init_complex_type.
11744 * ctfread.c (read_base_type): Update.
11745
53cccef1
TBA
117462020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11747
11748 * infrun.c (stop_all_threads): Update assertion, plus when
11749 stopping threads, take into account that we might be trying
11750 to stop an all-stop target.
11751 (stop_waiting): Call 'stop_all_threads' if there exists a
11752 non-stop target.
11753
a0714d30
TBA
117542020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11755
11756 * target.h (exists_non_stop_target): New function declaration.
11757 * target.c (exists_non_stop_target): New function.
11758
60e22c1e
HD
117592020-04-01 Hannes Domani <ssbssa@yahoo.de>
11760
11761 PR gdb/24789
11762 * eval.c (is_integral_or_integral_reference): New function.
11763 (evaluate_subexp_standard): Allow integer references in
11764 pointer arithmetic.
11765
e139a727
TBA
117662020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11767
11768 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11769 check for no ptid in the stop reply when the target is non-stop.
11770
e0802d59
TT
117712020-04-01 Tom Tromey <tromey@adacore.com>
11772
11773 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11774 "name" parameter to rvalue reference. Initialize m_name_holder.
11775 <lookup_name_info>: New overloads.
11776 <name>: Return gdb::string_view.
11777 <c_str>: New method.
11778 <make_ignore_params>: Update.
11779 <search_name_hash>: Update.
11780 <language_lookup_name>: Return const char *.
11781 <m_name>: Change type.
11782 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11783 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11784 (lookup_name_info::match_any): Update.
11785 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11786 Update.
11787 * minsyms.c (linkage_name_str): Update.
11788 * language.c (default_symbol_name_matcher): Update.
11789 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11790 Update.
11791 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11792 (ada_lookup_name_info::ada_lookup_name_info): Update.
11793 (literal_symbol_name_matcher): Update.
11794
8c072cb6
TT
117952020-04-01 Tom Tromey <tromey@adacore.com>
11796
11797 * psymtab.c (psymtab_search_name): Remove function.
11798 (psym_lookup_symbol): Create search name and lookup name here.
11799 (lookup_partial_symbol): Remove "name" parameter; add
11800 lookup_name.
11801 (psym_expand_symtabs_for_function): Update.
11802
6f29a534
TT
118032020-03-31 Joel Jones <joelkevinjones@gmail.com>
11804
11805 PR tui/25597:
11806 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11807
af62665e
TT
118082020-03-31 Tom Tromey <tromey@adacore.com>
11809
11810 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11811 memcpy.
11812
d1a89da5
NC
118132020-03-30 Nelson Chu <nelson.chu@sifive.com>
11814
11815 * features/riscv/32bit-csr.xml: Regenerated.
11816 * features/riscv/64bit-csr.xml: Regenerated.
11817
d8af9068
TT
118182020-03-30 Tom Tromey <tromey@adacore.com>
11819
11820 * ada-valprint.c (print_variant_part): Update.
11821 * ada-lang.h (ada_which_variant_applies): Update.
11822 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11823 outer_valaddr parameters; replace with "outer" value parameter.
11824 (to_fixed_variant_branch_type): Update.
11825
227c0bf4
PFC
118262020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11827
11828 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11829 <list>. Remove inclusion of observable.h.
11830 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11831 (struct arch_lwp_info): New struct.
11832 (class ppc_linux_dreg_interface): New class.
11833 (struct ppc_linux_process_info): New struct.
11834 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11835 <low_new_clone, low_forget_process, low_prepare_to_resume>
11836 <copy_thread_dreg_state, mark_thread_stale>
11837 <mark_debug_registers_changed, register_hw_breakpoint>
11838 <clear_hw_breakpoint, register_wp, clear_wp>
11839 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11840 <num_memory_accesses, get_trigger_type>
11841 <create_watchpoint_request, hwdebug_point_cmp>
11842 <init_arch_lwp_info, get_arch_lwp_info>
11843 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11844 methods.
11845 <struct ptid_hash>: New inner struct.
11846 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11847 members.
11848 (saved_dabr_value, hwdebug_info, max_slots_number)
11849 (struct hw_break_tuple, struct thread_points, ppc_threads)
11850 (have_ptrace_hwdebug_interface)
11851 (hwdebug_find_thread_points_by_tid)
11852 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11853 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11854 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11855 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11856 use m_dreg_interface.
11857 (hwdebug_point_cmp): Change to...
11858 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11859 reference arguments instead of pointers.
11860 (ppc_linux_nat_target::ranged_break_num_registers): Use
11861 m_dreg_interface.
11862 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11863 m_dreg_interface. Call register_hw_breakpoint.
11864 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11865 m_dreg_interface. Call clear_hw_breakpoint.
11866 (get_trigger_type): Change to...
11867 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11868 comment.
11869 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11870 use m_dreg_interface. Call register_hw_breakpoint.
11871 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11872 use m_dreg_interface. Call clear_hw_breakpoint.
11873 (can_use_watchpoint_cond_accel): Change to...
11874 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11875 method. Update comment, use m_dreg_interface and
11876 m_process_info.
11877 (calculate_dvc): Change to...
11878 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11879 m_dreg_interface.
11880 (num_memory_accesses): Change to...
11881 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11882 (check_condition): Change to...
11883 (ppc_linux_nat_target::check_condition): ...this method.
11884 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11885 comment, use m_dreg_interface.
11886 (create_watchpoint_request): Change to...
11887 (ppc_linux_nat_target::create_watchpoint_request): ...this
11888 method. Use m_dreg_interface.
11889 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11890 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11891 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11892 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11893 (ppc_linux_nat_target::low_forget_process)
11894 (ppc_linux_nat_target::low_new_fork)
11895 (ppc_linux_nat_target::low_new_clone)
11896 (ppc_linux_nat_target::low_delete_thread)
11897 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11898 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11899 only call mark_thread_stale.
11900 (ppc_linux_thread_exit): Remove.
11901 (ppc_linux_nat_target::stopped_data_address): Change to...
11902 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11903 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11904 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11905 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11906 comment. Call low_stopped_data_address.
11907 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11908 m_dreg_interface.
11909 (ppc_linux_nat_target::masked_watch_num_registers): Use
11910 m_dreg_interface.
11911 (ppc_linux_nat_target::copy_thread_dreg_state)
11912 (ppc_linux_nat_target::mark_thread_stale)
11913 (ppc_linux_nat_target::mark_debug_registers_changed)
11914 (ppc_linux_nat_target::register_hw_breakpoint)
11915 (ppc_linux_nat_target::clear_hw_breakpoint)
11916 (ppc_linux_nat_target::register_wp)
11917 (ppc_linux_nat_target::clear_wp)
11918 (ppc_linux_nat_target::init_arch_lwp_info)
11919 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11920 (_initialize_ppc_linux_nat): Remove observer callback.
11921
4db10d8f
PFC
119222020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11923
11924 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11925 (ppc_linux_nat_target::auxv_parse)
11926 (ppc_linux_nat_target::read_description)
11927 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11928 Move up.
11929
1310c1b0
PFC
119302020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11931
11932 * linux-nat.h (low_new_clone): New method.
11933 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11934
69b037c3
SM
119352020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11936
11937 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11938 (dbx_expand_psymtab): ... this.
11939 (start_psymtab): Update.
11940 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11941 (mdebug_expand_psymtab): ... this.
11942 (parse_partial_symbols): Update.
11943 (new_psymtab): Update.
11944 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11945 (xcoff_expand_psymtab): ... this.
11946 (xcoff_start_psymtab): Update.
11947
48993951
SM
119482020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11949
11950 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11951 <expand_dependencies>: ... this.
11952 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11953 (partial_symtab::expand_dependencies): ... this.
11954 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11955 Update.
11956 (dwarf2_psymtab::expand_psymtab): Update.
11957 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11958 * mdebugread.c (psymtab_to_symtab_1): Update.
11959 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11960
3ad83046
SM
119612020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11962
11963 * psympriv.h (discard_psymtab): Remove.
11964 * dbxread.c (dbx_end_psymtab): Update.
11965 * xcoffread.c (xcoff_end_psymtab): Update.
11966
4d1b9ab6
TT
119672020-03-28 Tom Tromey <tom@tromey.com>
11968
11969 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11970 comment.
11971
f1749218
TT
119722020-03-28 Tom Tromey <tom@tromey.com>
11973
11974 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11975
ebea7626
HD
119762020-03-27 Hannes Domani <ssbssa@yahoo.de>
11977
11978 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11979
a879b4d5
JB
119802020-03-26 John Baldwin <jhb@FreeBSD.org>
11981
11982 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11983
0826b30a
TT
119842020-03-26 Tom Tromey <tom@tromey.com>
11985
11986 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11987 (mark_common_block_symbol_computed, read_tag_string_type)
11988 (attr_to_dynamic_prop, read_subrange_type): Update.
11989 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11990 to be methods on struct attribute.
11991 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11992 (read_call_site_scope, partial_die_info::read)
11993 (partial_die_info::read, lookup_die_type, follow_die_ref):
11994 Update.
11995 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11996 from dwarf2_get_ref_die_offset.
11997 (attribute::constant_value): New method, from
11998 dwarf2_get_attr_constant_value.
11999 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12000 Declare method.
12001 <constant_value>: New method.
12002
2b2558bf
TT
120032020-03-26 Tom Tromey <tom@tromey.com>
12004
12005 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12006 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12007 (dwarf_type_encoding_name): Move to stringify.c.
12008 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12009 * dwarf2/stringify.c: New file.
12010 * dwarf2/stringify.h: New file.
12011
eeb64781
TT
120122020-03-26 Tom Tromey <tom@tromey.com>
12013
12014 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12015 Rewrite.
12016
a39fdb41
TT
120172020-03-26 Tom Tromey <tom@tromey.com>
12018
12019 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12020 methods.
12021 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12022 (lookup_ranges_base): Likewise.
12023 (read_cutu_die_from_dwo, read_full_die_1): Update.
12024
436c571c
TT
120252020-03-26 Tom Tromey <tom@tromey.com>
12026
12027 * dwarf2/read.c (read_import_statement, read_file_scope)
12028 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12029 (read_lexical_block_scope, read_call_site_scope)
12030 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12031 (handle_struct_member_die, process_structure_scope)
12032 (update_enumeration_type_from_children)
12033 (process_enumeration_scope, read_array_type, read_common_block)
12034 (read_namespace, read_module, read_subroutine_type): Update.
12035 (sibling_die): Remove.
12036
052c8bb8
TT
120372020-03-26 Tom Tromey <tom@tromey.com>
12038
12039 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12040 (build_type_psymtabs_reader, read_structure_type)
12041 (read_enumeration_type, read_full_die_1): Update.
12042 (dwarf2_attr_no_follow): Move to die.h.
12043 * dwarf2/die.h (struct die_info) <attr>: New method.
12044
2b24b6e4
TT
120452020-03-26 Tom Tromey <tom@tromey.com>
12046
12047 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12048 <base_address>: Now an optional.
12049 (dwarf2_find_base_address, dwarf2_rnglists_process)
12050 (dwarf2_ranges_process, fill_in_loclist_baton)
12051 (dwarf2_symbol_mark_computed): Update.
12052
c2d50fd0
TT
120532020-03-26 Tom Tromey <tom@tromey.com>
12054
12055 * dwarf2/read.c (struct die_info): Move to die.h.
12056 * dwarf2/die.h: New file.
12057
0df7ad3a
TT
120582020-03-26 Tom Tromey <tom@tromey.com>
12059
12060 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12061 * dwarf2/read.c
12062 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12063 Move to line-header.c.
12064 (read_checked_initial_length_and_offset, read_formatted_entries):
12065 Likewise.
12066 (dwarf_decode_line_header): Split into two.
12067 * dwarf2/line-header.c
12068 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12069 Move from read.c.
12070 (read_checked_initial_length_and_offset, read_formatted_entries):
12071 Likewise.
12072 (dwarf_decode_line_header): New function, split from read.c.
12073
86c0bb4c
TT
120742020-03-26 Tom Tromey <tom@tromey.com>
12075
12076 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12077 Declare method.
12078 * dwarf2/read.c (read_attribute_value): Update.
12079 (dwarf2_per_objfile::read_line_string): Rename from
12080 read_indirect_line_string.
12081 (read_formatted_entries): Update.
12082
2ef46c2f
TT
120832020-03-26 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12086 variable.
12087
4f9c1eda
TT
120882020-03-26 Tom Tromey <tom@tromey.com>
12089
12090 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12091 const.
12092 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12093 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12094 parameter const.
12095
5a0e026f
TT
120962020-03-26 Tom Tromey <tom@tromey.com>
12097
12098 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12099 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12100 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12101 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12102
8844c11b
TT
121032020-03-26 Tom Tromey <tom@tromey.com>
12104
12105 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12106 file_names_size, file_full_name, file_file_name>: Use const.
12107 <file_name_at, file_names>: Add const overload.
12108 * dwarf2/line-header.c (line_header::file_file_name)
12109 (line_header::file_full_name): Update.
12110
c90ec28a
TT
121112020-03-26 Tom Tromey <tom@tromey.com>
12112
12113 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12114 (macro_start_file, consume_improper_spaces)
12115 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12116 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12117 (dwarf_decode_macros): Move to macro.c.
12118 * dwarf2/macro.c: New file.
12119 * dwarf2/macro.h: New file.
12120 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12121
4f44ae6c
TT
121222020-03-26 Tom Tromey <tom@tromey.com>
12123
12124 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12125 method.
12126 * dwarf2/section.c: New method. From
12127 read_indirect_string_at_offset_from.
12128 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12129 (read_indirect_string_at_offset_from): Move to section.c.
12130 (read_indirect_string_at_offset): Rewrite.
12131 (read_indirect_line_string_at_offset): Remove.
12132 (read_indirect_string, read_indirect_line_string)
12133 (dwarf_decode_macro_bytes): Update.
12134
a0194fa8
TT
121352020-03-26 Tom Tromey <tom@tromey.com>
12136
12137 * dwarf2/section.h (struct dwarf2_section_info)
12138 <overload_complaint>: Declare.
12139 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12140 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12141 Rename from dwarf2_section_buffer_overflow_complaint.
12142 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12143 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12144
3d27bbdb
TT
121452020-03-26 Tom Tromey <tom@tromey.com>
12146
12147 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12148 Declare.
12149 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12150 Move from read.c.
12151 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12152 to section.c.
12153
9eac9650
TT
121542020-03-26 Tom Tromey <tom@tromey.com>
12155
12156 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12157
bf80d710
TT
121582020-03-26 Tom Tromey <tom@tromey.com>
12159
12160 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12161 "builder".
12162 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12163 parameter.
12164 (dwarf_decode_macros): Update.
12165
0314b390
TT
121662020-03-26 Tom Tromey <tom@tromey.com>
12167
12168 * dwarf2/read.c (read_attribute_value): Update.
12169 (read_indirect_string_from_dwz): Move to dwz.c; change into
12170 method.
12171 (dwarf_decode_macro_bytes): Update.
12172 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12173 * dwarf2/dwz.c: New file.
12174 * Makefile.in (COMMON_SFILES): Add dwz.c.
12175
9fda78b6
TT
121762020-03-26 Tom Tromey <tom@tromey.com>
12177
12178 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12179 * dwarf2/read.c: Add include.
12180 * dwarf2/index-write.c: Add include.
12181 * dwarf2/index-cache.c: Add include.
12182 * dwarf2/dwz.h: New file.
12183
33aa3c10
TT
121842020-03-25 Tom Tromey <tom@tromey.com>
12185
12186 * compile/compile-object-load.c (get_out_value_type): Mention
12187 correct symbol name in error message.
12188
d503b685
HD
121892020-03-25 Hannes Domani <ssbssa@yahoo.de>
12190
12191 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12192
7b1eff95
TV
121932020-03-25 Tom de Vries <tdevries@suse.de>
12194
12195 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12196 * symmisc.c (dump_symtab_1): Print user and includes fields.
12197 (maintenance_info_symtabs): Same.
12198
dd895392
AB
121992020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12200
12201 PR gdb/25534
12202 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12203 (riscv_regcache_cooked_write): New function.
12204 (riscv_push_dummy_call): Use new function.
12205 (riscv_return_value): Likewise.
12206
5ab2fbf1
SM
122072020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12208
12209 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12210 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12211 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12212 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12213 * infrun.c (follow_fork): Likewise.
12214 (follow_fork_inferior): Likewise.
12215 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12216 * linux-nat.h (class linux_nat_target): Likewise.
12217 * remote.c (class remote_target) <follow_fork>: Likewise.
12218 (remote_target::follow_fork): Likewise.
12219 * target-delegates.c: Re-generate.
12220 * target.c (default_follow_fork): Likewise.
12221 (target_follow_fork): Likewise.
12222 * target.h (struct target_ops) <follow_fork>: Likewise.
12223 (target_follow_fork): Likewise.
12224
a64fafb5
TV
122252020-03-24 Tom de Vries <tdevries@suse.de>
12226
12227 * psymtab.c (maintenance_info_psymtabs): Print user field.
12228
fe26d3a3
TT
122292020-03-20 Tom Tromey <tromey@adacore.com>
12230
12231 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12232 const.
12233 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12234 const.
12235
c884cc46
SM
122362020-03-20 Simon Marchi <simon.marchi@efficios.com>
12237
12238 * ptrace.m4: Don't check for ptrace declaration.
12239 * config.in: Re-generate.
12240 * configure: Re-generate.
12241 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12242 not defined.
12243
1ff700c2
KR
122442020-03-20 Kamil Rytarowski <n54@gmx.com>
12245
12246 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12247 `PTRACE_TYPE_RET'.
12248 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12249 * sparc-nat.c (gdb_ptrace): Likewise.
12250 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12251
f7d4f0b1
TT
122522020-03-20 Tom Tromey <tromey@adacore.com>
12253
12254 * c-exp.y (lex_one_token): Fix assert.
12255
f67210ff
TT
122562020-03-20 Tom Tromey <tromey@adacore.com>
12257
12258 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12259 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12260 strncpy call.
12261
1773be9e
TT
122622020-03-20 Tom Tromey <tromey@adacore.com>
12263
12264 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12265
70304be9
TT
122662020-03-20 Tom Tromey <tromey@adacore.com>
12267
12268 * ada-valprint.c (print_variant_part): Remove parameters; switch
12269 to value-based API.
12270 (print_field_values): Likewise.
12271 (ada_val_print_struct_union): Likewise.
12272 (ada_value_print_1): Update.
12273
9faa006d
KR
122742020-03-20 Kamil Rytarowski <n54@gmx.com>
12275
12276 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12277 nbsd_nat_target instead of inf_ptrace_target.
12278 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12279 nbsd_nat_target.
12280
4a90f062
KR
122812020-03-20 Kamil Rytarowski <n54@gmx.com>
12282
12283 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12284 it to the ptrace call.
12285 * (store_registers): Likewise.
12286
122872020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12288
12289 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12290 it to the ptrace call.
12291 * (store_registers): Likewise.
12292
2d07da27
LM
122932020-03-19 Luis Machado <luis.machado@linaro.org>
12294
12295 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12296 valid, fetch vg value from ptrace.
12297
f09db380
KR
122982020-03-19 Kamil Rytarowski <n54@gmx.com>
12299 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12300 * inf-ptrace.c: Likewise.
12301 * (gdb_ptrace): Add.
12302 * (inf_ptrace_target::resume): Update.
12303 * (inf_ptrace_target::xfer_partial): Likewise.
12304 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12305 * (inf_ptrace_peek_poke): Update.
12306
fcc7376e
KR
123072020-03-19 Kamil Rytarowski <n54@gmx.com>
12308
12309 * x86-bsd-nat.c (gdb_ptrace): New.
12310 * (x86bsd_dr_set): Add new argument `ptid'.
12311 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12312 x86bsd_dr_set_addr): Update.
12313
cada5fc9
AB
123142020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12315
12316 * remote.c (remote_target::process_stop_reply): Handle events for
12317 all threads differently.
12318
19a2740f
AB
123192020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12320
12321 * completer.c (completion_tracker::remove_completion): Define new
12322 function.
12323 * completer.h (completion_tracker::remove_completion): Declare new
12324 function.
12325 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12326 when adding a C++ function symbol.
12327
724fd9ba
AB
123282020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12329
12330 * completer.c (completion_tracker::completion_hash_entry): Define
12331 new class.
12332 (advance_to_filename_complete_word_point): Call
12333 recompute_lowest_common_denominator.
12334 (completion_tracker::completion_tracker): Call discard_completions
12335 to setup the hash table.
12336 (completion_tracker::discard_completions): Allow for being called
12337 from the constructor, pass new equal function, and element deleter
12338 when constructing the hash table. Initialise new class member
12339 variables.
12340 (completion_tracker::maybe_add_completion): Remove use of
12341 m_entries_vec, and store more information into m_entries_hash.
12342 (completion_tracker::recompute_lcd_visitor): New function, most
12343 content taken from...
12344 (completion_tracker::recompute_lowest_common_denominator):
12345 ...here, this now just visits each item in the hash calling the
12346 above visitor.
12347 (completion_tracker::build_completion_result): Remove use of
12348 m_entries_vec, call recompute_lowest_common_denominator.
12349 * completer.h (completion_tracker::have_completions): Remove use
12350 of m_entries_vec.
12351 (completion_tracker::completion_hash_entry): Declare new class.
12352 (completion_tracker::recompute_lowest_common_denominator): Change
12353 function signature.
12354 (completion_tracker::recompute_lcd_visitor): Declare new function.
12355 (completion_tracker::m_entries_vec): Delete.
12356 (completion_tracker::m_entries_hash): Initialize to NULL.
12357 (completion_tracker::m_lowest_common_denominator_valid): New
12358 member variable.
12359 (completion_tracker::m_lowest_common_denominator_max_length): New
12360 member variable.
12361
5a82b8a1
KR
123622020-03-17 Kamil Rytarowski <n54@gmx.com>
12363
12364 * regformats/regdef.h: Put reg in gdb namespace.
12365
fb516a69
KR
123662020-03-17 Kamil Rytarowski <n54@gmx.com>
12367
12368 * i386-bsd-nat.c (gdb_ptrace): New.
12369 * (i386bsd_fetch_inferior_registers,
12370 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12371 * (i386bsd_fetch_inferior_registers,
12372 i386bsd_store_inferior_registers) Use gdb_ptrace.
12373
1c0aa1fb
KR
123742020-03-17 Kamil Rytarowski <n54@gmx.com>
12375
12376 * amd64-bsd-nat.c (gdb_ptrace): New.
12377 * (amd64bsd_fetch_inferior_registers,
12378 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12379 * (amd64bsd_fetch_inferior_registers,
12380 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12381
5ccd2fb7
KR
123822020-03-17 Kamil Rytarowski <n54@gmx.com>
12383
12384 * user-regs.c (user_reg::read): Rename to...
12385 (user_reg::xread): ...this.
12386 * (append_user_reg): Rename argument `read' to `xread'.
12387 * (user_reg_add_builtin): Likewise.
12388 * (user_reg_add): Likewise.
12389 * (value_of_user_reg): Likewise.
12390
2108a63a
KR
123912020-03-17 Kamil Rytarowski <n54@gmx.com>
12392
12393 * sparc-nat.c (gdb_ptrace): New.
12394 * sparc-nat.c (sparc_fetch_inferior_registers)
12395 (sparc_store_inferior_registers) Remove obsolete comment.
12396 * sparc-nat.c (sparc_fetch_inferior_registers)
12397 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12398 * sparc-nat.c (sparc_fetch_inferior_registers)
12399 (sparc_store_inferior_registers) Use gdb_ptrace.
12400
a225c9a8
KR
124012020-03-17 Kamil Rytarowski <n54@gmx.com>
12402
12403 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12404 it to the ptrace call.
12405 * sh-nbsd-nat.c (store_registers): Likewise.
12406
98097623
KR
124072020-03-17 Kamil Rytarowski <n54@gmx.com>
12408
12409 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12410 nbsd_nat_target instead of inf_ptrace_target.
12411 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12412 nbsd_nat_target.
12413
9e38d619
KR
124142020-03-17 Kamil Rytarowski <n54@gmx.com>
12415
12416 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12417
a2ecbe9f
KR
124182020-03-17 Kamil Rytarowski <n54@gmx.com>
12419
12420 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12421 <sys/sysctl.h>.
12422 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12423
58990295
TV
124242020-03-17 Tom de Vries <tdevries@suse.de>
12425
12426 PR gdb/23710
12427 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12428 fields.
12429 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12430 fields.
12431 (process_imported_unit_die): Skip import of c++ CUs.
12432
771dd3a8
TT
124332020-03-16 Tom Tromey <tom@tromey.com>
12434
12435 * p-valprint.c (pascal_object_print_value): Initialize
12436 base_value.
12437
817a7585
AK
124382020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12439 Shahab Vahedi <shahab@synopsys.com>
12440
12441 * Makefile.in: Add arch/arc.o
12442 * configure.tgt: Likewise.
12443 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12444 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12445 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12446 * arc-tdep.h (arc_read_description): Add proto type.
12447 * arch/arc.c: New file.
12448 * arch/arc.h: Likewise.
12449 * features/Makefile: Replace old target descriptions with new.
12450 * features/arc-arcompact.c: Remove.
12451 * features/arc-arcompact.xml: Likewise.
12452 * features/arc-v2.c: Likewise
12453 * features/arc-v2.xml: Likewise
12454 * features/arc/aux-arcompact.xml: New file.
12455 * features/arc/aux-v2.xml: Likewise.
12456 * features/arc/core-arcompact.xml: Likewise.
12457 * features/arc/core-v2.xml: Likewise.
12458 * features/arc/aux-arcompact.c: Generate.
12459 * features/arc/aux-v2.c: Likewise.
12460 * features/arc/core-arcompact.c: Likewise.
12461 * features/arc/core-v2.c: Likewise.
12462 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12463
67430cd0
TT
124642020-03-16 Tom Tromey <tromey@adacore.com>
12465
12466 PR gdb/25663:
12467 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12468 putting value into bcache.
12469
30efb6c7
SM
124702020-03-16 Simon Marchi <simon.marchi@efficios.com>
12471
12472 PR gdb/21500
12473 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12474 to...
12475 (amd64_windows_init_abi_common): ... this. Don't set size of
12476 long type.
12477 (amd64_windows_init_abi): New function.
12478 (amd64_cygwin_init_abi): New function.
12479 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12480 the Cygwin OS ABI.
12481 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12482 comment.
12483
8db52437
SM
124842020-03-16 Simon Marchi <simon.marchi@efficios.com>
12485
12486 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12487 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12488 (pe_import_directory_entry): New struct type.
12489 (is_linked_with_cygwin_dll): New function.
12490 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12491 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12492 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12493
5982a56a
SM
124942020-03-16 Simon Marchi <simon.marchi@efficios.com>
12495
12496 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12497 i386_cygwin_core_osabi_sniffer.
12498
7a1998df
SM
124992020-03-16 Simon Marchi <simon.marchi@efficios.com>
12500
12501 * i386-cygwin-tdep.c: Rename to...
12502 * i386-windows-tdep.c: ... this.
12503 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12504 i386-windows-tdep.c.
12505 * configure.tgt: Likewise.
12506
053205cc
SM
125072020-03-16 Simon Marchi <simon.marchi@efficios.com>
12508
12509 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12510 * osabi.c (gdb_osabi_names): Add "Windows".
12511 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12512 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12513 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12514 i386_cygwin_osabi_sniffer.
12515 (_initialize_i386_cygwin_tdep): Register OS ABI
12516 GDB_OSABI_WINDOWS for i386.
12517 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12518 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12519 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12520 for x86-64.
12521 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12522 when the target matches '*-*-mingw*'.
12523
fe4b2ee6
SM
125242020-03-16 Simon Marchi <simon.marchi@efficios.com>
12525
12526 * defs.h (enum gdb_osabi): Move to...
12527 * osabi.h (enum gdb_osabi): ... here.
12528 * gdbarch.sh: Include osabi.h in gdbarch.h.
12529 * gdbarch.h: Re-generate.
12530
cb9b645d
SM
125312020-03-16 Simon Marchi <simon.marchi@efficios.com>
12532
12533 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12534 function.
12535 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12536
3293bbaf
TT
125372020-03-14 Tom Tromey <tom@tromey.com>
12538
12539 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12540 for C++.
12541 (c_type_print_modifier): Likewise. Add "language" parameter.
12542 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12543 (c_type_print_base_1): Update.
12544 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12545 constants.
12546 * type-stack.c (type_stack::insert): Handle tp_atomic and
12547 tp_restrict.
12548 (type_stack::follow_type_instance_flags): Likewise.
12549 (type_stack::follow_types): Likewise. Merge type-following code.
12550 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12551 (space_identifier, cv_with_space_id)
12552 (const_or_volatile_or_space_identifier_noopt)
12553 (const_or_volatile_or_space_identifier): Remove.
12554 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12555 rules.
12556 (ptr_operator, typebase): Update.
12557 (enum token_flag) <FLAG_C>: New constant.
12558 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12559 "_Atomic".
12560 (lex_one_token): Handle FLAG_C.
12561
154151a6
KR
125622020-03-14 Kamil Rytarowski <n54@gmx.com>
12563
12564 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12565 it to the ptrace call.
12566 * m68k-bsd-nat.c (store_registers): Likewise.
12567
bc107784
KR
125682020-03-14 Kamil Rytarowski <n54@gmx.com>
12569
12570 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12571 gdb_byte *.
12572 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12573 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12574 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12575
01a80117
KR
125762020-03-14 Kamil Rytarowski <n54@gmx.com>
12577
12578 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12579 nbsd_nat_target instead of inf_ptrace_target.
12580 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12581 nbsd_nat_target.
12582
f90280ca
KR
125832020-03-14 Kamil Rytarowski <n54@gmx.com>
12584
12585 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12586 register_t.
12587
6def66f1
KR
125882020-03-14 Kamil Rytarowski <n54@gmx.com>
12589
12590 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12591 it to the ptrace call.
12592 * alpha-bsd-nat.c (store_registers): Likewise.
12593
66eaca97
KR
125942020-03-14 Kamil Rytarowski <n54@gmx.com>
12595
12596 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12597 includes.
12598 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12599 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12600 fill_fpregset): Likewise.
12601
4fed520b
KR
126022020-03-14 Kamil Rytarowski <n54@gmx.com>
12603
12604 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12605 nbsd_nat_target instead of inf_ptrace_target.
12606 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12607 nbsd_nat_target.
12608
2190cf06
KR
126092020-03-14 Kamil Rytarowski <n54@gmx.com>
12610
12611 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12612 register_t.
12613
75c56d3d
KR
126142020-03-14 Kamil Rytarowski <n54@gmx.com>
12615
12616 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12617 it to the ptrace call.
12618 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12619 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12620 * arm-nbsd-nat.c (store_register): Likewise.
12621 * arm-nbsd-nat.c (store_regs): Likewise.
12622 * arm-nbsd-nat.c (store_fp_register): Likewise.
12623 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12624
6018d381
KR
126252020-03-14 Kamil Rytarowski <n54@gmx.com>
12626
12627 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12628 nbsd_nat_target instead of inf_ptrace_target.
12629 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12630 nbsd_nat_target.
12631
013f99f0
KR
126322020-03-14 Kamil Rytarowski <n54@gmx.com>
12633
12634 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12635 it to the ptrace call.
12636 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12637
12753073
KR
126382020-03-14 Kamil Rytarowski <n54@gmx.com>
12639
6227b330
KR
12640 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12641 it to the ptrace call.
12642 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12643
126442020-03-14 Kamil Rytarowski <n54@gmx.com>
12645
12646 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12647 gdb_byte *.
12753073
KR
12648 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12649
d5be5fa4
KR
126502020-03-14 Kamil Rytarowski <n54@gmx.com>
12651
12652 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12653 instead of inf_ptrace_target.
12654 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12655 nbsd_nat_target.
12656
8110f842
KR
126572020-03-14 Kamil Rytarowski <n54@gmx.com>
12658
12659 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12660 register_t.
12661
52feded7
KR
126622020-03-14 Kamil Rytarowski <n54@gmx.com>
12663
12664 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12665 register_t.
12666
25567eee
KR
126672020-03-14 Kamil Rytarowski <n54@gmx.com>
12668
12669 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12670 register_t.
12671
426a9c18
TT
126722020-03-13 Tom Tromey <tom@tromey.com>
12673
12674 * value.h (val_print): Don't declare.
12675 * valprint.h (val_print_array_elements)
12676 (val_print_scalar_formatted, generic_val_print): Don't declare.
12677 * valprint.c (generic_val_print_array): Take a struct value.
12678 (generic_val_print_ptr, generic_val_print_memberptr)
12679 (generic_val_print_bool, generic_val_print_int)
12680 (generic_val_print_char, generic_val_print_complex)
12681 (generic_val_print): Remove.
12682 (generic_value_print): Update.
12683 (do_val_print): Remove unused parameters. Don't call
12684 la_val_print.
12685 (val_print): Remove.
12686 (common_val_print): Update. Don't call value_check_printable.
12687 (val_print_scalar_formatted, val_print_array_elements): Remove.
12688 * rust-lang.c (rust_val_print): Remove.
12689 (rust_language_defn): Update.
12690 * p-valprint.c (pascal_val_print): Remove.
12691 (pascal_value_print_inner): Update.
12692 (pascal_object_print_val_fields, pascal_object_print_val):
12693 Remove.
12694 (pascal_object_print_static_field): Update.
12695 * p-lang.h (pascal_val_print): Don't declare.
12696 * p-lang.c (pascal_language_defn): Update.
12697 * opencl-lang.c (opencl_language_defn): Update.
12698 * objc-lang.c (objc_language_defn): Update.
12699 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12700 * m2-lang.h (m2_val_print): Don't declare.
12701 * m2-lang.c (m2_language_defn): Update.
12702 * language.h (struct language_defn) <la_val_print>: Remove.
12703 * language.c (unk_lang_value_print_inner): Rename. Change
12704 argument types.
12705 (unknown_language_defn, auto_language_defn): Update.
12706 * go-valprint.c (go_val_print): Remove.
12707 * go-lang.h (go_val_print): Don't declare.
12708 * go-lang.c (go_language_defn): Update.
12709 * f-valprint.c (f_val_print): Remove.
12710 * f-lang.h (f_value_print): Don't declare.
12711 * f-lang.c (f_language_defn): Update.
12712 * d-valprint.c (d_val_print): Remove.
12713 * d-lang.h (d_value_print): Don't declare.
12714 * d-lang.c (d_language_defn): Update.
12715 * cp-valprint.c (cp_print_value_fields)
12716 (cp_print_value_fields_rtti, cp_print_value): Remove.
12717 (cp_print_static_field): Update.
12718 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12719 (c_val_print_struct, c_val_print_union, c_val_print_int)
12720 (c_val_print_memberptr, c_val_print): Remove.
12721 * c-lang.h (c_val_print_array, cp_print_value_fields)
12722 (cp_print_value_fields_rtti): Don't declare.
12723 * c-lang.c (c_language_defn, cplus_language_defn)
12724 (asm_language_defn, minimal_language_defn): Update.
12725 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12726 (ada_val_print_enum): Take a struct value.
12727 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12728 (ada_val_print): Remove.
12729 (ada_value_print_1): Update.
12730 (printable_val_type): Remove.
12731 * ada-lang.h (ada_val_print): Don't declare.
12732 * ada-lang.c (ada_language_defn): Update.
12733
42331a1e
TT
127342020-03-13 Tom Tromey <tom@tromey.com>
12735
12736 * valprint.c (do_val_print): Update.
12737 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12738 a struct value.
12739 (value_to_value_object_no_release): Declare.
12740 * python/py-value.c (value_to_value_object_no_release): New
12741 function.
12742 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12743 struct value.
12744 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12745 function.
12746 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12747 a struct value.
12748 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12749 Declare.
12750 (gdbscm_apply_val_pretty_printer): Take a struct value.
12751 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12752 value.
12753 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12754 value.
12755 * extension-priv.h (struct extension_language_ops)
12756 <apply_val_pretty_printer>: Take a struct value.
12757 * cp-valprint.c (cp_print_value): Create a struct value.
12758 (cp_print_value): Update.
12759
3a916a97
TT
127602020-03-13 Tom Tromey <tom@tromey.com>
12761
12762 * ada-valprint.c (print_field_values): Call common_val_print.
12763
b59eac37
TT
127642020-03-13 Tom Tromey <tom@tromey.com>
12765
12766 * ada-valprint.c (val_print_packed_array_elements): Remove
12767 bitoffset and val parameters. Call common_val_print.
12768 (ada_val_print_string): Remove offset, address, and original_value
12769 parameters.
12770 (ada_val_print_array): Update.
12771 (ada_value_print_array): New function.
12772 (ada_value_print_1): Call it.
12773
03371129
TT
127742020-03-13 Tom Tromey <tom@tromey.com>
12775
12776 * ada-valprint.c (ada_value_print): Use common_val_print.
12777
2e088f8b
TT
127782020-03-13 Tom Tromey <tom@tromey.com>
12779
12780 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12781
39ef85a8
TT
127822020-03-13 Tom Tromey <tom@tromey.com>
12783
12784 * ada-valprint.c (ada_value_print_num): New function.
12785 (ada_value_print_1): Use it.
12786
b9fa6e07
TT
127872020-03-13 Tom Tromey <tom@tromey.com>
12788
12789 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12790
416595d6
TT
127912020-03-13 Tom Tromey <tom@tromey.com>
12792
12793 * ada-valprint.c (ada_value_print_ptr): New function.
12794 (ada_value_print_1): Use it.
12795
5b5e15ec
TT
127962020-03-13 Tom Tromey <tom@tromey.com>
12797
12798 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12799 call common_val_print.
12800 (ada_val_print_1): Update.
12801 (ada_value_print_1): New function.
12802 (ada_value_print_inner): Rewrite.
12803
fbf54e75
TT
128042020-03-13 Tom Tromey <tom@tromey.com>
12805
12806 * cp-valprint.c (cp_print_value_fields): Update.
12807 (cp_print_value): New function.
12808
64b653ca
TT
128092020-03-13 Tom Tromey <tom@tromey.com>
12810
12811 * m2-valprint.c (m2_value_print_inner): Use
12812 cp_print_value_fields.
12813 * cp-valprint.c (cp_print_value_fields): New function.
12814 * c-valprint.c (c_value_print_struct): New function.
12815 (c_value_print_inner): Use c_value_print_struct.
12816 * c-lang.h (cp_print_value_fields): Declare.
12817
6999f067
TT
128182020-03-13 Tom Tromey <tom@tromey.com>
12819
12820 * c-valprint.c (c_value_print_array): New function.
12821 (c_value_print_inner): Use it.
12822
ce80b8bd
TT
128232020-03-13 Tom Tromey <tom@tromey.com>
12824
12825 * c-valprint.c (c_value_print_memberptr): New function.
12826 (c_value_print_inner): Use it.
12827
2faac269
TT
128282020-03-13 Tom Tromey <tom@tromey.com>
12829
12830 * c-valprint.c (c_value_print_int): New function.
12831 (c_value_print_inner): Use it.
12832
da3e2c29
TT
128332020-03-13 Tom Tromey <tom@tromey.com>
12834
12835 * c-valprint.c (c_value_print_ptr): New function.
12836 (c_value_print_inner): Use it.
12837
50836231
TT
128382020-03-13 Tom Tromey <tom@tromey.com>
12839
12840 * c-valprint.c (c_value_print_inner): Rewrite.
12841
4f412b6e
TT
128422020-03-13 Tom Tromey <tom@tromey.com>
12843
12844 * valprint.c (generic_value_print_complex): New function.
12845 (generic_value_print): Use it.
12846
f5354008
TT
128472020-03-13 Tom Tromey <tom@tromey.com>
12848
12849 * valprint.c (generic_val_print_float): Don't call
12850 val_print_scalar_formatted.
12851 (generic_val_print, generic_value_print): Update.
12852
3eec3b05
TT
128532020-03-13 Tom Tromey <tom@tromey.com>
12854
12855 * valprint.c (generic_value_print_char): New function
12856 (generic_value_print): Use it.
12857
fdddfccb
TT
128582020-03-13 Tom Tromey <tom@tromey.com>
12859
12860 * valprint.c (generic_value_print_int): New function.
12861 (generic_value_print): Use it.
12862
6dde7521
TT
128632020-03-13 Tom Tromey <tom@tromey.com>
12864
12865 * valprint.c (generic_value_print_bool): New function.
12866 (generic_value_print): Use it.
12867
4112d2e6
TT
128682020-03-13 Tom Tromey <tom@tromey.com>
12869
12870 * valprint.c (generic_val_print_func): Simplify.
12871 (generic_val_print, generic_value_print): Update.
12872
65786af6
TT
128732020-03-13 Tom Tromey <tom@tromey.com>
12874
12875 * valprint.c (generic_val_print_flags): Remove.
12876 (generic_val_print, generic_value_print): Update.
12877 (val_print_type_code_flags): Add original_value parameter.
12878
40f3ce18
TT
128792020-03-13 Tom Tromey <tom@tromey.com>
12880
12881 * valprint.c (generic_val_print): Update.
12882 (generic_value_print): Update.
12883 * valprint.c (generic_val_print_enum): Don't call
12884 val_print_scalar_formatted.
12885
2a5b130b
TT
128862020-03-13 Tom Tromey <tom@tromey.com>
12887
12888 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12889 * valprint.c (generic_value_print_ptr): New function.
12890
abc66ce9
TT
128912020-03-13 Tom Tromey <tom@tromey.com>
12892
12893 * valprint.c (generic_value_print): Rewrite.
12894
07a32858
TT
128952020-03-13 Tom Tromey <tom@tromey.com>
12896
12897 * p-valprint.c (pascal_object_print_value_fields)
12898 (pascal_object_print_value): New functions.
12899
64d64d3a
TT
129002020-03-13 Tom Tromey <tom@tromey.com>
12901
12902 * p-valprint.c (pascal_value_print_inner): Rewrite.
12903
6a95a1f5
TT
129042020-03-13 Tom Tromey <tom@tromey.com>
12905
12906 * f-valprint.c (f_value_print_innner): Rewrite.
12907
59fcdac6
TT
129082020-03-13 Tom Tromey <tom@tromey.com>
12909
12910 * m2-valprint.c (m2_print_unbounded_array): New overload.
12911 (m2_print_unbounded_array): Update.
12912 (m2_print_array_contents): Take a struct value.
12913 (m2_value_print_inner): Rewrite.
12914
d133c3e1
TT
129152020-03-13 Tom Tromey <tom@tromey.com>
12916
12917 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12918 (d_value_print_inner): New function.
12919 * d-lang.h (d_value_print_inner): Declare.
12920 * d-lang.c (d_language_defn): Use d_value_print_inner.
12921
23b0f06b
TT
129222020-03-13 Tom Tromey <tom@tromey.com>
12923
12924 * go-valprint.c (go_value_print_inner): New function.
12925 * go-lang.h (go_value_print_inner): Declare.
12926 * go-lang.c (go_language_defn): Use go_value_print_inner.
12927
5f56f7cb
TT
129282020-03-13 Tom Tromey <tom@tromey.com>
12929
12930 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12931 API.
12932 (rust_val_print): Rewrite.
12933 (rust_value_print_inner): New function, from rust_val_print.
12934 (rust_language_defn): Use rust_value_print_inner.
12935
26792ee0
TT
129362020-03-13 Tom Tromey <tom@tromey.com>
12937
12938 * ada-valprint.c (ada_value_print_inner): New function.
12939 * ada-lang.h (ada_value_print_inner): Declare.
12940 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12941
24051bbe
TT
129422020-03-13 Tom Tromey <tom@tromey.com>
12943
12944 * f-valprint.c (f_value_print_innner): New function.
12945 * f-lang.h (f_value_print_innner): Declare.
12946 * f-lang.c (f_language_defn): Use f_value_print_innner.
12947
c0941be6
TT
129482020-03-13 Tom Tromey <tom@tromey.com>
12949
12950 * p-valprint.c (pascal_value_print_inner): New function.
12951 * p-lang.h (pascal_value_print_inner): Declare.
12952 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12953
62c4663d
TT
129542020-03-13 Tom Tromey <tom@tromey.com>
12955
12956 * m2-valprint.c (m2_value_print_inner): New function.
12957 * m2-lang.h (m2_value_print_inner): Declare.
12958 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12959
62182190
TT
129602020-03-13 Tom Tromey <tom@tromey.com>
12961
12962 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12963 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12964 * c-valprint.c (c_value_print_inner): New function.
12965 * c-lang.h (c_value_print_inner): Declare.
12966 * c-lang.c (c_language_defn, cplus_language_defn)
12967 (asm_language_defn, minimal_language_defn): Use
12968 c_value_print_inner.
12969
1e592a8a
TT
129702020-03-13 Tom Tromey <tom@tromey.com>
12971
12972 * p-valprint.c (pascal_object_print_value_fields): Now static.
12973 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12974
7fe471e9
TT
129752020-03-13 Tom Tromey <tom@tromey.com>
12976
12977 * c-valprint.c (c_val_print_array): Simplify.
12978
d121c6ce
TT
129792020-03-13 Tom Tromey <tom@tromey.com>
12980
12981 * valprint.c (value_print_array_elements): New function.
12982 * valprint.h (value_print_array_elements): Declare.
12983
4dba70ee
TT
129842020-03-13 Tom Tromey <tom@tromey.com>
12985
12986 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12987 * mips-tdep.c (mips_print_register): Use
12988 value_print_scalar_formatted.
12989
4f9ae810
TT
129902020-03-13 Tom Tromey <tom@tromey.com>
12991
12992 * valprint.h (value_print_scalar_formatted): Declare.
12993 * valprint.c (value_print_scalar_formatted): New function.
12994
156bfec9
TT
129952020-03-13 Tom Tromey <tom@tromey.com>
12996
12997 * valprint.h (generic_value_print): Declare.
12998 * valprint.c (generic_value_print): New function.
12999
2b4e573d
TT
130002020-03-13 Tom Tromey <tom@tromey.com>
13001
13002 * valprint.c (do_val_print): Call la_value_print_inner, if
13003 available.
13004 * rust-lang.c (rust_language_defn): Update.
13005 * p-lang.c (pascal_language_defn): Update.
13006 * opencl-lang.c (opencl_language_defn): Update.
13007 * objc-lang.c (objc_language_defn): Update.
13008 * m2-lang.c (m2_language_defn): Update.
13009 * language.h (struct language_defn) <la_value_print_inner>: New
13010 member.
13011 * language.c (unknown_language_defn, auto_language_defn): Update.
13012 * go-lang.c (go_language_defn): Update.
13013 * f-lang.c (f_language_defn): Update.
13014 * d-lang.c (d_language_defn): Update.
13015 * c-lang.c (c_language_defn, cplus_language_defn)
13016 (asm_language_defn, minimal_language_defn): Update.
13017 * ada-lang.c (ada_language_defn): Update.
13018
a1f6a07c
TT
130192020-03-13 Tom Tromey <tom@tromey.com>
13020
13021 * c-valprint.c (c_value_print): Use common_val_print.
13022
410cf315
TT
130232020-03-13 Tom Tromey <tom@tromey.com>
13024
13025 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13026
72a45c93
TT
130272020-03-13 Tom Tromey <tom@tromey.com>
13028
13029 * f-valprint.c (f77_print_array_1, f_val_print): Use
13030 common_val_print.
13031
040f66bd
TT
130322020-03-13 Tom Tromey <tom@tromey.com>
13033
13034 * riscv-tdep.c (riscv_print_one_register_info): Use
13035 common_val_print.
13036
a6e05a6c
TT
130372020-03-13 Tom Tromey <tom@tromey.com>
13038
13039 * mi/mi-main.c (output_register): Use common_val_print.
13040
3444c526
TT
130412020-03-13 Tom Tromey <tom@tromey.com>
13042
13043 * infcmd.c (default_print_one_register_info): Use
13044 common_val_print.
13045
c2a44efe
TT
130462020-03-13 Tom Tromey <tom@tromey.com>
13047
13048 * valprint.h (common_val_print_checked): Declare.
13049 * valprint.c (common_val_print_checked): New function.
13050 * stack.c (print_frame_arg): Use common_val_print_checked.
13051
b0c26e99
TT
130522020-03-13 Tom Tromey <tom@tromey.com>
13053
13054 * valprint.c (do_val_print): New function, from val_print.
13055 (val_print): Use do_val_print.
13056 (common_val_print): Use do_val_print.
13057
ce3acbe9
TT
130582020-03-13 Tom Tromey <tom@tromey.com>
13059
13060 * valprint.c (value_print): Use scoped_value_mark.
13061
96c7f873
TV
130622020-03-13 Tom de Vries <tdevries@suse.de>
13063
13064 PR symtab/25646
13065 * psymtab.c (partial_symtab::partial_symtab): Don't set
13066 globals_offset and statics_offset. Push element onto
13067 current_global_psymbols and current_static_psymbols stacks.
13068 (concat): New function.
13069 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13070 element from current_global_psymbols and current_static_psymbols
13071 stacks. Concat popped elements to global_psymbols and
13072 static_symbols.
13073 (add_psymbol_to_list): Use current_global_psymbols and
13074 current_static_psymbols stacks.
13075 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13076 current_static_psymbols fields.
13077
6ba0a321
CB
130782020-03-12 Christian Biesinger <cbiesinger@google.com>
13079
13080 * corelow.c (sniff_core_bfd): Remove.
13081 (class core_target) <m_core_vec>: Remove.
13082 (core_target::core_target): Update.
13083 (core_file_fns): Remove.
13084 (deprecated_add_core_fns): Remove.
13085 (default_core_sniffer): Remove.
13086 (sniff_core_bfd): Remove.
13087 (default_check_format): Remove.
13088 (gdb_check_format): Remove.
13089 (core_target_open): Update.
13090 (core_target::get_core_register_section): Update.
13091 (get_core_registers_cb): Update.
13092 (core_target::fetch_registers): Update.
13093 * gdbcore.h (struct core_fns): Remove.
13094 (deprecated_add_core_fns): Remove.
13095 (default_core_sniffer): Remove.
13096 (default_check_format): Remove.
13097
227031b2
TT
130982020-03-12 Tom Tromey <tom@tromey.com>
13099
13100 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13101 CORE_ADDR.
13102 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13103
53807e9f
TT
131042020-03-12 Tom Tromey <tom@tromey.com>
13105
13106 * remote.c (remote_target::download_tracepoint)
13107 (remote_target::enable_tracepoint)
13108 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13109 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13110 sprintf_vma.
13111
64f25102
TT
131122020-03-12 Tom Tromey <tom@tromey.com>
13113
13114 * symfile-mem.c: Update CORE_ADDR size assert.
13115
272cd5a3
SM
131162020-03-12 Simon Marchi <simon.marchi@efficios.com>
13117
13118 * selftest.m4: Move to gdbsupport/.
13119 * acinclude.m4: Update path to selftest.m4.
13120
74cd3f9d
SM
131212020-03-12 Simon Marchi <simon.marchi@efficios.com>
13122
13123 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13124 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13125 gdbarch-selfselftests.c and selftest-arch.c.
13126 (SUBDIR_UNITTESTS_OBS): Rename to...
13127 (SELFTESTS_OBS): ... this.
13128 (COMMON_SFILES): Remove disasm-selftests.c and
13129 gdbarch-selftests.c.
13130 * configure.ac: Don't add selftest-arch.{c,o} to
13131 CONFIG_{SRCS,OBS}.
13132 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13133 preprocessor conditions.
13134
db6878ac
SM
131352020-03-12 Simon Marchi <simon.marchi@efficios.com>
13136
13137 * configure.ac: Don't source bfd/development.sh.
13138 * selftest.m4: Modify comment.
13139 * configure: Re-generate.
13140
4d696a5c
SM
131412020-03-12 Simon Marchi <simon.marchi@efficios.com>
13142
13143 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13144 not "true" or "false".
13145 * configure: Re-generate.
13146
8dd8e1c7
CB
131472020-03-12 Christian Biesinger <cbiesinger@google.com>
13148
13149 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13150 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13151 renamed to arm_nbsd_supply_gregset.
13152 (fetch_register): Update to call arm_nbsd_supply_gregset.
13153 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13154 (arm_netbsd_nat_target::fetch_registers): Update.
13155 (fetch_elfcore_registers): Removed.
13156 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13157 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13158 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13159 not require NetBSD system headers.
13160 (arm_nbsd_regset): New struct.
13161 (arm_nbsd_iterate_over_regset_sections): New function.
13162 (arm_netbsd_init_abi_common): Updated to call
13163 set_gdbarch_iterate_over_regset_sections.
13164 * arm-nbsd-tdep.h: New file.
13165
dd69bf7a
KB
131662020-03-11 Kevin Buettner <kevinb@redhat.com>
13167
13168 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13169 recursion.
13170
a0761e34
SM
131712020-03-11 Simon Marchi <simon.marchi@efficios.com>
13172
13173 * configure: Re-generate.
13174
e7a82140
TT
131752020-03-11 Tom Tromey <tromey@adacore.com>
13176
13177 * ada-typeprint.c (print_choices): Fix comment.
13178
dcc050c8
AB
131792020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13180
13181 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13182 previous item in the list, when the list has no items.
13183
1c33af77
TV
131842020-03-11 Tom de Vries <tdevries@suse.de>
13185
13186 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13187 PROP_LOCLIST handling code.
13188
8c95582d
AB
131892020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13190
13191 * buildsym-legacy.c (record_line): Pass extra parameter to
13192 record_line.
13193 * buildsym.c (buildsym_compunit::record_line): Take an extra
13194 parameter, reduce duplication in the line table, and record the
13195 is_stmt flag in the line table.
13196 * buildsym.h (buildsym_compunit::record_line): Add extra
13197 parameter.
13198 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13199 non-statement lines.
13200 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13201 this to the symtab builder.
13202 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13203 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13204 through to dwarf_record_line_1.
13205 * infrun.c (process_event_stop_test): When stepping, don't stop at
13206 a non-statement instruction, and only refresh the step info when
13207 we land in the middle of a line's range. Also add an extra
13208 comment.
13209 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13210 field.
13211 * record-btrace.c (btrace_find_line_range): Only record lines
13212 marked as is-statement.
13213 * stack.c (frame_show_address): Show the frame address if we are
13214 in a non-statement sal.
13215 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13216 (maintenance_print_one_line_table): Print a header for the is_stmt
13217 column, and include is_stmt information in the output.
13218 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13219 preference to non-statements.
13220 (find_pcs_for_symtab_line): Prefer is-statement entries.
13221 (find_line_common): Likewise.
13222 * symtab.h (struct linetable_entry): Add is_stmt field.
13223 (struct symtab_and_line): Likewise.
13224 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13225 arranging the line table.
13226
e4003a34
TV
132272020-03-07 Tom de Vries <tdevries@suse.de>
13228
13229 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13230 DIE.
13231
e8932576
TT
132322020-03-07 Tom Tromey <tom@tromey.com>
13233
13234 * valops.c (value_literal_complex): Remove obsolete comment.
13235 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13236 comment.
13237
29734269
SM
132382020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13239
13240 * infrun.h: Forward-declare thread_info.
13241 (set_step_info): Add thread_info parameter, add doc.
13242 * infrun.c (set_step_info): Add thread_info parameter, move doc
13243 to header.
13244 * infrun.c (process_event_stop_test): Pass thread to
13245 set_step_info call.
13246 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13247 set_step_info.
13248 (prepare_one_step): Add thread_info parameter, pass it to
13249 set_step_frame and prepare_one_step (recursive) call.
13250 (step_1): Pass thread to prepare_one_step call.
13251 (step_command_fsm::should_stop): Pass thread to
13252 prepare_one_step.
13253 (until_next_fsm): Pass thread to set_step_frame call.
13254 (finish_command): Pass thread to set_step_info call.
13255
b7d64b29
HD
132562020-03-06 Hannes Domani <ssbssa@yahoo.de>
13257
13258 * windows-tdep.c (windows_solib_create_inferior_hook):
13259 Check if inferior is running.
13260
09f2921c
TV
132612020-03-06 Tom de Vries <tdevries@suse.de>
13262
13263 * NEWS: Fix "the the".
13264 * ctfread.c: Same.
13265
fd760e79
TV
132662020-03-06 Tom de Vries <tdevries@suse.de>
13267
13268 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13269
20ea4a60
AB
132702020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13271
13272 * .dir-locals.el: Add a comment referencing the other copies of
13273 this file.
13274
0afbabf0
JB
132752020-03-05 John Baldwin <jhb@FreeBSD.org>
13276
13277 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13278 psargs.
13279
842806cb
TBA
132802020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13281
13282 * .gitattributes: New file.
13283
be1e3d3e
TT
132842020-03-04 Tom Tromey <tom@tromey.com>
13285
13286 * symmisc.c (print_symbol_bcache_statistics)
13287 (print_objfile_statistics): Update.
13288 * symfile.c (allocate_symtab): Use intern.
13289 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13290 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13291 macro_cache>: Remove.
13292 <string_cache>: New member.
13293 (struct objfile) <intern>: New methods.
13294 * elfread.c (elf_symtab_read): Use intern.
13295 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13296 (dwarf2_compute_name, dwarf2_physname)
13297 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13298 names.
13299 (guess_partial_die_structure_name): Update.
13300 (partial_die_info::fixup): Intern name.
13301 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13302 name.
13303 (dwarf2_name): Intern name. Update.
13304 * buildsym.c (buildsym_compunit::get_macro_table): Use
13305 string_cache.
13306
4e7625fd
TT
133072020-03-04 Tom Tromey <tom@tromey.com>
13308
13309 * jit.c (bfd_open_from_target_memory): Make "target" const.
13310 * corefile.c (gnutarget): Now const.
13311 * gdbcore.h (gnutarget): Now const.
13312
46f9f931
HD
133132020-03-04 Hannes Domani <ssbssa@yahoo.de>
13314
13315 * NEWS: Mention support for WOW64 processes.
13316 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13317 (amd64_windows_segment_register_p): Remove static.
13318 (_initialize_amd64_windows_nat): Update.
13319 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13320 * i386-windows-nat.c (context_offset): Update.
13321 (i386_mappings): Rename and remove static.
13322 (i386_windows_segment_register_p): Remove static.
13323 (_initialize_i386_windows_nat): Update.
13324 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13325 (STATUS_WX86_SINGLE_STEP): New macro.
13326 (EnumProcessModulesEx): New macro.
13327 (Wow64SuspendThread): New macro.
13328 (Wow64GetThreadContext): New macro.
13329 (Wow64SetThreadContext): New macro.
13330 (Wow64GetThreadSelectorEntry): New macro.
13331 (windows_set_context_register_offsets): Add static.
13332 (windows_set_segment_register_p): Likewise.
13333 (windows_add_thread): Adapt for WOW64 processes.
13334 (windows_fetch_one_register): Likewise.
13335 (windows_nat_target::fetch_registers): Likewise.
13336 (windows_store_one_register): Likewise.
13337 (display_selector): Likewise.
13338 (display_selectors): Likewise.
13339 (handle_exception): Likewise.
13340 (windows_continue): Likewise.
13341 (windows_nat_target::resume): Likewise.
13342 (windows_add_all_dlls): Likewise.
13343 (do_initial_windows_stuff): Likewise.
13344 (windows_nat_target::attach): Likewise.
13345 (windows_get_exec_module_filename): Likewise.
13346 (windows_nat_target::create_inferior): Likewise.
13347 (windows_xfer_siginfo): Likewise.
13348 (_initialize_loadable): Initialize Wow64SuspendThread,
13349 Wow64GetThreadContext, Wow64SetThreadContext,
13350 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13351 * windows-nat.h (windows_set_context_register_offsets):
13352 Remove declaration.
13353 (windows_set_segment_register_p): Likewise.
13354 (i386_windows_segment_register_p): Add declaration.
13355 (amd64_windows_segment_register_p): Likewise.
13356
440cf44e
LM
133572020-03-04 Luis Machado <luis.machado@linaro.org>
13358
13359 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13360 in "info registers" for AArch64/ARM.
13361
13362 The change caused "info registers" to not print GPR's.
13363
13364 gdb/ChangeLog:
13365
13366 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13367
13368 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13369 when reg->group is empty and reggroup is not.
13370
1009d92f
TT
133712020-03-03 Tom Tromey <tromey@adacore.com>
13372
13373 * dwarf2/frame.c (struct dwarf2_frame_cache)
13374 <checked_tailcall_bottom, entry_cfa_sp_offset,
13375 entry_cfa_sp_offset_p>: Remove members.
13376 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13377 (dwarf2_frame_prev_register): Don't call
13378 dwarf2_tailcall_sniffer_first.
13379 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13380 * frame-unwind.c (add_unwinder): New fuction.
13381 (frame_unwind_init): Use it. Add tailcall unwinder.
13382
5e5d66b6
AB
133832020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13384 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13385
13386 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13387 value should be printed as true.
13388
584cf46d
HD
133892020-03-03 Hannes Domani <ssbssa@yahoo.de>
13390
13391 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13392 (windows_init_abi): Set and use windows_so_ops.
13393
7b973adc
SDJ
133942020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13395
13396 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13397 when verifying if dealing with a convenience variable.
13398
bb7b70ab
LM
133992020-03-03 Luis Machado <luis.machado@linaro.org>
13400
13401 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13402
9822cb57
SM
134032020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13404
13405 * infrun.c (gdbarch_supports_displaced_stepping): New.
13406 (use_displaced_stepping): Break up conditions in smaller pieces.
13407 Use gdbarch_supports_displaced_stepping.
13408 (displaced_step_prepare_throw): Use
13409 gdbarch_supports_displaced_stepping.
13410
63e163f2
AB
134112020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13412
13413 * NEWS: Mention new behaviour of the history filename.
13414 * top.c (write_history_p): Add comment.
13415 (show_write_history_p): Add header comment, give a different
13416 message when history writing is on, but the history filename is
13417 empty.
13418 (history_filename): Add comment.
13419 (history_filename_empty): New function.
13420 (show_history_filename): Add header comment, give a different
13421 message when the filename is empty.
13422 (init_history): Compare history_filename against nullptr, and only
13423 read history if the filename is not empty.
13424 (set_history_filename): Add header comment, and only make
13425 non-empty filenames absolute.
13426 (init_main): Make the filename argument to 'set history filename'
13427 optional.
13428
81b86b97
CB
134292020-03-02 Christian Biesinger <cbiesinger@google.com>
13430
13431 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13432 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13433 (fetch_fp_register): Update.
13434 (fetch_fp_regs): Update.
13435 (store_fp_register): Update.
13436 (store_fp_regs): Update.
13437 (arm_netbsd_nat_target::read_description): New function.
13438 (fetch_elfcore_registers): Update.
13439
24ed6739
AB
134402020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13441
13442 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13443 general_thread if the stop reply is missing a thread-id.
13444 (remote_target::process_stop_reply): Use the first non-exited
13445 thread if the target didn't pass a thread-id.
13446 * infrun.c (do_target_wait): Move call to
13447 switch_to_inferior_no_thread to ....
13448 (do_target_wait_1): ... here.
13449
a84bb2a0
JT
134502020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13451
13452 * debuginfod-support.c: Include defs.h first.
13453
658dadf0
TV
134542020-02-28 Tom de Vries <tdevries@suse.de>
13455
13456 * symfile.c (set_initial_language): Use default language for lookup.
13457
4ebe4877
SM
134582020-02-28 Simon Marchi <simon.marchi@efficios.com>
13459
13460 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13461 reader variable, pass `this` to read_cutu_die_from_dwo.
13462
e5da1139
AM
134632020-02-27 Aaron Merey <amerey@redhat.com>
13464
13465 * source.c (open_source_file): Check for nullptr when computing
13466 srcpath.
13467
317f7127
TT
134682020-02-27 Tom Tromey <tromey@adacore.com>
13469
13470 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13471 member.
13472 (dwarf2_add_field): Don't update nfields.
13473 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13474
3104d9ee
AB
134752020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13476
13477 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13478 abs.
13479
b83470bf
TT
134802020-02-26 Tom Tromey <tom@tromey.com>
13481
13482 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13483 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13484 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13485 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13486 per_cu_data.
13487
edfe0a0c
TT
134882020-02-26 Tom Tromey <tom@tromey.com>
13489
13490 * dwarf2/index-write.c (psym_index_map): Change type.
13491 (add_address_entry_worker, write_one_signatured_type)
13492 (recursively_count_psymbols, recursively_write_psymbols)
13493 (class debug_names, psyms_seen_size, write_gdbindex)
13494 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13495
0d79cdc4
AM
134962020-02-26 Aaron Merey <amerey@redhat.com>
13497
13498 * Makefile.in: Handle optional debuginfod support.
13499 * NEWS: Update.
13500 * README: Add --with-debuginfod summary.
13501 * config.in: Regenerate.
13502 * configure: Regenerate.
13503 * configure.ac: Handle optional debuginfod support.
13504 * debuginfod-support.c: debuginfod helper functions.
13505 * debuginfod-support.h: Ditto.
13506 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13507 summary.
13508 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13509 when a dwz file cannot be found.
13510 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13511 debuginfo file cannot be found.
13512 * source.c (open_source_file): Query debuginfod servers when a
13513 source file cannot be found.
13514 * top.c (print_gdb_configuration): Include
13515 --{with,without}-debuginfod in the output.
13516
b65ce565
JG
135172020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13518
13519 * thread.c (thr_try_catch_cmd): Print thread name.
13520
d4c9a4f8
SM
135212020-02-26 Simon Marchi <simon.marchi@efficios.com>
13522
13523 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13524 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13525 dwarf2_fetch_die_type_sect_off): Move to...
13526 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13527 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13528 dwarf2_fetch_die_type_sect_off): ... here.
13529 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13530 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13531 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13532
0dce4280
TV
135332020-02-26 Tom de Vries <tdevries@suse.de>
13534
13535 PR gdb/25603
13536 * symfile.c (set_initial_language): Exit-early if
13537 language_mode == language_mode_manual.
13538
450a1bfc
SM
135392020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13540
13541 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13542 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13543 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13544
9e80cfa1
AB
135452020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13546
13547 * gdbtypes.c (create_array_type_with_stride): Handle negative
13548 array strides.
13549 * valarith.c (value_subscripted_rvalue): Likewise.
13550
09624f1f
LM
135512020-02-25 Luis Machado <luis.machado@linaro.org>
13552
13553 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13554
8cb5117c
SM
135552020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13556
13557 * loc.h (dwarf2_get_die_type): Move to...
13558 * read.h (dwarf2_get_die_type): ... here.
13559 * read.c (dwarf2_get_die_type): Move doc to header.
13560
c325c44e
JB
135612020-02-25 Joel Brobecker <brobecker@adacore.com>
13562
13563 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13564 'gnulib/Makefile.in' to the list.
13565
4ac93832
TT
135662020-02-24 Tom Tromey <tom@tromey.com>
13567
13568 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13569 Remove.
13570 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13571 XOBNEWVEC.
13572
197400e8
TT
135732020-02-24 Tom Tromey <tom@tromey.com>
13574
13575 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13576 New method.
13577 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13578 (dw2_do_instantiate_symtab, dw2_get_file_names)
13579 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13580
76935768
TT
135812020-02-24 Tom Tromey <tom@tromey.com>
13582
13583 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13584 make_scoped_restore.
13585 (dwarf2_psymtab::read_symtab): Don't clear
13586 reading_partial_symbols.
13587
a88ef40d
TV
135882020-02-24 Tom de Vries <tdevries@suse.de>
13589
13590 PR gdb/25592
13591 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13592
c9af6521
TV
135932020-02-24 Tom de Vries <tdevries@suse.de>
13594
13595 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13596 commands layout next/prev/regs.
13597
5707a07a
TT
135982020-02-22 Tom Tromey <tom@tromey.com>
13599
13600 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13601 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13602
3b0fb49e
TT
136032020-02-22 Tom Tromey <tom@tromey.com>
13604
13605 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13606
283be8bf
TT
136072020-02-22 Tom Tromey <tom@tromey.com>
13608
13609 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13610 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13611 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13612 * tui/tui.c (_initialize_tui): Add usage text.
13613
ca793b96
TT
136142020-02-22 Tom Tromey <tom@tromey.com>
13615
13616 * tui/tui-win.c (tui_set_focus_command)
13617 (tui_set_win_height_command): Use error_no_arg.
13618 (_initialize_tui_win): Update help text.
13619 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13620
432b5c40
TT
136212020-02-22 Tom Tromey <tom@tromey.com>
13622
13623 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13624 * tui/tui-disasm.h (struct tui_disasm_window)
13625 <display_start_addr>: Declare.
13626 * tui/tui-source.h (struct tui_source_window)
13627 <display_start_addr>: Declare.
13628 * tui/tui-winsource.h (struct tui_source_window_base)
13629 <show_source_line, display_start_addr>: New methods.
13630 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13631 Rename and move to protected section.
13632 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13633 (tui_source_window_base::do_erase_source_content): Update.
13634 (tui_source_window_base::show_source_line): Now a method.
13635 (tui_source_window_base::show_source_content)
13636 (tui_source_window_base::tui_source_window_base)
13637 (tui_source_window_base::rerender)
13638 (tui_source_window_base::refill)
13639 (tui_source_window_base::do_scroll_horizontal)
13640 (tui_source_window_base::set_is_exec_point_at)
13641 (tui_source_window_base::update_breakpoint_info)
13642 (tui_source_window_base::update_exec_info): Update.
13643 * tui/tui-source.c (tui_source_window::set_contents)
13644 (tui_source_window::showing_source_p)
13645 (tui_source_window::do_scroll_vertical)
13646 (tui_source_window::location_matches_p)
13647 (tui_source_window::line_is_displayed): Update.
13648 (tui_source_window::display_start_addr): New method.
13649 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13650 (tui_disasm_window::do_scroll_vertical)
13651 (tui_disasm_window::location_matches_p): Update.
13652 (tui_disasm_window::display_start_addr): New method.
13653
01b1af32
TT
136542020-02-22 Tom Tromey <tom@tromey.com>
13655
13656 * NEWS: Add entry for gdb.register_window_type.
13657 * tui/tui-layout.h (window_factory): New typedef.
13658 (tui_register_window): Declare.
13659 * tui/tui-layout.c (saved_tui_windows): New global.
13660 (tui_apply_current_layout): Use it.
13661 (tui_register_window): New function.
13662 * python/python.c (do_start_initialization): Call
13663 gdbpy_initialize_tui.
13664 (python_GdbMethods): Add "register_window_type" function.
13665 * python/python-internal.h (gdbpy_register_tui_window)
13666 (gdbpy_initialize_tui): Declare.
13667 * python/py-tui.c: New file.
13668 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13669
fc96d20b
TT
136702020-02-22 Tom Tromey <tom@tromey.com>
13671
13672 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13673
935c78c0
TT
136742020-02-22 Tom Tromey <tom@tromey.com>
13675
13676 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13677 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13678 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13679 (tui_set_win_focus_to): Move from tui-win.c.
13680
0240c8f1
TT
136812020-02-22 Tom Tromey <tom@tromey.com>
13682
13683 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13684 functions.
13685 (known_window_types): New global.
13686 (tui_get_window_by_name): Reimplement.
13687 (initialize_known_windows): New function.
13688 (validate_window_name): Rewrite.
13689 (_initialize_tui_layout): Call initialize_known_windows.
13690
fdb01f0c
TT
136912020-02-22 Tom Tromey <tom@tromey.com>
13692
13693 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13694 Remove constants.
13695 * tui/tui-winsource.h (struct tui_source_window_base)
13696 <tui_source_window_base>: Remove parameter.
13697 * tui/tui-winsource.c
13698 (tui_source_window_base::tui_source_window_base): Remove
13699 parameter.
13700 (tui_source_window_base::refill): Update.
13701 * tui/tui-stack.h (struct tui_locator_window)
13702 <tui_locator_window>: Update.
13703 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13704 Default the constructor.
13705 * tui/tui-regs.h (struct tui_data_item_window)
13706 <tui_data_item_window>: Default the constructor.
13707 (struct tui_data_window) <tui_data_window>: Likewise.
13708 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13709 Default the constructor.
13710 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13711 Default the constructor.
13712 <type>: Remove.
13713 (struct tui_win_info) <tui_win_info>: Default the constructor.
13714 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13715 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13716 Default the constructor.
13717
865a5aec
TT
137182020-02-22 Tom Tromey <tom@tromey.com>
13719
13720 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13721 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13722 * tui/tui-win.c (tui_resize_all): Don't call
13723 tui_delete_invisible_windows.
13724 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13725 done.
13726 (tui_set_layout): Update.
13727 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13728 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13729 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13730
e098d18c
TT
137312020-02-22 Tom Tromey <tom@tromey.com>
13732
13733 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13734 correctly.
13735
eb9c8874
TT
137362020-02-22 Tom Tromey <tom@tromey.com>
13737
13738 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13739
7eed1a8e
TT
137402020-02-22 Tom Tromey <tom@tromey.com>
13741
13742 * tui/tui-winsource.h (struct tui_source_window_iterator)
13743 <inner_iterator>: New etytypedef.
13744 <tui_source_window_iterator>: Take "end" parameter.
13745 <tui_source_window_iterator>: Take iterator.
13746 <operator*, advance>: Update.
13747 <m_iter>: Change type.
13748 <m_end>: New field.
13749 (struct tui_source_windows) <begin, end>: Update.
13750 * tui/tui-layout.c (tui_windows): New global.
13751 (tui_apply_current_layout): Clear tui_windows.
13752 (tui_layout_window::apply): Update tui_windows.
13753 * tui/tui-data.h (tui_windows): Declare.
13754 (all_tui_windows): Now inline function.
13755 (class tui_window_iterator, struct all_tui_windows): Remove.
13756
7c043ba6
TT
137572020-02-22 Tom Tromey <tom@tromey.com>
13758
13759 PR tui/17850:
13760 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13761 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13762 "height" argument.
13763 (class tui_layout_window) <get_sizes>: Likewise.
13764 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13765 argument.
13766 <get_sizes>: Add "height" argument.
13767 <m_vertical>: New field.
13768 * tui/tui-layout.c (tui_layout_split::clone): Update.
13769 (tui_layout_split::get_sizes): Add "height" argument.
13770 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13771 (tui_new_layout_command): Parse "-horizontal".
13772 (_initialize_tui_layout): Update help string.
13773 (tui_layout_split::specification): Add "-horizontal" when needed.
13774 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13775 argument.
13776 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13777 New methods.
13778
6bc56648
TT
137792020-02-22 Tom Tromey <tom@tromey.com>
13780
13781 * tui/tui-layout.h (enum tui_adjust_result): New.
13782 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13783 (class tui_layout_window) <adjust_size>: Return
13784 tui_adjust_result. Rewrite.
13785 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13786 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13787
c22fef7e
TT
137882020-02-22 Tom Tromey <tom@tromey.com>
13789
13790 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13791 parameter and return types.
13792 (class tui_layout_base) <specification>: Add "depth".
13793 (class tui_layout_window) <specification>: Add "depth".
13794 (class tui_layout_split) <specification>: Add "depth".
13795 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13796 and return types.
13797 (tui_new_layout_command): Parse sub-layouts.
13798 (_initialize_tui_layout): Update help string.
13799 (tui_layout_window::specification): Add "depth".
13800 (add_layout_command): Update.
13801
ee325b61
TT
138022020-02-22 Tom Tromey <tom@tromey.com>
13803
13804 * NEWS: Add "tui new-layout" item.
13805 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13806 Add new-layout command to help text.
13807 (validate_window_name): New function.
13808 (tui_new_layout_command): New function.
13809 (_initialize_tui_layout): Register "new-layout".
13810 (tui_layout_window::specification): New method.
13811 (tui_layout_window::specification): New method.
13812 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13813 method.
13814 (class tui_layout_window) <specification>: New method.
13815 (class tui_layout_split) <specification>: New method.
13816
416eb92d
TT
138172020-02-22 Tom Tromey <tom@tromey.com>
13818
13819 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13820 * tui/tui-win.c (window_name_completer): Update comment.
13821 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13822 Declare method.
13823 (class tui_layout_window) <replace_window>: Likewise.
13824 (class tui_layout_split) <replace_window>: Likewise.
13825 (tui_set_layout): Don't declare.
13826 (tui_set_initial_layout): Declare function.
13827 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13828 (asm_regs_layout): New globals.
13829 (tui_current_layout, show_layout): Remove.
13830 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13831 (find_layout, tui_apply_layout): New function.
13832 (layout_completer): Remove.
13833 (tui_next_layout): Reimplement.
13834 (tui_next_layout_command): New function.
13835 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13836 (tui_regs_layout): Reimplement.
13837 (tui_regs_layout_command): New function.
13838 (extract_display_start_addr): Rewrite.
13839 (next_layout, prev_layout): Remove.
13840 (tui_layout_window::replace_window): New method.
13841 (tui_layout_split::replace_window): New method.
13842 (destroy_layout): New function.
13843 (layout_list): New global.
13844 (add_layout_command): New function.
13845 (initialize_layouts): Update.
13846 (tui_layout_command): New function.
13847 (_initialize_tui_layout): Install "layout" commands.
13848 * tui/tui-data.h (enum tui_layout_type): Remove.
13849 (tui_current_layout): Don't declare.
13850
0dbc2fc7
TT
138512020-02-22 Tom Tromey <tom@tromey.com>
13852
13853 * tui/tui-regs.c (tui_reg_layout): Remove.
13854 (tui_reg_command): Use tui_regs_layout.
13855 * tui/tui-layout.h (tui_reg_command): Declare.
13856 * tui/tui-layout.c (tui_reg_command): New function.
13857
5afe342e
TT
138582020-02-22 Tom Tromey <tom@tromey.com>
13859
13860 * tui/tui.c (tui_rl_delete_other_windows): Call
13861 tui_remove_some_windows.
13862 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13863 Declare method.
13864 (class tui_layout_window) <remove_windows>: New method.
13865 (class tui_layout_split) <remove_windows>: Declare.
13866 (tui_remove_some_windows): Declare.
13867 * tui/tui-layout.c (tui_remove_some_windows): New function.
13868 (tui_layout_split::remove_windows): New method.
13869
427326a8
TT
138702020-02-22 Tom Tromey <tom@tromey.com>
13871
13872 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13873 * tui/tui-layout.h (tui_next_layout): Declare.
13874 * tui/tui-layout.c (tui_next_layout): New function.
13875
3fe12b6d
TT
138762020-02-22 Tom Tromey <tom@tromey.com>
13877
13878 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13879 correct coordinates.
13880
59b8b5d2
TT
138812020-02-22 Tom Tromey <tom@tromey.com>
13882
13883 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13884 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13885 DATA_WIN case.
13886
2a3d458b
TT
138872020-02-22 Tom Tromey <tom@tromey.com>
13888
13889 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13890 TUI_DISASM_WIN, not tui_win_list.
13891
3f0cbb04
TT
138922020-02-22 Tom Tromey <tom@tromey.com>
13893
13894 * valprint.c (generic_val_print_enum_1)
13895 (val_print_type_code_flags): Style member names.
13896 * rust-lang.c (val_print_struct, rust_print_enum)
13897 (rust_print_struct_def, rust_internal_print_type): Style member
13898 names.
13899 * p-valprint.c (pascal_object_print_value_fields): Style member
13900 names. Only call fprintf_symbol_filtered for static members.
13901 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13902 * f-valprint.c (f_val_print): Style member names.
13903 * f-typeprint.c (f_type_print_base): Style member names.
13904 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13905 call fprintf_symbol_filtered for static members.
13906 (cp_print_class_member): Style member names.
13907 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13908 member names.
13909 * ada-valprint.c (ada_print_scalar): Style enum names.
13910 (ada_val_print_enum): Likewise.
13911 * ada-typeprint.c (print_enum_type): Style enum names.
13912
d4d947ae
TT
139132020-02-21 Tom Tromey <tom@tromey.com>
13914
13915 * psympriv.h (struct partial_symtab): Update comment.
13916
e94e944b
TT
139172020-02-21 Tom Tromey <tromey@adacore.com>
13918
13919 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13920 type is CORE_ADDR.
13921
1eb73179
TV
139222020-02-21 Tom de Vries <tdevries@suse.de>
13923
13924 PR gdb/25534
13925 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13926 if dependencies[i]->user != NULL.
13927
4f180d53
AT
139282020-02-21 Ali Tamur <tamur@google.com>
13929
13930 * dwarf2/read.c (dwarf2_name): Add null check.
13931
22b6cd70
TT
139322020-02-20 Tom Tromey <tom@tromey.com>
13933
13934 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13935 ">=", in binary search.
13936 (dwarf2_find_containing_comp_unit): New overload.
13937 (run_test): New self-test.
13938 (_initialize_dwarf2_read): Register new test.
13939
bd0cf5a6
NC
139402020-02-20 Nelson Chu <nelson.chu@sifive.com>
13941
13942 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13943 * riscv-tdep.h: Likewise.
13944 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13945 rv32-only CSR.
13946 * features/riscv/64bit-csr.xml: Regenerated.
13947
3f702acd
SDJ
139482020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13949 Tom Tromey <tom@tromey.com>
13950
13951 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13952 of 'fputc_unfiltered'.
13953 (putchar_unfiltered): Call 'fputc_unfiltered'.
13954 (fputc_unfiltered): Call 'fputs_unfiltered'.
13955
d13c7322
AB
139562020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13957
13958 * config.in: Regenerate.
13959 * configure: Regenerate.
13960 * configure.ac: Add --with-python-libdir option.
13961 * main.c: Use WITH_PYTHON_LIBDIR.
13962
869d8950
TT
139632020-02-19 Tom Tromey <tom@tromey.com>
13964
13965 * symtab.c (general_symbol_info::compute_and_set_names): Use
13966 obstack_strndup. Simplify call to symbol_set_demangled_name.
13967
298e9637
SM
139682020-02-19 Simon Marchi <simon.marchi@efficios.com>
13969
13970 * dwarf2/read.c (allocate_signatured_type_table,
13971 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13972 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13973 Remove objfile parameter, update all callers.
13974
08410482
DE
139752020-02-19 Doug Evans <dje@google.com>
13976
13977 PR rust/25535
13978 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13979 rust_enum_variant calculation.
13980
dfdeeca1
TT
139812020-02-19 Tom Tromey <tromey@adacore.com>
13982
13983 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13984
2ef5453b
TT
139852020-02-19 Tom Tromey <tromey@adacore.com>
13986
13987 * ada-lang.c (cache_symbol): Use obstack_strdup.
13988
9f1528a1
AB
139892020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13990
13991 * configure: Regenerate.
13992
d3c22fa8
TT
139932020-02-19 Tom Tromey <tromey@adacore.com>
13994
13995 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13996 NULL check.
13997
bf84f706
MR
139982020-02-19 Maciej W. Rozycki <macro@wdc.com>
13999
14000 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14001
d1c9b20f
AB
140022020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14003
14004 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14005 if GDBSERVER is not defined.
14006 (riscv_tdesc_cache): Likewise, also store const target_desc.
14007 (STATIC_IN_GDB): Define.
14008 (riscv_create_target_description): Update declaration with
14009 STATIC_IN_GDB.
14010 (riscv_lookup_target_description): New function, only define if
14011 GDBSERVER is not defined.
14012 * arch/riscv.h (riscv_create_target_description): Declare only
14013 when GDBSERVER is defined.
14014 (riscv_lookup_target_description): New declaration when GDBSERVER
14015 is not defined.
14016 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14017 (riscv_linux_read_features): ...this, and return
14018 riscv_gdbarch_features instead of target_desc.
14019 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14020 (riscv_linux_read_description): Rename to...
14021 (riscv_linux_read_features): ...this.
14022 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14023 Update to use riscv_gdbarch_features and
14024 riscv_lookup_target_description.
14025 * riscv-tdep.c (riscv_find_default_target_description): Use
14026 riscv_lookup_target_description instead of
14027 riscv_create_target_description.
14028
373d7ac0
SM
140292020-02-18 Simon Marchi <simon.marchi@efficios.com>
14030
14031 * valprint.c (generic_val_print_enum_1): When printing a flag
14032 enum with value 0 and there is no enumerator with value 0, print
14033 just "0" instead of "(unknown: 0x0)".
14034
b29a2df0
SM
140352020-02-18 Simon Marchi <simon.marchi@efficios.com>
14036
14037 * valprint.c (generic_val_print_enum_1): Print unknown part of
14038 flag enum in hex.
14039
6740f0cc
SM
140402020-02-18 Simon Marchi <simon.marchi@efficios.com>
14041
14042 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14043 flag enums to contain duplicate enumerators.
14044 * valprint.c (generic_val_print_enum_1): Update comment.
14045
edd45eb0
SM
140462020-02-18 Simon Marchi <simon.marchi@efficios.com>
14047
14048 * dwarf2/read.c: Include "count-one-bits.h".
14049 (update_enumeration_type_from_children): If an enumerator has
14050 multiple bits set, don't treat the enumeration as a "flag enum".
14051 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14052 of flag enums have 0 or 1 bit set.
14053
6d0cf446
BE
140542020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14055
14056 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14057 conversion.
14058 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14059 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14060 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14061 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14062 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14063
7001c1b7
SM
140642020-02-18 Simon Marchi <simon.marchi@efficios.com>
14065
14066 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14067
fdb61c6c
SM
140682020-02-14 Simon Marchi <simon.marchi@efficios.com>
14069
14070 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14071 displaced_step_closure_up.
14072 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14073 (struct displaced_step_closure_up):
14074 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14075 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14076 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14077 Likewise.
14078 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14079 * gdbarch.c, gdbarch.h: Re-generate.
14080 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14081 displaced_step_closure_up.
14082 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14083 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14084 * infrun.h (displaced_step_closure_up): New type alias.
14085 (struct displaced_step_inferior_state) <step_closure>: Change
14086 type to displaced_step_closure_up.
14087 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14088 displaced_step_closure_up.
14089 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14090
a4a38eb4
TT
140912020-02-14 Tom Tromey <tom@tromey.com>
14092
14093 * minidebug.c (gnu_debug_key): New global.
14094 (find_separate_debug_file_in_section): Use it.
14095
e8217e61
SM
140962020-02-14 Simon Marchi <simon.marchi@efficios.com>
14097
14098 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14099 std::unique_ptr.
14100 * gdbarch.c: Re-generate.
14101 * gdbarch.h: Re-generate.
14102 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14103 change.
14104 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14105 type to std::unique_ptr.
14106 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14107 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14108 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14109 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14110 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14111 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14112 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14113 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14114 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14115
d8d83535
SM
141162020-02-14 Simon Marchi <simon.marchi@efficios.com>
14117
14118 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14119 std::unique_ptr.
14120 (displaced_step_clear): Rename to...
14121 (displaced_step_reset): ... this. Just call displaced->reset ().
14122 (displaced_step_clear_cleanup): Rename to...
14123 (displaced_step_reset_cleanup): ... this.
14124 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14125 (displaced_step_fixup): Likewise.
14126 (resume_1): Likewise.
14127 (handle_inferior_event): Restore child's memory before calling
14128 displaced_step_fixup on the parent.
14129 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14130 to std::unique_ptr.
14131 <step_closure>: Change type to std::unique_ptr.
14132
5f661e03
SM
141332020-02-14 Simon Marchi <simon.marchi@efficios.com>
14134
14135 * arm-tdep.c: Include count-one-bits.h.
14136 (cleanup_block_store_pc): Use count_one_bits.
14137 (cleanup_block_load_pc): Use count_one_bits.
14138 (arm_copy_block_xfer): Use count_one_bits.
14139 (thumb2_copy_block_xfer): Use count_one_bits.
14140 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14141 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14142 (thumb_get_next_pcs_raw): Use count_one_bits.
14143 (arm_get_next_pcs_raw): Use count_one_bits_l.
14144 * arch/arm.c (bitcount): Remove.
14145 * arch/arm.h (bitcount): Remove.
14146
8084e579
TT
141472020-02-14 Tom Tromey <tromey@adacore.com>
14148
14149 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14150 Update.
14151 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14152 * dwarf2/loc.c (call_site_find_chain_1): Return
14153 unique_xmalloc_ptr.
14154 (call_site_find_chain): Likewise.
14155
258bf0ee
RB
141562020-02-14 Richard Biener <rguenther@suse.de>
14157
14158 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14159 on expression with division operators.
14160
f98a8458
AKS
141612020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14162
14163 * MAINTAINERS (Write After Approval): Adding myself.
14164
d1437c0e
TT
141652020-02-12 Tom Tromey <tom@tromey.com>
14166
14167 * event-loop.c (event_data, gdb_event, event_handler_func):
14168 Remove.
14169
3d4560f7
TT
141702020-02-12 Tom Tromey <tom@tromey.com>
14171
14172 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14173 (dwarf2_frame_objfile_data): Add comment.
14174 (find_comp_unit, set_comp_unit): New functions.
14175 (dwarf2_frame_find_fde): Use find_comp_unit.
14176 (dwarf2_build_frame_info): Use set_comp_unit.
14177
21982304
TT
141782020-02-12 Tom Tromey <tom@tromey.com>
14179
14180 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14181 (comp_unit): Don't initialize objfile.
14182 (execute_cfa_program): Add text_offset parameter.
14183 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14184 (dwarf2_frame_cache): Update.
14185 (dwarf2_build_frame_info): Don't set "objfile" member.
14186
4debb237
TT
141872020-02-12 Tom Tromey <tom@tromey.com>
14188
14189 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14190 (decode_frame_entry): Likewise.
14191 (dwarf2_build_frame_info): Update.
14192
0d404d44
TT
141932020-02-12 Tom Tromey <tom@tromey.com>
14194
14195 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14196 (decode_frame_entry_1): Use the comp_unit obstack.
14197
a7a3ae5c
TT
141982020-02-12 Tom Tromey <tom@tromey.com>
14199
14200 * dwarf2/frame.c (struct comp_unit): Add initializers and
14201 constructor.
14202 (dwarf2_frame_objfile_data): Store a comp_unit.
14203 (dwarf2_frame_find_fde): Update.
14204 (dwarf2_build_frame_info): Use "new".
14205
a9d65418
TT
142062020-02-12 Tom Tromey <tom@tromey.com>
14207
14208 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14209 (dwarf2_fde_table): Typedef for std::vector.
14210 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14211 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14212 (decode_frame_entry): Update.
14213 (dwarf2_build_frame_info): Use "new".
14214
7559c217
CB
142152020-02-12 Christian Biesinger <cbiesinger@google.com>
14216
14217 * arm-tdep.c (arm_gdbarch_init): Update.
14218 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14219 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14220 have_neon, is_m>: Change to bool.
14221
aeefc73c
CB
142222020-02-12 Christian Biesinger <cbiesinger@google.com>
14223
14224 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14225
d27b8e5f
TT
142262020-02-12 Tom Tromey <tom@tromey.com>
14227
14228 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14229
cd5900f3
HD
142302020-02-12 Hannes Domani <ssbssa@yahoo.de>
14231
14232 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14233 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14234
f056b22b
TT
142352020-02-11 Tom Tromey <tom@tromey.com>
14236
14237 * psymtab.h: Update comment.
14238
f92ff6b5
TT
142392020-02-11 Tom Tromey <tom@tromey.com>
14240
14241 * gdb_obstack.h (struct auto_obstack): Use
14242 DISABLE_COPY_AND_ASSIGN.
14243
3fd6912b
TT
142442020-02-11 Tom Tromey <tom@tromey.com>
14245
14246 * dwarf2/frame.h (struct objfile): Don't forward declare.
14247
69ed9b74
CB
142482020-02-11 Christian Biesinger <cbiesinger@google.com>
14249
14250 * cris-tdep.c (cris_supply_gregset): Change signature to match
14251 what struct regset expects.
14252 (cris_regset): New struct.
14253 (fetch_core_registers): Remove.
14254 (cris_iterate_over_regset_sections): New function.
14255 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14256 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14257
bda874f6
CB
142582020-02-11 Christian Biesinger <cbiesinger@google.com>
14259
14260 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14261 registers.
14262
754e1564
CB
142632020-02-11 Christian Biesinger <cbiesinger@google.com>
14264
14265 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14266
8ddd8e0e
SM
142672020-02-11 Simon Marchi <simon.marchi@efficios.com>
14268
14269 * configure: Re-generate.
14270
898e7f60
SM
142712020-02-11 Simon Marchi <simon.marchi@efficios.com>
14272
14273 * configure: Re-generate.
14274
58df732b
SM
142752020-02-11 Simon Marchi <simon.marchi@efficios.com>
14276
14277 * acinclude: Update warning.m4 path.
14278 * warning.m4: Move to gdbsupport.
14279
da5bd37e
TT
142802020-02-11 Tom Tromey <tromey@adacore.com>
14281
14282 * remote.c (remote_console_output): Update.
14283 * printcmd.c (printf_command): Update.
14284 * event-loop.c (gdb_wait_for_event): Update.
14285 * linux-nat.c (sigchld_handler): Update.
14286 * remote-sim.c (gdb_os_write_stdout): Update.
14287 (gdb_os_flush_stdout): Update.
14288 (gdb_os_flush_stderr): Update.
14289 (gdb_os_write_stderr): Update.
14290 * exceptions.c (print_exception): Update.
14291 * remote-fileio.c (remote_fileio_func_read): Update.
14292 (remote_fileio_func_write): Update.
14293 * tui/tui.c (tui_enable): Update.
14294 * tui/tui-interp.c (tui_interp::init): Update.
14295 * utils.c (init_page_info): Update.
14296 (putchar_unfiltered, fputc_unfiltered): Update.
14297 (gdb_flush): Update.
14298 (emit_style_escape): Update.
14299 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14300 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14301 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14302 (stderr_file::write): Update.
14303 (stderr_file::puts): Update.
14304 * ui-file.h (ui_file_isatty, ui_file_write)
14305 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14306 (ui_file_puts): Don't declare.
14307
85f0dd3c
TV
143082020-02-10 Tom de Vries <tdevries@suse.de>
14309
14310 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14311 sentinel to char *.
14312
2e927613
TV
143132020-02-09 Tom de Vries <tdevries@suse.de>
14314
14315 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14316 filename if it matches "<artificial>".
14317
6bafc845
HD
143182020-02-09 Hannes Domani <ssbssa@yahoo.de>
14319
14320 * windows-tdep.c (struct enum_value_name): New struct.
14321 (create_enum): New function.
14322 (windows_get_siginfo_type): Create and use enum types.
14323
7928d571
HD
143242020-02-09 Hannes Domani <ssbssa@yahoo.de>
14325
14326 * NEWS: Mention $_siginfo support for Windows.
14327 * windows-nat.c (handle_exception): Set siginfo_er.
14328 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14329 (windows_xfer_siginfo): New function.
14330 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14331 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14332 (init_windows_gdbarch_data): New function.
14333 (get_windows_gdbarch_data): New function.
14334 (windows_get_siginfo_type): New function.
14335 (windows_init_abi): Register windows_get_siginfo_type.
14336 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14337
6751ebae
TT
143382020-02-08 Tom Tromey <tom@tromey.com>
14339
14340 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14341 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14342 <keep>: Declare method.
14343 <m_keep>: Remove member.
14344 <~cutu_reader>: Remove.
14345 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14346 (cutu_reader::cutu_reader): Update.
14347 (cutu_reader::keep): Rename from ~cutu_reader.
14348 (process_psymtab_comp_unit, build_type_psymtabs_1)
14349 (process_skeletonless_type_unit, load_partial_comp_unit)
14350 (load_full_comp_unit, dwarf2_read_addr_index)
14351 (read_signatured_type): Update.
14352
135f5437
TT
143532020-02-08 Tom Tromey <tom@tromey.com>
14354
14355 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14356 "want_partial_unit" parameter.
14357 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14358 Inline check for DW_TAG_partial_unit.
14359 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14360
9f66ff1c
TT
143612020-02-08 Tom Tromey <tom@tromey.com>
14362
14363 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14364 read.c.
14365 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14366 read.c.
14367
c8a7a66f
TT
143682020-02-08 Tom Tromey <tom@tromey.com>
14369
14370 * dwarf2/read.c (read_address): Move to comp-unit.c.
14371 (dwarf2_rnglists_process, dwarf2_ranges_process)
14372 (read_attribute_value, dwarf_decode_lines_1)
14373 (var_decode_location, decode_locdesc): Update.
14374 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14375 read.c. Remove "cu" parameter.
14376 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14377 method.
14378
8266302d
TT
143792020-02-08 Tom Tromey <tom@tromey.com>
14380
14381 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14382 (read_indirect_line_string): Update.
14383 * dwarf2/comp-unit.c (read_offset): Remove.
14384 (read_comp_unit_head): Update.
14385 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14386 method.
14387 (read_offset): Don't declare.
14388
4057dfde
TT
143892020-02-08 Tom Tromey <tom@tromey.com>
14390
14391 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14392 * dwarf2/read.c (struct comp_unit_head): Move to
14393 dwarf2/comp-unit.h.
14394 (enum class rcuh_kind): Move to comp-unit.h.
14395 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14396 (read_comp_unit_head, error_check_comp_unit_head)
14397 (read_and_check_comp_unit_head): Move to comp-unit.c.
14398 (read_offset, dwarf_unit_type_name): Likewise.
14399 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14400 (cutu_reader::cutu_reader, read_call_site_scope)
14401 (find_partial_die, follow_die_offset): Update.
14402 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14403
24aa364d
TT
144042020-02-08 Tom Tromey <tom@tromey.com>
14405
14406 * dwarf2/read.c (read_offset_1): Move to leb.c.
14407 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14408 (dwarf_decode_macro_bytes): Update.
14409 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14410 * dwarf2/leb.h (read_offset): Declare.
14411
2c7d5afc
TT
144122020-02-08 Tom Tromey <tom@tromey.com>
14413
14414 * dwarf2/read.c (dwarf2_section_size): Remove.
14415 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14416 Update.
14417 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14418
4075cb26
TT
144192020-02-08 Tom Tromey <tom@tromey.com>
14420
14421 * dwarf2/read.c (read_initial_length): Move to leb.c.
14422 * dwarf2/leb.h (read_initial_length): Declare.
14423 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14424 handle_nonstd parameter.
14425 * dwarf2/frame.c (read_initial_length): Remove.
14426 (decode_frame_entry_1): Update.
14427
09ba997f
TT
144282020-02-08 Tom Tromey <tom@tromey.com>
14429
14430 * dwarf2/loc.c (dwarf2_find_location_expression)
14431 (dwarf_evaluate_loc_desc::get_tls_address)
14432 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14433 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14434 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14435 (dwarf2_compile_property_to_c)
14436 (dwarf2_loc_desc_get_symbol_read_needs)
14437 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14438 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14439 (loclist_describe_location, loclist_tracepoint_var_ref)
14440 (loclist_generate_c_location): Update.
14441 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14442 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14443 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14444 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14445 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14446 (dwarf2_per_cu_data::addr_size)
14447 (dwarf2_per_cu_data::ref_addr_size)
14448 (dwarf2_per_cu_data::text_offset)
14449 (dwarf2_per_cu_data::addr_type): Now methods.
14450 (per_cu_header_read_in): Make per_cu "const".
14451 (dwarf2_version): Remove.
14452 (dwarf2_per_cu_data::int_type): Now a method.
14453 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14454 (set_die_type, read_array_type, read_subrange_index_type)
14455 (read_tag_string_type, read_subrange_type): Update.
14456 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14457 offset_size, ref_addr_size, text_offset, addr_type, version,
14458 objfile, int_type, addr_sized_int_type>: Declare methods.
14459
96c738c0
TT
144602020-02-08 Tom Tromey <tom@tromey.com>
14461
14462 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14463 Move earlier.
14464
8fdd972c
TT
144652020-02-08 Tom Tromey <tom@tromey.com>
14466
14467 * dwarf2/read.h (dwarf_line_debug): Declare.
14468 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14469 * dwarf2/read.c: Move line_header code to new files.
14470 (dwarf_line_debug): No longer static.
14471 * dwarf2/line-header.c: New file.
14472 * dwarf2/line-header.h: New file.
14473
03075812
TT
144742020-02-08 Tom Tromey <tom@tromey.com>
14475
14476 * dwarf2/read.c (struct line_header) <file_full_name,
14477 file_file_name>: Return unique_xmalloc_ptr.
14478 (line_header::file_file_name): Update.
14479 (line_header::file_full_name): Update.
14480 (dw2_get_file_names_reader): Update.
14481 (macro_start_file): Update.
14482
bb822404
TT
144832020-02-08 Tom Tromey <tom@tromey.com>
14484
14485 * dwarf2/read.c (struct line_header) <file_full_name,
14486 file_file_name>: Declare methods.
14487 (dw2_get_file_names_reader): Update.
14488 (file_file_name): Now a method.
14489 (file_full_name): Likewise.
14490 (macro_start_file): Update.
14491
009b64fc
TT
144922020-02-08 Tom Tromey <tom@tromey.com>
14493
14494 * dwarf2/read.c (dwarf_always_disassemble)
14495 (show_dwarf_always_disassemble): Move to loc.c.
14496 (_initialize_dwarf2_read): Move "always-disassemble" registration
14497 to loc.c.
14498 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14499 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14500 static.
14501 (show_dwarf_always_disassemble): Move from read.c.
14502 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14503
5895093f
TT
145042020-02-08 Tom Tromey <tom@tromey.com>
14505
14506 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14507 (create_quick_file_names_table): Return htab_up.
14508 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14509 Update.
14510 * dwarf2/read.h (struct dwarf2_per_objfile)
14511 <quick_file_names_table>: Now htab_up.
14512
b3b32279
TT
145132020-02-08 Tom Tromey <tom@tromey.com>
14514
14515 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14516
1d33d811
TT
145172020-02-08 Tom Tromey <tom@tromey.com>
14518
14519 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14520 Rewrite.
14521 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14522 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14523 (abbrev_table::abbrev_table): No longer inline.
14524 (ABBREV_HASH_SIZE): Remove.
14525 (abbrev_table::m_abbrevs): Now an htab_up.
14526
86de1d91
TT
145272020-02-08 Tom Tromey <tom@tromey.com>
14528
14529 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14530 (cutu_reader): Update.
14531 (build_type_psymtabs_1): Update.
14532 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14533 (abbrev_table::alloc_abbrev): Update.
14534 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14535 (abbrev_table::read): New static method, renamed from
14536 abbrev_table_read_table.
14537 (abbrev_table::alloc_abbrev)
14538 (abbrev_table::add_abbrev): Now private.
14539 (abbrev_table::abbrev_table): Now private.
14540 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14541
0335378b
TT
145422020-02-08 Tom Tromey <tom@tromey.com>
14543
14544 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14545 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14546 htab_up.
14547
48b490f2
TT
145482020-02-08 Tom Tromey <tom@tromey.com>
14549
14550 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14551 htab_up.
14552 (lookup_dwo_unit_in_dwp): Update.
14553 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14554 on obstack.
14555
bc68fb19
TT
145562020-02-08 Tom Tromey <tom@tromey.com>
14557
14558 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14559 obstack.
14560
d15acc42
TT
145612020-02-08 Tom Tromey <tom@tromey.com>
14562
14563 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14564 line_header_hash.
14565 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14566 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14567 Change type to htab_up.
14568
eaa5fa8b
TT
145692020-02-08 Tom Tromey <tom@tromey.com>
14570
14571 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14572 htab_up. Don't allocate on obstack.
14573 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14574 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14575 Change type to htab_up.
14576
b0b6a987
TT
145772020-02-08 Tom Tromey <tom@tromey.com>
14578
14579 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14580 Change type to htab_up.
14581 * dwarf2/read.c (create_signatured_type_table_from_index)
14582 (create_signatured_type_table_from_debug_names)
14583 (create_all_type_units, add_type_unit)
14584 (lookup_dwo_signatured_type, lookup_signatured_type)
14585 (process_skeletonless_type_unit): Update.
14586 (create_debug_type_hash_table, create_debug_types_hash_table):
14587 Change type of types_htab.
14588 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14589 htab_up. Don't allocate on obstack.
14590 (create_cus_hash_table): Change type of cus_htab parameter.
14591 (struct dwo_file) <cus, tus>: Now htab_up.
14592 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14593 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14594 (queue_and_load_all_dwo_tus): Update.
14595 * dwarf2/index-write.c (write_gdbindex): Update.
14596 (write_debug_names): Update.
14597
39856def
TT
145982020-02-08 Tom Tromey <tom@tromey.com>
14599
14600 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14601 dwarf2/read.c. Remove "next" member. Add constructor ntad
14602 destructor.
14603 (struct dwarf2_per_objfile) <queue>: New member.
14604 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14605 dwarf2/read.h.
14606 (dwarf2_queue, dwarf2_queue_tail): Remove.
14607 (class dwarf2_queue_guard): Add parameter to constructor. Use
14608 DISABLE_COPY_AND_ASSIGN.
14609 <m_per_objfile>: New member.
14610 <~dwarf2_queue_guard>: Rewrite.
14611 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14612 Update.
14613 (~dwarf2_queue_item): New.
14614
3e225074
TT
146152020-02-08 Tom Tromey <tom@tromey.com>
14616
14617 * dwarf2/read.c (struct die_info) <has_children>: New member.
14618 (dw2_get_file_names_reader): Remove has_children.
14619 (dw2_get_file_names): Update.
14620 (read_cutu_die_from_dwo): Remove has_children.
14621 (cutu_reader::init_tu_and_read_dwo_dies)
14622 (cutu_reader::cutu_reader): Update.
14623 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14624 Remove has_children.
14625 (build_type_psymtabs_1, process_skeletonless_type_unit)
14626 (load_partial_comp_unit, load_full_comp_unit): Update.
14627 (create_dwo_cu_reader): Remove has_children.
14628 (create_cus_hash_table, read_die_and_children): Update.
14629 (read_full_die_1,read_full_die): Remove has_children.
14630 (read_signatured_type): Update.
14631 (class cutu_reader) <has_children>: Remove.
14632
82ca8957
TT
146332020-02-08 Tom Tromey <tom@tromey.com>
14634
14635 * dwarf2/expr.c: Rename from dwarf2expr.c.
14636 * dwarf2/expr.h: Rename from dwarf2expr.h.
14637 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14638 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14639 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14640 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14641 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14642 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14643 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14644 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14645 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14646 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14647 * dwarf2/loc.c: Rename from dwarf2loc.c.
14648 * dwarf2/loc.h: Rename from dwarf2loc.h.
14649 * dwarf2/read.c: Rename from dwarf2read.c.
14650 * dwarf2/read.h: Rename from dwarf2read.h.
14651 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14652 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14653 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14654 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14655 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14656 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14657 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14658 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14659 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14660 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14661 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14662 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14663 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14664 Update.
14665 * Makefile.in (COMMON_SFILES): Update.
14666 (HFILES_NO_SRCDIR): Update.
14667
9e35d499
TT
146682020-02-08 Tom Tromey <tom@tromey.com>
14669
14670 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14671 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14672
1eba2311
TT
146732020-02-08 Tom Tromey <tom@tromey.com>
14674
14675 * dwarf2read.h (struct die_info): Don't declare.
14676
e41c2da2
TT
146772020-02-08 Tom Tromey <tom@tromey.com>
14678
14679 * dwarf2read.h (die_info_ptr): Remove typedef.
14680
4fc6c0d5
TT
146812020-02-08 Tom Tromey <tom@tromey.com>
14682
14683 * dwarf2read.c (read_call_site_scope)
14684 (handle_data_member_location, dwarf2_add_member_fn)
14685 (mark_common_block_symbol_computed, read_common_block)
14686 (attr_to_dynamic_prop, partial_die_info::read)
14687 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14688 (dwarf2_symbol_mark_computed, set_die_type): Update.
14689 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14690 method.
14691 (attr_form_is_block): Don't declare.
14692 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14693
cd6c91b4
TT
146942020-02-08 Tom Tromey <tom@tromey.com>
14695
14696 * dwarf2read.c (dwarf2_find_base_address, )
14697 (read_call_site_scope, rust_containing_type)
14698 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14699 (handle_data_member_location, dwarf2_add_member_fn)
14700 (get_alignment, read_structure_type, process_structure_scope)
14701 (mark_common_block_symbol_computed, read_common_block)
14702 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14703 (partial_die_info::read, read_attribute_value, new_symbol)
14704 (lookup_die_type, dwarf2_get_ref_die_offset)
14705 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14706 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14707 (dwarf2_symbol_mark_computed): Update.
14708 * dwarf2/attribute.h (struct attribute) <value_as_address,
14709 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14710 methods.
14711 (value_as_address, attr_form_is_section_offset)
14712 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14713 * dwarf2/attribute.c (attribute::value_as_address)
14714 (attribute::form_is_section_offset, attribute::form_is_constant)
14715 (attribute::form_is_ref): Now methods.
14716
162dce55
TT
147172020-02-08 Tom Tromey <tom@tromey.com>
14718
14719 * dwarf2read.c (struct attribute, DW_STRING)
14720 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14721 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14722 (attr_form_is_block, attr_form_is_section_offset)
14723 (attr_form_is_constant, attr_form_is_ref): Move.
14724 * dwarf2/attribute.h: New file.
14725 * dwarf2/attribute.c: New file, from dwarf2read.c.
14726 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14727
3054dd54
TT
147282020-02-08 Tom Tromey <tom@tromey.com>
14729
14730 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14731 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14732 Move.
14733 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14734 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14735 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14736 abbrev.c.
14737 * dwarf2/abbrev.h: New file.
14738 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14739 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14740
96b79293
TT
147412020-02-08 Tom Tromey <tom@tromey.com>
14742
14743 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14744 (dwarf2_section_size, dwarf2_get_section_info)
14745 (create_signatured_type_table_from_debug_names)
14746 (create_addrmap_from_aranges, read_debug_names_from_section)
14747 (get_gdb_index_contents_from_section, read_comp_unit_head)
14748 (error_check_comp_unit_head, read_abbrev_offset)
14749 (create_debug_type_hash_table, init_cu_die_reader)
14750 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14751 (read_comp_units_from_section, create_cus_hash_table)
14752 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14753 (create_dwp_v2_section, dwarf2_rnglists_process)
14754 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14755 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14756 (read_indirect_string_from_dwz, read_addr_index_1)
14757 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14758 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14759 (fill_in_loclist_baton): Update.
14760 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14761 get_containing_section, get_bfd_owner, get_bfd_section,
14762 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14763 (dwarf2_read_section, get_section_name, get_section_file_name)
14764 (get_containing_section, get_section_bfd_owner)
14765 (get_section_bfd_section, get_section_name, get_section_file_name)
14766 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14767 declare.
14768 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14769 (dwarf2_section_info::get_bfd_owner)
14770 (dwarf2_section_info::get_bfd_section)
14771 (dwarf2_section_info::get_name)
14772 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14773 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14774 (dwarf2_section_info::read): Now methods.
14775 * dwarf-index-write.c (class debug_names): Update.
14776
2c86cff9
TT
147772020-02-08 Tom Tromey <tom@tromey.com>
14778
14779 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14780 Move to dwarf2/section.h.
14781 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14782 (get_section_bfd_section, get_section_name)
14783 (get_section_file_name, get_section_id, get_section_flags)
14784 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14785 dwarf2/section.c.
14786 * dwarf2/section.h: New file.
14787 * dwarf2/section.c: New file, from dwarf2read.c.
14788 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14789
f4382c45
TT
147902020-02-08 Tom Tromey <tom@tromey.com>
14791
14792 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14793 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14794 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14795 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14796 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14797 * dwarf2/leb.h: New file, from dwarf2read.c.
14798 * dwarf2/leb.c: New file, from dwarf2read.c.
14799 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14800 Remove.
14801 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14802 (COMMON_SFILES): Add dwarf2/leb.c.
14803
01840b7a
JB
148042020-02-08 Joel Brobecker <brobecker@adacore.com>
14805
14806 GDB 9.1 released.
14807
dfcb27e4
IB
148082020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14809
14810 PR gdb/25190:
aac66a4c
SM
14811 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14812 * gdb/remote.c (remote_console_output): Update.
14813 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14814 (ui_file_puts): ...this.
14815 * gdb/ui-file.h (ui_file_puts): Add declaration.
14816 * gdb/utils.c (emit_style_escape): Update.
14817 (flush_wrap_buffer): Update.
14818 (fputs_maybe_filtered): Update.
14819 (fputs_unfiltered): Add function.
dfcb27e4 14820
faa17681
IB
148212020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14822
aac66a4c
SM
14823 * gdb/event-loop.c (gdb_wait_for_event): Update.
14824 * gdb/printcmd.c (printf_command): Update.
14825 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14826 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14827 (gdb_os_flush_stderr): Update.
14828 * gdb/remote.c (remote_console_output): Update.
14829 * gdb/ui-file.c (gdb_flush): Rename to...
14830 (ui_file_flush): ...this.
14831 (stderr_file::write): Update.
14832 (stderr_file::puts): Update.
14833 * gdb/ui-file.h (gdb_flush): Rename to...
14834 (ui_file_flush): ...this.
14835 * gdb/utils.c (gdb_flush): Add function.
14836 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14837
5abbbe1d
TT
148382020-02-07 Tom Tromey <tromey@adacore.com>
14839
14840 PR breakpoints/24915:
14841 * source.c (find_and_open_source): Do not check basenames_may_differ.
14842
919adfe8
TT
148432020-02-07 Tom Tromey <tom@tromey.com>
14844
14845 * README: Update gdbserver documentation.
14846 * gdbserver: Move to top level.
14847 * configure.tgt (build_gdbserver): Remove.
14848 * configure.ac: Remove --enable-gdbserver.
14849 * configure: Rebuild.
14850 * Makefile.in (distclean): Don't mention gdbserver.
14851
1d5d29e7
SV
148522020-02-06 Shahab Vahedi <shahab@synopsys.com>
14853
14854 * source-cache.c (source_cache::ensure): Surround
14855 get_plain_source_lines with a try/catch.
14856 (source_cache::get_line_charpos): Get rid of try/catch
14857 and only check for the return value of "ensure".
14858 * tui/tui-source.c (tui_source_window::set_contents):
14859 Simplify "nlines" calculation.
14860
6eb1129c
SV
148612020-02-06 Shahab Vahedi <shahab@synopsys.com>
14862
14863 * MAINTAINERS (Write After Approval): Add myself.
14864
c6a42d11
CB
148652020-02-05 Christian Biesinger <cbiesinger@google.com>
14866
14867 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14868 function call.
14869
c8ecdda6
CB
148702020-02-05 Christian Biesinger <cbiesinger@google.com>
14871
14872 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14873
f6480e70
MR
148742020-02-05 Maciej W. Rozycki <macro@wdc.com>
14875
14876 * nat/riscv-linux-tdesc.h: New file.
14877 * nat/riscv-linux-tdesc.c: New file, taking code from...
14878 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14879 ... here.
14880 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14881 NATDEPFILES.
14882
dcc9fbc6
AB
148832020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14884
14885 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14886 we don't set the fake simulator ptid to the null_ptid.
14887
719546c4
SM
148882020-02-03 Simon Marchi <simon.marchi@efficios.com>
14889
14890 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14891 * gdbthread.h (class thread_info) <resumed>: Likewise.
14892 * infrun.c (resume_1): Likewise.
14893 (proceed): Likewise.
14894 (infrun_thread_stop_requested): Likewise.
14895 (stop_all_threads): Likewise.
14896 (handle_inferior_event): Likewise.
14897 (restart_threads): Likewise.
14898 (finish_step_over): Likewise.
14899 (keep_going_stepped_thread): Likewise.
14900 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14901 (linux_handle_extended_wait): Likewise.
14902 * record-btrace.c (get_thread_current_frame_id): Likewise.
14903 * record-full.c (record_full_wait_1): Likewise.
14904 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14905 * target.c (target_resume): Likewise.
14906 * thread.c (set_running_thread): Likewise.
14907
e409c542
AKS
149082020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14909
14910 * f-valprint.c (f77_print_array_1): Changed datatype of index
14911 variable to LONGEST from int to enable it to contain bound
14912 values correctly.
14913
ee98c0da
MR
149142020-02-03 Maciej W. Rozycki <macro@wdc.com>
14915
14916 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14917 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14918 offsets according to FLEN determined.
14919 (riscv_linux_nat_target::read_description): Determine FLEN
14920 dynamically.
14921 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14922 according to FLEN determined.
14923 (riscv_linux_nat_target::store_registers): Likewise.
14924
aa66aac4
SV
149252020-02-01 Shahab Vahedi <shahab@synopsys.com>
14926
14927 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14928 when reg->group is empty and reggroup is not.
14929
fd9faca8
TT
149302020-01-31 Tom Tromey <tromey@adacore.com>
14931
14932 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14933 Call beneath target's mourn_inferior after unpushing.
14934
42330a68
AB
149352020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14936
14937 PR tui/9765
14938 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14939 have enough lines to fill the screen, still return the lowest
14940 address we found.
14941
7a27a45b
AB
149422020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14943
14944 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14945 '-', '<', and '>' commands.
14946
c47f70e2
PA
149472020-01-29 Pedro Alves <palves@redhat.com>
14948 Sergio Durigan Junior <sergiodj@redhat.com>
14949
14950 * infcmd.c (construct_inferior_arguments): Assert that
14951 'argc' is greater than 0.
14952
5133a315
LM
149532020-01-29 Luis Machado <luis.machado@linaro.org>
14954
14955 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14956 (BRK_INSN_MASK): Define to 0xd4200000.
14957 (aarch64_program_breakpoint_here_p): New function.
14958 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14959 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14960 breakpoint.c.
14961 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14962 breakpoint.h
14963 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14964 call gdbarch_program_breakpoint_here_p.
14965 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14966 default_program_breakpoint_here_p, changed return type to bool and
14967 simplified.
14968 * breakpoint.h (program_breakpoint_here): Moved prototype to
14969 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14970 return type to bool.
14971 * gdbarch.c: Regenerate.
14972 * gdbarch.h: Regenerate.
14973 * gdbarch.sh (program_breakpoint_here_p): New method.
14974 * infrun.c (handle_signal_stop): Call
14975 gdbarch_program_breakpoint_here_p.
14976
168f8c6b
TT
149772020-01-26 Tom Tromey <tom@tromey.com>
14978
14979 * ctfread.c (struct ctf_fp_info): Reindent.
14980 (_initialize_ctfread): Remove.
14981
128a391f
TT
149822020-01-26 Tom Tromey <tom@tromey.com>
14983
14984 * psymtab.c (partial_map_expand_apply)
14985 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14986 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14987 (psym_print_stats, psym_expand_symtabs_for_function)
14988 (psym_map_symbol_filenames, psym_map_matching_symbols)
14989 (psym_expand_symtabs_matching)
14990 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14991 (maintenance_check_psymtabs): Use new methods.
14992 * psympriv.h (struct partial_symtab) <readin_p,
14993 get_compunit_symtab>: New methods.
14994 <readin, compunit_symtab>: Remove members.
14995 (struct standard_psymtab): New.
14996 (struct legacy_psymtab): Derive from standard_psymtab.
14997 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14998 standard_psymtab.
14999 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15000
0494dbec
TT
150012020-01-26 Tom Tromey <tom@tromey.com>
15002
15003 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15004 read_dependencies. Add assert.
15005 * psymtab.c (partial_symtab::read_dependencies): New method.
15006 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15007 method.
15008 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15009 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15010 read_dependencies.
15011 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15012 Add assert.
15013
8566b89b
TT
150142020-01-26 Tom Tromey <tom@tromey.com>
15015
15016 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15017 Call expand_psymtab.
15018 (xcoff_read_symtab): Call expand_psymtab.
15019 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15020 legacy_expand_psymtab.
15021 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15022 method.
15023 (struct legacy_psymtab) <expand_psymtab>: Implement.
15024 <legacy_expand_psymtab>: New member.
15025 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15026 (parse_partial_symbols): Set legacy_expand_psymtab.
15027 (psymtab_to_symtab_1): Change argument order. Call
15028 expand_psymtab.
15029 (new_psymtab): Set legacy_expand_psymtab.
15030 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15031 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15032 expand_psymtab.
15033 (dwarf2_psymtab::expand_psymtab): Rename from
15034 psymtab_to_symtab_1. Call expand_psymtab.
15035 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15036 (dbx_end_psymtab): Likewise.
15037 (dbx_psymtab_to_symtab_1): Change argument order. Call
15038 expand_psymtab.
15039 (dbx_read_symtab): Call expand_psymtab.
15040 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15041 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15042 (ctf_psymtab::read_symtab): Call expand_psymtab.
15043
077cbab2
TT
150442020-01-26 Tom Tromey <tom@tromey.com>
15045
15046 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15047 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15048 messages.
15049 * mdebugread.c (mdebug_read_symtab): Remove prints.
15050 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15051 assert.
15052 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15053
891813be
TT
150542020-01-26 Tom Tromey <tom@tromey.com>
15055
15056 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15057 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15058 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15059 legacy_symtab.
15060 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15061 * psymtab.c (psymtab_to_symtab): Call method.
15062 (dump_psymtab): Update.
15063 * psympriv.h (struct partial_symtab): Add virtual destructor.
15064 <read_symtab>: New method.
15065 (struct legacy_symtab): New.
15066 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15067 (struct pst_map) <pst>: Now a legacy_psymtab.
15068 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15069 (new_psymtab): Use legacy_psymtab.
15070 * dwarf2read.h (struct dwarf2_psymtab): New.
15071 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15072 * dwarf2read.c (dwarf2_create_include_psymtab)
15073 (dwarf2_build_include_psymtabs, create_type_unit_group)
15074 (create_partial_symtab, process_psymtab_comp_unit_reader)
15075 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15076 (set_partial_user): Use dwarf2_psymtab.
15077 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15078 (psymtab_to_symtab_1, process_full_comp_unit)
15079 (process_full_type_unit, dwarf2_ranges_read)
15080 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15081 (dwarf_decode_lines): Use dwarf2_psymtab.
15082 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15083 (add_address_entry_worker, write_one_signatured_type)
15084 (recursively_count_psymbols, recursively_write_psymbols)
15085 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15086 (write_debug_names): Likewise.
15087 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15088 <pst>: Now a legacy_psymtab.
15089 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15090 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15091 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15092 * ctfread.c (struct ctf_psymtab): New.
15093 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15094 ctf_psymtab.
15095 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15096 (create_partial_symtab): Return a ctf_psymtab.
15097 (scan_partial_symbols): Update.
15098
c3693a1d
TT
150992020-01-26 Tom Tromey <tom@tromey.com>
15100
15101 * xcoffread.c (xcoff_start_psymtab): Use new.
15102 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15103 renamed from start_psymtab_common.
15104 * psympriv.h (struct partial_symtab): Add new constructor.
15105 (start_psymtab_common): Don't declare.
15106 * mdebugread.c (parse_partial_symbols): Use new.
15107 * dwarf2read.c (create_partial_symtab): Use new.
15108 * dbxread.c (start_psymtab): Use new.
15109 * ctfread.c (create_partial_symtab): Use new.
15110
32caafd0
TT
151112020-01-26 Tom Tromey <tom@tromey.com>
15112
15113 * xcoffread.c (xcoff_end_psymtab): Use new.
15114 * psymtab.c (start_psymtab_common): Use new.
15115 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15116 Update.
15117 * psympriv.h (struct partial_symtab): Add parameters to
15118 constructor. Don't inline.
15119 (allocate_psymtab): Don't declare.
15120 * mdebugread.c (new_psymtab): Use new.
15121 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15122 * dbxread.c (dbx_end_psymtab): Use new.
15123
abaa2f23
TT
151242020-01-26 Tom Tromey <tom@tromey.com>
15125
15126 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15127 allocate_psymtab. Update documentation.
15128 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15129 allocate_psymtab. Do not use new.
15130 (allocate_psymtab): Use new. Update.
15131
6d94535f
TT
151322020-01-26 Tom Tromey <tom@tromey.com>
15133
15134 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15135 * psymtab.c (psym_print_stats): Update.
15136 * psympriv.h (struct partial_symtab) <readin,
15137 psymtabs_addrmap_supported, anonymous>: Now bool.
15138 * mdebugread.c (psymtab_to_symtab_1): Update.
15139 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15140 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15141 (process_full_comp_unit, process_full_type_unit): Update.
15142 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15143 * ctfread.c (psymtab_to_symtab): Update.
15144
6f17252b
TT
151452020-01-26 Tom Tromey <tom@tromey.com>
15146
15147 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15148 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15149 * psymtab.c (psymtab_storage): Delete psymtabs.
15150 (psymtab_storage::allocate_psymtab): Use new.
15151 (psymtab_storage::discard_psymtab): Use delete.
15152 * psympriv.h (struct partial_symtab): Add constructor and
15153 initializers.
15154
f6f1cebc
TT
151552020-01-26 Tom Tromey <tom@tromey.com>
15156
15157 * machoread.c: Do not include psympriv.h.
15158
e47e48f6
PW
151592020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15160
15161 * NEWS: Mention the new option and the set/show commands.
15162
a2fedca9
PW
151632020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15164
15165 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15166 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15167 (validate_exec_file): New variables, enums, functions.
15168 (exec_file_locate_attach, print_section_info): Style the filenames.
15169 (_initialize_exec): Install show_exec_file_mismatch_command and
15170 set_exec_file_mismatch_command.
15171 * gdbcore.h (validate_exec_file): Declare.
15172 * infcmd.c (attach_command): Call validate_exec_file.
15173 * remote.c ( remote_target::remote_add_inferior): Likewise.
15174
7ffa82e1
AB
151752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15176
15177 * frame.c (find_frame_sal): Move call to get_next_frame into more
15178 inner scope.
15179 * inline-frame.c (inilne_state) <inline_state>: Update argument
15180 types.
15181 (inilne_state) <skipped_symbol>: Rename to...
15182 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15183 (skip_inline_frames): Build vector of skipped symbols and use this
15184 to reate the inline_state.
15185 (inline_skipped_symbol): Add a comment and some assertions, fetch
15186 skipped symbol from the list.
15187
3d92a3e3
AB
151882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15189
15190 * buildsym.c (lte_is_less_than): Delete.
15191 (buildsym_compunit::end_symtab_with_blockvector): Create local
15192 lambda function to sort line table entries, and use
15193 std::stable_sort instead of std::sort.
15194 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15195 markers when looking for a previous line.
15196
94a72be7
AB
151972020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15198
15199 * dwarf2read.c (lnp_state_machine::record_line): Include
15200 end_sequence parameter in debug print out. Record the line if we
15201 are at an end_sequence marker even if it's not the start of a
15202 statement.
15203 * symmisc.c (maintenance_print_one_line_table): Print end of
15204 sequence markers with 'END' not '0'.
15205
53af73bf
PA
152062020-01-24 Pedro Alves <palves@redhat.com>
15207
15208 PR gdb/25410
15209 * thread.c (scoped_restore_current_thread::restore): Use
15210 switch_to_inferior_no_thread.
15211 * exec.c: Include "progspace-and-thread.h".
15212 (add_target_sections, remove_target_sections):
15213 scoped_restore_current_pspace_and_thread instead of
15214 scoped_restore_current_thread.
15215 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15216 and aspace to the inferior before calling clone_program_space.
15217 Remove stale comment.
15218
3050c6f4
CB
152192020-01-24 Christian Biesinger <cbiesinger@google.com>
15220
15221 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15222 (arm_netbsd_nat_target::fetch_registers): ...this.
15223 (arm_nbsd_nat_target::store_registers): Rename to...
15224 (arm_netbsd_nat_target::store_registers): ...this.
15225
73685c7e
CB
152262020-01-24 Christian Biesinger <cbiesinger@google.com>
15227
15228 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15229 register_t.
15230
89203d40
CB
152312020-01-24 Christian Biesinger <cbiesinger@google.com>
15232
15233 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15234 Update comment.
15235 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15236 Likewise.
15237 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15238 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15239 the correct replacement (iterate_over_regset_sections).
15240 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15241 Update comment.
15242
1ba1ac88
AB
152432020-01-24 Graham Markall <graham.markall@embecosm.com>
15244
15245 PR gdb/23718
15246 * gdb/python/python.c (execute_gdb_command): Call
15247 async_enable_stdin in catch block.
15248
f3364a6d
AB
152492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15250
15251 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15252 SWITCH_THRU_ALL_UIS.
15253
733d0a67
AB
152542020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15255
15256 PR tui/9765
15257 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15258 comment, add extra parameter, and update to store previous symbol
15259 when appropriate.
15260 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15261 add extra parameter.
15262 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15263 remove unneeded parameter, add try/catch around gdb_print_insn,
15264 rewrite to add items to asm_lines vector.
15265 (tui_find_backward_disassembly_start_address): New function.
15266 (tui_find_disassembly_address): Updated throughout.
15267 (tui_disasm_window::set_contents): Update for changes to
15268 tui_disassemble.
15269 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15270 number of lines to scroll.
15271
b3b3bada
SM
152722020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15273
15274 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15275 (SECT_OFF_DATA): Likewise.
15276 (SECT_OFF_RODATA): Likewise.
15277 (SECT_OFF_TEXT): Likewise.
15278 (SECT_OFF_BSS): Likewise.
15279 (struct objfile) <text_section_offset, data_section_offset>: New
15280 methods.
15281 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15282 objfile::text_section_offset.
15283 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15284 * coffread.c (coff_symtab_read): Likewise.
15285 (enter_linenos): Likewise.
15286 (process_coff_symbol): Likewise.
15287 * ctfread.c (get_objfile_text_range): Likewise.
15288 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15289 Use objfile::data_section_offset.
15290 * dwarf2-frame.c (execute_cfa_program): Use
15291 objfile::text_section_offset.
15292 (dwarf2_frame_find_fde): Likewise.
15293 * dwarf2read.c (create_addrmap_from_index): Likewise.
15294 (create_addrmap_from_aranges): Likewise.
15295 (dw2_find_pc_sect_compunit_symtab): Likewise.
15296 (process_psymtab_comp_unit_reader): Likewise.
15297 (add_partial_symbol): Likewise.
15298 (add_partial_subprogram): Likewise.
15299 (process_full_comp_unit): Likewise.
15300 (read_file_scope): Likewise.
15301 (read_func_scope): Likewise.
15302 (read_lexical_block_scope): Likewise.
15303 (read_call_site_scope): Likewise.
15304 (dwarf2_rnglists_process): Likewise.
15305 (dwarf2_ranges_process): Likewise.
15306 (dwarf2_ranges_read): Likewise.
15307 (dwarf_decode_lines_1): Likewise.
15308 (new_symbol): Likewise.
15309 (dwarf2_fetch_die_loc_sect_off): Likewise.
15310 (dwarf2_per_cu_text_offset): Likewise.
15311 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15312 * hppa-tdep.c (read_unwind_info): Likewise.
15313 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15314 * psympriv.h (struct partial_symtab): Likewise.
15315 * psymtab.c (find_pc_sect_psymtab): Likewise.
15316 * solib-svr4.c (enable_break): Likewise.
15317 * stap-probe.c (relocate_address): Use
15318 objfile::data_section_offset.
15319 * xcoffread.c (enter_line_range): Use
15320 objfile::text_section_offset.
15321 (read_xcoff_symtab): Likewise.
15322
ab53f382
SM
153232020-01-23 Simon Marchi <simon.marchi@efficios.com>
15324
15325 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15326 declaration to narrower scopes.
15327
e7eee665
SM
153282020-01-23 Simon Marchi <simon.marchi@efficios.com>
15329
15330 * darwin-nat.h (struct darwin_exception_msg, enum
15331 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15332 Move up.
15333 (class darwin_nat_target) <wait_1, check_new_threads,
15334 decode_exception_message, decode_message, stop_inferior,
15335 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15336 * darwin-nat.c (darwin_check_new_threads): Rename to...
15337 (darwin_nat_target::check_new_threads): ... this.
15338 (darwin_suspend_inferior_it): Remove.
15339 (darwin_decode_exception_message): Rename to...
15340 (darwin_nat_target::decode_exception_message): ... this.
15341 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15342 (darwin_decode_message): Rename to...
15343 (darwin_nat_target::decode_message): ... this.
15344 (cancel_breakpoint): Rename to...
15345 (darwin_nat_target::cancel_breakpoint): ... this.
15346 (darwin_wait): Rename to...
15347 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15348 instead of iterate_over_inferiors.
15349 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15350 (darwin_stop_inferior): Rename to...
15351 (darwin_nat_target::stop_inferior): ... this.
15352 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15353 (darwin_init_thread_list): Rename to...
15354 (darwin_nat_target::init_thread_list): ... this.
15355 (darwin_ptrace_him): Rename to...
15356 (darwin_nat_target::ptrace_him): ... this.
15357 (darwin_nat_target::create_inferior): Pass lambda function to
15358 fork_inferior.
15359 (darwin_nat_target::detach): Call stop_inferior instead of
15360 darwin_stop_inferior.
15361 * fork-inferior.h (fork_inferior): Change init_trace_fun
15362 parameter to gdb::function_view.
15363 * fork-inferior.c (fork_inferior): Likewise.
15364
c162ed3e
HD
153652020-01-23 Hannes Domani <ssbssa@yahoo.de>
15366
15367 * i386-cygwin-tdep.c (core_process_module_section): Update.
15368 * windows-nat.c (struct lm_info_windows): Add text_offset.
15369 (windows_xfer_shared_libraries): Update.
15370 * windows-tdep.c (windows_xfer_shared_library):
15371 Add text_offset_cached argument.
15372 * windows-tdep.h (windows_xfer_shared_library): Update.
15373
a1237872
SM
153742020-01-21 Simon Marchi <simon.marchi@efficios.com>
15375
15376 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15377
b3ee6dd9
SM
153782020-01-21 Simon Marchi <simon.marchi@efficios.com>
15379
15380 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15381 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15382 replace with range-based for.
15383 (gdbsim_interrupt_inferior): Remove.
15384 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15385 with a range-based for. Inline code from
15386 gdbsim_interrupt_inferior.
15387
f9fac3c8
SM
153882020-01-21 Simon Marchi <simon.marchi@efficios.com>
15389
15390 * infrun.c (proceed): Fix indentation.
15391
f6474de9
TT
153922020-01-21 Tom Tromey <tromey@adacore.com>
15393
15394 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15395 * python/python.c (python_extension_ops): Update.
15396 (gdbpy_colorize): New function.
15397 * python/lib/gdb/__init__.py (colorize): New function.
15398 * extension.h (ext_lang_colorize): Declare.
15399 * extension.c (ext_lang_colorize): New function.
15400 * extension-priv.h (struct extension_language_ops) <colorize>: New
15401 member.
15402 * cli/cli-style.c (_initialize_cli_style): Update help text.
15403
f0c702d4
LM
154042020-01-21 Luis Machado <luis.machado@linaro.org>
15405
15406 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15407 <cond>: Change type to bool.
15408 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15409 (aarch64_displaced_step_cb): Likewise.
15410 (aarch64_displaced_step_tb): Likewise.
15411
1ab139e5
LM
154122020-01-21 Luis Machado <luis.machado@linaro.org>
15413
15414 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15415 output.
15416
0c271889
LM
154172020-01-21 Luis Machado <luis.machado@linaro.org>
15418
15419 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15420 <pc_adjust>: Adjust the documentation.
15421 (aarch64_displaced_step_fixup): Check if PC really moved before
15422 adjusting it.
15423
4d89c1c7
TT
154242020-01-19 Tom Tromey <tom@tromey.com>
15425
15426 * disasm.c (~gdb_disassembler): New destructor.
15427 (gdb_buffered_insn_length): Call disassemble_free_target.
15428 * disasm.h (class gdb_disassembler): Declare destructor. Use
15429 DISABLE_COPY_AND_ASSIGN.
15430
c0ab21c2
TT
154312020-01-19 Tom Tromey <tom@tromey.com>
15432
15433 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15434 (die_reader_func_ftype): Remove.
15435 (cutu_reader): New class.
15436 (dw2_get_file_names_reader): Remove "data" parameter.
15437 (dw2_get_file_names): Use cutu_reader.
15438 (create_debug_type_hash_table): Update.
15439 (read_cutu_die_from_dwo): Update comment.
15440 (lookup_dwo_unit): Add dwo_name parameter.
15441 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15442 die_reader_func_ftype and data parameters.
15443 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15444 Remove die_reader_func_ftype and data parameters.
15445 (~cutu_reader): New; from init_cutu_and_read_dies.
15446 (cutu_reader::cutu_reader): Rename from
15447 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15448 and data parameters.
15449 (init_cutu_and_read_dies_simple): Remove.
15450 (struct process_psymtab_comp_unit_data): Remove.
15451 (process_psymtab_comp_unit_reader): Remove data parameter; add
15452 want_partial_unit and pretend_language parameters.
15453 (process_psymtab_comp_unit): Use cutu_reader.
15454 (build_type_psymtabs_reader): Remove data parameter.
15455 (build_type_psymtabs_1): Use cutu_reader.
15456 (process_skeletonless_type_unit): Likewise.
15457 (load_partial_comp_unit_reader): Remove.
15458 (load_partial_comp_unit): Use cutu_reader.
15459 (load_full_comp_unit_reader): Remove.
15460 (load_full_comp_unit): Use cutu_reader.
15461 (struct create_dwo_cu_data): Remove.
15462 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15463 dwo_unit parameters.
15464 (create_cus_hash_table): Use cutu_reader.
15465 (struct dwarf2_read_addr_index_data): Remove.
15466 (dwarf2_read_addr_index_reader): Remove.
15467 (dwarf2_read_addr_index): Use cutu_reader.
15468 (read_signatured_type_reader): Remove.
15469 (read_signatured_type): Use cutu_reader.
15470
45bbae5c
TT
154712020-01-19 Tom Tromey <tom@tromey.com>
15472
15473 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15474 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15475 (tui_wrefresh): Declare.
15476 * tui/tui-wingeneral.c (suppress_output): New global.
15477 (tui_suppress_output, ~tui_suppress_output): New constructor and
15478 destructor.
15479 (tui_wrefresh): New function.
15480 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15481 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15482 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15483 method.
15484 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15485 tui_wrefresh.
15486 (tui_data_window::no_refresh): New method.
15487 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15488 (tui_reg_command): Use tui_suppress_output
15489 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15490 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15491 method.
15492 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15493
4f13c1c0
TT
154942020-01-19 Tom Tromey <tom@tromey.com>
15495
15496 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15497 Handle case where symtab is null.
15498
fa47e446
SM
154992020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15500
15501 * linux-fork.c (one_fork_p): Simplify.
15502
26f42329
SM
155032020-01-17 Simon Marchi <simon.marchi@efficios.com>
15504
15505 * top.c (struct qt_args): Remove.
15506 (kill_or_detach): Change return type to void, replace `void *`
15507 parameter with a proper one.
15508 (print_inferior_quit_action): Likewise.
15509 (quit_confirm): Use range-based for loop to iterate over inferiors.
15510 (quit_force): Likewise.
15511
a9ac81b1
SM
155122020-01-17 Simon Marchi <simon.marchi@efficios.com>
15513
15514 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15515 `void *` parameter with proper parameters.
15516 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15517 (print_one_inferior): Change return type to void, replace `void *`
15518 parameter with proper parameters.
15519 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15520 inferiors.
15521 (get_other_inferior): Remove.
15522 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15523 inferiors.
15524
788eca49
SM
155252020-01-17 Simon Marchi <simon.marchi@efficios.com>
15526
15527 * mi/mi-interp.c (report_initial_inferior): Remove.
15528 (mi_interp::init): Use range-based for to iterate over inferiors.
15529
d9bc85b6
SM
155302020-01-17 Simon Marchi <simon.marchi@efficios.com>
15531
15532 * python/py-inferior.c (build_inferior_list): Remove.
15533 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15534
40c94099
CB
155352020-01-16 Christian Biesinger <cbiesinger@google.com>
15536
15537 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15538 (btrace_stitch_trace): Likewise.
15539 * charset.c (intermediate_encoding): Likewise (vaild).
15540 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15541 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15542 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15543
e0cdfe3c
HD
155442020-01-16 Hannes Domani <ssbssa@yahoo.de>
15545
15546 * windows-tdep.c (windows_get_tlb_type):
15547 Add rtl_user_process_parameters type.
15548
790f1718 155492020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15550 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15551
15552 PR build/24805
15553 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15554 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15555 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15556 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15557 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15558 (ps_plog): Redeclare exported functions with default visibility.
15559
3112ed97
NA
155602020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15561
15562 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15563 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15564
8dc3273e
SM
155652020-01-15 Simon Marchi <simon.marchi@efficios.com>
15566
15567 * infcmd.c (post_create_inferior): Use get_thread_regcache
15568 instead of get_current_regcache.
15569
ff47f4f0
TT
155702020-01-14 Tom Tromey <tom@tromey.com>
15571
15572 PR symtab/12535:
15573 * python/python.c (gdbpy_decode_line): Treat empty string the same
15574 as no argument.
15575
975f45b7
TT
155762020-01-14 Tom Tromey <tom@tromey.com>
15577
15578 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15579
25e57356
TT
155802020-01-14 Tom Tromey <tom@tromey.com>
15581
15582 * nat/linux-btrace.c: Don't include <config.h>.
15583 * nat/linux-ptrace.c: Don't include <config.h>.
15584 * nat/x86-linux-dregs.c: Don't include <config.h>.
15585
05ea2a05
TT
155862020-01-14 Tom Tromey <tom@tromey.com>
15587
15588 * configure: Rebuild.
15589 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15590
01027315
TT
155912020-01-14 Tom Tromey <tom@tromey.com>
15592
15593 * nat/x86-linux-dregs.c: Include configh.h.
15594 * nat/linux-ptrace.c: Include configh.h.
15595 * nat/linux-btrace.c: Include configh.h.
15596 * defs.h: Include config.h, bfd.h.
15597 * configure.ac: Don't source common.host.
15598 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15599 * configure: Rebuild.
15600 * acinclude.m4: Update path.
15601 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15602 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15603 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15604 (CLIBS): Add LIBSUPPORT.
15605 (CDEPS): Likewise.
15606 (COMMON_SFILES): Remove gdbsupport files.
15607 (HFILES_NO_SRCDIR): Likewise.
15608 (stamp-version): Update path to create-version.sh.
15609 (ALLDEPFILES): Remove gdbsupport files.
15610
b2ceabe8
TT
156112020-01-14 Tom Tromey <tom@tromey.com>
15612
15613 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15614 USE_WIN32API when needed.
15615 * configure.ac (USE_WIN32API): Don't define.
15616 (WIN32LIBS): Use WIN32APILIBS.
15617 * configure: Rebuild.
15618
25c51f71
TT
156192020-01-14 Tom Tromey <tom@tromey.com>
15620
15621 * configure: Rebuild.
15622 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15623
717c684d
BE
156242020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15625
15626 * skip.c (skip_function_command): Make skip w/o arguments use the
15627 name of the inlined function if pc is inside any inlined function.
15628
7da6a5b9
LM
156292020-01-14 Luis Machado <luis.machado@linaro.org>
15630
15631 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15632 * infrun.c (resume_1): Likewise.
15633 (handle_inferior_event): Remove stale comment.
15634 * linux-nat.c (linux_nat_target::resume): Update comments.
15635 (save_stop_reason): Likewise.
15636 (linux_nat_filter_event): Likewise.
15637 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15638
44e4c775
AB
156392020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15640
15641 * elfread.c (record_minimal_symbol): Set section index to 0 for
15642 non-allocatable sections.
15643
18a8505e
AT
15644
156452020-01-13 Ali Tamur <tamur@google.com>
15646
15647 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15648 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15649 to gdb::optional. Update comments.
15650 (dwo_file): Update comments.
15651 (read_attribute): Update API to take an additional out parameter,
15652 need_reprocess. This is used to mark attributes that need other
15653 attributes (e.g. str_offsets_base) for correct computation which may not
15654 have been read yet.
15655 (read_attribute_reprocess): New function declaration.
15656 (read_addr_index): Likewise.
15657 (read_dwo_str_index): Likewise.
15658 (read_stub_str_index): Likewise.
15659 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15660 (lookup_addr_base): New function definition.
15661 (lookup_ranges_base): Likewise.
15662 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15663 lookup_ranges_base.
15664 (init_cutu_and_read_dies): Update comments.
15665 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15666 unit. This is used to inherit parent's str_offsets_base and addr_base.
15667 Update comments.
15668 (init_cutu_and_read_dies_simple): Reflect API changes.
15669 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15670 (create_cus_hash_table): Change API to take parent compile unit.
15671 Reflect API changes.
15672 (open_and_init_dwo_file): Reflect API changes.
15673 (dwarf2_get_pc_bounds): Update comments.
15674 (dwarf2_record_block_ranges): Likewise.
15675 (read_full_die_1): Change implementation to reprocess attributes that
15676 need str_offsets_base and addr_base.
15677 (partial_die_info::read): Likewise.
15678 (read_attribute_reprocess): New function definition.
15679 (read_attribute_value): Change API to take an additional out parameter,
15680 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15681 when a non-dwo compile unit has index based attributes.
15682 (read_attribute): Reflect API changes.
15683 (read_addr_index_1): Reflect API changes. Update comments.
15684 (dwarf2_read_addr_index_data): Reflect API changes.
15685 (dwarf2_read_addr_index): Likewise.
15686 (read_str_index): Change API and implementation. This becomes a helper
15687 to be used by the new string index related methods. Update error
15688 message and comments.
15689 (read_dwo_str_index): New function definition.
15690 (read_stub_str_index): Likewise.
15691 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15692 * symfile.h (dwarf2_debug_sections): Likewise.
15693 * xcoffread.c (dwarf2_debug_sections): Likewise.
15694
0cac9354
SM
156952020-01-13 Simon Marchi <simon.marchi@efficios.com>
15696
15697 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15698 core_reg_sect type to gdb_byte *.
15699 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15700 * cris-tdep.c (fetch_core_registers): Likewise.
15701 * corelow.c (core_target::get_core_register_section): Change
15702 type of `contents` to gdb::byte_vector.
15703
9a6d629c
AB
157042020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15705
15706 * tui/tui-wingeneral.c (box_win): Position the title in the center
15707 of the border.
15708
d8b2f9e3
SM
157092020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15710
15711 * corelow.c (core_target::get_core_register_section): Use
15712 std::vector instead of alloca.
15713
bb564c58
SM
157142020-01-13 Simon Marchi <simon.marchi@efficios.com>
15715
15716 * warning.m4: Add -Wmissing-declarations to build_warnings.
15717 * configure: Re-generate.
15718
6b366111
SM
157192020-01-13 Simon Marchi <simon.marchi@efficios.com>
15720
15721 * python/python.c (init__gdb_module): Add declaration.
15722
6c265988
SM
157232020-01-13 Simon Marchi <simon.marchi@efficios.com>
15724
15725 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15726 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15727 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15728 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15729 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15730 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15731 * ada-exp.y (_initialize_ada_exp): Add declaration.
15732 * ada-lang.c (_initialize_ada_language): Add declaration.
15733 * ada-tasks.c (_initialize_tasks): Add declaration.
15734 * agent.c (_initialize_agent): Add declaration.
15735 * aix-thread.c (_initialize_aix_thread): Add declaration.
15736 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15737 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15738 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15739 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15740 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15741 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15742 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15743 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15744 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15745 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15746 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15747 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15748 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15749 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15750 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15751 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15752 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15753 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15754 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15755 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15756 * annotate.c (_initialize_annotate): Add declaration.
15757 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15758 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15759 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15760 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15761 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15762 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15763 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15764 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15765 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15766 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15767 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15768 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15769 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15770 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15771 * auto-load.c (_initialize_auto_load): Add declaration.
15772 * auxv.c (_initialize_auxv): Add declaration.
15773 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15774 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15775 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15776 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15777 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15778 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15779 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15780 * breakpoint.c (_initialize_breakpoint): Add declaration.
15781 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15782 * btrace.c (_initialize_btrace): Add declaration.
15783 * charset.c (_initialize_charset): Add declaration.
15784 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15785 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15786 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15787 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15788 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15789 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15790 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15791 * coffread.c (_initialize_coffread): Add declaration.
15792 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15793 * compile/compile.c (_initialize_compile): Add declaration.
15794 * complaints.c (_initialize_complaints): Add declaration.
15795 * completer.c (_initialize_completer): Add declaration.
15796 * copying.c (_initialize_copying): Add declaration.
15797 * corefile.c (_initialize_core): Add declaration.
15798 * corelow.c (_initialize_corelow): Add declaration.
15799 * cp-abi.c (_initialize_cp_abi): Add declaration.
15800 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15801 * cp-support.c (_initialize_cp_support): Add declaration.
15802 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15803 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15804 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15805 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15806 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15807 * ctfread.c (_initialize_ctfread): Add declaration.
15808 * d-lang.c (_initialize_d_language): Add declaration.
15809 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15810 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15811 * dbxread.c (_initialize_dbxread): Add declaration.
15812 * dcache.c (_initialize_dcache): Add declaration.
15813 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15814 * disasm.c (_initialize_disasm): Add declaration.
15815 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15816 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15817 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15818 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15819 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15820 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15821 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15822 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15823 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15824 * elfread.c (_initialize_elfread): Add declaration.
15825 * exec.c (_initialize_exec): Add declaration.
15826 * extension.c (_initialize_extension): Add declaration.
15827 * f-lang.c (_initialize_f_language): Add declaration.
15828 * f-valprint.c (_initialize_f_valprint): Add declaration.
15829 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15830 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15831 * filesystem.c (_initialize_filesystem): Add declaration.
15832 * findcmd.c (_initialize_mem_search): Add declaration.
15833 * findvar.c (_initialize_findvar): Add declaration.
15834 * fork-child.c (_initialize_fork_child): Add declaration.
15835 * frame-base.c (_initialize_frame_base): Add declaration.
15836 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15837 * frame.c (_initialize_frame): Add declaration.
15838 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15839 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15840 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15841 * gcore.c (_initialize_gcore): Add declaration.
15842 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15843 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15844 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15845 * gdbarch.c (_initialize_gdbarch): Add declaration.
15846 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15847 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15848 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15849 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15850 * go-lang.c (_initialize_go_language): Add declaration.
15851 * go32-nat.c (_initialize_go32_nat): Add declaration.
15852 * guile/guile.c (_initialize_guile): Add declaration.
15853 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15854 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15855 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15856 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15857 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15858 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15859 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15860 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15861 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15862 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15863 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15864 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15865 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15866 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15867 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15868 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15869 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15870 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15871 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15872 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15873 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15874 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15875 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15876 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15877 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15878 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15879 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15880 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15881 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15882 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15883 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15884 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15885 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15886 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15887 * infcall.c (_initialize_infcall): Add declaration.
15888 * infcmd.c (_initialize_infcmd): Add declaration.
15889 * inflow.c (_initialize_inflow): Add declaration.
15890 * infrun.c (_initialize_infrun): Add declaration.
15891 * interps.c (_initialize_interpreter): Add declaration.
15892 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15893 * jit.c (_initialize_jit): Add declaration.
15894 * language.c (_initialize_language): Add declaration.
15895 * linux-fork.c (_initialize_linux_fork): Add declaration.
15896 * linux-nat.c (_initialize_linux_nat): Add declaration.
15897 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15898 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15899 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15900 * m2-lang.c (_initialize_m2_language): Add declaration.
15901 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15902 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15903 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15904 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15905 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15906 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15907 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15908 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15909 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15910 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15911 * machoread.c (_initialize_machoread): Add declaration.
15912 * macrocmd.c (_initialize_macrocmd): Add declaration.
15913 * macroscope.c (_initialize_macroscope): Add declaration.
15914 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15915 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15916 * maint.c (_initialize_maint_cmds): Add declaration.
15917 * mdebugread.c (_initialize_mdebugread): Add declaration.
15918 * memattr.c (_initialize_mem): Add declaration.
15919 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15920 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15921 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15922 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15923 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15924 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15925 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15926 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15927 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15928 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15929 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15930 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15931 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15932 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15933 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15934 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15935 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15936 * mipsread.c (_initialize_mipsread): Add declaration.
15937 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15938 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15939 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15940 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15941 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15942 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15943 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15944 * nto-procfs.c (_initialize_procfs): Add declaration.
15945 * objc-lang.c (_initialize_objc_language): Add declaration.
15946 * observable.c (_initialize_observer): Add declaration.
15947 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15948 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15949 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15950 * osabi.c (_initialize_gdb_osabi): Add declaration.
15951 * osdata.c (_initialize_osdata): Add declaration.
15952 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15953 * parse.c (_initialize_parse): Add declaration.
15954 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15955 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15956 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15957 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15958 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15959 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15960 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15961 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15962 * printcmd.c (_initialize_printcmd): Add declaration.
15963 * probe.c (_initialize_probe): Add declaration.
15964 * proc-api.c (_initialize_proc_api): Add declaration.
15965 * proc-events.c (_initialize_proc_events): Add declaration.
15966 * proc-service.c (_initialize_proc_service): Add declaration.
15967 * procfs.c (_initialize_procfs): Add declaration.
15968 * producer.c (_initialize_producer): Add declaration.
15969 * psymtab.c (_initialize_psymtab): Add declaration.
15970 * python/python.c (_initialize_python): Add declaration.
15971 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15972 * record-btrace.c (_initialize_record_btrace): Add declaration.
15973 * record-full.c (_initialize_record_full): Add declaration.
15974 * record.c (_initialize_record): Add declaration.
15975 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15976 * regcache.c (_initialize_regcache): Add declaration.
15977 * reggroups.c (_initialize_reggroup): Add declaration.
15978 * remote-notif.c (_initialize_notif): Add declaration.
15979 * remote-sim.c (_initialize_remote_sim): Add declaration.
15980 * remote.c (_initialize_remote): Add declaration.
15981 * reverse.c (_initialize_reverse): Add declaration.
15982 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15983 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15984 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15985 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15986 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15987 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15988 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15989 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15990 Add declaration.
15991 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15992 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15993 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15994 * rust-exp.y (_initialize_rust_exp): Add declaration.
15995 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15996 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15997 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15998 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15999 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16000 * score-tdep.c (_initialize_score_tdep): Add declaration.
16001 * ser-go32.c (_initialize_ser_dos): Add declaration.
16002 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16003 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16004 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16005 * ser-uds.c (_initialize_ser_socket): Add declaration.
16006 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16007 * serial.c (_initialize_serial): Add declaration.
16008 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16009 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16010 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16011 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16012 * skip.c (_initialize_step_skip): Add declaration.
16013 * sol-thread.c (_initialize_sol_thread): Add declaration.
16014 * solib-aix.c (_initialize_solib_aix): Add declaration.
16015 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16016 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16017 * solib-frv.c (_initialize_frv_solib): Add declaration.
16018 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16019 * solib-target.c (_initialize_solib_target): Add declaration.
16020 * solib.c (_initialize_solib): Add declaration.
16021 * source-cache.c (_initialize_source_cache): Add declaration.
16022 * source.c (_initialize_source): Add declaration.
16023 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16024 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16025 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16026 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16027 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16028 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16029 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16030 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16031 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16032 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16033 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16034 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16035 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16036 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16037 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16038 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16039 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16040 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16041 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16042 * stabsread.c (_initialize_stabsread): Add declaration.
16043 * stack.c (_initialize_stack): Add declaration.
16044 * stap-probe.c (_initialize_stap_probe): Add declaration.
16045 * std-regs.c (_initialize_frame_reg): Add declaration.
16046 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16047 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16048 * symfile.c (_initialize_symfile): Add declaration.
16049 * symmisc.c (_initialize_symmisc): Add declaration.
16050 * symtab.c (_initialize_symtab): Add declaration.
16051 * target.c (_initialize_target): Add declaration.
16052 * target-connection.c (_initialize_target_connection): Add
16053 declaration.
16054 * target-dcache.c (_initialize_target_dcache): Add declaration.
16055 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16056 * thread.c (_initialize_thread): Add declaration.
16057 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16058 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16059 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16060 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16061 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16062 * tracectf.c (_initialize_ctf): Add declaration.
16063 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16064 * tracefile.c (_initialize_tracefile): Add declaration.
16065 * tracepoint.c (_initialize_tracepoint): Add declaration.
16066 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16067 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16068 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16069 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16070 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16071 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16072 * tui/tui.c (_initialize_tui): Add declaration.
16073 * typeprint.c (_initialize_typeprint): Add declaration.
16074 * ui-style.c (_initialize_ui_style): Add declaration.
16075 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16076 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16077 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16078 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16079 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16080 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16081 * unittests/filtered_iterator-selftests.c
16082 (_initialize_filtered_iterator_selftests): Add declaration.
16083 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16084 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16085 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16086 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16087 * unittests/main-thread-selftests.c
16088 (_initialize_main_thread_selftests): Add declaration.
16089 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16090 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16091 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16092 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16093 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16094 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16095 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16096 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16097 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16098 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16099 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16100 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16101 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16102 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16103 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16104 declaration.
16105 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16106 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16107 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16108 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16109 * user-regs.c (_initialize_user_regs): Add declaration.
16110 * utils.c (_initialize_utils): Add declaration.
16111 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16112 * valops.c (_initialize_valops): Add declaration.
16113 * valprint.c (_initialize_valprint): Add declaration.
16114 * value.c (_initialize_values): Add declaration.
16115 * varobj.c (_initialize_varobj): Add declaration.
16116 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16117 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16118 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16119 * windows-nat.c (_initialize_windows_nat): Add declaration.
16120 (_initialize_check_for_gdb_ini): Add declaration.
16121 (_initialize_loadable): Add declaration.
16122 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16123 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16124 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16125 * xcoffread.c (_initialize_xcoffread): Add declaration.
16126 * xml-support.c (_initialize_xml_support): Add declaration.
16127 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16128 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16129 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16130 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16131
e2de1eec
SM
161322020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16133
16134 * regformats/regdat.sh: Generate declaration for init function.
16135
e0037b4c
SM
161362020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16137
16138 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16139 up.
16140 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16141 close_one_inferior>: New methods.
16142 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16143 pass down target to find_inferior_pid.
16144 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16145 Pass down target to find_inferior_ptid.
16146 (gdbsim_target::create_inferior): Pass down target to
16147 add_thread_silent.
16148 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16149 target down to find_inferior_ptid and switch_to_thread.
16150 (gdbsim_target::close): Update to call close_one_inferior.
16151 (struct resume_data): Remove.
16152 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16153 directly, rather than through a void pointer.
16154 (gdbsim_target::resume): Update to call resume_one_inferior.
16155
58920b5b
SM
161562020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16157
16158 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16159
4ec89149
PA
161602020-01-12 Pedro Alves <palves@redhat.com>
16161
16162 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16163 directly for the current inferior instead of
16164 discard_all_inferiors.
16165 (discard_all_inferiors): Delete.
16166
7c392d1d
TT
161672020-01-11 Tom Tromey <tom@tromey.com>
16168
16169 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16170 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16171 deprecated_safe_get_selected_frame.
16172
d9ebdab7
TBA
161732020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16174
16175 * inferior.c (print_inferior): Switch inferior before printing it.
16176
f3c469b9
PA
161772020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16178 Pedro Alves <palves@redhat.com>
16179
16180 * progspace-and-thread.c (switch_to_program_space_and_thread):
16181 Assert there's an inferior for PSPACE. Use
16182 switch_to_inferior_no_thread to switch the inferior too.
16183 * progspace.c (program_space::~program_space): Call
16184 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16185 (program_space::free_all_objfiles): Don't call clear_symtab_users
16186 here.
16187 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16188
65c574f6
PA
161892020-01-10 Pedro Alves <palves@redhat.com>
16190
16191 * NEWS: Mention multi-target debugging, "info connections", and
16192 "add-inferior -no-connection".
16193
2f4fcf00
PA
161942020-01-10 Pedro Alves <palves@redhat.com>
16195
16196 * infrun.c: Include "target-connection.h".
16197 (check_multi_target_resumption): New.
16198 (proceed): Call it.
16199 * target-connection.c (make_target_connection_string): Make
16200 extern.
16201 * target-connection.h (make_target_connection_string): Declare.
16202
121b3efd
PA
162032020-01-10 Pedro Alves <palves@redhat.com>
16204
16205 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16206 * inferior.c (uiout_field_connection): New function.
16207 (print_inferior): Add new "connection-id" column.
16208 (add_inferior_command): Show connection number/string of added
16209 inferior.
16210 * process-stratum-target.h
16211 (process_stratum_target::connection_string): New virtual method.
16212 (process_stratum_target::connection_number): New field.
16213 * remote.c (remote_target::connection_string): New override.
16214 * target-connection.c: New file.
16215 * target-connection.h: New file.
16216 * target.c (decref_target): Remove process_stratum targets from
16217 the connection list.
16218 (target_stack::push): Add process_stratum targets to the
16219 connection list.
16220
4f837581
PA
162212020-01-10 Pedro Alves <palves@redhat.com>
16222
16223 Revert:
16224 2016-04-12 Pedro Alves <palves@redhat.com>
16225 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16226 Remove references to name.
16227 * serial.h (struct serial) <name>: Delete.
16228
f4ec508e
PA
162292020-01-10 Pedro Alves <palves@redhat.com>
16230
16231 * gdbarch-selftests.c (register_to_value_test): Remove "target
16232 already pushed" check.
16233
5b6d1e4f
PA
162342020-01-10 Pedro Alves <palves@redhat.com>
16235 John Baldwin <jhb@FreeBSD.org>
16236
16237 * aarch64-linux-nat.c
16238 (aarch64_linux_nat_target::thread_architecture): Adjust.
16239 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16240 (task_command_1): Likewise.
16241 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16242 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16243 (aix_thread_target::store_registers)
16244 (aix_thread_target::thread_alive): Adjust.
16245 * amd64-fbsd-tdep.c: Include "inferior.h".
16246 (amd64fbsd_get_thread_local_address): Pass down target.
16247 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16248 thread's gdbarch instead of target_gdbarch.
16249 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16250 get_last_target_status.
16251 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16252 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16253 inferiors.
16254 (update_inserted_breakpoint_locations): Skip if inferiors with no
16255 execution.
16256 (update_global_location_list): When handling moribund locations,
16257 find representative inferior for location's pspace, and use thread
16258 count of its process_stratum target.
16259 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16260 * bsd-uthread.c (bsd_uthread_target::wait): Use
16261 as_process_stratum_target and adjust thread_change_ptid and
16262 add_thread calls.
16263 (bsd_uthread_target::update_thread_list): Use
16264 as_process_stratum_target and adjust find_thread_ptid,
16265 thread_change_ptid and add_thread calls.
16266 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16267 find_thread_ptid call.
16268 * corelow.c (add_to_thread_list): Adjust add_thread call.
16269 (core_target_open): Adjust add_thread_silent and thread_count
16270 calls.
16271 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16272 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16273 * event-top.c (async_disconnect): Pop targets from all inferiors.
16274 * exec.c (add_target_sections): Push exec target on all inferiors
16275 sharing the program space.
16276 (remove_target_sections): Remove the exec target from all
16277 inferiors sharing the program space.
16278 (exec_on_vfork): New.
16279 * exec.h (exec_on_vfork): Declare.
16280 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16281 Pass it down.
16282 (fbsd_nat_target::update_thread_list): Adjust.
16283 (fbsd_nat_target::resume): Adjust.
16284 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16285 down.
16286 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16287 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16288 get_thread_arch_regcache call.
16289 * fork-child.c (gdb_startup_inferior): Pass target down to
16290 startup_inferior and set_executing.
16291 * gdbthread.h (struct process_stratum_target): Forward declare.
16292 (add_thread, add_thread_silent, add_thread_with_info)
16293 (in_thread_list): Add process_stratum_target parameter.
16294 (find_thread_ptid(inferior*, ptid_t)): New overload.
16295 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16296 parameter.
16297 (all_threads()): Delete overload.
16298 (all_threads, all_non_exited_threads): Add process_stratum_target
16299 parameter.
16300 (all_threads_safe): Use brace initialization.
16301 (thread_count): Add process_stratum_target parameter.
16302 (set_resumed, set_running, set_stop_requested, set_executing)
16303 (threads_are_executing, finish_thread_state): Add
16304 process_stratum_target parameter.
16305 (switch_to_thread): Use is_current_thread.
16306 * i386-fbsd-tdep.c: Include "inferior.h".
16307 (i386fbsd_get_thread_local_address): Pass down target.
16308 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16309 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16310 have_inferiors check.
16311 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16312 (inf_ptrace_target::attach): Adjust.
16313 * infcall.c (run_inferior_call): Adjust.
16314 * infcmd.c (run_command_1): Pass target to
16315 scoped_finish_thread_state.
16316 (proceed_thread_callback): Skip inferiors with no execution.
16317 (continue_command): Rename 'all_threads' local to avoid hiding
16318 'all_threads' function. Adjust get_last_target_status call.
16319 (prepare_one_step): Adjust set_running call.
16320 (signal_command): Use user_visible_resume_target. Compare thread
16321 pointers instead of inferior_ptid.
16322 (info_program_command): Adjust to pass down target.
16323 (attach_command): Mark target's 'thread_executing' flag.
16324 (stop_current_target_threads_ns): New, factored out from ...
16325 (interrupt_target_1): ... this. Switch inferior before making
16326 target calls.
16327 * inferior-iter.h
16328 (struct all_inferiors_iterator, struct all_inferiors_range)
16329 (struct all_inferiors_safe_range)
16330 (struct all_non_exited_inferiors_range): Filter on
16331 process_stratum_target too. Remove explicit.
16332 * inferior.c (inferior::inferior): Push dummy target on target
16333 stack.
16334 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16335 Add process_stratum_target parameter, and pass it down.
16336 (have_live_inferiors): Adjust.
16337 (switch_to_inferior_and_push_target): New.
16338 (add_inferior_command, clone_inferior_command): Handle
16339 "-no-connection" parameter. Use
16340 switch_to_inferior_and_push_target.
16341 (_initialize_inferior): Mention "-no-connection" option in
16342 the help of "add-inferior" and "clone-inferior" commands.
16343 * inferior.h: Include "process-stratum-target.h".
16344 (interrupt_target_1): Use bool.
16345 (struct inferior) <push_target, unpush_target, target_is_pushed,
16346 find_target_beneath, top_target, process_target, target_at,
16347 m_stack>: New.
16348 (discard_all_inferiors): Delete.
16349 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16350 (all_inferiors, all_non_exited_inferiors): Add
16351 process_stratum_target parameter.
16352 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16353 (target_last_proc_target): New global.
16354 (follow_fork_inferior): Push target on new inferior. Pass target
16355 to add_thread_silent. Call exec_on_vfork. Handle target's
16356 reference count.
16357 (follow_fork): Adjust get_last_target_status call. Also consider
16358 target.
16359 (follow_exec): Push target on new inferior.
16360 (struct execution_control_state) <target>: New field.
16361 (user_visible_resume_target): New.
16362 (do_target_resume): Call target_async.
16363 (resume_1): Set target's threads_executing flag. Consider resume
16364 target.
16365 (commit_resume_all_targets): New.
16366 (proceed): Also consider resume target. Skip threads of inferiors
16367 with no execution. Commit resumtion in all targets.
16368 (start_remote): Pass current inferior to wait_for_inferior.
16369 (infrun_thread_stop_requested): Consider target as well. Pass
16370 thread_info pointer to clear_inline_frame_state instead of ptid.
16371 (infrun_thread_thread_exit): Consider target as well.
16372 (random_pending_event_thread): New inferior parameter. Use it.
16373 (do_target_wait): Rename to ...
16374 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16375 down.
16376 (threads_are_resumed_pending_p, do_target_wait): New.
16377 (prepare_for_detach): Adjust calls.
16378 (wait_for_inferior): New inferior parameter. Handle it. Use
16379 do_target_wait_1 instead of do_target_wait.
16380 (fetch_inferior_event): Adjust. Switch to representative
16381 inferior. Pass target down.
16382 (set_last_target_status): Add process_stratum_target parameter.
16383 Save target in global.
16384 (get_last_target_status): Add process_stratum_target parameter and
16385 handle it.
16386 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16387 (context_switch): Check inferior_ptid == null_ptid before calling
16388 inferior_thread().
16389 (get_inferior_stop_soon): Pass down target.
16390 (wait_one): Rename to ...
16391 (poll_one_curr_target): ... this.
16392 (struct wait_one_event): New.
16393 (wait_one): New.
16394 (stop_all_threads): Adjust.
16395 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16396 event's target.
16397 (switch_back_to_stepped_thread): Also consider target.
16398 (print_stop_event): Update.
16399 (normal_stop): Update. Also consider the resume target.
16400 * infrun.h (wait_for_inferior): Remove declaration.
16401 (user_visible_resume_target): New declaration.
16402 (get_last_target_status, set_last_target_status): New
16403 process_stratum_target parameter.
16404 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16405 process_stratum_target parameter, and use it.
16406 (clear_inline_frame_state (thread_info*)): New.
16407 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16408 process_stratum_target parameter.
16409 (clear_inline_frame_state (thread_info*)): Declare.
16410 * linux-fork.c (delete_checkpoint_command): Pass target down to
16411 find_thread_ptid.
16412 (checkpoint_command): Adjust.
16413 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16414 instead of just tweaking inferior_ptid.
16415 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16416 (exit_lwp): Pass target down to find_thread_ptid.
16417 (attach_proc_task_lwp_callback): Pass target down to
16418 add_thread/set_running/set_executing.
16419 (linux_nat_target::attach): Pass target down to
16420 thread_change_ptid.
16421 (get_detach_signal): Pass target down to find_thread_ptid.
16422 Consider last target status's target.
16423 (linux_resume_one_lwp_throw, resume_lwp)
16424 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16425 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16426 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16427 (linux_nat_target::async_wait_fd): New.
16428 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16429 target down.
16430 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16431 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16432 * linux-thread-db.c (struct thread_db_info::process_target): New
16433 field.
16434 (add_thread_db_info): Save target.
16435 (get_thread_db_info): New process_stratum_target parameter. Also
16436 match target.
16437 (delete_thread_db_info): New process_stratum_target parameter.
16438 Also match target.
16439 (thread_from_lwp): Adjust to pass down target.
16440 (thread_db_notice_clone): Pass down target.
16441 (check_thread_db_callback): Pass down target.
16442 (try_thread_db_load_1): Always push the thread_db target.
16443 (try_thread_db_load, record_thread): Pass target down.
16444 (thread_db_target::detach): Pass target down. Always unpush the
16445 thread_db target.
16446 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16447 target down. Always unpush the thread_db target.
16448 (find_new_threads_callback, thread_db_find_new_threads_2)
16449 (thread_db_target::update_thread_list): Pass target down.
16450 (thread_db_target::pid_to_str): Pass current inferior down.
16451 (thread_db_target::get_thread_local_address): Pass target down.
16452 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16453 target down.
16454 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16455 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16456 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16457 (procfs_init_inferior): Rename to ...
16458 (procfs_target::procfs_init_inferior): ... this and adjust.
16459 (procfs_target::create_inferior, procfs_notice_thread)
16460 (procfs_do_thread_registers): Adjust.
16461 * ppc-fbsd-tdep.c: Include "inferior.h".
16462 (ppcfbsd_get_thread_local_address): Pass down target.
16463 * proc-service.c (ps_xfer_memory): Switch current inferior and
16464 program space as well.
16465 (get_ps_regcache): Pass target down.
16466 * process-stratum-target.c
16467 (process_stratum_target::thread_address_space)
16468 (process_stratum_target::thread_architecture): Pass target down.
16469 * process-stratum-target.h
16470 (process_stratum_target::threads_executing): New field.
16471 (as_process_stratum_target): New.
16472 * ravenscar-thread.c
16473 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16474 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16475 down.
16476 * record-btrace.c (record_btrace_target::info_record): Adjust.
16477 (record_btrace_target::record_method)
16478 (record_btrace_target::record_is_replaying)
16479 (record_btrace_target::fetch_registers)
16480 (get_thread_current_frame_id, record_btrace_target::resume)
16481 (record_btrace_target::wait, record_btrace_target::stop): Pass
16482 target down.
16483 * record-full.c (record_full_wait_1): Switch to event thread.
16484 Pass target down.
16485 * regcache.c (regcache::regcache)
16486 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16487 process_stratum_target parameter and handle it.
16488 (current_thread_target): New global.
16489 (get_thread_regcache): Add process_stratum_target parameter and
16490 handle it. Switch inferior before calling target method.
16491 (get_thread_regcache): Pass target down.
16492 (get_thread_regcache_for_ptid): Pass target down.
16493 (registers_changed_ptid): Add process_stratum_target parameter and
16494 handle it.
16495 (registers_changed_thread, registers_changed): Pass target down.
16496 (test_get_thread_arch_aspace_regcache): New.
16497 (current_regcache_test): Define a couple local test_target_ops
16498 instances and use them for testing.
16499 (readwrite_regcache): Pass process_stratum_target parameter.
16500 (cooked_read_test, cooked_write_test): Pass mock_target down.
16501 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16502 (get_thread_arch_aspace_regcache): Add process_stratum_target
16503 parameter.
16504 (regcache::target): New method.
16505 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16506 (regcache::registers_changed_ptid): Add process_stratum_target
16507 parameter.
16508 (regcache::m_target): New field.
16509 (registers_changed_ptid): Add process_stratum_target parameter.
16510 * remote.c (remote_state::supports_vCont_probed): New field.
16511 (remote_target::async_wait_fd): New method.
16512 (remote_unpush_and_throw): Add remote_target parameter.
16513 (get_current_remote_target): Adjust.
16514 (remote_target::remote_add_inferior): Push target.
16515 (remote_target::remote_add_thread)
16516 (remote_target::remote_notice_new_inferior)
16517 (get_remote_thread_info): Pass target down.
16518 (remote_target::update_thread_list): Skip threads of inferiors
16519 bound to other targets. (remote_target::close): Don't discard
16520 inferiors. (remote_target::add_current_inferior_and_thread)
16521 (remote_target::process_initial_stop_replies)
16522 (remote_target::start_remote)
16523 (remote_target::remote_serial_quit_handler): Pass down target.
16524 (remote_target::remote_unpush_target): New remote_target
16525 parameter. Unpush the target from all inferiors.
16526 (remote_target::remote_unpush_and_throw): New remote_target
16527 parameter. Pass it down.
16528 (remote_target::open_1): Check whether the current inferior has
16529 execution instead of checking whether any inferior is live. Pass
16530 target down.
16531 (remote_target::remote_detach_1): Pass down target. Use
16532 remote_unpush_target.
16533 (extended_remote_target::attach): Pass down target.
16534 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16535 (remote_target::append_resumption): Pass down target.
16536 (remote_target::append_pending_thread_resumptions)
16537 (remote_target::remote_resume_with_hc, remote_target::resume)
16538 (remote_target::commit_resume): Pass down target.
16539 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16540 (remote_target::interrupt_query)
16541 (remote_target::remove_new_fork_children)
16542 (remote_target::check_pending_events_prevent_wildcard_vcont)
16543 (remote_target::remote_parse_stop_reply)
16544 (remote_target::process_stop_reply): Pass down target.
16545 (first_remote_resumed_thread): New remote_target parameter. Pass
16546 it down.
16547 (remote_target::wait_as): Pass down target.
16548 (unpush_and_perror): New remote_target parameter. Pass it down.
16549 (remote_target::readchar, remote_target::remote_serial_write)
16550 (remote_target::getpkt_or_notif_sane_1)
16551 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16552 down target.
16553 (remote_target::mourn_inferior): Pass down target. Use
16554 remote_unpush_target.
16555 (remote_target::core_of_thread)
16556 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16557 (remote_target::pid_to_exec_file)
16558 (remote_target::thread_handle_to_thread_info): Pass down target.
16559 (remote_target::async_wait_fd): New.
16560 * riscv-fbsd-tdep.c: Include "inferior.h".
16561 (riscv_fbsd_get_thread_local_address): Pass down target.
16562 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16563 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16564 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16565 Adjust.
16566 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16567 * solib-svr4.c (enable_break): Pass down target.
16568 * spu-multiarch.c (parse_spufs_run): Pass down target.
16569 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16570 * target-delegates.c: Regenerate.
16571 * target.c (g_target_stack): Delete.
16572 (current_top_target): Return the current inferior's top target.
16573 (target_has_execution_1): Refer to the passed-in inferior's top
16574 target.
16575 (target_supports_terminal_ours): Check whether the initial
16576 inferior was already created.
16577 (decref_target): New.
16578 (target_stack::push): Incref/decref the target.
16579 (push_target, push_target, unpush_target): Adjust.
16580 (target_stack::unpush): Defref target.
16581 (target_is_pushed): Return bool. Adjust to refer to the current
16582 inferior's target stack.
16583 (dispose_inferior): Delete, and inline parts ...
16584 (target_preopen): ... here. Only dispose of the current inferior.
16585 (target_detach): Hold strong target reference while detaching.
16586 Pass target down.
16587 (target_thread_name): Add assertion.
16588 (target_resume): Pass down target.
16589 (target_ops::beneath, find_target_at): Adjust to refer to the
16590 current inferior's target stack.
16591 (get_dummy_target): New.
16592 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16593 has a thread running.
16594 (initialize_targets): Rename to ...
16595 (_initialize_target): ... this.
16596 * target.h: Include "gdbsupport/refcounted-object.h".
16597 (struct target_ops): Inherit refcounted_object.
16598 (target_ops::shortname, target_ops::longname): Make const.
16599 (target_ops::async_wait_fd): New method.
16600 (decref_target): Declare.
16601 (struct target_ops_ref_policy): New.
16602 (target_ops_ref): New typedef.
16603 (get_dummy_target): Declare function.
16604 (target_is_pushed): Return bool.
16605 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16606 (all_matching_threads_iterator::all_matching_threads_iterator):
16607 Handle filter target.
16608 * thread-iter.h (struct all_matching_threads_iterator, struct
16609 all_matching_threads_range, class all_non_exited_threads_range):
16610 Filter by target too. Remove explicit.
16611 * thread.c (threads_executing): Delete.
16612 (inferior_thread): Pass down current inferior.
16613 (clear_thread_inferior_resources): Pass down thread pointer
16614 instead of ptid_t.
16615 (add_thread_silent, add_thread_with_info, add_thread): Add
16616 process_stratum_target parameter. Use it for thread and inferior
16617 searches.
16618 (is_current_thread): New.
16619 (thread_info::deletable): Use it.
16620 (find_thread_ptid, thread_count, in_thread_list)
16621 (thread_change_ptid, set_resumed, set_running): New
16622 process_stratum_target parameter. Pass it down.
16623 (set_executing): New process_stratum_target parameter. Pass it
16624 down. Adjust reference to 'threads_executing'.
16625 (threads_are_executing): New process_stratum_target parameter.
16626 Adjust reference to 'threads_executing'.
16627 (set_stop_requested, finish_thread_state): New
16628 process_stratum_target parameter. Pass it down.
16629 (switch_to_thread): Also match inferior.
16630 (switch_to_thread): New process_stratum_target parameter. Pass it
16631 down.
16632 (update_threads_executing): Reimplement.
16633 * top.c (quit_force): Pop targets from all inferior.
16634 (gdb_init): Don't call initialize_targets.
16635 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16636 Declare.
16637 (windows_add_thread, windows_delete_thread): Adjust.
16638 (get_windows_debug_event): Rename to ...
16639 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16640 * tracefile-tfile.c (tfile_target_open): Pass down target.
16641 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16642 Forward declare.
16643 (switch_to_thread): Add process_stratum_target parameter.
16644 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16645 parameter. Use it.
16646 (mi_on_resume): Pass target down.
16647 * nat/fork-inferior.c (startup_inferior): Add
16648 process_stratum_target parameter. Pass it down.
16649 * nat/fork-inferior.h (startup_inferior): Add
16650 process_stratum_target parameter.
16651 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16652
75c6c844
PA
166532020-01-10 Pedro Alves <palves@redhat.com>
16654
16655 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16656 directly. Instead find the first thread in the thread list and
16657 use switch_to_thread.
16658
78f2c40a
PA
166592020-01-10 Pedro Alves <palves@redhat.com>
16660
16661 * remote.c (remote_target::remote_add_inferior): Don't bind a
16662 process to the current inferior if the current inferior is already
16663 bound to a process.
16664
e7af6c70
TBA
166652020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16666 Pedro Alves <palves@redhat.com>
16667
16668 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16669 If no process is specified, return null_ptid instead of
16670 inferior_ptid.
16671 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16672 TARGET_WAITKIND_SIGNALLED with no pid.
16673
31ba933e
PA
166742020-01-10 Pedro Alves <palves@redhat.com>
16675
16676 * remote.c (first_remote_resumed_thread): New.
16677 (remote_target::wait_as): Use it as default event_ptid instead of
16678 inferior_ptid.
16679
735fc2ca
PA
166802020-01-10 Pedro Alves <palves@redhat.com>
16681
16682 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16683
c17e02e1
PA
166842020-01-10 Pedro Alves <palves@redhat.com>
16685
16686 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16687 not -1.
16688
ab1ddbcf
PA
166892020-01-10 Pedro Alves <palves@redhat.com>
16690
16691 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16692 ptid to get_last_target_status.
16693 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16694 ptid to get_last_target_status.
16695 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16696 get_last_target_status.
16697 (info_program_command): Don't pass a target_waitstatus to
16698 get_last_target_status.
16699 * infrun.c (init_wait_for_inferior): Use
16700 nullify_last_target_wait_ptid.
16701 (get_last_target_status): Handle nullptr arguments.
16702 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16703 (print_stop_event): Don't pass a ptid to get_last_target_status.
16704 (normal_stop): Don't pass a ptid to get_last_target_status.
16705 * infrun.h (get_last_target_status, set_last_target_status): Move
16706 comments here and update.
16707 (nullify_last_target_wait_ptid): Declare.
16708 * linux-fork.c (fork_load_infrun_state): Remove local extern
16709 declaration of nullify_last_target_wait_ptid.
16710 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16711 to get_last_target_status.
16712
f3f8ece4
PA
167132020-01-10 Pedro Alves <palves@redhat.com>
16714
16715 * gdbthread.h (scoped_restore_current_thread)
16716 <dont_restore, restore, m_dont_restore>: Declare.
16717 * thread.c (thread_alive): Add assertion. Return bool.
16718 (switch_to_thread_if_alive): New.
16719 (prune_threads): Switch inferior/thread.
16720 (print_thread_info_1): Switch thread before calling target methods.
16721 (scoped_restore_current_thread::restore): New, factored out from
16722 ...
16723 (scoped_restore_current_thread::~scoped_restore_current_thread):
16724 ... this.
16725 (scoped_restore_current_thread::scoped_restore_current_thread):
16726 Add assertion.
16727 (thread_apply_all_command, thread_select): Use
16728 switch_to_thread_if_alive.
16729 * infrun.c (proceed, restart_threads, handle_signal_stop)
16730 (switch_back_to_stepped_thread): Switch current thread before
16731 calling target methods.
16732
db2d40f7
PA
167332020-01-10 Pedro Alves <palves@redhat.com>
16734
16735 * inferior.c (switch_to_inferior_no_thread): New function,
16736 factored out from ...
16737 (inferior_command): ... here.
16738 * inferior.h (switch_to_inferior_no_thread): Declare.
16739 * mi/mi-main.c (run_one_inferior): Use
16740 switch_to_inferior_no_thread.
16741
bd420a2d
PA
167422020-01-10 Pedro Alves <palves@redhat.com>
16743
16744 * infcmd.c (kill_command): Remove dead code.
16745
ddf5db90
PA
167462020-01-10 Pedro Alves <palves@redhat.com>
16747
16748 * remote.c (remote_target::mourn_inferior): No longer check
16749 whether the target is running.
16750
5018ce90
PA
167512020-01-10 Pedro Alves <palves@redhat.com>
16752
16753 * corelow.c (core_target::has_execution): Change parameter type to
16754 inferior pointer.
16755 * inferior.c (number_of_live_inferiors): Use
16756 inferior::has_execution instead of target_has_execution_1.
16757 * inferior.h (inferior::has_execution): New.
16758 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16759 inferior::has_execution instead of target_has_execution_1.
16760 * process-stratum-target.c
16761 (process_stratum_target::has_execution): Change parameter type to
16762 inferior pointer. Check the inferior's PID instead of
16763 inferior_ptid.
16764 * process-stratum-target.h
16765 (process_stratum_target::has_execution): Change parameter type to
16766 inferior pointer.
16767 * record-full.c (record_full_core_target::has_execution): Change
16768 parameter type to inferior pointer.
16769 * target.c (target_has_execution_1): Change parameter type to
16770 inferior pointer.
16771 (target_has_execution_current): Adjust.
16772 * target.h (target_ops::has_execution): Change parameter type to
16773 inferior pointer.
16774 (target_has_execution_1): Change parameter type to inferior
16775 pointer. Change return type to bool.
16776 * tracefile.h (tracefile_target::has_execution): Change parameter
16777 type to inferior pointer.
16778
74375d18
PA
167792020-01-10 Pedro Alves <palves@redhat.com>
16780
16781 * exceptions.c (print_flush): Remove current_top_target() check.
16782
acdf84a6
PA
167832020-01-10 Pedro Alves <palves@redhat.com>
16784
16785 * remote.c (show_remote_exec_file): Show the current inferior's
16786 exec-file instead of the command variable's value.
16787
ec506636
PA
167882020-01-10 Pedro Alves <palves@redhat.com>
16789
16790 * record-full.c (record_full_resume_ptid): New global.
16791 (record_full_target::resume): Set it.
16792 (record_full_wait_1): Use record_full_resume_ptid instead of
16793 inferior_ptid.
16794
873657b9
PA
167952020-01-10 Pedro Alves <palves@redhat.com>
16796
16797 * gdbthread.h (scoped_restore_current_thread)
16798 <dont_restore, restore, m_dont_restore>: Declare.
16799 * thread.c (thread_alive): Add assertion. Return bool.
16800 (switch_to_thread_if_alive): New.
16801 (prune_threads): Switch inferior/thread.
16802 (print_thread_info_1): Switch thread before calling target methods.
16803 (scoped_restore_current_thread::restore): New, factored out from
16804 ...
16805 (scoped_restore_current_thread::~scoped_restore_current_thread):
16806 ... this.
16807 (scoped_restore_current_thread::scoped_restore_current_thread):
16808 Add assertion.
16809 (thread_apply_all_command, thread_select): Use
16810 switch_to_thread_if_alive.
16811
7f0ae84c
GB
168122020-01-10 George Barrett <bob@bob131.so>
16813
16814 * stap-probe.c (stap_modify_semaphore): Don't check for null
16815 semaphores.
16816 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16817 for null semaphores.
16818
f5a7c406
AB
168192020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16820
16821 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16822 all source windows, and maintain horizontal scroll status while
16823 doing so.
16824
9ae6bf64
TT
168252020-01-09 Tom Tromey <tom@tromey.com>
16826
16827 PR tui/18932:
16828 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16829 update_source_window, not print_source_lines.
16830
b2efe70c
AB
168312020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16832
16833 * tui/tui.c (tui_enable): Register tui hooks after calling
16834 tui_display_main.
16835
5f23a082
CB
168362020-01-09 Christian Biesinger <cbiesinger@google.com>
16837
16838 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16839
3061113b
SM
168402020-01-08 Simon Marchi <simon.marchi@efficios.com>
16841
16842 * thread.c (print_thread_info_1): Fix indentation.
16843
57d75002
CB
168442020-01-09 Christian Biesinger <cbiesinger@google.com>
16845
16846 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16847 unique_xmalloc_ptr outside the if to always free the demangled name.
16848
6a053cb1
TT
168492020-01-08 Tom Tromey <tromey@adacore.com>
16850
16851 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16852 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16853 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16854 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16855 Remove.
16856 (section_offsets): New typedef.
16857 * symtab.c (fixup_section, get_msymbol_address): Update.
16858 * symmisc.c (dump_msymbols): Update.
16859 * symfile.h (relative_addr_info_to_section_offsets)
16860 (symfile_map_offsets_to_segments): Update.
16861 * symfile.c (build_section_addr_info_from_objfile)
16862 (init_objfile_sect_indices): Update.
16863 (struct place_section_arg): Change type of "offsets".
16864 (place_section): Update.
16865 (relative_addr_info_to_section_offsets): Change type of
16866 "section_offsets". Remove "num_sections" parameter.
16867 (default_symfile_offsets, syms_from_objfile_1)
16868 (set_objfile_default_section_offset): Update.
16869 (reread_symbols): No need to preserve section offsets by hand.
16870 (symfile_map_offsets_to_segments): Change type of "offsets".
16871 * stap-probe.c (relocate_address): Update.
16872 * stabsread.h (process_one_symbol): Update.
16873 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16874 (solib_target_relocate_section_addresses): Update.
16875 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16876 Update.
16877 * solib-frv.c (frv_relocate_main_executable): Update.
16878 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16879 * solib-aix.c (solib_aix_get_section_offsets): Change return
16880 type.
16881 (solib_aix_solib_create_inferior_hook): Update.
16882 * remote.c (remote_target::get_offsets): Update.
16883 * psymtab.c (find_pc_sect_psymtab): Update.
16884 * psympriv.h (struct partial_symbol) <address, text_low,
16885 text_high>: Update.
16886 * objfiles.h (obj_section_offset): Update.
16887 (struct objfile) <section_offsets>: Change type.
16888 <num_sections>: Remove.
16889 (objfile_relocate): Update.
16890 * objfiles.c (entry_point_address_query): Update
16891 (relocate_one_symbol): Change type of "section_offsets".
16892 (objfile_relocate1, objfile_relocate1): Change type of
16893 "new_offsets".
16894 (objfile_rebase1): Update.
16895 * mipsread.c (mipscoff_symfile_read): Update.
16896 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16897 parameter.
16898 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16899 (parse_external, psymtab_to_symtab_1): Update.
16900 * machoread.c (macho_symfile_offsets): Update.
16901 * ia64-tdep.c (ia64_find_unwind_table): Update.
16902 * hppa-tdep.c (read_unwind_info): Update.
16903 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16904 * dwarf2read.c (create_addrmap_from_index)
16905 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16906 (process_psymtab_comp_unit_reader, add_partial_symbol)
16907 (add_partial_subprogram, process_full_comp_unit)
16908 (read_file_scope, read_func_scope, read_lexical_block_scope)
16909 (read_call_site_scope, dwarf2_rnglists_process)
16910 (dwarf2_ranges_process, dwarf2_ranges_read)
16911 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16912 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16913 Update.
16914 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16915 Update.
16916 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16917 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16918 (process_one_symbol): Change type of "section_offsets".
16919 * ctfread.c (get_objfile_text_range): Update.
16920 * coffread.c (coff_symtab_read, enter_linenos)
16921 (process_coff_symbol): Update.
16922 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16923 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16924
456e800a
TT
169252020-01-08 Tom Tromey <tromey@adacore.com>
16926
16927 * dwarf2read.c (parse_macro_definition): Use std::string.
16928 (parse_macro_definition): Likewise.
16929
6dfa2fc2
TT
169302020-01-08 Tom Tromey <tromey@adacore.com>
16931
16932 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16933 (ATTR_ALLOC_CHUNK): Remove.
16934
421d1616
TT
169352020-01-08 Tom Tromey <tromey@adacore.com>
16936
16937 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16938
43816ebc
TT
169392020-01-08 Tom Tromey <tromey@adacore.com>
16940
16941 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16942 (dwarf2_compute_name, open_dwo_file): Likewise.
16943 (process_enumeration_scope): Use std::vector.
16944 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16945 (partial_die_info::fixup, dwarf2_start_subfile)
16946 (guess_full_die_structure_name, dwarf2_name): Likewise.
16947 (determine_prefix): Update.
16948 (guess_full_die_structure_name): Make return type const.
16949 (partial_die_full_name): Return unique_xmalloc_ptr.
16950 (DW_FIELD_ALLOC_CHUNK): Remove.
16951
4212d509
TT
169522020-01-07 Tom Tromey <tromey@adacore.com>
16953
16954 PR build/24937:
16955 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16956
06a6207a
JT
169572020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16958
16959 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16960
153d79c4
AB
169612020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16962
16963 * stack.c (print_frame_info): Move disassemble_next_line code
16964 inside source_print block.
16965
66182876
EZ
169662020-01-06 Eli Zaretskii <eliz@gnu.org>
16967
16968 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16969 gdb/signals.h, as we are now using native signal symbols.
16970
cbfa8581
SV
169712020-01-06 Shahab Vahedi <shahab@synopsys.com>
16972
16973 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16974 overflow by an early check of content vs threshold.
aac66a4c 16975 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16976 Likewise.
16977
3f602821
EZ
169782020-01-06 Eli Zaretskii <eliz@gnu.org>
16979
16980 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16981
a08c904d
JT
169822020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16983
16984 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16985 export table if no section contains it's RVA.
16986
89a65580
EZ
169872020-01-06 Eli Zaretskii <eliz@gnu.org>
16988
16989 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16990
8b7fcda2
HD
169912020-01-06 Hannes Domani <ssbssa@yahoo.de>
16992
16993 * source.c (print_source_lines_base): Set last_line_listed.
16994
a61b4f69
SV
169952020-01-06 Shahab Vahedi <shahab@synopsys.com>
16996
16997 * tui/tui-disasm.c: Remove trailing spaces.
16998
559e7e50
EZ
169992020-01-06 Eli Zaretskii <eliz@gnu.org>
17000 Pedro Alves <palves@redhat.com>
17001
17002 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17003 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17004 (windows_gdb_signal_to_target): New function, uses the above
17005 enumeration to convert GDB internal signal codes to equivalent
17006 Windows codes.
17007 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17008 * windows-nat.c: Include "gdb_wait.h".
17009 (get_windows_debug_event): Extract the fatal exception from the
17010 exit status and convert to the equivalent Posix signal number.
17011 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17012 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17013 * gdbsupport/gdb_wait.c: New file, implements
17014 windows_status_to_termsig.
17015 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17016 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17017
f2302a34
AB
170182020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17019
17020 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17021 show_layout.
17022
6a5206eb
LM
170232020-01-05 Luis Machado <luis.machado@linaro.org>
17024
17025 * aarch64-linux-nat.c
17026 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17027 and bfd_mach_aarch64.
17028
6ec1d75e
PW
170292020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17030
17031 * ui-file.c (stdio_file::can_emit_style_escape)
17032 (tee_file::can_emit_style_escape): Ensure style is used also on
17033 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17034 to gdb_stdout.
17035 * main.c (set_gdb_data_directory): Use file style to output the
17036 warning that the given pathname is not a directory.
17037 * top.c (show_history_filename, gdb_safe_append_history)
17038 (show_gdb_datadir): Use file style.
17039
44f81a76
HD
170402020-01-03 Hannes Domani <ssbssa@yahoo.de>
17041
17042 * solib-target.c (struct lm_info_target):
17043 Change offsets to be a unique_xmalloc_ptr.
17044 (solib_target_relocate_section_addresses): Update.
17045
25057eb0
HD
170462020-01-03 Hannes Domani <ssbssa@yahoo.de>
17047
17048 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17049
6e2118f5
BE
170502020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17051
17052 * MAINTAINERS (Write After Approval): Add myself.
17053
8133c7dc
LM
170542020-01-02 Luis Machado <luis.machado@linaro.org>
17055
17056 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17057 Cell BE architecture.
17058 * target.h (struct target_ops) <thread_architecture>: Likewise.
17059
48189bec
HD
170602020-01-01 Hannes Domani <ssbssa@yahoo.de>
17061
17062 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17063
ead1063b
HD
170642020-01-01 Hannes Domani <ssbssa@yahoo.de>
17065
17066 * MAINTAINERS (Write After Approval): Add myself.
17067
e5d78223
JB
170682020-01-01 Joel Brobecker <brobecker@adacore.com>
17069
17070 * gdbarch.sh: Update copyright year range of generated files.
17071
b811d2c2
JB
170722020-01-01 Joel Brobecker <brobecker@adacore.com>
17073
17074 Update copyright year range in all GDB files.
17075
5f4def5c
JB
170762020-01-01 Joel Brobecker <brobecker@adacore.com>
17077
17078 * copyright.py: Convert to Python 3.
17079
51fd4002
JB
170802020-01-01 Joel Brobecker <brobecker@adacore.com>
17081
17082 * copyright.py: Adapt after move of gnulib directory from gdb
17083 directory to toplevel directory.
17084
5fb651f2
JB
170852020-01-01 Joel Brobecker <brobecker@adacore.com>
17086
17087 * copyright.py (main): Exit if run from the wrong directory.
17088
5dd8bf88
JB
170892020-01-01 Joel Brobecker <brobecker@adacore.com>
17090
17091 * top.c (print_gdb_version): Change copyright year to 2020.
17092
9f71dacb 170932020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17094
9f71dacb 17095 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17096
9f71dacb 17097For older changes see ChangeLog-2019.
c906108c
SS
17098\f
17099Local Variables:
17100mode: change-log
17101left-margin: 8
17102fill-column: 74
17103version-control: never
57da7796 17104coding: utf-8
c906108c 17105End: