gdb/NEWS: Document that building GDB now requires GMP
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0fb8bb02
JB
12020-11-24 Joel Brobecker <brobecker@adacore.com>
2
3 * NEWS: Document that building GDB now requires GMP.
4
4afa9fd9
JB
52020-11-24 Joel Brobecker <brobecker@adacore.com>
6
7 * typeprint.c (print_type_scalar): Add handling of
8 TYPE_CODE_FIXED_POINT.
9
af619ce9
JB
102020-11-24 Joel Brobecker <brobecker@adacore.com>
11
12 * valarith.c (fixed_point_binop): Replace the
13 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
14 users accordingly.
15
e6fcee3a
JB
162020-11-24 Joel Brobecker <brobecker@adacore.com>
17
18 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
19 replacing fixed_point_scaling_factor. All callers updated
20 throughout this project.
21 (fixed_point_scaling_factor): Delete declaration.
22 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
23 fixed_point_scaling_factor. Adjust implementation accordingly.
24
d19937a7
JB
252020-11-24 Joel Brobecker <brobecker@adacore.com>
26
27 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
28 replacing the fixed_point_type_base_type function. All callers
29 updated throughout this project.
30 (fixed_point_type_base_type): Remove declaration.
31 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
32 fixed_point_type_base_type. Adjust implementation accordingly.
33
2a12c336
JB
342020-11-24 Joel Brobecker <brobecker@adacore.com>
35
36 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
37 New methods.
38 (INIT_FIXED_POINT_SPECIFIC): Adjust.
39 (TYPE_FIXED_POINT_INFO): Delete macro.
40 (allocate_fixed_point_type_info): Change return type to void.
41 * gdbtypes.c (copy_type_recursive): Replace the use of
42 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
43 (fixed_point_scaling_factor): Likewise.
44 (allocate_fixed_point_type_info): Change return type to void.
45 Adjust implementation accordingly.
46 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
47 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
48
c9f0b43f
JB
492020-11-24 Joel Brobecker <brobecker@adacore.com>
50
51 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
52 into one single gdb::array_view parameter.
53 (gdb_mpz::write): Likewise.
54 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
55 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
56 into one single gdb::array_view parameter.
57 Adjust implementation accordingly.
58 (gdb_mpz::write): Likewise.
59 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
60 * unittests/gmp-utils-selftests.c: Adapt following changes above.
61 * valarith.c, valops.c, valprint.c, value.c: Likewise.
62
987b6703
JB
632020-11-24 Joel Brobecker <brobecker@adacore.com>
64
65 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
66 Change return type to std::string. Update all callers.
67 * gmp-utils.c (gmp_string_printf): Likewise.
68
4fbb7cce
JB
692020-11-24 Joel Brobecker <brobecker@adacore.com>
70
71 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
72 instead of mpq_set_ui to initialize our GMP rational.
73
d6ab69dd
TV
742020-11-23 Tom de Vries <tdevries@suse.de>
75
76 * debuginfod-support.c (debuginfod_source_query)
77 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
78
dab72643
TT
792020-11-21 Tom Tromey <tom@tromey.com>
80
81 * breakpoint.c (watchpoint_exp_is_const): Return bool.
82
c0ad05d5
SM
832020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
86 Pass 2.0 to pow.
87 (gdb_mpz_write_all_from_small): Likewise.
88
a43b29c9
SM
892020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
90
91 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
92 of abs.
93
ae41200b
NA
942020-11-20 Nick Alcock <nick.alcock@oracle.com>
95
96 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
97 ctf_arc_open_by_name.
98
139633c3
NA
992020-11-20 Nick Alcock <nick.alcock@oracle.com>
100
101 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
102 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
103
cbbcd7a7
PA
1042020-11-20 Pedro Alves <pedro@palves.net>
105
106 * language.c (language_arch_info::lookup_primitive_type): Use
107 gdb::function_view instead of gdb::function.
108 (template language_lookup_primitive_type): Rename to ...
109 (language_lookup_primitive_type_1): ... this, and make static.
110 (language_lookup_primitive_type(const struct language_defn *,
111 struct gdbarch *, const char *): Make non-template.
112 (language_lookup_primitive_type(const struct language_defn *,
113 struct gdbarch *, std::function<bool (struct type *)>): Make
114 non-template and use gdb::function_view.
115 * language.h (language_arch_info::lookup_primitive_type): Use
116 gdb::function_view instead of std::function.
117 (language_lookup_primitive_type): No longer template.
118 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
119 lambda instead of a std::function.
120
d5ef21c3
AA
1212020-11-19 Andreas Arnez <arnez@linux.ibm.com>
122
123 PR tdep/26916
124 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
125 and STOCFH.
126
a5adb8f3
SM
1272020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
128
129 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
130
70125a45
SM
1312020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
132
133 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
134 in `loop_cb` parameter.
135 * gdbarch.c: Re-generate.
136 * gdbarch.h: Re-generate.
137 * arch-utils.c (default_read_core_file_mappings): Remove `other`
138 parameter.
139 * arch-utils.h (default_read_core_file_mappings): Likewise.
140 * corelow.c (core_target::build_file_mappings): Likewise.
141 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
142 (linux_core_info_proc_mappings): Likewise.
143
a5c641b5
AB
1442020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
145
146 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
147 * NEWS: Mention new options.
148 * f-array-walker.h: New file.
149 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
150 (repack_array_slices): New static global.
151 (show_repack_array_slices): New function.
152 (fortran_array_slicing_debug): New static global.
153 (show_fortran_array_slicing_debug): New function.
154 (value_f90_subarray): Delete.
155 (skip_undetermined_arglist): Delete.
156 (class fortran_array_repacker_base_impl): New class.
157 (class fortran_lazy_array_repacker_impl): New class.
158 (class fortran_array_repacker_impl): New class.
159 (fortran_value_subarray): Complete rewrite.
160 (set_fortran_list): New static global.
161 (show_fortran_list): Likewise.
162 (_initialize_f_language): Register new commands.
163 (fortran_adjust_dynamic_array_base_address_hack): New function.
164 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
165 Declare.
166 * f-valprint.c: Include 'f-array-walker.h'.
167 (class fortran_array_printer_impl): New class.
168 (f77_print_array_1): Delete.
169 (f77_print_array): Delete.
170 (fortran_print_array): New.
171 (f_value_print_inner): Update to call fortran_print_array.
172 * gdbtypes.c: Include 'f-lang.h'.
173 (resolve_dynamic_type_internal): Call
174 fortran_adjust_dynamic_array_base_address_hack.
175
a15a5258
AB
1762020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
177
178 * breakpoint.c (struct watch_options): New struct.
179 (watch_option_defs): New static global.
180 (make_watch_options_def_group): New function.
181 (watch_maybe_just_location): Convert option parsing.
182 (watch_command_completer): New function.
183 (_initialize_breakpoint): Build help text using options mechanism.
184
2e362716
AB
1852020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
186
187 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
188 (watch_command_1): Update parameter types. Convert locals to
189 bool.
190 (watch_command_wrapper): Change parameter type.
191 (watch_maybe_just_location): Change locals to bool.
192 (rwatch_command_wrapper): Update parameter type.
193 (awatch_command_wrapper): Update parameter type.
194 * breakpoint.h (watch_command_wrapper): Change parameter type.
195 (rwatch_command_wrapper): Update parameter type.
196 (awatch_command_wrapper): Update parameter type.
197 * eval.c (fetch_subexp_value): Change parameter type.
198 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
199 'false' not '0'.
200 * value.h (fetch_subexp_value): Change parameter type in
201 declaration.
202
b3ff61f8
AB
2032020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
204
205 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
206 skip_spaces.
207
5b7d45d3
KS
2082020-11-18 Keith Seitz <keiths@redhat.com>
209
210 * linux-tdep.c (dump_note_entry_p): Return true instead of
211 checking `filename'.
212
c44191f8
TV
2132020-11-18 Tom de Vries <tdevries@suse.de>
214
215 * debuginfod-support.c (debuginfod_source_query)
216 (debuginfod_debuginfo_query): Also do early exit if
217 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
218
5d8254e1
TV
2192020-11-18 Tom de Vries <tdevries@suse.de>
220
221 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
222 warning.
223
584903d3
SM
2242020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * gdbtypes.h (get_array_bounds): Return bool, adjust some
227 callers. Move doc here.
228 * gdbtypes.c (get_array_bounds): Return bool
229
6f2643db
AB
2302020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
231
232 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
233 assert.
234 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
235 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
236 case to the default.
237
037d7135
AB
2382020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
239
240 * printcmd.c: Include 'safe-ctype.c'.
241 (skip_over_slash_fmt): New function.
242 (print_command_completer): Call skip_over_slash_fmt.
243 (display_and_x_command_completer): New function.
244 (_initialize_printcmd): Add command completion for 'x' and
245 'display'.
246
2b3cb400
PA
2472020-11-16 Pedro Alves <pedro@palves.net>
248
249 * frame.c (get_prev_frame): Move get_frame_id call from here ...
250 (get_prev_frame_always_1): ... to here.
251 * inline-frame.c (inline_frame_this_id): Mention
252 get_prev_frame_always_1 in comment.
253
b74dbc20
JB
2542020-11-15 Joel Brobecker <brobecker@adacore.com>
255
256 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
257 handling.
258 (value_less): Add fixed-point handling.
259
0a12719e
JB
2602020-11-15 Joel Brobecker <brobecker@adacore.com>
261
262 * eval.c (binop_promote): Add fixed-point type handling.
263 * valarith.c (fixed_point_binop): New function.
264 (scalar_binop): Add fixed-point type handling.
265 (value_neg): Add fixed-point type handling.
266 * valops.c (value_cast_to_fixed_point): New function.
267 (value_cast): Add fixed-point type handling.
268
0c9150e4
JB
2692020-11-15 Joel Brobecker <brobecker@adacore.com>
270
271 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
272 range types.
273 * c-typeprint.c (c_type_print_varspec_prefix)
274 (c_type_print_varspec_suffix, c_type_print_base_1): Add
275 TYPE_CODE_FIXED_POINT handling.
276 * p-typeprint.c (pascal_type_print_varspec_prefix)
277 (pascal_type_print_varspec_suffix): Likewise.
278 * typeprint.c (print_type_fixed_point): New function.
279 * typeprint.h (print_type_fixed_point): Add declaration.
280
b26daff9
JB
2812020-11-15 Joel Brobecker <brobecker@adacore.com>
282
283 * printcmd.c (print_scalar_formatted): Add fixed-point type
284 handling when options->format is set.
285
09584414
JB
2862020-11-15 Joel Brobecker <brobecker@adacore.com>
287
288 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
289 * dwarf2/read.c (get_dwarf2_rational_constant)
290 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
291 (has_zero_over_zero_small_attribute): New functions.
292 read_base_type, set_die_type): Add fixed-point type handling.
293 * gdb-gdb.py.in: Add fixed-point type handling.
294 * gdbtypes.c: #include "gmp-utils.h".
295 (create_range_type, set_type_code): Add fixed-point type handling.
296 (init_fixed_point_type): New function.
297 (is_integral_type, is_scalar_type): Add fixed-point type handling.
298 (print_fixed_point_type_info): New function.
299 (recursive_dump_type, copy_type_recursive): Add fixed-point type
300 handling.
301 (fixed_point_type_storage): New typedef.
302 (fixed_point_objfile_key): New static global.
303 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
304 (fixed_point_type_base_type, fixed_point_scaling_factor): New
305 functions.
306 * gdbtypes.h: #include "gmp-utils.h".
307 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
308 (union type_specific) <fixed_point_info>: New field.
309 (struct fixed_point_type_info): New struct.
310 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
311 (init_fixed_point_type, is_fixed_point_type)
312 (fixed_point_type_base_type, fixed_point_scaling_factor)
313 (allocate_fixed_point_type_info): Add declarations.
314 * valprint.c (generic_val_print_fixed_point): New function.
315 (generic_value_print): Add fixed-point type handling.
316 * value.c (value_as_address, unpack_long): Add fixed-point type
317 handling.
318
e55c6530
JB
3192020-11-15 Joel Brobecker <brobecker@adacore.com>
320
321 * utils.h (uinteger_pow): Add declaration.
322 * utils.c (uinteger_pow): Moved here (without changes)...
323 * valarith.c (uinteger_pow): ... from here.
324
b34c74ab
JB
3252020-11-15 Joel Brobecker <brobecker@adacore.com>
326
40d9d2fd 327 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
328 * unittests/gmp-utils-selftests.c: New file.
329 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
330 unittests/gmp-utils-selftests.c.
331 (COMMON_SFILES) Add gmp-utils.c.
332 (HFILES_NO_SRCDIR): Add gmp-utils.h.
333
1b4ac058
JB
3342020-11-15 Joel Brobecker <brobecker@adacore.com>
335
336 * configure.ac: Generate an error if a usable GMP library
337 could not be found.
338 * configure: Regenerate.
339
2c947d9b
JB
3402020-11-15 Joel Brobecker <brobecker@adacore.com>
341
342 * configure.ac: Add support for --with-libgmp-prefix.
343 * Makefile.in (LIBGMP): New variable.
344 (CLIBS): Include $(LIBGMP).
345 * configure, config.in: Regenerate
346
9dd02fc0
AB
3472020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
348
349 PR cli/26879
350 * f-exp.y (COMPLETE): New token.
351 (exp): Two new rules for tab-completion.
352 (saw_name_at_eof): New static global.
353 (last_was_structop): Likewise.
354 (yylex): Set new variables, and return COMPLETE token at the end
355 of the input stream in some cases.
356
758cb810
TT
3572020-11-14 Tom Tromey <tom@tromey.com>
358
359 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
360
749065b7
TT
3612020-11-14 Tom Tromey <tom@tromey.com>
362
363 * opencl-lang.c (opencl_component_ref): Make "comps" const.
364
2c5b1849
SM
3652020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
366
367 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
368
e8b2f0d9
TT
3692020-11-13 Tom Tromey <tom@tromey.com>
370
371 * c-lang.c (convert_ucn, convert_octal, convert_hex)
372 (convert_escape, parse_one_string): Constify.
373
25f4c262
KS
3742020-11-13 Keith Seitz <keiths@redhat.com>
375
376 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
377 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
378 outside of ELF segments" warning for debugin
379
9d3ab915
KS
3802020-11-13 Keith Seitz <keiths@redhat.com>
381
382 PR gdb/23034
383 * elfread.c (elf_symfile_segments): Output a BFD file name
384 for the "Loadable section ... outside of ELF segments" warning.
385
9ecab40c
SM
3862020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
387
388 PR gdb/26835
389 * arm-tdep.c (class arm_instruction_reader): New.
390 (target_arm_instruction_reader): New.
391 (arm_analyze_prologue): Add instruction reader parameter and use
392 it. Use arm_expand_immediate.
393 (class target_arm_instruction_reader): Adjust.
394 (arm_skip_prologue): Adjust.
395 (arm_expand_immediate): New.
396 (arm_scan_prologue): Adjust.
397 (arm_analyze_prologue_test): New.
398 (class test_arm_instruction_reader): New.
399
5a7cf527
AB
4002020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
401
402 * f-lang.c (fortran_argument_convert): Add declaration. Add
403 header comment, taken from f-lang.h. Make static.
404 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
405 (fortran_argument_convert): Delete declaration.
406
7bea47f0
AB
4072020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 * ada-exp.y (find_primitive_type): Make parameter const.
410 * ada-lang.c (enum ada_primitive_types): Delete.
411 (ada_language::language_arch_info): Update.
412 * c-lang.c (enum c_primitive_types): Delete.
413 (c_language_arch_info): Update.
414 (enum cplus_primitive_types): Delete.
415 (cplus_language::language_arch_info): Update.
416 * d-lang.c (enum d_primitive_types): Delete.
417 (d_language::language_arch_info): Update.
418 * f-lang.c (enum f_primitive_types): Delete.
419 (f_language::language_arch_info): Update.
420 * go-lang.c (enum go_primitive_types): Delete.
421 (go_language::language_arch_info): Update.
422 * language.c (auto_or_unknown_language::language_arch_info):
423 Update.
424 (language_gdbarch_post_init): Use obstack_new, use array indexing.
425 (language_string_char_type): Add header comment, call function in
426 language_arch_info.
427 (language_bool_type): Likewise
428 (language_arch_info::bool_type): Define.
429 (language_lookup_primitive_type_1): Delete.
430 (language_lookup_primitive_type): Rewrite as a templated function
431 to call function in language_arch_info, then instantiate twice.
432 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
433 (language_arch_info::lookup_primitive_type_and_symbol): Define.
434 (language_arch_info::lookup_primitive_type): Define twice with
435 different signatures.
436 (language_arch_info::lookup_primitive_type_as_symbol): Define.
437 (language_lookup_primitive_type_as_symbol): Rewrite to call a
438 member function in language_arch_info.
439 * language.h (language_arch_info): Complete rewrite.
440 (language_lookup_primitive_type): Make templated.
441 * m2-lang.c (enum m2_primitive_types): Delete.
442 (m2_language::language_arch_info): Update.
443 * opencl-lang.c (OCL_P_TYPE): Delete.
444 (enum opencl_primitive_types): Delete.
445 (opencl_type_data): Delete.
446 (builtin_opencl_type): Delete.
447 (lookup_opencl_vector_type): Update.
448 (opencl_language::language_arch_info): Update, lots of content
449 moved from...
450 (build_opencl_types): ...here. This function is now deleted.
451 (_initialize_opencl_language): Delete.
452 * p-lang.c (enum pascal_primitive_types): Delete.
453 (pascal_language::language_arch_info): Update.
454 * rust-lang.c (enum rust_primitive_types): Delete.
455 (rust_language::language_arch_info): Update.
456
bf6e5d01
SM
4572020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
460 dwarf2_queue_guard.
461
1350c3b4
SM
4622020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
463
464 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
465 comment.
466
6f738b01
SM
4672020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * dwarf2/read.c (dwarf_read_debug_printf,
470 dwarf_read_debug_printf_v): New macros, use throughout the file.
471
10c19fad
SV
4722020-11-12 Shahab Vahedi <shahab@synopsys.com>
473
474 * arc-linux-tdep.c (collect_register): Populate "eret" by
475 "pc" value from the regcache when asked for "pc" value.
476
1f2624a3
TT
4772020-11-12 Tom Tromey <tom@tromey.com>
478
479 PR rust/26799:
480 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
481 exist.
482
ab33b152
AB
4832020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
484
485 * features/Makefile (XMLTOC): Add rx.xml.
486 (FEATURE_XMLFILES): Remove rx.xml.
487 (FEATURE_CFILES rule): Pass '-single-feature' flag.
488 * features/rx.c: Regenerate.
489 * features/rx.xml: Wrap in `target` tags, and reindent.
490 * target-descriptions.c (struct maint_print_c_tdesc_options): New
491 structure.
492 (maint_print_c_tdesc_opt_def): New typedef.
493 (maint_print_c_tdesc_opt_defs): New static global.
494 (make_maint_print_c_tdesc_options_def_group): New function.
495 (maint_print_c_tdesc_cmd): Make use of command line flags, only
496 print single feature C file for target descriptions containing a
497 single feature.
498 (maint_print_c_tdesc_cmd_completer): New function.
499 (_initialize_target_descriptions): Update call to register command
500 completer, and include command line flag in help text.
501
550820e1
AB
5022020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
503
504 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
505 numbers.
506 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
507 enum values.
508
baf20f76
TT
5092020-11-10 Tom Tromey <tom@tromey.com>
510
511 * value.h (internalvar_name): Update.
512 * value.c (internalvar_name): Make return type const.
513
caaece0e
TT
5142020-11-10 Tom Tromey <tom@tromey.com>
515
516 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
517 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
518 const.
519
8e20b4be
TT
5202020-11-10 Tom Tromey <tom@tromey.com>
521
522 * objc-lang.h (value_nsstring): Update.
523 * objc-lang.c (value_nsstring): Make "ptr" const.
524
86775fab
AB
5252020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
526
527 * expprint.c (print_subexp_funcall): Increment expression position
528 after reading argument count.
529 * f-lang.c (print_subexp_f): Skip over opcode before calling
530 common function.
531 (dump_subexp_body_f): Likewise.
532
3fed4c0b
RG
5332020-11-06 Romain Geissler <romain.geissler@amadeus.com>
534
535 PR python/26832
536 * configure: Regenerate.
537 * configure.ac: Check for python modules ctypes instead of
538 itertools.
539
ac3d4064
PA
5402020-11-06 Pedro Alves <pedro@palves.net>
541
542 * macroexp.c (struct macro_buffer): Split in two classes. Add
543 uses adjusted.
544 (struct shared_macro_buffer): New, factored out from struct
545 macro_buffer.
546 (struct growable_macro_buffer): New, factored out from struct
547 macro_buffer.
548 (set_token, get_comment, get_identifier, get_pp_number)
549 (get_character_constant, get_string_literal, get_punctuator)
550 (get_next_token_for_substitution): Constify parameters.
551 (substitute_args): Constify locals.
552
606decb2
TT
5532020-11-05 Tom Tromey <tom@tromey.com>
554
555 * dwarf2/read.c (read_cutu_die_from_dwo)
556 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
557 (build_type_psymtabs_1): Update.
558 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
559 parameter.
560 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
561 Don't read section. Add assert.
562
9c91c725
TT
5632020-11-04 Tom Tromey <tromey@adacore.com>
564
565 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
566
8d9fd3a1
TT
5672020-11-04 Tom Tromey <tromey@adacore.com>
568
569 * ada-typeprint.c (ada_print_type): Handle __T types.
570
d8f62e84
TT
5712020-11-04 Tom Tromey <tromey@adacore.com>
572
573 * dwarf2/read.c (add_partial_symbol, process_die):
574 Handle DW_TAG_array_type.
575 (is_type_tag_for_partial): Add "lang" parameter.
576 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
577
7ff5b937
TT
5782020-11-04 Tom Tromey <tromey@adacore.com>
579
580 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
581
10f6a3ad
TT
5822020-11-04 Tom Tromey <tromey@adacore.com>
583
584 * dwarf2/read.c (read_array_type): Only apply stride to innermost
585 array.
586
b72795a8
TT
5872020-11-04 Tom Tromey <tromey@adacore.com>
588
589 * gdbtypes.c (update_static_array_size): Handle bit stride.
590
24aa1b02
TT
5912020-11-04 Tom Tromey <tromey@adacore.com>
592
593 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
594
c9a28cbe
TT
5952020-11-04 Tom Tromey <tromey@adacore.com>
596
597 * ada-lang.c (ada_is_any_packed_array_type): New function.
598 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
599
57567375
TT
6002020-11-04 Tom Tromey <tromey@adacore.com>
601
602 * dwarf2/read.c (recognize_bound_expression)
603 (quirk_ada_thick_pointer): New functions.
604 (read_array_type): Call quirk_ada_thick_pointer.
605 (set_die_type): Add "skip_data_location" parameter.
606 (quirk_ada_thick_pointer): New function.
607 (process_structure_scope): Call quirk_ada_thick_pointer.
608 * ada-lang.c (ada_is_unconstrained_packed_array_type)
609 (decode_packed_array_bitsize): Handle thick pointers without
610 parallel types.
611 (ada_is_gnat_encoded_packed_array_type): Rename from
612 ada_is_packed_array_type.
613 (ada_is_constrained_packed_array_type): Update.
614 * ada-valprint.c (ada_val_print_gnat_array): Remove.
615 (ada_value_print_1): Use ada_get_decoded_value.
616
a7400e44
TT
6172020-11-04 Tom Tromey <tromey@adacore.com>
618
619 * ada-lang.c (recursively_update_array_bitsize): New function.
620 (decode_constrained_packed_array_type): Call it.
621
75fd6a26
TT
6222020-11-04 Tom Tromey <tromey@adacore.com>
623
624 * ada-lang.c (to_fixed_array_type): Error if
625 decode_constrained_packed_array_type returns NULL.
626
93f9561e
TT
6272020-11-04 Tom Tromey <tromey@adacore.com>
628
629 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
630
257e02d8
TT
6312020-11-02 Tom Tromey <tromey@adacore.com>
632
633 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
634 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
635 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
636 * amd64-ravenscar-thread.c: New file.
637 * amd64-ravenscar-thread.h: New file.
638 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
639 * configure.tgt (amd64_tobjs): Add ravenscar objects.
640
74d877e5
AB
6412020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
642
643 * main.c (execute_cmdargs): New function.
644 (captured_main_1): Make use of execute_cmdargs.
645
64aaad63
AB
6462020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
647
648 * NEWS: Mention changes to config file search path.
649 * main.c
650
5b3d3560
TT
6512020-11-02 Tom Tromey <tromey@adacore.com>
652
653 * python/python.c: Consolidate two HAVE_PYTHON blocks.
654 (python_GdbModuleDef): Move earlier. Now static.
655 (do_start_initialization): Consolidate some IS_PY3K blocks.
656
dda83cd7
SM
6572020-11-02 Simon Marchi <simon.marchi@efficios.com>
658
659 * aarch64-linux-tdep.c: Fix indentation.
660 * aarch64-ravenscar-thread.c: Fix indentation.
661 * aarch64-tdep.c: Fix indentation.
662 * aarch64-tdep.h: Fix indentation.
663 * ada-lang.c: Fix indentation.
664 * ada-lang.h: Fix indentation.
665 * ada-tasks.c: Fix indentation.
666 * ada-typeprint.c: Fix indentation.
667 * ada-valprint.c: Fix indentation.
668 * ada-varobj.c: Fix indentation.
669 * addrmap.c: Fix indentation.
670 * addrmap.h: Fix indentation.
671 * agent.c: Fix indentation.
672 * aix-thread.c: Fix indentation.
673 * alpha-bsd-nat.c: Fix indentation.
674 * alpha-linux-tdep.c: Fix indentation.
675 * alpha-mdebug-tdep.c: Fix indentation.
676 * alpha-nbsd-tdep.c: Fix indentation.
677 * alpha-obsd-tdep.c: Fix indentation.
678 * alpha-tdep.c: Fix indentation.
679 * amd64-bsd-nat.c: Fix indentation.
680 * amd64-darwin-tdep.c: Fix indentation.
681 * amd64-linux-nat.c: Fix indentation.
682 * amd64-linux-tdep.c: Fix indentation.
683 * amd64-nat.c: Fix indentation.
684 * amd64-obsd-tdep.c: Fix indentation.
685 * amd64-tdep.c: Fix indentation.
686 * amd64-windows-tdep.c: Fix indentation.
687 * annotate.c: Fix indentation.
688 * arc-tdep.c: Fix indentation.
689 * arch-utils.c: Fix indentation.
690 * arch/arm-get-next-pcs.c: Fix indentation.
691 * arch/arm.c: Fix indentation.
692 * arm-linux-nat.c: Fix indentation.
693 * arm-linux-tdep.c: Fix indentation.
694 * arm-nbsd-tdep.c: Fix indentation.
695 * arm-pikeos-tdep.c: Fix indentation.
696 * arm-tdep.c: Fix indentation.
697 * arm-tdep.h: Fix indentation.
698 * arm-wince-tdep.c: Fix indentation.
699 * auto-load.c: Fix indentation.
700 * auxv.c: Fix indentation.
701 * avr-tdep.c: Fix indentation.
702 * ax-gdb.c: Fix indentation.
703 * ax-general.c: Fix indentation.
704 * bfin-linux-tdep.c: Fix indentation.
705 * block.c: Fix indentation.
706 * block.h: Fix indentation.
707 * blockframe.c: Fix indentation.
708 * bpf-tdep.c: Fix indentation.
709 * break-catch-sig.c: Fix indentation.
710 * break-catch-syscall.c: Fix indentation.
711 * break-catch-throw.c: Fix indentation.
712 * breakpoint.c: Fix indentation.
713 * breakpoint.h: Fix indentation.
714 * bsd-uthread.c: Fix indentation.
715 * btrace.c: Fix indentation.
716 * build-id.c: Fix indentation.
717 * buildsym-legacy.h: Fix indentation.
718 * buildsym.c: Fix indentation.
719 * c-typeprint.c: Fix indentation.
720 * c-valprint.c: Fix indentation.
721 * c-varobj.c: Fix indentation.
722 * charset.c: Fix indentation.
723 * cli/cli-cmds.c: Fix indentation.
724 * cli/cli-decode.c: Fix indentation.
725 * cli/cli-decode.h: Fix indentation.
726 * cli/cli-script.c: Fix indentation.
727 * cli/cli-setshow.c: Fix indentation.
728 * coff-pe-read.c: Fix indentation.
729 * coffread.c: Fix indentation.
730 * compile/compile-cplus-types.c: Fix indentation.
731 * compile/compile-object-load.c: Fix indentation.
732 * compile/compile-object-run.c: Fix indentation.
733 * completer.c: Fix indentation.
734 * corefile.c: Fix indentation.
735 * corelow.c: Fix indentation.
736 * cp-abi.h: Fix indentation.
737 * cp-namespace.c: Fix indentation.
738 * cp-support.c: Fix indentation.
739 * cp-valprint.c: Fix indentation.
740 * cris-linux-tdep.c: Fix indentation.
741 * cris-tdep.c: Fix indentation.
742 * darwin-nat-info.c: Fix indentation.
743 * darwin-nat.c: Fix indentation.
744 * darwin-nat.h: Fix indentation.
745 * dbxread.c: Fix indentation.
746 * dcache.c: Fix indentation.
747 * disasm.c: Fix indentation.
748 * dtrace-probe.c: Fix indentation.
749 * dwarf2/abbrev.c: Fix indentation.
750 * dwarf2/attribute.c: Fix indentation.
751 * dwarf2/expr.c: Fix indentation.
752 * dwarf2/frame.c: Fix indentation.
753 * dwarf2/index-cache.c: Fix indentation.
754 * dwarf2/index-write.c: Fix indentation.
755 * dwarf2/line-header.c: Fix indentation.
756 * dwarf2/loc.c: Fix indentation.
757 * dwarf2/macro.c: Fix indentation.
758 * dwarf2/read.c: Fix indentation.
759 * dwarf2/read.h: Fix indentation.
760 * elfread.c: Fix indentation.
761 * eval.c: Fix indentation.
762 * event-top.c: Fix indentation.
763 * exec.c: Fix indentation.
764 * exec.h: Fix indentation.
765 * expprint.c: Fix indentation.
766 * f-lang.c: Fix indentation.
767 * f-typeprint.c: Fix indentation.
768 * f-valprint.c: Fix indentation.
769 * fbsd-nat.c: Fix indentation.
770 * fbsd-tdep.c: Fix indentation.
771 * findvar.c: Fix indentation.
772 * fork-child.c: Fix indentation.
773 * frame-unwind.c: Fix indentation.
774 * frame-unwind.h: Fix indentation.
775 * frame.c: Fix indentation.
776 * frv-linux-tdep.c: Fix indentation.
777 * frv-tdep.c: Fix indentation.
778 * frv-tdep.h: Fix indentation.
779 * ft32-tdep.c: Fix indentation.
780 * gcore.c: Fix indentation.
781 * gdb_bfd.c: Fix indentation.
782 * gdbarch.sh: Fix indentation.
783 * gdbarch.c: Re-generate
784 * gdbarch.h: Re-generate.
785 * gdbcore.h: Fix indentation.
786 * gdbthread.h: Fix indentation.
787 * gdbtypes.c: Fix indentation.
788 * gdbtypes.h: Fix indentation.
789 * glibc-tdep.c: Fix indentation.
790 * gnu-nat.c: Fix indentation.
791 * gnu-nat.h: Fix indentation.
792 * gnu-v2-abi.c: Fix indentation.
793 * gnu-v3-abi.c: Fix indentation.
794 * go32-nat.c: Fix indentation.
795 * guile/guile-internal.h: Fix indentation.
796 * guile/scm-cmd.c: Fix indentation.
797 * guile/scm-frame.c: Fix indentation.
798 * guile/scm-iterator.c: Fix indentation.
799 * guile/scm-math.c: Fix indentation.
800 * guile/scm-ports.c: Fix indentation.
801 * guile/scm-pretty-print.c: Fix indentation.
802 * guile/scm-value.c: Fix indentation.
803 * h8300-tdep.c: Fix indentation.
804 * hppa-linux-nat.c: Fix indentation.
805 * hppa-linux-tdep.c: Fix indentation.
806 * hppa-nbsd-nat.c: Fix indentation.
807 * hppa-nbsd-tdep.c: Fix indentation.
808 * hppa-obsd-nat.c: Fix indentation.
809 * hppa-tdep.c: Fix indentation.
810 * hppa-tdep.h: Fix indentation.
811 * i386-bsd-nat.c: Fix indentation.
812 * i386-darwin-nat.c: Fix indentation.
813 * i386-darwin-tdep.c: Fix indentation.
814 * i386-dicos-tdep.c: Fix indentation.
815 * i386-gnu-nat.c: Fix indentation.
816 * i386-linux-nat.c: Fix indentation.
817 * i386-linux-tdep.c: Fix indentation.
818 * i386-nto-tdep.c: Fix indentation.
819 * i386-obsd-tdep.c: Fix indentation.
820 * i386-sol2-nat.c: Fix indentation.
821 * i386-tdep.c: Fix indentation.
822 * i386-tdep.h: Fix indentation.
823 * i386-windows-tdep.c: Fix indentation.
824 * i387-tdep.c: Fix indentation.
825 * i387-tdep.h: Fix indentation.
826 * ia64-libunwind-tdep.c: Fix indentation.
827 * ia64-libunwind-tdep.h: Fix indentation.
828 * ia64-linux-nat.c: Fix indentation.
829 * ia64-linux-tdep.c: Fix indentation.
830 * ia64-tdep.c: Fix indentation.
831 * ia64-tdep.h: Fix indentation.
832 * ia64-vms-tdep.c: Fix indentation.
833 * infcall.c: Fix indentation.
834 * infcmd.c: Fix indentation.
835 * inferior.c: Fix indentation.
836 * infrun.c: Fix indentation.
837 * iq2000-tdep.c: Fix indentation.
838 * language.c: Fix indentation.
839 * linespec.c: Fix indentation.
840 * linux-fork.c: Fix indentation.
841 * linux-nat.c: Fix indentation.
842 * linux-tdep.c: Fix indentation.
843 * linux-thread-db.c: Fix indentation.
844 * lm32-tdep.c: Fix indentation.
845 * m2-lang.c: Fix indentation.
846 * m2-typeprint.c: Fix indentation.
847 * m2-valprint.c: Fix indentation.
848 * m32c-tdep.c: Fix indentation.
849 * m32r-linux-tdep.c: Fix indentation.
850 * m32r-tdep.c: Fix indentation.
851 * m68hc11-tdep.c: Fix indentation.
852 * m68k-bsd-nat.c: Fix indentation.
853 * m68k-linux-nat.c: Fix indentation.
854 * m68k-linux-tdep.c: Fix indentation.
855 * m68k-tdep.c: Fix indentation.
856 * machoread.c: Fix indentation.
857 * macrocmd.c: Fix indentation.
858 * macroexp.c: Fix indentation.
859 * macroscope.c: Fix indentation.
860 * macrotab.c: Fix indentation.
861 * macrotab.h: Fix indentation.
862 * main.c: Fix indentation.
863 * mdebugread.c: Fix indentation.
864 * mep-tdep.c: Fix indentation.
865 * mi/mi-cmd-catch.c: Fix indentation.
866 * mi/mi-cmd-disas.c: Fix indentation.
867 * mi/mi-cmd-env.c: Fix indentation.
868 * mi/mi-cmd-stack.c: Fix indentation.
869 * mi/mi-cmd-var.c: Fix indentation.
870 * mi/mi-cmds.c: Fix indentation.
871 * mi/mi-main.c: Fix indentation.
872 * mi/mi-parse.c: Fix indentation.
873 * microblaze-tdep.c: Fix indentation.
874 * minidebug.c: Fix indentation.
875 * minsyms.c: Fix indentation.
876 * mips-linux-nat.c: Fix indentation.
877 * mips-linux-tdep.c: Fix indentation.
878 * mips-nbsd-tdep.c: Fix indentation.
879 * mips-tdep.c: Fix indentation.
880 * mn10300-linux-tdep.c: Fix indentation.
881 * mn10300-tdep.c: Fix indentation.
882 * moxie-tdep.c: Fix indentation.
883 * msp430-tdep.c: Fix indentation.
884 * namespace.h: Fix indentation.
885 * nat/fork-inferior.c: Fix indentation.
886 * nat/gdb_ptrace.h: Fix indentation.
887 * nat/linux-namespaces.c: Fix indentation.
888 * nat/linux-osdata.c: Fix indentation.
889 * nat/netbsd-nat.c: Fix indentation.
890 * nat/x86-dregs.c: Fix indentation.
891 * nbsd-nat.c: Fix indentation.
892 * nbsd-tdep.c: Fix indentation.
893 * nios2-linux-tdep.c: Fix indentation.
894 * nios2-tdep.c: Fix indentation.
895 * nto-procfs.c: Fix indentation.
896 * nto-tdep.c: Fix indentation.
897 * objfiles.c: Fix indentation.
898 * objfiles.h: Fix indentation.
899 * opencl-lang.c: Fix indentation.
900 * or1k-tdep.c: Fix indentation.
901 * osabi.c: Fix indentation.
902 * osabi.h: Fix indentation.
903 * osdata.c: Fix indentation.
904 * p-lang.c: Fix indentation.
905 * p-typeprint.c: Fix indentation.
906 * p-valprint.c: Fix indentation.
907 * parse.c: Fix indentation.
908 * ppc-linux-nat.c: Fix indentation.
909 * ppc-linux-tdep.c: Fix indentation.
910 * ppc-nbsd-nat.c: Fix indentation.
911 * ppc-nbsd-tdep.c: Fix indentation.
912 * ppc-obsd-nat.c: Fix indentation.
913 * ppc-ravenscar-thread.c: Fix indentation.
914 * ppc-sysv-tdep.c: Fix indentation.
915 * ppc64-tdep.c: Fix indentation.
916 * printcmd.c: Fix indentation.
917 * proc-api.c: Fix indentation.
918 * producer.c: Fix indentation.
919 * producer.h: Fix indentation.
920 * prologue-value.c: Fix indentation.
921 * prologue-value.h: Fix indentation.
922 * psymtab.c: Fix indentation.
923 * python/py-arch.c: Fix indentation.
924 * python/py-bpevent.c: Fix indentation.
925 * python/py-event.c: Fix indentation.
926 * python/py-event.h: Fix indentation.
927 * python/py-finishbreakpoint.c: Fix indentation.
928 * python/py-frame.c: Fix indentation.
929 * python/py-framefilter.c: Fix indentation.
930 * python/py-inferior.c: Fix indentation.
931 * python/py-infthread.c: Fix indentation.
932 * python/py-objfile.c: Fix indentation.
933 * python/py-prettyprint.c: Fix indentation.
934 * python/py-registers.c: Fix indentation.
935 * python/py-signalevent.c: Fix indentation.
936 * python/py-stopevent.c: Fix indentation.
937 * python/py-stopevent.h: Fix indentation.
938 * python/py-threadevent.c: Fix indentation.
939 * python/py-tui.c: Fix indentation.
940 * python/py-unwind.c: Fix indentation.
941 * python/py-value.c: Fix indentation.
942 * python/py-xmethods.c: Fix indentation.
943 * python/python-internal.h: Fix indentation.
944 * python/python.c: Fix indentation.
945 * ravenscar-thread.c: Fix indentation.
946 * record-btrace.c: Fix indentation.
947 * record-full.c: Fix indentation.
948 * record.c: Fix indentation.
949 * reggroups.c: Fix indentation.
950 * regset.h: Fix indentation.
951 * remote-fileio.c: Fix indentation.
952 * remote.c: Fix indentation.
953 * reverse.c: Fix indentation.
954 * riscv-linux-tdep.c: Fix indentation.
955 * riscv-ravenscar-thread.c: Fix indentation.
956 * riscv-tdep.c: Fix indentation.
957 * rl78-tdep.c: Fix indentation.
958 * rs6000-aix-tdep.c: Fix indentation.
959 * rs6000-lynx178-tdep.c: Fix indentation.
960 * rs6000-nat.c: Fix indentation.
961 * rs6000-tdep.c: Fix indentation.
962 * rust-lang.c: Fix indentation.
963 * rx-tdep.c: Fix indentation.
964 * s12z-tdep.c: Fix indentation.
965 * s390-linux-tdep.c: Fix indentation.
966 * score-tdep.c: Fix indentation.
967 * ser-base.c: Fix indentation.
968 * ser-mingw.c: Fix indentation.
969 * ser-uds.c: Fix indentation.
970 * ser-unix.c: Fix indentation.
971 * serial.c: Fix indentation.
972 * sh-linux-tdep.c: Fix indentation.
973 * sh-nbsd-tdep.c: Fix indentation.
974 * sh-tdep.c: Fix indentation.
975 * skip.c: Fix indentation.
976 * sol-thread.c: Fix indentation.
977 * solib-aix.c: Fix indentation.
978 * solib-darwin.c: Fix indentation.
979 * solib-frv.c: Fix indentation.
980 * solib-svr4.c: Fix indentation.
981 * solib.c: Fix indentation.
982 * source.c: Fix indentation.
983 * sparc-linux-tdep.c: Fix indentation.
984 * sparc-nbsd-tdep.c: Fix indentation.
985 * sparc-obsd-tdep.c: Fix indentation.
986 * sparc-ravenscar-thread.c: Fix indentation.
987 * sparc-tdep.c: Fix indentation.
988 * sparc64-linux-tdep.c: Fix indentation.
989 * sparc64-nbsd-tdep.c: Fix indentation.
990 * sparc64-obsd-tdep.c: Fix indentation.
991 * sparc64-tdep.c: Fix indentation.
992 * stabsread.c: Fix indentation.
993 * stack.c: Fix indentation.
994 * stap-probe.c: Fix indentation.
995 * stubs/ia64vms-stub.c: Fix indentation.
996 * stubs/m32r-stub.c: Fix indentation.
997 * stubs/m68k-stub.c: Fix indentation.
998 * stubs/sh-stub.c: Fix indentation.
999 * stubs/sparc-stub.c: Fix indentation.
1000 * symfile-mem.c: Fix indentation.
1001 * symfile.c: Fix indentation.
1002 * symfile.h: Fix indentation.
1003 * symmisc.c: Fix indentation.
1004 * symtab.c: Fix indentation.
1005 * symtab.h: Fix indentation.
1006 * target-float.c: Fix indentation.
1007 * target.c: Fix indentation.
1008 * target.h: Fix indentation.
1009 * tic6x-tdep.c: Fix indentation.
1010 * tilegx-linux-tdep.c: Fix indentation.
1011 * tilegx-tdep.c: Fix indentation.
1012 * top.c: Fix indentation.
1013 * tracefile-tfile.c: Fix indentation.
1014 * tracepoint.c: Fix indentation.
1015 * tui/tui-disasm.c: Fix indentation.
1016 * tui/tui-io.c: Fix indentation.
1017 * tui/tui-regs.c: Fix indentation.
1018 * tui/tui-stack.c: Fix indentation.
1019 * tui/tui-win.c: Fix indentation.
1020 * tui/tui-winsource.c: Fix indentation.
1021 * tui/tui.c: Fix indentation.
1022 * typeprint.c: Fix indentation.
1023 * ui-out.h: Fix indentation.
1024 * unittests/copy_bitwise-selftests.c: Fix indentation.
1025 * unittests/memory-map-selftests.c: Fix indentation.
1026 * utils.c: Fix indentation.
1027 * v850-tdep.c: Fix indentation.
1028 * valarith.c: Fix indentation.
1029 * valops.c: Fix indentation.
1030 * valprint.c: Fix indentation.
1031 * valprint.h: Fix indentation.
1032 * value.c: Fix indentation.
1033 * value.h: Fix indentation.
1034 * varobj.c: Fix indentation.
1035 * vax-tdep.c: Fix indentation.
1036 * windows-nat.c: Fix indentation.
1037 * windows-tdep.c: Fix indentation.
1038 * xcoffread.c: Fix indentation.
1039 * xml-syscall.c: Fix indentation.
1040 * xml-tdesc.c: Fix indentation.
1041 * xstormy16-tdep.c: Fix indentation.
1042 * xtensa-config.c: Fix indentation.
1043 * xtensa-linux-nat.c: Fix indentation.
1044 * xtensa-linux-tdep.c: Fix indentation.
1045 * xtensa-tdep.c: Fix indentation.
1046
e1f57067
AB
10472020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1048 Craig Blackmore <craig.blackmore@embecosm.com>
1049
1050 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1051 as an unsigned value.
1052
ae7754b2
TT
10532020-11-01 Tom Tromey <tom@tromey.com>
1054
1055 * dbxread.c (dbx_end_psymtab): Update.
1056 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1057 (build_type_psymtabs_reader): Update.
1058 * xcoffread.c (xcoff_end_psymtab): Update.
1059 * ctfread.c (scan_partial_symbols): Update.
1060 * psymtab.c (sort_pst_symbols): Remove.
1061 (partial_symtab::end): Rename from end_psymtab_common. Inline
1062 sort_pst_symbols.
1063 * psympriv.h (struct partial_symtab) <end>: New method.
1064 (end_psymtab_common): Don't declare.
1065
0684bb51
TT
10662020-11-01 Tom Tromey <tom@tromey.com>
1067
1068 * symmisc.c (count_psyms): New function.
1069 (print_objfile_statistics): Use it.
1070 * psymtab.c (append_psymbol_to_list): Remove.
1071 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1072 * objfiles.h (struct objstats) <n_psyms>: Remove.
1073
089002bb
TT
10742020-11-01 Tom Tromey <tom@tromey.com>
1075
1076 * dbxread.c (dbx_end_psymtab): Update.
1077 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1078 (build_type_psymtabs_reader): Update.
1079 * xcoffread.c (xcoff_end_psymtab): Update.
1080 * ctfread.c (scan_partial_symbols): Update.
1081 * psympriv.h (end_psymtab_common): Update.
1082 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1083 (sort_pst_symbols): Likewise.
1084
525454d6
TT
10852020-11-01 Tom Tromey <tom@tromey.com>
1086
1087 * dbxread.c (dbx_symfile_read): Update.
1088 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1089 * xcoffread.c (xcoff_initial_scan): Update.
1090 * psympriv.h (init_psymbol_list): Don't declare.
1091 * psymtab.c (init_psymbol_list): Remove.
1092
60bd1d53
JB
10932020-11-01 Joel Brobecker <brobecker@adacore.com>
1094
1095 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1096 gnat_encoded_fixed_type_info. Update all callers.
1097
db99d0d0
JB
10982020-11-01 Joel Brobecker <brobecker@adacore.com>
1099
1100 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1101 line too long.
1102
75f24e86
JB
11032020-11-01 Joel Brobecker <brobecker@adacore.com>
1104
1105 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1106 cast_from_fixed. Update all callers.
1107 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1108 Update all callers.
1109 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1110 Update all callers.
1111 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1112 ada_scaling_factor.
1113 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1114 to print_gnat_encoded_fixed_point_type.
1115 * ada-valprint.c: Likewise.
1116
4f0469cd
AB
11172020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1118
1119 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1120 (debug_prefixed_printf): Add check of debug_displaced flag.
1121 * linux-nat.c (linux_nat_debug_printf): Add check of
1122 debug_linux_nat flag.
1123
17417fb0
SM
11242020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1125
1126 * infrun.c (infrun_debug_printf_1): Remove.
1127 (displaced_debug_printf_1): Remove.
1128 (stop_all_threads): Use debug_prefixed_printf.
1129 * infrun.h (infrun_debug_printf_1): Remove.
1130 (infrun_debug_printf): Use debug_prefixed_printf.
1131 (displaced_debug_printf_1): Remove.
1132 (displaced_debug_printf): Use debug_prefixed_printf.
1133 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1134 (linux_nat_debug_printf): Use debug_prefixed_printf.
1135
ad6dba1c
SM
11362020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1137
1138 * configure: Re-generate.
1139 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1140 AC_LANG_PROGRAM.
1141
b6fb30ed
SM
11422020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1143
1144 * configure: Re-generate.
1145
5164c117
SM
11462020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1147
1148 * configure: Re-generate.
1149
864ca435
SM
11502020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1151
1152 * configure: Re-generate.
1153
b9442ec1
SM
11542020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1155
1156 * configure: Re-generate.
1157
294f2697
SM
11582020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1159
1160 * acinclude.m4: Modernize.
1161 * configure: Re-generate.
1162
5593a99a
SM
11632020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1164
1165 * configure.ac: Modernize.
1166 * configure: Re-generate.
1167
e41fda1d
SM
11682020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1169
1170 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1171 * configure: Re-generate.
1172 * configure.ac: Remove AM_PROG_CC_STDC.
1173
91e1a0ed
SM
11742020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1175
1176 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1177 AC_CANONICAL_SYSTEM.
1178 * configure: Re-generate.
1179
136821d9
SM
11802020-10-30 Simon Marchi <simon.marchi@efficios.com>
1181
1182 * infrun.h (displaced_debug_printf): New macro. Replace
1183 displaced debug prints throughout to use it.
1184 (displaced_debug_printf_1): New declaration.
1185 (displaced_step_dump_bytes): Return string, remove ui_file
1186 parameter, update all callers.
1187 * infrun.c (displaced_debug_printf_1): New function.
1188 (displaced_step_dump_bytes): Return string, remove ui_file
1189 parameter
1190
aa2045e7
SM
11912020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1192
1193 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1194
b1ec2735
TT
11952020-10-30 Tom Tromey <tromey@adacore.com>
1196
1197 * Makefile.in (stamp-init): Depend on config.status.
1198
b78b3a29
TBA
11992020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1200
1201 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1202
d70bdd3c
PA
12032020-10-30 Pedro Alves <pedro@palves.net>
1204
1205 * thread.c (lookup_selected_frame): Move ...
1206 * frame.c (lookup_selected_frame): ... here.
1207
79952e69
PA
12082020-10-30 Pedro Alves <pedro@palves.net>
1209
1210 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1211 * frame.c
1212 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1213 Use save_selected_frame. Save language as well.
1214 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1215 Use restore_selected_frame, and restore language as well.
1216 (selected_frame_id, selected_frame_level): New.
1217 (selected_frame): Update comments.
1218 (save_selected_frame, restore_selected_frame): New.
1219 (get_selected_frame): Use lookup_selected_frame.
1220 (get_selected_frame_if_set): Delete.
1221 (select_frame): Record selected_frame_level and selected_frame_id.
1222 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1223 fields.
1224 (get_selected_frame): Make 'message' parameter optional.
1225 (get_selected_frame_if_set): Delete declaration.
1226 (select_frame): Update comments.
1227 (save_selected_frame, restore_selected_frame)
1228 (lookup_selected_frame): Declare.
1229 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1230 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1231 New field.
1232 (save_infcall_control_state): Use save_selected_frame.
1233 (restore_selected_frame): Delete.
1234 (restore_infcall_control_state): Use restore_selected_frame.
1235 * stack.c (select_frame_command_core, frame_command_core): Use
1236 get_selected_frame.
1237 * thread.c (restore_selected_frame): Rename to ...
1238 (lookup_selected_frame): ... this and make extern. Select the
1239 current frame if the frame level is -1.
1240 (scoped_restore_current_thread::restore): Also restore the
1241 language.
1242 (scoped_restore_current_thread::~scoped_restore_current_thread):
1243 Don't try/catch.
1244 (scoped_restore_current_thread::scoped_restore_current_thread):
1245 Save the language as well. Use save_selected_frame.
1246
58103c33
SM
12472020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1248
1249 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1250 documentation.
1251 * gdbarch.h: Re-generate.
1252
40a53766
SM
12532020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1254
1255 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1256 parameter.
1257 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1258 Likewise.
1259 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1260 Likewise.
1261 * arch-utils.c (default_displaced_step_hw_singlestep):
1262 Likewise.
1263 * arch-utils.h (default_displaced_step_hw_singlestep):
1264 Likewise.
1265 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1266 Likewise.
1267 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1268 Likewise.
1269 * gdbarch.c: Re-generate.
1270 * gdbarch.h: Re-generate.
1271 * infrun.c (resume_1): Adjust.
1272
8407f91b
TT
12732020-10-29 Tom Tromey <tom@tromey.com>
1274
1275 * progspace.c (program_space::~program_space): Don't call
1276 exec_close.
1277
5008b3b2
TT
12782020-10-29 Tom Tromey <tom@tromey.com>
1279
1280 * exec.c (exec_target::close): Don't change current program
1281 space.
1282
d9eebde0
TT
12832020-10-29 Tom Tromey <tom@tromey.com>
1284
1285 * symfile.c (add_symbol_file_command): Update.
1286 * exec.c (program_space::add_target_sections): Rename.
1287 * symfile-mem.c (symbol_file_add_from_memory): Update.
1288 * progspace.h (struct program_space) <add_target_sections>:
1289 Declare new overload.
1290 * exec.h (add_target_sections_of_objfile): Don't declare.
1291
3769e227
TT
12922020-10-29 Tom Tromey <tom@tromey.com>
1293
1294 * solib.c (solib_map_sections): Update.
1295 * exec.c (program_space::add_target_sections): Now a method.
1296 (exec_file_attach): Update.
1297 * exec.h (add_target_sections): Don't declare.
1298 * progspace.h (struct program_space) <add_target_sections>:
1299 Declare.
1300
2a3f84af
TT
13012020-10-29 Tom Tromey <tom@tromey.com>
1302
1303 * progspace.h (struct program_space) <remove_target_sections>:
1304 Declare.
1305 * exec.c (program_space::remove_target_sections): Now a method.
1306 * exec.h (remove_target_sections): Don't declare.
1307
004eecfd
TT
13082020-10-29 Tom Tromey <tom@tromey.com>
1309
1310 * inferior.c (delete_inferior): Update.
1311 * progspace.c (program_space::empty): Rename from
1312 program_space_empty_p. Return bool.
1313 * progspace.h (struct program_space) <empty>: New method.
1314 (program_space_empty_p): Don't declare.
1315
e39fb971
TT
13162020-10-29 Tom Tromey <tom@tromey.com>
1317
1318 * progspace.c (program_space::~program_space): Don't call
1319 clear_program_space_solib_cache.
1320 (program_space::clear_solib_cache): Rename from
1321 clear_solib_cache.
1322 * solib.c (handle_solib_event): Update.
1323 * progspace.h (struct program_space) <clear_solib_cache>: New
1324 method.
1325 (clear_program_space_solib_cache): Don't declare.
1326
a42d7dd8
TT
13272020-10-29 Tom Tromey <tom@tromey.com>
1328
1329 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1330 * target.c (info_target_command): Update.
1331 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1332 (symbol_file_clear, reread_symbols): Update.
1333 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1334 * stabsread.c (scan_file_globals): Update.
1335 * solib.c (update_solib_list): Update.
1336 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1337 (svr4_fetch_objfile_link_map, enable_break)
1338 (svr4_relocate_main_executable)
1339 (svr4_iterate_over_objfiles_in_search_order): Update.
1340 * solib-frv.c (lm_base, enable_break)
1341 (frv_relocate_main_executable): Update.
1342 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1343 (frv_fetch_objfile_link_map): Update.
1344 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1345 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1346 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1347 * remote.c (remote_target::get_offsets): Update.
1348 (remote_target::start_remote)
1349 (extended_remote_target::post_attach): Update.
1350 * objfiles.c (entry_point_address_query): Update.
1351 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1352 * minsyms.c (get_symbol_leading_char): Update.
1353 * frame.c (inside_main_func): Update.
1354 * progspace.h (symfile_objfile): Remove macro.
1355
19f6550e
TT
13562020-10-29 Tom Tromey <tom@tromey.com>
1357
1358 * exec.c (exec_file_attach): Update.
1359 * progspace.c (program_space::exec_close): Update.
1360 * progspace.h (struct program_space) <ebfd>: Now a
1361 gdb_bfd_ref_ptr.
1362 <set_exec_bfd>: Change argument type.
1363 <exec_bfd>: Update.
1364
7e10abd1
TT
13652020-10-29 Tom Tromey <tom@tromey.com>
1366
1367 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1368 * symfile.c (reread_symbols): Update.
1369 * symfile-mem.c (add_symbol_file_from_memory_command)
1370 (add_vsyscall_page): Update.
1371 * source-cache.c (source_cache::get_plain_source_lines): Update.
1372 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1373 (svr4_current_sos_direct, svr4_exec_displacement)
1374 (svr4_relocate_main_executable): Update.
1375 (svr4_iterate_over_objfiles_in_search_order): Update.
1376 * solib-frv.c (enable_break2, enable_break): Update.
1377 * solib-dsbt.c (lm_base, enable_break): Update.
1378 * solib-darwin.c (find_program_interpreter)
1379 (darwin_solib_create_inferior_hook): Update.
1380 * sol-thread.c (rw_common, ps_pdmodel): Update.
1381 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1382 * remote.c (compare_sections_command)
1383 (remote_target::trace_set_readonly_regions): Update.
1384 * remote-sim.c (get_sim_inferior_data)
1385 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1386 (gdbsim_target_open, gdbsim_target::files_info): Update.
1387 * exec.h (exec_bfd): Remove macro.
1388 * progspace.c (initialize_progspace): Update.
1389 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1390 Update.
1391 * nto-procfs.c (nto_procfs_target::post_attach)
1392 (nto_procfs_target::create_inferior): Update.
1393 * maint.c (maintenance_info_sections): Update.
1394 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1395 Update.
1396 * infcmd.c (post_create_inferior): Update.
1397 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1398 (objfile_find_memory_regions): Update.
1399 * exec.c (validate_exec_file, exec_file_attach)
1400 (exec_read_partial_read_only, print_section_info): Update.
1401 * corelow.c (core_target_open): Update.
1402 * corefile.c (reopen_exec_file, validate_files): Update.
1403 * arm-tdep.c (gdb_print_insn_arm): Update.
1404 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1405 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1406 methods.
1407
b55221ab
TT
14082020-10-29 Tom Tromey <tom@tromey.com>
1409
1410 * progspace.h (current_target_sections): Remove macro.
1411 * solib-svr4.c (scan_dyntag): Update.
1412 * solib-dsbt.c (scan_dyntag): Update.
1413 * exec.c (exec_target::close): Update.
1414 (add_target_sections, add_target_sections_of_objfile)
1415 (remove_target_sections, exec_target::get_section_table)
1416 (exec_target::files_info, set_section_command)
1417 (exec_set_section_address, exec_target::has_memory)
1418 (exec_target::has_memory): Update.
1419
5a36e715
TT
14202020-10-29 Tom Tromey <tom@tromey.com>
1421
1422 * source-cache.c (source_cache::get_plain_source_lines): Use
1423 current_program_space.
1424 * corefile.c (reopen_exec_file): Use current_program_space.
1425 * exec.c (exec_file_attach): Use current_program_space.
1426 * exec.h (exec_bfd_mtime): Remove.
1427
784c8592
TT
14282020-10-29 Tom Tromey <tom@tromey.com>
1429
1430 * gcore.c (default_gcore_mach): Remove.
1431 (create_gcore_bfd): Update.
1432
8a4f1402
TT
14332020-10-29 Tom Tromey <tom@tromey.com>
1434
1435 * progspace.c (program_space::exec_close): New method, from
1436 exec_close in exec.c.
1437 * exec.c (exec_close): Move to progspace.c.
1438 (exec_target::close, exec_file_attach): Update.
1439 * progspace.h (struct program_space) <exec_close>: Declare
1440 method.
1441
c20cb686
TT
14422020-10-29 Tom Tromey <tom@tromey.com>
1443
1444 * progspace.h (struct program_space) <exec_filename>: Rename from
1445 pspace_exec_filename. Now a unique_xmalloc_ptr.
1446 * inferior.c (print_selected_inferior): Update.
1447 (print_inferior): Update.
1448 * mi/mi-main.c (print_one_inferior): Update.
1449 * exec.h (exec_filename): Remove macro.
1450 * corefile.c (get_exec_file): Update.
1451 * exec.c (exec_close): Update.
1452 (exec_file_attach): Update.
1453 * progspace.c (clone_program_space): Update.
1454 (print_program_space): Update.
1455
6be2a9ab
TT
14562020-10-29 Tom Tromey <tom@tromey.com>
1457
1458 * target-section.h (struct target_section): Add constructor.
1459 * exec.c (build_section_table, add_target_sections_of_objfile):
1460 Update.
1461 * corelow.c (core_target::build_file_mappings): Update.
1462
cfaa8f76
TBA
14632020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1464
1465 PR gdb/19318
1466 * inferior.c (detach_inferior_command): Restore the current thread.
1467 (kill_inferior_command): Ditto.
1468
1b00ef06
TV
14692020-10-28 Tom de Vries <tdevries@suse.de>
1470
1471 PR symtab/26772
1472 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1473 map, check it in the "best match" loop.
1474
7f40ce1a
SM
14752020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1476
1477 * m32c-tdep.c: Remove unused includes.
1478
5eb9e3f5
SM
14792020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1480
1481 * xtensa-tdep.c: Remove includes.
1482
b1d4d8d1
TBA
14832020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1484
1485 * breakpoint.c (struct condition_command_opts): New struct.
1486 (condition_command_option_defs): New static global.
1487 (make_condition_command_options_def_group): New function.
1488 (condition_completer): Update to consider the '-force' flag.
1489 (condition_command): Use gdb::option for the '-force' flag.
1490
bd24c5d6
TV
14912020-10-27 Tom de Vries <tdevries@suse.de>
1492
1493 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1494 symbols in section check.
1495
61eb46a4
TV
14962020-10-27 Tom de Vries <tdevries@suse.de>
1497
1498 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1499
733d554a
TBA
15002020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1501
1502 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1503 * breakpoint.c: Update the help text of the 'condition' and 'break'
1504 commands.
1505 (set_breakpoint_condition): Take a new bool parameter
1506 to control whether condition definition should be forced even when
1507 the condition expression is invalid in all of the current locations.
1508 (condition_command): Update the call to 'set_breakpoint_condition'.
1509 (find_condition_and_thread): Take the "-force-condition" flag into
1510 account.
1511 * linespec.c (linespec_keywords): Add "-force-condition" as an
1512 element.
1513 (FORCE_KEYWORD_INDEX): New #define.
1514 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1515 as a keyword.
1516 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1517 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1518 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1519 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1520
b5fa468f
TBA
15212020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1522
1523 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1524 * breakpoint.c (set_breakpoint_location_condition): New function.
1525 (set_breakpoint_condition): Disable a breakpoint location if parsing
1526 the condition string gives an error.
1527 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1528 (build_target_condition_list): Ditto.
1529 (build_target_command_list): Ditto.
1530 (build_bpstat_chain): Ditto.
1531 (print_one_breakpoint_location): Ditto.
1532 (print_one_breakpoint): Ditto.
1533 (breakpoint_1): Ditto.
1534 (bp_location::bp_location): Ditto.
1535 (locations_are_equal): Ditto.
1536 (update_breakpoint_locations): Ditto.
1537 (enable_disable_bp_num_loc): Ditto.
1538 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1539 (find_condition_and_thread_for_sals): New static function.
1540 (create_breakpoint): Call find_condition_and_thread_for_sals.
1541 (location_to_sals): Call find_condition_and_thread_for_sals instead
1542 of find_condition_and_thread.
1543
1c47ec3e
TV
15442020-10-26 Tom de Vries <tdevries@suse.de>
1545
1546 * dwarf2/read.c (process_full_comp_unit): Call
1547 dwarf2_find_base_address.
1548
6390859c
TT
15492020-10-26 Tom Tromey <tromey@adacore.com>
1550
1551 * gdbtypes.c (create_range_type): Revert previous patch. Add
1552 comment.
1553
d744f0f9
PA
15542020-10-26 Pedro Alves <pedro@palves.net>
1555
1556 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1557 (my_waitpid): Use gdb::handle_eintr.
1558
006811bc
SM
15592020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1560
1561 * acinclude.m4: Update ptrace.m4 path.
1562 * ptrace.m4: Moved to gdbsupport.
1563
c75e31a1
SM
15642020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1565
1566 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1567 instead of target_gdbarch.
1568
32495661
SM
15692020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1570
1571 * jit.c (jit_reader_load_command): Pass current inferior.
1572 (jit_inferior_init): Change parameter type to inferior, use it.
1573 (jit_inferior_created): Remove.
1574 (jit_inferior_created_hook): Pass inferior parameter down.
1575 (_initialize_jit): Use jit_inferior_created_hook instead of
1576 jit_inferior_created.
1577 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1578 * infrun.c (follow_exec): Pass inferior to
1579 jit_inferior_created_hook.
1580
3f66685e
SM
15812020-10-24 Simon Marchi <simon.marchi@efficios.com>
1582
1583 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1584 parameter and use it.
1585 (thread_db_inferior_created): Pass inferior argument.
1586
a0ff652f
SM
15872020-10-24 Simon Marchi <simon.marchi@efficios.com>
1588
1589 * aix-thread.c (aix_thread_inferior_created): Add inferior
1590 parameter.
1591 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1592 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1593 * jit.c (jit_inferior_created): Likewise.
1594 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1595 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1596 * observable.h (inferior_created): Likewise.
1597 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1598 * symfile-mem.c (add_vsyscall_page): Likewise.
1599 * infcmd.c (post_create_inferior): Pass inferior argument.
1600
3c67532c
JB
16012020-10-24 Joel Brobecker <brobecker@adacore.com>
1602
1603 GDB 10.1 released.
1604
8747316e
JB
16052020-10-23 Joel Brobecker <brobecker@adacore.com>
1606
1607 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1608 to ada_check_typedef.
1609
1a0ea399
AB
16102020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1611
1612 * f-exp.y (f_parse): Rename to...
1613 (f_language::parser): ...this.
1614 * f-lang.c (f_get_encoding): Rename to...
1615 (f_language::get_encoding): ...this.
1616 (f_op_print_tab): Rename to...
1617 (f_language::op_print_tab): ...this.
1618 (exp_descriptor_f): Rename to...
1619 (f_language::exp_descriptor_tab): ...this.
1620 (class f_language): Moved to f-lang.h.
1621 (f_language::language_arch_info): New function, moved out of class
1622 declaration.
1623 (f_language::search_name_hash): Likewise.
1624 (f_language::lookup_symbol_nonlocal): Likewise.
1625 (f_language::get_symbol_name_matcher_inner): Likewise.
1626 * f-lang.h: Add 'valprint.h' include.
1627 (class f_language): Moved here from f-lang.c.
1628 * f-typeprint.c (f_type_print_args): Delete commented out
1629 declaration.
1630 (f_print_typedef): Rename to...
1631 (f_language::print_typedef): ...this.
1632 (f_print_type): Rename to...
1633 (f_language::print_type): ...this.
1634 (f_type_print_varspec_prefix): Delete declaration and rename to...
1635 (f_language::f_type_print_varspec_prefix): ...this.
1636 (f_type_print_varspec_suffix): Delete declaration and rename to...
1637 (f_language::f_type_print_varspec_suffix): ...this.
1638 (f_type_print_base): Delete declaration and rename to...
1639 (f_language::f_type_print_base): ...this.
1640 * f-valprint.c (f_value_print_inner): Rename to...
1641 (f_language::value_print_inner): ...this.
1642 * parse.c: Delete 'f-lang.h' include.
1643
88cefd9b
AB
16442020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * language.h (language_defn::print_type): Add variable names in
1647 declaration, and update header comment.
1648
5399db93
AB
16492020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * ada-lang.c (ada_language::demangle): Rename to...
1652 (ada_language::demangle_symbol): ...this.
1653 * c-lang.c (cplus_language::demangle): Rename to...
1654 (cplus_language::demangle_symbol): ...this.
1655 * d-lang.c (d_language::demangle): Rename to...
1656 (d_language::demangle_symbol): ...this.
1657 * f-lang.c (f_language::demangle): Rename to...
1658 (f_language::demangle_symbol): ...this.
1659 * go-lang.c (go_language::demangle): Rename to...
1660 (go_language::demangle_symbol): ...this.
1661 * language.c (language_demangle): Update call to demangle_symbol.
1662 (auto_or_unknown_language::demangle): Rename to...
1663 (auto_or_unknown_language::demangle_symbol): ...this.
1664 * language.h (language_defn::demangle): Rename to...
1665 (language_defn::demangle_symbol): ...this.
1666 * objc-lang.c (objc_language::demangle): Rename to...
1667 (objc_language::demangle_symbol): ...this.
1668 * rust-lang.c (rust_language::demangle): Rename to...
1669 (rust_language::demangle_symbol): ...this.
1670
4b2f86ef
AB
16712020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1672
1673 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1674 (iterate_over_file_blocks): Replace use of macro with the macros
1675 definition.
1676
e74b39de
AB
16772020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1680 * valprint.c (maybe_print_array_index): Replace use of macro with
1681 the macros definition.
1682
00c696a6
AB
16832020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1684
1685 * ada-lang.c (ada_language::print_array_index): Call value_print
1686 directly.
1687 * language.c (language_defn::print_array_index): Likewise.
1688 * language.h (LA_VALUE_PRINT): Delete.
1689 * valprint.c (value_print): Call value_print on the
1690 current_language directly.
1691
d3b67c56
AB
16922020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1693
1694 * language.h (LA_PRINT_TYPEDEF): Delete.
1695 * typeprint.c (typedef_print): Call print_typedef directly on the
1696 current_language object.
1697
790e2a12
AB
16982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * m2-exp.y (m2_parse): Rename to...
1701 (m2_language::parser): ...this. Update function signature.
1702 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1703 (m2_op_print): Rename to...
1704 (m2_language::op_print_tab): ...this, and make const.
1705 (exp_descriptor_modula2): Rename to...
1706 (m2_language::exp_descriptor_modula2): ...this.
1707 (class m2_language): Move to m2-lang.h.
1708 (m2_language::language_arch_info): New function, moved out of
1709 class declaration.
1710 (m2_language::printchar): New function, body from m2_printchar.
1711 (m2_language::printstr): New function, moved out of class
1712 declaration.
1713 (m2_language::emitchar): Likewise.
1714 * m2-lang.h (m2_parse): Delete declaration.
1715 (m2_print_typedef): Delete declaration.
1716 (m2_value_print_inner): Delete declaration.
1717 (class m2_language): Class declaration moved from m2-lang.c,
1718 larger functions are left in m2-lang.c.
1719 * m2-typeprint.c (m2_print_typedef): Rename to...
1720 (m2_language::print_typedef): ...this, and update function
1721 signature.
1722 * m2-valprint.c (m2_value_print_inner): Rename to...
1723 (m2_language::value_print_inner): ...this, replace use of
1724 LA_PRINT_STRING with a direct call to printstr member function,
1725 and update recursive call.
1726
b01175fc
AB
17272020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1728
1729 * language.c (default_is_string_type_p): Delete, implementation
1730 moved into auto_or_unknown_language::is_string_type_p.
1731 (unk_op_print_tab): Moved into
1732 auto_or_unknown_language::opcode_print_table.
1733 (unknown_language_arch_info): Delete, implementation moved into
1734 auto_or_unknown_language::language_arch_info.
1735 (class auto_or_unknown_language): New class, member functions
1736 copied from unknown_language class, with some updates.
1737 (class unknown_language): Most member functions moved into
1738 auto_or_unknown_language class. Inherit from
1739 auto_or_unknown_language class.
1740 (class auto_language): Inherit from auto_or_unknown_language.
1741 Delete most member functions.
1742
1a97fe8c
HD
17432020-10-22 Hannes Domani <ssbssa@yahoo.de>
1744
1745 * stabsread.c (read_member_functions): Remove gdb_assert.
1746
6b9d0dfd
HD
17472020-10-22 Hannes Domani <ssbssa@yahoo.de>
1748
1749 * gdbtypes.c (init_complex_type): Check target type name.
1750
4b4bb603
SM
17512020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1752
1753 * target-debug.h (target_debug_print_struct_target_ops_p):
1754 Remove.
1755 (target_debug_print_async_callback_ftype_p): Remove.
1756 (target_debug_print_struct_trace_state_variable_p): Remove.
1757 (target_debug_print_struct_traceframe_info_p): Remove.
1758 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1759 (target_debug_print_enum_btrace_format): Remove.
1760 (target_debug_print_enum_info_proc_what): Remove.
1761 (target_debug_print_thread_info_pp): Remove.
1762
24f5300a
SM
17632020-10-22 Simon Marchi <simon.marchi@efficios.com>
1764
1765 * target.h (struct target_ops) <make_corefile_notes>:
1766 Change return type to unique pointer.
1767 * target.c (dummy_make_corefile_notes): Likewise.
1768 * exec.c (struct exec_target) <make_corefile_notes>:
1769 Likewise.
1770 (exec_target::make_corefile_notes): Likewise.
1771 * procfs.c (class procfs_target) <make_corefile_notes>:
1772 Likewise.
1773 (procfs_do_thread_registers): Adjust to unique pointer.
1774 (struct procfs_corefile_thread_data): Add constructor.
1775 <note_data>: Change type to unique pointer.
1776 (procfs_corefile_thread_callback): Adjust to unique pointer.
1777 (procfs_target::make_corefile_notes): Change return type to
1778 unique pointer.
1779 * target-delegates.c: Re-generate.
1780 * gcore.c (write_gcore_file_1): Adjust.
1781 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1782 New.
1783
5fb4027f
TV
17842020-10-22 Tom de Vries <tdevries@suse.de>
1785
1786 * block.c (find_block_in_blockvector): Make sure the returned block
1787 contains pc.
1788
4a636814
SM
17892020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1790
1791 PR gdb/26693
1792 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1793 parameter.
1794 (load_cu): Pass existing CU.
1795 (process_imported_unit_die): Likewise.
1796 (follow_die_offset): Likewise.
1797
1bd57575
LM
17982020-10-22 Luis Machado <luis.machado@linaro.org>
1799
1800 * corelow.c (core_target::xfer_partial): Also check for an empty
1801 m_core_unavailable_mappings vector.
1802
6b4c676c
AB
18032020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1804
1805 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1806 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1807 * f-exp.y (arglist): Allow for a series of subranges.
1808 (subrange): Add cases for subranges with strides.
1809 * f-lang.c (value_f90_subarray): Catch use of array strides and
1810 throw an error.
1811 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1812
f2d8e4c5
AB
18132020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 * expprint.c (print_subexp_standard): Change enum range_type to
1816 range_flag and rename variables to match.
1817 (dump_subexp_body_standard): Likewise.
1818 * expression.h (enum range_type): Rename to...
1819 (enum range_flag): ...this.
1820 (range_types): Rename to...
1821 (range_flags): ...this.
1822 * f-lang.c (value_f90_subarray): Change enum range_type to
1823 range_flag and rename variables to match.
1824 * parse.c (operator_length_standard): Likewise.
1825 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1826 range_type to range_flag.
1827 * rust-lang.c (rust_evaluate_funcall): Likewise.
1828 (rust_range): Likewise.
1829 (rust_compute_range): Likewise.
1830 (rust_subscript): Likewise.
1831
2f1b18db
AB
18322020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1833
1834 * expprint.c (print_subexp_standard): Update to reflect changes to
1835 enum range_type.
1836 (dump_subexp_body_standard): Likewise.
1837 * expression.h (enum range_type): Convert to a bit field enum, and
1838 make the enum unsigned.
1839 * f-exp.y (subrange): Update to reflect changes to enum
1840 range_type.
1841 * f-lang.c (value_f90_subarray): Likewise.
1842 * parse.c (operator_length_standard): Likewise.
1843 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1844 * rust-lang.c (rust_range): Likewise.
1845 (rust_compute_range): Likewise.
1846 (rust_subscript): Likewise.
1847
a46d1843
SM
18482020-10-21 Simon Marchi <simon.marchi@efficios.com>
1849
1850 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1851 (displaced_step_in_progress): Fix comment.
1852
c21f37a8
SM
18532020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1854
1855 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1856 * gdbarch.c: Re-generate.
1857 * gdbarch.h: Re-generate.
1858 * gcore.c (write_gcore_file_1): Adjust.
1859 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1860 constructor.
1861 <note_data>: Change type to unique pointer.
1862 <abort_iteration>: Change type to bool.
1863 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1864 (fbsd_collect_thread_registers): Return void, adjust.
1865 (struct fbsd_corefile_thread_data): Add construtor.
1866 <note_data>: Change type to unique pointer.
1867 (fbsd_corefile_thread): Adjust.
1868 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1869 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1870 to unique pointer, adjust.
1871 (struct linux_collect_regset_section_cb_data): Add constructor.
1872 <note_data>: Change type to unique pointer.
1873 <abort_iteration>: Change type to bool.
1874 (linux_collect_thread_registers): Return void, adjust.
1875 (struct linux_corefile_thread_data): Add constructor.
1876 <note_data>: Change type to unique pointer.
1877 (linux_corefile_thread): Adjust.
1878 (linux_make_corefile_notes): Return unique pointer, adjust.
1879
07fbbd01
SM
18802020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1881
1882 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1883 * gdbarch.c: Re-generate.
1884 * gdbarch.h: Re-generate.
1885 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1886 bool.
1887 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1888 Likewise.
1889 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1890 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1891 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1892 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1893
39535193
SM
18942020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1895
1896 * gdbarch.sh: Make generated predicates return bool.
1897 * gdbarch.c: Re-generate.
1898 * gdbarch.h: Re-generate.
1899
ad523d01
TT
19002020-10-20 Tom Tromey <tom@tromey.com>
1901
1902 * varobj-iter.h (struct varobj_item): Remove typedef.
1903
c4464ade
SM
19042020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1905
1906 * infrun.c (currently_stepping): Change int to bool
1907 (maybe_software_singlestep): Likewise.
1908 (show_stop_on_solib_events): Likewise.
1909 (stepping_past_nonsteppable_watchpoint): Likewise.
1910 (displaced_step_in_progress_any_inferior): Likewise.
1911 (displaced_step_in_progress_thread): Likewise.
1912 (keep_going_stepped_thread): Likewise.
1913 (thread_still_needs_step_over): Likewise.
1914 (start_step_over): Likewise.
1915 (do_target_resume): Likewise.
1916 (resume_1): Likewise.
1917 (clear_proceed_status): Likewise.
1918 (thread_still_needs_step_over_bp): Likewise.
1919 (proceed): Likewise.
1920 (switch_back_to_stepped_thread): Likewise.
1921 (adjust_pc_after_break): Likewise.
1922 (stepped_in_from): Likewise.
1923 (handle_stop_requested): Likewise.
1924 (handle_syscall_event): Likewise.
1925 (handle_no_resumed): Likewise.
1926 (handle_inferior_event): Likewise.
1927 (finish_step_over): Likewise.
1928 (handle_signal_stop): Likewise.
1929 (process_event_stop_test): Likewise.
1930
2eb20436
SM
19312020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1932
1933 * infrun.c (get_displaced_stepping_state): Fix comment.
1934
e0c45ded
AS
19352020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1936
1937 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1938
22cc388e
TT
19392020-10-19 Tom Tromey <tromey@adacore.com>
1940
1941 PR tui/26719
1942 * tui/tui-winsource.h (struct tui_source_window_base)
1943 <refresh_window>: Rename from refresh_pad.
1944 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1945 Rename from refresh_pad.
1946 (tui_source_window_base::show_source_content)
1947 (tui_source_window_base::do_scroll_horizontal): Update.
1948
3c6eb4d4
TBA
19492020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1950
1951 * thread.c (_initialize_thread): Fine-tune the help text of
1952 'info threads'.
1953
26703721
TBA
19542020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1955
1956 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1957
61c26be8
MS
19582020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1959
1960 * breakpoint.c (handle_jit_event): Add an argument, change how
1961 `jit_event_handler` is called.
1962
932539d7
TT
19632020-10-17 Tom Tromey <tom@tromey.com>
1964
1965 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1966 (scan_xcoff_symtab): Update.
1967 * psymtab.h (class psymtab_storage) <global_psymbols,
1968 static_psymbols, current_global_psymbols,
1969 current_static_psymbols>: Remove.
1970 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1971 (match_partial_symbol, lookup_partial_symbol): Update.
1972 (print_partial_symbols): Change parameters.
1973 (dump_psymtab, recursively_search_psymtabs)
1974 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1975 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1976 (concat): Remove.
1977 (end_psymtab_common): Simplify.
1978 (append_psymbol_to_list): Change parameters.
1979 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1980 (init_psymbol_list): Simplify.
1981 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1982 * psympriv.h (struct partial_symtab) <empty>: New method.
1983 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1984 Remove.
1985 <global_psymbols, static_psymbols>: New members.
1986 <add_psymbol>: New methods.
1987 (add_psymbol_to_list): Don't declare.
1988 (psymbol_placement): Move earlier.
1989 * mdebugread.c (parse_partial_symbols): Update.
1990 (handle_psymbol_enumerators): Change parameters.
1991 (mdebug_expand_psymtab): Update.
1992 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1993 (add_partial_symbol): Update.
1994 * dwarf2/index-write.c (write_psymbols): Change parameters.
1995 (write_one_signatured_type): Update.
1996 (recursively_count_psymbols): Update.
1997 (recursively_write_psymbols): Update.
1998 (class debug_names) <recursively_write_psymbols>: Update.
1999 <write_psymbols>: Change parameters.
2000 <write_one_signatured_type>: Update.
2001 * dbxread.c (read_dbx_symtab): Update.
2002 (dbx_end_psymtab): Use partial_symtab::empty.
2003 * ctfread.c (struct ctf_context) <pst>: New member.
2004 (create_partial_symtab): Set it.
2005 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2006 (scan_partial_symbols): Use the psymtab's context. Update.
2007
cfabbd35
TT
20082020-10-17 Tom Tromey <tom@tromey.com>
2009
2010 * valprint.c (generic_value_print): Remove comment.
2011 * m2-valprint.c (m2_value_print_inner): Remove comment.
2012 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2013 type.
2014
520596f2
TV
20152020-10-17 Tom de Vries <tdevries@suse.de>
2016
2017 PR symtab/26317
2018 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2019 symbol main.
2020
76547ab3
TV
20212020-10-14 Tom de Vries <tdevries@suse.de>
2022
2023 PR gdb/26733
2024 * solib.c (solib_contains_address_p): Handle
2025 'solib->sections == nullptr'.
2026
d3a07122
SM
20272020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2028
2029 PR gdb/26642
2030 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2031 target can't do async.
2032 * target.c (target_wait): Assert that we don't pass
2033 TARGET_WNOHANG to a target that can't async.
2034
1b71cfcf
KR
20352020-10-13 Kamil Rytarowski <n54@gmx.com>
2036
2037 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2038 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2039 * alpha-bsd-nat.c: Adjust include.
2040 * alpha-bsd-tdep.h: Adjust comment.
2041 * alpha-nbsd-tdep.c: Rename to ...
2042 * alpha-netbsd-tdep.c: ... this, adjust include.
2043 * amd64-nbsd-nat.c: Rename to ...
2044 * amd64-netbsd-nat.c: ... this, adjust include.
2045 * amd64-nbsd-tdep.c: Rename to ...
2046 * amd64-netbsd-tdep.c: ... this, adjust include.
2047 * amd64-tdep.h: Adjust include.
2048 * arm-nbsd-nat.c: Rename to ...
2049 * arm-netbsd-nat.c: ... this, adjust include.
2050 * arm-nbsd-tdep.c: Rename to ...
2051 * arm-netbsd-tdep.c: ... this, adjust include.
2052 * arm-nbsd-tdep.h: Rename to ...
2053 * arm-netbsd-tdep.h: ... this, adjust include.
2054 * configure.nat: Adjust file lists.
2055 * configure.tgt: Likewise.
2056 * hppa-nbsd-nat.c: Rename to ...
2057 * hppa-netbsd-nat.c: ... this, adjust include.
2058 * hppa-nbsd-tdep.c: Rename to ...
2059 * hppa-netbsd-tdep.c: ... this, adjust include.
2060 * i386-nbsd-nat.c: Rename to ...
2061 * i386-netbsd-nat.c: ... this, adjust include.
2062 * i386-nbsd-tdep.c: Rename to ...
2063 * i386-netbsd-tdep.c: ... this, adjust include.
2064 * m68k-bsd-nat.c: Adjust include.
2065 * mips-nbsd-nat.c: Rename to ...
2066 * mips-netbsd-nat.c: ... this, adjust include.
2067 * mips-nbsd-tdep.c: Rename to ...
2068 * mips-netbsd-tdep.c: ... this, adjust include.
2069 * mips-nbsd-tdep.h: Rename to ...
2070 * mips-netbsd-tdep.h: ... this.
2071 * nbsd-nat.c: Rename to ...
2072 * netbsd-nat.c: ... this, adjust include.
2073 * nbsd-nat.h: Rename to ...
2074 * netbsd-nat.h: ... this, adjust include.
2075 * nbsd-tdep.c: Rename to ...
2076 * netbsd-tdep.c: ... this, adjust include.
2077 * nbsd-tdep.h: Rename to ...
2078 * netbsd-tdep.h: ... this.
2079 * ppc-nbsd-nat.c: Rename to ...
2080 * ppc-netbsd-nat.c: ... this, adjust include.
2081 * ppc-nbsd-tdep.c: Rename to ...
2082 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2083 * ppc-nbsd-tdep.h: Rename to ...
2084 * ppc-netbsd-tdep.h: ... this.
2085 * sh-nbsd-nat.c: Rename to ...
2086 * sh-netbsd-nat.c: ... this, adjust include.
2087 * sh-nbsd-tdep.c: Rename to ...
2088 * sh-netbsd-tdep.c: ... this, adjust include.
2089 * sparc-nbsd-nat.c: Rename to ...
2090 * sparc-netbsd-nat.c: ... this.
2091 * sparc-nbsd-tdep.c: Rename to ...
2092 * sparc-netbsd-tdep.c: ... this, adjust include.
2093 * sparc64-nbsd-nat.c: Rename to ...
2094 * sparc64-netbsd-nat.c: ... this.
2095 * sparc64-nbsd-tdep.c: Rename to ...
2096 * sparc64-netbsd-tdep.c: ... this, adjust include.
2097 * sparc64-tdep.h: Adjust comment.
2098 * vax-bsd-nat.c: Adjust include.
2099 * vax-nbsd-tdep.c: Rename to ...
2100 * vax-netbsd-tdep.c: ... this, adjust include.
2101
d7a78e5c
TT
21022020-10-12 Tom Tromey <tom@tromey.com>
2103
2104 * target.h (struct target_ops) <get_section_table>: Update.
2105 (target_get_section_table): Update.
2106 * target.c (target_get_section_table, target_section_by_addr)
2107 (memory_xfer_partial_1): Update.
2108 * target-section.h (target_section_table): Now an alias.
2109 * target-delegates.c: Rebuild.
2110 * target-debug.h (target_debug_print_target_section_table_p):
2111 Rename from target_debug_print_struct_target_section_table_p.
2112 * symfile.c (build_section_addr_info_from_section_table): Update.
2113 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2114 * solib-svr4.c (scan_dyntag): Update.
2115 * solib-dsbt.c (scan_dyntag): Update.
2116 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2117 Update.
2118 * record-full.c (record_full_core_target::xfer_partial): Update.
2119 * progspace.h (struct program_space) <target_sections>: Update.
2120 * exec.h (print_section_info): Update.
2121 * exec.c (exec_target::close, build_section_table)
2122 (add_target_sections, add_target_sections_of_objfile)
2123 (remove_target_sections, exec_on_vfork)
2124 (section_table_available_memory)
2125 (section_table_xfer_memory_partial)
2126 (exec_target::get_section_table, exec_target::xfer_partial)
2127 (print_section_info, set_section_command)
2128 (exec_set_section_address, exec_target::has_memory): Update.
2129 * corelow.c (core_target::build_file_mappings)
2130 (core_target::xfer_partial, core_target::info_proc_mappings)
2131 (core_target::info_proc_mappings): Update.
2132 * bfd-target.c (class target_bfd): Update
2133
eda214ce
TT
21342020-10-12 Tom Tromey <tom@tromey.com>
2135
2136 * progspace.c (program_space::~program_space): Don't call
2137 clear_section_table.
2138 * exec.h (clear_section_table): Don't declare.
2139 * exec.c (exec_target::close): Update.
2140 (clear_section_table): Remove.
2141
91840ee3
TT
21422020-10-12 Tom Tromey <tom@tromey.com>
2143
2144 * exec.c (add_target_sections_of_objfile): Simplify.
2145
2d128614
TT
21462020-10-12 Tom Tromey <tom@tromey.com>
2147
2148 * solib.c (solib_map_sections): Update.
2149 * record-full.c (record_full_core_open_1): Update.
2150 * exec.h (build_section_table): Return a target_section_table.
2151 * exec.c (exec_file_attach): Update.
2152 (build_section_table): Return a target_section_table.
2153 * corelow.c (core_target::core_target): Update.
2154 * bfd-target.c (target_bfd::target_bfd): Update.
2155
bb2a6777
TT
21562020-10-12 Tom Tromey <tom@tromey.com>
2157
2158 * target.c (target_section_by_addr, memory_xfer_partial_1):
2159 Update.
2160 * target-section.h (struct target_section_table): Use
2161 std::vector.
2162 * symfile.h (build_section_addr_info_from_section_table): Take a
2163 target_section_table.
2164 * symfile.c (build_section_addr_info_from_section_table): Take a
2165 target_section_table.
2166 * solist.h (struct so_list) <sections>: Change type.
2167 <sections_end>: Remove.
2168 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2169 (solib_contains_address_p): Update.
2170 * solib-svr4.c (scan_dyntag): Update.
2171 * solib-dsbt.c (scan_dyntag): Update.
2172 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2173 Update.
2174 * record-full.c (record_full_core_start, record_full_core_end):
2175 Remove.
2176 (record_full_core_sections): New global.
2177 (record_full_core_open_1, record_full_core_target::xfer_partial):
2178 Update.
2179 * exec.h (build_section_table, section_table_xfer_memory_partial)
2180 (add_target_sections): Take a target_section_table.
2181 * exec.c (exec_file_attach, clear_section_table): Update.
2182 (resize_section_table): Remove.
2183 (build_section_table, add_target_sections): Take a
2184 target_section_table.
2185 (add_target_sections_of_objfile, remove_target_sections)
2186 (exec_on_vfork): Update.
2187 (section_table_available_memory): Take a target_section_table.
2188 (section_table_read_available_memory): Update.
2189 (section_table_xfer_memory_partial): Take a target_section_table.
2190 (print_section_info, set_section_command)
2191 (exec_set_section_address, exec_target::has_memory): Update.
2192 * corelow.c (class core_target) <m_core_section_table,
2193 m_core_file_mappings>: Remove braces.
2194 <~core_target>: Remove.
2195 (core_target::core_target): Update.
2196 (core_target::~core_target): Remove.
2197 (core_target::build_file_mappings)
2198 (core_target::xfer_memory_via_mappings)
2199 (core_target::xfer_partial, core_target::info_proc_mappings):
2200 Update.
2201 * bfd-target.c (target_bfd::xfer_partial): Update.
2202 (target_bfd::target_bfd): Update.
2203 (target_bfd::~target_bfd): Remove.
2204
7b466b10
TT
22052020-10-12 Tom Tromey <tom@tromey.com>
2206
2207 * target.h (struct target_section, struct target_section_table):
2208 Move to target-section.h.
2209 * target-section.h: New file.
2210
87a37e5e
PA
22112020-10-12 Pedro Alves <pedro@palves.net>
2212
2213 PR exp/26602
2214 * valops.c (struct struct_field_searcher): New.
2215 (update_search_result): Rename to ...
2216 (struct_field_searcher::update_result): ... this. Simplify
2217 prototype. Record all found fields.
2218 (do_search_struct_field): Rename to ...
2219 (struct_field_searcher::search): ... this. Simplify prototype.
2220 Maintain stack of visited baseclass path. Call update_result for
2221 fields too. Keep searching fields in baseclasses instead of
2222 stopping at the first found field.
2223 (search_struct_field): Use struct_field_searcher. When looking
2224 for fields, report ambiguous access attempts.
2225
9370fd51
AB
22262020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 * frame.c (inside_main_func): Check full symbols as well as
2229 minimal symbols.
2230
59c8a30b
JB
22312020-10-09 Joel Brobecker <brobecker@adacore.com>
2232
2233 * ada-lang.c (advance_wild_match): Rewrite the function's
2234 description. Change the type of target0, t0 and t1 to char.
2235
7c184d33
TT
22362020-10-09 Tom Tromey <tromey@adacore.com>
2237
2238 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2239
5c4258f4
TT
22402020-10-09 Tom Tromey <tromey@adacore.com>
2241
2242 * ada-lang.h (ada_encode): Return std::string.
2243 * ada-lang.c (ada_encode_1): Return std::string.
2244 (ada_encode): Likewise.
2245 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2246 Update.
2247 * ada-exp.y (block_lookup, write_var_or_type): Update.
2248
3d87245c
HD
22492020-10-09 Hannes Domani <ssbssa@yahoo.de>
2250
2251 PR exp/26714
2252 * printcmd.c (print_formatted): Handle void results as
2253 unformatted prints.
2254
bbb826f5
AB
22552020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * arch/aarch32.c (aarch32_create_target_description): Release the
2258 target_desc_up as late as possible.
2259 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2260 * arch/amd64.c (amd64_create_target_description): Likewise.
2261 * arch/arc.c (arc_create_target_description): Return a
2262 target_desc_up, don't release it.
2263 * arch/arc.h (arc_create_target_description): Update declaration.
2264 (arc_lookup_target_description): Move target_desc_up into the
2265 cache, and return a borrowed pointer.
2266 * arch/arm.c (arm_create_target_description): Release the
2267 target_desc_up as late as possible.
2268 * arch/i386.c (i386_create_target_description): Likewise.
2269 * arch/riscv.h (riscv_create_target_description): Update
2270 declaration to match definition.
2271 * arch/tic6x.c (tic6x_create_target_description): Release the
2272 target_desc_up as late as possible.
2273
361cb219
AB
22742020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2275
2276 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2277 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2278
f5c4b229
JV
22792020-10-09 Jan Vrany <jan.vrany@labware.com>
2280
2281 * source.c (directory_command): Notify observers that "directories"
2282 parameter has changed.
2283
b2701685
TT
22842020-10-08 Tom Tromey <tom@tromey.com>
2285
2286 * cli/cli-cmds.c (print_disassembly): Style function name and
2287 addresses. Add _() wrappers.
2288
ada508b6
SV
22892020-10-08 Shahab Vahedi <shahab@synopsys.com>
2290
2291 * NEWS: Mention ARC support in GDBserver.
2292
51a948fd
AB
22932020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2294
2295 * arch/aarch32.c (aarch32_create_target_description): Release
2296 unique_ptr returned from allocate_target_description.
2297 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2298 * arch/amd64.c (amd64_create_target_description): Likewise.
2299 * arch/arc.c (arc_create_target_description): Likewise.
2300 * arch/arm.c (arm_create_target_description): Likewise.
2301 * arch/i386.c (i386_create_target_description): Likewise.
2302 * arch/riscv.c (riscv_create_target_description): Update return
2303 type. Handle allocate_target_description returning a unique_ptr.
2304 (riscv_lookup_target_description): Update to handle unique_ptr.
2305 * arch/tic6x.c (tic6x_create_target_description): Release
2306 unique_ptr returned from allocate_target_description.
2307 * features/microblaze-with-stack-protect.c: Regenerate.
2308 * features/microblaze.c: Regenerate.
2309 * features/mips-dsp-linux.c: Regenerate.
2310 * features/mips-linux.c: Regenerate.
2311 * features/mips64-dsp-linux.c: Regenerate.
2312 * features/mips64-linux.c: Regenerate.
2313 * features/nds32.c: Regenerate.
2314 * features/nios2.c: Regenerate.
2315 * features/or1k.c: Regenerate.
2316 * features/rs6000/powerpc-32.c: Regenerate.
2317 * features/rs6000/powerpc-32l.c: Regenerate.
2318 * features/rs6000/powerpc-403.c: Regenerate.
2319 * features/rs6000/powerpc-403gc.c: Regenerate.
2320 * features/rs6000/powerpc-405.c: Regenerate.
2321 * features/rs6000/powerpc-505.c: Regenerate.
2322 * features/rs6000/powerpc-601.c: Regenerate.
2323 * features/rs6000/powerpc-602.c: Regenerate.
2324 * features/rs6000/powerpc-603.c: Regenerate.
2325 * features/rs6000/powerpc-604.c: Regenerate.
2326 * features/rs6000/powerpc-64.c: Regenerate.
2327 * features/rs6000/powerpc-64l.c: Regenerate.
2328 * features/rs6000/powerpc-7400.c: Regenerate.
2329 * features/rs6000/powerpc-750.c: Regenerate.
2330 * features/rs6000/powerpc-860.c: Regenerate.
2331 * features/rs6000/powerpc-altivec32.c: Regenerate.
2332 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2333 * features/rs6000/powerpc-altivec64.c: Regenerate.
2334 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2335 * features/rs6000/powerpc-e500.c: Regenerate.
2336 * features/rs6000/powerpc-e500l.c: Regenerate.
2337 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2338 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2339 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2340 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2341 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2342 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2343 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2344 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2345 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2346 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2347 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2348 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2349 * features/rs6000/powerpc-vsx32.c: Regenerate.
2350 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2351 * features/rs6000/powerpc-vsx64.c: Regenerate.
2352 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2353 * features/rs6000/rs6000.c: Regenerate.
2354 * features/rx.c: Regenerate.
2355 * features/s390-gs-linux64.c: Regenerate.
2356 * features/s390-linux32.c: Regenerate.
2357 * features/s390-linux32v1.c: Regenerate.
2358 * features/s390-linux32v2.c: Regenerate.
2359 * features/s390-linux64.c: Regenerate.
2360 * features/s390-linux64v1.c: Regenerate.
2361 * features/s390-linux64v2.c: Regenerate.
2362 * features/s390-te-linux64.c: Regenerate.
2363 * features/s390-tevx-linux64.c: Regenerate.
2364 * features/s390-vx-linux64.c: Regenerate.
2365 * features/s390x-gs-linux64.c: Regenerate.
2366 * features/s390x-linux64.c: Regenerate.
2367 * features/s390x-linux64v1.c: Regenerate.
2368 * features/s390x-linux64v2.c: Regenerate.
2369 * features/s390x-te-linux64.c: Regenerate.
2370 * features/s390x-tevx-linux64.c: Regenerate.
2371 * features/s390x-vx-linux64.c: Regenerate.
2372 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2373 from allocate_target_description.
2374 * target-descriptions.c (allocate_target_description): Update
2375 return type.
2376 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2377 allocate_target_description.
2378
485c47e5
TT
23792020-10-07 Tom Tromey <tromey@adacore.com>
2380
2381 * unittests/search-memory-selftests.c: New file.
2382 * Makefile.in (SELFTESTS_SRCS): Add
2383 unittests/search-memory-selftests.c.
2384
3a135a91
TT
23852020-10-07 Tom Tromey <tromey@adacore.com>
2386
2387 PR gdb/16930:
2388 * findcmd.c (_initialize_mem_search): Mention that the range is
2389 inclusive.
2390
4a72de73
TT
23912020-10-07 Tom Tromey <tromey@adacore.com>
2392
2393 * target.h (simple_search_memory): Don't declare.
2394 * target.c (simple_search_memory): Move to gdbsupport.
2395 (default_search_memory): Update.
2396 * remote.c (remote_target::search_memory): Update.
2397
a038ffd8
SM
23982020-10-07 Simon Marchi <simon.marchi@efficios.com>
2399
2400 * Makefile.in (COMPILE): Add CXXFLAGS.
2401 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2402 (check-headers): Add CXXFLAGS.
2403
cc463201
AK
24042020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2405
2406 * arc-linux-tdep.h: New file.
2407 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2408 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2409 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2410 arc_linux_gregset, arc_linux_v2_regset,
2411 arc_linux_iterate_over_regset_sections,
2412 arc_linux_core_read_description): Implement.
2413 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2414 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2415 (arc_gdbarch_features_create): Add.
2416 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2417
e4bd363f
SV
24182020-10-07 Shahab Vahedi <shahab@synopsys.com>
2419
2420 * arch/arc.h: Rename "arc_gdbarch_features" to
2421 "arc_arch_features".
2422 * arc-tdep.h: Likewise.
2423 * arc-tdep.c: Likewise.
2424
b68bef99
TBA
24252020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2426
2427 * infcmd.c (attach_command): Remove the redundant call to
2428 `clear_proceed_status`.
2429
4641551a
KR
24302020-10-07 Kamil Rytarowski <n54@gmx.com>
2431
2432 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2433
91e5e8db
KR
24342020-10-07 Kamil Rytarowski <n54@gmx.com>
2435
2436 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2437 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2438 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2439
64c03bdb
SM
24402020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2441
2442 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2443 (_initialize_break_catch_sig): Don't allocate array.
2444
31a8f60f
AB
24452020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2446
2447 * symtab.c (find_pc_line): Return unmapped addresses when the
2448 requested address is also unmapped.
2449
9e6dbd8b
SM
24502020-10-05 Simon Marchi <simon.marchi@efficios.com>
2451
2452 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2453 tui/tui-out.h.
2454
a1d217e8
SM
24552020-10-05 Simon Marchi <simon.marchi@efficios.com>
2456
2457 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2458 type::is_vector instead of TYPE_VECTOR.
2459
7d144117
SM
24602020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2461
2462 * auto-load.c (auto_load_objfile_script_1): Don't use
2463 debugfile_holder as temporary variable when stripping drive
2464 letter.
2465
cd096ec8
HD
24662020-10-05 Hannes Domani <ssbssa@yahoo.de>
2467
2468 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2469 Add TYPE_CODE_COMPLEX.
2470 (amd64_windows_return_value): Fix types returned via XMM0.
2471
b58e7f72
AH
24722020-10-05 Alan Hayward <alan.hayward@arm.com>
2473
2474 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2475 AArch64/ARM maintainers.
2476
8d378f27
SM
24772020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2478
2479 * NEWS: Mention set/show debug event-loop.
2480
d5519913
TT
24812020-10-02 Tom Tromey <tromey@adacore.com>
2482
2483 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2484 REG_EXTENDED.
2485
18b67edc
SM
24862020-10-02 Simon Marchi <simon.marchi@efficios.com>
2487
2488 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2489 * procfs.c (procfs_inferior_created): Remove.
2490 (_initialize_procfs): Don't register procfs_inferior_created.
2491
6b01403b
SM
24922020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2493
2494 * async-event.c (invoke_async_signal_handlers): Add debug
2495 print.
2496 (check_async_event_handlers): Likewise.
2497 * event-top.c (show_debug_event_loop): New function.
2498 (_initialize_event_top): Register "set debug event-loop"
2499 setting.
2500
ba988419
SM
25012020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2502
2503 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2504 * debug.h: Remove.
2505 * infrun.c: Include gdbsupport/common-debug.h.
2506 * linux-nat.c: Likewise.
2507
db20ebdf
SM
25082020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2509
2510 * async-event.h (create_async_signal_handler): Add name
2511 parameter.
2512 (create_async_event_handler): Likewise.
2513 * async-event.c (struct async_signal_handler) <name>: New field.
2514 (struct async_event_handler) <name>: New field.
2515 (create_async_signal_handler): Assign name.
2516 (create_async_event_handler): Assign name.
2517 * event-top.c (async_init_signals): Pass name when creating
2518 handler.
2519 * infrun.c (_initialize_infrun): Likewise.
2520 * record-btrace.c (record_btrace_push_target): Likewise.
2521 * record-full.c (record_full_open): Likewise.
2522 * remote-notif.c (remote_notif_state_allocate): Likewise.
2523 * remote.c (remote_target::open_1): Likewise.
2524 * tui/tui-win.c (tui_initialize_win): Likewise.
2525
2554f6f5
SM
25262020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2527
2528 * async-event.c (initialize_async_signal_handlers): Pass name to
2529 add_file_handler
2530 * event-top.c (ui_register_input_event_handler): Likewise.
2531 * linux-nat.c (linux_nat_target::async): Likewise.
2532 * run-on-main-thread.c (_initialize_run_on_main_thread):
2533 Likewise
2534 * ser-base.c (reschedule): Likewise.
2535 (ser_base_async): Likewise.
2536 * tui/tui-io.c: Likewise.
2537 * top.h (struct ui) <num>: New field.
2538 * top.c (highest_ui_num): New variable.
2539 (ui::ui): Initialize num.
2540
a7aba266
SM
25412020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2542
2543 * observable.h <inferior_created>: Remove parameters. Update all
2544 listeners.
2545 * inferior.h (post_create_inferior): Remove target parameter.
2546 Update all callers.
2547
048fde1e 25482020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2549
2550 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2551 and DW_MACRO_undef_strx.
2552 (dwarf_decode_macros): Likewise
2553 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2554 which is the value of DW_AT_str_offsets_base.
2555 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2556 str_offsets_base.
2557
064280be
KR
25582020-10-01 Kamil Rytarowski <n54@gmx.com>
2559
2560 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2561
6ff33035
KR
25622020-10-01 Kamil Rytarowski <n54@gmx.com>
2563
2564 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2565 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2566
1eb6eb79
KR
25672020-10-01 Kamil Rytarowski <n54@gmx.com>
2568
2569 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2570
95eb9e54
TV
25712020-09-30 Tom de Vries <tdevries@suse.de>
2572
2573 PR symtab/26683
2574 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2575
cae21f8e
TT
25762020-09-30 Tom Tromey <tromey@adacore.com>
2577
2578 * dwarf2/read.c (handle_variant): Use constant_value.
2579
529908cb
TT
25802020-09-29 Tom Tromey <tom@tromey.com>
2581
2582 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2583 (read_file_scope, dwarf2_get_pc_bounds)
2584 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2585 (read_structure_type, handle_struct_member_die)
2586 (read_enumeration_type, read_array_type, read_set_type)
2587 (read_tag_pointer_type, read_tag_reference_type)
2588 (read_subroutine_type, read_base_type, read_subrange_type)
2589 (read_full_die_1, partial_die_info::read)
2590 (partial_die_info::read, by, new_symbol)
2591 (dwarf2_const_value_data, dwarf2_const_value_attr)
2592 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2593 (prepare_one_comp_unit): Update.
2594 * dwarf2/attribute.h (DW_UNSND): Remove.
2595
c45bc3f8
TT
25962020-09-29 Tom Tromey <tom@tromey.com>
2597
2598 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2599 (read_subroutine_type, partial_die_info::read)
2600 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2601 (dwarf2_add_member_fn): Update.
2602 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2603 * dwarf2/attribute.c (attribute::as_boolean): New method.
2604
23dca5c3
TT
26052020-09-29 Tom Tromey <tom@tromey.com>
2606
2607 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2608 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2609 method.
2610 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2611
52c14d11
TT
26122020-09-29 Tom Tromey <tom@tromey.com>
2613
2614 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2615 the attribute's form.
2616
e8e5c158
TT
26172020-09-29 Tom Tromey <tom@tromey.com>
2618
2619 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2620 (dwarf2_add_member_fn): Update.
2621 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2622 * dwarf2/attribute.c (attribute::defaulted): New method, from
2623 is_valid_DW_AT_defaulted.
2624
d4df075e
TT
26252020-09-29 Tom Tromey <tom@tromey.com>
2626
2627 * dwarf2/read.c (dw2_get_file_names_reader)
2628 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2629 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2630 (dwarf2_symbol_mark_computed): Use as_unsigned.
2631 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2632 method.
2633 <form_is_section_offset>: Update comment.
2634
bf23a268
TT
26352020-09-29 Tom Tromey <tom@tromey.com>
2636
2637 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2638 dwarf2_default_access_attribute. Look up attribute.
2639 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2640 Update.
2641
7a5f294d
TT
26422020-09-29 Tom Tromey <tom@tromey.com>
2643
2644 * dwarf2/read.c (skip_one_die): Update.
2645 (read_full_die_1): Change how reprocessing is done.
2646 (partial_die_info::read): Update.
2647 (read_attribute_value): Remove need_reprocess parameter.
2648 (read_attribute): Likewise.
2649 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2650 New method.
2651
36d378cf
TT
26522020-09-29 Tom Tromey <tom@tromey.com>
2653
2654 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2655 (dwarf2_const_value_attr, dump_die_shallow)
2656 (dwarf2_fetch_constant_bytes): Update.
2657 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2658 comment.
2659 <set_address>: New method.
2660 (DW_ADDR): Remove.
2661 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2662 (attribute::as_string, attribute::as_address): Add assert.
2663
fe56917a
TT
26642020-09-29 Tom Tromey <tom@tromey.com>
2665
2666 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2667 (read_attribute_reprocess, read_attribute_value): Update.
2668 (read_attribute): Clear requires_reprocessing.
2669 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2670 form_requires_reprocessing>: New methods.
2671 <string_init>: Clear requires_reprocessing.
2672 <set_unsigned_reprocess>: New method.
2673 <name>: Shrink by one bit.
2674 <requires_reprocessing>: New member.
2675 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2676 method.
2677
414ad644
TT
26782020-09-29 Tom Tromey <tom@tromey.com>
2679
2680 * dwarf2/read.c (read_attribute_value): Update.
2681 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2682 set_unsigned>: New methods.
2683 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2684
1bc397c5
TT
26852020-09-29 Tom Tromey <tom@tromey.com>
2686
2687 * dwarf2/read.c (get_alignment, read_array_order)
2688 (read_attribute_value, dwarf2_const_value_attr)
2689 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2690 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2691 New methods.
2692 (DW_SND): Remove.
2693
630ed6b9
TT
26942020-09-29 Tom Tromey <tom@tromey.com>
2695
2696 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2697 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2698 Update.
2699 * dwarf2/attribute.h (struct attribute) <as_signature,
2700 set_signature>: New methods.
2701 (DW_SIGNATURE): Remove.
2702
9d2246fc
TT
27032020-09-29 Tom Tromey <tom@tromey.com>
2704
2705 * dwarf2/read.c (read_call_site_scope)
2706 (handle_data_member_location, dwarf2_add_member_fn)
2707 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2708 (partial_die_info::read, read_attribute_value)
2709 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2710 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2711 (dwarf2_symbol_mark_computed): Update.
2712 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2713 methods.
2714 (DW_BLOCK): Remove.
2715 * dwarf2/attribute.c (attribute::form_is_block): Add
2716 DW_FORM_data16.
2717
c6481205
TT
27182020-09-29 Tom Tromey <tom@tromey.com>
2719
2720 * dwarf2/read.c (read_cutu_die_from_dwo)
2721 (read_attribute_reprocess, read_attribute_value, read_attribute)
2722 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2723 (dwarf2_fetch_constant_bytes): Update.
2724 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2725 <set_string_noncanonical, set_string_canonical>: New methods.
2726 <string_is_canonical>: Update comment.
2727 <canonical_string_p>: Add assert.
2728 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2729 * dwarf2/attribute.c (attribute::form_is_string): New method.
2730 (attribute::string): Use it.
2731
3b64bf15
TT
27322020-09-29 Tom Tromey <tom@tromey.com>
2733
2734 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2735 (dump_die_shallow): Use canonical_string_p.
2736 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2737 method.
2738
2c830f54
TT
27392020-09-29 Tom Tromey <tom@tromey.com>
2740
2741 * dwarf2/read.c (partial_die_info::read)
2742 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2743 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2744 attribute::as_string.
2745
6c412691
TT
27462020-09-29 Tom Tromey <tom@tromey.com>
2747
2748 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2749 DW_ADDR.
2750 (attribute::string): Don't use DW_STRING.
2751 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2752 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2753
95f982e5
TT
27542020-09-29 Tom Tromey <tom@tromey.com>
2755
2756 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2757 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2758 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2759 * dwarf2/attribute.h (struct attribute): Rename methods.
2760 * dwarf2/attribute.c (attribute::as_address): Rename from
2761 value_as_address.
2762 (attribute::as_string): Rename from value_as_string.
2763
f800b00e
TT
27642020-09-29 Tom Tromey <tom@tromey.com>
2765
2766 * dwarf2/read.c (partial_die_info::read) <case
2767 DW_AT_linkage_name>: Use value_as_string.
2768 (dwarf2_string_attr): Use value_as_string.
2769 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2770 method.
2771 * dwarf2/attribute.c (attribute::value_as_string): New method.
2772
de38d64a
PA
27732020-09-29 Pedro Alves <pedro@palves.net>
2774
2775 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2776 defined before using '#pragma GCC diagnostic' instead of checking
2777 __clang__.
2778
9aed480c
TT
27792020-09-28 Tom Tromey <tom@tromey.com>
2780
2781 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2782 (handle_signal_stop): Update.
2783 * procfs.c (procfs_target::insert_watchpoint): Update.
2784 * target.h (target_have_steppable_watchpoint): Now a function.
2785
8a3ecb79
TT
27862020-09-28 Tom Tromey <tom@tromey.com>
2787
2788 * infrun.c (set_schedlock_func): Update.
2789 * target.h (target_can_lock_scheduler): Now a function.
2790
55f6301a
TT
27912020-09-28 Tom Tromey <tom@tromey.com>
2792
2793 * inferior.h (class inferior) <has_execution>: Update.
2794 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2795 * valops.c (find_function_in_inferior)
2796 (value_allocate_space_in_inferior): Update.
2797 * top.c (kill_or_detach): Update.
2798 * target.c (target_preopen, set_target_permissions): Update.
2799 (target_has_execution_current): Remove.
2800 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2801 Update.
2802 * solib.c (update_solib_list, reload_shared_libraries): Update.
2803 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2804 * solib-dsbt.c (enable_break): Update.
2805 * score-tdep.c (score7_fetch_inst): Update.
2806 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2807 Update.
2808 * remote.c (remote_target::start_remote)
2809 (remote_target::remote_check_symbols, remote_target::open_1)
2810 (remote_target::remote_detach_1, remote_target::verify_memory)
2811 (remote_target::xfer_partial, remote_target::read_description)
2812 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2813 * record-full.c (record_full_open_1): Update.
2814 * record-btrace.c (record_btrace_target_open): Update.
2815 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2816 (value_nsstring): Update.
2817 * linux-thread-db.c (add_thread_db_info)
2818 (thread_db_find_new_threads_silently, check_thread_db_callback)
2819 (try_thread_db_load_1, record_thread): Update.
2820 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2821 Update.
2822 * linux-fork.c (checkpoint_command): Update.
2823 * infrun.c (set_non_stop, set_observer_mode)
2824 (check_multi_target_resumption, for_each_just_stopped_thread)
2825 (maybe_remove_breakpoints, normal_stop)
2826 (class infcall_suspend_state): Update.
2827 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2828 (info_program_command, attach_command): Update.
2829 * infcall.c (call_function_by_hand_dummy): Update.
2830 * inf-loop.c (inferior_event_handler): Update.
2831 * gcore.c (gcore_command, derive_heap_segment): Update.
2832 * exec.c (exec_file_command): Update.
2833 * eval.c (evaluate_subexp): Update.
2834 * compile/compile.c (compile_to_object): Update.
2835 * cli/cli-dump.c (restore_command): Update.
2836 * breakpoint.c (update_watchpoint)
2837 (update_inserted_breakpoint_locations)
2838 (insert_breakpoint_locations, get_bpstat_thread): Update.
2839 * target.h (target_has_execution): Remove macro.
2840 (target_has_execution_current): Don't declare.
2841 (target_has_execution): Rename from target_has_execution_1. Add
2842 argument default.
2843
05374cfd
TT
28442020-09-28 Tom Tromey <tom@tromey.com>
2845
2846 * mi/mi-main.c (exec_reverse_continue)
2847 (mi_cmd_list_target_features): Update.
2848 * infrun.c (set_exec_direction_func): Update.
2849 * target.c (default_execution_direction): Update.
2850 * reverse.c (exec_reverse_once): Update.
2851 * target.h (target_can_execute_reverse): Now a function.
2852
9dccd06e
TT
28532020-09-28 Tom Tromey <tom@tromey.com>
2854
2855 * tui/tui-regs.c (tui_get_register)
2856 (tui_data_window::show_registers): Update.
2857 * thread.c (scoped_restore_current_thread::restore)
2858 (scoped_restore_current_thread::scoped_restore_current_thread):
2859 Update.
2860 * regcache-dump.c (regcache_print): Update.
2861 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2862 Update.
2863 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2864 * mep-tdep.c (current_me_module, current_options): Update.
2865 * linux-thread-db.c (thread_db_load): Update.
2866 * infcmd.c (registers_info, info_vector_command)
2867 (info_float_command): Update.
2868 * ia64-tdep.c (ia64_frame_prev_register)
2869 (ia64_sigtramp_frame_prev_register): Update.
2870 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2871 * gcore.c (derive_stack_segment): Update.
2872 * frame.c (get_current_frame, has_stack_frames): Update.
2873 * findvar.c (language_defn::read_var_value): Update.
2874 * arm-tdep.c (arm_pc_is_thumb): Update.
2875 * target.c (target_has_registers): Rename from
2876 target_has_registers_1.
2877 * target.h (target_has_registers): Remove macro.
2878 (target_has_registers): Rename from target_has_registers_1.
2879
841de120
TT
28802020-09-28 Tom Tromey <tom@tromey.com>
2881
2882 * windows-tdep.c (tlb_make_value): Update.
2883 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2884 * thread.c (scoped_restore_current_thread::restore)
2885 (scoped_restore_current_thread::scoped_restore_current_thread)
2886 (thread_command): Update.
2887 * stack.c (backtrace_command_1, frame_apply_level_command)
2888 (frame_apply_all_command, frame_apply_command): Update.
2889 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2890 Update.
2891 * gcore.c (derive_stack_segment): Update.
2892 * frame.c (get_current_frame, has_stack_frames): Update.
2893 * auxv.c (info_auxv_command): Update.
2894 * ada-tasks.c (ada_build_task_list): Update.
2895 * target.c (target_has_stack): Rename from target_has_stack_1.
2896 * target.h (target_has_stack): Remove macro.
2897 (target_has_stack): Rename from target_has_stack_1.
2898
a739972c
TT
28992020-09-28 Tom Tromey <tom@tromey.com>
2900
2901 * target.c (target_has_memory): Rename from target_has_memory_1.
2902 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2903 * thread.c (scoped_restore_current_thread::restore)
2904 (scoped_restore_current_thread::scoped_restore_current_thread):
2905 Update.
2906 * frame.c (get_current_frame, has_stack_frames): Update.
2907 * target.h (target_has_memory): Remove macro.
2908 (target_has_memory): Rename from target_has_memory_1.
2909
5b8a4776
TT
29102020-09-28 Tom Tromey <tom@tromey.com>
2911
2912 * target.c (target_has_all_memory_1): Remove.
2913 * target.h (target_has_all_memory): Remove define.
2914 (target_has_all_memory_1): Don't declare.
2915
bd356ec6
SM
29162020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2917
2918 * ser-base.c: Adjust comments formatting.
2919
2c72d5e5
TT
29202020-09-27 Tom Tromey <tom@tromey.com>
2921
2922 PR tui/25342:
2923 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2924
35a98237
TT
29252020-09-27 Tom Tromey <tom@tromey.com>
2926
2927 PR tui/25342:
2928 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2929
9e820dec
TT
29302020-09-27 Tom Tromey <tom@tromey.com>
2931
2932 * unittests/tui-selftests.c: Update.
2933 * tui/tui-winsource.h (struct tui_source_window_base)
2934 <extra_margin, show_line_number, refresh_pad>: New methods.
2935 <m_max_length, m_pad>: New members.
2936 (tui_copy_source_line): Update.
2937 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2938 first_col, line_width, ndigits parameters. Add length.
2939 (tui_source_window_base::show_source_line): Write to pad. Line
2940 number now 0-based.
2941 (tui_source_window_base::refresh_pad): New method.
2942 (tui_source_window_base::show_source_content): Write to pad. Call
2943 refresh_pad.
2944 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2945 not refill.
2946 (tui_source_window_base::update_exec_info): Call
2947 show_line_number.
2948 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2949 method.
2950 <m_digits>: New member.
2951 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2952 and m_max_length.
2953 (tui_source_window::show_line_number): New method.
2954 * tui/tui-io.h (tui_puts): Fix comment.
2955 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2956 m_max_length.
2957
c15c15c8
TT
29582020-09-27 Tom Tromey <tom@tromey.com>
2959
2960 * tui/tui-winsource.c
2961 (tui_source_window_base::set_is_exec_point_at): Don't call
2962 show_source_line.
2963
149830c1
TT
29642020-09-27 Tom Tromey <tom@tromey.com>
2965
2966 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2967 method.
2968 <erase>: Update.
2969 <cursor_x, cursor_y>: Remove.
2970 <m_inner_window>: New member.
2971 (tui_py_window::rerender): Create inner window.
2972 (tui_py_window::output): Write to inner window.
2973
8f9929bb
GR
29742020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2975
2976 PR python/26586
2977 * cli/cli-script.c (execute_control_commands): don't set
2978 instream to nullptr here as this breaks the from_tty argument
2979 to gdb.execute in Python.
2980 (execute_user_command): set instream to nullptr here instead.
2981
956bdb59
SM
29822020-09-25 Simon Marchi <simon.marchi@efficios.com>
2983
2984 * infrun.h (infrun_debug_printf): Fix formatting.
2985 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2986
3b93626b
SJ
29872020-09-25 Saagar Jha <saagar@saagarjha.com>
2988
2989 * compile/compile-object-load.h (struct munmap_list): Add
2990 explicitly-defined move constructor.
2991
b551a89f
TT
29922020-09-24 Tom Tromey <tromey@adacore.com>
2993
2994 PR tui/26638:
2995 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2996 method.
2997 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2998 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2999 (tui_prev_win): Rewrite.
3000
99bb393f
HD
30012020-09-23 Hannes Domani <ssbssa@yahoo.de>
3002
3003 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3004 in WOW64 processes as SIGINT.
3005 * nat/windows-nat.h: Make wow64_process a shared variable.
3006 * windows-nat.c: Remove static wow64_process variable.
3007
20a5fcbd
TT
30082020-09-23 Tom Tromey <tom@tromey.com>
3009
3010 PR symtab/25470:
3011 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3012 offset and bit size.
3013 * printcmd.c (print_scalar_formatted): Handle zero-length
3014 integer.
3015 (print_scalar_formatted): Use bit_size_differs_p.
3016 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3017 constant.
3018 (union type_specific): <int_stuff>: New member.
3019 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3020 methods.
3021 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3022 TYPE_SPECIFIC_FIELD.
3023 (recursive_dump_type, copy_type_recursive): Update.
3024 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3025 DW_AT_data_bit_offset.
3026
bac51ab7
TT
30272020-09-23 Tom Tromey <tom@tromey.com>
3028
3029 * utils.h (class gdb_argv): Add move operators.
3030 <append>: New methods.
3031 * compile/compile.c (build_argc_argv): Remove.
3032 (compile_args_argc): Remove.
3033 (compile_args_argv): Change type.
3034 (set_compile_args): Simplify.
3035 (append_args): Remove.
3036 (filter_args): Remove argcp parameter.
3037 (get_args): Return gdb_argv. Simplify.
3038 (compile_to_object): Update.
3039
92677124
TT
30402020-09-23 Tom Tromey <tom@tromey.com>
3041
3042 * compile/compile-object-run.c (do_module_cleanup)
3043 <~do_module_cleanup> :Remove.
3044 (do_module_cleanup): Update.
3045 * compile/compile-object-load.h (struct munmap_list): Add move
3046 assignment operator.
3047 <source_file>: Now a std::string.
3048 <munmap_list>: Rename. No longer a pointer.
3049 * compile/compile-object-load.c (struct setup_sections_data): Add
3050 constructor.
3051 <setup_one_section>: Declare.
3052 <munmap_list>: Move earlier.
3053 <m_bfd>: New member.
3054 <m_last_size, m_last_section_first, m_last_prot,
3055 m_last_max_alignment>: Rename, add initializers where needed.
3056 (setup_sections_data::setup_one_section): Rename from
3057 setup_sections. Update.
3058 (compile_object_load): Update. Don't use bfd_map_over_sections.
3059
e616f60a
TT
30602020-09-23 Tom Tromey <tom@tromey.com>
3061
3062 * compile/compile-object-run.c (struct do_module_cleanup): Add
3063 parameters to constructor. Update destructor.
3064 <source_file, scope, scope_data, out_value_type, out_value_addr,
3065 munmap_list_head, objfile_name_string>: Remove.
3066 <module>: New member.
3067 (do_module_cleanup): Update.
3068 (compile_object_run): Update.
3069
e947a848
TT
30702020-09-23 Tom Tromey <tom@tromey.com>
3071
3072 * compile/compile.c (eval_compile_command): Update.
3073 * compile/compile-object-run.h (compile_object_run): Take a
3074 compile_module_up.
3075 * compile/compile-object-run.c (compile_object_run): Take a
3076 compile_module_up.
3077 * compile/compile-object-load.h (struct compile_module): Add
3078 constructor, destructor.
3079 (compile_module_up): New typedef.
3080 (compile_object_load): Return compile_object_up.
3081 * compile/compile-object-load.c (compile_object_load): Return
3082 compile_module_up.
3083
0dbf6ee6
TT
30842020-09-23 Tom Tromey <tom@tromey.com>
3085
3086 * compile/compile-object-run.c (struct do_module_cleanup): Add
3087 constructor, destructor.
3088 <objfile_name_string>: Don't use struct hack.
3089 (do_module_cleanup): Use delete.
3090 (compile_object_run): Use new.
3091
ebe824f5
TT
30922020-09-23 Tom Tromey <tom@tromey.com>
3093
3094 * compile/compile-cplus-types.c
3095 (compile_cplus_convert_struct_or_union): Use std::vector.
3096 (compile_cplus_convert_func): Likewise.
3097 * compile/compile-c-types.c (convert_func): Use std::vector.
3098
5dd918d9
TT
30992020-09-21 Tom Tromey <tromey@adacore.com>
3100
3101 * sparc-tdep.c (sparc32_skip_prologue): Use
3102 skip_prologue_using_sal.
3103
5486c517
TT
31042020-09-19 Tom Tromey <tom@tromey.com>
3105
3106 * symfile.c (add_section_size_callback): Remove.
3107 (load_one_section): Rename from load_section_callback. Change
3108 parameters.
3109 (generic_load): Use foreach.
3110
8a6bb1d1
TT
31112020-09-19 Tom Tromey <tom@tromey.com>
3112
3113 * exec.c (add_to_section_table): Remove.
3114 (build_section_table): Use foreach.
3115
08f93a1a
TT
31162020-09-19 Tom Tromey <tom@tromey.com>
3117
3118 * elfread.c (elf_locate_sections): Change parameters.
3119 (elf_symfile_read): Use foreach.
3120
03cd72b8
TT
31212020-09-19 Tom Tromey <tom@tromey.com>
3122
3123 * cli/cli-dump.c (struct callback_data): Remove.
3124 (restore_one_section): Rename from restore_section_callback.
3125 Change parameters.
3126 (restore_binary_file): Change parameters.
3127 (restore_command): Use foreach.
3128
f4f2b85f
TT
31292020-09-19 Tom Tromey <tom@tromey.com>
3130
3131 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3132 (gcore_copy_callback): Likewise.
3133 (gcore_memory_sections): Use foreach.
3134
b35c1d1c
TT
31352020-09-19 Tom Tromey <tom@tromey.com>
3136
3137 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3138 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3139 parameters.
3140 (generic_elf_osabi_sniffer): Use foreach.
3141 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3142 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3143
5bb6e9dd
TT
31442020-09-19 Tom Tromey <tom@tromey.com>
3145
3146 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3147 (dwarf2_get_dwz_file): Use foreach.
3148 (dwarf2_locate_dwo_sections): Change parameters.
3149 (open_and_init_dwo_file): Use foreach.
3150 (dwarf2_locate_common_dwp_sections): Change parameters.
3151 (open_and_init_dwp_file): Use foreach.
3152
ad7277da
TT
31532020-09-19 Tom Tromey <tom@tromey.com>
3154
3155 * symfile.h: (find_lowest_section): Don't declare.
3156 * symfile.c (find_lowest_section): Now static. Change
3157 parameters.
3158 (struct place_section_arg): Remove.
3159 (place_section): Change parameters.
3160 (addr_info_make_relative): Use foreach.
3161 (symfile_dummy_outputs): Remove.
3162 (default_symfile_relocate): Use foreach.
3163
cb814f2e
TT
31642020-09-19 Tom Tromey <tom@tromey.com>
3165
3166 * objfiles.c (add_to_objfile_sections): Rename from
3167 add_to_objfile_sections_full.
3168 (add_to_objfile_sections): Remove.
3169 (build_objfile_section_table): Use foreach.
3170
3cabfd26
TT
31712020-09-19 Tom Tromey <tom@tromey.com>
3172
3173 * stap-probe.c (get_stap_base_address_1): Remove.
3174 (get_stap_base_address): Use foreach.
3175
1ce51eb5
TT
31762020-09-19 Tom Tromey <tom@tromey.com>
3177
3178 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3179 parameters.
3180 (gdb_bfd_close_or_warn): Use foreach.
3181
a190fabb
TT
31822020-09-19 Tom Tromey <tom@tromey.com>
3183
3184 * corelow.c (add_to_thread_list): Change parameters.
3185 (core_target_open): Use foreach.
3186
cafb0d81
TT
31872020-09-19 Tom Tromey <tom@tromey.com>
3188
3189 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3190 existing function.
3191
c8d5abea
AB
31922020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3193
3194 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3195 for arrays.
3196
6d816919
AB
31972020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3198
3199 * eval.c: Remove 'f-lang.h' include.
3200 (value_f90_subarray): Moved to f-lang.c.
3201 (eval_call): Renamed to...
3202 (evaluate_subexp_do_call): ...this, is no longer static, header
3203 comment moved into header file.
3204 (evaluate_funcall): Update call to eval_call.
3205 (skip_undetermined_arglist): Moved to f-lang.c.
3206 (fortran_value_subarray): Likewise.
3207 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3208 moved to evaluate_subexp_f.
3209 (calc_f77_array_dims): Moved to f-lang.c
3210 * expprint.c (print_subexp_funcall): New function.
3211 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3212 moved to print_subexp_f, OP_FUNCALL uses new function.
3213 (dump_subexp_body_funcall): New function.
3214 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3215 moved to dump_subexp_f, OP_FUNCALL uses new function.
3216 * expression.h (evaluate_subexp_do_call): Declare.
3217 * f-lang.c (value_f90_subarray): Moved from eval.c.
3218 (skip_undetermined_arglist): Likewise.
3219 (calc_f77_array_dims): Likewise.
3220 (fortran_value_subarray): Likewise.
3221 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3222 (operator_length_f): Likewise.
3223 (print_subexp_f): Likewise.
3224 (dump_subexp_body_f): Likewise.
3225 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3226 declaration of this operation to here.
3227 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3228 support moved to operator_length_f.
3229 * parser-defs.h (dump_subexp_body_funcall): Declare.
3230 (print_subexp_funcall): Declare.
3231 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3232 fortran-operator.def.
3233
8c37706a
AB
32342020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3235
3236 * eval.c (fortran_value_subarray): New function, content is taken
3237 from...
3238 (evaluate_subexp_standard): ...here, in two places. Now arrays
3239 and strings both call the new function.
3240 (calc_f77_array_dims): Add header comment, handle strings.
3241
14f9473c
VC
32422020-09-18 Victor Collod <vcollod@nvidia.com>
3243
3244 PR gdb/26635
3245 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3246 (i386_analyze_prologue): Call i386_skip_endbr.
3247
b60cea74
TT
32482020-09-18 Tom Tromey <tromey@adacore.com>
3249
3250 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3251 (windows_nat_target::wait): Update.
3252 * target/wait.h (enum target_wait_flag): New. Use
3253 DEF_ENUM_FLAGS_TYPE.
3254 * target/target.h (target_wait): Change type of options.
3255 * target.h (target_options_to_string, default_target_wait):
3256 Update.
3257 (struct target_ops) <wait>: Change type of options.
3258 * target.c (target_wait, default_target_wait, do_option): Change
3259 type of "options".
3260 (target_options_to_string): Likewise.
3261 * target-delegates.c: Rebuild.
3262 * target-debug.h (target_debug_print_target_wait_flags): Rename
3263 from target_debug_print_options.
3264 * sol-thread.c (class sol_thread_target) <wait>: Update.
3265 (sol_thread_target::wait): Update.
3266 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3267 (rs6000_nat_target::wait): Update.
3268 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3269 Update.
3270 (remote_target::wait_ns, remote_target::wait_as): Change type of
3271 "options".
3272 (remote_target::wait): Update.
3273 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3274 (gdbsim_target::wait): Update.
3275 * record-full.c (class record_full_base_target) <wait>: Update.
3276 (record_full_wait_1): Change type of "options".
3277 (record_full_base_target::wait): Update.
3278 * record-btrace.c (class record_btrace_target) <wait>: Update.
3279 (record_btrace_target::wait): Update.
3280 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3281 Update.
3282 (ravenscar_thread_target::wait): Update.
3283 * procfs.c (class procfs_target) <wait>: Update.
3284 (procfs_target::wait): Update.
3285 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3286 * obsd-nat.c (obsd_nat_target::wait): Update.
3287 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3288 (nto_procfs_target::wait): Update.
3289 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3290 * nbsd-nat.c (nbsd_wait): Change type of "options".
3291 (nbsd_nat_target::wait): Update.
3292 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3293 (thread_db_target::wait): Update.
3294 * linux-nat.h (class linux_nat_target) <wait>: Update.
3295 * linux-nat.c (linux_nat_target::wait): Update.
3296 (linux_nat_wait_1): Update.
3297 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3298 "options".
3299 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3300 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3301 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3302 (go32_nat_target::wait): Update.
3303 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3304 * gnu-nat.c (gnu_nat_target::wait): Update.
3305 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3306 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3307 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3308 * darwin-nat.c (darwin_nat_target::wait): Update.
3309 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3310 (bsd_uthread_target::wait): Update.
3311 * aix-thread.c (class aix_thread_target) <wait>: Update.
3312 (aix_thread_target::wait): Update.
3313
0295dde6
AB
33142020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3315
3316 * compile/compile-object-run.c (create_copied_type_recursive): New
3317 function.
3318 (compile_object_run): Use new function.
3319
d3483b43
JT
33202020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3321
3322 * NEWS: Mention x86_64 Cygwin core file support.
3323
e7d612ad
JT
33242020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3325
3326 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3327 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3328
aff9d387
JT
33292020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3330
62a5151b
JT
3331 * windows-tdep.h: Add prototypes.
3332 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3333 (i386_windows_core_pid_to_str): Move and rename ...
3334 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3335 (windows_core_pid_to_str): ... and here.
3336 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3337
33382020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3339 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3340 (amd64_windows_init_abi_common): ... and register.
3341
7d155da3
JT
33422020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3343
3344 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3345 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3346
e8ef12b9
PA
33472020-09-18 Pedro Alves <pedro@palves.net>
3348
3349 PR gdb/26631
3350 * thread.c (thread_find_command): Switch inferior before calling
3351 target methods.
3352
c1e1314d
TT
33532020-09-17 Tom Tromey <tromey@adacore.com>
3354
3355 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3356 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3357 (tdesc_arch_data_up): New typedef.
3358 (tdesc_use_registers, tdesc_data_alloc): Update.
3359 (tdesc_data_cleanup): Don't declare.
3360 * target-descriptions.c (tdesc_data_alloc): Return a
3361 tdesc_arch_data_up.
3362 (tdesc_arch_data_deleter::operator()): Rename from
3363 tdesc_data_cleanup. Change argument type.
3364 (tdesc_use_registers): Change early_data to an rvalue reference.
3365 (tdesc_use_registers): Don't use delete.
3366 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3367 * s390-tdep.c (s390_gdbarch_init): Update.
3368 * rx-tdep.c (rx_gdbarch_init): Update.
3369 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3370 * riscv-tdep.c (riscv_gdbarch_init): Update.
3371 * or1k-tdep.c (or1k_gdbarch_init): Update.
3372 * nios2-tdep.c (nios2_gdbarch_init): Update.
3373 * nds32-tdep.c (nds32_gdbarch_init): Update.
3374 * mips-tdep.c (mips_gdbarch_init): Update.
3375 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3376 * m68k-tdep.c (m68k_gdbarch_init): Update.
3377 * i386-tdep.c (i386_gdbarch_init): Update.
3378 * arm-tdep.c (arm_gdbarch_init): Update.
3379 * arc-tdep.c (arc_tdesc_init): Update.
3380 (arc_gdbarch_init): Update.
3381 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3382
0363df3d
HD
33832020-09-17 Hannes Domani <ssbssa@yahoo.de>
3384
3385 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3386 for WOW64 processes.
3387
280a9412
TT
33882020-09-17 Tom Tromey <tom@tromey.com>
3389
3390 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3391
6108fd18
TT
33922020-09-17 Tom Tromey <tom@tromey.com>
3393
3394 * value.c (preserve_values): Update.
3395 * python/py-type.c (save_objfile_types): Update.
3396 * guile/scm-type.c (save_objfile_types): Update.
3397 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3398 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3399 * compile/compile-object-run.c (compile_object_run): Update.
3400
fa9b1164
TT
34012020-09-17 Tom Tromey <tom@tromey.com>
3402
3403 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3404 Remove.
3405 <m_table>: Now htab_up.
3406 * typeprint.c (typedef_hash_table::recursively_update)
3407 (typedef_hash_table::add_template_parameters)
3408 (typedef_hash_table::typedef_hash_table): Update.
3409 (typedef_hash_table::~typedef_hash_table): Remove.
3410 (typedef_hash_table::typedef_hash_table)
3411 (typedef_hash_table::find_global_typedef)
3412 (typedef_hash_table::find_typedef): Update.
3413
eb53f105
TT
34142020-09-17 Tom Tromey <tom@tromey.com>
3415
3416 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3417
7a8a5d47
TT
34182020-09-17 Tom Tromey <tom@tromey.com>
3419
3420 * linespec.c (class decode_compound_collector)
3421 <~decode_compound_collector>: Remove.
3422 <m_unique_syms>: Now htab_up.
3423 (decode_compound_collector::operator ()): Update.
3424 (class symtab_collector) <~symtab_collector>: Remove.
3425 <m_symtab_table>: Now htab_up.
3426 (symtab_collector::operator ()): Update.
3427
99032cfc
TT
34282020-09-17 Tom Tromey <tom@tromey.com>
3429
3430 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3431 (filename_seen_cache::clear): Update.
3432 (~filename_seen_cache): Remove.
3433 (filename_seen_cache::seen): Update.
3434 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3435 htab_up.
3436 <~filename_seen_cache>: Remove.
3437 <traverse>: Update.
3438
32580f6d
TT
34392020-09-17 Tom Tromey <tom@tromey.com>
3440
3441 * completer.c (completion_tracker::discard_completions)
3442 (completion_tracker::~completion_tracker)
3443 (completion_tracker::maybe_add_completion)
3444 (completion_tracker::remove_completion)
3445 (completion_tracker::recompute_lowest_common_denominator)
3446 (completion_tracker::build_completion_result): Update.
3447 * completer.h (class completion_tracker) <have_completions>:
3448 Update.
3449 <m_entries_hash>: Now htab_up.
3450
c1fb9836
TT
34512020-09-17 Tom Tromey <tom@tromey.com>
3452
3453 * breakpoint.c (ambiguous_names_p): Use htab_up.
3454
88f07206
TT
34552020-09-17 Tom Tromey <tom@tromey.com>
3456
3457 * auto-load.c (struct auto_load_pspace_info)
3458 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3459 <loaded_script_files, loaded_script_texts>: Change type to
3460 htab_up.
3461 (~auto_load_pspace_info) Remove.
3462 (init_loaded_scripts_info, maybe_add_script_file)
3463 (maybe_add_script_text, auto_load_info_scripts): Update.
3464
9519b2ee
TT
34652020-09-17 Tom Tromey <tromey@adacore.com>
3466
3467 * c-exp.y (name_obstack): Now static.
3468
d2cd4113
CC
34692020-09-17 Chungyi Chi <demonic@csie.io>
3470
3471 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3472
b650a282
SM
34732020-09-16 Simon Marchi <simon.marchi@efficios.com>
3474
3475 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3476 (add_solib_catchpoint): Likewise.
3477 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3478 to bool.
3479 (add_solib_catchpoint): Change int parameter/variable to bool.
3480 (catch_load_or_unload): Likewise.
3481 (init_catchpoint): Likewise.
3482 (create_fork_vfork_event_catchpoint): Likewise.
3483 (catch_fork_command_1): Likewise.
3484 (catch_exec_command_1): Likewise.
3485
4d0bcfcf
SM
34862020-09-16 Simon Marchi <simon.marchi@efficios.com>
3487
3488 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3489 Change instance_flags to m_instance_flags.
3490
fe830662
TT
34912020-09-16 Tom Tromey <tromey@adacore.com>
3492
3493 PR gdb/26598:
3494 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3495
fe5ddfc3
JB
34962020-09-16 John Baldwin <jhb@FreeBSD.org>
3497
3498 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3499 PL_FLAG_EXEC.
3500 (fbsd_nat_target::insert_exec_catchpoint)
3501 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3502 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3503 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3504
e911c666
JB
35052020-09-16 John Baldwin <jhb@FreeBSD.org>
3506
3507 * configure.ac: Remove check for kinfo_getvmmap().
3508 * configure, config.in: Regenerate.
3509 * fbsd-nat.c (fbsd_read_mapping): Remove
3510 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3511 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3512 kinfo_get_vmmap() are always present.
3513
1f17d372
JB
35142020-09-16 John Baldwin <jhb@FreeBSD.org>
3515
3516 * fbsd-nat.c: Always include support for
3517 TARGET_OBJECT_SIGNAL_INFO.
3518
bcb1da7f
JB
35192020-09-16 John Baldwin <jhb@FreeBSD.org>
3520
3521 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3522 sysctl and remove procfs fallback.
3523
5515f729
JB
35242020-09-16 John Baldwin <jhb@FreeBSD.org>
3525
3526 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3527 * fbsd-nat.h: Likewise.
3528
da1df1db
TBA
35292020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3530
3531 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3532 argument.
3533
0e25e767
AB
35342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3535
3536 * ada-lang.c (ada_language_data): Delete.
3537 (ada_language): Remove references to ada_language_data.
3538 * c-lang.c (c_language_data): Delete.
3539 (c_language): Remove references to c_language_data.
3540 (cplus_language_data): Delete.
3541 (cplus_language): Remove references to cplus_language_data.
3542 (asm_language_data): Delete.
3543 (asm_language): Remove references to asm_language_data.
3544 (minimal_language_data): Delete.
3545 (minimal_language): Remove references to minimal_language_data.
3546 * d-lang.c (d_language_data): Delete.
3547 (d_language): Remove references to d_language_data.
3548 * f-lang.c (f_language_data): Delete.
3549 (f_language): Remove references to f_language_data.
3550 * go-lang.c (go_language_data): Delete.
3551 (go_language): Remove references to go_language_data.
3552 * language.c (unknown_language_data): Delete.
3553 (unknown_language): Remove references to unknown_language_data.
3554 (auto_language_data): Delete.
3555 (auto_language): Remove references to auto_language_data.
3556 * language.h (language_data): Delete struct.
3557 (language_defn): No longer inherit from language_data.
3558 * m2-lang.c (m2_language_data): Delete.
3559 (m2_language): Remove references to m2_language_data.
3560 * objc-lang.c (objc_language_data): Delete.
3561 (objc_language): Remove references to objc_language_data.
3562 * opencl-lang.c (opencl_language_data): Delete.
3563 (opencl_language): Remove references to opencl_language_data.
3564 * p-lang.c (pascal_language_data): Delete.
3565 (pascal_language): Remove references to pascal_language_data.
3566 * rust-lang.c (rust_language_data): Delete.
3567 (rust_language): Remove references to rust_language_data.
3568
b7c6e27d
AB
35692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3570
3571 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3572 initializer.
3573 (ada_language::opcode_print_table): New member function.
3574 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3575 (c_language::opcode_print_table): New member function.
3576 (cplus_language_data): Remove la_op_print_tab initializer.
3577 (cplus_language::opcode_print_table): New member function.
3578 (asm_language_data): Remove la_op_print_tab initializer.
3579 (asm_language::opcode_print_table): New member function.
3580 (minimal_language_data): Remove la_op_print_tab initializer.
3581 (minimal_language::opcode_print_table): New member function.
3582 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3583 (d_language::opcode_print_table): New member function.
3584 * expprint.c (print_subexp_standard): Update call to
3585 opcode_print_table.
3586 (op_string): Likewise.
3587 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3588 (f_language::opcode_print_table): New member function.
3589 * go-lang.c (go_language_data): Remove la_op_print_tab
3590 initializer.
3591 (go_language::opcode_print_table): New member function.
3592 * language.c (unknown_language_data): Remove la_op_print_tab
3593 initializer.
3594 (unknown_language::opcode_print_table): New member function.
3595 (auto_language_data): Remove la_op_print_tab initializer.
3596 (auto_language::opcode_print_table): New member function.
3597 * language.h (language_data): Remove la_op_print_tab field.
3598 (language_defn::opcode_print_table): Declare new member function.
3599 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3600 initializer.
3601 (m2_language::opcode_print_table): New member function.
3602 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3603 initializer.
3604 (objc_language::opcode_print_table): New member function.
3605 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3606 initializer.
3607 (opencl_language::opcode_print_table): New member function.
3608 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3609 initializer.
3610 (pascal_language::opcode_print_table): New member function.
3611 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3612 initializer.
3613 (rust_language::opcode_print_table): New member function.
3614
5aba6ebe
AB
36152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3616
3617 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3618 (ada_language::expression_ops): New member function.
3619 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3620 (c_language::expression_ops): New member function.
3621 (cplus_language_data): Remove la_exp_desc initializer.
3622 (cplus_language::expression_ops): New member function.
3623 (asm_language_data): Remove la_exp_desc initializer.
3624 (asm_language::expression_ops): New member function.
3625 (minimal_language_data): Remove la_exp_desc initializer.
3626 (minimal_language::expression_ops): New member function.
3627 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3628 (d_language::expression_ops): New member function.
3629 * eval.c (evaluate_subexp): Update call to expression_ops.
3630 * expprint.c (print_subexp): Likewise.
3631 (op_name): Likewise.
3632 (dump_subexp_body): Likewise.
3633 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3634 (f_language::expression_ops): New member function.
3635 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3636 (go_language::expression_ops): New member function.
3637 * language.c (language_defn::expression_ops): New function.
3638 (unknown_language_data): Remove la_exp_desc initializer.
3639 (auto_language_data): Likewise.
3640 * language.h (language_data): Remove la_exp_desc field.
3641 (language_defn::expression_ops): Declare new member function.
3642 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3643 (m2_language::expression_ops): New member function.
3644 * objc-lang.c (objc_language_data): Remove la_exp_desc
3645 initializer.
3646 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3647 initializer.
3648 (opencl_language::expression_ops): New member function.
3649 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3650 * parse.c (operator_length): Update call to expression_ops.
3651 (exp_iterate): Likewise.
3652 * rust-lang.c (rust_language_data): Remove la_exp_desc
3653 initializer.
3654 (ruse_language::expression_ops): New member function.
3655
b63a3f3f
AB
36562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3657
3658 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3659 initializer.
3660 (ada_language::varobj_ops): New member function.
3661 * c-lang.c (c_language_data): Remove la_varobj_ops
3662 initializer.
3663 (cplus_language_data): Likewise.
3664 (cplus_language::varobj_ops): New member function.
3665 (asm_language_data): Remove la_varobj_ops initializer.
3666 (minimal_language_data): Likewise.
3667 * d-lang.c (d_language_data): Likewise.
3668 * f-lang.c (f_language_data): Likewise.
3669 * go-lang.c (go_language_data): Likewise.
3670 * language.c (language_defn::varobj_ops): New function.
3671 (unknown_language_data): Remove la_varobj_ops
3672 initializer.
3673 (auto_language_data): Likewise.
3674 * language.h (language_data): Remove la_varobj_ops field.
3675 (language_defn::varobj_ops): Declare new member function.
3676 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3677 * objc-lang.c (objc_language_data): Likewise.
3678 * opencl-lang.c (opencl_language_data): Likewise.
3679 * p-lang.c (pascal_language_data): Likewise.
3680 * rust-lang.c (rust_language_data): Likewise.
3681 * varobj.c (varobj_create): Update call to varobj_ops.
3682 * varobj.h (default_varobj_ops): Delete define.
3683
1ac14a04
AB
36842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3685
3686 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3687 initializer.
3688 * c-lang.c (c_language_data): Likewise.
3689 (c_language::macro_expansion): New member function.
3690 (cplus_language_data): Likewise.
3691 (cplus_language::macro_expansion): New member function.
3692 (asm_language_data): Likewise.
3693 (asm_language::macro_expansion): New member function.
3694 (minimal_language_data): Likewise.
3695 (minimal_language::macro_expansion): New member function.
3696 * d-lang.c (d_language_data): Remove la_macro_expansion
3697 initializer.
3698 * f-lang.c (f_language_data): Likewise.
3699 * go-lang.c (go_language_data): Likewise.
3700 * language.c (unknown_language_data): Likewise.
3701 (auto_language_data): Likewise.
3702 * language.h (language_data): Remove la_macro_expansion field.
3703 (language_defn::macro_expansion): New member function.
3704 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3705 initializer.
3706 * objc-lang.c (objc_language_data): Likewise.
3707 (objc_language::macro_expansion): New member function.
3708 * opencl-lang.c (opencl_language_data): Likewise.
3709 (opencl_language::macro_expansion): New member function.
3710 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3711 initializer.
3712 * rust-lang.c (rust_language_data): Likewise.
3713 * symtab.c (default_collect_symbol_completion_matches_break_on):
3714 Update call to macro_expansion.
3715
3a3440fb
AB
37162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3717
3718 * ada-lang.c (ada_language_data): Remove la_array_ordering
3719 initializer.
3720 * c-lang.c (c_language_data): Likewise.
3721 (cplus_language_data): Likewise.
3722 (asm_language_data): Likewise.
3723 (minimal_language_data): Likewise.
3724 * d-lang.c (d_language_data): Likewise.
3725 * dwarf2/read.c (read_array_order): Update for call to
3726 array_ordering.
3727 * f-lang.c (f_language_data): Remove la_array_ordering
3728 initializer.
3729 (f_language::array_ordering): New member function.
3730 * go-lang.c (go_language_data): Remove la_array_ordering
3731 initializer.
3732 * language.c (unknown_language_data): Likewise.
3733 (auto_language_data): Likewise.
3734 * language.h (language_data): Delete la_array_ordering field.
3735 (language_defn::array_ordering): New member function.
3736 * m2-lang.c (m2_language_data): Remove la_array_ordering
3737 initializer.
3738 * objc-lang.c (objc_language_data): Likewise.
3739 * opencl-lang.c (opencl_language_data): Likewise.
3740 * p-lang.c (pascal_language_data): Likewise.
3741 * rust-lang.c (rust_language_data): Likewise.
3742
0d201fa4
AB
37432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3744
3745 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3746 initializer.
3747 * c-lang.c (c_language_data): Likewise.
3748 (cplus_language_data): Likewise.
3749 (asm_language_data): Likewise.
3750 (minimal_language_data): Likewise.
3751 * d-lang.c (d_language_data): Likewise.
3752 * f-lang.c (f_language_data): Likewise.
3753 (f_language::case_sensitivity): New member function.
3754 * go-lang.c (go_language_data): Remove la_case_sensitivity
3755 initializer.
3756 * language.c (enum case_mode): Moved here from language.h.
3757 (case_mode): Make static.
3758 (show_case_command): Update for case_sensitivity being a method.
3759 (set_case_command): Likewise.
3760 (set_range_case): Likewise.
3761 (unknown_language_data): Remove la_case_sensitivity initializer.
3762 (auto_language_data): Likewise.
3763 * language.h (case_mode): Delete, move enum declaration to
3764 language.c.
3765 (language_data): Delete la_case_sensitivity field.
3766 (language_defn::case_sensitivity): New member function.
3767 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3768 initializer.
3769 * objc-lang.c (objc_language_data): Likewise.
3770 * opencl-lang.c (opencl_language_data): Likewise.
3771 * p-lang.c (pascal_language_data): Likewise.
3772 * rust-lang.c (rust_language_data): Likewise.
3773
efdf6a73
AB
37742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3775
3776 * ada-lang.c (ada_language_data): Remove la_range_check
3777 initializer.
3778 * c-lang.c (c_language_data): Likewise.
3779 (cplus_language_data): Likewise.
3780 (asm_language_data): Likewise.
3781 (minimal_language_data): Likewise.
3782 * d-lang.c (d_language_data): Likewise.
3783 * f-lang.c (f_language_data): Likewise.
3784 (f_language::range_checking_on_by_default): New member function.
3785 * go-lang.c (go_language_data): Remove la_range_check initializer.
3786 * language.c (enum range_mode): Moved here from language.h.
3787 (range_mode): Made static.
3788 (show_range_command): Update to use
3789 range_checking_on_by_default.
3790 (set_range_command): Likewise.
3791 (set_range_case): Likewise.
3792 (unknown_language_data): Remove la_range_check initializer.
3793 (auto_language_data): Likewise.
3794 * language.h (range_mode): Delete. Enum definition moved to
3795 language.c.
3796 (language_data): Remove la_range_check field.
3797 (language_defn::range_checking_on_by_default): New member
3798 function.
3799 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3800 (m2_language::range_checking_on_by_default): New member function.
3801 * objc-lang.c (objc_language_data): Remove la_range_check
3802 initializer.
3803 * opencl-lang.c (opencl_language_data): Likewise.
3804 * p-lang.c (pascal_language_data): Likewise.
3805 (pascal_language::range_checking_on_by_default): New member
3806 function.
3807 * rust-lang.c (rust_language_data): Remove la_range_check
3808 initializer.
3809 (rust_language::range_checking_on_by_default): New member
3810 function.
3811
bf92aec5
AB
38122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3813
3814 * dwarf2/read.c (dwarf2_physname): Remove special case for
3815 language_go.
3816 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3817 member function.
3818
d3355e4d
AB
38192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3820
3821 * ada-lang.c (ada_language_data): Remove
3822 la_store_sym_names_in_linkage_form_p initializer.
3823 (ada_language::store_sym_names_in_linkage_form_p): New member
3824 function.
3825 * c-lang.c (c_language_data): Remove
3826 la_store_sym_names_in_linkage_form_p initializer.
3827 (c_language::store_sym_names_in_linkage_form_p): New member
3828 function.
3829 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3830 initializer.
3831 (asm_language_data): Likewise.
3832 (asm_language::store_sym_names_in_linkage_form_p): New member
3833 function.
3834 (minimal_language_data): Remove
3835 la_store_sym_names_in_linkage_form_p initializer.
3836 (minimal_language::store_sym_names_in_linkage_form_p): New member
3837 function.
3838 * d-lang.c (d_language_data): Remove
3839 la_store_sym_names_in_linkage_form_p initializer.
3840 * dwarf2/read.c (dwarf2_physname): Update call to
3841 store_sym_names_in_linkage_form_p.
3842 * f-lang.c (f_language_data): Remove
3843 la_store_sym_names_in_linkage_form_p initializer.
3844 * go-lang.c (go_language_data): Remove
3845 la_store_sym_names_in_linkage_form_p initializer.
3846 * language.c (unknown_language_data): Remove
3847 la_store_sym_names_in_linkage_form_p initializer.
3848 (unknown_language::store_sym_names_in_linkage_form_p): New member
3849 function.
3850 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3851 initializer.
3852 (auto_language::store_sym_names_in_linkage_form_p): New member
3853 function.
3854 * language.h (language_data): Remove
3855 la_store_sym_names_in_linkage_form_p member variable.
3856 (language_defn::store_sym_names_in_linkage_form_p): New member
3857 function.
3858 * m2-lang.c (m2_language_data): Remove
3859 la_store_sym_names_in_linkage_form_p initializer.
3860 * objc-lang.c (objc_language_data): Likewise.
3861 * opencl-lang.c (opencl_language_data): Likewise.
3862 * p-lang.c (pascal_language_data): Likewise.
3863 * rust-lang.c (rust_language_data): Likewise.
3864
22c12a6c
AB
38652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3866
3867 * ada-lang.c (ada_language_data): Remove string_lower_bound
3868 initializer.
3869 * c-lang.c (c_language_data): Likewise.
3870 (cplus_language_data): Likewise.
3871 (asm_language_data): Likewise.
3872 (minimal_language_data): Likewise.
3873 * d-lang.c (d_language_data): Likewise.
3874 * f-lang.c (f_language_data): Likewise.
3875 * go-lang.c (go_language_data): Likewise.
3876 * language.c (unknown_language_data): Likewise.
3877 (auto_language_data): Likewise.
3878 * language.h (language_data): Remove string_lower_bound field.
3879 (language_defn::string_lower_bound): New member function.
3880 * m2-lang.c (m2_language_data): Remove string_lower_bound
3881 initializer.
3882 (m2_language::string_lower_bound): New member function.
3883 * objc-lang.c (objc_language_data): Remove string_lower_bound
3884 initializer.
3885 * opencl-lang.c (opencl_language_data): Likewise.
3886 * p-lang.c (pascal_language_data): Likewise.
3887 * rust-lang.c (rust_language_data): Likewise.
3888 * valops.c (value_cstring): Update call to string_lower_bound.
3889 (value_string): Likewise.
3890 * value.c (allocate_repeated_value): Likewise.
3891
1c236ddd
AB
38922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3893
3894 * valops.c (value_repeat): Fix incorrect argument name in comment.
3895
67bd3fd5
AB
38962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3897
3898 * ada-lang.c (ada_language_data): Remove c_style_arrays
3899 initializer.
3900 (ada_language::c_style_arrays_p): New member fuction.
3901 * c-lang.c (c_language_data): Remove c_style_arrays
3902 initializer.
3903 (cplus_language_data): Likewise.
3904 (asm_language_data): Likewise.
3905 (minimal_language_data): Likewise.
3906 * d-lang.c (d_language_data): Likewise.
3907 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3908 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3909 (f_language::c_style_arrays_p): New member function.
3910 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3911 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3912 * language.c (unknown_language_data): Remove c_style_arrays
3913 initializer.
3914 (auto_language_data): Likewise.
3915 * language.h (language_data): Remove c_style_arrays field.
3916 (language_defn::c_style_arrays_p): New member function.
3917 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3918 (m2_language::c_style_arrays_p): New member function.
3919 * objc-lang.c (objc_language_data): Remove c_style_arrays
3920 initializer.
3921 * opencl-lang.c (opencl_language_data): Likewise.
3922 * p-lang.c (pascal_language_data): Likewise.
3923 * rust-lang.c (rust_language_data): Likewise.
3924 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3925 and update local variable to a bool.
3926 * valops.c (value_cast): Update call to c_style_arrays_p.
3927 (value_array): Likewise.
3928 * value.c (coerce_array): Likewise.
3929
85967615
AB
39302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3931
3932 * ada-lang.c (ada_language_data): Remove la_language initializer.
3933 * c-lang.c (c_language_data): Likewise.
3934 (cplus_language_data): Likewise.
3935 (asm_language_data): Likewise.
3936 (minimal_language_data): Likewise.
3937 * d-lang.c (d_language_data): Likewise.
3938 * f-lang.c (f_language_data): Likewise.
3939 * go-lang.c (go_language_data): Likewise.
3940 * language.c (unknown_language_data): Likewise.
3941 (auto_language_data): Likewise.
3942 * language.h (language_data): Remove la_language field.
3943 (language_defn::language_defn): Initialise la_language field.
3944 (language_defn::la_language): New member variable.
3945 * m2-lang.c (m2_language_data): Remove la_language field.
3946 * objc-lang.c (objc_language_data): Likewise.
3947 * opencl-lang.c (opencl_language_data): Likewise.
3948 * p-lang.c (pascal_language_data): Likewise.
3949 * rust-lang.c (rust_language_data): Likewise.
3950
e171d6f1
AB
39512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3952
3953 * ada-lang.c (ada_extensions): Delete, moved into
3954 ada_language::filename_extensions.
3955 (ada_language_data): Remove la_filename_extensions initializer.
3956 (ada_language::filename_extensions): New member function.
3957 * c-lang.c (c_extensions): Delete, moved into
3958 c_language::filename_extensions.
3959 (c_language_data): Remove la_filename_extensions initializer.
3960 (c_language::filename_extensions): New member function.
3961 (cplus_extensions): Delete, moved into
3962 cplus_language::filename_extensions.
3963 (cplus_language_data): Remove la_filename_extensions initializer.
3964 (cplus_language::filename_extensions): New member function.
3965 (asm_extensions): Delete, moved into
3966 asm_language::filename_extensions.
3967 (asm_language_data): Remove la_filename_extensions initializer.
3968 (asm_language::filename_extensions): New member function.
3969 (minimal_language_data): Remove la_filename_extensions
3970 initializer.
3971 * d-lang.c (d_extensions): Delete, moved into
3972 d_language::filename_extensions.
3973 (d_language_data): Remove la_filename_extensions initializer.
3974 (d_language::filename_extensions): New member function.
3975 * f-lang.c (f_extensions): Delete, moved into
3976 f_language::filename_extensions.
3977 (f_language_data): Remove la_filename_extensions initializer.
3978 (f_language::filename_extensions): New member function.
3979 * go-lang.c (go_language_data): Remove la_filename_extensions
3980 initializer.
3981 * language.c (add_set_language_command): Update now that
3982 filename_extensions returns a vector.
3983 (unknown_language_data): Remove la_filename_extensions
3984 initializer.
3985 (auto_language_data): Likewise.
3986 * language.h (language_data): Remove la_filename_extensions field.
3987 (language_defn::filename_extensions): New member function.
3988 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3989 initializer.
3990 * objc-lang.c (objc_extensions): Delete, moved into
3991 objc_language::filename_extensions.
3992 (objc_language_data): Remove la_filename_extensions initializer.
3993 (objc_language::filename_extensions): New member function.
3994 * opencl-lang.c (opencl_language_data): Remove
3995 la_filename_extensions initializer.
3996 * p-lang.c (pascal_extensions): Delete, moved into
3997 pascal_language::filename_extensions.
3998 (pascal_language_data): Remove la_filename_extensions initializer.
3999 (pascal_language::filename_extensions): New member function.
4000 * rust-lang.c (rust_extensions): Delete, moved into
4001 rust_language::filename_extensions.
4002 (rust_language_data): Remove la_filename_extensions initializer.
4003 (rust_language::filename_extensions): New member function.
4004 * symfile.c (add_filename_language): Add new assert.
4005
6f7664a9
AB
40062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4007
4008 * ada-lang.c (ada_language_data): Remove la_name and
4009 la_natural_name initializers.
4010 (ada_language::name): New member function.
4011 (ada_language::natural_name): New member function.
4012 * c-lang.c (c_language_data): Remove la_name and
4013 la_natural_name initializers.
4014 (c_language::name): New member function.
4015 (c_language::natural_name): New member function.
4016 (cplus_language_data): Remove la_name and
4017 la_natural_name initializers.
4018 (cplus_language::name): New member function.
4019 (cplus_language::natural_name): New member function.
4020 (asm_language_data): Remove la_name and
4021 la_natural_name initializers.
4022 (asm_language::name): New member function.
4023 (asm_language::natural_name): New member function.
4024 (minimal_language_data): Remove la_name and
4025 la_natural_name initializers.
4026 (minimal_language::name): New member function.
4027 (minimal_language::natural_name): New member function.
4028 * compile/compile.c (compile_to_object): Update call to
4029 lanugage_defn::name.
4030 * d-lang.c (d_language_data): Remove la_name and
4031 la_natural_name initializers.
4032 (d_language::name): New member function.
4033 (d_language::natural_name): New member function.
4034 * expprint.c (print_subexp_standard): Update call to
4035 language_defn::name.
4036 (dump_raw_expression): Likewise
4037 (dump_prefix_expression): Likewise.
4038 * f-lang.c (f_language_data): Remove la_name and
4039 la_natural_name initializers.
4040 (f_language::name): New member function.
4041 (f_language::natural_name): New member function.
4042 * go-lang.c (go_language_data): Remove la_name and
4043 la_natural_name initializers.
4044 (go_language::name): New member function.
4045 (go_language::natural_name): New member function.
4046 * language.c (show_language_command): Update call to
4047 language_defn::name.
4048 (set_language_command): Likewise.
4049 (language_enum): Likewise.
4050 (language_str): Likewise.
4051 (add_set_language_command): Likewise, use
4052 language_defn::natural_name in the doc string.
4053 (unknown_language_data): Remove la_name and
4054 la_natural_name initializers.
4055 (unknown_language::name): New member function.
4056 (unknown_language::natural_name): New member function.
4057 (auto_language_data): Remove la_name and
4058 la_natural_name initializers.
4059 (auto_language::name): New member function.
4060 (auto_language::natural_name): New member function.
4061 (language_lookup_primitive_type_as_symbol): Update call to
4062 language_defn::name.
4063 * language.h (language_data): Remove la_name and la_natural_name
4064 member variables.
4065 (language_defn::name): New member function.
4066 (language_defn::natural_name): New member function.
4067 * m2-lang.c (m2_language_data): Remove la_name and
4068 la_natural_name initializers.
4069 (m2_language::name): New member function.
4070 (m2_language::natural_name): New member function.
4071 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4072 language_defn::natural_name.
4073 * objc-lang.c (objc_language_data): Remove la_name and
4074 la_natural_name initializers.
4075 (objc_language::name): New member function.
4076 (objc_language::natural_name): New member function.
4077 * opencl-lang.c (opencl_language_data): Remove la_name and
4078 la_natural_name initializers.
4079 (opencl_language::name): New member function.
4080 (opencl_language::natural_name): New member function.
4081 * p-lang.c (pascal_language_data): Remove la_name and
4082 la_natural_name initializers.
4083 (pascal_language::name): New member function.
4084 (pascal_language::natural_name): New member function.
4085 * rust-lang.c (rust_language_data): Remove la_name and
4086 la_natural_name initializers.
4087 (rust_language::name): New member function.
4088 (rust_language::natural_name): New member function.
4089 * symtab.c (lookup_language_this): Update call to
4090 language_defn::name.
4091
5bae7c4e
AB
40922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4093
4094 * ada-lang.c (ada_language_data): Remove la_name_of_this
4095 initializer.
4096 * ax-gdb.c (gen_expr): Update call to name_of_this.
4097 * c-exp.y (classify_name): Likewise.
4098 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4099 (cplus_language_data): Likewise.
4100 (cplus_language::name_of_this): New member function.
4101 (asm_language_data): Remove la_name_of_this initializer.
4102 (minimal_language_data): Likewise.
4103 * d-lang.c (d_language_data): Likewise.
4104 (d_language::name_of_this): New member function.
4105 * expprint.c (print_subexp_standard): Update call to name_of_this.
4106 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4107 * go-lang.c (go_language_data): Likewise.
4108 * language.c (unknown_language_data): Likewise.
4109 (unknown_language::name_of_this): New member function.
4110 (auto_language_data): Remove la_name_of_this initializer.
4111 (auto_language::name_of_this): New member function.
4112 * language.h (language_data): Delete la_name_of_this member
4113 variable.
4114 (language_defn::name_of_this): New member function.
4115 * m2-lang.c (m2_language_data): Remove la_name_of_this
4116 initializer.
4117 * objc-lang.c (objc_language_data): Likewise.
4118 (objc_language::name_of_this): New member function.
4119 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4120 initializer.
4121 * p-lang.c (pascal_language_data): Likewise.
4122 (pascal_language::name_of_this): New member function.
4123 * rust-lang.c (rust_language_data): Remove la_name_of_this
4124 initializer.
4125 * symtab.c (lookup_language_this): Update call to name_of_this.
4126 (lookup_symbol_aux): Likewise.
4127 * valops.c (value_of_this): Likewise.
4128
22e3f3ed
AB
41292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4130
4131 * ada-lang.c (ada_language_data): Remove
4132 la_struct_too_deep_ellipsis initializer.
4133 (ada_language::struct_too_deep_ellipsis): New member function.
4134 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4135 initializer.
4136 (cplus_language_data): Likewise.
4137 (asm_language_data): Likewise.
4138 (minimal_language_data): Likewise.
4139 * cp-valprint.c (cp_print_value): Update call to
4140 struct_too_deep_ellipsis.
4141 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4142 initializer.
4143 * f-lang.c (f_language_data): Likewise.
4144 (f_language::struct_too_deep_ellipsis): New member function.
4145 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4146 initializer.
4147 * language.c (unknown_language_data): Likewise.
4148 (auto_language_data): Likewise.
4149 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4150 member variable.
4151 (language_defn::struct_too_deep_ellipsis): New member function.
4152 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4153 initializer.Q
4154 * objc-lang.c (objc_language_data): Likewise.
4155 * opencl-lang.c (opencl_language_data): Likewise.
4156 * p-lang.c (pascal_language_data): Likewise.
4157 * rust-lang.c (rust_language_data): Likewise.
4158 * valprint.c (val_print_check_max_depth): Update call to
4159 struct_too_deep_ellipsis.
4160
ed29e1c7
FW
41612020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4162
4163 * MAINTAINERS (Write After Approval): Add myself.
4164
12d8f940
TT
41652020-09-15 Tom Tromey <tom@tromey.com>
4166
4167 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4168 Remove.
4169
6b5a7bc7
TT
41702020-09-15 Tom Tromey <tom@tromey.com>
4171
4172 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4173 and TYPE_CODE_METHODPTR cases.
4174 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4175 (c_value_print_inner): Update.
4176 * valprint.c (generic_value_print_memberptr): New function, from
4177 c_value_print_memberptr.
4178 (generic_value_print): Use it. Call cplus_print_method_ptr.
4179
47f0e2ff
TT
41802020-09-15 Tom Tromey <tromey@adacore.com>
4181
4182 * python/python-internal.h (PyInt_FromLong): Remove define.
4183 * python/py-value.c (convert_value_from_python): Use
4184 gdb_py_object_from_longest.
4185 * python/py-type.c (typy_get_code): Use
4186 gdb_py_object_from_longest.
4187 * python/py-symtab.c (salpy_get_line): Use
4188 gdb_py_object_from_longest.
4189 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4190 gdb_py_object_from_longest.
4191 * python/py-record.c (recpy_gap_reason_code): Use
4192 gdb_py_object_from_longest.
4193 * python/py-record-btrace.c (recpy_bt_insn_size)
4194 (recpy_bt_func_level, btpy_list_count): Use
4195 gdb_py_object_from_longest.
4196 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4197 gdb_py_object_from_longest. Fix error handling.
4198 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4199 gdb_py_object_from_longest.
4200 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4201 gdb_py_object_from_longest.
4202 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4203 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4204 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4205
512116ce
TT
42062020-09-15 Tom Tromey <tromey@adacore.com>
4207
4208 * python/python.c (gdbpy_parameter_value): Use
4209 gdb_py_object_from_ulongest.
4210
4ab1029c
TT
42112020-09-15 Tom Tromey <tromey@adacore.com>
4212
4213 * python/py-infevents.c (create_register_changed_event_object):
4214 Use gdb_py_object_from_longest.
4215 * python/py-exitedevent.c (create_exited_event_object): Use
4216 gdb_py_object_from_longest.
4217
062534d4
TT
42182020-09-15 Tom Tromey <tromey@adacore.com>
4219
4220 * python/python.c (gdbpy_parameter_value): Use
4221 gdb_py_object_from_longest.
4222 * python/py-type.c (convert_field, typy_range): Use
4223 gdb_py_object_from_longest.
4224 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4225 gdb_py_object_from_longest.
4226 * python/py-lazy-string.c (stpy_get_length): Use
4227 gdb_py_object_from_longest.
4228 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4229 gdb_py_object_from_longest.
4230 * python/py-infevents.c (create_memory_changed_event_object): Use
4231 gdb_py_object_from_longest.
4232 * python/py-inferior.c (infpy_get_num): Use
4233 gdb_py_object_from_longest.
4234 (infpy_get_pid): Likewise.
4235
d1cab987
TT
42362020-09-15 Tom Tromey <tromey@adacore.com>
4237
4238 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4239 defines.
4240 * python/py-value.c (valpy_long): Use
4241 gdb_py_object_from_ulongest.
4242 * python/py-symtab.c (salpy_get_pc): Use
4243 gdb_py_object_from_ulongest.
4244 (salpy_get_last): Likewise.
4245 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4246 gdb_py_object_from_ulongest.
4247 * python/py-lazy-string.c (stpy_get_address): Use
4248 gdb_py_object_from_ulongest.
4249 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4250 * python/py-arch.c (archpy_disassemble): Use
4251 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4252 error handling.
4253
4bde49dc
TT
42542020-09-15 Tom Tromey <tromey@adacore.com>
4255
4256 * python/python-internal.h (gdb_py_long_from_longest): Remove
4257 defines.
4258 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4259 * python/py-type.c (convert_field, typy_get_sizeof): Use
4260 gdb_py_object_from_longest.
4261 * python/py-record-btrace.c (btpy_list_index): Use
4262 gdb_py_object_from_longest.
4263
37431074
TT
42642020-09-15 Tom Tromey <tromey@adacore.com>
4265
4266 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4267 * python/py-record.c (recpy_element_number): Use
4268 gdb_py_object_from_longest.
4269 (recpy_gap_number): Likewise.
4270
cbe25684
TT
42712020-09-15 Tom Tromey <tromey@adacore.com>
4272
4273 * top.c (ui::ui): Update.
4274 (highest_ui_num): Remove.
4275 * top.h (struct ui) <num>: Remove.
4276
db92ac45
TT
42772020-09-15 Tom Tromey <tromey@adacore.com>
4278
4279 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4280 * ui-style.c (ansi_regex_text): Now array.
4281 * rust-exp.y (number_regex_text): Now array.
4282 * linespec.c (linespec_quote_characters): Now array.
4283 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4284 Now arrays.
4285
d2b31b67
SM
42862020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4287
4288 * debuginfod-support.c (debuginfod_client_deleter): New.
4289 (debuginfod_client_up): New.
4290 (debuginfod_init): Return debuginfod_client_up.
4291 (debuginfod_source_query): Adjust.
4292 (debuginfod_debuginfo_query): Adjust.
4293
3246bd8e
SM
42942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4295
4296 * debuginfod-support.c (debuginfod_source_query): Use
4297 make_unique_xstrdup.
4298
10242f36
SM
42992020-09-14 Simon Marchi <simon.marchi@efficios.com>
4300
4301 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4302 with `type::instance_flags`.
4303
e1044e6a
MM
43042020-09-14 Michael Mullin <masmullin@gmail.com>
4305
4306 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4307 Remove baton parameter.
4308
04902b09
PA
43092020-09-14 Pedro Alves <pedro@palves.net>
4310
4311 * Makefile.in (SELFTESTS_SRCS): Add
4312 unittests/enum-flags-selftests.c.
4313 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4314 btrace_function_flags instead of enum btrace_function_flag.
4315 * compile/compile-c-types.c (convert_qualified): Use
4316 enum_flags::raw.
4317 * compile/compile-cplus-symbols.c (convert_one_symbol)
4318 (convert_symbol_bmsym):
4319 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4320 (compile_cplus_convert_struct_or_union_methods)
4321 (compile_cplus_instance::convert_qualified_base):
4322 * go-exp.y (parse_string_or_char): Add cast to int.
4323 * unittests/enum-flags-selftests.c: New file.
4324 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4325 type to btrace_thread_flags from btrace_thread_flag.
4326 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4327 local's type to btrace_thread_flags from btrace_thread_flag. Add
4328 cast in DEBUG call.
4329
69896a2c
PA
43302020-09-14 Pedro Alves <pedro@palves.net>
4331
4332 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4333 * gdbtypes.c (address_space_name_to_int): Rename to ...
4334 (address_space_name_to_type_instance_flags): ... this.
4335 (address_space_int_to_name): Rename to ...
4336 (address_space_type_instance_flags_to_name): ... this.
4337 * gdbtypes.h (address_space_name_to_int): Rename to ...
4338 (address_space_name_to_type_instance_flags): ... this.
4339 (address_space_int_to_name): Rename to ...
4340 (address_space_type_instance_flags_to_name): ... this.
4341 * type-stack.c (type_stack::insert): Adjust to rename.
4342 * type-stack.h (type_stack::insert): Likewise.
4343
314ad88d
PA
43442020-09-14 Pedro Alves <pedro@palves.net>
4345 Andrew Burgess <andrew.burgess@embecosm.com>
4346
4347 * avr-tdep.c (avr_address_class_type_flags): Return
4348 type_instance_flags.
4349 (avr_address_class_type_flags_to_name): Take a
4350 type_instance_flags.
4351 (avr_address_class_name_to_type_flags): Return bool and take a
4352 type_instance_flags.
4353 * d-lang.c (build_d_types): Use type::set_instance_flags.
4354 * ft32-tdep.c (ft32_address_class_type_flags): Return
4355 type_instance_flags.
4356 (ft32_address_class_type_flags_to_name): Take a
4357 type_instance_flags.
4358 (ft32_address_class_name_to_type_flags): Return bool and take a
4359 type_instance_flags.
4360 (ft32_gdbarch_init): Use type::set_instance_flags.
4361 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4362 * gdbarch.h, gdbarch.c: Regenerate.
4363 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4364 (address_class_name_to_type_flags): Use type_instance_flags and
4365 bool.
4366 * gdbtypes.c (address_space_name_to_int)
4367 (address_space_int_to_name, make_qualified_type): Use
4368 type_instance_flags.
4369 (make_qualified_type): Use type_instance_flags and
4370 type::set_instance_flags.
4371 (make_type_with_address_space, make_cv_type, make_vector_type)
4372 (check_typedef): Use type_instance_flags.
4373 (recursive_dump_type): Cast type_instance_flags to unsigned for
4374 printing.
4375 (copy_type_recursive): Use type::set_instance_flags.
4376 (gdbtypes_post_init): Use type::set_instance_flags.
4377 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4378 <m_instance_flags>: ... this.
4379 <instance_flags, set_instance_flags>: New methods.
4380 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4381 (SET_TYPE_INSTANCE_FLAGS): New.
4382 (address_space_name_to_int, address_space_int_to_name)
4383 (make_type_with_address_space): Pass flags using
4384 type_instance_flags instead of int.
4385 * stabsread.c (cleanup_undefined_types_noname): Use
4386 type::set_instance_flags.
4387 * s390-tdep.c (s390_address_class_type_flags): Return
4388 type_instance_flags.
4389 (s390_address_class_type_flags_to_name): Take a
4390 type_instance_flags.
4391 (s390_address_class_name_to_type_flags): Return bool and take a
4392 type_instance_flags.
4393 * type-stack.c (type_stack::follow_types): Use
4394 type_instance_flags.
4395 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4396
27087b7f
TT
43972020-09-14 Tom Tromey <tromey@adacore.com>
4398
4399 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4400 * x86-tdep.c (x86_is_thunk_register_name)
4401 (x86_in_indirect_branch_thunk): Update.
4402 * sparc64-tdep.c (sparc64_fpu_register_names)
4403 (sparc64_cp0_register_names, sparc64_register_names)
4404 (sparc64_pseudo_register_names): Now const.
4405 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4406 cp0_registers_num>: Now const.
4407 * sparc-tdep.c (sparc_core_register_names)
4408 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4409 (sparc32_pseudo_register_names): Now const.
4410 (validate_tdesc_registers): Update.
4411 * rust-lang.c (rust_extensions): Now const.
4412 * p-lang.c (p_extensions): Now const.
4413 * objc-lang.c (objc_extensions): Now const.
4414 * nto-tdep.c (nto_thread_state_str): Now const.
4415 * moxie-tdep.c (moxie_register_names): Now const.
4416 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4417 Now const.
4418 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4419 (mips_linux_reg_names): Now const.
4420 (mips_gdbarch_init): Update.
4421 * microblaze-tdep.c (microblaze_register_names): Now const.
4422 * m68k-tdep.c (m68k_register_names): Now const.
4423 * m32r-tdep.c (m32r_register_names): Now const.
4424 * ia64-tdep.c (ia64_register_names): Now const.
4425 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4426 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4427 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4428 ymm_avx512_register_names, pkeys_register_names>: Now const.
4429 * i386-tdep.c (i386_register_names, i386_zmm_names)
4430 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4431 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4432 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4433 * f-lang.c (f_extensions): Now const.
4434 * d-lang.c (d_extensions): Now const.
4435 * csky-tdep.c (csky_register_names): Now const.
4436 * charset.c (default_charset_names, charset_enum): Now const.
4437 (_initialize_charset): Update.
4438 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4439 const.
4440 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4441 (bsd_uthread_solib_loaded): Update.
4442 (bsd_uthread_state): Now const.
4443 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4444 (amd64_ymm_avx512_names, amd64_ymmh_names)
4445 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4446 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4447 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4448 (amd64_dword_names): Now const.
4449 * agent.c (can_use_agent_enum): Now const.
4450 * ada-tasks.c (task_states, long_task_states): Now const.
4451 * ada-lang.c (known_runtime_file_name_patterns)
4452 (known_auxiliary_function_name_patterns, attribute_names)
4453 (standard_exc, ada_extensions): Now const.
4454
89806626
SM
44552020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4456
4457 * bcache.h (struct bcache) <bcache>: Remove constructor.
4458 <m_hash_function, m_compare_function>: Remove.
4459 <~bcache>: Make virtual.
4460 <compare>: Remove static method, introduce virtual method.
4461 <default_hash>: Remove.
4462 <hash>: New virtual method.
4463 * bcache.c (bcache::expand_hash_table): Update.
4464 (bcache::insert): Update.
4465 (bcache::hash): New.
4466 (bcache::compare): Update comment and parameter names.
4467 * gdbtypes.c (types_deeply_equal): Update.
4468 * psymtab.h (struct psymbol_bcache): New struct.
4469 (class psymtab_storage) <psymtab_storage>: Make default.
4470 <psymbol_cache>: Change type to psymbol_bcache.
4471 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4472 (psymbol_hash): Change to...
4473 (psymbol_bcache::hash): ... this.
4474 (psymbol_compare): Change to...
4475 (psymbol_bcache::compare): ... this.
4476
677c92fe
SM
44772020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4478
4479 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4480 checking for initial lwp.
4481
3eba3a01
TT
44822020-09-14 Tom Tromey <tromey@adacore.com>
4483
4484 * m68k-tdep.c (m68k_extract_return_value): Use
4485 pointer_result_regnum.
4486 (m68k_store_return_value): Likewise.
4487 (m68k_reg_struct_return_p): Handle vectors and arrays.
4488 (m68k_return_value): Handle arrays.
4489 (m68k_svr4_return_value): Fix single-element aggregate handling.
4490 Handle long double. Adjust for embedded ABI.
4491 (m68k_svr4_init_abi): Set pointer_result_regnum.
4492 (m68k_embedded_init_abi): New function.
4493 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4494 (m68k_osabi_sniffer): New function.
4495 (_initialize_m68k_tdep): Register osabi sniffer.
4496 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4497 member.
4498
33f4dd48
SM
44992020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4500
4501 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4502 with gdb::unique_xmalloc_ptr<char>.
4503
8400a90d
SM
45042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4505
4506 * xml-support.h (xml_fetch_another): Change type to be a
4507 function_view.
4508 (xml_process_xincludes): Remove baton parameter.
4509 (xml_fetch_content_from_file): Change baton parameter to
4510 dirname.
4511 * xml-support.c (struct xinclude_parsing_data)
4512 <xinclude_parsing_data>: Remove baton parameter.
4513 <fetcher_baton>: Remove.
4514 (xinclude_start_include): Adjust.
4515 (xml_process_xincludes): Adjust.
4516 (xml_fetch_content_from_file): Replace baton parameter with
4517 dirname.
4518 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4519 (xml_init_syscalls_info): Use a lambda.
4520 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4521 (file_read_description_xml): Use a lambda.
4522 (fetch_available_features_from_target): Change baton parameter
4523 to target_ops.
4524 (target_read_description_xml): Use a lambda.
4525 (target_fetch_description_xml): Use a lambda.
4526 (string_read_description_xml): Update.
4527
04f5bab2
SM
45282020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4529
4530 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4531 uses with type::endianity_is_not_default.
4532
db558e34
SM
45332020-09-14 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * gdbtypes.h (struct type) <endianity_is_not_default,
4536 set_endianity_is_not_default>: New methods.
4537 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4538 type::endianity_is_not_default, change all write call sites to
4539 use type::set_endianity_is_not_default.
4540
22c4c60c
SM
45412020-09-14 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4544 uses with type::is_fixed_instance.
4545
9cdd0d12
SM
45462020-09-14 Simon Marchi <simon.marchi@efficios.com>
4547
4548 * gdbtypes.h (struct type) <is_fixed_instance,
4549 set_is_fixed_instance>: New methods.
4550 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4551 write call sites to use type::set_is_fixed_instance.
4552
0becda7a
SM
45532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4554
4555 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4556 uses with type::is_gnu_ifunc.
4557
03cc7249
SM
45582020-09-14 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4561 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4562 use type::set_is_gnu_ifunc.
4563
3f46044c
SM
45642020-09-14 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4567 uses with type::stub_is_supported.
4568
9baccff6
SM
45692020-09-14 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4572 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4573 use type::set_stub_is_supported.
4574
bd63c870
SM
45752020-09-14 Simon Marchi <simon.marchi@efficios.com>
4576
4577 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4578 uses with type::is_vector.
4579
2062087b
SM
45802020-09-14 Simon Marchi <simon.marchi@efficios.com>
4581
4582 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4583 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4584 use type::set_is_vector.
4585
a409645d
SM
45862020-09-14 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4589 uses with type::has_varargs.
4590
1d6286ed
SM
45912020-09-14 Simon Marchi <simon.marchi@efficios.com>
4592
4593 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4594 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4595 use type::set_has_varargs.
4596
7f9f399b
SM
45972020-09-14 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4600 uses with type::is_prototyped.
4601
27e69b7a
SM
46022020-09-14 Simon Marchi <simon.marchi@efficios.com>
4603
4604 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4605 New methods.
4606 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4607 call sites to use type::set_is_prototyped.
4608
d2183968
SM
46092020-09-14 Simon Marchi <simon.marchi@efficios.com>
4610
4611 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4612 uses with type::target_is_stub.
4613
8f53807e
SM
46142020-09-14 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4617 New methods.
4618 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4619 sites to use type::set_target_is_stub.
4620
e46d3488
SM
46212020-09-14 Simon Marchi <simon.marchi@efficios.com>
4622
4623 * gdbtypes.h (TYPE_STUB): Remove, replace all
4624 uses with type::is_stub.
4625
b4b73759
SM
46262020-09-14 Simon Marchi <simon.marchi@efficios.com>
4627
4628 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4629 (TYPE_STUB): Use type::is_stub, change all write call sites to
4630 use type::set_is_stub.
4631
20ce4123
SM
46322020-09-14 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4635 type::has_no_signedness.
4636
15152a54
SM
46372020-09-14 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * gdbtypes.h (struct type) <has_no_signedness,
4640 set_has_no_signedness>: New methods.
4641 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4642 call sites to use type::set_has_no_signedness.
4643
c6d940a9
SM
46442020-09-14 Simon Marchi <simon.marchi@efficios.com>
4645
4646 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4647 type::is_unsigned.
4648
653223d3
SM
46492020-09-14 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4652 methods.
4653 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4654 sites to use type::set_is_unsigned.
4655
55ea94da 46562020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4657 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4658
e851246a
SM
4659 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4660 pointer and stack frame offset when unwinding.
55ea94da 4661
6791b117
PA
46622020-09-13 Pedro Alves <pedro@palves.net>
4663
4664 * NEWS: Document "-break-insert --qualified".
4665 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4666
77f2120b
PA
46672020-09-13 Pedro Alves <pedro@palves.net>
4668
4669 * linespec.c (classify_mtype, compare_msyms): Delete.
4670 (search_minsyms_for_name): Remove classification logic. Instead
4671 filter out trampoline symbols if we also found an external
4672 function of the same name.
4673
ed6a896c
JB
46742020-09-13 Joel Brobecker <brobecker@adacore.com>
4675
4676 * NEWS: Create a new section for the next release branch.
4677 Rename the section of the current branch, now that it has
4678 been cut.
4679
32aea73e
JB
46802020-09-13 Joel Brobecker <brobecker@adacore.com>
4681
4682 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4683 * version.in: Bump version to 11.0.50.DATE-git.
4684
8087c3fa
JB
46852020-09-12 Joel Brobecker <brobecker@adacore.com>
4686
4687 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4688
2a67f09d
FW
46892020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4690 Felix Willgerodt <Felix.Willgerodt@intel.com>
4691
4692 * gdbarch.sh: Added bfloat16 type.
4693 * gdbarch.c: Regenerated.
4694 * gdbarch.h: Regenerated.
4695 * gdbtypes.c (floatformats_bfloat16): New struct.
4696 (gdbtypes_post_init): Add builtin_bfloat16.
4697 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4698 (floatformats_bfloat16): New struct.
4699 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4700 (i386_ymm_type): Add field "v16_bfloat16"
4701 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4702 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4703 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4704 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4705 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4706 * features/i386/64bit-avx512.c: Regenerated.
4707 * features/i386/64bit-sse.xml: Add bfloat16 type.
4708 * features/i386/64bit-sse.c: Regenerated.
4709
1347d111
FW
47102020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4711
4712 * i386-tdep.c (i386_zmm_type): Fix field names.
4713 (i386_ymm_type): Fix field names.
4714
7a4e8e7d
TBA
47152020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4716
4717 * breakpoint.c: Fix typo in the help message of the
4718 "set breakpoint condition-evaluation" command.
4719
cf4ac4be
KR
47202020-09-10 Kamil Rytarowski <n54@gmx.com>
4721
4722 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4723 * (nbsd_nat_target::pid_to_exec_file)
4724 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4725 (nbsd_nat_target::post_startup_inferior)
4726 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4727 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4728 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4729 * (nbsd_thread_lister): Remove.
4730
f404573e
KR
47312020-09-10 Kamil Rytarowski <n54@gmx.com>
4732
4733 * fork-inferior.c (startup_inferior): Avoid double free.
4734
1ccb2c17
KR
47352020-09-10 Kamil Rytarowski <n54@gmx.com>
4736
4737 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4738 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4739
feedfcc7
KR
47402020-09-10 Kamil Rytarowski <n54@gmx.com>
4741
4742 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4743 * netbsd-nat.c: Include <sys/ptrace.h>.
4744 * (netbsd_nat::enable_proc_events): Add.
4745
c489f8c6
KR
47462020-09-10 Kamil Rytarowski <n54@gmx.com>
4747
4748 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4749 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4750 (netbsd_nat::for_each_thread): Add.
4751 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4752 "gdbsupport/common-debug.h".
4753 * (netbsd_nat::netbsd_thread_lister)
4754 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4755 (netbsd_nat::for_each_thread): Add.
4756
330662f6
KR
47572020-09-10 Kamil Rytarowski <n54@gmx.com>
4758
4759 * netbsd-nat.h: Include <unistd.h>.
4760 * (netbsd_nat::pid_to_exec_file): Add.
4761 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4762 * (netbsd_nat::pid_to_exec_file) Add.
4763
70b67307
KR
47642020-09-10 Kamil Rytarowski <n54@gmx.com>
4765
4766 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4767
99cf6da6
KR
47682020-09-10 Kamil Rytarowski <n54@gmx.com>
4769
4770 * netbsd-nat.h: New file.
4771 * netbsd-nat.c: Likewise.
4772
1b788fb6
TT
47732020-09-09 Tom Tromey <tromey@adacore.com>
4774
4775 * ada-lang.c (remove_extra_symbols): Do not increment when
4776 removing an element
4777
03b0a45f
TT
47782020-09-08 Tom Tromey <tromey@adacore.com>
4779
4780 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4781
3cae4447
TT
47822020-09-08 Tom Tromey <tromey@adacore.com>
4783
4784 PR win32/25302:
4785 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4786 (gdb_bfd_init_data): New function.
4787 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4788
7f08fd51
TBA
47892020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4790
4791 * infrun.c (fetch_inferior_event): Use
4792 `switch_to_target_no_thread` to switch the target.
4793
3e6ff933
TT
47942020-09-06 Tom Tromey <tom@tromey.com>
4795
4796 * symfile.h (dwarf2_free_objfile): Don't declare.
4797
e56798df
AKS
47982020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4799
4800 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4801 to match 16 byte real/complex type generated by Flang compiler.
4802
8f5c6526
TV
48032020-09-03 Tom de Vries <tdevries@suse.de>
4804
4805 PR breakpoint/26546
4806 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4807 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4808
c5065df0
SM
48092020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4810
4811 * maint.c (index_digits): New function.
4812 (struct maint_print_section_data): Remove.
4813 (print_bfd_section_info): Remove print_data parameter, add arg
4814 and index_digits.
4815 (print_objfile_section_info): Likewise.
4816 (print_bfd_section_info_maybe_relocated): Likewise (plus
4817 objfile).
4818 (maintenance_info_sections): Adjust calls.
4819
02c6f3f1
TT
48202020-09-02 Tom Tromey <tromey@adacore.com>
4821
4822 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4823 for null pointers.
4824 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4825
ef5e5b0b
SM
48262020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4827
4828 * bcache.h (struct bcache) <insert>: Change type of `added` to
4829 pointer to bool.
4830 * bcache.c (bcache::insert): Likewise.
4831 * gdbtypes.c (check_types_worklist): Adjust.
4832 * psymtab.c (add_psymbol_to_bcache): Adjust.
4833
973695d6
KB
48342020-08-31 Kevin Buettner <kevinb@redhat.com>
4835
4836 * corelow.c (unordered_set): Include.
4837 (class core_target): Add field 'm_core_unavailable_mappings'.
4838 (core_target::build_file_mappings): Print only one warning
4839 per inaccessible file. Add unavailable/broken mappings
4840 to m_core_unavailable_mappings.
4841 (core_target::xfer_partial): Call...
4842 (core_target::xfer_memory_via_mappings): New method.
4843
264fc0e2
SM
48442020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4845
4846 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4847 type to bool.
4848
2de01bdb
SM
48492020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4850
4851 * dwarf2/read.c (struct field_info): Fix indentation.
4852
f3bd50f1
SM
48532020-08-31 Simon Marchi <simon.marchi@efficios.com>
4854
4855 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4856 ordering in comment.
4857 * frame.c (frame_id_eq): Fix indentation.
4858
22b9b4b0
SL
48592020-08-31 Scott Linder <scott@scottlinder.com>
4860 Simon Marchi <simon.marchi@efficios.com>
4861
4862 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4863 inline frame ids in outer frame.
4864
84154d16
SM
48652020-08-31 Simon Marchi <simon.marchi@efficios.com>
4866
4867 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4868 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4869 (outer_frame_id): Use FID_STACK_OUTER instead of
4870 FID_STACK_INVALID.
4871 (frame_id_p): Don't check for outer_frame_id.
4872
8efaf6b3
SM
48732020-08-31 Simon Marchi <simon.marchi@efficios.com>
4874
4875 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4876 regnum/frame in value. Call allocate_value_lazy.
4877 * frame.c (frame_unwind_register_value): Use
4878 val_print_not_saved.
4879
fe1fe7ea
SM
48802020-08-31 Simon Marchi <simon.marchi@efficios.com>
4881
4882 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4883
f7c7700d
PA
48842020-08-29 Pedro Alves <pedro@palves.net>
4885
4886 * progspace.c (print_program_space): Use all_inferiors. Switch to
4887 the inferior before calling target_pid_to_str.
4888
e0814aae
TT
48892020-08-28 Tom Tromey <tom@tromey.com>
4890
4891 * xcoffread.c (xcoff_end_psymtab): Update comment.
4892 * dbxread.c (dbx_end_psymtab): Update comment.
4893
626d2320
TV
48942020-08-28 Tom de Vries <tdevries@suse.de>
4895
4896 PR breakpoint/26544
4897 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4898 event_location.
4899 (create_breakpoint): Same.
4900 (base_breakpoint_decode_location): Same.
4901 (bkpt_create_sals_from_location): Same.
4902 (bkpt_decode_location): Same.
4903 (bkpt_probe_create_sals_from_location): Same.
4904 (bkpt_probe_decode_location): Same.
4905 (tracepoint_create_sals_from_location): Same.
4906 (tracepoint_decode_location): Same.
4907 (tracepoint_probe_decode_location): Same.
4908 (strace_marker_create_sals_from_location): Same.
4909 (strace_marker_decode_location): Same.
4910 (create_sals_from_location_default): Same.
4911 (decode_location_default): Same.
4912 * breakpoint.h (struct breakpoint_ops): Same.
4913 (create_breakpoint): Same.
4914 * linespec.h (decode_line_full): Same.
4915 * linespec.c (decode_line_full): Same. Throw error if
4916 result.size () == 0.
4917
df631783
PA
49182020-08-27 Pedro Alves <pedro@palves.net>
4919
4920 PR gdb/26524
4921 * breakpoint.c (until_break_fsm) <location_breakpoint,
4922 caller_breakpoint>: Delete fields.
4923 <breakpoints>: New field.
4924 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4925 two individual breakpoints.
4926 (until_break_fsm::should_stop): Loop over breakpoints in the
4927 breakpoint vector.
4928 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4929 vector.
4930 (until_break_command): Handle location expanding into multiple
4931 sals.
4932
b2b38aa4
PA
49332020-08-27 Pedro Alves <pedro@palves.net>
4934
4935 PR gdb/26523
4936 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4937 bp_until breakpoints user-specified locations. Update intro
4938 comment.
4939
b886559f
SM
49402020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4941
4942 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4943 gdb_bfd_sections): New.
4944 * maint.c (print_bfd_section_info): Change param type to
4945 maint_print_section_data.
4946 (print_objfile_section_info): Likewise.
4947 (print_bfd_section_info_maybe_relocated): Likewise.
4948 (maintenance_info_sections): Use gdb_bfd_sections.
4949
4c6e63bf
SV
49502020-08-25 Shahab Vahedi <shahab@synopsys.com>
4951
4952 * MAINTAINERS: Add ARC target and maintainer.
4953
8d7f0635
AK
49542020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4955
4956 * configure.tgt: ARC support for GNU/Linux.
4957 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4958 * arc-linux-tdep.c: New file.
4959 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4960 * arc-tdep.c (arc_write_pc): Use it.
4961
fdd8731b
SV
49622020-08-25 Shahab Vahedi <shahab@synopsys.com>
4963
4964 * arc-tdep.c (arc_check_for_hardware_loop): New.
4965 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4966
22459524
SV
49672020-08-25 Shahab Vahedi <shahab@synopsys.com>
4968
4969 * arc-tdep.h: Include "gdbarch.h".
4970
995d3a19
SV
49712020-08-25 Shahab Vahedi <shahab@synopsys.com>
4972
4973 * arch/arc.h
4974 (arc_gdbarch_features): New class to stir the selection of target XML.
4975 (arc_create_target_description): Use FEATURES to choose XML target.
4976 (arc_lookup_target_description): Use arc_create_target_description
4977 to create _new_ target descriptions or return the already created
4978 ones if the FEATURES is the same.
4979 * arch/arc.c: Implementation of prototypes described above.
4980 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4981 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4982 * arc-tdep.c (*_feature_name): Make feature names consistent.
4983 (arc_register_feature): A new struct to hold information about
4984 registers of a particular target/feature.
4985 (arc_check_tdesc_feature): Check if XML provides registers in
4986 compliance with ARC_REGISTER_FEATURE structs.
4987 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4988 (determine_*_reg_feature_set): Which feature name to look for.
4989 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4990 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4991 to expected ISA enums to be used in arc_gdbarch_features structs.
4992 * features/Makefile (FEATURE_XMLFILES): Add new files.
4993 * gdb/features/arc/v1-aux.c: New file.
4994 * gdb/features/arc/v1-aux.xml: Likewise.
4995 * gdb/features/arc/v1-core.c: Likewise.
4996 * gdb/features/arc/v1-core.xml: Likewise.
4997 * gdb/features/arc/v2-aux.c: Likewise.
4998 * gdb/features/arc/v2-aux.xml: Likewise.
4999 * gdb/features/arc/v2-core.c: Likewise.
5000 * gdb/features/arc/v2-core.xml: Likewise.
5001 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5002
3945d2d7
GM
50032020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5004 Andrew Burgess <andrew.burgess@embecosm.com>
5005
5006 PR m2/26372
fc5d6901 5007 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5008 an assert. Remove single element array indexing pattern as the
5009 MULTI_SUBSCRIPT support will handle this case too.
5010
2677f2d3
SM
50112020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5012
5013 * value.h (valprint_check_validity): Move declaration from
5014 here...
5015 * valprint.h (valprint_check_validity): ... to here.
5016
c426fddb
SM
50172020-08-24 Simon Marchi <simon.marchi@efficios.com>
5018
5019 * debug.h: New file.
5020 * debug.c (debug_prefixed_vprintf): New function.
5021 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5022 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5023
1eb8556f
SM
50242020-08-24 Simon Marchi <simon.marchi@efficios.com>
5025
5026 * infrun.h (infrun_debug_printf_1): New function declaration.
5027 (infrun_debug_printf): New macro.
5028 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5029 throughout.
5030 (infrun_debug_printf): New function.
5031 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5032 (handle_jit_event): Likewise.
5033
b8fff44e
MW
50342020-08-21 Mark Wielaard <mark@klomp.org>
5035
5036 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5037
d19c3068
SM
50382020-08-22 Simon Marchi <simon.marchi@efficios.com>
5039
5040 * frame.c (enum class frame_id_status): New.
5041 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5042 (fprintf_frame): Update.
5043 (compute_frame_id): Set frame id status to "computing" on entry.
5044 Set it back to "not_computed" on failure and to "computed" on
5045 success.
5046 (get_frame_id): Assert the frame id is not being computed.
5047 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5048 (create_new_frame): Likewise.
5049 (frame_cleanup_after_sniffer): Update assert.
5050
b70e516e
SM
50512020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5052
5053 * regcache.c (pid_ptid_regcache_map): New type.
5054 (target_ptid_regcache_map): Remove.
5055 (target_pid_ptid_regcache_map): New type.
5056 (regcaches): Change type to target_pid_ptid_regcache_map.
5057 (get_thread_arch_aspace_regcache): Update.
5058 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5059 case.
5060 (regcaches_size): Update.
5061 (regcache_count): Update.
5062 (registers_changed_ptid_target_pid_test): New.
5063 (_initialize_regcache): Register new test.
5064
cdd9148a
SM
50652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5066
5067 * regcache.c (regcache_count): New.
5068 (struct regcache_test_data): New.
5069 (regcache_test_data_up): New.
5070 (populate_regcaches_for_test): New.
5071 (regcaches_test): Remove.
5072 (get_thread_arch_aspace_regcache_test): New.
5073 (registers_changed_ptid_all_test): New.
5074 (registers_changed_ptid_target_test): New.
5075 (registers_changed_ptid_target_ptid_test): New.
5076 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5077 (_initialize_regcache): Register new tests.
5078
dd125343
SM
50792020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5080
5081 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5082 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5083 gdbarch and aspace parameter. Use current inferior's aspace.
5084 Validate regcache's arch value.
5085 (regcaches_test): Update.
5086
3ee93972
SM
50872020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5088
5089 * regcache.c (regcaches_test): Call registers_changed.
5090
33bf4c5c
TBA
50912020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5092
5093 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5094
c2fd7fae
AKS
50952020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5096
5097 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5098 to find the end of prologue for flang compiled binaries.
5099 * arm-tdep.c (arm_skip_prologue): Likewise.
5100 * i386-tdep.c (i386_skip_prologue): Likewise.
5101 * producer.c (producer_is_llvm): New function.
5102 (producer_parsing_tests): Added new tests for clang/flang.
5103 * producer.h (producer_is_llvm): New declaration.
5104
9327494e
SM
51052020-08-18 Simon Marchi <simon.marchi@efficios.com>
5106
5107 * linux-nat.c (linux_nat_debug_printf): New function.
5108 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5109
d138725a
AM
51102020-08-18 Aaron Merey <amerey@redhat.com>
5111
5112 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5113 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5114 (CLIBS): Add DEBUGINFOD_LIBS.
5115
f9b11e6b
ST
51162020-08-17 Sergei Trofimovich <siarheit@google.com>
5117
5118 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5119 'gdbarch_num_regs'.
5120
3ae7ab99
TT
51212020-08-17 Tom Tromey <tromey@adacore.com>
5122
5123 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5124 ada_get_decoded_value returns NULL.
5125
b017825f
TT
51262020-08-17 Tom Tromey <tromey@adacore.com>
5127
5128 * python/py-inferior.c (infpy_search_memory): Use
5129 gdb_py_object_from_ulongest.
5130 * python/py-infevents.c (create_inferior_call_event_object)
5131 (create_memory_changed_event_object): Use
5132 gdb_py_object_from_ulongest.
5133 * python/py-linetable.c (ltpy_entry_get_pc): Use
5134 gdb_py_object_from_ulongest.
5135
7635cf79
SM
51362020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5137
5138 * loc.c (class symbol_needs_eval_context): Fix indentation.
5139
f54be24b
SM
51402020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5141
5142 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5143 bool.
5144
53d5a2a5
TV
51452020-08-17 Tom de Vries <tdevries@suse.de>
5146
5147 PR gdb/26393
5148 * gdbtypes.c (dump_dynamic_prop): New function.
5149 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5150
547ce8f0
TV
51512020-08-15 Tom de Vries <tdevries@suse.de>
5152
5153 PR backtrace/26390
5154 * stack.c (print_frame_args): Temporarily set the selected
5155 frame to FRAME while printing the frame's arguments.
5156
6ea815e7
PFC
51572020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5158
5159 PR breakpoints/26385
5160 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5161 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5162
6e562fa3
PFC
51632020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5164
5165 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5166 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5167 and >= to check return value instead of == -1 and != -1.
5168
d369b608
SM
51692020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5170
5171 * utils.h (class gdb_argv) <as_array_view>: New method.
5172 * utils.c (gdb_argv_as_array_view_test): New.
5173 (_initialize_utils): Register selftest.
5174 * maint.c (maintenance_selftest): Use the new method.
5175
b31488a3
KR
51762020-08-13 Kamil Rytarowski <n54@gmx.com>
5177
5178 * target.h (supports_dumpcore, dumpcore): New
5179 function declarations.
5180 * target.c (supports_dumpcore, dumpcore): New
5181 functions.
5182 * target-delegates.c: Rebuild.
5183 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5184 and target_dumpcore ().
5185
002a3166
AM
51862020-08-13 Aaron Merey <amerey@redhat.com>
5187
5188 * debuginfod-support.c: Replace global variables with user_data.
5189
ece5bc8a
SM
51902020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5191
5192 * maint.c (maintenance_selftest): Split args and pass array_view
5193 to run_tests.
5194
6d8a0a5e
LM
51952020-08-12 Luis Machado <luis.machado@linaro.org>
5196
5197 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5198 type's length.
5199 Use %s and pulongest to print the length.
5200
7cf663a9
PA
52012020-08-12 Pedro Alves <palves@redhat.com>
5202
5203 * NEWS: Move "Multi-target debugging support" item to the
5204 "Changes since GDB 9" section.
5205
27c7b875
PA
52062020-08-12 Pedro Alves <palves@redhat.com>
5207
5208 PR gdb/26336
5209 * progspace.c (program_space::remove_objfile): Invalidate the
5210 frame cache.
5211
1796a2a1
TV
52122020-08-11 Tom de Vries <tdevries@suse.de>
5213
5214 * MAINTAINERS: Mark ms1 as deleted.
5215
f8e3fe0d
LM
52162020-08-10 Luis Machado <luis.machado@linaro.org>
5217
5218 PR gdb/26310
5219
5220 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5221 act accordingly.
5222 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5223 movz/str/stur/stp skipping behavior.
5224
cc308722
LM
52252020-08-10 Luis Machado <luis.machado@linaro.org>
5226
5227 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5228 struct user_sve_header instead of struct sve_context.
5229
041d9819
SM
52302020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5231
5232 * read.h (dwarf2_fetch_die_loc_sect_off,
5233 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5234 `void *` parameter with function_view.
5235 * read.c (dwarf2_fetch_die_loc_sect_off,
5236 dwarf2_fetch_die_loc_cu_off): Likewise.
5237 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5238 (per_cu_dwarf_call): Adjust.
5239 (get_frame_address_in_block_wrapper): Remove.
5240 (indirect_synthetic_pointer): Adjust.
5241 (get_ax_pc): Remove.
5242 (dwarf2_compile_expr_to_ax): Adjust.
5243
38f8aa06
TV
52442020-08-08 Tom de Vries <tdevries@suse.de>
5245
5246 PR build/26344
5247 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5248 constructor.
5249 * regcache.c (get_thread_arch_aspace_regcache): Same.
5250
a52b3ae2
TT
52512020-08-07 Tom Tromey <tromey@adacore.com>
5252
5253 * ravenscar-thread.c
5254 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5255 New method.
5256 (ravenscar_thread_target::wait): Check
5257 runtime_initialized.
5258 (ravenscar_thread_target::prepare_to_store)
5259 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5260 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5261 (ravenscar_thread_target::stopped_by_watchpoint)
5262 (ravenscar_thread_target::stopped_data_address)
5263 (ravenscar_thread_target::core_of_thread): Use
5264 scoped_restore_current_thread and
5265 set_base_thread_from_ravenscar_task.
5266
0e29517d
TT
52672020-08-07 Tom Tromey <tromey@adacore.com>
5268
5269 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5270
592f9bd7
TT
52712020-08-07 Tom Tromey <tromey@adacore.com>
5272
5273 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5274 update_inferior_ptid before update_thread_list.
5275 (temporarily_change_regcache_ptid): New class.
5276 (ravenscar_thread_target::fetch_registers)
5277 (ravenscar_thread_target::store_registers)
5278 (ravenscar_thread_target::prepare_to_store): Use base thread when
5279 forwarding operation.
5280
39e2018a
TT
52812020-08-07 Tom Tromey <tromey@adacore.com>
5282
5283 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5284 "is_pid" case.
5285
2080266b
TT
52862020-08-07 Tom Tromey <tromey@adacore.com>
5287
5288 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5289 New methods.
5290 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5291 first.
5292 (ravenscar_thread_target::add_thread): Rename from
5293 ravenscar_add_thread.
5294 (ravenscar_thread_target::update_thread_list): Use a lambda.
5295 (ravenscar_thread_target::xfer_partial): New method.
5296
78c02f21
TT
52972020-08-07 Tom Tromey <tromey@adacore.com>
5298
5299 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5300 gdb::function_view.
5301 (iterate_over_live_ada_tasks): Change type of argument.
5302 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5303 of argument.
5304
d5d833af
TT
53052020-08-07 Tom Tromey <tromey@adacore.com>
5306
5307 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5308 Remove.
5309 (ravenscar_thread_target::extra_thread_info): Remove.
5310 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5311 defer to target beneath for non-Ravenscar threads.
5312
a8ac85bb
TT
53132020-08-07 Tom Tromey <tromey@adacore.com>
5314
5315 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5316 get_base_thread_from_ravenscar_task>: Now methods.
5317 <m_cpu_map>: New member.
5318 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5319 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5320 (ravenscar_thread_target::task_is_currently_active): Update.
5321 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5322 Now a method.
5323 (ravenscar_thread_target::add_active_thread): Put initial thread
5324 into the m_cpu_map.
5325
550ab58d
TT
53262020-08-07 Tom Tromey <tromey@adacore.com>
5327
5328 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5329 event_ptid.
5330
e9546579
TT
53312020-08-07 Tom Tromey <tromey@adacore.com>
5332
5333 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5334 runtime_initialized.
5335
3d4470e5
TT
53362020-08-07 Tom Tromey <tromey@adacore.com>
5337
5338 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5339 add_active_thread.
5340 (ravenscar_thread_target::add_active_thread): Now public.
5341 (ravenscar_inferior_created): Call add_active_thread after pushing
5342 the target.
5343
888bdb2b
SM
53442020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5345
5346 * regcache.c (ptid_regcache_map): New type.
5347 (target_ptid_regcache_map): New type.
5348 (regcaches): Change type to target_ptid_regcache_map.
5349 (get_thread_arch_aspace_regcache): Update to regcaches' new
5350 type.
5351 (regcache_thread_ptid_changed): Likewise.
5352 (registers_changed_ptid): Likewise.
5353 (regcaches_size): Likewise.
5354 (regcaches_test): Update.
5355 (regcache_thread_ptid_changed): Update.
5356 * regcache.h (regcache_up): New type.
5357 * gdbsupport/ptid.h (hash_ptid): New struct.
5358
b161a60d
SM
53592020-08-07 Simon Marchi <simon.marchi@efficios.com>
5360
5361 * observable.h (thread_ptid_changed): Add parameter
5362 `process_stratum_target *`.
5363 * infrun.c (infrun_thread_ptid_changed): Add parameter
5364 `process_stratum_target *` and use it.
5365 (selftests): New namespace.
5366 (infrun_thread_ptid_changed): New function.
5367 (_initialize_infrun): Register selftest.
5368 * regcache.c (regcache_thread_ptid_changed): Add parameter
5369 `process_stratum_target *` and use it.
5370 (regcache_thread_ptid_changed): New function.
5371 (_initialize_regcache): Register selftest.
5372 * thread.c (thread_change_ptid): Pass target to
5373 thread_ptid_changed observable.
5374
d2854d8d
CT
53752020-08-06 Caroline Tice <cmtice@google.com>
5376
fe4c3d43
SM
5377 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5378 (struct dwp_sections): Update field comments. Add loclists and
5379 rnglists fields.
5380 (struct virtual_v2_dwo_sections): Rename struct to
5381 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5382 size & offset fields for loclists and rnglists.
5383 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5384 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5385 skipping dummy type units.
5386 (create_dwp_hash_table): Update the large comment above the function to
5387 discuss Version 5 DWP files as well, with references. Update all the
5388 version checks in the function to check for version 5 as well. Add new
5389 section at the end to create dwp hash table for version 5.
5390 (create_dwp_v2_section): Rename function to
5391 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5392 Add V5 to error message text.
5393 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5394 into calls to create_dwp_v2_or_v5_section.
5395 (create_dwo_unit_in_dwp_v5): New function.
5396 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5397 check for version2; add else clause to handle version 5.
5398 (open_and_init_dwo_file): Add code to check dwarf version & only call
5399 create_debug_types_hash_table (with sections.types) if version is not 5;
5400 else call create_debug_type_hash_table, with sections.info.
5401 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5402 version 5.
5403 (dwarf2_locate_v5_dwp_sections): New function.
5404 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5405 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5406
159ed7d9
SM
54072020-08-06 Simon Marchi <simon.marchi@efficios.com>
5408
5409 * regcache.h (class regcache): Remove friend
5410 registers_changed_ptid.
5411 <regcache_thread_ptid_changed>: Remove.
5412 <regcaches>: Remove.
5413 * regcache.c (regcache::regcaches): Rename to...
5414 (regcaches): ... this. Make static.
5415 (get_thread_arch_aspace_regcache): Update.
5416 (regcache::regcache_thread_ptid_changed): Rename to...
5417 (regcache_thread_ptid_changed): ... this. Update.
5418 (class regcache_access): Remove.
5419 (regcaches_test): Update.
5420 (_initialize_regcache): Update.
5421 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5422 <forward_list>.
5423
174981ae
SM
54242020-08-06 Simon Marchi <simon.marchi@efficios.com>
5425
5426 * regcache.h (class regcache) <current_regcache>: Rename to...
5427 <regcaches>: ... this. Move doc here.
5428 * regcache.c (regcache::current_regcache) Rename to...
5429 (regcache::regcaches): ... this. Move doc to header.
5430 (get_thread_arch_aspace_regcache): Update.
5431 (regcache::regcache_thread_ptid_changed): Update.
5432 (registers_changed_ptid): Update.
5433 (class regcache_access) <current_regcache_size>: Rename to...
5434 <regcaches_size>: ... this.
5435 (current_regcache_test): Rename to...
5436 (regcaches_test): ... this.
5437 (_initialize_regcache): Update.
5438
ed908db6
VC
54392020-08-06 Victor Collod <vcollod@nvidia.com>
5440
5441 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5442
b5582ab7
KB
54432020-08-05 Kevin Buettner <kevinb@redhat.com>
5444
5445 * corelow.c (core_target::build_file_mappings): Don't output
5446 null pathname in warning.
5447
ea946b86
SM
54482020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5449
5450 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5451 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5452 gdb.dwarf2/dw2-single-line-discriminators.exp,
5453 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5454
57d02173
TT
54552020-08-05 Tom Tromey <tromey@adacore.com>
5456
5457 PR rust/26197:
5458 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5459 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5460 Fix off-by-one and type size errors in ordinary case.
5461
5555c86d
TV
54622020-08-05 Tom de Vries <tdevries@suse.de>
5463
5464 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5465 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5466
97916bfe
SM
54672020-08-04 Simon Marchi <simon.marchi@efficios.com>
5468
5469 * frame.h (frame_id_p): Return bool.
5470 (frame_id_artificial_p): Return bool.
5471 (frame_id_eq): Return bool.
5472 (has_stack_frames): Return bool.
5473 (get_selected_frame): Fix typo in comment.
5474 (get_frame_pc_if_available): Return bool.
5475 (get_frame_address_in_block_if_available): Return bool.
5476 (get_frame_func_if_available): Return bool.
5477 (read_frame_register_unsigned): Return bool.
5478 (get_frame_register_bytes): Return bool.
5479 (safe_frame_unwind_memory): Return bool.
5480 (deprecated_frame_register_read): Return bool.
5481 (frame_unwinder_is): Return bool.
5482 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5483 bool.
5484 <this_id::p>: Likewise.
5485 <prev_p>: Likewise.
5486 (frame_stash_add): Return bool.
5487 (get_frame_id): Use bool.
5488 (frame_id_build_special) Use bool.
5489 (frame_id_build_unavailable_stack): Use bool.
5490 (frame_id_build): Use bool.
5491 (frame_id_p): Return bool, use true/false instead of 1/0.
5492 (frame_id_artificial_p): Likewise.
5493 (frame_id_eq): Likewise.
5494 (frame_id_inner): Likewise.
5495 (get_frame_func_if_available): Likewise.
5496 (read_frame_register_unsigned): Likewise.
5497 (deprecated_frame_register_read): Likewise.
5498 (get_frame_register_bytes): Likewise.
5499 (has_stack_frames): Likewise.
5500 (inside_main_func): Likewise.
5501 (inside_entry_func): Likewise.
5502 (get_frame_pc_if_available): Likewise.
5503 (get_frame_address_in_block_if_available): Likewise.
5504 (frame_unwinder_is): Likewise.
5505 (safe_frame_unwind_memory): Likewise.
5506 (frame_unwind_arch): Likewise.
5507
fedfee88
SM
55082020-08-04 Simon Marchi <simon.marchi@efficios.com>
5509
5510 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5511 type to cached_copy_status.
5512 (fprintf_frame): Adjust.
5513 (get_frame_func_if_available): Adjust.
5514 (frame_cleanup_after_sniffer): Adjust.
5515
6cfa9b59
MW
55162020-08-04 Mark Wielaard <mark@klomp.org>
5517
5518 * MAINTAINERS (Write After Approval): Update email address.
5519
66d6346b
SM
55202020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5521
5522 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5523 dynamic_prop::const_val.
5524
8a6d5e35
SM
55252020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5526
5527 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5528 dynamic_prop::kind.
5529
51d6067d
SM
55302020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5531
5532 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5533
b26e2ae7
JM
55342020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5535
5536 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5537
39791af2
JM
55382020-08-04 Weimin Pan <weimin.pan@oracle.com>
5539 Jose E. Marchesi <jose.marchesi@oracle.com>
5540
5541 * configure.tgt: Add entry for bpf-*-*.
5542 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5543 (ALLDEPFILES): Add bpf-tdep.c.
5544 * bpf-tdep.c: New file.
5545 * MAINTAINERS: Add bpf target and maintainer.
5546 * NEWS: Mention the support for the new target.
5547
521894aa
TV
55482020-08-04 Tom de Vries <tdevries@suse.de>
5549
5550 PR symtab/23270
5551 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5552 Error.
5553
5d6356e9
JB
55542020-08-03 John Baldwin <jhb@FreeBSD.org>
5555
5556 * syscalls/freebsd.xml: Regenerate.
5557
0cf82b81
JB
55582020-08-03 John Baldwin <jhb@FreeBSD.org>
5559
5560 * syscalls/update-freebsd.sh: Fix usage and year range.
5561
8f34b746
TV
55622020-08-03 Tom de Vries <tdevries@suse.de>
5563
5564 PR symtab/26333
5565 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5566 DW_LNE_lo_user/DW_LNE_hi_user range.
5567
5e500d33
SM
55682020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5569
5570 PR ada/26318
5571 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5572 kind.
5573
78319c15
TBA
55742020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5575
5576 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5577
4c55e970
TBA
55782020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5579
5580 * breakpoint.c (set_breakpoint_condition): Update the condition
5581 expressions after checking that the input condition string parses
5582 successfully and does not contain junk at the end.
5583
1e620590
TBA
55842020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5585
5586 * breakpoint.c (set_breakpoint_condition): Update the
5587 condition string after parsing the new condition successfully.
5588
c8693053
RO
55892020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5590
5591 * proc-api.c (_STRUCTURED_PROC): Don't define.
5592 * proc-events.c: Likewise.
5593 * proc-flags.c: Likewise.
5594 * proc-why.c: Likewise.
5595 * procfs.c: Likewise.
5596
5597 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5598 * configure, config.in: Regenerate.
5599
5a99adb8
TV
56002020-07-30 Tom de Vries <tdevries@suse.de>
5601
5602 PR build/26320
5603 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5604 m_red/m_green/m_blue in a union.
5605
8ba83e91
TV
56062020-07-29 Tom de Vries <tdevries@suse.de>
5607
5608 PR tdep/26280
5609 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5610
f75a0693
AB
56112020-07-28 Tom Tromey <tromey@adacore.com>
5612
5613 PR symtab/26270:
5614 * symtab.h (find_pc_partial_function_sym): Declare.
5615 * cli/cli-cmds.c (disassemble_command): Use
5616 find_pc_partial_function_sym. Check asm_demangle.
5617 * blockframe.c (cache_pc_function_sym): New global.
5618 (cache_pc_function_name): Remove.
5619 (clear_pc_function_cache): Update.
5620 (find_pc_partial_function_sym): New function, from
5621 find_pc_partial_function.
5622 (find_pc_partial_function): Rewrite using
5623 find_pc_partial_function_sym.
5624
16f3242c
TT
56252020-07-28 Tom Tromey <tromey@adacore.com>
5626
5627 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5628 help. Add usage.
5629
4888741a
TT
56302020-07-28 Tom Tromey <tromey@adacore.com>
5631
5632 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5633 <DW_OP_GNU_variable_value>: Cast to address type.
5634
4d46f402
KR
56352020-07-28 Kamil Rytarowski <n54@gmx.com>
5636
5637 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5638 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5639 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5640 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5641 (nbsd_get_siginfo_type): New.
5642 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5643 (_initialize_nbsd_tdep): New.
5644
d70f978b
L
56452020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5646
5647 PR binutils/26301
5648 * configure: Regenerated.
5649
377170fa
L
56502020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5651
5652 PR binutils/26301
5653 * configure: Regenerated.
5654
43d5901d
AB
56552020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5656
5657 * python/py-frame.c: Remove 'user-regs.h' include.
5658 (frapy_read_register): Rewrite to make use of
5659 gdbpy_parse_register_id.
5660 * python/py-registers.c (gdbpy_parse_register_id): New function,
5661 moved here from python/py-unwind.c. Updated the return type, and
5662 also accepts register descriptor objects.
5663 * python/py-unwind.c: Remove 'user-regs.h' include.
5664 (pyuw_parse_register_id): Moved to python/py-registers.c.
5665 (unwind_infopy_add_saved_register): Update to use
5666 gdbpy_parse_register_id.
5667 (pending_framepy_read_register): Likewise.
5668 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5669
14fa8fb3
AB
56702020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5671
5672 * python/py-registers.c: Add 'user-regs.h' include.
5673 (register_descriptor_iter_find): New function.
5674 (register_descriptor_iterator_object_methods): New static global
5675 methods array.
5676 (register_descriptor_iterator_object_type): Add pointer to methods
5677 array.
5678
ddce1758
JB
56792020-07-27 John Baldwin <jhb@FreeBSD.org>
5680
5681 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5682 for all architectures on FreeBSD 11.3 and later.
5683
a4089f52
TT
56842020-07-27 Tom Tromey <tromey@adacore.com>
5685
5686 * gcore.h (load_corefile): Don't declare.
5687
95420d30
TV
56882020-07-27 Tom de Vries <tdevries@suse.de>
5689
5690 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5691 * config.in: Regenerate.
5692 * configure: Regenerate.
5693
05a6b8c2
EZ
56942020-07-26 Eli Zaretskii <eliz@gnu.org>
5695
5696 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5697 ws2tcpip.h. When checking whether socklen_t type is defined, use
5698 ws2tcpip.h if it is available and sys/socket.h isn't.
5699 * configure: Regenerate.
5700 * config.in: Regenerate.
5701
e79eb02f
AB
57022020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5703
5704 PR fortran/23051
5705 PR fortran/26139
5706 * valops.c (value_ind): Pass address to
5707 readjust_indirect_value_type.
5708 * value.c (readjust_indirect_value_type): Make parameter
5709 non-const, and add extra address parameter. Resolve original type
5710 before using it.
5711 * value.h (readjust_indirect_value_type): Update function
5712 signature and comment.
5713
876518dd
TV
57142020-07-25 Tom de Vries <tdevries@suse.de>
5715
5716 PR symtab/26243
5717 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5718 entries.
5719
f6720b1c
AM
57202020-07-24 Aaron Merey <amerey@redhat.com>
5721
5722 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5723 * configure: Rebuild.
5724
513487e1
KB
57252020-07-23 Kevin Buettner <kevinb@redhat.com>
5726
5727 PR corefiles/26294
5728 * corelow.c (_initialize_corelow): Add period to help text
5729 for "maintenance print core-file-backed-mappings".
5730
e7bc9db8
PA
57312020-07-23 Pedro Alves <pedro@palves.net>
5732
5733 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5734 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5735 meanwhile.
5736 * frame.c (frame_cache_generation, get_frame_cache_generation):
5737 New.
5738 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5739 (get_prev_frame_if_no_cycle): On exception, don't touch
5740 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5741 * frame.h (get_frame_cache_generation): Declare.
5742
90fcc466
TV
57432020-07-23 Tom de Vries <tdevries@suse.de>
5744
5745 PR tui/26282
5746 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5747 New default constructor.
5748
78344df7
AB
57492020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5750
5751 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5752 exclude non-statement entries.
5753
b089853a
KB
57542020-07-22 Kevin Buettner <kevinb@redhat.com>
5755
5756 * NEWS (New commands): Mention new command
5757 "maintenance print core-file-backed-mappings".
5758
09c2f5d4
KB
57592020-07-22 Kevin Buettner <kevinb@redhat.com>
5760
5761 * corelow.c (gdbcmd.h): Include.
5762 (core_target::info_proc_mappings): New method.
5763 (get_current_core_target): New function.
5764 (maintenance_print_core_file_backed_mappings): New function.
5765 (_initialize_corelow): Add core-file-backed-mappings to
5766 "maint print" commands.
5767
9c5ec5c2 57682020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5769
9c5ec5c2
KB
5770 * linux-tdep.c (dump_note_entry_p): New function.
5771 (linux_dump_mapping_p_ftype): New typedef.
5772 (linux_find_memory_regions_full): Add new parameter,
5773 should_dump_mapping_p.
5774 (linux_find_memory_regions): Adjust call to
5775 linux_find_memory_regions_full.
5776 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5777 call to linux_find_memory_regions_full.
5778
db082f59
KB
57792020-07-22 Kevin Buettner <kevinb@redhat.com>
5780
5781 * corelow.c (solist.h, unordered_map): Include.
5782 (class core_target): Add field m_core_file_mappings and
5783 method build_file_mappings.
5784 (core_target::core_target): Call build_file_mappings.
5785 (core_target::~core_target): Free memory associated with
5786 m_core_file_mappings.
5787 (core_target::build_file_mappings): New method.
5788 (core_target::xfer_partial): Use m_core_file_mappings
5789 for memory transfers.
5790 * linux-tdep.c (linux_read_core_file_mappings): New
5791 function.
5792 (linux_core_info_proc_mappings): Rewrite to use
5793 linux_read_core_file_mappings.
5794 (linux_init_abi): Register linux_read_core_file_mappings.
5795
7e183d27
KB
57962020-07-22 Kevin Buettner <kevinb@redhat.com>
5797
5798 * arch-utils.c (default_read_core_file_mappings): New function.
5799 * arch-utils.c (default_read_core_file_mappings): Declare.
5800 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5801 * gdbarch.h, gdbarch.c: Regenerate.
5802
2735d421
KB
58032020-07-22 Kevin Buettner <kevinb@redhat.com>
5804
5805 PR corefiles/25631
5806 * corelow.c (core_target:xfer_partial): Revise
5807 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5808 case after first checking the stratum beneath the core
5809 target.
5810 (has_all_memory): Return true.
5811 * target.c (raw_memory_xfer_partial): Revise comment
5812 regarding use of has_all_memory.
5813
e56cb451
KB
58142020-07-22 Kevin Buettner <kevinb@redhat.com>
5815
5816 * exec.h (section_table_xfer_memory): Revise declaration,
5817 replacing section name parameter with an optional callback
5818 predicate.
5819 * exec.c (section_table_xfer_memory): Likewise.
5820 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5821 of section_table_xfer_memory.
5822
32fa152e
TT
58232020-07-22 Tom Tromey <tromey@adacore.com>
5824
5825 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5826 lookup_symbol_search_name.
5827
a67a1c41
AB
58282020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5829
5830 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5831 redundant local variable.
5832 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5833 reference, not pointer, update code accordingly.
5834
a7b4ff4f
SM
58352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5836 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5837
5838 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5839 * jit.c (jit_breakpoint_re_set_internal): Use the
5840 `skip_jit_symbol_lookup` field.
5841
2340e834
SM
58422020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5843 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5844
5845 * jit.c (jit_read_descriptor): Define the descriptor address once,
5846 use twice.
5847 (jit_breakpoint_deleted): Move the declaration of the loop variable
5848 `iter` into the loop header.
5849 (jit_breakpoint_re_set_internal): Move the declaration of the local
5850 variable `objf_data` to the first point of definition.
5851 (jit_event_handler): Move the declaration of local variables
5852 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5853 Rename `objf` to `jited`.
5854
c1072906
SM
58552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5856
5857 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5858 Remove.
5859 * jit.c (get_jiter_objfile_data): Update.
5860
c8474dc3
TBA
58612020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5862 Simon Marchi <simon.marchi@polymtl.ca>
5863
5864 * jit.c (struct jit_program_space_data): Remove.
5865 (jit_program_space_key): Remove.
5866 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5867 stuff.
5868 (get_jit_program_space_data): Remove.
5869 (jit_breakpoint_deleted): Iterate on all of the program space's
5870 objfiles.
5871 (jit_inferior_init): Likewise.
5872 (jit_breakpoint_re_set_internal): Likewise. Also change return
5873 type to void.
5874 (jit_breakpoint_re_set): Pass current_program_space to
5875 jit_breakpoint_re_set_internal.
5876
77208eb7
SM
58772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5878
5879 * jit.h (struct jiter_objfile_data) <cached_code_address,
5880 jit_breakpoint>: Move to here from ...
5881 * jit.c (jit_program_space_data): ... here.
5882 (jiter_objfile_data::~jiter_objfile_data): Update.
5883 (jit_breakpoint_deleted): Update.
5884 (jit_breakpoint_re_set_internal): Update.
5885
8c1c720f
SM
58862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5887
5888 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5889 checks.
5890 (jit_read_descriptor): Remove NULL check.
5891 (jit_event_handler): Add an assertion.
5892
0e74a041
SM
58932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5894
5895 * jit.h (struct jit_objfile_data): Split into...
5896 (struct jiter_objfile_data): ... this ...
5897 (struct jited_objfile_data): ... and this.
5898 * objfiles.h (struct objfile) <jit_data>: Remove.
5899 <jiter_data, jited_data>: New fields.
5900 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5901 (jiter_objfile_data::~jiter_objfile_data): ... this.
5902 (get_jit_objfile_data): Rename to ...
5903 (get_jiter_objfile_data): ... this.
5904 (add_objfile_entry): Update.
5905 (jit_read_descriptor): Use get_jiter_objfile_data.
5906 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5907 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5908 (jit_inferior_exit_hook): Use objfile's jited_data field.
5909
238b5c9f
SM
59102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5911
5912 * jit.h: Forward-declare `struct minimal_symbol`.
5913 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5914 constructor, destructor, and an objfile* field.
5915 * jit.c (jit_objfile_data): Remove.
5916 (struct jit_objfile_data): Migrate from here to jit.h.
5917 (jit_objfile_data::~jit_objfile_data): New destructor
5918 implementation with code moved from free_objfile_data.
5919 (free_objfile_data): Delete.
5920 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5921 (jit_find_objf_with_entry_addr): Ditto.
5922 (jit_inferior_exit_hook): Ditto.
5923 (_initialize_jit): Remove the call to
5924 register_objfile_data_with_cleanup.
5925 * objfiles.h (struct objfile) <jit_data>: New field.
5926
fe053b9e
TBA
59272020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5928
5929 * jit.h: Forward-declare `struct objfile`.
5930 (jit_event_handler): Add a second parameter, the JITer objfile.
5931 * jit.c (jit_read_descriptor): Change the signature to take the
5932 JITer objfile as an argument instead of the jit_program_space_data.
5933 (jit_inferior_init): Update the call to jit_read_descriptor.
5934 (jit_event_handler): Use the new JITer objfile argument when calling
5935 jit_read_descriptor.
5936 * breakpoint.c (handle_jit_event): Update the call to
5937 jit_event_handler to pass the JITer objfile.
5938
4cec0c66
JB
59392020-07-21 John Baldwin <jhb@FreeBSD.org>
5940
5941 * gdbarch.c: Regenerate.
5942 * gdbarch.h: Regenerate.
5943 * gdbarch.sh (handle_segmentation_fault): Remove method.
5944 * infrun.c (handle_segmentation_fault): Remove.
5945 (print_signal_received_reason): Remove call to
5946 handle_segmentation_fault.
5947
0e42f66a
JB
59482020-07-21 John Baldwin <jhb@FreeBSD.org>
5949
5950 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5951 Rename to sparc64_linux_report_signal_info and add siggnal
5952 argument.
5953 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5954 instead of sparc64_linux_handle_segmentation_fault.
5955
77bdfeb2
JB
59562020-07-21 John Baldwin <jhb@FreeBSD.org>
5957
5958 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5959 i386_linux_report_signal_info instead of
5960 i386_linux_handle_segmentation_fault.
5961 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5962 to i386_linux_report_signal_info and add siggnal argument.
5963 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5964 of i386_linux_handle_segmentation_fault.
5965 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5966 to i386_linux_report_signal_info and add siggnal argument.
5967
ad97bfc5
JB
59682020-07-21 John Baldwin <jhb@FreeBSD.org>
5969
5970 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5971 hook if present.
5972
272bb05c
JB
59732020-07-21 John Baldwin <jhb@FreeBSD.org>
5974
5975 * gdbarch.c: Regenerate.
5976 * gdbarch.h: Regenerate.
5977 * gdbarch.sh (report_signal_info): New method.
5978 * infrun.c (print_signal_received_reason): Invoke gdbarch
5979 report_signal_info hook if present.
5980
baf8791e
AB
59812020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5982
5983 * python/py-registers.c : Add 'unordered_map' include.
5984 (gdbpy_new_reggroup): Renamed to...
5985 (gdbpy_get_reggroup): ...this. Update to only create register
5986 group descriptors when needed.
5987 (gdbpy_reggroup_iter_next): Update.
5988
f7306dac
AB
59892020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5990
5991 * python/py-registers.c (gdbpy_register_object_data): New static
5992 global.
5993 (gdbpy_register_object_data_init): New function.
5994 (gdbpy_new_register_descriptor): Renamed to...
5995 (gdbpy_get_register_descriptor): ...this, and update to reuse
5996 existing register descriptors where possible.
5997 (gdbpy_register_descriptor_iter_next): Update.
5998 (gdbpy_initialize_registers): Register new gdbarch data.
5999
05c309a8
SM
60002020-07-21 Simon Marchi <simon.marchi@efficios.com>
6001
6002 * linux-nat.c (stopped_pids): Make static.
6003
d1fd641e
SM
60042020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6005
6006 PR ada/26235
6007 * gdbtypes.c (ada_discrete_type_low_bound,
6008 ada_discrete_type_high_bound): Handle undefined bounds.
6009
1de14d77
KR
60102020-07-21 Kamil Rytarowski <n54@gmx.com>
6011
6012 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6013 declaration.
6014 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6015 function.
6016
ed810cc7
JB
60172020-07-20 John Baldwin <jhb@FreeBSD.org>
6018
6019 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6020 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6021 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6022 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6023 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6024 method.
6025
ae5369e7
LC
60262020-07-20 Ludovic Courtès <ludo@gnu.org>
6027
6028 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6029 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6030 which are deprecated in Guile 3.0.
6031 * configure.ac (try_guile_versions): Add "guile-3.0".
6032 * configure (try_guile_versions): Regenerate.
6033 * NEWS: Update entry.
6034
68cf161c
LC
60352020-07-20 Ludovic Courtès <ludo@gnu.org>
6036 Doug Evans <dje@google.com>
6037
6038 PR gdb/21104
6039 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6040 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6041 USING_GUILE_BEFORE_2_2.
6042 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6043 Change type to 'scm_t_port_type *'.
6044 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6045 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6046 parameter and honor it. Update callers.
6047 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6048 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6049 functions.
6050 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6051 USING_GUILE_BEFORE_2_2.
6052 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6053 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6054 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6055 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6056 and 'SCM_PORT_TYPE'.
6057 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6058 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6059 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6060 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6061 [!USING_GUILE_BEFORE_2_2]: New functions.
6062 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6063 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6064 'gdbscm_memory_port_read'.
6065 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6066 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6067 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6068 function.
6069 (ioscm_init_memory_port): Remove.
6070 (ioscm_init_memory_port_stream): New function
6071 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6072 function.
6073 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6074 Return scm_from_uint (0).
6075 (gdbscm_set_memory_port_read_buffer_size_x)
6076 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6077 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6078 Return scm_from_uint (0).
6079 (gdbscm_set_memory_port_write_buffer_size_x)
6080 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6081 * configure.ac (try_guile_versions): Add "guile-2.2".
6082 * configure: Regenerate.
6083 * NEWS: Add entry.
6084
aee91db3
TT
60852020-07-18 Tom Tromey <tom@tromey.com>
6086
6087 * linux-nat.c (linux_multi_process): Remove.
6088 (linux_nat_target::supports_multi_process): Return true.
6089
0e267416
AB
60902020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6091
6092 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6093 (riscv_lookup_target_description): Return pointer out of
6094 unique_ptr.
6095 * target-descriptions.c (allocate_target_description): Add
6096 comment.
6097 (target_desc_deleter::operator()): Likewise.
6098 * target-descriptions.h (struct target_desc_deleter): Moved to
6099 gdbsupport/tdesc.h.
6100 (target_desc_up): Likewise.
6101
f80c8ec4
TT
61022020-07-17 Tom Tromey <tromey@adacore.com>
6103
6104 * linux-nat.c (linux_nat_target::supports_non_stop)
6105 (linux_nat_target::always_non_stop_p): Use "true".
6106 (linux_nat_target::supports_disable_randomization): Use "true" and
6107 "false".
6108
d0ce17d8
CT
61092020-07-16 Caroline Tice <cmtice@google.com>
6110
6111 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6112 (RNGLIST_HEADER_SIZE64): New constant definition.
6113 (struct dwop_section_names): Add rnglists_dwo.
6114 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6115 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6116 (struct dwo_sections): Add rnglists field.
6117 (read_attribut_reprocess): Add tag parameter.
6118 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6119 (cu_debug_rnglists_section): New function (decl & definition).
6120 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6121 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6122 die whose range is being checked; get rnglist section from
6123 cu_debug_rnglists_section, to get from either objfile or dwo file as
6124 appropriate. Add cases for DW_RLE_base_addressx,
6125 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6126 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6127 test inside if-condition and updating complaint message.
6128 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6129 dwarf2_rnglists_process.
6130 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6131 dwarf2_ranges_process.
6132 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6133 need_ranges_base and update comment appropriately. Also pass die tag
6134 to dwarf2_ranges_read.
6135 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6136 need_ranges_base and update comment appropriately. Also pass die tag
6137 to dwarf2_ranges_process.
6138 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6139 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6140 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6141 need_ranges_base and update comment appropriately. Also pass die tag
6142 to read_attribute_reprocess and dwarf2_ranges_read.
6143 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6144 and update function comment appropriately.
6145 (read_loclist_index): Call read_loclists_rnglists_header instead of
6146 read_loclist_header.
6147 (read_rnglist_index): New function.
6148 (read_attribute_reprocess): Add tag parameter. Add code for
6149 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6150 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6151
3dcc261c
AB
61522020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6153
6154 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6155 being resolved.
6156
ccb9eba6
AB
61572020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6158
6159 * arch-utils.c (show_architecture): Update formatting of messages.
6160
cf88be68
SM
61612020-07-12 Simon Marchi <simon.marchi@efficios.com>
6162
6163 * gdbtypes.h (struct type) <bounds>: Handle array and string
6164 types.
6165 * ada-lang.c (assign_aggregate): Use type::bounds on
6166 array/string type.
6167 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6168 * c-varobj.c (c_number_of_children): Likewise.
6169 (c_describe_child): Likewise.
6170 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6171 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6172 (f_type_print_base): Likewise.
6173 * f-valprint.c (f77_array_offset_tbl): Likewise.
6174 (f77_get_upperbound): Likewise.
6175 (f77_print_array_1): Likewise.
6176 * guile/scm-type.c (gdbscm_type_range): Likewise.
6177 * m2-typeprint.c (m2_array): Likewise.
6178 (m2_is_long_set_of_type): Likewise.
6179 * m2-valprint.c (get_long_set_bounds): Likewise.
6180 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6181 * python/py-type.c (typy_range): Likewise.
6182 * rust-lang.c (rust_internal_print_type): Likewise.
6183 * type-stack.c (type_stack::follow_types): Likewise.
6184 * valarith.c (value_subscripted_rvalue): Likewise.
6185 * valops.c (value_cast): Likewise.
6186
509971ae
SM
61872020-07-12 Simon Marchi <simon.marchi@efficios.com>
6188
6189 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6190 callers to use the equivalent accessor methods.
6191
107406b7
SM
61922020-07-12 Simon Marchi <simon.marchi@efficios.com>
6193
6194 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6195 (struct type) <bit_stride>: New method.
6196 (TYPE_BIT_STRIDE): Remove.
6197 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6198
bb789949
SM
61992020-07-12 Simon Marchi <simon.marchi@efficios.com>
6200
6201 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6202 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6203 callers to use the equivalent accessor methods instead.
6204
39498edb
SM
62052020-07-12 Simon Marchi <simon.marchi@efficios.com>
6206
6207 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6208 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6209 callers to use the equivalent accessor methods instead.
6210
3b606f38
SM
62112020-07-12 Simon Marchi <simon.marchi@efficios.com>
6212
6213 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6214 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6215 to use dynamic_prop::kind.
6216
064d9cb9
SM
62172020-07-12 Simon Marchi <simon.marchi@efficios.com>
6218
6219 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6220 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6221 to get the bound property's kind and check against
6222 PROP_UNDEFINED.
6223
5537ddd0
SM
62242020-07-12 Simon Marchi <simon.marchi@efficios.com>
6225
6226 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6227 all callers to use type::range_bounds followed by
6228 dynamic_prop::{low,high}.
6229
8c2e4e06
SM
62302020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6231
6232 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6233 const_val, set_const_val, baton, set_locexpr, set_loclist,
6234 set_addr_offset, variant_parts, set_variant_parts,
6235 original_type, set_original_type>: New methods.
6236 <kind>: Rename to...
6237 <m_kind>: ... this. Update all users to use the new methods
6238 instead.
6239 <data>: Rename to...
6240 <m_data>: ... this. Update all users to use the new methods
6241 instead.
6242
7c6f2712
SM
62432020-07-12 Simon Marchi <simon.marchi@efficios.com>
6244
6245 * gdbtypes.c (get_discrete_bounds): Return failure if
6246 the range type's bounds are not both defined and constant
6247 values.
6248 (get_array_bounds): Update comment. Remove undefined bound check.
6249
599088e3
SM
62502020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6251
6252 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6253 the type::bounds method directly.
6254
c4dfcb36
SM
62552020-07-12 Simon Marchi <simon.marchi@efficios.com>
6256
6257 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6258 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6259 are used to set the range type's bounds to use set_bounds.
6260
0a278aa7
PW
62612020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6262
6263 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6264
cce20f10
PA
62652020-07-10 Pedro Alves <pedro@palves.net>
6266
6267 * gdbthread.h (inferior_ref): Define.
6268 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6269 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6270 * thread.c
6271 (scoped_restore_current_thread::restore):
6272 Adjust to gdb::ref_ptr.
6273 (scoped_restore_current_thread::~scoped_restore_current_thread):
6274 Remove manual decref handling.
6275 (scoped_restore_current_thread::scoped_restore_current_thread):
6276 Adjust to use
6277 inferior_ref::new_reference/thread_info_ref::new_reference.
6278 Incref the thread before calling get_frame_id instead of after.
6279 Let TARGET_CLOSE_ERROR propagate.
6280
6d7aa592
PA
62812020-07-10 Pedro Alves <pedro@palves.net>
6282
6283 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6284 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6285 NOT_AVAILABLE_ERROR.
6286 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6287 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6288
b3e3a4c1
SM
62892020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6290 Pedro Alves <pedro@palves.net>
6291
6292 PR gdb/26199
6293 * infrun.c (threads_are_resumed_pending_p): Delete.
6294 (do_target_wait): Remove threads_are_executing and
6295 threads_are_resumed_pending_p checks from the inferior_matches
6296 lambda. Update comments.
6297
d6cc5d98
PA
62982020-07-10 Pedro Alves <pedro@palves.net>
6299
6300 PR gdb/26199
6301 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6302 executing threads.
6303
7d3badc6
PA
63042020-07-10 Pedro Alves <pedro@palves.net>
6305
6306 PR gdb/26199
6307 * infrun.c (handle_no_resumed): Handle multiple targets.
6308
42bd97a6
PA
63092020-07-10 Pedro Alves <pedro@palves.net>
6310
6311 PR gdb/26199
6312 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6313 target_is_async_p.
6314
43667cc6
PA
63152020-07-10 Pedro Alves <pedro@palves.net>
6316
6317 PR gdb/26199
6318 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6319 threads, not all threads.
6320
96118d11
PA
63212020-07-10 Pedro Alves <pedro@palves.net>
6322
6323 PR gdb/26199
6324 * remote.c (remote_target::open_1): Pass remote target pointer as
6325 data to create_async_event_handler.
6326 (remote_async_inferior_event_handler): Mark async event handler
6327 before returning if the remote target still has either pending
6328 events or unacknowledged notifications.
6329
54904d81
JB
63302020-07-10 John Baldwin <jhb@FreeBSD.org>
6331
6332 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6333 declaration.
6334 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6335 function.
6336
f37e5866
JB
63372020-07-09 John Baldwin <jhb@FreeBSD.org>
6338
6339 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6340 inferior_ptid.
6341
fc238d4a
JB
63422020-07-09 John Baldwin <jhb@FreeBSD.org>
6343
6344 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6345 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6346 AT_FREEBSD_PS_STRINGS.
6347
6e2469ff
HD
63482020-07-08 Hannes Domani <ssbssa@yahoo.de>
6349
6350 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6351 of debugfile path on Windows.
6352
d1076c41
JB
63532020-07-08 John Baldwin <jhb@FreeBSD.org>
6354
6355 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6356 argument to 'data'.
6357
15f3b077
TT
63582020-07-08 Tom Tromey <tromey@adacore.com>
6359
6360 * ada-lang.c (ada_exception_message_1): Use read_memory.
6361
9fc501fd
AB
63622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6363
6364 PR python/22748
6365 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6366 special handling for inline frames.
6367 * findvar.c (value_of_register_lazy): Skip inline frames when
6368 creating lazy register values.
6369 * frame.c (frame_id_computed_p): Delete definition.
6370 * frame.h (frame_id_computed_p): Delete declaration.
6371
64cb3757
AB
63722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6373
6374 * NEWS: Mention additions to Python API.
6375 * python/py-arch.c (archpy_register_groups): New function.
6376 (arch_object_methods): Add 'register_groups' method.
6377 * python/py-registers.c (reggroup_iterator_object): New struct.
6378 (reggroup_object): New struct.
6379 (gdbpy_new_reggroup): New function.
6380 (gdbpy_reggroup_to_string): New function.
6381 (gdbpy_reggroup_name): New function.
6382 (gdbpy_reggroup_iter): New function.
6383 (gdbpy_reggroup_iter_next): New function.
6384 (gdbpy_new_reggroup_iterator): New function
6385 (gdbpy_initialize_registers): Register new types.
6386 (reggroup_iterator_object_type): Define new Python type.
6387 (gdbpy_reggroup_getset): New static global.
6388 (reggroup_object_type): Define new Python type.
6389 * python/python-internal.h
6390
0f767f94
AB
63912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6392
6393 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6394 * python/py-arch.c (archpy_registers): New function.
6395 (arch_object_methods): Add 'registers' method.
6396 * python/py-registers.c: New file.
6397 * python/python-internal.h
6398 (gdbpy_new_register_descriptor_iterator): Declare.
6399 (gdbpy_initialize_registers): Declare.
6400 * python/python.c (do_start_initialization): Call
6401 gdbpy_initialize_registers.
6402 * NEWS: Mention additions to the Python API.
6403
87dbc774
AB
64042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6405
6406 * NEWS: Mention new Python API method.
6407 * python/py-unwind.c (pending_framepy_architecture): New function.
6408 (pending_frame_object_methods): Add architecture method.
6409
3bc98c0c
AB
64102020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6411
6412 * gdbarch.c: Regenerate.
6413 * gdbarch.h: Regenerate.
6414 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6415 (gdbarch_data): Use internal_error for the case where
6416 deprecated_set_gdbarch_data was originally needed.
6417 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6418 and use passed in obstack.
6419 (libunwind_frame_set_descr): Should no longer get back NULL from
6420 gdbarch_data.
6421 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6422 type.
6423 * user-regs.c (user_regs_init): Update parameters, and use passed
6424 in obstack.
6425 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6426 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6427
d8cc8af6
TV
64282020-07-06 Tom de Vries <tdevries@suse.de>
6429
6430 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6431 End-Of-Sequence in lte_is_less_than.
6432 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6433 "gdb: Don't reorder line table entries too much when sorting".
6434
947f7597
TV
64352020-07-06 Tom de Vries <tdevries@suse.de>
6436
6437 PR tui/26205
6438 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6439
1e7c1b22
TV
64402020-07-05 Tom de Vries <tdevries@suse.de>
6441
6442 PR build/26187
6443 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6444 std::uncaught_exceptions instead of deprecated
6445 std::uncaught_exception.
6446
a36158ec
SM
64472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6448
6449 * macroexp.h (macro_stringify): Return
6450 gdb::unique_xmalloc_ptr<char>.
6451 * macroexp.c (macro_stringify): Likewise.
6452 * macrotab.c (fixup_definition): Update.
6453
14d960c8
SM
64542020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6455
6456 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6457 (lex_one_token): Update.
6458 * macroexp.c (struct macro_buffer) <release>: Return
6459 gdb::unique_xmalloc_ptr<char>.
6460 (macro_stringify): Update.
6461 (macro_expand): Update.
6462 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6463 * macroexp.h (macro_expand_next): Likewise.
6464
211d5b1c
SM
64652020-07-02 Simon Marchi <simon.marchi@efficios.com>
6466
6467 * macroexp.h (macro_lookup_ftype): Remove.
6468 (macro_expand, macro_expand_once, macro_expand_next): Remove
6469 lookup function parameters, add scope parameter.
6470 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6471 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6472 * macroscope.h (standard_macro_lookup): Change parameter type
6473 to macro_scope.
6474 * macroscope.c (standard_macro_lookup): Likewise.
6475 * c-exp.y (lex_one_token): Update.
6476 * macrocmd.c (macro_expand_command): Likewise.
6477 (macro_expand_once_command): Likewise.
6478
b1a35af2
SM
64792020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6480
6481 * inf-loop.c (inferior_event_handler): Remove client_data param.
6482 * inf-loop.h (inferior_event_handler): Likewise.
6483 * infcmd.c (step_1): Adjust.
6484 * infrun.c (proceed): Adjust.
6485 (fetch_inferior_event): Remove client_data param.
6486 (infrun_async_inferior_event_handler): Adjust.
6487 * infrun.h (fetch_inferior_event): Remove `void *` param.
6488 * linux-nat.c (handle_target_event): Adjust.
6489 * record-btrace.c (record_btrace_handle_async_inferior_event):
6490 Adjust.
6491 * record-full.c (record_full_async_inferior_event_handler):
6492 Adjust.
6493 * remote.c (remote_async_inferior_event_handler): Adjust.
6494
1cdf9e33
TT
64952020-07-01 Tom Tromey <tom@tromey.com>
6496
6497 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6498 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6499
32c1e210
TT
65002020-07-01 Tom Tromey <tom@tromey.com>
6501
6502 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6503 tui_gen_win_info.
6504 (tui_win_info::make_window): Merge with
6505 tui_gen_win_info::make_window.
6506 (tui_win_info::make_visible): Move from tui_gen_win_info.
6507 * tui/tui-win.c (tui_win_info::max_width): Move from
6508 tui_gen_win_info.
6509 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6510 type.
6511 <window_factory>: Likewise.
6512 * tui/tui-layout.c (tui_win_info::resize): Move from
6513 tui_gen_win_info.
6514 (make_standard_window): Change return type.
6515 (get_locator_window, tui_get_window_by_name): Likewise.
6516 (tui_layout_window::apply): Remove a cast.
6517 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6518 (struct tui_win_info): Merge with tui_gen_win_info.
6519 (struct tui_gen_win_info): Remove.
6520
a30cb6da
TT
65212020-07-01 Tom Tromey <tom@tromey.com>
6522
6523 * tui/tui-stack.h (struct tui_locator_window): Derive from
6524 tui_win_info.
6525 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6526 <can_box>: New method.
6527
1eb2161f
TT
65282020-07-01 Tom Tromey <tom@tromey.com>
6529
6530 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6531
7134f2eb
TT
65322020-07-01 Tom Tromey <tom@tromey.com>
6533
6534 * tui/tui-regs.c (tui_data_window::display_registers_from)
6535 (tui_data_window::display_registers_from)
6536 (tui_data_window::first_data_item_displayed)
6537 (tui_data_window::delete_data_content_windows): Update.
6538 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6539 Remove.
6540 (tui_data_window::check_register_values): Update.
6541 (tui_data_item_window::rerender): Add parameters. Update.
6542 (tui_data_item_window::refresh_window): Remove.
6543 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6544 virtual.
6545 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6546 tui_gen_win_info.
6547 <refresh_window, max_height, min_height>: Remove.
6548 <rerender>: Add parameters.
6549 <x, y, visible>: New members.
6550 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6551 <m_item_width>: New member.
6552
22b7b041
TT
65532020-07-01 Tom Tromey <tom@tromey.com>
6554
6555 * tui/tui-regs.c (tui_data_window::show_register_group)
6556 (tui_data_window::check_register_values): Update.
6557 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6558 from item_no.
6559
c9753adb
TT
65602020-07-01 Tom Tromey <tom@tromey.com>
6561
6562 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6563 useless "if".
6564
9ab26b4a
TT
65652020-07-01 Tom Tromey <tom@tromey.com>
6566
6567 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6568 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6569
e555083f
TT
65702020-07-01 Tom Tromey <tom@tromey.com>
6571
6572 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6573 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6574 (struct tui_line_or_address): Move from tui-data.h.
6575 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6576 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6577 (tui_cmd_window, tui_source_window_base, tui_source_window)
6578 (tui_disasm_window): Don't declare.
6579 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6580 to tui-winsource.h.
6581 (SINGLE_KEY): Move to tui-stack.c.
6582
7a02bab7
TT
65832020-07-01 Tom Tromey <tom@tromey.com>
6584
6585 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6586 std::string.
6587 * tui/tui-regs.c (class tab_expansion_file): New.
6588 (tab_expansion_file::write): New method.
6589 (tui_register_format): Change return type. Use
6590 tab_expansion_file.
6591 (tui_get_register, tui_data_window::display_registers_from)
6592 (tui_data_item_window::rerender): Update.
6593 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6594 * tui/tui-io.c (tui_expand_tabs): Remove.
6595
ea68593b
TT
65962020-07-01 Tom Tromey <tom@tromey.com>
6597
6598 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6599
a8caed5d
FS
66002020-07-01 Fangrui Song <maskray@google.com>
6601
6602 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6603
9cdf9820
AKS
66042020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6605
6606 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6607 forms for DW_AT_associated and DW_AT_allocated attributes,
6608 which is already checked in function attr_to_dynamic_prop.
6609
a1520ad8
TT
66102020-06-30 Tom Tromey <tromey@adacore.com>
6611
6612 * dwarf2/read.c (quirk_rust_enum): Correctly call
6613 alloc_rust_variant for default-less enum.
6614
5ac58899
TT
66152020-06-30 Tom Tromey <tromey@adacore.com>
6616
6617 PR build/26183:
6618 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6619 gdb::to_string.
6620
19b187a9
SM
66212020-06-29 Simon Marchi <simon.marchi@efficios.com>
6622
6623 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6624 * gdbarch.h: Re-generate.
6625
cd4c4c07
TT
66262020-06-28 Tom Tromey <tom@tromey.com>
6627
6628 * command.h (cmd_types): Remove.
6629 (cmd_type): Don't declare.
6630 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6631 typedef.
6632 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6633 * cli/cli-decode.c (cmd_type): Remove.
6634
05779d57
PA
66352020-06-27 Pedro Alves <palves@redhat.com>
6636
6637 * fork-child.c (prefork_hook): Adjust.
6638 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6639 Delete.
6640 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6641 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6642 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6643 Remove declarations.
6644 (struct inferior) <set_tty, tty>: New methods.
6645 (struct inferior) <terminal>: Rename to ...
6646 (struct inferior) <m_terminal>: ... this and make private.
6647 * main.c (captured_main_1): Adjust.
6648 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6649 (mi_cmd_inferior_tty_show): Adjust.
6650 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6651 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6652
1776e3e5
NA
66532020-06-26 Nick Alcock <nick.alcock@oracle.com>
6654
6655 * configure.ac: Add --enable-libctf: handle --disable-static
6656 properly.
6657 * acinclude.m4: sinclude ../config/enable.m4.
6658 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6659 (LIBCTF): Substitute in.
6660 (CTF_DEPS): New, likewise.
6661 (CLIBS): libctf needs symbols from libbfd: move earlier.
6662 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6663 flags.
6664 * ctfread.c: Surround in ENABLE_LIBCTF.
6665 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6666 * configure: Regenerate.
6667 * config.in: Likewise.
6668
58373b80
SM
66692020-06-25 Simon Marchi <simon.marchi@efficios.com>
6670
6671 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6672
277474ee
SM
66732020-06-25 Simon Marchi <simon.marchi@efficios.com>
6674
6675 * inferior.h (struct inferior) <terminal>: Change type to
6676 gdb::unique_xmalloc_ptr<char>.
6677 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6678 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6679 field, adjust to unique pointer.
6680 (get_inferior_io_terminal): Adjust to unique pointer.
6681
6d74da72
AB
66822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6683
6684 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6685 registers, not just the known core set of registers.
6686
2e52d038
AB
66872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6688
6689 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6690 fflags, frm, and fcsr registers.
6691 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6692 restore groups.
6693 (riscv_tdesc_unknown_reg): New function.
6694 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6695 tdesc_use_registers.
6696 * riscv-tdep.h (struct gdbarch_tdep): Add
6697 unknown_csrs_first_regnum, unknown_csrs_count,
6698 duplicate_fflags_regnum, duplicate_frm_regnum, and
6699 duplicate_fcsr_regnum fields.
6700
be64fd07
AB
67012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6702
6703 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6704 callback, use the callback (when not null) to help number unknown
6705 registers.
6706 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6707 (tdesc_use_registers): Add extra parameter to declaration.
6708
3b9fce96
AB
67092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6710
6711 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6712 in the file.
6713 (class riscv_pending_register_alias): Likewise.
6714 (riscv_register_feature::register_info): Change 'required_p' field
6715 to 'required', and change its type. Add 'check' member function.
6716 (riscv_register_feature::register_info::check): Define new member
6717 function.
6718 (riscv_xreg_feature): Change initialisation of 'required' field.
6719 (riscv_freg_feature): Likewise.
6720 (riscv_virtual_feature): Likewise.
6721 (riscv_csr_feature): Likewise.
6722 (riscv_check_tdesc_feature): Take extra parameter, the csr
6723 tdesc_feature, rewrite the function to use the new
6724 riscv_register_feature::register_info::check function.
6725 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6726
865bad26
AB
67272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6728
6729 * features/Makefile: Remove all references to the deleted files
6730 below.
6731 * features/riscv/32bit-csr.c: Deleted.
6732 * features/riscv/32bit-csr.xml: Deleted.
6733 * features/riscv/64bit-csr.c: Deleted.
6734 * features/riscv/64bit-csr.xml: Deleted.
6735 * features/riscv/rebuild-csr-xml.sh: Deleted.
6736
ed69cbc8
AB
67372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6738
6739 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6740 whitespace error for declaration of names member variable.
6741 (struct riscv_register_feature): Add new prefer_first_name member
6742 variable, and fix whitespace error in declaration of registers.
6743 (riscv_xreg_feature): Initialize prefer_first_name field.
6744 (riscv_freg_feature): Likewise.
6745 (riscv_virtual_feature): Likewise.
6746 (riscv_csr_feature): Likewise.
6747 (riscv_register_name): Expand on comments. Remove register name
6748 modifications for CSR and virtual registers.
6749
4445e8f5
AB
67502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6751
6752 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6753 errors.
6754
767a879e
AB
67552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6756
6757 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6758 riscv-opc.h.
6759 (class riscv_pending_register_alias): New class.
6760 (riscv_check_tdesc_feature): Take vector of pending aliases and
6761 populate it as appropriate.
6762 (riscv_setup_register_aliases): Delete.
6763 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6764 to riscv_check_tdesc_feature in all cases. Use the vector to
6765 create the register aliases.
6766
bb6e55f3
RO
67672020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6768
6769 * sol2-tdep.c (sol2_static_transform_name): Remove.
6770 (sol2_init_abi): Don't register it.
6771 * gdbarch.sh (static_transform_name): Remove.
6772 * gdbarch.c, gdbarch.h: Regenerate.
6773
6774 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6775 gdbarch_static_transform_name.
6776 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6777 * stabsread.c (define_symbol) <'X'>: Remove.
6778 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6779 handling.
6780 <'V'>: Likewise.
6781 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6782 <'S'>: Remove call to gdbarch_static_transform_name.
6783
c6d36836
RO
67842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6785
6786 * procfs.c (procfs_pre_trace): New function.
6787 (procfs_target::create_inferior): Pass it to fork_inferior.
6788
a7e6196b
RO
67892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6790
6791 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6792 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6793 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6794 sol2-tdep.o, sparc-sol2-tdep.o.
6795 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6796 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6797 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6798 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6799
d412e696
RO
68002020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6801
6802 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6803 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6804 Call sol2_init_abi.
6805 Remove calls to set_gdbarch_skip_solib_resolver,
6806 set_gdbarch_core_pid_to_str.
6807 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6808 (i386_sol2_static_transform_name): Remove.
6809 (i386_sol2_init_abi): Call sol2_init_abi.
6810 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6811 set_gdbarch_static_transform_name,
6812 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6813 Use sol2_sigtramp_p.
6814 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6815 (sol2_sigtramp_p): New function.
6816 (sol2_static_transform_name): New function.
6817 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6818 (sol2_init_abi): New function.
6819 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6820 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6821 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6822 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6823 (sparc_sol2_static_transform_name): Remove.
6824 (sparc32_sol2_init_abi): Call sol2_init_abi.
6825 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6826 set_gdbarch_static_transform_name,
6827 set_gdbarch_skip_solib_resolver,
6828 set_gdbarch_core_pid_to_str.
6829 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6830 (sparc_sol2_static_transform_name): Remove
6831 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6832 call sol2_sigtramp_p.
6833 (sparc64_sol2_init_abi): Call sol2_init_abi.
6834 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6835 set_gdbarch_static_transform_name,
6836 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6837
a8654e7d
PW
68382020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6839
6840 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6841 * exec.c (validate_exec_file): If from_tty, set both
6842 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6843 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6844 and from_tty, unconditionally ask a confirmation.
6845
caa7fd04
AB
68462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6847
6848 * target-descriptions.c (tdesc_architecture_name): Protect against
6849 NULL pointer dereference.
6850 (maint_print_xml_tdesc_cmd): New function.
6851 (_initialize_target_descriptions): Register new 'maint print
6852 xml-tdesc' command and give it the filename completer.
6853 * NEWS: Mention new 'maint print xml-tdesc' command.
6854
fbf42f4e
AB
68552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6856
6857 * target-descriptions.c (class tdesc_compatible_info): New class.
6858 (struct target_desc): Change type of compatible vector.
6859 (tdesc_compatible_p): Update for change in type of
6860 target_desc::compatible.
6861 (tdesc_compatible_info_list): New function.
6862 (tdesc_compatible_info_arch_name): New function.
6863 (tdesc_add_compatible): Update for change in type of
6864 target_desc::compatible.
6865 (print_c_tdesc::visit_pre): Likewise.
6866
20821f4e
AB
68672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6868
6869 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6870 whitespace to underscore.
6871 (maint_print_c_tdesc_cmd): Use fake filename for target
6872 descriptions that came from the target.
6873 (_initialize_target_descriptions): Add filename command completion
6874 for 'maint print c-tdesc'.
6875
1fb5ee62
SM
68762020-06-23 Simon Marchi <simon.marchi@efficios.com>
6877
6878 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6879 lines.
6880
fc3ecb3e
SM
68812020-06-23 Simon Marchi <simon.marchi@efficios.com>
6882
6883 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6884 lines.
6885 (dwarf2_find_location_expression): Likewise.
6886 (call_site_parameter_matches): Likewise.
6887 (dwarf2_compile_expr_to_ax): Likewise.
6888 (disassemble_dwarf_expression): Likewise.
6889 (loclist_describe_location): Likewise.
6890
236ef034
PA
68912020-06-23 Pedro Alves <palves@redhat.com>
6892
6893 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6894 progspace-and-thread.h. Include scoped-mock-context.h instead.
6895 (register_to_value_test): Use scoped_mock_context.
6896 * regcache.c: Include "scoped-mock-context.h".
6897 (cooked_read_test): Don't error out if a target is already pushed.
6898 Use scoped_mock_context. Adjust.
6899 * scoped-mock-context.h: New file.
6900
39e7ecca
AB
69012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6902
6903 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6904 initializer.
6905 (ada_language::is_string_type_p): New member function.
6906 * c-lang.c (c_language_data): Delete la_is_string_type_p
6907 initializer.
6908 (cplus_language_data): Likewise.
6909 (asm_language_data): Likewise.
6910 (minimal_language_data): Likewise.
6911 * d-lang.c (d_language_data): Likewise.
6912 * f-lang.c (f_is_string_type_p): Delete function, implementation
6913 moved to f_language::is_string_type_p.
6914 (f_language_data): Delete la_is_string_type_p initializer.
6915 (f_language::is_string_type_p): New member function,
6916 implementation from f_is_string_type_p.
6917 * go-lang.c (go_is_string_type_p): Delete function, implementation
6918 moved to go_language::is_string_type_p.
6919 (go_language_data): Delete la_is_string_type_p initializer.
6920 (go_language::is_string_type_p): New member function,
6921 implementation from go_is_string_type_p.
6922 * language.c (language_defn::is_string_type_p): Define new member
6923 function.
6924 (default_is_string_type_p): Make static, add comment copied from
6925 header file.
6926 (unknown_language_data): Delete la_is_string_type_p initializer.
6927 (unknown_language::is_string_type_p): New member function.
6928 (auto_language_data): Delete la_is_string_type_p initializer.
6929 (auto_language::is_string_type_p): New member function.
6930 * language.h (language_data): Delete la_is_string_type_p field.
6931 (language_defn::is_string_type_p): Declare new function.
6932 (default_is_string_type_p): Delete desclaration, move comment to
6933 definition.
6934 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6935 moved to m2_language::is_string_type_p.
6936 (m2_language_data): Delete la_is_string_type_p initializer.
6937 (m2_language::is_string_type_p): New member function,
6938 implementation from m2_is_string_type_p.
6939 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6940 initializer.
6941 * opencl-lang.c (opencl_language_data): Likewise.
6942 * p-lang.c (pascal_is_string_type_p): Delete function,
6943 implementation moved to pascal_language::is_string_type_p.
6944 (pascal_language_data): Delete la_is_string_type_p initializer.
6945 (pascal_language::is_string_type_p): New member function,
6946 implementation from pascal_is_string_type_p.
6947 * rust-lang.c (rust_is_string_type_p): Delete function,
6948 implementation moved to rust_language::is_string_type_p.
6949 (rust_language_data): Delete la_is_string_type_p initializer.
6950 (rust_language::is_string_type_p): New member function,
6951 implementation from rust_is_string_type_p.
6952 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6953 is_string_type_p.
6954
4ffc13fb
AB
69552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6956
6957 * ada-lang.c (ada_language_data): Delete la_print_typedef
6958 initializer.
6959 (ada_language::print_typedef): New member function.
6960 * c-lang.c (c_language_data): Delete la_print_typedef 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 * f-lang.c (f_language_data): Likewise.
6966 (f_language::print_typedef): New member function.
6967 * go-lang.c (go_language_data): Delete la_print_typedef
6968 initializer.
6969 * language.c (language_defn::print_typedef): Define member
6970 function.
6971 (unknown_language_data): Delete la_print_typedef initializer.
6972 (unknown_language::print_typedef): New member function.
6973 (auto_language_data): Delete la_print_typedef initializer.
6974 (auto_language::print_typedef): New member function.
6975 * language.h (language_data): Delete la_print_typedef field.
6976 (language_defn::print_typedef): Declare new member function.
6977 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6978 (default_print_typedef): Delete declaration.
6979 * m2-lang.c (m2_language_data): Delete la_print_typedef
6980 initializer.
6981 (m2_language::print_typedef): New member function.
6982 * objc-lang.c (objc_language_data): Delete la_print_typedef
6983 initializer.
6984 * opencl-lang.c (opencl_language_data): Likewise.
6985 * p-lang.c (pascal_language_data): Likewise.
6986 (pascal_language::print_typedef): New member function.
6987 * rust-lang.c (rust_print_typedef): Delete function,
6988 implementation moved to rust_language::print_typedef.
6989 (rust_language): Delete la_print_typedef initializer.
6990 (rust_language::print_typedef): New member function,
6991 implementation from rust_print_typedef.
6992 * typeprint.c (default_print_typedef): Delete.
6993
d711ee67
AB
69942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6995
6996 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6997 (ada_language::printstr): New member function.
6998 * c-lang.c (c_language_data): Delete la_printstr initializer.
6999 (cplus_language_data): Likewise.
7000 (asm_language_data): Likewise.
7001 (minimal_language_data): Likewise.
7002 * d-lang.c (d_language_data): Likewise.
7003 * f-lang.c (f_printstr): Rename to f_language::printstr.
7004 (f_language_data): Delete la_printstr initializer.
7005 (f_language::printstr): New member function, implementation from
7006 f_printstr.
7007 * go-lang.c (go_language_data): Delete la_printstr initializer.
7008 * language.c (language_defn::printstr): Define new member
7009 function.
7010 (unk_lang_printstr): Delete.
7011 (unknown_language_data): Delete la_printstr initializer.
7012 (unknown_language::printstr): New member function.
7013 (auto_language_data): Delete la_printstr initializer.
7014 (auto_language::printstr): New member function.
7015 * language.h (language_data): Delete la_printstr field.
7016 (language_defn::printstr): Declare new member function.
7017 (LA_PRINT_STRING): Update call to printstr.
7018 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7019 (m2_language_data): Delete la_printstr initializer.
7020 (m2_language::printstr): New member function, implementation from
7021 m2_printstr.
7022 * objc-lang.c (objc_language_data): Delete la_printstr
7023 initializer.
7024 * opencl-lang.c (opencl_language_data): Likewise.
7025 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7026 (pascal_language_data): Delete la_printstr initializer.
7027 (pascal_language::printstr): New member function, implementation
7028 from pascal_printstr.
7029 * p-lang.h (pascal_printstr): Delete declaration.
7030 * rust-lang.c (rust_printstr): Update header comment.
7031 (rust_language_data): Delete la_printstr initializer.
7032 (rust_language::printstr): New member function.
7033
52b50f2c
AB
70342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7035
7036 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7037 (ada_language::printchar): New member function.
7038 * c-lang.c (c_language_data): Delete la_printchar initializer.
7039 (cplus_language_data): Likewise.
7040 (asm_language_data): Likewise.
7041 (minimal_language_data): Likewise.
7042 * d-lang.c (d_language_data): Likewise.
7043 * f-lang.c (f_printchar): Rename to f_language::printchar.
7044 (f_language_data): Delete la_printchar initializer.
7045 (f_language::printchar): New member function, implementation from
7046 f_printchar.
7047 * go-lang.c (go_language_data): Delete la_printchar initializer.
7048 * language.c (unk_lang_printchar): Delete.
7049 (language_defn::printchar): Define new member function.
7050 (unknown_language_data): Delete la_printchar initializer.
7051 (unknown_language::printchar): New member function.
7052 (auto_language_data): Delete la_printchar initializer.
7053 (auto_language::printchar): New member function.
7054 * language.h (language_data): Delete la_printchar field.
7055 (language_defn::printchar): Declare new member function.
7056 (LA_PRINT_CHAR): Update call to printchar.
7057 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7058 (m2_language::printchar): New member function.
7059 * objc-lang.c (objc_language_data): Delete la_printchar
7060 initializer.
7061 * opencl-lang.c (opencl_language_data): Likewise.
7062 * p-lang.c (pascal_language_data): Delete la_printchar
7063 initializer.
7064 (pascal_language::printchar): New member function.
7065 * rust-lang.c (rust_printchar): Rename to
7066 rust_language::printchar.
7067 (rust_language_data): Delete la_printchar initializer.
7068 (rust_language::printchar): New member function, implementation
7069 from rust_printchar.
7070
ec8cec5b
AB
70712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7072
7073 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7074 (ada_language_data): Delete la_emitchar initializer.
7075 (ada_language::emitchar): New member function, implementation from
7076 emit_char.
7077 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7078 (cplus_language_data): Likewise.
7079 (asm_language_data): Likewise.
7080 (minimal_language_data): Likewise.
7081 * d-lang.c (d_language_data): Likewise.
7082 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7083 (f_language_data): Delete la_emitchar initializer.
7084 (f_language::emitchar): New member function, implementation from
7085 f_emit_char.
7086 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7087 * language.c (unk_lang_emit_char): Delete.
7088 (language_defn::emitchar): New member function definition.
7089 (unknown_language_data): Delete la_emitchar initializer.
7090 (unknown_language::emitchar): New member function.
7091 (auto_language_data): Delete la_emitchar initializer.
7092 (auto_language::emitchar): New member function.
7093 * language.h (language_data): Delete la_emitchar field.
7094 (language_defn::emitchar): New member field declaration.
7095 (LA_EMIT_CHAR): Update call to emitchar.
7096 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7097 (m2_language_data): Delete la_emitchar initializer.
7098 (m2_language::emitchar): New member function, implementation from
7099 m2_emit_char.
7100 * objc-lang.c (objc_language_data): Delete la_emitchar
7101 initializer.
7102 * opencl-lang.c (opencl_language_data): Likewise.
7103 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7104 (pascal_language_data): Delete la_emitchar initializer.
7105 (pascal_language::emitchar): New member function, implementation
7106 from pascal_emit_char.
7107 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7108 (rust_language_data): Delete la_emitchar initializer.
7109 (rust_language::emitchar): New member function, implementation
7110 from rust_emitchar.
7111
1bf9c363
AB
71122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7113
7114 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7115 (ada_language_data): Delete la_post_parser initializer.
7116 (ada_language::post_parser): New member function.
7117 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7118 (cplus_language_data): Likewise.
7119 (asm_language_data): Likewise.
7120 (minimal_language_data): Likewise.
7121 * d-lang.c (d_language_data): Likewise.
7122 * f-lang.c (f_language_data): Likewise.
7123 * go-lang.c (go_language_data): Likewise.
7124 * language.c (unknown_language_data): Likewise.
7125 (auto_language_data): Likewise.
7126 * language.h (language_data): Delete la_post_parser field.
7127 (language_defn::post_parser): New member function.
7128 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7129 * objc-lang.c (objc_language_data): Likewise.
7130 * opencl-lang.c (opencl_language_data): Likewise.
7131 * p-lang.c (pascal_language_data): Likewise.
7132 * parse.c (parse_exp_in_context): Update call to post_parser.
7133 (null_post_parser): Delete definition.
7134 * parser-defs.h (null_post_parser): Delete declaration.
7135 * rust-lang.c (rust_language_data): Delete la_post_parser
7136 initializer.
7137
87afa652
AB
71382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7139
7140 * ada-lang.c (parse): Rename to ada_language::parser.
7141 (ada_language_data): Delete la_parser initializer.
7142 (ada_language::parser): New member function, implementation from
7143 parse.
7144 * c-lang.c (c_language_data): Delete la_parser initializer.
7145 (cplus_language_data): Likewise.
7146 (asm_language_data): Likewise.
7147 (minimal_language_data): Likewise.
7148 * d-lang.c (d_language_data): Likewise.
7149 (d_language::parser): New member function.
7150 * f-lang.c (f_language_data): Delete la_parser initializer.
7151 (f_language::parser): New member function.
7152 * go-lang.c (go_language_data): Delete la_parser initializer.
7153 (go_language::parser): New member function.
7154 * language.c (unk_lang_parser): Delete.
7155 (language_defn::parser): Define new member function.
7156 (unknown_language_data): Delete la_parser initializer.
7157 (unknown_language::parser): New member function.
7158 (auto_language_data): Delete la_parser initializer.
7159 (auto_language::parser): New member function.
7160 * language.h (language_data): Delete la_parser field.
7161 (language_defn::parser): Declare new member function.
7162 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7163 (m2_language::parser): New member function.
7164 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7165 * opencl-lang.c (opencl_language_data): Likewise.
7166 * p-lang.c (pascal_language_data): Likewise.
7167 (pascal_language::parser): New member function.
7168 * parse.c (parse_exp_in_context): Update call to parser.
7169 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7170 (rust_language::parser): New member function.
7171
37825800
AB
71722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7173
7174 * top.c (print_gdb_configuration): Print --with-python-libdir
7175 configuration value.
7176
5b860c93
PW
71772020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7178
7179 * NEWS: Mention change to the alias command.
7180
cf00cd6f
PW
71812020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7182
7183 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7184 (alias_command_completer)
7185 (make_alias_options_def_group): New functions.
7186 (alias_opts, alias_option_defs): New struct and array.
7187 (alias_usage_error): Update usage.
7188 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7189 Use option framework.
7190 (_initialize_cli_cmds): Update alias command help.
7191 Update aliases command help.
7192 (show_user):
7193 Add NULL for new default_args lookup_cmd argument.
7194 (valid_command_p): Rename to validate_aliased_command.
7195 Add NULL for new default_args lookup_cmd argument. Verify that the
7196 aliased_command has no default args.
7197 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7198 (lookup_cmd_1, lookup_cmd): New argument default_args.
7199 (add_alias_cmd):
7200 Add NULL for new default_args lookup_cmd argument.
7201 (print_help_for_command): Show default args under the layout
7202 alias some_alias = some_aliased_cmd some_alias_default_arg.
7203 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7204 xfree default_args in destructor.
7205 * cli/cli-script.c (process_next_line, do_define_command):
7206 Add NULL for new default_args lookup_cmd argument.
7207 * command.h: Declare new default_args argument in lookup_cmd
7208 and lookup_cmd_1.
7209 * completer.c (complete_line_internal_1):
7210 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7211 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7212 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7213 Likewise.
7214 * infcmd.c (_initialize_infcmd): Likewise.
7215 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7216 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7217 * python/py-param.c (add_setshow_generic): Likewise.
7218 * remote.c (_initialize_remote): Likewise.
7219 * top.c (execute_command): Prepend default_args if command has some.
7220 (set_verbose):
7221 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7222 * tracepoint.c (validate_actionline, encode_actions_1):
7223 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7224
bd920864
TBA
72252020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7226
7227 * jit.c (jit_read_descriptor): Use bool as the return type.
7228 (jit_breakpoint_re_set_internal): Use bool as the return type.
7229 Invert the return value logic; return true if the jit breakpoint
7230 has been successfully initialized.
7231 (jit_inferior_init): Update the call to
7232 jit_breakpoint_re_set_internal.
7233
f8098322
PA
72342020-06-22 Pedro Alves <palves@redhat.com>
7235
7236 PR gdb/25939
7237 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7238 Use the current inferior instead. Don't return
7239 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7240 wait again.
7241 * sol-thread.c (sol_thread_target::wait): Don't reference
7242 inferior_ptid.
7243 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7244 (sol_update_thread_list_callback): Use the current inferior's pid
7245 instead of inferior_ptid.
7246
196535a6
RO
72472020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7248
7249 * procfs.c: Cleanup many comments.
7250
7251 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7252 (AFTER_WATCHFLAG): Replace by value.
7253
7254 (MAIN_PROC_NAME_FORMAT): Inline ...
7255 (create_procinfo): ... here.
7256
7257 (procfs_debug_inferior): Remove SYS_exec handling.
7258 (syscall_is_exec): Likewise.
7259 (procfs_set_exec_trap): Likewise.
7260
7261 (syscall_is_lwp_exit): Inline in callers.
7262 (syscall_is_exit): Likewise.
7263 (syscall_is_exec): Likewise.
7264 (syscall_is_lwp_create): Likewise.
7265
7266 (invalidate_cache): Remove #if 0 code.
7267
7268 (make_signal_thread_runnable): Remove.
7269 (procfs_target::resume): Remove #if 0 code.
7270
cf6f3e86
RO
72712020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7272
7273 PR gdb/25939
7274 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7275 call ...
7276 (procfs_target::create_inferior): ... here.
7277
48e9cc84
PW
72782020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7279
7280 * exec.c (validate_exec_file): Ensure the build-id is up to
7281 date by calling reopen_exec_file (that checks file timestamp
7282 to decide to re-read the file).
7283
3922b302
PA
72842020-06-18 Pedro Alves <palves@redhat.com>
7285
7286 PR gdb/25412
7287 * gdbthread.h (delete_thread, delete_thread_silent)
7288 (find_thread_ptid): Update comments.
7289 * thread.c (current_thread_): New global.
7290 (is_current_thread): Move higher, and reimplement.
7291 (inferior_thread): Reimplement.
7292 (set_thread_exited): Use bool. Add assertions.
7293 (add_thread_silent): Simplify thread-reuse handling by always
7294 calling delete_thread.
7295 (delete_thread): Remove intro comment.
7296 (find_thread_ptid): Skip exited threads.
7297 (switch_to_thread_no_regs): Write to current_thread_.
7298 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7299 INFERIOR_PTID. Clear current_thread_.
7300
6dbdab44
PA
73012020-06-18 Pedro Alves <palves@redhat.com>
7302
7303 * aix-thread.c (pd_update): Use switch_to_thread.
7304
2da4b788
PA
73052020-06-18 Pedro Alves <palves@redhat.com>
7306
7307 * ravenscar-thread.c (ravenscar_thread_target): Update.
7308 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7309 (ravenscar_thread_target::add_active_thread): ... this. Don't
7310 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7311 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7312
50838d1b
PA
73132020-06-18 Pedro Alves <palves@redhat.com>
7314
7315 * nat/windows-nat.c (current_windows_thread): Remove.
7316 * nat/windows-nat.h (current_windows_thread): Remove.
7317 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7318 Adjust.
7319 (display_selectors): Adjust to fetch the current
7320 windows_thread_info based on inferior_ptid.
7321 (fake_create_process): No longer write to current_windows_thread.
7322 (windows_nat_target::get_windows_debug_event):
7323 Don't set inferior_ptid or current_windows_thread.
7324 (windows_nat_target::wait): Adjust to not rely on
7325 current_windows_thread.
7326 (do_initial_windows_stuff): Now a method of windows_nat_target.
7327 Switch to the last_ptid thread.
7328 (windows_nat_target::attach): Adjust.
7329 (windows_nat_target::detach): Use switch_to_no_thread instead of
7330 writing to inferior_ptid directly.
7331 (windows_nat_target::create_inferior): Adjust.
7332
31ce04e9
PA
73332020-06-18 Pedro Alves <palves@redhat.com>
7334
7335 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7336
1ee1a363
PA
73372020-06-18 Pedro Alves <palves@redhat.com>
7338
7339 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7340 after creating it, instead of writing to inferior_ptid. Don't
7341 write to inferior_ptid.
7342
6d350754
PA
73432020-06-18 Pedro Alves <palves@redhat.com>
7344
7345 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7346
5d971d48
PA
73472020-06-18 Pedro Alves <palves@redhat.com>
7348
7349 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7350 it, instead of writing to inferior_ptid.
7351
86e57d1b
PA
73522020-06-18 Pedro Alves <palves@redhat.com>
7353
7354 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7355 to inferior_ptid.
7356
f2e1c129
PA
73572020-06-18 Pedro Alves <palves@redhat.com>
7358
7359 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7360 instead of writing to inferior_ptid directly.
7361
60db1b85
PA
73622020-06-18 Pedro Alves <palves@redhat.com>
7363
7364 * corelow.c (core_target::close): Use switch_to_no_thread instead
7365 of writing to inferior_ptid directly.
7366 (add_to_thread_list, core_target_open): Use switch_to_thread
7367 instead of writing to inferior_ptid directly.
7368
fe7d6a8d
PA
73692020-06-18 Pedro Alves <palves@redhat.com>
7370
7371 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7372 inferior_ptid.
7373 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7374 inferior_ptid.
7375 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7376 inferior_ptid directly.
7377 (darwin_nat_target::init_thread_list): Switch to thread, instead
7378 of writing to inferior_ptid.
7379 (darwin_nat_target::attach): Don't write to inferior_ptid.
7380 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7381
975f8708
PA
73822020-06-18 Pedro Alves <palves@redhat.com>
7383
7384 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7385 thread.
7386 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7387 Instead use switch_to_thread.
7388 (gnu_nat_target::detach): Use switch_to_no_thread
7389 instead of writing to inferior_ptid directly. Used passed-in
7390 inferior instead of looking up the inferior by pid.
7391
1a204730
PA
73922020-06-18 Pedro Alves <palves@redhat.com>
7393
7394 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7395 inferior_ptid.
7396
ebe84f23
PA
73972020-06-18 Pedro Alves <palves@redhat.com>
7398
7399 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7400 inferior_ptid.
7401 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7402 thread.
7403 (nto_procfs_target::detach): Avoid referencing
7404 inferior_ptid. Use switch_to_no_thread instead of writing to
7405 inferior_ptid directly.
7406 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7407 instead of writing to inferior_ptid directly.
7408 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7409 to thread.
7410
191f02e5
PA
74112020-06-18 Pedro Alves <palves@redhat.com>
7412
7413 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7414 after creating it, instead of writing to inferior_ptid.
7415 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7416 to inferior_ptid directly.
7417 (gdbsim_target::wait): Don't write to inferior_ptid.
7418
0ac55310
PA
74192020-06-18 Pedro Alves <palves@redhat.com>
7420
7421 * remote.c (remote_target::remote_notice_new_inferior): Use
7422 switch_to_thread instead of writing to inferior_ptid directly.
7423 (remote_target::add_current_inferior_and_thread): Use
7424 switch_to_no_thread instead of writing to inferior_ptid directly.
7425 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7426 and switch_to_thread instead of using set_current_inferior or
7427 writing to inferior_ptid directly.
7428
5233f39b
PA
74292020-06-18 Pedro Alves <palves@redhat.com>
7430
7431 * tracectf.c (ctf_target_open): Switch to added thread instead of
7432 writing to inferior_ptid directly.
7433 (ctf_target::close): Use switch_to_no_thread instead of writing to
7434 inferior_ptid directly.
7435
087e161b
PA
74362020-06-18 Pedro Alves <palves@redhat.com>
7437
7438 * tracefile-tfile.c (tfile_target_open): Don't write to
7439 inferior_ptid directly, instead switch to added thread.
7440 (tfile_target::close): Use switch_to_no_thread instead of writing
7441 to inferior_ptid directly.
7442
7fb43e53
PA
74432020-06-18 Pedro Alves <palves@redhat.com>
7444
7445 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7446 (procfs_target::detach): Use switch_to_no_thread
7447 instead of writing to inferior_ptid directly.
7448 (do_attach): Change return type to void. Switch to the added
7449 thread.
7450 (procfs_target::create_inferior): Switch to the added thread.
7451 (procfs_do_thread_registers): Don't write to inferior_ptid.
7452
18493a00
PA
74532020-06-18 Pedro Alves <palves@redhat.com>
7454
7455 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7456 of writing to inferior_ptid.
7457 (scoped_restore_exited_inferior): Delete.
7458 (handle_vfork_child_exec_or_exit): Simplify using
7459 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7460 instead of writing to inferior_ptid.
7461 (THREAD_STOPPED_BY): Delete.
7462 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7463 (thread_stopped_by_hw_breakpoint): Delete.
7464 (save_waitstatus): Use
7465 scoped_restore_current_thread+switch_to_thread, and call
7466 target_stopped_by_watchpoint instead of
7467 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7468 instead of thread_stopped_by_sw_breakpoint, and
7469 target_stopped_by_hw_breakpoint instead of
7470 thread_stopped_by_hw_breakpoint.
7471 (handle_inferior_event)
7472 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7473 inferior_ptid directly, nor
7474 set_current_inferior/set_current_program_space. Use
7475 switch_to_thread / switch_to_inferior_no_thread instead.
7476
a0776b13
PA
74772020-06-18 Pedro Alves <palves@redhat.com>
7478
7479 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7480 instead of writing to inferior_ptid.
7481
6155c136
PA
74822020-06-18 Pedro Alves <palves@redhat.com>
7483
7484 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7485 added thread.
7486 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7487 to the added thread.
7488 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7489 instead of writing to inferior_ptid.
7490
c5316fc6
PA
74912020-06-18 Pedro Alves <palves@redhat.com>
7492
7493 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7494 (register_to_value_test): Mock a program_space too. Heap-allocate
7495 the address space. Don't write to inferior_ptid. Use
7496 switch_to_thread instead.
7497
8df01799
PA
74982020-06-18 Pedro Alves <palves@redhat.com>
7499
7500 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7501 Delete.
7502 (find_signalled_thread()): New, factored out from
7503 linux_make_corefile_notes and adjusted to handle exited threads.
7504 (linux_make_corefile_notes): Adjust to use the new
7505 find_signalled_thread.
7506
41792d68
PA
75072020-06-18 Pedro Alves <palves@redhat.com>
7508
7509 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7510 of saving/restoring inferior_ptid.
7511
612f258a
TT
75122020-06-17 Tom Tromey <tom@tromey.com>
7513
7514 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7515 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7516 declare.
7517 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7518
efb763a5
SM
75192020-06-15 Simon Marchi <simon.marchi@efficios.com>
7520
7521 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7522 of partial symtabs.
7523
2951f6c0
SM
75242020-06-17 Simon Marchi <simon.marchi@efficios.com>
7525
7526 * regformats/reg-arm.dat: Remove.
7527 * regformats/reg-bfin.dat: Remove.
7528 * regformats/reg-cris.dat: Remove.
7529 * regformats/reg-crisv32.dat: Remove.
7530 * regformats/reg-m32r.dat: Remove.
7531 * regformats/reg-tilegx.dat: Remove.
7532 * regformats/reg-tilegx32.dat: Remove.
7533
7d458ea5
SM
75342020-06-17 Simon Marchi <simon.marchi@efficios.com>
7535
7536 * features/Makefile (WHICH): Remove arm files.
7537 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7538 * regformats/arm/arm-with-neon.dat: Remove.
7539 * regformats/arm/arm-with-vfpv2.dat: Remove.
7540 * regformats/arm/arm-with-vfpv3.dat: Remove.
7541
3af96c0d
SM
75422020-06-17 Simon Marchi <simon.marchi@efficios.com>
7543
7544 * features/Makefile (XMLTOC): Remove rx.xml.
7545
b25e22fd
PA
75462020-06-17 Pedro Alves <palves@redhat.com>
7547
7548 * gdbthread.h (thread_control_state) <trap_expected> Update
7549 comments.
7550
a78a19b1
AB
75512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7552
7553 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7554 ada_language::lookup_symbol_nonlocal.
7555 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7556 (ada_language::lookup_symbol_nonlocal): New member function,
7557 implementation from ada_lookup_symbol_nonlocal.
7558 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7559 initializer.
7560 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7561 initializer.
7562 (cplus_language::lookup_symbol_nonlocal): New member function.
7563 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7564 (minimal_language_data) Likewise.
7565 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7566 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7567 initializer.
7568 (d_language::lookup_symbol_nonlocal): New member function.
7569 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7570 initializer.
7571 (f_language::lookup_symbol_nonlocal): New member function.
7572 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7573 initializer.
7574 * language.c (unknown_language_data): Likewise.
7575 (auto_language_data): Likewise.
7576 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7577 field.
7578 (language_defn::lookup_symbol_nonlocal): New member function.
7579 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7580 initializer.
7581 * objc-lang.c (objc_language_data): Likewise.
7582 * opencl-lang.c (opencl_language_data): Likewise.
7583 * p-lang.c (pascal_language_data): Likewise.
7584 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7585 rust_language::lookup_symbol_nonlocal.
7586 (rust_language_data): Delete la_lookup_symbol_nonlocal
7587 initializer.
7588 (rust_language::lookup_symbol_nonlocal): New member function,
7589 implementation from rust_lookup_symbol_nonlocal.
7590 * symtab.c (lookup_symbol_aux): Update call to
7591 lookup_symbol_nonlocal.
7592 (basic_lookup_symbol_nonlocal): Rename to...
7593 (language_defn::lookup_symbol_nonlocal): ...this, and update
7594 header comment. Remove language_defn parameter, and replace with
7595 uses of `this'.
7596 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7597
ebe2334e
AB
75982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7599
7600 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7601 initializer.
7602 (ada_language::value_print_inner): New member function.
7603 * c-lang.c (c_language_data): Delete la_value_print_inner
7604 initializer.
7605 (cplus_language_data): Likewise.
7606 (asm_language_data): Likewise.
7607 (minimal_language_data): Likewise.
7608 * d-lang.c (d_language_data): Likewise.
7609 (d_language::value_print_inner): New member function.
7610 * f-lang.c (f_language_data): Delete la_value_print_inner
7611 initializer.
7612 (f_language::value_print_inner): New member function.
7613 * f-lang.h (f_value_print_innner): Rename to...
7614 (f_value_print_inner): ...this (note spelling of 'inner').
7615 * f-valprint.c (f_value_print_innner): Rename to...
7616 (f_value_print_inner): ...this (note spelling of 'inner').
7617 * go-lang.c (go_language_data): Delete la_value_print_inner
7618 initializer.
7619 (go_language::value_print_inner): New member function.
7620 * language.c (language_defn::value_print_inner): Define new member
7621 function.
7622 (unk_lang_value_print_inner): Delete.
7623 (unknown_language_data): Delete la_value_print_inner initializer.
7624 (unknown_language::value_print_inner): New member function.
7625 (auto_language_data): Delete la_value_print_inner initializer.
7626 (auto_language::value_print_inner): New member function.
7627 * language.h (language_data): Delete la_value_print_inner field.
7628 (language_defn::value_print_inner): Delcare new member function.
7629 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7630 initializer.
7631 (m2_language::value_print_inner): New member function.
7632 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7633 initializer.
7634 * opencl-lang.c (opencl_language_data): Likewise.
7635 * p-lang.c (pascal_language_data): Likewise.
7636 (pascal_language::value_print_inner): New member function.
7637 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7638 initializer.
7639 (rust_language::value_print_inner): New member function.
7640 * valprint.c (do_val_print): Update call to value_print_inner.
7641
a1d1fa3e
AB
76422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7643
7644 * ada-lang.c (ada_language_data): Delete la_value_print
7645 initializer.
7646 (ada_language::value_print): New member function.
7647 * c-lang.c (c_language_data): Delete la_value_print initializer.
7648 (cplus_language_data): Likewise.
7649 (asm_language_data): Likewise.
7650 (minimal_language_data): Likewise.
7651 * d-lang.c (d_language_data): Likewise.
7652 * f-lang.c (f_language_data): Likewise.
7653 * go-lang.c (go_language_data): Likewise.
7654 * language.c (unk_lang_value_print): Delete.
7655 (language_defn::value_print): Define new member function.
7656 (unknown_language_data): Delete la_value_print initializer.
7657 (unknown_language::value_print): New member function.
7658 (auto_language_data): Delete la_value_print initializer.
7659 (auto_language::value_print): New member function.
7660 * language.h (language_data): Delete la_value_print field.
7661 (language_defn::value_print): Declare new member function.
7662 (LA_VALUE_PRINT): Update call to value_print.
7663 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7664 * objc-lang.c (objc_language_data): Likewise.
7665 * opencl-lang.c (opencl_language_data): Likewise.
7666 * p-lang.c (pascal_language_data): Likewise.
7667 (pascal_language::value_print): New member function.
7668 * rust-lang.c (rust_language_data): Delete la_value_print
7669 initializer.
7670
f16a9f57
AB
76712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7672
7673 * ada-lang.c (ada_watch_location_expression): Rename to
7674 ada_language::watch_location_expression.
7675 (ada_language_data): Delete la_watch_location_expression
7676 initializer.
7677 (ada_language::watch_location_expression): New member function,
7678 implementation from ada_watch_location_expression.
7679 * breakpoint.c (watch_command_1): Update call to
7680 watch_location_expression.
7681 * c-lang.c (c_watch_location_expression): Rename to
7682 language_defn::watch_location_expression.
7683 (c_language_data): Delete la_watch_location_expression
7684 initializer.
7685 (cplus_language_data): Likewise.
7686 (asm_language_data): Likewise.
7687 (minimal_language_data): Likewise.
7688 * c-lang.h (c_watch_location_expression): Delete declaration.
7689 * d-lang.c (d_language_data): Delete la_watch_location_expression
7690 initializer.
7691 * f-lang.c (f_language_data): Likewise.
7692 * go-lang.c (go_language_data): Likewise.
7693 * language.c (language_defn::watch_location_expression): Member
7694 function implementation from c_watch_location_expression.
7695 (unknown_language_data): Delete la_watch_location_expression
7696 initializer.
7697 (auto_language_data): Likewise.
7698 * language.h (language_data): Delete la_watch_location_expression
7699 field.
7700 (language_defn::watch_location_expression): Declare new member
7701 function.
7702 * m2-lang.c (m2_language_data): Delete
7703 la_watch_location_expression initializer.
7704 * objc-lang.c (objc_language_data): Likewise.
7705 * opencl-lang.c (opencl_language_data): Likewise.
7706 * p-lang.c (pascal_language_data): Likewise.
7707 * rust-lang.c (rust_watch_location_expression): Rename to
7708 rust_language::watch_location_expression.
7709 (rust_language_data): Delete la_watch_location_expression
7710 initializer.
7711 (rust_language::watch_location_expression): New member function,
7712 implementation from rust_watch_location_expression.
7713
7e56227d
AB
77142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7715
7716 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7717 ada_language::collect_symbol_completion_matches.
7718 (ada_language_data): Delete la_collect_symbol_completion_matches
7719 initializer.
7720 (ada_language::collect_symbol_completion_matches): New member
7721 function, implementation from
7722 ada_collect_symbol_completion_matches.
7723 * c-lang.c (c_language_data): Delete
7724 la_collect_symbol_completion_matches initializer.
7725 (cplus_language_data): Likewise.
7726 (asm_language_data): Likewise.
7727 (minimal_language_data): Likewise.
7728 * d-lang.c (d_language_data): Likewise.
7729 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7730 f_language::collect_symbol_completion_matches.
7731 (f_language_data): Delete la_collect_symbol_completion_matches
7732 initializer.
7733 (f_language::collect_symbol_completion_matches) New member
7734 function, implementation from f_collect_symbol_completion_matches.
7735 * go-lang.c (go_language_data): Delete
7736 la_collect_symbol_completion_matches initializer.
7737 * language.c (unknown_language_data): Likewise.
7738 (auto_language_data): Likewise.
7739 * language.h (language_data): Delete
7740 la_collect_symbol_completion_matches field.
7741 (language_defn::collect_symbol_completion_matches): New member
7742 function.
7743 * m2-lang.c (m2_language_data): Delete
7744 la_collect_symbol_completion_matches initializer.
7745 * objc-lang.c (objc_language_data): Likewise.
7746 * opencl-lang.c (opencl_language_data): Likewise.
7747 * p-lang.c (pascal_language_data): Likewise.
7748 * rust-lang.c (rust_language_data): Likewise.
7749 * symtab.c (default_collect_symbol_completion_matches): Delete.
7750 (collect_symbol_completion_matches): Update call to
7751 collect_symbol_completion_matches.
7752 (collect_symbol_completion_matches_type): Likewise.
7753 * symtab.h (default_collect_symbol_completion_matches): Delete
7754 declaration.
7755
53fc67f8
AB
77562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7757
7758 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7759 (ada_language_data): Delete la_word_break_characters initializer.
7760 (ada_language::word_break_characters): New member function.
7761 * c-lang.c (c_language_data): Delete la_word_break_characters
7762 initializer.
7763 (cplus_language_data): Likewise.
7764 (asm_language_data): Likewise.
7765 (minimal_language_data): Likewise.
7766 * completer.c: Update global comment.
7767 (advance_to_expression_complete_word_point): Update call to
7768 word_break_characters.
7769 (complete_files_symbols): Likewise.
7770 (complete_line_internal_1): Likewise.
7771 (default_completer_handle_brkchars): Likewise.
7772 (skip_quoted_chars): Likewise.
7773 * d-lang.c (d_language_data): Delete la_word_break_characters
7774 initializer.
7775 * f-lang.c (f_word_break_characters): Delete.
7776 (f_language_data): Delete la_word_break_characters initializer.
7777 (f_language::word_break_characters): New member function.
7778 * go-lang.c (go_language_data): Delete la_word_break_characters
7779 initializer.
7780 * language.c (unknown_language_data): Likewise.
7781 (auto_language_data): Likewise.
7782 * language.h (default_word_break_characters): Move declaration to
7783 earlier in the file.
7784 (language_data): Delete la_word_break_characters field.
7785 (language_defn::word_break_characters): New member function.
7786 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7787 initializer.
7788 * objc-lang.c (objc_language_data): Likewise.
7789 * opencl-lang.c (opencl_language_data): Likewise.
7790 * p-lang.c (pascal_language_data): Likewise.
7791 * rust-lang.c (rust_language_data): Likewise.
7792
c9debfb9
AB
77932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7794
7795 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7796 (ada_language_data): Delete la_get_symbol_name_matcher
7797 initializer.
7798 (language_defn::get_symbol_name_matcher_inner): New member
7799 function.
7800 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7801 initializer.
7802 (cplus_language_data): Likewise.
7803 (cplus_language::get_symbol_name_matcher_inner): New member
7804 function.
7805 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7806 (minimal_language_data): Likewise.
7807 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7808 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7809 initializer.
7810 * dictionary.c (iter_match_first_hashed): Update call to
7811 get_symbol_name_matcher.
7812 (iter_match_next_hashed): Likewise.
7813 (iter_match_next_linear): Likewise.
7814 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7815 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7816 initializer.
7817 (f_language::get_symbol_name_matcher_inner): New member function.
7818 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7819 initializer.
7820 * language.c (default_symbol_name_matcher): Update header comment,
7821 make static.
7822 (language_defn::get_symbol_name_matcher): New definition.
7823 (language_defn::get_symbol_name_matcher_inner): Likewise.
7824 (get_symbol_name_matcher): Delete.
7825 (unknown_language_data): Delete la_get_symbol_name_matcher
7826 initializer.
7827 (auto_language_data): Likewise.
7828 * language.h (language_data): Delete la_get_symbol_name_matcher
7829 field.
7830 (language_defn::get_symbol_name_matcher): New member function.
7831 (language_defn::get_symbol_name_matcher_inner): Likewise.
7832 (default_symbol_name_matcher): Delete declaration.
7833 * linespec.c (find_methods): Update call to
7834 get_symbol_name_matcher.
7835 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7836 initializer.
7837 * minsyms.c (lookup_minimal_symbol): Update call to
7838 get_symbol_name_matcher.
7839 (iterate_over_minimal_symbols): Likewise.
7840 * objc-lang.c (objc_language_data): Delete
7841 la_get_symbol_name_matcher initializer.
7842 * opencl-lang.c (opencl_language_data): Likewise.
7843 * p-lang.c (pascal_language_data): Likewise.
7844 * psymtab.c (psymbol_name_matches): Update call to
7845 get_symbol_name_matcher.
7846 * rust-lang.c (rust_language_data): Delete
7847 la_get_symbol_name_matcher initializer.
7848 * symtab.c (symbol_matches_search_name): Update call to
7849 get_symbol_name_matcher.
7850 (compare_symbol_name): Likewise.
7851
9a49ad8c
AB
78522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7853
7854 * ada-lang.c (ada_language_data): Delete la_compute_program
7855 initializer.
7856 * c-lang.c (c_language_data): Likewise.
7857 (c_language::compute_program): New member function.
7858 (cplus_language_data): Delete la_compute_program initializer.
7859 (cplus_language::compute_program): New member function.
7860 (asm_language_data): Delete la_compute_program initializer.
7861 (minimal_language_data): Likewise.
7862 * c-lang.h (c_compute_program): Update comment.
7863 (cplus_compute_program): Likewise.
7864 * compile/compile-c-support.c (c_compute_program): Likewise.
7865 (cplus_compute_program): Likewise.
7866 * compile/compile.c (compile_to_object): Update call to
7867 la_compute_program.
7868 * d-lang.c (d_language_data): Delete la_compute_program
7869 initializer.
7870 * f-lang.c (f_language_data): Likewise.
7871 * go-lang.c (go_language_data): Likewise.
7872 * language.c (unknown_language_data): Likewise.
7873 (auto_language_data): Likewise.
7874 * language.h (language_data): Delete la_compute_program field.
7875 (language_defn::compute_program): New member function.
7876 * m2-lang.c (m2_language_data): Delete la_compute_program
7877 initializer.
7878 * objc-lang.c (objc_language_data): Likewise.
7879 * opencl-lang.c (opencl_language_data): Likewise.
7880 * p-lang.c (pascal_language_data): Likewise.
7881 * rust-lang.c (rust_language_data): Likewise.
7882
eff93b4d
AB
78832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7884
7885 * ada-lang.c (ada_language_data) Delete
7886 la_class_name_from_physname initializer.
7887 * c-lang.c (c_language_data): Likewise.
7888 (cplus_language_data): Likewise.
7889 (cplus_language::class_name_from_physname): New member function.
7890 (asm_language_data): Delete la_class_name_from_physname
7891 initializer.
7892 (minimal_language_data): Likewise.
7893 * d-lang.c (d_language_data): Likewise.
7894 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7895 method on language_defn class.
7896 (guess_full_die_structure_name): Likewise.
7897 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7898 initializer.
7899 * go-lang.c (go_language_data): Likewise.
7900 * language.c (language_class_name_from_physname): Delete.
7901 (unk_lang_class_name): Delete.
7902 (unknown_language_data): Delete la_class_name_from_physname
7903 initializer.
7904 (auto_language_data): Likewise.
7905 * language.h (language_data): Delete la_class_name_from_physname
7906 field.
7907 (language_defn::class_name_from_physname): New function.
7908 (language_class_name_from_physname): Delete declaration.
7909 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7910 initializer.
7911 * objc-lang.c (objc_language_data): Likewise.
7912 * opencl-lang.c (opencl_language_data): Likewise.
7913 * p-lang.c (pascal_language_data): Likewise.
7914 * rust-lang.c (rust_language_data): Likewise.
7915
de543742
TT
79162020-06-16 Tom Tromey <tom@tromey.com>
7917
7918 * tui/tui-data.h (STATUS_NAME): New macro.
7919 * tui/tui-layout.c (tui_remove_some_windows)
7920 (initialize_known_windows, tui_register_window)
7921 (tui_layout_split::remove_windows, initialize_layouts)
7922 (tui_new_layout_command): Don't use hard-coded window names.
7923
a350efd4
TT
79242020-06-16 Tom Tromey <tom@tromey.com>
7925
7926 PR tui/25348:
7927 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7928 tui_initialize_readline. Only run once. Call rl_initialize.
7929 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7930 tui_initialize_readline.
7931 * tui/tui-io.c (tui_setup_io): Call
7932 tui_ensure_readline_initialized.
7933 * tui/tui-interp.c (tui_interp::init): Update.
7934
39ec0490
TT
79352020-06-16 Tom Tromey <tom@tromey.com>
7936
7937 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7938 Also preserve the status window.
7939
d2d1ea20
TT
79402020-06-16 Tom Tromey <tom@tromey.com>
7941
7942 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7943 where m_window==nullptr.
7944
66920317
TT
79452020-06-15 Tom Tromey <tromey@adacore.com>
7946
7947 * windows-nat.c (windows_nat::handle_output_debug_string):
7948 Update.
7949 (windows_nat::handle_ms_vc_exception): Update.
7950 * target.h (target_read_string): Change API.
7951 * target.c (target_read_string): Change API.
7952 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7953 Update.
7954 * solib-frv.c (frv_current_sos): Update.
7955 * solib-dsbt.c (dsbt_current_sos): Update.
7956 * solib-darwin.c (darwin_current_sos): Update.
7957 * linux-thread-db.c (inferior_has_bug): Update.
7958 * expprint.c (print_subexp_standard): Update.
7959 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7960 (ada_exception_message_1): Update.
7961
a5d871dd
TT
79622020-06-15 Tom Tromey <tromey@adacore.com>
7963
7964 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7965
670e35fa
TT
79662020-06-15 Tom Tromey <tromey@adacore.com>
7967
7968 * valprint.c (read_string): Update comment.
7969 * target.c (MIN): Remove.
7970 (target_read_string): Rewrite.
7971
f5272a3b
TT
79722020-06-15 Tom Tromey <tromey@adacore.com>
7973
7974 * corefile.c (read_memory_string): Remove.
7975 * ada-valprint.c (ada_value_print_ptr): Update.
7976 * ada-lang.h (ada_tag_name): Change return type.
7977 * ada-lang.c (type_from_tag): Update.
7978 (ada_tag_name_from_tsd): Change return type. Use
7979 target_read_string.
7980 (ada_tag_name): Likewise.
7981 * gdbcore.h (read_memory_string): Don't declare.
7982
2c074f49
HD
79832020-06-14 Hannes Domani <ssbssa@yahoo.de>
7984
7985 * symtab.c (rbreak_command): Ignore Windows drive colon.
7986
6a17d503
SM
79872020-06-12 Simon Marchi <simon.marchi@efficios.com>
7988
7989 * NEWS: Mention removed GDBserver host support.
7990
453c733f
NC
79912020-06-12 Nelson Chu <nelson.chu@sifive.com>
7992
7993 * features/riscv/rebuild-csr-xml.sh: Updated.
7994
2b4e6a3f
TT
79952020-06-11 Tom Tromey <tom@tromey.com>
7996
7997 PR gdb/18318:
7998 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7999
4412332f
JG
80002020-06-09 Jonny Grant <jg@jguk.org>
80012020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8002
8003 * main.c (captured_main_1): Don't print new line after help.
8004 (print_gdb_help): add mailing list and IRC channel information
8005 to --help. Add new lines between items in the footer. Remove
8006 quotes around bug url.
8007
2f33032a
KS
80082020-06-11 Keith Seitz <keiths@redhat.com>
8009
8010 PR gdb/21356
8011 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8012 Resolve typedefs for type length calculations.
8013
7ab96794
TV
80142020-06-10 Tom de Vries <tdevries@suse.de>
8015
8016 PR ada/24713
8017 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8018 (write_psymbols): Enable .gdb_index for ada.
8019 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8020 ada.
8021
e5f3ece2
TV
80222020-06-10 Tom de Vries <tdevries@suse.de>
8023
8024 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8025 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8026 namei" instead of "const char *name" argument.
8027 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8028 dw2_symtab_iter_init.
8029
940da03e
SM
80302020-06-08 Simon Marchi <simon.marchi@efficios.com>
8031
8032 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8033 to use type::field and field::type instead.
8034
b6cdac4b
SM
80352020-06-08 Simon Marchi <simon.marchi@efficios.com>
8036
8037 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8038 to use field::type instead.
8039
5d14b6e5
SM
80402020-06-08 Simon Marchi <simon.marchi@efficios.com>
8041
8042 * gdbtypes.h (struct field) <type, set_type>: New methods.
8043 Rename `type` field to...
8044 <m_type>: ... this. Change references throughout to use type or
8045 set_type methods.
8046 (FIELD_TYPE): Use field::type. Change call sites that modify
8047 the field's type to use field::set_type instead.
8048
3d967001
SM
80492020-06-08 Simon Marchi <simon.marchi@efficios.com>
8050
8051 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8052 to use type::index_type instead.
8053
262abc0d
SM
80542020-06-08 Simon Marchi <simon.marchi@efficios.com>
8055
8056 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8057 methods.
8058 (TYPE_INDEX_TYPE): Use type::index_type.
8059 * gdbtypes.c (create_array_type_with_stride): Likewise.
8060
82836c92
TT
80612020-06-07 Tom Tromey <tom@tromey.com>
8062
8063 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8064 parameter.
8065 (generic_value_print): Update.
8066
940dace9
AB
80672020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8068
8069 Revert commit 982a38f60b0.
8070 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8071
982a38f6
AB
80722020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8073
8074 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8075 avoid use after free.
8076
82f06518
TV
80772020-06-05 Tom de Vries <tdevries@suse.de>
8078
8079 * NEWS: Fix typos.
8080
f8c41851
SM
80812020-06-04 Simon Marchi <simon.marchi@efficios.com>
8082
8083 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8084 the per_bfd object.
8085 (dwarf2_read_debug_names): Likewise.
8086 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8087 object when re-using a per_bfd object with an index.
8088
f9b5d5ea
TV
80892020-06-03 Tom de Vries <tdevries@suse.de>
8090
8091 PR symtab/26046
8092 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8093 children for C++.
8094 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8095 DW_TAG_subprogram.
8096
f6eee2d0
AB
80972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8098
8099 * ada-lang.c (ada_language_data): Delete skip_trampoline
8100 initializer.
8101 * c-lang.c (c_language_data): Likewise.
8102 (cplus_language_data): Likewise.
8103 (cplus_language::skip_trampoline): New member function.
8104 (asm_language_data): Delete skip_trampoline initializer.
8105 (minimal_language_data): Likewise.
8106 * d-lang.c (d_language_data): Likewise.
8107 * f-lang.c (f_language_data): Likewise.
8108 * go-lang.c (go_language_data): Likewise.
8109 * language.c (unk_lang_trampoline): Delete function.
8110 (skip_language_trampoline): Update.
8111 (unknown_language_data): Delete skip_trampoline initializer.
8112 (auto_language_data): Likewise.
8113 * language.h (language_data): Delete skip_trampoline field.
8114 (language_defn::skip_trampoline): New function.
8115 * m2-lang.c (m2_language_data): Delete skip_trampoline
8116 initializer.
8117 * objc-lang.c (objc_skip_trampoline): Delete function, move
8118 implementation to objc_language::skip_trampoline.
8119 (objc_language_data): Delete skip_trampoline initializer.
8120 (objc_language::skip_trampoline): New member function with
8121 implementation from objc_skip_trampoline.
8122 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8123 initializer.
8124 * p-lang.c (pascal_language_data): Likewise.
8125 * rust-lang.c (rust_language_data): Likewise.
8126
0a50df5d
AB
81272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8128
8129 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8130 (ada_language::demangle): New member function.
8131 * c-lang.c (c_language_data): Delete la_demangle initializer.
8132 (cplus_language_data): Delete la_demangle initializer.
8133 (cplus_language::demangle): New member function.
8134 (asm_language_data): Delete la_demangle initializer.
8135 (minimal_language_data): Delete la_demangle initializer.
8136 * d-lang.c (d_language_data): Delete la_demangle initializer.
8137 (d_language::demangle): New member function.
8138 * f-lang.c (f_language_data): Delete la_demangle initializer.
8139 (f_language::demangle): New member function.
8140 * go-lang.c (go_language_data): Delete la_demangle initializer.
8141 (go_language::demangle): New member function.
8142 * language.c (language_demangle): Update.
8143 (unk_lang_demangle): Delete.
8144 (unknown_language_data): Delete la_demangle initializer.
8145 (unknown_language::demangle): New member function.
8146 (auto_language_data): Delete la_demangle initializer.
8147 (auto_language::demangle): New member function.
8148 * language.h (language_data): Delete la_demangle field.
8149 (language_defn::demangle): New function.
8150 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8151 * objc-lang.c (objc_language_data): Delete la_demangle
8152 initializer.
8153 (objc_language::demangle): New member function.
8154 * opencl-lang.c (opencl_language_data): Delete la_demangle
8155 initializer.
8156 * p-lang.c (pascal_language_data): Likewise.
8157 * rust-lang.c (rust_language_data): Likewise.
8158 (rust_language::demangle): New member function.
8159
fbfb0a46
AB
81602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8161
8162 * ada-lang.c (ada_language_data): Delete la_print_type
8163 initializer.
8164 (ada_language::print_type): New member function.
8165 * c-lang.c (c_language_data): Delete la_print_type initializer.
8166 (c_language::print_type): New member function.
8167 (cplus_language_data): Delete la_print_type initializer.
8168 (cplus_language::print_type): New member function.
8169 (asm_language_data): Delete la_print_type initializer.
8170 (asm_language::print_type): New member function.
8171 (minimal_language_data): Delete la_print_type initializer.
8172 (minimal_language::print_type): New member function.
8173 * d-lang.c (d_language_data): Delete la_print_type initializer.
8174 (d_language::print_type): New member function.
8175 * f-lang.c (f_language_data): Delete la_print_type initializer.
8176 (f_language::print_type): New member function.
8177 * go-lang.c (go_language_data): Delete la_print_type initializer.
8178 (go_language::print_type): New member function.
8179 * language.c (unk_lang_print_type): Delete.
8180 (unknown_language_data): Delete la_print_type initializer.
8181 (unknown_language::print_type): New member function.
8182 (auto_language_data): Delete la_print_type initializer.
8183 (auto_language::print_type): New member function.
8184 * language.h (language_data): Delete la_print_type field.
8185 (language_defn::print_type): New function.
8186 (LA_PRINT_TYPE): Update.
8187 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8188 (m2_language::print_type): New member function.
8189 * objc-lang.c (objc_language_data): Delete la_print_type
8190 initializer.
8191 (objc_language::print_type): New member function.
8192 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8193 to opencl_language::print_type.
8194 (opencl_language_data): Delete la_print_type initializer.
8195 (opencl_language::print_type): New member function, implementation
8196 from opencl_print_type.
8197 * p-lang.c (pascal_language_data): Delete la_print_type
8198 initializer.
8199 (pascal_language::print_type): New member function.
8200 * rust-lang.c (rust_print_type): Delete, implementation moved to
8201 rust_language::print_type.
8202 (rust_language_data): Delete la_print_type initializer.
8203 (rust_language::print_type): New member function, implementation
8204 from rust_print_type.
8205
6f827019
AB
82062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8207
8208 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8209 implementation moves to...
8210 (ada_language::sniff_from_mangled_name): ...here. Update return
8211 type.
8212 (ada_language_data): Delete la_sniff_from_mangled_name
8213 initializer.
8214 * c-lang.c (c_language_data): Likewise.
8215 (cplus_language_data): Likewise.
8216 (cplus_language::sniff_from_mangled_name): New member function,
8217 implementation taken from gdb_sniff_from_mangled_name.
8218 (asm_language_data): Delete la_sniff_from_mangled_name
8219 initializer.
8220 (minimal_language_data): Likewise.
8221 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8222 implementation moves to cplus_language::sniff_from_mangled_name.
8223 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8224 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8225 moves to...
8226 (d_language::sniff_from_mangled_name): ...here.
8227 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8228 * f-lang.c (f_language_data): Likewise.
8229 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8230 moves to...
8231 (go_language::sniff_from_mangled_name): ...here.
8232 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8233 * language.c (language_sniff_from_mangled_name): Delete.
8234 (unknown_language_data): Delete la_sniff_from_mangled_name
8235 initializer.
8236 (auto_language_data): Likewise.
8237 * language.h (language_data): Delete la_sniff_from_mangled_name
8238 field.
8239 (language_defn::sniff_from_mangled_name): New function.
8240 (language_sniff_from_mangled_name): Delete declaration.
8241 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8242 field.
8243 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8244 implementation moves to...
8245 (objc_language::sniff_from_mangled_name): ...here.
8246 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8247 * opencl-lang.c (opencl_language_data): Likewise.
8248 * p-lang.c (pascal_language_data): Likewise.
8249 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8250 implementation moves to...
8251 (rust_language::sniff_from_mangled_name): ...here.
8252 (rust_language_data): Delete la_sniff_from_mangled_name
8253 initializer.
8254 * symtab.c (symbol_find_demangled_name): Call
8255 sniff_from_mangled_name member function.
8256
fb8006fd
AB
82572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8258
8259 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8260 initializer.
8261 * c-lang.c (c_language_data): Likewise.
8262 (cplus_language_data): Likewise.
8263 (cplus_language::search_name_hash): New member function.
8264 (asm_language_data): Delete la_search_name_hash initializer.
8265 (minimal_language_data): Likewise.
8266 * d-lang.c (d_language_data): Likewise.
8267 * dictionary.c (default_search_name_hash): Rename to...
8268 (language_defn::search_name_hash): ...this.
8269 * f-lang.c (f_language_data): Likewise.
8270 (f_language::search_name_hash): New member function.
8271 * go-lang.c (go_language_data): Delete la_search_name_hash
8272 initializer.
8273 * language.c (unknown_language_data): Likewise.
8274 (auto_language_data): Likewise.
8275 * language.h (struct language_data): Delete la_search_name_hash
8276 field.
8277 (language_defn::search_name_hash): Declare new member function.
8278 (default_search_name_hash): Delete declaration.
8279 * m2-lang.c (m2_language_data): Delete la_search_name_hash
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 * symtab.c (search_name_hash): Update call.
8286
8e25bafe
AB
82872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8288
8289 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8290 initializer.
8291 * c-lang.c (class compile_instance): Declare.
8292 (c_language_data): Delete la_get_compile_instance initializer.
8293 (c_language::get_compile_instance): New member function.
8294 (cplus_language_data): Delete la_get_compile_instance initializer.
8295 (cplus_language::get_compile_instance): New member function.
8296 (asm_language_data): Delete la_get_compile_instance initializer.
8297 (minimal_language_data): Likewise.
8298 * c-lang.h (c_get_compile_context): Update comment.
8299 (cplus_get_compile_context): Update comment.
8300 * compile/compile.c (compile_to_object): Update calls, don't rely
8301 on function pointer being NULL.
8302 * d-lang.c (d_language_data): Delete la_get_compile_instance
8303 initializer.
8304 * f-lang.c (f_language_data): Likewise.
8305 * go-lang.c (go_language_data): Likewise.
8306 * language.c (unknown_language_data): Likewise.
8307 (auto_language_data): Likewise.
8308 * language.h (language_data): Delete la_get_compile_instance field.
8309 (language_defn::get_compile_instance): New member function.
8310 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8311 initializer.
8312 * objc-lang.c (objc_language_data): Likewise.
8313 * opencl-lang.c (opencl_language_data): Likewise.
8314 * p-lang.c (pascal_language_data): Likewise.
8315 * rust-lang.c (rust_language_data): Likewise.
8316
4009ee92
AB
83172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8318
8319 * ada-lang.c (ada_add_all_symbols): Update comment.
8320 (ada_iterate_over_symbols): Delete, move implementation to...
8321 (ada_language::iterate_over_symbols): ...here, a new member
8322 function, rewrite to use range based for loop.
8323 (ada_language_data): Delete la_iterate_over_symbols initializer.
8324 * c-lang.c (c_language_data): Likewise.
8325 (cplus_language_data): Likewise.
8326 (asm_language_data): Likewise.
8327 (minimal_language_data): Likewise.
8328 * d-lang.c (d_language_data): Likewise.
8329 * f-lang.c (f_language_data): Likewise.
8330 * go-lang.c (go_language_data): Likewise.
8331 * language.c (unknown_language_data): Likewise.
8332 (auto_language_data): Likewise.
8333 * language.h (language_data): Delete la_iterate_over_symbols field.
8334 (language_defn::iterate_over_symbols): New member function.
8335 (LA_ITERATE_OVER_SYMBOLS): Update.
8336 * linespec.c (iterate_over_all_matching_symtabs): Update.
8337 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8338 initializer.
8339 * objc-lang.c (objc_language_data): Likewise.
8340 * opencl-lang.c (opencl_language_data): Likewise.
8341 * p-lang.c (pascal_language_data): Likewise.
8342 * rust-lang.c (rust_language_data): Likewise.
8343
54f4ca46
AB
83442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8345
8346 * ada-lang.c (ada_language_data): Delete
8347 la_lookup_transparent_type initializer.
8348 * c-lang.c (c_language_data): Likewise.
8349 (cplus_language_data): Likewise.
8350 (cplus_language::lookup_transparent_type): New member function.
8351 (asm_language_data): Delete la_lookup_transparent_type
8352 initializer.
8353 (minimal_language_data): Likewise.
8354 * d-lang.c (d_language_data): Likewise.
8355 * f-lang.c (f_language_data): Likewise.
8356 * go-lang.c (go_language_data): Likewise.
8357 * language.c (unknown_language_data): Likewise.
8358 (auto_language_data): Likewise.
8359 * language.h (struct language_data): Delete
8360 la_lookup_transparent_type field.
8361 (language_defn::lookup_transparent_type): New member function.
8362 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8363 initializer.
8364 * objc-lang.c (objc_language_data): Likewise.
8365 * opencl-lang.c (opencl_language_data): Likewise.
8366 * p-lang.c (pascal_language_data): Likewise.
8367 * rust-lang.c (rust_language_data): Likewise.
8368 * symtab.c (symbol_matches_domain): Update call.
8369
1fb314aa
AB
83702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8371
8372 * ada-lang.c (ada_language_arch_info): Delete function, move
8373 implementation to...
8374 (ada_language::language_arch_info): ...here, a new member
8375 function.
8376 (ada_language_data): Delete la_language_arch_info.
8377 * c-lang.c (c_language_data): Likewise.
8378 (c_language::language_arch_info): New member function.
8379 (cplus_language_arch_info): Delete function, move
8380 implementation to...
8381 (cplus_language::language_arch_info): ...here, a new member
8382 function.
8383 (cplus_language_data): Delete la_language_arch_info.
8384 (asm_language_data): Likewise.
8385 (asm_language::language_arch_info): New member function.
8386 (minimal_language_data): Delete la_language_arch_info.
8387 (minimal_language::language_arch_info): New member function.
8388 * d-lang.c (d_language_arch_info): Delete function, move
8389 implementation to...
8390 (d_language::language_arch_info): ...here, a new member
8391 function.
8392 (d_language_data): Delete la_language_arch_info.
8393 * f-lang.c (f_language_arch_info): Delete function, move
8394 implementation to...
8395 (f_language::language_arch_info): ...here, a new member
8396 function.
8397 (f_language_data): Delete la_language_arch_info.
8398 * go-lang.c (go_language_arch_info): Delete function, move
8399 implementation to...
8400 (go_language::language_arch_info): ...here, a new member
8401 function.
8402 (go_language_data): Delete la_language_arch_info.
8403 * language.c (unknown_language_data): Likewise.
8404 (unknown_language::language_arch_info): New member function.
8405 (auto_language_data): Delete la_language_arch_info.
8406 (auto_language::language_arch_info): New member function.
8407 (language_gdbarch_post_init): Update call to
8408 la_language_arch_info.
8409 * language.h (language_data): Delete la_language_arch_info
8410 function pointer.
8411 (language_defn::language_arch_info): New function.
8412 * m2-lang.c (m2_language_arch_info): Delete function, move
8413 implementation to...
8414 (m2_language::language_arch_info): ...here, a new member
8415 function.
8416 (m2_language_data): Delete la_language_arch_info.
8417 * objc-lang.c (objc_language_arch_info): Delete function, move
8418 implementation to...
8419 (objc_language::language_arch_info): ...here, a new member
8420 function.
8421 (objc_language_data): Delete la_language_arch_info.
8422 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8423 implementation to...
8424 (opencl_language::language_arch_info): ...here, a new member
8425 function.
8426 (opencl_language_data): Delete la_language_arch_info.
8427 * p-lang.c (pascal_language_arch_info): Delete function, move
8428 implementation to...
8429 (pascal_language::language_arch_info): ...here, a new member
8430 function.
8431 (pascal_language_data): Delete la_language_arch_info.
8432 * rust-lang.c (rust_language_arch_info): Delete function, move
8433 implementation to...
8434 (rust_language::language_arch_info): ...here, a new member
8435 function.
8436 (rust_language_data): Delete la_language_arch_info.
8437
48448202
AB
84382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8439
8440 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8441 initializer.
8442 * c-lang.c (c_language_data): Likewise.
8443 (cplus_language_data): Likewise.
8444 (cplus_language::pass_by_reference_info): New method.
8445 (asm_language_data): Delete la_pass_by_reference initializer.
8446 (minimal_language_data): Likewise.
8447 * cp-abi.c (cp_pass_by_reference): Remove use of
8448 default_pass_by_reference.
8449 * d-lang.c (d_language_data): Likewise.
8450 * f-lang.c (f_language_data): Likewise.
8451 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8452 default_pass_by_reference.
8453 * go-lang.c (go_language_data): Likewise.
8454 * language.c (language_pass_by_reference): Update.
8455 (default_pass_by_reference): Delete.
8456 (unknown_language_data): Delete la_pass_by_reference
8457 initializer.
8458 (auto_language_data): Likewise.
8459 * language.h (struct language_data): Delete la_pass_by_reference
8460 field.
8461 (language_defn::pass_by_reference_info): New member function.
8462 (default_pass_by_reference): Delete declaration.
8463 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8464 initializer.
8465 * objc-lang.c (objc_language_data): Likewise.
8466 * opencl-lang.c (opencl_language_data): Likewise.
8467 * p-lang.c (pascal_language_data): Likewise.
8468 * rust-lang.c (rust_language_data): Likewise.
8469
15e5fd35
AB
84702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8471
8472 * ada-lang.c (ada_read_var_value): Delete function, move
8473 implementation to...
8474 (ada_language::read_var_value): ...here.
8475 (ada_language_data): Delete la_read_var_value initializer.
8476 * c-lang.c (c_language_data): Likewise.
8477 (cplus_language_data): Likewise.
8478 (minimal_language_data): Likewise.
8479 * d-lang.c (d_language_data): Likewise.
8480 * f-lang.c (f_language_data): Likewise.
8481 * findvar.c (default_read_var_value): Rename to...
8482 (language_defn::read_var_value): ...this.
8483 * findvar.c (read_var_value): Update header comment, and change to
8484 call member function instead of function pointer.
8485 * go-lang.c (go_language_data): Likewise.
8486 * language.c (unknown_language_data): Delete la_read_var_value
8487 initializer.
8488 (auto_language_data): Likewise.
8489 * language.h (struct language_data): Delete la_read_var_value
8490 field.
8491 (language_defn::read_var_value): New member function.
8492 (default_read_var_value): Delete declaration.
8493 * m2-lang.c (m2_language_data): Delete la_read_var_value
8494 initializer.
8495 * objc-lang.c (objc_language_data): Likewise.
8496 * opencl-lang.c (opencl_language_data): Likewise.
8497 * p-lang.c (pascal_language_data): Likewise.
8498 * rust-lang.c (rust_language_data): Likewise.
8499 * value.h (default_read_var_value): Delete declaration.
8500
5bd40f2a
AB
85012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8502
8503 * ada-lang.c (ada_print_array_index): Delete function, move
8504 implementation to...
8505 (ada_language::print_array_index): ...here.
8506 (ada_language_data): Delete la_print_array_index initializer.
8507 * c-lang.c (c_language_data): Likewise.
8508 (cplus_language_data): Likewise.
8509 (minimal_language_data): Likewise.
8510 * d-lang.c (d_language_data): Likewise.
8511 * f-lang.c (f_language_data): Likewise.
8512 * go-lang.c (go_language_data): Likewise.
8513 * language.c (default_print_array_index): Delete function, move
8514 implementation to...
8515 (language_defn::print_array_index): ...here.
8516 (unknown_language_data): Delete la_print_array_index initializer.
8517 (auto_language_data): Likewise.
8518 * language.h (struct language_data): Delete la_print_array_index
8519 field.
8520 (language_defn::print_array_index): New member function.
8521 (LA_PRINT_ARRAY_INDEX): Update.
8522 (default_print_array_index): Delete declaration.
8523 * m2-lang.c (m2_language_data): Delete la_print_array_index
8524 initializer.
8525 * objc-lang.c (objc_language_data): Likewise.
8526 * opencl-lang.c (opencl_language_data): Likewise.
8527 * p-lang.c (pascal_language_data): Likewise.
8528 * rust-lang.c (rust_language_data): Likewise.
8529
0874fd07
AB
85302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8531
8532 * gdb/ada-lang.c (ada_language_defn): Convert to...
8533 (ada_language_data): ...this.
8534 (class ada_language): New class.
8535 (ada_language_defn): New static global.
8536 * gdb/c-lang.c (c_language_defn): Convert to...
8537 (c_language_data): ...this.
8538 (class c_language): New class.
8539 (c_language_defn): New static global.
8540 (cplus_language_defn): Convert to...
8541 (cplus_language_data): ...this.
8542 (class cplus_language): New class.
8543 (cplus_language_defn): New static global.
8544 (asm_language_defn): Convert to...
8545 (asm_language_data): ...this.
8546 (class asm_language): New class.
8547 (asm_language_defn): New static global.
8548 (minimal_language_defn): Convert to...
8549 (minimal_language_data): ...this.
8550 (class minimal_language): New class.
8551 (minimal_language_defn): New static global.
8552 * gdb/d-lang.c (d_language_defn): Convert to...
8553 (d_language_data): ...this.
8554 (class d_language): New class.
8555 (d_language_defn): New static global.
8556 * gdb/f-lang.c (f_language_defn): Convert to...
8557 (f_language_data): ...this.
8558 (class f_language): New class.
8559 (f_language_defn): New static global.
8560 * gdb/go-lang.c (go_language_defn): Convert to...
8561 (go_language_data): ...this.
8562 (class go_language): New class.
8563 (go_language_defn): New static global.
8564 * gdb/language.c (unknown_language_defn): Remove declaration.
8565 (current_language): Initialize to nullptr, real initialization is
8566 moved to _initialize_language.
8567 (languages): Delete global.
8568 (language_defn::languages): Define.
8569 (set_language_command): Use language_defn::languages.
8570 (set_language): Likewise.
8571 (range_error): Likewise.
8572 (language_enum): Likewise.
8573 (language_def): Likewise.
8574 (add_set_language_command): Use language_def::languages for the
8575 language list, and language_def to lookup language pointers.
8576 (skip_language_trampoline): Use language_defn::languages.
8577 (unknown_language_defn): Convert to...
8578 (unknown_language_data): ...this.
8579 (class unknown_language): New class.
8580 (unknown_language_defn): New static global.
8581 (auto_language_defn): Convert to...
8582 (auto_language_data): ...this.
8583 (class auto_language): New class.
8584 (auto_language_defn): New static global.
8585 (language_gdbarch_post_init): Use language_defn::languages.
8586 (_initialize_language): Initialize current_language.
8587 * gdb/language.h (struct language_defn): Rename to...
8588 (struct language_data): ...this.
8589 (struct language_defn): New.
8590 (auto_language_defn): Delete.
8591 (unknown_language_defn): Delete.
8592 (minimal_language_defn): Delete.
8593 (ada_language_defn): Delete.
8594 (asm_language_defn): Delete.
8595 (c_language_defn): Delete.
8596 (cplus_language_defn): Delete.
8597 (d_language_defn): Delete.
8598 (f_language_defn): Delete.
8599 (go_language_defn): Delete.
8600 (m2_language_defn): Delete.
8601 (objc_language_defn): Delete.
8602 (opencl_language_defn): Delete.
8603 (pascal_language_defn): Delete.
8604 (rust_language_defn): Delete.
8605 * gdb/m2-lang.c (m2_language_defn): Convert to...
8606 (m2_language_data): ...this.
8607 (class m2_language): New class.
8608 (m2_language_defn): New static global.
8609 * gdb/objc-lang.c (objc_language_defn): Convert to...
8610 (objc_language_data): ...this.
8611 (class objc_language): New class.
8612 (objc_language_defn): New static global.
8613 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8614 (opencl_language_data): ...this.
8615 (class opencl_language): New class.
8616 (opencl_language_defn): New static global.
8617 * gdb/p-lang.c (pascal_language_defn): Convert to...
8618 (pascal_language_data): ...this.
8619 (class pascal_language): New class.
8620 (pascal_language_defn): New static global.
8621 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8622 language pointer, update comment format.
8623 * gdb/rust-lang.c (rust_language_defn): Convert to...
8624 (rust_language_data): ...this.
8625 (class rust_language): New class.
8626 (rust_language_defn): New static global.
8627
1313c56e
AB
86282020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8629
8630 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8631 member variable.
8632 <m_stmt_at_address>: New member variable.
8633 (lnp_state_machine::record_line): Don't record some lines, update
8634 tracking of is_stmt at the same address.
8635 (lnp_state_machine::lnp_state_machine): Initialise new member
8636 variables.
8637
b7ed9f3d
ST
86382020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8639
8640 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8641 "-include gnu-nat-mig.h".
8642 * gnu-nat-mig.h: New file.
8643 * gnu-nat.c: Include "gnu-nat-mig.h".
8644 (exc_server, msg_reply_server, notify_server,
8645 process_reply_server): Remove declarations.
8646
14a8ad62
ST
86472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8648
8649 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8650 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8651 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8652 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8653 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8654 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8655 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8656 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8657 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8658 to gnu_nat_target class.
8659 * gnu-nat.c: Likewise.
8660 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8661 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8662 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8663 object.
8664 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8665 instead of `gnu_target'.
8666
0af5e106
ST
86672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8668
8669 * i386-gnu-tdep.c: Include "gdbcore.h"
8670 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8671 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8672 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8673 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8674 i386_gnu_sigcontext_addr): New functions
8675 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8676 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8677 tdep.
8678
078f2fc9
ST
86792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8680
8681 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8682 before fork_inferior call. Avoid calling it if target_is_pushed returns
8683 true.
8684
53dff92c
ST
86852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8686
8687 * gnu-nat.h (gnu_target): New variable declaration.
8688 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8689 gnu_target.
8690 * gnu-nat.c (gnu_target): New variable.
8691 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8692 add_thread_silent, and add_thread calls.
8693 (gnu_nat_target::create_inferior): Pass gnu_target to
8694 add_thread_silent, thread_change_ptid call.
8695 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8696 call.
8697
5a8b8627
ST
86982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8699
8700 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8701 (gnu_nat_target::find_memory_regions): Remove unused
8702 `old_address' variable.
8703
366f550a
ST
87042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8705
8706 * gnu-nat.c: Include "gdbarch.h".
8707
f14871bf
ST
87082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8709
8710 * reply_mig_hack.awk (Error return): Cast function through
8711 void *, to bypass compiler function call check.
8712
c6887cfb
ST
87132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8714
8715 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8716 $(srcdir)/reply_mig_hack.awk.
8717
6930bffe
ST
87182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8719
8720 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8721
112c22ed
JG
87222020-05-30 Jonny Grant <jg@jguk.org>
8723
8724 * configure.ac (ACX_BUGURL): change bug URL to https.
8725
f68f85b5
PA
87262020-05-30 Pedro Alves <palves@redhat.com>
8727
8728 * cp-support.c (replace_typedefs_template): New.
8729 (replace_typedefs_qualified_name): Handle
8730 DEMANGLE_COMPONENT_TEMPLATE.
8731
976ca316
SM
87322020-05-29 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8735 dwarf2/index-cache.h, dwarf2/index-write.c,
8736 dwarf2/index-write.h, dwarf2/line-header.c,
8737 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8738 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8739 variables and fields from `dwarf2_per_objfile` to just
8740 `per_objfile` throughout.
8741
989ade05
SM
87422020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8743
8744 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8745 <push_dwarf_reg_entry_value>: Add comment.
8746
c47bae85
KB
87472020-05-28 Kevin Buettner <kevinb@redhat.com>
8748 Keith Seitz <keiths@redhat.com>
8749
8750 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8751 instead of PyEval_ReleaseLock.
8752 (class gdbpy_gil): Move to earlier in file.
8753 (finalize_python): Set gdb_python_initialized.
8754 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8755 when not initialized.
8756
44486dcf
SM
87572020-05-28 Simon Marchi <simon.marchi@efficios.com>
8758
8759 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8760 <push_dwarf_reg_entry_value>: Remove assert. Override
8761 per_objfile with caller_per_objfile.
8762
f030440d
TV
87632020-05-28 Tom de Vries <tdevries@suse.de>
8764
8765 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8766 PR gold/15646 workaround to symbol kind "type".
8767
f0fbb768
TT
87682020-05-27 Tom Tromey <tromey@adacore.com>
8769
8770 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8771
af0b2a3e
TT
87722020-05-27 Tom Tromey <tromey@adacore.com>
8773
8774 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8775 Use htab_find_with_hash.
8776 <add_abbrev>: Remove "abbrev_number" parameter.
8777 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8778 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8779 (hash_abbrev): Add comment.
8780 (abbrev_table::lookup_abbrev): Move to header file.
8781 (abbrev_table::read): Update.
8782
7d00ffec
TT
87832020-05-27 Tom Tromey <tromey@adacore.com>
8784
8785 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8786 method.
8787 <canonical_name>: New member.
8788 <raw_name>: Rename from "name".
8789 (partial_die_info): Initialize canonical_name.
8790 (scan_partial_symbols): Check raw_name.
8791 (partial_die_parent_scope, partial_die_full_name)
8792 (add_partial_symbol, add_partial_subprogram)
8793 (add_partial_enumeration, load_partial_dies): Use "name" method.
8794 (partial_die_info::name): New method.
8795 (partial_die_info::read, guess_partial_die_structure_name)
8796 (partial_die_info::fixup): Update.
8797
697bba18
TT
87982020-05-27 Tom Tromey <tromey@adacore.com>
8799
8800 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8801 <get_ref_die_offset>: Inline.
8802 <get_ref_die_offset_complaint>: New method.
8803 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8804 (attribute::get_ref_die_offset_complaint): Rename from
8805 get_ref_die_offset. Just issue complaint.
8806
c17ace43
HD
88072020-05-27 Hannes Domani <ssbssa@yahoo.de>
8808
8809 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8810
96445f0b
HD
88112020-05-27 Hannes Domani <ssbssa@yahoo.de>
8812
8813 * exec.c (exec_file_attach): Use errno value of first openp failure.
8814
ac637ec3
HD
88152020-05-27 Hannes Domani <ssbssa@yahoo.de>
8816
8817 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8818 Don't close thread handle.
8819
17ee85fc
TT
88202020-05-27 Tom Tromey <tom@tromey.com>
8821 Simon Marchi <simon.marchi@efficios.com>
8822
8823 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8824 shared_ptr.
8825 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8826 member.
8827 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8828 dwarf2_per_bfd_objfile_data_key>: New globals.
8829 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8830 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8831 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8832 shared.
8833 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8834 short-circuit when sharing.
8835 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8836 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8837
39b16f87
SM
88382020-05-27 Simon Marchi <simon.marchi@efficios.com>
8839
8840 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8841 to...
8842 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8843 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8844
fcf23d5b
SM
88452020-05-27 Simon Marchi <simon.marchi@efficios.com>
8846
8847 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8848 build_name_components, find_name_components_bounds>:
8849 Add per_objfile parameter.
8850 (struct mapped_index) <symbol_name_at>: Likewise.
8851 (struct mapped_debug_names): Remove constructor.
8852 <dwarf2_per_objfile>: Remove field.
8853 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8854 (mapped_index_base::find_name_components_bounds,
8855 mapped_index_base::build_name_components,
8856 dw2_expand_symtabs_matching_symbol): Likewise.
8857 (class mock_mapped_index) <symbol_name_at>: Likewise.
8858 (check_match): Likewise.
8859 (check_find_bounds_finds): Likewise.
8860 (test_mapped_index_find_name_component_bounds): Update.
8861 (CHECK_MATCH): Update.
8862 (dw2_expand_symtabs_matching): Update.
8863 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8864 per_objfile parameter.
8865 <find_vec_in_debug_names>: Likewise.
8866 <m_per_objfile>: New field.
8867 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8868 parameter.
8869 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8870 (dw2_debug_names_iterator::next): Update.
8871 (dw2_debug_names_lookup_symbol): Update.
8872 (dw2_debug_names_expand_symtabs_for_function): Update.
8873 (dw2_debug_names_map_matching_symbols): Update.
8874 (dw2_debug_names_expand_symtabs_matching): Update.
8875 (dwarf2_read_debug_names): Update.
8876
7188ed02
SM
88772020-05-27 Simon Marchi <simon.marchi@efficios.com>
8878
8879 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8880 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8881 move to dwarf2_per_objfile.
8882 <read_in_chain>: Remove.
8883 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8884 remove_all_cus, age_comp_units>: New methods.
8885 <m_dwarf2_cus>: New member.
8886 (struct dwarf2_per_cu_data) <cu>: Remove.
8887 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8888 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8889 moved to methods of dwarf2_per_objfile.
8890 (dwarf2_clear_marks): Remove.
8891 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8892 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8893 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8894 (dwarf2_per_objfile::remove_all_cus): New.
8895 (class free_cached_comp_units) <~free_cached_comp_units>:
8896 Update.
8897 (load_cu): Update.
8898 (dw2_do_instantiate_symtab): Adjust.
8899 (fill_in_sig_entry_from_dwo_entry): Adjust.
8900 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8901 (cutu_reader::cutu_reader): Likewise.
8902 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8903 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8904 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8905 and dwarf2_per_objfile::age_comp_units.
8906 (load_partial_comp_unit): Update.
8907 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8908 (process_queue): Likewise.
8909 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8910 backlink.
8911 (dwarf2_read_addr_index): Likewise.
8912 (follow_die_offset): Likewise.
8913 (dwarf2_fetch_die_loc_sect_off): Likewise.
8914 (dwarf2_fetch_constant_bytes): Likewise.
8915 (dwarf2_fetch_die_type_sect_off): Likewise.
8916 (follow_die_sig_1): Likewise.
8917 (load_full_type_unit): Likewise.
8918 (read_signatured_type): Likewise.
8919 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8920 (dwarf2_cu::~dwarf2_cu): Remove.
8921 (dwarf2_per_objfile::get_cu): New.
8922 (dwarf2_per_objfile::set_cu): New.
8923 (age_cached_comp_units): Rename to...
8924 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8925 to std::unordered_map.
8926 (free_one_cached_comp_unit): Rename to...
8927 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8928 to std::unordered_map.
8929 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8930 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8931 a dwarf2_per_objfile in data.
8932 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8933 (dwarf2_clear_marks): Remove.
8934
2e671100
SM
89352020-05-27 Simon Marchi <simon.marchi@efficios.com>
8936
8937 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8938 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8939 (init_tu_and_read_dwo_dies): Likewise.
8940 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8941 (cutu_reader::cutu_reader): Likewise.
8942 (load_partial_comp_unit): Likewise.
8943 (process_psymtab_comp_unit): Update.
8944 (build_type_psymtabs_1): Update.
8945 (process_skeletonless_type_unit): Update.
8946 (load_full_comp_unit): Update.
8947 (find_partial_die): Update.
8948 (dwarf2_read_addr_index): Update.
8949 (read_signatured_type): Update.
8950
2e6a9f79
SM
89512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8952
8953 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8954 m_header_read_in>: New fields.
8955 <get_header>: New method.
8956 * dwarf2/read.c (per_cu_header_read_in): Remove.
8957 (dwarf2_per_cu_data::get_header): New.
8958 (dwarf2_per_cu_data::addr_size): Update.
8959 (dwarf2_per_cu_data::offset_size): Update.
8960 (dwarf2_per_cu_data::ref_addr_size): Update.
8961
1b555f17
SM
89622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8963
8964 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8965 (dw2_do_instantiate_symtab): Update.
8966 (queue_and_load_all_dwo_tus): Change parameter from
8967 dwarf2_per_cu_data to dwarf2_cu.
8968 (dwarf2_fetch_die_loc_sect_off): Update.
8969 (dwarf2_fetch_constant_bytes): Update.
8970 (dwarf2_fetch_die_type_sect_off): Update.
8971
8fc0b21d
SM
89722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8973
8974 * dwarf2/read.c (process_full_comp_unit,
8975 process_full_type_unit): Remove per_cu, per_objfile paramters.
8976 Add dwarf2_cu parameter.
8977 (process_queue): Update.
8978
168c9250
SM
89792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8980
8981 * dwarf2/read.c (create_cu_from_index_list): Replace
8982 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8983 (create_cus_from_index_list): Likewise.
8984 (create_cus_from_index): Likewise.
8985 (create_signatured_type_table_from_index): Likewise.
8986 (create_cus_from_debug_names_list): Likewise.
8987 (create_cus_from_debug_names): Likewise.
8988 (dwarf2_read_gdb_index): Update.
8989 (dwarf2_read_debug_names): Update.
8990
e286671b
TT
89912020-05-27 Tom Tromey <tom@tromey.com>
8992 Simon Marchi <simon.marchi@efficios.com>
8993
8994 * dwarf2/read.h (struct dwarf2_per_objfile)
8995 <get_type_for_signatured_type, set_type_for_signatured_type>:
8996 New methods.
8997 <m_type_map>: New member.
8998 (struct signatured_type) <type>: Remove.
8999 * dwarf2/read.c
9000 (dwarf2_per_objfile::get_type_for_signatured_type,
9001 dwarf2_per_objfile::set_type_for_signatured_type): New.
9002 (get_signatured_type): Use new methods.
9003
8adb8487
TT
90042020-05-27 Tom Tromey <tom@tromey.com>
9005 Simon Marchi <simon.marchi@efficios.com>
9006
9007 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9008 (struct dwarf2_per_objfile) <type_units>: New member.
9009 <get_type_unit_group_unshareable>: New method.
9010 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9011 num_symtabs, symtabs>: Remove; move to
9012 type_unit_group_unshareable.
9013 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9014 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9015 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9016
127bbf4b
SM
90172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9018
9019 * dwarf2/read.h (struct dwarf2_per_cu_data):
9020 <dwarf2_per_objfile>: Remove.
9021 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9022 dwarf2_per_objfile.
9023 (create_signatured_type_table_from_index): Likewise.
9024 (create_signatured_type_table_from_debug_names): Likewise.
9025 (create_debug_type_hash_table): Likewise.
9026 (fill_in_sig_entry_from_dwo_entry): Likewise.
9027 (create_type_unit_group): Likewise.
9028 (read_comp_units_from_section): Likewise.
9029 (create_cus_hash_table): Likewise.
9030
f6e649dd
SM
90312020-05-27 Simon Marchi <simon.marchi@efficios.com>
9032
9033 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9034 dwarf2_per_cu_data::dwarf2_per_objfile.
9035 (compute_compunit_symtab_includes): Likewise.
9036 (dwarf2_cu::start_symtab): Likewise.
9037
aa66c379
SM
90382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9039
9040 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9041 parameter.
9042 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9043 (read_namespace_alias): Update.
9044 (lookup_die_type): Update.
9045 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9046 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9047 Update.
9048 (disassemble_dwarf_expression): Update.
9049
120ce1b5
SM
90502020-05-27 Simon Marchi <simon.marchi@efficios.com>
9051
9052 * dwarf2/read.h (struct dwarf2_queue_item): Add
9053 dwarf2_per_objfile parameter, assign new parameter.
9054 <per_objfile>: New field.
9055 * dwarf2/read.c (free_one_cached_comp_unit): Add
9056 dwarf2_per_objfile parameter.
9057 (queue_comp_unit): Likewise.
9058 (dw2_do_instantiate_symtab): Update.
9059 (process_psymtab_comp_unit): Update.
9060 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9061 (process_imported_unit_die): Update.
9062 (queue_and_load_dwo_tu): Update.
9063 (follow_die_offset): Update.
9064 (follow_die_sig_1): Update.
9065
9f47c707
SM
90662020-05-27 Simon Marchi <simon.marchi@efficios.com>
9067
9068 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9069 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9070 (read_call_site_scope): Assign per_objfile.
9071 (dwarf2_per_cu_data::objfile): Remove.
9072 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9073 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9074 dwarf2_per_objfile parameter.
9075 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9076 dwarf2_per_objfile parameter.
9077 (dwarf_expr_reg_to_entry_parameter): Add output
9078 dwarf2_per_objfile parameter.
9079 (locexpr_get_frame_base): Update.
9080 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9081 <push_dwarf_reg_entry_value>: Update.
9082 <call_site_to_target_addr>: Update.
9083 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9084 parameter.
9085 (value_of_dwarf_reg_entry): Update.
9086 (rw_pieced_value): Update.
9087 (indirect_synthetic_pointer): Update.
9088 (dwarf2_evaluate_property): Update.
9089 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9090 parameter.
9091 (locexpr_read_variable): Update.
9092 (locexpr_get_symbol_read_needs): Update.
9093 (loclist_read_variable): Update.
9094
14095eb3
SM
90952020-05-27 Simon Marchi <simon.marchi@efficios.com>
9096
9097 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9098 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9099 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9100 parameter.
9101 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9102 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9103 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9104 parameter.
9105 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9106 sect_variable_value): Add dwarf2_per_objfile parameter.
9107 (class dwarf_evaluate_loc_desc) <dwarf_call,
9108 dwarf_variable_value>: Update.
9109 (fetch_const_value_from_synthetic_pointer): Add
9110 dwarf2_per_objfile parameter.
9111 (fetch_const_value_from_synthetic_pointer): Update.
9112 (coerced_pieced_ref): Update.
9113 (class symbol_needs_eval_context) <dwarf_call,
9114 dwarf_variable_value>: Update.
9115 (dwarf2_compile_expr_to_ax): Update.
9116
3c3cd3d4
SM
91172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9118
9119 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9120 parameter.
9121 (dwarf2_evaluate_loc_desc_full): Update.
9122
82ca3f51
SM
91232020-05-27 Simon Marchi <simon.marchi@efficios.com>
9124
9125 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9126 parameter.
9127 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9128 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9129 dwarf2_per_objfile parameter.
9130 (decode_debug_loc_dwo_addresses): Likewise.
9131 (dwarf2_find_location_expression): Update.
9132 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9133 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9134 parameter.
9135 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9136 parameter.
9137 (locexpr_describe_location_1): Likewise.
9138 (locexpr_describe_location): Update.
9139
4b167ea1
SM
91402020-05-27 Simon Marchi <simon.marchi@efficios.com>
9141
9142 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9143 Remove.
9144 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9145 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9146 (dwarf2_compile_property_to_c): Update.
9147 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9148 use text offset from objfile.
9149 (locexpr_tracepoint_var_ref): Update.
9150 (locexpr_generate_c_location): Update.
9151 (loclist_describe_location): Update.
9152 (loclist_tracepoint_var_ref): Update.
9153 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9154 dwarf2_per_objfile parameter.
9155 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9156 use text offset from objfile.
9157 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9158
89b07335
SM
91592020-05-27 Simon Marchi <simon.marchi@efficios.com>
9160
9161 * dwarf2/expr.h (struct dwarf_expr_context)
9162 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9163 <offset>: Remove.
9164 <per_objfile>: New member.
9165 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9166 dwarf2_per_objfile parameter. Don't set offset, set
9167 per_objfile.
9168 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9169 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9170 a dwarf2_per_objfile object instead of an offset.
9171 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9172 constructor.
9173 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9174 to dwarf2_expr_executor constructor. Don't set offset.
9175 (dwarf2_fetch_cfa_info): Update.
9176 (struct dwarf2_frame_cache) <text_offset>: Remove.
9177 <per_objfile>: New field.
9178 (dwarf2_frame_cache): Update.
9179 (dwarf2_frame_prev_register): Update.
9180 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9181 <dwarf_evaluate_loc_desc>: Add constructor.
9182 (dwarf2_evaluate_loc_desc_full): Update.
9183 (dwarf2_locexpr_baton_eval): Update.
9184 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9185 Add constructor.
9186 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9187
293e7e51
SM
91882020-05-27 Simon Marchi <simon.marchi@efficios.com>
9189
9190 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9191 addr_sized_int_type>: Move to dwarf2_cu.
9192 <int_type>: Move to dwarf2_per_objfile.
9193 (struct dwarf2_per_objfile) <int_type>: Move here.
9194 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9195 addr_sized_int_type>: Move here.
9196 (read_func_scope): Update.
9197 (read_array_type): Update.
9198 (read_tag_string_type): Update.
9199 (attr_to_dynamic_prop): Update.
9200 (dwarf2_per_cu_data::int_type): Rename to...
9201 (dwarf2_per_objfile::int_type): ... this.
9202 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9203 (dwarf2_cu::addr_sized_int_type): ... this.
9204 (read_subrange_type): Update.
9205 (dwarf2_per_cu_data::addr_type): Rename to...
9206 (dwarf2_cu::addr_type): ... this.
9207 (set_die_type): Update.
9208
64874a40
SM
92092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9210
9211 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9212 data through per_cu->cu.
9213
4ab09049
SM
92142020-05-27 Simon Marchi <simon.marchi@efficios.com>
9215
9216 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9217 dwarf2_per_cu_data parameter fo dwarf2_cu.
9218 (lookup_dwo_type_unit): Likewise.
9219 (read_cutu_die_from_dwo): Likewise.
9220 (lookup_dwo_unit): Likewise.
9221 (open_and_init_dwo_file): Likewise.
9222 (lookup_dwo_cutu): Likewise.
9223 (lookup_dwo_comp_unit): Likewise.
9224 (lookup_dwo_type_unit): Likewise.
9225 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9226 (cutu_reader::cutu_reader): Update.
9227
47b14e86
SM
92282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9229
9230 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9231 parameter.
9232 (process_full_type_unit): Likewise.
9233 (process_queue): Update.
9234
43182c09
SM
92352020-05-27 Simon Marchi <simon.marchi@efficios.com>
9236
9237 * dwarf2/read.c (recursively_compute_inclusions): Add
9238 dwarf2_per_objfile parameter.
9239 (compute_compunit_symtab_includes): Likewise.
9240 (process_cu_includes): Update.
9241
7aa104c4
SM
92422020-05-27 Simon Marchi <simon.marchi@efficios.com>
9243
9244 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9245 parameter.
9246 (create_type_unit_group): Update.
9247 (process_psymtab_comp_unit_reader): Update.
9248 (build_type_psymtabs_reader): Update.
9249
e3beb21d
SM
92502020-05-27 Simon Marchi <simon.marchi@efficios.com>
9251
9252 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9253 object through m_this_cu->cu.
9254
d460f660
SM
92552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9256
9257 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9258 the info parameter.
9259 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9260
ab432490
SM
92612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9262
9263 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9264 per_objfile parameter.
9265 (load_full_type_unit): Add per_objfile parameter.
9266 (read_signatured_type): Likewise.
9267 (load_full_comp_unit): Likewise.
9268 (load_cu): Likewise.
9269 (dw2_do_instantiate_symtab): Likewise.
9270 (dw2_get_file_names): Likewise.
9271 (dw2_map_symtabs_matching_filename): Update.
9272 (dw_expand_symtabs_matching_file_matcher): Update.
9273 (dw2_map_symbol_filenames): Update.
9274 (process_psymtab_comp_unit): Add per_objfile parameter.
9275 (build_type_psymtabs_1): Update.
9276 (process_skeletonless_type_unit): Update.
9277 (dwarf2_build_psymtabs_hard): Update.
9278 (load_partial_comp_unit): Add per_objfile parameter.
9279 (scan_partial_symbols): Update.
9280 (load_full_comp_unit): Add per_objfile parameter.
9281 (process_imported_unit_die): Update.
9282 (create_cus_hash_table): Update.
9283 (find_partial_die): Update.
9284 (dwarf2_read_addr_index): Update.
9285 (follow_die_offset): Update.
9286 (dwarf2_fetch_die_loc_sect_off): Update.
9287 (dwarf2_fetch_constant_bytes): Update.
9288 (dwarf2_fetch_die_type_sect_off): Update.
9289 (follow_die_sig_1): Update.
9290 (load_full_type_unit): Add per_objfile parameter.
9291 (read_signatured_type): Likewise.
9292
313bad1b
SM
92932020-05-27 Simon Marchi <simon.marchi@efficios.com>
9294
9295 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9296 of objfile_name.
9297
c3699833
SM
92982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9299
9300 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9301 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9302 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9303 field.
9304 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9305 (create_cus_from_index): Update.
9306 (dwarf2_read_gdb_index): Update.
9307 (create_cus_from_debug_names): Update.
9308 (dwarf2_read_debug_names): Update.
9309 (get_abbrev_section_for_cu): Update.
9310 (create_all_comp_units): Update.
9311 (read_attribute_value): Update.
9312 (get_debug_line_section): Update.
9313 * dwarf2/index-cache.c (index_cache::store): Update.
9314 * dwarf2/index-write.c (save_gdb_index_command): Update.
9315 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9316
1859c670
SM
93172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9318
9319 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9320 member.
9321 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9322 dwarf2_per_cu_data::per_bfd.
9323 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9324 (create_type_unit_group): Likewise.
9325 (queue_comp_unit): Remove reference to
9326 per_cu->dwarf2_per_objfile.
9327 (maybe_queue_comp_unit): Likewise.
9328 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9329 (create_cus_hash_table): Assign new field.
9330
5e22e966
SM
93312020-05-27 Simon Marchi <simon.marchi@efficios.com>
9332
9333 * dwarf2/read.c: Replace
9334 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9335 dwarf2_cu->per_objfile throughout.
9336
97a1449a
SM
93372020-05-27 Simon Marchi <simon.marchi@efficios.com>
9338
9339 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9340 parameter, don't use per_cu->dwarf2_per_objfile.
9341 (dw2_instantiate_symtab): Likewise.
9342 (dw2_find_last_source_symtab): Update.
9343 (dw2_map_expand_apply): Update.
9344 (dw2_lookup_symbol): Update.
9345 (dw2_expand_symtabs_for_function): Update.
9346 (dw2_expand_all_symtabs): Update.
9347 (dw2_expand_symtabs_with_fullname): Update.
9348 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9349 don't use per_cu->dwarf2_per_objfile.
9350 (dw2_expand_marked_cus): Update.
9351 (dw2_find_pc_sect_compunit_symtab): Update.
9352 (dw2_debug_names_lookup_symbol): Update.
9353 (dw2_debug_names_expand_symtabs_for_function): Update.
9354 (dw2_debug_names_map_matching_symbols): Update.
9355 (dwarf2_psymtab::expand_psymtab): Update.
9356
9e021579
SM
93572020-05-27 Simon Marchi <simon.marchi@efficios.com>
9358
9359 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9360 <per_objfile>: New member.
9361 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9362 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9363 call to dwarf2_cu.
9364 (cutu_reader::cutu_reader): Update.
9365 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9366
ae090bdb
SM
93672020-05-27 Simon Marchi <simon.marchi@efficios.com>
9368
9369 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9370 struct dwarf2_per_objfile.
9371 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9372 dwarf2_per_bfd.
9373 * dwarf2/read.c (set_die_type): Update.
9374 (get_die_type_at_offset): Update.
9375
af758d11
SM
93762020-05-27 Tom Tromey <tom@tromey.com>
9377 Simon Marchi <simon.marchi@efficios.com>
9378
9379 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9380 method.
9381 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9382 get_symtab, set_symtab>: New methods.
9383 <m_symtabs>: New field.
9384 (struct dwarf2_psymtab): Derive from partial_symtab.
9385 <readin_p, get_compunit_symtab>: Declare methods.
9386 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9387 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9388 New methods.
9389 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9390 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9391 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9392 (dw2_symtab_iter_next, dw2_print_stats)
9393 (dw2_expand_symtabs_with_fullname)
9394 (dw2_expand_symtabs_matching_one)
9395 (dw_expand_symtabs_matching_file_matcher)
9396 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9397 (dw2_debug_names_iterator::next)
9398 (dw2_debug_names_map_matching_symbols)
9399 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9400 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9401 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9402 New methods.
9403 (get_compunit_symtab, process_full_comp_unit)
9404 (process_full_type_unit): Update.
9405 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9406
5989a64e
SM
94072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9408
9409 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9410 then introduce a new dwarf2_per_objfile type.
9411 <read_line_string>: Move to the new dwarf2_per_objfile type.
9412 <objfile>: Likewise.
9413 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9414 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9415 dwarf2_per_objfile->per_bfd.
9416 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9417 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9418 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9419 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9420 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9421 (dwarf2_per_objfile::locate_sections): Rename to...
9422 (dwarf2_per_bfd::locate_sections): ... this.
9423 (dwarf2_per_objfile::get_cutu): Rename to...
9424 (dwarf2_per_bfd::get_cutu): ... this.
9425 (dwarf2_per_objfile::get_cu): Rename to...
9426 (dwarf2_per_bfd::get_cu): ... this.
9427 (dwarf2_per_objfile::get_tu): Rename to...
9428 (dwarf2_per_bfd::get_tu): ... this.
9429 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9430 (dwarf2_per_bfd::allocate_per_cu): ... this.
9431 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9432 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9433 (get_gdb_index_contents_ftype): Change parameter from
9434 dwarf2_per_objfile to dwarf2_per_bfd.
9435 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9436 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9437
a50264ba
TT
94382020-05-27 Tom Tromey <tom@tromey.com>
9439 Simon Marchi <simon.marchi@efficios.com>
9440
9441 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9442 (allocate_piece_closure): Set "per_objfile" member.
9443 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9444 (locexpr_describe_location, loclist_describe_location): Use new
9445 member.
9446 * dwarf2/read.c (read_call_site_scope)
9447 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9448 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9449 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9450 handle_data_member_location): Set per_objfile member.
9451 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9452 member.
9453 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9454
d3473f0c
TT
94552020-05-27 Tom Tromey <tom@tromey.com>
9456
9457 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9458 allocate_signatured_type>: Declare new methods.
9459 <m_num_psymtabs>: New member.
9460 (struct dwarf2_per_cu_data) <index>: New member.
9461 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9462 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9463 (create_cu_from_index_list): Use allocate_per_cu.
9464 (create_signatured_type_table_from_index)
9465 (create_signatured_type_table_from_debug_names)
9466 (create_debug_type_hash_table, add_type_unit)
9467 (read_comp_units_from_section): Use allocate_signatured_type.
9468
5717c425
TT
94692020-05-27 Tom Tromey <tom@tromey.com>
9470
9471 * psymtab.c (partial_map_expand_apply)
9472 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9473 (psym_lookup_global_symbol_language)
9474 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9475 (psym_print_stats, psym_expand_symtabs_for_function)
9476 (psym_map_symbol_filenames, psym_map_matching_symbols)
9477 (psym_expand_symtabs_matching)
9478 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9479 (maintenance_check_psymtabs): Update.
9480 * psympriv.h (struct partial_symtab) <readin_p,
9481 get_compunit_symtab>: Add objfile parameter.
9482 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9483 Likewise.
9484 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9485 get_compunit_symtab>: Likewise.
9486 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9487
45940949
TT
94882020-05-27 Tom Tromey <tom@tromey.com>
9489
9490 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9491 member.
9492 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9493 (create_cu_from_index_list)
9494 (create_signatured_type_table_from_index)
9495 (create_signatured_type_table_from_debug_names)
9496 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9497 (dwarf2_create_include_psymtab)
9498 (create_debug_type_hash_table, add_type_unit)
9499 (create_type_unit_group, read_comp_units_from_section)
9500 (dwarf2_compute_name, create_cus_hash_table)
9501 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9502 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9503 obstack.
9504 (dw2_get_real_path): Likewise. Change argument to
9505 dwarf2_per_objfile.
9506
f8c6d152
LM
95072020-05-27 Luis Machado <luis.machado@linaro.org>
9508
9509 PR tdep/26000
9510 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9511 for ldrd (immediate).
9512
e98d2e6d
PW
95132020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9514
9515 * command.h: Add comment giving the name of class_tui.
9516 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9517 create the fake command for the help for class_tui.
9518
53a47a3e
TT
95192020-05-26 Tom Tromey <tromey@adacore.com>
9520
9521 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9522 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9523 (val_atr): New function.
9524 (value_val_atr): Use it.
9525 * ada-valprint.c (print_optional_low_bound): Change low bound
9526 handling for enums.
9527 (val_print_packed_array_elements): Don't call discrete_position.
9528 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9529 discrete_position for enum types.
9530 * language.c (default_print_array_index): Change type.
9531 * language.h (struct language_defn) <la_print_array_index>: Add
9532 index_type parameter, change type of index_value.
9533 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9534 (default_print_array_index): Update.
9535 * valprint.c (maybe_print_array_index): Don't call
9536 value_from_longest. Update.
9537 (value_print_array_elements): Don't call discrete_position.
9538
0bc2354b
TT
95392020-05-26 Tom Tromey <tromey@adacore.com>
9540
9541 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9542 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9543
1218a4bf
CDA
95442020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9545
9546 PR gdb/13519
9547 * avr-tdep.c (avr_integer_to_address): Return data or code
9548 address accordingly to the second 'type' argument of the
9549 function.
9550
92651b1d
MW
95512020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9552
9553 * infcmd.c, inferior.h: (construct_inferior_arguments):
9554 Moved function from here to gdbsupport/common-inferior.{h,cc}
9555
0a4f5f8c
TT
95562020-05-23 Tom Tromey <tom@tromey.com>
9557
9558 Revert commit eca1f90c:
9559 * NEWS: Remove entry for completion styling.
9560 * completer.c (_rl_completion_prefix_display_length): Move
9561 declaration later.
9562 (gdb_fnprint): Revert.
9563 (gdb_display_match_list_1): Likewise.
9564 * cli/cli-style.c (completion_prefix_style)
9565 (completion_difference_style, completion_suffix_style): Remove.
9566 (_initialize_cli_style): Revert.
9567 * cli/cli-style.h (completion_prefix_style)
9568 (completion_difference_style, completion_suffix_style): Don't
9569 declare.
9570
e08bd6c5
PA
95712020-05-24 Pedro Alves <palves@redhat.com>
9572
9573 * symtab.c (completion_list_add_name): Return boolean indication
9574 of whether the symbol matched.
9575 (completion_list_add_symbol): Don't try to remove C++ aliases if
9576 the symbol didn't match in the first place.
9577 * symtab.h (completion_list_add_name): Return bool.
9578
ceacbf6e
SM
95792020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9580
9581 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9582 type::field.
9583
26f16254
JB
95842020-05-23 Joel Brobecker <brobecker@adacore.com>
9585
9586 GDB 9.2 released.
9587
eca1f90c
TT
95882020-05-23 Tom Tromey <tom@tromey.com>
9589
9590 * NEWS: Add entry for completion styling.
9591 * completer.c (_rl_completion_prefix_display_length): Move
9592 declaration earlier.
9593 (gdb_fnprint): Use completion_style.
9594 (gdb_display_match_list_1): Likewise.
9595 * cli/cli-style.c (completion_prefix_style)
9596 (completion_difference_style, completion_suffix_style): New
9597 globals.
9598 (_initialize_cli_style): Register new globals.
9599 * cli/cli-style.h (completion_prefix_style)
9600 (completion_difference_style, completion_suffix_style): Declare.
9601
51e2cfa2
PA
96022020-05-23 Pedro Alves <palves@redhat.com>
9603
9604 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9605 (parse_escape): Use ISDIGIT instead of isdigit.
9606 (puts_debug): Use gdb_isprint instead of isprint.
9607 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9608 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9609 ISSPACE instead of isspace.
9610 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9611 instead of isspace.
9612 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9613 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9614 instead of isxdigit and ISDIGIT instead of isdigit.
9615
80fc5e77
SM
96162020-05-22 Simon Marchi <simon.marchi@efficios.com>
9617
9618 * gdbtypes.h (struct type) <field>: New method.
9619 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9620 or type::field.
9621
3cabb6b0
SM
96222020-05-22 Simon Marchi <simon.marchi@efficios.com>
9623
9624 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9625 (TYPE_FIELDS): Use type::fields. Change all call sites that
9626 modify the propery to use type::set_fields instead.
9627
1f704f76
SM
96282020-05-22 Simon Marchi <simon.marchi@efficios.com>
9629
9630 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9631 type::num_fields instead.
9632
5e33d5f4
SM
96332020-05-22 Simon Marchi <simon.marchi@efficios.com>
9634
9635 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9636 methods.
9637 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9638 that modify the number of fields to use type::set_num_fields
9639 instead.
9640
9392ebb3
TT
96412020-05-22 Tom Tromey <tromey@adacore.com>
9642
9643 * compile/compile-object-load.h (munmap_list_free): Don't
9644 declare.
9645
7c13f4e8
AB
96462020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9647
9648 * annotate.c (annotate_source_line): Update return type, add call
9649 to update current symtab and line.
9650 * annotate.h (annotate_source_line): Update return type, and
9651 extend header comment.
9652 * source.c (info_line_command): Check annotation_level before
9653 calling annotate_source_line.
9654 * stack.c (print_frame_info): If calling annotate_source_line
9655 returns true, then don't print any other source line information.
9656
aa370940
SM
96572020-05-21 Simon Marchi <simon.marchi@efficios.com>
9658
9659 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9660
84d53fa9
SM
96612020-05-21 Simon Marchi <simon.marchi@efficios.com>
9662
9663 * coffread.c (patch_type): Remove NULL check before xfree.
9664 * corefile.c (set_gnutarget): Likewise.
9665 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9666 * exec.c (build_section_table): Likewise.
9667 * remote.c (remote_target::pass_signals): Likewise.
9668 * utils.c (n_spaces): Likewise.
9669 * cli/cli-script.c (document_command): Likewise.
9670 * i386-windows-tdep.c (core_process_module_section): Likewise.
9671 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9672
9d428aae
SM
96732020-05-20 Simon Marchi <simon.marchi@efficios.com>
9674
9675 * symfile.c (reread_symbols): Clear objfile's section_offsets
9676 vector and section indices, re-compute them by calling
9677 sym_offsets.
9678
250106a7
TT
96792020-05-20 Tom Tromey <tromey@adacore.com>
9680
9681 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9682 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9683
9a0bacfb
TV
96842020-05-20 Tom de Vries <tdevries@suse.de>
9685
9686 PR symtab/25833
9687 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9688
7b958a48
AM
96892020-05-20 Alan Modra <amodra@gmail.com>
9690
9691 PR 25993
9692 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9693 bfd_set_filename.
9694 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9695 passed to bfd_set_filename.
9696 * symfile-mem.c (add_vsyscall_page): Likewise for string
9697 passed to symbol_file_add_from_memory.
9698 (symbol_file_add_from_memory): Make name param a const char* and
9699 don't strdup.
9700
c7e97679
AM
97012020-05-20 Alan Modra <amodra@gmail.com>
9702
9703 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9704 rather than accessing bfd->filename directly.
9705 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9706 and use bfd_section_name.
9707 * dwarf2/frame.c (decode_frame_entry): Likewise.
9708 * exec.c (exec_set_section_address): Likewise.
9709 * solib-aix.c (solib_aix_bfd_open): Likewise.
9710 * stap-probe.c (get_stap_base_address): Likewise.
9711 * symfile.c (reread_symbols): Likewise.
9712
563c591b
TT
97132020-05-19 Tom Tromey <tromey@adacore.com>
9714
9715 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9716
f408d82c
SM
97172020-05-19 Simon Marchi <simon.marchi@efficios.com>
9718
9719 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9720
98c59b52
PA
97212020-05-19 Pedro Alves <palves@redhat.com>
9722
9723 * NEWS (set exec-file-mismatch): Adjust entry.
9724 * exec.c: Include "build-id.h".
9725 (validate_exec_file): Try to match build IDs instead of filenames.
9726 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9727 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9728 and pass down 'warn_if_slow'.
9729 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9730 gdb_bfd_open_closure to pass it down.
9731 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9732
4111f652
PA
97332020-05-19 Pedro Alves <palves@redhat.com>
9734
9735 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9736 * target.c (target_fileio_open_1): Rename to target_fileio_open
9737 and make extern. Use bool.
9738 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9739 (target_fileio_read_alloc_1): Adjust.
9740 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9741 (target_fileio_open_warn_if_slow): Delete declaration.
9742
ad80db5b
PA
97432020-05-19 Pedro Alves <palves@redhat.com>
9744
9745 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9746 Adjust all callers.
9747
1d6ce4d3
YS
97482020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9749
9750 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9751 whether disp is negative.
9752
9005fbbb
SM
97532020-05-19 Simon Marchi <simon.marchi@efficios.com>
9754
9755 * symfile.h (struct symfile_segment_data)
9756 <~symfile_segment_data>: Remove.
9757 <segment_info>: Change to std::vector.
9758 * symfile.c (default_symfile_segments): Update.
9759 * elfread.c (elf_symfile_segments): Update.
9760
68b888ff
SM
97612020-05-19 Simon Marchi <simon.marchi@efficios.com>
9762
9763 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9764 <segments>: New.
9765 <segment_bases, segment_sizes>: Remove.
9766 * symfile.c (default_symfile_segments): Update.
9767 * elfread.c (elf_symfile_segments): Update.
9768 * remote.c (remote_target::get_offsets): Update.
9769 * solib-target.c (solib_target_relocate_section_addresses):
9770 Update.
9771
62982abd
SM
97722020-05-19 Simon Marchi <simon.marchi@efficios.com>
9773
9774 * symfile.h (struct symfile_segment_data): Initialize fields.
9775 <~symfile_segment_data>: Add.
9776 (symfile_segment_data_up): New.
9777 (struct sym_fns) <sym_segments>: Return a
9778 symfile_segment_data_up.
9779 (default_symfile_segments): Return a symfile_segment_data_up.
9780 (free_symfile_segment_data): Remove.
9781 (get_symfile_segment_data): Return a symfile_segment_data_up.
9782 * symfile.c (default_symfile_segments): Likewise.
9783 (get_symfile_segment_data): Likewise.
9784 (free_symfile_segment_data): Remove.
9785 (symfile_find_segment_sections): Update.
9786 * elfread.c (elf_symfile_segments): Return a
9787 symfile_segment_data_up.
9788 * remote.c (remote_target::get_offsets): Update.
9789 * solib-target.c (solib_target_relocate_section_addresses):
9790 Update.
9791 * symfile-debug.c (debug_sym_segments): Return a
9792 symfile_segment_data_up.
9793
7f204339
RO
97942020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9795
e52a0f1b
RO
9796 PR build/25981
9797 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9798 Hardcode register numbers.
9799
7f204339
RO
9800 PR build/25981
9801 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9802 procfs_find_LDT_entry): Remove.
9803 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9804 procfs_find_LDT_entry): Remove.
9805 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9806 Remove.
9807
7f32a4d5
PA
98082020-05-17 Pedro Alves <palves@redhat.com>
9809 Andrew Burgess <andrew.burgess@embecosm.com>
9810 Keno Fischer <keno@juliacomputing.com>
9811
9812 PR gdb/25741
9813 * breakpoint.c (build_target_condition_list): Update comments.
9814 (build_target_command_list): Update comments and skip matching
9815 locations.
9816 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9817 a separate function. Simplify "set breakpoint auto-hw off"
9818 handling.
9819 (insert_breakpoints): Update comment.
9820 (tracepoint_locations_match): New parameter. For breakpoints,
9821 compare location types too, if the caller wants to.
9822 (handle_automatic_hardware_breakpoints): New functions.
9823 (bp_location_is_less_than): Also sort by location type and
9824 hardware breakpoint length.
9825 (update_global_location_list): Handle "set breakpoint auto-hw on"
9826 here.
9827 (update_breakpoint_locations): Ask breakpoint_locations_match to
9828 ignore location types.
9829
7d93a1e0
SM
98302020-05-16 Simon Marchi <simon.marchi@efficios.com>
9831
9832 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9833 type::name instead.
9834
d0e39ea2
SM
98352020-05-16 Simon Marchi <simon.marchi@efficios.com>
9836
9837 * gdbtypes.h (struct type) <name, set_name>: New methods.
9838 (TYPE_CODE): Use type::name. Change all call sites used to set
9839 the name to use type::set_name instead.
9840
2dab0c7b
TT
98412020-05-16 Tom Tromey <tom@tromey.com>
9842
9843 * top.c (quit_force): Update.
9844 * infrun.c (handle_no_resumed): Update.
9845 * top.h (all_uis): New function.
9846 (ALL_UIS): Remove.
9847
59f7bd8d
SM
98482020-05-16 Simon Marchi <simon.marchi@efficios.com>
9849
9850 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9851
9bf058f0
PA
98522020-05-16 Pedro Alves <palves@redhat.com>
9853
9854 * ia64-linux-nat.c
9855 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9856 Declare method.
9857 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9858
8f86ae1a
SM
98592020-05-15 Simon Marchi <simon.marchi@efficios.com>
9860
9861 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9862 (sparc64_adi_info): Likewise.
9863
d6bc0792
TT
98642020-05-15 Tom Tromey <tom@tromey.com>
9865
9866 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9867 block_objfile.
9868 (lookup_objfile_from_block): Remove.
9869 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9870 (lookup_global_symbol): Use block_objfile.
9871 * symtab.h (lookup_objfile_from_block): Don't declare.
9872 * printcmd.c (clear_dangling_display_expressions): Use
9873 block_objfile.
9874 * parse.c (operator_check_standard): Use block_objfile.
9875
8c14c3a3
TT
98762020-05-15 Tom Tromey <tom@tromey.com>
9877
9878 * language.c (language_alloc_type_symbol): Set
9879 SYMBOL_SECTION.
9880 * symtab.c (initialize_objfile_symbol): Remove.
9881 (allocate_symbol): Remove.
9882 (allocate_template_symbol): Remove.
9883 * dwarf2/read.c (fixup_go_packaging): Use "new".
9884 (new_symbol): Use "new".
9885 (read_variable): Don't call initialize_objfile_symbol. Use
9886 "new".
9887 (read_func_scope): Use "new".
9888 * xcoffread.c (process_xcoff_symbol): Don't call
9889 initialize_objfile_symbol.
9890 (SYMBOL_DUP): Remove.
9891 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9892 "new".
9893 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9894 (allocate_template_symbol): Don't declare.
9895 (struct symbol): Add copy constructor. Change defaults.
9896 * jit.c (finalize_symtab): Use "new".
9897 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9898 Use "new".
9899 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9900 (common_block_end): Use "new".
9901 * mdebugread.c (parse_symbol): Use "new".
9902 (new_symbol): Likewise.
9903
5b4a1a8d
PW
99042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9905
9906 * NEWS: Mention changes to help and apropos.
9907
57b4f16e
PW
99082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9909
9910 * command.h (enum command_class): Improve comments, document
9911 that class_alias is for user-defined aliases, give the class
9912 name for each class, remove unused class_xdb.
9913 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9914 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9915 by a precise class.
9916 * infcmd.c (_initialize_infcmd): Likewise.
9917 * reverse.c (_initialize_reverse): Likewise.
9918 * stack.c (_initialize_stack): Likewise.
9919 * symfile.c (_initialize_symfile): Likewise.
9920 * tracepoint.c (_initialize_tracepoint): Likewise.
9921
7c05caf7
PW
99222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9923
9924 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9925 when their aliased command is traversed.
9926 (help_cmd): Add fput_command_names_styled call to
9927 output command name and aliases when command has an alias.
9928
3b3aaacb
PW
99292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9930
9931 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9932 * cli/cli-decode.c (help_cmd_list): Declare as static,
9933 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9934 a command together with the command.
9935 (fput_command_name_styled, fput_command_names_styled): New functions.
9936 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9937 fput_command_name_styled.
9938 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9939 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9940
7aa1b46f
PW
99412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9942
9943 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9944 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9945 * command.h (cmd_show_list): Likewise.
9946 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9947 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9948
89bcba74
PW
99492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9950
9951 * unittests/command-def-selftests.c (traverse_command_structure):
9952 Verify all commands of a list have the same prefix command and
9953 that only the top cmdlist commands have a null prefix.
9954
3f4d92eb
PW
99552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9956
9957 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9958 as prefix, not one of its aliases.
9959 (set_cmd_prefix): Remove.
9960 (do_add_cmd): Centralize the setting of the prefix of a command, when
9961 command is defined after its full chain of prefix commands.
9962 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9963 (add_setshow_cmd_full): Likewise.
9964 (update_prefix_field_of_prefixed_commands): New function.
9965 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9966 update_prefix_field_of_prefixed_commands.
9967 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9968 addresses of remote_set_cmdlist and remote_show_cmdlist given
9969 as argument, not the address of an argument.
9970 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9971 * gdb/remote.c (_initialize_remote): Likewise.
9972
0605465f
PW
99732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9974
9975 * cli/cli-cmds.c (alias_command): Check for an existing alias
9976 using lookup_cmd_composition, as valid_command_p is too strict
9977 and forbids aliases that are the prefix of an existing alias
9978 or command.
9979 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9980 command is properly recognised as a valid command.
9981
58e6ac70
PW
99822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9983
9984 * unittests/help-doc-selftests.c: Rename to
9985 unittests/command-def-selftests.c
9986 * unittests/command-def-selftests.c (help_doc_tests): Update some
9987 comments.
9988 (command_structure_tests, traverse_command_structure): New namespace
9989 and function.
9990 (command_structure_invariants_tests): New function.
9991 (_initialize_command_def_selftests) Renamed from
9992 _initialize_help_doc_selftests, register command_structure_invariants
9993 selftest.
9994
a7b9ceb8
PW
99952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9996
9997 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9998 an alias of 'show'.
9999
b2188a06
JB
100002020-05-15 Joel Brobecker <brobecker@adacore.com>
10001
10002 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10003 ada_is_fixed_point_type. Update all callers.
10004 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10005 all callers.
10006 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10007 Update all callers.
10008 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10009 print_fixed_point_type. Update all callers.
10010 * ada-valprint.c (ada_value_print_num): Replace call to
10011 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10012
a51951c2
KB
100132020-05-14 Kevin Buettner <kevinb@redhat.com>
10014
10015 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10016 processors.
10017 (cpu_supports_bts): Add CV_AMD case.
10018
29d6859f
LM
100192020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10020 Simon Marchi <simon.marchi@efficios.com>
10021
10022 * infrun.c (stop_all_threads): Collect multiple wait events at
10023 each pass.
10024
78134374
SM
100252020-05-14 Simon Marchi <simon.marchi@efficios.com>
10026
10027 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10028 type::code instead.
10029
67607e24
SM
100302020-05-14 Simon Marchi <simon.marchi@efficios.com>
10031
10032 * gdbtypes.h (struct type) <code, set_code>: New methods.
10033 (TYPE_CODE): Use type::code. Change all call sites used to set
10034 the code to use type::set_code instead.
10035
a05575d3
TBA
100362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10037 Tom de Vries <tdevries@suse.de>
10038 Pedro Alves <palves@redhat.com>
10039
10040 PR threads/25478
10041 * infrun.c (stop_all_threads): Do NOT ignore
10042 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10043 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10044 received.
10045 (handle_no_resumed): Remove code handling a live inferior with no
10046 threads.
10047 * remote.c (has_single_non_exited_thread): New.
10048 (remote_target::update_thread_list): Do not delete a thread if is
10049 the last thread of the process.
10050 * thread.c (thread_select): Call delete_exited_threads instead of
10051 prune_threads.
10052
6ad82919
TBA
100532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10054
10055 * infrun.c (stop_all_threads): Enable/disable thread events of all
10056 targets. Move a debug message denoting the end of the function
10057 into the SCOPED_EXIT block.
10058
d890404b
TBA
100592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10060
10061 * process-stratum-target.h: Include <set>.
10062 (all_non_exited_process_targets, switch_to_target_no_thread): New
10063 function declarations.
10064 * process-stratum-target.c (all_non_exited_process_targets)
10065 (switch_to_target_no_thread): New function implementations.
10066
293b3ebc
TBA
100672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10068
10069 * infrun.c (handle_inferior_event): Extract out a piece of code
10070 into...
10071 (mark_non_executing_threads): ...this new function.
10072
7ca9b62a
TBA
100732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10074
10075 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10076 use.
10077
fc75c28b
TBA
100782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10079
10080 * regcache.c (regcache_read_pc_protected): New function
10081 implementation that returns 0 if the PC cannot read via
10082 'regcache_read_pc'.
10083 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10084 instead of 'regcache_read_pc'.
10085 (keep_going_pass_signal): Ditto.
10086
a89febbd
TT
100872020-05-13 Tom Tromey <tromey@adacore.com>
10088
10089 * ada-lang.c (align_value): Remove.
10090 (ada_template_to_fixed_record_type_1): Use align_up.
10091
f7e23710
TBA
100922020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10093
10094 * async-event.c: Update the copyright year.
10095 * async-event.h: Update the copyright year.
10096
02ff80c2
SM
100972020-05-12 Simon Marchi <simon.marchi@efficios.com>
10098
10099 * objfiles.h (is_addr_in_objfile,
10100 shared_objfile_contains_address_p): Return bool.
10101 * objfile.c (is_addr_in_objfile,
10102 shared_objfile_contains_address_p): Return bool.
10103
4fd6c7e8
TT
101042020-05-11 Tom Tromey <tromey@adacore.com>
10105
10106 * cli/cli-cmds.c (info_command): Restore.
10107 (_initialize_cli_cmds): Use add_prefix_command for "info".
10108 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10109
5eb68a39
TT
101102020-05-11 Tom Tromey <tromey@adacore.com>
10111
10112 * ada-lang.c (ada_value_primitive_field): Now public.
10113 * ada-lang.h (ada_value_primitive_field): Declare.
10114 * ada-valprint.c (print_field_values): Use
10115 ada_value_primitive_field for wrapper fields.
10116
7666722f
TV
101172020-05-11 Tom de Vries <tdevries@suse.de>
10118
10119 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10120 MODULE_DOMAIN.
10121
3ee6bb11
TV
101222020-05-11 Tom de Vries <tdevries@suse.de>
10123
10124 PR symtab/25941
10125 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10126 with length 0, if not gdb-produced.
10127 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10128
43434996
TV
101292020-05-09 Tom de Vries <tdevries@suse.de>
10130
10131 PR gdb/25955
10132 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10133 calculation.
10134
2f78cffc
TT
101352020-05-09 Tom Tromey <tom@tromey.com>
10136
10137 * top.c (server_command): Now bool.
10138 * top.h (server_command): Now bool.
10139
4f7bc5ed
TT
101402020-05-08 Tom Tromey <tromey@adacore.com>
10141
10142 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10143 already being processed.
10144
8be4b118
TT
101452020-05-08 Tom Tromey <tom@tromey.com>
10146
10147 * printcmd.c (struct display) <next>: Remove.
10148 <display>: New constructor.
10149 <exp_string>: Now a std::string.
10150 <enabled_p>: Now a bool.
10151 (display_number): Move definition earlier.
10152 (displays): Rename from display_chain. Now a std::vector.
10153 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10154 (display_command): Update.
10155 (do_one_display, disable_display)
10156 (enable_disable_display_command, do_enable_disable_display):
10157 Update.
10158 (free_display): Remove.
10159 (clear_displays): Rewrite.
10160 (delete_display): Update.
10161 (map_display_numbers): Use function_view. Remove "data"
10162 parameter. Update.
10163 (do_delete_display): Remove.
10164 (undisplay_command): Update.
10165 (do_one_display, do_displays, disable_display)
10166 (info_display_command): Update.
10167 (do_enable_disable_display): Remove.
10168 (enable_disable_display_command)
10169 (clear_dangling_display_expressions): Update.
10170
94c93c35
TT
101712020-05-08 Tom Tromey <tom@tromey.com>
10172
10173 * symtab.c (set_symbol_cache_size)
10174 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10175 (maintenance_print_symbol_cache_statistics): Update.
10176 * symmisc.c (print_symbol_bcache_statistics)
10177 (print_objfile_statistics, maintenance_print_objfiles)
10178 (maintenance_info_symtabs, maintenance_check_symtabs)
10179 (maintenance_expand_symtabs, maintenance_info_line_tables):
10180 Update.
10181 * symfile-debug.c (set_debug_symfile): Update.
10182 * source.c (forget_cached_source_info): Update.
10183 * python/python.c (gdbpy_progspaces): Update.
10184 * psymtab.c (maintenance_info_psymtabs): Update.
10185 * probe.c (parse_probes): Update.
10186 * linespec.c (iterate_over_all_matching_symtabs)
10187 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10188 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10189 * exec.c (exec_target::close): Update.
10190 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10191 * breakpoint.c (print_one_breakpoint_location)
10192 (create_longjmp_master_breakpoint)
10193 (create_std_terminate_master_breakpoint): Update.
10194 * progspace.c (program_spaces): Now a std::vector.
10195 (maybe_new_address_space): Update.
10196 (add_program_space): Remove.
10197 (program_space::program_space): Update.
10198 (remove_program_space): Update.
10199 (number_of_program_spaces): Remove.
10200 (print_program_space, update_address_spaces): Update.
10201 * progspace.h (program_spaces): Change type.
10202 (ALL_PSPACES): Remove.
10203 (number_of_program_spaces): Don't declare.
10204 (struct program_space) <next>: Remove.
10205
a1fd1ac9
TT
102062020-05-08 Tom Tromey <tom@tromey.com>
10207
10208 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10209 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10210 (enable_break): Update.
10211 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10212 (frv_fdpic_find_canonical_descriptor): Update.
10213 (frv_fetch_objfile_link_map): Update.
10214 * progspace.c (program_space::free_all_objfiles): Update.
10215 (program_space::solibs): New method.
10216 * progspace.h (struct program_space) <solibs>: New method.
10217 * solist.h (master_so_list): Don't declare.
10218 (ALL_SO_LIBS): Remove.
10219 * solib.h (so_list_head): Remove.
10220 (update_solib_list): Update comment.
10221 * solib.c (master_so_list): Remove.
10222 (solib_used, update_solib_list, solib_add)
10223 (info_sharedlibrary_command, clear_solib)
10224 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10225
38eae084
TT
102262020-05-08 Tom Tromey <tom@tromey.com>
10227
10228 * extension.c (extension_languages): Now a std::array.
10229 (ALL_EXTENSION_LANGUAGES): Remove.
10230 (get_ext_lang_defn, get_ext_lang_of_file)
10231 (eval_ext_lang_from_control_command): Update.
10232 (finish_ext_lang_initialization)
10233 (auto_load_ext_lang_scripts_for_objfile)
10234 (ext_lang_type_printers::ext_lang_type_printers)
10235 (apply_ext_lang_type_printers)
10236 (ext_lang_type_printers::~ext_lang_type_printers)
10237 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10238 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10239 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10240 (get_matching_xmethod_workers, ext_lang_colorize)
10241 (ext_lang_before_prompt): Update.
10242 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10243
596dc4ad
TT
102442020-05-08 Tom Tromey <tom@tromey.com>
10245
10246 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10247 overload.
10248 <swap_string, m_string>: Remove.
10249 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10250 Update.
10251 * stabsread.c (define_symbol, read_type): Update.
10252 * linespec.c (find_linespec_symbols): Update.
10253 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10254 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10255 * dbxread.c (read_dbx_symtab): Update.
10256 * cp-support.h (cp_canonicalize_string_full)
10257 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10258 Return unique_xmalloc_ptr.
10259 * cp-support.c (inspect_type): Update.
10260 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10261 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10262 Likewise.
10263 * c-typeprint.c (print_name_maybe_canonical): Update.
10264 * break-catch-throw.c (check_status_exception_catchpoint):
10265 Update.
10266
bf4cb9be
TV
102672020-05-08 Tom de Vries <tdevries@suse.de>
10268
10269 * infrun.c (follow_fork): Copy current_line and current_symtab to
10270 child thread.
10271
a1b68f28
SM
102722020-05-07 Simon Marchi <simon.marchi@efficios.com>
10273
10274 * async-event.c (struct async_signal_handler, struct
10275 async_event_handler): Reformat, remove typedef.
10276
98d48915
SM
102772020-05-07 Simon Marchi <simon.marchi@efficios.com>
10278
10279 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10280 access thistype->main_type->dyn_prop_list directly.
10281
7aa91313
SM
102822020-05-07 Simon Marchi <simon.marchi@efficios.com>
10283
10284 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10285 (remove_dyn_prop): Remove. Update all users to use
10286 type::remove_dyn_prop.
10287 * gdbtypes.c (remove_dyn_prop): Rename to...
10288 (type::remove_dyn_prop): ... this.
10289
5c54719c
SM
102902020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10291
10292 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10293 (add_dyn_prop): Remove. Update all users to use
10294 type::add_dyn_prop.
10295 * gdbtypes.c (add_dyn_prop): Rename to...
10296 (type::add_dyn_prop): ... this.
10297
24e99c6c
SM
102982020-05-07 Simon Marchi <simon.marchi@efficios.com>
10299
10300 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10301 (get_dyn_prop): Remove. Update all users to use
10302 type::dyn_prop.
10303 * gdbtypes.c (get_dyn_prop): Rename to...
10304 (type::dyn_prop): ... this.
10305
0d4bf016
SM
103062020-05-06 Simon Marchi <simon.marchi@efficios.com>
10307
10308 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10309
ac4a4f1c
SM
103102020-05-06 Simon Marchi <simon.marchi@efficios.com>
10311
10312 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10313 instruction, skip it if it's there.
10314
a3bbacc1
SM
103152020-05-05 Simon Marchi <simon.marchi@efficios.com>
10316
10317 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10318
c3236f84
SM
103192020-05-04 Simon Marchi <simon.marchi@efficios.com>
10320
10321 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10322 * gdbtypes.c (recursive_dump_type): Remove use of
10323 TYPE_INCOMPLETE.
10324
3b6acaee
TT
103252020-05-03 Tom Tromey <tom@tromey.com>
10326
10327 * breakpoint.c (catch_command, tcatch_command): Remove.
10328 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10329 add_show_prefix_cmd.
10330 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10331 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10332 Remove.
10333 (add_internal_problem_command): Use add_basic_prefix_cmd,
10334 add_show_prefix_cmd.
10335 * mips-tdep.c (set_mipsfpu_command): Remove.
10336 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10337 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10338 (_initialize_index_cache): Use add_basic_prefix_cmd.
10339 * memattr.c (dummy_cmd): Remove.
10340 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10341 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10342 (_initialize_tui_win): Use add_basic_prefix_cmd,
10343 add_show_prefix_cmd.
10344 * cli/cli-logging.c (set_logging_command): Remove.
10345 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10346 add_show_prefix_cmd.
10347 (show_logging_command): Remove.
10348 * target.c (target_command): Remove.
10349 (add_target): Use add_basic_prefix_cmd.
10350
a51119cd
HD
103512020-05-02 Hannes Domani <ssbssa@yahoo.de>
10352
10353 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10354
652fc23a 103552020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10356
652fc23a
PW
10357 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10358 info_command.
10359
117539e6
KR
103602020-04-30 Kamil Rytarowski <n54@gmx.com>
10361
10362 * nbsd-nat.c (nbsd_enable_proc_events)
10363 (nbsd_nat_target::post_startup_inferior): Add.
10364 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10365 (nbsd_nat_target::update_thread_list): Rewrite.
10366 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10367 "PTRACE_LWP_CREATE".
10368 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10369
102e38eb 103702020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10371
102e38eb
PW
10372 * stack.c (_initialize_stack): Remove duplicated creation
10373 of "frame" command and "f" alias.
10374
ee9d1e5f
HD
103752020-04-30 Hannes Domani <ssbssa@yahoo.de>
10376
10377 PR gdb/18706
10378 * gdbtypes.c (check_typedef): Calculate size of array of
10379 stubbed type.
10380
627c7fb8
HD
103812020-04-30 Hannes Domani <ssbssa@yahoo.de>
10382
10383 PR gdb/15559
10384 * i386-tdep.c (i386_push_dummy_call): Call
10385 i386_thiscall_push_dummy_call.
10386 (i386_thiscall_push_dummy_call): New function.
10387 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10388 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10389 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10390
ffc2844e
SM
103912020-04-29 Simon Marchi <simon.marchi@efficios.com>
10392
10393 * gdbarch.sh (do_read): Add shellcheck disable directive for
10394 warning SC2162.
10395
1207375d
SM
103962020-04-29 Simon Marchi <simon.marchi@efficios.com>
10397
10398 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10399 "referenced but not assigned" warning.
10400
9fdb2916
SM
104012020-04-29 Simon Marchi <simon.marchi@efficios.com>
10402
10403 * gdbarch.sh: Remove code that sets fallbackdefault.
10404
759cea5e
SM
104052020-04-29 Simon Marchi <simon.marchi@efficios.com>
10406
10407 * gdbarch.sh: Use shell operators && and || instead of
10408 -a and -o.
10409
cb02ab24
SM
104102020-04-29 Simon Marchi <simon.marchi@efficios.com>
10411
10412 * gdbarch.sh: Use $(...) instead of `...`.
10413
a6fc5ffc
SM
104142020-04-29 Simon Marchi <simon.marchi@efficios.com>
10415
10416 * gdbarch.sh: Use double quotes around variables.
10417
8d113d13
SM
104182020-04-29 Simon Marchi <simon.marchi@efficios.com>
10419
10420 * gdbarch.sh: Use %s with printf, instead of variables in the
10421 format string.
10422
ed6acedd
TT
104232020-04-29 Tom Tromey <tromey@adacore.com>
10424
10425 PR ada/25875:
10426 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10427 type fields here.
10428 (read_enumeration_type): Call
10429 update_enumeration_type_from_children later. Update comments.
10430 (process_enumeration_scope): Don't create type fields.
10431
b68b1b58
KR
104322020-04-29 Kamil Rytarowski <n54@gmx.com>
10433
10434 * nbsd-tdep.c: Include "xml-syscall.h".
10435 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10436
f94b2e03
KR
104372020-04-29 Kamil Rytarowski <n54@gmx.com>
10438
10439 * nbsd-nat.c: Include "sys/wait.h".
10440 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10441 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10442 (nbsd_nat_target::remove_exec_catchpoint)
10443 (nbsd_nat_target::set_syscall_catchpoint): Add.
10444 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10445 (nbsd_nat_target::insert_exec_catchpoint)
10446 (nbsd_nat_target::remove_exec_catchpoint)
10447 (nbsd_nat_target::set_syscall_catchpoint): Add.
10448 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10449 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10450 `nbsd_get_syscall_number'.
10451
fc49bc72
TT
104522020-04-29 Tom Tromey <tom@tromey.com>
10453
10454 * stack.c (print_block_frame_labels): Remove.
10455
d642b692
HD
104562020-04-29 Hannes Domani <ssbssa@yahoo.de>
10457
10458 PR gdb/17320
10459 * ada-valprint.c (val_print_packed_array_elements): Move array
10460 end bracket to new line.
10461 (ada_val_print_string): Remove extra spaces before first array
10462 element.
10463 * c-valprint.c (c_value_print_array): Likewise.
10464 * m2-valprint.c (m2_print_array_contents): Likewise.
10465 (m2_value_print_inner): Likewise.
10466 * p-valprint.c (pascal_value_print_inner): Likewise.
10467 * valprint.c (generic_val_print_array): Likewise.
10468 (value_print_array_elements): Move first array element and array
10469 end bracket to new line.
10470
ea90f227
TV
104712020-04-29 Tom de Vries <tdevries@suse.de>
10472
10473 PR symtab/25889
10474 * linespec.c (find_method): Fix ix calculation.
10475
4498ef4f
KR
104762020-04-28 Kamil Rytarowski <n54@gmx.com>
10477
10478 * syscalls/update-netbsd.sh: New file.
10479 * syscalls/netbsd.xml: Regenerate.
10480 * data-directory/Makefile.in: Register `netbsd.xml' in
10481 `SYSCALLS_FILES'.
10482
a55e30b5
SM
104832020-04-28 Simon Marchi <simon.marchi@efficios.com>
10484
10485 * syscalls/update-freebsd.sh: Add double quotes.
10486
2b2fbab8
TT
104872020-04-28 Tom Tromey <tom@tromey.com>
10488
10489 * NEWS: Update.
10490 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10491 (cmdpy_init): Allow class_tui.
10492
a65189c9
TV
104932020-04-28 Mark Williams <mark@myosotissp.com>
10494
10495 PR gdb/24480
10496 * dwarf2read.c: Add missing assingments to list_in_scope when
10497 start_symtab was already called.
10498
1b95cdb7
SM
104992020-04-28 Simon Marchi <simon.marchi@efficios.com>
10500
10501 PR gdb/25881
10502 * dwarf2/read.c (offset_map_type): Use
10503 gdb:hash_enum<sect_offset> as hash function.
10504
15cd93d0
TV
105052020-04-28 Tom de Vries <tdevries@suse.de>
10506
10507 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10508 with DW_AT_signature.
10509
1eb39914
SM
105102020-04-27 Simon Marchi <simon.marchi@efficios.com>
10511
10512 * configure.ac: Remove check for fs_base/gs_base in
10513 user_regs_struct.
10514 * configure: Re-generate.
10515 * config.in: Re-generate.
10516 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10517 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10518 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10519
991a3e2e
LM
105202020-04-27 Luis Machado <luis.machado@linaro.org>
10521
10522 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10523 problematic inline frame unwinding situation.
10524 * frame.c (frame_id_computed_p): New function.
10525 * frame.h (frame_id_computed_p): New prototype.
10526
361ba0e8
TT
105272020-04-26 Tom Tromey <tom@tromey.com>
10528
10529 * command.h (enum command_class) <class_pseudo>: Remove.
10530
bc3609fd
PW
105312020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10532
10533 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10534 and whitespace.
10535
b9771db7
KR
105362020-04-25 Kamil Rytarowski <n54@gmx.com>
10537
ec16513e
SM
10538 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10539 `PT_GET_PROCESS_STATE' block.
b9771db7 10540
7151c1af
TT
105412020-04-24 Tom Tromey <tom@tromey.com>
10542
10543 * symtab.h (symbol_get_demangled_name): Don't declare.
10544 * symtab.c (symbol_get_demangled_name): Remove.
10545 (general_symbol_info::natural_name)
10546 (general_symbol_info::demangled_name): Update.
10547
906bb4c5
TT
105482020-04-24 Tom Tromey <tom@tromey.com>
10549
10550 PR rust/25025:
10551 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10552
bcfe6157
TT
105532020-04-24 Tom Tromey <tom@tromey.com>
10554
10555 PR symtab/12707:
10556 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10557 exists.
10558 (new_symbol): Likewise.
10559 * compile/compile-object-load.c (get_out_value_type): Use
10560 symbol_matches_search_name.
10561
f049a313
TT
105622020-04-24 Tom Tromey <tom@tromey.com>
10563
10564 * dwarf2/read.c (add_partial_symbol): Do not call
10565 compute_and_set_names.
10566
76e288d1
TT
105672020-04-24 Tom Tromey <tom@tromey.com>
10568
10569 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10570 overload.
10571
2467f4f6
TT
105722020-04-24 Tom Tromey <tom@tromey.com>
10573
10574 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10575 (add_psymbol_to_list): New overload. Make old overload call new
10576 one.
10577 * psympriv.h (add_psymbol_to_list): New overload.
10578
e61108c9
TT
105792020-04-24 Tom Tromey <tom@tromey.com>
10580
10581 * dwarf2/read.c (partial_die_info::read) <case
10582 DW_AT_linkage_name>: Use value_as_string.
10583 (dwarf2_string_attr): Use value_as_string.
10584 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10585 method.
10586 * dwarf2/attribute.c (attribute::value_as_string): New method.
10587
8c87a452
TT
105882020-04-24 Tom Tromey <tom@tromey.com>
10589
10590 * symtab.c (general_symbol_info::natural_name)
10591 (general_symbol_info::demangled_name): Check for language_rust.
10592
787de330
TT
105932020-04-24 Tom Tromey <tom@tromey.com>
10594
10595 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10596 (dwarf2_physname): ... from here.
10597 (partial_die_info::read): Add Rust "{" hack.
10598
ff985671
TT
105992020-04-24 Tom Tromey <tom@tromey.com>
10600
10601 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10602 method.
10603 (symbol_set_demangled_name): Don't declare.
10604 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10605 symbol_set_demangled_name.
10606 (general_symbol_info::set_language)
10607 (general_symbol_info::compute_and_set_names): Update.
10608 * minsyms.c (minimal_symbol_reader::install): Update.
10609 * dwarf2/read.c (new_symbol): Update.
10610
1acda803
TT
106112020-04-24 Tom Tromey <tromey@adacore.com>
10612
10613 PR python/23662:
10614 * python/py-type.c (convert_field): Handle
10615 FIELD_LOC_KIND_DWARF_BLOCK.
10616 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10617 (typy_get_dynamic): Nw function.
10618 (type_object_getset): Add "dynamic".
10619 * NEWS: Add entry.
10620
d656f129
TT
106212020-04-24 Tom Tromey <tromey@adacore.com>
10622
10623 * ada-typeprint.c (print_choices, print_variant_part)
10624 (print_record_field_types_dynamic): New functions.
10625 (print_record_field_types): Use print_record_field_types_dynamic.
10626
7d79de9a
TT
106272020-04-24 Tom Tromey <tromey@adacore.com>
10628
10629 * dwarf2/read.c (handle_data_member_location): New overload.
10630 (dwarf2_add_field): Use it.
10631 (decode_locdesc): Add "computed" parameter. Update comment.
10632 * gdbtypes.c (is_dynamic_type_internal): Also look for
10633 FIELD_LOC_KIND_DWARF_BLOCK.
10634 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10635 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10636 virtual base classes.
10637 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10638 FIELD_LOC_KIND_DWARF_BLOCK.
10639
f8e89861
TT
106402020-04-24 Tom Tromey <tromey@adacore.com>
10641
10642 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10643 * gdbtypes.c (is_dynamic_type_internal): Check
10644 TYPE_HAS_DYNAMIC_LENGTH.
10645 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10646 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10647 New macros.
10648 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10649 constant.
10650
9c6a1327
TT
106512020-04-24 Tom Tromey <tromey@adacore.com>
10652
10653 * dwarf2/read.c (struct variant_field): Rewrite.
10654 (struct variant_part_builder): New.
10655 (struct nextfield): Remove "variant" field. Add "offset".
10656 (struct field_info): Add "current_variant_part" and
10657 "variant_parts".
10658 (alloc_discriminant_info): Remove.
10659 (alloc_rust_variant): New function.
10660 (quirk_rust_enum): Update.
10661 (dwarf2_add_field): Set "offset" member. Don't handle
10662 DW_TAG_variant_part.
10663 (offset_map_type): New typedef.
10664 (convert_variant_range, create_one_variant)
10665 (create_one_variant_part, create_variant_parts)
10666 (add_variant_property): New functions.
10667 (dwarf2_attach_fields_to_type): Call add_variant_property.
10668 (read_structure_type): Don't handle DW_TAG_variant_part.
10669 (handle_variant_part, handle_variant): New functions.
10670 (handle_struct_member_die): Use them.
10671 (process_structure_scope): Don't handle variant parts.
10672 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10673 (struct discriminant_info): Remove.
10674 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10675 (struct main_type) <flag_discriminated_union>: Remove.
10676 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10677 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10678 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10679 Update.
10680 * valops.c (value_union_variant): Remove.
10681 * value.h (value_union_variant): Don't declare.
10682
b249d2c2
TT
106832020-04-24 Tom Tromey <tromey@adacore.com>
10684
10685 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10686 (ada_value_primitive_packed_val): Update.
10687 * ada-valprint.c (ada_value_print_1): Update.
10688 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10689 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10690 just an address. Use evaluate_for_locexpr_baton.
10691 (dwarf2_evaluate_property): Update.
10692 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10693 array_view.
10694 * findvar.c (default_read_var_value): Update.
10695 * gdbtypes.c (compute_variant_fields_inner)
10696 (resolve_dynamic_type_internal): Update.
10697 (resolve_dynamic_type): Change type of valaddr parameter.
10698 * gdbtypes.h (resolve_dynamic_type): Update.
10699 * valarith.c (value_subscripted_rvalue): Update.
10700 * value.c (value_from_contents_and_address): Update.
10701
61122aa9
TT
107022020-04-24 Tom Tromey <tromey@adacore.com>
10703
10704 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10705 "push_initial_value" parameter.
10706 (dwarf2_evaluate_property): Likewise.
10707 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10708
ef83a141
TT
107092020-04-24 Tom Tromey <tromey@adacore.com>
10710
10711 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10712 (variant::matches, compute_variant_fields_recurse)
10713 (compute_variant_fields_inner, compute_variant_fields): New
10714 functions.
10715 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10716 Use resolved_type after type is made.
10717 (operator==): Add new cases.
10718 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10719 (struct discriminant_range, struct variant, struct variant_part):
10720 New.
10721 (union dynamic_prop_data) <variant_parts, original_type>: New
10722 members.
10723 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10724 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10725 constants.
10726 * value.c (unpack_bits_as_long): Now public.
10727 * value.h (unpack_bits_as_long): Declare.
10728
675127ec
TT
107292020-04-24 Tom Tromey <tromey@adacore.com>
10730
10731 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10732 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10733
9852ceef
HD
107342020-04-24 Hannes Domani <ssbssa@yahoo.de>
10735
10736 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10737
7632c6ce
KR
107382020-04-24 Kamil Rytarowski <n54@gmx.com>
10739
10740 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10741 (remove_fork_catchpoint, post_startup_inferior)
10742 (post_attach): Move...
10743 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10744 (remove_fork_catchpoint, post_startup_inferior)
10745 (post_attach): ...here.
10746 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10747 (remove_fork_catchpoint, post_startup_inferior)
10748 (post_attach): Move...
10749 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10750 (remove_fork_catchpoint, post_startup_inferior)
10751 (post_attach): ...here.
10752
7be2bb4f
TT
107532020-04-24 Tom Tromey <tromey@adacore.com>
10754
10755 * nat/windows-nat.h (struct windows_thread_info)
10756 <pc_adjusted>: New member.
10757 * windows-nat.c (windows_fetch_one_register): Check
10758 pc_adjusted.
10759 (windows_nat_target::get_windows_debug_event)
10760 (windows_nat_target::wait): Set pc_adjusted.
10761
f80cb3b4
TV
107622020-04-24 Tom de Vries <tdevries@suse.de>
10763
10764 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10765 Run gdb-add-index inside temp dir.
10766
29514b87
TT
107672020-04-23 Tom Tromey <tromey@adacore.com>
10768
10769 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10770 in loop.
10771
5939967b
LM
107722020-04-23 Luis Machado <luis.machado@linaro.org>
10773
10774 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10775 get_frame_register instead of gdbarch_unwind_pc.
10776
70bc38f5
TV
107772020-04-23 Tom de Vries <tdevries@suse.de>
10778
10779 * symtab.c (lookup_global_symbol): Prefer def over decl.
10780
de82891c
TV
107812020-04-23 Tom de Vries <tdevries@suse.de>
10782
10783 PR symtab/25807
10784 * block.c (best_symbol, better_symbol): Promote to external.
10785 * block.h (best_symbol, better_symbol): Declare.
10786 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10787 decl.
10788
ecc6c606
TT
107892020-04-23 Tom Tromey <tromey@adacore.com>
10790
10791 PR ada/25837:
10792 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10793 "const char *", not a "const std::string &".
10794 <name_and_matcher::operator==>: Update.
10795 * unittests/lookup_name_info-selftests.c: Change type of
10796 "result".
10797
740480b8
TT
107982020-04-23 Tom Tromey <tom@tromey.com>
10799
10800 * inferior.h (iterate_over_inferiors): Don't declare.
10801 * inferior.c (iterate_over_inferiors): Remove.
10802 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10803 Remove.
10804 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10805 use iterate_over_inferiors.
10806 (darwin_resume_inferior_it)
10807 (struct resume_inferior_threads_param)
10808 (darwin_resume_inferior_threads_it): Remove.
10809 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10810
ae3ab1f0
TV
108112020-04-23 Tom de Vries <tdevries@suse.de>
10812
10813 * blockframe.c (find_pc_partial_function): Use
10814 find_pc_sect_compunit_symtab rather than
10815 objfile->sf->qf->find_pc_sect_compunit_symtab.
10816
317d2668
TV
108172020-04-22 Tom de Vries <tdevries@suse.de>
10818
10819 PR symtab/25764
10820 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10821 in psymtabs.
10822
eea9e357
TV
108232020-04-22 Tom de Vries <tdevries@suse.de>
10824
10825 PR symtab/25801
10826 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10827 symtabs.
10828
3d5afab3
TV
108292020-04-22 Tom de Vries <tdevries@suse.de>
10830
10831 PR symtab/25700
10832 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10833 CU if already created.
10834
d43b7a2d
TBA
108352020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10836
10837 * infrun.c (displaced_step_fixup): Switch to the event_thread
10838 before calling displaced_step_restore, not after.
10839
d89edf9b
MM
108402020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10841
10842 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10843 its inferior is not recorded by us.
10844 (record_btrace_target_open): Replace call to
10845 all_non_exited_threads () with call to current_inferior
10846 ()->non_exited_threads ().
10847 (record_btrace_target::stop_recording): Likewise.
10848 (record_btrace_target::close): Likewise.
10849 (record_btrace_target::wait): Likewise.
10850 (record_btrace_target::record_stop_replaying): Likewise.
10851
5897fd49
MM
108522020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10853
10854 * btrace.c (btrace_enable): Throw an error on double enables and
10855 when enabling recording fails.
10856 (btrace_disable): Throw an error if the thread is not recorded.
10857
1a476b6d
MM
108582020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10859
10860 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10861 request if we do not have a thread_info.
10862
4778a5f8
TV
108632020-04-21 Tom de Vries <tdevries@suse.de>
10864
10865 PR gdb/25471
10866 * thread.c
10867 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10868 exception in get_frame_id.
10869
0fa7617d
TT
108702020-04-20 Tom Tromey <tromey@adacore.com>
10871
10872 * python/python.c (struct gdbpy_event): Mark move constructor as
10873 noexcept.
10874 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10875 constructor as noexcept.
10876 * completer.h (struct completion_result): Mark move constructor as
10877 noexcept.
10878 * completer.c (completion_result::completion_result): Use
10879 initialization style. Don't call reset_match_list.
10880
ad23bda0
MS
108812020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10882
10883 * MAINTAINERS (Write After Approval): Add myself.
10884
45e1f031
TT
108852020-04-18 Tom Tromey <tom@tromey.com>
10886
10887 * windows-tdep.c (init_w32_command_list)
10888 (w32_prefix_command_valid): Restore.
10889 (_initialize_windows_tdep): Call init_w32_command_list.
10890
08feed99
TT
108912020-04-18 Tom Tromey <tom@tromey.com>
10892
10893 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10894 * value.c (value_fn_field): Update.
10895 * valops.c (find_function_in_inferior)
10896 (value_allocate_space_in_inferior): Update.
10897 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10898 Update.
10899 * tui/tui-source.c (tui_source_window::set_contents): Update.
10900 * symtab.c (lookup_global_or_static_symbol)
10901 (find_function_start_sal_1, skip_prologue_sal)
10902 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10903 * symmisc.c (dump_msymbols, dump_symtab_1)
10904 (maintenance_print_one_line_table): Update.
10905 * symfile.c (init_entry_point_info, section_is_mapped)
10906 (list_overlays_command, simple_read_overlay_table)
10907 (simple_overlay_update_1): Update.
10908 * stap-probe.c (handle_stap_probe): Update.
10909 * stabsread.c (dbx_init_float_type, define_symbol)
10910 (read_one_struct_field, read_enum_type, read_range_type): Update.
10911 * source.c (info_line_command): Update.
10912 * python/python.c (gdbpy_source_objfile_script)
10913 (gdbpy_execute_objfile_script): Update.
10914 * python/py-type.c (save_objfile_types): Update.
10915 * python/py-objfile.c (py_free_objfile): Update.
10916 * python/py-inferior.c (python_new_objfile): Update.
10917 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10918 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10919 (maintenance_check_psymtabs): Update.
10920 * printcmd.c (info_address_command): Update.
10921 * objfiles.h (struct objfile) <arch>: New method, from
10922 get_objfile_arch.
10923 (get_objfile_arch): Don't declare.
10924 * objfiles.c (get_objfile_arch): Remove.
10925 (filter_overlapping_sections): Update.
10926 * minsyms.c (msymbol_is_function): Update.
10927 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10928 (output_nondebug_symbol): Update.
10929 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10930 (mdebug_expand_psymtab): Update.
10931 * machoread.c (macho_add_oso_symfile): Update.
10932 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10933 Update.
10934 * linux-fork.c (checkpoint_command): Update.
10935 * linespec.c (convert_linespec_to_sals): Update.
10936 * jit.c (finalize_symtab): Update.
10937 * infrun.c (insert_exception_resume_from_probe): Update.
10938 * ia64-tdep.c (ia64_find_unwind_table): Update.
10939 * hppa-tdep.c (internalize_unwinds): Update.
10940 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10941 Update.
10942 * gcore.c (call_target_sbrk): Update.
10943 * elfread.c (record_minimal_symbol, elf_symtab_read)
10944 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10945 (elf_gnu_ifunc_resolve_by_got): Update.
10946 * dwarf2/read.c (create_addrmap_from_index)
10947 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10948 (read_debug_names_from_section)
10949 (process_psymtab_comp_unit_reader, add_partial_symbol)
10950 (add_partial_subprogram, process_full_comp_unit)
10951 (read_file_scope, read_func_scope, read_lexical_block_scope)
10952 (read_call_site_scope, dwarf2_ranges_read)
10953 (dwarf2_record_block_ranges, dwarf2_add_field)
10954 (mark_common_block_symbol_computed, read_tag_pointer_type)
10955 (read_tag_string_type, dwarf2_init_float_type)
10956 (dwarf2_init_complex_target_type, read_base_type)
10957 (partial_die_info::read, partial_die_info::read)
10958 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10959 (dwarf2_fetch_die_loc_sect_off): Update.
10960 * dwarf2/loc.c (dwarf2_find_location_expression)
10961 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10962 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10963 (dwarf2_loc_desc_get_symbol_read_needs)
10964 (locexpr_describe_location_piece, locexpr_describe_location_1)
10965 (loclist_describe_location): Update.
10966 * dwarf2/index-write.c (write_debug_names): Update.
10967 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10968 * dtrace-probe.c (dtrace_process_dof): Update.
10969 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10970 (process_one_symbol): Update.
10971 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10972 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10973 (coff_read_enum_type): Update.
10974 * cli/cli-cmds.c (edit_command, list_command): Update.
10975 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10976 * breakpoint.c (create_overlay_event_breakpoint)
10977 (create_longjmp_master_breakpoint)
10978 (create_std_terminate_master_breakpoint)
10979 (create_exception_master_breakpoint, get_sal_arch): Update.
10980 * block.c (block_gdbarch): Update.
10981 * annotate.c (annotate_source_line): Update.
10982
0743fc83
TT
109832020-04-17 Tom Tromey <tromey@adacore.com>
10984
10985 * auto-load.c (show_auto_load_cmd): Remove.
10986 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10987 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10988 (maintenance_print_arc_command): Remove.
10989 * tui/tui-win.c (tui_command): Remove.
10990 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10991 * tui/tui-layout.c (tui_layout_command): Remove.
10992 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10993 * python/python.c (user_set_python, user_show_python): Remove.
10994 (_initialize_python): Use add_basic_prefix_cmd,
10995 add_show_prefix_cmd.
10996 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10997 (install_gdb_commands): Use add_basic_prefix_cmd,
10998 add_show_prefix_cmd.
10999 (info_guile_command): Remove.
11000 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11001 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11002 add_show_prefix_cmd.
11003 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11004 Remove do_set and do_show parameters.
11005 * cli/cli-style.c (set_style, show_style): Remove.
11006 (_initialize_cli_style): Use add_basic_prefix_cmd,
11007 add_show_prefix_cmd.
11008 (cli_style_option::add_setshow_commands): Remove do_set and
11009 do_show parameters.
11010 (cli_style_option::add_setshow_commands): Use
11011 add_basic_prefix_cmd, add_show_prefix_cmd.
11012 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11013 (set_style_name): Remove.
11014 * cli/cli-dump.c (dump_command, append_command): Remove.
11015 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11016 (tekhex_dump_command, binary_dump_command)
11017 (binary_append_command): Remove.
11018 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11019 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11020 (init_w32_command_list): Remove; move into ...
11021 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11022 * valprint.c (set_print, show_print, set_print_raw)
11023 (show_print_raw): Remove.
11024 (_initialize_valprint): Use add_basic_prefix_cmd,
11025 add_show_prefix_cmd.
11026 * typeprint.c (set_print_type, show_print_type): Remove.
11027 (_initialize_typeprint): Use add_basic_prefix_cmd,
11028 add_show_prefix_cmd.
11029 * record.c (set_record_command, show_record_command): Remove.
11030 (_initialize_record): Use add_basic_prefix_cmd,
11031 add_show_prefix_cmd.
11032 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11033 add_show_prefix_cmd.
11034 (info_command, show_command, set_debug, show_debug): Remove.
11035 * top.h (set_history, show_history): Don't declare.
11036 * top.c (set_history, show_history): Remove.
11037 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11038 (unset_tdesc_cmd): Remove.
11039 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11040 add_show_prefix_cmd.
11041 * symtab.c (info_module_command): Remove.
11042 (_initialize_symtab): Use add_basic_prefix_cmd.
11043 * symfile.c (overlay_command): Remove.
11044 (_initialize_symfile): Use add_basic_prefix_cmd.
11045 * sparc64-tdep.c (info_adi_command): Remove.
11046 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11047 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11048 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11049 add_show_prefix_cmd.
11050 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11051 (_initialize_serial): Use add_basic_prefix_cmd,
11052 add_show_prefix_cmd.
11053 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11054 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11055 add_show_prefix_cmd.
11056 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11057 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11058 add_show_prefix_cmd.
11059 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11060 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11061 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11062 add_show_prefix_cmd.
11063 * remote.c (remote_command, set_remote_cmd): Remove.
11064 (_initialize_remote): Use add_basic_prefix_cmd.
11065 * record-full.c (set_record_full_command)
11066 (show_record_full_command): Remove.
11067 (_initialize_record_full): Use add_basic_prefix_cmd,
11068 add_show_prefix_cmd.
11069 * record-btrace.c (cmd_set_record_btrace)
11070 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11071 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11072 (cmd_show_record_btrace_pt): Remove.
11073 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11074 add_show_prefix_cmd.
11075 * ravenscar-thread.c (set_ravenscar_command)
11076 (show_ravenscar_command): Remove.
11077 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11078 add_show_prefix_cmd.
11079 * mips-tdep.c (show_mips_command, set_mips_command)
11080 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11081 add_show_prefix_cmd.
11082 * maint.c (maintenance_command, maintenance_info_command)
11083 (maintenance_check_command, maintenance_print_command)
11084 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11085 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11086 add_show_prefix_cmd.
11087 (show_per_command_cmd): Remove.
11088 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11089 Remove.
11090 (maintenance_show_test_settings_cmd): Remove.
11091 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11092 add_show_prefix_cmd.
11093 * maint-test-options.c (maintenance_test_options_command):
11094 Remove.
11095 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11096 * macrocmd.c (macro_command): Remove
11097 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11098 * language.c (set_check, show_check): Remove.
11099 (_initialize_language): Use add_basic_prefix_cmd,
11100 add_show_prefix_cmd.
11101 * infcmd.c (unset_command): Remove.
11102 (_initialize_infcmd): Use add_basic_prefix_cmd.
11103 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11104 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11105 add_show_prefix_cmd.
11106 * go32-nat.c (go32_info_dos_command): Remove.
11107 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11108 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11109 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11110 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11111 (_initialize_frame): Use add_basic_prefix_cmd,
11112 add_show_prefix_cmd.
11113 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11114 (_initialize_dcache): Use add_basic_prefix_cmd,
11115 add_show_prefix_cmd.
11116 * cp-support.c (maint_cplus_command): Remove.
11117 (_initialize_cp_support): Use add_basic_prefix_cmd.
11118 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11119 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11120 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11121 add_basic_prefix_cmd, add_show_prefix_cmd.
11122 * breakpoint.c (save_command): Remove.
11123 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11124 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11125 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11126 add_show_prefix_cmd.
11127 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11128 (set_ada_command, show_ada_command): Remove.
11129 (_initialize_ada_language): Use add_basic_prefix_cmd,
11130 add_show_prefix_cmd.
11131 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11132
3557f442
KR
111332020-04-16 Kamil Rytarowski <n54@gmx.com>
11134
11135 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11136 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11137
16197208
SM
111382020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11139
11140 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11141 warning messages.
11142
00ac85d3
SM
111432020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11144
11145 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11146 import table is not at beginning of .idata section.
11147
381ce63f
PA
111482020-04-16 Pedro Alves <palves@redhat.com>
11149
11150 * inferior.c (delete_inferior): Use delete operator directly
11151 instead of delete_program_space.
11152 * progspace.c (add_program_space): New, factored out from
11153 program_space::program_space.
11154 (remove_program_space): New, factored out from
11155 delete_program_space.
11156 (program_space::program_space): Remove intro comment. Rewrite.
11157 (program_space::~program_space): Remove intro comment. Call
11158 remove_program_space.
11159 (delete_program_space): Delete.
11160 * progspace.h (program_space::program_space): Make explicit. Move
11161 intro comment here, adjusted.
11162 (program_space::~program_space): Move intro comment here,
11163 adjusted.
11164 (delete_program_space): Remove.
11165
a010605f
TT
111662020-04-16 Tom Tromey <tromey@adacore.com>
11167
11168 * windows-nat.c (windows_nat::handle_access_violation): New
11169 function.
11170 * nat/windows-nat.h (handle_access_violation): Declare.
11171 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11172 windows-nat.c. Call handle_access_violation.
11173
efba5c23
TV
111742020-04-16 Tom de Vries <tdevries@suse.de>
11175
11176 PR symtab/25791
11177 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11178 CUs without psymtab.
11179
97ed802d
KB
111802020-04-16 Kevin Buettner <kevinb@redhat.com>
11181
11182 * python/python.c (do_start_initialization): Don't call
11183 PyEval_InitThreads for Python 3.9 and beyond.
11184
c7d64809
KR
111852020-04-15 Kamil Rytarowski <n54@gmx.com>
11186
11187 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11188 thread functions.
11189 (obsd_nat_target::wait): Likewise.
11190
ce127a96
TT
111912020-04-15 Tom Tromey <tromey@adacore.com>
11192
11193 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11194 (DEBUG_EXCEPT): Use debug_printf.
11195
99f1bc6a
AB
111962020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11197
11198 * completer.c (class completion_tracker::completion_hash_entry)
11199 <hash_name>: New member function.
11200 (completion_tracker::discard_completions): New callback to hash a
11201 completion_hash_entry, pass this to htab_create_alloc.
11202
a0e9b532
JT
112032016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11204
11205 * windows-nat.c (windows_make_so): Warn rather than stopping with
11206 an error if realpath() fails.
11207
06ca5dd4
KR
112082020-04-14 Kamil Rytarowski <n54@gmx.com>
11209
11210 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11211 (nbsd_nat_target::info_proc): Add do_status.
11212
194d088f
TV
112132020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11214 Tom de Vries <tdevries@suse.de>
11215
11216 PR symtab/25718
11217 * psympriv.h (struct partial_symtab::read_symtab)
11218 (struct partial_symtab::expand_psymtab)
11219 (struct partial_symtab::read_dependencies): Update comments.
11220 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11221 read_symtab for includer.
11222 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11223 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11224 (struct dwarf2_include_psymtab::m_readin): Remove.
11225 (struct dwarf2_include_psymtab::includer): New member function.
11226 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11227
c1a66c06
TV
112282020-04-14 Tom de Vries <tdevries@suse.de>
11229
11230 PR symtab/25720
11231 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11232 with NULL symbol_matcher and lookup_name.
11233 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11234 and lookup_name.
11235 * dwarf2/read.c (dw2_expand_symtabs_matching)
11236 (dw2_debug_names_expand_symtabs_matching): Same.
11237 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11238 Make lookup_name a pointer. Update comment.
11239 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11240 lookup_name being a pointer.
11241 * symfile.c (expand_symtabs_matching): Same.
11242 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11243 * linespec.c (iterate_over_all_matching_symtabs): Same.
11244
400b5eca
TT
112452020-04-13 Tom Tromey <tom@tromey.com>
11246
11247 * run-on-main-thread.c: Update include.
11248 * unittests/main-thread-selftests.c: Update include.
11249 * tui/tui-win.c: Update include.
11250 * tui/tui-io.c: Update include.
11251 * tui/tui-interp.c: Update include.
11252 * tui/tui-hooks.c: Update include.
11253 * top.h: Update include.
11254 * top.c: Update include.
11255 * ser-base.c: Update include.
11256 * remote.c: Update include.
11257 * remote-notif.c: Update include.
11258 * remote-fileio.c: Update include.
11259 * record-full.c: Update include.
11260 * record-btrace.c: Update include.
11261 * python/python.c: Update include.
11262 * posix-hdep.c: Update include.
11263 * mingw-hdep.c: Update include.
11264 * mi/mi-main.c: Update include.
11265 * mi/mi-interp.c: Update include.
11266 * main.c: Update include.
11267 * linux-nat.c: Update include.
11268 * interps.c: Update include.
11269 * infrun.c: Update include.
11270 * inf-loop.c: Update include.
11271 * event-top.c: Update include.
11272 * event-loop.c: Move to ../gdbsupport/.
11273 * event-loop.h: Move to ../gdbsupport/.
11274 * async-event.h: Update include.
11275 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11276
93b54c8e
TT
112772020-04-13 Tom Tromey <tom@tromey.com>
11278
11279 * tui/tui-win.c: Include async-event.h.
11280 * remote.c: Include async-event.h.
11281 * remote-notif.c: Include async-event.h.
11282 * record-full.c: Include async-event.h.
11283 * record-btrace.c: Include async-event.h.
11284 * infrun.c: Include async-event.h.
11285 * event-top.c: Include async-event.h.
11286 * event-loop.h: Move some declarations to async-event.h.
11287 * event-loop.c: Don't include ser-event.h or top.h. Move some
11288 code to async-event.c.
11289 * async-event.h: New file.
11290 * async-event.c: New file.
11291 * Makefile.in (COMMON_SFILES): Add async-event.c.
11292 (HFILES_NO_SRCDIR): Add async-event.h.
11293
c1cd3163
TT
112942020-04-13 Tom Tromey <tom@tromey.com>
11295
11296 * utils.c (flush_streams): New function.
11297 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11298
29f2bf4f
TT
112992020-04-13 Tom Tromey <tom@tromey.com>
11300
11301 * event-loop.c (handle_file_event): Use warning, not
11302 printf_unfiltered.
11303
98029d02
TT
113042020-04-13 Tom Tromey <tom@tromey.com>
11305
11306 * event-loop.c: Include <chrono>.
11307
06cc9596
TT
113082020-04-13 Tom Tromey <tom@tromey.com>
11309
11310 * gdb_select.h: Move to ../gdbsupport/.
11311 * event-loop.c: Update include path.
11312 * top.c: Update include path.
11313 * ser-base.c: Update include path.
11314 * ui-file.c: Update include path.
11315 * ser-tcp.c: Update include path.
11316 * guile/scm-ports.c: Update include path.
11317 * posix-hdep.c: Update include path.
11318 * ser-unix.c: Update include path.
11319 * gdb_usleep.c: Update include path.
11320 * mingw-hdep.c: Update include path.
11321 * inflow.c: Update include path.
11322 * infrun.c: Update include path.
11323 * event-top.c: Update include path.
11324
8ae8e197
TT
113252020-04-13 Tom Tromey <tom@tromey.com>
11326
11327 * configure: Rebuild.
11328 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11329
58cf28e8
TT
113302020-04-13 Tom Tromey <tom@tromey.com>
11331
11332 * event-loop.h (start_event_loop): Don't declare.
11333 * event-loop.c (start_event_loop): Move...
11334 * main.c (start_event_loop): ...here. Now static.
11335
b7f999ae
SDJ
113362020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11337
11338 * MAINTAINERS: Update my email address.
11339
1085dfd4
KR
113402020-04-12 Kamil Rytarowski <n54@gmx.com>
11341
11342 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11343 IP_ALL.
11344
49d1d1f5
KR
113452020-04-12 Kamil Rytarowski <n54@gmx.com>
11346
11347 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11348 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11349
b4848d2a
KR
113502020-04-12 Kamil Rytarowski <n54@gmx.com>
11351
11352 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11353 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11354
51c133d5
KR
113552020-04-12 Kamil Rytarowski <n54@gmx.com>
11356
11357 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11358
54b8cbd0
KR
113592020-04-11 Kamil Rytarowski <n54@gmx.com>
11360
11361 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11362 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11363 (nbsd_nat_target::info_proc): New functions.
11364 * nbsd-nat.c (kinfo_get_vmmap): New function.
11365 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11366 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11367 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11368 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11369 functions.
11370 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11371 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11372 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11373 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11374 (KINFO_VME_FLAG_GROWS_DOWN): New.
11375
cf83625d
AS
113762020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11377
11378 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11379 bit shift.
11380
0c4311ab
TT
113812020-04-10 Tom Tromey <tromey@adacore.com>
11382
11383 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11384
3e65b3e9
TT
113852020-04-10 Tom Tromey <tromey@adacore.com>
11386
11387 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11388 separate debug files.
11389
13302e95
HD
113902020-04-10 Hannes Domani <ssbssa@yahoo.de>
11391
11392 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11393 Move to...
11394 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11395 ... here.
11396 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11397 Check for STATUS_WX86_BREAKPOINT.
11398 (windows_nat_target::wait): Same.
11399
bdfc1e8a
TV
114002020-04-10 Tom de Vries <tdevries@suse.de>
11401
11402 PR cli/25808
11403 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11404
f4460aec
SM
114052020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11406
11407 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11408 (Write After Approval): Remove Tom de Vries.
11409
a25198bb
BE
114102020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11411
11412 revert partially:
11413 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11414
aac66a4c
SM
11415 * buildsym.c (record_line): Fix undefined behavior and preserve
11416 lines at eof.
a25198bb 11417
206c98a6
KR
114182020-04-09 Kamil Rytarowski <n54@gmx.com>
11419
11420 * auxv.h (svr4_auxv_parse): New.
11421 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11422 and generic_auxv_parse.
11423 (svr4_auxv_parse): Add.
11424 * obsd-tdep.c: Include "auxv.h".
11425 (obsd_auxv_parse): Remove.
11426 (obsd_init_abi): Remove comment.
11427 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11428 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11429 * nbsd-tdep.c: Include "auxv.h".
11430 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11431
71fbdbaf
TT
114322020-04-08 Tom Tromey <tromey@adacore.com>
11433
11434 * nat/windows-nat.h (last_wait_event): Don't declare.
11435 (wait_for_debug_event): Update comment.
11436 * nat/windows-nat.c (last_wait_event): Now static.
11437
2c1d95e8
TT
114382020-04-08 Tom Tromey <tromey@adacore.com>
11439
11440 * windows-nat.c (wait_for_debug_event): Move to
11441 nat/windows-nat.c.
11442 * nat/windows-nat.h (wait_for_debug_event): Declare.
11443 * nat/windows-nat.c (wait_for_debug_event): Move from
11444 windows-nat.c. No longer static.
11445
d2977bc4
TT
114462020-04-08 Tom Tromey <tromey@adacore.com>
11447
11448 * windows-nat.c (get_windows_debug_event): Use
11449 fetch_pending_stop.
11450 * nat/windows-nat.h (fetch_pending_stop): Declare.
11451 * nat/windows-nat.c (fetch_pending_stop): New function.
11452
e758e19c
TT
114532020-04-08 Tom Tromey <tromey@adacore.com>
11454
11455 * windows-nat.c (windows_continue): Use matching_pending_stop and
11456 continue_last_debug_event.
11457 * nat/windows-nat.h (matching_pending_stop)
11458 (continue_last_debug_event): Declare.
11459 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11460 (matching_pending_stop, continue_last_debug_event): New
11461 functions.
11462
8d30e395
TT
114632020-04-08 Tom Tromey <tromey@adacore.com>
11464
11465 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11466 (handle_exception_result): Move to nat/windows-nat.h.
11467 (DEBUG_EXCEPTION_SIMPLE): Remove.
11468 (windows_nat::handle_ms_vc_exception): New function.
11469 (handle_exception): Move to nat/windows-nat.c.
11470 (get_windows_debug_event): Update.
11471 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11472 nat/windows-nat.c.
11473 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11474 (handle_exception_result): Move from windows-nat.c.
11475 (handle_exception): Declare.
11476 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11477 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11478 windows-nat.c.
11479
29de418d
TT
114802020-04-08 Tom Tromey <tromey@adacore.com>
11481
11482 * windows-nat.c (exception_count, event_count): Remove.
11483 (handle_exception, get_windows_debug_event)
11484 (do_initial_windows_stuff): Update.
11485
a816ba18
TT
114862020-04-08 Tom Tromey <tromey@adacore.com>
11487
11488 * windows-nat.c (windows_nat::handle_load_dll)
11489 (windows_nat::handle_unload_dll): Rename. No longer static.
11490 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11491 Declare.
11492
a00caa12
TT
114932020-04-08 Tom Tromey <tromey@adacore.com>
11494
11495 * complaints.h (stop_whining): Declare at top-level.
11496 (complaint): Don't declare stop_whining.
11497
d41b524f
TT
114982020-04-08 Tom Tromey <tromey@adacore.com>
11499
11500 * windows-nat.c (windows_nat::handle_output_debug_string):
11501 Rename. No longer static.
11502 * nat/windows-nat.h (handle_output_debug_string): Declare.
11503
3c76026d
TT
115042020-04-08 Tom Tromey <tromey@adacore.com>
11505
11506 * windows-nat.c (current_process_handle, current_process_id)
11507 (main_thread_id, last_sig, current_event, last_wait_event)
11508 (current_windows_thread, desired_stop_thread_id, pending_stops)
11509 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11510 (display_selectors, fake_create_process)
11511 (get_windows_debug_event): Update.
11512 * nat/windows-nat.h (current_process_handle, current_process_id)
11513 (main_thread_id, last_sig, current_event, last_wait_event)
11514 (current_windows_thread, desired_stop_thread_id, pending_stops)
11515 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11516 * nat/windows-nat.c (current_process_handle, current_process_id)
11517 (main_thread_id, last_sig, current_event, last_wait_event)
11518 (current_windows_thread, desired_stop_thread_id, pending_stops)
11519 (siginfo_er): New globals. Move from windows-nat.c.
11520
9d8679cc
TT
115212020-04-08 Tom Tromey <tromey@adacore.com>
11522
11523 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11524 (handle_load_dll): Update.
11525 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11526
28688adf
TT
115272020-04-08 Tom Tromey <tromey@adacore.com>
11528
11529 * windows-nat.c (enum thread_disposition_type): Move to
11530 nat/windows-nat.h.
11531 (windows_nat::thread_rec): Rename from thread_rec. No longer
11532 static.
11533 (windows_add_thread, windows_nat_target::fetch_registers)
11534 (windows_nat_target::store_registers, handle_exception)
11535 (windows_nat_target::resume, get_windows_debug_event)
11536 (windows_nat_target::get_tib_address)
11537 (windows_nat_target::thread_name)
11538 (windows_nat_target::thread_alive): Update.
11539 * nat/windows-nat.h (enum thread_disposition_type): Move from
11540 windows-nat.c.
11541 (thread_rec): Declare.
11542
4834dad0
TT
115432020-04-08 Tom Tromey <tromey@adacore.com>
11544
11545 * windows-nat.c: Add "using namespace".
11546 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11547 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11548
65bafd5b
TT
115492020-04-08 Tom Tromey <tromey@adacore.com>
11550
11551 * nat/windows-nat.h (struct windows_thread_info): Declare
11552 destructor.
11553 * nat/windows-nat.c (~windows_thread_info): New.
11554
0a4afda3
TT
115552020-04-08 Tom Tromey <tromey@adacore.com>
11556
11557 PR gdb/22992
11558 * windows-nat.c (current_event): Update comment.
11559 (last_wait_event, desired_stop_thread_id): New globals.
11560 (struct pending_stop): New.
11561 (pending_stops): New global.
11562 (windows_nat_target) <stopped_by_sw_breakpoint>
11563 <supports_stopped_by_sw_breakpoint>: New methods.
11564 (windows_fetch_one_register): Add assertions. Adjust PC.
11565 (windows_continue): Handle pending stops. Suspend other threads
11566 when stepping. Use last_wait_event
11567 (wait_for_debug_event): New function.
11568 (get_windows_debug_event): Use wait_for_debug_event. Handle
11569 pending stops. Queue spurious stops.
11570 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11571 (windows_nat_target::kill): Use wait_for_debug_event.
11572 * nat/windows-nat.h (struct windows_thread_info)
11573 <stopped_at_software_breakpoint>: New field.
11574 * nat/windows-nat.c (windows_thread_info::resume): Clear
11575 stopped_at_software_breakpoint.
11576
8e61ebec
TT
115772020-04-08 Tom Tromey <tromey@adacore.com>
11578
11579 * windows-nat.c (enum thread_disposition_type): New.
11580 (thread_rec): Replace "get_context" parameter with "disposition";
11581 change type.
11582 (windows_add_thread, windows_nat_target::fetch_registers)
11583 (windows_nat_target::store_registers, handle_exception)
11584 (windows_nat_target::resume, get_windows_debug_event)
11585 (windows_nat_target::get_tib_address)
11586 (windows_nat_target::thread_name)
11587 (windows_nat_target::thread_alive): Update.
11588
98a03287
TT
115892020-04-08 Tom Tromey <tromey@adacore.com>
11590
11591 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11592 (windows_continue): Use windows_continue::resume.
11593 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11594 resume>: Declare new methods.
11595 * nat/windows-nat.c: New file.
11596 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11597
7c7411bc
TT
115982020-04-08 Tom Tromey <tromey@adacore.com>
11599
11600 * windows-nat.c (windows_add_thread, windows_delete_thread)
11601 (windows_nat_target::fetch_registers)
11602 (windows_nat_target::store_registers, fake_create_process)
11603 (windows_nat_target::resume, windows_nat_target::resume)
11604 (get_windows_debug_event, windows_nat_target::wait)
11605 (windows_nat_target::pid_to_str)
11606 (windows_nat_target::get_tib_address)
11607 (windows_nat_target::get_ada_task_ptid)
11608 (windows_nat_target::thread_name)
11609 (windows_nat_target::thread_alive): Use lwp, not tid.
11610
2950fdf7
TT
116112020-04-08 Tom Tromey <tromey@adacore.com>
11612
11613 * windows-nat.c (handle_exception)
11614 (windows_nat_target::thread_name): Update.
11615 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11616 <name>: Now unique_xmalloc_ptr.
11617
62fe396b
TT
116182020-04-08 Tom Tromey <tromey@adacore.com>
11619
11620 * windows-nat.c (thread_rec)
11621 (windows_nat_target::fetch_registers): Update.
11622 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11623 Update comment.
11624 <debug_registers_changed, reload_context>: Now bool.
11625
e9534bd2
TT
116262020-04-08 Tom Tromey <tromey@adacore.com>
11627
11628 * windows-nat.c (windows_add_thread): Use new.
11629 (windows_init_thread_list, windows_delete_thread): Use delete.
11630 (get_windows_debug_event): Update.
11631 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11632 destructor, and initializers.
11633
ae1f8880
TT
116342020-04-08 Tom Tromey <tromey@adacore.com>
11635
11636 * windows-nat.c (struct windows_thread_info): Remove.
11637 * nat/windows-nat.h: New file.
11638
55a1e039
TT
116392020-04-08 Tom Tromey <tromey@adacore.com>
11640
11641 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11642 (thread_rec, windows_add_thread, windows_delete_thread)
11643 (windows_continue): Update.
11644
93366324
TT
116452020-04-08 Tom Tromey <tromey@adacore.com>
11646
11647 * windows-nat.c (struct windows_thread_info): Remove typedef.
11648 (thread_head): Remove.
11649 (thread_list): New global.
11650 (thread_rec, windows_add_thread, windows_init_thread_list)
11651 (windows_delete_thread, windows_continue): Update.
11652
0f2265e2
SM
116532020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11654
11655 * windows-tdep.h (windows_init_abi): Add comment.
11656 (cygwin_init_abi): New declaration.
11657 * windows-tdep.c: Split signal enumeration in two, one for
11658 Windows and one for Cygwin.
11659 (windows_gdb_signal_to_target): Only deal with signal of the
11660 Windows OS ABI.
11661 (cygwin_gdb_signal_to_target): New function.
11662 (windows_init_abi): Rename to windows_init_abi_common, don't set
11663 gdb_signal_to_target gdbarch method. Add new new function with
11664 this name.
11665 (cygwin_init_abi): New function.
11666 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11667 comment. Don't call windows_init_abi.
11668 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11669 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11670 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11671 i386_windows_init_abi_common, don't call windows_init_abi. Add
11672 a new function of this name.
11673 (i386_cygwin_init_abi): New function.
11674 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11675 OS ABI Cygwin.
11676
3810f182
SM
116772020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11678
11679 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11680 parameter.c.
11681 (dwarf2_read_gdb_index): Update.
11682
063f8e80
KR
116832020-04-07 Kamil Rytarowski <n54@gmx.com>
11684
11685 * nbsd-tdep.c: Include "objfiles.h".
11686 (nbsd_skip_solib_resolver): New.
11687 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11688
85a9510c 116892020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11690
11691 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11692 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11693 with DW_LLE_base_addressx are being emitted in DWARFv5.
11694 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11695 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11696 unsigned integer.
11697
9fc3eaae 116982020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11699
11700 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11701 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11702 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11703 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11704 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11705 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11706 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11707
11708
41144253 117092020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11710
11711 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11712 (read_loclist_index): New function definition.
11713 (lookup_loclist_base): New function definition.
11714 (read_loclist_header): New function definition.
11715 (dwarf2_cu): Add loclist_base and loclist_header field.
11716 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11717 (read_full_die_1): Read the value of DW_AT_loclists_base.
11718 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11719 (read_attribute_value): Handle DW_FORM_loclistx.
11720 (skip_one_die): Handle DW_FORM_loclistx.
11721 (loclist_header): New structure declaration.
11722 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11723
9f4e76a4
SM
117242020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11725
11726 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11727 constructor. Remove `addr` parameter from other constructor and
11728 add `per_cu` parameter.
11729 * dwarf2/read.c (create_partial_symtab): Update.
11730
25c11aca
TV
117312020-04-07 Tom de Vries <tdevries@suse.de>
11732
11733 PR symtab/25796
11734 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11735 (partial_die_info::fixup): Inherit has_const_value.
11736
5707e24b
TV
117372020-04-07 Tom de Vries <tdevries@suse.de>
11738
11739 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11740 symbols without address.
11741
05f00e22
KR
117422020-04-06 Kamil Rytarowski <n54@gmx.com>
11743
11744 * nbsd-nat.h (struct thread_info): Add forward declaration.
11745 (nbsd_nat_target::thread_alive): Add.
11746 (nbsd_nat_target::thread_name): Likewise.
11747 (nbsd_nat_target::update_thread_list): Likewise.
11748 (update_thread_list::post_attach): Likewise.
11749 (post_attach::pid_to_str): Likewise.
11750 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11751 (nbsd_thread_lister): Add.
11752 (nbsd_nat_target::thread_alive): Likewise.
11753 (nbsd_nat_target::thread_name): Likewise.
11754 (nbsd_add_threads): Likewise.
11755 (update_thread_list::post_attach): Likewise.
11756 (nbsd_nat_target::update_thread_list): Likewise.
11757 (post_attach::pid_to_str): Likewise.
11758
6ee448cc
TT
117592020-04-06 Tom Tromey <tromey@adacore.com>
11760
11761 * ada-valprint.c (print_variant_part): Extract the variant field.
11762 (print_field_values): Use the field as the outer value when
11763 recursing.
11764
dea34e8c
TT
117652020-04-06 Tom Tromey <tromey@adacore.com>
11766
11767 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11768 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11769 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11770 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11771 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11772
93689ce9
TT
117732020-04-06 Tom Tromey <tromey@adacore.com>
11774
11775 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11776 TYPE_CODE_ERROR.
11777
79743962
KR
117782020-04-06 Kamil Rytarowski <n54@gmx.com>
11779
11780 * nbsd-tdep.c: Include "gdbarch.h".
11781 Define enum with NetBSD signal numbers.
11782 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11783 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11784 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11785 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11786 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11787 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11788 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11789 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11790 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11791 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11792 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11793 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11794
9e7c9a03
HD
117952020-04-03 Hannes Domani <ssbssa@yahoo.de>
11796
11797 PR gdb/25325
11798 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11799
d9e49b61
TT
118002020-04-03 Tom Tromey <tromey@adacore.com>
11801
11802 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11803 Read constant block.
11804
e0fc5c3f
SM
118052020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11806
11807 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11808 (gdb_bfd_get_full_section_contents): New declaration.
11809 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11810 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11811 gdb_bfd_get_full_section_contents.
11812
e2ff18a0
SM
118132020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11814
11815 * exec.c (build_section_table): Replace internal_error with
11816 gdb_assert.
11817 (section_table_xfer_memory_partial): Likewise.
11818 * mdebugread.c (parse_partial_symbols): Likewise.
11819 * psymtab.c (lookup_partial_symbol): Likewise.
11820 * utils.c (wrap_here): Likewise.
11821
0830d301
TT
118222020-04-02 Tom Tromey <tromey@adacore.com>
11823
11824 * f-lang.c (build_fortran_types): Use arch_type to initialize
11825 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11826
e7da7f8f
TT
118272020-04-02 Tom Tromey <tromey@adacore.com>
11828
11829 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11830 of attributes.
11831
c90d28ac
AB
118322020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11833 Bernd Edlinger <bernd.edlinger@hotmail.de>
11834 Tom Tromey <tromey@adacore.com>
11835
11836 * buildsym.c (buildsym_compunit::record_line): Remove
11837 deduplication code.
11838
1aa98955
TV
118392020-04-02 Tom de Vries <tdevries@suse.de>
11840
11841 PR ada/24671
11842 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11843
d3214198
TV
118442020-04-02 Tom de Vries <tdevries@suse.de>
11845
11846 * dwarf2/read.c (dwarf2_gdb_index_functions,
11847 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11848 NULL.
11849 * psymtab.c (psym_lookup_global_symbol_language): New function.
11850 (psym_functions): Init psym_lookup_global_symbol_language with
11851 psym_lookup_global_symbol_language.
11852 * symfile-debug.c (debug_sym_quick_functions): Init
11853 lookup_global_symbol_language with NULL.
11854 * symfile.c (set_initial_language): Remove fixme comment.
11855 * symfile.h (struct quick_symbol_functions): Add
11856 lookup_global_symbol_language.
11857 * symtab.c (find_quick_global_symbol_language): New function.
11858 (find_main_name): Use find_quick_global_symbol_language.
11859
2836752f
SM
118602020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11861
11862 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11863
64dc2d4b
BE
118642020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11865
11866 * buildsym.c (record_line): Fix undefined behavior and preserve
11867 lines at eof.
11868
bbe3dc41
BE
118692020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11870
11871 * buildsym.c (record_line): Fix the resizing condition.
11872
6b4a335b
TT
118732020-04-01 Tom Tromey <tom@tromey.com>
11874
11875 * value.h (value_literal_complex): Add comment.
11876 * valops.c (value_literal_complex): Refer to value.h.
11877
3638a098
TT
118782020-04-01 Tom Tromey <tom@tromey.com>
11879
11880 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11881 (scalar_type): New rule, from typebase.
11882 (typebase): Use scalar_type. Recognize complex types.
11883 (field_name): Handle FLOAT_KEYWORD.
11884 (ident_tokens): Add _Complex and __complex__.
11885
c34e8714
TT
118862020-04-01 Tom Tromey <tom@tromey.com>
11887
11888 PR exp/25299:
11889 * valarith.c (promotion_type, complex_binop): New functions.
11890 (scalar_binop): Handle complex numbers. Use promotion_type.
11891 (value_pos, value_neg, value_complement): Handle complex numbers.
11892
fa649bb7
TT
118932020-04-01 Tom Tromey <tom@tromey.com>
11894
11895 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11896 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11897 (parse_number): Handle complex numbers.
11898
981c08ce
TT
118992020-04-01 Tom Tromey <tom@tromey.com>
11900
11901 * c-valprint.c (c_decorations): Change complex suffix to "i".
11902
4c99290d
TT
119032020-04-01 Tom Tromey <tom@tromey.com>
11904
11905 * valprint.c (generic_value_print_complex): Use accessors.
11906 * value.h (value_real_part, value_imaginary_part): Declare.
11907 * valops.c (value_real_part, value_imaginary_part): New
11908 functions.
11909 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11910
5b930b45
TT
119112020-04-01 Tom Tromey <tom@tromey.com>
11912
11913 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11914 (read_range_type): Update.
11915 * mdebugread.c (basic_type): Update.
11916 * go-lang.c (build_go_types): Use init_complex_type.
11917 * gdbtypes.h (struct main_type) <complex_type>: New member.
11918 (init_complex_type): Update.
11919 (arch_complex_type): Don't declare.
11920 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11921 Make name if none given. Use alloc_type_copy. Look for cached
11922 complex type.
11923 (arch_complex_type): Remove.
11924 (gdbtypes_post_init): Use init_complex_type.
11925 * f-lang.c (build_fortran_types): Use init_complex_type.
11926 * dwarf2/read.c (read_base_type): Update.
11927 * d-lang.c (build_d_types): Use init_complex_type.
11928 * ctfread.c (read_base_type): Update.
11929
53cccef1
TBA
119302020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11931
11932 * infrun.c (stop_all_threads): Update assertion, plus when
11933 stopping threads, take into account that we might be trying
11934 to stop an all-stop target.
11935 (stop_waiting): Call 'stop_all_threads' if there exists a
11936 non-stop target.
11937
a0714d30
TBA
119382020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11939
11940 * target.h (exists_non_stop_target): New function declaration.
11941 * target.c (exists_non_stop_target): New function.
11942
60e22c1e
HD
119432020-04-01 Hannes Domani <ssbssa@yahoo.de>
11944
11945 PR gdb/24789
11946 * eval.c (is_integral_or_integral_reference): New function.
11947 (evaluate_subexp_standard): Allow integer references in
11948 pointer arithmetic.
11949
e139a727
TBA
119502020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11951
11952 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11953 check for no ptid in the stop reply when the target is non-stop.
11954
e0802d59
TT
119552020-04-01 Tom Tromey <tromey@adacore.com>
11956
11957 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11958 "name" parameter to rvalue reference. Initialize m_name_holder.
11959 <lookup_name_info>: New overloads.
11960 <name>: Return gdb::string_view.
11961 <c_str>: New method.
11962 <make_ignore_params>: Update.
11963 <search_name_hash>: Update.
11964 <language_lookup_name>: Return const char *.
11965 <m_name>: Change type.
11966 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11967 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11968 (lookup_name_info::match_any): Update.
11969 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11970 Update.
11971 * minsyms.c (linkage_name_str): Update.
11972 * language.c (default_symbol_name_matcher): Update.
11973 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11974 Update.
11975 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11976 (ada_lookup_name_info::ada_lookup_name_info): Update.
11977 (literal_symbol_name_matcher): Update.
11978
8c072cb6
TT
119792020-04-01 Tom Tromey <tromey@adacore.com>
11980
11981 * psymtab.c (psymtab_search_name): Remove function.
11982 (psym_lookup_symbol): Create search name and lookup name here.
11983 (lookup_partial_symbol): Remove "name" parameter; add
11984 lookup_name.
11985 (psym_expand_symtabs_for_function): Update.
11986
6f29a534
TT
119872020-03-31 Joel Jones <joelkevinjones@gmail.com>
11988
11989 PR tui/25597:
11990 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11991
af62665e
TT
119922020-03-31 Tom Tromey <tromey@adacore.com>
11993
11994 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11995 memcpy.
11996
d1a89da5
NC
119972020-03-30 Nelson Chu <nelson.chu@sifive.com>
11998
11999 * features/riscv/32bit-csr.xml: Regenerated.
12000 * features/riscv/64bit-csr.xml: Regenerated.
12001
d8af9068
TT
120022020-03-30 Tom Tromey <tromey@adacore.com>
12003
12004 * ada-valprint.c (print_variant_part): Update.
12005 * ada-lang.h (ada_which_variant_applies): Update.
12006 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12007 outer_valaddr parameters; replace with "outer" value parameter.
12008 (to_fixed_variant_branch_type): Update.
12009
227c0bf4
PFC
120102020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12011
12012 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12013 <list>. Remove inclusion of observable.h.
12014 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12015 (struct arch_lwp_info): New struct.
12016 (class ppc_linux_dreg_interface): New class.
12017 (struct ppc_linux_process_info): New struct.
12018 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12019 <low_new_clone, low_forget_process, low_prepare_to_resume>
12020 <copy_thread_dreg_state, mark_thread_stale>
12021 <mark_debug_registers_changed, register_hw_breakpoint>
12022 <clear_hw_breakpoint, register_wp, clear_wp>
12023 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12024 <num_memory_accesses, get_trigger_type>
12025 <create_watchpoint_request, hwdebug_point_cmp>
12026 <init_arch_lwp_info, get_arch_lwp_info>
12027 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12028 methods.
12029 <struct ptid_hash>: New inner struct.
12030 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12031 members.
12032 (saved_dabr_value, hwdebug_info, max_slots_number)
12033 (struct hw_break_tuple, struct thread_points, ppc_threads)
12034 (have_ptrace_hwdebug_interface)
12035 (hwdebug_find_thread_points_by_tid)
12036 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12037 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12038 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12039 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12040 use m_dreg_interface.
12041 (hwdebug_point_cmp): Change to...
12042 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12043 reference arguments instead of pointers.
12044 (ppc_linux_nat_target::ranged_break_num_registers): Use
12045 m_dreg_interface.
12046 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12047 m_dreg_interface. Call register_hw_breakpoint.
12048 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12049 m_dreg_interface. Call clear_hw_breakpoint.
12050 (get_trigger_type): Change to...
12051 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12052 comment.
12053 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12054 use m_dreg_interface. Call register_hw_breakpoint.
12055 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12056 use m_dreg_interface. Call clear_hw_breakpoint.
12057 (can_use_watchpoint_cond_accel): Change to...
12058 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12059 method. Update comment, use m_dreg_interface and
12060 m_process_info.
12061 (calculate_dvc): Change to...
12062 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12063 m_dreg_interface.
12064 (num_memory_accesses): Change to...
12065 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12066 (check_condition): Change to...
12067 (ppc_linux_nat_target::check_condition): ...this method.
12068 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12069 comment, use m_dreg_interface.
12070 (create_watchpoint_request): Change to...
12071 (ppc_linux_nat_target::create_watchpoint_request): ...this
12072 method. Use m_dreg_interface.
12073 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12074 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12075 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12076 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12077 (ppc_linux_nat_target::low_forget_process)
12078 (ppc_linux_nat_target::low_new_fork)
12079 (ppc_linux_nat_target::low_new_clone)
12080 (ppc_linux_nat_target::low_delete_thread)
12081 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12082 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12083 only call mark_thread_stale.
12084 (ppc_linux_thread_exit): Remove.
12085 (ppc_linux_nat_target::stopped_data_address): Change to...
12086 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12087 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12088 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12089 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12090 comment. Call low_stopped_data_address.
12091 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12092 m_dreg_interface.
12093 (ppc_linux_nat_target::masked_watch_num_registers): Use
12094 m_dreg_interface.
12095 (ppc_linux_nat_target::copy_thread_dreg_state)
12096 (ppc_linux_nat_target::mark_thread_stale)
12097 (ppc_linux_nat_target::mark_debug_registers_changed)
12098 (ppc_linux_nat_target::register_hw_breakpoint)
12099 (ppc_linux_nat_target::clear_hw_breakpoint)
12100 (ppc_linux_nat_target::register_wp)
12101 (ppc_linux_nat_target::clear_wp)
12102 (ppc_linux_nat_target::init_arch_lwp_info)
12103 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12104 (_initialize_ppc_linux_nat): Remove observer callback.
12105
4db10d8f
PFC
121062020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12107
12108 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12109 (ppc_linux_nat_target::auxv_parse)
12110 (ppc_linux_nat_target::read_description)
12111 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12112 Move up.
12113
1310c1b0
PFC
121142020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12115
12116 * linux-nat.h (low_new_clone): New method.
12117 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12118
69b037c3
SM
121192020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12120
12121 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12122 (dbx_expand_psymtab): ... this.
12123 (start_psymtab): Update.
12124 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12125 (mdebug_expand_psymtab): ... this.
12126 (parse_partial_symbols): Update.
12127 (new_psymtab): Update.
12128 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12129 (xcoff_expand_psymtab): ... this.
12130 (xcoff_start_psymtab): Update.
12131
48993951
SM
121322020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12133
12134 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12135 <expand_dependencies>: ... this.
12136 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12137 (partial_symtab::expand_dependencies): ... this.
12138 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12139 Update.
12140 (dwarf2_psymtab::expand_psymtab): Update.
12141 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12142 * mdebugread.c (psymtab_to_symtab_1): Update.
12143 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12144
3ad83046
SM
121452020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12146
12147 * psympriv.h (discard_psymtab): Remove.
12148 * dbxread.c (dbx_end_psymtab): Update.
12149 * xcoffread.c (xcoff_end_psymtab): Update.
12150
4d1b9ab6
TT
121512020-03-28 Tom Tromey <tom@tromey.com>
12152
12153 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12154 comment.
12155
f1749218
TT
121562020-03-28 Tom Tromey <tom@tromey.com>
12157
12158 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12159
ebea7626
HD
121602020-03-27 Hannes Domani <ssbssa@yahoo.de>
12161
12162 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12163
a879b4d5
JB
121642020-03-26 John Baldwin <jhb@FreeBSD.org>
12165
12166 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12167
0826b30a
TT
121682020-03-26 Tom Tromey <tom@tromey.com>
12169
12170 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12171 (mark_common_block_symbol_computed, read_tag_string_type)
12172 (attr_to_dynamic_prop, read_subrange_type): Update.
12173 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12174 to be methods on struct attribute.
12175 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12176 (read_call_site_scope, partial_die_info::read)
12177 (partial_die_info::read, lookup_die_type, follow_die_ref):
12178 Update.
12179 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12180 from dwarf2_get_ref_die_offset.
12181 (attribute::constant_value): New method, from
12182 dwarf2_get_attr_constant_value.
12183 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12184 Declare method.
12185 <constant_value>: New method.
12186
2b2558bf
TT
121872020-03-26 Tom Tromey <tom@tromey.com>
12188
12189 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12190 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12191 (dwarf_type_encoding_name): Move to stringify.c.
12192 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12193 * dwarf2/stringify.c: New file.
12194 * dwarf2/stringify.h: New file.
12195
eeb64781
TT
121962020-03-26 Tom Tromey <tom@tromey.com>
12197
12198 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12199 Rewrite.
12200
a39fdb41
TT
122012020-03-26 Tom Tromey <tom@tromey.com>
12202
12203 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12204 methods.
12205 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12206 (lookup_ranges_base): Likewise.
12207 (read_cutu_die_from_dwo, read_full_die_1): Update.
12208
436c571c
TT
122092020-03-26 Tom Tromey <tom@tromey.com>
12210
12211 * dwarf2/read.c (read_import_statement, read_file_scope)
12212 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12213 (read_lexical_block_scope, read_call_site_scope)
12214 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12215 (handle_struct_member_die, process_structure_scope)
12216 (update_enumeration_type_from_children)
12217 (process_enumeration_scope, read_array_type, read_common_block)
12218 (read_namespace, read_module, read_subroutine_type): Update.
12219 (sibling_die): Remove.
12220
052c8bb8
TT
122212020-03-26 Tom Tromey <tom@tromey.com>
12222
12223 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12224 (build_type_psymtabs_reader, read_structure_type)
12225 (read_enumeration_type, read_full_die_1): Update.
12226 (dwarf2_attr_no_follow): Move to die.h.
12227 * dwarf2/die.h (struct die_info) <attr>: New method.
12228
2b24b6e4
TT
122292020-03-26 Tom Tromey <tom@tromey.com>
12230
12231 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12232 <base_address>: Now an optional.
12233 (dwarf2_find_base_address, dwarf2_rnglists_process)
12234 (dwarf2_ranges_process, fill_in_loclist_baton)
12235 (dwarf2_symbol_mark_computed): Update.
12236
c2d50fd0
TT
122372020-03-26 Tom Tromey <tom@tromey.com>
12238
12239 * dwarf2/read.c (struct die_info): Move to die.h.
12240 * dwarf2/die.h: New file.
12241
0df7ad3a
TT
122422020-03-26 Tom Tromey <tom@tromey.com>
12243
12244 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12245 * dwarf2/read.c
12246 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12247 Move to line-header.c.
12248 (read_checked_initial_length_and_offset, read_formatted_entries):
12249 Likewise.
12250 (dwarf_decode_line_header): Split into two.
12251 * dwarf2/line-header.c
12252 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12253 Move from read.c.
12254 (read_checked_initial_length_and_offset, read_formatted_entries):
12255 Likewise.
12256 (dwarf_decode_line_header): New function, split from read.c.
12257
86c0bb4c
TT
122582020-03-26 Tom Tromey <tom@tromey.com>
12259
12260 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12261 Declare method.
12262 * dwarf2/read.c (read_attribute_value): Update.
12263 (dwarf2_per_objfile::read_line_string): Rename from
12264 read_indirect_line_string.
12265 (read_formatted_entries): Update.
12266
2ef46c2f
TT
122672020-03-26 Tom Tromey <tom@tromey.com>
12268
12269 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12270 variable.
12271
4f9c1eda
TT
122722020-03-26 Tom Tromey <tom@tromey.com>
12273
12274 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12275 const.
12276 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12277 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12278 parameter const.
12279
5a0e026f
TT
122802020-03-26 Tom Tromey <tom@tromey.com>
12281
12282 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12283 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12284 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12285 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12286
8844c11b
TT
122872020-03-26 Tom Tromey <tom@tromey.com>
12288
12289 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12290 file_names_size, file_full_name, file_file_name>: Use const.
12291 <file_name_at, file_names>: Add const overload.
12292 * dwarf2/line-header.c (line_header::file_file_name)
12293 (line_header::file_full_name): Update.
12294
c90ec28a
TT
122952020-03-26 Tom Tromey <tom@tromey.com>
12296
12297 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12298 (macro_start_file, consume_improper_spaces)
12299 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12300 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12301 (dwarf_decode_macros): Move to macro.c.
12302 * dwarf2/macro.c: New file.
12303 * dwarf2/macro.h: New file.
12304 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12305
4f44ae6c
TT
123062020-03-26 Tom Tromey <tom@tromey.com>
12307
12308 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12309 method.
12310 * dwarf2/section.c: New method. From
12311 read_indirect_string_at_offset_from.
12312 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12313 (read_indirect_string_at_offset_from): Move to section.c.
12314 (read_indirect_string_at_offset): Rewrite.
12315 (read_indirect_line_string_at_offset): Remove.
12316 (read_indirect_string, read_indirect_line_string)
12317 (dwarf_decode_macro_bytes): Update.
12318
a0194fa8
TT
123192020-03-26 Tom Tromey <tom@tromey.com>
12320
12321 * dwarf2/section.h (struct dwarf2_section_info)
12322 <overload_complaint>: Declare.
12323 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12324 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12325 Rename from dwarf2_section_buffer_overflow_complaint.
12326 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12327 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12328
3d27bbdb
TT
123292020-03-26 Tom Tromey <tom@tromey.com>
12330
12331 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12332 Declare.
12333 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12334 Move from read.c.
12335 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12336 to section.c.
12337
9eac9650
TT
123382020-03-26 Tom Tromey <tom@tromey.com>
12339
12340 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12341
bf80d710
TT
123422020-03-26 Tom Tromey <tom@tromey.com>
12343
12344 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12345 "builder".
12346 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12347 parameter.
12348 (dwarf_decode_macros): Update.
12349
0314b390
TT
123502020-03-26 Tom Tromey <tom@tromey.com>
12351
12352 * dwarf2/read.c (read_attribute_value): Update.
12353 (read_indirect_string_from_dwz): Move to dwz.c; change into
12354 method.
12355 (dwarf_decode_macro_bytes): Update.
12356 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12357 * dwarf2/dwz.c: New file.
12358 * Makefile.in (COMMON_SFILES): Add dwz.c.
12359
9fda78b6
TT
123602020-03-26 Tom Tromey <tom@tromey.com>
12361
12362 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12363 * dwarf2/read.c: Add include.
12364 * dwarf2/index-write.c: Add include.
12365 * dwarf2/index-cache.c: Add include.
12366 * dwarf2/dwz.h: New file.
12367
33aa3c10
TT
123682020-03-25 Tom Tromey <tom@tromey.com>
12369
12370 * compile/compile-object-load.c (get_out_value_type): Mention
12371 correct symbol name in error message.
12372
d503b685
HD
123732020-03-25 Hannes Domani <ssbssa@yahoo.de>
12374
12375 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12376
7b1eff95
TV
123772020-03-25 Tom de Vries <tdevries@suse.de>
12378
12379 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12380 * symmisc.c (dump_symtab_1): Print user and includes fields.
12381 (maintenance_info_symtabs): Same.
12382
dd895392
AB
123832020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12384
12385 PR gdb/25534
12386 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12387 (riscv_regcache_cooked_write): New function.
12388 (riscv_push_dummy_call): Use new function.
12389 (riscv_return_value): Likewise.
12390
5ab2fbf1
SM
123912020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12392
12393 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12394 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12395 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12396 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12397 * infrun.c (follow_fork): Likewise.
12398 (follow_fork_inferior): Likewise.
12399 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12400 * linux-nat.h (class linux_nat_target): Likewise.
12401 * remote.c (class remote_target) <follow_fork>: Likewise.
12402 (remote_target::follow_fork): Likewise.
12403 * target-delegates.c: Re-generate.
12404 * target.c (default_follow_fork): Likewise.
12405 (target_follow_fork): Likewise.
12406 * target.h (struct target_ops) <follow_fork>: Likewise.
12407 (target_follow_fork): Likewise.
12408
a64fafb5
TV
124092020-03-24 Tom de Vries <tdevries@suse.de>
12410
12411 * psymtab.c (maintenance_info_psymtabs): Print user field.
12412
fe26d3a3
TT
124132020-03-20 Tom Tromey <tromey@adacore.com>
12414
12415 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12416 const.
12417 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12418 const.
12419
c884cc46
SM
124202020-03-20 Simon Marchi <simon.marchi@efficios.com>
12421
12422 * ptrace.m4: Don't check for ptrace declaration.
12423 * config.in: Re-generate.
12424 * configure: Re-generate.
12425 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12426 not defined.
12427
1ff700c2
KR
124282020-03-20 Kamil Rytarowski <n54@gmx.com>
12429
12430 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12431 `PTRACE_TYPE_RET'.
12432 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12433 * sparc-nat.c (gdb_ptrace): Likewise.
12434 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12435
f7d4f0b1
TT
124362020-03-20 Tom Tromey <tromey@adacore.com>
12437
12438 * c-exp.y (lex_one_token): Fix assert.
12439
f67210ff
TT
124402020-03-20 Tom Tromey <tromey@adacore.com>
12441
12442 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12443 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12444 strncpy call.
12445
1773be9e
TT
124462020-03-20 Tom Tromey <tromey@adacore.com>
12447
12448 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12449
70304be9
TT
124502020-03-20 Tom Tromey <tromey@adacore.com>
12451
12452 * ada-valprint.c (print_variant_part): Remove parameters; switch
12453 to value-based API.
12454 (print_field_values): Likewise.
12455 (ada_val_print_struct_union): Likewise.
12456 (ada_value_print_1): Update.
12457
9faa006d
KR
124582020-03-20 Kamil Rytarowski <n54@gmx.com>
12459
12460 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12461 nbsd_nat_target instead of inf_ptrace_target.
12462 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12463 nbsd_nat_target.
12464
4a90f062
KR
124652020-03-20 Kamil Rytarowski <n54@gmx.com>
12466
12467 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12468 it to the ptrace call.
12469 * (store_registers): Likewise.
12470
124712020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12472
12473 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12474 it to the ptrace call.
12475 * (store_registers): Likewise.
12476
2d07da27
LM
124772020-03-19 Luis Machado <luis.machado@linaro.org>
12478
12479 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12480 valid, fetch vg value from ptrace.
12481
f09db380
KR
124822020-03-19 Kamil Rytarowski <n54@gmx.com>
12483 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12484 * inf-ptrace.c: Likewise.
12485 * (gdb_ptrace): Add.
12486 * (inf_ptrace_target::resume): Update.
12487 * (inf_ptrace_target::xfer_partial): Likewise.
12488 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12489 * (inf_ptrace_peek_poke): Update.
12490
fcc7376e
KR
124912020-03-19 Kamil Rytarowski <n54@gmx.com>
12492
12493 * x86-bsd-nat.c (gdb_ptrace): New.
12494 * (x86bsd_dr_set): Add new argument `ptid'.
12495 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12496 x86bsd_dr_set_addr): Update.
12497
cada5fc9
AB
124982020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12499
12500 * remote.c (remote_target::process_stop_reply): Handle events for
12501 all threads differently.
12502
19a2740f
AB
125032020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12504
12505 * completer.c (completion_tracker::remove_completion): Define new
12506 function.
12507 * completer.h (completion_tracker::remove_completion): Declare new
12508 function.
12509 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12510 when adding a C++ function symbol.
12511
724fd9ba
AB
125122020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12513
12514 * completer.c (completion_tracker::completion_hash_entry): Define
12515 new class.
12516 (advance_to_filename_complete_word_point): Call
12517 recompute_lowest_common_denominator.
12518 (completion_tracker::completion_tracker): Call discard_completions
12519 to setup the hash table.
12520 (completion_tracker::discard_completions): Allow for being called
12521 from the constructor, pass new equal function, and element deleter
12522 when constructing the hash table. Initialise new class member
12523 variables.
12524 (completion_tracker::maybe_add_completion): Remove use of
12525 m_entries_vec, and store more information into m_entries_hash.
12526 (completion_tracker::recompute_lcd_visitor): New function, most
12527 content taken from...
12528 (completion_tracker::recompute_lowest_common_denominator):
12529 ...here, this now just visits each item in the hash calling the
12530 above visitor.
12531 (completion_tracker::build_completion_result): Remove use of
12532 m_entries_vec, call recompute_lowest_common_denominator.
12533 * completer.h (completion_tracker::have_completions): Remove use
12534 of m_entries_vec.
12535 (completion_tracker::completion_hash_entry): Declare new class.
12536 (completion_tracker::recompute_lowest_common_denominator): Change
12537 function signature.
12538 (completion_tracker::recompute_lcd_visitor): Declare new function.
12539 (completion_tracker::m_entries_vec): Delete.
12540 (completion_tracker::m_entries_hash): Initialize to NULL.
12541 (completion_tracker::m_lowest_common_denominator_valid): New
12542 member variable.
12543 (completion_tracker::m_lowest_common_denominator_max_length): New
12544 member variable.
12545
5a82b8a1
KR
125462020-03-17 Kamil Rytarowski <n54@gmx.com>
12547
12548 * regformats/regdef.h: Put reg in gdb namespace.
12549
fb516a69
KR
125502020-03-17 Kamil Rytarowski <n54@gmx.com>
12551
12552 * i386-bsd-nat.c (gdb_ptrace): New.
12553 * (i386bsd_fetch_inferior_registers,
12554 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12555 * (i386bsd_fetch_inferior_registers,
12556 i386bsd_store_inferior_registers) Use gdb_ptrace.
12557
1c0aa1fb
KR
125582020-03-17 Kamil Rytarowski <n54@gmx.com>
12559
12560 * amd64-bsd-nat.c (gdb_ptrace): New.
12561 * (amd64bsd_fetch_inferior_registers,
12562 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12563 * (amd64bsd_fetch_inferior_registers,
12564 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12565
5ccd2fb7
KR
125662020-03-17 Kamil Rytarowski <n54@gmx.com>
12567
12568 * user-regs.c (user_reg::read): Rename to...
12569 (user_reg::xread): ...this.
12570 * (append_user_reg): Rename argument `read' to `xread'.
12571 * (user_reg_add_builtin): Likewise.
12572 * (user_reg_add): Likewise.
12573 * (value_of_user_reg): Likewise.
12574
2108a63a
KR
125752020-03-17 Kamil Rytarowski <n54@gmx.com>
12576
12577 * sparc-nat.c (gdb_ptrace): New.
12578 * sparc-nat.c (sparc_fetch_inferior_registers)
12579 (sparc_store_inferior_registers) Remove obsolete comment.
12580 * sparc-nat.c (sparc_fetch_inferior_registers)
12581 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12582 * sparc-nat.c (sparc_fetch_inferior_registers)
12583 (sparc_store_inferior_registers) Use gdb_ptrace.
12584
a225c9a8
KR
125852020-03-17 Kamil Rytarowski <n54@gmx.com>
12586
12587 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12588 it to the ptrace call.
12589 * sh-nbsd-nat.c (store_registers): Likewise.
12590
98097623
KR
125912020-03-17 Kamil Rytarowski <n54@gmx.com>
12592
12593 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12594 nbsd_nat_target instead of inf_ptrace_target.
12595 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12596 nbsd_nat_target.
12597
9e38d619
KR
125982020-03-17 Kamil Rytarowski <n54@gmx.com>
12599
12600 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12601
a2ecbe9f
KR
126022020-03-17 Kamil Rytarowski <n54@gmx.com>
12603
12604 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12605 <sys/sysctl.h>.
12606 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12607
58990295
TV
126082020-03-17 Tom de Vries <tdevries@suse.de>
12609
12610 PR gdb/23710
12611 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12612 fields.
12613 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12614 fields.
12615 (process_imported_unit_die): Skip import of c++ CUs.
12616
771dd3a8
TT
126172020-03-16 Tom Tromey <tom@tromey.com>
12618
12619 * p-valprint.c (pascal_object_print_value): Initialize
12620 base_value.
12621
817a7585
AK
126222020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12623 Shahab Vahedi <shahab@synopsys.com>
12624
12625 * Makefile.in: Add arch/arc.o
12626 * configure.tgt: Likewise.
12627 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12628 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12629 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12630 * arc-tdep.h (arc_read_description): Add proto type.
12631 * arch/arc.c: New file.
12632 * arch/arc.h: Likewise.
12633 * features/Makefile: Replace old target descriptions with new.
12634 * features/arc-arcompact.c: Remove.
12635 * features/arc-arcompact.xml: Likewise.
12636 * features/arc-v2.c: Likewise
12637 * features/arc-v2.xml: Likewise
12638 * features/arc/aux-arcompact.xml: New file.
12639 * features/arc/aux-v2.xml: Likewise.
12640 * features/arc/core-arcompact.xml: Likewise.
12641 * features/arc/core-v2.xml: Likewise.
12642 * features/arc/aux-arcompact.c: Generate.
12643 * features/arc/aux-v2.c: Likewise.
12644 * features/arc/core-arcompact.c: Likewise.
12645 * features/arc/core-v2.c: Likewise.
12646 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12647
67430cd0
TT
126482020-03-16 Tom Tromey <tromey@adacore.com>
12649
12650 PR gdb/25663:
12651 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12652 putting value into bcache.
12653
30efb6c7
SM
126542020-03-16 Simon Marchi <simon.marchi@efficios.com>
12655
12656 PR gdb/21500
12657 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12658 to...
12659 (amd64_windows_init_abi_common): ... this. Don't set size of
12660 long type.
12661 (amd64_windows_init_abi): New function.
12662 (amd64_cygwin_init_abi): New function.
12663 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12664 the Cygwin OS ABI.
12665 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12666 comment.
12667
8db52437
SM
126682020-03-16 Simon Marchi <simon.marchi@efficios.com>
12669
12670 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12671 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12672 (pe_import_directory_entry): New struct type.
12673 (is_linked_with_cygwin_dll): New function.
12674 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12675 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12676 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12677
5982a56a
SM
126782020-03-16 Simon Marchi <simon.marchi@efficios.com>
12679
12680 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12681 i386_cygwin_core_osabi_sniffer.
12682
7a1998df
SM
126832020-03-16 Simon Marchi <simon.marchi@efficios.com>
12684
12685 * i386-cygwin-tdep.c: Rename to...
12686 * i386-windows-tdep.c: ... this.
12687 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12688 i386-windows-tdep.c.
12689 * configure.tgt: Likewise.
12690
053205cc
SM
126912020-03-16 Simon Marchi <simon.marchi@efficios.com>
12692
12693 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12694 * osabi.c (gdb_osabi_names): Add "Windows".
12695 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12696 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12697 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12698 i386_cygwin_osabi_sniffer.
12699 (_initialize_i386_cygwin_tdep): Register OS ABI
12700 GDB_OSABI_WINDOWS for i386.
12701 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12702 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12703 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12704 for x86-64.
12705 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12706 when the target matches '*-*-mingw*'.
12707
fe4b2ee6
SM
127082020-03-16 Simon Marchi <simon.marchi@efficios.com>
12709
12710 * defs.h (enum gdb_osabi): Move to...
12711 * osabi.h (enum gdb_osabi): ... here.
12712 * gdbarch.sh: Include osabi.h in gdbarch.h.
12713 * gdbarch.h: Re-generate.
12714
cb9b645d
SM
127152020-03-16 Simon Marchi <simon.marchi@efficios.com>
12716
12717 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12718 function.
12719 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12720
3293bbaf
TT
127212020-03-14 Tom Tromey <tom@tromey.com>
12722
12723 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12724 for C++.
12725 (c_type_print_modifier): Likewise. Add "language" parameter.
12726 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12727 (c_type_print_base_1): Update.
12728 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12729 constants.
12730 * type-stack.c (type_stack::insert): Handle tp_atomic and
12731 tp_restrict.
12732 (type_stack::follow_type_instance_flags): Likewise.
12733 (type_stack::follow_types): Likewise. Merge type-following code.
12734 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12735 (space_identifier, cv_with_space_id)
12736 (const_or_volatile_or_space_identifier_noopt)
12737 (const_or_volatile_or_space_identifier): Remove.
12738 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12739 rules.
12740 (ptr_operator, typebase): Update.
12741 (enum token_flag) <FLAG_C>: New constant.
12742 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12743 "_Atomic".
12744 (lex_one_token): Handle FLAG_C.
12745
154151a6
KR
127462020-03-14 Kamil Rytarowski <n54@gmx.com>
12747
12748 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12749 it to the ptrace call.
12750 * m68k-bsd-nat.c (store_registers): Likewise.
12751
bc107784
KR
127522020-03-14 Kamil Rytarowski <n54@gmx.com>
12753
12754 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12755 gdb_byte *.
12756 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12757 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12758 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12759
01a80117
KR
127602020-03-14 Kamil Rytarowski <n54@gmx.com>
12761
12762 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12763 nbsd_nat_target instead of inf_ptrace_target.
12764 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12765 nbsd_nat_target.
12766
f90280ca
KR
127672020-03-14 Kamil Rytarowski <n54@gmx.com>
12768
12769 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12770 register_t.
12771
6def66f1
KR
127722020-03-14 Kamil Rytarowski <n54@gmx.com>
12773
12774 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12775 it to the ptrace call.
12776 * alpha-bsd-nat.c (store_registers): Likewise.
12777
66eaca97
KR
127782020-03-14 Kamil Rytarowski <n54@gmx.com>
12779
12780 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12781 includes.
12782 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12783 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12784 fill_fpregset): Likewise.
12785
4fed520b
KR
127862020-03-14 Kamil Rytarowski <n54@gmx.com>
12787
12788 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12789 nbsd_nat_target instead of inf_ptrace_target.
12790 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12791 nbsd_nat_target.
12792
2190cf06
KR
127932020-03-14 Kamil Rytarowski <n54@gmx.com>
12794
12795 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12796 register_t.
12797
75c56d3d
KR
127982020-03-14 Kamil Rytarowski <n54@gmx.com>
12799
12800 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12801 it to the ptrace call.
12802 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12803 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12804 * arm-nbsd-nat.c (store_register): Likewise.
12805 * arm-nbsd-nat.c (store_regs): Likewise.
12806 * arm-nbsd-nat.c (store_fp_register): Likewise.
12807 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12808
6018d381
KR
128092020-03-14 Kamil Rytarowski <n54@gmx.com>
12810
12811 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12812 nbsd_nat_target instead of inf_ptrace_target.
12813 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12814 nbsd_nat_target.
12815
013f99f0
KR
128162020-03-14 Kamil Rytarowski <n54@gmx.com>
12817
12818 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12819 it to the ptrace call.
12820 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12821
12753073
KR
128222020-03-14 Kamil Rytarowski <n54@gmx.com>
12823
6227b330
KR
12824 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12825 it to the ptrace call.
12826 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12827
128282020-03-14 Kamil Rytarowski <n54@gmx.com>
12829
12830 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12831 gdb_byte *.
12753073
KR
12832 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12833
d5be5fa4
KR
128342020-03-14 Kamil Rytarowski <n54@gmx.com>
12835
12836 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12837 instead of inf_ptrace_target.
12838 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12839 nbsd_nat_target.
12840
8110f842
KR
128412020-03-14 Kamil Rytarowski <n54@gmx.com>
12842
12843 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12844 register_t.
12845
52feded7
KR
128462020-03-14 Kamil Rytarowski <n54@gmx.com>
12847
12848 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12849 register_t.
12850
25567eee
KR
128512020-03-14 Kamil Rytarowski <n54@gmx.com>
12852
12853 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12854 register_t.
12855
426a9c18
TT
128562020-03-13 Tom Tromey <tom@tromey.com>
12857
12858 * value.h (val_print): Don't declare.
12859 * valprint.h (val_print_array_elements)
12860 (val_print_scalar_formatted, generic_val_print): Don't declare.
12861 * valprint.c (generic_val_print_array): Take a struct value.
12862 (generic_val_print_ptr, generic_val_print_memberptr)
12863 (generic_val_print_bool, generic_val_print_int)
12864 (generic_val_print_char, generic_val_print_complex)
12865 (generic_val_print): Remove.
12866 (generic_value_print): Update.
12867 (do_val_print): Remove unused parameters. Don't call
12868 la_val_print.
12869 (val_print): Remove.
12870 (common_val_print): Update. Don't call value_check_printable.
12871 (val_print_scalar_formatted, val_print_array_elements): Remove.
12872 * rust-lang.c (rust_val_print): Remove.
12873 (rust_language_defn): Update.
12874 * p-valprint.c (pascal_val_print): Remove.
12875 (pascal_value_print_inner): Update.
12876 (pascal_object_print_val_fields, pascal_object_print_val):
12877 Remove.
12878 (pascal_object_print_static_field): Update.
12879 * p-lang.h (pascal_val_print): Don't declare.
12880 * p-lang.c (pascal_language_defn): Update.
12881 * opencl-lang.c (opencl_language_defn): Update.
12882 * objc-lang.c (objc_language_defn): Update.
12883 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12884 * m2-lang.h (m2_val_print): Don't declare.
12885 * m2-lang.c (m2_language_defn): Update.
12886 * language.h (struct language_defn) <la_val_print>: Remove.
12887 * language.c (unk_lang_value_print_inner): Rename. Change
12888 argument types.
12889 (unknown_language_defn, auto_language_defn): Update.
12890 * go-valprint.c (go_val_print): Remove.
12891 * go-lang.h (go_val_print): Don't declare.
12892 * go-lang.c (go_language_defn): Update.
12893 * f-valprint.c (f_val_print): Remove.
12894 * f-lang.h (f_value_print): Don't declare.
12895 * f-lang.c (f_language_defn): Update.
12896 * d-valprint.c (d_val_print): Remove.
12897 * d-lang.h (d_value_print): Don't declare.
12898 * d-lang.c (d_language_defn): Update.
12899 * cp-valprint.c (cp_print_value_fields)
12900 (cp_print_value_fields_rtti, cp_print_value): Remove.
12901 (cp_print_static_field): Update.
12902 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12903 (c_val_print_struct, c_val_print_union, c_val_print_int)
12904 (c_val_print_memberptr, c_val_print): Remove.
12905 * c-lang.h (c_val_print_array, cp_print_value_fields)
12906 (cp_print_value_fields_rtti): Don't declare.
12907 * c-lang.c (c_language_defn, cplus_language_defn)
12908 (asm_language_defn, minimal_language_defn): Update.
12909 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12910 (ada_val_print_enum): Take a struct value.
12911 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12912 (ada_val_print): Remove.
12913 (ada_value_print_1): Update.
12914 (printable_val_type): Remove.
12915 * ada-lang.h (ada_val_print): Don't declare.
12916 * ada-lang.c (ada_language_defn): Update.
12917
42331a1e
TT
129182020-03-13 Tom Tromey <tom@tromey.com>
12919
12920 * valprint.c (do_val_print): Update.
12921 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12922 a struct value.
12923 (value_to_value_object_no_release): Declare.
12924 * python/py-value.c (value_to_value_object_no_release): New
12925 function.
12926 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12927 struct value.
12928 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12929 function.
12930 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12931 a struct value.
12932 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12933 Declare.
12934 (gdbscm_apply_val_pretty_printer): Take a struct value.
12935 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12936 value.
12937 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12938 value.
12939 * extension-priv.h (struct extension_language_ops)
12940 <apply_val_pretty_printer>: Take a struct value.
12941 * cp-valprint.c (cp_print_value): Create a struct value.
12942 (cp_print_value): Update.
12943
3a916a97
TT
129442020-03-13 Tom Tromey <tom@tromey.com>
12945
12946 * ada-valprint.c (print_field_values): Call common_val_print.
12947
b59eac37
TT
129482020-03-13 Tom Tromey <tom@tromey.com>
12949
12950 * ada-valprint.c (val_print_packed_array_elements): Remove
12951 bitoffset and val parameters. Call common_val_print.
12952 (ada_val_print_string): Remove offset, address, and original_value
12953 parameters.
12954 (ada_val_print_array): Update.
12955 (ada_value_print_array): New function.
12956 (ada_value_print_1): Call it.
12957
03371129
TT
129582020-03-13 Tom Tromey <tom@tromey.com>
12959
12960 * ada-valprint.c (ada_value_print): Use common_val_print.
12961
2e088f8b
TT
129622020-03-13 Tom Tromey <tom@tromey.com>
12963
12964 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12965
39ef85a8
TT
129662020-03-13 Tom Tromey <tom@tromey.com>
12967
12968 * ada-valprint.c (ada_value_print_num): New function.
12969 (ada_value_print_1): Use it.
12970
b9fa6e07
TT
129712020-03-13 Tom Tromey <tom@tromey.com>
12972
12973 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12974
416595d6
TT
129752020-03-13 Tom Tromey <tom@tromey.com>
12976
12977 * ada-valprint.c (ada_value_print_ptr): New function.
12978 (ada_value_print_1): Use it.
12979
5b5e15ec
TT
129802020-03-13 Tom Tromey <tom@tromey.com>
12981
12982 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12983 call common_val_print.
12984 (ada_val_print_1): Update.
12985 (ada_value_print_1): New function.
12986 (ada_value_print_inner): Rewrite.
12987
fbf54e75
TT
129882020-03-13 Tom Tromey <tom@tromey.com>
12989
12990 * cp-valprint.c (cp_print_value_fields): Update.
12991 (cp_print_value): New function.
12992
64b653ca
TT
129932020-03-13 Tom Tromey <tom@tromey.com>
12994
12995 * m2-valprint.c (m2_value_print_inner): Use
12996 cp_print_value_fields.
12997 * cp-valprint.c (cp_print_value_fields): New function.
12998 * c-valprint.c (c_value_print_struct): New function.
12999 (c_value_print_inner): Use c_value_print_struct.
13000 * c-lang.h (cp_print_value_fields): Declare.
13001
6999f067
TT
130022020-03-13 Tom Tromey <tom@tromey.com>
13003
13004 * c-valprint.c (c_value_print_array): New function.
13005 (c_value_print_inner): Use it.
13006
ce80b8bd
TT
130072020-03-13 Tom Tromey <tom@tromey.com>
13008
13009 * c-valprint.c (c_value_print_memberptr): New function.
13010 (c_value_print_inner): Use it.
13011
2faac269
TT
130122020-03-13 Tom Tromey <tom@tromey.com>
13013
13014 * c-valprint.c (c_value_print_int): New function.
13015 (c_value_print_inner): Use it.
13016
da3e2c29
TT
130172020-03-13 Tom Tromey <tom@tromey.com>
13018
13019 * c-valprint.c (c_value_print_ptr): New function.
13020 (c_value_print_inner): Use it.
13021
50836231
TT
130222020-03-13 Tom Tromey <tom@tromey.com>
13023
13024 * c-valprint.c (c_value_print_inner): Rewrite.
13025
4f412b6e
TT
130262020-03-13 Tom Tromey <tom@tromey.com>
13027
13028 * valprint.c (generic_value_print_complex): New function.
13029 (generic_value_print): Use it.
13030
f5354008
TT
130312020-03-13 Tom Tromey <tom@tromey.com>
13032
13033 * valprint.c (generic_val_print_float): Don't call
13034 val_print_scalar_formatted.
13035 (generic_val_print, generic_value_print): Update.
13036
3eec3b05
TT
130372020-03-13 Tom Tromey <tom@tromey.com>
13038
13039 * valprint.c (generic_value_print_char): New function
13040 (generic_value_print): Use it.
13041
fdddfccb
TT
130422020-03-13 Tom Tromey <tom@tromey.com>
13043
13044 * valprint.c (generic_value_print_int): New function.
13045 (generic_value_print): Use it.
13046
6dde7521
TT
130472020-03-13 Tom Tromey <tom@tromey.com>
13048
13049 * valprint.c (generic_value_print_bool): New function.
13050 (generic_value_print): Use it.
13051
4112d2e6
TT
130522020-03-13 Tom Tromey <tom@tromey.com>
13053
13054 * valprint.c (generic_val_print_func): Simplify.
13055 (generic_val_print, generic_value_print): Update.
13056
65786af6
TT
130572020-03-13 Tom Tromey <tom@tromey.com>
13058
13059 * valprint.c (generic_val_print_flags): Remove.
13060 (generic_val_print, generic_value_print): Update.
13061 (val_print_type_code_flags): Add original_value parameter.
13062
40f3ce18
TT
130632020-03-13 Tom Tromey <tom@tromey.com>
13064
13065 * valprint.c (generic_val_print): Update.
13066 (generic_value_print): Update.
13067 * valprint.c (generic_val_print_enum): Don't call
13068 val_print_scalar_formatted.
13069
2a5b130b
TT
130702020-03-13 Tom Tromey <tom@tromey.com>
13071
13072 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13073 * valprint.c (generic_value_print_ptr): New function.
13074
abc66ce9
TT
130752020-03-13 Tom Tromey <tom@tromey.com>
13076
13077 * valprint.c (generic_value_print): Rewrite.
13078
07a32858
TT
130792020-03-13 Tom Tromey <tom@tromey.com>
13080
13081 * p-valprint.c (pascal_object_print_value_fields)
13082 (pascal_object_print_value): New functions.
13083
64d64d3a
TT
130842020-03-13 Tom Tromey <tom@tromey.com>
13085
13086 * p-valprint.c (pascal_value_print_inner): Rewrite.
13087
6a95a1f5
TT
130882020-03-13 Tom Tromey <tom@tromey.com>
13089
13090 * f-valprint.c (f_value_print_innner): Rewrite.
13091
59fcdac6
TT
130922020-03-13 Tom Tromey <tom@tromey.com>
13093
13094 * m2-valprint.c (m2_print_unbounded_array): New overload.
13095 (m2_print_unbounded_array): Update.
13096 (m2_print_array_contents): Take a struct value.
13097 (m2_value_print_inner): Rewrite.
13098
d133c3e1
TT
130992020-03-13 Tom Tromey <tom@tromey.com>
13100
13101 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13102 (d_value_print_inner): New function.
13103 * d-lang.h (d_value_print_inner): Declare.
13104 * d-lang.c (d_language_defn): Use d_value_print_inner.
13105
23b0f06b
TT
131062020-03-13 Tom Tromey <tom@tromey.com>
13107
13108 * go-valprint.c (go_value_print_inner): New function.
13109 * go-lang.h (go_value_print_inner): Declare.
13110 * go-lang.c (go_language_defn): Use go_value_print_inner.
13111
5f56f7cb
TT
131122020-03-13 Tom Tromey <tom@tromey.com>
13113
13114 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13115 API.
13116 (rust_val_print): Rewrite.
13117 (rust_value_print_inner): New function, from rust_val_print.
13118 (rust_language_defn): Use rust_value_print_inner.
13119
26792ee0
TT
131202020-03-13 Tom Tromey <tom@tromey.com>
13121
13122 * ada-valprint.c (ada_value_print_inner): New function.
13123 * ada-lang.h (ada_value_print_inner): Declare.
13124 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13125
24051bbe
TT
131262020-03-13 Tom Tromey <tom@tromey.com>
13127
13128 * f-valprint.c (f_value_print_innner): New function.
13129 * f-lang.h (f_value_print_innner): Declare.
13130 * f-lang.c (f_language_defn): Use f_value_print_innner.
13131
c0941be6
TT
131322020-03-13 Tom Tromey <tom@tromey.com>
13133
13134 * p-valprint.c (pascal_value_print_inner): New function.
13135 * p-lang.h (pascal_value_print_inner): Declare.
13136 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13137
62c4663d
TT
131382020-03-13 Tom Tromey <tom@tromey.com>
13139
13140 * m2-valprint.c (m2_value_print_inner): New function.
13141 * m2-lang.h (m2_value_print_inner): Declare.
13142 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13143
62182190
TT
131442020-03-13 Tom Tromey <tom@tromey.com>
13145
13146 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13147 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13148 * c-valprint.c (c_value_print_inner): New function.
13149 * c-lang.h (c_value_print_inner): Declare.
13150 * c-lang.c (c_language_defn, cplus_language_defn)
13151 (asm_language_defn, minimal_language_defn): Use
13152 c_value_print_inner.
13153
1e592a8a
TT
131542020-03-13 Tom Tromey <tom@tromey.com>
13155
13156 * p-valprint.c (pascal_object_print_value_fields): Now static.
13157 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13158
7fe471e9
TT
131592020-03-13 Tom Tromey <tom@tromey.com>
13160
13161 * c-valprint.c (c_val_print_array): Simplify.
13162
d121c6ce
TT
131632020-03-13 Tom Tromey <tom@tromey.com>
13164
13165 * valprint.c (value_print_array_elements): New function.
13166 * valprint.h (value_print_array_elements): Declare.
13167
4dba70ee
TT
131682020-03-13 Tom Tromey <tom@tromey.com>
13169
13170 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13171 * mips-tdep.c (mips_print_register): Use
13172 value_print_scalar_formatted.
13173
4f9ae810
TT
131742020-03-13 Tom Tromey <tom@tromey.com>
13175
13176 * valprint.h (value_print_scalar_formatted): Declare.
13177 * valprint.c (value_print_scalar_formatted): New function.
13178
156bfec9
TT
131792020-03-13 Tom Tromey <tom@tromey.com>
13180
13181 * valprint.h (generic_value_print): Declare.
13182 * valprint.c (generic_value_print): New function.
13183
2b4e573d
TT
131842020-03-13 Tom Tromey <tom@tromey.com>
13185
13186 * valprint.c (do_val_print): Call la_value_print_inner, if
13187 available.
13188 * rust-lang.c (rust_language_defn): Update.
13189 * p-lang.c (pascal_language_defn): Update.
13190 * opencl-lang.c (opencl_language_defn): Update.
13191 * objc-lang.c (objc_language_defn): Update.
13192 * m2-lang.c (m2_language_defn): Update.
13193 * language.h (struct language_defn) <la_value_print_inner>: New
13194 member.
13195 * language.c (unknown_language_defn, auto_language_defn): Update.
13196 * go-lang.c (go_language_defn): Update.
13197 * f-lang.c (f_language_defn): Update.
13198 * d-lang.c (d_language_defn): Update.
13199 * c-lang.c (c_language_defn, cplus_language_defn)
13200 (asm_language_defn, minimal_language_defn): Update.
13201 * ada-lang.c (ada_language_defn): Update.
13202
a1f6a07c
TT
132032020-03-13 Tom Tromey <tom@tromey.com>
13204
13205 * c-valprint.c (c_value_print): Use common_val_print.
13206
410cf315
TT
132072020-03-13 Tom Tromey <tom@tromey.com>
13208
13209 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13210
72a45c93
TT
132112020-03-13 Tom Tromey <tom@tromey.com>
13212
13213 * f-valprint.c (f77_print_array_1, f_val_print): Use
13214 common_val_print.
13215
040f66bd
TT
132162020-03-13 Tom Tromey <tom@tromey.com>
13217
13218 * riscv-tdep.c (riscv_print_one_register_info): Use
13219 common_val_print.
13220
a6e05a6c
TT
132212020-03-13 Tom Tromey <tom@tromey.com>
13222
13223 * mi/mi-main.c (output_register): Use common_val_print.
13224
3444c526
TT
132252020-03-13 Tom Tromey <tom@tromey.com>
13226
13227 * infcmd.c (default_print_one_register_info): Use
13228 common_val_print.
13229
c2a44efe
TT
132302020-03-13 Tom Tromey <tom@tromey.com>
13231
13232 * valprint.h (common_val_print_checked): Declare.
13233 * valprint.c (common_val_print_checked): New function.
13234 * stack.c (print_frame_arg): Use common_val_print_checked.
13235
b0c26e99
TT
132362020-03-13 Tom Tromey <tom@tromey.com>
13237
13238 * valprint.c (do_val_print): New function, from val_print.
13239 (val_print): Use do_val_print.
13240 (common_val_print): Use do_val_print.
13241
ce3acbe9
TT
132422020-03-13 Tom Tromey <tom@tromey.com>
13243
13244 * valprint.c (value_print): Use scoped_value_mark.
13245
96c7f873
TV
132462020-03-13 Tom de Vries <tdevries@suse.de>
13247
13248 PR symtab/25646
13249 * psymtab.c (partial_symtab::partial_symtab): Don't set
13250 globals_offset and statics_offset. Push element onto
13251 current_global_psymbols and current_static_psymbols stacks.
13252 (concat): New function.
13253 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13254 element from current_global_psymbols and current_static_psymbols
13255 stacks. Concat popped elements to global_psymbols and
13256 static_symbols.
13257 (add_psymbol_to_list): Use current_global_psymbols and
13258 current_static_psymbols stacks.
13259 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13260 current_static_psymbols fields.
13261
6ba0a321
CB
132622020-03-12 Christian Biesinger <cbiesinger@google.com>
13263
13264 * corelow.c (sniff_core_bfd): Remove.
13265 (class core_target) <m_core_vec>: Remove.
13266 (core_target::core_target): Update.
13267 (core_file_fns): Remove.
13268 (deprecated_add_core_fns): Remove.
13269 (default_core_sniffer): Remove.
13270 (sniff_core_bfd): Remove.
13271 (default_check_format): Remove.
13272 (gdb_check_format): Remove.
13273 (core_target_open): Update.
13274 (core_target::get_core_register_section): Update.
13275 (get_core_registers_cb): Update.
13276 (core_target::fetch_registers): Update.
13277 * gdbcore.h (struct core_fns): Remove.
13278 (deprecated_add_core_fns): Remove.
13279 (default_core_sniffer): Remove.
13280 (default_check_format): Remove.
13281
227031b2
TT
132822020-03-12 Tom Tromey <tom@tromey.com>
13283
13284 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13285 CORE_ADDR.
13286 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13287
53807e9f
TT
132882020-03-12 Tom Tromey <tom@tromey.com>
13289
13290 * remote.c (remote_target::download_tracepoint)
13291 (remote_target::enable_tracepoint)
13292 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13293 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13294 sprintf_vma.
13295
64f25102
TT
132962020-03-12 Tom Tromey <tom@tromey.com>
13297
13298 * symfile-mem.c: Update CORE_ADDR size assert.
13299
272cd5a3
SM
133002020-03-12 Simon Marchi <simon.marchi@efficios.com>
13301
13302 * selftest.m4: Move to gdbsupport/.
13303 * acinclude.m4: Update path to selftest.m4.
13304
74cd3f9d
SM
133052020-03-12 Simon Marchi <simon.marchi@efficios.com>
13306
13307 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13308 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13309 gdbarch-selfselftests.c and selftest-arch.c.
13310 (SUBDIR_UNITTESTS_OBS): Rename to...
13311 (SELFTESTS_OBS): ... this.
13312 (COMMON_SFILES): Remove disasm-selftests.c and
13313 gdbarch-selftests.c.
13314 * configure.ac: Don't add selftest-arch.{c,o} to
13315 CONFIG_{SRCS,OBS}.
13316 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13317 preprocessor conditions.
13318
db6878ac
SM
133192020-03-12 Simon Marchi <simon.marchi@efficios.com>
13320
13321 * configure.ac: Don't source bfd/development.sh.
13322 * selftest.m4: Modify comment.
13323 * configure: Re-generate.
13324
4d696a5c
SM
133252020-03-12 Simon Marchi <simon.marchi@efficios.com>
13326
13327 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13328 not "true" or "false".
13329 * configure: Re-generate.
13330
8dd8e1c7
CB
133312020-03-12 Christian Biesinger <cbiesinger@google.com>
13332
13333 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13334 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13335 renamed to arm_nbsd_supply_gregset.
13336 (fetch_register): Update to call arm_nbsd_supply_gregset.
13337 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13338 (arm_netbsd_nat_target::fetch_registers): Update.
13339 (fetch_elfcore_registers): Removed.
13340 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13341 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13342 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13343 not require NetBSD system headers.
13344 (arm_nbsd_regset): New struct.
13345 (arm_nbsd_iterate_over_regset_sections): New function.
13346 (arm_netbsd_init_abi_common): Updated to call
13347 set_gdbarch_iterate_over_regset_sections.
13348 * arm-nbsd-tdep.h: New file.
13349
dd69bf7a
KB
133502020-03-11 Kevin Buettner <kevinb@redhat.com>
13351
13352 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13353 recursion.
13354
a0761e34
SM
133552020-03-11 Simon Marchi <simon.marchi@efficios.com>
13356
13357 * configure: Re-generate.
13358
e7a82140
TT
133592020-03-11 Tom Tromey <tromey@adacore.com>
13360
13361 * ada-typeprint.c (print_choices): Fix comment.
13362
dcc050c8
AB
133632020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13364
13365 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13366 previous item in the list, when the list has no items.
13367
1c33af77
TV
133682020-03-11 Tom de Vries <tdevries@suse.de>
13369
13370 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13371 PROP_LOCLIST handling code.
13372
8c95582d
AB
133732020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13374
13375 * buildsym-legacy.c (record_line): Pass extra parameter to
13376 record_line.
13377 * buildsym.c (buildsym_compunit::record_line): Take an extra
13378 parameter, reduce duplication in the line table, and record the
13379 is_stmt flag in the line table.
13380 * buildsym.h (buildsym_compunit::record_line): Add extra
13381 parameter.
13382 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13383 non-statement lines.
13384 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13385 this to the symtab builder.
13386 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13387 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13388 through to dwarf_record_line_1.
13389 * infrun.c (process_event_stop_test): When stepping, don't stop at
13390 a non-statement instruction, and only refresh the step info when
13391 we land in the middle of a line's range. Also add an extra
13392 comment.
13393 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13394 field.
13395 * record-btrace.c (btrace_find_line_range): Only record lines
13396 marked as is-statement.
13397 * stack.c (frame_show_address): Show the frame address if we are
13398 in a non-statement sal.
13399 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13400 (maintenance_print_one_line_table): Print a header for the is_stmt
13401 column, and include is_stmt information in the output.
13402 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13403 preference to non-statements.
13404 (find_pcs_for_symtab_line): Prefer is-statement entries.
13405 (find_line_common): Likewise.
13406 * symtab.h (struct linetable_entry): Add is_stmt field.
13407 (struct symtab_and_line): Likewise.
13408 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13409 arranging the line table.
13410
e4003a34
TV
134112020-03-07 Tom de Vries <tdevries@suse.de>
13412
13413 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13414 DIE.
13415
e8932576
TT
134162020-03-07 Tom Tromey <tom@tromey.com>
13417
13418 * valops.c (value_literal_complex): Remove obsolete comment.
13419 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13420 comment.
13421
29734269
SM
134222020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13423
13424 * infrun.h: Forward-declare thread_info.
13425 (set_step_info): Add thread_info parameter, add doc.
13426 * infrun.c (set_step_info): Add thread_info parameter, move doc
13427 to header.
13428 * infrun.c (process_event_stop_test): Pass thread to
13429 set_step_info call.
13430 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13431 set_step_info.
13432 (prepare_one_step): Add thread_info parameter, pass it to
13433 set_step_frame and prepare_one_step (recursive) call.
13434 (step_1): Pass thread to prepare_one_step call.
13435 (step_command_fsm::should_stop): Pass thread to
13436 prepare_one_step.
13437 (until_next_fsm): Pass thread to set_step_frame call.
13438 (finish_command): Pass thread to set_step_info call.
13439
b7d64b29
HD
134402020-03-06 Hannes Domani <ssbssa@yahoo.de>
13441
13442 * windows-tdep.c (windows_solib_create_inferior_hook):
13443 Check if inferior is running.
13444
09f2921c
TV
134452020-03-06 Tom de Vries <tdevries@suse.de>
13446
13447 * NEWS: Fix "the the".
13448 * ctfread.c: Same.
13449
fd760e79
TV
134502020-03-06 Tom de Vries <tdevries@suse.de>
13451
13452 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13453
20ea4a60
AB
134542020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13455
13456 * .dir-locals.el: Add a comment referencing the other copies of
13457 this file.
13458
0afbabf0
JB
134592020-03-05 John Baldwin <jhb@FreeBSD.org>
13460
13461 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13462 psargs.
13463
842806cb
TBA
134642020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13465
13466 * .gitattributes: New file.
13467
be1e3d3e
TT
134682020-03-04 Tom Tromey <tom@tromey.com>
13469
13470 * symmisc.c (print_symbol_bcache_statistics)
13471 (print_objfile_statistics): Update.
13472 * symfile.c (allocate_symtab): Use intern.
13473 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13474 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13475 macro_cache>: Remove.
13476 <string_cache>: New member.
13477 (struct objfile) <intern>: New methods.
13478 * elfread.c (elf_symtab_read): Use intern.
13479 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13480 (dwarf2_compute_name, dwarf2_physname)
13481 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13482 names.
13483 (guess_partial_die_structure_name): Update.
13484 (partial_die_info::fixup): Intern name.
13485 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13486 name.
13487 (dwarf2_name): Intern name. Update.
13488 * buildsym.c (buildsym_compunit::get_macro_table): Use
13489 string_cache.
13490
4e7625fd
TT
134912020-03-04 Tom Tromey <tom@tromey.com>
13492
13493 * jit.c (bfd_open_from_target_memory): Make "target" const.
13494 * corefile.c (gnutarget): Now const.
13495 * gdbcore.h (gnutarget): Now const.
13496
46f9f931
HD
134972020-03-04 Hannes Domani <ssbssa@yahoo.de>
13498
13499 * NEWS: Mention support for WOW64 processes.
13500 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13501 (amd64_windows_segment_register_p): Remove static.
13502 (_initialize_amd64_windows_nat): Update.
13503 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13504 * i386-windows-nat.c (context_offset): Update.
13505 (i386_mappings): Rename and remove static.
13506 (i386_windows_segment_register_p): Remove static.
13507 (_initialize_i386_windows_nat): Update.
13508 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13509 (STATUS_WX86_SINGLE_STEP): New macro.
13510 (EnumProcessModulesEx): New macro.
13511 (Wow64SuspendThread): New macro.
13512 (Wow64GetThreadContext): New macro.
13513 (Wow64SetThreadContext): New macro.
13514 (Wow64GetThreadSelectorEntry): New macro.
13515 (windows_set_context_register_offsets): Add static.
13516 (windows_set_segment_register_p): Likewise.
13517 (windows_add_thread): Adapt for WOW64 processes.
13518 (windows_fetch_one_register): Likewise.
13519 (windows_nat_target::fetch_registers): Likewise.
13520 (windows_store_one_register): Likewise.
13521 (display_selector): Likewise.
13522 (display_selectors): Likewise.
13523 (handle_exception): Likewise.
13524 (windows_continue): Likewise.
13525 (windows_nat_target::resume): Likewise.
13526 (windows_add_all_dlls): Likewise.
13527 (do_initial_windows_stuff): Likewise.
13528 (windows_nat_target::attach): Likewise.
13529 (windows_get_exec_module_filename): Likewise.
13530 (windows_nat_target::create_inferior): Likewise.
13531 (windows_xfer_siginfo): Likewise.
13532 (_initialize_loadable): Initialize Wow64SuspendThread,
13533 Wow64GetThreadContext, Wow64SetThreadContext,
13534 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13535 * windows-nat.h (windows_set_context_register_offsets):
13536 Remove declaration.
13537 (windows_set_segment_register_p): Likewise.
13538 (i386_windows_segment_register_p): Add declaration.
13539 (amd64_windows_segment_register_p): Likewise.
13540
440cf44e
LM
135412020-03-04 Luis Machado <luis.machado@linaro.org>
13542
13543 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13544 in "info registers" for AArch64/ARM.
13545
13546 The change caused "info registers" to not print GPR's.
13547
13548 gdb/ChangeLog:
13549
13550 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13551
13552 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13553 when reg->group is empty and reggroup is not.
13554
1009d92f
TT
135552020-03-03 Tom Tromey <tromey@adacore.com>
13556
13557 * dwarf2/frame.c (struct dwarf2_frame_cache)
13558 <checked_tailcall_bottom, entry_cfa_sp_offset,
13559 entry_cfa_sp_offset_p>: Remove members.
13560 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13561 (dwarf2_frame_prev_register): Don't call
13562 dwarf2_tailcall_sniffer_first.
13563 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13564 * frame-unwind.c (add_unwinder): New fuction.
13565 (frame_unwind_init): Use it. Add tailcall unwinder.
13566
5e5d66b6
AB
135672020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13568 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13569
13570 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13571 value should be printed as true.
13572
584cf46d
HD
135732020-03-03 Hannes Domani <ssbssa@yahoo.de>
13574
13575 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13576 (windows_init_abi): Set and use windows_so_ops.
13577
7b973adc
SDJ
135782020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13579
13580 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13581 when verifying if dealing with a convenience variable.
13582
bb7b70ab
LM
135832020-03-03 Luis Machado <luis.machado@linaro.org>
13584
13585 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13586
9822cb57
SM
135872020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13588
13589 * infrun.c (gdbarch_supports_displaced_stepping): New.
13590 (use_displaced_stepping): Break up conditions in smaller pieces.
13591 Use gdbarch_supports_displaced_stepping.
13592 (displaced_step_prepare_throw): Use
13593 gdbarch_supports_displaced_stepping.
13594
63e163f2
AB
135952020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13596
13597 * NEWS: Mention new behaviour of the history filename.
13598 * top.c (write_history_p): Add comment.
13599 (show_write_history_p): Add header comment, give a different
13600 message when history writing is on, but the history filename is
13601 empty.
13602 (history_filename): Add comment.
13603 (history_filename_empty): New function.
13604 (show_history_filename): Add header comment, give a different
13605 message when the filename is empty.
13606 (init_history): Compare history_filename against nullptr, and only
13607 read history if the filename is not empty.
13608 (set_history_filename): Add header comment, and only make
13609 non-empty filenames absolute.
13610 (init_main): Make the filename argument to 'set history filename'
13611 optional.
13612
81b86b97
CB
136132020-03-02 Christian Biesinger <cbiesinger@google.com>
13614
13615 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13616 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13617 (fetch_fp_register): Update.
13618 (fetch_fp_regs): Update.
13619 (store_fp_register): Update.
13620 (store_fp_regs): Update.
13621 (arm_netbsd_nat_target::read_description): New function.
13622 (fetch_elfcore_registers): Update.
13623
24ed6739
AB
136242020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13625
13626 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13627 general_thread if the stop reply is missing a thread-id.
13628 (remote_target::process_stop_reply): Use the first non-exited
13629 thread if the target didn't pass a thread-id.
13630 * infrun.c (do_target_wait): Move call to
13631 switch_to_inferior_no_thread to ....
13632 (do_target_wait_1): ... here.
13633
a84bb2a0
JT
136342020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13635
13636 * debuginfod-support.c: Include defs.h first.
13637
658dadf0
TV
136382020-02-28 Tom de Vries <tdevries@suse.de>
13639
13640 * symfile.c (set_initial_language): Use default language for lookup.
13641
4ebe4877
SM
136422020-02-28 Simon Marchi <simon.marchi@efficios.com>
13643
13644 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13645 reader variable, pass `this` to read_cutu_die_from_dwo.
13646
e5da1139
AM
136472020-02-27 Aaron Merey <amerey@redhat.com>
13648
13649 * source.c (open_source_file): Check for nullptr when computing
13650 srcpath.
13651
317f7127
TT
136522020-02-27 Tom Tromey <tromey@adacore.com>
13653
13654 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13655 member.
13656 (dwarf2_add_field): Don't update nfields.
13657 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13658
3104d9ee
AB
136592020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13660
13661 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13662 abs.
13663
b83470bf
TT
136642020-02-26 Tom Tromey <tom@tromey.com>
13665
13666 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13667 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13668 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13669 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13670 per_cu_data.
13671
edfe0a0c
TT
136722020-02-26 Tom Tromey <tom@tromey.com>
13673
13674 * dwarf2/index-write.c (psym_index_map): Change type.
13675 (add_address_entry_worker, write_one_signatured_type)
13676 (recursively_count_psymbols, recursively_write_psymbols)
13677 (class debug_names, psyms_seen_size, write_gdbindex)
13678 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13679
0d79cdc4
AM
136802020-02-26 Aaron Merey <amerey@redhat.com>
13681
13682 * Makefile.in: Handle optional debuginfod support.
13683 * NEWS: Update.
13684 * README: Add --with-debuginfod summary.
13685 * config.in: Regenerate.
13686 * configure: Regenerate.
13687 * configure.ac: Handle optional debuginfod support.
13688 * debuginfod-support.c: debuginfod helper functions.
13689 * debuginfod-support.h: Ditto.
13690 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13691 summary.
13692 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13693 when a dwz file cannot be found.
13694 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13695 debuginfo file cannot be found.
13696 * source.c (open_source_file): Query debuginfod servers when a
13697 source file cannot be found.
13698 * top.c (print_gdb_configuration): Include
13699 --{with,without}-debuginfod in the output.
13700
b65ce565
JG
137012020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13702
13703 * thread.c (thr_try_catch_cmd): Print thread name.
13704
d4c9a4f8
SM
137052020-02-26 Simon Marchi <simon.marchi@efficios.com>
13706
13707 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13708 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13709 dwarf2_fetch_die_type_sect_off): Move to...
13710 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13711 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13712 dwarf2_fetch_die_type_sect_off): ... here.
13713 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13714 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13715 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13716
0dce4280
TV
137172020-02-26 Tom de Vries <tdevries@suse.de>
13718
13719 PR gdb/25603
13720 * symfile.c (set_initial_language): Exit-early if
13721 language_mode == language_mode_manual.
13722
450a1bfc
SM
137232020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13724
13725 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13726 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13727 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13728
9e80cfa1
AB
137292020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13730
13731 * gdbtypes.c (create_array_type_with_stride): Handle negative
13732 array strides.
13733 * valarith.c (value_subscripted_rvalue): Likewise.
13734
09624f1f
LM
137352020-02-25 Luis Machado <luis.machado@linaro.org>
13736
13737 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13738
8cb5117c
SM
137392020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13740
13741 * loc.h (dwarf2_get_die_type): Move to...
13742 * read.h (dwarf2_get_die_type): ... here.
13743 * read.c (dwarf2_get_die_type): Move doc to header.
13744
c325c44e
JB
137452020-02-25 Joel Brobecker <brobecker@adacore.com>
13746
13747 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13748 'gnulib/Makefile.in' to the list.
13749
4ac93832
TT
137502020-02-24 Tom Tromey <tom@tromey.com>
13751
13752 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13753 Remove.
13754 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13755 XOBNEWVEC.
13756
197400e8
TT
137572020-02-24 Tom Tromey <tom@tromey.com>
13758
13759 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13760 New method.
13761 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13762 (dw2_do_instantiate_symtab, dw2_get_file_names)
13763 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13764
76935768
TT
137652020-02-24 Tom Tromey <tom@tromey.com>
13766
13767 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13768 make_scoped_restore.
13769 (dwarf2_psymtab::read_symtab): Don't clear
13770 reading_partial_symbols.
13771
a88ef40d
TV
137722020-02-24 Tom de Vries <tdevries@suse.de>
13773
13774 PR gdb/25592
13775 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13776
c9af6521
TV
137772020-02-24 Tom de Vries <tdevries@suse.de>
13778
13779 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13780 commands layout next/prev/regs.
13781
5707a07a
TT
137822020-02-22 Tom Tromey <tom@tromey.com>
13783
13784 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13785 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13786
3b0fb49e
TT
137872020-02-22 Tom Tromey <tom@tromey.com>
13788
13789 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13790
283be8bf
TT
137912020-02-22 Tom Tromey <tom@tromey.com>
13792
13793 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13794 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13795 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13796 * tui/tui.c (_initialize_tui): Add usage text.
13797
ca793b96
TT
137982020-02-22 Tom Tromey <tom@tromey.com>
13799
13800 * tui/tui-win.c (tui_set_focus_command)
13801 (tui_set_win_height_command): Use error_no_arg.
13802 (_initialize_tui_win): Update help text.
13803 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13804
432b5c40
TT
138052020-02-22 Tom Tromey <tom@tromey.com>
13806
13807 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13808 * tui/tui-disasm.h (struct tui_disasm_window)
13809 <display_start_addr>: Declare.
13810 * tui/tui-source.h (struct tui_source_window)
13811 <display_start_addr>: Declare.
13812 * tui/tui-winsource.h (struct tui_source_window_base)
13813 <show_source_line, display_start_addr>: New methods.
13814 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13815 Rename and move to protected section.
13816 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13817 (tui_source_window_base::do_erase_source_content): Update.
13818 (tui_source_window_base::show_source_line): Now a method.
13819 (tui_source_window_base::show_source_content)
13820 (tui_source_window_base::tui_source_window_base)
13821 (tui_source_window_base::rerender)
13822 (tui_source_window_base::refill)
13823 (tui_source_window_base::do_scroll_horizontal)
13824 (tui_source_window_base::set_is_exec_point_at)
13825 (tui_source_window_base::update_breakpoint_info)
13826 (tui_source_window_base::update_exec_info): Update.
13827 * tui/tui-source.c (tui_source_window::set_contents)
13828 (tui_source_window::showing_source_p)
13829 (tui_source_window::do_scroll_vertical)
13830 (tui_source_window::location_matches_p)
13831 (tui_source_window::line_is_displayed): Update.
13832 (tui_source_window::display_start_addr): New method.
13833 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13834 (tui_disasm_window::do_scroll_vertical)
13835 (tui_disasm_window::location_matches_p): Update.
13836 (tui_disasm_window::display_start_addr): New method.
13837
01b1af32
TT
138382020-02-22 Tom Tromey <tom@tromey.com>
13839
13840 * NEWS: Add entry for gdb.register_window_type.
13841 * tui/tui-layout.h (window_factory): New typedef.
13842 (tui_register_window): Declare.
13843 * tui/tui-layout.c (saved_tui_windows): New global.
13844 (tui_apply_current_layout): Use it.
13845 (tui_register_window): New function.
13846 * python/python.c (do_start_initialization): Call
13847 gdbpy_initialize_tui.
13848 (python_GdbMethods): Add "register_window_type" function.
13849 * python/python-internal.h (gdbpy_register_tui_window)
13850 (gdbpy_initialize_tui): Declare.
13851 * python/py-tui.c: New file.
13852 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13853
fc96d20b
TT
138542020-02-22 Tom Tromey <tom@tromey.com>
13855
13856 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13857
935c78c0
TT
138582020-02-22 Tom Tromey <tom@tromey.com>
13859
13860 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13861 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13862 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13863 (tui_set_win_focus_to): Move from tui-win.c.
13864
0240c8f1
TT
138652020-02-22 Tom Tromey <tom@tromey.com>
13866
13867 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13868 functions.
13869 (known_window_types): New global.
13870 (tui_get_window_by_name): Reimplement.
13871 (initialize_known_windows): New function.
13872 (validate_window_name): Rewrite.
13873 (_initialize_tui_layout): Call initialize_known_windows.
13874
fdb01f0c
TT
138752020-02-22 Tom Tromey <tom@tromey.com>
13876
13877 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13878 Remove constants.
13879 * tui/tui-winsource.h (struct tui_source_window_base)
13880 <tui_source_window_base>: Remove parameter.
13881 * tui/tui-winsource.c
13882 (tui_source_window_base::tui_source_window_base): Remove
13883 parameter.
13884 (tui_source_window_base::refill): Update.
13885 * tui/tui-stack.h (struct tui_locator_window)
13886 <tui_locator_window>: Update.
13887 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13888 Default the constructor.
13889 * tui/tui-regs.h (struct tui_data_item_window)
13890 <tui_data_item_window>: Default the constructor.
13891 (struct tui_data_window) <tui_data_window>: Likewise.
13892 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13893 Default the constructor.
13894 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13895 Default the constructor.
13896 <type>: Remove.
13897 (struct tui_win_info) <tui_win_info>: Default the constructor.
13898 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13899 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13900 Default the constructor.
13901
865a5aec
TT
139022020-02-22 Tom Tromey <tom@tromey.com>
13903
13904 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13905 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13906 * tui/tui-win.c (tui_resize_all): Don't call
13907 tui_delete_invisible_windows.
13908 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13909 done.
13910 (tui_set_layout): Update.
13911 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13912 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13913 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13914
e098d18c
TT
139152020-02-22 Tom Tromey <tom@tromey.com>
13916
13917 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13918 correctly.
13919
eb9c8874
TT
139202020-02-22 Tom Tromey <tom@tromey.com>
13921
13922 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13923
7eed1a8e
TT
139242020-02-22 Tom Tromey <tom@tromey.com>
13925
13926 * tui/tui-winsource.h (struct tui_source_window_iterator)
13927 <inner_iterator>: New etytypedef.
13928 <tui_source_window_iterator>: Take "end" parameter.
13929 <tui_source_window_iterator>: Take iterator.
13930 <operator*, advance>: Update.
13931 <m_iter>: Change type.
13932 <m_end>: New field.
13933 (struct tui_source_windows) <begin, end>: Update.
13934 * tui/tui-layout.c (tui_windows): New global.
13935 (tui_apply_current_layout): Clear tui_windows.
13936 (tui_layout_window::apply): Update tui_windows.
13937 * tui/tui-data.h (tui_windows): Declare.
13938 (all_tui_windows): Now inline function.
13939 (class tui_window_iterator, struct all_tui_windows): Remove.
13940
7c043ba6
TT
139412020-02-22 Tom Tromey <tom@tromey.com>
13942
13943 PR tui/17850:
13944 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13945 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13946 "height" argument.
13947 (class tui_layout_window) <get_sizes>: Likewise.
13948 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13949 argument.
13950 <get_sizes>: Add "height" argument.
13951 <m_vertical>: New field.
13952 * tui/tui-layout.c (tui_layout_split::clone): Update.
13953 (tui_layout_split::get_sizes): Add "height" argument.
13954 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13955 (tui_new_layout_command): Parse "-horizontal".
13956 (_initialize_tui_layout): Update help string.
13957 (tui_layout_split::specification): Add "-horizontal" when needed.
13958 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13959 argument.
13960 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13961 New methods.
13962
6bc56648
TT
139632020-02-22 Tom Tromey <tom@tromey.com>
13964
13965 * tui/tui-layout.h (enum tui_adjust_result): New.
13966 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13967 (class tui_layout_window) <adjust_size>: Return
13968 tui_adjust_result. Rewrite.
13969 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13970 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13971
c22fef7e
TT
139722020-02-22 Tom Tromey <tom@tromey.com>
13973
13974 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13975 parameter and return types.
13976 (class tui_layout_base) <specification>: Add "depth".
13977 (class tui_layout_window) <specification>: Add "depth".
13978 (class tui_layout_split) <specification>: Add "depth".
13979 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13980 and return types.
13981 (tui_new_layout_command): Parse sub-layouts.
13982 (_initialize_tui_layout): Update help string.
13983 (tui_layout_window::specification): Add "depth".
13984 (add_layout_command): Update.
13985
ee325b61
TT
139862020-02-22 Tom Tromey <tom@tromey.com>
13987
13988 * NEWS: Add "tui new-layout" item.
13989 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13990 Add new-layout command to help text.
13991 (validate_window_name): New function.
13992 (tui_new_layout_command): New function.
13993 (_initialize_tui_layout): Register "new-layout".
13994 (tui_layout_window::specification): New method.
13995 (tui_layout_window::specification): New method.
13996 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13997 method.
13998 (class tui_layout_window) <specification>: New method.
13999 (class tui_layout_split) <specification>: New method.
14000
416eb92d
TT
140012020-02-22 Tom Tromey <tom@tromey.com>
14002
14003 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14004 * tui/tui-win.c (window_name_completer): Update comment.
14005 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14006 Declare method.
14007 (class tui_layout_window) <replace_window>: Likewise.
14008 (class tui_layout_split) <replace_window>: Likewise.
14009 (tui_set_layout): Don't declare.
14010 (tui_set_initial_layout): Declare function.
14011 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14012 (asm_regs_layout): New globals.
14013 (tui_current_layout, show_layout): Remove.
14014 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14015 (find_layout, tui_apply_layout): New function.
14016 (layout_completer): Remove.
14017 (tui_next_layout): Reimplement.
14018 (tui_next_layout_command): New function.
14019 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14020 (tui_regs_layout): Reimplement.
14021 (tui_regs_layout_command): New function.
14022 (extract_display_start_addr): Rewrite.
14023 (next_layout, prev_layout): Remove.
14024 (tui_layout_window::replace_window): New method.
14025 (tui_layout_split::replace_window): New method.
14026 (destroy_layout): New function.
14027 (layout_list): New global.
14028 (add_layout_command): New function.
14029 (initialize_layouts): Update.
14030 (tui_layout_command): New function.
14031 (_initialize_tui_layout): Install "layout" commands.
14032 * tui/tui-data.h (enum tui_layout_type): Remove.
14033 (tui_current_layout): Don't declare.
14034
0dbc2fc7
TT
140352020-02-22 Tom Tromey <tom@tromey.com>
14036
14037 * tui/tui-regs.c (tui_reg_layout): Remove.
14038 (tui_reg_command): Use tui_regs_layout.
14039 * tui/tui-layout.h (tui_reg_command): Declare.
14040 * tui/tui-layout.c (tui_reg_command): New function.
14041
5afe342e
TT
140422020-02-22 Tom Tromey <tom@tromey.com>
14043
14044 * tui/tui.c (tui_rl_delete_other_windows): Call
14045 tui_remove_some_windows.
14046 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14047 Declare method.
14048 (class tui_layout_window) <remove_windows>: New method.
14049 (class tui_layout_split) <remove_windows>: Declare.
14050 (tui_remove_some_windows): Declare.
14051 * tui/tui-layout.c (tui_remove_some_windows): New function.
14052 (tui_layout_split::remove_windows): New method.
14053
427326a8
TT
140542020-02-22 Tom Tromey <tom@tromey.com>
14055
14056 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14057 * tui/tui-layout.h (tui_next_layout): Declare.
14058 * tui/tui-layout.c (tui_next_layout): New function.
14059
3fe12b6d
TT
140602020-02-22 Tom Tromey <tom@tromey.com>
14061
14062 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14063 correct coordinates.
14064
59b8b5d2
TT
140652020-02-22 Tom Tromey <tom@tromey.com>
14066
14067 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14068 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14069 DATA_WIN case.
14070
2a3d458b
TT
140712020-02-22 Tom Tromey <tom@tromey.com>
14072
14073 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14074 TUI_DISASM_WIN, not tui_win_list.
14075
3f0cbb04
TT
140762020-02-22 Tom Tromey <tom@tromey.com>
14077
14078 * valprint.c (generic_val_print_enum_1)
14079 (val_print_type_code_flags): Style member names.
14080 * rust-lang.c (val_print_struct, rust_print_enum)
14081 (rust_print_struct_def, rust_internal_print_type): Style member
14082 names.
14083 * p-valprint.c (pascal_object_print_value_fields): Style member
14084 names. Only call fprintf_symbol_filtered for static members.
14085 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14086 * f-valprint.c (f_val_print): Style member names.
14087 * f-typeprint.c (f_type_print_base): Style member names.
14088 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14089 call fprintf_symbol_filtered for static members.
14090 (cp_print_class_member): Style member names.
14091 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14092 member names.
14093 * ada-valprint.c (ada_print_scalar): Style enum names.
14094 (ada_val_print_enum): Likewise.
14095 * ada-typeprint.c (print_enum_type): Style enum names.
14096
d4d947ae
TT
140972020-02-21 Tom Tromey <tom@tromey.com>
14098
14099 * psympriv.h (struct partial_symtab): Update comment.
14100
e94e944b
TT
141012020-02-21 Tom Tromey <tromey@adacore.com>
14102
14103 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14104 type is CORE_ADDR.
14105
1eb73179
TV
141062020-02-21 Tom de Vries <tdevries@suse.de>
14107
14108 PR gdb/25534
14109 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14110 if dependencies[i]->user != NULL.
14111
4f180d53
AT
141122020-02-21 Ali Tamur <tamur@google.com>
14113
14114 * dwarf2/read.c (dwarf2_name): Add null check.
14115
22b6cd70
TT
141162020-02-20 Tom Tromey <tom@tromey.com>
14117
14118 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14119 ">=", in binary search.
14120 (dwarf2_find_containing_comp_unit): New overload.
14121 (run_test): New self-test.
14122 (_initialize_dwarf2_read): Register new test.
14123
bd0cf5a6
NC
141242020-02-20 Nelson Chu <nelson.chu@sifive.com>
14125
14126 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14127 * riscv-tdep.h: Likewise.
14128 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14129 rv32-only CSR.
14130 * features/riscv/64bit-csr.xml: Regenerated.
14131
3f702acd
SDJ
141322020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14133 Tom Tromey <tom@tromey.com>
14134
14135 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14136 of 'fputc_unfiltered'.
14137 (putchar_unfiltered): Call 'fputc_unfiltered'.
14138 (fputc_unfiltered): Call 'fputs_unfiltered'.
14139
d13c7322
AB
141402020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14141
14142 * config.in: Regenerate.
14143 * configure: Regenerate.
14144 * configure.ac: Add --with-python-libdir option.
14145 * main.c: Use WITH_PYTHON_LIBDIR.
14146
869d8950
TT
141472020-02-19 Tom Tromey <tom@tromey.com>
14148
14149 * symtab.c (general_symbol_info::compute_and_set_names): Use
14150 obstack_strndup. Simplify call to symbol_set_demangled_name.
14151
298e9637
SM
141522020-02-19 Simon Marchi <simon.marchi@efficios.com>
14153
14154 * dwarf2/read.c (allocate_signatured_type_table,
14155 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14156 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14157 Remove objfile parameter, update all callers.
14158
08410482
DE
141592020-02-19 Doug Evans <dje@google.com>
14160
14161 PR rust/25535
14162 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14163 rust_enum_variant calculation.
14164
dfdeeca1
TT
141652020-02-19 Tom Tromey <tromey@adacore.com>
14166
14167 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14168
2ef5453b
TT
141692020-02-19 Tom Tromey <tromey@adacore.com>
14170
14171 * ada-lang.c (cache_symbol): Use obstack_strdup.
14172
9f1528a1
AB
141732020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14174
14175 * configure: Regenerate.
14176
d3c22fa8
TT
141772020-02-19 Tom Tromey <tromey@adacore.com>
14178
14179 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14180 NULL check.
14181
bf84f706
MR
141822020-02-19 Maciej W. Rozycki <macro@wdc.com>
14183
14184 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14185
d1c9b20f
AB
141862020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14187
14188 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14189 if GDBSERVER is not defined.
14190 (riscv_tdesc_cache): Likewise, also store const target_desc.
14191 (STATIC_IN_GDB): Define.
14192 (riscv_create_target_description): Update declaration with
14193 STATIC_IN_GDB.
14194 (riscv_lookup_target_description): New function, only define if
14195 GDBSERVER is not defined.
14196 * arch/riscv.h (riscv_create_target_description): Declare only
14197 when GDBSERVER is defined.
14198 (riscv_lookup_target_description): New declaration when GDBSERVER
14199 is not defined.
14200 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14201 (riscv_linux_read_features): ...this, and return
14202 riscv_gdbarch_features instead of target_desc.
14203 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14204 (riscv_linux_read_description): Rename to...
14205 (riscv_linux_read_features): ...this.
14206 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14207 Update to use riscv_gdbarch_features and
14208 riscv_lookup_target_description.
14209 * riscv-tdep.c (riscv_find_default_target_description): Use
14210 riscv_lookup_target_description instead of
14211 riscv_create_target_description.
14212
373d7ac0
SM
142132020-02-18 Simon Marchi <simon.marchi@efficios.com>
14214
14215 * valprint.c (generic_val_print_enum_1): When printing a flag
14216 enum with value 0 and there is no enumerator with value 0, print
14217 just "0" instead of "(unknown: 0x0)".
14218
b29a2df0
SM
142192020-02-18 Simon Marchi <simon.marchi@efficios.com>
14220
14221 * valprint.c (generic_val_print_enum_1): Print unknown part of
14222 flag enum in hex.
14223
6740f0cc
SM
142242020-02-18 Simon Marchi <simon.marchi@efficios.com>
14225
14226 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14227 flag enums to contain duplicate enumerators.
14228 * valprint.c (generic_val_print_enum_1): Update comment.
14229
edd45eb0
SM
142302020-02-18 Simon Marchi <simon.marchi@efficios.com>
14231
14232 * dwarf2/read.c: Include "count-one-bits.h".
14233 (update_enumeration_type_from_children): If an enumerator has
14234 multiple bits set, don't treat the enumeration as a "flag enum".
14235 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14236 of flag enums have 0 or 1 bit set.
14237
6d0cf446
BE
142382020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14239
14240 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14241 conversion.
14242 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14243 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14244 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14245 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14246 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14247
7001c1b7
SM
142482020-02-18 Simon Marchi <simon.marchi@efficios.com>
14249
14250 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14251
fdb61c6c
SM
142522020-02-14 Simon Marchi <simon.marchi@efficios.com>
14253
14254 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14255 displaced_step_closure_up.
14256 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14257 (struct displaced_step_closure_up):
14258 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14259 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14260 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14261 Likewise.
14262 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14263 * gdbarch.c, gdbarch.h: Re-generate.
14264 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14265 displaced_step_closure_up.
14266 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14267 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14268 * infrun.h (displaced_step_closure_up): New type alias.
14269 (struct displaced_step_inferior_state) <step_closure>: Change
14270 type to displaced_step_closure_up.
14271 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14272 displaced_step_closure_up.
14273 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14274
a4a38eb4
TT
142752020-02-14 Tom Tromey <tom@tromey.com>
14276
14277 * minidebug.c (gnu_debug_key): New global.
14278 (find_separate_debug_file_in_section): Use it.
14279
e8217e61
SM
142802020-02-14 Simon Marchi <simon.marchi@efficios.com>
14281
14282 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14283 std::unique_ptr.
14284 * gdbarch.c: Re-generate.
14285 * gdbarch.h: Re-generate.
14286 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14287 change.
14288 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14289 type to std::unique_ptr.
14290 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14291 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14292 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14293 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14294 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14295 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14296 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14297 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14298 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14299
d8d83535
SM
143002020-02-14 Simon Marchi <simon.marchi@efficios.com>
14301
14302 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14303 std::unique_ptr.
14304 (displaced_step_clear): Rename to...
14305 (displaced_step_reset): ... this. Just call displaced->reset ().
14306 (displaced_step_clear_cleanup): Rename to...
14307 (displaced_step_reset_cleanup): ... this.
14308 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14309 (displaced_step_fixup): Likewise.
14310 (resume_1): Likewise.
14311 (handle_inferior_event): Restore child's memory before calling
14312 displaced_step_fixup on the parent.
14313 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14314 to std::unique_ptr.
14315 <step_closure>: Change type to std::unique_ptr.
14316
5f661e03
SM
143172020-02-14 Simon Marchi <simon.marchi@efficios.com>
14318
14319 * arm-tdep.c: Include count-one-bits.h.
14320 (cleanup_block_store_pc): Use count_one_bits.
14321 (cleanup_block_load_pc): Use count_one_bits.
14322 (arm_copy_block_xfer): Use count_one_bits.
14323 (thumb2_copy_block_xfer): Use count_one_bits.
14324 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14325 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14326 (thumb_get_next_pcs_raw): Use count_one_bits.
14327 (arm_get_next_pcs_raw): Use count_one_bits_l.
14328 * arch/arm.c (bitcount): Remove.
14329 * arch/arm.h (bitcount): Remove.
14330
8084e579
TT
143312020-02-14 Tom Tromey <tromey@adacore.com>
14332
14333 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14334 Update.
14335 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14336 * dwarf2/loc.c (call_site_find_chain_1): Return
14337 unique_xmalloc_ptr.
14338 (call_site_find_chain): Likewise.
14339
258bf0ee
RB
143402020-02-14 Richard Biener <rguenther@suse.de>
14341
14342 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14343 on expression with division operators.
14344
f98a8458
AKS
143452020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14346
14347 * MAINTAINERS (Write After Approval): Adding myself.
14348
d1437c0e
TT
143492020-02-12 Tom Tromey <tom@tromey.com>
14350
14351 * event-loop.c (event_data, gdb_event, event_handler_func):
14352 Remove.
14353
3d4560f7
TT
143542020-02-12 Tom Tromey <tom@tromey.com>
14355
14356 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14357 (dwarf2_frame_objfile_data): Add comment.
14358 (find_comp_unit, set_comp_unit): New functions.
14359 (dwarf2_frame_find_fde): Use find_comp_unit.
14360 (dwarf2_build_frame_info): Use set_comp_unit.
14361
21982304
TT
143622020-02-12 Tom Tromey <tom@tromey.com>
14363
14364 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14365 (comp_unit): Don't initialize objfile.
14366 (execute_cfa_program): Add text_offset parameter.
14367 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14368 (dwarf2_frame_cache): Update.
14369 (dwarf2_build_frame_info): Don't set "objfile" member.
14370
4debb237
TT
143712020-02-12 Tom Tromey <tom@tromey.com>
14372
14373 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14374 (decode_frame_entry): Likewise.
14375 (dwarf2_build_frame_info): Update.
14376
0d404d44
TT
143772020-02-12 Tom Tromey <tom@tromey.com>
14378
14379 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14380 (decode_frame_entry_1): Use the comp_unit obstack.
14381
a7a3ae5c
TT
143822020-02-12 Tom Tromey <tom@tromey.com>
14383
14384 * dwarf2/frame.c (struct comp_unit): Add initializers and
14385 constructor.
14386 (dwarf2_frame_objfile_data): Store a comp_unit.
14387 (dwarf2_frame_find_fde): Update.
14388 (dwarf2_build_frame_info): Use "new".
14389
a9d65418
TT
143902020-02-12 Tom Tromey <tom@tromey.com>
14391
14392 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14393 (dwarf2_fde_table): Typedef for std::vector.
14394 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14395 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14396 (decode_frame_entry): Update.
14397 (dwarf2_build_frame_info): Use "new".
14398
7559c217
CB
143992020-02-12 Christian Biesinger <cbiesinger@google.com>
14400
14401 * arm-tdep.c (arm_gdbarch_init): Update.
14402 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14403 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14404 have_neon, is_m>: Change to bool.
14405
aeefc73c
CB
144062020-02-12 Christian Biesinger <cbiesinger@google.com>
14407
14408 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14409
d27b8e5f
TT
144102020-02-12 Tom Tromey <tom@tromey.com>
14411
14412 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14413
cd5900f3
HD
144142020-02-12 Hannes Domani <ssbssa@yahoo.de>
14415
14416 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14417 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14418
f056b22b
TT
144192020-02-11 Tom Tromey <tom@tromey.com>
14420
14421 * psymtab.h: Update comment.
14422
f92ff6b5
TT
144232020-02-11 Tom Tromey <tom@tromey.com>
14424
14425 * gdb_obstack.h (struct auto_obstack): Use
14426 DISABLE_COPY_AND_ASSIGN.
14427
3fd6912b
TT
144282020-02-11 Tom Tromey <tom@tromey.com>
14429
14430 * dwarf2/frame.h (struct objfile): Don't forward declare.
14431
69ed9b74
CB
144322020-02-11 Christian Biesinger <cbiesinger@google.com>
14433
14434 * cris-tdep.c (cris_supply_gregset): Change signature to match
14435 what struct regset expects.
14436 (cris_regset): New struct.
14437 (fetch_core_registers): Remove.
14438 (cris_iterate_over_regset_sections): New function.
14439 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14440 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14441
bda874f6
CB
144422020-02-11 Christian Biesinger <cbiesinger@google.com>
14443
14444 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14445 registers.
14446
754e1564
CB
144472020-02-11 Christian Biesinger <cbiesinger@google.com>
14448
14449 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14450
8ddd8e0e
SM
144512020-02-11 Simon Marchi <simon.marchi@efficios.com>
14452
14453 * configure: Re-generate.
14454
898e7f60
SM
144552020-02-11 Simon Marchi <simon.marchi@efficios.com>
14456
14457 * configure: Re-generate.
14458
58df732b
SM
144592020-02-11 Simon Marchi <simon.marchi@efficios.com>
14460
14461 * acinclude: Update warning.m4 path.
14462 * warning.m4: Move to gdbsupport.
14463
da5bd37e
TT
144642020-02-11 Tom Tromey <tromey@adacore.com>
14465
14466 * remote.c (remote_console_output): Update.
14467 * printcmd.c (printf_command): Update.
14468 * event-loop.c (gdb_wait_for_event): Update.
14469 * linux-nat.c (sigchld_handler): Update.
14470 * remote-sim.c (gdb_os_write_stdout): Update.
14471 (gdb_os_flush_stdout): Update.
14472 (gdb_os_flush_stderr): Update.
14473 (gdb_os_write_stderr): Update.
14474 * exceptions.c (print_exception): Update.
14475 * remote-fileio.c (remote_fileio_func_read): Update.
14476 (remote_fileio_func_write): Update.
14477 * tui/tui.c (tui_enable): Update.
14478 * tui/tui-interp.c (tui_interp::init): Update.
14479 * utils.c (init_page_info): Update.
14480 (putchar_unfiltered, fputc_unfiltered): Update.
14481 (gdb_flush): Update.
14482 (emit_style_escape): Update.
14483 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14484 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14485 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14486 (stderr_file::write): Update.
14487 (stderr_file::puts): Update.
14488 * ui-file.h (ui_file_isatty, ui_file_write)
14489 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14490 (ui_file_puts): Don't declare.
14491
85f0dd3c
TV
144922020-02-10 Tom de Vries <tdevries@suse.de>
14493
14494 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14495 sentinel to char *.
14496
2e927613
TV
144972020-02-09 Tom de Vries <tdevries@suse.de>
14498
14499 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14500 filename if it matches "<artificial>".
14501
6bafc845
HD
145022020-02-09 Hannes Domani <ssbssa@yahoo.de>
14503
14504 * windows-tdep.c (struct enum_value_name): New struct.
14505 (create_enum): New function.
14506 (windows_get_siginfo_type): Create and use enum types.
14507
7928d571
HD
145082020-02-09 Hannes Domani <ssbssa@yahoo.de>
14509
14510 * NEWS: Mention $_siginfo support for Windows.
14511 * windows-nat.c (handle_exception): Set siginfo_er.
14512 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14513 (windows_xfer_siginfo): New function.
14514 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14515 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14516 (init_windows_gdbarch_data): New function.
14517 (get_windows_gdbarch_data): New function.
14518 (windows_get_siginfo_type): New function.
14519 (windows_init_abi): Register windows_get_siginfo_type.
14520 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14521
6751ebae
TT
145222020-02-08 Tom Tromey <tom@tromey.com>
14523
14524 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14525 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14526 <keep>: Declare method.
14527 <m_keep>: Remove member.
14528 <~cutu_reader>: Remove.
14529 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14530 (cutu_reader::cutu_reader): Update.
14531 (cutu_reader::keep): Rename from ~cutu_reader.
14532 (process_psymtab_comp_unit, build_type_psymtabs_1)
14533 (process_skeletonless_type_unit, load_partial_comp_unit)
14534 (load_full_comp_unit, dwarf2_read_addr_index)
14535 (read_signatured_type): Update.
14536
135f5437
TT
145372020-02-08 Tom Tromey <tom@tromey.com>
14538
14539 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14540 "want_partial_unit" parameter.
14541 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14542 Inline check for DW_TAG_partial_unit.
14543 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14544
9f66ff1c
TT
145452020-02-08 Tom Tromey <tom@tromey.com>
14546
14547 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14548 read.c.
14549 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14550 read.c.
14551
c8a7a66f
TT
145522020-02-08 Tom Tromey <tom@tromey.com>
14553
14554 * dwarf2/read.c (read_address): Move to comp-unit.c.
14555 (dwarf2_rnglists_process, dwarf2_ranges_process)
14556 (read_attribute_value, dwarf_decode_lines_1)
14557 (var_decode_location, decode_locdesc): Update.
14558 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14559 read.c. Remove "cu" parameter.
14560 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14561 method.
14562
8266302d
TT
145632020-02-08 Tom Tromey <tom@tromey.com>
14564
14565 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14566 (read_indirect_line_string): Update.
14567 * dwarf2/comp-unit.c (read_offset): Remove.
14568 (read_comp_unit_head): Update.
14569 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14570 method.
14571 (read_offset): Don't declare.
14572
4057dfde
TT
145732020-02-08 Tom Tromey <tom@tromey.com>
14574
14575 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14576 * dwarf2/read.c (struct comp_unit_head): Move to
14577 dwarf2/comp-unit.h.
14578 (enum class rcuh_kind): Move to comp-unit.h.
14579 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14580 (read_comp_unit_head, error_check_comp_unit_head)
14581 (read_and_check_comp_unit_head): Move to comp-unit.c.
14582 (read_offset, dwarf_unit_type_name): Likewise.
14583 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14584 (cutu_reader::cutu_reader, read_call_site_scope)
14585 (find_partial_die, follow_die_offset): Update.
14586 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14587
24aa364d
TT
145882020-02-08 Tom Tromey <tom@tromey.com>
14589
14590 * dwarf2/read.c (read_offset_1): Move to leb.c.
14591 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14592 (dwarf_decode_macro_bytes): Update.
14593 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14594 * dwarf2/leb.h (read_offset): Declare.
14595
2c7d5afc
TT
145962020-02-08 Tom Tromey <tom@tromey.com>
14597
14598 * dwarf2/read.c (dwarf2_section_size): Remove.
14599 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14600 Update.
14601 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14602
4075cb26
TT
146032020-02-08 Tom Tromey <tom@tromey.com>
14604
14605 * dwarf2/read.c (read_initial_length): Move to leb.c.
14606 * dwarf2/leb.h (read_initial_length): Declare.
14607 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14608 handle_nonstd parameter.
14609 * dwarf2/frame.c (read_initial_length): Remove.
14610 (decode_frame_entry_1): Update.
14611
09ba997f
TT
146122020-02-08 Tom Tromey <tom@tromey.com>
14613
14614 * dwarf2/loc.c (dwarf2_find_location_expression)
14615 (dwarf_evaluate_loc_desc::get_tls_address)
14616 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14617 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14618 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14619 (dwarf2_compile_property_to_c)
14620 (dwarf2_loc_desc_get_symbol_read_needs)
14621 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14622 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14623 (loclist_describe_location, loclist_tracepoint_var_ref)
14624 (loclist_generate_c_location): Update.
14625 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14626 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14627 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14628 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14629 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14630 (dwarf2_per_cu_data::addr_size)
14631 (dwarf2_per_cu_data::ref_addr_size)
14632 (dwarf2_per_cu_data::text_offset)
14633 (dwarf2_per_cu_data::addr_type): Now methods.
14634 (per_cu_header_read_in): Make per_cu "const".
14635 (dwarf2_version): Remove.
14636 (dwarf2_per_cu_data::int_type): Now a method.
14637 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14638 (set_die_type, read_array_type, read_subrange_index_type)
14639 (read_tag_string_type, read_subrange_type): Update.
14640 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14641 offset_size, ref_addr_size, text_offset, addr_type, version,
14642 objfile, int_type, addr_sized_int_type>: Declare methods.
14643
96c738c0
TT
146442020-02-08 Tom Tromey <tom@tromey.com>
14645
14646 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14647 Move earlier.
14648
8fdd972c
TT
146492020-02-08 Tom Tromey <tom@tromey.com>
14650
14651 * dwarf2/read.h (dwarf_line_debug): Declare.
14652 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14653 * dwarf2/read.c: Move line_header code to new files.
14654 (dwarf_line_debug): No longer static.
14655 * dwarf2/line-header.c: New file.
14656 * dwarf2/line-header.h: New file.
14657
03075812
TT
146582020-02-08 Tom Tromey <tom@tromey.com>
14659
14660 * dwarf2/read.c (struct line_header) <file_full_name,
14661 file_file_name>: Return unique_xmalloc_ptr.
14662 (line_header::file_file_name): Update.
14663 (line_header::file_full_name): Update.
14664 (dw2_get_file_names_reader): Update.
14665 (macro_start_file): Update.
14666
bb822404
TT
146672020-02-08 Tom Tromey <tom@tromey.com>
14668
14669 * dwarf2/read.c (struct line_header) <file_full_name,
14670 file_file_name>: Declare methods.
14671 (dw2_get_file_names_reader): Update.
14672 (file_file_name): Now a method.
14673 (file_full_name): Likewise.
14674 (macro_start_file): Update.
14675
009b64fc
TT
146762020-02-08 Tom Tromey <tom@tromey.com>
14677
14678 * dwarf2/read.c (dwarf_always_disassemble)
14679 (show_dwarf_always_disassemble): Move to loc.c.
14680 (_initialize_dwarf2_read): Move "always-disassemble" registration
14681 to loc.c.
14682 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14683 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14684 static.
14685 (show_dwarf_always_disassemble): Move from read.c.
14686 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14687
5895093f
TT
146882020-02-08 Tom Tromey <tom@tromey.com>
14689
14690 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14691 (create_quick_file_names_table): Return htab_up.
14692 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14693 Update.
14694 * dwarf2/read.h (struct dwarf2_per_objfile)
14695 <quick_file_names_table>: Now htab_up.
14696
b3b32279
TT
146972020-02-08 Tom Tromey <tom@tromey.com>
14698
14699 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14700
1d33d811
TT
147012020-02-08 Tom Tromey <tom@tromey.com>
14702
14703 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14704 Rewrite.
14705 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14706 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14707 (abbrev_table::abbrev_table): No longer inline.
14708 (ABBREV_HASH_SIZE): Remove.
14709 (abbrev_table::m_abbrevs): Now an htab_up.
14710
86de1d91
TT
147112020-02-08 Tom Tromey <tom@tromey.com>
14712
14713 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14714 (cutu_reader): Update.
14715 (build_type_psymtabs_1): Update.
14716 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14717 (abbrev_table::alloc_abbrev): Update.
14718 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14719 (abbrev_table::read): New static method, renamed from
14720 abbrev_table_read_table.
14721 (abbrev_table::alloc_abbrev)
14722 (abbrev_table::add_abbrev): Now private.
14723 (abbrev_table::abbrev_table): Now private.
14724 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14725
0335378b
TT
147262020-02-08 Tom Tromey <tom@tromey.com>
14727
14728 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14729 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14730 htab_up.
14731
48b490f2
TT
147322020-02-08 Tom Tromey <tom@tromey.com>
14733
14734 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14735 htab_up.
14736 (lookup_dwo_unit_in_dwp): Update.
14737 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14738 on obstack.
14739
bc68fb19
TT
147402020-02-08 Tom Tromey <tom@tromey.com>
14741
14742 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14743 obstack.
14744
d15acc42
TT
147452020-02-08 Tom Tromey <tom@tromey.com>
14746
14747 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14748 line_header_hash.
14749 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14750 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14751 Change type to htab_up.
14752
eaa5fa8b
TT
147532020-02-08 Tom Tromey <tom@tromey.com>
14754
14755 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14756 htab_up. Don't allocate on obstack.
14757 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14758 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14759 Change type to htab_up.
14760
b0b6a987
TT
147612020-02-08 Tom Tromey <tom@tromey.com>
14762
14763 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14764 Change type to htab_up.
14765 * dwarf2/read.c (create_signatured_type_table_from_index)
14766 (create_signatured_type_table_from_debug_names)
14767 (create_all_type_units, add_type_unit)
14768 (lookup_dwo_signatured_type, lookup_signatured_type)
14769 (process_skeletonless_type_unit): Update.
14770 (create_debug_type_hash_table, create_debug_types_hash_table):
14771 Change type of types_htab.
14772 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14773 htab_up. Don't allocate on obstack.
14774 (create_cus_hash_table): Change type of cus_htab parameter.
14775 (struct dwo_file) <cus, tus>: Now htab_up.
14776 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14777 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14778 (queue_and_load_all_dwo_tus): Update.
14779 * dwarf2/index-write.c (write_gdbindex): Update.
14780 (write_debug_names): Update.
14781
39856def
TT
147822020-02-08 Tom Tromey <tom@tromey.com>
14783
14784 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14785 dwarf2/read.c. Remove "next" member. Add constructor ntad
14786 destructor.
14787 (struct dwarf2_per_objfile) <queue>: New member.
14788 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14789 dwarf2/read.h.
14790 (dwarf2_queue, dwarf2_queue_tail): Remove.
14791 (class dwarf2_queue_guard): Add parameter to constructor. Use
14792 DISABLE_COPY_AND_ASSIGN.
14793 <m_per_objfile>: New member.
14794 <~dwarf2_queue_guard>: Rewrite.
14795 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14796 Update.
14797 (~dwarf2_queue_item): New.
14798
3e225074
TT
147992020-02-08 Tom Tromey <tom@tromey.com>
14800
14801 * dwarf2/read.c (struct die_info) <has_children>: New member.
14802 (dw2_get_file_names_reader): Remove has_children.
14803 (dw2_get_file_names): Update.
14804 (read_cutu_die_from_dwo): Remove has_children.
14805 (cutu_reader::init_tu_and_read_dwo_dies)
14806 (cutu_reader::cutu_reader): Update.
14807 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14808 Remove has_children.
14809 (build_type_psymtabs_1, process_skeletonless_type_unit)
14810 (load_partial_comp_unit, load_full_comp_unit): Update.
14811 (create_dwo_cu_reader): Remove has_children.
14812 (create_cus_hash_table, read_die_and_children): Update.
14813 (read_full_die_1,read_full_die): Remove has_children.
14814 (read_signatured_type): Update.
14815 (class cutu_reader) <has_children>: Remove.
14816
82ca8957
TT
148172020-02-08 Tom Tromey <tom@tromey.com>
14818
14819 * dwarf2/expr.c: Rename from dwarf2expr.c.
14820 * dwarf2/expr.h: Rename from dwarf2expr.h.
14821 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14822 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14823 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14824 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14825 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14826 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14827 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14828 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14829 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14830 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14831 * dwarf2/loc.c: Rename from dwarf2loc.c.
14832 * dwarf2/loc.h: Rename from dwarf2loc.h.
14833 * dwarf2/read.c: Rename from dwarf2read.c.
14834 * dwarf2/read.h: Rename from dwarf2read.h.
14835 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14836 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14837 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14838 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14839 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14840 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14841 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14842 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14843 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14844 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14845 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14846 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14847 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14848 Update.
14849 * Makefile.in (COMMON_SFILES): Update.
14850 (HFILES_NO_SRCDIR): Update.
14851
9e35d499
TT
148522020-02-08 Tom Tromey <tom@tromey.com>
14853
14854 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14855 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14856
1eba2311
TT
148572020-02-08 Tom Tromey <tom@tromey.com>
14858
14859 * dwarf2read.h (struct die_info): Don't declare.
14860
e41c2da2
TT
148612020-02-08 Tom Tromey <tom@tromey.com>
14862
14863 * dwarf2read.h (die_info_ptr): Remove typedef.
14864
4fc6c0d5
TT
148652020-02-08 Tom Tromey <tom@tromey.com>
14866
14867 * dwarf2read.c (read_call_site_scope)
14868 (handle_data_member_location, dwarf2_add_member_fn)
14869 (mark_common_block_symbol_computed, read_common_block)
14870 (attr_to_dynamic_prop, partial_die_info::read)
14871 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14872 (dwarf2_symbol_mark_computed, set_die_type): Update.
14873 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14874 method.
14875 (attr_form_is_block): Don't declare.
14876 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14877
cd6c91b4
TT
148782020-02-08 Tom Tromey <tom@tromey.com>
14879
14880 * dwarf2read.c (dwarf2_find_base_address, )
14881 (read_call_site_scope, rust_containing_type)
14882 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14883 (handle_data_member_location, dwarf2_add_member_fn)
14884 (get_alignment, read_structure_type, process_structure_scope)
14885 (mark_common_block_symbol_computed, read_common_block)
14886 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14887 (partial_die_info::read, read_attribute_value, new_symbol)
14888 (lookup_die_type, dwarf2_get_ref_die_offset)
14889 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14890 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14891 (dwarf2_symbol_mark_computed): Update.
14892 * dwarf2/attribute.h (struct attribute) <value_as_address,
14893 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14894 methods.
14895 (value_as_address, attr_form_is_section_offset)
14896 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14897 * dwarf2/attribute.c (attribute::value_as_address)
14898 (attribute::form_is_section_offset, attribute::form_is_constant)
14899 (attribute::form_is_ref): Now methods.
14900
162dce55
TT
149012020-02-08 Tom Tromey <tom@tromey.com>
14902
14903 * dwarf2read.c (struct attribute, DW_STRING)
14904 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14905 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14906 (attr_form_is_block, attr_form_is_section_offset)
14907 (attr_form_is_constant, attr_form_is_ref): Move.
14908 * dwarf2/attribute.h: New file.
14909 * dwarf2/attribute.c: New file, from dwarf2read.c.
14910 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14911
3054dd54
TT
149122020-02-08 Tom Tromey <tom@tromey.com>
14913
14914 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14915 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14916 Move.
14917 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14918 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14919 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14920 abbrev.c.
14921 * dwarf2/abbrev.h: New file.
14922 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14923 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14924
96b79293
TT
149252020-02-08 Tom Tromey <tom@tromey.com>
14926
14927 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14928 (dwarf2_section_size, dwarf2_get_section_info)
14929 (create_signatured_type_table_from_debug_names)
14930 (create_addrmap_from_aranges, read_debug_names_from_section)
14931 (get_gdb_index_contents_from_section, read_comp_unit_head)
14932 (error_check_comp_unit_head, read_abbrev_offset)
14933 (create_debug_type_hash_table, init_cu_die_reader)
14934 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14935 (read_comp_units_from_section, create_cus_hash_table)
14936 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14937 (create_dwp_v2_section, dwarf2_rnglists_process)
14938 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14939 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14940 (read_indirect_string_from_dwz, read_addr_index_1)
14941 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14942 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14943 (fill_in_loclist_baton): Update.
14944 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14945 get_containing_section, get_bfd_owner, get_bfd_section,
14946 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14947 (dwarf2_read_section, get_section_name, get_section_file_name)
14948 (get_containing_section, get_section_bfd_owner)
14949 (get_section_bfd_section, get_section_name, get_section_file_name)
14950 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14951 declare.
14952 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14953 (dwarf2_section_info::get_bfd_owner)
14954 (dwarf2_section_info::get_bfd_section)
14955 (dwarf2_section_info::get_name)
14956 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14957 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14958 (dwarf2_section_info::read): Now methods.
14959 * dwarf-index-write.c (class debug_names): Update.
14960
2c86cff9
TT
149612020-02-08 Tom Tromey <tom@tromey.com>
14962
14963 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14964 Move to dwarf2/section.h.
14965 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14966 (get_section_bfd_section, get_section_name)
14967 (get_section_file_name, get_section_id, get_section_flags)
14968 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14969 dwarf2/section.c.
14970 * dwarf2/section.h: New file.
14971 * dwarf2/section.c: New file, from dwarf2read.c.
14972 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14973
f4382c45
TT
149742020-02-08 Tom Tromey <tom@tromey.com>
14975
14976 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14977 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14978 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14979 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14980 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14981 * dwarf2/leb.h: New file, from dwarf2read.c.
14982 * dwarf2/leb.c: New file, from dwarf2read.c.
14983 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14984 Remove.
14985 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14986 (COMMON_SFILES): Add dwarf2/leb.c.
14987
01840b7a
JB
149882020-02-08 Joel Brobecker <brobecker@adacore.com>
14989
14990 GDB 9.1 released.
14991
dfcb27e4
IB
149922020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14993
14994 PR gdb/25190:
aac66a4c
SM
14995 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14996 * gdb/remote.c (remote_console_output): Update.
14997 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14998 (ui_file_puts): ...this.
14999 * gdb/ui-file.h (ui_file_puts): Add declaration.
15000 * gdb/utils.c (emit_style_escape): Update.
15001 (flush_wrap_buffer): Update.
15002 (fputs_maybe_filtered): Update.
15003 (fputs_unfiltered): Add function.
dfcb27e4 15004
faa17681
IB
150052020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15006
aac66a4c
SM
15007 * gdb/event-loop.c (gdb_wait_for_event): Update.
15008 * gdb/printcmd.c (printf_command): Update.
15009 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15010 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15011 (gdb_os_flush_stderr): Update.
15012 * gdb/remote.c (remote_console_output): Update.
15013 * gdb/ui-file.c (gdb_flush): Rename to...
15014 (ui_file_flush): ...this.
15015 (stderr_file::write): Update.
15016 (stderr_file::puts): Update.
15017 * gdb/ui-file.h (gdb_flush): Rename to...
15018 (ui_file_flush): ...this.
15019 * gdb/utils.c (gdb_flush): Add function.
15020 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15021
5abbbe1d
TT
150222020-02-07 Tom Tromey <tromey@adacore.com>
15023
15024 PR breakpoints/24915:
15025 * source.c (find_and_open_source): Do not check basenames_may_differ.
15026
919adfe8
TT
150272020-02-07 Tom Tromey <tom@tromey.com>
15028
15029 * README: Update gdbserver documentation.
15030 * gdbserver: Move to top level.
15031 * configure.tgt (build_gdbserver): Remove.
15032 * configure.ac: Remove --enable-gdbserver.
15033 * configure: Rebuild.
15034 * Makefile.in (distclean): Don't mention gdbserver.
15035
1d5d29e7
SV
150362020-02-06 Shahab Vahedi <shahab@synopsys.com>
15037
15038 * source-cache.c (source_cache::ensure): Surround
15039 get_plain_source_lines with a try/catch.
15040 (source_cache::get_line_charpos): Get rid of try/catch
15041 and only check for the return value of "ensure".
15042 * tui/tui-source.c (tui_source_window::set_contents):
15043 Simplify "nlines" calculation.
15044
6eb1129c
SV
150452020-02-06 Shahab Vahedi <shahab@synopsys.com>
15046
15047 * MAINTAINERS (Write After Approval): Add myself.
15048
c6a42d11
CB
150492020-02-05 Christian Biesinger <cbiesinger@google.com>
15050
15051 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15052 function call.
15053
c8ecdda6
CB
150542020-02-05 Christian Biesinger <cbiesinger@google.com>
15055
15056 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15057
f6480e70
MR
150582020-02-05 Maciej W. Rozycki <macro@wdc.com>
15059
15060 * nat/riscv-linux-tdesc.h: New file.
15061 * nat/riscv-linux-tdesc.c: New file, taking code from...
15062 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15063 ... here.
15064 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15065 NATDEPFILES.
15066
dcc9fbc6
AB
150672020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15068
15069 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15070 we don't set the fake simulator ptid to the null_ptid.
15071
719546c4
SM
150722020-02-03 Simon Marchi <simon.marchi@efficios.com>
15073
15074 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15075 * gdbthread.h (class thread_info) <resumed>: Likewise.
15076 * infrun.c (resume_1): Likewise.
15077 (proceed): Likewise.
15078 (infrun_thread_stop_requested): Likewise.
15079 (stop_all_threads): Likewise.
15080 (handle_inferior_event): Likewise.
15081 (restart_threads): Likewise.
15082 (finish_step_over): Likewise.
15083 (keep_going_stepped_thread): Likewise.
15084 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15085 (linux_handle_extended_wait): Likewise.
15086 * record-btrace.c (get_thread_current_frame_id): Likewise.
15087 * record-full.c (record_full_wait_1): Likewise.
15088 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15089 * target.c (target_resume): Likewise.
15090 * thread.c (set_running_thread): Likewise.
15091
e409c542
AKS
150922020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15093
15094 * f-valprint.c (f77_print_array_1): Changed datatype of index
15095 variable to LONGEST from int to enable it to contain bound
15096 values correctly.
15097
ee98c0da
MR
150982020-02-03 Maciej W. Rozycki <macro@wdc.com>
15099
15100 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15101 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15102 offsets according to FLEN determined.
15103 (riscv_linux_nat_target::read_description): Determine FLEN
15104 dynamically.
15105 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15106 according to FLEN determined.
15107 (riscv_linux_nat_target::store_registers): Likewise.
15108
aa66aac4
SV
151092020-02-01 Shahab Vahedi <shahab@synopsys.com>
15110
15111 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15112 when reg->group is empty and reggroup is not.
15113
fd9faca8
TT
151142020-01-31 Tom Tromey <tromey@adacore.com>
15115
15116 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15117 Call beneath target's mourn_inferior after unpushing.
15118
42330a68
AB
151192020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15120
15121 PR tui/9765
15122 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15123 have enough lines to fill the screen, still return the lowest
15124 address we found.
15125
7a27a45b
AB
151262020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15127
15128 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15129 '-', '<', and '>' commands.
15130
c47f70e2
PA
151312020-01-29 Pedro Alves <palves@redhat.com>
15132 Sergio Durigan Junior <sergiodj@redhat.com>
15133
15134 * infcmd.c (construct_inferior_arguments): Assert that
15135 'argc' is greater than 0.
15136
5133a315
LM
151372020-01-29 Luis Machado <luis.machado@linaro.org>
15138
15139 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15140 (BRK_INSN_MASK): Define to 0xd4200000.
15141 (aarch64_program_breakpoint_here_p): New function.
15142 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15143 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15144 breakpoint.c.
15145 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15146 breakpoint.h
15147 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15148 call gdbarch_program_breakpoint_here_p.
15149 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15150 default_program_breakpoint_here_p, changed return type to bool and
15151 simplified.
15152 * breakpoint.h (program_breakpoint_here): Moved prototype to
15153 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15154 return type to bool.
15155 * gdbarch.c: Regenerate.
15156 * gdbarch.h: Regenerate.
15157 * gdbarch.sh (program_breakpoint_here_p): New method.
15158 * infrun.c (handle_signal_stop): Call
15159 gdbarch_program_breakpoint_here_p.
15160
168f8c6b
TT
151612020-01-26 Tom Tromey <tom@tromey.com>
15162
15163 * ctfread.c (struct ctf_fp_info): Reindent.
15164 (_initialize_ctfread): Remove.
15165
128a391f
TT
151662020-01-26 Tom Tromey <tom@tromey.com>
15167
15168 * psymtab.c (partial_map_expand_apply)
15169 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15170 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15171 (psym_print_stats, psym_expand_symtabs_for_function)
15172 (psym_map_symbol_filenames, psym_map_matching_symbols)
15173 (psym_expand_symtabs_matching)
15174 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15175 (maintenance_check_psymtabs): Use new methods.
15176 * psympriv.h (struct partial_symtab) <readin_p,
15177 get_compunit_symtab>: New methods.
15178 <readin, compunit_symtab>: Remove members.
15179 (struct standard_psymtab): New.
15180 (struct legacy_psymtab): Derive from standard_psymtab.
15181 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15182 standard_psymtab.
15183 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15184
0494dbec
TT
151852020-01-26 Tom Tromey <tom@tromey.com>
15186
15187 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15188 read_dependencies. Add assert.
15189 * psymtab.c (partial_symtab::read_dependencies): New method.
15190 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15191 method.
15192 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15193 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15194 read_dependencies.
15195 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15196 Add assert.
15197
8566b89b
TT
151982020-01-26 Tom Tromey <tom@tromey.com>
15199
15200 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15201 Call expand_psymtab.
15202 (xcoff_read_symtab): Call expand_psymtab.
15203 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15204 legacy_expand_psymtab.
15205 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15206 method.
15207 (struct legacy_psymtab) <expand_psymtab>: Implement.
15208 <legacy_expand_psymtab>: New member.
15209 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15210 (parse_partial_symbols): Set legacy_expand_psymtab.
15211 (psymtab_to_symtab_1): Change argument order. Call
15212 expand_psymtab.
15213 (new_psymtab): Set legacy_expand_psymtab.
15214 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15215 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15216 expand_psymtab.
15217 (dwarf2_psymtab::expand_psymtab): Rename from
15218 psymtab_to_symtab_1. Call expand_psymtab.
15219 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15220 (dbx_end_psymtab): Likewise.
15221 (dbx_psymtab_to_symtab_1): Change argument order. Call
15222 expand_psymtab.
15223 (dbx_read_symtab): Call expand_psymtab.
15224 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15225 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15226 (ctf_psymtab::read_symtab): Call expand_psymtab.
15227
077cbab2
TT
152282020-01-26 Tom Tromey <tom@tromey.com>
15229
15230 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15231 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15232 messages.
15233 * mdebugread.c (mdebug_read_symtab): Remove prints.
15234 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15235 assert.
15236 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15237
891813be
TT
152382020-01-26 Tom Tromey <tom@tromey.com>
15239
15240 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15241 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15242 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15243 legacy_symtab.
15244 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15245 * psymtab.c (psymtab_to_symtab): Call method.
15246 (dump_psymtab): Update.
15247 * psympriv.h (struct partial_symtab): Add virtual destructor.
15248 <read_symtab>: New method.
15249 (struct legacy_symtab): New.
15250 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15251 (struct pst_map) <pst>: Now a legacy_psymtab.
15252 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15253 (new_psymtab): Use legacy_psymtab.
15254 * dwarf2read.h (struct dwarf2_psymtab): New.
15255 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15256 * dwarf2read.c (dwarf2_create_include_psymtab)
15257 (dwarf2_build_include_psymtabs, create_type_unit_group)
15258 (create_partial_symtab, process_psymtab_comp_unit_reader)
15259 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15260 (set_partial_user): Use dwarf2_psymtab.
15261 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15262 (psymtab_to_symtab_1, process_full_comp_unit)
15263 (process_full_type_unit, dwarf2_ranges_read)
15264 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15265 (dwarf_decode_lines): Use dwarf2_psymtab.
15266 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15267 (add_address_entry_worker, write_one_signatured_type)
15268 (recursively_count_psymbols, recursively_write_psymbols)
15269 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15270 (write_debug_names): Likewise.
15271 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15272 <pst>: Now a legacy_psymtab.
15273 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15274 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15275 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15276 * ctfread.c (struct ctf_psymtab): New.
15277 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15278 ctf_psymtab.
15279 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15280 (create_partial_symtab): Return a ctf_psymtab.
15281 (scan_partial_symbols): Update.
15282
c3693a1d
TT
152832020-01-26 Tom Tromey <tom@tromey.com>
15284
15285 * xcoffread.c (xcoff_start_psymtab): Use new.
15286 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15287 renamed from start_psymtab_common.
15288 * psympriv.h (struct partial_symtab): Add new constructor.
15289 (start_psymtab_common): Don't declare.
15290 * mdebugread.c (parse_partial_symbols): Use new.
15291 * dwarf2read.c (create_partial_symtab): Use new.
15292 * dbxread.c (start_psymtab): Use new.
15293 * ctfread.c (create_partial_symtab): Use new.
15294
32caafd0
TT
152952020-01-26 Tom Tromey <tom@tromey.com>
15296
15297 * xcoffread.c (xcoff_end_psymtab): Use new.
15298 * psymtab.c (start_psymtab_common): Use new.
15299 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15300 Update.
15301 * psympriv.h (struct partial_symtab): Add parameters to
15302 constructor. Don't inline.
15303 (allocate_psymtab): Don't declare.
15304 * mdebugread.c (new_psymtab): Use new.
15305 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15306 * dbxread.c (dbx_end_psymtab): Use new.
15307
abaa2f23
TT
153082020-01-26 Tom Tromey <tom@tromey.com>
15309
15310 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15311 allocate_psymtab. Update documentation.
15312 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15313 allocate_psymtab. Do not use new.
15314 (allocate_psymtab): Use new. Update.
15315
6d94535f
TT
153162020-01-26 Tom Tromey <tom@tromey.com>
15317
15318 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15319 * psymtab.c (psym_print_stats): Update.
15320 * psympriv.h (struct partial_symtab) <readin,
15321 psymtabs_addrmap_supported, anonymous>: Now bool.
15322 * mdebugread.c (psymtab_to_symtab_1): Update.
15323 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15324 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15325 (process_full_comp_unit, process_full_type_unit): Update.
15326 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15327 * ctfread.c (psymtab_to_symtab): Update.
15328
6f17252b
TT
153292020-01-26 Tom Tromey <tom@tromey.com>
15330
15331 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15332 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15333 * psymtab.c (psymtab_storage): Delete psymtabs.
15334 (psymtab_storage::allocate_psymtab): Use new.
15335 (psymtab_storage::discard_psymtab): Use delete.
15336 * psympriv.h (struct partial_symtab): Add constructor and
15337 initializers.
15338
f6f1cebc
TT
153392020-01-26 Tom Tromey <tom@tromey.com>
15340
15341 * machoread.c: Do not include psympriv.h.
15342
e47e48f6
PW
153432020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15344
15345 * NEWS: Mention the new option and the set/show commands.
15346
a2fedca9
PW
153472020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15348
15349 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15350 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15351 (validate_exec_file): New variables, enums, functions.
15352 (exec_file_locate_attach, print_section_info): Style the filenames.
15353 (_initialize_exec): Install show_exec_file_mismatch_command and
15354 set_exec_file_mismatch_command.
15355 * gdbcore.h (validate_exec_file): Declare.
15356 * infcmd.c (attach_command): Call validate_exec_file.
15357 * remote.c ( remote_target::remote_add_inferior): Likewise.
15358
7ffa82e1
AB
153592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15360
15361 * frame.c (find_frame_sal): Move call to get_next_frame into more
15362 inner scope.
15363 * inline-frame.c (inilne_state) <inline_state>: Update argument
15364 types.
15365 (inilne_state) <skipped_symbol>: Rename to...
15366 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15367 (skip_inline_frames): Build vector of skipped symbols and use this
15368 to reate the inline_state.
15369 (inline_skipped_symbol): Add a comment and some assertions, fetch
15370 skipped symbol from the list.
15371
3d92a3e3
AB
153722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15373
15374 * buildsym.c (lte_is_less_than): Delete.
15375 (buildsym_compunit::end_symtab_with_blockvector): Create local
15376 lambda function to sort line table entries, and use
15377 std::stable_sort instead of std::sort.
15378 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15379 markers when looking for a previous line.
15380
94a72be7
AB
153812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15382
15383 * dwarf2read.c (lnp_state_machine::record_line): Include
15384 end_sequence parameter in debug print out. Record the line if we
15385 are at an end_sequence marker even if it's not the start of a
15386 statement.
15387 * symmisc.c (maintenance_print_one_line_table): Print end of
15388 sequence markers with 'END' not '0'.
15389
53af73bf
PA
153902020-01-24 Pedro Alves <palves@redhat.com>
15391
15392 PR gdb/25410
15393 * thread.c (scoped_restore_current_thread::restore): Use
15394 switch_to_inferior_no_thread.
15395 * exec.c: Include "progspace-and-thread.h".
15396 (add_target_sections, remove_target_sections):
15397 scoped_restore_current_pspace_and_thread instead of
15398 scoped_restore_current_thread.
15399 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15400 and aspace to the inferior before calling clone_program_space.
15401 Remove stale comment.
15402
3050c6f4
CB
154032020-01-24 Christian Biesinger <cbiesinger@google.com>
15404
15405 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15406 (arm_netbsd_nat_target::fetch_registers): ...this.
15407 (arm_nbsd_nat_target::store_registers): Rename to...
15408 (arm_netbsd_nat_target::store_registers): ...this.
15409
73685c7e
CB
154102020-01-24 Christian Biesinger <cbiesinger@google.com>
15411
15412 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15413 register_t.
15414
89203d40
CB
154152020-01-24 Christian Biesinger <cbiesinger@google.com>
15416
15417 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15418 Update comment.
15419 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15420 Likewise.
15421 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15422 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15423 the correct replacement (iterate_over_regset_sections).
15424 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15425 Update comment.
15426
1ba1ac88
AB
154272020-01-24 Graham Markall <graham.markall@embecosm.com>
15428
15429 PR gdb/23718
15430 * gdb/python/python.c (execute_gdb_command): Call
15431 async_enable_stdin in catch block.
15432
f3364a6d
AB
154332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15434
15435 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15436 SWITCH_THRU_ALL_UIS.
15437
733d0a67
AB
154382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15439
15440 PR tui/9765
15441 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15442 comment, add extra parameter, and update to store previous symbol
15443 when appropriate.
15444 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15445 add extra parameter.
15446 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15447 remove unneeded parameter, add try/catch around gdb_print_insn,
15448 rewrite to add items to asm_lines vector.
15449 (tui_find_backward_disassembly_start_address): New function.
15450 (tui_find_disassembly_address): Updated throughout.
15451 (tui_disasm_window::set_contents): Update for changes to
15452 tui_disassemble.
15453 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15454 number of lines to scroll.
15455
b3b3bada
SM
154562020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15457
15458 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15459 (SECT_OFF_DATA): Likewise.
15460 (SECT_OFF_RODATA): Likewise.
15461 (SECT_OFF_TEXT): Likewise.
15462 (SECT_OFF_BSS): Likewise.
15463 (struct objfile) <text_section_offset, data_section_offset>: New
15464 methods.
15465 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15466 objfile::text_section_offset.
15467 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15468 * coffread.c (coff_symtab_read): Likewise.
15469 (enter_linenos): Likewise.
15470 (process_coff_symbol): Likewise.
15471 * ctfread.c (get_objfile_text_range): Likewise.
15472 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15473 Use objfile::data_section_offset.
15474 * dwarf2-frame.c (execute_cfa_program): Use
15475 objfile::text_section_offset.
15476 (dwarf2_frame_find_fde): Likewise.
15477 * dwarf2read.c (create_addrmap_from_index): Likewise.
15478 (create_addrmap_from_aranges): Likewise.
15479 (dw2_find_pc_sect_compunit_symtab): Likewise.
15480 (process_psymtab_comp_unit_reader): Likewise.
15481 (add_partial_symbol): Likewise.
15482 (add_partial_subprogram): Likewise.
15483 (process_full_comp_unit): Likewise.
15484 (read_file_scope): Likewise.
15485 (read_func_scope): Likewise.
15486 (read_lexical_block_scope): Likewise.
15487 (read_call_site_scope): Likewise.
15488 (dwarf2_rnglists_process): Likewise.
15489 (dwarf2_ranges_process): Likewise.
15490 (dwarf2_ranges_read): Likewise.
15491 (dwarf_decode_lines_1): Likewise.
15492 (new_symbol): Likewise.
15493 (dwarf2_fetch_die_loc_sect_off): Likewise.
15494 (dwarf2_per_cu_text_offset): Likewise.
15495 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15496 * hppa-tdep.c (read_unwind_info): Likewise.
15497 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15498 * psympriv.h (struct partial_symtab): Likewise.
15499 * psymtab.c (find_pc_sect_psymtab): Likewise.
15500 * solib-svr4.c (enable_break): Likewise.
15501 * stap-probe.c (relocate_address): Use
15502 objfile::data_section_offset.
15503 * xcoffread.c (enter_line_range): Use
15504 objfile::text_section_offset.
15505 (read_xcoff_symtab): Likewise.
15506
ab53f382
SM
155072020-01-23 Simon Marchi <simon.marchi@efficios.com>
15508
15509 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15510 declaration to narrower scopes.
15511
e7eee665
SM
155122020-01-23 Simon Marchi <simon.marchi@efficios.com>
15513
15514 * darwin-nat.h (struct darwin_exception_msg, enum
15515 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15516 Move up.
15517 (class darwin_nat_target) <wait_1, check_new_threads,
15518 decode_exception_message, decode_message, stop_inferior,
15519 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15520 * darwin-nat.c (darwin_check_new_threads): Rename to...
15521 (darwin_nat_target::check_new_threads): ... this.
15522 (darwin_suspend_inferior_it): Remove.
15523 (darwin_decode_exception_message): Rename to...
15524 (darwin_nat_target::decode_exception_message): ... this.
15525 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15526 (darwin_decode_message): Rename to...
15527 (darwin_nat_target::decode_message): ... this.
15528 (cancel_breakpoint): Rename to...
15529 (darwin_nat_target::cancel_breakpoint): ... this.
15530 (darwin_wait): Rename to...
15531 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15532 instead of iterate_over_inferiors.
15533 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15534 (darwin_stop_inferior): Rename to...
15535 (darwin_nat_target::stop_inferior): ... this.
15536 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15537 (darwin_init_thread_list): Rename to...
15538 (darwin_nat_target::init_thread_list): ... this.
15539 (darwin_ptrace_him): Rename to...
15540 (darwin_nat_target::ptrace_him): ... this.
15541 (darwin_nat_target::create_inferior): Pass lambda function to
15542 fork_inferior.
15543 (darwin_nat_target::detach): Call stop_inferior instead of
15544 darwin_stop_inferior.
15545 * fork-inferior.h (fork_inferior): Change init_trace_fun
15546 parameter to gdb::function_view.
15547 * fork-inferior.c (fork_inferior): Likewise.
15548
c162ed3e
HD
155492020-01-23 Hannes Domani <ssbssa@yahoo.de>
15550
15551 * i386-cygwin-tdep.c (core_process_module_section): Update.
15552 * windows-nat.c (struct lm_info_windows): Add text_offset.
15553 (windows_xfer_shared_libraries): Update.
15554 * windows-tdep.c (windows_xfer_shared_library):
15555 Add text_offset_cached argument.
15556 * windows-tdep.h (windows_xfer_shared_library): Update.
15557
a1237872
SM
155582020-01-21 Simon Marchi <simon.marchi@efficios.com>
15559
15560 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15561
b3ee6dd9
SM
155622020-01-21 Simon Marchi <simon.marchi@efficios.com>
15563
15564 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15565 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15566 replace with range-based for.
15567 (gdbsim_interrupt_inferior): Remove.
15568 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15569 with a range-based for. Inline code from
15570 gdbsim_interrupt_inferior.
15571
f9fac3c8
SM
155722020-01-21 Simon Marchi <simon.marchi@efficios.com>
15573
15574 * infrun.c (proceed): Fix indentation.
15575
f6474de9
TT
155762020-01-21 Tom Tromey <tromey@adacore.com>
15577
15578 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15579 * python/python.c (python_extension_ops): Update.
15580 (gdbpy_colorize): New function.
15581 * python/lib/gdb/__init__.py (colorize): New function.
15582 * extension.h (ext_lang_colorize): Declare.
15583 * extension.c (ext_lang_colorize): New function.
15584 * extension-priv.h (struct extension_language_ops) <colorize>: New
15585 member.
15586 * cli/cli-style.c (_initialize_cli_style): Update help text.
15587
f0c702d4
LM
155882020-01-21 Luis Machado <luis.machado@linaro.org>
15589
15590 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15591 <cond>: Change type to bool.
15592 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15593 (aarch64_displaced_step_cb): Likewise.
15594 (aarch64_displaced_step_tb): Likewise.
15595
1ab139e5
LM
155962020-01-21 Luis Machado <luis.machado@linaro.org>
15597
15598 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15599 output.
15600
0c271889
LM
156012020-01-21 Luis Machado <luis.machado@linaro.org>
15602
15603 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15604 <pc_adjust>: Adjust the documentation.
15605 (aarch64_displaced_step_fixup): Check if PC really moved before
15606 adjusting it.
15607
4d89c1c7
TT
156082020-01-19 Tom Tromey <tom@tromey.com>
15609
15610 * disasm.c (~gdb_disassembler): New destructor.
15611 (gdb_buffered_insn_length): Call disassemble_free_target.
15612 * disasm.h (class gdb_disassembler): Declare destructor. Use
15613 DISABLE_COPY_AND_ASSIGN.
15614
c0ab21c2
TT
156152020-01-19 Tom Tromey <tom@tromey.com>
15616
15617 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15618 (die_reader_func_ftype): Remove.
15619 (cutu_reader): New class.
15620 (dw2_get_file_names_reader): Remove "data" parameter.
15621 (dw2_get_file_names): Use cutu_reader.
15622 (create_debug_type_hash_table): Update.
15623 (read_cutu_die_from_dwo): Update comment.
15624 (lookup_dwo_unit): Add dwo_name parameter.
15625 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15626 die_reader_func_ftype and data parameters.
15627 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15628 Remove die_reader_func_ftype and data parameters.
15629 (~cutu_reader): New; from init_cutu_and_read_dies.
15630 (cutu_reader::cutu_reader): Rename from
15631 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15632 and data parameters.
15633 (init_cutu_and_read_dies_simple): Remove.
15634 (struct process_psymtab_comp_unit_data): Remove.
15635 (process_psymtab_comp_unit_reader): Remove data parameter; add
15636 want_partial_unit and pretend_language parameters.
15637 (process_psymtab_comp_unit): Use cutu_reader.
15638 (build_type_psymtabs_reader): Remove data parameter.
15639 (build_type_psymtabs_1): Use cutu_reader.
15640 (process_skeletonless_type_unit): Likewise.
15641 (load_partial_comp_unit_reader): Remove.
15642 (load_partial_comp_unit): Use cutu_reader.
15643 (load_full_comp_unit_reader): Remove.
15644 (load_full_comp_unit): Use cutu_reader.
15645 (struct create_dwo_cu_data): Remove.
15646 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15647 dwo_unit parameters.
15648 (create_cus_hash_table): Use cutu_reader.
15649 (struct dwarf2_read_addr_index_data): Remove.
15650 (dwarf2_read_addr_index_reader): Remove.
15651 (dwarf2_read_addr_index): Use cutu_reader.
15652 (read_signatured_type_reader): Remove.
15653 (read_signatured_type): Use cutu_reader.
15654
45bbae5c
TT
156552020-01-19 Tom Tromey <tom@tromey.com>
15656
15657 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15658 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15659 (tui_wrefresh): Declare.
15660 * tui/tui-wingeneral.c (suppress_output): New global.
15661 (tui_suppress_output, ~tui_suppress_output): New constructor and
15662 destructor.
15663 (tui_wrefresh): New function.
15664 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15665 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15666 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15667 method.
15668 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15669 tui_wrefresh.
15670 (tui_data_window::no_refresh): New method.
15671 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15672 (tui_reg_command): Use tui_suppress_output
15673 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15674 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15675 method.
15676 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15677
4f13c1c0
TT
156782020-01-19 Tom Tromey <tom@tromey.com>
15679
15680 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15681 Handle case where symtab is null.
15682
fa47e446
SM
156832020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15684
15685 * linux-fork.c (one_fork_p): Simplify.
15686
26f42329
SM
156872020-01-17 Simon Marchi <simon.marchi@efficios.com>
15688
15689 * top.c (struct qt_args): Remove.
15690 (kill_or_detach): Change return type to void, replace `void *`
15691 parameter with a proper one.
15692 (print_inferior_quit_action): Likewise.
15693 (quit_confirm): Use range-based for loop to iterate over inferiors.
15694 (quit_force): Likewise.
15695
a9ac81b1
SM
156962020-01-17 Simon Marchi <simon.marchi@efficios.com>
15697
15698 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15699 `void *` parameter with proper parameters.
15700 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15701 (print_one_inferior): Change return type to void, replace `void *`
15702 parameter with proper parameters.
15703 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15704 inferiors.
15705 (get_other_inferior): Remove.
15706 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15707 inferiors.
15708
788eca49
SM
157092020-01-17 Simon Marchi <simon.marchi@efficios.com>
15710
15711 * mi/mi-interp.c (report_initial_inferior): Remove.
15712 (mi_interp::init): Use range-based for to iterate over inferiors.
15713
d9bc85b6
SM
157142020-01-17 Simon Marchi <simon.marchi@efficios.com>
15715
15716 * python/py-inferior.c (build_inferior_list): Remove.
15717 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15718
40c94099
CB
157192020-01-16 Christian Biesinger <cbiesinger@google.com>
15720
15721 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15722 (btrace_stitch_trace): Likewise.
15723 * charset.c (intermediate_encoding): Likewise (vaild).
15724 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15725 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15726 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15727
e0cdfe3c
HD
157282020-01-16 Hannes Domani <ssbssa@yahoo.de>
15729
15730 * windows-tdep.c (windows_get_tlb_type):
15731 Add rtl_user_process_parameters type.
15732
790f1718 157332020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15734 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15735
15736 PR build/24805
15737 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15738 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15739 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15740 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15741 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15742 (ps_plog): Redeclare exported functions with default visibility.
15743
3112ed97
NA
157442020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15745
15746 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15747 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15748
8dc3273e
SM
157492020-01-15 Simon Marchi <simon.marchi@efficios.com>
15750
15751 * infcmd.c (post_create_inferior): Use get_thread_regcache
15752 instead of get_current_regcache.
15753
ff47f4f0
TT
157542020-01-14 Tom Tromey <tom@tromey.com>
15755
15756 PR symtab/12535:
15757 * python/python.c (gdbpy_decode_line): Treat empty string the same
15758 as no argument.
15759
975f45b7
TT
157602020-01-14 Tom Tromey <tom@tromey.com>
15761
15762 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15763
25e57356
TT
157642020-01-14 Tom Tromey <tom@tromey.com>
15765
15766 * nat/linux-btrace.c: Don't include <config.h>.
15767 * nat/linux-ptrace.c: Don't include <config.h>.
15768 * nat/x86-linux-dregs.c: Don't include <config.h>.
15769
05ea2a05
TT
157702020-01-14 Tom Tromey <tom@tromey.com>
15771
15772 * configure: Rebuild.
15773 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15774
01027315
TT
157752020-01-14 Tom Tromey <tom@tromey.com>
15776
15777 * nat/x86-linux-dregs.c: Include configh.h.
15778 * nat/linux-ptrace.c: Include configh.h.
15779 * nat/linux-btrace.c: Include configh.h.
15780 * defs.h: Include config.h, bfd.h.
15781 * configure.ac: Don't source common.host.
15782 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15783 * configure: Rebuild.
15784 * acinclude.m4: Update path.
15785 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15786 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15787 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15788 (CLIBS): Add LIBSUPPORT.
15789 (CDEPS): Likewise.
15790 (COMMON_SFILES): Remove gdbsupport files.
15791 (HFILES_NO_SRCDIR): Likewise.
15792 (stamp-version): Update path to create-version.sh.
15793 (ALLDEPFILES): Remove gdbsupport files.
15794
b2ceabe8
TT
157952020-01-14 Tom Tromey <tom@tromey.com>
15796
15797 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15798 USE_WIN32API when needed.
15799 * configure.ac (USE_WIN32API): Don't define.
15800 (WIN32LIBS): Use WIN32APILIBS.
15801 * configure: Rebuild.
15802
25c51f71
TT
158032020-01-14 Tom Tromey <tom@tromey.com>
15804
15805 * configure: Rebuild.
15806 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15807
717c684d
BE
158082020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15809
15810 * skip.c (skip_function_command): Make skip w/o arguments use the
15811 name of the inlined function if pc is inside any inlined function.
15812
7da6a5b9
LM
158132020-01-14 Luis Machado <luis.machado@linaro.org>
15814
15815 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15816 * infrun.c (resume_1): Likewise.
15817 (handle_inferior_event): Remove stale comment.
15818 * linux-nat.c (linux_nat_target::resume): Update comments.
15819 (save_stop_reason): Likewise.
15820 (linux_nat_filter_event): Likewise.
15821 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15822
44e4c775
AB
158232020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15824
15825 * elfread.c (record_minimal_symbol): Set section index to 0 for
15826 non-allocatable sections.
15827
18a8505e
AT
15828
158292020-01-13 Ali Tamur <tamur@google.com>
15830
15831 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15832 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15833 to gdb::optional. Update comments.
15834 (dwo_file): Update comments.
15835 (read_attribute): Update API to take an additional out parameter,
15836 need_reprocess. This is used to mark attributes that need other
15837 attributes (e.g. str_offsets_base) for correct computation which may not
15838 have been read yet.
15839 (read_attribute_reprocess): New function declaration.
15840 (read_addr_index): Likewise.
15841 (read_dwo_str_index): Likewise.
15842 (read_stub_str_index): Likewise.
15843 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15844 (lookup_addr_base): New function definition.
15845 (lookup_ranges_base): Likewise.
15846 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15847 lookup_ranges_base.
15848 (init_cutu_and_read_dies): Update comments.
15849 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15850 unit. This is used to inherit parent's str_offsets_base and addr_base.
15851 Update comments.
15852 (init_cutu_and_read_dies_simple): Reflect API changes.
15853 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15854 (create_cus_hash_table): Change API to take parent compile unit.
15855 Reflect API changes.
15856 (open_and_init_dwo_file): Reflect API changes.
15857 (dwarf2_get_pc_bounds): Update comments.
15858 (dwarf2_record_block_ranges): Likewise.
15859 (read_full_die_1): Change implementation to reprocess attributes that
15860 need str_offsets_base and addr_base.
15861 (partial_die_info::read): Likewise.
15862 (read_attribute_reprocess): New function definition.
15863 (read_attribute_value): Change API to take an additional out parameter,
15864 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15865 when a non-dwo compile unit has index based attributes.
15866 (read_attribute): Reflect API changes.
15867 (read_addr_index_1): Reflect API changes. Update comments.
15868 (dwarf2_read_addr_index_data): Reflect API changes.
15869 (dwarf2_read_addr_index): Likewise.
15870 (read_str_index): Change API and implementation. This becomes a helper
15871 to be used by the new string index related methods. Update error
15872 message and comments.
15873 (read_dwo_str_index): New function definition.
15874 (read_stub_str_index): Likewise.
15875 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15876 * symfile.h (dwarf2_debug_sections): Likewise.
15877 * xcoffread.c (dwarf2_debug_sections): Likewise.
15878
0cac9354
SM
158792020-01-13 Simon Marchi <simon.marchi@efficios.com>
15880
15881 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15882 core_reg_sect type to gdb_byte *.
15883 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15884 * cris-tdep.c (fetch_core_registers): Likewise.
15885 * corelow.c (core_target::get_core_register_section): Change
15886 type of `contents` to gdb::byte_vector.
15887
9a6d629c
AB
158882020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15889
15890 * tui/tui-wingeneral.c (box_win): Position the title in the center
15891 of the border.
15892
d8b2f9e3
SM
158932020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15894
15895 * corelow.c (core_target::get_core_register_section): Use
15896 std::vector instead of alloca.
15897
bb564c58
SM
158982020-01-13 Simon Marchi <simon.marchi@efficios.com>
15899
15900 * warning.m4: Add -Wmissing-declarations to build_warnings.
15901 * configure: Re-generate.
15902
6b366111
SM
159032020-01-13 Simon Marchi <simon.marchi@efficios.com>
15904
15905 * python/python.c (init__gdb_module): Add declaration.
15906
6c265988
SM
159072020-01-13 Simon Marchi <simon.marchi@efficios.com>
15908
15909 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15910 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15911 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15912 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15913 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15914 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15915 * ada-exp.y (_initialize_ada_exp): Add declaration.
15916 * ada-lang.c (_initialize_ada_language): Add declaration.
15917 * ada-tasks.c (_initialize_tasks): Add declaration.
15918 * agent.c (_initialize_agent): Add declaration.
15919 * aix-thread.c (_initialize_aix_thread): Add declaration.
15920 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15921 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15922 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15923 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15924 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15925 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15926 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15927 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15928 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15929 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15930 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15931 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15932 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15933 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15934 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15935 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15936 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15937 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15938 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15939 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15940 * annotate.c (_initialize_annotate): Add declaration.
15941 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15942 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15943 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15944 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15945 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15946 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15947 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15948 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15949 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15950 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15951 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15952 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15953 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15954 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15955 * auto-load.c (_initialize_auto_load): Add declaration.
15956 * auxv.c (_initialize_auxv): Add declaration.
15957 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15958 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15959 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15960 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15961 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15962 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15963 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15964 * breakpoint.c (_initialize_breakpoint): Add declaration.
15965 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15966 * btrace.c (_initialize_btrace): Add declaration.
15967 * charset.c (_initialize_charset): Add declaration.
15968 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15969 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15970 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15971 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15972 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15973 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15974 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15975 * coffread.c (_initialize_coffread): Add declaration.
15976 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15977 * compile/compile.c (_initialize_compile): Add declaration.
15978 * complaints.c (_initialize_complaints): Add declaration.
15979 * completer.c (_initialize_completer): Add declaration.
15980 * copying.c (_initialize_copying): Add declaration.
15981 * corefile.c (_initialize_core): Add declaration.
15982 * corelow.c (_initialize_corelow): Add declaration.
15983 * cp-abi.c (_initialize_cp_abi): Add declaration.
15984 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15985 * cp-support.c (_initialize_cp_support): Add declaration.
15986 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15987 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15988 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15989 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15990 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15991 * ctfread.c (_initialize_ctfread): Add declaration.
15992 * d-lang.c (_initialize_d_language): Add declaration.
15993 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15994 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15995 * dbxread.c (_initialize_dbxread): Add declaration.
15996 * dcache.c (_initialize_dcache): Add declaration.
15997 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15998 * disasm.c (_initialize_disasm): Add declaration.
15999 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16000 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16001 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16002 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16003 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16004 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16005 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16006 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16007 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16008 * elfread.c (_initialize_elfread): Add declaration.
16009 * exec.c (_initialize_exec): Add declaration.
16010 * extension.c (_initialize_extension): Add declaration.
16011 * f-lang.c (_initialize_f_language): Add declaration.
16012 * f-valprint.c (_initialize_f_valprint): Add declaration.
16013 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16014 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16015 * filesystem.c (_initialize_filesystem): Add declaration.
16016 * findcmd.c (_initialize_mem_search): Add declaration.
16017 * findvar.c (_initialize_findvar): Add declaration.
16018 * fork-child.c (_initialize_fork_child): Add declaration.
16019 * frame-base.c (_initialize_frame_base): Add declaration.
16020 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16021 * frame.c (_initialize_frame): Add declaration.
16022 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16023 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16024 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16025 * gcore.c (_initialize_gcore): Add declaration.
16026 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16027 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16028 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16029 * gdbarch.c (_initialize_gdbarch): Add declaration.
16030 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16031 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16032 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16033 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16034 * go-lang.c (_initialize_go_language): Add declaration.
16035 * go32-nat.c (_initialize_go32_nat): Add declaration.
16036 * guile/guile.c (_initialize_guile): Add declaration.
16037 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16038 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16039 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16040 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16041 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16042 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16043 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16044 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16045 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16046 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16047 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16048 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16049 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16050 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16051 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16052 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16053 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16054 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16055 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16056 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16057 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16058 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16059 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16060 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16061 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16062 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16063 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16064 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16065 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16066 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16067 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16068 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16069 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16070 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16071 * infcall.c (_initialize_infcall): Add declaration.
16072 * infcmd.c (_initialize_infcmd): Add declaration.
16073 * inflow.c (_initialize_inflow): Add declaration.
16074 * infrun.c (_initialize_infrun): Add declaration.
16075 * interps.c (_initialize_interpreter): Add declaration.
16076 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16077 * jit.c (_initialize_jit): Add declaration.
16078 * language.c (_initialize_language): Add declaration.
16079 * linux-fork.c (_initialize_linux_fork): Add declaration.
16080 * linux-nat.c (_initialize_linux_nat): Add declaration.
16081 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16082 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16083 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16084 * m2-lang.c (_initialize_m2_language): Add declaration.
16085 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16086 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16087 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16088 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16089 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16090 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16091 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16092 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16093 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16094 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16095 * machoread.c (_initialize_machoread): Add declaration.
16096 * macrocmd.c (_initialize_macrocmd): Add declaration.
16097 * macroscope.c (_initialize_macroscope): Add declaration.
16098 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16099 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16100 * maint.c (_initialize_maint_cmds): Add declaration.
16101 * mdebugread.c (_initialize_mdebugread): Add declaration.
16102 * memattr.c (_initialize_mem): Add declaration.
16103 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16104 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16105 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16106 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16107 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16108 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16109 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16110 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16111 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16112 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16113 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16114 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16115 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16116 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16117 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16118 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16119 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16120 * mipsread.c (_initialize_mipsread): Add declaration.
16121 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16122 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16123 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16124 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16125 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16126 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16127 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16128 * nto-procfs.c (_initialize_procfs): Add declaration.
16129 * objc-lang.c (_initialize_objc_language): Add declaration.
16130 * observable.c (_initialize_observer): Add declaration.
16131 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16132 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16133 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16134 * osabi.c (_initialize_gdb_osabi): Add declaration.
16135 * osdata.c (_initialize_osdata): Add declaration.
16136 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16137 * parse.c (_initialize_parse): Add declaration.
16138 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16139 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16140 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16141 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16142 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16143 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16144 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16145 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16146 * printcmd.c (_initialize_printcmd): Add declaration.
16147 * probe.c (_initialize_probe): Add declaration.
16148 * proc-api.c (_initialize_proc_api): Add declaration.
16149 * proc-events.c (_initialize_proc_events): Add declaration.
16150 * proc-service.c (_initialize_proc_service): Add declaration.
16151 * procfs.c (_initialize_procfs): Add declaration.
16152 * producer.c (_initialize_producer): Add declaration.
16153 * psymtab.c (_initialize_psymtab): Add declaration.
16154 * python/python.c (_initialize_python): Add declaration.
16155 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16156 * record-btrace.c (_initialize_record_btrace): Add declaration.
16157 * record-full.c (_initialize_record_full): Add declaration.
16158 * record.c (_initialize_record): Add declaration.
16159 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16160 * regcache.c (_initialize_regcache): Add declaration.
16161 * reggroups.c (_initialize_reggroup): Add declaration.
16162 * remote-notif.c (_initialize_notif): Add declaration.
16163 * remote-sim.c (_initialize_remote_sim): Add declaration.
16164 * remote.c (_initialize_remote): Add declaration.
16165 * reverse.c (_initialize_reverse): Add declaration.
16166 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16167 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16168 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16169 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16170 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16171 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16172 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16173 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16174 Add declaration.
16175 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16176 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16177 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16178 * rust-exp.y (_initialize_rust_exp): Add declaration.
16179 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16180 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16181 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16182 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16183 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16184 * score-tdep.c (_initialize_score_tdep): Add declaration.
16185 * ser-go32.c (_initialize_ser_dos): Add declaration.
16186 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16187 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16188 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16189 * ser-uds.c (_initialize_ser_socket): Add declaration.
16190 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16191 * serial.c (_initialize_serial): Add declaration.
16192 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16193 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16194 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16195 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16196 * skip.c (_initialize_step_skip): Add declaration.
16197 * sol-thread.c (_initialize_sol_thread): Add declaration.
16198 * solib-aix.c (_initialize_solib_aix): Add declaration.
16199 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16200 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16201 * solib-frv.c (_initialize_frv_solib): Add declaration.
16202 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16203 * solib-target.c (_initialize_solib_target): Add declaration.
16204 * solib.c (_initialize_solib): Add declaration.
16205 * source-cache.c (_initialize_source_cache): Add declaration.
16206 * source.c (_initialize_source): Add declaration.
16207 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16208 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16209 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16210 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16211 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16212 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16213 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16214 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16215 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16216 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16217 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16218 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16219 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16220 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16221 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16222 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16223 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16224 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16225 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16226 * stabsread.c (_initialize_stabsread): Add declaration.
16227 * stack.c (_initialize_stack): Add declaration.
16228 * stap-probe.c (_initialize_stap_probe): Add declaration.
16229 * std-regs.c (_initialize_frame_reg): Add declaration.
16230 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16231 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16232 * symfile.c (_initialize_symfile): Add declaration.
16233 * symmisc.c (_initialize_symmisc): Add declaration.
16234 * symtab.c (_initialize_symtab): Add declaration.
16235 * target.c (_initialize_target): Add declaration.
16236 * target-connection.c (_initialize_target_connection): Add
16237 declaration.
16238 * target-dcache.c (_initialize_target_dcache): Add declaration.
16239 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16240 * thread.c (_initialize_thread): Add declaration.
16241 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16242 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16243 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16244 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16245 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16246 * tracectf.c (_initialize_ctf): Add declaration.
16247 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16248 * tracefile.c (_initialize_tracefile): Add declaration.
16249 * tracepoint.c (_initialize_tracepoint): Add declaration.
16250 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16251 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16252 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16253 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16254 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16255 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16256 * tui/tui.c (_initialize_tui): Add declaration.
16257 * typeprint.c (_initialize_typeprint): Add declaration.
16258 * ui-style.c (_initialize_ui_style): Add declaration.
16259 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16260 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16261 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16262 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16263 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16264 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16265 * unittests/filtered_iterator-selftests.c
16266 (_initialize_filtered_iterator_selftests): Add declaration.
16267 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16268 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16269 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16270 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16271 * unittests/main-thread-selftests.c
16272 (_initialize_main_thread_selftests): Add declaration.
16273 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16274 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16275 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16276 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16277 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16278 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16279 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16280 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16281 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16282 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16283 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16284 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16285 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16286 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16287 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16288 declaration.
16289 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16290 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16291 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16292 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16293 * user-regs.c (_initialize_user_regs): Add declaration.
16294 * utils.c (_initialize_utils): Add declaration.
16295 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16296 * valops.c (_initialize_valops): Add declaration.
16297 * valprint.c (_initialize_valprint): Add declaration.
16298 * value.c (_initialize_values): Add declaration.
16299 * varobj.c (_initialize_varobj): Add declaration.
16300 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16301 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16302 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16303 * windows-nat.c (_initialize_windows_nat): Add declaration.
16304 (_initialize_check_for_gdb_ini): Add declaration.
16305 (_initialize_loadable): Add declaration.
16306 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16307 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16308 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16309 * xcoffread.c (_initialize_xcoffread): Add declaration.
16310 * xml-support.c (_initialize_xml_support): Add declaration.
16311 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16312 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16313 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16314 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16315
e2de1eec
SM
163162020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16317
16318 * regformats/regdat.sh: Generate declaration for init function.
16319
e0037b4c
SM
163202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16321
16322 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16323 up.
16324 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16325 close_one_inferior>: New methods.
16326 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16327 pass down target to find_inferior_pid.
16328 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16329 Pass down target to find_inferior_ptid.
16330 (gdbsim_target::create_inferior): Pass down target to
16331 add_thread_silent.
16332 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16333 target down to find_inferior_ptid and switch_to_thread.
16334 (gdbsim_target::close): Update to call close_one_inferior.
16335 (struct resume_data): Remove.
16336 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16337 directly, rather than through a void pointer.
16338 (gdbsim_target::resume): Update to call resume_one_inferior.
16339
58920b5b
SM
163402020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16341
16342 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16343
4ec89149
PA
163442020-01-12 Pedro Alves <palves@redhat.com>
16345
16346 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16347 directly for the current inferior instead of
16348 discard_all_inferiors.
16349 (discard_all_inferiors): Delete.
16350
7c392d1d
TT
163512020-01-11 Tom Tromey <tom@tromey.com>
16352
16353 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16354 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16355 deprecated_safe_get_selected_frame.
16356
d9ebdab7
TBA
163572020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16358
16359 * inferior.c (print_inferior): Switch inferior before printing it.
16360
f3c469b9
PA
163612020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16362 Pedro Alves <palves@redhat.com>
16363
16364 * progspace-and-thread.c (switch_to_program_space_and_thread):
16365 Assert there's an inferior for PSPACE. Use
16366 switch_to_inferior_no_thread to switch the inferior too.
16367 * progspace.c (program_space::~program_space): Call
16368 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16369 (program_space::free_all_objfiles): Don't call clear_symtab_users
16370 here.
16371 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16372
65c574f6
PA
163732020-01-10 Pedro Alves <palves@redhat.com>
16374
16375 * NEWS: Mention multi-target debugging, "info connections", and
16376 "add-inferior -no-connection".
16377
2f4fcf00
PA
163782020-01-10 Pedro Alves <palves@redhat.com>
16379
16380 * infrun.c: Include "target-connection.h".
16381 (check_multi_target_resumption): New.
16382 (proceed): Call it.
16383 * target-connection.c (make_target_connection_string): Make
16384 extern.
16385 * target-connection.h (make_target_connection_string): Declare.
16386
121b3efd
PA
163872020-01-10 Pedro Alves <palves@redhat.com>
16388
16389 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16390 * inferior.c (uiout_field_connection): New function.
16391 (print_inferior): Add new "connection-id" column.
16392 (add_inferior_command): Show connection number/string of added
16393 inferior.
16394 * process-stratum-target.h
16395 (process_stratum_target::connection_string): New virtual method.
16396 (process_stratum_target::connection_number): New field.
16397 * remote.c (remote_target::connection_string): New override.
16398 * target-connection.c: New file.
16399 * target-connection.h: New file.
16400 * target.c (decref_target): Remove process_stratum targets from
16401 the connection list.
16402 (target_stack::push): Add process_stratum targets to the
16403 connection list.
16404
4f837581
PA
164052020-01-10 Pedro Alves <palves@redhat.com>
16406
16407 Revert:
16408 2016-04-12 Pedro Alves <palves@redhat.com>
16409 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16410 Remove references to name.
16411 * serial.h (struct serial) <name>: Delete.
16412
f4ec508e
PA
164132020-01-10 Pedro Alves <palves@redhat.com>
16414
16415 * gdbarch-selftests.c (register_to_value_test): Remove "target
16416 already pushed" check.
16417
5b6d1e4f
PA
164182020-01-10 Pedro Alves <palves@redhat.com>
16419 John Baldwin <jhb@FreeBSD.org>
16420
16421 * aarch64-linux-nat.c
16422 (aarch64_linux_nat_target::thread_architecture): Adjust.
16423 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16424 (task_command_1): Likewise.
16425 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16426 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16427 (aix_thread_target::store_registers)
16428 (aix_thread_target::thread_alive): Adjust.
16429 * amd64-fbsd-tdep.c: Include "inferior.h".
16430 (amd64fbsd_get_thread_local_address): Pass down target.
16431 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16432 thread's gdbarch instead of target_gdbarch.
16433 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16434 get_last_target_status.
16435 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16436 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16437 inferiors.
16438 (update_inserted_breakpoint_locations): Skip if inferiors with no
16439 execution.
16440 (update_global_location_list): When handling moribund locations,
16441 find representative inferior for location's pspace, and use thread
16442 count of its process_stratum target.
16443 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16444 * bsd-uthread.c (bsd_uthread_target::wait): Use
16445 as_process_stratum_target and adjust thread_change_ptid and
16446 add_thread calls.
16447 (bsd_uthread_target::update_thread_list): Use
16448 as_process_stratum_target and adjust find_thread_ptid,
16449 thread_change_ptid and add_thread calls.
16450 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16451 find_thread_ptid call.
16452 * corelow.c (add_to_thread_list): Adjust add_thread call.
16453 (core_target_open): Adjust add_thread_silent and thread_count
16454 calls.
16455 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16456 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16457 * event-top.c (async_disconnect): Pop targets from all inferiors.
16458 * exec.c (add_target_sections): Push exec target on all inferiors
16459 sharing the program space.
16460 (remove_target_sections): Remove the exec target from all
16461 inferiors sharing the program space.
16462 (exec_on_vfork): New.
16463 * exec.h (exec_on_vfork): Declare.
16464 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16465 Pass it down.
16466 (fbsd_nat_target::update_thread_list): Adjust.
16467 (fbsd_nat_target::resume): Adjust.
16468 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16469 down.
16470 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16471 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16472 get_thread_arch_regcache call.
16473 * fork-child.c (gdb_startup_inferior): Pass target down to
16474 startup_inferior and set_executing.
16475 * gdbthread.h (struct process_stratum_target): Forward declare.
16476 (add_thread, add_thread_silent, add_thread_with_info)
16477 (in_thread_list): Add process_stratum_target parameter.
16478 (find_thread_ptid(inferior*, ptid_t)): New overload.
16479 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16480 parameter.
16481 (all_threads()): Delete overload.
16482 (all_threads, all_non_exited_threads): Add process_stratum_target
16483 parameter.
16484 (all_threads_safe): Use brace initialization.
16485 (thread_count): Add process_stratum_target parameter.
16486 (set_resumed, set_running, set_stop_requested, set_executing)
16487 (threads_are_executing, finish_thread_state): Add
16488 process_stratum_target parameter.
16489 (switch_to_thread): Use is_current_thread.
16490 * i386-fbsd-tdep.c: Include "inferior.h".
16491 (i386fbsd_get_thread_local_address): Pass down target.
16492 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16493 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16494 have_inferiors check.
16495 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16496 (inf_ptrace_target::attach): Adjust.
16497 * infcall.c (run_inferior_call): Adjust.
16498 * infcmd.c (run_command_1): Pass target to
16499 scoped_finish_thread_state.
16500 (proceed_thread_callback): Skip inferiors with no execution.
16501 (continue_command): Rename 'all_threads' local to avoid hiding
16502 'all_threads' function. Adjust get_last_target_status call.
16503 (prepare_one_step): Adjust set_running call.
16504 (signal_command): Use user_visible_resume_target. Compare thread
16505 pointers instead of inferior_ptid.
16506 (info_program_command): Adjust to pass down target.
16507 (attach_command): Mark target's 'thread_executing' flag.
16508 (stop_current_target_threads_ns): New, factored out from ...
16509 (interrupt_target_1): ... this. Switch inferior before making
16510 target calls.
16511 * inferior-iter.h
16512 (struct all_inferiors_iterator, struct all_inferiors_range)
16513 (struct all_inferiors_safe_range)
16514 (struct all_non_exited_inferiors_range): Filter on
16515 process_stratum_target too. Remove explicit.
16516 * inferior.c (inferior::inferior): Push dummy target on target
16517 stack.
16518 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16519 Add process_stratum_target parameter, and pass it down.
16520 (have_live_inferiors): Adjust.
16521 (switch_to_inferior_and_push_target): New.
16522 (add_inferior_command, clone_inferior_command): Handle
16523 "-no-connection" parameter. Use
16524 switch_to_inferior_and_push_target.
16525 (_initialize_inferior): Mention "-no-connection" option in
16526 the help of "add-inferior" and "clone-inferior" commands.
16527 * inferior.h: Include "process-stratum-target.h".
16528 (interrupt_target_1): Use bool.
16529 (struct inferior) <push_target, unpush_target, target_is_pushed,
16530 find_target_beneath, top_target, process_target, target_at,
16531 m_stack>: New.
16532 (discard_all_inferiors): Delete.
16533 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16534 (all_inferiors, all_non_exited_inferiors): Add
16535 process_stratum_target parameter.
16536 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16537 (target_last_proc_target): New global.
16538 (follow_fork_inferior): Push target on new inferior. Pass target
16539 to add_thread_silent. Call exec_on_vfork. Handle target's
16540 reference count.
16541 (follow_fork): Adjust get_last_target_status call. Also consider
16542 target.
16543 (follow_exec): Push target on new inferior.
16544 (struct execution_control_state) <target>: New field.
16545 (user_visible_resume_target): New.
16546 (do_target_resume): Call target_async.
16547 (resume_1): Set target's threads_executing flag. Consider resume
16548 target.
16549 (commit_resume_all_targets): New.
16550 (proceed): Also consider resume target. Skip threads of inferiors
16551 with no execution. Commit resumtion in all targets.
16552 (start_remote): Pass current inferior to wait_for_inferior.
16553 (infrun_thread_stop_requested): Consider target as well. Pass
16554 thread_info pointer to clear_inline_frame_state instead of ptid.
16555 (infrun_thread_thread_exit): Consider target as well.
16556 (random_pending_event_thread): New inferior parameter. Use it.
16557 (do_target_wait): Rename to ...
16558 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16559 down.
16560 (threads_are_resumed_pending_p, do_target_wait): New.
16561 (prepare_for_detach): Adjust calls.
16562 (wait_for_inferior): New inferior parameter. Handle it. Use
16563 do_target_wait_1 instead of do_target_wait.
16564 (fetch_inferior_event): Adjust. Switch to representative
16565 inferior. Pass target down.
16566 (set_last_target_status): Add process_stratum_target parameter.
16567 Save target in global.
16568 (get_last_target_status): Add process_stratum_target parameter and
16569 handle it.
16570 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16571 (context_switch): Check inferior_ptid == null_ptid before calling
16572 inferior_thread().
16573 (get_inferior_stop_soon): Pass down target.
16574 (wait_one): Rename to ...
16575 (poll_one_curr_target): ... this.
16576 (struct wait_one_event): New.
16577 (wait_one): New.
16578 (stop_all_threads): Adjust.
16579 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16580 event's target.
16581 (switch_back_to_stepped_thread): Also consider target.
16582 (print_stop_event): Update.
16583 (normal_stop): Update. Also consider the resume target.
16584 * infrun.h (wait_for_inferior): Remove declaration.
16585 (user_visible_resume_target): New declaration.
16586 (get_last_target_status, set_last_target_status): New
16587 process_stratum_target parameter.
16588 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16589 process_stratum_target parameter, and use it.
16590 (clear_inline_frame_state (thread_info*)): New.
16591 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16592 process_stratum_target parameter.
16593 (clear_inline_frame_state (thread_info*)): Declare.
16594 * linux-fork.c (delete_checkpoint_command): Pass target down to
16595 find_thread_ptid.
16596 (checkpoint_command): Adjust.
16597 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16598 instead of just tweaking inferior_ptid.
16599 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16600 (exit_lwp): Pass target down to find_thread_ptid.
16601 (attach_proc_task_lwp_callback): Pass target down to
16602 add_thread/set_running/set_executing.
16603 (linux_nat_target::attach): Pass target down to
16604 thread_change_ptid.
16605 (get_detach_signal): Pass target down to find_thread_ptid.
16606 Consider last target status's target.
16607 (linux_resume_one_lwp_throw, resume_lwp)
16608 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16609 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16610 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16611 (linux_nat_target::async_wait_fd): New.
16612 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16613 target down.
16614 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16615 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16616 * linux-thread-db.c (struct thread_db_info::process_target): New
16617 field.
16618 (add_thread_db_info): Save target.
16619 (get_thread_db_info): New process_stratum_target parameter. Also
16620 match target.
16621 (delete_thread_db_info): New process_stratum_target parameter.
16622 Also match target.
16623 (thread_from_lwp): Adjust to pass down target.
16624 (thread_db_notice_clone): Pass down target.
16625 (check_thread_db_callback): Pass down target.
16626 (try_thread_db_load_1): Always push the thread_db target.
16627 (try_thread_db_load, record_thread): Pass target down.
16628 (thread_db_target::detach): Pass target down. Always unpush the
16629 thread_db target.
16630 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16631 target down. Always unpush the thread_db target.
16632 (find_new_threads_callback, thread_db_find_new_threads_2)
16633 (thread_db_target::update_thread_list): Pass target down.
16634 (thread_db_target::pid_to_str): Pass current inferior down.
16635 (thread_db_target::get_thread_local_address): Pass target down.
16636 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16637 target down.
16638 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16639 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16640 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16641 (procfs_init_inferior): Rename to ...
16642 (procfs_target::procfs_init_inferior): ... this and adjust.
16643 (procfs_target::create_inferior, procfs_notice_thread)
16644 (procfs_do_thread_registers): Adjust.
16645 * ppc-fbsd-tdep.c: Include "inferior.h".
16646 (ppcfbsd_get_thread_local_address): Pass down target.
16647 * proc-service.c (ps_xfer_memory): Switch current inferior and
16648 program space as well.
16649 (get_ps_regcache): Pass target down.
16650 * process-stratum-target.c
16651 (process_stratum_target::thread_address_space)
16652 (process_stratum_target::thread_architecture): Pass target down.
16653 * process-stratum-target.h
16654 (process_stratum_target::threads_executing): New field.
16655 (as_process_stratum_target): New.
16656 * ravenscar-thread.c
16657 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16658 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16659 down.
16660 * record-btrace.c (record_btrace_target::info_record): Adjust.
16661 (record_btrace_target::record_method)
16662 (record_btrace_target::record_is_replaying)
16663 (record_btrace_target::fetch_registers)
16664 (get_thread_current_frame_id, record_btrace_target::resume)
16665 (record_btrace_target::wait, record_btrace_target::stop): Pass
16666 target down.
16667 * record-full.c (record_full_wait_1): Switch to event thread.
16668 Pass target down.
16669 * regcache.c (regcache::regcache)
16670 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16671 process_stratum_target parameter and handle it.
16672 (current_thread_target): New global.
16673 (get_thread_regcache): Add process_stratum_target parameter and
16674 handle it. Switch inferior before calling target method.
16675 (get_thread_regcache): Pass target down.
16676 (get_thread_regcache_for_ptid): Pass target down.
16677 (registers_changed_ptid): Add process_stratum_target parameter and
16678 handle it.
16679 (registers_changed_thread, registers_changed): Pass target down.
16680 (test_get_thread_arch_aspace_regcache): New.
16681 (current_regcache_test): Define a couple local test_target_ops
16682 instances and use them for testing.
16683 (readwrite_regcache): Pass process_stratum_target parameter.
16684 (cooked_read_test, cooked_write_test): Pass mock_target down.
16685 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16686 (get_thread_arch_aspace_regcache): Add process_stratum_target
16687 parameter.
16688 (regcache::target): New method.
16689 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16690 (regcache::registers_changed_ptid): Add process_stratum_target
16691 parameter.
16692 (regcache::m_target): New field.
16693 (registers_changed_ptid): Add process_stratum_target parameter.
16694 * remote.c (remote_state::supports_vCont_probed): New field.
16695 (remote_target::async_wait_fd): New method.
16696 (remote_unpush_and_throw): Add remote_target parameter.
16697 (get_current_remote_target): Adjust.
16698 (remote_target::remote_add_inferior): Push target.
16699 (remote_target::remote_add_thread)
16700 (remote_target::remote_notice_new_inferior)
16701 (get_remote_thread_info): Pass target down.
16702 (remote_target::update_thread_list): Skip threads of inferiors
16703 bound to other targets. (remote_target::close): Don't discard
16704 inferiors. (remote_target::add_current_inferior_and_thread)
16705 (remote_target::process_initial_stop_replies)
16706 (remote_target::start_remote)
16707 (remote_target::remote_serial_quit_handler): Pass down target.
16708 (remote_target::remote_unpush_target): New remote_target
16709 parameter. Unpush the target from all inferiors.
16710 (remote_target::remote_unpush_and_throw): New remote_target
16711 parameter. Pass it down.
16712 (remote_target::open_1): Check whether the current inferior has
16713 execution instead of checking whether any inferior is live. Pass
16714 target down.
16715 (remote_target::remote_detach_1): Pass down target. Use
16716 remote_unpush_target.
16717 (extended_remote_target::attach): Pass down target.
16718 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16719 (remote_target::append_resumption): Pass down target.
16720 (remote_target::append_pending_thread_resumptions)
16721 (remote_target::remote_resume_with_hc, remote_target::resume)
16722 (remote_target::commit_resume): Pass down target.
16723 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16724 (remote_target::interrupt_query)
16725 (remote_target::remove_new_fork_children)
16726 (remote_target::check_pending_events_prevent_wildcard_vcont)
16727 (remote_target::remote_parse_stop_reply)
16728 (remote_target::process_stop_reply): Pass down target.
16729 (first_remote_resumed_thread): New remote_target parameter. Pass
16730 it down.
16731 (remote_target::wait_as): Pass down target.
16732 (unpush_and_perror): New remote_target parameter. Pass it down.
16733 (remote_target::readchar, remote_target::remote_serial_write)
16734 (remote_target::getpkt_or_notif_sane_1)
16735 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16736 down target.
16737 (remote_target::mourn_inferior): Pass down target. Use
16738 remote_unpush_target.
16739 (remote_target::core_of_thread)
16740 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16741 (remote_target::pid_to_exec_file)
16742 (remote_target::thread_handle_to_thread_info): Pass down target.
16743 (remote_target::async_wait_fd): New.
16744 * riscv-fbsd-tdep.c: Include "inferior.h".
16745 (riscv_fbsd_get_thread_local_address): Pass down target.
16746 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16747 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16748 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16749 Adjust.
16750 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16751 * solib-svr4.c (enable_break): Pass down target.
16752 * spu-multiarch.c (parse_spufs_run): Pass down target.
16753 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16754 * target-delegates.c: Regenerate.
16755 * target.c (g_target_stack): Delete.
16756 (current_top_target): Return the current inferior's top target.
16757 (target_has_execution_1): Refer to the passed-in inferior's top
16758 target.
16759 (target_supports_terminal_ours): Check whether the initial
16760 inferior was already created.
16761 (decref_target): New.
16762 (target_stack::push): Incref/decref the target.
16763 (push_target, push_target, unpush_target): Adjust.
16764 (target_stack::unpush): Defref target.
16765 (target_is_pushed): Return bool. Adjust to refer to the current
16766 inferior's target stack.
16767 (dispose_inferior): Delete, and inline parts ...
16768 (target_preopen): ... here. Only dispose of the current inferior.
16769 (target_detach): Hold strong target reference while detaching.
16770 Pass target down.
16771 (target_thread_name): Add assertion.
16772 (target_resume): Pass down target.
16773 (target_ops::beneath, find_target_at): Adjust to refer to the
16774 current inferior's target stack.
16775 (get_dummy_target): New.
16776 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16777 has a thread running.
16778 (initialize_targets): Rename to ...
16779 (_initialize_target): ... this.
16780 * target.h: Include "gdbsupport/refcounted-object.h".
16781 (struct target_ops): Inherit refcounted_object.
16782 (target_ops::shortname, target_ops::longname): Make const.
16783 (target_ops::async_wait_fd): New method.
16784 (decref_target): Declare.
16785 (struct target_ops_ref_policy): New.
16786 (target_ops_ref): New typedef.
16787 (get_dummy_target): Declare function.
16788 (target_is_pushed): Return bool.
16789 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16790 (all_matching_threads_iterator::all_matching_threads_iterator):
16791 Handle filter target.
16792 * thread-iter.h (struct all_matching_threads_iterator, struct
16793 all_matching_threads_range, class all_non_exited_threads_range):
16794 Filter by target too. Remove explicit.
16795 * thread.c (threads_executing): Delete.
16796 (inferior_thread): Pass down current inferior.
16797 (clear_thread_inferior_resources): Pass down thread pointer
16798 instead of ptid_t.
16799 (add_thread_silent, add_thread_with_info, add_thread): Add
16800 process_stratum_target parameter. Use it for thread and inferior
16801 searches.
16802 (is_current_thread): New.
16803 (thread_info::deletable): Use it.
16804 (find_thread_ptid, thread_count, in_thread_list)
16805 (thread_change_ptid, set_resumed, set_running): New
16806 process_stratum_target parameter. Pass it down.
16807 (set_executing): New process_stratum_target parameter. Pass it
16808 down. Adjust reference to 'threads_executing'.
16809 (threads_are_executing): New process_stratum_target parameter.
16810 Adjust reference to 'threads_executing'.
16811 (set_stop_requested, finish_thread_state): New
16812 process_stratum_target parameter. Pass it down.
16813 (switch_to_thread): Also match inferior.
16814 (switch_to_thread): New process_stratum_target parameter. Pass it
16815 down.
16816 (update_threads_executing): Reimplement.
16817 * top.c (quit_force): Pop targets from all inferior.
16818 (gdb_init): Don't call initialize_targets.
16819 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16820 Declare.
16821 (windows_add_thread, windows_delete_thread): Adjust.
16822 (get_windows_debug_event): Rename to ...
16823 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16824 * tracefile-tfile.c (tfile_target_open): Pass down target.
16825 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16826 Forward declare.
16827 (switch_to_thread): Add process_stratum_target parameter.
16828 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16829 parameter. Use it.
16830 (mi_on_resume): Pass target down.
16831 * nat/fork-inferior.c (startup_inferior): Add
16832 process_stratum_target parameter. Pass it down.
16833 * nat/fork-inferior.h (startup_inferior): Add
16834 process_stratum_target parameter.
16835 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16836
75c6c844
PA
168372020-01-10 Pedro Alves <palves@redhat.com>
16838
16839 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16840 directly. Instead find the first thread in the thread list and
16841 use switch_to_thread.
16842
78f2c40a
PA
168432020-01-10 Pedro Alves <palves@redhat.com>
16844
16845 * remote.c (remote_target::remote_add_inferior): Don't bind a
16846 process to the current inferior if the current inferior is already
16847 bound to a process.
16848
e7af6c70
TBA
168492020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16850 Pedro Alves <palves@redhat.com>
16851
16852 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16853 If no process is specified, return null_ptid instead of
16854 inferior_ptid.
16855 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16856 TARGET_WAITKIND_SIGNALLED with no pid.
16857
31ba933e
PA
168582020-01-10 Pedro Alves <palves@redhat.com>
16859
16860 * remote.c (first_remote_resumed_thread): New.
16861 (remote_target::wait_as): Use it as default event_ptid instead of
16862 inferior_ptid.
16863
735fc2ca
PA
168642020-01-10 Pedro Alves <palves@redhat.com>
16865
16866 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16867
c17e02e1
PA
168682020-01-10 Pedro Alves <palves@redhat.com>
16869
16870 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16871 not -1.
16872
ab1ddbcf
PA
168732020-01-10 Pedro Alves <palves@redhat.com>
16874
16875 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16876 ptid to get_last_target_status.
16877 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16878 ptid to get_last_target_status.
16879 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16880 get_last_target_status.
16881 (info_program_command): Don't pass a target_waitstatus to
16882 get_last_target_status.
16883 * infrun.c (init_wait_for_inferior): Use
16884 nullify_last_target_wait_ptid.
16885 (get_last_target_status): Handle nullptr arguments.
16886 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16887 (print_stop_event): Don't pass a ptid to get_last_target_status.
16888 (normal_stop): Don't pass a ptid to get_last_target_status.
16889 * infrun.h (get_last_target_status, set_last_target_status): Move
16890 comments here and update.
16891 (nullify_last_target_wait_ptid): Declare.
16892 * linux-fork.c (fork_load_infrun_state): Remove local extern
16893 declaration of nullify_last_target_wait_ptid.
16894 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16895 to get_last_target_status.
16896
f3f8ece4
PA
168972020-01-10 Pedro Alves <palves@redhat.com>
16898
16899 * gdbthread.h (scoped_restore_current_thread)
16900 <dont_restore, restore, m_dont_restore>: Declare.
16901 * thread.c (thread_alive): Add assertion. Return bool.
16902 (switch_to_thread_if_alive): New.
16903 (prune_threads): Switch inferior/thread.
16904 (print_thread_info_1): Switch thread before calling target methods.
16905 (scoped_restore_current_thread::restore): New, factored out from
16906 ...
16907 (scoped_restore_current_thread::~scoped_restore_current_thread):
16908 ... this.
16909 (scoped_restore_current_thread::scoped_restore_current_thread):
16910 Add assertion.
16911 (thread_apply_all_command, thread_select): Use
16912 switch_to_thread_if_alive.
16913 * infrun.c (proceed, restart_threads, handle_signal_stop)
16914 (switch_back_to_stepped_thread): Switch current thread before
16915 calling target methods.
16916
db2d40f7
PA
169172020-01-10 Pedro Alves <palves@redhat.com>
16918
16919 * inferior.c (switch_to_inferior_no_thread): New function,
16920 factored out from ...
16921 (inferior_command): ... here.
16922 * inferior.h (switch_to_inferior_no_thread): Declare.
16923 * mi/mi-main.c (run_one_inferior): Use
16924 switch_to_inferior_no_thread.
16925
bd420a2d
PA
169262020-01-10 Pedro Alves <palves@redhat.com>
16927
16928 * infcmd.c (kill_command): Remove dead code.
16929
ddf5db90
PA
169302020-01-10 Pedro Alves <palves@redhat.com>
16931
16932 * remote.c (remote_target::mourn_inferior): No longer check
16933 whether the target is running.
16934
5018ce90
PA
169352020-01-10 Pedro Alves <palves@redhat.com>
16936
16937 * corelow.c (core_target::has_execution): Change parameter type to
16938 inferior pointer.
16939 * inferior.c (number_of_live_inferiors): Use
16940 inferior::has_execution instead of target_has_execution_1.
16941 * inferior.h (inferior::has_execution): New.
16942 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16943 inferior::has_execution instead of target_has_execution_1.
16944 * process-stratum-target.c
16945 (process_stratum_target::has_execution): Change parameter type to
16946 inferior pointer. Check the inferior's PID instead of
16947 inferior_ptid.
16948 * process-stratum-target.h
16949 (process_stratum_target::has_execution): Change parameter type to
16950 inferior pointer.
16951 * record-full.c (record_full_core_target::has_execution): Change
16952 parameter type to inferior pointer.
16953 * target.c (target_has_execution_1): Change parameter type to
16954 inferior pointer.
16955 (target_has_execution_current): Adjust.
16956 * target.h (target_ops::has_execution): Change parameter type to
16957 inferior pointer.
16958 (target_has_execution_1): Change parameter type to inferior
16959 pointer. Change return type to bool.
16960 * tracefile.h (tracefile_target::has_execution): Change parameter
16961 type to inferior pointer.
16962
74375d18
PA
169632020-01-10 Pedro Alves <palves@redhat.com>
16964
16965 * exceptions.c (print_flush): Remove current_top_target() check.
16966
acdf84a6
PA
169672020-01-10 Pedro Alves <palves@redhat.com>
16968
16969 * remote.c (show_remote_exec_file): Show the current inferior's
16970 exec-file instead of the command variable's value.
16971
ec506636
PA
169722020-01-10 Pedro Alves <palves@redhat.com>
16973
16974 * record-full.c (record_full_resume_ptid): New global.
16975 (record_full_target::resume): Set it.
16976 (record_full_wait_1): Use record_full_resume_ptid instead of
16977 inferior_ptid.
16978
873657b9
PA
169792020-01-10 Pedro Alves <palves@redhat.com>
16980
16981 * gdbthread.h (scoped_restore_current_thread)
16982 <dont_restore, restore, m_dont_restore>: Declare.
16983 * thread.c (thread_alive): Add assertion. Return bool.
16984 (switch_to_thread_if_alive): New.
16985 (prune_threads): Switch inferior/thread.
16986 (print_thread_info_1): Switch thread before calling target methods.
16987 (scoped_restore_current_thread::restore): New, factored out from
16988 ...
16989 (scoped_restore_current_thread::~scoped_restore_current_thread):
16990 ... this.
16991 (scoped_restore_current_thread::scoped_restore_current_thread):
16992 Add assertion.
16993 (thread_apply_all_command, thread_select): Use
16994 switch_to_thread_if_alive.
16995
7f0ae84c
GB
169962020-01-10 George Barrett <bob@bob131.so>
16997
16998 * stap-probe.c (stap_modify_semaphore): Don't check for null
16999 semaphores.
17000 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17001 for null semaphores.
17002
f5a7c406
AB
170032020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17004
17005 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17006 all source windows, and maintain horizontal scroll status while
17007 doing so.
17008
9ae6bf64
TT
170092020-01-09 Tom Tromey <tom@tromey.com>
17010
17011 PR tui/18932:
17012 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17013 update_source_window, not print_source_lines.
17014
b2efe70c
AB
170152020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17016
17017 * tui/tui.c (tui_enable): Register tui hooks after calling
17018 tui_display_main.
17019
5f23a082
CB
170202020-01-09 Christian Biesinger <cbiesinger@google.com>
17021
17022 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17023
3061113b
SM
170242020-01-08 Simon Marchi <simon.marchi@efficios.com>
17025
17026 * thread.c (print_thread_info_1): Fix indentation.
17027
57d75002
CB
170282020-01-09 Christian Biesinger <cbiesinger@google.com>
17029
17030 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17031 unique_xmalloc_ptr outside the if to always free the demangled name.
17032
6a053cb1
TT
170332020-01-08 Tom Tromey <tromey@adacore.com>
17034
17035 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17036 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17037 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17038 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17039 Remove.
17040 (section_offsets): New typedef.
17041 * symtab.c (fixup_section, get_msymbol_address): Update.
17042 * symmisc.c (dump_msymbols): Update.
17043 * symfile.h (relative_addr_info_to_section_offsets)
17044 (symfile_map_offsets_to_segments): Update.
17045 * symfile.c (build_section_addr_info_from_objfile)
17046 (init_objfile_sect_indices): Update.
17047 (struct place_section_arg): Change type of "offsets".
17048 (place_section): Update.
17049 (relative_addr_info_to_section_offsets): Change type of
17050 "section_offsets". Remove "num_sections" parameter.
17051 (default_symfile_offsets, syms_from_objfile_1)
17052 (set_objfile_default_section_offset): Update.
17053 (reread_symbols): No need to preserve section offsets by hand.
17054 (symfile_map_offsets_to_segments): Change type of "offsets".
17055 * stap-probe.c (relocate_address): Update.
17056 * stabsread.h (process_one_symbol): Update.
17057 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17058 (solib_target_relocate_section_addresses): Update.
17059 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17060 Update.
17061 * solib-frv.c (frv_relocate_main_executable): Update.
17062 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17063 * solib-aix.c (solib_aix_get_section_offsets): Change return
17064 type.
17065 (solib_aix_solib_create_inferior_hook): Update.
17066 * remote.c (remote_target::get_offsets): Update.
17067 * psymtab.c (find_pc_sect_psymtab): Update.
17068 * psympriv.h (struct partial_symbol) <address, text_low,
17069 text_high>: Update.
17070 * objfiles.h (obj_section_offset): Update.
17071 (struct objfile) <section_offsets>: Change type.
17072 <num_sections>: Remove.
17073 (objfile_relocate): Update.
17074 * objfiles.c (entry_point_address_query): Update
17075 (relocate_one_symbol): Change type of "section_offsets".
17076 (objfile_relocate1, objfile_relocate1): Change type of
17077 "new_offsets".
17078 (objfile_rebase1): Update.
17079 * mipsread.c (mipscoff_symfile_read): Update.
17080 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17081 parameter.
17082 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17083 (parse_external, psymtab_to_symtab_1): Update.
17084 * machoread.c (macho_symfile_offsets): Update.
17085 * ia64-tdep.c (ia64_find_unwind_table): Update.
17086 * hppa-tdep.c (read_unwind_info): Update.
17087 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17088 * dwarf2read.c (create_addrmap_from_index)
17089 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17090 (process_psymtab_comp_unit_reader, add_partial_symbol)
17091 (add_partial_subprogram, process_full_comp_unit)
17092 (read_file_scope, read_func_scope, read_lexical_block_scope)
17093 (read_call_site_scope, dwarf2_rnglists_process)
17094 (dwarf2_ranges_process, dwarf2_ranges_read)
17095 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17096 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17097 Update.
17098 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17099 Update.
17100 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17101 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17102 (process_one_symbol): Change type of "section_offsets".
17103 * ctfread.c (get_objfile_text_range): Update.
17104 * coffread.c (coff_symtab_read, enter_linenos)
17105 (process_coff_symbol): Update.
17106 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17107 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17108
456e800a
TT
171092020-01-08 Tom Tromey <tromey@adacore.com>
17110
17111 * dwarf2read.c (parse_macro_definition): Use std::string.
17112 (parse_macro_definition): Likewise.
17113
6dfa2fc2
TT
171142020-01-08 Tom Tromey <tromey@adacore.com>
17115
17116 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17117 (ATTR_ALLOC_CHUNK): Remove.
17118
421d1616
TT
171192020-01-08 Tom Tromey <tromey@adacore.com>
17120
17121 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17122
43816ebc
TT
171232020-01-08 Tom Tromey <tromey@adacore.com>
17124
17125 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17126 (dwarf2_compute_name, open_dwo_file): Likewise.
17127 (process_enumeration_scope): Use std::vector.
17128 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17129 (partial_die_info::fixup, dwarf2_start_subfile)
17130 (guess_full_die_structure_name, dwarf2_name): Likewise.
17131 (determine_prefix): Update.
17132 (guess_full_die_structure_name): Make return type const.
17133 (partial_die_full_name): Return unique_xmalloc_ptr.
17134 (DW_FIELD_ALLOC_CHUNK): Remove.
17135
4212d509
TT
171362020-01-07 Tom Tromey <tromey@adacore.com>
17137
17138 PR build/24937:
17139 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17140
06a6207a
JT
171412020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17142
17143 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17144
153d79c4
AB
171452020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17146
17147 * stack.c (print_frame_info): Move disassemble_next_line code
17148 inside source_print block.
17149
66182876
EZ
171502020-01-06 Eli Zaretskii <eliz@gnu.org>
17151
17152 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17153 gdb/signals.h, as we are now using native signal symbols.
17154
cbfa8581
SV
171552020-01-06 Shahab Vahedi <shahab@synopsys.com>
17156
17157 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17158 overflow by an early check of content vs threshold.
aac66a4c 17159 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17160 Likewise.
17161
3f602821
EZ
171622020-01-06 Eli Zaretskii <eliz@gnu.org>
17163
17164 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17165
a08c904d
JT
171662020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17167
17168 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17169 export table if no section contains it's RVA.
17170
89a65580
EZ
171712020-01-06 Eli Zaretskii <eliz@gnu.org>
17172
17173 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17174
8b7fcda2
HD
171752020-01-06 Hannes Domani <ssbssa@yahoo.de>
17176
17177 * source.c (print_source_lines_base): Set last_line_listed.
17178
a61b4f69
SV
171792020-01-06 Shahab Vahedi <shahab@synopsys.com>
17180
17181 * tui/tui-disasm.c: Remove trailing spaces.
17182
559e7e50
EZ
171832020-01-06 Eli Zaretskii <eliz@gnu.org>
17184 Pedro Alves <palves@redhat.com>
17185
17186 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17187 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17188 (windows_gdb_signal_to_target): New function, uses the above
17189 enumeration to convert GDB internal signal codes to equivalent
17190 Windows codes.
17191 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17192 * windows-nat.c: Include "gdb_wait.h".
17193 (get_windows_debug_event): Extract the fatal exception from the
17194 exit status and convert to the equivalent Posix signal number.
17195 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17196 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17197 * gdbsupport/gdb_wait.c: New file, implements
17198 windows_status_to_termsig.
17199 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17200 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17201
f2302a34
AB
172022020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17203
17204 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17205 show_layout.
17206
6a5206eb
LM
172072020-01-05 Luis Machado <luis.machado@linaro.org>
17208
17209 * aarch64-linux-nat.c
17210 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17211 and bfd_mach_aarch64.
17212
6ec1d75e
PW
172132020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17214
17215 * ui-file.c (stdio_file::can_emit_style_escape)
17216 (tee_file::can_emit_style_escape): Ensure style is used also on
17217 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17218 to gdb_stdout.
17219 * main.c (set_gdb_data_directory): Use file style to output the
17220 warning that the given pathname is not a directory.
17221 * top.c (show_history_filename, gdb_safe_append_history)
17222 (show_gdb_datadir): Use file style.
17223
44f81a76
HD
172242020-01-03 Hannes Domani <ssbssa@yahoo.de>
17225
17226 * solib-target.c (struct lm_info_target):
17227 Change offsets to be a unique_xmalloc_ptr.
17228 (solib_target_relocate_section_addresses): Update.
17229
25057eb0
HD
172302020-01-03 Hannes Domani <ssbssa@yahoo.de>
17231
17232 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17233
6e2118f5
BE
172342020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17235
17236 * MAINTAINERS (Write After Approval): Add myself.
17237
8133c7dc
LM
172382020-01-02 Luis Machado <luis.machado@linaro.org>
17239
17240 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17241 Cell BE architecture.
17242 * target.h (struct target_ops) <thread_architecture>: Likewise.
17243
48189bec
HD
172442020-01-01 Hannes Domani <ssbssa@yahoo.de>
17245
17246 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17247
ead1063b
HD
172482020-01-01 Hannes Domani <ssbssa@yahoo.de>
17249
17250 * MAINTAINERS (Write After Approval): Add myself.
17251
e5d78223
JB
172522020-01-01 Joel Brobecker <brobecker@adacore.com>
17253
17254 * gdbarch.sh: Update copyright year range of generated files.
17255
b811d2c2
JB
172562020-01-01 Joel Brobecker <brobecker@adacore.com>
17257
17258 Update copyright year range in all GDB files.
17259
5f4def5c
JB
172602020-01-01 Joel Brobecker <brobecker@adacore.com>
17261
17262 * copyright.py: Convert to Python 3.
17263
51fd4002
JB
172642020-01-01 Joel Brobecker <brobecker@adacore.com>
17265
17266 * copyright.py: Adapt after move of gnulib directory from gdb
17267 directory to toplevel directory.
17268
5fb651f2
JB
172692020-01-01 Joel Brobecker <brobecker@adacore.com>
17270
17271 * copyright.py (main): Exit if run from the wrong directory.
17272
5dd8bf88
JB
172732020-01-01 Joel Brobecker <brobecker@adacore.com>
17274
17275 * top.c (print_gdb_version): Change copyright year to 2020.
17276
9f71dacb 172772020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17278
9f71dacb 17279 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17280
9f71dacb 17281For older changes see ChangeLog-2019.
c906108c
SS
17282\f
17283Local Variables:
17284mode: change-log
17285left-margin: 8
17286fill-column: 74
17287version-control: never
57da7796 17288coding: utf-8
c906108c 17289End:
This page took 5.064102 seconds and 4 git commands to generate.