]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Make function fixed_point_scaling_factor a method of struct type
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e6fcee3a
JB
12020-11-24 Joel Brobecker <brobecker@adacore.com>
2
3 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
4 replacing fixed_point_scaling_factor. All callers updated
5 throughout this project.
6 (fixed_point_scaling_factor): Delete declaration.
7 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
8 fixed_point_scaling_factor. Adjust implementation accordingly.
9
d19937a7
JB
102020-11-24 Joel Brobecker <brobecker@adacore.com>
11
12 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
13 replacing the fixed_point_type_base_type function. All callers
14 updated throughout this project.
15 (fixed_point_type_base_type): Remove declaration.
16 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
17 fixed_point_type_base_type. Adjust implementation accordingly.
18
2a12c336
JB
192020-11-24 Joel Brobecker <brobecker@adacore.com>
20
21 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
22 New methods.
23 (INIT_FIXED_POINT_SPECIFIC): Adjust.
24 (TYPE_FIXED_POINT_INFO): Delete macro.
25 (allocate_fixed_point_type_info): Change return type to void.
26 * gdbtypes.c (copy_type_recursive): Replace the use of
27 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
28 (fixed_point_scaling_factor): Likewise.
29 (allocate_fixed_point_type_info): Change return type to void.
30 Adjust implementation accordingly.
31 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
32 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
33
c9f0b43f
JB
342020-11-24 Joel Brobecker <brobecker@adacore.com>
35
36 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
37 into one single gdb::array_view parameter.
38 (gdb_mpz::write): Likewise.
39 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
40 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
41 into one single gdb::array_view parameter.
42 Adjust implementation accordingly.
43 (gdb_mpz::write): Likewise.
44 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
45 * unittests/gmp-utils-selftests.c: Adapt following changes above.
46 * valarith.c, valops.c, valprint.c, value.c: Likewise.
47
987b6703
JB
482020-11-24 Joel Brobecker <brobecker@adacore.com>
49
50 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
51 Change return type to std::string. Update all callers.
52 * gmp-utils.c (gmp_string_printf): Likewise.
53
4fbb7cce
JB
542020-11-24 Joel Brobecker <brobecker@adacore.com>
55
56 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
57 instead of mpq_set_ui to initialize our GMP rational.
58
d6ab69dd
TV
592020-11-23 Tom de Vries <tdevries@suse.de>
60
61 * debuginfod-support.c (debuginfod_source_query)
62 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
63
dab72643
TT
642020-11-21 Tom Tromey <tom@tromey.com>
65
66 * breakpoint.c (watchpoint_exp_is_const): Return bool.
67
c0ad05d5
SM
682020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
69
70 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
71 Pass 2.0 to pow.
72 (gdb_mpz_write_all_from_small): Likewise.
73
a43b29c9
SM
742020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
75
76 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
77 of abs.
78
ae41200b
NA
792020-11-20 Nick Alcock <nick.alcock@oracle.com>
80
81 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
82 ctf_arc_open_by_name.
83
139633c3
NA
842020-11-20 Nick Alcock <nick.alcock@oracle.com>
85
86 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
87 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
88
cbbcd7a7
PA
892020-11-20 Pedro Alves <pedro@palves.net>
90
91 * language.c (language_arch_info::lookup_primitive_type): Use
92 gdb::function_view instead of gdb::function.
93 (template language_lookup_primitive_type): Rename to ...
94 (language_lookup_primitive_type_1): ... this, and make static.
95 (language_lookup_primitive_type(const struct language_defn *,
96 struct gdbarch *, const char *): Make non-template.
97 (language_lookup_primitive_type(const struct language_defn *,
98 struct gdbarch *, std::function<bool (struct type *)>): Make
99 non-template and use gdb::function_view.
100 * language.h (language_arch_info::lookup_primitive_type): Use
101 gdb::function_view instead of std::function.
102 (language_lookup_primitive_type): No longer template.
103 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
104 lambda instead of a std::function.
105
d5ef21c3
AA
1062020-11-19 Andreas Arnez <arnez@linux.ibm.com>
107
108 PR tdep/26916
109 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
110 and STOCFH.
111
a5adb8f3
SM
1122020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
113
114 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
115
70125a45
SM
1162020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
117
118 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
119 in `loop_cb` parameter.
120 * gdbarch.c: Re-generate.
121 * gdbarch.h: Re-generate.
122 * arch-utils.c (default_read_core_file_mappings): Remove `other`
123 parameter.
124 * arch-utils.h (default_read_core_file_mappings): Likewise.
125 * corelow.c (core_target::build_file_mappings): Likewise.
126 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
127 (linux_core_info_proc_mappings): Likewise.
128
a5c641b5
AB
1292020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
130
131 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
132 * NEWS: Mention new options.
133 * f-array-walker.h: New file.
134 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
135 (repack_array_slices): New static global.
136 (show_repack_array_slices): New function.
137 (fortran_array_slicing_debug): New static global.
138 (show_fortran_array_slicing_debug): New function.
139 (value_f90_subarray): Delete.
140 (skip_undetermined_arglist): Delete.
141 (class fortran_array_repacker_base_impl): New class.
142 (class fortran_lazy_array_repacker_impl): New class.
143 (class fortran_array_repacker_impl): New class.
144 (fortran_value_subarray): Complete rewrite.
145 (set_fortran_list): New static global.
146 (show_fortran_list): Likewise.
147 (_initialize_f_language): Register new commands.
148 (fortran_adjust_dynamic_array_base_address_hack): New function.
149 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
150 Declare.
151 * f-valprint.c: Include 'f-array-walker.h'.
152 (class fortran_array_printer_impl): New class.
153 (f77_print_array_1): Delete.
154 (f77_print_array): Delete.
155 (fortran_print_array): New.
156 (f_value_print_inner): Update to call fortran_print_array.
157 * gdbtypes.c: Include 'f-lang.h'.
158 (resolve_dynamic_type_internal): Call
159 fortran_adjust_dynamic_array_base_address_hack.
160
a15a5258
AB
1612020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
162
163 * breakpoint.c (struct watch_options): New struct.
164 (watch_option_defs): New static global.
165 (make_watch_options_def_group): New function.
166 (watch_maybe_just_location): Convert option parsing.
167 (watch_command_completer): New function.
168 (_initialize_breakpoint): Build help text using options mechanism.
169
2e362716
AB
1702020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
171
172 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
173 (watch_command_1): Update parameter types. Convert locals to
174 bool.
175 (watch_command_wrapper): Change parameter type.
176 (watch_maybe_just_location): Change locals to bool.
177 (rwatch_command_wrapper): Update parameter type.
178 (awatch_command_wrapper): Update parameter type.
179 * breakpoint.h (watch_command_wrapper): Change parameter type.
180 (rwatch_command_wrapper): Update parameter type.
181 (awatch_command_wrapper): Update parameter type.
182 * eval.c (fetch_subexp_value): Change parameter type.
183 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
184 'false' not '0'.
185 * value.h (fetch_subexp_value): Change parameter type in
186 declaration.
187
b3ff61f8
AB
1882020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
191 skip_spaces.
192
5b7d45d3
KS
1932020-11-18 Keith Seitz <keiths@redhat.com>
194
195 * linux-tdep.c (dump_note_entry_p): Return true instead of
196 checking `filename'.
197
c44191f8
TV
1982020-11-18 Tom de Vries <tdevries@suse.de>
199
200 * debuginfod-support.c (debuginfod_source_query)
201 (debuginfod_debuginfo_query): Also do early exit if
202 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
203
5d8254e1
TV
2042020-11-18 Tom de Vries <tdevries@suse.de>
205
206 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
207 warning.
208
584903d3
SM
2092020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * gdbtypes.h (get_array_bounds): Return bool, adjust some
212 callers. Move doc here.
213 * gdbtypes.c (get_array_bounds): Return bool
214
6f2643db
AB
2152020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
218 assert.
219 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
220 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
221 case to the default.
222
037d7135
AB
2232020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
224
225 * printcmd.c: Include 'safe-ctype.c'.
226 (skip_over_slash_fmt): New function.
227 (print_command_completer): Call skip_over_slash_fmt.
228 (display_and_x_command_completer): New function.
229 (_initialize_printcmd): Add command completion for 'x' and
230 'display'.
231
2b3cb400
PA
2322020-11-16 Pedro Alves <pedro@palves.net>
233
234 * frame.c (get_prev_frame): Move get_frame_id call from here ...
235 (get_prev_frame_always_1): ... to here.
236 * inline-frame.c (inline_frame_this_id): Mention
237 get_prev_frame_always_1 in comment.
238
b74dbc20
JB
2392020-11-15 Joel Brobecker <brobecker@adacore.com>
240
241 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
242 handling.
243 (value_less): Add fixed-point handling.
244
0a12719e
JB
2452020-11-15 Joel Brobecker <brobecker@adacore.com>
246
247 * eval.c (binop_promote): Add fixed-point type handling.
248 * valarith.c (fixed_point_binop): New function.
249 (scalar_binop): Add fixed-point type handling.
250 (value_neg): Add fixed-point type handling.
251 * valops.c (value_cast_to_fixed_point): New function.
252 (value_cast): Add fixed-point type handling.
253
0c9150e4
JB
2542020-11-15 Joel Brobecker <brobecker@adacore.com>
255
256 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
257 range types.
258 * c-typeprint.c (c_type_print_varspec_prefix)
259 (c_type_print_varspec_suffix, c_type_print_base_1): Add
260 TYPE_CODE_FIXED_POINT handling.
261 * p-typeprint.c (pascal_type_print_varspec_prefix)
262 (pascal_type_print_varspec_suffix): Likewise.
263 * typeprint.c (print_type_fixed_point): New function.
264 * typeprint.h (print_type_fixed_point): Add declaration.
265
b26daff9
JB
2662020-11-15 Joel Brobecker <brobecker@adacore.com>
267
268 * printcmd.c (print_scalar_formatted): Add fixed-point type
269 handling when options->format is set.
270
09584414
JB
2712020-11-15 Joel Brobecker <brobecker@adacore.com>
272
273 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
274 * dwarf2/read.c (get_dwarf2_rational_constant)
275 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
276 (has_zero_over_zero_small_attribute): New functions.
277 read_base_type, set_die_type): Add fixed-point type handling.
278 * gdb-gdb.py.in: Add fixed-point type handling.
279 * gdbtypes.c: #include "gmp-utils.h".
280 (create_range_type, set_type_code): Add fixed-point type handling.
281 (init_fixed_point_type): New function.
282 (is_integral_type, is_scalar_type): Add fixed-point type handling.
283 (print_fixed_point_type_info): New function.
284 (recursive_dump_type, copy_type_recursive): Add fixed-point type
285 handling.
286 (fixed_point_type_storage): New typedef.
287 (fixed_point_objfile_key): New static global.
288 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
289 (fixed_point_type_base_type, fixed_point_scaling_factor): New
290 functions.
291 * gdbtypes.h: #include "gmp-utils.h".
292 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
293 (union type_specific) <fixed_point_info>: New field.
294 (struct fixed_point_type_info): New struct.
295 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
296 (init_fixed_point_type, is_fixed_point_type)
297 (fixed_point_type_base_type, fixed_point_scaling_factor)
298 (allocate_fixed_point_type_info): Add declarations.
299 * valprint.c (generic_val_print_fixed_point): New function.
300 (generic_value_print): Add fixed-point type handling.
301 * value.c (value_as_address, unpack_long): Add fixed-point type
302 handling.
303
e55c6530
JB
3042020-11-15 Joel Brobecker <brobecker@adacore.com>
305
306 * utils.h (uinteger_pow): Add declaration.
307 * utils.c (uinteger_pow): Moved here (without changes)...
308 * valarith.c (uinteger_pow): ... from here.
309
b34c74ab
JB
3102020-11-15 Joel Brobecker <brobecker@adacore.com>
311
40d9d2fd 312 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
313 * unittests/gmp-utils-selftests.c: New file.
314 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
315 unittests/gmp-utils-selftests.c.
316 (COMMON_SFILES) Add gmp-utils.c.
317 (HFILES_NO_SRCDIR): Add gmp-utils.h.
318
1b4ac058
JB
3192020-11-15 Joel Brobecker <brobecker@adacore.com>
320
321 * configure.ac: Generate an error if a usable GMP library
322 could not be found.
323 * configure: Regenerate.
324
2c947d9b
JB
3252020-11-15 Joel Brobecker <brobecker@adacore.com>
326
327 * configure.ac: Add support for --with-libgmp-prefix.
328 * Makefile.in (LIBGMP): New variable.
329 (CLIBS): Include $(LIBGMP).
330 * configure, config.in: Regenerate
331
9dd02fc0
AB
3322020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 PR cli/26879
335 * f-exp.y (COMPLETE): New token.
336 (exp): Two new rules for tab-completion.
337 (saw_name_at_eof): New static global.
338 (last_was_structop): Likewise.
339 (yylex): Set new variables, and return COMPLETE token at the end
340 of the input stream in some cases.
341
758cb810
TT
3422020-11-14 Tom Tromey <tom@tromey.com>
343
344 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
345
749065b7
TT
3462020-11-14 Tom Tromey <tom@tromey.com>
347
348 * opencl-lang.c (opencl_component_ref): Make "comps" const.
349
2c5b1849
SM
3502020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
351
352 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
353
e8b2f0d9
TT
3542020-11-13 Tom Tromey <tom@tromey.com>
355
356 * c-lang.c (convert_ucn, convert_octal, convert_hex)
357 (convert_escape, parse_one_string): Constify.
358
25f4c262
KS
3592020-11-13 Keith Seitz <keiths@redhat.com>
360
361 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
362 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
363 outside of ELF segments" warning for debugin
364
9d3ab915
KS
3652020-11-13 Keith Seitz <keiths@redhat.com>
366
367 PR gdb/23034
368 * elfread.c (elf_symfile_segments): Output a BFD file name
369 for the "Loadable section ... outside of ELF segments" warning.
370
9ecab40c
SM
3712020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
372
373 PR gdb/26835
374 * arm-tdep.c (class arm_instruction_reader): New.
375 (target_arm_instruction_reader): New.
376 (arm_analyze_prologue): Add instruction reader parameter and use
377 it. Use arm_expand_immediate.
378 (class target_arm_instruction_reader): Adjust.
379 (arm_skip_prologue): Adjust.
380 (arm_expand_immediate): New.
381 (arm_scan_prologue): Adjust.
382 (arm_analyze_prologue_test): New.
383 (class test_arm_instruction_reader): New.
384
5a7cf527
AB
3852020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * f-lang.c (fortran_argument_convert): Add declaration. Add
388 header comment, taken from f-lang.h. Make static.
389 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
390 (fortran_argument_convert): Delete declaration.
391
7bea47f0
AB
3922020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
393
394 * ada-exp.y (find_primitive_type): Make parameter const.
395 * ada-lang.c (enum ada_primitive_types): Delete.
396 (ada_language::language_arch_info): Update.
397 * c-lang.c (enum c_primitive_types): Delete.
398 (c_language_arch_info): Update.
399 (enum cplus_primitive_types): Delete.
400 (cplus_language::language_arch_info): Update.
401 * d-lang.c (enum d_primitive_types): Delete.
402 (d_language::language_arch_info): Update.
403 * f-lang.c (enum f_primitive_types): Delete.
404 (f_language::language_arch_info): Update.
405 * go-lang.c (enum go_primitive_types): Delete.
406 (go_language::language_arch_info): Update.
407 * language.c (auto_or_unknown_language::language_arch_info):
408 Update.
409 (language_gdbarch_post_init): Use obstack_new, use array indexing.
410 (language_string_char_type): Add header comment, call function in
411 language_arch_info.
412 (language_bool_type): Likewise
413 (language_arch_info::bool_type): Define.
414 (language_lookup_primitive_type_1): Delete.
415 (language_lookup_primitive_type): Rewrite as a templated function
416 to call function in language_arch_info, then instantiate twice.
417 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
418 (language_arch_info::lookup_primitive_type_and_symbol): Define.
419 (language_arch_info::lookup_primitive_type): Define twice with
420 different signatures.
421 (language_arch_info::lookup_primitive_type_as_symbol): Define.
422 (language_lookup_primitive_type_as_symbol): Rewrite to call a
423 member function in language_arch_info.
424 * language.h (language_arch_info): Complete rewrite.
425 (language_lookup_primitive_type): Make templated.
426 * m2-lang.c (enum m2_primitive_types): Delete.
427 (m2_language::language_arch_info): Update.
428 * opencl-lang.c (OCL_P_TYPE): Delete.
429 (enum opencl_primitive_types): Delete.
430 (opencl_type_data): Delete.
431 (builtin_opencl_type): Delete.
432 (lookup_opencl_vector_type): Update.
433 (opencl_language::language_arch_info): Update, lots of content
434 moved from...
435 (build_opencl_types): ...here. This function is now deleted.
436 (_initialize_opencl_language): Delete.
437 * p-lang.c (enum pascal_primitive_types): Delete.
438 (pascal_language::language_arch_info): Update.
439 * rust-lang.c (enum rust_primitive_types): Delete.
440 (rust_language::language_arch_info): Update.
441
bf6e5d01
SM
4422020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
443
444 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
445 dwarf2_queue_guard.
446
1350c3b4
SM
4472020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
448
449 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
450 comment.
451
6f738b01
SM
4522020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
453
454 * dwarf2/read.c (dwarf_read_debug_printf,
455 dwarf_read_debug_printf_v): New macros, use throughout the file.
456
10c19fad
SV
4572020-11-12 Shahab Vahedi <shahab@synopsys.com>
458
459 * arc-linux-tdep.c (collect_register): Populate "eret" by
460 "pc" value from the regcache when asked for "pc" value.
461
1f2624a3
TT
4622020-11-12 Tom Tromey <tom@tromey.com>
463
464 PR rust/26799:
465 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
466 exist.
467
ab33b152
AB
4682020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
469
470 * features/Makefile (XMLTOC): Add rx.xml.
471 (FEATURE_XMLFILES): Remove rx.xml.
472 (FEATURE_CFILES rule): Pass '-single-feature' flag.
473 * features/rx.c: Regenerate.
474 * features/rx.xml: Wrap in `target` tags, and reindent.
475 * target-descriptions.c (struct maint_print_c_tdesc_options): New
476 structure.
477 (maint_print_c_tdesc_opt_def): New typedef.
478 (maint_print_c_tdesc_opt_defs): New static global.
479 (make_maint_print_c_tdesc_options_def_group): New function.
480 (maint_print_c_tdesc_cmd): Make use of command line flags, only
481 print single feature C file for target descriptions containing a
482 single feature.
483 (maint_print_c_tdesc_cmd_completer): New function.
484 (_initialize_target_descriptions): Update call to register command
485 completer, and include command line flag in help text.
486
550820e1
AB
4872020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
488
489 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
490 numbers.
491 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
492 enum values.
493
baf20f76
TT
4942020-11-10 Tom Tromey <tom@tromey.com>
495
496 * value.h (internalvar_name): Update.
497 * value.c (internalvar_name): Make return type const.
498
caaece0e
TT
4992020-11-10 Tom Tromey <tom@tromey.com>
500
501 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
502 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
503 const.
504
8e20b4be
TT
5052020-11-10 Tom Tromey <tom@tromey.com>
506
507 * objc-lang.h (value_nsstring): Update.
508 * objc-lang.c (value_nsstring): Make "ptr" const.
509
86775fab
AB
5102020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
511
512 * expprint.c (print_subexp_funcall): Increment expression position
513 after reading argument count.
514 * f-lang.c (print_subexp_f): Skip over opcode before calling
515 common function.
516 (dump_subexp_body_f): Likewise.
517
3fed4c0b
RG
5182020-11-06 Romain Geissler <romain.geissler@amadeus.com>
519
520 PR python/26832
521 * configure: Regenerate.
522 * configure.ac: Check for python modules ctypes instead of
523 itertools.
524
ac3d4064
PA
5252020-11-06 Pedro Alves <pedro@palves.net>
526
527 * macroexp.c (struct macro_buffer): Split in two classes. Add
528 uses adjusted.
529 (struct shared_macro_buffer): New, factored out from struct
530 macro_buffer.
531 (struct growable_macro_buffer): New, factored out from struct
532 macro_buffer.
533 (set_token, get_comment, get_identifier, get_pp_number)
534 (get_character_constant, get_string_literal, get_punctuator)
535 (get_next_token_for_substitution): Constify parameters.
536 (substitute_args): Constify locals.
537
606decb2
TT
5382020-11-05 Tom Tromey <tom@tromey.com>
539
540 * dwarf2/read.c (read_cutu_die_from_dwo)
541 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
542 (build_type_psymtabs_1): Update.
543 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
544 parameter.
545 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
546 Don't read section. Add assert.
547
9c91c725
TT
5482020-11-04 Tom Tromey <tromey@adacore.com>
549
550 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
551
8d9fd3a1
TT
5522020-11-04 Tom Tromey <tromey@adacore.com>
553
554 * ada-typeprint.c (ada_print_type): Handle __T types.
555
d8f62e84
TT
5562020-11-04 Tom Tromey <tromey@adacore.com>
557
558 * dwarf2/read.c (add_partial_symbol, process_die):
559 Handle DW_TAG_array_type.
560 (is_type_tag_for_partial): Add "lang" parameter.
561 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
562
7ff5b937
TT
5632020-11-04 Tom Tromey <tromey@adacore.com>
564
565 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
566
10f6a3ad
TT
5672020-11-04 Tom Tromey <tromey@adacore.com>
568
569 * dwarf2/read.c (read_array_type): Only apply stride to innermost
570 array.
571
b72795a8
TT
5722020-11-04 Tom Tromey <tromey@adacore.com>
573
574 * gdbtypes.c (update_static_array_size): Handle bit stride.
575
24aa1b02
TT
5762020-11-04 Tom Tromey <tromey@adacore.com>
577
578 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
579
c9a28cbe
TT
5802020-11-04 Tom Tromey <tromey@adacore.com>
581
582 * ada-lang.c (ada_is_any_packed_array_type): New function.
583 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
584
57567375
TT
5852020-11-04 Tom Tromey <tromey@adacore.com>
586
587 * dwarf2/read.c (recognize_bound_expression)
588 (quirk_ada_thick_pointer): New functions.
589 (read_array_type): Call quirk_ada_thick_pointer.
590 (set_die_type): Add "skip_data_location" parameter.
591 (quirk_ada_thick_pointer): New function.
592 (process_structure_scope): Call quirk_ada_thick_pointer.
593 * ada-lang.c (ada_is_unconstrained_packed_array_type)
594 (decode_packed_array_bitsize): Handle thick pointers without
595 parallel types.
596 (ada_is_gnat_encoded_packed_array_type): Rename from
597 ada_is_packed_array_type.
598 (ada_is_constrained_packed_array_type): Update.
599 * ada-valprint.c (ada_val_print_gnat_array): Remove.
600 (ada_value_print_1): Use ada_get_decoded_value.
601
a7400e44
TT
6022020-11-04 Tom Tromey <tromey@adacore.com>
603
604 * ada-lang.c (recursively_update_array_bitsize): New function.
605 (decode_constrained_packed_array_type): Call it.
606
75fd6a26
TT
6072020-11-04 Tom Tromey <tromey@adacore.com>
608
609 * ada-lang.c (to_fixed_array_type): Error if
610 decode_constrained_packed_array_type returns NULL.
611
93f9561e
TT
6122020-11-04 Tom Tromey <tromey@adacore.com>
613
614 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
615
257e02d8
TT
6162020-11-02 Tom Tromey <tromey@adacore.com>
617
618 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
619 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
620 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
621 * amd64-ravenscar-thread.c: New file.
622 * amd64-ravenscar-thread.h: New file.
623 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
624 * configure.tgt (amd64_tobjs): Add ravenscar objects.
625
74d877e5
AB
6262020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
627
628 * main.c (execute_cmdargs): New function.
629 (captured_main_1): Make use of execute_cmdargs.
630
64aaad63
AB
6312020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * NEWS: Mention changes to config file search path.
634 * main.c
635
5b3d3560
TT
6362020-11-02 Tom Tromey <tromey@adacore.com>
637
638 * python/python.c: Consolidate two HAVE_PYTHON blocks.
639 (python_GdbModuleDef): Move earlier. Now static.
640 (do_start_initialization): Consolidate some IS_PY3K blocks.
641
dda83cd7
SM
6422020-11-02 Simon Marchi <simon.marchi@efficios.com>
643
644 * aarch64-linux-tdep.c: Fix indentation.
645 * aarch64-ravenscar-thread.c: Fix indentation.
646 * aarch64-tdep.c: Fix indentation.
647 * aarch64-tdep.h: Fix indentation.
648 * ada-lang.c: Fix indentation.
649 * ada-lang.h: Fix indentation.
650 * ada-tasks.c: Fix indentation.
651 * ada-typeprint.c: Fix indentation.
652 * ada-valprint.c: Fix indentation.
653 * ada-varobj.c: Fix indentation.
654 * addrmap.c: Fix indentation.
655 * addrmap.h: Fix indentation.
656 * agent.c: Fix indentation.
657 * aix-thread.c: Fix indentation.
658 * alpha-bsd-nat.c: Fix indentation.
659 * alpha-linux-tdep.c: Fix indentation.
660 * alpha-mdebug-tdep.c: Fix indentation.
661 * alpha-nbsd-tdep.c: Fix indentation.
662 * alpha-obsd-tdep.c: Fix indentation.
663 * alpha-tdep.c: Fix indentation.
664 * amd64-bsd-nat.c: Fix indentation.
665 * amd64-darwin-tdep.c: Fix indentation.
666 * amd64-linux-nat.c: Fix indentation.
667 * amd64-linux-tdep.c: Fix indentation.
668 * amd64-nat.c: Fix indentation.
669 * amd64-obsd-tdep.c: Fix indentation.
670 * amd64-tdep.c: Fix indentation.
671 * amd64-windows-tdep.c: Fix indentation.
672 * annotate.c: Fix indentation.
673 * arc-tdep.c: Fix indentation.
674 * arch-utils.c: Fix indentation.
675 * arch/arm-get-next-pcs.c: Fix indentation.
676 * arch/arm.c: Fix indentation.
677 * arm-linux-nat.c: Fix indentation.
678 * arm-linux-tdep.c: Fix indentation.
679 * arm-nbsd-tdep.c: Fix indentation.
680 * arm-pikeos-tdep.c: Fix indentation.
681 * arm-tdep.c: Fix indentation.
682 * arm-tdep.h: Fix indentation.
683 * arm-wince-tdep.c: Fix indentation.
684 * auto-load.c: Fix indentation.
685 * auxv.c: Fix indentation.
686 * avr-tdep.c: Fix indentation.
687 * ax-gdb.c: Fix indentation.
688 * ax-general.c: Fix indentation.
689 * bfin-linux-tdep.c: Fix indentation.
690 * block.c: Fix indentation.
691 * block.h: Fix indentation.
692 * blockframe.c: Fix indentation.
693 * bpf-tdep.c: Fix indentation.
694 * break-catch-sig.c: Fix indentation.
695 * break-catch-syscall.c: Fix indentation.
696 * break-catch-throw.c: Fix indentation.
697 * breakpoint.c: Fix indentation.
698 * breakpoint.h: Fix indentation.
699 * bsd-uthread.c: Fix indentation.
700 * btrace.c: Fix indentation.
701 * build-id.c: Fix indentation.
702 * buildsym-legacy.h: Fix indentation.
703 * buildsym.c: Fix indentation.
704 * c-typeprint.c: Fix indentation.
705 * c-valprint.c: Fix indentation.
706 * c-varobj.c: Fix indentation.
707 * charset.c: Fix indentation.
708 * cli/cli-cmds.c: Fix indentation.
709 * cli/cli-decode.c: Fix indentation.
710 * cli/cli-decode.h: Fix indentation.
711 * cli/cli-script.c: Fix indentation.
712 * cli/cli-setshow.c: Fix indentation.
713 * coff-pe-read.c: Fix indentation.
714 * coffread.c: Fix indentation.
715 * compile/compile-cplus-types.c: Fix indentation.
716 * compile/compile-object-load.c: Fix indentation.
717 * compile/compile-object-run.c: Fix indentation.
718 * completer.c: Fix indentation.
719 * corefile.c: Fix indentation.
720 * corelow.c: Fix indentation.
721 * cp-abi.h: Fix indentation.
722 * cp-namespace.c: Fix indentation.
723 * cp-support.c: Fix indentation.
724 * cp-valprint.c: Fix indentation.
725 * cris-linux-tdep.c: Fix indentation.
726 * cris-tdep.c: Fix indentation.
727 * darwin-nat-info.c: Fix indentation.
728 * darwin-nat.c: Fix indentation.
729 * darwin-nat.h: Fix indentation.
730 * dbxread.c: Fix indentation.
731 * dcache.c: Fix indentation.
732 * disasm.c: Fix indentation.
733 * dtrace-probe.c: Fix indentation.
734 * dwarf2/abbrev.c: Fix indentation.
735 * dwarf2/attribute.c: Fix indentation.
736 * dwarf2/expr.c: Fix indentation.
737 * dwarf2/frame.c: Fix indentation.
738 * dwarf2/index-cache.c: Fix indentation.
739 * dwarf2/index-write.c: Fix indentation.
740 * dwarf2/line-header.c: Fix indentation.
741 * dwarf2/loc.c: Fix indentation.
742 * dwarf2/macro.c: Fix indentation.
743 * dwarf2/read.c: Fix indentation.
744 * dwarf2/read.h: Fix indentation.
745 * elfread.c: Fix indentation.
746 * eval.c: Fix indentation.
747 * event-top.c: Fix indentation.
748 * exec.c: Fix indentation.
749 * exec.h: Fix indentation.
750 * expprint.c: Fix indentation.
751 * f-lang.c: Fix indentation.
752 * f-typeprint.c: Fix indentation.
753 * f-valprint.c: Fix indentation.
754 * fbsd-nat.c: Fix indentation.
755 * fbsd-tdep.c: Fix indentation.
756 * findvar.c: Fix indentation.
757 * fork-child.c: Fix indentation.
758 * frame-unwind.c: Fix indentation.
759 * frame-unwind.h: Fix indentation.
760 * frame.c: Fix indentation.
761 * frv-linux-tdep.c: Fix indentation.
762 * frv-tdep.c: Fix indentation.
763 * frv-tdep.h: Fix indentation.
764 * ft32-tdep.c: Fix indentation.
765 * gcore.c: Fix indentation.
766 * gdb_bfd.c: Fix indentation.
767 * gdbarch.sh: Fix indentation.
768 * gdbarch.c: Re-generate
769 * gdbarch.h: Re-generate.
770 * gdbcore.h: Fix indentation.
771 * gdbthread.h: Fix indentation.
772 * gdbtypes.c: Fix indentation.
773 * gdbtypes.h: Fix indentation.
774 * glibc-tdep.c: Fix indentation.
775 * gnu-nat.c: Fix indentation.
776 * gnu-nat.h: Fix indentation.
777 * gnu-v2-abi.c: Fix indentation.
778 * gnu-v3-abi.c: Fix indentation.
779 * go32-nat.c: Fix indentation.
780 * guile/guile-internal.h: Fix indentation.
781 * guile/scm-cmd.c: Fix indentation.
782 * guile/scm-frame.c: Fix indentation.
783 * guile/scm-iterator.c: Fix indentation.
784 * guile/scm-math.c: Fix indentation.
785 * guile/scm-ports.c: Fix indentation.
786 * guile/scm-pretty-print.c: Fix indentation.
787 * guile/scm-value.c: Fix indentation.
788 * h8300-tdep.c: Fix indentation.
789 * hppa-linux-nat.c: Fix indentation.
790 * hppa-linux-tdep.c: Fix indentation.
791 * hppa-nbsd-nat.c: Fix indentation.
792 * hppa-nbsd-tdep.c: Fix indentation.
793 * hppa-obsd-nat.c: Fix indentation.
794 * hppa-tdep.c: Fix indentation.
795 * hppa-tdep.h: Fix indentation.
796 * i386-bsd-nat.c: Fix indentation.
797 * i386-darwin-nat.c: Fix indentation.
798 * i386-darwin-tdep.c: Fix indentation.
799 * i386-dicos-tdep.c: Fix indentation.
800 * i386-gnu-nat.c: Fix indentation.
801 * i386-linux-nat.c: Fix indentation.
802 * i386-linux-tdep.c: Fix indentation.
803 * i386-nto-tdep.c: Fix indentation.
804 * i386-obsd-tdep.c: Fix indentation.
805 * i386-sol2-nat.c: Fix indentation.
806 * i386-tdep.c: Fix indentation.
807 * i386-tdep.h: Fix indentation.
808 * i386-windows-tdep.c: Fix indentation.
809 * i387-tdep.c: Fix indentation.
810 * i387-tdep.h: Fix indentation.
811 * ia64-libunwind-tdep.c: Fix indentation.
812 * ia64-libunwind-tdep.h: Fix indentation.
813 * ia64-linux-nat.c: Fix indentation.
814 * ia64-linux-tdep.c: Fix indentation.
815 * ia64-tdep.c: Fix indentation.
816 * ia64-tdep.h: Fix indentation.
817 * ia64-vms-tdep.c: Fix indentation.
818 * infcall.c: Fix indentation.
819 * infcmd.c: Fix indentation.
820 * inferior.c: Fix indentation.
821 * infrun.c: Fix indentation.
822 * iq2000-tdep.c: Fix indentation.
823 * language.c: Fix indentation.
824 * linespec.c: Fix indentation.
825 * linux-fork.c: Fix indentation.
826 * linux-nat.c: Fix indentation.
827 * linux-tdep.c: Fix indentation.
828 * linux-thread-db.c: Fix indentation.
829 * lm32-tdep.c: Fix indentation.
830 * m2-lang.c: Fix indentation.
831 * m2-typeprint.c: Fix indentation.
832 * m2-valprint.c: Fix indentation.
833 * m32c-tdep.c: Fix indentation.
834 * m32r-linux-tdep.c: Fix indentation.
835 * m32r-tdep.c: Fix indentation.
836 * m68hc11-tdep.c: Fix indentation.
837 * m68k-bsd-nat.c: Fix indentation.
838 * m68k-linux-nat.c: Fix indentation.
839 * m68k-linux-tdep.c: Fix indentation.
840 * m68k-tdep.c: Fix indentation.
841 * machoread.c: Fix indentation.
842 * macrocmd.c: Fix indentation.
843 * macroexp.c: Fix indentation.
844 * macroscope.c: Fix indentation.
845 * macrotab.c: Fix indentation.
846 * macrotab.h: Fix indentation.
847 * main.c: Fix indentation.
848 * mdebugread.c: Fix indentation.
849 * mep-tdep.c: Fix indentation.
850 * mi/mi-cmd-catch.c: Fix indentation.
851 * mi/mi-cmd-disas.c: Fix indentation.
852 * mi/mi-cmd-env.c: Fix indentation.
853 * mi/mi-cmd-stack.c: Fix indentation.
854 * mi/mi-cmd-var.c: Fix indentation.
855 * mi/mi-cmds.c: Fix indentation.
856 * mi/mi-main.c: Fix indentation.
857 * mi/mi-parse.c: Fix indentation.
858 * microblaze-tdep.c: Fix indentation.
859 * minidebug.c: Fix indentation.
860 * minsyms.c: Fix indentation.
861 * mips-linux-nat.c: Fix indentation.
862 * mips-linux-tdep.c: Fix indentation.
863 * mips-nbsd-tdep.c: Fix indentation.
864 * mips-tdep.c: Fix indentation.
865 * mn10300-linux-tdep.c: Fix indentation.
866 * mn10300-tdep.c: Fix indentation.
867 * moxie-tdep.c: Fix indentation.
868 * msp430-tdep.c: Fix indentation.
869 * namespace.h: Fix indentation.
870 * nat/fork-inferior.c: Fix indentation.
871 * nat/gdb_ptrace.h: Fix indentation.
872 * nat/linux-namespaces.c: Fix indentation.
873 * nat/linux-osdata.c: Fix indentation.
874 * nat/netbsd-nat.c: Fix indentation.
875 * nat/x86-dregs.c: Fix indentation.
876 * nbsd-nat.c: Fix indentation.
877 * nbsd-tdep.c: Fix indentation.
878 * nios2-linux-tdep.c: Fix indentation.
879 * nios2-tdep.c: Fix indentation.
880 * nto-procfs.c: Fix indentation.
881 * nto-tdep.c: Fix indentation.
882 * objfiles.c: Fix indentation.
883 * objfiles.h: Fix indentation.
884 * opencl-lang.c: Fix indentation.
885 * or1k-tdep.c: Fix indentation.
886 * osabi.c: Fix indentation.
887 * osabi.h: Fix indentation.
888 * osdata.c: Fix indentation.
889 * p-lang.c: Fix indentation.
890 * p-typeprint.c: Fix indentation.
891 * p-valprint.c: Fix indentation.
892 * parse.c: Fix indentation.
893 * ppc-linux-nat.c: Fix indentation.
894 * ppc-linux-tdep.c: Fix indentation.
895 * ppc-nbsd-nat.c: Fix indentation.
896 * ppc-nbsd-tdep.c: Fix indentation.
897 * ppc-obsd-nat.c: Fix indentation.
898 * ppc-ravenscar-thread.c: Fix indentation.
899 * ppc-sysv-tdep.c: Fix indentation.
900 * ppc64-tdep.c: Fix indentation.
901 * printcmd.c: Fix indentation.
902 * proc-api.c: Fix indentation.
903 * producer.c: Fix indentation.
904 * producer.h: Fix indentation.
905 * prologue-value.c: Fix indentation.
906 * prologue-value.h: Fix indentation.
907 * psymtab.c: Fix indentation.
908 * python/py-arch.c: Fix indentation.
909 * python/py-bpevent.c: Fix indentation.
910 * python/py-event.c: Fix indentation.
911 * python/py-event.h: Fix indentation.
912 * python/py-finishbreakpoint.c: Fix indentation.
913 * python/py-frame.c: Fix indentation.
914 * python/py-framefilter.c: Fix indentation.
915 * python/py-inferior.c: Fix indentation.
916 * python/py-infthread.c: Fix indentation.
917 * python/py-objfile.c: Fix indentation.
918 * python/py-prettyprint.c: Fix indentation.
919 * python/py-registers.c: Fix indentation.
920 * python/py-signalevent.c: Fix indentation.
921 * python/py-stopevent.c: Fix indentation.
922 * python/py-stopevent.h: Fix indentation.
923 * python/py-threadevent.c: Fix indentation.
924 * python/py-tui.c: Fix indentation.
925 * python/py-unwind.c: Fix indentation.
926 * python/py-value.c: Fix indentation.
927 * python/py-xmethods.c: Fix indentation.
928 * python/python-internal.h: Fix indentation.
929 * python/python.c: Fix indentation.
930 * ravenscar-thread.c: Fix indentation.
931 * record-btrace.c: Fix indentation.
932 * record-full.c: Fix indentation.
933 * record.c: Fix indentation.
934 * reggroups.c: Fix indentation.
935 * regset.h: Fix indentation.
936 * remote-fileio.c: Fix indentation.
937 * remote.c: Fix indentation.
938 * reverse.c: Fix indentation.
939 * riscv-linux-tdep.c: Fix indentation.
940 * riscv-ravenscar-thread.c: Fix indentation.
941 * riscv-tdep.c: Fix indentation.
942 * rl78-tdep.c: Fix indentation.
943 * rs6000-aix-tdep.c: Fix indentation.
944 * rs6000-lynx178-tdep.c: Fix indentation.
945 * rs6000-nat.c: Fix indentation.
946 * rs6000-tdep.c: Fix indentation.
947 * rust-lang.c: Fix indentation.
948 * rx-tdep.c: Fix indentation.
949 * s12z-tdep.c: Fix indentation.
950 * s390-linux-tdep.c: Fix indentation.
951 * score-tdep.c: Fix indentation.
952 * ser-base.c: Fix indentation.
953 * ser-mingw.c: Fix indentation.
954 * ser-uds.c: Fix indentation.
955 * ser-unix.c: Fix indentation.
956 * serial.c: Fix indentation.
957 * sh-linux-tdep.c: Fix indentation.
958 * sh-nbsd-tdep.c: Fix indentation.
959 * sh-tdep.c: Fix indentation.
960 * skip.c: Fix indentation.
961 * sol-thread.c: Fix indentation.
962 * solib-aix.c: Fix indentation.
963 * solib-darwin.c: Fix indentation.
964 * solib-frv.c: Fix indentation.
965 * solib-svr4.c: Fix indentation.
966 * solib.c: Fix indentation.
967 * source.c: Fix indentation.
968 * sparc-linux-tdep.c: Fix indentation.
969 * sparc-nbsd-tdep.c: Fix indentation.
970 * sparc-obsd-tdep.c: Fix indentation.
971 * sparc-ravenscar-thread.c: Fix indentation.
972 * sparc-tdep.c: Fix indentation.
973 * sparc64-linux-tdep.c: Fix indentation.
974 * sparc64-nbsd-tdep.c: Fix indentation.
975 * sparc64-obsd-tdep.c: Fix indentation.
976 * sparc64-tdep.c: Fix indentation.
977 * stabsread.c: Fix indentation.
978 * stack.c: Fix indentation.
979 * stap-probe.c: Fix indentation.
980 * stubs/ia64vms-stub.c: Fix indentation.
981 * stubs/m32r-stub.c: Fix indentation.
982 * stubs/m68k-stub.c: Fix indentation.
983 * stubs/sh-stub.c: Fix indentation.
984 * stubs/sparc-stub.c: Fix indentation.
985 * symfile-mem.c: Fix indentation.
986 * symfile.c: Fix indentation.
987 * symfile.h: Fix indentation.
988 * symmisc.c: Fix indentation.
989 * symtab.c: Fix indentation.
990 * symtab.h: Fix indentation.
991 * target-float.c: Fix indentation.
992 * target.c: Fix indentation.
993 * target.h: Fix indentation.
994 * tic6x-tdep.c: Fix indentation.
995 * tilegx-linux-tdep.c: Fix indentation.
996 * tilegx-tdep.c: Fix indentation.
997 * top.c: Fix indentation.
998 * tracefile-tfile.c: Fix indentation.
999 * tracepoint.c: Fix indentation.
1000 * tui/tui-disasm.c: Fix indentation.
1001 * tui/tui-io.c: Fix indentation.
1002 * tui/tui-regs.c: Fix indentation.
1003 * tui/tui-stack.c: Fix indentation.
1004 * tui/tui-win.c: Fix indentation.
1005 * tui/tui-winsource.c: Fix indentation.
1006 * tui/tui.c: Fix indentation.
1007 * typeprint.c: Fix indentation.
1008 * ui-out.h: Fix indentation.
1009 * unittests/copy_bitwise-selftests.c: Fix indentation.
1010 * unittests/memory-map-selftests.c: Fix indentation.
1011 * utils.c: Fix indentation.
1012 * v850-tdep.c: Fix indentation.
1013 * valarith.c: Fix indentation.
1014 * valops.c: Fix indentation.
1015 * valprint.c: Fix indentation.
1016 * valprint.h: Fix indentation.
1017 * value.c: Fix indentation.
1018 * value.h: Fix indentation.
1019 * varobj.c: Fix indentation.
1020 * vax-tdep.c: Fix indentation.
1021 * windows-nat.c: Fix indentation.
1022 * windows-tdep.c: Fix indentation.
1023 * xcoffread.c: Fix indentation.
1024 * xml-syscall.c: Fix indentation.
1025 * xml-tdesc.c: Fix indentation.
1026 * xstormy16-tdep.c: Fix indentation.
1027 * xtensa-config.c: Fix indentation.
1028 * xtensa-linux-nat.c: Fix indentation.
1029 * xtensa-linux-tdep.c: Fix indentation.
1030 * xtensa-tdep.c: Fix indentation.
1031
e1f57067
AB
10322020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1033 Craig Blackmore <craig.blackmore@embecosm.com>
1034
1035 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1036 as an unsigned value.
1037
ae7754b2
TT
10382020-11-01 Tom Tromey <tom@tromey.com>
1039
1040 * dbxread.c (dbx_end_psymtab): Update.
1041 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1042 (build_type_psymtabs_reader): Update.
1043 * xcoffread.c (xcoff_end_psymtab): Update.
1044 * ctfread.c (scan_partial_symbols): Update.
1045 * psymtab.c (sort_pst_symbols): Remove.
1046 (partial_symtab::end): Rename from end_psymtab_common. Inline
1047 sort_pst_symbols.
1048 * psympriv.h (struct partial_symtab) <end>: New method.
1049 (end_psymtab_common): Don't declare.
1050
0684bb51
TT
10512020-11-01 Tom Tromey <tom@tromey.com>
1052
1053 * symmisc.c (count_psyms): New function.
1054 (print_objfile_statistics): Use it.
1055 * psymtab.c (append_psymbol_to_list): Remove.
1056 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1057 * objfiles.h (struct objstats) <n_psyms>: Remove.
1058
089002bb
TT
10592020-11-01 Tom Tromey <tom@tromey.com>
1060
1061 * dbxread.c (dbx_end_psymtab): Update.
1062 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1063 (build_type_psymtabs_reader): Update.
1064 * xcoffread.c (xcoff_end_psymtab): Update.
1065 * ctfread.c (scan_partial_symbols): Update.
1066 * psympriv.h (end_psymtab_common): Update.
1067 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1068 (sort_pst_symbols): Likewise.
1069
525454d6
TT
10702020-11-01 Tom Tromey <tom@tromey.com>
1071
1072 * dbxread.c (dbx_symfile_read): Update.
1073 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1074 * xcoffread.c (xcoff_initial_scan): Update.
1075 * psympriv.h (init_psymbol_list): Don't declare.
1076 * psymtab.c (init_psymbol_list): Remove.
1077
60bd1d53
JB
10782020-11-01 Joel Brobecker <brobecker@adacore.com>
1079
1080 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1081 gnat_encoded_fixed_type_info. Update all callers.
1082
db99d0d0
JB
10832020-11-01 Joel Brobecker <brobecker@adacore.com>
1084
1085 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1086 line too long.
1087
75f24e86
JB
10882020-11-01 Joel Brobecker <brobecker@adacore.com>
1089
1090 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1091 cast_from_fixed. Update all callers.
1092 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1093 Update all callers.
1094 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1095 Update all callers.
1096 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1097 ada_scaling_factor.
1098 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1099 to print_gnat_encoded_fixed_point_type.
1100 * ada-valprint.c: Likewise.
1101
4f0469cd
AB
11022020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1105 (debug_prefixed_printf): Add check of debug_displaced flag.
1106 * linux-nat.c (linux_nat_debug_printf): Add check of
1107 debug_linux_nat flag.
1108
17417fb0
SM
11092020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1110
1111 * infrun.c (infrun_debug_printf_1): Remove.
1112 (displaced_debug_printf_1): Remove.
1113 (stop_all_threads): Use debug_prefixed_printf.
1114 * infrun.h (infrun_debug_printf_1): Remove.
1115 (infrun_debug_printf): Use debug_prefixed_printf.
1116 (displaced_debug_printf_1): Remove.
1117 (displaced_debug_printf): Use debug_prefixed_printf.
1118 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1119 (linux_nat_debug_printf): Use debug_prefixed_printf.
1120
ad6dba1c
SM
11212020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * configure: Re-generate.
1124 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1125 AC_LANG_PROGRAM.
1126
b6fb30ed
SM
11272020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1128
1129 * configure: Re-generate.
1130
5164c117
SM
11312020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1132
1133 * configure: Re-generate.
1134
864ca435
SM
11352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * configure: Re-generate.
1138
b9442ec1
SM
11392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1140
1141 * configure: Re-generate.
1142
294f2697
SM
11432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1144
1145 * acinclude.m4: Modernize.
1146 * configure: Re-generate.
1147
5593a99a
SM
11482020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1149
1150 * configure.ac: Modernize.
1151 * configure: Re-generate.
1152
e41fda1d
SM
11532020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1154
1155 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1156 * configure: Re-generate.
1157 * configure.ac: Remove AM_PROG_CC_STDC.
1158
91e1a0ed
SM
11592020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1160
1161 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1162 AC_CANONICAL_SYSTEM.
1163 * configure: Re-generate.
1164
136821d9
SM
11652020-10-30 Simon Marchi <simon.marchi@efficios.com>
1166
1167 * infrun.h (displaced_debug_printf): New macro. Replace
1168 displaced debug prints throughout to use it.
1169 (displaced_debug_printf_1): New declaration.
1170 (displaced_step_dump_bytes): Return string, remove ui_file
1171 parameter, update all callers.
1172 * infrun.c (displaced_debug_printf_1): New function.
1173 (displaced_step_dump_bytes): Return string, remove ui_file
1174 parameter
1175
aa2045e7
SM
11762020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1177
1178 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1179
b1ec2735
TT
11802020-10-30 Tom Tromey <tromey@adacore.com>
1181
1182 * Makefile.in (stamp-init): Depend on config.status.
1183
b78b3a29
TBA
11842020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1185
1186 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1187
d70bdd3c
PA
11882020-10-30 Pedro Alves <pedro@palves.net>
1189
1190 * thread.c (lookup_selected_frame): Move ...
1191 * frame.c (lookup_selected_frame): ... here.
1192
79952e69
PA
11932020-10-30 Pedro Alves <pedro@palves.net>
1194
1195 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1196 * frame.c
1197 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1198 Use save_selected_frame. Save language as well.
1199 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1200 Use restore_selected_frame, and restore language as well.
1201 (selected_frame_id, selected_frame_level): New.
1202 (selected_frame): Update comments.
1203 (save_selected_frame, restore_selected_frame): New.
1204 (get_selected_frame): Use lookup_selected_frame.
1205 (get_selected_frame_if_set): Delete.
1206 (select_frame): Record selected_frame_level and selected_frame_id.
1207 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1208 fields.
1209 (get_selected_frame): Make 'message' parameter optional.
1210 (get_selected_frame_if_set): Delete declaration.
1211 (select_frame): Update comments.
1212 (save_selected_frame, restore_selected_frame)
1213 (lookup_selected_frame): Declare.
1214 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1215 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1216 New field.
1217 (save_infcall_control_state): Use save_selected_frame.
1218 (restore_selected_frame): Delete.
1219 (restore_infcall_control_state): Use restore_selected_frame.
1220 * stack.c (select_frame_command_core, frame_command_core): Use
1221 get_selected_frame.
1222 * thread.c (restore_selected_frame): Rename to ...
1223 (lookup_selected_frame): ... this and make extern. Select the
1224 current frame if the frame level is -1.
1225 (scoped_restore_current_thread::restore): Also restore the
1226 language.
1227 (scoped_restore_current_thread::~scoped_restore_current_thread):
1228 Don't try/catch.
1229 (scoped_restore_current_thread::scoped_restore_current_thread):
1230 Save the language as well. Use save_selected_frame.
1231
58103c33
SM
12322020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1233
1234 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1235 documentation.
1236 * gdbarch.h: Re-generate.
1237
40a53766
SM
12382020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1239
1240 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1241 parameter.
1242 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1243 Likewise.
1244 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1245 Likewise.
1246 * arch-utils.c (default_displaced_step_hw_singlestep):
1247 Likewise.
1248 * arch-utils.h (default_displaced_step_hw_singlestep):
1249 Likewise.
1250 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1251 Likewise.
1252 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1253 Likewise.
1254 * gdbarch.c: Re-generate.
1255 * gdbarch.h: Re-generate.
1256 * infrun.c (resume_1): Adjust.
1257
8407f91b
TT
12582020-10-29 Tom Tromey <tom@tromey.com>
1259
1260 * progspace.c (program_space::~program_space): Don't call
1261 exec_close.
1262
5008b3b2
TT
12632020-10-29 Tom Tromey <tom@tromey.com>
1264
1265 * exec.c (exec_target::close): Don't change current program
1266 space.
1267
d9eebde0
TT
12682020-10-29 Tom Tromey <tom@tromey.com>
1269
1270 * symfile.c (add_symbol_file_command): Update.
1271 * exec.c (program_space::add_target_sections): Rename.
1272 * symfile-mem.c (symbol_file_add_from_memory): Update.
1273 * progspace.h (struct program_space) <add_target_sections>:
1274 Declare new overload.
1275 * exec.h (add_target_sections_of_objfile): Don't declare.
1276
3769e227
TT
12772020-10-29 Tom Tromey <tom@tromey.com>
1278
1279 * solib.c (solib_map_sections): Update.
1280 * exec.c (program_space::add_target_sections): Now a method.
1281 (exec_file_attach): Update.
1282 * exec.h (add_target_sections): Don't declare.
1283 * progspace.h (struct program_space) <add_target_sections>:
1284 Declare.
1285
2a3f84af
TT
12862020-10-29 Tom Tromey <tom@tromey.com>
1287
1288 * progspace.h (struct program_space) <remove_target_sections>:
1289 Declare.
1290 * exec.c (program_space::remove_target_sections): Now a method.
1291 * exec.h (remove_target_sections): Don't declare.
1292
004eecfd
TT
12932020-10-29 Tom Tromey <tom@tromey.com>
1294
1295 * inferior.c (delete_inferior): Update.
1296 * progspace.c (program_space::empty): Rename from
1297 program_space_empty_p. Return bool.
1298 * progspace.h (struct program_space) <empty>: New method.
1299 (program_space_empty_p): Don't declare.
1300
e39fb971
TT
13012020-10-29 Tom Tromey <tom@tromey.com>
1302
1303 * progspace.c (program_space::~program_space): Don't call
1304 clear_program_space_solib_cache.
1305 (program_space::clear_solib_cache): Rename from
1306 clear_solib_cache.
1307 * solib.c (handle_solib_event): Update.
1308 * progspace.h (struct program_space) <clear_solib_cache>: New
1309 method.
1310 (clear_program_space_solib_cache): Don't declare.
1311
a42d7dd8
TT
13122020-10-29 Tom Tromey <tom@tromey.com>
1313
1314 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1315 * target.c (info_target_command): Update.
1316 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1317 (symbol_file_clear, reread_symbols): Update.
1318 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1319 * stabsread.c (scan_file_globals): Update.
1320 * solib.c (update_solib_list): Update.
1321 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1322 (svr4_fetch_objfile_link_map, enable_break)
1323 (svr4_relocate_main_executable)
1324 (svr4_iterate_over_objfiles_in_search_order): Update.
1325 * solib-frv.c (lm_base, enable_break)
1326 (frv_relocate_main_executable): Update.
1327 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1328 (frv_fetch_objfile_link_map): Update.
1329 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1330 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1331 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1332 * remote.c (remote_target::get_offsets): Update.
1333 (remote_target::start_remote)
1334 (extended_remote_target::post_attach): Update.
1335 * objfiles.c (entry_point_address_query): Update.
1336 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1337 * minsyms.c (get_symbol_leading_char): Update.
1338 * frame.c (inside_main_func): Update.
1339 * progspace.h (symfile_objfile): Remove macro.
1340
19f6550e
TT
13412020-10-29 Tom Tromey <tom@tromey.com>
1342
1343 * exec.c (exec_file_attach): Update.
1344 * progspace.c (program_space::exec_close): Update.
1345 * progspace.h (struct program_space) <ebfd>: Now a
1346 gdb_bfd_ref_ptr.
1347 <set_exec_bfd>: Change argument type.
1348 <exec_bfd>: Update.
1349
7e10abd1
TT
13502020-10-29 Tom Tromey <tom@tromey.com>
1351
1352 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1353 * symfile.c (reread_symbols): Update.
1354 * symfile-mem.c (add_symbol_file_from_memory_command)
1355 (add_vsyscall_page): Update.
1356 * source-cache.c (source_cache::get_plain_source_lines): Update.
1357 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1358 (svr4_current_sos_direct, svr4_exec_displacement)
1359 (svr4_relocate_main_executable): Update.
1360 (svr4_iterate_over_objfiles_in_search_order): Update.
1361 * solib-frv.c (enable_break2, enable_break): Update.
1362 * solib-dsbt.c (lm_base, enable_break): Update.
1363 * solib-darwin.c (find_program_interpreter)
1364 (darwin_solib_create_inferior_hook): Update.
1365 * sol-thread.c (rw_common, ps_pdmodel): Update.
1366 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1367 * remote.c (compare_sections_command)
1368 (remote_target::trace_set_readonly_regions): Update.
1369 * remote-sim.c (get_sim_inferior_data)
1370 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1371 (gdbsim_target_open, gdbsim_target::files_info): Update.
1372 * exec.h (exec_bfd): Remove macro.
1373 * progspace.c (initialize_progspace): Update.
1374 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1375 Update.
1376 * nto-procfs.c (nto_procfs_target::post_attach)
1377 (nto_procfs_target::create_inferior): Update.
1378 * maint.c (maintenance_info_sections): Update.
1379 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1380 Update.
1381 * infcmd.c (post_create_inferior): Update.
1382 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1383 (objfile_find_memory_regions): Update.
1384 * exec.c (validate_exec_file, exec_file_attach)
1385 (exec_read_partial_read_only, print_section_info): Update.
1386 * corelow.c (core_target_open): Update.
1387 * corefile.c (reopen_exec_file, validate_files): Update.
1388 * arm-tdep.c (gdb_print_insn_arm): Update.
1389 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1390 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1391 methods.
1392
b55221ab
TT
13932020-10-29 Tom Tromey <tom@tromey.com>
1394
1395 * progspace.h (current_target_sections): Remove macro.
1396 * solib-svr4.c (scan_dyntag): Update.
1397 * solib-dsbt.c (scan_dyntag): Update.
1398 * exec.c (exec_target::close): Update.
1399 (add_target_sections, add_target_sections_of_objfile)
1400 (remove_target_sections, exec_target::get_section_table)
1401 (exec_target::files_info, set_section_command)
1402 (exec_set_section_address, exec_target::has_memory)
1403 (exec_target::has_memory): Update.
1404
5a36e715
TT
14052020-10-29 Tom Tromey <tom@tromey.com>
1406
1407 * source-cache.c (source_cache::get_plain_source_lines): Use
1408 current_program_space.
1409 * corefile.c (reopen_exec_file): Use current_program_space.
1410 * exec.c (exec_file_attach): Use current_program_space.
1411 * exec.h (exec_bfd_mtime): Remove.
1412
784c8592
TT
14132020-10-29 Tom Tromey <tom@tromey.com>
1414
1415 * gcore.c (default_gcore_mach): Remove.
1416 (create_gcore_bfd): Update.
1417
8a4f1402
TT
14182020-10-29 Tom Tromey <tom@tromey.com>
1419
1420 * progspace.c (program_space::exec_close): New method, from
1421 exec_close in exec.c.
1422 * exec.c (exec_close): Move to progspace.c.
1423 (exec_target::close, exec_file_attach): Update.
1424 * progspace.h (struct program_space) <exec_close>: Declare
1425 method.
1426
c20cb686
TT
14272020-10-29 Tom Tromey <tom@tromey.com>
1428
1429 * progspace.h (struct program_space) <exec_filename>: Rename from
1430 pspace_exec_filename. Now a unique_xmalloc_ptr.
1431 * inferior.c (print_selected_inferior): Update.
1432 (print_inferior): Update.
1433 * mi/mi-main.c (print_one_inferior): Update.
1434 * exec.h (exec_filename): Remove macro.
1435 * corefile.c (get_exec_file): Update.
1436 * exec.c (exec_close): Update.
1437 (exec_file_attach): Update.
1438 * progspace.c (clone_program_space): Update.
1439 (print_program_space): Update.
1440
6be2a9ab
TT
14412020-10-29 Tom Tromey <tom@tromey.com>
1442
1443 * target-section.h (struct target_section): Add constructor.
1444 * exec.c (build_section_table, add_target_sections_of_objfile):
1445 Update.
1446 * corelow.c (core_target::build_file_mappings): Update.
1447
cfaa8f76
TBA
14482020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1449
1450 PR gdb/19318
1451 * inferior.c (detach_inferior_command): Restore the current thread.
1452 (kill_inferior_command): Ditto.
1453
1b00ef06
TV
14542020-10-28 Tom de Vries <tdevries@suse.de>
1455
1456 PR symtab/26772
1457 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1458 map, check it in the "best match" loop.
1459
7f40ce1a
SM
14602020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1461
1462 * m32c-tdep.c: Remove unused includes.
1463
5eb9e3f5
SM
14642020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1465
1466 * xtensa-tdep.c: Remove includes.
1467
b1d4d8d1
TBA
14682020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1469
1470 * breakpoint.c (struct condition_command_opts): New struct.
1471 (condition_command_option_defs): New static global.
1472 (make_condition_command_options_def_group): New function.
1473 (condition_completer): Update to consider the '-force' flag.
1474 (condition_command): Use gdb::option for the '-force' flag.
1475
bd24c5d6
TV
14762020-10-27 Tom de Vries <tdevries@suse.de>
1477
1478 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1479 symbols in section check.
1480
61eb46a4
TV
14812020-10-27 Tom de Vries <tdevries@suse.de>
1482
1483 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1484
733d554a
TBA
14852020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1486
1487 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1488 * breakpoint.c: Update the help text of the 'condition' and 'break'
1489 commands.
1490 (set_breakpoint_condition): Take a new bool parameter
1491 to control whether condition definition should be forced even when
1492 the condition expression is invalid in all of the current locations.
1493 (condition_command): Update the call to 'set_breakpoint_condition'.
1494 (find_condition_and_thread): Take the "-force-condition" flag into
1495 account.
1496 * linespec.c (linespec_keywords): Add "-force-condition" as an
1497 element.
1498 (FORCE_KEYWORD_INDEX): New #define.
1499 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1500 as a keyword.
1501 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1502 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1503 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1504 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1505
b5fa468f
TBA
15062020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1507
1508 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1509 * breakpoint.c (set_breakpoint_location_condition): New function.
1510 (set_breakpoint_condition): Disable a breakpoint location if parsing
1511 the condition string gives an error.
1512 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1513 (build_target_condition_list): Ditto.
1514 (build_target_command_list): Ditto.
1515 (build_bpstat_chain): Ditto.
1516 (print_one_breakpoint_location): Ditto.
1517 (print_one_breakpoint): Ditto.
1518 (breakpoint_1): Ditto.
1519 (bp_location::bp_location): Ditto.
1520 (locations_are_equal): Ditto.
1521 (update_breakpoint_locations): Ditto.
1522 (enable_disable_bp_num_loc): Ditto.
1523 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1524 (find_condition_and_thread_for_sals): New static function.
1525 (create_breakpoint): Call find_condition_and_thread_for_sals.
1526 (location_to_sals): Call find_condition_and_thread_for_sals instead
1527 of find_condition_and_thread.
1528
1c47ec3e
TV
15292020-10-26 Tom de Vries <tdevries@suse.de>
1530
1531 * dwarf2/read.c (process_full_comp_unit): Call
1532 dwarf2_find_base_address.
1533
6390859c
TT
15342020-10-26 Tom Tromey <tromey@adacore.com>
1535
1536 * gdbtypes.c (create_range_type): Revert previous patch. Add
1537 comment.
1538
d744f0f9
PA
15392020-10-26 Pedro Alves <pedro@palves.net>
1540
1541 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1542 (my_waitpid): Use gdb::handle_eintr.
1543
006811bc
SM
15442020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1545
1546 * acinclude.m4: Update ptrace.m4 path.
1547 * ptrace.m4: Moved to gdbsupport.
1548
c75e31a1
SM
15492020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1550
1551 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1552 instead of target_gdbarch.
1553
32495661
SM
15542020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1555
1556 * jit.c (jit_reader_load_command): Pass current inferior.
1557 (jit_inferior_init): Change parameter type to inferior, use it.
1558 (jit_inferior_created): Remove.
1559 (jit_inferior_created_hook): Pass inferior parameter down.
1560 (_initialize_jit): Use jit_inferior_created_hook instead of
1561 jit_inferior_created.
1562 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1563 * infrun.c (follow_exec): Pass inferior to
1564 jit_inferior_created_hook.
1565
3f66685e
SM
15662020-10-24 Simon Marchi <simon.marchi@efficios.com>
1567
1568 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1569 parameter and use it.
1570 (thread_db_inferior_created): Pass inferior argument.
1571
a0ff652f
SM
15722020-10-24 Simon Marchi <simon.marchi@efficios.com>
1573
1574 * aix-thread.c (aix_thread_inferior_created): Add inferior
1575 parameter.
1576 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1577 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1578 * jit.c (jit_inferior_created): Likewise.
1579 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1580 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1581 * observable.h (inferior_created): Likewise.
1582 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1583 * symfile-mem.c (add_vsyscall_page): Likewise.
1584 * infcmd.c (post_create_inferior): Pass inferior argument.
1585
3c67532c
JB
15862020-10-24 Joel Brobecker <brobecker@adacore.com>
1587
1588 GDB 10.1 released.
1589
8747316e
JB
15902020-10-23 Joel Brobecker <brobecker@adacore.com>
1591
1592 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1593 to ada_check_typedef.
1594
1a0ea399
AB
15952020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * f-exp.y (f_parse): Rename to...
1598 (f_language::parser): ...this.
1599 * f-lang.c (f_get_encoding): Rename to...
1600 (f_language::get_encoding): ...this.
1601 (f_op_print_tab): Rename to...
1602 (f_language::op_print_tab): ...this.
1603 (exp_descriptor_f): Rename to...
1604 (f_language::exp_descriptor_tab): ...this.
1605 (class f_language): Moved to f-lang.h.
1606 (f_language::language_arch_info): New function, moved out of class
1607 declaration.
1608 (f_language::search_name_hash): Likewise.
1609 (f_language::lookup_symbol_nonlocal): Likewise.
1610 (f_language::get_symbol_name_matcher_inner): Likewise.
1611 * f-lang.h: Add 'valprint.h' include.
1612 (class f_language): Moved here from f-lang.c.
1613 * f-typeprint.c (f_type_print_args): Delete commented out
1614 declaration.
1615 (f_print_typedef): Rename to...
1616 (f_language::print_typedef): ...this.
1617 (f_print_type): Rename to...
1618 (f_language::print_type): ...this.
1619 (f_type_print_varspec_prefix): Delete declaration and rename to...
1620 (f_language::f_type_print_varspec_prefix): ...this.
1621 (f_type_print_varspec_suffix): Delete declaration and rename to...
1622 (f_language::f_type_print_varspec_suffix): ...this.
1623 (f_type_print_base): Delete declaration and rename to...
1624 (f_language::f_type_print_base): ...this.
1625 * f-valprint.c (f_value_print_inner): Rename to...
1626 (f_language::value_print_inner): ...this.
1627 * parse.c: Delete 'f-lang.h' include.
1628
88cefd9b
AB
16292020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1630
1631 * language.h (language_defn::print_type): Add variable names in
1632 declaration, and update header comment.
1633
5399db93
AB
16342020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1635
1636 * ada-lang.c (ada_language::demangle): Rename to...
1637 (ada_language::demangle_symbol): ...this.
1638 * c-lang.c (cplus_language::demangle): Rename to...
1639 (cplus_language::demangle_symbol): ...this.
1640 * d-lang.c (d_language::demangle): Rename to...
1641 (d_language::demangle_symbol): ...this.
1642 * f-lang.c (f_language::demangle): Rename to...
1643 (f_language::demangle_symbol): ...this.
1644 * go-lang.c (go_language::demangle): Rename to...
1645 (go_language::demangle_symbol): ...this.
1646 * language.c (language_demangle): Update call to demangle_symbol.
1647 (auto_or_unknown_language::demangle): Rename to...
1648 (auto_or_unknown_language::demangle_symbol): ...this.
1649 * language.h (language_defn::demangle): Rename to...
1650 (language_defn::demangle_symbol): ...this.
1651 * objc-lang.c (objc_language::demangle): Rename to...
1652 (objc_language::demangle_symbol): ...this.
1653 * rust-lang.c (rust_language::demangle): Rename to...
1654 (rust_language::demangle_symbol): ...this.
1655
4b2f86ef
AB
16562020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1659 (iterate_over_file_blocks): Replace use of macro with the macros
1660 definition.
1661
e74b39de
AB
16622020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1663
1664 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1665 * valprint.c (maybe_print_array_index): Replace use of macro with
1666 the macros definition.
1667
00c696a6
AB
16682020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1669
1670 * ada-lang.c (ada_language::print_array_index): Call value_print
1671 directly.
1672 * language.c (language_defn::print_array_index): Likewise.
1673 * language.h (LA_VALUE_PRINT): Delete.
1674 * valprint.c (value_print): Call value_print on the
1675 current_language directly.
1676
d3b67c56
AB
16772020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * language.h (LA_PRINT_TYPEDEF): Delete.
1680 * typeprint.c (typedef_print): Call print_typedef directly on the
1681 current_language object.
1682
790e2a12
AB
16832020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1684
1685 * m2-exp.y (m2_parse): Rename to...
1686 (m2_language::parser): ...this. Update function signature.
1687 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1688 (m2_op_print): Rename to...
1689 (m2_language::op_print_tab): ...this, and make const.
1690 (exp_descriptor_modula2): Rename to...
1691 (m2_language::exp_descriptor_modula2): ...this.
1692 (class m2_language): Move to m2-lang.h.
1693 (m2_language::language_arch_info): New function, moved out of
1694 class declaration.
1695 (m2_language::printchar): New function, body from m2_printchar.
1696 (m2_language::printstr): New function, moved out of class
1697 declaration.
1698 (m2_language::emitchar): Likewise.
1699 * m2-lang.h (m2_parse): Delete declaration.
1700 (m2_print_typedef): Delete declaration.
1701 (m2_value_print_inner): Delete declaration.
1702 (class m2_language): Class declaration moved from m2-lang.c,
1703 larger functions are left in m2-lang.c.
1704 * m2-typeprint.c (m2_print_typedef): Rename to...
1705 (m2_language::print_typedef): ...this, and update function
1706 signature.
1707 * m2-valprint.c (m2_value_print_inner): Rename to...
1708 (m2_language::value_print_inner): ...this, replace use of
1709 LA_PRINT_STRING with a direct call to printstr member function,
1710 and update recursive call.
1711
b01175fc
AB
17122020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1713
1714 * language.c (default_is_string_type_p): Delete, implementation
1715 moved into auto_or_unknown_language::is_string_type_p.
1716 (unk_op_print_tab): Moved into
1717 auto_or_unknown_language::opcode_print_table.
1718 (unknown_language_arch_info): Delete, implementation moved into
1719 auto_or_unknown_language::language_arch_info.
1720 (class auto_or_unknown_language): New class, member functions
1721 copied from unknown_language class, with some updates.
1722 (class unknown_language): Most member functions moved into
1723 auto_or_unknown_language class. Inherit from
1724 auto_or_unknown_language class.
1725 (class auto_language): Inherit from auto_or_unknown_language.
1726 Delete most member functions.
1727
1a97fe8c
HD
17282020-10-22 Hannes Domani <ssbssa@yahoo.de>
1729
1730 * stabsread.c (read_member_functions): Remove gdb_assert.
1731
6b9d0dfd
HD
17322020-10-22 Hannes Domani <ssbssa@yahoo.de>
1733
1734 * gdbtypes.c (init_complex_type): Check target type name.
1735
4b4bb603
SM
17362020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1737
1738 * target-debug.h (target_debug_print_struct_target_ops_p):
1739 Remove.
1740 (target_debug_print_async_callback_ftype_p): Remove.
1741 (target_debug_print_struct_trace_state_variable_p): Remove.
1742 (target_debug_print_struct_traceframe_info_p): Remove.
1743 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1744 (target_debug_print_enum_btrace_format): Remove.
1745 (target_debug_print_enum_info_proc_what): Remove.
1746 (target_debug_print_thread_info_pp): Remove.
1747
24f5300a
SM
17482020-10-22 Simon Marchi <simon.marchi@efficios.com>
1749
1750 * target.h (struct target_ops) <make_corefile_notes>:
1751 Change return type to unique pointer.
1752 * target.c (dummy_make_corefile_notes): Likewise.
1753 * exec.c (struct exec_target) <make_corefile_notes>:
1754 Likewise.
1755 (exec_target::make_corefile_notes): Likewise.
1756 * procfs.c (class procfs_target) <make_corefile_notes>:
1757 Likewise.
1758 (procfs_do_thread_registers): Adjust to unique pointer.
1759 (struct procfs_corefile_thread_data): Add constructor.
1760 <note_data>: Change type to unique pointer.
1761 (procfs_corefile_thread_callback): Adjust to unique pointer.
1762 (procfs_target::make_corefile_notes): Change return type to
1763 unique pointer.
1764 * target-delegates.c: Re-generate.
1765 * gcore.c (write_gcore_file_1): Adjust.
1766 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1767 New.
1768
5fb4027f
TV
17692020-10-22 Tom de Vries <tdevries@suse.de>
1770
1771 * block.c (find_block_in_blockvector): Make sure the returned block
1772 contains pc.
1773
4a636814
SM
17742020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1775
1776 PR gdb/26693
1777 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1778 parameter.
1779 (load_cu): Pass existing CU.
1780 (process_imported_unit_die): Likewise.
1781 (follow_die_offset): Likewise.
1782
1bd57575
LM
17832020-10-22 Luis Machado <luis.machado@linaro.org>
1784
1785 * corelow.c (core_target::xfer_partial): Also check for an empty
1786 m_core_unavailable_mappings vector.
1787
6b4c676c
AB
17882020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1789
1790 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1791 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1792 * f-exp.y (arglist): Allow for a series of subranges.
1793 (subrange): Add cases for subranges with strides.
1794 * f-lang.c (value_f90_subarray): Catch use of array strides and
1795 throw an error.
1796 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1797
f2d8e4c5
AB
17982020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1799
1800 * expprint.c (print_subexp_standard): Change enum range_type to
1801 range_flag and rename variables to match.
1802 (dump_subexp_body_standard): Likewise.
1803 * expression.h (enum range_type): Rename to...
1804 (enum range_flag): ...this.
1805 (range_types): Rename to...
1806 (range_flags): ...this.
1807 * f-lang.c (value_f90_subarray): Change enum range_type to
1808 range_flag and rename variables to match.
1809 * parse.c (operator_length_standard): Likewise.
1810 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1811 range_type to range_flag.
1812 * rust-lang.c (rust_evaluate_funcall): Likewise.
1813 (rust_range): Likewise.
1814 (rust_compute_range): Likewise.
1815 (rust_subscript): Likewise.
1816
2f1b18db
AB
18172020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 * expprint.c (print_subexp_standard): Update to reflect changes to
1820 enum range_type.
1821 (dump_subexp_body_standard): Likewise.
1822 * expression.h (enum range_type): Convert to a bit field enum, and
1823 make the enum unsigned.
1824 * f-exp.y (subrange): Update to reflect changes to enum
1825 range_type.
1826 * f-lang.c (value_f90_subarray): Likewise.
1827 * parse.c (operator_length_standard): Likewise.
1828 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1829 * rust-lang.c (rust_range): Likewise.
1830 (rust_compute_range): Likewise.
1831 (rust_subscript): Likewise.
1832
a46d1843
SM
18332020-10-21 Simon Marchi <simon.marchi@efficios.com>
1834
1835 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1836 (displaced_step_in_progress): Fix comment.
1837
c21f37a8
SM
18382020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1839
1840 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1841 * gdbarch.c: Re-generate.
1842 * gdbarch.h: Re-generate.
1843 * gcore.c (write_gcore_file_1): Adjust.
1844 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1845 constructor.
1846 <note_data>: Change type to unique pointer.
1847 <abort_iteration>: Change type to bool.
1848 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1849 (fbsd_collect_thread_registers): Return void, adjust.
1850 (struct fbsd_corefile_thread_data): Add construtor.
1851 <note_data>: Change type to unique pointer.
1852 (fbsd_corefile_thread): Adjust.
1853 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1854 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1855 to unique pointer, adjust.
1856 (struct linux_collect_regset_section_cb_data): Add constructor.
1857 <note_data>: Change type to unique pointer.
1858 <abort_iteration>: Change type to bool.
1859 (linux_collect_thread_registers): Return void, adjust.
1860 (struct linux_corefile_thread_data): Add constructor.
1861 <note_data>: Change type to unique pointer.
1862 (linux_corefile_thread): Adjust.
1863 (linux_make_corefile_notes): Return unique pointer, adjust.
1864
07fbbd01
SM
18652020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1866
1867 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1868 * gdbarch.c: Re-generate.
1869 * gdbarch.h: Re-generate.
1870 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1871 bool.
1872 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1873 Likewise.
1874 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1875 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1876 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1877 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1878
39535193
SM
18792020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1880
1881 * gdbarch.sh: Make generated predicates return bool.
1882 * gdbarch.c: Re-generate.
1883 * gdbarch.h: Re-generate.
1884
ad523d01
TT
18852020-10-20 Tom Tromey <tom@tromey.com>
1886
1887 * varobj-iter.h (struct varobj_item): Remove typedef.
1888
c4464ade
SM
18892020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1890
1891 * infrun.c (currently_stepping): Change int to bool
1892 (maybe_software_singlestep): Likewise.
1893 (show_stop_on_solib_events): Likewise.
1894 (stepping_past_nonsteppable_watchpoint): Likewise.
1895 (displaced_step_in_progress_any_inferior): Likewise.
1896 (displaced_step_in_progress_thread): Likewise.
1897 (keep_going_stepped_thread): Likewise.
1898 (thread_still_needs_step_over): Likewise.
1899 (start_step_over): Likewise.
1900 (do_target_resume): Likewise.
1901 (resume_1): Likewise.
1902 (clear_proceed_status): Likewise.
1903 (thread_still_needs_step_over_bp): Likewise.
1904 (proceed): Likewise.
1905 (switch_back_to_stepped_thread): Likewise.
1906 (adjust_pc_after_break): Likewise.
1907 (stepped_in_from): Likewise.
1908 (handle_stop_requested): Likewise.
1909 (handle_syscall_event): Likewise.
1910 (handle_no_resumed): Likewise.
1911 (handle_inferior_event): Likewise.
1912 (finish_step_over): Likewise.
1913 (handle_signal_stop): Likewise.
1914 (process_event_stop_test): Likewise.
1915
2eb20436
SM
19162020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1917
1918 * infrun.c (get_displaced_stepping_state): Fix comment.
1919
e0c45ded
AS
19202020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1921
1922 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1923
22cc388e
TT
19242020-10-19 Tom Tromey <tromey@adacore.com>
1925
1926 PR tui/26719
1927 * tui/tui-winsource.h (struct tui_source_window_base)
1928 <refresh_window>: Rename from refresh_pad.
1929 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1930 Rename from refresh_pad.
1931 (tui_source_window_base::show_source_content)
1932 (tui_source_window_base::do_scroll_horizontal): Update.
1933
3c6eb4d4
TBA
19342020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1935
1936 * thread.c (_initialize_thread): Fine-tune the help text of
1937 'info threads'.
1938
26703721
TBA
19392020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1940
1941 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1942
61c26be8
MS
19432020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1944
1945 * breakpoint.c (handle_jit_event): Add an argument, change how
1946 `jit_event_handler` is called.
1947
932539d7
TT
19482020-10-17 Tom Tromey <tom@tromey.com>
1949
1950 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1951 (scan_xcoff_symtab): Update.
1952 * psymtab.h (class psymtab_storage) <global_psymbols,
1953 static_psymbols, current_global_psymbols,
1954 current_static_psymbols>: Remove.
1955 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1956 (match_partial_symbol, lookup_partial_symbol): Update.
1957 (print_partial_symbols): Change parameters.
1958 (dump_psymtab, recursively_search_psymtabs)
1959 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1960 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1961 (concat): Remove.
1962 (end_psymtab_common): Simplify.
1963 (append_psymbol_to_list): Change parameters.
1964 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1965 (init_psymbol_list): Simplify.
1966 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1967 * psympriv.h (struct partial_symtab) <empty>: New method.
1968 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1969 Remove.
1970 <global_psymbols, static_psymbols>: New members.
1971 <add_psymbol>: New methods.
1972 (add_psymbol_to_list): Don't declare.
1973 (psymbol_placement): Move earlier.
1974 * mdebugread.c (parse_partial_symbols): Update.
1975 (handle_psymbol_enumerators): Change parameters.
1976 (mdebug_expand_psymtab): Update.
1977 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1978 (add_partial_symbol): Update.
1979 * dwarf2/index-write.c (write_psymbols): Change parameters.
1980 (write_one_signatured_type): Update.
1981 (recursively_count_psymbols): Update.
1982 (recursively_write_psymbols): Update.
1983 (class debug_names) <recursively_write_psymbols>: Update.
1984 <write_psymbols>: Change parameters.
1985 <write_one_signatured_type>: Update.
1986 * dbxread.c (read_dbx_symtab): Update.
1987 (dbx_end_psymtab): Use partial_symtab::empty.
1988 * ctfread.c (struct ctf_context) <pst>: New member.
1989 (create_partial_symtab): Set it.
1990 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1991 (scan_partial_symbols): Use the psymtab's context. Update.
1992
cfabbd35
TT
19932020-10-17 Tom Tromey <tom@tromey.com>
1994
1995 * valprint.c (generic_value_print): Remove comment.
1996 * m2-valprint.c (m2_value_print_inner): Remove comment.
1997 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1998 type.
1999
520596f2
TV
20002020-10-17 Tom de Vries <tdevries@suse.de>
2001
2002 PR symtab/26317
2003 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2004 symbol main.
2005
76547ab3
TV
20062020-10-14 Tom de Vries <tdevries@suse.de>
2007
2008 PR gdb/26733
2009 * solib.c (solib_contains_address_p): Handle
2010 'solib->sections == nullptr'.
2011
d3a07122
SM
20122020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2013
2014 PR gdb/26642
2015 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2016 target can't do async.
2017 * target.c (target_wait): Assert that we don't pass
2018 TARGET_WNOHANG to a target that can't async.
2019
1b71cfcf
KR
20202020-10-13 Kamil Rytarowski <n54@gmx.com>
2021
2022 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2023 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2024 * alpha-bsd-nat.c: Adjust include.
2025 * alpha-bsd-tdep.h: Adjust comment.
2026 * alpha-nbsd-tdep.c: Rename to ...
2027 * alpha-netbsd-tdep.c: ... this, adjust include.
2028 * amd64-nbsd-nat.c: Rename to ...
2029 * amd64-netbsd-nat.c: ... this, adjust include.
2030 * amd64-nbsd-tdep.c: Rename to ...
2031 * amd64-netbsd-tdep.c: ... this, adjust include.
2032 * amd64-tdep.h: Adjust include.
2033 * arm-nbsd-nat.c: Rename to ...
2034 * arm-netbsd-nat.c: ... this, adjust include.
2035 * arm-nbsd-tdep.c: Rename to ...
2036 * arm-netbsd-tdep.c: ... this, adjust include.
2037 * arm-nbsd-tdep.h: Rename to ...
2038 * arm-netbsd-tdep.h: ... this, adjust include.
2039 * configure.nat: Adjust file lists.
2040 * configure.tgt: Likewise.
2041 * hppa-nbsd-nat.c: Rename to ...
2042 * hppa-netbsd-nat.c: ... this, adjust include.
2043 * hppa-nbsd-tdep.c: Rename to ...
2044 * hppa-netbsd-tdep.c: ... this, adjust include.
2045 * i386-nbsd-nat.c: Rename to ...
2046 * i386-netbsd-nat.c: ... this, adjust include.
2047 * i386-nbsd-tdep.c: Rename to ...
2048 * i386-netbsd-tdep.c: ... this, adjust include.
2049 * m68k-bsd-nat.c: Adjust include.
2050 * mips-nbsd-nat.c: Rename to ...
2051 * mips-netbsd-nat.c: ... this, adjust include.
2052 * mips-nbsd-tdep.c: Rename to ...
2053 * mips-netbsd-tdep.c: ... this, adjust include.
2054 * mips-nbsd-tdep.h: Rename to ...
2055 * mips-netbsd-tdep.h: ... this.
2056 * nbsd-nat.c: Rename to ...
2057 * netbsd-nat.c: ... this, adjust include.
2058 * nbsd-nat.h: Rename to ...
2059 * netbsd-nat.h: ... this, adjust include.
2060 * nbsd-tdep.c: Rename to ...
2061 * netbsd-tdep.c: ... this, adjust include.
2062 * nbsd-tdep.h: Rename to ...
2063 * netbsd-tdep.h: ... this.
2064 * ppc-nbsd-nat.c: Rename to ...
2065 * ppc-netbsd-nat.c: ... this, adjust include.
2066 * ppc-nbsd-tdep.c: Rename to ...
2067 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2068 * ppc-nbsd-tdep.h: Rename to ...
2069 * ppc-netbsd-tdep.h: ... this.
2070 * sh-nbsd-nat.c: Rename to ...
2071 * sh-netbsd-nat.c: ... this, adjust include.
2072 * sh-nbsd-tdep.c: Rename to ...
2073 * sh-netbsd-tdep.c: ... this, adjust include.
2074 * sparc-nbsd-nat.c: Rename to ...
2075 * sparc-netbsd-nat.c: ... this.
2076 * sparc-nbsd-tdep.c: Rename to ...
2077 * sparc-netbsd-tdep.c: ... this, adjust include.
2078 * sparc64-nbsd-nat.c: Rename to ...
2079 * sparc64-netbsd-nat.c: ... this.
2080 * sparc64-nbsd-tdep.c: Rename to ...
2081 * sparc64-netbsd-tdep.c: ... this, adjust include.
2082 * sparc64-tdep.h: Adjust comment.
2083 * vax-bsd-nat.c: Adjust include.
2084 * vax-nbsd-tdep.c: Rename to ...
2085 * vax-netbsd-tdep.c: ... this, adjust include.
2086
d7a78e5c
TT
20872020-10-12 Tom Tromey <tom@tromey.com>
2088
2089 * target.h (struct target_ops) <get_section_table>: Update.
2090 (target_get_section_table): Update.
2091 * target.c (target_get_section_table, target_section_by_addr)
2092 (memory_xfer_partial_1): Update.
2093 * target-section.h (target_section_table): Now an alias.
2094 * target-delegates.c: Rebuild.
2095 * target-debug.h (target_debug_print_target_section_table_p):
2096 Rename from target_debug_print_struct_target_section_table_p.
2097 * symfile.c (build_section_addr_info_from_section_table): Update.
2098 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2099 * solib-svr4.c (scan_dyntag): Update.
2100 * solib-dsbt.c (scan_dyntag): Update.
2101 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2102 Update.
2103 * record-full.c (record_full_core_target::xfer_partial): Update.
2104 * progspace.h (struct program_space) <target_sections>: Update.
2105 * exec.h (print_section_info): Update.
2106 * exec.c (exec_target::close, build_section_table)
2107 (add_target_sections, add_target_sections_of_objfile)
2108 (remove_target_sections, exec_on_vfork)
2109 (section_table_available_memory)
2110 (section_table_xfer_memory_partial)
2111 (exec_target::get_section_table, exec_target::xfer_partial)
2112 (print_section_info, set_section_command)
2113 (exec_set_section_address, exec_target::has_memory): Update.
2114 * corelow.c (core_target::build_file_mappings)
2115 (core_target::xfer_partial, core_target::info_proc_mappings)
2116 (core_target::info_proc_mappings): Update.
2117 * bfd-target.c (class target_bfd): Update
2118
eda214ce
TT
21192020-10-12 Tom Tromey <tom@tromey.com>
2120
2121 * progspace.c (program_space::~program_space): Don't call
2122 clear_section_table.
2123 * exec.h (clear_section_table): Don't declare.
2124 * exec.c (exec_target::close): Update.
2125 (clear_section_table): Remove.
2126
91840ee3
TT
21272020-10-12 Tom Tromey <tom@tromey.com>
2128
2129 * exec.c (add_target_sections_of_objfile): Simplify.
2130
2d128614
TT
21312020-10-12 Tom Tromey <tom@tromey.com>
2132
2133 * solib.c (solib_map_sections): Update.
2134 * record-full.c (record_full_core_open_1): Update.
2135 * exec.h (build_section_table): Return a target_section_table.
2136 * exec.c (exec_file_attach): Update.
2137 (build_section_table): Return a target_section_table.
2138 * corelow.c (core_target::core_target): Update.
2139 * bfd-target.c (target_bfd::target_bfd): Update.
2140
bb2a6777
TT
21412020-10-12 Tom Tromey <tom@tromey.com>
2142
2143 * target.c (target_section_by_addr, memory_xfer_partial_1):
2144 Update.
2145 * target-section.h (struct target_section_table): Use
2146 std::vector.
2147 * symfile.h (build_section_addr_info_from_section_table): Take a
2148 target_section_table.
2149 * symfile.c (build_section_addr_info_from_section_table): Take a
2150 target_section_table.
2151 * solist.h (struct so_list) <sections>: Change type.
2152 <sections_end>: Remove.
2153 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2154 (solib_contains_address_p): Update.
2155 * solib-svr4.c (scan_dyntag): Update.
2156 * solib-dsbt.c (scan_dyntag): Update.
2157 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2158 Update.
2159 * record-full.c (record_full_core_start, record_full_core_end):
2160 Remove.
2161 (record_full_core_sections): New global.
2162 (record_full_core_open_1, record_full_core_target::xfer_partial):
2163 Update.
2164 * exec.h (build_section_table, section_table_xfer_memory_partial)
2165 (add_target_sections): Take a target_section_table.
2166 * exec.c (exec_file_attach, clear_section_table): Update.
2167 (resize_section_table): Remove.
2168 (build_section_table, add_target_sections): Take a
2169 target_section_table.
2170 (add_target_sections_of_objfile, remove_target_sections)
2171 (exec_on_vfork): Update.
2172 (section_table_available_memory): Take a target_section_table.
2173 (section_table_read_available_memory): Update.
2174 (section_table_xfer_memory_partial): Take a target_section_table.
2175 (print_section_info, set_section_command)
2176 (exec_set_section_address, exec_target::has_memory): Update.
2177 * corelow.c (class core_target) <m_core_section_table,
2178 m_core_file_mappings>: Remove braces.
2179 <~core_target>: Remove.
2180 (core_target::core_target): Update.
2181 (core_target::~core_target): Remove.
2182 (core_target::build_file_mappings)
2183 (core_target::xfer_memory_via_mappings)
2184 (core_target::xfer_partial, core_target::info_proc_mappings):
2185 Update.
2186 * bfd-target.c (target_bfd::xfer_partial): Update.
2187 (target_bfd::target_bfd): Update.
2188 (target_bfd::~target_bfd): Remove.
2189
7b466b10
TT
21902020-10-12 Tom Tromey <tom@tromey.com>
2191
2192 * target.h (struct target_section, struct target_section_table):
2193 Move to target-section.h.
2194 * target-section.h: New file.
2195
87a37e5e
PA
21962020-10-12 Pedro Alves <pedro@palves.net>
2197
2198 PR exp/26602
2199 * valops.c (struct struct_field_searcher): New.
2200 (update_search_result): Rename to ...
2201 (struct_field_searcher::update_result): ... this. Simplify
2202 prototype. Record all found fields.
2203 (do_search_struct_field): Rename to ...
2204 (struct_field_searcher::search): ... this. Simplify prototype.
2205 Maintain stack of visited baseclass path. Call update_result for
2206 fields too. Keep searching fields in baseclasses instead of
2207 stopping at the first found field.
2208 (search_struct_field): Use struct_field_searcher. When looking
2209 for fields, report ambiguous access attempts.
2210
9370fd51
AB
22112020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2212
2213 * frame.c (inside_main_func): Check full symbols as well as
2214 minimal symbols.
2215
59c8a30b
JB
22162020-10-09 Joel Brobecker <brobecker@adacore.com>
2217
2218 * ada-lang.c (advance_wild_match): Rewrite the function's
2219 description. Change the type of target0, t0 and t1 to char.
2220
7c184d33
TT
22212020-10-09 Tom Tromey <tromey@adacore.com>
2222
2223 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2224
5c4258f4
TT
22252020-10-09 Tom Tromey <tromey@adacore.com>
2226
2227 * ada-lang.h (ada_encode): Return std::string.
2228 * ada-lang.c (ada_encode_1): Return std::string.
2229 (ada_encode): Likewise.
2230 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2231 Update.
2232 * ada-exp.y (block_lookup, write_var_or_type): Update.
2233
3d87245c
HD
22342020-10-09 Hannes Domani <ssbssa@yahoo.de>
2235
2236 PR exp/26714
2237 * printcmd.c (print_formatted): Handle void results as
2238 unformatted prints.
2239
bbb826f5
AB
22402020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * arch/aarch32.c (aarch32_create_target_description): Release the
2243 target_desc_up as late as possible.
2244 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2245 * arch/amd64.c (amd64_create_target_description): Likewise.
2246 * arch/arc.c (arc_create_target_description): Return a
2247 target_desc_up, don't release it.
2248 * arch/arc.h (arc_create_target_description): Update declaration.
2249 (arc_lookup_target_description): Move target_desc_up into the
2250 cache, and return a borrowed pointer.
2251 * arch/arm.c (arm_create_target_description): Release the
2252 target_desc_up as late as possible.
2253 * arch/i386.c (i386_create_target_description): Likewise.
2254 * arch/riscv.h (riscv_create_target_description): Update
2255 declaration to match definition.
2256 * arch/tic6x.c (tic6x_create_target_description): Release the
2257 target_desc_up as late as possible.
2258
361cb219
AB
22592020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2260
2261 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2262 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2263
f5c4b229
JV
22642020-10-09 Jan Vrany <jan.vrany@labware.com>
2265
2266 * source.c (directory_command): Notify observers that "directories"
2267 parameter has changed.
2268
b2701685
TT
22692020-10-08 Tom Tromey <tom@tromey.com>
2270
2271 * cli/cli-cmds.c (print_disassembly): Style function name and
2272 addresses. Add _() wrappers.
2273
ada508b6
SV
22742020-10-08 Shahab Vahedi <shahab@synopsys.com>
2275
2276 * NEWS: Mention ARC support in GDBserver.
2277
51a948fd
AB
22782020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2279
2280 * arch/aarch32.c (aarch32_create_target_description): Release
2281 unique_ptr returned from allocate_target_description.
2282 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2283 * arch/amd64.c (amd64_create_target_description): Likewise.
2284 * arch/arc.c (arc_create_target_description): Likewise.
2285 * arch/arm.c (arm_create_target_description): Likewise.
2286 * arch/i386.c (i386_create_target_description): Likewise.
2287 * arch/riscv.c (riscv_create_target_description): Update return
2288 type. Handle allocate_target_description returning a unique_ptr.
2289 (riscv_lookup_target_description): Update to handle unique_ptr.
2290 * arch/tic6x.c (tic6x_create_target_description): Release
2291 unique_ptr returned from allocate_target_description.
2292 * features/microblaze-with-stack-protect.c: Regenerate.
2293 * features/microblaze.c: Regenerate.
2294 * features/mips-dsp-linux.c: Regenerate.
2295 * features/mips-linux.c: Regenerate.
2296 * features/mips64-dsp-linux.c: Regenerate.
2297 * features/mips64-linux.c: Regenerate.
2298 * features/nds32.c: Regenerate.
2299 * features/nios2.c: Regenerate.
2300 * features/or1k.c: Regenerate.
2301 * features/rs6000/powerpc-32.c: Regenerate.
2302 * features/rs6000/powerpc-32l.c: Regenerate.
2303 * features/rs6000/powerpc-403.c: Regenerate.
2304 * features/rs6000/powerpc-403gc.c: Regenerate.
2305 * features/rs6000/powerpc-405.c: Regenerate.
2306 * features/rs6000/powerpc-505.c: Regenerate.
2307 * features/rs6000/powerpc-601.c: Regenerate.
2308 * features/rs6000/powerpc-602.c: Regenerate.
2309 * features/rs6000/powerpc-603.c: Regenerate.
2310 * features/rs6000/powerpc-604.c: Regenerate.
2311 * features/rs6000/powerpc-64.c: Regenerate.
2312 * features/rs6000/powerpc-64l.c: Regenerate.
2313 * features/rs6000/powerpc-7400.c: Regenerate.
2314 * features/rs6000/powerpc-750.c: Regenerate.
2315 * features/rs6000/powerpc-860.c: Regenerate.
2316 * features/rs6000/powerpc-altivec32.c: Regenerate.
2317 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2318 * features/rs6000/powerpc-altivec64.c: Regenerate.
2319 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2320 * features/rs6000/powerpc-e500.c: Regenerate.
2321 * features/rs6000/powerpc-e500l.c: Regenerate.
2322 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2323 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2324 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2325 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2326 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2327 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2328 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2329 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2330 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2331 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2332 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2333 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2334 * features/rs6000/powerpc-vsx32.c: Regenerate.
2335 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2336 * features/rs6000/powerpc-vsx64.c: Regenerate.
2337 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2338 * features/rs6000/rs6000.c: Regenerate.
2339 * features/rx.c: Regenerate.
2340 * features/s390-gs-linux64.c: Regenerate.
2341 * features/s390-linux32.c: Regenerate.
2342 * features/s390-linux32v1.c: Regenerate.
2343 * features/s390-linux32v2.c: Regenerate.
2344 * features/s390-linux64.c: Regenerate.
2345 * features/s390-linux64v1.c: Regenerate.
2346 * features/s390-linux64v2.c: Regenerate.
2347 * features/s390-te-linux64.c: Regenerate.
2348 * features/s390-tevx-linux64.c: Regenerate.
2349 * features/s390-vx-linux64.c: Regenerate.
2350 * features/s390x-gs-linux64.c: Regenerate.
2351 * features/s390x-linux64.c: Regenerate.
2352 * features/s390x-linux64v1.c: Regenerate.
2353 * features/s390x-linux64v2.c: Regenerate.
2354 * features/s390x-te-linux64.c: Regenerate.
2355 * features/s390x-tevx-linux64.c: Regenerate.
2356 * features/s390x-vx-linux64.c: Regenerate.
2357 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2358 from allocate_target_description.
2359 * target-descriptions.c (allocate_target_description): Update
2360 return type.
2361 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2362 allocate_target_description.
2363
485c47e5
TT
23642020-10-07 Tom Tromey <tromey@adacore.com>
2365
2366 * unittests/search-memory-selftests.c: New file.
2367 * Makefile.in (SELFTESTS_SRCS): Add
2368 unittests/search-memory-selftests.c.
2369
3a135a91
TT
23702020-10-07 Tom Tromey <tromey@adacore.com>
2371
2372 PR gdb/16930:
2373 * findcmd.c (_initialize_mem_search): Mention that the range is
2374 inclusive.
2375
4a72de73
TT
23762020-10-07 Tom Tromey <tromey@adacore.com>
2377
2378 * target.h (simple_search_memory): Don't declare.
2379 * target.c (simple_search_memory): Move to gdbsupport.
2380 (default_search_memory): Update.
2381 * remote.c (remote_target::search_memory): Update.
2382
a038ffd8
SM
23832020-10-07 Simon Marchi <simon.marchi@efficios.com>
2384
2385 * Makefile.in (COMPILE): Add CXXFLAGS.
2386 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2387 (check-headers): Add CXXFLAGS.
2388
cc463201
AK
23892020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2390
2391 * arc-linux-tdep.h: New file.
2392 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2393 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2394 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2395 arc_linux_gregset, arc_linux_v2_regset,
2396 arc_linux_iterate_over_regset_sections,
2397 arc_linux_core_read_description): Implement.
2398 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2399 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2400 (arc_gdbarch_features_create): Add.
2401 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2402
e4bd363f
SV
24032020-10-07 Shahab Vahedi <shahab@synopsys.com>
2404
2405 * arch/arc.h: Rename "arc_gdbarch_features" to
2406 "arc_arch_features".
2407 * arc-tdep.h: Likewise.
2408 * arc-tdep.c: Likewise.
2409
b68bef99
TBA
24102020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2411
2412 * infcmd.c (attach_command): Remove the redundant call to
2413 `clear_proceed_status`.
2414
4641551a
KR
24152020-10-07 Kamil Rytarowski <n54@gmx.com>
2416
2417 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2418
91e5e8db
KR
24192020-10-07 Kamil Rytarowski <n54@gmx.com>
2420
2421 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2422 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2423 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2424
64c03bdb
SM
24252020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2426
2427 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2428 (_initialize_break_catch_sig): Don't allocate array.
2429
31a8f60f
AB
24302020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2431
2432 * symtab.c (find_pc_line): Return unmapped addresses when the
2433 requested address is also unmapped.
2434
9e6dbd8b
SM
24352020-10-05 Simon Marchi <simon.marchi@efficios.com>
2436
2437 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2438 tui/tui-out.h.
2439
a1d217e8
SM
24402020-10-05 Simon Marchi <simon.marchi@efficios.com>
2441
2442 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2443 type::is_vector instead of TYPE_VECTOR.
2444
7d144117
SM
24452020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2446
2447 * auto-load.c (auto_load_objfile_script_1): Don't use
2448 debugfile_holder as temporary variable when stripping drive
2449 letter.
2450
cd096ec8
HD
24512020-10-05 Hannes Domani <ssbssa@yahoo.de>
2452
2453 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2454 Add TYPE_CODE_COMPLEX.
2455 (amd64_windows_return_value): Fix types returned via XMM0.
2456
b58e7f72
AH
24572020-10-05 Alan Hayward <alan.hayward@arm.com>
2458
2459 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2460 AArch64/ARM maintainers.
2461
8d378f27
SM
24622020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2463
2464 * NEWS: Mention set/show debug event-loop.
2465
d5519913
TT
24662020-10-02 Tom Tromey <tromey@adacore.com>
2467
2468 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2469 REG_EXTENDED.
2470
18b67edc
SM
24712020-10-02 Simon Marchi <simon.marchi@efficios.com>
2472
2473 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2474 * procfs.c (procfs_inferior_created): Remove.
2475 (_initialize_procfs): Don't register procfs_inferior_created.
2476
6b01403b
SM
24772020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2478
2479 * async-event.c (invoke_async_signal_handlers): Add debug
2480 print.
2481 (check_async_event_handlers): Likewise.
2482 * event-top.c (show_debug_event_loop): New function.
2483 (_initialize_event_top): Register "set debug event-loop"
2484 setting.
2485
ba988419
SM
24862020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2487
2488 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2489 * debug.h: Remove.
2490 * infrun.c: Include gdbsupport/common-debug.h.
2491 * linux-nat.c: Likewise.
2492
db20ebdf
SM
24932020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2494
2495 * async-event.h (create_async_signal_handler): Add name
2496 parameter.
2497 (create_async_event_handler): Likewise.
2498 * async-event.c (struct async_signal_handler) <name>: New field.
2499 (struct async_event_handler) <name>: New field.
2500 (create_async_signal_handler): Assign name.
2501 (create_async_event_handler): Assign name.
2502 * event-top.c (async_init_signals): Pass name when creating
2503 handler.
2504 * infrun.c (_initialize_infrun): Likewise.
2505 * record-btrace.c (record_btrace_push_target): Likewise.
2506 * record-full.c (record_full_open): Likewise.
2507 * remote-notif.c (remote_notif_state_allocate): Likewise.
2508 * remote.c (remote_target::open_1): Likewise.
2509 * tui/tui-win.c (tui_initialize_win): Likewise.
2510
2554f6f5
SM
25112020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2512
2513 * async-event.c (initialize_async_signal_handlers): Pass name to
2514 add_file_handler
2515 * event-top.c (ui_register_input_event_handler): Likewise.
2516 * linux-nat.c (linux_nat_target::async): Likewise.
2517 * run-on-main-thread.c (_initialize_run_on_main_thread):
2518 Likewise
2519 * ser-base.c (reschedule): Likewise.
2520 (ser_base_async): Likewise.
2521 * tui/tui-io.c: Likewise.
2522 * top.h (struct ui) <num>: New field.
2523 * top.c (highest_ui_num): New variable.
2524 (ui::ui): Initialize num.
2525
a7aba266
SM
25262020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2527
2528 * observable.h <inferior_created>: Remove parameters. Update all
2529 listeners.
2530 * inferior.h (post_create_inferior): Remove target parameter.
2531 Update all callers.
2532
048fde1e 25332020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2534
2535 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2536 and DW_MACRO_undef_strx.
2537 (dwarf_decode_macros): Likewise
2538 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2539 which is the value of DW_AT_str_offsets_base.
2540 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2541 str_offsets_base.
2542
064280be
KR
25432020-10-01 Kamil Rytarowski <n54@gmx.com>
2544
2545 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2546
6ff33035
KR
25472020-10-01 Kamil Rytarowski <n54@gmx.com>
2548
2549 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2550 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2551
1eb6eb79
KR
25522020-10-01 Kamil Rytarowski <n54@gmx.com>
2553
2554 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2555
95eb9e54
TV
25562020-09-30 Tom de Vries <tdevries@suse.de>
2557
2558 PR symtab/26683
2559 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2560
cae21f8e
TT
25612020-09-30 Tom Tromey <tromey@adacore.com>
2562
2563 * dwarf2/read.c (handle_variant): Use constant_value.
2564
529908cb
TT
25652020-09-29 Tom Tromey <tom@tromey.com>
2566
2567 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2568 (read_file_scope, dwarf2_get_pc_bounds)
2569 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2570 (read_structure_type, handle_struct_member_die)
2571 (read_enumeration_type, read_array_type, read_set_type)
2572 (read_tag_pointer_type, read_tag_reference_type)
2573 (read_subroutine_type, read_base_type, read_subrange_type)
2574 (read_full_die_1, partial_die_info::read)
2575 (partial_die_info::read, by, new_symbol)
2576 (dwarf2_const_value_data, dwarf2_const_value_attr)
2577 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2578 (prepare_one_comp_unit): Update.
2579 * dwarf2/attribute.h (DW_UNSND): Remove.
2580
c45bc3f8
TT
25812020-09-29 Tom Tromey <tom@tromey.com>
2582
2583 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2584 (read_subroutine_type, partial_die_info::read)
2585 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2586 (dwarf2_add_member_fn): Update.
2587 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2588 * dwarf2/attribute.c (attribute::as_boolean): New method.
2589
23dca5c3
TT
25902020-09-29 Tom Tromey <tom@tromey.com>
2591
2592 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2593 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2594 method.
2595 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2596
52c14d11
TT
25972020-09-29 Tom Tromey <tom@tromey.com>
2598
2599 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2600 the attribute's form.
2601
e8e5c158
TT
26022020-09-29 Tom Tromey <tom@tromey.com>
2603
2604 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2605 (dwarf2_add_member_fn): Update.
2606 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2607 * dwarf2/attribute.c (attribute::defaulted): New method, from
2608 is_valid_DW_AT_defaulted.
2609
d4df075e
TT
26102020-09-29 Tom Tromey <tom@tromey.com>
2611
2612 * dwarf2/read.c (dw2_get_file_names_reader)
2613 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2614 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2615 (dwarf2_symbol_mark_computed): Use as_unsigned.
2616 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2617 method.
2618 <form_is_section_offset>: Update comment.
2619
bf23a268
TT
26202020-09-29 Tom Tromey <tom@tromey.com>
2621
2622 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2623 dwarf2_default_access_attribute. Look up attribute.
2624 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2625 Update.
2626
7a5f294d
TT
26272020-09-29 Tom Tromey <tom@tromey.com>
2628
2629 * dwarf2/read.c (skip_one_die): Update.
2630 (read_full_die_1): Change how reprocessing is done.
2631 (partial_die_info::read): Update.
2632 (read_attribute_value): Remove need_reprocess parameter.
2633 (read_attribute): Likewise.
2634 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2635 New method.
2636
36d378cf
TT
26372020-09-29 Tom Tromey <tom@tromey.com>
2638
2639 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2640 (dwarf2_const_value_attr, dump_die_shallow)
2641 (dwarf2_fetch_constant_bytes): Update.
2642 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2643 comment.
2644 <set_address>: New method.
2645 (DW_ADDR): Remove.
2646 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2647 (attribute::as_string, attribute::as_address): Add assert.
2648
fe56917a
TT
26492020-09-29 Tom Tromey <tom@tromey.com>
2650
2651 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2652 (read_attribute_reprocess, read_attribute_value): Update.
2653 (read_attribute): Clear requires_reprocessing.
2654 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2655 form_requires_reprocessing>: New methods.
2656 <string_init>: Clear requires_reprocessing.
2657 <set_unsigned_reprocess>: New method.
2658 <name>: Shrink by one bit.
2659 <requires_reprocessing>: New member.
2660 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2661 method.
2662
414ad644
TT
26632020-09-29 Tom Tromey <tom@tromey.com>
2664
2665 * dwarf2/read.c (read_attribute_value): Update.
2666 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2667 set_unsigned>: New methods.
2668 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2669
1bc397c5
TT
26702020-09-29 Tom Tromey <tom@tromey.com>
2671
2672 * dwarf2/read.c (get_alignment, read_array_order)
2673 (read_attribute_value, dwarf2_const_value_attr)
2674 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2675 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2676 New methods.
2677 (DW_SND): Remove.
2678
630ed6b9
TT
26792020-09-29 Tom Tromey <tom@tromey.com>
2680
2681 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2682 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2683 Update.
2684 * dwarf2/attribute.h (struct attribute) <as_signature,
2685 set_signature>: New methods.
2686 (DW_SIGNATURE): Remove.
2687
9d2246fc
TT
26882020-09-29 Tom Tromey <tom@tromey.com>
2689
2690 * dwarf2/read.c (read_call_site_scope)
2691 (handle_data_member_location, dwarf2_add_member_fn)
2692 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2693 (partial_die_info::read, read_attribute_value)
2694 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2695 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2696 (dwarf2_symbol_mark_computed): Update.
2697 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2698 methods.
2699 (DW_BLOCK): Remove.
2700 * dwarf2/attribute.c (attribute::form_is_block): Add
2701 DW_FORM_data16.
2702
c6481205
TT
27032020-09-29 Tom Tromey <tom@tromey.com>
2704
2705 * dwarf2/read.c (read_cutu_die_from_dwo)
2706 (read_attribute_reprocess, read_attribute_value, read_attribute)
2707 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2708 (dwarf2_fetch_constant_bytes): Update.
2709 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2710 <set_string_noncanonical, set_string_canonical>: New methods.
2711 <string_is_canonical>: Update comment.
2712 <canonical_string_p>: Add assert.
2713 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2714 * dwarf2/attribute.c (attribute::form_is_string): New method.
2715 (attribute::string): Use it.
2716
3b64bf15
TT
27172020-09-29 Tom Tromey <tom@tromey.com>
2718
2719 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2720 (dump_die_shallow): Use canonical_string_p.
2721 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2722 method.
2723
2c830f54
TT
27242020-09-29 Tom Tromey <tom@tromey.com>
2725
2726 * dwarf2/read.c (partial_die_info::read)
2727 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2728 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2729 attribute::as_string.
2730
6c412691
TT
27312020-09-29 Tom Tromey <tom@tromey.com>
2732
2733 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2734 DW_ADDR.
2735 (attribute::string): Don't use DW_STRING.
2736 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2737 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2738
95f982e5
TT
27392020-09-29 Tom Tromey <tom@tromey.com>
2740
2741 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2742 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2743 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2744 * dwarf2/attribute.h (struct attribute): Rename methods.
2745 * dwarf2/attribute.c (attribute::as_address): Rename from
2746 value_as_address.
2747 (attribute::as_string): Rename from value_as_string.
2748
f800b00e
TT
27492020-09-29 Tom Tromey <tom@tromey.com>
2750
2751 * dwarf2/read.c (partial_die_info::read) <case
2752 DW_AT_linkage_name>: Use value_as_string.
2753 (dwarf2_string_attr): Use value_as_string.
2754 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2755 method.
2756 * dwarf2/attribute.c (attribute::value_as_string): New method.
2757
de38d64a
PA
27582020-09-29 Pedro Alves <pedro@palves.net>
2759
2760 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2761 defined before using '#pragma GCC diagnostic' instead of checking
2762 __clang__.
2763
9aed480c
TT
27642020-09-28 Tom Tromey <tom@tromey.com>
2765
2766 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2767 (handle_signal_stop): Update.
2768 * procfs.c (procfs_target::insert_watchpoint): Update.
2769 * target.h (target_have_steppable_watchpoint): Now a function.
2770
8a3ecb79
TT
27712020-09-28 Tom Tromey <tom@tromey.com>
2772
2773 * infrun.c (set_schedlock_func): Update.
2774 * target.h (target_can_lock_scheduler): Now a function.
2775
55f6301a
TT
27762020-09-28 Tom Tromey <tom@tromey.com>
2777
2778 * inferior.h (class inferior) <has_execution>: Update.
2779 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2780 * valops.c (find_function_in_inferior)
2781 (value_allocate_space_in_inferior): Update.
2782 * top.c (kill_or_detach): Update.
2783 * target.c (target_preopen, set_target_permissions): Update.
2784 (target_has_execution_current): Remove.
2785 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2786 Update.
2787 * solib.c (update_solib_list, reload_shared_libraries): Update.
2788 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2789 * solib-dsbt.c (enable_break): Update.
2790 * score-tdep.c (score7_fetch_inst): Update.
2791 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2792 Update.
2793 * remote.c (remote_target::start_remote)
2794 (remote_target::remote_check_symbols, remote_target::open_1)
2795 (remote_target::remote_detach_1, remote_target::verify_memory)
2796 (remote_target::xfer_partial, remote_target::read_description)
2797 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2798 * record-full.c (record_full_open_1): Update.
2799 * record-btrace.c (record_btrace_target_open): Update.
2800 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2801 (value_nsstring): Update.
2802 * linux-thread-db.c (add_thread_db_info)
2803 (thread_db_find_new_threads_silently, check_thread_db_callback)
2804 (try_thread_db_load_1, record_thread): Update.
2805 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2806 Update.
2807 * linux-fork.c (checkpoint_command): Update.
2808 * infrun.c (set_non_stop, set_observer_mode)
2809 (check_multi_target_resumption, for_each_just_stopped_thread)
2810 (maybe_remove_breakpoints, normal_stop)
2811 (class infcall_suspend_state): Update.
2812 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2813 (info_program_command, attach_command): Update.
2814 * infcall.c (call_function_by_hand_dummy): Update.
2815 * inf-loop.c (inferior_event_handler): Update.
2816 * gcore.c (gcore_command, derive_heap_segment): Update.
2817 * exec.c (exec_file_command): Update.
2818 * eval.c (evaluate_subexp): Update.
2819 * compile/compile.c (compile_to_object): Update.
2820 * cli/cli-dump.c (restore_command): Update.
2821 * breakpoint.c (update_watchpoint)
2822 (update_inserted_breakpoint_locations)
2823 (insert_breakpoint_locations, get_bpstat_thread): Update.
2824 * target.h (target_has_execution): Remove macro.
2825 (target_has_execution_current): Don't declare.
2826 (target_has_execution): Rename from target_has_execution_1. Add
2827 argument default.
2828
05374cfd
TT
28292020-09-28 Tom Tromey <tom@tromey.com>
2830
2831 * mi/mi-main.c (exec_reverse_continue)
2832 (mi_cmd_list_target_features): Update.
2833 * infrun.c (set_exec_direction_func): Update.
2834 * target.c (default_execution_direction): Update.
2835 * reverse.c (exec_reverse_once): Update.
2836 * target.h (target_can_execute_reverse): Now a function.
2837
9dccd06e
TT
28382020-09-28 Tom Tromey <tom@tromey.com>
2839
2840 * tui/tui-regs.c (tui_get_register)
2841 (tui_data_window::show_registers): Update.
2842 * thread.c (scoped_restore_current_thread::restore)
2843 (scoped_restore_current_thread::scoped_restore_current_thread):
2844 Update.
2845 * regcache-dump.c (regcache_print): Update.
2846 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2847 Update.
2848 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2849 * mep-tdep.c (current_me_module, current_options): Update.
2850 * linux-thread-db.c (thread_db_load): Update.
2851 * infcmd.c (registers_info, info_vector_command)
2852 (info_float_command): Update.
2853 * ia64-tdep.c (ia64_frame_prev_register)
2854 (ia64_sigtramp_frame_prev_register): Update.
2855 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2856 * gcore.c (derive_stack_segment): Update.
2857 * frame.c (get_current_frame, has_stack_frames): Update.
2858 * findvar.c (language_defn::read_var_value): Update.
2859 * arm-tdep.c (arm_pc_is_thumb): Update.
2860 * target.c (target_has_registers): Rename from
2861 target_has_registers_1.
2862 * target.h (target_has_registers): Remove macro.
2863 (target_has_registers): Rename from target_has_registers_1.
2864
841de120
TT
28652020-09-28 Tom Tromey <tom@tromey.com>
2866
2867 * windows-tdep.c (tlb_make_value): Update.
2868 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2869 * thread.c (scoped_restore_current_thread::restore)
2870 (scoped_restore_current_thread::scoped_restore_current_thread)
2871 (thread_command): Update.
2872 * stack.c (backtrace_command_1, frame_apply_level_command)
2873 (frame_apply_all_command, frame_apply_command): Update.
2874 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2875 Update.
2876 * gcore.c (derive_stack_segment): Update.
2877 * frame.c (get_current_frame, has_stack_frames): Update.
2878 * auxv.c (info_auxv_command): Update.
2879 * ada-tasks.c (ada_build_task_list): Update.
2880 * target.c (target_has_stack): Rename from target_has_stack_1.
2881 * target.h (target_has_stack): Remove macro.
2882 (target_has_stack): Rename from target_has_stack_1.
2883
a739972c
TT
28842020-09-28 Tom Tromey <tom@tromey.com>
2885
2886 * target.c (target_has_memory): Rename from target_has_memory_1.
2887 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2888 * thread.c (scoped_restore_current_thread::restore)
2889 (scoped_restore_current_thread::scoped_restore_current_thread):
2890 Update.
2891 * frame.c (get_current_frame, has_stack_frames): Update.
2892 * target.h (target_has_memory): Remove macro.
2893 (target_has_memory): Rename from target_has_memory_1.
2894
5b8a4776
TT
28952020-09-28 Tom Tromey <tom@tromey.com>
2896
2897 * target.c (target_has_all_memory_1): Remove.
2898 * target.h (target_has_all_memory): Remove define.
2899 (target_has_all_memory_1): Don't declare.
2900
bd356ec6
SM
29012020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2902
2903 * ser-base.c: Adjust comments formatting.
2904
2c72d5e5
TT
29052020-09-27 Tom Tromey <tom@tromey.com>
2906
2907 PR tui/25342:
2908 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2909
35a98237
TT
29102020-09-27 Tom Tromey <tom@tromey.com>
2911
2912 PR tui/25342:
2913 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2914
9e820dec
TT
29152020-09-27 Tom Tromey <tom@tromey.com>
2916
2917 * unittests/tui-selftests.c: Update.
2918 * tui/tui-winsource.h (struct tui_source_window_base)
2919 <extra_margin, show_line_number, refresh_pad>: New methods.
2920 <m_max_length, m_pad>: New members.
2921 (tui_copy_source_line): Update.
2922 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2923 first_col, line_width, ndigits parameters. Add length.
2924 (tui_source_window_base::show_source_line): Write to pad. Line
2925 number now 0-based.
2926 (tui_source_window_base::refresh_pad): New method.
2927 (tui_source_window_base::show_source_content): Write to pad. Call
2928 refresh_pad.
2929 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2930 not refill.
2931 (tui_source_window_base::update_exec_info): Call
2932 show_line_number.
2933 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2934 method.
2935 <m_digits>: New member.
2936 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2937 and m_max_length.
2938 (tui_source_window::show_line_number): New method.
2939 * tui/tui-io.h (tui_puts): Fix comment.
2940 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2941 m_max_length.
2942
c15c15c8
TT
29432020-09-27 Tom Tromey <tom@tromey.com>
2944
2945 * tui/tui-winsource.c
2946 (tui_source_window_base::set_is_exec_point_at): Don't call
2947 show_source_line.
2948
149830c1
TT
29492020-09-27 Tom Tromey <tom@tromey.com>
2950
2951 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2952 method.
2953 <erase>: Update.
2954 <cursor_x, cursor_y>: Remove.
2955 <m_inner_window>: New member.
2956 (tui_py_window::rerender): Create inner window.
2957 (tui_py_window::output): Write to inner window.
2958
8f9929bb
GR
29592020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2960
2961 PR python/26586
2962 * cli/cli-script.c (execute_control_commands): don't set
2963 instream to nullptr here as this breaks the from_tty argument
2964 to gdb.execute in Python.
2965 (execute_user_command): set instream to nullptr here instead.
2966
956bdb59
SM
29672020-09-25 Simon Marchi <simon.marchi@efficios.com>
2968
2969 * infrun.h (infrun_debug_printf): Fix formatting.
2970 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2971
3b93626b
SJ
29722020-09-25 Saagar Jha <saagar@saagarjha.com>
2973
2974 * compile/compile-object-load.h (struct munmap_list): Add
2975 explicitly-defined move constructor.
2976
b551a89f
TT
29772020-09-24 Tom Tromey <tromey@adacore.com>
2978
2979 PR tui/26638:
2980 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2981 method.
2982 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2983 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2984 (tui_prev_win): Rewrite.
2985
99bb393f
HD
29862020-09-23 Hannes Domani <ssbssa@yahoo.de>
2987
2988 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2989 in WOW64 processes as SIGINT.
2990 * nat/windows-nat.h: Make wow64_process a shared variable.
2991 * windows-nat.c: Remove static wow64_process variable.
2992
20a5fcbd
TT
29932020-09-23 Tom Tromey <tom@tromey.com>
2994
2995 PR symtab/25470:
2996 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2997 offset and bit size.
2998 * printcmd.c (print_scalar_formatted): Handle zero-length
2999 integer.
3000 (print_scalar_formatted): Use bit_size_differs_p.
3001 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3002 constant.
3003 (union type_specific): <int_stuff>: New member.
3004 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3005 methods.
3006 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3007 TYPE_SPECIFIC_FIELD.
3008 (recursive_dump_type, copy_type_recursive): Update.
3009 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3010 DW_AT_data_bit_offset.
3011
bac51ab7
TT
30122020-09-23 Tom Tromey <tom@tromey.com>
3013
3014 * utils.h (class gdb_argv): Add move operators.
3015 <append>: New methods.
3016 * compile/compile.c (build_argc_argv): Remove.
3017 (compile_args_argc): Remove.
3018 (compile_args_argv): Change type.
3019 (set_compile_args): Simplify.
3020 (append_args): Remove.
3021 (filter_args): Remove argcp parameter.
3022 (get_args): Return gdb_argv. Simplify.
3023 (compile_to_object): Update.
3024
92677124
TT
30252020-09-23 Tom Tromey <tom@tromey.com>
3026
3027 * compile/compile-object-run.c (do_module_cleanup)
3028 <~do_module_cleanup> :Remove.
3029 (do_module_cleanup): Update.
3030 * compile/compile-object-load.h (struct munmap_list): Add move
3031 assignment operator.
3032 <source_file>: Now a std::string.
3033 <munmap_list>: Rename. No longer a pointer.
3034 * compile/compile-object-load.c (struct setup_sections_data): Add
3035 constructor.
3036 <setup_one_section>: Declare.
3037 <munmap_list>: Move earlier.
3038 <m_bfd>: New member.
3039 <m_last_size, m_last_section_first, m_last_prot,
3040 m_last_max_alignment>: Rename, add initializers where needed.
3041 (setup_sections_data::setup_one_section): Rename from
3042 setup_sections. Update.
3043 (compile_object_load): Update. Don't use bfd_map_over_sections.
3044
e616f60a
TT
30452020-09-23 Tom Tromey <tom@tromey.com>
3046
3047 * compile/compile-object-run.c (struct do_module_cleanup): Add
3048 parameters to constructor. Update destructor.
3049 <source_file, scope, scope_data, out_value_type, out_value_addr,
3050 munmap_list_head, objfile_name_string>: Remove.
3051 <module>: New member.
3052 (do_module_cleanup): Update.
3053 (compile_object_run): Update.
3054
e947a848
TT
30552020-09-23 Tom Tromey <tom@tromey.com>
3056
3057 * compile/compile.c (eval_compile_command): Update.
3058 * compile/compile-object-run.h (compile_object_run): Take a
3059 compile_module_up.
3060 * compile/compile-object-run.c (compile_object_run): Take a
3061 compile_module_up.
3062 * compile/compile-object-load.h (struct compile_module): Add
3063 constructor, destructor.
3064 (compile_module_up): New typedef.
3065 (compile_object_load): Return compile_object_up.
3066 * compile/compile-object-load.c (compile_object_load): Return
3067 compile_module_up.
3068
0dbf6ee6
TT
30692020-09-23 Tom Tromey <tom@tromey.com>
3070
3071 * compile/compile-object-run.c (struct do_module_cleanup): Add
3072 constructor, destructor.
3073 <objfile_name_string>: Don't use struct hack.
3074 (do_module_cleanup): Use delete.
3075 (compile_object_run): Use new.
3076
ebe824f5
TT
30772020-09-23 Tom Tromey <tom@tromey.com>
3078
3079 * compile/compile-cplus-types.c
3080 (compile_cplus_convert_struct_or_union): Use std::vector.
3081 (compile_cplus_convert_func): Likewise.
3082 * compile/compile-c-types.c (convert_func): Use std::vector.
3083
5dd918d9
TT
30842020-09-21 Tom Tromey <tromey@adacore.com>
3085
3086 * sparc-tdep.c (sparc32_skip_prologue): Use
3087 skip_prologue_using_sal.
3088
5486c517
TT
30892020-09-19 Tom Tromey <tom@tromey.com>
3090
3091 * symfile.c (add_section_size_callback): Remove.
3092 (load_one_section): Rename from load_section_callback. Change
3093 parameters.
3094 (generic_load): Use foreach.
3095
8a6bb1d1
TT
30962020-09-19 Tom Tromey <tom@tromey.com>
3097
3098 * exec.c (add_to_section_table): Remove.
3099 (build_section_table): Use foreach.
3100
08f93a1a
TT
31012020-09-19 Tom Tromey <tom@tromey.com>
3102
3103 * elfread.c (elf_locate_sections): Change parameters.
3104 (elf_symfile_read): Use foreach.
3105
03cd72b8
TT
31062020-09-19 Tom Tromey <tom@tromey.com>
3107
3108 * cli/cli-dump.c (struct callback_data): Remove.
3109 (restore_one_section): Rename from restore_section_callback.
3110 Change parameters.
3111 (restore_binary_file): Change parameters.
3112 (restore_command): Use foreach.
3113
f4f2b85f
TT
31142020-09-19 Tom Tromey <tom@tromey.com>
3115
3116 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3117 (gcore_copy_callback): Likewise.
3118 (gcore_memory_sections): Use foreach.
3119
b35c1d1c
TT
31202020-09-19 Tom Tromey <tom@tromey.com>
3121
3122 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3123 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3124 parameters.
3125 (generic_elf_osabi_sniffer): Use foreach.
3126 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3127 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3128
5bb6e9dd
TT
31292020-09-19 Tom Tromey <tom@tromey.com>
3130
3131 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3132 (dwarf2_get_dwz_file): Use foreach.
3133 (dwarf2_locate_dwo_sections): Change parameters.
3134 (open_and_init_dwo_file): Use foreach.
3135 (dwarf2_locate_common_dwp_sections): Change parameters.
3136 (open_and_init_dwp_file): Use foreach.
3137
ad7277da
TT
31382020-09-19 Tom Tromey <tom@tromey.com>
3139
3140 * symfile.h: (find_lowest_section): Don't declare.
3141 * symfile.c (find_lowest_section): Now static. Change
3142 parameters.
3143 (struct place_section_arg): Remove.
3144 (place_section): Change parameters.
3145 (addr_info_make_relative): Use foreach.
3146 (symfile_dummy_outputs): Remove.
3147 (default_symfile_relocate): Use foreach.
3148
cb814f2e
TT
31492020-09-19 Tom Tromey <tom@tromey.com>
3150
3151 * objfiles.c (add_to_objfile_sections): Rename from
3152 add_to_objfile_sections_full.
3153 (add_to_objfile_sections): Remove.
3154 (build_objfile_section_table): Use foreach.
3155
3cabfd26
TT
31562020-09-19 Tom Tromey <tom@tromey.com>
3157
3158 * stap-probe.c (get_stap_base_address_1): Remove.
3159 (get_stap_base_address): Use foreach.
3160
1ce51eb5
TT
31612020-09-19 Tom Tromey <tom@tromey.com>
3162
3163 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3164 parameters.
3165 (gdb_bfd_close_or_warn): Use foreach.
3166
a190fabb
TT
31672020-09-19 Tom Tromey <tom@tromey.com>
3168
3169 * corelow.c (add_to_thread_list): Change parameters.
3170 (core_target_open): Use foreach.
3171
cafb0d81
TT
31722020-09-19 Tom Tromey <tom@tromey.com>
3173
3174 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3175 existing function.
3176
c8d5abea
AB
31772020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3178
3179 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3180 for arrays.
3181
6d816919
AB
31822020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3183
3184 * eval.c: Remove 'f-lang.h' include.
3185 (value_f90_subarray): Moved to f-lang.c.
3186 (eval_call): Renamed to...
3187 (evaluate_subexp_do_call): ...this, is no longer static, header
3188 comment moved into header file.
3189 (evaluate_funcall): Update call to eval_call.
3190 (skip_undetermined_arglist): Moved to f-lang.c.
3191 (fortran_value_subarray): Likewise.
3192 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3193 moved to evaluate_subexp_f.
3194 (calc_f77_array_dims): Moved to f-lang.c
3195 * expprint.c (print_subexp_funcall): New function.
3196 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3197 moved to print_subexp_f, OP_FUNCALL uses new function.
3198 (dump_subexp_body_funcall): New function.
3199 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3200 moved to dump_subexp_f, OP_FUNCALL uses new function.
3201 * expression.h (evaluate_subexp_do_call): Declare.
3202 * f-lang.c (value_f90_subarray): Moved from eval.c.
3203 (skip_undetermined_arglist): Likewise.
3204 (calc_f77_array_dims): Likewise.
3205 (fortran_value_subarray): Likewise.
3206 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3207 (operator_length_f): Likewise.
3208 (print_subexp_f): Likewise.
3209 (dump_subexp_body_f): Likewise.
3210 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3211 declaration of this operation to here.
3212 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3213 support moved to operator_length_f.
3214 * parser-defs.h (dump_subexp_body_funcall): Declare.
3215 (print_subexp_funcall): Declare.
3216 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3217 fortran-operator.def.
3218
8c37706a
AB
32192020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 * eval.c (fortran_value_subarray): New function, content is taken
3222 from...
3223 (evaluate_subexp_standard): ...here, in two places. Now arrays
3224 and strings both call the new function.
3225 (calc_f77_array_dims): Add header comment, handle strings.
3226
14f9473c
VC
32272020-09-18 Victor Collod <vcollod@nvidia.com>
3228
3229 PR gdb/26635
3230 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3231 (i386_analyze_prologue): Call i386_skip_endbr.
3232
b60cea74
TT
32332020-09-18 Tom Tromey <tromey@adacore.com>
3234
3235 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3236 (windows_nat_target::wait): Update.
3237 * target/wait.h (enum target_wait_flag): New. Use
3238 DEF_ENUM_FLAGS_TYPE.
3239 * target/target.h (target_wait): Change type of options.
3240 * target.h (target_options_to_string, default_target_wait):
3241 Update.
3242 (struct target_ops) <wait>: Change type of options.
3243 * target.c (target_wait, default_target_wait, do_option): Change
3244 type of "options".
3245 (target_options_to_string): Likewise.
3246 * target-delegates.c: Rebuild.
3247 * target-debug.h (target_debug_print_target_wait_flags): Rename
3248 from target_debug_print_options.
3249 * sol-thread.c (class sol_thread_target) <wait>: Update.
3250 (sol_thread_target::wait): Update.
3251 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3252 (rs6000_nat_target::wait): Update.
3253 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3254 Update.
3255 (remote_target::wait_ns, remote_target::wait_as): Change type of
3256 "options".
3257 (remote_target::wait): Update.
3258 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3259 (gdbsim_target::wait): Update.
3260 * record-full.c (class record_full_base_target) <wait>: Update.
3261 (record_full_wait_1): Change type of "options".
3262 (record_full_base_target::wait): Update.
3263 * record-btrace.c (class record_btrace_target) <wait>: Update.
3264 (record_btrace_target::wait): Update.
3265 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3266 Update.
3267 (ravenscar_thread_target::wait): Update.
3268 * procfs.c (class procfs_target) <wait>: Update.
3269 (procfs_target::wait): Update.
3270 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3271 * obsd-nat.c (obsd_nat_target::wait): Update.
3272 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3273 (nto_procfs_target::wait): Update.
3274 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3275 * nbsd-nat.c (nbsd_wait): Change type of "options".
3276 (nbsd_nat_target::wait): Update.
3277 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3278 (thread_db_target::wait): Update.
3279 * linux-nat.h (class linux_nat_target) <wait>: Update.
3280 * linux-nat.c (linux_nat_target::wait): Update.
3281 (linux_nat_wait_1): Update.
3282 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3283 "options".
3284 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3285 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3286 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3287 (go32_nat_target::wait): Update.
3288 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3289 * gnu-nat.c (gnu_nat_target::wait): Update.
3290 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3291 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3292 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3293 * darwin-nat.c (darwin_nat_target::wait): Update.
3294 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3295 (bsd_uthread_target::wait): Update.
3296 * aix-thread.c (class aix_thread_target) <wait>: Update.
3297 (aix_thread_target::wait): Update.
3298
0295dde6
AB
32992020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3300
3301 * compile/compile-object-run.c (create_copied_type_recursive): New
3302 function.
3303 (compile_object_run): Use new function.
3304
d3483b43
JT
33052020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3306
3307 * NEWS: Mention x86_64 Cygwin core file support.
3308
e7d612ad
JT
33092020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3310
3311 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3312 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3313
aff9d387
JT
33142020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3315
62a5151b
JT
3316 * windows-tdep.h: Add prototypes.
3317 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3318 (i386_windows_core_pid_to_str): Move and rename ...
3319 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3320 (windows_core_pid_to_str): ... and here.
3321 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3322
33232020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3324 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3325 (amd64_windows_init_abi_common): ... and register.
3326
7d155da3
JT
33272020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3328
3329 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3330 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3331
e8ef12b9
PA
33322020-09-18 Pedro Alves <pedro@palves.net>
3333
3334 PR gdb/26631
3335 * thread.c (thread_find_command): Switch inferior before calling
3336 target methods.
3337
c1e1314d
TT
33382020-09-17 Tom Tromey <tromey@adacore.com>
3339
3340 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3341 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3342 (tdesc_arch_data_up): New typedef.
3343 (tdesc_use_registers, tdesc_data_alloc): Update.
3344 (tdesc_data_cleanup): Don't declare.
3345 * target-descriptions.c (tdesc_data_alloc): Return a
3346 tdesc_arch_data_up.
3347 (tdesc_arch_data_deleter::operator()): Rename from
3348 tdesc_data_cleanup. Change argument type.
3349 (tdesc_use_registers): Change early_data to an rvalue reference.
3350 (tdesc_use_registers): Don't use delete.
3351 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3352 * s390-tdep.c (s390_gdbarch_init): Update.
3353 * rx-tdep.c (rx_gdbarch_init): Update.
3354 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3355 * riscv-tdep.c (riscv_gdbarch_init): Update.
3356 * or1k-tdep.c (or1k_gdbarch_init): Update.
3357 * nios2-tdep.c (nios2_gdbarch_init): Update.
3358 * nds32-tdep.c (nds32_gdbarch_init): Update.
3359 * mips-tdep.c (mips_gdbarch_init): Update.
3360 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3361 * m68k-tdep.c (m68k_gdbarch_init): Update.
3362 * i386-tdep.c (i386_gdbarch_init): Update.
3363 * arm-tdep.c (arm_gdbarch_init): Update.
3364 * arc-tdep.c (arc_tdesc_init): Update.
3365 (arc_gdbarch_init): Update.
3366 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3367
0363df3d
HD
33682020-09-17 Hannes Domani <ssbssa@yahoo.de>
3369
3370 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3371 for WOW64 processes.
3372
280a9412
TT
33732020-09-17 Tom Tromey <tom@tromey.com>
3374
3375 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3376
6108fd18
TT
33772020-09-17 Tom Tromey <tom@tromey.com>
3378
3379 * value.c (preserve_values): Update.
3380 * python/py-type.c (save_objfile_types): Update.
3381 * guile/scm-type.c (save_objfile_types): Update.
3382 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3383 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3384 * compile/compile-object-run.c (compile_object_run): Update.
3385
fa9b1164
TT
33862020-09-17 Tom Tromey <tom@tromey.com>
3387
3388 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3389 Remove.
3390 <m_table>: Now htab_up.
3391 * typeprint.c (typedef_hash_table::recursively_update)
3392 (typedef_hash_table::add_template_parameters)
3393 (typedef_hash_table::typedef_hash_table): Update.
3394 (typedef_hash_table::~typedef_hash_table): Remove.
3395 (typedef_hash_table::typedef_hash_table)
3396 (typedef_hash_table::find_global_typedef)
3397 (typedef_hash_table::find_typedef): Update.
3398
eb53f105
TT
33992020-09-17 Tom Tromey <tom@tromey.com>
3400
3401 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3402
7a8a5d47
TT
34032020-09-17 Tom Tromey <tom@tromey.com>
3404
3405 * linespec.c (class decode_compound_collector)
3406 <~decode_compound_collector>: Remove.
3407 <m_unique_syms>: Now htab_up.
3408 (decode_compound_collector::operator ()): Update.
3409 (class symtab_collector) <~symtab_collector>: Remove.
3410 <m_symtab_table>: Now htab_up.
3411 (symtab_collector::operator ()): Update.
3412
99032cfc
TT
34132020-09-17 Tom Tromey <tom@tromey.com>
3414
3415 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3416 (filename_seen_cache::clear): Update.
3417 (~filename_seen_cache): Remove.
3418 (filename_seen_cache::seen): Update.
3419 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3420 htab_up.
3421 <~filename_seen_cache>: Remove.
3422 <traverse>: Update.
3423
32580f6d
TT
34242020-09-17 Tom Tromey <tom@tromey.com>
3425
3426 * completer.c (completion_tracker::discard_completions)
3427 (completion_tracker::~completion_tracker)
3428 (completion_tracker::maybe_add_completion)
3429 (completion_tracker::remove_completion)
3430 (completion_tracker::recompute_lowest_common_denominator)
3431 (completion_tracker::build_completion_result): Update.
3432 * completer.h (class completion_tracker) <have_completions>:
3433 Update.
3434 <m_entries_hash>: Now htab_up.
3435
c1fb9836
TT
34362020-09-17 Tom Tromey <tom@tromey.com>
3437
3438 * breakpoint.c (ambiguous_names_p): Use htab_up.
3439
88f07206
TT
34402020-09-17 Tom Tromey <tom@tromey.com>
3441
3442 * auto-load.c (struct auto_load_pspace_info)
3443 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3444 <loaded_script_files, loaded_script_texts>: Change type to
3445 htab_up.
3446 (~auto_load_pspace_info) Remove.
3447 (init_loaded_scripts_info, maybe_add_script_file)
3448 (maybe_add_script_text, auto_load_info_scripts): Update.
3449
9519b2ee
TT
34502020-09-17 Tom Tromey <tromey@adacore.com>
3451
3452 * c-exp.y (name_obstack): Now static.
3453
d2cd4113
CC
34542020-09-17 Chungyi Chi <demonic@csie.io>
3455
3456 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3457
b650a282
SM
34582020-09-16 Simon Marchi <simon.marchi@efficios.com>
3459
3460 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3461 (add_solib_catchpoint): Likewise.
3462 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3463 to bool.
3464 (add_solib_catchpoint): Change int parameter/variable to bool.
3465 (catch_load_or_unload): Likewise.
3466 (init_catchpoint): Likewise.
3467 (create_fork_vfork_event_catchpoint): Likewise.
3468 (catch_fork_command_1): Likewise.
3469 (catch_exec_command_1): Likewise.
3470
4d0bcfcf
SM
34712020-09-16 Simon Marchi <simon.marchi@efficios.com>
3472
3473 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3474 Change instance_flags to m_instance_flags.
3475
fe830662
TT
34762020-09-16 Tom Tromey <tromey@adacore.com>
3477
3478 PR gdb/26598:
3479 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3480
fe5ddfc3
JB
34812020-09-16 John Baldwin <jhb@FreeBSD.org>
3482
3483 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3484 PL_FLAG_EXEC.
3485 (fbsd_nat_target::insert_exec_catchpoint)
3486 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3487 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3488 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3489
e911c666
JB
34902020-09-16 John Baldwin <jhb@FreeBSD.org>
3491
3492 * configure.ac: Remove check for kinfo_getvmmap().
3493 * configure, config.in: Regenerate.
3494 * fbsd-nat.c (fbsd_read_mapping): Remove
3495 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3496 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3497 kinfo_get_vmmap() are always present.
3498
1f17d372
JB
34992020-09-16 John Baldwin <jhb@FreeBSD.org>
3500
3501 * fbsd-nat.c: Always include support for
3502 TARGET_OBJECT_SIGNAL_INFO.
3503
bcb1da7f
JB
35042020-09-16 John Baldwin <jhb@FreeBSD.org>
3505
3506 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3507 sysctl and remove procfs fallback.
3508
5515f729
JB
35092020-09-16 John Baldwin <jhb@FreeBSD.org>
3510
3511 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3512 * fbsd-nat.h: Likewise.
3513
da1df1db
TBA
35142020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3515
3516 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3517 argument.
3518
0e25e767
AB
35192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3520
3521 * ada-lang.c (ada_language_data): Delete.
3522 (ada_language): Remove references to ada_language_data.
3523 * c-lang.c (c_language_data): Delete.
3524 (c_language): Remove references to c_language_data.
3525 (cplus_language_data): Delete.
3526 (cplus_language): Remove references to cplus_language_data.
3527 (asm_language_data): Delete.
3528 (asm_language): Remove references to asm_language_data.
3529 (minimal_language_data): Delete.
3530 (minimal_language): Remove references to minimal_language_data.
3531 * d-lang.c (d_language_data): Delete.
3532 (d_language): Remove references to d_language_data.
3533 * f-lang.c (f_language_data): Delete.
3534 (f_language): Remove references to f_language_data.
3535 * go-lang.c (go_language_data): Delete.
3536 (go_language): Remove references to go_language_data.
3537 * language.c (unknown_language_data): Delete.
3538 (unknown_language): Remove references to unknown_language_data.
3539 (auto_language_data): Delete.
3540 (auto_language): Remove references to auto_language_data.
3541 * language.h (language_data): Delete struct.
3542 (language_defn): No longer inherit from language_data.
3543 * m2-lang.c (m2_language_data): Delete.
3544 (m2_language): Remove references to m2_language_data.
3545 * objc-lang.c (objc_language_data): Delete.
3546 (objc_language): Remove references to objc_language_data.
3547 * opencl-lang.c (opencl_language_data): Delete.
3548 (opencl_language): Remove references to opencl_language_data.
3549 * p-lang.c (pascal_language_data): Delete.
3550 (pascal_language): Remove references to pascal_language_data.
3551 * rust-lang.c (rust_language_data): Delete.
3552 (rust_language): Remove references to rust_language_data.
3553
b7c6e27d
AB
35542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3555
3556 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3557 initializer.
3558 (ada_language::opcode_print_table): New member function.
3559 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3560 (c_language::opcode_print_table): New member function.
3561 (cplus_language_data): Remove la_op_print_tab initializer.
3562 (cplus_language::opcode_print_table): New member function.
3563 (asm_language_data): Remove la_op_print_tab initializer.
3564 (asm_language::opcode_print_table): New member function.
3565 (minimal_language_data): Remove la_op_print_tab initializer.
3566 (minimal_language::opcode_print_table): New member function.
3567 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3568 (d_language::opcode_print_table): New member function.
3569 * expprint.c (print_subexp_standard): Update call to
3570 opcode_print_table.
3571 (op_string): Likewise.
3572 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3573 (f_language::opcode_print_table): New member function.
3574 * go-lang.c (go_language_data): Remove la_op_print_tab
3575 initializer.
3576 (go_language::opcode_print_table): New member function.
3577 * language.c (unknown_language_data): Remove la_op_print_tab
3578 initializer.
3579 (unknown_language::opcode_print_table): New member function.
3580 (auto_language_data): Remove la_op_print_tab initializer.
3581 (auto_language::opcode_print_table): New member function.
3582 * language.h (language_data): Remove la_op_print_tab field.
3583 (language_defn::opcode_print_table): Declare new member function.
3584 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3585 initializer.
3586 (m2_language::opcode_print_table): New member function.
3587 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3588 initializer.
3589 (objc_language::opcode_print_table): New member function.
3590 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3591 initializer.
3592 (opencl_language::opcode_print_table): New member function.
3593 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3594 initializer.
3595 (pascal_language::opcode_print_table): New member function.
3596 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3597 initializer.
3598 (rust_language::opcode_print_table): New member function.
3599
5aba6ebe
AB
36002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3601
3602 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3603 (ada_language::expression_ops): New member function.
3604 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3605 (c_language::expression_ops): New member function.
3606 (cplus_language_data): Remove la_exp_desc initializer.
3607 (cplus_language::expression_ops): New member function.
3608 (asm_language_data): Remove la_exp_desc initializer.
3609 (asm_language::expression_ops): New member function.
3610 (minimal_language_data): Remove la_exp_desc initializer.
3611 (minimal_language::expression_ops): New member function.
3612 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3613 (d_language::expression_ops): New member function.
3614 * eval.c (evaluate_subexp): Update call to expression_ops.
3615 * expprint.c (print_subexp): Likewise.
3616 (op_name): Likewise.
3617 (dump_subexp_body): Likewise.
3618 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3619 (f_language::expression_ops): New member function.
3620 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3621 (go_language::expression_ops): New member function.
3622 * language.c (language_defn::expression_ops): New function.
3623 (unknown_language_data): Remove la_exp_desc initializer.
3624 (auto_language_data): Likewise.
3625 * language.h (language_data): Remove la_exp_desc field.
3626 (language_defn::expression_ops): Declare new member function.
3627 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3628 (m2_language::expression_ops): New member function.
3629 * objc-lang.c (objc_language_data): Remove la_exp_desc
3630 initializer.
3631 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3632 initializer.
3633 (opencl_language::expression_ops): New member function.
3634 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3635 * parse.c (operator_length): Update call to expression_ops.
3636 (exp_iterate): Likewise.
3637 * rust-lang.c (rust_language_data): Remove la_exp_desc
3638 initializer.
3639 (ruse_language::expression_ops): New member function.
3640
b63a3f3f
AB
36412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3642
3643 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3644 initializer.
3645 (ada_language::varobj_ops): New member function.
3646 * c-lang.c (c_language_data): Remove la_varobj_ops
3647 initializer.
3648 (cplus_language_data): Likewise.
3649 (cplus_language::varobj_ops): New member function.
3650 (asm_language_data): Remove la_varobj_ops initializer.
3651 (minimal_language_data): Likewise.
3652 * d-lang.c (d_language_data): Likewise.
3653 * f-lang.c (f_language_data): Likewise.
3654 * go-lang.c (go_language_data): Likewise.
3655 * language.c (language_defn::varobj_ops): New function.
3656 (unknown_language_data): Remove la_varobj_ops
3657 initializer.
3658 (auto_language_data): Likewise.
3659 * language.h (language_data): Remove la_varobj_ops field.
3660 (language_defn::varobj_ops): Declare new member function.
3661 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3662 * objc-lang.c (objc_language_data): Likewise.
3663 * opencl-lang.c (opencl_language_data): Likewise.
3664 * p-lang.c (pascal_language_data): Likewise.
3665 * rust-lang.c (rust_language_data): Likewise.
3666 * varobj.c (varobj_create): Update call to varobj_ops.
3667 * varobj.h (default_varobj_ops): Delete define.
3668
1ac14a04
AB
36692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3670
3671 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3672 initializer.
3673 * c-lang.c (c_language_data): Likewise.
3674 (c_language::macro_expansion): New member function.
3675 (cplus_language_data): Likewise.
3676 (cplus_language::macro_expansion): New member function.
3677 (asm_language_data): Likewise.
3678 (asm_language::macro_expansion): New member function.
3679 (minimal_language_data): Likewise.
3680 (minimal_language::macro_expansion): New member function.
3681 * d-lang.c (d_language_data): Remove la_macro_expansion
3682 initializer.
3683 * f-lang.c (f_language_data): Likewise.
3684 * go-lang.c (go_language_data): Likewise.
3685 * language.c (unknown_language_data): Likewise.
3686 (auto_language_data): Likewise.
3687 * language.h (language_data): Remove la_macro_expansion field.
3688 (language_defn::macro_expansion): New member function.
3689 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3690 initializer.
3691 * objc-lang.c (objc_language_data): Likewise.
3692 (objc_language::macro_expansion): New member function.
3693 * opencl-lang.c (opencl_language_data): Likewise.
3694 (opencl_language::macro_expansion): New member function.
3695 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3696 initializer.
3697 * rust-lang.c (rust_language_data): Likewise.
3698 * symtab.c (default_collect_symbol_completion_matches_break_on):
3699 Update call to macro_expansion.
3700
3a3440fb
AB
37012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * ada-lang.c (ada_language_data): Remove la_array_ordering
3704 initializer.
3705 * c-lang.c (c_language_data): Likewise.
3706 (cplus_language_data): Likewise.
3707 (asm_language_data): Likewise.
3708 (minimal_language_data): Likewise.
3709 * d-lang.c (d_language_data): Likewise.
3710 * dwarf2/read.c (read_array_order): Update for call to
3711 array_ordering.
3712 * f-lang.c (f_language_data): Remove la_array_ordering
3713 initializer.
3714 (f_language::array_ordering): New member function.
3715 * go-lang.c (go_language_data): Remove la_array_ordering
3716 initializer.
3717 * language.c (unknown_language_data): Likewise.
3718 (auto_language_data): Likewise.
3719 * language.h (language_data): Delete la_array_ordering field.
3720 (language_defn::array_ordering): New member function.
3721 * m2-lang.c (m2_language_data): Remove la_array_ordering
3722 initializer.
3723 * objc-lang.c (objc_language_data): Likewise.
3724 * opencl-lang.c (opencl_language_data): Likewise.
3725 * p-lang.c (pascal_language_data): Likewise.
3726 * rust-lang.c (rust_language_data): Likewise.
3727
0d201fa4
AB
37282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3729
3730 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3731 initializer.
3732 * c-lang.c (c_language_data): Likewise.
3733 (cplus_language_data): Likewise.
3734 (asm_language_data): Likewise.
3735 (minimal_language_data): Likewise.
3736 * d-lang.c (d_language_data): Likewise.
3737 * f-lang.c (f_language_data): Likewise.
3738 (f_language::case_sensitivity): New member function.
3739 * go-lang.c (go_language_data): Remove la_case_sensitivity
3740 initializer.
3741 * language.c (enum case_mode): Moved here from language.h.
3742 (case_mode): Make static.
3743 (show_case_command): Update for case_sensitivity being a method.
3744 (set_case_command): Likewise.
3745 (set_range_case): Likewise.
3746 (unknown_language_data): Remove la_case_sensitivity initializer.
3747 (auto_language_data): Likewise.
3748 * language.h (case_mode): Delete, move enum declaration to
3749 language.c.
3750 (language_data): Delete la_case_sensitivity field.
3751 (language_defn::case_sensitivity): New member function.
3752 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3753 initializer.
3754 * objc-lang.c (objc_language_data): Likewise.
3755 * opencl-lang.c (opencl_language_data): Likewise.
3756 * p-lang.c (pascal_language_data): Likewise.
3757 * rust-lang.c (rust_language_data): Likewise.
3758
efdf6a73
AB
37592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3760
3761 * ada-lang.c (ada_language_data): Remove la_range_check
3762 initializer.
3763 * c-lang.c (c_language_data): Likewise.
3764 (cplus_language_data): Likewise.
3765 (asm_language_data): Likewise.
3766 (minimal_language_data): Likewise.
3767 * d-lang.c (d_language_data): Likewise.
3768 * f-lang.c (f_language_data): Likewise.
3769 (f_language::range_checking_on_by_default): New member function.
3770 * go-lang.c (go_language_data): Remove la_range_check initializer.
3771 * language.c (enum range_mode): Moved here from language.h.
3772 (range_mode): Made static.
3773 (show_range_command): Update to use
3774 range_checking_on_by_default.
3775 (set_range_command): Likewise.
3776 (set_range_case): Likewise.
3777 (unknown_language_data): Remove la_range_check initializer.
3778 (auto_language_data): Likewise.
3779 * language.h (range_mode): Delete. Enum definition moved to
3780 language.c.
3781 (language_data): Remove la_range_check field.
3782 (language_defn::range_checking_on_by_default): New member
3783 function.
3784 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3785 (m2_language::range_checking_on_by_default): New member function.
3786 * objc-lang.c (objc_language_data): Remove la_range_check
3787 initializer.
3788 * opencl-lang.c (opencl_language_data): Likewise.
3789 * p-lang.c (pascal_language_data): Likewise.
3790 (pascal_language::range_checking_on_by_default): New member
3791 function.
3792 * rust-lang.c (rust_language_data): Remove la_range_check
3793 initializer.
3794 (rust_language::range_checking_on_by_default): New member
3795 function.
3796
bf92aec5
AB
37972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3798
3799 * dwarf2/read.c (dwarf2_physname): Remove special case for
3800 language_go.
3801 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3802 member function.
3803
d3355e4d
AB
38042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3805
3806 * ada-lang.c (ada_language_data): Remove
3807 la_store_sym_names_in_linkage_form_p initializer.
3808 (ada_language::store_sym_names_in_linkage_form_p): New member
3809 function.
3810 * c-lang.c (c_language_data): Remove
3811 la_store_sym_names_in_linkage_form_p initializer.
3812 (c_language::store_sym_names_in_linkage_form_p): New member
3813 function.
3814 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3815 initializer.
3816 (asm_language_data): Likewise.
3817 (asm_language::store_sym_names_in_linkage_form_p): New member
3818 function.
3819 (minimal_language_data): Remove
3820 la_store_sym_names_in_linkage_form_p initializer.
3821 (minimal_language::store_sym_names_in_linkage_form_p): New member
3822 function.
3823 * d-lang.c (d_language_data): Remove
3824 la_store_sym_names_in_linkage_form_p initializer.
3825 * dwarf2/read.c (dwarf2_physname): Update call to
3826 store_sym_names_in_linkage_form_p.
3827 * f-lang.c (f_language_data): Remove
3828 la_store_sym_names_in_linkage_form_p initializer.
3829 * go-lang.c (go_language_data): Remove
3830 la_store_sym_names_in_linkage_form_p initializer.
3831 * language.c (unknown_language_data): Remove
3832 la_store_sym_names_in_linkage_form_p initializer.
3833 (unknown_language::store_sym_names_in_linkage_form_p): New member
3834 function.
3835 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3836 initializer.
3837 (auto_language::store_sym_names_in_linkage_form_p): New member
3838 function.
3839 * language.h (language_data): Remove
3840 la_store_sym_names_in_linkage_form_p member variable.
3841 (language_defn::store_sym_names_in_linkage_form_p): New member
3842 function.
3843 * m2-lang.c (m2_language_data): Remove
3844 la_store_sym_names_in_linkage_form_p initializer.
3845 * objc-lang.c (objc_language_data): Likewise.
3846 * opencl-lang.c (opencl_language_data): Likewise.
3847 * p-lang.c (pascal_language_data): Likewise.
3848 * rust-lang.c (rust_language_data): Likewise.
3849
22c12a6c
AB
38502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3851
3852 * ada-lang.c (ada_language_data): Remove string_lower_bound
3853 initializer.
3854 * c-lang.c (c_language_data): Likewise.
3855 (cplus_language_data): Likewise.
3856 (asm_language_data): Likewise.
3857 (minimal_language_data): Likewise.
3858 * d-lang.c (d_language_data): Likewise.
3859 * f-lang.c (f_language_data): Likewise.
3860 * go-lang.c (go_language_data): Likewise.
3861 * language.c (unknown_language_data): Likewise.
3862 (auto_language_data): Likewise.
3863 * language.h (language_data): Remove string_lower_bound field.
3864 (language_defn::string_lower_bound): New member function.
3865 * m2-lang.c (m2_language_data): Remove string_lower_bound
3866 initializer.
3867 (m2_language::string_lower_bound): New member function.
3868 * objc-lang.c (objc_language_data): Remove string_lower_bound
3869 initializer.
3870 * opencl-lang.c (opencl_language_data): Likewise.
3871 * p-lang.c (pascal_language_data): Likewise.
3872 * rust-lang.c (rust_language_data): Likewise.
3873 * valops.c (value_cstring): Update call to string_lower_bound.
3874 (value_string): Likewise.
3875 * value.c (allocate_repeated_value): Likewise.
3876
1c236ddd
AB
38772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3878
3879 * valops.c (value_repeat): Fix incorrect argument name in comment.
3880
67bd3fd5
AB
38812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3882
3883 * ada-lang.c (ada_language_data): Remove c_style_arrays
3884 initializer.
3885 (ada_language::c_style_arrays_p): New member fuction.
3886 * c-lang.c (c_language_data): Remove c_style_arrays
3887 initializer.
3888 (cplus_language_data): Likewise.
3889 (asm_language_data): Likewise.
3890 (minimal_language_data): Likewise.
3891 * d-lang.c (d_language_data): Likewise.
3892 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3893 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3894 (f_language::c_style_arrays_p): New member function.
3895 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3896 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3897 * language.c (unknown_language_data): Remove c_style_arrays
3898 initializer.
3899 (auto_language_data): Likewise.
3900 * language.h (language_data): Remove c_style_arrays field.
3901 (language_defn::c_style_arrays_p): New member function.
3902 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3903 (m2_language::c_style_arrays_p): New member function.
3904 * objc-lang.c (objc_language_data): Remove c_style_arrays
3905 initializer.
3906 * opencl-lang.c (opencl_language_data): Likewise.
3907 * p-lang.c (pascal_language_data): Likewise.
3908 * rust-lang.c (rust_language_data): Likewise.
3909 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3910 and update local variable to a bool.
3911 * valops.c (value_cast): Update call to c_style_arrays_p.
3912 (value_array): Likewise.
3913 * value.c (coerce_array): Likewise.
3914
85967615
AB
39152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3916
3917 * ada-lang.c (ada_language_data): Remove la_language initializer.
3918 * c-lang.c (c_language_data): Likewise.
3919 (cplus_language_data): Likewise.
3920 (asm_language_data): Likewise.
3921 (minimal_language_data): Likewise.
3922 * d-lang.c (d_language_data): Likewise.
3923 * f-lang.c (f_language_data): Likewise.
3924 * go-lang.c (go_language_data): Likewise.
3925 * language.c (unknown_language_data): Likewise.
3926 (auto_language_data): Likewise.
3927 * language.h (language_data): Remove la_language field.
3928 (language_defn::language_defn): Initialise la_language field.
3929 (language_defn::la_language): New member variable.
3930 * m2-lang.c (m2_language_data): Remove la_language field.
3931 * objc-lang.c (objc_language_data): Likewise.
3932 * opencl-lang.c (opencl_language_data): Likewise.
3933 * p-lang.c (pascal_language_data): Likewise.
3934 * rust-lang.c (rust_language_data): Likewise.
3935
e171d6f1
AB
39362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3937
3938 * ada-lang.c (ada_extensions): Delete, moved into
3939 ada_language::filename_extensions.
3940 (ada_language_data): Remove la_filename_extensions initializer.
3941 (ada_language::filename_extensions): New member function.
3942 * c-lang.c (c_extensions): Delete, moved into
3943 c_language::filename_extensions.
3944 (c_language_data): Remove la_filename_extensions initializer.
3945 (c_language::filename_extensions): New member function.
3946 (cplus_extensions): Delete, moved into
3947 cplus_language::filename_extensions.
3948 (cplus_language_data): Remove la_filename_extensions initializer.
3949 (cplus_language::filename_extensions): New member function.
3950 (asm_extensions): Delete, moved into
3951 asm_language::filename_extensions.
3952 (asm_language_data): Remove la_filename_extensions initializer.
3953 (asm_language::filename_extensions): New member function.
3954 (minimal_language_data): Remove la_filename_extensions
3955 initializer.
3956 * d-lang.c (d_extensions): Delete, moved into
3957 d_language::filename_extensions.
3958 (d_language_data): Remove la_filename_extensions initializer.
3959 (d_language::filename_extensions): New member function.
3960 * f-lang.c (f_extensions): Delete, moved into
3961 f_language::filename_extensions.
3962 (f_language_data): Remove la_filename_extensions initializer.
3963 (f_language::filename_extensions): New member function.
3964 * go-lang.c (go_language_data): Remove la_filename_extensions
3965 initializer.
3966 * language.c (add_set_language_command): Update now that
3967 filename_extensions returns a vector.
3968 (unknown_language_data): Remove la_filename_extensions
3969 initializer.
3970 (auto_language_data): Likewise.
3971 * language.h (language_data): Remove la_filename_extensions field.
3972 (language_defn::filename_extensions): New member function.
3973 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3974 initializer.
3975 * objc-lang.c (objc_extensions): Delete, moved into
3976 objc_language::filename_extensions.
3977 (objc_language_data): Remove la_filename_extensions initializer.
3978 (objc_language::filename_extensions): New member function.
3979 * opencl-lang.c (opencl_language_data): Remove
3980 la_filename_extensions initializer.
3981 * p-lang.c (pascal_extensions): Delete, moved into
3982 pascal_language::filename_extensions.
3983 (pascal_language_data): Remove la_filename_extensions initializer.
3984 (pascal_language::filename_extensions): New member function.
3985 * rust-lang.c (rust_extensions): Delete, moved into
3986 rust_language::filename_extensions.
3987 (rust_language_data): Remove la_filename_extensions initializer.
3988 (rust_language::filename_extensions): New member function.
3989 * symfile.c (add_filename_language): Add new assert.
3990
6f7664a9
AB
39912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3992
3993 * ada-lang.c (ada_language_data): Remove la_name and
3994 la_natural_name initializers.
3995 (ada_language::name): New member function.
3996 (ada_language::natural_name): New member function.
3997 * c-lang.c (c_language_data): Remove la_name and
3998 la_natural_name initializers.
3999 (c_language::name): New member function.
4000 (c_language::natural_name): New member function.
4001 (cplus_language_data): Remove la_name and
4002 la_natural_name initializers.
4003 (cplus_language::name): New member function.
4004 (cplus_language::natural_name): New member function.
4005 (asm_language_data): Remove la_name and
4006 la_natural_name initializers.
4007 (asm_language::name): New member function.
4008 (asm_language::natural_name): New member function.
4009 (minimal_language_data): Remove la_name and
4010 la_natural_name initializers.
4011 (minimal_language::name): New member function.
4012 (minimal_language::natural_name): New member function.
4013 * compile/compile.c (compile_to_object): Update call to
4014 lanugage_defn::name.
4015 * d-lang.c (d_language_data): Remove la_name and
4016 la_natural_name initializers.
4017 (d_language::name): New member function.
4018 (d_language::natural_name): New member function.
4019 * expprint.c (print_subexp_standard): Update call to
4020 language_defn::name.
4021 (dump_raw_expression): Likewise
4022 (dump_prefix_expression): Likewise.
4023 * f-lang.c (f_language_data): Remove la_name and
4024 la_natural_name initializers.
4025 (f_language::name): New member function.
4026 (f_language::natural_name): New member function.
4027 * go-lang.c (go_language_data): Remove la_name and
4028 la_natural_name initializers.
4029 (go_language::name): New member function.
4030 (go_language::natural_name): New member function.
4031 * language.c (show_language_command): Update call to
4032 language_defn::name.
4033 (set_language_command): Likewise.
4034 (language_enum): Likewise.
4035 (language_str): Likewise.
4036 (add_set_language_command): Likewise, use
4037 language_defn::natural_name in the doc string.
4038 (unknown_language_data): Remove la_name and
4039 la_natural_name initializers.
4040 (unknown_language::name): New member function.
4041 (unknown_language::natural_name): New member function.
4042 (auto_language_data): Remove la_name and
4043 la_natural_name initializers.
4044 (auto_language::name): New member function.
4045 (auto_language::natural_name): New member function.
4046 (language_lookup_primitive_type_as_symbol): Update call to
4047 language_defn::name.
4048 * language.h (language_data): Remove la_name and la_natural_name
4049 member variables.
4050 (language_defn::name): New member function.
4051 (language_defn::natural_name): New member function.
4052 * m2-lang.c (m2_language_data): Remove la_name and
4053 la_natural_name initializers.
4054 (m2_language::name): New member function.
4055 (m2_language::natural_name): New member function.
4056 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4057 language_defn::natural_name.
4058 * objc-lang.c (objc_language_data): Remove la_name and
4059 la_natural_name initializers.
4060 (objc_language::name): New member function.
4061 (objc_language::natural_name): New member function.
4062 * opencl-lang.c (opencl_language_data): Remove la_name and
4063 la_natural_name initializers.
4064 (opencl_language::name): New member function.
4065 (opencl_language::natural_name): New member function.
4066 * p-lang.c (pascal_language_data): Remove la_name and
4067 la_natural_name initializers.
4068 (pascal_language::name): New member function.
4069 (pascal_language::natural_name): New member function.
4070 * rust-lang.c (rust_language_data): Remove la_name and
4071 la_natural_name initializers.
4072 (rust_language::name): New member function.
4073 (rust_language::natural_name): New member function.
4074 * symtab.c (lookup_language_this): Update call to
4075 language_defn::name.
4076
5bae7c4e
AB
40772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4078
4079 * ada-lang.c (ada_language_data): Remove la_name_of_this
4080 initializer.
4081 * ax-gdb.c (gen_expr): Update call to name_of_this.
4082 * c-exp.y (classify_name): Likewise.
4083 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4084 (cplus_language_data): Likewise.
4085 (cplus_language::name_of_this): New member function.
4086 (asm_language_data): Remove la_name_of_this initializer.
4087 (minimal_language_data): Likewise.
4088 * d-lang.c (d_language_data): Likewise.
4089 (d_language::name_of_this): New member function.
4090 * expprint.c (print_subexp_standard): Update call to name_of_this.
4091 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4092 * go-lang.c (go_language_data): Likewise.
4093 * language.c (unknown_language_data): Likewise.
4094 (unknown_language::name_of_this): New member function.
4095 (auto_language_data): Remove la_name_of_this initializer.
4096 (auto_language::name_of_this): New member function.
4097 * language.h (language_data): Delete la_name_of_this member
4098 variable.
4099 (language_defn::name_of_this): New member function.
4100 * m2-lang.c (m2_language_data): Remove la_name_of_this
4101 initializer.
4102 * objc-lang.c (objc_language_data): Likewise.
4103 (objc_language::name_of_this): New member function.
4104 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4105 initializer.
4106 * p-lang.c (pascal_language_data): Likewise.
4107 (pascal_language::name_of_this): New member function.
4108 * rust-lang.c (rust_language_data): Remove la_name_of_this
4109 initializer.
4110 * symtab.c (lookup_language_this): Update call to name_of_this.
4111 (lookup_symbol_aux): Likewise.
4112 * valops.c (value_of_this): Likewise.
4113
22e3f3ed
AB
41142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4115
4116 * ada-lang.c (ada_language_data): Remove
4117 la_struct_too_deep_ellipsis initializer.
4118 (ada_language::struct_too_deep_ellipsis): New member function.
4119 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4120 initializer.
4121 (cplus_language_data): Likewise.
4122 (asm_language_data): Likewise.
4123 (minimal_language_data): Likewise.
4124 * cp-valprint.c (cp_print_value): Update call to
4125 struct_too_deep_ellipsis.
4126 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4127 initializer.
4128 * f-lang.c (f_language_data): Likewise.
4129 (f_language::struct_too_deep_ellipsis): New member function.
4130 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4131 initializer.
4132 * language.c (unknown_language_data): Likewise.
4133 (auto_language_data): Likewise.
4134 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4135 member variable.
4136 (language_defn::struct_too_deep_ellipsis): New member function.
4137 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4138 initializer.Q
4139 * objc-lang.c (objc_language_data): Likewise.
4140 * opencl-lang.c (opencl_language_data): Likewise.
4141 * p-lang.c (pascal_language_data): Likewise.
4142 * rust-lang.c (rust_language_data): Likewise.
4143 * valprint.c (val_print_check_max_depth): Update call to
4144 struct_too_deep_ellipsis.
4145
ed29e1c7
FW
41462020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4147
4148 * MAINTAINERS (Write After Approval): Add myself.
4149
12d8f940
TT
41502020-09-15 Tom Tromey <tom@tromey.com>
4151
4152 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4153 Remove.
4154
6b5a7bc7
TT
41552020-09-15 Tom Tromey <tom@tromey.com>
4156
4157 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4158 and TYPE_CODE_METHODPTR cases.
4159 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4160 (c_value_print_inner): Update.
4161 * valprint.c (generic_value_print_memberptr): New function, from
4162 c_value_print_memberptr.
4163 (generic_value_print): Use it. Call cplus_print_method_ptr.
4164
47f0e2ff
TT
41652020-09-15 Tom Tromey <tromey@adacore.com>
4166
4167 * python/python-internal.h (PyInt_FromLong): Remove define.
4168 * python/py-value.c (convert_value_from_python): Use
4169 gdb_py_object_from_longest.
4170 * python/py-type.c (typy_get_code): Use
4171 gdb_py_object_from_longest.
4172 * python/py-symtab.c (salpy_get_line): Use
4173 gdb_py_object_from_longest.
4174 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4175 gdb_py_object_from_longest.
4176 * python/py-record.c (recpy_gap_reason_code): Use
4177 gdb_py_object_from_longest.
4178 * python/py-record-btrace.c (recpy_bt_insn_size)
4179 (recpy_bt_func_level, btpy_list_count): Use
4180 gdb_py_object_from_longest.
4181 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4182 gdb_py_object_from_longest. Fix error handling.
4183 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4184 gdb_py_object_from_longest.
4185 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4186 gdb_py_object_from_longest.
4187 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4188 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4189 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4190
512116ce
TT
41912020-09-15 Tom Tromey <tromey@adacore.com>
4192
4193 * python/python.c (gdbpy_parameter_value): Use
4194 gdb_py_object_from_ulongest.
4195
4ab1029c
TT
41962020-09-15 Tom Tromey <tromey@adacore.com>
4197
4198 * python/py-infevents.c (create_register_changed_event_object):
4199 Use gdb_py_object_from_longest.
4200 * python/py-exitedevent.c (create_exited_event_object): Use
4201 gdb_py_object_from_longest.
4202
062534d4
TT
42032020-09-15 Tom Tromey <tromey@adacore.com>
4204
4205 * python/python.c (gdbpy_parameter_value): Use
4206 gdb_py_object_from_longest.
4207 * python/py-type.c (convert_field, typy_range): Use
4208 gdb_py_object_from_longest.
4209 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4210 gdb_py_object_from_longest.
4211 * python/py-lazy-string.c (stpy_get_length): Use
4212 gdb_py_object_from_longest.
4213 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4214 gdb_py_object_from_longest.
4215 * python/py-infevents.c (create_memory_changed_event_object): Use
4216 gdb_py_object_from_longest.
4217 * python/py-inferior.c (infpy_get_num): Use
4218 gdb_py_object_from_longest.
4219 (infpy_get_pid): Likewise.
4220
d1cab987
TT
42212020-09-15 Tom Tromey <tromey@adacore.com>
4222
4223 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4224 defines.
4225 * python/py-value.c (valpy_long): Use
4226 gdb_py_object_from_ulongest.
4227 * python/py-symtab.c (salpy_get_pc): Use
4228 gdb_py_object_from_ulongest.
4229 (salpy_get_last): Likewise.
4230 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4231 gdb_py_object_from_ulongest.
4232 * python/py-lazy-string.c (stpy_get_address): Use
4233 gdb_py_object_from_ulongest.
4234 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4235 * python/py-arch.c (archpy_disassemble): Use
4236 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4237 error handling.
4238
4bde49dc
TT
42392020-09-15 Tom Tromey <tromey@adacore.com>
4240
4241 * python/python-internal.h (gdb_py_long_from_longest): Remove
4242 defines.
4243 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4244 * python/py-type.c (convert_field, typy_get_sizeof): Use
4245 gdb_py_object_from_longest.
4246 * python/py-record-btrace.c (btpy_list_index): Use
4247 gdb_py_object_from_longest.
4248
37431074
TT
42492020-09-15 Tom Tromey <tromey@adacore.com>
4250
4251 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4252 * python/py-record.c (recpy_element_number): Use
4253 gdb_py_object_from_longest.
4254 (recpy_gap_number): Likewise.
4255
cbe25684
TT
42562020-09-15 Tom Tromey <tromey@adacore.com>
4257
4258 * top.c (ui::ui): Update.
4259 (highest_ui_num): Remove.
4260 * top.h (struct ui) <num>: Remove.
4261
db92ac45
TT
42622020-09-15 Tom Tromey <tromey@adacore.com>
4263
4264 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4265 * ui-style.c (ansi_regex_text): Now array.
4266 * rust-exp.y (number_regex_text): Now array.
4267 * linespec.c (linespec_quote_characters): Now array.
4268 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4269 Now arrays.
4270
d2b31b67
SM
42712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4272
4273 * debuginfod-support.c (debuginfod_client_deleter): New.
4274 (debuginfod_client_up): New.
4275 (debuginfod_init): Return debuginfod_client_up.
4276 (debuginfod_source_query): Adjust.
4277 (debuginfod_debuginfo_query): Adjust.
4278
3246bd8e
SM
42792020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4280
4281 * debuginfod-support.c (debuginfod_source_query): Use
4282 make_unique_xstrdup.
4283
10242f36
SM
42842020-09-14 Simon Marchi <simon.marchi@efficios.com>
4285
4286 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4287 with `type::instance_flags`.
4288
e1044e6a
MM
42892020-09-14 Michael Mullin <masmullin@gmail.com>
4290
4291 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4292 Remove baton parameter.
4293
04902b09
PA
42942020-09-14 Pedro Alves <pedro@palves.net>
4295
4296 * Makefile.in (SELFTESTS_SRCS): Add
4297 unittests/enum-flags-selftests.c.
4298 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4299 btrace_function_flags instead of enum btrace_function_flag.
4300 * compile/compile-c-types.c (convert_qualified): Use
4301 enum_flags::raw.
4302 * compile/compile-cplus-symbols.c (convert_one_symbol)
4303 (convert_symbol_bmsym):
4304 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4305 (compile_cplus_convert_struct_or_union_methods)
4306 (compile_cplus_instance::convert_qualified_base):
4307 * go-exp.y (parse_string_or_char): Add cast to int.
4308 * unittests/enum-flags-selftests.c: New file.
4309 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4310 type to btrace_thread_flags from btrace_thread_flag.
4311 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4312 local's type to btrace_thread_flags from btrace_thread_flag. Add
4313 cast in DEBUG call.
4314
69896a2c
PA
43152020-09-14 Pedro Alves <pedro@palves.net>
4316
4317 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4318 * gdbtypes.c (address_space_name_to_int): Rename to ...
4319 (address_space_name_to_type_instance_flags): ... this.
4320 (address_space_int_to_name): Rename to ...
4321 (address_space_type_instance_flags_to_name): ... this.
4322 * gdbtypes.h (address_space_name_to_int): Rename to ...
4323 (address_space_name_to_type_instance_flags): ... this.
4324 (address_space_int_to_name): Rename to ...
4325 (address_space_type_instance_flags_to_name): ... this.
4326 * type-stack.c (type_stack::insert): Adjust to rename.
4327 * type-stack.h (type_stack::insert): Likewise.
4328
314ad88d
PA
43292020-09-14 Pedro Alves <pedro@palves.net>
4330 Andrew Burgess <andrew.burgess@embecosm.com>
4331
4332 * avr-tdep.c (avr_address_class_type_flags): Return
4333 type_instance_flags.
4334 (avr_address_class_type_flags_to_name): Take a
4335 type_instance_flags.
4336 (avr_address_class_name_to_type_flags): Return bool and take a
4337 type_instance_flags.
4338 * d-lang.c (build_d_types): Use type::set_instance_flags.
4339 * ft32-tdep.c (ft32_address_class_type_flags): Return
4340 type_instance_flags.
4341 (ft32_address_class_type_flags_to_name): Take a
4342 type_instance_flags.
4343 (ft32_address_class_name_to_type_flags): Return bool and take a
4344 type_instance_flags.
4345 (ft32_gdbarch_init): Use type::set_instance_flags.
4346 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4347 * gdbarch.h, gdbarch.c: Regenerate.
4348 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4349 (address_class_name_to_type_flags): Use type_instance_flags and
4350 bool.
4351 * gdbtypes.c (address_space_name_to_int)
4352 (address_space_int_to_name, make_qualified_type): Use
4353 type_instance_flags.
4354 (make_qualified_type): Use type_instance_flags and
4355 type::set_instance_flags.
4356 (make_type_with_address_space, make_cv_type, make_vector_type)
4357 (check_typedef): Use type_instance_flags.
4358 (recursive_dump_type): Cast type_instance_flags to unsigned for
4359 printing.
4360 (copy_type_recursive): Use type::set_instance_flags.
4361 (gdbtypes_post_init): Use type::set_instance_flags.
4362 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4363 <m_instance_flags>: ... this.
4364 <instance_flags, set_instance_flags>: New methods.
4365 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4366 (SET_TYPE_INSTANCE_FLAGS): New.
4367 (address_space_name_to_int, address_space_int_to_name)
4368 (make_type_with_address_space): Pass flags using
4369 type_instance_flags instead of int.
4370 * stabsread.c (cleanup_undefined_types_noname): Use
4371 type::set_instance_flags.
4372 * s390-tdep.c (s390_address_class_type_flags): Return
4373 type_instance_flags.
4374 (s390_address_class_type_flags_to_name): Take a
4375 type_instance_flags.
4376 (s390_address_class_name_to_type_flags): Return bool and take a
4377 type_instance_flags.
4378 * type-stack.c (type_stack::follow_types): Use
4379 type_instance_flags.
4380 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4381
27087b7f
TT
43822020-09-14 Tom Tromey <tromey@adacore.com>
4383
4384 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4385 * x86-tdep.c (x86_is_thunk_register_name)
4386 (x86_in_indirect_branch_thunk): Update.
4387 * sparc64-tdep.c (sparc64_fpu_register_names)
4388 (sparc64_cp0_register_names, sparc64_register_names)
4389 (sparc64_pseudo_register_names): Now const.
4390 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4391 cp0_registers_num>: Now const.
4392 * sparc-tdep.c (sparc_core_register_names)
4393 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4394 (sparc32_pseudo_register_names): Now const.
4395 (validate_tdesc_registers): Update.
4396 * rust-lang.c (rust_extensions): Now const.
4397 * p-lang.c (p_extensions): Now const.
4398 * objc-lang.c (objc_extensions): Now const.
4399 * nto-tdep.c (nto_thread_state_str): Now const.
4400 * moxie-tdep.c (moxie_register_names): Now const.
4401 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4402 Now const.
4403 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4404 (mips_linux_reg_names): Now const.
4405 (mips_gdbarch_init): Update.
4406 * microblaze-tdep.c (microblaze_register_names): Now const.
4407 * m68k-tdep.c (m68k_register_names): Now const.
4408 * m32r-tdep.c (m32r_register_names): Now const.
4409 * ia64-tdep.c (ia64_register_names): Now const.
4410 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4411 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4412 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4413 ymm_avx512_register_names, pkeys_register_names>: Now const.
4414 * i386-tdep.c (i386_register_names, i386_zmm_names)
4415 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4416 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4417 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4418 * f-lang.c (f_extensions): Now const.
4419 * d-lang.c (d_extensions): Now const.
4420 * csky-tdep.c (csky_register_names): Now const.
4421 * charset.c (default_charset_names, charset_enum): Now const.
4422 (_initialize_charset): Update.
4423 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4424 const.
4425 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4426 (bsd_uthread_solib_loaded): Update.
4427 (bsd_uthread_state): Now const.
4428 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4429 (amd64_ymm_avx512_names, amd64_ymmh_names)
4430 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4431 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4432 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4433 (amd64_dword_names): Now const.
4434 * agent.c (can_use_agent_enum): Now const.
4435 * ada-tasks.c (task_states, long_task_states): Now const.
4436 * ada-lang.c (known_runtime_file_name_patterns)
4437 (known_auxiliary_function_name_patterns, attribute_names)
4438 (standard_exc, ada_extensions): Now const.
4439
89806626
SM
44402020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4441
4442 * bcache.h (struct bcache) <bcache>: Remove constructor.
4443 <m_hash_function, m_compare_function>: Remove.
4444 <~bcache>: Make virtual.
4445 <compare>: Remove static method, introduce virtual method.
4446 <default_hash>: Remove.
4447 <hash>: New virtual method.
4448 * bcache.c (bcache::expand_hash_table): Update.
4449 (bcache::insert): Update.
4450 (bcache::hash): New.
4451 (bcache::compare): Update comment and parameter names.
4452 * gdbtypes.c (types_deeply_equal): Update.
4453 * psymtab.h (struct psymbol_bcache): New struct.
4454 (class psymtab_storage) <psymtab_storage>: Make default.
4455 <psymbol_cache>: Change type to psymbol_bcache.
4456 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4457 (psymbol_hash): Change to...
4458 (psymbol_bcache::hash): ... this.
4459 (psymbol_compare): Change to...
4460 (psymbol_bcache::compare): ... this.
4461
677c92fe
SM
44622020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4463
4464 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4465 checking for initial lwp.
4466
3eba3a01
TT
44672020-09-14 Tom Tromey <tromey@adacore.com>
4468
4469 * m68k-tdep.c (m68k_extract_return_value): Use
4470 pointer_result_regnum.
4471 (m68k_store_return_value): Likewise.
4472 (m68k_reg_struct_return_p): Handle vectors and arrays.
4473 (m68k_return_value): Handle arrays.
4474 (m68k_svr4_return_value): Fix single-element aggregate handling.
4475 Handle long double. Adjust for embedded ABI.
4476 (m68k_svr4_init_abi): Set pointer_result_regnum.
4477 (m68k_embedded_init_abi): New function.
4478 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4479 (m68k_osabi_sniffer): New function.
4480 (_initialize_m68k_tdep): Register osabi sniffer.
4481 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4482 member.
4483
33f4dd48
SM
44842020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4485
4486 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4487 with gdb::unique_xmalloc_ptr<char>.
4488
8400a90d
SM
44892020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4490
4491 * xml-support.h (xml_fetch_another): Change type to be a
4492 function_view.
4493 (xml_process_xincludes): Remove baton parameter.
4494 (xml_fetch_content_from_file): Change baton parameter to
4495 dirname.
4496 * xml-support.c (struct xinclude_parsing_data)
4497 <xinclude_parsing_data>: Remove baton parameter.
4498 <fetcher_baton>: Remove.
4499 (xinclude_start_include): Adjust.
4500 (xml_process_xincludes): Adjust.
4501 (xml_fetch_content_from_file): Replace baton parameter with
4502 dirname.
4503 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4504 (xml_init_syscalls_info): Use a lambda.
4505 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4506 (file_read_description_xml): Use a lambda.
4507 (fetch_available_features_from_target): Change baton parameter
4508 to target_ops.
4509 (target_read_description_xml): Use a lambda.
4510 (target_fetch_description_xml): Use a lambda.
4511 (string_read_description_xml): Update.
4512
04f5bab2
SM
45132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4514
4515 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4516 uses with type::endianity_is_not_default.
4517
db558e34
SM
45182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4519
4520 * gdbtypes.h (struct type) <endianity_is_not_default,
4521 set_endianity_is_not_default>: New methods.
4522 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4523 type::endianity_is_not_default, change all write call sites to
4524 use type::set_endianity_is_not_default.
4525
22c4c60c
SM
45262020-09-14 Simon Marchi <simon.marchi@efficios.com>
4527
4528 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4529 uses with type::is_fixed_instance.
4530
9cdd0d12
SM
45312020-09-14 Simon Marchi <simon.marchi@efficios.com>
4532
4533 * gdbtypes.h (struct type) <is_fixed_instance,
4534 set_is_fixed_instance>: New methods.
4535 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4536 write call sites to use type::set_is_fixed_instance.
4537
0becda7a
SM
45382020-09-14 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4541 uses with type::is_gnu_ifunc.
4542
03cc7249
SM
45432020-09-14 Simon Marchi <simon.marchi@efficios.com>
4544
4545 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4546 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4547 use type::set_is_gnu_ifunc.
4548
3f46044c
SM
45492020-09-14 Simon Marchi <simon.marchi@efficios.com>
4550
4551 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4552 uses with type::stub_is_supported.
4553
9baccff6
SM
45542020-09-14 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4557 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4558 use type::set_stub_is_supported.
4559
bd63c870
SM
45602020-09-14 Simon Marchi <simon.marchi@efficios.com>
4561
4562 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4563 uses with type::is_vector.
4564
2062087b
SM
45652020-09-14 Simon Marchi <simon.marchi@efficios.com>
4566
4567 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4568 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4569 use type::set_is_vector.
4570
a409645d
SM
45712020-09-14 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4574 uses with type::has_varargs.
4575
1d6286ed
SM
45762020-09-14 Simon Marchi <simon.marchi@efficios.com>
4577
4578 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4579 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4580 use type::set_has_varargs.
4581
7f9f399b
SM
45822020-09-14 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4585 uses with type::is_prototyped.
4586
27e69b7a
SM
45872020-09-14 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4590 New methods.
4591 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4592 call sites to use type::set_is_prototyped.
4593
d2183968
SM
45942020-09-14 Simon Marchi <simon.marchi@efficios.com>
4595
4596 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4597 uses with type::target_is_stub.
4598
8f53807e
SM
45992020-09-14 Simon Marchi <simon.marchi@efficios.com>
4600
4601 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4602 New methods.
4603 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4604 sites to use type::set_target_is_stub.
4605
e46d3488
SM
46062020-09-14 Simon Marchi <simon.marchi@efficios.com>
4607
4608 * gdbtypes.h (TYPE_STUB): Remove, replace all
4609 uses with type::is_stub.
4610
b4b73759
SM
46112020-09-14 Simon Marchi <simon.marchi@efficios.com>
4612
4613 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4614 (TYPE_STUB): Use type::is_stub, change all write call sites to
4615 use type::set_is_stub.
4616
20ce4123
SM
46172020-09-14 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4620 type::has_no_signedness.
4621
15152a54
SM
46222020-09-14 Simon Marchi <simon.marchi@efficios.com>
4623
4624 * gdbtypes.h (struct type) <has_no_signedness,
4625 set_has_no_signedness>: New methods.
4626 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4627 call sites to use type::set_has_no_signedness.
4628
c6d940a9
SM
46292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4630
4631 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4632 type::is_unsigned.
4633
653223d3
SM
46342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4635
4636 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4637 methods.
4638 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4639 sites to use type::set_is_unsigned.
4640
55ea94da 46412020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4642 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4643
e851246a
SM
4644 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4645 pointer and stack frame offset when unwinding.
55ea94da 4646
6791b117
PA
46472020-09-13 Pedro Alves <pedro@palves.net>
4648
4649 * NEWS: Document "-break-insert --qualified".
4650 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4651
77f2120b
PA
46522020-09-13 Pedro Alves <pedro@palves.net>
4653
4654 * linespec.c (classify_mtype, compare_msyms): Delete.
4655 (search_minsyms_for_name): Remove classification logic. Instead
4656 filter out trampoline symbols if we also found an external
4657 function of the same name.
4658
ed6a896c
JB
46592020-09-13 Joel Brobecker <brobecker@adacore.com>
4660
4661 * NEWS: Create a new section for the next release branch.
4662 Rename the section of the current branch, now that it has
4663 been cut.
4664
32aea73e
JB
46652020-09-13 Joel Brobecker <brobecker@adacore.com>
4666
4667 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4668 * version.in: Bump version to 11.0.50.DATE-git.
4669
8087c3fa
JB
46702020-09-12 Joel Brobecker <brobecker@adacore.com>
4671
4672 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4673
2a67f09d
FW
46742020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4675 Felix Willgerodt <Felix.Willgerodt@intel.com>
4676
4677 * gdbarch.sh: Added bfloat16 type.
4678 * gdbarch.c: Regenerated.
4679 * gdbarch.h: Regenerated.
4680 * gdbtypes.c (floatformats_bfloat16): New struct.
4681 (gdbtypes_post_init): Add builtin_bfloat16.
4682 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4683 (floatformats_bfloat16): New struct.
4684 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4685 (i386_ymm_type): Add field "v16_bfloat16"
4686 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4687 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4688 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4689 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4690 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4691 * features/i386/64bit-avx512.c: Regenerated.
4692 * features/i386/64bit-sse.xml: Add bfloat16 type.
4693 * features/i386/64bit-sse.c: Regenerated.
4694
1347d111
FW
46952020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4696
4697 * i386-tdep.c (i386_zmm_type): Fix field names.
4698 (i386_ymm_type): Fix field names.
4699
7a4e8e7d
TBA
47002020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4701
4702 * breakpoint.c: Fix typo in the help message of the
4703 "set breakpoint condition-evaluation" command.
4704
cf4ac4be
KR
47052020-09-10 Kamil Rytarowski <n54@gmx.com>
4706
4707 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4708 * (nbsd_nat_target::pid_to_exec_file)
4709 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4710 (nbsd_nat_target::post_startup_inferior)
4711 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4712 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4713 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4714 * (nbsd_thread_lister): Remove.
4715
f404573e
KR
47162020-09-10 Kamil Rytarowski <n54@gmx.com>
4717
4718 * fork-inferior.c (startup_inferior): Avoid double free.
4719
1ccb2c17
KR
47202020-09-10 Kamil Rytarowski <n54@gmx.com>
4721
4722 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4723 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4724
feedfcc7
KR
47252020-09-10 Kamil Rytarowski <n54@gmx.com>
4726
4727 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4728 * netbsd-nat.c: Include <sys/ptrace.h>.
4729 * (netbsd_nat::enable_proc_events): Add.
4730
c489f8c6
KR
47312020-09-10 Kamil Rytarowski <n54@gmx.com>
4732
4733 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4734 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4735 (netbsd_nat::for_each_thread): Add.
4736 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4737 "gdbsupport/common-debug.h".
4738 * (netbsd_nat::netbsd_thread_lister)
4739 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4740 (netbsd_nat::for_each_thread): Add.
4741
330662f6
KR
47422020-09-10 Kamil Rytarowski <n54@gmx.com>
4743
4744 * netbsd-nat.h: Include <unistd.h>.
4745 * (netbsd_nat::pid_to_exec_file): Add.
4746 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4747 * (netbsd_nat::pid_to_exec_file) Add.
4748
70b67307
KR
47492020-09-10 Kamil Rytarowski <n54@gmx.com>
4750
4751 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4752
99cf6da6
KR
47532020-09-10 Kamil Rytarowski <n54@gmx.com>
4754
4755 * netbsd-nat.h: New file.
4756 * netbsd-nat.c: Likewise.
4757
1b788fb6
TT
47582020-09-09 Tom Tromey <tromey@adacore.com>
4759
4760 * ada-lang.c (remove_extra_symbols): Do not increment when
4761 removing an element
4762
03b0a45f
TT
47632020-09-08 Tom Tromey <tromey@adacore.com>
4764
4765 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4766
3cae4447
TT
47672020-09-08 Tom Tromey <tromey@adacore.com>
4768
4769 PR win32/25302:
4770 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4771 (gdb_bfd_init_data): New function.
4772 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4773
7f08fd51
TBA
47742020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4775
4776 * infrun.c (fetch_inferior_event): Use
4777 `switch_to_target_no_thread` to switch the target.
4778
3e6ff933
TT
47792020-09-06 Tom Tromey <tom@tromey.com>
4780
4781 * symfile.h (dwarf2_free_objfile): Don't declare.
4782
e56798df
AKS
47832020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4784
4785 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4786 to match 16 byte real/complex type generated by Flang compiler.
4787
8f5c6526
TV
47882020-09-03 Tom de Vries <tdevries@suse.de>
4789
4790 PR breakpoint/26546
4791 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4792 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4793
c5065df0
SM
47942020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4795
4796 * maint.c (index_digits): New function.
4797 (struct maint_print_section_data): Remove.
4798 (print_bfd_section_info): Remove print_data parameter, add arg
4799 and index_digits.
4800 (print_objfile_section_info): Likewise.
4801 (print_bfd_section_info_maybe_relocated): Likewise (plus
4802 objfile).
4803 (maintenance_info_sections): Adjust calls.
4804
02c6f3f1
TT
48052020-09-02 Tom Tromey <tromey@adacore.com>
4806
4807 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4808 for null pointers.
4809 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4810
ef5e5b0b
SM
48112020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4812
4813 * bcache.h (struct bcache) <insert>: Change type of `added` to
4814 pointer to bool.
4815 * bcache.c (bcache::insert): Likewise.
4816 * gdbtypes.c (check_types_worklist): Adjust.
4817 * psymtab.c (add_psymbol_to_bcache): Adjust.
4818
973695d6
KB
48192020-08-31 Kevin Buettner <kevinb@redhat.com>
4820
4821 * corelow.c (unordered_set): Include.
4822 (class core_target): Add field 'm_core_unavailable_mappings'.
4823 (core_target::build_file_mappings): Print only one warning
4824 per inaccessible file. Add unavailable/broken mappings
4825 to m_core_unavailable_mappings.
4826 (core_target::xfer_partial): Call...
4827 (core_target::xfer_memory_via_mappings): New method.
4828
264fc0e2
SM
48292020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4830
4831 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4832 type to bool.
4833
2de01bdb
SM
48342020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4835
4836 * dwarf2/read.c (struct field_info): Fix indentation.
4837
f3bd50f1
SM
48382020-08-31 Simon Marchi <simon.marchi@efficios.com>
4839
4840 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4841 ordering in comment.
4842 * frame.c (frame_id_eq): Fix indentation.
4843
22b9b4b0
SL
48442020-08-31 Scott Linder <scott@scottlinder.com>
4845 Simon Marchi <simon.marchi@efficios.com>
4846
4847 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4848 inline frame ids in outer frame.
4849
84154d16
SM
48502020-08-31 Simon Marchi <simon.marchi@efficios.com>
4851
4852 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4853 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4854 (outer_frame_id): Use FID_STACK_OUTER instead of
4855 FID_STACK_INVALID.
4856 (frame_id_p): Don't check for outer_frame_id.
4857
8efaf6b3
SM
48582020-08-31 Simon Marchi <simon.marchi@efficios.com>
4859
4860 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4861 regnum/frame in value. Call allocate_value_lazy.
4862 * frame.c (frame_unwind_register_value): Use
4863 val_print_not_saved.
4864
fe1fe7ea
SM
48652020-08-31 Simon Marchi <simon.marchi@efficios.com>
4866
4867 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4868
f7c7700d
PA
48692020-08-29 Pedro Alves <pedro@palves.net>
4870
4871 * progspace.c (print_program_space): Use all_inferiors. Switch to
4872 the inferior before calling target_pid_to_str.
4873
e0814aae
TT
48742020-08-28 Tom Tromey <tom@tromey.com>
4875
4876 * xcoffread.c (xcoff_end_psymtab): Update comment.
4877 * dbxread.c (dbx_end_psymtab): Update comment.
4878
626d2320
TV
48792020-08-28 Tom de Vries <tdevries@suse.de>
4880
4881 PR breakpoint/26544
4882 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4883 event_location.
4884 (create_breakpoint): Same.
4885 (base_breakpoint_decode_location): Same.
4886 (bkpt_create_sals_from_location): Same.
4887 (bkpt_decode_location): Same.
4888 (bkpt_probe_create_sals_from_location): Same.
4889 (bkpt_probe_decode_location): Same.
4890 (tracepoint_create_sals_from_location): Same.
4891 (tracepoint_decode_location): Same.
4892 (tracepoint_probe_decode_location): Same.
4893 (strace_marker_create_sals_from_location): Same.
4894 (strace_marker_decode_location): Same.
4895 (create_sals_from_location_default): Same.
4896 (decode_location_default): Same.
4897 * breakpoint.h (struct breakpoint_ops): Same.
4898 (create_breakpoint): Same.
4899 * linespec.h (decode_line_full): Same.
4900 * linespec.c (decode_line_full): Same. Throw error if
4901 result.size () == 0.
4902
df631783
PA
49032020-08-27 Pedro Alves <pedro@palves.net>
4904
4905 PR gdb/26524
4906 * breakpoint.c (until_break_fsm) <location_breakpoint,
4907 caller_breakpoint>: Delete fields.
4908 <breakpoints>: New field.
4909 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4910 two individual breakpoints.
4911 (until_break_fsm::should_stop): Loop over breakpoints in the
4912 breakpoint vector.
4913 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4914 vector.
4915 (until_break_command): Handle location expanding into multiple
4916 sals.
4917
b2b38aa4
PA
49182020-08-27 Pedro Alves <pedro@palves.net>
4919
4920 PR gdb/26523
4921 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4922 bp_until breakpoints user-specified locations. Update intro
4923 comment.
4924
b886559f
SM
49252020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4926
4927 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4928 gdb_bfd_sections): New.
4929 * maint.c (print_bfd_section_info): Change param type to
4930 maint_print_section_data.
4931 (print_objfile_section_info): Likewise.
4932 (print_bfd_section_info_maybe_relocated): Likewise.
4933 (maintenance_info_sections): Use gdb_bfd_sections.
4934
4c6e63bf
SV
49352020-08-25 Shahab Vahedi <shahab@synopsys.com>
4936
4937 * MAINTAINERS: Add ARC target and maintainer.
4938
8d7f0635
AK
49392020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4940
4941 * configure.tgt: ARC support for GNU/Linux.
4942 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4943 * arc-linux-tdep.c: New file.
4944 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4945 * arc-tdep.c (arc_write_pc): Use it.
4946
fdd8731b
SV
49472020-08-25 Shahab Vahedi <shahab@synopsys.com>
4948
4949 * arc-tdep.c (arc_check_for_hardware_loop): New.
4950 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4951
22459524
SV
49522020-08-25 Shahab Vahedi <shahab@synopsys.com>
4953
4954 * arc-tdep.h: Include "gdbarch.h".
4955
995d3a19
SV
49562020-08-25 Shahab Vahedi <shahab@synopsys.com>
4957
4958 * arch/arc.h
4959 (arc_gdbarch_features): New class to stir the selection of target XML.
4960 (arc_create_target_description): Use FEATURES to choose XML target.
4961 (arc_lookup_target_description): Use arc_create_target_description
4962 to create _new_ target descriptions or return the already created
4963 ones if the FEATURES is the same.
4964 * arch/arc.c: Implementation of prototypes described above.
4965 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4966 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4967 * arc-tdep.c (*_feature_name): Make feature names consistent.
4968 (arc_register_feature): A new struct to hold information about
4969 registers of a particular target/feature.
4970 (arc_check_tdesc_feature): Check if XML provides registers in
4971 compliance with ARC_REGISTER_FEATURE structs.
4972 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4973 (determine_*_reg_feature_set): Which feature name to look for.
4974 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4975 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4976 to expected ISA enums to be used in arc_gdbarch_features structs.
4977 * features/Makefile (FEATURE_XMLFILES): Add new files.
4978 * gdb/features/arc/v1-aux.c: New file.
4979 * gdb/features/arc/v1-aux.xml: Likewise.
4980 * gdb/features/arc/v1-core.c: Likewise.
4981 * gdb/features/arc/v1-core.xml: Likewise.
4982 * gdb/features/arc/v2-aux.c: Likewise.
4983 * gdb/features/arc/v2-aux.xml: Likewise.
4984 * gdb/features/arc/v2-core.c: Likewise.
4985 * gdb/features/arc/v2-core.xml: Likewise.
4986 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4987
3945d2d7
GM
49882020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4989 Andrew Burgess <andrew.burgess@embecosm.com>
4990
4991 PR m2/26372
fc5d6901 4992 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4993 an assert. Remove single element array indexing pattern as the
4994 MULTI_SUBSCRIPT support will handle this case too.
4995
2677f2d3
SM
49962020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4997
4998 * value.h (valprint_check_validity): Move declaration from
4999 here...
5000 * valprint.h (valprint_check_validity): ... to here.
5001
c426fddb
SM
50022020-08-24 Simon Marchi <simon.marchi@efficios.com>
5003
5004 * debug.h: New file.
5005 * debug.c (debug_prefixed_vprintf): New function.
5006 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5007 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5008
1eb8556f
SM
50092020-08-24 Simon Marchi <simon.marchi@efficios.com>
5010
5011 * infrun.h (infrun_debug_printf_1): New function declaration.
5012 (infrun_debug_printf): New macro.
5013 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5014 throughout.
5015 (infrun_debug_printf): New function.
5016 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5017 (handle_jit_event): Likewise.
5018
b8fff44e
MW
50192020-08-21 Mark Wielaard <mark@klomp.org>
5020
5021 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5022
d19c3068
SM
50232020-08-22 Simon Marchi <simon.marchi@efficios.com>
5024
5025 * frame.c (enum class frame_id_status): New.
5026 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5027 (fprintf_frame): Update.
5028 (compute_frame_id): Set frame id status to "computing" on entry.
5029 Set it back to "not_computed" on failure and to "computed" on
5030 success.
5031 (get_frame_id): Assert the frame id is not being computed.
5032 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5033 (create_new_frame): Likewise.
5034 (frame_cleanup_after_sniffer): Update assert.
5035
b70e516e
SM
50362020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5037
5038 * regcache.c (pid_ptid_regcache_map): New type.
5039 (target_ptid_regcache_map): Remove.
5040 (target_pid_ptid_regcache_map): New type.
5041 (regcaches): Change type to target_pid_ptid_regcache_map.
5042 (get_thread_arch_aspace_regcache): Update.
5043 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5044 case.
5045 (regcaches_size): Update.
5046 (regcache_count): Update.
5047 (registers_changed_ptid_target_pid_test): New.
5048 (_initialize_regcache): Register new test.
5049
cdd9148a
SM
50502020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5051
5052 * regcache.c (regcache_count): New.
5053 (struct regcache_test_data): New.
5054 (regcache_test_data_up): New.
5055 (populate_regcaches_for_test): New.
5056 (regcaches_test): Remove.
5057 (get_thread_arch_aspace_regcache_test): New.
5058 (registers_changed_ptid_all_test): New.
5059 (registers_changed_ptid_target_test): New.
5060 (registers_changed_ptid_target_ptid_test): New.
5061 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5062 (_initialize_regcache): Register new tests.
5063
dd125343
SM
50642020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5065
5066 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5067 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5068 gdbarch and aspace parameter. Use current inferior's aspace.
5069 Validate regcache's arch value.
5070 (regcaches_test): Update.
5071
3ee93972
SM
50722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5073
5074 * regcache.c (regcaches_test): Call registers_changed.
5075
33bf4c5c
TBA
50762020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5077
5078 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5079
c2fd7fae
AKS
50802020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5081
5082 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5083 to find the end of prologue for flang compiled binaries.
5084 * arm-tdep.c (arm_skip_prologue): Likewise.
5085 * i386-tdep.c (i386_skip_prologue): Likewise.
5086 * producer.c (producer_is_llvm): New function.
5087 (producer_parsing_tests): Added new tests for clang/flang.
5088 * producer.h (producer_is_llvm): New declaration.
5089
9327494e
SM
50902020-08-18 Simon Marchi <simon.marchi@efficios.com>
5091
5092 * linux-nat.c (linux_nat_debug_printf): New function.
5093 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5094
d138725a
AM
50952020-08-18 Aaron Merey <amerey@redhat.com>
5096
5097 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5098 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5099 (CLIBS): Add DEBUGINFOD_LIBS.
5100
f9b11e6b
ST
51012020-08-17 Sergei Trofimovich <siarheit@google.com>
5102
5103 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5104 'gdbarch_num_regs'.
5105
3ae7ab99
TT
51062020-08-17 Tom Tromey <tromey@adacore.com>
5107
5108 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5109 ada_get_decoded_value returns NULL.
5110
b017825f
TT
51112020-08-17 Tom Tromey <tromey@adacore.com>
5112
5113 * python/py-inferior.c (infpy_search_memory): Use
5114 gdb_py_object_from_ulongest.
5115 * python/py-infevents.c (create_inferior_call_event_object)
5116 (create_memory_changed_event_object): Use
5117 gdb_py_object_from_ulongest.
5118 * python/py-linetable.c (ltpy_entry_get_pc): Use
5119 gdb_py_object_from_ulongest.
5120
7635cf79
SM
51212020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5122
5123 * loc.c (class symbol_needs_eval_context): Fix indentation.
5124
f54be24b
SM
51252020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5126
5127 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5128 bool.
5129
53d5a2a5
TV
51302020-08-17 Tom de Vries <tdevries@suse.de>
5131
5132 PR gdb/26393
5133 * gdbtypes.c (dump_dynamic_prop): New function.
5134 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5135
547ce8f0
TV
51362020-08-15 Tom de Vries <tdevries@suse.de>
5137
5138 PR backtrace/26390
5139 * stack.c (print_frame_args): Temporarily set the selected
5140 frame to FRAME while printing the frame's arguments.
5141
6ea815e7
PFC
51422020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5143
5144 PR breakpoints/26385
5145 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5146 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5147
6e562fa3
PFC
51482020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5149
5150 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5151 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5152 and >= to check return value instead of == -1 and != -1.
5153
d369b608
SM
51542020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5155
5156 * utils.h (class gdb_argv) <as_array_view>: New method.
5157 * utils.c (gdb_argv_as_array_view_test): New.
5158 (_initialize_utils): Register selftest.
5159 * maint.c (maintenance_selftest): Use the new method.
5160
b31488a3
KR
51612020-08-13 Kamil Rytarowski <n54@gmx.com>
5162
5163 * target.h (supports_dumpcore, dumpcore): New
5164 function declarations.
5165 * target.c (supports_dumpcore, dumpcore): New
5166 functions.
5167 * target-delegates.c: Rebuild.
5168 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5169 and target_dumpcore ().
5170
002a3166
AM
51712020-08-13 Aaron Merey <amerey@redhat.com>
5172
5173 * debuginfod-support.c: Replace global variables with user_data.
5174
ece5bc8a
SM
51752020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5176
5177 * maint.c (maintenance_selftest): Split args and pass array_view
5178 to run_tests.
5179
6d8a0a5e
LM
51802020-08-12 Luis Machado <luis.machado@linaro.org>
5181
5182 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5183 type's length.
5184 Use %s and pulongest to print the length.
5185
7cf663a9
PA
51862020-08-12 Pedro Alves <palves@redhat.com>
5187
5188 * NEWS: Move "Multi-target debugging support" item to the
5189 "Changes since GDB 9" section.
5190
27c7b875
PA
51912020-08-12 Pedro Alves <palves@redhat.com>
5192
5193 PR gdb/26336
5194 * progspace.c (program_space::remove_objfile): Invalidate the
5195 frame cache.
5196
1796a2a1
TV
51972020-08-11 Tom de Vries <tdevries@suse.de>
5198
5199 * MAINTAINERS: Mark ms1 as deleted.
5200
f8e3fe0d
LM
52012020-08-10 Luis Machado <luis.machado@linaro.org>
5202
5203 PR gdb/26310
5204
5205 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5206 act accordingly.
5207 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5208 movz/str/stur/stp skipping behavior.
5209
cc308722
LM
52102020-08-10 Luis Machado <luis.machado@linaro.org>
5211
5212 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5213 struct user_sve_header instead of struct sve_context.
5214
041d9819
SM
52152020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5216
5217 * read.h (dwarf2_fetch_die_loc_sect_off,
5218 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5219 `void *` parameter with function_view.
5220 * read.c (dwarf2_fetch_die_loc_sect_off,
5221 dwarf2_fetch_die_loc_cu_off): Likewise.
5222 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5223 (per_cu_dwarf_call): Adjust.
5224 (get_frame_address_in_block_wrapper): Remove.
5225 (indirect_synthetic_pointer): Adjust.
5226 (get_ax_pc): Remove.
5227 (dwarf2_compile_expr_to_ax): Adjust.
5228
38f8aa06
TV
52292020-08-08 Tom de Vries <tdevries@suse.de>
5230
5231 PR build/26344
5232 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5233 constructor.
5234 * regcache.c (get_thread_arch_aspace_regcache): Same.
5235
a52b3ae2
TT
52362020-08-07 Tom Tromey <tromey@adacore.com>
5237
5238 * ravenscar-thread.c
5239 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5240 New method.
5241 (ravenscar_thread_target::wait): Check
5242 runtime_initialized.
5243 (ravenscar_thread_target::prepare_to_store)
5244 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5245 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5246 (ravenscar_thread_target::stopped_by_watchpoint)
5247 (ravenscar_thread_target::stopped_data_address)
5248 (ravenscar_thread_target::core_of_thread): Use
5249 scoped_restore_current_thread and
5250 set_base_thread_from_ravenscar_task.
5251
0e29517d
TT
52522020-08-07 Tom Tromey <tromey@adacore.com>
5253
5254 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5255
592f9bd7
TT
52562020-08-07 Tom Tromey <tromey@adacore.com>
5257
5258 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5259 update_inferior_ptid before update_thread_list.
5260 (temporarily_change_regcache_ptid): New class.
5261 (ravenscar_thread_target::fetch_registers)
5262 (ravenscar_thread_target::store_registers)
5263 (ravenscar_thread_target::prepare_to_store): Use base thread when
5264 forwarding operation.
5265
39e2018a
TT
52662020-08-07 Tom Tromey <tromey@adacore.com>
5267
5268 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5269 "is_pid" case.
5270
2080266b
TT
52712020-08-07 Tom Tromey <tromey@adacore.com>
5272
5273 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5274 New methods.
5275 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5276 first.
5277 (ravenscar_thread_target::add_thread): Rename from
5278 ravenscar_add_thread.
5279 (ravenscar_thread_target::update_thread_list): Use a lambda.
5280 (ravenscar_thread_target::xfer_partial): New method.
5281
78c02f21
TT
52822020-08-07 Tom Tromey <tromey@adacore.com>
5283
5284 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5285 gdb::function_view.
5286 (iterate_over_live_ada_tasks): Change type of argument.
5287 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5288 of argument.
5289
d5d833af
TT
52902020-08-07 Tom Tromey <tromey@adacore.com>
5291
5292 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5293 Remove.
5294 (ravenscar_thread_target::extra_thread_info): Remove.
5295 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5296 defer to target beneath for non-Ravenscar threads.
5297
a8ac85bb
TT
52982020-08-07 Tom Tromey <tromey@adacore.com>
5299
5300 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5301 get_base_thread_from_ravenscar_task>: Now methods.
5302 <m_cpu_map>: New member.
5303 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5304 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5305 (ravenscar_thread_target::task_is_currently_active): Update.
5306 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5307 Now a method.
5308 (ravenscar_thread_target::add_active_thread): Put initial thread
5309 into the m_cpu_map.
5310
550ab58d
TT
53112020-08-07 Tom Tromey <tromey@adacore.com>
5312
5313 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5314 event_ptid.
5315
e9546579
TT
53162020-08-07 Tom Tromey <tromey@adacore.com>
5317
5318 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5319 runtime_initialized.
5320
3d4470e5
TT
53212020-08-07 Tom Tromey <tromey@adacore.com>
5322
5323 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5324 add_active_thread.
5325 (ravenscar_thread_target::add_active_thread): Now public.
5326 (ravenscar_inferior_created): Call add_active_thread after pushing
5327 the target.
5328
888bdb2b
SM
53292020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5330
5331 * regcache.c (ptid_regcache_map): New type.
5332 (target_ptid_regcache_map): New type.
5333 (regcaches): Change type to target_ptid_regcache_map.
5334 (get_thread_arch_aspace_regcache): Update to regcaches' new
5335 type.
5336 (regcache_thread_ptid_changed): Likewise.
5337 (registers_changed_ptid): Likewise.
5338 (regcaches_size): Likewise.
5339 (regcaches_test): Update.
5340 (regcache_thread_ptid_changed): Update.
5341 * regcache.h (regcache_up): New type.
5342 * gdbsupport/ptid.h (hash_ptid): New struct.
5343
b161a60d
SM
53442020-08-07 Simon Marchi <simon.marchi@efficios.com>
5345
5346 * observable.h (thread_ptid_changed): Add parameter
5347 `process_stratum_target *`.
5348 * infrun.c (infrun_thread_ptid_changed): Add parameter
5349 `process_stratum_target *` and use it.
5350 (selftests): New namespace.
5351 (infrun_thread_ptid_changed): New function.
5352 (_initialize_infrun): Register selftest.
5353 * regcache.c (regcache_thread_ptid_changed): Add parameter
5354 `process_stratum_target *` and use it.
5355 (regcache_thread_ptid_changed): New function.
5356 (_initialize_regcache): Register selftest.
5357 * thread.c (thread_change_ptid): Pass target to
5358 thread_ptid_changed observable.
5359
d2854d8d
CT
53602020-08-06 Caroline Tice <cmtice@google.com>
5361
fe4c3d43
SM
5362 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5363 (struct dwp_sections): Update field comments. Add loclists and
5364 rnglists fields.
5365 (struct virtual_v2_dwo_sections): Rename struct to
5366 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5367 size & offset fields for loclists and rnglists.
5368 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5369 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5370 skipping dummy type units.
5371 (create_dwp_hash_table): Update the large comment above the function to
5372 discuss Version 5 DWP files as well, with references. Update all the
5373 version checks in the function to check for version 5 as well. Add new
5374 section at the end to create dwp hash table for version 5.
5375 (create_dwp_v2_section): Rename function to
5376 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5377 Add V5 to error message text.
5378 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5379 into calls to create_dwp_v2_or_v5_section.
5380 (create_dwo_unit_in_dwp_v5): New function.
5381 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5382 check for version2; add else clause to handle version 5.
5383 (open_and_init_dwo_file): Add code to check dwarf version & only call
5384 create_debug_types_hash_table (with sections.types) if version is not 5;
5385 else call create_debug_type_hash_table, with sections.info.
5386 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5387 version 5.
5388 (dwarf2_locate_v5_dwp_sections): New function.
5389 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5390 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5391
159ed7d9
SM
53922020-08-06 Simon Marchi <simon.marchi@efficios.com>
5393
5394 * regcache.h (class regcache): Remove friend
5395 registers_changed_ptid.
5396 <regcache_thread_ptid_changed>: Remove.
5397 <regcaches>: Remove.
5398 * regcache.c (regcache::regcaches): Rename to...
5399 (regcaches): ... this. Make static.
5400 (get_thread_arch_aspace_regcache): Update.
5401 (regcache::regcache_thread_ptid_changed): Rename to...
5402 (regcache_thread_ptid_changed): ... this. Update.
5403 (class regcache_access): Remove.
5404 (regcaches_test): Update.
5405 (_initialize_regcache): Update.
5406 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5407 <forward_list>.
5408
174981ae
SM
54092020-08-06 Simon Marchi <simon.marchi@efficios.com>
5410
5411 * regcache.h (class regcache) <current_regcache>: Rename to...
5412 <regcaches>: ... this. Move doc here.
5413 * regcache.c (regcache::current_regcache) Rename to...
5414 (regcache::regcaches): ... this. Move doc to header.
5415 (get_thread_arch_aspace_regcache): Update.
5416 (regcache::regcache_thread_ptid_changed): Update.
5417 (registers_changed_ptid): Update.
5418 (class regcache_access) <current_regcache_size>: Rename to...
5419 <regcaches_size>: ... this.
5420 (current_regcache_test): Rename to...
5421 (regcaches_test): ... this.
5422 (_initialize_regcache): Update.
5423
ed908db6
VC
54242020-08-06 Victor Collod <vcollod@nvidia.com>
5425
5426 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5427
b5582ab7
KB
54282020-08-05 Kevin Buettner <kevinb@redhat.com>
5429
5430 * corelow.c (core_target::build_file_mappings): Don't output
5431 null pathname in warning.
5432
ea946b86
SM
54332020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5434
5435 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5436 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5437 gdb.dwarf2/dw2-single-line-discriminators.exp,
5438 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5439
57d02173
TT
54402020-08-05 Tom Tromey <tromey@adacore.com>
5441
5442 PR rust/26197:
5443 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5444 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5445 Fix off-by-one and type size errors in ordinary case.
5446
5555c86d
TV
54472020-08-05 Tom de Vries <tdevries@suse.de>
5448
5449 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5450 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5451
97916bfe
SM
54522020-08-04 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * frame.h (frame_id_p): Return bool.
5455 (frame_id_artificial_p): Return bool.
5456 (frame_id_eq): Return bool.
5457 (has_stack_frames): Return bool.
5458 (get_selected_frame): Fix typo in comment.
5459 (get_frame_pc_if_available): Return bool.
5460 (get_frame_address_in_block_if_available): Return bool.
5461 (get_frame_func_if_available): Return bool.
5462 (read_frame_register_unsigned): Return bool.
5463 (get_frame_register_bytes): Return bool.
5464 (safe_frame_unwind_memory): Return bool.
5465 (deprecated_frame_register_read): Return bool.
5466 (frame_unwinder_is): Return bool.
5467 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5468 bool.
5469 <this_id::p>: Likewise.
5470 <prev_p>: Likewise.
5471 (frame_stash_add): Return bool.
5472 (get_frame_id): Use bool.
5473 (frame_id_build_special) Use bool.
5474 (frame_id_build_unavailable_stack): Use bool.
5475 (frame_id_build): Use bool.
5476 (frame_id_p): Return bool, use true/false instead of 1/0.
5477 (frame_id_artificial_p): Likewise.
5478 (frame_id_eq): Likewise.
5479 (frame_id_inner): Likewise.
5480 (get_frame_func_if_available): Likewise.
5481 (read_frame_register_unsigned): Likewise.
5482 (deprecated_frame_register_read): Likewise.
5483 (get_frame_register_bytes): Likewise.
5484 (has_stack_frames): Likewise.
5485 (inside_main_func): Likewise.
5486 (inside_entry_func): Likewise.
5487 (get_frame_pc_if_available): Likewise.
5488 (get_frame_address_in_block_if_available): Likewise.
5489 (frame_unwinder_is): Likewise.
5490 (safe_frame_unwind_memory): Likewise.
5491 (frame_unwind_arch): Likewise.
5492
fedfee88
SM
54932020-08-04 Simon Marchi <simon.marchi@efficios.com>
5494
5495 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5496 type to cached_copy_status.
5497 (fprintf_frame): Adjust.
5498 (get_frame_func_if_available): Adjust.
5499 (frame_cleanup_after_sniffer): Adjust.
5500
6cfa9b59
MW
55012020-08-04 Mark Wielaard <mark@klomp.org>
5502
5503 * MAINTAINERS (Write After Approval): Update email address.
5504
66d6346b
SM
55052020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5506
5507 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5508 dynamic_prop::const_val.
5509
8a6d5e35
SM
55102020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5511
5512 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5513 dynamic_prop::kind.
5514
51d6067d
SM
55152020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5516
5517 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5518
b26e2ae7
JM
55192020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5520
5521 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5522
39791af2
JM
55232020-08-04 Weimin Pan <weimin.pan@oracle.com>
5524 Jose E. Marchesi <jose.marchesi@oracle.com>
5525
5526 * configure.tgt: Add entry for bpf-*-*.
5527 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5528 (ALLDEPFILES): Add bpf-tdep.c.
5529 * bpf-tdep.c: New file.
5530 * MAINTAINERS: Add bpf target and maintainer.
5531 * NEWS: Mention the support for the new target.
5532
521894aa
TV
55332020-08-04 Tom de Vries <tdevries@suse.de>
5534
5535 PR symtab/23270
5536 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5537 Error.
5538
5d6356e9
JB
55392020-08-03 John Baldwin <jhb@FreeBSD.org>
5540
5541 * syscalls/freebsd.xml: Regenerate.
5542
0cf82b81
JB
55432020-08-03 John Baldwin <jhb@FreeBSD.org>
5544
5545 * syscalls/update-freebsd.sh: Fix usage and year range.
5546
8f34b746
TV
55472020-08-03 Tom de Vries <tdevries@suse.de>
5548
5549 PR symtab/26333
5550 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5551 DW_LNE_lo_user/DW_LNE_hi_user range.
5552
5e500d33
SM
55532020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5554
5555 PR ada/26318
5556 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5557 kind.
5558
78319c15
TBA
55592020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5560
5561 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5562
4c55e970
TBA
55632020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5564
5565 * breakpoint.c (set_breakpoint_condition): Update the condition
5566 expressions after checking that the input condition string parses
5567 successfully and does not contain junk at the end.
5568
1e620590
TBA
55692020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5570
5571 * breakpoint.c (set_breakpoint_condition): Update the
5572 condition string after parsing the new condition successfully.
5573
c8693053
RO
55742020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5575
5576 * proc-api.c (_STRUCTURED_PROC): Don't define.
5577 * proc-events.c: Likewise.
5578 * proc-flags.c: Likewise.
5579 * proc-why.c: Likewise.
5580 * procfs.c: Likewise.
5581
5582 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5583 * configure, config.in: Regenerate.
5584
5a99adb8
TV
55852020-07-30 Tom de Vries <tdevries@suse.de>
5586
5587 PR build/26320
5588 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5589 m_red/m_green/m_blue in a union.
5590
8ba83e91
TV
55912020-07-29 Tom de Vries <tdevries@suse.de>
5592
5593 PR tdep/26280
5594 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5595
f75a0693
AB
55962020-07-28 Tom Tromey <tromey@adacore.com>
5597
5598 PR symtab/26270:
5599 * symtab.h (find_pc_partial_function_sym): Declare.
5600 * cli/cli-cmds.c (disassemble_command): Use
5601 find_pc_partial_function_sym. Check asm_demangle.
5602 * blockframe.c (cache_pc_function_sym): New global.
5603 (cache_pc_function_name): Remove.
5604 (clear_pc_function_cache): Update.
5605 (find_pc_partial_function_sym): New function, from
5606 find_pc_partial_function.
5607 (find_pc_partial_function): Rewrite using
5608 find_pc_partial_function_sym.
5609
16f3242c
TT
56102020-07-28 Tom Tromey <tromey@adacore.com>
5611
5612 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5613 help. Add usage.
5614
4888741a
TT
56152020-07-28 Tom Tromey <tromey@adacore.com>
5616
5617 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5618 <DW_OP_GNU_variable_value>: Cast to address type.
5619
4d46f402
KR
56202020-07-28 Kamil Rytarowski <n54@gmx.com>
5621
5622 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5623 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5624 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5625 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5626 (nbsd_get_siginfo_type): New.
5627 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5628 (_initialize_nbsd_tdep): New.
5629
d70f978b
L
56302020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5631
5632 PR binutils/26301
5633 * configure: Regenerated.
5634
377170fa
L
56352020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5636
5637 PR binutils/26301
5638 * configure: Regenerated.
5639
43d5901d
AB
56402020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5641
5642 * python/py-frame.c: Remove 'user-regs.h' include.
5643 (frapy_read_register): Rewrite to make use of
5644 gdbpy_parse_register_id.
5645 * python/py-registers.c (gdbpy_parse_register_id): New function,
5646 moved here from python/py-unwind.c. Updated the return type, and
5647 also accepts register descriptor objects.
5648 * python/py-unwind.c: Remove 'user-regs.h' include.
5649 (pyuw_parse_register_id): Moved to python/py-registers.c.
5650 (unwind_infopy_add_saved_register): Update to use
5651 gdbpy_parse_register_id.
5652 (pending_framepy_read_register): Likewise.
5653 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5654
14fa8fb3
AB
56552020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5656
5657 * python/py-registers.c: Add 'user-regs.h' include.
5658 (register_descriptor_iter_find): New function.
5659 (register_descriptor_iterator_object_methods): New static global
5660 methods array.
5661 (register_descriptor_iterator_object_type): Add pointer to methods
5662 array.
5663
ddce1758
JB
56642020-07-27 John Baldwin <jhb@FreeBSD.org>
5665
5666 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5667 for all architectures on FreeBSD 11.3 and later.
5668
a4089f52
TT
56692020-07-27 Tom Tromey <tromey@adacore.com>
5670
5671 * gcore.h (load_corefile): Don't declare.
5672
95420d30
TV
56732020-07-27 Tom de Vries <tdevries@suse.de>
5674
5675 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5676 * config.in: Regenerate.
5677 * configure: Regenerate.
5678
05a6b8c2
EZ
56792020-07-26 Eli Zaretskii <eliz@gnu.org>
5680
5681 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5682 ws2tcpip.h. When checking whether socklen_t type is defined, use
5683 ws2tcpip.h if it is available and sys/socket.h isn't.
5684 * configure: Regenerate.
5685 * config.in: Regenerate.
5686
e79eb02f
AB
56872020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5688
5689 PR fortran/23051
5690 PR fortran/26139
5691 * valops.c (value_ind): Pass address to
5692 readjust_indirect_value_type.
5693 * value.c (readjust_indirect_value_type): Make parameter
5694 non-const, and add extra address parameter. Resolve original type
5695 before using it.
5696 * value.h (readjust_indirect_value_type): Update function
5697 signature and comment.
5698
876518dd
TV
56992020-07-25 Tom de Vries <tdevries@suse.de>
5700
5701 PR symtab/26243
5702 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5703 entries.
5704
f6720b1c
AM
57052020-07-24 Aaron Merey <amerey@redhat.com>
5706
5707 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5708 * configure: Rebuild.
5709
513487e1
KB
57102020-07-23 Kevin Buettner <kevinb@redhat.com>
5711
5712 PR corefiles/26294
5713 * corelow.c (_initialize_corelow): Add period to help text
5714 for "maintenance print core-file-backed-mappings".
5715
e7bc9db8
PA
57162020-07-23 Pedro Alves <pedro@palves.net>
5717
5718 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5719 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5720 meanwhile.
5721 * frame.c (frame_cache_generation, get_frame_cache_generation):
5722 New.
5723 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5724 (get_prev_frame_if_no_cycle): On exception, don't touch
5725 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5726 * frame.h (get_frame_cache_generation): Declare.
5727
90fcc466
TV
57282020-07-23 Tom de Vries <tdevries@suse.de>
5729
5730 PR tui/26282
5731 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5732 New default constructor.
5733
78344df7
AB
57342020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5735
5736 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5737 exclude non-statement entries.
5738
b089853a
KB
57392020-07-22 Kevin Buettner <kevinb@redhat.com>
5740
5741 * NEWS (New commands): Mention new command
5742 "maintenance print core-file-backed-mappings".
5743
09c2f5d4
KB
57442020-07-22 Kevin Buettner <kevinb@redhat.com>
5745
5746 * corelow.c (gdbcmd.h): Include.
5747 (core_target::info_proc_mappings): New method.
5748 (get_current_core_target): New function.
5749 (maintenance_print_core_file_backed_mappings): New function.
5750 (_initialize_corelow): Add core-file-backed-mappings to
5751 "maint print" commands.
5752
9c5ec5c2 57532020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5754
9c5ec5c2
KB
5755 * linux-tdep.c (dump_note_entry_p): New function.
5756 (linux_dump_mapping_p_ftype): New typedef.
5757 (linux_find_memory_regions_full): Add new parameter,
5758 should_dump_mapping_p.
5759 (linux_find_memory_regions): Adjust call to
5760 linux_find_memory_regions_full.
5761 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5762 call to linux_find_memory_regions_full.
5763
db082f59
KB
57642020-07-22 Kevin Buettner <kevinb@redhat.com>
5765
5766 * corelow.c (solist.h, unordered_map): Include.
5767 (class core_target): Add field m_core_file_mappings and
5768 method build_file_mappings.
5769 (core_target::core_target): Call build_file_mappings.
5770 (core_target::~core_target): Free memory associated with
5771 m_core_file_mappings.
5772 (core_target::build_file_mappings): New method.
5773 (core_target::xfer_partial): Use m_core_file_mappings
5774 for memory transfers.
5775 * linux-tdep.c (linux_read_core_file_mappings): New
5776 function.
5777 (linux_core_info_proc_mappings): Rewrite to use
5778 linux_read_core_file_mappings.
5779 (linux_init_abi): Register linux_read_core_file_mappings.
5780
7e183d27
KB
57812020-07-22 Kevin Buettner <kevinb@redhat.com>
5782
5783 * arch-utils.c (default_read_core_file_mappings): New function.
5784 * arch-utils.c (default_read_core_file_mappings): Declare.
5785 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5786 * gdbarch.h, gdbarch.c: Regenerate.
5787
2735d421
KB
57882020-07-22 Kevin Buettner <kevinb@redhat.com>
5789
5790 PR corefiles/25631
5791 * corelow.c (core_target:xfer_partial): Revise
5792 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5793 case after first checking the stratum beneath the core
5794 target.
5795 (has_all_memory): Return true.
5796 * target.c (raw_memory_xfer_partial): Revise comment
5797 regarding use of has_all_memory.
5798
e56cb451
KB
57992020-07-22 Kevin Buettner <kevinb@redhat.com>
5800
5801 * exec.h (section_table_xfer_memory): Revise declaration,
5802 replacing section name parameter with an optional callback
5803 predicate.
5804 * exec.c (section_table_xfer_memory): Likewise.
5805 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5806 of section_table_xfer_memory.
5807
32fa152e
TT
58082020-07-22 Tom Tromey <tromey@adacore.com>
5809
5810 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5811 lookup_symbol_search_name.
5812
a67a1c41
AB
58132020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5814
5815 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5816 redundant local variable.
5817 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5818 reference, not pointer, update code accordingly.
5819
a7b4ff4f
SM
58202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5821 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5822
5823 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5824 * jit.c (jit_breakpoint_re_set_internal): Use the
5825 `skip_jit_symbol_lookup` field.
5826
2340e834
SM
58272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5828 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5829
5830 * jit.c (jit_read_descriptor): Define the descriptor address once,
5831 use twice.
5832 (jit_breakpoint_deleted): Move the declaration of the loop variable
5833 `iter` into the loop header.
5834 (jit_breakpoint_re_set_internal): Move the declaration of the local
5835 variable `objf_data` to the first point of definition.
5836 (jit_event_handler): Move the declaration of local variables
5837 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5838 Rename `objf` to `jited`.
5839
c1072906
SM
58402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5841
5842 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5843 Remove.
5844 * jit.c (get_jiter_objfile_data): Update.
5845
c8474dc3
TBA
58462020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5847 Simon Marchi <simon.marchi@polymtl.ca>
5848
5849 * jit.c (struct jit_program_space_data): Remove.
5850 (jit_program_space_key): Remove.
5851 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5852 stuff.
5853 (get_jit_program_space_data): Remove.
5854 (jit_breakpoint_deleted): Iterate on all of the program space's
5855 objfiles.
5856 (jit_inferior_init): Likewise.
5857 (jit_breakpoint_re_set_internal): Likewise. Also change return
5858 type to void.
5859 (jit_breakpoint_re_set): Pass current_program_space to
5860 jit_breakpoint_re_set_internal.
5861
77208eb7
SM
58622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5863
5864 * jit.h (struct jiter_objfile_data) <cached_code_address,
5865 jit_breakpoint>: Move to here from ...
5866 * jit.c (jit_program_space_data): ... here.
5867 (jiter_objfile_data::~jiter_objfile_data): Update.
5868 (jit_breakpoint_deleted): Update.
5869 (jit_breakpoint_re_set_internal): Update.
5870
8c1c720f
SM
58712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5872
5873 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5874 checks.
5875 (jit_read_descriptor): Remove NULL check.
5876 (jit_event_handler): Add an assertion.
5877
0e74a041
SM
58782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5879
5880 * jit.h (struct jit_objfile_data): Split into...
5881 (struct jiter_objfile_data): ... this ...
5882 (struct jited_objfile_data): ... and this.
5883 * objfiles.h (struct objfile) <jit_data>: Remove.
5884 <jiter_data, jited_data>: New fields.
5885 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5886 (jiter_objfile_data::~jiter_objfile_data): ... this.
5887 (get_jit_objfile_data): Rename to ...
5888 (get_jiter_objfile_data): ... this.
5889 (add_objfile_entry): Update.
5890 (jit_read_descriptor): Use get_jiter_objfile_data.
5891 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5892 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5893 (jit_inferior_exit_hook): Use objfile's jited_data field.
5894
238b5c9f
SM
58952020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5896
5897 * jit.h: Forward-declare `struct minimal_symbol`.
5898 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5899 constructor, destructor, and an objfile* field.
5900 * jit.c (jit_objfile_data): Remove.
5901 (struct jit_objfile_data): Migrate from here to jit.h.
5902 (jit_objfile_data::~jit_objfile_data): New destructor
5903 implementation with code moved from free_objfile_data.
5904 (free_objfile_data): Delete.
5905 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5906 (jit_find_objf_with_entry_addr): Ditto.
5907 (jit_inferior_exit_hook): Ditto.
5908 (_initialize_jit): Remove the call to
5909 register_objfile_data_with_cleanup.
5910 * objfiles.h (struct objfile) <jit_data>: New field.
5911
fe053b9e
TBA
59122020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5913
5914 * jit.h: Forward-declare `struct objfile`.
5915 (jit_event_handler): Add a second parameter, the JITer objfile.
5916 * jit.c (jit_read_descriptor): Change the signature to take the
5917 JITer objfile as an argument instead of the jit_program_space_data.
5918 (jit_inferior_init): Update the call to jit_read_descriptor.
5919 (jit_event_handler): Use the new JITer objfile argument when calling
5920 jit_read_descriptor.
5921 * breakpoint.c (handle_jit_event): Update the call to
5922 jit_event_handler to pass the JITer objfile.
5923
4cec0c66
JB
59242020-07-21 John Baldwin <jhb@FreeBSD.org>
5925
5926 * gdbarch.c: Regenerate.
5927 * gdbarch.h: Regenerate.
5928 * gdbarch.sh (handle_segmentation_fault): Remove method.
5929 * infrun.c (handle_segmentation_fault): Remove.
5930 (print_signal_received_reason): Remove call to
5931 handle_segmentation_fault.
5932
0e42f66a
JB
59332020-07-21 John Baldwin <jhb@FreeBSD.org>
5934
5935 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5936 Rename to sparc64_linux_report_signal_info and add siggnal
5937 argument.
5938 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5939 instead of sparc64_linux_handle_segmentation_fault.
5940
77bdfeb2
JB
59412020-07-21 John Baldwin <jhb@FreeBSD.org>
5942
5943 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5944 i386_linux_report_signal_info instead of
5945 i386_linux_handle_segmentation_fault.
5946 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5947 to i386_linux_report_signal_info and add siggnal argument.
5948 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5949 of i386_linux_handle_segmentation_fault.
5950 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5951 to i386_linux_report_signal_info and add siggnal argument.
5952
ad97bfc5
JB
59532020-07-21 John Baldwin <jhb@FreeBSD.org>
5954
5955 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5956 hook if present.
5957
272bb05c
JB
59582020-07-21 John Baldwin <jhb@FreeBSD.org>
5959
5960 * gdbarch.c: Regenerate.
5961 * gdbarch.h: Regenerate.
5962 * gdbarch.sh (report_signal_info): New method.
5963 * infrun.c (print_signal_received_reason): Invoke gdbarch
5964 report_signal_info hook if present.
5965
baf8791e
AB
59662020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5967
5968 * python/py-registers.c : Add 'unordered_map' include.
5969 (gdbpy_new_reggroup): Renamed to...
5970 (gdbpy_get_reggroup): ...this. Update to only create register
5971 group descriptors when needed.
5972 (gdbpy_reggroup_iter_next): Update.
5973
f7306dac
AB
59742020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5975
5976 * python/py-registers.c (gdbpy_register_object_data): New static
5977 global.
5978 (gdbpy_register_object_data_init): New function.
5979 (gdbpy_new_register_descriptor): Renamed to...
5980 (gdbpy_get_register_descriptor): ...this, and update to reuse
5981 existing register descriptors where possible.
5982 (gdbpy_register_descriptor_iter_next): Update.
5983 (gdbpy_initialize_registers): Register new gdbarch data.
5984
05c309a8
SM
59852020-07-21 Simon Marchi <simon.marchi@efficios.com>
5986
5987 * linux-nat.c (stopped_pids): Make static.
5988
d1fd641e
SM
59892020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5990
5991 PR ada/26235
5992 * gdbtypes.c (ada_discrete_type_low_bound,
5993 ada_discrete_type_high_bound): Handle undefined bounds.
5994
1de14d77
KR
59952020-07-21 Kamil Rytarowski <n54@gmx.com>
5996
5997 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5998 declaration.
5999 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6000 function.
6001
ed810cc7
JB
60022020-07-20 John Baldwin <jhb@FreeBSD.org>
6003
6004 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6005 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6006 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6007 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6008 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6009 method.
6010
ae5369e7
LC
60112020-07-20 Ludovic Courtès <ludo@gnu.org>
6012
6013 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6014 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6015 which are deprecated in Guile 3.0.
6016 * configure.ac (try_guile_versions): Add "guile-3.0".
6017 * configure (try_guile_versions): Regenerate.
6018 * NEWS: Update entry.
6019
68cf161c
LC
60202020-07-20 Ludovic Courtès <ludo@gnu.org>
6021 Doug Evans <dje@google.com>
6022
6023 PR gdb/21104
6024 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6025 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6026 USING_GUILE_BEFORE_2_2.
6027 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6028 Change type to 'scm_t_port_type *'.
6029 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6030 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6031 parameter and honor it. Update callers.
6032 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6033 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6034 functions.
6035 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6036 USING_GUILE_BEFORE_2_2.
6037 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6038 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6039 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6040 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6041 and 'SCM_PORT_TYPE'.
6042 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6043 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6044 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6045 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6046 [!USING_GUILE_BEFORE_2_2]: New functions.
6047 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6048 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6049 'gdbscm_memory_port_read'.
6050 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6051 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6052 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6053 function.
6054 (ioscm_init_memory_port): Remove.
6055 (ioscm_init_memory_port_stream): New function
6056 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6057 function.
6058 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6059 Return scm_from_uint (0).
6060 (gdbscm_set_memory_port_read_buffer_size_x)
6061 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6062 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6063 Return scm_from_uint (0).
6064 (gdbscm_set_memory_port_write_buffer_size_x)
6065 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6066 * configure.ac (try_guile_versions): Add "guile-2.2".
6067 * configure: Regenerate.
6068 * NEWS: Add entry.
6069
aee91db3
TT
60702020-07-18 Tom Tromey <tom@tromey.com>
6071
6072 * linux-nat.c (linux_multi_process): Remove.
6073 (linux_nat_target::supports_multi_process): Return true.
6074
0e267416
AB
60752020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6076
6077 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6078 (riscv_lookup_target_description): Return pointer out of
6079 unique_ptr.
6080 * target-descriptions.c (allocate_target_description): Add
6081 comment.
6082 (target_desc_deleter::operator()): Likewise.
6083 * target-descriptions.h (struct target_desc_deleter): Moved to
6084 gdbsupport/tdesc.h.
6085 (target_desc_up): Likewise.
6086
f80c8ec4
TT
60872020-07-17 Tom Tromey <tromey@adacore.com>
6088
6089 * linux-nat.c (linux_nat_target::supports_non_stop)
6090 (linux_nat_target::always_non_stop_p): Use "true".
6091 (linux_nat_target::supports_disable_randomization): Use "true" and
6092 "false".
6093
d0ce17d8
CT
60942020-07-16 Caroline Tice <cmtice@google.com>
6095
6096 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6097 (RNGLIST_HEADER_SIZE64): New constant definition.
6098 (struct dwop_section_names): Add rnglists_dwo.
6099 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6100 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6101 (struct dwo_sections): Add rnglists field.
6102 (read_attribut_reprocess): Add tag parameter.
6103 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6104 (cu_debug_rnglists_section): New function (decl & definition).
6105 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6106 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6107 die whose range is being checked; get rnglist section from
6108 cu_debug_rnglists_section, to get from either objfile or dwo file as
6109 appropriate. Add cases for DW_RLE_base_addressx,
6110 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6111 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6112 test inside if-condition and updating complaint message.
6113 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6114 dwarf2_rnglists_process.
6115 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6116 dwarf2_ranges_process.
6117 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6118 need_ranges_base and update comment appropriately. Also pass die tag
6119 to dwarf2_ranges_read.
6120 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6121 need_ranges_base and update comment appropriately. Also pass die tag
6122 to dwarf2_ranges_process.
6123 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6124 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6125 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6126 need_ranges_base and update comment appropriately. Also pass die tag
6127 to read_attribute_reprocess and dwarf2_ranges_read.
6128 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6129 and update function comment appropriately.
6130 (read_loclist_index): Call read_loclists_rnglists_header instead of
6131 read_loclist_header.
6132 (read_rnglist_index): New function.
6133 (read_attribute_reprocess): Add tag parameter. Add code for
6134 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6135 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6136
3dcc261c
AB
61372020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6138
6139 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6140 being resolved.
6141
ccb9eba6
AB
61422020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6143
6144 * arch-utils.c (show_architecture): Update formatting of messages.
6145
cf88be68
SM
61462020-07-12 Simon Marchi <simon.marchi@efficios.com>
6147
6148 * gdbtypes.h (struct type) <bounds>: Handle array and string
6149 types.
6150 * ada-lang.c (assign_aggregate): Use type::bounds on
6151 array/string type.
6152 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6153 * c-varobj.c (c_number_of_children): Likewise.
6154 (c_describe_child): Likewise.
6155 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6156 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6157 (f_type_print_base): Likewise.
6158 * f-valprint.c (f77_array_offset_tbl): Likewise.
6159 (f77_get_upperbound): Likewise.
6160 (f77_print_array_1): Likewise.
6161 * guile/scm-type.c (gdbscm_type_range): Likewise.
6162 * m2-typeprint.c (m2_array): Likewise.
6163 (m2_is_long_set_of_type): Likewise.
6164 * m2-valprint.c (get_long_set_bounds): Likewise.
6165 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6166 * python/py-type.c (typy_range): Likewise.
6167 * rust-lang.c (rust_internal_print_type): Likewise.
6168 * type-stack.c (type_stack::follow_types): Likewise.
6169 * valarith.c (value_subscripted_rvalue): Likewise.
6170 * valops.c (value_cast): Likewise.
6171
509971ae
SM
61722020-07-12 Simon Marchi <simon.marchi@efficios.com>
6173
6174 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6175 callers to use the equivalent accessor methods.
6176
107406b7
SM
61772020-07-12 Simon Marchi <simon.marchi@efficios.com>
6178
6179 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6180 (struct type) <bit_stride>: New method.
6181 (TYPE_BIT_STRIDE): Remove.
6182 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6183
bb789949
SM
61842020-07-12 Simon Marchi <simon.marchi@efficios.com>
6185
6186 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6187 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6188 callers to use the equivalent accessor methods instead.
6189
39498edb
SM
61902020-07-12 Simon Marchi <simon.marchi@efficios.com>
6191
6192 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6193 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6194 callers to use the equivalent accessor methods instead.
6195
3b606f38
SM
61962020-07-12 Simon Marchi <simon.marchi@efficios.com>
6197
6198 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6199 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6200 to use dynamic_prop::kind.
6201
064d9cb9
SM
62022020-07-12 Simon Marchi <simon.marchi@efficios.com>
6203
6204 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6205 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6206 to get the bound property's kind and check against
6207 PROP_UNDEFINED.
6208
5537ddd0
SM
62092020-07-12 Simon Marchi <simon.marchi@efficios.com>
6210
6211 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6212 all callers to use type::range_bounds followed by
6213 dynamic_prop::{low,high}.
6214
8c2e4e06
SM
62152020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6216
6217 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6218 const_val, set_const_val, baton, set_locexpr, set_loclist,
6219 set_addr_offset, variant_parts, set_variant_parts,
6220 original_type, set_original_type>: New methods.
6221 <kind>: Rename to...
6222 <m_kind>: ... this. Update all users to use the new methods
6223 instead.
6224 <data>: Rename to...
6225 <m_data>: ... this. Update all users to use the new methods
6226 instead.
6227
7c6f2712
SM
62282020-07-12 Simon Marchi <simon.marchi@efficios.com>
6229
6230 * gdbtypes.c (get_discrete_bounds): Return failure if
6231 the range type's bounds are not both defined and constant
6232 values.
6233 (get_array_bounds): Update comment. Remove undefined bound check.
6234
599088e3
SM
62352020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6236
6237 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6238 the type::bounds method directly.
6239
c4dfcb36
SM
62402020-07-12 Simon Marchi <simon.marchi@efficios.com>
6241
6242 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6243 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6244 are used to set the range type's bounds to use set_bounds.
6245
0a278aa7
PW
62462020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6247
6248 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6249
cce20f10
PA
62502020-07-10 Pedro Alves <pedro@palves.net>
6251
6252 * gdbthread.h (inferior_ref): Define.
6253 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6254 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6255 * thread.c
6256 (scoped_restore_current_thread::restore):
6257 Adjust to gdb::ref_ptr.
6258 (scoped_restore_current_thread::~scoped_restore_current_thread):
6259 Remove manual decref handling.
6260 (scoped_restore_current_thread::scoped_restore_current_thread):
6261 Adjust to use
6262 inferior_ref::new_reference/thread_info_ref::new_reference.
6263 Incref the thread before calling get_frame_id instead of after.
6264 Let TARGET_CLOSE_ERROR propagate.
6265
6d7aa592
PA
62662020-07-10 Pedro Alves <pedro@palves.net>
6267
6268 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6269 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6270 NOT_AVAILABLE_ERROR.
6271 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6272 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6273
b3e3a4c1
SM
62742020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6275 Pedro Alves <pedro@palves.net>
6276
6277 PR gdb/26199
6278 * infrun.c (threads_are_resumed_pending_p): Delete.
6279 (do_target_wait): Remove threads_are_executing and
6280 threads_are_resumed_pending_p checks from the inferior_matches
6281 lambda. Update comments.
6282
d6cc5d98
PA
62832020-07-10 Pedro Alves <pedro@palves.net>
6284
6285 PR gdb/26199
6286 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6287 executing threads.
6288
7d3badc6
PA
62892020-07-10 Pedro Alves <pedro@palves.net>
6290
6291 PR gdb/26199
6292 * infrun.c (handle_no_resumed): Handle multiple targets.
6293
42bd97a6
PA
62942020-07-10 Pedro Alves <pedro@palves.net>
6295
6296 PR gdb/26199
6297 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6298 target_is_async_p.
6299
43667cc6
PA
63002020-07-10 Pedro Alves <pedro@palves.net>
6301
6302 PR gdb/26199
6303 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6304 threads, not all threads.
6305
96118d11
PA
63062020-07-10 Pedro Alves <pedro@palves.net>
6307
6308 PR gdb/26199
6309 * remote.c (remote_target::open_1): Pass remote target pointer as
6310 data to create_async_event_handler.
6311 (remote_async_inferior_event_handler): Mark async event handler
6312 before returning if the remote target still has either pending
6313 events or unacknowledged notifications.
6314
54904d81
JB
63152020-07-10 John Baldwin <jhb@FreeBSD.org>
6316
6317 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6318 declaration.
6319 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6320 function.
6321
f37e5866
JB
63222020-07-09 John Baldwin <jhb@FreeBSD.org>
6323
6324 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6325 inferior_ptid.
6326
fc238d4a
JB
63272020-07-09 John Baldwin <jhb@FreeBSD.org>
6328
6329 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6330 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6331 AT_FREEBSD_PS_STRINGS.
6332
6e2469ff
HD
63332020-07-08 Hannes Domani <ssbssa@yahoo.de>
6334
6335 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6336 of debugfile path on Windows.
6337
d1076c41
JB
63382020-07-08 John Baldwin <jhb@FreeBSD.org>
6339
6340 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6341 argument to 'data'.
6342
15f3b077
TT
63432020-07-08 Tom Tromey <tromey@adacore.com>
6344
6345 * ada-lang.c (ada_exception_message_1): Use read_memory.
6346
9fc501fd
AB
63472020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6348
6349 PR python/22748
6350 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6351 special handling for inline frames.
6352 * findvar.c (value_of_register_lazy): Skip inline frames when
6353 creating lazy register values.
6354 * frame.c (frame_id_computed_p): Delete definition.
6355 * frame.h (frame_id_computed_p): Delete declaration.
6356
64cb3757
AB
63572020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6358
6359 * NEWS: Mention additions to Python API.
6360 * python/py-arch.c (archpy_register_groups): New function.
6361 (arch_object_methods): Add 'register_groups' method.
6362 * python/py-registers.c (reggroup_iterator_object): New struct.
6363 (reggroup_object): New struct.
6364 (gdbpy_new_reggroup): New function.
6365 (gdbpy_reggroup_to_string): New function.
6366 (gdbpy_reggroup_name): New function.
6367 (gdbpy_reggroup_iter): New function.
6368 (gdbpy_reggroup_iter_next): New function.
6369 (gdbpy_new_reggroup_iterator): New function
6370 (gdbpy_initialize_registers): Register new types.
6371 (reggroup_iterator_object_type): Define new Python type.
6372 (gdbpy_reggroup_getset): New static global.
6373 (reggroup_object_type): Define new Python type.
6374 * python/python-internal.h
6375
0f767f94
AB
63762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6377
6378 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6379 * python/py-arch.c (archpy_registers): New function.
6380 (arch_object_methods): Add 'registers' method.
6381 * python/py-registers.c: New file.
6382 * python/python-internal.h
6383 (gdbpy_new_register_descriptor_iterator): Declare.
6384 (gdbpy_initialize_registers): Declare.
6385 * python/python.c (do_start_initialization): Call
6386 gdbpy_initialize_registers.
6387 * NEWS: Mention additions to the Python API.
6388
87dbc774
AB
63892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6390
6391 * NEWS: Mention new Python API method.
6392 * python/py-unwind.c (pending_framepy_architecture): New function.
6393 (pending_frame_object_methods): Add architecture method.
6394
3bc98c0c
AB
63952020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6396
6397 * gdbarch.c: Regenerate.
6398 * gdbarch.h: Regenerate.
6399 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6400 (gdbarch_data): Use internal_error for the case where
6401 deprecated_set_gdbarch_data was originally needed.
6402 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6403 and use passed in obstack.
6404 (libunwind_frame_set_descr): Should no longer get back NULL from
6405 gdbarch_data.
6406 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6407 type.
6408 * user-regs.c (user_regs_init): Update parameters, and use passed
6409 in obstack.
6410 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6411 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6412
d8cc8af6
TV
64132020-07-06 Tom de Vries <tdevries@suse.de>
6414
6415 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6416 End-Of-Sequence in lte_is_less_than.
6417 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6418 "gdb: Don't reorder line table entries too much when sorting".
6419
947f7597
TV
64202020-07-06 Tom de Vries <tdevries@suse.de>
6421
6422 PR tui/26205
6423 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6424
1e7c1b22
TV
64252020-07-05 Tom de Vries <tdevries@suse.de>
6426
6427 PR build/26187
6428 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6429 std::uncaught_exceptions instead of deprecated
6430 std::uncaught_exception.
6431
a36158ec
SM
64322020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6433
6434 * macroexp.h (macro_stringify): Return
6435 gdb::unique_xmalloc_ptr<char>.
6436 * macroexp.c (macro_stringify): Likewise.
6437 * macrotab.c (fixup_definition): Update.
6438
14d960c8
SM
64392020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6440
6441 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6442 (lex_one_token): Update.
6443 * macroexp.c (struct macro_buffer) <release>: Return
6444 gdb::unique_xmalloc_ptr<char>.
6445 (macro_stringify): Update.
6446 (macro_expand): Update.
6447 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6448 * macroexp.h (macro_expand_next): Likewise.
6449
211d5b1c
SM
64502020-07-02 Simon Marchi <simon.marchi@efficios.com>
6451
6452 * macroexp.h (macro_lookup_ftype): Remove.
6453 (macro_expand, macro_expand_once, macro_expand_next): Remove
6454 lookup function parameters, add scope parameter.
6455 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6456 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6457 * macroscope.h (standard_macro_lookup): Change parameter type
6458 to macro_scope.
6459 * macroscope.c (standard_macro_lookup): Likewise.
6460 * c-exp.y (lex_one_token): Update.
6461 * macrocmd.c (macro_expand_command): Likewise.
6462 (macro_expand_once_command): Likewise.
6463
b1a35af2
SM
64642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6465
6466 * inf-loop.c (inferior_event_handler): Remove client_data param.
6467 * inf-loop.h (inferior_event_handler): Likewise.
6468 * infcmd.c (step_1): Adjust.
6469 * infrun.c (proceed): Adjust.
6470 (fetch_inferior_event): Remove client_data param.
6471 (infrun_async_inferior_event_handler): Adjust.
6472 * infrun.h (fetch_inferior_event): Remove `void *` param.
6473 * linux-nat.c (handle_target_event): Adjust.
6474 * record-btrace.c (record_btrace_handle_async_inferior_event):
6475 Adjust.
6476 * record-full.c (record_full_async_inferior_event_handler):
6477 Adjust.
6478 * remote.c (remote_async_inferior_event_handler): Adjust.
6479
1cdf9e33
TT
64802020-07-01 Tom Tromey <tom@tromey.com>
6481
6482 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6483 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6484
32c1e210
TT
64852020-07-01 Tom Tromey <tom@tromey.com>
6486
6487 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6488 tui_gen_win_info.
6489 (tui_win_info::make_window): Merge with
6490 tui_gen_win_info::make_window.
6491 (tui_win_info::make_visible): Move from tui_gen_win_info.
6492 * tui/tui-win.c (tui_win_info::max_width): Move from
6493 tui_gen_win_info.
6494 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6495 type.
6496 <window_factory>: Likewise.
6497 * tui/tui-layout.c (tui_win_info::resize): Move from
6498 tui_gen_win_info.
6499 (make_standard_window): Change return type.
6500 (get_locator_window, tui_get_window_by_name): Likewise.
6501 (tui_layout_window::apply): Remove a cast.
6502 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6503 (struct tui_win_info): Merge with tui_gen_win_info.
6504 (struct tui_gen_win_info): Remove.
6505
a30cb6da
TT
65062020-07-01 Tom Tromey <tom@tromey.com>
6507
6508 * tui/tui-stack.h (struct tui_locator_window): Derive from
6509 tui_win_info.
6510 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6511 <can_box>: New method.
6512
1eb2161f
TT
65132020-07-01 Tom Tromey <tom@tromey.com>
6514
6515 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6516
7134f2eb
TT
65172020-07-01 Tom Tromey <tom@tromey.com>
6518
6519 * tui/tui-regs.c (tui_data_window::display_registers_from)
6520 (tui_data_window::display_registers_from)
6521 (tui_data_window::first_data_item_displayed)
6522 (tui_data_window::delete_data_content_windows): Update.
6523 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6524 Remove.
6525 (tui_data_window::check_register_values): Update.
6526 (tui_data_item_window::rerender): Add parameters. Update.
6527 (tui_data_item_window::refresh_window): Remove.
6528 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6529 virtual.
6530 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6531 tui_gen_win_info.
6532 <refresh_window, max_height, min_height>: Remove.
6533 <rerender>: Add parameters.
6534 <x, y, visible>: New members.
6535 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6536 <m_item_width>: New member.
6537
22b7b041
TT
65382020-07-01 Tom Tromey <tom@tromey.com>
6539
6540 * tui/tui-regs.c (tui_data_window::show_register_group)
6541 (tui_data_window::check_register_values): Update.
6542 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6543 from item_no.
6544
c9753adb
TT
65452020-07-01 Tom Tromey <tom@tromey.com>
6546
6547 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6548 useless "if".
6549
9ab26b4a
TT
65502020-07-01 Tom Tromey <tom@tromey.com>
6551
6552 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6553 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6554
e555083f
TT
65552020-07-01 Tom Tromey <tom@tromey.com>
6556
6557 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6558 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6559 (struct tui_line_or_address): Move from tui-data.h.
6560 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6561 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6562 (tui_cmd_window, tui_source_window_base, tui_source_window)
6563 (tui_disasm_window): Don't declare.
6564 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6565 to tui-winsource.h.
6566 (SINGLE_KEY): Move to tui-stack.c.
6567
7a02bab7
TT
65682020-07-01 Tom Tromey <tom@tromey.com>
6569
6570 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6571 std::string.
6572 * tui/tui-regs.c (class tab_expansion_file): New.
6573 (tab_expansion_file::write): New method.
6574 (tui_register_format): Change return type. Use
6575 tab_expansion_file.
6576 (tui_get_register, tui_data_window::display_registers_from)
6577 (tui_data_item_window::rerender): Update.
6578 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6579 * tui/tui-io.c (tui_expand_tabs): Remove.
6580
ea68593b
TT
65812020-07-01 Tom Tromey <tom@tromey.com>
6582
6583 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6584
a8caed5d
FS
65852020-07-01 Fangrui Song <maskray@google.com>
6586
6587 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6588
9cdf9820
AKS
65892020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6590
6591 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6592 forms for DW_AT_associated and DW_AT_allocated attributes,
6593 which is already checked in function attr_to_dynamic_prop.
6594
a1520ad8
TT
65952020-06-30 Tom Tromey <tromey@adacore.com>
6596
6597 * dwarf2/read.c (quirk_rust_enum): Correctly call
6598 alloc_rust_variant for default-less enum.
6599
5ac58899
TT
66002020-06-30 Tom Tromey <tromey@adacore.com>
6601
6602 PR build/26183:
6603 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6604 gdb::to_string.
6605
19b187a9
SM
66062020-06-29 Simon Marchi <simon.marchi@efficios.com>
6607
6608 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6609 * gdbarch.h: Re-generate.
6610
cd4c4c07
TT
66112020-06-28 Tom Tromey <tom@tromey.com>
6612
6613 * command.h (cmd_types): Remove.
6614 (cmd_type): Don't declare.
6615 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6616 typedef.
6617 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6618 * cli/cli-decode.c (cmd_type): Remove.
6619
05779d57
PA
66202020-06-27 Pedro Alves <palves@redhat.com>
6621
6622 * fork-child.c (prefork_hook): Adjust.
6623 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6624 Delete.
6625 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6626 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6627 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6628 Remove declarations.
6629 (struct inferior) <set_tty, tty>: New methods.
6630 (struct inferior) <terminal>: Rename to ...
6631 (struct inferior) <m_terminal>: ... this and make private.
6632 * main.c (captured_main_1): Adjust.
6633 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6634 (mi_cmd_inferior_tty_show): Adjust.
6635 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6636 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6637
1776e3e5
NA
66382020-06-26 Nick Alcock <nick.alcock@oracle.com>
6639
6640 * configure.ac: Add --enable-libctf: handle --disable-static
6641 properly.
6642 * acinclude.m4: sinclude ../config/enable.m4.
6643 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6644 (LIBCTF): Substitute in.
6645 (CTF_DEPS): New, likewise.
6646 (CLIBS): libctf needs symbols from libbfd: move earlier.
6647 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6648 flags.
6649 * ctfread.c: Surround in ENABLE_LIBCTF.
6650 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6651 * configure: Regenerate.
6652 * config.in: Likewise.
6653
58373b80
SM
66542020-06-25 Simon Marchi <simon.marchi@efficios.com>
6655
6656 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6657
277474ee
SM
66582020-06-25 Simon Marchi <simon.marchi@efficios.com>
6659
6660 * inferior.h (struct inferior) <terminal>: Change type to
6661 gdb::unique_xmalloc_ptr<char>.
6662 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6663 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6664 field, adjust to unique pointer.
6665 (get_inferior_io_terminal): Adjust to unique pointer.
6666
6d74da72
AB
66672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6668
6669 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6670 registers, not just the known core set of registers.
6671
2e52d038
AB
66722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6673
6674 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6675 fflags, frm, and fcsr registers.
6676 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6677 restore groups.
6678 (riscv_tdesc_unknown_reg): New function.
6679 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6680 tdesc_use_registers.
6681 * riscv-tdep.h (struct gdbarch_tdep): Add
6682 unknown_csrs_first_regnum, unknown_csrs_count,
6683 duplicate_fflags_regnum, duplicate_frm_regnum, and
6684 duplicate_fcsr_regnum fields.
6685
be64fd07
AB
66862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6687
6688 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6689 callback, use the callback (when not null) to help number unknown
6690 registers.
6691 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6692 (tdesc_use_registers): Add extra parameter to declaration.
6693
3b9fce96
AB
66942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6695
6696 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6697 in the file.
6698 (class riscv_pending_register_alias): Likewise.
6699 (riscv_register_feature::register_info): Change 'required_p' field
6700 to 'required', and change its type. Add 'check' member function.
6701 (riscv_register_feature::register_info::check): Define new member
6702 function.
6703 (riscv_xreg_feature): Change initialisation of 'required' field.
6704 (riscv_freg_feature): Likewise.
6705 (riscv_virtual_feature): Likewise.
6706 (riscv_csr_feature): Likewise.
6707 (riscv_check_tdesc_feature): Take extra parameter, the csr
6708 tdesc_feature, rewrite the function to use the new
6709 riscv_register_feature::register_info::check function.
6710 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6711
865bad26
AB
67122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6713
6714 * features/Makefile: Remove all references to the deleted files
6715 below.
6716 * features/riscv/32bit-csr.c: Deleted.
6717 * features/riscv/32bit-csr.xml: Deleted.
6718 * features/riscv/64bit-csr.c: Deleted.
6719 * features/riscv/64bit-csr.xml: Deleted.
6720 * features/riscv/rebuild-csr-xml.sh: Deleted.
6721
ed69cbc8
AB
67222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6723
6724 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6725 whitespace error for declaration of names member variable.
6726 (struct riscv_register_feature): Add new prefer_first_name member
6727 variable, and fix whitespace error in declaration of registers.
6728 (riscv_xreg_feature): Initialize prefer_first_name field.
6729 (riscv_freg_feature): Likewise.
6730 (riscv_virtual_feature): Likewise.
6731 (riscv_csr_feature): Likewise.
6732 (riscv_register_name): Expand on comments. Remove register name
6733 modifications for CSR and virtual registers.
6734
4445e8f5
AB
67352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6736
6737 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6738 errors.
6739
767a879e
AB
67402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6741
6742 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6743 riscv-opc.h.
6744 (class riscv_pending_register_alias): New class.
6745 (riscv_check_tdesc_feature): Take vector of pending aliases and
6746 populate it as appropriate.
6747 (riscv_setup_register_aliases): Delete.
6748 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6749 to riscv_check_tdesc_feature in all cases. Use the vector to
6750 create the register aliases.
6751
bb6e55f3
RO
67522020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6753
6754 * sol2-tdep.c (sol2_static_transform_name): Remove.
6755 (sol2_init_abi): Don't register it.
6756 * gdbarch.sh (static_transform_name): Remove.
6757 * gdbarch.c, gdbarch.h: Regenerate.
6758
6759 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6760 gdbarch_static_transform_name.
6761 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6762 * stabsread.c (define_symbol) <'X'>: Remove.
6763 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6764 handling.
6765 <'V'>: Likewise.
6766 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6767 <'S'>: Remove call to gdbarch_static_transform_name.
6768
c6d36836
RO
67692020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6770
6771 * procfs.c (procfs_pre_trace): New function.
6772 (procfs_target::create_inferior): Pass it to fork_inferior.
6773
a7e6196b
RO
67742020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6775
6776 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6777 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6778 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6779 sol2-tdep.o, sparc-sol2-tdep.o.
6780 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6781 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6782 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6783 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6784
d412e696
RO
67852020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6786
6787 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6788 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6789 Call sol2_init_abi.
6790 Remove calls to set_gdbarch_skip_solib_resolver,
6791 set_gdbarch_core_pid_to_str.
6792 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6793 (i386_sol2_static_transform_name): Remove.
6794 (i386_sol2_init_abi): Call sol2_init_abi.
6795 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6796 set_gdbarch_static_transform_name,
6797 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6798 Use sol2_sigtramp_p.
6799 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6800 (sol2_sigtramp_p): New function.
6801 (sol2_static_transform_name): New function.
6802 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6803 (sol2_init_abi): New function.
6804 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6805 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6806 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6807 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6808 (sparc_sol2_static_transform_name): Remove.
6809 (sparc32_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,
6813 set_gdbarch_core_pid_to_str.
6814 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6815 (sparc_sol2_static_transform_name): Remove
6816 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6817 call sol2_sigtramp_p.
6818 (sparc64_sol2_init_abi): Call sol2_init_abi.
6819 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6820 set_gdbarch_static_transform_name,
6821 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6822
a8654e7d
PW
68232020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6824
6825 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6826 * exec.c (validate_exec_file): If from_tty, set both
6827 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6828 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6829 and from_tty, unconditionally ask a confirmation.
6830
caa7fd04
AB
68312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6832
6833 * target-descriptions.c (tdesc_architecture_name): Protect against
6834 NULL pointer dereference.
6835 (maint_print_xml_tdesc_cmd): New function.
6836 (_initialize_target_descriptions): Register new 'maint print
6837 xml-tdesc' command and give it the filename completer.
6838 * NEWS: Mention new 'maint print xml-tdesc' command.
6839
fbf42f4e
AB
68402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6841
6842 * target-descriptions.c (class tdesc_compatible_info): New class.
6843 (struct target_desc): Change type of compatible vector.
6844 (tdesc_compatible_p): Update for change in type of
6845 target_desc::compatible.
6846 (tdesc_compatible_info_list): New function.
6847 (tdesc_compatible_info_arch_name): New function.
6848 (tdesc_add_compatible): Update for change in type of
6849 target_desc::compatible.
6850 (print_c_tdesc::visit_pre): Likewise.
6851
20821f4e
AB
68522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6853
6854 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6855 whitespace to underscore.
6856 (maint_print_c_tdesc_cmd): Use fake filename for target
6857 descriptions that came from the target.
6858 (_initialize_target_descriptions): Add filename command completion
6859 for 'maint print c-tdesc'.
6860
1fb5ee62
SM
68612020-06-23 Simon Marchi <simon.marchi@efficios.com>
6862
6863 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6864 lines.
6865
fc3ecb3e
SM
68662020-06-23 Simon Marchi <simon.marchi@efficios.com>
6867
6868 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6869 lines.
6870 (dwarf2_find_location_expression): Likewise.
6871 (call_site_parameter_matches): Likewise.
6872 (dwarf2_compile_expr_to_ax): Likewise.
6873 (disassemble_dwarf_expression): Likewise.
6874 (loclist_describe_location): Likewise.
6875
236ef034
PA
68762020-06-23 Pedro Alves <palves@redhat.com>
6877
6878 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6879 progspace-and-thread.h. Include scoped-mock-context.h instead.
6880 (register_to_value_test): Use scoped_mock_context.
6881 * regcache.c: Include "scoped-mock-context.h".
6882 (cooked_read_test): Don't error out if a target is already pushed.
6883 Use scoped_mock_context. Adjust.
6884 * scoped-mock-context.h: New file.
6885
39e7ecca
AB
68862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6887
6888 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6889 initializer.
6890 (ada_language::is_string_type_p): New member function.
6891 * c-lang.c (c_language_data): Delete la_is_string_type_p
6892 initializer.
6893 (cplus_language_data): Likewise.
6894 (asm_language_data): Likewise.
6895 (minimal_language_data): Likewise.
6896 * d-lang.c (d_language_data): Likewise.
6897 * f-lang.c (f_is_string_type_p): Delete function, implementation
6898 moved to f_language::is_string_type_p.
6899 (f_language_data): Delete la_is_string_type_p initializer.
6900 (f_language::is_string_type_p): New member function,
6901 implementation from f_is_string_type_p.
6902 * go-lang.c (go_is_string_type_p): Delete function, implementation
6903 moved to go_language::is_string_type_p.
6904 (go_language_data): Delete la_is_string_type_p initializer.
6905 (go_language::is_string_type_p): New member function,
6906 implementation from go_is_string_type_p.
6907 * language.c (language_defn::is_string_type_p): Define new member
6908 function.
6909 (default_is_string_type_p): Make static, add comment copied from
6910 header file.
6911 (unknown_language_data): Delete la_is_string_type_p initializer.
6912 (unknown_language::is_string_type_p): New member function.
6913 (auto_language_data): Delete la_is_string_type_p initializer.
6914 (auto_language::is_string_type_p): New member function.
6915 * language.h (language_data): Delete la_is_string_type_p field.
6916 (language_defn::is_string_type_p): Declare new function.
6917 (default_is_string_type_p): Delete desclaration, move comment to
6918 definition.
6919 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6920 moved to m2_language::is_string_type_p.
6921 (m2_language_data): Delete la_is_string_type_p initializer.
6922 (m2_language::is_string_type_p): New member function,
6923 implementation from m2_is_string_type_p.
6924 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6925 initializer.
6926 * opencl-lang.c (opencl_language_data): Likewise.
6927 * p-lang.c (pascal_is_string_type_p): Delete function,
6928 implementation moved to pascal_language::is_string_type_p.
6929 (pascal_language_data): Delete la_is_string_type_p initializer.
6930 (pascal_language::is_string_type_p): New member function,
6931 implementation from pascal_is_string_type_p.
6932 * rust-lang.c (rust_is_string_type_p): Delete function,
6933 implementation moved to rust_language::is_string_type_p.
6934 (rust_language_data): Delete la_is_string_type_p initializer.
6935 (rust_language::is_string_type_p): New member function,
6936 implementation from rust_is_string_type_p.
6937 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6938 is_string_type_p.
6939
4ffc13fb
AB
69402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6941
6942 * ada-lang.c (ada_language_data): Delete la_print_typedef
6943 initializer.
6944 (ada_language::print_typedef): New member function.
6945 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6946 (cplus_language_data): Likewise.
6947 (asm_language_data): Likewise.
6948 (minimal_language_data): Likewise.
6949 * d-lang.c (d_language_data): Likewise.
6950 * f-lang.c (f_language_data): Likewise.
6951 (f_language::print_typedef): New member function.
6952 * go-lang.c (go_language_data): Delete la_print_typedef
6953 initializer.
6954 * language.c (language_defn::print_typedef): Define member
6955 function.
6956 (unknown_language_data): Delete la_print_typedef initializer.
6957 (unknown_language::print_typedef): New member function.
6958 (auto_language_data): Delete la_print_typedef initializer.
6959 (auto_language::print_typedef): New member function.
6960 * language.h (language_data): Delete la_print_typedef field.
6961 (language_defn::print_typedef): Declare new member function.
6962 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6963 (default_print_typedef): Delete declaration.
6964 * m2-lang.c (m2_language_data): Delete la_print_typedef
6965 initializer.
6966 (m2_language::print_typedef): New member function.
6967 * objc-lang.c (objc_language_data): Delete la_print_typedef
6968 initializer.
6969 * opencl-lang.c (opencl_language_data): Likewise.
6970 * p-lang.c (pascal_language_data): Likewise.
6971 (pascal_language::print_typedef): New member function.
6972 * rust-lang.c (rust_print_typedef): Delete function,
6973 implementation moved to rust_language::print_typedef.
6974 (rust_language): Delete la_print_typedef initializer.
6975 (rust_language::print_typedef): New member function,
6976 implementation from rust_print_typedef.
6977 * typeprint.c (default_print_typedef): Delete.
6978
d711ee67
AB
69792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6980
6981 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6982 (ada_language::printstr): New member function.
6983 * c-lang.c (c_language_data): Delete la_printstr initializer.
6984 (cplus_language_data): Likewise.
6985 (asm_language_data): Likewise.
6986 (minimal_language_data): Likewise.
6987 * d-lang.c (d_language_data): Likewise.
6988 * f-lang.c (f_printstr): Rename to f_language::printstr.
6989 (f_language_data): Delete la_printstr initializer.
6990 (f_language::printstr): New member function, implementation from
6991 f_printstr.
6992 * go-lang.c (go_language_data): Delete la_printstr initializer.
6993 * language.c (language_defn::printstr): Define new member
6994 function.
6995 (unk_lang_printstr): Delete.
6996 (unknown_language_data): Delete la_printstr initializer.
6997 (unknown_language::printstr): New member function.
6998 (auto_language_data): Delete la_printstr initializer.
6999 (auto_language::printstr): New member function.
7000 * language.h (language_data): Delete la_printstr field.
7001 (language_defn::printstr): Declare new member function.
7002 (LA_PRINT_STRING): Update call to printstr.
7003 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7004 (m2_language_data): Delete la_printstr initializer.
7005 (m2_language::printstr): New member function, implementation from
7006 m2_printstr.
7007 * objc-lang.c (objc_language_data): Delete la_printstr
7008 initializer.
7009 * opencl-lang.c (opencl_language_data): Likewise.
7010 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7011 (pascal_language_data): Delete la_printstr initializer.
7012 (pascal_language::printstr): New member function, implementation
7013 from pascal_printstr.
7014 * p-lang.h (pascal_printstr): Delete declaration.
7015 * rust-lang.c (rust_printstr): Update header comment.
7016 (rust_language_data): Delete la_printstr initializer.
7017 (rust_language::printstr): New member function.
7018
52b50f2c
AB
70192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7020
7021 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7022 (ada_language::printchar): New member function.
7023 * c-lang.c (c_language_data): Delete la_printchar initializer.
7024 (cplus_language_data): Likewise.
7025 (asm_language_data): Likewise.
7026 (minimal_language_data): Likewise.
7027 * d-lang.c (d_language_data): Likewise.
7028 * f-lang.c (f_printchar): Rename to f_language::printchar.
7029 (f_language_data): Delete la_printchar initializer.
7030 (f_language::printchar): New member function, implementation from
7031 f_printchar.
7032 * go-lang.c (go_language_data): Delete la_printchar initializer.
7033 * language.c (unk_lang_printchar): Delete.
7034 (language_defn::printchar): Define new member function.
7035 (unknown_language_data): Delete la_printchar initializer.
7036 (unknown_language::printchar): New member function.
7037 (auto_language_data): Delete la_printchar initializer.
7038 (auto_language::printchar): New member function.
7039 * language.h (language_data): Delete la_printchar field.
7040 (language_defn::printchar): Declare new member function.
7041 (LA_PRINT_CHAR): Update call to printchar.
7042 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7043 (m2_language::printchar): New member function.
7044 * objc-lang.c (objc_language_data): Delete la_printchar
7045 initializer.
7046 * opencl-lang.c (opencl_language_data): Likewise.
7047 * p-lang.c (pascal_language_data): Delete la_printchar
7048 initializer.
7049 (pascal_language::printchar): New member function.
7050 * rust-lang.c (rust_printchar): Rename to
7051 rust_language::printchar.
7052 (rust_language_data): Delete la_printchar initializer.
7053 (rust_language::printchar): New member function, implementation
7054 from rust_printchar.
7055
ec8cec5b
AB
70562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7057
7058 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7059 (ada_language_data): Delete la_emitchar initializer.
7060 (ada_language::emitchar): New member function, implementation from
7061 emit_char.
7062 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7063 (cplus_language_data): Likewise.
7064 (asm_language_data): Likewise.
7065 (minimal_language_data): Likewise.
7066 * d-lang.c (d_language_data): Likewise.
7067 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7068 (f_language_data): Delete la_emitchar initializer.
7069 (f_language::emitchar): New member function, implementation from
7070 f_emit_char.
7071 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7072 * language.c (unk_lang_emit_char): Delete.
7073 (language_defn::emitchar): New member function definition.
7074 (unknown_language_data): Delete la_emitchar initializer.
7075 (unknown_language::emitchar): New member function.
7076 (auto_language_data): Delete la_emitchar initializer.
7077 (auto_language::emitchar): New member function.
7078 * language.h (language_data): Delete la_emitchar field.
7079 (language_defn::emitchar): New member field declaration.
7080 (LA_EMIT_CHAR): Update call to emitchar.
7081 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7082 (m2_language_data): Delete la_emitchar initializer.
7083 (m2_language::emitchar): New member function, implementation from
7084 m2_emit_char.
7085 * objc-lang.c (objc_language_data): Delete la_emitchar
7086 initializer.
7087 * opencl-lang.c (opencl_language_data): Likewise.
7088 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7089 (pascal_language_data): Delete la_emitchar initializer.
7090 (pascal_language::emitchar): New member function, implementation
7091 from pascal_emit_char.
7092 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7093 (rust_language_data): Delete la_emitchar initializer.
7094 (rust_language::emitchar): New member function, implementation
7095 from rust_emitchar.
7096
1bf9c363
AB
70972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7098
7099 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7100 (ada_language_data): Delete la_post_parser initializer.
7101 (ada_language::post_parser): New member function.
7102 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7103 (cplus_language_data): Likewise.
7104 (asm_language_data): Likewise.
7105 (minimal_language_data): Likewise.
7106 * d-lang.c (d_language_data): Likewise.
7107 * f-lang.c (f_language_data): Likewise.
7108 * go-lang.c (go_language_data): Likewise.
7109 * language.c (unknown_language_data): Likewise.
7110 (auto_language_data): Likewise.
7111 * language.h (language_data): Delete la_post_parser field.
7112 (language_defn::post_parser): New member function.
7113 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7114 * objc-lang.c (objc_language_data): Likewise.
7115 * opencl-lang.c (opencl_language_data): Likewise.
7116 * p-lang.c (pascal_language_data): Likewise.
7117 * parse.c (parse_exp_in_context): Update call to post_parser.
7118 (null_post_parser): Delete definition.
7119 * parser-defs.h (null_post_parser): Delete declaration.
7120 * rust-lang.c (rust_language_data): Delete la_post_parser
7121 initializer.
7122
87afa652
AB
71232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7124
7125 * ada-lang.c (parse): Rename to ada_language::parser.
7126 (ada_language_data): Delete la_parser initializer.
7127 (ada_language::parser): New member function, implementation from
7128 parse.
7129 * c-lang.c (c_language_data): Delete la_parser initializer.
7130 (cplus_language_data): Likewise.
7131 (asm_language_data): Likewise.
7132 (minimal_language_data): Likewise.
7133 * d-lang.c (d_language_data): Likewise.
7134 (d_language::parser): New member function.
7135 * f-lang.c (f_language_data): Delete la_parser initializer.
7136 (f_language::parser): New member function.
7137 * go-lang.c (go_language_data): Delete la_parser initializer.
7138 (go_language::parser): New member function.
7139 * language.c (unk_lang_parser): Delete.
7140 (language_defn::parser): Define new member function.
7141 (unknown_language_data): Delete la_parser initializer.
7142 (unknown_language::parser): New member function.
7143 (auto_language_data): Delete la_parser initializer.
7144 (auto_language::parser): New member function.
7145 * language.h (language_data): Delete la_parser field.
7146 (language_defn::parser): Declare new member function.
7147 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7148 (m2_language::parser): New member function.
7149 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7150 * opencl-lang.c (opencl_language_data): Likewise.
7151 * p-lang.c (pascal_language_data): Likewise.
7152 (pascal_language::parser): New member function.
7153 * parse.c (parse_exp_in_context): Update call to parser.
7154 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7155 (rust_language::parser): New member function.
7156
37825800
AB
71572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7158
7159 * top.c (print_gdb_configuration): Print --with-python-libdir
7160 configuration value.
7161
5b860c93
PW
71622020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7163
7164 * NEWS: Mention change to the alias command.
7165
cf00cd6f
PW
71662020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7167
7168 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7169 (alias_command_completer)
7170 (make_alias_options_def_group): New functions.
7171 (alias_opts, alias_option_defs): New struct and array.
7172 (alias_usage_error): Update usage.
7173 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7174 Use option framework.
7175 (_initialize_cli_cmds): Update alias command help.
7176 Update aliases command help.
7177 (show_user):
7178 Add NULL for new default_args lookup_cmd argument.
7179 (valid_command_p): Rename to validate_aliased_command.
7180 Add NULL for new default_args lookup_cmd argument. Verify that the
7181 aliased_command has no default args.
7182 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7183 (lookup_cmd_1, lookup_cmd): New argument default_args.
7184 (add_alias_cmd):
7185 Add NULL for new default_args lookup_cmd argument.
7186 (print_help_for_command): Show default args under the layout
7187 alias some_alias = some_aliased_cmd some_alias_default_arg.
7188 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7189 xfree default_args in destructor.
7190 * cli/cli-script.c (process_next_line, do_define_command):
7191 Add NULL for new default_args lookup_cmd argument.
7192 * command.h: Declare new default_args argument in lookup_cmd
7193 and lookup_cmd_1.
7194 * completer.c (complete_line_internal_1):
7195 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7196 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7197 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7198 Likewise.
7199 * infcmd.c (_initialize_infcmd): Likewise.
7200 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7201 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7202 * python/py-param.c (add_setshow_generic): Likewise.
7203 * remote.c (_initialize_remote): Likewise.
7204 * top.c (execute_command): Prepend default_args if command has some.
7205 (set_verbose):
7206 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7207 * tracepoint.c (validate_actionline, encode_actions_1):
7208 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7209
bd920864
TBA
72102020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7211
7212 * jit.c (jit_read_descriptor): Use bool as the return type.
7213 (jit_breakpoint_re_set_internal): Use bool as the return type.
7214 Invert the return value logic; return true if the jit breakpoint
7215 has been successfully initialized.
7216 (jit_inferior_init): Update the call to
7217 jit_breakpoint_re_set_internal.
7218
f8098322
PA
72192020-06-22 Pedro Alves <palves@redhat.com>
7220
7221 PR gdb/25939
7222 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7223 Use the current inferior instead. Don't return
7224 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7225 wait again.
7226 * sol-thread.c (sol_thread_target::wait): Don't reference
7227 inferior_ptid.
7228 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7229 (sol_update_thread_list_callback): Use the current inferior's pid
7230 instead of inferior_ptid.
7231
196535a6
RO
72322020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7233
7234 * procfs.c: Cleanup many comments.
7235
7236 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7237 (AFTER_WATCHFLAG): Replace by value.
7238
7239 (MAIN_PROC_NAME_FORMAT): Inline ...
7240 (create_procinfo): ... here.
7241
7242 (procfs_debug_inferior): Remove SYS_exec handling.
7243 (syscall_is_exec): Likewise.
7244 (procfs_set_exec_trap): Likewise.
7245
7246 (syscall_is_lwp_exit): Inline in callers.
7247 (syscall_is_exit): Likewise.
7248 (syscall_is_exec): Likewise.
7249 (syscall_is_lwp_create): Likewise.
7250
7251 (invalidate_cache): Remove #if 0 code.
7252
7253 (make_signal_thread_runnable): Remove.
7254 (procfs_target::resume): Remove #if 0 code.
7255
cf6f3e86
RO
72562020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7257
7258 PR gdb/25939
7259 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7260 call ...
7261 (procfs_target::create_inferior): ... here.
7262
48e9cc84
PW
72632020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7264
7265 * exec.c (validate_exec_file): Ensure the build-id is up to
7266 date by calling reopen_exec_file (that checks file timestamp
7267 to decide to re-read the file).
7268
3922b302
PA
72692020-06-18 Pedro Alves <palves@redhat.com>
7270
7271 PR gdb/25412
7272 * gdbthread.h (delete_thread, delete_thread_silent)
7273 (find_thread_ptid): Update comments.
7274 * thread.c (current_thread_): New global.
7275 (is_current_thread): Move higher, and reimplement.
7276 (inferior_thread): Reimplement.
7277 (set_thread_exited): Use bool. Add assertions.
7278 (add_thread_silent): Simplify thread-reuse handling by always
7279 calling delete_thread.
7280 (delete_thread): Remove intro comment.
7281 (find_thread_ptid): Skip exited threads.
7282 (switch_to_thread_no_regs): Write to current_thread_.
7283 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7284 INFERIOR_PTID. Clear current_thread_.
7285
6dbdab44
PA
72862020-06-18 Pedro Alves <palves@redhat.com>
7287
7288 * aix-thread.c (pd_update): Use switch_to_thread.
7289
2da4b788
PA
72902020-06-18 Pedro Alves <palves@redhat.com>
7291
7292 * ravenscar-thread.c (ravenscar_thread_target): Update.
7293 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7294 (ravenscar_thread_target::add_active_thread): ... this. Don't
7295 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7296 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7297
50838d1b
PA
72982020-06-18 Pedro Alves <palves@redhat.com>
7299
7300 * nat/windows-nat.c (current_windows_thread): Remove.
7301 * nat/windows-nat.h (current_windows_thread): Remove.
7302 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7303 Adjust.
7304 (display_selectors): Adjust to fetch the current
7305 windows_thread_info based on inferior_ptid.
7306 (fake_create_process): No longer write to current_windows_thread.
7307 (windows_nat_target::get_windows_debug_event):
7308 Don't set inferior_ptid or current_windows_thread.
7309 (windows_nat_target::wait): Adjust to not rely on
7310 current_windows_thread.
7311 (do_initial_windows_stuff): Now a method of windows_nat_target.
7312 Switch to the last_ptid thread.
7313 (windows_nat_target::attach): Adjust.
7314 (windows_nat_target::detach): Use switch_to_no_thread instead of
7315 writing to inferior_ptid directly.
7316 (windows_nat_target::create_inferior): Adjust.
7317
31ce04e9
PA
73182020-06-18 Pedro Alves <palves@redhat.com>
7319
7320 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7321
1ee1a363
PA
73222020-06-18 Pedro Alves <palves@redhat.com>
7323
7324 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7325 after creating it, instead of writing to inferior_ptid. Don't
7326 write to inferior_ptid.
7327
6d350754
PA
73282020-06-18 Pedro Alves <palves@redhat.com>
7329
7330 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7331
5d971d48
PA
73322020-06-18 Pedro Alves <palves@redhat.com>
7333
7334 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7335 it, instead of writing to inferior_ptid.
7336
86e57d1b
PA
73372020-06-18 Pedro Alves <palves@redhat.com>
7338
7339 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7340 to inferior_ptid.
7341
f2e1c129
PA
73422020-06-18 Pedro Alves <palves@redhat.com>
7343
7344 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7345 instead of writing to inferior_ptid directly.
7346
60db1b85
PA
73472020-06-18 Pedro Alves <palves@redhat.com>
7348
7349 * corelow.c (core_target::close): Use switch_to_no_thread instead
7350 of writing to inferior_ptid directly.
7351 (add_to_thread_list, core_target_open): Use switch_to_thread
7352 instead of writing to inferior_ptid directly.
7353
fe7d6a8d
PA
73542020-06-18 Pedro Alves <palves@redhat.com>
7355
7356 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7357 inferior_ptid.
7358 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7359 inferior_ptid.
7360 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7361 inferior_ptid directly.
7362 (darwin_nat_target::init_thread_list): Switch to thread, instead
7363 of writing to inferior_ptid.
7364 (darwin_nat_target::attach): Don't write to inferior_ptid.
7365 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7366
975f8708
PA
73672020-06-18 Pedro Alves <palves@redhat.com>
7368
7369 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7370 thread.
7371 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7372 Instead use switch_to_thread.
7373 (gnu_nat_target::detach): Use switch_to_no_thread
7374 instead of writing to inferior_ptid directly. Used passed-in
7375 inferior instead of looking up the inferior by pid.
7376
1a204730
PA
73772020-06-18 Pedro Alves <palves@redhat.com>
7378
7379 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7380 inferior_ptid.
7381
ebe84f23
PA
73822020-06-18 Pedro Alves <palves@redhat.com>
7383
7384 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7385 inferior_ptid.
7386 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7387 thread.
7388 (nto_procfs_target::detach): Avoid referencing
7389 inferior_ptid. Use switch_to_no_thread instead of writing to
7390 inferior_ptid directly.
7391 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7392 instead of writing to inferior_ptid directly.
7393 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7394 to thread.
7395
191f02e5
PA
73962020-06-18 Pedro Alves <palves@redhat.com>
7397
7398 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7399 after creating it, instead of writing to inferior_ptid.
7400 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7401 to inferior_ptid directly.
7402 (gdbsim_target::wait): Don't write to inferior_ptid.
7403
0ac55310
PA
74042020-06-18 Pedro Alves <palves@redhat.com>
7405
7406 * remote.c (remote_target::remote_notice_new_inferior): Use
7407 switch_to_thread instead of writing to inferior_ptid directly.
7408 (remote_target::add_current_inferior_and_thread): Use
7409 switch_to_no_thread instead of writing to inferior_ptid directly.
7410 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7411 and switch_to_thread instead of using set_current_inferior or
7412 writing to inferior_ptid directly.
7413
5233f39b
PA
74142020-06-18 Pedro Alves <palves@redhat.com>
7415
7416 * tracectf.c (ctf_target_open): Switch to added thread instead of
7417 writing to inferior_ptid directly.
7418 (ctf_target::close): Use switch_to_no_thread instead of writing to
7419 inferior_ptid directly.
7420
087e161b
PA
74212020-06-18 Pedro Alves <palves@redhat.com>
7422
7423 * tracefile-tfile.c (tfile_target_open): Don't write to
7424 inferior_ptid directly, instead switch to added thread.
7425 (tfile_target::close): Use switch_to_no_thread instead of writing
7426 to inferior_ptid directly.
7427
7fb43e53
PA
74282020-06-18 Pedro Alves <palves@redhat.com>
7429
7430 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7431 (procfs_target::detach): Use switch_to_no_thread
7432 instead of writing to inferior_ptid directly.
7433 (do_attach): Change return type to void. Switch to the added
7434 thread.
7435 (procfs_target::create_inferior): Switch to the added thread.
7436 (procfs_do_thread_registers): Don't write to inferior_ptid.
7437
18493a00
PA
74382020-06-18 Pedro Alves <palves@redhat.com>
7439
7440 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7441 of writing to inferior_ptid.
7442 (scoped_restore_exited_inferior): Delete.
7443 (handle_vfork_child_exec_or_exit): Simplify using
7444 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7445 instead of writing to inferior_ptid.
7446 (THREAD_STOPPED_BY): Delete.
7447 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7448 (thread_stopped_by_hw_breakpoint): Delete.
7449 (save_waitstatus): Use
7450 scoped_restore_current_thread+switch_to_thread, and call
7451 target_stopped_by_watchpoint instead of
7452 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7453 instead of thread_stopped_by_sw_breakpoint, and
7454 target_stopped_by_hw_breakpoint instead of
7455 thread_stopped_by_hw_breakpoint.
7456 (handle_inferior_event)
7457 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7458 inferior_ptid directly, nor
7459 set_current_inferior/set_current_program_space. Use
7460 switch_to_thread / switch_to_inferior_no_thread instead.
7461
a0776b13
PA
74622020-06-18 Pedro Alves <palves@redhat.com>
7463
7464 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7465 instead of writing to inferior_ptid.
7466
6155c136
PA
74672020-06-18 Pedro Alves <palves@redhat.com>
7468
7469 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7470 added thread.
7471 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7472 to the added thread.
7473 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7474 instead of writing to inferior_ptid.
7475
c5316fc6
PA
74762020-06-18 Pedro Alves <palves@redhat.com>
7477
7478 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7479 (register_to_value_test): Mock a program_space too. Heap-allocate
7480 the address space. Don't write to inferior_ptid. Use
7481 switch_to_thread instead.
7482
8df01799
PA
74832020-06-18 Pedro Alves <palves@redhat.com>
7484
7485 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7486 Delete.
7487 (find_signalled_thread()): New, factored out from
7488 linux_make_corefile_notes and adjusted to handle exited threads.
7489 (linux_make_corefile_notes): Adjust to use the new
7490 find_signalled_thread.
7491
41792d68
PA
74922020-06-18 Pedro Alves <palves@redhat.com>
7493
7494 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7495 of saving/restoring inferior_ptid.
7496
612f258a
TT
74972020-06-17 Tom Tromey <tom@tromey.com>
7498
7499 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7500 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7501 declare.
7502 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7503
efb763a5
SM
75042020-06-15 Simon Marchi <simon.marchi@efficios.com>
7505
7506 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7507 of partial symtabs.
7508
2951f6c0
SM
75092020-06-17 Simon Marchi <simon.marchi@efficios.com>
7510
7511 * regformats/reg-arm.dat: Remove.
7512 * regformats/reg-bfin.dat: Remove.
7513 * regformats/reg-cris.dat: Remove.
7514 * regformats/reg-crisv32.dat: Remove.
7515 * regformats/reg-m32r.dat: Remove.
7516 * regformats/reg-tilegx.dat: Remove.
7517 * regformats/reg-tilegx32.dat: Remove.
7518
7d458ea5
SM
75192020-06-17 Simon Marchi <simon.marchi@efficios.com>
7520
7521 * features/Makefile (WHICH): Remove arm files.
7522 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7523 * regformats/arm/arm-with-neon.dat: Remove.
7524 * regformats/arm/arm-with-vfpv2.dat: Remove.
7525 * regformats/arm/arm-with-vfpv3.dat: Remove.
7526
3af96c0d
SM
75272020-06-17 Simon Marchi <simon.marchi@efficios.com>
7528
7529 * features/Makefile (XMLTOC): Remove rx.xml.
7530
b25e22fd
PA
75312020-06-17 Pedro Alves <palves@redhat.com>
7532
7533 * gdbthread.h (thread_control_state) <trap_expected> Update
7534 comments.
7535
a78a19b1
AB
75362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7537
7538 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7539 ada_language::lookup_symbol_nonlocal.
7540 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7541 (ada_language::lookup_symbol_nonlocal): New member function,
7542 implementation from ada_lookup_symbol_nonlocal.
7543 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7544 initializer.
7545 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7546 initializer.
7547 (cplus_language::lookup_symbol_nonlocal): New member function.
7548 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7549 (minimal_language_data) Likewise.
7550 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7551 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7552 initializer.
7553 (d_language::lookup_symbol_nonlocal): New member function.
7554 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7555 initializer.
7556 (f_language::lookup_symbol_nonlocal): New member function.
7557 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7558 initializer.
7559 * language.c (unknown_language_data): Likewise.
7560 (auto_language_data): Likewise.
7561 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7562 field.
7563 (language_defn::lookup_symbol_nonlocal): New member function.
7564 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7565 initializer.
7566 * objc-lang.c (objc_language_data): Likewise.
7567 * opencl-lang.c (opencl_language_data): Likewise.
7568 * p-lang.c (pascal_language_data): Likewise.
7569 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7570 rust_language::lookup_symbol_nonlocal.
7571 (rust_language_data): Delete la_lookup_symbol_nonlocal
7572 initializer.
7573 (rust_language::lookup_symbol_nonlocal): New member function,
7574 implementation from rust_lookup_symbol_nonlocal.
7575 * symtab.c (lookup_symbol_aux): Update call to
7576 lookup_symbol_nonlocal.
7577 (basic_lookup_symbol_nonlocal): Rename to...
7578 (language_defn::lookup_symbol_nonlocal): ...this, and update
7579 header comment. Remove language_defn parameter, and replace with
7580 uses of `this'.
7581 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7582
ebe2334e
AB
75832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7584
7585 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7586 initializer.
7587 (ada_language::value_print_inner): New member function.
7588 * c-lang.c (c_language_data): Delete la_value_print_inner
7589 initializer.
7590 (cplus_language_data): Likewise.
7591 (asm_language_data): Likewise.
7592 (minimal_language_data): Likewise.
7593 * d-lang.c (d_language_data): Likewise.
7594 (d_language::value_print_inner): New member function.
7595 * f-lang.c (f_language_data): Delete la_value_print_inner
7596 initializer.
7597 (f_language::value_print_inner): New member function.
7598 * f-lang.h (f_value_print_innner): Rename to...
7599 (f_value_print_inner): ...this (note spelling of 'inner').
7600 * f-valprint.c (f_value_print_innner): Rename to...
7601 (f_value_print_inner): ...this (note spelling of 'inner').
7602 * go-lang.c (go_language_data): Delete la_value_print_inner
7603 initializer.
7604 (go_language::value_print_inner): New member function.
7605 * language.c (language_defn::value_print_inner): Define new member
7606 function.
7607 (unk_lang_value_print_inner): Delete.
7608 (unknown_language_data): Delete la_value_print_inner initializer.
7609 (unknown_language::value_print_inner): New member function.
7610 (auto_language_data): Delete la_value_print_inner initializer.
7611 (auto_language::value_print_inner): New member function.
7612 * language.h (language_data): Delete la_value_print_inner field.
7613 (language_defn::value_print_inner): Delcare new member function.
7614 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7615 initializer.
7616 (m2_language::value_print_inner): New member function.
7617 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7618 initializer.
7619 * opencl-lang.c (opencl_language_data): Likewise.
7620 * p-lang.c (pascal_language_data): Likewise.
7621 (pascal_language::value_print_inner): New member function.
7622 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7623 initializer.
7624 (rust_language::value_print_inner): New member function.
7625 * valprint.c (do_val_print): Update call to value_print_inner.
7626
a1d1fa3e
AB
76272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7628
7629 * ada-lang.c (ada_language_data): Delete la_value_print
7630 initializer.
7631 (ada_language::value_print): New member function.
7632 * c-lang.c (c_language_data): Delete la_value_print initializer.
7633 (cplus_language_data): Likewise.
7634 (asm_language_data): Likewise.
7635 (minimal_language_data): Likewise.
7636 * d-lang.c (d_language_data): Likewise.
7637 * f-lang.c (f_language_data): Likewise.
7638 * go-lang.c (go_language_data): Likewise.
7639 * language.c (unk_lang_value_print): Delete.
7640 (language_defn::value_print): Define new member function.
7641 (unknown_language_data): Delete la_value_print initializer.
7642 (unknown_language::value_print): New member function.
7643 (auto_language_data): Delete la_value_print initializer.
7644 (auto_language::value_print): New member function.
7645 * language.h (language_data): Delete la_value_print field.
7646 (language_defn::value_print): Declare new member function.
7647 (LA_VALUE_PRINT): Update call to value_print.
7648 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7649 * objc-lang.c (objc_language_data): Likewise.
7650 * opencl-lang.c (opencl_language_data): Likewise.
7651 * p-lang.c (pascal_language_data): Likewise.
7652 (pascal_language::value_print): New member function.
7653 * rust-lang.c (rust_language_data): Delete la_value_print
7654 initializer.
7655
f16a9f57
AB
76562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7657
7658 * ada-lang.c (ada_watch_location_expression): Rename to
7659 ada_language::watch_location_expression.
7660 (ada_language_data): Delete la_watch_location_expression
7661 initializer.
7662 (ada_language::watch_location_expression): New member function,
7663 implementation from ada_watch_location_expression.
7664 * breakpoint.c (watch_command_1): Update call to
7665 watch_location_expression.
7666 * c-lang.c (c_watch_location_expression): Rename to
7667 language_defn::watch_location_expression.
7668 (c_language_data): Delete la_watch_location_expression
7669 initializer.
7670 (cplus_language_data): Likewise.
7671 (asm_language_data): Likewise.
7672 (minimal_language_data): Likewise.
7673 * c-lang.h (c_watch_location_expression): Delete declaration.
7674 * d-lang.c (d_language_data): Delete la_watch_location_expression
7675 initializer.
7676 * f-lang.c (f_language_data): Likewise.
7677 * go-lang.c (go_language_data): Likewise.
7678 * language.c (language_defn::watch_location_expression): Member
7679 function implementation from c_watch_location_expression.
7680 (unknown_language_data): Delete la_watch_location_expression
7681 initializer.
7682 (auto_language_data): Likewise.
7683 * language.h (language_data): Delete la_watch_location_expression
7684 field.
7685 (language_defn::watch_location_expression): Declare new member
7686 function.
7687 * m2-lang.c (m2_language_data): Delete
7688 la_watch_location_expression initializer.
7689 * objc-lang.c (objc_language_data): Likewise.
7690 * opencl-lang.c (opencl_language_data): Likewise.
7691 * p-lang.c (pascal_language_data): Likewise.
7692 * rust-lang.c (rust_watch_location_expression): Rename to
7693 rust_language::watch_location_expression.
7694 (rust_language_data): Delete la_watch_location_expression
7695 initializer.
7696 (rust_language::watch_location_expression): New member function,
7697 implementation from rust_watch_location_expression.
7698
7e56227d
AB
76992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7700
7701 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7702 ada_language::collect_symbol_completion_matches.
7703 (ada_language_data): Delete la_collect_symbol_completion_matches
7704 initializer.
7705 (ada_language::collect_symbol_completion_matches): New member
7706 function, implementation from
7707 ada_collect_symbol_completion_matches.
7708 * c-lang.c (c_language_data): Delete
7709 la_collect_symbol_completion_matches initializer.
7710 (cplus_language_data): Likewise.
7711 (asm_language_data): Likewise.
7712 (minimal_language_data): Likewise.
7713 * d-lang.c (d_language_data): Likewise.
7714 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7715 f_language::collect_symbol_completion_matches.
7716 (f_language_data): Delete la_collect_symbol_completion_matches
7717 initializer.
7718 (f_language::collect_symbol_completion_matches) New member
7719 function, implementation from f_collect_symbol_completion_matches.
7720 * go-lang.c (go_language_data): Delete
7721 la_collect_symbol_completion_matches initializer.
7722 * language.c (unknown_language_data): Likewise.
7723 (auto_language_data): Likewise.
7724 * language.h (language_data): Delete
7725 la_collect_symbol_completion_matches field.
7726 (language_defn::collect_symbol_completion_matches): New member
7727 function.
7728 * m2-lang.c (m2_language_data): Delete
7729 la_collect_symbol_completion_matches initializer.
7730 * objc-lang.c (objc_language_data): Likewise.
7731 * opencl-lang.c (opencl_language_data): Likewise.
7732 * p-lang.c (pascal_language_data): Likewise.
7733 * rust-lang.c (rust_language_data): Likewise.
7734 * symtab.c (default_collect_symbol_completion_matches): Delete.
7735 (collect_symbol_completion_matches): Update call to
7736 collect_symbol_completion_matches.
7737 (collect_symbol_completion_matches_type): Likewise.
7738 * symtab.h (default_collect_symbol_completion_matches): Delete
7739 declaration.
7740
53fc67f8
AB
77412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7742
7743 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7744 (ada_language_data): Delete la_word_break_characters initializer.
7745 (ada_language::word_break_characters): New member function.
7746 * c-lang.c (c_language_data): Delete la_word_break_characters
7747 initializer.
7748 (cplus_language_data): Likewise.
7749 (asm_language_data): Likewise.
7750 (minimal_language_data): Likewise.
7751 * completer.c: Update global comment.
7752 (advance_to_expression_complete_word_point): Update call to
7753 word_break_characters.
7754 (complete_files_symbols): Likewise.
7755 (complete_line_internal_1): Likewise.
7756 (default_completer_handle_brkchars): Likewise.
7757 (skip_quoted_chars): Likewise.
7758 * d-lang.c (d_language_data): Delete la_word_break_characters
7759 initializer.
7760 * f-lang.c (f_word_break_characters): Delete.
7761 (f_language_data): Delete la_word_break_characters initializer.
7762 (f_language::word_break_characters): New member function.
7763 * go-lang.c (go_language_data): Delete la_word_break_characters
7764 initializer.
7765 * language.c (unknown_language_data): Likewise.
7766 (auto_language_data): Likewise.
7767 * language.h (default_word_break_characters): Move declaration to
7768 earlier in the file.
7769 (language_data): Delete la_word_break_characters field.
7770 (language_defn::word_break_characters): New member function.
7771 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7772 initializer.
7773 * objc-lang.c (objc_language_data): Likewise.
7774 * opencl-lang.c (opencl_language_data): Likewise.
7775 * p-lang.c (pascal_language_data): Likewise.
7776 * rust-lang.c (rust_language_data): Likewise.
7777
c9debfb9
AB
77782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7779
7780 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7781 (ada_language_data): Delete la_get_symbol_name_matcher
7782 initializer.
7783 (language_defn::get_symbol_name_matcher_inner): New member
7784 function.
7785 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7786 initializer.
7787 (cplus_language_data): Likewise.
7788 (cplus_language::get_symbol_name_matcher_inner): New member
7789 function.
7790 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7791 (minimal_language_data): Likewise.
7792 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7793 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7794 initializer.
7795 * dictionary.c (iter_match_first_hashed): Update call to
7796 get_symbol_name_matcher.
7797 (iter_match_next_hashed): Likewise.
7798 (iter_match_next_linear): Likewise.
7799 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7800 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7801 initializer.
7802 (f_language::get_symbol_name_matcher_inner): New member function.
7803 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7804 initializer.
7805 * language.c (default_symbol_name_matcher): Update header comment,
7806 make static.
7807 (language_defn::get_symbol_name_matcher): New definition.
7808 (language_defn::get_symbol_name_matcher_inner): Likewise.
7809 (get_symbol_name_matcher): Delete.
7810 (unknown_language_data): Delete la_get_symbol_name_matcher
7811 initializer.
7812 (auto_language_data): Likewise.
7813 * language.h (language_data): Delete la_get_symbol_name_matcher
7814 field.
7815 (language_defn::get_symbol_name_matcher): New member function.
7816 (language_defn::get_symbol_name_matcher_inner): Likewise.
7817 (default_symbol_name_matcher): Delete declaration.
7818 * linespec.c (find_methods): Update call to
7819 get_symbol_name_matcher.
7820 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7821 initializer.
7822 * minsyms.c (lookup_minimal_symbol): Update call to
7823 get_symbol_name_matcher.
7824 (iterate_over_minimal_symbols): Likewise.
7825 * objc-lang.c (objc_language_data): Delete
7826 la_get_symbol_name_matcher initializer.
7827 * opencl-lang.c (opencl_language_data): Likewise.
7828 * p-lang.c (pascal_language_data): Likewise.
7829 * psymtab.c (psymbol_name_matches): Update call to
7830 get_symbol_name_matcher.
7831 * rust-lang.c (rust_language_data): Delete
7832 la_get_symbol_name_matcher initializer.
7833 * symtab.c (symbol_matches_search_name): Update call to
7834 get_symbol_name_matcher.
7835 (compare_symbol_name): Likewise.
7836
9a49ad8c
AB
78372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7838
7839 * ada-lang.c (ada_language_data): Delete la_compute_program
7840 initializer.
7841 * c-lang.c (c_language_data): Likewise.
7842 (c_language::compute_program): New member function.
7843 (cplus_language_data): Delete la_compute_program initializer.
7844 (cplus_language::compute_program): New member function.
7845 (asm_language_data): Delete la_compute_program initializer.
7846 (minimal_language_data): Likewise.
7847 * c-lang.h (c_compute_program): Update comment.
7848 (cplus_compute_program): Likewise.
7849 * compile/compile-c-support.c (c_compute_program): Likewise.
7850 (cplus_compute_program): Likewise.
7851 * compile/compile.c (compile_to_object): Update call to
7852 la_compute_program.
7853 * d-lang.c (d_language_data): Delete la_compute_program
7854 initializer.
7855 * f-lang.c (f_language_data): Likewise.
7856 * go-lang.c (go_language_data): Likewise.
7857 * language.c (unknown_language_data): Likewise.
7858 (auto_language_data): Likewise.
7859 * language.h (language_data): Delete la_compute_program field.
7860 (language_defn::compute_program): New member function.
7861 * m2-lang.c (m2_language_data): Delete la_compute_program
7862 initializer.
7863 * objc-lang.c (objc_language_data): Likewise.
7864 * opencl-lang.c (opencl_language_data): Likewise.
7865 * p-lang.c (pascal_language_data): Likewise.
7866 * rust-lang.c (rust_language_data): Likewise.
7867
eff93b4d
AB
78682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7869
7870 * ada-lang.c (ada_language_data) Delete
7871 la_class_name_from_physname initializer.
7872 * c-lang.c (c_language_data): Likewise.
7873 (cplus_language_data): Likewise.
7874 (cplus_language::class_name_from_physname): New member function.
7875 (asm_language_data): Delete la_class_name_from_physname
7876 initializer.
7877 (minimal_language_data): Likewise.
7878 * d-lang.c (d_language_data): Likewise.
7879 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7880 method on language_defn class.
7881 (guess_full_die_structure_name): Likewise.
7882 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7883 initializer.
7884 * go-lang.c (go_language_data): Likewise.
7885 * language.c (language_class_name_from_physname): Delete.
7886 (unk_lang_class_name): Delete.
7887 (unknown_language_data): Delete la_class_name_from_physname
7888 initializer.
7889 (auto_language_data): Likewise.
7890 * language.h (language_data): Delete la_class_name_from_physname
7891 field.
7892 (language_defn::class_name_from_physname): New function.
7893 (language_class_name_from_physname): Delete declaration.
7894 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7895 initializer.
7896 * objc-lang.c (objc_language_data): Likewise.
7897 * opencl-lang.c (opencl_language_data): Likewise.
7898 * p-lang.c (pascal_language_data): Likewise.
7899 * rust-lang.c (rust_language_data): Likewise.
7900
de543742
TT
79012020-06-16 Tom Tromey <tom@tromey.com>
7902
7903 * tui/tui-data.h (STATUS_NAME): New macro.
7904 * tui/tui-layout.c (tui_remove_some_windows)
7905 (initialize_known_windows, tui_register_window)
7906 (tui_layout_split::remove_windows, initialize_layouts)
7907 (tui_new_layout_command): Don't use hard-coded window names.
7908
a350efd4
TT
79092020-06-16 Tom Tromey <tom@tromey.com>
7910
7911 PR tui/25348:
7912 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7913 tui_initialize_readline. Only run once. Call rl_initialize.
7914 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7915 tui_initialize_readline.
7916 * tui/tui-io.c (tui_setup_io): Call
7917 tui_ensure_readline_initialized.
7918 * tui/tui-interp.c (tui_interp::init): Update.
7919
39ec0490
TT
79202020-06-16 Tom Tromey <tom@tromey.com>
7921
7922 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7923 Also preserve the status window.
7924
d2d1ea20
TT
79252020-06-16 Tom Tromey <tom@tromey.com>
7926
7927 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7928 where m_window==nullptr.
7929
66920317
TT
79302020-06-15 Tom Tromey <tromey@adacore.com>
7931
7932 * windows-nat.c (windows_nat::handle_output_debug_string):
7933 Update.
7934 (windows_nat::handle_ms_vc_exception): Update.
7935 * target.h (target_read_string): Change API.
7936 * target.c (target_read_string): Change API.
7937 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7938 Update.
7939 * solib-frv.c (frv_current_sos): Update.
7940 * solib-dsbt.c (dsbt_current_sos): Update.
7941 * solib-darwin.c (darwin_current_sos): Update.
7942 * linux-thread-db.c (inferior_has_bug): Update.
7943 * expprint.c (print_subexp_standard): Update.
7944 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7945 (ada_exception_message_1): Update.
7946
a5d871dd
TT
79472020-06-15 Tom Tromey <tromey@adacore.com>
7948
7949 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7950
670e35fa
TT
79512020-06-15 Tom Tromey <tromey@adacore.com>
7952
7953 * valprint.c (read_string): Update comment.
7954 * target.c (MIN): Remove.
7955 (target_read_string): Rewrite.
7956
f5272a3b
TT
79572020-06-15 Tom Tromey <tromey@adacore.com>
7958
7959 * corefile.c (read_memory_string): Remove.
7960 * ada-valprint.c (ada_value_print_ptr): Update.
7961 * ada-lang.h (ada_tag_name): Change return type.
7962 * ada-lang.c (type_from_tag): Update.
7963 (ada_tag_name_from_tsd): Change return type. Use
7964 target_read_string.
7965 (ada_tag_name): Likewise.
7966 * gdbcore.h (read_memory_string): Don't declare.
7967
2c074f49
HD
79682020-06-14 Hannes Domani <ssbssa@yahoo.de>
7969
7970 * symtab.c (rbreak_command): Ignore Windows drive colon.
7971
6a17d503
SM
79722020-06-12 Simon Marchi <simon.marchi@efficios.com>
7973
7974 * NEWS: Mention removed GDBserver host support.
7975
453c733f
NC
79762020-06-12 Nelson Chu <nelson.chu@sifive.com>
7977
7978 * features/riscv/rebuild-csr-xml.sh: Updated.
7979
2b4e6a3f
TT
79802020-06-11 Tom Tromey <tom@tromey.com>
7981
7982 PR gdb/18318:
7983 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7984
4412332f
JG
79852020-06-09 Jonny Grant <jg@jguk.org>
79862020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7987
7988 * main.c (captured_main_1): Don't print new line after help.
7989 (print_gdb_help): add mailing list and IRC channel information
7990 to --help. Add new lines between items in the footer. Remove
7991 quotes around bug url.
7992
2f33032a
KS
79932020-06-11 Keith Seitz <keiths@redhat.com>
7994
7995 PR gdb/21356
7996 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7997 Resolve typedefs for type length calculations.
7998
7ab96794
TV
79992020-06-10 Tom de Vries <tdevries@suse.de>
8000
8001 PR ada/24713
8002 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8003 (write_psymbols): Enable .gdb_index for ada.
8004 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8005 ada.
8006
e5f3ece2
TV
80072020-06-10 Tom de Vries <tdevries@suse.de>
8008
8009 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8010 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8011 namei" instead of "const char *name" argument.
8012 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8013 dw2_symtab_iter_init.
8014
940da03e
SM
80152020-06-08 Simon Marchi <simon.marchi@efficios.com>
8016
8017 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8018 to use type::field and field::type instead.
8019
b6cdac4b
SM
80202020-06-08 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8023 to use field::type instead.
8024
5d14b6e5
SM
80252020-06-08 Simon Marchi <simon.marchi@efficios.com>
8026
8027 * gdbtypes.h (struct field) <type, set_type>: New methods.
8028 Rename `type` field to...
8029 <m_type>: ... this. Change references throughout to use type or
8030 set_type methods.
8031 (FIELD_TYPE): Use field::type. Change call sites that modify
8032 the field's type to use field::set_type instead.
8033
3d967001
SM
80342020-06-08 Simon Marchi <simon.marchi@efficios.com>
8035
8036 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8037 to use type::index_type instead.
8038
262abc0d
SM
80392020-06-08 Simon Marchi <simon.marchi@efficios.com>
8040
8041 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8042 methods.
8043 (TYPE_INDEX_TYPE): Use type::index_type.
8044 * gdbtypes.c (create_array_type_with_stride): Likewise.
8045
82836c92
TT
80462020-06-07 Tom Tromey <tom@tromey.com>
8047
8048 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8049 parameter.
8050 (generic_value_print): Update.
8051
940dace9
AB
80522020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8053
8054 Revert commit 982a38f60b0.
8055 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8056
982a38f6
AB
80572020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8058
8059 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8060 avoid use after free.
8061
82f06518
TV
80622020-06-05 Tom de Vries <tdevries@suse.de>
8063
8064 * NEWS: Fix typos.
8065
f8c41851
SM
80662020-06-04 Simon Marchi <simon.marchi@efficios.com>
8067
8068 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8069 the per_bfd object.
8070 (dwarf2_read_debug_names): Likewise.
8071 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8072 object when re-using a per_bfd object with an index.
8073
f9b5d5ea
TV
80742020-06-03 Tom de Vries <tdevries@suse.de>
8075
8076 PR symtab/26046
8077 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8078 children for C++.
8079 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8080 DW_TAG_subprogram.
8081
f6eee2d0
AB
80822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8083
8084 * ada-lang.c (ada_language_data): Delete skip_trampoline
8085 initializer.
8086 * c-lang.c (c_language_data): Likewise.
8087 (cplus_language_data): Likewise.
8088 (cplus_language::skip_trampoline): New member function.
8089 (asm_language_data): Delete skip_trampoline initializer.
8090 (minimal_language_data): Likewise.
8091 * d-lang.c (d_language_data): Likewise.
8092 * f-lang.c (f_language_data): Likewise.
8093 * go-lang.c (go_language_data): Likewise.
8094 * language.c (unk_lang_trampoline): Delete function.
8095 (skip_language_trampoline): Update.
8096 (unknown_language_data): Delete skip_trampoline initializer.
8097 (auto_language_data): Likewise.
8098 * language.h (language_data): Delete skip_trampoline field.
8099 (language_defn::skip_trampoline): New function.
8100 * m2-lang.c (m2_language_data): Delete skip_trampoline
8101 initializer.
8102 * objc-lang.c (objc_skip_trampoline): Delete function, move
8103 implementation to objc_language::skip_trampoline.
8104 (objc_language_data): Delete skip_trampoline initializer.
8105 (objc_language::skip_trampoline): New member function with
8106 implementation from objc_skip_trampoline.
8107 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8108 initializer.
8109 * p-lang.c (pascal_language_data): Likewise.
8110 * rust-lang.c (rust_language_data): Likewise.
8111
0a50df5d
AB
81122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8113
8114 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8115 (ada_language::demangle): New member function.
8116 * c-lang.c (c_language_data): Delete la_demangle initializer.
8117 (cplus_language_data): Delete la_demangle initializer.
8118 (cplus_language::demangle): New member function.
8119 (asm_language_data): Delete la_demangle initializer.
8120 (minimal_language_data): Delete la_demangle initializer.
8121 * d-lang.c (d_language_data): Delete la_demangle initializer.
8122 (d_language::demangle): New member function.
8123 * f-lang.c (f_language_data): Delete la_demangle initializer.
8124 (f_language::demangle): New member function.
8125 * go-lang.c (go_language_data): Delete la_demangle initializer.
8126 (go_language::demangle): New member function.
8127 * language.c (language_demangle): Update.
8128 (unk_lang_demangle): Delete.
8129 (unknown_language_data): Delete la_demangle initializer.
8130 (unknown_language::demangle): New member function.
8131 (auto_language_data): Delete la_demangle initializer.
8132 (auto_language::demangle): New member function.
8133 * language.h (language_data): Delete la_demangle field.
8134 (language_defn::demangle): New function.
8135 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8136 * objc-lang.c (objc_language_data): Delete la_demangle
8137 initializer.
8138 (objc_language::demangle): New member function.
8139 * opencl-lang.c (opencl_language_data): Delete la_demangle
8140 initializer.
8141 * p-lang.c (pascal_language_data): Likewise.
8142 * rust-lang.c (rust_language_data): Likewise.
8143 (rust_language::demangle): New member function.
8144
fbfb0a46
AB
81452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8146
8147 * ada-lang.c (ada_language_data): Delete la_print_type
8148 initializer.
8149 (ada_language::print_type): New member function.
8150 * c-lang.c (c_language_data): Delete la_print_type initializer.
8151 (c_language::print_type): New member function.
8152 (cplus_language_data): Delete la_print_type initializer.
8153 (cplus_language::print_type): New member function.
8154 (asm_language_data): Delete la_print_type initializer.
8155 (asm_language::print_type): New member function.
8156 (minimal_language_data): Delete la_print_type initializer.
8157 (minimal_language::print_type): New member function.
8158 * d-lang.c (d_language_data): Delete la_print_type initializer.
8159 (d_language::print_type): New member function.
8160 * f-lang.c (f_language_data): Delete la_print_type initializer.
8161 (f_language::print_type): New member function.
8162 * go-lang.c (go_language_data): Delete la_print_type initializer.
8163 (go_language::print_type): New member function.
8164 * language.c (unk_lang_print_type): Delete.
8165 (unknown_language_data): Delete la_print_type initializer.
8166 (unknown_language::print_type): New member function.
8167 (auto_language_data): Delete la_print_type initializer.
8168 (auto_language::print_type): New member function.
8169 * language.h (language_data): Delete la_print_type field.
8170 (language_defn::print_type): New function.
8171 (LA_PRINT_TYPE): Update.
8172 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8173 (m2_language::print_type): New member function.
8174 * objc-lang.c (objc_language_data): Delete la_print_type
8175 initializer.
8176 (objc_language::print_type): New member function.
8177 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8178 to opencl_language::print_type.
8179 (opencl_language_data): Delete la_print_type initializer.
8180 (opencl_language::print_type): New member function, implementation
8181 from opencl_print_type.
8182 * p-lang.c (pascal_language_data): Delete la_print_type
8183 initializer.
8184 (pascal_language::print_type): New member function.
8185 * rust-lang.c (rust_print_type): Delete, implementation moved to
8186 rust_language::print_type.
8187 (rust_language_data): Delete la_print_type initializer.
8188 (rust_language::print_type): New member function, implementation
8189 from rust_print_type.
8190
6f827019
AB
81912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8192
8193 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8194 implementation moves to...
8195 (ada_language::sniff_from_mangled_name): ...here. Update return
8196 type.
8197 (ada_language_data): Delete la_sniff_from_mangled_name
8198 initializer.
8199 * c-lang.c (c_language_data): Likewise.
8200 (cplus_language_data): Likewise.
8201 (cplus_language::sniff_from_mangled_name): New member function,
8202 implementation taken from gdb_sniff_from_mangled_name.
8203 (asm_language_data): Delete la_sniff_from_mangled_name
8204 initializer.
8205 (minimal_language_data): Likewise.
8206 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8207 implementation moves to cplus_language::sniff_from_mangled_name.
8208 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8209 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8210 moves to...
8211 (d_language::sniff_from_mangled_name): ...here.
8212 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8213 * f-lang.c (f_language_data): Likewise.
8214 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8215 moves to...
8216 (go_language::sniff_from_mangled_name): ...here.
8217 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8218 * language.c (language_sniff_from_mangled_name): Delete.
8219 (unknown_language_data): Delete la_sniff_from_mangled_name
8220 initializer.
8221 (auto_language_data): Likewise.
8222 * language.h (language_data): Delete la_sniff_from_mangled_name
8223 field.
8224 (language_defn::sniff_from_mangled_name): New function.
8225 (language_sniff_from_mangled_name): Delete declaration.
8226 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8227 field.
8228 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8229 implementation moves to...
8230 (objc_language::sniff_from_mangled_name): ...here.
8231 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8232 * opencl-lang.c (opencl_language_data): Likewise.
8233 * p-lang.c (pascal_language_data): Likewise.
8234 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8235 implementation moves to...
8236 (rust_language::sniff_from_mangled_name): ...here.
8237 (rust_language_data): Delete la_sniff_from_mangled_name
8238 initializer.
8239 * symtab.c (symbol_find_demangled_name): Call
8240 sniff_from_mangled_name member function.
8241
fb8006fd
AB
82422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8243
8244 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8245 initializer.
8246 * c-lang.c (c_language_data): Likewise.
8247 (cplus_language_data): Likewise.
8248 (cplus_language::search_name_hash): New member function.
8249 (asm_language_data): Delete la_search_name_hash initializer.
8250 (minimal_language_data): Likewise.
8251 * d-lang.c (d_language_data): Likewise.
8252 * dictionary.c (default_search_name_hash): Rename to...
8253 (language_defn::search_name_hash): ...this.
8254 * f-lang.c (f_language_data): Likewise.
8255 (f_language::search_name_hash): New member function.
8256 * go-lang.c (go_language_data): Delete la_search_name_hash
8257 initializer.
8258 * language.c (unknown_language_data): Likewise.
8259 (auto_language_data): Likewise.
8260 * language.h (struct language_data): Delete la_search_name_hash
8261 field.
8262 (language_defn::search_name_hash): Declare new member function.
8263 (default_search_name_hash): Delete declaration.
8264 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8265 initializer.
8266 * objc-lang.c (objc_language_data): Likewise.
8267 * opencl-lang.c (opencl_language_data): Likewise.
8268 * p-lang.c (pascal_language_data): Likewise.
8269 * rust-lang.c (rust_language_data): Likewise.
8270 * symtab.c (search_name_hash): Update call.
8271
8e25bafe
AB
82722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8273
8274 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8275 initializer.
8276 * c-lang.c (class compile_instance): Declare.
8277 (c_language_data): Delete la_get_compile_instance initializer.
8278 (c_language::get_compile_instance): New member function.
8279 (cplus_language_data): Delete la_get_compile_instance initializer.
8280 (cplus_language::get_compile_instance): New member function.
8281 (asm_language_data): Delete la_get_compile_instance initializer.
8282 (minimal_language_data): Likewise.
8283 * c-lang.h (c_get_compile_context): Update comment.
8284 (cplus_get_compile_context): Update comment.
8285 * compile/compile.c (compile_to_object): Update calls, don't rely
8286 on function pointer being NULL.
8287 * d-lang.c (d_language_data): Delete la_get_compile_instance
8288 initializer.
8289 * f-lang.c (f_language_data): Likewise.
8290 * go-lang.c (go_language_data): Likewise.
8291 * language.c (unknown_language_data): Likewise.
8292 (auto_language_data): Likewise.
8293 * language.h (language_data): Delete la_get_compile_instance field.
8294 (language_defn::get_compile_instance): New member function.
8295 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8296 initializer.
8297 * objc-lang.c (objc_language_data): Likewise.
8298 * opencl-lang.c (opencl_language_data): Likewise.
8299 * p-lang.c (pascal_language_data): Likewise.
8300 * rust-lang.c (rust_language_data): Likewise.
8301
4009ee92
AB
83022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8303
8304 * ada-lang.c (ada_add_all_symbols): Update comment.
8305 (ada_iterate_over_symbols): Delete, move implementation to...
8306 (ada_language::iterate_over_symbols): ...here, a new member
8307 function, rewrite to use range based for loop.
8308 (ada_language_data): Delete la_iterate_over_symbols initializer.
8309 * c-lang.c (c_language_data): Likewise.
8310 (cplus_language_data): Likewise.
8311 (asm_language_data): Likewise.
8312 (minimal_language_data): Likewise.
8313 * d-lang.c (d_language_data): Likewise.
8314 * f-lang.c (f_language_data): Likewise.
8315 * go-lang.c (go_language_data): Likewise.
8316 * language.c (unknown_language_data): Likewise.
8317 (auto_language_data): Likewise.
8318 * language.h (language_data): Delete la_iterate_over_symbols field.
8319 (language_defn::iterate_over_symbols): New member function.
8320 (LA_ITERATE_OVER_SYMBOLS): Update.
8321 * linespec.c (iterate_over_all_matching_symtabs): Update.
8322 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8323 initializer.
8324 * objc-lang.c (objc_language_data): Likewise.
8325 * opencl-lang.c (opencl_language_data): Likewise.
8326 * p-lang.c (pascal_language_data): Likewise.
8327 * rust-lang.c (rust_language_data): Likewise.
8328
54f4ca46
AB
83292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8330
8331 * ada-lang.c (ada_language_data): Delete
8332 la_lookup_transparent_type initializer.
8333 * c-lang.c (c_language_data): Likewise.
8334 (cplus_language_data): Likewise.
8335 (cplus_language::lookup_transparent_type): New member function.
8336 (asm_language_data): Delete la_lookup_transparent_type
8337 initializer.
8338 (minimal_language_data): Likewise.
8339 * d-lang.c (d_language_data): Likewise.
8340 * f-lang.c (f_language_data): Likewise.
8341 * go-lang.c (go_language_data): Likewise.
8342 * language.c (unknown_language_data): Likewise.
8343 (auto_language_data): Likewise.
8344 * language.h (struct language_data): Delete
8345 la_lookup_transparent_type field.
8346 (language_defn::lookup_transparent_type): New member function.
8347 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8348 initializer.
8349 * objc-lang.c (objc_language_data): Likewise.
8350 * opencl-lang.c (opencl_language_data): Likewise.
8351 * p-lang.c (pascal_language_data): Likewise.
8352 * rust-lang.c (rust_language_data): Likewise.
8353 * symtab.c (symbol_matches_domain): Update call.
8354
1fb314aa
AB
83552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8356
8357 * ada-lang.c (ada_language_arch_info): Delete function, move
8358 implementation to...
8359 (ada_language::language_arch_info): ...here, a new member
8360 function.
8361 (ada_language_data): Delete la_language_arch_info.
8362 * c-lang.c (c_language_data): Likewise.
8363 (c_language::language_arch_info): New member function.
8364 (cplus_language_arch_info): Delete function, move
8365 implementation to...
8366 (cplus_language::language_arch_info): ...here, a new member
8367 function.
8368 (cplus_language_data): Delete la_language_arch_info.
8369 (asm_language_data): Likewise.
8370 (asm_language::language_arch_info): New member function.
8371 (minimal_language_data): Delete la_language_arch_info.
8372 (minimal_language::language_arch_info): New member function.
8373 * d-lang.c (d_language_arch_info): Delete function, move
8374 implementation to...
8375 (d_language::language_arch_info): ...here, a new member
8376 function.
8377 (d_language_data): Delete la_language_arch_info.
8378 * f-lang.c (f_language_arch_info): Delete function, move
8379 implementation to...
8380 (f_language::language_arch_info): ...here, a new member
8381 function.
8382 (f_language_data): Delete la_language_arch_info.
8383 * go-lang.c (go_language_arch_info): Delete function, move
8384 implementation to...
8385 (go_language::language_arch_info): ...here, a new member
8386 function.
8387 (go_language_data): Delete la_language_arch_info.
8388 * language.c (unknown_language_data): Likewise.
8389 (unknown_language::language_arch_info): New member function.
8390 (auto_language_data): Delete la_language_arch_info.
8391 (auto_language::language_arch_info): New member function.
8392 (language_gdbarch_post_init): Update call to
8393 la_language_arch_info.
8394 * language.h (language_data): Delete la_language_arch_info
8395 function pointer.
8396 (language_defn::language_arch_info): New function.
8397 * m2-lang.c (m2_language_arch_info): Delete function, move
8398 implementation to...
8399 (m2_language::language_arch_info): ...here, a new member
8400 function.
8401 (m2_language_data): Delete la_language_arch_info.
8402 * objc-lang.c (objc_language_arch_info): Delete function, move
8403 implementation to...
8404 (objc_language::language_arch_info): ...here, a new member
8405 function.
8406 (objc_language_data): Delete la_language_arch_info.
8407 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8408 implementation to...
8409 (opencl_language::language_arch_info): ...here, a new member
8410 function.
8411 (opencl_language_data): Delete la_language_arch_info.
8412 * p-lang.c (pascal_language_arch_info): Delete function, move
8413 implementation to...
8414 (pascal_language::language_arch_info): ...here, a new member
8415 function.
8416 (pascal_language_data): Delete la_language_arch_info.
8417 * rust-lang.c (rust_language_arch_info): Delete function, move
8418 implementation to...
8419 (rust_language::language_arch_info): ...here, a new member
8420 function.
8421 (rust_language_data): Delete la_language_arch_info.
8422
48448202
AB
84232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8424
8425 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8426 initializer.
8427 * c-lang.c (c_language_data): Likewise.
8428 (cplus_language_data): Likewise.
8429 (cplus_language::pass_by_reference_info): New method.
8430 (asm_language_data): Delete la_pass_by_reference initializer.
8431 (minimal_language_data): Likewise.
8432 * cp-abi.c (cp_pass_by_reference): Remove use of
8433 default_pass_by_reference.
8434 * d-lang.c (d_language_data): Likewise.
8435 * f-lang.c (f_language_data): Likewise.
8436 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8437 default_pass_by_reference.
8438 * go-lang.c (go_language_data): Likewise.
8439 * language.c (language_pass_by_reference): Update.
8440 (default_pass_by_reference): Delete.
8441 (unknown_language_data): Delete la_pass_by_reference
8442 initializer.
8443 (auto_language_data): Likewise.
8444 * language.h (struct language_data): Delete la_pass_by_reference
8445 field.
8446 (language_defn::pass_by_reference_info): New member function.
8447 (default_pass_by_reference): Delete declaration.
8448 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8449 initializer.
8450 * objc-lang.c (objc_language_data): Likewise.
8451 * opencl-lang.c (opencl_language_data): Likewise.
8452 * p-lang.c (pascal_language_data): Likewise.
8453 * rust-lang.c (rust_language_data): Likewise.
8454
15e5fd35
AB
84552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8456
8457 * ada-lang.c (ada_read_var_value): Delete function, move
8458 implementation to...
8459 (ada_language::read_var_value): ...here.
8460 (ada_language_data): Delete la_read_var_value initializer.
8461 * c-lang.c (c_language_data): Likewise.
8462 (cplus_language_data): Likewise.
8463 (minimal_language_data): Likewise.
8464 * d-lang.c (d_language_data): Likewise.
8465 * f-lang.c (f_language_data): Likewise.
8466 * findvar.c (default_read_var_value): Rename to...
8467 (language_defn::read_var_value): ...this.
8468 * findvar.c (read_var_value): Update header comment, and change to
8469 call member function instead of function pointer.
8470 * go-lang.c (go_language_data): Likewise.
8471 * language.c (unknown_language_data): Delete la_read_var_value
8472 initializer.
8473 (auto_language_data): Likewise.
8474 * language.h (struct language_data): Delete la_read_var_value
8475 field.
8476 (language_defn::read_var_value): New member function.
8477 (default_read_var_value): Delete declaration.
8478 * m2-lang.c (m2_language_data): Delete la_read_var_value
8479 initializer.
8480 * objc-lang.c (objc_language_data): Likewise.
8481 * opencl-lang.c (opencl_language_data): Likewise.
8482 * p-lang.c (pascal_language_data): Likewise.
8483 * rust-lang.c (rust_language_data): Likewise.
8484 * value.h (default_read_var_value): Delete declaration.
8485
5bd40f2a
AB
84862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8487
8488 * ada-lang.c (ada_print_array_index): Delete function, move
8489 implementation to...
8490 (ada_language::print_array_index): ...here.
8491 (ada_language_data): Delete la_print_array_index initializer.
8492 * c-lang.c (c_language_data): Likewise.
8493 (cplus_language_data): Likewise.
8494 (minimal_language_data): Likewise.
8495 * d-lang.c (d_language_data): Likewise.
8496 * f-lang.c (f_language_data): Likewise.
8497 * go-lang.c (go_language_data): Likewise.
8498 * language.c (default_print_array_index): Delete function, move
8499 implementation to...
8500 (language_defn::print_array_index): ...here.
8501 (unknown_language_data): Delete la_print_array_index initializer.
8502 (auto_language_data): Likewise.
8503 * language.h (struct language_data): Delete la_print_array_index
8504 field.
8505 (language_defn::print_array_index): New member function.
8506 (LA_PRINT_ARRAY_INDEX): Update.
8507 (default_print_array_index): Delete declaration.
8508 * m2-lang.c (m2_language_data): Delete la_print_array_index
8509 initializer.
8510 * objc-lang.c (objc_language_data): Likewise.
8511 * opencl-lang.c (opencl_language_data): Likewise.
8512 * p-lang.c (pascal_language_data): Likewise.
8513 * rust-lang.c (rust_language_data): Likewise.
8514
0874fd07
AB
85152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8516
8517 * gdb/ada-lang.c (ada_language_defn): Convert to...
8518 (ada_language_data): ...this.
8519 (class ada_language): New class.
8520 (ada_language_defn): New static global.
8521 * gdb/c-lang.c (c_language_defn): Convert to...
8522 (c_language_data): ...this.
8523 (class c_language): New class.
8524 (c_language_defn): New static global.
8525 (cplus_language_defn): Convert to...
8526 (cplus_language_data): ...this.
8527 (class cplus_language): New class.
8528 (cplus_language_defn): New static global.
8529 (asm_language_defn): Convert to...
8530 (asm_language_data): ...this.
8531 (class asm_language): New class.
8532 (asm_language_defn): New static global.
8533 (minimal_language_defn): Convert to...
8534 (minimal_language_data): ...this.
8535 (class minimal_language): New class.
8536 (minimal_language_defn): New static global.
8537 * gdb/d-lang.c (d_language_defn): Convert to...
8538 (d_language_data): ...this.
8539 (class d_language): New class.
8540 (d_language_defn): New static global.
8541 * gdb/f-lang.c (f_language_defn): Convert to...
8542 (f_language_data): ...this.
8543 (class f_language): New class.
8544 (f_language_defn): New static global.
8545 * gdb/go-lang.c (go_language_defn): Convert to...
8546 (go_language_data): ...this.
8547 (class go_language): New class.
8548 (go_language_defn): New static global.
8549 * gdb/language.c (unknown_language_defn): Remove declaration.
8550 (current_language): Initialize to nullptr, real initialization is
8551 moved to _initialize_language.
8552 (languages): Delete global.
8553 (language_defn::languages): Define.
8554 (set_language_command): Use language_defn::languages.
8555 (set_language): Likewise.
8556 (range_error): Likewise.
8557 (language_enum): Likewise.
8558 (language_def): Likewise.
8559 (add_set_language_command): Use language_def::languages for the
8560 language list, and language_def to lookup language pointers.
8561 (skip_language_trampoline): Use language_defn::languages.
8562 (unknown_language_defn): Convert to...
8563 (unknown_language_data): ...this.
8564 (class unknown_language): New class.
8565 (unknown_language_defn): New static global.
8566 (auto_language_defn): Convert to...
8567 (auto_language_data): ...this.
8568 (class auto_language): New class.
8569 (auto_language_defn): New static global.
8570 (language_gdbarch_post_init): Use language_defn::languages.
8571 (_initialize_language): Initialize current_language.
8572 * gdb/language.h (struct language_defn): Rename to...
8573 (struct language_data): ...this.
8574 (struct language_defn): New.
8575 (auto_language_defn): Delete.
8576 (unknown_language_defn): Delete.
8577 (minimal_language_defn): Delete.
8578 (ada_language_defn): Delete.
8579 (asm_language_defn): Delete.
8580 (c_language_defn): Delete.
8581 (cplus_language_defn): Delete.
8582 (d_language_defn): Delete.
8583 (f_language_defn): Delete.
8584 (go_language_defn): Delete.
8585 (m2_language_defn): Delete.
8586 (objc_language_defn): Delete.
8587 (opencl_language_defn): Delete.
8588 (pascal_language_defn): Delete.
8589 (rust_language_defn): Delete.
8590 * gdb/m2-lang.c (m2_language_defn): Convert to...
8591 (m2_language_data): ...this.
8592 (class m2_language): New class.
8593 (m2_language_defn): New static global.
8594 * gdb/objc-lang.c (objc_language_defn): Convert to...
8595 (objc_language_data): ...this.
8596 (class objc_language): New class.
8597 (objc_language_defn): New static global.
8598 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8599 (opencl_language_data): ...this.
8600 (class opencl_language): New class.
8601 (opencl_language_defn): New static global.
8602 * gdb/p-lang.c (pascal_language_defn): Convert to...
8603 (pascal_language_data): ...this.
8604 (class pascal_language): New class.
8605 (pascal_language_defn): New static global.
8606 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8607 language pointer, update comment format.
8608 * gdb/rust-lang.c (rust_language_defn): Convert to...
8609 (rust_language_data): ...this.
8610 (class rust_language): New class.
8611 (rust_language_defn): New static global.
8612
1313c56e
AB
86132020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8614
8615 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8616 member variable.
8617 <m_stmt_at_address>: New member variable.
8618 (lnp_state_machine::record_line): Don't record some lines, update
8619 tracking of is_stmt at the same address.
8620 (lnp_state_machine::lnp_state_machine): Initialise new member
8621 variables.
8622
b7ed9f3d
ST
86232020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8624
8625 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8626 "-include gnu-nat-mig.h".
8627 * gnu-nat-mig.h: New file.
8628 * gnu-nat.c: Include "gnu-nat-mig.h".
8629 (exc_server, msg_reply_server, notify_server,
8630 process_reply_server): Remove declarations.
8631
14a8ad62
ST
86322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8633
8634 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8635 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8636 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8637 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8638 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8639 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8640 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8641 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8642 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8643 to gnu_nat_target class.
8644 * gnu-nat.c: Likewise.
8645 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8646 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8647 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8648 object.
8649 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8650 instead of `gnu_target'.
8651
0af5e106
ST
86522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8653
8654 * i386-gnu-tdep.c: Include "gdbcore.h"
8655 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8656 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8657 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8658 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8659 i386_gnu_sigcontext_addr): New functions
8660 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8661 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8662 tdep.
8663
078f2fc9
ST
86642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8665
8666 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8667 before fork_inferior call. Avoid calling it if target_is_pushed returns
8668 true.
8669
53dff92c
ST
86702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8671
8672 * gnu-nat.h (gnu_target): New variable declaration.
8673 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8674 gnu_target.
8675 * gnu-nat.c (gnu_target): New variable.
8676 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8677 add_thread_silent, and add_thread calls.
8678 (gnu_nat_target::create_inferior): Pass gnu_target to
8679 add_thread_silent, thread_change_ptid call.
8680 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8681 call.
8682
5a8b8627
ST
86832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8684
8685 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8686 (gnu_nat_target::find_memory_regions): Remove unused
8687 `old_address' variable.
8688
366f550a
ST
86892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8690
8691 * gnu-nat.c: Include "gdbarch.h".
8692
f14871bf
ST
86932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8694
8695 * reply_mig_hack.awk (Error return): Cast function through
8696 void *, to bypass compiler function call check.
8697
c6887cfb
ST
86982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8699
8700 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8701 $(srcdir)/reply_mig_hack.awk.
8702
6930bffe
ST
87032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8704
8705 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8706
112c22ed
JG
87072020-05-30 Jonny Grant <jg@jguk.org>
8708
8709 * configure.ac (ACX_BUGURL): change bug URL to https.
8710
f68f85b5
PA
87112020-05-30 Pedro Alves <palves@redhat.com>
8712
8713 * cp-support.c (replace_typedefs_template): New.
8714 (replace_typedefs_qualified_name): Handle
8715 DEMANGLE_COMPONENT_TEMPLATE.
8716
976ca316
SM
87172020-05-29 Simon Marchi <simon.marchi@efficios.com>
8718
8719 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8720 dwarf2/index-cache.h, dwarf2/index-write.c,
8721 dwarf2/index-write.h, dwarf2/line-header.c,
8722 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8723 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8724 variables and fields from `dwarf2_per_objfile` to just
8725 `per_objfile` throughout.
8726
989ade05
SM
87272020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8728
8729 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8730 <push_dwarf_reg_entry_value>: Add comment.
8731
c47bae85
KB
87322020-05-28 Kevin Buettner <kevinb@redhat.com>
8733 Keith Seitz <keiths@redhat.com>
8734
8735 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8736 instead of PyEval_ReleaseLock.
8737 (class gdbpy_gil): Move to earlier in file.
8738 (finalize_python): Set gdb_python_initialized.
8739 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8740 when not initialized.
8741
44486dcf
SM
87422020-05-28 Simon Marchi <simon.marchi@efficios.com>
8743
8744 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8745 <push_dwarf_reg_entry_value>: Remove assert. Override
8746 per_objfile with caller_per_objfile.
8747
f030440d
TV
87482020-05-28 Tom de Vries <tdevries@suse.de>
8749
8750 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8751 PR gold/15646 workaround to symbol kind "type".
8752
f0fbb768
TT
87532020-05-27 Tom Tromey <tromey@adacore.com>
8754
8755 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8756
af0b2a3e
TT
87572020-05-27 Tom Tromey <tromey@adacore.com>
8758
8759 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8760 Use htab_find_with_hash.
8761 <add_abbrev>: Remove "abbrev_number" parameter.
8762 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8763 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8764 (hash_abbrev): Add comment.
8765 (abbrev_table::lookup_abbrev): Move to header file.
8766 (abbrev_table::read): Update.
8767
7d00ffec
TT
87682020-05-27 Tom Tromey <tromey@adacore.com>
8769
8770 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8771 method.
8772 <canonical_name>: New member.
8773 <raw_name>: Rename from "name".
8774 (partial_die_info): Initialize canonical_name.
8775 (scan_partial_symbols): Check raw_name.
8776 (partial_die_parent_scope, partial_die_full_name)
8777 (add_partial_symbol, add_partial_subprogram)
8778 (add_partial_enumeration, load_partial_dies): Use "name" method.
8779 (partial_die_info::name): New method.
8780 (partial_die_info::read, guess_partial_die_structure_name)
8781 (partial_die_info::fixup): Update.
8782
697bba18
TT
87832020-05-27 Tom Tromey <tromey@adacore.com>
8784
8785 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8786 <get_ref_die_offset>: Inline.
8787 <get_ref_die_offset_complaint>: New method.
8788 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8789 (attribute::get_ref_die_offset_complaint): Rename from
8790 get_ref_die_offset. Just issue complaint.
8791
c17ace43
HD
87922020-05-27 Hannes Domani <ssbssa@yahoo.de>
8793
8794 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8795
96445f0b
HD
87962020-05-27 Hannes Domani <ssbssa@yahoo.de>
8797
8798 * exec.c (exec_file_attach): Use errno value of first openp failure.
8799
ac637ec3
HD
88002020-05-27 Hannes Domani <ssbssa@yahoo.de>
8801
8802 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8803 Don't close thread handle.
8804
17ee85fc
TT
88052020-05-27 Tom Tromey <tom@tromey.com>
8806 Simon Marchi <simon.marchi@efficios.com>
8807
8808 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8809 shared_ptr.
8810 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8811 member.
8812 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8813 dwarf2_per_bfd_objfile_data_key>: New globals.
8814 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8815 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8816 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8817 shared.
8818 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8819 short-circuit when sharing.
8820 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8821 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8822
39b16f87
SM
88232020-05-27 Simon Marchi <simon.marchi@efficios.com>
8824
8825 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8826 to...
8827 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8828 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8829
fcf23d5b
SM
88302020-05-27 Simon Marchi <simon.marchi@efficios.com>
8831
8832 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8833 build_name_components, find_name_components_bounds>:
8834 Add per_objfile parameter.
8835 (struct mapped_index) <symbol_name_at>: Likewise.
8836 (struct mapped_debug_names): Remove constructor.
8837 <dwarf2_per_objfile>: Remove field.
8838 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8839 (mapped_index_base::find_name_components_bounds,
8840 mapped_index_base::build_name_components,
8841 dw2_expand_symtabs_matching_symbol): Likewise.
8842 (class mock_mapped_index) <symbol_name_at>: Likewise.
8843 (check_match): Likewise.
8844 (check_find_bounds_finds): Likewise.
8845 (test_mapped_index_find_name_component_bounds): Update.
8846 (CHECK_MATCH): Update.
8847 (dw2_expand_symtabs_matching): Update.
8848 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8849 per_objfile parameter.
8850 <find_vec_in_debug_names>: Likewise.
8851 <m_per_objfile>: New field.
8852 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8853 parameter.
8854 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8855 (dw2_debug_names_iterator::next): Update.
8856 (dw2_debug_names_lookup_symbol): Update.
8857 (dw2_debug_names_expand_symtabs_for_function): Update.
8858 (dw2_debug_names_map_matching_symbols): Update.
8859 (dw2_debug_names_expand_symtabs_matching): Update.
8860 (dwarf2_read_debug_names): Update.
8861
7188ed02
SM
88622020-05-27 Simon Marchi <simon.marchi@efficios.com>
8863
8864 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8865 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8866 move to dwarf2_per_objfile.
8867 <read_in_chain>: Remove.
8868 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8869 remove_all_cus, age_comp_units>: New methods.
8870 <m_dwarf2_cus>: New member.
8871 (struct dwarf2_per_cu_data) <cu>: Remove.
8872 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8873 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8874 moved to methods of dwarf2_per_objfile.
8875 (dwarf2_clear_marks): Remove.
8876 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8877 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8878 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8879 (dwarf2_per_objfile::remove_all_cus): New.
8880 (class free_cached_comp_units) <~free_cached_comp_units>:
8881 Update.
8882 (load_cu): Update.
8883 (dw2_do_instantiate_symtab): Adjust.
8884 (fill_in_sig_entry_from_dwo_entry): Adjust.
8885 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8886 (cutu_reader::cutu_reader): Likewise.
8887 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8888 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8889 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8890 and dwarf2_per_objfile::age_comp_units.
8891 (load_partial_comp_unit): Update.
8892 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8893 (process_queue): Likewise.
8894 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8895 backlink.
8896 (dwarf2_read_addr_index): Likewise.
8897 (follow_die_offset): Likewise.
8898 (dwarf2_fetch_die_loc_sect_off): Likewise.
8899 (dwarf2_fetch_constant_bytes): Likewise.
8900 (dwarf2_fetch_die_type_sect_off): Likewise.
8901 (follow_die_sig_1): Likewise.
8902 (load_full_type_unit): Likewise.
8903 (read_signatured_type): Likewise.
8904 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8905 (dwarf2_cu::~dwarf2_cu): Remove.
8906 (dwarf2_per_objfile::get_cu): New.
8907 (dwarf2_per_objfile::set_cu): New.
8908 (age_cached_comp_units): Rename to...
8909 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8910 to std::unordered_map.
8911 (free_one_cached_comp_unit): Rename to...
8912 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8913 to std::unordered_map.
8914 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8915 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8916 a dwarf2_per_objfile in data.
8917 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8918 (dwarf2_clear_marks): Remove.
8919
2e671100
SM
89202020-05-27 Simon Marchi <simon.marchi@efficios.com>
8921
8922 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8923 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8924 (init_tu_and_read_dwo_dies): Likewise.
8925 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8926 (cutu_reader::cutu_reader): Likewise.
8927 (load_partial_comp_unit): Likewise.
8928 (process_psymtab_comp_unit): Update.
8929 (build_type_psymtabs_1): Update.
8930 (process_skeletonless_type_unit): Update.
8931 (load_full_comp_unit): Update.
8932 (find_partial_die): Update.
8933 (dwarf2_read_addr_index): Update.
8934 (read_signatured_type): Update.
8935
2e6a9f79
SM
89362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8937
8938 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8939 m_header_read_in>: New fields.
8940 <get_header>: New method.
8941 * dwarf2/read.c (per_cu_header_read_in): Remove.
8942 (dwarf2_per_cu_data::get_header): New.
8943 (dwarf2_per_cu_data::addr_size): Update.
8944 (dwarf2_per_cu_data::offset_size): Update.
8945 (dwarf2_per_cu_data::ref_addr_size): Update.
8946
1b555f17
SM
89472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8948
8949 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8950 (dw2_do_instantiate_symtab): Update.
8951 (queue_and_load_all_dwo_tus): Change parameter from
8952 dwarf2_per_cu_data to dwarf2_cu.
8953 (dwarf2_fetch_die_loc_sect_off): Update.
8954 (dwarf2_fetch_constant_bytes): Update.
8955 (dwarf2_fetch_die_type_sect_off): Update.
8956
8fc0b21d
SM
89572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8958
8959 * dwarf2/read.c (process_full_comp_unit,
8960 process_full_type_unit): Remove per_cu, per_objfile paramters.
8961 Add dwarf2_cu parameter.
8962 (process_queue): Update.
8963
168c9250
SM
89642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8965
8966 * dwarf2/read.c (create_cu_from_index_list): Replace
8967 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8968 (create_cus_from_index_list): Likewise.
8969 (create_cus_from_index): Likewise.
8970 (create_signatured_type_table_from_index): Likewise.
8971 (create_cus_from_debug_names_list): Likewise.
8972 (create_cus_from_debug_names): Likewise.
8973 (dwarf2_read_gdb_index): Update.
8974 (dwarf2_read_debug_names): Update.
8975
e286671b
TT
89762020-05-27 Tom Tromey <tom@tromey.com>
8977 Simon Marchi <simon.marchi@efficios.com>
8978
8979 * dwarf2/read.h (struct dwarf2_per_objfile)
8980 <get_type_for_signatured_type, set_type_for_signatured_type>:
8981 New methods.
8982 <m_type_map>: New member.
8983 (struct signatured_type) <type>: Remove.
8984 * dwarf2/read.c
8985 (dwarf2_per_objfile::get_type_for_signatured_type,
8986 dwarf2_per_objfile::set_type_for_signatured_type): New.
8987 (get_signatured_type): Use new methods.
8988
8adb8487
TT
89892020-05-27 Tom Tromey <tom@tromey.com>
8990 Simon Marchi <simon.marchi@efficios.com>
8991
8992 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8993 (struct dwarf2_per_objfile) <type_units>: New member.
8994 <get_type_unit_group_unshareable>: New method.
8995 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8996 num_symtabs, symtabs>: Remove; move to
8997 type_unit_group_unshareable.
8998 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8999 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9000 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9001
127bbf4b
SM
90022020-05-27 Simon Marchi <simon.marchi@efficios.com>
9003
9004 * dwarf2/read.h (struct dwarf2_per_cu_data):
9005 <dwarf2_per_objfile>: Remove.
9006 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9007 dwarf2_per_objfile.
9008 (create_signatured_type_table_from_index): Likewise.
9009 (create_signatured_type_table_from_debug_names): Likewise.
9010 (create_debug_type_hash_table): Likewise.
9011 (fill_in_sig_entry_from_dwo_entry): Likewise.
9012 (create_type_unit_group): Likewise.
9013 (read_comp_units_from_section): Likewise.
9014 (create_cus_hash_table): Likewise.
9015
f6e649dd
SM
90162020-05-27 Simon Marchi <simon.marchi@efficios.com>
9017
9018 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9019 dwarf2_per_cu_data::dwarf2_per_objfile.
9020 (compute_compunit_symtab_includes): Likewise.
9021 (dwarf2_cu::start_symtab): Likewise.
9022
aa66c379
SM
90232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9024
9025 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9026 parameter.
9027 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9028 (read_namespace_alias): Update.
9029 (lookup_die_type): Update.
9030 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9031 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9032 Update.
9033 (disassemble_dwarf_expression): Update.
9034
120ce1b5
SM
90352020-05-27 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * dwarf2/read.h (struct dwarf2_queue_item): Add
9038 dwarf2_per_objfile parameter, assign new parameter.
9039 <per_objfile>: New field.
9040 * dwarf2/read.c (free_one_cached_comp_unit): Add
9041 dwarf2_per_objfile parameter.
9042 (queue_comp_unit): Likewise.
9043 (dw2_do_instantiate_symtab): Update.
9044 (process_psymtab_comp_unit): Update.
9045 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9046 (process_imported_unit_die): Update.
9047 (queue_and_load_dwo_tu): Update.
9048 (follow_die_offset): Update.
9049 (follow_die_sig_1): Update.
9050
9f47c707
SM
90512020-05-27 Simon Marchi <simon.marchi@efficios.com>
9052
9053 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9054 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9055 (read_call_site_scope): Assign per_objfile.
9056 (dwarf2_per_cu_data::objfile): Remove.
9057 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9058 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9059 dwarf2_per_objfile parameter.
9060 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9061 dwarf2_per_objfile parameter.
9062 (dwarf_expr_reg_to_entry_parameter): Add output
9063 dwarf2_per_objfile parameter.
9064 (locexpr_get_frame_base): Update.
9065 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9066 <push_dwarf_reg_entry_value>: Update.
9067 <call_site_to_target_addr>: Update.
9068 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9069 parameter.
9070 (value_of_dwarf_reg_entry): Update.
9071 (rw_pieced_value): Update.
9072 (indirect_synthetic_pointer): Update.
9073 (dwarf2_evaluate_property): Update.
9074 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9075 parameter.
9076 (locexpr_read_variable): Update.
9077 (locexpr_get_symbol_read_needs): Update.
9078 (loclist_read_variable): Update.
9079
14095eb3
SM
90802020-05-27 Simon Marchi <simon.marchi@efficios.com>
9081
9082 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9083 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9084 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9085 parameter.
9086 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9087 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9088 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9089 parameter.
9090 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9091 sect_variable_value): Add dwarf2_per_objfile parameter.
9092 (class dwarf_evaluate_loc_desc) <dwarf_call,
9093 dwarf_variable_value>: Update.
9094 (fetch_const_value_from_synthetic_pointer): Add
9095 dwarf2_per_objfile parameter.
9096 (fetch_const_value_from_synthetic_pointer): Update.
9097 (coerced_pieced_ref): Update.
9098 (class symbol_needs_eval_context) <dwarf_call,
9099 dwarf_variable_value>: Update.
9100 (dwarf2_compile_expr_to_ax): Update.
9101
3c3cd3d4
SM
91022020-05-27 Simon Marchi <simon.marchi@efficios.com>
9103
9104 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9105 parameter.
9106 (dwarf2_evaluate_loc_desc_full): Update.
9107
82ca3f51
SM
91082020-05-27 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9111 parameter.
9112 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9113 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9114 dwarf2_per_objfile parameter.
9115 (decode_debug_loc_dwo_addresses): Likewise.
9116 (dwarf2_find_location_expression): Update.
9117 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9118 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9119 parameter.
9120 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9121 parameter.
9122 (locexpr_describe_location_1): Likewise.
9123 (locexpr_describe_location): Update.
9124
4b167ea1
SM
91252020-05-27 Simon Marchi <simon.marchi@efficios.com>
9126
9127 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9128 Remove.
9129 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9130 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9131 (dwarf2_compile_property_to_c): Update.
9132 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9133 use text offset from objfile.
9134 (locexpr_tracepoint_var_ref): Update.
9135 (locexpr_generate_c_location): Update.
9136 (loclist_describe_location): Update.
9137 (loclist_tracepoint_var_ref): Update.
9138 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9139 dwarf2_per_objfile parameter.
9140 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9141 use text offset from objfile.
9142 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9143
89b07335
SM
91442020-05-27 Simon Marchi <simon.marchi@efficios.com>
9145
9146 * dwarf2/expr.h (struct dwarf_expr_context)
9147 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9148 <offset>: Remove.
9149 <per_objfile>: New member.
9150 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9151 dwarf2_per_objfile parameter. Don't set offset, set
9152 per_objfile.
9153 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9154 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9155 a dwarf2_per_objfile object instead of an offset.
9156 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9157 constructor.
9158 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9159 to dwarf2_expr_executor constructor. Don't set offset.
9160 (dwarf2_fetch_cfa_info): Update.
9161 (struct dwarf2_frame_cache) <text_offset>: Remove.
9162 <per_objfile>: New field.
9163 (dwarf2_frame_cache): Update.
9164 (dwarf2_frame_prev_register): Update.
9165 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9166 <dwarf_evaluate_loc_desc>: Add constructor.
9167 (dwarf2_evaluate_loc_desc_full): Update.
9168 (dwarf2_locexpr_baton_eval): Update.
9169 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9170 Add constructor.
9171 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9172
293e7e51
SM
91732020-05-27 Simon Marchi <simon.marchi@efficios.com>
9174
9175 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9176 addr_sized_int_type>: Move to dwarf2_cu.
9177 <int_type>: Move to dwarf2_per_objfile.
9178 (struct dwarf2_per_objfile) <int_type>: Move here.
9179 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9180 addr_sized_int_type>: Move here.
9181 (read_func_scope): Update.
9182 (read_array_type): Update.
9183 (read_tag_string_type): Update.
9184 (attr_to_dynamic_prop): Update.
9185 (dwarf2_per_cu_data::int_type): Rename to...
9186 (dwarf2_per_objfile::int_type): ... this.
9187 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9188 (dwarf2_cu::addr_sized_int_type): ... this.
9189 (read_subrange_type): Update.
9190 (dwarf2_per_cu_data::addr_type): Rename to...
9191 (dwarf2_cu::addr_type): ... this.
9192 (set_die_type): Update.
9193
64874a40
SM
91942020-05-27 Simon Marchi <simon.marchi@efficios.com>
9195
9196 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9197 data through per_cu->cu.
9198
4ab09049
SM
91992020-05-27 Simon Marchi <simon.marchi@efficios.com>
9200
9201 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9202 dwarf2_per_cu_data parameter fo dwarf2_cu.
9203 (lookup_dwo_type_unit): Likewise.
9204 (read_cutu_die_from_dwo): Likewise.
9205 (lookup_dwo_unit): Likewise.
9206 (open_and_init_dwo_file): Likewise.
9207 (lookup_dwo_cutu): Likewise.
9208 (lookup_dwo_comp_unit): Likewise.
9209 (lookup_dwo_type_unit): Likewise.
9210 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9211 (cutu_reader::cutu_reader): Update.
9212
47b14e86
SM
92132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9214
9215 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9216 parameter.
9217 (process_full_type_unit): Likewise.
9218 (process_queue): Update.
9219
43182c09
SM
92202020-05-27 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * dwarf2/read.c (recursively_compute_inclusions): Add
9223 dwarf2_per_objfile parameter.
9224 (compute_compunit_symtab_includes): Likewise.
9225 (process_cu_includes): Update.
9226
7aa104c4
SM
92272020-05-27 Simon Marchi <simon.marchi@efficios.com>
9228
9229 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9230 parameter.
9231 (create_type_unit_group): Update.
9232 (process_psymtab_comp_unit_reader): Update.
9233 (build_type_psymtabs_reader): Update.
9234
e3beb21d
SM
92352020-05-27 Simon Marchi <simon.marchi@efficios.com>
9236
9237 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9238 object through m_this_cu->cu.
9239
d460f660
SM
92402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9241
9242 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9243 the info parameter.
9244 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9245
ab432490
SM
92462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9247
9248 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9249 per_objfile parameter.
9250 (load_full_type_unit): Add per_objfile parameter.
9251 (read_signatured_type): Likewise.
9252 (load_full_comp_unit): Likewise.
9253 (load_cu): Likewise.
9254 (dw2_do_instantiate_symtab): Likewise.
9255 (dw2_get_file_names): Likewise.
9256 (dw2_map_symtabs_matching_filename): Update.
9257 (dw_expand_symtabs_matching_file_matcher): Update.
9258 (dw2_map_symbol_filenames): Update.
9259 (process_psymtab_comp_unit): Add per_objfile parameter.
9260 (build_type_psymtabs_1): Update.
9261 (process_skeletonless_type_unit): Update.
9262 (dwarf2_build_psymtabs_hard): Update.
9263 (load_partial_comp_unit): Add per_objfile parameter.
9264 (scan_partial_symbols): Update.
9265 (load_full_comp_unit): Add per_objfile parameter.
9266 (process_imported_unit_die): Update.
9267 (create_cus_hash_table): Update.
9268 (find_partial_die): Update.
9269 (dwarf2_read_addr_index): Update.
9270 (follow_die_offset): Update.
9271 (dwarf2_fetch_die_loc_sect_off): Update.
9272 (dwarf2_fetch_constant_bytes): Update.
9273 (dwarf2_fetch_die_type_sect_off): Update.
9274 (follow_die_sig_1): Update.
9275 (load_full_type_unit): Add per_objfile parameter.
9276 (read_signatured_type): Likewise.
9277
313bad1b
SM
92782020-05-27 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9281 of objfile_name.
9282
c3699833
SM
92832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9284
9285 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9286 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9287 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9288 field.
9289 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9290 (create_cus_from_index): Update.
9291 (dwarf2_read_gdb_index): Update.
9292 (create_cus_from_debug_names): Update.
9293 (dwarf2_read_debug_names): Update.
9294 (get_abbrev_section_for_cu): Update.
9295 (create_all_comp_units): Update.
9296 (read_attribute_value): Update.
9297 (get_debug_line_section): Update.
9298 * dwarf2/index-cache.c (index_cache::store): Update.
9299 * dwarf2/index-write.c (save_gdb_index_command): Update.
9300 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9301
1859c670
SM
93022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9303
9304 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9305 member.
9306 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9307 dwarf2_per_cu_data::per_bfd.
9308 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9309 (create_type_unit_group): Likewise.
9310 (queue_comp_unit): Remove reference to
9311 per_cu->dwarf2_per_objfile.
9312 (maybe_queue_comp_unit): Likewise.
9313 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9314 (create_cus_hash_table): Assign new field.
9315
5e22e966
SM
93162020-05-27 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * dwarf2/read.c: Replace
9319 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9320 dwarf2_cu->per_objfile throughout.
9321
97a1449a
SM
93222020-05-27 Simon Marchi <simon.marchi@efficios.com>
9323
9324 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9325 parameter, don't use per_cu->dwarf2_per_objfile.
9326 (dw2_instantiate_symtab): Likewise.
9327 (dw2_find_last_source_symtab): Update.
9328 (dw2_map_expand_apply): Update.
9329 (dw2_lookup_symbol): Update.
9330 (dw2_expand_symtabs_for_function): Update.
9331 (dw2_expand_all_symtabs): Update.
9332 (dw2_expand_symtabs_with_fullname): Update.
9333 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9334 don't use per_cu->dwarf2_per_objfile.
9335 (dw2_expand_marked_cus): Update.
9336 (dw2_find_pc_sect_compunit_symtab): Update.
9337 (dw2_debug_names_lookup_symbol): Update.
9338 (dw2_debug_names_expand_symtabs_for_function): Update.
9339 (dw2_debug_names_map_matching_symbols): Update.
9340 (dwarf2_psymtab::expand_psymtab): Update.
9341
9e021579
SM
93422020-05-27 Simon Marchi <simon.marchi@efficios.com>
9343
9344 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9345 <per_objfile>: New member.
9346 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9347 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9348 call to dwarf2_cu.
9349 (cutu_reader::cutu_reader): Update.
9350 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9351
ae090bdb
SM
93522020-05-27 Simon Marchi <simon.marchi@efficios.com>
9353
9354 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9355 struct dwarf2_per_objfile.
9356 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9357 dwarf2_per_bfd.
9358 * dwarf2/read.c (set_die_type): Update.
9359 (get_die_type_at_offset): Update.
9360
af758d11
SM
93612020-05-27 Tom Tromey <tom@tromey.com>
9362 Simon Marchi <simon.marchi@efficios.com>
9363
9364 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9365 method.
9366 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9367 get_symtab, set_symtab>: New methods.
9368 <m_symtabs>: New field.
9369 (struct dwarf2_psymtab): Derive from partial_symtab.
9370 <readin_p, get_compunit_symtab>: Declare methods.
9371 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9372 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9373 New methods.
9374 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9375 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9376 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9377 (dw2_symtab_iter_next, dw2_print_stats)
9378 (dw2_expand_symtabs_with_fullname)
9379 (dw2_expand_symtabs_matching_one)
9380 (dw_expand_symtabs_matching_file_matcher)
9381 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9382 (dw2_debug_names_iterator::next)
9383 (dw2_debug_names_map_matching_symbols)
9384 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9385 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9386 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9387 New methods.
9388 (get_compunit_symtab, process_full_comp_unit)
9389 (process_full_type_unit): Update.
9390 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9391
5989a64e
SM
93922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9393
9394 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9395 then introduce a new dwarf2_per_objfile type.
9396 <read_line_string>: Move to the new dwarf2_per_objfile type.
9397 <objfile>: Likewise.
9398 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9399 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9400 dwarf2_per_objfile->per_bfd.
9401 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9402 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9403 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9404 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9405 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9406 (dwarf2_per_objfile::locate_sections): Rename to...
9407 (dwarf2_per_bfd::locate_sections): ... this.
9408 (dwarf2_per_objfile::get_cutu): Rename to...
9409 (dwarf2_per_bfd::get_cutu): ... this.
9410 (dwarf2_per_objfile::get_cu): Rename to...
9411 (dwarf2_per_bfd::get_cu): ... this.
9412 (dwarf2_per_objfile::get_tu): Rename to...
9413 (dwarf2_per_bfd::get_tu): ... this.
9414 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9415 (dwarf2_per_bfd::allocate_per_cu): ... this.
9416 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9417 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9418 (get_gdb_index_contents_ftype): Change parameter from
9419 dwarf2_per_objfile to dwarf2_per_bfd.
9420 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9421 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9422
a50264ba
TT
94232020-05-27 Tom Tromey <tom@tromey.com>
9424 Simon Marchi <simon.marchi@efficios.com>
9425
9426 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9427 (allocate_piece_closure): Set "per_objfile" member.
9428 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9429 (locexpr_describe_location, loclist_describe_location): Use new
9430 member.
9431 * dwarf2/read.c (read_call_site_scope)
9432 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9433 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9434 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9435 handle_data_member_location): Set per_objfile member.
9436 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9437 member.
9438 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9439
d3473f0c
TT
94402020-05-27 Tom Tromey <tom@tromey.com>
9441
9442 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9443 allocate_signatured_type>: Declare new methods.
9444 <m_num_psymtabs>: New member.
9445 (struct dwarf2_per_cu_data) <index>: New member.
9446 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9447 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9448 (create_cu_from_index_list): Use allocate_per_cu.
9449 (create_signatured_type_table_from_index)
9450 (create_signatured_type_table_from_debug_names)
9451 (create_debug_type_hash_table, add_type_unit)
9452 (read_comp_units_from_section): Use allocate_signatured_type.
9453
5717c425
TT
94542020-05-27 Tom Tromey <tom@tromey.com>
9455
9456 * psymtab.c (partial_map_expand_apply)
9457 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9458 (psym_lookup_global_symbol_language)
9459 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9460 (psym_print_stats, psym_expand_symtabs_for_function)
9461 (psym_map_symbol_filenames, psym_map_matching_symbols)
9462 (psym_expand_symtabs_matching)
9463 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9464 (maintenance_check_psymtabs): Update.
9465 * psympriv.h (struct partial_symtab) <readin_p,
9466 get_compunit_symtab>: Add objfile parameter.
9467 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9468 Likewise.
9469 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9470 get_compunit_symtab>: Likewise.
9471 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9472
45940949
TT
94732020-05-27 Tom Tromey <tom@tromey.com>
9474
9475 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9476 member.
9477 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9478 (create_cu_from_index_list)
9479 (create_signatured_type_table_from_index)
9480 (create_signatured_type_table_from_debug_names)
9481 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9482 (dwarf2_create_include_psymtab)
9483 (create_debug_type_hash_table, add_type_unit)
9484 (create_type_unit_group, read_comp_units_from_section)
9485 (dwarf2_compute_name, create_cus_hash_table)
9486 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9487 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9488 obstack.
9489 (dw2_get_real_path): Likewise. Change argument to
9490 dwarf2_per_objfile.
9491
f8c6d152
LM
94922020-05-27 Luis Machado <luis.machado@linaro.org>
9493
9494 PR tdep/26000
9495 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9496 for ldrd (immediate).
9497
e98d2e6d
PW
94982020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9499
9500 * command.h: Add comment giving the name of class_tui.
9501 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9502 create the fake command for the help for class_tui.
9503
53a47a3e
TT
95042020-05-26 Tom Tromey <tromey@adacore.com>
9505
9506 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9507 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9508 (val_atr): New function.
9509 (value_val_atr): Use it.
9510 * ada-valprint.c (print_optional_low_bound): Change low bound
9511 handling for enums.
9512 (val_print_packed_array_elements): Don't call discrete_position.
9513 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9514 discrete_position for enum types.
9515 * language.c (default_print_array_index): Change type.
9516 * language.h (struct language_defn) <la_print_array_index>: Add
9517 index_type parameter, change type of index_value.
9518 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9519 (default_print_array_index): Update.
9520 * valprint.c (maybe_print_array_index): Don't call
9521 value_from_longest. Update.
9522 (value_print_array_elements): Don't call discrete_position.
9523
0bc2354b
TT
95242020-05-26 Tom Tromey <tromey@adacore.com>
9525
9526 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9527 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9528
1218a4bf
CDA
95292020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9530
9531 PR gdb/13519
9532 * avr-tdep.c (avr_integer_to_address): Return data or code
9533 address accordingly to the second 'type' argument of the
9534 function.
9535
92651b1d
MW
95362020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9537
9538 * infcmd.c, inferior.h: (construct_inferior_arguments):
9539 Moved function from here to gdbsupport/common-inferior.{h,cc}
9540
0a4f5f8c
TT
95412020-05-23 Tom Tromey <tom@tromey.com>
9542
9543 Revert commit eca1f90c:
9544 * NEWS: Remove entry for completion styling.
9545 * completer.c (_rl_completion_prefix_display_length): Move
9546 declaration later.
9547 (gdb_fnprint): Revert.
9548 (gdb_display_match_list_1): Likewise.
9549 * cli/cli-style.c (completion_prefix_style)
9550 (completion_difference_style, completion_suffix_style): Remove.
9551 (_initialize_cli_style): Revert.
9552 * cli/cli-style.h (completion_prefix_style)
9553 (completion_difference_style, completion_suffix_style): Don't
9554 declare.
9555
e08bd6c5
PA
95562020-05-24 Pedro Alves <palves@redhat.com>
9557
9558 * symtab.c (completion_list_add_name): Return boolean indication
9559 of whether the symbol matched.
9560 (completion_list_add_symbol): Don't try to remove C++ aliases if
9561 the symbol didn't match in the first place.
9562 * symtab.h (completion_list_add_name): Return bool.
9563
ceacbf6e
SM
95642020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9565
9566 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9567 type::field.
9568
26f16254
JB
95692020-05-23 Joel Brobecker <brobecker@adacore.com>
9570
9571 GDB 9.2 released.
9572
eca1f90c
TT
95732020-05-23 Tom Tromey <tom@tromey.com>
9574
9575 * NEWS: Add entry for completion styling.
9576 * completer.c (_rl_completion_prefix_display_length): Move
9577 declaration earlier.
9578 (gdb_fnprint): Use completion_style.
9579 (gdb_display_match_list_1): Likewise.
9580 * cli/cli-style.c (completion_prefix_style)
9581 (completion_difference_style, completion_suffix_style): New
9582 globals.
9583 (_initialize_cli_style): Register new globals.
9584 * cli/cli-style.h (completion_prefix_style)
9585 (completion_difference_style, completion_suffix_style): Declare.
9586
51e2cfa2
PA
95872020-05-23 Pedro Alves <palves@redhat.com>
9588
9589 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9590 (parse_escape): Use ISDIGIT instead of isdigit.
9591 (puts_debug): Use gdb_isprint instead of isprint.
9592 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9593 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9594 ISSPACE instead of isspace.
9595 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9596 instead of isspace.
9597 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9598 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9599 instead of isxdigit and ISDIGIT instead of isdigit.
9600
80fc5e77
SM
96012020-05-22 Simon Marchi <simon.marchi@efficios.com>
9602
9603 * gdbtypes.h (struct type) <field>: New method.
9604 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9605 or type::field.
9606
3cabb6b0
SM
96072020-05-22 Simon Marchi <simon.marchi@efficios.com>
9608
9609 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9610 (TYPE_FIELDS): Use type::fields. Change all call sites that
9611 modify the propery to use type::set_fields instead.
9612
1f704f76
SM
96132020-05-22 Simon Marchi <simon.marchi@efficios.com>
9614
9615 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9616 type::num_fields instead.
9617
5e33d5f4
SM
96182020-05-22 Simon Marchi <simon.marchi@efficios.com>
9619
9620 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9621 methods.
9622 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9623 that modify the number of fields to use type::set_num_fields
9624 instead.
9625
9392ebb3
TT
96262020-05-22 Tom Tromey <tromey@adacore.com>
9627
9628 * compile/compile-object-load.h (munmap_list_free): Don't
9629 declare.
9630
7c13f4e8
AB
96312020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9632
9633 * annotate.c (annotate_source_line): Update return type, add call
9634 to update current symtab and line.
9635 * annotate.h (annotate_source_line): Update return type, and
9636 extend header comment.
9637 * source.c (info_line_command): Check annotation_level before
9638 calling annotate_source_line.
9639 * stack.c (print_frame_info): If calling annotate_source_line
9640 returns true, then don't print any other source line information.
9641
aa370940
SM
96422020-05-21 Simon Marchi <simon.marchi@efficios.com>
9643
9644 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9645
84d53fa9
SM
96462020-05-21 Simon Marchi <simon.marchi@efficios.com>
9647
9648 * coffread.c (patch_type): Remove NULL check before xfree.
9649 * corefile.c (set_gnutarget): Likewise.
9650 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9651 * exec.c (build_section_table): Likewise.
9652 * remote.c (remote_target::pass_signals): Likewise.
9653 * utils.c (n_spaces): Likewise.
9654 * cli/cli-script.c (document_command): Likewise.
9655 * i386-windows-tdep.c (core_process_module_section): Likewise.
9656 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9657
9d428aae
SM
96582020-05-20 Simon Marchi <simon.marchi@efficios.com>
9659
9660 * symfile.c (reread_symbols): Clear objfile's section_offsets
9661 vector and section indices, re-compute them by calling
9662 sym_offsets.
9663
250106a7
TT
96642020-05-20 Tom Tromey <tromey@adacore.com>
9665
9666 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9667 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9668
9a0bacfb
TV
96692020-05-20 Tom de Vries <tdevries@suse.de>
9670
9671 PR symtab/25833
9672 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9673
7b958a48
AM
96742020-05-20 Alan Modra <amodra@gmail.com>
9675
9676 PR 25993
9677 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9678 bfd_set_filename.
9679 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9680 passed to bfd_set_filename.
9681 * symfile-mem.c (add_vsyscall_page): Likewise for string
9682 passed to symbol_file_add_from_memory.
9683 (symbol_file_add_from_memory): Make name param a const char* and
9684 don't strdup.
9685
c7e97679
AM
96862020-05-20 Alan Modra <amodra@gmail.com>
9687
9688 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9689 rather than accessing bfd->filename directly.
9690 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9691 and use bfd_section_name.
9692 * dwarf2/frame.c (decode_frame_entry): Likewise.
9693 * exec.c (exec_set_section_address): Likewise.
9694 * solib-aix.c (solib_aix_bfd_open): Likewise.
9695 * stap-probe.c (get_stap_base_address): Likewise.
9696 * symfile.c (reread_symbols): Likewise.
9697
563c591b
TT
96982020-05-19 Tom Tromey <tromey@adacore.com>
9699
9700 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9701
f408d82c
SM
97022020-05-19 Simon Marchi <simon.marchi@efficios.com>
9703
9704 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9705
98c59b52
PA
97062020-05-19 Pedro Alves <palves@redhat.com>
9707
9708 * NEWS (set exec-file-mismatch): Adjust entry.
9709 * exec.c: Include "build-id.h".
9710 (validate_exec_file): Try to match build IDs instead of filenames.
9711 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9712 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9713 and pass down 'warn_if_slow'.
9714 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9715 gdb_bfd_open_closure to pass it down.
9716 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9717
4111f652
PA
97182020-05-19 Pedro Alves <palves@redhat.com>
9719
9720 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9721 * target.c (target_fileio_open_1): Rename to target_fileio_open
9722 and make extern. Use bool.
9723 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9724 (target_fileio_read_alloc_1): Adjust.
9725 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9726 (target_fileio_open_warn_if_slow): Delete declaration.
9727
ad80db5b
PA
97282020-05-19 Pedro Alves <palves@redhat.com>
9729
9730 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9731 Adjust all callers.
9732
1d6ce4d3
YS
97332020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9734
9735 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9736 whether disp is negative.
9737
9005fbbb
SM
97382020-05-19 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * symfile.h (struct symfile_segment_data)
9741 <~symfile_segment_data>: Remove.
9742 <segment_info>: Change to std::vector.
9743 * symfile.c (default_symfile_segments): Update.
9744 * elfread.c (elf_symfile_segments): Update.
9745
68b888ff
SM
97462020-05-19 Simon Marchi <simon.marchi@efficios.com>
9747
9748 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9749 <segments>: New.
9750 <segment_bases, segment_sizes>: Remove.
9751 * symfile.c (default_symfile_segments): Update.
9752 * elfread.c (elf_symfile_segments): Update.
9753 * remote.c (remote_target::get_offsets): Update.
9754 * solib-target.c (solib_target_relocate_section_addresses):
9755 Update.
9756
62982abd
SM
97572020-05-19 Simon Marchi <simon.marchi@efficios.com>
9758
9759 * symfile.h (struct symfile_segment_data): Initialize fields.
9760 <~symfile_segment_data>: Add.
9761 (symfile_segment_data_up): New.
9762 (struct sym_fns) <sym_segments>: Return a
9763 symfile_segment_data_up.
9764 (default_symfile_segments): Return a symfile_segment_data_up.
9765 (free_symfile_segment_data): Remove.
9766 (get_symfile_segment_data): Return a symfile_segment_data_up.
9767 * symfile.c (default_symfile_segments): Likewise.
9768 (get_symfile_segment_data): Likewise.
9769 (free_symfile_segment_data): Remove.
9770 (symfile_find_segment_sections): Update.
9771 * elfread.c (elf_symfile_segments): Return a
9772 symfile_segment_data_up.
9773 * remote.c (remote_target::get_offsets): Update.
9774 * solib-target.c (solib_target_relocate_section_addresses):
9775 Update.
9776 * symfile-debug.c (debug_sym_segments): Return a
9777 symfile_segment_data_up.
9778
7f204339
RO
97792020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9780
e52a0f1b
RO
9781 PR build/25981
9782 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9783 Hardcode register numbers.
9784
7f204339
RO
9785 PR build/25981
9786 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9787 procfs_find_LDT_entry): Remove.
9788 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9789 procfs_find_LDT_entry): Remove.
9790 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9791 Remove.
9792
7f32a4d5
PA
97932020-05-17 Pedro Alves <palves@redhat.com>
9794 Andrew Burgess <andrew.burgess@embecosm.com>
9795 Keno Fischer <keno@juliacomputing.com>
9796
9797 PR gdb/25741
9798 * breakpoint.c (build_target_condition_list): Update comments.
9799 (build_target_command_list): Update comments and skip matching
9800 locations.
9801 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9802 a separate function. Simplify "set breakpoint auto-hw off"
9803 handling.
9804 (insert_breakpoints): Update comment.
9805 (tracepoint_locations_match): New parameter. For breakpoints,
9806 compare location types too, if the caller wants to.
9807 (handle_automatic_hardware_breakpoints): New functions.
9808 (bp_location_is_less_than): Also sort by location type and
9809 hardware breakpoint length.
9810 (update_global_location_list): Handle "set breakpoint auto-hw on"
9811 here.
9812 (update_breakpoint_locations): Ask breakpoint_locations_match to
9813 ignore location types.
9814
7d93a1e0
SM
98152020-05-16 Simon Marchi <simon.marchi@efficios.com>
9816
9817 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9818 type::name instead.
9819
d0e39ea2
SM
98202020-05-16 Simon Marchi <simon.marchi@efficios.com>
9821
9822 * gdbtypes.h (struct type) <name, set_name>: New methods.
9823 (TYPE_CODE): Use type::name. Change all call sites used to set
9824 the name to use type::set_name instead.
9825
2dab0c7b
TT
98262020-05-16 Tom Tromey <tom@tromey.com>
9827
9828 * top.c (quit_force): Update.
9829 * infrun.c (handle_no_resumed): Update.
9830 * top.h (all_uis): New function.
9831 (ALL_UIS): Remove.
9832
59f7bd8d
SM
98332020-05-16 Simon Marchi <simon.marchi@efficios.com>
9834
9835 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9836
9bf058f0
PA
98372020-05-16 Pedro Alves <palves@redhat.com>
9838
9839 * ia64-linux-nat.c
9840 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9841 Declare method.
9842 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9843
8f86ae1a
SM
98442020-05-15 Simon Marchi <simon.marchi@efficios.com>
9845
9846 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9847 (sparc64_adi_info): Likewise.
9848
d6bc0792
TT
98492020-05-15 Tom Tromey <tom@tromey.com>
9850
9851 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9852 block_objfile.
9853 (lookup_objfile_from_block): Remove.
9854 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9855 (lookup_global_symbol): Use block_objfile.
9856 * symtab.h (lookup_objfile_from_block): Don't declare.
9857 * printcmd.c (clear_dangling_display_expressions): Use
9858 block_objfile.
9859 * parse.c (operator_check_standard): Use block_objfile.
9860
8c14c3a3
TT
98612020-05-15 Tom Tromey <tom@tromey.com>
9862
9863 * language.c (language_alloc_type_symbol): Set
9864 SYMBOL_SECTION.
9865 * symtab.c (initialize_objfile_symbol): Remove.
9866 (allocate_symbol): Remove.
9867 (allocate_template_symbol): Remove.
9868 * dwarf2/read.c (fixup_go_packaging): Use "new".
9869 (new_symbol): Use "new".
9870 (read_variable): Don't call initialize_objfile_symbol. Use
9871 "new".
9872 (read_func_scope): Use "new".
9873 * xcoffread.c (process_xcoff_symbol): Don't call
9874 initialize_objfile_symbol.
9875 (SYMBOL_DUP): Remove.
9876 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9877 "new".
9878 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9879 (allocate_template_symbol): Don't declare.
9880 (struct symbol): Add copy constructor. Change defaults.
9881 * jit.c (finalize_symtab): Use "new".
9882 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9883 Use "new".
9884 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9885 (common_block_end): Use "new".
9886 * mdebugread.c (parse_symbol): Use "new".
9887 (new_symbol): Likewise.
9888
5b4a1a8d
PW
98892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9890
9891 * NEWS: Mention changes to help and apropos.
9892
57b4f16e
PW
98932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9894
9895 * command.h (enum command_class): Improve comments, document
9896 that class_alias is for user-defined aliases, give the class
9897 name for each class, remove unused class_xdb.
9898 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9899 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9900 by a precise class.
9901 * infcmd.c (_initialize_infcmd): Likewise.
9902 * reverse.c (_initialize_reverse): Likewise.
9903 * stack.c (_initialize_stack): Likewise.
9904 * symfile.c (_initialize_symfile): Likewise.
9905 * tracepoint.c (_initialize_tracepoint): Likewise.
9906
7c05caf7
PW
99072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9908
9909 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9910 when their aliased command is traversed.
9911 (help_cmd): Add fput_command_names_styled call to
9912 output command name and aliases when command has an alias.
9913
3b3aaacb
PW
99142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9915
9916 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9917 * cli/cli-decode.c (help_cmd_list): Declare as static,
9918 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9919 a command together with the command.
9920 (fput_command_name_styled, fput_command_names_styled): New functions.
9921 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9922 fput_command_name_styled.
9923 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9924 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9925
7aa1b46f
PW
99262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9927
9928 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9929 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9930 * command.h (cmd_show_list): Likewise.
9931 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9932 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9933
89bcba74
PW
99342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9935
9936 * unittests/command-def-selftests.c (traverse_command_structure):
9937 Verify all commands of a list have the same prefix command and
9938 that only the top cmdlist commands have a null prefix.
9939
3f4d92eb
PW
99402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9941
9942 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9943 as prefix, not one of its aliases.
9944 (set_cmd_prefix): Remove.
9945 (do_add_cmd): Centralize the setting of the prefix of a command, when
9946 command is defined after its full chain of prefix commands.
9947 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9948 (add_setshow_cmd_full): Likewise.
9949 (update_prefix_field_of_prefixed_commands): New function.
9950 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9951 update_prefix_field_of_prefixed_commands.
9952 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9953 addresses of remote_set_cmdlist and remote_show_cmdlist given
9954 as argument, not the address of an argument.
9955 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9956 * gdb/remote.c (_initialize_remote): Likewise.
9957
0605465f
PW
99582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9959
9960 * cli/cli-cmds.c (alias_command): Check for an existing alias
9961 using lookup_cmd_composition, as valid_command_p is too strict
9962 and forbids aliases that are the prefix of an existing alias
9963 or command.
9964 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9965 command is properly recognised as a valid command.
9966
58e6ac70
PW
99672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9968
9969 * unittests/help-doc-selftests.c: Rename to
9970 unittests/command-def-selftests.c
9971 * unittests/command-def-selftests.c (help_doc_tests): Update some
9972 comments.
9973 (command_structure_tests, traverse_command_structure): New namespace
9974 and function.
9975 (command_structure_invariants_tests): New function.
9976 (_initialize_command_def_selftests) Renamed from
9977 _initialize_help_doc_selftests, register command_structure_invariants
9978 selftest.
9979
a7b9ceb8
PW
99802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9981
9982 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9983 an alias of 'show'.
9984
b2188a06
JB
99852020-05-15 Joel Brobecker <brobecker@adacore.com>
9986
9987 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9988 ada_is_fixed_point_type. Update all callers.
9989 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9990 all callers.
9991 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9992 Update all callers.
9993 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9994 print_fixed_point_type. Update all callers.
9995 * ada-valprint.c (ada_value_print_num): Replace call to
9996 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9997
a51951c2
KB
99982020-05-14 Kevin Buettner <kevinb@redhat.com>
9999
10000 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10001 processors.
10002 (cpu_supports_bts): Add CV_AMD case.
10003
29d6859f
LM
100042020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10005 Simon Marchi <simon.marchi@efficios.com>
10006
10007 * infrun.c (stop_all_threads): Collect multiple wait events at
10008 each pass.
10009
78134374
SM
100102020-05-14 Simon Marchi <simon.marchi@efficios.com>
10011
10012 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10013 type::code instead.
10014
67607e24
SM
100152020-05-14 Simon Marchi <simon.marchi@efficios.com>
10016
10017 * gdbtypes.h (struct type) <code, set_code>: New methods.
10018 (TYPE_CODE): Use type::code. Change all call sites used to set
10019 the code to use type::set_code instead.
10020
a05575d3
TBA
100212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10022 Tom de Vries <tdevries@suse.de>
10023 Pedro Alves <palves@redhat.com>
10024
10025 PR threads/25478
10026 * infrun.c (stop_all_threads): Do NOT ignore
10027 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10028 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10029 received.
10030 (handle_no_resumed): Remove code handling a live inferior with no
10031 threads.
10032 * remote.c (has_single_non_exited_thread): New.
10033 (remote_target::update_thread_list): Do not delete a thread if is
10034 the last thread of the process.
10035 * thread.c (thread_select): Call delete_exited_threads instead of
10036 prune_threads.
10037
6ad82919
TBA
100382020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10039
10040 * infrun.c (stop_all_threads): Enable/disable thread events of all
10041 targets. Move a debug message denoting the end of the function
10042 into the SCOPED_EXIT block.
10043
d890404b
TBA
100442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10045
10046 * process-stratum-target.h: Include <set>.
10047 (all_non_exited_process_targets, switch_to_target_no_thread): New
10048 function declarations.
10049 * process-stratum-target.c (all_non_exited_process_targets)
10050 (switch_to_target_no_thread): New function implementations.
10051
293b3ebc
TBA
100522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10053
10054 * infrun.c (handle_inferior_event): Extract out a piece of code
10055 into...
10056 (mark_non_executing_threads): ...this new function.
10057
7ca9b62a
TBA
100582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10059
10060 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10061 use.
10062
fc75c28b
TBA
100632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10064
10065 * regcache.c (regcache_read_pc_protected): New function
10066 implementation that returns 0 if the PC cannot read via
10067 'regcache_read_pc'.
10068 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10069 instead of 'regcache_read_pc'.
10070 (keep_going_pass_signal): Ditto.
10071
a89febbd
TT
100722020-05-13 Tom Tromey <tromey@adacore.com>
10073
10074 * ada-lang.c (align_value): Remove.
10075 (ada_template_to_fixed_record_type_1): Use align_up.
10076
f7e23710
TBA
100772020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10078
10079 * async-event.c: Update the copyright year.
10080 * async-event.h: Update the copyright year.
10081
02ff80c2
SM
100822020-05-12 Simon Marchi <simon.marchi@efficios.com>
10083
10084 * objfiles.h (is_addr_in_objfile,
10085 shared_objfile_contains_address_p): Return bool.
10086 * objfile.c (is_addr_in_objfile,
10087 shared_objfile_contains_address_p): Return bool.
10088
4fd6c7e8
TT
100892020-05-11 Tom Tromey <tromey@adacore.com>
10090
10091 * cli/cli-cmds.c (info_command): Restore.
10092 (_initialize_cli_cmds): Use add_prefix_command for "info".
10093 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10094
5eb68a39
TT
100952020-05-11 Tom Tromey <tromey@adacore.com>
10096
10097 * ada-lang.c (ada_value_primitive_field): Now public.
10098 * ada-lang.h (ada_value_primitive_field): Declare.
10099 * ada-valprint.c (print_field_values): Use
10100 ada_value_primitive_field for wrapper fields.
10101
7666722f
TV
101022020-05-11 Tom de Vries <tdevries@suse.de>
10103
10104 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10105 MODULE_DOMAIN.
10106
3ee6bb11
TV
101072020-05-11 Tom de Vries <tdevries@suse.de>
10108
10109 PR symtab/25941
10110 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10111 with length 0, if not gdb-produced.
10112 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10113
43434996
TV
101142020-05-09 Tom de Vries <tdevries@suse.de>
10115
10116 PR gdb/25955
10117 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10118 calculation.
10119
2f78cffc
TT
101202020-05-09 Tom Tromey <tom@tromey.com>
10121
10122 * top.c (server_command): Now bool.
10123 * top.h (server_command): Now bool.
10124
4f7bc5ed
TT
101252020-05-08 Tom Tromey <tromey@adacore.com>
10126
10127 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10128 already being processed.
10129
8be4b118
TT
101302020-05-08 Tom Tromey <tom@tromey.com>
10131
10132 * printcmd.c (struct display) <next>: Remove.
10133 <display>: New constructor.
10134 <exp_string>: Now a std::string.
10135 <enabled_p>: Now a bool.
10136 (display_number): Move definition earlier.
10137 (displays): Rename from display_chain. Now a std::vector.
10138 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10139 (display_command): Update.
10140 (do_one_display, disable_display)
10141 (enable_disable_display_command, do_enable_disable_display):
10142 Update.
10143 (free_display): Remove.
10144 (clear_displays): Rewrite.
10145 (delete_display): Update.
10146 (map_display_numbers): Use function_view. Remove "data"
10147 parameter. Update.
10148 (do_delete_display): Remove.
10149 (undisplay_command): Update.
10150 (do_one_display, do_displays, disable_display)
10151 (info_display_command): Update.
10152 (do_enable_disable_display): Remove.
10153 (enable_disable_display_command)
10154 (clear_dangling_display_expressions): Update.
10155
94c93c35
TT
101562020-05-08 Tom Tromey <tom@tromey.com>
10157
10158 * symtab.c (set_symbol_cache_size)
10159 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10160 (maintenance_print_symbol_cache_statistics): Update.
10161 * symmisc.c (print_symbol_bcache_statistics)
10162 (print_objfile_statistics, maintenance_print_objfiles)
10163 (maintenance_info_symtabs, maintenance_check_symtabs)
10164 (maintenance_expand_symtabs, maintenance_info_line_tables):
10165 Update.
10166 * symfile-debug.c (set_debug_symfile): Update.
10167 * source.c (forget_cached_source_info): Update.
10168 * python/python.c (gdbpy_progspaces): Update.
10169 * psymtab.c (maintenance_info_psymtabs): Update.
10170 * probe.c (parse_probes): Update.
10171 * linespec.c (iterate_over_all_matching_symtabs)
10172 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10173 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10174 * exec.c (exec_target::close): Update.
10175 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10176 * breakpoint.c (print_one_breakpoint_location)
10177 (create_longjmp_master_breakpoint)
10178 (create_std_terminate_master_breakpoint): Update.
10179 * progspace.c (program_spaces): Now a std::vector.
10180 (maybe_new_address_space): Update.
10181 (add_program_space): Remove.
10182 (program_space::program_space): Update.
10183 (remove_program_space): Update.
10184 (number_of_program_spaces): Remove.
10185 (print_program_space, update_address_spaces): Update.
10186 * progspace.h (program_spaces): Change type.
10187 (ALL_PSPACES): Remove.
10188 (number_of_program_spaces): Don't declare.
10189 (struct program_space) <next>: Remove.
10190
a1fd1ac9
TT
101912020-05-08 Tom Tromey <tom@tromey.com>
10192
10193 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10194 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10195 (enable_break): Update.
10196 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10197 (frv_fdpic_find_canonical_descriptor): Update.
10198 (frv_fetch_objfile_link_map): Update.
10199 * progspace.c (program_space::free_all_objfiles): Update.
10200 (program_space::solibs): New method.
10201 * progspace.h (struct program_space) <solibs>: New method.
10202 * solist.h (master_so_list): Don't declare.
10203 (ALL_SO_LIBS): Remove.
10204 * solib.h (so_list_head): Remove.
10205 (update_solib_list): Update comment.
10206 * solib.c (master_so_list): Remove.
10207 (solib_used, update_solib_list, solib_add)
10208 (info_sharedlibrary_command, clear_solib)
10209 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10210
38eae084
TT
102112020-05-08 Tom Tromey <tom@tromey.com>
10212
10213 * extension.c (extension_languages): Now a std::array.
10214 (ALL_EXTENSION_LANGUAGES): Remove.
10215 (get_ext_lang_defn, get_ext_lang_of_file)
10216 (eval_ext_lang_from_control_command): Update.
10217 (finish_ext_lang_initialization)
10218 (auto_load_ext_lang_scripts_for_objfile)
10219 (ext_lang_type_printers::ext_lang_type_printers)
10220 (apply_ext_lang_type_printers)
10221 (ext_lang_type_printers::~ext_lang_type_printers)
10222 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10223 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10224 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10225 (get_matching_xmethod_workers, ext_lang_colorize)
10226 (ext_lang_before_prompt): Update.
10227 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10228
596dc4ad
TT
102292020-05-08 Tom Tromey <tom@tromey.com>
10230
10231 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10232 overload.
10233 <swap_string, m_string>: Remove.
10234 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10235 Update.
10236 * stabsread.c (define_symbol, read_type): Update.
10237 * linespec.c (find_linespec_symbols): Update.
10238 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10239 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10240 * dbxread.c (read_dbx_symtab): Update.
10241 * cp-support.h (cp_canonicalize_string_full)
10242 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10243 Return unique_xmalloc_ptr.
10244 * cp-support.c (inspect_type): Update.
10245 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10246 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10247 Likewise.
10248 * c-typeprint.c (print_name_maybe_canonical): Update.
10249 * break-catch-throw.c (check_status_exception_catchpoint):
10250 Update.
10251
bf4cb9be
TV
102522020-05-08 Tom de Vries <tdevries@suse.de>
10253
10254 * infrun.c (follow_fork): Copy current_line and current_symtab to
10255 child thread.
10256
a1b68f28
SM
102572020-05-07 Simon Marchi <simon.marchi@efficios.com>
10258
10259 * async-event.c (struct async_signal_handler, struct
10260 async_event_handler): Reformat, remove typedef.
10261
98d48915
SM
102622020-05-07 Simon Marchi <simon.marchi@efficios.com>
10263
10264 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10265 access thistype->main_type->dyn_prop_list directly.
10266
7aa91313
SM
102672020-05-07 Simon Marchi <simon.marchi@efficios.com>
10268
10269 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10270 (remove_dyn_prop): Remove. Update all users to use
10271 type::remove_dyn_prop.
10272 * gdbtypes.c (remove_dyn_prop): Rename to...
10273 (type::remove_dyn_prop): ... this.
10274
5c54719c
SM
102752020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10276
10277 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10278 (add_dyn_prop): Remove. Update all users to use
10279 type::add_dyn_prop.
10280 * gdbtypes.c (add_dyn_prop): Rename to...
10281 (type::add_dyn_prop): ... this.
10282
24e99c6c
SM
102832020-05-07 Simon Marchi <simon.marchi@efficios.com>
10284
10285 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10286 (get_dyn_prop): Remove. Update all users to use
10287 type::dyn_prop.
10288 * gdbtypes.c (get_dyn_prop): Rename to...
10289 (type::dyn_prop): ... this.
10290
0d4bf016
SM
102912020-05-06 Simon Marchi <simon.marchi@efficios.com>
10292
10293 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10294
ac4a4f1c
SM
102952020-05-06 Simon Marchi <simon.marchi@efficios.com>
10296
10297 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10298 instruction, skip it if it's there.
10299
a3bbacc1
SM
103002020-05-05 Simon Marchi <simon.marchi@efficios.com>
10301
10302 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10303
c3236f84
SM
103042020-05-04 Simon Marchi <simon.marchi@efficios.com>
10305
10306 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10307 * gdbtypes.c (recursive_dump_type): Remove use of
10308 TYPE_INCOMPLETE.
10309
3b6acaee
TT
103102020-05-03 Tom Tromey <tom@tromey.com>
10311
10312 * breakpoint.c (catch_command, tcatch_command): Remove.
10313 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10314 add_show_prefix_cmd.
10315 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10316 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10317 Remove.
10318 (add_internal_problem_command): Use add_basic_prefix_cmd,
10319 add_show_prefix_cmd.
10320 * mips-tdep.c (set_mipsfpu_command): Remove.
10321 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10322 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10323 (_initialize_index_cache): Use add_basic_prefix_cmd.
10324 * memattr.c (dummy_cmd): Remove.
10325 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10326 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10327 (_initialize_tui_win): Use add_basic_prefix_cmd,
10328 add_show_prefix_cmd.
10329 * cli/cli-logging.c (set_logging_command): Remove.
10330 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10331 add_show_prefix_cmd.
10332 (show_logging_command): Remove.
10333 * target.c (target_command): Remove.
10334 (add_target): Use add_basic_prefix_cmd.
10335
a51119cd
HD
103362020-05-02 Hannes Domani <ssbssa@yahoo.de>
10337
10338 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10339
652fc23a 103402020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10341
652fc23a
PW
10342 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10343 info_command.
10344
117539e6
KR
103452020-04-30 Kamil Rytarowski <n54@gmx.com>
10346
10347 * nbsd-nat.c (nbsd_enable_proc_events)
10348 (nbsd_nat_target::post_startup_inferior): Add.
10349 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10350 (nbsd_nat_target::update_thread_list): Rewrite.
10351 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10352 "PTRACE_LWP_CREATE".
10353 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10354
102e38eb 103552020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10356
102e38eb
PW
10357 * stack.c (_initialize_stack): Remove duplicated creation
10358 of "frame" command and "f" alias.
10359
ee9d1e5f
HD
103602020-04-30 Hannes Domani <ssbssa@yahoo.de>
10361
10362 PR gdb/18706
10363 * gdbtypes.c (check_typedef): Calculate size of array of
10364 stubbed type.
10365
627c7fb8
HD
103662020-04-30 Hannes Domani <ssbssa@yahoo.de>
10367
10368 PR gdb/15559
10369 * i386-tdep.c (i386_push_dummy_call): Call
10370 i386_thiscall_push_dummy_call.
10371 (i386_thiscall_push_dummy_call): New function.
10372 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10373 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10374 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10375
ffc2844e
SM
103762020-04-29 Simon Marchi <simon.marchi@efficios.com>
10377
10378 * gdbarch.sh (do_read): Add shellcheck disable directive for
10379 warning SC2162.
10380
1207375d
SM
103812020-04-29 Simon Marchi <simon.marchi@efficios.com>
10382
10383 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10384 "referenced but not assigned" warning.
10385
9fdb2916
SM
103862020-04-29 Simon Marchi <simon.marchi@efficios.com>
10387
10388 * gdbarch.sh: Remove code that sets fallbackdefault.
10389
759cea5e
SM
103902020-04-29 Simon Marchi <simon.marchi@efficios.com>
10391
10392 * gdbarch.sh: Use shell operators && and || instead of
10393 -a and -o.
10394
cb02ab24
SM
103952020-04-29 Simon Marchi <simon.marchi@efficios.com>
10396
10397 * gdbarch.sh: Use $(...) instead of `...`.
10398
a6fc5ffc
SM
103992020-04-29 Simon Marchi <simon.marchi@efficios.com>
10400
10401 * gdbarch.sh: Use double quotes around variables.
10402
8d113d13
SM
104032020-04-29 Simon Marchi <simon.marchi@efficios.com>
10404
10405 * gdbarch.sh: Use %s with printf, instead of variables in the
10406 format string.
10407
ed6acedd
TT
104082020-04-29 Tom Tromey <tromey@adacore.com>
10409
10410 PR ada/25875:
10411 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10412 type fields here.
10413 (read_enumeration_type): Call
10414 update_enumeration_type_from_children later. Update comments.
10415 (process_enumeration_scope): Don't create type fields.
10416
b68b1b58
KR
104172020-04-29 Kamil Rytarowski <n54@gmx.com>
10418
10419 * nbsd-tdep.c: Include "xml-syscall.h".
10420 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10421
f94b2e03
KR
104222020-04-29 Kamil Rytarowski <n54@gmx.com>
10423
10424 * nbsd-nat.c: Include "sys/wait.h".
10425 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10426 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10427 (nbsd_nat_target::remove_exec_catchpoint)
10428 (nbsd_nat_target::set_syscall_catchpoint): Add.
10429 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10430 (nbsd_nat_target::insert_exec_catchpoint)
10431 (nbsd_nat_target::remove_exec_catchpoint)
10432 (nbsd_nat_target::set_syscall_catchpoint): Add.
10433 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10434 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10435 `nbsd_get_syscall_number'.
10436
fc49bc72
TT
104372020-04-29 Tom Tromey <tom@tromey.com>
10438
10439 * stack.c (print_block_frame_labels): Remove.
10440
d642b692
HD
104412020-04-29 Hannes Domani <ssbssa@yahoo.de>
10442
10443 PR gdb/17320
10444 * ada-valprint.c (val_print_packed_array_elements): Move array
10445 end bracket to new line.
10446 (ada_val_print_string): Remove extra spaces before first array
10447 element.
10448 * c-valprint.c (c_value_print_array): Likewise.
10449 * m2-valprint.c (m2_print_array_contents): Likewise.
10450 (m2_value_print_inner): Likewise.
10451 * p-valprint.c (pascal_value_print_inner): Likewise.
10452 * valprint.c (generic_val_print_array): Likewise.
10453 (value_print_array_elements): Move first array element and array
10454 end bracket to new line.
10455
ea90f227
TV
104562020-04-29 Tom de Vries <tdevries@suse.de>
10457
10458 PR symtab/25889
10459 * linespec.c (find_method): Fix ix calculation.
10460
4498ef4f
KR
104612020-04-28 Kamil Rytarowski <n54@gmx.com>
10462
10463 * syscalls/update-netbsd.sh: New file.
10464 * syscalls/netbsd.xml: Regenerate.
10465 * data-directory/Makefile.in: Register `netbsd.xml' in
10466 `SYSCALLS_FILES'.
10467
a55e30b5
SM
104682020-04-28 Simon Marchi <simon.marchi@efficios.com>
10469
10470 * syscalls/update-freebsd.sh: Add double quotes.
10471
2b2fbab8
TT
104722020-04-28 Tom Tromey <tom@tromey.com>
10473
10474 * NEWS: Update.
10475 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10476 (cmdpy_init): Allow class_tui.
10477
a65189c9
TV
104782020-04-28 Mark Williams <mark@myosotissp.com>
10479
10480 PR gdb/24480
10481 * dwarf2read.c: Add missing assingments to list_in_scope when
10482 start_symtab was already called.
10483
1b95cdb7
SM
104842020-04-28 Simon Marchi <simon.marchi@efficios.com>
10485
10486 PR gdb/25881
10487 * dwarf2/read.c (offset_map_type): Use
10488 gdb:hash_enum<sect_offset> as hash function.
10489
15cd93d0
TV
104902020-04-28 Tom de Vries <tdevries@suse.de>
10491
10492 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10493 with DW_AT_signature.
10494
1eb39914
SM
104952020-04-27 Simon Marchi <simon.marchi@efficios.com>
10496
10497 * configure.ac: Remove check for fs_base/gs_base in
10498 user_regs_struct.
10499 * configure: Re-generate.
10500 * config.in: Re-generate.
10501 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10502 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10503 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10504
991a3e2e
LM
105052020-04-27 Luis Machado <luis.machado@linaro.org>
10506
10507 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10508 problematic inline frame unwinding situation.
10509 * frame.c (frame_id_computed_p): New function.
10510 * frame.h (frame_id_computed_p): New prototype.
10511
361ba0e8
TT
105122020-04-26 Tom Tromey <tom@tromey.com>
10513
10514 * command.h (enum command_class) <class_pseudo>: Remove.
10515
bc3609fd
PW
105162020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10517
10518 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10519 and whitespace.
10520
b9771db7
KR
105212020-04-25 Kamil Rytarowski <n54@gmx.com>
10522
ec16513e
SM
10523 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10524 `PT_GET_PROCESS_STATE' block.
b9771db7 10525
7151c1af
TT
105262020-04-24 Tom Tromey <tom@tromey.com>
10527
10528 * symtab.h (symbol_get_demangled_name): Don't declare.
10529 * symtab.c (symbol_get_demangled_name): Remove.
10530 (general_symbol_info::natural_name)
10531 (general_symbol_info::demangled_name): Update.
10532
906bb4c5
TT
105332020-04-24 Tom Tromey <tom@tromey.com>
10534
10535 PR rust/25025:
10536 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10537
bcfe6157
TT
105382020-04-24 Tom Tromey <tom@tromey.com>
10539
10540 PR symtab/12707:
10541 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10542 exists.
10543 (new_symbol): Likewise.
10544 * compile/compile-object-load.c (get_out_value_type): Use
10545 symbol_matches_search_name.
10546
f049a313
TT
105472020-04-24 Tom Tromey <tom@tromey.com>
10548
10549 * dwarf2/read.c (add_partial_symbol): Do not call
10550 compute_and_set_names.
10551
76e288d1
TT
105522020-04-24 Tom Tromey <tom@tromey.com>
10553
10554 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10555 overload.
10556
2467f4f6
TT
105572020-04-24 Tom Tromey <tom@tromey.com>
10558
10559 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10560 (add_psymbol_to_list): New overload. Make old overload call new
10561 one.
10562 * psympriv.h (add_psymbol_to_list): New overload.
10563
e61108c9
TT
105642020-04-24 Tom Tromey <tom@tromey.com>
10565
10566 * dwarf2/read.c (partial_die_info::read) <case
10567 DW_AT_linkage_name>: Use value_as_string.
10568 (dwarf2_string_attr): Use value_as_string.
10569 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10570 method.
10571 * dwarf2/attribute.c (attribute::value_as_string): New method.
10572
8c87a452
TT
105732020-04-24 Tom Tromey <tom@tromey.com>
10574
10575 * symtab.c (general_symbol_info::natural_name)
10576 (general_symbol_info::demangled_name): Check for language_rust.
10577
787de330
TT
105782020-04-24 Tom Tromey <tom@tromey.com>
10579
10580 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10581 (dwarf2_physname): ... from here.
10582 (partial_die_info::read): Add Rust "{" hack.
10583
ff985671
TT
105842020-04-24 Tom Tromey <tom@tromey.com>
10585
10586 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10587 method.
10588 (symbol_set_demangled_name): Don't declare.
10589 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10590 symbol_set_demangled_name.
10591 (general_symbol_info::set_language)
10592 (general_symbol_info::compute_and_set_names): Update.
10593 * minsyms.c (minimal_symbol_reader::install): Update.
10594 * dwarf2/read.c (new_symbol): Update.
10595
1acda803
TT
105962020-04-24 Tom Tromey <tromey@adacore.com>
10597
10598 PR python/23662:
10599 * python/py-type.c (convert_field): Handle
10600 FIELD_LOC_KIND_DWARF_BLOCK.
10601 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10602 (typy_get_dynamic): Nw function.
10603 (type_object_getset): Add "dynamic".
10604 * NEWS: Add entry.
10605
d656f129
TT
106062020-04-24 Tom Tromey <tromey@adacore.com>
10607
10608 * ada-typeprint.c (print_choices, print_variant_part)
10609 (print_record_field_types_dynamic): New functions.
10610 (print_record_field_types): Use print_record_field_types_dynamic.
10611
7d79de9a
TT
106122020-04-24 Tom Tromey <tromey@adacore.com>
10613
10614 * dwarf2/read.c (handle_data_member_location): New overload.
10615 (dwarf2_add_field): Use it.
10616 (decode_locdesc): Add "computed" parameter. Update comment.
10617 * gdbtypes.c (is_dynamic_type_internal): Also look for
10618 FIELD_LOC_KIND_DWARF_BLOCK.
10619 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10620 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10621 virtual base classes.
10622 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10623 FIELD_LOC_KIND_DWARF_BLOCK.
10624
f8e89861
TT
106252020-04-24 Tom Tromey <tromey@adacore.com>
10626
10627 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10628 * gdbtypes.c (is_dynamic_type_internal): Check
10629 TYPE_HAS_DYNAMIC_LENGTH.
10630 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10631 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10632 New macros.
10633 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10634 constant.
10635
9c6a1327
TT
106362020-04-24 Tom Tromey <tromey@adacore.com>
10637
10638 * dwarf2/read.c (struct variant_field): Rewrite.
10639 (struct variant_part_builder): New.
10640 (struct nextfield): Remove "variant" field. Add "offset".
10641 (struct field_info): Add "current_variant_part" and
10642 "variant_parts".
10643 (alloc_discriminant_info): Remove.
10644 (alloc_rust_variant): New function.
10645 (quirk_rust_enum): Update.
10646 (dwarf2_add_field): Set "offset" member. Don't handle
10647 DW_TAG_variant_part.
10648 (offset_map_type): New typedef.
10649 (convert_variant_range, create_one_variant)
10650 (create_one_variant_part, create_variant_parts)
10651 (add_variant_property): New functions.
10652 (dwarf2_attach_fields_to_type): Call add_variant_property.
10653 (read_structure_type): Don't handle DW_TAG_variant_part.
10654 (handle_variant_part, handle_variant): New functions.
10655 (handle_struct_member_die): Use them.
10656 (process_structure_scope): Don't handle variant parts.
10657 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10658 (struct discriminant_info): Remove.
10659 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10660 (struct main_type) <flag_discriminated_union>: Remove.
10661 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10662 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10663 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10664 Update.
10665 * valops.c (value_union_variant): Remove.
10666 * value.h (value_union_variant): Don't declare.
10667
b249d2c2
TT
106682020-04-24 Tom Tromey <tromey@adacore.com>
10669
10670 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10671 (ada_value_primitive_packed_val): Update.
10672 * ada-valprint.c (ada_value_print_1): Update.
10673 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10674 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10675 just an address. Use evaluate_for_locexpr_baton.
10676 (dwarf2_evaluate_property): Update.
10677 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10678 array_view.
10679 * findvar.c (default_read_var_value): Update.
10680 * gdbtypes.c (compute_variant_fields_inner)
10681 (resolve_dynamic_type_internal): Update.
10682 (resolve_dynamic_type): Change type of valaddr parameter.
10683 * gdbtypes.h (resolve_dynamic_type): Update.
10684 * valarith.c (value_subscripted_rvalue): Update.
10685 * value.c (value_from_contents_and_address): Update.
10686
61122aa9
TT
106872020-04-24 Tom Tromey <tromey@adacore.com>
10688
10689 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10690 "push_initial_value" parameter.
10691 (dwarf2_evaluate_property): Likewise.
10692 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10693
ef83a141
TT
106942020-04-24 Tom Tromey <tromey@adacore.com>
10695
10696 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10697 (variant::matches, compute_variant_fields_recurse)
10698 (compute_variant_fields_inner, compute_variant_fields): New
10699 functions.
10700 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10701 Use resolved_type after type is made.
10702 (operator==): Add new cases.
10703 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10704 (struct discriminant_range, struct variant, struct variant_part):
10705 New.
10706 (union dynamic_prop_data) <variant_parts, original_type>: New
10707 members.
10708 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10709 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10710 constants.
10711 * value.c (unpack_bits_as_long): Now public.
10712 * value.h (unpack_bits_as_long): Declare.
10713
675127ec
TT
107142020-04-24 Tom Tromey <tromey@adacore.com>
10715
10716 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10717 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10718
9852ceef
HD
107192020-04-24 Hannes Domani <ssbssa@yahoo.de>
10720
10721 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10722
7632c6ce
KR
107232020-04-24 Kamil Rytarowski <n54@gmx.com>
10724
10725 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10726 (remove_fork_catchpoint, post_startup_inferior)
10727 (post_attach): Move...
10728 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10729 (remove_fork_catchpoint, post_startup_inferior)
10730 (post_attach): ...here.
10731 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10732 (remove_fork_catchpoint, post_startup_inferior)
10733 (post_attach): Move...
10734 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10735 (remove_fork_catchpoint, post_startup_inferior)
10736 (post_attach): ...here.
10737
7be2bb4f
TT
107382020-04-24 Tom Tromey <tromey@adacore.com>
10739
10740 * nat/windows-nat.h (struct windows_thread_info)
10741 <pc_adjusted>: New member.
10742 * windows-nat.c (windows_fetch_one_register): Check
10743 pc_adjusted.
10744 (windows_nat_target::get_windows_debug_event)
10745 (windows_nat_target::wait): Set pc_adjusted.
10746
f80cb3b4
TV
107472020-04-24 Tom de Vries <tdevries@suse.de>
10748
10749 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10750 Run gdb-add-index inside temp dir.
10751
29514b87
TT
107522020-04-23 Tom Tromey <tromey@adacore.com>
10753
10754 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10755 in loop.
10756
5939967b
LM
107572020-04-23 Luis Machado <luis.machado@linaro.org>
10758
10759 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10760 get_frame_register instead of gdbarch_unwind_pc.
10761
70bc38f5
TV
107622020-04-23 Tom de Vries <tdevries@suse.de>
10763
10764 * symtab.c (lookup_global_symbol): Prefer def over decl.
10765
de82891c
TV
107662020-04-23 Tom de Vries <tdevries@suse.de>
10767
10768 PR symtab/25807
10769 * block.c (best_symbol, better_symbol): Promote to external.
10770 * block.h (best_symbol, better_symbol): Declare.
10771 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10772 decl.
10773
ecc6c606
TT
107742020-04-23 Tom Tromey <tromey@adacore.com>
10775
10776 PR ada/25837:
10777 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10778 "const char *", not a "const std::string &".
10779 <name_and_matcher::operator==>: Update.
10780 * unittests/lookup_name_info-selftests.c: Change type of
10781 "result".
10782
740480b8
TT
107832020-04-23 Tom Tromey <tom@tromey.com>
10784
10785 * inferior.h (iterate_over_inferiors): Don't declare.
10786 * inferior.c (iterate_over_inferiors): Remove.
10787 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10788 Remove.
10789 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10790 use iterate_over_inferiors.
10791 (darwin_resume_inferior_it)
10792 (struct resume_inferior_threads_param)
10793 (darwin_resume_inferior_threads_it): Remove.
10794 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10795
ae3ab1f0
TV
107962020-04-23 Tom de Vries <tdevries@suse.de>
10797
10798 * blockframe.c (find_pc_partial_function): Use
10799 find_pc_sect_compunit_symtab rather than
10800 objfile->sf->qf->find_pc_sect_compunit_symtab.
10801
317d2668
TV
108022020-04-22 Tom de Vries <tdevries@suse.de>
10803
10804 PR symtab/25764
10805 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10806 in psymtabs.
10807
eea9e357
TV
108082020-04-22 Tom de Vries <tdevries@suse.de>
10809
10810 PR symtab/25801
10811 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10812 symtabs.
10813
3d5afab3
TV
108142020-04-22 Tom de Vries <tdevries@suse.de>
10815
10816 PR symtab/25700
10817 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10818 CU if already created.
10819
d43b7a2d
TBA
108202020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10821
10822 * infrun.c (displaced_step_fixup): Switch to the event_thread
10823 before calling displaced_step_restore, not after.
10824
d89edf9b
MM
108252020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10826
10827 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10828 its inferior is not recorded by us.
10829 (record_btrace_target_open): Replace call to
10830 all_non_exited_threads () with call to current_inferior
10831 ()->non_exited_threads ().
10832 (record_btrace_target::stop_recording): Likewise.
10833 (record_btrace_target::close): Likewise.
10834 (record_btrace_target::wait): Likewise.
10835 (record_btrace_target::record_stop_replaying): Likewise.
10836
5897fd49
MM
108372020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10838
10839 * btrace.c (btrace_enable): Throw an error on double enables and
10840 when enabling recording fails.
10841 (btrace_disable): Throw an error if the thread is not recorded.
10842
1a476b6d
MM
108432020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10844
10845 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10846 request if we do not have a thread_info.
10847
4778a5f8
TV
108482020-04-21 Tom de Vries <tdevries@suse.de>
10849
10850 PR gdb/25471
10851 * thread.c
10852 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10853 exception in get_frame_id.
10854
0fa7617d
TT
108552020-04-20 Tom Tromey <tromey@adacore.com>
10856
10857 * python/python.c (struct gdbpy_event): Mark move constructor as
10858 noexcept.
10859 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10860 constructor as noexcept.
10861 * completer.h (struct completion_result): Mark move constructor as
10862 noexcept.
10863 * completer.c (completion_result::completion_result): Use
10864 initialization style. Don't call reset_match_list.
10865
ad23bda0
MS
108662020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10867
10868 * MAINTAINERS (Write After Approval): Add myself.
10869
45e1f031
TT
108702020-04-18 Tom Tromey <tom@tromey.com>
10871
10872 * windows-tdep.c (init_w32_command_list)
10873 (w32_prefix_command_valid): Restore.
10874 (_initialize_windows_tdep): Call init_w32_command_list.
10875
08feed99
TT
108762020-04-18 Tom Tromey <tom@tromey.com>
10877
10878 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10879 * value.c (value_fn_field): Update.
10880 * valops.c (find_function_in_inferior)
10881 (value_allocate_space_in_inferior): Update.
10882 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10883 Update.
10884 * tui/tui-source.c (tui_source_window::set_contents): Update.
10885 * symtab.c (lookup_global_or_static_symbol)
10886 (find_function_start_sal_1, skip_prologue_sal)
10887 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10888 * symmisc.c (dump_msymbols, dump_symtab_1)
10889 (maintenance_print_one_line_table): Update.
10890 * symfile.c (init_entry_point_info, section_is_mapped)
10891 (list_overlays_command, simple_read_overlay_table)
10892 (simple_overlay_update_1): Update.
10893 * stap-probe.c (handle_stap_probe): Update.
10894 * stabsread.c (dbx_init_float_type, define_symbol)
10895 (read_one_struct_field, read_enum_type, read_range_type): Update.
10896 * source.c (info_line_command): Update.
10897 * python/python.c (gdbpy_source_objfile_script)
10898 (gdbpy_execute_objfile_script): Update.
10899 * python/py-type.c (save_objfile_types): Update.
10900 * python/py-objfile.c (py_free_objfile): Update.
10901 * python/py-inferior.c (python_new_objfile): Update.
10902 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10903 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10904 (maintenance_check_psymtabs): Update.
10905 * printcmd.c (info_address_command): Update.
10906 * objfiles.h (struct objfile) <arch>: New method, from
10907 get_objfile_arch.
10908 (get_objfile_arch): Don't declare.
10909 * objfiles.c (get_objfile_arch): Remove.
10910 (filter_overlapping_sections): Update.
10911 * minsyms.c (msymbol_is_function): Update.
10912 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10913 (output_nondebug_symbol): Update.
10914 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10915 (mdebug_expand_psymtab): Update.
10916 * machoread.c (macho_add_oso_symfile): Update.
10917 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10918 Update.
10919 * linux-fork.c (checkpoint_command): Update.
10920 * linespec.c (convert_linespec_to_sals): Update.
10921 * jit.c (finalize_symtab): Update.
10922 * infrun.c (insert_exception_resume_from_probe): Update.
10923 * ia64-tdep.c (ia64_find_unwind_table): Update.
10924 * hppa-tdep.c (internalize_unwinds): Update.
10925 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10926 Update.
10927 * gcore.c (call_target_sbrk): Update.
10928 * elfread.c (record_minimal_symbol, elf_symtab_read)
10929 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10930 (elf_gnu_ifunc_resolve_by_got): Update.
10931 * dwarf2/read.c (create_addrmap_from_index)
10932 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10933 (read_debug_names_from_section)
10934 (process_psymtab_comp_unit_reader, add_partial_symbol)
10935 (add_partial_subprogram, process_full_comp_unit)
10936 (read_file_scope, read_func_scope, read_lexical_block_scope)
10937 (read_call_site_scope, dwarf2_ranges_read)
10938 (dwarf2_record_block_ranges, dwarf2_add_field)
10939 (mark_common_block_symbol_computed, read_tag_pointer_type)
10940 (read_tag_string_type, dwarf2_init_float_type)
10941 (dwarf2_init_complex_target_type, read_base_type)
10942 (partial_die_info::read, partial_die_info::read)
10943 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10944 (dwarf2_fetch_die_loc_sect_off): Update.
10945 * dwarf2/loc.c (dwarf2_find_location_expression)
10946 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10947 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10948 (dwarf2_loc_desc_get_symbol_read_needs)
10949 (locexpr_describe_location_piece, locexpr_describe_location_1)
10950 (loclist_describe_location): Update.
10951 * dwarf2/index-write.c (write_debug_names): Update.
10952 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10953 * dtrace-probe.c (dtrace_process_dof): Update.
10954 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10955 (process_one_symbol): Update.
10956 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10957 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10958 (coff_read_enum_type): Update.
10959 * cli/cli-cmds.c (edit_command, list_command): Update.
10960 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10961 * breakpoint.c (create_overlay_event_breakpoint)
10962 (create_longjmp_master_breakpoint)
10963 (create_std_terminate_master_breakpoint)
10964 (create_exception_master_breakpoint, get_sal_arch): Update.
10965 * block.c (block_gdbarch): Update.
10966 * annotate.c (annotate_source_line): Update.
10967
0743fc83
TT
109682020-04-17 Tom Tromey <tromey@adacore.com>
10969
10970 * auto-load.c (show_auto_load_cmd): Remove.
10971 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10972 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10973 (maintenance_print_arc_command): Remove.
10974 * tui/tui-win.c (tui_command): Remove.
10975 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10976 * tui/tui-layout.c (tui_layout_command): Remove.
10977 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10978 * python/python.c (user_set_python, user_show_python): Remove.
10979 (_initialize_python): Use add_basic_prefix_cmd,
10980 add_show_prefix_cmd.
10981 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10982 (install_gdb_commands): Use add_basic_prefix_cmd,
10983 add_show_prefix_cmd.
10984 (info_guile_command): Remove.
10985 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10986 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10987 add_show_prefix_cmd.
10988 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10989 Remove do_set and do_show parameters.
10990 * cli/cli-style.c (set_style, show_style): Remove.
10991 (_initialize_cli_style): Use add_basic_prefix_cmd,
10992 add_show_prefix_cmd.
10993 (cli_style_option::add_setshow_commands): Remove do_set and
10994 do_show parameters.
10995 (cli_style_option::add_setshow_commands): Use
10996 add_basic_prefix_cmd, add_show_prefix_cmd.
10997 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10998 (set_style_name): Remove.
10999 * cli/cli-dump.c (dump_command, append_command): Remove.
11000 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11001 (tekhex_dump_command, binary_dump_command)
11002 (binary_append_command): Remove.
11003 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11004 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11005 (init_w32_command_list): Remove; move into ...
11006 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11007 * valprint.c (set_print, show_print, set_print_raw)
11008 (show_print_raw): Remove.
11009 (_initialize_valprint): Use add_basic_prefix_cmd,
11010 add_show_prefix_cmd.
11011 * typeprint.c (set_print_type, show_print_type): Remove.
11012 (_initialize_typeprint): Use add_basic_prefix_cmd,
11013 add_show_prefix_cmd.
11014 * record.c (set_record_command, show_record_command): Remove.
11015 (_initialize_record): Use add_basic_prefix_cmd,
11016 add_show_prefix_cmd.
11017 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11018 add_show_prefix_cmd.
11019 (info_command, show_command, set_debug, show_debug): Remove.
11020 * top.h (set_history, show_history): Don't declare.
11021 * top.c (set_history, show_history): Remove.
11022 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11023 (unset_tdesc_cmd): Remove.
11024 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11025 add_show_prefix_cmd.
11026 * symtab.c (info_module_command): Remove.
11027 (_initialize_symtab): Use add_basic_prefix_cmd.
11028 * symfile.c (overlay_command): Remove.
11029 (_initialize_symfile): Use add_basic_prefix_cmd.
11030 * sparc64-tdep.c (info_adi_command): Remove.
11031 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11032 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11033 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11034 add_show_prefix_cmd.
11035 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11036 (_initialize_serial): Use add_basic_prefix_cmd,
11037 add_show_prefix_cmd.
11038 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11039 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11040 add_show_prefix_cmd.
11041 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11042 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11043 add_show_prefix_cmd.
11044 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11045 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11046 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11047 add_show_prefix_cmd.
11048 * remote.c (remote_command, set_remote_cmd): Remove.
11049 (_initialize_remote): Use add_basic_prefix_cmd.
11050 * record-full.c (set_record_full_command)
11051 (show_record_full_command): Remove.
11052 (_initialize_record_full): Use add_basic_prefix_cmd,
11053 add_show_prefix_cmd.
11054 * record-btrace.c (cmd_set_record_btrace)
11055 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11056 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11057 (cmd_show_record_btrace_pt): Remove.
11058 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11059 add_show_prefix_cmd.
11060 * ravenscar-thread.c (set_ravenscar_command)
11061 (show_ravenscar_command): Remove.
11062 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11063 add_show_prefix_cmd.
11064 * mips-tdep.c (show_mips_command, set_mips_command)
11065 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11066 add_show_prefix_cmd.
11067 * maint.c (maintenance_command, maintenance_info_command)
11068 (maintenance_check_command, maintenance_print_command)
11069 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11070 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11071 add_show_prefix_cmd.
11072 (show_per_command_cmd): Remove.
11073 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11074 Remove.
11075 (maintenance_show_test_settings_cmd): Remove.
11076 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11077 add_show_prefix_cmd.
11078 * maint-test-options.c (maintenance_test_options_command):
11079 Remove.
11080 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11081 * macrocmd.c (macro_command): Remove
11082 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11083 * language.c (set_check, show_check): Remove.
11084 (_initialize_language): Use add_basic_prefix_cmd,
11085 add_show_prefix_cmd.
11086 * infcmd.c (unset_command): Remove.
11087 (_initialize_infcmd): Use add_basic_prefix_cmd.
11088 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11089 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11090 add_show_prefix_cmd.
11091 * go32-nat.c (go32_info_dos_command): Remove.
11092 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11093 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11094 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11095 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11096 (_initialize_frame): Use add_basic_prefix_cmd,
11097 add_show_prefix_cmd.
11098 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11099 (_initialize_dcache): Use add_basic_prefix_cmd,
11100 add_show_prefix_cmd.
11101 * cp-support.c (maint_cplus_command): Remove.
11102 (_initialize_cp_support): Use add_basic_prefix_cmd.
11103 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11104 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11105 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11106 add_basic_prefix_cmd, add_show_prefix_cmd.
11107 * breakpoint.c (save_command): Remove.
11108 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11109 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11110 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11111 add_show_prefix_cmd.
11112 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11113 (set_ada_command, show_ada_command): Remove.
11114 (_initialize_ada_language): Use add_basic_prefix_cmd,
11115 add_show_prefix_cmd.
11116 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11117
3557f442
KR
111182020-04-16 Kamil Rytarowski <n54@gmx.com>
11119
11120 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11121 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11122
16197208
SM
111232020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11124
11125 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11126 warning messages.
11127
00ac85d3
SM
111282020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11129
11130 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11131 import table is not at beginning of .idata section.
11132
381ce63f
PA
111332020-04-16 Pedro Alves <palves@redhat.com>
11134
11135 * inferior.c (delete_inferior): Use delete operator directly
11136 instead of delete_program_space.
11137 * progspace.c (add_program_space): New, factored out from
11138 program_space::program_space.
11139 (remove_program_space): New, factored out from
11140 delete_program_space.
11141 (program_space::program_space): Remove intro comment. Rewrite.
11142 (program_space::~program_space): Remove intro comment. Call
11143 remove_program_space.
11144 (delete_program_space): Delete.
11145 * progspace.h (program_space::program_space): Make explicit. Move
11146 intro comment here, adjusted.
11147 (program_space::~program_space): Move intro comment here,
11148 adjusted.
11149 (delete_program_space): Remove.
11150
a010605f
TT
111512020-04-16 Tom Tromey <tromey@adacore.com>
11152
11153 * windows-nat.c (windows_nat::handle_access_violation): New
11154 function.
11155 * nat/windows-nat.h (handle_access_violation): Declare.
11156 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11157 windows-nat.c. Call handle_access_violation.
11158
efba5c23
TV
111592020-04-16 Tom de Vries <tdevries@suse.de>
11160
11161 PR symtab/25791
11162 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11163 CUs without psymtab.
11164
97ed802d
KB
111652020-04-16 Kevin Buettner <kevinb@redhat.com>
11166
11167 * python/python.c (do_start_initialization): Don't call
11168 PyEval_InitThreads for Python 3.9 and beyond.
11169
c7d64809
KR
111702020-04-15 Kamil Rytarowski <n54@gmx.com>
11171
11172 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11173 thread functions.
11174 (obsd_nat_target::wait): Likewise.
11175
ce127a96
TT
111762020-04-15 Tom Tromey <tromey@adacore.com>
11177
11178 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11179 (DEBUG_EXCEPT): Use debug_printf.
11180
99f1bc6a
AB
111812020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11182
11183 * completer.c (class completion_tracker::completion_hash_entry)
11184 <hash_name>: New member function.
11185 (completion_tracker::discard_completions): New callback to hash a
11186 completion_hash_entry, pass this to htab_create_alloc.
11187
a0e9b532
JT
111882016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11189
11190 * windows-nat.c (windows_make_so): Warn rather than stopping with
11191 an error if realpath() fails.
11192
06ca5dd4
KR
111932020-04-14 Kamil Rytarowski <n54@gmx.com>
11194
11195 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11196 (nbsd_nat_target::info_proc): Add do_status.
11197
194d088f
TV
111982020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11199 Tom de Vries <tdevries@suse.de>
11200
11201 PR symtab/25718
11202 * psympriv.h (struct partial_symtab::read_symtab)
11203 (struct partial_symtab::expand_psymtab)
11204 (struct partial_symtab::read_dependencies): Update comments.
11205 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11206 read_symtab for includer.
11207 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11208 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11209 (struct dwarf2_include_psymtab::m_readin): Remove.
11210 (struct dwarf2_include_psymtab::includer): New member function.
11211 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11212
c1a66c06
TV
112132020-04-14 Tom de Vries <tdevries@suse.de>
11214
11215 PR symtab/25720
11216 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11217 with NULL symbol_matcher and lookup_name.
11218 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11219 and lookup_name.
11220 * dwarf2/read.c (dw2_expand_symtabs_matching)
11221 (dw2_debug_names_expand_symtabs_matching): Same.
11222 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11223 Make lookup_name a pointer. Update comment.
11224 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11225 lookup_name being a pointer.
11226 * symfile.c (expand_symtabs_matching): Same.
11227 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11228 * linespec.c (iterate_over_all_matching_symtabs): Same.
11229
400b5eca
TT
112302020-04-13 Tom Tromey <tom@tromey.com>
11231
11232 * run-on-main-thread.c: Update include.
11233 * unittests/main-thread-selftests.c: Update include.
11234 * tui/tui-win.c: Update include.
11235 * tui/tui-io.c: Update include.
11236 * tui/tui-interp.c: Update include.
11237 * tui/tui-hooks.c: Update include.
11238 * top.h: Update include.
11239 * top.c: Update include.
11240 * ser-base.c: Update include.
11241 * remote.c: Update include.
11242 * remote-notif.c: Update include.
11243 * remote-fileio.c: Update include.
11244 * record-full.c: Update include.
11245 * record-btrace.c: Update include.
11246 * python/python.c: Update include.
11247 * posix-hdep.c: Update include.
11248 * mingw-hdep.c: Update include.
11249 * mi/mi-main.c: Update include.
11250 * mi/mi-interp.c: Update include.
11251 * main.c: Update include.
11252 * linux-nat.c: Update include.
11253 * interps.c: Update include.
11254 * infrun.c: Update include.
11255 * inf-loop.c: Update include.
11256 * event-top.c: Update include.
11257 * event-loop.c: Move to ../gdbsupport/.
11258 * event-loop.h: Move to ../gdbsupport/.
11259 * async-event.h: Update include.
11260 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11261
93b54c8e
TT
112622020-04-13 Tom Tromey <tom@tromey.com>
11263
11264 * tui/tui-win.c: Include async-event.h.
11265 * remote.c: Include async-event.h.
11266 * remote-notif.c: Include async-event.h.
11267 * record-full.c: Include async-event.h.
11268 * record-btrace.c: Include async-event.h.
11269 * infrun.c: Include async-event.h.
11270 * event-top.c: Include async-event.h.
11271 * event-loop.h: Move some declarations to async-event.h.
11272 * event-loop.c: Don't include ser-event.h or top.h. Move some
11273 code to async-event.c.
11274 * async-event.h: New file.
11275 * async-event.c: New file.
11276 * Makefile.in (COMMON_SFILES): Add async-event.c.
11277 (HFILES_NO_SRCDIR): Add async-event.h.
11278
c1cd3163
TT
112792020-04-13 Tom Tromey <tom@tromey.com>
11280
11281 * utils.c (flush_streams): New function.
11282 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11283
29f2bf4f
TT
112842020-04-13 Tom Tromey <tom@tromey.com>
11285
11286 * event-loop.c (handle_file_event): Use warning, not
11287 printf_unfiltered.
11288
98029d02
TT
112892020-04-13 Tom Tromey <tom@tromey.com>
11290
11291 * event-loop.c: Include <chrono>.
11292
06cc9596
TT
112932020-04-13 Tom Tromey <tom@tromey.com>
11294
11295 * gdb_select.h: Move to ../gdbsupport/.
11296 * event-loop.c: Update include path.
11297 * top.c: Update include path.
11298 * ser-base.c: Update include path.
11299 * ui-file.c: Update include path.
11300 * ser-tcp.c: Update include path.
11301 * guile/scm-ports.c: Update include path.
11302 * posix-hdep.c: Update include path.
11303 * ser-unix.c: Update include path.
11304 * gdb_usleep.c: Update include path.
11305 * mingw-hdep.c: Update include path.
11306 * inflow.c: Update include path.
11307 * infrun.c: Update include path.
11308 * event-top.c: Update include path.
11309
8ae8e197
TT
113102020-04-13 Tom Tromey <tom@tromey.com>
11311
11312 * configure: Rebuild.
11313 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11314
58cf28e8
TT
113152020-04-13 Tom Tromey <tom@tromey.com>
11316
11317 * event-loop.h (start_event_loop): Don't declare.
11318 * event-loop.c (start_event_loop): Move...
11319 * main.c (start_event_loop): ...here. Now static.
11320
b7f999ae
SDJ
113212020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11322
11323 * MAINTAINERS: Update my email address.
11324
1085dfd4
KR
113252020-04-12 Kamil Rytarowski <n54@gmx.com>
11326
11327 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11328 IP_ALL.
11329
49d1d1f5
KR
113302020-04-12 Kamil Rytarowski <n54@gmx.com>
11331
11332 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11333 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11334
b4848d2a
KR
113352020-04-12 Kamil Rytarowski <n54@gmx.com>
11336
11337 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11338 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11339
51c133d5
KR
113402020-04-12 Kamil Rytarowski <n54@gmx.com>
11341
11342 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11343
54b8cbd0
KR
113442020-04-11 Kamil Rytarowski <n54@gmx.com>
11345
11346 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11347 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11348 (nbsd_nat_target::info_proc): New functions.
11349 * nbsd-nat.c (kinfo_get_vmmap): New function.
11350 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11351 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11352 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11353 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11354 functions.
11355 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11356 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11357 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11358 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11359 (KINFO_VME_FLAG_GROWS_DOWN): New.
11360
cf83625d
AS
113612020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11362
11363 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11364 bit shift.
11365
0c4311ab
TT
113662020-04-10 Tom Tromey <tromey@adacore.com>
11367
11368 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11369
3e65b3e9
TT
113702020-04-10 Tom Tromey <tromey@adacore.com>
11371
11372 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11373 separate debug files.
11374
13302e95
HD
113752020-04-10 Hannes Domani <ssbssa@yahoo.de>
11376
11377 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11378 Move to...
11379 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11380 ... here.
11381 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11382 Check for STATUS_WX86_BREAKPOINT.
11383 (windows_nat_target::wait): Same.
11384
bdfc1e8a
TV
113852020-04-10 Tom de Vries <tdevries@suse.de>
11386
11387 PR cli/25808
11388 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11389
f4460aec
SM
113902020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11391
11392 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11393 (Write After Approval): Remove Tom de Vries.
11394
a25198bb
BE
113952020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11396
11397 revert partially:
11398 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11399
aac66a4c
SM
11400 * buildsym.c (record_line): Fix undefined behavior and preserve
11401 lines at eof.
a25198bb 11402
206c98a6
KR
114032020-04-09 Kamil Rytarowski <n54@gmx.com>
11404
11405 * auxv.h (svr4_auxv_parse): New.
11406 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11407 and generic_auxv_parse.
11408 (svr4_auxv_parse): Add.
11409 * obsd-tdep.c: Include "auxv.h".
11410 (obsd_auxv_parse): Remove.
11411 (obsd_init_abi): Remove comment.
11412 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11413 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11414 * nbsd-tdep.c: Include "auxv.h".
11415 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11416
71fbdbaf
TT
114172020-04-08 Tom Tromey <tromey@adacore.com>
11418
11419 * nat/windows-nat.h (last_wait_event): Don't declare.
11420 (wait_for_debug_event): Update comment.
11421 * nat/windows-nat.c (last_wait_event): Now static.
11422
2c1d95e8
TT
114232020-04-08 Tom Tromey <tromey@adacore.com>
11424
11425 * windows-nat.c (wait_for_debug_event): Move to
11426 nat/windows-nat.c.
11427 * nat/windows-nat.h (wait_for_debug_event): Declare.
11428 * nat/windows-nat.c (wait_for_debug_event): Move from
11429 windows-nat.c. No longer static.
11430
d2977bc4
TT
114312020-04-08 Tom Tromey <tromey@adacore.com>
11432
11433 * windows-nat.c (get_windows_debug_event): Use
11434 fetch_pending_stop.
11435 * nat/windows-nat.h (fetch_pending_stop): Declare.
11436 * nat/windows-nat.c (fetch_pending_stop): New function.
11437
e758e19c
TT
114382020-04-08 Tom Tromey <tromey@adacore.com>
11439
11440 * windows-nat.c (windows_continue): Use matching_pending_stop and
11441 continue_last_debug_event.
11442 * nat/windows-nat.h (matching_pending_stop)
11443 (continue_last_debug_event): Declare.
11444 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11445 (matching_pending_stop, continue_last_debug_event): New
11446 functions.
11447
8d30e395
TT
114482020-04-08 Tom Tromey <tromey@adacore.com>
11449
11450 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11451 (handle_exception_result): Move to nat/windows-nat.h.
11452 (DEBUG_EXCEPTION_SIMPLE): Remove.
11453 (windows_nat::handle_ms_vc_exception): New function.
11454 (handle_exception): Move to nat/windows-nat.c.
11455 (get_windows_debug_event): Update.
11456 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11457 nat/windows-nat.c.
11458 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11459 (handle_exception_result): Move from windows-nat.c.
11460 (handle_exception): Declare.
11461 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11462 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11463 windows-nat.c.
11464
29de418d
TT
114652020-04-08 Tom Tromey <tromey@adacore.com>
11466
11467 * windows-nat.c (exception_count, event_count): Remove.
11468 (handle_exception, get_windows_debug_event)
11469 (do_initial_windows_stuff): Update.
11470
a816ba18
TT
114712020-04-08 Tom Tromey <tromey@adacore.com>
11472
11473 * windows-nat.c (windows_nat::handle_load_dll)
11474 (windows_nat::handle_unload_dll): Rename. No longer static.
11475 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11476 Declare.
11477
a00caa12
TT
114782020-04-08 Tom Tromey <tromey@adacore.com>
11479
11480 * complaints.h (stop_whining): Declare at top-level.
11481 (complaint): Don't declare stop_whining.
11482
d41b524f
TT
114832020-04-08 Tom Tromey <tromey@adacore.com>
11484
11485 * windows-nat.c (windows_nat::handle_output_debug_string):
11486 Rename. No longer static.
11487 * nat/windows-nat.h (handle_output_debug_string): Declare.
11488
3c76026d
TT
114892020-04-08 Tom Tromey <tromey@adacore.com>
11490
11491 * windows-nat.c (current_process_handle, current_process_id)
11492 (main_thread_id, last_sig, current_event, last_wait_event)
11493 (current_windows_thread, desired_stop_thread_id, pending_stops)
11494 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11495 (display_selectors, fake_create_process)
11496 (get_windows_debug_event): Update.
11497 * nat/windows-nat.h (current_process_handle, current_process_id)
11498 (main_thread_id, last_sig, current_event, last_wait_event)
11499 (current_windows_thread, desired_stop_thread_id, pending_stops)
11500 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11501 * nat/windows-nat.c (current_process_handle, current_process_id)
11502 (main_thread_id, last_sig, current_event, last_wait_event)
11503 (current_windows_thread, desired_stop_thread_id, pending_stops)
11504 (siginfo_er): New globals. Move from windows-nat.c.
11505
9d8679cc
TT
115062020-04-08 Tom Tromey <tromey@adacore.com>
11507
11508 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11509 (handle_load_dll): Update.
11510 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11511
28688adf
TT
115122020-04-08 Tom Tromey <tromey@adacore.com>
11513
11514 * windows-nat.c (enum thread_disposition_type): Move to
11515 nat/windows-nat.h.
11516 (windows_nat::thread_rec): Rename from thread_rec. No longer
11517 static.
11518 (windows_add_thread, windows_nat_target::fetch_registers)
11519 (windows_nat_target::store_registers, handle_exception)
11520 (windows_nat_target::resume, get_windows_debug_event)
11521 (windows_nat_target::get_tib_address)
11522 (windows_nat_target::thread_name)
11523 (windows_nat_target::thread_alive): Update.
11524 * nat/windows-nat.h (enum thread_disposition_type): Move from
11525 windows-nat.c.
11526 (thread_rec): Declare.
11527
4834dad0
TT
115282020-04-08 Tom Tromey <tromey@adacore.com>
11529
11530 * windows-nat.c: Add "using namespace".
11531 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11532 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11533
65bafd5b
TT
115342020-04-08 Tom Tromey <tromey@adacore.com>
11535
11536 * nat/windows-nat.h (struct windows_thread_info): Declare
11537 destructor.
11538 * nat/windows-nat.c (~windows_thread_info): New.
11539
0a4afda3
TT
115402020-04-08 Tom Tromey <tromey@adacore.com>
11541
11542 PR gdb/22992
11543 * windows-nat.c (current_event): Update comment.
11544 (last_wait_event, desired_stop_thread_id): New globals.
11545 (struct pending_stop): New.
11546 (pending_stops): New global.
11547 (windows_nat_target) <stopped_by_sw_breakpoint>
11548 <supports_stopped_by_sw_breakpoint>: New methods.
11549 (windows_fetch_one_register): Add assertions. Adjust PC.
11550 (windows_continue): Handle pending stops. Suspend other threads
11551 when stepping. Use last_wait_event
11552 (wait_for_debug_event): New function.
11553 (get_windows_debug_event): Use wait_for_debug_event. Handle
11554 pending stops. Queue spurious stops.
11555 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11556 (windows_nat_target::kill): Use wait_for_debug_event.
11557 * nat/windows-nat.h (struct windows_thread_info)
11558 <stopped_at_software_breakpoint>: New field.
11559 * nat/windows-nat.c (windows_thread_info::resume): Clear
11560 stopped_at_software_breakpoint.
11561
8e61ebec
TT
115622020-04-08 Tom Tromey <tromey@adacore.com>
11563
11564 * windows-nat.c (enum thread_disposition_type): New.
11565 (thread_rec): Replace "get_context" parameter with "disposition";
11566 change type.
11567 (windows_add_thread, windows_nat_target::fetch_registers)
11568 (windows_nat_target::store_registers, handle_exception)
11569 (windows_nat_target::resume, get_windows_debug_event)
11570 (windows_nat_target::get_tib_address)
11571 (windows_nat_target::thread_name)
11572 (windows_nat_target::thread_alive): Update.
11573
98a03287
TT
115742020-04-08 Tom Tromey <tromey@adacore.com>
11575
11576 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11577 (windows_continue): Use windows_continue::resume.
11578 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11579 resume>: Declare new methods.
11580 * nat/windows-nat.c: New file.
11581 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11582
7c7411bc
TT
115832020-04-08 Tom Tromey <tromey@adacore.com>
11584
11585 * windows-nat.c (windows_add_thread, windows_delete_thread)
11586 (windows_nat_target::fetch_registers)
11587 (windows_nat_target::store_registers, fake_create_process)
11588 (windows_nat_target::resume, windows_nat_target::resume)
11589 (get_windows_debug_event, windows_nat_target::wait)
11590 (windows_nat_target::pid_to_str)
11591 (windows_nat_target::get_tib_address)
11592 (windows_nat_target::get_ada_task_ptid)
11593 (windows_nat_target::thread_name)
11594 (windows_nat_target::thread_alive): Use lwp, not tid.
11595
2950fdf7
TT
115962020-04-08 Tom Tromey <tromey@adacore.com>
11597
11598 * windows-nat.c (handle_exception)
11599 (windows_nat_target::thread_name): Update.
11600 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11601 <name>: Now unique_xmalloc_ptr.
11602
62fe396b
TT
116032020-04-08 Tom Tromey <tromey@adacore.com>
11604
11605 * windows-nat.c (thread_rec)
11606 (windows_nat_target::fetch_registers): Update.
11607 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11608 Update comment.
11609 <debug_registers_changed, reload_context>: Now bool.
11610
e9534bd2
TT
116112020-04-08 Tom Tromey <tromey@adacore.com>
11612
11613 * windows-nat.c (windows_add_thread): Use new.
11614 (windows_init_thread_list, windows_delete_thread): Use delete.
11615 (get_windows_debug_event): Update.
11616 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11617 destructor, and initializers.
11618
ae1f8880
TT
116192020-04-08 Tom Tromey <tromey@adacore.com>
11620
11621 * windows-nat.c (struct windows_thread_info): Remove.
11622 * nat/windows-nat.h: New file.
11623
55a1e039
TT
116242020-04-08 Tom Tromey <tromey@adacore.com>
11625
11626 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11627 (thread_rec, windows_add_thread, windows_delete_thread)
11628 (windows_continue): Update.
11629
93366324
TT
116302020-04-08 Tom Tromey <tromey@adacore.com>
11631
11632 * windows-nat.c (struct windows_thread_info): Remove typedef.
11633 (thread_head): Remove.
11634 (thread_list): New global.
11635 (thread_rec, windows_add_thread, windows_init_thread_list)
11636 (windows_delete_thread, windows_continue): Update.
11637
0f2265e2
SM
116382020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11639
11640 * windows-tdep.h (windows_init_abi): Add comment.
11641 (cygwin_init_abi): New declaration.
11642 * windows-tdep.c: Split signal enumeration in two, one for
11643 Windows and one for Cygwin.
11644 (windows_gdb_signal_to_target): Only deal with signal of the
11645 Windows OS ABI.
11646 (cygwin_gdb_signal_to_target): New function.
11647 (windows_init_abi): Rename to windows_init_abi_common, don't set
11648 gdb_signal_to_target gdbarch method. Add new new function with
11649 this name.
11650 (cygwin_init_abi): New function.
11651 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11652 comment. Don't call windows_init_abi.
11653 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11654 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11655 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11656 i386_windows_init_abi_common, don't call windows_init_abi. Add
11657 a new function of this name.
11658 (i386_cygwin_init_abi): New function.
11659 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11660 OS ABI Cygwin.
11661
3810f182
SM
116622020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11663
11664 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11665 parameter.c.
11666 (dwarf2_read_gdb_index): Update.
11667
063f8e80
KR
116682020-04-07 Kamil Rytarowski <n54@gmx.com>
11669
11670 * nbsd-tdep.c: Include "objfiles.h".
11671 (nbsd_skip_solib_resolver): New.
11672 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11673
85a9510c 116742020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11675
11676 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11677 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11678 with DW_LLE_base_addressx are being emitted in DWARFv5.
11679 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11680 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11681 unsigned integer.
11682
9fc3eaae 116832020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11684
11685 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11686 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11687 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11688 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11689 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11690 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11691 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11692
11693
41144253 116942020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11695
11696 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11697 (read_loclist_index): New function definition.
11698 (lookup_loclist_base): New function definition.
11699 (read_loclist_header): New function definition.
11700 (dwarf2_cu): Add loclist_base and loclist_header field.
11701 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11702 (read_full_die_1): Read the value of DW_AT_loclists_base.
11703 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11704 (read_attribute_value): Handle DW_FORM_loclistx.
11705 (skip_one_die): Handle DW_FORM_loclistx.
11706 (loclist_header): New structure declaration.
11707 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11708
9f4e76a4
SM
117092020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11710
11711 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11712 constructor. Remove `addr` parameter from other constructor and
11713 add `per_cu` parameter.
11714 * dwarf2/read.c (create_partial_symtab): Update.
11715
25c11aca
TV
117162020-04-07 Tom de Vries <tdevries@suse.de>
11717
11718 PR symtab/25796
11719 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11720 (partial_die_info::fixup): Inherit has_const_value.
11721
5707e24b
TV
117222020-04-07 Tom de Vries <tdevries@suse.de>
11723
11724 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11725 symbols without address.
11726
05f00e22
KR
117272020-04-06 Kamil Rytarowski <n54@gmx.com>
11728
11729 * nbsd-nat.h (struct thread_info): Add forward declaration.
11730 (nbsd_nat_target::thread_alive): Add.
11731 (nbsd_nat_target::thread_name): Likewise.
11732 (nbsd_nat_target::update_thread_list): Likewise.
11733 (update_thread_list::post_attach): Likewise.
11734 (post_attach::pid_to_str): Likewise.
11735 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11736 (nbsd_thread_lister): Add.
11737 (nbsd_nat_target::thread_alive): Likewise.
11738 (nbsd_nat_target::thread_name): Likewise.
11739 (nbsd_add_threads): Likewise.
11740 (update_thread_list::post_attach): Likewise.
11741 (nbsd_nat_target::update_thread_list): Likewise.
11742 (post_attach::pid_to_str): Likewise.
11743
6ee448cc
TT
117442020-04-06 Tom Tromey <tromey@adacore.com>
11745
11746 * ada-valprint.c (print_variant_part): Extract the variant field.
11747 (print_field_values): Use the field as the outer value when
11748 recursing.
11749
dea34e8c
TT
117502020-04-06 Tom Tromey <tromey@adacore.com>
11751
11752 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11753 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11754 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11755 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11756 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11757
93689ce9
TT
117582020-04-06 Tom Tromey <tromey@adacore.com>
11759
11760 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11761 TYPE_CODE_ERROR.
11762
79743962
KR
117632020-04-06 Kamil Rytarowski <n54@gmx.com>
11764
11765 * nbsd-tdep.c: Include "gdbarch.h".
11766 Define enum with NetBSD signal numbers.
11767 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11768 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11769 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11770 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11771 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11772 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11773 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11774 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11775 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11776 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11777 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11778 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11779
9e7c9a03
HD
117802020-04-03 Hannes Domani <ssbssa@yahoo.de>
11781
11782 PR gdb/25325
11783 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11784
d9e49b61
TT
117852020-04-03 Tom Tromey <tromey@adacore.com>
11786
11787 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11788 Read constant block.
11789
e0fc5c3f
SM
117902020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11791
11792 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11793 (gdb_bfd_get_full_section_contents): New declaration.
11794 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11795 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11796 gdb_bfd_get_full_section_contents.
11797
e2ff18a0
SM
117982020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11799
11800 * exec.c (build_section_table): Replace internal_error with
11801 gdb_assert.
11802 (section_table_xfer_memory_partial): Likewise.
11803 * mdebugread.c (parse_partial_symbols): Likewise.
11804 * psymtab.c (lookup_partial_symbol): Likewise.
11805 * utils.c (wrap_here): Likewise.
11806
0830d301
TT
118072020-04-02 Tom Tromey <tromey@adacore.com>
11808
11809 * f-lang.c (build_fortran_types): Use arch_type to initialize
11810 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11811
e7da7f8f
TT
118122020-04-02 Tom Tromey <tromey@adacore.com>
11813
11814 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11815 of attributes.
11816
c90d28ac
AB
118172020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11818 Bernd Edlinger <bernd.edlinger@hotmail.de>
11819 Tom Tromey <tromey@adacore.com>
11820
11821 * buildsym.c (buildsym_compunit::record_line): Remove
11822 deduplication code.
11823
1aa98955
TV
118242020-04-02 Tom de Vries <tdevries@suse.de>
11825
11826 PR ada/24671
11827 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11828
d3214198
TV
118292020-04-02 Tom de Vries <tdevries@suse.de>
11830
11831 * dwarf2/read.c (dwarf2_gdb_index_functions,
11832 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11833 NULL.
11834 * psymtab.c (psym_lookup_global_symbol_language): New function.
11835 (psym_functions): Init psym_lookup_global_symbol_language with
11836 psym_lookup_global_symbol_language.
11837 * symfile-debug.c (debug_sym_quick_functions): Init
11838 lookup_global_symbol_language with NULL.
11839 * symfile.c (set_initial_language): Remove fixme comment.
11840 * symfile.h (struct quick_symbol_functions): Add
11841 lookup_global_symbol_language.
11842 * symtab.c (find_quick_global_symbol_language): New function.
11843 (find_main_name): Use find_quick_global_symbol_language.
11844
2836752f
SM
118452020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11846
11847 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11848
64dc2d4b
BE
118492020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11850
11851 * buildsym.c (record_line): Fix undefined behavior and preserve
11852 lines at eof.
11853
bbe3dc41
BE
118542020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11855
11856 * buildsym.c (record_line): Fix the resizing condition.
11857
6b4a335b
TT
118582020-04-01 Tom Tromey <tom@tromey.com>
11859
11860 * value.h (value_literal_complex): Add comment.
11861 * valops.c (value_literal_complex): Refer to value.h.
11862
3638a098
TT
118632020-04-01 Tom Tromey <tom@tromey.com>
11864
11865 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11866 (scalar_type): New rule, from typebase.
11867 (typebase): Use scalar_type. Recognize complex types.
11868 (field_name): Handle FLOAT_KEYWORD.
11869 (ident_tokens): Add _Complex and __complex__.
11870
c34e8714
TT
118712020-04-01 Tom Tromey <tom@tromey.com>
11872
11873 PR exp/25299:
11874 * valarith.c (promotion_type, complex_binop): New functions.
11875 (scalar_binop): Handle complex numbers. Use promotion_type.
11876 (value_pos, value_neg, value_complement): Handle complex numbers.
11877
fa649bb7
TT
118782020-04-01 Tom Tromey <tom@tromey.com>
11879
11880 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11881 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11882 (parse_number): Handle complex numbers.
11883
981c08ce
TT
118842020-04-01 Tom Tromey <tom@tromey.com>
11885
11886 * c-valprint.c (c_decorations): Change complex suffix to "i".
11887
4c99290d
TT
118882020-04-01 Tom Tromey <tom@tromey.com>
11889
11890 * valprint.c (generic_value_print_complex): Use accessors.
11891 * value.h (value_real_part, value_imaginary_part): Declare.
11892 * valops.c (value_real_part, value_imaginary_part): New
11893 functions.
11894 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11895
5b930b45
TT
118962020-04-01 Tom Tromey <tom@tromey.com>
11897
11898 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11899 (read_range_type): Update.
11900 * mdebugread.c (basic_type): Update.
11901 * go-lang.c (build_go_types): Use init_complex_type.
11902 * gdbtypes.h (struct main_type) <complex_type>: New member.
11903 (init_complex_type): Update.
11904 (arch_complex_type): Don't declare.
11905 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11906 Make name if none given. Use alloc_type_copy. Look for cached
11907 complex type.
11908 (arch_complex_type): Remove.
11909 (gdbtypes_post_init): Use init_complex_type.
11910 * f-lang.c (build_fortran_types): Use init_complex_type.
11911 * dwarf2/read.c (read_base_type): Update.
11912 * d-lang.c (build_d_types): Use init_complex_type.
11913 * ctfread.c (read_base_type): Update.
11914
53cccef1
TBA
119152020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11916
11917 * infrun.c (stop_all_threads): Update assertion, plus when
11918 stopping threads, take into account that we might be trying
11919 to stop an all-stop target.
11920 (stop_waiting): Call 'stop_all_threads' if there exists a
11921 non-stop target.
11922
a0714d30
TBA
119232020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11924
11925 * target.h (exists_non_stop_target): New function declaration.
11926 * target.c (exists_non_stop_target): New function.
11927
60e22c1e
HD
119282020-04-01 Hannes Domani <ssbssa@yahoo.de>
11929
11930 PR gdb/24789
11931 * eval.c (is_integral_or_integral_reference): New function.
11932 (evaluate_subexp_standard): Allow integer references in
11933 pointer arithmetic.
11934
e139a727
TBA
119352020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11936
11937 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11938 check for no ptid in the stop reply when the target is non-stop.
11939
e0802d59
TT
119402020-04-01 Tom Tromey <tromey@adacore.com>
11941
11942 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11943 "name" parameter to rvalue reference. Initialize m_name_holder.
11944 <lookup_name_info>: New overloads.
11945 <name>: Return gdb::string_view.
11946 <c_str>: New method.
11947 <make_ignore_params>: Update.
11948 <search_name_hash>: Update.
11949 <language_lookup_name>: Return const char *.
11950 <m_name>: Change type.
11951 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11952 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11953 (lookup_name_info::match_any): Update.
11954 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11955 Update.
11956 * minsyms.c (linkage_name_str): Update.
11957 * language.c (default_symbol_name_matcher): Update.
11958 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11959 Update.
11960 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11961 (ada_lookup_name_info::ada_lookup_name_info): Update.
11962 (literal_symbol_name_matcher): Update.
11963
8c072cb6
TT
119642020-04-01 Tom Tromey <tromey@adacore.com>
11965
11966 * psymtab.c (psymtab_search_name): Remove function.
11967 (psym_lookup_symbol): Create search name and lookup name here.
11968 (lookup_partial_symbol): Remove "name" parameter; add
11969 lookup_name.
11970 (psym_expand_symtabs_for_function): Update.
11971
6f29a534
TT
119722020-03-31 Joel Jones <joelkevinjones@gmail.com>
11973
11974 PR tui/25597:
11975 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11976
af62665e
TT
119772020-03-31 Tom Tromey <tromey@adacore.com>
11978
11979 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11980 memcpy.
11981
d1a89da5
NC
119822020-03-30 Nelson Chu <nelson.chu@sifive.com>
11983
11984 * features/riscv/32bit-csr.xml: Regenerated.
11985 * features/riscv/64bit-csr.xml: Regenerated.
11986
d8af9068
TT
119872020-03-30 Tom Tromey <tromey@adacore.com>
11988
11989 * ada-valprint.c (print_variant_part): Update.
11990 * ada-lang.h (ada_which_variant_applies): Update.
11991 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11992 outer_valaddr parameters; replace with "outer" value parameter.
11993 (to_fixed_variant_branch_type): Update.
11994
227c0bf4
PFC
119952020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11996
11997 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11998 <list>. Remove inclusion of observable.h.
11999 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12000 (struct arch_lwp_info): New struct.
12001 (class ppc_linux_dreg_interface): New class.
12002 (struct ppc_linux_process_info): New struct.
12003 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12004 <low_new_clone, low_forget_process, low_prepare_to_resume>
12005 <copy_thread_dreg_state, mark_thread_stale>
12006 <mark_debug_registers_changed, register_hw_breakpoint>
12007 <clear_hw_breakpoint, register_wp, clear_wp>
12008 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12009 <num_memory_accesses, get_trigger_type>
12010 <create_watchpoint_request, hwdebug_point_cmp>
12011 <init_arch_lwp_info, get_arch_lwp_info>
12012 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12013 methods.
12014 <struct ptid_hash>: New inner struct.
12015 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12016 members.
12017 (saved_dabr_value, hwdebug_info, max_slots_number)
12018 (struct hw_break_tuple, struct thread_points, ppc_threads)
12019 (have_ptrace_hwdebug_interface)
12020 (hwdebug_find_thread_points_by_tid)
12021 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12022 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12023 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12024 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12025 use m_dreg_interface.
12026 (hwdebug_point_cmp): Change to...
12027 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12028 reference arguments instead of pointers.
12029 (ppc_linux_nat_target::ranged_break_num_registers): Use
12030 m_dreg_interface.
12031 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12032 m_dreg_interface. Call register_hw_breakpoint.
12033 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12034 m_dreg_interface. Call clear_hw_breakpoint.
12035 (get_trigger_type): Change to...
12036 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12037 comment.
12038 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12039 use m_dreg_interface. Call register_hw_breakpoint.
12040 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12041 use m_dreg_interface. Call clear_hw_breakpoint.
12042 (can_use_watchpoint_cond_accel): Change to...
12043 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12044 method. Update comment, use m_dreg_interface and
12045 m_process_info.
12046 (calculate_dvc): Change to...
12047 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12048 m_dreg_interface.
12049 (num_memory_accesses): Change to...
12050 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12051 (check_condition): Change to...
12052 (ppc_linux_nat_target::check_condition): ...this method.
12053 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12054 comment, use m_dreg_interface.
12055 (create_watchpoint_request): Change to...
12056 (ppc_linux_nat_target::create_watchpoint_request): ...this
12057 method. Use m_dreg_interface.
12058 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12059 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12060 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12061 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12062 (ppc_linux_nat_target::low_forget_process)
12063 (ppc_linux_nat_target::low_new_fork)
12064 (ppc_linux_nat_target::low_new_clone)
12065 (ppc_linux_nat_target::low_delete_thread)
12066 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12067 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12068 only call mark_thread_stale.
12069 (ppc_linux_thread_exit): Remove.
12070 (ppc_linux_nat_target::stopped_data_address): Change to...
12071 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12072 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12073 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12074 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12075 comment. Call low_stopped_data_address.
12076 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12077 m_dreg_interface.
12078 (ppc_linux_nat_target::masked_watch_num_registers): Use
12079 m_dreg_interface.
12080 (ppc_linux_nat_target::copy_thread_dreg_state)
12081 (ppc_linux_nat_target::mark_thread_stale)
12082 (ppc_linux_nat_target::mark_debug_registers_changed)
12083 (ppc_linux_nat_target::register_hw_breakpoint)
12084 (ppc_linux_nat_target::clear_hw_breakpoint)
12085 (ppc_linux_nat_target::register_wp)
12086 (ppc_linux_nat_target::clear_wp)
12087 (ppc_linux_nat_target::init_arch_lwp_info)
12088 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12089 (_initialize_ppc_linux_nat): Remove observer callback.
12090
4db10d8f
PFC
120912020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12092
12093 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12094 (ppc_linux_nat_target::auxv_parse)
12095 (ppc_linux_nat_target::read_description)
12096 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12097 Move up.
12098
1310c1b0
PFC
120992020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12100
12101 * linux-nat.h (low_new_clone): New method.
12102 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12103
69b037c3
SM
121042020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12105
12106 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12107 (dbx_expand_psymtab): ... this.
12108 (start_psymtab): Update.
12109 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12110 (mdebug_expand_psymtab): ... this.
12111 (parse_partial_symbols): Update.
12112 (new_psymtab): Update.
12113 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12114 (xcoff_expand_psymtab): ... this.
12115 (xcoff_start_psymtab): Update.
12116
48993951
SM
121172020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12118
12119 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12120 <expand_dependencies>: ... this.
12121 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12122 (partial_symtab::expand_dependencies): ... this.
12123 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12124 Update.
12125 (dwarf2_psymtab::expand_psymtab): Update.
12126 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12127 * mdebugread.c (psymtab_to_symtab_1): Update.
12128 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12129
3ad83046
SM
121302020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12131
12132 * psympriv.h (discard_psymtab): Remove.
12133 * dbxread.c (dbx_end_psymtab): Update.
12134 * xcoffread.c (xcoff_end_psymtab): Update.
12135
4d1b9ab6
TT
121362020-03-28 Tom Tromey <tom@tromey.com>
12137
12138 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12139 comment.
12140
f1749218
TT
121412020-03-28 Tom Tromey <tom@tromey.com>
12142
12143 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12144
ebea7626
HD
121452020-03-27 Hannes Domani <ssbssa@yahoo.de>
12146
12147 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12148
a879b4d5
JB
121492020-03-26 John Baldwin <jhb@FreeBSD.org>
12150
12151 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12152
0826b30a
TT
121532020-03-26 Tom Tromey <tom@tromey.com>
12154
12155 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12156 (mark_common_block_symbol_computed, read_tag_string_type)
12157 (attr_to_dynamic_prop, read_subrange_type): Update.
12158 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12159 to be methods on struct attribute.
12160 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12161 (read_call_site_scope, partial_die_info::read)
12162 (partial_die_info::read, lookup_die_type, follow_die_ref):
12163 Update.
12164 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12165 from dwarf2_get_ref_die_offset.
12166 (attribute::constant_value): New method, from
12167 dwarf2_get_attr_constant_value.
12168 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12169 Declare method.
12170 <constant_value>: New method.
12171
2b2558bf
TT
121722020-03-26 Tom Tromey <tom@tromey.com>
12173
12174 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12175 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12176 (dwarf_type_encoding_name): Move to stringify.c.
12177 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12178 * dwarf2/stringify.c: New file.
12179 * dwarf2/stringify.h: New file.
12180
eeb64781
TT
121812020-03-26 Tom Tromey <tom@tromey.com>
12182
12183 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12184 Rewrite.
12185
a39fdb41
TT
121862020-03-26 Tom Tromey <tom@tromey.com>
12187
12188 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12189 methods.
12190 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12191 (lookup_ranges_base): Likewise.
12192 (read_cutu_die_from_dwo, read_full_die_1): Update.
12193
436c571c
TT
121942020-03-26 Tom Tromey <tom@tromey.com>
12195
12196 * dwarf2/read.c (read_import_statement, read_file_scope)
12197 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12198 (read_lexical_block_scope, read_call_site_scope)
12199 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12200 (handle_struct_member_die, process_structure_scope)
12201 (update_enumeration_type_from_children)
12202 (process_enumeration_scope, read_array_type, read_common_block)
12203 (read_namespace, read_module, read_subroutine_type): Update.
12204 (sibling_die): Remove.
12205
052c8bb8
TT
122062020-03-26 Tom Tromey <tom@tromey.com>
12207
12208 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12209 (build_type_psymtabs_reader, read_structure_type)
12210 (read_enumeration_type, read_full_die_1): Update.
12211 (dwarf2_attr_no_follow): Move to die.h.
12212 * dwarf2/die.h (struct die_info) <attr>: New method.
12213
2b24b6e4
TT
122142020-03-26 Tom Tromey <tom@tromey.com>
12215
12216 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12217 <base_address>: Now an optional.
12218 (dwarf2_find_base_address, dwarf2_rnglists_process)
12219 (dwarf2_ranges_process, fill_in_loclist_baton)
12220 (dwarf2_symbol_mark_computed): Update.
12221
c2d50fd0
TT
122222020-03-26 Tom Tromey <tom@tromey.com>
12223
12224 * dwarf2/read.c (struct die_info): Move to die.h.
12225 * dwarf2/die.h: New file.
12226
0df7ad3a
TT
122272020-03-26 Tom Tromey <tom@tromey.com>
12228
12229 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12230 * dwarf2/read.c
12231 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12232 Move to line-header.c.
12233 (read_checked_initial_length_and_offset, read_formatted_entries):
12234 Likewise.
12235 (dwarf_decode_line_header): Split into two.
12236 * dwarf2/line-header.c
12237 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12238 Move from read.c.
12239 (read_checked_initial_length_and_offset, read_formatted_entries):
12240 Likewise.
12241 (dwarf_decode_line_header): New function, split from read.c.
12242
86c0bb4c
TT
122432020-03-26 Tom Tromey <tom@tromey.com>
12244
12245 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12246 Declare method.
12247 * dwarf2/read.c (read_attribute_value): Update.
12248 (dwarf2_per_objfile::read_line_string): Rename from
12249 read_indirect_line_string.
12250 (read_formatted_entries): Update.
12251
2ef46c2f
TT
122522020-03-26 Tom Tromey <tom@tromey.com>
12253
12254 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12255 variable.
12256
4f9c1eda
TT
122572020-03-26 Tom Tromey <tom@tromey.com>
12258
12259 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12260 const.
12261 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12262 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12263 parameter const.
12264
5a0e026f
TT
122652020-03-26 Tom Tromey <tom@tromey.com>
12266
12267 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12268 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12269 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12270 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12271
8844c11b
TT
122722020-03-26 Tom Tromey <tom@tromey.com>
12273
12274 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12275 file_names_size, file_full_name, file_file_name>: Use const.
12276 <file_name_at, file_names>: Add const overload.
12277 * dwarf2/line-header.c (line_header::file_file_name)
12278 (line_header::file_full_name): Update.
12279
c90ec28a
TT
122802020-03-26 Tom Tromey <tom@tromey.com>
12281
12282 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12283 (macro_start_file, consume_improper_spaces)
12284 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12285 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12286 (dwarf_decode_macros): Move to macro.c.
12287 * dwarf2/macro.c: New file.
12288 * dwarf2/macro.h: New file.
12289 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12290
4f44ae6c
TT
122912020-03-26 Tom Tromey <tom@tromey.com>
12292
12293 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12294 method.
12295 * dwarf2/section.c: New method. From
12296 read_indirect_string_at_offset_from.
12297 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12298 (read_indirect_string_at_offset_from): Move to section.c.
12299 (read_indirect_string_at_offset): Rewrite.
12300 (read_indirect_line_string_at_offset): Remove.
12301 (read_indirect_string, read_indirect_line_string)
12302 (dwarf_decode_macro_bytes): Update.
12303
a0194fa8
TT
123042020-03-26 Tom Tromey <tom@tromey.com>
12305
12306 * dwarf2/section.h (struct dwarf2_section_info)
12307 <overload_complaint>: Declare.
12308 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12309 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12310 Rename from dwarf2_section_buffer_overflow_complaint.
12311 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12312 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12313
3d27bbdb
TT
123142020-03-26 Tom Tromey <tom@tromey.com>
12315
12316 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12317 Declare.
12318 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12319 Move from read.c.
12320 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12321 to section.c.
12322
9eac9650
TT
123232020-03-26 Tom Tromey <tom@tromey.com>
12324
12325 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12326
bf80d710
TT
123272020-03-26 Tom Tromey <tom@tromey.com>
12328
12329 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12330 "builder".
12331 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12332 parameter.
12333 (dwarf_decode_macros): Update.
12334
0314b390
TT
123352020-03-26 Tom Tromey <tom@tromey.com>
12336
12337 * dwarf2/read.c (read_attribute_value): Update.
12338 (read_indirect_string_from_dwz): Move to dwz.c; change into
12339 method.
12340 (dwarf_decode_macro_bytes): Update.
12341 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12342 * dwarf2/dwz.c: New file.
12343 * Makefile.in (COMMON_SFILES): Add dwz.c.
12344
9fda78b6
TT
123452020-03-26 Tom Tromey <tom@tromey.com>
12346
12347 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12348 * dwarf2/read.c: Add include.
12349 * dwarf2/index-write.c: Add include.
12350 * dwarf2/index-cache.c: Add include.
12351 * dwarf2/dwz.h: New file.
12352
33aa3c10
TT
123532020-03-25 Tom Tromey <tom@tromey.com>
12354
12355 * compile/compile-object-load.c (get_out_value_type): Mention
12356 correct symbol name in error message.
12357
d503b685
HD
123582020-03-25 Hannes Domani <ssbssa@yahoo.de>
12359
12360 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12361
7b1eff95
TV
123622020-03-25 Tom de Vries <tdevries@suse.de>
12363
12364 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12365 * symmisc.c (dump_symtab_1): Print user and includes fields.
12366 (maintenance_info_symtabs): Same.
12367
dd895392
AB
123682020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12369
12370 PR gdb/25534
12371 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12372 (riscv_regcache_cooked_write): New function.
12373 (riscv_push_dummy_call): Use new function.
12374 (riscv_return_value): Likewise.
12375
5ab2fbf1
SM
123762020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12377
12378 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12379 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12380 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12381 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12382 * infrun.c (follow_fork): Likewise.
12383 (follow_fork_inferior): Likewise.
12384 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12385 * linux-nat.h (class linux_nat_target): Likewise.
12386 * remote.c (class remote_target) <follow_fork>: Likewise.
12387 (remote_target::follow_fork): Likewise.
12388 * target-delegates.c: Re-generate.
12389 * target.c (default_follow_fork): Likewise.
12390 (target_follow_fork): Likewise.
12391 * target.h (struct target_ops) <follow_fork>: Likewise.
12392 (target_follow_fork): Likewise.
12393
a64fafb5
TV
123942020-03-24 Tom de Vries <tdevries@suse.de>
12395
12396 * psymtab.c (maintenance_info_psymtabs): Print user field.
12397
fe26d3a3
TT
123982020-03-20 Tom Tromey <tromey@adacore.com>
12399
12400 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12401 const.
12402 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12403 const.
12404
c884cc46
SM
124052020-03-20 Simon Marchi <simon.marchi@efficios.com>
12406
12407 * ptrace.m4: Don't check for ptrace declaration.
12408 * config.in: Re-generate.
12409 * configure: Re-generate.
12410 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12411 not defined.
12412
1ff700c2
KR
124132020-03-20 Kamil Rytarowski <n54@gmx.com>
12414
12415 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12416 `PTRACE_TYPE_RET'.
12417 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12418 * sparc-nat.c (gdb_ptrace): Likewise.
12419 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12420
f7d4f0b1
TT
124212020-03-20 Tom Tromey <tromey@adacore.com>
12422
12423 * c-exp.y (lex_one_token): Fix assert.
12424
f67210ff
TT
124252020-03-20 Tom Tromey <tromey@adacore.com>
12426
12427 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12428 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12429 strncpy call.
12430
1773be9e
TT
124312020-03-20 Tom Tromey <tromey@adacore.com>
12432
12433 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12434
70304be9
TT
124352020-03-20 Tom Tromey <tromey@adacore.com>
12436
12437 * ada-valprint.c (print_variant_part): Remove parameters; switch
12438 to value-based API.
12439 (print_field_values): Likewise.
12440 (ada_val_print_struct_union): Likewise.
12441 (ada_value_print_1): Update.
12442
9faa006d
KR
124432020-03-20 Kamil Rytarowski <n54@gmx.com>
12444
12445 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12446 nbsd_nat_target instead of inf_ptrace_target.
12447 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12448 nbsd_nat_target.
12449
4a90f062
KR
124502020-03-20 Kamil Rytarowski <n54@gmx.com>
12451
12452 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12453 it to the ptrace call.
12454 * (store_registers): Likewise.
12455
124562020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12457
12458 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12459 it to the ptrace call.
12460 * (store_registers): Likewise.
12461
2d07da27
LM
124622020-03-19 Luis Machado <luis.machado@linaro.org>
12463
12464 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12465 valid, fetch vg value from ptrace.
12466
f09db380
KR
124672020-03-19 Kamil Rytarowski <n54@gmx.com>
12468 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12469 * inf-ptrace.c: Likewise.
12470 * (gdb_ptrace): Add.
12471 * (inf_ptrace_target::resume): Update.
12472 * (inf_ptrace_target::xfer_partial): Likewise.
12473 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12474 * (inf_ptrace_peek_poke): Update.
12475
fcc7376e
KR
124762020-03-19 Kamil Rytarowski <n54@gmx.com>
12477
12478 * x86-bsd-nat.c (gdb_ptrace): New.
12479 * (x86bsd_dr_set): Add new argument `ptid'.
12480 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12481 x86bsd_dr_set_addr): Update.
12482
cada5fc9
AB
124832020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12484
12485 * remote.c (remote_target::process_stop_reply): Handle events for
12486 all threads differently.
12487
19a2740f
AB
124882020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12489
12490 * completer.c (completion_tracker::remove_completion): Define new
12491 function.
12492 * completer.h (completion_tracker::remove_completion): Declare new
12493 function.
12494 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12495 when adding a C++ function symbol.
12496
724fd9ba
AB
124972020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12498
12499 * completer.c (completion_tracker::completion_hash_entry): Define
12500 new class.
12501 (advance_to_filename_complete_word_point): Call
12502 recompute_lowest_common_denominator.
12503 (completion_tracker::completion_tracker): Call discard_completions
12504 to setup the hash table.
12505 (completion_tracker::discard_completions): Allow for being called
12506 from the constructor, pass new equal function, and element deleter
12507 when constructing the hash table. Initialise new class member
12508 variables.
12509 (completion_tracker::maybe_add_completion): Remove use of
12510 m_entries_vec, and store more information into m_entries_hash.
12511 (completion_tracker::recompute_lcd_visitor): New function, most
12512 content taken from...
12513 (completion_tracker::recompute_lowest_common_denominator):
12514 ...here, this now just visits each item in the hash calling the
12515 above visitor.
12516 (completion_tracker::build_completion_result): Remove use of
12517 m_entries_vec, call recompute_lowest_common_denominator.
12518 * completer.h (completion_tracker::have_completions): Remove use
12519 of m_entries_vec.
12520 (completion_tracker::completion_hash_entry): Declare new class.
12521 (completion_tracker::recompute_lowest_common_denominator): Change
12522 function signature.
12523 (completion_tracker::recompute_lcd_visitor): Declare new function.
12524 (completion_tracker::m_entries_vec): Delete.
12525 (completion_tracker::m_entries_hash): Initialize to NULL.
12526 (completion_tracker::m_lowest_common_denominator_valid): New
12527 member variable.
12528 (completion_tracker::m_lowest_common_denominator_max_length): New
12529 member variable.
12530
5a82b8a1
KR
125312020-03-17 Kamil Rytarowski <n54@gmx.com>
12532
12533 * regformats/regdef.h: Put reg in gdb namespace.
12534
fb516a69
KR
125352020-03-17 Kamil Rytarowski <n54@gmx.com>
12536
12537 * i386-bsd-nat.c (gdb_ptrace): New.
12538 * (i386bsd_fetch_inferior_registers,
12539 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12540 * (i386bsd_fetch_inferior_registers,
12541 i386bsd_store_inferior_registers) Use gdb_ptrace.
12542
1c0aa1fb
KR
125432020-03-17 Kamil Rytarowski <n54@gmx.com>
12544
12545 * amd64-bsd-nat.c (gdb_ptrace): New.
12546 * (amd64bsd_fetch_inferior_registers,
12547 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12548 * (amd64bsd_fetch_inferior_registers,
12549 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12550
5ccd2fb7
KR
125512020-03-17 Kamil Rytarowski <n54@gmx.com>
12552
12553 * user-regs.c (user_reg::read): Rename to...
12554 (user_reg::xread): ...this.
12555 * (append_user_reg): Rename argument `read' to `xread'.
12556 * (user_reg_add_builtin): Likewise.
12557 * (user_reg_add): Likewise.
12558 * (value_of_user_reg): Likewise.
12559
2108a63a
KR
125602020-03-17 Kamil Rytarowski <n54@gmx.com>
12561
12562 * sparc-nat.c (gdb_ptrace): New.
12563 * sparc-nat.c (sparc_fetch_inferior_registers)
12564 (sparc_store_inferior_registers) Remove obsolete comment.
12565 * sparc-nat.c (sparc_fetch_inferior_registers)
12566 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12567 * sparc-nat.c (sparc_fetch_inferior_registers)
12568 (sparc_store_inferior_registers) Use gdb_ptrace.
12569
a225c9a8
KR
125702020-03-17 Kamil Rytarowski <n54@gmx.com>
12571
12572 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12573 it to the ptrace call.
12574 * sh-nbsd-nat.c (store_registers): Likewise.
12575
98097623
KR
125762020-03-17 Kamil Rytarowski <n54@gmx.com>
12577
12578 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12579 nbsd_nat_target instead of inf_ptrace_target.
12580 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12581 nbsd_nat_target.
12582
9e38d619
KR
125832020-03-17 Kamil Rytarowski <n54@gmx.com>
12584
12585 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12586
a2ecbe9f
KR
125872020-03-17 Kamil Rytarowski <n54@gmx.com>
12588
12589 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12590 <sys/sysctl.h>.
12591 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12592
58990295
TV
125932020-03-17 Tom de Vries <tdevries@suse.de>
12594
12595 PR gdb/23710
12596 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12597 fields.
12598 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12599 fields.
12600 (process_imported_unit_die): Skip import of c++ CUs.
12601
771dd3a8
TT
126022020-03-16 Tom Tromey <tom@tromey.com>
12603
12604 * p-valprint.c (pascal_object_print_value): Initialize
12605 base_value.
12606
817a7585
AK
126072020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12608 Shahab Vahedi <shahab@synopsys.com>
12609
12610 * Makefile.in: Add arch/arc.o
12611 * configure.tgt: Likewise.
12612 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12613 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12614 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12615 * arc-tdep.h (arc_read_description): Add proto type.
12616 * arch/arc.c: New file.
12617 * arch/arc.h: Likewise.
12618 * features/Makefile: Replace old target descriptions with new.
12619 * features/arc-arcompact.c: Remove.
12620 * features/arc-arcompact.xml: Likewise.
12621 * features/arc-v2.c: Likewise
12622 * features/arc-v2.xml: Likewise
12623 * features/arc/aux-arcompact.xml: New file.
12624 * features/arc/aux-v2.xml: Likewise.
12625 * features/arc/core-arcompact.xml: Likewise.
12626 * features/arc/core-v2.xml: Likewise.
12627 * features/arc/aux-arcompact.c: Generate.
12628 * features/arc/aux-v2.c: Likewise.
12629 * features/arc/core-arcompact.c: Likewise.
12630 * features/arc/core-v2.c: Likewise.
12631 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12632
67430cd0
TT
126332020-03-16 Tom Tromey <tromey@adacore.com>
12634
12635 PR gdb/25663:
12636 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12637 putting value into bcache.
12638
30efb6c7
SM
126392020-03-16 Simon Marchi <simon.marchi@efficios.com>
12640
12641 PR gdb/21500
12642 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12643 to...
12644 (amd64_windows_init_abi_common): ... this. Don't set size of
12645 long type.
12646 (amd64_windows_init_abi): New function.
12647 (amd64_cygwin_init_abi): New function.
12648 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12649 the Cygwin OS ABI.
12650 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12651 comment.
12652
8db52437
SM
126532020-03-16 Simon Marchi <simon.marchi@efficios.com>
12654
12655 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12656 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12657 (pe_import_directory_entry): New struct type.
12658 (is_linked_with_cygwin_dll): New function.
12659 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12660 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12661 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12662
5982a56a
SM
126632020-03-16 Simon Marchi <simon.marchi@efficios.com>
12664
12665 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12666 i386_cygwin_core_osabi_sniffer.
12667
7a1998df
SM
126682020-03-16 Simon Marchi <simon.marchi@efficios.com>
12669
12670 * i386-cygwin-tdep.c: Rename to...
12671 * i386-windows-tdep.c: ... this.
12672 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12673 i386-windows-tdep.c.
12674 * configure.tgt: Likewise.
12675
053205cc
SM
126762020-03-16 Simon Marchi <simon.marchi@efficios.com>
12677
12678 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12679 * osabi.c (gdb_osabi_names): Add "Windows".
12680 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12681 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12682 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12683 i386_cygwin_osabi_sniffer.
12684 (_initialize_i386_cygwin_tdep): Register OS ABI
12685 GDB_OSABI_WINDOWS for i386.
12686 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12687 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12688 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12689 for x86-64.
12690 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12691 when the target matches '*-*-mingw*'.
12692
fe4b2ee6
SM
126932020-03-16 Simon Marchi <simon.marchi@efficios.com>
12694
12695 * defs.h (enum gdb_osabi): Move to...
12696 * osabi.h (enum gdb_osabi): ... here.
12697 * gdbarch.sh: Include osabi.h in gdbarch.h.
12698 * gdbarch.h: Re-generate.
12699
cb9b645d
SM
127002020-03-16 Simon Marchi <simon.marchi@efficios.com>
12701
12702 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12703 function.
12704 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12705
3293bbaf
TT
127062020-03-14 Tom Tromey <tom@tromey.com>
12707
12708 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12709 for C++.
12710 (c_type_print_modifier): Likewise. Add "language" parameter.
12711 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12712 (c_type_print_base_1): Update.
12713 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12714 constants.
12715 * type-stack.c (type_stack::insert): Handle tp_atomic and
12716 tp_restrict.
12717 (type_stack::follow_type_instance_flags): Likewise.
12718 (type_stack::follow_types): Likewise. Merge type-following code.
12719 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12720 (space_identifier, cv_with_space_id)
12721 (const_or_volatile_or_space_identifier_noopt)
12722 (const_or_volatile_or_space_identifier): Remove.
12723 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12724 rules.
12725 (ptr_operator, typebase): Update.
12726 (enum token_flag) <FLAG_C>: New constant.
12727 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12728 "_Atomic".
12729 (lex_one_token): Handle FLAG_C.
12730
154151a6
KR
127312020-03-14 Kamil Rytarowski <n54@gmx.com>
12732
12733 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12734 it to the ptrace call.
12735 * m68k-bsd-nat.c (store_registers): Likewise.
12736
bc107784
KR
127372020-03-14 Kamil Rytarowski <n54@gmx.com>
12738
12739 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12740 gdb_byte *.
12741 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12742 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12743 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12744
01a80117
KR
127452020-03-14 Kamil Rytarowski <n54@gmx.com>
12746
12747 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12748 nbsd_nat_target instead of inf_ptrace_target.
12749 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12750 nbsd_nat_target.
12751
f90280ca
KR
127522020-03-14 Kamil Rytarowski <n54@gmx.com>
12753
12754 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12755 register_t.
12756
6def66f1
KR
127572020-03-14 Kamil Rytarowski <n54@gmx.com>
12758
12759 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12760 it to the ptrace call.
12761 * alpha-bsd-nat.c (store_registers): Likewise.
12762
66eaca97
KR
127632020-03-14 Kamil Rytarowski <n54@gmx.com>
12764
12765 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12766 includes.
12767 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12768 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12769 fill_fpregset): Likewise.
12770
4fed520b
KR
127712020-03-14 Kamil Rytarowski <n54@gmx.com>
12772
12773 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12774 nbsd_nat_target instead of inf_ptrace_target.
12775 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12776 nbsd_nat_target.
12777
2190cf06
KR
127782020-03-14 Kamil Rytarowski <n54@gmx.com>
12779
12780 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12781 register_t.
12782
75c56d3d
KR
127832020-03-14 Kamil Rytarowski <n54@gmx.com>
12784
12785 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12786 it to the ptrace call.
12787 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12788 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12789 * arm-nbsd-nat.c (store_register): Likewise.
12790 * arm-nbsd-nat.c (store_regs): Likewise.
12791 * arm-nbsd-nat.c (store_fp_register): Likewise.
12792 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12793
6018d381
KR
127942020-03-14 Kamil Rytarowski <n54@gmx.com>
12795
12796 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12797 nbsd_nat_target instead of inf_ptrace_target.
12798 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12799 nbsd_nat_target.
12800
013f99f0
KR
128012020-03-14 Kamil Rytarowski <n54@gmx.com>
12802
12803 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12804 it to the ptrace call.
12805 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12806
12753073
KR
128072020-03-14 Kamil Rytarowski <n54@gmx.com>
12808
6227b330
KR
12809 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12810 it to the ptrace call.
12811 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12812
128132020-03-14 Kamil Rytarowski <n54@gmx.com>
12814
12815 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12816 gdb_byte *.
12753073
KR
12817 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12818
d5be5fa4
KR
128192020-03-14 Kamil Rytarowski <n54@gmx.com>
12820
12821 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12822 instead of inf_ptrace_target.
12823 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12824 nbsd_nat_target.
12825
8110f842
KR
128262020-03-14 Kamil Rytarowski <n54@gmx.com>
12827
12828 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12829 register_t.
12830
52feded7
KR
128312020-03-14 Kamil Rytarowski <n54@gmx.com>
12832
12833 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12834 register_t.
12835
25567eee
KR
128362020-03-14 Kamil Rytarowski <n54@gmx.com>
12837
12838 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12839 register_t.
12840
426a9c18
TT
128412020-03-13 Tom Tromey <tom@tromey.com>
12842
12843 * value.h (val_print): Don't declare.
12844 * valprint.h (val_print_array_elements)
12845 (val_print_scalar_formatted, generic_val_print): Don't declare.
12846 * valprint.c (generic_val_print_array): Take a struct value.
12847 (generic_val_print_ptr, generic_val_print_memberptr)
12848 (generic_val_print_bool, generic_val_print_int)
12849 (generic_val_print_char, generic_val_print_complex)
12850 (generic_val_print): Remove.
12851 (generic_value_print): Update.
12852 (do_val_print): Remove unused parameters. Don't call
12853 la_val_print.
12854 (val_print): Remove.
12855 (common_val_print): Update. Don't call value_check_printable.
12856 (val_print_scalar_formatted, val_print_array_elements): Remove.
12857 * rust-lang.c (rust_val_print): Remove.
12858 (rust_language_defn): Update.
12859 * p-valprint.c (pascal_val_print): Remove.
12860 (pascal_value_print_inner): Update.
12861 (pascal_object_print_val_fields, pascal_object_print_val):
12862 Remove.
12863 (pascal_object_print_static_field): Update.
12864 * p-lang.h (pascal_val_print): Don't declare.
12865 * p-lang.c (pascal_language_defn): Update.
12866 * opencl-lang.c (opencl_language_defn): Update.
12867 * objc-lang.c (objc_language_defn): Update.
12868 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12869 * m2-lang.h (m2_val_print): Don't declare.
12870 * m2-lang.c (m2_language_defn): Update.
12871 * language.h (struct language_defn) <la_val_print>: Remove.
12872 * language.c (unk_lang_value_print_inner): Rename. Change
12873 argument types.
12874 (unknown_language_defn, auto_language_defn): Update.
12875 * go-valprint.c (go_val_print): Remove.
12876 * go-lang.h (go_val_print): Don't declare.
12877 * go-lang.c (go_language_defn): Update.
12878 * f-valprint.c (f_val_print): Remove.
12879 * f-lang.h (f_value_print): Don't declare.
12880 * f-lang.c (f_language_defn): Update.
12881 * d-valprint.c (d_val_print): Remove.
12882 * d-lang.h (d_value_print): Don't declare.
12883 * d-lang.c (d_language_defn): Update.
12884 * cp-valprint.c (cp_print_value_fields)
12885 (cp_print_value_fields_rtti, cp_print_value): Remove.
12886 (cp_print_static_field): Update.
12887 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12888 (c_val_print_struct, c_val_print_union, c_val_print_int)
12889 (c_val_print_memberptr, c_val_print): Remove.
12890 * c-lang.h (c_val_print_array, cp_print_value_fields)
12891 (cp_print_value_fields_rtti): Don't declare.
12892 * c-lang.c (c_language_defn, cplus_language_defn)
12893 (asm_language_defn, minimal_language_defn): Update.
12894 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12895 (ada_val_print_enum): Take a struct value.
12896 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12897 (ada_val_print): Remove.
12898 (ada_value_print_1): Update.
12899 (printable_val_type): Remove.
12900 * ada-lang.h (ada_val_print): Don't declare.
12901 * ada-lang.c (ada_language_defn): Update.
12902
42331a1e
TT
129032020-03-13 Tom Tromey <tom@tromey.com>
12904
12905 * valprint.c (do_val_print): Update.
12906 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12907 a struct value.
12908 (value_to_value_object_no_release): Declare.
12909 * python/py-value.c (value_to_value_object_no_release): New
12910 function.
12911 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12912 struct value.
12913 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12914 function.
12915 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12916 a struct value.
12917 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12918 Declare.
12919 (gdbscm_apply_val_pretty_printer): Take a struct value.
12920 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12921 value.
12922 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12923 value.
12924 * extension-priv.h (struct extension_language_ops)
12925 <apply_val_pretty_printer>: Take a struct value.
12926 * cp-valprint.c (cp_print_value): Create a struct value.
12927 (cp_print_value): Update.
12928
3a916a97
TT
129292020-03-13 Tom Tromey <tom@tromey.com>
12930
12931 * ada-valprint.c (print_field_values): Call common_val_print.
12932
b59eac37
TT
129332020-03-13 Tom Tromey <tom@tromey.com>
12934
12935 * ada-valprint.c (val_print_packed_array_elements): Remove
12936 bitoffset and val parameters. Call common_val_print.
12937 (ada_val_print_string): Remove offset, address, and original_value
12938 parameters.
12939 (ada_val_print_array): Update.
12940 (ada_value_print_array): New function.
12941 (ada_value_print_1): Call it.
12942
03371129
TT
129432020-03-13 Tom Tromey <tom@tromey.com>
12944
12945 * ada-valprint.c (ada_value_print): Use common_val_print.
12946
2e088f8b
TT
129472020-03-13 Tom Tromey <tom@tromey.com>
12948
12949 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12950
39ef85a8
TT
129512020-03-13 Tom Tromey <tom@tromey.com>
12952
12953 * ada-valprint.c (ada_value_print_num): New function.
12954 (ada_value_print_1): Use it.
12955
b9fa6e07
TT
129562020-03-13 Tom Tromey <tom@tromey.com>
12957
12958 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12959
416595d6
TT
129602020-03-13 Tom Tromey <tom@tromey.com>
12961
12962 * ada-valprint.c (ada_value_print_ptr): New function.
12963 (ada_value_print_1): Use it.
12964
5b5e15ec
TT
129652020-03-13 Tom Tromey <tom@tromey.com>
12966
12967 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12968 call common_val_print.
12969 (ada_val_print_1): Update.
12970 (ada_value_print_1): New function.
12971 (ada_value_print_inner): Rewrite.
12972
fbf54e75
TT
129732020-03-13 Tom Tromey <tom@tromey.com>
12974
12975 * cp-valprint.c (cp_print_value_fields): Update.
12976 (cp_print_value): New function.
12977
64b653ca
TT
129782020-03-13 Tom Tromey <tom@tromey.com>
12979
12980 * m2-valprint.c (m2_value_print_inner): Use
12981 cp_print_value_fields.
12982 * cp-valprint.c (cp_print_value_fields): New function.
12983 * c-valprint.c (c_value_print_struct): New function.
12984 (c_value_print_inner): Use c_value_print_struct.
12985 * c-lang.h (cp_print_value_fields): Declare.
12986
6999f067
TT
129872020-03-13 Tom Tromey <tom@tromey.com>
12988
12989 * c-valprint.c (c_value_print_array): New function.
12990 (c_value_print_inner): Use it.
12991
ce80b8bd
TT
129922020-03-13 Tom Tromey <tom@tromey.com>
12993
12994 * c-valprint.c (c_value_print_memberptr): New function.
12995 (c_value_print_inner): Use it.
12996
2faac269
TT
129972020-03-13 Tom Tromey <tom@tromey.com>
12998
12999 * c-valprint.c (c_value_print_int): New function.
13000 (c_value_print_inner): Use it.
13001
da3e2c29
TT
130022020-03-13 Tom Tromey <tom@tromey.com>
13003
13004 * c-valprint.c (c_value_print_ptr): New function.
13005 (c_value_print_inner): Use it.
13006
50836231
TT
130072020-03-13 Tom Tromey <tom@tromey.com>
13008
13009 * c-valprint.c (c_value_print_inner): Rewrite.
13010
4f412b6e
TT
130112020-03-13 Tom Tromey <tom@tromey.com>
13012
13013 * valprint.c (generic_value_print_complex): New function.
13014 (generic_value_print): Use it.
13015
f5354008
TT
130162020-03-13 Tom Tromey <tom@tromey.com>
13017
13018 * valprint.c (generic_val_print_float): Don't call
13019 val_print_scalar_formatted.
13020 (generic_val_print, generic_value_print): Update.
13021
3eec3b05
TT
130222020-03-13 Tom Tromey <tom@tromey.com>
13023
13024 * valprint.c (generic_value_print_char): New function
13025 (generic_value_print): Use it.
13026
fdddfccb
TT
130272020-03-13 Tom Tromey <tom@tromey.com>
13028
13029 * valprint.c (generic_value_print_int): New function.
13030 (generic_value_print): Use it.
13031
6dde7521
TT
130322020-03-13 Tom Tromey <tom@tromey.com>
13033
13034 * valprint.c (generic_value_print_bool): New function.
13035 (generic_value_print): Use it.
13036
4112d2e6
TT
130372020-03-13 Tom Tromey <tom@tromey.com>
13038
13039 * valprint.c (generic_val_print_func): Simplify.
13040 (generic_val_print, generic_value_print): Update.
13041
65786af6
TT
130422020-03-13 Tom Tromey <tom@tromey.com>
13043
13044 * valprint.c (generic_val_print_flags): Remove.
13045 (generic_val_print, generic_value_print): Update.
13046 (val_print_type_code_flags): Add original_value parameter.
13047
40f3ce18
TT
130482020-03-13 Tom Tromey <tom@tromey.com>
13049
13050 * valprint.c (generic_val_print): Update.
13051 (generic_value_print): Update.
13052 * valprint.c (generic_val_print_enum): Don't call
13053 val_print_scalar_formatted.
13054
2a5b130b
TT
130552020-03-13 Tom Tromey <tom@tromey.com>
13056
13057 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13058 * valprint.c (generic_value_print_ptr): New function.
13059
abc66ce9
TT
130602020-03-13 Tom Tromey <tom@tromey.com>
13061
13062 * valprint.c (generic_value_print): Rewrite.
13063
07a32858
TT
130642020-03-13 Tom Tromey <tom@tromey.com>
13065
13066 * p-valprint.c (pascal_object_print_value_fields)
13067 (pascal_object_print_value): New functions.
13068
64d64d3a
TT
130692020-03-13 Tom Tromey <tom@tromey.com>
13070
13071 * p-valprint.c (pascal_value_print_inner): Rewrite.
13072
6a95a1f5
TT
130732020-03-13 Tom Tromey <tom@tromey.com>
13074
13075 * f-valprint.c (f_value_print_innner): Rewrite.
13076
59fcdac6
TT
130772020-03-13 Tom Tromey <tom@tromey.com>
13078
13079 * m2-valprint.c (m2_print_unbounded_array): New overload.
13080 (m2_print_unbounded_array): Update.
13081 (m2_print_array_contents): Take a struct value.
13082 (m2_value_print_inner): Rewrite.
13083
d133c3e1
TT
130842020-03-13 Tom Tromey <tom@tromey.com>
13085
13086 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13087 (d_value_print_inner): New function.
13088 * d-lang.h (d_value_print_inner): Declare.
13089 * d-lang.c (d_language_defn): Use d_value_print_inner.
13090
23b0f06b
TT
130912020-03-13 Tom Tromey <tom@tromey.com>
13092
13093 * go-valprint.c (go_value_print_inner): New function.
13094 * go-lang.h (go_value_print_inner): Declare.
13095 * go-lang.c (go_language_defn): Use go_value_print_inner.
13096
5f56f7cb
TT
130972020-03-13 Tom Tromey <tom@tromey.com>
13098
13099 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13100 API.
13101 (rust_val_print): Rewrite.
13102 (rust_value_print_inner): New function, from rust_val_print.
13103 (rust_language_defn): Use rust_value_print_inner.
13104
26792ee0
TT
131052020-03-13 Tom Tromey <tom@tromey.com>
13106
13107 * ada-valprint.c (ada_value_print_inner): New function.
13108 * ada-lang.h (ada_value_print_inner): Declare.
13109 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13110
24051bbe
TT
131112020-03-13 Tom Tromey <tom@tromey.com>
13112
13113 * f-valprint.c (f_value_print_innner): New function.
13114 * f-lang.h (f_value_print_innner): Declare.
13115 * f-lang.c (f_language_defn): Use f_value_print_innner.
13116
c0941be6
TT
131172020-03-13 Tom Tromey <tom@tromey.com>
13118
13119 * p-valprint.c (pascal_value_print_inner): New function.
13120 * p-lang.h (pascal_value_print_inner): Declare.
13121 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13122
62c4663d
TT
131232020-03-13 Tom Tromey <tom@tromey.com>
13124
13125 * m2-valprint.c (m2_value_print_inner): New function.
13126 * m2-lang.h (m2_value_print_inner): Declare.
13127 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13128
62182190
TT
131292020-03-13 Tom Tromey <tom@tromey.com>
13130
13131 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13132 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13133 * c-valprint.c (c_value_print_inner): New function.
13134 * c-lang.h (c_value_print_inner): Declare.
13135 * c-lang.c (c_language_defn, cplus_language_defn)
13136 (asm_language_defn, minimal_language_defn): Use
13137 c_value_print_inner.
13138
1e592a8a
TT
131392020-03-13 Tom Tromey <tom@tromey.com>
13140
13141 * p-valprint.c (pascal_object_print_value_fields): Now static.
13142 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13143
7fe471e9
TT
131442020-03-13 Tom Tromey <tom@tromey.com>
13145
13146 * c-valprint.c (c_val_print_array): Simplify.
13147
d121c6ce
TT
131482020-03-13 Tom Tromey <tom@tromey.com>
13149
13150 * valprint.c (value_print_array_elements): New function.
13151 * valprint.h (value_print_array_elements): Declare.
13152
4dba70ee
TT
131532020-03-13 Tom Tromey <tom@tromey.com>
13154
13155 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13156 * mips-tdep.c (mips_print_register): Use
13157 value_print_scalar_formatted.
13158
4f9ae810
TT
131592020-03-13 Tom Tromey <tom@tromey.com>
13160
13161 * valprint.h (value_print_scalar_formatted): Declare.
13162 * valprint.c (value_print_scalar_formatted): New function.
13163
156bfec9
TT
131642020-03-13 Tom Tromey <tom@tromey.com>
13165
13166 * valprint.h (generic_value_print): Declare.
13167 * valprint.c (generic_value_print): New function.
13168
2b4e573d
TT
131692020-03-13 Tom Tromey <tom@tromey.com>
13170
13171 * valprint.c (do_val_print): Call la_value_print_inner, if
13172 available.
13173 * rust-lang.c (rust_language_defn): Update.
13174 * p-lang.c (pascal_language_defn): Update.
13175 * opencl-lang.c (opencl_language_defn): Update.
13176 * objc-lang.c (objc_language_defn): Update.
13177 * m2-lang.c (m2_language_defn): Update.
13178 * language.h (struct language_defn) <la_value_print_inner>: New
13179 member.
13180 * language.c (unknown_language_defn, auto_language_defn): Update.
13181 * go-lang.c (go_language_defn): Update.
13182 * f-lang.c (f_language_defn): Update.
13183 * d-lang.c (d_language_defn): Update.
13184 * c-lang.c (c_language_defn, cplus_language_defn)
13185 (asm_language_defn, minimal_language_defn): Update.
13186 * ada-lang.c (ada_language_defn): Update.
13187
a1f6a07c
TT
131882020-03-13 Tom Tromey <tom@tromey.com>
13189
13190 * c-valprint.c (c_value_print): Use common_val_print.
13191
410cf315
TT
131922020-03-13 Tom Tromey <tom@tromey.com>
13193
13194 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13195
72a45c93
TT
131962020-03-13 Tom Tromey <tom@tromey.com>
13197
13198 * f-valprint.c (f77_print_array_1, f_val_print): Use
13199 common_val_print.
13200
040f66bd
TT
132012020-03-13 Tom Tromey <tom@tromey.com>
13202
13203 * riscv-tdep.c (riscv_print_one_register_info): Use
13204 common_val_print.
13205
a6e05a6c
TT
132062020-03-13 Tom Tromey <tom@tromey.com>
13207
13208 * mi/mi-main.c (output_register): Use common_val_print.
13209
3444c526
TT
132102020-03-13 Tom Tromey <tom@tromey.com>
13211
13212 * infcmd.c (default_print_one_register_info): Use
13213 common_val_print.
13214
c2a44efe
TT
132152020-03-13 Tom Tromey <tom@tromey.com>
13216
13217 * valprint.h (common_val_print_checked): Declare.
13218 * valprint.c (common_val_print_checked): New function.
13219 * stack.c (print_frame_arg): Use common_val_print_checked.
13220
b0c26e99
TT
132212020-03-13 Tom Tromey <tom@tromey.com>
13222
13223 * valprint.c (do_val_print): New function, from val_print.
13224 (val_print): Use do_val_print.
13225 (common_val_print): Use do_val_print.
13226
ce3acbe9
TT
132272020-03-13 Tom Tromey <tom@tromey.com>
13228
13229 * valprint.c (value_print): Use scoped_value_mark.
13230
96c7f873
TV
132312020-03-13 Tom de Vries <tdevries@suse.de>
13232
13233 PR symtab/25646
13234 * psymtab.c (partial_symtab::partial_symtab): Don't set
13235 globals_offset and statics_offset. Push element onto
13236 current_global_psymbols and current_static_psymbols stacks.
13237 (concat): New function.
13238 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13239 element from current_global_psymbols and current_static_psymbols
13240 stacks. Concat popped elements to global_psymbols and
13241 static_symbols.
13242 (add_psymbol_to_list): Use current_global_psymbols and
13243 current_static_psymbols stacks.
13244 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13245 current_static_psymbols fields.
13246
6ba0a321
CB
132472020-03-12 Christian Biesinger <cbiesinger@google.com>
13248
13249 * corelow.c (sniff_core_bfd): Remove.
13250 (class core_target) <m_core_vec>: Remove.
13251 (core_target::core_target): Update.
13252 (core_file_fns): Remove.
13253 (deprecated_add_core_fns): Remove.
13254 (default_core_sniffer): Remove.
13255 (sniff_core_bfd): Remove.
13256 (default_check_format): Remove.
13257 (gdb_check_format): Remove.
13258 (core_target_open): Update.
13259 (core_target::get_core_register_section): Update.
13260 (get_core_registers_cb): Update.
13261 (core_target::fetch_registers): Update.
13262 * gdbcore.h (struct core_fns): Remove.
13263 (deprecated_add_core_fns): Remove.
13264 (default_core_sniffer): Remove.
13265 (default_check_format): Remove.
13266
227031b2
TT
132672020-03-12 Tom Tromey <tom@tromey.com>
13268
13269 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13270 CORE_ADDR.
13271 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13272
53807e9f
TT
132732020-03-12 Tom Tromey <tom@tromey.com>
13274
13275 * remote.c (remote_target::download_tracepoint)
13276 (remote_target::enable_tracepoint)
13277 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13278 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13279 sprintf_vma.
13280
64f25102
TT
132812020-03-12 Tom Tromey <tom@tromey.com>
13282
13283 * symfile-mem.c: Update CORE_ADDR size assert.
13284
272cd5a3
SM
132852020-03-12 Simon Marchi <simon.marchi@efficios.com>
13286
13287 * selftest.m4: Move to gdbsupport/.
13288 * acinclude.m4: Update path to selftest.m4.
13289
74cd3f9d
SM
132902020-03-12 Simon Marchi <simon.marchi@efficios.com>
13291
13292 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13293 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13294 gdbarch-selfselftests.c and selftest-arch.c.
13295 (SUBDIR_UNITTESTS_OBS): Rename to...
13296 (SELFTESTS_OBS): ... this.
13297 (COMMON_SFILES): Remove disasm-selftests.c and
13298 gdbarch-selftests.c.
13299 * configure.ac: Don't add selftest-arch.{c,o} to
13300 CONFIG_{SRCS,OBS}.
13301 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13302 preprocessor conditions.
13303
db6878ac
SM
133042020-03-12 Simon Marchi <simon.marchi@efficios.com>
13305
13306 * configure.ac: Don't source bfd/development.sh.
13307 * selftest.m4: Modify comment.
13308 * configure: Re-generate.
13309
4d696a5c
SM
133102020-03-12 Simon Marchi <simon.marchi@efficios.com>
13311
13312 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13313 not "true" or "false".
13314 * configure: Re-generate.
13315
8dd8e1c7
CB
133162020-03-12 Christian Biesinger <cbiesinger@google.com>
13317
13318 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13319 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13320 renamed to arm_nbsd_supply_gregset.
13321 (fetch_register): Update to call arm_nbsd_supply_gregset.
13322 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13323 (arm_netbsd_nat_target::fetch_registers): Update.
13324 (fetch_elfcore_registers): Removed.
13325 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13326 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13327 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13328 not require NetBSD system headers.
13329 (arm_nbsd_regset): New struct.
13330 (arm_nbsd_iterate_over_regset_sections): New function.
13331 (arm_netbsd_init_abi_common): Updated to call
13332 set_gdbarch_iterate_over_regset_sections.
13333 * arm-nbsd-tdep.h: New file.
13334
dd69bf7a
KB
133352020-03-11 Kevin Buettner <kevinb@redhat.com>
13336
13337 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13338 recursion.
13339
a0761e34
SM
133402020-03-11 Simon Marchi <simon.marchi@efficios.com>
13341
13342 * configure: Re-generate.
13343
e7a82140
TT
133442020-03-11 Tom Tromey <tromey@adacore.com>
13345
13346 * ada-typeprint.c (print_choices): Fix comment.
13347
dcc050c8
AB
133482020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13349
13350 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13351 previous item in the list, when the list has no items.
13352
1c33af77
TV
133532020-03-11 Tom de Vries <tdevries@suse.de>
13354
13355 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13356 PROP_LOCLIST handling code.
13357
8c95582d
AB
133582020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13359
13360 * buildsym-legacy.c (record_line): Pass extra parameter to
13361 record_line.
13362 * buildsym.c (buildsym_compunit::record_line): Take an extra
13363 parameter, reduce duplication in the line table, and record the
13364 is_stmt flag in the line table.
13365 * buildsym.h (buildsym_compunit::record_line): Add extra
13366 parameter.
13367 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13368 non-statement lines.
13369 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13370 this to the symtab builder.
13371 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13372 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13373 through to dwarf_record_line_1.
13374 * infrun.c (process_event_stop_test): When stepping, don't stop at
13375 a non-statement instruction, and only refresh the step info when
13376 we land in the middle of a line's range. Also add an extra
13377 comment.
13378 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13379 field.
13380 * record-btrace.c (btrace_find_line_range): Only record lines
13381 marked as is-statement.
13382 * stack.c (frame_show_address): Show the frame address if we are
13383 in a non-statement sal.
13384 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13385 (maintenance_print_one_line_table): Print a header for the is_stmt
13386 column, and include is_stmt information in the output.
13387 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13388 preference to non-statements.
13389 (find_pcs_for_symtab_line): Prefer is-statement entries.
13390 (find_line_common): Likewise.
13391 * symtab.h (struct linetable_entry): Add is_stmt field.
13392 (struct symtab_and_line): Likewise.
13393 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13394 arranging the line table.
13395
e4003a34
TV
133962020-03-07 Tom de Vries <tdevries@suse.de>
13397
13398 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13399 DIE.
13400
e8932576
TT
134012020-03-07 Tom Tromey <tom@tromey.com>
13402
13403 * valops.c (value_literal_complex): Remove obsolete comment.
13404 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13405 comment.
13406
29734269
SM
134072020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13408
13409 * infrun.h: Forward-declare thread_info.
13410 (set_step_info): Add thread_info parameter, add doc.
13411 * infrun.c (set_step_info): Add thread_info parameter, move doc
13412 to header.
13413 * infrun.c (process_event_stop_test): Pass thread to
13414 set_step_info call.
13415 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13416 set_step_info.
13417 (prepare_one_step): Add thread_info parameter, pass it to
13418 set_step_frame and prepare_one_step (recursive) call.
13419 (step_1): Pass thread to prepare_one_step call.
13420 (step_command_fsm::should_stop): Pass thread to
13421 prepare_one_step.
13422 (until_next_fsm): Pass thread to set_step_frame call.
13423 (finish_command): Pass thread to set_step_info call.
13424
b7d64b29
HD
134252020-03-06 Hannes Domani <ssbssa@yahoo.de>
13426
13427 * windows-tdep.c (windows_solib_create_inferior_hook):
13428 Check if inferior is running.
13429
09f2921c
TV
134302020-03-06 Tom de Vries <tdevries@suse.de>
13431
13432 * NEWS: Fix "the the".
13433 * ctfread.c: Same.
13434
fd760e79
TV
134352020-03-06 Tom de Vries <tdevries@suse.de>
13436
13437 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13438
20ea4a60
AB
134392020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13440
13441 * .dir-locals.el: Add a comment referencing the other copies of
13442 this file.
13443
0afbabf0
JB
134442020-03-05 John Baldwin <jhb@FreeBSD.org>
13445
13446 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13447 psargs.
13448
842806cb
TBA
134492020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13450
13451 * .gitattributes: New file.
13452
be1e3d3e
TT
134532020-03-04 Tom Tromey <tom@tromey.com>
13454
13455 * symmisc.c (print_symbol_bcache_statistics)
13456 (print_objfile_statistics): Update.
13457 * symfile.c (allocate_symtab): Use intern.
13458 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13459 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13460 macro_cache>: Remove.
13461 <string_cache>: New member.
13462 (struct objfile) <intern>: New methods.
13463 * elfread.c (elf_symtab_read): Use intern.
13464 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13465 (dwarf2_compute_name, dwarf2_physname)
13466 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13467 names.
13468 (guess_partial_die_structure_name): Update.
13469 (partial_die_info::fixup): Intern name.
13470 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13471 name.
13472 (dwarf2_name): Intern name. Update.
13473 * buildsym.c (buildsym_compunit::get_macro_table): Use
13474 string_cache.
13475
4e7625fd
TT
134762020-03-04 Tom Tromey <tom@tromey.com>
13477
13478 * jit.c (bfd_open_from_target_memory): Make "target" const.
13479 * corefile.c (gnutarget): Now const.
13480 * gdbcore.h (gnutarget): Now const.
13481
46f9f931
HD
134822020-03-04 Hannes Domani <ssbssa@yahoo.de>
13483
13484 * NEWS: Mention support for WOW64 processes.
13485 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13486 (amd64_windows_segment_register_p): Remove static.
13487 (_initialize_amd64_windows_nat): Update.
13488 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13489 * i386-windows-nat.c (context_offset): Update.
13490 (i386_mappings): Rename and remove static.
13491 (i386_windows_segment_register_p): Remove static.
13492 (_initialize_i386_windows_nat): Update.
13493 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13494 (STATUS_WX86_SINGLE_STEP): New macro.
13495 (EnumProcessModulesEx): New macro.
13496 (Wow64SuspendThread): New macro.
13497 (Wow64GetThreadContext): New macro.
13498 (Wow64SetThreadContext): New macro.
13499 (Wow64GetThreadSelectorEntry): New macro.
13500 (windows_set_context_register_offsets): Add static.
13501 (windows_set_segment_register_p): Likewise.
13502 (windows_add_thread): Adapt for WOW64 processes.
13503 (windows_fetch_one_register): Likewise.
13504 (windows_nat_target::fetch_registers): Likewise.
13505 (windows_store_one_register): Likewise.
13506 (display_selector): Likewise.
13507 (display_selectors): Likewise.
13508 (handle_exception): Likewise.
13509 (windows_continue): Likewise.
13510 (windows_nat_target::resume): Likewise.
13511 (windows_add_all_dlls): Likewise.
13512 (do_initial_windows_stuff): Likewise.
13513 (windows_nat_target::attach): Likewise.
13514 (windows_get_exec_module_filename): Likewise.
13515 (windows_nat_target::create_inferior): Likewise.
13516 (windows_xfer_siginfo): Likewise.
13517 (_initialize_loadable): Initialize Wow64SuspendThread,
13518 Wow64GetThreadContext, Wow64SetThreadContext,
13519 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13520 * windows-nat.h (windows_set_context_register_offsets):
13521 Remove declaration.
13522 (windows_set_segment_register_p): Likewise.
13523 (i386_windows_segment_register_p): Add declaration.
13524 (amd64_windows_segment_register_p): Likewise.
13525
440cf44e
LM
135262020-03-04 Luis Machado <luis.machado@linaro.org>
13527
13528 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13529 in "info registers" for AArch64/ARM.
13530
13531 The change caused "info registers" to not print GPR's.
13532
13533 gdb/ChangeLog:
13534
13535 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13536
13537 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13538 when reg->group is empty and reggroup is not.
13539
1009d92f
TT
135402020-03-03 Tom Tromey <tromey@adacore.com>
13541
13542 * dwarf2/frame.c (struct dwarf2_frame_cache)
13543 <checked_tailcall_bottom, entry_cfa_sp_offset,
13544 entry_cfa_sp_offset_p>: Remove members.
13545 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13546 (dwarf2_frame_prev_register): Don't call
13547 dwarf2_tailcall_sniffer_first.
13548 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13549 * frame-unwind.c (add_unwinder): New fuction.
13550 (frame_unwind_init): Use it. Add tailcall unwinder.
13551
5e5d66b6
AB
135522020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13553 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13554
13555 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13556 value should be printed as true.
13557
584cf46d
HD
135582020-03-03 Hannes Domani <ssbssa@yahoo.de>
13559
13560 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13561 (windows_init_abi): Set and use windows_so_ops.
13562
7b973adc
SDJ
135632020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13564
13565 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13566 when verifying if dealing with a convenience variable.
13567
bb7b70ab
LM
135682020-03-03 Luis Machado <luis.machado@linaro.org>
13569
13570 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13571
9822cb57
SM
135722020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13573
13574 * infrun.c (gdbarch_supports_displaced_stepping): New.
13575 (use_displaced_stepping): Break up conditions in smaller pieces.
13576 Use gdbarch_supports_displaced_stepping.
13577 (displaced_step_prepare_throw): Use
13578 gdbarch_supports_displaced_stepping.
13579
63e163f2
AB
135802020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13581
13582 * NEWS: Mention new behaviour of the history filename.
13583 * top.c (write_history_p): Add comment.
13584 (show_write_history_p): Add header comment, give a different
13585 message when history writing is on, but the history filename is
13586 empty.
13587 (history_filename): Add comment.
13588 (history_filename_empty): New function.
13589 (show_history_filename): Add header comment, give a different
13590 message when the filename is empty.
13591 (init_history): Compare history_filename against nullptr, and only
13592 read history if the filename is not empty.
13593 (set_history_filename): Add header comment, and only make
13594 non-empty filenames absolute.
13595 (init_main): Make the filename argument to 'set history filename'
13596 optional.
13597
81b86b97
CB
135982020-03-02 Christian Biesinger <cbiesinger@google.com>
13599
13600 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13601 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13602 (fetch_fp_register): Update.
13603 (fetch_fp_regs): Update.
13604 (store_fp_register): Update.
13605 (store_fp_regs): Update.
13606 (arm_netbsd_nat_target::read_description): New function.
13607 (fetch_elfcore_registers): Update.
13608
24ed6739
AB
136092020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13610
13611 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13612 general_thread if the stop reply is missing a thread-id.
13613 (remote_target::process_stop_reply): Use the first non-exited
13614 thread if the target didn't pass a thread-id.
13615 * infrun.c (do_target_wait): Move call to
13616 switch_to_inferior_no_thread to ....
13617 (do_target_wait_1): ... here.
13618
a84bb2a0
JT
136192020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13620
13621 * debuginfod-support.c: Include defs.h first.
13622
658dadf0
TV
136232020-02-28 Tom de Vries <tdevries@suse.de>
13624
13625 * symfile.c (set_initial_language): Use default language for lookup.
13626
4ebe4877
SM
136272020-02-28 Simon Marchi <simon.marchi@efficios.com>
13628
13629 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13630 reader variable, pass `this` to read_cutu_die_from_dwo.
13631
e5da1139
AM
136322020-02-27 Aaron Merey <amerey@redhat.com>
13633
13634 * source.c (open_source_file): Check for nullptr when computing
13635 srcpath.
13636
317f7127
TT
136372020-02-27 Tom Tromey <tromey@adacore.com>
13638
13639 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13640 member.
13641 (dwarf2_add_field): Don't update nfields.
13642 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13643
3104d9ee
AB
136442020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13645
13646 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13647 abs.
13648
b83470bf
TT
136492020-02-26 Tom Tromey <tom@tromey.com>
13650
13651 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13652 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13653 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13654 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13655 per_cu_data.
13656
edfe0a0c
TT
136572020-02-26 Tom Tromey <tom@tromey.com>
13658
13659 * dwarf2/index-write.c (psym_index_map): Change type.
13660 (add_address_entry_worker, write_one_signatured_type)
13661 (recursively_count_psymbols, recursively_write_psymbols)
13662 (class debug_names, psyms_seen_size, write_gdbindex)
13663 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13664
0d79cdc4
AM
136652020-02-26 Aaron Merey <amerey@redhat.com>
13666
13667 * Makefile.in: Handle optional debuginfod support.
13668 * NEWS: Update.
13669 * README: Add --with-debuginfod summary.
13670 * config.in: Regenerate.
13671 * configure: Regenerate.
13672 * configure.ac: Handle optional debuginfod support.
13673 * debuginfod-support.c: debuginfod helper functions.
13674 * debuginfod-support.h: Ditto.
13675 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13676 summary.
13677 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13678 when a dwz file cannot be found.
13679 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13680 debuginfo file cannot be found.
13681 * source.c (open_source_file): Query debuginfod servers when a
13682 source file cannot be found.
13683 * top.c (print_gdb_configuration): Include
13684 --{with,without}-debuginfod in the output.
13685
b65ce565
JG
136862020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13687
13688 * thread.c (thr_try_catch_cmd): Print thread name.
13689
d4c9a4f8
SM
136902020-02-26 Simon Marchi <simon.marchi@efficios.com>
13691
13692 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13693 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13694 dwarf2_fetch_die_type_sect_off): Move to...
13695 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13696 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13697 dwarf2_fetch_die_type_sect_off): ... here.
13698 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13699 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13700 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13701
0dce4280
TV
137022020-02-26 Tom de Vries <tdevries@suse.de>
13703
13704 PR gdb/25603
13705 * symfile.c (set_initial_language): Exit-early if
13706 language_mode == language_mode_manual.
13707
450a1bfc
SM
137082020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13709
13710 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13711 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13712 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13713
9e80cfa1
AB
137142020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13715
13716 * gdbtypes.c (create_array_type_with_stride): Handle negative
13717 array strides.
13718 * valarith.c (value_subscripted_rvalue): Likewise.
13719
09624f1f
LM
137202020-02-25 Luis Machado <luis.machado@linaro.org>
13721
13722 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13723
8cb5117c
SM
137242020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13725
13726 * loc.h (dwarf2_get_die_type): Move to...
13727 * read.h (dwarf2_get_die_type): ... here.
13728 * read.c (dwarf2_get_die_type): Move doc to header.
13729
c325c44e
JB
137302020-02-25 Joel Brobecker <brobecker@adacore.com>
13731
13732 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13733 'gnulib/Makefile.in' to the list.
13734
4ac93832
TT
137352020-02-24 Tom Tromey <tom@tromey.com>
13736
13737 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13738 Remove.
13739 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13740 XOBNEWVEC.
13741
197400e8
TT
137422020-02-24 Tom Tromey <tom@tromey.com>
13743
13744 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13745 New method.
13746 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13747 (dw2_do_instantiate_symtab, dw2_get_file_names)
13748 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13749
76935768
TT
137502020-02-24 Tom Tromey <tom@tromey.com>
13751
13752 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13753 make_scoped_restore.
13754 (dwarf2_psymtab::read_symtab): Don't clear
13755 reading_partial_symbols.
13756
a88ef40d
TV
137572020-02-24 Tom de Vries <tdevries@suse.de>
13758
13759 PR gdb/25592
13760 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13761
c9af6521
TV
137622020-02-24 Tom de Vries <tdevries@suse.de>
13763
13764 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13765 commands layout next/prev/regs.
13766
5707a07a
TT
137672020-02-22 Tom Tromey <tom@tromey.com>
13768
13769 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13770 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13771
3b0fb49e
TT
137722020-02-22 Tom Tromey <tom@tromey.com>
13773
13774 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13775
283be8bf
TT
137762020-02-22 Tom Tromey <tom@tromey.com>
13777
13778 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13779 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13780 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13781 * tui/tui.c (_initialize_tui): Add usage text.
13782
ca793b96
TT
137832020-02-22 Tom Tromey <tom@tromey.com>
13784
13785 * tui/tui-win.c (tui_set_focus_command)
13786 (tui_set_win_height_command): Use error_no_arg.
13787 (_initialize_tui_win): Update help text.
13788 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13789
432b5c40
TT
137902020-02-22 Tom Tromey <tom@tromey.com>
13791
13792 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13793 * tui/tui-disasm.h (struct tui_disasm_window)
13794 <display_start_addr>: Declare.
13795 * tui/tui-source.h (struct tui_source_window)
13796 <display_start_addr>: Declare.
13797 * tui/tui-winsource.h (struct tui_source_window_base)
13798 <show_source_line, display_start_addr>: New methods.
13799 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13800 Rename and move to protected section.
13801 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13802 (tui_source_window_base::do_erase_source_content): Update.
13803 (tui_source_window_base::show_source_line): Now a method.
13804 (tui_source_window_base::show_source_content)
13805 (tui_source_window_base::tui_source_window_base)
13806 (tui_source_window_base::rerender)
13807 (tui_source_window_base::refill)
13808 (tui_source_window_base::do_scroll_horizontal)
13809 (tui_source_window_base::set_is_exec_point_at)
13810 (tui_source_window_base::update_breakpoint_info)
13811 (tui_source_window_base::update_exec_info): Update.
13812 * tui/tui-source.c (tui_source_window::set_contents)
13813 (tui_source_window::showing_source_p)
13814 (tui_source_window::do_scroll_vertical)
13815 (tui_source_window::location_matches_p)
13816 (tui_source_window::line_is_displayed): Update.
13817 (tui_source_window::display_start_addr): New method.
13818 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13819 (tui_disasm_window::do_scroll_vertical)
13820 (tui_disasm_window::location_matches_p): Update.
13821 (tui_disasm_window::display_start_addr): New method.
13822
01b1af32
TT
138232020-02-22 Tom Tromey <tom@tromey.com>
13824
13825 * NEWS: Add entry for gdb.register_window_type.
13826 * tui/tui-layout.h (window_factory): New typedef.
13827 (tui_register_window): Declare.
13828 * tui/tui-layout.c (saved_tui_windows): New global.
13829 (tui_apply_current_layout): Use it.
13830 (tui_register_window): New function.
13831 * python/python.c (do_start_initialization): Call
13832 gdbpy_initialize_tui.
13833 (python_GdbMethods): Add "register_window_type" function.
13834 * python/python-internal.h (gdbpy_register_tui_window)
13835 (gdbpy_initialize_tui): Declare.
13836 * python/py-tui.c: New file.
13837 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13838
fc96d20b
TT
138392020-02-22 Tom Tromey <tom@tromey.com>
13840
13841 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13842
935c78c0
TT
138432020-02-22 Tom Tromey <tom@tromey.com>
13844
13845 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13846 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13847 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13848 (tui_set_win_focus_to): Move from tui-win.c.
13849
0240c8f1
TT
138502020-02-22 Tom Tromey <tom@tromey.com>
13851
13852 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13853 functions.
13854 (known_window_types): New global.
13855 (tui_get_window_by_name): Reimplement.
13856 (initialize_known_windows): New function.
13857 (validate_window_name): Rewrite.
13858 (_initialize_tui_layout): Call initialize_known_windows.
13859
fdb01f0c
TT
138602020-02-22 Tom Tromey <tom@tromey.com>
13861
13862 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13863 Remove constants.
13864 * tui/tui-winsource.h (struct tui_source_window_base)
13865 <tui_source_window_base>: Remove parameter.
13866 * tui/tui-winsource.c
13867 (tui_source_window_base::tui_source_window_base): Remove
13868 parameter.
13869 (tui_source_window_base::refill): Update.
13870 * tui/tui-stack.h (struct tui_locator_window)
13871 <tui_locator_window>: Update.
13872 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13873 Default the constructor.
13874 * tui/tui-regs.h (struct tui_data_item_window)
13875 <tui_data_item_window>: Default the constructor.
13876 (struct tui_data_window) <tui_data_window>: Likewise.
13877 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13878 Default the constructor.
13879 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13880 Default the constructor.
13881 <type>: Remove.
13882 (struct tui_win_info) <tui_win_info>: Default the constructor.
13883 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13884 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13885 Default the constructor.
13886
865a5aec
TT
138872020-02-22 Tom Tromey <tom@tromey.com>
13888
13889 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13890 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13891 * tui/tui-win.c (tui_resize_all): Don't call
13892 tui_delete_invisible_windows.
13893 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13894 done.
13895 (tui_set_layout): Update.
13896 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13897 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13898 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13899
e098d18c
TT
139002020-02-22 Tom Tromey <tom@tromey.com>
13901
13902 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13903 correctly.
13904
eb9c8874
TT
139052020-02-22 Tom Tromey <tom@tromey.com>
13906
13907 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13908
7eed1a8e
TT
139092020-02-22 Tom Tromey <tom@tromey.com>
13910
13911 * tui/tui-winsource.h (struct tui_source_window_iterator)
13912 <inner_iterator>: New etytypedef.
13913 <tui_source_window_iterator>: Take "end" parameter.
13914 <tui_source_window_iterator>: Take iterator.
13915 <operator*, advance>: Update.
13916 <m_iter>: Change type.
13917 <m_end>: New field.
13918 (struct tui_source_windows) <begin, end>: Update.
13919 * tui/tui-layout.c (tui_windows): New global.
13920 (tui_apply_current_layout): Clear tui_windows.
13921 (tui_layout_window::apply): Update tui_windows.
13922 * tui/tui-data.h (tui_windows): Declare.
13923 (all_tui_windows): Now inline function.
13924 (class tui_window_iterator, struct all_tui_windows): Remove.
13925
7c043ba6
TT
139262020-02-22 Tom Tromey <tom@tromey.com>
13927
13928 PR tui/17850:
13929 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13930 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13931 "height" argument.
13932 (class tui_layout_window) <get_sizes>: Likewise.
13933 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13934 argument.
13935 <get_sizes>: Add "height" argument.
13936 <m_vertical>: New field.
13937 * tui/tui-layout.c (tui_layout_split::clone): Update.
13938 (tui_layout_split::get_sizes): Add "height" argument.
13939 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13940 (tui_new_layout_command): Parse "-horizontal".
13941 (_initialize_tui_layout): Update help string.
13942 (tui_layout_split::specification): Add "-horizontal" when needed.
13943 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13944 argument.
13945 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13946 New methods.
13947
6bc56648
TT
139482020-02-22 Tom Tromey <tom@tromey.com>
13949
13950 * tui/tui-layout.h (enum tui_adjust_result): New.
13951 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13952 (class tui_layout_window) <adjust_size>: Return
13953 tui_adjust_result. Rewrite.
13954 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13955 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13956
c22fef7e
TT
139572020-02-22 Tom Tromey <tom@tromey.com>
13958
13959 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13960 parameter and return types.
13961 (class tui_layout_base) <specification>: Add "depth".
13962 (class tui_layout_window) <specification>: Add "depth".
13963 (class tui_layout_split) <specification>: Add "depth".
13964 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13965 and return types.
13966 (tui_new_layout_command): Parse sub-layouts.
13967 (_initialize_tui_layout): Update help string.
13968 (tui_layout_window::specification): Add "depth".
13969 (add_layout_command): Update.
13970
ee325b61
TT
139712020-02-22 Tom Tromey <tom@tromey.com>
13972
13973 * NEWS: Add "tui new-layout" item.
13974 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13975 Add new-layout command to help text.
13976 (validate_window_name): New function.
13977 (tui_new_layout_command): New function.
13978 (_initialize_tui_layout): Register "new-layout".
13979 (tui_layout_window::specification): New method.
13980 (tui_layout_window::specification): New method.
13981 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13982 method.
13983 (class tui_layout_window) <specification>: New method.
13984 (class tui_layout_split) <specification>: New method.
13985
416eb92d
TT
139862020-02-22 Tom Tromey <tom@tromey.com>
13987
13988 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13989 * tui/tui-win.c (window_name_completer): Update comment.
13990 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13991 Declare method.
13992 (class tui_layout_window) <replace_window>: Likewise.
13993 (class tui_layout_split) <replace_window>: Likewise.
13994 (tui_set_layout): Don't declare.
13995 (tui_set_initial_layout): Declare function.
13996 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13997 (asm_regs_layout): New globals.
13998 (tui_current_layout, show_layout): Remove.
13999 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14000 (find_layout, tui_apply_layout): New function.
14001 (layout_completer): Remove.
14002 (tui_next_layout): Reimplement.
14003 (tui_next_layout_command): New function.
14004 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14005 (tui_regs_layout): Reimplement.
14006 (tui_regs_layout_command): New function.
14007 (extract_display_start_addr): Rewrite.
14008 (next_layout, prev_layout): Remove.
14009 (tui_layout_window::replace_window): New method.
14010 (tui_layout_split::replace_window): New method.
14011 (destroy_layout): New function.
14012 (layout_list): New global.
14013 (add_layout_command): New function.
14014 (initialize_layouts): Update.
14015 (tui_layout_command): New function.
14016 (_initialize_tui_layout): Install "layout" commands.
14017 * tui/tui-data.h (enum tui_layout_type): Remove.
14018 (tui_current_layout): Don't declare.
14019
0dbc2fc7
TT
140202020-02-22 Tom Tromey <tom@tromey.com>
14021
14022 * tui/tui-regs.c (tui_reg_layout): Remove.
14023 (tui_reg_command): Use tui_regs_layout.
14024 * tui/tui-layout.h (tui_reg_command): Declare.
14025 * tui/tui-layout.c (tui_reg_command): New function.
14026
5afe342e
TT
140272020-02-22 Tom Tromey <tom@tromey.com>
14028
14029 * tui/tui.c (tui_rl_delete_other_windows): Call
14030 tui_remove_some_windows.
14031 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14032 Declare method.
14033 (class tui_layout_window) <remove_windows>: New method.
14034 (class tui_layout_split) <remove_windows>: Declare.
14035 (tui_remove_some_windows): Declare.
14036 * tui/tui-layout.c (tui_remove_some_windows): New function.
14037 (tui_layout_split::remove_windows): New method.
14038
427326a8
TT
140392020-02-22 Tom Tromey <tom@tromey.com>
14040
14041 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14042 * tui/tui-layout.h (tui_next_layout): Declare.
14043 * tui/tui-layout.c (tui_next_layout): New function.
14044
3fe12b6d
TT
140452020-02-22 Tom Tromey <tom@tromey.com>
14046
14047 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14048 correct coordinates.
14049
59b8b5d2
TT
140502020-02-22 Tom Tromey <tom@tromey.com>
14051
14052 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14053 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14054 DATA_WIN case.
14055
2a3d458b
TT
140562020-02-22 Tom Tromey <tom@tromey.com>
14057
14058 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14059 TUI_DISASM_WIN, not tui_win_list.
14060
3f0cbb04
TT
140612020-02-22 Tom Tromey <tom@tromey.com>
14062
14063 * valprint.c (generic_val_print_enum_1)
14064 (val_print_type_code_flags): Style member names.
14065 * rust-lang.c (val_print_struct, rust_print_enum)
14066 (rust_print_struct_def, rust_internal_print_type): Style member
14067 names.
14068 * p-valprint.c (pascal_object_print_value_fields): Style member
14069 names. Only call fprintf_symbol_filtered for static members.
14070 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14071 * f-valprint.c (f_val_print): Style member names.
14072 * f-typeprint.c (f_type_print_base): Style member names.
14073 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14074 call fprintf_symbol_filtered for static members.
14075 (cp_print_class_member): Style member names.
14076 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14077 member names.
14078 * ada-valprint.c (ada_print_scalar): Style enum names.
14079 (ada_val_print_enum): Likewise.
14080 * ada-typeprint.c (print_enum_type): Style enum names.
14081
d4d947ae
TT
140822020-02-21 Tom Tromey <tom@tromey.com>
14083
14084 * psympriv.h (struct partial_symtab): Update comment.
14085
e94e944b
TT
140862020-02-21 Tom Tromey <tromey@adacore.com>
14087
14088 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14089 type is CORE_ADDR.
14090
1eb73179
TV
140912020-02-21 Tom de Vries <tdevries@suse.de>
14092
14093 PR gdb/25534
14094 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14095 if dependencies[i]->user != NULL.
14096
4f180d53
AT
140972020-02-21 Ali Tamur <tamur@google.com>
14098
14099 * dwarf2/read.c (dwarf2_name): Add null check.
14100
22b6cd70
TT
141012020-02-20 Tom Tromey <tom@tromey.com>
14102
14103 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14104 ">=", in binary search.
14105 (dwarf2_find_containing_comp_unit): New overload.
14106 (run_test): New self-test.
14107 (_initialize_dwarf2_read): Register new test.
14108
bd0cf5a6
NC
141092020-02-20 Nelson Chu <nelson.chu@sifive.com>
14110
14111 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14112 * riscv-tdep.h: Likewise.
14113 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14114 rv32-only CSR.
14115 * features/riscv/64bit-csr.xml: Regenerated.
14116
3f702acd
SDJ
141172020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14118 Tom Tromey <tom@tromey.com>
14119
14120 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14121 of 'fputc_unfiltered'.
14122 (putchar_unfiltered): Call 'fputc_unfiltered'.
14123 (fputc_unfiltered): Call 'fputs_unfiltered'.
14124
d13c7322
AB
141252020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14126
14127 * config.in: Regenerate.
14128 * configure: Regenerate.
14129 * configure.ac: Add --with-python-libdir option.
14130 * main.c: Use WITH_PYTHON_LIBDIR.
14131
869d8950
TT
141322020-02-19 Tom Tromey <tom@tromey.com>
14133
14134 * symtab.c (general_symbol_info::compute_and_set_names): Use
14135 obstack_strndup. Simplify call to symbol_set_demangled_name.
14136
298e9637
SM
141372020-02-19 Simon Marchi <simon.marchi@efficios.com>
14138
14139 * dwarf2/read.c (allocate_signatured_type_table,
14140 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14141 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14142 Remove objfile parameter, update all callers.
14143
08410482
DE
141442020-02-19 Doug Evans <dje@google.com>
14145
14146 PR rust/25535
14147 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14148 rust_enum_variant calculation.
14149
dfdeeca1
TT
141502020-02-19 Tom Tromey <tromey@adacore.com>
14151
14152 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14153
2ef5453b
TT
141542020-02-19 Tom Tromey <tromey@adacore.com>
14155
14156 * ada-lang.c (cache_symbol): Use obstack_strdup.
14157
9f1528a1
AB
141582020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14159
14160 * configure: Regenerate.
14161
d3c22fa8
TT
141622020-02-19 Tom Tromey <tromey@adacore.com>
14163
14164 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14165 NULL check.
14166
bf84f706
MR
141672020-02-19 Maciej W. Rozycki <macro@wdc.com>
14168
14169 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14170
d1c9b20f
AB
141712020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14172
14173 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14174 if GDBSERVER is not defined.
14175 (riscv_tdesc_cache): Likewise, also store const target_desc.
14176 (STATIC_IN_GDB): Define.
14177 (riscv_create_target_description): Update declaration with
14178 STATIC_IN_GDB.
14179 (riscv_lookup_target_description): New function, only define if
14180 GDBSERVER is not defined.
14181 * arch/riscv.h (riscv_create_target_description): Declare only
14182 when GDBSERVER is defined.
14183 (riscv_lookup_target_description): New declaration when GDBSERVER
14184 is not defined.
14185 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14186 (riscv_linux_read_features): ...this, and return
14187 riscv_gdbarch_features instead of target_desc.
14188 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14189 (riscv_linux_read_description): Rename to...
14190 (riscv_linux_read_features): ...this.
14191 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14192 Update to use riscv_gdbarch_features and
14193 riscv_lookup_target_description.
14194 * riscv-tdep.c (riscv_find_default_target_description): Use
14195 riscv_lookup_target_description instead of
14196 riscv_create_target_description.
14197
373d7ac0
SM
141982020-02-18 Simon Marchi <simon.marchi@efficios.com>
14199
14200 * valprint.c (generic_val_print_enum_1): When printing a flag
14201 enum with value 0 and there is no enumerator with value 0, print
14202 just "0" instead of "(unknown: 0x0)".
14203
b29a2df0
SM
142042020-02-18 Simon Marchi <simon.marchi@efficios.com>
14205
14206 * valprint.c (generic_val_print_enum_1): Print unknown part of
14207 flag enum in hex.
14208
6740f0cc
SM
142092020-02-18 Simon Marchi <simon.marchi@efficios.com>
14210
14211 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14212 flag enums to contain duplicate enumerators.
14213 * valprint.c (generic_val_print_enum_1): Update comment.
14214
edd45eb0
SM
142152020-02-18 Simon Marchi <simon.marchi@efficios.com>
14216
14217 * dwarf2/read.c: Include "count-one-bits.h".
14218 (update_enumeration_type_from_children): If an enumerator has
14219 multiple bits set, don't treat the enumeration as a "flag enum".
14220 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14221 of flag enums have 0 or 1 bit set.
14222
6d0cf446
BE
142232020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14224
14225 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14226 conversion.
14227 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14228 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14229 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14230 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14231 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14232
7001c1b7
SM
142332020-02-18 Simon Marchi <simon.marchi@efficios.com>
14234
14235 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14236
fdb61c6c
SM
142372020-02-14 Simon Marchi <simon.marchi@efficios.com>
14238
14239 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14240 displaced_step_closure_up.
14241 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14242 (struct displaced_step_closure_up):
14243 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14244 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14245 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14246 Likewise.
14247 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14248 * gdbarch.c, gdbarch.h: Re-generate.
14249 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14250 displaced_step_closure_up.
14251 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14252 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14253 * infrun.h (displaced_step_closure_up): New type alias.
14254 (struct displaced_step_inferior_state) <step_closure>: Change
14255 type to displaced_step_closure_up.
14256 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14257 displaced_step_closure_up.
14258 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14259
a4a38eb4
TT
142602020-02-14 Tom Tromey <tom@tromey.com>
14261
14262 * minidebug.c (gnu_debug_key): New global.
14263 (find_separate_debug_file_in_section): Use it.
14264
e8217e61
SM
142652020-02-14 Simon Marchi <simon.marchi@efficios.com>
14266
14267 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14268 std::unique_ptr.
14269 * gdbarch.c: Re-generate.
14270 * gdbarch.h: Re-generate.
14271 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14272 change.
14273 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14274 type to std::unique_ptr.
14275 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14276 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14277 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14278 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14279 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14280 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14281 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14282 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14283 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14284
d8d83535
SM
142852020-02-14 Simon Marchi <simon.marchi@efficios.com>
14286
14287 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14288 std::unique_ptr.
14289 (displaced_step_clear): Rename to...
14290 (displaced_step_reset): ... this. Just call displaced->reset ().
14291 (displaced_step_clear_cleanup): Rename to...
14292 (displaced_step_reset_cleanup): ... this.
14293 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14294 (displaced_step_fixup): Likewise.
14295 (resume_1): Likewise.
14296 (handle_inferior_event): Restore child's memory before calling
14297 displaced_step_fixup on the parent.
14298 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14299 to std::unique_ptr.
14300 <step_closure>: Change type to std::unique_ptr.
14301
5f661e03
SM
143022020-02-14 Simon Marchi <simon.marchi@efficios.com>
14303
14304 * arm-tdep.c: Include count-one-bits.h.
14305 (cleanup_block_store_pc): Use count_one_bits.
14306 (cleanup_block_load_pc): Use count_one_bits.
14307 (arm_copy_block_xfer): Use count_one_bits.
14308 (thumb2_copy_block_xfer): Use count_one_bits.
14309 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14310 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14311 (thumb_get_next_pcs_raw): Use count_one_bits.
14312 (arm_get_next_pcs_raw): Use count_one_bits_l.
14313 * arch/arm.c (bitcount): Remove.
14314 * arch/arm.h (bitcount): Remove.
14315
8084e579
TT
143162020-02-14 Tom Tromey <tromey@adacore.com>
14317
14318 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14319 Update.
14320 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14321 * dwarf2/loc.c (call_site_find_chain_1): Return
14322 unique_xmalloc_ptr.
14323 (call_site_find_chain): Likewise.
14324
258bf0ee
RB
143252020-02-14 Richard Biener <rguenther@suse.de>
14326
14327 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14328 on expression with division operators.
14329
f98a8458
AKS
143302020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14331
14332 * MAINTAINERS (Write After Approval): Adding myself.
14333
d1437c0e
TT
143342020-02-12 Tom Tromey <tom@tromey.com>
14335
14336 * event-loop.c (event_data, gdb_event, event_handler_func):
14337 Remove.
14338
3d4560f7
TT
143392020-02-12 Tom Tromey <tom@tromey.com>
14340
14341 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14342 (dwarf2_frame_objfile_data): Add comment.
14343 (find_comp_unit, set_comp_unit): New functions.
14344 (dwarf2_frame_find_fde): Use find_comp_unit.
14345 (dwarf2_build_frame_info): Use set_comp_unit.
14346
21982304
TT
143472020-02-12 Tom Tromey <tom@tromey.com>
14348
14349 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14350 (comp_unit): Don't initialize objfile.
14351 (execute_cfa_program): Add text_offset parameter.
14352 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14353 (dwarf2_frame_cache): Update.
14354 (dwarf2_build_frame_info): Don't set "objfile" member.
14355
4debb237
TT
143562020-02-12 Tom Tromey <tom@tromey.com>
14357
14358 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14359 (decode_frame_entry): Likewise.
14360 (dwarf2_build_frame_info): Update.
14361
0d404d44
TT
143622020-02-12 Tom Tromey <tom@tromey.com>
14363
14364 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14365 (decode_frame_entry_1): Use the comp_unit obstack.
14366
a7a3ae5c
TT
143672020-02-12 Tom Tromey <tom@tromey.com>
14368
14369 * dwarf2/frame.c (struct comp_unit): Add initializers and
14370 constructor.
14371 (dwarf2_frame_objfile_data): Store a comp_unit.
14372 (dwarf2_frame_find_fde): Update.
14373 (dwarf2_build_frame_info): Use "new".
14374
a9d65418
TT
143752020-02-12 Tom Tromey <tom@tromey.com>
14376
14377 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14378 (dwarf2_fde_table): Typedef for std::vector.
14379 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14380 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14381 (decode_frame_entry): Update.
14382 (dwarf2_build_frame_info): Use "new".
14383
7559c217
CB
143842020-02-12 Christian Biesinger <cbiesinger@google.com>
14385
14386 * arm-tdep.c (arm_gdbarch_init): Update.
14387 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14388 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14389 have_neon, is_m>: Change to bool.
14390
aeefc73c
CB
143912020-02-12 Christian Biesinger <cbiesinger@google.com>
14392
14393 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14394
d27b8e5f
TT
143952020-02-12 Tom Tromey <tom@tromey.com>
14396
14397 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14398
cd5900f3
HD
143992020-02-12 Hannes Domani <ssbssa@yahoo.de>
14400
14401 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14402 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14403
f056b22b
TT
144042020-02-11 Tom Tromey <tom@tromey.com>
14405
14406 * psymtab.h: Update comment.
14407
f92ff6b5
TT
144082020-02-11 Tom Tromey <tom@tromey.com>
14409
14410 * gdb_obstack.h (struct auto_obstack): Use
14411 DISABLE_COPY_AND_ASSIGN.
14412
3fd6912b
TT
144132020-02-11 Tom Tromey <tom@tromey.com>
14414
14415 * dwarf2/frame.h (struct objfile): Don't forward declare.
14416
69ed9b74
CB
144172020-02-11 Christian Biesinger <cbiesinger@google.com>
14418
14419 * cris-tdep.c (cris_supply_gregset): Change signature to match
14420 what struct regset expects.
14421 (cris_regset): New struct.
14422 (fetch_core_registers): Remove.
14423 (cris_iterate_over_regset_sections): New function.
14424 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14425 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14426
bda874f6
CB
144272020-02-11 Christian Biesinger <cbiesinger@google.com>
14428
14429 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14430 registers.
14431
754e1564
CB
144322020-02-11 Christian Biesinger <cbiesinger@google.com>
14433
14434 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14435
8ddd8e0e
SM
144362020-02-11 Simon Marchi <simon.marchi@efficios.com>
14437
14438 * configure: Re-generate.
14439
898e7f60
SM
144402020-02-11 Simon Marchi <simon.marchi@efficios.com>
14441
14442 * configure: Re-generate.
14443
58df732b
SM
144442020-02-11 Simon Marchi <simon.marchi@efficios.com>
14445
14446 * acinclude: Update warning.m4 path.
14447 * warning.m4: Move to gdbsupport.
14448
da5bd37e
TT
144492020-02-11 Tom Tromey <tromey@adacore.com>
14450
14451 * remote.c (remote_console_output): Update.
14452 * printcmd.c (printf_command): Update.
14453 * event-loop.c (gdb_wait_for_event): Update.
14454 * linux-nat.c (sigchld_handler): Update.
14455 * remote-sim.c (gdb_os_write_stdout): Update.
14456 (gdb_os_flush_stdout): Update.
14457 (gdb_os_flush_stderr): Update.
14458 (gdb_os_write_stderr): Update.
14459 * exceptions.c (print_exception): Update.
14460 * remote-fileio.c (remote_fileio_func_read): Update.
14461 (remote_fileio_func_write): Update.
14462 * tui/tui.c (tui_enable): Update.
14463 * tui/tui-interp.c (tui_interp::init): Update.
14464 * utils.c (init_page_info): Update.
14465 (putchar_unfiltered, fputc_unfiltered): Update.
14466 (gdb_flush): Update.
14467 (emit_style_escape): Update.
14468 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14469 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14470 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14471 (stderr_file::write): Update.
14472 (stderr_file::puts): Update.
14473 * ui-file.h (ui_file_isatty, ui_file_write)
14474 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14475 (ui_file_puts): Don't declare.
14476
85f0dd3c
TV
144772020-02-10 Tom de Vries <tdevries@suse.de>
14478
14479 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14480 sentinel to char *.
14481
2e927613
TV
144822020-02-09 Tom de Vries <tdevries@suse.de>
14483
14484 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14485 filename if it matches "<artificial>".
14486
6bafc845
HD
144872020-02-09 Hannes Domani <ssbssa@yahoo.de>
14488
14489 * windows-tdep.c (struct enum_value_name): New struct.
14490 (create_enum): New function.
14491 (windows_get_siginfo_type): Create and use enum types.
14492
7928d571
HD
144932020-02-09 Hannes Domani <ssbssa@yahoo.de>
14494
14495 * NEWS: Mention $_siginfo support for Windows.
14496 * windows-nat.c (handle_exception): Set siginfo_er.
14497 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14498 (windows_xfer_siginfo): New function.
14499 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14500 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14501 (init_windows_gdbarch_data): New function.
14502 (get_windows_gdbarch_data): New function.
14503 (windows_get_siginfo_type): New function.
14504 (windows_init_abi): Register windows_get_siginfo_type.
14505 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14506
6751ebae
TT
145072020-02-08 Tom Tromey <tom@tromey.com>
14508
14509 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14510 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14511 <keep>: Declare method.
14512 <m_keep>: Remove member.
14513 <~cutu_reader>: Remove.
14514 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14515 (cutu_reader::cutu_reader): Update.
14516 (cutu_reader::keep): Rename from ~cutu_reader.
14517 (process_psymtab_comp_unit, build_type_psymtabs_1)
14518 (process_skeletonless_type_unit, load_partial_comp_unit)
14519 (load_full_comp_unit, dwarf2_read_addr_index)
14520 (read_signatured_type): Update.
14521
135f5437
TT
145222020-02-08 Tom Tromey <tom@tromey.com>
14523
14524 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14525 "want_partial_unit" parameter.
14526 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14527 Inline check for DW_TAG_partial_unit.
14528 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14529
9f66ff1c
TT
145302020-02-08 Tom Tromey <tom@tromey.com>
14531
14532 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14533 read.c.
14534 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14535 read.c.
14536
c8a7a66f
TT
145372020-02-08 Tom Tromey <tom@tromey.com>
14538
14539 * dwarf2/read.c (read_address): Move to comp-unit.c.
14540 (dwarf2_rnglists_process, dwarf2_ranges_process)
14541 (read_attribute_value, dwarf_decode_lines_1)
14542 (var_decode_location, decode_locdesc): Update.
14543 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14544 read.c. Remove "cu" parameter.
14545 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14546 method.
14547
8266302d
TT
145482020-02-08 Tom Tromey <tom@tromey.com>
14549
14550 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14551 (read_indirect_line_string): Update.
14552 * dwarf2/comp-unit.c (read_offset): Remove.
14553 (read_comp_unit_head): Update.
14554 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14555 method.
14556 (read_offset): Don't declare.
14557
4057dfde
TT
145582020-02-08 Tom Tromey <tom@tromey.com>
14559
14560 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14561 * dwarf2/read.c (struct comp_unit_head): Move to
14562 dwarf2/comp-unit.h.
14563 (enum class rcuh_kind): Move to comp-unit.h.
14564 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14565 (read_comp_unit_head, error_check_comp_unit_head)
14566 (read_and_check_comp_unit_head): Move to comp-unit.c.
14567 (read_offset, dwarf_unit_type_name): Likewise.
14568 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14569 (cutu_reader::cutu_reader, read_call_site_scope)
14570 (find_partial_die, follow_die_offset): Update.
14571 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14572
24aa364d
TT
145732020-02-08 Tom Tromey <tom@tromey.com>
14574
14575 * dwarf2/read.c (read_offset_1): Move to leb.c.
14576 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14577 (dwarf_decode_macro_bytes): Update.
14578 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14579 * dwarf2/leb.h (read_offset): Declare.
14580
2c7d5afc
TT
145812020-02-08 Tom Tromey <tom@tromey.com>
14582
14583 * dwarf2/read.c (dwarf2_section_size): Remove.
14584 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14585 Update.
14586 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14587
4075cb26
TT
145882020-02-08 Tom Tromey <tom@tromey.com>
14589
14590 * dwarf2/read.c (read_initial_length): Move to leb.c.
14591 * dwarf2/leb.h (read_initial_length): Declare.
14592 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14593 handle_nonstd parameter.
14594 * dwarf2/frame.c (read_initial_length): Remove.
14595 (decode_frame_entry_1): Update.
14596
09ba997f
TT
145972020-02-08 Tom Tromey <tom@tromey.com>
14598
14599 * dwarf2/loc.c (dwarf2_find_location_expression)
14600 (dwarf_evaluate_loc_desc::get_tls_address)
14601 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14602 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14603 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14604 (dwarf2_compile_property_to_c)
14605 (dwarf2_loc_desc_get_symbol_read_needs)
14606 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14607 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14608 (loclist_describe_location, loclist_tracepoint_var_ref)
14609 (loclist_generate_c_location): Update.
14610 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14611 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14612 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14613 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14614 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14615 (dwarf2_per_cu_data::addr_size)
14616 (dwarf2_per_cu_data::ref_addr_size)
14617 (dwarf2_per_cu_data::text_offset)
14618 (dwarf2_per_cu_data::addr_type): Now methods.
14619 (per_cu_header_read_in): Make per_cu "const".
14620 (dwarf2_version): Remove.
14621 (dwarf2_per_cu_data::int_type): Now a method.
14622 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14623 (set_die_type, read_array_type, read_subrange_index_type)
14624 (read_tag_string_type, read_subrange_type): Update.
14625 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14626 offset_size, ref_addr_size, text_offset, addr_type, version,
14627 objfile, int_type, addr_sized_int_type>: Declare methods.
14628
96c738c0
TT
146292020-02-08 Tom Tromey <tom@tromey.com>
14630
14631 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14632 Move earlier.
14633
8fdd972c
TT
146342020-02-08 Tom Tromey <tom@tromey.com>
14635
14636 * dwarf2/read.h (dwarf_line_debug): Declare.
14637 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14638 * dwarf2/read.c: Move line_header code to new files.
14639 (dwarf_line_debug): No longer static.
14640 * dwarf2/line-header.c: New file.
14641 * dwarf2/line-header.h: New file.
14642
03075812
TT
146432020-02-08 Tom Tromey <tom@tromey.com>
14644
14645 * dwarf2/read.c (struct line_header) <file_full_name,
14646 file_file_name>: Return unique_xmalloc_ptr.
14647 (line_header::file_file_name): Update.
14648 (line_header::file_full_name): Update.
14649 (dw2_get_file_names_reader): Update.
14650 (macro_start_file): Update.
14651
bb822404
TT
146522020-02-08 Tom Tromey <tom@tromey.com>
14653
14654 * dwarf2/read.c (struct line_header) <file_full_name,
14655 file_file_name>: Declare methods.
14656 (dw2_get_file_names_reader): Update.
14657 (file_file_name): Now a method.
14658 (file_full_name): Likewise.
14659 (macro_start_file): Update.
14660
009b64fc
TT
146612020-02-08 Tom Tromey <tom@tromey.com>
14662
14663 * dwarf2/read.c (dwarf_always_disassemble)
14664 (show_dwarf_always_disassemble): Move to loc.c.
14665 (_initialize_dwarf2_read): Move "always-disassemble" registration
14666 to loc.c.
14667 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14668 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14669 static.
14670 (show_dwarf_always_disassemble): Move from read.c.
14671 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14672
5895093f
TT
146732020-02-08 Tom Tromey <tom@tromey.com>
14674
14675 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14676 (create_quick_file_names_table): Return htab_up.
14677 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14678 Update.
14679 * dwarf2/read.h (struct dwarf2_per_objfile)
14680 <quick_file_names_table>: Now htab_up.
14681
b3b32279
TT
146822020-02-08 Tom Tromey <tom@tromey.com>
14683
14684 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14685
1d33d811
TT
146862020-02-08 Tom Tromey <tom@tromey.com>
14687
14688 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14689 Rewrite.
14690 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14691 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14692 (abbrev_table::abbrev_table): No longer inline.
14693 (ABBREV_HASH_SIZE): Remove.
14694 (abbrev_table::m_abbrevs): Now an htab_up.
14695
86de1d91
TT
146962020-02-08 Tom Tromey <tom@tromey.com>
14697
14698 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14699 (cutu_reader): Update.
14700 (build_type_psymtabs_1): Update.
14701 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14702 (abbrev_table::alloc_abbrev): Update.
14703 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14704 (abbrev_table::read): New static method, renamed from
14705 abbrev_table_read_table.
14706 (abbrev_table::alloc_abbrev)
14707 (abbrev_table::add_abbrev): Now private.
14708 (abbrev_table::abbrev_table): Now private.
14709 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14710
0335378b
TT
147112020-02-08 Tom Tromey <tom@tromey.com>
14712
14713 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14714 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14715 htab_up.
14716
48b490f2
TT
147172020-02-08 Tom Tromey <tom@tromey.com>
14718
14719 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14720 htab_up.
14721 (lookup_dwo_unit_in_dwp): Update.
14722 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14723 on obstack.
14724
bc68fb19
TT
147252020-02-08 Tom Tromey <tom@tromey.com>
14726
14727 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14728 obstack.
14729
d15acc42
TT
147302020-02-08 Tom Tromey <tom@tromey.com>
14731
14732 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14733 line_header_hash.
14734 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14735 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14736 Change type to htab_up.
14737
eaa5fa8b
TT
147382020-02-08 Tom Tromey <tom@tromey.com>
14739
14740 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14741 htab_up. Don't allocate on obstack.
14742 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14743 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14744 Change type to htab_up.
14745
b0b6a987
TT
147462020-02-08 Tom Tromey <tom@tromey.com>
14747
14748 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14749 Change type to htab_up.
14750 * dwarf2/read.c (create_signatured_type_table_from_index)
14751 (create_signatured_type_table_from_debug_names)
14752 (create_all_type_units, add_type_unit)
14753 (lookup_dwo_signatured_type, lookup_signatured_type)
14754 (process_skeletonless_type_unit): Update.
14755 (create_debug_type_hash_table, create_debug_types_hash_table):
14756 Change type of types_htab.
14757 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14758 htab_up. Don't allocate on obstack.
14759 (create_cus_hash_table): Change type of cus_htab parameter.
14760 (struct dwo_file) <cus, tus>: Now htab_up.
14761 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14762 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14763 (queue_and_load_all_dwo_tus): Update.
14764 * dwarf2/index-write.c (write_gdbindex): Update.
14765 (write_debug_names): Update.
14766
39856def
TT
147672020-02-08 Tom Tromey <tom@tromey.com>
14768
14769 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14770 dwarf2/read.c. Remove "next" member. Add constructor ntad
14771 destructor.
14772 (struct dwarf2_per_objfile) <queue>: New member.
14773 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14774 dwarf2/read.h.
14775 (dwarf2_queue, dwarf2_queue_tail): Remove.
14776 (class dwarf2_queue_guard): Add parameter to constructor. Use
14777 DISABLE_COPY_AND_ASSIGN.
14778 <m_per_objfile>: New member.
14779 <~dwarf2_queue_guard>: Rewrite.
14780 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14781 Update.
14782 (~dwarf2_queue_item): New.
14783
3e225074
TT
147842020-02-08 Tom Tromey <tom@tromey.com>
14785
14786 * dwarf2/read.c (struct die_info) <has_children>: New member.
14787 (dw2_get_file_names_reader): Remove has_children.
14788 (dw2_get_file_names): Update.
14789 (read_cutu_die_from_dwo): Remove has_children.
14790 (cutu_reader::init_tu_and_read_dwo_dies)
14791 (cutu_reader::cutu_reader): Update.
14792 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14793 Remove has_children.
14794 (build_type_psymtabs_1, process_skeletonless_type_unit)
14795 (load_partial_comp_unit, load_full_comp_unit): Update.
14796 (create_dwo_cu_reader): Remove has_children.
14797 (create_cus_hash_table, read_die_and_children): Update.
14798 (read_full_die_1,read_full_die): Remove has_children.
14799 (read_signatured_type): Update.
14800 (class cutu_reader) <has_children>: Remove.
14801
82ca8957
TT
148022020-02-08 Tom Tromey <tom@tromey.com>
14803
14804 * dwarf2/expr.c: Rename from dwarf2expr.c.
14805 * dwarf2/expr.h: Rename from dwarf2expr.h.
14806 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14807 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14808 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14809 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14810 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14811 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14812 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14813 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14814 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14815 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14816 * dwarf2/loc.c: Rename from dwarf2loc.c.
14817 * dwarf2/loc.h: Rename from dwarf2loc.h.
14818 * dwarf2/read.c: Rename from dwarf2read.c.
14819 * dwarf2/read.h: Rename from dwarf2read.h.
14820 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14821 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14822 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14823 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14824 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14825 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14826 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14827 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14828 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14829 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14830 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14831 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14832 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14833 Update.
14834 * Makefile.in (COMMON_SFILES): Update.
14835 (HFILES_NO_SRCDIR): Update.
14836
9e35d499
TT
148372020-02-08 Tom Tromey <tom@tromey.com>
14838
14839 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14840 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14841
1eba2311
TT
148422020-02-08 Tom Tromey <tom@tromey.com>
14843
14844 * dwarf2read.h (struct die_info): Don't declare.
14845
e41c2da2
TT
148462020-02-08 Tom Tromey <tom@tromey.com>
14847
14848 * dwarf2read.h (die_info_ptr): Remove typedef.
14849
4fc6c0d5
TT
148502020-02-08 Tom Tromey <tom@tromey.com>
14851
14852 * dwarf2read.c (read_call_site_scope)
14853 (handle_data_member_location, dwarf2_add_member_fn)
14854 (mark_common_block_symbol_computed, read_common_block)
14855 (attr_to_dynamic_prop, partial_die_info::read)
14856 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14857 (dwarf2_symbol_mark_computed, set_die_type): Update.
14858 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14859 method.
14860 (attr_form_is_block): Don't declare.
14861 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14862
cd6c91b4
TT
148632020-02-08 Tom Tromey <tom@tromey.com>
14864
14865 * dwarf2read.c (dwarf2_find_base_address, )
14866 (read_call_site_scope, rust_containing_type)
14867 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14868 (handle_data_member_location, dwarf2_add_member_fn)
14869 (get_alignment, read_structure_type, process_structure_scope)
14870 (mark_common_block_symbol_computed, read_common_block)
14871 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14872 (partial_die_info::read, read_attribute_value, new_symbol)
14873 (lookup_die_type, dwarf2_get_ref_die_offset)
14874 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14875 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14876 (dwarf2_symbol_mark_computed): Update.
14877 * dwarf2/attribute.h (struct attribute) <value_as_address,
14878 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14879 methods.
14880 (value_as_address, attr_form_is_section_offset)
14881 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14882 * dwarf2/attribute.c (attribute::value_as_address)
14883 (attribute::form_is_section_offset, attribute::form_is_constant)
14884 (attribute::form_is_ref): Now methods.
14885
162dce55
TT
148862020-02-08 Tom Tromey <tom@tromey.com>
14887
14888 * dwarf2read.c (struct attribute, DW_STRING)
14889 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14890 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14891 (attr_form_is_block, attr_form_is_section_offset)
14892 (attr_form_is_constant, attr_form_is_ref): Move.
14893 * dwarf2/attribute.h: New file.
14894 * dwarf2/attribute.c: New file, from dwarf2read.c.
14895 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14896
3054dd54
TT
148972020-02-08 Tom Tromey <tom@tromey.com>
14898
14899 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14900 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14901 Move.
14902 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14903 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14904 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14905 abbrev.c.
14906 * dwarf2/abbrev.h: New file.
14907 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14908 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14909
96b79293
TT
149102020-02-08 Tom Tromey <tom@tromey.com>
14911
14912 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14913 (dwarf2_section_size, dwarf2_get_section_info)
14914 (create_signatured_type_table_from_debug_names)
14915 (create_addrmap_from_aranges, read_debug_names_from_section)
14916 (get_gdb_index_contents_from_section, read_comp_unit_head)
14917 (error_check_comp_unit_head, read_abbrev_offset)
14918 (create_debug_type_hash_table, init_cu_die_reader)
14919 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14920 (read_comp_units_from_section, create_cus_hash_table)
14921 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14922 (create_dwp_v2_section, dwarf2_rnglists_process)
14923 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14924 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14925 (read_indirect_string_from_dwz, read_addr_index_1)
14926 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14927 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14928 (fill_in_loclist_baton): Update.
14929 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14930 get_containing_section, get_bfd_owner, get_bfd_section,
14931 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14932 (dwarf2_read_section, get_section_name, get_section_file_name)
14933 (get_containing_section, get_section_bfd_owner)
14934 (get_section_bfd_section, get_section_name, get_section_file_name)
14935 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14936 declare.
14937 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14938 (dwarf2_section_info::get_bfd_owner)
14939 (dwarf2_section_info::get_bfd_section)
14940 (dwarf2_section_info::get_name)
14941 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14942 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14943 (dwarf2_section_info::read): Now methods.
14944 * dwarf-index-write.c (class debug_names): Update.
14945
2c86cff9
TT
149462020-02-08 Tom Tromey <tom@tromey.com>
14947
14948 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14949 Move to dwarf2/section.h.
14950 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14951 (get_section_bfd_section, get_section_name)
14952 (get_section_file_name, get_section_id, get_section_flags)
14953 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14954 dwarf2/section.c.
14955 * dwarf2/section.h: New file.
14956 * dwarf2/section.c: New file, from dwarf2read.c.
14957 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14958
f4382c45
TT
149592020-02-08 Tom Tromey <tom@tromey.com>
14960
14961 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14962 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14963 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14964 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14965 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14966 * dwarf2/leb.h: New file, from dwarf2read.c.
14967 * dwarf2/leb.c: New file, from dwarf2read.c.
14968 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14969 Remove.
14970 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14971 (COMMON_SFILES): Add dwarf2/leb.c.
14972
01840b7a
JB
149732020-02-08 Joel Brobecker <brobecker@adacore.com>
14974
14975 GDB 9.1 released.
14976
dfcb27e4
IB
149772020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14978
14979 PR gdb/25190:
aac66a4c
SM
14980 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14981 * gdb/remote.c (remote_console_output): Update.
14982 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14983 (ui_file_puts): ...this.
14984 * gdb/ui-file.h (ui_file_puts): Add declaration.
14985 * gdb/utils.c (emit_style_escape): Update.
14986 (flush_wrap_buffer): Update.
14987 (fputs_maybe_filtered): Update.
14988 (fputs_unfiltered): Add function.
dfcb27e4 14989
faa17681
IB
149902020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14991
aac66a4c
SM
14992 * gdb/event-loop.c (gdb_wait_for_event): Update.
14993 * gdb/printcmd.c (printf_command): Update.
14994 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14995 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14996 (gdb_os_flush_stderr): Update.
14997 * gdb/remote.c (remote_console_output): Update.
14998 * gdb/ui-file.c (gdb_flush): Rename to...
14999 (ui_file_flush): ...this.
15000 (stderr_file::write): Update.
15001 (stderr_file::puts): Update.
15002 * gdb/ui-file.h (gdb_flush): Rename to...
15003 (ui_file_flush): ...this.
15004 * gdb/utils.c (gdb_flush): Add function.
15005 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15006
5abbbe1d
TT
150072020-02-07 Tom Tromey <tromey@adacore.com>
15008
15009 PR breakpoints/24915:
15010 * source.c (find_and_open_source): Do not check basenames_may_differ.
15011
919adfe8
TT
150122020-02-07 Tom Tromey <tom@tromey.com>
15013
15014 * README: Update gdbserver documentation.
15015 * gdbserver: Move to top level.
15016 * configure.tgt (build_gdbserver): Remove.
15017 * configure.ac: Remove --enable-gdbserver.
15018 * configure: Rebuild.
15019 * Makefile.in (distclean): Don't mention gdbserver.
15020
1d5d29e7
SV
150212020-02-06 Shahab Vahedi <shahab@synopsys.com>
15022
15023 * source-cache.c (source_cache::ensure): Surround
15024 get_plain_source_lines with a try/catch.
15025 (source_cache::get_line_charpos): Get rid of try/catch
15026 and only check for the return value of "ensure".
15027 * tui/tui-source.c (tui_source_window::set_contents):
15028 Simplify "nlines" calculation.
15029
6eb1129c
SV
150302020-02-06 Shahab Vahedi <shahab@synopsys.com>
15031
15032 * MAINTAINERS (Write After Approval): Add myself.
15033
c6a42d11
CB
150342020-02-05 Christian Biesinger <cbiesinger@google.com>
15035
15036 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15037 function call.
15038
c8ecdda6
CB
150392020-02-05 Christian Biesinger <cbiesinger@google.com>
15040
15041 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15042
f6480e70
MR
150432020-02-05 Maciej W. Rozycki <macro@wdc.com>
15044
15045 * nat/riscv-linux-tdesc.h: New file.
15046 * nat/riscv-linux-tdesc.c: New file, taking code from...
15047 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15048 ... here.
15049 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15050 NATDEPFILES.
15051
dcc9fbc6
AB
150522020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15053
15054 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15055 we don't set the fake simulator ptid to the null_ptid.
15056
719546c4
SM
150572020-02-03 Simon Marchi <simon.marchi@efficios.com>
15058
15059 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15060 * gdbthread.h (class thread_info) <resumed>: Likewise.
15061 * infrun.c (resume_1): Likewise.
15062 (proceed): Likewise.
15063 (infrun_thread_stop_requested): Likewise.
15064 (stop_all_threads): Likewise.
15065 (handle_inferior_event): Likewise.
15066 (restart_threads): Likewise.
15067 (finish_step_over): Likewise.
15068 (keep_going_stepped_thread): Likewise.
15069 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15070 (linux_handle_extended_wait): Likewise.
15071 * record-btrace.c (get_thread_current_frame_id): Likewise.
15072 * record-full.c (record_full_wait_1): Likewise.
15073 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15074 * target.c (target_resume): Likewise.
15075 * thread.c (set_running_thread): Likewise.
15076
e409c542
AKS
150772020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15078
15079 * f-valprint.c (f77_print_array_1): Changed datatype of index
15080 variable to LONGEST from int to enable it to contain bound
15081 values correctly.
15082
ee98c0da
MR
150832020-02-03 Maciej W. Rozycki <macro@wdc.com>
15084
15085 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15086 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15087 offsets according to FLEN determined.
15088 (riscv_linux_nat_target::read_description): Determine FLEN
15089 dynamically.
15090 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15091 according to FLEN determined.
15092 (riscv_linux_nat_target::store_registers): Likewise.
15093
aa66aac4
SV
150942020-02-01 Shahab Vahedi <shahab@synopsys.com>
15095
15096 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15097 when reg->group is empty and reggroup is not.
15098
fd9faca8
TT
150992020-01-31 Tom Tromey <tromey@adacore.com>
15100
15101 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15102 Call beneath target's mourn_inferior after unpushing.
15103
42330a68
AB
151042020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15105
15106 PR tui/9765
15107 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15108 have enough lines to fill the screen, still return the lowest
15109 address we found.
15110
7a27a45b
AB
151112020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15112
15113 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15114 '-', '<', and '>' commands.
15115
c47f70e2
PA
151162020-01-29 Pedro Alves <palves@redhat.com>
15117 Sergio Durigan Junior <sergiodj@redhat.com>
15118
15119 * infcmd.c (construct_inferior_arguments): Assert that
15120 'argc' is greater than 0.
15121
5133a315
LM
151222020-01-29 Luis Machado <luis.machado@linaro.org>
15123
15124 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15125 (BRK_INSN_MASK): Define to 0xd4200000.
15126 (aarch64_program_breakpoint_here_p): New function.
15127 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15128 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15129 breakpoint.c.
15130 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15131 breakpoint.h
15132 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15133 call gdbarch_program_breakpoint_here_p.
15134 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15135 default_program_breakpoint_here_p, changed return type to bool and
15136 simplified.
15137 * breakpoint.h (program_breakpoint_here): Moved prototype to
15138 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15139 return type to bool.
15140 * gdbarch.c: Regenerate.
15141 * gdbarch.h: Regenerate.
15142 * gdbarch.sh (program_breakpoint_here_p): New method.
15143 * infrun.c (handle_signal_stop): Call
15144 gdbarch_program_breakpoint_here_p.
15145
168f8c6b
TT
151462020-01-26 Tom Tromey <tom@tromey.com>
15147
15148 * ctfread.c (struct ctf_fp_info): Reindent.
15149 (_initialize_ctfread): Remove.
15150
128a391f
TT
151512020-01-26 Tom Tromey <tom@tromey.com>
15152
15153 * psymtab.c (partial_map_expand_apply)
15154 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15155 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15156 (psym_print_stats, psym_expand_symtabs_for_function)
15157 (psym_map_symbol_filenames, psym_map_matching_symbols)
15158 (psym_expand_symtabs_matching)
15159 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15160 (maintenance_check_psymtabs): Use new methods.
15161 * psympriv.h (struct partial_symtab) <readin_p,
15162 get_compunit_symtab>: New methods.
15163 <readin, compunit_symtab>: Remove members.
15164 (struct standard_psymtab): New.
15165 (struct legacy_psymtab): Derive from standard_psymtab.
15166 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15167 standard_psymtab.
15168 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15169
0494dbec
TT
151702020-01-26 Tom Tromey <tom@tromey.com>
15171
15172 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15173 read_dependencies. Add assert.
15174 * psymtab.c (partial_symtab::read_dependencies): New method.
15175 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15176 method.
15177 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15178 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15179 read_dependencies.
15180 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15181 Add assert.
15182
8566b89b
TT
151832020-01-26 Tom Tromey <tom@tromey.com>
15184
15185 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15186 Call expand_psymtab.
15187 (xcoff_read_symtab): Call expand_psymtab.
15188 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15189 legacy_expand_psymtab.
15190 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15191 method.
15192 (struct legacy_psymtab) <expand_psymtab>: Implement.
15193 <legacy_expand_psymtab>: New member.
15194 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15195 (parse_partial_symbols): Set legacy_expand_psymtab.
15196 (psymtab_to_symtab_1): Change argument order. Call
15197 expand_psymtab.
15198 (new_psymtab): Set legacy_expand_psymtab.
15199 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15200 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15201 expand_psymtab.
15202 (dwarf2_psymtab::expand_psymtab): Rename from
15203 psymtab_to_symtab_1. Call expand_psymtab.
15204 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15205 (dbx_end_psymtab): Likewise.
15206 (dbx_psymtab_to_symtab_1): Change argument order. Call
15207 expand_psymtab.
15208 (dbx_read_symtab): Call expand_psymtab.
15209 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15210 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15211 (ctf_psymtab::read_symtab): Call expand_psymtab.
15212
077cbab2
TT
152132020-01-26 Tom Tromey <tom@tromey.com>
15214
15215 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15216 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15217 messages.
15218 * mdebugread.c (mdebug_read_symtab): Remove prints.
15219 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15220 assert.
15221 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15222
891813be
TT
152232020-01-26 Tom Tromey <tom@tromey.com>
15224
15225 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15226 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15227 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15228 legacy_symtab.
15229 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15230 * psymtab.c (psymtab_to_symtab): Call method.
15231 (dump_psymtab): Update.
15232 * psympriv.h (struct partial_symtab): Add virtual destructor.
15233 <read_symtab>: New method.
15234 (struct legacy_symtab): New.
15235 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15236 (struct pst_map) <pst>: Now a legacy_psymtab.
15237 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15238 (new_psymtab): Use legacy_psymtab.
15239 * dwarf2read.h (struct dwarf2_psymtab): New.
15240 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15241 * dwarf2read.c (dwarf2_create_include_psymtab)
15242 (dwarf2_build_include_psymtabs, create_type_unit_group)
15243 (create_partial_symtab, process_psymtab_comp_unit_reader)
15244 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15245 (set_partial_user): Use dwarf2_psymtab.
15246 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15247 (psymtab_to_symtab_1, process_full_comp_unit)
15248 (process_full_type_unit, dwarf2_ranges_read)
15249 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15250 (dwarf_decode_lines): Use dwarf2_psymtab.
15251 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15252 (add_address_entry_worker, write_one_signatured_type)
15253 (recursively_count_psymbols, recursively_write_psymbols)
15254 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15255 (write_debug_names): Likewise.
15256 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15257 <pst>: Now a legacy_psymtab.
15258 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15259 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15260 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15261 * ctfread.c (struct ctf_psymtab): New.
15262 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15263 ctf_psymtab.
15264 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15265 (create_partial_symtab): Return a ctf_psymtab.
15266 (scan_partial_symbols): Update.
15267
c3693a1d
TT
152682020-01-26 Tom Tromey <tom@tromey.com>
15269
15270 * xcoffread.c (xcoff_start_psymtab): Use new.
15271 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15272 renamed from start_psymtab_common.
15273 * psympriv.h (struct partial_symtab): Add new constructor.
15274 (start_psymtab_common): Don't declare.
15275 * mdebugread.c (parse_partial_symbols): Use new.
15276 * dwarf2read.c (create_partial_symtab): Use new.
15277 * dbxread.c (start_psymtab): Use new.
15278 * ctfread.c (create_partial_symtab): Use new.
15279
32caafd0
TT
152802020-01-26 Tom Tromey <tom@tromey.com>
15281
15282 * xcoffread.c (xcoff_end_psymtab): Use new.
15283 * psymtab.c (start_psymtab_common): Use new.
15284 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15285 Update.
15286 * psympriv.h (struct partial_symtab): Add parameters to
15287 constructor. Don't inline.
15288 (allocate_psymtab): Don't declare.
15289 * mdebugread.c (new_psymtab): Use new.
15290 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15291 * dbxread.c (dbx_end_psymtab): Use new.
15292
abaa2f23
TT
152932020-01-26 Tom Tromey <tom@tromey.com>
15294
15295 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15296 allocate_psymtab. Update documentation.
15297 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15298 allocate_psymtab. Do not use new.
15299 (allocate_psymtab): Use new. Update.
15300
6d94535f
TT
153012020-01-26 Tom Tromey <tom@tromey.com>
15302
15303 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15304 * psymtab.c (psym_print_stats): Update.
15305 * psympriv.h (struct partial_symtab) <readin,
15306 psymtabs_addrmap_supported, anonymous>: Now bool.
15307 * mdebugread.c (psymtab_to_symtab_1): Update.
15308 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15309 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15310 (process_full_comp_unit, process_full_type_unit): Update.
15311 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15312 * ctfread.c (psymtab_to_symtab): Update.
15313
6f17252b
TT
153142020-01-26 Tom Tromey <tom@tromey.com>
15315
15316 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15317 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15318 * psymtab.c (psymtab_storage): Delete psymtabs.
15319 (psymtab_storage::allocate_psymtab): Use new.
15320 (psymtab_storage::discard_psymtab): Use delete.
15321 * psympriv.h (struct partial_symtab): Add constructor and
15322 initializers.
15323
f6f1cebc
TT
153242020-01-26 Tom Tromey <tom@tromey.com>
15325
15326 * machoread.c: Do not include psympriv.h.
15327
e47e48f6
PW
153282020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15329
15330 * NEWS: Mention the new option and the set/show commands.
15331
a2fedca9
PW
153322020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15333
15334 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15335 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15336 (validate_exec_file): New variables, enums, functions.
15337 (exec_file_locate_attach, print_section_info): Style the filenames.
15338 (_initialize_exec): Install show_exec_file_mismatch_command and
15339 set_exec_file_mismatch_command.
15340 * gdbcore.h (validate_exec_file): Declare.
15341 * infcmd.c (attach_command): Call validate_exec_file.
15342 * remote.c ( remote_target::remote_add_inferior): Likewise.
15343
7ffa82e1
AB
153442020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15345
15346 * frame.c (find_frame_sal): Move call to get_next_frame into more
15347 inner scope.
15348 * inline-frame.c (inilne_state) <inline_state>: Update argument
15349 types.
15350 (inilne_state) <skipped_symbol>: Rename to...
15351 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15352 (skip_inline_frames): Build vector of skipped symbols and use this
15353 to reate the inline_state.
15354 (inline_skipped_symbol): Add a comment and some assertions, fetch
15355 skipped symbol from the list.
15356
3d92a3e3
AB
153572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15358
15359 * buildsym.c (lte_is_less_than): Delete.
15360 (buildsym_compunit::end_symtab_with_blockvector): Create local
15361 lambda function to sort line table entries, and use
15362 std::stable_sort instead of std::sort.
15363 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15364 markers when looking for a previous line.
15365
94a72be7
AB
153662020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15367
15368 * dwarf2read.c (lnp_state_machine::record_line): Include
15369 end_sequence parameter in debug print out. Record the line if we
15370 are at an end_sequence marker even if it's not the start of a
15371 statement.
15372 * symmisc.c (maintenance_print_one_line_table): Print end of
15373 sequence markers with 'END' not '0'.
15374
53af73bf
PA
153752020-01-24 Pedro Alves <palves@redhat.com>
15376
15377 PR gdb/25410
15378 * thread.c (scoped_restore_current_thread::restore): Use
15379 switch_to_inferior_no_thread.
15380 * exec.c: Include "progspace-and-thread.h".
15381 (add_target_sections, remove_target_sections):
15382 scoped_restore_current_pspace_and_thread instead of
15383 scoped_restore_current_thread.
15384 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15385 and aspace to the inferior before calling clone_program_space.
15386 Remove stale comment.
15387
3050c6f4
CB
153882020-01-24 Christian Biesinger <cbiesinger@google.com>
15389
15390 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15391 (arm_netbsd_nat_target::fetch_registers): ...this.
15392 (arm_nbsd_nat_target::store_registers): Rename to...
15393 (arm_netbsd_nat_target::store_registers): ...this.
15394
73685c7e
CB
153952020-01-24 Christian Biesinger <cbiesinger@google.com>
15396
15397 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15398 register_t.
15399
89203d40
CB
154002020-01-24 Christian Biesinger <cbiesinger@google.com>
15401
15402 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15403 Update comment.
15404 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15405 Likewise.
15406 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15407 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15408 the correct replacement (iterate_over_regset_sections).
15409 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15410 Update comment.
15411
1ba1ac88
AB
154122020-01-24 Graham Markall <graham.markall@embecosm.com>
15413
15414 PR gdb/23718
15415 * gdb/python/python.c (execute_gdb_command): Call
15416 async_enable_stdin in catch block.
15417
f3364a6d
AB
154182020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15419
15420 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15421 SWITCH_THRU_ALL_UIS.
15422
733d0a67
AB
154232020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15424
15425 PR tui/9765
15426 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15427 comment, add extra parameter, and update to store previous symbol
15428 when appropriate.
15429 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15430 add extra parameter.
15431 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15432 remove unneeded parameter, add try/catch around gdb_print_insn,
15433 rewrite to add items to asm_lines vector.
15434 (tui_find_backward_disassembly_start_address): New function.
15435 (tui_find_disassembly_address): Updated throughout.
15436 (tui_disasm_window::set_contents): Update for changes to
15437 tui_disassemble.
15438 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15439 number of lines to scroll.
15440
b3b3bada
SM
154412020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15442
15443 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15444 (SECT_OFF_DATA): Likewise.
15445 (SECT_OFF_RODATA): Likewise.
15446 (SECT_OFF_TEXT): Likewise.
15447 (SECT_OFF_BSS): Likewise.
15448 (struct objfile) <text_section_offset, data_section_offset>: New
15449 methods.
15450 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15451 objfile::text_section_offset.
15452 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15453 * coffread.c (coff_symtab_read): Likewise.
15454 (enter_linenos): Likewise.
15455 (process_coff_symbol): Likewise.
15456 * ctfread.c (get_objfile_text_range): Likewise.
15457 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15458 Use objfile::data_section_offset.
15459 * dwarf2-frame.c (execute_cfa_program): Use
15460 objfile::text_section_offset.
15461 (dwarf2_frame_find_fde): Likewise.
15462 * dwarf2read.c (create_addrmap_from_index): Likewise.
15463 (create_addrmap_from_aranges): Likewise.
15464 (dw2_find_pc_sect_compunit_symtab): Likewise.
15465 (process_psymtab_comp_unit_reader): Likewise.
15466 (add_partial_symbol): Likewise.
15467 (add_partial_subprogram): Likewise.
15468 (process_full_comp_unit): Likewise.
15469 (read_file_scope): Likewise.
15470 (read_func_scope): Likewise.
15471 (read_lexical_block_scope): Likewise.
15472 (read_call_site_scope): Likewise.
15473 (dwarf2_rnglists_process): Likewise.
15474 (dwarf2_ranges_process): Likewise.
15475 (dwarf2_ranges_read): Likewise.
15476 (dwarf_decode_lines_1): Likewise.
15477 (new_symbol): Likewise.
15478 (dwarf2_fetch_die_loc_sect_off): Likewise.
15479 (dwarf2_per_cu_text_offset): Likewise.
15480 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15481 * hppa-tdep.c (read_unwind_info): Likewise.
15482 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15483 * psympriv.h (struct partial_symtab): Likewise.
15484 * psymtab.c (find_pc_sect_psymtab): Likewise.
15485 * solib-svr4.c (enable_break): Likewise.
15486 * stap-probe.c (relocate_address): Use
15487 objfile::data_section_offset.
15488 * xcoffread.c (enter_line_range): Use
15489 objfile::text_section_offset.
15490 (read_xcoff_symtab): Likewise.
15491
ab53f382
SM
154922020-01-23 Simon Marchi <simon.marchi@efficios.com>
15493
15494 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15495 declaration to narrower scopes.
15496
e7eee665
SM
154972020-01-23 Simon Marchi <simon.marchi@efficios.com>
15498
15499 * darwin-nat.h (struct darwin_exception_msg, enum
15500 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15501 Move up.
15502 (class darwin_nat_target) <wait_1, check_new_threads,
15503 decode_exception_message, decode_message, stop_inferior,
15504 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15505 * darwin-nat.c (darwin_check_new_threads): Rename to...
15506 (darwin_nat_target::check_new_threads): ... this.
15507 (darwin_suspend_inferior_it): Remove.
15508 (darwin_decode_exception_message): Rename to...
15509 (darwin_nat_target::decode_exception_message): ... this.
15510 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15511 (darwin_decode_message): Rename to...
15512 (darwin_nat_target::decode_message): ... this.
15513 (cancel_breakpoint): Rename to...
15514 (darwin_nat_target::cancel_breakpoint): ... this.
15515 (darwin_wait): Rename to...
15516 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15517 instead of iterate_over_inferiors.
15518 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15519 (darwin_stop_inferior): Rename to...
15520 (darwin_nat_target::stop_inferior): ... this.
15521 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15522 (darwin_init_thread_list): Rename to...
15523 (darwin_nat_target::init_thread_list): ... this.
15524 (darwin_ptrace_him): Rename to...
15525 (darwin_nat_target::ptrace_him): ... this.
15526 (darwin_nat_target::create_inferior): Pass lambda function to
15527 fork_inferior.
15528 (darwin_nat_target::detach): Call stop_inferior instead of
15529 darwin_stop_inferior.
15530 * fork-inferior.h (fork_inferior): Change init_trace_fun
15531 parameter to gdb::function_view.
15532 * fork-inferior.c (fork_inferior): Likewise.
15533
c162ed3e
HD
155342020-01-23 Hannes Domani <ssbssa@yahoo.de>
15535
15536 * i386-cygwin-tdep.c (core_process_module_section): Update.
15537 * windows-nat.c (struct lm_info_windows): Add text_offset.
15538 (windows_xfer_shared_libraries): Update.
15539 * windows-tdep.c (windows_xfer_shared_library):
15540 Add text_offset_cached argument.
15541 * windows-tdep.h (windows_xfer_shared_library): Update.
15542
a1237872
SM
155432020-01-21 Simon Marchi <simon.marchi@efficios.com>
15544
15545 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15546
b3ee6dd9
SM
155472020-01-21 Simon Marchi <simon.marchi@efficios.com>
15548
15549 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15550 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15551 replace with range-based for.
15552 (gdbsim_interrupt_inferior): Remove.
15553 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15554 with a range-based for. Inline code from
15555 gdbsim_interrupt_inferior.
15556
f9fac3c8
SM
155572020-01-21 Simon Marchi <simon.marchi@efficios.com>
15558
15559 * infrun.c (proceed): Fix indentation.
15560
f6474de9
TT
155612020-01-21 Tom Tromey <tromey@adacore.com>
15562
15563 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15564 * python/python.c (python_extension_ops): Update.
15565 (gdbpy_colorize): New function.
15566 * python/lib/gdb/__init__.py (colorize): New function.
15567 * extension.h (ext_lang_colorize): Declare.
15568 * extension.c (ext_lang_colorize): New function.
15569 * extension-priv.h (struct extension_language_ops) <colorize>: New
15570 member.
15571 * cli/cli-style.c (_initialize_cli_style): Update help text.
15572
f0c702d4
LM
155732020-01-21 Luis Machado <luis.machado@linaro.org>
15574
15575 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15576 <cond>: Change type to bool.
15577 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15578 (aarch64_displaced_step_cb): Likewise.
15579 (aarch64_displaced_step_tb): Likewise.
15580
1ab139e5
LM
155812020-01-21 Luis Machado <luis.machado@linaro.org>
15582
15583 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15584 output.
15585
0c271889
LM
155862020-01-21 Luis Machado <luis.machado@linaro.org>
15587
15588 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15589 <pc_adjust>: Adjust the documentation.
15590 (aarch64_displaced_step_fixup): Check if PC really moved before
15591 adjusting it.
15592
4d89c1c7
TT
155932020-01-19 Tom Tromey <tom@tromey.com>
15594
15595 * disasm.c (~gdb_disassembler): New destructor.
15596 (gdb_buffered_insn_length): Call disassemble_free_target.
15597 * disasm.h (class gdb_disassembler): Declare destructor. Use
15598 DISABLE_COPY_AND_ASSIGN.
15599
c0ab21c2
TT
156002020-01-19 Tom Tromey <tom@tromey.com>
15601
15602 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15603 (die_reader_func_ftype): Remove.
15604 (cutu_reader): New class.
15605 (dw2_get_file_names_reader): Remove "data" parameter.
15606 (dw2_get_file_names): Use cutu_reader.
15607 (create_debug_type_hash_table): Update.
15608 (read_cutu_die_from_dwo): Update comment.
15609 (lookup_dwo_unit): Add dwo_name parameter.
15610 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15611 die_reader_func_ftype and data parameters.
15612 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15613 Remove die_reader_func_ftype and data parameters.
15614 (~cutu_reader): New; from init_cutu_and_read_dies.
15615 (cutu_reader::cutu_reader): Rename from
15616 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15617 and data parameters.
15618 (init_cutu_and_read_dies_simple): Remove.
15619 (struct process_psymtab_comp_unit_data): Remove.
15620 (process_psymtab_comp_unit_reader): Remove data parameter; add
15621 want_partial_unit and pretend_language parameters.
15622 (process_psymtab_comp_unit): Use cutu_reader.
15623 (build_type_psymtabs_reader): Remove data parameter.
15624 (build_type_psymtabs_1): Use cutu_reader.
15625 (process_skeletonless_type_unit): Likewise.
15626 (load_partial_comp_unit_reader): Remove.
15627 (load_partial_comp_unit): Use cutu_reader.
15628 (load_full_comp_unit_reader): Remove.
15629 (load_full_comp_unit): Use cutu_reader.
15630 (struct create_dwo_cu_data): Remove.
15631 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15632 dwo_unit parameters.
15633 (create_cus_hash_table): Use cutu_reader.
15634 (struct dwarf2_read_addr_index_data): Remove.
15635 (dwarf2_read_addr_index_reader): Remove.
15636 (dwarf2_read_addr_index): Use cutu_reader.
15637 (read_signatured_type_reader): Remove.
15638 (read_signatured_type): Use cutu_reader.
15639
45bbae5c
TT
156402020-01-19 Tom Tromey <tom@tromey.com>
15641
15642 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15643 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15644 (tui_wrefresh): Declare.
15645 * tui/tui-wingeneral.c (suppress_output): New global.
15646 (tui_suppress_output, ~tui_suppress_output): New constructor and
15647 destructor.
15648 (tui_wrefresh): New function.
15649 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15650 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15651 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15652 method.
15653 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15654 tui_wrefresh.
15655 (tui_data_window::no_refresh): New method.
15656 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15657 (tui_reg_command): Use tui_suppress_output
15658 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15659 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15660 method.
15661 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15662
4f13c1c0
TT
156632020-01-19 Tom Tromey <tom@tromey.com>
15664
15665 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15666 Handle case where symtab is null.
15667
fa47e446
SM
156682020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15669
15670 * linux-fork.c (one_fork_p): Simplify.
15671
26f42329
SM
156722020-01-17 Simon Marchi <simon.marchi@efficios.com>
15673
15674 * top.c (struct qt_args): Remove.
15675 (kill_or_detach): Change return type to void, replace `void *`
15676 parameter with a proper one.
15677 (print_inferior_quit_action): Likewise.
15678 (quit_confirm): Use range-based for loop to iterate over inferiors.
15679 (quit_force): Likewise.
15680
a9ac81b1
SM
156812020-01-17 Simon Marchi <simon.marchi@efficios.com>
15682
15683 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15684 `void *` parameter with proper parameters.
15685 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15686 (print_one_inferior): Change return type to void, replace `void *`
15687 parameter with proper parameters.
15688 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15689 inferiors.
15690 (get_other_inferior): Remove.
15691 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15692 inferiors.
15693
788eca49
SM
156942020-01-17 Simon Marchi <simon.marchi@efficios.com>
15695
15696 * mi/mi-interp.c (report_initial_inferior): Remove.
15697 (mi_interp::init): Use range-based for to iterate over inferiors.
15698
d9bc85b6
SM
156992020-01-17 Simon Marchi <simon.marchi@efficios.com>
15700
15701 * python/py-inferior.c (build_inferior_list): Remove.
15702 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15703
40c94099
CB
157042020-01-16 Christian Biesinger <cbiesinger@google.com>
15705
15706 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15707 (btrace_stitch_trace): Likewise.
15708 * charset.c (intermediate_encoding): Likewise (vaild).
15709 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15710 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15711 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15712
e0cdfe3c
HD
157132020-01-16 Hannes Domani <ssbssa@yahoo.de>
15714
15715 * windows-tdep.c (windows_get_tlb_type):
15716 Add rtl_user_process_parameters type.
15717
790f1718 157182020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15719 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15720
15721 PR build/24805
15722 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15723 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15724 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15725 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15726 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15727 (ps_plog): Redeclare exported functions with default visibility.
15728
3112ed97
NA
157292020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15730
15731 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15732 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15733
8dc3273e
SM
157342020-01-15 Simon Marchi <simon.marchi@efficios.com>
15735
15736 * infcmd.c (post_create_inferior): Use get_thread_regcache
15737 instead of get_current_regcache.
15738
ff47f4f0
TT
157392020-01-14 Tom Tromey <tom@tromey.com>
15740
15741 PR symtab/12535:
15742 * python/python.c (gdbpy_decode_line): Treat empty string the same
15743 as no argument.
15744
975f45b7
TT
157452020-01-14 Tom Tromey <tom@tromey.com>
15746
15747 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15748
25e57356
TT
157492020-01-14 Tom Tromey <tom@tromey.com>
15750
15751 * nat/linux-btrace.c: Don't include <config.h>.
15752 * nat/linux-ptrace.c: Don't include <config.h>.
15753 * nat/x86-linux-dregs.c: Don't include <config.h>.
15754
05ea2a05
TT
157552020-01-14 Tom Tromey <tom@tromey.com>
15756
15757 * configure: Rebuild.
15758 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15759
01027315
TT
157602020-01-14 Tom Tromey <tom@tromey.com>
15761
15762 * nat/x86-linux-dregs.c: Include configh.h.
15763 * nat/linux-ptrace.c: Include configh.h.
15764 * nat/linux-btrace.c: Include configh.h.
15765 * defs.h: Include config.h, bfd.h.
15766 * configure.ac: Don't source common.host.
15767 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15768 * configure: Rebuild.
15769 * acinclude.m4: Update path.
15770 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15771 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15772 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15773 (CLIBS): Add LIBSUPPORT.
15774 (CDEPS): Likewise.
15775 (COMMON_SFILES): Remove gdbsupport files.
15776 (HFILES_NO_SRCDIR): Likewise.
15777 (stamp-version): Update path to create-version.sh.
15778 (ALLDEPFILES): Remove gdbsupport files.
15779
b2ceabe8
TT
157802020-01-14 Tom Tromey <tom@tromey.com>
15781
15782 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15783 USE_WIN32API when needed.
15784 * configure.ac (USE_WIN32API): Don't define.
15785 (WIN32LIBS): Use WIN32APILIBS.
15786 * configure: Rebuild.
15787
25c51f71
TT
157882020-01-14 Tom Tromey <tom@tromey.com>
15789
15790 * configure: Rebuild.
15791 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15792
717c684d
BE
157932020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15794
15795 * skip.c (skip_function_command): Make skip w/o arguments use the
15796 name of the inlined function if pc is inside any inlined function.
15797
7da6a5b9
LM
157982020-01-14 Luis Machado <luis.machado@linaro.org>
15799
15800 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15801 * infrun.c (resume_1): Likewise.
15802 (handle_inferior_event): Remove stale comment.
15803 * linux-nat.c (linux_nat_target::resume): Update comments.
15804 (save_stop_reason): Likewise.
15805 (linux_nat_filter_event): Likewise.
15806 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15807
44e4c775
AB
158082020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15809
15810 * elfread.c (record_minimal_symbol): Set section index to 0 for
15811 non-allocatable sections.
15812
18a8505e
AT
15813
158142020-01-13 Ali Tamur <tamur@google.com>
15815
15816 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15817 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15818 to gdb::optional. Update comments.
15819 (dwo_file): Update comments.
15820 (read_attribute): Update API to take an additional out parameter,
15821 need_reprocess. This is used to mark attributes that need other
15822 attributes (e.g. str_offsets_base) for correct computation which may not
15823 have been read yet.
15824 (read_attribute_reprocess): New function declaration.
15825 (read_addr_index): Likewise.
15826 (read_dwo_str_index): Likewise.
15827 (read_stub_str_index): Likewise.
15828 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15829 (lookup_addr_base): New function definition.
15830 (lookup_ranges_base): Likewise.
15831 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15832 lookup_ranges_base.
15833 (init_cutu_and_read_dies): Update comments.
15834 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15835 unit. This is used to inherit parent's str_offsets_base and addr_base.
15836 Update comments.
15837 (init_cutu_and_read_dies_simple): Reflect API changes.
15838 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15839 (create_cus_hash_table): Change API to take parent compile unit.
15840 Reflect API changes.
15841 (open_and_init_dwo_file): Reflect API changes.
15842 (dwarf2_get_pc_bounds): Update comments.
15843 (dwarf2_record_block_ranges): Likewise.
15844 (read_full_die_1): Change implementation to reprocess attributes that
15845 need str_offsets_base and addr_base.
15846 (partial_die_info::read): Likewise.
15847 (read_attribute_reprocess): New function definition.
15848 (read_attribute_value): Change API to take an additional out parameter,
15849 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15850 when a non-dwo compile unit has index based attributes.
15851 (read_attribute): Reflect API changes.
15852 (read_addr_index_1): Reflect API changes. Update comments.
15853 (dwarf2_read_addr_index_data): Reflect API changes.
15854 (dwarf2_read_addr_index): Likewise.
15855 (read_str_index): Change API and implementation. This becomes a helper
15856 to be used by the new string index related methods. Update error
15857 message and comments.
15858 (read_dwo_str_index): New function definition.
15859 (read_stub_str_index): Likewise.
15860 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15861 * symfile.h (dwarf2_debug_sections): Likewise.
15862 * xcoffread.c (dwarf2_debug_sections): Likewise.
15863
0cac9354
SM
158642020-01-13 Simon Marchi <simon.marchi@efficios.com>
15865
15866 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15867 core_reg_sect type to gdb_byte *.
15868 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15869 * cris-tdep.c (fetch_core_registers): Likewise.
15870 * corelow.c (core_target::get_core_register_section): Change
15871 type of `contents` to gdb::byte_vector.
15872
9a6d629c
AB
158732020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15874
15875 * tui/tui-wingeneral.c (box_win): Position the title in the center
15876 of the border.
15877
d8b2f9e3
SM
158782020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15879
15880 * corelow.c (core_target::get_core_register_section): Use
15881 std::vector instead of alloca.
15882
bb564c58
SM
158832020-01-13 Simon Marchi <simon.marchi@efficios.com>
15884
15885 * warning.m4: Add -Wmissing-declarations to build_warnings.
15886 * configure: Re-generate.
15887
6b366111
SM
158882020-01-13 Simon Marchi <simon.marchi@efficios.com>
15889
15890 * python/python.c (init__gdb_module): Add declaration.
15891
6c265988
SM
158922020-01-13 Simon Marchi <simon.marchi@efficios.com>
15893
15894 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15895 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15896 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15897 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15898 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15899 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15900 * ada-exp.y (_initialize_ada_exp): Add declaration.
15901 * ada-lang.c (_initialize_ada_language): Add declaration.
15902 * ada-tasks.c (_initialize_tasks): Add declaration.
15903 * agent.c (_initialize_agent): Add declaration.
15904 * aix-thread.c (_initialize_aix_thread): Add declaration.
15905 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15906 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15907 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15908 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15909 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15910 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15911 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15912 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15913 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15914 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15915 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15916 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15917 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15918 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15919 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15920 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15921 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15922 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15923 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15924 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15925 * annotate.c (_initialize_annotate): Add declaration.
15926 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15927 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15928 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15929 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15930 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15931 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15932 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15933 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15934 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15935 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15936 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15937 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15938 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15939 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15940 * auto-load.c (_initialize_auto_load): Add declaration.
15941 * auxv.c (_initialize_auxv): Add declaration.
15942 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15943 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15944 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15945 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15946 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15947 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15948 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15949 * breakpoint.c (_initialize_breakpoint): Add declaration.
15950 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15951 * btrace.c (_initialize_btrace): Add declaration.
15952 * charset.c (_initialize_charset): Add declaration.
15953 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15954 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15955 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15956 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15957 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15958 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15959 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15960 * coffread.c (_initialize_coffread): Add declaration.
15961 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15962 * compile/compile.c (_initialize_compile): Add declaration.
15963 * complaints.c (_initialize_complaints): Add declaration.
15964 * completer.c (_initialize_completer): Add declaration.
15965 * copying.c (_initialize_copying): Add declaration.
15966 * corefile.c (_initialize_core): Add declaration.
15967 * corelow.c (_initialize_corelow): Add declaration.
15968 * cp-abi.c (_initialize_cp_abi): Add declaration.
15969 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15970 * cp-support.c (_initialize_cp_support): Add declaration.
15971 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15972 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15973 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15974 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15975 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15976 * ctfread.c (_initialize_ctfread): Add declaration.
15977 * d-lang.c (_initialize_d_language): Add declaration.
15978 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15979 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15980 * dbxread.c (_initialize_dbxread): Add declaration.
15981 * dcache.c (_initialize_dcache): Add declaration.
15982 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15983 * disasm.c (_initialize_disasm): Add declaration.
15984 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15985 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15986 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15987 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15988 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15989 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15990 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15991 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15992 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15993 * elfread.c (_initialize_elfread): Add declaration.
15994 * exec.c (_initialize_exec): Add declaration.
15995 * extension.c (_initialize_extension): Add declaration.
15996 * f-lang.c (_initialize_f_language): Add declaration.
15997 * f-valprint.c (_initialize_f_valprint): Add declaration.
15998 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15999 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16000 * filesystem.c (_initialize_filesystem): Add declaration.
16001 * findcmd.c (_initialize_mem_search): Add declaration.
16002 * findvar.c (_initialize_findvar): Add declaration.
16003 * fork-child.c (_initialize_fork_child): Add declaration.
16004 * frame-base.c (_initialize_frame_base): Add declaration.
16005 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16006 * frame.c (_initialize_frame): Add declaration.
16007 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16008 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16009 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16010 * gcore.c (_initialize_gcore): Add declaration.
16011 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16012 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16013 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16014 * gdbarch.c (_initialize_gdbarch): Add declaration.
16015 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16016 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16017 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16018 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16019 * go-lang.c (_initialize_go_language): Add declaration.
16020 * go32-nat.c (_initialize_go32_nat): Add declaration.
16021 * guile/guile.c (_initialize_guile): Add declaration.
16022 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16023 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16024 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16025 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16026 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16027 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16028 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16029 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16030 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16031 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16032 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16033 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16034 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16035 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16036 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16037 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16038 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16039 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16040 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16041 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16042 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16043 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16044 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16045 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16046 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16047 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16048 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16049 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16050 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16051 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16052 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16053 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16054 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16055 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16056 * infcall.c (_initialize_infcall): Add declaration.
16057 * infcmd.c (_initialize_infcmd): Add declaration.
16058 * inflow.c (_initialize_inflow): Add declaration.
16059 * infrun.c (_initialize_infrun): Add declaration.
16060 * interps.c (_initialize_interpreter): Add declaration.
16061 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16062 * jit.c (_initialize_jit): Add declaration.
16063 * language.c (_initialize_language): Add declaration.
16064 * linux-fork.c (_initialize_linux_fork): Add declaration.
16065 * linux-nat.c (_initialize_linux_nat): Add declaration.
16066 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16067 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16068 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16069 * m2-lang.c (_initialize_m2_language): Add declaration.
16070 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16071 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16072 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16073 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16074 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16075 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16076 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16077 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16078 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16079 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16080 * machoread.c (_initialize_machoread): Add declaration.
16081 * macrocmd.c (_initialize_macrocmd): Add declaration.
16082 * macroscope.c (_initialize_macroscope): Add declaration.
16083 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16084 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16085 * maint.c (_initialize_maint_cmds): Add declaration.
16086 * mdebugread.c (_initialize_mdebugread): Add declaration.
16087 * memattr.c (_initialize_mem): Add declaration.
16088 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16089 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16090 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16091 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16092 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16093 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16094 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16095 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16096 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16097 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16098 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16099 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16100 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16101 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16102 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16103 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16104 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16105 * mipsread.c (_initialize_mipsread): Add declaration.
16106 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16107 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16108 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16109 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16110 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16111 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16112 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16113 * nto-procfs.c (_initialize_procfs): Add declaration.
16114 * objc-lang.c (_initialize_objc_language): Add declaration.
16115 * observable.c (_initialize_observer): Add declaration.
16116 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16117 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16118 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16119 * osabi.c (_initialize_gdb_osabi): Add declaration.
16120 * osdata.c (_initialize_osdata): Add declaration.
16121 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16122 * parse.c (_initialize_parse): Add declaration.
16123 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16124 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16125 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16126 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16127 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16128 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16129 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16130 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16131 * printcmd.c (_initialize_printcmd): Add declaration.
16132 * probe.c (_initialize_probe): Add declaration.
16133 * proc-api.c (_initialize_proc_api): Add declaration.
16134 * proc-events.c (_initialize_proc_events): Add declaration.
16135 * proc-service.c (_initialize_proc_service): Add declaration.
16136 * procfs.c (_initialize_procfs): Add declaration.
16137 * producer.c (_initialize_producer): Add declaration.
16138 * psymtab.c (_initialize_psymtab): Add declaration.
16139 * python/python.c (_initialize_python): Add declaration.
16140 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16141 * record-btrace.c (_initialize_record_btrace): Add declaration.
16142 * record-full.c (_initialize_record_full): Add declaration.
16143 * record.c (_initialize_record): Add declaration.
16144 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16145 * regcache.c (_initialize_regcache): Add declaration.
16146 * reggroups.c (_initialize_reggroup): Add declaration.
16147 * remote-notif.c (_initialize_notif): Add declaration.
16148 * remote-sim.c (_initialize_remote_sim): Add declaration.
16149 * remote.c (_initialize_remote): Add declaration.
16150 * reverse.c (_initialize_reverse): Add declaration.
16151 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16152 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16153 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16154 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16155 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16156 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16157 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16158 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16159 Add declaration.
16160 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16161 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16162 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16163 * rust-exp.y (_initialize_rust_exp): Add declaration.
16164 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16165 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16166 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16167 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16168 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16169 * score-tdep.c (_initialize_score_tdep): Add declaration.
16170 * ser-go32.c (_initialize_ser_dos): Add declaration.
16171 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16172 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16173 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16174 * ser-uds.c (_initialize_ser_socket): Add declaration.
16175 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16176 * serial.c (_initialize_serial): Add declaration.
16177 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16178 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16179 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16180 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16181 * skip.c (_initialize_step_skip): Add declaration.
16182 * sol-thread.c (_initialize_sol_thread): Add declaration.
16183 * solib-aix.c (_initialize_solib_aix): Add declaration.
16184 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16185 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16186 * solib-frv.c (_initialize_frv_solib): Add declaration.
16187 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16188 * solib-target.c (_initialize_solib_target): Add declaration.
16189 * solib.c (_initialize_solib): Add declaration.
16190 * source-cache.c (_initialize_source_cache): Add declaration.
16191 * source.c (_initialize_source): Add declaration.
16192 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16193 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16194 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16195 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16196 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16197 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16198 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16199 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16200 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16201 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16202 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16203 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16204 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16205 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16206 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16207 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16208 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16209 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16210 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16211 * stabsread.c (_initialize_stabsread): Add declaration.
16212 * stack.c (_initialize_stack): Add declaration.
16213 * stap-probe.c (_initialize_stap_probe): Add declaration.
16214 * std-regs.c (_initialize_frame_reg): Add declaration.
16215 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16216 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16217 * symfile.c (_initialize_symfile): Add declaration.
16218 * symmisc.c (_initialize_symmisc): Add declaration.
16219 * symtab.c (_initialize_symtab): Add declaration.
16220 * target.c (_initialize_target): Add declaration.
16221 * target-connection.c (_initialize_target_connection): Add
16222 declaration.
16223 * target-dcache.c (_initialize_target_dcache): Add declaration.
16224 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16225 * thread.c (_initialize_thread): Add declaration.
16226 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16227 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16228 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16229 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16230 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16231 * tracectf.c (_initialize_ctf): Add declaration.
16232 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16233 * tracefile.c (_initialize_tracefile): Add declaration.
16234 * tracepoint.c (_initialize_tracepoint): Add declaration.
16235 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16236 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16237 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16238 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16239 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16240 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16241 * tui/tui.c (_initialize_tui): Add declaration.
16242 * typeprint.c (_initialize_typeprint): Add declaration.
16243 * ui-style.c (_initialize_ui_style): Add declaration.
16244 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16245 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16246 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16247 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16248 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16249 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16250 * unittests/filtered_iterator-selftests.c
16251 (_initialize_filtered_iterator_selftests): Add declaration.
16252 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16253 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16254 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16255 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16256 * unittests/main-thread-selftests.c
16257 (_initialize_main_thread_selftests): Add declaration.
16258 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16259 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16260 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16261 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16262 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16263 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16264 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16265 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16266 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16267 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16268 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16269 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16270 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16271 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16272 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16273 declaration.
16274 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16275 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16276 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16277 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16278 * user-regs.c (_initialize_user_regs): Add declaration.
16279 * utils.c (_initialize_utils): Add declaration.
16280 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16281 * valops.c (_initialize_valops): Add declaration.
16282 * valprint.c (_initialize_valprint): Add declaration.
16283 * value.c (_initialize_values): Add declaration.
16284 * varobj.c (_initialize_varobj): Add declaration.
16285 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16286 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16287 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16288 * windows-nat.c (_initialize_windows_nat): Add declaration.
16289 (_initialize_check_for_gdb_ini): Add declaration.
16290 (_initialize_loadable): Add declaration.
16291 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16292 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16293 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16294 * xcoffread.c (_initialize_xcoffread): Add declaration.
16295 * xml-support.c (_initialize_xml_support): Add declaration.
16296 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16297 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16298 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16299 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16300
e2de1eec
SM
163012020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16302
16303 * regformats/regdat.sh: Generate declaration for init function.
16304
e0037b4c
SM
163052020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16306
16307 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16308 up.
16309 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16310 close_one_inferior>: New methods.
16311 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16312 pass down target to find_inferior_pid.
16313 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16314 Pass down target to find_inferior_ptid.
16315 (gdbsim_target::create_inferior): Pass down target to
16316 add_thread_silent.
16317 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16318 target down to find_inferior_ptid and switch_to_thread.
16319 (gdbsim_target::close): Update to call close_one_inferior.
16320 (struct resume_data): Remove.
16321 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16322 directly, rather than through a void pointer.
16323 (gdbsim_target::resume): Update to call resume_one_inferior.
16324
58920b5b
SM
163252020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16326
16327 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16328
4ec89149
PA
163292020-01-12 Pedro Alves <palves@redhat.com>
16330
16331 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16332 directly for the current inferior instead of
16333 discard_all_inferiors.
16334 (discard_all_inferiors): Delete.
16335
7c392d1d
TT
163362020-01-11 Tom Tromey <tom@tromey.com>
16337
16338 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16339 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16340 deprecated_safe_get_selected_frame.
16341
d9ebdab7
TBA
163422020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16343
16344 * inferior.c (print_inferior): Switch inferior before printing it.
16345
f3c469b9
PA
163462020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16347 Pedro Alves <palves@redhat.com>
16348
16349 * progspace-and-thread.c (switch_to_program_space_and_thread):
16350 Assert there's an inferior for PSPACE. Use
16351 switch_to_inferior_no_thread to switch the inferior too.
16352 * progspace.c (program_space::~program_space): Call
16353 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16354 (program_space::free_all_objfiles): Don't call clear_symtab_users
16355 here.
16356 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16357
65c574f6
PA
163582020-01-10 Pedro Alves <palves@redhat.com>
16359
16360 * NEWS: Mention multi-target debugging, "info connections", and
16361 "add-inferior -no-connection".
16362
2f4fcf00
PA
163632020-01-10 Pedro Alves <palves@redhat.com>
16364
16365 * infrun.c: Include "target-connection.h".
16366 (check_multi_target_resumption): New.
16367 (proceed): Call it.
16368 * target-connection.c (make_target_connection_string): Make
16369 extern.
16370 * target-connection.h (make_target_connection_string): Declare.
16371
121b3efd
PA
163722020-01-10 Pedro Alves <palves@redhat.com>
16373
16374 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16375 * inferior.c (uiout_field_connection): New function.
16376 (print_inferior): Add new "connection-id" column.
16377 (add_inferior_command): Show connection number/string of added
16378 inferior.
16379 * process-stratum-target.h
16380 (process_stratum_target::connection_string): New virtual method.
16381 (process_stratum_target::connection_number): New field.
16382 * remote.c (remote_target::connection_string): New override.
16383 * target-connection.c: New file.
16384 * target-connection.h: New file.
16385 * target.c (decref_target): Remove process_stratum targets from
16386 the connection list.
16387 (target_stack::push): Add process_stratum targets to the
16388 connection list.
16389
4f837581
PA
163902020-01-10 Pedro Alves <palves@redhat.com>
16391
16392 Revert:
16393 2016-04-12 Pedro Alves <palves@redhat.com>
16394 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16395 Remove references to name.
16396 * serial.h (struct serial) <name>: Delete.
16397
f4ec508e
PA
163982020-01-10 Pedro Alves <palves@redhat.com>
16399
16400 * gdbarch-selftests.c (register_to_value_test): Remove "target
16401 already pushed" check.
16402
5b6d1e4f
PA
164032020-01-10 Pedro Alves <palves@redhat.com>
16404 John Baldwin <jhb@FreeBSD.org>
16405
16406 * aarch64-linux-nat.c
16407 (aarch64_linux_nat_target::thread_architecture): Adjust.
16408 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16409 (task_command_1): Likewise.
16410 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16411 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16412 (aix_thread_target::store_registers)
16413 (aix_thread_target::thread_alive): Adjust.
16414 * amd64-fbsd-tdep.c: Include "inferior.h".
16415 (amd64fbsd_get_thread_local_address): Pass down target.
16416 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16417 thread's gdbarch instead of target_gdbarch.
16418 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16419 get_last_target_status.
16420 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16421 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16422 inferiors.
16423 (update_inserted_breakpoint_locations): Skip if inferiors with no
16424 execution.
16425 (update_global_location_list): When handling moribund locations,
16426 find representative inferior for location's pspace, and use thread
16427 count of its process_stratum target.
16428 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16429 * bsd-uthread.c (bsd_uthread_target::wait): Use
16430 as_process_stratum_target and adjust thread_change_ptid and
16431 add_thread calls.
16432 (bsd_uthread_target::update_thread_list): Use
16433 as_process_stratum_target and adjust find_thread_ptid,
16434 thread_change_ptid and add_thread calls.
16435 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16436 find_thread_ptid call.
16437 * corelow.c (add_to_thread_list): Adjust add_thread call.
16438 (core_target_open): Adjust add_thread_silent and thread_count
16439 calls.
16440 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16441 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16442 * event-top.c (async_disconnect): Pop targets from all inferiors.
16443 * exec.c (add_target_sections): Push exec target on all inferiors
16444 sharing the program space.
16445 (remove_target_sections): Remove the exec target from all
16446 inferiors sharing the program space.
16447 (exec_on_vfork): New.
16448 * exec.h (exec_on_vfork): Declare.
16449 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16450 Pass it down.
16451 (fbsd_nat_target::update_thread_list): Adjust.
16452 (fbsd_nat_target::resume): Adjust.
16453 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16454 down.
16455 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16456 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16457 get_thread_arch_regcache call.
16458 * fork-child.c (gdb_startup_inferior): Pass target down to
16459 startup_inferior and set_executing.
16460 * gdbthread.h (struct process_stratum_target): Forward declare.
16461 (add_thread, add_thread_silent, add_thread_with_info)
16462 (in_thread_list): Add process_stratum_target parameter.
16463 (find_thread_ptid(inferior*, ptid_t)): New overload.
16464 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16465 parameter.
16466 (all_threads()): Delete overload.
16467 (all_threads, all_non_exited_threads): Add process_stratum_target
16468 parameter.
16469 (all_threads_safe): Use brace initialization.
16470 (thread_count): Add process_stratum_target parameter.
16471 (set_resumed, set_running, set_stop_requested, set_executing)
16472 (threads_are_executing, finish_thread_state): Add
16473 process_stratum_target parameter.
16474 (switch_to_thread): Use is_current_thread.
16475 * i386-fbsd-tdep.c: Include "inferior.h".
16476 (i386fbsd_get_thread_local_address): Pass down target.
16477 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16478 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16479 have_inferiors check.
16480 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16481 (inf_ptrace_target::attach): Adjust.
16482 * infcall.c (run_inferior_call): Adjust.
16483 * infcmd.c (run_command_1): Pass target to
16484 scoped_finish_thread_state.
16485 (proceed_thread_callback): Skip inferiors with no execution.
16486 (continue_command): Rename 'all_threads' local to avoid hiding
16487 'all_threads' function. Adjust get_last_target_status call.
16488 (prepare_one_step): Adjust set_running call.
16489 (signal_command): Use user_visible_resume_target. Compare thread
16490 pointers instead of inferior_ptid.
16491 (info_program_command): Adjust to pass down target.
16492 (attach_command): Mark target's 'thread_executing' flag.
16493 (stop_current_target_threads_ns): New, factored out from ...
16494 (interrupt_target_1): ... this. Switch inferior before making
16495 target calls.
16496 * inferior-iter.h
16497 (struct all_inferiors_iterator, struct all_inferiors_range)
16498 (struct all_inferiors_safe_range)
16499 (struct all_non_exited_inferiors_range): Filter on
16500 process_stratum_target too. Remove explicit.
16501 * inferior.c (inferior::inferior): Push dummy target on target
16502 stack.
16503 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16504 Add process_stratum_target parameter, and pass it down.
16505 (have_live_inferiors): Adjust.
16506 (switch_to_inferior_and_push_target): New.
16507 (add_inferior_command, clone_inferior_command): Handle
16508 "-no-connection" parameter. Use
16509 switch_to_inferior_and_push_target.
16510 (_initialize_inferior): Mention "-no-connection" option in
16511 the help of "add-inferior" and "clone-inferior" commands.
16512 * inferior.h: Include "process-stratum-target.h".
16513 (interrupt_target_1): Use bool.
16514 (struct inferior) <push_target, unpush_target, target_is_pushed,
16515 find_target_beneath, top_target, process_target, target_at,
16516 m_stack>: New.
16517 (discard_all_inferiors): Delete.
16518 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16519 (all_inferiors, all_non_exited_inferiors): Add
16520 process_stratum_target parameter.
16521 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16522 (target_last_proc_target): New global.
16523 (follow_fork_inferior): Push target on new inferior. Pass target
16524 to add_thread_silent. Call exec_on_vfork. Handle target's
16525 reference count.
16526 (follow_fork): Adjust get_last_target_status call. Also consider
16527 target.
16528 (follow_exec): Push target on new inferior.
16529 (struct execution_control_state) <target>: New field.
16530 (user_visible_resume_target): New.
16531 (do_target_resume): Call target_async.
16532 (resume_1): Set target's threads_executing flag. Consider resume
16533 target.
16534 (commit_resume_all_targets): New.
16535 (proceed): Also consider resume target. Skip threads of inferiors
16536 with no execution. Commit resumtion in all targets.
16537 (start_remote): Pass current inferior to wait_for_inferior.
16538 (infrun_thread_stop_requested): Consider target as well. Pass
16539 thread_info pointer to clear_inline_frame_state instead of ptid.
16540 (infrun_thread_thread_exit): Consider target as well.
16541 (random_pending_event_thread): New inferior parameter. Use it.
16542 (do_target_wait): Rename to ...
16543 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16544 down.
16545 (threads_are_resumed_pending_p, do_target_wait): New.
16546 (prepare_for_detach): Adjust calls.
16547 (wait_for_inferior): New inferior parameter. Handle it. Use
16548 do_target_wait_1 instead of do_target_wait.
16549 (fetch_inferior_event): Adjust. Switch to representative
16550 inferior. Pass target down.
16551 (set_last_target_status): Add process_stratum_target parameter.
16552 Save target in global.
16553 (get_last_target_status): Add process_stratum_target parameter and
16554 handle it.
16555 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16556 (context_switch): Check inferior_ptid == null_ptid before calling
16557 inferior_thread().
16558 (get_inferior_stop_soon): Pass down target.
16559 (wait_one): Rename to ...
16560 (poll_one_curr_target): ... this.
16561 (struct wait_one_event): New.
16562 (wait_one): New.
16563 (stop_all_threads): Adjust.
16564 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16565 event's target.
16566 (switch_back_to_stepped_thread): Also consider target.
16567 (print_stop_event): Update.
16568 (normal_stop): Update. Also consider the resume target.
16569 * infrun.h (wait_for_inferior): Remove declaration.
16570 (user_visible_resume_target): New declaration.
16571 (get_last_target_status, set_last_target_status): New
16572 process_stratum_target parameter.
16573 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16574 process_stratum_target parameter, and use it.
16575 (clear_inline_frame_state (thread_info*)): New.
16576 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16577 process_stratum_target parameter.
16578 (clear_inline_frame_state (thread_info*)): Declare.
16579 * linux-fork.c (delete_checkpoint_command): Pass target down to
16580 find_thread_ptid.
16581 (checkpoint_command): Adjust.
16582 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16583 instead of just tweaking inferior_ptid.
16584 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16585 (exit_lwp): Pass target down to find_thread_ptid.
16586 (attach_proc_task_lwp_callback): Pass target down to
16587 add_thread/set_running/set_executing.
16588 (linux_nat_target::attach): Pass target down to
16589 thread_change_ptid.
16590 (get_detach_signal): Pass target down to find_thread_ptid.
16591 Consider last target status's target.
16592 (linux_resume_one_lwp_throw, resume_lwp)
16593 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16594 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16595 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16596 (linux_nat_target::async_wait_fd): New.
16597 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16598 target down.
16599 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16600 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16601 * linux-thread-db.c (struct thread_db_info::process_target): New
16602 field.
16603 (add_thread_db_info): Save target.
16604 (get_thread_db_info): New process_stratum_target parameter. Also
16605 match target.
16606 (delete_thread_db_info): New process_stratum_target parameter.
16607 Also match target.
16608 (thread_from_lwp): Adjust to pass down target.
16609 (thread_db_notice_clone): Pass down target.
16610 (check_thread_db_callback): Pass down target.
16611 (try_thread_db_load_1): Always push the thread_db target.
16612 (try_thread_db_load, record_thread): Pass target down.
16613 (thread_db_target::detach): Pass target down. Always unpush the
16614 thread_db target.
16615 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16616 target down. Always unpush the thread_db target.
16617 (find_new_threads_callback, thread_db_find_new_threads_2)
16618 (thread_db_target::update_thread_list): Pass target down.
16619 (thread_db_target::pid_to_str): Pass current inferior down.
16620 (thread_db_target::get_thread_local_address): Pass target down.
16621 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16622 target down.
16623 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16624 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16625 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16626 (procfs_init_inferior): Rename to ...
16627 (procfs_target::procfs_init_inferior): ... this and adjust.
16628 (procfs_target::create_inferior, procfs_notice_thread)
16629 (procfs_do_thread_registers): Adjust.
16630 * ppc-fbsd-tdep.c: Include "inferior.h".
16631 (ppcfbsd_get_thread_local_address): Pass down target.
16632 * proc-service.c (ps_xfer_memory): Switch current inferior and
16633 program space as well.
16634 (get_ps_regcache): Pass target down.
16635 * process-stratum-target.c
16636 (process_stratum_target::thread_address_space)
16637 (process_stratum_target::thread_architecture): Pass target down.
16638 * process-stratum-target.h
16639 (process_stratum_target::threads_executing): New field.
16640 (as_process_stratum_target): New.
16641 * ravenscar-thread.c
16642 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16643 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16644 down.
16645 * record-btrace.c (record_btrace_target::info_record): Adjust.
16646 (record_btrace_target::record_method)
16647 (record_btrace_target::record_is_replaying)
16648 (record_btrace_target::fetch_registers)
16649 (get_thread_current_frame_id, record_btrace_target::resume)
16650 (record_btrace_target::wait, record_btrace_target::stop): Pass
16651 target down.
16652 * record-full.c (record_full_wait_1): Switch to event thread.
16653 Pass target down.
16654 * regcache.c (regcache::regcache)
16655 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16656 process_stratum_target parameter and handle it.
16657 (current_thread_target): New global.
16658 (get_thread_regcache): Add process_stratum_target parameter and
16659 handle it. Switch inferior before calling target method.
16660 (get_thread_regcache): Pass target down.
16661 (get_thread_regcache_for_ptid): Pass target down.
16662 (registers_changed_ptid): Add process_stratum_target parameter and
16663 handle it.
16664 (registers_changed_thread, registers_changed): Pass target down.
16665 (test_get_thread_arch_aspace_regcache): New.
16666 (current_regcache_test): Define a couple local test_target_ops
16667 instances and use them for testing.
16668 (readwrite_regcache): Pass process_stratum_target parameter.
16669 (cooked_read_test, cooked_write_test): Pass mock_target down.
16670 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16671 (get_thread_arch_aspace_regcache): Add process_stratum_target
16672 parameter.
16673 (regcache::target): New method.
16674 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16675 (regcache::registers_changed_ptid): Add process_stratum_target
16676 parameter.
16677 (regcache::m_target): New field.
16678 (registers_changed_ptid): Add process_stratum_target parameter.
16679 * remote.c (remote_state::supports_vCont_probed): New field.
16680 (remote_target::async_wait_fd): New method.
16681 (remote_unpush_and_throw): Add remote_target parameter.
16682 (get_current_remote_target): Adjust.
16683 (remote_target::remote_add_inferior): Push target.
16684 (remote_target::remote_add_thread)
16685 (remote_target::remote_notice_new_inferior)
16686 (get_remote_thread_info): Pass target down.
16687 (remote_target::update_thread_list): Skip threads of inferiors
16688 bound to other targets. (remote_target::close): Don't discard
16689 inferiors. (remote_target::add_current_inferior_and_thread)
16690 (remote_target::process_initial_stop_replies)
16691 (remote_target::start_remote)
16692 (remote_target::remote_serial_quit_handler): Pass down target.
16693 (remote_target::remote_unpush_target): New remote_target
16694 parameter. Unpush the target from all inferiors.
16695 (remote_target::remote_unpush_and_throw): New remote_target
16696 parameter. Pass it down.
16697 (remote_target::open_1): Check whether the current inferior has
16698 execution instead of checking whether any inferior is live. Pass
16699 target down.
16700 (remote_target::remote_detach_1): Pass down target. Use
16701 remote_unpush_target.
16702 (extended_remote_target::attach): Pass down target.
16703 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16704 (remote_target::append_resumption): Pass down target.
16705 (remote_target::append_pending_thread_resumptions)
16706 (remote_target::remote_resume_with_hc, remote_target::resume)
16707 (remote_target::commit_resume): Pass down target.
16708 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16709 (remote_target::interrupt_query)
16710 (remote_target::remove_new_fork_children)
16711 (remote_target::check_pending_events_prevent_wildcard_vcont)
16712 (remote_target::remote_parse_stop_reply)
16713 (remote_target::process_stop_reply): Pass down target.
16714 (first_remote_resumed_thread): New remote_target parameter. Pass
16715 it down.
16716 (remote_target::wait_as): Pass down target.
16717 (unpush_and_perror): New remote_target parameter. Pass it down.
16718 (remote_target::readchar, remote_target::remote_serial_write)
16719 (remote_target::getpkt_or_notif_sane_1)
16720 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16721 down target.
16722 (remote_target::mourn_inferior): Pass down target. Use
16723 remote_unpush_target.
16724 (remote_target::core_of_thread)
16725 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16726 (remote_target::pid_to_exec_file)
16727 (remote_target::thread_handle_to_thread_info): Pass down target.
16728 (remote_target::async_wait_fd): New.
16729 * riscv-fbsd-tdep.c: Include "inferior.h".
16730 (riscv_fbsd_get_thread_local_address): Pass down target.
16731 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16732 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16733 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16734 Adjust.
16735 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16736 * solib-svr4.c (enable_break): Pass down target.
16737 * spu-multiarch.c (parse_spufs_run): Pass down target.
16738 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16739 * target-delegates.c: Regenerate.
16740 * target.c (g_target_stack): Delete.
16741 (current_top_target): Return the current inferior's top target.
16742 (target_has_execution_1): Refer to the passed-in inferior's top
16743 target.
16744 (target_supports_terminal_ours): Check whether the initial
16745 inferior was already created.
16746 (decref_target): New.
16747 (target_stack::push): Incref/decref the target.
16748 (push_target, push_target, unpush_target): Adjust.
16749 (target_stack::unpush): Defref target.
16750 (target_is_pushed): Return bool. Adjust to refer to the current
16751 inferior's target stack.
16752 (dispose_inferior): Delete, and inline parts ...
16753 (target_preopen): ... here. Only dispose of the current inferior.
16754 (target_detach): Hold strong target reference while detaching.
16755 Pass target down.
16756 (target_thread_name): Add assertion.
16757 (target_resume): Pass down target.
16758 (target_ops::beneath, find_target_at): Adjust to refer to the
16759 current inferior's target stack.
16760 (get_dummy_target): New.
16761 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16762 has a thread running.
16763 (initialize_targets): Rename to ...
16764 (_initialize_target): ... this.
16765 * target.h: Include "gdbsupport/refcounted-object.h".
16766 (struct target_ops): Inherit refcounted_object.
16767 (target_ops::shortname, target_ops::longname): Make const.
16768 (target_ops::async_wait_fd): New method.
16769 (decref_target): Declare.
16770 (struct target_ops_ref_policy): New.
16771 (target_ops_ref): New typedef.
16772 (get_dummy_target): Declare function.
16773 (target_is_pushed): Return bool.
16774 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16775 (all_matching_threads_iterator::all_matching_threads_iterator):
16776 Handle filter target.
16777 * thread-iter.h (struct all_matching_threads_iterator, struct
16778 all_matching_threads_range, class all_non_exited_threads_range):
16779 Filter by target too. Remove explicit.
16780 * thread.c (threads_executing): Delete.
16781 (inferior_thread): Pass down current inferior.
16782 (clear_thread_inferior_resources): Pass down thread pointer
16783 instead of ptid_t.
16784 (add_thread_silent, add_thread_with_info, add_thread): Add
16785 process_stratum_target parameter. Use it for thread and inferior
16786 searches.
16787 (is_current_thread): New.
16788 (thread_info::deletable): Use it.
16789 (find_thread_ptid, thread_count, in_thread_list)
16790 (thread_change_ptid, set_resumed, set_running): New
16791 process_stratum_target parameter. Pass it down.
16792 (set_executing): New process_stratum_target parameter. Pass it
16793 down. Adjust reference to 'threads_executing'.
16794 (threads_are_executing): New process_stratum_target parameter.
16795 Adjust reference to 'threads_executing'.
16796 (set_stop_requested, finish_thread_state): New
16797 process_stratum_target parameter. Pass it down.
16798 (switch_to_thread): Also match inferior.
16799 (switch_to_thread): New process_stratum_target parameter. Pass it
16800 down.
16801 (update_threads_executing): Reimplement.
16802 * top.c (quit_force): Pop targets from all inferior.
16803 (gdb_init): Don't call initialize_targets.
16804 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16805 Declare.
16806 (windows_add_thread, windows_delete_thread): Adjust.
16807 (get_windows_debug_event): Rename to ...
16808 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16809 * tracefile-tfile.c (tfile_target_open): Pass down target.
16810 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16811 Forward declare.
16812 (switch_to_thread): Add process_stratum_target parameter.
16813 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16814 parameter. Use it.
16815 (mi_on_resume): Pass target down.
16816 * nat/fork-inferior.c (startup_inferior): Add
16817 process_stratum_target parameter. Pass it down.
16818 * nat/fork-inferior.h (startup_inferior): Add
16819 process_stratum_target parameter.
16820 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16821
75c6c844
PA
168222020-01-10 Pedro Alves <palves@redhat.com>
16823
16824 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16825 directly. Instead find the first thread in the thread list and
16826 use switch_to_thread.
16827
78f2c40a
PA
168282020-01-10 Pedro Alves <palves@redhat.com>
16829
16830 * remote.c (remote_target::remote_add_inferior): Don't bind a
16831 process to the current inferior if the current inferior is already
16832 bound to a process.
16833
e7af6c70
TBA
168342020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16835 Pedro Alves <palves@redhat.com>
16836
16837 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16838 If no process is specified, return null_ptid instead of
16839 inferior_ptid.
16840 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16841 TARGET_WAITKIND_SIGNALLED with no pid.
16842
31ba933e
PA
168432020-01-10 Pedro Alves <palves@redhat.com>
16844
16845 * remote.c (first_remote_resumed_thread): New.
16846 (remote_target::wait_as): Use it as default event_ptid instead of
16847 inferior_ptid.
16848
735fc2ca
PA
168492020-01-10 Pedro Alves <palves@redhat.com>
16850
16851 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16852
c17e02e1
PA
168532020-01-10 Pedro Alves <palves@redhat.com>
16854
16855 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16856 not -1.
16857
ab1ddbcf
PA
168582020-01-10 Pedro Alves <palves@redhat.com>
16859
16860 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16861 ptid to get_last_target_status.
16862 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16863 ptid to get_last_target_status.
16864 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16865 get_last_target_status.
16866 (info_program_command): Don't pass a target_waitstatus to
16867 get_last_target_status.
16868 * infrun.c (init_wait_for_inferior): Use
16869 nullify_last_target_wait_ptid.
16870 (get_last_target_status): Handle nullptr arguments.
16871 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16872 (print_stop_event): Don't pass a ptid to get_last_target_status.
16873 (normal_stop): Don't pass a ptid to get_last_target_status.
16874 * infrun.h (get_last_target_status, set_last_target_status): Move
16875 comments here and update.
16876 (nullify_last_target_wait_ptid): Declare.
16877 * linux-fork.c (fork_load_infrun_state): Remove local extern
16878 declaration of nullify_last_target_wait_ptid.
16879 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16880 to get_last_target_status.
16881
f3f8ece4
PA
168822020-01-10 Pedro Alves <palves@redhat.com>
16883
16884 * gdbthread.h (scoped_restore_current_thread)
16885 <dont_restore, restore, m_dont_restore>: Declare.
16886 * thread.c (thread_alive): Add assertion. Return bool.
16887 (switch_to_thread_if_alive): New.
16888 (prune_threads): Switch inferior/thread.
16889 (print_thread_info_1): Switch thread before calling target methods.
16890 (scoped_restore_current_thread::restore): New, factored out from
16891 ...
16892 (scoped_restore_current_thread::~scoped_restore_current_thread):
16893 ... this.
16894 (scoped_restore_current_thread::scoped_restore_current_thread):
16895 Add assertion.
16896 (thread_apply_all_command, thread_select): Use
16897 switch_to_thread_if_alive.
16898 * infrun.c (proceed, restart_threads, handle_signal_stop)
16899 (switch_back_to_stepped_thread): Switch current thread before
16900 calling target methods.
16901
db2d40f7
PA
169022020-01-10 Pedro Alves <palves@redhat.com>
16903
16904 * inferior.c (switch_to_inferior_no_thread): New function,
16905 factored out from ...
16906 (inferior_command): ... here.
16907 * inferior.h (switch_to_inferior_no_thread): Declare.
16908 * mi/mi-main.c (run_one_inferior): Use
16909 switch_to_inferior_no_thread.
16910
bd420a2d
PA
169112020-01-10 Pedro Alves <palves@redhat.com>
16912
16913 * infcmd.c (kill_command): Remove dead code.
16914
ddf5db90
PA
169152020-01-10 Pedro Alves <palves@redhat.com>
16916
16917 * remote.c (remote_target::mourn_inferior): No longer check
16918 whether the target is running.
16919
5018ce90
PA
169202020-01-10 Pedro Alves <palves@redhat.com>
16921
16922 * corelow.c (core_target::has_execution): Change parameter type to
16923 inferior pointer.
16924 * inferior.c (number_of_live_inferiors): Use
16925 inferior::has_execution instead of target_has_execution_1.
16926 * inferior.h (inferior::has_execution): New.
16927 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16928 inferior::has_execution instead of target_has_execution_1.
16929 * process-stratum-target.c
16930 (process_stratum_target::has_execution): Change parameter type to
16931 inferior pointer. Check the inferior's PID instead of
16932 inferior_ptid.
16933 * process-stratum-target.h
16934 (process_stratum_target::has_execution): Change parameter type to
16935 inferior pointer.
16936 * record-full.c (record_full_core_target::has_execution): Change
16937 parameter type to inferior pointer.
16938 * target.c (target_has_execution_1): Change parameter type to
16939 inferior pointer.
16940 (target_has_execution_current): Adjust.
16941 * target.h (target_ops::has_execution): Change parameter type to
16942 inferior pointer.
16943 (target_has_execution_1): Change parameter type to inferior
16944 pointer. Change return type to bool.
16945 * tracefile.h (tracefile_target::has_execution): Change parameter
16946 type to inferior pointer.
16947
74375d18
PA
169482020-01-10 Pedro Alves <palves@redhat.com>
16949
16950 * exceptions.c (print_flush): Remove current_top_target() check.
16951
acdf84a6
PA
169522020-01-10 Pedro Alves <palves@redhat.com>
16953
16954 * remote.c (show_remote_exec_file): Show the current inferior's
16955 exec-file instead of the command variable's value.
16956
ec506636
PA
169572020-01-10 Pedro Alves <palves@redhat.com>
16958
16959 * record-full.c (record_full_resume_ptid): New global.
16960 (record_full_target::resume): Set it.
16961 (record_full_wait_1): Use record_full_resume_ptid instead of
16962 inferior_ptid.
16963
873657b9
PA
169642020-01-10 Pedro Alves <palves@redhat.com>
16965
16966 * gdbthread.h (scoped_restore_current_thread)
16967 <dont_restore, restore, m_dont_restore>: Declare.
16968 * thread.c (thread_alive): Add assertion. Return bool.
16969 (switch_to_thread_if_alive): New.
16970 (prune_threads): Switch inferior/thread.
16971 (print_thread_info_1): Switch thread before calling target methods.
16972 (scoped_restore_current_thread::restore): New, factored out from
16973 ...
16974 (scoped_restore_current_thread::~scoped_restore_current_thread):
16975 ... this.
16976 (scoped_restore_current_thread::scoped_restore_current_thread):
16977 Add assertion.
16978 (thread_apply_all_command, thread_select): Use
16979 switch_to_thread_if_alive.
16980
7f0ae84c
GB
169812020-01-10 George Barrett <bob@bob131.so>
16982
16983 * stap-probe.c (stap_modify_semaphore): Don't check for null
16984 semaphores.
16985 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16986 for null semaphores.
16987
f5a7c406
AB
169882020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16989
16990 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16991 all source windows, and maintain horizontal scroll status while
16992 doing so.
16993
9ae6bf64
TT
169942020-01-09 Tom Tromey <tom@tromey.com>
16995
16996 PR tui/18932:
16997 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16998 update_source_window, not print_source_lines.
16999
b2efe70c
AB
170002020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17001
17002 * tui/tui.c (tui_enable): Register tui hooks after calling
17003 tui_display_main.
17004
5f23a082
CB
170052020-01-09 Christian Biesinger <cbiesinger@google.com>
17006
17007 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17008
3061113b
SM
170092020-01-08 Simon Marchi <simon.marchi@efficios.com>
17010
17011 * thread.c (print_thread_info_1): Fix indentation.
17012
57d75002
CB
170132020-01-09 Christian Biesinger <cbiesinger@google.com>
17014
17015 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17016 unique_xmalloc_ptr outside the if to always free the demangled name.
17017
6a053cb1
TT
170182020-01-08 Tom Tromey <tromey@adacore.com>
17019
17020 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17021 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17022 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17023 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17024 Remove.
17025 (section_offsets): New typedef.
17026 * symtab.c (fixup_section, get_msymbol_address): Update.
17027 * symmisc.c (dump_msymbols): Update.
17028 * symfile.h (relative_addr_info_to_section_offsets)
17029 (symfile_map_offsets_to_segments): Update.
17030 * symfile.c (build_section_addr_info_from_objfile)
17031 (init_objfile_sect_indices): Update.
17032 (struct place_section_arg): Change type of "offsets".
17033 (place_section): Update.
17034 (relative_addr_info_to_section_offsets): Change type of
17035 "section_offsets". Remove "num_sections" parameter.
17036 (default_symfile_offsets, syms_from_objfile_1)
17037 (set_objfile_default_section_offset): Update.
17038 (reread_symbols): No need to preserve section offsets by hand.
17039 (symfile_map_offsets_to_segments): Change type of "offsets".
17040 * stap-probe.c (relocate_address): Update.
17041 * stabsread.h (process_one_symbol): Update.
17042 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17043 (solib_target_relocate_section_addresses): Update.
17044 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17045 Update.
17046 * solib-frv.c (frv_relocate_main_executable): Update.
17047 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17048 * solib-aix.c (solib_aix_get_section_offsets): Change return
17049 type.
17050 (solib_aix_solib_create_inferior_hook): Update.
17051 * remote.c (remote_target::get_offsets): Update.
17052 * psymtab.c (find_pc_sect_psymtab): Update.
17053 * psympriv.h (struct partial_symbol) <address, text_low,
17054 text_high>: Update.
17055 * objfiles.h (obj_section_offset): Update.
17056 (struct objfile) <section_offsets>: Change type.
17057 <num_sections>: Remove.
17058 (objfile_relocate): Update.
17059 * objfiles.c (entry_point_address_query): Update
17060 (relocate_one_symbol): Change type of "section_offsets".
17061 (objfile_relocate1, objfile_relocate1): Change type of
17062 "new_offsets".
17063 (objfile_rebase1): Update.
17064 * mipsread.c (mipscoff_symfile_read): Update.
17065 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17066 parameter.
17067 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17068 (parse_external, psymtab_to_symtab_1): Update.
17069 * machoread.c (macho_symfile_offsets): Update.
17070 * ia64-tdep.c (ia64_find_unwind_table): Update.
17071 * hppa-tdep.c (read_unwind_info): Update.
17072 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17073 * dwarf2read.c (create_addrmap_from_index)
17074 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17075 (process_psymtab_comp_unit_reader, add_partial_symbol)
17076 (add_partial_subprogram, process_full_comp_unit)
17077 (read_file_scope, read_func_scope, read_lexical_block_scope)
17078 (read_call_site_scope, dwarf2_rnglists_process)
17079 (dwarf2_ranges_process, dwarf2_ranges_read)
17080 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17081 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17082 Update.
17083 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17084 Update.
17085 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17086 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17087 (process_one_symbol): Change type of "section_offsets".
17088 * ctfread.c (get_objfile_text_range): Update.
17089 * coffread.c (coff_symtab_read, enter_linenos)
17090 (process_coff_symbol): Update.
17091 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17092 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17093
456e800a
TT
170942020-01-08 Tom Tromey <tromey@adacore.com>
17095
17096 * dwarf2read.c (parse_macro_definition): Use std::string.
17097 (parse_macro_definition): Likewise.
17098
6dfa2fc2
TT
170992020-01-08 Tom Tromey <tromey@adacore.com>
17100
17101 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17102 (ATTR_ALLOC_CHUNK): Remove.
17103
421d1616
TT
171042020-01-08 Tom Tromey <tromey@adacore.com>
17105
17106 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17107
43816ebc
TT
171082020-01-08 Tom Tromey <tromey@adacore.com>
17109
17110 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17111 (dwarf2_compute_name, open_dwo_file): Likewise.
17112 (process_enumeration_scope): Use std::vector.
17113 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17114 (partial_die_info::fixup, dwarf2_start_subfile)
17115 (guess_full_die_structure_name, dwarf2_name): Likewise.
17116 (determine_prefix): Update.
17117 (guess_full_die_structure_name): Make return type const.
17118 (partial_die_full_name): Return unique_xmalloc_ptr.
17119 (DW_FIELD_ALLOC_CHUNK): Remove.
17120
4212d509
TT
171212020-01-07 Tom Tromey <tromey@adacore.com>
17122
17123 PR build/24937:
17124 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17125
06a6207a
JT
171262020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17127
17128 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17129
153d79c4
AB
171302020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17131
17132 * stack.c (print_frame_info): Move disassemble_next_line code
17133 inside source_print block.
17134
66182876
EZ
171352020-01-06 Eli Zaretskii <eliz@gnu.org>
17136
17137 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17138 gdb/signals.h, as we are now using native signal symbols.
17139
cbfa8581
SV
171402020-01-06 Shahab Vahedi <shahab@synopsys.com>
17141
17142 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17143 overflow by an early check of content vs threshold.
aac66a4c 17144 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17145 Likewise.
17146
3f602821
EZ
171472020-01-06 Eli Zaretskii <eliz@gnu.org>
17148
17149 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17150
a08c904d
JT
171512020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17152
17153 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17154 export table if no section contains it's RVA.
17155
89a65580
EZ
171562020-01-06 Eli Zaretskii <eliz@gnu.org>
17157
17158 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17159
8b7fcda2
HD
171602020-01-06 Hannes Domani <ssbssa@yahoo.de>
17161
17162 * source.c (print_source_lines_base): Set last_line_listed.
17163
a61b4f69
SV
171642020-01-06 Shahab Vahedi <shahab@synopsys.com>
17165
17166 * tui/tui-disasm.c: Remove trailing spaces.
17167
559e7e50
EZ
171682020-01-06 Eli Zaretskii <eliz@gnu.org>
17169 Pedro Alves <palves@redhat.com>
17170
17171 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17172 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17173 (windows_gdb_signal_to_target): New function, uses the above
17174 enumeration to convert GDB internal signal codes to equivalent
17175 Windows codes.
17176 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17177 * windows-nat.c: Include "gdb_wait.h".
17178 (get_windows_debug_event): Extract the fatal exception from the
17179 exit status and convert to the equivalent Posix signal number.
17180 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17181 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17182 * gdbsupport/gdb_wait.c: New file, implements
17183 windows_status_to_termsig.
17184 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17185 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17186
f2302a34
AB
171872020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17188
17189 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17190 show_layout.
17191
6a5206eb
LM
171922020-01-05 Luis Machado <luis.machado@linaro.org>
17193
17194 * aarch64-linux-nat.c
17195 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17196 and bfd_mach_aarch64.
17197
6ec1d75e
PW
171982020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17199
17200 * ui-file.c (stdio_file::can_emit_style_escape)
17201 (tee_file::can_emit_style_escape): Ensure style is used also on
17202 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17203 to gdb_stdout.
17204 * main.c (set_gdb_data_directory): Use file style to output the
17205 warning that the given pathname is not a directory.
17206 * top.c (show_history_filename, gdb_safe_append_history)
17207 (show_gdb_datadir): Use file style.
17208
44f81a76
HD
172092020-01-03 Hannes Domani <ssbssa@yahoo.de>
17210
17211 * solib-target.c (struct lm_info_target):
17212 Change offsets to be a unique_xmalloc_ptr.
17213 (solib_target_relocate_section_addresses): Update.
17214
25057eb0
HD
172152020-01-03 Hannes Domani <ssbssa@yahoo.de>
17216
17217 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17218
6e2118f5
BE
172192020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17220
17221 * MAINTAINERS (Write After Approval): Add myself.
17222
8133c7dc
LM
172232020-01-02 Luis Machado <luis.machado@linaro.org>
17224
17225 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17226 Cell BE architecture.
17227 * target.h (struct target_ops) <thread_architecture>: Likewise.
17228
48189bec
HD
172292020-01-01 Hannes Domani <ssbssa@yahoo.de>
17230
17231 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17232
ead1063b
HD
172332020-01-01 Hannes Domani <ssbssa@yahoo.de>
17234
17235 * MAINTAINERS (Write After Approval): Add myself.
17236
e5d78223
JB
172372020-01-01 Joel Brobecker <brobecker@adacore.com>
17238
17239 * gdbarch.sh: Update copyright year range of generated files.
17240
b811d2c2
JB
172412020-01-01 Joel Brobecker <brobecker@adacore.com>
17242
17243 Update copyright year range in all GDB files.
17244
5f4def5c
JB
172452020-01-01 Joel Brobecker <brobecker@adacore.com>
17246
17247 * copyright.py: Convert to Python 3.
17248
51fd4002
JB
172492020-01-01 Joel Brobecker <brobecker@adacore.com>
17250
17251 * copyright.py: Adapt after move of gnulib directory from gdb
17252 directory to toplevel directory.
17253
5fb651f2
JB
172542020-01-01 Joel Brobecker <brobecker@adacore.com>
17255
17256 * copyright.py (main): Exit if run from the wrong directory.
17257
5dd8bf88
JB
172582020-01-01 Joel Brobecker <brobecker@adacore.com>
17259
17260 * top.c (print_gdb_version): Change copyright year to 2020.
17261
9f71dacb 172622020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17263
9f71dacb 17264 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17265
9f71dacb 17266For older changes see ChangeLog-2019.
c906108c
SS
17267\f
17268Local Variables:
17269mode: change-log
17270left-margin: 8
17271fill-column: 74
17272version-control: never
57da7796 17273coding: utf-8
c906108c 17274End: